9 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
CatoandClaude 82bc2c9367 chore(deps): clear dev-toolchain audit findings inside existing ranges (#59)
pnpm audit critical/high (all deps):
  .: 0/3 -> 0/0
  examples/next: 0/6 -> 0/0


Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-30 22:28:29 +01:00
dependabot[bot] 6e748d0e11 chore(deps): bump next from 15.5.27 to 15.5.28 in /examples/next (#52)
Bumps [next](https://github.com/vercel/next.js) from 15.5.27 to 15.5.28.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Commits](https://github.com/vercel/next.js/compare/v15.5.27...v15.5.28)

---
updated-dependencies:
- dependency-name: next
  dependency-version: 15.5.28
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-25 06:16:19 +01:00
dependabot[bot] 68b2db546d chore(deps): bump next from 15.5.24 to 15.5.27 in /examples/next (#48)
Bumps [next](https://github.com/vercel/next.js) from 15.5.24 to 15.5.27.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Commits](https://github.com/vercel/next.js/compare/v15.5.24...v15.5.27)

---
updated-dependencies:
- dependency-name: next
  dependency-version: 15.5.27
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-08 07:48:44 -07:00
dependabot[bot] 180dee1d8f chore(deps): bump next from 15.5.23 to 15.5.24 in /examples/next (#41)
Bumps [next](https://github.com/vercel/next.js) from 15.5.23 to 15.5.24.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Commits](https://github.com/vercel/next.js/compare/v15.5.23...v15.5.24)

---
updated-dependencies:
- dependency-name: next
  dependency-version: 15.5.24
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-10 18:07:05 -07:00
CatoandClaude Opus 5 153e03769d fix(example): the reference code shipped a dead model id and three habits worth not copying (#37)
`CompleteFn` is deliberately bring-your-own-provider, which makes this
example the file people copy — and a copied mistake is the expensive
kind. A fleet-wide audit (2026-09-06) found this example teaching all
three of the defects it then found in production clients.

DEAD BY DEFAULT. The default model was `llama-3.3-70b-versatile`, which
Groq retired with the rest of the llama-3 family. Verified live
2026-09-07: 404 model_not_found. Anyone who followed the README with a
Groq key got a broken example and no way to tell why — and the same id
sat in .env.example, on the line a reader is most likely to uncomment.
It is a LIST now, tried in order, because that is the only shape that
survives a vendor's release notes. AI_FORMS_MODEL still wins, and may
itself be comma-separated.

AN EMPTY HTTP 200 WAS AN ANSWER. `content ?? ''` returned the empty
string as though the model had spoken. Some models return exactly that
after spending their whole budget on hidden reasoning, and here it
becomes "the assistant filled in nothing" with no error to explain it.
Now a failure that moves to the next model.

NO DEADLINE. A provider that accepted the connection and then went quiet
held the form open forever, and the next model was never reached. Each
attempt now gets its OWN deadline — a shared one is spent by the first
model and leaves the rest with an already-expired signal, which is worse
than none.

Failures now name every model tried, not just the last: "the key is
dead" and "one id rotted" used to read identically.

Still dependency-free, on purpose — the example exists to show what
CompleteFn is. It points at @bitbaum/ai-kit's complete() for anyone who
would rather not hand-roll this, but being dependency-free is not a
licence to demonstrate the wrong thing.

verify green; the example app typechecks.


Claude-Session: https://claude.ai/code/session_01NHDLTKGirKU7He8q2YR2y4

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-09-06 23:55:21 +00:00
db04f557e8 chore: pnpm — the fleet has one package manager (#33)
Convert from npm to pnpm (fleet standard, STACK.md):
- packageManager pin pnpm@11.25.0 (corepack SSOT)
- pnpm-lock.yaml via `pnpm import` (root and examples/next), then both
  package-lock.json files deleted
- CI + publish workflows: pnpm/action-setup@v6, cache: pnpm,
  `pnpm install --frozen-lockfile`, `pnpm run verify`
- examples/next: pnpm-workspace.yaml with `allowBuilds: sharp` — pnpm 11
  blocks dependency build scripts by default and sharp must build
- package.json scripts and contributor docs use pnpm; consumer install
  lines stay npm — consumers choose their own package manager
- `npm view` / `npm publish` registry calls in publish.yml unchanged
  (OIDC trusted publishing works from a pnpm-managed tree)

Clean-room proven: rm -rf node_modules && pnpm install --frozen-lockfile
&& tests green; example app installs and typechecks under pnpm.


Claude-Session: https://claude.ai/code/session_01WqKqMnHQHSmkGFfc5t7Rxn

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-09-03 14:52:28 +00:00
GandClaude Opus 5 ee5777d5a9 chore: add a formatter (#29)
* chore: add a formatter, matching the style this repo already writes

singleQuote=true was chosen by counting this repo's own
imports, not by fleet decree. The fleet is genuinely split and the two repos
that already had a .prettierrc disagreed with each other, so there was no
standard to restore. Quote style does not cross repo boundaries; having a
gate does.

Markdown is ignored for now — prettier rewraps prose, which would bury the
real diff.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* style: format with prettier (15 files)

Mechanical. No behaviour change. This SHA is listed in
.git-blame-ignore-revs so `git blame` skips it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* chore: teach git blame to skip the reformat

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-31 10:32:40 +02: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