2 Commits
Author SHA1 Message Date
CatoandClaude d56a0c50bd feat: publish as @bitbaum/ai-forms (same code, same version) (#62)
* feat: publish as @bitbaum/ai-forms (same code, same version)

Owner, 2026-11-06: the fleet's packages belong under the @bitbaum npm
organization; this one was published earlier, unscoped, and never moved
(fleet docs/package-scope-migration-plan.md). Name, imports in tests, examples
and docs change; no API changes. The old name stays installable and is
deprecated once no adopter uses it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvpWNTLxXNfwUHS7MD

* ci(publish): the current Publish workflow, which can make a package's first npm release

The renamed @bitbaum/ai-forms is a new npm name, and npm trusts a publisher only for an
existing package; the current template publishes the first version with the org
token and links tokenless publishing afterwards. The old copy here was
OIDC-only, so it would fail on a new name.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvpWNTLxXNfwUHS7MD

* chore(example): regenerate the example's lockfile for the @bitbaum/ai-forms name

The example's lock still keyed the local file:../.. dependency as ai-forms,
so the fleet rollout gate found no locked artifact for @bitbaum/ai-forms and
held this PR (sweep: 'Missing locked artifact for @bitbaum/ai-forms').

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-10 08:42:13 +01:00
GandClaude Opus 5 fdcf74eb81 feat(examples): a runnable Next.js example that needs no API key (#8)
The repo had nothing a visitor could run. Evaluating the library meant wiring
a provider into your own app first, which is the wrong order — the behaviour
has to be visible before anyone invests that.

`examples/next` is a real job-posting form: prose fills it, follow-up
instructions patch it. It runs with zero configuration because `complete` is
caller-supplied, so the example ships a deterministic offline pattern matcher
for the no-key case. That matcher is NOT a language model and the UI says so
in plain words — it exists so the library's own contribution (merge intent,
sanitizing, field discipline) is visible without a provider in the way.
Set GROQ_API_KEY or OPENAI_API_KEY for real model behaviour.

Verified end to end against the running example:
  - fill from one sentence  -> 9 fields set, salary parsed as 130000-160000
  - "make it principal"     -> changed == ["seniority"], everything else survives
  - "set the posting id"    -> postingId unchanged; it is aiExcluded
  - unknown target          -> rejected before any model call

Root package unaffected: 14/14 tests green.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-15 12:04:35 +00:00