@unbrained/pm-cli 2026.11.6 → 2026.11.8

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 (474) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/CHANGELOG.md +82 -48
  3. package/dist/cli/expected-revisions.js +1 -1
  4. package/dist/cli/extension-command-help.js +4 -3
  5. package/dist/cli/help-json-payload.js +1 -1
  6. package/dist/cli/main.js +1 -1
  7. package/dist/cli/register-annotations.js +1 -1
  8. package/dist/cli/register-list-query.js +5 -5
  9. package/dist/cli/runtime/annotation-option-retry.js +2 -0
  10. package/dist/cli/runtime/close-fields-retry.js +2 -0
  11. package/dist/cli/runtime/invocation-options.js +1 -1
  12. package/dist/cli-bundle/bundle-manifest.json +1 -1
  13. package/dist/cli-bundle/chunks/chunk-3A5DJZCC.js +116 -0
  14. package/dist/cli-bundle/chunks/chunk-4BMPGUTG.js +9 -0
  15. package/dist/cli-bundle/chunks/{chunk-D7KYPRK4.js → chunk-7GC6WIDR.js} +2 -2
  16. package/dist/cli-bundle/chunks/{chunk-DAX3AOFI.js → chunk-7V6I6X4G.js} +2 -2
  17. package/dist/cli-bundle/chunks/{chunk-OH6WQ7VT.js → chunk-AFZS6WFV.js} +2 -2
  18. package/dist/cli-bundle/chunks/{chunk-PE3ASURT.js → chunk-C4MQFWCM.js} +2 -2
  19. package/dist/cli-bundle/chunks/chunk-CP43BHX3.js +31 -0
  20. package/dist/cli-bundle/chunks/{chunk-S4LPZ4TN.js → chunk-DOHZKPPC.js} +7 -7
  21. package/dist/cli-bundle/chunks/{chunk-LS3GI3H4.js → chunk-HESIRIVX.js} +2 -2
  22. package/dist/cli-bundle/chunks/chunk-JAE5MWLX.js +2 -0
  23. package/dist/cli-bundle/chunks/{chunk-335BZ75D.js → chunk-L5BU5FYN.js} +2 -2
  24. package/dist/cli-bundle/chunks/chunk-LI2HP5OX.js +3 -0
  25. package/dist/cli-bundle/chunks/chunk-LLTRUVKK.js +6 -0
  26. package/dist/cli-bundle/chunks/{chunk-X3URBPMV.js → chunk-MKW5LGVQ.js} +66 -62
  27. package/dist/cli-bundle/chunks/chunk-NH7QX2M2.js +8 -0
  28. package/dist/cli-bundle/chunks/{chunk-HRFGFIYU.js → chunk-NKO42JMT.js} +2 -2
  29. package/dist/cli-bundle/chunks/{chunk-7DEKAXVA.js → chunk-PE6CZ3PE.js} +2 -2
  30. package/dist/cli-bundle/chunks/chunk-RC6SSFOF.js +2 -0
  31. package/dist/cli-bundle/chunks/{chunk-TSQCUBUX.js → chunk-S4IZIMAO.js} +2 -2
  32. package/dist/cli-bundle/chunks/{chunk-UEGXWXUZ.js → chunk-XBUZENP4.js} +2 -2
  33. package/dist/cli-bundle/chunks/chunk-YGUUJHSR.js +2 -0
  34. package/dist/cli-bundle/chunks/chunk-YUTFMHSG.js +122 -0
  35. package/dist/cli-bundle/chunks/{chunk-SLC5UWCM.js → chunk-Z3LWNF7C.js} +2 -2
  36. package/dist/cli-bundle/chunks/item-revision-TUGZYYXX.js +2 -0
  37. package/dist/cli-bundle/chunks/item-transaction-2RRBAQN3.js +2 -0
  38. package/dist/cli-bundle/chunks/{mutation-admission-INMM3HHG.js → mutation-admission-FJ3D66PV.js} +2 -2
  39. package/dist/cli-bundle/chunks/{register-list-query-5Y5JKWU5.js → register-list-query-GXP77CX7.js} +11 -11
  40. package/dist/cli-bundle/chunks/register-mutation-XJ2DROUM.js +20 -0
  41. package/dist/cli-bundle/chunks/{register-operations-WJHZJFK2.js → register-operations-O5LERXM7.js} +2 -2
  42. package/dist/cli-bundle/chunks/{register-setup-RRFOS7IT.js → register-setup-4VOTYLL2.js} +2 -2
  43. package/dist/cli-bundle/chunks/{stage-E3MMV4TV.js → stage-ZDJL3FGL.js} +2 -2
  44. package/dist/cli-bundle/focused-chunks/chunk-2A3QZELL.js +26 -0
  45. package/dist/cli-bundle/focused-chunks/{chunk-MC7IE7D7.js → chunk-3HFENALW.js} +2 -2
  46. package/dist/cli-bundle/focused-chunks/chunk-4UOXVFJZ.js +2 -0
  47. package/dist/cli-bundle/focused-chunks/{chunk-7KK66ISG.js → chunk-5YPX3QKU.js} +2 -2
  48. package/dist/cli-bundle/focused-chunks/{chunk-CPMSL4HS.js → chunk-6U5HP6L3.js} +2 -2
  49. package/dist/cli-bundle/focused-chunks/chunk-DIEBSC76.js +3 -0
  50. package/dist/cli-bundle/focused-chunks/{chunk-WSOAASCY.js → chunk-I4YUZW3J.js} +8 -8
  51. package/dist/cli-bundle/focused-chunks/chunk-KBRSA4OK.js +44 -0
  52. package/dist/cli-bundle/focused-chunks/{chunk-AHWJPZSJ.js → chunk-KNF2QTEZ.js} +2 -2
  53. package/dist/cli-bundle/focused-chunks/chunk-LTPT5TE7.js +24 -0
  54. package/dist/cli-bundle/focused-chunks/chunk-O7K3X4LH.js +2 -0
  55. package/dist/cli-bundle/focused-chunks/chunk-P4EHEH4C.js +2 -0
  56. package/dist/cli-bundle/focused-chunks/chunk-P6TG33FV.js +82 -0
  57. package/dist/cli-bundle/focused-chunks/chunk-PL6EO4GJ.js +2 -0
  58. package/dist/cli-bundle/focused-chunks/chunk-PSLDGAEY.js +12 -0
  59. package/dist/cli-bundle/focused-chunks/chunk-SZ2BKK3M.js +2 -0
  60. package/dist/cli-bundle/focused-chunks/chunk-TSHRBPTI.js +2 -0
  61. package/dist/cli-bundle/focused-chunks/chunk-ULTSMJYF.js +91 -0
  62. package/dist/cli-bundle/focused-chunks/chunk-UNNLBJRI.js +2 -0
  63. package/dist/cli-bundle/focused-chunks/chunk-UUVRYIKA.js +2 -0
  64. package/dist/cli-bundle/focused-chunks/{chunk-F62XGAAY.js → chunk-WPXMPGTY.js} +2 -2
  65. package/dist/cli-bundle/focused-chunks/chunk-Z2QWZRSL.js +26 -0
  66. package/dist/cli-bundle/focused-chunks/item-revision-XNSRDTFB.js +2 -0
  67. package/dist/cli-bundle/focused-chunks/item-transaction-Q2Z7DDCR.js +2 -0
  68. package/dist/cli-bundle/focused-chunks/mutation-admission-QWC6MLTZ.js +2 -0
  69. package/dist/cli-bundle/focused-chunks/stage-NKH5SKSZ.js +2 -0
  70. package/dist/cli-bundle/main.js +27 -26
  71. package/dist/cli-bundle/sdk-authoring.js +1 -1
  72. package/dist/cli-bundle/sdk-contracts.js +4 -4
  73. package/dist/cli-bundle/sdk-core.js +1 -1
  74. package/dist/cli-bundle/sdk-governance.js +1 -1
  75. package/dist/cli-bundle/sdk-graph.js +1 -1
  76. package/dist/cli-bundle/sdk-merge.js +57 -57
  77. package/dist/cli-bundle/sdk-query.js +1 -1
  78. package/dist/cli-bundle/sdk-runtime.js +1 -1
  79. package/dist/cli-bundle/sdk-testing.js +1 -1
  80. package/dist/cli-bundle/sdk.js +12 -12
  81. package/dist/core/extensions/flag-definition-validation.js +1 -1
  82. package/dist/core/extensions/reserved-host-flags.js +1 -1
  83. package/dist/core/history/history-stream-policy.d.ts +12 -3
  84. package/dist/core/history/history-stream-policy.js +1 -1
  85. package/dist/core/history/projection.d.ts +7 -2
  86. package/dist/core/history/projection.js +1 -1
  87. package/dist/core/item/item-format.d.ts +5 -1
  88. package/dist/core/item/item-format.js +2 -2
  89. package/dist/core/lock/lock.d.ts +1 -1
  90. package/dist/core/lock/lock.js +1 -1
  91. package/dist/core/output/output.d.ts +10 -1
  92. package/dist/core/output/output.js +7 -7
  93. package/dist/core/search/providers.d.ts +3 -2
  94. package/dist/core/search/providers.js +1 -1
  95. package/dist/core/search/vector-stores.d.ts +3 -2
  96. package/dist/core/search/vector-stores.js +1 -1
  97. package/dist/core/sentry/instrument.d.ts +2 -1
  98. package/dist/core/sentry/instrument.js +1 -1
  99. package/dist/core/store/item-mutation-precondition.d.ts +58 -0
  100. package/dist/core/store/item-mutation-precondition.js +1 -1
  101. package/dist/mcp/tool-definitions.js +1 -1
  102. package/dist/sdk/annotations.d.ts +44 -1
  103. package/dist/sdk/annotations.js +1 -1
  104. package/dist/sdk/authoring.d.ts +6 -0
  105. package/dist/sdk/authoring.js +1 -1
  106. package/dist/sdk/cli-contracts/flag-contracts.d.ts +15 -0
  107. package/dist/sdk/cli-contracts/flag-contracts.js +1 -1
  108. package/dist/sdk/cli-contracts/flag-lexicon-contracts.js +1 -1
  109. package/dist/sdk/cli-contracts/runtime-contracts.d.ts +6 -0
  110. package/dist/sdk/cli-contracts/runtime-contracts.js +1 -1
  111. package/dist/sdk/cli-contracts/tool-parameter-tables.js +1 -1
  112. package/dist/sdk/cli-contracts/tool-schema.js +1 -1
  113. package/dist/sdk/command-line.d.ts +7 -2
  114. package/dist/sdk/command-line.js +1 -1
  115. package/dist/sdk/comments.d.ts +4 -2
  116. package/dist/sdk/comments.js +1 -1
  117. package/dist/sdk/completion/bash.js +1 -1
  118. package/dist/sdk/completion/fish.js +2 -1
  119. package/dist/sdk/completion/zsh.js +4 -1
  120. package/dist/sdk/context-intent-contracts.d.ts +5 -1
  121. package/dist/sdk/context-intent-contracts.js +1 -1
  122. package/dist/sdk/contracts.d.ts +3 -0
  123. package/dist/sdk/contracts.js +1 -1
  124. package/dist/sdk/core.d.ts +14 -0
  125. package/dist/sdk/core.js +1 -1
  126. package/dist/sdk/corpus-shape.d.ts +2 -2
  127. package/dist/sdk/corpus-shape.js +1 -1
  128. package/dist/sdk/define.d.ts +14 -8
  129. package/dist/sdk/define.js +1 -1
  130. package/dist/sdk/extension/command-options.d.ts +123 -0
  131. package/dist/sdk/extension/command-options.js +2 -0
  132. package/dist/sdk/extension-contracts.d.ts +1 -2
  133. package/dist/sdk/extension-contracts.js +1 -1
  134. package/dist/sdk/generated/generated-error-code-catalog-part-1.js +1 -1
  135. package/dist/sdk/generated/generated-error-code-catalog-part-2.js +1 -1
  136. package/dist/sdk/governance.d.ts +8 -0
  137. package/dist/sdk/governance.js +1 -1
  138. package/dist/sdk/graph.d.ts +5 -0
  139. package/dist/sdk/graph.js +1 -1
  140. package/dist/sdk/index.d.ts +61 -1
  141. package/dist/sdk/index.js +1 -1
  142. package/dist/sdk/learnings.d.ts +4 -2
  143. package/dist/sdk/learnings.js +1 -1
  144. package/dist/sdk/lifecycle/close.js +1 -1
  145. package/dist/sdk/lifecycle/item-revision.d.ts +15 -4
  146. package/dist/sdk/lifecycle/item-revision.js +1 -1
  147. package/dist/sdk/lifecycle/restore.d.ts +1 -1
  148. package/dist/sdk/merge.d.ts +3 -0
  149. package/dist/sdk/merge.js +1 -1
  150. package/dist/sdk/notes.d.ts +4 -2
  151. package/dist/sdk/notes.js +1 -1
  152. package/dist/sdk/output/list-envelope.d.ts +18 -7
  153. package/dist/sdk/output/list-envelope.js +1 -1
  154. package/dist/sdk/output-projection.js +1 -1
  155. package/dist/sdk/public-surface.json +1 -1
  156. package/dist/sdk/query/get.d.ts +16 -6
  157. package/dist/sdk/query/get.js +1 -1
  158. package/dist/sdk/query/list.d.ts +5 -1
  159. package/dist/sdk/query/list.js +1 -1
  160. package/dist/sdk/query/search/response.js +1 -1
  161. package/dist/sdk/query/search/semantic.d.ts +11 -3
  162. package/dist/sdk/query/search/semantic.js +1 -1
  163. package/dist/sdk/query/search-rendering.d.ts +9 -3
  164. package/dist/sdk/query/search-rendering.js +1 -1
  165. package/dist/sdk/query.d.ts +11 -0
  166. package/dist/sdk/query.js +1 -1
  167. package/dist/sdk/read-output/continuation.d.ts +8 -0
  168. package/dist/sdk/read-output/continuation.js +1 -1
  169. package/dist/sdk/read-output/options.d.ts +1 -1
  170. package/dist/sdk/read-output/options.js +1 -1
  171. package/dist/sdk/read-output/surfaces.js +1 -1
  172. package/dist/sdk/read-output/tail-retention.d.ts +34 -0
  173. package/dist/sdk/read-output/tail-retention.js +2 -0
  174. package/dist/sdk/read-output-budget.d.ts +14 -2
  175. package/dist/sdk/read-output-budget.js +1 -1
  176. package/dist/sdk/read-output-contracts.d.ts +20 -4
  177. package/dist/sdk/read-output-contracts.js +1 -1
  178. package/dist/sdk/read-output-rows.d.ts +7 -3
  179. package/dist/sdk/read-output-rows.js +1 -1
  180. package/dist/sdk/runtime-input.js +1 -1
  181. package/dist/sdk/runtime.d.ts +26 -3
  182. package/dist/sdk/runtime.js +1 -1
  183. package/dist/sdk/test/execution.d.ts +29 -2
  184. package/dist/sdk/test/execution.js +1 -1
  185. package/dist/sdk/testing.d.ts +14 -1
  186. package/dist/sdk/testing.js +1 -1
  187. package/dist/sdk/traceability/source-traceability.d.ts +4 -1
  188. package/dist/sdk/traceability/source-traceability.js +1 -1
  189. package/dist/sdk/workspace-recipe.d.ts +2 -2
  190. package/dist/sdk/workspace-recipe.js +1 -1
  191. package/docs/ARCHITECTURE.md +2 -1
  192. package/docs/CLOSE_EVIDENCE_RECOVERY.md +36 -2
  193. package/docs/COMMANDS.md +14 -2
  194. package/docs/DIAGNOSTIC_OUTPUT_CONTRACTS.md +1 -1
  195. package/docs/EXTENSIONS.md +1 -1
  196. package/docs/GET_READ_EVIDENCE.md +24 -3
  197. package/docs/MCP_OPTION_CONFORMANCE.md +13 -0
  198. package/docs/README.md +1 -1
  199. package/docs/READ_OUTPUT_CONTRACTS.md +78 -0
  200. package/docs/RELEASING.md +17 -0
  201. package/docs/SDK.md +124 -9
  202. package/docs/SDK_CONTEXT_INTEGRITY.md +2 -0
  203. package/docs/agent-task-token-baseline.json +1 -1
  204. package/docs/generated/FLAG_LEXICON_BUDGETS.md +6 -6
  205. package/marketplace.json +1 -1
  206. package/package.json +2 -1
  207. package/packages/pm-beads/package.json +1 -1
  208. package/packages/pm-calendar/package.json +1 -1
  209. package/packages/pm-command-kit/package.json +1 -1
  210. package/packages/pm-digital-twin/package.json +1 -1
  211. package/packages/pm-governance-audit/package.json +1 -1
  212. package/packages/pm-guide-shell/package.json +1 -1
  213. package/packages/pm-kanban/package.json +1 -1
  214. package/packages/pm-lifecycle-hooks/package.json +1 -1
  215. package/packages/pm-linked-test-adapters/package.json +1 -1
  216. package/packages/pm-search-advanced/package.json +1 -1
  217. package/packages/pm-templates/package.json +1 -1
  218. package/packages/pm-todos/package.json +1 -1
  219. package/packages/pm-vcs/package.json +1 -1
  220. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
  221. package/plugins/pm-claude/package.json +1 -1
  222. package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
  223. package/plugins/pm-codex/package.json +1 -1
  224. package/plugins/pm-codex/plugin.json +1 -1
  225. package/runtime-dependencies.json +1 -1
  226. package/dist/cli/after-command-context-usage.d.ts +0 -21
  227. package/dist/cli/argv-utils.d.ts +0 -12
  228. package/dist/cli/bootstrap-args.d.ts +0 -6
  229. package/dist/cli/bundle-integrity.d.ts +0 -49
  230. package/dist/cli/command-namespaces.d.ts +0 -9
  231. package/dist/cli/commander-usage.d.ts +0 -73
  232. package/dist/cli/commands/annotations/comments.d.ts +0 -2
  233. package/dist/cli/commands/annotations/docs.d.ts +0 -6
  234. package/dist/cli/commands/annotations/files.d.ts +0 -6
  235. package/dist/cli/commands/annotations/learnings.d.ts +0 -2
  236. package/dist/cli/commands/annotations/notes.d.ts +0 -2
  237. package/dist/cli/commands/extension/describe.d.ts +0 -2
  238. package/dist/cli/commands/extension/extension.d.ts +0 -6
  239. package/dist/cli/commands/extension/scaffold.d.ts +0 -2
  240. package/dist/cli/commands/extension/shared.d.ts +0 -2
  241. package/dist/cli/commands/governance/gc.d.ts +0 -6
  242. package/dist/cli/commands/governance/health.d.ts +0 -6
  243. package/dist/cli/commands/governance/telemetry.d.ts +0 -6
  244. package/dist/cli/commands/governance/validate.d.ts +0 -9
  245. package/dist/cli/commands/history/activity.d.ts +0 -6
  246. package/dist/cli/commands/history/history-compact.d.ts +0 -7
  247. package/dist/cli/commands/history/history-redact.d.ts +0 -8
  248. package/dist/cli/commands/history/history-repair.d.ts +0 -7
  249. package/dist/cli/commands/history/history.d.ts +0 -2
  250. package/dist/cli/commands/history/restore.d.ts +0 -6
  251. package/dist/cli/commands/lifecycle/append.d.ts +0 -6
  252. package/dist/cli/commands/lifecycle/claim.d.ts +0 -2
  253. package/dist/cli/commands/lifecycle/close-many.d.ts +0 -2
  254. package/dist/cli/commands/lifecycle/close.d.ts +0 -6
  255. package/dist/cli/commands/lifecycle/copy.d.ts +0 -6
  256. package/dist/cli/commands/lifecycle/create.d.ts +0 -10
  257. package/dist/cli/commands/lifecycle/delete.d.ts +0 -6
  258. package/dist/cli/commands/lifecycle/focus.d.ts +0 -6
  259. package/dist/cli/commands/lifecycle/plan.d.ts +0 -9
  260. package/dist/cli/commands/lifecycle/update-many.d.ts +0 -6
  261. package/dist/cli/commands/lifecycle/update.d.ts +0 -10
  262. package/dist/cli/commands/query/aggregate.d.ts +0 -2
  263. package/dist/cli/commands/query/context.d.ts +0 -6
  264. package/dist/cli/commands/query/deps.d.ts +0 -6
  265. package/dist/cli/commands/query/duplicates.d.ts +0 -6
  266. package/dist/cli/commands/query/eval.d.ts +0 -6
  267. package/dist/cli/commands/query/get.d.ts +0 -6
  268. package/dist/cli/commands/query/graph.d.ts +0 -7
  269. package/dist/cli/commands/query/list.d.ts +0 -6
  270. package/dist/cli/commands/query/next.d.ts +0 -6
  271. package/dist/cli/commands/query/search.d.ts +0 -6
  272. package/dist/cli/commands/query/stats.d.ts +0 -6
  273. package/dist/cli/commands/test/test-all.d.ts +0 -6
  274. package/dist/cli/commands/test/test-runs.d.ts +0 -6
  275. package/dist/cli/commands/test/test.d.ts +0 -6
  276. package/dist/cli/commands/workspace/config.d.ts +0 -6
  277. package/dist/cli/commands/workspace/contracts.d.ts +0 -2
  278. package/dist/cli/commands/workspace/init.d.ts +0 -6
  279. package/dist/cli/commands/workspace/merge.d.ts +0 -8
  280. package/dist/cli/commands/workspace/profile.d.ts +0 -6
  281. package/dist/cli/commands/workspace/schema.d.ts +0 -7
  282. package/dist/cli/commands/workspace/upgrade.d.ts +0 -2
  283. package/dist/cli/context-intent-invocation.d.ts +0 -2
  284. package/dist/cli/description-stdin.d.ts +0 -2
  285. package/dist/cli/error-guidance.d.ts +0 -276
  286. package/dist/cli/expected-revisions.d.ts +0 -55
  287. package/dist/cli/extension-command-help.d.ts +0 -137
  288. package/dist/cli/extension-command-options.d.ts +0 -37
  289. package/dist/cli/extension-command-options.js +0 -2
  290. package/dist/cli/extension-recovery.d.ts +0 -31
  291. package/dist/cli/help-content.d.ts +0 -57
  292. package/dist/cli/help-json-payload.d.ts +0 -83
  293. package/dist/cli/invocation-profile.d.ts +0 -26
  294. package/dist/cli/main.d.ts +0 -263
  295. package/dist/cli/migration-gates.d.ts +0 -55
  296. package/dist/cli/option-values.d.ts +0 -3
  297. package/dist/cli/preflight-warnings.d.ts +0 -11
  298. package/dist/cli/register-annotations.d.ts +0 -11
  299. package/dist/cli/register-assurance.d.ts +0 -8
  300. package/dist/cli/register-files-lookup.d.ts +0 -9
  301. package/dist/cli/register-history-activity.d.ts +0 -8
  302. package/dist/cli/register-history-author.d.ts +0 -8
  303. package/dist/cli/register-history-maintenance.d.ts +0 -9
  304. package/dist/cli/register-list-query.d.ts +0 -27
  305. package/dist/cli/register-mutation-options.d.ts +0 -10
  306. package/dist/cli/register-mutation.d.ts +0 -16
  307. package/dist/cli/register-operations.d.ts +0 -85
  308. package/dist/cli/register-setup.d.ts +0 -16
  309. package/dist/cli/register-structured-mutation.d.ts +0 -15
  310. package/dist/cli/registration-helpers.d.ts +0 -2
  311. package/dist/cli/runtime/activation.d.ts +0 -51
  312. package/dist/cli/runtime/field-route-retry.d.ts +0 -15
  313. package/dist/cli/runtime/invocation-options.d.ts +0 -43
  314. package/dist/cli/runtime/projection-retry.d.ts +0 -9
  315. package/dist/cli/runtime/selection.d.ts +0 -35
  316. package/dist/cli/runtime/telemetry-outcome.d.ts +0 -20
  317. package/dist/cli/runtime-compatibility-boundary.d.ts +0 -17
  318. package/dist/cli/schema/registration.d.ts +0 -4
  319. package/dist/cli/schema-registration-helpers.d.ts +0 -24
  320. package/dist/cli/search-refresh.d.ts +0 -2
  321. package/dist/cli/stats-analytics-json.d.ts +0 -9
  322. package/dist/cli/telemetry-flush.d.ts +0 -2
  323. package/dist/cli-bundle/chunks/chunk-5GWEY4P6.js +0 -122
  324. package/dist/cli-bundle/chunks/chunk-6VRX2CM7.js +0 -2
  325. package/dist/cli-bundle/chunks/chunk-7ZRCYESH.js +0 -116
  326. package/dist/cli-bundle/chunks/chunk-AUEKTX7V.js +0 -6
  327. package/dist/cli-bundle/chunks/chunk-FRNMQM45.js +0 -2
  328. package/dist/cli-bundle/chunks/chunk-HNGLDMSZ.js +0 -9
  329. package/dist/cli-bundle/chunks/chunk-QNWUIPBO.js +0 -31
  330. package/dist/cli-bundle/chunks/chunk-WC4M2H6R.js +0 -8
  331. package/dist/cli-bundle/chunks/chunk-YKXATU2G.js +0 -3
  332. package/dist/cli-bundle/chunks/item-revision-OJJVPQY7.js +0 -2
  333. package/dist/cli-bundle/chunks/item-transaction-TBKEATN6.js +0 -2
  334. package/dist/cli-bundle/chunks/register-mutation-MDSUU3G7.js +0 -20
  335. package/dist/cli-bundle/focused-chunks/chunk-2KTJY7BV.js +0 -44
  336. package/dist/cli-bundle/focused-chunks/chunk-4PW5XWVI.js +0 -2
  337. package/dist/cli-bundle/focused-chunks/chunk-C6P6HPCX.js +0 -2
  338. package/dist/cli-bundle/focused-chunks/chunk-CZM75DE3.js +0 -2
  339. package/dist/cli-bundle/focused-chunks/chunk-D2TBEBNW.js +0 -3
  340. package/dist/cli-bundle/focused-chunks/chunk-E56OXRYH.js +0 -2
  341. package/dist/cli-bundle/focused-chunks/chunk-G4QP365K.js +0 -2
  342. package/dist/cli-bundle/focused-chunks/chunk-G5PJCR7R.js +0 -2
  343. package/dist/cli-bundle/focused-chunks/chunk-GS3JC5UU.js +0 -23
  344. package/dist/cli-bundle/focused-chunks/chunk-LW64TINU.js +0 -3
  345. package/dist/cli-bundle/focused-chunks/chunk-M6V7UMWL.js +0 -26
  346. package/dist/cli-bundle/focused-chunks/chunk-MG7C3JUY.js +0 -2
  347. package/dist/cli-bundle/focused-chunks/chunk-MK4HV4JO.js +0 -2
  348. package/dist/cli-bundle/focused-chunks/chunk-O7EI33NP.js +0 -91
  349. package/dist/cli-bundle/focused-chunks/chunk-RFTJZ5VB.js +0 -2
  350. package/dist/cli-bundle/focused-chunks/chunk-SNOXXRSJ.js +0 -2
  351. package/dist/cli-bundle/focused-chunks/chunk-UPJUTP2V.js +0 -12
  352. package/dist/cli-bundle/focused-chunks/chunk-VWWTIX5L.js +0 -3
  353. package/dist/cli-bundle/focused-chunks/chunk-XHOBYCVE.js +0 -26
  354. package/dist/cli-bundle/focused-chunks/chunk-YMGB2O4E.js +0 -81
  355. package/dist/cli-bundle/focused-chunks/item-revision-CTDO4H3I.js +0 -2
  356. package/dist/cli-bundle/focused-chunks/item-transaction-H2XACBOP.js +0 -2
  357. package/dist/cli-bundle/focused-chunks/mutation-admission-4WM7TNHZ.js +0 -2
  358. package/dist/cli-bundle/focused-chunks/stage-WV7QXR4C.js +0 -2
  359. package/dist/cli.d.ts +0 -13
  360. package/dist/core/checkpoint/checkpoint-gc.d.ts +0 -61
  361. package/dist/core/checkpoint/mutation-context.d.ts +0 -10
  362. package/dist/core/diagnostics/remediation.d.ts +0 -52
  363. package/dist/core/extensions/activation-transaction.d.ts +0 -22
  364. package/dist/core/extensions/command-visibility-tier.d.ts +0 -8
  365. package/dist/core/extensions/exporter-output-contract.d.ts +0 -12
  366. package/dist/core/extensions/extension-candidate.d.ts +0 -26
  367. package/dist/core/extensions/extension-runtime-helpers.d.ts +0 -16
  368. package/dist/core/extensions/module-graph-snapshot.d.ts +0 -19
  369. package/dist/core/extensions/preflight-ownership.d.ts +0 -5
  370. package/dist/core/extensions/read-output-contract.d.ts +0 -5
  371. package/dist/core/extensions/reserved-host-flags.d.ts +0 -18
  372. package/dist/core/extensions/service-ownership.d.ts +0 -8
  373. package/dist/core/extensions/version-diagnostics.d.ts +0 -2
  374. package/dist/core/fs/atomic-create.d.ts +0 -7
  375. package/dist/core/fs/index.d.ts +0 -6
  376. package/dist/core/fs/path-utils.d.ts +0 -2
  377. package/dist/core/history/drift-cache.d.ts +0 -4
  378. package/dist/core/history/drift-scan.d.ts +0 -51
  379. package/dist/core/history/index.d.ts +0 -6
  380. package/dist/core/history/tombstone.d.ts +0 -3
  381. package/dist/core/history/version-address.d.ts +0 -13
  382. package/dist/core/item/index.d.ts +0 -9
  383. package/dist/core/item/item-type-definition.d.ts +0 -51
  384. package/dist/core/item/toon-decode.d.ts +0 -25
  385. package/dist/core/lock/index.d.ts +0 -6
  386. package/dist/core/lock/lock-confinement.d.ts +0 -55
  387. package/dist/core/lock/lock-gc.d.ts +0 -93
  388. package/dist/core/output/mutation-projection.d.ts +0 -13
  389. package/dist/core/output/query-summary.d.ts +0 -30
  390. package/dist/core/search/staleness.d.ts +0 -23
  391. package/dist/core/sentry/sensitive-assignments.d.ts +0 -9
  392. package/dist/core/shared/conflict-markers.d.ts +0 -18
  393. package/dist/core/shared/index.d.ts +0 -9
  394. package/dist/core/shared/memo.d.ts +0 -7
  395. package/dist/core/store/index.d.ts +0 -9
  396. package/dist/core/store/settings-concurrency.d.ts +0 -7
  397. package/dist/core/telemetry/read-sampling.d.ts +0 -8
  398. package/dist/core/test/item-test-run-tracking.d.ts +0 -12
  399. package/dist/core/validate/estimate-defaults.d.ts +0 -21
  400. package/dist/core/validate/linked-artifact-reference.d.ts +0 -20
  401. package/dist/mcp/http-server.d.ts +0 -60
  402. package/dist/mcp/legacy-adapter.d.ts +0 -59
  403. package/dist/mcp/runtime-capabilities.d.ts +0 -57
  404. package/dist/mcp/server.d.ts +0 -101
  405. package/dist/sdk/cli-contracts/bootstrap-command-scanner.d.ts +0 -23
  406. package/dist/sdk/cli-contracts/registration-helpers.d.ts +0 -123
  407. package/dist/sdk/cli-contracts/schemas/assurance-definition.d.ts +0 -796
  408. package/dist/sdk/cli-contracts/string-lists.d.ts +0 -9
  409. package/dist/sdk/cli-contracts/tool-parameter-tables.d.ts +0 -35
  410. package/dist/sdk/context/usage-egress.d.ts +0 -9
  411. package/dist/sdk/dependencies/context-budget-recovery.d.ts +0 -21
  412. package/dist/sdk/dependency-flag-validation.d.ts +0 -32
  413. package/dist/sdk/extension/author-manifest.d.ts +0 -22
  414. package/dist/sdk/extension/bundled-catalog.d.ts +0 -35
  415. package/dist/sdk/extension/concurrency.d.ts +0 -7
  416. package/dist/sdk/extension/copy-scope.d.ts +0 -2
  417. package/dist/sdk/extension/custom-field-collisions.d.ts +0 -6
  418. package/dist/sdk/extension/install-receipts.d.ts +0 -7
  419. package/dist/sdk/extension/install-snapshot.d.ts +0 -34
  420. package/dist/sdk/extension/managed-update-status.d.ts +0 -3
  421. package/dist/sdk/extension/runtime-summary.d.ts +0 -9
  422. package/dist/sdk/extension/scaffold.d.ts +0 -38
  423. package/dist/sdk/generated/error-code-catalog-rows.d.ts +0 -39
  424. package/dist/sdk/generated/generated-error-code-catalog-part-1.d.ts +0 -8
  425. package/dist/sdk/generated/generated-error-code-catalog-part-2.d.ts +0 -8
  426. package/dist/sdk/governance/assurance-limits.d.ts +0 -7
  427. package/dist/sdk/governance/defect-recurrence-signals.d.ts +0 -10
  428. package/dist/sdk/governance/health-merge-evidence.d.ts +0 -23
  429. package/dist/sdk/governance/tracked-runtime-cache.d.ts +0 -24
  430. package/dist/sdk/governance/validate-history-drift.d.ts +0 -7
  431. package/dist/sdk/history/attestation-scan.d.ts +0 -16
  432. package/dist/sdk/history-mcp.d.ts +0 -17
  433. package/dist/sdk/lifecycle/checkpoint-rollback.d.ts +0 -15
  434. package/dist/sdk/lifecycle/core-field-recovery.d.ts +0 -33
  435. package/dist/sdk/lifecycle/core-item-fields.d.ts +0 -6
  436. package/dist/sdk/lifecycle/event-validation-messages.d.ts +0 -6
  437. package/dist/sdk/lifecycle/hierarchy-mutation-lock.d.ts +0 -15
  438. package/dist/sdk/lifecycle/legacy-none-tokens.d.ts +0 -71
  439. package/dist/sdk/lifecycle/mcp-actions.d.ts +0 -24
  440. package/dist/sdk/lifecycle/metadata-normalizers.d.ts +0 -8
  441. package/dist/sdk/lifecycle/mutation-facet-contracts.d.ts +0 -6
  442. package/dist/sdk/lifecycle/mutation-option-validation.d.ts +0 -2
  443. package/dist/sdk/lifecycle/recurrence-parsers.d.ts +0 -34
  444. package/dist/sdk/lifecycle/release-handoff.d.ts +0 -12
  445. package/dist/sdk/lifecycle/repeatable-metadata-parsers.d.ts +0 -18
  446. package/dist/sdk/lifecycle/repeated-terminal-state.d.ts +0 -45
  447. package/dist/sdk/merge/abandoned-receipts.d.ts +0 -15
  448. package/dist/sdk/merge/history-scalar-rebase.d.ts +0 -9
  449. package/dist/sdk/merge/ignored-artifacts.d.ts +0 -13
  450. package/dist/sdk/merge/indexed-receipt-blobs.d.ts +0 -4
  451. package/dist/sdk/merge/receipt-file-boundary.d.ts +0 -23
  452. package/dist/sdk/merge/settlement-hook.d.ts +0 -12
  453. package/dist/sdk/merge/stage.d.ts +0 -13
  454. package/dist/sdk/merge/worktree-config.d.ts +0 -11
  455. package/dist/sdk/query/light-metadata.d.ts +0 -3
  456. package/dist/sdk/query/window-pagination.d.ts +0 -20
  457. package/dist/sdk/read-output/extension.d.ts +0 -7
  458. package/dist/sdk/read-output/provenance.d.ts +0 -20
  459. package/dist/sdk/read-output/surfaces.d.ts +0 -27
  460. package/dist/sdk/runtime/actions.d.ts +0 -4
  461. package/dist/sdk/runtime/mutation-admission.d.ts +0 -2
  462. package/dist/sdk/runtime/mutation-value-validation.d.ts +0 -16
  463. package/dist/sdk/runtime/schema.d.ts +0 -4
  464. package/dist/sdk/runtime-action-aliases.d.ts +0 -7
  465. package/dist/sdk/runtime-extended-actions.d.ts +0 -27
  466. package/dist/sdk/runtime-stats-options.d.ts +0 -9
  467. package/dist/sdk/test/command-args.d.ts +0 -4
  468. package/dist/sdk/test/command-resolution.d.ts +0 -5
  469. package/dist/sdk/test/entry.d.ts +0 -18
  470. package/dist/sdk/test/execution-receipts.d.ts +0 -34
  471. package/dist/sdk/test/receipt-index-snapshot.d.ts +0 -2
  472. package/dist/sdk/test/workspace-snapshot.d.ts +0 -11
  473. package/dist/sdk/traceability/runtime-files-lookup.d.ts +0 -8
  474. package/docs/generated/REFUSAL_CLOSURE_CENSUS.md +0 -472
@@ -1,55 +0,0 @@
1
- import { type FileHandle } from "node:fs/promises";
2
- import { PmCliError } from "../shared/errors.js";
3
- /** Typed refusal code for a lock path that leaves, or could leave, the tracker. */
4
- export declare const LOCK_PATH_UNSAFE_CODE = "lock_path_unsafe";
5
- /**
6
- * Device and inode identity of a confined lock directory or lock entry, as
7
- * exact bigints: numeric stats lose precision above Number.MAX_SAFE_INTEGER
8
- * (64-bit file ids on NTFS, ReFS and some network filesystems), where two
9
- * distinct entries could compare equal.
10
- */
11
- export interface LockEntryIdentity {
12
- /** Device that holds the entry. */
13
- readonly dev:bigint;
14
- /** Inode of the entry on that device. */
15
- readonly ino:bigint;
16
- }
17
- /** Stable failure classes reported in the `reason` of a lock_path_unsafe refusal. */
18
- export type LockPathUnsafeReason = "lock_path_outside_tracker" | "lock_directory_symlink" | "lock_directory_not_directory" | "lock_entry_symlink" | "lock_directory_replaced";
19
- /** Build the typed refusal for a lock path that cannot be proven confined. */
20
- export declare function buildLockPathUnsafeError(params:{
21
- pmRoot:string;
22
- lockPath:string;
23
- id:string;
24
- reason:LockPathUnsafeReason;
25
- component?:string;
26
- }):PmCliError;
27
- /**
28
- * Verify that every path component between the tracker root and the lock's
29
- * parent directory is a real directory, never a symlink. Returns the parent's
30
- * identity. A missing component returns null when `allowMissing` (the caller's
31
- * own creation or absence handling then applies) and otherwise rethrows the
32
- * native error. The tracker root itself may be a symlink; confinement is
33
- * relative to it.
34
- */
35
- export declare function inspectConfinedLockDirectory(pmRoot:string,lockPath:string,id:string,allowMissing:false):Promise<LockEntryIdentity>;
36
- /** Inspect the lock directory, returning null when a component is missing and absence is allowed. */
37
- export declare function inspectConfinedLockDirectory(pmRoot:string,lockPath:string,id:string,allowMissing?:boolean):Promise<LockEntryIdentity | null>;
38
- /** Refuse a lock entry that is itself a symlink instead of waiting on it as a peer's lock. */
39
- export declare function assertLockEntryNotSymlink(pmRoot:string,lockPath:string,id:string):Promise<void>;
40
- /**
41
- * Prove that the lock just created through `handle` is the entry at `lockPath`
42
- * inside the same confined directory observed before creation. A directory
43
- * swapped between the check and the create means the lock landed elsewhere, so
44
- * the acquisition refuses with lock_path_unsafe instead of returning a lease
45
- * that excludes no one. The stray entry is left in place: Node has no
46
- * descriptor-relative unlink, and a path-based unlink after the identity check
47
- * could delete a same-name replacement outside the tracker.
48
- */
49
- export declare function verifyConfinedLockCreation(params:{
50
- pmRoot:string;
51
- lockPath:string;
52
- id:string;
53
- handle:FileHandle;
54
- directory:LockEntryIdentity;
55
- }):Promise<void>;
@@ -1,93 +0,0 @@
1
- /**
2
- * lock-gc.ts — Stale lock file garbage collector.
3
- *
4
- * Safety-first policy: if a lock file cannot be read or parsed, it is RETAINED
5
- * rather than deleted. We only remove locks whose staleness can be conclusively
6
- * determined from the embedded lease or positive same-host owner-death evidence.
7
- * Deletion is revalidated under the writer cleanup gate.
8
- *
9
- * Staleness formula: (now_ms - Date.parse(created_at)) > ttl_seconds * 1000
10
- * Zero ttl means any lock older than 0 ms is stale. Negative ttl means always stale.
11
- */
12
- /** Documents the stale lock scan entry payload exchanged by command, SDK, and package integrations. */
13
- export interface StaleLockScanEntry {
14
- /** e.g. "pm-abc1.lock" */
15
- file:string;
16
- /** parsed id, or null if unparseable */
17
- id:string | null;
18
- /** Value that configures or reports owner for this contract. */
19
- owner:string | null;
20
- /** ISO 8601 timestamp recording when created occurred. */
21
- created_at:string | null;
22
- /** Value that configures or reports ttl seconds for this contract. */
23
- ttl_seconds:number | null;
24
- /** floor((now - created_at)/1000), null if unparseable */
25
- age_seconds:number | null;
26
- /** True only when lease expiry or positive original-owner death is established. */
27
- stale:boolean;
28
- /** Value that configures or reports reason for this contract. */
29
- reason:"expired" | "owner_dead" | "active" | "unparseable";
30
- /** Verified original-process liveness, when the receipt supports same-host observation. */
31
- owner_state?:"alive" | "dead" | "unknown";
32
- /** Valid recorded PID, available for diagnosis without revealing host coordinates. */
33
- pid?:number;
34
- }
35
- /** Documents the lock gc hooks payload exchanged by command, SDK, and package integrations. */
36
- export interface LockGcHooks {
37
- /** Value that configures or reports on read for this contract. */
38
- onRead?:(lockPath:string) => Promise<string[]> | string[];
39
- /** Value that configures or reports on write for this contract. */
40
- onWrite?:(lockPath:string) => Promise<string[]> | string[];
41
- }
42
- /** Documents the lock gc options payload exchanged by command, SDK, and package integrations. */
43
- export interface LockGcOptions {
44
- /** Value that configures or reports dry run for this contract. */
45
- dryRun:boolean;
46
- /** epoch ms; defaults to Date.now() — injectable for deterministic tests */
47
- now?:number;
48
- /** Value that configures or reports hooks for this contract. */
49
- hooks?:LockGcHooks;
50
- }
51
- /** Documents the lock gc result payload exchanged by command, SDK, and package integrations. */
52
- export interface LockGcResult {
53
- /** number of *.lock files examined */
54
- scanned:number;
55
- /** relative paths like "locks/pm-abc1.lock" (removed, or would-remove under dryRun) */
56
- removed:string[];
57
- /** relative paths retained (active OR unparseable — never delete what we can't reason about) */
58
- retained:string[];
59
- /** Value that configures or reports warnings for this contract. */
60
- warnings:string[];
61
- /** one per scanned *.lock file, sorted by file name asc */
62
- entries:StaleLockScanEntry[];
63
- }
64
- /** Fine-grained classification outcome for one readable lock file's content. `unparseable_json` and `invalid_timestamp` both surface as the coarse `reason: "unparseable"` on the scan entry (gc retains both), but stay distinct here so callers can emit precise warnings. */
65
- export type LockClassificationDetail = "active" | "expired" | "owner_dead" | "unparseable_json" | "invalid_timestamp";
66
- /** Documents the lock content classification payload exchanged by command, SDK, and package integrations. */
67
- export interface LockContentClassification {
68
- /** Value that configures or reports detail for this contract. */
69
- detail:LockClassificationDetail;
70
- /** Value that configures or reports entry for this contract. */
71
- entry:StaleLockScanEntry;
72
- }
73
- /** Pure TTL classification retained for callers that cannot observe the owner process. Health and GC additionally share conservative same-host liveness observation. */
74
- export declare function classifyLockContent(file:string,raw:string,nowMs:number):LockContentClassification;
75
- /** Documents the lock health scan payload exchanged by command, SDK, and package integrations. */
76
- export interface LockHealthScan {
77
- /** number of *.lock files examined (ghost files that vanish mid-scan are skipped) */
78
- scanned:number;
79
- /** Number of active lock entries represented by this result. */
80
- active_lock_count:number;
81
- /** Number of stale lock entries represented by this result. */
82
- stale_lock_count:number;
83
- /** Number of unreadable lock entries represented by this result. */
84
- unreadable_lock_count:number;
85
- /** invalid JSON, wrong shape, or an unparseable created_at timestamp */
86
- unparseable_lock_count:number;
87
- /** At most twenty verified dead-owner receipts for actionable full health diagnosis. */
88
- owner_dead_lock_samples?:StaleLockScanEntry[];
89
- }
90
- /** Read-only locks scan for `pm health`: classifies every lock file with the same policy `pm gc --scope locks` uses but never removes anything. */
91
- export declare function scanLockHealth(pmRoot:string,now?:number):Promise<LockHealthScan>;
92
- /** Implements run lock gc for the public runtime surface of this module. */
93
- export declare function runLockGc(pmRoot:string,options:LockGcOptions):Promise<LockGcResult>;
@@ -1,13 +0,0 @@
1
- /** Controls whether mutation output keeps full changed fields or compact counts. */
2
- export type ChangedFieldsMode = "full" | "compact";
3
- /** Documents the mutation projection options payload exchanged by command, SDK, and package integrations. */
4
- export interface MutationProjectionOptions {
5
- /** Defaults to "full" (unchanged output). "compact" drops the array, keeping a count. */
6
- changedFields?:ChangedFieldsMode;
7
- /** Return the default agent envelope: id, status, changed-field count, and close reason. */
8
- compactEnvelope?:boolean;
9
- /** Return only id/status for single-item mutation envelopes. */
10
- idOnly?:boolean;
11
- }
12
- /** Returns a copy of a mutation result with the envelope `changed_fields` arrays replaced by `changed_field_count` when compact mode is requested. Inputs that are not a mutation envelope (or full mode) are returned unchanged (same reference). */
13
- export declare function projectMutationResult(result:unknown,options?:MutationProjectionOptions):unknown;
@@ -1,30 +0,0 @@
1
- /**
2
- * Applied-query echo for agent-facing list/search results (pm-rmjy).
3
- *
4
- * Narrow MCP tools accept filters nested inside `options: {}`, so an agent has
5
- * no structured confirmation of which filters were actually applied or which
6
- * projection mode resolved. `withQuerySummary` attaches a small `query_summary`
7
- * block ({ filters, projection }) to the result so the feedback loop closes
8
- * without the agent re-echoing its inputs.
9
- */
10
- /** Compact echo of filters and projection mode applied to list/search responses. */
11
- export interface QuerySummary {
12
- /** Value that configures or reports filters for this contract. */
13
- filters:Record<string,unknown>;
14
- /** Value that configures or reports projection for this contract. */
15
- projection:string;
16
- }
17
- /** Resolve the projection label implied by list/search projection options. Used when the result payload itself carries no projection metadata (the compact summary paths omit it for token efficiency). */
18
- export declare function resolveQueryProjectionLabel(options:Record<string,unknown>):string;
19
- /**
20
- * Attach a `query_summary` to a list/search result.
21
- *
22
- * `brief` is the most specific requested label, so it wins outright (the list
23
- * command reports brief as projection mode "compact" with narrowed fields).
24
- * Otherwise the result's own `projection.mode` states the resolved mode for
25
- * verbose payloads, and the options-derived label covers the compact summary
26
- * paths that omit projection metadata.
27
- */
28
- export declare function withQuerySummary<T extends Record<string,unknown>>(result:T,options:Record<string,unknown>):T & {
29
- query_summary:QuerySummary;
30
- };
@@ -1,23 +0,0 @@
1
- /**
2
- * Vectorization-ledger staleness helpers.
3
- *
4
- * The vectorization status ledger at `search/vectorization-status.json`
5
- * records the `updated_at` of every item that has been embedded into the
6
- * vector store. When an item's current `updated_at` differs from the
7
- * ledger's recorded value (or the item is missing from the ledger
8
- * entirely), the vector store is stale for that item and a `pm reindex`
9
- * is needed.
10
- *
11
- * This module exposes the comparison helper as a tiny pure function so it
12
- * can be reused by `pm health` (gates), `pm reindex`, and `pm search`
13
- * (query-time staleness warning) without re-importing each other.
14
- */
15
- /** Minimal item shape required to compare vectorization freshness. */
16
- export interface ItemWithUpdatedAt {
17
- /** Stable identifier used to reference this record across commands and storage. */
18
- id:string;
19
- /** ISO 8601 timestamp recording when updated occurred. */
20
- updated_at:string;
21
- }
22
- /** Return the sorted list of item IDs whose current `updated_at` does not match the ledger entry. Missing ledger entries count as stale. */
23
- export declare function collectStaleVectorizationIds<T extends ItemWithUpdatedAt>(items:readonly T[],ledgerEntries:Readonly<Record<string,string>> | null | undefined):string[];
@@ -1,9 +0,0 @@
1
- /**
2
- * @module core/sentry/sensitive-assignments
3
- *
4
- * Redacts sensitive values in fragmented and serialized diagnostic text.
5
- */
6
- /** Shared sensitive-key vocabulary for structured data and diagnostic text. */
7
- export declare const SENSITIVE_KEY_PATTERN:RegExp;
8
- /** Redact complete sensitive values while preserving every byte of safe diagnostic text. */
9
- export declare function scrubInlineSensitiveAssignments(value:string):string;
@@ -1,18 +0,0 @@
1
- /**
2
- * @module core/shared/conflict-markers
3
- *
4
- * Provides shared primitives and utilities for Conflict Markers.
5
- */
6
- /** Describes a detected unresolved merge-conflict marker and its source location. */
7
- export interface ConflictMarkerMatch {
8
- /** Value that configures or reports line for this contract. */
9
- line:number;
10
- /** Value that configures or reports marker for this contract. */
11
- marker:"<<<<<<<" | "=======" | ">>>>>>>";
12
- /** Value that configures or reports text for this contract. */
13
- text:string;
14
- }
15
- /** Implements find merge conflict markers for the public runtime surface of this module. */
16
- export declare function findMergeConflictMarkers(content:string):ConflictMarkerMatch[];
17
- /** Implements find first merge conflict marker for the public runtime surface of this module. */
18
- export declare function findFirstMergeConflictMarker(content:string):ConflictMarkerMatch | undefined;
@@ -1,9 +0,0 @@
1
- /**
2
- * @module core/shared/index
3
- *
4
- * Provides shared primitives and utilities for Index.
5
- */
6
- export * from "./command-types.js";
7
- export * from "./constants.js";
8
- export * from "./errors.js";
9
- export * from "./primitives.js";
@@ -1,7 +0,0 @@
1
- /**
2
- * @module core/shared/memo
3
- *
4
- * Provides shared primitives and utilities for capped memoization maps.
5
- */
6
- /** Drop the oldest-inserted half of a memo map (Map preserves insertion order), so a size-cap hit mid-scan keeps the newest-inserted half instead of cold-starting the memo. Callers that re-insert entries on hit (the envelope memo) get LRU eviction; the scalar comparator memos evict purely by insertion order. */
7
- export declare function evictOldestMemoEntries<Value>(memo:Map<string,Value>):void;
@@ -1,9 +0,0 @@
1
- /**
2
- * @module core/store/index
3
- *
4
- * Reads and writes tracker storage with format-aware helpers for Index.
5
- */
6
- export * from "./item-format-migration.js";
7
- export * from "./item-store.js";
8
- export * from "./paths.js";
9
- export * from "./settings.js";
@@ -1,7 +0,0 @@
1
- /**
2
- * Preserve concurrent edits to untouched leaves. Arrays and scalar values are
3
- * indivisible: incompatible edits to the same leaf refuse the entire write.
4
- * The root must remain an object even for an unchanged snapshot. Error receipts
5
- * contain a key path, never the potentially secret values.
6
- */
7
- export declare function reconcileSettingsSnapshot(baseline:unknown,proposed:unknown,current:unknown,segments?:readonly string[]):unknown;
@@ -1,8 +0,0 @@
1
- /**
2
- * Retain the first ten reads of each command per UTC minute, then sample the
3
- * nth read at (10/n)^2. Expected retained successes stay below twenty per
4
- * command per minute; this is a statistical bound, not a hard delivery cap.
5
- * Explicit rates bypass automatic state. Corrupt or inaccessible state retains
6
- * the invocation. Failures must override the returned probability at finish.
7
- */
8
- export declare function resolveAutomaticReadSampleRate(globalPmRoot:string,command:string,coreReadOwned:boolean,env?:Readonly<Record<string,string | undefined>>,now?:number):Promise<number>;
@@ -1,12 +0,0 @@
1
- import type { ItemTestRunSummary,PmSettings } from "../../types/index.js";
2
- /** Normalize, order, and bound test-run history using the configured retention policy. */
3
- export declare function buildTrackedTestRunHistory(entries:ItemTestRunSummary[]):ItemTestRunSummary[];
4
- /** Implements append tracked test run summary for the public runtime surface of this module. */
5
- export declare function appendTrackedTestRunSummary(options:{
6
- pmRoot:string;
7
- settings:PmSettings;
8
- itemId:string;
9
- author:string;
10
- entry:ItemTestRunSummary;
11
- message?:string;
12
- }):Promise<void>;
@@ -1,21 +0,0 @@
1
- /**
2
- * Per-type default estimate resolution for `pm validate --auto-fix` (GH-212).
3
- *
4
- * When an item is missing `estimated_minutes`, the auto-fix path backfills a
5
- * config-driven default based on the item's type. This module is the pure
6
- * resolution layer: given an item type and an optional settings-derived override
7
- * map, it returns the default estimate in minutes. The planning + apply path is
8
- * wired separately by the validate command.
9
- *
10
- * Pure module: no filesystem access, no heavy imports. Bad input is never
11
- * thrown on — invalid override entries are dropped, not errored (mirrors the
12
- * deterministic, non-throwing style of stale-file-classification.ts).
13
- */
14
- /** Built-in per-type default estimates in MINUTES used by `pm validate --auto-fix` (GH-212) to backfill missing `estimated_minutes`. Keys are canonical built-in type names. Lookups are case-insensitive (see resolveEstimateDefaultMinutes). */
15
- export declare const DEFAULT_ESTIMATE_MINUTES_BY_TYPE:Readonly<Record<string,number>>;
16
- /** Fallback when neither overrides nor the built-in map have the type. */
17
- export declare const FALLBACK_ESTIMATE_MINUTES = 120;
18
- /** Resolve the default estimated-minutes for an item type. Precedence: overrides (case-insensitive key match) > DEFAULT_ESTIMATE_MINUTES_BY_TYPE (case-insensitive) > FALLBACK_ESTIMATE_MINUTES. - `type` undefined/empty -> FALLBACK. - Only finite values > 0 are honored from overrides/defaults; a non-positive or non-finite override value is ignored and resolution continues to the next tier. - Returned value is a positive integer (floor of the resolved value). */
19
- export declare function resolveEstimateDefaultMinutes(type:string | undefined,overrides?:Readonly<Record<string,number>>):number;
20
- /** Validate + normalize a raw `validation.estimate_defaults_by_type` settings object into a clean Record<string, number> of positive integers, dropping invalid entries. Used so the pure resolver always receives a sane override map. Returns {} for undefined/null/non-object input. Trims keys; ignores empty keys and non-positive / non-finite / non-number values. Floors values to integers. */
21
- export declare function normalizeEstimateDefaultOverrides(raw:unknown):Record<string,number>;
@@ -1,20 +0,0 @@
1
- /**
2
- * Remote-reference detection for linked artifacts (`pm files` / `pm docs`
3
- * `path` values).
4
- *
5
- * A linked artifact path is normally a workspace-relative or absolute local
6
- * filesystem path, but `pm docs --add` legitimately records *remote*
7
- * references too — most commonly an `https://` URL to a pull request, issue, or
8
- * external design doc. Such references are not local files, so they must never
9
- * be:
10
- * - probed with `fs.stat` for existence (the resolved path is meaningless),
11
- * - classified as `moved`/`deleted` by the stale-path classifier,
12
- * - counted among `missing_linked_paths` in `pm validate --check-files`, or
13
- * - pruned by `pm validate --prune-missing` — which would silently destroy an
14
- * intentionally-recorded reference (project management = context management).
15
- *
16
- * Pure module: no filesystem or network access — callers pass the stored path
17
- * string and branch on the boolean result.
18
- */
19
- /** Return `true` when a linked-artifact path is a remote reference (a URL with a `scheme://` authority) rather than a local filesystem path. Whitespace is trimmed before matching so a stored `" https://…"` is still recognized. */
20
- export declare function isRemoteLinkedArtifactReference(path:string):boolean;
@@ -1,60 +0,0 @@
1
- #!/usr/bin/env node
2
- /**
3
- * @module mcp/http-server
4
- *
5
- * Serves the pm MCP dispatcher through the sessionless 2026-07-28 Streamable
6
- * HTTP POST binding with request-scoped JSON/SSE responses.
7
- */
8
- import { type IncomingMessage,type Server,type ServerResponse } from "node:http";
9
- import { type PmMcpHttpAuthorizationPolicy,type PmMcpProtectedResourceMetadata } from "../sdk/mcp/authorization.js";
10
- import { type JsonRpcRequest } from "./server.js";
11
- /** Runtime options for one real Streamable HTTP server. */
12
- export interface PmMcpHttpServerOptions {
13
- /** Local bind host. Defaults to the DNS-rebinding-safe loopback address. */
14
- host?:string;
15
- /** TCP port. Zero requests an ephemeral port. */
16
- port?:number;
17
- /** Single modern MCP POST endpoint. */
18
- endpointPath?:string;
19
- /** Exact browser origins permitted when an Origin header is present. */
20
- allowedOrigins?:readonly string[];
21
- /** Optional RFC 9728/OAuth resource-server policy. */
22
- authorization?:PmMcpHttpAuthorizationPolicy;
23
- /** Metadata served at RFC 9728 well-known paths. */
24
- protectedResourceMetadata?:PmMcpProtectedResourceMetadata;
25
- /** Maximum accepted JSON request bytes. */
26
- maximumBodyBytes?:number;
27
- /** SSE comment interval; zero disables keep-alives. */
28
- keepAliveMs?:number;
29
- /** Optional embedding dispatcher; defaults to the canonical pm MCP handler. */
30
- requestHandler?:(request:JsonRpcRequest) => unknown | Promise<unknown>;
31
- }
32
- /** Write one SSE event and wait for transport backpressure to clear. */
33
- export declare function writePmMcpSseEvent(response:ServerResponse,payload:unknown):Promise<void>;
34
- declare function writeMcpHttpDispatchError(response:ServerResponse,rpcRequest:JsonRpcRequest | undefined,error:unknown):void;
35
- declare function destroyFailedMcpHttpResponse(response:ServerResponse,error:unknown):void;
36
- /** Create a configured HTTP server without binding it. */
37
- export declare function createPmMcpHttpServer(options?:PmMcpHttpServerOptions):Server<typeof IncomingMessage,typeof ServerResponse>;
38
- /** Gracefully close subscriptions before stopping a Streamable HTTP server. */
39
- export declare function closePmMcpHttpServer(server:Server):Promise<void>;
40
- /** Bind the configured Streamable HTTP server and return its actual address. */
41
- export declare function startPmMcpHttpServer(options?:PmMcpHttpServerOptions):Promise<ReturnType<typeof createPmMcpHttpServer>>;
42
- /** Resolve loopback-safe bind defaults without opening a socket. */
43
- export declare function resolvePmMcpHttpListenAddress(options?:Pick<PmMcpHttpServerOptions,"host" | "port">):{
44
- host:string;
45
- port:number;
46
- };
47
- /** Resolve and harden executable HTTP options from an environment map. */
48
- export declare function resolvePmMcpHttpServerOptionsFromEnvironment(processEnvironment?:NodeJS.ProcessEnv):PmMcpHttpServerOptions;
49
- /** Internal HTTP transport seams used only by direct integration tests. */
50
- export declare const _testOnly:{
51
- /** Return the first active request-scoped transport key for one server. */
52
- activeSubscriptionKey:(server:Server) => symbol | undefined;
53
- /** Open a stream against one server runtime without a network socket. */
54
- openHttpSubscription:(server:Server,request:JsonRpcRequest,response:ServerResponse) => Promise<void>;
55
- /** Exercise committed-response handling without a network race. */
56
- writeMcpHttpDispatchError:typeof writeMcpHttpDispatchError;
57
- /** Exercise the terminal request rejection handler without a live socket. */
58
- destroyFailedMcpHttpResponse:typeof destroyFailedMcpHttpResponse;
59
- };
60
- export {};
@@ -1,59 +0,0 @@
1
- /**
2
- * @module mcp/legacy-adapter
3
- *
4
- * Isolates the bounded initialize-era stdio compatibility surface from the
5
- * canonical stateless dispatcher. No modern transport imports policy from it.
6
- */
7
- import { type AgentClientInfo } from "../sdk/runtime-primitives.js";
8
- import { PM_MCP_LEGACY_PROTOCOL_VERSIONS,type PmMcpImplementation,type PmMcpServerCapabilities } from "../sdk/mcp/protocol.js";
9
- /** Minimal request shape consumed by the compatibility adapter. */
10
- export interface LegacyMcpRequest {
11
- /** Legacy method name. */
12
- method?:string;
13
- /** Legacy method parameters. */
14
- params?:Record<string,unknown>;
15
- }
16
- /** Host callbacks keep this adapter separate from canonical SDK policy. */
17
- export interface LegacyMcpAdapterOptions {
18
- /** Immutable server identity. */
19
- serverInfo:PmMcpImplementation;
20
- /** Compatibility-era capabilities. */
21
- capabilities:PmMcpServerCapabilities;
22
- /** Model-facing usage instructions. */
23
- instructions:string;
24
- /** Parse bounded historical client identity. */
25
- parseClientInfo:(value:unknown) => AgentClientInfo | undefined;
26
- /** Resolve legacy tool definitions. */
27
- listTools:(params:Record<string,unknown> | undefined) => Promise<Record<string,unknown>>;
28
- /** Execute one legacy tool call. */
29
- callTool:(params:Record<string,unknown> | undefined,clientInfo:AgentClientInfo | undefined) => Promise<Record<string,unknown>>;
30
- /** List legacy resources. */
31
- listResources:() => Record<string,unknown>;
32
- /** Read one legacy resource. */
33
- readResource:(params:Record<string,unknown> | undefined) => Promise<Record<string,unknown>>;
34
- /** List legacy prompts. */
35
- listPrompts:() => Record<string,unknown>;
36
- /** Render one legacy prompt. */
37
- getPrompt:(params:Record<string,unknown> | undefined) => Record<string,unknown>;
38
- }
39
- /**
40
- * Resolve the legacy revision a handshake negotiates, or refuse with the full
41
- * supported set.
42
- *
43
- * A legacy client has no fall-forward mechanism, so the refusal names every
44
- * accepted legacy revision alongside the canonical modern one: the error text
45
- * is the only diagnostic such a client can surface.
46
- */
47
- export declare function resolveLegacyProtocolVersion(requestedVersion:unknown):(typeof PM_MCP_LEGACY_PROTOCOL_VERSIONS)[number];
48
- /** Explicit compatibility adapter with no cross-process or modern-session role. */
49
- export declare class LegacyMcpAdapter {
50
- #private;
51
- /** Create one process-local legacy stdio adapter. */
52
- constructor(options:LegacyMcpAdapterOptions);
53
- /** Read the bounded identity most recently supplied to legacy initialize. */
54
- getClientInfo():AgentClientInfo | undefined;
55
- /** Validate and answer the historical initialize handshake. */
56
- initialize(params:Record<string,unknown> | undefined):Record<string,unknown>;
57
- /** Dispatch one unversioned request through the finite legacy method set. */
58
- dispatch(request:LegacyMcpRequest):Promise<Record<string,unknown>>;
59
- }
@@ -1,57 +0,0 @@
1
- /**
2
- * @module mcp/runtime-capabilities
3
- *
4
- * Resolves bounded MCP profiles and workspace-customized tool schemas from the
5
- * public SDK contracts.
6
- */
7
- import { type PmMcpToolProfile } from "../sdk/agent-capability-contracts.js";
8
- import { type WorkspaceContracts,type WorkspaceExtensionCommandContract } from "../sdk/runtime.js";
9
- import { type ToolDefinition } from "./tool-definitions.js";
10
- /** Environment configuration accepted by the MCP profile resolver. */
11
- export interface McpProfileEnvironment {
12
- /** Named built-in or custom MCP surface profile. */
13
- PM_MCP_PROFILE?:string;
14
- /** Comma-separated exact tool allowlist used by the custom profile. */
15
- PM_MCP_TOOLS?:string;
16
- }
17
- /** Fully resolved MCP tool surface for one request workspace. */
18
- export interface ResolvedMcpToolSurface {
19
- /** Resolved profile after environment validation. */
20
- profile:PmMcpToolProfile;
21
- /** Runtime-filtered and workspace-enriched MCP definitions. */
22
- tools:ToolDefinition[];
23
- /** Extension action names reachable through the selected surface. */
24
- extensionActions:string[];
25
- }
26
- /** Profile decision for one tool call without projecting every tool schema. */
27
- export interface ResolvedMcpToolAccess {
28
- /** Resolved profile after environment validation. */
29
- profile:PmMcpToolProfile;
30
- /** Whether the requested tool is callable in that profile and workspace. */
31
- available:boolean;
32
- }
33
- declare function workspaceFields(workspace:Pick<WorkspaceContracts,"fields">):NonNullable<WorkspaceContracts["fields"]>;
34
- declare function workspaceExtensionCommands(workspace:Pick<WorkspaceContracts,"extensionCommands">):NonNullable<WorkspaceContracts["extensionCommands"]>;
35
- /** Resolve and validate the configured MCP profile. */
36
- export declare function resolveMcpToolProfile(environment?:McpProfileEnvironment):PmMcpToolProfile;
37
- /** Select extension actions visible to one validated MCP profile. */
38
- export declare function selectMcpExtensionActions(commands:readonly WorkspaceExtensionCommandContract[],profile:PmMcpToolProfile,selectedNames:ReadonlySet<string>):string[];
39
- /**
40
- * Resolve a profile-filtered tool list and enrich schemas with live workspace
41
- * types, statuses, custom fields, and extension actions.
42
- */
43
- export declare function resolveMcpToolSurface(availableTools:readonly ToolDefinition[],args?:Record<string,unknown>,environment?:McpProfileEnvironment):Promise<ResolvedMcpToolSurface>;
44
- /**
45
- * Resolve one tool's callability without cloning and enriching the complete
46
- * schema surface. Only compact/standard `pm_run` calls need workspace
47
- * contracts because an activated extension action can promote that dispatcher.
48
- */
49
- export declare function resolveMcpToolAccess(availableTools:readonly ToolDefinition[],toolName:string,args?:Record<string,unknown>,environment?:McpProfileEnvironment):Promise<ResolvedMcpToolAccess>;
50
- /** Move declared custom-field inputs into the runtime action option bag. */
51
- export declare function normalizeWorkspaceToolArguments(toolName:string,args:Record<string,unknown>):Promise<Record<string,unknown>>;
52
- /** Internal compatibility helpers exposed only for exhaustive fallback tests. */
53
- export declare const _testOnlyMcpRuntimeCapabilities:{
54
- workspaceExtensionCommands:typeof workspaceExtensionCommands;
55
- workspaceFields:typeof workspaceFields;
56
- };
57
- export {};
@@ -1,101 +0,0 @@
1
- #!/usr/bin/env node
2
- import { readSettings,type AgentClientInfo } from "../sdk/runtime-primitives.js";
3
- import { readRequiredString,type PmActionInput } from "../sdk/runtime.js";
4
- import { PmMcpProtocolError,resolveMcpRequestContext,type PmMcpRequestContext } from "../sdk/mcp/protocol.js";
5
- import { PmMcpInputRequiredError } from "../sdk/mcp/interactions.js";
6
- import { type PmMcpSubscriptionId,type PmMcpSubscriptionSink } from "../sdk/mcp/subscriptions.js";
7
- /** JSON-RPC request shape accepted by pm MCP transport adapters. */
8
- export interface JsonRpcRequest {
9
- /** JSON-RPC revision marker when supplied by the transport. */
10
- jsonrpc?:string;
11
- /** Correlation identifier omitted only for notifications. */
12
- id?:string | number | null;
13
- /** Protocol operation selected by the caller. */
14
- method?:string;
15
- /** Operation inputs including request-local MCP metadata. */
16
- params?:Record<string,unknown>;
17
- }
18
- declare function runMcpAction(args:PmActionInput):Promise<unknown>;
19
- type PmMcpTransportSubscriptionKey = PmMcpSubscriptionId | symbol;
20
- declare function nearestDeclaredKey(unexpected:string,declared:string[]):string | undefined;
21
- declare function detectUnexpectedTopLevelKeys(toolName:string,args:Record<string,unknown>,toolDeclaredKeys?:Map<string,string[]>):string[];
22
- /**
23
- * Enforce workspace mutation policy before MCP dispatch, excluding top-level
24
- * routing paths. Return redacted advisories; propagate blocking guard failures.
25
- */
26
- declare function collectMutationGuardWarnings(toolName:string,action:string | undefined,args:Record<string,unknown>):Promise<string[]>;
27
- declare function detectUnexpectedOptionKeys(toolName:string,action:string | undefined,args:Record<string,unknown>,schema?:Awaited<ReturnType<typeof readSettings>>["schema"]):string[];
28
- declare function resultContent(result:unknown,warnings?:string[],tokenAccounting?:boolean,canonicalStructuredResult?:boolean):Record<string,unknown>;
29
- declare function errorContent(error:unknown,canonicalStructuredResult?:boolean):Record<string,unknown>;
30
- /** Retain at most 32 own, valid provenance values without cloning unbounded input. */
31
- declare function boundMcpClientProvenance(value:unknown):Record<string,string>;
32
- declare function emitMcpChangeNotifications(action:string | undefined):Promise<void>;
33
- /** Open one modern subscription through a concrete transport-owned sink. */
34
- export declare function openMcpSubscription(input:{
35
- request:JsonRpcRequest;
36
- key?:PmMcpTransportSubscriptionKey;
37
- sink:PmMcpSubscriptionSink;
38
- }):Promise<void>;
39
- /** Gracefully close one active subscription by its request identifier. */
40
- export declare function closeMcpSubscription(id:PmMcpSubscriptionId,key?:PmMcpTransportSubscriptionKey):Record<string,unknown> | undefined;
41
- declare function closeStdioMcpSubscriptions():Array<{
42
- id:PmMcpSubscriptionId;
43
- result:Record<string,unknown>;
44
- }>;
45
- /** Resolve the current workspace-enriched tool schema for HTTP header checks. */
46
- export declare function resolveMcpToolSchemaForRequest(request:JsonRpcRequest):Promise<unknown>;
47
- /** Preserve MCP tool-result error semantics for non-protocol adapter failures. */
48
- export declare function buildMcpToolCallErrorResult(request:JsonRpcRequest,error:unknown):Record<string,unknown> | undefined;
49
- declare function mcpTaskPrincipal(requestContext:PmMcpRequestContext):string;
50
- declare function shouldCreateMcpTask(params:Record<string,unknown> | undefined,requestContext:PmMcpRequestContext):boolean;
51
- declare function settleMcpTaskExecution(taskId:string,execution:Promise<void>):Promise<void>;
52
- /** Dispatch one MCP request under supported process-level reproducibility settings. */
53
- export declare function handleRequest(request:JsonRpcRequest):Promise<Record<string,unknown> | undefined>;
54
- declare function writeError(id:JsonRpcRequest["id"],error:unknown):void;
55
- /** Implements process rpc line for the public runtime surface of this module. */
56
- export declare function processRpcLine(line:string):Promise<void>;
57
- /** Implements start mcp server for the public runtime surface of this module. */
58
- export declare function startMcpServer():void;
59
- /** Implements check whether invoked as mcp main module for the public runtime surface of this module. */
60
- export declare function isInvokedAsMcpMainModule(argvPath:string | undefined,moduleUrl:string):boolean;
61
- /** Public contract for test only, shared by SDK and presentation-layer consumers. */
62
- export declare const _testOnly:{
63
- boundMcpClientProvenance:typeof boundMcpClientProvenance;
64
- createMcpInputRequiredError:(input:ConstructorParameters<typeof PmMcpInputRequiredError>[0]) => PmMcpInputRequiredError;
65
- createMcpProtocolError:(message:string,code:number,data?:Record<string,unknown> | undefined) => PmMcpProtocolError;
66
- readonly closeManyOptionsFromFlat:typeof import("../sdk/runtime-input.js").closeManyOptionsFromFlat;
67
- detectUnexpectedOptionKeys:typeof detectUnexpectedOptionKeys;
68
- detectUnexpectedTopLevelKeys:typeof detectUnexpectedTopLevelKeys;
69
- collectMutationGuardWarnings:typeof collectMutationGuardWarnings;
70
- closeStdioMcpSubscriptions:typeof closeStdioMcpSubscriptions;
71
- errorContent:typeof errorContent;
72
- emitMcpChangeNotifications:typeof emitMcpChangeNotifications;
73
- expireMcpSubscriptionRecord:(id:PmMcpSubscriptionId,key?:PmMcpTransportSubscriptionKey) => Record<string,unknown> | undefined;
74
- getMcpClientInfo:() => AgentClientInfo | undefined;
75
- readonly extensionOptionsFromArgs:typeof import("../sdk/runtime-input.js").extensionOptionsFromArgs;
76
- readonly globalOptions:typeof import("../sdk/runtime-input.js").actionGlobalOptions;
77
- readonly mutationListOptions:typeof import("../sdk/runtime-input.js").mutationListOptions;
78
- nearestDeclaredKey:typeof nearestDeclaredKey;
79
- mcpTaskPrincipal:typeof mcpTaskPrincipal;
80
- resultContent:typeof resultContent;
81
- resolveMcpRequestContext:typeof resolveMcpRequestContext;
82
- shouldCreateMcpTask:typeof shouldCreateMcpTask;
83
- settleMcpTaskExecution:typeof settleMcpTaskExecution;
84
- subscriptionCount:() => number;
85
- readonly normalizeActionName:typeof import("../sdk/runtime-input.js").normalizeActionName;
86
- readonly normalizeCommandPath:typeof import("../sdk/runtime-input.js").normalizeCommandPath;
87
- readonly normalizeMcpOptionsArrays:typeof import("../sdk/runtime-input.js").normalizeMcpOptionsArrays;
88
- readonly normalizeMcpUpdateOptions:typeof import("../sdk/runtime-input.js").normalizeMcpUpdateOptions;
89
- readonly optionsWithAuthor:typeof import("../sdk/runtime-input.js").optionsWithAuthor;
90
- readonly readRequiredString:typeof readRequiredString;
91
- readonly readScalarString:typeof import("../sdk/runtime-input.js").readRuntimeScalarString;
92
- readonly readScalarStringAllowBlank:typeof import("../sdk/runtime-input.js").readRuntimeScalarStringAllowBlank;
93
- readonly readStringArray:typeof import("../sdk/runtime-input.js").readRuntimeStringArray;
94
- runAction:typeof runMcpAction;
95
- readonly updateManyOptionsFromFlat:typeof import("../sdk/runtime-input.js").updateManyOptionsFromFlat;
96
- readonly withAddNoteOption:typeof import("../sdk/runtime-input.js").withAddNoteOption;
97
- readonly withFilesDiscoveryOptions:typeof import("../sdk/runtime-input.js").withFilesDiscoveryOptions;
98
- readonly withMutationCompaction:typeof import("../sdk/runtime-input.js").withMutationCompaction;
99
- writeError:typeof writeError;
100
- };
101
- export {};