@intentius/chant 0.100.0 → 0.101.0

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 (276) hide show
  1. package/dist/build.d.ts +6 -0
  2. package/dist/build.d.ts.map +1 -1
  3. package/dist/cli/build-options.d.ts +2 -0
  4. package/dist/cli/build-options.d.ts.map +1 -1
  5. package/dist/cli/commands/build.d.ts.map +1 -1
  6. package/dist/cli/commands/import.d.ts.map +1 -1
  7. package/dist/cli/handlers/fan-out.d.ts.map +1 -1
  8. package/dist/cli/main.d.ts.map +1 -1
  9. package/dist/cli/mcp/workspace-tools.d.ts +8 -0
  10. package/dist/cli/mcp/workspace-tools.d.ts.map +1 -1
  11. package/dist/cli/registry.d.ts +22 -0
  12. package/dist/cli/registry.d.ts.map +1 -1
  13. package/dist/config.d.ts +11 -0
  14. package/dist/config.d.ts.map +1 -1
  15. package/dist/lexicon.d.ts +24 -1
  16. package/dist/lexicon.d.ts.map +1 -1
  17. package/dist/lifecycle/gate-ledger.d.ts.map +1 -1
  18. package/dist/lifecycle/plan-digest.d.ts +26 -5
  19. package/dist/lifecycle/plan-digest.d.ts.map +1 -1
  20. package/dist/lint/config.d.ts +4 -4
  21. package/dist/op/activities/activity-contracts.d.ts +1 -0
  22. package/dist/op/activities/activity-contracts.d.ts.map +1 -1
  23. package/dist/op/activities/propose-upgrade.d.ts +2 -0
  24. package/dist/op/activities/propose-upgrade.d.ts.map +1 -1
  25. package/dist/op/index.d.ts +1 -1
  26. package/dist/op/index.d.ts.map +1 -1
  27. package/dist/serializer.d.ts +8 -0
  28. package/dist/serializer.d.ts.map +1 -1
  29. package/dist/telemetry-attribution.d.ts +77 -0
  30. package/dist/telemetry-attribution.d.ts.map +1 -0
  31. package/dist/workspace/agent-cli.d.ts +83 -0
  32. package/dist/workspace/agent-cli.d.ts.map +1 -0
  33. package/dist/workspace/changes-cli.d.ts.map +1 -1
  34. package/dist/workspace/changes.d.ts +8 -1
  35. package/dist/workspace/changes.d.ts.map +1 -1
  36. package/dist/workspace/checks/links.d.ts +1 -0
  37. package/dist/workspace/checks/links.d.ts.map +1 -1
  38. package/dist/workspace/checks/live.d.ts +40 -0
  39. package/dist/workspace/checks/live.d.ts.map +1 -0
  40. package/dist/workspace/checks.d.ts +21 -2
  41. package/dist/workspace/checks.d.ts.map +1 -1
  42. package/dist/workspace/compose-graph.d.ts +63 -0
  43. package/dist/workspace/compose-graph.d.ts.map +1 -1
  44. package/dist/workspace/decide.d.ts +1 -1
  45. package/dist/workspace/decide.d.ts.map +1 -1
  46. package/dist/workspace/declaration.d.ts +32 -0
  47. package/dist/workspace/declaration.d.ts.map +1 -1
  48. package/dist/workspace/declaration.schema.json +138 -3
  49. package/dist/workspace/export-cli.d.ts +12 -0
  50. package/dist/workspace/export-cli.d.ts.map +1 -0
  51. package/dist/workspace/export.d.ts +145 -0
  52. package/dist/workspace/export.d.ts.map +1 -0
  53. package/dist/workspace/graph-cli.d.ts.map +1 -1
  54. package/dist/workspace/import.d.ts +73 -0
  55. package/dist/workspace/import.d.ts.map +1 -0
  56. package/dist/workspace/kinds.d.ts +6 -2
  57. package/dist/workspace/kinds.d.ts.map +1 -1
  58. package/dist/workspace/lineage-adopt-cli.d.ts +15 -0
  59. package/dist/workspace/lineage-adopt-cli.d.ts.map +1 -0
  60. package/dist/workspace/lineage-adopt.d.ts +106 -0
  61. package/dist/workspace/lineage-adopt.d.ts.map +1 -0
  62. package/dist/workspace/lineage-check.d.ts +9 -2
  63. package/dist/workspace/lineage-check.d.ts.map +1 -1
  64. package/dist/workspace/lineage-cli.d.ts +6 -1
  65. package/dist/workspace/lineage-cli.d.ts.map +1 -1
  66. package/dist/workspace/lineage-hash-index.d.ts +110 -0
  67. package/dist/workspace/lineage-hash-index.d.ts.map +1 -0
  68. package/dist/workspace/lineage-init.d.ts +10 -0
  69. package/dist/workspace/lineage-init.d.ts.map +1 -1
  70. package/dist/workspace/lineage-lock.d.ts +147 -0
  71. package/dist/workspace/lineage-lock.d.ts.map +1 -1
  72. package/dist/workspace/lineage-migrations.d.ts +15 -3
  73. package/dist/workspace/lineage-migrations.d.ts.map +1 -1
  74. package/dist/workspace/lineage-provenance.d.ts +18 -0
  75. package/dist/workspace/lineage-provenance.d.ts.map +1 -0
  76. package/dist/workspace/lineage-upgrade-cli.d.ts +2 -0
  77. package/dist/workspace/lineage-upgrade-cli.d.ts.map +1 -1
  78. package/dist/workspace/lineage-upgrade.d.ts +30 -1
  79. package/dist/workspace/lineage-upgrade.d.ts.map +1 -1
  80. package/dist/workspace/lineage-versions.d.ts +116 -0
  81. package/dist/workspace/lineage-versions.d.ts.map +1 -0
  82. package/dist/workspace/links.d.ts +31 -5
  83. package/dist/workspace/links.d.ts.map +1 -1
  84. package/dist/workspace/ls-generated.d.ts +37 -0
  85. package/dist/workspace/ls-generated.d.ts.map +1 -0
  86. package/dist/workspace/ls.d.ts +4 -0
  87. package/dist/workspace/ls.d.ts.map +1 -1
  88. package/dist/workspace/member-commands.d.ts.map +1 -1
  89. package/dist/workspace/nested-graph.d.ts +56 -0
  90. package/dist/workspace/nested-graph.d.ts.map +1 -0
  91. package/dist/workspace/nesting.d.ts +21 -0
  92. package/dist/workspace/nesting.d.ts.map +1 -0
  93. package/dist/workspace/pin-cli.d.ts +10 -0
  94. package/dist/workspace/pin-cli.d.ts.map +1 -0
  95. package/dist/workspace/pin-integrity.d.ts +51 -0
  96. package/dist/workspace/pin-integrity.d.ts.map +1 -0
  97. package/dist/workspace/reason-codes.d.ts +26 -2
  98. package/dist/workspace/reason-codes.d.ts.map +1 -1
  99. package/dist/workspace/record-sessions.d.ts +7 -11
  100. package/dist/workspace/record-sessions.d.ts.map +1 -1
  101. package/dist/workspace/records-cli.d.ts +30 -1
  102. package/dist/workspace/records-cli.d.ts.map +1 -1
  103. package/dist/workspace/records-close.d.ts +5 -2
  104. package/dist/workspace/records-close.d.ts.map +1 -1
  105. package/dist/workspace/records-write.d.ts +22 -4
  106. package/dist/workspace/records-write.d.ts.map +1 -1
  107. package/dist/workspace/records.d.ts +43 -5
  108. package/dist/workspace/records.d.ts.map +1 -1
  109. package/dist/workspace/returns.d.ts +129 -0
  110. package/dist/workspace/returns.d.ts.map +1 -0
  111. package/dist/workspace/status-gates.d.ts.map +1 -1
  112. package/dist/workspace/template-manifest.d.ts +11 -3
  113. package/dist/workspace/template-manifest.d.ts.map +1 -1
  114. package/dist/workspace/trust/attestor.d.ts +8 -0
  115. package/dist/workspace/trust/attestor.d.ts.map +1 -1
  116. package/dist/workspace/trust/dsse.d.ts +58 -0
  117. package/dist/workspace/trust/dsse.d.ts.map +1 -0
  118. package/dist/workspace/trust/evidence-cli.d.ts +66 -0
  119. package/dist/workspace/trust/evidence-cli.d.ts.map +1 -0
  120. package/dist/workspace/trust/evidence.d.ts +93 -0
  121. package/dist/workspace/trust/evidence.d.ts.map +1 -0
  122. package/dist/workspace/trust/policy.d.ts +54 -1
  123. package/dist/workspace/trust/policy.d.ts.map +1 -1
  124. package/dist/workspace/trust/provenance.d.ts +21 -1
  125. package/dist/workspace/trust/provenance.d.ts.map +1 -1
  126. package/dist/workspace/trust/rotation.d.ts +132 -0
  127. package/dist/workspace/trust/rotation.d.ts.map +1 -0
  128. package/dist/workspace/trust/seal.d.ts.map +1 -1
  129. package/dist/workspace/trust/signers-cli.d.ts +49 -0
  130. package/dist/workspace/trust/signers-cli.d.ts.map +1 -0
  131. package/dist/workspace/trust/ssh-commit.d.ts +12 -0
  132. package/dist/workspace/trust/ssh-commit.d.ts.map +1 -1
  133. package/dist/workspace/trust/test-repo.d.ts +13 -0
  134. package/dist/workspace/trust/test-repo.d.ts.map +1 -1
  135. package/dist/workspace/trust/verify.d.ts +15 -0
  136. package/dist/workspace/trust/verify.d.ts.map +1 -1
  137. package/dist/workspace/work-evidence.d.ts +1 -1
  138. package/dist/workspace/work-evidence.d.ts.map +1 -1
  139. package/dist/workspace/write-scope.d.ts +199 -0
  140. package/dist/workspace/write-scope.d.ts.map +1 -0
  141. package/package.json +1 -1
  142. package/src/build.ts +8 -0
  143. package/src/cli/build-options.ts +4 -1
  144. package/src/cli/commands/build.ts +2 -0
  145. package/src/cli/commands/import-live.test.ts +69 -1
  146. package/src/cli/commands/import.ts +48 -22
  147. package/src/cli/handlers/fan-out.test.ts +6 -6
  148. package/src/cli/handlers/fan-out.ts +2 -1
  149. package/src/cli/handlers/graph.test.ts +42 -0
  150. package/src/cli/handlers/graph.ts +22 -0
  151. package/src/cli/handlers/operator.ts +1 -1
  152. package/src/cli/main.test.ts +32 -0
  153. package/src/cli/main.ts +103 -6
  154. package/src/cli/mcp/workspace-tools.test.ts +1 -1
  155. package/src/cli/mcp/workspace-tools.ts +33 -2
  156. package/src/cli/registry.ts +22 -0
  157. package/src/cli/serve-mcp-workspace.test.ts +1 -1
  158. package/src/codegen/release-wiring.test.ts +5 -1
  159. package/src/components/fan-out-output.test.ts +1 -1
  160. package/src/components/fan-out.test.ts +1 -1
  161. package/src/components/promote.test.ts +1 -1
  162. package/src/config.ts +12 -0
  163. package/src/content-digest.test.ts +2 -2
  164. package/src/lexicon.ts +25 -1
  165. package/src/lifecycle/gate-ledger.test.ts +14 -0
  166. package/src/lifecycle/gate-ledger.ts +2 -1
  167. package/src/lifecycle/plan-digest.test.ts +54 -3
  168. package/src/lifecycle/plan-digest.ts +38 -8
  169. package/src/op/activities/activity-contracts.ts +1 -0
  170. package/src/op/activities/propose-upgrade.ts +8 -5
  171. package/src/op/gate-approval.test.ts +17 -0
  172. package/src/op/gate.ts +3 -3
  173. package/src/op/index.ts +1 -1
  174. package/src/serializer.ts +9 -0
  175. package/src/telemetry-attribution.test.ts +91 -0
  176. package/src/telemetry-attribution.ts +145 -0
  177. package/src/workspace/agent-cli.ts +134 -0
  178. package/src/workspace/agent.schema.json +356 -0
  179. package/src/workspace/behold-kinds.test.ts +1 -1
  180. package/src/workspace/changes-cli.ts +5 -0
  181. package/src/workspace/changes.schema.json +179 -1
  182. package/src/workspace/changes.ts +58 -4
  183. package/src/workspace/check-live.test.ts +192 -0
  184. package/src/workspace/check.schema.json +64 -0
  185. package/src/workspace/checks/links.ts +23 -2
  186. package/src/workspace/checks/live.ts +113 -0
  187. package/src/workspace/checks.test.ts +2 -2
  188. package/src/workspace/checks.ts +20 -3
  189. package/src/workspace/compose-graph.test.ts +47 -0
  190. package/src/workspace/compose-graph.ts +120 -3
  191. package/src/workspace/conformance/__fixture__/decisions/decision.kind.mjs +7 -1
  192. package/src/workspace/conformance/__fixture__/decisions/decision.schema.json +5 -0
  193. package/src/workspace/declaration.schema.json +138 -3
  194. package/src/workspace/declaration.ts +106 -1
  195. package/src/workspace/declared-kinds.test.ts +33 -0
  196. package/src/workspace/evidence.schema.json +279 -0
  197. package/src/workspace/export-cli.ts +180 -0
  198. package/src/workspace/export-import.test.ts +282 -0
  199. package/src/workspace/export.ts +486 -0
  200. package/src/workspace/graph-cli.ts +47 -1
  201. package/src/workspace/graph-contract.test.ts +89 -4
  202. package/src/workspace/graph.schema.json +206 -1
  203. package/src/workspace/import.ts +325 -0
  204. package/src/workspace/kinds.test.ts +5 -5
  205. package/src/workspace/kinds.ts +25 -3
  206. package/src/workspace/lineage-adopt-cli.ts +103 -0
  207. package/src/workspace/lineage-adopt.test.ts +552 -0
  208. package/src/workspace/lineage-adopt.ts +452 -0
  209. package/src/workspace/lineage-check.ts +26 -5
  210. package/src/workspace/lineage-cli.ts +12 -2
  211. package/src/workspace/lineage-hash-index.ts +305 -0
  212. package/src/workspace/lineage-init.test.ts +9 -0
  213. package/src/workspace/lineage-init.ts +29 -9
  214. package/src/workspace/lineage-lock.ts +54 -0
  215. package/src/workspace/lineage-migrations.test.ts +27 -0
  216. package/src/workspace/lineage-migrations.ts +44 -14
  217. package/src/workspace/lineage-provenance.ts +40 -0
  218. package/src/workspace/lineage-upgrade-cli.ts +9 -5
  219. package/src/workspace/lineage-upgrade.test.ts +92 -1
  220. package/src/workspace/lineage-upgrade.ts +111 -16
  221. package/src/workspace/lineage-versions.ts +348 -0
  222. package/src/workspace/links.test.ts +121 -2
  223. package/src/workspace/links.ts +97 -6
  224. package/src/workspace/ls-contract.test.ts +84 -1
  225. package/src/workspace/ls-generated.ts +111 -0
  226. package/src/workspace/ls.schema.json +19 -0
  227. package/src/workspace/ls.ts +8 -1
  228. package/src/workspace/member-commands.ts +3 -1
  229. package/src/workspace/nested-graph.test.ts +176 -0
  230. package/src/workspace/nested-graph.ts +169 -0
  231. package/src/workspace/nesting.ts +37 -0
  232. package/src/workspace/pin-cli.test.ts +71 -0
  233. package/src/workspace/pin-cli.ts +57 -0
  234. package/src/workspace/pin-integrity.test.ts +121 -0
  235. package/src/workspace/pin-integrity.ts +104 -0
  236. package/src/workspace/points-write.schema.json +1 -0
  237. package/src/workspace/read-contract.test.ts +24 -0
  238. package/src/workspace/reason-codes.test.ts +10 -0
  239. package/src/workspace/reason-codes.ts +29 -2
  240. package/src/workspace/record-sessions.ts +12 -14
  241. package/src/workspace/records-amend.schema.json +4 -0
  242. package/src/workspace/records-cli.ts +93 -12
  243. package/src/workspace/records-close.schema.json +6 -2
  244. package/src/workspace/records-close.ts +10 -2
  245. package/src/workspace/records-formats.test.ts +13 -5
  246. package/src/workspace/records-new.schema.json +4 -0
  247. package/src/workspace/records-review.schema.json +4 -0
  248. package/src/workspace/records-sessions.test.ts +23 -6
  249. package/src/workspace/records-write.test.ts +65 -8
  250. package/src/workspace/records-write.ts +70 -6
  251. package/src/workspace/records.schema.json +55 -3
  252. package/src/workspace/records.ts +96 -5
  253. package/src/workspace/returns.ts +328 -0
  254. package/src/workspace/signers.schema.json +206 -0
  255. package/src/workspace/status-gates.ts +2 -1
  256. package/src/workspace/template-manifest.ts +22 -4
  257. package/src/workspace/trust/attestor.ts +15 -0
  258. package/src/workspace/trust/dsse.ts +134 -0
  259. package/src/workspace/trust/evidence-cli.ts +195 -0
  260. package/src/workspace/trust/evidence.test.ts +241 -0
  261. package/src/workspace/trust/evidence.ts +207 -0
  262. package/src/workspace/trust/policy.ts +110 -3
  263. package/src/workspace/trust/provenance.ts +41 -4
  264. package/src/workspace/trust/record-seal.test.ts +1 -1
  265. package/src/workspace/trust/rotation.test.ts +258 -0
  266. package/src/workspace/trust/rotation.ts +336 -0
  267. package/src/workspace/trust/seal.ts +11 -0
  268. package/src/workspace/trust/signers-cli.ts +178 -0
  269. package/src/workspace/trust/ssh-commit.ts +53 -4
  270. package/src/workspace/trust/test-repo.ts +18 -0
  271. package/src/workspace/trust/trust.test.ts +8 -2
  272. package/src/workspace/trust/verify-cli.ts +1 -0
  273. package/src/workspace/trust/verify.ts +22 -0
  274. package/src/workspace/work-evidence.schema.json +4 -0
  275. package/src/workspace/write-scope.test.ts +340 -0
  276. package/src/workspace/write-scope.ts +448 -0
@@ -58,6 +58,30 @@ export interface ChangesPolicy {
58
58
  /** Globs over files, relative to the workspace root, whose changes need no record: lockfiles, generated output. */
59
59
  ignore: string[];
60
60
  }
61
+ /** The core principal classes (#2524 D5). */
62
+ export declare const PRINCIPAL_CLASSES: readonly ["human", "agent", "runner", "service"];
63
+ export type PrincipalClass = (typeof PRINCIPAL_CLASSES)[number];
64
+ /** How a record is written, as the records commands name it (#2548). */
65
+ export declare const WRITE_VERBS: readonly ["new", "amend", "review", "close"];
66
+ export type WriteVerb = (typeof WRITE_VERBS)[number];
67
+ /** One principal class's entry in the declaration's `writeScope` (#2548, ws-067). */
68
+ export interface ClassScope {
69
+ /** The members whose files the class may write, or null for every path. Always null for the agent class: a session writes its own member. */
70
+ members: string[] | null;
71
+ /** Kind name to the verbs the class may write it with, or null for every kind in reach with every verb. */
72
+ records: Record<string, WriteVerb[]> | null;
73
+ pointer: string;
74
+ }
75
+ /** The declaration's `writeScope` block: an entry per restricted class. A class with no entry is not restricted. */
76
+ export type WriteScope = Partial<Record<PrincipalClass, ClassScope>>;
77
+ /** An agent session the declaration names (#2524 D20, #2548): bound to one member. */
78
+ export interface AgentDeclaration {
79
+ name: string;
80
+ member: string;
81
+ /** Principals that write only as this session. */
82
+ principals: string[];
83
+ pointer: string;
84
+ }
61
85
  export interface MemberRole {
62
86
  name: string;
63
87
  /** Relative to the member's directory, or null for the whole member. */
@@ -86,6 +110,8 @@ export interface LinkDeclaration {
86
110
  output: string;
87
111
  /** The link kind as written, or null for the default (`output`). */
88
112
  kind: string | null;
113
+ /** A telemetry link's OTLP protocol as written (#2558), or null. */
114
+ protocol: string | null;
89
115
  /** The link's JSON Pointer in the file, for messages. */
90
116
  pointer: string;
91
117
  }
@@ -236,6 +262,8 @@ export interface Member {
236
262
  box: BoxDeclaration | null;
237
263
  upstream: string | null;
238
264
  because: string | null;
265
+ /** Whether `chant workspace export` takes the member (#2552, D10). False when the entry does not say. */
266
+ travel: boolean;
239
267
  suppress: Suppression[];
240
268
  /** The entry's JSON Pointer in the file, for messages. */
241
269
  pointer: string;
@@ -278,6 +306,10 @@ export interface Declaration {
278
306
  hosts: Host[];
279
307
  /** The forward coverage check's policy (#2773), or null when the declaration has no `changes` block. */
280
308
  changes: ChangesPolicy | null;
309
+ /** Who may write what (#2548), or null when the declaration has no `writeScope` block. */
310
+ writeScope: WriteScope | null;
311
+ /** The agent sessions, in file order (#2548). */
312
+ agents: AgentDeclaration[];
281
313
  /** The file, relative to the workspace root's tree (`chant.workspace.json` or `.jsonc`). */
282
314
  file: string;
283
315
  }
@@ -1 +1 @@
1
- {"version":3,"file":"declaration.d.ts","sourceRoot":"","sources":["../../src/workspace/declaration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAOH,OAAO,EAAE,aAAa,EAAqB,MAAM,SAAS,CAAC;AAC3D,OAAO,EAA+B,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAEzE,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,QAAQ,CAAC;AAEtD,eAAO,MAAM,qBAAqB,QAAa,CAAC;AAChD,eAAO,MAAM,iBAAiB,4DAA6D,CAAC;AAC5F,eAAO,MAAM,0BAA0B,IAAI,CAAC;AAE5C,gFAAgF;AAChF,eAAO,M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AAM,EAAE,CAAC;IAClB,uEAAuE;IACvE,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,WAAW,EAAE,WAAW,EAAE,IAAI,EAAE,aAAa,GAAG,aAAa,EAAE,CA8B5F;AAID;;;;;;GAMG;AACH,wBAAgB,OAAO,CACrB,WAAW,EAAE,WAAW,EACxB,MAAM,EAAE,aAAa,EAAE,EACvB,IAAI,EAAE,MAAM,GACX;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAWlE;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,WAAW,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAAE,CAWlH"}
@@ -101,6 +101,36 @@
101
101
  }
102
102
  }
103
103
  }
104
+ },
105
+ "writeScope": {
106
+ "type": "object",
107
+ "additionalProperties": false,
108
+ "description": "Who may write what (#2524 D5, #2548, ws-067): for each principal class, the members whose files it may write and the record kinds it may write, with which verbs. A class with no entry is not restricted. An agent is always bound to its session's member (agents); its entry can only narrow the record kinds and verbs. chant workspace records new, amend, review and close and the MCP record tools refuse a write outside the writer's scope with write-scope-member or write-scope-kind, and chant workspace check --changes reports each commit that writes outside its author's scope, read from the declaration and the trust policy at the range's base. Added in schema 1 by chant 0.101.0, so a declaration that uses it sets minReader to 0.101.0 or newer.",
109
+ "properties": {
110
+ "human": {
111
+ "$ref": "#/$defs/classScope",
112
+ "description": "Principals holding none of the agent, runner and service roles in the trust policy at base."
113
+ },
114
+ "agent": {
115
+ "$ref": "#/$defs/agentScope",
116
+ "description": "An agent session (agents), or a principal holding the agent role in the trust policy at base."
117
+ },
118
+ "runner": {
119
+ "$ref": "#/$defs/classScope",
120
+ "description": "Principals holding the runner role in the trust policy at base, such as a CI job's signing identity."
121
+ },
122
+ "service": {
123
+ "$ref": "#/$defs/classScope",
124
+ "description": "Principals holding the service role in the trust policy at base."
125
+ }
126
+ }
127
+ },
128
+ "agents": {
129
+ "type": "array",
130
+ "description": "The agent sessions the workspace declares (#2524 D20, #2548, ws-067). Each is bound to one member: it writes that member's files and the records of kinds that member or the workspace declares, as writeScope.agent allows. A session resumes from chant workspace agent <name> --json, which prints its member, its scope and the spec, read from the repository alone. A write names its session with the CHANT_AGENT environment variable, or a commit with a Chant-Agent trailer. Added in schema 1 by chant 0.101.0, so a declaration that uses it sets minReader to 0.101.0 or newer.",
131
+ "items": {
132
+ "$ref": "#/$defs/agent"
133
+ }
104
134
  }
105
135
  },
106
136
  "patternProperties": {
@@ -173,7 +203,7 @@
173
203
  },
174
204
  "link": {
175
205
  "type": "object",
176
- "description": "A member link: this member reads output of member (#2539).",
206
+ "description": "A member link: this member reads output of member (#2539), or sends its telemetry to a pipeline of its collector (#2558).",
177
207
  "required": [
178
208
  "member",
179
209
  "output"
@@ -185,11 +215,19 @@
185
215
  },
186
216
  "output": {
187
217
  "$ref": "#/$defs/outputName",
188
- "description": "The producer's output, matched exactly. It must be one the producer's kind exposes."
218
+ "description": "The producer's output, matched exactly. It must be one the producer's kind exposes. For a telemetry link, the id of a pipeline or an exporter in the producer's collector."
189
219
  },
190
220
  "kind": {
191
221
  "$ref": "#/$defs/kindName",
192
- "description": "The link kind. output, the default, is the only one so far: the consumer reads the named output."
222
+ "description": "The link kind. output, the default: the consumer reads the named output. telemetry (#2558): the consumer sends its telemetry to the named pipeline or exporter of the producer's collector, and chant workspace graph checks that it exists and, when protocol is given, that it speaks it. A declaration that uses telemetry sets minReader to 0.101.0 or newer."
223
+ },
224
+ "protocol": {
225
+ "enum": [
226
+ "grpc",
227
+ "http/protobuf",
228
+ "http/json"
229
+ ],
230
+ "description": "For a telemetry link, the OTLP protocol the consumer sends, as OTEL_EXPORTER_OTLP_PROTOCOL names it. Refused on any other kind. Added in schema 1 by chant 0.101.0."
193
231
  }
194
232
  },
195
233
  "patternProperties": {
@@ -320,6 +358,10 @@
320
358
  "minLength": 1,
321
359
  "description": "Where an embedded member's files come from. Versions live in the lock."
322
360
  },
361
+ "travel": {
362
+ "type": "boolean",
363
+ "description": "Whether the member goes with an export (#2524 D10, #2552). chant workspace export writes only members that set travel to true into the export member, and refuses to name one that does not. Added in schema 1 by chant 0.101.0, so a declaration that uses it sets minReader to 0.101.0 or newer."
364
+ },
323
365
  "because": {
324
366
  "type": "string",
325
367
  "minLength": 1,
@@ -858,6 +900,99 @@
858
900
  "type": "string",
859
901
  "description": "A glob over file paths, relative to the workspace root: * and ? within one segment, ** across segments, [...] classes and {a,b} alternatives. No leading /, no . or .. segments.",
860
902
  "pattern": "^(?!\\.\\.?(/|$))[^/\\\\]+(/(?!\\.\\.?(/|$))[^/\\\\]+)*$"
903
+ },
904
+ "recordScope": {
905
+ "type": "object",
906
+ "description": "Record kind names, as the kind file's recordKind.name or the name the declaration gives it, each with the verbs the class may write it with: new, amend, review and close (a review session). A kind left out may not be written at all. A record file a commit deletes is never in scope.",
907
+ "propertyNames": {
908
+ "$ref": "#/$defs/kindName"
909
+ },
910
+ "additionalProperties": {
911
+ "type": "array",
912
+ "uniqueItems": true,
913
+ "items": {
914
+ "enum": [
915
+ "new",
916
+ "amend",
917
+ "review",
918
+ "close"
919
+ ]
920
+ }
921
+ }
922
+ },
923
+ "classScope": {
924
+ "type": "object",
925
+ "description": "A principal class's write scope.",
926
+ "properties": {
927
+ "members": {
928
+ "description": "The members whose files the class may write, by name, or * for every path. Without it, every path. A path in no member is in scope only under *.",
929
+ "oneOf": [
930
+ {
931
+ "const": "*"
932
+ },
933
+ {
934
+ "type": "array",
935
+ "uniqueItems": true,
936
+ "items": {
937
+ "$ref": "#/$defs/name"
938
+ }
939
+ }
940
+ ]
941
+ },
942
+ "records": {
943
+ "$ref": "#/$defs/recordScope",
944
+ "description": "The record kinds the class may write, and how. Without it, every kind in reach, with every verb. A kind a member declares is in reach when that member is; the workspace's own kinds always are."
945
+ }
946
+ },
947
+ "patternProperties": {
948
+ "^x-": true
949
+ },
950
+ "additionalProperties": false
951
+ },
952
+ "agentScope": {
953
+ "type": "object",
954
+ "description": "The agent class's write scope. Its members are always its session's one member, so only the record kinds can be set.",
955
+ "properties": {
956
+ "records": {
957
+ "$ref": "#/$defs/recordScope",
958
+ "description": "The record kinds an agent may write, and how. Without it, every kind in reach of its member, with every verb."
959
+ }
960
+ },
961
+ "patternProperties": {
962
+ "^x-": true
963
+ },
964
+ "additionalProperties": false
965
+ },
966
+ "agent": {
967
+ "type": "object",
968
+ "description": "An agent session (#2548).",
969
+ "required": [
970
+ "name",
971
+ "member"
972
+ ],
973
+ "properties": {
974
+ "name": {
975
+ "$ref": "#/$defs/name",
976
+ "description": "The session's name, unique among agents: what CHANT_AGENT and a Chant-Agent trailer give."
977
+ },
978
+ "member": {
979
+ "$ref": "#/$defs/name",
980
+ "description": "The one member the session is bound to. It must be a declared member, not an example group."
981
+ },
982
+ "principals": {
983
+ "type": "array",
984
+ "uniqueItems": true,
985
+ "items": {
986
+ "type": "string",
987
+ "minLength": 1
988
+ },
989
+ "description": "Principals that write only as this session: a commit attested by one, or a write whose by names one, is judged as the session. A principal is listed by one session at most."
990
+ }
991
+ },
992
+ "patternProperties": {
993
+ "^x-": true
994
+ },
995
+ "additionalProperties": false
861
996
  }
862
997
  }
863
998
  }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * `chant workspace export [<member>...] [--to <member>] [--param name=value] [--dry-run] [--json]`,
3
+ * `chant workspace import [<dir>] [--remove] [--dry-run] [--json]` and
4
+ * `chant workspace admit <return id> [--note <text>] [--dry-run] [--json]` (#2552).
5
+ *
6
+ * See ./export.ts, ./import.ts and ./returns.ts.
7
+ */
8
+ import type { CommandContext } from "../cli/registry.js";
9
+ export declare function runWorkspaceExport(ctx: CommandContext): Promise<number>;
10
+ export declare function runWorkspaceImport(ctx: CommandContext): Promise<number>;
11
+ export declare function runWorkspaceAdmit(ctx: CommandContext): Promise<number>;
12
+ //# sourceMappingURL=export-cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"export-cli.d.ts","sourceRoot":"","sources":["../../src/workspace/export-cli.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AA+BtD,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA0C7E;AAED,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAmD7E;AAED,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAyC5E"}
@@ -0,0 +1,145 @@
1
+ /**
2
+ * `chant workspace export`: write members of this workspace, with their
3
+ * lineage and records, into the workspace's export member as a workspace of
4
+ * their own (#2552, #2524 D10, requirements X1 to X3 and X6, ws-073).
5
+ *
6
+ * The export goes into its own member, found by role: a member of kind
7
+ * `workspace` with the role `export`. Nothing is written anywhere else, and a
8
+ * layout where the export would land inside another member, or another
9
+ * member inside the export, is refused. That member is a nested workspace
10
+ * (ws-071): the outer workspace reads it only through its own commands, and
11
+ * export is the one command that writes there.
12
+ *
13
+ * Only members that declare `travel: true` go (X6). With no members named,
14
+ * every such member goes, with the workspace's own record kinds and their
15
+ * records: that is an export of the workspace. Naming members exports just
16
+ * those, each with the record kinds it declares.
17
+ *
18
+ * The export keeps the workspace's layout: a member at `app/` is at
19
+ * `<export>/app/`. It gets a declaration listing the members that went, each
20
+ * entry copied as written, less the links, agents and pins that point at
21
+ * members that stayed. The lineage of each scope goes with it, filtered to
22
+ * the files that went. Records are copied byte for byte, so every seal on
23
+ * them stays as it was.
24
+ *
25
+ * Host-bound parameters (D9) switch on export (X3): `--param name=value`
26
+ * gives an exported lineage's host-bound parameter the value it has where the
27
+ * export goes. The files the lineage lists for it get the new value, the lock
28
+ * records it, and a file that had its recorded hash keeps a matching one. The
29
+ * host's values stay in `.chant/export.json`, where `import` reads them to
30
+ * switch back.
31
+ *
32
+ * `.chant/export.json` records where the export came from (the workspace's
33
+ * name and revision, ws-016), what went, and the hash each file had here and
34
+ * in the export. Import uses those as its merge base.
35
+ */
36
+ import { z } from "zod";
37
+ import { type Declaration, type Member } from "./declaration.js";
38
+ import { LockError, type Lineage } from "./lineage-lock.js";
39
+ /** The role that marks the member an export is written into. */
40
+ export declare const EXPORT_ROLE = "export";
41
+ /** The export manifest, relative to the export's root. */
42
+ export declare const EXPORT_MANIFEST = ".chant/export.json";
43
+ declare const ManifestSchema: z.ZodObject<{
44
+ schema: z.ZodLiteral<1>;
45
+ id: z.ZodString;
46
+ from: z.ZodObject<{
47
+ workspace: z.ZodString;
48
+ revision: z.ZodNullable<z.ZodString>;
49
+ dirty: z.ZodBoolean;
50
+ }, z.core.$strict>;
51
+ member: z.ZodString;
52
+ members: z.ZodArray<z.ZodString>;
53
+ whole: z.ZodBoolean;
54
+ dirs: z.ZodArray<z.ZodString>;
55
+ files: z.ZodRecord<z.ZodString, z.ZodObject<{
56
+ host: z.ZodString;
57
+ export: z.ZodString;
58
+ }, z.core.$strict>>;
59
+ locks: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
60
+ host: z.ZodString;
61
+ export: z.ZodString;
62
+ partial: z.ZodBoolean;
63
+ }, z.core.$strict>>>;
64
+ hostValues: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
65
+ host: z.ZodString;
66
+ export: z.ZodString;
67
+ }, z.core.$strict>>>;
68
+ dropped: z.ZodObject<{
69
+ links: z.ZodArray<z.ZodObject<{
70
+ member: z.ZodString;
71
+ to: z.ZodString;
72
+ }, z.core.$strict>>;
73
+ agents: z.ZodArray<z.ZodString>;
74
+ pins: z.ZodArray<z.ZodString>;
75
+ records: z.ZodArray<z.ZodString>;
76
+ diagrams: z.ZodArray<z.ZodString>;
77
+ }, z.core.$strict>;
78
+ }, z.core.$strict>;
79
+ export type ExportManifest = z.infer<typeof ManifestSchema>;
80
+ export declare class ExportError extends LockError {
81
+ name: string;
82
+ }
83
+ export declare function parseManifest(text: string, label: string): ExportManifest;
84
+ export declare function readManifestAt(dir: string): ExportManifest | null;
85
+ /** `true` when `path` is `dir` or below it. Both relative, `/`-separated, `"."` for the root. */
86
+ export declare function under(path: string, dir: string): boolean;
87
+ export declare function gitTopOf(dir: string): string | undefined;
88
+ /**
89
+ * The files under `dir` (absolute) that git tracks or would track, relative
90
+ * to `dir`, that exist in the working tree. Outside git, every file, leaving
91
+ * out `.git` and `node_modules`.
92
+ */
93
+ export declare function listFiles(dir: string): string[];
94
+ /** A lock's path, relative to the workspace root, is a lock file: `.chant/workspace.lock.json` at some directory. */
95
+ export declare function isLockPath(path: string): boolean;
96
+ /** The directory, relative to the workspace root, a lock at `path` sits in. */
97
+ export declare function lockDir(path: string): string;
98
+ /** Join a lock directory, a scope and a file into a workspace-relative path. */
99
+ export declare function scopedPath(dir: string, scope: string, file: string): string;
100
+ /** The digest of a lineage, for telling whether it changed. */
101
+ export declare function lineageDigest(lineage: Lineage): string;
102
+ /**
103
+ * Switch host-bound values in a scope (#2552): for each parameter in
104
+ * `values`, the files the lineage lists for it get `to` in place of `from`,
105
+ * the lineage records `to`, and a file that had its recorded hash keeps a
106
+ * matching one. `files` holds the scope's files by workspace-relative path,
107
+ * and is changed in place. Returns the paths whose content changed.
108
+ */
109
+ export declare function switchHostValues(lineage: Lineage, dir: string, scope: string, values: Record<string, {
110
+ from: string;
111
+ to: string;
112
+ }>, files: Map<string, Buffer>): string[];
113
+ /** The raw declaration object, read as JSON or JSONC. */
114
+ export declare function rawDeclaration(root: string): {
115
+ file: string;
116
+ obj: Record<string, unknown>;
117
+ };
118
+ /** The export member: the one with the export role, or the one `to` names. */
119
+ export declare function exportMember(decl: Declaration, to?: string): Member;
120
+ export interface ExportOptions {
121
+ /** The workspace root, where `chant.workspace.json` is. */
122
+ root: string;
123
+ /** Members to export. Empty or absent: every member that travels, with the workspace's own records. */
124
+ members?: string[];
125
+ /** The export member's name, when more than one has the role. */
126
+ to?: string;
127
+ /** Host-bound parameter values for the export. */
128
+ params?: Record<string, string>;
129
+ dryRun?: boolean;
130
+ }
131
+ export interface ExportResult {
132
+ member: string;
133
+ /** The export's directory, relative to the workspace root. */
134
+ dir: string;
135
+ manifest: ExportManifest;
136
+ /** Files written, relative to the export's root, besides the declaration and the manifest. */
137
+ files: number;
138
+ /** Paths, relative to the workspace root, whose host-bound values were switched. */
139
+ switched: string[];
140
+ written: boolean;
141
+ }
142
+ /** Plan the export, and write it unless `dryRun`. Throws an {@link ExportError}. */
143
+ export declare function exportWorkspace(o: ExportOptions): Promise<ExportResult>;
144
+ export {};
145
+ //# sourceMappingURL=export.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../src/workspace/export.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAMH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAsC,KAAK,WAAW,EAAE,KAAK,MAAM,EAAE,MAAM,eAAe,CAAC;AAElG,OAAO,EAAuB,SAAS,EAAyB,KAAK,OAAO,EAAoB,MAAM,gBAAgB,CAAC;AAIvH,gEAAgE;AAChE,eAAO,MAAM,WAAW,WAAW,CAAC;AAEpC,0DAA0D;AAC1D,eAAO,MAAM,eAAe,uBAAuB,CAAC;AAIpD,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAwCT,CAAC;AACZ,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D,qBAAa,WAAY,SAAQ,SAAS;IAC/B,IAAI,SAAiB;CAC/B;AAID,wBAA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AM,EAAE,OAAO,EAAE,SAAS;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1G,kGAAkG;IAClG,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,aAAa,CAAC;IACnB,gFAAgF;IAChF,MAAM,EAAE,OAAO,CAAC;IAChB,4FAA4F;IAC5F,UAAU,CAAC,EAAE,UAAU,EAAE,CAAC;CAC3B;AAED,sEAAsE;AACtE,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,GAAG,MAAM,EAAE,CAEtE;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,MAAM,CAmCtF;AAgDD,wGAAwG;AACxG,wBAAgB,SAAS,CAAC,KAAK,EAAE,UAAU,GAAG,UAAU,CAKvD;AAED,qGAAqG;AACrG,wBAAsB,cAAc,CAAC,KAAK,EAAE,UAAU,GAAG,OAAO,CAAC,WAAW,CAAC,CAqE5E;AA8CD,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAsE5E"}
@@ -0,0 +1,73 @@
1
+ /**
2
+ * `chant workspace import`: bring an export back into the workspace it came
3
+ * from (#2552, #2524 D10, requirements X3 and X5, ws-004, ws-073).
4
+ *
5
+ * The source is the export member, or a directory holding a copy of an
6
+ * export, such as the repository a hosted copy was kept in. Its
7
+ * `.chant/export.json` names the workspace and the members that went, and the
8
+ * hash each file had on both sides when it went: the merge base.
9
+ *
10
+ * For each file, three hashes decide. A file the copy did not change is left
11
+ * alone. A file the copy changed is written when the workspace did not
12
+ * change it since the export. A file both changed differently is a conflict,
13
+ * and any conflict refuses the whole import, which then writes nothing. The
14
+ * same holds for removed and added files. Only paths inside the members that
15
+ * went, and the record directories of a whole export, are written: a copy
16
+ * that holds anything else is refused, so an import never writes into another
17
+ * member.
18
+ *
19
+ * Host values switch back (X3): the host-bound values the export recorded
20
+ * are put back in the files the lineage lists, and in the lock. Each lineage
21
+ * scope merges the same way as a file, with the scope's digest as the base.
22
+ *
23
+ * Every write is recorded in `.chant/returns/<id>.json` (./returns.ts). When
24
+ * the copy is a git repository of its own, each written file also carries the
25
+ * commit that last changed it there, with the original signature, and the
26
+ * tree objects that tie that commit to the bytes. Records keep their seals,
27
+ * since their bytes are copied as they are.
28
+ *
29
+ * Last, the export member is written again from the workspace as it now
30
+ * stands (the default), or removed with its declaration entry (`--remove`).
31
+ */
32
+ import { type ReturnRecord } from "./returns.js";
33
+ export interface ImportOptions {
34
+ /** The workspace root. */
35
+ root: string;
36
+ /** The returned copy's directory. Absent: the export member. */
37
+ from?: string;
38
+ /** Remove the export member and its declaration entry, rather than writing it again. */
39
+ remove?: boolean;
40
+ dryRun?: boolean;
41
+ }
42
+ export interface ImportConflict {
43
+ path: string;
44
+ reason: string;
45
+ }
46
+ export interface ImportResult {
47
+ /** The export the copy started from. */
48
+ export: string;
49
+ /** The copy's directory, as given or the export member's. */
50
+ from: string;
51
+ written: string[];
52
+ removed: string[];
53
+ /** Locks changed, by path. */
54
+ locks: string[];
55
+ /** Paths whose host-bound values were switched back. */
56
+ hostValues: string[];
57
+ conflicts: ImportConflict[];
58
+ /** Paths in the copy that are outside every member that went. */
59
+ outside: string[];
60
+ /** The return record written, relative to the workspace root, or null when nothing changed or for a dry run. */
61
+ returnRecord: string | null;
62
+ return: ReturnRecord | null;
63
+ /** What happened to the export member: written again, removed, or left (nothing changed, a dry run, or a conflict). */
64
+ member: {
65
+ name: string;
66
+ action: "regenerated" | "removed" | "left";
67
+ note?: string;
68
+ } | null;
69
+ applied: boolean;
70
+ }
71
+ /** Plan the import, and apply it unless `dryRun` or a conflict. Throws an {@link ExportError}. */
72
+ export declare function importWorkspace(o: ImportOptions): Promise<ImportResult>;
73
+ //# sourceMappingURL=import.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"import.d.ts","sourceRoot":"","sources":["../../src/workspace/import.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AA0BH,OAAO,EAAwD,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AAGpG,MAAM,WAAW,aAAa;IAC5B,0BAA0B;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,gEAAgE;IAChE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wFAAwF;IACxF,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,wCAAwC;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,6DAA6D;IAC7D,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,8BAA8B;IAC9B,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,wDAAwD;IACxD,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,SAAS,EAAE,cAAc,EAAE,CAAC;IAC5B,iEAAiE;IACjE,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,gHAAgH;IAChH,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,MAAM,EAAE,YAAY,GAAG,IAAI,CAAC;IAC5B,uHAAuH;IACvH,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,aAAa,GAAG,SAAS,GAAG,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAC3F,OAAO,EAAE,OAAO,CAAC;CAClB;AAWD,kGAAkG;AAClG,wBAAsB,eAAe,CAAC,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC,CAmM7E"}
@@ -3,8 +3,8 @@
3
3
  * `examples`).
4
4
  *
5
5
  * A kind is data: a name, a precedence and a probe that says what its
6
- * directory holds. Probes run no code (K3). Four kinds are built in: the
7
- * member kinds `chant`, `workspace` and `other`, and the group kind
6
+ * directory holds. Probes run no code (K3). Five kinds are built in: the
7
+ * member kinds `chant`, `workspace`, `design` and `other`, and the group kind
8
8
  * `examples`. Every other kind comes from a pinned package, which publishes
9
9
  * its kinds as a JSON file at a `./workspace-kinds` subpath, the way a
10
10
  * lexicon publishes a slim `./detect` entry (#426). chant finds that file
@@ -109,6 +109,8 @@ export interface KindRegistry {
109
109
  }
110
110
  /** The group kind (ws-051). An entry of this kind is a group, not a member. */
111
111
  export declare const EXAMPLES_KIND = "examples";
112
+ /** The data member kind that holds design artifacts (#2549, ws-062). */
113
+ export declare const DESIGN_KIND = "design";
112
114
  export declare const BUILTIN_KINDS: readonly MemberKind[];
113
115
  export declare const BUILTIN_KIND_NAMES: readonly string[];
114
116
  /** A registry holding the built-in kinds and then `extra`, which must not repeat a name. */
@@ -192,6 +194,8 @@ export interface PinLike {
192
194
  package: string | null;
193
195
  version: string | null;
194
196
  path: string | null;
197
+ /** A path pin's content hash (#2547). Checked before anything is read from the directory. */
198
+ integrity?: string | null;
195
199
  }
196
200
  export interface KindLoadProblem {
197
201
  /** The pin's index in the declaration's `pins`. */
@@ -1 +1 @@
1
- {"version":3,"file":"kinds.d.ts","sourceRoot":"","sources":["../../src/workspace/kinds.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAMH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAG5C,eAAO,MAAM,eAAe,QAAa,CAAC;AAE1C,oDAAoD;AACpD,eAAO,MAAM,aAAa,sBAAsB,CAAC;AAEjD;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yBAAyB;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,wCAAwC;IACxC,GAAG,EAAE,MAAM,CAAC;IACZ,oCAAoC;IACpC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,EAAE,EAAE,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CASrH;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAUtF;AAED,MAAM,WAAW,OAAO;IACtB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,6FAA6F;IAC7F,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,eAAe;IAC9B,mDAAmD;IACnD,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,YAAY,CAAC;IACvB,QAAQ,EAAE,eAAe,EAAE,CAAC;CAC7B;AAED;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,SAAS,OAAO,EAAE,EAAE,aAAa,EAAE,MAAM,GAAG,WAAW,CAqD7F;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAcxE"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * `chant workspace adopt-lineage [<scope>] --from <repo>[@<ref>][#<member>]
3
+ * [--tags <glob>] [--index <file>] [--param k=v] [--dry-run] [--json]` and
4
+ * `chant workspace hash-index --from <repo>[#<member>] [--tags <glob>]
5
+ * [--output <file>]` (#2551).
6
+ *
7
+ * The first gives a scope a git lineage (see ./lineage-adopt.ts). The second
8
+ * computes the hash index a template's tags give, for the template's CI to
9
+ * publish as a cache that adopters pass with `--index`. Neither needs a
10
+ * `chant.workspace.json`.
11
+ */
12
+ import type { CommandContext } from "../cli/registry.js";
13
+ export declare function runWorkspaceAdoptLineage(ctx: CommandContext): Promise<number>;
14
+ export declare function runWorkspaceHashIndex(ctx: CommandContext): Promise<number>;
15
+ //# sourceMappingURL=lineage-adopt-cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lineage-adopt-cli.d.ts","sourceRoot":"","sources":["../../src/workspace/lineage-adopt-cli.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAWtD,wBAAsB,wBAAwB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA6CnF;AAED,wBAAsB,qBAAqB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA6BhF"}