@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
@@ -5,11 +5,11 @@
5
5
  * packages, and generated contract surfaces.
6
6
  */
7
7
  /** Compatibility promise attached to a machine-readable error code. */
8
- export type PmErrorCodeStability = "provisional" | "stable";
8
+ export type PmErrorCodeStability="provisional"|"stable";
9
9
  /** Semantic process-exit class shared by shell and SDK consumers. */
10
- export type PmErrorCodeClass = "generic_failure" | "usage" | "not_found" | "conflict" | "dependency_failed";
10
+ export type PmErrorCodeClass="generic_failure"|"usage"|"not_found"|"conflict"|"dependency_failed";
11
11
  /** One externally observable refusal state and its executable entrypoint probe. */
12
- export interface PmRefusalStateContract {
12
+ export interface PmRefusalStateContract{
13
13
  /** Stable semantic state owned by the error code. */
14
14
  state:string;
15
15
  /** Stable probe identifier implemented by the entrypoint conformance suite. */
@@ -17,27 +17,11 @@ probe_id:string;
17
17
  /** Public command roots through which the state must remain reachable. */
18
18
  entrypoints:string[];
19
19
  /** Exit class expected when the probe reaches the state. */
20
- expected_exit_class:PmErrorCodeClass;
21
- }
20
+ expected_exit_class:PmErrorCodeClass;}
22
21
  /** Stable shell exit-code taxonomy shared by every structured error. */
23
- export declare const PM_ERROR_CODE_EXIT_CLASS_CONTRACTS:readonly [{
24
- readonly exit_code:1;
25
- readonly class:"generic_failure";
26
- },{
27
- readonly exit_code:2;
28
- readonly class:"usage";
29
- },{
30
- readonly exit_code:3;
31
- readonly class:"not_found";
32
- },{
33
- readonly exit_code:4;
34
- readonly class:"conflict";
35
- },{
36
- readonly exit_code:5;
37
- readonly class:"dependency_failed";
38
- }];
22
+ export declare const PM_ERROR_CODE_EXIT_CLASS_CONTRACTS:readonly[{readonly exit_code:1;readonly class:"generic_failure";},{readonly exit_code:2;readonly class:"usage";},{readonly exit_code:3;readonly class:"not_found";},{readonly exit_code:4;readonly class:"conflict";},{readonly exit_code:5;readonly class:"dependency_failed";}];
39
23
  /** One machine-readable error and its portable recovery contract. */
40
- export interface PmErrorCodeContract {
24
+ export interface PmErrorCodeContract{
41
25
  /** Stable snake_case identifier. */
42
26
  code:string;
43
27
  /** Concise description of the failed condition. */
@@ -45,7 +29,7 @@ meaning:string;
45
29
  /** Compatibility tier for package consumers. */
46
30
  stability:PmErrorCodeStability;
47
31
  /** Process exit code emitted by the CLI transport. */
48
- exit_code:1 | 2 | 3 | 4 | 5;
32
+ exit_code:1|2|3|4|5;
49
33
  /** Semantic class represented by the process exit code. */
50
34
  class:PmErrorCodeClass;
51
35
  /** Actionable caller recovery guidance. */
@@ -59,11 +43,10 @@ canonical_code?:string;
59
43
  /** Stable compatibility spellings that resolve to this canonical code. */
60
44
  aliases?:string[];
61
45
  /** Observable states this code claims, each backed by a real-entrypoint probe. */
62
- owned_states?:PmRefusalStateContract[];
63
- }
46
+ owned_states?:PmRefusalStateContract[];}
64
47
  /** Validate, normalize, sort, and freeze an error-code catalog. */
65
48
  export declare function definePmErrorCodeCatalog(declarations:readonly PmErrorCodeContract[]):readonly PmErrorCodeContract[];
66
49
  /** Resolve an emitted code through its stable compatibility alias group. */
67
50
  export declare function resolveCanonicalPmErrorCodeContract(code:string,catalog:readonly PmErrorCodeContract[]):PmErrorCodeContract;
68
51
  /** Resolve one declared error contract and fail closed for unknown vocabulary. */
69
- export declare function resolvePmErrorCodeContract(code:string,catalog:readonly PmErrorCodeContract[]):PmErrorCodeContract;
52
+ export declare function resolvePmErrorCodeContract(code:string,catalog:readonly PmErrorCodeContract[]):PmErrorCodeContract;
@@ -1,19 +1,17 @@
1
- import { PmCliError,type PmCliErrorContext } from "../core/shared/errors.js";
2
- import type { CommandHandlerResult } from "../core/extensions/extension-types.js";
1
+ import{PmCliError,type PmCliErrorContext}from "../core/shared/errors.js";import type{CommandHandlerResult}from "../core/extensions/extension-types.js";
3
2
  /** An unexpected handler fault with the host's structured diagnostics and original cause. */
4
- export declare class ExtensionCommandError extends PmCliError {
3
+ export declare class ExtensionCommandError extends PmCliError{
5
4
  /** Retain the original fault without exposing it in serialized result metadata. */
6
- constructor(message:string,context:PmCliErrorContext,cause:unknown);
7
- }
5
+ constructor(message:string,context:PmCliErrorContext,cause:unknown);}
8
6
  /** Wrap one unexpected handler failure consistently for CLI and custom SDK hosts. */
9
- export declare function createExtensionCommandError(command:string,result:Pick<CommandHandlerResult,"warnings" | "errorMessage" | "errorCode" | "remediation" | "cause">):ExtensionCommandError;
7
+ export declare function createExtensionCommandError(command:string,result:Pick<CommandHandlerResult,"warnings"|"errorMessage"|"errorCode"|"remediation"|"cause">):ExtensionCommandError;
10
8
  /** Returns a stable message for errors and unknown thrown values. */
11
9
  export declare function describeUnknownError(error:unknown):string;
12
10
  /** Reads a finite numeric exit code from an arbitrary thrown value. */
13
- export declare function readThrownExitCode(error:unknown):number | undefined;
11
+ export declare function readThrownExitCode(error:unknown):number|undefined;
14
12
  /** Normalizes thrown exit codes to a positive integer failure status. */
15
13
  export declare function normalizeThrownExitCode(exitCode:number):number;
16
14
  /** Identifies errors emitted by Commander without importing its private classes. */
17
15
  export declare function isCommanderError(error:unknown):boolean;
18
16
  /** Converts non-Error thrown values into errors suitable for Sentry capture. */
19
- export declare function wrapThrownErrorForSentry(error:unknown,message:string):Error;
17
+ export declare function wrapThrownErrorForSentry(error:unknown,message:string):Error;
@@ -3,10 +3,7 @@
3
3
  *
4
4
  * Defines public SDK APIs and package-author helpers for Errors.
5
5
  */
6
- import { EXIT_CODE } from "../core/shared/constants.js";
7
- import { type PmCliErrorContext,type PmTokenBudgetRecovery } from "../core/shared/errors.js";
8
- export type { PmCliErrorDetailValue,PmCliErrorDetails,PmTokenBudgetRecovery,} from "../core/shared/errors.js";
9
- export { PM_CLI_ERROR_DETAILS_LIMITS,isPmCliErrorDetails,projectPmCliErrorContextDetails,projectPmCliErrorContextDetailsSlot,projectPmCliErrorDetails,snapshotPmCliErrorContext,type PmCliErrorDetailsOmission,type PmCliErrorDetailsRejection,} from "../core/shared/error-details.js";
6
+ import{EXIT_CODE}from "../core/shared/constants.js";import{type PmCliErrorContext,type PmTokenBudgetRecovery}from "../core/shared/errors.js";export type{PmCliErrorDetailValue,PmCliErrorDetails,PmTokenBudgetRecovery,}from "../core/shared/errors.js";export{PM_CLI_ERROR_DETAILS_LIMITS,isPmCliErrorDetails,projectPmCliErrorContextDetails,projectPmCliErrorContextDetailsSlot,projectPmCliErrorDetails,snapshotPmCliErrorContext,type PmCliErrorDetailsOmission,type PmCliErrorDetailsRejection,}from "../core/shared/error-details.js";
10
7
  /** Validate package-carried budget advice without trusting class identity or extra fields. */
11
8
  export declare function isPmTokenBudgetRecovery(value:unknown):value is PmTokenBudgetRecovery;
12
9
  /**
@@ -15,7 +12,7 @@ export declare function isPmTokenBudgetRecovery(value:unknown):value is PmTokenB
15
12
  * matching this exact string rather than by `instanceof`, so an error thrown
16
13
  * from a separately bundled or linked extension is still treated as expected.
17
14
  */
18
- export declare const PM_CLI_EXPECTED_ERROR_NAME = "PmCliError";
15
+ export declare const PM_CLI_EXPECTED_ERROR_NAME="PmCliError";
19
16
  /**
20
17
  * The public, class-free shape of an "expected" pm CLI error: a user- or
21
18
  * environment-caused failure that should exit with a specific code and be
@@ -23,7 +20,7 @@ export declare const PM_CLI_EXPECTED_ERROR_NAME = "PmCliError";
23
20
  * {@link isPmCliExpectedError} instead of importing the internal `PmCliError`
24
21
  * class, which keeps the contract stable across bundling boundaries.
25
22
  */
26
- export interface PmCliExpectedError extends Error {
23
+ export interface PmCliExpectedError extends Error{
27
24
  /** Discriminant tag; always {@link PM_CLI_EXPECTED_ERROR_NAME}. */
28
25
  name:typeof PM_CLI_EXPECTED_ERROR_NAME;
29
26
  /** Positive process exit code the CLI should terminate with for this failure. */
@@ -33,24 +30,21 @@ code?:string;
33
30
  /** Structured, secret-free metadata attached for diagnostics and error guidance. */
34
31
  context:PmCliErrorContext;
35
32
  /** Optional underlying error that triggered this one, preserved for cause chaining. */
36
- cause?:unknown;
37
- }
33
+ cause?:unknown;}
38
34
  /** A refused create operation whose canonical ID already names a persisted item. */
39
- export interface PmItemAlreadyExistsError extends PmCliExpectedError {
35
+ export interface PmItemAlreadyExistsError extends PmCliExpectedError{
40
36
  /** Stable discriminator independent of the diagnostic message. */
41
37
  code:"item_already_exists";
42
38
  /** Creation conflicts preserve the existing conflict exit-code contract. */
43
39
  exitCode:typeof EXIT_CODE.CONFLICT;
44
40
  /** Canonical identity and actual persisted path for a safe subsequent read. */
45
- context:PmCliErrorContext & {
41
+ context:PmCliErrorContext&{
46
42
  /** Producer-owned existing-item discriminator. */
47
43
  code:"item_already_exists";
48
44
  /** Normalized ID of the preserved existing item. */
49
45
  id:string;
50
46
  /** Actual document path of the preserved existing item. */
51
- path:string;
52
- };
53
- }
47
+ path:string;};}
54
48
  /**
55
49
  * Detect an existing-item create conflict across separately bundled SDKs.
56
50
  * Requires the producer code, conflict exit code and usable existing-item
@@ -62,14 +56,13 @@ export declare function isItemAlreadyExistsError(error:unknown):error is PmItemA
62
56
  * omitted values default to the CLI usage exit code, an empty context, and no
63
57
  * `cause`.
64
58
  */
65
- export interface CreatePmCliExpectedErrorOptions {
59
+ export interface CreatePmCliExpectedErrorOptions{
66
60
  /** Positive exit code to assign; defaults to the usage-error code. Non-finite or non-positive values throw. */
67
61
  exitCode?:number;
68
62
  /** Structured, secret-free diagnostic metadata to attach to the error. */
69
63
  context?:PmCliErrorContext;
70
64
  /** Underlying error to retain as a non-enumerable `cause` when provided. */
71
- cause?:unknown;
72
- }
65
+ cause?:unknown;}
73
66
  /**
74
67
  * Create a package-safe expected CLI error.
75
68
  *
@@ -82,4 +75,4 @@ cause?:unknown;
82
75
  */
83
76
  export declare function createPmCliExpectedError(message:string,options?:CreatePmCliExpectedErrorOptions):PmCliExpectedError;
84
77
  /** Implements check whether pm cli expected error for the public runtime surface of this module. */
85
- export declare function isPmCliExpectedError(error:unknown):error is PmCliExpectedError;
78
+ export declare function isPmCliExpectedError(error:unknown):error is PmCliExpectedError;
@@ -1,23 +1,20 @@
1
- import { type EvalSearchMode } from "../core/search/eval.js";
2
- import type { GlobalOptions } from "../core/shared/command-types.js";
3
- export { EVAL_QUERY_SET_CONTRACT,EVAL_QUERY_SET_EXAMPLE,EVAL_QUERY_SET_SCHEMA_ID,parseEvalQuerySet,} from "../core/search/eval.js";
1
+ import{type EvalSearchMode}from "../core/search/eval.js";import type{GlobalOptions}from "../core/shared/command-types.js";export{EVAL_QUERY_SET_CONTRACT,EVAL_QUERY_SET_EXAMPLE,EVAL_QUERY_SET_SCHEMA_ID,parseEvalQuerySet,}from "../core/search/eval.js";
4
2
  /** Relative location (under the pm root) of the default golden-query set. A git-tracked, human-curated file so relevance ground truth lives alongside the tracker it evaluates. */
5
3
  export declare const DEFAULT_EVAL_QUERIES_RELATIVE_PATH:string;
6
4
  /** Evaluation inputs shared by SDK hosts and the CLI adapter. */
7
- export interface EvalOptions {
5
+ export interface EvalOptions{
8
6
  /** Default retrieval mode for queries that do not set their own (keyword|semantic|hybrid). */
9
7
  mode?:string;
10
8
  /** Metric cutoff (`@k`); positive integer, defaults to {@link DEFAULT_EVAL_K}. */
11
- k?:string | number;
9
+ k?:string|number;
12
10
  /** Gate threshold: exit non-zero when the aggregate nDCG@k falls below this `[0,1]` value. */
13
- failUnder?:string | number;
11
+ failUnder?:string|number;
14
12
  /** Override path to the golden-query JSON file (defaults to `<pmRoot>/search/eval-queries.json`). */
15
13
  queries?:string;
16
14
  /** Output format override: json|toon. */
17
- format?:string;
18
- }
15
+ format?:string;}
19
16
  /** Per-query relevance report row emitted by {@link runEval}. */
20
- export interface EvalQueryReport {
17
+ export interface EvalQueryReport{
21
18
  /** Original golden-query text used for retrieval. */
22
19
  query:string;
23
20
  /** Resolved retrieval mode after applying query and run defaults. */
@@ -35,28 +32,21 @@ precision:number;
35
32
  /** Fraction of judged relevant items retrieved at the selected cutoff. */
36
33
  recall:number;
37
34
  /** Failed per-query floors, compared against unrounded scores. */
38
- violations?:string[];
39
- }
35
+ violations?:string[];}
40
36
  /** Rounded ranking evidence and the verdict computed from unrounded metrics. */
41
- export interface EvalResult {
37
+ export interface EvalResult{
42
38
  /** Maximum ranking positions scored for each query. */
43
39
  k:number;
44
40
  /** Number of query entries represented by this result. */
45
41
  query_count:number;
46
42
  /** Equal-weight macro averages across all evaluated queries. */
47
- aggregate:{
48
- ndcg:number;
49
- mrr:number;
50
- precision:number;
51
- recall:number;
52
- };
43
+ aggregate:{ndcg:number;mrr:number;precision:number;recall:number;};
53
44
  /** Individual query scores and any failed declared floors. */
54
45
  queries:EvalQueryReport[];
55
46
  /** Present only when `--fail-under` was supplied. */
56
47
  fail_under?:number;
57
48
  /** Whether every declared per-query floor and optional aggregate nDCG threshold passed. */
58
- passed:boolean;
59
- }
49
+ passed:boolean;}
60
50
  /**
61
51
  * Run the search-relevance evaluation (pm-u8n5). Loads the golden-query set
62
52
  * (default `<pmRoot>/search/eval-queries.json`, overridable via `--queries`),
@@ -66,4 +56,4 @@ passed:boolean;
66
56
  * supplied, the aggregate `--fail-under` threshold. The CLI maps any failed
67
57
  * threshold to a non-zero exit code.
68
58
  */
69
- export declare const runEval:(options:EvalOptions,global:GlobalOptions) => Promise<EvalResult>;
59
+ export declare const runEval:(options:EvalOptions,global:GlobalOptions)=> Promise<EvalResult>;
@@ -1,6 +1,6 @@
1
- import { type FlagDefinition } from "../runtime-primitives.js";
1
+ import{type FlagDefinition}from "../runtime-primitives.js";
2
2
  /** Flag metadata consumed by loose-option parsing across core and extension commands. */
3
- export interface LooseCommandFlagDefinition {
3
+ export interface LooseCommandFlagDefinition{
4
4
  /** Canonical long option token. */
5
5
  long?:string;
6
6
  /** Optional short option token. */
@@ -22,8 +22,7 @@ repeatable?:boolean;
22
22
  /** Value used when callers omit the option. */
23
23
  default?:unknown;
24
24
  /** `strict` refuses malformed number/boolean tokens before dispatch; `coerce` (default) forwards them. */
25
- value_validation?:string;
26
- }
25
+ value_validation?:string;}
27
26
  /** Collect every option key the declared flags answer to: each long flag's camel-case key and each short letter. */
28
27
  export declare function collectLooseCommandOptionKeysForDefinitions(definitions:ReadonlyArray<LooseCommandFlagDefinition>):Set<string>;
29
28
  /**
@@ -32,12 +31,11 @@ export declare function collectLooseCommandOptionKeysForDefinitions(definitions:
32
31
  * its declared flags and the host flags it inherits, because the host
33
32
  * definitions it is also validated against include controls it refuses.
34
33
  */
35
- export interface LooseOptionRefusalListing {
34
+ export interface LooseOptionRefusalListing{
36
35
  /** Definitions whose labels are listed, in place of every validated definition. */
37
36
  definitions?:ReadonlyArray<LooseCommandFlagDefinition>;
38
37
  /** Host flags listed after the definitions' labels. */
39
- inheritedFlags?:readonly string[];
40
- }
38
+ inheritedFlags?:readonly string[];}
41
39
  /** Refuse an option no declaration owns, a disabled flag that was supplied, or a required flag that is missing, naming the command and its accepted flags. */
42
40
  export declare function validateLooseCommandOptionsWithFlagDefinitions(options:Record<string,unknown>,definitions:ReadonlyArray<LooseCommandFlagDefinition>,commandPath:string,listing?:LooseOptionRefusalListing):void;
43
41
  /** Fold each declared flag's spellings into its handler key, apply declared defaults, and coerce values by declared type, refusing malformed strict scalars. */
@@ -53,14 +51,9 @@ export declare function stripLooseCommandOptionTokens(args:string[],definitions:
53
51
  * `context.options` — the key `pm contracts` publishes as `sdk_option` and the
54
52
  * key direct callers pass to `PmClient.run` or the test harness.
55
53
  */
56
- export declare function resolveExtensionFlagOptionKey(definition:LooseCommandFlagDefinition):string | null;
54
+ export declare function resolveExtensionFlagOptionKey(definition:LooseCommandFlagDefinition):string|null;
57
55
  /** Join contributed flags by stable operation identity so canonical and compatibility command paths share one schema. */
58
- export declare function collectExtensionFlagDefinitionsForCommand(registrations:{
59
- readonly flags:ReadonlyArray<{
60
- readonly target_command:string;
61
- readonly flags:readonly FlagDefinition[];
62
- }>;
63
- },commandPath:string):FlagDefinition[];
56
+ export declare function collectExtensionFlagDefinitionsForCommand(registrations:{readonly flags:ReadonlyArray<{readonly target_command:string;readonly flags:readonly FlagDefinition[];}>;},commandPath:string):FlagDefinition[];
64
57
  /**
65
58
  * Normalize the options a direct caller — `PmClient.run`, an MCP tool call, or
66
59
  * the extension test harness — passes to an extension command, exactly as CLI
@@ -74,26 +67,25 @@ readonly flags:readonly FlagDefinition[];
74
67
  */
75
68
  export declare function normalizeDirectExtensionCommandOptions(options:Record<string,unknown>,definitions:ReadonlyArray<LooseCommandFlagDefinition>,commandPath:string):Record<string,unknown>;
76
69
  /** How an argv option token takes its value, as Commander parses it: `<value>`, `[value]`, or a switch. */
77
- export type ArgvOptionArity = "required" | "optional" | "none";
70
+ export type ArgvOptionArity="required"|"optional"|"none";
78
71
  /** An option a command registered with Commander: how it takes its value and the attribute it sets. */
79
- export interface ArgvCommandOption {
72
+ export interface ArgvCommandOption{
80
73
  /** Value arity Commander applies to the option. */
81
74
  arity:ArgvOptionArity;
82
75
  /** Commander attribute the option sets, compared with a declaration's handler key. */
83
76
  key:string;
84
77
  /** Whether the option is variadic, so it keeps consuming following operands. */
85
- variadic?:boolean;
86
- }
78
+ variadic?:boolean;}
87
79
  /**
88
80
  * One command's captured option tokens and the options its own parser
89
81
  * recognizes. Commander lets an ancestor consume its own options anywhere in
90
82
  * the argv after its name, so every command on the dispatch path is a scope.
91
83
  */
92
- export interface ArgvOptionScope {
84
+ export interface ArgvOptionScope{
93
85
  /** Tokens the command's option parser received. */
94
86
  tokens:readonly string[];
95
87
  /** The Commander option that owns a spelling on this command, if any. */
96
- optionOf:(spelling:string) => ArgvCommandOption | undefined;
88
+ optionOf:(spelling:string)=> ArgvCommandOption|undefined;
97
89
  /** Whether declared flags the command did not register with Commander are read too (the dispatched leaf). */
98
90
  includesLooseFlags:boolean;
99
91
  /** Whether a negative number is a value, which Commander allows when no numeric short option exists on the path. */
@@ -104,11 +96,7 @@ negativeNumbersAreValues:boolean;
104
96
  * unrecognized token) or pass-through options (at the first unrecognized
105
97
  * token). Absent: the command reads its options anywhere.
106
98
  */
107
- stop?:{
108
- atSubcommand:(token:string) => boolean;
109
- atFirstUnrecognized:boolean;
110
- };
111
- }
99
+ stop?:{atSubcommand:(token:string)=> boolean;atFirstUnrecognized:boolean;};}
112
100
  /**
113
101
  * Refuse CLI argv that sets one declared scalar flag through two spellings
114
102
  * with different values (pm-wlxf8f), as direct callers are refused through
@@ -120,4 +108,4 @@ atFirstUnrecognized:boolean;
120
108
  * Values compare after the declared coercion, so `--count 1 -c 1` is
121
109
  * accepted; repeats of one spelling and list flags are not checked.
122
110
  */
123
- export declare function refuseConflictingArgvOptionSpellings(scopes:readonly ArgvOptionScope[],definitions:ReadonlyArray<LooseCommandFlagDefinition>,commandPath:string):void;
111
+ export declare function refuseConflictingArgvOptionSpellings(scopes:readonly ArgvOptionScope[],definitions:ReadonlyArray<LooseCommandFlagDefinition>,commandPath:string):void;
@@ -16,10 +16,9 @@
16
16
  * as `explore`/`doctor` already do) and hands the results here, so the same
17
17
  * builder is trivially unit-testable against synthetic activations.
18
18
  */
19
- import { type ExtensionActivationSummary } from "../../core/extensions/activation-summary.js";
20
- import type { ExtensionActivationResult,ExtensionLayer,ExtensionLoadResult } from "../../core/extensions/loader.js";
19
+ import{type ExtensionActivationSummary}from "../../core/extensions/activation-summary.js";import type{ExtensionActivationResult,ExtensionLayer,ExtensionLoadResult}from "../../core/extensions/loader.js";
21
20
  /** Runtime state of a described extension. `ok` loaded and activated cleanly, `failed` loaded but threw during `activate`, and `not_loaded` failed to import at all -- the latter two register nothing, so their `surfaces` are empty and the status explains why (rather than implying the extension contributes nothing). */
22
- export type ExtensionDescribeActivationStatus = "ok" | "failed" | "not_loaded";
21
+ export type ExtensionDescribeActivationStatus="ok"|"failed"|"not_loaded";
23
22
  /**
24
23
  * One extension's contribution to the workspace: its identity plus the
25
24
  * {@link ExtensionActivationSummary} of every surface it registered.
@@ -30,7 +29,7 @@ export type ExtensionDescribeActivationStatus = "ok" | "failed" | "not_loaded";
30
29
  * combined surfaces -- the `layer`/`version` fields still distinguish the
31
30
  * physical entries.
32
31
  */
33
- export interface ExtensionSurfaceDescription {
32
+ export interface ExtensionSurfaceDescription{
34
33
  /** Value that configures or reports name for this contract. */
35
34
  name:string;
36
35
  /** Value that configures or reports layer for this contract. */
@@ -40,17 +39,16 @@ version:string;
40
39
  /** Activation outcome reported for this extension. */
41
40
  activation_status:ExtensionDescribeActivationStatus;
42
41
  /** Value that configures or reports surfaces for this contract. */
43
- surfaces:ExtensionActivationSummary;
44
- }
42
+ surfaces:ExtensionActivationSummary;}
45
43
  /**
46
44
  * Result of {@link buildExtensionDescribeResult}: the per-extension surface maps
47
45
  * plus a deduplicated `union` across the described set. `target` echoes the
48
46
  * requested name filter (or `null` for the whole workspace) and `total` counts
49
47
  * the described entries so callers need not re-measure `extensions`.
50
48
  */
51
- export interface ExtensionDescribeResult {
49
+ export interface ExtensionDescribeResult{
52
50
  /** Value that configures or reports target for this contract. */
53
- target:string | null;
51
+ target:string|null;
54
52
  /** Value that configures or reports total for this contract. */
55
53
  total:number;
56
54
  /** Value that configures or reports extensions for this contract. */
@@ -58,30 +56,27 @@ extensions:ExtensionSurfaceDescription[];
58
56
  /** Value that configures or reports union for this contract. */
59
57
  union:ExtensionActivationSummary;
60
58
  /** Deterministic ownership table for every registered command handler or override in scope. */
61
- command_ownership:ExtensionCommandOwnership[];
62
- }
59
+ command_ownership:ExtensionCommandOwnership[];}
63
60
  /** One package claim on a command path, including whether runtime precedence selects it. */
64
- export interface ExtensionCommandClaimant {
61
+ export interface ExtensionCommandClaimant{
65
62
  /** Extension manifest name. */
66
63
  name:string;
67
64
  /** Extension discovery layer. */
68
65
  layer:ExtensionLayer;
69
66
  /** Whether this claimant is the effective owner under the declared policy. */
70
- winner:boolean;
71
- }
67
+ winner:boolean;}
72
68
  /** Inspectable ownership and collision state for one command registry surface. */
73
- export interface ExtensionCommandOwnership {
69
+ export interface ExtensionCommandOwnership{
74
70
  /** Full command path. */
75
71
  command:string;
76
72
  /** Registry surface that owns dispatch behavior. */
77
- surface:"handler" | "override";
73
+ surface:"handler"|"override";
78
74
  /** Stable runtime precedence policy. */
79
75
  policy:"last_activated_wins";
80
76
  /** Whether more than one extension claims this path on the same surface. */
81
77
  collision:boolean;
82
78
  /** Every claimant in activation order; exactly the final claimant is the winner. */
83
- claimants:ExtensionCommandClaimant[];
84
- }
79
+ claimants:ExtensionCommandClaimant[];}
85
80
  /**
86
81
  * Summarize, by name, every registration surface the loaded extensions exercised.
87
82
  *
@@ -97,7 +92,7 @@ claimants:ExtensionCommandClaimant[];
97
92
  * to install without a second lookup. An unmatched `target` yields an empty
98
93
  * `extensions` array -- the caller decides whether that is a not-found error.
99
94
  */
100
- export declare function buildExtensionDescribeResult(target:string | undefined,loadResult:ExtensionLoadResult,activationResult:ExtensionActivationResult):ExtensionDescribeResult;
95
+ export declare function buildExtensionDescribeResult(target:string|undefined,loadResult:ExtensionLoadResult,activationResult:ExtensionActivationResult):ExtensionDescribeResult;
101
96
  /**
102
97
  * Render an {@link ExtensionDescribeResult} as a Markdown reference document: a
103
98
  * top-level title and scope line, one section per described extension (titled
@@ -112,4 +107,4 @@ export declare function buildExtensionDescribeResult(target:string | undefined,l
112
107
  * target is already a not-found error upstream, so this is the "nothing loaded"
113
108
  * case) the document is the title plus a single explanatory note.
114
109
  */
115
- export declare function renderExtensionDescribeMarkdown(result:ExtensionDescribeResult,noun:string):string;
110
+ export declare function renderExtensionDescribeMarkdown(result:ExtensionDescribeResult,noun:string):string;
@@ -3,39 +3,17 @@
3
3
  *
4
4
  * Implements extension package-management support for Doctor.
5
5
  */
6
- import { activateExtensions,loadExtensions } from "../../core/extensions/index.js";
7
- import { type UnknownExtensionCapabilityWarningDetails } from "../../core/extensions/loader.js";
8
- import type { ExtensionCommandOptions,ExtensionDoctorDetailMode,ExtensionScope,ExtensionTriageSummary,ManagedExtensionSummary } from "../extension.js";
6
+ import{activateExtensions,loadExtensions}from "../../core/extensions/index.js";import{type UnknownExtensionCapabilityWarningDetails}from "../../core/extensions/loader.js";import type{ExtensionCommandOptions,ExtensionDoctorDetailMode,ExtensionScope,ExtensionTriageSummary,ManagedExtensionSummary}from "../extension.js";
9
7
  /** Project loader and activation failures into bounded doctor output. */
10
- export declare function summarizeExtensionFailures(failures:Array<{
11
- layer:string;
12
- name:string;
13
- error:string;
14
- }>):Array<{
15
- layer:string;
16
- name:string;
17
- error:string;
18
- }>;
8
+ export declare function summarizeExtensionFailures(failures:Array<{layer:string;name:string;error:string;}>):Array<{layer:string;name:string;error:string;}>;
19
9
  /** Implements apply doctor runtime activation state for the public runtime surface of this module. */
20
10
  export declare function applyDoctorRuntimeActivationState(extensions:ManagedExtensionSummary[],loadResult:Awaited<ReturnType<typeof loadExtensions>>,activationResult:Awaited<ReturnType<typeof activateExtensions>>):ManagedExtensionSummary[];
21
11
  /** Implements build registration collision remediation for the public runtime surface of this module. */
22
- export declare function buildRegistrationCollisionRemediation(warnings:string[],commands:{
23
- deactivate:string;
24
- doctor:string;
25
- }):string | null;
12
+ export declare function buildRegistrationCollisionRemediation(warnings:string[],commands:{deactivate:string;doctor:string;}):string|null;
26
13
  /** Implements classify doctor load failure warnings for the public runtime surface of this module. */
27
- export declare function classifyDoctorLoadFailureWarnings(loadFailures:Array<{
28
- name:string;
29
- error:string;
30
- }>):string[];
14
+ export declare function classifyDoctorLoadFailureWarnings(loadFailures:Array<{name:string;error:string;}>):string[];
31
15
  /** Implements classify doctor activation failure warnings for the public runtime surface of this module. */
32
- export declare function classifyDoctorActivationFailureWarnings(activationFailures?:Array<{
33
- name:string;
34
- trace?:{
35
- missing_capability?:string;
36
- capability?:string;
37
- };
38
- }>):string[];
16
+ export declare function classifyDoctorActivationFailureWarnings(activationFailures?:Array<{name:string;trace?:{missing_capability?:string;capability?:string;};}>):string[];
39
17
  /**
40
18
  * Classify advisory least-privilege warnings for capabilities each loaded
41
19
  * extension declares in its manifest but never registers against.
@@ -50,28 +28,10 @@ export declare function classifyUnusedCapabilityWarnings(loadResult:Awaited<Retu
50
28
  /** Implements build extension triage summary for the public runtime surface of this module. */
51
29
  export declare function buildExtensionTriageSummary(scope:ExtensionScope,warnings:string[],extensions:ManagedExtensionSummary[],options?:ExtensionCommandOptions):ExtensionTriageSummary;
52
30
  /** Implements parse doctor detail mode for the public runtime surface of this module. */
53
- export declare function parseDoctorDetailMode(raw:string | undefined):ExtensionDoctorDetailMode;
31
+ export declare function parseDoctorDetailMode(raw:string|undefined):ExtensionDoctorDetailMode;
54
32
  /** Implements collect unknown capability guidance for the public runtime surface of this module. */
55
33
  export declare function collectUnknownCapabilityGuidance(warnings:string[]):UnknownExtensionCapabilityWarningDetails[];
56
34
  /** Implements build capability contract metadata for the public runtime surface of this module. */
57
- export declare function buildCapabilityContractMetadata():{
58
- version:number;
59
- capabilities:string[];
60
- legacy_aliases:Record<string,string>;
61
- };
35
+ export declare function buildCapabilityContractMetadata():{version:number;capabilities:string[];legacy_aliases:Record<string,string>;};
62
36
  /** Implements build doctor consistency summary for the public runtime surface of this module. */
63
- export declare function buildDoctorConsistencySummary(scope:ExtensionScope,installedExtensions:ManagedExtensionSummary[],loadedExtensions:Array<{
64
- layer:string;
65
- name:string;
66
- }>,failedLoads:Array<{
67
- name:string;
68
- }>,disabledByFlag:boolean):{
69
- warnings:string[];
70
- summary:{
71
- active_project_count:number;
72
- loaded_project_count:number;
73
- active_project_names:string[];
74
- loaded_project_names:string[];
75
- missing_active_project_names:string[];
76
- };
77
- };
37
+ export declare function buildDoctorConsistencySummary(scope:ExtensionScope,installedExtensions:ManagedExtensionSummary[],loadedExtensions:Array<{layer:string;name:string;}>,failedLoads:Array<{name:string;}>,disabledByFlag:boolean):{warnings:string[];summary:{active_project_count:number;loaded_project_count:number;active_project_names:string[];loaded_project_names:string[];missing_active_project_names:string[];};};
@@ -1,17 +1,16 @@
1
- import { type ResolvedInstallSource } from "./install-sources.js";
1
+ import{type ResolvedInstallSource}from "./install-sources.js";
2
2
  /** Limits filesystem enumeration independently of the size of the source tree. */
3
- export interface ExtensionCopyPlanOptions {
3
+ export interface ExtensionCopyPlanOptions{
4
4
  /** Maximum directory entries inspected; defaults to 10,000. */
5
5
  maxEntries?:number;
6
6
  /** Maximum directory nesting inspected; defaults to 64. */
7
7
  maxDepth?:number;
8
8
  /** Cancels between filesystem operations and closes every open directory handle. */
9
- signal?:AbortSignal;
10
- }
9
+ signal?:AbortSignal;}
11
10
  /** Observed logical file bytes, excluding dependency installation, metadata writes, and symlink targets. */
12
- export interface ExtensionCopyPlan {
11
+ export interface ExtensionCopyPlan{
13
12
  /** Snapshot policy shared with the actual copy operation. */
14
- copy_scope:"directory_snapshot" | "nested_filtered_snapshot" | "in_place";
13
+ copy_scope:"directory_snapshot"|"nested_filtered_snapshot"|"in_place";
15
14
  /** Absolute source directory used by the copy. */
16
15
  source_directory:string;
17
16
  /** Absolute destination, resolved through existing parent symlinks. */
@@ -35,35 +34,22 @@ development_entries:number;
35
34
  /** True only when enumeration finished within both limits. */
36
35
  complete:boolean;
37
36
  /** Why enumeration ended; incomplete counts are never presented as totals. */
38
- stop_reason:"complete" | "entry_limit" | "depth_limit";
37
+ stop_reason:"complete"|"entry_limit"|"depth_limit";
39
38
  /** Effective maximum directory entries inspected. */
40
39
  max_entries:number;
41
40
  /** Effective maximum directory nesting inspected. */
42
- max_depth:number;
43
- }
41
+ max_depth:number;}
44
42
  /** Source identity, copy cost, and a script-free packed alternative for one resolved install. */
45
- export interface ExtensionInstallPlan {
43
+ export interface ExtensionInstallPlan{
46
44
  /** Distinguishes an explicit directory snapshot from an unpacked archive or remote source. */
47
- source_mode:"directory" | "archive" | "npm" | "github";
45
+ source_mode:"directory"|"archive"|"npm"|"github";
48
46
  /** Original archive size before unpacking, when supplied as a local file. */
49
47
  archive_bytes?:number;
50
48
  /** Bounded enumeration of the exact selected extension directory. */
51
49
  copy:ExtensionCopyPlan;
52
50
  /** Suggested argument-vector workflow; substitute the pack result filename before installation. */
53
- packed_alternative?:{
54
- cwd:string;
55
- pack:{
56
- command:"npm";
57
- args:string[];
58
- };
59
- install:{
60
- command:"pm";
61
- args:string[];
62
- };
63
- archive_argument:"pack_result[0].filename";
64
- };
65
- }
51
+ packed_alternative?:{cwd:string;pack:{command:"npm";args:string[];};install:{command:"pm";args:string[];};archive_argument:"pack_result[0].filename";};}
66
52
  /** Estimate a resolved install before destination writes. Source resolution may have prepared a temporary archive or remote tree. */
67
- export declare function buildExtensionInstallPlan(resolved:ResolvedInstallSource,destination:string,scope:"project" | "global",options?:ExtensionCopyPlanOptions):Promise<ExtensionInstallPlan>;
53
+ export declare function buildExtensionInstallPlan(resolved:ResolvedInstallSource,destination:string,scope:"project"|"global",options?:ExtensionCopyPlanOptions):Promise<ExtensionInstallPlan>;
68
54
  /** Inspect one directory tree without copying files, executing code, following symlinks, or collecting an unbounded path list. */
69
- export declare function planExtensionDirectoryCopy(sourceDirectory:string,destinationDirectory:string,options?:ExtensionCopyPlanOptions):Promise<ExtensionCopyPlan>;
55
+ export declare function planExtensionDirectoryCopy(sourceDirectory:string,destinationDirectory:string,options?:ExtensionCopyPlanOptions):Promise<ExtensionCopyPlan>;
@@ -1,6 +1,6 @@
1
1
  import fs from "node:fs/promises";
2
2
  /** Retry and lease timing overrides for one extension install lock. */
3
- export interface ExtensionInstallLockOptions {
3
+ export interface ExtensionInstallLockOptions{
4
4
  /** Maximum lock-acquisition attempts. */
5
5
  attempts?:number;
6
6
  /** Delay between contended acquisition attempts. */
@@ -8,14 +8,13 @@ delay_ms?:number;
8
8
  /** Age after which an unchanged owner lease can be reclaimed. */
9
9
  stale_ms?:number;
10
10
  /** Lease heartbeat interval while the operation runs. */
11
- heartbeat_ms?:number;
12
- }
11
+ heartbeat_ms?:number;}
13
12
  /** Identify transient copy races that are safe to retry during extension installation. */
14
- export declare const isRetriableExtensionInstallCopyError:(error:unknown) => boolean;
13
+ export declare const isRetriableExtensionInstallCopyError:(error:unknown)=> boolean;
15
14
  /** Test an unknown failure against one expected errno-style code. */
16
- export declare const isErrnoCode:(error:unknown,code:string) => boolean;
15
+ export declare const isErrnoCode:(error:unknown,code:string)=> boolean;
17
16
  /** Ensure an installed extension carries an ESM package boundary marker. */
18
- export declare const ensureExtensionModuleTypeMarker:(destinationDirectory:string) => Promise<void>;
17
+ export declare const ensureExtensionModuleTypeMarker:(destinationDirectory:string)=> Promise<void>;
19
18
  /**
20
19
  * Link an installed extension to the exact host SDK that activated it.
21
20
  *
@@ -25,12 +24,12 @@ export declare const ensureExtensionModuleTypeMarker:(destinationDirectory:strin
25
24
  * `@unbrained/pm-cli/sdk` and its public subpaths without environment-specific
26
25
  * absolute imports or duplicated runtime loaders.
27
26
  */
28
- export declare const ensureInstalledExtensionSdkLink:(destinationDirectory:string) => Promise<void>;
27
+ export declare const ensureInstalledExtensionSdkLink:(destinationDirectory:string)=> Promise<void>;
29
28
  /** Resolve a possibly partial extension destination through every existing symlink segment. */
30
- export declare const resolveCanonicalExtensionInstallDestination:(destinationDirectory:string) => Promise<string>;
29
+ export declare const resolveCanonicalExtensionInstallDestination:(destinationDirectory:string)=> Promise<string>;
31
30
  /** Copy an extension without recursively copying a destination nested below its source. */
32
- export declare const copyExtensionDirectoryWithoutSelfNesting:(sourceDirectory:string,destinationDirectory:string,copyDirectory:typeof fs.cp,temporaryDirectory?:string) => Promise<void>;
31
+ export declare const copyExtensionDirectoryWithoutSelfNesting:(sourceDirectory:string,destinationDirectory:string,copyDirectory:typeof fs.cp,temporaryDirectory?:string)=> Promise<void>;
33
32
  /** Copy one extension directory with bounded transient-race retries. */
34
- export declare const copyExtensionDirectoryForInstall:(sourceDirectory:string,destinationDirectory:string,copyDirectory?:typeof fs.cp) => Promise<void>;
33
+ export declare const copyExtensionDirectoryForInstall:(sourceDirectory:string,destinationDirectory:string,copyDirectory?:typeof fs.cp)=> Promise<void>;
35
34
  /** Hold an owner-bound install lease and translate host faults from acquisition through operation and cleanup. */
36
- export declare const withExtensionInstallLock:<T>(settingsRoot:string,destinationDirectoryName:string,run:() => Promise<T>,options?:ExtensionInstallLockOptions) => Promise<T>;
35
+ export declare const withExtensionInstallLock:<T>(settingsRoot:string,destinationDirectoryName:string,run:()=> Promise<T>,options?:ExtensionInstallLockOptions)=> Promise<T>;