Repository navigation
feat(cli)!: rewrite the CLI with AcidCat and add an MCP server - #99
Open
Hebilicious wants to merge 3 commits into
Open
Hebilicious wants to merge 3 commits into
Hebilicious wants to merge 3 commits into
Conversation
🦋 Changeset detectedLatest commit: 2f02abf The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
cssforge | 2f02abf | Commit Preview URL Branch Preview URL |
Nov 16 2026, 11:59 AM |
One AcidCat application (src/app.ts) declares the capabilities tokens.build, tokens.generate and config.check, and the event tokens.built. The command line, the MCP server (`cssforge mcp`, stdio) and typed handles for a future user interface (`@hebilicious/cssforge/app`) all come from it. The catalog is committed as cssforge.acidcat.json and checked against the application. The operations live in src/forge.ts and return reports instead of logging, so every surface and the kept build()/watch() API share them. The schemas are JSON Schema documents validated by a small local validator, so the catalog and the runtime check cannot disagree. `cssforge [flags]` with no command still builds, and -w, -m, --prefix and comma separated --color-formats keep working. citty is removed.
Hebilicious
force-pushed
the
feat/acidcat-cli
branch
from
November 16, 2026 10:25
7a14241 to
df9415b
Compare
…t docs - Remove the app target and the ./app export: nothing uses them yet. - Add @acid-cat/cli as a dev dependency, so catalog-check runs a locked version instead of fetching it with npx. - The README no longer names the implementation, and says that agents can use the CLI as well as the MCP server.
- Remove the flags-only command line (`cssforge [flags]`, -w, -m, --prefix, comma separated --color-formats) and its translation layer. - Remove build(), watch(), parseColorFormats() and writeFileRecursive() from the ./cli export, with the tests that only covered them. - Rename src/app.ts to src/capabilities.ts, add the `library` target (TypeScript binding), and export it as @hebilicious/cssforge/capabilities with createSession and CallFailureError. - Drop a leading `--`, which `pnpm run cssforge -- <args>` passes on. - Move the examples, the docs project, the smoke tests and the docs to `cssforge tokens build`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rewrites the
cssforgeCLI on AcidCat. One declaration serves the command line, an MCP server, and typed calls from code.What changes
packages/cssforge/src/capabilities.tsdeclares the capabilitiestokens.build,tokens.generate(read only) andconfig.check(read only), and the eventtokens.built(watch). Targets:cli,mcp, andlibrary(the TypeScript binding).packages/cssforge/src/forge.tsholds the operations: load, check, generate, build and watch. They return reports and throw a typedForgeError(ConfigLoadFailed,InvalidConfig,WriteFailed). They never log.packages/cssforge/src/schema.tsmakes Standard Schemas from JSON Schema documents, with a small validator for the subset the catalog uses. One document gives both the catalog and the runtime check.packages/cssforge/src/cli.tsis only the entry point and themcpcommand:cssforge tokens build | tokens generate | config check | watch tokens.built | list | mcp.@hebilicious/cssforge/capabilities(npm and JSR) exports the application,createSession,CallFailureErrorandtoJsonSchemafor thelibrarytarget.cssforge.acidcat.jsonis the committed catalog.moon run cssforge:catalog-writewrites it,tests/acidcat.test.tsfails when it is stale, andmoon run cssforge:catalog-checkrunsacid-cat check --strict(@acid-cat/cliis a dev dependency). It ships in the npm package.skills/cssforge,packages/docs/agents.mdand the changeset use the new commands.cittyis removed, and@acid-cat/core-ts@0.11.1is added.Breaking
cssforge [flags]without a command no longer builds: runcssforge tokens build [flags].-w,-mand--prefixare removed (usecssforge watch tokens.built,--modeand--root).--color-formatstakes one format per flag or a JSON array.diagnosticsof the result. An invalid flag exits with3, and an interrupted watch exits with130.build(),watch(),parseColorFormats(),writeFileRecursive()and the citty default export of@hebilicious/cssforge/cliare removed. Usetokens.buildthrough@hebilicious/cssforge/capabilities.Checks
moon run cssforge:typecheck cssforge:format cssforge:test cssforge:catalog-check cssforge:readme-check unplugin:typecheck unplugin:test cssforge:smoke-test cssforge:jsr-dry-run cssforge:jsr-smokepasses: 233 cssforge tests and 8 unplugin tests.vanilla-vue-css:cssforge-generateanddocs:generaterun with the new command.Stacked on #98 (moon 2.6.5, and the browser e2e runner fix).