@unbrained/pm-cli 2026.11.6 → 2026.11.7

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 (343) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/CHANGELOG.md +13 -0
  3. package/dist/cli/expected-revisions.js +1 -1
  4. package/dist/cli/main.js +1 -1
  5. package/dist/cli/runtime/close-fields-retry.js +2 -0
  6. package/dist/cli-bundle/bundle-manifest.json +1 -1
  7. package/dist/cli-bundle/chunks/chunk-3DI6CEF3.js +3 -0
  8. package/dist/cli-bundle/chunks/{chunk-6VRX2CM7.js → chunk-4PPWVIIT.js} +2 -2
  9. package/dist/cli-bundle/chunks/{chunk-7ZRCYESH.js → chunk-5KHLV7JU.js} +47 -47
  10. package/dist/cli-bundle/chunks/{chunk-X3URBPMV.js → chunk-BQ5O3CBF.js} +51 -51
  11. package/dist/cli-bundle/chunks/{chunk-WC4M2H6R.js → chunk-COKKWMSC.js} +2 -2
  12. package/dist/cli-bundle/chunks/chunk-D53G3NOE.js +6 -0
  13. package/dist/cli-bundle/chunks/{chunk-LS3GI3H4.js → chunk-ETHAZC3F.js} +2 -2
  14. package/dist/cli-bundle/chunks/chunk-F3B2ULHB.js +122 -0
  15. package/dist/cli-bundle/chunks/chunk-JZWFZH2K.js +2 -0
  16. package/dist/cli-bundle/chunks/{chunk-335BZ75D.js → chunk-KPAVZILX.js} +2 -2
  17. package/dist/cli-bundle/chunks/{chunk-OH6WQ7VT.js → chunk-MQOZNGPS.js} +2 -2
  18. package/dist/cli-bundle/chunks/chunk-O6TIOKCM.js +9 -0
  19. package/dist/cli-bundle/chunks/{chunk-PE3ASURT.js → chunk-OIBSKKCO.js} +2 -2
  20. package/dist/cli-bundle/chunks/{chunk-HRFGFIYU.js → chunk-OJZG7Y6S.js} +2 -2
  21. package/dist/cli-bundle/chunks/{chunk-SLC5UWCM.js → chunk-QG6FLDM4.js} +2 -2
  22. package/dist/cli-bundle/chunks/{chunk-D7KYPRK4.js → chunk-RFI4O6NU.js} +2 -2
  23. package/dist/cli-bundle/chunks/{chunk-TSQCUBUX.js → chunk-TGQPCNAD.js} +2 -2
  24. package/dist/cli-bundle/chunks/{chunk-DAX3AOFI.js → chunk-VM6OGNQC.js} +2 -2
  25. package/dist/cli-bundle/chunks/{chunk-S4LPZ4TN.js → chunk-WS2N4TQW.js} +7 -7
  26. package/dist/cli-bundle/chunks/{chunk-UEGXWXUZ.js → chunk-WXVMPLBY.js} +2 -2
  27. package/dist/cli-bundle/chunks/{chunk-QNWUIPBO.js → chunk-WYIDX67P.js} +30 -30
  28. package/dist/cli-bundle/chunks/{chunk-7DEKAXVA.js → chunk-XSEDESNW.js} +2 -2
  29. package/dist/cli-bundle/chunks/item-revision-SPEKTFBB.js +2 -0
  30. package/dist/cli-bundle/chunks/item-transaction-BT55TQXE.js +2 -0
  31. package/dist/cli-bundle/chunks/{mutation-admission-INMM3HHG.js → mutation-admission-LUXUKISJ.js} +2 -2
  32. package/dist/cli-bundle/chunks/{register-list-query-5Y5JKWU5.js → register-list-query-DU4W7VJU.js} +3 -3
  33. package/dist/cli-bundle/chunks/{register-mutation-MDSUU3G7.js → register-mutation-IC2C53QK.js} +2 -2
  34. package/dist/cli-bundle/chunks/{register-operations-WJHZJFK2.js → register-operations-AHDWE2G3.js} +2 -2
  35. package/dist/cli-bundle/chunks/{register-setup-RRFOS7IT.js → register-setup-7BGG3CI3.js} +2 -2
  36. package/dist/cli-bundle/chunks/{stage-E3MMV4TV.js → stage-S5BYWLGY.js} +2 -2
  37. package/dist/cli-bundle/focused-chunks/{chunk-CPMSL4HS.js → chunk-4EXRRSDS.js} +2 -2
  38. package/dist/cli-bundle/focused-chunks/chunk-4LDOL6U7.js +26 -0
  39. package/dist/cli-bundle/focused-chunks/chunk-A46YSPRF.js +2 -0
  40. package/dist/cli-bundle/focused-chunks/{chunk-RFTJZ5VB.js → chunk-AI2PYNFI.js} +2 -2
  41. package/dist/cli-bundle/focused-chunks/chunk-AJ2I377F.js +44 -0
  42. package/dist/cli-bundle/focused-chunks/{chunk-WSOAASCY.js → chunk-BIDF4KO7.js} +2 -2
  43. package/dist/cli-bundle/focused-chunks/{chunk-VWWTIX5L.js → chunk-CWFNQQZE.js} +2 -2
  44. package/dist/cli-bundle/focused-chunks/chunk-D3U7FOZR.js +2 -0
  45. package/dist/cli-bundle/focused-chunks/{chunk-F62XGAAY.js → chunk-G2VIY6XA.js} +2 -2
  46. package/dist/cli-bundle/focused-chunks/{chunk-MG7C3JUY.js → chunk-GFF6BITP.js} +2 -2
  47. package/dist/cli-bundle/focused-chunks/{chunk-LW64TINU.js → chunk-IIBWXNW3.js} +2 -2
  48. package/dist/cli-bundle/focused-chunks/{chunk-AHWJPZSJ.js → chunk-IYJRFJHT.js} +2 -2
  49. package/dist/cli-bundle/focused-chunks/{chunk-D2TBEBNW.js → chunk-J5N42SKC.js} +2 -2
  50. package/dist/cli-bundle/focused-chunks/{chunk-MC7IE7D7.js → chunk-JRJOFMI7.js} +2 -2
  51. package/dist/cli-bundle/focused-chunks/{chunk-CZM75DE3.js → chunk-KL33JMPC.js} +2 -2
  52. package/dist/cli-bundle/focused-chunks/{chunk-E56OXRYH.js → chunk-LH4C7BLB.js} +2 -2
  53. package/dist/cli-bundle/focused-chunks/{chunk-YMGB2O4E.js → chunk-LTQEYE2L.js} +2 -2
  54. package/dist/cli-bundle/focused-chunks/chunk-LTTMERPN.js +12 -0
  55. package/dist/cli-bundle/focused-chunks/{chunk-7KK66ISG.js → chunk-LW4TN5ZM.js} +2 -2
  56. package/dist/cli-bundle/focused-chunks/{chunk-XHOBYCVE.js → chunk-MESFDQ3H.js} +2 -2
  57. package/dist/cli-bundle/focused-chunks/{chunk-G4QP365K.js → chunk-MWTBAI3V.js} +2 -2
  58. package/dist/cli-bundle/focused-chunks/chunk-TWULNB3N.js +2 -0
  59. package/dist/cli-bundle/focused-chunks/{chunk-C6P6HPCX.js → chunk-XAC6NP7U.js} +2 -2
  60. package/dist/cli-bundle/focused-chunks/{chunk-GS3JC5UU.js → chunk-XG3TBYQK.js} +2 -2
  61. package/dist/cli-bundle/focused-chunks/chunk-XMZAFKVP.js +91 -0
  62. package/dist/cli-bundle/focused-chunks/item-revision-ELI6NGMY.js +2 -0
  63. package/dist/cli-bundle/focused-chunks/{item-transaction-H2XACBOP.js → item-transaction-GUGAUY77.js} +2 -2
  64. package/dist/cli-bundle/focused-chunks/{mutation-admission-4WM7TNHZ.js → mutation-admission-54FI37AA.js} +2 -2
  65. package/dist/cli-bundle/focused-chunks/{stage-WV7QXR4C.js → stage-OHDJ43T2.js} +2 -2
  66. package/dist/cli-bundle/main.js +31 -31
  67. package/dist/cli-bundle/sdk-authoring.js +1 -1
  68. package/dist/cli-bundle/sdk-contracts.js +1 -1
  69. package/dist/cli-bundle/sdk-core.js +1 -1
  70. package/dist/cli-bundle/sdk-governance.js +1 -1
  71. package/dist/cli-bundle/sdk-graph.js +1 -1
  72. package/dist/cli-bundle/sdk-merge.js +57 -57
  73. package/dist/cli-bundle/sdk-query.js +1 -1
  74. package/dist/cli-bundle/sdk-runtime.js +1 -1
  75. package/dist/cli-bundle/sdk-testing.js +1 -1
  76. package/dist/cli-bundle/sdk.js +2 -2
  77. package/dist/core/store/item-mutation-precondition.d.ts +58 -0
  78. package/dist/core/store/item-mutation-precondition.js +1 -1
  79. package/dist/sdk/command-line.d.ts +5 -1
  80. package/dist/sdk/command-line.js +1 -1
  81. package/dist/sdk/lifecycle/close.js +1 -1
  82. package/dist/sdk/lifecycle/item-revision.d.ts +15 -4
  83. package/dist/sdk/lifecycle/item-revision.js +1 -1
  84. package/dist/sdk/output/list-envelope.d.ts +18 -7
  85. package/dist/sdk/output/list-envelope.js +1 -1
  86. package/dist/sdk/output-projection.js +1 -1
  87. package/dist/sdk/public-surface.json +1 -1
  88. package/dist/sdk/query/get.d.ts +16 -6
  89. package/dist/sdk/query/get.js +1 -1
  90. package/dist/sdk/query/search/response.js +1 -1
  91. package/dist/sdk/runtime.js +1 -1
  92. package/docs/CLOSE_EVIDENCE_RECOVERY.md +36 -2
  93. package/docs/COMMANDS.md +10 -1
  94. package/docs/GET_READ_EVIDENCE.md +24 -3
  95. package/docs/RELEASING.md +17 -0
  96. package/docs/SDK.md +24 -7
  97. package/marketplace.json +1 -1
  98. package/package.json +1 -1
  99. package/packages/pm-beads/package.json +1 -1
  100. package/packages/pm-calendar/package.json +1 -1
  101. package/packages/pm-command-kit/package.json +1 -1
  102. package/packages/pm-digital-twin/package.json +1 -1
  103. package/packages/pm-governance-audit/package.json +1 -1
  104. package/packages/pm-guide-shell/package.json +1 -1
  105. package/packages/pm-kanban/package.json +1 -1
  106. package/packages/pm-lifecycle-hooks/package.json +1 -1
  107. package/packages/pm-linked-test-adapters/package.json +1 -1
  108. package/packages/pm-search-advanced/package.json +1 -1
  109. package/packages/pm-templates/package.json +1 -1
  110. package/packages/pm-todos/package.json +1 -1
  111. package/packages/pm-vcs/package.json +1 -1
  112. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
  113. package/plugins/pm-claude/package.json +1 -1
  114. package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
  115. package/plugins/pm-codex/package.json +1 -1
  116. package/plugins/pm-codex/plugin.json +1 -1
  117. package/runtime-dependencies.json +1 -1
  118. package/dist/cli/after-command-context-usage.d.ts +0 -21
  119. package/dist/cli/argv-utils.d.ts +0 -12
  120. package/dist/cli/bootstrap-args.d.ts +0 -6
  121. package/dist/cli/bundle-integrity.d.ts +0 -49
  122. package/dist/cli/command-namespaces.d.ts +0 -9
  123. package/dist/cli/commander-usage.d.ts +0 -73
  124. package/dist/cli/commands/annotations/comments.d.ts +0 -2
  125. package/dist/cli/commands/annotations/docs.d.ts +0 -6
  126. package/dist/cli/commands/annotations/files.d.ts +0 -6
  127. package/dist/cli/commands/annotations/learnings.d.ts +0 -2
  128. package/dist/cli/commands/annotations/notes.d.ts +0 -2
  129. package/dist/cli/commands/extension/describe.d.ts +0 -2
  130. package/dist/cli/commands/extension/extension.d.ts +0 -6
  131. package/dist/cli/commands/extension/scaffold.d.ts +0 -2
  132. package/dist/cli/commands/extension/shared.d.ts +0 -2
  133. package/dist/cli/commands/governance/gc.d.ts +0 -6
  134. package/dist/cli/commands/governance/health.d.ts +0 -6
  135. package/dist/cli/commands/governance/telemetry.d.ts +0 -6
  136. package/dist/cli/commands/governance/validate.d.ts +0 -9
  137. package/dist/cli/commands/history/activity.d.ts +0 -6
  138. package/dist/cli/commands/history/history-compact.d.ts +0 -7
  139. package/dist/cli/commands/history/history-redact.d.ts +0 -8
  140. package/dist/cli/commands/history/history-repair.d.ts +0 -7
  141. package/dist/cli/commands/history/history.d.ts +0 -2
  142. package/dist/cli/commands/history/restore.d.ts +0 -6
  143. package/dist/cli/commands/lifecycle/append.d.ts +0 -6
  144. package/dist/cli/commands/lifecycle/claim.d.ts +0 -2
  145. package/dist/cli/commands/lifecycle/close-many.d.ts +0 -2
  146. package/dist/cli/commands/lifecycle/close.d.ts +0 -6
  147. package/dist/cli/commands/lifecycle/copy.d.ts +0 -6
  148. package/dist/cli/commands/lifecycle/create.d.ts +0 -10
  149. package/dist/cli/commands/lifecycle/delete.d.ts +0 -6
  150. package/dist/cli/commands/lifecycle/focus.d.ts +0 -6
  151. package/dist/cli/commands/lifecycle/plan.d.ts +0 -9
  152. package/dist/cli/commands/lifecycle/update-many.d.ts +0 -6
  153. package/dist/cli/commands/lifecycle/update.d.ts +0 -10
  154. package/dist/cli/commands/query/aggregate.d.ts +0 -2
  155. package/dist/cli/commands/query/context.d.ts +0 -6
  156. package/dist/cli/commands/query/deps.d.ts +0 -6
  157. package/dist/cli/commands/query/duplicates.d.ts +0 -6
  158. package/dist/cli/commands/query/eval.d.ts +0 -6
  159. package/dist/cli/commands/query/get.d.ts +0 -6
  160. package/dist/cli/commands/query/graph.d.ts +0 -7
  161. package/dist/cli/commands/query/list.d.ts +0 -6
  162. package/dist/cli/commands/query/next.d.ts +0 -6
  163. package/dist/cli/commands/query/search.d.ts +0 -6
  164. package/dist/cli/commands/query/stats.d.ts +0 -6
  165. package/dist/cli/commands/test/test-all.d.ts +0 -6
  166. package/dist/cli/commands/test/test-runs.d.ts +0 -6
  167. package/dist/cli/commands/test/test.d.ts +0 -6
  168. package/dist/cli/commands/workspace/config.d.ts +0 -6
  169. package/dist/cli/commands/workspace/contracts.d.ts +0 -2
  170. package/dist/cli/commands/workspace/init.d.ts +0 -6
  171. package/dist/cli/commands/workspace/merge.d.ts +0 -8
  172. package/dist/cli/commands/workspace/profile.d.ts +0 -6
  173. package/dist/cli/commands/workspace/schema.d.ts +0 -7
  174. package/dist/cli/commands/workspace/upgrade.d.ts +0 -2
  175. package/dist/cli/context-intent-invocation.d.ts +0 -2
  176. package/dist/cli/description-stdin.d.ts +0 -2
  177. package/dist/cli/error-guidance.d.ts +0 -276
  178. package/dist/cli/expected-revisions.d.ts +0 -55
  179. package/dist/cli/extension-command-help.d.ts +0 -137
  180. package/dist/cli/extension-command-options.d.ts +0 -37
  181. package/dist/cli/extension-recovery.d.ts +0 -31
  182. package/dist/cli/help-content.d.ts +0 -57
  183. package/dist/cli/help-json-payload.d.ts +0 -83
  184. package/dist/cli/invocation-profile.d.ts +0 -26
  185. package/dist/cli/main.d.ts +0 -263
  186. package/dist/cli/migration-gates.d.ts +0 -55
  187. package/dist/cli/option-values.d.ts +0 -3
  188. package/dist/cli/preflight-warnings.d.ts +0 -11
  189. package/dist/cli/register-annotations.d.ts +0 -11
  190. package/dist/cli/register-assurance.d.ts +0 -8
  191. package/dist/cli/register-files-lookup.d.ts +0 -9
  192. package/dist/cli/register-history-activity.d.ts +0 -8
  193. package/dist/cli/register-history-author.d.ts +0 -8
  194. package/dist/cli/register-history-maintenance.d.ts +0 -9
  195. package/dist/cli/register-list-query.d.ts +0 -27
  196. package/dist/cli/register-mutation-options.d.ts +0 -10
  197. package/dist/cli/register-mutation.d.ts +0 -16
  198. package/dist/cli/register-operations.d.ts +0 -85
  199. package/dist/cli/register-setup.d.ts +0 -16
  200. package/dist/cli/register-structured-mutation.d.ts +0 -15
  201. package/dist/cli/registration-helpers.d.ts +0 -2
  202. package/dist/cli/runtime/activation.d.ts +0 -51
  203. package/dist/cli/runtime/field-route-retry.d.ts +0 -15
  204. package/dist/cli/runtime/invocation-options.d.ts +0 -43
  205. package/dist/cli/runtime/projection-retry.d.ts +0 -9
  206. package/dist/cli/runtime/selection.d.ts +0 -35
  207. package/dist/cli/runtime/telemetry-outcome.d.ts +0 -20
  208. package/dist/cli/runtime-compatibility-boundary.d.ts +0 -17
  209. package/dist/cli/schema/registration.d.ts +0 -4
  210. package/dist/cli/schema-registration-helpers.d.ts +0 -24
  211. package/dist/cli/search-refresh.d.ts +0 -2
  212. package/dist/cli/stats-analytics-json.d.ts +0 -9
  213. package/dist/cli/telemetry-flush.d.ts +0 -2
  214. package/dist/cli-bundle/chunks/chunk-5GWEY4P6.js +0 -122
  215. package/dist/cli-bundle/chunks/chunk-AUEKTX7V.js +0 -6
  216. package/dist/cli-bundle/chunks/chunk-FRNMQM45.js +0 -2
  217. package/dist/cli-bundle/chunks/chunk-HNGLDMSZ.js +0 -9
  218. package/dist/cli-bundle/chunks/chunk-YKXATU2G.js +0 -3
  219. package/dist/cli-bundle/chunks/item-revision-OJJVPQY7.js +0 -2
  220. package/dist/cli-bundle/chunks/item-transaction-TBKEATN6.js +0 -2
  221. package/dist/cli-bundle/focused-chunks/chunk-2KTJY7BV.js +0 -44
  222. package/dist/cli-bundle/focused-chunks/chunk-G5PJCR7R.js +0 -2
  223. package/dist/cli-bundle/focused-chunks/chunk-M6V7UMWL.js +0 -26
  224. package/dist/cli-bundle/focused-chunks/chunk-MK4HV4JO.js +0 -2
  225. package/dist/cli-bundle/focused-chunks/chunk-O7EI33NP.js +0 -91
  226. package/dist/cli-bundle/focused-chunks/chunk-SNOXXRSJ.js +0 -2
  227. package/dist/cli-bundle/focused-chunks/chunk-UPJUTP2V.js +0 -12
  228. package/dist/cli-bundle/focused-chunks/item-revision-CTDO4H3I.js +0 -2
  229. package/dist/cli.d.ts +0 -13
  230. package/dist/core/checkpoint/checkpoint-gc.d.ts +0 -61
  231. package/dist/core/checkpoint/mutation-context.d.ts +0 -10
  232. package/dist/core/diagnostics/remediation.d.ts +0 -52
  233. package/dist/core/extensions/activation-transaction.d.ts +0 -22
  234. package/dist/core/extensions/command-visibility-tier.d.ts +0 -8
  235. package/dist/core/extensions/exporter-output-contract.d.ts +0 -12
  236. package/dist/core/extensions/extension-candidate.d.ts +0 -26
  237. package/dist/core/extensions/extension-runtime-helpers.d.ts +0 -16
  238. package/dist/core/extensions/module-graph-snapshot.d.ts +0 -19
  239. package/dist/core/extensions/preflight-ownership.d.ts +0 -5
  240. package/dist/core/extensions/read-output-contract.d.ts +0 -5
  241. package/dist/core/extensions/reserved-host-flags.d.ts +0 -18
  242. package/dist/core/extensions/service-ownership.d.ts +0 -8
  243. package/dist/core/extensions/version-diagnostics.d.ts +0 -2
  244. package/dist/core/fs/atomic-create.d.ts +0 -7
  245. package/dist/core/fs/index.d.ts +0 -6
  246. package/dist/core/fs/path-utils.d.ts +0 -2
  247. package/dist/core/history/drift-cache.d.ts +0 -4
  248. package/dist/core/history/drift-scan.d.ts +0 -51
  249. package/dist/core/history/index.d.ts +0 -6
  250. package/dist/core/history/tombstone.d.ts +0 -3
  251. package/dist/core/history/version-address.d.ts +0 -13
  252. package/dist/core/item/index.d.ts +0 -9
  253. package/dist/core/item/item-type-definition.d.ts +0 -51
  254. package/dist/core/item/toon-decode.d.ts +0 -25
  255. package/dist/core/lock/index.d.ts +0 -6
  256. package/dist/core/lock/lock-confinement.d.ts +0 -55
  257. package/dist/core/lock/lock-gc.d.ts +0 -93
  258. package/dist/core/output/mutation-projection.d.ts +0 -13
  259. package/dist/core/output/query-summary.d.ts +0 -30
  260. package/dist/core/search/staleness.d.ts +0 -23
  261. package/dist/core/sentry/sensitive-assignments.d.ts +0 -9
  262. package/dist/core/shared/conflict-markers.d.ts +0 -18
  263. package/dist/core/shared/index.d.ts +0 -9
  264. package/dist/core/shared/memo.d.ts +0 -7
  265. package/dist/core/store/index.d.ts +0 -9
  266. package/dist/core/store/settings-concurrency.d.ts +0 -7
  267. package/dist/core/telemetry/read-sampling.d.ts +0 -8
  268. package/dist/core/test/item-test-run-tracking.d.ts +0 -12
  269. package/dist/core/validate/estimate-defaults.d.ts +0 -21
  270. package/dist/core/validate/linked-artifact-reference.d.ts +0 -20
  271. package/dist/mcp/http-server.d.ts +0 -60
  272. package/dist/mcp/legacy-adapter.d.ts +0 -59
  273. package/dist/mcp/runtime-capabilities.d.ts +0 -57
  274. package/dist/mcp/server.d.ts +0 -101
  275. package/dist/sdk/cli-contracts/bootstrap-command-scanner.d.ts +0 -23
  276. package/dist/sdk/cli-contracts/registration-helpers.d.ts +0 -123
  277. package/dist/sdk/cli-contracts/schemas/assurance-definition.d.ts +0 -796
  278. package/dist/sdk/cli-contracts/string-lists.d.ts +0 -9
  279. package/dist/sdk/cli-contracts/tool-parameter-tables.d.ts +0 -35
  280. package/dist/sdk/context/usage-egress.d.ts +0 -9
  281. package/dist/sdk/dependencies/context-budget-recovery.d.ts +0 -21
  282. package/dist/sdk/dependency-flag-validation.d.ts +0 -32
  283. package/dist/sdk/extension/author-manifest.d.ts +0 -22
  284. package/dist/sdk/extension/bundled-catalog.d.ts +0 -35
  285. package/dist/sdk/extension/concurrency.d.ts +0 -7
  286. package/dist/sdk/extension/copy-scope.d.ts +0 -2
  287. package/dist/sdk/extension/custom-field-collisions.d.ts +0 -6
  288. package/dist/sdk/extension/install-receipts.d.ts +0 -7
  289. package/dist/sdk/extension/install-snapshot.d.ts +0 -34
  290. package/dist/sdk/extension/managed-update-status.d.ts +0 -3
  291. package/dist/sdk/extension/runtime-summary.d.ts +0 -9
  292. package/dist/sdk/extension/scaffold.d.ts +0 -38
  293. package/dist/sdk/generated/error-code-catalog-rows.d.ts +0 -39
  294. package/dist/sdk/generated/generated-error-code-catalog-part-1.d.ts +0 -8
  295. package/dist/sdk/generated/generated-error-code-catalog-part-2.d.ts +0 -8
  296. package/dist/sdk/governance/assurance-limits.d.ts +0 -7
  297. package/dist/sdk/governance/defect-recurrence-signals.d.ts +0 -10
  298. package/dist/sdk/governance/health-merge-evidence.d.ts +0 -23
  299. package/dist/sdk/governance/tracked-runtime-cache.d.ts +0 -24
  300. package/dist/sdk/governance/validate-history-drift.d.ts +0 -7
  301. package/dist/sdk/history/attestation-scan.d.ts +0 -16
  302. package/dist/sdk/history-mcp.d.ts +0 -17
  303. package/dist/sdk/lifecycle/checkpoint-rollback.d.ts +0 -15
  304. package/dist/sdk/lifecycle/core-field-recovery.d.ts +0 -33
  305. package/dist/sdk/lifecycle/core-item-fields.d.ts +0 -6
  306. package/dist/sdk/lifecycle/event-validation-messages.d.ts +0 -6
  307. package/dist/sdk/lifecycle/hierarchy-mutation-lock.d.ts +0 -15
  308. package/dist/sdk/lifecycle/legacy-none-tokens.d.ts +0 -71
  309. package/dist/sdk/lifecycle/mcp-actions.d.ts +0 -24
  310. package/dist/sdk/lifecycle/metadata-normalizers.d.ts +0 -8
  311. package/dist/sdk/lifecycle/mutation-facet-contracts.d.ts +0 -6
  312. package/dist/sdk/lifecycle/mutation-option-validation.d.ts +0 -2
  313. package/dist/sdk/lifecycle/recurrence-parsers.d.ts +0 -34
  314. package/dist/sdk/lifecycle/release-handoff.d.ts +0 -12
  315. package/dist/sdk/lifecycle/repeatable-metadata-parsers.d.ts +0 -18
  316. package/dist/sdk/lifecycle/repeated-terminal-state.d.ts +0 -45
  317. package/dist/sdk/merge/abandoned-receipts.d.ts +0 -15
  318. package/dist/sdk/merge/history-scalar-rebase.d.ts +0 -9
  319. package/dist/sdk/merge/ignored-artifacts.d.ts +0 -13
  320. package/dist/sdk/merge/indexed-receipt-blobs.d.ts +0 -4
  321. package/dist/sdk/merge/receipt-file-boundary.d.ts +0 -23
  322. package/dist/sdk/merge/settlement-hook.d.ts +0 -12
  323. package/dist/sdk/merge/stage.d.ts +0 -13
  324. package/dist/sdk/merge/worktree-config.d.ts +0 -11
  325. package/dist/sdk/query/light-metadata.d.ts +0 -3
  326. package/dist/sdk/query/window-pagination.d.ts +0 -20
  327. package/dist/sdk/read-output/extension.d.ts +0 -7
  328. package/dist/sdk/read-output/provenance.d.ts +0 -20
  329. package/dist/sdk/read-output/surfaces.d.ts +0 -27
  330. package/dist/sdk/runtime/actions.d.ts +0 -4
  331. package/dist/sdk/runtime/mutation-admission.d.ts +0 -2
  332. package/dist/sdk/runtime/mutation-value-validation.d.ts +0 -16
  333. package/dist/sdk/runtime/schema.d.ts +0 -4
  334. package/dist/sdk/runtime-action-aliases.d.ts +0 -7
  335. package/dist/sdk/runtime-extended-actions.d.ts +0 -27
  336. package/dist/sdk/runtime-stats-options.d.ts +0 -9
  337. package/dist/sdk/test/command-args.d.ts +0 -4
  338. package/dist/sdk/test/command-resolution.d.ts +0 -5
  339. package/dist/sdk/test/entry.d.ts +0 -18
  340. package/dist/sdk/test/execution-receipts.d.ts +0 -34
  341. package/dist/sdk/test/receipt-index-snapshot.d.ts +0 -2
  342. package/dist/sdk/test/workspace-snapshot.d.ts +0 -11
  343. package/dist/sdk/traceability/runtime-files-lookup.d.ts +0 -8
@@ -1,55 +0,0 @@
1
- /**
2
- * @module cli/migration-gates
3
- *
4
- * Provides CLI runtime support for Migration Gates.
5
- */
6
- import { type PreflightRuntimeDecision } from "../sdk/runtime-primitives.js";
7
- /** Documents the mandatory migration blocker payload exchanged by command, SDK, and package integrations. */
8
- export interface MandatoryMigrationBlocker {
9
- /** Value that configures or reports layer for this contract. */
10
- layer:"global" | "project";
11
- /** Value that configures or reports name for this contract. */
12
- name:string;
13
- /** Stable identifier used to reference this record across commands and storage. */
14
- id:string;
15
- /** Lifecycle state reported for status. */
16
- status:string;
17
- }
18
- /** Documents the write gate decision payload exchanged by command, SDK, and package integrations. */
19
- export interface WriteGateDecision {
20
- /** Whether mutation applies to this operation. */
21
- isMutation:boolean;
22
- /** Value that configures or reports force capable for this contract. */
23
- forceCapable:boolean;
24
- /** Value that configures or reports force requested for this contract. */
25
- forceRequested:boolean;
26
- }
27
- /** Implements resolve migration id for the public runtime surface of this module. */
28
- export declare function resolveMigrationId(definition:Record<string,unknown>,fallbackIndex:number):string;
29
- /** Implements resolve normalized migration status for the public runtime surface of this module. */
30
- export declare function resolveNormalizedMigrationStatus(definition:Record<string,unknown>):string;
31
- /** Implements collect mandatory migration blockers for the public runtime surface of this module. */
32
- export declare function collectMandatoryMigrationBlockers(migrations:Array<{
33
- layer:"global" | "project";
34
- name:string;
35
- definition:Record<string,unknown>;
36
- }>):MandatoryMigrationBlocker[];
37
- /** Implements decide write gate for the public runtime surface of this module. */
38
- export declare function decideWriteGate(commandPath:string,options:Record<string,unknown>):WriteGateDecision;
39
- /** Normalize configured active-status spellings for preflight comparison. */
40
- export declare function normalizedLifecycleStatus(value:string | undefined):string;
41
- /** Convert incomplete schema-evolution CLI invocations into typed usage errors. */
42
- export declare function enforceSchemaMigrationInput(commandPath:string,commandArgs:string[],options:Record<string,unknown>):void;
43
- /**
44
- * Apply SDK-owned provenance and secret policy to one parsed CLI invocation.
45
- * Advisories use invocation diagnostics so JSON failures remain parseable.
46
- */
47
- export declare function enforceMutationGuardPreflight(commandPath:string,commandArgs:string[],options:Record<string,unknown>,global:{
48
- author?:string;
49
- force?:boolean;
50
- json?:boolean;
51
- },pmRoot:string):Promise<void>;
52
- /** Implements enforce mandatory migration write gate for the public runtime surface of this module. */
53
- export declare function enforceMandatoryMigrationWriteGate(commandPath:string,options:Record<string,unknown>,blockers:MandatoryMigrationBlocker[]):void;
54
- /** Implements enforce item format write gate and preflight migration for the public runtime surface of this module. */
55
- export declare function enforceItemFormatWriteGateAndPreflightMigration(commandPath:string,options:Record<string,unknown>,pmRoot:string,decision:PreflightRuntimeDecision):Promise<void>;
@@ -1,3 +0,0 @@
1
- /** @module cli/option-values Shared normalization for repeatable Commander option values. */
2
- /** Preserve collected arrays and legacy scalar values, leaving absent options undefined. */
3
- export declare function stringArrayOption(value:unknown):string[] | undefined;
@@ -1,11 +0,0 @@
1
- import type { PreflightWarningDiagnostics } from "./error-guidance.js";
2
- /** Prefer the invocation renderer while preserving direct callers without a scope. */
3
- export declare function resolvePreflightJsonMode(fallback:boolean):boolean;
4
- /** Emit human diagnostics immediately or retain codes in the current JSON invocation. */
5
- export declare function emitPreflightWarning(code:string,humanMessage?:string):void;
6
- /** Consume pending advisories into the failure while preserving existing diagnostics. */
7
- export declare function attachPreflightWarnings<T extends object>(envelope:T):T & PreflightWarningDiagnostics;
8
- /** Attach advisories to an already-rendered Commander JSON refusal. */
9
- export declare function attachSerializedPreflightWarnings(envelope:string):string;
10
- /** Isolate nested/concurrent invocations and publish remaining successful-command warnings once. */
11
- export declare function runWithPreflightWarnings(json:boolean,run:() => Promise<void>):Promise<void>;
@@ -1,11 +0,0 @@
1
- /**
2
- * @module cli/register-annotations
3
- *
4
- * Registers comment, note, and learning adapters around the shared bounded
5
- * annotation SDK contract.
6
- */
7
- import type { Command } from "commander";
8
- /** Converts a Commander token into a positive annotation index. */
9
- export type PositiveIntegerOptionParser = (value:string,previous:number | undefined) => number;
10
- /** Register bounded annotation commands on the root Commander program. */
11
- export declare function registerAnnotationCommands(program:Command,parsePositiveInteger:(flag:string) => PositiveIntegerOptionParser):void;
@@ -1,8 +0,0 @@
1
- /**
2
- * @module cli/register-assurance
3
- *
4
- * Thin Commander adapter over the transport-neutral public assurance action.
5
- */
6
- import type { Command } from "commander";
7
- /** Register the declarative assurance command family. */
8
- export declare function registerAssuranceCommand(program:Command):void;
@@ -1,9 +0,0 @@
1
- /**
2
- * @module cli/register-files-lookup
3
- *
4
- * Registers the bounded reverse linked-file query without expanding the main
5
- * mutation command registry.
6
- */
7
- import type { Command } from "commander";
8
- /** Register the reverse linked-file lookup below the existing files command. */
9
- export declare function registerFilesLookupCommand(filesCommand:Command):void;
@@ -1,8 +0,0 @@
1
- /**
2
- * @module cli/register-history-activity
3
- *
4
- * Shares history activity options and output handling across native and legacy entrypoints.
5
- */
6
- import type { Command } from "commander";
7
- /** Configure an activity leaf with the shared projection and streaming contract. */
8
- export declare function registerHistoryActivityCommand(command:Command):void;
@@ -1,8 +0,0 @@
1
- /**
2
- * @module cli/register-history-author
3
- *
4
- * Registers the append-only remediation surface for unknown history authors.
5
- */
6
- import type { Command } from "commander";
7
- /** Register the evidence-backed immutable-history author disposition command. */
8
- export declare function registerHistoryAuthorAcknowledgeCommand(program:Command):void;
@@ -1,9 +0,0 @@
1
- /**
2
- * @module cli/register-history-maintenance
3
- *
4
- * Registers native history maintenance and permanent legacy spellings from
5
- * the same option and action definitions; all behavior remains SDK-owned.
6
- */
7
- import type { Command } from "commander";
8
- /** Install identical maintenance actions at the history namespace or legacy root. */
9
- export declare function registerHistoryMaintenanceCommands(parent:Command,native:boolean):void;
@@ -1,27 +0,0 @@
1
- /**
2
- * @module cli/register-list-query
3
- *
4
- * Registers SDK-backed item, list, context, search, graph, history, and event
5
- * transports. CLI aliases and rendering live here; selection and persistence
6
- * remain owned by the SDK.
7
- */
8
- import type { Command } from "commander";
9
- import { getGlobalOptions } from "./registration-helpers.js";
10
- /** Restrict command registration for lazy CLI startup without changing action behavior. */
11
- export interface RegisterListQueryCommandsOptions {
12
- /** Canonical names to register; an absent or empty set registers every family, and context accepts ctx. */
13
- commandFilter?:Set<string>;
14
- }
15
- type ListOutputFormat = "csv" | "table" | "json" | "ndjson" | "toon";
16
- /** Parses the `pm list --format` value into a supported render mode. csv/table are human export modes; json/toon override the machine output format. Returns undefined when no `--format` was supplied so the global output format applies. */
17
- declare function parseListFormat(rawFormat:unknown):ListOutputFormat | undefined;
18
- /** Apply an explicit JSON/TOON override or permitted NDJSON mode, refusing unsupported formats and conflicting --json/TOON requests. */
19
- declare function resolveReadCommandOutputFormat(commandLabel:string,rawFormat:unknown,globalOptions:ReturnType<typeof getGlobalOptions>,allowNdjson?:boolean):ReturnType<typeof getGlobalOptions>;
20
- /** Register filtered read families and compatibility aliases without reading tracker state. Action adapters normalize Commander inputs and delegate domain behavior to SDK owners. */
21
- export declare function registerListQueryCommands(program:Command,options?:RegisterListQueryCommandsOptions):void;
22
- /** Compatibility access to the format validators used by registered CLI actions. */
23
- export declare const _testOnlyRegisterListQuery:{
24
- resolveReadCommandOutputFormat:typeof resolveReadCommandOutputFormat;
25
- parseListFormat:typeof parseListFormat;
26
- };
27
- export {};
@@ -1,10 +0,0 @@
1
- /**
2
- * @module cli/register-mutation-options
3
- *
4
- * Defines bounded mutation-family registration controls.
5
- */
6
- /** Optional controls used by the selective CLI bootstrap. */
7
- export interface RegisterMutationCommandsOptions {
8
- /** Register only this mutation command when the family can safely short-circuit. */
9
- targetCommandName?:string;
10
- }
@@ -1,16 +0,0 @@
1
- /**
2
- * @module cli/register-mutation
3
- *
4
- * Provides CLI runtime support for Register Mutation.
5
- */
6
- import type { Command } from "commander";
7
- import { type CommanderOptionRegistrationContract } from "../sdk/cli-contracts.js";
8
- export { looksLikeSchemaSubcommandTypo,parseSchemaOrderOption,} from "./schema-registration-helpers.js";
9
- import type { RegisterMutationCommandsOptions } from "./register-mutation-options.js";
10
- export type { RegisterMutationCommandsOptions } from "./register-mutation-options.js";
11
- /** Build a commander argParser that coerces a flag value into a positive (1-based) integer, throwing a usage error when the supplied value is not a whole number >= 1. Used by `pm comments --edit/--delete <index>` so an invalid index fails fast with a clear message instead of silently coercing. */
12
- export declare function parsePositiveIntOption(flag:string):(value:string) => number;
13
- /** Implements register commander option contracts for the public runtime surface of this module. */
14
- export declare function registerCommanderOptionContracts(command:Command,contracts:CommanderOptionRegistrationContract[]):void;
15
- /** Implements register mutation commands for the public runtime surface of this module. */
16
- export declare function registerMutationCommands(program:Command,registrationOptions?:RegisterMutationCommandsOptions):void;
@@ -1,85 +0,0 @@
1
- import type { Command } from "commander";
2
- import { requireClaimTarget } from "./commands/lifecycle/claim.js";
3
- /** Refuse mutations and trust acknowledgement before scheduling an execution-only background run. */
4
- declare function validateBackgroundTestOptions(options:Record<string,unknown>,values:{
5
- addValues:string[];
6
- addJsonValues:string[];
7
- removeValues:string[];
8
- removeIndexValues:string[];
9
- }):void;
10
- /** Translate CLI option values into the shared SDK linked-test action contract. */
11
- declare function buildRunTestOptions(options:Record<string,unknown>,values:{
12
- addValues:string[];
13
- addJsonValues:string[];
14
- removeValues:string[];
15
- removeIndexValues:string[];
16
- }):{
17
- list:boolean;
18
- run:boolean;
19
- match:string | undefined;
20
- onlyIndex:string | number | undefined;
21
- onlyLast:boolean;
22
- timeout:string | undefined;
23
- progress:boolean;
24
- envSet:string[];
25
- envClear:string[];
26
- sharedHostSafe:boolean;
27
- pmContext:string | undefined;
28
- overrideLinkedPmContext:boolean;
29
- workspaceContext:string | undefined;
30
- overrideLinkedWorkspaceContext:boolean;
31
- allowUntrustedLinkedTests:boolean;
32
- acknowledgeLinkedTests:boolean;
33
- failOnContextMismatch:boolean;
34
- failOnSkipped:boolean;
35
- failOnEmptyTestRun:boolean;
36
- requireAssertionsForPm:boolean;
37
- checkContext:boolean;
38
- autoPmContext:boolean;
39
- author:string | undefined;
40
- message:string | undefined;
41
- force:boolean;
42
- measure:string[];
43
- metricBelow:string | undefined;
44
- metricDiff:string | undefined;
45
- update:string | undefined;
46
- updateIndex:string | number | undefined;
47
- setJson:string | undefined;
48
- add:string[];
49
- addJson:string[];
50
- remove:string[];
51
- removeIndex:string[];
52
- };
53
- /** Public contract for test-only operation adapter coverage. */
54
- export declare const _testOnlyRegisterOperations:{
55
- buildRunTestOptions:typeof buildRunTestOptions;
56
- buildRunTestAllOptions:typeof buildRunTestAllOptions;
57
- runWorkspacePositionAction:typeof runWorkspacePositionAction;
58
- validateBackgroundTestOptions:typeof validateBackgroundTestOptions;
59
- };
60
- declare function buildRunTestAllOptions(options:Record<string,unknown>):{
61
- status:string | undefined;
62
- limit:string | undefined;
63
- offset:string | undefined;
64
- timeout:string | undefined;
65
- progress:boolean;
66
- envSet:string[];
67
- envClear:string[];
68
- sharedHostSafe:boolean;
69
- pmContext:string | undefined;
70
- overrideLinkedPmContext:boolean;
71
- workspaceContext:string | undefined;
72
- overrideLinkedWorkspaceContext:boolean;
73
- allowUntrustedLinkedTests:boolean;
74
- failOnContextMismatch:boolean;
75
- failOnSkipped:boolean;
76
- failOnEmptyTestRun:boolean;
77
- requireAssertionsForPm:boolean;
78
- checkContext:boolean;
79
- autoPmContext:boolean;
80
- };
81
- declare function runWorkspacePositionAction(_options:Record<string,unknown>,command:Command):Promise<void>;
82
- /** Re-exported so registration callers keep one claim-target contract with the SDK. */
83
- export { requireClaimTarget };
84
- /** Implements register operation commands for the public runtime surface of this module. */
85
- export declare function registerOperationCommands(program:Command):void;
@@ -1,16 +0,0 @@
1
- /**
2
- * @module cli/register-setup
3
- *
4
- * Provides CLI runtime support for Register Setup.
5
- */
6
- import type { Command } from "commander";
7
- type ExtensionSubcommandAction = "init" | "install" | "uninstall" | "explore" | "manage" | "describe" | "reload" | "doctor" | "catalog" | "adopt" | "adopt-all" | "activate" | "deactivate" | "migrate";
8
- type LifecycleCommandVocabulary = "extension" | "package";
9
- declare function normalizeExtensionOptions(options:Record<string,unknown>,forcedAction?:ExtensionSubcommandAction,vocabulary?:LifecycleCommandVocabulary):Record<string,unknown>;
10
- /** Internal setup helpers exposed only for deterministic unit coverage. */
11
- export declare const _testOnlyRegisterSetup:{
12
- normalizeExtensionOptions:typeof normalizeExtensionOptions;
13
- };
14
- /** Register initialization, configuration, package, and extension setup commands. */
15
- export declare function registerSetupCommands(program:Command):void;
16
- export {};
@@ -1,15 +0,0 @@
1
- import type { Command } from "commander";
2
- declare function runItemReopenAction(id:string,reason:string,options:Record<string,unknown>,command:Command):Promise<void>;
3
- /** Preview or commit the ordered item plan through the shared lifecycle coordinator. */
4
- declare function runItemMutateAction(options:Record<string,unknown>,command:Command):Promise<void>;
5
- /** Compose completion evidence, closure and release before previewing or committing the plan. */
6
- declare function runItemCompleteAction(id:string,positionalReason:string | undefined,options:Record<string,unknown>,command:Command):Promise<void>;
7
- /** Register `pm item mutate`, the stable noun-first atomic batch surface. */
8
- export declare function registerStructuredMutationCommands(program:Command):void;
9
- /** Internal action hooks used by exhaustive source-level registration tests. */
10
- export declare const structuredMutationTestOnly:{
11
- runItemCompleteAction:typeof runItemCompleteAction;
12
- runItemMutateAction:typeof runItemMutateAction;
13
- runItemReopenAction:typeof runItemReopenAction;
14
- };
15
- export {};
@@ -1,2 +0,0 @@
1
- /** @module cli/registration-helpers Compatibility export for SDK-owned invocation normalization. */
2
- export * from "../sdk/cli-contracts/registration-helpers.js";
@@ -1,51 +0,0 @@
1
- /**
2
- * @module cli/runtime/activation
3
- * Selects extension activation from static contributions and the requested command path.
4
- */
5
- import { Command } from "commander";
6
- import { type ExtensionDiscoveryResult } from "../../sdk/runtime-primitives.js";
7
- /** Normalized command path, arguments and provided options used to select extension activation without importing extension code. */
8
- interface RuntimeExtensionActivationProbe {
9
- commandPath?:string;
10
- commandArgs?:string[];
11
- allowCommandPrefixMatch?:boolean;
12
- }
13
- /** Collect positional words before the first option to probe the requested command path. */
14
- declare function collectLeadingCommandArgs(commandArgs:readonly string[] | undefined):string[];
15
- /** Match leading command paths against both native history spellings and stable extension operation identities. */
16
- declare function collectActivationCommandCandidates(probe:RuntimeExtensionActivationProbe):string[];
17
- /** Compare an extension activation command with the normalized invocation probe. */
18
- declare function activationCommandMatchesProbe(command:string,probe:RuntimeExtensionActivationProbe):boolean;
19
- /** Read and normalize the command paths declared by an extension activation manifest. */
20
- declare function extensionActivationCommands(extension:ExtensionDiscoveryResult["effective"][number]):string[];
21
- /** Collect the capabilities declared by one discovered extension. */
22
- declare function extensionCapabilities(extension:ExtensionDiscoveryResult["effective"][number]):Set<string>;
23
- /** Test whether any declared capability belongs to the capability family required by an invocation. */
24
- declare function hasAnyCapability(capabilities:Set<string>,expected:Set<string>):boolean;
25
- /** Identify command paths that require search provider or vector-store registrations. */
26
- declare function commandPathNeedsSearchExtensions(commandPath:string | undefined):boolean;
27
- /** Check the provided invocation flags against one activation-sensitive flag family. */
28
- declare function probeUsesAnyFlag(probe:RuntimeExtensionActivationProbe,flags:Set<string>):boolean;
29
- /** Identify invocations that consume extension-provided create templates. */
30
- declare function commandPathNeedsTemplateExtensions(probe:RuntimeExtensionActivationProbe):boolean;
31
- /** Recognize runtime template contributions that require extension activation. */
32
- declare function extensionProvidesTemplatesRuntime(commands:readonly string[]):boolean;
33
- /** Match direct command paths plus the built-in create-template bridge. */
34
- declare function matchesStaticExtensionCommand(commands:readonly string[],probe:RuntimeExtensionActivationProbe):boolean;
35
- /** Identify contribution surfaces that participate in global runtime behavior. */
36
- declare function hasGlobalExtensionContributions(contributions:NonNullable<ExtensionDiscoveryResult["effective"][number]["contributions"]>):boolean;
37
- /** Resolve an exact activation verdict from declared commands and contributions. */
38
- declare function resolveStaticExtensionActivationDecision(extension:ExtensionDiscoveryResult["effective"][number],probe:RuntimeExtensionActivationProbe):boolean | undefined;
39
- /** Combine static contributions and capability fallbacks to decide whether one extension must activate. */
40
- declare function extensionNeedsActivationForProbe(extension:ExtensionDiscoveryResult["effective"][number],probe:RuntimeExtensionActivationProbe):boolean;
41
- /** Decide whether installed providers must activate for a targeted invocation or complete command discovery. */
42
- declare function discoveryNeedsActivationForProbe(discovery:ExtensionDiscoveryResult,probe:RuntimeExtensionActivationProbe):boolean;
43
- /** Build a deterministic activation scope; completion and unconstrained discovery include every installed command provider. */
44
- declare function buildRuntimeExtensionActivationScope(probe:RuntimeExtensionActivationProbe):string;
45
- /** Create the loader predicate for extensions needed by the current invocation. */
46
- declare function buildRuntimeExtensionFilterForProbe(probe:RuntimeExtensionActivationProbe):((extension:ExtensionDiscoveryResult["effective"][number]) => boolean) | undefined;
47
- /** Build an activation probe from bootstrap argv before Commander registration. */
48
- declare function buildBootstrapActivationProbe(invocationArgv:string[]):RuntimeExtensionActivationProbe;
49
- /** Collect the command arguments retained by Commander for an activation probe. */
50
- declare function collectParsedActivationCommandArgs(command:Command):string[];
51
- export { RuntimeExtensionActivationProbe,activationCommandMatchesProbe,buildBootstrapActivationProbe,buildRuntimeExtensionActivationScope,buildRuntimeExtensionFilterForProbe,collectActivationCommandCandidates,collectLeadingCommandArgs,collectParsedActivationCommandArgs,commandPathNeedsSearchExtensions,commandPathNeedsTemplateExtensions,discoveryNeedsActivationForProbe,extensionActivationCommands,extensionCapabilities,extensionNeedsActivationForProbe,extensionProvidesTemplatesRuntime,hasAnyCapability,hasGlobalExtensionContributions,matchesStaticExtensionCommand,probeUsesAnyFlag,resolveStaticExtensionActivationDecision };
@@ -1,15 +0,0 @@
1
- /**
2
- * @module cli/runtime/field-route-retry
3
- *
4
- * Turns a refused `--field <key>=<value>` assignment for a project-schema key
5
- * into the executable retry that uses the key's declared flag (pm-wftvem). The
6
- * repair is a minimal edit of the caller's own invocation: every other token,
7
- * including tracker scope and output controls, stays where it was.
8
- */
9
- import type { PmCliErrorRecoveryPayload } from "../../sdk/runtime-primitives.js";
10
- /**
11
- * Attach an executable retry to a project-schema field refusal when exactly
12
- * one `--field` assignment names the refused key; otherwise keep the
13
- * producer's recovery unchanged rather than guess.
14
- */
15
- export declare function repairSchemaFieldRecovery(argv:readonly string[],code:string | undefined,field:string | undefined,recovery:PmCliErrorRecoveryPayload | undefined):PmCliErrorRecoveryPayload | undefined;
@@ -1,43 +0,0 @@
1
- /**
2
- * @module cli/runtime/invocation-options
3
- * Preserves global-option boundaries, contributed flag schemas and read-output provenance.
4
- */
5
- import { Command } from "commander";
6
- import { type FlagDefinition,type GlobalOptions,createEmptyExtensionRegistrationRegistry } from "../../sdk/runtime-primitives.js";
7
- import { type ExtensionCommandHelpDescriptor } from "../extension-command-help.js";
8
- import { type LooseCommandFlagDefinition } from "../extension-command-options.js";
9
- /** Carry private read-output provenance across Commander's option rebuilds. */
10
- declare function copyReadOutputInvocationProvenance(source:object,target:object):void;
11
- /** Record the exact compatibility flags present in the raw CLI invocation. */
12
- declare function recordCliReadOutputInvocationProvenance(actionCommand:Command,commandPath:string,commandOptions:Record<string,unknown>):void;
13
- /**
14
- * Hand canonical `--output-include` projection modes to the command that owns
15
- * them, leaving only field selectors for post-execution projection.
16
- *
17
- * `--output-include brief` must be the exact behaviour of `--brief`, which the
18
- * emitted migration hint promises; a mode can only be honoured before the
19
- * command computes its rows, so it cannot be resolved by the output layer.
20
- */
21
- declare function forwardReadOutputIncludeModes(actionCommand:Command,commandPath:string,globalOptions:GlobalOptions,commandOptions:Record<string,unknown>):void;
22
- /** Separate handler options from global controls, then validate and coerce contributed flags against the command's declared schema. */
23
- declare function extractCommandScopedOptions(command:Command,commandArgs:string[],extensionFlagDefinitions?:LooseCommandFlagDefinition[]):Record<string,unknown>;
24
- /** Join contributed flags by stable operation identity so canonical and compatibility command paths share the same schema. */
25
- declare function collectExtensionFlagDefinitionsForCommand(registrations:ReturnType<typeof createEmptyExtensionRegistrationRegistry>,commandPath:string):FlagDefinition[];
26
- /** Collect contributed flag definitions for the command paths traversed by this invocation. */
27
- declare function collectExtensionFlagDefinitionsForInvocation(registrations:ReturnType<typeof createEmptyExtensionRegistrationRegistry>,commandPath:string,commandArgs:string[]):FlagDefinition[];
28
- /** Read contributed positional argument definitions for a dynamic command. */
29
- declare function dynamicCommandArguments(descriptor:ExtensionCommandHelpDescriptor):ExtensionCommandHelpDescriptor["arguments"];
30
- /**
31
- * Reports whether {@link commandPath} is the generated command path of a
32
- * registered importer (`<name> import`) or exporter (`<name> export`). Importers
33
- * and exporters read/write a source/destination via flags and take no positional
34
- * operand, so an unexpected positional is a usage error; free-form
35
- * `registerCommand` commands intentionally accept positionals via `context.args`
36
- * and are excluded.
37
- */
38
- declare function isImporterOrExporterCommandPath(registrations:ReturnType<typeof createEmptyExtensionRegistrationRegistry> | null,commandPath:string):boolean;
39
- /** Reject missing required or excess positional arguments before invoking a contributed handler. */
40
- declare function validateDynamicExtensionCommandArgs(descriptor:ExtensionCommandHelpDescriptor,args:string[]):void;
41
- /** Validate contributed arguments and options together before extension dispatch. */
42
- declare function validateDynamicExtensionCommandInvocation(descriptor:ExtensionCommandHelpDescriptor | undefined,args:string[],options:Record<string,unknown>,extensionFlagDefinitions:LooseCommandFlagDefinition[]):void;
43
- export { collectExtensionFlagDefinitionsForCommand,collectExtensionFlagDefinitionsForInvocation,copyReadOutputInvocationProvenance,dynamicCommandArguments,extractCommandScopedOptions,forwardReadOutputIncludeModes,isImporterOrExporterCommandPath,recordCliReadOutputInvocationProvenance,validateDynamicExtensionCommandArgs,validateDynamicExtensionCommandInvocation };
@@ -1,9 +0,0 @@
1
- /**
2
- * @module cli/runtime/projection-retry
3
- *
4
- * Repairs read projections as minimal edits to the original invocation, keeping
5
- * tracker scope, operands, output encoding and unrelated controls intact.
6
- */
7
- import type { PmCliErrorRecoveryPayload } from "../../sdk/runtime-primitives.js";
8
- /** Preserve the original read invocation when correcting known projection refusals. */
9
- export declare function repairProjectionRecovery(argv:readonly string[],code:string | undefined,recovery:PmCliErrorRecoveryPayload | undefined):PmCliErrorRecoveryPayload | undefined;
@@ -1,35 +0,0 @@
1
- /**
2
- * @module cli/runtime/selection
3
- * Selects core registration families and refuses implicit corrections of mutating flags.
4
- */
5
- import { Command } from "commander";
6
- import { normalizeBootstrapInvocation } from "../bootstrap-args.js";
7
- /** Recognize the read-only package inventory before extension bootstrap. */
8
- declare function isStaticExtensionInventoryInvocation(invocationArgv:string[]):boolean;
9
- /** Protect literal preview candidates in the item namespace until the real parser settles the selected action; host-owned global grammar also captures the tracker roots. */
10
- declare function resolveStructuredMutationPreviewInvocation(invocationArgv:string[]):{
11
- path:string | undefined;
12
- } | undefined;
13
- /** Core read command names used to select the list/query registration family. */
14
- declare const LIST_QUERY_COMMAND_NAMES:Set<string>;
15
- /** Registration-family switches computed from one CLI invocation. */
16
- interface CoreCommandRegistrationSelection {
17
- setup:boolean;
18
- listQuery:boolean;
19
- mutation:boolean;
20
- operation:boolean;
21
- targetCommandName?:string;
22
- }
23
- /** Recognize version requests before loading command families. */
24
- declare function invocationRequestsVersion(invocationArgv:string[]):boolean;
25
- /** Load only the selected core registration family, retaining complete discovery for help and unknown paths. */
26
- declare function resolveCoreCommandRegistrationSelection(invocationArgv:string[]):CoreCommandRegistrationSelection;
27
- /** Decide whether the invocation needs the expanded help text attached to registered commands. */
28
- declare function shouldAttachRichHelpTextForInvocation(invocationArgv:string[]):boolean;
29
- /** Decide whether extension command paths must be registered for this invocation. */
30
- declare function shouldRegisterDynamicExtensionPaths(_rootProgram:Command,invocationArgv:string[]):boolean;
31
- /** Decide whether the invocation needs flags supplied by the runtime item schema. */
32
- declare function shouldRegisterRuntimeSchemaFlags(invocationArgv:string[]):boolean;
33
- /** Refuse unknown flags with correction guidance while requiring an explicit retry for mutations. */
34
- declare function enforceExplicitRetryForFlagTypos(bootstrapInvocation:ReturnType<typeof normalizeBootstrapInvocation>):void;
35
- export { CoreCommandRegistrationSelection,LIST_QUERY_COMMAND_NAMES,enforceExplicitRetryForFlagTypos,invocationRequestsVersion,isStaticExtensionInventoryInvocation,resolveStructuredMutationPreviewInvocation,resolveCoreCommandRegistrationSelection,shouldAttachRichHelpTextForInvocation,shouldRegisterDynamicExtensionPaths,shouldRegisterRuntimeSchemaFlags };
@@ -1,20 +0,0 @@
1
- import { type TelemetryCommandOutcome,type TelemetryCommandResolution,type TelemetryErrorCategory,type TelemetryResolutionStage } from "../../sdk/runtime-primitives.js";
2
- /** Read a string-valued field from a structured command result without coercion. */
3
- declare function readRecordString(record:Record<string,unknown> | null,...keys:string[]):string | undefined;
4
- /** Read a boolean-valued field from a structured command result without coercion. */
5
- declare function readRecordBoolean(record:Record<string,unknown> | null,...keys:string[]):boolean | undefined;
6
- /** Read a number-valued field from a structured command result without coercion. */
7
- declare function readRecordNumber(record:Record<string,unknown> | null,...keys:string[]):number | undefined;
8
- /** Accept only declared command-resolution values for telemetry receipts. */
9
- declare function normalizeTelemetryCommandResolution(value:string | undefined):TelemetryCommandResolution | undefined;
10
- /** Accept only declared resolution-stage values for telemetry receipts. */
11
- declare function normalizeTelemetryResolutionStage(value:string | undefined):TelemetryResolutionStage | undefined;
12
- /** Accept only declared error-category values for telemetry receipts. */
13
- declare function normalizeTelemetryErrorCategory(value:string | undefined):TelemetryErrorCategory | undefined;
14
- /** Derive a completion failure message from the command result and process outcome. */
15
- declare function inferPostActionFailureMessage(result:Record<string,unknown> | null):string | undefined;
16
- /** Derive the canonical completion error code from the structured result. */
17
- declare function inferPostActionErrorCode(ok:boolean,exitCode:number):string | undefined;
18
- /** Combine structured command receipts and exit state into a terminal telemetry outcome. */
19
- declare function buildPostActionTelemetryOutcome():TelemetryCommandOutcome;
20
- export { buildPostActionTelemetryOutcome,inferPostActionErrorCode,inferPostActionFailureMessage,normalizeTelemetryCommandResolution,normalizeTelemetryErrorCategory,normalizeTelemetryResolutionStage,readRecordBoolean,readRecordNumber,readRecordString };
@@ -1,17 +0,0 @@
1
- /** Options for one early CLI compatibility check and deferred dispatch. */
2
- export interface RuntimeCompatibleCliOptions {
3
- /** Version of the executable package, when its manifest was readable. */
4
- executingVersion?:string;
5
- /** Project root whose local package and lock metadata governs mutation. */
6
- projectRoot:string;
7
- /** CLI invocation arguments after the executable path. */
8
- argv:readonly string[];
9
- /** Explicit recovery override for one invocation. */
10
- allowStale:boolean;
11
- /** Deferred CLI bundle dispatch, called only after compatibility succeeds. */
12
- run:() => Promise<void>;
13
- /** Error sink used by the executable transport. */
14
- writeError:(message:string) => void;
15
- }
16
- /** Apply SDK compatibility/output policy, emitting structured read warnings only after successful dispatch. */
17
- export declare function runRuntimeCompatibleCli(options:RuntimeCompatibleCliOptions):Promise<void>;
@@ -1,4 +0,0 @@
1
- /** @module cli/schema/registration Schema command parsing and presentation over public SDK operations. */
2
- import type { Command } from "commander";
3
- /** Register schema controls in discoverable groups without changing SDK mutation semantics. */
4
- export declare function registerSchemaCommand(program:Command):void;
@@ -1,24 +0,0 @@
1
- /**
2
- * @module cli/schema-registration-helpers
3
- *
4
- * Pure parsing and typo-detection helpers shared by schema command
5
- * registration and its focused contract tests.
6
- */
7
- import { isPureSnakeCaseAlias } from "../sdk/runtime-primitives.js";
8
- /**
9
- * Return whether a token must remain on the schema-action refusal path.
10
- *
11
- * Bare custom-type shorthand is intentionally limited to PascalCase names.
12
- * Lowercase tokens occupy the action namespace, so a misspelling such as
13
- * `pm schema nonsense` cannot silently register a new type. Explicit
14
- * `pm schema add-type <name>` remains available for every valid type name.
15
- */
16
- export declare function looksLikeSchemaSubcommandTypo(value:string):boolean;
17
- /**
18
- * Parse the integer `--order` value accepted by `pm schema add-status`.
19
- *
20
- * Undefined and blank values remain absent, while explicitly invalid values
21
- * fail with the same usage error as other schema registration parsing.
22
- */
23
- export declare function parseSchemaOrderOption(raw:unknown):number | undefined;
24
- export { isPureSnakeCaseAlias };
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- export {};
@@ -1,9 +0,0 @@
1
- /**
2
- * @module cli/stats-analytics-json
3
- *
4
- * Validates the compact JSON adapter used to keep the agent-facing stats CLI
5
- * contract bounded while preserving the fully typed SDK and MCP primitives.
6
- */
7
- import type { StatsCommandOptions } from "./commands/query/stats.js";
8
- /** Parse and strictly validate the compact CLI improvement-analytics payload. */
9
- export declare function parseStatsAnalyticsJson(input:string | undefined):StatsCommandOptions;
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- export {};