@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,6 +0,0 @@
1
- /**
2
- * @module cli/commands/history/restore
3
- *
4
- * Preserves the CLI import path while the restore transaction is owned by the SDK.
5
- */
6
- export { _testOnlyRestoreCommand,runRestore,} from "../../../sdk/lifecycle/restore.js";
@@ -1,6 +0,0 @@
1
- /** @module cli/commands/lifecycle/append Compatibility export for the SDK-owned append lifecycle operation. */
2
- export * from "../../../sdk/lifecycle/append.js";
3
- import { type AppendCommandOptions } from "../../../sdk/lifecycle/append.js";
4
- import { type GlobalOptions } from "../../../sdk/runtime-primitives.js";
5
- /** Decode CLI sentinel syntax only for command-adapter calls. */
6
- export declare function runAppend(id:string,options:AppendCommandOptions,global:GlobalOptions):Promise<import("../../../sdk/lifecycle/append.js").AppendResult>;
@@ -1,2 +0,0 @@
1
- /** @module cli/commands/lifecycle/claim Compatibility export for SDK-owned ownership lifecycle operations. */
2
- export * from "../../../sdk/lifecycle/claim.js";
@@ -1,2 +0,0 @@
1
- /** @module cli/commands/lifecycle/close-many Compatibility export for the SDK-owned bulk close operation. */
2
- export * from "../../../sdk/lifecycle/close-many.js";
@@ -1,6 +0,0 @@
1
- /**
2
- * @module cli/commands/lifecycle/close
3
- *
4
- * Compatibility presentation shim for the SDK-owned close-item operation.
5
- */
6
- export { _testOnlyCloseCommand,runClose,} from "../../../sdk/lifecycle/close.js";
@@ -1,6 +0,0 @@
1
- /**
2
- * @module cli/commands/lifecycle/copy
3
- *
4
- * Preserves the CLI import path while copy lifecycle behavior is owned by the SDK.
5
- */
6
- export { runCopy,} from "../../../sdk/lifecycle/copy.js";
@@ -1,10 +0,0 @@
1
- /**
2
- * @module cli/commands/lifecycle/create
3
- *
4
- * Compatibility export for the SDK-owned create lifecycle operation.
5
- */
6
- export * from "../../../sdk/lifecycle/create.js";
7
- import { type CreateCommandOptions } from "../../../sdk/lifecycle/create.js";
8
- import { type GlobalOptions } from "../../../sdk/runtime-primitives.js";
9
- /** Decode CLI sentinel syntax only for command-adapter calls. */
10
- export declare function runCreate(options:CreateCommandOptions,global:GlobalOptions):Promise<import("../../../sdk/lifecycle/create.js").CreateResult>;
@@ -1,6 +0,0 @@
1
- /**
2
- * @module cli/commands/lifecycle/delete
3
- *
4
- * Preserves the CLI import path while the delete transaction is owned by the SDK.
5
- */
6
- export { runDelete,} from "../../../sdk/lifecycle/delete.js";
@@ -1,6 +0,0 @@
1
- /**
2
- * @module cli/commands/lifecycle/focus
3
- *
4
- * Preserves the CLI import path while focus lifecycle behavior is owned by the SDK.
5
- */
6
- export { runFocus,} from "../../../sdk/lifecycle/focus.js";
@@ -1,9 +0,0 @@
1
- /**
2
- * @module cli/commands/lifecycle/plan
3
- *
4
- * Compatibility export for the SDK-owned planning lifecycle operation.
5
- */
6
- export * from "../../../sdk/lifecycle/plan.js";
7
- import { type PlanDispatchInput } from "../../../sdk/lifecycle/plan.js";
8
- /** Retain CLI sentinel compatibility when plans compose the SDK create operation. */
9
- export declare function runPlan(input:PlanDispatchInput):Promise<import("../../../sdk/lifecycle/plan.js").PlanCommandResult>;
@@ -1,6 +0,0 @@
1
- /** @module cli/commands/lifecycle/update-many Compatibility export for the SDK-owned bulk update operation. */
2
- export * from "../../../sdk/lifecycle/update-many.js";
3
- import { type UpdateManyCommandOptions } from "../../../sdk/lifecycle/update-many.js";
4
- import { type GlobalOptions } from "../../../sdk/runtime-primitives.js";
5
- /** Retain the CLI mutation grammar for each bulk update's shared options. */
6
- export declare function runUpdateMany(options:UpdateManyCommandOptions,global:GlobalOptions):Promise<import("../../../sdk/lifecycle/update-many.js").UpdateManyResult>;
@@ -1,10 +0,0 @@
1
- /**
2
- * @module cli/commands/lifecycle/update
3
- *
4
- * Compatibility export for the SDK-owned update lifecycle operation.
5
- */
6
- export * from "../../../sdk/lifecycle/update.js";
7
- import { type UpdateCommandOptions } from "../../../sdk/lifecycle/update.js";
8
- import { type GlobalOptions } from "../../../sdk/runtime-primitives.js";
9
- /** Decode CLI sentinel syntax only for command-adapter calls. */
10
- export declare function runUpdate(id:string,options:UpdateCommandOptions,global:GlobalOptions):Promise<import("../../../sdk/lifecycle/update.js").UpdateResult>;
@@ -1,2 +0,0 @@
1
- /** @module cli/commands/query/aggregate Compatibility export for the SDK-owned aggregate query. */
2
- export * from "../../../sdk/query/aggregate.js";
@@ -1,6 +0,0 @@
1
- /**
2
- * @module cli/commands/query/context
3
- *
4
- * Compatibility export for the SDK-owned context query operation.
5
- */
6
- export * from "../../../sdk/query/context.js";
@@ -1,6 +0,0 @@
1
- /**
2
- * @module cli/commands/query/deps
3
- *
4
- * Re-exports the public SDK dependency-graph primitive for CLI presentation wiring.
5
- */
6
- export * from "../../../sdk/dependencies.js";
@@ -1,6 +0,0 @@
1
- /**
2
- * @module cli/commands/query/duplicates
3
- *
4
- * Compatibility export for SDK-owned duplicate-cluster discovery.
5
- */
6
- export * from "../../../sdk/duplicates.js";
@@ -1,6 +0,0 @@
1
- /**
2
- * @module cli/commands/query/eval
3
- *
4
- * Compatibility export for the SDK-owned search evaluation harness.
5
- */
6
- export * from "../../../sdk/eval.js";
@@ -1,6 +0,0 @@
1
- /**
2
- * @module cli/commands/query/get
3
- *
4
- * Preserves the CLI import path while item retrieval is owned by the SDK.
5
- */
6
- export { _testOnlyGetCommand,runGet,} from "../../../sdk/query/get.js";
@@ -1,7 +0,0 @@
1
- /**
2
- * @module cli/commands/query/graph
3
- *
4
- * Re-exports the public SDK workspace graph-query primitives for CLI
5
- * presentation wiring.
6
- */
7
- export * from "../../../sdk/graph/run.js";
@@ -1,6 +0,0 @@
1
- /**
2
- * @module cli/commands/query/list
3
- *
4
- * Compatibility export for the SDK-owned list/query implementation.
5
- */
6
- export * from "../../../sdk/query/list.js";
@@ -1,6 +0,0 @@
1
- /**
2
- * @module cli/commands/query/next
3
- *
4
- * Compatibility export for the SDK-owned next-work query operation.
5
- */
6
- export * from "../../../sdk/query/next.js";
@@ -1,6 +0,0 @@
1
- /**
2
- * @module cli/commands/query/search
3
- *
4
- * Compatibility export for the SDK-owned search implementation.
5
- */
6
- export * from "../../../sdk/query/search.js";
@@ -1,6 +0,0 @@
1
- /**
2
- * @module cli/commands/query/stats
3
- *
4
- * Compatibility export for SDK-owned tracker statistics.
5
- */
6
- export * from "../../../sdk/stats.js";
@@ -1,6 +0,0 @@
1
- /**
2
- * @module cli/commands/test/test-all
3
- *
4
- * Compatibility export for SDK-owned batch linked-test orchestration.
5
- */
6
- export * from "../../../sdk/test/batch.js";
@@ -1,6 +0,0 @@
1
- /**
2
- * @module cli/commands/test/test-runs
3
- *
4
- * Compatibility export for SDK-owned background test-run lifecycle primitives.
5
- */
6
- export * from "../../../sdk/test/runs.js";
@@ -1,6 +0,0 @@
1
- /**
2
- * @module cli/commands/test/test
3
- *
4
- * Compatibility export for SDK-owned linked-test execution primitives.
5
- */
6
- export * from "../../../sdk/test/execution.js";
@@ -1,6 +0,0 @@
1
- /**
2
- * @module cli/commands/workspace/config
3
- *
4
- * Preserves the CLI compatibility import path for SDK-owned configuration primitives.
5
- */
6
- export * from "../../../sdk/config.js";
@@ -1,2 +0,0 @@
1
- /** @module cli/commands/workspace/contracts Compatibility export for SDK-owned runtime contracts. */
2
- export * from "../../../sdk/cli-contracts/runtime-contracts.js";
@@ -1,6 +0,0 @@
1
- /**
2
- * @module cli/commands/workspace/init
3
- *
4
- * Preserves the CLI compatibility import path for SDK-owned initialization primitives.
5
- */
6
- export * from "../../../sdk/init.js";
@@ -1,8 +0,0 @@
1
- /**
2
- * @module cli/commands/workspace/merge
3
- *
4
- * Presentation compatibility shim for the public SDK tracker merge
5
- * primitives. The SDK owns the three-way merge semantics, the git merge
6
- * driver runner, and the repository merge-configuration installer.
7
- */
8
- export { MERGE_DRIVER_ARTIFACT_VALUES,runMergeDriver,runMergeInstall,runMergeReceiptEvidenceReport,runMergeReconcile,} from "../../../sdk/merge/index.js";
@@ -1,6 +0,0 @@
1
- /**
2
- * @module cli/commands/workspace/profile
3
- *
4
- * Preserves the CLI compatibility import path for SDK-owned project profile primitives.
5
- */
6
- export * from "../../../sdk/profile.js";
@@ -1,7 +0,0 @@
1
- /**
2
- * @module cli/commands/workspace/schema
3
- *
4
- * Preserves the CLI command-module contract while schema behavior, result
5
- * types, and rendering helpers are owned by the public SDK module.
6
- */
7
- export { SCHEMA_SUBCOMMANDS,_testOnlySchemaCommand,formatSchemaAddFieldHuman,formatSchemaAddStatusHuman,formatSchemaAddTypeHuman,formatSchemaApplyPresetHuman,formatSchemaEvolutionMigrationHuman,formatSchemaInferTypesHuman,formatSchemaListFieldsHuman,formatSchemaListHuman,formatSchemaRemoveFieldHuman,formatSchemaRemoveStatusHuman,formatSchemaRemoveTypeHuman,formatSchemaShowFieldHuman,formatSchemaShowHuman,formatSchemaShowStatusHuman,runSchemaAddField,runSchemaAddStatus,runSchemaAddType,runSchemaApplyPreset,runSchemaEvolutionMigration,runSchemaInferTypes,runSchemaList,runSchemaListFields,runSchemaRemoveField,runSchemaRemoveStatus,runSchemaRemoveType,runSchemaShow,runSchemaShowField,runSchemaShowStatus,runWorkflowPolicyAction,} from "../../../sdk/schema.js";
@@ -1,2 +0,0 @@
1
- /** @module cli/commands/workspace/upgrade Compatibility export for SDK-owned upgrade governance. */
2
- export * from "../../../sdk/governance/upgrade.js";
@@ -1,2 +0,0 @@
1
- /** Load active-package context intents only when an invocation can consume them. */
2
- export declare function loadContextIntentSnapshotForInvocation<Snapshot>(invocationArgv:string[],pmRoot:string,noExtensions:boolean,loadSnapshot:(root:string) => Promise<Snapshot | null>):Promise<Snapshot | null>;
@@ -1,2 +0,0 @@
1
- /** Replace a description stdin sentinel with the complete standard-input payload. */
2
- export declare function resolveDescriptionStdin(options:Record<string,unknown>):Promise<void>;
@@ -1,276 +0,0 @@
1
- import { type PmCliErrorDetails,type PmCliErrorDetailsOmission } from "../sdk/errors.js";
2
- import { type PmCliErrorContext,type PmCliErrorRecoveryPayload } from "../sdk/runtime-primitives.js";
3
- import { type PmDiagnosticOutputReceipt,type PmProjectedDiagnostic } from "../sdk/cli-contracts/agent-output-contracts.js";
4
- interface GuidanceMessage {
5
- sideEffects?:PmCliErrorContext["side_effects"];
6
- changed?:false;
7
- policyViolations?:PmCliErrorContext["policy_violations"];
8
- policyViolationCount?:number;
9
- itemId?:string;
10
- transactionOperation?:PmCliErrorContext["transaction_operation"];
11
- /** Bounded tracker-relative preview refusal coordinate. */
12
- previewStorage?:PmCliErrorContext["preview_storage"];
13
- tombstone?:PmCliErrorContext["tombstone"];
14
- /** Lease a refused lock_lost commit held. */
15
- lease?:PmCliErrorContext["lease"];
16
- /** Lock generation observed at a refused lock_lost commit. */
17
- currentOwner?:PmCliErrorContext["current_owner"];
18
- /** Principal holding the item behind an already_claimed_by refusal. */
19
- claimedBy?:string;
20
- /** When that holder took the item; null when history was silent. */
21
- claimedAt?:string | null;
22
- /** Whether the holder arrived through a claim or an assignment. */
23
- claimSource?:PmCliErrorContext["claim_source"];
24
- /** Revision a refused compare-and-set write expected. */
25
- expectedRevision?:PmCliErrorContext["expected_revision"];
26
- /** Revision a refused compare-and-set write found. */
27
- currentRevision?:PmCliErrorContext["current_revision"];
28
- code:string;
29
- type:string;
30
- title:string;
31
- happened:string;
32
- required:string;
33
- why?:string;
34
- examples?:string[];
35
- nextSteps?:string[];
36
- verificationErrors?:string[];
37
- flag?:string;
38
- value?:string;
39
- unmatchedSelectors?:NonNullable<PmCliErrorContext["unmatched_selectors"]>;
40
- availableDependencies?:NonNullable<PmCliErrorContext["available_dependencies"]>;
41
- recovery?:PmCliErrorRecoveryPayload;
42
- /** Producer-owned diagnostics admitted within the declared ceiling. */
43
- details?:PmCliErrorDetails;
44
- /** Receipt replacing producer diagnostics that could not be rendered. */
45
- detailsOmitted?:PmCliErrorDetailsOmission;
46
- }
47
- /** Compact refusal identity embedded in every structured error envelope. */
48
- export interface PmRefusalEnvelope {
49
- /** Command, flag, or missing operand that rejected the invocation. */
50
- surface:string;
51
- /** Supplied scalar rejected by a closed domain, when available. */
52
- rejected_value?:string;
53
- /** Complete legal domain advertised by the refusal, when applicable. */
54
- legal_domain?:string[];
55
- /** Required metadata paths from the displayed policy violations. */
56
- missing_fields?:string[];
57
- /** Policy identity, rule, rationale and missing fields, capped at three policies. */
58
- policies?:PmCliErrorContext["policy_violations"];
59
- /** Total violated policies, including any omitted from policies. */
60
- policy_violation_count?:number;
61
- /** Process exit code paired with the refusal. */
62
- exit_code:number;
63
- }
64
- /** Structured preflight advisories retained alongside a machine-readable outcome. */
65
- export interface PreflightWarningDiagnostics {
66
- /** Stable advisory codes emitted before command execution. */
67
- warnings?:string[];
68
- /** Additional actionable guidance that accompanies an advisory code. */
69
- warning_details?:Array<{
70
- /** Stable code identifying the advisory. */
71
- code:string;
72
- /** Human-readable remediation retained for this code. */
73
- message:string;
74
- }>;
75
- }
76
- /** Structured refusal fields shared by the JSON envelope and the error classification. */
77
- export interface StructuredRefusalDiagnostics {
78
- /** Completed durable writes, with paths relative to the selected tracker. */
79
- side_effects?:PmCliErrorContext["side_effects"];
80
- /** Verified admission refusal before any mutation. */
81
- changed?:false;
82
- /** Ordered mutation that failed semantic preview validation. */
83
- transaction_operation?:PmCliErrorContext["transaction_operation"];
84
- /** Bounded tracker-relative preview refusal coordinate. */
85
- preview_storage?:PmCliErrorContext["preview_storage"];
86
- /** Exact item identity attached to a storage diagnostic. */
87
- item_id?:string;
88
- /** Verified retained deletion and its recoverable version. */
89
- tombstone?:PmCliErrorContext["tombstone"];
90
- /** Lease a refused lock_lost commit held. */
91
- lease?:PmCliErrorContext["lease"];
92
- /** Lock generation observed at a refused lock_lost commit, or null when none exists. */
93
- current_owner?:PmCliErrorContext["current_owner"];
94
- /** Principal holding the item behind an already_claimed_by refusal. */
95
- claimed_by?:string;
96
- /** When that holder took the item, or null when history was silent. */
97
- claimed_at?:string | null;
98
- /** Whether the holder arrived through an explicit claim or a metadata assignment. */
99
- claim_source?:PmCliErrorContext["claim_source"];
100
- /** Revision a refused compare-and-set write expected, or null when it required absence. */
101
- expected_revision?:PmCliErrorContext["expected_revision"];
102
- /** Revision a refused compare-and-set write found, or null when the target was absent. */
103
- current_revision?:PmCliErrorContext["current_revision"];
104
- /** Schema type that determines the shape and validation rules for this value. */
105
- type:string;
106
- /** Value that configures or reports code for this contract. */
107
- code:string;
108
- /** Value that configures or reports title for this contract. */
109
- title:string;
110
- /** Value that configures or reports detail for this contract. */
111
- detail:string;
112
- /** Value that configures or reports required for this contract. */
113
- required:string;
114
- }
115
- /** Documents the json error envelope payload exchanged by command, SDK, and package integrations. */
116
- export interface JsonErrorEnvelope extends PreflightWarningDiagnostics,StructuredRefusalDiagnostics {
117
- /** Value that configures or reports exit code for this contract. */
118
- exit_code:number;
119
- /** Value that configures or reports why for this contract. */
120
- why?:string;
121
- /** Value that configures or reports examples for this contract. */
122
- examples?:string[];
123
- /** Value that configures or reports next steps for this contract. */
124
- next_steps?:string[];
125
- /** Exact integrity verifier findings that caused the operation to refuse. */
126
- verification_errors?:string[];
127
- /** CLI flag whose supplied value violated a shared mutation grammar. */
128
- flag?:string;
129
- /** Supplied scalar value that violated a shared mutation grammar. */
130
- value?:string;
131
- /** Dependency selectors that matched no stored edge. */
132
- unmatched_selectors?:NonNullable<PmCliErrorContext["unmatched_selectors"]>;
133
- /** Compact stored dependency identities available when a removal failed. */
134
- available_dependencies?:NonNullable<PmCliErrorContext["available_dependencies"]>;
135
- /** Value that configures or reports recovery for this contract. */
136
- recovery?:PmCliErrorRecoveryPayload;
137
- /** Producer-owned structured diagnostics, rendered whole within their byte ceiling (GH-1631). */
138
- details?:PmCliErrorDetails;
139
- /** Receipt that replaces producer diagnostics the host could not render. */
140
- details_omitted?:PmCliErrorDetailsOmission;
141
- /** Stable compact identity of the failing surface and legal recovery domain. */
142
- refusal:PmRefusalEnvelope;
143
- /** Binding output-budget receipt for this diagnostic. */
144
- diagnostic_output?:PmDiagnosticOutputReceipt;
145
- }
146
- /** Error envelope after deterministic budget projection. */
147
- export type ProjectedJsonErrorEnvelope = PmProjectedDiagnostic<JsonErrorEnvelope>;
148
- /**
149
- * Compact an error envelope to fields that change the caller's next action:
150
- * the duplicated title, generic `required`/`why`/examples and the invocation
151
- * echo go; code-specific rationale, examples, recovery and typed holder
152
- * evidence stay (GH-1610).
153
- */
154
- export declare function projectLeanErrorEnvelope(envelope:ProjectedJsonErrorEnvelope):ProjectedJsonErrorEnvelope;
155
- /** Documents the error classification payload exchanged by command, SDK, and package integrations. */
156
- export interface ErrorClassification extends StructuredRefusalDiagnostics {
157
- /** Value that configures or reports why for this contract. */
158
- why?:string;
159
- /** Value that configures or reports examples for this contract. */
160
- examples?:string[];
161
- /** Value that configures or reports next steps for this contract. */
162
- next_steps?:string[];
163
- /** Exact integrity verifier findings that caused the operation to refuse. */
164
- verification_errors?:string[];
165
- /** CLI flag whose supplied value violated a shared mutation grammar. */
166
- flag?:string;
167
- /** Supplied scalar value that violated a shared mutation grammar. */
168
- value?:string;
169
- /** Dependency selectors that matched no stored edge. */
170
- unmatched_selectors?:NonNullable<PmCliErrorContext["unmatched_selectors"]>;
171
- /** Compact stored dependency identities available when a removal failed. */
172
- available_dependencies?:NonNullable<PmCliErrorContext["available_dependencies"]>;
173
- /** Value that configures or reports recovery for this contract. */
174
- recovery?:PmCliErrorRecoveryPayload;
175
- }
176
- /** Documents the commander guidance context payload exchanged by command, SDK, and package integrations. */
177
- export interface CommanderGuidanceContext {
178
- /** Value that configures or reports unknown command examples for this contract. */
179
- unknownCommandExamples?:string[];
180
- /** Value that configures or reports unknown command next steps for this contract. */
181
- unknownCommandNextSteps?:string[];
182
- /** Value that configures or reports attempted command for this contract. */
183
- attemptedCommand?:string;
184
- /** Value that configures or reports normalized invocation args for this contract. */
185
- normalizedInvocationArgs?:string[];
186
- /** Value that configures or reports provided option flags for this contract. */
187
- providedOptionFlags?:string[];
188
- /** Value that configures or reports unknown option suggestions for this contract. */
189
- unknownOptionSuggestions?:string[];
190
- /** Value that configures or reports unknown option other commands for this contract. */
191
- unknownOptionOtherCommands?:string[];
192
- /** Complete number of commands accepting the unknown option. */
193
- unknownOptionOtherCommandsTotal?:number;
194
- /** Whether the structured command candidates reached their own ceiling. */
195
- unknownOptionOtherCommandsTruncated?:boolean;
196
- /** Declared lexicon membership of the rejected option spelling. */
197
- unknownOptionScope?:PmCliErrorRecoveryPayload["option_scope"];
198
- /** Command family whose positional subcommand was split into invalid tokens. */
199
- unknownSubcommandPath?:string;
200
- /** Rejected positional subcommand token or token sequence. */
201
- unknownSubcommandToken?:string;
202
- /** Complete declared subcommand vocabulary for the command family. */
203
- unknownSubcommandAllowedValues?:string[];
204
- /** Value that configures or reports suggested retry command for this contract. */
205
- suggestedRetryCommand?:string;
206
- /** Tokenized inspection retry that preserves a refusal without executing the guessed operation. */
207
- suggestedRetryArgs?:string[];
208
- /** Existing item id verified against the selected tracker for collection recovery. */
209
- verifiedCollectionItemId?:string;
210
- /** Installed extensions whose activation failed for this invocation. */
211
- failedExtensions?:Array<{
212
- name:string;
213
- }>;
214
- }
215
- interface PackageCommandHint {
216
- /** Published package name shown to the user (e.g. @unbrained/pm-guide-shell). */
217
- packageName:string;
218
- /** Exact CLI command that installs the bundled package by its install alias. */
219
- installCommand:string;
220
- }
221
- declare function resolveKnownPackageCommandHint(commandToken:string):PackageCommandHint | undefined;
222
- declare function renderList(title:string,entries:string[]):string[];
223
- /** Whitelist valid recovery fields before exposing them in public CLI diagnostics. */
224
- declare function normalizeRecoveryPayload(payload:PmCliErrorRecoveryPayload | undefined):PmCliErrorRecoveryPayload | undefined;
225
- /** Presentation controls for text refusals. */
226
- export interface RenderGuidanceOptions {
227
- /** Omit constant boilerplate and the invocation echo; keep code-specific recovery (GH-1610). */
228
- lean?:boolean;
229
- }
230
- /** Implements render guidance message for the public runtime surface of this module. */
231
- export declare function renderGuidanceMessage(message:GuidanceMessage,options?:RenderGuidanceOptions):string;
232
- /** Project guidance into JSON, preserving no-write evidence only when explicitly verified. */
233
- declare function guidanceToJsonEnvelope(message:GuidanceMessage,exitCode:number):JsonErrorEnvelope;
234
- /** Classify guidance with the same optional refusal evidence as the JSON envelope. */
235
- declare function guidanceToClassification(message:GuidanceMessage):ErrorClassification;
236
- declare function dedupeStrings(values:string[]):string[];
237
- declare function buildFallbackTitleFromMessage(message:string):string | undefined;
238
- /** Merge SDK error evidence with CLI fallback guidance without discarding typed recovery or policy diagnostics. */
239
- /** Merge typed SDK context into guidance without inferring mutation outcomes. */
240
- declare function applyPmCliErrorContext(guidance:GuidanceMessage,rawMessage:string,context:PmCliErrorContext | undefined):GuidanceMessage;
241
- declare function commandExampleForRequiredOption(commandName:string | undefined,optionFlag:string,allowedTypes:string):string[];
242
- declare function buildCommanderRecoveryPayload(context:CommanderGuidanceContext | undefined,overrides?:Partial<PmCliErrorRecoveryPayload>):PmCliErrorRecoveryPayload | undefined;
243
- declare function appendIfMissing(entries:string[],value:string | undefined):string[];
244
- /** Synthesize a copy-pasteable retry for the unquoted linked-test value shape `pm test <id> --add command npm test -- parser` by re-joining the shell-split value tokens into the documented quoted `key=value` form. Only fires when the item id already precedes the flag (so trailing tokens unambiguously belong to the value) and the token after `--add`/`--remove` is an entry-identity key. */
245
- export declare function buildLinkedTestQuotedRetryCommand(argv:string[] | undefined):string | undefined;
246
- /** Render concise initialization recovery or the bounded diagnostic for other failures. */
247
- export declare function formatPmCliErrorForDisplay(rawMessage:string,context?:PmCliErrorContext,options?:RenderGuidanceOptions):string;
248
- /** Implements classify pm cli error for the public runtime surface of this module. */
249
- export declare function classifyPmCliError(rawMessage:string,context?:PmCliErrorContext):ErrorClassification;
250
- /** Implements format pm cli error for json for the public runtime surface of this module. */
251
- export declare function formatPmCliErrorForJson(rawMessage:string,exitCode:number,context?:PmCliErrorContext):ProjectedJsonErrorEnvelope;
252
- /** Implements format commander error for display for the public runtime surface of this module. */
253
- export declare function formatCommanderErrorForDisplay(rawMessage:string,commandName:string | undefined,allowedTypes:string,context?:CommanderGuidanceContext,options?:RenderGuidanceOptions):string;
254
- /** Implements classify commander error for the public runtime surface of this module. */
255
- export declare function classifyCommanderError(rawMessage:string,commandName:string | undefined,allowedTypes:string,context?:CommanderGuidanceContext):ErrorClassification;
256
- /** Implements format commander error for json for the public runtime surface of this module. */
257
- export declare function formatCommanderErrorForJson(rawMessage:string,commandName:string | undefined,allowedTypes:string,exitCode:number,context?:CommanderGuidanceContext):ProjectedJsonErrorEnvelope;
258
- /** Implements format unknown error for json for the public runtime surface of this module. */
259
- export declare function formatUnknownErrorForJson(rawMessage:string,exitCode:number):ProjectedJsonErrorEnvelope;
260
- /** Implements classify unknown error for the public runtime surface of this module. */
261
- export declare function classifyUnknownError(rawMessage:string):ErrorClassification;
262
- /** Public contract for test only, shared by SDK and presentation-layer consumers. */
263
- export declare const _testOnly:{
264
- applyPmCliErrorContext:typeof applyPmCliErrorContext;
265
- appendIfMissing:typeof appendIfMissing;
266
- buildCommanderRecoveryPayload:typeof buildCommanderRecoveryPayload;
267
- buildFallbackTitleFromMessage:typeof buildFallbackTitleFromMessage;
268
- commandExampleForRequiredOption:typeof commandExampleForRequiredOption;
269
- dedupeStrings:typeof dedupeStrings;
270
- guidanceToClassification:typeof guidanceToClassification;
271
- guidanceToJsonEnvelope:typeof guidanceToJsonEnvelope;
272
- normalizeRecoveryPayload:typeof normalizeRecoveryPayload;
273
- renderList:typeof renderList;
274
- resolveKnownPackageCommandHint:typeof resolveKnownPackageCommandHint;
275
- };
276
- export {};
@@ -1,55 +0,0 @@
1
- import type { Command } from "commander";
2
- import { type ItemRevisionScope } from "../sdk/lifecycle/item-revision.js";
3
- /** One view of the invocation an extension parser or preflight override produced. */
4
- export interface InvocationStage {
5
- /** Command positionals as this stage sees them. */
6
- args:readonly string[];
7
- /** Tracker path option as this stage sees it (undefined for the default tracker). */
8
- path:string | undefined;
9
- }
10
- /**
11
- * Whether extension overrides rewrote the invocation's tracker or arguments.
12
- * Final dispatch, the injected extension SDK client and the preAction hook do
13
- * not all see the same rewritten view, so a guard cannot prove which item a
14
- * rewritten invocation writes.
15
- */
16
- export declare function invocationRewritten(initial:InvocationStage,stages:readonly InvocationStage[]):boolean;
17
- /**
18
- * Bind `--expect-hash` tokens to canonical item ids before the command runs.
19
- * Tokens without an enclosing invocation scope (a command dispatched outside
20
- * {@link parseWithInvocationRevisionScope}) are refused rather than dropped.
21
- */
22
- export declare function bindInvocationExpectedRevisions(params:{
23
- command:Command;
24
- commandPath:string;
25
- commandArgs:readonly string[];
26
- expectHash:readonly string[] | undefined;
27
- pmRoot:string;
28
- /** Parsed command options, consulted for modes the guard cannot cover. */
29
- commandOptions?:Record<string,unknown>;
30
- /** Whether an extension parser or preflight override rewrote the tracker or arguments. */
31
- rewritten?:boolean;
32
- }):Promise<void>;
33
- /**
34
- * Refuse when a final-dispatch parser pass rewrites a guarded invocation. Commander
35
- * dispatch reruns extension parsers after preAction bound the guard to the typed
36
- * view, so each pass must keep that view's tracker and arguments, and the options
37
- * it dispatches with must stay admissible (no `--background` added late).
38
- */
39
- export declare function assertGuardedDispatchUnchanged(input:InvocationStage,output:InvocationStage,options:Record<string,unknown>):void;
40
- /**
41
- * Inventory commands dispatch without lifecycle hooks and never write items, so a
42
- * guard on them is validated and refused instead of silently dropped.
43
- */
44
- export declare function refuseInventoryExpectHash(commandPath:string,expectHash:readonly string[] | undefined):void;
45
- /** Warn about each expectation whose item no locked write reached. */
46
- export declare function reportInvocationRevisionScope(scope:ItemRevisionScope):void;
47
- /** Attach bounded change evidence to a revision refusal raised by this invocation. */
48
- export declare function enrichInvocationRevisionError(scope:ItemRevisionScope,error:unknown):Promise<unknown>;
49
- /**
50
- * Run one invocation's parse inside a fresh expected-revision scope: `run`
51
- * receives a wrapper for the innermost parse call, so the scope sits inside any
52
- * caller-owned async contexts. Refusals gain change evidence; a successful
53
- * parse reports expectations no write reached.
54
- */
55
- export declare function parseWithInvocationRevisionScope(run:(parse:<T>(operation:() => Promise<T>) => Promise<T>) => Promise<unknown>):Promise<void>;