@acid-cat/cli 0.12.0 → 0.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -17,7 +17,7 @@ Install it as a development dependency, and run it with `pnpm exec acid-cat …`
17
17
  pnpm add -D @acid-cat/cli
18
18
  ```
19
19
 
20
- It needs Node.js 24 or later. `acid-cat conform --webmcp <url>` also needs [Playwright](https://playwright.dev) and Chromium.
20
+ It ignores a first argument `--`, which package runners such as `pnpm` and `npx` pass to it: `pnpm acid-cat -- check` is `acid-cat check`. It needs Node.js 24 or later. `acid-cat conform --webmcp <url>` also needs [Playwright](https://playwright.dev) and Chromium.
21
21
 
22
22
  ## Output
23
23
 
@@ -1,3 +1,3 @@
1
1
  // package.json
2
- var version = "0.12.0";
2
+ var version = "0.12.1";
3
3
  export { version };
package/dist/main.js CHANGED
@@ -184,10 +184,13 @@ const conformCommand = Command.make("conform", {
184
184
  yield* Console.log(`\n${results.length - failed} passed, ${failed} failed${warnings === 0 ? "" : `, ${warnings} with a warning`}.`);
185
185
  if (failed > 0) return yield* fail;
186
186
  }, Effect.catchTag("UnreadableFile", reportUnreadable))).pipe(Command.withDescription("Test a running implementation of the conformance fixture through its bindings."));
187
- Command.make("acid-cat").pipe(Command.withDescription("Check, format and view AcidCat catalogs, and test implementations."), Command.withSubcommands([
187
+ const acidCat = Command.make("acid-cat").pipe(Command.withDescription("Check, format and view AcidCat catalogs, and test implementations."), Command.withSubcommands([
188
188
  checkCommand,
189
189
  formatCommand,
190
190
  viewCommand,
191
191
  conformCommand
192
- ])).pipe(Command.run({ version }), Effect.provide(NodeServices.layer), NodeRuntime.runMain);
192
+ ]));
193
+ const args = process.argv.slice(2);
194
+ const programArguments = args[0] === "--" ? args.slice(1) : args;
195
+ Command.runWith(acidCat, { version })(programArguments).pipe(Effect.provide(NodeServices.layer), NodeRuntime.runMain);
193
196
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acid-cat/cli",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "description": "The AcidCat command line: check, format and view catalogs, and test implementations.",
5
5
  "keywords": [
6
6
  "acidcat",
@@ -37,8 +37,8 @@
37
37
  "access": "public"
38
38
  },
39
39
  "dependencies": {
40
- "@acid-cat/catalog": "0.12.0",
41
- "@acid-cat/spec-ts": "0.12.0",
40
+ "@acid-cat/catalog": "0.12.1",
41
+ "@acid-cat/spec-ts": "0.12.1",
42
42
  "@effect/platform-node": "^4.1.3",
43
43
  "@effect/platform-node-shared": "^4.1.3",
44
44
  "@modelcontextprotocol/client": "2.4.0",