5 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 Opus 5.5 f5689bbdf6 feat: refine fills gaps, writes requested prose, suggestions, shared AiFormAssistant (0.1.3) (#46)
* fix(assist): refine fills empty fields, writes requested prose, localisable copy

A form stops being empty at the first typed word, and from then on every
instruction was a refine that returned only named fields - so pasting an
advert after typing a title filled nothing, and 'fill in the description'
was refused as invention. Refine now also lands in empty fields the message
supplies; facts vs prose are separated (never invent a fact, do write a
requested free-text field). User-facing copy is overridable per app and per
form (AOZ showed English errors in a German form), and the hook clears the
previous turn's 'changed' so it cannot sit beside this turn's error.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* feat: suggestions for filled forms, and one shared AiFormAssistant control

A filled form can now be asked what it would improve: intent 'suggest' on
the same route returns up to 4 one-tap proposals, each applied as an
ordinary refine (undo covers it). Never proposes inventing a fact.

AiFormAssistant moves the bar every adopter hand-rolled (AOZ and evig had
near-identical copies) into the package: behaviour here, words and design
tokens from the app via labels/classNames, no styling shipped. An
improvement to the experience now lands everywhere on one install.

respond keeps its AssistResult type (loki passes one); suggest gets its
own respondSuggest.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-24 01:31:13 -07: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 c224dc377d test(package): consume the tarball the way npm does (#9)
The suite imported `../dist/index.js` by relative path, which walks past
the two things a consumer actually depends on: the `exports` map and the
`files` allowlist. Both can break while every other test stays green, and
the first witness would be whoever runs `npm install` — a bad way to
learn it on a first publish.

This packs the real tarball, unpacks it as `node_modules/ai-forms`, and
imports it by bare specifier from a temp workspace outside the repo. It
also covers `ai-forms/react`, which had no test at all: React is an
optional peer, so the subpath is resolved and read rather than executed.

Verified red before green against three breakages — a dropped subpath, a
`types` path pointing at nothing, and a `files` list that forgets `dist`.
Each probe records failure as a value instead of throwing, so a broken
entry point names itself rather than failing all five assertions at once.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-16 07:32:14 +00:00
Mao NakamotoandClaude Opus 5 68087895ab feat: headless AI form filling and conversational refinement
One implementation of the thing every app in the fleet needs and only
OrangeCat had: fill a form from prose, then keep talking to it until it
is right.

The core is the merge rule. Protecting user input by letting existing
values win is correct when filling an empty form and fatal when changing
a full one — it is why asking to rewrite a non-empty field silently does
nothing. Intent decides: `fill` protects what the user typed, `refine`
lets the model win for the fields it returns.

Ships headless. Each app owns its own design tokens, so the package
exports logic and a hook and no markup.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-04 14:51:28 +02:00