@unbrained/pm-cli 2026.11.6 → 2026.11.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (343) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/CHANGELOG.md +13 -0
  3. package/dist/cli/expected-revisions.js +1 -1
  4. package/dist/cli/main.js +1 -1
  5. package/dist/cli/runtime/close-fields-retry.js +2 -0
  6. package/dist/cli-bundle/bundle-manifest.json +1 -1
  7. package/dist/cli-bundle/chunks/chunk-3DI6CEF3.js +3 -0
  8. package/dist/cli-bundle/chunks/{chunk-6VRX2CM7.js → chunk-4PPWVIIT.js} +2 -2
  9. package/dist/cli-bundle/chunks/{chunk-7ZRCYESH.js → chunk-5KHLV7JU.js} +47 -47
  10. package/dist/cli-bundle/chunks/{chunk-X3URBPMV.js → chunk-BQ5O3CBF.js} +51 -51
  11. package/dist/cli-bundle/chunks/{chunk-WC4M2H6R.js → chunk-COKKWMSC.js} +2 -2
  12. package/dist/cli-bundle/chunks/chunk-D53G3NOE.js +6 -0
  13. package/dist/cli-bundle/chunks/{chunk-LS3GI3H4.js → chunk-ETHAZC3F.js} +2 -2
  14. package/dist/cli-bundle/chunks/chunk-F3B2ULHB.js +122 -0
  15. package/dist/cli-bundle/chunks/chunk-JZWFZH2K.js +2 -0
  16. package/dist/cli-bundle/chunks/{chunk-335BZ75D.js → chunk-KPAVZILX.js} +2 -2
  17. package/dist/cli-bundle/chunks/{chunk-OH6WQ7VT.js → chunk-MQOZNGPS.js} +2 -2
  18. package/dist/cli-bundle/chunks/chunk-O6TIOKCM.js +9 -0
  19. package/dist/cli-bundle/chunks/{chunk-PE3ASURT.js → chunk-OIBSKKCO.js} +2 -2
  20. package/dist/cli-bundle/chunks/{chunk-HRFGFIYU.js → chunk-OJZG7Y6S.js} +2 -2
  21. package/dist/cli-bundle/chunks/{chunk-SLC5UWCM.js → chunk-QG6FLDM4.js} +2 -2
  22. package/dist/cli-bundle/chunks/{chunk-D7KYPRK4.js → chunk-RFI4O6NU.js} +2 -2
  23. package/dist/cli-bundle/chunks/{chunk-TSQCUBUX.js → chunk-TGQPCNAD.js} +2 -2
  24. package/dist/cli-bundle/chunks/{chunk-DAX3AOFI.js → chunk-VM6OGNQC.js} +2 -2
  25. package/dist/cli-bundle/chunks/{chunk-S4LPZ4TN.js → chunk-WS2N4TQW.js} +7 -7
  26. package/dist/cli-bundle/chunks/{chunk-UEGXWXUZ.js → chunk-WXVMPLBY.js} +2 -2
  27. package/dist/cli-bundle/chunks/{chunk-QNWUIPBO.js → chunk-WYIDX67P.js} +30 -30
  28. package/dist/cli-bundle/chunks/{chunk-7DEKAXVA.js → chunk-XSEDESNW.js} +2 -2
  29. package/dist/cli-bundle/chunks/item-revision-SPEKTFBB.js +2 -0
  30. package/dist/cli-bundle/chunks/item-transaction-BT55TQXE.js +2 -0
  31. package/dist/cli-bundle/chunks/{mutation-admission-INMM3HHG.js → mutation-admission-LUXUKISJ.js} +2 -2
  32. package/dist/cli-bundle/chunks/{register-list-query-5Y5JKWU5.js → register-list-query-DU4W7VJU.js} +3 -3
  33. package/dist/cli-bundle/chunks/{register-mutation-MDSUU3G7.js → register-mutation-IC2C53QK.js} +2 -2
  34. package/dist/cli-bundle/chunks/{register-operations-WJHZJFK2.js → register-operations-AHDWE2G3.js} +2 -2
  35. package/dist/cli-bundle/chunks/{register-setup-RRFOS7IT.js → register-setup-7BGG3CI3.js} +2 -2
  36. package/dist/cli-bundle/chunks/{stage-E3MMV4TV.js → stage-S5BYWLGY.js} +2 -2
  37. package/dist/cli-bundle/focused-chunks/{chunk-CPMSL4HS.js → chunk-4EXRRSDS.js} +2 -2
  38. package/dist/cli-bundle/focused-chunks/chunk-4LDOL6U7.js +26 -0
  39. package/dist/cli-bundle/focused-chunks/chunk-A46YSPRF.js +2 -0
  40. package/dist/cli-bundle/focused-chunks/{chunk-RFTJZ5VB.js → chunk-AI2PYNFI.js} +2 -2
  41. package/dist/cli-bundle/focused-chunks/chunk-AJ2I377F.js +44 -0
  42. package/dist/cli-bundle/focused-chunks/{chunk-WSOAASCY.js → chunk-BIDF4KO7.js} +2 -2
  43. package/dist/cli-bundle/focused-chunks/{chunk-VWWTIX5L.js → chunk-CWFNQQZE.js} +2 -2
  44. package/dist/cli-bundle/focused-chunks/chunk-D3U7FOZR.js +2 -0
  45. package/dist/cli-bundle/focused-chunks/{chunk-F62XGAAY.js → chunk-G2VIY6XA.js} +2 -2
  46. package/dist/cli-bundle/focused-chunks/{chunk-MG7C3JUY.js → chunk-GFF6BITP.js} +2 -2
  47. package/dist/cli-bundle/focused-chunks/{chunk-LW64TINU.js → chunk-IIBWXNW3.js} +2 -2
  48. package/dist/cli-bundle/focused-chunks/{chunk-AHWJPZSJ.js → chunk-IYJRFJHT.js} +2 -2
  49. package/dist/cli-bundle/focused-chunks/{chunk-D2TBEBNW.js → chunk-J5N42SKC.js} +2 -2
  50. package/dist/cli-bundle/focused-chunks/{chunk-MC7IE7D7.js → chunk-JRJOFMI7.js} +2 -2
  51. package/dist/cli-bundle/focused-chunks/{chunk-CZM75DE3.js → chunk-KL33JMPC.js} +2 -2
  52. package/dist/cli-bundle/focused-chunks/{chunk-E56OXRYH.js → chunk-LH4C7BLB.js} +2 -2
  53. package/dist/cli-bundle/focused-chunks/{chunk-YMGB2O4E.js → chunk-LTQEYE2L.js} +2 -2
  54. package/dist/cli-bundle/focused-chunks/chunk-LTTMERPN.js +12 -0
  55. package/dist/cli-bundle/focused-chunks/{chunk-7KK66ISG.js → chunk-LW4TN5ZM.js} +2 -2
  56. package/dist/cli-bundle/focused-chunks/{chunk-XHOBYCVE.js → chunk-MESFDQ3H.js} +2 -2
  57. package/dist/cli-bundle/focused-chunks/{chunk-G4QP365K.js → chunk-MWTBAI3V.js} +2 -2
  58. package/dist/cli-bundle/focused-chunks/chunk-TWULNB3N.js +2 -0
  59. package/dist/cli-bundle/focused-chunks/{chunk-C6P6HPCX.js → chunk-XAC6NP7U.js} +2 -2
  60. package/dist/cli-bundle/focused-chunks/{chunk-GS3JC5UU.js → chunk-XG3TBYQK.js} +2 -2
  61. package/dist/cli-bundle/focused-chunks/chunk-XMZAFKVP.js +91 -0
  62. package/dist/cli-bundle/focused-chunks/item-revision-ELI6NGMY.js +2 -0
  63. package/dist/cli-bundle/focused-chunks/{item-transaction-H2XACBOP.js → item-transaction-GUGAUY77.js} +2 -2
  64. package/dist/cli-bundle/focused-chunks/{mutation-admission-4WM7TNHZ.js → mutation-admission-54FI37AA.js} +2 -2
  65. package/dist/cli-bundle/focused-chunks/{stage-WV7QXR4C.js → stage-OHDJ43T2.js} +2 -2
  66. package/dist/cli-bundle/main.js +31 -31
  67. package/dist/cli-bundle/sdk-authoring.js +1 -1
  68. package/dist/cli-bundle/sdk-contracts.js +1 -1
  69. package/dist/cli-bundle/sdk-core.js +1 -1
  70. package/dist/cli-bundle/sdk-governance.js +1 -1
  71. package/dist/cli-bundle/sdk-graph.js +1 -1
  72. package/dist/cli-bundle/sdk-merge.js +57 -57
  73. package/dist/cli-bundle/sdk-query.js +1 -1
  74. package/dist/cli-bundle/sdk-runtime.js +1 -1
  75. package/dist/cli-bundle/sdk-testing.js +1 -1
  76. package/dist/cli-bundle/sdk.js +2 -2
  77. package/dist/core/store/item-mutation-precondition.d.ts +58 -0
  78. package/dist/core/store/item-mutation-precondition.js +1 -1
  79. package/dist/sdk/command-line.d.ts +5 -1
  80. package/dist/sdk/command-line.js +1 -1
  81. package/dist/sdk/lifecycle/close.js +1 -1
  82. package/dist/sdk/lifecycle/item-revision.d.ts +15 -4
  83. package/dist/sdk/lifecycle/item-revision.js +1 -1
  84. package/dist/sdk/output/list-envelope.d.ts +18 -7
  85. package/dist/sdk/output/list-envelope.js +1 -1
  86. package/dist/sdk/output-projection.js +1 -1
  87. package/dist/sdk/public-surface.json +1 -1
  88. package/dist/sdk/query/get.d.ts +16 -6
  89. package/dist/sdk/query/get.js +1 -1
  90. package/dist/sdk/query/search/response.js +1 -1
  91. package/dist/sdk/runtime.js +1 -1
  92. package/docs/CLOSE_EVIDENCE_RECOVERY.md +36 -2
  93. package/docs/COMMANDS.md +10 -1
  94. package/docs/GET_READ_EVIDENCE.md +24 -3
  95. package/docs/RELEASING.md +17 -0
  96. package/docs/SDK.md +24 -7
  97. package/marketplace.json +1 -1
  98. package/package.json +1 -1
  99. package/packages/pm-beads/package.json +1 -1
  100. package/packages/pm-calendar/package.json +1 -1
  101. package/packages/pm-command-kit/package.json +1 -1
  102. package/packages/pm-digital-twin/package.json +1 -1
  103. package/packages/pm-governance-audit/package.json +1 -1
  104. package/packages/pm-guide-shell/package.json +1 -1
  105. package/packages/pm-kanban/package.json +1 -1
  106. package/packages/pm-lifecycle-hooks/package.json +1 -1
  107. package/packages/pm-linked-test-adapters/package.json +1 -1
  108. package/packages/pm-search-advanced/package.json +1 -1
  109. package/packages/pm-templates/package.json +1 -1
  110. package/packages/pm-todos/package.json +1 -1
  111. package/packages/pm-vcs/package.json +1 -1
  112. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
  113. package/plugins/pm-claude/package.json +1 -1
  114. package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
  115. package/plugins/pm-codex/package.json +1 -1
  116. package/plugins/pm-codex/plugin.json +1 -1
  117. package/runtime-dependencies.json +1 -1
  118. package/dist/cli/after-command-context-usage.d.ts +0 -21
  119. package/dist/cli/argv-utils.d.ts +0 -12
  120. package/dist/cli/bootstrap-args.d.ts +0 -6
  121. package/dist/cli/bundle-integrity.d.ts +0 -49
  122. package/dist/cli/command-namespaces.d.ts +0 -9
  123. package/dist/cli/commander-usage.d.ts +0 -73
  124. package/dist/cli/commands/annotations/comments.d.ts +0 -2
  125. package/dist/cli/commands/annotations/docs.d.ts +0 -6
  126. package/dist/cli/commands/annotations/files.d.ts +0 -6
  127. package/dist/cli/commands/annotations/learnings.d.ts +0 -2
  128. package/dist/cli/commands/annotations/notes.d.ts +0 -2
  129. package/dist/cli/commands/extension/describe.d.ts +0 -2
  130. package/dist/cli/commands/extension/extension.d.ts +0 -6
  131. package/dist/cli/commands/extension/scaffold.d.ts +0 -2
  132. package/dist/cli/commands/extension/shared.d.ts +0 -2
  133. package/dist/cli/commands/governance/gc.d.ts +0 -6
  134. package/dist/cli/commands/governance/health.d.ts +0 -6
  135. package/dist/cli/commands/governance/telemetry.d.ts +0 -6
  136. package/dist/cli/commands/governance/validate.d.ts +0 -9
  137. package/dist/cli/commands/history/activity.d.ts +0 -6
  138. package/dist/cli/commands/history/history-compact.d.ts +0 -7
  139. package/dist/cli/commands/history/history-redact.d.ts +0 -8
  140. package/dist/cli/commands/history/history-repair.d.ts +0 -7
  141. package/dist/cli/commands/history/history.d.ts +0 -2
  142. package/dist/cli/commands/history/restore.d.ts +0 -6
  143. package/dist/cli/commands/lifecycle/append.d.ts +0 -6
  144. package/dist/cli/commands/lifecycle/claim.d.ts +0 -2
  145. package/dist/cli/commands/lifecycle/close-many.d.ts +0 -2
  146. package/dist/cli/commands/lifecycle/close.d.ts +0 -6
  147. package/dist/cli/commands/lifecycle/copy.d.ts +0 -6
  148. package/dist/cli/commands/lifecycle/create.d.ts +0 -10
  149. package/dist/cli/commands/lifecycle/delete.d.ts +0 -6
  150. package/dist/cli/commands/lifecycle/focus.d.ts +0 -6
  151. package/dist/cli/commands/lifecycle/plan.d.ts +0 -9
  152. package/dist/cli/commands/lifecycle/update-many.d.ts +0 -6
  153. package/dist/cli/commands/lifecycle/update.d.ts +0 -10
  154. package/dist/cli/commands/query/aggregate.d.ts +0 -2
  155. package/dist/cli/commands/query/context.d.ts +0 -6
  156. package/dist/cli/commands/query/deps.d.ts +0 -6
  157. package/dist/cli/commands/query/duplicates.d.ts +0 -6
  158. package/dist/cli/commands/query/eval.d.ts +0 -6
  159. package/dist/cli/commands/query/get.d.ts +0 -6
  160. package/dist/cli/commands/query/graph.d.ts +0 -7
  161. package/dist/cli/commands/query/list.d.ts +0 -6
  162. package/dist/cli/commands/query/next.d.ts +0 -6
  163. package/dist/cli/commands/query/search.d.ts +0 -6
  164. package/dist/cli/commands/query/stats.d.ts +0 -6
  165. package/dist/cli/commands/test/test-all.d.ts +0 -6
  166. package/dist/cli/commands/test/test-runs.d.ts +0 -6
  167. package/dist/cli/commands/test/test.d.ts +0 -6
  168. package/dist/cli/commands/workspace/config.d.ts +0 -6
  169. package/dist/cli/commands/workspace/contracts.d.ts +0 -2
  170. package/dist/cli/commands/workspace/init.d.ts +0 -6
  171. package/dist/cli/commands/workspace/merge.d.ts +0 -8
  172. package/dist/cli/commands/workspace/profile.d.ts +0 -6
  173. package/dist/cli/commands/workspace/schema.d.ts +0 -7
  174. package/dist/cli/commands/workspace/upgrade.d.ts +0 -2
  175. package/dist/cli/context-intent-invocation.d.ts +0 -2
  176. package/dist/cli/description-stdin.d.ts +0 -2
  177. package/dist/cli/error-guidance.d.ts +0 -276
  178. package/dist/cli/expected-revisions.d.ts +0 -55
  179. package/dist/cli/extension-command-help.d.ts +0 -137
  180. package/dist/cli/extension-command-options.d.ts +0 -37
  181. package/dist/cli/extension-recovery.d.ts +0 -31
  182. package/dist/cli/help-content.d.ts +0 -57
  183. package/dist/cli/help-json-payload.d.ts +0 -83
  184. package/dist/cli/invocation-profile.d.ts +0 -26
  185. package/dist/cli/main.d.ts +0 -263
  186. package/dist/cli/migration-gates.d.ts +0 -55
  187. package/dist/cli/option-values.d.ts +0 -3
  188. package/dist/cli/preflight-warnings.d.ts +0 -11
  189. package/dist/cli/register-annotations.d.ts +0 -11
  190. package/dist/cli/register-assurance.d.ts +0 -8
  191. package/dist/cli/register-files-lookup.d.ts +0 -9
  192. package/dist/cli/register-history-activity.d.ts +0 -8
  193. package/dist/cli/register-history-author.d.ts +0 -8
  194. package/dist/cli/register-history-maintenance.d.ts +0 -9
  195. package/dist/cli/register-list-query.d.ts +0 -27
  196. package/dist/cli/register-mutation-options.d.ts +0 -10
  197. package/dist/cli/register-mutation.d.ts +0 -16
  198. package/dist/cli/register-operations.d.ts +0 -85
  199. package/dist/cli/register-setup.d.ts +0 -16
  200. package/dist/cli/register-structured-mutation.d.ts +0 -15
  201. package/dist/cli/registration-helpers.d.ts +0 -2
  202. package/dist/cli/runtime/activation.d.ts +0 -51
  203. package/dist/cli/runtime/field-route-retry.d.ts +0 -15
  204. package/dist/cli/runtime/invocation-options.d.ts +0 -43
  205. package/dist/cli/runtime/projection-retry.d.ts +0 -9
  206. package/dist/cli/runtime/selection.d.ts +0 -35
  207. package/dist/cli/runtime/telemetry-outcome.d.ts +0 -20
  208. package/dist/cli/runtime-compatibility-boundary.d.ts +0 -17
  209. package/dist/cli/schema/registration.d.ts +0 -4
  210. package/dist/cli/schema-registration-helpers.d.ts +0 -24
  211. package/dist/cli/search-refresh.d.ts +0 -2
  212. package/dist/cli/stats-analytics-json.d.ts +0 -9
  213. package/dist/cli/telemetry-flush.d.ts +0 -2
  214. package/dist/cli-bundle/chunks/chunk-5GWEY4P6.js +0 -122
  215. package/dist/cli-bundle/chunks/chunk-AUEKTX7V.js +0 -6
  216. package/dist/cli-bundle/chunks/chunk-FRNMQM45.js +0 -2
  217. package/dist/cli-bundle/chunks/chunk-HNGLDMSZ.js +0 -9
  218. package/dist/cli-bundle/chunks/chunk-YKXATU2G.js +0 -3
  219. package/dist/cli-bundle/chunks/item-revision-OJJVPQY7.js +0 -2
  220. package/dist/cli-bundle/chunks/item-transaction-TBKEATN6.js +0 -2
  221. package/dist/cli-bundle/focused-chunks/chunk-2KTJY7BV.js +0 -44
  222. package/dist/cli-bundle/focused-chunks/chunk-G5PJCR7R.js +0 -2
  223. package/dist/cli-bundle/focused-chunks/chunk-M6V7UMWL.js +0 -26
  224. package/dist/cli-bundle/focused-chunks/chunk-MK4HV4JO.js +0 -2
  225. package/dist/cli-bundle/focused-chunks/chunk-O7EI33NP.js +0 -91
  226. package/dist/cli-bundle/focused-chunks/chunk-SNOXXRSJ.js +0 -2
  227. package/dist/cli-bundle/focused-chunks/chunk-UPJUTP2V.js +0 -12
  228. package/dist/cli-bundle/focused-chunks/item-revision-CTDO4H3I.js +0 -2
  229. package/dist/cli.d.ts +0 -13
  230. package/dist/core/checkpoint/checkpoint-gc.d.ts +0 -61
  231. package/dist/core/checkpoint/mutation-context.d.ts +0 -10
  232. package/dist/core/diagnostics/remediation.d.ts +0 -52
  233. package/dist/core/extensions/activation-transaction.d.ts +0 -22
  234. package/dist/core/extensions/command-visibility-tier.d.ts +0 -8
  235. package/dist/core/extensions/exporter-output-contract.d.ts +0 -12
  236. package/dist/core/extensions/extension-candidate.d.ts +0 -26
  237. package/dist/core/extensions/extension-runtime-helpers.d.ts +0 -16
  238. package/dist/core/extensions/module-graph-snapshot.d.ts +0 -19
  239. package/dist/core/extensions/preflight-ownership.d.ts +0 -5
  240. package/dist/core/extensions/read-output-contract.d.ts +0 -5
  241. package/dist/core/extensions/reserved-host-flags.d.ts +0 -18
  242. package/dist/core/extensions/service-ownership.d.ts +0 -8
  243. package/dist/core/extensions/version-diagnostics.d.ts +0 -2
  244. package/dist/core/fs/atomic-create.d.ts +0 -7
  245. package/dist/core/fs/index.d.ts +0 -6
  246. package/dist/core/fs/path-utils.d.ts +0 -2
  247. package/dist/core/history/drift-cache.d.ts +0 -4
  248. package/dist/core/history/drift-scan.d.ts +0 -51
  249. package/dist/core/history/index.d.ts +0 -6
  250. package/dist/core/history/tombstone.d.ts +0 -3
  251. package/dist/core/history/version-address.d.ts +0 -13
  252. package/dist/core/item/index.d.ts +0 -9
  253. package/dist/core/item/item-type-definition.d.ts +0 -51
  254. package/dist/core/item/toon-decode.d.ts +0 -25
  255. package/dist/core/lock/index.d.ts +0 -6
  256. package/dist/core/lock/lock-confinement.d.ts +0 -55
  257. package/dist/core/lock/lock-gc.d.ts +0 -93
  258. package/dist/core/output/mutation-projection.d.ts +0 -13
  259. package/dist/core/output/query-summary.d.ts +0 -30
  260. package/dist/core/search/staleness.d.ts +0 -23
  261. package/dist/core/sentry/sensitive-assignments.d.ts +0 -9
  262. package/dist/core/shared/conflict-markers.d.ts +0 -18
  263. package/dist/core/shared/index.d.ts +0 -9
  264. package/dist/core/shared/memo.d.ts +0 -7
  265. package/dist/core/store/index.d.ts +0 -9
  266. package/dist/core/store/settings-concurrency.d.ts +0 -7
  267. package/dist/core/telemetry/read-sampling.d.ts +0 -8
  268. package/dist/core/test/item-test-run-tracking.d.ts +0 -12
  269. package/dist/core/validate/estimate-defaults.d.ts +0 -21
  270. package/dist/core/validate/linked-artifact-reference.d.ts +0 -20
  271. package/dist/mcp/http-server.d.ts +0 -60
  272. package/dist/mcp/legacy-adapter.d.ts +0 -59
  273. package/dist/mcp/runtime-capabilities.d.ts +0 -57
  274. package/dist/mcp/server.d.ts +0 -101
  275. package/dist/sdk/cli-contracts/bootstrap-command-scanner.d.ts +0 -23
  276. package/dist/sdk/cli-contracts/registration-helpers.d.ts +0 -123
  277. package/dist/sdk/cli-contracts/schemas/assurance-definition.d.ts +0 -796
  278. package/dist/sdk/cli-contracts/string-lists.d.ts +0 -9
  279. package/dist/sdk/cli-contracts/tool-parameter-tables.d.ts +0 -35
  280. package/dist/sdk/context/usage-egress.d.ts +0 -9
  281. package/dist/sdk/dependencies/context-budget-recovery.d.ts +0 -21
  282. package/dist/sdk/dependency-flag-validation.d.ts +0 -32
  283. package/dist/sdk/extension/author-manifest.d.ts +0 -22
  284. package/dist/sdk/extension/bundled-catalog.d.ts +0 -35
  285. package/dist/sdk/extension/concurrency.d.ts +0 -7
  286. package/dist/sdk/extension/copy-scope.d.ts +0 -2
  287. package/dist/sdk/extension/custom-field-collisions.d.ts +0 -6
  288. package/dist/sdk/extension/install-receipts.d.ts +0 -7
  289. package/dist/sdk/extension/install-snapshot.d.ts +0 -34
  290. package/dist/sdk/extension/managed-update-status.d.ts +0 -3
  291. package/dist/sdk/extension/runtime-summary.d.ts +0 -9
  292. package/dist/sdk/extension/scaffold.d.ts +0 -38
  293. package/dist/sdk/generated/error-code-catalog-rows.d.ts +0 -39
  294. package/dist/sdk/generated/generated-error-code-catalog-part-1.d.ts +0 -8
  295. package/dist/sdk/generated/generated-error-code-catalog-part-2.d.ts +0 -8
  296. package/dist/sdk/governance/assurance-limits.d.ts +0 -7
  297. package/dist/sdk/governance/defect-recurrence-signals.d.ts +0 -10
  298. package/dist/sdk/governance/health-merge-evidence.d.ts +0 -23
  299. package/dist/sdk/governance/tracked-runtime-cache.d.ts +0 -24
  300. package/dist/sdk/governance/validate-history-drift.d.ts +0 -7
  301. package/dist/sdk/history/attestation-scan.d.ts +0 -16
  302. package/dist/sdk/history-mcp.d.ts +0 -17
  303. package/dist/sdk/lifecycle/checkpoint-rollback.d.ts +0 -15
  304. package/dist/sdk/lifecycle/core-field-recovery.d.ts +0 -33
  305. package/dist/sdk/lifecycle/core-item-fields.d.ts +0 -6
  306. package/dist/sdk/lifecycle/event-validation-messages.d.ts +0 -6
  307. package/dist/sdk/lifecycle/hierarchy-mutation-lock.d.ts +0 -15
  308. package/dist/sdk/lifecycle/legacy-none-tokens.d.ts +0 -71
  309. package/dist/sdk/lifecycle/mcp-actions.d.ts +0 -24
  310. package/dist/sdk/lifecycle/metadata-normalizers.d.ts +0 -8
  311. package/dist/sdk/lifecycle/mutation-facet-contracts.d.ts +0 -6
  312. package/dist/sdk/lifecycle/mutation-option-validation.d.ts +0 -2
  313. package/dist/sdk/lifecycle/recurrence-parsers.d.ts +0 -34
  314. package/dist/sdk/lifecycle/release-handoff.d.ts +0 -12
  315. package/dist/sdk/lifecycle/repeatable-metadata-parsers.d.ts +0 -18
  316. package/dist/sdk/lifecycle/repeated-terminal-state.d.ts +0 -45
  317. package/dist/sdk/merge/abandoned-receipts.d.ts +0 -15
  318. package/dist/sdk/merge/history-scalar-rebase.d.ts +0 -9
  319. package/dist/sdk/merge/ignored-artifacts.d.ts +0 -13
  320. package/dist/sdk/merge/indexed-receipt-blobs.d.ts +0 -4
  321. package/dist/sdk/merge/receipt-file-boundary.d.ts +0 -23
  322. package/dist/sdk/merge/settlement-hook.d.ts +0 -12
  323. package/dist/sdk/merge/stage.d.ts +0 -13
  324. package/dist/sdk/merge/worktree-config.d.ts +0 -11
  325. package/dist/sdk/query/light-metadata.d.ts +0 -3
  326. package/dist/sdk/query/window-pagination.d.ts +0 -20
  327. package/dist/sdk/read-output/extension.d.ts +0 -7
  328. package/dist/sdk/read-output/provenance.d.ts +0 -20
  329. package/dist/sdk/read-output/surfaces.d.ts +0 -27
  330. package/dist/sdk/runtime/actions.d.ts +0 -4
  331. package/dist/sdk/runtime/mutation-admission.d.ts +0 -2
  332. package/dist/sdk/runtime/mutation-value-validation.d.ts +0 -16
  333. package/dist/sdk/runtime/schema.d.ts +0 -4
  334. package/dist/sdk/runtime-action-aliases.d.ts +0 -7
  335. package/dist/sdk/runtime-extended-actions.d.ts +0 -27
  336. package/dist/sdk/runtime-stats-options.d.ts +0 -9
  337. package/dist/sdk/test/command-args.d.ts +0 -4
  338. package/dist/sdk/test/command-resolution.d.ts +0 -5
  339. package/dist/sdk/test/entry.d.ts +0 -18
  340. package/dist/sdk/test/execution-receipts.d.ts +0 -34
  341. package/dist/sdk/test/receipt-index-snapshot.d.ts +0 -2
  342. package/dist/sdk/test/workspace-snapshot.d.ts +0 -11
  343. package/dist/sdk/traceability/runtime-files-lookup.d.ts +0 -8
@@ -1,4 +1,4 @@
1
- import{a as ug}from"./chunks/chunk-335BZ75D.js";import{a as Nk,b as Lk,c as Dk,d as $k}from"./chunks/chunk-YKXATU2G.js";import{a as Fk,b as Gk}from"./chunks/chunk-SLC5UWCM.js";import{b as nk,c as ik,d as sk,e as ak,f as dk,g as ck,h as lk,i as pk,j as uk,k as mk,l as fk,m as _k,n as hk,o as gk,p as yk,q as bk,r as Tk}from"./chunks/chunk-PE3ASURT.js";import{A as Ok,B as Rk,C as Ik,D as Pk,E as Mk,F as kk,G as xk,a as xs,b as gR,c as yR,d as Ed,e as Sd,f as wd,h as Ad,i as vd,j as Od,k as Rd,l as Id,m as Pd,n as Md,o as kd,p as Bd,q as qd,r as zd,s as Hd,t as Vd,u as Ck,v as Ek,w as Sk,x as wk,y as Ak,z as vk}from"./chunks/chunk-D7KYPRK4.js";import{A as ux,B as mx,C as fx,D as _x,E as hx,F as gx,G as yx,H as bx,I as Tx,J as Cx,K as Ex,L as Sx,M as wx,N as Ax,O as vx,P as Ox,Q as Rx,R as Ix,S as Px,T as Mx,U as kx,V as xx,W as Nx,X as Lx,Y as Dx,Z as $x,_ as Fx,a as Uk,b as jk,c as Bk,d as qk,e as zk,f as Hk,g as Vk,h as Kk,i as Wk,j as Yk,k as Xk,l as Jk,m as Zk,n as Qk,o as ex,p as tx,q as rx,r as ox,s as nx,t as ix,u as sx,v as ax,w as dx,x as cx,y as lx,z as px}from"./chunks/chunk-WC4M2H6R.js";import{$ as Wm,$a as j_,$b as jh,A as km,Aa as c_,Ab as fh,B as xm,Ba as l_,Bb as _h,C as Lm,Ca as p_,Cb as hh,D as Dm,Da as u_,Db as gh,E as qt,Ea as m_,Eb as yh,F as zt,Fa as f_,Fb as bh,G as Ht,Ga as __,Gb as Th,H as Vt,Ha as h_,Hb as Ch,I as Kt,Ia as g_,Ib as Eh,J as Wt,Ja as y_,Jb as Sh,K as Yt,Ka as b_,Kb as wh,L as Xt,La as T_,Lb as Ah,M as Jt,Ma as C_,Mb as vh,N as Zt,Na as E_,Nb as Oh,O as Qt,Oa as S_,Ob as Rh,P as $m,Pa as w_,Pb as Ih,Q as Fm,Qa as A_,Qb as Ph,R as Gm,Ra as v_,Rb as Mh,S as Um,Sa as O_,Sb as kh,T as jm,Ta as er,Tb as xh,U as Xe,Ua as ge,Ub as Nh,V as Bm,Va as L_,Vb as Lh,W as qm,Wa as D_,Wb as Dh,X as zm,Xa as $_,Xb as $h,Y as Hm,Ya as F_,Yb as Fh,Z as Vm,Za as G_,Zb as Gh,_ as Km,_a as U_,_b as Uh,a as $O,aa as Ym,ab as B_,ac as Bh,b as FO,ba as G0,bb as q_,bc as qh,c as GO,ca as U0,cb as z_,cc as zh,d as UO,da as j0,db as H_,dc as Hh,e as jO,ea as cf,eb as V_,ec as Vh,f as BO,fa as lf,fb as K_,fc as Kh,g as HO,ga as pf,gb as W_,gc as Wh,h as VO,ha as Zf,hb as Y_,hc as Yh,i as KO,ia as Qf,ib as X_,ic as Xh,j as WO,ja as X0,jb as J_,jc as Jh,k as Ns,ka as J0,kb as Z_,kc as Zh,l as XI,la as Z0,lb as Q_,lc as Qh,m as JI,ma as Q0,mb as eh,mc as eg,n as ZI,na as ek,nb as th,nc as tg,o as QI,oa as tk,ob as rh,oc as rg,p as eP,pa as rk,pb as oh,pc as og,q as tP,qa as ok,qb as nh,qc as ng,r as Ul,ra as e_,rb as ih,rc as ig,s as hu,sa as t_,sb as sh,sc as sg,t as gu,ta as r_,tb as ah,tc as ag,u as Tu,ua as o_,ub as dh,uc as dg,v as Cu,va as n_,vb as ch,vc as cg,w as Uu,wa as i_,wb as lh,wc as lg,x as Ku,xa as s_,xb as ph,xc as pg,y as vM,ya as a_,yb as uh,z as Ye,za as d_,zb as mh}from"./chunks/chunk-X3URBPMV.js";import{e as nP,f as iP,g as jl,h as Bl,i as Ut}from"./chunks/chunk-OH6WQ7VT.js";import{A as R0,B as I0,C as P0,D as M0,E as k0,F as x0,G as N0,H as L0,I as D0,J as $0,K as F0,L as Zm,M as Qm,N as ef,O as tf,P as rf,Q as of,R as nf,S as sf,T as af,U as df,a as cM,b as lM,c as pM,d as uM,e as mM,f as _u,g as fM,h as _M,i as hM,j as gM,k as yM,m as Nm,n as Xm,o as g0,p as y0,q as b0,r as T0,s as C0,t as E0,u as Jm,v as S0,w as w0,x as A0,y as v0,z as O0}from"./chunks/chunk-AUEKTX7V.js";import{$ as II,$a as bp,$b as Eu,$c as Y0,A as nI,Aa as Wl,Ab as nu,Ad as Vf,B as iI,Ba as Yl,Bb as iu,Bd as Kf,C as sI,Ca as Xl,Cb as su,Cd as Wf,D as aI,Da as Jl,Db as au,Dd as Yf,E as dI,Ea as Zl,Eb as du,Ec as Qu,Ed as Xf,F as We,Fa as Ql,Fb as cu,Fd as Jf,G as cI,Ga as ep,Gb as lu,Gc as em,Gd as R_,H as Nt,Ha as tp,Hb as pu,Hc as tm,Hd as I_,I as lI,Ia as rp,Ib as uu,Ic as Am,Id as P_,J as pI,Ja as op,Jb as mu,Jc as vm,Jd as M_,K as uI,Ka as np,Kb as tM,Kd as k_,L as mI,La as ip,Lb as rM,Lc as Om,Ld as x_,M as fI,Ma as sp,Mb as oM,Mc as Rm,Md as N_,N as _I,Na as ap,Nb as nM,Nc as Im,O as hI,Oa as dp,Ob as iM,Oc as Pm,P as gI,Pa as cp,Pb as sM,Pc as Mm,Q as yI,Qa as lp,Qb as aM,Qc as uf,R as bI,Ra as pp,Rb as dM,Rc as mf,S as TI,Sa as dP,Sb as fu,Sc as ff,T as CI,Ta as up,Tb as bM,Tc as _f,U as EI,Ua as mp,Ub as TM,Uc as hf,V as SI,Va as fp,Vb as CM,Vc as gf,W as wI,Wa as _p,Wb as EM,Wc as yf,X as AI,Xa as cP,Xb as SM,Xc as bf,Y as vI,Ya as hp,Yc as Tf,Z as OI,Za as gp,Zb as yu,Zc as K0,_ as RI,_a as yp,_b as bu,_c as W0,a as YR,aa as PI,ab as Tp,ac as Su,ad as Cf,b as Mt,ba as MI,bb as lP,bd as Ef,c as XR,ca as kI,cb as pP,cc as wu,cd as Sf,d as Ve,da as xI,db as uP,dc as Au,dd as wf,e as te,ea as NI,eb as mP,ec as vu,ed as Af,f as jc,fa as LI,fb as fP,fc as Ou,fd as vf,gb as _P,gc as Ru,gd as Of,ha as wl,hb as hP,hc as Iu,hd as Rf,i as Ke,ia as Al,ib as DP,ic as Pu,id as If,j as Bc,ja as vl,jb as $P,jc as Mu,jd as Pf,k as qc,ka as Ol,kb as FP,kc as ku,kd as Mf,la as Rl,lb as GP,lc as xu,ld as kf,m as he,mb as UP,mc as Nu,md as xf,n as zc,na as Il,nb as jP,nc as Lu,nd as Nf,o as Hc,oa as Pl,ob as BP,oc as Du,od as Lf,p as Vc,pa as Ml,pb as WP,pc as $u,pd as Df,q as Kc,qa as kl,qb as YP,qc as Fu,qd as $f,r as JR,ra as rP,rb as eu,rd as Ff,s as ZR,sa as oP,sb as tu,sc as wM,sd as Gf,t as QR,ta as xl,tb as XP,tc as AM,td as Uf,u as eI,ua as Nl,ub as JP,uc as Gu,v as tI,va as Ll,vb as ZP,vc as Wu,vd as jf,w as kt,wa as Dl,wb as QP,wc as Yu,wd as Bf,x as rI,xa as $l,xb as eM,xc as Xu,xd as qf,y as oI,ya as Fl,yb as ru,yc as Ju,yd as zf,z as xt,za as Gl,zb as ou,zc as Zu,zd as Hf}from"./chunks/chunk-QNWUIPBO.js";import"./chunks/chunk-UJMQP2HP.js";import{w as Rc}from"./chunks/chunk-6VRX2CM7.js";import{A as YI,Aa as _l,B as sl,C as al,Ca as hl,D as dl,Da as gl,E as cl,Ea as yl,F as Lt,Fa as bl,Ga as Tl,Ia as Cl,Ja as El,Ka as Sl,a as QO,b as eR,c as tR,d as rR,e as oR,f as nR,g as Ls,h as Ds,i as $s,j as Fs,k as Gs,la as Dt,m as DI,ma as $t,na as Ft,oa as Gt,pa as ll,ra as pl,sa as ul,ta as ml,v as HI,w as VI,y as KI,z as WI,za as fl}from"./chunks/chunk-LS3GI3H4.js";import{a as $I,b as FI,c as GI,d as UI,e as jI,f as BI,g as qI,h as Zc,i as Qc,j as el,k as tl,l as rl,m as zI,n as ol,o as nl,p as il}from"./chunks/chunk-DAX3AOFI.js";import{$a as PP,$b as e0,A as jR,Aa as Vp,Ab as IM,Ac as Tm,B as Ic,Ba as Kp,Bb as PM,Bc as Cm,C as Pc,Ca as Wp,Cb as MM,Cc as Em,D as Mc,Da as Yp,Db as kM,Dc as Bt,E as kc,Ea as Xp,Eb as xM,Ec as Sm,F as xc,Fa as Jp,Fb as NM,Fc as m0,G as Nc,Ga as Zp,Gc as f0,H as Lc,Ha as Qp,Hb as sm,Hc as _0,I as Dc,Ib as LM,Ic as wm,J as $c,Jb as DM,Jc as h0,K as Fc,Kb as $M,Kc as B0,L as Gc,La as gP,Lb as FM,Lc as q0,M as He,Ma as yP,Mb as GM,Mc as z0,N as BR,Na as bP,Nb as UM,Nc as H0,O as qR,Oa as TP,Ob as jM,Oc as V0,P as zR,Pa as CP,Pb as BM,Q as HR,Qa as EP,Qb as qM,R as VR,Ra as SP,Rb as zM,S as KR,Sa as wP,Sb as HM,T as WR,Ta as AP,Tb as VM,U as Uc,Ua as vP,Ub as KM,V as ql,Va as OP,Vb as WM,W as zl,Wa as RP,Wb as YM,X as Hl,Xa as IP,Xb as XM,Y as Vl,Yb as JM,Z as sP,Zb as ZM,_ as aP,_b as QM,a as YO,aa as Kl,ac as t0,b as XO,ba as Cp,bb as MP,bc as r0,c as JO,ca as Ep,cb as kP,cc as o0,d as ZO,da as Sp,dc as n0,e as OR,ea as wp,ec as i0,f as RR,fa as Ap,fb as xP,fc as s0,g as IR,ga as vp,gb as NP,gc as a0,h as PR,ha as Op,hb as LP,hc as d0,i as MR,ia as Rp,ic as c0,j as kR,ja as Ip,jb as qP,jc as l0,k as xR,ka as Pp,kb as zP,kc as p0,la as Mp,lb as HP,lc as u0,ma as kp,mb as VP,mc as jt,na as xp,nb as KP,nc as am,oa as Np,ob as ju,oc as dm,pa as Lp,pb as Bu,pc as cm,qa as Dp,qb as qu,qc as lm,ra as $p,rb as zu,rc as pm,sa as Fp,sb as Hu,sc as um,t as NR,ta as Gp,tb as Vu,tc as mm,u as LR,ua as Up,ub as OM,uc as fm,v as DR,va as jp,vb as rm,vc as _m,w as $R,wa as Bp,wb as om,wc as hm,x as FR,xa as qp,xb as nm,xc as gm,y as GR,ya as zp,yb as im,yc as ym,z as UR,za as Hp,zb as RM,zc as bm}from"./chunks/chunk-S4LPZ4TN.js";import{a as qO,b as zO}from"./chunks/chunk-UEGXWXUZ.js";import{$ as Sa,$a as ee,$b as wc,A as Js,Aa as Xa,Ab as cc,B as Zs,Ba as Ja,Bb as lc,C as Qs,Ca as Za,Cb as pc,D as ea,Da as Qa,Db as uc,E as ta,Ea as ed,Eb as mc,F as ra,Fa as td,Fb as fc,Ga as rd,Gb as _c,H as oa,Ha as od,Hb as hc,I as na,Ia as nd,J as ia,Ja as id,K as sa,Ka as sd,L as aa,La as ad,Lb as bR,M as da,Ma as dd,Mb as TR,N as ca,Na as cd,Nb as CR,O as la,Oa as ld,Ob as ER,P as pa,Pa as pd,Pb as SR,Q as ua,Qa as ud,Qb as wR,R as ma,Ra as md,Rb as AR,S as fa,Sa as fd,Sb as vR,T as _a,Ta as _d,U as ha,Ua as hd,Ub as gc,V as ga,Va as gd,Vb as yc,W as ya,Wa as yd,Wb as bc,X as ba,Xa as bd,Xb as Tc,Y as Ta,Ya as Td,Yb as Cc,Z as Ca,Zb as Ec,_ as Ea,_a as ze,_b as Sc,a as iR,aa as wa,ab as Cd,ac as Ac,b as sR,ba as Aa,bb as xd,bc as vc,c as aR,ca as va,cb as Nd,cc as Oc,d as Be,da as Oa,db as Ld,dc as Pt,e as dR,ea as Ra,eb as Dd,f as cR,fa as Ia,fb as $d,g as lR,ga as Pa,gb as Fd,h as It,ha as Ma,hb as Gd,i as qe,ia as ka,ib as Ud,j as pR,ja as xa,jb as jd,k as uR,ka as Na,kb as Kd,l as mR,la as La,lb as Wd,m as fR,ma as Da,mb as Yd,n as _R,na as $a,nb as Xd,o as hR,oa as Fa,ob as Jd,p as Us,pa as Ga,pb as Zd,q as js,qa as Ua,qb as Qd,r as Bs,ra as ja,rb as ec,s as qs,sa as Ba,sb as tc,t as zs,ta as qa,tb as rc,u as Hs,ua as za,ub as oc,v as Vs,va as Ha,vb as nc,w as Ks,wa as Va,wb as ic,x as Ws,xa as Ka,xb as sc,y as Ys,ya as Wa,yb as ac,z as Xs,za as Ya,zb as dc}from"./chunks/chunk-HNGLDMSZ.js";import{a as RO,b as IO,c as PO,d as MO,e as kO,f as xO,g as NO,h as LO,i as DO,j as ws,k as As,l as vs,m as Os,n as Rs,o as Is,q as Ps,s as Ms,x as ks}from"./chunks/chunk-FRNMQM45.js";import{b as AO}from"./chunks/chunk-HRFGFIYU.js";import"./chunks/chunk-IB7UB5TE.js";import{$ as OE,$b as Uv,$c as Es,A as XT,Aa as BA,Ac as Yv,B as JT,Bb as Qi,Bc as Xv,Cb as Av,Cc as Jv,Dc as Zv,Eb as vv,Ec as Qv,Fb as Ov,Fc as eO,Gb as Rv,Gc as tO,Hc as rO,Ib as Iv,Ic as oO,J as aC,Jc as nO,Ka as qA,Kc as iO,L as hC,La as zA,Lb as Pv,Lc as sO,M as gC,Ma as HA,Mc as aO,N as yC,Na as VA,Nb as Mv,Nc as dO,O as bC,Oa as KA,Oc as cO,P as AC,Pa as WA,Pc as lO,Q as vC,Qa as ev,Qc as ps,R as At,Ra as tv,Rb as kv,Rc as us,S as CE,Sa as rv,Sb as xv,Sc as ms,T as EE,Ta as vt,Tb as Nv,Tc as fs,U as SE,Ub as es,Uc as _s,Va as ov,Vb as Lv,Vc as hs,W as wE,Wa as nv,Wc as gs,Xa as iv,Xb as Dv,Xc as ys,Y as AE,Ya as sv,Yb as $v,Yc as bs,Z as vE,Za as av,Zb as Fv,Zc as Ts,_b as Gv,_c as Cs,a as DT,aa as RE,ab as dv,ac as jv,ad as Ss,ba as IE,bc as Bv,bd as pO,ca as hA,cc as qv,cd as uO,da as gA,dc as zv,dd as mO,ea as yA,eb as Ki,ec as Hv,ed as fO,fa as bA,fc as Ot,fd as _O,ga as IA,gc as Vv,gd as hO,hd as gO,i as nn,ia as qi,ic as Kv,id as yO,j as $T,ja as zi,jd as bO,k as FT,ka as Hi,kd as TO,l as GT,ld as CO,m as UT,ma as PA,n as jT,na as MA,o as BT,oa as kA,oc as ts,pa as xA,pb as gv,pc as rs,pd as Rt,q as qT,qa as NA,qb as yv,qc as os,qd as EO,ra as LA,rb as bv,rc as ns,rd as SO,s as zT,sa as DA,sb as Tv,sd as wO,t as HT,tc as is,td as vO,u as VT,ua as $A,ub as Cv,uc as ss,ud as OO,vb as Ev,vc as as,w as KT,wa as FA,wb as Sv,wc as ds,x as WT,xa as GA,xb as wv,xc as cs,ya as UA,yb as Ji,yc as ls,z as YT,za as jA,zb as Zi,zc as Wv}from"./chunks/chunk-5GWEY4P6.js";import{$ as bt,$b as xC,$c as ZC,$d as FE,$e as rS,$f as RS,$g as iw,$h as Qw,$i as mv,A as Fo,Aa as ZT,Ab as mC,Ac as zC,Ad as Ln,Ae as VE,Ag as NS,Ah as kw,Ai as TA,B as Go,Ba as QT,Bc as HC,Bd as _E,Be as KE,Bg as LS,Bh as xw,Bi as CA,C as Uo,Ca as eC,Cb as Et,Cd as Dn,Ce as WE,Ch as Nw,Ci as EA,D as jo,De as YE,Df as sS,Dh as Lw,Di as SA,E as Bo,Eb as St,Ed as hE,Ee as XE,Ef as aS,Eg as DS,Eh as Dw,Ei as wA,F as qo,Fa as hn,Fd as gE,Fe as JE,Ff as dS,Fg as $S,Fh as $w,Fi as AA,G as zo,Ga as tC,Gb as vn,Gd as yE,Ge as ZE,Gf as cS,Gg as FS,Gh as Fw,Gi as vA,H as De,Ha as rC,Hb as On,Hc as Pn,Hd as bE,He as QE,Hf as lS,Hg as GS,Hh as Gw,Hi as OA,I as $e,Ia as oC,Ib as _e,Ic as VC,Id as TE,Ie as Xn,If as pS,Ig as US,Ih as Ui,Ii as RA,J as Ho,Ja as nC,Jd as PE,Je as Jn,Jf as uS,Jg as jS,Jh as Uw,K as Vo,Kb as fC,Kc as KC,Kd as ME,Ke as D,Kf as mS,Kg as BS,L as Ko,La as gn,Ld as kE,Le as Zn,Lf as fS,Lg as qS,M as Wo,Ma as yn,Mb as _C,Md as xE,Mf as _S,Mg as zS,Mh as jw,N as Yo,Na as Ge,Nb as TC,Nd as NE,Nf as hS,Ng as HS,Nh as Bw,Ni as YA,O as Xo,Oa as iC,Ob as CC,Od as LE,Og as VS,Oh as qw,P as Jo,Pa as sC,Pb as EC,Pg as KS,Ph as zw,Q as Zo,Qa as bn,Qb as SC,Qf as gS,Qg as WS,Qh as Hw,Qi as XA,R as Qo,Ra as Tn,Rb as wC,Re as je,Rf as yS,Rg as YS,Rh as Vw,Ri as JA,S as en,Sb as OC,Se as Qn,Sf as bS,Sg as XS,T as tn,Ta as Cn,Tb as Ue,Tf as TS,Tg as JS,Th as Kw,U as rn,Ub as wt,Ud as DE,Uf as CS,Ug as ZS,Uh as Ww,Ui as ZA,V as on,Vb as RC,Vf as ES,Vg as QS,Vi,Wb as IC,Wc as WC,Wf as SS,Wg as ew,Wi as QA,Xb as PC,Xc as YC,Xd as $n,Xf as wS,Xg as tw,Xh as Yw,Xi as cv,Yb as MC,Yc as XC,Yd as $E,Yf as AS,Yg as rw,Yh as Xw,Yi as lv,Zb as z,Zd as Fn,Ze as eS,Zf as vS,Zg as ow,Zh as Jw,Zi as pv,_b as kC,_c as JC,_e as tS,_f as OS,_g as nw,_h as Zw,_i as uv,a as I,aa as Tt,ac as NC,af as ei,ah as sw,ai as eA,aj as fv,b as wT,ba as cn,bc as LC,bd as QC,bf as ti,bg as Ti,bh as aw,bi as tA,bj as _v,c as yt,ca as ln,cc as DC,cd as Mn,cf as ri,cg as Ci,ch as dw,ci as rA,cj as hv,d as AT,da as pn,dc as $C,df as oi,dg as Ei,dh as cw,di as oA,dj as Wi,e as vT,eb as En,ec as FC,ed as kn,ee as GE,ef as ni,eg as Si,eh as lw,ei as nA,ej as Yi,f as OT,fb as Sn,fd as xn,ff as ii,fg as wi,fh as pw,fi as iA,fj as Xi,g as RT,gb as wn,ge as UE,gf as si,gg as Ai,gh as uw,gi as sA,h as IT,ha as un,hc as GC,he as jE,hf as ai,hg as vi,hh as mw,hi as aA,i as PT,ib as An,id as eE,ie as Gn,if as di,ig as Oi,ih as fw,j as MT,ja as mn,jc as Rn,jd as tE,je as Un,jf as ci,jg as Ri,jh as _w,ji as dA,k as kT,ka as fn,kc as In,kd as rE,kf as li,kg as Ii,kh as hw,ki as ji,l as xT,la as _n,lb as dC,ld as oE,le as jn,lf as pi,lg as Pi,lh as gw,li as Bi,m as NT,mb as cC,md as nE,me as Bn,mf as ui,mg as Mi,mh as yw,n as LT,nd as iE,ne as qn,nf as mi,ng as ki,nh as bw,o as Io,od as sE,oe as zn,of as fi,og as xi,oh as Tw,p as Po,pd as Nn,pe as Hn,pf as oS,pg as Ni,ph as Cw,q as Mo,qd as aE,qe as BE,qf as nS,qg as Li,qh as Ew,qi as cA,r as ko,rb as lC,rd as dE,re as qE,rf as _i,rg as Di,rh as Sw,ri as lA,s as Ne,sf as iS,sg as $i,sh as ww,si as pA,t as xo,tf as hi,tg as Fi,th as Aw,ti as uA,u as L,ub as pC,ud as cE,ue as Vn,uf as gi,ug as Gi,uh as vw,v as Le,vc as UC,vd as lE,ve as Kn,vf as yi,vg as IS,vh as Ow,vi as mA,w as No,wd as pE,we as zE,wf as bi,wg as PS,wh as Rw,wi as fA,x as Lo,xb as uC,xc as jC,xd as uE,xe as Wn,xg as MS,xh as Iw,y as Do,yc as BC,yd as mE,ye as Yn,yg as kS,yh as Pw,yi as _A,z as $o,zc as qC,zd as fE,ze as HE,zg as xS,zh as Mw}from"./chunks/chunk-7ZRCYESH.js";import"./chunks/chunk-SPPHDVZE.js";import{a as Wc,b as Yc,e as Xc,f as Jc}from"./chunks/chunk-RSAN2YUU.js";import"./chunks/chunk-VS565KBX.js";import{A as me,B as ST,C as b,E as sn,F as Ct,G as fe,H as an,K as Fe,M as dn,b as hT,c as gT,d as yT,m as bT,r as TT,u as CT,y as ET}from"./chunks/chunk-O4ZLEN4T.js";import"./chunks/chunk-XAWE4EAK.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8f11e0bf-4115-55a8-bd39-c360f43cdc09")}catch{}})();var H="2026-07-28",rr=["2025-11-25","2025-06-18"],re=[H],m={headerMismatch:-32020,missingRequiredClientCapability:-32021,unsupportedProtocolVersion:-32022,invalidParams:-32602},w={clientCapabilities:"io.modelcontextprotocol/clientCapabilities",clientInfo:"io.modelcontextprotocol/clientInfo",logLevel:"io.modelcontextprotocol/logLevel",protocolVersion:"io.modelcontextprotocol/protocolVersion",serverInfo:"io.modelcontextprotocol/serverInfo"},tr=["debug","info","notice","warning","error","critical","alert","emergency"],u=class extends Error{code;data;constructor(t,r,o={}){super(t),this.name="PmMcpProtocolError",this.code=r,this.data=o}};function h(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function mg(e){if(e===void 0)return;if(!h(e))throw new u("Invalid MCP clientInfo metadata",m.invalidParams,{field:w.clientInfo,expected:"object"});let t=typeof e.name=="string"?e.name.trim():"",r=typeof e.version=="string"?e.version.trim():"";if(t.length===0||r.length===0)throw new u("Invalid MCP clientInfo metadata",m.invalidParams,{field:w.clientInfo,required:["name","version"]});let o={name:t.slice(0,128),version:r.slice(0,128)};return typeof e.description=="string"&&e.description.trim()&&(o.description=e.description.trim().slice(0,1024)),typeof e.websiteUrl=="string"&&e.websiteUrl.trim()&&(o.websiteUrl=e.websiteUrl.trim().slice(0,2048)),o}function fg(e){if(e!==void 0){if(typeof e!="string"||!tr.includes(e))throw new u("Invalid MCP logLevel metadata",m.invalidParams,{field:w.logLevel,allowed:[...tr]});return e}}function Je(e){let t=h(e)?e._meta:void 0;if(!h(t))throw new u("Missing required MCP request metadata",m.invalidParams,{required:[w.protocolVersion,w.clientCapabilities]});let r=t[w.protocolVersion];if(typeof r!="string"||!re.includes(r))throw new u("Unsupported protocol version",m.unsupportedProtocolVersion,{supported:[...re],requested:typeof r=="string"?r:null});let o=t[w.clientCapabilities];if(!h(o))throw new u("Invalid MCP client capabilities metadata",m.invalidParams,{field:w.clientCapabilities,expected:"object"});let n=mg(t[w.clientInfo]),s=fg(t[w.logLevel]);return{protocolVersion:H,clientCapabilities:o,...n?{clientInfo:n}:{},...s?{logLevel:s}:{}}}function Gx(e,t){if(t!==e.protocolVersion)throw new u("MCP protocol header does not match request metadata",m.headerMismatch,{header:t??null,metadata:e.protocolVersion})}function Ux(e,t){let r=t.filter(o=>!Object.prototype.hasOwnProperty.call(e.clientCapabilities,o));if(r.length>0)throw new u("Missing required client capability",m.missingRequiredClientCapability,{requiredCapabilities:Object.fromEntries(r.map(o=>[o,{}]))})}function jx(e,t){let r=e.clientCapabilities.extensions;return h(r)&&h(r[t])}function Ze(e,t){let r=h(e._meta)?e._meta:{};return{...e,_meta:{...r,[w.serverInfo]:{...t}}}}function _g(e,t){return Ze({...e,resultType:"complete"},t)}function Bx(e){let t=e.ttlMs??6e4;if(!Number.isFinite(t)||t<0)throw new u("Invalid MCP discovery cache TTL",m.invalidParams,{ttlMs:t});return _g({supportedVersions:[...re],capabilities:structuredClone(e.capabilities),ttlMs:t,cacheScope:"public",...e.instructions?{instructions:e.instructions}:{}},e.serverInfo)}function qx(e,t){if(h(e)&&typeof e.resultType=="string")return e.resultType;if(t==="legacy")return"complete";throw new u("Modern MCP result is missing resultType",m.invalidParams,{required:"resultType"})}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d4a56906-c542-567e-9265-15184a5c330b")}catch{}})();var hg=new Set(["--help","-h","--version","-V"]);function gg(e,t){let r=[`Usage: ${e==="stdio"?"pm-mcp":"pm-mcp-http"} [--help | --version]`,"",e==="stdio"?"JSON-RPC over stdin/stdout. With no arguments, starts the stdio server.":"Streamable HTTP POST /mcp. With no arguments, starts the HTTP server.","","Options:"," -h, --help Print help and exit before transport startup."," -V, --version Print the package version and exit.","","Environment:"," PM_PATH Tracker root (otherwise discovered from cwd)."," PM_GLOBAL_PATH Global settings root."," PM_MCP_PROFILE core (default), standard, full, or custom."," PM_MCP_TOOLS Comma-separated tool allowlist for custom profile."," PM_MCP_DISCOVERY_CURSOR_KEY Shared discovery cursor secret, at least 32 UTF-8 bytes."," PM_MCP_BAGGAGE_ALLOWLIST Comma-separated permitted trace baggage keys."];return e==="http"&&r.push(" PM_MCP_HTTP_HOST Bind host (default 127.0.0.1)."," PM_MCP_HTTP_PORT Bind port, 0..65535 (default 3000)."," PM_MCP_HTTP_ALLOWED_ORIGINS Comma-separated exact browser origins (default none)."," PM_MCP_HTTP_BEARER_TOKEN Deployment token for the bundled verifier."," PM_MCP_HTTP_AUTH_ISSUER Exact HTTPS authorization-server issuer."," PM_MCP_HTTP_RESOURCE Canonical resource/audience URI."," PM_MCP_HTTP_SCOPES Space-separated scopes (default pm:read pm:write).","","Non-loopback HTTP requires bearer token, issuer, and resource together."),r.push("",`MCP protocol: ${re.join(", ")}.`,e==="stdio"?`Legacy initialize compatibility: ${rr.join(", ")}.`:"HTTP requires modern per-request metadata; legacy initialize is stdio-only.","",e==="stdio"?"Client configuration:":"Example loopback server:",e==="stdio"?JSON.stringify({mcpServers:{pm:{command:"npx",args:["--yes","--package",`@unbrained/pm-cli@${t}`,"pm-mcp"]}}}):`PM_MCP_HTTP_PORT=3000 npx --yes --package @unbrained/pm-cli@${t} pm-mcp-http`,...e==="http"?["HTTP client configuration:",JSON.stringify({mcpServers:{pm:{url:"http://127.0.0.1:3000/mcp"}}})]:[],"","Configuration: https://github.com/unbraind/pm-cli/blob/main/docs/MCP_REMOTE_TRANSPORT_SECURITY.md",""),r.join(`
1
+ import{a as ug}from"./chunks/chunk-KPAVZILX.js";import{a as Nk,b as Lk,c as Dk,d as $k}from"./chunks/chunk-3DI6CEF3.js";import{a as Fk,b as Gk}from"./chunks/chunk-QG6FLDM4.js";import{b as nk,c as ik,d as sk,e as ak,f as dk,g as ck,h as lk,i as pk,j as uk,k as mk,l as fk,m as _k,n as hk,o as gk,p as yk,q as bk,r as Tk}from"./chunks/chunk-OIBSKKCO.js";import{A as Ok,B as Rk,C as Ik,D as Pk,E as Mk,F as kk,G as xk,a as ks,b as gR,c as yR,d as Ed,e as Sd,f as wd,h as Ad,i as vd,j as Od,k as Rd,l as Id,m as Pd,n as Md,o as kd,p as Bd,q as qd,r as zd,s as Hd,t as Vd,u as Ck,v as Ek,w as Sk,x as wk,y as Ak,z as vk}from"./chunks/chunk-RFI4O6NU.js";import{A as ux,B as mx,C as fx,D as _x,E as hx,F as gx,G as yx,H as bx,I as Tx,J as Cx,K as Ex,L as Sx,M as wx,N as Ax,O as vx,P as Ox,Q as Rx,R as Ix,S as Px,T as Mx,U as kx,V as xx,W as Nx,X as Lx,Y as Dx,Z as $x,_ as Fx,a as Uk,b as jk,c as Bk,d as qk,e as zk,f as Hk,g as Vk,h as Kk,i as Wk,j as Yk,k as Xk,l as Jk,m as Zk,n as Qk,o as ex,p as tx,q as rx,r as ox,s as nx,t as ix,u as sx,v as ax,w as dx,x as cx,y as lx,z as px}from"./chunks/chunk-COKKWMSC.js";import{$ as Wm,$a as j_,$b as jh,A as km,Aa as c_,Ab as fh,B as xm,Ba as l_,Bb as _h,C as Lm,Ca as p_,Cb as hh,D as Dm,Da as u_,Db as gh,E as qt,Ea as m_,Eb as yh,F as zt,Fa as f_,Fb as bh,G as Ht,Ga as __,Gb as Th,H as Vt,Ha as h_,Hb as Ch,I as Kt,Ia as g_,Ib as Eh,J as Wt,Ja as y_,Jb as Sh,K as Yt,Ka as b_,Kb as wh,L as Xt,La as T_,Lb as Ah,M as Jt,Ma as C_,Mb as vh,N as Zt,Na as E_,Nb as Oh,O as Qt,Oa as S_,Ob as Rh,P as $m,Pa as w_,Pb as Ih,Q as Fm,Qa as A_,Qb as Ph,R as Gm,Ra as v_,Rb as Mh,S as Um,Sa as O_,Sb as kh,T as jm,Ta as er,Tb as xh,U as Xe,Ua as ge,Ub as Nh,V as Bm,Va as L_,Vb as Lh,W as qm,Wa as D_,Wb as Dh,X as zm,Xa as $_,Xb as $h,Y as Hm,Ya as F_,Yb as Fh,Z as Vm,Za as G_,Zb as Gh,_ as Km,_a as U_,_b as Uh,a as PO,aa as Ym,ab as B_,ac as Bh,b as MO,ba as G0,bb as q_,bc as qh,c as kO,ca as U0,cb as z_,cc as zh,d as xO,da as j0,db as H_,dc as Hh,e as NO,ea as cf,eb as V_,ec as Vh,f as LO,fa as lf,fb as K_,fc as Kh,g as FO,ga as pf,gb as W_,gc as Wh,h as GO,ha as Zf,hb as Y_,hc as Yh,i as UO,ia as Qf,ib as X_,ic as Xh,j as jO,ja as X0,jb as J_,jc as Jh,k as xs,ka as J0,kb as Z_,kc as Zh,l as XI,la as Z0,lb as Q_,lc as Qh,m as JI,ma as Q0,mb as eh,mc as eg,n as ZI,na as ek,nb as th,nc as tg,o as QI,oa as tk,ob as rh,oc as rg,p as eP,pa as rk,pb as oh,pc as og,q as tP,qa as ok,qb as nh,qc as ng,r as Ul,ra as e_,rb as ih,rc as ig,s as hu,sa as t_,sb as sh,sc as sg,t as gu,ta as r_,tb as ah,tc as ag,u as Tu,ua as o_,ub as dh,uc as dg,v as Cu,va as n_,vb as ch,vc as cg,w as Uu,wa as i_,wb as lh,wc as lg,x as Ku,xa as s_,xb as ph,xc as pg,y as vM,ya as a_,yb as uh,z as Ye,za as d_,zb as mh}from"./chunks/chunk-BQ5O3CBF.js";import{e as nP,f as iP,g as jl,h as Bl,i as Ut}from"./chunks/chunk-MQOZNGPS.js";import{A as R0,B as I0,C as P0,D as M0,E as k0,F as x0,G as N0,H as L0,I as D0,J as $0,K as F0,L as Zm,M as Qm,N as ef,O as tf,P as rf,Q as of,R as nf,S as sf,T as af,U as df,a as cM,b as lM,c as pM,d as uM,e as mM,f as _u,g as fM,h as _M,i as hM,j as gM,k as yM,m as Nm,n as Xm,o as g0,p as y0,q as b0,r as T0,s as C0,t as E0,u as Jm,v as S0,w as w0,x as A0,y as v0,z as O0}from"./chunks/chunk-D53G3NOE.js";import{$ as II,$a as bp,$b as Eu,$c as Y0,A as nI,Aa as Wl,Ab as nu,Ad as Vf,B as iI,Ba as Yl,Bb as iu,Bd as Kf,C as sI,Ca as Xl,Cb as su,Cd as Wf,D as aI,Da as Jl,Db as au,Dd as Yf,E as dI,Ea as Zl,Eb as du,Ec as Qu,Ed as Xf,F as We,Fa as Ql,Fb as cu,Fd as Jf,G as cI,Ga as ep,Gb as lu,Gc as em,Gd as R_,H as Nt,Ha as tp,Hb as pu,Hc as tm,Hd as I_,I as lI,Ia as rp,Ib as uu,Ic as Am,Id as P_,J as pI,Ja as op,Jb as mu,Jc as vm,Jd as M_,K as uI,Ka as np,Kb as tM,Kd as k_,L as mI,La as ip,Lb as rM,Lc as Om,Ld as x_,M as fI,Ma as sp,Mb as oM,Mc as Rm,Md as N_,N as _I,Na as ap,Nb as nM,Nc as Im,O as hI,Oa as dp,Ob as iM,Oc as Pm,P as gI,Pa as cp,Pb as sM,Pc as Mm,Q as yI,Qa as lp,Qb as aM,Qc as uf,R as bI,Ra as pp,Rb as dM,Rc as mf,S as TI,Sa as dP,Sb as fu,Sc as ff,T as CI,Ta as up,Tb as bM,Tc as _f,U as EI,Ua as mp,Ub as TM,Uc as hf,V as SI,Va as fp,Vb as CM,Vc as gf,W as wI,Wa as _p,Wb as EM,Wc as yf,X as AI,Xa as cP,Xb as SM,Xc as bf,Y as vI,Ya as hp,Yc as Tf,Z as OI,Za as gp,Zb as yu,Zc as K0,_ as RI,_a as yp,_b as bu,_c as W0,a as YR,aa as PI,ab as Tp,ac as Su,ad as Cf,b as Mt,ba as MI,bb as lP,bd as Ef,c as XR,ca as kI,cb as pP,cc as wu,cd as Sf,d as Ve,da as xI,db as uP,dc as Au,dd as wf,e as te,ea as NI,eb as mP,ec as vu,ed as Af,f as jc,fa as LI,fb as fP,fc as Ou,fd as vf,gb as _P,gc as Ru,gd as Of,ha as wl,hb as hP,hc as Iu,hd as Rf,i as Ke,ia as Al,ib as DP,ic as Pu,id as If,j as Bc,ja as vl,jb as $P,jc as Mu,jd as Pf,k as qc,ka as Ol,kb as FP,kc as ku,kd as Mf,la as Rl,lb as GP,lc as xu,ld as kf,m as he,mb as UP,mc as Nu,md as xf,n as zc,na as Il,nb as jP,nc as Lu,nd as Nf,o as Hc,oa as Pl,ob as BP,oc as Du,od as Lf,p as Vc,pa as Ml,pb as WP,pc as $u,pd as Df,q as Kc,qa as kl,qb as YP,qc as Fu,qd as $f,r as JR,ra as rP,rb as eu,rd as Ff,s as ZR,sa as oP,sb as tu,sc as wM,sd as Gf,t as QR,ta as xl,tb as XP,tc as AM,td as Uf,u as eI,ua as Nl,ub as JP,uc as Gu,v as tI,va as Ll,vb as ZP,vc as Wu,vd as jf,w as kt,wa as Dl,wb as QP,wc as Yu,wd as Bf,x as rI,xa as $l,xb as eM,xc as Xu,xd as qf,y as oI,ya as Fl,yb as ru,yc as Ju,yd as zf,z as xt,za as Gl,zb as ou,zc as Zu,zd as Hf}from"./chunks/chunk-WYIDX67P.js";import"./chunks/chunk-UJMQP2HP.js";import{w as Rc}from"./chunks/chunk-4PPWVIIT.js";import{A as YI,Aa as _l,B as sl,C as al,Ca as hl,D as dl,Da as gl,E as cl,Ea as yl,F as Lt,Fa as bl,Ga as Tl,Ia as Cl,Ja as El,Ka as Sl,a as VO,b as KO,c as WO,d as YO,e as XO,f as JO,g as Ns,h as Ls,i as Ds,j as $s,k as Fs,la as Dt,m as DI,ma as $t,na as Ft,oa as Gt,pa as ll,ra as pl,sa as ul,ta as ml,v as HI,w as VI,y as KI,z as WI,za as fl}from"./chunks/chunk-ETHAZC3F.js";import{a as $I,b as FI,c as GI,d as UI,e as jI,f as BI,g as qI,h as Zc,i as Qc,j as el,k as tl,l as rl,m as zI,n as ol,o as nl,p as il}from"./chunks/chunk-VM6OGNQC.js";import{$a as PP,$b as e0,A as jR,Aa as Vp,Ab as IM,Ac as Tm,B as Ic,Ba as Kp,Bb as PM,Bc as Cm,C as Pc,Ca as Wp,Cb as MM,Cc as Em,D as Mc,Da as Yp,Db as kM,Dc as Bt,E as kc,Ea as Xp,Eb as xM,Ec as Sm,F as xc,Fa as Jp,Fb as NM,Fc as m0,G as Nc,Ga as Zp,Gc as f0,H as Lc,Ha as Qp,Hb as sm,Hc as _0,I as Dc,Ib as LM,Ic as wm,J as $c,Jb as DM,Jc as h0,K as Fc,Kb as $M,Kc as B0,L as Gc,La as gP,Lb as FM,Lc as q0,M as He,Ma as yP,Mb as GM,Mc as z0,N as BR,Na as bP,Nb as UM,Nc as H0,O as qR,Oa as TP,Ob as jM,Oc as V0,P as zR,Pa as CP,Pb as BM,Q as HR,Qa as EP,Qb as qM,R as VR,Ra as SP,Rb as zM,S as KR,Sa as wP,Sb as HM,T as WR,Ta as AP,Tb as VM,U as Uc,Ua as vP,Ub as KM,V as ql,Va as OP,Vb as WM,W as zl,Wa as RP,Wb as YM,X as Hl,Xa as IP,Xb as XM,Y as Vl,Yb as JM,Z as sP,Zb as ZM,_ as aP,_b as QM,a as BO,aa as Kl,ac as t0,b as qO,ba as Cp,bb as MP,bc as r0,c as zO,ca as Ep,cb as kP,cc as o0,d as HO,da as Sp,dc as n0,e as OR,ea as wp,ec as i0,f as RR,fa as Ap,fb as xP,fc as s0,g as IR,ga as vp,gb as NP,gc as a0,h as PR,ha as Op,hb as LP,hc as d0,i as MR,ia as Rp,ic as c0,j as kR,ja as Ip,jb as qP,jc as l0,k as xR,ka as Pp,kb as zP,kc as p0,la as Mp,lb as HP,lc as u0,ma as kp,mb as VP,mc as jt,na as xp,nb as KP,nc as am,oa as Np,ob as ju,oc as dm,pa as Lp,pb as Bu,pc as cm,qa as Dp,qb as qu,qc as lm,ra as $p,rb as zu,rc as pm,sa as Fp,sb as Hu,sc as um,t as NR,ta as Gp,tb as Vu,tc as mm,u as LR,ua as Up,ub as OM,uc as fm,v as DR,va as jp,vb as rm,vc as _m,w as $R,wa as Bp,wb as om,wc as hm,x as FR,xa as qp,xb as nm,xc as gm,y as GR,ya as zp,yb as im,yc as ym,z as UR,za as Hp,zb as RM,zc as bm}from"./chunks/chunk-WS2N4TQW.js";import{a as DO,b as $O}from"./chunks/chunk-WXVMPLBY.js";import{$ as ma,$a as md,$b as AR,A as js,Aa as Ua,Ab as Qd,B as Bs,Ba as ja,Bb as ec,C as qs,Ca as Ba,Cb as tc,D as zs,Da as qa,Db as rc,E as Hs,Ea as za,Eb as oc,F as Vs,Fa as Ha,Fb as nc,G as Ks,Ga as Va,Gb as ic,H as Ws,Ha as Ka,Hb as sc,I as Ys,Ia as Wa,Ib as ac,J as Xs,Ja as Ya,Jb as dc,K as Js,Ka as Xa,Kb as cc,L as Zs,La as Ja,Lb as lc,M as Qs,Ma as Za,Mb as pc,N as ea,Na as Qa,Nb as uc,O as ta,Oa as ed,Ob as mc,P as ra,Pa as td,Pb as fc,Qa as rd,Qb as _c,R as oa,Ra as od,Rb as hc,S as na,Sa as nd,T as ia,Ta as id,U as sa,Ua as sd,V as aa,Va as ad,Vb as bR,W as da,Wa as dd,Wb as TR,X as ca,Xa as cd,Xb as CR,Y as la,Ya as ld,Yb as ER,Z as pa,Za as pd,Zb as SR,_ as ua,_a as ud,_b as wR,a as ZO,aa as fa,ab as fd,ac as vR,b as QO,ba as _a,bb as _d,c as eR,ca as ha,cb as hd,cc as gc,d as tR,da as ga,db as gd,dc as yc,e as rR,ea as ya,eb as yd,ec as bc,f as oR,fa as ba,fb as bd,fc as Tc,g as nR,ga as Ta,gb as Td,gc as Cc,h as Gs,ha as Ca,hc as Ec,i as iR,ia as Ea,ib as ze,ic as Sc,ja as Sa,jb as ee,jc as wc,ka as wa,kb as Cd,kc as Ac,l as sR,la as Aa,lb as xd,lc as vc,m as aR,ma as va,mb as Nd,mc as Oc,n as Be,na as Oa,nb as Ld,nc as Pt,o as dR,oa as Ra,ob as Dd,p as cR,pa as Ia,pb as $d,q as lR,qa as Pa,qb as Fd,r as It,ra as Ma,rb as Gd,s as qe,sa as ka,sb as Ud,t as pR,ta as xa,tb as jd,u as uR,ua as Na,ub as Kd,v as mR,va as La,vb as Wd,w as fR,wa as Da,wb as Yd,x as _R,xa as $a,xb as Xd,y as hR,ya as Fa,yb as Jd,z as Us,za as Ga,zb as Zd}from"./chunks/chunk-O6TIOKCM.js";import{a as CO,b as EO,c as SO,d as wO,e as AO,f as vO,g as OO,h as RO,i as IO,j as Ss,k as ws,l as As,m as vs,n as Os,o as Rs,q as Is,s as Ps,y as Ms}from"./chunks/chunk-JZWFZH2K.js";import{b as yO}from"./chunks/chunk-OJZG7Y6S.js";import"./chunks/chunk-IB7UB5TE.js";import{$ as OE,$b as Ov,$c as ms,A as XT,Aa as LA,Ab as mv,Ad as gO,B as JT,Bc as ns,Bd as bO,Cb as fv,Cc as is,Cd as TO,Db as _v,Dc as ss,Eb as hv,Ec as as,Fb as gv,Fc as ds,Gb as Xi,Gc as cs,Hb as Ji,Hc as jv,Ic as Bv,J as aC,Jb as Zi,Jc as qv,Ka as DA,Kb as yv,Kc as zv,L as hC,La as $A,Lc as Hv,M as gC,Ma as FA,Mb as bv,Mc as Vv,N as yC,Na as GA,Nb as Tv,Nc as Kv,O as bC,Oa as UA,Ob as Cv,Oc as Wv,P as AC,Pa as jA,Pc as Yv,Q as vC,Qa as KA,Qb as Ev,Qc as Xv,R as At,Ra as WA,Rc as Jv,S as CE,Sa as YA,Sc as Zv,T as EE,Ta as vt,Tb as Sv,Tc as Qv,U as SE,Uc as eO,Va as XA,Vb as wv,Vc as tO,W as wE,Wa as JA,Wc as rO,Xa as ZA,Xc as oO,Y as AE,Ya as QA,Yc as ls,Z as vE,Za as ev,Zb as Av,Zc as ps,_b as vv,_c as us,a as DT,aa as RE,ab as tv,ac as Qi,ad as fs,ba as IE,bc as Rv,bd as _s,ca as cA,cd as hs,da as lA,dc as Iv,dd as gs,ea as pA,eb as Vi,ec as Pv,ed as ys,fa as uA,fc as Mv,fd as bs,ga as EA,gc as kv,gd as Ts,hc as xv,hd as Cs,i as nn,ia as Bi,ic as Nv,id as Es,j as $T,ja as qi,jc as Lv,jd as nO,k as FT,ka as zi,kc as Dv,kd as iO,l as GT,lc as $v,ld as sO,m as UT,ma as SA,mc as Fv,md as aO,n as jT,na as wA,nc as Ot,nd as dO,o as BT,oa as AA,oc as Gv,od as cO,pa as vA,pd as lO,q as qT,qa as OA,qc as Uv,qd as pO,ra as RA,rd as uO,s as zT,sa as IA,sd as mO,t as HT,td as fO,u as VT,ua as PA,w as KT,wa as MA,wc as es,x as WT,xa as kA,xb as lv,xc as ts,xd as Rt,ya as xA,yb as pv,yc as rs,yd as _O,z as YT,za as NA,zb as uv,zc as os,zd as hO}from"./chunks/chunk-F3B2ULHB.js";import{$ as bt,$b as xC,$c as ZC,$d as FE,$e as rS,$f as RS,$g as iw,$h as tA,A as Fo,Aa as ZT,Ab as mC,Ac as zC,Ad as Ln,Ae as VE,Ag as NS,Ah as kw,B as Go,Ba as QT,Bc as HC,Bd as _E,Be as KE,Bg as LS,Bh as xw,C as Uo,Ca as eC,Cb as Et,Cd as Dn,Ce as WE,Ch as Nw,D as jo,De as YE,Df as sS,Dh as Lw,Di as BA,E as Bo,Eb as St,Ed as hE,Ee as XE,Ef as aS,Eg as DS,Eh as Dw,F as qo,Fa as hn,Fd as gE,Fe as JE,Ff as dS,Fg as $S,Fh as $w,G as zo,Ga as tC,Gb as vn,Gd as yE,Ge as ZE,Gf as cS,Gg as FS,Gh as Fw,Gi as qA,H as De,Ha as rC,Hb as On,Hc as Pn,Hd as bE,He as QE,Hf as lS,Hg as GS,Hh as Gw,Hi as zA,I as $e,Ia as oC,Ib as _e,Ic as VC,Id as TE,Ie as Xn,If as pS,Ig as US,J as Ho,Ja as nC,Jd as PE,Je as Jn,Jf as uS,Jg as jS,Jh as Uw,K as Vo,Kb as fC,Kc as KC,Kd as ME,Ke as D,Kf as mS,Kg as BS,Kh as jw,Ki as HA,L as Ko,La as gn,Ld as kE,Le as Zn,Lf as fS,Lg as qS,Li as Hi,M as Wo,Ma as yn,Mb as _C,Md as xE,Mf as _S,Mg as zS,Mi as VA,N as Yo,Na as Ge,Nb as TC,Nd as NE,Nf as hS,Ng as HS,Nh as Bw,Ni as rv,O as Xo,Oa as iC,Ob as CC,Od as LE,Og as VS,Oh as qw,Oi as ov,P as Jo,Pa as sC,Pb as EC,Pg as KS,Ph as zw,Pi as nv,Q as Zo,Qa as bn,Qb as SC,Qf as gS,Qg as WS,Qh as Hw,Qi as iv,R as Qo,Ra as Tn,Rb as wC,Re as je,Rf as yS,Rg as YS,Rh as Vw,Ri as sv,S as en,Sb as OC,Se as Qn,Sf as bS,Sg as XS,Sh as Kw,Si as av,T as tn,Ta as Cn,Tb as Ue,Tf as TS,Tg as JS,Th as Ww,Ti as dv,U as rn,Ub as wt,Ud as DE,Uf as CS,Ug as ZS,Uh as Yw,Ui as cv,V as on,Vb as RC,Vf as ES,Vg as QS,Vh as Xw,Vi as Ki,Wb as IC,Wc as WC,Wf as SS,Wg as ew,Wh as Jw,Wi,Xb as PC,Xc as YC,Xd as $n,Xf as wS,Xg as tw,Xh as Zw,Xi as Yi,Yb as MC,Yc as XC,Yd as $E,Yf as AS,Yg as rw,Yh as Qw,Zb as z,Zd as Fn,Ze as eS,Zf as vS,Zg as ow,Zh as eA,_b as kC,_c as JC,_e as tS,_f as OS,_g as nw,a as I,aa as Tt,ac as NC,af as ei,ah as sw,ai as Ui,b as wT,ba as cn,bc as LC,bd as QC,bf as ti,bg as Ti,bh as aw,bi as ji,c as yt,ca as ln,cc as DC,cd as Mn,cf as ri,cg as Ci,ch as dw,d as AT,da as pn,dc as $C,df as oi,dg as Ei,dh as cw,e as vT,eb as En,ec as FC,ed as kn,ee as GE,ef as ni,eg as Si,eh as lw,f as OT,fb as Sn,fd as xn,ff as ii,fg as wi,fh as pw,g as RT,gb as wn,ge as UE,gf as si,gg as Ai,gh as uw,gi as rA,h as IT,ha as un,hc as GC,he as jE,hf as ai,hg as vi,hh as mw,hi as oA,i as PT,ib as An,id as eE,ie as Gn,if as di,ig as Oi,ih as fw,ii as nA,j as MT,ja as mn,jc as Rn,jd as tE,je as Un,jf as ci,jg as Ri,jh as _w,ji as iA,k as kT,ka as fn,kc as In,kd as rE,kf as li,kg as Ii,kh as hw,l as xT,la as _n,lb as dC,ld as oE,le as jn,lf as pi,lg as Pi,lh as gw,li as sA,m as NT,mb as cC,md as nE,me as Bn,mf as ui,mg as Mi,mh as yw,mi as aA,n as LT,nd as iE,ne as qn,nf as mi,ng as ki,nh as bw,o as Io,od as sE,oe as zn,of as fi,og as xi,oh as Tw,oi as dA,p as Po,pd as Nn,pe as Hn,pf as oS,pg as Ni,ph as Cw,q as Mo,qd as aE,qe as BE,qf as nS,qg as Li,qh as Ew,qi as mA,r as ko,rb as lC,rd as dE,re as qE,rf as _i,rg as Di,rh as Sw,ri as fA,s as Ne,sf as iS,sg as $i,sh as ww,si as _A,t as xo,tf as hi,tg as Fi,th as Aw,ti as hA,u as L,ub as pC,ud as cE,ue as Vn,uf as gi,ug as Gi,uh as vw,ui as gA,v as Le,vc as UC,vd as lE,ve as Kn,vf as yi,vg as IS,vh as Ow,vi as yA,w as No,wd as pE,we as zE,wf as bi,wg as PS,wh as Rw,wi as bA,x as Lo,xb as uC,xc as jC,xd as uE,xe as Wn,xg as MS,xh as Iw,xi as TA,y as Do,yc as BC,yd as mE,ye as Yn,yg as kS,yh as Pw,yi as CA,z as $o,zc as qC,zd as fE,ze as HE,zg as xS,zh as Mw}from"./chunks/chunk-5KHLV7JU.js";import"./chunks/chunk-SPPHDVZE.js";import{a as Wc,b as Yc,e as Xc,f as Jc}from"./chunks/chunk-RSAN2YUU.js";import"./chunks/chunk-VS565KBX.js";import{A as me,B as ST,C as b,E as sn,F as Ct,G as fe,H as an,K as Fe,M as dn,b as hT,c as gT,d as yT,m as bT,r as TT,u as CT,y as ET}from"./chunks/chunk-O4ZLEN4T.js";import"./chunks/chunk-XAWE4EAK.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8f11e0bf-4115-55a8-bd39-c360f43cdc09")}catch{}})();var H="2026-07-28",rr=["2025-11-25","2025-06-18"],re=[H],m={headerMismatch:-32020,missingRequiredClientCapability:-32021,unsupportedProtocolVersion:-32022,invalidParams:-32602},w={clientCapabilities:"io.modelcontextprotocol/clientCapabilities",clientInfo:"io.modelcontextprotocol/clientInfo",logLevel:"io.modelcontextprotocol/logLevel",protocolVersion:"io.modelcontextprotocol/protocolVersion",serverInfo:"io.modelcontextprotocol/serverInfo"},tr=["debug","info","notice","warning","error","critical","alert","emergency"],u=class extends Error{code;data;constructor(t,r,o={}){super(t),this.name="PmMcpProtocolError",this.code=r,this.data=o}};function h(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function mg(e){if(e===void 0)return;if(!h(e))throw new u("Invalid MCP clientInfo metadata",m.invalidParams,{field:w.clientInfo,expected:"object"});let t=typeof e.name=="string"?e.name.trim():"",r=typeof e.version=="string"?e.version.trim():"";if(t.length===0||r.length===0)throw new u("Invalid MCP clientInfo metadata",m.invalidParams,{field:w.clientInfo,required:["name","version"]});let o={name:t.slice(0,128),version:r.slice(0,128)};return typeof e.description=="string"&&e.description.trim()&&(o.description=e.description.trim().slice(0,1024)),typeof e.websiteUrl=="string"&&e.websiteUrl.trim()&&(o.websiteUrl=e.websiteUrl.trim().slice(0,2048)),o}function fg(e){if(e!==void 0){if(typeof e!="string"||!tr.includes(e))throw new u("Invalid MCP logLevel metadata",m.invalidParams,{field:w.logLevel,allowed:[...tr]});return e}}function Je(e){let t=h(e)?e._meta:void 0;if(!h(t))throw new u("Missing required MCP request metadata",m.invalidParams,{required:[w.protocolVersion,w.clientCapabilities]});let r=t[w.protocolVersion];if(typeof r!="string"||!re.includes(r))throw new u("Unsupported protocol version",m.unsupportedProtocolVersion,{supported:[...re],requested:typeof r=="string"?r:null});let o=t[w.clientCapabilities];if(!h(o))throw new u("Invalid MCP client capabilities metadata",m.invalidParams,{field:w.clientCapabilities,expected:"object"});let n=mg(t[w.clientInfo]),s=fg(t[w.logLevel]);return{protocolVersion:H,clientCapabilities:o,...n?{clientInfo:n}:{},...s?{logLevel:s}:{}}}function Gx(e,t){if(t!==e.protocolVersion)throw new u("MCP protocol header does not match request metadata",m.headerMismatch,{header:t??null,metadata:e.protocolVersion})}function Ux(e,t){let r=t.filter(o=>!Object.prototype.hasOwnProperty.call(e.clientCapabilities,o));if(r.length>0)throw new u("Missing required client capability",m.missingRequiredClientCapability,{requiredCapabilities:Object.fromEntries(r.map(o=>[o,{}]))})}function jx(e,t){let r=e.clientCapabilities.extensions;return h(r)&&h(r[t])}function Ze(e,t){let r=h(e._meta)?e._meta:{};return{...e,_meta:{...r,[w.serverInfo]:{...t}}}}function _g(e,t){return Ze({...e,resultType:"complete"},t)}function Bx(e){let t=e.ttlMs??6e4;if(!Number.isFinite(t)||t<0)throw new u("Invalid MCP discovery cache TTL",m.invalidParams,{ttlMs:t});return _g({supportedVersions:[...re],capabilities:structuredClone(e.capabilities),ttlMs:t,cacheScope:"public",...e.instructions?{instructions:e.instructions}:{}},e.serverInfo)}function qx(e,t){if(h(e)&&typeof e.resultType=="string")return e.resultType;if(t==="legacy")return"complete";throw new u("Modern MCP result is missing resultType",m.invalidParams,{required:"resultType"})}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d4a56906-c542-567e-9265-15184a5c330b")}catch{}})();var hg=new Set(["--help","-h","--version","-V"]);function gg(e,t){let r=[`Usage: ${e==="stdio"?"pm-mcp":"pm-mcp-http"} [--help | --version]`,"",e==="stdio"?"JSON-RPC over stdin/stdout. With no arguments, starts the stdio server.":"Streamable HTTP POST /mcp. With no arguments, starts the HTTP server.","","Options:"," -h, --help Print help and exit before transport startup."," -V, --version Print the package version and exit.","","Environment:"," PM_PATH Tracker root (otherwise discovered from cwd)."," PM_GLOBAL_PATH Global settings root."," PM_MCP_PROFILE core (default), standard, full, or custom."," PM_MCP_TOOLS Comma-separated tool allowlist for custom profile."," PM_MCP_DISCOVERY_CURSOR_KEY Shared discovery cursor secret, at least 32 UTF-8 bytes."," PM_MCP_BAGGAGE_ALLOWLIST Comma-separated permitted trace baggage keys."];return e==="http"&&r.push(" PM_MCP_HTTP_HOST Bind host (default 127.0.0.1)."," PM_MCP_HTTP_PORT Bind port, 0..65535 (default 3000)."," PM_MCP_HTTP_ALLOWED_ORIGINS Comma-separated exact browser origins (default none)."," PM_MCP_HTTP_BEARER_TOKEN Deployment token for the bundled verifier."," PM_MCP_HTTP_AUTH_ISSUER Exact HTTPS authorization-server issuer."," PM_MCP_HTTP_RESOURCE Canonical resource/audience URI."," PM_MCP_HTTP_SCOPES Space-separated scopes (default pm:read pm:write).","","Non-loopback HTTP requires bearer token, issuer, and resource together."),r.push("",`MCP protocol: ${re.join(", ")}.`,e==="stdio"?`Legacy initialize compatibility: ${rr.join(", ")}.`:"HTTP requires modern per-request metadata; legacy initialize is stdio-only.","",e==="stdio"?"Client configuration:":"Example loopback server:",e==="stdio"?JSON.stringify({mcpServers:{pm:{command:"npx",args:["--yes","--package",`@unbrained/pm-cli@${t}`,"pm-mcp"]}}}):`PM_MCP_HTTP_PORT=3000 npx --yes --package @unbrained/pm-cli@${t} pm-mcp-http`,...e==="http"?["HTTP client configuration:",JSON.stringify({mcpServers:{pm:{url:"http://127.0.0.1:3000/mcp"}}})]:[],"","Configuration: https://github.com/unbraind/pm-cli/blob/main/docs/MCP_REMOTE_TRANSPORT_SECURITY.md",""),r.join(`
2
2
  `)}function Vx(e,t,r){if(e.length===0)return{kind:"serve"};let o=e.find(n=>!hg.has(n));if(o!==void 0){let n=t==="stdio"?"pm-mcp":"pm-mcp-http";return{kind:"exit",exitCode:64,stdout:"",stderr:`Unsupported argument ${JSON.stringify(o)}. Run ${n} --help.
3
3
  `}}return{kind:"exit",exitCode:0,stdout:e.includes("--help")||e.includes("-h")?gg(t,r):`${r}
4
4
  `,stderr:""}}import{createHash as ir,createHmac as sr,timingSafeEqual as yg}from"node:crypto";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="15b81dd0-ef1a-58be-b6ee-5975b6778993")}catch{}})();var bg=["elicitation/create","roots/list","sampling/createMessage"],or=class extends Error{inputRequests;requestState;constructor(t){super("MCP operation requires additional input"),this.name="PmMcpInputRequiredError",this.inputRequests=t.inputRequests,this.requestState=t.requestState}},ar=/^[a-zA-Z][a-zA-Z0-9_.-]{0,63}$/u,ye=32,et=64*1024,be=16*1024,Qe={maxBytes:256*1024,maxDepth:32,maxNodes:4096};function Tg(e){return e==="elicitation/create"?"elicitation":e==="sampling/createMessage"?"sampling":"roots"}function Te(e,t,r){let o;try{o=JSON.stringify(e)}catch{throw new u(`Invalid ${r}: value is not JSON serializable`,m.invalidParams,{field:r})}if(Buffer.byteLength(o,"utf8")>t)throw new u(`Invalid ${r}: payload exceeds the protocol bound`,m.invalidParams,{field:r,maximumBytes:t})}function tt(e,t){if(!h(e))throw new u("Invalid MCP inputRequests",m.invalidParams,{field:"inputRequests",expected:"object"});let r=Object.entries(e);if(r.length===0||r.length>ye)throw new u("Invalid MCP inputRequests count",m.invalidParams,{minimum:1,maximum:ye,observed:r.length});let o={};for(let[n,s]of r){if(!ar.test(n)||!h(s))throw new u("Invalid MCP input request entry",m.invalidParams,{field:`inputRequests.${n}`});let i=s.method;if(typeof i!="string"||!bg.includes(i))throw new u("Unsupported MCP input request method",m.invalidParams,{field:`inputRequests.${n}.method`,method:i??null});let a=Tg(i);if(!Object.prototype.hasOwnProperty.call(t.clientCapabilities,a))throw new u("Missing required client capability",m.missingRequiredClientCapability,{requiredCapabilities:{[a]:{}}});if(!h(s.params))throw new u("Invalid MCP input request parameters",m.invalidParams,{field:`inputRequests.${n}.params`,expected:"object"});o[n]={method:i,params:structuredClone(s.params)}}return Te(o,et,"inputRequests"),o}function dr(e){if(!h(e))throw new u("Invalid MCP inputResponses",m.invalidParams,{field:"inputResponses",expected:"object"});let t=Object.entries(e);if(t.length>ye)throw new u("Invalid MCP inputResponses count",m.invalidParams,{maximum:ye,observed:t.length});let r={};for(let[o,n]of t){if(!ar.test(o)||!h(n))throw new u("Invalid MCP input response entry",m.invalidParams,{field:`inputResponses.${o}`});r[o]=structuredClone(n)}return Te(r,et,"inputResponses"),r}function Xx(e){let t=e.requestState?.trim();if(t&&Buffer.byteLength(t,"utf8")>be)throw new u("Invalid MCP requestState: payload exceeds the protocol bound",m.invalidParams,{field:"requestState",maximumBytes:be});let r=e.inputRequests===void 0?void 0:tt(e.inputRequests,e.requestContext);if(r===void 0&&!t)throw new u("InputRequiredResult requires inputRequests or requestState",m.invalidParams,{requiredAnyOf:["inputRequests","requestState"]});return{resultType:"input_required",...r?{inputRequests:r}:{},...t?{requestState:t}:{},_meta:{[w.serverInfo]:{...e.serverInfo}}}}function cr(e){let t=Buffer.from(e);if(t.byteLength<32)throw new u("MCP requestState signing key must contain at least 32 bytes",m.invalidParams,{minimumBytes:32});return t}function Jx(e,t){if(!Number.isSafeInteger(e.expiresAt)||e.expiresAt<=0||e.method.trim().length===0||e.parameterDigest.trim().length===0||e.principal.trim().length===0)throw new u("Invalid MCP requestState payload",m.invalidParams);let r=Buffer.from(JSON.stringify({version:1,...e}),"utf8");if(r.byteLength>be/2)throw new u("MCP requestState payload exceeds the protocol bound",m.invalidParams,{maximumBytes:be/2});let o=r.toString("base64url"),n=sr("sha256",cr(t)).update(o).digest("base64url");return`${o}.${n}`}function Cg(e){if(!h(e)||e.version!==1)throw new u("Invalid MCP requestState payload",m.invalidParams,{field:"requestState"});let{expiresAt:t,method:r,parameterDigest:o,principal:n,state:s}=e;if(typeof t!="number"||!Number.isSafeInteger(t))throw new u("Invalid MCP requestState payload",m.invalidParams,{field:"requestState"});if(typeof r!="string"||typeof o!="string"||typeof n!="string")throw new u("Invalid MCP requestState payload",m.invalidParams,{field:"requestState"});return{expiresAt:t,method:r,parameterDigest:o,principal:n,state:s}}function Zx(e,t,r){let[o,n,s]=e.split(".");if(!o||!n||s!==void 0)throw new u("Invalid MCP requestState encoding",m.invalidParams,{field:"requestState"});let i=Buffer.from(n,"base64url"),a=sr("sha256",cr(t)).update(o).digest();if(i.byteLength!==a.byteLength||!yg(i,a))throw new u("Invalid MCP requestState signature",m.invalidParams,{field:"requestState"});let d;try{d=JSON.parse(Buffer.from(o,"base64url").toString("utf8"))}catch{d=null}let c=Cg(d),{expiresAt:l,method:p,parameterDigest:f,principal:_}=c;if(l<(r.nowMs??Date.now()))throw new u("Expired MCP requestState",m.invalidParams,{field:"requestState",expiredAt:l});if(p!==r.method||f!==r.parameterDigest||_!==r.principal)throw new u("MCP requestState binding mismatch",m.invalidParams,{field:"requestState"});return c}function Qx(e){return Te(e,et,"request parameters"),ir("sha256").update(JSON.stringify(e)).digest("hex")}var nr=class{#e=new Set;#t;constructor(t=4096){if(!Number.isSafeInteger(t)||t<1)throw new u("Invalid MCP replay guard capacity",m.invalidParams,{maximumEntries:t});this.#t=t}consume(t){let r=ir("sha256").update(t).digest("hex");if(this.#e.has(r))throw new u("MCP requestState replay detected",m.invalidParams,{field:"requestState"});if(this.#e.size>=this.#t){let o=this.#e.values().next().value;this.#e.delete(o)}this.#e.add(r)}};function Eg(e){if(!Number.isSafeInteger(e.ttlMs)||e.ttlMs<0||e.cacheScope!=="public"&&e.cacheScope!=="private")throw new u("Invalid MCP cache policy",m.invalidParams,{ttlMs:e.ttlMs,cacheScope:e.cacheScope});return{ttlMs:e.ttlMs,cacheScope:e.cacheScope}}function eN(e,t){return{...e,...Eg(t)}}function Sg(e){return e.replaceAll("~1","/").replaceAll("~0","~")}function wg(e,t){if(t==="#")return e;if(!t.startsWith("#/"))return;let r=e;for(let o of t.slice(2).split("/").map(Sg)){if(!h(r)&&!Array.isArray(r)||!Object.prototype.hasOwnProperty.call(r,o))return;r=r[o]}return r}function Ag(e){let t=e.maxBytes??Qe.maxBytes,r=e.maxDepth??Qe.maxDepth,o=e.maxNodes??Qe.maxNodes;if(!Number.isSafeInteger(t)||t<2)throw new u("Invalid MCP JSON Schema work bounds",m.invalidParams);if(!Number.isSafeInteger(r)||r<1)throw new u("Invalid MCP JSON Schema work bounds",m.invalidParams);if(!Number.isSafeInteger(o)||o<1)throw new u("Invalid MCP JSON Schema work bounds",m.invalidParams);return{maximumBytes:t,maximumDepth:r,maximumNodes:o}}function vg(e,t){let r=Array.isArray(e.value)?e.value:h(e.value)?Object.values(e.value):[];for(let o of r)t.push({value:o,depth:e.depth+1})}function Og(e,t){if(!h(t)||typeof t.$ref!="string")return;let r=t.$ref;if(r.startsWith("#")&&wg(e,r)===void 0)throw new u("MCP JSON Schema contains an unresolved local reference",m.invalidParams,{reference:r})}function tN(e,t={}){let{maximumBytes:r,maximumDepth:o,maximumNodes:n}=Ag(t);if(typeof e!="boolean"&&!h(e))throw new u("Invalid MCP JSON Schema root",m.invalidParams,{expected:"object or boolean"});Te(e,r,"JSON Schema");let s=[{value:e,depth:0}],i=0;for(;s.length>0;){let a=s.pop();if(i+=1,i>n||a.depth>o)throw new u("MCP JSON Schema exceeds validation work bounds",m.invalidParams,{maximumDepth:o,maximumNodes:n});Og(e,a.value),vg(a,s)}return structuredClone(e)}import{randomUUID as Rg}from"node:crypto";import{readFile as Ig}from"node:fs/promises";import lr from"node:path";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f3e94896-b2a0-561c-902b-71c28ddde2a1")}catch{}})();var cN="io.modelcontextprotocol/tasks",Pg=["working","input_required","completed","failed","cancelled"],Mg=/^mcp-task-[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/iu,kg=3600*1e3,xg=1e3,Ee=1024,Ng=30,Lg=2e3;function rt(e){return new u(e,m.invalidParams,{code:"mcp_task_not_found_or_not_authorized"})}function Ce(e){let t=e.trim();if(!Mg.test(t))throw rt("Unknown MCP task");return t}function pr(e,t){if(typeof e!="string"||!Number.isFinite(Date.parse(e)))throw new u("Corrupt MCP task record",m.invalidParams,{field:t});return e}function ur(e){if(!h(e)||typeof e.code!="number"||!Number.isFinite(e.code)||typeof e.message!="string")throw new u("Corrupt MCP task error",m.invalidParams);return{code:e.code,message:e.message.slice(0,Ee),...h(e.data)?{data:structuredClone(e.data)}:{}}}function Dg(e){if(!Pg.includes(e))throw new u("Corrupt MCP task record",m.invalidParams);return e}function $g(e){if(typeof e!="string"||e.length===0)throw new u("Corrupt MCP task record",m.invalidParams);return e}function Fg(e){if(typeof e!="number"||!Number.isSafeInteger(e)||e<1)throw new u("Corrupt MCP task record",m.invalidParams);return e}function Gg(e){if(e!==null&&(typeof e!="number"||!Number.isSafeInteger(e)||e<0))throw new u("Corrupt MCP task record",m.invalidParams);return e}function Ug(e){if(e!==void 0){if(typeof e!="number"||!Number.isSafeInteger(e)||e<0)throw new u("Corrupt MCP task record",m.invalidParams);return e}}function jg(e){if(!Array.isArray(e)||e.some(t=>typeof t!="string"))throw new u("Corrupt MCP task record",m.invalidParams);return[...e]}function Bg(e){if(!h(e)||e.version!==1)throw new u("Corrupt MCP task record",m.invalidParams);let t=typeof e.taskId=="string"?Ce(e.taskId):"",r=Dg(e.status),o=$g(e.principal),n=Fg(e.workerPid),s=Gg(e.ttlMs),i=Ug(e.pollIntervalMs),a={version:1,taskId:t,status:r,principal:o,workerPid:n,createdAt:pr(e.createdAt,"createdAt"),lastUpdatedAt:pr(e.lastUpdatedAt,"lastUpdatedAt"),ttlMs:s,consumedInputKeys:jg(e.consumedInputKeys),...typeof e.statusMessage=="string"?{statusMessage:e.statusMessage.slice(0,Ee)}:{},...typeof i=="number"?{pollIntervalMs:i}:{}};if(h(e.inputRequests)&&(a.inputRequests=structuredClone(e.inputRequests)),h(e.inputResponses)&&(a.inputResponses=structuredClone(e.inputResponses)),h(e.result)&&(a.result=structuredClone(e.result)),e.error!==void 0&&(a.error=ur(e.error)),a.status==="input_required"&&!a.inputRequests||a.status==="completed"&&!a.result||a.status==="failed"&&!a.error)throw new u("Corrupt MCP task status payload",m.invalidParams,{status:a.status});return a}function V(e){let t={taskId:e.taskId,status:e.status,createdAt:e.createdAt,lastUpdatedAt:e.lastUpdatedAt,ttlMs:e.ttlMs,...e.statusMessage?{statusMessage:e.statusMessage}:{},...e.pollIntervalMs===void 0?{}:{pollIntervalMs:e.pollIntervalMs}};return e.status==="input_required"?{...t,status:"input_required",inputRequests:structuredClone(e.inputRequests)}:e.status==="completed"?{...t,status:"completed",result:structuredClone(e.result)}:e.status==="failed"?{...t,status:"failed",error:structuredClone(e.error)}:e.status==="cancelled"?{...t,status:"cancelled"}:{...t,status:"working"}}function oe(e){return e==="completed"||e==="failed"||e==="cancelled"}function qg(e){try{return process.kill(e,0),!0}catch(t){return!(typeof t=="object"&&t!==null&&"code"in t&&t.code==="ESRCH")}}var ot=class{#e;#t;#r;#o;#i;constructor(t){this.#e=lr.resolve(t.pmRoot),this.#t=t.owner?.trim()||"pm-mcp",this.#r=t.now??(()=>new Date),this.#o=t.taskIdFactory??(()=>`mcp-task-${Rg()}`),this.#i=t.workerPid??process.pid}#s(t){return lr.join(this.#e,"runtime","mcp-tasks","records",`${Ce(t)}.json`)}async#d(t){try{return Bg(JSON.parse(await Ig(this.#s(t),"utf8")))}catch(r){throw fe(r)||r instanceof SyntaxError?rt("Unknown MCP task"):r}}async#a(t){await Fe(this.#s(t.taskId),`${JSON.stringify(t,null,2)}
@@ -31,5 +31,5 @@ import{a as ug}from"./chunks/chunk-335BZ75D.js";import{a as Nk,b as Lk,c as Dk,d
31
31
  `,t+2);return r===-1?e.length:r+1}if(e.startsWith("/*",t))return e.indexOf("*/",t+2)+2}function gb(e,t,r){if(e[t]!=="/"||!_b(r))return;let o=t+1,n=!1;for(;o<e.length;)if(e[o]==="\\")o+=2;else if(e[o]==="[")n=!0,o+=1;else if(e[o]==="]")n=!1,o+=1;else if(e[o]==="/"&&!n){for(o+=1;/[A-Za-z]/u.test(e.charAt(o));)o+=1;return o}else o+=1;return o}function yb(e,t){let r=e[t];if(r==="'"||r==='"'||r==="`"){let n=fb(e,t);return r==="`"?{next:n.next}:{next:n.next,token:{kind:"string",value:n.value,offset:t+1}}}if(/[A-Za-z_$]/u.test(r)){let n=t+1;for(;/[A-Za-z0-9_$]/u.test(e[n]??"");)n+=1;return{next:n,token:{kind:"identifier",value:e.slice(t,n),offset:t}}}let o=e.startsWith("=>",t)?"=>":r;return{next:t+o.length,token:{kind:"punctuator",value:o,offset:t}}}function bb(e){let t=[],r=0;for(;r<e.length;){let o=hb(e,r);if(o!==void 0){r=o;continue}let n=gb(e,r,t.at(-1));if(n!==void 0){r=n;continue}let s=yb(e,r);s.token&&t.push(s.token),r=s.next}return t}var Tb=new Set(["object","block","pattern"]),Cb=new Set(["const","let","var"]),Eb=new Set(["}",")","]"]),Sb=new Set(["=","(","[",",",":","?","return"]);function wb(e,t,r){if([...r].reverse().find(n=>Tb.has(n.kind))?.kind==="pattern"||r.at(-1)?.kind==="paren"&&r.at(-1)?.parameter_list)return"pattern";let o=e[t-1];return o?.kind==="identifier"&&Cb.has(o.value)?"pattern":o?.value==="=>"||o?.value===")"?"block":o&&Sb.has(o.value)?"object":"block"}function Ab(e,t,r){let o=e[t];if(o.value==="{"){let i=wb(e,t,r);return{kind:i,...i==="object"?{member_start:!0,candidates:[]}:{}}}if(o.value==="[")return{kind:"array"};if(o.value!=="(")return;let n=e[t-1],s=e[t-2];return{kind:"paren",...n?.value==="function"||s?.value==="function"?{parameter_list:!0}:{}}}function vb(e,t,r){if(!(e?.kind!=="object"||!e.member_start||t.kind!=="identifier"&&t.kind!=="string"||r?.value!==":"||!/^[A-Za-z][A-Za-z0-9_]*$/u.test(t.value)))return{field:t.value,offset:t.offset}}function Ob(e,t){return e[t+1]?.value===")"&&e[t+2]?.value==="=>"||e[t+1]?.value==="="}function Rb(e){let t=bb(so.stripTypeScriptTypes(e,{mode:"strip"})),r=[],o=[];for(let[n,s]of t.entries()){let i=o.at(-1),a=vb(i,s,t[n+1]);a&&i.candidates.push(a);let d=Ab(t,n,o);if(d)o.push(d);else if(Eb.has(s.value)){let c=o.pop();c?.kind==="object"&&!Ob(t,n)&&r.push(...c.candidates)}else s.value===","&&i?.kind==="object"?i.member_start=!0:i?.kind==="object"&&s.value!==":"&&(i.member_start=!1)}return r}function Ib(e){let t=[0];for(let r=0;r<e.length;r+=1)e[r]===`
32
32
  `&&t.push(r+1);return t}function Pb(e,t){let r=0,o=e.length;for(;r<o;){let n=Math.floor((r+o)/2);e[n]<=t?r=n+1:o=n}return r}function pD(e){let t=[],r=[];for(let n of[...e].sort((s,i)=>Q(s.path,i.path))){let s=Ib(n.content),i;try{i=Rb(n.content)}catch(a){r.push({kind:"invalid_source",subject:n.path,detail:`${n.path} could not be parsed for recovery producers: ${String(a)}.`});continue}for(let a of i){let d=a.field,c=Pb(s,a.offset),l=ao(d);l?t.push({path:n.path,line:c,field:d,kind:l.kind}):/(?:retry_command|candidate_command|fallback_candidate|next_best_command|example|next_step|migration_hint|restore_with)/u.test(d)&&!/(?:_total|_truncated)$/u.test(d)&&r.push({kind:"unknown_recovery_field",subject:`${n.path}:${c}:${d}`,detail:`${d} resembles a recovery reference but has no typed field contract.`})}}let o=Object.fromEntries(ce.map(n=>[n,t.filter(s=>s.kind===n).length]));for(let n of ce)o[n]===0&&r.push({kind:"missing_kind_producer",subject:n,detail:`No source producer emits the ${n} recovery-reference kind.`});return t.sort((n,s)=>n.path!==s.path?Q(n.path,s.path):n.line!==s.line?n.line-s.line:Q(n.field,s.field)),r.sort((n,s)=>n.subject!==s.subject?Q(n.subject,s.subject):Q(n.kind,s.kind)),{ok:r.length===0,scanned_file_count:e.length,producer_count:t.length,producer_count_by_kind:o,producers:t,findings:r}}function uD(e,t){let r=[],o=(n,s)=>{if(Array.isArray(n)){n.forEach((i,a)=>o(i,[...s,String(a)]));return}if(!(typeof n!="object"||n===null))for(let[i,a]of Object.entries(n).sort(([d],[c])=>Q(d,c))){let d=ao(i),c=d?.kind==="migration_hint"&&n.semantics==="behavior_preserving"?{...d,semantics:"behavior_preserving"}:d,l=[a].flat();c!==void 0&&l.forEach((p,f)=>{let _="nested_value_field"in c&&typeof c.nested_value_field=="string"?c.nested_value_field:void 0,g=_&&typeof p=="object"&&p!==null&&!Array.isArray(p)?p[_]:p;if(typeof g!="string"||g.trim().length===0)return;let T=[...s,i,String(f)].map(E=>encodeURIComponent(E)).join("/");r.push({id:`${e}:${c.kind}:${T}`,probe_id:e,kind:c.kind,semantics:c.semantics,value:g})}),o(a,[...s,i])}};return o(t,[]),r}function mD(e,t){let r=e.flatMap(i=>(i.owned_states??[]).map(a=>({contract:i,state:a}))),o=[],n=new Map;for(let i of t){if(n.has(i.probe_id)){o.push({kind:"duplicate_probe",probe_id:i.probe_id,detail:`Observation ${i.probe_id} was supplied more than once.`});continue}n.set(i.probe_id,i)}let s=new Set(r.map(({state:i})=>i.probe_id));for(let{contract:i,state:a}of r){let d=n.get(a.probe_id);if(!d){o.push({kind:"missing_probe",probe_id:a.probe_id,detail:`No entrypoint observation was recorded for ${i.code}.`});continue}d.code!==i.code&&o.push({kind:"wrong_error_code",probe_id:a.probe_id,detail:`Expected ${i.code}; observed ${d.code}.`}),d.exit_class!==a.expected_exit_class&&o.push({kind:"wrong_exit_class",probe_id:a.probe_id,detail:`Expected ${a.expected_exit_class}; observed ${d.exit_class}.`}),a.entrypoints.includes(d.entrypoint)||o.push({kind:"wrong_entrypoint",probe_id:a.probe_id,detail:`Expected one of ${a.entrypoints.join(", ")}; observed ${d.entrypoint}.`})}for(let i of t)s.has(i.probe_id)||o.push({kind:"undeclared_probe",probe_id:i.probe_id,detail:`Observation ${i.probe_id} has no catalog declaration.`});return o.sort((i,a)=>i.probe_id!==a.probe_id?i.probe_id.localeCompare(a.probe_id):i.kind.localeCompare(a.kind)),{ok:o.length===0,declared_probe_count:r.length,observed_probe_count:t.length,findings:o}}function fD(e,t){let r=[],o=new Set,n=new Set;for(let d of e){if(o.has(d.id)){n.add(d.id),r.push({kind:"duplicate_obligation",reference_id:d.id,detail:`Recovery obligation ${d.id} was declared more than once.`});continue}o.add(d.id)}let s=new Map;for(let d of t){if(s.has(d.id)){r.push({kind:"duplicate_observation",reference_id:d.id,detail:`Recovery reference ${d.id} was observed more than once.`});continue}s.set(d.id,d),o.has(d.id)||r.push({kind:"undeclared_observation",reference_id:d.id,detail:`Recovery observation ${d.id} has no emitted obligation.`})}for(let d of e){if(n.has(d.id))continue;let c=s.get(d.id);c?c.reachable?c.semantics!==d.semantics&&r.push({kind:"wrong_semantics",reference_id:d.id,detail:`Recovery reference ${d.value} promised ${d.semantics}; proof demonstrated ${c.semantics}.`}):r.push({kind:"unreachable_reference",reference_id:d.id,detail:`Recovery reference ${d.value} did not reach its promised target.`}):r.push({kind:"missing_observation",reference_id:d.id,detail:`No reachability proof was recorded for ${d.kind} ${d.value}.`})}let i=ce.map(d=>{let c=e.filter(p=>p.kind===d),l=c.filter(p=>!n.has(p.id)).map(p=>s.get(p.id)).filter(p=>p!==void 0);return{kind:d,declared:c.length,observed:l.length,passed:c.filter(p=>{let f=s.get(p.id);return!n.has(p.id)&&f?.reachable===!0&&f.semantics===p.semantics}).length}});r.sort((d,c)=>d.reference_id!==c.reference_id?d.reference_id.localeCompare(c.reference_id):d.kind.localeCompare(c.kind));let a=i.reduce((d,c)=>d+c.passed,0);return{ok:r.length===0,declared_reference_count:e.length,observed_reference_count:t.length,pass_fraction:o.size===0?1:a/o.size,coverage_by_kind:i,findings:r}}function Mb(e,t){let r=new Map(ce.map(s=>[s,new Set]));for(let s of t)r.get(s.kind).add(s.value);let o=ce.map(s=>({kind:s,source_producers:e.producer_count_by_kind[s],runtime_values:r.get(s).size})),n=o.filter(({source_producers:s,runtime_values:i})=>s>0&&i===0).map(({kind:s})=>s);return{ok:e.ok&&n.length===0,source_producer_count:e.producer_count,runtime_value_count:o.reduce((s,{runtime_values:i})=>s+i,0),coverage_by_kind:o,missing_runtime_kinds:n}}var _D=Mb;(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2b2197f3-7203-52c8-9cc7-f714b33a9306")}catch{}})();var gD=16,kb=Object.freeze(["bulk_ids_input_empty","bulk_ids_input_missing_path","bulk_ids_input_unreadable","invalid_argument_value","missing_lifecycle_target","missing_required_argument","projection_options_mutually_exclusive","tracker_not_initialized","tracker_root_missing","tracker_root_not_directory","tracker_root_unreadable","unknown_context_intent","unknown_field_projection","unknown_option","unknown_subcommand"]),co=18,lo=Object.freeze([...kb,"manifest_unknown_key","no_version_bounds_declared"].sort((e,t)=>e.localeCompare(t)));function yD(e,t=co){return{ok:e.executable_error_code_count>=t,baseline:t,actual:e.executable_error_code_count}}function bD(e,t=lo){let r=new Set(e.rows.filter(({disposition:n})=>n==="executable").map(({canonical_code:n})=>n)),o=t.filter(n=>!r.has(n));return{ok:o.length===0,required_canonical_codes:[...t],missing_required_canonical_codes:o}}function _t(e,t){let r=e.get(t);if(r)return r;let o={kinds:new Set,probeIds:new Set};return e.set(t,o),o}function TD(e,t,r){let o=new Map(e.map(l=>[l.code,l.canonical_code??l.code])),n=new Map,s=0,i=0;for(let l of e){let p=_t(n,l.canonical_code??l.code);for(let f of l.owned_states??[])p.kinds.add("owned_state"),p.probeIds.add(f.probe_id)}for(let l of t){let p=o.get(l.error_code);if(p===void 0)continue;s+=1;let f=_t(n,p);f.kinds.add("closed_domain"),f.probeIds.add(l.probe_id)}for(let l of r){let p=o.get(l.error_code);if(p===void 0)continue;i+=1;let f=_t(n,p);f.kinds.add("grammar"),f.probeIds.add(l.probe_id)}let a=e.map(l=>{let p=l.canonical_code??l.code,f=n.get(p),_=[...f.probeIds].sort();return{code:l.code,canonical_code:p,disposition:_.length>0?"executable":"uncovered",evidence_kinds:[...f.kinds].sort(),probe_ids:_}}).sort((l,p)=>l.code<p.code?-1:1),d=a.filter(({disposition:l})=>l==="uncovered").map(({code:l})=>l),c=a.length-d.length;return{ok:d.length===0,catalog_error_code_count:a.length,executable_error_code_count:c,uncovered_error_code_count:d.length,coverage_fraction:a.length===0?1:c/a.length,closed_domain_probe_count:s,grammar_probe_count:i,uncovered_error_codes:d,rows:a}}function CD(e){let t=e.rows.map(r=>`| \`${r.code}\` | \`${r.canonical_code}\` | ${r.disposition} | ${r.evidence_kinds.join(", ")||"none"} | ${r.probe_ids.length} |`);return["# Generated refusal closure census","","Tracker: `pm-f05lsg`.","","Every catalog code is listed. An `uncovered` row is an explicit closure obligation, never an omission or implied approval.","",`- Catalog error codes: ${e.catalog_error_code_count}`,`- Executable error codes: ${e.executable_error_code_count}`,`- Executable-code ratchet floor: ${co}`,`- Required executable canonical codes: ${lo.map(r=>`\`${r}\``).join(", ")}`,`- Uncovered error codes: ${e.uncovered_error_code_count}`,`- Coverage fraction: ${e.coverage_fraction.toFixed(6)}`,`- Closed-domain probes: ${e.closed_domain_probe_count}`,`- Grammar probes: ${e.grammar_probe_count}`,"","| Error code | Canonical code | Disposition | Evidence kinds | Probe count |","| --- | --- | --- | --- | --- |",...t,""].join(`
33
33
  `)}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d252409d-e33e-5c9e-9671-789f0ee87312")}catch{}})();function xb(e){return[e.expected_error_code!==void 0&&e.error_code!==e.expected_error_code?{code:"error_code_mismatch",probe_id:e.probe_id,detail:`Expected error code ${e.expected_error_code}, received ${e.error_code??"<missing>"}.`}:void 0,e.expected_allowed_values!==void 0&&JSON.stringify([...e.allowed_values].sort())!==JSON.stringify([...e.expected_allowed_values].sort())?{code:"incomplete_allowed_values",probe_id:e.probe_id,detail:"The refusal's accepted domain differs from the SDK-owned domain contract."}:void 0,e.expected_suggested_retry_args!==void 0&&(e.suggested_retry_args?.length??0)===0?{code:"missing_suggested_retry_args",probe_id:e.probe_id,detail:"The refusal omitted shell-free suggested retry arguments."}:void 0,e.expected_suggested_retry_args!==void 0&&(e.suggested_retry_args?.length??0)>0&&JSON.stringify(e.suggested_retry_args)!==JSON.stringify(e.expected_suggested_retry_args)?{code:"suggested_retry_args_mismatch",probe_id:e.probe_id,detail:"The refusal's suggested retry arguments differ from the SDK-owned contract."}:void 0]}function Nb(e){return[e.exit_code!==me.USAGE?{code:"non_refusal_exit",probe_id:e.probe_id,detail:`${e.entrypoint} returned exit code ${e.exit_code}; a structured usage refusal must return ${me.USAGE}.`}:void 0,e.allowed_values_required!==!1&&e.allowed_values.length===0?{code:"missing_allowed_values",probe_id:e.probe_id,detail:"The refusal omitted its complete accepted value domain."}:void 0,e.allowed_values.includes(e.rejected_value)?{code:"accepted_rejected_value",probe_id:e.probe_id,detail:`${e.rejected_value} is both rejected and advertised as allowed.`}:void 0,e.suggested_retry.trim().length===0?{code:"missing_suggested_retry",probe_id:e.probe_id,detail:"The refusal omitted an executable suggested retry."}:void 0,e.retry_succeeded?void 0:{code:"retry_failed",probe_id:e.probe_id,detail:"The advertised suggested retry did not succeed."},...xb(e)]}function wD(e){let t=[],r=new Set,o=0;e.length===0&&t.push({code:"empty_corpus",probe_id:"corpus",detail:"At least one real refusal observation is required."});for(let n of e){if(r.has(n.probe_id)){t.push({code:"duplicate_probe",probe_id:n.probe_id,detail:`${n.probe_id} was supplied more than once.`});continue}r.add(n.probe_id);let s=t.length;for(let i of Nb(n))i!==void 0&&t.push(i);t.length===s&&(o+=1)}return t.sort((n,s)=>n.probe_id!==s.probe_id?n.probe_id.localeCompare(s.probe_id):n.code.localeCompare(s.code)),{ok:t.length===0,probe_count:r.size,closed_probe_count:o,closure_fraction:r.size===0?0:o/r.size,findings:t}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="39b4e1fe-a34a-5ffc-9447-eaf8c46863c7")}catch{}})();var po="not-a-declared-action";function Lb(e,t){if(e.startsWith("assurance ")&&t.name==="kind")return"measurement";switch(t.value_kind){case"integer":return"1";case"item_id":return"pm-domain";case"action":throw new Error(`Cannot synthesize a preceding action value for positional slot ${t.name}.`);default:return"example"}}function le(e){return e.replaceAll(/[^a-z0-9]+/gu,"-").replaceAll(/^-|-$/gu,"")}function xD(e=qe.filter(t=>It.some(r=>r.command===t.command&&r.disposition!=="package_owned"))){let t=new Set(e.filter(({command:r})=>!r.includes(" ")).map(({command:r})=>le(r)));return e.flatMap(r=>r.slots.flatMap((o,n)=>{if(!o.required)return[];let s=r.command.split(" "),i=le(r.command),a=s.length>1&&t.has(i)?s.map(le).join("--"):i,d=ee(r.command).flatMap(l=>l.required?[l.flag,...l.value_name?["example"]:[]]:[]),c=Be.some(l=>l.command===r.command);return[{probe_id:`required-argument-${a}-${le(o.name)}`,command:r.command,refusal_args:[...s,...r.slots.slice(0,n).map(l=>Lb(r.command,l)),...d],recovery_args:[...s,"--help"],error_code:c&&!r.command.startsWith("assurance ")?"invalid_argument_value":/^extension (?:activate|adopt|deactivate|uninstall)$/u.test(r.command)?"missing_lifecycle_target":"missing_required_argument",missing_argument:o.name,missing_argument_index:n}]})).sort((r,o)=>r.probe_id.localeCompare(o.probe_id))}function Db(e){switch(L(e)){case"assurance":case"workspace snapshot":return Be.filter(({parent:t})=>t===e).map(({action:t})=>t);case"graph":return De;case"merge":return $e;case"plan":return Ye;case"profile":return Xe;case"schema":return Lt;default:throw new Error(`Required positional action family ${e} has no authoritative value domain.`)}}function ND(e=qe){return e.filter(({slots:t})=>t[0]?.required===!0&&t[0].value_kind==="action").map(({command:t})=>{let r=t.split(" ");return{probe_id:`unknown-subcommand-${le(t)}`,command:t,refusal_args:[...r,po],recovery_args:[...r,"--help"],error_code:"unknown_subcommand",rejected_value:po,allowed_values:[...Db(t)].sort()}}).sort((t,r)=>t.probe_id.localeCompare(r.probe_id))}function $b(e,t){let r=[...t].sort();return e.length===t.length&&[...e].sort().every((o,n)=>o===r[n])}function Fb(e,t){if(!t)return[{code:"refusal_probe_missing",probe_id:e.probe_id,detail:`${e.probe_id} has no runtime observation.`}];let r=[];return t.error_code!==e.error_code&&r.push({code:"refusal_error_code_mismatch",probe_id:e.probe_id,detail:`${e.probe_id} emitted ${t.error_code||"<none>"}; expected ${e.error_code}.`}),t.exit_code!==2&&r.push({code:"refusal_exit_code_mismatch",probe_id:e.probe_id,detail:`${e.probe_id} exited ${t.exit_code}; expected usage exit 2.`}),"allowed_values"in e&&!$b(t.allowed_values,e.allowed_values)&&r.push({code:"refusal_allowed_values_mismatch",probe_id:e.probe_id,detail:`${e.probe_id} did not expose its complete action domain.`}),t.recovery_succeeded||r.push({code:"refusal_recovery_failed",probe_id:e.probe_id,detail:`${e.probe_id} help recovery did not succeed.`}),t.refusal_mutated_state&&r.push({code:"refusal_mutated_state",probe_id:e.probe_id,detail:`${e.probe_id} changed tracker state while refusing input${t.mutated_paths?.length?`: ${t.mutated_paths.join(", ")}`:"."}`}),r}function LD(e,t){let r=new Map(e.map(i=>[i.probe_id,i])),o=new Map(t.map(i=>[i.probe_id,i])),n=[...e.flatMap(i=>Fb(i,o.get(i.probe_id))),...t.filter(i=>!r.has(i.probe_id)).map(i=>({code:"unexpected_refusal_probe",probe_id:i.probe_id,detail:`${i.probe_id} has no declared grammar refusal contract.`}))];n.sort((i,a)=>i.probe_id.localeCompare(a.probe_id)||i.code.localeCompare(a.code));let s=new Set(n.map(({probe_id:i})=>i));return{ok:n.length===0,probe_count:e.length,closed_probe_count:e.filter(({probe_id:i})=>!s.has(i)).length,findings:n}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d3795bc4-fbe5-5ca4-bc90-b72a2d469dc7")}catch{}})();var ht=[{probe_id:"tracker-root-missing",failure_kind:"missing_root",expected_error_code:"tracker_root_missing",expected_exit_code:3,recovery_kind:"initialize"},{probe_id:"tracker-root-settings-missing",failure_kind:"settings_missing",expected_error_code:"tracker_not_initialized",expected_exit_code:3,recovery_kind:"initialize"},{probe_id:"tracker-root-not-directory",failure_kind:"not_directory",expected_error_code:"tracker_root_not_directory",expected_exit_code:2,recovery_kind:"select_directory"},{probe_id:"tracker-root-unreadable",failure_kind:"unreadable_root",expected_error_code:"tracker_root_unreadable",expected_exit_code:1,recovery_kind:"repair_permissions"}];function $D(){return ht.map(e=>({...e}))}function Gb(e,t){let r=[];t.error_code!==e.expected_error_code&&r.push({code:"error_code_mismatch",probe_id:e.probe_id,detail:`Expected ${e.expected_error_code}, received ${t.error_code}.`}),t.exit_code!==e.expected_exit_code&&r.push({code:"exit_code_mismatch",probe_id:e.probe_id,detail:`Expected exit ${e.expected_exit_code}, received ${t.exit_code}.`}),t.recovery_kind!==e.recovery_kind&&r.push({code:"recovery_kind_mismatch",probe_id:e.probe_id,detail:`Expected ${e.recovery_kind}, received ${t.recovery_kind}.`});let o=t.suggested_retry_args.indexOf("init"),n=o===0||o===2&&t.suggested_retry_args[0]==="--pm-path"&&t.suggested_retry_args[1]?.length>0;return e.recovery_kind==="initialize"&&!n&&r.push({code:"missing_init_recovery",probe_id:e.probe_id,detail:"Missing and uninitialized roots must emit a tokenized init retry."}),(t.unsafe_init_recommended||e.recovery_kind!=="initialize"&&t.suggested_retry_args.includes("init"))&&r.push({code:"unsafe_init_recovery",probe_id:e.probe_id,detail:"A tracker root that cannot be initialized safely must not recommend initialization."}),t.retry_succeeded||r.push({code:"retry_failed",probe_id:e.probe_id,detail:"The emitted retry or safe alternate-root recovery did not execute successfully."}),r}function FD(e){let t=new Map(e.map(n=>[n.probe_id,n])),r=[],o=0;for(let n of ht){let s=t.get(n.probe_id);if(s===void 0){r.push({code:"missing_probe",probe_id:n.probe_id,detail:"No runtime observation was supplied for this contract."});continue}let i=Gb(n,s);r.push(...i),i.length===0&&(o+=1)}return r.sort((n,s)=>n.probe_id.localeCompare(s.probe_id)||n.code.localeCompare(s.code)),{ok:r.length===0,probe_count:ht.length,closed_probe_count:o,findings:r}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="29c6ca01-4b1b-56fb-9bcc-5e1c26f17aff")}catch{}})();var Pe,Ub=Object.freeze({list:"list-item-projection","list-all":"list-item-projection","list-draft":"list-item-projection","list-open":"list-item-projection","list-in-progress":"list-item-projection","list-blocked":"list-item-projection","list-closed":"list-item-projection","list-canceled":"list-item-projection",get:"get-item-projection",graph:"graph-detail-projection",search:"search-result-projection",history:"history-entry-projection",events:"mutation-event-projection",activity:"activity-entry-projection",deps:"dependency-graph-projection",health:"health-diagnostic-projection",validate:"validation-diagnostic-projection",contracts:"contract-catalog-projection"});function jb(e,t){if(t==="--limit")return"result-row-limit";if(t==="--node-limit")return"graph-node-limit";if(t==="--edge-limit")return"graph-edge-limit";if(t==="--output-limit")return"rendered-output-row-limit";if(t==="--output-budget")return"rendered-output-byte-budget";if(t==="--token-budget")return"context-intent-token-budget";if(t==="--full"){let r=Ub[L(e)];if(r===void 0)throw new Error(`Command ${e} exposes --full without a registered projection concept.`);return r}return t!=="--file"?t.slice(2):["create","update","update-many"].includes(L(e))?"linked-file-path":["comments","notes","learnings"].includes(L(e))?"entry-file-input":"plan-definition-file"}function Me(){if(Pe!==void 0)return Pe;let e=te.filter(({command:n})=>ze(n)).flatMap(({command:n,family:s})=>Mt(n,ee(n)).map(i=>({command:n,family:s,concept:jb(n,i.flag),flag:i.flag,aliases:Object.freeze([...i.aliases??[]]),value_kind:i.repeatable?"list":i.flag==="--limit"?"number":i.value_type}))),t=new Set(e.flatMap(n=>n.aliases.map(s=>`${n.command}:${s}`))),r=e.filter(n=>!t.has(`${n.command}:${n.flag}`)),o=new Map;for(let n of r){let s=o.get(n.concept)??new Set;s.add(n.value_kind),o.set(n.concept,s)}return Pe=Object.freeze(r.map(n=>Object.freeze({...n,concept:o.get(n.concept)?.size===1?n.concept:`${n.concept}@${n.command}`}))),Pe}function zD(){return Object.freeze(Me().map(e=>Object.freeze({command:e.command,canonical_flag:e.flag,accepted_spellings:Object.freeze([...new Set([e.flag,...e.aliases])].sort())})))}var uo=Object.freeze({init:30,item:20,config:36,extension:55,package:56,packages:56,install:27,upgrade:29,create:102,copy:24,focus:22,list:86,"list-all":86,"list-draft":84,"list-open":84,"list-in-progress":84,"list-blocked":84,"list-closed":84,"list-canceled":84,aggregate:40,context:45,ctx:45,get:30,graph:34,search:78,duplicates:25,eval:25,next:38,history:36,events:34,"history-attest":23,"history-redact":27,"history-repair":27,"history-compact":30,"history-author-acknowledge":28,merge:29,schema:43,profile:22,activity:36,restore:23,update:105,"update-many":146,close:32,"close-many":72,delete:24,append:25,comments:31,notes:35,learnings:31,files:39,docs:30,deps:32,plan:111,test:56,"test-all":40,telemetry:21,stats:29,health:36,validate:46,assurance:30,gc:22,workspace:23,contracts:29,claim:39,release:25,"start-task":23,"pause-task":23,"close-task":24,meet:33,event:33,remind:29,"test-runs-worker":20}),Bb=1,mo=Object.freeze(Object.fromEntries(Object.entries({...uo,...Object.fromEntries(Ne.flatMap(({alias:e,canonical:t})=>{let r=uo[e];return r===void 0?[]:[[t,r]]}))}).map(([e,t])=>[e,t+Bb])));function fo(){let e=new Map(Object.keys(mo).map(t=>[t,0]));for(let{command:t}of Me())e.set(t,Number(e.get(t))+1);return Object.freeze(Object.entries(mo).map(([t,r])=>Object.freeze({command:t,current:Number(e.get(t)),maximum:r})))}function qb(e,t,r){for(let o of e)for(let n of o.aliases){let s=t.get(`${o.command}:${n}`);s===void 0||s.flag===o.flag||r.push({code:"alias_collision",command:o.command,detail:`${n} aliases ${o.flag} but is canonical for ${s.flag}.`})}}function zb(e,t,r){let o=new Set(t.map(({command:n})=>n));for(let n of e.keys())o.has(n)||r.push({code:"missing_budget",command:n,detail:`${n} has canonical flags but no persisted budget.`});for(let n of t){let s=e.get(n.command)??0;s===0&&r.push({code:"stale_budget",command:n.command,detail:`${n.command} has a persisted budget but no canonical flags.`}),!(s<=n.maximum)&&r.push({code:"budget_exceeded",command:n.command,detail:`${s} canonical flags exceed the ratcheted maximum ${n.maximum}.`})}}function Hb(e,t,r){let o=new Map(e.map(n=>[`${n.command}:${n.flag}`,n]));for(let n of t){let s=`${n.command}:${n.canonical_flag}`,i=o.get(s);if(!i){r.push({code:"removed_canonical_spelling",command:n.command,detail:`${n.canonical_flag} disappeared from the executable spelling inventory.`});continue}let a=new Set([i.flag,...i.aliases]);for(let d of n.accepted_spellings)a.has(d)||r.push({code:"removed_compatibility_spelling",command:n.command,detail:`${d} no longer resolves to ${n.canonical_flag}.`})}}function HD(e=Me(),t=fo(),r=[]){let o=[],n=new Map,s=new Map,i=new Map,a=new Map;for(let d of e){let c=`${d.command}:${d.flag}`;n.has(c)?o.push({code:"duplicate_canonical_flag",command:d.command,detail:`${d.flag} has more than one canonical row.`}):n.set(c,d),a.set(d.command,(a.get(d.command)??0)+1);let l=s.get(d.concept);l!==void 0&&l!==d.value_kind?o.push({code:"inconsistent_concept_kind",command:d.command,detail:`${d.concept} uses both ${l} and ${d.value_kind}.`}):s.set(d.concept,d.value_kind);let p=i.get(d.concept);p!==void 0&&p!==d.flag?o.push({code:"semantic_spelling_collision",command:d.command,detail:`${d.concept} is canonicalized by both ${p} and ${d.flag}.`}):i.set(d.concept,d.flag)}return qb(e,n,o),zb(a,t,o),Hb(e,r,o),o.sort((d,c)=>d.command.localeCompare(c.command)||d.code.localeCompare(c.code)||d.detail.localeCompare(c.detail)),{ok:o.length===0,entry_count:e.length,budget_count:t.length,concept_count:new Set(e.map(({concept:d})=>d)).size,baseline_entry_count:r.length,findings:o}}function VD(){let e=Me(),t=fo(),r=new Map(t.map(({command:o})=>[o,"unknown"]));for(let{command:o,family:n}of e)r.set(o,n);return["# Generated flag lexicon budgets","","This file is generated by `listPmFlagLexicon()`. Compatibility aliases do not consume canonical budget.","","| Command | Capability family | Canonical flags | Maximum |","| --- | --- | ---: | ---: |",...t.map(({command:o,current:n,maximum:s})=>{let i=r.get(o);return`| \`${o}\` | ${i} | ${n} | ${s} |`}),""].join(`
34
- `)}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4c9a1aa8-05b6-53da-a8b1-f1a7289d39cf")}catch{}})();function WD(e){return e}function YD(e){return e}function XD(e){return e}function JD(e){return e}function ZD(e){return e}function QD(e){return e}function e1(e){return e}function t1(e){return e}function r1(e){return e}function o1(e){return e}function n1(e){return e}function i1(e){return e}function s1(e){return e}function a1(e){return{handled:!0,result:e}}function d1(){return{handled:!1}}function c1(e){return e}function l1(e){return e}function p1(e){return e}function u1(e){return e}function m1(e){return e}function f1(e){return e}function _1(e){return e}function h1(e){return e}function g1(e){return e}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="68ca9ab1-91e0-5020-859e-fc1f1f6dcc56")}catch{}})();function Vb(e={},t={}){return new ge(t).extension(void 0,{...e,migrate:!0})}function Kb(e={},t={}){return new ge(t).packageMigrate(e)}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d0b86c6a-67f0-52f2-90b8-d1058e8f2284")}catch{}})();(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="604d7dcb-9fea-5631-8a72-b2a7ff3278f8")}catch{}})();function N(e){if(typeof e!="string"||!_e(e))throw new TypeError("Invalid reliability timestamp.");return Date.parse(e)}function Wb(e){let t=N(e.window_start),r=N(e.window_end);if(t>=r||!Number.isFinite(e.max_failure_rate)||e.max_failure_rate<0||e.max_failure_rate>=1||!Number.isSafeInteger(e.min_completed_attempts)||e.min_completed_attempts<1)throw new TypeError("Invalid reliability window policy.");if(e.families.length===0||e.families.some(o=>typeof o!="string"||o.trim().length===0)||new Set(e.families).size!==e.families.length)throw new TypeError("Expected unique, nonempty reliability families.");return{start:t,end:r}}function Yb(e,t,r,o){let n=new Map(t.map(i=>[i,[]])),s=new Set;for(let i of e){if(typeof i.id!="string"||i.id.trim().length===0||s.has(i.id))throw new TypeError("Invalid or duplicate reliability attempt identity.");s.add(i.id);let a=n.get(i.family);if(!a||!["success","failure","pending"].includes(i.outcome)||i.cause!==void 0&&(!["product","infrastructure","unknown"].includes(i.cause)||i.outcome!=="failure"))throw new TypeError("Invalid reliability attempt family, outcome or cause.");let d=N(i.started_at);if(i.repaired_at!==void 0&&(N(i.repaired_at)<d||i.outcome!=="failure"))throw new TypeError("Invalid reliability repair chronology.");d>=r&&d<o&&a.push(i)}return n}function L1(e,t){let{start:r,end:o}=Wb(t),n=[...Yb(e,t.families,r,o)].map(([s,i])=>{let a=i.filter(_=>_.outcome==="failure"),d=i.filter(_=>_.outcome!=="pending").length,c=d===0?null:a.length/d,l=a.filter(_=>_.repaired_at!==void 0&&N(_.repaired_at)<o),p={product:0,infrastructure:0,unknown:0};for(let _ of a)p[_.cause??"unknown"]+=1;let f=[];return d<t.min_completed_attempts&&f.push("insufficient_completed_attempts"),c!==null&&c>t.max_failure_rate&&f.push("failure_rate"),{family:s,attempts:i.length,completed:d,failed:a.length,pending:i.length-d,failure_rate:c,affected_days:[...new Set(a.map(_=>new Date(N(_.started_at)).toISOString().slice(0,10)))].sort(),repair_minutes:l.map(_=>(N(_.repaired_at)-N(_.started_at))/6e4).sort((_,g)=>_-g),unresolved:a.length-l.length,causes:p,violations:f,ok:f.length===0}});return{schema:"pm-reliability-window/1",window_start:new Date(r).toISOString(),window_end:new Date(o).toISOString(),ok:n.every(s=>s.ok),families:n}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="773ad2b6-326e-5483-bdce-a377f935cb31")}catch{}})();function pe(e){return typeof e=="string"&&e.length>0&&e.trim()===e}function Xb(e){if(!Array.isArray(e)||e.length<2)throw new TypeError("Expected at least two artifact ledgers.");let t=new Map;for(let r of e){if(r===null||typeof r!="object"||!pe(r.name)||t.has(r.name)||r.complete!==!0)throw new TypeError("Expected unique complete artifact ledgers.");if(!Array.isArray(r.identities))throw new TypeError("Invalid or duplicate artifact identity.");let o=new Set(r.identities);if(o.size!==r.identities.length||[...o].some(n=>!pe(n)))throw new TypeError("Invalid or duplicate artifact identity.");t.set(r.name,o)}if([...t.values()].every(r=>r.size===0))throw new TypeError("Empty inventories cannot establish artifact reconciliation.");return t}function Jb(e,t){if(!Array.isArray(e))throw new TypeError("Expected unique evidence-backed artifact exceptions.");let r=new Map;for(let o of e){if(o===null||typeof o!="object"||!pe(o.identity)||r.has(o.identity)||!pe(o.reason)||!pe(o.evidence))throw new TypeError("Expected unique evidence-backed artifact exceptions.");let n=o.missing_from;if(!Array.isArray(n)||n.length===0||n.length>=t.length||new Set(n).size!==n.length||[...n].some(s=>!t.includes(s)))throw new TypeError("Invalid artifact exception ledger signature.");r.set(o.identity,o)}return r}function $1(e,t=[]){let r=Xb(e),o=[...r.keys()].sort(),n=Jb(t,o),s=[...new Set([...r.values()].flatMap(c=>[...c]))].sort(),i=[],a=new Set;for(let c of s){let l=o.filter(_=>!r.get(_).has(c));if(l.length===0)continue;let p=n.get(c),f=p!==void 0&&JSON.stringify([...p.missing_from].sort())===JSON.stringify(l);f&&a.add(c),i.push({identity:c,present_in:o.filter(_=>r.get(_).has(c)),missing_from:l,disposition:f?{reason:p.reason,evidence:p.evidence}:null})}let d=[...n.keys()].filter(c=>!a.has(c)).sort();return{schema:"pm-artifact-ledgers/1",ok:i.every(c=>c.disposition!==null)&&d.length===0,counts:Object.fromEntries(o.map(c=>[c,r.get(c).size])),findings:i,stale_exceptions:d}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fca4e9bb-3a30-512e-9929-565ab6c11c54")}catch{}})();import{createHash as ho,createHmac as Zb,randomBytes as Qb,timingSafeEqual as eT}from"node:crypto";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="98283845-5c48-5901-b54c-c8cc8138427b")}catch{}})();var T$="dev.unbrained.pm/progressive-tool-discovery",C$=Object.freeze({version:1,discoveryTool:"pm_discover",canonicalResult:"structuredContent.result",compatibilityText:"pointer"}),tT=Object.freeze(["pm_discover","pm_next","pm_context","pm_search","pm_get"]),B=Object.freeze({lexical:.4,semantic:.2,graph:.1,permission:.15,freshness:.05,usage:.1}),rT=Object.freeze(["profile_changed","tool_contract_changed","workspace_extension_changed","authorization_changed","ranking_signal_changed","cursor_integrity_key_rotated"]),go={core:0,standard:1,full:2,internal:3},yo=Object.freeze(["core","standard","full"]),oT=new Set(["core","standard","full","custom"]),bo=new Set(te.map(({family:e})=>e)),nT=Qb(32);function xe(e,t){if(typeof e!="string")throw new b(`pm tool discovery ${t} must be a string of at most 4096 Unicode characters.`,64);let r=e[Symbol.iterator](),o=0;for(let n=r.next();!n.done;n=r.next())if(o+=1,o>4096)throw new b(`pm tool discovery ${t} must be a string of at most 4096 Unicode characters.`,64);return e}function To(e){if(!Number.isInteger(e)||Number(e)<1||Number(e)>100)throw new b("pm tool discovery limit must be from 1 through 100.",64);return Number(e)}function Co(e){if(e!=="unbounded"&&(!Number.isInteger(e)||Number(e)<128))throw new b("pm tool discovery outputBudget must be unbounded or an integer of at least 128.",64);return e==="unbounded"?e:Number(e)}function Eo(e){if(e!==void 0&&typeof e!="boolean")throw new b("pm tool discovery includeSchema must be a boolean.",64);return e===!0}function So(e){if(e===null||typeof e!="object"||Array.isArray(e))throw new b("pm tool discovery options must be an object.",64)}function iT(e){if(!Array.isArray(e))throw new b("pm tool discovery candidates must be an array.",64);for(let[t,r]of e.entries()){if(r===null||typeof r!="object"||Array.isArray(r))throw new b(`pm tool discovery candidate ${t} must be an object.`,64);if(typeof r.name!="string"||r.name.trim().length===0)throw new b(`pm tool discovery candidate ${t} name must be a non-empty string.`,64);if(typeof r.description!="string"||r.description.trim().length===0)throw new b(`pm tool discovery candidate ${t} description must be a non-empty string.`,64);if(r.inputSchema===null||typeof r.inputSchema!="object"||Array.isArray(r.inputSchema))throw new b(`pm tool discovery candidate ${t} inputSchema must be an object.`,64);if(r.authorized!==void 0&&typeof r.authorized!="boolean")throw new b(`pm tool discovery candidate ${t} authorized must be a boolean.`,64)}}function E$(e){if(So(e),e.family!==void 0&&(typeof e.family!="string"||!bo.has(e.family)))throw new b("pm tool discovery family must be a declared capability family.",64);if(e.tier!==void 0&&(typeof e.tier!="string"||!yo.includes(e.tier)))throw new b("pm tool discovery tier must be core, standard, or full.",64);return{...e.query!==void 0?{query:xe(e.query,"query")}:{},...e.family!==void 0?{family:e.family}:{},...e.tier!==void 0?{tier:e.tier}:{},...e.limit!==void 0?{limit:To(e.limit)}:{},...e.cursor!==void 0?{cursor:xe(e.cursor,"cursor")}:{},...e.includeSchema!==void 0?{includeSchema:Eo(e.includeSchema)}:{},...e.outputBudget!==void 0?{outputBudget:Co(e.outputBudget)}:{}}}function sT(e){return e===void 0||!Number.isFinite(e)?0:Math.min(1,Math.max(0,e))}function ue(e){return[...new Set(e.toLowerCase().match(/[a-z0-9]+/gu)??[])].sort()}function aT(e,t){let r=ue(e);if(r.length===0)return 0;let o=new Set(ue(t)),n=r.filter(i=>o.has(i)).length,s=t.toLowerCase().includes(e.toLowerCase())?.25:0;return Math.min(1,n/r.length+s)}function dT(e,t){let r=ue(e);if(r.length===0)return 0;let o=t.toLowerCase(),n=ue(t),s=r.filter(a=>n.some(d=>d.startsWith(a)||a.startsWith(d))).length,i=o.includes(e.toLowerCase())?.2:0;return Math.min(1,s/r.length+i)}function _o(e){return ho("sha256").update(JSON.stringify(e)).digest("hex").slice(0,24)}function wo(e,t,r){return Zb("sha256",r).update(JSON.stringify({version:1,fingerprint:e,offset:t})).digest("base64url")}function cT(e,t,r){let o={version:1,offset:t,signature:wo(e,t,r)};return Buffer.from(JSON.stringify(o),"utf8").toString("base64url")}function lT(e,t,r,o){if(e===void 0)return 0;try{let n=JSON.parse(Buffer.from(e,"base64url").toString("utf8")),s=n.offset;if(n.version!==1||typeof s!="number"||!Number.isInteger(s)||s<0||s>r||typeof n.signature!="string")throw new Error("cursor fields do not match the request");let i=Buffer.from(wo(t,s,o),"base64url"),a=Buffer.from(n.signature,"base64url");if(a.length!==i.length||!eT(a,i))throw new Error("cursor signature does not match the request");return s}catch(n){throw new b("Invalid or stale pm tool discovery cursor; restart discovery without cursor.",64,{reason:String(n)})}}function gt(e,t,r){return{value:sT(e),weight:t,available:r!=="unavailable",source:r}}function ke(e,t,r){return gt(e??t,r,e===void 0?"computed":"host")}function pT(e,t,r){let o=Object.hasOwn(he,e.name)?he[e.name]:"help",n=Ve(o),s=`${e.name} ${e.description} ${o} ${n}`,i=aT(t,s),a=new Set(ue(t)),d={lexical:gt(i,B.lexical,"computed"),semantic:ke(e.signals?.semantic,dT(t,s),B.semantic),graph:ke(e.signals?.graph,a.has(n)||a.has(o)?1:0,B.graph),permission:gt(1,B.permission,"authorization"),freshness:ke(e.signals?.freshness,1,B.freshness),usage:ke(e.signals?.usage,tT.includes(e.name)?1:0,B.usage)},c=Object.values(d).reduce((l,p)=>l+p.value*p.weight,0);return{name:e.name,description:e.description,command:o,tier:Ke(o),family:n,score:Number(c.toFixed(6)),signals:d,...r?{input_schema:structuredClone(e.inputSchema)}:{}}}function uT(e){if(e.cursorIntegrityKey!==void 0&&(!(e.cursorIntegrityKey instanceof Uint8Array)||e.cursorIntegrityKey.byteLength<32))throw new b("pm tool discovery cursorIntegrityKey must contain at least 32 bytes.",64);if(e.tier!==void 0&&(typeof e.tier!="string"||!yo.includes(e.tier)))throw new b("pm tool discovery tier must be core, standard, or full.",64);if(e.family!==void 0&&(typeof e.family!="string"||!bo.has(e.family)))throw new b("pm tool discovery family must be a declared capability family.",64);if(e.profile!==void 0&&(typeof e.profile!="string"||!oT.has(e.profile)))throw new b("pm tool discovery profile must be core, standard, full, or custom.",64)}function mT(e){let t=xe(e.query===void 0?"":e.query,"query").trim().replace(/\s+/gu," ");xe(e.cursor===void 0?"":e.cursor,"cursor");let r=To(e.limit===void 0?10:e.limit),o=Co(e.outputBudget===void 0?1200:e.outputBudget);return uT(e),{query:t,includeSchema:Eo(e.includeSchema),limit:r,budget:o,maximumTier:go[e.tier??"full"],profile:e.profile===void 0?"core":e.profile}}function Ao(e,t,r){let o=r??e.tools.reduce((i,a,d)=>i+(d===0?0:1)+Buffer.byteLength(JSON.stringify(a),"utf8"),0),n={...e,tools:[]},s=0;for(let i=0;i<4;i+=1){let a=Buffer.byteLength(JSON.stringify({...n,token_cost:{estimated_tokens:s,budget:t,within_budget:!0}}),"utf8"),d=Math.ceil((a+o)/4);if(d===s)break;s=d}return s}function fT(e,t,r){return e.filter(o=>o.authorized!==!1).map(o=>pT(o,r.query,r.includeSchema)).filter(o=>o.tier!=="internal"&&go[o.tier]<=r.maximumTier&&(t.family===void 0||o.family===t.family)).sort((o,n)=>n.score-o.score||(o.name<n.name?-1:o.name>n.name?1:0))}function _T(e,t,r){if(t==="unbounded")return[...e];let o=[],n=0;for(let[s,i]of e.entries()){let a=n+(s===0?0:1)+Buffer.byteLength(JSON.stringify(i),"utf8");if(Ao(r(s+1),t,a)>t)break;o.push(i),n=a}return o}function S$(e,t={}){iT(e),So(t);let r=mT(t),o=t.cursorIntegrityKey??nT,n=fT(e,t,r),s=_o({query:r.query,family:t.family??null,tier:t.tier??"full",includeSchema:r.includeSchema,profile:r.profile,ranked:n}),i=lT(t.cursor,s,n.length,o),a=n.slice(i,i+r.limit),d=[];r.includeSchema||d.push({name:"input_schema",reason:"compact_projection",restore_with:"Set includeSchema=true."}),i+r.limit<n.length&&d.push({name:"tools",reason:"limit",restore_with:"Continue with next_cursor or increase limit."});let c={result_type:"pm_tool_discovery",contract_version:1,query:r.query,profile:r.profile,total:n.length,ranking_policy:{version:1,formula:"weighted_sum_then_name",weights:B},cache:{key:_o({fingerprint:s,cursorIntegrityKey:ho("sha256").update(o).digest("hex"),limit:r.limit,offset:i,budget:r.budget}),ttl_ms:3e4,scope:"private",invalidates_on:rT}},l=(g,T=g.length)=>{let E=i+T,q=E<n.length,R=[...d];return T<a.length&&R.push({name:"tools",reason:"token_budget",restore_with:"Continue with next_cursor or increase outputBudget."}),{...c,tools:[...g],returned:T,has_more:q,...q?{next_cursor:cT(s,E,o)}:{},omission_receipt:{has_omissions:R.length>0,omitted:R}}},p=g=>{let T=l(g),E=Ao(T,r.budget);return{...T,token_cost:{estimated_tokens:E,budget:r.budget,within_budget:r.budget==="unbounded"||E<=r.budget}}},f=_T(a,r.budget,g=>l([],g)),_=p(f);if(a.length>0&&f.length===0){let g=p([a[0]]).token_cost.estimated_tokens;throw new b(`pm tool discovery outputBudget is too small to return a tool; increase it to at least ${g}.`,64,{required:String(g)})}if(r.budget!=="unbounded"&&_.token_cost.estimated_tokens>r.budget)throw new b(`pm tool discovery outputBudget is too small; at least ${_.token_cost.estimated_tokens} estimated tokens are required for this page.`,64,{required:String(_.token_cost.estimated_tokens)});return _}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="39336651-18af-56d7-b658-5e735a2adad5")}catch{}})();(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e8053a05-36e4-58a6-ad9c-6d03ef7435db")}catch{}})();export{IO as ACTIONABILITY_ORDERING_KINDS,Fd as ACTIVITY_COMMANDER_STRING_OPTION_CONTRACTS,ad as ACTIVITY_FLAG_CONTRACTS,ei as AGENT_PROVENANCE_DIMENSIONS,Hs as AGGREGATE_FLAG_CONTRACTS,Ma as APPEND_FLAG_CONTRACTS,nM as ASSURANCE_ACTIONS,iM as ASSURANCE_DECLARATION_KINDS,gI as ASSURANCE_DOCUMENT_VERSION,Ja as ASSURANCE_FLAG_CONTRACTS,yI as ASSURANCE_GATE_TRIGGERS,bI as ASSURANCE_MEASUREMENT_SOURCE_KINDS,lP as ASSURANCE_PRESET_IDS,mI as AssuranceEvaluationRefusalError,uI as AssuranceMutationRefusalError,fI as AssuranceSourceResolutionError,Gn as BASELINE_ITEM_FORMAT_VERSION,Jy as BOUNDARY_FIXTURE_CAPTURE_SOURCES,Lw as BRIEF_LIST_FIELDS,ri as BUILTIN_AGENT_PROVENANCE_ADAPTERS,Y as BUILTIN_CORPUS_SHAPES,ti as BUILTIN_HARNESS_SIGNAL_DESCRIPTORS,cn as BUILTIN_ITEM_TYPE_VALUES,zt as BUILTIN_PROFILES,OC as BUILTIN_RELATIONSHIP_KINDS,Ld as CALENDAR_COMMANDER_STRING_OPTION_CONTRACTS,sd as CALENDAR_FLAG_CONTRACTS,ka as CLAIM_FLAG_CONTRACTS,Tc as CLOSE_ACTION_OPTION_KEYS,Ia as CLOSE_FLAG_CONTRACTS,Pa as CLOSE_MANY_FLAG_CONTRACTS,Fa as CLOSE_TASK_FLAG_CONTRACTS,Vs as COMMENTS_FLAG_CONTRACTS,ZT as COMMON_MUTATION_COMMAND_OPTION_KEYS,bd as COMPLETION_FLAG_CONTRACTS,_n as CONFIDENCE_TEXT_VALUES,aa as CONFIG_FLAG_CONTRACTS,Dd as CONTEXT_COMMANDER_STRING_OPTION_CONTRACTS,qM as CONTEXT_EVALUATION_METRIC_NAMES,cd as CONTEXT_FLAG_CONTRACTS,Tw as CONTEXT_INTENT_LIMIT_OVERRIDE_WARNING,jt as CONTEXT_OUTPUT_VALUES,WM as CONTEXT_PACKING_PROFILES,LM as CONTEXT_RECENCY_EPOCH,GM as CONTEXT_RELEVANCE_SERVICE,$M as CONTEXT_RELEVANCE_SIGNAL_NAMES,JM as CONTEXT_SIGNAL_SET_VERSION,XM as CONTEXT_SIGNAL_STORE_FORMAT_VERSION,ZM as CONTEXT_SIGNAL_STORE_WARNING_DETAILS,cw as CONTEXT_USAGE_LIMITS,yd as CONTRACTS_FLAG_CONTRACTS,rd as COPY_FLAG_CONTRACTS,Kd as CREATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,Yd as CREATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,Wd as CREATE_COMMANDER_STRING_OPTION_CONTRACTS,TT as CREATE_DIRECT_CLOSE_REASON_DEFAULT,Za as CREATE_FLAG_CONTRACTS,kE as CURRENT_HISTORY_HASH_ALGORITHM,Yw as CURRENT_HISTORY_ITEM_HASH_VERSION,Jw as CURRENT_HISTORY_RECORD_HASH_VERSION,Un as CURRENT_ITEM_FORMAT_VERSION,r0 as ContextSignalStore,lw as ContextUsageValidationError,RM as DEFAULT_AUTHOR_IDENTITY_VOCABULARY,b0 as DEFAULT_CHILD_SAMPLE_LIMIT,Nw as DEFAULT_COMPACT_LIST_FIELDS,Tv as DEFAULT_DERIVED_INDEX_MINIMUM_ITEMS,af as DEFAULT_EVAL_QUERIES_RELATIVE_PATH,sP as DEFAULT_RELATIONSHIP_CONTEXT_TOKEN_BUDGET,bM as DEFAULT_TERMINAL_TRANSITION_POLICY,s0 as DEFAULT_WORKSPACE_MEMORY_MINIMUM_ITEMS,bR as DEFECT_ESCAPE_CLASSES,TR as DEFECT_GATE_EVIDENCE_DISPOSITIONS,Na as DELETE_FLAG_CONTRACTS,un as DEPENDENCY_KIND_VALUES,ud as DEPS_FLAG_CONTRACTS,Xs as DOCS_FLAG_CONTRACTS,Wa as DUPLICATES_FLAG_CONTRACTS,DP as DURABLE_MERGE_RECEIPT_INTRODUCED_AT,wR as DefectRecurrencePolicyParseError,fd as EVAL_FLAG_CONTRACTS,Qm as EVAL_METRIC_NAMES,of as EVAL_QUERY_SET_CONTRACT,nf as EVAL_QUERY_SET_EXAMPLE,rf as EVAL_QUERY_SET_SCHEMA_ID,dd as EVENTS_FLAG_CONTRACTS,Ua as EVENT_FLAG_CONTRACTS,Lo as EXECUTABLE_COMMAND_ALIASES,me as EXIT_CODE,ya as EXTENSION_ACTIVATE_FLAG_CONTRACTS,ga as EXTENSION_ADOPT_ALL_FLAG_CONTRACTS,Aa as EXTENSION_ADOPT_FLAG_CONTRACTS,X0 as EXTENSION_CAPABILITIES,yT as EXTENSION_CAPABILITY_CONTRACT,hT as EXTENSION_CAPABILITY_CONTRACT_VERSION,gT as EXTENSION_CAPABILITY_LEGACY_ALIASES,Mn as EXTENSION_CAPABILITY_REGISTRATION_SURFACES,wa as EXTENSION_CATALOG_FLAG_CONTRACTS,ba as EXTENSION_DEACTIVATE_FLAG_CONTRACTS,ha as EXTENSION_DESCRIBE_FLAG_CONTRACTS,Sa as EXTENSION_DOCTOR_FLAG_CONTRACTS,_a as EXTENSION_EXPLORE_FLAG_CONTRACTS,da as EXTENSION_FLAG_CONTRACTS,la as EXTENSION_INIT_FLAG_CONTRACTS,ma as EXTENSION_INSTALL_FLAG_CONTRACTS,Ca as EXTENSION_MANAGE_FLAG_CONTRACTS,Ta as EXTENSION_MIGRATE_FLAG_CONTRACTS,J0 as EXTENSION_POLICY_MODES,Z0 as EXTENSION_POLICY_SURFACES,Ea as EXTENSION_RELOAD_FLAG_CONTRACTS,ek as EXTENSION_SANDBOX_PROFILES,ca as EXTENSION_SCOPE_FLAG_CONTRACTS,Q0 as EXTENSION_TRUST_MODES,fa as EXTENSION_UNINSTALL_FLAG_CONTRACTS,DR as EXTERNAL_DEPENDENCY_RESOLUTION_STATUSES,NR as EXTERNAL_DEPENDENCY_SOURCE_KIND,LR as EXTERNAL_DEPENDENCY_SOURCE_KIND_ALIAS,Xv as ExtensionCommandError,Ys as FILES_FLAG_CONTRACTS,od as FOCUS_FLAG_CONTRACTS,Va as GC_FLAG_CONTRACTS,Gw as GET_DEPTH_INPUT_VALUES,Fw as GET_DEPTH_VALUES,ld as GET_FLAG_CONTRACTS,qs as GLOBAL_FLAG_CONTRACTS,jp as GRAPH_DURABLE_CACHE_MIN_ITEMS,Up as GRAPH_DURABLE_CACHE_VERSION,md as GRAPH_FLAG_CONTRACTS,iR as GRAPH_QUERY_DEFAULTS,De as GRAPH_SUBCOMMAND_VALUES,pd as GUIDE_FLAG_CONTRACTS,Ya as HEALTH_FLAG_CONTRACTS,ta as HISTORY_AUTHOR_ACKNOWLEDGE_FLAG_CONTRACTS,rP as HISTORY_AUTHOR_ATTRIBUTION_BASELINE,lM as HISTORY_COMPACT_BULK_DEFAULT_MIN_ENTRIES,ra as HISTORY_COMPACT_FLAG_CONTRACTS,hi as HISTORY_EVENT_CLASSIFICATION_VERSION,Js as HISTORY_FLAG_CONTRACTS,PE as HISTORY_HASH_ALGORITHMS,cv as HISTORY_ITEM_HASH_VERSION_3_INTRODUCED_IN,Qs as HISTORY_REDACT_FLAG_CONTRACTS,ea as HISTORY_REPAIR_FLAG_CONTRACTS,yl as INIT_AGENT_GUIDANCE_MODE_VALUES,sa as INIT_FLAG_CONTRACTS,va as INSTALL_FLAG_CONTRACTS,fn as ISSUE_SEVERITY_VALUES,ed as ITEM_COMPLETE_FLAG_CONTRACTS,OP as ITEM_LATEST_TIMESTAMP_FIELDS,bT as ITEM_METADATA_KEY_ORDER,Qa as ITEM_MUTATE_FLAG_CONTRACTS,td as ITEM_REOPEN_FLAG_CONTRACTS,vs as ITEM_REVISION_CONFLICT_CHANGE_LIMIT,As as ITEM_REVISION_CONFLICT_CODE,TP as ITEM_SCALAR_MISSING_VALUE,ln as ITEM_TYPE_VALUES,vP as ITEM_UNION_COLLECTION_FIELDS,t0 as JsonFileContextSignalStoreAdapter,Ws as LEARNINGS_FLAG_CONTRACTS,ME as LEGACY_HISTORY_HASH_ALGORITHM,Au as LINKED_TEST_ENV_NAME_PATTERN,vu as LINKED_TEST_PM_CONTEXT_MODE_VALUES,wu as LINKED_TEST_PROTECTED_ENV_KEYS,Ou as LINKED_TEST_WORKSPACE_CONTEXT_MODE_VALUES,xd as LIST_COMMANDER_STRING_OPTION_CONTRACTS,Dw as LIST_COMMAND_DEFAULT_PROJECTIONS,rk as LIST_FILTER_EXTENSION_FLAG_DEFINITIONS,zs as LIST_FILTER_FLAG_CONTRACTS,zR as LIST_SORT_FIELDS,HR as LIST_SORT_ORDER_VALUES,gi as MAINTENANCE_HISTORY_OPERATIONS,y0 as MAX_CHILD_PROJECTION_ITEMS,vT as MAX_WORKFLOW_POLICIES,OT as MAX_WORKFLOW_POLICY_TERMS,Ga as MEET_FLAG_CONTRACTS,G0 as MERGE_DRIVER_ARTIFACT_VALUES,Zs as MERGE_FLAG_CONTRACTS,$e as MERGE_SUBCOMMAND_VALUES,B0 as MUTATION_EVENT_WIRE_BUDGET,se as MemoryRelationshipGraphAdapter,$d as NEXT_COMMANDER_STRING_OPTION_CONTRACTS,hd as NEXT_FLAG_CONTRACTS,Sm as NEXT_OUTPUT_VALUES,OM as NEXT_RANKING_POLICIES,Ks as NOTES_FLAG_CONTRACTS,HO as OutputEnvelopeFitError,pa as PACKAGE_FLAG_CONTRACTS,ua as PACKAGE_INIT_FLAG_CONTRACTS,$a as PAUSE_TASK_FLAG_CONTRACTS,bc as PLAN_CREATE_METADATA_PARAMETER_KEYS,ia as PLAN_FLAG_CONTRACTS,Ui as PLAN_SHOW_DEPTH_VALUES,Ye as PLAN_SUBCOMMANDS,km as PLAN_TEMPLATE_NAMES,db as PM_AGENT_TASK_ACCOUNTING_MODES,ut as PM_AGENT_TASK_TRANSCRIPT_VERSION,Mo as PM_BULK_LIFECYCLE_COMMAND_ALIASES,ts as PM_CLI_ERROR_DETAILS_LIMITS,as as PM_CLI_EXPECTED_ERROR_NAME,pR as PM_CLI_GRAMMAR_CONTRACT,sR as PM_CLI_GRAMMAR_NOUNS,Wo as PM_CLI_ONLY_TOOL_ACTION_WAIVERS,aR as PM_CLI_SHARED_VERBS,No as PM_COMMAND_ALIAS_CONTRACTS,te as PM_COMMAND_CAPABILITY_CONTRACTS,It as PM_COMMAND_DESTINATION_CONTRACTS,aI as PM_COMMAND_EXIT_CONTRACTS,sI as PM_COMMAND_EXIT_OUTCOME_CONTRACTS,Ri as PM_COMMAND_OUTPUT_BUDGET_CONTRACTS,oI as PM_COMMAND_OUTPUT_ENVELOPE_CONTRACTS,qe as PM_COMMAND_POSITIONAL_CONTRACTS,jc as PM_COMMAND_VISIBILITY_CONTRACTS,XI as PM_COMPLETE_LIST_FINDING_CODES,$O as PM_CONTEXT_INTENTS_FILE,Cw as PM_CONTEXT_INTENT_CONTRACTS,Po as PM_CONTEXT_OPS_COMMAND_ALIASES,zo as PM_CORE_COMMAND_NAMES,G as PM_CORPUS_SHAPE_SCHEMA,Xo as PM_DEPRECATED_TOOL_ACTIONS,Si as PM_DIAGNOSTIC_DEGRADATION_STEPS,wi as PM_DIAGNOSTIC_OUTPUT_BUDGET_CONTRACTS,Ei as PM_DIAGNOSTIC_OUTPUT_CLASSES,Jo as PM_DISCOVERABLE_TOOL_ACTIONS,Kr as PM_EPISODE_SCHEMA,tI as PM_ERROR_CODE_CATALOG,JR as PM_ERROR_CODE_EXIT_CLASS_CONTRACTS,Qr as PM_EXACT_COVERAGE_METRICS,Fo as PM_EXTENSION_CAPABILITY_CONTRACTS,Ho as PM_EXTENSION_PACKAGE_ACTION_SUBCOMMANDS,Uo as PM_EXTENSION_POLICY_MODE_CONTRACTS,qo as PM_EXTENSION_POLICY_SURFACE_CONTRACTS,Bo as PM_EXTENSION_SANDBOX_PROFILE_CONTRACTS,Go as PM_EXTENSION_SERVICE_NAME_CONTRACTS,jo as PM_EXTENSION_TRUST_MODE_CONTRACTS,Ni as PM_GENERIC_REFUSAL_GUIDANCE,jI as PM_GITATTRIBUTES_END,UI as PM_GITATTRIBUTES_START,qI as PM_GITATTRIBUTES_V2_END,BI as PM_GITATTRIBUTES_V2_START,Yc as PM_GITIGNORE_END,Wc as PM_GITIGNORE_START,fM as PM_HISTORY_ATTESTATION_CONTRACT,Io as PM_HISTORY_COMMAND_ALIASES,WE as PM_HISTORY_OPERATION_ALIASES,XE as PM_HISTORY_OPERATION_CONTRACT,YE as PM_HISTORY_OPERATION_PATTERNS,Ko as PM_ITEM_ACTION_SUBCOMMANDS,VE as PM_ITEM_HISTORY_OPERATIONS,it as PM_MCP_APPS_EXTENSION,Pr as PM_MCP_APPS_SERVER_CAPABILITY,Ae as PM_MCP_APPS_SPEC_VERSION,xr as PM_MCP_APP_CONTRACTS,kr as PM_MCP_APP_MIME_TYPE,tT as PM_MCP_ENTRY_TOOL_NAMES,m as PM_MCP_ERROR_CODES,gN as PM_MCP_HTTP_PROTOCOL_VERSION,bg as PM_MCP_INPUT_REQUEST_METHODS,rr as PM_MCP_LEGACY_PROTOCOL_VERSIONS,tr as PM_MCP_LOG_LEVELS,w as PM_MCP_META_KEYS,T$ as PM_MCP_PROGRESSIVE_DISCOVERY_EXTENSION,C$ as PM_MCP_PROGRESSIVE_DISCOVERY_SERVER_CAPABILITY,Vc as PM_MCP_PROMPT_CONTRACTS,H as PM_MCP_PROTOCOL_VERSION,Hc as PM_MCP_RESOURCE_CONTRACTS,at as PM_MCP_SKILLS_DRAFT_REVISION,Nr as PM_MCP_SKILLS_EXTENSION,Ay as PM_MCP_SKILLS_SERVER_CAPABILITY,P as PM_MCP_SKILL_LIMITS,Se as PM_MCP_SUBSCRIPTION_ID_META_KEY,re as PM_MCP_SUPPORTED_PROTOCOL_VERSIONS,cN as PM_MCP_TASKS_EXTENSION,Pg as PM_MCP_TASK_STATUSES,he as PM_MCP_TOOL_COMMAND_CONTRACTS,cS as PM_MODE_PAIRED_OUTPUT_PROJECTION_CONTRACTS,ps as PM_MUTATION_ACTION_CONTRACTS,Ne as PM_NAMESPACED_COMMAND_ALIASES,Hr as PM_OBSERVATION_SCHEMA,Ci as PM_OUTPUT_BUDGET_CLASSES,Ti as PM_OUTPUT_DEGRADATION_STEPS,kt as PM_OUTPUT_ENVELOPE_KINDS,$t as PM_PACKAGE_CONVENTIONAL_RESOURCE_ROOTS,Vo as PM_PACKAGE_ONLY_ACTION_SUBCOMMANDS,Dt as PM_PACKAGE_RESOURCE_KINDS,Be as PM_POSITIONAL_ACTION_CONTRACTS,Oc as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA,Ac as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA_VERSION,FS as PM_READ_OUTPUT_COMPOSITION_OPTION_FLAGS,XS as PM_READ_OUTPUT_CONTINUATION_FINGERPRINT_POLICIES,DS as PM_READ_OUTPUT_DIMENSIONS,$S as PM_READ_OUTPUT_OPTION_FLAGS,MS as PM_READ_OUTPUT_SESSION_MAX_SEEN_ITEM_IDS,PS as PM_READ_OUTPUT_SESSION_MIN_TOKENS,GC as PM_READ_OUTPUT_SURFACES,GS as PM_READ_OUTPUT_SURFACE_CONTRACTS,dS as PM_READ_ROW_CONTRACTS,aS as PM_READ_ROW_JQ_SELECTOR,Fi as PM_RECOVERY_ECHO_FIELDS,lD as PM_RECOVERY_REFERENCE_FIELDS,ce as PM_RECOVERY_REFERENCE_KINDS,kb as PM_REFUSAL_CLOSURE_EXECUTABLE_CANONICAL_CODE_BASELINE,lo as PM_REFUSAL_CLOSURE_EXECUTABLE_CANONICAL_CODE_BASELINE_V2,gD as PM_REFUSAL_CLOSURE_EXECUTABLE_CODE_BASELINE,co as PM_REFUSAL_CLOSURE_EXECUTABLE_CODE_BASELINE_V2,ko as PM_RELOCATED_COMMAND_ALIASES,qd as PM_REPRODUCIBLE_PROCESS_ENV,dI as PM_SUCCESS_EXIT_CODES,Yo as PM_TOOL_ACTIONS,Cc as PM_TOOL_ACTION_PARAMETER_CONTRACTS,vc as PM_TOOL_PARAMETERS_SCHEMA,wc as PM_TOOL_PARAMETERS_SCHEMA_MAJOR,Sc as PM_TOOL_PARAMETERS_SCHEMA_VERSION,gc as PM_TOOL_RESERVED_CUSTOM_FIELD_PROPERTIES,Vr as PM_VERDICT_SCHEMA,KE as PM_WORKSPACE_HISTORY_OPERATIONS,qr as PM_WORKSPACE_RECIPE_SCHEMA,na as PROFILE_FLAG_CONTRACTS,Jt as PROFILE_LINT_CODES,Xt as PROFILE_LINT_DIMENSIONS,qt as PROFILE_NAMES,Xe as PROFILE_SUBCOMMANDS,b as PmCliError,ge as PmClient,JI as PmCompleteListValidationError,y as PmMcpAuthorizationError,or as PmMcpInputRequiredError,Ar as PmMcpIssuerCredentialStore,u as PmMcpProtocolError,nr as PmMcpRequestStateReplayGuard,Ur as PmMcpSkillRegistry,_r as PmMcpSubscriptionRegistry,ot as PmMcpTaskStore,dw as QUERY_CURSOR_CONTRACT,Ra as REINDEX_FLAG_CONTRACTS,tv as REINDEX_LOCK_ID,pt as RELATIONSHIP_GRAPH_SNAPSHOT_VERSION,La as RELEASE_FLAG_CONTRACTS,ja as REMIND_FLAG_CONTRACTS,At as RESERVED_ITEM_FIELD_NAMES,xa as RESTORE_FLAG_CONTRACTS,mn as RISK_VALUES,KO as RelationshipEventLog,WO as RelationshipEventStore,z as RelationshipGraph,Ue as RelationshipKindRegistry,oa as SCHEMA_FLAG_CONTRACTS,Nd as SEARCH_COMMANDER_STRING_OPTION_CONTRACTS,ok as SEARCH_EXTENSION_FLAG_DEFINITIONS,gd as SEARCH_FLAG_CONTRACTS,Hu as SEMANTIC_ATTRIBUTION_LIMITS,ET as SETTINGS_DEFAULTS,uf as SNAPSHOT_SCHEMA,$I as SOURCE_CONTEXT_ACCESS_ENV,FI as SOURCE_CONTEXT_WRITE_OVERRIDE_ENV,Xu as START_BLOCKED_REFUSAL_CODE,Yu as START_BLOCKER_ENFORCEMENT_DEFAULT,Da as START_TASK_FLAG_CONTRACTS,Ka as STATS_FLAG_CONTRACTS,pn as STATUS_VALUES,Bs as SUBCOMMAND_GLOBAL_FLAG_CONTRACTS,yi as SUBSTANTIVE_HISTORY_OPERATIONS,Xw as SUPPORTED_HISTORY_ITEM_HASH_VERSIONS,Zw as SUPPORTED_HISTORY_RECORD_HASH_VERSIONS,xC as SUPPRESS_HOST_OUTPUT_MARKER,za as TELEMETRY_FLAG_CONTRACTS,Uf as TELEMETRY_SUBCOMMANDS,qa as TEST_ALL_FLAG_CONTRACTS,Ba as TEST_FLAG_CONTRACTS,Ha as TEST_RUNS_FLAG_CONTRACTS,Lf as TEST_RUN_MEASUREMENT_LIMIT,mc as TOOL_ACTIVITY_OPTION_CONTRACTS,tc as TOOL_AGGREGATE_OPTION_CONTRACTS,cc as TOOL_BULK_MUTATION_FILTER_OPTION_CONTRACT_SOURCE,uc as TOOL_CALENDAR_OPTION_CONTRACTS,pc as TOOL_CLOSE_MANY_FILTER_OPTION_CONTRACTS,fc as TOOL_CONTEXT_OPTION_CONTRACTS,sc as TOOL_CREATE_OPTION_CONTRACTS,ic as TOOL_CREATE_OPTION_CONTRACT_SOURCE,_c as TOOL_DEPS_OPTION_CONTRACTS,hc as TOOL_GRAPH_OPTION_CONTRACTS,ec as TOOL_LIST_FILTER_OPTION_CONTRACTS,rc as TOOL_SEARCH_FILTER_OPTION_CONTRACTS,nc as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACTS,oc as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACT_SOURCE,lc as TOOL_UPDATE_MANY_FILTER_OPTION_CONTRACTS,dc as TOOL_UPDATE_OPTION_CONTRACTS,ac as TOOL_UPDATE_OPTION_CONTRACT_SOURCE,CT as TYPE_TO_FOLDER,AC as UNKNOWN_SUBCOMMAND_COMPATIBILITY_CODES,Xd as UPDATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,Zd as UPDATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,Jd as UPDATE_COMMANDER_STRING_OPTION_CONTRACTS,nd as UPDATE_FLAG_CONTRACTS,id as UPDATE_MANY_FLAG_CONTRACTS,Oa as UPGRADE_FLAG_CONTRACTS,Xa as VALIDATE_FLAG_CONTRACTS,AT as WORKFLOW_POLICY_ACTIONS,VI as WORKFLOW_POLICY_DOCUMENT_SCHEMA,HI as WORKFLOW_POLICY_SCHEMA,_d as WORKSPACE_FLAG_CONTRACTS,TA as WORKSPACE_HISTORY_ID,mf as WORKSPACE_SNAPSHOT_ACTIONS,zl as WorkspaceGraphCache,QO as WorkspaceTransactionInterruptedError,_u as _testOnly,g0 as _testOnlyAggregateCommand,Bl as _testOnlyConfigCommand,S0 as _testOnlyGetCommand,tu as _testOnlyHealthCommand,El as _testOnlyInit,bl as _testOnlyInitAgentGuidance,yk as _testOnlyItemTransaction,V0 as _testOnlyMutationEvents,f0 as _testOnlyNextCommand,F0 as _testOnlySearchCommand,dP as _testOnlySimilarity,$m as _testOnlyTemplates,uu as _testOnlyValidateCommand,Y0 as _testOnlyWorkspacePosition,Tk as abandonItemTransaction,nR as abandonWorkspaceTransaction,fP as acceptAssuranceProposals,lu as acknowledgeLinkedTests,Gl as acknowledgeUnknownAuthorHistoryEvents,Fl as acknowledgeUnknownAuthorHistoryEventsFromTransport,Cv as acquireItemMetadataDerivedIndexLock,je as acquireLock,Qn as acquireLockLease,Qk as activateExtensionForTest,JC as activateExtensions,Zu as admitStartWithOpenBlockers,Zn as agentSessionEnvironment,j_ as aggregate,wf as analyzeAgentProvenanceDescriptorCoverage,ER as analyzeDefectChangeRisk,oM as analyzeDefectRecurrenceCoverage,mp as analyzeDuplicateItems,XO as analyzeGraphImpact,Mc as analyzeHierarchyIntegrity,JO as analyzeKnowledgeGraph,lI as analyzePmCommandExitConformance,Zo as analyzePmToolActionParity,zP as analyzeReconciliationDiscard,YO as analyzeRelationshipExecution,kp as analyzeRelationshipSchedule,pg as analyzeSdkActionCoverage,Pt as analyzeSdkCliParameterCompleteness,Q_ as append,Bi as appendHistoryEntry,wA as appendWorkspaceAuditEvent,SA as appendWorkspaceHistoryChange,FT as applyAcceptanceCriteriaMutations,uP as applyAssurancePreset,vd as applyBootstrapPagerPolicy,ZP as applyClosureTimestampFix,vw as applyContextIntentProjection,Em as applyContextTagProjection,VR as applyFilterValueEcho,iv as applyHistoryPatch,Bd as applyInvocationAuthorOverride,Ql as applyPathMigrations,KS as applyReadOutputDimensions,qS as applyReadOutputIncludeModes,xS as applyReadOutputSessionReferences,SE as applyRegisteredItemFieldDefaultsAndValidation,op as applyStandaloneNote,$s as applyStoredExtensionMigrationState,UT as applyTagRemovals,SM as applyTerminalOrderingPolicy,np as artifactKey,mC as asRecordClone,uC as asRecordOrNull,He as assembleWorkspaceRelationshipGraph,tP as assertCompleteListResult,xx as assertExtensionBlueprint,kx as assertExtensionCapabilityUsage,fx as assertExtensionDeactivated,Dx as assertExtensionManifestCompatible,Lx as assertExtensionManifestMatchesBlueprint,$x as assertExtensionPreflight,Nc as assertHierarchyMutationAllowed,pM as assertHistoryCompactTarget,VP as assertHistoryRepairTarget,Xi as assertInitializedTracker,ep as assertLinkedArtifactMutationIsUnambiguous,Ux as assertMcpClientCapabilities,Gx as assertMcpProtocolHeader,ab as assertMemoryRelationshipGraphAdapterConformance,qT as assertNoUnknownCsvKeys,Su as assertNonHierarchyCardinalityMutationAllowed,_x as assertPackageManifest,xA as assertParentReferenceIsNotSelf,KN as assertPmMcpSkillsCapability,Nx as assertProjectProfile,hv as assertProjectRuntimeCompatibility,mv as assertProjectRuntimeFormatGuard,lS as assertProjectionModeChoice,Yi as assertReadableTrackerRoot,hx as assertRegisteredCommandContract,vx as assertRegisteredCommandOverride,Ex as assertRegisteredExporter,gx as assertRegisteredFlags,yx as assertRegisteredHook,Cx as assertRegisteredImporter,Sx as assertRegisteredItemField,wx as assertRegisteredItemType,Mx as assertRegisteredMigration,Ox as assertRegisteredParserOverride,Rx as assertRegisteredPreflightOverride,Ax as assertRegisteredProfile,Ix as assertRegisteredRendererOverride,bx as assertRegisteredSearchProvider,Px as assertRegisteredServiceOverride,Tx as assertRegisteredVectorStoreAdapter,MC as assertRelationshipEdgeAllowed,ro as assertRelationshipGraphAdapterConformance,DT as assertSchemaPreviewSupported,qf as assertTestMeasurementRun,zw as assertWellFormedOutputText,TI as assuranceAssertionUpdateIsLoosening,Iw as attachContextIntentReceipt,pw as attachContextUsageServingReceipt,su as attachLinkedTestMutationProvenance,iu as attachLinkedTestProvenance,Ze as attachMcpServerInfo,hS as attachOutputOmissionReceipt,Mw as attachOutputTokenAccounting,Pw as attachReadOutputContracts,NS as attachReadOutputSessionReceipt,rl as auditMergeAttributeFence,zI as auditMergeDriverConfiguration,Fp as auditWorkspaceRelationshipGraph,kN as authorizeMcpHttpRequest,Xn as boundAgentEpisodeIdentity,AS as boundReadOutputRows,ym as buildChildrenByParent,k0 as buildCompactSearchFilterSummary,KR as buildContentFilterEcho,e0 as buildContextSignalSnapshot,zy as buildCorpusShapeItemPlan,CR as buildDefectRecurrenceIndex,ul as buildExtensionDescribeResult,fl as buildExtensionInstallPlan,WR as buildGovernanceMissingFilterEcho,qA as buildInvalidTypeError,T0 as buildItemChildrenRollup,hk as buildItemCompletionMutations,FM as buildItemContextRelevanceCandidates,Ov as buildItemNotFoundError,E0 as buildItemSchedule,QP as buildLinkedFileRepairReport,SN as buildMcpAuthorizationDiscoveryUrls,_g as buildMcpCompleteResult,Bx as buildMcpDiscoverResult,RN as buildMcpDynamicRegistrationMetadata,_N as buildMcpHttpRequestHeaders,Xx as buildMcpInputRequiredResult,EN as buildMcpProtectedResourceMetadata,el as buildMergeAttributePatterns,Ec as buildPmActionToolInputSchema,TD as buildPmRefusalClosureCensus,aP as buildRelationshipContext,kv as buildSearchCorpus,Nv as buildSemanticCorpusInput,YP as buildStatusRoleWarnings,Wi as buildTrackerInitializationRecovery,Gv as buildVectorizationEmbeddingIdentity,Uv as buildVectorizationEmbeddingMetadata,x0 as buildVerboseSearchFilters,KI as buildWorkflowCompletenessCheck,a0 as buildWorkspaceMemorySnapshot,Yn as canonicalDocument,QT as canonicalizeCommandOptionKey,xk as canonicalizeCommandSuggestions,DM as canonicalizeContextRecencyCoordinate,RC as canonicalizeRelationshipKind,pD as censusPmRecoveryReferenceProducers,eP as certifyCompleteListResult,Yk as checkExtensionManifestCompatibility,Dh as claim,$h as claimNext,oP as classifyHistoryAuthorEvent,bi as classifyHistoryEvent,BP as classifyHistoryMergeReceiptReferences,qC as classifyHostEnvironmentFault,L0 as classifyImplicitSemanticFallbackReason,qn as classifyItemFormatVersion,Hf as classifyLinkedTestCommandSafety,Vf as classifyLinkedTestFailure,fE as clearActiveExtensionHooks,Vp as clearDurableGraphCache,rS as clearFocusedItem,Qf as clearWorkspaceContractsCache,Lh as close,yu as closeItem,Hh as closeTask,Id as coalesceRepeatedListFlags,PO as collectBlockedByIds,kO as collectBlockedByIdsFromCorpus,mw as collectContextUsageDeliveredItemIds,Fc as collectDanglingDependencyReferences,NO as collectDependencyBlockedIds,Dc as collectDuplicateDependencyRows,$p as collectDuplicateRelationshipEdgeGroups,N0 as collectErrorCauseCodes,Pc as collectHierarchyRelations,Cr as collectMcpHeaderAnnotations,Gc as collectMissingDependencyTargetIds,Eu as collectNewOrderingCycleWarnings,Np as collectOrderingCycles,$c as collectOrderingStorageContradictions,UO as collectPackageContextIntentContracts,Gt as collectPackageExtensionDirectories,CE as collectRegisteredItemFieldNames,UE as collectRuntimeCreateFieldValues,zA as collectRuntimeFilterValues,jE as collectRuntimeUpdateFieldValues,mm as collectSubtreeIds,kn as collectUsedExtensionCapabilities,eC as commandOptionFlagLabel,z_ as comments,S_ as commitImportedItem,gk as commitItemCompletion,_k as commitItemMutations,tR as commitWorkspaceTransaction,js as compactFlagAliasContracts,fm as compareCriticalItems,lv as comparePmDateVersions,ZO as compareRelationshipSnapshots,fC as compareTimestampStrings,xM as compileHistoryProvenanceMatcher,ww as composeContextIntentContracts,Bk as composeExtension,Wk as composeExtensionPackage,DO as computeActionabilityReport,gA as computeHistoryDiff,Pp as computeRelationshipCentrality,Ip as computeRelationshipDominators,ql as computeWorkspaceGraphFingerprint,th as config,mE as consumeAfterCommandAffectedItems,L_ as context,Rw as contextIntentRowId,Gh as copy,Kf as countFailureCategories,SS as countReadOutputRows,kh as create,pP as createAssurancePreset,tM as createAssuranceWorkspaceContext,hC as createCheckpointId,ZI as createCompleteListOptions,ZC as createCoreCommandHookContext,Zr as createCorpusShapeMeasurement,AI as createEmptyAssuranceDocument,UC as createEmptyExtensionRegistrationRegistry,Jv as createExtensionCommandError,Ns as createExtensionCommandSdk,In as createExtensionContributionInventory,Fx as createExtensionTestHarness,ji as createHistoryEntry,uO as createLazyModule,WI as createLifecycleCompletenessPolicies,xN as createMcpStaticBearerVerifier,lN as createMcpTaskStore,vv as createMutationGuardSdk,pS as createOutputOmissionReceipt,cs as createPmCliExpectedError,xs as createPmCliProgram,vi as createPmCommandOutputBudget,tw as createQueryFingerprint,sb as createRelationshipGraphScaleFixture,Z as createRelationshipGraphSnapshot,wt as createRelationshipKindRegistry,Hd as createReproducibleProcessRunner,P0 as createSearchCursorFingerprint,QC as createSerialQueue,YT as createStdinTokenResolver,vC as createUnknownSubcommandError,LT as createWorkflowPolicyEvaluator,ff as createWorkspaceSnapshot,ex as deactivateExtensionForTest,d1 as declineServiceOverride,Ow as decodeContextIntentCursor,pO as decodeHtmlEntitiesInOptions,Tr as decodeMcpHttpHeaderValue,xw as decodePmTableRows,iw as decodeQueryCursor,ow as decodeQueryCursorEnvelope,nw as decodeQueryCursorState,QS as decodeReadOutputContinuationCursor,Jk as decodeToon,FN as decoratePmMcpToolsWithApps,sp as dedupeLinkedArtifacts,wE as defaultConfigScope,UM as defaultScoreContextCandidates,f1 as defineAfterCommandHook,u1 as defineBeforeCommandHook,m1 as defineBeforeMutationHook,XD as defineCommand,o1 as defineCommandOverride,W as defineCorpusShape,oL as defineEpisodeSpecification,p1 as defineExporter,Uk as defineExtension,jk as defineExtensionBlueprint,WD as defineExtensionManifest,JD as defineFlag,l1 as defineImporter,QD as defineItemField,ZD as defineItemType,e1 as defineMigration,Ny as defineObservationContract,g1 as defineOnIndexHook,h1 as defineOnReadHook,_1 as defineOnWriteHook,n1 as defineParserOverride,Oi as definePmCommandOutputBudget,rI as definePmCommandOutputEnvelope,ZR as definePmErrorCodeCatalog,i1 as definePreflightOverride,YD as defineProjectProfile,c1 as defineRendererOverride,t1 as defineSearchProvider,s1 as defineServiceOverride,r1 as defineVectorStoreAdapter,Fy as defineVerdictContract,ve as defineWorkspaceRecipe,Uh as deleteItem,Tf as deleteWorkspaceSnapshot,kC as dependencyToRelationship,J_ as deps,mP as deriveAssuranceProposals,XP as deriveClosureTimestamp,zk as deriveExtensionCapabilities,nk as deriveMutationTransactionId,pI as derivePmBulkMutationEffect,uD as derivePmRecoveryReferenceObligations,xp as deriveRelationshipDeadlines,sl as deriveSchemaEvolutionMigrationId,oO as deriveTelemetryCommandResolution,WA as describeAllowedTransitions,DI as describeExtensionActivation,Hk as describeExtensionBlueprint,SC as describeFlagScalarValueFailure,tm as describeItemOwnershipConflict,Ps as describeItemRevisionChanges,rL as describeObservationCost,Wt as describeProfileComposition,Yt as describeProjectProfile,Sk as describeReadCompletenessControls,Zv as describeUnknownError,ci as detectAgentIdentity,mi as detectHarnessIdentity,Op as detectRelationshipCommunities,li as diagnoseAgentIdentity,Gp as diffRelationshipAuditSnapshots,Ff as diffTestRunMeasurements,Qx as digestMcpRequestParameters,YC as discoverExtensions,yn as discoverNearbyPmRoot,S$ as discoverPmTools,uv as discoverProjectRuntimeVersionPins,X_ as docs,q_ as duplicates,Bp as durableGraphCachePath,Kp as durableGraphCacheStatus,jn as effectiveItemFormatVersion,wO as emitTelemetryErrorEvent,E_ as emptyImportedDocument,EP as encodeItemScalarDecisionValue,br as encodeMcpHttpHeaderValue,kw as encodePmTableRows,rw as encodeQueryCursor,ZS as encodeReadOutputContinuationCursor,Zk as encodeToon,yA as enforceHistoryStreamPolicyForItem,bA as enforceHistoryStreamPolicyForItems,YR as enrichCliFlagInvocationContract,Mt as enrichCliFlagInvocationContracts,av as ensureMaterializedHistoryTarget,Jc as ensurePmGitignore,Wl as ensureScope,Yv as ensureSentryCommandTracing,Wv as ensureSentryInit,C_ as ensureTrackerInitialized,Ap as enumerateRelationshipPaths,Pi as estimatePmOutputTokens,OI as evaluateAssuranceAssertion,RI as evaluateAssuranceGate,CL as evaluateBoundaryFixtures,zM as evaluateContextRanking,SR as evaluateDefectGateEvidence,vI as evaluateMeasurement,tf as evaluateMetricFloors,ms as evaluateMutationGuard,Pf as evaluateProvenanceCoverage,L1 as evaluateReliabilityWindow,Of as evaluateSemanticAttributionCoverage,_p as evaluateSimilarityGovernance,KA as evaluateTransition,Gy as evaluateVerdictContract,NT as evaluateWorkflowPolicies,es as executeEmbeddingBatchesWithRetry,$v as executeVectorDelete,Fv as executeVectorReset,Dv as executeVectorUpsert,Py as executeWorkspaceRecipe,rp as expandAddGlobEntries,gp as explainSourceTraceability,hM as exportAttestation,Vh as extension,Wh as extensionActivate,Yh as extensionDeactivate,Kh as extensionList,Vb as extensionMigrate,jP as extractHistoryMergeReceiptDispositions,UP as extractHistoryMergeReceiptReferences,IN as extractMcpTraceContext,ov as extractPatchFailureContext,ru as extractReferencedPmItemIdsFromCommand,ib as federateRelationshipGraphSnapshots,K_ as files,W_ as filesDiscover,Y_ as filesLookup,fw as finalizeContextUsageDelivery,Xy as findCoverageDeficits,fp as findDuplicateClusters,Qc as findGitWorkspaceRoot,LE as findHistoryIdentityDiscontinuities,ll as findInstalledNpmPackageCandidate,$N as findPmMcpAppByUri,xo as findPmNamespacedCommand,Rp as findRedundantRelationshipEdges,Mp as findRelationshipCutStructure,up as findSimilarItems,SO as finishTelemetryCommand,VO as fitOutputEnvelope,EC as flattenFlagListValue,Ky as flushTelemetryQueue,Bh as focus,vp as forEachMatchedRelationshipEdge,Dp as formatDuplicateEdgeGroup,kc as formatHierarchyRelation,Lp as formatOrderingStorageContradiction,lR as formatPmPositionalActionFlagTip,Ym as formatProfileApplyHuman,Wm as formatProfileLintHuman,Vm as formatProfileListHuman,Km as formatProfileShowHuman,cl as formatSchemaEvolutionMigrationHuman,$0 as formatVectorIndexRecoveryWarnings,W0 as formatWorkspacePositionHuman,vh as gc,Hi as generateItemId,G_ as get,lE as getActiveCommandResult,Ew as getActiveContextIntentContracts,Nn as getActiveExtensionRegistrations,MN as getActiveMcpTraceContext,PI as getAssuranceDeclaration,dg as getContracts,eS as getFocusedItem,Cn as getHistoryPath,zO as getItemAt,Tn as getItemPath,hs as getMutationActionContract,Xc as getPmGitignoreBlock,bn as getSettingsPath,e_ as getWorkspaceContracts,CA as getWorkspaceHistoryPath,Z_ as graph,qp as graphAuditBaselinePath,Rf as groupHistoryByEpisode,a1 as handleServiceOverride,jx as hasMcpClientExtension,DN as hasPmMcpAppsCapability,ze as hasSubcommandFlagContractsForCommand,jv as hasVectorizationEmbeddingIdentityChanged,Bv as hasVectorizationVectorDimensionChanged,sA as hashDocument,aA as hashDocumentForVersion,dA as hashEmptyDocument,eA as hashHistoryPatch,Qw as hashHistoryRecord,tA as hashHistoryStream,SP as hashItemScalarDecisionValue,Ah as health,Cp as hierarchyAncestors,Ep as hierarchyDescendants,Ph as historyCompact,Mh as historyCompactBulk,NE as historyDigest,kM as historyEntryMatchesProvenance,pv as historyItemHashVersionForRuntime,Oh as historyRedact,Rh as historyRepair,Ih as historyRepairAll,MO as indexBlockedByIds,xc as indexHierarchyRelations,qv as inferConsistentVectorDimension,Ai as inferPmOutputBudgetClass,eh as init,QI as inspectCompleteListResult,jC as inspectExtensionManifestSchema,xl as inspectHistoryAuthorStream,MP as inspectMergeReceiptEvidence,_v as inspectProjectRuntimeCompatibility,Es as inspectStaleInProgressItems,ug as inspectStaticExtensionInventory,WP as inspectStatusRoleAssignments,EA as inspectWorkspaceHistoryState,_f as inspectWorkspaceSnapshot,il as installMergeFence,qx as interpretMcpResultType,Am as isAlreadyClaimedError,tO as isCommanderError,vk as isCompatibleRecoveryFlag,Rl as isErrnoError,vO as isExternalDependencyReference,OO as isExternalDependencySourceKind,fe as isFileMissingError,Li as isGenericRefusalRequired,Di as isGenericRefusalWhy,LC as isHostOutputSuppressed,ds as isItemAlreadyExistsError,Ms as isItemRevisionConflict,CP as isItemScalarMissingValue,$P as isLegacyMergeReceiptSummary,h as isMcpRecord,fs as isMutationAction,PC as isOrderingRelationshipKind,MA as isPlaceholderReferenceToken,rs as isPmCliErrorDetails,ls as isPmCliExpectedError,en as isPmExtensionCapabilityContract,rn as isPmExtensionPolicyModeContract,on as isPmExtensionPolicySurfaceContract,tn as isPmExtensionServiceNameContract,cI as isPmKnownExitCode,nI as isPmMutationReceipt,We as isPmSuccessfulExitCode,ss as isPmTokenBudgetRecovery,Qo as isPmToolAction,FP as isPreDurableCloneLocalReceiptSummary,GP as isPreDurableDispositionEligibleReference,fv as isProjectMutatingInvocation,mO as isPureSnakeCaseAlias,WS as isReadOutputBudgetExceeded,IS as isReadOutputSessionReference,Ak as isReadProjectionRecoveryFlag,mS as isReadRowContract,Rc as isRuntimeRecord,JA as isSettingsReadFallback,Ju as isStartTransition,hO as isTerminalPlanMode,qE as isTerminalStatus,On as isTimestampLiteral,ck as itemDocumentToMutationOptions,C0 as itemHasSchedule,Pn as jaccardSimilarity,V_ as learnings,wC as levenshteinDistanceWithinLimit,Al as limitAnnotationEntries,au as linkedTestTrustFingerprint,Vk as lintExtensionBlueprint,BC as lintExtensionManifestSchema,Zt as lintProjectProfile,D_ as list,ni as listAgentProvenanceAdapters,Rd as listAliasPluralKeys,$_ as listAllComplete,wv as listAllDocumentCandidatesCached,Qi as listAllItemMetadata,Av as listAllItemMetadataLight,II as listAssuranceDeclarations,LI as listAssuranceVerdicts,By as listBuiltinCorpusShapes,Nk as listCoreClosedDomainContracts,Uw as listGetProjectionFields,yP as listInvalidProvenanceHistoryStreamIds,$w as listListProjectionFields,kP as listMergeReceipts,_s as listMutationActions,q0 as listMutationEvents,fo as listPmCommandFlagBudgets,qc as listPmCommandsForFamily,Bc as listPmCommandsForTier,Me as listPmFlagLexicon,zD as listPmFlagSpellingInventory,zc as listPmMcpToolsForProfile,xD as listPmRequiredArgumentRefusalContracts,ND as listPmSubcommandRefusalContracts,Kt as listProfiles,$D as listTrackerPreflightRecoveryContracts,uk as listUpsertKeyCandidates,hf as listWorkspaceSnapshots,jO as loadContextIntentRuntimeLayers,Fm as loadCreateTemplateOptions,XC as loadExtensions,Yp as loadGraphAuditBaseline,mk as loadGuardedRuntimeSchema,yC as loadMutationCheckpoint,x as loadRelationshipGraphAdapter,Ji as locateItem,BT as looksLikeGenericKeyValueEntry,wS as mapReadOutputRows,xP as markMergeReceiptReconciled,HA as matchesRuntimeFilters,CO as maybeRunFirstUseTelemetryPrompt,Hy as measureCorpusShapePlan,Ki as measureItemMetadataReadWork,GT as mergeAdditiveTags,qk as mergeExtensionBlueprints,wP as mergeHistoryStreams,RP as mergeItemDocuments,IP as mergeJsonDocuments,Pd as mergeLinkedTestTwoTokenEntries,AP as mergeRelationshipEventStreams,Tm as mergeSortedWarnings,_O as migrateItemFilesToFormat,Iv as mutateItem,Rv as mutateItemWithHistoryContext,AA as mutateWorkspaceJsonWithHistory,U_ as next,si as normalizeAgentProvenanceAdapterValue,wl as normalizeAnnotationTransportOptions,hI as normalizeAssuranceEvaluation,_I as normalizeAssuranceMutation,Md as normalizeBootstrapInvocation,RE as normalizeBulkIdsValue,Lc as normalizeDependencyGraphTarget,UR as normalizeDependencySeedId,GR as normalizeDependencySourceKind,Os as normalizeExpectedItemHash,Rn as normalizeExtensionContributionInventory,QE as normalizeHistoryOperationForWrite,gP as normalizeInvalidHistoryProvenance,yR as normalizeItemAddressInvocation,Bn as normalizeItemFormatVersion,zi as normalizeItemId,Vn as normalizeItemMetadata,jR as normalizeItemReference,Od as normalizeLegacyExtensionActionSyntax,tp as normalizeLinkedPath,PA as normalizeParentReferenceValue,Ht as normalizeProfileName,qi as normalizeRawItemId,zS as normalizeReadOutputIncludeModeOptions,uA as normalizeReplayPatchOps,gs as normalizeSimilarityText,BE as normalizeStatusForRegistry,Hn as normalizeStatusInput,$E as normalizeStatusInputWithRegistry,eO as normalizeThrownExitCode,H_ as notes,vn as nowIso,zp as openDurableGraphCache,Zx as openMcpRequestState,nL as openPmEpisode,Sp as orderingPredecessors,wp as orderingSuccessors,YM as packContextCandidates,_m as packRankedContextItems,ig as packageActivate,ng as packageCatalog,sg as packageDeactivate,rg as packageDescribe,eg as packageDoctor,Zh as packageInstall,Xh as packageLifecycle,Jh as packageList,tg as packageManage,Kb as packageMigrate,og as packageReload,Qh as packageUninstall,aw as paginateQueryRows,Yl as parseAddEntries,Xl as parseAddGlobEntries,Ol as parseAnnotationTextInput,ik as parseAtomicMutationControls,Ad as parseBootstrapCommandName,Ed as parseBootstrapGlobalOptions,wd as parseBootstrapHelpRequest,kd as parseBootstrapTypeValue,OE as parseBulkIdsText,pm as parseContextDepth,am as parseContextFocusFields,FO as parseContextIntentDeclarations,um as parseContextSections,QM as parseContextSignalSnapshot,jT as parseCsvKv,vR as parseDefectChangeRiskRequest,rM as parseDefectRecurrenceCoverageRequest,AR as parseDefectRecurrencePolicy,ef as parseEvalMetricFloors,sf as parseEvalQuerySet,Rs as parseExpectHashSpecs,dC as parseExtensionLongFlagToken,Zp as parseGraphSubcommand,_M as parseHistoryAttestation,PM as parseHistoryProvenanceFilters,OR as parseIntegerLimit,zE as parseItemDocument,sk as parseItemMutationBatch,BA as parseLimit,Du as parseLinkedTestAssertionEqualsMap,$u as parseLinkedTestAssertionGteMap,Pu as parseLinkedTestBoolean,Mu as parseLinkedTestContextMode,Iu as parseLinkedTestEnvClear,Ru as parseLinkedTestEnvSet,Fu as parseLinkedTestJsonEntries,Lu as parseLinkedTestMinLines,Nu as parseLinkedTestRegexList,xu as parseLinkedTestStringList,ku as parseLinkedTestWorkspaceContextMode,Eg as parseMcpCachePolicy,mg as parseMcpImplementation,tt as parseMcpInputRequests,dr as parseMcpInputResponses,Vg as parseMcpSubscriptionFilter,Zl as parseMigrateEntries,PR as parseMultiValueFilter,iI as parseMutationReceipt,JT as parseOptionalNonNegativeInteger,XT as parseOptionalNumber,nD as parsePmAgentTaskTranscriptCorpus,E$ as parsePmToolDiscoveryOptions,RR as parsePriority,xR as parsePriorityFilterSet,kS as parseReadOutputSession,EE as parseRegisteredItemFieldAssignments,ae as parseRelationshipGraphSnapshot,Jl as parseRemoveEntries,hp as parseSourceLineRange,FA as parseStatusFilterCsv,MR as parseStringFilterSet,nn as parseTags,Df as parseTestRunMeasurements,IR as parseType,kR as parseTypeFilterSet,$l as parseUnknownAuthorHistoryEventCoordinates,RT as parseWorkflowPolicy,IT as parseWorkflowPolicyDocument,_0 as partitionDecisionEntries,hA as patchPathToChangedField,sn as pathExists,zh as pauseTask,Hp as persistDurableGraphResult,XA as persistSelectedItemFormat,iP as planAgentIdentityVocabularyMutation,i0 as planCompletedAtBackfill,_l as planExtensionDirectoryCopy,Gk as planItemMutationDocument,Qt as planProfileApplication,dD as planRelationshipEventBackfill,Jp as planRelationshipRemediation,al as planSchemaEvolutionMigration,Ll as planUnknownAuthorHistoryAcknowledgment,gf as planWorkspaceSnapshotRestore,mR as positionalShapeKey,fR as positionalSignatureKey,Xk as preflightExtension,bs as prepareSimilarityText,HT as preserveMutationStdinTokenFields,zT as preserveMutationStdinTokenLiterals,Fk as previewItemMutationDocument,fk as previewItemMutations,Ww as printError,Kw as printResult,bh as profile,Eh as profileApply,Sh as profileLint,Th as profileList,Ch as profileShow,uE as projectAfterCommandItemSnapshot,dm as projectContextFocusRows,Nf as projectFleetAttributionAnalytics,MM as projectHistoryProvenance,Gi as projectLeanRecoveryPayload,jw as projectPmBriefListEnvelope,Bw as projectPmBriefSearchEnvelope,is as projectPmCliErrorContextDetails,os as projectPmCliErrorDetails,ki as projectPmDiagnosticOutput,xi as projectPmDiagnosticText,kf as projectProvenanceCoverageAnalytics,pu as projectValidateCounts,_P as promoteAssuranceAssertion,uw as propagateContextUsageServingReceipt,OL as pruneCompileCacheGenerations,MI as putAssuranceDeclaration,kI as putAssuranceDeclarationBundle,gv as queryItemMetadataIndex,yv as queryLinkedFileMetadataIndex,bv as querySimilarItemMetadataIndex,$f as queryTestRunMeasurementsBelow,Sn as quoteCommandArg,En as quoteWindowsCommandArg,kk as rankCommandPaths,vl as readAnnotationEntries,pi as readAuthorEnvironment,r_ as readBooleanOption,bw as readContextUsageAffinity,o_ as readCsvListOption,Ds as readExtensionMigrationState,an as readFileIfExists,Gd as readFirstStringFromCommanderOptions,Ud as readFirstValueFromCommanderOptions,If as readHistoryAnalyticsWindow,iS as readHistoryEntries,_i as readHistorySnapshot,Ef as readImprovementLedger,Ev as readItemMetadataDerivedIndexState,Is as readItemRevision,bk as readItemTransaction,Zi as readLocatedItem,ES as readOutputBudgetCollections,JS as readOutputCollectionFingerprint,CS as readOutputContinuationRowCollections,bS as readOutputContinuationRowPaths,BS as readOutputIncludeModeOptions,TS as readOutputRowCollections,yS as readOutputRowPaths,LS as readOutputSessionRemainingTokens,Ft as readPmPackageManifest,Zf as readRequiredString,GE as readRuntimeFieldOptionValue,Vi as readSettings,bO as readSettingsSection,ZA as readSettingsWithMetadata,jd as readStringArrayFromCommanderOptions,t_ as readStringOption,Qv as readThrownExitCode,zv as readVectorizationStatusLedger,dv as readWorkflowPolicies,PT as readWorkflowPolicyField,GO as readWorkspaceContextIntentContracts,o0 as readWorkspaceContextSignals,d0 as readWorkspaceMemory,K0 as readWorkspacePosition,rR as readWorkspaceTransaction,_A as reanchorHistoryEntries,$1 as reconcileArtifactLedgers,xn as reconcileExtensionCapabilityUsage,OA as reconcileWorkspaceJsonHistory,pE as recordAfterCommandAffectedItem,NI as recordAssuranceVerdict,Bu as recordClaimSemanticAttribution,hw as recordContextUsageDelivery,_w as recordContextUsageServing,gw as recordContextUsageTouch,yw as recordContextUsageTouches,zu as recordFocusSemanticAttribution,Cf as recordImprovementObservation,qu as recordReleaseSemanticAttribution,Sv as refreshItemMetadataDerivedIndex,ol as refreshMergeAttributeFenceIfInstalled,OS as refreshReadOutputDeliveredCounts,Vv as refreshSearchArtifactsForMutation,ii as registerAgentProvenanceAdapters,$R as registerExternalDependencyResolver,oi as registerHarnessSignalDescriptors,sS as registerOutputMaterialFieldGroups,Fh as release,vS as rememberReadOutputFocusRows,xI as removeAssuranceDeclaration,dn as removeFileIfExists,cp as renameArtifactsResultKey,om as renderCalendarMarkdown,nm as renderCalendarToon,Cm as renderContextMarkdown,ml as renderExtensionDescribeMarkdown,pl as renderExtensionSurfaceMarkdown,v_ as renderGuideMarkdown,Ik as renderMissingOptionRetry,h0 as renderNextMarkdown,Lk as renderPmClosedDomainHelp,wn as renderPmCommand,$o as renderPmCommandAliasMigrationHint,Kc as renderPmCommandVisibilityMarkdown,VD as renderPmFlagLexiconMarkdown,GN as renderPmMcpAppHtml,CD as renderPmRefusalClosureCensusMarkdown,UA as renderRowsAsCsv,jA as renderRowsAsTable,Nh as reopen,sv as replayHistoryToTarget,lA as replayToCanonicalItemDocument,cA as replayToItemDocument,ZE as requireHistoryOperation,CM as requireTerminalReason,EM as requireTerminalReasonWithRecovery,nA as resealHistoryRewrite,aE as resetActiveExtensionRuntimeState,Vl as resetWorkspaceGraphCache,Jn as resolveAgentSessionContextFromSignals,kl as resolveAnnotationIndex,Il as resolveAnnotationInput,nS as resolveAuthor,fi as resolveAuthorIdentity,IA as resolveBodyFileContent,qy as resolveBuiltinCorpusShape,rm as resolveCalendarOutputFormat,QR as resolveCanonicalPmErrorCodeContract,IC as resolveCanonicalRelationshipKind,oS as resolveClaimPrincipal,IE as resolveCliBulkIdsInput,oC as resolveCommandOptionPolicyState,vL as resolveCompileCacheGeneration,n0 as resolveCompletionTimestamp,FC as resolveConfiguredPmPackageRoot,qR as resolveContentFieldFilters,Aw as resolveContextIntentContract,cm as resolveContextOutputFormat,lm as resolveContextTokenBudget,wM as resolveCreateExplicitEmptyFlag,ws as resolveDeclaredBlockers,v0 as resolveEffectiveSearchMode,Pv as resolveEmbeddingProviders,CC as resolveExtensionFlagValueContract,hl as resolveExtensionInstallSourceIdentity,cC as resolveExtensionLongFlagName,Ls as resolveExtensionMigrationStatePath,WC as resolveExtensionRoots,FR as resolveExternalDependencyReference,TC as resolveFlagValueKind,sC as resolveGlobalPmRoot,w_ as resolveGuideOutputFormat,Sf as resolveHistoryEpisodeGroupIdentity,xE as resolveHistoryHashAlgorithm,JE as resolveHistoryOperation,IM as resolveHistoryProvenanceDimensions,AO as resolveHistorySubject,nv as resolveHistoryTarget,R0 as resolveHybridSemanticWeight,gn as resolveImplicitPmRoot,_C as resolveIsoOrRelative,xO as resolveItemBlockers,RO as resolveItemExecutionRole,dk as resolveItemMutationDocument,em as resolveItemOwnershipConflict,hn as resolveItemTypeRegistry,DE as resolveItemTypesFilePath,Ck as resolveLifecycleVerbRecovery,aC as resolveLinkedResourcePositionalRecovery,Wf as resolveLinkedTestFailureExitCode,ou as resolveLinkedTestSourceRef,nu as resolveLinkedTestSourceWorkspaceRoot,du as resolveLinkedTestTrust,cu as resolveLinkedTestTrustBatch,Kg as resolveMcpAcknowledgedSubscriptionFilter,Je as resolveMcpRequestContext,Zc as resolveMergeInstallContext,Pk as resolveMisnestedCommandPath,BR as resolveMissingMetadataFilters,Rk as resolveMissingOptionPlaceholder,uS as resolveModePairedOutputOmissionReceipt,m0 as resolveNextOutputFormat,_S as resolveOutputOmissionReceipt,$C as resolvePmCliVersion,Do as resolvePmCommandAlias,Ve as resolvePmCommandCapabilityFamily,Nt as resolvePmCommandExitContract,L as resolvePmCommandOperation,Ii as resolvePmCommandOutputBudget,xt as resolvePmCommandOutputEnvelope,dR as resolvePmCommandPositionalContract,An as resolvePmCommandScopeArgs,Ke as resolvePmCommandVisibilityTier,Mi as resolvePmDiagnosticOutputBudget,eI as resolvePmErrorCodeContract,jb as resolvePmFlagSemanticConcept,Le as resolvePmHistoryOperation,Vx as resolvePmMcpExecutableInvocation,DC as resolvePmPackageRootFromModule,cR as resolvePmPositionalActionContract,Td as resolvePmPositionalActionFlagContracts,Ge as resolvePmRoot,yc as resolvePmToolCustomFieldCollision,NA as resolvePriority,Vt as resolveProfile,tl as resolveProjectMergeTypeFolders,sw as resolveQueryCursorStart,Ek as resolveReadCompletenessControls,wk as resolveReadOptionRetryArgs,HS as resolveReadOutputDimensions,YS as resolveReadOutputEncoding,RS as resolveReadOutputRecoveryBudget,US as resolveReadOutputSurface,fS as resolveReadRowContract,Ok as resolveRecoveryCommandName,AE as resolveRegisteredSearchProvider,vE as resolveRegisteredVectorStoreAdapter,zd as resolveReproducibleProcessEnvironment,Fn as resolveRuntimeFieldRegistry,$n as resolveRuntimeStatusRegistry,Mv as resolveSearchCorpusFields,A0 as resolveSearchMaxResults,M0 as resolveSearchPage,O0 as resolveSearchScoreThreshold,I0 as resolveSearchTuning,xv as resolveSemanticCorpusCharacterLimit,ju as resolveSemanticLineageIds,ev as resolveSettingsWithSemanticRuntimeDefaults,GI as resolveSourceContextWritePolicy,Wu as resolveStartTaskInProgressStatus,ee as resolveSubcommandFlagContractsForCommand,ST as resolveTelemetryErrorCategory,Kv as resolveTelemetrySourceAttribution,TM as resolveTerminalReason,pk as resolveTransactionSchema,rC as resolveTypeDefinition,tC as resolveTypeName,GA as resolveTypeSynonym,VA as resolveTypeWorkflows,Dl as resolveUnknownAuthorAcknowledgmentSelector,D0 as resolveVectorIndexRecovery,Lv as resolveVectorStores,Ic as resolveWorkspaceRelationshipKindRegistry,iC as resolveWorkspaceRoot,jh as restore,bC as restoreCheckpointItems,RA as restoreWorkspaceJsonFromHistory,bf as restoreWorkspaceSnapshot,yf as restoreWorkspaceSnapshotWithRecovery,lg as runAction,_E as runActiveBeforeMutationHooks,gE as runActiveCommandHandler,hE as runActiveOnIndexHooks,Dn as runActiveOnReadHooks,Ln as runActiveOnWriteHooks,yE as runActiveParserOverride,bE as runActivePreflightOverride,TE as runActiveServiceOverride,sm as runActivity,KC as runAfterCommandHooks,Xm as runAggregate,Ml as runAnnotationCommand,gu as runAppend,sM as runAssuranceAction,aM as runAssuranceDispatch,VC as runBeforeCommandHooks,im as runCalendar,vm as runClaim,Om as runClaimNext,bu as runClose,Tu as runCloseMany,Mm as runCloseTask,Ul as runComments,O_ as runCompletion,jl as runConfig,Bt as runContext,KM as runContextEvaluationCorpus,HM as runContextEvaluationScenario,Cu as runCopy,Gu as runCreate,Uu as runDelete,Kl as runDeps,lp as runDocs,cP as runDuplicates,df as runEval,lf as runEvent,gl as runExtension,Gs as runExtensionMigrateAction,Fs as runExtensionMigrations,yp as runFiles,Tp as runFilesDiscover,bp as runFilesLookup,xf as runFleetAttributionAnalytics,Ku as runFocus,fu as runGc,Jm as runGet,Qp as runGraph,A_ as runGuide,eu as runHealth,w0 as runHistory,yM as runHistoryAttest,cM as runHistoryCompact,uM as runHistoryCompactBulk,qP as runHistoryMaintenance,mM as runHistoryRedact,HP as runHistoryRepair,KP as runHistoryRepairAll,Sl as runInit,Tl as runInitAgentGuidance,hu as runLearnings,dp as runLinkedArtifacts,Yf as runLinkedTests,Uc as runList,cf as runMeet,U0 as runMergeDriver,nl as runMergeInstall,LP as runMergeReceiptEvidenceReport,NP as runMergeReceiptReport,j0 as runMergeReconcile,wm as runNext,Dm as runNotes,Pm as runPauseTask,xm as runPlan,Hm as runProfileApply,zm as runProfileLint,Bm as runProfileList,qm as runProfileShow,Mf as runProvenanceCoverageAnalytics,tx as runRegisteredCommandForTest,sx as runRegisteredCommandOverrideForTest,mx as runRegisteredExporterForTest,ox as runRegisteredHookForTest,ux as runRegisteredImporterForTest,px as runRegisteredMigrationForTest,rx as runRegisteredMutationGuardForTest,nx as runRegisteredParserOverrideForTest,ix as runRegisteredPreflightOverrideForTest,ax as runRegisteredRendererOverrideForTest,cx as runRegisteredSearchProviderForTest,dx as runRegisteredServiceOverrideForTest,lx as runRegisteredVectorStoreAdapterForTest,er as runReindex,Rm as runRelease,pf as runRemind,vM as runReopen,Nm as runRestore,dl as runSchemaEvolutionMigration,Zm as runSearch,Vy as runSearchRefreshWorkerEntrypoint,R_ as runStartBackgroundRun,Im as runStartTask,Gf as runStats,jf as runTelemetry,Um as runTemplatesList,Gm as runTemplatesSave,jm as runTemplatesShow,Xf as runTest,Jf as runTestAll,I_ as runTestRunsList,M_ as runTestRunsLogs,x_ as runTestRunsResume,P_ as runTestRunsStatus,k_ as runTestRunsStop,N_ as runTestRunsWorker,Qu as runUpdate,Lm as runUpdateMany,Ut as runUpgrade,mu as runValidate,cg as runWithActiveExtensions,D as runWithAgentSessionContext,YA as runWithConfigurationOnlySettings,Sw as runWithContextIntentContracts,BO as runWithDiscoveredContextIntentContracts,ai as runWithHarnessDetectionSignals,PN as runWithMcpTraceContext,Vd as runWithReproducibleProcessEnvironment,di as runWithWorkspaceHarnessSignalDescriptors,zr as runWithWorkspaceRecipe,YI as runWorkflowPolicyAction,dM as runWorkspaceTransactionGc,Xp as saveGraphAuditBaseline,JP as scanClosureTimestamps,hP as scanExtensionHostVersions,Nl as scanHistoryAuthorAttribution,zn as scanItemFormatVersions,us as scanMutationSecrets,bP as scanProvenanceResolverHealth,Ss as scanStaleInProgressItems,eM as scanStorageIntegrity,rh as schema,ch as schemaAddField,ah as schemaAddStatus,ih as schemaAddType,mh as schemaApplyPreset,fh as schemaInferTypes,oh as schemaList,ph as schemaListFields,gh as schemaRemapStatus,lh as schemaRemoveField,dh as schemaRemoveStatus,sh as schemaRemoveType,hh as schemaRenameField,_h as schemaRenameType,nh as schemaShow,uh as schemaShowField,yh as schemaShowStatus,Mk as scoreCommandPathMatch,jM as scoreContextCandidates,BM as scoreContextCandidatesWithActiveExtensions,Ts as scoreItemSimilarity,LD as scorePmGrammarRefusalClosure,wD as scorePmRefusalClosure,Cs as scorePreparedItemSimilarity,FD as scoreTrackerPreflightRecoveryClosure,rA as sealHistoryRecord,Jx as sealMcpRequestState,F_ as search,p0 as searchWorkspaceMemory,u0 as searchWorkspaceMemoryReadResult,LO as selectActionableEntries,ew as selectCursorSemanticOptions,T_ as selectImportAuthor,AN as selectMcpClientRegistrationMode,l0 as selectWorkspaceMemory,c0 as selectWorkspaceMemoryRollups,Vu as semanticAttributionAffinity,dO as sentryCaptureCliError,sO as sentryDiscardCommandSpan,aO as sentryFinishCommandSpan,lO as sentryFlush,cO as sentryLogCliUsageError,nO as sentrySetCommandContext,iO as sentryStartCommandSpan,Wn as serializeItemDocument,Dk as serializeNdjsonRows,$k as serializeNdjsonStream,Ly as serveDeclaredObservation,dE as setActiveCommandContext,cE as setActiveCommandResult,tE as setActiveExtensionCommands,eE as setActiveExtensionHooks,rE as setActiveExtensionParsers,oE as setActiveExtensionPreflight,sE as setActiveExtensionRegistrations,iE as setActiveExtensionRenderers,nE as setActiveExtensionServices,tS as setFocusedItem,yO as settingsSectionRevision,gO as shouldCompletePlanOnClose,Wp as shouldPersistDurableGraphCache,WT as shouldResolveMutationStdinTokenField,KT as shouldResolveMutationStdinTokens,rv as shouldRunSearchRefreshInForeground,pp as similarityAdvisoryWarnings,gS as sliceReadOutputRowCollection,ns as snapshotPmCliErrorContext,ip as sortLinkedArtifacts,$T as splitAcceptanceCriteria,fO as splitCommaList,Kn as splitFrontMatter,VS as stabilizeReadOutputReceiptEstimates,I as stableStringify,ak as stableUpsertValue,wT as stableValueEquals,qh as startTask,EO as startTelemetryCommand,B_ as stats,FE as statusIsTerminal,Sd as stripGlobalBootstrapTokens,z0 as subscribeMutationEventBatches,H0 as subscribeMutationEvents,nP as summarizeAgentIdentityVocabulary,Af as summarizeAgentModelProvenance,vf as summarizeAgentProvenance,VM as summarizeContextEvaluationReports,zf as summarizeContextPreflight,NM as summarizeHistoryProvenance,Cl as summarizeInitResult,PP as summarizeMergeReceipt,AM as supportsCreateExplicitEmpty,gR as supportsItemIdAlias,NC as suppressHostOutput,Re as syncRelationshipGraphAdapter,Kk as synthesizeExtensionManifest,Cd as toCompletionFlagString,bm as toContextFocusItem,hm as toContextPackingSummary,gm as toContextRankingSummary,pC as toErrorMessage,i_ as toEstimatedMinutesValue,tk as toExtensionFlagDefinitions,l_ as toImportBoolean,f_ as toImportConfidence,c_ as toImportInteger,y_ as toImportLinkedDocs,g_ as toImportLinkedFiles,b_ as toImportLinkedTests,h_ as toImportLogEntries,__ as toImportNormalizedEnum,m_ as toImportNumberMap,s_ as toImportPriority,d_ as toImportStatus,p_ as toImportStringList,u_ as toImportStringMap,a_ as toImportTags,HE as toItemRecord,n_ as toNonEmptyImportString,lC as toNonEmptyStringOrUndefined,pA as toReplayDocument,qw as toWellFormedText,ys as tokenizeSimilarityText,VT as transferMutationStdinTokenPolicy,zC as translateHostEnvironmentFault,xh as update,Bf as updateLinkedTest,ag as upgrade,wh as validate,EI as validateAssertionDefinition,wI as validateAssuranceDocument,SI as validateGateDefinition,lk as validateItemMutationRows,ap as validateLinkedPaths,vN as validateMcpAuthorizationResponseIssuer,wN as validateMcpAuthorizationServerMetadata,ON as validateMcpClientMetadataDocument,hN as validateMcpHttpRequestHeaders,tN as validateMcpJsonSchema,CI as validateMeasurementDefinition,kA as validateMissingParentReference,jS as validateReadOutputOptions,$A as validateSprintOrReleaseValue,nC as validateTypeOptions,eR as validateWorkspaceTransactionIdentity,gM as verifyAttestation,XR as verifyCliFlagInvocationParity,uR as verifyExplicitPositionalSlotCensus,fA as verifyHistoryChain,mA as verifyHistoryChainWithVersion,qO as verifyHistoryEntries,oA as verifyHistoryRecordHash,iA as verifyHistoryRewriteEvidence,hR as verifyPmCliGrammar,_R as verifyPmCommandPositionalContracts,HD as verifyPmFlagLexicon,_D as verifyPmRecoveryKindRuntimeCoverage,Mb as verifyPmRecoveryProducerRuntimeCoverage,fD as verifyPmRecoveryReferences,bD as verifyPmRefusalClosureIdentityRatchet,yD as verifyPmRefusalClosureRatchet,mD as verifyPmRefusalReachability,Qd as verifyToolOptionCliParity,LA as withCliMutationInput,ks as withExpectedItemRevisions,Us as withFlagAliasMetadata,HC as withHostEnvironmentBoundary,DA as withLiteralMutationInput,eN as withMcpCachePolicy,$i as withoutGenericRefusalExamples,kT as workflowApprovalFingerprint,xT as workflowPolicyApplies,MT as workflowPolicyFingerprint,Hl as workspaceGraphCache,oR as workspaceTransactionPlanDigest,Pl as wrapOwnershipConflict,rO as wrapThrownErrorForSentry,ui as writeAuthorEnvironment,Fe as writeFileAtomic,gC as writeMutationCheckpoint,QA as writeSettings,TO as writeSettingsSection,Vw as writeStderr,Hw as writeStdout,Hv as writeVectorizationStatusLedger,vA as writeWorkspaceJsonWithHistory};
34
+ `)}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4c9a1aa8-05b6-53da-a8b1-f1a7289d39cf")}catch{}})();function WD(e){return e}function YD(e){return e}function XD(e){return e}function JD(e){return e}function ZD(e){return e}function QD(e){return e}function e1(e){return e}function t1(e){return e}function r1(e){return e}function o1(e){return e}function n1(e){return e}function i1(e){return e}function s1(e){return e}function a1(e){return{handled:!0,result:e}}function d1(){return{handled:!1}}function c1(e){return e}function l1(e){return e}function p1(e){return e}function u1(e){return e}function m1(e){return e}function f1(e){return e}function _1(e){return e}function h1(e){return e}function g1(e){return e}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="68ca9ab1-91e0-5020-859e-fc1f1f6dcc56")}catch{}})();function Vb(e={},t={}){return new ge(t).extension(void 0,{...e,migrate:!0})}function Kb(e={},t={}){return new ge(t).packageMigrate(e)}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d0b86c6a-67f0-52f2-90b8-d1058e8f2284")}catch{}})();(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="604d7dcb-9fea-5631-8a72-b2a7ff3278f8")}catch{}})();function N(e){if(typeof e!="string"||!_e(e))throw new TypeError("Invalid reliability timestamp.");return Date.parse(e)}function Wb(e){let t=N(e.window_start),r=N(e.window_end);if(t>=r||!Number.isFinite(e.max_failure_rate)||e.max_failure_rate<0||e.max_failure_rate>=1||!Number.isSafeInteger(e.min_completed_attempts)||e.min_completed_attempts<1)throw new TypeError("Invalid reliability window policy.");if(e.families.length===0||e.families.some(o=>typeof o!="string"||o.trim().length===0)||new Set(e.families).size!==e.families.length)throw new TypeError("Expected unique, nonempty reliability families.");return{start:t,end:r}}function Yb(e,t,r,o){let n=new Map(t.map(i=>[i,[]])),s=new Set;for(let i of e){if(typeof i.id!="string"||i.id.trim().length===0||s.has(i.id))throw new TypeError("Invalid or duplicate reliability attempt identity.");s.add(i.id);let a=n.get(i.family);if(!a||!["success","failure","pending"].includes(i.outcome)||i.cause!==void 0&&(!["product","infrastructure","unknown"].includes(i.cause)||i.outcome!=="failure"))throw new TypeError("Invalid reliability attempt family, outcome or cause.");let d=N(i.started_at);if(i.repaired_at!==void 0&&(N(i.repaired_at)<d||i.outcome!=="failure"))throw new TypeError("Invalid reliability repair chronology.");d>=r&&d<o&&a.push(i)}return n}function L1(e,t){let{start:r,end:o}=Wb(t),n=[...Yb(e,t.families,r,o)].map(([s,i])=>{let a=i.filter(_=>_.outcome==="failure"),d=i.filter(_=>_.outcome!=="pending").length,c=d===0?null:a.length/d,l=a.filter(_=>_.repaired_at!==void 0&&N(_.repaired_at)<o),p={product:0,infrastructure:0,unknown:0};for(let _ of a)p[_.cause??"unknown"]+=1;let f=[];return d<t.min_completed_attempts&&f.push("insufficient_completed_attempts"),c!==null&&c>t.max_failure_rate&&f.push("failure_rate"),{family:s,attempts:i.length,completed:d,failed:a.length,pending:i.length-d,failure_rate:c,affected_days:[...new Set(a.map(_=>new Date(N(_.started_at)).toISOString().slice(0,10)))].sort(),repair_minutes:l.map(_=>(N(_.repaired_at)-N(_.started_at))/6e4).sort((_,g)=>_-g),unresolved:a.length-l.length,causes:p,violations:f,ok:f.length===0}});return{schema:"pm-reliability-window/1",window_start:new Date(r).toISOString(),window_end:new Date(o).toISOString(),ok:n.every(s=>s.ok),families:n}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="773ad2b6-326e-5483-bdce-a377f935cb31")}catch{}})();function pe(e){return typeof e=="string"&&e.length>0&&e.trim()===e}function Xb(e){if(!Array.isArray(e)||e.length<2)throw new TypeError("Expected at least two artifact ledgers.");let t=new Map;for(let r of e){if(r===null||typeof r!="object"||!pe(r.name)||t.has(r.name)||r.complete!==!0)throw new TypeError("Expected unique complete artifact ledgers.");if(!Array.isArray(r.identities))throw new TypeError("Invalid or duplicate artifact identity.");let o=new Set(r.identities);if(o.size!==r.identities.length||[...o].some(n=>!pe(n)))throw new TypeError("Invalid or duplicate artifact identity.");t.set(r.name,o)}if([...t.values()].every(r=>r.size===0))throw new TypeError("Empty inventories cannot establish artifact reconciliation.");return t}function Jb(e,t){if(!Array.isArray(e))throw new TypeError("Expected unique evidence-backed artifact exceptions.");let r=new Map;for(let o of e){if(o===null||typeof o!="object"||!pe(o.identity)||r.has(o.identity)||!pe(o.reason)||!pe(o.evidence))throw new TypeError("Expected unique evidence-backed artifact exceptions.");let n=o.missing_from;if(!Array.isArray(n)||n.length===0||n.length>=t.length||new Set(n).size!==n.length||[...n].some(s=>!t.includes(s)))throw new TypeError("Invalid artifact exception ledger signature.");r.set(o.identity,o)}return r}function $1(e,t=[]){let r=Xb(e),o=[...r.keys()].sort(),n=Jb(t,o),s=[...new Set([...r.values()].flatMap(c=>[...c]))].sort(),i=[],a=new Set;for(let c of s){let l=o.filter(_=>!r.get(_).has(c));if(l.length===0)continue;let p=n.get(c),f=p!==void 0&&JSON.stringify([...p.missing_from].sort())===JSON.stringify(l);f&&a.add(c),i.push({identity:c,present_in:o.filter(_=>r.get(_).has(c)),missing_from:l,disposition:f?{reason:p.reason,evidence:p.evidence}:null})}let d=[...n.keys()].filter(c=>!a.has(c)).sort();return{schema:"pm-artifact-ledgers/1",ok:i.every(c=>c.disposition!==null)&&d.length===0,counts:Object.fromEntries(o.map(c=>[c,r.get(c).size])),findings:i,stale_exceptions:d}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fca4e9bb-3a30-512e-9929-565ab6c11c54")}catch{}})();import{createHash as ho,createHmac as Zb,randomBytes as Qb,timingSafeEqual as eT}from"node:crypto";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="98283845-5c48-5901-b54c-c8cc8138427b")}catch{}})();var T$="dev.unbrained.pm/progressive-tool-discovery",C$=Object.freeze({version:1,discoveryTool:"pm_discover",canonicalResult:"structuredContent.result",compatibilityText:"pointer"}),tT=Object.freeze(["pm_discover","pm_next","pm_context","pm_search","pm_get"]),B=Object.freeze({lexical:.4,semantic:.2,graph:.1,permission:.15,freshness:.05,usage:.1}),rT=Object.freeze(["profile_changed","tool_contract_changed","workspace_extension_changed","authorization_changed","ranking_signal_changed","cursor_integrity_key_rotated"]),go={core:0,standard:1,full:2,internal:3},yo=Object.freeze(["core","standard","full"]),oT=new Set(["core","standard","full","custom"]),bo=new Set(te.map(({family:e})=>e)),nT=Qb(32);function xe(e,t){if(typeof e!="string")throw new b(`pm tool discovery ${t} must be a string of at most 4096 Unicode characters.`,64);let r=e[Symbol.iterator](),o=0;for(let n=r.next();!n.done;n=r.next())if(o+=1,o>4096)throw new b(`pm tool discovery ${t} must be a string of at most 4096 Unicode characters.`,64);return e}function To(e){if(!Number.isInteger(e)||Number(e)<1||Number(e)>100)throw new b("pm tool discovery limit must be from 1 through 100.",64);return Number(e)}function Co(e){if(e!=="unbounded"&&(!Number.isInteger(e)||Number(e)<128))throw new b("pm tool discovery outputBudget must be unbounded or an integer of at least 128.",64);return e==="unbounded"?e:Number(e)}function Eo(e){if(e!==void 0&&typeof e!="boolean")throw new b("pm tool discovery includeSchema must be a boolean.",64);return e===!0}function So(e){if(e===null||typeof e!="object"||Array.isArray(e))throw new b("pm tool discovery options must be an object.",64)}function iT(e){if(!Array.isArray(e))throw new b("pm tool discovery candidates must be an array.",64);for(let[t,r]of e.entries()){if(r===null||typeof r!="object"||Array.isArray(r))throw new b(`pm tool discovery candidate ${t} must be an object.`,64);if(typeof r.name!="string"||r.name.trim().length===0)throw new b(`pm tool discovery candidate ${t} name must be a non-empty string.`,64);if(typeof r.description!="string"||r.description.trim().length===0)throw new b(`pm tool discovery candidate ${t} description must be a non-empty string.`,64);if(r.inputSchema===null||typeof r.inputSchema!="object"||Array.isArray(r.inputSchema))throw new b(`pm tool discovery candidate ${t} inputSchema must be an object.`,64);if(r.authorized!==void 0&&typeof r.authorized!="boolean")throw new b(`pm tool discovery candidate ${t} authorized must be a boolean.`,64)}}function E$(e){if(So(e),e.family!==void 0&&(typeof e.family!="string"||!bo.has(e.family)))throw new b("pm tool discovery family must be a declared capability family.",64);if(e.tier!==void 0&&(typeof e.tier!="string"||!yo.includes(e.tier)))throw new b("pm tool discovery tier must be core, standard, or full.",64);return{...e.query!==void 0?{query:xe(e.query,"query")}:{},...e.family!==void 0?{family:e.family}:{},...e.tier!==void 0?{tier:e.tier}:{},...e.limit!==void 0?{limit:To(e.limit)}:{},...e.cursor!==void 0?{cursor:xe(e.cursor,"cursor")}:{},...e.includeSchema!==void 0?{includeSchema:Eo(e.includeSchema)}:{},...e.outputBudget!==void 0?{outputBudget:Co(e.outputBudget)}:{}}}function sT(e){return e===void 0||!Number.isFinite(e)?0:Math.min(1,Math.max(0,e))}function ue(e){return[...new Set(e.toLowerCase().match(/[a-z0-9]+/gu)??[])].sort()}function aT(e,t){let r=ue(e);if(r.length===0)return 0;let o=new Set(ue(t)),n=r.filter(i=>o.has(i)).length,s=t.toLowerCase().includes(e.toLowerCase())?.25:0;return Math.min(1,n/r.length+s)}function dT(e,t){let r=ue(e);if(r.length===0)return 0;let o=t.toLowerCase(),n=ue(t),s=r.filter(a=>n.some(d=>d.startsWith(a)||a.startsWith(d))).length,i=o.includes(e.toLowerCase())?.2:0;return Math.min(1,s/r.length+i)}function _o(e){return ho("sha256").update(JSON.stringify(e)).digest("hex").slice(0,24)}function wo(e,t,r){return Zb("sha256",r).update(JSON.stringify({version:1,fingerprint:e,offset:t})).digest("base64url")}function cT(e,t,r){let o={version:1,offset:t,signature:wo(e,t,r)};return Buffer.from(JSON.stringify(o),"utf8").toString("base64url")}function lT(e,t,r,o){if(e===void 0)return 0;try{let n=JSON.parse(Buffer.from(e,"base64url").toString("utf8")),s=n.offset;if(n.version!==1||typeof s!="number"||!Number.isInteger(s)||s<0||s>r||typeof n.signature!="string")throw new Error("cursor fields do not match the request");let i=Buffer.from(wo(t,s,o),"base64url"),a=Buffer.from(n.signature,"base64url");if(a.length!==i.length||!eT(a,i))throw new Error("cursor signature does not match the request");return s}catch(n){throw new b("Invalid or stale pm tool discovery cursor; restart discovery without cursor.",64,{reason:String(n)})}}function gt(e,t,r){return{value:sT(e),weight:t,available:r!=="unavailable",source:r}}function ke(e,t,r){return gt(e??t,r,e===void 0?"computed":"host")}function pT(e,t,r){let o=Object.hasOwn(he,e.name)?he[e.name]:"help",n=Ve(o),s=`${e.name} ${e.description} ${o} ${n}`,i=aT(t,s),a=new Set(ue(t)),d={lexical:gt(i,B.lexical,"computed"),semantic:ke(e.signals?.semantic,dT(t,s),B.semantic),graph:ke(e.signals?.graph,a.has(n)||a.has(o)?1:0,B.graph),permission:gt(1,B.permission,"authorization"),freshness:ke(e.signals?.freshness,1,B.freshness),usage:ke(e.signals?.usage,tT.includes(e.name)?1:0,B.usage)},c=Object.values(d).reduce((l,p)=>l+p.value*p.weight,0);return{name:e.name,description:e.description,command:o,tier:Ke(o),family:n,score:Number(c.toFixed(6)),signals:d,...r?{input_schema:structuredClone(e.inputSchema)}:{}}}function uT(e){if(e.cursorIntegrityKey!==void 0&&(!(e.cursorIntegrityKey instanceof Uint8Array)||e.cursorIntegrityKey.byteLength<32))throw new b("pm tool discovery cursorIntegrityKey must contain at least 32 bytes.",64);if(e.tier!==void 0&&(typeof e.tier!="string"||!yo.includes(e.tier)))throw new b("pm tool discovery tier must be core, standard, or full.",64);if(e.family!==void 0&&(typeof e.family!="string"||!bo.has(e.family)))throw new b("pm tool discovery family must be a declared capability family.",64);if(e.profile!==void 0&&(typeof e.profile!="string"||!oT.has(e.profile)))throw new b("pm tool discovery profile must be core, standard, full, or custom.",64)}function mT(e){let t=xe(e.query===void 0?"":e.query,"query").trim().replace(/\s+/gu," ");xe(e.cursor===void 0?"":e.cursor,"cursor");let r=To(e.limit===void 0?10:e.limit),o=Co(e.outputBudget===void 0?1200:e.outputBudget);return uT(e),{query:t,includeSchema:Eo(e.includeSchema),limit:r,budget:o,maximumTier:go[e.tier??"full"],profile:e.profile===void 0?"core":e.profile}}function Ao(e,t,r){let o=r??e.tools.reduce((i,a,d)=>i+(d===0?0:1)+Buffer.byteLength(JSON.stringify(a),"utf8"),0),n={...e,tools:[]},s=0;for(let i=0;i<4;i+=1){let a=Buffer.byteLength(JSON.stringify({...n,token_cost:{estimated_tokens:s,budget:t,within_budget:!0}}),"utf8"),d=Math.ceil((a+o)/4);if(d===s)break;s=d}return s}function fT(e,t,r){return e.filter(o=>o.authorized!==!1).map(o=>pT(o,r.query,r.includeSchema)).filter(o=>o.tier!=="internal"&&go[o.tier]<=r.maximumTier&&(t.family===void 0||o.family===t.family)).sort((o,n)=>n.score-o.score||(o.name<n.name?-1:o.name>n.name?1:0))}function _T(e,t,r){if(t==="unbounded")return[...e];let o=[],n=0;for(let[s,i]of e.entries()){let a=n+(s===0?0:1)+Buffer.byteLength(JSON.stringify(i),"utf8");if(Ao(r(s+1),t,a)>t)break;o.push(i),n=a}return o}function S$(e,t={}){iT(e),So(t);let r=mT(t),o=t.cursorIntegrityKey??nT,n=fT(e,t,r),s=_o({query:r.query,family:t.family??null,tier:t.tier??"full",includeSchema:r.includeSchema,profile:r.profile,ranked:n}),i=lT(t.cursor,s,n.length,o),a=n.slice(i,i+r.limit),d=[];r.includeSchema||d.push({name:"input_schema",reason:"compact_projection",restore_with:"Set includeSchema=true."}),i+r.limit<n.length&&d.push({name:"tools",reason:"limit",restore_with:"Continue with next_cursor or increase limit."});let c={result_type:"pm_tool_discovery",contract_version:1,query:r.query,profile:r.profile,total:n.length,ranking_policy:{version:1,formula:"weighted_sum_then_name",weights:B},cache:{key:_o({fingerprint:s,cursorIntegrityKey:ho("sha256").update(o).digest("hex"),limit:r.limit,offset:i,budget:r.budget}),ttl_ms:3e4,scope:"private",invalidates_on:rT}},l=(g,T=g.length)=>{let E=i+T,q=E<n.length,R=[...d];return T<a.length&&R.push({name:"tools",reason:"token_budget",restore_with:"Continue with next_cursor or increase outputBudget."}),{...c,tools:[...g],returned:T,has_more:q,...q?{next_cursor:cT(s,E,o)}:{},omission_receipt:{has_omissions:R.length>0,omitted:R}}},p=g=>{let T=l(g),E=Ao(T,r.budget);return{...T,token_cost:{estimated_tokens:E,budget:r.budget,within_budget:r.budget==="unbounded"||E<=r.budget}}},f=_T(a,r.budget,g=>l([],g)),_=p(f);if(a.length>0&&f.length===0){let g=p([a[0]]).token_cost.estimated_tokens;throw new b(`pm tool discovery outputBudget is too small to return a tool; increase it to at least ${g}.`,64,{required:String(g)})}if(r.budget!=="unbounded"&&_.token_cost.estimated_tokens>r.budget)throw new b(`pm tool discovery outputBudget is too small; at least ${_.token_cost.estimated_tokens} estimated tokens are required for this page.`,64,{required:String(_.token_cost.estimated_tokens)});return _}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="39336651-18af-56d7-b658-5e735a2adad5")}catch{}})();(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e8053a05-36e4-58a6-ad9c-6d03ef7435db")}catch{}})();export{EO as ACTIONABILITY_ORDERING_KINDS,Fd as ACTIVITY_COMMANDER_STRING_OPTION_CONTRACTS,ad as ACTIVITY_FLAG_CONTRACTS,ei as AGENT_PROVENANCE_DIMENSIONS,Hs as AGGREGATE_FLAG_CONTRACTS,Ma as APPEND_FLAG_CONTRACTS,nM as ASSURANCE_ACTIONS,iM as ASSURANCE_DECLARATION_KINDS,gI as ASSURANCE_DOCUMENT_VERSION,Ja as ASSURANCE_FLAG_CONTRACTS,yI as ASSURANCE_GATE_TRIGGERS,bI as ASSURANCE_MEASUREMENT_SOURCE_KINDS,lP as ASSURANCE_PRESET_IDS,mI as AssuranceEvaluationRefusalError,uI as AssuranceMutationRefusalError,fI as AssuranceSourceResolutionError,Gn as BASELINE_ITEM_FORMAT_VERSION,Jy as BOUNDARY_FIXTURE_CAPTURE_SOURCES,eR as BRIEF_LIST_FIELDS,ri as BUILTIN_AGENT_PROVENANCE_ADAPTERS,Y as BUILTIN_CORPUS_SHAPES,ti as BUILTIN_HARNESS_SIGNAL_DESCRIPTORS,cn as BUILTIN_ITEM_TYPE_VALUES,zt as BUILTIN_PROFILES,OC as BUILTIN_RELATIONSHIP_KINDS,Ld as CALENDAR_COMMANDER_STRING_OPTION_CONTRACTS,sd as CALENDAR_FLAG_CONTRACTS,ka as CLAIM_FLAG_CONTRACTS,Tc as CLOSE_ACTION_OPTION_KEYS,Ia as CLOSE_FLAG_CONTRACTS,Pa as CLOSE_MANY_FLAG_CONTRACTS,Fa as CLOSE_TASK_FLAG_CONTRACTS,Vs as COMMENTS_FLAG_CONTRACTS,ZT as COMMON_MUTATION_COMMAND_OPTION_KEYS,bd as COMPLETION_FLAG_CONTRACTS,_n as CONFIDENCE_TEXT_VALUES,aa as CONFIG_FLAG_CONTRACTS,Dd as CONTEXT_COMMANDER_STRING_OPTION_CONTRACTS,qM as CONTEXT_EVALUATION_METRIC_NAMES,cd as CONTEXT_FLAG_CONTRACTS,Tw as CONTEXT_INTENT_LIMIT_OVERRIDE_WARNING,jt as CONTEXT_OUTPUT_VALUES,WM as CONTEXT_PACKING_PROFILES,LM as CONTEXT_RECENCY_EPOCH,GM as CONTEXT_RELEVANCE_SERVICE,$M as CONTEXT_RELEVANCE_SIGNAL_NAMES,JM as CONTEXT_SIGNAL_SET_VERSION,XM as CONTEXT_SIGNAL_STORE_FORMAT_VERSION,ZM as CONTEXT_SIGNAL_STORE_WARNING_DETAILS,cw as CONTEXT_USAGE_LIMITS,yd as CONTRACTS_FLAG_CONTRACTS,rd as COPY_FLAG_CONTRACTS,Kd as CREATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,Yd as CREATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,Wd as CREATE_COMMANDER_STRING_OPTION_CONTRACTS,TT as CREATE_DIRECT_CLOSE_REASON_DEFAULT,Za as CREATE_FLAG_CONTRACTS,kE as CURRENT_HISTORY_HASH_ALGORITHM,Bw as CURRENT_HISTORY_ITEM_HASH_VERSION,zw as CURRENT_HISTORY_RECORD_HASH_VERSION,Un as CURRENT_ITEM_FORMAT_VERSION,r0 as ContextSignalStore,lw as ContextUsageValidationError,RM as DEFAULT_AUTHOR_IDENTITY_VOCABULARY,b0 as DEFAULT_CHILD_SAMPLE_LIMIT,QO as DEFAULT_COMPACT_LIST_FIELDS,mv as DEFAULT_DERIVED_INDEX_MINIMUM_ITEMS,af as DEFAULT_EVAL_QUERIES_RELATIVE_PATH,sP as DEFAULT_RELATIONSHIP_CONTEXT_TOKEN_BUDGET,bM as DEFAULT_TERMINAL_TRANSITION_POLICY,s0 as DEFAULT_WORKSPACE_MEMORY_MINIMUM_ITEMS,bR as DEFECT_ESCAPE_CLASSES,TR as DEFECT_GATE_EVIDENCE_DISPOSITIONS,Na as DELETE_FLAG_CONTRACTS,un as DEPENDENCY_KIND_VALUES,ud as DEPS_FLAG_CONTRACTS,Xs as DOCS_FLAG_CONTRACTS,Wa as DUPLICATES_FLAG_CONTRACTS,DP as DURABLE_MERGE_RECEIPT_INTRODUCED_AT,wR as DefectRecurrencePolicyParseError,fd as EVAL_FLAG_CONTRACTS,Qm as EVAL_METRIC_NAMES,of as EVAL_QUERY_SET_CONTRACT,nf as EVAL_QUERY_SET_EXAMPLE,rf as EVAL_QUERY_SET_SCHEMA_ID,dd as EVENTS_FLAG_CONTRACTS,Ua as EVENT_FLAG_CONTRACTS,Lo as EXECUTABLE_COMMAND_ALIASES,me as EXIT_CODE,ya as EXTENSION_ACTIVATE_FLAG_CONTRACTS,ga as EXTENSION_ADOPT_ALL_FLAG_CONTRACTS,Aa as EXTENSION_ADOPT_FLAG_CONTRACTS,X0 as EXTENSION_CAPABILITIES,yT as EXTENSION_CAPABILITY_CONTRACT,hT as EXTENSION_CAPABILITY_CONTRACT_VERSION,gT as EXTENSION_CAPABILITY_LEGACY_ALIASES,Mn as EXTENSION_CAPABILITY_REGISTRATION_SURFACES,wa as EXTENSION_CATALOG_FLAG_CONTRACTS,ba as EXTENSION_DEACTIVATE_FLAG_CONTRACTS,ha as EXTENSION_DESCRIBE_FLAG_CONTRACTS,Sa as EXTENSION_DOCTOR_FLAG_CONTRACTS,_a as EXTENSION_EXPLORE_FLAG_CONTRACTS,da as EXTENSION_FLAG_CONTRACTS,la as EXTENSION_INIT_FLAG_CONTRACTS,ma as EXTENSION_INSTALL_FLAG_CONTRACTS,Ca as EXTENSION_MANAGE_FLAG_CONTRACTS,Ta as EXTENSION_MIGRATE_FLAG_CONTRACTS,J0 as EXTENSION_POLICY_MODES,Z0 as EXTENSION_POLICY_SURFACES,Ea as EXTENSION_RELOAD_FLAG_CONTRACTS,ek as EXTENSION_SANDBOX_PROFILES,ca as EXTENSION_SCOPE_FLAG_CONTRACTS,Q0 as EXTENSION_TRUST_MODES,fa as EXTENSION_UNINSTALL_FLAG_CONTRACTS,DR as EXTERNAL_DEPENDENCY_RESOLUTION_STATUSES,NR as EXTERNAL_DEPENDENCY_SOURCE_KIND,LR as EXTERNAL_DEPENDENCY_SOURCE_KIND_ALIAS,qv as ExtensionCommandError,Ys as FILES_FLAG_CONTRACTS,od as FOCUS_FLAG_CONTRACTS,Va as GC_FLAG_CONTRACTS,nR as GET_DEPTH_INPUT_VALUES,oR as GET_DEPTH_VALUES,ld as GET_FLAG_CONTRACTS,qs as GLOBAL_FLAG_CONTRACTS,jp as GRAPH_DURABLE_CACHE_MIN_ITEMS,Up as GRAPH_DURABLE_CACHE_VERSION,md as GRAPH_FLAG_CONTRACTS,ZO as GRAPH_QUERY_DEFAULTS,De as GRAPH_SUBCOMMAND_VALUES,pd as GUIDE_FLAG_CONTRACTS,Ya as HEALTH_FLAG_CONTRACTS,ta as HISTORY_AUTHOR_ACKNOWLEDGE_FLAG_CONTRACTS,rP as HISTORY_AUTHOR_ATTRIBUTION_BASELINE,lM as HISTORY_COMPACT_BULK_DEFAULT_MIN_ENTRIES,ra as HISTORY_COMPACT_FLAG_CONTRACTS,hi as HISTORY_EVENT_CLASSIFICATION_VERSION,Js as HISTORY_FLAG_CONTRACTS,PE as HISTORY_HASH_ALGORITHMS,rv as HISTORY_ITEM_HASH_VERSION_3_INTRODUCED_IN,Qs as HISTORY_REDACT_FLAG_CONTRACTS,ea as HISTORY_REPAIR_FLAG_CONTRACTS,yl as INIT_AGENT_GUIDANCE_MODE_VALUES,sa as INIT_FLAG_CONTRACTS,va as INSTALL_FLAG_CONTRACTS,fn as ISSUE_SEVERITY_VALUES,ed as ITEM_COMPLETE_FLAG_CONTRACTS,OP as ITEM_LATEST_TIMESTAMP_FIELDS,bT as ITEM_METADATA_KEY_ORDER,Qa as ITEM_MUTATE_FLAG_CONTRACTS,td as ITEM_REOPEN_FLAG_CONTRACTS,As as ITEM_REVISION_CONFLICT_CHANGE_LIMIT,ws as ITEM_REVISION_CONFLICT_CODE,TP as ITEM_SCALAR_MISSING_VALUE,ln as ITEM_TYPE_VALUES,vP as ITEM_UNION_COLLECTION_FIELDS,t0 as JsonFileContextSignalStoreAdapter,Ws as LEARNINGS_FLAG_CONTRACTS,ME as LEGACY_HISTORY_HASH_ALGORITHM,Au as LINKED_TEST_ENV_NAME_PATTERN,vu as LINKED_TEST_PM_CONTEXT_MODE_VALUES,wu as LINKED_TEST_PROTECTED_ENV_KEYS,Ou as LINKED_TEST_WORKSPACE_CONTEXT_MODE_VALUES,xd as LIST_COMMANDER_STRING_OPTION_CONTRACTS,tR as LIST_COMMAND_DEFAULT_PROJECTIONS,rk as LIST_FILTER_EXTENSION_FLAG_DEFINITIONS,zs as LIST_FILTER_FLAG_CONTRACTS,zR as LIST_SORT_FIELDS,HR as LIST_SORT_ORDER_VALUES,gi as MAINTENANCE_HISTORY_OPERATIONS,y0 as MAX_CHILD_PROJECTION_ITEMS,vT as MAX_WORKFLOW_POLICIES,OT as MAX_WORKFLOW_POLICY_TERMS,Ga as MEET_FLAG_CONTRACTS,G0 as MERGE_DRIVER_ARTIFACT_VALUES,Zs as MERGE_FLAG_CONTRACTS,$e as MERGE_SUBCOMMAND_VALUES,B0 as MUTATION_EVENT_WIRE_BUDGET,se as MemoryRelationshipGraphAdapter,$d as NEXT_COMMANDER_STRING_OPTION_CONTRACTS,hd as NEXT_FLAG_CONTRACTS,Sm as NEXT_OUTPUT_VALUES,OM as NEXT_RANKING_POLICIES,Ks as NOTES_FLAG_CONTRACTS,FO as OutputEnvelopeFitError,pa as PACKAGE_FLAG_CONTRACTS,ua as PACKAGE_INIT_FLAG_CONTRACTS,$a as PAUSE_TASK_FLAG_CONTRACTS,bc as PLAN_CREATE_METADATA_PARAMETER_KEYS,ia as PLAN_FLAG_CONTRACTS,Gs as PLAN_SHOW_DEPTH_VALUES,Ye as PLAN_SUBCOMMANDS,km as PLAN_TEMPLATE_NAMES,db as PM_AGENT_TASK_ACCOUNTING_MODES,ut as PM_AGENT_TASK_TRANSCRIPT_VERSION,Mo as PM_BULK_LIFECYCLE_COMMAND_ALIASES,es as PM_CLI_ERROR_DETAILS_LIMITS,ss as PM_CLI_EXPECTED_ERROR_NAME,pR as PM_CLI_GRAMMAR_CONTRACT,sR as PM_CLI_GRAMMAR_NOUNS,Wo as PM_CLI_ONLY_TOOL_ACTION_WAIVERS,aR as PM_CLI_SHARED_VERBS,No as PM_COMMAND_ALIAS_CONTRACTS,te as PM_COMMAND_CAPABILITY_CONTRACTS,It as PM_COMMAND_DESTINATION_CONTRACTS,aI as PM_COMMAND_EXIT_CONTRACTS,sI as PM_COMMAND_EXIT_OUTCOME_CONTRACTS,Ri as PM_COMMAND_OUTPUT_BUDGET_CONTRACTS,oI as PM_COMMAND_OUTPUT_ENVELOPE_CONTRACTS,qe as PM_COMMAND_POSITIONAL_CONTRACTS,jc as PM_COMMAND_VISIBILITY_CONTRACTS,XI as PM_COMPLETE_LIST_FINDING_CODES,PO as PM_CONTEXT_INTENTS_FILE,Cw as PM_CONTEXT_INTENT_CONTRACTS,Po as PM_CONTEXT_OPS_COMMAND_ALIASES,zo as PM_CORE_COMMAND_NAMES,G as PM_CORPUS_SHAPE_SCHEMA,Xo as PM_DEPRECATED_TOOL_ACTIONS,Si as PM_DIAGNOSTIC_DEGRADATION_STEPS,wi as PM_DIAGNOSTIC_OUTPUT_BUDGET_CONTRACTS,Ei as PM_DIAGNOSTIC_OUTPUT_CLASSES,Jo as PM_DISCOVERABLE_TOOL_ACTIONS,Kr as PM_EPISODE_SCHEMA,tI as PM_ERROR_CODE_CATALOG,JR as PM_ERROR_CODE_EXIT_CLASS_CONTRACTS,Qr as PM_EXACT_COVERAGE_METRICS,Fo as PM_EXTENSION_CAPABILITY_CONTRACTS,Ho as PM_EXTENSION_PACKAGE_ACTION_SUBCOMMANDS,Uo as PM_EXTENSION_POLICY_MODE_CONTRACTS,qo as PM_EXTENSION_POLICY_SURFACE_CONTRACTS,Bo as PM_EXTENSION_SANDBOX_PROFILE_CONTRACTS,Go as PM_EXTENSION_SERVICE_NAME_CONTRACTS,jo as PM_EXTENSION_TRUST_MODE_CONTRACTS,Ni as PM_GENERIC_REFUSAL_GUIDANCE,jI as PM_GITATTRIBUTES_END,UI as PM_GITATTRIBUTES_START,qI as PM_GITATTRIBUTES_V2_END,BI as PM_GITATTRIBUTES_V2_START,Yc as PM_GITIGNORE_END,Wc as PM_GITIGNORE_START,fM as PM_HISTORY_ATTESTATION_CONTRACT,Io as PM_HISTORY_COMMAND_ALIASES,WE as PM_HISTORY_OPERATION_ALIASES,XE as PM_HISTORY_OPERATION_CONTRACT,YE as PM_HISTORY_OPERATION_PATTERNS,Ko as PM_ITEM_ACTION_SUBCOMMANDS,VE as PM_ITEM_HISTORY_OPERATIONS,it as PM_MCP_APPS_EXTENSION,Pr as PM_MCP_APPS_SERVER_CAPABILITY,Ae as PM_MCP_APPS_SPEC_VERSION,xr as PM_MCP_APP_CONTRACTS,kr as PM_MCP_APP_MIME_TYPE,tT as PM_MCP_ENTRY_TOOL_NAMES,m as PM_MCP_ERROR_CODES,gN as PM_MCP_HTTP_PROTOCOL_VERSION,bg as PM_MCP_INPUT_REQUEST_METHODS,rr as PM_MCP_LEGACY_PROTOCOL_VERSIONS,tr as PM_MCP_LOG_LEVELS,w as PM_MCP_META_KEYS,T$ as PM_MCP_PROGRESSIVE_DISCOVERY_EXTENSION,C$ as PM_MCP_PROGRESSIVE_DISCOVERY_SERVER_CAPABILITY,Vc as PM_MCP_PROMPT_CONTRACTS,H as PM_MCP_PROTOCOL_VERSION,Hc as PM_MCP_RESOURCE_CONTRACTS,at as PM_MCP_SKILLS_DRAFT_REVISION,Nr as PM_MCP_SKILLS_EXTENSION,Ay as PM_MCP_SKILLS_SERVER_CAPABILITY,P as PM_MCP_SKILL_LIMITS,Se as PM_MCP_SUBSCRIPTION_ID_META_KEY,re as PM_MCP_SUPPORTED_PROTOCOL_VERSIONS,cN as PM_MCP_TASKS_EXTENSION,Pg as PM_MCP_TASK_STATUSES,he as PM_MCP_TOOL_COMMAND_CONTRACTS,cS as PM_MODE_PAIRED_OUTPUT_PROJECTION_CONTRACTS,ls as PM_MUTATION_ACTION_CONTRACTS,Ne as PM_NAMESPACED_COMMAND_ALIASES,Hr as PM_OBSERVATION_SCHEMA,Ci as PM_OUTPUT_BUDGET_CLASSES,Ti as PM_OUTPUT_DEGRADATION_STEPS,kt as PM_OUTPUT_ENVELOPE_KINDS,$t as PM_PACKAGE_CONVENTIONAL_RESOURCE_ROOTS,Vo as PM_PACKAGE_ONLY_ACTION_SUBCOMMANDS,Dt as PM_PACKAGE_RESOURCE_KINDS,Be as PM_POSITIONAL_ACTION_CONTRACTS,Oc as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA,Ac as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA_VERSION,FS as PM_READ_OUTPUT_COMPOSITION_OPTION_FLAGS,XS as PM_READ_OUTPUT_CONTINUATION_FINGERPRINT_POLICIES,DS as PM_READ_OUTPUT_DIMENSIONS,$S as PM_READ_OUTPUT_OPTION_FLAGS,MS as PM_READ_OUTPUT_SESSION_MAX_SEEN_ITEM_IDS,PS as PM_READ_OUTPUT_SESSION_MIN_TOKENS,GC as PM_READ_OUTPUT_SURFACES,GS as PM_READ_OUTPUT_SURFACE_CONTRACTS,dS as PM_READ_ROW_CONTRACTS,aS as PM_READ_ROW_JQ_SELECTOR,Fi as PM_RECOVERY_ECHO_FIELDS,lD as PM_RECOVERY_REFERENCE_FIELDS,ce as PM_RECOVERY_REFERENCE_KINDS,kb as PM_REFUSAL_CLOSURE_EXECUTABLE_CANONICAL_CODE_BASELINE,lo as PM_REFUSAL_CLOSURE_EXECUTABLE_CANONICAL_CODE_BASELINE_V2,gD as PM_REFUSAL_CLOSURE_EXECUTABLE_CODE_BASELINE,co as PM_REFUSAL_CLOSURE_EXECUTABLE_CODE_BASELINE_V2,ko as PM_RELOCATED_COMMAND_ALIASES,qd as PM_REPRODUCIBLE_PROCESS_ENV,dI as PM_SUCCESS_EXIT_CODES,Yo as PM_TOOL_ACTIONS,Cc as PM_TOOL_ACTION_PARAMETER_CONTRACTS,vc as PM_TOOL_PARAMETERS_SCHEMA,wc as PM_TOOL_PARAMETERS_SCHEMA_MAJOR,Sc as PM_TOOL_PARAMETERS_SCHEMA_VERSION,gc as PM_TOOL_RESERVED_CUSTOM_FIELD_PROPERTIES,Vr as PM_VERDICT_SCHEMA,KE as PM_WORKSPACE_HISTORY_OPERATIONS,qr as PM_WORKSPACE_RECIPE_SCHEMA,na as PROFILE_FLAG_CONTRACTS,Jt as PROFILE_LINT_CODES,Xt as PROFILE_LINT_DIMENSIONS,qt as PROFILE_NAMES,Xe as PROFILE_SUBCOMMANDS,b as PmCliError,ge as PmClient,JI as PmCompleteListValidationError,y as PmMcpAuthorizationError,or as PmMcpInputRequiredError,Ar as PmMcpIssuerCredentialStore,u as PmMcpProtocolError,nr as PmMcpRequestStateReplayGuard,Ur as PmMcpSkillRegistry,_r as PmMcpSubscriptionRegistry,ot as PmMcpTaskStore,dw as QUERY_CURSOR_CONTRACT,Ra as REINDEX_FLAG_CONTRACTS,WA as REINDEX_LOCK_ID,pt as RELATIONSHIP_GRAPH_SNAPSHOT_VERSION,La as RELEASE_FLAG_CONTRACTS,ja as REMIND_FLAG_CONTRACTS,At as RESERVED_ITEM_FIELD_NAMES,xa as RESTORE_FLAG_CONTRACTS,mn as RISK_VALUES,UO as RelationshipEventLog,jO as RelationshipEventStore,z as RelationshipGraph,Ue as RelationshipKindRegistry,oa as SCHEMA_FLAG_CONTRACTS,Nd as SEARCH_COMMANDER_STRING_OPTION_CONTRACTS,ok as SEARCH_EXTENSION_FLAG_DEFINITIONS,gd as SEARCH_FLAG_CONTRACTS,Hu as SEMANTIC_ATTRIBUTION_LIMITS,ET as SETTINGS_DEFAULTS,uf as SNAPSHOT_SCHEMA,$I as SOURCE_CONTEXT_ACCESS_ENV,FI as SOURCE_CONTEXT_WRITE_OVERRIDE_ENV,Xu as START_BLOCKED_REFUSAL_CODE,Yu as START_BLOCKER_ENFORCEMENT_DEFAULT,Da as START_TASK_FLAG_CONTRACTS,Ka as STATS_FLAG_CONTRACTS,pn as STATUS_VALUES,Bs as SUBCOMMAND_GLOBAL_FLAG_CONTRACTS,yi as SUBSTANTIVE_HISTORY_OPERATIONS,qw as SUPPORTED_HISTORY_ITEM_HASH_VERSIONS,Hw as SUPPORTED_HISTORY_RECORD_HASH_VERSIONS,xC as SUPPRESS_HOST_OUTPUT_MARKER,za as TELEMETRY_FLAG_CONTRACTS,Uf as TELEMETRY_SUBCOMMANDS,qa as TEST_ALL_FLAG_CONTRACTS,Ba as TEST_FLAG_CONTRACTS,Ha as TEST_RUNS_FLAG_CONTRACTS,Lf as TEST_RUN_MEASUREMENT_LIMIT,mc as TOOL_ACTIVITY_OPTION_CONTRACTS,tc as TOOL_AGGREGATE_OPTION_CONTRACTS,cc as TOOL_BULK_MUTATION_FILTER_OPTION_CONTRACT_SOURCE,uc as TOOL_CALENDAR_OPTION_CONTRACTS,pc as TOOL_CLOSE_MANY_FILTER_OPTION_CONTRACTS,fc as TOOL_CONTEXT_OPTION_CONTRACTS,sc as TOOL_CREATE_OPTION_CONTRACTS,ic as TOOL_CREATE_OPTION_CONTRACT_SOURCE,_c as TOOL_DEPS_OPTION_CONTRACTS,hc as TOOL_GRAPH_OPTION_CONTRACTS,ec as TOOL_LIST_FILTER_OPTION_CONTRACTS,rc as TOOL_SEARCH_FILTER_OPTION_CONTRACTS,nc as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACTS,oc as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACT_SOURCE,lc as TOOL_UPDATE_MANY_FILTER_OPTION_CONTRACTS,dc as TOOL_UPDATE_OPTION_CONTRACTS,ac as TOOL_UPDATE_OPTION_CONTRACT_SOURCE,CT as TYPE_TO_FOLDER,AC as UNKNOWN_SUBCOMMAND_COMPATIBILITY_CODES,Xd as UPDATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,Zd as UPDATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,Jd as UPDATE_COMMANDER_STRING_OPTION_CONTRACTS,nd as UPDATE_FLAG_CONTRACTS,id as UPDATE_MANY_FLAG_CONTRACTS,Oa as UPGRADE_FLAG_CONTRACTS,Xa as VALIDATE_FLAG_CONTRACTS,AT as WORKFLOW_POLICY_ACTIONS,VI as WORKFLOW_POLICY_DOCUMENT_SCHEMA,HI as WORKFLOW_POLICY_SCHEMA,_d as WORKSPACE_FLAG_CONTRACTS,mA as WORKSPACE_HISTORY_ID,mf as WORKSPACE_SNAPSHOT_ACTIONS,zl as WorkspaceGraphCache,VO as WorkspaceTransactionInterruptedError,_u as _testOnly,g0 as _testOnlyAggregateCommand,Bl as _testOnlyConfigCommand,S0 as _testOnlyGetCommand,tu as _testOnlyHealthCommand,El as _testOnlyInit,bl as _testOnlyInitAgentGuidance,yk as _testOnlyItemTransaction,V0 as _testOnlyMutationEvents,f0 as _testOnlyNextCommand,F0 as _testOnlySearchCommand,dP as _testOnlySimilarity,$m as _testOnlyTemplates,uu as _testOnlyValidateCommand,Y0 as _testOnlyWorkspacePosition,Tk as abandonItemTransaction,JO as abandonWorkspaceTransaction,fP as acceptAssuranceProposals,lu as acknowledgeLinkedTests,Gl as acknowledgeUnknownAuthorHistoryEvents,Fl as acknowledgeUnknownAuthorHistoryEventsFromTransport,fv as acquireItemMetadataDerivedIndexLock,je as acquireLock,Qn as acquireLockLease,Qk as activateExtensionForTest,JC as activateExtensions,Zu as admitStartWithOpenBlockers,Zn as agentSessionEnvironment,j_ as aggregate,wf as analyzeAgentProvenanceDescriptorCoverage,ER as analyzeDefectChangeRisk,oM as analyzeDefectRecurrenceCoverage,mp as analyzeDuplicateItems,qO as analyzeGraphImpact,Mc as analyzeHierarchyIntegrity,zO as analyzeKnowledgeGraph,lI as analyzePmCommandExitConformance,Zo as analyzePmToolActionParity,zP as analyzeReconciliationDiscard,BO as analyzeRelationshipExecution,kp as analyzeRelationshipSchedule,pg as analyzeSdkActionCoverage,Pt as analyzeSdkCliParameterCompleteness,Q_ as append,ji as appendHistoryEntry,gA as appendWorkspaceAuditEvent,hA as appendWorkspaceHistoryChange,FT as applyAcceptanceCriteriaMutations,uP as applyAssurancePreset,vd as applyBootstrapPagerPolicy,ZP as applyClosureTimestampFix,vw as applyContextIntentProjection,Em as applyContextTagProjection,VR as applyFilterValueEcho,ZA as applyHistoryPatch,Bd as applyInvocationAuthorOverride,Ql as applyPathMigrations,KS as applyReadOutputDimensions,qS as applyReadOutputIncludeModes,xS as applyReadOutputSessionReferences,SE as applyRegisteredItemFieldDefaultsAndValidation,op as applyStandaloneNote,Ds as applyStoredExtensionMigrationState,UT as applyTagRemovals,SM as applyTerminalOrderingPolicy,np as artifactKey,mC as asRecordClone,uC as asRecordOrNull,He as assembleWorkspaceRelationshipGraph,tP as assertCompleteListResult,xx as assertExtensionBlueprint,kx as assertExtensionCapabilityUsage,fx as assertExtensionDeactivated,Dx as assertExtensionManifestCompatible,Lx as assertExtensionManifestMatchesBlueprint,$x as assertExtensionPreflight,Nc as assertHierarchyMutationAllowed,pM as assertHistoryCompactTarget,VP as assertHistoryRepairTarget,Yi as assertInitializedTracker,ep as assertLinkedArtifactMutationIsUnambiguous,Ux as assertMcpClientCapabilities,Gx as assertMcpProtocolHeader,ab as assertMemoryRelationshipGraphAdapterConformance,qT as assertNoUnknownCsvKeys,Su as assertNonHierarchyCardinalityMutationAllowed,_x as assertPackageManifest,vA as assertParentReferenceIsNotSelf,KN as assertPmMcpSkillsCapability,Nx as assertProjectProfile,cv as assertProjectRuntimeCompatibility,sv as assertProjectRuntimeFormatGuard,lS as assertProjectionModeChoice,Wi as assertReadableTrackerRoot,hx as assertRegisteredCommandContract,vx as assertRegisteredCommandOverride,Ex as assertRegisteredExporter,gx as assertRegisteredFlags,yx as assertRegisteredHook,Cx as assertRegisteredImporter,Sx as assertRegisteredItemField,wx as assertRegisteredItemType,Mx as assertRegisteredMigration,Ox as assertRegisteredParserOverride,Rx as assertRegisteredPreflightOverride,Ax as assertRegisteredProfile,Ix as assertRegisteredRendererOverride,bx as assertRegisteredSearchProvider,Px as assertRegisteredServiceOverride,Tx as assertRegisteredVectorStoreAdapter,MC as assertRelationshipEdgeAllowed,ro as assertRelationshipGraphAdapterConformance,DT as assertSchemaPreviewSupported,qf as assertTestMeasurementRun,$w as assertWellFormedOutputText,TI as assuranceAssertionUpdateIsLoosening,Iw as attachContextIntentReceipt,pw as attachContextUsageServingReceipt,su as attachLinkedTestMutationProvenance,iu as attachLinkedTestProvenance,Ze as attachMcpServerInfo,hS as attachOutputOmissionReceipt,Mw as attachOutputTokenAccounting,Pw as attachReadOutputContracts,NS as attachReadOutputSessionReceipt,rl as auditMergeAttributeFence,zI as auditMergeDriverConfiguration,Fp as auditWorkspaceRelationshipGraph,kN as authorizeMcpHttpRequest,Xn as boundAgentEpisodeIdentity,AS as boundReadOutputRows,ym as buildChildrenByParent,k0 as buildCompactSearchFilterSummary,KR as buildContentFilterEcho,e0 as buildContextSignalSnapshot,zy as buildCorpusShapeItemPlan,CR as buildDefectRecurrenceIndex,ul as buildExtensionDescribeResult,fl as buildExtensionInstallPlan,WR as buildGovernanceMissingFilterEcho,DA as buildInvalidTypeError,T0 as buildItemChildrenRollup,hk as buildItemCompletionMutations,FM as buildItemContextRelevanceCandidates,Tv as buildItemNotFoundError,E0 as buildItemSchedule,QP as buildLinkedFileRepairReport,SN as buildMcpAuthorizationDiscoveryUrls,_g as buildMcpCompleteResult,Bx as buildMcpDiscoverResult,RN as buildMcpDynamicRegistrationMetadata,_N as buildMcpHttpRequestHeaders,Xx as buildMcpInputRequiredResult,EN as buildMcpProtectedResourceMetadata,el as buildMergeAttributePatterns,Ec as buildPmActionToolInputSchema,TD as buildPmRefusalClosureCensus,aP as buildRelationshipContext,Av as buildSearchCorpus,Ov as buildSemanticCorpusInput,YP as buildStatusRoleWarnings,Ki as buildTrackerInitializationRecovery,kv as buildVectorizationEmbeddingIdentity,xv as buildVectorizationEmbeddingMetadata,x0 as buildVerboseSearchFilters,KI as buildWorkflowCompletenessCheck,a0 as buildWorkspaceMemorySnapshot,Yn as canonicalDocument,QT as canonicalizeCommandOptionKey,xk as canonicalizeCommandSuggestions,DM as canonicalizeContextRecencyCoordinate,RC as canonicalizeRelationshipKind,pD as censusPmRecoveryReferenceProducers,eP as certifyCompleteListResult,Yk as checkExtensionManifestCompatibility,Dh as claim,$h as claimNext,oP as classifyHistoryAuthorEvent,bi as classifyHistoryEvent,BP as classifyHistoryMergeReceiptReferences,qC as classifyHostEnvironmentFault,L0 as classifyImplicitSemanticFallbackReason,qn as classifyItemFormatVersion,Hf as classifyLinkedTestCommandSafety,Vf as classifyLinkedTestFailure,fE as clearActiveExtensionHooks,Vp as clearDurableGraphCache,rS as clearFocusedItem,Qf as clearWorkspaceContractsCache,Lh as close,yu as closeItem,Hh as closeTask,Id as coalesceRepeatedListFlags,SO as collectBlockedByIds,AO as collectBlockedByIdsFromCorpus,mw as collectContextUsageDeliveredItemIds,Fc as collectDanglingDependencyReferences,OO as collectDependencyBlockedIds,Dc as collectDuplicateDependencyRows,$p as collectDuplicateRelationshipEdgeGroups,N0 as collectErrorCauseCodes,Pc as collectHierarchyRelations,Cr as collectMcpHeaderAnnotations,Gc as collectMissingDependencyTargetIds,Eu as collectNewOrderingCycleWarnings,Np as collectOrderingCycles,$c as collectOrderingStorageContradictions,xO as collectPackageContextIntentContracts,Gt as collectPackageExtensionDirectories,CE as collectRegisteredItemFieldNames,UE as collectRuntimeCreateFieldValues,$A as collectRuntimeFilterValues,jE as collectRuntimeUpdateFieldValues,mm as collectSubtreeIds,kn as collectUsedExtensionCapabilities,eC as commandOptionFlagLabel,z_ as comments,S_ as commitImportedItem,gk as commitItemCompletion,_k as commitItemMutations,WO as commitWorkspaceTransaction,js as compactFlagAliasContracts,fm as compareCriticalItems,ov as comparePmDateVersions,HO as compareRelationshipSnapshots,fC as compareTimestampStrings,xM as compileHistoryProvenanceMatcher,ww as composeContextIntentContracts,Bk as composeExtension,Wk as composeExtensionPackage,IO as computeActionabilityReport,lA as computeHistoryDiff,Pp as computeRelationshipCentrality,Ip as computeRelationshipDominators,ql as computeWorkspaceGraphFingerprint,th as config,mE as consumeAfterCommandAffectedItems,L_ as context,Rw as contextIntentRowId,Gh as copy,Kf as countFailureCategories,SS as countReadOutputRows,kh as create,pP as createAssurancePreset,tM as createAssuranceWorkspaceContext,hC as createCheckpointId,ZI as createCompleteListOptions,ZC as createCoreCommandHookContext,Zr as createCorpusShapeMeasurement,AI as createEmptyAssuranceDocument,UC as createEmptyExtensionRegistrationRegistry,zv as createExtensionCommandError,xs as createExtensionCommandSdk,In as createExtensionContributionInventory,Fx as createExtensionTestHarness,Ui as createHistoryEntry,iO as createLazyModule,WI as createLifecycleCompletenessPolicies,xN as createMcpStaticBearerVerifier,lN as createMcpTaskStore,bv as createMutationGuardSdk,pS as createOutputOmissionReceipt,ds as createPmCliExpectedError,ks as createPmCliProgram,vi as createPmCommandOutputBudget,tw as createQueryFingerprint,sb as createRelationshipGraphScaleFixture,Z as createRelationshipGraphSnapshot,wt as createRelationshipKindRegistry,Hd as createReproducibleProcessRunner,P0 as createSearchCursorFingerprint,QC as createSerialQueue,YT as createStdinTokenResolver,vC as createUnknownSubcommandError,LT as createWorkflowPolicyEvaluator,ff as createWorkspaceSnapshot,ex as deactivateExtensionForTest,d1 as declineServiceOverride,Ow as decodeContextIntentCursor,nO as decodeHtmlEntitiesInOptions,Tr as decodeMcpHttpHeaderValue,xw as decodePmTableRows,iw as decodeQueryCursor,ow as decodeQueryCursorEnvelope,nw as decodeQueryCursorState,QS as decodeReadOutputContinuationCursor,Jk as decodeToon,FN as decoratePmMcpToolsWithApps,sp as dedupeLinkedArtifacts,wE as defaultConfigScope,UM as defaultScoreContextCandidates,f1 as defineAfterCommandHook,u1 as defineBeforeCommandHook,m1 as defineBeforeMutationHook,XD as defineCommand,o1 as defineCommandOverride,W as defineCorpusShape,oL as defineEpisodeSpecification,p1 as defineExporter,Uk as defineExtension,jk as defineExtensionBlueprint,WD as defineExtensionManifest,JD as defineFlag,l1 as defineImporter,QD as defineItemField,ZD as defineItemType,e1 as defineMigration,Ny as defineObservationContract,g1 as defineOnIndexHook,h1 as defineOnReadHook,_1 as defineOnWriteHook,n1 as defineParserOverride,Oi as definePmCommandOutputBudget,rI as definePmCommandOutputEnvelope,ZR as definePmErrorCodeCatalog,i1 as definePreflightOverride,YD as defineProjectProfile,c1 as defineRendererOverride,t1 as defineSearchProvider,s1 as defineServiceOverride,r1 as defineVectorStoreAdapter,Fy as defineVerdictContract,ve as defineWorkspaceRecipe,Uh as deleteItem,Tf as deleteWorkspaceSnapshot,kC as dependencyToRelationship,J_ as deps,mP as deriveAssuranceProposals,XP as deriveClosureTimestamp,zk as deriveExtensionCapabilities,nk as deriveMutationTransactionId,pI as derivePmBulkMutationEffect,uD as derivePmRecoveryReferenceObligations,xp as deriveRelationshipDeadlines,sl as deriveSchemaEvolutionMigrationId,Xv as deriveTelemetryCommandResolution,jA as describeAllowedTransitions,DI as describeExtensionActivation,Hk as describeExtensionBlueprint,SC as describeFlagScalarValueFailure,tm as describeItemOwnershipConflict,Is as describeItemRevisionChanges,rL as describeObservationCost,Wt as describeProfileComposition,Yt as describeProjectProfile,Sk as describeReadCompletenessControls,Hv as describeUnknownError,ci as detectAgentIdentity,mi as detectHarnessIdentity,Op as detectRelationshipCommunities,li as diagnoseAgentIdentity,Gp as diffRelationshipAuditSnapshots,Ff as diffTestRunMeasurements,Qx as digestMcpRequestParameters,YC as discoverExtensions,yn as discoverNearbyPmRoot,S$ as discoverPmTools,iv as discoverProjectRuntimeVersionPins,X_ as docs,q_ as duplicates,Bp as durableGraphCachePath,Kp as durableGraphCacheStatus,jn as effectiveItemFormatVersion,gO as emitTelemetryErrorEvent,E_ as emptyImportedDocument,EP as encodeItemScalarDecisionValue,br as encodeMcpHttpHeaderValue,kw as encodePmTableRows,rw as encodeQueryCursor,ZS as encodeReadOutputContinuationCursor,Zk as encodeToon,pA as enforceHistoryStreamPolicyForItem,uA as enforceHistoryStreamPolicyForItems,YR as enrichCliFlagInvocationContract,Mt as enrichCliFlagInvocationContracts,ev as ensureMaterializedHistoryTarget,Jc as ensurePmGitignore,Wl as ensureScope,Bv as ensureSentryCommandTracing,jv as ensureSentryInit,C_ as ensureTrackerInitialized,Ap as enumerateRelationshipPaths,Pi as estimatePmOutputTokens,OI as evaluateAssuranceAssertion,RI as evaluateAssuranceGate,CL as evaluateBoundaryFixtures,zM as evaluateContextRanking,SR as evaluateDefectGateEvidence,vI as evaluateMeasurement,tf as evaluateMetricFloors,us as evaluateMutationGuard,Pf as evaluateProvenanceCoverage,L1 as evaluateReliabilityWindow,Of as evaluateSemanticAttributionCoverage,_p as evaluateSimilarityGovernance,UA as evaluateTransition,Gy as evaluateVerdictContract,NT as evaluateWorkflowPolicies,Qi as executeEmbeddingBatchesWithRetry,Pv as executeVectorDelete,Mv as executeVectorReset,Iv as executeVectorUpsert,Py as executeWorkspaceRecipe,rp as expandAddGlobEntries,gp as explainSourceTraceability,hM as exportAttestation,Vh as extension,Wh as extensionActivate,Yh as extensionDeactivate,Kh as extensionList,Vb as extensionMigrate,jP as extractHistoryMergeReceiptDispositions,UP as extractHistoryMergeReceiptReferences,IN as extractMcpTraceContext,XA as extractPatchFailureContext,ru as extractReferencedPmItemIdsFromCommand,ib as federateRelationshipGraphSnapshots,K_ as files,W_ as filesDiscover,Y_ as filesLookup,fw as finalizeContextUsageDelivery,Xy as findCoverageDeficits,fp as findDuplicateClusters,Qc as findGitWorkspaceRoot,LE as findHistoryIdentityDiscontinuities,ll as findInstalledNpmPackageCandidate,$N as findPmMcpAppByUri,xo as findPmNamespacedCommand,Rp as findRedundantRelationshipEdges,Mp as findRelationshipCutStructure,up as findSimilarItems,hO as finishTelemetryCommand,GO as fitOutputEnvelope,EC as flattenFlagListValue,Ky as flushTelemetryQueue,Bh as focus,vp as forEachMatchedRelationshipEdge,Dp as formatDuplicateEdgeGroup,kc as formatHierarchyRelation,Lp as formatOrderingStorageContradiction,lR as formatPmPositionalActionFlagTip,Ym as formatProfileApplyHuman,Wm as formatProfileLintHuman,Vm as formatProfileListHuman,Km as formatProfileShowHuman,cl as formatSchemaEvolutionMigrationHuman,$0 as formatVectorIndexRecoveryWarnings,W0 as formatWorkspacePositionHuman,vh as gc,zi as generateItemId,G_ as get,lE as getActiveCommandResult,Ew as getActiveContextIntentContracts,Nn as getActiveExtensionRegistrations,MN as getActiveMcpTraceContext,PI as getAssuranceDeclaration,dg as getContracts,eS as getFocusedItem,Cn as getHistoryPath,$O as getItemAt,Tn as getItemPath,_s as getMutationActionContract,Xc as getPmGitignoreBlock,bn as getSettingsPath,e_ as getWorkspaceContracts,fA as getWorkspaceHistoryPath,Z_ as graph,qp as graphAuditBaselinePath,Rf as groupHistoryByEpisode,a1 as handleServiceOverride,jx as hasMcpClientExtension,DN as hasPmMcpAppsCapability,ze as hasSubcommandFlagContractsForCommand,Nv as hasVectorizationEmbeddingIdentityChanged,Lv as hasVectorizationVectorDimensionChanged,Qw as hashDocument,eA as hashDocumentForVersion,tA as hashEmptyDocument,Kw as hashHistoryPatch,Vw as hashHistoryRecord,Ww as hashHistoryStream,SP as hashItemScalarDecisionValue,Ah as health,Cp as hierarchyAncestors,Ep as hierarchyDescendants,Ph as historyCompact,Mh as historyCompactBulk,NE as historyDigest,kM as historyEntryMatchesProvenance,nv as historyItemHashVersionForRuntime,Oh as historyRedact,Rh as historyRepair,Ih as historyRepairAll,wO as indexBlockedByIds,xc as indexHierarchyRelations,Dv as inferConsistentVectorDimension,Ai as inferPmOutputBudgetClass,eh as init,QI as inspectCompleteListResult,jC as inspectExtensionManifestSchema,xl as inspectHistoryAuthorStream,MP as inspectMergeReceiptEvidence,dv as inspectProjectRuntimeCompatibility,Cs as inspectStaleInProgressItems,ug as inspectStaticExtensionInventory,WP as inspectStatusRoleAssignments,_A as inspectWorkspaceHistoryState,_f as inspectWorkspaceSnapshot,il as installMergeFence,qx as interpretMcpResultType,Am as isAlreadyClaimedError,Wv as isCommanderError,vk as isCompatibleRecoveryFlag,Rl as isErrnoError,bO as isExternalDependencyReference,TO as isExternalDependencySourceKind,fe as isFileMissingError,Li as isGenericRefusalRequired,Di as isGenericRefusalWhy,LC as isHostOutputSuppressed,as as isItemAlreadyExistsError,Ps as isItemRevisionConflict,CP as isItemScalarMissingValue,$P as isLegacyMergeReceiptSummary,h as isMcpRecord,ms as isMutationAction,PC as isOrderingRelationshipKind,wA as isPlaceholderReferenceToken,ts as isPmCliErrorDetails,cs as isPmCliExpectedError,en as isPmExtensionCapabilityContract,rn as isPmExtensionPolicyModeContract,on as isPmExtensionPolicySurfaceContract,tn as isPmExtensionServiceNameContract,cI as isPmKnownExitCode,nI as isPmMutationReceipt,We as isPmSuccessfulExitCode,is as isPmTokenBudgetRecovery,Qo as isPmToolAction,FP as isPreDurableCloneLocalReceiptSummary,GP as isPreDurableDispositionEligibleReference,av as isProjectMutatingInvocation,sO as isPureSnakeCaseAlias,WS as isReadOutputBudgetExceeded,IS as isReadOutputSessionReference,Ak as isReadProjectionRecoveryFlag,mS as isReadRowContract,Rc as isRuntimeRecord,zA as isSettingsReadFallback,Ju as isStartTransition,cO as isTerminalPlanMode,qE as isTerminalStatus,On as isTimestampLiteral,ck as itemDocumentToMutationOptions,C0 as itemHasSchedule,Pn as jaccardSimilarity,V_ as learnings,wC as levenshteinDistanceWithinLimit,Al as limitAnnotationEntries,au as linkedTestTrustFingerprint,Vk as lintExtensionBlueprint,BC as lintExtensionManifestSchema,Zt as lintProjectProfile,D_ as list,ni as listAgentProvenanceAdapters,Rd as listAliasPluralKeys,$_ as listAllComplete,gv as listAllDocumentCandidatesCached,Zi as listAllItemMetadata,yv as listAllItemMetadataLight,II as listAssuranceDeclarations,LI as listAssuranceVerdicts,By as listBuiltinCorpusShapes,Nk as listCoreClosedDomainContracts,iR as listGetProjectionFields,yP as listInvalidProvenanceHistoryStreamIds,rR as listListProjectionFields,kP as listMergeReceipts,fs as listMutationActions,q0 as listMutationEvents,fo as listPmCommandFlagBudgets,qc as listPmCommandsForFamily,Bc as listPmCommandsForTier,Me as listPmFlagLexicon,zD as listPmFlagSpellingInventory,zc as listPmMcpToolsForProfile,xD as listPmRequiredArgumentRefusalContracts,ND as listPmSubcommandRefusalContracts,Kt as listProfiles,$D as listTrackerPreflightRecoveryContracts,uk as listUpsertKeyCandidates,hf as listWorkspaceSnapshots,NO as loadContextIntentRuntimeLayers,Fm as loadCreateTemplateOptions,XC as loadExtensions,Yp as loadGraphAuditBaseline,mk as loadGuardedRuntimeSchema,yC as loadMutationCheckpoint,x as loadRelationshipGraphAdapter,Xi as locateItem,BT as looksLikeGenericKeyValueEntry,wS as mapReadOutputRows,xP as markMergeReceiptReconciled,FA as matchesRuntimeFilters,fO as maybeRunFirstUseTelemetryPrompt,Hy as measureCorpusShapePlan,Vi as measureItemMetadataReadWork,GT as mergeAdditiveTags,qk as mergeExtensionBlueprints,wP as mergeHistoryStreams,RP as mergeItemDocuments,IP as mergeJsonDocuments,Pd as mergeLinkedTestTwoTokenEntries,AP as mergeRelationshipEventStreams,Tm as mergeSortedWarnings,dO as migrateItemFilesToFormat,Ev as mutateItem,Cv as mutateItemWithHistoryContext,yA as mutateWorkspaceJsonWithHistory,U_ as next,si as normalizeAgentProvenanceAdapterValue,wl as normalizeAnnotationTransportOptions,hI as normalizeAssuranceEvaluation,_I as normalizeAssuranceMutation,Md as normalizeBootstrapInvocation,RE as normalizeBulkIdsValue,Lc as normalizeDependencyGraphTarget,UR as normalizeDependencySeedId,GR as normalizeDependencySourceKind,vs as normalizeExpectedItemHash,Rn as normalizeExtensionContributionInventory,QE as normalizeHistoryOperationForWrite,gP as normalizeInvalidHistoryProvenance,yR as normalizeItemAddressInvocation,Bn as normalizeItemFormatVersion,qi as normalizeItemId,Vn as normalizeItemMetadata,jR as normalizeItemReference,Od as normalizeLegacyExtensionActionSyntax,tp as normalizeLinkedPath,SA as normalizeParentReferenceValue,Ht as normalizeProfileName,Bi as normalizeRawItemId,zS as normalizeReadOutputIncludeModeOptions,iA as normalizeReplayPatchOps,hs as normalizeSimilarityText,BE as normalizeStatusForRegistry,Hn as normalizeStatusInput,$E as normalizeStatusInputWithRegistry,Kv as normalizeThrownExitCode,H_ as notes,vn as nowIso,zp as openDurableGraphCache,Zx as openMcpRequestState,nL as openPmEpisode,Sp as orderingPredecessors,wp as orderingSuccessors,YM as packContextCandidates,_m as packRankedContextItems,ig as packageActivate,ng as packageCatalog,sg as packageDeactivate,rg as packageDescribe,eg as packageDoctor,Zh as packageInstall,Xh as packageLifecycle,Jh as packageList,tg as packageManage,Kb as packageMigrate,og as packageReload,Qh as packageUninstall,aw as paginateQueryRows,Yl as parseAddEntries,Xl as parseAddGlobEntries,Ol as parseAnnotationTextInput,ik as parseAtomicMutationControls,Ad as parseBootstrapCommandName,Ed as parseBootstrapGlobalOptions,wd as parseBootstrapHelpRequest,kd as parseBootstrapTypeValue,OE as parseBulkIdsText,pm as parseContextDepth,am as parseContextFocusFields,MO as parseContextIntentDeclarations,um as parseContextSections,QM as parseContextSignalSnapshot,jT as parseCsvKv,vR as parseDefectChangeRiskRequest,rM as parseDefectRecurrenceCoverageRequest,AR as parseDefectRecurrencePolicy,ef as parseEvalMetricFloors,sf as parseEvalQuerySet,Os as parseExpectHashSpecs,dC as parseExtensionLongFlagToken,Zp as parseGraphSubcommand,_M as parseHistoryAttestation,PM as parseHistoryProvenanceFilters,OR as parseIntegerLimit,zE as parseItemDocument,sk as parseItemMutationBatch,LA as parseLimit,Du as parseLinkedTestAssertionEqualsMap,$u as parseLinkedTestAssertionGteMap,Pu as parseLinkedTestBoolean,Mu as parseLinkedTestContextMode,Iu as parseLinkedTestEnvClear,Ru as parseLinkedTestEnvSet,Fu as parseLinkedTestJsonEntries,Lu as parseLinkedTestMinLines,Nu as parseLinkedTestRegexList,xu as parseLinkedTestStringList,ku as parseLinkedTestWorkspaceContextMode,Eg as parseMcpCachePolicy,mg as parseMcpImplementation,tt as parseMcpInputRequests,dr as parseMcpInputResponses,Vg as parseMcpSubscriptionFilter,Zl as parseMigrateEntries,PR as parseMultiValueFilter,iI as parseMutationReceipt,JT as parseOptionalNonNegativeInteger,XT as parseOptionalNumber,nD as parsePmAgentTaskTranscriptCorpus,E$ as parsePmToolDiscoveryOptions,RR as parsePriority,xR as parsePriorityFilterSet,kS as parseReadOutputSession,EE as parseRegisteredItemFieldAssignments,ae as parseRelationshipGraphSnapshot,Jl as parseRemoveEntries,hp as parseSourceLineRange,MA as parseStatusFilterCsv,MR as parseStringFilterSet,nn as parseTags,Df as parseTestRunMeasurements,IR as parseType,kR as parseTypeFilterSet,$l as parseUnknownAuthorHistoryEventCoordinates,RT as parseWorkflowPolicy,IT as parseWorkflowPolicyDocument,_0 as partitionDecisionEntries,cA as patchPathToChangedField,sn as pathExists,zh as pauseTask,Hp as persistDurableGraphResult,qA as persistSelectedItemFormat,iP as planAgentIdentityVocabularyMutation,i0 as planCompletedAtBackfill,_l as planExtensionDirectoryCopy,Gk as planItemMutationDocument,Qt as planProfileApplication,dD as planRelationshipEventBackfill,Jp as planRelationshipRemediation,al as planSchemaEvolutionMigration,Ll as planUnknownAuthorHistoryAcknowledgment,gf as planWorkspaceSnapshotRestore,mR as positionalShapeKey,fR as positionalSignatureKey,Xk as preflightExtension,ys as prepareSimilarityText,HT as preserveMutationStdinTokenFields,zT as preserveMutationStdinTokenLiterals,Fk as previewItemMutationDocument,fk as previewItemMutations,jw as printError,Uw as printResult,bh as profile,Eh as profileApply,Sh as profileLint,Th as profileList,Ch as profileShow,uE as projectAfterCommandItemSnapshot,dm as projectContextFocusRows,Nf as projectFleetAttributionAnalytics,MM as projectHistoryProvenance,Gi as projectLeanRecoveryPayload,Nw as projectPmBriefListEnvelope,Lw as projectPmBriefSearchEnvelope,ns as projectPmCliErrorContextDetails,rs as projectPmCliErrorDetails,ki as projectPmDiagnosticOutput,xi as projectPmDiagnosticText,kf as projectProvenanceCoverageAnalytics,pu as projectValidateCounts,_P as promoteAssuranceAssertion,uw as propagateContextUsageServingReceipt,OL as pruneCompileCacheGenerations,MI as putAssuranceDeclaration,kI as putAssuranceDeclarationBundle,lv as queryItemMetadataIndex,pv as queryLinkedFileMetadataIndex,uv as querySimilarItemMetadataIndex,$f as queryTestRunMeasurementsBelow,Sn as quoteCommandArg,En as quoteWindowsCommandArg,kk as rankCommandPaths,vl as readAnnotationEntries,pi as readAuthorEnvironment,r_ as readBooleanOption,bw as readContextUsageAffinity,o_ as readCsvListOption,Ls as readExtensionMigrationState,an as readFileIfExists,Gd as readFirstStringFromCommanderOptions,Ud as readFirstValueFromCommanderOptions,If as readHistoryAnalyticsWindow,iS as readHistoryEntries,_i as readHistorySnapshot,Ef as readImprovementLedger,_v as readItemMetadataDerivedIndexState,Rs as readItemRevision,bk as readItemTransaction,Ji as readLocatedItem,ES as readOutputBudgetCollections,JS as readOutputCollectionFingerprint,CS as readOutputContinuationRowCollections,bS as readOutputContinuationRowPaths,BS as readOutputIncludeModeOptions,TS as readOutputRowCollections,yS as readOutputRowPaths,LS as readOutputSessionRemainingTokens,Ft as readPmPackageManifest,Zf as readRequiredString,GE as readRuntimeFieldOptionValue,Hi as readSettings,uO as readSettingsSection,HA as readSettingsWithMetadata,jd as readStringArrayFromCommanderOptions,t_ as readStringOption,Vv as readThrownExitCode,$v as readVectorizationStatusLedger,tv as readWorkflowPolicies,PT as readWorkflowPolicyField,kO as readWorkspaceContextIntentContracts,o0 as readWorkspaceContextSignals,d0 as readWorkspaceMemory,K0 as readWorkspacePosition,YO as readWorkspaceTransaction,dA as reanchorHistoryEntries,$1 as reconcileArtifactLedgers,xn as reconcileExtensionCapabilityUsage,TA as reconcileWorkspaceJsonHistory,pE as recordAfterCommandAffectedItem,NI as recordAssuranceVerdict,Bu as recordClaimSemanticAttribution,hw as recordContextUsageDelivery,_w as recordContextUsageServing,gw as recordContextUsageTouch,yw as recordContextUsageTouches,zu as recordFocusSemanticAttribution,Cf as recordImprovementObservation,qu as recordReleaseSemanticAttribution,hv as refreshItemMetadataDerivedIndex,ol as refreshMergeAttributeFenceIfInstalled,OS as refreshReadOutputDeliveredCounts,Gv as refreshSearchArtifactsForMutation,ii as registerAgentProvenanceAdapters,$R as registerExternalDependencyResolver,oi as registerHarnessSignalDescriptors,sS as registerOutputMaterialFieldGroups,Fh as release,vS as rememberReadOutputFocusRows,xI as removeAssuranceDeclaration,dn as removeFileIfExists,cp as renameArtifactsResultKey,om as renderCalendarMarkdown,nm as renderCalendarToon,Cm as renderContextMarkdown,ml as renderExtensionDescribeMarkdown,pl as renderExtensionSurfaceMarkdown,v_ as renderGuideMarkdown,Ik as renderMissingOptionRetry,h0 as renderNextMarkdown,Lk as renderPmClosedDomainHelp,wn as renderPmCommand,$o as renderPmCommandAliasMigrationHint,Kc as renderPmCommandVisibilityMarkdown,VD as renderPmFlagLexiconMarkdown,GN as renderPmMcpAppHtml,CD as renderPmRefusalClosureCensusMarkdown,xA as renderRowsAsCsv,NA as renderRowsAsTable,Nh as reopen,QA as replayHistoryToTarget,oA as replayToCanonicalItemDocument,rA as replayToItemDocument,ZE as requireHistoryOperation,CM as requireTerminalReason,EM as requireTerminalReasonWithRecovery,Jw as resealHistoryRewrite,aE as resetActiveExtensionRuntimeState,Vl as resetWorkspaceGraphCache,Jn as resolveAgentSessionContextFromSignals,kl as resolveAnnotationIndex,Il as resolveAnnotationInput,nS as resolveAuthor,fi as resolveAuthorIdentity,EA as resolveBodyFileContent,qy as resolveBuiltinCorpusShape,rm as resolveCalendarOutputFormat,QR as resolveCanonicalPmErrorCodeContract,IC as resolveCanonicalRelationshipKind,oS as resolveClaimPrincipal,IE as resolveCliBulkIdsInput,oC as resolveCommandOptionPolicyState,vL as resolveCompileCacheGeneration,n0 as resolveCompletionTimestamp,FC as resolveConfiguredPmPackageRoot,qR as resolveContentFieldFilters,Aw as resolveContextIntentContract,cm as resolveContextOutputFormat,lm as resolveContextTokenBudget,wM as resolveCreateExplicitEmptyFlag,Ss as resolveDeclaredBlockers,v0 as resolveEffectiveSearchMode,Sv as resolveEmbeddingProviders,CC as resolveExtensionFlagValueContract,hl as resolveExtensionInstallSourceIdentity,cC as resolveExtensionLongFlagName,Ns as resolveExtensionMigrationStatePath,WC as resolveExtensionRoots,FR as resolveExternalDependencyReference,TC as resolveFlagValueKind,sC as resolveGlobalPmRoot,w_ as resolveGuideOutputFormat,Sf as resolveHistoryEpisodeGroupIdentity,xE as resolveHistoryHashAlgorithm,JE as resolveHistoryOperation,IM as resolveHistoryProvenanceDimensions,yO as resolveHistorySubject,JA as resolveHistoryTarget,R0 as resolveHybridSemanticWeight,gn as resolveImplicitPmRoot,_C as resolveIsoOrRelative,vO as resolveItemBlockers,CO as resolveItemExecutionRole,dk as resolveItemMutationDocument,em as resolveItemOwnershipConflict,hn as resolveItemTypeRegistry,DE as resolveItemTypesFilePath,Ck as resolveLifecycleVerbRecovery,aC as resolveLinkedResourcePositionalRecovery,Wf as resolveLinkedTestFailureExitCode,ou as resolveLinkedTestSourceRef,nu as resolveLinkedTestSourceWorkspaceRoot,du as resolveLinkedTestTrust,cu as resolveLinkedTestTrustBatch,Kg as resolveMcpAcknowledgedSubscriptionFilter,Je as resolveMcpRequestContext,Zc as resolveMergeInstallContext,Pk as resolveMisnestedCommandPath,BR as resolveMissingMetadataFilters,Rk as resolveMissingOptionPlaceholder,uS as resolveModePairedOutputOmissionReceipt,m0 as resolveNextOutputFormat,_S as resolveOutputOmissionReceipt,$C as resolvePmCliVersion,Do as resolvePmCommandAlias,Ve as resolvePmCommandCapabilityFamily,Nt as resolvePmCommandExitContract,L as resolvePmCommandOperation,Ii as resolvePmCommandOutputBudget,xt as resolvePmCommandOutputEnvelope,dR as resolvePmCommandPositionalContract,An as resolvePmCommandScopeArgs,Ke as resolvePmCommandVisibilityTier,Mi as resolvePmDiagnosticOutputBudget,eI as resolvePmErrorCodeContract,jb as resolvePmFlagSemanticConcept,Le as resolvePmHistoryOperation,Vx as resolvePmMcpExecutableInvocation,DC as resolvePmPackageRootFromModule,cR as resolvePmPositionalActionContract,Td as resolvePmPositionalActionFlagContracts,Ge as resolvePmRoot,yc as resolvePmToolCustomFieldCollision,OA as resolvePriority,Vt as resolveProfile,tl as resolveProjectMergeTypeFolders,sw as resolveQueryCursorStart,Ek as resolveReadCompletenessControls,wk as resolveReadOptionRetryArgs,HS as resolveReadOutputDimensions,YS as resolveReadOutputEncoding,RS as resolveReadOutputRecoveryBudget,US as resolveReadOutputSurface,fS as resolveReadRowContract,Ok as resolveRecoveryCommandName,AE as resolveRegisteredSearchProvider,vE as resolveRegisteredVectorStoreAdapter,zd as resolveReproducibleProcessEnvironment,Fn as resolveRuntimeFieldRegistry,$n as resolveRuntimeStatusRegistry,wv as resolveSearchCorpusFields,A0 as resolveSearchMaxResults,M0 as resolveSearchPage,O0 as resolveSearchScoreThreshold,I0 as resolveSearchTuning,vv as resolveSemanticCorpusCharacterLimit,ju as resolveSemanticLineageIds,KA as resolveSettingsWithSemanticRuntimeDefaults,GI as resolveSourceContextWritePolicy,Wu as resolveStartTaskInProgressStatus,ee as resolveSubcommandFlagContractsForCommand,ST as resolveTelemetryErrorCategory,Uv as resolveTelemetrySourceAttribution,TM as resolveTerminalReason,pk as resolveTransactionSchema,rC as resolveTypeDefinition,tC as resolveTypeName,kA as resolveTypeSynonym,GA as resolveTypeWorkflows,Dl as resolveUnknownAuthorAcknowledgmentSelector,D0 as resolveVectorIndexRecovery,Rv as resolveVectorStores,Ic as resolveWorkspaceRelationshipKindRegistry,iC as resolveWorkspaceRoot,jh as restore,bC as restoreCheckpointItems,CA as restoreWorkspaceJsonFromHistory,bf as restoreWorkspaceSnapshot,yf as restoreWorkspaceSnapshotWithRecovery,lg as runAction,_E as runActiveBeforeMutationHooks,gE as runActiveCommandHandler,hE as runActiveOnIndexHooks,Dn as runActiveOnReadHooks,Ln as runActiveOnWriteHooks,yE as runActiveParserOverride,bE as runActivePreflightOverride,TE as runActiveServiceOverride,sm as runActivity,KC as runAfterCommandHooks,Xm as runAggregate,Ml as runAnnotationCommand,gu as runAppend,sM as runAssuranceAction,aM as runAssuranceDispatch,VC as runBeforeCommandHooks,im as runCalendar,vm as runClaim,Om as runClaimNext,bu as runClose,Tu as runCloseMany,Mm as runCloseTask,Ul as runComments,O_ as runCompletion,jl as runConfig,Bt as runContext,KM as runContextEvaluationCorpus,HM as runContextEvaluationScenario,Cu as runCopy,Gu as runCreate,Uu as runDelete,Kl as runDeps,lp as runDocs,cP as runDuplicates,df as runEval,lf as runEvent,gl as runExtension,Fs as runExtensionMigrateAction,$s as runExtensionMigrations,yp as runFiles,Tp as runFilesDiscover,bp as runFilesLookup,xf as runFleetAttributionAnalytics,Ku as runFocus,fu as runGc,Jm as runGet,Qp as runGraph,A_ as runGuide,eu as runHealth,w0 as runHistory,yM as runHistoryAttest,cM as runHistoryCompact,uM as runHistoryCompactBulk,qP as runHistoryMaintenance,mM as runHistoryRedact,HP as runHistoryRepair,KP as runHistoryRepairAll,Sl as runInit,Tl as runInitAgentGuidance,hu as runLearnings,dp as runLinkedArtifacts,Yf as runLinkedTests,Uc as runList,cf as runMeet,U0 as runMergeDriver,nl as runMergeInstall,LP as runMergeReceiptEvidenceReport,NP as runMergeReceiptReport,j0 as runMergeReconcile,wm as runNext,Dm as runNotes,Pm as runPauseTask,xm as runPlan,Hm as runProfileApply,zm as runProfileLint,Bm as runProfileList,qm as runProfileShow,Mf as runProvenanceCoverageAnalytics,tx as runRegisteredCommandForTest,sx as runRegisteredCommandOverrideForTest,mx as runRegisteredExporterForTest,ox as runRegisteredHookForTest,ux as runRegisteredImporterForTest,px as runRegisteredMigrationForTest,rx as runRegisteredMutationGuardForTest,nx as runRegisteredParserOverrideForTest,ix as runRegisteredPreflightOverrideForTest,ax as runRegisteredRendererOverrideForTest,cx as runRegisteredSearchProviderForTest,dx as runRegisteredServiceOverrideForTest,lx as runRegisteredVectorStoreAdapterForTest,er as runReindex,Rm as runRelease,pf as runRemind,vM as runReopen,Nm as runRestore,dl as runSchemaEvolutionMigration,Zm as runSearch,Vy as runSearchRefreshWorkerEntrypoint,R_ as runStartBackgroundRun,Im as runStartTask,Gf as runStats,jf as runTelemetry,Um as runTemplatesList,Gm as runTemplatesSave,jm as runTemplatesShow,Xf as runTest,Jf as runTestAll,I_ as runTestRunsList,M_ as runTestRunsLogs,x_ as runTestRunsResume,P_ as runTestRunsStatus,k_ as runTestRunsStop,N_ as runTestRunsWorker,Qu as runUpdate,Lm as runUpdateMany,Ut as runUpgrade,mu as runValidate,cg as runWithActiveExtensions,D as runWithAgentSessionContext,BA as runWithConfigurationOnlySettings,Sw as runWithContextIntentContracts,LO as runWithDiscoveredContextIntentContracts,ai as runWithHarnessDetectionSignals,PN as runWithMcpTraceContext,Vd as runWithReproducibleProcessEnvironment,di as runWithWorkspaceHarnessSignalDescriptors,zr as runWithWorkspaceRecipe,YI as runWorkflowPolicyAction,dM as runWorkspaceTransactionGc,Xp as saveGraphAuditBaseline,JP as scanClosureTimestamps,hP as scanExtensionHostVersions,Nl as scanHistoryAuthorAttribution,zn as scanItemFormatVersions,ps as scanMutationSecrets,bP as scanProvenanceResolverHealth,Es as scanStaleInProgressItems,eM as scanStorageIntegrity,rh as schema,ch as schemaAddField,ah as schemaAddStatus,ih as schemaAddType,mh as schemaApplyPreset,fh as schemaInferTypes,oh as schemaList,ph as schemaListFields,gh as schemaRemapStatus,lh as schemaRemoveField,dh as schemaRemoveStatus,sh as schemaRemoveType,hh as schemaRenameField,_h as schemaRenameType,nh as schemaShow,uh as schemaShowField,yh as schemaShowStatus,Mk as scoreCommandPathMatch,jM as scoreContextCandidates,BM as scoreContextCandidatesWithActiveExtensions,bs as scoreItemSimilarity,LD as scorePmGrammarRefusalClosure,wD as scorePmRefusalClosure,Ts as scorePreparedItemSimilarity,FD as scoreTrackerPreflightRecoveryClosure,Yw as sealHistoryRecord,Jx as sealMcpRequestState,F_ as search,p0 as searchWorkspaceMemory,u0 as searchWorkspaceMemoryReadResult,RO as selectActionableEntries,ew as selectCursorSemanticOptions,T_ as selectImportAuthor,AN as selectMcpClientRegistrationMode,l0 as selectWorkspaceMemory,c0 as selectWorkspaceMemoryRollups,Vu as semanticAttributionAffinity,tO as sentryCaptureCliError,Qv as sentryDiscardCommandSpan,eO as sentryFinishCommandSpan,oO as sentryFlush,rO as sentryLogCliUsageError,Jv as sentrySetCommandContext,Zv as sentryStartCommandSpan,Wn as serializeItemDocument,Dk as serializeNdjsonRows,$k as serializeNdjsonStream,Ly as serveDeclaredObservation,dE as setActiveCommandContext,cE as setActiveCommandResult,tE as setActiveExtensionCommands,eE as setActiveExtensionHooks,rE as setActiveExtensionParsers,oE as setActiveExtensionPreflight,sE as setActiveExtensionRegistrations,iE as setActiveExtensionRenderers,nE as setActiveExtensionServices,tS as setFocusedItem,pO as settingsSectionRevision,lO as shouldCompletePlanOnClose,Wp as shouldPersistDurableGraphCache,WT as shouldResolveMutationStdinTokenField,KT as shouldResolveMutationStdinTokens,YA as shouldRunSearchRefreshInForeground,pp as similarityAdvisoryWarnings,gS as sliceReadOutputRowCollection,os as snapshotPmCliErrorContext,ip as sortLinkedArtifacts,$T as splitAcceptanceCriteria,aO as splitCommaList,Kn as splitFrontMatter,VS as stabilizeReadOutputReceiptEstimates,I as stableStringify,ak as stableUpsertValue,wT as stableValueEquals,qh as startTask,_O as startTelemetryCommand,B_ as stats,FE as statusIsTerminal,Sd as stripGlobalBootstrapTokens,z0 as subscribeMutationEventBatches,H0 as subscribeMutationEvents,nP as summarizeAgentIdentityVocabulary,Af as summarizeAgentModelProvenance,vf as summarizeAgentProvenance,VM as summarizeContextEvaluationReports,zf as summarizeContextPreflight,NM as summarizeHistoryProvenance,Cl as summarizeInitResult,PP as summarizeMergeReceipt,AM as supportsCreateExplicitEmpty,gR as supportsItemIdAlias,NC as suppressHostOutput,Re as syncRelationshipGraphAdapter,Kk as synthesizeExtensionManifest,Cd as toCompletionFlagString,bm as toContextFocusItem,hm as toContextPackingSummary,gm as toContextRankingSummary,pC as toErrorMessage,i_ as toEstimatedMinutesValue,tk as toExtensionFlagDefinitions,l_ as toImportBoolean,f_ as toImportConfidence,c_ as toImportInteger,y_ as toImportLinkedDocs,g_ as toImportLinkedFiles,b_ as toImportLinkedTests,h_ as toImportLogEntries,__ as toImportNormalizedEnum,m_ as toImportNumberMap,s_ as toImportPriority,d_ as toImportStatus,p_ as toImportStringList,u_ as toImportStringMap,a_ as toImportTags,HE as toItemRecord,n_ as toNonEmptyImportString,lC as toNonEmptyStringOrUndefined,nA as toReplayDocument,Dw as toWellFormedText,gs as tokenizeSimilarityText,VT as transferMutationStdinTokenPolicy,zC as translateHostEnvironmentFault,xh as update,Bf as updateLinkedTest,ag as upgrade,wh as validate,EI as validateAssertionDefinition,wI as validateAssuranceDocument,SI as validateGateDefinition,lk as validateItemMutationRows,ap as validateLinkedPaths,vN as validateMcpAuthorizationResponseIssuer,wN as validateMcpAuthorizationServerMetadata,ON as validateMcpClientMetadataDocument,hN as validateMcpHttpRequestHeaders,tN as validateMcpJsonSchema,CI as validateMeasurementDefinition,AA as validateMissingParentReference,jS as validateReadOutputOptions,PA as validateSprintOrReleaseValue,nC as validateTypeOptions,KO as validateWorkspaceTransactionIdentity,gM as verifyAttestation,XR as verifyCliFlagInvocationParity,uR as verifyExplicitPositionalSlotCensus,aA as verifyHistoryChain,sA as verifyHistoryChainWithVersion,DO as verifyHistoryEntries,Xw as verifyHistoryRecordHash,Zw as verifyHistoryRewriteEvidence,hR as verifyPmCliGrammar,_R as verifyPmCommandPositionalContracts,HD as verifyPmFlagLexicon,_D as verifyPmRecoveryKindRuntimeCoverage,Mb as verifyPmRecoveryProducerRuntimeCoverage,fD as verifyPmRecoveryReferences,bD as verifyPmRefusalClosureIdentityRatchet,yD as verifyPmRefusalClosureRatchet,mD as verifyPmRefusalReachability,Qd as verifyToolOptionCliParity,RA as withCliMutationInput,Ms as withExpectedItemRevisions,Us as withFlagAliasMetadata,HC as withHostEnvironmentBoundary,IA as withLiteralMutationInput,eN as withMcpCachePolicy,$i as withoutGenericRefusalExamples,kT as workflowApprovalFingerprint,xT as workflowPolicyApplies,MT as workflowPolicyFingerprint,Hl as workspaceGraphCache,XO as workspaceTransactionPlanDigest,Pl as wrapOwnershipConflict,Yv as wrapThrownErrorForSentry,ui as writeAuthorEnvironment,Fe as writeFileAtomic,gC as writeMutationCheckpoint,VA as writeSettings,mO as writeSettingsSection,Gw as writeStderr,Fw as writeStdout,Fv as writeVectorizationStatusLedger,bA as writeWorkspaceJsonWithHistory};
35
35
  //# sourceMappingURL=sdk.js.map