@agent-ix/quoin 0.1.3

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 (215) hide show
  1. package/.agents/plugins/marketplace.json +14 -0
  2. package/.claude-plugin/marketplace.json +16 -0
  3. package/.claude-plugin/plugin.json +8 -0
  4. package/.codex-plugin/plugin.json +27 -0
  5. package/.github/plugin/marketplace.json +16 -0
  6. package/LICENSE +21 -0
  7. package/README.md +266 -0
  8. package/bin/quoin.js +14 -0
  9. package/default-modules.yaml +82 -0
  10. package/dist/base-DrUMkAh1.js +137 -0
  11. package/dist/base.d.ts +23 -0
  12. package/dist/base.d.ts.map +1 -0
  13. package/dist/catalog.d.ts +32 -0
  14. package/dist/catalog.d.ts.map +1 -0
  15. package/dist/cli.d.ts +18 -0
  16. package/dist/cli.d.ts.map +1 -0
  17. package/dist/cli.js +20 -0
  18. package/dist/commands/catalog/index.d.ts +2 -0
  19. package/dist/commands/catalog/index.d.ts.map +1 -0
  20. package/dist/commands/catalog/index.js +2 -0
  21. package/dist/commands/catalog/list.d.ts +11 -0
  22. package/dist/commands/catalog/list.d.ts.map +1 -0
  23. package/dist/commands/catalog/list.js +22 -0
  24. package/dist/commands/catalog/show.d.ts +13 -0
  25. package/dist/commands/catalog/show.d.ts.map +1 -0
  26. package/dist/commands/catalog/show.js +25 -0
  27. package/dist/commands/catalog/validate.d.ts +10 -0
  28. package/dist/commands/catalog/validate.d.ts.map +1 -0
  29. package/dist/commands/catalog/validate.js +27 -0
  30. package/dist/commands/config/doctor.d.ts +7 -0
  31. package/dist/commands/config/doctor.d.ts.map +1 -0
  32. package/dist/commands/config/doctor.js +15 -0
  33. package/dist/commands/config/edit.d.ts +7 -0
  34. package/dist/commands/config/edit.d.ts.map +1 -0
  35. package/dist/commands/config/edit.js +13 -0
  36. package/dist/commands/config/get.d.ts +11 -0
  37. package/dist/commands/config/get.d.ts.map +1 -0
  38. package/dist/commands/config/get.js +20 -0
  39. package/dist/commands/config/index.d.ts +2 -0
  40. package/dist/commands/config/index.d.ts.map +1 -0
  41. package/dist/commands/config/index.js +2 -0
  42. package/dist/commands/config/set.d.ts +12 -0
  43. package/dist/commands/config/set.d.ts.map +1 -0
  44. package/dist/commands/config/set.js +26 -0
  45. package/dist/commands/matrix.d.ts +14 -0
  46. package/dist/commands/matrix.d.ts.map +1 -0
  47. package/dist/commands/matrix.js +15 -0
  48. package/dist/commands/module/ensure-defaults.d.ts +8 -0
  49. package/dist/commands/module/ensure-defaults.d.ts.map +1 -0
  50. package/dist/commands/module/ensure-defaults.js +17 -0
  51. package/dist/commands/module/index.d.ts +2 -0
  52. package/dist/commands/module/index.d.ts.map +1 -0
  53. package/dist/commands/module/index.js +2 -0
  54. package/dist/commands/module/install.d.ts +11 -0
  55. package/dist/commands/module/install.d.ts.map +1 -0
  56. package/dist/commands/module/install.js +22 -0
  57. package/dist/commands/module/list.d.ts +8 -0
  58. package/dist/commands/module/list.d.ts.map +1 -0
  59. package/dist/commands/module/list.js +13 -0
  60. package/dist/commands/module/remove.d.ts +10 -0
  61. package/dist/commands/module/remove.d.ts.map +1 -0
  62. package/dist/commands/module/remove.js +16 -0
  63. package/dist/commands/plugin/deprecation.d.ts +10 -0
  64. package/dist/commands/plugin/deprecation.d.ts.map +1 -0
  65. package/dist/commands/plugin/ensure-defaults.d.ts +8 -0
  66. package/dist/commands/plugin/ensure-defaults.d.ts.map +1 -0
  67. package/dist/commands/plugin/ensure-defaults.js +12 -0
  68. package/dist/commands/plugin/index.d.ts +2 -0
  69. package/dist/commands/plugin/index.d.ts.map +1 -0
  70. package/dist/commands/plugin/index.js +2 -0
  71. package/dist/commands/plugin/install.d.ts +8 -0
  72. package/dist/commands/plugin/install.d.ts.map +1 -0
  73. package/dist/commands/plugin/install.js +12 -0
  74. package/dist/commands/plugin/list.d.ts +8 -0
  75. package/dist/commands/plugin/list.d.ts.map +1 -0
  76. package/dist/commands/plugin/list.js +12 -0
  77. package/dist/commands/plugin/remove.d.ts +8 -0
  78. package/dist/commands/plugin/remove.d.ts.map +1 -0
  79. package/dist/commands/plugin/remove.js +12 -0
  80. package/dist/commands/review.d.ts +14 -0
  81. package/dist/commands/review.d.ts.map +1 -0
  82. package/dist/commands/review.js +15 -0
  83. package/dist/commands/to-plan.d.ts +14 -0
  84. package/dist/commands/to-plan.d.ts.map +1 -0
  85. package/dist/commands/to-plan.js +15 -0
  86. package/dist/commands/update.d.ts +13 -0
  87. package/dist/commands/update.d.ts.map +1 -0
  88. package/dist/commands/update.js +34 -0
  89. package/dist/commands/write.d.ts +16 -0
  90. package/dist/commands/write.d.ts.map +1 -0
  91. package/dist/commands/write.js +33 -0
  92. package/dist/config-schema-Dp-vlxuR.js +13 -0
  93. package/dist/config-schema.d.ts +52 -0
  94. package/dist/config-schema.d.ts.map +1 -0
  95. package/dist/deprecation-fRxUHoxv.js +4 -0
  96. package/dist/flow-command-SMjCSOFg.js +88 -0
  97. package/dist/flow-command.d.ts +25 -0
  98. package/dist/flow-command.d.ts.map +1 -0
  99. package/dist/flows.d.ts +7 -0
  100. package/dist/flows.d.ts.map +1 -0
  101. package/dist/index.d.ts +11 -0
  102. package/dist/index.d.ts.map +1 -0
  103. package/dist/index.js +9 -0
  104. package/dist/modules-CW8pBK41.js +22 -0
  105. package/dist/modules.d.ts +10 -0
  106. package/dist/modules.d.ts.map +1 -0
  107. package/dist/org.d.ts +61 -0
  108. package/dist/org.d.ts.map +1 -0
  109. package/dist/plugins-GSxafyD3.js +77 -0
  110. package/dist/plugins.d.ts +13 -0
  111. package/dist/plugins.d.ts.map +1 -0
  112. package/dist/version-_1nY4KyJ.js +17 -0
  113. package/dist/version.d.ts +3 -0
  114. package/dist/version.d.ts.map +1 -0
  115. package/dist/write-CQAitcI5.js +156 -0
  116. package/dist/write.d.ts +28 -0
  117. package/dist/write.d.ts.map +1 -0
  118. package/package.json +119 -0
  119. package/skills/gap-analysis/SKILL.md +97 -0
  120. package/skills/gap-analysis/references/step-1-target-selection.md +53 -0
  121. package/skills/gap-analysis/references/step-2-plan-completion.md +49 -0
  122. package/skills/gap-analysis/references/step-3-matrix-verification.md +54 -0
  123. package/skills/gap-analysis/references/step-4-underspecified-code.md +63 -0
  124. package/skills/gap-analysis/references/step-5-semantic-review.md +51 -0
  125. package/skills/gap-analysis/references/step-6-specreview-artifact.md +95 -0
  126. package/skills/spec-app-review/SKILL.md +51 -0
  127. package/skills/spec-app-review/references/checklist.md +197 -0
  128. package/skills/spec-dependency-analysis/SKILL.md +75 -0
  129. package/skills/spec-ears-analysis/SKILL.md +89 -0
  130. package/skills/spec-evidence-analysis/SKILL.md +78 -0
  131. package/skills/spec-failure-domain-analysis/SKILL.md +44 -0
  132. package/skills/spec-ideation/SKILL.md +46 -0
  133. package/skills/spec-integrity-analysis/SKILL.md +47 -0
  134. package/skills/spec-matrix/SKILL.md +168 -0
  135. package/skills/spec-matrix/assets/test-cases/TC-001.md +35 -0
  136. package/skills/spec-matrix/assets/test-cases/TC-002.md +37 -0
  137. package/skills/spec-matrix/assets/test-cases/TC-006.md +50 -0
  138. package/skills/spec-matrix/assets/test-matrix-example.md +104 -0
  139. package/skills/spec-matrix/assets/test-matrix-template.md +123 -0
  140. package/skills/spec-matrix/workflow-assets/skills/matrix/SKILL.md +35 -0
  141. package/skills/spec-matrix/workflow-assets/skills/matrix/scripts/invariants.js +1 -0
  142. package/skills/spec-matrix/workflow-assets/skills/matrix/templates/report/default.md +30 -0
  143. package/skills/spec-matrix/workflow-assets/skills/matrix/workflows/matrix/def.yaml +82 -0
  144. package/skills/spec-object-review/SKILL.md +125 -0
  145. package/skills/spec-object-review/references/object-type-guide.md +118 -0
  146. package/skills/spec-review/SKILL.md +71 -0
  147. package/skills/spec-review/references/checklist.md +50 -0
  148. package/skills/spec-review/workflow-assets/skills/review/SKILL.md +96 -0
  149. package/skills/spec-review/workflow-assets/skills/review/scripts/invariants.js +60 -0
  150. package/skills/spec-review/workflow-assets/skills/review/workflows/review/def.yaml +68 -0
  151. package/skills/spec-risk-complexity-analysis/SKILL.md +77 -0
  152. package/skills/spec-scope-boundary-analysis/SKILL.md +86 -0
  153. package/skills/spec-security-analysis/SKILL.md +84 -0
  154. package/skills/spec-security-analysis/assets/security-analysis-example.md +89 -0
  155. package/skills/spec-security-analysis/assets/security-analysis-template.md +73 -0
  156. package/skills/spec-security-analysis/references/component-type-mapping.md +161 -0
  157. package/skills/spec-security-analysis/references/gdpr/ChII-Principles.md +58 -0
  158. package/skills/spec-security-analysis/references/gdpr/ChIII-DataSubjectRights.md +84 -0
  159. package/skills/spec-security-analysis/references/gdpr/ChIV-ControllerProcessor.md +83 -0
  160. package/skills/spec-security-analysis/references/gdpr/ChV-DataTransfers.md +62 -0
  161. package/skills/spec-security-analysis/references/gdpr/index.md +54 -0
  162. package/skills/spec-security-analysis/references/iso27001/A5-OrganizationalControls.md +64 -0
  163. package/skills/spec-security-analysis/references/iso27001/A6-PeopleControls.md +30 -0
  164. package/skills/spec-security-analysis/references/iso27001/A7-PhysicalControls.md +35 -0
  165. package/skills/spec-security-analysis/references/iso27001/A8-TechnologicalControls.md +66 -0
  166. package/skills/spec-security-analysis/references/iso27001/index.md +43 -0
  167. package/skills/spec-security-analysis/references/nist-800-53/AC-AccessControl.md +57 -0
  168. package/skills/spec-security-analysis/references/nist-800-53/AU-AuditAccountability.md +49 -0
  169. package/skills/spec-security-analysis/references/nist-800-53/CM-ConfigurationManagement.md +36 -0
  170. package/skills/spec-security-analysis/references/nist-800-53/IA-IdentificationAuthentication.md +44 -0
  171. package/skills/spec-security-analysis/references/nist-800-53/SA-SystemServicesAcquisition.md +50 -0
  172. package/skills/spec-security-analysis/references/nist-800-53/SC-SystemCommunications.md +53 -0
  173. package/skills/spec-security-analysis/references/nist-800-53/SI-SystemInformationIntegrity.md +52 -0
  174. package/skills/spec-security-analysis/references/nist-800-53/index.md +58 -0
  175. package/skills/spec-security-analysis/references/owasp-asvs/V1-Architecture.md +33 -0
  176. package/skills/spec-security-analysis/references/owasp-asvs/V10-MaliciousCode.md +33 -0
  177. package/skills/spec-security-analysis/references/owasp-asvs/V11-BusinessLogic.md +32 -0
  178. package/skills/spec-security-analysis/references/owasp-asvs/V12-Files.md +34 -0
  179. package/skills/spec-security-analysis/references/owasp-asvs/V13-API.md +34 -0
  180. package/skills/spec-security-analysis/references/owasp-asvs/V14-Configuration.md +35 -0
  181. package/skills/spec-security-analysis/references/owasp-asvs/V2-Authentication.md +36 -0
  182. package/skills/spec-security-analysis/references/owasp-asvs/V3-SessionManagement.md +35 -0
  183. package/skills/spec-security-analysis/references/owasp-asvs/V4-AccessControl.md +39 -0
  184. package/skills/spec-security-analysis/references/owasp-asvs/V5-Validation.md +37 -0
  185. package/skills/spec-security-analysis/references/owasp-asvs/V6-Cryptography.md +34 -0
  186. package/skills/spec-security-analysis/references/owasp-asvs/V7-ErrorLogging.md +37 -0
  187. package/skills/spec-security-analysis/references/owasp-asvs/V8-DataProtection.md +34 -0
  188. package/skills/spec-security-analysis/references/owasp-asvs/V9-Communication.md +32 -0
  189. package/skills/spec-security-analysis/references/owasp-asvs/index.md +59 -0
  190. package/skills/spec-security-analysis/references/soc2/CC1-ControlEnvironment.md +31 -0
  191. package/skills/spec-security-analysis/references/soc2/CC2-CommunicationInformation.md +27 -0
  192. package/skills/spec-security-analysis/references/soc2/CC3-RiskAssessment.md +29 -0
  193. package/skills/spec-security-analysis/references/soc2/CC4-MonitoringActivities.md +27 -0
  194. package/skills/spec-security-analysis/references/soc2/CC5-ControlActivities.md +28 -0
  195. package/skills/spec-security-analysis/references/soc2/CC6-LogicalPhysicalAccess.md +45 -0
  196. package/skills/spec-security-analysis/references/soc2/CC7-SystemOperations.md +42 -0
  197. package/skills/spec-security-analysis/references/soc2/CC8-ChangeManagement.md +32 -0
  198. package/skills/spec-security-analysis/references/soc2/CC9-RiskMitigation.md +34 -0
  199. package/skills/spec-security-analysis/references/soc2/index.md +46 -0
  200. package/skills/spec-security-analysis/references/standards-index.md +46 -0
  201. package/skills/spec-to-plan/SKILL.md +75 -0
  202. package/skills/spec-to-plan/references/step-0-plan-selection.md +121 -0
  203. package/skills/spec-to-plan/references/step-1-analysis.md +88 -0
  204. package/skills/spec-to-plan/references/step-2-test-plan.md +43 -0
  205. package/skills/spec-to-plan/references/step-3-execution-plan.md +218 -0
  206. package/skills/spec-to-plan/workflow-assets/skills/to-plan/SKILL.md +35 -0
  207. package/skills/spec-to-plan/workflow-assets/skills/to-plan/scripts/invariants.js +1 -0
  208. package/skills/spec-to-plan/workflow-assets/skills/to-plan/templates/implementation-plan/default.md +44 -0
  209. package/skills/spec-to-plan/workflow-assets/skills/to-plan/workflows/to-plan/def.yaml +85 -0
  210. package/skills/specify/SKILL.md +154 -0
  211. package/skills/specify/assets/app-spec-template.md +143 -0
  212. package/skills/specify/assets/spec-template.md +299 -0
  213. package/skills/specify/references/integration-tests.md +72 -0
  214. package/skills/specify/references/us-to-fr.md +40 -0
  215. package/skills/specify/references/writing-good-requirements.md +61 -0
@@ -0,0 +1,12 @@
1
+ import e from "../module/list.js";
2
+ import { t } from "../../deprecation-fRxUHoxv.js";
3
+ //#region src/commands/plugin/list.ts
4
+ var n = class extends e {
5
+ static summary = "[DEPRECATED] Alias for `quoin module list`.";
6
+ static hidden = !0;
7
+ async run() {
8
+ this.logToStderr(t), await super.run();
9
+ }
10
+ };
11
+ //#endregion
12
+ export { n as default };
@@ -0,0 +1,8 @@
1
+ import { default as ModuleRemove } from '../module/remove.js';
2
+ /** Deprecated alias for `quoin module remove`. */
3
+ export default class PluginRemove extends ModuleRemove {
4
+ static summary: string;
5
+ static hidden: boolean;
6
+ run(): Promise<void>;
7
+ }
8
+ //# sourceMappingURL=remove.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remove.d.ts","sourceRoot":"","sources":["../../../src/commands/plugin/remove.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAG/C,kDAAkD;AAClD,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,YAAY;IACpD,OAAgB,OAAO,SAAmD;IAC1E,OAAgB,MAAM,UAAQ;IAEf,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAIpC"}
@@ -0,0 +1,12 @@
1
+ import e from "../module/remove.js";
2
+ import { t } from "../../deprecation-fRxUHoxv.js";
3
+ //#region src/commands/plugin/remove.ts
4
+ var n = class extends e {
5
+ static summary = "[DEPRECATED] Alias for `quoin module remove`.";
6
+ static hidden = !0;
7
+ async run() {
8
+ this.logToStderr(t), await super.run();
9
+ }
10
+ };
11
+ //#endregion
12
+ export { n as default };
@@ -0,0 +1,14 @@
1
+ import { FlowCommand } from '../flow-command.js';
2
+ export default class Review 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 = "review";
12
+ run(): Promise<void>;
13
+ }
14
+ //# sourceMappingURL=review.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"review.d.ts","sourceRoot":"","sources":["../../src/commands/review.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,WAAW;IAC7C,MAAM,CAAC,OAAO,SAA2C;IACzD,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-SMjCSOFg.js";
2
+ //#region src/commands/review.ts
3
+ var t = class t extends e {
4
+ static summary = "Run a composite spec review workflow.";
5
+ static description = "Starts the bundled review workflow run in ~/.ix/flows. Use ix-flow to inspect,\nresume, advance phases, and acknowledge human gates.";
6
+ static examples = ["quoin review --target spec/", "ix-flow status <run-id>"];
7
+ static flags = e.flowFlags;
8
+ flowName = "review";
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,14 @@
1
+ import { FlowCommand } from '../flow-command.js';
2
+ export default class ToPlan 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 = "to-plan";
12
+ run(): Promise<void>;
13
+ }
14
+ //# sourceMappingURL=to-plan.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"to-plan.d.ts","sourceRoot":"","sources":["../../src/commands/to-plan.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,WAAW;IAC7C,MAAM,CAAC,OAAO,SAAgE;IAC9E,MAAM,CAAC,WAAW,SACkC;IAEpD,MAAM,CAAC,QAAQ,WAA+D;IAE9E,MAAM,CAAC,KAAK;;;;MAAyB;IAErC,SAAS,CAAC,QAAQ,CAAC,QAAQ,aAAa;IAElC,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAI3B"}
@@ -0,0 +1,15 @@
1
+ import { t as e } from "../flow-command-SMjCSOFg.js";
2
+ //#region src/commands/to-plan.ts
3
+ var t = class t extends e {
4
+ static summary = "Convert accepted requirements into an implementation plan.";
5
+ static description = "Starts the bundled to-plan workflow run in ~/.ix/flows. Use ix-flow to inspect,\nresume, advance phases, and acknowledge human gates.";
6
+ static examples = ["quoin to-plan --target spec/", "ix-flow status <run-id>"];
7
+ static flags = e.flowFlags;
8
+ flowName = "to-plan";
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,13 @@
1
+ import { QuoinCommand } from '../base.js';
2
+ export default class Update extends QuoinCommand {
3
+ static summary: string;
4
+ static description: string;
5
+ static examples: string[];
6
+ static flags: {
7
+ check: import('@oclif/core/interfaces').BooleanFlag<boolean>;
8
+ registry: import('@oclif/core/interfaces').OptionFlag<string | undefined, import('@oclif/core/interfaces').CustomOptions>;
9
+ };
10
+ protected skipUpdateNudge: boolean;
11
+ run(): Promise<void>;
12
+ }
13
+ //# sourceMappingURL=update.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../src/commands/update.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAS1C,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,YAAY;IAC9C,MAAM,CAAC,OAAO,SAAuD;IACrE,MAAM,CAAC,WAAW,SAE2C;IAE7D,MAAM,CAAC,QAAQ,WAIb;IAEF,MAAM,CAAC,KAAK;;;MASV;IAGF,UAAmB,eAAe,UAAQ;IAEpC,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAU3B"}
@@ -0,0 +1,34 @@
1
+ import { t as e } from "../version-_1nY4KyJ.js";
2
+ import { t } from "../base-DrUMkAh1.js";
3
+ import { runSelfUpdate as n } from "@agent-ix/ix-cli-core";
4
+ import { Flags as r } from "@oclif/core";
5
+ //#region src/commands/update.ts
6
+ var i = "https://registry.npmjs.org/", a = class a extends t {
7
+ static summary = "Check for and install the latest published quoin.";
8
+ static description = "quoin is distributed on the public npm registry as @agent-ix/quoin. This command\nqueries the registry for the latest version, compares it to the running version,\nand (unless --check) runs npm install -g to upgrade in place.";
9
+ static examples = [
10
+ "quoin update",
11
+ "quoin update --check",
12
+ "quoin update --registry http://npm.ix/"
13
+ ];
14
+ static flags = {
15
+ check: r.boolean({
16
+ description: "Report whether an update is available; do not install.",
17
+ default: !1
18
+ }),
19
+ registry: r.string({ description: "Force an npm registry to query/install from. Defaults to the public npm registry (https://registry.npmjs.org/), where @agent-ix/quoin is published. Pass http://npm.ix/ for local dev snapshots." })
20
+ };
21
+ skipUpdateNudge = !0;
22
+ async run() {
23
+ let { flags: t } = await this.parse(a);
24
+ await n({
25
+ packageName: "@agent-ix/quoin",
26
+ currentVersion: e(),
27
+ header: "quoin update",
28
+ registry: t.registry ?? i,
29
+ check: t.check === !0
30
+ });
31
+ }
32
+ };
33
+ //#endregion
34
+ export { a as default };
@@ -0,0 +1,16 @@
1
+ import { QuoinCommand } from '../base.js';
2
+ export default class Write extends QuoinCommand {
3
+ static summary: string;
4
+ static description: string;
5
+ static examples: string[];
6
+ static args: {
7
+ repo_dir: import('@oclif/core/interfaces').Arg<string | undefined, Record<string, unknown>>;
8
+ };
9
+ static flags: {
10
+ types: import('@oclif/core/interfaces').OptionFlag<string[] | undefined, import('@oclif/core/interfaces').CustomOptions>;
11
+ org: import('@oclif/core/interfaces').OptionFlag<string | undefined, import('@oclif/core/interfaces').CustomOptions>;
12
+ json: import('@oclif/core/interfaces').BooleanFlag<boolean>;
13
+ };
14
+ run(): Promise<void>;
15
+ }
16
+ //# sourceMappingURL=write.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"write.d.ts","sourceRoot":"","sources":["../../src/commands/write.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAS1C,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,YAAY;IAC7C,MAAM,CAAC,OAAO,SACkE;IAChF,MAAM,CAAC,WAAW,SAW2C;IAE7D,MAAM,CAAC,QAAQ,WAKb;IAEF,MAAM,CAAC,IAAI;;MAET;IAEF,MAAM,CAAC,KAAK;;;;MAUV;IAEI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAgB3B"}
@@ -0,0 +1,33 @@
1
+ import { o as e, t } from "../base-DrUMkAh1.js";
2
+ import { n } from "../modules-CW8pBK41.js";
3
+ import { n as r, r as i, t as a } from "../write-CQAitcI5.js";
4
+ import { Args as o, Flags as s } from "@oclif/core";
5
+ //#region src/commands/write.ts
6
+ var c = class c extends t {
7
+ static summary = "Build an authoring pack for spec files an agent is about to create or edit.";
8
+ static description = "Pass the target repository and the artifact/object types involved in the work.\nquoin resolves those types from the active catalog and returns the local\nskeletons, schemas, module roots, and Quire validation command for the repo.\n\nNotes:\n - Type lookup is case-insensitive; FR and fr are the same type.\n - Types can be artifacts or objects from the default module set or modules.\n - Use the returned skeletons and schemas as the authoring contract.\n - Run the returned Quire command after editing spec files.\n - The org is resolved from --org, else QUOIN_ORG, else the repo's origin\n remote. It is never defaulted: put the reported org in the frontmatter\n \"org:\" field rather than copying a value from a skeleton.";
9
+ static examples = [
10
+ "quoin write . --types FR",
11
+ "quoin write . --types FR,domain,entity",
12
+ "quoin write ../my-service --types fr,DOMAIN --json",
13
+ "quoin write . --types Spec --org acme"
14
+ ];
15
+ static args = { repo_dir: o.string({ description: "Target repository directory." }) };
16
+ static flags = {
17
+ types: s.string({
18
+ description: "Artifact/object type(s), comma-separated or repeated.",
19
+ multiple: !0
20
+ }),
21
+ org: s.string({ description: "Authoring organization. Overrides QUOIN_ORG and the repo's origin remote." }),
22
+ json: s.boolean({ description: "Emit the authoring pack as JSON." })
23
+ };
24
+ async run() {
25
+ let { args: t, flags: o } = await this.parse(c), s = t.repo_dir;
26
+ if (!s) throw Error("write requires <repo_dir>");
27
+ n();
28
+ let l = a(e(), s, i(o.types), { org: o.org });
29
+ this.log(o.json ? JSON.stringify(l, null, 2) : r(l));
30
+ }
31
+ };
32
+ //#endregion
33
+ export { c as default };
@@ -0,0 +1,13 @@
1
+ import { registerPluginSchema as e } from "@agent-ix/ix-cli-core";
2
+ import { z as t } from "zod";
3
+ //#region src/config-schema.ts
4
+ var n = t.object({ org: t.string().min(1).optional() }).strict(), r = "quoin", i = { org: "QUOIN_ORG" }, a = {
5
+ id: r,
6
+ config: n,
7
+ env: i
8
+ };
9
+ function o() {
10
+ e("@agent-ix/quoin", a);
11
+ }
12
+ //#endregion
13
+ export { o as a, a as i, r as n, n as r, i as t };
@@ -0,0 +1,52 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * quoin's persistent configuration (FR-027).
4
+ *
5
+ * Strict, as `registerPluginSchema` requires — a non-strict schema is rejected
6
+ * at registration, and strictness is what makes `config set` reject an unknown
7
+ * key instead of silently writing it.
8
+ *
9
+ * Every leaf is optional rather than defaulted: an absent `org` must stay
10
+ * absent, because "nobody said" is a distinct outcome from any value quoin
11
+ * could pick (FR-025).
12
+ */
13
+ export declare const QuoinConfigSchema: z.ZodObject<{
14
+ org: z.ZodOptional<z.ZodString>;
15
+ }, z.core.$strict>;
16
+ export type QuoinConfig = z.infer<typeof QuoinConfigSchema>;
17
+ /** Config/secrets namespace quoin registers under. */
18
+ export declare const QUOIN_PLUGIN_ID = "quoin";
19
+ /**
20
+ * Map of config key → environment variable, applied by `ConfigService` as a
21
+ * layer over the file. Keeping `QUOIN_ORG` here rather than reading it directly
22
+ * means one precedence rule lives in one place.
23
+ */
24
+ export declare const QUOIN_ENV_BINDINGS: {
25
+ readonly org: "QUOIN_ORG";
26
+ };
27
+ /**
28
+ * The `ixSchema` convention (ix-cli-core FR-014): a host walking its
29
+ * oclif-loaded plugins reads this named export and registers it, so
30
+ * `ix config set quoin org <name>` resolves against the same schema and file
31
+ * that quoin itself reads.
32
+ */
33
+ export declare const ixSchema: {
34
+ id: string;
35
+ config: z.ZodObject<{
36
+ org: z.ZodOptional<z.ZodString>;
37
+ }, z.core.$strict>;
38
+ env: {
39
+ readonly org: "QUOIN_ORG";
40
+ };
41
+ };
42
+ /**
43
+ * Register quoin's own schema in-process.
44
+ *
45
+ * Under `ix`, the host's init hook registers every loaded plugin's `ixSchema`.
46
+ * Running standalone there is no host, so `quoin config` registers itself
47
+ * before delegating — otherwise the shared handlers raise `UnknownPluginError`
48
+ * for an id nothing has declared. Registration is idempotent: a duplicate
49
+ * returns a non-throwing failure and keeps the first entry.
50
+ */
51
+ export declare function registerQuoinSchema(): void;
52
+ //# sourceMappingURL=config-schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config-schema.d.ts","sourceRoot":"","sources":["../src/config-schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB;;kBAInB,CAAC;AAEZ,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,sDAAsD;AACtD,eAAO,MAAM,eAAe,UAAU,CAAC;AAEvC;;;;GAIG;AACH,eAAO,MAAM,kBAAkB;;CAAgC,CAAC;AAEhE;;;;;GAKG;AACH,eAAO,MAAM,QAAQ;;;;;;;;CAIpB,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,IAAI,IAAI,CAE1C"}
@@ -0,0 +1,4 @@
1
+ //#region src/commands/plugin/deprecation.ts
2
+ var e = "warning: `quoin plugin` is deprecated and will be removed; use `quoin module` instead.";
3
+ //#endregion
4
+ export { e as t };
@@ -0,0 +1,88 @@
1
+ import { a as e, t } from "./base-DrUMkAh1.js";
2
+ import { existsSync as n } from "node:fs";
3
+ import { dirname as r, join as i, resolve as a } from "node:path";
4
+ import { fileURLToPath as o } from "node:url";
5
+ import { homedir as s } from "node:os";
6
+ import { Flags as c } from "@oclif/core";
7
+ import { spawn as l } from "node:child_process";
8
+ //#region src/flows.ts
9
+ var u = {
10
+ review: {
11
+ packageSkill: "spec-review",
12
+ runtimeSkill: "review"
13
+ },
14
+ matrix: {
15
+ packageSkill: "spec-matrix",
16
+ runtimeSkill: "matrix"
17
+ },
18
+ "to-plan": {
19
+ packageSkill: "spec-to-plan",
20
+ runtimeSkill: "to-plan"
21
+ }
22
+ };
23
+ async function d(t, n = {}) {
24
+ let r = f(t), a = e(), o = [
25
+ "run",
26
+ t,
27
+ "--path",
28
+ r,
29
+ "--config-root",
30
+ a,
31
+ "--state-dir",
32
+ i(a, "flows")
33
+ ];
34
+ n.id && o.push("--id", n.id), n.json && o.push("--json");
35
+ for (let e of n.target ?? []) o.push("--target", e);
36
+ await m(o);
37
+ }
38
+ function f(e) {
39
+ let t = u[e];
40
+ if (!t) throw Error(`unknown spec flow ${e}`);
41
+ let o = [
42
+ process.env.IX_SPEC_WORKFLOWS_ROOT,
43
+ p(),
44
+ i(r(a(process.cwd())), "ix-spec-workflows"),
45
+ i(s(), ".ix", "plugins", "ix-spec-workflows")
46
+ ].filter((e) => !!e);
47
+ for (let e of o) {
48
+ let r = i(e, t.packageSkill, "workflow-assets", "skills", t.runtimeSkill);
49
+ if (n(r)) return r;
50
+ }
51
+ throw Error(`could not find ix-spec workflow skill ${t.runtimeSkill}; set IX_SPEC_WORKFLOWS_ROOT`);
52
+ }
53
+ function p() {
54
+ return i(r(r(o(import.meta.url))), "skills");
55
+ }
56
+ async function m(e) {
57
+ await new Promise((t, n) => {
58
+ let r = l("ix-flow", e, { stdio: "inherit" });
59
+ r.on("error", n), r.on("close", (e) => {
60
+ if (e === 0) {
61
+ t();
62
+ return;
63
+ }
64
+ process.exitCode = e ?? 1, t();
65
+ });
66
+ });
67
+ }
68
+ //#endregion
69
+ //#region src/flow-command.ts
70
+ var h = class extends t {
71
+ static flowFlags = {
72
+ target: c.string({
73
+ description: "Spec target ref to feed the workflow (repeatable).",
74
+ multiple: !0
75
+ }),
76
+ json: c.boolean({ description: "Forward --json to ix-flow." }),
77
+ id: c.string({ description: "Explicit workflow run id." })
78
+ };
79
+ async launch(e) {
80
+ await d(this.flowName, {
81
+ json: e.json === !0,
82
+ ...e.id ? { id: e.id } : {},
83
+ ...e.target ? { target: e.target } : {}
84
+ });
85
+ }
86
+ };
87
+ //#endregion
88
+ export { h as t };
@@ -0,0 +1,25 @@
1
+ import { QuoinCommand } from './base.js';
2
+ /**
3
+ * Base for the bundled spec-workflow launchers (`review`, `matrix`, `to-plan`).
4
+ *
5
+ * quoin creates the workflow run in ~/.ix/flows by spawning `ix-flow` (see
6
+ * {@link startSpecFlow}); ix-flow then inspects, resumes, advances phases, and
7
+ * acknowledges human gates. The subprocess delegation is unchanged from the
8
+ * legacy dispatcher — the launcher only translates flags into the ix-flow argv.
9
+ */
10
+ export declare abstract class FlowCommand extends QuoinCommand {
11
+ /** Flags shared by every flow launcher; concrete commands reuse this set. */
12
+ static flowFlags: {
13
+ target: import('@oclif/core/interfaces').OptionFlag<string[] | undefined, import('@oclif/core/interfaces').CustomOptions>;
14
+ json: import('@oclif/core/interfaces').BooleanFlag<boolean>;
15
+ id: import('@oclif/core/interfaces').OptionFlag<string | undefined, import('@oclif/core/interfaces').CustomOptions>;
16
+ };
17
+ /** ix-flow workflow name; equals the command id (review/matrix/to-plan). */
18
+ protected abstract readonly flowName: string;
19
+ protected launch(flags: {
20
+ target?: string[];
21
+ json?: boolean;
22
+ id?: string;
23
+ }): Promise<void>;
24
+ }
25
+ //# sourceMappingURL=flow-command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow-command.d.ts","sourceRoot":"","sources":["../src/flow-command.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAGzC;;;;;;;GAOG;AACH,8BAAsB,WAAY,SAAQ,YAAY;IACpD,6EAA6E;IAC7E,MAAM,CAAC,SAAS;;;;MAOd;IAEF,4EAA4E;IAC5E,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;cAE7B,MAAM,CAAC,KAAK,EAAE;QAC5B,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;QAClB,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,EAAE,CAAC,EAAE,MAAM,CAAC;KACb,GAAG,OAAO,CAAC,IAAI,CAAC;CAOlB"}
@@ -0,0 +1,7 @@
1
+ export declare function specFlowNames(): string[];
2
+ export declare function startSpecFlow(flow: string, opts?: {
3
+ json?: boolean;
4
+ id?: string;
5
+ target?: string[];
6
+ }): Promise<void>;
7
+ //# sourceMappingURL=flows.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flows.d.ts","sourceRoot":"","sources":["../src/flows.ts"],"names":[],"mappings":"AAiBA,wBAAgB,aAAa,IAAI,MAAM,EAAE,CAExC;AAED,wBAAsB,aAAa,CACjC,IAAI,EAAE,MAAM,EACZ,IAAI,GAAE;IAAE,IAAI,CAAC,EAAE,OAAO,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;CAAO,GAC5D,OAAO,CAAC,IAAI,CAAC,CAiBf"}
@@ -0,0 +1,11 @@
1
+ export { main, isVersionRequest } from './cli.js';
2
+ export { packageVersion, resolveVersion } from './version.js';
3
+ export { loadCatalog, defaultModuleRoots, filamentModulesDir, findCatalogEntry, } from './catalog.js';
4
+ export { ensureDefaultModules, defaultModulesManifest } from './modules.js';
5
+ export { installPlugin, listPlugins, removePlugin, parseSourceArg, } from './plugins.js';
6
+ export { createAuthoringPack, formatAuthoringPack, parseTypeList, } from './write.js';
7
+ export { QuoinCommand } from './base.js';
8
+ export { FlowCommand } from './flow-command.js';
9
+ export { resolveOrg, originOrg, UNRESOLVED_ORG_MESSAGE, type OrgSource, type ResolvedOrg, } from './org.js';
10
+ export { ixSchema, QuoinConfigSchema, QUOIN_PLUGIN_ID, QUOIN_ENV_BINDINGS, type QuoinConfig, } from './config-schema.js';
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAC5E,OAAO,EACL,aAAa,EACb,WAAW,EACX,YAAY,EACZ,cAAc,GACf,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,aAAa,GACd,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EACL,UAAU,EACV,SAAS,EACT,sBAAsB,EACtB,KAAK,SAAS,EACd,KAAK,WAAW,GACjB,MAAM,UAAU,CAAC;AAGlB,OAAO,EACL,QAAQ,EACR,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EAClB,KAAK,WAAW,GACjB,MAAM,oBAAoB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,9 @@
1
+ import { n as e, t } from "./version-_1nY4KyJ.js";
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-DrUMkAh1.js";
4
+ import { a as l, i as u, n as d, r as f } from "./plugins-GSxafyD3.js";
5
+ import { n as p, t as m } from "./modules-CW8pBK41.js";
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-CQAitcI5.js";
8
+ import { t as T } from "./flow-command-SMjCSOFg.js";
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 };
@@ -0,0 +1,22 @@
1
+ import { a as e } from "./base-DrUMkAh1.js";
2
+ import { t } from "./plugins-GSxafyD3.js";
3
+ import { readFileSync as n } from "node:fs";
4
+ import { dirname as r, join as i } from "node:path";
5
+ import { fileURLToPath as a } from "node:url";
6
+ import { parse as o } from "yaml";
7
+ import { reconcile as s, validateMarketplaceManifest as c } from "@agent-ix/ts-plugin-kit";
8
+ //#region src/modules.ts
9
+ function l() {
10
+ return r(r(a(import.meta.url)));
11
+ }
12
+ function u() {
13
+ return c(o(n(i(l(), "default-modules.yaml"), "utf8")));
14
+ }
15
+ function d(n = e(), r = u()) {
16
+ s(r, {
17
+ ...t(n),
18
+ mode: "lazy"
19
+ });
20
+ }
21
+ //#endregion
22
+ export { d as n, u as t };
@@ -0,0 +1,10 @@
1
+ import { MarketplaceManifest } from '@agent-ix/ts-plugin-kit';
2
+ /** The committed default module set shipped with quoin. */
3
+ export declare function defaultModulesManifest(): MarketplaceManifest;
4
+ /**
5
+ * Lazily install the default module set into `~/.ix/filament/modules`. Idempotent
6
+ * and (once installed and pinned) does no git — safe to call before every catalog
7
+ * read. Pass a manifest to override the committed default set (used by tests).
8
+ */
9
+ export declare function ensureDefaultModules(home?: string, manifest?: MarketplaceManifest): void;
10
+ //# sourceMappingURL=modules.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../src/modules.ts"],"names":[],"mappings":"AAKA,OAAO,EAGL,KAAK,mBAAmB,EACzB,MAAM,yBAAyB,CAAC;AASjC,2DAA2D;AAC3D,wBAAgB,sBAAsB,IAAI,mBAAmB,CAG5D;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,SAAW,EACf,QAAQ,GAAE,mBAA8C,GACvD,IAAI,CAEN"}
package/dist/org.d.ts ADDED
@@ -0,0 +1,61 @@
1
+ /**
2
+ * Where a resolved organization came from, or `none` when nothing yielded one.
3
+ *
4
+ * Reported alongside the organization itself so an author can tell an explicitly
5
+ * stated org from one inferred off the repository's remote.
6
+ */
7
+ export type OrgSource = "flag" | "env" | "config" | "git" | "none";
8
+ export interface ResolvedOrg {
9
+ /** The organization, or `undefined` when unresolved. */
10
+ org?: string;
11
+ source: OrgSource;
12
+ }
13
+ /** Message shown when no source yielded an organization (FR-025, NFR-003). */
14
+ export declare const UNRESOLVED_ORG_MESSAGE: string;
15
+ /**
16
+ * Resolve the authoring organization for a repository (FR-025).
17
+ *
18
+ * Precedence, first non-empty wins: the explicit `--org` value, `QUOIN_ORG`,
19
+ * the stored config, then the `origin` remote in the repository's git config.
20
+ *
21
+ * A stored value outranks the remote because it is something a person said,
22
+ * where the remote is only what quoin could infer — but it does not weaken the
23
+ * no-substitution rule below: a config file is an explicit statement, never a
24
+ * value quoin picked. `QUOIN_ORG` is declared to `ConfigService` as an env
25
+ * binding, so it is checked here only when a caller supplies its own `env`
26
+ * (tests); in the normal path ConfigService layers it over the file itself,
27
+ * keeping one precedence rule in one place.
28
+ *
29
+ * Deliberately returns `source: "none"` rather than substituting a default. An
30
+ * org qualifies a repository so same-named repos in different organizations stay
31
+ * distinguishable, so inventing one defeats the point of carrying it — and a
32
+ * declared org is human-facing identity in a published artifact, where a
33
+ * plausible-but-wrong value is harder to notice than an absent one that stops
34
+ * the author and asks. (quire-rs #15 made org a required, caller-supplied input
35
+ * for the same reason; this is quoin's half of that contract.)
36
+ *
37
+ * Note this is a deliberate divergence from filament-ide-rs's `repo_identity`,
38
+ * which falls back to a `local` sentinel — correct there, because a code-symbol
39
+ * qualifier must always produce some name.
40
+ */
41
+ export declare function resolveOrg(repoRoot: string, options?: {
42
+ flag?: string;
43
+ env?: NodeJS.ProcessEnv;
44
+ /**
45
+ * Project-local `.ix` layering overrides. Omit them in normal use:
46
+ * `BaseCommand.init` publishes the runtime context (honouring
47
+ * `--no-project-config`) and `ConfigService` falls back to it, so the
48
+ * project layer works without quoin threading anything. Supplied by tests
49
+ * that need a hermetic root.
50
+ */
51
+ projectConfigRoot?: string;
52
+ projectConfigEnabled?: boolean;
53
+ }): ResolvedOrg;
54
+ /**
55
+ * Parse the org out of the `[remote "origin"]` url in a git config.
56
+ *
57
+ * Handles both `git@host:org/repo.git` and `https://host/org/repo.git`. Exported
58
+ * for direct testing of the url forms.
59
+ */
60
+ export declare function originOrg(config: string): string | undefined;
61
+ //# sourceMappingURL=org.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"org.d.ts","sourceRoot":"","sources":["../src/org.ts"],"names":[],"mappings":"AAWA;;;;;GAKG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,CAAC;AAEnE,MAAM,WAAW,WAAW;IAC1B,wDAAwD;IACxD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,SAAS,CAAC;CACnB;AAED,8EAA8E;AAC9E,eAAO,MAAM,sBAAsB,QAGoC,CAAC;AAExE;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,UAAU,CACxB,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE;IACP,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IACxB;;;;;;OAMG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAC3B,GACL,WAAW,CAuBb;AAwFD;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAmB5D"}
@@ -0,0 +1,77 @@
1
+ import { a as e, r as t } from "./base-DrUMkAh1.js";
2
+ import { existsSync as n, readFileSync as r, rmSync as i } from "node:fs";
3
+ import { basename as a, join as o } from "node:path";
4
+ import { parse as s } from "yaml";
5
+ import { installEntry as c, readRegistry as l, writeRegistry as u } from "@agent-ix/ts-plugin-kit";
6
+ //#region src/plugins.ts
7
+ function d(t = e()) {
8
+ return o(t, "filament", "registry.json");
9
+ }
10
+ function f(e) {
11
+ return {
12
+ cacheRoot: o(e, "cache", "ts-plugin-kit"),
13
+ targetRoot: t(e),
14
+ registryPath: d(e),
15
+ readName: _,
16
+ materialize: "copy"
17
+ };
18
+ }
19
+ function p(e) {
20
+ if (e.startsWith("path:")) return {
21
+ type: "path",
22
+ path: e.slice(5)
23
+ };
24
+ if (e.startsWith("github:")) {
25
+ let [t, n] = e.slice(7).split("@"), r = t.indexOf("//");
26
+ return r === -1 ? {
27
+ type: "github",
28
+ repo: t,
29
+ ref: n
30
+ } : {
31
+ type: "git-subdir",
32
+ url: t.slice(0, r),
33
+ path: t.slice(r + 2),
34
+ ref: n
35
+ };
36
+ }
37
+ if (e.startsWith("package:")) {
38
+ let t = e.slice(8), n = t.lastIndexOf("@");
39
+ return n > 0 ? {
40
+ type: "npm",
41
+ package: t.slice(0, n),
42
+ version: t.slice(n + 1)
43
+ } : {
44
+ type: "npm",
45
+ package: t
46
+ };
47
+ }
48
+ return {
49
+ type: "path",
50
+ path: e
51
+ };
52
+ }
53
+ function m(t, n = e()) {
54
+ return c({ source: p(t) }, f(n));
55
+ }
56
+ function h(t = e()) {
57
+ return l(d(t)).plugins;
58
+ }
59
+ function g(n, r = e()) {
60
+ let a = l(d(r));
61
+ i(o(t(r), n), {
62
+ force: !0,
63
+ recursive: !0
64
+ }), u(d(r), {
65
+ schemaVersion: 1,
66
+ plugins: a.plugins.filter((e) => e.name !== n)
67
+ });
68
+ }
69
+ function _(e) {
70
+ let t = n(o(e, "manifest.yaml")) ? o(e, "manifest.yaml") : o(e, a(e), "manifest.yaml");
71
+ if (!n(t)) throw Error(`no manifest.yaml found under ${e}`);
72
+ let i = s(r(t, "utf8"));
73
+ if (typeof i.name != "string" || i.name.length === 0) throw Error(`manifest ${t} has no name`);
74
+ return i.name;
75
+ }
76
+ //#endregion
77
+ export { g as a, p as i, m as n, h as r, f as t };