@unbrained/pm-cli 2026.11.5 → 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 (349) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/CHANGELOG.md +20 -0
  3. package/dist/cli/expected-revisions.js +1 -1
  4. package/dist/cli/main.js +1 -1
  5. package/dist/cli/register-operations.js +1 -1
  6. package/dist/cli/runtime/close-fields-retry.js +2 -0
  7. package/dist/cli-bundle/bundle-manifest.json +1 -1
  8. package/dist/cli-bundle/chunks/chunk-3DI6CEF3.js +3 -0
  9. package/dist/cli-bundle/chunks/{chunk-6VRX2CM7.js → chunk-4PPWVIIT.js} +2 -2
  10. package/dist/cli-bundle/chunks/{chunk-7ZRCYESH.js → chunk-5KHLV7JU.js} +47 -47
  11. package/dist/cli-bundle/chunks/{chunk-JI2GDE4I.js → chunk-BQ5O3CBF.js} +51 -51
  12. package/dist/cli-bundle/chunks/{chunk-F6NDMKZ4.js → chunk-COKKWMSC.js} +2 -2
  13. package/dist/cli-bundle/chunks/chunk-D53G3NOE.js +6 -0
  14. package/dist/cli-bundle/chunks/{chunk-LS3GI3H4.js → chunk-ETHAZC3F.js} +2 -2
  15. package/dist/cli-bundle/chunks/chunk-F3B2ULHB.js +122 -0
  16. package/dist/cli-bundle/chunks/chunk-JZWFZH2K.js +2 -0
  17. package/dist/cli-bundle/chunks/{chunk-335BZ75D.js → chunk-KPAVZILX.js} +2 -2
  18. package/dist/cli-bundle/chunks/{chunk-OH6WQ7VT.js → chunk-MQOZNGPS.js} +2 -2
  19. package/dist/cli-bundle/chunks/chunk-O6TIOKCM.js +9 -0
  20. package/dist/cli-bundle/chunks/{chunk-XLSHFYXZ.js → chunk-OIBSKKCO.js} +2 -2
  21. package/dist/cli-bundle/chunks/{chunk-HRFGFIYU.js → chunk-OJZG7Y6S.js} +2 -2
  22. package/dist/cli-bundle/chunks/{chunk-HRCMORE7.js → chunk-QG6FLDM4.js} +2 -2
  23. package/dist/cli-bundle/chunks/{chunk-D7KYPRK4.js → chunk-RFI4O6NU.js} +2 -2
  24. package/dist/cli-bundle/chunks/{chunk-OJDMJT7Y.js → chunk-TGQPCNAD.js} +2 -2
  25. package/dist/cli-bundle/chunks/{chunk-DAX3AOFI.js → chunk-VM6OGNQC.js} +2 -2
  26. package/dist/cli-bundle/chunks/{chunk-S4LPZ4TN.js → chunk-WS2N4TQW.js} +7 -7
  27. package/dist/cli-bundle/chunks/{chunk-UEGXWXUZ.js → chunk-WXVMPLBY.js} +2 -2
  28. package/dist/cli-bundle/chunks/{chunk-2RPORE7M.js → chunk-WYIDX67P.js} +30 -30
  29. package/dist/cli-bundle/chunks/{chunk-7DEKAXVA.js → chunk-XSEDESNW.js} +2 -2
  30. package/dist/cli-bundle/chunks/item-revision-SPEKTFBB.js +2 -0
  31. package/dist/cli-bundle/chunks/item-transaction-BT55TQXE.js +2 -0
  32. package/dist/cli-bundle/chunks/{mutation-admission-INMM3HHG.js → mutation-admission-LUXUKISJ.js} +2 -2
  33. package/dist/cli-bundle/chunks/{register-list-query-5Y5JKWU5.js → register-list-query-DU4W7VJU.js} +3 -3
  34. package/dist/cli-bundle/chunks/{register-mutation-WC7OSQID.js → register-mutation-IC2C53QK.js} +2 -2
  35. package/dist/cli-bundle/chunks/register-operations-AHDWE2G3.js +2 -0
  36. package/dist/cli-bundle/chunks/{register-setup-RRFOS7IT.js → register-setup-7BGG3CI3.js} +2 -2
  37. package/dist/cli-bundle/chunks/{stage-E3MMV4TV.js → stage-S5BYWLGY.js} +2 -2
  38. package/dist/cli-bundle/focused-chunks/{chunk-CPMSL4HS.js → chunk-4EXRRSDS.js} +2 -2
  39. package/dist/cli-bundle/focused-chunks/chunk-4LDOL6U7.js +26 -0
  40. package/dist/cli-bundle/focused-chunks/chunk-A46YSPRF.js +2 -0
  41. package/dist/cli-bundle/focused-chunks/{chunk-RFTJZ5VB.js → chunk-AI2PYNFI.js} +2 -2
  42. package/dist/cli-bundle/focused-chunks/chunk-AJ2I377F.js +44 -0
  43. package/dist/cli-bundle/focused-chunks/{chunk-NQ7GYFOX.js → chunk-BIDF4KO7.js} +5 -5
  44. package/dist/cli-bundle/focused-chunks/{chunk-VWWTIX5L.js → chunk-CWFNQQZE.js} +2 -2
  45. package/dist/cli-bundle/focused-chunks/chunk-D3U7FOZR.js +2 -0
  46. package/dist/cli-bundle/focused-chunks/{chunk-F62XGAAY.js → chunk-G2VIY6XA.js} +2 -2
  47. package/dist/cli-bundle/focused-chunks/{chunk-MG7C3JUY.js → chunk-GFF6BITP.js} +2 -2
  48. package/dist/cli-bundle/focused-chunks/{chunk-LW64TINU.js → chunk-IIBWXNW3.js} +2 -2
  49. package/dist/cli-bundle/focused-chunks/{chunk-AHWJPZSJ.js → chunk-IYJRFJHT.js} +2 -2
  50. package/dist/cli-bundle/focused-chunks/{chunk-D2TBEBNW.js → chunk-J5N42SKC.js} +2 -2
  51. package/dist/cli-bundle/focused-chunks/{chunk-MC7IE7D7.js → chunk-JRJOFMI7.js} +2 -2
  52. package/dist/cli-bundle/focused-chunks/{chunk-CZM75DE3.js → chunk-KL33JMPC.js} +2 -2
  53. package/dist/cli-bundle/focused-chunks/{chunk-E56OXRYH.js → chunk-LH4C7BLB.js} +2 -2
  54. package/dist/cli-bundle/focused-chunks/{chunk-YMGB2O4E.js → chunk-LTQEYE2L.js} +2 -2
  55. package/dist/cli-bundle/focused-chunks/chunk-LTTMERPN.js +12 -0
  56. package/dist/cli-bundle/focused-chunks/{chunk-7KK66ISG.js → chunk-LW4TN5ZM.js} +2 -2
  57. package/dist/cli-bundle/focused-chunks/{chunk-XHOBYCVE.js → chunk-MESFDQ3H.js} +2 -2
  58. package/dist/cli-bundle/focused-chunks/{chunk-G4QP365K.js → chunk-MWTBAI3V.js} +2 -2
  59. package/dist/cli-bundle/focused-chunks/chunk-TWULNB3N.js +2 -0
  60. package/dist/cli-bundle/focused-chunks/{chunk-C6P6HPCX.js → chunk-XAC6NP7U.js} +2 -2
  61. package/dist/cli-bundle/focused-chunks/{chunk-GS3JC5UU.js → chunk-XG3TBYQK.js} +2 -2
  62. package/dist/cli-bundle/focused-chunks/chunk-XMZAFKVP.js +91 -0
  63. package/dist/cli-bundle/focused-chunks/item-revision-ELI6NGMY.js +2 -0
  64. package/dist/cli-bundle/focused-chunks/{item-transaction-AEAYVVHA.js → item-transaction-GUGAUY77.js} +2 -2
  65. package/dist/cli-bundle/focused-chunks/{mutation-admission-4WM7TNHZ.js → mutation-admission-54FI37AA.js} +2 -2
  66. package/dist/cli-bundle/focused-chunks/{stage-WV7QXR4C.js → stage-OHDJ43T2.js} +2 -2
  67. package/dist/cli-bundle/main.js +31 -31
  68. package/dist/cli-bundle/sdk-authoring.js +1 -1
  69. package/dist/cli-bundle/sdk-contracts.js +1 -1
  70. package/dist/cli-bundle/sdk-core.js +1 -1
  71. package/dist/cli-bundle/sdk-governance.js +1 -1
  72. package/dist/cli-bundle/sdk-graph.js +1 -1
  73. package/dist/cli-bundle/sdk-merge.js +57 -57
  74. package/dist/cli-bundle/sdk-query.js +1 -1
  75. package/dist/cli-bundle/sdk-runtime.js +1 -1
  76. package/dist/cli-bundle/sdk-testing.js +1 -1
  77. package/dist/cli-bundle/sdk.js +2 -2
  78. package/dist/core/store/item-mutation-precondition.d.ts +58 -0
  79. package/dist/core/store/item-mutation-precondition.js +1 -1
  80. package/dist/sdk/command-line.d.ts +5 -1
  81. package/dist/sdk/command-line.js +1 -1
  82. package/dist/sdk/governance/health/projection.js +1 -1
  83. package/dist/sdk/governance/health.d.ts +3 -3
  84. package/dist/sdk/governance/health.js +2 -2
  85. package/dist/sdk/lifecycle/close.js +1 -1
  86. package/dist/sdk/lifecycle/item-revision.d.ts +15 -4
  87. package/dist/sdk/lifecycle/item-revision.js +1 -1
  88. package/dist/sdk/output/list-envelope.d.ts +18 -7
  89. package/dist/sdk/output/list-envelope.js +1 -1
  90. package/dist/sdk/output-projection.js +1 -1
  91. package/dist/sdk/public-surface.json +1 -1
  92. package/dist/sdk/query/get.d.ts +16 -6
  93. package/dist/sdk/query/get.js +1 -1
  94. package/dist/sdk/query/search/response.js +1 -1
  95. package/dist/sdk/runtime.js +1 -1
  96. package/docs/CLOSE_EVIDENCE_RECOVERY.md +36 -2
  97. package/docs/COMMANDS.md +10 -1
  98. package/docs/GET_READ_EVIDENCE.md +24 -3
  99. package/docs/OUTPUT_PROJECTION_CONTRACTS.md +7 -0
  100. package/docs/RELEASING.md +41 -6
  101. package/docs/SDK.md +24 -7
  102. package/marketplace.json +1 -1
  103. package/package.json +1 -1
  104. package/packages/pm-beads/package.json +1 -1
  105. package/packages/pm-calendar/package.json +1 -1
  106. package/packages/pm-command-kit/package.json +1 -1
  107. package/packages/pm-digital-twin/package.json +1 -1
  108. package/packages/pm-governance-audit/package.json +1 -1
  109. package/packages/pm-guide-shell/package.json +1 -1
  110. package/packages/pm-kanban/package.json +1 -1
  111. package/packages/pm-lifecycle-hooks/package.json +1 -1
  112. package/packages/pm-linked-test-adapters/package.json +1 -1
  113. package/packages/pm-search-advanced/package.json +1 -1
  114. package/packages/pm-templates/package.json +1 -1
  115. package/packages/pm-todos/package.json +1 -1
  116. package/packages/pm-vcs/package.json +1 -1
  117. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
  118. package/plugins/pm-claude/package.json +1 -1
  119. package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
  120. package/plugins/pm-codex/package.json +1 -1
  121. package/plugins/pm-codex/plugin.json +1 -1
  122. package/runtime-dependencies.json +1 -1
  123. package/dist/cli/after-command-context-usage.d.ts +0 -21
  124. package/dist/cli/argv-utils.d.ts +0 -12
  125. package/dist/cli/bootstrap-args.d.ts +0 -6
  126. package/dist/cli/bundle-integrity.d.ts +0 -49
  127. package/dist/cli/command-namespaces.d.ts +0 -9
  128. package/dist/cli/commander-usage.d.ts +0 -73
  129. package/dist/cli/commands/annotations/comments.d.ts +0 -2
  130. package/dist/cli/commands/annotations/docs.d.ts +0 -6
  131. package/dist/cli/commands/annotations/files.d.ts +0 -6
  132. package/dist/cli/commands/annotations/learnings.d.ts +0 -2
  133. package/dist/cli/commands/annotations/notes.d.ts +0 -2
  134. package/dist/cli/commands/extension/describe.d.ts +0 -2
  135. package/dist/cli/commands/extension/extension.d.ts +0 -6
  136. package/dist/cli/commands/extension/scaffold.d.ts +0 -2
  137. package/dist/cli/commands/extension/shared.d.ts +0 -2
  138. package/dist/cli/commands/governance/gc.d.ts +0 -6
  139. package/dist/cli/commands/governance/health.d.ts +0 -6
  140. package/dist/cli/commands/governance/telemetry.d.ts +0 -6
  141. package/dist/cli/commands/governance/validate.d.ts +0 -9
  142. package/dist/cli/commands/history/activity.d.ts +0 -6
  143. package/dist/cli/commands/history/history-compact.d.ts +0 -7
  144. package/dist/cli/commands/history/history-redact.d.ts +0 -8
  145. package/dist/cli/commands/history/history-repair.d.ts +0 -7
  146. package/dist/cli/commands/history/history.d.ts +0 -2
  147. package/dist/cli/commands/history/restore.d.ts +0 -6
  148. package/dist/cli/commands/lifecycle/append.d.ts +0 -6
  149. package/dist/cli/commands/lifecycle/claim.d.ts +0 -2
  150. package/dist/cli/commands/lifecycle/close-many.d.ts +0 -2
  151. package/dist/cli/commands/lifecycle/close.d.ts +0 -6
  152. package/dist/cli/commands/lifecycle/copy.d.ts +0 -6
  153. package/dist/cli/commands/lifecycle/create.d.ts +0 -10
  154. package/dist/cli/commands/lifecycle/delete.d.ts +0 -6
  155. package/dist/cli/commands/lifecycle/focus.d.ts +0 -6
  156. package/dist/cli/commands/lifecycle/plan.d.ts +0 -9
  157. package/dist/cli/commands/lifecycle/update-many.d.ts +0 -6
  158. package/dist/cli/commands/lifecycle/update.d.ts +0 -10
  159. package/dist/cli/commands/query/aggregate.d.ts +0 -2
  160. package/dist/cli/commands/query/context.d.ts +0 -6
  161. package/dist/cli/commands/query/deps.d.ts +0 -6
  162. package/dist/cli/commands/query/duplicates.d.ts +0 -6
  163. package/dist/cli/commands/query/eval.d.ts +0 -6
  164. package/dist/cli/commands/query/get.d.ts +0 -6
  165. package/dist/cli/commands/query/graph.d.ts +0 -7
  166. package/dist/cli/commands/query/list.d.ts +0 -6
  167. package/dist/cli/commands/query/next.d.ts +0 -6
  168. package/dist/cli/commands/query/search.d.ts +0 -6
  169. package/dist/cli/commands/query/stats.d.ts +0 -6
  170. package/dist/cli/commands/test/test-all.d.ts +0 -6
  171. package/dist/cli/commands/test/test-runs.d.ts +0 -6
  172. package/dist/cli/commands/test/test.d.ts +0 -6
  173. package/dist/cli/commands/workspace/config.d.ts +0 -6
  174. package/dist/cli/commands/workspace/contracts.d.ts +0 -2
  175. package/dist/cli/commands/workspace/init.d.ts +0 -6
  176. package/dist/cli/commands/workspace/merge.d.ts +0 -8
  177. package/dist/cli/commands/workspace/profile.d.ts +0 -6
  178. package/dist/cli/commands/workspace/schema.d.ts +0 -7
  179. package/dist/cli/commands/workspace/upgrade.d.ts +0 -2
  180. package/dist/cli/context-intent-invocation.d.ts +0 -2
  181. package/dist/cli/description-stdin.d.ts +0 -2
  182. package/dist/cli/error-guidance.d.ts +0 -276
  183. package/dist/cli/expected-revisions.d.ts +0 -55
  184. package/dist/cli/extension-command-help.d.ts +0 -137
  185. package/dist/cli/extension-command-options.d.ts +0 -37
  186. package/dist/cli/extension-recovery.d.ts +0 -31
  187. package/dist/cli/help-content.d.ts +0 -57
  188. package/dist/cli/help-json-payload.d.ts +0 -83
  189. package/dist/cli/invocation-profile.d.ts +0 -26
  190. package/dist/cli/main.d.ts +0 -263
  191. package/dist/cli/migration-gates.d.ts +0 -55
  192. package/dist/cli/option-values.d.ts +0 -3
  193. package/dist/cli/preflight-warnings.d.ts +0 -11
  194. package/dist/cli/register-annotations.d.ts +0 -11
  195. package/dist/cli/register-assurance.d.ts +0 -8
  196. package/dist/cli/register-files-lookup.d.ts +0 -9
  197. package/dist/cli/register-history-activity.d.ts +0 -8
  198. package/dist/cli/register-history-author.d.ts +0 -8
  199. package/dist/cli/register-history-maintenance.d.ts +0 -9
  200. package/dist/cli/register-list-query.d.ts +0 -27
  201. package/dist/cli/register-mutation-options.d.ts +0 -10
  202. package/dist/cli/register-mutation.d.ts +0 -16
  203. package/dist/cli/register-operations.d.ts +0 -85
  204. package/dist/cli/register-setup.d.ts +0 -16
  205. package/dist/cli/register-structured-mutation.d.ts +0 -15
  206. package/dist/cli/registration-helpers.d.ts +0 -2
  207. package/dist/cli/runtime/activation.d.ts +0 -51
  208. package/dist/cli/runtime/field-route-retry.d.ts +0 -15
  209. package/dist/cli/runtime/invocation-options.d.ts +0 -43
  210. package/dist/cli/runtime/projection-retry.d.ts +0 -9
  211. package/dist/cli/runtime/selection.d.ts +0 -35
  212. package/dist/cli/runtime/telemetry-outcome.d.ts +0 -20
  213. package/dist/cli/runtime-compatibility-boundary.d.ts +0 -17
  214. package/dist/cli/schema/registration.d.ts +0 -4
  215. package/dist/cli/schema-registration-helpers.d.ts +0 -24
  216. package/dist/cli/search-refresh.d.ts +0 -2
  217. package/dist/cli/stats-analytics-json.d.ts +0 -9
  218. package/dist/cli/telemetry-flush.d.ts +0 -2
  219. package/dist/cli-bundle/chunks/chunk-5GWEY4P6.js +0 -122
  220. package/dist/cli-bundle/chunks/chunk-AUEKTX7V.js +0 -6
  221. package/dist/cli-bundle/chunks/chunk-FRNMQM45.js +0 -2
  222. package/dist/cli-bundle/chunks/chunk-HNGLDMSZ.js +0 -9
  223. package/dist/cli-bundle/chunks/chunk-YKXATU2G.js +0 -3
  224. package/dist/cli-bundle/chunks/item-revision-OJJVPQY7.js +0 -2
  225. package/dist/cli-bundle/chunks/item-transaction-QEPBUCMY.js +0 -2
  226. package/dist/cli-bundle/chunks/register-operations-PO63DBZH.js +0 -2
  227. package/dist/cli-bundle/focused-chunks/chunk-5PMJOJCZ.js +0 -44
  228. package/dist/cli-bundle/focused-chunks/chunk-G5PJCR7R.js +0 -2
  229. package/dist/cli-bundle/focused-chunks/chunk-M6V7UMWL.js +0 -26
  230. package/dist/cli-bundle/focused-chunks/chunk-MK4HV4JO.js +0 -2
  231. package/dist/cli-bundle/focused-chunks/chunk-O7EI33NP.js +0 -91
  232. package/dist/cli-bundle/focused-chunks/chunk-SNOXXRSJ.js +0 -2
  233. package/dist/cli-bundle/focused-chunks/chunk-UPJUTP2V.js +0 -12
  234. package/dist/cli-bundle/focused-chunks/item-revision-CTDO4H3I.js +0 -2
  235. package/dist/cli.d.ts +0 -13
  236. package/dist/core/checkpoint/checkpoint-gc.d.ts +0 -61
  237. package/dist/core/checkpoint/mutation-context.d.ts +0 -10
  238. package/dist/core/diagnostics/remediation.d.ts +0 -52
  239. package/dist/core/extensions/activation-transaction.d.ts +0 -22
  240. package/dist/core/extensions/command-visibility-tier.d.ts +0 -8
  241. package/dist/core/extensions/exporter-output-contract.d.ts +0 -12
  242. package/dist/core/extensions/extension-candidate.d.ts +0 -26
  243. package/dist/core/extensions/extension-runtime-helpers.d.ts +0 -16
  244. package/dist/core/extensions/module-graph-snapshot.d.ts +0 -19
  245. package/dist/core/extensions/preflight-ownership.d.ts +0 -5
  246. package/dist/core/extensions/read-output-contract.d.ts +0 -5
  247. package/dist/core/extensions/reserved-host-flags.d.ts +0 -18
  248. package/dist/core/extensions/service-ownership.d.ts +0 -8
  249. package/dist/core/extensions/version-diagnostics.d.ts +0 -2
  250. package/dist/core/fs/atomic-create.d.ts +0 -7
  251. package/dist/core/fs/index.d.ts +0 -6
  252. package/dist/core/fs/path-utils.d.ts +0 -2
  253. package/dist/core/history/drift-cache.d.ts +0 -4
  254. package/dist/core/history/drift-scan.d.ts +0 -51
  255. package/dist/core/history/index.d.ts +0 -6
  256. package/dist/core/history/tombstone.d.ts +0 -3
  257. package/dist/core/history/version-address.d.ts +0 -13
  258. package/dist/core/item/index.d.ts +0 -9
  259. package/dist/core/item/item-type-definition.d.ts +0 -51
  260. package/dist/core/item/toon-decode.d.ts +0 -25
  261. package/dist/core/lock/index.d.ts +0 -6
  262. package/dist/core/lock/lock-confinement.d.ts +0 -55
  263. package/dist/core/lock/lock-gc.d.ts +0 -93
  264. package/dist/core/output/mutation-projection.d.ts +0 -13
  265. package/dist/core/output/query-summary.d.ts +0 -30
  266. package/dist/core/search/staleness.d.ts +0 -23
  267. package/dist/core/sentry/sensitive-assignments.d.ts +0 -9
  268. package/dist/core/shared/conflict-markers.d.ts +0 -18
  269. package/dist/core/shared/index.d.ts +0 -9
  270. package/dist/core/shared/memo.d.ts +0 -7
  271. package/dist/core/store/index.d.ts +0 -9
  272. package/dist/core/store/settings-concurrency.d.ts +0 -7
  273. package/dist/core/telemetry/read-sampling.d.ts +0 -8
  274. package/dist/core/test/item-test-run-tracking.d.ts +0 -12
  275. package/dist/core/validate/estimate-defaults.d.ts +0 -21
  276. package/dist/core/validate/linked-artifact-reference.d.ts +0 -20
  277. package/dist/mcp/http-server.d.ts +0 -60
  278. package/dist/mcp/legacy-adapter.d.ts +0 -59
  279. package/dist/mcp/runtime-capabilities.d.ts +0 -57
  280. package/dist/mcp/server.d.ts +0 -101
  281. package/dist/sdk/cli-contracts/bootstrap-command-scanner.d.ts +0 -23
  282. package/dist/sdk/cli-contracts/registration-helpers.d.ts +0 -123
  283. package/dist/sdk/cli-contracts/schemas/assurance-definition.d.ts +0 -796
  284. package/dist/sdk/cli-contracts/string-lists.d.ts +0 -9
  285. package/dist/sdk/cli-contracts/tool-parameter-tables.d.ts +0 -35
  286. package/dist/sdk/context/usage-egress.d.ts +0 -9
  287. package/dist/sdk/dependencies/context-budget-recovery.d.ts +0 -21
  288. package/dist/sdk/dependency-flag-validation.d.ts +0 -32
  289. package/dist/sdk/extension/author-manifest.d.ts +0 -22
  290. package/dist/sdk/extension/bundled-catalog.d.ts +0 -35
  291. package/dist/sdk/extension/concurrency.d.ts +0 -7
  292. package/dist/sdk/extension/copy-scope.d.ts +0 -2
  293. package/dist/sdk/extension/custom-field-collisions.d.ts +0 -6
  294. package/dist/sdk/extension/install-receipts.d.ts +0 -7
  295. package/dist/sdk/extension/install-snapshot.d.ts +0 -34
  296. package/dist/sdk/extension/managed-update-status.d.ts +0 -3
  297. package/dist/sdk/extension/runtime-summary.d.ts +0 -9
  298. package/dist/sdk/extension/scaffold.d.ts +0 -38
  299. package/dist/sdk/generated/error-code-catalog-rows.d.ts +0 -39
  300. package/dist/sdk/generated/generated-error-code-catalog-part-1.d.ts +0 -8
  301. package/dist/sdk/generated/generated-error-code-catalog-part-2.d.ts +0 -8
  302. package/dist/sdk/governance/assurance-limits.d.ts +0 -7
  303. package/dist/sdk/governance/defect-recurrence-signals.d.ts +0 -10
  304. package/dist/sdk/governance/health-merge-evidence.d.ts +0 -23
  305. package/dist/sdk/governance/tracked-runtime-cache.d.ts +0 -24
  306. package/dist/sdk/governance/validate-history-drift.d.ts +0 -7
  307. package/dist/sdk/history/attestation-scan.d.ts +0 -16
  308. package/dist/sdk/history-mcp.d.ts +0 -17
  309. package/dist/sdk/lifecycle/checkpoint-rollback.d.ts +0 -15
  310. package/dist/sdk/lifecycle/core-field-recovery.d.ts +0 -33
  311. package/dist/sdk/lifecycle/core-item-fields.d.ts +0 -6
  312. package/dist/sdk/lifecycle/event-validation-messages.d.ts +0 -6
  313. package/dist/sdk/lifecycle/hierarchy-mutation-lock.d.ts +0 -15
  314. package/dist/sdk/lifecycle/legacy-none-tokens.d.ts +0 -71
  315. package/dist/sdk/lifecycle/mcp-actions.d.ts +0 -24
  316. package/dist/sdk/lifecycle/metadata-normalizers.d.ts +0 -8
  317. package/dist/sdk/lifecycle/mutation-facet-contracts.d.ts +0 -6
  318. package/dist/sdk/lifecycle/mutation-option-validation.d.ts +0 -2
  319. package/dist/sdk/lifecycle/recurrence-parsers.d.ts +0 -34
  320. package/dist/sdk/lifecycle/release-handoff.d.ts +0 -12
  321. package/dist/sdk/lifecycle/repeatable-metadata-parsers.d.ts +0 -18
  322. package/dist/sdk/lifecycle/repeated-terminal-state.d.ts +0 -45
  323. package/dist/sdk/merge/abandoned-receipts.d.ts +0 -15
  324. package/dist/sdk/merge/history-scalar-rebase.d.ts +0 -9
  325. package/dist/sdk/merge/ignored-artifacts.d.ts +0 -13
  326. package/dist/sdk/merge/indexed-receipt-blobs.d.ts +0 -4
  327. package/dist/sdk/merge/receipt-file-boundary.d.ts +0 -23
  328. package/dist/sdk/merge/settlement-hook.d.ts +0 -12
  329. package/dist/sdk/merge/stage.d.ts +0 -13
  330. package/dist/sdk/merge/worktree-config.d.ts +0 -11
  331. package/dist/sdk/query/light-metadata.d.ts +0 -3
  332. package/dist/sdk/query/window-pagination.d.ts +0 -20
  333. package/dist/sdk/read-output/extension.d.ts +0 -7
  334. package/dist/sdk/read-output/provenance.d.ts +0 -20
  335. package/dist/sdk/read-output/surfaces.d.ts +0 -27
  336. package/dist/sdk/runtime/actions.d.ts +0 -4
  337. package/dist/sdk/runtime/mutation-admission.d.ts +0 -2
  338. package/dist/sdk/runtime/mutation-value-validation.d.ts +0 -16
  339. package/dist/sdk/runtime/schema.d.ts +0 -4
  340. package/dist/sdk/runtime-action-aliases.d.ts +0 -7
  341. package/dist/sdk/runtime-extended-actions.d.ts +0 -27
  342. package/dist/sdk/runtime-stats-options.d.ts +0 -9
  343. package/dist/sdk/test/command-args.d.ts +0 -4
  344. package/dist/sdk/test/command-resolution.d.ts +0 -5
  345. package/dist/sdk/test/entry.d.ts +0 -18
  346. package/dist/sdk/test/execution-receipts.d.ts +0 -34
  347. package/dist/sdk/test/receipt-index-snapshot.d.ts +0 -2
  348. package/dist/sdk/test/workspace-snapshot.d.ts +0 -11
  349. package/dist/sdk/traceability/runtime-files-lookup.d.ts +0 -8
@@ -1,9 +0,0 @@
1
- /**
2
- * @module sdk/cli-contracts/string-lists
3
- *
4
- * Shared string-list normalization for the CLI contract modules: collapse a
5
- * sequence of strings to its unique, trimmed, non-empty members in first-seen
6
- * order.
7
- */
8
- /** Returns the unique, trimmed, non-empty members of `values` in first-seen order. Each value is trimmed before deduplication so accidental surrounding whitespace cannot leak into — or produce duplicate — flag aliases and MCP schema parameter keys. */
9
- export declare function normalizeUniqueStringList(values:Iterable<string>):string[];
@@ -1,35 +0,0 @@
1
- import type { PmToolAction } from "./enum-contracts.js";
2
- /** Public contract for pm tool parameter properties, shared by SDK and presentation-layer consumers. */
3
- export declare const PM_TOOL_PARAMETER_PROPERTIES:Record<string,unknown>;
4
- /** Per-action property overrides for parameters whose transport shape differs from their shared default. */
5
- export declare const PM_TOOL_ACTION_SCOPED_PARAMETER_PROPERTIES:Partial<Record<PmToolAction,Record<string,unknown>>>;
6
- /** Supported values accepted by the plan subcommand contract. */
7
- export declare const PLAN_SUBCOMMAND_VALUES:readonly ["create","show","add-step","update-step","complete-step","block-step","reorder-step","remove-step","link","unlink","decision","discovery","validation","resume","approve","materialize"];
8
- /** Public contract for plan action parameter properties, shared by SDK and presentation-layer consumers. */
9
- export declare const PLAN_ACTION_PARAMETER_PROPERTIES:Record<string,unknown>;
10
- /** Public contract for plan action parameter metadata, shared by SDK and presentation-layer consumers. */
11
- export declare const PLAN_ACTION_PARAMETER_METADATA:Record<string,{
12
- description:string;
13
- examples?:unknown[];
14
- }>;
15
- /** Public contract for pm tool parameter metadata, shared by SDK and presentation-layer consumers. */
16
- export declare const PM_TOOL_PARAMETER_METADATA:Record<string,{
17
- description:string;
18
- examples?:unknown[];
19
- }>;
20
- /**
21
- * Per-action overrides for tool parameters that are shared across actions in the
22
- * aggregated `pm_run` schema. The action-scoped strict schema builds one sub-schema per
23
- * action, but every action reuses the single {@link PM_TOOL_PARAMETER_METADATA} entry
24
- * for a given parameter — so a parameter used by more than one action (notably `name`,
25
- * carried by both `schema` and `profile`) would otherwise describe every action's usage
26
- * inside every action's schema (the `schema` action mentioning profiles and vice versa).
27
- * Keying the override by action then parameter lets each action carry only its own usage,
28
- * matching the action-specific descriptions on the narrow pm_schema / pm_profile tools
29
- * (pm-fq80). The flat provider schema keeps using {@link PM_TOOL_PARAMETER_METADATA}
30
- * because its single `name` property must cover every action at once.
31
- */
32
- export declare const PM_TOOL_ACTION_SCOPED_PARAMETER_METADATA:Partial<Record<PmToolAction,Record<string,{
33
- description:string;
34
- examples?:unknown[];
35
- }>>>;
@@ -1,9 +0,0 @@
1
- /**
2
- * @module sdk/context/usage-egress
3
- *
4
- * Keeps post-projection context feedback best-effort without weakening the
5
- * response contract returned by embedded SDK and MCP hosts.
6
- */
7
- import { finalizeContextUsageDelivery } from "../context-usage.js";
8
- /** Finalize derived usage feedback and attach a stable warning on failure. */
9
- export declare function finalizeContextUsageEgress(pmRoot:string,projected:unknown,finalize?:typeof finalizeContextUsageDelivery):Promise<void>;
@@ -1,21 +0,0 @@
1
- /**
2
- * @module sdk/dependencies/context-budget-recovery
3
- * Finds verified retry budgets while bounding query work and distinguishing proved minima from partial searches.
4
- */
5
- import type { PmTokenBudgetRecovery } from "../../core/shared/errors.js";
6
- /** A real packer probe distinguishes its own floor from an independent output constraint. */
7
- export type ContextBudgetProbe = "fits" | "native_floor" | "output_constraints";
8
- /** Inputs derived from one immutable relationship assembly and preserved retry options. */
9
- interface ContextBudgetRecoveryInput {
10
- /** Failed query's requested token ceiling. */
11
- requested:number;
12
- /** Initial upper candidate derived from the kernel's canonical default. */
13
- initialBudget:number;
14
- /** Conservative graph and text-size work estimate for each packer evaluation. */
15
- workUnits:number;
16
- /** Evaluate the real preserved query at one positive integer budget. */
17
- probe:(tokens:number) => ContextBudgetProbe;
18
- }
19
- /** Establish a working retry and prove a global minimum only after exhaustive lower-budget verification. */
20
- export declare function findContextBudgetRecovery(input:ContextBudgetRecoveryInput):PmTokenBudgetRecovery;
21
- export {};
@@ -1,32 +0,0 @@
1
- import type { Dependency,ItemFormat,RuntimeSchemaSettings } from "../types/index.js";
2
- import { type RelationshipKindRegistry } from "./relationships.js";
3
- /** Resolve mutation spellings through the active ontology and advertise its vocabulary on refusal. */
4
- export declare function requireDependencyKind(value:string,registry?:RelationshipKindRegistry):string;
5
- /** Reject malformed shorthand before item-id prefix normalization can create a dangling graph node. */
6
- export declare function assertValidBareDependencyFlagValue(value:string,structured:boolean,flag?:string):void;
7
- /**
8
- * Validate prospective stored dependencies against the active relationship
9
- * ontology before a create or update mutation writes item or history state.
10
- */
11
- export declare function assertDependencyEdgesAllowed(holderId:string,dependencies:readonly Dependency[] | undefined,registry?:RelationshipKindRegistry):void;
12
- /**
13
- * Resolve every newly supplied local dependency and enforce declared endpoint
14
- * chronology before a mutation commits.
15
- * Explicit external provenance bypasses workspace lookup, while the opt-in
16
- * unresolved mode returns durable warning tokens instead of pretending that
17
- * the graph edge resolved successfully.
18
- */
19
- export declare function assertDependencyTargetsResolvable(params:{
20
- pmRoot:string;
21
- dependencies:readonly Dependency[] | undefined;
22
- idPrefix:string;
23
- itemFormat:ItemFormat;
24
- typeToFolder:Record<string,string>;
25
- allowUnresolved?:boolean;
26
- holders?:readonly {
27
- id:string;
28
- createdAt?:string;
29
- }[];
30
- schema?:RuntimeSchemaSettings;
31
- registry?:RelationshipKindRegistry;
32
- }):Promise<string[]>;
@@ -1,22 +0,0 @@
1
- import { type ExtensionManifestSchemaFinding } from "../../core/extensions/manifest-schema.js";
2
- /** Read-only author-workspace manifest diagnostic shared by health and doctor. */
3
- export interface ExtensionAuthorManifestDiagnostic {
4
- /** Absolute path inspected for the extension runtime manifest. */
5
- path:string;
6
- /** Whether the workspace declares a root extension manifest. */
7
- present:boolean;
8
- /** Parse state for absent, valid, or malformed manifest content. */
9
- parse_status:"absent" | "valid" | "invalid_json" | "invalid_shape";
10
- /** Canonical package catalog metadata location, distinct from manifest.json. */
11
- package_metadata_location:"package.json#pm";
12
- /** Public schema findings when the file is a JSON object. */
13
- schema_findings:ExtensionManifestSchemaFinding[];
14
- /** Runtime warning tokens incorporated into health/doctor status. */
15
- warnings:string[];
16
- /** Direct author correction for every reported state. */
17
- remediation:string[];
18
- }
19
- /** Inspect `<workspace>/manifest.json` without loading extension code. */
20
- export declare function inspectExtensionAuthorManifest(workspaceRoot:string):Promise<ExtensionAuthorManifestDiagnostic>;
21
- /** Inspect the author manifest for a resolved project tracker root. */
22
- export declare function inspectExtensionAuthorManifestAtPmRoot(pmRoot:string):Promise<ExtensionAuthorManifestDiagnostic>;
@@ -1,35 +0,0 @@
1
- import type { GlobalOptions } from "../../core/shared/command-types.js";
2
- import type { ExtensionCommandOptions,ExtensionScope } from "../extension.js";
3
- /** Implements resolve bundled extension alias source for the public runtime surface of this module. */
4
- export declare function resolveBundledExtensionAliasSource(input:string):Promise<string | null>;
5
- /** Implements check whether bundled package install all target for the public runtime surface of this module. */
6
- export declare function isBundledPackageInstallAllTarget(input:string):boolean;
7
- /** Implements list bundled package aliases for the public runtime surface of this module. */
8
- export declare function listBundledPackageAliases():Promise<string[]>;
9
- /**
10
- * Implements resolve bundled package root for the public runtime surface of this module.
11
- * Accepts every spelling agents naturally reach for: the catalog alias
12
- * ("kanban"), the package directory ("pm-kanban"), and the published npm name
13
- * ("@unbrained/pm-kanban").
14
- */
15
- export declare function resolveBundledPackageRoot(alias:string):Promise<string | null>;
16
- /** Resolve the published npm package name for a bundled alias so install flows can persist it as managed-source provenance (`source.package`). Returns null when the alias is unknown or the bundled package manifest lacks a name. */
17
- export declare function resolveBundledPackageNpmName(alias:string):Promise<string | null>;
18
- /** Implements resolve bundled alias manifest name for the public runtime surface of this module. */
19
- export declare function resolveBundledAliasManifestName(input:string):Promise<string | null>;
20
- /** Implements build bundled package catalog for the public runtime surface of this module. */
21
- export declare function buildBundledPackageCatalog(scope:ExtensionScope,global:GlobalOptions,options?:ExtensionCommandOptions):Promise<{
22
- total:number;
23
- scope:ExtensionScope;
24
- installable_resource_kinds:string[];
25
- metadata_only_resource_kinds:string[];
26
- packages:Array<Record<string,unknown>>;
27
- }>;
28
- declare function parsePackageCatalogFields(raw:string | undefined):string[] | undefined;
29
- declare function projectPackageCatalogEntry(entry:Record<string,unknown>,fields:string[]):Record<string,unknown>;
30
- /** Public contract for test only bundled catalog, shared by SDK and presentation-layer consumers. */
31
- export declare const _testOnlyBundledCatalog:{
32
- parsePackageCatalogFields:typeof parsePackageCatalogFields;
33
- projectPackageCatalogEntry:typeof projectPackageCatalogEntry;
34
- };
35
- export {};
@@ -1,7 +0,0 @@
1
- /**
2
- * @module sdk/extension/concurrency
3
- *
4
- * Provides resource-bounded asynchronous collection transforms for extension workflows.
5
- */
6
- /** Map inputs with a fixed worker pool so remote checks cannot exhaust process resources. */
7
- export declare const mapWithFixedConcurrency:<Input,Output>(inputs:Input[],concurrency:number,mapper:(input:Input) => Promise<Output>) => Promise<Output[]>;
@@ -1,2 +0,0 @@
1
- /** Decide whether a lexical source path belongs in an extension snapshot. Git metadata is always excluded; symlinks remain links. */
2
- export declare function includesExtensionCopyPath(source:string,destination:string,candidate:string,nestedDestination:boolean):boolean;
@@ -1,6 +0,0 @@
1
- /**
2
- * @module SDK extension diagnostics for custom fields that shadow MCP inputs.
3
- */
4
- import type { activateExtensions } from "../../core/extensions/index.js";
5
- /** Report extension and extension-profile fields shadowed by canonical MCP inputs. */
6
- export declare const collectMcpCustomFieldCollisionDoctorWarnings:(activationResult:Awaited<ReturnType<typeof activateExtensions>>) => string[];
@@ -1,7 +0,0 @@
1
- /** @module sdk/extension/install-receipts Summarizes bundled install outcomes without repeating full package diagnostics. */
2
- import type { ExtensionCommandResult } from "../extension.js";
3
- /** Preserve per-package evidence while distinguishing planned and completed bundled installs. */
4
- export declare function buildBundledInstallReceipt(packages:ReadonlyArray<{
5
- alias:string;
6
- result:ExtensionCommandResult;
7
- }>,dryRun:boolean):Record<string,unknown>;
@@ -1,34 +0,0 @@
1
- /** Exact filesystem and metadata state captured before an extension install. */
2
- export interface ExtensionInstallSnapshot {
3
- /** Temporary copy of the prior destination directory. */
4
- backupDirectory:string;
5
- /** Extension destination being installed. */
6
- destinationDirectory:string;
7
- /** Whether the destination existed before installation. */
8
- destinationExists:boolean;
9
- /** Managed-extension state file path. */
10
- managedStatePath:string;
11
- /** Exact prior managed-extension state contents. */
12
- managedStateContents:Buffer | null;
13
- /** Project settings file path. */
14
- settingsPath:string;
15
- /** Exact prior project settings contents. */
16
- settingsContents:Buffer | null;
17
- }
18
- /** Capture one optional metadata file without weakening non-ENOENT failures. */
19
- export declare const readOptionalMetadataFile:(filePath:string) => Promise<Buffer | null>;
20
- /** Capture extension files and metadata before applying an install mutation. */
21
- export declare const captureExtensionInstallSnapshot:(selectedRoot:string,settingsRoot:string,destinationDirectory:string,destinationExists:boolean,backupDirectory:string) => Promise<ExtensionInstallSnapshot>;
22
- /** Restore directory and metadata snapshots after a partially persisted install. */
23
- export declare const restoreExtensionInstallSnapshot:(snapshot:ExtensionInstallSnapshot) => Promise<void>;
24
- /** Retain the previous installation until both persistence and runtime verification settle. */
25
- export declare function withVerifiedExtensionInstall<T extends {
26
- ok:boolean;
27
- details:Record<string,unknown>;
28
- }>(options:{
29
- selectedRoot:string;
30
- settingsRoot:string;
31
- destinationDirectory:string;
32
- sourceDirectory:string;
33
- scope:"project" | "global";
34
- },install:() => Promise<T>):Promise<T>;
@@ -1,3 +0,0 @@
1
- import { type ManagedExtensionState } from "./managed-state.js";
2
- /** Return transient provider evidence while preserving the caller's recorded installation state. */
3
- export declare function refreshManagedExtensionUpdates(state:ManagedExtensionState,offline?:boolean):Promise<ManagedExtensionState>;
@@ -1,9 +0,0 @@
1
- /** Return stable runtime command and action paths registered by one extension. */
2
- export declare function summarizeRuntimeCommandPathsForExtension(extensionName:string,installed:ReadonlyArray<{
3
- name:string;
4
- command_paths?:string[];
5
- action_paths?:string[];
6
- }>):{
7
- command_paths:string[];
8
- action_paths:string[];
9
- };
@@ -1,38 +0,0 @@
1
- /** Public contract for scaffold pm min version, shared by SDK and presentation-layer consumers. */
2
- export declare const SCAFFOLD_PM_MIN_VERSION = "2026.6.24";
3
- /** Capability shapes the package/extension scaffolder can target via the `--capability` selector — one per SDK extension capability, so every registration surface has a runnable starter. `commands` emits the default command-only starter; `hooks` additionally wires an `after_command` lifecycle reactor; `search` wires an in-memory provider/adapter pair; `importers` wires importer and exporter command primitives so authors can customize project context movement; `schema` registers a custom item type, item field, and migration so authors can model their own project domain; `profile` registers a complete project-profile archetype (item types, statuses, fields, a workflow, config, a template, and package recommendations) via `api.registerProfile` so `pm profile apply` can tailor a tracker in one shot; `renderers` overrides how a command's output is serialized for a format; `parser` rewrites a command's parsed options before its handler runs; `preflight` adjusts pm's pre-run migration/format gate decision; and `services` overrides a built-in pm service (e.g. output formatting) — without starting from a blank extension. */
4
- export declare const SCAFFOLD_CAPABILITIES:readonly ["commands","hooks","search","importers","schema","profile","renderers","parser","preflight","services"];
5
- /**
6
- * Restricts the `--capability` selector to a {@link SCAFFOLD_CAPABILITIES} value.
7
- */
8
- export type ExtensionScaffoldCapability = (typeof SCAFFOLD_CAPABILITIES)[number];
9
- interface ExtensionScaffoldFileResult {
10
- path:string;
11
- status:"created" | "unchanged";
12
- }
13
- interface ExtensionScaffoldResult {
14
- extension_name:string;
15
- package_name:string;
16
- command_name:string;
17
- invocation_command:string;
18
- capability:ExtensionScaffoldCapability;
19
- /** Authoring style of the generated entrypoint: `"imperative"` (a hand-written `activate` body, the default) or `"declarative"` (a `composeExtension` blueprint). The declarative style is package-mode only (any capability). */
20
- style:ExtensionScaffoldStyle;
21
- target_path:string;
22
- created_directory:boolean;
23
- files:ExtensionScaffoldFileResult[];
24
- }
25
- /**
26
- * Authoring style the scaffolder targets for the generated entrypoint. The
27
- * default `"imperative"` emits a hand-written `activate` body; `"declarative"`
28
- * emits the SDK's `composeExtension` blueprint loop (package-mode only, for any
29
- * capability — see {@link buildDeclarativeEntrypoint}).
30
- */
31
- export type ExtensionScaffoldStyle = "imperative" | "declarative";
32
- /** Builds the starter command path from the normalized package/extension name. Names that start with a built-in pm command or executable alias are prefixed with `starter` so the generated command dispatches to the package instead of being consumed by core command parsing. */
33
- export declare function buildScaffoldCommandName(extensionName:string):string;
34
- /** Implements build starter extension scaffold files for the public runtime surface of this module. */
35
- export declare function buildStarterExtensionScaffoldFiles(extensionName:string,commandName:string,_vocabulary:"extension" | "package",capability?:ExtensionScaffoldCapability,declarative?:boolean):Record<string,string>;
36
- /** Implements scaffold extension project for the public runtime surface of this module. */
37
- export declare function scaffoldExtensionProject(target:string,vocabulary?:"extension" | "package",capability?:string,declarative?:boolean):Promise<ExtensionScaffoldResult>;
38
- export {};
@@ -1,39 +0,0 @@
1
- /**
2
- * @module sdk/generated/error-code-catalog-rows
3
- *
4
- * Compact generated error-code catalog rows and their lossless expansion into
5
- * full contracts. The generator omits every field that is derivable, so the
6
- * catalog ships once per build output without repeating shared guidance.
7
- */
8
- import { type PmErrorCodeContract } from "../error-code-catalog.js";
9
- /**
10
- * One generated catalog row with every derivable field omitted: `meaning`
11
- * follows from the code, `class` from the exit code, `recovery` is shared,
12
- * `stability` is provisional unless `stable` is set, and `emitting_commands`
13
- * defaults to every command. `canonical_code`, `aliases` and `owned_states`
14
- * default inside definePmErrorCodeCatalog (pm-998juj).
15
- */
16
- export interface PmErrorCodeCatalogRow {
17
- /** Stable snake_case identifier. */
18
- code:string;
19
- /** Process exit code emitted by the CLI transport. */
20
- exit_code:PmErrorCodeContract["exit_code"];
21
- /** Subsystems that can emit the code. */
22
- sources:string[];
23
- /** Present when the code is in the reviewed stability ledger. */
24
- stable?:true;
25
- /** CLI command roots, when narrower than every command. */
26
- emitting_commands?:string[];
27
- /** Canonical machine identifier, when the code is an alias. */
28
- canonical_code?:string;
29
- /** Compatibility spellings that resolve to this code. */
30
- aliases?:string[];
31
- /** Observable states this code claims. */
32
- owned_states?:PmErrorCodeContract["owned_states"];
33
- }
34
- /**
35
- * Expand compact generated rows into the full contracts that
36
- * definePmErrorCodeCatalog validates, keeping the original key order so every
37
- * serialized catalog projection stays byte-identical.
38
- */
39
- export declare function expandPmErrorCodeCatalogRows(rows:readonly PmErrorCodeCatalogRow[]):PmErrorCodeContract[];
@@ -1,8 +0,0 @@
1
- /**
2
- * @module sdk/generated-error-code-catalog-part-1
3
- *
4
- * Generated by scripts/generate-error-code-catalog.mjs. Do not edit manually.
5
- */
6
- import type { PmErrorCodeCatalogRow } from "./error-code-catalog-rows.js";
7
- /** Generated partition 1 of the exhaustive error-code catalog, as compact rows. */
8
- export declare const PM_ERROR_CODE_CATALOG_PART_1:PmErrorCodeCatalogRow[];
@@ -1,8 +0,0 @@
1
- /**
2
- * @module sdk/generated-error-code-catalog-part-2
3
- *
4
- * Generated by scripts/generate-error-code-catalog.mjs. Do not edit manually.
5
- */
6
- import type { PmErrorCodeCatalogRow } from "./error-code-catalog-rows.js";
7
- /** Generated partition 2 of the exhaustive error-code catalog, as compact rows. */
8
- export declare const PM_ERROR_CODE_CATALOG_PART_2:PmErrorCodeCatalogRow[];
@@ -1,7 +0,0 @@
1
- /**
2
- * @module sdk/governance/assurance-limits
3
- *
4
- * Shares bounded assurance transport limits without expanding the public SDK.
5
- */
6
- /** Largest verdict-history page accepted by SDK and transport boundaries. */
7
- export declare const MAX_ASSURANCE_VERDICT_LIMIT = 1000;
@@ -1,10 +0,0 @@
1
- /**
2
- * @module sdk/defect-recurrence-signals
3
- *
4
- * Keeps the recurrence index's PM-item projection shared with transport caches
5
- * without exposing internal full-record serialization as an invalidation rule.
6
- */
7
- import type { AssuranceItemRecord } from "./assurance.js";
8
- import type { DefectChangeRiskInput } from "./defect-recurrence.js";
9
- /** Project one PM item to exactly the signals consumed by recurrence indexing. */
10
- export declare function defectRecurrenceItemSignals(item:AssuranceItemRecord):DefectChangeRiskInput;
@@ -1,23 +0,0 @@
1
- /**
2
- * @module sdk/governance/health-merge-evidence
3
- *
4
- * Reports shared Git attribute and merge receipt evidence for tracker health.
5
- */
6
- import type { PmSettings } from "../../types/index.js";
7
- import { auditMergeAttributeFence } from "../merge/install.js";
8
- /** Detect legacy receipt-directory ignores even before any receipt file has been created. */
9
- export declare function resolveMergeArtifactIgnoreHealthEvidence(pmRoot:string,gitWorkspaceRoot:string | null):Promise<{
10
- rules:import("../merge/ignored-artifacts.js").MergeArtifactIgnoreRule[];
11
- warnings:string[];
12
- }>;
13
- /** Audit the active tracker's shared attribute fence and report strict merge protection findings. */
14
- export declare function resolveMergeFenceHealthEvidence(pmRoot:string,gitWorkspaceRoot:string | null,settings:PmSettings,required:boolean):Promise<{
15
- audit:Awaited<ReturnType<typeof auditMergeAttributeFence>> | null;
16
- count:number;
17
- warnings:string[];
18
- }>;
19
- /** Report unresolved durable merge receipt evidence in compact warning form. */
20
- export declare function buildMergeReceiptEvidenceWarnings(params:{
21
- invalidEvidenceCount:number;
22
- missingHistoryReferenceCount:number;
23
- }):string[];
@@ -1,24 +0,0 @@
1
- import { realpath } from "node:fs/promises";
2
- /** Read-only result describing clone-local tracker artifacts present in Git's index. */
3
- export interface TrackedRuntimeCacheScan {
4
- /** Enclosing Git worktree root, omitted from serialized diagnostics. */
5
- git_workspace_root:string | null;
6
- /** Tracker root relative to the Git worktree, or null when it is outside Git. */
7
- tracker_relative_root:string | null;
8
- /** Tracked runtime artifact paths relative to the Git worktree. */
9
- tracked_paths:string[];
10
- /** Number of tracked runtime artifacts. */
11
- tracked_path_count:number;
12
- /** Exact index-only remediation command, or null when no artifacts are tracked. */
13
- remediation_command:string | null;
14
- }
15
- /** Resolves a tracker root while retaining a deterministic fallback for missing paths. */
16
- export declare function resolveCanonicalTrackerRoot(pmRoot:string,resolver?:typeof realpath):Promise<string>;
17
- /**
18
- * Find tracked files below every clone-local tracker directory.
19
- *
20
- * A non-Git tracker, a tracker outside the enclosing repository, or an
21
- * unavailable Git executable yields an empty scan rather than turning project
22
- * health into an infrastructure failure.
23
- */
24
- export declare function scanTrackedRuntimeCache(pmRoot:string):Promise<TrackedRuntimeCacheScan>;
@@ -1,7 +0,0 @@
1
- import type { ValidateCheck } from "./validate.js";
2
- import type { ValidateItem } from "./validate-item-reader.js";
3
- /** Build the validation warning and bounded evidence projection for history drift. */
4
- export declare function buildValidateHistoryDriftCheck(pmRoot:string,items:ValidateItem[],verboseDiagnostics:boolean):Promise<{
5
- check:ValidateCheck;
6
- warnings:string[];
7
- }>;
@@ -1,16 +0,0 @@
1
- import { type HistoryHashAlgorithm } from "../../core/history/digest.js";
2
- import type { HistoryAttestationStream } from "./attestation-contract.js";
3
- /** Snapshot row retained even when a stream is malformed or unreadable. */
4
- export interface AttestationScanRow {
5
- /** Filename stem from the complete directory inventory. */
6
- id:string;
7
- /** Byte digest when reading succeeded. */
8
- digest:string | null;
9
- /** Verified payload-free stream summary, or null on invalid input. */
10
- stream:HistoryAttestationStream | null;
11
- }
12
- /**
13
- * Capture all retained streams and reject observed concurrent changes. This is
14
- * a per-stream snapshot, not a transaction across unrelated history writers.
15
- */
16
- export declare function scanAttestationStreams(pmRoot:string,algorithm:HistoryHashAlgorithm):Promise<AttestationScanRow[]>;
@@ -1,17 +0,0 @@
1
- import type { GlobalOptions } from "../core/shared/command-types.js";
2
- import { type HistoryCompactBulkResult,type HistoryCompactResult } from "./history-compact.js";
3
- /** Minimal action context required by MCP history maintenance adapters. */
4
- export interface HistoryMcpActionContext {
5
- /** Optional positional item id used by single-stream mode. */
6
- id?:string;
7
- /** Alias-rich MCP options normalized by the selected history adapter. */
8
- options:Record<string,unknown>;
9
- /** Force flag forwarded to integrity-sensitive maintenance engines. */
10
- force?:boolean;
11
- /** Global tracker and output controls shared with native command handlers. */
12
- global:GlobalOptions;
13
- }
14
- /** Dispatch single-stream or all-stream history repair from an MCP payload. */
15
- export declare function runMcpHistoryRepairAction(context:HistoryMcpActionContext):Promise<unknown>;
16
- /** Dispatch single or bounded bulk history compaction from an MCP payload. */
17
- export declare function runMcpHistoryCompactAction(context:HistoryMcpActionContext):Promise<HistoryCompactResult | HistoryCompactBulkResult>;
@@ -1,15 +0,0 @@
1
- import { type LoadedMutationCheckpoint } from "../../core/checkpoint/mutation-checkpoint.js";
2
- import { type ItemRevisionConflictRowFields } from "./item-revision.js";
3
- /**
4
- * Undo only attributed committed item effects; legacy timestamp checkpoints cannot authorize a destructive restore.
5
- * A failed row refused by an expected revision carries the same structured conflict fields as a forward bulk row.
6
- */
7
- export declare function rollbackMutationCheckpoint(pmRoot:string,checkpoint:LoadedMutationCheckpoint,options:{
8
- author?:string;
9
- message:string;
10
- force?:boolean;
11
- }):Promise<{
12
- rows:(import("../../core/checkpoint/mutation-checkpoint.js").CheckpointRollbackRow & ItemRevisionConflictRowFields)[];
13
- restored_ids:string[];
14
- failed_count:number;
15
- }>;
@@ -1,33 +0,0 @@
1
- /**
2
- * @module sdk/lifecycle/core-field-recovery
3
- * Resolves core-field refusal guidance from executable mutation registrations.
4
- */
5
- import type { PmCliErrorContext } from "../../core/shared/errors.js";
6
- import type { RuntimeFieldRegistry } from "../../core/schema/runtime-schema.js";
7
- /** Name only declared mutation routes; storage keys never imply CLI flags. */
8
- export declare function resolveCoreFieldRecovery(field:string):Pick<PmCliErrorContext,"recovery" | "nextSteps">;
9
- /** Mutation scopes whose `--field` refusals route project-schema keys. */
10
- type SchemaFieldRecoveryCommand = "create" | "update" | "update_many";
11
- /**
12
- * Option names and long flags the host itself owns for a mutation command:
13
- * every flag the command's contract declares (including directly registered
14
- * controls such as --force and --clear-tests), global flags, the option
15
- * registration targets, and SDK-only option keys. Bulk update rows run
16
- * through pm update's option surface, so update-many reserves that set plus
17
- * its own selection flags.
18
- */
19
- export declare function hostOwnedOptions(command:SchemaFieldRecoveryCommand):{
20
- options:ReadonlySet<string>;
21
- flags:ReadonlySet<string>;
22
- };
23
- /**
24
- * Route a `--field` key that the project schema declares (pm-wftvem): such
25
- * keys are set through their declared CLI flag or SDK option, never through
26
- * the extension item-field channel. Returns undefined for undeclared keys so
27
- * extension-field admission keeps its own refusal. When the invocation's
28
- * options are supplied and, apart from the refused `--field` input itself,
29
- * already set the key through a declared spelling, no route is advertised: a
30
- * retry would carry two values for one field.
31
- */
32
- export declare function createSchemaFieldRecoveryResolver(registry:RuntimeFieldRegistry,command:SchemaFieldRecoveryCommand,invocationOptions?:Record<string,unknown>):(field:string) => Pick<PmCliErrorContext,"recovery" | "nextSteps"> | undefined;
33
- export {};
@@ -1,6 +0,0 @@
1
- /** Core item document fields; extension metadata retains its independently declared spelling. */
2
- export declare const CORE_ITEM_FIELD_KEYS:ReadonlySet<string>;
3
- /** Normalize only known core option targets; preserve unrelated extension metadata keys verbatim. */
4
- export declare function resolveCoreUpsertMetadataKey(key:string):string;
5
- /** Preserve an omitted key while normalizing a supplied core option target. */
6
- export declare function resolveCoreUpsertMetadataKey(key:string | undefined):string | undefined;
@@ -1,6 +0,0 @@
1
- /** Public contract for event end after start message, shared by SDK and presentation-layer consumers. */
2
- export declare const EVENT_END_AFTER_START_MESSAGE = "--event end must be strictly after start. Equal start/end timestamps are treated as an instant event (end is dropped); an end earlier than start is rejected. Omit end for an instant event or set end later than start.";
3
- /** Public contract for event end duration mutually exclusive message, shared by SDK and presentation-layer consumers. */
4
- export declare const EVENT_END_DURATION_MUTUALLY_EXCLUSIVE_MESSAGE = "--event end and duration are mutually exclusive; provide only one (use duration=<relative> like duration=2h, duration=30min, or duration=PT30M, or set an explicit end).";
5
- /** Resolve an explicit end or unambiguous duration; reject backwards spans and collapse zero-length events. */
6
- export declare function resolveEventEndAt(startAt:string,endRaw:string | undefined,durationRaw:string | undefined,referenceDate:Date):string | undefined;
@@ -1,15 +0,0 @@
1
- /** Inputs for the internal workspace-wide hierarchy mutation lock. */
2
- export interface HierarchyMutationLockOptions {
3
- /** Tracker root whose hierarchy is being changed. */
4
- pmRoot:string;
5
- /** Principal recorded as the lock owner. */
6
- author:string;
7
- /** Tracker-configured stale-lock lifetime. */
8
- ttlSeconds:number;
9
- /** Tracker-configured bounded lock wait. */
10
- waitMs:number;
11
- /** Whether this mutation can add hierarchy evidence or a one-edge relationship. */
12
- required:boolean;
13
- }
14
- /** Acquire the shared hierarchy writer lock, or return a no-op release. */
15
- export declare function acquireHierarchyMutationLock(options:HierarchyMutationLockOptions):Promise<() => Promise<void>>;
@@ -1,71 +0,0 @@
1
- /** Describes a repeatable option whose legacy none/null token maps to a clear flag. */
2
- export interface LegacyNoneCollectionNormalizer<TOptions extends object> {
3
- /** Value that configures or reports option key for this contract. */
4
- optionKey:keyof TOptions;
5
- /** Value that configures or reports clear flag key for this contract. */
6
- clearFlagKey:keyof TOptions;
7
- /** Value that configures or reports value flag for this contract. */
8
- valueFlag:string;
9
- /** Value that configures or reports clear flag for this contract. */
10
- clearFlag:string;
11
- /** Value that configures or reports disable flag key for this contract. */
12
- disableFlagKey?:keyof TOptions;
13
- }
14
- /** Collection and clear options shared by create and update legacy-token normalization. */
15
- export interface LegacyNoneCollectionOptions {
16
- /** Dependency entries accepted by create and update. */
17
- dep?:string[];
18
- /** Whether dependency entries should be cleared. */
19
- clearDeps?:boolean;
20
- /** Comment entries accepted by create and update. */
21
- comment?:string[];
22
- /** Whether comment entries should be cleared. */
23
- clearComments?:boolean;
24
- /** Note entries accepted by create and update. */
25
- note?:string[];
26
- /** Whether note entries should be cleared. */
27
- clearNotes?:boolean;
28
- /** Learning entries accepted by create and update. */
29
- learning?:string[];
30
- /** Whether learning entries should be cleared. */
31
- clearLearnings?:boolean;
32
- /** Linked-file entries accepted by create and update. */
33
- file?:string[];
34
- /** Whether linked-file entries should be cleared. */
35
- clearFiles?:boolean;
36
- /** Linked-test entries accepted by create and update. */
37
- test?:string[];
38
- /** Whether linked-test entries should be cleared. */
39
- clearTests?:boolean;
40
- /** Linked-document entries accepted by create and update. */
41
- doc?:string[];
42
- /** Whether linked-document entries should be cleared. */
43
- clearDocs?:boolean;
44
- /** Reminder entries accepted by create and update. */
45
- reminder?:string[];
46
- /** Whether reminder entries should be cleared. */
47
- clearReminders?:boolean;
48
- /** Event entries accepted by create and update. */
49
- event?:string[];
50
- /** Whether event entries should be cleared. */
51
- clearEvents?:boolean;
52
- /** Custom type-option entries accepted by create and update. */
53
- typeOption?:string[];
54
- /** Whether custom type-option entries should be cleared. */
55
- clearTypeOptions?:boolean;
56
- }
57
- /** Build the shared create/update collection normalizer table with optional replacement-mode guards. */
58
- export declare function createLegacyNoneCollectionNormalizers<TOptions extends LegacyNoneCollectionOptions>(options?:{
59
- depDisableFlagKey?:keyof TOptions;
60
- fileDisableFlagKey?:keyof TOptions;
61
- testDisableFlagKey?:keyof TOptions;
62
- docDisableFlagKey?:keyof TOptions;
63
- }):ReadonlyArray<LegacyNoneCollectionNormalizer<TOptions>>;
64
- /** Implements check whether legacy none token for the public runtime surface of this module. */
65
- export declare function isLegacyNoneToken(value:string | undefined):boolean;
66
- /** Implements assert no legacy none token for the public runtime surface of this module. */
67
- export declare function assertNoLegacyNoneToken(value:string | undefined,flag:string,replacementHint?:string):void;
68
- /** Implements assert no legacy none tokens for the public runtime surface of this module. */
69
- export declare function assertNoLegacyNoneTokens(values:string[] | undefined,flag:string,replacementHint?:string):void;
70
- /** Convert collection-level legacy none/null tokens into their explicit clear flags. */
71
- export declare function applyLegacyNoneCollectionNormalizers<TOptions extends Record<string,unknown>>(normalized:TOptions,definitions:ReadonlyArray<LegacyNoneCollectionNormalizer<TOptions>>):TOptions;