@agent-ix/quoin 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.
@@ -1,4 +1,4 @@
1
- import { t as e } from "./version-Be_NtSa4.js";
1
+ import { t as e } from "./version-BWpgJrPz.js";
2
2
  import { BaseCommand as t, maybeOfferUpdate as n } from "@agent-ix/ix-cli-core";
3
3
  import { existsSync as r, readFileSync as i, readdirSync as a, statSync as o } from "node:fs";
4
4
  import { basename as s, join as c, resolve as l } from "node:path";
package/dist/cli.d.ts CHANGED
@@ -1,5 +1,20 @@
1
1
  import { RunnerLoadOptions } from '@agent-ix/ix-cli-core';
2
2
  export { packageVersion, resolveVersion } from './version.js';
3
+ /**
4
+ * Root usage: the bin name plus the top-level command ids oclif discovered.
5
+ *
6
+ * Built from the resolved config rather than a hand-maintained string, so a
7
+ * command added to `dist/commands` (or contributed by a core plugin) appears
8
+ * here without a second edit — the failure mode FR-003's delegation to oclif
9
+ * exists to avoid.
10
+ */
11
+ export declare function rootUsage(config: {
12
+ bin: string;
13
+ commands: ReadonlyArray<{
14
+ id: string;
15
+ hidden?: boolean;
16
+ }>;
17
+ }): string;
3
18
  export declare function isVersionRequest(argv: readonly string[]): boolean;
4
19
  /**
5
20
  * quoin entry point.
package/dist/cli.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAIpE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAS9D,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAEjE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,IAAI,CACxB,IAAI,EAAE,MAAM,EAAE,EACd,OAAO,CAAC,EAAE,iBAAiB,GAC1B,OAAO,CAAC,IAAI,CAAC,CAMf"}
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAIpE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9D;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,aAAa,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;CAC3D,GAAG,MAAM,CAST;AASD,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAEjE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,IAAI,CACxB,IAAI,EAAE,MAAM,EAAE,EACd,OAAO,CAAC,EAAE,iBAAiB,GAC1B,OAAO,CAAC,IAAI,CAAC,CAMf"}
package/dist/cli.js CHANGED
@@ -1,20 +1,24 @@
1
- import { n as e, t } from "./version-Be_NtSa4.js";
1
+ import { n as e, t } from "./version-BWpgJrPz.js";
2
2
  import { run as n } from "@agent-ix/ix-cli-core";
3
3
  //#region src/cli.ts
4
- var r = new Set([
4
+ function r(e) {
5
+ let t = [...new Set(e.commands.filter((e) => !e.hidden).map((e) => e.id.split(":")[0]))].sort();
6
+ return `Usage: ${e.bin} <command> [options]\n\nCommands: ${t.join(", ")}\n\nRun \`${e.bin} <command> --help\` for details.`;
7
+ }
8
+ var i = new Set([
5
9
  "--version",
6
10
  "-v",
7
11
  "version"
8
12
  ]);
9
- function i(e) {
10
- return e.length > 0 && r.has(e[0]);
13
+ function a(e) {
14
+ return e.length > 0 && i.has(e[0]);
11
15
  }
12
- async function a(e, r) {
13
- if (i(e)) {
16
+ async function o(e, r) {
17
+ if (a(e)) {
14
18
  console.log(t());
15
19
  return;
16
20
  }
17
21
  await n(e, r);
18
22
  }
19
23
  //#endregion
20
- export { i as isVersionRequest, a as main, t as packageVersion, e as resolveVersion };
24
+ export { a as isVersionRequest, o as main, t as packageVersion, e as resolveVersion, r as rootUsage };
@@ -1,5 +1,5 @@
1
- import { o as e, t } from "../../base-DGA47VMM.js";
2
- import { n } from "../../modules-CCvL41O_.js";
1
+ import { o as e, t } from "../../base-CVgcB7WY.js";
2
+ import { n } from "../../modules-BORtSWpQ.js";
3
3
  import { Flags as r } from "@oclif/core";
4
4
  //#region src/commands/catalog/list.ts
5
5
  var i = class i extends t {
@@ -1,5 +1,5 @@
1
- import { i as e, o as t, t as n } from "../../base-DGA47VMM.js";
2
- import { n as r } from "../../modules-CCvL41O_.js";
1
+ import { i as e, o as t, t as n } from "../../base-CVgcB7WY.js";
2
+ import { n as r } from "../../modules-BORtSWpQ.js";
3
3
  import { Args as i, Flags as a } from "@oclif/core";
4
4
  //#region src/commands/catalog/show.ts
5
5
  var o = class o extends n {
@@ -1,5 +1,5 @@
1
- import { o as e, t } from "../../base-DGA47VMM.js";
2
- import { n } from "../../modules-CCvL41O_.js";
1
+ import { o as e, t } from "../../base-CVgcB7WY.js";
2
+ import { n } from "../../modules-BORtSWpQ.js";
3
3
  import { Flags as r } from "@oclif/core";
4
4
  //#region src/commands/catalog/validate.ts
5
5
  var i = class i extends t {
@@ -1,4 +1,4 @@
1
- import { t as e } from "../../base-DGA47VMM.js";
1
+ import { t as e } from "../../base-CVgcB7WY.js";
2
2
  import { a as t } from "../../config-schema-Dp-vlxuR.js";
3
3
  import { runConfigDoctor as n } from "@agent-ix/ix-cli-core";
4
4
  //#region src/commands/config/doctor.ts
@@ -1,4 +1,4 @@
1
- import { t as e } from "../../base-DGA47VMM.js";
1
+ import { t as e } from "../../base-CVgcB7WY.js";
2
2
  import { a as t, n } from "../../config-schema-Dp-vlxuR.js";
3
3
  import { runConfigEdit as r } from "@agent-ix/ix-cli-core";
4
4
  //#region src/commands/config/edit.ts
@@ -1,4 +1,4 @@
1
- import { t as e } from "../../base-DGA47VMM.js";
1
+ import { t as e } from "../../base-CVgcB7WY.js";
2
2
  import { a as t, n } from "../../config-schema-Dp-vlxuR.js";
3
3
  import { runConfigGet as r } from "@agent-ix/ix-cli-core";
4
4
  import { Args as i } from "@oclif/core";
@@ -1,4 +1,4 @@
1
- import { t as e } from "../../base-DGA47VMM.js";
1
+ import { t as e } from "../../base-CVgcB7WY.js";
2
2
  import { a as t, n } from "../../config-schema-Dp-vlxuR.js";
3
3
  import { runConfigSet as r } from "@agent-ix/ix-cli-core";
4
4
  import { Args as i } from "@oclif/core";
@@ -1,4 +1,4 @@
1
- import { t as e } from "../flow-command-CPS23AjI.js";
1
+ import { t as e } from "../flow-command-C6aaG6Jf.js";
2
2
  //#region src/commands/matrix.ts
3
3
  var t = class t extends e {
4
4
  static summary = "Build or update a requirements test matrix.";
@@ -1,6 +1,6 @@
1
- import { t as e } from "../../base-DGA47VMM.js";
2
- import { r as t } from "../../plugins-ByvihMa0.js";
3
- import { n } from "../../modules-CCvL41O_.js";
1
+ import { t as e } from "../../base-CVgcB7WY.js";
2
+ import { r as t } from "../../plugins-SrgT7Vs-.js";
3
+ import { n } from "../../modules-BORtSWpQ.js";
4
4
  //#region src/commands/module/ensure-defaults.ts
5
5
  var r = class r extends e {
6
6
  static summary = "Idempotently install the default spec module set.";
@@ -1,5 +1,5 @@
1
- import { t as e } from "../../base-DGA47VMM.js";
2
- import { n as t } from "../../plugins-ByvihMa0.js";
1
+ import { t as e } from "../../base-CVgcB7WY.js";
2
+ import { n as t } from "../../plugins-SrgT7Vs-.js";
3
3
  import { Args as n } from "@oclif/core";
4
4
  //#region src/commands/module/install.ts
5
5
  var r = class r extends e {
@@ -1,5 +1,5 @@
1
- import { t as e } from "../../base-DGA47VMM.js";
2
- import { r as t } from "../../plugins-ByvihMa0.js";
1
+ import { t as e } from "../../base-CVgcB7WY.js";
2
+ import { r as t } from "../../plugins-SrgT7Vs-.js";
3
3
  //#region src/commands/module/list.ts
4
4
  var n = class n extends e {
5
5
  static summary = "List installed spec modules.";
@@ -1,5 +1,5 @@
1
- import { t as e } from "../../base-DGA47VMM.js";
2
- import { a as t } from "../../plugins-ByvihMa0.js";
1
+ import { t as e } from "../../base-CVgcB7WY.js";
2
+ import { a as t } from "../../plugins-SrgT7Vs-.js";
3
3
  import { Args as n } from "@oclif/core";
4
4
  //#region src/commands/module/remove.ts
5
5
  var r = class r extends e {
@@ -1,4 +1,4 @@
1
- import { t as e } from "../flow-command-CPS23AjI.js";
1
+ import { t as e } from "../flow-command-C6aaG6Jf.js";
2
2
  //#region src/commands/review.ts
3
3
  var t = class t extends e {
4
4
  static summary = "Run a composite spec review workflow.";
@@ -1,4 +1,4 @@
1
- import { t as e } from "../flow-command-CPS23AjI.js";
1
+ import { t as e } from "../flow-command-C6aaG6Jf.js";
2
2
  //#region src/commands/to-plan.ts
3
3
  var t = class t extends e {
4
4
  static summary = "Convert accepted requirements into an implementation plan.";
@@ -1,5 +1,5 @@
1
- import { t as e } from "../version-Be_NtSa4.js";
2
- import { t } from "../base-DGA47VMM.js";
1
+ import { t as e } from "../version-BWpgJrPz.js";
2
+ import { t } from "../base-CVgcB7WY.js";
3
3
  import { runSelfUpdate as n } from "@agent-ix/ix-cli-core";
4
4
  import { Flags as r } from "@oclif/core";
5
5
  //#region src/commands/update.ts
@@ -1,6 +1,6 @@
1
- import { o as e, t } from "../base-DGA47VMM.js";
2
- import { n } from "../modules-CCvL41O_.js";
3
- import { n as r, r as i, t as a } from "../write-xs9kemgB.js";
1
+ import { o as e, t } from "../base-CVgcB7WY.js";
2
+ import { n } from "../modules-BORtSWpQ.js";
3
+ import { n as r, r as i, t as a } from "../write-R0lAN4cR.js";
4
4
  import { Args as o, Flags as s } from "@oclif/core";
5
5
  //#region src/commands/write.ts
6
6
  var c = class c extends t {
@@ -1,4 +1,4 @@
1
- import { a as e, t } from "./base-DGA47VMM.js";
1
+ import { a as e, t } from "./base-CVgcB7WY.js";
2
2
  import { existsSync as n } from "node:fs";
3
3
  import { dirname as r, join as i, resolve as a } from "node:path";
4
4
  import { fileURLToPath as o } from "node:url";
@@ -0,0 +1,23 @@
1
+ import { Hook } from '@oclif/core';
2
+ /**
3
+ * `command_not_found` hook — attach the root usage to an unknown command
4
+ * (FR-005-AC-1).
5
+ *
6
+ * The hand-rolled dispatcher FR-026 replaced printed usage on an unknown
7
+ * command. The oclif runner reports only `command <x> not found`, which names
8
+ * the mistake but not the remedy, leaving NFR-003 unmet on the one path a
9
+ * mistyping user is guaranteed to hit.
10
+ *
11
+ * This is oclif's own extension point for that: `Config.runCommand` invokes it
12
+ * when no command matches, and rethrows a hook failure in place of its default
13
+ * error. So the message is fixed where oclif expects it to be fixed — no error
14
+ * sniffing (the thrown `CLIError` carries no stable discriminator), and no
15
+ * bypassing `execute`, whose `flush()` the shipped bin needs so piped output is
16
+ * not truncated on exit.
17
+ *
18
+ * It fires on the library path too: `run(argv, config)` reaches the same
19
+ * `Config.runCommand`.
20
+ */
21
+ declare const hook: Hook<"command_not_found">;
22
+ export default hook;
23
+ //# sourceMappingURL=command-not-found.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command-not-found.d.ts","sourceRoot":"","sources":["../../src/hooks/command-not-found.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,IAAI,EAAE,MAAM,aAAa,CAAC;AAIhD;;;;;;;;;;;;;;;;;;GAkBG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,mBAAmB,CAKnC,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { rootUsage as e } from "../cli.js";
2
+ import { Errors as t } from "@oclif/core";
3
+ //#region src/hooks/command-not-found.ts
4
+ var n = async function(n) {
5
+ throw new t.CLIError(`command ${n.id} not found\n\n${e(this.config)}`, { exit: 2 });
6
+ };
7
+ //#endregion
8
+ export { n as default };
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
- import { n as e, t } from "./version-Be_NtSa4.js";
1
+ import { n as e, t } from "./version-BWpgJrPz.js";
2
2
  import { isVersionRequest as n, main as r } from "./cli.js";
3
- import { i, n as a, o, r as s, t as c } from "./base-DGA47VMM.js";
4
- import { a as l, i as u, n as d, r as f } from "./plugins-ByvihMa0.js";
5
- import { n as p, t as m } from "./modules-CCvL41O_.js";
3
+ import { i, n as a, o, r as s, t as c } from "./base-CVgcB7WY.js";
4
+ import { a as l, i as u, n as d, r as f } from "./plugins-SrgT7Vs-.js";
5
+ import { n as p, t as m } from "./modules-BORtSWpQ.js";
6
6
  import { i as h, n as g, r as _, t as v } from "./config-schema-Dp-vlxuR.js";
7
- import { a as y, i as b, n as x, o as S, r as C, t as w } from "./write-xs9kemgB.js";
8
- import { t as T } from "./flow-command-CPS23AjI.js";
7
+ import { a as y, i as b, n as x, o as S, r as C, t as w } from "./write-R0lAN4cR.js";
8
+ import { t as T } from "./flow-command-C6aaG6Jf.js";
9
9
  export { T as FlowCommand, v as QUOIN_ENV_BINDINGS, g as QUOIN_PLUGIN_ID, c as QuoinCommand, _ as QuoinConfigSchema, b as UNRESOLVED_ORG_MESSAGE, w as createAuthoringPack, a as defaultModuleRoots, m as defaultModulesManifest, p as ensureDefaultModules, s as filamentModulesDir, i as findCatalogEntry, x as formatAuthoringPack, d as installPlugin, n as isVersionRequest, h as ixSchema, f as listPlugins, o as loadCatalog, r as main, y as originOrg, t as packageVersion, u as parseSourceArg, C as parseTypeList, l as removePlugin, S as resolveOrg, e as resolveVersion };
@@ -1,5 +1,5 @@
1
- import { a as e } from "./base-DGA47VMM.js";
2
- import { t } from "./plugins-ByvihMa0.js";
1
+ import { a as e } from "./base-CVgcB7WY.js";
2
+ import { t } from "./plugins-SrgT7Vs-.js";
3
3
  import { readFileSync as n } from "node:fs";
4
4
  import { dirname as r, join as i } from "node:path";
5
5
  import { fileURLToPath as a } from "node:url";
@@ -1,4 +1,4 @@
1
- import { a as e, r as t } from "./base-DGA47VMM.js";
1
+ import { a as e, r as t } from "./base-CVgcB7WY.js";
2
2
  import { existsSync as n, readFileSync as r, rmSync as i } from "node:fs";
3
3
  import { basename as a, join as o } from "node:path";
4
4
  import { parse as s } from "yaml";
@@ -11,7 +11,7 @@ function a(e) {
11
11
  return e || i();
12
12
  }
13
13
  function o() {
14
- return a("0.12.0");
14
+ return a("0.12.1");
15
15
  }
16
16
  //#endregion
17
17
  export { a as n, o as t };
@@ -1,4 +1,4 @@
1
- import { i as e } from "./base-DGA47VMM.js";
1
+ import { i as e } from "./base-CVgcB7WY.js";
2
2
  import { n as t, r as n, t as r } from "./config-schema-Dp-vlxuR.js";
3
3
  import { ConfigService as i } from "@agent-ix/ix-cli-core";
4
4
  import { existsSync as a, readFileSync as o, statSync as s } from "node:fs";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@agent-ix/quoin",
3
3
  "description": "Spec-driven development for Claude Code — author validated, ISO/IEC/IEEE 29148-aligned specs, then plan and build against them.",
4
- "version": "0.12.0",
4
+ "version": "0.12.1",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "files": [
@@ -42,7 +42,10 @@
42
42
  },
43
43
  "plugins": [
44
44
  "@agent-ix/filament-plan-sync"
45
- ]
45
+ ],
46
+ "hooks": {
47
+ "command_not_found": "./dist/hooks/command-not-found"
48
+ }
46
49
  },
47
50
  "packageManager": "pnpm@10.33.4",
48
51
  "scripts": {