@unbrained/pm-cli 2026.9.7 → 2026.9.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 (718) hide show
  1. package/.agents/skills/pm-developer/SKILL.md +12 -4
  2. package/.agents/skills/pm-developer/references/MULTI_AGENT_MERGE.md +19 -10
  3. package/.agents/skills/pm-extensions/SKILL.md +6 -0
  4. package/.agents/skills/pm-sdk/SKILL.md +11 -2
  5. package/.agents/skills/pm-user/SKILL.md +5 -0
  6. package/.agents/skills/pm-user/references/ECOSYSTEM_PLANNING.md +95 -0
  7. package/.claude-plugin/marketplace.json +2 -2
  8. package/CHANGELOG.md +211 -181
  9. package/dist/cli/after-command-context-usage.js +1 -48
  10. package/dist/cli/argv-utils.js +1 -40
  11. package/dist/cli/bootstrap-args.js +1 -9
  12. package/dist/cli/bundle-integrity.js +2 -110
  13. package/dist/cli/commander-usage.js +11 -771
  14. package/dist/cli/commands/activity.js +1 -9
  15. package/dist/cli/commands/aggregate.js +1 -5
  16. package/dist/cli/commands/append.js +1 -5
  17. package/dist/cli/commands/claim.js +1 -5
  18. package/dist/cli/commands/close-many.js +1 -5
  19. package/dist/cli/commands/close.js +1 -9
  20. package/dist/cli/commands/comments.js +1 -5
  21. package/dist/cli/commands/config.js +1 -9
  22. package/dist/cli/commands/context.js +1 -9
  23. package/dist/cli/commands/contracts.js +1 -5
  24. package/dist/cli/commands/copy.js +1 -9
  25. package/dist/cli/commands/create.js +1 -9
  26. package/dist/cli/commands/delete.js +1 -9
  27. package/dist/cli/commands/deps.js +1 -9
  28. package/dist/cli/commands/docs.js +1 -9
  29. package/dist/cli/commands/duplicates.js +1 -9
  30. package/dist/cli/commands/eval.js +1 -9
  31. package/dist/cli/commands/extension/describe.js +1 -5
  32. package/dist/cli/commands/extension/scaffold.js +1 -5
  33. package/dist/cli/commands/extension/shared.js +1 -5
  34. package/dist/cli/commands/extension.js +1 -9
  35. package/dist/cli/commands/files.js +1 -9
  36. package/dist/cli/commands/focus.js +1 -9
  37. package/dist/cli/commands/gc.js +1 -9
  38. package/dist/cli/commands/get.js +1 -9
  39. package/dist/cli/commands/graph.js +1 -10
  40. package/dist/cli/commands/health.js +1 -9
  41. package/dist/cli/commands/history-compact.js +1 -10
  42. package/dist/cli/commands/history-redact.js +1 -11
  43. package/dist/cli/commands/history-repair.js +1 -10
  44. package/dist/cli/commands/history.js +1 -5
  45. package/dist/cli/commands/index.js +1 -58
  46. package/dist/cli/commands/init-agent-guidance.js +1 -9
  47. package/dist/cli/commands/init.js +1 -9
  48. package/dist/cli/commands/learnings.js +1 -5
  49. package/dist/cli/commands/lifecycle-transitions.js +1 -5
  50. package/dist/cli/commands/list.js +1 -9
  51. package/dist/cli/commands/merge.js +1 -11
  52. package/dist/cli/commands/next.js +1 -9
  53. package/dist/cli/commands/notes.js +1 -5
  54. package/dist/cli/commands/plan.js +1 -9
  55. package/dist/cli/commands/profile.js +1 -9
  56. package/dist/cli/commands/restore.js +1 -9
  57. package/dist/cli/commands/scheduling-shortcuts.js +1 -9
  58. package/dist/cli/commands/schema.js +1 -10
  59. package/dist/cli/commands/search.js +1 -9
  60. package/dist/cli/commands/stats.js +1 -9
  61. package/dist/cli/commands/telemetry.js +1 -9
  62. package/dist/cli/commands/test-all.js +1 -9
  63. package/dist/cli/commands/test-runs.js +1 -9
  64. package/dist/cli/commands/test.js +1 -9
  65. package/dist/cli/commands/update-many.js +1 -5
  66. package/dist/cli/commands/update.js +1 -9
  67. package/dist/cli/commands/upgrade.js +1 -5
  68. package/dist/cli/commands/validate.js +1 -15
  69. package/dist/cli/context-intent-invocation.js +1 -20
  70. package/dist/cli/description-stdin.js +1 -17
  71. package/dist/cli/error-guidance.js +1 -1353
  72. package/dist/cli/extension-command-help.js +5 -636
  73. package/dist/cli/extension-command-options.js +1 -427
  74. package/dist/cli/extension-recovery.js +1 -126
  75. package/dist/cli/help-content.js +2 -1001
  76. package/dist/cli/help-json-payload.js +4 -570
  77. package/dist/cli/main.d.ts +4 -0
  78. package/dist/cli/main.js +5 -2573
  79. package/dist/cli/migration-gates.js +1 -289
  80. package/dist/cli/public.js +1 -20
  81. package/dist/cli/register-annotations.js +1 -270
  82. package/dist/cli/register-assurance.js +1 -62
  83. package/dist/cli/register-files-lookup.js +1 -56
  84. package/dist/cli/register-history-activity.d.ts +8 -0
  85. package/dist/cli/register-history-activity.js +2 -0
  86. package/dist/cli/register-history-author.js +1 -38
  87. package/dist/cli/register-history-maintenance.d.ts +9 -0
  88. package/dist/cli/register-history-maintenance.js +2 -0
  89. package/dist/cli/register-list-query.js +10 -943
  90. package/dist/cli/register-mutation-options.js +1 -9
  91. package/dist/cli/register-mutation.js +19 -1893
  92. package/dist/cli/register-operations.js +1 -920
  93. package/dist/cli/register-setup.js +1 -716
  94. package/dist/cli/register-structured-mutation.js +1 -196
  95. package/dist/cli/registration-helpers.js +1 -5
  96. package/dist/cli/runtime-compatibility-boundary.js +4 -42
  97. package/dist/cli/schema-registration-helpers.js +1 -73
  98. package/dist/cli/search-refresh.js +1 -13
  99. package/dist/cli/stats-analytics-json.js +1 -68
  100. package/dist/cli/telemetry-flush.js +1 -10
  101. package/dist/cli-bundle/bundle-manifest.json +164 -156
  102. package/dist/cli-bundle/chunks/chunk-3BZZA6A3.js +5 -0
  103. package/dist/cli-bundle/chunks/chunk-AMRDVX36.js +235 -0
  104. package/dist/cli-bundle/chunks/chunk-DAM4CBBR.js +2202 -0
  105. package/dist/cli-bundle/chunks/{chunk-WYRZZ5ZE.js → chunk-DEZPZOQ7.js} +2 -2
  106. package/dist/cli-bundle/chunks/chunk-FLDWYEND.js +77 -0
  107. package/dist/cli-bundle/chunks/{chunk-NPN5I67J.js → chunk-G5ADGQ2D.js} +3 -3
  108. package/dist/cli-bundle/chunks/chunk-JAAEYHUA.js +2 -0
  109. package/dist/cli-bundle/chunks/{chunk-JX4DH4WC.js → chunk-KR3RP4FH.js} +3 -3
  110. package/dist/cli-bundle/chunks/chunk-LEZOUXG6.js +2 -0
  111. package/dist/cli-bundle/chunks/chunk-NSAPNEYH.js +2 -0
  112. package/dist/cli-bundle/chunks/chunk-QOEKOECV.js +29 -0
  113. package/dist/cli-bundle/chunks/chunk-RHSFOMHU.js +2 -0
  114. package/dist/cli-bundle/chunks/chunk-XOD2PCB6.js +20 -0
  115. package/dist/cli-bundle/chunks/{chunk-JT6XF6GE.js → chunk-YVEQ2AMO.js} +4 -4
  116. package/dist/cli-bundle/chunks/register-list-query-KSK3R63M.js +11 -0
  117. package/dist/cli-bundle/chunks/register-mutation-IQ5C7U6O.js +20 -0
  118. package/dist/cli-bundle/chunks/{register-operations-I5W3KMGB.js → register-operations-DWVHR2NC.js} +2 -2
  119. package/dist/cli-bundle/chunks/register-setup-BQ5SVD4B.js +2 -0
  120. package/dist/cli-bundle/focused-chunks/chunk-3WRPWLA7.js +3 -0
  121. package/dist/cli-bundle/focused-chunks/chunk-7MBUII7U.js +2 -0
  122. package/dist/cli-bundle/focused-chunks/chunk-COPBO5HW.js +8 -0
  123. package/dist/cli-bundle/focused-chunks/chunk-DUN4IXYN.js +20 -0
  124. package/dist/cli-bundle/focused-chunks/{chunk-LIJIA4TY.js → chunk-EE5QSM4Z.js} +3 -3
  125. package/dist/cli-bundle/focused-chunks/chunk-HJVARYM3.js +6 -0
  126. package/dist/cli-bundle/focused-chunks/chunk-IAUOUGVR.js +177 -0
  127. package/dist/cli-bundle/focused-chunks/chunk-KOOMJ54F.js +2 -0
  128. package/dist/cli-bundle/focused-chunks/chunk-MZDXX7JY.js +56 -0
  129. package/dist/cli-bundle/focused-chunks/{chunk-M6PBRFSH.js → chunk-OPFHFGDD.js} +2 -2
  130. package/dist/cli-bundle/focused-chunks/chunk-QHNETP77.js +9 -0
  131. package/dist/cli-bundle/focused-chunks/{chunk-3BZEOXLT.js → chunk-RMWES4M6.js} +2 -2
  132. package/dist/cli-bundle/focused-chunks/chunk-RXT4P5QH.js +10 -0
  133. package/dist/cli-bundle/focused-chunks/chunk-SDOL6FM2.js +12 -0
  134. package/dist/cli-bundle/focused-chunks/chunk-SQV4AAUC.js +2 -0
  135. package/dist/cli-bundle/focused-chunks/{chunk-PEFABF7E.js → chunk-WE3IUNIW.js} +3 -3
  136. package/dist/cli-bundle/focused-chunks/chunk-YALOUBWJ.js +2 -0
  137. package/dist/cli-bundle/main.js +20 -20
  138. package/dist/cli-bundle/sdk-authoring.js +1 -1
  139. package/dist/cli-bundle/sdk-contracts.js +2 -2
  140. package/dist/cli-bundle/sdk-core.js +29 -29
  141. package/dist/cli-bundle/sdk-governance.js +1 -1
  142. package/dist/cli-bundle/sdk-graph.js +1 -1
  143. package/dist/cli-bundle/sdk-merge.js +42 -42
  144. package/dist/cli-bundle/sdk-query.js +1 -1
  145. package/dist/cli-bundle/sdk-runtime.js +1 -1
  146. package/dist/cli-bundle/sdk-testing.js +1 -1
  147. package/dist/cli-bundle/sdk.js +11 -11
  148. package/dist/cli.js +1 -104
  149. package/dist/core/checkpoint/checkpoint-gc.js +1 -169
  150. package/dist/core/checkpoint/mutation-checkpoint.js +2 -133
  151. package/dist/core/config/nested-settings.js +1 -534
  152. package/dist/core/config/positional-value.js +1 -109
  153. package/dist/core/diagnostics/remediation.js +1 -506
  154. package/dist/core/extensions/activation-summary-markdown.js +2 -145
  155. package/dist/core/extensions/activation-summary.js +1 -92
  156. package/dist/core/extensions/activation-transaction.js +1 -46
  157. package/dist/core/extensions/capability-usage.js +1 -173
  158. package/dist/core/extensions/command-hook-context.js +1 -13
  159. package/dist/core/extensions/command-metadata-contract.js +1 -22
  160. package/dist/core/extensions/command-visibility-tier.js +1 -29
  161. package/dist/core/extensions/contribution-inventory.js +1 -173
  162. package/dist/core/extensions/exporter-output-contract.js +1 -66
  163. package/dist/core/extensions/extension-candidate.js +1 -18
  164. package/dist/core/extensions/extension-capability-aliases.js +1 -158
  165. package/dist/core/extensions/extension-hook-runtime.js +1 -699
  166. package/dist/core/extensions/extension-policy.js +1 -599
  167. package/dist/core/extensions/extension-registries.js +1 -62
  168. package/dist/core/extensions/extension-runtime-helpers.js +1 -33
  169. package/dist/core/extensions/extension-types.js +1 -102
  170. package/dist/core/extensions/flag-definition-validation.js +1 -52
  171. package/dist/core/extensions/flag-value-types.js +1 -64
  172. package/dist/core/extensions/index.js +1 -526
  173. package/dist/core/extensions/item-field-types.js +1 -39
  174. package/dist/core/extensions/item-fields.js +1 -261
  175. package/dist/core/extensions/loader.js +1 -2223
  176. package/dist/core/extensions/manifest-schema.js +1 -69
  177. package/dist/core/extensions/module-graph-snapshot.js +1 -33
  178. package/dist/core/extensions/preflight-ownership.js +1 -41
  179. package/dist/core/extensions/registration-validation.js +1 -82
  180. package/dist/core/extensions/registration-values.js +1 -209
  181. package/dist/core/extensions/reserved-host-flags.js +1 -36
  182. package/dist/core/extensions/runtime-registrations.js +1 -67
  183. package/dist/core/extensions/service-ownership.js +1 -19
  184. package/dist/core/extensions/version-compat.js +1 -216
  185. package/dist/core/fs/fs-utils.js +2 -158
  186. package/dist/core/fs/host-environment-errors.js +1 -141
  187. package/dist/core/fs/index.js +1 -9
  188. package/dist/core/fs/path-utils.js +1 -17
  189. package/dist/core/governance/content-fields.js +1 -160
  190. package/dist/core/governance/issue-codes.js +1 -151
  191. package/dist/core/governance/metadata-coverage.js +1 -358
  192. package/dist/core/history/drift-cache.js +3 -72
  193. package/dist/core/history/drift-scan.js +1 -342
  194. package/dist/core/history/event-classification.js +1 -109
  195. package/dist/core/history/event-index.js +8 -784
  196. package/dist/core/history/history-compact-bulk.js +1 -104
  197. package/dist/core/history/history-diff.js +1 -158
  198. package/dist/core/history/history-rewrite.d.ts +6 -1
  199. package/dist/core/history/history-rewrite.js +1 -107
  200. package/dist/core/history/history-storage-stats.js +1 -102
  201. package/dist/core/history/history-stream-policy.js +1 -62
  202. package/dist/core/history/history.js +2 -617
  203. package/dist/core/history/identity.js +1 -30
  204. package/dist/core/history/index.js +1 -9
  205. package/dist/core/history/projection.js +1 -196
  206. package/dist/core/history/read.d.ts +9 -0
  207. package/dist/core/history/read.js +1 -57
  208. package/dist/core/history/replay.js +2 -439
  209. package/dist/core/history/version-address.js +1 -32
  210. package/dist/core/history/workspace-history.js +2 -433
  211. package/dist/core/io/body-file.js +1 -62
  212. package/dist/core/io/bulk-ids-input.js +1 -112
  213. package/dist/core/item/actionability.js +1 -327
  214. package/dist/core/item/dependency-reference.js +1 -20
  215. package/dist/core/item/id.js +1 -112
  216. package/dist/core/item/index.js +1 -12
  217. package/dist/core/item/item-format-version.js +1 -78
  218. package/dist/core/item/item-format.js +5 -1473
  219. package/dist/core/item/item-record.js +1 -23
  220. package/dist/core/item/item-type-definition.js +1 -133
  221. package/dist/core/item/parent-reference-policy.js +1 -57
  222. package/dist/core/item/parse.js +2 -603
  223. package/dist/core/item/plan-lifecycle.js +1 -19
  224. package/dist/core/item/priority.js +1 -61
  225. package/dist/core/item/sprint-release-format.js +1 -38
  226. package/dist/core/item/status-filter.js +1 -115
  227. package/dist/core/item/status.js +1 -43
  228. package/dist/core/item/toon-decode.js +1 -29
  229. package/dist/core/item/type-registry.js +1 -715
  230. package/dist/core/item/type-synonyms.js +1 -38
  231. package/dist/core/lock/index.js +1 -9
  232. package/dist/core/lock/lock-gc.js +1 -240
  233. package/dist/core/lock/lock.js +3 -590
  234. package/dist/core/output/mutation-projection.js +1 -217
  235. package/dist/core/output/output-control.js +1 -25
  236. package/dist/core/output/output.js +11 -494
  237. package/dist/core/output/query-summary.js +1 -58
  238. package/dist/core/output/tabular.js +1 -77
  239. package/dist/core/packages/manifest.js +1 -244
  240. package/dist/core/packages/root.js +1 -84
  241. package/dist/core/profile/profile-describe.js +1 -83
  242. package/dist/core/profile/profile-lint.js +1 -415
  243. package/dist/core/profile/profile-plan.js +0 -0
  244. package/dist/core/profile/profile-presets.js +1 -370
  245. package/dist/core/reproducibility/context.js +1 -82
  246. package/dist/core/schema/fields-file.js +2 -288
  247. package/dist/core/schema/item-types-file.js +2 -296
  248. package/dist/core/schema/runtime-field-filters.js +1 -49
  249. package/dist/core/schema/runtime-field-values.js +1 -313
  250. package/dist/core/schema/runtime-schema.js +2 -826
  251. package/dist/core/schema/status-defs-file.js +2 -227
  252. package/dist/core/schema/status-token.js +1 -31
  253. package/dist/core/schema/type-inference.js +1 -95
  254. package/dist/core/schema/type-presets.js +1 -87
  255. package/dist/core/schema/type-workflows.js +1 -104
  256. package/dist/core/search/background-refresh.js +2 -286
  257. package/dist/core/search/bm25.js +1 -146
  258. package/dist/core/search/cache.js +2 -534
  259. package/dist/core/search/corpus.js +1 -311
  260. package/dist/core/search/embedding-batches.js +1 -163
  261. package/dist/core/search/eval.js +1 -225
  262. package/dist/core/search/http-client.js +1 -75
  263. package/dist/core/search/providers.js +1 -242
  264. package/dist/core/search/relevance.js +1 -244
  265. package/dist/core/search/semantic-defaults.js +1 -199
  266. package/dist/core/search/staleness.js +1 -30
  267. package/dist/core/search/vector-stores.js +2 -664
  268. package/dist/core/search/vectorization-metadata.js +1 -81
  269. package/dist/core/sentry/helpers.js +1 -272
  270. package/dist/core/sentry/instrument.js +1 -387
  271. package/dist/core/session/session-state.js +1 -260
  272. package/dist/core/shared/agent-session-context.js +1 -133
  273. package/dist/core/shared/author.js +1 -1172
  274. package/dist/core/shared/command-types.js +1 -4
  275. package/dist/core/shared/conflict-markers.js +1 -31
  276. package/dist/core/shared/constants.js +1 -405
  277. package/dist/core/shared/errors.js +1 -20
  278. package/dist/core/shared/html-entity-decode.js +1 -131
  279. package/dist/core/shared/index.js +1 -12
  280. package/dist/core/shared/item-metadata-contract.js +1 -89
  281. package/dist/core/shared/lazy-module.js +1 -16
  282. package/dist/core/shared/levenshtein.js +1 -61
  283. package/dist/core/shared/memo.js +1 -19
  284. package/dist/core/shared/numeric-parsers.js +1 -20
  285. package/dist/core/shared/option-alias-visibility.js +1 -67
  286. package/dist/core/shared/primitives.js +1 -127
  287. package/dist/core/shared/serial-queue.js +1 -79
  288. package/dist/core/shared/serialization.js +1 -210
  289. package/dist/core/shared/split-comma-list.js +1 -30
  290. package/dist/core/shared/text-normalization.js +1 -38
  291. package/dist/core/shared/time.js +1 -306
  292. package/dist/core/store/index.js +1 -12
  293. package/dist/core/store/item-format-migration.js +1 -125
  294. package/dist/core/store/item-metadata-cache.js +1 -1116
  295. package/dist/core/store/item-metadata-query-index.js +9 -394
  296. package/dist/core/store/item-metadata-read-work.js +1 -43
  297. package/dist/core/store/item-store.js +1 -693
  298. package/dist/core/store/paths.d.ts +1 -1
  299. package/dist/core/store/paths.js +1 -214
  300. package/dist/core/store/settings-read-cache.js +1 -85
  301. package/dist/core/store/settings-validator.js +1 -421
  302. package/dist/core/store/settings.js +3 -1309
  303. package/dist/core/store/tracker-preflight.js +1 -141
  304. package/dist/core/telemetry/consent.js +5 -108
  305. package/dist/core/telemetry/observability.js +1 -246
  306. package/dist/core/telemetry/runtime.js +4 -1988
  307. package/dist/core/test/background-runs.js +4 -945
  308. package/dist/core/test/item-test-run-tracking.js +1 -63
  309. package/dist/core/test/run-selectors.js +1 -120
  310. package/dist/core/validate/estimate-defaults.js +1 -89
  311. package/dist/core/validate/fix-planning.js +1 -189
  312. package/dist/core/validate/linked-artifact-reference.js +1 -36
  313. package/dist/core/validate/missing-by-type.js +1 -34
  314. package/dist/core/validate/missing-link-owners.js +1 -95
  315. package/dist/core/validate/stale-file-classification.js +1 -82
  316. package/dist/mcp/http-server.js +5 -448
  317. package/dist/mcp/legacy-adapter.js +1 -77
  318. package/dist/mcp/runtime-capabilities.js +1 -200
  319. package/dist/mcp/server.js +4 -1233
  320. package/dist/mcp/tool-definitions.js +1 -804
  321. package/dist/sdk/actionability.js +1 -13
  322. package/dist/sdk/agent/closed-domain-contracts.js +1 -161
  323. package/dist/sdk/agent/command-recovery.js +1 -59
  324. package/dist/sdk/agent/command-suggestions.js +1 -66
  325. package/dist/sdk/agent/create-option-policy.js +1 -31
  326. package/dist/sdk/agent/identity-config.js +1 -106
  327. package/dist/sdk/agent/item-addressing.js +1 -207
  328. package/dist/sdk/agent/refusal-closure-census.js +1 -151
  329. package/dist/sdk/agent/refusal-closure.js +1 -133
  330. package/dist/sdk/agent/refusal-corpus-contracts.js +1 -193
  331. package/dist/sdk/agent/refusal-reachability.js +1 -593
  332. package/dist/sdk/agent/subcommand-recovery.js +1 -83
  333. package/dist/sdk/agent/task-transcript-contracts.js +1 -197
  334. package/dist/sdk/agent/tracker-preflight-contracts.js +1 -126
  335. package/dist/sdk/agent-capability-contracts.js +1 -428
  336. package/dist/sdk/agent-session-context.js +1 -9
  337. package/dist/sdk/annotations.js +1 -448
  338. package/dist/sdk/author-attribution.js +1 -468
  339. package/dist/sdk/authoring.js +1 -20
  340. package/dist/sdk/cli-bootstrap.js +1 -838
  341. package/dist/sdk/cli-contracts/agent-output-contracts.d.ts +1 -1
  342. package/dist/sdk/cli-contracts/agent-output-contracts.js +4 -476
  343. package/dist/sdk/cli-contracts/bootstrap-command-scanner.js +1 -79
  344. package/dist/sdk/cli-contracts/command-aliases.d.ts +4 -0
  345. package/dist/sdk/cli-contracts/command-aliases.js +1 -107
  346. package/dist/sdk/cli-contracts/command-exit-contracts.js +1 -151
  347. package/dist/sdk/cli-contracts/commander-mutation-options.js +1 -1081
  348. package/dist/sdk/cli-contracts/commander-types.js +1 -159
  349. package/dist/sdk/cli-contracts/completeness.js +1 -393
  350. package/dist/sdk/cli-contracts/enum-contracts.js +1 -222
  351. package/dist/sdk/cli-contracts/flag-contracts.js +1 -1947
  352. package/dist/sdk/cli-contracts/flag-lexicon-contracts.js +1 -347
  353. package/dist/sdk/cli-contracts/grammar-contracts.js +1 -986
  354. package/dist/sdk/cli-contracts/registration-helpers.js +7 -990
  355. package/dist/sdk/cli-contracts/runtime-contracts.d.ts +5 -0
  356. package/dist/sdk/cli-contracts/runtime-contracts.js +1 -2090
  357. package/dist/sdk/cli-contracts/schemas/assurance-definition.js +1 -324
  358. package/dist/sdk/cli-contracts/string-lists.js +1 -16
  359. package/dist/sdk/cli-contracts/tool-option-contracts.js +1 -461
  360. package/dist/sdk/cli-contracts/tool-parameter-tables.js +1 -2167
  361. package/dist/sdk/cli-contracts/tool-schema.d.ts +3 -1
  362. package/dist/sdk/cli-contracts/tool-schema.js +1 -1664
  363. package/dist/sdk/cli-contracts/typed-action-inputs.js +1 -4
  364. package/dist/sdk/cli-contracts.d.ts +1 -1
  365. package/dist/sdk/cli-contracts.js +1 -17
  366. package/dist/sdk/cli-program.js +1 -49
  367. package/dist/sdk/command-line.d.ts +2 -5
  368. package/dist/sdk/command-line.js +1 -78
  369. package/dist/sdk/comments.js +1 -133
  370. package/dist/sdk/compile-cache.js +1 -73
  371. package/dist/sdk/completion.js +157 -837
  372. package/dist/sdk/compose.js +1 -1090
  373. package/dist/sdk/config.js +1 -1204
  374. package/dist/sdk/context/recency.js +1 -33
  375. package/dist/sdk/context/semantic-session-attribution.js +1 -82
  376. package/dist/sdk/context/usage-egress.js +1 -29
  377. package/dist/sdk/context/usage-ledger.js +3 -185
  378. package/dist/sdk/context-intent-contracts.js +1 -709
  379. package/dist/sdk/context-intent-runtime.js +1 -115
  380. package/dist/sdk/context-packing.js +1 -218
  381. package/dist/sdk/context-relevance.js +1 -503
  382. package/dist/sdk/context-signal-store.js +2 -426
  383. package/dist/sdk/context-usage.js +1 -367
  384. package/dist/sdk/contracts.js +1 -23
  385. package/dist/sdk/core-governance.js +1 -14
  386. package/dist/sdk/core.js +1 -14
  387. package/dist/sdk/corpus-shape.js +1 -401
  388. package/dist/sdk/define.js +1 -220
  389. package/dist/sdk/dependencies.js +1 -718
  390. package/dist/sdk/dependency-flag-validation.js +1 -156
  391. package/dist/sdk/dependency-provenance.js +1 -135
  392. package/dist/sdk/docs.js +1 -14
  393. package/dist/sdk/duplicates.js +1 -40
  394. package/dist/sdk/environment/agent-environment.js +1 -466
  395. package/dist/sdk/environment/host-environment-errors.js +1 -8
  396. package/dist/sdk/environment/project-runtime-compatibility.js +1 -481
  397. package/dist/sdk/environment/source-context.js +1 -28
  398. package/dist/sdk/environment/tracker-preflight.js +1 -9
  399. package/dist/sdk/error-code-catalog.js +1 -153
  400. package/dist/sdk/error-runtime.js +1 -58
  401. package/dist/sdk/errors.js +1 -58
  402. package/dist/sdk/eval.js +1 -190
  403. package/dist/sdk/extension/author-manifest.js +1 -92
  404. package/dist/sdk/extension/bundled-catalog.js +1 -332
  405. package/dist/sdk/extension/concurrency.js +1 -25
  406. package/dist/sdk/extension/copy-scope.d.ts +2 -0
  407. package/dist/sdk/extension/copy-scope.js +2 -0
  408. package/dist/sdk/extension/custom-field-collisions.js +1 -30
  409. package/dist/sdk/extension/describe.js +3 -189
  410. package/dist/sdk/extension/doctor.js +1 -606
  411. package/dist/sdk/extension/install-plan.d.ts +69 -0
  412. package/dist/sdk/extension/install-plan.js +2 -0
  413. package/dist/sdk/extension/install-receipts.d.ts +7 -0
  414. package/dist/sdk/extension/install-receipts.js +2 -0
  415. package/dist/sdk/extension/install-runtime.js +3 -313
  416. package/dist/sdk/extension/install-snapshot.js +1 -66
  417. package/dist/sdk/extension/install-sources.js +5 -1057
  418. package/dist/sdk/extension/managed-state.js +2 -252
  419. package/dist/sdk/extension/migrations.js +2 -174
  420. package/dist/sdk/extension/output-ownership.js +1 -25
  421. package/dist/sdk/extension/runtime-summary.js +1 -18
  422. package/dist/sdk/extension/scaffold.js +4 -2308
  423. package/dist/sdk/extension/shared.js +1 -147
  424. package/dist/sdk/extension/source-resolution.js +1 -65
  425. package/dist/sdk/extension/update-check.js +1 -67
  426. package/dist/sdk/extension-command-context.js +1 -44
  427. package/dist/sdk/extension-contracts.js +1 -73
  428. package/dist/sdk/extension.d.ts +7 -2
  429. package/dist/sdk/extension.js +1 -2196
  430. package/dist/sdk/files.js +1 -535
  431. package/dist/sdk/flag-invocation-contracts.d.ts +0 -5
  432. package/dist/sdk/flag-invocation-contracts.js +1 -344
  433. package/dist/sdk/generated/generated-error-code-catalog-part-1.js +1 -2224
  434. package/dist/sdk/generated/generated-error-code-catalog-part-2.js +1 -2236
  435. package/dist/sdk/generated-error-code-catalog.js +1 -16
  436. package/dist/sdk/governance/assurance-action-contracts.js +1 -4
  437. package/dist/sdk/governance/assurance-action.js +1 -411
  438. package/dist/sdk/governance/assurance-limits.js +1 -10
  439. package/dist/sdk/governance/assurance-mutation-error.js +1 -81
  440. package/dist/sdk/governance/assurance-presets.js +1 -135
  441. package/dist/sdk/governance/assurance-runtime.js +1 -238
  442. package/dist/sdk/governance/assurance.js +4 -1182
  443. package/dist/sdk/governance/boundary-fixtures.js +1 -200
  444. package/dist/sdk/governance/coverage-assurance.js +1 -60
  445. package/dist/sdk/governance/defect-recurrence-coverage.js +1 -188
  446. package/dist/sdk/governance/defect-recurrence-graph.js +1 -120
  447. package/dist/sdk/governance/defect-recurrence-signals.js +1 -24
  448. package/dist/sdk/governance/defect-recurrence.js +1 -623
  449. package/dist/sdk/governance/extension-host-version.js +1 -115
  450. package/dist/sdk/governance/gc.js +1 -368
  451. package/dist/sdk/governance/health.js +1 -2367
  452. package/dist/sdk/governance/hierarchy-validation.js +1 -108
  453. package/dist/sdk/governance/linked-file-report.js +1 -71
  454. package/dist/sdk/governance/merge-receipt-history.js +1 -206
  455. package/dist/sdk/governance/provenance-health.js +1 -282
  456. package/dist/sdk/governance/reindex.js +4 -761
  457. package/dist/sdk/governance/stale-work.js +1 -82
  458. package/dist/sdk/governance/status-role-diagnostics.js +1 -35
  459. package/dist/sdk/governance/storage-integrity.js +1 -280
  460. package/dist/sdk/governance/tracked-runtime-cache.js +1 -106
  461. package/dist/sdk/governance/upgrade.js +2 -327
  462. package/dist/sdk/governance/validate-history-drift.js +1 -81
  463. package/dist/sdk/governance/validate-item-reader.js +1 -17
  464. package/dist/sdk/governance/validate-normalization.js +1 -36
  465. package/dist/sdk/governance/validate.js +1 -2261
  466. package/dist/sdk/governance/workspace-position.js +1 -163
  467. package/dist/sdk/governance.d.ts +1 -0
  468. package/dist/sdk/governance.js +1 -31
  469. package/dist/sdk/graph/adapter.js +1 -181
  470. package/dist/sdk/graph/analytics.js +1 -474
  471. package/dist/sdk/graph/assembly.js +1 -377
  472. package/dist/sdk/graph/cache.js +1 -160
  473. package/dist/sdk/graph/centrality.js +1 -258
  474. package/dist/sdk/graph/conformance.js +1 -130
  475. package/dist/sdk/graph/deadline-scheduling.d.ts +90 -0
  476. package/dist/sdk/graph/deadline-scheduling.js +2 -0
  477. package/dist/sdk/graph/durable-cache.d.ts +1 -1
  478. package/dist/sdk/graph/durable-cache.js +1 -361
  479. package/dist/sdk/graph/governance-contracts.js +1 -34
  480. package/dist/sdk/graph/governance.d.ts +13 -1
  481. package/dist/sdk/graph/governance.js +1 -735
  482. package/dist/sdk/graph/hierarchy-integrity.js +1 -310
  483. package/dist/sdk/graph/index.d.ts +3 -2
  484. package/dist/sdk/graph/index.js +1 -26
  485. package/dist/sdk/graph/lifecycle-coverage.d.ts +32 -0
  486. package/dist/sdk/graph/lifecycle-coverage.js +2 -0
  487. package/dist/sdk/graph/mutation-advisory.js +1 -176
  488. package/dist/sdk/graph/remediation.js +1 -197
  489. package/dist/sdk/graph/run.d.ts +15 -1
  490. package/dist/sdk/graph/run.js +1 -768
  491. package/dist/sdk/graph/scheduling.js +1 -124
  492. package/dist/sdk/graph/traversal.js +1 -284
  493. package/dist/sdk/graph/workspace-relationship-kind-registry.js +1 -27
  494. package/dist/sdk/graph.js +1 -15
  495. package/dist/sdk/guide-topics.js +1 -707
  496. package/dist/sdk/guide.js +1 -279
  497. package/dist/sdk/history/maintenance.d.ts +71 -0
  498. package/dist/sdk/history/maintenance.js +2 -0
  499. package/dist/sdk/history/salvage.js +2 -247
  500. package/dist/sdk/history/subject.d.ts +19 -0
  501. package/dist/sdk/history/subject.js +2 -0
  502. package/dist/sdk/history-analytics.js +1 -282
  503. package/dist/sdk/history-compact.js +1 -527
  504. package/dist/sdk/history-mcp.js +1 -68
  505. package/dist/sdk/history-provenance.js +1 -182
  506. package/dist/sdk/history-read.js +1 -96
  507. package/dist/sdk/history-redact.d.ts +1 -14
  508. package/dist/sdk/history-redact.js +1 -643
  509. package/dist/sdk/history-repair.d.ts +5 -0
  510. package/dist/sdk/history-repair.js +1 -657
  511. package/dist/sdk/improvement-ledger-validation.js +1 -62
  512. package/dist/sdk/improvement-ledger.js +2 -257
  513. package/dist/sdk/index.d.ts +4 -0
  514. package/dist/sdk/index.js +1 -183
  515. package/dist/sdk/init-agent-guidance.js +2 -496
  516. package/dist/sdk/init.js +2 -820
  517. package/dist/sdk/invocation-author.js +1 -39
  518. package/dist/sdk/item-children.js +1 -90
  519. package/dist/sdk/item-metadata-index.js +1 -15
  520. package/dist/sdk/item-schedule.js +1 -27
  521. package/dist/sdk/item-transaction.js +1 -396
  522. package/dist/sdk/learnings.js +1 -29
  523. package/dist/sdk/lifecycle/append.js +2 -53
  524. package/dist/sdk/lifecycle/claim.d.ts +2 -0
  525. package/dist/sdk/lifecycle/claim.js +1 -242
  526. package/dist/sdk/lifecycle/close-many.js +1 -438
  527. package/dist/sdk/lifecycle/close.js +1 -468
  528. package/dist/sdk/lifecycle/copy.js +1 -212
  529. package/dist/sdk/lifecycle/create.js +1 -1949
  530. package/dist/sdk/lifecycle/delete.js +1 -45
  531. package/dist/sdk/lifecycle/event-validation-messages.js +1 -91
  532. package/dist/sdk/lifecycle/focus.js +1 -91
  533. package/dist/sdk/lifecycle/hierarchy-mutation-lock.js +1 -24
  534. package/dist/sdk/lifecycle/legacy-none-tokens.js +1 -149
  535. package/dist/sdk/lifecycle/lifecycle-transitions.js +1 -40
  536. package/dist/sdk/lifecycle/mcp-actions.d.ts +2 -0
  537. package/dist/sdk/lifecycle/mcp-actions.js +1 -51
  538. package/dist/sdk/lifecycle/metadata-normalizers.js +1 -46
  539. package/dist/sdk/lifecycle/mutation-command-options.js +1 -9
  540. package/dist/sdk/lifecycle/plan.js +1 -1606
  541. package/dist/sdk/lifecycle/recurrence-parsers.js +1 -147
  542. package/dist/sdk/lifecycle/reopen.js +1 -68
  543. package/dist/sdk/lifecycle/repeatable-metadata-parsers.js +1 -143
  544. package/dist/sdk/lifecycle/restore.d.ts +1 -0
  545. package/dist/sdk/lifecycle/restore.js +1 -330
  546. package/dist/sdk/lifecycle/shared-unset-fields.js +1 -295
  547. package/dist/sdk/lifecycle/update-many.js +1 -861
  548. package/dist/sdk/lifecycle/update.js +1 -2136
  549. package/dist/sdk/lifecycle-completion.js +1 -92
  550. package/dist/sdk/lifecycle-policy.js +1 -120
  551. package/dist/sdk/linked-artifacts.js +1 -530
  552. package/dist/sdk/mcp/apps.js +4 -133
  553. package/dist/sdk/mcp/authorization.js +1 -404
  554. package/dist/sdk/mcp/discovery.js +1 -494
  555. package/dist/sdk/mcp/interactions.js +1 -336
  556. package/dist/sdk/mcp/protocol.d.ts +7 -0
  557. package/dist/sdk/mcp/protocol.js +1 -184
  558. package/dist/sdk/mcp/skills.js +1 -389
  559. package/dist/sdk/mcp/subscriptions.js +1 -211
  560. package/dist/sdk/mcp/tasks.js +2 -430
  561. package/dist/sdk/mcp/transport.js +1 -260
  562. package/dist/sdk/merge/abandoned-receipts.js +1 -46
  563. package/dist/sdk/merge/driver.js +1 -212
  564. package/dist/sdk/merge/index.js +1 -16
  565. package/dist/sdk/merge/install.js +3 -561
  566. package/dist/sdk/merge/receipt-file-boundary.js +1 -46
  567. package/dist/sdk/merge/receipt-operation.js +1 -96
  568. package/dist/sdk/merge/receipt-schema.js +1 -397
  569. package/dist/sdk/merge/receipts.js +4 -525
  570. package/dist/sdk/merge/reconcile.js +1 -352
  571. package/dist/sdk/merge/three-way.js +3 -775
  572. package/dist/sdk/merge.js +1 -10
  573. package/dist/sdk/mutation-events.js +1 -292
  574. package/dist/sdk/mutation-guard.js +1 -216
  575. package/dist/sdk/notes.js +1 -139
  576. package/dist/sdk/output-contracts.js +1 -172
  577. package/dist/sdk/output-projection.js +1 -430
  578. package/dist/sdk/output-token-accounting.js +1 -140
  579. package/dist/sdk/output.js +1 -64
  580. package/dist/sdk/ownership-source.js +1 -21
  581. package/dist/sdk/package-import-adapters.js +1 -442
  582. package/dist/sdk/package-migrations.js +1 -20
  583. package/dist/sdk/package-runtime-options.js +1 -80
  584. package/dist/sdk/pagination.js +1 -162
  585. package/dist/sdk/profile.js +1 -454
  586. package/dist/sdk/provenance.js +1 -258
  587. package/dist/sdk/public-surface.json +1 -1
  588. package/dist/sdk/query/activity.js +1 -401
  589. package/dist/sdk/query/aggregate.d.ts +16 -0
  590. package/dist/sdk/query/aggregate.js +1 -390
  591. package/dist/sdk/query/calendar.js +1 -964
  592. package/dist/sdk/query/complete-list.js +1 -215
  593. package/dist/sdk/query/context.js +1 -1702
  594. package/dist/sdk/query/duplicate-candidates.js +1 -70
  595. package/dist/sdk/query/get.js +1 -450
  596. package/dist/sdk/query/history.js +1 -186
  597. package/dist/sdk/query/item-filter-options.js +1 -9
  598. package/dist/sdk/query/light-metadata.js +1 -18
  599. package/dist/sdk/query/list-filter-shared.js +1 -81
  600. package/dist/sdk/query/list.js +1 -1304
  601. package/dist/sdk/query/multi-value-filters.js +1 -78
  602. package/dist/sdk/query/next.js +1 -513
  603. package/dist/sdk/query/parsers.js +1 -44
  604. package/dist/sdk/query/projection-contracts.js +1 -184
  605. package/dist/sdk/query/search-contracts.js +1 -230
  606. package/dist/sdk/query/search-pagination.js +1 -35
  607. package/dist/sdk/query/search-rendering.js +1 -105
  608. package/dist/sdk/query/search.js +2 -1987
  609. package/dist/sdk/query.js +1 -35
  610. package/dist/sdk/read-output/continuation.js +1 -194
  611. package/dist/sdk/read-output-budget.js +1 -135
  612. package/dist/sdk/read-output-contracts.js +1 -1225
  613. package/dist/sdk/read-output-rows.js +1 -186
  614. package/dist/sdk/read-output-session.js +1 -208
  615. package/dist/sdk/relationship-analytics.js +1 -410
  616. package/dist/sdk/relationship-context.js +1 -284
  617. package/dist/sdk/relationship-history.js +4 -519
  618. package/dist/sdk/relationship-kinds/contract.js +1 -22
  619. package/dist/sdk/relationship-migration.js +1 -77
  620. package/dist/sdk/relationships.js +1 -579
  621. package/dist/sdk/reproducibility/process.js +1 -87
  622. package/dist/sdk/runtime-action-aliases.js +1 -59
  623. package/dist/sdk/runtime-extended-actions.js +1 -177
  624. package/dist/sdk/runtime-input.js +1 -614
  625. package/dist/sdk/runtime-primitives.js +1 -84
  626. package/dist/sdk/runtime-public-contracts.js +1 -4
  627. package/dist/sdk/runtime-stats-options.js +1 -38
  628. package/dist/sdk/runtime.js +1 -1928
  629. package/dist/sdk/scheduling-shortcuts.js +1 -63
  630. package/dist/sdk/schema-migration.js +3 -856
  631. package/dist/sdk/schema.js +1 -1376
  632. package/dist/sdk/search-refresh-worker.js +1 -18
  633. package/dist/sdk/similarity-scoring.js +1 -53
  634. package/dist/sdk/similarity.js +1 -326
  635. package/dist/sdk/start-task-status.js +1 -14
  636. package/dist/sdk/stats.js +1 -270
  637. package/dist/sdk/structured-mutations.js +1 -580
  638. package/dist/sdk/telemetry-flush.js +1 -13
  639. package/dist/sdk/telemetry.js +1 -405
  640. package/dist/sdk/templates.js +2 -292
  641. package/dist/sdk/test/batch.js +2 -509
  642. package/dist/sdk/test/entry.js +1 -70
  643. package/dist/sdk/test/execution.js +6 -2211
  644. package/dist/sdk/test/linked-command-detection.js +1 -546
  645. package/dist/sdk/test/measurements.js +1 -91
  646. package/dist/sdk/test/parsers.js +1 -545
  647. package/dist/sdk/test/runs.js +1 -193
  648. package/dist/sdk/test/trust.js +2 -206
  649. package/dist/sdk/testing.js +4 -1391
  650. package/dist/sdk/traceability/runtime-files-lookup.js +1 -32
  651. package/dist/sdk/traceability/source-traceability.js +1 -292
  652. package/dist/sdk/tracker-root-discovery.js +1 -9
  653. package/dist/sdk/workspace-contracts-cache.js +1 -28
  654. package/dist/sdk/workspace-contracts.js +1 -33
  655. package/dist/sdk/workspace-memory.js +2 -318
  656. package/dist/sdk/workspace-recipe.js +1 -71
  657. package/dist/sdk/workspace-snapshot.js +4 -613
  658. package/dist/sdk/workspace-transaction-gc.js +1 -149
  659. package/dist/sdk/workspace-transaction.js +2 -363
  660. package/dist/sdk/workspace.js +3 -127
  661. package/dist/types/index.js +1 -9
  662. package/dist/types.js +1 -245
  663. package/docs/AGENT_GUIDE.md +1 -1
  664. package/docs/CONTEXT_ALGORITHM_PORTFOLIO.md +167 -0
  665. package/docs/DIAGNOSTIC_OUTPUT_CONTRACTS.md +9 -3
  666. package/docs/EXTENSIONS.md +1 -0
  667. package/docs/HISTORY_MAINTENANCE.md +125 -0
  668. package/docs/MCP_2026_07_28_CONFORMANCE.md +20 -10
  669. package/docs/PACKAGE_EVIDENCE.md +92 -0
  670. package/docs/PLANNING_MEASUREMENTS.md +183 -0
  671. package/docs/README.md +3 -0
  672. package/docs/SCRIPTING.md +21 -0
  673. package/docs/TESTING.md +23 -0
  674. package/docs/generated/FLAG_LEXICON_BUDGETS.md +5 -5
  675. package/docs/generated/REFUSAL_CLOSURE_CENSUS.md +2 -2
  676. package/marketplace.json +2 -2
  677. package/package.json +1 -1
  678. package/packages/pm-beads/package.json +1 -1
  679. package/packages/pm-calendar/package.json +1 -1
  680. package/packages/pm-command-kit/package.json +1 -1
  681. package/packages/pm-digital-twin/package.json +1 -1
  682. package/packages/pm-governance-audit/package.json +1 -1
  683. package/packages/pm-guide-shell/package.json +1 -1
  684. package/packages/pm-kanban/package.json +1 -1
  685. package/packages/pm-lifecycle-hooks/package.json +1 -1
  686. package/packages/pm-linked-test-adapters/package.json +1 -1
  687. package/packages/pm-search-advanced/package.json +1 -1
  688. package/packages/pm-templates/package.json +1 -1
  689. package/packages/pm-todos/package.json +1 -1
  690. package/packages/pm-vcs/package.json +1 -1
  691. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
  692. package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
  693. package/scripts/finalize-build.mjs +45 -3
  694. package/dist/cli-bundle/chunks/chunk-AZDFJGH6.js +0 -9
  695. package/dist/cli-bundle/chunks/chunk-BAX2BYUW.js +0 -2111
  696. package/dist/cli-bundle/chunks/chunk-CKOL5U7J.js +0 -77
  697. package/dist/cli-bundle/chunks/chunk-OF76PSDQ.js +0 -5
  698. package/dist/cli-bundle/chunks/chunk-QUWFABDM.js +0 -232
  699. package/dist/cli-bundle/chunks/chunk-QWRRFYK3.js +0 -2
  700. package/dist/cli-bundle/chunks/chunk-RWWBOWJ5.js +0 -2
  701. package/dist/cli-bundle/chunks/chunk-WGAOYSYH.js +0 -40
  702. package/dist/cli-bundle/chunks/chunk-WI2AYPA7.js +0 -2
  703. package/dist/cli-bundle/chunks/register-list-query-5JL52D33.js +0 -11
  704. package/dist/cli-bundle/chunks/register-mutation-ZPG7KMVP.js +0 -20
  705. package/dist/cli-bundle/chunks/register-setup-H4SVAVX7.js +0 -2
  706. package/dist/cli-bundle/focused-chunks/chunk-AL5ON6K6.js +0 -2
  707. package/dist/cli-bundle/focused-chunks/chunk-CHC2IDXA.js +0 -6
  708. package/dist/cli-bundle/focused-chunks/chunk-CK6QFAPZ.js +0 -20
  709. package/dist/cli-bundle/focused-chunks/chunk-EZR3GHFE.js +0 -2
  710. package/dist/cli-bundle/focused-chunks/chunk-H2WJWK7L.js +0 -56
  711. package/dist/cli-bundle/focused-chunks/chunk-NTPY5GSO.js +0 -3
  712. package/dist/cli-bundle/focused-chunks/chunk-P5O7MP5Y.js +0 -2
  713. package/dist/cli-bundle/focused-chunks/chunk-PDMW2E36.js +0 -177
  714. package/dist/cli-bundle/focused-chunks/chunk-QTVCLMSZ.js +0 -6
  715. package/dist/cli-bundle/focused-chunks/chunk-QTZRBUYA.js +0 -8
  716. package/dist/cli-bundle/focused-chunks/chunk-SGQST3PQ.js +0 -12
  717. package/dist/cli-bundle/focused-chunks/chunk-UKHASMMP.js +0 -10
  718. package/dist/cli-bundle/focused-chunks/chunk-ZPEKQHOC.js +0 -2
@@ -1,2168 +1,2 @@
1
- /**
2
- * @module sdk/cli-contracts/tool-parameter-tables
3
- *
4
- * Defines SDK command-contract metadata for Tool Parameter Tables.
5
- */
6
-
7
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="7f278171-3479-5ce6-a925-da6393463200")}catch(e){}}();
8
- import { PLAN_HARNESS_VALUES, PLAN_MODE_VALUES, PLAN_STEP_LINK_KIND_VALUES, PLAN_STEP_STATUS_VALUES, } from "../../types/index.js";
9
- import { PM_READ_OUTPUT_SESSION_MAX_SEEN_ITEM_IDS } from "../read-output-session.js";
10
- import { ASSURANCE_DEFINITION_SCHEMA } from "./schemas/assurance-definition.js";
11
- /** Public contract for pm tool parameter properties, shared by SDK and presentation-layer consumers. */
12
- export const PM_TOOL_PARAMETER_PROPERTIES = {
13
- json: { type: "boolean", default: true },
14
- quiet: { type: "boolean" },
15
- profile: { type: "boolean" },
16
- noExtensions: { type: "boolean" },
17
- noPager: { type: "boolean" },
18
- tokenAccounting: { type: "boolean" },
19
- outputInclude: { type: "string", minLength: 1 },
20
- outputLimit: {
21
- anyOf: [{ type: "integer", minimum: 1 }, { const: "unbounded" }],
22
- },
23
- outputBudget: {
24
- anyOf: [{ type: "integer", minimum: 1 }, { const: "unbounded" }],
25
- },
26
- outputFormat: { type: "string", enum: ["json", "toon"] },
27
- outputSession: {
28
- anyOf: [
29
- { type: "string", minLength: 1 },
30
- {
31
- type: "object",
32
- additionalProperties: false,
33
- required: [
34
- "version",
35
- "id",
36
- "token_budget",
37
- "spent_tokens",
38
- "seen_item_ids",
39
- ],
40
- properties: {
41
- version: { const: 1 },
42
- id: {
43
- type: "string",
44
- pattern: "^[A-Za-z0-9][A-Za-z0-9._:-]{0,63}$",
45
- },
46
- token_budget: { type: "integer", minimum: 256 },
47
- spent_tokens: { type: "integer", minimum: 0 },
48
- seen_item_ids: {
49
- type: "array",
50
- maxItems: PM_READ_OUTPUT_SESSION_MAX_SEEN_ITEM_IDS,
51
- items: {
52
- type: "string",
53
- pattern: "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$",
54
- },
55
- },
56
- },
57
- },
58
- ],
59
- },
60
- outputCursor: { type: "string", minLength: 1 },
61
- outputRowContract: { type: "boolean" },
62
- path: { type: "string" },
63
- pmExecutable: { type: "string" },
64
- timeoutMs: { type: "number" },
65
- id: { type: "string" },
66
- target: { type: "string" },
67
- snapshotAction: {
68
- type: "string",
69
- enum: ["create", "list", "inspect", "restore", "delete"],
70
- },
71
- artifact: {
72
- type: "string",
73
- enum: ["item", "history", "relationship", "json"],
74
- },
75
- basePath: { type: "string" },
76
- oursPath: { type: "string" },
77
- theirsPath: { type: "string" },
78
- outputPath: { type: "string" },
79
- itemPath: { type: "string" },
80
- prefer: { type: "string", enum: ["ours", "theirs"] },
81
- includeReconciled: { type: "boolean" },
82
- lockTtlSeconds: { type: "number" },
83
- lockWaitMs: { type: "number" },
84
- capability: { type: "string", minLength: 1 },
85
- declarative: { type: "boolean" },
86
- output: { type: "string", minLength: 1 },
87
- markdown: { type: "boolean" },
88
- init: { type: "boolean" },
89
- install: { type: "boolean" },
90
- uninstall: { type: "boolean" },
91
- explore: { type: "boolean" },
92
- manage: { type: "boolean" },
93
- describe: { type: "boolean" },
94
- doctor: { type: "boolean" },
95
- catalog: { type: "boolean" },
96
- adopt: { type: "boolean" },
97
- adoptAll: { type: "boolean" },
98
- activate: { type: "boolean" },
99
- deactivate: { type: "boolean" },
100
- filterFilesMissing: { type: "boolean" },
101
- filterDocsMissing: { type: "boolean" },
102
- matchMode: { type: "string", enum: ["all", "any", "phrase"] },
103
- minScore: {
104
- anyOf: [
105
- { type: "number" },
106
- { type: "string", pattern: "^\\d+(\\.\\d+)?$" },
107
- ],
108
- },
109
- rank: {
110
- anyOf: [{ type: "number" }, { type: "string", pattern: "^-?\\d+$" }],
111
- },
112
- exemptIsolateType: {
113
- anyOf: [{ type: "string" }, { type: "array", items: { type: "string" } }],
114
- },
115
- saveBaseline: { type: "boolean" },
116
- rebuild: { type: "boolean" },
117
- github: { type: "string" },
118
- ref: { type: "string" },
119
- query: { type: "string" },
120
- queries: { type: "string" },
121
- k: { anyOf: [{ type: "number" }, { type: "string" }] },
122
- failUnder: { anyOf: [{ type: "number" }, { type: "string" }] },
123
- for: { type: "string", minLength: 1 },
124
- keywords: { type: "string" },
125
- fields: { type: "string" },
126
- sort: {
127
- type: "string",
128
- enum: [
129
- "priority",
130
- "deadline",
131
- "updated_at",
132
- "created_at",
133
- "title",
134
- "parent",
135
- ],
136
- },
137
- prefix: { type: "string" },
138
- idPrefix: { type: "string" },
139
- workspace: { type: "string" },
140
- preset: { type: "string", enum: ["minimal", "default", "strict", "custom"] },
141
- typePreset: { type: "string", enum: ["agile", "ops", "research"] },
142
- defaults: { type: "boolean" },
143
- verbose: { type: "boolean" },
144
- agentGuidance: { type: "string", enum: ["ask", "add", "skip", "status"] },
145
- withPackages: { type: "boolean" },
146
- mergeFence: { type: "boolean" },
147
- scope: { type: "string", enum: ["project", "global"] },
148
- allOver: { type: "number" },
149
- minEntries: { type: "number" },
150
- closed: { type: "boolean" },
151
- allStreams: { type: "boolean" },
152
- contractAction: { type: "string" },
153
- command: { type: "string" },
154
- summary: { type: "boolean" },
155
- schemaOnly: { type: "boolean" },
156
- flagsOnly: { type: "boolean" },
157
- availabilityOnly: { type: "boolean" },
158
- runtimeOnly: { type: "boolean" },
159
- activeOnly: { type: "boolean" },
160
- eagerTags: { type: "boolean" },
161
- fullChangedFields: { type: "boolean" },
162
- provenance: { type: "boolean" },
163
- provenanceSummary: { type: "boolean" },
164
- agentInstance: {
165
- anyOf: [{ type: "string" }, { type: "array", items: { type: "string" } }],
166
- },
167
- provenanceFilter: {
168
- anyOf: [{ type: "string" }, { type: "array", items: { type: "string" } }],
169
- },
170
- idOnly: { type: "boolean" },
171
- allowMissingParent: { type: "boolean" },
172
- allowUnresolvedDeps: { type: "boolean" },
173
- allowDuplicate: { type: "boolean" },
174
- duplicateOf: { type: "string" },
175
- configAction: { type: "string", enum: ["get", "set", "list", "export"] },
176
- key: { type: "string" },
177
- title: { type: "string" },
178
- item: {
179
- anyOf: [{ type: "string" }, { type: "array", items: { type: "string" } }],
180
- },
181
- start: { type: "string" },
182
- duration: { type: "string" },
183
- end: { type: "string" },
184
- location: { type: "string" },
185
- timezone: { type: "string" },
186
- allDay: { type: "boolean" },
187
- description: { type: "string" },
188
- type: { type: "string" },
189
- template: { type: "string" },
190
- createMode: { type: "string", enum: ["strict", "progressive"] },
191
- schedulePreset: { type: "string", enum: ["lightweight"] },
192
- status: { type: "string" },
193
- since: { type: "string", format: "date-time" },
194
- cursorMode: { type: "string", enum: ["batch", "row"] },
195
- exhaustive: { type: "boolean" },
196
- threshold: { type: "number", minimum: 0, maximum: 1 },
197
- filterStatus: { type: "string" },
198
- filterType: { type: "string" },
199
- filterTag: { type: "string" },
200
- filterPriority: { anyOf: [{ type: "string" }, { type: "number" }] },
201
- filterDeadlineBefore: { type: "string" },
202
- filterDeadlineAfter: { type: "string" },
203
- filterUpdatedAfter: { type: "string" },
204
- filterUpdatedBefore: { type: "string" },
205
- filterCreatedAfter: { type: "string" },
206
- filterCreatedBefore: { type: "string" },
207
- filterAssignee: { type: "string" },
208
- filterAssigneeFilter: { type: "string", enum: ["assigned", "unassigned"] },
209
- filterParent: { type: "string" },
210
- filterSprint: { type: "string" },
211
- filterRelease: { type: "string" },
212
- closeReason: { type: "string" },
213
- completedAt: { type: "string", format: "date-time" },
214
- reason: { type: "string" },
215
- priority: { anyOf: [{ type: "string" }, { type: "number" }] },
216
- tags: { type: "string" },
217
- addTags: { type: "array", items: { type: "string" } },
218
- removeTags: { type: "array", items: { type: "string" } },
219
- addAc: { type: "array", items: { type: "string" } },
220
- removeAc: { type: "array", items: { type: "string" } },
221
- body: { type: "string" },
222
- deadline: { type: "string" },
223
- estimate: { anyOf: [{ type: "string" }, { type: "number" }] },
224
- acceptanceCriteria: { type: "string" },
225
- author: { type: "string" },
226
- message: { type: "string" },
227
- owner: { type: "string" },
228
- enforcement: { type: "string" },
229
- assignee: { type: "string" },
230
- assigneeFilter: { type: "string", enum: ["assigned", "unassigned"] },
231
- parent: { type: "string" },
232
- reviewer: { type: "string" },
233
- attributedAuthor: { type: "string" },
234
- planFingerprint: { type: "string", pattern: "^[a-f0-9]{64}$" },
235
- historyEvent: { type: "array", items: { type: "string" } },
236
- risk: { type: "string" },
237
- confidence: { anyOf: [{ type: "string" }, { type: "number" }] },
238
- sprint: { type: "string" },
239
- release: { type: "string" },
240
- blockedBy: { type: "string" },
241
- blockedReason: { type: "string" },
242
- unblockNote: { type: "string" },
243
- reporter: { type: "string" },
244
- severity: { type: "string" },
245
- environment: { type: "string" },
246
- reproSteps: { type: "string" },
247
- resolution: { type: "string" },
248
- expectedResult: { type: "string" },
249
- actualResult: { type: "string" },
250
- affectedVersion: { type: "string" },
251
- fixedVersion: { type: "string" },
252
- component: { type: "string" },
253
- regression: {
254
- anyOf: [{ type: "boolean" }, { type: "string" }, { type: "number" }],
255
- },
256
- customerImpact: { type: "string" },
257
- definitionOfReady: { type: "string" },
258
- order: { anyOf: [{ type: "string" }, { type: "number" }] },
259
- goal: { type: "string" },
260
- objective: { type: "string" },
261
- value: { type: "string" },
262
- impact: { type: "string" },
263
- outcome: { type: "string" },
264
- whyNow: { type: "string" },
265
- mode: {
266
- type: "string",
267
- enum: ["keyword", "semantic", "hybrid"],
268
- },
269
- semanticWeight: { anyOf: [{ type: "string" }, { type: "number" }] },
270
- op: { type: "string" },
271
- compact: { type: "boolean" },
272
- raw: { type: "boolean" },
273
- brief: { type: "boolean" },
274
- full: { type: "boolean" },
275
- includeEmpty: { type: "boolean" },
276
- view: { type: "string", enum: ["agenda", "day", "week", "month"] },
277
- date: { type: "string" },
278
- from: { type: "string" },
279
- before: { type: "string" },
280
- at: { type: "string" },
281
- to: { type: "string" },
282
- migrationId: { type: "string" },
283
- fieldTypeScope: { type: "string" },
284
- past: { type: "boolean" },
285
- fullPeriod: { type: "boolean" },
286
- include: { type: "string" },
287
- recurrenceLookaheadDays: { anyOf: [{ type: "string" }, { type: "number" }] },
288
- recurrenceLookbackDays: { anyOf: [{ type: "string" }, { type: "number" }] },
289
- occurrenceLimit: { anyOf: [{ type: "string" }, { type: "number" }] },
290
- includeLinked: { type: "boolean" },
291
- semantic: { type: "boolean" },
292
- hybrid: { type: "boolean" },
293
- titleExact: { type: "boolean" },
294
- phraseExact: { type: "boolean" },
295
- highlight: { type: "boolean" },
296
- includeBody: { type: "boolean" },
297
- noTruncate: { type: "boolean" },
298
- strictRead: { type: "boolean" },
299
- tag: { type: "string" },
300
- deadlineBefore: { type: "string" },
301
- deadlineAfter: { type: "string" },
302
- today: { type: "boolean" },
303
- recent: { type: "boolean" },
304
- updatedAfter: { type: "string" },
305
- updatedBefore: { type: "string" },
306
- createdAfter: { type: "string" },
307
- createdBefore: { type: "string" },
308
- filterAcMissing: { type: "boolean" },
309
- filterEstimatesMissing: { type: "boolean" },
310
- filterResolutionMissing: { type: "boolean" },
311
- filterMetadataMissing: { type: "boolean" },
312
- filterReviewerMissing: { type: "boolean" },
313
- filterRiskMissing: { type: "boolean" },
314
- filterConfidenceMissing: { type: "boolean" },
315
- filterSprintMissing: { type: "boolean" },
316
- filterReleaseMissing: { type: "boolean" },
317
- // Content-field presence/absence filters (list/search). The --no-* variants
318
- // select items where the field is empty/absent.
319
- hasNotes: { type: "boolean" },
320
- noNotes: { type: "boolean" },
321
- hasLearnings: { type: "boolean" },
322
- noLearnings: { type: "boolean" },
323
- hasFiles: { type: "boolean" },
324
- noFiles: { type: "boolean" },
325
- hasDocs: { type: "boolean" },
326
- noDocs: { type: "boolean" },
327
- hasTests: { type: "boolean" },
328
- noTests: { type: "boolean" },
329
- hasComments: { type: "boolean" },
330
- noComments: { type: "boolean" },
331
- hasDeps: { type: "boolean" },
332
- noDeps: { type: "boolean" },
333
- hasBody: { type: "boolean" },
334
- emptyBody: { type: "boolean" },
335
- hasLinkedCommand: { type: "boolean" },
336
- noLinkedCommand: { type: "boolean" },
337
- // Bulk-selection (update-many/close-many) content + governance filters mirror
338
- // the list/search presence filters under the --filter- prefix.
339
- filterHasNotes: { type: "boolean" },
340
- filterNoNotes: { type: "boolean" },
341
- filterHasLearnings: { type: "boolean" },
342
- filterNoLearnings: { type: "boolean" },
343
- filterHasFiles: { type: "boolean" },
344
- filterNoFiles: { type: "boolean" },
345
- filterHasDocs: { type: "boolean" },
346
- filterNoDocs: { type: "boolean" },
347
- filterHasTests: { type: "boolean" },
348
- filterNoTests: { type: "boolean" },
349
- filterHasComments: { type: "boolean" },
350
- filterNoComments: { type: "boolean" },
351
- filterHasDeps: { type: "boolean" },
352
- filterNoDeps: { type: "boolean" },
353
- filterHasBody: { type: "boolean" },
354
- filterEmptyBody: { type: "boolean" },
355
- filterHasLinkedCommand: { type: "boolean" },
356
- filterNoLinkedCommand: { type: "boolean" },
357
- ids: { type: "string" },
358
- limit: { anyOf: [{ type: "string" }, { type: "number" }] },
359
- blockedLimit: { anyOf: [{ type: "string" }, { type: "number" }] },
360
- readyOnly: { type: "boolean" },
361
- offset: { anyOf: [{ type: "string" }, { type: "number" }] },
362
- progress: { type: "boolean" },
363
- background: { type: "boolean" },
364
- runId: { type: "string" },
365
- stream: {
366
- anyOf: [
367
- { type: "boolean" },
368
- {
369
- type: "string",
370
- enum: ["stdout", "stderr", "both", "rows", "ndjson", "jsonl"],
371
- },
372
- ],
373
- },
374
- tail: { anyOf: [{ type: "string" }, { type: "number" }] },
375
- addJson: {
376
- anyOf: [{ type: "string" }, { type: "array", items: { type: "string" } }],
377
- },
378
- eventType: { type: "string" },
379
- includeMeta: { type: "boolean" },
380
- allActionable: { type: "boolean" },
381
- verboseAuthorEvents: { type: "boolean" },
382
- match: { type: "string" },
383
- onlyIndex: { anyOf: [{ type: "string" }, { type: "number" }] },
384
- removeIndex: {
385
- type: "array",
386
- items: { anyOf: [{ type: "string" }, { type: "number" }] },
387
- },
388
- onlyLast: { type: "boolean" },
389
- envSet: { type: "array", items: { type: "string" } },
390
- envClear: { type: "array", items: { type: "string" } },
391
- sharedHostSafe: { type: "boolean" },
392
- detail: { type: "string", enum: ["summary", "deep"] },
393
- trace: { type: "boolean" },
394
- reload: { type: "boolean" },
395
- watch: { type: "boolean" },
396
- runtimeProbe: { type: "boolean" },
397
- fixManagedState: { type: "boolean" },
398
- isolated: { type: "boolean" },
399
- ignoreGlobal: { type: "boolean" },
400
- pmContext: { type: "string", enum: ["schema", "tracker", "auto"] },
401
- overrideLinkedPmContext: { type: "boolean" },
402
- workspaceContext: {
403
- type: "string",
404
- enum: ["source", "isolated", "snapshot"],
405
- },
406
- overrideLinkedWorkspaceContext: { type: "boolean" },
407
- allowUntrustedLinkedTests: { type: "boolean" },
408
- acknowledgeLinkedTests: { type: "boolean" },
409
- failOnContextMismatch: { type: "boolean" },
410
- failOnSkipped: { type: "boolean" },
411
- failOnEmptyTestRun: { type: "boolean" },
412
- requireAssertionsForPm: { type: "boolean" },
413
- checkContext: { type: "boolean" },
414
- autoPmContext: { type: "boolean" },
415
- measure: { type: "array", items: { type: "string" } },
416
- metricBelow: { type: "string" },
417
- metricDiff: { type: "string" },
418
- diff: { type: "boolean" },
419
- storage: { type: "boolean" },
420
- metadataCoverage: { type: "boolean" },
421
- fieldUtilization: { type: "boolean" },
422
- byAssignee: { type: "boolean" },
423
- byTag: { type: "boolean" },
424
- byPriority: { type: "boolean" },
425
- tagPrefix: { type: "string" },
426
- measurements: { type: "boolean" },
427
- metric: { type: "string" },
428
- measurementLimit: { type: "integer", minimum: 0, maximum: 1000 },
429
- observe: { type: "array", items: { type: "string" } },
430
- improvementDirection: {
431
- type: "string",
432
- enum: ["higher", "lower", "target"],
433
- },
434
- measurementSource: { type: "string" },
435
- measurementItem: { type: "string" },
436
- measurementRevision: { type: "string" },
437
- provenanceCoverage: { type: "boolean" },
438
- fleetAttribution: { type: "boolean" },
439
- eventLimit: { type: "integer", minimum: 1, maximum: 100000 },
440
- minimumSample: { type: "integer", minimum: 1, maximum: 10000 },
441
- verify: { type: "boolean" },
442
- literal: { type: "array", items: { type: "string" } },
443
- regex: { type: "array", items: { type: "string" } },
444
- replacement: { type: "string" },
445
- timeout: { anyOf: [{ type: "string" }, { type: "number" }] },
446
- validateClose: { type: "string", enum: ["off", "warn", "strict"] },
447
- checkMetadata: { type: "boolean" },
448
- metadataProfile: { type: "string", enum: ["core", "strict", "custom"] },
449
- checkResolution: { type: "boolean" },
450
- checkLifecycle: { type: "boolean" },
451
- checkStaleBlockers: { type: "boolean" },
452
- dependencyCycleSeverity: { type: "string", enum: ["off", "warn", "error"] },
453
- parentCycleSeverity: { type: "string", enum: ["off", "warn", "error"] },
454
- checkFiles: { type: "boolean" },
455
- checkStorageIntegrity: { type: "boolean" },
456
- strictDirectories: { type: "boolean" },
457
- requireMergeDrivers: { type: "boolean" },
458
- checkOnly: { type: "boolean" },
459
- checkTelemetry: { type: "boolean" },
460
- noRefresh: { type: "boolean" },
461
- refreshVectors: { type: "boolean" },
462
- verboseStaleItems: { type: "boolean" },
463
- skipVectors: { type: "boolean" },
464
- skipIntegrity: { type: "boolean" },
465
- skipDrift: { type: "boolean" },
466
- verboseDiagnostics: { type: "boolean" },
467
- allAffectedIds: { type: "boolean" },
468
- scanMode: {
469
- type: "string",
470
- enum: ["default", "tracked-all", "tracked-all-strict"],
471
- },
472
- includePmInternals: { type: "boolean" },
473
- verboseFileLists: { type: "boolean" },
474
- strictExit: { type: "boolean" },
475
- failOnWarn: { type: "boolean" },
476
- fixHints: { type: "boolean" },
477
- autoFix: { type: "boolean" },
478
- fixScope: {
479
- type: "array",
480
- items: {
481
- type: "string",
482
- enum: ["metadata", "resolution", "estimates", "lifecycle"],
483
- },
484
- },
485
- pruneMissing: { type: "boolean" },
486
- checkHistoryDrift: { type: "boolean" },
487
- checkCommandReferences: { type: "boolean" },
488
- counts: { type: "boolean" },
489
- edit: { type: "integer", minimum: 1 },
490
- delete: { type: "integer", minimum: 1 },
491
- dryRun: { type: "boolean" },
492
- normalizeProvenance: { type: "boolean" },
493
- salvageTail: { type: "boolean" },
494
- all: { type: "boolean" },
495
- clear: { type: "boolean" },
496
- cliOnly: { type: "boolean" },
497
- packagesOnly: { type: "boolean" },
498
- repair: { type: "boolean" },
499
- packageName: { type: "string" },
500
- rollback: { type: "string" },
501
- noCheckpoint: { type: "boolean" },
502
- force: { type: "boolean" },
503
- ifAvailable: { type: "boolean" },
504
- ifAbsent: { type: "boolean" },
505
- next: { type: "boolean" },
506
- maxAttempts: {
507
- anyOf: [
508
- { type: "integer", minimum: 1, maximum: 100 },
509
- { type: "string", pattern: "^(?:[1-9]|[1-9][0-9]|100)$" },
510
- ],
511
- },
512
- includeDecisions: { type: "boolean" },
513
- includeGates: { type: "boolean" },
514
- includeContainers: { type: "boolean" },
515
- explainRanking: { type: "boolean" },
516
- noTags: { type: "boolean" },
517
- noExtensionHealth: { type: "boolean" },
518
- run: { type: "boolean" },
519
- count: { type: "boolean" },
520
- sum: { type: "string" },
521
- avg: { type: "string" },
522
- tree: { type: "boolean" },
523
- treeId: { type: "string", minLength: 1 },
524
- definition: { type: "object" },
525
- trigger: {
526
- type: "string",
527
- enum: [
528
- "pre-commit",
529
- "pre-push",
530
- "pre-merge",
531
- "ci",
532
- "pre-release",
533
- "post-release",
534
- "scheduled",
535
- "on-claim",
536
- "on-close",
537
- ],
538
- },
539
- gate: { type: "string", minLength: 1 },
540
- treeDepth: { anyOf: [{ type: "string" }, { type: "number" }] },
541
- includeUnparented: { type: "boolean" },
542
- gcScope: {
543
- type: "array",
544
- items: {
545
- type: "string",
546
- enum: ["index", "embeddings", "runtime", "locks"],
547
- },
548
- },
549
- maxDepth: { anyOf: [{ type: "string" }, { type: "number" }] },
550
- nodeLimit: { anyOf: [{ type: "string" }, { type: "integer", minimum: 1 }] },
551
- edgeLimit: { anyOf: [{ type: "string" }, { type: "integer", minimum: 1 }] },
552
- tokenBudget: { anyOf: [{ type: "string" }, { type: "integer", minimum: 1 }] },
553
- cursor: { type: "string" },
554
- direction: { type: "string", enum: ["outgoing", "incoming", "both"] },
555
- kind: {
556
- anyOf: [{ type: "string" }, { type: "array", items: { type: "string" } }],
557
- },
558
- after: { type: "string" },
559
- maxPaths: { anyOf: [{ type: "string" }, { type: "integer", minimum: 1 }] },
560
- sample: { anyOf: [{ type: "string" }, { type: "integer", minimum: 1 }] },
561
- exemptIsolate: {
562
- anyOf: [{ type: "string" }, { type: "array", items: { type: "string" } }],
563
- },
564
- collapse: { type: "string", enum: ["none", "repeated"] },
565
- shell: { type: "string", enum: ["bash", "zsh", "fish"] },
566
- stdin: { type: "boolean" },
567
- file: { type: "string" },
568
- preserveSourceIds: { type: "boolean" },
569
- folder: { type: "string" },
570
- subcommand: { type: "string" },
571
- name: { type: "string" },
572
- defaultStatus: { type: "string" },
573
- alias: { type: "array", items: { type: "string" } },
574
- role: { type: "array", items: { type: "string" } },
575
- fieldType: {
576
- type: "string",
577
- enum: ["string", "number", "boolean", "string_array"],
578
- },
579
- commands: { type: "array", items: { type: "string" } },
580
- cliFlag: { type: "string" },
581
- required: { type: "boolean" },
582
- requiredOnCreate: { type: "boolean" },
583
- allowUnset: { type: "boolean" },
584
- requiredTypes: { type: "array", items: { type: "string" } },
585
- infer: { type: "boolean" },
586
- minCount: { type: "number" },
587
- text: { type: "string" },
588
- add: { type: "array", items: { type: "string" } },
589
- addGlob: { type: "array", items: { type: "string" } },
590
- remove: { type: "array", items: { type: "string" } },
591
- migrate: { type: "array", items: { type: "string" } },
592
- discover: { type: "boolean" },
593
- apply: { type: "boolean" },
594
- discoveryNote: { type: "string" },
595
- lookupPath: { type: "array", items: { type: "string" } },
596
- explain: { type: "boolean" },
597
- lines: { type: "string", pattern: "^[1-9]\\d*:[1-9]\\d*$" },
598
- decisionDepth: { type: "integer", minimum: 1, maximum: 32 },
599
- // GH-170 (pm-pfnx): single-string note for files/docs add batches (the shared
600
- // `note` key below is the array-typed create/update note seed).
601
- addNote: { type: "string" },
602
- list: { type: "boolean" },
603
- appendStable: { type: "boolean" },
604
- validatePaths: { type: "boolean" },
605
- dep: { type: "array", items: { type: "string" } },
606
- depRemove: { type: "array", items: { type: "string" } },
607
- replaceDeps: { type: "boolean" },
608
- replaceTests: { type: "boolean" },
609
- replaceFiles: { type: "boolean" },
610
- replaceDocs: { type: "boolean" },
611
- comment: { type: "array", items: { type: "string" } },
612
- note: { type: "array", items: { type: "string" } },
613
- learning: { type: "array", items: { type: "string" } },
614
- linkedFile: { type: "array", items: { type: "string" } },
615
- linkedTest: { type: "array", items: { type: "string" } },
616
- doc: { type: "array", items: { type: "string" } },
617
- reminder: { type: "array", items: { type: "string" } },
618
- event: { type: "array", items: { type: "string" } },
619
- typeOption: { type: "array", items: { type: "string" } },
620
- field: { type: "array", items: { type: "string" } },
621
- unset: { type: "array", items: { type: "string" } },
622
- clearDeps: { type: "boolean" },
623
- clearComments: { type: "boolean" },
624
- clearNotes: { type: "boolean" },
625
- clearLearnings: { type: "boolean" },
626
- clearFiles: { type: "boolean" },
627
- clearTests: { type: "boolean" },
628
- clearDocs: { type: "boolean" },
629
- clearReminders: { type: "boolean" },
630
- clearEvents: { type: "boolean" },
631
- clearTypeOptions: { type: "boolean" },
632
- criterion: { type: "array", items: { type: "string" } },
633
- clearCriteria: { type: "boolean" },
634
- groupBy: { type: "string" },
635
- completion: { type: "boolean" },
636
- format: { type: "string" },
637
- unbounded: { type: "boolean" },
638
- depth: { type: "string", enum: ["brief", "standard", "deep", "full"] },
639
- section: {
640
- type: "array",
641
- items: {
642
- type: "string",
643
- enum: [
644
- "hierarchy",
645
- "activity",
646
- "progress",
647
- "blockers",
648
- "files",
649
- "workload",
650
- "staleness",
651
- "tests",
652
- ],
653
- },
654
- },
655
- activityLimit: { anyOf: [{ type: "string" }, { type: "number" }] },
656
- staleThreshold: { type: "string" },
657
- policy: { type: "string" },
658
- };
659
- /** Per-action property overrides for parameters whose transport shape differs from their shared default. */
660
- export const PM_TOOL_ACTION_SCOPED_PARAMETER_PROPERTIES = {
661
- assurance: {
662
- definition: ASSURANCE_DEFINITION_SCHEMA,
663
- kind: {
664
- type: "string",
665
- enum: ["measurement", "assertion", "gate"],
666
- },
667
- subcommand: {
668
- type: "string",
669
- enum: [
670
- "list",
671
- "show",
672
- "put",
673
- "remove",
674
- "run",
675
- "verdicts",
676
- "presets",
677
- "apply",
678
- "derive",
679
- "promote",
680
- "risk",
681
- "lineages",
682
- ],
683
- },
684
- preset: {
685
- type: "string",
686
- enum: ["software-delivery", "research", "agent-evaluation", "operations"],
687
- },
688
- enforcement: { type: "string", enum: ["warn", "block"] },
689
- limit: { type: "integer", minimum: 1, maximum: 1000 },
690
- },
691
- activity: {
692
- harness: {
693
- anyOf: [{ type: "string" }, { type: "array", items: { type: "string" } }],
694
- },
695
- },
696
- "update-many": {
697
- ids: {
698
- anyOf: [
699
- { type: "string" },
700
- { type: "number" },
701
- {
702
- type: "array",
703
- items: { anyOf: [{ type: "string" }, { type: "number" }] },
704
- },
705
- ],
706
- },
707
- },
708
- "close-many": {
709
- ids: {
710
- anyOf: [
711
- { type: "string" },
712
- { type: "number" },
713
- {
714
- type: "array",
715
- items: { anyOf: [{ type: "string" }, { type: "number" }] },
716
- },
717
- ],
718
- },
719
- },
720
- "history-compact": {
721
- ids: {
722
- anyOf: [
723
- { type: "string" },
724
- { type: "number" },
725
- {
726
- type: "array",
727
- items: { anyOf: [{ type: "string" }, { type: "number" }] },
728
- },
729
- ],
730
- },
731
- },
732
- events: {
733
- since: { type: "string", minLength: 1 },
734
- type: {
735
- anyOf: [{ type: "string" }, { type: "array", items: { type: "string" } }],
736
- },
737
- author: {
738
- anyOf: [{ type: "string" }, { type: "array", items: { type: "string" } }],
739
- },
740
- item: {
741
- anyOf: [{ type: "string" }, { type: "array", items: { type: "string" } }],
742
- },
743
- limit: { type: "integer", minimum: 0, maximum: 1000 },
744
- harness: {
745
- anyOf: [{ type: "string" }, { type: "array", items: { type: "string" } }],
746
- },
747
- },
748
- history: {
749
- harness: {
750
- anyOf: [{ type: "string" }, { type: "array", items: { type: "string" } }],
751
- },
752
- },
753
- remind: {
754
- at: { type: "string", minLength: 1 },
755
- },
756
- };
757
- /** Supported values accepted by the plan subcommand contract. */
758
- export const PLAN_SUBCOMMAND_VALUES = [
759
- "create",
760
- "show",
761
- "add-step",
762
- "update-step",
763
- "complete-step",
764
- "block-step",
765
- "reorder-step",
766
- "remove-step",
767
- "link",
768
- "unlink",
769
- "decision",
770
- "discovery",
771
- "validation",
772
- "resume",
773
- "approve",
774
- "materialize",
775
- ];
776
- /** Public contract for plan action parameter properties, shared by SDK and presentation-layer consumers. */
777
- export const PLAN_ACTION_PARAMETER_PROPERTIES = {
778
- subcommand: { type: "string", enum: [...PLAN_SUBCOMMAND_VALUES] },
779
- stepRef: { type: "string" },
780
- reorderTo: { anyOf: [{ type: "string" }, { type: "number" }] },
781
- scope: { type: "string" },
782
- harness: { type: "string", enum: [...PLAN_HARNESS_VALUES] },
783
- mode: { type: "string", enum: [...PLAN_MODE_VALUES] },
784
- resumeContext: { type: "string" },
785
- related: { type: "string" },
786
- blocks: { type: "string" },
787
- claim: { type: "boolean" },
788
- fromSearch: { type: "string" },
789
- stepTitle: { type: "string" },
790
- // pm-6mit: ordered step titles for create (string or array; values are never
791
- // comma-split). On step subcommands a single value aliases stepTitle.
792
- step: {
793
- anyOf: [{ type: "string" }, { type: "array", items: { type: "string" } }],
794
- },
795
- stepBody: { type: "string" },
796
- stepOwner: { type: "string" },
797
- stepStatus: { type: "string", enum: [...PLAN_STEP_STATUS_VALUES] },
798
- stepEvidence: { type: "string" },
799
- stepBlockedReason: { type: "string" },
800
- stepReplacement: { type: "string" },
801
- dependsOn: { type: "string" },
802
- link: { type: "string" },
803
- linkKind: { type: "string", enum: [...PLAN_STEP_LINK_KIND_VALUES] },
804
- linkNote: { type: "string" },
805
- promoteToItemDep: { type: "boolean" },
806
- allowMultipleActive: { type: "boolean" },
807
- file: {
808
- anyOf: [{ type: "string" }, { type: "array", items: { type: "string" } }],
809
- },
810
- test: {
811
- anyOf: [{ type: "string" }, { type: "array", items: { type: "string" } }],
812
- },
813
- doc: {
814
- anyOf: [{ type: "string" }, { type: "array", items: { type: "string" } }],
815
- },
816
- decisionText: { type: "string" },
817
- decision: { type: "string" },
818
- decisionRationale: { type: "string" },
819
- decisionEvidence: { type: "string" },
820
- discoveryText: { type: "string" },
821
- discovery: { type: "string" },
822
- validationText: { type: "string" },
823
- validation: { type: "string" },
824
- validationCommand: { type: "string" },
825
- validationExpected: { type: "string" },
826
- steps: { type: "array", items: { type: "string" } },
827
- materializeType: { type: "string" },
828
- materializeParent: { type: "string" },
829
- materializeTags: { type: "string" },
830
- field: {
831
- anyOf: [{ type: "string" }, { type: "array", items: { type: "string" } }],
832
- },
833
- };
834
- /** Public contract for plan action parameter metadata, shared by SDK and presentation-layer consumers. */
835
- export const PLAN_ACTION_PARAMETER_METADATA = {
836
- subcommand: {
837
- description: "Plan workflow operation to run.",
838
- examples: ["create", "show", "add-step", "approve"],
839
- },
840
- stepRef: {
841
- description: "Plan step id or order for step lifecycle subcommands.",
842
- examples: ["plan-step-001", "1"],
843
- },
844
- reorderTo: {
845
- description: "New integer order for reorder-step.",
846
- examples: [1, "2"],
847
- },
848
- scope: {
849
- description: "Short free-text scope statement describing what the Plan covers.",
850
- examples: ["Release readiness audit", "Search package migration"],
851
- },
852
- mode: {
853
- description: "Plan lifecycle mode.",
854
- examples: ["draft", "research", "approved"],
855
- },
856
- step: {
857
- description: "Ordered initial step titles for create (string or array, never comma-split; stepTitle, when also set, becomes the first step). For step subcommands a single value aliases stepTitle.",
858
- examples: [["Read the code", "Write the fix", "Run the tests"]],
859
- },
860
- file: {
861
- description: "File link to attach while creating or materializing a Plan.",
862
- examples: ["path=src/cli.ts,note=implementation surface"],
863
- },
864
- test: {
865
- description: "Test command link to attach while creating or materializing a Plan.",
866
- examples: ["command=pnpm build,timeout_seconds=300"],
867
- },
868
- doc: {
869
- description: "Documentation link to attach while creating or materializing a Plan.",
870
- examples: ["path=docs/SDK.md,note=public API reference"],
871
- },
872
- };
873
- /** Public contract for pm tool parameter metadata, shared by SDK and presentation-layer consumers. */
874
- export const PM_TOOL_PARAMETER_METADATA = {
875
- includeGates: {
876
- description: "Opt next or claim-next into outcome gates. Blocker and ownership restrictions still apply.",
877
- },
878
- includeContainers: {
879
- description: "Opt next or claim-next into containers with unfinished descendants. Blocker and ownership restrictions still apply.",
880
- },
881
- action: {
882
- description: "Tool action to execute.",
883
- },
884
- pmExecutable: {
885
- description: "Override the pm executable used by actions that invoke or verify an external CLI process.",
886
- examples: ["pm", "node dist/cli.js"],
887
- },
888
- force: {
889
- description: "Allow the selected action to override its supported ownership, terminal-state, or destructive-operation guard.",
890
- },
891
- limit: {
892
- description: "Maximum number of rows returned by the selected action.",
893
- examples: [10, "25"],
894
- },
895
- text: {
896
- description: "Text payload used by append, comment, note, or learning mutations.",
897
- },
898
- path: {
899
- description: "Optional PM data root override for this invocation.",
900
- examples: [".agents/pm"],
901
- },
902
- scope: {
903
- description: "Scope selector for commands that operate on project or global state. Linked files, docs, and tests default to project scope when omitted.",
904
- examples: ["project", "global"],
905
- },
906
- detail: {
907
- description: "Detail mode for commands that support concise and deep diagnostics.",
908
- examples: ["summary", "deep"],
909
- },
910
- trace: {
911
- description: "When true for extension-doctor, include actionable registration traces in deep diagnostics.",
912
- },
913
- reload: {
914
- description: "When true for extension action payloads, trigger cache-busted extension module reload.",
915
- },
916
- watch: {
917
- description: "When true for extension-reload/extension action payloads, enable watch mode semantics.",
918
- },
919
- runtimeProbe: {
920
- description: "When true for extension-manage, run a doctor-like runtime activation probe for parity fields.",
921
- },
922
- fixManagedState: {
923
- description: "When true for extension-manage/extension-doctor, adopt unmanaged extensions before diagnostics/update checks.",
924
- },
925
- isolated: {
926
- description: "When true for extension-doctor/package-doctor, ignore global registrations for hermetic project diagnostics.",
927
- },
928
- ignoreGlobal: {
929
- description: "Alias for isolated on extension-doctor/package-doctor action payloads.",
930
- },
931
- target: {
932
- description: "Positional target argument for the selected action (ID, source, package source, or extension name).",
933
- examples: ["pm-a1b2", ".agents/pm/extensions/sample", "sample-extension"],
934
- },
935
- capability: {
936
- description: "Starter capability selected by extension-init or package-init scaffolding.",
937
- examples: ["commands", "hooks", "search", "schema"],
938
- },
939
- declarative: {
940
- description: "Generate the package composeExtension declarative blueprint starter.",
941
- },
942
- output: {
943
- description: "File path for commands that write generated output, such as package/extension describe Markdown references.",
944
- examples: ["docs/pm-package-reference.md"],
945
- },
946
- markdown: {
947
- description: "Render the package or extension description as Markdown instead of structured output.",
948
- examples: [true],
949
- },
950
- github: {
951
- description: "GitHub shorthand owner/repo[/path] source for package/extension install actions.",
952
- examples: ["org/repo/extensions/sample"],
953
- },
954
- ref: {
955
- description: "Git ref/branch/tag used when installing from GitHub shorthand/URL sources.",
956
- examples: ["main", "v1.0.0"],
957
- },
958
- cliOnly: {
959
- description: "Restrict upgrade to the pm CLI/SDK npm package.",
960
- },
961
- packagesOnly: {
962
- description: "Restrict upgrade to managed installable pm packages.",
963
- },
964
- repair: {
965
- description: "Force npm global reinstall semantics when upgrading the pm CLI/SDK.",
966
- },
967
- tag: {
968
- description: "npm version or dist-tag used for CLI and registry package upgrades.",
969
- examples: ["latest", "next", "2026.5.11"],
970
- },
971
- today: {
972
- description: "When true for list actions, include only items updated since local midnight today.",
973
- },
974
- recent: {
975
- description: "When true for list actions, include only items updated in the last seven days.",
976
- },
977
- packageName: {
978
- description: "Override the pm CLI package name for self-upgrade automation and tests.",
979
- examples: ["@unbrained/pm-cli"],
980
- },
981
- json: {
982
- description: "Emit machine-readable JSON output.",
983
- },
984
- quiet: {
985
- description: "Suppress stdout payload output.",
986
- },
987
- noExtensions: {
988
- description: "Disable extension loading for this invocation.",
989
- },
990
- noPager: {
991
- description: "Disable pager integration for help and long output.",
992
- },
993
- tokenAccounting: {
994
- description: "Request a bounded transport-level receipt for output emitted by a compatible CLI or MCP host.",
995
- },
996
- outputInclude: {
997
- description: "Comma-separated fields or sections retained by any built-in read action.",
998
- examples: ["id,title,status", "summary,counts"],
999
- },
1000
- outputLimit: {
1001
- description: "Universal read row ceiling, or unbounded to disable the shared ceiling.",
1002
- examples: [10, "unbounded"],
1003
- },
1004
- outputBudget: {
1005
- description: "Universal estimated-token ceiling for a read result, or unbounded to disable the shared ceiling.",
1006
- examples: [600, 1200, "unbounded"],
1007
- },
1008
- outputFormat: {
1009
- description: "Universal read-result encoding selector.",
1010
- examples: ["toon", "json"],
1011
- },
1012
- outputSession: {
1013
- description: "Caller-carried JSON session state that enforces a token ceiling across read calls and replaces repeated item facts with resolvable context references.",
1014
- examples: [
1015
- {
1016
- version: 1,
1017
- id: "orientation",
1018
- token_budget: 4000,
1019
- spent_tokens: 0,
1020
- seen_item_ids: [],
1021
- },
1022
- ],
1023
- },
1024
- outputCursor: {
1025
- description: "Opaque continuation cursor returned when a declared row collection is compacted by the output budget.",
1026
- },
1027
- outputRowContract: {
1028
- description: "Include the row selector and TOON row-encoding contract on a read result.",
1029
- },
1030
- profile: {
1031
- description: "Emit deterministic timing diagnostics to stderr.",
1032
- },
1033
- timeoutMs: {
1034
- description: "Tool execution timeout in milliseconds.",
1035
- examples: [120000],
1036
- },
1037
- id: {
1038
- description: "Item identifier for read or mutation actions.",
1039
- examples: ["pm-a1b2"],
1040
- },
1041
- treeId: {
1042
- description: "Commit, tree, snapshot, or immutable workspace identity judged by an assurance gate.",
1043
- examples: ["0123456789abcdef", "release-candidate-3"],
1044
- },
1045
- definition: {
1046
- description: "Structured measurement, assertion, or gate declaration used by assurance put.",
1047
- },
1048
- trigger: {
1049
- description: "Lifecycle trigger used to evaluate an assurance gate.",
1050
- examples: ["ci", "pre-release"],
1051
- },
1052
- gate: {
1053
- description: "Stable assurance gate id used to filter durable verdict history.",
1054
- examples: ["release-readiness"],
1055
- },
1056
- owner: {
1057
- description: "pm item that owns preset or observation-derived assurance assertions.",
1058
- examples: ["pm-a1b2"],
1059
- },
1060
- enforcement: {
1061
- description: "Explicit next assurance enforcement level.",
1062
- examples: ["warn", "block"],
1063
- },
1064
- runId: {
1065
- description: "Background test run identifier.",
1066
- examples: ["tr-kq9x3f-93acde"],
1067
- },
1068
- title: {
1069
- description: "Item title text.",
1070
- },
1071
- description: {
1072
- description: "Item description text.",
1073
- },
1074
- type: {
1075
- description: "Item type name from the active runtime type registry.",
1076
- examples: ["Task", "Feature"],
1077
- },
1078
- subcommand: {
1079
- description: "Subcommand selector for schema, profile, telemetry, and graph actions.",
1080
- },
1081
- name: {
1082
- description: "Custom definition name, schema migration source name, or profile name.",
1083
- examples: ["Spike", "review", "component"],
1084
- },
1085
- defaultStatus: {
1086
- description: "Default status hint recorded for a custom item type.",
1087
- examples: ["open"],
1088
- },
1089
- alias: {
1090
- description: "Aliases for the custom item type or status (repeatable).",
1091
- examples: [["spike", "research"]],
1092
- },
1093
- role: {
1094
- description: "Lifecycle roles for a custom status (schema add-status): draft, active, blocked, terminal, terminal_done, terminal_canceled, default_open, default_close, default_cancel.",
1095
- examples: [["active"], ["terminal", "terminal_done"]],
1096
- },
1097
- fieldType: {
1098
- description: "Value type for a custom field (schema add-field): string, number, boolean, or string_array.",
1099
- examples: ["string", "number", "string_array"],
1100
- },
1101
- fieldTypeScope: {
1102
- description: "Optional item type restricting which records participate in schema rename-field.",
1103
- examples: ["Issue", "Feature"],
1104
- },
1105
- migrationId: {
1106
- description: "Optional stable idempotency override used to persist and resume a schema migration plan; omitted values are derived from the workspace and normalized request.",
1107
- examples: ["severity-to-impact-v2"],
1108
- },
1109
- commands: {
1110
- description: "Commands a custom field is wired onto (schema add-field): create, update, update_many, list, search, calendar, context.",
1111
- examples: [
1112
- ["create", "update"],
1113
- ["create", "update", "list"],
1114
- ],
1115
- },
1116
- cliFlag: {
1117
- description: "Override the auto-derived CLI flag for a custom field (schema add-field).",
1118
- examples: ["--owner"],
1119
- },
1120
- required: {
1121
- description: "Mark a custom field as always required (schema add-field).",
1122
- },
1123
- requiredOnCreate: {
1124
- description: "Mark a custom field as required at create time (schema add-field).",
1125
- },
1126
- allowUnset: {
1127
- description: "Whether a custom field may be cleared via --unset (schema add-field); defaults to true.",
1128
- },
1129
- allowDuplicate: {
1130
- description: "Explicitly proceed when strict similarity governance finds likely duplicate items.",
1131
- },
1132
- allowUnresolvedDeps: {
1133
- description: "Permit unresolved local dependency targets while returning dependency_target_unresolved warning receipts. Cross-workspace references should use source_kind=external instead.",
1134
- examples: [true],
1135
- },
1136
- requiredTypes: {
1137
- description: "Restrict a custom field's requirement to specific item types (schema add-field).",
1138
- examples: [["Bug"], ["Story", "Spike"]],
1139
- },
1140
- infer: {
1141
- description: "Infer custom item types from title-prefix conventions (schema add-type); previews unless apply is true.",
1142
- },
1143
- minCount: {
1144
- description: "Minimum number of items sharing a title prefix for schema add-type inference (default 10).",
1145
- examples: [10, 25],
1146
- },
1147
- preset: {
1148
- description: "Governance preset for initialization flows.",
1149
- examples: ["minimal", "default", "strict"],
1150
- },
1151
- idPrefix: {
1152
- description: "Tracker item identifier prefix used by initialization; overrides the positional compatibility prefix.",
1153
- examples: ["pm", "work"],
1154
- },
1155
- workspace: {
1156
- description: "Workspace directory where initialization resolves or creates the tracker.",
1157
- examples: [".", "packages/app"],
1158
- },
1159
- typePreset: {
1160
- description: "Domain item-type preset registered during initialization.",
1161
- examples: ["agile", "ops", "research"],
1162
- },
1163
- defaults: {
1164
- description: "Use non-interactive setup defaults during initialization.",
1165
- },
1166
- verbose: {
1167
- description: "Include the full resolved settings tree in init output.",
1168
- },
1169
- agentGuidance: {
1170
- description: "Control AGENTS.md/CLAUDE.md guidance behavior during init: ask, add, skip, or status.",
1171
- examples: ["ask", "add", "skip", "status"],
1172
- },
1173
- withPackages: {
1174
- description: "Install all bundled first-party pm packages during initialization.",
1175
- },
1176
- mergeFence: {
1177
- description: "Install the repository merge-driver fence for a fresh Git-backed tracker; set false to opt out.",
1178
- },
1179
- createMode: {
1180
- description: "Create required-option policy mode.",
1181
- examples: ["strict", "progressive"],
1182
- },
1183
- schedulePreset: {
1184
- description: "Schedule-centric create preset for Reminder, Meeting, and Event types.",
1185
- examples: ["lightweight"],
1186
- },
1187
- status: {
1188
- description: "Item status value. Statuses are project-configurable via .agents/pm/settings.json (schema block); the built-in defaults are draft, open, in_progress, blocked, closed, canceled. Custom statuses defined for the project are accepted — discover the active set with the pm_contracts tool (workspace.statuses) or `pm contracts`. Unknown statuses are rejected at runtime with a did-you-mean hint rather than blocked by a fixed schema enum.",
1189
- examples: ["open", "in_progress"],
1190
- },
1191
- since: {
1192
- description: "Inclusive ISO 8601 creation timestamp lower bound for duplicate discovery.",
1193
- examples: ["2026-01-01T00:00:00.000Z"],
1194
- },
1195
- exhaustive: {
1196
- description: "Compare every duplicate pair within the disclosed safety bound; default prefix filtering preserves exact recall.",
1197
- },
1198
- threshold: {
1199
- description: "Minimum duplicate similarity score from zero through one.",
1200
- examples: [0.85],
1201
- },
1202
- priority: {
1203
- description: "Priority value in range 0..4.",
1204
- examples: [0, 1, "2"],
1205
- },
1206
- order: {
1207
- description: "Planning order/rank value for create/update, or sort direction (asc|desc) for list-family sorting.",
1208
- examples: [0, 1, "2", "asc", "desc"],
1209
- },
1210
- sort: {
1211
- description: "List-family sort field selector.",
1212
- examples: [
1213
- "priority",
1214
- "deadline",
1215
- "updated_at",
1216
- "created_at",
1217
- "title",
1218
- "parent",
1219
- ],
1220
- },
1221
- tags: {
1222
- description: "Comma-delimited tag list.",
1223
- examples: ["pm-cli,agent-ux"],
1224
- },
1225
- addTags: {
1226
- description: "Tags to add to the existing list without replacing it. Each entry may be CSV or a JSON array.",
1227
- examples: [["agent-ux"], ["fix", "security"]],
1228
- },
1229
- addAc: {
1230
- description: "Acceptance criteria appended individually without replacing the existing list (one criterion per entry).",
1231
- examples: [["error path covered by a regression test"]],
1232
- },
1233
- removeAc: {
1234
- description: "Acceptance criteria removed individually by exact text match; the mutation fails atomically if any selector is unmatched (one criterion per entry).",
1235
- examples: [["superseded manual QA step"]],
1236
- },
1237
- removeTags: {
1238
- description: "Tags to remove from the existing list. Each entry may be CSV or a JSON array.",
1239
- examples: [["stale"], ["legacy", "wontfix"]],
1240
- },
1241
- deadline: {
1242
- description: "ISO/date timestamp or relative offset (+6h/+1d/+2w/+6m).",
1243
- examples: ["2026-04-01T00:00:00.000Z", "+1d"],
1244
- },
1245
- reminder: {
1246
- description: "Repeatable reminder seed entries at=<iso|relative>,text=<text>.",
1247
- examples: [["at=+2d,text=Review PR"]],
1248
- },
1249
- event: {
1250
- description: "Repeatable event seed entries start=<iso|relative> with end=<iso|relative> or duration=<relative|30min|PT30M>. Bare `m` remains months for backward compatibility.",
1251
- examples: [
1252
- ["start=2026-07-01T10:00:00Z,duration=2h,title=planning"],
1253
- ["start=2026-07-01T10:00:00Z,duration=30min,title=standup"],
1254
- ["start=2026-07-01T10:00:00Z,duration=PT30M,title=window"],
1255
- ],
1256
- },
1257
- historyEvent: {
1258
- description: "Unknown-author history target in <item-id>:<one-based-line> form.",
1259
- examples: [["pm-example:4", "pm-example:5"]],
1260
- },
1261
- planFingerprint: {
1262
- description: "Exact SHA-256 returned by a history-author-acknowledge dry-run preview; apply refuses stale or changed source coordinates.",
1263
- examples: [
1264
- "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
1265
- ],
1266
- },
1267
- estimate: {
1268
- description: "Estimated effort in minutes.",
1269
- examples: [60, "120"],
1270
- },
1271
- acceptanceCriteria: {
1272
- description: "Complete acceptance-criteria text supplied while creating or replacing an item field.",
1273
- },
1274
- author: {
1275
- description: "Intentional mutation-author override. Agent harness identity is automatic when omitted.",
1276
- },
1277
- attributedAuthor: {
1278
- description: "Principal attributed to the immutable unknown-author history events after review.",
1279
- examples: ["reviewed-principal"],
1280
- },
1281
- message: {
1282
- description: "History message for mutation audit trail.",
1283
- },
1284
- ifAbsent: {
1285
- description: "For annotations, append only when no existing entry has the same resolved author and exact stored text; retries return changed false without a history event.",
1286
- },
1287
- assignee: {
1288
- description: "Assignee identity.",
1289
- },
1290
- assigneeFilter: {
1291
- description: "Assignee presence selector for list, calendar, and context filters.",
1292
- examples: ["assigned", "unassigned"],
1293
- },
1294
- parent: {
1295
- description: "Parent item ID filter for hierarchical list queries.",
1296
- examples: ["pm-epic01"],
1297
- },
1298
- blockedLimit: {
1299
- description: "Cap blocked rows returned by the next action (defaults to the ready --limit).",
1300
- examples: ["3"],
1301
- },
1302
- readyOnly: {
1303
- description: "When true, the next action omits the blocked companion list.",
1304
- },
1305
- unset: {
1306
- description: "Repeatable list of item-metadata fields to clear explicitly during create/update mutations.",
1307
- examples: [["deadline", "assignee"], ["close-reason"]],
1308
- },
1309
- clearDeps: {
1310
- description: "When true, clear linked dependencies.",
1311
- },
1312
- replaceDeps: {
1313
- description: "When true for update, atomically replace dependencies with the supplied --dep values.",
1314
- },
1315
- replaceTests: {
1316
- description: "When true for update, atomically replace linked tests with the supplied --test values.",
1317
- },
1318
- replaceFiles: {
1319
- description: "When true for update, atomically replace linked files with the supplied --file values.",
1320
- },
1321
- replaceDocs: {
1322
- description: "When true for update, atomically replace linked docs with the supplied --doc values.",
1323
- },
1324
- lookupPath: {
1325
- description: "One or more source paths whose referencing pm items should be returned by files lookup.",
1326
- examples: [["src/sdk/files.ts"], ["README.md", "docs/SDK.md"]],
1327
- },
1328
- explain: {
1329
- description: "Include ranked linked-file, rationale, and governing-decision evidence for a files lookup.",
1330
- },
1331
- lines: {
1332
- description: "Inclusive start:end source-line range for Git contribution attribution; requires one lookup path.",
1333
- examples: ["10:24"],
1334
- },
1335
- decisionDepth: {
1336
- description: "Maximum typed relationship depth searched for a governing Decision during files lookup.",
1337
- examples: [8],
1338
- },
1339
- clearComments: {
1340
- description: "When true, clear item comments.",
1341
- },
1342
- clearNotes: {
1343
- description: "When true, clear item notes.",
1344
- },
1345
- clearLearnings: {
1346
- description: "When true, clear item learnings.",
1347
- },
1348
- clearFiles: {
1349
- description: "When true, clear linked files.",
1350
- },
1351
- clearTests: {
1352
- description: "When true, clear linked tests.",
1353
- },
1354
- clearDocs: {
1355
- description: "When true, clear linked docs.",
1356
- },
1357
- clearReminders: {
1358
- description: "When true, clear reminders.",
1359
- },
1360
- clearEvents: {
1361
- description: "When true, clear events.",
1362
- },
1363
- clearTypeOptions: {
1364
- description: "When true, clear type option metadata.",
1365
- },
1366
- clearCriteria: {
1367
- description: "When true for config set criteria-list keys (definition-of-done, metadata-required-fields, lifecycle pattern lists), clear the criteria list.",
1368
- },
1369
- mode: {
1370
- description: "Mode selector for search and reindex (keyword|semantic|hybrid).",
1371
- examples: ["keyword", "hybrid"],
1372
- },
1373
- semanticWeight: {
1374
- description: "Per-query hybrid semantic weight override in [0,1] for search action; invalid values fall back to settings.",
1375
- examples: [0.2, "0.7"],
1376
- },
1377
- op: {
1378
- description: "History operation filter for activity output.",
1379
- examples: ["create", "update", "close", "update_ownership_bypass"],
1380
- },
1381
- fullPeriod: {
1382
- description: "For day/week/month calendar views, include the full anchored period instead of clipping the start to now.",
1383
- },
1384
- progress: {
1385
- description: "Emit progress diagnostics to stderr for long-running operations.",
1386
- },
1387
- background: {
1388
- description: "Run linked tests in managed background mode.",
1389
- },
1390
- addJson: {
1391
- description: "JSON input: one structured context event for notes, or repeatable linked-test entries for test.",
1392
- examples: [
1393
- [
1394
- `{"command":"node scripts/run-tests.mjs test -- tests/unit/output.spec.ts","timeout_seconds":240}`,
1395
- ],
1396
- ],
1397
- },
1398
- eventType: {
1399
- description: "For notes action, return structured context events whose top-level type matches this value.",
1400
- },
1401
- includeMeta: {
1402
- description: "Include structured-event counts for notes reads; filtered reads also include total, returned, limit, and has-more metadata.",
1403
- },
1404
- allActionable: {
1405
- description: "For history-author-acknowledge, select every currently actionable undispositioned event.",
1406
- },
1407
- match: {
1408
- description: "Run only linked tests whose command or path contains this case-insensitive substring.",
1409
- examples: ["output.spec.ts", "coverage"],
1410
- },
1411
- onlyIndex: {
1412
- description: "Run only the 1-based linked-test index from pm test <id> --list order.",
1413
- examples: [1, "2"],
1414
- },
1415
- removeIndex: {
1416
- description: "Remove linked tests by their 1-based positions from pm test <id> --list order; repeatable and lossless for commands containing commas or equals signs.",
1417
- examples: [[1], ["2", "4"]],
1418
- },
1419
- onlyLast: {
1420
- description: "Run only the most recently added linked-test entry.",
1421
- },
1422
- envSet: {
1423
- description: "Repeatable runtime environment KEY=VALUE overrides for linked-test execution.",
1424
- examples: [["PORT=0", "PLAYWRIGHT_HTML_OPEN=never"]],
1425
- },
1426
- envClear: {
1427
- description: "Repeatable runtime environment variable names to clear before linked-test execution.",
1428
- examples: [["PLAYWRIGHT_BASE_URL"]],
1429
- },
1430
- sharedHostSafe: {
1431
- description: "Apply additive shared-host-safe runtime defaults during linked-test execution.",
1432
- },
1433
- pmContext: {
1434
- description: "PM linked-test context mode (schema keeps isolated tracker data; tracker seeds source tracker data; auto uses tracker for PM tracker-read linked commands).",
1435
- examples: ["schema", "tracker", "auto"],
1436
- },
1437
- overrideLinkedPmContext: {
1438
- description: "Force run-level --pm-context to override per-linked-test pm_context_mode metadata for all linked-test entries.",
1439
- },
1440
- workspaceContext: {
1441
- description: "Source-workspace mode: source preserves read-only source context, isolated omits it for self-sandboxing commands, and snapshot runs from a temporary workspace paired with the selected tracker sandbox.",
1442
- examples: ["source", "isolated", "snapshot"],
1443
- },
1444
- overrideLinkedWorkspaceContext: {
1445
- description: "Force run-level --workspace-context over per-linked-test workspace_context_mode metadata.",
1446
- },
1447
- allowUntrustedLinkedTests: {
1448
- description: "Explicitly execute commands not yet trusted by this clone when testing.allow_untrusted_linked_tests is also enabled.",
1449
- },
1450
- acknowledgeLinkedTests: {
1451
- description: "Record clone-local trust for the item's current linked commands without executing them.",
1452
- },
1453
- failOnContextMismatch: {
1454
- description: "Fail linked PM command runs when source and sandbox tracker item counts differ.",
1455
- },
1456
- failOnSkipped: {
1457
- description: "Treat skipped linked tests as dependency-failed policy violations.",
1458
- },
1459
- failOnEmptyTestRun: {
1460
- description: "Treat successful linked-test commands that report zero executed tests as failures.",
1461
- },
1462
- requireAssertionsForPm: {
1463
- description: "Require assertion metadata for linked PM command test entries during run execution.",
1464
- },
1465
- checkContext: {
1466
- description: "Run linked PM command context preflight diagnostics before command execution.",
1467
- },
1468
- autoPmContext: {
1469
- description: "Auto-remediate PM tracker-read linked commands by routing those entries through tracker context regardless of linked-test pm_context_mode overrides.",
1470
- },
1471
- measure: {
1472
- description: "Repeatable numeric run evidence in name=value[,unit=...][,threshold=...] form.",
1473
- examples: [["coverage=100,unit=percent,threshold=100"]],
1474
- },
1475
- metricBelow: {
1476
- description: "Return recorded evidence below a name=value threshold.",
1477
- examples: ["coverage=100"],
1478
- },
1479
- metricDiff: {
1480
- description: "Compare the latest and previous values for one metric.",
1481
- examples: ["coverage"],
1482
- },
1483
- dryRun: {
1484
- description: "Preview command effects without mutating storage artifacts.",
1485
- },
1486
- normalizeProvenance: {
1487
- description: "For history-repair: remove invalid legacy provenance observations and emit only aggregate privacy-safe repair evidence.",
1488
- },
1489
- salvageTail: {
1490
- description: "For history-repair with one explicit id: remove an invalid trailing suffix after a verified prefix; refuses interior corruption.",
1491
- },
1492
- all: {
1493
- description: "For history-repair action: scan every stream for drift and repair each drifted stream in one audited pass (mutually exclusive with id).",
1494
- },
1495
- clear: {
1496
- description: "For focus action: clear the session focused item instead of setting it (mutually exclusive with id).",
1497
- },
1498
- gcScope: {
1499
- description: "Repeatable gc scope selector values (index, embeddings, runtime, locks, checkpoints, transactions).",
1500
- examples: [
1501
- ["index", "embeddings"],
1502
- ["runtime"],
1503
- ["locks"],
1504
- ["checkpoints"],
1505
- ],
1506
- },
1507
- storage: {
1508
- description: "For stats action: include aggregate history-stream storage metrics (total streams/lines/bytes, largest + deepest streams, oldest/newest entries) for compaction and storage planning.",
1509
- },
1510
- fieldUtilization: {
1511
- description: "For stats action: include a field_utilization block reporting present/total/percent for content fields (notes, learnings, files, docs, tests, comments, deps, body, linked_command) across all items so under-documented dimensions are visible at a glance.",
1512
- },
1513
- measurements: {
1514
- description: "For stats action: include the audited append-only improvement ledger and baseline-to-latest trends.",
1515
- },
1516
- metric: {
1517
- description: "Exact improvement metric name used to filter ledger reads.",
1518
- examples: ["quality.coverage.lines"],
1519
- },
1520
- measurementLimit: {
1521
- description: "Maximum newest improvement observations returned by stats.",
1522
- examples: [50],
1523
- },
1524
- observe: {
1525
- description: "Repeatable audited observation in name=value[,unit=...][,threshold=...] form.",
1526
- examples: [["quality.coverage.lines=100,unit=percent,threshold=100"]],
1527
- },
1528
- improvementDirection: {
1529
- description: "Improvement direction for newly recorded observations.",
1530
- examples: ["higher", "lower", "target"],
1531
- },
1532
- measurementSource: {
1533
- description: "Producing gate or instrument for a new observation.",
1534
- examples: ["pnpm coverage"],
1535
- },
1536
- measurementItem: {
1537
- description: "Tracked item that owns an improvement observation.",
1538
- examples: ["pm-123abc"],
1539
- },
1540
- measurementRevision: {
1541
- description: "Explicit source revision for a new observation.",
1542
- examples: ["0123456789abcdef"],
1543
- },
1544
- provenanceCoverage: {
1545
- description: "For stats action: compare configured provenance descriptors with bounded immutable-history observations.",
1546
- },
1547
- fleetAttribution: {
1548
- description: "For stats action: derive observational throughput, rework, and defect-escape rates by harness, model, and author source.",
1549
- },
1550
- eventLimit: {
1551
- description: "Maximum immutable history events consumed by an analytics projection.",
1552
- examples: [10000],
1553
- },
1554
- minimumSample: {
1555
- description: "Minimum denominator before analytics rates are reported.",
1556
- examples: [5],
1557
- },
1558
- offset: {
1559
- description: "Number of matching rows to skip before limit is applied.",
1560
- examples: [0, 50, "100"],
1561
- },
1562
- provenance: {
1563
- description: "Return patch-free immutable author, harness, instance, and extensible provenance rows.",
1564
- },
1565
- provenanceSummary: {
1566
- description: "Include bounded observed, unavailable, legacy-missing, and unresolved-author counts.",
1567
- },
1568
- agentInstance: {
1569
- description: "Privacy-safe agent invocation fingerprint filter, supplied once or as a list.",
1570
- examples: ["a1b2c3d4", ["a1b2c3d4", "e5f6g7h8"]],
1571
- },
1572
- provenanceFilter: {
1573
- description: "Exact extensible provenance predicate in dimension=value form, supplied once or as a list.",
1574
- examples: ["model=gpt-5.6-sol", ["effort=xhigh", "role=reviewer"]],
1575
- },
1576
- before: {
1577
- description: "For history-compact, compact entries strictly before this boundary (version number or ISO timestamp). Single-id mode only.",
1578
- examples: ["5", "2026-06-01T00:00:00.000Z"],
1579
- },
1580
- at: {
1581
- description: "Read-only historical projection boundary as an item version or ISO timestamp.",
1582
- examples: ["3", "2026-07-01T12:00:00.000Z"],
1583
- },
1584
- allOver: {
1585
- description: "For history-compact bulk mode, compact every stream with more than N entries. When history.compact_policy is enabled and this is omitted, the policy's max_entries is used.",
1586
- examples: [200, "500"],
1587
- },
1588
- minEntries: {
1589
- description: "For history-compact bulk mode, skip streams with at most N entries as already-compact (default 3).",
1590
- examples: [3, "10"],
1591
- },
1592
- closed: {
1593
- description: "For history-compact bulk mode, compact only closed (terminal) items' history streams.",
1594
- },
1595
- allStreams: {
1596
- description: "For history-compact bulk mode, compact every history stream regardless of lifecycle state.",
1597
- },
1598
- literal: {
1599
- description: "Repeatable literal matcher used by history-redact to scrub exact string values.",
1600
- examples: ["[redacted_path_prefix]/private/path"],
1601
- },
1602
- regex: {
1603
- description: "Repeatable regex matcher used by history-redact. Accepts either /pattern/flags or a raw pattern (global mode is auto-enabled).",
1604
- examples: ["/192\\\\.168\\\\.[0-9.]+/g", "token=[A-Za-z0-9_-]+"],
1605
- },
1606
- replacement: {
1607
- description: 'Replacement text used by history-redact (defaults to "[redacted]").',
1608
- examples: ["[scrubbed_path]"],
1609
- },
1610
- validateClose: {
1611
- description: 'Close-time metadata validation mode ("off", "warn", or "strict").',
1612
- examples: ["off", "warn", "strict"],
1613
- },
1614
- checkMetadata: {
1615
- description: "Run metadata completeness checks.",
1616
- },
1617
- metadataProfile: {
1618
- description: "Select metadata validation profile for --check-metadata.",
1619
- examples: ["core", "strict", "custom"],
1620
- },
1621
- checkResolution: {
1622
- description: "Run closed-item resolution metadata checks.",
1623
- },
1624
- checkLifecycle: {
1625
- description: "Run active-item lifecycle governance drift checks.",
1626
- },
1627
- checkStaleBlockers: {
1628
- description: "Include stale blocker-pattern diagnostics in lifecycle checks.",
1629
- },
1630
- dependencyCycleSeverity: {
1631
- description: "Set dependency-cycle warning policy for lifecycle checks.",
1632
- examples: ["off", "warn", "error"],
1633
- },
1634
- parentCycleSeverity: {
1635
- description: "Set parent-cycle warning policy for lifecycle checks.",
1636
- examples: ["off", "warn", "error"],
1637
- },
1638
- checkFiles: {
1639
- description: "Run linked-file and orphaned-file checks.",
1640
- },
1641
- checkStorageIntegrity: {
1642
- description: "Run deep item, history, index, and vector storage integrity checks.",
1643
- },
1644
- strictDirectories: {
1645
- description: "Treat optional item-type directories as required health failures.",
1646
- },
1647
- requireMergeDrivers: {
1648
- description: "Treat never-installed clone-local semantic merge drivers as required health failures.",
1649
- },
1650
- checkOnly: {
1651
- description: "For health action, run read-only diagnostics without refreshing vectors.",
1652
- },
1653
- checkTelemetry: {
1654
- description: "For health action, probe telemetry endpoint health and include network diagnostics.",
1655
- },
1656
- noRefresh: {
1657
- description: "For health action, skip vector refresh while still running checks.",
1658
- },
1659
- refreshVectors: {
1660
- description: "For health action, explicitly refresh stale vectors.",
1661
- },
1662
- verboseStaleItems: {
1663
- description: "For health action, include full stale-item arrays in vectorization details.",
1664
- },
1665
- verboseAuthorEvents: {
1666
- description: "For health action, include every actionable unknown-author event coordinate.",
1667
- },
1668
- skipVectors: {
1669
- description: "For health action, skip vectorization checks for a faster diagnostic run.",
1670
- },
1671
- skipIntegrity: {
1672
- description: "For health action, skip item/history file integrity checks for a faster diagnostic run.",
1673
- },
1674
- skipDrift: {
1675
- description: "For health action, skip history drift hash checks for a faster diagnostic run.",
1676
- },
1677
- scanMode: {
1678
- description: "Select file candidate scan mode for --check-files.",
1679
- examples: ["default", "tracked-all", "tracked-all-strict"],
1680
- },
1681
- includePmInternals: {
1682
- description: "Include PM storage internals in tracked-all candidate scans.",
1683
- },
1684
- verboseFileLists: {
1685
- description: "For validate action, include full file-path lists for --check-files details.",
1686
- },
1687
- verboseDiagnostics: {
1688
- description: "For validate action, include full diagnostic ID lists instead of compact summaries.",
1689
- },
1690
- strictExit: {
1691
- description: "Apply the selected capability's strict exit policy; health also requires merge drivers.",
1692
- },
1693
- failOnWarn: {
1694
- description: "Alias for strictExit in health, validation, history, and managed doctor actions.",
1695
- },
1696
- fixHints: {
1697
- description: "For validate action, add a machine-executable fix_hints[] of pm commands to each failing check's details.",
1698
- },
1699
- autoFix: {
1700
- description: "For validate action, apply the safe, deterministic subset of fix-hint remediations (field backfills) automatically; combine with dryRun to preview and fixScope to grant gated scopes.",
1701
- },
1702
- fixScope: {
1703
- description: "For validate action, grant --auto-fix scopes (metadata, resolution, estimates, lifecycle). Defaults to the safe scopes metadata and resolution; estimates (per-type default estimated_minutes backfill) and lifecycle must be named explicitly.",
1704
- examples: [["estimates"], ["lifecycle"], ["metadata", "resolution"]],
1705
- },
1706
- pruneMissing: {
1707
- description: "For validate action, remove stale linked-file/doc LINKS whose paths classified as deleted (link removal only — never touches real files); honors dryRun.",
1708
- },
1709
- checkHistoryDrift: {
1710
- description: "Run item/history hash drift checks.",
1711
- },
1712
- checkCommandReferences: {
1713
- description: "Run linked-command PM-ID reference checks.",
1714
- },
1715
- edit: {
1716
- description: "For comments, notes, and learnings actions, replace the annotation at this 1-based index with supplied replacement text.",
1717
- },
1718
- delete: {
1719
- description: "For comments, notes, and learnings actions, delete the annotation at this 1-based index.",
1720
- },
1721
- stdin: {
1722
- description: "For comments, notes, and learnings actions, read annotation text from piped stdin (supports multiline markdown).",
1723
- },
1724
- file: {
1725
- description: "CLI-only path to an input file for commands that read payload text; tool actions exclude host file access.",
1726
- examples: ["notes/comment.md"],
1727
- },
1728
- preserveSourceIds: {
1729
- description: "Preserve explicit source IDs during Beads imports instead of normalizing to tracker prefix.",
1730
- examples: [true],
1731
- },
1732
- appendStable: {
1733
- description: "When true for files action, preserve existing linked-file order and append new links without full-array resorting.",
1734
- },
1735
- discover: {
1736
- description: "When true for files action, use `pm files discover <id>` to scan item text for referenced file paths.",
1737
- },
1738
- apply: {
1739
- description: "Persist changes instead of returning a dry-run preview: for files discovery, add the missing discovered file links; for schema add-type --infer, register the inferred custom item types.",
1740
- },
1741
- discoveryNote: {
1742
- description: "Note attached to file links added by files discovery.",
1743
- examples: ["discovered from item text"],
1744
- },
1745
- addNote: {
1746
- description: "Note attached to every link added by add/addGlob in this call (per-entry embedded note= wins; requires add or addGlob). Maps to the CLI --note flag on pm files/pm docs.",
1747
- examples: ["command wiring"],
1748
- },
1749
- list: {
1750
- description: "When true, list command-specific entries without mutating state (for example linked paths for files/docs or topics for guide).",
1751
- examples: [true],
1752
- },
1753
- stream: {
1754
- description: "Stream selector: test-runs logs accepts stdout|stderr|both; activity accepts boolean/rows|ndjson|jsonl for line-delimited output.",
1755
- examples: ["stderr", "stdout", "both", "rows", "ndjson", "jsonl", true],
1756
- },
1757
- tail: {
1758
- description: "Number of lines to tail for background run logs.",
1759
- examples: [100],
1760
- },
1761
- query: {
1762
- description: "Search query text for search action.",
1763
- },
1764
- for: {
1765
- description: "Named context intent projection declared for the selected read action.",
1766
- examples: ["orient", "inspect", "triage", "execute", "discover"],
1767
- },
1768
- keywords: {
1769
- description: "Alias for query in search action payloads.",
1770
- },
1771
- includeLinked: {
1772
- description: "Include readable linked docs/files/tests content in keyword and hybrid lexical scoring.",
1773
- },
1774
- titleExact: {
1775
- description: "For search action, require exact normalized title match for the full query string.",
1776
- },
1777
- phraseExact: {
1778
- description: "For search action, require exact normalized query phrase match in item text fields.",
1779
- },
1780
- highlight: {
1781
- description: "For search action, emit per-field matched-text snippets (wrapped in «…») on each hit. Off by default.",
1782
- },
1783
- includeBody: {
1784
- description: "When true for list-family actions, include item body text in projected rows.",
1785
- },
1786
- noTruncate: {
1787
- description: "When true for list-family actions, return every matched row, overriding any limit (surfaces total when rows were dropped).",
1788
- },
1789
- strictRead: {
1790
- description: "When true for list-family actions, fail if any source item or item directory cannot be read.",
1791
- },
1792
- compact: {
1793
- description: "Render compact projection output for search and list-family actions.",
1794
- },
1795
- raw: {
1796
- description: "For activity, restore the compact per-event stream instead of the default item digest.",
1797
- },
1798
- brief: {
1799
- description: "Emit compact low-token output for commands that support terse projections or health details.",
1800
- examples: [true],
1801
- },
1802
- full: {
1803
- description: "Enable command-specific full/detail output mode when supported, such as deep item reads for get or full payload mode for search/history.",
1804
- },
1805
- includeEmpty: {
1806
- description: "For stats, restore zero-count registered type and lifecycle-status buckets.",
1807
- },
1808
- fields: {
1809
- description: "Comma-separated projection fields for get, search, list-family, or context outputs. Valid field names are command-specific (e.g. score/matched_fields apply to search; context projects focus-row fields such as priority/deadline/completion_pct).",
1810
- examples: [
1811
- "id,title,status,parent,type",
1812
- "id,title,score,matched_fields",
1813
- "id,title,priority,deadline",
1814
- ],
1815
- },
1816
- groupBy: {
1817
- description: "Comma-separated aggregate grouping fields (supported: parent,type,priority,status,assignee,tags,sprint,release).",
1818
- examples: [
1819
- "parent,type",
1820
- "type,status",
1821
- "priority,assignee",
1822
- "tags",
1823
- "sprint,release",
1824
- ],
1825
- },
1826
- count: {
1827
- description: "Enable grouped count output for aggregate action.",
1828
- },
1829
- completion: {
1830
- description: "For aggregate action, add open/in_progress/closed/other counts and completion_pct per group.",
1831
- },
1832
- sum: {
1833
- description: "Numeric field to sum per aggregate group (count and null_count are still returned).",
1834
- examples: ["estimated_minutes", "priority"],
1835
- },
1836
- avg: {
1837
- description: "Numeric field to average per aggregate group (count and null_count are still returned).",
1838
- examples: ["estimated_minutes", "priority"],
1839
- },
1840
- tree: {
1841
- description: "When true for list/get actions, render recursive parent/child tree ordering.",
1842
- },
1843
- treeDepth: {
1844
- description: "Maximum recursion depth for tree output (0 keeps root rows only).",
1845
- examples: [0, 1, "2"],
1846
- },
1847
- includeUnparented: {
1848
- description: "Include unparented rows when aggregate grouping includes parent.",
1849
- },
1850
- maxDepth: {
1851
- description: "Maximum dependency traversal depth for deps action (0 keeps only the root node).",
1852
- examples: [0, 1, "2"],
1853
- },
1854
- nodeLimit: {
1855
- description: "Maximum related nodes returned by deps --format context.",
1856
- examples: [10, "20"],
1857
- },
1858
- edgeLimit: {
1859
- description: "Maximum related edges returned by deps --format context.",
1860
- examples: [20, "40"],
1861
- },
1862
- tokenBudget: {
1863
- description: "Maximum estimated output tokens for the command output.",
1864
- examples: [600, "1200"],
1865
- },
1866
- cursor: {
1867
- description: "Opaque continuation cursor returned by deps --format context.",
1868
- },
1869
- direction: {
1870
- description: 'Graph-context traversal direction for deps action ("outgoing", "incoming", or "both").',
1871
- examples: ["both", "incoming"],
1872
- },
1873
- kind: {
1874
- description: "Registered relationship kinds narrowing deps --format context traversal (string, comma-separated, or array).",
1875
- examples: ["blocked_by", ["parent", "related"]],
1876
- },
1877
- after: {
1878
- description: "Continuation cursor resuming a bounded listing or traversal after this previously returned id.",
1879
- examples: ["pm-x1y2"],
1880
- },
1881
- maxPaths: {
1882
- description: "Maximum enumerated paths for graph paths queries.",
1883
- examples: [5, "10"],
1884
- },
1885
- sample: {
1886
- description: "Maximum evidence sample entries per graph audit finding.",
1887
- examples: [10, "25"],
1888
- },
1889
- exemptIsolate: {
1890
- description: "Item ids the graph audit treats as explicitly valid isolates (string, comma-separated, or array).",
1891
- examples: ["pm-x1y2", ["pm-x1y2", "pm-a3b4"]],
1892
- },
1893
- exemptIsolateType: {
1894
- description: "Item types whose active isolates the graph audit treats as policy-valid (string, comma-separated, or array).",
1895
- examples: ["Reminder", ["Reminder", "Event"]],
1896
- },
1897
- saveBaseline: {
1898
- description: "When true, persist the graph audit census as the change-since-baseline comparison point (audit only).",
1899
- },
1900
- rebuild: {
1901
- description: "When true, rebuild and warm the durable graph index (graph index only).",
1902
- },
1903
- collapse: {
1904
- description: 'Dependency tree collapse mode for deps action ("none" or "repeated").',
1905
- examples: ["none", "repeated"],
1906
- },
1907
- summary: {
1908
- description: "When true, return the command's compact summary projection (deps counts, health rollup, or contracts command intents).",
1909
- },
1910
- shell: {
1911
- description: "Shell target for completion generation.",
1912
- examples: ["bash"],
1913
- },
1914
- eagerTags: {
1915
- description: "When true for completion, eagerly embed current tracker tags into generated scripts (legacy mode).",
1916
- },
1917
- contractAction: {
1918
- description: "Filter contracts schema to one tool action.",
1919
- examples: ["create", "update"],
1920
- },
1921
- command: {
1922
- description: "Scope contracts output to one CLI command name; action/schema surfaces narrow by default.",
1923
- examples: ["create", "search", "list"],
1924
- },
1925
- schemaOnly: {
1926
- description: "When true, contracts action returns schema-focused payloads (mutually exclusive with flagsOnly/availabilityOnly).",
1927
- },
1928
- flagsOnly: {
1929
- description: "When true, contracts action returns only command flag surface payloads (mutually exclusive projection mode).",
1930
- },
1931
- availabilityOnly: {
1932
- description: "When true, contracts action returns only action availability payloads (mutually exclusive projection mode).",
1933
- },
1934
- runtimeOnly: {
1935
- description: "When true, contracts action only includes actions invocable in the current runtime.",
1936
- },
1937
- activeOnly: {
1938
- description: "Alias for runtimeOnly in contracts action payloads.",
1939
- },
1940
- depth: {
1941
- description: "Context depth level controlling how many sections are included (brief=focus+agenda, standard=+hierarchy/activity/progress/workload, deep=all sections, full=every section with no per-section row cap).",
1942
- examples: ["brief", "standard", "deep", "full"],
1943
- },
1944
- section: {
1945
- description: "Repeatable section selector for context; overrides --depth when provided.",
1946
- examples: [
1947
- ["hierarchy", "activity"],
1948
- ["blockers", "files", "staleness"],
1949
- ],
1950
- },
1951
- activityLimit: {
1952
- description: "Maximum number of recent activity entries to include in context output.",
1953
- examples: [5, 10, "20"],
1954
- },
1955
- staleThreshold: {
1956
- description: "Staleness cutoff in days for context staleness section (e.g. 7 or 7d).",
1957
- examples: ["7", "14d", "30"],
1958
- },
1959
- };
1960
- /**
1961
- * Per-action overrides for tool parameters that are shared across actions in the
1962
- * aggregated `pm_run` schema. The action-scoped strict schema builds one sub-schema per
1963
- * action, but every action reuses the single {@link PM_TOOL_PARAMETER_METADATA} entry
1964
- * for a given parameter — so a parameter used by more than one action (notably `name`,
1965
- * carried by both `schema` and `profile`) would otherwise describe every action's usage
1966
- * inside every action's schema (the `schema` action mentioning profiles and vice versa).
1967
- * Keying the override by action then parameter lets each action carry only its own usage,
1968
- * matching the action-specific descriptions on the narrow pm_schema / pm_profile tools
1969
- * (pm-fq80). The flat provider schema keeps using {@link PM_TOOL_PARAMETER_METADATA}
1970
- * because its single `name` property must cover every action at once.
1971
- */
1972
- export const PM_TOOL_ACTION_SCOPED_PARAMETER_METADATA = {
1973
- "health": { strictExit: { description: "Return non-zero for a failing health verdict; also require merge drivers." } },
1974
- "validate": { strictExit: { description: "Return non-zero when validation reports warnings." } },
1975
- "extension-doctor": { strictExit: { description: "Return non-zero when extension diagnostics report warnings or a non-ok summary." } },
1976
- "package-doctor": { strictExit: { description: "Return non-zero when package diagnostics report warnings or a non-ok summary." } },
1977
- "history": { strictExit: { description: "Return non-zero for history verification failures when verify is enabled." } },
1978
- extension: { strictExit: { description: "For doctor operations, return non-zero on warnings or a non-ok diagnostic summary." } },
1979
- package: { strictExit: { description: "For doctor operations, return non-zero on warnings or a non-ok diagnostic summary." } },
1980
- assurance: {
1981
- subcommand: {
1982
- description: "Assurance operation: list, show, put, remove, run, verdicts, presets, apply, derive, promote, risk, or lineages.",
1983
- examples: ["list", "run", "risk", "lineages"],
1984
- },
1985
- kind: {
1986
- description: "Assurance declaration kind for registry operations: measurement, assertion, or gate.",
1987
- examples: ["measurement", "assertion", "gate"],
1988
- },
1989
- id: {
1990
- description: "Stable assurance declaration id or gate id, depending on subcommand.",
1991
- examples: ["active-issues", "release-readiness"],
1992
- },
1993
- limit: {
1994
- description: "Maximum number of newest assurance verdicts returned.",
1995
- examples: [10, 25],
1996
- },
1997
- preset: {
1998
- description: "Built-in assurance project shape to preview or apply.",
1999
- examples: ["software-delivery", "agent-evaluation"],
2000
- },
2001
- },
2002
- update: {
2003
- acceptanceCriteria: {
2004
- description: "Complete acceptance-criteria replacement text. Use removeAc plus addAc together for an atomic one-entry repair that preserves unrelated criteria.",
2005
- },
2006
- },
2007
- "update-many": {
2008
- acceptanceCriteria: {
2009
- description: "Complete acceptance-criteria replacement text. Use removeAc plus addAc together for an atomic one-entry repair that preserves unrelated criteria.",
2010
- },
2011
- },
2012
- stats: {
2013
- since: {
2014
- description: "Inclusive ISO 8601 timestamp or negative duration lower bound for provenance and fleet analytics.",
2015
- examples: ["2026-08-01T00:00:00.000Z", "-30d"],
2016
- },
2017
- },
2018
- events: {
2019
- since: {
2020
- description: "Durable event cursor returned as next_cursor, or an inclusive event timestamp.",
2021
- examples: ["eyJmaW5nZXJwcmludCI6Ii4uLiJ9", "2026-08-01T00:00:00.000Z"],
2022
- },
2023
- type: {
2024
- description: "Mutation event type filter, supplied once or as a list.",
2025
- examples: ["create", ["create", "update"]],
2026
- },
2027
- author: {
2028
- description: "Mutation author filter, supplied once or as a list.",
2029
- examples: ["agent-a", ["agent-a", "agent-b"]],
2030
- },
2031
- item: {
2032
- description: "Tracked item id filter, supplied once or as a list.",
2033
- examples: ["pm-a1b2", ["pm-a1b2", "pm-c3d4"]],
2034
- },
2035
- limit: {
2036
- description: "Maximum mutation events returned, from 0 through 1000.",
2037
- examples: [0, 100],
2038
- },
2039
- cursorMode: {
2040
- description: "Cursor framing: batch returns one terminal next_cursor (default); row also adds a cursor to every event.",
2041
- examples: ["batch", "row"],
2042
- },
2043
- },
2044
- remind: {
2045
- at: {
2046
- description: "Reminder time as an ISO 8601 timestamp or supported relative expression.",
2047
- examples: ["2026-08-02T09:00:00+02:00", "tomorrow 09:00"],
2048
- },
2049
- },
2050
- deps: {
2051
- tokenBudget: {
2052
- description: "Maximum estimated output tokens for deps --format context.",
2053
- examples: [600, "1200"],
2054
- },
2055
- },
2056
- comments: {
2057
- full: {
2058
- description: "Return the complete post-mutation comment history instead of the bounded mutation receipt projection.",
2059
- },
2060
- ifAbsent: {
2061
- description: "Append a comment only when the resolved author and exact stored text are absent; a duplicate retry returns changed false without writing history.",
2062
- },
2063
- },
2064
- notes: {
2065
- full: {
2066
- description: "Return the complete post-mutation note history instead of the bounded mutation receipt projection.",
2067
- },
2068
- ifAbsent: {
2069
- description: "Append a note only when the resolved author and exact stored text are absent; a duplicate retry returns changed false without writing history.",
2070
- },
2071
- since: {
2072
- description: "Inclusive ISO 8601 creation timestamp lower bound for structured note event filtering.",
2073
- examples: ["2026-01-01T00:00:00.000Z"],
2074
- },
2075
- },
2076
- learnings: {
2077
- full: {
2078
- description: "Return the complete post-mutation learning history instead of the bounded mutation receipt projection.",
2079
- },
2080
- ifAbsent: {
2081
- description: "Append a learning only when the resolved author and exact stored text are absent; a duplicate retry returns changed false without writing history.",
2082
- },
2083
- },
2084
- next: {
2085
- tag: {
2086
- description: "Only recommend items carrying this exact tag.",
2087
- examples: ["sdk", "release"],
2088
- },
2089
- tokenBudget: {
2090
- description: "Maximum estimated output tokens for the recommendation context.",
2091
- examples: [600, "1200"],
2092
- },
2093
- },
2094
- claim: {
2095
- tag: {
2096
- description: "When claiming the next item, only consider work carrying this exact tag.",
2097
- examples: ["sdk", "release"],
2098
- },
2099
- tokenBudget: {
2100
- description: "Maximum estimated output tokens for the next-item context returned with the claim.",
2101
- examples: [600, "1200"],
2102
- },
2103
- },
2104
- close: {
2105
- text: {
2106
- description: "Backward-compatible alias for the item close reason when reason is not provided.",
2107
- },
2108
- },
2109
- "close-task": {
2110
- text: {
2111
- description: "Close reason used before releasing the item's active assignment.",
2112
- },
2113
- },
2114
- schema: {
2115
- name: {
2116
- description: "Custom item type name (add-type/remove-type/show), custom status id (show-status/add-status/remove-status), or custom field key (add-field/remove-field/show-field). Required for those subcommands.",
2117
- examples: ["Spike", "review", "component"],
2118
- },
2119
- },
2120
- profile: {
2121
- name: {
2122
- description: "Profile name for show/apply/lint. Built-in profiles are agile, ops, and research; an active extension can contribute additional archetype names that resolve here too.",
2123
- examples: ["agile", "ops", "research"],
2124
- },
2125
- },
2126
- graph: {
2127
- subcommand: {
2128
- description: "Graph query selector: ancestors|descendants|predecessors|successors|paths|impact|analyze|audit|communities|redundancy|dominators|slack|centrality|articulation|plan|index. Traversals, paths, impact, and dominators require id; paths also requires target; slack reports critical-path float, centrality ranks betweenness/closeness/degree, articulation reports cut points and bridges; plan derives dry-run remediation proposals from the governance audit; index reports, rebuilds, or clears the durable cross-process graph index.",
2129
- examples: ["successors", "audit"],
2130
- },
2131
- clear: {
2132
- description: "When true, delete the durable graph index (graph index only).",
2133
- },
2134
- id: {
2135
- description: "Root item id for traversal, paths, impact, and dominators graph queries.",
2136
- examples: ["pm-x1y2"],
2137
- },
2138
- target: {
2139
- description: "Target item id for graph paths queries.",
2140
- examples: ["pm-a3b4"],
2141
- },
2142
- direction: {
2143
- description: 'Edge orientation for graph paths/impact/dominators queries ("outgoing", "incoming", or "both"; default "both").',
2144
- examples: ["incoming"],
2145
- },
2146
- kind: {
2147
- description: "Registered relationship kinds narrowing the graph query (string, comma-separated, or array).",
2148
- examples: ["blocked_by", ["parent", "related"]],
2149
- },
2150
- maxDepth: {
2151
- description: "Maximum graph traversal depth (non-negative integer).",
2152
- examples: [2, "4"],
2153
- },
2154
- after: {
2155
- description: "Resume a hierarchy/ordering graph traversal after this previously returned node id.",
2156
- examples: ["pm-x1y2"],
2157
- },
2158
- limit: {
2159
- description: "Maximum returned rows per bounded graph collection (traversal ids, impact rows, analyze/communities samples, redundancy rows, dominator bottlenecks).",
2160
- examples: [10, "25"],
2161
- },
2162
- summary: {
2163
- description: "When true, return counts-first graph envelopes without row collections.",
2164
- },
2165
- },
2166
- };
1
+ !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="556c3103-959e-5d7d-bd5f-716ea06c6a83")}catch(e2){}})();import{PLAN_HARNESS_VALUES,PLAN_MODE_VALUES,PLAN_STEP_LINK_KIND_VALUES,PLAN_STEP_STATUS_VALUES}from"../../types/index.js";import{PM_READ_OUTPUT_SESSION_MAX_SEEN_ITEM_IDS}from"../read-output-session.js";import{ASSURANCE_DEFINITION_SCHEMA}from"./schemas/assurance-definition.js";const PM_TOOL_PARAMETER_PROPERTIES={json:{type:"boolean",default:true},quiet:{type:"boolean"},profile:{type:"boolean"},noExtensions:{type:"boolean"},noPager:{type:"boolean"},tokenAccounting:{type:"boolean"},outputInclude:{type:"string",minLength:1},outputLimit:{anyOf:[{type:"integer",minimum:1},{const:"unbounded"}]},outputBudget:{anyOf:[{type:"integer",minimum:1},{const:"unbounded"}]},outputFormat:{type:"string",enum:["json","toon"]},outputSession:{anyOf:[{type:"string",minLength:1},{type:"object",additionalProperties:false,required:["version","id","token_budget","spent_tokens","seen_item_ids"],properties:{version:{const:1},id:{type:"string",pattern:"^[A-Za-z0-9][A-Za-z0-9._:-]{0,63}$"},token_budget:{type:"integer",minimum:256},spent_tokens:{type:"integer",minimum:0},seen_item_ids:{type:"array",maxItems:PM_READ_OUTPUT_SESSION_MAX_SEEN_ITEM_IDS,items:{type:"string",pattern:"^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"}}}}]},outputCursor:{type:"string",minLength:1},outputRowContract:{type:"boolean"},path:{type:"string"},pmExecutable:{type:"string"},timeoutMs:{type:"number"},id:{type:"string"},target:{type:"string"},snapshotAction:{type:"string",enum:["create","list","inspect","restore","delete"]},artifact:{type:"string",enum:["item","history","relationship","json"]},basePath:{type:"string"},oursPath:{type:"string"},theirsPath:{type:"string"},outputPath:{type:"string"},itemPath:{type:"string"},prefer:{type:"string",enum:["ours","theirs"]},includeReconciled:{type:"boolean"},lockTtlSeconds:{type:"number"},lockWaitMs:{type:"number"},capability:{type:"string",minLength:1},declarative:{type:"boolean"},output:{type:"string",minLength:1},markdown:{type:"boolean"},init:{type:"boolean"},install:{type:"boolean"},uninstall:{type:"boolean"},explore:{type:"boolean"},manage:{type:"boolean"},describe:{type:"boolean"},doctor:{type:"boolean"},catalog:{type:"boolean"},adopt:{type:"boolean"},adoptAll:{type:"boolean"},activate:{type:"boolean"},deactivate:{type:"boolean"},filterFilesMissing:{type:"boolean"},filterDocsMissing:{type:"boolean"},matchMode:{type:"string",enum:["all","any","phrase"]},minScore:{anyOf:[{type:"number"},{type:"string",pattern:"^\\d+(\\.\\d+)?$"}]},rank:{anyOf:[{type:"number"},{type:"string",pattern:"^-?\\d+$"}]},exemptIsolateType:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},saveBaseline:{type:"boolean"},rebuild:{type:"boolean"},github:{type:"string"},ref:{type:"string"},query:{type:"string"},queries:{type:"string"},k:{anyOf:[{type:"number"},{type:"string"}]},failUnder:{anyOf:[{type:"number"},{type:"string"}]},for:{type:"string",minLength:1},keywords:{type:"string"},fields:{type:"string"},sort:{type:"string",enum:["priority","deadline","updated_at","created_at","title","parent"]},prefix:{type:"string"},idPrefix:{type:"string"},workspace:{type:"string"},preset:{type:"string",enum:["minimal","default","strict","custom"]},typePreset:{type:"string",enum:["agile","ops","research"]},defaults:{type:"boolean"},verbose:{type:"boolean"},agentGuidance:{type:"string",enum:["ask","add","skip","status"]},withPackages:{type:"boolean"},mergeFence:{type:"boolean"},scope:{type:"string",enum:["project","global"]},allOver:{type:"number"},minEntries:{type:"number"},closed:{type:"boolean"},allStreams:{type:"boolean"},contractAction:{type:"string"},command:{type:"string"},summary:{type:"boolean"},schemaOnly:{type:"boolean"},flagsOnly:{type:"boolean"},availabilityOnly:{type:"boolean"},runtimeOnly:{type:"boolean"},activeOnly:{type:"boolean"},eagerTags:{type:"boolean"},fullChangedFields:{type:"boolean"},provenance:{type:"boolean"},provenanceSummary:{type:"boolean"},agentInstance:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},provenanceFilter:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},idOnly:{type:"boolean"},allowMissingParent:{type:"boolean"},allowUnresolvedDeps:{type:"boolean"},allowDuplicate:{type:"boolean"},duplicateOf:{type:"string"},configAction:{type:"string",enum:["get","set","list","export"]},key:{type:"string"},title:{type:"string"},item:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},start:{type:"string"},duration:{type:"string"},end:{type:"string"},location:{type:"string"},timezone:{type:"string"},allDay:{type:"boolean"},description:{type:"string"},type:{type:"string"},template:{type:"string"},createMode:{type:"string",enum:["strict","progressive"]},schedulePreset:{type:"string",enum:["lightweight"]},status:{type:"string"},since:{type:"string",format:"date-time"},cursorMode:{type:"string",enum:["batch","row"]},exhaustive:{type:"boolean"},threshold:{type:"number",minimum:0,maximum:1},filterStatus:{type:"string"},filterType:{type:"string"},filterTag:{type:"string"},filterPriority:{anyOf:[{type:"string"},{type:"number"}]},filterDeadlineBefore:{type:"string"},filterDeadlineAfter:{type:"string"},filterUpdatedAfter:{type:"string"},filterUpdatedBefore:{type:"string"},filterCreatedAfter:{type:"string"},filterCreatedBefore:{type:"string"},filterAssignee:{type:"string"},filterAssigneeFilter:{type:"string",enum:["assigned","unassigned"]},filterParent:{type:"string"},filterSprint:{type:"string"},filterRelease:{type:"string"},closeReason:{type:"string"},completedAt:{type:"string",format:"date-time"},reason:{type:"string"},priority:{anyOf:[{type:"string"},{type:"number"}]},tags:{type:"string"},addTags:{type:"array",items:{type:"string"}},removeTags:{type:"array",items:{type:"string"}},addAc:{type:"array",items:{type:"string"}},removeAc:{type:"array",items:{type:"string"}},body:{type:"string"},deadline:{type:"string"},estimate:{anyOf:[{type:"string"},{type:"number"}]},acceptanceCriteria:{type:"string"},author:{type:"string"},message:{type:"string"},owner:{type:"string"},enforcement:{type:"string"},assignee:{type:"string"},assigneeFilter:{type:"string",enum:["assigned","unassigned"]},parent:{type:"string"},reviewer:{type:"string"},attributedAuthor:{type:"string"},planFingerprint:{type:"string",pattern:"^[a-f0-9]{64}$"},historyEvent:{type:"array",items:{type:"string"}},risk:{type:"string"},confidence:{anyOf:[{type:"string"},{type:"number"}]},sprint:{type:"string"},release:{type:"string"},blockedBy:{type:"string"},blockedReason:{type:"string"},unblockNote:{type:"string"},reporter:{type:"string"},severity:{type:"string"},environment:{type:"string"},reproSteps:{type:"string"},resolution:{type:"string"},expectedResult:{type:"string"},actualResult:{type:"string"},affectedVersion:{type:"string"},fixedVersion:{type:"string"},component:{type:"string"},regression:{anyOf:[{type:"boolean"},{type:"string"},{type:"number"}]},customerImpact:{type:"string"},definitionOfReady:{type:"string"},order:{anyOf:[{type:"string"},{type:"number"}]},goal:{type:"string"},objective:{type:"string"},value:{type:"string"},impact:{type:"string"},outcome:{type:"string"},whyNow:{type:"string"},mode:{type:"string",enum:["keyword","semantic","hybrid"]},semanticWeight:{anyOf:[{type:"string"},{type:"number"}]},op:{type:"string"},compact:{type:"boolean"},raw:{type:"boolean"},brief:{type:"boolean"},full:{type:"boolean"},includeEmpty:{type:"boolean"},view:{type:"string",enum:["agenda","day","week","month"]},date:{type:"string"},from:{type:"string"},before:{type:"string"},at:{type:"string"},to:{type:"string"},migrationId:{type:"string"},fieldTypeScope:{type:"string"},past:{type:"boolean"},fullPeriod:{type:"boolean"},include:{type:"string"},recurrenceLookaheadDays:{anyOf:[{type:"string"},{type:"number"}]},recurrenceLookbackDays:{anyOf:[{type:"string"},{type:"number"}]},occurrenceLimit:{anyOf:[{type:"string"},{type:"number"}]},includeLinked:{type:"boolean"},semantic:{type:"boolean"},hybrid:{type:"boolean"},titleExact:{type:"boolean"},phraseExact:{type:"boolean"},highlight:{type:"boolean"},includeBody:{type:"boolean"},noTruncate:{type:"boolean"},strictRead:{type:"boolean"},tag:{type:"string"},deadlineBefore:{type:"string"},deadlineAfter:{type:"string"},today:{type:"boolean"},recent:{type:"boolean"},updatedAfter:{type:"string"},updatedBefore:{type:"string"},createdAfter:{type:"string"},createdBefore:{type:"string"},filterAcMissing:{type:"boolean"},filterEstimatesMissing:{type:"boolean"},filterResolutionMissing:{type:"boolean"},filterMetadataMissing:{type:"boolean"},filterReviewerMissing:{type:"boolean"},filterRiskMissing:{type:"boolean"},filterConfidenceMissing:{type:"boolean"},filterSprintMissing:{type:"boolean"},filterReleaseMissing:{type:"boolean"},hasNotes:{type:"boolean"},noNotes:{type:"boolean"},hasLearnings:{type:"boolean"},noLearnings:{type:"boolean"},hasFiles:{type:"boolean"},noFiles:{type:"boolean"},hasDocs:{type:"boolean"},noDocs:{type:"boolean"},hasTests:{type:"boolean"},noTests:{type:"boolean"},hasComments:{type:"boolean"},noComments:{type:"boolean"},hasDeps:{type:"boolean"},noDeps:{type:"boolean"},hasBody:{type:"boolean"},emptyBody:{type:"boolean"},hasLinkedCommand:{type:"boolean"},noLinkedCommand:{type:"boolean"},filterHasNotes:{type:"boolean"},filterNoNotes:{type:"boolean"},filterHasLearnings:{type:"boolean"},filterNoLearnings:{type:"boolean"},filterHasFiles:{type:"boolean"},filterNoFiles:{type:"boolean"},filterHasDocs:{type:"boolean"},filterNoDocs:{type:"boolean"},filterHasTests:{type:"boolean"},filterNoTests:{type:"boolean"},filterHasComments:{type:"boolean"},filterNoComments:{type:"boolean"},filterHasDeps:{type:"boolean"},filterNoDeps:{type:"boolean"},filterHasBody:{type:"boolean"},filterEmptyBody:{type:"boolean"},filterHasLinkedCommand:{type:"boolean"},filterNoLinkedCommand:{type:"boolean"},ids:{type:"string"},limit:{anyOf:[{type:"string"},{type:"number"}]},blockedLimit:{anyOf:[{type:"string"},{type:"number"}]},readyOnly:{type:"boolean"},offset:{anyOf:[{type:"string"},{type:"number"}]},progress:{type:"boolean"},background:{type:"boolean"},runId:{type:"string"},stream:{anyOf:[{type:"boolean"},{type:"string",enum:["stdout","stderr","both","rows","ndjson","jsonl"]}]},tail:{anyOf:[{type:"string"},{type:"number"}]},addJson:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},eventType:{type:"string"},includeMeta:{type:"boolean"},allActionable:{type:"boolean"},verboseAuthorEvents:{type:"boolean"},match:{type:"string"},onlyIndex:{anyOf:[{type:"string"},{type:"number"}]},removeIndex:{type:"array",items:{anyOf:[{type:"string"},{type:"number"}]}},onlyLast:{type:"boolean"},envSet:{type:"array",items:{type:"string"}},envClear:{type:"array",items:{type:"string"}},sharedHostSafe:{type:"boolean"},detail:{type:"string",enum:["summary","deep"]},trace:{type:"boolean"},reload:{type:"boolean"},watch:{type:"boolean"},runtimeProbe:{type:"boolean"},fixManagedState:{type:"boolean"},isolated:{type:"boolean"},ignoreGlobal:{type:"boolean"},pmContext:{type:"string",enum:["schema","tracker","auto"]},overrideLinkedPmContext:{type:"boolean"},workspaceContext:{type:"string",enum:["source","isolated","snapshot"]},overrideLinkedWorkspaceContext:{type:"boolean"},allowUntrustedLinkedTests:{type:"boolean"},acknowledgeLinkedTests:{type:"boolean"},failOnContextMismatch:{type:"boolean"},failOnSkipped:{type:"boolean"},failOnEmptyTestRun:{type:"boolean"},requireAssertionsForPm:{type:"boolean"},checkContext:{type:"boolean"},autoPmContext:{type:"boolean"},measure:{type:"array",items:{type:"string"}},metricBelow:{type:"string"},metricDiff:{type:"string"},diff:{type:"boolean"},storage:{type:"boolean"},metadataCoverage:{type:"boolean"},fieldUtilization:{type:"boolean"},byAssignee:{type:"boolean"},byTag:{type:"boolean"},byPriority:{type:"boolean"},tagPrefix:{type:"string"},measurements:{type:"boolean"},metric:{type:"string"},measurementLimit:{type:"integer",minimum:0,maximum:1e3},observe:{type:"array",items:{type:"string"}},improvementDirection:{type:"string",enum:["higher","lower","target"]},measurementSource:{type:"string"},measurementItem:{type:"string"},measurementRevision:{type:"string"},provenanceCoverage:{type:"boolean"},fleetAttribution:{type:"boolean"},eventLimit:{type:"integer",minimum:1,maximum:1e5},minimumSample:{type:"integer",minimum:1,maximum:1e4},verify:{type:"boolean"},literal:{type:"array",items:{type:"string"}},regex:{type:"array",items:{type:"string"}},replacement:{type:"string"},timeout:{anyOf:[{type:"string"},{type:"number"}]},validateClose:{type:"string",enum:["off","warn","strict"]},checkMetadata:{type:"boolean"},metadataProfile:{type:"string",enum:["core","strict","custom"]},checkResolution:{type:"boolean"},checkLifecycle:{type:"boolean"},checkStaleBlockers:{type:"boolean"},dependencyCycleSeverity:{type:"string",enum:["off","warn","error"]},parentCycleSeverity:{type:"string",enum:["off","warn","error"]},checkFiles:{type:"boolean"},checkStorageIntegrity:{type:"boolean"},strictDirectories:{type:"boolean"},requireMergeDrivers:{type:"boolean"},checkOnly:{type:"boolean"},checkTelemetry:{type:"boolean"},noRefresh:{type:"boolean"},refreshVectors:{type:"boolean"},verboseStaleItems:{type:"boolean"},skipVectors:{type:"boolean"},skipIntegrity:{type:"boolean"},skipDrift:{type:"boolean"},verboseDiagnostics:{type:"boolean"},allAffectedIds:{type:"boolean"},scanMode:{type:"string",enum:["default","tracked-all","tracked-all-strict"]},includePmInternals:{type:"boolean"},verboseFileLists:{type:"boolean"},strictExit:{type:"boolean"},failOnWarn:{type:"boolean"},fixHints:{type:"boolean"},autoFix:{type:"boolean"},fixScope:{type:"array",items:{type:"string",enum:["metadata","resolution","estimates","lifecycle"]}},pruneMissing:{type:"boolean"},checkHistoryDrift:{type:"boolean"},checkCommandReferences:{type:"boolean"},counts:{type:"boolean"},edit:{type:"integer",minimum:1},delete:{type:"integer",minimum:1},dryRun:{type:"boolean"},normalizeProvenance:{type:"boolean"},salvageTail:{type:"boolean"},all:{type:"boolean"},clear:{type:"boolean"},cliOnly:{type:"boolean"},packagesOnly:{type:"boolean"},repair:{type:"boolean"},packageName:{type:"string"},rollback:{type:"string"},noCheckpoint:{type:"boolean"},force:{type:"boolean"},ifAvailable:{type:"boolean"},ifAbsent:{type:"boolean"},next:{type:"boolean"},maxAttempts:{anyOf:[{type:"integer",minimum:1,maximum:100},{type:"string",pattern:"^(?:[1-9]|[1-9][0-9]|100)$"}]},includeDecisions:{type:"boolean"},includeGates:{type:"boolean"},includeContainers:{type:"boolean"},explainRanking:{type:"boolean"},noTags:{type:"boolean"},noExtensionHealth:{type:"boolean"},run:{type:"boolean"},count:{type:"boolean"},sum:{type:"string"},avg:{type:"string"},tree:{type:"boolean"},treeId:{type:"string",minLength:1},definition:{type:"object"},trigger:{type:"string",enum:["pre-commit","pre-push","pre-merge","ci","pre-release","post-release","scheduled","on-claim","on-close"]},gate:{type:"string",minLength:1},treeDepth:{anyOf:[{type:"string"},{type:"number"}]},includeUnparented:{type:"boolean"},gcScope:{type:"array",items:{type:"string",enum:["index","embeddings","runtime","locks"]}},maxDepth:{anyOf:[{type:"string"},{type:"number"}]},nodeLimit:{anyOf:[{type:"string"},{type:"integer",minimum:1}]},edgeLimit:{anyOf:[{type:"string"},{type:"integer",minimum:1}]},tokenBudget:{anyOf:[{type:"string"},{type:"integer",minimum:1}]},cursor:{type:"string"},direction:{type:"string",enum:["outgoing","incoming","both"]},kind:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},after:{type:"string"},maxPaths:{anyOf:[{type:"string"},{type:"integer",minimum:1}]},sample:{anyOf:[{type:"string"},{type:"integer",minimum:1}]},exemptIsolate:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},collapse:{type:"string",enum:["none","repeated"]},shell:{type:"string",enum:["bash","zsh","fish"]},stdin:{type:"boolean"},file:{type:"string"},preserveSourceIds:{type:"boolean"},folder:{type:"string"},subcommand:{type:"string"},name:{type:"string"},defaultStatus:{type:"string"},alias:{type:"array",items:{type:"string"}},role:{type:"array",items:{type:"string"}},fieldType:{type:"string",enum:["string","number","boolean","string_array"]},commands:{type:"array",items:{type:"string"}},cliFlag:{type:"string"},required:{type:"boolean"},requiredOnCreate:{type:"boolean"},allowUnset:{type:"boolean"},requiredTypes:{type:"array",items:{type:"string"}},infer:{type:"boolean"},minCount:{type:"number"},text:{type:"string"},add:{type:"array",items:{type:"string"}},addGlob:{type:"array",items:{type:"string"}},remove:{type:"array",items:{type:"string"}},migrate:{type:"array",items:{type:"string"}},discover:{type:"boolean"},apply:{type:"boolean"},discoveryNote:{type:"string"},lookupPath:{type:"array",items:{type:"string"}},explain:{type:"boolean"},lines:{type:"string",pattern:"^[1-9]\\d*:[1-9]\\d*$"},decisionDepth:{type:"integer",minimum:1,maximum:32},addNote:{type:"string"},list:{type:"boolean"},appendStable:{type:"boolean"},validatePaths:{type:"boolean"},dep:{type:"array",items:{type:"string"}},depRemove:{type:"array",items:{type:"string"}},replaceDeps:{type:"boolean"},replaceTests:{type:"boolean"},replaceFiles:{type:"boolean"},replaceDocs:{type:"boolean"},comment:{type:"array",items:{type:"string"}},note:{type:"array",items:{type:"string"}},learning:{type:"array",items:{type:"string"}},linkedFile:{type:"array",items:{type:"string"}},linkedTest:{type:"array",items:{type:"string"}},doc:{type:"array",items:{type:"string"}},reminder:{type:"array",items:{type:"string"}},event:{type:"array",items:{type:"string"}},typeOption:{type:"array",items:{type:"string"}},field:{type:"array",items:{type:"string"}},unset:{type:"array",items:{type:"string"}},clearDeps:{type:"boolean"},clearComments:{type:"boolean"},clearNotes:{type:"boolean"},clearLearnings:{type:"boolean"},clearFiles:{type:"boolean"},clearTests:{type:"boolean"},clearDocs:{type:"boolean"},clearReminders:{type:"boolean"},clearEvents:{type:"boolean"},clearTypeOptions:{type:"boolean"},criterion:{type:"array",items:{type:"string"}},clearCriteria:{type:"boolean"},groupBy:{type:"string"},setMode:{type:"string",enum:["element","tuple"]},completion:{type:"boolean"},format:{type:"string"},unbounded:{type:"boolean"},depth:{type:"string",enum:["brief","standard","deep","full"]},section:{type:"array",items:{type:"string",enum:["hierarchy","activity","progress","blockers","files","workload","staleness","tests"]}},activityLimit:{anyOf:[{type:"string"},{type:"number"}]},staleThreshold:{type:"string"},policy:{type:"string"}};const PM_TOOL_ACTION_SCOPED_PARAMETER_PROPERTIES={assurance:{definition:ASSURANCE_DEFINITION_SCHEMA,kind:{type:"string",enum:["measurement","assertion","gate"]},subcommand:{type:"string",enum:["list","show","put","remove","run","verdicts","presets","apply","derive","promote","risk","lineages"]},preset:{type:"string",enum:["software-delivery","research","agent-evaluation","operations"]},enforcement:{type:"string",enum:["warn","block"]},limit:{type:"integer",minimum:1,maximum:1e3}},activity:{harness:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]}},"update-many":{ids:{anyOf:[{type:"string"},{type:"number"},{type:"array",items:{anyOf:[{type:"string"},{type:"number"}]}}]}},"close-many":{ids:{anyOf:[{type:"string"},{type:"number"},{type:"array",items:{anyOf:[{type:"string"},{type:"number"}]}}]}},"history-compact":{ids:{anyOf:[{type:"string"},{type:"number"},{type:"array",items:{anyOf:[{type:"string"},{type:"number"}]}}]}},events:{since:{type:"string",minLength:1},type:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},author:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},item:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},limit:{type:"integer",minimum:0,maximum:1e3},harness:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]}},history:{harness:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]}},remind:{at:{type:"string",minLength:1}}};const PLAN_SUBCOMMAND_VALUES=["create","show","add-step","update-step","complete-step","block-step","reorder-step","remove-step","link","unlink","decision","discovery","validation","resume","approve","materialize"];const PLAN_ACTION_PARAMETER_PROPERTIES={subcommand:{type:"string",enum:[...PLAN_SUBCOMMAND_VALUES]},stepRef:{type:"string"},reorderTo:{anyOf:[{type:"string"},{type:"number"}]},scope:{type:"string"},harness:{type:"string",enum:[...PLAN_HARNESS_VALUES]},mode:{type:"string",enum:[...PLAN_MODE_VALUES]},resumeContext:{type:"string"},related:{type:"string"},blocks:{type:"string"},claim:{type:"boolean"},fromSearch:{type:"string"},stepTitle:{type:"string"},step:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},stepBody:{type:"string"},stepOwner:{type:"string"},stepStatus:{type:"string",enum:[...PLAN_STEP_STATUS_VALUES]},stepEvidence:{type:"string"},stepBlockedReason:{type:"string"},stepReplacement:{type:"string"},dependsOn:{type:"string"},link:{type:"string"},linkKind:{type:"string",enum:[...PLAN_STEP_LINK_KIND_VALUES]},linkNote:{type:"string"},promoteToItemDep:{type:"boolean"},allowMultipleActive:{type:"boolean"},file:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},test:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},doc:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},decisionText:{type:"string"},decision:{type:"string"},decisionRationale:{type:"string"},decisionEvidence:{type:"string"},discoveryText:{type:"string"},discovery:{type:"string"},validationText:{type:"string"},validation:{type:"string"},validationCommand:{type:"string"},validationExpected:{type:"string"},steps:{type:"array",items:{type:"string"}},materializeType:{type:"string"},materializeParent:{type:"string"},materializeTags:{type:"string"},field:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]}};const PLAN_ACTION_PARAMETER_METADATA={subcommand:{description:"Plan workflow operation to run.",examples:["create","show","add-step","approve"]},stepRef:{description:"Plan step id or order for step lifecycle subcommands.",examples:["plan-step-001","1"]},reorderTo:{description:"New integer order for reorder-step.",examples:[1,"2"]},scope:{description:"Short free-text scope statement describing what the Plan covers.",examples:["Release readiness audit","Search package migration"]},mode:{description:"Plan lifecycle mode.",examples:["draft","research","approved"]},step:{description:"Ordered initial step titles for create (string or array, never comma-split; stepTitle, when also set, becomes the first step). For step subcommands a single value aliases stepTitle.",examples:[["Read the code","Write the fix","Run the tests"]]},file:{description:"File link to attach while creating or materializing a Plan.",examples:["path=src/cli.ts,note=implementation surface"]},test:{description:"Test command link to attach while creating or materializing a Plan.",examples:["command=pnpm build,timeout_seconds=300"]},doc:{description:"Documentation link to attach while creating or materializing a Plan.",examples:["path=docs/SDK.md,note=public API reference"]}};const PM_TOOL_PARAMETER_METADATA={includeGates:{description:"Opt next or claim-next into outcome gates. Blocker and ownership restrictions still apply."},includeContainers:{description:"Opt next or claim-next into containers with unfinished descendants. Blocker and ownership restrictions still apply."},action:{description:"Tool action to execute."},pmExecutable:{description:"Override the pm executable used by actions that invoke or verify an external CLI process.",examples:["pm","node dist/cli.js"]},force:{description:"Allow the selected action to override its supported ownership, terminal-state, or destructive-operation guard."},limit:{description:"Maximum number of rows returned by the selected action.",examples:[10,"25"]},text:{description:"Text payload used by append, comment, note, or learning mutations."},path:{description:"Optional PM data root override for this invocation.",examples:[".agents/pm"]},scope:{description:"Scope selector for commands that operate on project or global state. Linked files, docs, and tests default to project scope when omitted.",examples:["project","global"]},detail:{description:"Detail mode for commands that support concise and deep diagnostics.",examples:["summary","deep"]},trace:{description:"When true for extension-doctor, include actionable registration traces in deep diagnostics."},reload:{description:"When true for extension action payloads, trigger cache-busted extension module reload."},watch:{description:"When true for extension-reload/extension action payloads, enable watch mode semantics."},runtimeProbe:{description:"When true for extension-manage, run a doctor-like runtime activation probe for parity fields."},fixManagedState:{description:"When true for extension-manage/extension-doctor, adopt unmanaged extensions before diagnostics/update checks."},isolated:{description:"When true for extension-doctor/package-doctor, ignore global registrations for hermetic project diagnostics."},ignoreGlobal:{description:"Alias for isolated on extension-doctor/package-doctor action payloads."},target:{description:"Positional target argument for the selected action (ID, source, package source, or extension name).",examples:["pm-a1b2",".agents/pm/extensions/sample","sample-extension"]},capability:{description:"Starter capability selected by extension-init or package-init scaffolding.",examples:["commands","hooks","search","schema"]},declarative:{description:"Generate the package composeExtension declarative blueprint starter."},output:{description:"File path for commands that write generated output, such as package/extension describe Markdown references.",examples:["docs/pm-package-reference.md"]},markdown:{description:"Render the package or extension description as Markdown instead of structured output.",examples:[true]},github:{description:"GitHub shorthand owner/repo[/path] source for package/extension install actions.",examples:["org/repo/extensions/sample"]},ref:{description:"Git ref/branch/tag used when installing from GitHub shorthand/URL sources.",examples:["main","v1.0.0"]},cliOnly:{description:"Restrict upgrade to the pm CLI/SDK npm package."},packagesOnly:{description:"Restrict upgrade to managed installable pm packages."},repair:{description:"Force npm global reinstall semantics when upgrading the pm CLI/SDK."},tag:{description:"npm version or dist-tag used for CLI and registry package upgrades.",examples:["latest","next","2026.5.11"]},today:{description:"When true for list actions, include only items updated since local midnight today."},recent:{description:"When true for list actions, include only items updated in the last seven days."},packageName:{description:"Override the pm CLI package name for self-upgrade automation and tests.",examples:["@unbrained/pm-cli"]},json:{description:"Emit machine-readable JSON output."},quiet:{description:"Suppress stdout payload output."},noExtensions:{description:"Disable extension loading for this invocation."},noPager:{description:"Disable pager integration for help and long output."},tokenAccounting:{description:"Request a bounded transport-level receipt for output emitted by a compatible CLI or MCP host."},outputInclude:{description:"Comma-separated fields or sections retained by any built-in read action.",examples:["id,title,status","summary,counts"]},outputLimit:{description:"Universal read row ceiling, or unbounded to disable the shared ceiling.",examples:[10,"unbounded"]},outputBudget:{description:"Universal estimated-token ceiling for a read result, or unbounded to disable the shared ceiling.",examples:[600,1200,"unbounded"]},outputFormat:{description:"Universal read-result encoding selector.",examples:["toon","json"]},outputSession:{description:"Caller-carried JSON session state that enforces a token ceiling across read calls and replaces repeated item facts with resolvable context references.",examples:[{version:1,id:"orientation",token_budget:4e3,spent_tokens:0,seen_item_ids:[]}]},outputCursor:{description:"Opaque continuation cursor returned when a declared row collection is compacted by the output budget."},outputRowContract:{description:"Include the row selector and TOON row-encoding contract on a read result."},profile:{description:"Emit deterministic timing diagnostics to stderr."},timeoutMs:{description:"Tool execution timeout in milliseconds.",examples:[12e4]},id:{description:"Item identifier for read or mutation actions.",examples:["pm-a1b2"]},treeId:{description:"Commit, tree, snapshot, or immutable workspace identity judged by an assurance gate.",examples:["0123456789abcdef","release-candidate-3"]},definition:{description:"Structured measurement, assertion, or gate declaration used by assurance put."},trigger:{description:"Lifecycle trigger used to evaluate an assurance gate.",examples:["ci","pre-release"]},gate:{description:"Stable assurance gate id used to filter durable verdict history.",examples:["release-readiness"]},owner:{description:"pm item that owns preset or observation-derived assurance assertions.",examples:["pm-a1b2"]},enforcement:{description:"Explicit next assurance enforcement level.",examples:["warn","block"]},runId:{description:"Background test run identifier.",examples:["tr-kq9x3f-93acde"]},title:{description:"Item title text."},description:{description:"Item description text."},type:{description:"Item type name from the active runtime type registry.",examples:["Task","Feature"]},subcommand:{description:"Subcommand selector for schema, profile, telemetry, and graph actions."},name:{description:"Custom definition name, schema migration source name, or profile name.",examples:["Spike","review","component"]},defaultStatus:{description:"Default status hint recorded for a custom item type.",examples:["open"]},alias:{description:"Aliases for the custom item type or status (repeatable).",examples:[["spike","research"]]},role:{description:"Lifecycle roles for a custom status (schema add-status): draft, active, blocked, terminal, terminal_done, terminal_canceled, default_open, default_close, default_cancel.",examples:[["active"],["terminal","terminal_done"]]},fieldType:{description:"Value type for a custom field (schema add-field): string, number, boolean, or string_array.",examples:["string","number","string_array"]},fieldTypeScope:{description:"Optional item type restricting which records participate in schema rename-field.",examples:["Issue","Feature"]},migrationId:{description:"Optional stable idempotency override used to persist and resume a schema migration plan; omitted values are derived from the workspace and normalized request.",examples:["severity-to-impact-v2"]},commands:{description:"Commands a custom field is wired onto (schema add-field): create, update, update_many, list, search, calendar, context.",examples:[["create","update"],["create","update","list"]]},cliFlag:{description:"Override the auto-derived CLI flag for a custom field (schema add-field).",examples:["--owner"]},required:{description:"Mark a custom field as always required (schema add-field)."},requiredOnCreate:{description:"Mark a custom field as required at create time (schema add-field)."},allowUnset:{description:"Whether a custom field may be cleared via --unset (schema add-field); defaults to true."},allowDuplicate:{description:"Explicitly proceed when strict similarity governance finds likely duplicate items."},allowUnresolvedDeps:{description:"Permit unresolved local dependency targets while returning dependency_target_unresolved warning receipts. Cross-workspace references should use source_kind=external instead.",examples:[true]},requiredTypes:{description:"Restrict a custom field's requirement to specific item types (schema add-field).",examples:[["Bug"],["Story","Spike"]]},infer:{description:"Infer custom item types from title-prefix conventions (schema add-type); previews unless apply is true."},minCount:{description:"Minimum number of items sharing a title prefix for schema add-type inference (default 10).",examples:[10,25]},preset:{description:"Governance preset for initialization flows.",examples:["minimal","default","strict"]},idPrefix:{description:"Tracker item identifier prefix used by initialization; overrides the positional compatibility prefix.",examples:["pm","work"]},workspace:{description:"Workspace directory where initialization resolves or creates the tracker.",examples:[".","packages/app"]},typePreset:{description:"Domain item-type preset registered during initialization.",examples:["agile","ops","research"]},defaults:{description:"Use non-interactive setup defaults during initialization."},verbose:{description:"Include the full resolved settings tree in init output."},agentGuidance:{description:"Control AGENTS.md/CLAUDE.md guidance behavior during init: ask, add, skip, or status.",examples:["ask","add","skip","status"]},withPackages:{description:"Install all bundled first-party pm packages during initialization."},mergeFence:{description:"Install the repository merge-driver fence for a fresh Git-backed tracker; set false to opt out."},createMode:{description:"Create required-option policy mode.",examples:["strict","progressive"]},schedulePreset:{description:"Schedule-centric create preset for Reminder, Meeting, and Event types.",examples:["lightweight"]},status:{description:"Item status value. Statuses are project-configurable via .agents/pm/settings.json (schema block); the built-in defaults are draft, open, in_progress, blocked, closed, canceled. Custom statuses defined for the project are accepted \u2014 discover the active set with the pm_contracts tool (workspace.statuses) or `pm contracts`. Unknown statuses are rejected at runtime with a did-you-mean hint rather than blocked by a fixed schema enum.",examples:["open","in_progress"]},since:{description:"Inclusive ISO 8601 creation timestamp lower bound for duplicate discovery.",examples:["2026-01-01T00:00:00.000Z"]},exhaustive:{description:"Compare every duplicate pair within the disclosed safety bound; default prefix filtering preserves exact recall."},threshold:{description:"Minimum duplicate similarity score from zero through one.",examples:[.85]},priority:{description:"Priority value in range 0..4.",examples:[0,1,"2"]},order:{description:"Planning order/rank value for create/update, or sort direction (asc|desc) for list-family sorting.",examples:[0,1,"2","asc","desc"]},sort:{description:"List-family sort field selector.",examples:["priority","deadline","updated_at","created_at","title","parent"]},tags:{description:"Comma-delimited tag list.",examples:["pm-cli,agent-ux"]},addTags:{description:"Tags to add to the existing list without replacing it. Each entry may be CSV or a JSON array.",examples:[["agent-ux"],["fix","security"]]},addAc:{description:"Acceptance criteria appended individually without replacing the existing list (one criterion per entry).",examples:[["error path covered by a regression test"]]},removeAc:{description:"Acceptance criteria removed individually by exact text match; the mutation fails atomically if any selector is unmatched (one criterion per entry).",examples:[["superseded manual QA step"]]},removeTags:{description:"Tags to remove from the existing list. Each entry may be CSV or a JSON array.",examples:[["stale"],["legacy","wontfix"]]},deadline:{description:"ISO/date timestamp or relative offset (+6h/+1d/+2w/+6m).",examples:["2026-04-01T00:00:00.000Z","+1d"]},reminder:{description:"Repeatable reminder seed entries at=<iso|relative>,text=<text>.",examples:[["at=+2d,text=Review PR"]]},event:{description:"Repeatable event seed entries start=<iso|relative> with end=<iso|relative> or duration=<relative|30min|PT30M>. Bare `m` remains months for backward compatibility.",examples:[["start=2026-07-01T10:00:00Z,duration=2h,title=planning"],["start=2026-07-01T10:00:00Z,duration=30min,title=standup"],["start=2026-07-01T10:00:00Z,duration=PT30M,title=window"]]},historyEvent:{description:"Unknown-author history target in <item-id>:<one-based-line> form.",examples:[["pm-example:4","pm-example:5"]]},planFingerprint:{description:"Exact SHA-256 returned by a history-author-acknowledge dry-run preview; apply refuses stale or changed source coordinates.",examples:["0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"]},estimate:{description:"Estimated effort in minutes.",examples:[60,"120"]},acceptanceCriteria:{description:"Complete acceptance-criteria text supplied while creating or replacing an item field."},author:{description:"Intentional mutation-author override. Agent harness identity is automatic when omitted."},attributedAuthor:{description:"Principal attributed to the immutable unknown-author history events after review.",examples:["reviewed-principal"]},message:{description:"History message for mutation audit trail."},ifAbsent:{description:"For annotations, append only when no existing entry has the same resolved author and exact stored text; retries return changed false without a history event."},assignee:{description:"Assignee identity."},assigneeFilter:{description:"Assignee presence selector for list, calendar, and context filters.",examples:["assigned","unassigned"]},parent:{description:"Parent item ID filter for hierarchical list queries.",examples:["pm-epic01"]},blockedLimit:{description:"Cap blocked rows returned by the next action (defaults to the ready --limit).",examples:["3"]},readyOnly:{description:"When true, the next action omits the blocked companion list."},unset:{description:"Repeatable list of item-metadata fields to clear explicitly during create/update mutations.",examples:[["deadline","assignee"],["close-reason"]]},clearDeps:{description:"When true, clear linked dependencies."},replaceDeps:{description:"When true for update, atomically replace dependencies with the supplied --dep values."},replaceTests:{description:"When true for update, atomically replace linked tests with the supplied --test values."},replaceFiles:{description:"When true for update, atomically replace linked files with the supplied --file values."},replaceDocs:{description:"When true for update, atomically replace linked docs with the supplied --doc values."},lookupPath:{description:"One or more source paths whose referencing pm items should be returned by files lookup.",examples:[["src/sdk/files.ts"],["README.md","docs/SDK.md"]]},explain:{description:"Include ranked linked-file, rationale, and governing-decision evidence for a files lookup."},lines:{description:"Inclusive start:end source-line range for Git contribution attribution; requires one lookup path.",examples:["10:24"]},decisionDepth:{description:"Maximum typed relationship depth searched for a governing Decision during files lookup.",examples:[8]},clearComments:{description:"When true, clear item comments."},clearNotes:{description:"When true, clear item notes."},clearLearnings:{description:"When true, clear item learnings."},clearFiles:{description:"When true, clear linked files."},clearTests:{description:"When true, clear linked tests."},clearDocs:{description:"When true, clear linked docs."},clearReminders:{description:"When true, clear reminders."},clearEvents:{description:"When true, clear events."},clearTypeOptions:{description:"When true, clear type option metadata."},clearCriteria:{description:"When true for config set criteria-list keys (definition-of-done, metadata-required-fields, lifecycle pattern lists), clear the criteria list."},mode:{description:"Mode selector for search and reindex (keyword|semantic|hybrid).",examples:["keyword","hybrid"]},semanticWeight:{description:"Per-query hybrid semantic weight override in [0,1] for search action; invalid values fall back to settings.",examples:[.2,"0.7"]},op:{description:"History operation filter for activity output.",examples:["create","update","close","update_ownership_bypass"]},fullPeriod:{description:"For day/week/month calendar views, include the full anchored period instead of clipping the start to now."},progress:{description:"Emit progress diagnostics to stderr for long-running operations."},background:{description:"Run linked tests in managed background mode."},addJson:{description:"JSON input: one structured context event for notes, or repeatable linked-test entries for test.",examples:[[`{"command":"node scripts/run-tests.mjs test -- tests/unit/output.spec.ts","timeout_seconds":240}`]]},eventType:{description:"For notes action, return structured context events whose top-level type matches this value."},includeMeta:{description:"Include structured-event counts for notes reads; filtered reads also include total, returned, limit, and has-more metadata."},allActionable:{description:"For history-author-acknowledge, select every currently actionable undispositioned event."},match:{description:"Run only linked tests whose command or path contains this case-insensitive substring.",examples:["output.spec.ts","coverage"]},onlyIndex:{description:"Run only the 1-based linked-test index from pm test <id> --list order.",examples:[1,"2"]},removeIndex:{description:"Remove linked tests by their 1-based positions from pm test <id> --list order; repeatable and lossless for commands containing commas or equals signs.",examples:[[1],["2","4"]]},onlyLast:{description:"Run only the most recently added linked-test entry."},envSet:{description:"Repeatable runtime environment KEY=VALUE overrides for linked-test execution.",examples:[["PORT=0","PLAYWRIGHT_HTML_OPEN=never"]]},envClear:{description:"Repeatable runtime environment variable names to clear before linked-test execution.",examples:[["PLAYWRIGHT_BASE_URL"]]},sharedHostSafe:{description:"Apply additive shared-host-safe runtime defaults during linked-test execution."},pmContext:{description:"PM linked-test context mode (schema keeps isolated tracker data; tracker seeds source tracker data; auto uses tracker for PM tracker-read linked commands).",examples:["schema","tracker","auto"]},overrideLinkedPmContext:{description:"Force run-level --pm-context to override per-linked-test pm_context_mode metadata for all linked-test entries."},workspaceContext:{description:"Source-workspace mode: source preserves read-only source context, isolated omits it for self-sandboxing commands, and snapshot runs from a temporary workspace paired with the selected tracker sandbox.",examples:["source","isolated","snapshot"]},overrideLinkedWorkspaceContext:{description:"Force run-level --workspace-context over per-linked-test workspace_context_mode metadata."},allowUntrustedLinkedTests:{description:"Explicitly execute commands not yet trusted by this clone when testing.allow_untrusted_linked_tests is also enabled."},acknowledgeLinkedTests:{description:"Record clone-local trust for the item's current linked commands without executing them."},failOnContextMismatch:{description:"Fail linked PM command runs when source and sandbox tracker item counts differ."},failOnSkipped:{description:"Treat skipped linked tests as dependency-failed policy violations."},failOnEmptyTestRun:{description:"Treat successful linked-test commands that report zero executed tests as failures."},requireAssertionsForPm:{description:"Require assertion metadata for linked PM command test entries during run execution."},checkContext:{description:"Run linked PM command context preflight diagnostics before command execution."},autoPmContext:{description:"Auto-remediate PM tracker-read linked commands by routing those entries through tracker context regardless of linked-test pm_context_mode overrides."},measure:{description:"Repeatable numeric run evidence in name=value[,unit=...][,threshold=...] form.",examples:[["coverage=100,unit=percent,threshold=100"]]},metricBelow:{description:"Return recorded evidence below a name=value threshold.",examples:["coverage=100"]},metricDiff:{description:"Compare the latest and previous values for one metric.",examples:["coverage"]},dryRun:{description:"Preview command effects without mutating storage artifacts."},normalizeProvenance:{description:"For history-repair: remove invalid legacy provenance observations and emit only aggregate privacy-safe repair evidence."},salvageTail:{description:"For history-repair with one explicit id: remove an invalid trailing suffix after a verified prefix; refuses interior corruption."},all:{description:"For history-repair action: scan every stream for drift and repair each drifted stream in one audited pass (mutually exclusive with id)."},clear:{description:"For focus action: clear the session focused item instead of setting it (mutually exclusive with id)."},gcScope:{description:"Repeatable gc scope selector values (index, embeddings, runtime, locks, checkpoints, transactions).",examples:[["index","embeddings"],["runtime"],["locks"],["checkpoints"]]},storage:{description:"For stats action: include aggregate history-stream storage metrics (total streams/lines/bytes, largest + deepest streams, oldest/newest entries) for compaction and storage planning."},fieldUtilization:{description:"For stats action: include a field_utilization block reporting present/total/percent for content fields (notes, learnings, files, docs, tests, comments, deps, body, linked_command) across all items so under-documented dimensions are visible at a glance."},measurements:{description:"For stats action: include the audited append-only improvement ledger and baseline-to-latest trends."},metric:{description:"Exact improvement metric name used to filter ledger reads.",examples:["quality.coverage.lines"]},measurementLimit:{description:"Maximum newest improvement observations returned by stats.",examples:[50]},observe:{description:"Repeatable audited observation in name=value[,unit=...][,threshold=...] form.",examples:[["quality.coverage.lines=100,unit=percent,threshold=100"]]},improvementDirection:{description:"Improvement direction for newly recorded observations.",examples:["higher","lower","target"]},measurementSource:{description:"Producing gate or instrument for a new observation.",examples:["pnpm coverage"]},measurementItem:{description:"Tracked item that owns an improvement observation.",examples:["pm-123abc"]},measurementRevision:{description:"Explicit source revision for a new observation.",examples:["0123456789abcdef"]},provenanceCoverage:{description:"For stats action: compare configured provenance descriptors with bounded immutable-history observations."},fleetAttribution:{description:"For stats action: derive observational throughput, rework, and defect-escape rates by harness, model, and author source."},eventLimit:{description:"Maximum immutable history events consumed by an analytics projection.",examples:[1e4]},minimumSample:{description:"Minimum denominator before analytics rates are reported.",examples:[5]},offset:{description:"Number of matching rows to skip before limit is applied.",examples:[0,50,"100"]},provenance:{description:"Return patch-free immutable author, harness, instance, and extensible provenance rows."},provenanceSummary:{description:"Include bounded observed, unavailable, legacy-missing, and unresolved-author counts."},agentInstance:{description:"Privacy-safe agent invocation fingerprint filter, supplied once or as a list.",examples:["a1b2c3d4",["a1b2c3d4","e5f6g7h8"]]},provenanceFilter:{description:"Exact extensible provenance predicate in dimension=value form, supplied once or as a list.",examples:["model=gpt-5.6-sol",["effort=xhigh","role=reviewer"]]},before:{description:"For history-compact, compact entries strictly before this boundary (version number or ISO timestamp). Single-id mode only.",examples:["5","2026-06-01T00:00:00.000Z"]},at:{description:"Read-only historical projection boundary as an item version or ISO timestamp.",examples:["3","2026-07-01T12:00:00.000Z"]},allOver:{description:"For history-compact bulk mode, compact every stream with more than N entries. When history.compact_policy is enabled and this is omitted, the policy's max_entries is used.",examples:[200,"500"]},minEntries:{description:"For history-compact bulk mode, skip streams with at most N entries as already-compact (default 3).",examples:[3,"10"]},closed:{description:"For history-compact bulk mode, compact only closed (terminal) items' history streams."},allStreams:{description:"For history-compact bulk mode, compact every history stream regardless of lifecycle state."},literal:{description:"Repeatable literal matcher used by history-redact to scrub exact string values.",examples:["[redacted_path_prefix]/private/path"]},regex:{description:"Repeatable regex matcher used by history-redact. Accepts either /pattern/flags or a raw pattern (global mode is auto-enabled).",examples:["/192\\\\.168\\\\.[0-9.]+/g","token=[A-Za-z0-9_-]+"]},replacement:{description:'Replacement text used by history-redact (defaults to "[redacted]").',examples:["[scrubbed_path]"]},validateClose:{description:'Close-time metadata validation mode ("off", "warn", or "strict").',examples:["off","warn","strict"]},checkMetadata:{description:"Run metadata completeness checks."},metadataProfile:{description:"Select metadata validation profile for --check-metadata.",examples:["core","strict","custom"]},checkResolution:{description:"Run closed-item resolution metadata checks."},checkLifecycle:{description:"Run active-item lifecycle governance drift checks."},checkStaleBlockers:{description:"Include stale blocker-pattern diagnostics in lifecycle checks."},dependencyCycleSeverity:{description:"Set dependency-cycle warning policy for lifecycle checks.",examples:["off","warn","error"]},parentCycleSeverity:{description:"Set parent-cycle warning policy for lifecycle checks.",examples:["off","warn","error"]},checkFiles:{description:"Run linked-file and orphaned-file checks."},checkStorageIntegrity:{description:"Run deep item, history, index, and vector storage integrity checks."},strictDirectories:{description:"Treat optional item-type directories as required health failures."},requireMergeDrivers:{description:"Treat never-installed clone-local semantic merge drivers as required health failures."},checkOnly:{description:"For health action, run read-only diagnostics without refreshing vectors."},checkTelemetry:{description:"For health action, probe telemetry endpoint health and include network diagnostics."},noRefresh:{description:"For health action, skip vector refresh while still running checks."},refreshVectors:{description:"For health action, explicitly refresh stale vectors."},verboseStaleItems:{description:"For health action, include full stale-item arrays in vectorization details."},verboseAuthorEvents:{description:"For health action, include every actionable unknown-author event coordinate."},skipVectors:{description:"For health action, skip vectorization checks for a faster diagnostic run."},skipIntegrity:{description:"For health action, skip item/history file integrity checks for a faster diagnostic run."},skipDrift:{description:"For health action, skip history drift hash checks for a faster diagnostic run."},scanMode:{description:"Select file candidate scan mode for --check-files.",examples:["default","tracked-all","tracked-all-strict"]},includePmInternals:{description:"Include PM storage internals in tracked-all candidate scans."},verboseFileLists:{description:"For validate action, include full file-path lists for --check-files details."},verboseDiagnostics:{description:"For validate action, include full diagnostic ID lists instead of compact summaries."},strictExit:{description:"Apply the selected capability's strict exit policy; health also requires merge drivers."},failOnWarn:{description:"Alias for strictExit in health, validation, history, and managed doctor actions."},fixHints:{description:"For validate action, add a machine-executable fix_hints[] of pm commands to each failing check's details."},autoFix:{description:"For validate action, apply the safe, deterministic subset of fix-hint remediations (field backfills) automatically; combine with dryRun to preview and fixScope to grant gated scopes."},fixScope:{description:"For validate action, grant --auto-fix scopes (metadata, resolution, estimates, lifecycle). Defaults to the safe scopes metadata and resolution; estimates (per-type default estimated_minutes backfill) and lifecycle must be named explicitly.",examples:[["estimates"],["lifecycle"],["metadata","resolution"]]},pruneMissing:{description:"For validate action, remove stale linked-file/doc LINKS whose paths classified as deleted (link removal only \u2014 never touches real files); honors dryRun."},checkHistoryDrift:{description:"Run item/history hash drift checks."},checkCommandReferences:{description:"Run linked-command PM-ID reference checks."},edit:{description:"For comments, notes, and learnings actions, replace the annotation at this 1-based index with supplied replacement text."},delete:{description:"For comments, notes, and learnings actions, delete the annotation at this 1-based index."},stdin:{description:"For comments, notes, and learnings actions, read annotation text from piped stdin (supports multiline markdown)."},file:{description:"CLI-only path to an input file for commands that read payload text; tool actions exclude host file access.",examples:["notes/comment.md"]},preserveSourceIds:{description:"Preserve explicit source IDs during Beads imports instead of normalizing to tracker prefix.",examples:[true]},appendStable:{description:"When true for files action, preserve existing linked-file order and append new links without full-array resorting."},discover:{description:"When true for files action, use `pm files discover <id>` to scan item text for referenced file paths."},apply:{description:"Persist changes instead of returning a dry-run preview: for files discovery, add the missing discovered file links; for schema add-type --infer, register the inferred custom item types."},discoveryNote:{description:"Note attached to file links added by files discovery.",examples:["discovered from item text"]},addNote:{description:"Note attached to every link added by add/addGlob in this call (per-entry embedded note= wins; requires add or addGlob). Maps to the CLI --note flag on pm files/pm docs.",examples:["command wiring"]},list:{description:"When true, list command-specific entries without mutating state (for example linked paths for files/docs or topics for guide).",examples:[true]},stream:{description:"Stream selector: test-runs logs accepts stdout|stderr|both; activity accepts boolean/rows|ndjson|jsonl for line-delimited output.",examples:["stderr","stdout","both","rows","ndjson","jsonl",true]},tail:{description:"Number of lines to tail for background run logs.",examples:[100]},query:{description:"Search query text for search action."},for:{description:"Named context intent projection declared for the selected read action.",examples:["orient","inspect","triage","execute","discover"]},keywords:{description:"Alias for query in search action payloads."},includeLinked:{description:"Include readable linked docs/files/tests content in keyword and hybrid lexical scoring."},titleExact:{description:"For search action, require exact normalized title match for the full query string."},phraseExact:{description:"For search action, require exact normalized query phrase match in item text fields."},highlight:{description:"For search action, emit per-field matched-text snippets (wrapped in \xAB\u2026\xBB) on each hit. Off by default."},includeBody:{description:"When true for list-family actions, include item body text in projected rows."},noTruncate:{description:"When true for list-family actions, return every matched row, overriding any limit (surfaces total when rows were dropped)."},strictRead:{description:"When true for list-family actions, fail if any source item or item directory cannot be read."},compact:{description:"Render compact projection output for search and list-family actions."},raw:{description:"For activity, restore the compact per-event stream instead of the default item digest."},brief:{description:"Emit compact low-token output for commands that support terse projections or health details.",examples:[true]},full:{description:"Enable command-specific full/detail output mode when supported, such as deep item reads for get or full payload mode for search/history."},includeEmpty:{description:"For stats, restore zero-count registered type and lifecycle-status buckets."},fields:{description:"Comma-separated projection fields for get, search, list-family, or context outputs. Valid field names are command-specific (e.g. score/matched_fields apply to search; context projects focus-row fields such as priority/deadline/completion_pct).",examples:["id,title,status,parent,type","id,title,score,matched_fields","id,title,priority,deadline"]},groupBy:{description:"Comma-separated aggregate grouping fields (supported: parent,type,priority,status,assignee,tags,sprint,release).",examples:["parent,type","type,status","priority,assignee","tags","sprint,release"]},setMode:{description:"Aggregate array dimensions by distinct element (default), or by the complete normalized tuple. Empty sets retain a null group.",examples:["element","tuple"]},count:{description:"Enable grouped count output for aggregate action."},completion:{description:"For aggregate action, add open/in_progress/closed/other counts and completion_pct per group."},sum:{description:"Numeric field to sum per aggregate group (count and null_count are still returned).",examples:["estimated_minutes","priority"]},avg:{description:"Numeric field to average per aggregate group (count and null_count are still returned).",examples:["estimated_minutes","priority"]},tree:{description:"When true for list/get actions, render recursive parent/child tree ordering."},treeDepth:{description:"Maximum recursion depth for tree output (0 keeps root rows only).",examples:[0,1,"2"]},includeUnparented:{description:"Include unparented rows when aggregate grouping includes parent."},maxDepth:{description:"Maximum dependency traversal depth for deps action (0 keeps only the root node).",examples:[0,1,"2"]},nodeLimit:{description:"Maximum related nodes returned by deps --format context.",examples:[10,"20"]},edgeLimit:{description:"Maximum related edges returned by deps --format context.",examples:[20,"40"]},tokenBudget:{description:"Maximum estimated output tokens for the command output.",examples:[600,"1200"]},cursor:{description:"Opaque continuation cursor returned by deps --format context."},direction:{description:'Graph-context traversal direction for deps action ("outgoing", "incoming", or "both").',examples:["both","incoming"]},kind:{description:"Registered relationship kinds narrowing deps --format context traversal (string, comma-separated, or array).",examples:["blocked_by",["parent","related"]]},after:{description:"Opaque action-specific continuation cursor returned by the preceding bounded query.",examples:["pm-x1y2"]},maxPaths:{description:"Maximum enumerated paths for graph paths queries.",examples:[5,"10"]},sample:{description:"Maximum evidence sample entries per graph audit finding.",examples:[10,"25"]},exemptIsolate:{description:"Item ids the graph audit treats as explicitly valid isolates (string, comma-separated, or array).",examples:["pm-x1y2",["pm-x1y2","pm-a3b4"]]},exemptIsolateType:{description:"Item types whose active isolates the graph audit treats as policy-valid (string, comma-separated, or array).",examples:["Reminder",["Reminder","Event"]]},saveBaseline:{description:"When true, persist the graph audit census as the change-since-baseline comparison point (audit only)."},rebuild:{description:"When true, rebuild and warm the durable graph index (graph index only)."},collapse:{description:'Dependency tree collapse mode for deps action ("none" or "repeated").',examples:["none","repeated"]},summary:{description:"When true, return the command's compact summary projection (deps counts, health rollup, or contracts command intents)."},shell:{description:"Shell target for completion generation.",examples:["bash"]},eagerTags:{description:"When true for completion, eagerly embed current tracker tags into generated scripts (legacy mode)."},contractAction:{description:"Filter contracts schema to one tool action.",examples:["create","update"]},command:{description:"Scope contracts output to one CLI command name; action/schema surfaces narrow by default.",examples:["create","search","list"]},schemaOnly:{description:"When true, contracts action returns schema-focused payloads (mutually exclusive with flagsOnly/availabilityOnly)."},flagsOnly:{description:"When true, contracts action returns only command flag surface payloads (mutually exclusive projection mode)."},availabilityOnly:{description:"When true, contracts action returns only action availability payloads (mutually exclusive projection mode)."},runtimeOnly:{description:"When true, contracts action only includes actions invocable in the current runtime."},activeOnly:{description:"Alias for runtimeOnly in contracts action payloads."},depth:{description:"Context depth level controlling how many sections are included (brief=focus+agenda, standard=+hierarchy/activity/progress/workload, deep=all sections, full=every section with no per-section row cap).",examples:["brief","standard","deep","full"]},section:{description:"Repeatable section selector for context; overrides --depth when provided.",examples:[["hierarchy","activity"],["blockers","files","staleness"]]},activityLimit:{description:"Maximum number of recent activity entries to include in context output.",examples:[5,10,"20"]},staleThreshold:{description:"Staleness cutoff in days for context staleness section (e.g. 7 or 7d).",examples:["7","14d","30"]}};const PM_TOOL_ACTION_SCOPED_PARAMETER_METADATA={"health":{strictExit:{description:"Return non-zero for a failing health verdict; also require merge drivers."}},"validate":{strictExit:{description:"Return non-zero when validation reports warnings."}},"extension-doctor":{strictExit:{description:"Return non-zero when extension diagnostics report warnings or a non-ok summary."}},"package-doctor":{strictExit:{description:"Return non-zero when package diagnostics report warnings or a non-ok summary."}},"history":{strictExit:{description:"Return non-zero for history verification failures when verify is enabled."}},extension:{strictExit:{description:"For doctor operations, return non-zero on warnings or a non-ok diagnostic summary."}},package:{strictExit:{description:"For doctor operations, return non-zero on warnings or a non-ok diagnostic summary."}},assurance:{subcommand:{description:"Assurance operation: list, show, put, remove, run, verdicts, presets, apply, derive, promote, risk, or lineages.",examples:["list","run","risk","lineages"]},kind:{description:"Assurance declaration kind for registry operations: measurement, assertion, or gate.",examples:["measurement","assertion","gate"]},id:{description:"Stable assurance declaration id or gate id, depending on subcommand.",examples:["active-issues","release-readiness"]},limit:{description:"Maximum number of newest assurance verdicts returned.",examples:[10,25]},preset:{description:"Built-in assurance project shape to preview or apply.",examples:["software-delivery","agent-evaluation"]}},update:{acceptanceCriteria:{description:"Complete acceptance-criteria replacement text. Use removeAc plus addAc together for an atomic one-entry repair that preserves unrelated criteria."}},"update-many":{acceptanceCriteria:{description:"Complete acceptance-criteria replacement text. Use removeAc plus addAc together for an atomic one-entry repair that preserves unrelated criteria."}},stats:{since:{description:"Inclusive ISO 8601 timestamp or negative duration lower bound for provenance and fleet analytics.",examples:["2026-08-01T00:00:00.000Z","-30d"]}},events:{since:{description:"Durable event cursor returned as next_cursor, or an inclusive event timestamp.",examples:["eyJmaW5nZXJwcmludCI6Ii4uLiJ9","2026-08-01T00:00:00.000Z"]},type:{description:"Mutation event type filter, supplied once or as a list.",examples:["create",["create","update"]]},author:{description:"Mutation author filter, supplied once or as a list.",examples:["agent-a",["agent-a","agent-b"]]},item:{description:"Tracked item id filter, supplied once or as a list.",examples:["pm-a1b2",["pm-a1b2","pm-c3d4"]]},limit:{description:"Maximum mutation events returned, from 0 through 1000.",examples:[0,100]},cursorMode:{description:"Cursor framing: batch returns one terminal next_cursor (default); row also adds a cursor to every event.",examples:["batch","row"]}},remind:{at:{description:"Reminder time as an ISO 8601 timestamp or supported relative expression.",examples:["2026-08-02T09:00:00+02:00","tomorrow 09:00"]}},deps:{tokenBudget:{description:"Maximum estimated output tokens for deps --format context.",examples:[600,"1200"]}},comments:{full:{description:"Return the complete post-mutation comment history instead of the bounded mutation receipt projection."},ifAbsent:{description:"Append a comment only when the resolved author and exact stored text are absent; a duplicate retry returns changed false without writing history."}},notes:{full:{description:"Return the complete post-mutation note history instead of the bounded mutation receipt projection."},ifAbsent:{description:"Append a note only when the resolved author and exact stored text are absent; a duplicate retry returns changed false without writing history."},since:{description:"Inclusive ISO 8601 creation timestamp lower bound for structured note event filtering.",examples:["2026-01-01T00:00:00.000Z"]}},learnings:{full:{description:"Return the complete post-mutation learning history instead of the bounded mutation receipt projection."},ifAbsent:{description:"Append a learning only when the resolved author and exact stored text are absent; a duplicate retry returns changed false without writing history."}},next:{tag:{description:"Only recommend items carrying this exact tag.",examples:["sdk","release"]},tokenBudget:{description:"Maximum estimated output tokens for the recommendation context.",examples:[600,"1200"]}},claim:{tag:{description:"When claiming the next item, only consider work carrying this exact tag.",examples:["sdk","release"]},tokenBudget:{description:"Maximum estimated output tokens for the next-item context returned with the claim.",examples:[600,"1200"]}},close:{text:{description:"Backward-compatible alias for the item close reason when reason is not provided."}},"close-task":{text:{description:"Close reason used before releasing the item's active assignment."}},schema:{name:{description:"Custom item type name (add-type/remove-type/show), custom status id (show-status/add-status/remove-status), or custom field key (add-field/remove-field/show-field). Required for those subcommands.",examples:["Spike","review","component"]}},profile:{name:{description:"Profile name for show/apply/lint. Built-in profiles are agile, ops, and research; an active extension can contribute additional archetype names that resolve here too.",examples:["agile","ops","research"]}},graph:{subcommand:{description:"Graph query selector: ancestors|descendants|predecessors|successors|paths|impact|analyze|audit|communities|redundancy|dominators|slack|centrality|articulation|plan|index. Traversals, paths, impact, and dominators require id; paths also requires target; slack reports critical-path float, centrality ranks betweenness/closeness/degree, articulation reports cut points and bridges; plan derives dry-run remediation proposals from the governance audit; index reports, rebuilds, or clears the durable cross-process graph index.",examples:["successors","audit"]},clear:{description:"When true, delete the durable graph index (graph index only)."},id:{description:"Root item id for traversal, paths, impact, and dominators graph queries.",examples:["pm-x1y2"]},target:{description:"Target item id for graph paths queries.",examples:["pm-a3b4"]},direction:{description:'Edge orientation for graph paths/impact/dominators queries ("outgoing", "incoming", or "both"; default "both").',examples:["incoming"]},kind:{description:"Registered relationship kinds narrowing the graph query (string, comma-separated, or array).",examples:["blocked_by",["parent","related"]]},maxDepth:{description:"Maximum graph traversal depth (non-negative integer).",examples:[2,"4"]},after:{description:"Resume a hierarchy/ordering graph traversal after this previously returned node id.",examples:["pm-x1y2"]},limit:{description:"Maximum returned rows per bounded graph collection (traversal ids, impact rows, analyze/communities samples, redundancy rows, dominator bottlenecks).",examples:[10,"25"]},summary:{description:"When true, return counts-first graph envelopes without row collections."}}};export{PLAN_ACTION_PARAMETER_METADATA,PLAN_ACTION_PARAMETER_PROPERTIES,PLAN_SUBCOMMAND_VALUES,PM_TOOL_ACTION_SCOPED_PARAMETER_METADATA,PM_TOOL_ACTION_SCOPED_PARAMETER_PROPERTIES,PM_TOOL_PARAMETER_METADATA,PM_TOOL_PARAMETER_PROPERTIES};
2167
2
  //# sourceMappingURL=tool-parameter-tables.js.map
2168
- //# debugId=7f278171-3479-5ce6-a925-da6393463200