@agent-ix/quoin 0.5.5 → 0.6.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.
Files changed (112) hide show
  1. package/.codex-plugin/plugin.json +18 -1
  2. package/bin/quoin.js +11 -5
  3. package/dist/base-CAzmaNuU.js +137 -0
  4. package/dist/base.d.ts +23 -0
  5. package/dist/base.d.ts.map +1 -0
  6. package/dist/cli.d.ts +17 -3
  7. package/dist/cli.d.ts.map +1 -1
  8. package/dist/cli.js +20 -2
  9. package/dist/commands/catalog/index.d.ts +2 -0
  10. package/dist/commands/catalog/index.d.ts.map +1 -0
  11. package/dist/commands/catalog/index.js +2 -0
  12. package/dist/commands/catalog/list.d.ts +11 -0
  13. package/dist/commands/catalog/list.d.ts.map +1 -0
  14. package/dist/commands/catalog/list.js +22 -0
  15. package/dist/commands/catalog/show.d.ts +13 -0
  16. package/dist/commands/catalog/show.d.ts.map +1 -0
  17. package/dist/commands/catalog/show.js +25 -0
  18. package/dist/commands/catalog/validate.d.ts +10 -0
  19. package/dist/commands/catalog/validate.d.ts.map +1 -0
  20. package/dist/commands/catalog/validate.js +27 -0
  21. package/dist/commands/config/doctor.d.ts +7 -0
  22. package/dist/commands/config/doctor.d.ts.map +1 -0
  23. package/dist/commands/config/doctor.js +15 -0
  24. package/dist/commands/config/edit.d.ts +7 -0
  25. package/dist/commands/config/edit.d.ts.map +1 -0
  26. package/dist/commands/config/edit.js +13 -0
  27. package/dist/commands/config/get.d.ts +11 -0
  28. package/dist/commands/config/get.d.ts.map +1 -0
  29. package/dist/commands/config/get.js +20 -0
  30. package/dist/commands/config/index.d.ts +2 -0
  31. package/dist/commands/config/index.d.ts.map +1 -0
  32. package/dist/commands/config/index.js +2 -0
  33. package/dist/commands/config/set.d.ts +12 -0
  34. package/dist/commands/config/set.d.ts.map +1 -0
  35. package/dist/commands/config/set.js +26 -0
  36. package/dist/commands/matrix.d.ts +14 -0
  37. package/dist/commands/matrix.d.ts.map +1 -0
  38. package/dist/commands/matrix.js +15 -0
  39. package/dist/commands/module/ensure-defaults.d.ts +8 -0
  40. package/dist/commands/module/ensure-defaults.d.ts.map +1 -0
  41. package/dist/commands/module/ensure-defaults.js +17 -0
  42. package/dist/commands/module/index.d.ts +2 -0
  43. package/dist/commands/module/index.d.ts.map +1 -0
  44. package/dist/commands/module/index.js +2 -0
  45. package/dist/commands/module/install.d.ts +11 -0
  46. package/dist/commands/module/install.d.ts.map +1 -0
  47. package/dist/commands/module/install.js +22 -0
  48. package/dist/commands/module/list.d.ts +8 -0
  49. package/dist/commands/module/list.d.ts.map +1 -0
  50. package/dist/commands/module/list.js +13 -0
  51. package/dist/commands/module/remove.d.ts +10 -0
  52. package/dist/commands/module/remove.d.ts.map +1 -0
  53. package/dist/commands/module/remove.js +16 -0
  54. package/dist/commands/plugin/deprecation.d.ts +10 -0
  55. package/dist/commands/plugin/deprecation.d.ts.map +1 -0
  56. package/dist/commands/plugin/ensure-defaults.d.ts +8 -0
  57. package/dist/commands/plugin/ensure-defaults.d.ts.map +1 -0
  58. package/dist/commands/plugin/ensure-defaults.js +12 -0
  59. package/dist/commands/plugin/index.d.ts +2 -0
  60. package/dist/commands/plugin/index.d.ts.map +1 -0
  61. package/dist/commands/plugin/index.js +2 -0
  62. package/dist/commands/plugin/install.d.ts +8 -0
  63. package/dist/commands/plugin/install.d.ts.map +1 -0
  64. package/dist/commands/plugin/install.js +12 -0
  65. package/dist/commands/plugin/list.d.ts +8 -0
  66. package/dist/commands/plugin/list.d.ts.map +1 -0
  67. package/dist/commands/plugin/list.js +12 -0
  68. package/dist/commands/plugin/remove.d.ts +8 -0
  69. package/dist/commands/plugin/remove.d.ts.map +1 -0
  70. package/dist/commands/plugin/remove.js +12 -0
  71. package/dist/commands/review.d.ts +14 -0
  72. package/dist/commands/review.d.ts.map +1 -0
  73. package/dist/commands/review.js +15 -0
  74. package/dist/commands/to-plan.d.ts +14 -0
  75. package/dist/commands/to-plan.d.ts.map +1 -0
  76. package/dist/commands/to-plan.js +15 -0
  77. package/dist/commands/update.d.ts +13 -0
  78. package/dist/commands/update.d.ts.map +1 -0
  79. package/dist/commands/update.js +34 -0
  80. package/dist/commands/write.d.ts +16 -0
  81. package/dist/commands/write.d.ts.map +1 -0
  82. package/dist/commands/write.js +33 -0
  83. package/dist/config-schema-Dp-vlxuR.js +13 -0
  84. package/dist/config-schema.d.ts +52 -0
  85. package/dist/config-schema.d.ts.map +1 -0
  86. package/dist/deprecation-fRxUHoxv.js +4 -0
  87. package/dist/flow-command-D7JOds7b.js +88 -0
  88. package/dist/flow-command.d.ts +25 -0
  89. package/dist/flow-command.d.ts.map +1 -0
  90. package/dist/index.d.ts +6 -1
  91. package/dist/index.d.ts.map +1 -1
  92. package/dist/index.js +9 -2
  93. package/dist/modules-D9lVpiw3.js +22 -0
  94. package/dist/org.d.ts +61 -0
  95. package/dist/org.d.ts.map +1 -0
  96. package/dist/plugins-CsaHlaZM.js +77 -0
  97. package/dist/version-zB73lJeB.js +17 -0
  98. package/dist/version.d.ts +3 -0
  99. package/dist/version.d.ts.map +1 -0
  100. package/dist/write-CYzd_-Fx.js +156 -0
  101. package/dist/write.d.ts +7 -1
  102. package/dist/write.d.ts.map +1 -1
  103. package/package.json +34 -3
  104. package/skills/gap-analysis/references/step-3-matrix-verification.md +1 -1
  105. package/skills/spec-app-review/references/checklist.md +4 -1
  106. package/skills/spec-matrix/SKILL.md +66 -0
  107. package/skills/spec-matrix/assets/test-matrix-example.md +8 -1
  108. package/skills/spec-matrix/assets/test-matrix-template.md +8 -2
  109. package/skills/specify/SKILL.md +5 -0
  110. package/skills/specify/assets/app-spec-template.md +1 -1
  111. package/skills/specify/assets/spec-template.md +1 -1
  112. package/dist/cli-DOC_L1Lg.js +0 -461
@@ -2,9 +2,26 @@
2
2
  "name": "quoin",
3
3
  "version": "0.1.0",
4
4
  "description": "Spec authoring, review, matrix, and planning skills for Agent IX.",
5
+ "author": {
6
+ "name": "Agent IX",
7
+ "url": "https://github.com/agent-ix"
8
+ },
9
+ "homepage": "https://github.com/agent-ix/quoin",
10
+ "repository": "https://github.com/agent-ix/quoin",
11
+ "license": "MIT",
12
+ "keywords": ["specifications", "requirements", "planning", "agent-skills"],
5
13
  "skills": "./skills/",
6
14
  "interface": {
7
15
  "displayName": "Quoin",
8
- "category": "Productivity"
16
+ "shortDescription": "Spec-driven development skills for Codex.",
17
+ "longDescription": "Quoin adds skills for authoring, reviewing, tracing, and planning software specifications.",
18
+ "developerName": "Agent IX",
19
+ "category": "Productivity",
20
+ "capabilities": ["Skills", "Planning", "Review", "Write"],
21
+ "defaultPrompt": [
22
+ "Specify a feature with Quoin.",
23
+ "Review my spec for gaps.",
24
+ "Turn requirements into a plan."
25
+ ]
9
26
  }
10
27
  }
package/bin/quoin.js CHANGED
@@ -1,8 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { main } from "../dist/cli.js";
3
+ import { execute } from "@agent-ix/ix-cli-core";
4
4
 
5
- main(process.argv.slice(2)).catch((err) => {
6
- console.error(err instanceof Error ? err.message : String(err));
7
- process.exitCode = 1;
8
- });
5
+ import { isVersionRequest, packageVersion } from "../dist/cli.js";
6
+
7
+ const argv = process.argv.slice(2);
8
+
9
+ // Preserve quoin's bare build-time version output ahead of the oclif runner.
10
+ if (isVersionRequest(argv)) {
11
+ console.log(packageVersion());
12
+ } else {
13
+ await execute({ dir: import.meta.url });
14
+ }
@@ -0,0 +1,137 @@
1
+ import { t as e } from "./version-zB73lJeB.js";
2
+ import { BaseCommand as t, maybeOfferUpdate as n } from "@agent-ix/ix-cli-core";
3
+ import { existsSync as r, readFileSync as i, readdirSync as a, statSync as o } from "node:fs";
4
+ import { basename as s, join as c, resolve as l } from "node:path";
5
+ import { homedir as u } from "node:os";
6
+ import { parse as d } from "yaml";
7
+ //#region src/catalog.ts
8
+ function f() {
9
+ return process.env.IX_HOME && process.env.IX_HOME.length > 0 ? process.env.IX_HOME : c(u(), ".ix");
10
+ }
11
+ function p(e = f()) {
12
+ return c(e, "filament", "modules");
13
+ }
14
+ function m(e = f()) {
15
+ let t = [], n = process.env.QUOIN_MODULE_PATHS;
16
+ n && t.push(...n.split(":").filter(Boolean));
17
+ let i = p(e);
18
+ if (r(i)) for (let e of a(i)) t.push(c(i, e));
19
+ return t;
20
+ }
21
+ function h(e = m()) {
22
+ let t = [], n = [], r = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set();
23
+ for (let o of e) {
24
+ let e = v(o);
25
+ if (!e || r.has(e)) continue;
26
+ r.add(e);
27
+ let l = d(i(c(e, "manifest.yaml"), "utf8")), u = x(l.name) ?? s(e);
28
+ if (a.has(u)) continue;
29
+ a.add(u);
30
+ let f = b(l.artifact_types), p = b(l.object_types);
31
+ t.push({
32
+ name: u,
33
+ version: x(l.version),
34
+ root: e,
35
+ artifactTypes: f.map((e) => String(e.name)),
36
+ objectTypes: p.map((e) => String(e.name))
37
+ });
38
+ for (let t of f) {
39
+ let r = String(t.name), i = x(t.frontmatter_schema_ref);
40
+ n.push({
41
+ name: r,
42
+ kind: "artifact",
43
+ moduleName: u,
44
+ moduleRoot: e,
45
+ schemaRef: i,
46
+ schemaPath: i ? c(e, i) : void 0,
47
+ skeletonPath: y(e, r)
48
+ });
49
+ }
50
+ for (let t of p) {
51
+ let r = String(t.name);
52
+ n.push({
53
+ name: r,
54
+ kind: "object",
55
+ moduleName: u,
56
+ moduleRoot: e,
57
+ skeletonPath: y(e, r)
58
+ });
59
+ }
60
+ }
61
+ return {
62
+ modules: t,
63
+ entries: n,
64
+ duplicates: S(n)
65
+ };
66
+ }
67
+ function g(e, t) {
68
+ let n = _(t);
69
+ return e.entries.find((e) => _(e.name) === n);
70
+ }
71
+ function _(e) {
72
+ return e.toLowerCase();
73
+ }
74
+ function v(e) {
75
+ let t = l(e);
76
+ if (r(t)) {
77
+ if (r(c(t, "manifest.yaml"))) return t;
78
+ if (o(t).isDirectory()) for (let e of a(t)) {
79
+ let n = c(t, e);
80
+ if (r(c(n, "manifest.yaml"))) return n;
81
+ }
82
+ }
83
+ }
84
+ function y(e, t) {
85
+ let n = c(e, "skeletons"), r;
86
+ try {
87
+ r = a(n);
88
+ } catch {
89
+ return;
90
+ }
91
+ let i = [`${t}.md`, `${t.toLowerCase()}.md`].find((e) => r.includes(e));
92
+ return i ? c(n, i) : void 0;
93
+ }
94
+ function b(e) {
95
+ return Array.isArray(e) ? e.filter((e) => !!e && typeof e == "object" && "name" in e) : [];
96
+ }
97
+ function x(e) {
98
+ return typeof e == "string" ? e : void 0;
99
+ }
100
+ function S(e) {
101
+ let t = /* @__PURE__ */ new Map();
102
+ for (let n of e) {
103
+ let e = `${n.kind}:${n.name}`, r = t.get(e) ?? /* @__PURE__ */ new Set();
104
+ r.add(n.moduleName), t.set(e, r);
105
+ }
106
+ return [...t.entries()].filter(([, e]) => e.size > 1).map(([e, t]) => {
107
+ let [n, r] = e.split(":");
108
+ return {
109
+ kind: n,
110
+ name: r,
111
+ modules: [...t].sort()
112
+ };
113
+ });
114
+ }
115
+ //#endregion
116
+ //#region src/base.ts
117
+ var C = class extends t {
118
+ skipUpdateNudge = !1;
119
+ home = "";
120
+ async init() {
121
+ await super.init();
122
+ let t = w(this.argv) ?? process.env.IX_CONFIG_ROOT;
123
+ this.home = typeof t == "string" && t.length > 0 ? t : f(), process.env.IX_HOME = this.home, !this.skipUpdateNudge && !this.argv.includes("--json") && await n({
124
+ packageName: "@agent-ix/quoin",
125
+ currentVersion: e()
126
+ });
127
+ }
128
+ };
129
+ function w(e) {
130
+ for (let t = 0; t < e.length; t++) {
131
+ let n = e[t];
132
+ if (n === "--config-root") return e[t + 1];
133
+ if (n.startsWith("--config-root=")) return n.slice(14);
134
+ }
135
+ }
136
+ //#endregion
137
+ export { f as a, g as i, m as n, h as o, p as r, C as t };
package/dist/base.d.ts ADDED
@@ -0,0 +1,23 @@
1
+ import { BaseCommand } from '@agent-ix/ix-cli-core';
2
+ /**
3
+ * Shared base for every quoin command.
4
+ *
5
+ * Extends ix-cli-core's {@link BaseCommand} (which owns the `--config-root` /
6
+ * `--no-project-config` global flags and the capability lifecycle) and adds the
7
+ * two cross-cutting concerns the legacy hand-rolled dispatcher used to apply to
8
+ * every invocation:
9
+ *
10
+ * 1. Resolve the quoin home (`--config-root` flag, else `IX_HOME`) and export
11
+ * it as `process.env.IX_HOME` so the catalog / module modules — which read
12
+ * `ixHome()` — observe the per-invocation override exactly as before.
13
+ * 2. Nudge toward a newer published quoin (throttled, interactive-only, silent
14
+ * in CI / under `--json` / for `update` itself). Never blocks or throws.
15
+ */
16
+ export declare abstract class QuoinCommand extends BaseCommand {
17
+ /** Commands that must not trigger the update nudge (e.g. `update`). */
18
+ protected skipUpdateNudge: boolean;
19
+ /** Resolved quoin home for this invocation. */
20
+ protected home: string;
21
+ init(): Promise<void>;
22
+ }
23
+ //# sourceMappingURL=base.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../src/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAoB,MAAM,uBAAuB,CAAC;AAKtE;;;;;;;;;;;;;GAaG;AACH,8BAAsB,YAAa,SAAQ,WAAW;IACpD,uEAAuE;IACvE,SAAS,CAAC,eAAe,UAAS;IAElC,+CAA+C;IAC/C,SAAS,CAAC,IAAI,SAAM;IAEE,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAkB5C"}
package/dist/cli.d.ts CHANGED
@@ -1,4 +1,18 @@
1
- export declare function main(argv: string[]): Promise<void>;
2
- export declare function resolveVersion(baked: string): string;
3
- export declare function packageVersion(): string;
1
+ import { RunnerLoadOptions } from '@agent-ix/ix-cli-core';
2
+ export { packageVersion, resolveVersion } from './version.js';
3
+ export declare function isVersionRequest(argv: readonly string[]): boolean;
4
+ /**
5
+ * quoin entry point.
6
+ *
7
+ * Replaces the legacy hand-rolled argv dispatcher: every command now runs as a
8
+ * `BaseCommand` subclass discovered and dispatched by the ix-cli-core oclif
9
+ * runner (FR-016). The only pre-dispatch concern retained here is the bare
10
+ * version print (above).
11
+ *
12
+ * @param argv argument vector (without the node/bin prefix)
13
+ * @param options oclif config source — a file URL (`import.meta.url`), a
14
+ * directory, or a pre-loaded `Config` (used by tests). Defaults to oclif's
15
+ * own resolution.
16
+ */
17
+ export declare function main(argv: string[], options?: RunnerLoadOptions): Promise<void>;
4
18
  //# sourceMappingURL=cli.d.ts.map
package/dist/cli.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAyMA,wBAAsB,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CA6CxD;AAoBD,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAGpD;AAED,wBAAgB,cAAc,IAAI,MAAM,CAEvC"}
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"}
package/dist/cli.js CHANGED
@@ -1,2 +1,20 @@
1
- import { n as e, r as t, t as n } from "./cli-DOC_L1Lg.js";
2
- export { n as main, e as packageVersion, t as resolveVersion };
1
+ import { n as e, t } from "./version-zB73lJeB.js";
2
+ import { run as n } from "@agent-ix/ix-cli-core";
3
+ //#region src/cli.ts
4
+ var r = new Set([
5
+ "--version",
6
+ "-v",
7
+ "version"
8
+ ]);
9
+ function i(e) {
10
+ return e.length > 0 && r.has(e[0]);
11
+ }
12
+ async function a(e, r) {
13
+ if (i(e)) {
14
+ console.log(t());
15
+ return;
16
+ }
17
+ await n(e, r);
18
+ }
19
+ //#endregion
20
+ export { i as isVersionRequest, a as main, t as packageVersion, e as resolveVersion };
@@ -0,0 +1,2 @@
1
+ export { default } from './list.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/catalog/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
@@ -0,0 +1,2 @@
1
+ import e from "./list.js";
2
+ export { e as default };
@@ -0,0 +1,11 @@
1
+ import { QuoinCommand } from '../../base.js';
2
+ export default class CatalogList extends QuoinCommand {
3
+ static summary: string;
4
+ static description: string;
5
+ static examples: string[];
6
+ static flags: {
7
+ json: import('@oclif/core/interfaces').BooleanFlag<boolean>;
8
+ };
9
+ run(): Promise<void>;
10
+ }
11
+ //# sourceMappingURL=list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/commands/catalog/list.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAI7C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,YAAY;IACnD,MAAM,CAAC,OAAO,SAAsD;IACpE,MAAM,CAAC,WAAW,SAK4D;IAE9E,MAAM,CAAC,QAAQ,WAAuD;IAEtE,MAAM,CAAC,KAAK;;MAEV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAY3B"}
@@ -0,0 +1,22 @@
1
+ import { o as e, t } from "../../base-CAzmaNuU.js";
2
+ import { n } from "../../modules-D9lVpiw3.js";
3
+ import { Flags as r } from "@oclif/core";
4
+ //#region src/commands/catalog/list.ts
5
+ var i = class i extends t {
6
+ static summary = "List the active artifact/object catalog modules.";
7
+ static description = "The catalog is assembled from, in order:\n 1. QUOIN_MODULE_PATHS\n 2. modules installed under ~/.ix/filament/modules\n\nThe default module set is installed there automatically on first catalog access,\nand updated by \"quoin module install\". The same directory is read by quire-rs.";
8
+ static examples = ["quoin catalog list", "quoin catalog list --json"];
9
+ static flags = { json: r.boolean({ description: "Emit the full catalog as JSON." }) };
10
+ async run() {
11
+ let { flags: t } = await this.parse(i);
12
+ n();
13
+ let r = e();
14
+ if (t.json) {
15
+ this.log(JSON.stringify(r, null, 2));
16
+ return;
17
+ }
18
+ for (let e of r.modules) this.log(`${e.name}@${e.version ?? "unknown"} ${e.root}`);
19
+ }
20
+ };
21
+ //#endregion
22
+ export { i as default };
@@ -0,0 +1,13 @@
1
+ import { QuoinCommand } from '../../base.js';
2
+ export default class CatalogShow extends QuoinCommand {
3
+ static summary: string;
4
+ static examples: string[];
5
+ static args: {
6
+ type: import('@oclif/core/interfaces').Arg<string | undefined, Record<string, unknown>>;
7
+ };
8
+ static flags: {
9
+ json: import('@oclif/core/interfaces').BooleanFlag<boolean>;
10
+ };
11
+ run(): Promise<void>;
12
+ }
13
+ //# sourceMappingURL=show.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"show.d.ts","sourceRoot":"","sources":["../../../src/commands/catalog/show.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAI7C,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,YAAY;IACnD,MAAM,CAAC,OAAO,SAA0D;IACxE,MAAM,CAAC,QAAQ,WAIb;IAEF,MAAM,CAAC,IAAI;;MAET;IAEF,MAAM,CAAC,KAAK;;MAEV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAc3B"}
@@ -0,0 +1,25 @@
1
+ import { i as e, o as t, t as n } from "../../base-CAzmaNuU.js";
2
+ import { n as r } from "../../modules-D9lVpiw3.js";
3
+ import { Args as i, Flags as a } from "@oclif/core";
4
+ //#region src/commands/catalog/show.ts
5
+ var o = class o extends n {
6
+ static summary = "Show a single artifact/object type from the catalog.";
7
+ static examples = [
8
+ "quoin catalog show FR",
9
+ "quoin catalog show entity",
10
+ "quoin catalog show FR --json"
11
+ ];
12
+ static args = { type: i.string({ description: "Artifact or object type name." }) };
13
+ static flags = { json: a.boolean({ description: "Emit the entry as JSON." }) };
14
+ async run() {
15
+ let { args: n, flags: i } = await this.parse(o);
16
+ r();
17
+ let a = t(), s = n.type;
18
+ if (!s) throw Error("catalog show requires <type>");
19
+ let c = e(a, s);
20
+ if (!c) throw Error(`catalog type not found: ${s}`);
21
+ this.log(i.json ? JSON.stringify(c, null, 2) : `${c.kind} ${c.name} from ${c.moduleName}\n${c.moduleRoot}`);
22
+ }
23
+ };
24
+ //#endregion
25
+ export { o as default };
@@ -0,0 +1,10 @@
1
+ import { QuoinCommand } from '../../base.js';
2
+ export default class CatalogValidate extends QuoinCommand {
3
+ static summary: string;
4
+ static examples: string[];
5
+ static flags: {
6
+ json: import('@oclif/core/interfaces').BooleanFlag<boolean>;
7
+ };
8
+ run(): Promise<void>;
9
+ }
10
+ //# sourceMappingURL=validate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../../src/commands/catalog/validate.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAI7C,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,YAAY;IACvD,MAAM,CAAC,OAAO,SAAyD;IACvE,MAAM,CAAC,QAAQ,WAA+D;IAE9E,MAAM,CAAC,KAAK;;MAEV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAiB3B"}
@@ -0,0 +1,27 @@
1
+ import { o as e, t } from "../../base-CAzmaNuU.js";
2
+ import { n } from "../../modules-D9lVpiw3.js";
3
+ import { Flags as r } from "@oclif/core";
4
+ //#region src/commands/catalog/validate.ts
5
+ var i = class i extends t {
6
+ static summary = "Validate the active catalog has no duplicate types.";
7
+ static examples = ["quoin catalog validate", "quoin catalog validate --json"];
8
+ static flags = { json: r.boolean({ description: "Emit the result as JSON." }) };
9
+ async run() {
10
+ let { flags: t } = await this.parse(i);
11
+ n();
12
+ let r = e();
13
+ if (r.duplicates.length > 0) {
14
+ this.logToStderr(JSON.stringify({
15
+ ok: !1,
16
+ duplicates: r.duplicates
17
+ }, null, 2)), process.exitCode = 1;
18
+ return;
19
+ }
20
+ this.log(t.json ? JSON.stringify({
21
+ ok: !0,
22
+ modules: r.modules.length
23
+ }, null, 2) : `catalog ok (${r.modules.length} modules)`);
24
+ }
25
+ };
26
+ //#endregion
27
+ export { i as default };
@@ -0,0 +1,7 @@
1
+ import { QuoinCommand } from '../../base.js';
2
+ export default class ConfigDoctor extends QuoinCommand {
3
+ static summary: string;
4
+ static description: string;
5
+ run(): Promise<void>;
6
+ }
7
+ //# sourceMappingURL=doctor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../../src/commands/config/doctor.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAG7C,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,YAAY;IACpD,MAAM,CAAC,OAAO,SAA2D;IACzE,MAAM,CAAC,WAAW,SAC+C;IAE3D,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAS3B"}
@@ -0,0 +1,15 @@
1
+ import { t as e } from "../../base-CAzmaNuU.js";
2
+ import { a as t } from "../../config-schema-Dp-vlxuR.js";
3
+ import { runConfigDoctor as n } from "@agent-ix/ix-cli-core";
4
+ //#region src/commands/config/doctor.ts
5
+ var r = class extends e {
6
+ static summary = "Report config files that failed to parse or validate.";
7
+ static description = "A malformed config never blocks a command -- schema defaults are used and the\nproblem is recorded instead. This is where those records surface.";
8
+ async run() {
9
+ t();
10
+ let { exitCode: e } = await n();
11
+ process.exitCode = e;
12
+ }
13
+ };
14
+ //#endregion
15
+ export { r as default };
@@ -0,0 +1,7 @@
1
+ import { QuoinCommand } from '../../base.js';
2
+ export default class ConfigEdit extends QuoinCommand {
3
+ static summary: string;
4
+ static examples: string[];
5
+ run(): Promise<void>;
6
+ }
7
+ //# sourceMappingURL=edit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"edit.d.ts","sourceRoot":"","sources":["../../../src/commands/config/edit.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAG7C,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,YAAY;IAClD,MAAM,CAAC,OAAO,SAA0C;IAExD,MAAM,CAAC,QAAQ,WAAyB;IAElC,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAI3B"}
@@ -0,0 +1,13 @@
1
+ import { t as e } from "../../base-CAzmaNuU.js";
2
+ import { a as t, n } from "../../config-schema-Dp-vlxuR.js";
3
+ import { runConfigEdit as r } from "@agent-ix/ix-cli-core";
4
+ //#region src/commands/config/edit.ts
5
+ var i = class extends e {
6
+ static summary = "Open quoin's config file in $EDITOR.";
7
+ static examples = ["quoin config edit"];
8
+ async run() {
9
+ t(), await r(n);
10
+ }
11
+ };
12
+ //#endregion
13
+ export { i as default };
@@ -0,0 +1,11 @@
1
+ import { QuoinCommand } from '../../base.js';
2
+ export default class ConfigGet extends QuoinCommand {
3
+ static summary: string;
4
+ static description: string;
5
+ static examples: string[];
6
+ static args: {
7
+ key: import('@oclif/core/interfaces').Arg<string, Record<string, unknown>>;
8
+ };
9
+ run(): Promise<void>;
10
+ }
11
+ //# sourceMappingURL=get.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/commands/config/get.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAG7C,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,YAAY;IACjD,MAAM,CAAC,OAAO,SAAuC;IACrD,MAAM,CAAC,WAAW,SAC0C;IAE5D,MAAM,CAAC,QAAQ,WAA4B;IAE3C,MAAM,CAAC,IAAI;;MAET;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAK3B"}
@@ -0,0 +1,20 @@
1
+ import { t as e } from "../../base-CAzmaNuU.js";
2
+ import { a as t, n } from "../../config-schema-Dp-vlxuR.js";
3
+ import { runConfigGet as r } from "@agent-ix/ix-cli-core";
4
+ import { Args as i } from "@oclif/core";
5
+ //#region src/commands/config/get.ts
6
+ var a = class a extends e {
7
+ static summary = "Read a stored quoin config value.";
8
+ static description = "Values are read from ~/.config/ix/config.d/quoin.yaml, with any project-local\n.ix config and a bound environment variable layered over it.";
9
+ static examples = ["quoin config get org"];
10
+ static args = { key: i.string({
11
+ required: !0,
12
+ description: "Config key path."
13
+ }) };
14
+ async run() {
15
+ let { args: e } = await this.parse(a);
16
+ t(), await r(n, e.key);
17
+ }
18
+ };
19
+ //#endregion
20
+ export { a as default };
@@ -0,0 +1,2 @@
1
+ export { default } from './get.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,2 @@
1
+ import e from "./get.js";
2
+ export { e as default };
@@ -0,0 +1,12 @@
1
+ import { QuoinCommand } from '../../base.js';
2
+ export default class ConfigSet extends QuoinCommand {
3
+ static summary: string;
4
+ static description: string;
5
+ static examples: string[];
6
+ static args: {
7
+ key: import('@oclif/core/interfaces').Arg<string, Record<string, unknown>>;
8
+ value: import('@oclif/core/interfaces').Arg<string, Record<string, unknown>>;
9
+ };
10
+ run(): Promise<void>;
11
+ }
12
+ //# sourceMappingURL=set.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set.d.ts","sourceRoot":"","sources":["../../../src/commands/config/set.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAG7C,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,YAAY;IACjD,MAAM,CAAC,OAAO,SAAiC;IAC/C,MAAM,CAAC,WAAW,SAI2C;IAE7D,MAAM,CAAC,QAAQ,WAAiC;IAEhD,MAAM,CAAC,IAAI;;;MAGT;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAK3B"}
@@ -0,0 +1,26 @@
1
+ import { t as e } from "../../base-CAzmaNuU.js";
2
+ import { a as t, n } from "../../config-schema-Dp-vlxuR.js";
3
+ import { runConfigSet as r } from "@agent-ix/ix-cli-core";
4
+ import { Args as i } from "@oclif/core";
5
+ //#region src/commands/config/set.ts
6
+ var a = class a extends e {
7
+ static summary = "Store a quoin config value.";
8
+ static description = "Writes to ~/.config/ix/config.d/quoin.yaml. Scalars are coerced through the\nschema; an unknown key is rejected rather than silently written.\n\nStoring an org is what makes it persist: --org lasts one invocation and\nQUOIN_ORG one shell, but a stored value is read on every run.";
9
+ static examples = ["quoin config set org acme"];
10
+ static args = {
11
+ key: i.string({
12
+ required: !0,
13
+ description: "Config key path."
14
+ }),
15
+ value: i.string({
16
+ required: !0,
17
+ description: "Value to store."
18
+ })
19
+ };
20
+ async run() {
21
+ let { args: e } = await this.parse(a);
22
+ t(), await r(n, e.key, e.value);
23
+ }
24
+ };
25
+ //#endregion
26
+ export { a as default };
@@ -0,0 +1,14 @@
1
+ import { FlowCommand } from '../flow-command.js';
2
+ export default class Matrix extends FlowCommand {
3
+ static summary: string;
4
+ static description: string;
5
+ static examples: string[];
6
+ static flags: {
7
+ target: import('@oclif/core/interfaces').OptionFlag<string[] | undefined, import('@oclif/core/interfaces').CustomOptions>;
8
+ json: import('@oclif/core/interfaces').BooleanFlag<boolean>;
9
+ id: import('@oclif/core/interfaces').OptionFlag<string | undefined, import('@oclif/core/interfaces').CustomOptions>;
10
+ };
11
+ protected readonly flowName = "matrix";
12
+ run(): Promise<void>;
13
+ }
14
+ //# sourceMappingURL=matrix.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"matrix.d.ts","sourceRoot":"","sources":["../../src/commands/matrix.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,WAAW;IAC7C,MAAM,CAAC,OAAO,SAAiD;IAC/D,MAAM,CAAC,WAAW,SACkC;IAEpD,MAAM,CAAC,QAAQ,WAA8D;IAE7E,MAAM,CAAC,KAAK;;;;MAAyB;IAErC,SAAS,CAAC,QAAQ,CAAC,QAAQ,YAAY;IAEjC,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAI3B"}
@@ -0,0 +1,15 @@
1
+ import { t as e } from "../flow-command-D7JOds7b.js";
2
+ //#region src/commands/matrix.ts
3
+ var t = class t extends e {
4
+ static summary = "Build or update a requirements test matrix.";
5
+ static description = "Starts the bundled matrix workflow run in ~/.ix/flows. Use ix-flow to inspect,\nresume, advance phases, and acknowledge human gates.";
6
+ static examples = ["quoin matrix --target spec/", "ix-flow status <run-id>"];
7
+ static flags = e.flowFlags;
8
+ flowName = "matrix";
9
+ async run() {
10
+ let { flags: e } = await this.parse(t);
11
+ await this.launch(e);
12
+ }
13
+ };
14
+ //#endregion
15
+ export { t as default };
@@ -0,0 +1,8 @@
1
+ import { QuoinCommand } from '../../base.js';
2
+ export default class ModuleEnsureDefaults extends QuoinCommand {
3
+ static summary: string;
4
+ static description: string;
5
+ static examples: string[];
6
+ run(): Promise<void>;
7
+ }
8
+ //# sourceMappingURL=ensure-defaults.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ensure-defaults.d.ts","sourceRoot":"","sources":["../../../src/commands/module/ensure-defaults.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAI7C,MAAM,CAAC,OAAO,OAAO,oBAAqB,SAAQ,YAAY;IAC5D,MAAM,CAAC,OAAO,SAAuD;IACrE,MAAM,CAAC,WAAW,SAGG;IAErB,MAAM,CAAC,QAAQ,WAAoC;IAE7C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAW3B"}
@@ -0,0 +1,17 @@
1
+ import { t as e } from "../../base-CAzmaNuU.js";
2
+ import { r as t } from "../../plugins-CsaHlaZM.js";
3
+ import { n } from "../../modules-D9lVpiw3.js";
4
+ //#region src/commands/module/ensure-defaults.ts
5
+ var r = class r extends e {
6
+ static summary = "Idempotently install the default spec module set.";
7
+ static description = "Materializes the default module set into ~/.ix/filament/modules. Exposed as an\nexplicit command so other tools (notably \"quire validate\") can lazy-install the\ndefaults by shelling out here, rather than relying on the side effect of\n\"quoin catalog list\".";
8
+ static examples = ["quoin module ensure-defaults"];
9
+ async run() {
10
+ await this.parse(r), n(), this.log(JSON.stringify({
11
+ ensured: !0,
12
+ plugins: t().map((e) => e.name)
13
+ }, null, 2));
14
+ }
15
+ };
16
+ //#endregion
17
+ export { r as default };
@@ -0,0 +1,2 @@
1
+ export { default } from './list.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/module/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
@@ -0,0 +1,2 @@
1
+ import e from "./list.js";
2
+ export { e as default };