@unbrained/pm-cli 2026.11.9 → 2026.11.11

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 (613) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/CHANGELOG.md +28 -0
  3. package/dist/cli/commander-usage.js +2 -2
  4. package/dist/cli/error-guidance.js +5 -5
  5. package/dist/cli/help-json-payload.js +1 -1
  6. package/dist/cli/main.js +4 -4
  7. package/dist/cli/public.d.ts +1 -1
  8. package/dist/cli/register-history-maintenance.js +2 -2
  9. package/dist/cli/register-setup.js +1 -1
  10. package/dist/cli/runtime/refusal-credential-redaction.js +2 -0
  11. package/dist/cli-bundle/bundle-manifest.json +1 -1
  12. package/dist/cli-bundle/chunks/{chunk-YV5ALMG2.js → chunk-4RHXGQMK.js} +2 -2
  13. package/dist/cli-bundle/chunks/{chunk-IGT252ES.js → chunk-5N3JMGXU.js} +2 -2
  14. package/dist/cli-bundle/chunks/{chunk-VATZTJE3.js → chunk-DIWTFDU7.js} +2 -2
  15. package/dist/cli-bundle/chunks/{chunk-MSJ7IHMJ.js → chunk-DV7WBAKQ.js} +2 -2
  16. package/dist/cli-bundle/chunks/{chunk-GZVOOHTO.js → chunk-EBAHNZJT.js} +2 -2
  17. package/dist/cli-bundle/chunks/chunk-FM375BHH.js +3 -0
  18. package/dist/cli-bundle/chunks/{chunk-O2M3TNFY.js → chunk-GOLQYO6M.js} +5 -5
  19. package/dist/cli-bundle/chunks/chunk-GZ52WAY2.js +124 -0
  20. package/dist/cli-bundle/chunks/{chunk-6V4PGJBZ.js → chunk-JESMEJTD.js} +2 -2
  21. package/dist/cli-bundle/chunks/{chunk-XKY4LUXN.js → chunk-JLQ7O6UV.js} +2 -2
  22. package/dist/cli-bundle/chunks/{chunk-YK5GAWOT.js → chunk-L3SA3354.js} +2 -2
  23. package/dist/cli-bundle/chunks/{chunk-GDQ2T2OR.js → chunk-NIOOJ3AG.js} +2 -2
  24. package/dist/cli-bundle/chunks/{chunk-GCPP37N6.js → chunk-PZI6CR24.js} +46 -46
  25. package/dist/cli-bundle/chunks/{chunk-Z3QEEOAM.js → chunk-QCTA2UFR.js} +2 -2
  26. package/dist/cli-bundle/chunks/{chunk-EZRLW4R6.js → chunk-SPERPX27.js} +2 -2
  27. package/dist/cli-bundle/chunks/{chunk-ELNWRSGZ.js → chunk-SVVFJPNW.js} +2 -2
  28. package/dist/cli-bundle/chunks/chunk-WEAF3OY4.js +3 -0
  29. package/dist/cli-bundle/chunks/{chunk-JK7O7MFO.js → chunk-WWW5WHHJ.js} +3 -3
  30. package/dist/cli-bundle/chunks/{chunk-5VRJPPUC.js → chunk-XJUYJXHZ.js} +2 -2
  31. package/dist/cli-bundle/chunks/chunk-XN2BRWDD.js +6 -0
  32. package/dist/cli-bundle/chunks/chunk-Z4YEH7VQ.js +2 -0
  33. package/dist/cli-bundle/chunks/{chunk-3BMIAI4P.js → chunk-ZJDYBXMC.js} +2 -2
  34. package/dist/cli-bundle/chunks/{chunk-G6Q4VQSI.js → chunk-ZSL6U53K.js} +2 -2
  35. package/dist/cli-bundle/chunks/{item-revision-Y5CE3EIN.js → item-revision-LNIHK36Q.js} +2 -2
  36. package/dist/cli-bundle/chunks/item-transaction-TMUYPSMR.js +2 -0
  37. package/dist/cli-bundle/chunks/{mutation-admission-TAQN2AKK.js → mutation-admission-WZY22LVH.js} +2 -2
  38. package/dist/cli-bundle/chunks/{register-list-query-XMQYFUFI.js → register-list-query-DYGPLVRL.js} +2 -2
  39. package/dist/cli-bundle/chunks/{register-mutation-OBVCFLDK.js → register-mutation-MP5JCBAJ.js} +2 -2
  40. package/dist/cli-bundle/chunks/{register-operations-CGNFZ6DR.js → register-operations-QEASK3EF.js} +2 -2
  41. package/dist/cli-bundle/chunks/{register-setup-LFB5ERXH.js → register-setup-G66U2WFV.js} +2 -2
  42. package/dist/cli-bundle/chunks/{stage-NQHF6JPC.js → stage-VIDXGF3T.js} +2 -2
  43. package/dist/cli-bundle/focused-chunks/{chunk-LDMBNTOG.js → chunk-2ZS3I5ZP.js} +2 -2
  44. package/dist/cli-bundle/focused-chunks/chunk-33EK522E.js +26 -0
  45. package/dist/cli-bundle/focused-chunks/{chunk-XLSTFUXM.js → chunk-3A6XMQZJ.js} +2 -2
  46. package/dist/cli-bundle/focused-chunks/{chunk-IS5FLEZW.js → chunk-3FN4ON2Z.js} +2 -2
  47. package/dist/cli-bundle/focused-chunks/{chunk-UIKLNSW3.js → chunk-3SH3L3DB.js} +2 -2
  48. package/dist/cli-bundle/focused-chunks/{chunk-ALLOWZSH.js → chunk-6ICHSVEY.js} +2 -2
  49. package/dist/cli-bundle/focused-chunks/chunk-6TJXTKZD.js +44 -0
  50. package/dist/cli-bundle/focused-chunks/{chunk-AH5IST3V.js → chunk-AXPRCCYM.js} +2 -2
  51. package/dist/cli-bundle/focused-chunks/chunk-DW5S67LO.js +2 -0
  52. package/dist/cli-bundle/focused-chunks/{chunk-C3DO4ZGZ.js → chunk-GBW2EAAG.js} +2 -2
  53. package/dist/cli-bundle/focused-chunks/chunk-HIKZYZ26.js +82 -0
  54. package/dist/cli-bundle/focused-chunks/{chunk-4FWMXQN3.js → chunk-JYWVRXLD.js} +2 -2
  55. package/dist/cli-bundle/focused-chunks/chunk-M5FZTPFA.js +2 -0
  56. package/dist/cli-bundle/focused-chunks/{chunk-2SQUWQP3.js → chunk-MK7UQEE5.js} +18 -18
  57. package/dist/cli-bundle/focused-chunks/{chunk-HNFY3XLC.js → chunk-NMU3QFAU.js} +2 -2
  58. package/dist/cli-bundle/focused-chunks/{chunk-QWUWNFQO.js → chunk-NP5C2TQM.js} +2 -2
  59. package/dist/cli-bundle/focused-chunks/{chunk-RNZUORGI.js → chunk-NSOXVVQX.js} +2 -2
  60. package/dist/cli-bundle/focused-chunks/{chunk-J7PWHKZK.js → chunk-NY65XTX7.js} +2 -2
  61. package/dist/cli-bundle/focused-chunks/{chunk-Q45LDP7P.js → chunk-P6KYUJD4.js} +2 -2
  62. package/dist/cli-bundle/focused-chunks/{chunk-LWMPQRJT.js → chunk-UCUESVFW.js} +2 -2
  63. package/dist/cli-bundle/focused-chunks/{chunk-NZQYHPUN.js → chunk-V27M5UQH.js} +2 -2
  64. package/dist/cli-bundle/focused-chunks/chunk-VVGXPF4W.js +26 -0
  65. package/dist/cli-bundle/focused-chunks/{item-revision-M6FOLME2.js → item-revision-B3BIG66B.js} +2 -2
  66. package/dist/cli-bundle/focused-chunks/{item-transaction-H6VA5JGB.js → item-transaction-4JDWOXNB.js} +2 -2
  67. package/dist/cli-bundle/focused-chunks/{mutation-admission-PRTQWQK6.js → mutation-admission-577MXOGD.js} +2 -2
  68. package/dist/cli-bundle/focused-chunks/{stage-7T77PSJD.js → stage-EKYWEU2Y.js} +2 -2
  69. package/dist/cli-bundle/main.js +32 -32
  70. package/dist/cli-bundle/sdk-authoring.js +1 -1
  71. package/dist/cli-bundle/sdk-contracts.js +1 -1
  72. package/dist/cli-bundle/sdk-core.js +1 -1
  73. package/dist/cli-bundle/sdk-governance.js +1 -1
  74. package/dist/cli-bundle/sdk-graph.js +1 -1
  75. package/dist/cli-bundle/sdk-merge.js +57 -57
  76. package/dist/cli-bundle/sdk-query.js +1 -1
  77. package/dist/cli-bundle/sdk-runtime.js +1 -1
  78. package/dist/cli-bundle/sdk-testing.js +1 -1
  79. package/dist/cli-bundle/sdk.js +11 -11
  80. package/dist/core/checkpoint/mutation-checkpoint.d.ts +12 -20
  81. package/dist/core/config/nested-settings.d.ts +14 -45
  82. package/dist/core/config/nested-settings.js +1 -1
  83. package/dist/core/config/positional-value.d.ts +11 -14
  84. package/dist/core/config/positional-value.js +1 -1
  85. package/dist/core/extensions/activation-summary-markdown.d.ts +4 -5
  86. package/dist/core/extensions/activation-summary.d.ts +7 -15
  87. package/dist/core/extensions/capability-usage.d.ts +7 -23
  88. package/dist/core/extensions/command-hook-context.d.ts +4 -7
  89. package/dist/core/extensions/command-metadata-contract.d.ts +2 -2
  90. package/dist/core/extensions/contribution-inventory.d.ts +3 -25
  91. package/dist/core/extensions/extension-capability-aliases.d.ts +7 -10
  92. package/dist/core/extensions/extension-hook-runtime.d.ts +2 -2
  93. package/dist/core/extensions/extension-policy.d.ts +12 -47
  94. package/dist/core/extensions/extension-registries.d.ts +2 -2
  95. package/dist/core/extensions/extension-types.d.ts +332 -545
  96. package/dist/core/extensions/flag-definition-validation.d.ts +11 -13
  97. package/dist/core/extensions/flag-value-types.d.ts +11 -13
  98. package/dist/core/extensions/index.d.ts +15 -20
  99. package/dist/core/extensions/item-field-types.d.ts +5 -5
  100. package/dist/core/extensions/item-fields.d.ts +4 -7
  101. package/dist/core/extensions/loader.d.ts +5 -69
  102. package/dist/core/extensions/manifest-parser.d.ts +3 -3
  103. package/dist/core/extensions/manifest-schema.d.ts +10 -13
  104. package/dist/core/extensions/registration-contracts.d.ts +2 -4
  105. package/dist/core/extensions/registration-validation.d.ts +1 -1
  106. package/dist/core/extensions/registration-values.d.ts +5 -7
  107. package/dist/core/extensions/runtime-registrations.d.ts +6 -6
  108. package/dist/core/extensions/version-compat.d.ts +9 -10
  109. package/dist/core/fs/fs-utils.d.ts +4 -6
  110. package/dist/core/fs/host-environment-errors.d.ts +8 -10
  111. package/dist/core/governance/content-fields.d.ts +10 -14
  112. package/dist/core/governance/issue-codes.d.ts +12 -18
  113. package/dist/core/governance/metadata-coverage.d.ts +24 -34
  114. package/dist/core/history/digest.d.ts +3 -3
  115. package/dist/core/history/event-classification.d.ts +5 -5
  116. package/dist/core/history/event-index.d.ts +14 -35
  117. package/dist/core/history/history-compact-bulk.d.ts +10 -13
  118. package/dist/core/history/history-diff.d.ts +6 -11
  119. package/dist/core/history/history-rewrite.d.ts +24 -40
  120. package/dist/core/history/history-storage-stats.d.ts +9 -17
  121. package/dist/core/history/history-stream-policy.d.ts +8 -11
  122. package/dist/core/history/history.d.ts +10 -44
  123. package/dist/core/history/identity.d.ts +4 -5
  124. package/dist/core/history/operation-contract.d.ts +5 -15
  125. package/dist/core/history/projection.d.ts +10 -14
  126. package/dist/core/history/read.d.ts +6 -7
  127. package/dist/core/history/replay.d.ts +16 -37
  128. package/dist/core/history/workspace-history.d.ts +27 -60
  129. package/dist/core/io/body-file.d.ts +2 -2
  130. package/dist/core/io/bulk-ids-input.d.ts +7 -8
  131. package/dist/core/item/actionability.d.ts +16 -22
  132. package/dist/core/item/dependency-reference.d.ts +2 -2
  133. package/dist/core/item/id.d.ts +5 -9
  134. package/dist/core/item/item-format-version.d.ts +11 -13
  135. package/dist/core/item/item-format.d.ts +11 -59
  136. package/dist/core/item/item-record.d.ts +2 -2
  137. package/dist/core/item/literal-mutation-input.d.ts +2 -2
  138. package/dist/core/item/parent-reference-policy.d.ts +4 -7
  139. package/dist/core/item/parse.d.ts +10 -26
  140. package/dist/core/item/plan-lifecycle.d.ts +3 -3
  141. package/dist/core/item/priority.d.ts +2 -2
  142. package/dist/core/item/sprint-release-format.d.ts +3 -7
  143. package/dist/core/item/status-filter.d.ts +5 -7
  144. package/dist/core/item/status.d.ts +3 -4
  145. package/dist/core/item/type-registry.d.ts +17 -24
  146. package/dist/core/item/type-synonyms.d.ts +1 -1
  147. package/dist/core/lock/lock-owner.d.ts +8 -10
  148. package/dist/core/lock/lock.d.ts +19 -67
  149. package/dist/core/output/output-control.d.ts +5 -6
  150. package/dist/core/output/output.d.ts +10 -19
  151. package/dist/core/output/tabular.d.ts +2 -2
  152. package/dist/core/packages/manifest.d.ts +13 -17
  153. package/dist/core/packages/root.d.ts +3 -3
  154. package/dist/core/policy/workflow-policy-schema.d.ts +2 -310
  155. package/dist/core/policy/workflow-policy-store.d.ts +5 -14
  156. package/dist/core/policy/workflow-policy.d.ts +25 -52
  157. package/dist/core/profile/profile-describe.d.ts +8 -11
  158. package/dist/core/profile/profile-lint.d.ts +11 -13
  159. package/dist/core/profile/profile-plan.d.ts +30 -49
  160. package/dist/core/profile/profile-presets.d.ts +25 -36
  161. package/dist/core/reproducibility/context.d.ts +6 -7
  162. package/dist/core/schema/fields-file.d.ts +14 -21
  163. package/dist/core/schema/item-types-file.d.ts +16 -22
  164. package/dist/core/schema/runtime-field-filters.d.ts +2 -2
  165. package/dist/core/schema/runtime-field-values.d.ts +6 -13
  166. package/dist/core/schema/runtime-schema.d.ts +19 -31
  167. package/dist/core/schema/status-defs-file.d.ts +15 -25
  168. package/dist/core/schema/status-token.d.ts +1 -1
  169. package/dist/core/schema/type-inference.d.ts +6 -8
  170. package/dist/core/schema/type-presets.d.ts +5 -5
  171. package/dist/core/schema/type-workflows.d.ts +11 -16
  172. package/dist/core/search/background-refresh.d.ts +6 -12
  173. package/dist/core/search/bm25.d.ts +11 -19
  174. package/dist/core/search/cache.d.ts +19 -41
  175. package/dist/core/search/corpus.d.ts +16 -19
  176. package/dist/core/search/embedding-batches.d.ts +12 -17
  177. package/dist/core/search/eval-thresholds.d.ts +3 -3
  178. package/dist/core/search/eval.d.ts +16 -34
  179. package/dist/core/search/http-client.d.ts +14 -18
  180. package/dist/core/search/providers.d.ts +22 -39
  181. package/dist/core/search/relevance.d.ts +14 -19
  182. package/dist/core/search/semantic-defaults.d.ts +4 -5
  183. package/dist/core/search/vector-stores.d.ts +35 -57
  184. package/dist/core/search/vectorization-metadata.d.ts +9 -11
  185. package/dist/core/sentry/helpers.d.ts +6 -31
  186. package/dist/core/sentry/instrument.d.ts +6 -59
  187. package/dist/core/sentry/instrument.js +1 -1
  188. package/dist/core/session/session-state.d.ts +12 -32
  189. package/dist/core/shared/agent-session-context.d.ts +10 -17
  190. package/dist/core/shared/author.d.ts +48 -69
  191. package/dist/core/shared/command-line.d.ts +3 -3
  192. package/dist/core/shared/command-types.d.ts +3 -4
  193. package/dist/core/shared/constants.d.ts +14 -32
  194. package/dist/core/shared/error-details.d.ts +5 -18
  195. package/dist/core/shared/errors.d.ts +42 -83
  196. package/dist/core/shared/html-entity-decode.d.ts +1 -1
  197. package/dist/core/shared/item-metadata-contract.d.ts +2 -2
  198. package/dist/core/shared/lazy-module.d.ts +1 -1
  199. package/dist/core/shared/levenshtein.d.ts +1 -1
  200. package/dist/core/shared/numeric-parsers.d.ts +1 -1
  201. package/dist/core/shared/option-alias-visibility.d.ts +2 -2
  202. package/dist/core/shared/output-unicode.d.ts +1 -1
  203. package/dist/core/shared/primitives.d.ts +10 -10
  204. package/dist/core/shared/secret-rules.d.ts +22 -92
  205. package/dist/core/shared/secret-rules.js +4 -2
  206. package/dist/core/shared/serial-queue.d.ts +7 -9
  207. package/dist/core/shared/serialization.d.ts +1 -1
  208. package/dist/core/shared/split-comma-list.d.ts +4 -5
  209. package/dist/core/shared/text-normalization.d.ts +1 -1
  210. package/dist/core/shared/time.d.ts +6 -20
  211. package/dist/core/shared/url-credentials.d.ts +37 -0
  212. package/dist/core/shared/url-credentials.js +2 -0
  213. package/dist/core/store/item-format-migration.d.ts +4 -5
  214. package/dist/core/store/item-metadata-cache.d.ts +22 -27
  215. package/dist/core/store/item-metadata-query-index.d.ts +20 -61
  216. package/dist/core/store/item-metadata-read-work.d.ts +3 -7
  217. package/dist/core/store/item-mutation-precondition.d.ts +19 -35
  218. package/dist/core/store/item-store.d.ts +18 -141
  219. package/dist/core/store/paths.d.ts +5 -10
  220. package/dist/core/store/settings-read-cache.d.ts +7 -9
  221. package/dist/core/store/settings-sections.d.ts +15 -19
  222. package/dist/core/store/settings-validator.d.ts +27 -143
  223. package/dist/core/store/settings-validator.js +1 -1
  224. package/dist/core/store/settings.d.ts +19 -94
  225. package/dist/core/store/sqlite-runtime.d.ts +3 -3
  226. package/dist/core/store/tracker-preflight.d.ts +2 -2
  227. package/dist/core/telemetry/consent.d.ts +2 -2
  228. package/dist/core/telemetry/observability.d.ts +8 -19
  229. package/dist/core/telemetry/policy.d.ts +8 -23
  230. package/dist/core/telemetry/runtime.d.ts +44 -254
  231. package/dist/core/telemetry/runtime.js +2 -2
  232. package/dist/core/test/background-runs.d.ts +35 -79
  233. package/dist/core/test/run-selectors.d.ts +10 -12
  234. package/dist/core/validate/fix-planning.d.ts +19 -28
  235. package/dist/core/validate/missing-by-type.d.ts +3 -4
  236. package/dist/core/validate/missing-link-owners.d.ts +12 -16
  237. package/dist/core/validate/stale-file-classification.d.ts +5 -6
  238. package/dist/mcp/tool-definitions.d.ts +7 -30
  239. package/dist/sdk/actionability.d.ts +1 -1
  240. package/dist/sdk/agent/closed-domain-contracts.d.ts +4 -5
  241. package/dist/sdk/agent/command-recovery.d.ts +9 -13
  242. package/dist/sdk/agent/command-suggestions.d.ts +2 -2
  243. package/dist/sdk/agent/create-option-policy.d.ts +2 -2
  244. package/dist/sdk/agent/identity-config.d.ts +13 -18
  245. package/dist/sdk/agent/item-addressing.d.ts +4 -5
  246. package/dist/sdk/agent/linked-resource-recovery.d.ts +3 -4
  247. package/dist/sdk/agent/refusal-closure-census.d.ts +13 -25
  248. package/dist/sdk/agent/refusal-closure.d.ts +8 -11
  249. package/dist/sdk/agent/refusal-corpus-contracts.d.ts +15 -21
  250. package/dist/sdk/agent/refusal-reachability.d.ts +38 -52
  251. package/dist/sdk/agent/subcommand-recovery.d.ts +7 -15
  252. package/dist/sdk/agent/task-transcript-contracts.d.ts +12 -15
  253. package/dist/sdk/agent/tracker-preflight-contracts.d.ts +13 -17
  254. package/dist/sdk/agent-capability-contracts.d.ts +19 -32
  255. package/dist/sdk/agent-session-context.d.ts +1 -1
  256. package/dist/sdk/annotations.d.ts +32 -68
  257. package/dist/sdk/author-attribution.d.ts +22 -33
  258. package/dist/sdk/authoring.d.ts +1 -19
  259. package/dist/sdk/cli-bootstrap.d.ts +22 -59
  260. package/dist/sdk/cli-contracts/agent-output-contracts.d.ts +31 -57
  261. package/dist/sdk/cli-contracts/command-aliases.d.ts +7 -8
  262. package/dist/sdk/cli-contracts/command-exit-contracts.d.ts +19 -65
  263. package/dist/sdk/cli-contracts/commander-mutation-options.d.ts +2 -2
  264. package/dist/sdk/cli-contracts/commander-types.d.ts +6 -11
  265. package/dist/sdk/cli-contracts/completeness.d.ts +11 -15
  266. package/dist/sdk/cli-contracts/enum-contracts.d.ts +25 -37
  267. package/dist/sdk/cli-contracts/flag-contracts.d.ts +16 -20
  268. package/dist/sdk/cli-contracts/flag-lexicon-contracts.d.ts +14 -19
  269. package/dist/sdk/cli-contracts/grammar-contracts.d.ts +29 -47
  270. package/dist/sdk/cli-contracts/runtime-contracts.d.ts +44 -265
  271. package/dist/sdk/cli-contracts/tool-option-contracts.d.ts +11 -564
  272. package/dist/sdk/cli-contracts/tool-schema.d.ts +18 -51
  273. package/dist/sdk/cli-contracts/typed-action-inputs.d.ts +18 -37
  274. package/dist/sdk/cli-contracts.d.ts +1 -16
  275. package/dist/sdk/cli-program.d.ts +2 -2
  276. package/dist/sdk/command-line.d.ts +3 -4
  277. package/dist/sdk/command-line.js +1 -1
  278. package/dist/sdk/comments.d.ts +6 -10
  279. package/dist/sdk/compile-cache.d.ts +4 -5
  280. package/dist/sdk/completion/bash.d.ts +2 -2
  281. package/dist/sdk/completion/fish.d.ts +2 -2
  282. package/dist/sdk/completion/shared.d.ts +10 -77
  283. package/dist/sdk/completion/shared.js +1 -1
  284. package/dist/sdk/completion/zsh.d.ts +2 -2
  285. package/dist/sdk/completion.d.ts +2 -6
  286. package/dist/sdk/compose.d.ts +49 -74
  287. package/dist/sdk/config.d.ts +18 -94
  288. package/dist/sdk/config.js +1 -1
  289. package/dist/sdk/context/recency.d.ts +2 -2
  290. package/dist/sdk/context/semantic-session-attribution.d.ts +6 -25
  291. package/dist/sdk/context/usage-ledger.d.ts +9 -21
  292. package/dist/sdk/context-intent-contracts.d.ts +24 -35
  293. package/dist/sdk/context-intent-runtime.d.ts +7 -9
  294. package/dist/sdk/context-packing.d.ts +16 -34
  295. package/dist/sdk/context-relevance.d.ts +58 -93
  296. package/dist/sdk/context-signal-store.d.ts +29 -60
  297. package/dist/sdk/context-usage.d.ts +22 -69
  298. package/dist/sdk/contracts.d.ts +1 -24
  299. package/dist/sdk/core-governance.d.ts +1 -5
  300. package/dist/sdk/core.d.ts +1 -27
  301. package/dist/sdk/corpus-shape.d.ts +16 -28
  302. package/dist/sdk/define.d.ts +10 -14
  303. package/dist/sdk/dependencies.d.ts +32 -50
  304. package/dist/sdk/dependency-provenance.d.ts +19 -23
  305. package/dist/sdk/docs.d.ts +6 -10
  306. package/dist/sdk/duplicates.d.ts +8 -15
  307. package/dist/sdk/environment/agent-environment.d.ts +60 -101
  308. package/dist/sdk/environment/host-environment-errors.d.ts +1 -1
  309. package/dist/sdk/environment/project-runtime-compatibility.d.ts +15 -29
  310. package/dist/sdk/environment/source-context.d.ts +6 -7
  311. package/dist/sdk/environment/tracker-preflight.d.ts +1 -1
  312. package/dist/sdk/error-code-catalog.d.ts +9 -26
  313. package/dist/sdk/error-runtime.d.ts +6 -8
  314. package/dist/sdk/errors.d.ts +10 -17
  315. package/dist/sdk/eval.d.ts +11 -21
  316. package/dist/sdk/extension/command-options.d.ts +14 -26
  317. package/dist/sdk/extension/describe.d.ts +14 -19
  318. package/dist/sdk/extension/doctor.d.ts +8 -48
  319. package/dist/sdk/extension/install-plan.d.ts +12 -26
  320. package/dist/sdk/extension/install-runtime.d.ts +10 -11
  321. package/dist/sdk/extension/install-sources.d.ts +22 -104
  322. package/dist/sdk/extension/managed-state.d.ts +13 -18
  323. package/dist/sdk/extension/migrations.d.ts +22 -37
  324. package/dist/sdk/extension/output-ownership.d.ts +3 -30
  325. package/dist/sdk/extension/shared.d.ts +9 -15
  326. package/dist/sdk/extension/source-resolution.d.ts +13 -18
  327. package/dist/sdk/extension/static-inventory.d.ts +17 -21
  328. package/dist/sdk/extension/update-check.d.ts +7 -11
  329. package/dist/sdk/extension-command-context.d.ts +2 -3
  330. package/dist/sdk/extension-contracts.d.ts +11 -14
  331. package/dist/sdk/extension.d.ts +31 -192
  332. package/dist/sdk/files.d.ts +27 -68
  333. package/dist/sdk/flag-invocation-contracts.d.ts +13 -17
  334. package/dist/sdk/generated/generated-error-code-catalog-part-1.js +1 -1
  335. package/dist/sdk/generated-error-code-catalog.d.ts +1 -1
  336. package/dist/sdk/governance/artifact-ledgers.d.ts +9 -16
  337. package/dist/sdk/governance/assurance-action-contracts.d.ts +1 -1
  338. package/dist/sdk/governance/assurance-action.d.ts +13 -45
  339. package/dist/sdk/governance/assurance-mutation-error.d.ts +12 -17
  340. package/dist/sdk/governance/assurance-presets.d.ts +10 -21
  341. package/dist/sdk/governance/assurance-runtime.d.ts +5 -6
  342. package/dist/sdk/governance/assurance.d.ts +97 -154
  343. package/dist/sdk/governance/boundary-fixtures.d.ts +17 -23
  344. package/dist/sdk/governance/closure-timestamps.d.ts +5 -15
  345. package/dist/sdk/governance/coverage-assurance.d.ts +5 -6
  346. package/dist/sdk/governance/defect-recurrence-coverage.d.ts +13 -23
  347. package/dist/sdk/governance/defect-recurrence-graph.d.ts +9 -13
  348. package/dist/sdk/governance/defect-recurrence.d.ts +43 -67
  349. package/dist/sdk/governance/extension-host-version.d.ts +8 -10
  350. package/dist/sdk/governance/gc.d.ts +12 -20
  351. package/dist/sdk/governance/health/projection.d.ts +8 -23
  352. package/dist/sdk/governance/health.d.ts +23 -167
  353. package/dist/sdk/governance/hierarchy-validation.d.ts +2 -18
  354. package/dist/sdk/governance/linked-file-report.d.ts +6 -10
  355. package/dist/sdk/governance/merge-receipt-history.d.ts +12 -16
  356. package/dist/sdk/governance/provenance-health.d.ts +17 -23
  357. package/dist/sdk/governance/reindex.d.ts +13 -116
  358. package/dist/sdk/governance/reliability.d.ts +13 -17
  359. package/dist/sdk/governance/stale-work.d.ts +8 -11
  360. package/dist/sdk/governance/status-role-diagnostics.d.ts +4 -6
  361. package/dist/sdk/governance/storage-integrity.d.ts +16 -23
  362. package/dist/sdk/governance/upgrade.d.ts +17 -57
  363. package/dist/sdk/governance/validate-item-reader.d.ts +3 -11
  364. package/dist/sdk/governance/validate-normalization.d.ts +2 -2
  365. package/dist/sdk/governance/validate.d.ts +29 -175
  366. package/dist/sdk/governance/workflow-completeness.d.ts +5 -17
  367. package/dist/sdk/governance/workflow-policy.d.ts +8 -16
  368. package/dist/sdk/governance/workspace-position.d.ts +12 -43
  369. package/dist/sdk/governance.d.ts +1 -39
  370. package/dist/sdk/graph/adapter.d.ts +23 -41
  371. package/dist/sdk/graph/analytics.d.ts +20 -31
  372. package/dist/sdk/graph/assembly.d.ts +24 -35
  373. package/dist/sdk/graph/cache.d.ts +13 -25
  374. package/dist/sdk/graph/cardinality-integrity.d.ts +4 -6
  375. package/dist/sdk/graph/centrality.d.ts +14 -20
  376. package/dist/sdk/graph/conformance.d.ts +12 -19
  377. package/dist/sdk/graph/deadline-scheduling.d.ts +14 -20
  378. package/dist/sdk/graph/durable-cache.d.ts +11 -14
  379. package/dist/sdk/graph/governance-contracts.d.ts +2 -2
  380. package/dist/sdk/graph/governance.d.ts +22 -36
  381. package/dist/sdk/graph/hierarchy-integrity.d.ts +18 -26
  382. package/dist/sdk/graph/index.d.ts +1 -17
  383. package/dist/sdk/graph/lifecycle-coverage.d.ts +8 -12
  384. package/dist/sdk/graph/mutation-advisory.d.ts +5 -16
  385. package/dist/sdk/graph/query-contracts.d.ts +1 -2
  386. package/dist/sdk/graph/remediation.d.ts +11 -18
  387. package/dist/sdk/graph/run.d.ts +73 -115
  388. package/dist/sdk/graph/scheduling.d.ts +8 -15
  389. package/dist/sdk/graph/traversal.d.ts +9 -15
  390. package/dist/sdk/graph/workspace-relationship-kind-registry.d.ts +2 -2
  391. package/dist/sdk/graph.d.ts +1 -12
  392. package/dist/sdk/guide-topics.d.ts +7 -10
  393. package/dist/sdk/guide.d.ts +21 -43
  394. package/dist/sdk/history/attestation-command.d.ts +7 -10
  395. package/dist/sdk/history/attestation-contract.d.ts +19 -34
  396. package/dist/sdk/history/attestation.d.ts +2 -3
  397. package/dist/sdk/history/maintenance.d.ts +17 -27
  398. package/dist/sdk/history/salvage.d.ts +5 -22
  399. package/dist/sdk/history/subject.d.ts +5 -11
  400. package/dist/sdk/history-analytics.d.ts +28 -59
  401. package/dist/sdk/history-compact.d.ts +25 -66
  402. package/dist/sdk/history-provenance.d.ts +16 -33
  403. package/dist/sdk/history-read.d.ts +9 -16
  404. package/dist/sdk/history-redact.d.ts +19 -74
  405. package/dist/sdk/history-redact.js +1 -1
  406. package/dist/sdk/history-repair.d.ts +26 -71
  407. package/dist/sdk/improvement-ledger-validation.d.ts +2 -2
  408. package/dist/sdk/improvement-ledger.d.ts +20 -39
  409. package/dist/sdk/index.d.ts +1 -268
  410. package/dist/sdk/index.js +1 -1
  411. package/dist/sdk/init-agent-guidance.d.ts +13 -68
  412. package/dist/sdk/init.d.ts +24 -94
  413. package/dist/sdk/invocation-author.d.ts +1 -1
  414. package/dist/sdk/item-children.d.ts +10 -13
  415. package/dist/sdk/item-metadata-index.d.ts +1 -2
  416. package/dist/sdk/item-schedule.d.ts +8 -9
  417. package/dist/sdk/item-transaction.d.ts +46 -90
  418. package/dist/sdk/learnings.d.ts +6 -10
  419. package/dist/sdk/lifecycle/append.d.ts +7 -9
  420. package/dist/sdk/lifecycle/claim.d.ts +26 -42
  421. package/dist/sdk/lifecycle/cli-input.d.ts +1 -1
  422. package/dist/sdk/lifecycle/close-many.d.ts +14 -65
  423. package/dist/sdk/lifecycle/close.d.ts +10 -26
  424. package/dist/sdk/lifecycle/copy.d.ts +6 -10
  425. package/dist/sdk/lifecycle/create.d.ts +15 -83
  426. package/dist/sdk/lifecycle/delete.d.ts +7 -9
  427. package/dist/sdk/lifecycle/focus.d.ts +9 -11
  428. package/dist/sdk/lifecycle/item-revision.d.ts +25 -45
  429. package/dist/sdk/lifecycle/item-revision.js +1 -1
  430. package/dist/sdk/lifecycle/lifecycle-transitions.d.ts +4 -5
  431. package/dist/sdk/lifecycle/mutation-command-options.d.ts +6 -9
  432. package/dist/sdk/lifecycle/plan-mutation-receipt.d.ts +5 -13
  433. package/dist/sdk/lifecycle/plan.d.ts +34 -74
  434. package/dist/sdk/lifecycle/reopen.d.ts +8 -14
  435. package/dist/sdk/lifecycle/restore.d.ts +9 -38
  436. package/dist/sdk/lifecycle/shared-unset-fields.d.ts +23 -614
  437. package/dist/sdk/lifecycle/start-blockers.d.ts +7 -27
  438. package/dist/sdk/lifecycle/structured-mutation-plan.d.ts +8 -16
  439. package/dist/sdk/lifecycle/task-composition.d.ts +6 -14
  440. package/dist/sdk/lifecycle/update-many.d.ts +15 -65
  441. package/dist/sdk/lifecycle/update.d.ts +21 -104
  442. package/dist/sdk/lifecycle/workflow-transition.d.ts +2 -11
  443. package/dist/sdk/lifecycle-completion.d.ts +11 -14
  444. package/dist/sdk/lifecycle-policy.d.ts +23 -32
  445. package/dist/sdk/linked-artifacts.d.ts +31 -41
  446. package/dist/sdk/mcp/apps.d.ts +12 -27
  447. package/dist/sdk/mcp/authorization.d.ts +30 -63
  448. package/dist/sdk/mcp/discovery.d.ts +23 -52
  449. package/dist/sdk/mcp/executable.d.ts +3 -10
  450. package/dist/sdk/mcp/interactions.d.ts +25 -47
  451. package/dist/sdk/mcp/protocol.d.ts +32 -64
  452. package/dist/sdk/mcp/skills.d.ts +21 -71
  453. package/dist/sdk/mcp/subscriptions.d.ts +14 -28
  454. package/dist/sdk/mcp/tasks.d.ts +21 -55
  455. package/dist/sdk/mcp/transport.d.ts +7 -15
  456. package/dist/sdk/merge/driver.d.ts +13 -37
  457. package/dist/sdk/merge/index.d.ts +1 -6
  458. package/dist/sdk/merge/install.d.ts +27 -55
  459. package/dist/sdk/merge/receipt-operation.d.ts +5 -6
  460. package/dist/sdk/merge/receipt-schema.d.ts +6 -9
  461. package/dist/sdk/merge/receipts.d.ts +29 -79
  462. package/dist/sdk/merge/reconcile.d.ts +9 -18
  463. package/dist/sdk/merge/three-way.d.ts +21 -30
  464. package/dist/sdk/merge.d.ts +1 -5
  465. package/dist/sdk/mutation-events.d.ts +21 -53
  466. package/dist/sdk/mutation-guard.d.ts +15 -135
  467. package/dist/sdk/notes.d.ts +6 -10
  468. package/dist/sdk/output/fit-envelope.d.ts +21 -28
  469. package/dist/sdk/output/list-envelope.d.ts +1 -1
  470. package/dist/sdk/output/table-rows.d.ts +8 -12
  471. package/dist/sdk/output-contracts.d.ts +11 -14
  472. package/dist/sdk/output-projection.d.ts +18 -130
  473. package/dist/sdk/output-token-accounting.d.ts +8 -15
  474. package/dist/sdk/output.d.ts +10 -15
  475. package/dist/sdk/ownership-source.d.ts +4 -5
  476. package/dist/sdk/package-import-adapters.d.ts +27 -37
  477. package/dist/sdk/package-migrations.d.ts +2 -2
  478. package/dist/sdk/package-runtime-options.d.ts +3 -3
  479. package/dist/sdk/pagination.d.ts +12 -24
  480. package/dist/sdk/profile.d.ts +25 -42
  481. package/dist/sdk/provenance.d.ts +21 -32
  482. package/dist/sdk/public-surface.json +1 -1
  483. package/dist/sdk/query/activity.d.ts +24 -77
  484. package/dist/sdk/query/aggregate.d.ts +20 -95
  485. package/dist/sdk/query/calendar.d.ts +26 -74
  486. package/dist/sdk/query/complete-list.d.ts +19 -35
  487. package/dist/sdk/query/context.d.ts +69 -240
  488. package/dist/sdk/query/declared-blockers.d.ts +2 -9
  489. package/dist/sdk/query/duplicate-candidates.d.ts +3 -5
  490. package/dist/sdk/query/get.d.ts +13 -55
  491. package/dist/sdk/query/history.d.ts +18 -29
  492. package/dist/sdk/query/item-filter-options.d.ts +7 -12
  493. package/dist/sdk/query/list-filter-shared.d.ts +4 -8
  494. package/dist/sdk/query/list.d.ts +44 -168
  495. package/dist/sdk/query/multi-value-filters.d.ts +7 -9
  496. package/dist/sdk/query/next-ranking-policy.d.ts +4 -10
  497. package/dist/sdk/query/next-ready-budget.d.ts +4 -5
  498. package/dist/sdk/query/next.d.ts +27 -86
  499. package/dist/sdk/query/parsers.d.ts +4 -6
  500. package/dist/sdk/query/projection-contracts.d.ts +12 -21
  501. package/dist/sdk/query/search/corpus.d.ts +5 -20
  502. package/dist/sdk/query/search/filters.d.ts +5 -17
  503. package/dist/sdk/query/search/input.d.ts +4 -9
  504. package/dist/sdk/query/search/lexical.d.ts +5 -9
  505. package/dist/sdk/query/search/response.d.ts +5 -22
  506. package/dist/sdk/query/search/semantic.d.ts +24 -170
  507. package/dist/sdk/query/search/types.d.ts +19 -73
  508. package/dist/sdk/query/search-contracts.d.ts +24 -34
  509. package/dist/sdk/query/search-pagination.d.ts +5 -24
  510. package/dist/sdk/query/search-rendering.d.ts +8 -32
  511. package/dist/sdk/query/search.d.ts +3 -63
  512. package/dist/sdk/query/workspace-contracts.d.ts +2 -2
  513. package/dist/sdk/query.d.ts +1 -43
  514. package/dist/sdk/read-output/continuation.d.ts +5 -6
  515. package/dist/sdk/read-output/options.d.ts +3 -8
  516. package/dist/sdk/read-output/session-result.d.ts +2 -33
  517. package/dist/sdk/read-output/tail-retention.d.ts +6 -8
  518. package/dist/sdk/read-output-budget.d.ts +14 -16
  519. package/dist/sdk/read-output-contracts.d.ts +59 -103
  520. package/dist/sdk/read-output-rows.d.ts +5 -9
  521. package/dist/sdk/read-output-session.d.ts +11 -14
  522. package/dist/sdk/relationship-analytics.d.ts +17 -37
  523. package/dist/sdk/relationship-context.d.ts +15 -33
  524. package/dist/sdk/relationship-history.d.ts +29 -50
  525. package/dist/sdk/relationship-kinds/contract.d.ts +11 -12
  526. package/dist/sdk/relationship-migration.d.ts +6 -10
  527. package/dist/sdk/relationships.d.ts +22 -34
  528. package/dist/sdk/reproducibility/process.d.ts +7 -11
  529. package/dist/sdk/runtime/context.d.ts +6 -22
  530. package/dist/sdk/runtime/schema-preview.d.ts +1 -1
  531. package/dist/sdk/runtime-input.d.ts +9 -20
  532. package/dist/sdk/runtime-primitives.d.ts +3 -82
  533. package/dist/sdk/runtime-public-contracts.d.ts +30 -50
  534. package/dist/sdk/runtime.d.ts +77 -302
  535. package/dist/sdk/scheduling-shortcuts.d.ts +8 -12
  536. package/dist/sdk/schema-migration.d.ts +18 -80
  537. package/dist/sdk/schema.d.ts +89 -192
  538. package/dist/sdk/search-refresh-worker.d.ts +1 -1
  539. package/dist/sdk/similarity-scoring.d.ts +6 -8
  540. package/dist/sdk/similarity.d.ts +33 -64
  541. package/dist/sdk/start-task-status.d.ts +2 -2
  542. package/dist/sdk/stats.d.ts +13 -48
  543. package/dist/sdk/structured-mutations.d.ts +18 -26
  544. package/dist/sdk/telemetry-flush.d.ts +1 -1
  545. package/dist/sdk/telemetry.d.ts +14 -20
  546. package/dist/sdk/templates.d.ts +14 -35
  547. package/dist/sdk/test/batch.d.ts +10 -25
  548. package/dist/sdk/test/execution.d.ts +44 -209
  549. package/dist/sdk/test/json-path.d.ts +2 -5
  550. package/dist/sdk/test/linked-command-detection.d.ts +10 -25
  551. package/dist/sdk/test/measurements.d.ts +10 -13
  552. package/dist/sdk/test/parsers.d.ts +16 -20
  553. package/dist/sdk/test/prerequisites.d.ts +2 -3
  554. package/dist/sdk/test/runs.d.ts +19 -52
  555. package/dist/sdk/test/trust.d.ts +8 -12
  556. package/dist/sdk/test/update.d.ts +9 -25
  557. package/dist/sdk/testing.d.ts +97 -206
  558. package/dist/sdk/traceability/source-traceability.d.ts +25 -56
  559. package/dist/sdk/tracker-root-discovery.d.ts +1 -1
  560. package/dist/sdk/workspace-contracts-cache.d.ts +2 -2
  561. package/dist/sdk/workspace-contracts.d.ts +8 -14
  562. package/dist/sdk/workspace-memory.d.ts +24 -42
  563. package/dist/sdk/workspace-recipe.d.ts +10 -14
  564. package/dist/sdk/workspace-snapshot.d.ts +26 -53
  565. package/dist/sdk/workspace-transaction-gc.d.ts +12 -16
  566. package/dist/sdk/workspace-transaction.d.ts +26 -40
  567. package/dist/sdk/workspace.d.ts +8 -10
  568. package/dist/types/index.d.ts +1 -1
  569. package/dist/types.d.ts +210 -353
  570. package/docs/CODEX_PLUGIN.md +2 -1
  571. package/docs/COMMANDS.md +8 -0
  572. package/docs/CONFIGURATION.md +33 -0
  573. package/docs/DIAGNOSTIC_OUTPUT_CONTRACTS.md +28 -9
  574. package/docs/MUTATION_INTEGRITY.md +65 -0
  575. package/docs/README.md +2 -2
  576. package/docs/RELEASING.md +25 -0
  577. package/docs/SDK.md +33 -2
  578. package/docs/TESTING.md +11 -0
  579. package/marketplace.json +1 -1
  580. package/package.json +2 -1
  581. package/packages/pm-beads/package.json +1 -1
  582. package/packages/pm-calendar/package.json +1 -1
  583. package/packages/pm-command-kit/package.json +1 -1
  584. package/packages/pm-digital-twin/package.json +1 -1
  585. package/packages/pm-governance-audit/package.json +1 -1
  586. package/packages/pm-guide-shell/package.json +1 -1
  587. package/packages/pm-kanban/package.json +1 -1
  588. package/packages/pm-lifecycle-hooks/package.json +1 -1
  589. package/packages/pm-linked-test-adapters/package.json +1 -1
  590. package/packages/pm-search-advanced/package.json +1 -1
  591. package/packages/pm-templates/package.json +1 -1
  592. package/packages/pm-todos/package.json +1 -1
  593. package/packages/pm-vcs/package.json +1 -1
  594. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
  595. package/plugins/pm-claude/package.json +1 -1
  596. package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
  597. package/plugins/pm-codex/package.json +1 -1
  598. package/plugins/pm-codex/plugin.json +1 -1
  599. package/runtime-dependencies.json +1 -1
  600. package/scripts/finalize-build.mjs +41 -4
  601. package/dist/cli-bundle/chunks/chunk-ASJZMYKM.js +0 -122
  602. package/dist/cli-bundle/chunks/chunk-BLUCQ4T4.js +0 -2
  603. package/dist/cli-bundle/chunks/chunk-JYQXIC6C.js +0 -3
  604. package/dist/cli-bundle/chunks/chunk-LVDFPGD7.js +0 -3
  605. package/dist/cli-bundle/chunks/chunk-UFIM5ZC5.js +0 -6
  606. package/dist/cli-bundle/chunks/item-transaction-XBIN4KYM.js +0 -2
  607. package/dist/cli-bundle/focused-chunks/chunk-CUGJ2DY2.js +0 -24
  608. package/dist/cli-bundle/focused-chunks/chunk-HLQOGAWG.js +0 -26
  609. package/dist/cli-bundle/focused-chunks/chunk-IB6TCE7N.js +0 -2
  610. package/dist/cli-bundle/focused-chunks/chunk-JU62TKJP.js +0 -82
  611. package/dist/cli-bundle/focused-chunks/chunk-MYBKRV5R.js +0 -2
  612. package/dist/cli-bundle/focused-chunks/chunk-NUFO3OR6.js +0 -44
  613. package/docs/CHATGPT_CODEX_PLUGIN_IMPLEMENTATION.md +0 -776
@@ -1,13 +1,13 @@
1
1
  /** Restricts background test run kind values accepted by command, SDK, and storage contracts. */
2
- export type BackgroundTestRunKind = "test" | "test-all";
2
+ export type BackgroundTestRunKind="test"|"test-all";
3
3
  /** Restricts background test run status values accepted by command, SDK, and storage contracts. */
4
- export type BackgroundTestRunStatus = "queued" | "running" | "passed" | "failed" | "stopped" | "canceled";
4
+ export type BackgroundTestRunStatus="queued"|"running"|"passed"|"failed"|"stopped"|"canceled";
5
5
  /** Restricts background log stream values accepted by command, SDK, and storage contracts. */
6
- export type BackgroundLogStream = "stdout" | "stderr" | "both";
6
+ export type BackgroundLogStream="stdout"|"stderr"|"both";
7
7
  /** Documents the background run progress payload exchanged by command, SDK, and package integrations. */
8
- export interface BackgroundRunProgress {
8
+ export interface BackgroundRunProgress{
9
9
  /** Value that configures or reports phase for this contract. */
10
- phase:"queued" | "running" | "stopping" | "finished";
10
+ phase:"queued"|"running"|"stopping"|"finished";
11
11
  /** Human-readable explanation suitable for logs and agent-facing output. */
12
12
  message?:string;
13
13
  /** Value that configures or reports item index for this contract. */
@@ -25,10 +25,9 @@ current_command?:string;
25
25
  /** Elapsed time in milliseconds for elapsed. */
26
26
  elapsed_ms?:number;
27
27
  /** ISO 8601 timestamp recording when heartbeat occurred. */
28
- heartbeat_at?:string;
29
- }
28
+ heartbeat_at?:string;}
30
29
  /** Documents the background run resource snapshot payload exchanged by command, SDK, and package integrations. */
31
- export interface BackgroundRunResourceSnapshot {
30
+ export interface BackgroundRunResourceSnapshot{
32
31
  /** ISO 8601 timestamp recording when recorded occurred. */
33
32
  recorded_at:string;
34
33
  /** Value that configures or reports rss bytes for this contract. */
@@ -38,10 +37,9 @@ cpu_user_seconds?:number;
38
37
  /** Value that configures or reports cpu system seconds for this contract. */
39
38
  cpu_system_seconds?:number;
40
39
  /** Value that configures or reports uptime seconds for this contract. */
41
- uptime_seconds?:number;
42
- }
40
+ uptime_seconds?:number;}
43
41
  /** Documents the background run summary payload exchanged by command, SDK, and package integrations. */
44
- export interface BackgroundRunSummary {
42
+ export interface BackgroundRunSummary{
45
43
  /** Value that configures or reports items for this contract. */
46
44
  items?:number;
47
45
  /** Value that configures or reports linked tests for this contract. */
@@ -53,10 +51,9 @@ failed:number;
53
51
  /** Value that configures or reports skipped for this contract. */
54
52
  skipped:number;
55
53
  /** Value that configures or reports fail on skipped triggered for this contract. */
56
- fail_on_skipped_triggered?:boolean;
57
- }
54
+ fail_on_skipped_triggered?:boolean;}
58
55
  /** Documents the background test run record payload exchanged by command, SDK, and package integrations. */
59
- export interface BackgroundTestRunRecord {
56
+ export interface BackgroundTestRunRecord{
60
57
  /** Stable identifier used to reference this record across commands and storage. */
61
58
  id:string;
62
59
  /** Value that configures or reports kind for this contract. */
@@ -118,10 +115,9 @@ stop_requested_at?:string;
118
115
  /** Value that configures or reports duplicate of for this contract. */
119
116
  duplicate_of?:string;
120
117
  /** Value that configures or reports error for this contract. */
121
- error?:string;
122
- }
118
+ error?:string;}
123
119
  /** Documents the start background test run options payload exchanged by command, SDK, and package integrations. */
124
- export interface StartBackgroundTestRunOptions {
120
+ export interface StartBackgroundTestRunOptions{
125
121
  /** Value that configures or reports pm root for this contract. */
126
122
  pmRoot:string;
127
123
  /** Value that configures or reports global pm root for this contract. */
@@ -141,44 +137,39 @@ resumedFrom?:string;
141
137
  /** Value that configures or reports resumed by for this contract. */
142
138
  resumedBy?:string;
143
139
  /** Value that configures or reports attempt for this contract. */
144
- attempt?:number;
145
- }
140
+ attempt?:number;}
146
141
  /** Documents the start background test run result payload exchanged by command, SDK, and package integrations. */
147
- export interface StartBackgroundTestRunResult {
142
+ export interface StartBackgroundTestRunResult{
148
143
  /** Value that configures or reports started for this contract. */
149
144
  started:boolean;
150
145
  /** Value that configures or reports run for this contract. */
151
146
  run:BackgroundTestRunRecord;
152
147
  /** Value that configures or reports duplicate of for this contract. */
153
- duplicate_of?:string;
154
- }
148
+ duplicate_of?:string;}
155
149
  /** Documents the spawn background test run worker options payload exchanged by command, SDK, and package integrations. */
156
- export interface SpawnBackgroundTestRunWorkerOptions {
150
+ export interface SpawnBackgroundTestRunWorkerOptions{
157
151
  /** Value that configures or reports pm root for this contract. */
158
152
  pmRoot:string;
159
153
  /** Executes the id operation through the package runtime. */
160
154
  runId:string;
161
155
  /** Value that configures or reports no extensions for this contract. */
162
- noExtensions?:boolean;
163
- }
156
+ noExtensions?:boolean;}
164
157
  /** Documents the stop background test run result payload exchanged by command, SDK, and package integrations. */
165
- export interface StopBackgroundTestRunResult {
158
+ export interface StopBackgroundTestRunResult{
166
159
  /** Value that configures or reports run for this contract. */
167
160
  run:BackgroundTestRunRecord;
168
161
  /** Value that configures or reports signal sent for this contract. */
169
- signal_sent:"SIGTERM" | "SIGKILL" | "none";
170
- }
162
+ signal_sent:"SIGTERM"|"SIGKILL"|"none";}
171
163
  /** Documents the list background test run options payload exchanged by command, SDK, and package integrations. */
172
- export interface ListBackgroundTestRunOptions {
164
+ export interface ListBackgroundTestRunOptions{
173
165
  /** Lifecycle state reported for status. */
174
166
  status?:BackgroundTestRunStatus;
175
167
  /** Value that configures or reports limit for this contract. */
176
- limit?:number;
177
- }
168
+ limit?:number;}
178
169
  /** Documents the background run health payload exchanged by command, SDK, and package integrations. */
179
- export interface BackgroundRunHealth {
170
+ export interface BackgroundRunHealth{
180
171
  /** Value that configures or reports state for this contract. */
181
- state:"healthy" | "stale" | "inactive";
172
+ state:"healthy"|"stale"|"inactive";
182
173
  /** ISO 8601 timestamp recording when last heartbeat occurred. */
183
174
  last_heartbeat_at?:string;
184
175
  /** Elapsed time in milliseconds for heartbeat lag. */
@@ -186,17 +177,15 @@ heartbeat_lag_ms?:number;
186
177
  /** Value that configures or reports worker alive for this contract. */
187
178
  worker_alive:boolean;
188
179
  /** Value that configures or reports child alive for this contract. */
189
- child_alive:boolean;
190
- }
180
+ child_alive:boolean;}
191
181
  /** Documents the background run status view payload exchanged by command, SDK, and package integrations. */
192
- export interface BackgroundRunStatusView {
182
+ export interface BackgroundRunStatusView{
193
183
  /** Value that configures or reports run for this contract. */
194
184
  run:BackgroundTestRunRecord;
195
185
  /** Value that configures or reports health for this contract. */
196
- health:BackgroundRunHealth;
197
- }
186
+ health:BackgroundRunHealth;}
198
187
  /** Documents the background run logs result payload exchanged by command, SDK, and package integrations. */
199
- export interface BackgroundRunLogsResult {
188
+ export interface BackgroundRunLogsResult{
200
189
  /** Value that configures or reports run for this contract. */
201
190
  run:BackgroundTestRunRecord;
202
191
  /** Value that configures or reports stream for this contract. */
@@ -206,34 +195,14 @@ tail:number;
206
195
  /** Value that configures or reports stdout for this contract. */
207
196
  stdout:string[];
208
197
  /** Value that configures or reports stderr for this contract. */
209
- stderr:string[];
210
- }
211
- interface WorkerEvaluationResult {
212
- summary:BackgroundRunSummary;
213
- parsedResult:unknown | null;
214
- }
198
+ stderr:string[];}
199
+ interface WorkerEvaluationResult{summary:BackgroundRunSummary;parsedResult:unknown|null;}
215
200
  /** Implements build background test run fingerprint for the public runtime surface of this module. */
216
- export declare function buildBackgroundTestRunFingerprint(kind:BackgroundTestRunKind,commandArgs:string[],pmRoot:string):string;
217
- declare function isPidRunning(pid:number | undefined):boolean;
201
+ export declare function buildBackgroundTestRunFingerprint(kind:BackgroundTestRunKind,commandArgs:string[],pmRoot:string):string;declare function isPidRunning(pid:number|undefined):boolean;
218
202
  /** Implements read background test run record for the public runtime surface of this module. */
219
- export declare function readBackgroundTestRunRecord(pmRoot:string,runId:string):Promise<BackgroundTestRunRecord | null>;
220
- declare function parseLinuxRssStatus(raw:string):number | undefined;
221
- declare function readLinuxRssBytes(pid:number):Promise<number | undefined>;
222
- declare function parseLinuxCpuStat(raw:string):{
223
- cpu_user_seconds?:number;
224
- cpu_system_seconds?:number;
225
- };
226
- declare function readLinuxCpuSeconds(pid:number):Promise<{
227
- cpu_user_seconds?:number;
228
- cpu_system_seconds?:number;
229
- }>;
230
- declare function buildResourceSnapshot(record:BackgroundTestRunRecord):Promise<BackgroundRunResourceSnapshot | undefined>;
203
+ export declare function readBackgroundTestRunRecord(pmRoot:string,runId:string):Promise<BackgroundTestRunRecord|null>;declare function parseLinuxRssStatus(raw:string):number|undefined;declare function readLinuxRssBytes(pid:number):Promise<number|undefined>;declare function parseLinuxCpuStat(raw:string):{cpu_user_seconds?:number;cpu_system_seconds?:number;};declare function readLinuxCpuSeconds(pid:number):Promise<{cpu_user_seconds?:number;cpu_system_seconds?:number;}>;declare function buildResourceSnapshot(record:BackgroundTestRunRecord):Promise<BackgroundRunResourceSnapshot|undefined>;
231
204
  /** Derive worker totals from aggregate or per-test receipts, counting refusals as unsuccessful runs. */
232
- declare function evaluateWorkerResult(kind:BackgroundTestRunKind,payload:unknown):WorkerEvaluationResult;
233
- declare function parseProgressLine(stderrLine:string):Partial<BackgroundRunProgress> | null;
234
- declare function splitLines(value:string):string[];
235
- declare function tailLines(value:string,limit:number):string[];
236
- declare function refreshRunIfStale(pmRoot:string,record:BackgroundTestRunRecord):Promise<BackgroundTestRunRecord>;
205
+ declare function evaluateWorkerResult(kind:BackgroundTestRunKind,payload:unknown):WorkerEvaluationResult;declare function parseProgressLine(stderrLine:string):Partial<BackgroundRunProgress>|null;declare function splitLines(value:string):string[];declare function tailLines(value:string,limit:number):string[];declare function refreshRunIfStale(pmRoot:string,record:BackgroundTestRunRecord):Promise<BackgroundTestRunRecord>;
237
206
  /** Implements start background test run for the public runtime surface of this module. */
238
207
  export declare function startBackgroundTestRun(options:StartBackgroundTestRunOptions):Promise<StartBackgroundTestRunResult>;
239
208
  /** Implements spawn background test run worker for the public runtime surface of this module. */
@@ -249,19 +218,6 @@ export declare function stopBackgroundTestRun(pmRoot:string,runId:string,force?:
249
218
  /** Implements resume background test run for the public runtime surface of this module. */
250
219
  export declare function resumeBackgroundTestRun(pmRoot:string,runId:string,requestedBy:string,noExtensions?:boolean):Promise<BackgroundTestRunRecord>;
251
220
  /** Implements read background test run logs for the public runtime surface of this module. */
252
- export declare function readBackgroundTestRunLogs(pmRoot:string,runId:string,stream:BackgroundLogStream,tail:number | undefined):Promise<BackgroundRunLogsResult>;
221
+ export declare function readBackgroundTestRunLogs(pmRoot:string,runId:string,stream:BackgroundLogStream,tail:number|undefined):Promise<BackgroundRunLogsResult>;
253
222
  /** Public contract for test only, shared by SDK and presentation-layer consumers. */
254
- export declare const _testOnly:{
255
- buildResourceSnapshot:typeof buildResourceSnapshot;
256
- evaluateWorkerResult:typeof evaluateWorkerResult;
257
- isPidRunning:typeof isPidRunning;
258
- parseLinuxCpuStat:typeof parseLinuxCpuStat;
259
- parseLinuxRssStatus:typeof parseLinuxRssStatus;
260
- parseProgressLine:typeof parseProgressLine;
261
- readLinuxCpuSeconds:typeof readLinuxCpuSeconds;
262
- readLinuxRssBytes:typeof readLinuxRssBytes;
263
- refreshRunIfStale:typeof refreshRunIfStale;
264
- splitLines:typeof splitLines;
265
- tailLines:typeof tailLines;
266
- };
267
- export {};
223
+ export declare const _testOnly:{buildResourceSnapshot:typeof buildResourceSnapshot;evaluateWorkerResult:typeof evaluateWorkerResult;isPidRunning:typeof isPidRunning;parseLinuxCpuStat:typeof parseLinuxCpuStat;parseLinuxRssStatus:typeof parseLinuxRssStatus;parseProgressLine:typeof parseProgressLine;readLinuxCpuSeconds:typeof readLinuxCpuSeconds;readLinuxRssBytes:typeof readLinuxRssBytes;refreshRunIfStale:typeof refreshRunIfStale;splitLines:typeof splitLines;tailLines:typeof tailLines;};export{};
@@ -1,4 +1,4 @@
1
- import type { LinkedTest } from "../../types.js";
1
+ import type{LinkedTest}from "../../types.js";
2
2
  /**
3
3
  * Pure selection logic for `pm test --run` selectors (pm-p86h / GitHub #194).
4
4
  *
@@ -7,22 +7,21 @@ import type { LinkedTest } from "../../types.js";
7
7
  * - `--only-index <n>`: 1-based index into the `--list` order.
8
8
  * - `--only-last`: most recently added entry (last in `--list` order).
9
9
  */
10
- export type LinkedTestSelectorKind = "match" | "only-index" | "only-last";
10
+ export type LinkedTestSelectorKind="match"|"only-index"|"only-last";
11
11
  /** Documents the linked test run selector payload exchanged by command, SDK, and package integrations. */
12
- export interface LinkedTestRunSelector {
12
+ export interface LinkedTestRunSelector{
13
13
  /** Value that configures or reports match for this contract. */
14
14
  match?:string;
15
15
  /** Value that configures or reports only index for this contract. */
16
16
  onlyIndex?:number;
17
17
  /** Value that configures or reports only last for this contract. */
18
- onlyLast?:boolean;
19
- }
18
+ onlyLast?:boolean;}
20
19
  /** Documents the linked test run selection payload exchanged by command, SDK, and package integrations. */
21
- export interface LinkedTestRunSelection {
20
+ export interface LinkedTestRunSelection{
22
21
  /** Value that configures or reports selector for this contract. */
23
- selector:LinkedTestSelectorKind | null;
22
+ selector:LinkedTestSelectorKind|null;
24
23
  /** Value that configures or reports requested for this contract. */
25
- requested:string | null;
24
+ requested:string|null;
26
25
  /** Value that configures or reports selected for this contract. */
27
26
  selected:LinkedTest[];
28
27
  /** 1-based positions of selected entries in the original `--list` order. */
@@ -30,11 +29,10 @@ selected_indexes:number[];
30
29
  /** Number of selected entries represented by this result. */
31
30
  selected_count:number;
32
31
  /** Number of skipped entries represented by this result. */
33
- skipped_count:number;
34
- }
32
+ skipped_count:number;}
35
33
  /** Implements parse only index value for the public runtime surface of this module. */
36
- export declare function parseOnlyIndexValue(raw:string | number,optionName?:string):number;
34
+ export declare function parseOnlyIndexValue(raw:string|number,optionName?:string):number;
37
35
  /** Implements describe linked test entries for the public runtime surface of this module. */
38
36
  export declare function describeLinkedTestEntries(tests:LinkedTest[]):string;
39
37
  /** Implements resolve linked test run selection for the public runtime surface of this module. */
40
- export declare function resolveLinkedTestRunSelection(tests:LinkedTest[],selector:LinkedTestRunSelector):LinkedTestRunSelection;
38
+ export declare function resolveLinkedTestRunSelection(tests:LinkedTest[],selector:LinkedTestRunSelector):LinkedTestRunSelection;
@@ -16,17 +16,17 @@
16
16
  * explicitly granted.
17
17
  */
18
18
  /** Restricts validate fix check values accepted by command, SDK, and storage contracts. */
19
- export type ValidateFixCheck = "metadata" | "resolution" | "lifecycle" | "files";
19
+ export type ValidateFixCheck="metadata"|"resolution"|"lifecycle"|"files";
20
20
  /** Restricts validate fix kind values accepted by command, SDK, and storage contracts. */
21
- export type ValidateFixKind = "set_resolution" | "set_close_reason" | "set_estimate" | "set_closed_at" | "reparent" | "unset_parent" | "prune_file_link" | "prune_doc_link";
21
+ export type ValidateFixKind="set_resolution"|"set_close_reason"|"set_estimate"|"set_closed_at"|"reparent"|"unset_parent"|"prune_file_link"|"prune_doc_link";
22
22
  /** Restricts validate fix scope values accepted by command, SDK, and storage contracts. */
23
- export type ValidateFixScope = "metadata" | "resolution" | "estimates" | "timestamps" | "lifecycle";
23
+ export type ValidateFixScope="metadata"|"resolution"|"estimates"|"timestamps"|"lifecycle";
24
24
  /** Scopes auto-applied without an explicit `--fix-scope` (safe field backfills). */
25
25
  export declare const DEFAULT_GRANTED_FIX_SCOPES:readonly ValidateFixScope[];
26
26
  /** Scopes accepted by `--fix-scope`. Estimates are heuristic, timestamps require verified historical replay, and lifecycle changes are structural; all three require explicit opt-in. */
27
27
  export declare const SUPPORTED_FIX_SCOPES:readonly ValidateFixScope[];
28
28
  /** Documents the validate fix record payload exchanged by command, SDK, and package integrations. */
29
- export interface ValidateFixRecord {
29
+ export interface ValidateFixRecord{
30
30
  /** Item the fix targets. */
31
31
  item_id:string;
32
32
  /** Validate check the finding came from. */
@@ -44,39 +44,35 @@ path?:string;
44
44
  /** Target parent id for reparent fixes. */
45
45
  parent_id?:string;
46
46
  /** Fix scope the `--fix-scope` allowlist must grant for the fix to be applied. Every `--auto-fix` record carries one (the granted default is metadata+resolution; lifecycle must be named explicitly). Absent only on `--prune-missing` records, which are governed by their own flag. */
47
- gate?:ValidateFixScope;
48
- }
47
+ gate?:ValidateFixScope;}
49
48
  /** Documents the resolution backfill row payload exchanged by command, SDK, and package integrations. */
50
- export interface ResolutionBackfillRow {
49
+ export interface ResolutionBackfillRow{
51
50
  /** Stable identifier used to reference this record across commands and storage. */
52
51
  id:string;
53
52
  /** Resolution-check missing field keys for this closed item. */
54
53
  missing_fields:readonly string[];
55
54
  /** The item's close_reason, when present (preferred derivation source). */
56
- close_reason?:string;
57
- }
55
+ close_reason?:string;}
58
56
  /** Plan resolution backfills for closed items flagged by the resolution check. Only the `resolution` field is mechanical enough to auto-fix: it derives from the item's own `close_reason` when present and falls back to the `"completed"` default. `expected_result` / `actual_result` stay hint-only — no deterministic source text exists for them. */
59
57
  export declare function planResolutionBackfillFixes(rows:readonly ResolutionBackfillRow[]):ValidateFixRecord[];
60
58
  /** Documents the close reason backfill row payload exchanged by command, SDK, and package integrations. */
61
- export interface CloseReasonBackfillRow {
59
+ export interface CloseReasonBackfillRow{
62
60
  /** Stable identifier used to reference this record across commands and storage. */
63
61
  id:string;
64
62
  /** The item's resolution, when present (the only derivation source). */
65
- resolution?:string;
66
- }
63
+ resolution?:string;}
67
64
  /** Plan close_reason backfills for closed items flagged by the metadata check. Only derivable when the item already carries a resolution; items missing both stay hint-only (any synthesized reason would be fabricated, not derived). */
68
65
  export declare function planCloseReasonBackfillFixes(rows:readonly CloseReasonBackfillRow[]):ValidateFixRecord[];
69
66
  /** Documents the estimate backfill row payload exchanged by command, SDK, and package integrations. */
70
- export interface EstimateBackfillRow {
67
+ export interface EstimateBackfillRow{
71
68
  /** Stable identifier used to reference this record across commands and storage. */
72
69
  id:string;
73
70
  /** Item type, used to resolve the per-type default estimate. */
74
- type?:string;
75
- }
71
+ type?:string;}
76
72
  /** Plan estimate backfills for items flagged by the metadata check as missing `estimated_minutes` (GH-212). The value is a config-driven per-type default (overrides > built-in map > fallback), never a derived fact — so these fixes carry `gate: "estimates"`, an opt-in scope that is NOT granted by default. `overrides` is the already-normalized `validation.estimate_defaults_by_type` map; pass `undefined`/`{}` to use the built-in defaults. */
77
73
  export declare function planEstimateBackfillFixes(rows:readonly EstimateBackfillRow[],overrides?:Readonly<Record<string,number>>):ValidateFixRecord[];
78
74
  /** Documents the terminal parent fix row payload exchanged by command, SDK, and package integrations. */
79
- export interface TerminalParentFixRow {
75
+ export interface TerminalParentFixRow{
80
76
  /** Stable identifier used to reference this record across commands and storage. */
81
77
  id:string;
82
78
  /** Value that configures or reports parent id for this contract. */
@@ -84,29 +80,24 @@ parent_id:string;
84
80
  /** The terminal parent's own parent, when one exists. */
85
81
  grandparent_id?:string;
86
82
  /** True when the grandparent exists and is NOT terminal (safe reparent target). */
87
- grandparent_active?:boolean;
88
- }
83
+ grandparent_active?:boolean;}
89
84
  /** Plan lifecycle fixes for active items whose parent is terminal (pm-8jss / GH-168). When the terminal parent has an active grandparent, the child is reparented one level up (it stays inside the same hierarchy); otherwise the parent link is cleared so the item surfaces as unparented active work. Either way the item itself is never closed or mutated beyond `parent` — and every fix carries `gate: "lifecycle"` so it is only applied under an explicit `--fix-scope lifecycle`. */
90
85
  export declare function planTerminalParentFixes(rows:readonly TerminalParentFixRow[]):ValidateFixRecord[];
91
86
  /** Documents the stale link prune row payload exchanged by command, SDK, and package integrations. */
92
- export interface StaleLinkPruneRow {
87
+ export interface StaleLinkPruneRow{
93
88
  /** Value that configures or reports item id for this contract. */
94
89
  item_id:string;
95
90
  /** Filesystem path used for path resolution. */
96
91
  path:string;
97
92
  /** Value that configures or reports link kind for this contract. */
98
- link_kind:"files" | "docs";
93
+ link_kind:"files"|"docs";
99
94
  /** Value that configures or reports classification for this contract. */
100
- classification:"moved" | "deleted" | "malformed";
101
- }
95
+ classification:"moved"|"deleted"|"malformed";}
102
96
  /** Plan link prunes for `--prune-missing` (pm-0v2m / GH-184). Only links whose stale path classified as `deleted` are pruned; `moved` links keep their relink candidates in the files-check details instead of being dropped, so recoverable link information is never destroyed. Link removal only — real files are never touched. */
103
97
  export declare function planStaleLinkPruneFixes(rows:readonly StaleLinkPruneRow[]):ValidateFixRecord[];
104
98
  /** Resolve the granted `--fix-scope` set (repeatable and/or comma-separated). With no explicit scopes the safe field-backfill scopes (metadata, resolution) are granted; lifecycle must always be named explicitly. Unknown values fail fast with the supported list. */
105
- export declare function resolveGrantedFixScopes(rawScopes:readonly string[] | undefined):Set<ValidateFixScope>;
99
+ export declare function resolveGrantedFixScopes(rawScopes:readonly string[]|undefined):Set<ValidateFixScope>;
106
100
  /** Split a fix plan into the records that may be applied under the granted scopes and the gated records that were withheld. `--fix-scope` is an exact allowlist: every `--auto-fix` record requires its gate scope in `granted`. Ungated records (`--prune-missing` link prunes, governed by their own flag) are always applicable. */
107
- export declare function partitionFixesByGrant(fixes:readonly ValidateFixRecord[],granted:ReadonlySet<ValidateFixScope>):{
108
- applicable:ValidateFixRecord[];
109
- gated:ValidateFixRecord[];
110
- };
101
+ export declare function partitionFixesByGrant(fixes:readonly ValidateFixRecord[],granted:ReadonlySet<ValidateFixScope>):{applicable:ValidateFixRecord[];gated:ValidateFixRecord[];};
111
102
  /** Compact serialization of a fix for planned/applied output rows. */
112
- export declare function toFixOutputRow(fix:ValidateFixRecord):Record<string,unknown>;
103
+ export declare function toFixOutputRow(fix:ValidateFixRecord):Record<string,unknown>;
@@ -8,11 +8,10 @@
8
8
  * `{ Task: { close_reason: 3, reviewer: 1 } }`.
9
9
  */
10
10
  /** One missing required metadata field observed on an item of a specific type. */
11
- export interface MissingFieldOccurrence {
11
+ export interface MissingFieldOccurrence{
12
12
  /** Item type name as stored in item metadata (e.g. "Task"). */
13
13
  item_type:string;
14
14
  /** Required metadata field that is missing on the item. */
15
- field:string;
16
- }
15
+ field:string;}
17
16
  /** Aggregate missing-field occurrences into `{ type: { field: count } }` with both levels sorted lexicographically for stable, diff-friendly output. Zero counts never appear (only observed occurrences are aggregated). */
18
- export declare function buildMissingByTypeCounts(occurrences:Iterable<MissingFieldOccurrence>):Record<string,Record<string,number>>;
17
+ export declare function buildMissingByTypeCounts(occurrences:Iterable<MissingFieldOccurrence>):Record<string,Record<string,number>>;
@@ -13,20 +13,19 @@
13
13
  * the already-collected stale-link rows plus a metadata `lookup` closure.
14
14
  */
15
15
  /** Classification assigned to a stale linked path during files validation. */
16
- export type StaleLinkClassification = "moved" | "deleted" | "malformed";
16
+ export type StaleLinkClassification="moved"|"deleted"|"malformed";
17
17
  /** Documents the stale link owner input payload exchanged by command, SDK, and package integrations. */
18
- export interface StaleLinkOwnerInput {
18
+ export interface StaleLinkOwnerInput{
19
19
  /** Value that configures or reports item id for this contract. */
20
20
  item_id:string;
21
21
  /** Normalized workspace-relative path that no longer resolves. */
22
22
  path:string;
23
23
  /** Which link list of the owning item the path lives in. */
24
- link_kind:"files" | "docs";
24
+ link_kind:"files"|"docs";
25
25
  /** Value that configures or reports classification for this contract. */
26
- classification:StaleLinkClassification;
27
- }
26
+ classification:StaleLinkClassification;}
28
27
  /** Documents the missing linked path owner payload exchanged by command, SDK, and package integrations. */
29
- export interface MissingLinkedPathOwner {
28
+ export interface MissingLinkedPathOwner{
30
29
  /** Stable identifier used to reference this record across commands and storage. */
31
30
  id:string;
32
31
  /** Owning item type, `"Unknown"` if metadata is absent. */
@@ -36,26 +35,23 @@ title:string;
36
35
  /** Owning item status, `""` if absent. */
37
36
  status:string;
38
37
  /** The link list the path lives in (= the input `link_kind`). */
39
- field:"files" | "docs";
40
- }
38
+ field:"files"|"docs";}
41
39
  /** Documents the missing linked path row payload exchanged by command, SDK, and package integrations. */
42
- export interface MissingLinkedPathRow {
40
+ export interface MissingLinkedPathRow{
43
41
  /** Filesystem path used for path resolution. */
44
42
  path:string;
45
43
  /** Value that configures or reports classification for this contract. */
46
44
  classification:StaleLinkClassification;
47
45
  /** Value that configures or reports items for this contract. */
48
- items:MissingLinkedPathOwner[];
49
- }
46
+ items:MissingLinkedPathOwner[];}
50
47
  /** Documents the owner item metadata payload exchanged by command, SDK, and package integrations. */
51
- export interface OwnerItemMetadata {
48
+ export interface OwnerItemMetadata{
52
49
  /** Schema type that determines the shape and validation rules for this value. */
53
50
  type?:string;
54
51
  /** Value that configures or reports title for this contract. */
55
52
  title?:string;
56
53
  /** Lifecycle state reported for status. */
57
- status?:string;
58
- }
54
+ status?:string;}
59
55
  /**
60
56
  * Group stale-link owner inputs by linked path and attach owning-item metadata.
61
57
  *
@@ -65,7 +61,7 @@ status?:string;
65
61
  * - `classification` per path follows {@link preferClassification} (moved wins).
66
62
  * - Missing metadata falls back: type `"Unknown"`, title `""`, status `""`.
67
63
  */
68
- export declare function buildMissingLinkedPathRows(rows:readonly StaleLinkOwnerInput[],lookup:(itemId:string) => OwnerItemMetadata | undefined):MissingLinkedPathRow[];
64
+ export declare function buildMissingLinkedPathRows(rows:readonly StaleLinkOwnerInput[],lookup:(itemId:string)=> OwnerItemMetadata|undefined):MissingLinkedPathRow[];
69
65
  /**
70
66
  * Token-efficient one-line-per-owner serialization for the files-check details
71
67
  * (compact text counterpart to the full {@link MissingLinkedPathRow} objects).
@@ -75,4 +71,4 @@ export declare function buildMissingLinkedPathRows(rows:readonly StaleLinkOwnerI
75
71
  * render (`status=` and `title=""`). Order follows
76
72
  * {@link buildMissingLinkedPathRows} output order.
77
73
  */
78
- export declare function summarizeMissingLinkedPathRows(rows:readonly MissingLinkedPathRow[]):string[];
74
+ export declare function summarizeMissingLinkedPathRows(rows:readonly MissingLinkedPathRow[]):string[];
@@ -14,9 +14,9 @@
14
14
  * already-collected candidate file list from the files check scan.
15
15
  */
16
16
  /** Classification labels for linked paths that no longer exist on disk. */
17
- export type StaleLinkedPathClassification = "moved" | "deleted" | "malformed";
17
+ export type StaleLinkedPathClassification="moved"|"deleted"|"malformed";
18
18
  /** Documents the classified stale linked path payload exchanged by command, SDK, and package integrations. */
19
- export interface ClassifiedStaleLinkedPath {
19
+ export interface ClassifiedStaleLinkedPath{
20
20
  /** Normalized workspace-relative stale linked path. */
21
21
  path:string;
22
22
  /** Value that configures or reports classification for this contract. */
@@ -24,11 +24,10 @@ classification:StaleLinkedPathClassification;
24
24
  /** Candidate new locations (same basename, different path), sorted and capped at `candidateLimit`. Empty for `deleted` and `malformed`. */
25
25
  candidates:string[];
26
26
  /** True when more candidates existed than `candidateLimit` allowed. */
27
- candidates_truncated:boolean;
28
- }
27
+ candidates_truncated:boolean;}
29
28
  /** Fallback stale path candidate limit used when callers do not provide an override. */
30
- export declare const DEFAULT_STALE_PATH_CANDIDATE_LIMIT = 3;
29
+ export declare const DEFAULT_STALE_PATH_CANDIDATE_LIMIT=3;
31
30
  /** Classify each stale (missing) linked path as `moved`, `deleted`, or `malformed` by matching its basename against the candidate file list. Output preserves the input order of `stalePaths` (callers pass an already-sorted unique list). A candidate equal to the stale path itself never matches (the path is known missing; an identical candidate would be self-referential noise). */
32
31
  export declare function classifyStaleLinkedPaths(stalePaths:readonly string[],candidateFiles:readonly string[],candidateLimit?:number):ClassifiedStaleLinkedPath[];
33
32
  /** Render compact `<path>:moved:<top-candidate>` / `<path>:deleted` rows for the files check details (token-efficient counterpart to the full classification objects). */
34
- export declare function summarizeStaleLinkedPathClassifications(classified:readonly ClassifiedStaleLinkedPath[]):string[];
33
+ export declare function summarizeStaleLinkedPathClassifications(classified:readonly ClassifiedStaleLinkedPath[]):string[];
@@ -1,4 +1,4 @@
1
- import type { PmToolAction } from "../sdk/cli-contracts/enum-contracts.js";
1
+ import type{PmToolAction}from "../sdk/cli-contracts/enum-contracts.js";
2
2
  /**
3
3
  * Static MCP tool surface for the pm MCP server.
4
4
  *
@@ -7,7 +7,7 @@ import type { PmToolAction } from "../sdk/cli-contracts/enum-contracts.js";
7
7
  * golden file (pm-4os2) without importing the full MCP server runtime, and so
8
8
  * the server itself stays the single consumer of the dispatch handlers.
9
9
  */
10
- export interface ToolDefinition {
10
+ export interface ToolDefinition{
11
11
  /** Value that configures or reports name for this contract. */
12
12
  name:string;
13
13
  /** Value that configures or reports description for this contract. */
@@ -15,31 +15,9 @@ description:string;
15
15
  /** Value that configures or reports input schema for this contract. */
16
16
  inputSchema:Record<string,unknown>;
17
17
  /** Optional negotiated extension metadata projected during tools/list. */
18
- _meta?:Record<string,unknown>;
19
- }
18
+ _meta?:Record<string,unknown>;}
20
19
  /** MCP transport parameters layered over every canonical action schema. */
21
- export declare const TOOL_SCHEMA_BASE:{
22
- readonly type:"object";
23
- readonly properties:{
24
- readonly cwd:{
25
- readonly type:"string";
26
- readonly description:"Workspace directory to run the native pm operation in. Defaults to the MCP server process cwd.";
27
- };
28
- readonly path:{
29
- readonly type:"string";
30
- readonly description:"Optional pm data root, equivalent to PM_PATH/global --path. Leave unset for real repository tracking.";
31
- };
32
- readonly author:{
33
- readonly type:"string";
34
- readonly description:"Optional mutation author override. Otherwise pm uses PM_AUTHOR, project settings, or detected harness identity.";
35
- };
36
- readonly tokenAccounting:{
37
- readonly type:"boolean";
38
- readonly description:"Attach the same bounded per-section token-cost receipt emitted by CLI --token-accounting.";
39
- };
40
- };
41
- readonly additionalProperties:true;
42
- };
20
+ export declare const TOOL_SCHEMA_BASE:{readonly type:"object";readonly properties:{readonly cwd:{readonly type:"string";readonly description:"Workspace directory to run the native pm operation in. Defaults to the MCP server process cwd.";};readonly path:{readonly type:"string";readonly description:"Optional pm data root, equivalent to PM_PATH/global --path. Leave unset for real repository tracking.";};readonly author:{readonly type:"string";readonly description:"Optional mutation author override. Otherwise pm uses PM_AUTHOR, project settings, or detected harness identity.";};readonly tokenAccounting:{readonly type:"boolean";readonly description:"Attach the same bounded per-section token-cost receipt emitted by CLI --token-accounting.";};};readonly additionalProperties:true;};
43
21
  /** Canonical SDK action backing each dedicated MCP tool schema. */
44
22
  export declare const NARROW_TOOL_ACTIONS:Readonly<Record<string,PmToolAction>>;
45
23
  /**
@@ -49,7 +27,7 @@ export declare const NARROW_TOOL_ACTIONS:Readonly<Record<string,PmToolAction>>;
49
27
  */
50
28
  export declare const TOOLS:ToolDefinition[];
51
29
  /** Stable projection of one MCP tool definition for the contract golden file (pm-4os2): tool name, description, required top-level fields, and the full inputSchema shape. Any drift (typo'd property, dropped required field, changed TOOL_SCHEMA_BASE) shows up in `pnpm contracts:check`. */
52
- export interface McpToolContract {
30
+ export interface McpToolContract{
53
31
  /** Value that configures or reports name for this contract. */
54
32
  name:string;
55
33
  /** Value that configures or reports description for this contract. */
@@ -57,7 +35,6 @@ description:string;
57
35
  /** Value that configures or reports required for this contract. */
58
36
  required:string[];
59
37
  /** Value that configures or reports input schema for this contract. */
60
- input_schema:Record<string,unknown>;
61
- }
38
+ input_schema:Record<string,unknown>;}
62
39
  /** Implements build mcp tool contracts for the public runtime surface of this module. */
63
- export declare function buildMcpToolContracts():McpToolContract[];
40
+ export declare function buildMcpToolContracts():McpToolContract[];
@@ -7,4 +7,4 @@
7
7
  * blocker or ready-work classifications without storage or rendering side
8
8
  * effects.
9
9
  */
10
- export { ACTIONABILITY_ORDERING_KINDS,collectBlockedByIds,collectBlockedByIdsFromCorpus,collectDependencyBlockedIds,computeActionabilityReport,indexBlockedByIds,resolveItemBlockers,resolveItemExecutionRole,selectActionableEntries,type ActionabilitySelectionOptions,type ActionabilityReport,type ActionableEntry,type ResolvedBlocker,} from "../core/item/actionability.js";
10
+ export{ACTIONABILITY_ORDERING_KINDS,collectBlockedByIds,collectBlockedByIdsFromCorpus,collectDependencyBlockedIds,computeActionabilityReport,indexBlockedByIds,resolveItemBlockers,resolveItemExecutionRole,selectActionableEntries,type ActionabilitySelectionOptions,type ActionabilityReport,type ActionableEntry,type ResolvedBlocker,}from "../core/item/actionability.js";
@@ -1,5 +1,5 @@
1
1
  /** A closed-domain refusal that can be executed and recovered automatically. */
2
- export interface PmClosedDomainContract {
2
+ export interface PmClosedDomainContract{
3
3
  /** Stable assurance identity. */
4
4
  probe_id:string;
5
5
  /** Public command accepting the constrained flag. */
@@ -15,11 +15,10 @@ allowed_values:readonly string[];
15
15
  /** Exact argv expected in the refusal's executable recovery. */
16
16
  suggested_retry_args:readonly string[];
17
17
  /** Stable machine-readable error code that owns the refusal. */
18
- error_code:"package_upgrade_modes_mutually_exclusive" | "projection_options_mutually_exclusive" | "unknown_context_intent" | "unknown_field_projection";
18
+ error_code:"package_upgrade_modes_mutually_exclusive"|"projection_options_mutually_exclusive"|"unknown_context_intent"|"unknown_field_projection";
19
19
  /** Whether a complete accepted-value domain is required in the refusal. */
20
- allowed_values_required?:boolean;
21
- }
20
+ allowed_values_required?:boolean;}
22
21
  /** Return the complete stable core refusal corpus shared by every public surface. */
23
22
  export declare function listCoreClosedDomainContracts():PmClosedDomainContract[];
24
23
  /** Render a compact but complete core-domain description for command help. */
25
- export declare function renderPmClosedDomainHelp(command:string,flag:"--fields" | "--for"):string;
24
+ export declare function renderPmClosedDomainHelp(command:string,flag:"--fields"|"--for"):string;
@@ -1,11 +1,8 @@
1
- export { resolveLinkedResourcePositionalRecovery } from "./linked-resource-recovery.js";
1
+ export{resolveLinkedResourcePositionalRecovery}from "./linked-resource-recovery.js";
2
2
  /** Explain unsupported lifecycle verbs using declared mutation flags, without authorizing or executing a guessed mutation. */
3
- export declare function resolveLifecycleVerbRecovery(verb:string,availablePaths:readonly string[]):{
4
- examples:string[][];
5
- nextSteps:string[];
6
- } | undefined;
3
+ export declare function resolveLifecycleVerbRecovery(verb:string,availablePaths:readonly string[]):{examples:string[][];nextSteps:string[];}|undefined;
7
4
  /** Completeness controls one read command declares, derived from its read-output surface and flag contracts. */
8
- export interface ReadCompletenessControls {
5
+ export interface ReadCompletenessControls{
9
6
  /** Canonical read-output surface. */
10
7
  command:string;
11
8
  /** Projection modes the command spells as boolean `--<mode>` flags. */
@@ -13,21 +10,20 @@ modes:string[];
13
10
  /** Closed `--depth` value domain, empty when the command declares no detail depth. */
14
11
  depth_values:string[];
15
12
  /** Every declared flag spelling, used to refuse corrections for options the command already accepts. */
16
- declared_flags:string[];
17
- }
13
+ declared_flags:string[];}
18
14
  /** Resolve the completeness spellings a read command accepts, so recovery never guesses from another command's vocabulary. */
19
- export declare function resolveReadCompletenessControls(commandName:string):ReadCompletenessControls | undefined;
15
+ export declare function resolveReadCompletenessControls(commandName:string):ReadCompletenessControls|undefined;
20
16
  /** Render one command's completeness controls as the flags an agent can type on that same command. */
21
17
  export declare function describeReadCompletenessControls(controls:ReadCompletenessControls):string;
22
18
  /** Derive a same-command read retry for known completeness and encoding mistakes without discarding intent. */
23
- export declare function resolveReadOptionRetryArgs(commandName:string,invocationArgv:readonly string[],unknownOption:string):string[] | undefined;
19
+ export declare function resolveReadOptionRetryArgs(commandName:string,invocationArgv:readonly string[],unknownOption:string):string[]|undefined;
24
20
  /** Identify presentation intent that must not be silently dropped from an unknown-option retry. */
25
21
  export declare function isReadProjectionRecoveryFlag(flag:string):boolean;
26
22
  /** Keep lexical corrections within read projection or mutation receipt semantics. */
27
23
  export declare function isCompatibleRecoveryFlag(requested:string,candidate:string):boolean;
28
24
  /** Resolve a recovery command without interpreting global option values as command tokens. */
29
- export declare function resolveRecoveryCommandName(invocationArgv:string[] | undefined):string | undefined;
25
+ export declare function resolveRecoveryCommandName(invocationArgv:string[]|undefined):string|undefined;
30
26
  /** Resolve the truthful placeholder for a missing flag from its contract. */
31
- export declare function resolveMissingOptionPlaceholder(commandName:string,missingLabel:string):string | null | undefined;
27
+ export declare function resolveMissingOptionPlaceholder(commandName:string,missingLabel:string):string|null|undefined;
32
28
  /** Preserve an attempted argv vector and insert each missing option before `--`. */
33
- export declare function renderMissingOptionRetry(invocationArgv:string[],commandName:string,missingLabels:string[]):string | undefined;
29
+ export declare function renderMissingOptionRetry(invocationArgv:string[],commandName:string,missingLabels:string[]):string|undefined;