@intentius/chant 0.79.0 → 0.81.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 (462) hide show
  1. package/dist/audit/core.d.ts.map +1 -1
  2. package/dist/audit/discover.d.ts +30 -0
  3. package/dist/audit/discover.d.ts.map +1 -1
  4. package/dist/audit/report-html.d.ts +5 -0
  5. package/dist/audit/report-html.d.ts.map +1 -1
  6. package/dist/audit/report-model.d.ts +13 -0
  7. package/dist/audit/report-model.d.ts.map +1 -1
  8. package/dist/audit/terraform-state.d.ts +13 -0
  9. package/dist/audit/terraform-state.d.ts.map +1 -1
  10. package/dist/cli/command-group.d.ts +6 -0
  11. package/dist/cli/command-group.d.ts.map +1 -1
  12. package/dist/cli/commands/audit.d.ts +44 -3
  13. package/dist/cli/commands/audit.d.ts.map +1 -1
  14. package/dist/cli/commands/check-lexicon-examples.d.ts.map +1 -1
  15. package/dist/cli/commands/check-lexicon.d.ts +8 -0
  16. package/dist/cli/commands/check-lexicon.d.ts.map +1 -1
  17. package/dist/cli/commands/doctor.d.ts.map +1 -1
  18. package/dist/cli/commands/import-agents.d.ts.map +1 -1
  19. package/dist/cli/commands/init.d.ts +6 -0
  20. package/dist/cli/commands/init.d.ts.map +1 -1
  21. package/dist/cli/commands/lint.d.ts.map +1 -1
  22. package/dist/cli/commands/onboard.d.ts.map +1 -1
  23. package/dist/cli/commands/update.d.ts +6 -0
  24. package/dist/cli/commands/update.d.ts.map +1 -1
  25. package/dist/cli/commands/vendor.d.ts +5 -0
  26. package/dist/cli/commands/vendor.d.ts.map +1 -1
  27. package/dist/cli/conflict-check.d.ts +6 -0
  28. package/dist/cli/conflict-check.d.ts.map +1 -1
  29. package/dist/cli/handlers/build.d.ts.map +1 -1
  30. package/dist/cli/handlers/components.d.ts.map +1 -1
  31. package/dist/cli/handlers/dev.d.ts.map +1 -1
  32. package/dist/cli/handlers/fan-out.d.ts.map +1 -1
  33. package/dist/cli/handlers/init.d.ts.map +1 -1
  34. package/dist/cli/handlers/lifecycle.d.ts.map +1 -1
  35. package/dist/cli/handlers/misc.d.ts.map +1 -1
  36. package/dist/cli/handlers/operator.d.ts +7 -0
  37. package/dist/cli/handlers/operator.d.ts.map +1 -1
  38. package/dist/cli/handlers/promote.d.ts +20 -0
  39. package/dist/cli/handlers/promote.d.ts.map +1 -0
  40. package/dist/cli/handlers/run-generate.d.ts +39 -0
  41. package/dist/cli/handlers/run-generate.d.ts.map +1 -0
  42. package/dist/cli/handlers/run.d.ts +4 -1
  43. package/dist/cli/handlers/run.d.ts.map +1 -1
  44. package/dist/cli/handlers/vendor.d.ts +8 -3
  45. package/dist/cli/handlers/vendor.d.ts.map +1 -1
  46. package/dist/cli/main.d.ts +12 -0
  47. package/dist/cli/main.d.ts.map +1 -1
  48. package/dist/cli/mcp/op-tools.d.ts.map +1 -1
  49. package/dist/cli/plugins.d.ts +14 -0
  50. package/dist/cli/plugins.d.ts.map +1 -1
  51. package/dist/cli/registry.d.ts +46 -1
  52. package/dist/cli/registry.d.ts.map +1 -1
  53. package/dist/codegen/fetch.d.ts +10 -0
  54. package/dist/codegen/fetch.d.ts.map +1 -1
  55. package/dist/components/capability-plugin-loader.d.ts.map +1 -1
  56. package/dist/components/cli-support.d.ts +3 -1
  57. package/dist/components/cli-support.d.ts.map +1 -1
  58. package/dist/components/discover.d.ts.map +1 -1
  59. package/dist/components/driver.d.ts +16 -2
  60. package/dist/components/driver.d.ts.map +1 -1
  61. package/dist/components/fan-out-support.d.ts.map +1 -1
  62. package/dist/components/gate-plan.d.ts +40 -0
  63. package/dist/components/gate-plan.d.ts.map +1 -0
  64. package/dist/components/pilots/alb-ecs.pilot.d.ts +7 -1
  65. package/dist/components/pilots/alb-ecs.pilot.d.ts.map +1 -1
  66. package/dist/components/presets/ecs-fargate.d.ts +10 -4
  67. package/dist/components/presets/ecs-fargate.d.ts.map +1 -1
  68. package/dist/components/promote.d.ts +264 -0
  69. package/dist/components/promote.d.ts.map +1 -0
  70. package/dist/components/sandbox/driver.d.ts.map +1 -1
  71. package/dist/components/sandbox/run.d.ts.map +1 -1
  72. package/dist/components/verbs/build-archive.d.ts +22 -11
  73. package/dist/components/verbs/build-archive.d.ts.map +1 -1
  74. package/dist/components/verbs/run-agent.d.ts.map +1 -1
  75. package/dist/config-static.d.ts +59 -0
  76. package/dist/config-static.d.ts.map +1 -0
  77. package/dist/config.d.ts +104 -5
  78. package/dist/config.d.ts.map +1 -1
  79. package/dist/content-digest.d.ts +17 -0
  80. package/dist/content-digest.d.ts.map +1 -0
  81. package/dist/discovery/files.d.ts +48 -4
  82. package/dist/discovery/files.d.ts.map +1 -1
  83. package/dist/discovery/fold-import.d.ts +32 -1
  84. package/dist/discovery/fold-import.d.ts.map +1 -1
  85. package/dist/discovery/index.d.ts.map +1 -1
  86. package/dist/discovery/sandbox/driver.d.ts +20 -0
  87. package/dist/discovery/sandbox/driver.d.ts.map +1 -1
  88. package/dist/discovery/sandbox/fork.d.ts +20 -0
  89. package/dist/discovery/sandbox/fork.d.ts.map +1 -1
  90. package/dist/discovery/walk.d.ts +119 -0
  91. package/dist/discovery/walk.d.ts.map +1 -0
  92. package/dist/graph-ir.d.ts +17 -1
  93. package/dist/graph-ir.d.ts.map +1 -1
  94. package/dist/join-key.d.ts +31 -0
  95. package/dist/join-key.d.ts.map +1 -0
  96. package/dist/lexicon-module.d.ts +110 -0
  97. package/dist/lexicon-module.d.ts.map +1 -0
  98. package/dist/lexicon.d.ts +82 -1
  99. package/dist/lexicon.d.ts.map +1 -1
  100. package/dist/lifecycle/build-ledger-store.d.ts.map +1 -1
  101. package/dist/lifecycle/digest.d.ts +5 -1
  102. package/dist/lifecycle/digest.d.ts.map +1 -1
  103. package/dist/lifecycle/gate-ledger.d.ts +20 -5
  104. package/dist/lifecycle/gate-ledger.d.ts.map +1 -1
  105. package/dist/lifecycle/git.d.ts +64 -0
  106. package/dist/lifecycle/git.d.ts.map +1 -1
  107. package/dist/lifecycle/lease.d.ts +8 -1
  108. package/dist/lifecycle/lease.d.ts.map +1 -1
  109. package/dist/lifecycle/legacy-digest.d.ts +59 -0
  110. package/dist/lifecycle/legacy-digest.d.ts.map +1 -0
  111. package/dist/lifecycle/member-ledger.d.ts +67 -0
  112. package/dist/lifecycle/member-ledger.d.ts.map +1 -0
  113. package/dist/lifecycle/plan-digest.d.ts +4 -3
  114. package/dist/lifecycle/plan-digest.d.ts.map +1 -1
  115. package/dist/lifecycle/release-ledger.d.ts +42 -1
  116. package/dist/lifecycle/release-ledger.d.ts.map +1 -1
  117. package/dist/lifecycle/status.d.ts +90 -5
  118. package/dist/lifecycle/status.d.ts.map +1 -1
  119. package/dist/lint/rules/comp/comp003-mutating-no-rollback.d.ts +2 -3
  120. package/dist/lint/rules/comp/comp003-mutating-no-rollback.d.ts.map +1 -1
  121. package/dist/op/activities/activity-contracts.d.ts +32 -0
  122. package/dist/op/activities/activity-contracts.d.ts.map +1 -1
  123. package/dist/op/activities/index.d.ts +2 -0
  124. package/dist/op/activities/index.d.ts.map +1 -1
  125. package/dist/op/activities/propose-upgrade.d.ts +75 -0
  126. package/dist/op/activities/propose-upgrade.d.ts.map +1 -0
  127. package/dist/op/activity-contract-registry.d.ts.map +1 -1
  128. package/dist/op/activity-registry.d.ts.map +1 -1
  129. package/dist/op/discover.d.ts.map +1 -1
  130. package/dist/op/gate-approval.d.ts.map +1 -1
  131. package/dist/op/gate-name.d.ts +7 -0
  132. package/dist/op/gate-name.d.ts.map +1 -1
  133. package/dist/op/gate-summary.d.ts +16 -0
  134. package/dist/op/gate-summary.d.ts.map +1 -1
  135. package/dist/op/gate.d.ts +16 -2
  136. package/dist/op/gate.d.ts.map +1 -1
  137. package/dist/op/generate-pipeline.d.ts.map +1 -1
  138. package/dist/op/runtimes/local.d.ts.map +1 -1
  139. package/dist/project-root.d.ts +26 -0
  140. package/dist/project-root.d.ts.map +1 -1
  141. package/dist/workspace/__fixtures__/contract-repo.d.ts +37 -0
  142. package/dist/workspace/__fixtures__/contract-repo.d.ts.map +1 -0
  143. package/dist/workspace/__fixtures__/two-member-workspace.d.ts +11 -0
  144. package/dist/workspace/__fixtures__/two-member-workspace.d.ts.map +1 -0
  145. package/dist/workspace/checks/generated.d.ts +156 -0
  146. package/dist/workspace/checks/generated.d.ts.map +1 -0
  147. package/dist/workspace/checks/ledgers.d.ts +78 -0
  148. package/dist/workspace/checks/ledgers.d.ts.map +1 -0
  149. package/dist/workspace/checks/links.d.ts +25 -0
  150. package/dist/workspace/checks/links.d.ts.map +1 -0
  151. package/dist/workspace/checks/pipelines.d.ts +76 -0
  152. package/dist/workspace/checks/pipelines.d.ts.map +1 -0
  153. package/dist/workspace/checks.d.ts +161 -0
  154. package/dist/workspace/checks.d.ts.map +1 -0
  155. package/dist/workspace/compose-graph.d.ts +115 -0
  156. package/dist/workspace/compose-graph.d.ts.map +1 -0
  157. package/dist/workspace/compose-reports.d.ts +68 -0
  158. package/dist/workspace/compose-reports.d.ts.map +1 -0
  159. package/dist/workspace/declaration.d.ts +220 -0
  160. package/dist/workspace/declaration.d.ts.map +1 -0
  161. package/dist/workspace/declaration.schema.json +434 -0
  162. package/dist/workspace/generated-files.d.ts +65 -0
  163. package/dist/workspace/generated-files.d.ts.map +1 -0
  164. package/dist/workspace/glob.d.ts +13 -0
  165. package/dist/workspace/glob.d.ts.map +1 -0
  166. package/dist/workspace/graph-cli.d.ts +75 -0
  167. package/dist/workspace/graph-cli.d.ts.map +1 -0
  168. package/dist/workspace/init.d.ts +96 -0
  169. package/dist/workspace/init.d.ts.map +1 -0
  170. package/dist/workspace/jsonc.d.ts +38 -0
  171. package/dist/workspace/jsonc.d.ts.map +1 -0
  172. package/dist/workspace/kinds.d.ts +192 -0
  173. package/dist/workspace/kinds.d.ts.map +1 -0
  174. package/dist/workspace/lineage-check.d.ts +84 -0
  175. package/dist/workspace/lineage-check.d.ts.map +1 -0
  176. package/dist/workspace/lineage-cli.d.ts +31 -0
  177. package/dist/workspace/lineage-cli.d.ts.map +1 -0
  178. package/dist/workspace/lineage-init.d.ts +101 -0
  179. package/dist/workspace/lineage-init.d.ts.map +1 -0
  180. package/dist/workspace/lineage-lock.d.ts +258 -0
  181. package/dist/workspace/lineage-lock.d.ts.map +1 -0
  182. package/dist/workspace/lineage-merge.d.ts +14 -0
  183. package/dist/workspace/lineage-merge.d.ts.map +1 -0
  184. package/dist/workspace/lineage-migrations.d.ts +178 -0
  185. package/dist/workspace/lineage-migrations.d.ts.map +1 -0
  186. package/dist/workspace/lineage-update.d.ts +59 -0
  187. package/dist/workspace/lineage-update.d.ts.map +1 -0
  188. package/dist/workspace/lineage-upgrade-cli.d.ts +40 -0
  189. package/dist/workspace/lineage-upgrade-cli.d.ts.map +1 -0
  190. package/dist/workspace/lineage-upgrade.d.ts +146 -0
  191. package/dist/workspace/lineage-upgrade.d.ts.map +1 -0
  192. package/dist/workspace/lineage-vendor.d.ts +63 -0
  193. package/dist/workspace/lineage-vendor.d.ts.map +1 -0
  194. package/dist/workspace/lineage-version.d.ts +32 -0
  195. package/dist/workspace/lineage-version.d.ts.map +1 -0
  196. package/dist/workspace/links.d.ts +150 -0
  197. package/dist/workspace/links.d.ts.map +1 -0
  198. package/dist/workspace/ls.d.ts +99 -0
  199. package/dist/workspace/ls.d.ts.map +1 -0
  200. package/dist/workspace/member-commands.d.ts +139 -0
  201. package/dist/workspace/member-commands.d.ts.map +1 -0
  202. package/dist/workspace/member-handles.d.ts +54 -0
  203. package/dist/workspace/member-handles.d.ts.map +1 -0
  204. package/dist/workspace/member-pipeline.d.ts +143 -0
  205. package/dist/workspace/member-pipeline.d.ts.map +1 -0
  206. package/dist/workspace/member-run.d.ts +67 -0
  207. package/dist/workspace/member-run.d.ts.map +1 -0
  208. package/dist/workspace/reason-codes.d.ts +65 -0
  209. package/dist/workspace/reason-codes.d.ts.map +1 -0
  210. package/dist/workspace/record-source.d.ts +22 -0
  211. package/dist/workspace/record-source.d.ts.map +1 -0
  212. package/dist/workspace/records-cli.d.ts +81 -0
  213. package/dist/workspace/records-cli.d.ts.map +1 -0
  214. package/dist/workspace/records.d.ts +118 -0
  215. package/dist/workspace/records.d.ts.map +1 -0
  216. package/dist/workspace/root-refusal.d.ts +53 -0
  217. package/dist/workspace/root-refusal.d.ts.map +1 -0
  218. package/dist/workspace/status.d.ts +150 -0
  219. package/dist/workspace/status.d.ts.map +1 -0
  220. package/dist/workspace/template-manifest.d.ts +90 -0
  221. package/dist/workspace/template-manifest.d.ts.map +1 -0
  222. package/dist/workspace/tree.d.ts +36 -0
  223. package/dist/workspace/tree.d.ts.map +1 -0
  224. package/dist/workspace/trust/attestor.d.ts +67 -0
  225. package/dist/workspace/trust/attestor.d.ts.map +1 -0
  226. package/dist/workspace/trust/policy.d.ts +111 -0
  227. package/dist/workspace/trust/policy.d.ts.map +1 -0
  228. package/dist/workspace/trust/provenance.d.ts +67 -0
  229. package/dist/workspace/trust/provenance.d.ts.map +1 -0
  230. package/dist/workspace/trust/ssh-commit.d.ts +43 -0
  231. package/dist/workspace/trust/ssh-commit.d.ts.map +1 -0
  232. package/dist/workspace/trust/test-repo.d.ts +42 -0
  233. package/dist/workspace/trust/test-repo.d.ts.map +1 -0
  234. package/dist/workspace/trust/verify-cli.d.ts +9 -0
  235. package/dist/workspace/trust/verify-cli.d.ts.map +1 -0
  236. package/dist/workspace/trust/verify.d.ts +66 -0
  237. package/dist/workspace/trust/verify.d.ts.map +1 -0
  238. package/dist/workspace/which-chant.d.ts +58 -0
  239. package/dist/workspace/which-chant.d.ts.map +1 -0
  240. package/dist/workspace/workspace-kinds.schema.json +133 -0
  241. package/package.json +4 -3
  242. package/src/audit/core.ts +13 -2
  243. package/src/audit/discover.ts +102 -36
  244. package/src/audit/report-html.ts +3 -1
  245. package/src/audit/report-model.ts +14 -1
  246. package/src/audit/terraform-state.test.ts +81 -1
  247. package/src/audit/terraform-state.ts +25 -0
  248. package/src/cli/command-group.ts +7 -0
  249. package/src/cli/commands/audit-truncation.test.ts +167 -0
  250. package/src/cli/commands/audit.ts +132 -29
  251. package/src/cli/commands/check-lexicon-examples.ts +2 -1
  252. package/src/cli/commands/check-lexicon.ts +24 -0
  253. package/src/cli/commands/doctor.test.ts +30 -0
  254. package/src/cli/commands/doctor.ts +21 -0
  255. package/src/cli/commands/import-agents.ts +15 -4
  256. package/src/cli/commands/init.ts +76 -25
  257. package/src/cli/commands/lint.test.ts +52 -1
  258. package/src/cli/commands/lint.ts +41 -71
  259. package/src/cli/commands/onboard.ts +15 -0
  260. package/src/cli/commands/update.ts +18 -5
  261. package/src/cli/commands/vendor.ts +11 -6
  262. package/src/cli/conflict-check.test.ts +18 -1
  263. package/src/cli/conflict-check.ts +13 -0
  264. package/src/cli/discovery-skip.test.ts +168 -0
  265. package/src/cli/handlers/__snapshots__/build-member.test.ts.snap +38 -0
  266. package/src/cli/handlers/build-member.test.ts +127 -0
  267. package/src/cli/handlers/build.test.ts +11 -0
  268. package/src/cli/handlers/build.ts +35 -1
  269. package/src/cli/handlers/components.test.ts +127 -0
  270. package/src/cli/handlers/components.ts +70 -8
  271. package/src/cli/handlers/dev.ts +6 -1
  272. package/src/cli/handlers/fan-out.ts +9 -2
  273. package/src/cli/handlers/graph.test.ts +20 -0
  274. package/src/cli/handlers/graph.ts +4 -2
  275. package/src/cli/handlers/init.ts +54 -1
  276. package/src/cli/handlers/lifecycle.ts +2 -1
  277. package/src/cli/handlers/misc.ts +16 -0
  278. package/src/cli/handlers/operator.test.ts +68 -0
  279. package/src/cli/handlers/operator.ts +39 -10
  280. package/src/cli/handlers/promote.test.ts +377 -0
  281. package/src/cli/handlers/promote.ts +391 -0
  282. package/src/cli/handlers/run-generate-member.test.ts +83 -0
  283. package/src/cli/handlers/run-generate.test.ts +158 -0
  284. package/src/cli/handlers/run-generate.ts +168 -0
  285. package/src/cli/handlers/run.test.ts +47 -0
  286. package/src/cli/handlers/run.ts +41 -6
  287. package/src/cli/handlers/vendor.ts +147 -43
  288. package/src/cli/main.test.ts +137 -1
  289. package/src/cli/main.ts +290 -24
  290. package/src/cli/mcp/op-tools.ts +2 -1
  291. package/src/cli/path-lexicon-messages.test.ts +152 -0
  292. package/src/cli/plugins.ts +43 -5
  293. package/src/cli/registry.ts +46 -1
  294. package/src/cli/static-config-read.test.ts +208 -0
  295. package/src/codegen/fetch.test.ts +63 -1
  296. package/src/codegen/fetch.ts +30 -1
  297. package/src/components/__fixtures__/alb-ecs-service.json +0 -8
  298. package/src/components/capability-plugin-loader.ts +3 -1
  299. package/src/components/cli-support.ts +9 -3
  300. package/src/components/discover.test.ts +27 -57
  301. package/src/components/discover.ts +20 -51
  302. package/src/components/driver.test.ts +90 -12
  303. package/src/components/driver.ts +43 -5
  304. package/src/components/fan-out-support.ts +2 -1
  305. package/src/components/gate-plan.ts +53 -0
  306. package/src/components/pilots/README.md +1 -1
  307. package/src/components/pilots/alb-ecs.pilot.ts +7 -7
  308. package/src/components/presets/ecs-fargate.ts +10 -5
  309. package/src/components/promote.test.ts +645 -0
  310. package/src/components/promote.ts +641 -0
  311. package/src/components/sandbox/driver.ts +8 -8
  312. package/src/components/sandbox/run.ts +4 -1
  313. package/src/components/verbs/build-archive.ts +27 -21
  314. package/src/components/verbs/run-agent.ts +3 -5
  315. package/src/config-static.test.ts +136 -0
  316. package/src/config-static.ts +232 -0
  317. package/src/config.test.ts +40 -0
  318. package/src/config.ts +161 -11
  319. package/src/content-digest.test.ts +120 -0
  320. package/src/content-digest.ts +21 -0
  321. package/src/discovery/files.test.ts +127 -1
  322. package/src/discovery/files.ts +91 -59
  323. package/src/discovery/fold-import.ts +127 -9
  324. package/src/discovery/index.ts +1 -0
  325. package/src/discovery/sandbox/driver.ts +73 -35
  326. package/src/discovery/sandbox/fork-diagnostic.test.ts +136 -13
  327. package/src/discovery/sandbox/fork.ts +83 -43
  328. package/src/discovery/sandbox/path-lexicon-multifile.test.ts +285 -0
  329. package/src/discovery/sandbox/path-lexicon-parity.test.ts +162 -0
  330. package/src/discovery/walk.test.ts +263 -0
  331. package/src/discovery/walk.ts +334 -0
  332. package/src/effect-receipt.ts +2 -2
  333. package/src/graph-ir.ts +18 -1
  334. package/src/join-key.test.ts +25 -0
  335. package/src/join-key.ts +39 -0
  336. package/src/lexicon-module.test.ts +203 -0
  337. package/src/lexicon-module.ts +215 -0
  338. package/src/lexicon.ts +105 -1
  339. package/src/lifecycle/build-ledger-store.ts +13 -2
  340. package/src/lifecycle/digest.ts +9 -5
  341. package/src/lifecycle/gate-ledger.test.ts +20 -0
  342. package/src/lifecycle/gate-ledger.ts +28 -6
  343. package/src/lifecycle/git.test.ts +13 -1
  344. package/src/lifecycle/git.ts +221 -176
  345. package/src/lifecycle/lease.ts +25 -10
  346. package/src/lifecycle/legacy-digest.test.ts +206 -0
  347. package/src/lifecycle/legacy-digest.ts +103 -0
  348. package/src/lifecycle/member-ledger.test.ts +319 -0
  349. package/src/lifecycle/member-ledger.ts +145 -0
  350. package/src/lifecycle/plan-digest.ts +7 -7
  351. package/src/lifecycle/release-ledger.test.ts +20 -0
  352. package/src/lifecycle/release-ledger.ts +53 -3
  353. package/src/lifecycle/status.test.ts +151 -1
  354. package/src/lifecycle/status.ts +228 -7
  355. package/src/lint/rules/comp/comp003-mutating-no-rollback.ts +2 -3
  356. package/src/op/activities/activity-contracts.ts +37 -0
  357. package/src/op/activities/index.ts +10 -0
  358. package/src/op/activities/propose-upgrade.ts +206 -0
  359. package/src/op/activity-contract-registry.ts +18 -4
  360. package/src/op/activity-registry.ts +26 -0
  361. package/src/op/discover.test.ts +14 -4
  362. package/src/op/discover.ts +19 -23
  363. package/src/op/gate-approval.ts +3 -1
  364. package/src/op/gate-name.ts +8 -0
  365. package/src/op/gate-summary.test.ts +14 -0
  366. package/src/op/gate-summary.ts +25 -2
  367. package/src/op/gate.ts +36 -7
  368. package/src/op/generate-pipeline.test.ts +14 -5
  369. package/src/op/generate-pipeline.ts +2 -1
  370. package/src/op/runtimes/local.ts +2 -1
  371. package/src/project-root.test.ts +66 -1
  372. package/src/project-root.ts +48 -0
  373. package/src/workspace/__fixtures__/contract-repo.ts +100 -0
  374. package/src/workspace/__fixtures__/two-member-workspace.ts +35 -0
  375. package/src/workspace/behold-kinds.test.ts +162 -0
  376. package/src/workspace/check-contract.test.ts +127 -0
  377. package/src/workspace/check.schema.json +347 -0
  378. package/src/workspace/checks/generated.test.ts +287 -0
  379. package/src/workspace/checks/generated.ts +475 -0
  380. package/src/workspace/checks/ledgers.test.ts +139 -0
  381. package/src/workspace/checks/ledgers.ts +246 -0
  382. package/src/workspace/checks/links.ts +183 -0
  383. package/src/workspace/checks/pipelines.test.ts +133 -0
  384. package/src/workspace/checks/pipelines.ts +225 -0
  385. package/src/workspace/checks-repo.test.ts +71 -0
  386. package/src/workspace/checks.test.ts +450 -0
  387. package/src/workspace/checks.ts +461 -0
  388. package/src/workspace/compose-graph.test.ts +146 -0
  389. package/src/workspace/compose-graph.ts +228 -0
  390. package/src/workspace/compose-reports.test.ts +109 -0
  391. package/src/workspace/compose-reports.ts +186 -0
  392. package/src/workspace/declaration.schema.json +434 -0
  393. package/src/workspace/declaration.test.ts +347 -0
  394. package/src/workspace/declaration.ts +623 -0
  395. package/src/workspace/generated-files.test.ts +114 -0
  396. package/src/workspace/generated-files.ts +94 -0
  397. package/src/workspace/glob.ts +49 -0
  398. package/src/workspace/graph-cli.ts +220 -0
  399. package/src/workspace/graph-contract.test.ts +204 -0
  400. package/src/workspace/graph.schema.json +662 -0
  401. package/src/workspace/init.test.ts +223 -0
  402. package/src/workspace/init.ts +585 -0
  403. package/src/workspace/jsonc.test.ts +65 -0
  404. package/src/workspace/jsonc.ts +231 -0
  405. package/src/workspace/kinds.test.ts +288 -0
  406. package/src/workspace/kinds.ts +506 -0
  407. package/src/workspace/lineage-check.ts +264 -0
  408. package/src/workspace/lineage-cli.ts +114 -0
  409. package/src/workspace/lineage-init.test.ts +231 -0
  410. package/src/workspace/lineage-init.ts +365 -0
  411. package/src/workspace/lineage-lock.test.ts +224 -0
  412. package/src/workspace/lineage-lock.ts +357 -0
  413. package/src/workspace/lineage-merge.ts +44 -0
  414. package/src/workspace/lineage-migrations.test.ts +178 -0
  415. package/src/workspace/lineage-migrations.ts +343 -0
  416. package/src/workspace/lineage-update.ts +160 -0
  417. package/src/workspace/lineage-upgrade-cli.ts +151 -0
  418. package/src/workspace/lineage-upgrade.test.ts +474 -0
  419. package/src/workspace/lineage-upgrade.ts +624 -0
  420. package/src/workspace/lineage-vendor.test.ts +126 -0
  421. package/src/workspace/lineage-vendor.ts +215 -0
  422. package/src/workspace/lineage-version.ts +127 -0
  423. package/src/workspace/links.test.ts +344 -0
  424. package/src/workspace/links.ts +331 -0
  425. package/src/workspace/ls-contract.test.ts +200 -0
  426. package/src/workspace/ls.schema.json +190 -0
  427. package/src/workspace/ls.ts +254 -0
  428. package/src/workspace/member-commands.e2e.test.ts +244 -0
  429. package/src/workspace/member-commands.test.ts +217 -0
  430. package/src/workspace/member-commands.ts +540 -0
  431. package/src/workspace/member-handles.test.ts +76 -0
  432. package/src/workspace/member-handles.ts +228 -0
  433. package/src/workspace/member-pipeline.test.ts +135 -0
  434. package/src/workspace/member-pipeline.ts +317 -0
  435. package/src/workspace/member-run.ts +146 -0
  436. package/src/workspace/read-contract.test.ts +129 -0
  437. package/src/workspace/reason-codes.test.ts +113 -0
  438. package/src/workspace/reason-codes.ts +81 -0
  439. package/src/workspace/record-source.ts +117 -0
  440. package/src/workspace/records-cli.ts +198 -0
  441. package/src/workspace/records-contract.test.ts +93 -0
  442. package/src/workspace/records.schema.json +150 -0
  443. package/src/workspace/records.test.ts +243 -0
  444. package/src/workspace/records.ts +384 -0
  445. package/src/workspace/root-refusal.ts +97 -0
  446. package/src/workspace/status-contract.test.ts +308 -0
  447. package/src/workspace/status.schema.json +210 -0
  448. package/src/workspace/status.ts +412 -0
  449. package/src/workspace/template-manifest.test.ts +79 -0
  450. package/src/workspace/template-manifest.ts +221 -0
  451. package/src/workspace/tree.ts +132 -0
  452. package/src/workspace/trust/attestor.ts +93 -0
  453. package/src/workspace/trust/policy.ts +306 -0
  454. package/src/workspace/trust/provenance.ts +181 -0
  455. package/src/workspace/trust/ssh-commit.ts +138 -0
  456. package/src/workspace/trust/test-repo.ts +138 -0
  457. package/src/workspace/trust/trust.test.ts +397 -0
  458. package/src/workspace/trust/verify-cli.ts +56 -0
  459. package/src/workspace/trust/verify.ts +194 -0
  460. package/src/workspace/which-chant.test.ts +117 -0
  461. package/src/workspace/which-chant.ts +151 -0
  462. package/src/workspace/workspace-kinds.schema.json +133 -0
@@ -0,0 +1,17 @@
1
+ /**
2
+ * The one content digest chant computes itself (chant #2514).
3
+ *
4
+ * `contentDigest(x)` is `"sha256:"` followed by the lowercase hex SHA-256 of
5
+ * the UTF-8 bytes of `x`. Anything core hashes goes through it, and anything
6
+ * structured is first put in canonical form with `canonicalJson`
7
+ * (./effect-receipt.ts), so the same value always hashes the same way. The
8
+ * build archive re-exports it from ./components/verbs/build-archive.ts, where
9
+ * it used to live.
10
+ *
11
+ * Before #2514 this function computed a 32-bit string hash and repeated its
12
+ * eight hex digits eight times. Values recorded then are recognised and
13
+ * flagged by ./lifecycle/legacy-digest.ts.
14
+ */
15
+ /** `sha256:<64 hex>` over the UTF-8 bytes of `input`. */
16
+ export declare function contentDigest(input: string): string;
17
+ //# sourceMappingURL=content-digest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content-digest.d.ts","sourceRoot":"","sources":["../src/content-digest.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAIH,yDAAyD;AACzD,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEnD"}
@@ -1,3 +1,4 @@
1
+ import { type DiscoveryGlobs } from "../config.js";
1
2
  /**
2
3
  * Marker chant writes at the top of files it generates (a hosting lexicon's
3
4
  * worker/bootstrap output, and the like). Discovery must not treat these as
@@ -8,9 +9,52 @@
8
9
  */
9
10
  export declare const GENERATED_MARKER = "Generated by chant \u2014 do not edit directly";
10
11
  /**
11
- * Recursively find all TypeScript infrastructure files in a directory
12
- * @param path - The directory path to search
13
- * @returns Array of file paths to .ts files (excluding test files and chant-generated files)
12
+ * Comment a hand-written file carries to keep discovery out of it (#2519): a
13
+ * runnable script with top-level side effects, say, that lives next to the
14
+ * project's declarations. It must be a comment of its own (`// chant-discovery-skip`
15
+ * or inside a block comment) within the first {@link SKIP_MARKER_HEAD_BYTES}
16
+ * bytes of the file. See {@link hasSkipMarker}.
14
17
  */
15
- export declare function findInfraFiles(path: string): Promise<string[]>;
18
+ export declare const SKIP_MARKER = "chant-discovery-skip";
19
+ /** True when `head`, the start of a file, carries the {@link SKIP_MARKER} comment. */
20
+ export declare function hasSkipMarker(head: string): boolean;
21
+ /**
22
+ * Whether a file's head carries the {@link GENERATED_MARKER} or the
23
+ * {@link SKIP_MARKER}. Reads only the head. The generated marker is looked for
24
+ * in the first 256 bytes, as it always was.
25
+ */
26
+ export declare function hasDiscoveryMarker(file: string): Promise<boolean>;
27
+ /** Whether a file's head carries the {@link GENERATED_MARKER} or the {@link SKIP_MARKER}. The synchronous form of {@link hasDiscoveryMarker}. */
28
+ export declare function hasDiscoveryMarkerSync(file: string): boolean;
29
+ /**
30
+ * Compile a project's `exclude`/`include` globs (#2519) into a predicate that
31
+ * is true for a file discovery must skip, or `undefined` when there is nothing
32
+ * to skip.
33
+ *
34
+ * Each pattern is matched, with picomatch and dot files included, against the
35
+ * file's path relative to `globs.root` (forward slashes) and against the path
36
+ * of every directory above it, so a pattern naming a directory covers
37
+ * everything under it. A file is skipped when some `exclude` pattern matches
38
+ * and no `include` pattern does: `include` always wins. Files outside
39
+ * `globs.root` are never skipped. The discovery walk (`./walk.ts`) applies the
40
+ * same rule, and also lets `include` re-admit what its default rules skip.
41
+ */
42
+ export declare function compileDiscoveryFilter(globs: DiscoveryGlobs | undefined): ((file: string) => boolean) | undefined;
43
+ /** Options for {@link findInfraFiles}. */
44
+ export interface FindInfraFilesOptions {
45
+ /**
46
+ * The project's discovery globs. Omitted, they are read from the project
47
+ * config `path` belongs to ({@link resolveDiscoveryGlobs}); `null` applies none.
48
+ */
49
+ globs?: DiscoveryGlobs | null;
50
+ }
51
+ /** A TypeScript source file by name: `.ts`, not a test or spec. */
52
+ export declare function isSourceFileName(name: string): boolean;
53
+ /**
54
+ * Find every TypeScript infrastructure file under `path`, through the one
55
+ * discovery walk (`./walk.ts`, #2527): test and spec files, chant-generated
56
+ * files, skip-marked files and whatever the walk's rules and the project's
57
+ * globs skip are left out.
58
+ */
59
+ export declare function findInfraFiles(path: string, options?: FindInfraFilesOptions): Promise<string[]>;
16
60
  //# sourceMappingURL=files.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/discovery/files.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,mDAA8C,CAAC;AAgB5E;;;;GAIG;AACH,wBAAsB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAoDpE"}
1
+ {"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/discovery/files.ts"],"names":[],"mappings":"AAIA,OAAO,EAAyB,KAAK,cAAc,EAAE,MAAM,WAAW,CAAC;AAGvE;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,mDAA8C,CAAC;AAE5E;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,yBAAyB,CAAC;AAQlD,sFAAsF;AACtF,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEnD;AAED;;;;GAIG;AACH,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAYvE;AAED,iJAAiJ;AACjJ,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAG5D;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,cAAc,GAAG,SAAS,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,GAAG,SAAS,CAWjH;AAED,0CAA0C;AAC1C,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,KAAK,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;CAC/B;AAED,mEAAmE;AACnE,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEtD;AAED;;;;;GAKG;AACH,wBAAsB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CASrG"}
@@ -199,6 +199,32 @@ export interface FoldSession {
199
199
  * established one.
200
200
  */
201
201
  readonly lexiconPackages: ReadonlySet<string>;
202
+ /**
203
+ * chant#2577 — the absolute module paths of this build's lexicons that
204
+ * `chant.config.ts` declares by path (#2520), each resolved to the file an
205
+ * import of it reaches. Such a lexicon has no package specifier, so a
206
+ * project imports it by a relative or absolute path. A binding whose path
207
+ * resolves to one of these is treated exactly like a binding of a
208
+ * {@link lexiconPackages} entry: its data exports resolve as values, and
209
+ * under `--sandbox` it is on {@link isTrustedExecutableBinding}'s allowlist,
210
+ * because `loadPlugins` has already imported and run it in this process.
211
+ *
212
+ * Only the declared module itself is in the set. The other files of a
213
+ * multi-file path lexicon are covered by {@link lexiconRoots}.
214
+ */
215
+ readonly lexiconModules: ReadonlySet<string>;
216
+ /**
217
+ * chant#2590 — the directory trusted for each path-declared lexicon that has
218
+ * one (`../lexicon-module.ts`'s `pathLexiconRoot`: the declared `root`, or
219
+ * the module's own directory, inside the project and not containing its
220
+ * source directory). A file under one of these gets what a subpath of an
221
+ * active lexicon package gets: a place on the `--sandbox` trust list, and
222
+ * no fold as a project file. Its data exports are not read as values,
223
+ * which is also how a package subpath is treated. A directory that holds
224
+ * any of the build's own source files is dropped, so the build's source is
225
+ * never trusted this way.
226
+ */
227
+ readonly lexiconRoots: readonly string[];
202
228
  /**
203
229
  * chant #1093 — this build asked for the #1045 sandbox
204
230
  * (`DiscoveryOptions.sandbox`, `chant build --sandbox`), so fold must not
@@ -269,7 +295,12 @@ export declare function createFoldSession(intrinsics?: readonly IntrinsicDef[],
269
295
  */
270
296
  lexiconPackages?: readonly string[],
271
297
  /** chant#2455 — `ι = executing`. Mutually exclusive with `sandbox`. */
272
- executing?: boolean): FoldSession;
298
+ executing?: boolean,
299
+ /**
300
+ * chant#2590 — the build's own source files. A path lexicon's trusted
301
+ * directory that holds any of them is dropped (see {@link FoldSession.lexiconRoots}).
302
+ */
303
+ sourceFiles?: readonly string[]): FoldSession;
273
304
  /**
274
305
  * What the fold pass actually EXECUTED, and what it interpreted instead — the
275
306
  * number chant #1023 is measured by, and the one the #1093/#1111
@@ -1 +1 @@
1
- {"version":3,"file":"fold-import.d.ts","sourceRoot":"","sources":["../../src/discovery/fold-import.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAMjC,OAAO,EAAgB,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAkC,KAAK,iBAAiB,EAAyB,MAAM,cAAc,CAAC;AAyC7G,OAAO,EAA6B,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AAEH,mGAAmG;AACnG,MAAM,MAAM,YAAY,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,GAAG,iBAAiB,CAAC,CAAC;AAElF,MAAM,MAAM,cAAc,GACtB;IACE,EAAE,EAAE,IAAI,CAAC;IACT;;;;;;;;OAQG;IACH,QAAQ,EAAE,YAAY,EAAE,CAAC;IACzB;;;;;;;;;;;;;OAaG;IACH,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC;;;;;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,MAAM,GAAG,KAAK,CAAC;IACrB,gGAAgG;IAChG,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iFAAiF;IACjF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;;;;;;;;;OAaG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;;;;;;;OAUG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,YAAY,EAAE,CAAC;IAE5B;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAE7B;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;;;;;;;OAYG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;;;;;;;OAUG;IACH,WAAW,CAAC,EAAE,oBAAoB,EAAE,CAAC;CACtC;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,8CAA8C;IAC9C,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAClC,8DAA8D;IAC9D,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;IACvC,qDAAqD;IACrD,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,mDAAmD;IACnD,MAAM,EAAE,cAAc,EAAE,CAAC;IACzB;;;OAGG;IACH,aAAa,EAAE,YAAY,EAAE,CAAC;CAC/B;AAED;;;;;;;;GAQG;AACH,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,eAAe,CAAC,CA+SjG"}
@@ -4,6 +4,26 @@ export interface GenerateDriverOptions {
4
4
  /** The build root — threaded to `collectEntities` exactly as `discover()` threads its own `path` argument, so cross-directory stack-prefix disambiguation (chant #932) is computed the same way for this subset. */
5
5
  buildRoot: string;
6
6
  }
7
+ /**
8
+ * chant#2461 — the `send` every driver uses, as generated source lines.
9
+ *
10
+ * `process.send` is asynchronous: it queues the message on the IPC channel and
11
+ * returns. Node's contract is that the optional callback runs once the message
12
+ * has been written, or with an error if it could not be. Without the callback a
13
+ * failed send is not reported to the caller at all, so the driver could return
14
+ * from `main()` believing it had answered.
15
+ *
16
+ * So `send` returns a promise that settles only when the write has completed,
17
+ * and every call site awaits it before `main()` returns. A send that fails, or
18
+ * throws synchronously (a payload that cannot be serialized), writes the reason
19
+ * to stderr with a synchronous `writeSync` and exits 1. That way a result that
20
+ * never left the child cannot end as exit 0 with empty stderr, which is the
21
+ * signature that looks like success went missing.
22
+ *
23
+ * `before` is spliced in at the top of the function body (the run driver marks
24
+ * itself `reported` there).
25
+ */
26
+ export declare function sendFunctionSource(before?: readonly string[]): string[];
7
27
  /**
8
28
  * Generate the driver module's full TypeScript source. Written to a tmp file
9
29
  * and bundled (see `./bundle.ts`) before being handed to a sandboxed child —
@@ -1 +1 @@
1
- {"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../../../src/discovery/sandbox/driver.ts"],"names":[],"mappings":"AA4DA,MAAM,WAAW,qBAAqB;IACpC,qIAAqI;IACrI,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,oNAAoN;IACpN,SAAS,EAAE,MAAM,CAAC;CACnB;AAOD;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,qBAAqB,GAAG,MAAM,CAsH3E;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,0BAA0B,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CA6CrE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,0BAA0B,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAmGjF"}
1
+ {"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../../../src/discovery/sandbox/driver.ts"],"names":[],"mappings":"AA4DA,MAAM,WAAW,qBAAqB;IACpC,qIAAqI;IACrI,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,oNAAoN;IACpN,SAAS,EAAE,MAAM,CAAC;CACnB;AAOD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,GAAE,SAAS,MAAM,EAAO,GAAG,MAAM,EAAE,CAsB3E;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,qBAAqB,GAAG,MAAM,CAoH3E;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,0BAA0B,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CA6CrE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,0BAA0B,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAgGjF"}
@@ -1,3 +1,4 @@
1
+ import { type ChildProcess } from "node:child_process";
1
2
  /**
2
3
  * The one place chant starts a sandboxed child process.
3
4
  *
@@ -86,5 +87,24 @@ export interface SandboxForkOptions {
86
87
  */
87
88
  send?: Record<string, unknown>;
88
89
  }
90
+ /**
91
+ * chant#2461 — call `onExit` once `child` has exited AND its IPC channel has
92
+ * drained, so a message the child wrote before exiting is always dispatched
93
+ * first.
94
+ *
95
+ * Node does not order `exit` after `message`. The child's exit and the last
96
+ * bytes on the IPC socket reach the parent's event loop as separate events,
97
+ * and under load the exit can be handled first even though the child wrote
98
+ * the message before it exited. Settling on `exit` alone then drops a payload
99
+ * that is already sitting in the socket. The channel reports `disconnect`
100
+ * only after it has read EOF, which comes after every message the child
101
+ * wrote, so waiting for it is exact.
102
+ *
103
+ * This is deliberately not `close`. `close` also waits for stdout and stderr
104
+ * to end, and a grandchild holding those pipes would turn a fast failure into
105
+ * the full timeout. The wait here is on the IPC channel alone, and is bounded
106
+ * by `graceMs` in case that channel never reports closed.
107
+ */
108
+ export declare function settleOnExitAfterChannelDrains(child: ChildProcess, onExit: (code: number | null, signal: NodeJS.Signals | null) => void, graceMs?: number): void;
89
109
  export declare function forkSandboxed<T>(options: SandboxForkOptions, isResponse: (value: unknown) => value is T): Promise<T>;
90
110
  //# sourceMappingURL=fork.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fork.d.ts","sourceRoot":"","sources":["../../../src/discovery/sandbox/fork.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,MAAM,WAAW,kBAAkB;IACjC,sEAAsE;IACtE,UAAU,EAAE,MAAM,CAAC;IACnB,6FAA6F;IAC7F,SAAS,EAAE,MAAM,CAAC;IAClB,0EAA0E;IAC1E,eAAe,EAAE,MAAM,CAAC;IACxB,6IAA6I;IAC7I,iBAAiB,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC;;;;;OAKG;IACH,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5B,0EAA0E;IAC1E,SAAS,EAAE,MAAM,CAAC;IAClB,qFAAqF;IACrF,KAAK,EAAE,MAAM,CAAC;IACd;;;;;;;;;;;;;;;;;;OAkBG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;;;;;;;;;;;;;OAgBG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC;AAqHD,wBAAgB,aAAa,CAAC,CAAC,EAC7B,OAAO,EAAE,kBAAkB,EAC3B,UAAU,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,KAAK,IAAI,CAAC,GACzC,OAAO,CAAC,CAAC,CAAC,CAiGZ"}
1
+ {"version":3,"file":"fork.d.ts","sourceRoot":"","sources":["../../../src/discovery/sandbox/fork.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAE7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,MAAM,WAAW,kBAAkB;IACjC,sEAAsE;IACtE,UAAU,EAAE,MAAM,CAAC;IACnB,6FAA6F;IAC7F,SAAS,EAAE,MAAM,CAAC;IAClB,0EAA0E;IAC1E,eAAe,EAAE,MAAM,CAAC;IACxB,6IAA6I;IAC7I,iBAAiB,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC;;;;;OAKG;IACH,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5B,0EAA0E;IAC1E,SAAS,EAAE,MAAM,CAAC;IAClB,qFAAqF;IACrF,KAAK,EAAE,MAAM,CAAC;IACd;;;;;;;;;;;;;;;;;;OAkBG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;;;;;;;;;;;;;OAgBG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC;AAkHD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,8BAA8B,CAC5C,KAAK,EAAE,YAAY,EACnB,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,OAAO,GAAG,IAAI,KAAK,IAAI,EACpE,OAAO,SAAsB,GAC5B,IAAI,CAiBN;AAED,wBAAgB,aAAa,CAAC,CAAC,EAC7B,OAAO,EAAE,kBAAkB,EAC3B,UAAU,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,KAAK,IAAI,CAAC,GACzC,OAAO,CAAC,CAAC,CAAC,CAmGZ"}
@@ -0,0 +1,119 @@
1
+ /**
2
+ * The one discovery walk (chant#2527).
3
+ *
4
+ * Every command that decides which files chant reads walks the tree here:
5
+ * source discovery (`./files.ts`'s `findInfraFiles`, behind build, graph,
6
+ * list, explain and lexicon detection), `chant lint`, component discovery,
7
+ * Op discovery and the `chant audit` walk. They used to have five walkers
8
+ * with five sets of rules. v0.80.0 warned about every file whose status the
9
+ * convergence changes (#2571), and this module is that convergence. It is on
10
+ * #2525's level-0 exception list.
11
+ *
12
+ * The rules, for every walker:
13
+ *
14
+ * - `node_modules` and `.git` are never entered.
15
+ * - Dot-directories are skipped. The audit walk keeps `.github` and
16
+ * `.forgejo`, which hold the CI files it audits.
17
+ * - `dist` is skipped.
18
+ * - Git-ignored paths are skipped, nested `.gitignore` files, `.git/info/exclude`
19
+ * and the global excludes file included, the way git itself decides. Only
20
+ * paths below the scan root are asked about: when the scan root is itself
21
+ * ignored, nothing under it is dropped for being ignored, so building or
22
+ * linting an ignored directory still reads it.
23
+ * - When the scan root is inside a chant project, a child directory holding a
24
+ * project config is a boundary and is not entered. A `chant.config.json`
25
+ * holding only lint keys is a fragment, not a project config, and is not a
26
+ * boundary. A `chant.config.ts` always is one, since telling a lint-only one
27
+ * apart would mean running it. When the scan root is outside every project,
28
+ * every child project is read. Op discovery always stops at child projects
29
+ * below its root.
30
+ * - The project's `exclude` globs (#2519) drop what they match, and its
31
+ * `include` globs re-admit what `exclude` or any rule above would skip.
32
+ * `node_modules`, `.git` and workspace members are the exceptions: include
33
+ * never re-admits them.
34
+ * - Workspace members and group matches leave the root project's walk
35
+ * (#2525 rule 3), and only when a workspace declaration exists. Without one nothing is loaded and
36
+ * nothing is excluded; see {@link workspaceMemberDirs}.
37
+ *
38
+ * The walk is synchronous: the audit walk it replaced was, and the glob and
39
+ * ignore facts are gathered once before it starts.
40
+ */
41
+ import { type DiscoveryGlobs } from "../config.js";
42
+ /** The commands that walk the tree. */
43
+ export type DiscoveryWalker = "source" | "lint" | "components" | "ops" | "audit";
44
+ /** Dot-directories the audit walk enters anyway, since they hold the CI files it audits. */
45
+ export declare const AUDIT_DOT_DIRS: ReadonlySet<string>;
46
+ /** One walk: which walker, where from, which files it wants, and the facts only some walkers have. */
47
+ export interface WalkOptions {
48
+ walker: DiscoveryWalker;
49
+ /** The directory the walk starts from. Joined onto, never resolved, so relative roots give relative paths. */
50
+ root: string;
51
+ /**
52
+ * Which files the walker wants, by name and full path. Called only for a
53
+ * file every rule above has let through, so a marker check here reads only
54
+ * files that could be returned.
55
+ */
56
+ accept: (name: string, fullPath: string) => boolean;
57
+ /**
58
+ * The project's discovery globs. Omitted, none apply. Callers that can load
59
+ * the project config resolve them with `resolveDiscoveryGlobs`.
60
+ */
61
+ globs?: DiscoveryGlobs;
62
+ /** Sort each directory's entries by name. The audit walk does, for a stable limit. */
63
+ sorted?: boolean;
64
+ /** Follow symlinked directories and files. `chant lint` always did; the others never did. */
65
+ followSymlinks?: boolean;
66
+ /**
67
+ * The audit walk's file limit. Every file the walk takes counts, accepted or
68
+ * not; `truncated` is set once a file past the limit is met.
69
+ */
70
+ limit?: {
71
+ max: number;
72
+ truncated: boolean;
73
+ };
74
+ /**
75
+ * Called for a dot-directory the walk skips. Returning true takes the
76
+ * directory's own path as a file without entering it (the audit walk's
77
+ * `.terraform`, which TF023 reports by its presence).
78
+ */
79
+ takeSkippedDir?: (name: string, fullPath: string) => boolean;
80
+ /**
81
+ * Paths the git-ignore rule leaves alone, to be judged by the caller. The
82
+ * audit walk keeps Terraform state paths for TF023, which has its own
83
+ * `.gitignore` reading.
84
+ */
85
+ keepIgnored?: (fullPath: string) => boolean;
86
+ /** Directories that leave this walk, absolute. See {@link workspaceMemberDirs}. */
87
+ excludeDirs?: readonly string[];
88
+ }
89
+ /**
90
+ * The untracked paths git ignores under `root`, absolute, with fully ignored
91
+ * directories listed once. One `git ls-files` call. A tree outside git, a
92
+ * missing `git`, or a root that is itself ignored yields an empty set: ignore
93
+ * rules are asked only about paths below the scan root.
94
+ */
95
+ export declare function gitIgnoredBelow(root: string): Set<string>;
96
+ /** A directory that holds a project config: `chant.config.ts`, or a `chant.config.json` that is not a lint-only fragment. */
97
+ export declare function isProjectBoundary(dir: string): boolean;
98
+ /** Whether child projects end the walk from `root`: always for Ops, otherwise when `root` is inside a project. */
99
+ export declare function childProjectsAreBoundaries(walker: DiscoveryWalker, root: string): boolean;
100
+ /**
101
+ * The directories a workspace declaration moves out of the root project's
102
+ * discovery (#2525 rule 3), absolute and strictly below `root`, or none:
103
+ * every member's directory but the root's, and every group match
104
+ * (`rootExclusions` in `../workspace/declaration.ts`).
105
+ *
106
+ * Level 0 pays for `findWorkspaceRoot`, which only tests whether a
107
+ * `chant.workspace.json` or `.jsonc` exists from `root` up to the git root,
108
+ * and loads nothing. Only when a declaration is found are the workspace
109
+ * modules loaded to read it. A declaration that fails to read excludes
110
+ * nothing here; `chant workspace ls` is where its errors are reported. This
111
+ * is the only place discovery asks about workspaces; the walkers pass the
112
+ * result as `excludeDirs`.
113
+ */
114
+ export declare function workspaceMemberDirs(root: string): Promise<string[]>;
115
+ /** The first `bytes` of a file as UTF-8, or "" when it can't be read. */
116
+ export declare function readHead(file: string, bytes: number): string;
117
+ /** Walk `opts.root` under the rules in the module doc and return the files `accept` took. */
118
+ export declare function walkDiscovery(opts: WalkOptions): string[];
119
+ //# sourceMappingURL=walk.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"walk.d.ts","sourceRoot":"","sources":["../../src/discovery/walk.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAQH,OAAO,EAAsB,KAAK,cAAc,EAAE,MAAM,WAAW,CAAC;AAEpE,uCAAuC;AACvC,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,MAAM,GAAG,YAAY,GAAG,KAAK,GAAG,OAAO,CAAC;AAEjF,4FAA4F;AAC5F,eAAO,MAAM,cAAc,EAAE,WAAW,CAAC,MAAM,CAAoC,CAAC;AAKpF,sGAAsG;AACtG,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,eAAe,CAAC;IACxB,8GAA8G;IAC9G,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC;IACpD;;;OAGG;IACH,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,sFAAsF;IACtF,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,6FAA6F;IAC7F,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,OAAO,CAAA;KAAE,CAAC;IAC5C;;;;OAIG;IACH,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC;IAC7D;;;;OAIG;IACH,WAAW,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC;IAC5C,mFAAmF;IACnF,WAAW,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACjC;AAiDD;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,CAsBzD;AAID,6HAA6H;AAC7H,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAItD;AAED,kHAAkH;AAClH,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAEzF;AAID;;;;;;;;;;;;;GAaG;AACH,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAiBzE;AAID,yEAAyE;AACzE,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAY5D;AAID,6FAA6F;AAC7F,wBAAgB,aAAa,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,EAAE,CAwFzD"}
@@ -197,7 +197,10 @@ export interface IRExport {
197
197
  /** A cross-stack import this stack consumes — a `Parameter` fed from another
198
198
  * stack's output at deploy time. A viewer matches an import `name` to another
199
199
  * stack's export `name` to draw the cross-stack edge; the parameter's in-stack
200
- * consumers are ordinary `$ref` edges to `node` (#513). */
200
+ * consumers are ordinary `$ref` edges to `node` (#513). A reader that infers
201
+ * that match by name uses `joinKey()` from `./join-key.ts` and labels the edge
202
+ * `exact` or `folded`, the way `chant workspace graph` labels joins across
203
+ * members (#2539, ws-008). */
201
204
  export interface IRImport {
202
205
  /** Parameter name — the cross-stack handle (e.g. "clusterArn"). */
203
206
  name: string;
@@ -253,8 +256,21 @@ export interface IRPipeline {
253
256
  nodes: IRPipelineNode[];
254
257
  edges: IRPipelineEdge[];
255
258
  }
259
+ /**
260
+ * The version `chant graph --format ir` writes on its output (#2529, #2524 D8).
261
+ * The format changes only additively: a new field or edge kind never bumps
262
+ * it, and a consumer ignores the fields and edge kinds it does not know. The
263
+ * number moves only for a change a consumer could not ignore.
264
+ */
265
+ export declare const GRAPH_IR_VERSION = 1;
256
266
  /** The full graph IR for a project at the default (declarable) detail level. */
257
267
  export interface GraphIR {
268
+ /**
269
+ * {@link GRAPH_IR_VERSION}, stamped by `chant graph --format ir` when it
270
+ * writes the IR (#2529). Absent on an IR built in memory, and on output
271
+ * from a chant older than the field, which a reader treats as version 1.
272
+ */
273
+ version?: number;
258
274
  nodes: IRNode[];
259
275
  edges: IREdge[];
260
276
  groups: IRGroups;
@@ -1 +1 @@
1
- {"version":3,"file":"graph-ir.d.ts","sourceRoot":"","sources":["../src/graph-ir.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,UAAU,EAAgB,MAAM,cAAc,CAAC;AAI7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD;;;;;;;;;GASG;AAEH,iFAAiF;AACjF,MAAM,WAAW,SAAS;IACxB,8EAA8E;IAC9E,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,wEAAwE;AACxE,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,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AAgB,CAAC,CAAC;IAC9C;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CACxD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAAC,YAAY,EAAE,eAAe,EAAE,GAAG,OAAO,CAyEzE;AAED,+EAA+E;AAC/E,MAAM,WAAW,cAAc;IAC7B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;CAC/C;AAED,wFAAwF;AACxF,wBAAgB,iBAAiB,CAAC,YAAY,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAInG;AAiBD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAgB9F;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAqEpG"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * The one join key for names matched across projects (#2524 D6, ws-008).
3
+ *
4
+ * A consumer's parameter and a producer's output are joined by name when
5
+ * nobody wrote the join down. Deploy matches names exactly, and real projects
6
+ * rarely spell both sides the same (`clusterArn` against `ClusterArn`), so an
7
+ * inferred join compares {@link joinKey}s and says how it matched: `exact`
8
+ * when the names are equal, `folded` when only case or punctuation differ.
9
+ * A declared member link is always compared exactly and never uses this.
10
+ *
11
+ * Before this module, core only published the handles (a graph IR's
12
+ * `exports` and `imports`) and each viewer matched them with its own rule.
13
+ * Every reader that infers a join by name uses this function instead, so the
14
+ * same workspace shows the same inferred edges everywhere. It imports nothing,
15
+ * so any reader can load it through `@intentius/chant/join-key`.
16
+ */
17
+ /** How an inferred join matched its two names. */
18
+ export type JoinLabel = "exact" | "folded";
19
+ /**
20
+ * The key two names are joined on: Unicode-normalised, lowercased, with every
21
+ * character that is not a letter or a digit removed. `ClusterArn`,
22
+ * `clusterArn`, `cluster_arn` and `cluster-arn` share the key `clusterarn`.
23
+ */
24
+ export declare function joinKey(name: string): string;
25
+ /**
26
+ * How `a` and `b` join: `exact` when they are the same string, `folded` when
27
+ * only their {@link joinKey}s are equal, and undefined when they don't join.
28
+ * Names whose key is empty never join.
29
+ */
30
+ export declare function joinLabel(a: string, b: string): JoinLabel | undefined;
31
+ //# sourceMappingURL=join-key.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"join-key.d.ts","sourceRoot":"","sources":["../src/join-key.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,kDAAkD;AAClD,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;AAE3C;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE5C;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAIrE"}
@@ -0,0 +1,110 @@
1
+ /**
2
+ * Lexicons declared by module path (chant #2520).
3
+ *
4
+ * A `lexicons` entry has always been a bare name, and chant resolves a name to
5
+ * the package `@intentius/chant-lexicon-<name>`. A project that writes its own
6
+ * lexicon in the same repo can instead point at the module:
7
+ *
8
+ * ```ts
9
+ * export default {
10
+ * lexicons: ["fly", { name: "site", module: "./lexicon/index.ts" }],
11
+ * } satisfies ChantConfig;
12
+ * ```
13
+ *
14
+ * The path is resolved against the directory holding `chant.config.ts`. That
15
+ * module is the whole lexicon: its `LexiconPlugin` export is the plugin, the
16
+ * plugin's `activities()` and `activityContracts()` members stand in for the
17
+ * `op/activities` and `op/activity-contracts` subpaths, a `CapabilityPlugin`
18
+ * export feeds the capability registry, and an `evaluateGatePolicy` export
19
+ * stands in for the `gate-policy` subpath.
20
+ *
21
+ * Loaders take lexicon names, so the config loader records each path-declared
22
+ * name here and every loader asks {@link lexiconModulePath} before falling back
23
+ * to the package name. A name declared as a plain string is never recorded, so
24
+ * a project that names lexicons by package takes exactly the path it always did.
25
+ */
26
+ /**
27
+ * One `lexicons` entry: a package-backed name, or a name plus the module that
28
+ * implements it. `root` (chant#2590) names the directory the lexicon's files
29
+ * live in, for fold's trust; see {@link pathLexiconRoot}.
30
+ */
31
+ export type LexiconDeclaration = string | {
32
+ name: string;
33
+ module: string;
34
+ root?: string;
35
+ };
36
+ /** The lexicon name an entry declares, whichever form it takes. */
37
+ export declare function lexiconDeclarationName(entry: LexiconDeclaration): string;
38
+ /** Every entry's name, in declaration order. `undefined` in, `undefined` out. */
39
+ export declare function lexiconNames(entries: readonly LexiconDeclaration[]): string[];
40
+ export declare function lexiconNames(entries: readonly LexiconDeclaration[] | undefined): string[] | undefined;
41
+ /**
42
+ * chant#2590 — the directory fold trusts for a lexicon declared by path.
43
+ *
44
+ * A package has a root that bounds its subpaths. A module path has none, so
45
+ * the directory is either the one `root` names, resolved like `module`, or the
46
+ * module's own directory. It must lie inside the project (`baseDir`, the
47
+ * directory holding `chant.config.ts`) and must not contain the project's
48
+ * source directory (`sourceDir`, relative to `baseDir`, default `.`). The
49
+ * module must lie inside it.
50
+ *
51
+ * Returns the directory, or `undefined` when only the module file is trusted.
52
+ * A declared `root` that breaks a rule returns a `problem` to report; the
53
+ * module's own directory breaking one (a module at the project root, say)
54
+ * just leaves the lexicon with its module file.
55
+ */
56
+ export declare function pathLexiconRoot(entry: {
57
+ module: string;
58
+ root?: string;
59
+ }, baseDir: string, sourceDir?: string): {
60
+ root?: string;
61
+ problem?: string;
62
+ };
63
+ /**
64
+ * Record the path-declared entries of one loaded config. `baseDir` is the
65
+ * directory the config file sits in. A plain-string entry for a name removes
66
+ * any path recorded for it earlier in this process, so loading a second
67
+ * project (the example harness does) cannot leave the first one's module in
68
+ * place of a package.
69
+ *
70
+ * Returns the recorded name-to-path map for this config, empty when every
71
+ * entry is a plain name.
72
+ */
73
+ export declare function registerLexiconDeclarations(entries: readonly LexiconDeclaration[] | undefined, baseDir: string, sourceDir?: string): Record<string, string>;
74
+ /**
75
+ * chant#2589 — the name-to-path map `entries` declare, without recording it.
76
+ * For a caller that must name path lexicons in its messages but must never
77
+ * let a loader import one (`chant audit` runs no project code).
78
+ */
79
+ export declare function pathLexiconMap(entries: readonly LexiconDeclaration[], baseDir: string): Map<string, string>;
80
+ /** A copy of the paths recorded so far in this process. */
81
+ export declare function recordedLexiconModules(): Map<string, string>;
82
+ /** The absolute module path `name` was declared with, or `undefined` for a package-backed lexicon. */
83
+ export declare function lexiconModulePath(name: string): string | undefined;
84
+ /**
85
+ * chant#2590 — the directory fold trusts for a path-declared lexicon, or
86
+ * `undefined` when only its module file is trusted (or `name` is package-backed).
87
+ * See {@link pathLexiconRoot}.
88
+ */
89
+ export declare function lexiconModuleRoot(name: string): string | undefined;
90
+ /** Forget every recorded path. For tests. */
91
+ export declare function resetLexiconModules(): void;
92
+ /**
93
+ * Import the module a path-declared lexicon names. Returns `undefined` when
94
+ * `name` is package-backed, so a caller falls through to its package import.
95
+ * An import failure is thrown with the declared path in the message.
96
+ */
97
+ export declare function importLexiconModule(name: string): Promise<Record<string, unknown> | undefined>;
98
+ /**
99
+ * chant#2578 — how a message should name a lexicon. A package-backed name is
100
+ * its npm package; a lexicon declared by path is that path, relative to
101
+ * `fromDir` when it sits under it. `paths` defaults to the paths recorded in
102
+ * this process; see {@link pathLexiconMap} for a map that is not recorded.
103
+ */
104
+ export declare function lexiconSourceLabel(name: string, fromDir?: string, paths?: ReadonlyMap<string, string>): string;
105
+ /**
106
+ * The npm packages that provide `names`, leaving out every lexicon declared by
107
+ * path: those have nothing to install. `paths` as in {@link lexiconSourceLabel}.
108
+ */
109
+ export declare function lexiconPackagesToInstall(names: readonly string[], paths?: ReadonlyMap<string, string>): string[];
110
+ //# sourceMappingURL=lexicon-module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lexicon-module.d.ts","sourceRoot":"","sources":["../src/lexicon-module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAIH;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAE1F,mEAAmE;AACnE,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,kBAAkB,GAAG,MAAM,CAExE;AAED,iFAAiF;AACjF,wBAAgB,YAAY,CAAC,OAAO,EAAE,SAAS,kBAAkB,EAAE,GAAG,MAAM,EAAE,CAAC;AAC/E,wBAAgB,YAAY,CAAC,OAAO,EAAE,SAAS,kBAAkB,EAAE,GAAG,SAAS,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC;AAiBvG;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,EACxC,OAAO,EAAE,MAAM,EACf,SAAS,SAAM,GACd;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAgBrC;AAED;;;;;;;;;GASG;AACH,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,SAAS,kBAAkB,EAAE,GAAG,SAAS,EAClD,OAAO,EAAE,MAAM,EACf,SAAS,CAAC,EAAE,MAAM,GACjB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAgBxB;AAMD;;;;GAIG;AACH,wBAAgB,cAAc,CAAC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