@unbrained/pm-cli 2026.8.22 → 2026.8.24

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 (229) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/CHANGELOG.md +42 -1
  3. package/dist/cli/description-stdin.js +5 -4
  4. package/dist/cli/error-guidance.d.ts +13 -0
  5. package/dist/cli/error-guidance.js +62 -6
  6. package/dist/cli/extension-command-help.d.ts +5 -0
  7. package/dist/cli/extension-command-help.js +6 -2
  8. package/dist/cli/help-content.d.ts +5 -0
  9. package/dist/cli/help-content.js +56 -3
  10. package/dist/cli/help-json-payload.d.ts +5 -2
  11. package/dist/cli/help-json-payload.js +57 -17
  12. package/dist/cli/main.d.ts +3 -0
  13. package/dist/cli/main.js +39 -5
  14. package/dist/cli/register-annotations.js +5 -5
  15. package/dist/cli/register-mutation.js +77 -31
  16. package/dist/cli/register-operations.d.ts +73 -0
  17. package/dist/cli/register-operations.js +39 -14
  18. package/dist/cli/register-setup.js +3 -3
  19. package/dist/cli/schema-registration-helpers.d.ts +8 -1
  20. package/dist/cli/schema-registration-helpers.js +14 -5
  21. package/dist/cli-bundle/bundle-manifest.json +155 -155
  22. package/dist/cli-bundle/chunks/chunk-AGUL3HUT.js +3 -0
  23. package/dist/cli-bundle/chunks/{chunk-WG4STC36.js → chunk-DJNJBWAQ.js} +2 -2
  24. package/dist/cli-bundle/chunks/{chunk-MYYI3ZOA.js → chunk-I5Q7QSZX.js} +2 -2
  25. package/dist/cli-bundle/chunks/chunk-IW72J5FW.js +2 -0
  26. package/dist/cli-bundle/chunks/{chunk-BWX4SK46.js → chunk-L22NP5MA.js} +66 -66
  27. package/dist/cli-bundle/chunks/chunk-MKE6MD2K.js +36 -0
  28. package/dist/cli-bundle/chunks/{chunk-MZTZQTMS.js → chunk-NXBFO63A.js} +2 -2
  29. package/dist/cli-bundle/chunks/chunk-TEQDR5KI.js +202 -0
  30. package/dist/cli-bundle/chunks/chunk-X7WWQDYQ.js +2 -0
  31. package/dist/cli-bundle/chunks/chunk-YOLLRCLY.js +13 -0
  32. package/dist/cli-bundle/chunks/{chunk-U6GQ4VMV.js → chunk-ZAVCS2GH.js} +4 -4
  33. package/dist/cli-bundle/chunks/{register-list-query-HZKBQNWW.js → register-list-query-37A4P6O4.js} +2 -2
  34. package/dist/cli-bundle/chunks/register-mutation-TBJDHYIT.js +20 -0
  35. package/dist/cli-bundle/chunks/register-operations-WRZNEBUM.js +2 -0
  36. package/dist/cli-bundle/chunks/{register-setup-QK4OTOXN.js → register-setup-H4PDLACD.js} +2 -2
  37. package/dist/cli-bundle/focused-chunks/{chunk-GMYPD4FX.js → chunk-4WP7LNE3.js} +2 -2
  38. package/dist/cli-bundle/focused-chunks/chunk-6MUTDXMP.js +2 -0
  39. package/dist/cli-bundle/focused-chunks/chunk-6Z24ZMU3.js +2 -0
  40. package/dist/cli-bundle/focused-chunks/{chunk-2ARQGDDW.js → chunk-BFA6KKCI.js} +2 -2
  41. package/dist/cli-bundle/focused-chunks/chunk-CWCN5RLO.js +26 -0
  42. package/dist/cli-bundle/focused-chunks/chunk-FCTT4CZU.js +5 -0
  43. package/dist/cli-bundle/focused-chunks/chunk-GJR6YEMR.js +156 -0
  44. package/dist/cli-bundle/focused-chunks/{chunk-2POVTNLY.js → chunk-IMWTYKII.js} +2 -2
  45. package/dist/cli-bundle/focused-chunks/{chunk-D6RBZEJJ.js → chunk-IZNRRCU3.js} +2 -2
  46. package/dist/cli-bundle/focused-chunks/{chunk-PMGJUFNQ.js → chunk-MNPECIRL.js} +2 -2
  47. package/dist/cli-bundle/focused-chunks/{chunk-A2BC5PQL.js → chunk-O4ZXNJMT.js} +2 -2
  48. package/dist/cli-bundle/focused-chunks/chunk-Q63PSLO4.js +2 -0
  49. package/dist/cli-bundle/focused-chunks/chunk-QBP5FSBX.js +4 -0
  50. package/dist/cli-bundle/focused-chunks/{chunk-R6SR45XU.js → chunk-QV5UP27O.js} +48 -47
  51. package/dist/cli-bundle/focused-chunks/chunk-RASVBJX5.js +8 -0
  52. package/dist/cli-bundle/focused-chunks/{chunk-E2EWYPY6.js → chunk-RPRLENVA.js} +2 -2
  53. package/dist/cli-bundle/focused-chunks/chunk-TOFVXBWA.js +19 -0
  54. package/dist/cli-bundle/focused-chunks/{chunk-6S2MO3Q3.js → chunk-WZLSSGEU.js} +2 -2
  55. package/dist/cli-bundle/main.js +18 -17
  56. package/dist/cli-bundle/sdk-authoring.js +1 -1
  57. package/dist/cli-bundle/sdk-contracts.js +2 -2
  58. package/dist/cli-bundle/sdk-core.js +41 -41
  59. package/dist/cli-bundle/sdk-governance.js +1 -1
  60. package/dist/cli-bundle/sdk-graph.js +1 -1
  61. package/dist/cli-bundle/sdk-merge.js +33 -32
  62. package/dist/cli-bundle/sdk-query.js +1 -1
  63. package/dist/cli-bundle/sdk-runtime.js +1 -1
  64. package/dist/cli-bundle/sdk-testing.js +1 -1
  65. package/dist/cli-bundle/sdk.js +6 -5
  66. package/dist/core/config/nested-settings.js +8 -2
  67. package/dist/core/config/positional-value.d.ts +1 -1
  68. package/dist/core/config/positional-value.js +5 -2
  69. package/dist/core/extensions/command-metadata-contract.d.ts +10 -0
  70. package/dist/core/extensions/command-metadata-contract.js +23 -0
  71. package/dist/core/extensions/command-visibility-tier.js +12 -2
  72. package/dist/core/extensions/extension-types.d.ts +6 -0
  73. package/dist/core/extensions/extension-types.js +2 -2
  74. package/dist/core/extensions/loader.js +4 -3
  75. package/dist/core/history/history.js +3 -3
  76. package/dist/core/io/body-file.js +7 -2
  77. package/dist/core/io/bulk-ids-input.d.ts +24 -0
  78. package/dist/core/io/bulk-ids-input.js +113 -0
  79. package/dist/core/item/item-format.js +66 -12
  80. package/dist/core/item/parse.d.ts +22 -2
  81. package/dist/core/item/parse.js +97 -4
  82. package/dist/core/reproducibility/context.d.ts +4 -0
  83. package/dist/core/reproducibility/context.js +14 -8
  84. package/dist/core/shared/author.d.ts +55 -1
  85. package/dist/core/shared/author.js +333 -16
  86. package/dist/core/shared/constants.js +3 -2
  87. package/dist/core/store/settings-validator.d.ts +1 -0
  88. package/dist/core/store/settings-validator.js +6 -3
  89. package/dist/core/store/settings.js +5 -2
  90. package/dist/mcp/server.d.ts +4 -3
  91. package/dist/mcp/server.js +44 -16
  92. package/dist/sdk/agent/identity-config.d.ts +63 -0
  93. package/dist/sdk/agent/identity-config.js +107 -0
  94. package/dist/sdk/agent/refusal-closure-census.d.ts +66 -0
  95. package/dist/sdk/agent/refusal-closure-census.js +144 -0
  96. package/dist/sdk/agent/refusal-corpus-contracts.d.ts +76 -0
  97. package/dist/sdk/agent/refusal-corpus-contracts.js +194 -0
  98. package/dist/sdk/agent-capability-contracts.d.ts +34 -1
  99. package/dist/sdk/agent-capability-contracts.js +104 -6
  100. package/dist/sdk/annotations.d.ts +2 -0
  101. package/dist/sdk/annotations.js +25 -7
  102. package/dist/sdk/cli-contracts/agent-output-contracts.js +6 -4
  103. package/dist/sdk/cli-contracts/enum-contracts.d.ts +4 -0
  104. package/dist/sdk/cli-contracts/enum-contracts.js +9 -2
  105. package/dist/sdk/cli-contracts/flag-contracts.js +9 -2
  106. package/dist/sdk/cli-contracts/flag-lexicon-contracts.js +4 -4
  107. package/dist/sdk/cli-contracts/registration-helpers.js +5 -2
  108. package/dist/sdk/cli-contracts/tool-parameter-tables.js +58 -2
  109. package/dist/sdk/cli-contracts/tool-schema.d.ts +1 -1
  110. package/dist/sdk/cli-contracts/tool-schema.js +14 -3
  111. package/dist/sdk/cli-contracts/typed-action-inputs.d.ts +4 -1
  112. package/dist/sdk/cli-contracts/typed-action-inputs.js +2 -2
  113. package/dist/sdk/cli-contracts.d.ts +3 -3
  114. package/dist/sdk/cli-contracts.js +4 -4
  115. package/dist/sdk/comments.js +15 -7
  116. package/dist/sdk/config.d.ts +6 -1
  117. package/dist/sdk/config.js +119 -14
  118. package/dist/sdk/context-intent-contracts.js +4 -2
  119. package/dist/sdk/core-governance.d.ts +1 -1
  120. package/dist/sdk/core-governance.js +3 -3
  121. package/dist/sdk/extension/scaffold.js +11 -5
  122. package/dist/sdk/flag-invocation-contracts.d.ts +2 -0
  123. package/dist/sdk/flag-invocation-contracts.js +30 -3
  124. package/dist/sdk/generated/generated-error-code-catalog-part-1.js +83 -2
  125. package/dist/sdk/generated/generated-error-code-catalog-part-2.js +87 -2
  126. package/dist/sdk/governance/assurance-action.js +30 -10
  127. package/dist/sdk/governance/validate.d.ts +2 -2
  128. package/dist/sdk/governance/validate.js +39 -14
  129. package/dist/sdk/guide-topics.d.ts +0 -5
  130. package/dist/sdk/guide-topics.js +28 -2
  131. package/dist/sdk/history-compact.d.ts +2 -1
  132. package/dist/sdk/history-compact.js +24 -5
  133. package/dist/sdk/history-mcp.js +11 -10
  134. package/dist/sdk/index.d.ts +8 -2
  135. package/dist/sdk/index.js +9 -3
  136. package/dist/sdk/item-transaction.js +19 -12
  137. package/dist/sdk/lifecycle/append.js +4 -4
  138. package/dist/sdk/lifecycle/close-many.js +16 -7
  139. package/dist/sdk/lifecycle/create.js +33 -22
  140. package/dist/sdk/lifecycle/plan.js +24 -6
  141. package/dist/sdk/lifecycle/update-many.js +15 -8
  142. package/dist/sdk/lifecycle/update.d.ts +2 -0
  143. package/dist/sdk/lifecycle/update.js +37 -25
  144. package/dist/sdk/merge/three-way.js +105 -26
  145. package/dist/sdk/read-output-budget.d.ts +21 -0
  146. package/dist/sdk/read-output-budget.js +39 -2
  147. package/dist/sdk/read-output-contracts.d.ts +5 -3
  148. package/dist/sdk/read-output-contracts.js +20 -12
  149. package/dist/sdk/reproducibility/process.d.ts +19 -0
  150. package/dist/sdk/reproducibility/process.js +88 -0
  151. package/dist/sdk/runtime-extended-actions.js +5 -3
  152. package/dist/sdk/runtime-input.d.ts +4 -0
  153. package/dist/sdk/runtime-input.js +98 -23
  154. package/dist/sdk/runtime-primitives.d.ts +3 -2
  155. package/dist/sdk/runtime-primitives.js +5 -4
  156. package/dist/sdk/runtime.js +11 -23
  157. package/dist/sdk/scheduling-shortcuts.js +5 -3
  158. package/dist/sdk/structured-mutations.js +10 -3
  159. package/dist/sdk/test/batch.d.ts +6 -0
  160. package/dist/sdk/test/batch.js +15 -3
  161. package/dist/sdk/test/entry.d.ts +1 -1
  162. package/dist/sdk/test/entry.js +3 -2
  163. package/dist/sdk/test/execution.d.ts +28 -3
  164. package/dist/sdk/test/execution.js +193 -34
  165. package/dist/sdk/test/parsers.d.ts +6 -0
  166. package/dist/sdk/test/parsers.js +21 -2
  167. package/dist/sdk/test/trust.d.ts +33 -0
  168. package/dist/sdk/test/trust.js +207 -0
  169. package/dist/sdk/workspace-contracts.d.ts +3 -0
  170. package/dist/sdk/workspace-contracts.js +3 -2
  171. package/dist/types.d.ts +23 -0
  172. package/dist/types.js +2 -2
  173. package/docs/AGENT_PROVENANCE_ADR.md +41 -5
  174. package/docs/CONFIGURATION.md +4 -0
  175. package/docs/DIAGNOSTIC_OUTPUT_CONTRACTS.md +19 -2
  176. package/docs/MERGE_SAFETY.md +15 -1
  177. package/docs/README.md +2 -0
  178. package/docs/READ_OUTPUT_CONTRACTS.md +11 -1
  179. package/docs/RELEASING.md +40 -21
  180. package/docs/REPRODUCIBLE_WORKSPACES.md +42 -8
  181. package/docs/SCRIPTING.md +62 -3
  182. package/docs/SDK.md +17 -0
  183. package/docs/SDK_AGENT_SESSION_CONTEXT.md +6 -4
  184. package/docs/SDK_EVIDENCE_TRACEABILITY.md +1 -1
  185. package/docs/TESTING.md +75 -8
  186. package/docs/agent-task-token-baseline.json +2 -2
  187. package/docs/generated/AGENT_CAPABILITY_ROUTING.md +17 -0
  188. package/docs/generated/AGENT_COMMAND_SURFACE.md +1 -1
  189. package/docs/generated/FLAG_LEXICON_BUDGETS.md +2 -2
  190. package/docs/generated/REFUSAL_CLOSURE_CENSUS.md +355 -0
  191. package/marketplace.json +2 -2
  192. package/package.json +2 -2
  193. package/packages/pm-beads/package.json +1 -1
  194. package/packages/pm-calendar/package.json +1 -1
  195. package/packages/pm-command-kit/README.md +9 -11
  196. package/packages/pm-command-kit/extensions/command-kit/index.ts +3 -1
  197. package/packages/pm-command-kit/package.json +1 -1
  198. package/packages/pm-digital-twin/package.json +1 -1
  199. package/packages/pm-governance-audit/package.json +1 -1
  200. package/packages/pm-guide-shell/extensions/guide-shell/index.ts +10 -0
  201. package/packages/pm-guide-shell/package.json +1 -1
  202. package/packages/pm-kanban/package.json +1 -1
  203. package/packages/pm-lifecycle-hooks/package.json +1 -1
  204. package/packages/pm-linked-test-adapters/package.json +1 -1
  205. package/packages/pm-search-advanced/package.json +1 -1
  206. package/packages/pm-templates/package.json +1 -1
  207. package/packages/pm-todos/package.json +1 -1
  208. package/packages/pm-vcs/package.json +1 -1
  209. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
  210. package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
  211. package/scripts/generate-agent-capability-surfaces.mjs +27 -1
  212. package/sdk/public-surface.json +642 -28
  213. package/dist/cli-bundle/chunks/chunk-EMWDM5FI.js +0 -13
  214. package/dist/cli-bundle/chunks/chunk-HYG6LRL4.js +0 -200
  215. package/dist/cli-bundle/chunks/chunk-QI2CT3IX.js +0 -2
  216. package/dist/cli-bundle/chunks/chunk-SMWXHMVB.js +0 -35
  217. package/dist/cli-bundle/chunks/chunk-VMMIL3SI.js +0 -2
  218. package/dist/cli-bundle/chunks/chunk-YBPJAOQQ.js +0 -3
  219. package/dist/cli-bundle/chunks/register-mutation-HTKEEGRD.js +0 -20
  220. package/dist/cli-bundle/chunks/register-operations-6EMRWJJY.js +0 -2
  221. package/dist/cli-bundle/focused-chunks/chunk-2AZT5WXZ.js +0 -2
  222. package/dist/cli-bundle/focused-chunks/chunk-3LKU6PTJ.js +0 -4
  223. package/dist/cli-bundle/focused-chunks/chunk-5SHSBMX2.js +0 -2
  224. package/dist/cli-bundle/focused-chunks/chunk-C4S4A4JJ.js +0 -5
  225. package/dist/cli-bundle/focused-chunks/chunk-L5LDSRO2.js +0 -155
  226. package/dist/cli-bundle/focused-chunks/chunk-MB37AYN6.js +0 -26
  227. package/dist/cli-bundle/focused-chunks/chunk-MCOR37QK.js +0 -2
  228. package/dist/cli-bundle/focused-chunks/chunk-PH2OXXVZ.js +0 -18
  229. package/dist/cli-bundle/focused-chunks/chunk-WZE4LIPW.js +0 -8
@@ -1,2 +1,2 @@
1
- import{a as Pe,b as Se,c as Oe,d as Ae,e as Fe,f as Re,g as Te,h as Me,i as $,j as D,k as L,l as j,m as K,p as H,q,w as U,x as V,y as z,z as W}from"./focused-chunks/chunk-MB37AYN6.js";import{a as T,b as M,c as B,d as N,u as J}from"./focused-chunks/chunk-D6RBZEJJ.js";import"./focused-chunks/chunk-2AZT5WXZ.js";import"./focused-chunks/chunk-2POVTNLY.js";import"./focused-chunks/chunk-2ARQGDDW.js";import{Xa as G,Za as Y,_a as X,b as y,c as x,f as m,g,k,l as E,m as b,n as C,o as w,sa as F,ta as R}from"./focused-chunks/chunk-3LKU6PTJ.js";import{b as Ce,c as we,d as Ie}from"./focused-chunks/chunk-C4S4A4JJ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="bbc8dcd1-7dde-54f5-bebf-6d95ea0aaa1e")}catch{}})();function Ke(e){return e}function He(e){return e}function Q(e,o){for(let r of o.commands??[])e.registerCommand(r);for(let[r,n]of Object.entries(o.commandOverrides??{}))e.registerCommand(r,n);for(let[r,n]of Object.entries(o.flags??{}))e.registerFlags(r,n);for(let[r,n]of Object.entries(o.parsers??{}))e.registerParser(r,n);for(let[r,n]of Object.entries(o.renderers??{}))if(typeof n=="function")e.registerRenderer(r,n);else{let{run:t,...s}=n;e.registerRenderer(r,t,s)}for(let[r,n]of Object.entries(o.services??{}))e.registerService(r,n)}function Z(e,o){for(let s of o.preflights??[])e.registerPreflight(s);let r=o.itemTypes??[];r.length>0&&e.registerItemTypes(r);let n=o.itemFields??[];n.length>0&&e.registerItemFields(n);let t=o.relationshipKinds??[];t.length>0&&e.registerRelationshipKinds(t);for(let s of o.migrations??[])e.registerMigration(s);for(let s of o.profiles??[])e.registerProfile(s)}function ee(e,o){for(let r of o.searchProviders??[])e.registerSearchProvider(r);for(let r of o.vectorStoreAdapters??[])e.registerVectorStoreAdapter(r);for(let r of o.assuranceProviders??[])e.registerAssuranceMeasurementProvider(r);for(let r of o.importers??[])e.registerImporter(r.name,r.importer,r.options);for(let r of o.exporters??[])e.registerExporter(r.name,r.exporter,r.options)}function re(e,o){for(let r of o.beforeCommand??[])e.hooks.beforeCommand(r);for(let r of o.beforeMutation??[])e.hooks.beforeMutation(r);for(let r of o.afterCommand??[])e.hooks.afterCommand(r);for(let r of o.onWrite??[])e.hooks.onWrite(r);for(let r of o.onRead??[])e.hooks.onRead(r);for(let r of o.onIndex??[])e.hooks.onIndex(r)}function oe(e){let r={activate:async n=>{Q(n,e),Z(n,e),ee(n,e),re(n,e.hooks??{}),await e.activate?.(n)}};return e.manifest&&(r.manifest=e.manifest),e.deactivate&&(r.deactivate=e.deactivate),r}function f(e){let o=e.flatMap(r=>r??[]);return o.length>0?o:void 0}function l(e){let o=Object.assign({},...e.map(r=>r??{}));return Object.keys(o).length>0?o:void 0}function ne(e){let o={};for(let r of e)for(let[n,t]of Object.entries(r??{}))o[n]=[...o[n]??[],...t];return Object.keys(o).length>0?o:void 0}var te=["beforeCommand","beforeMutation","afterCommand","onWrite","onRead","onIndex"];function ie(e,o,r){let n=o.map(s=>s?.[r]),t=f(n);if(t!==void 0){let s=e;s[r]=t}}function se(e){let o={};for(let r of te)ie(o,e,r);return Object.keys(o).length>0?o:void 0}function qe(...e){let o={},r=(i,c)=>{c!==void 0&&(o[i]=c)};r("commands",f(e.map(i=>i.commands))),r("commandOverrides",l(e.map(i=>i.commandOverrides))),r("flags",ne(e.map(i=>i.flags))),r("parsers",l(e.map(i=>i.parsers))),r("renderers",l(e.map(i=>i.renderers))),r("services",l(e.map(i=>i.services))),r("preflights",f(e.map(i=>i.preflights))),r("itemTypes",f(e.map(i=>i.itemTypes))),r("itemFields",f(e.map(i=>i.itemFields))),r("relationshipKinds",f(e.map(i=>i.relationshipKinds))),r("migrations",f(e.map(i=>i.migrations))),r("profiles",f(e.map(i=>i.profiles))),r("searchProviders",f(e.map(i=>i.searchProviders))),r("vectorStoreAdapters",f(e.map(i=>i.vectorStoreAdapters))),r("assuranceProviders",f(e.map(i=>i.assuranceProviders))),r("importers",f(e.map(i=>i.importers))),r("exporters",f(e.map(i=>i.exporters))),r("hooks",se(e.map(i=>i.hooks)));let n;for(let i of e)i.manifest&&(n=i.manifest);r("manifest",n);let t=e.some(i=>i.activate);r("activate",t?async i=>{for(let c of e)c.activate&&await c.activate(i)}:void 0);let s=e.some(i=>i.deactivate);return r("deactivate",s?async()=>{let i=[];for(let c of[...e].reverse())if(c.deactivate)try{await c.deactivate()}catch(a){i.push(a)}if(i.length>0)throw i.length>1?new AggregateError(i,"Multiple extension blueprint deactivate hooks failed."):i[0]}:void 0),o}var ae=[["commands","commands"],["commandOverrides","commands"],["flags","schema"],["itemTypes","schema"],["itemFields","schema"],["relationshipKinds","schema"],["migrations","schema"],["profiles","schema"],["parsers","parser"],["renderers","renderers"],["services","services"],["preflights","preflight"],["searchProviders","search"],["vectorStoreAdapters","search"],["assuranceProviders","services"],["importers","importers"],["exporters","importers"]];function u(e){return e?Array.isArray(e)?e.length>0:Object.keys(e).length>0:!1}function h(e){let o=new Set;for(let[t,s]of ae)u(e[t])&&o.add(s);(e.commands??[]).filter(p).some(t=>t.flags!==void 0)&&o.add("schema");let r=[...e.importers??[],...e.exporters??[]].filter(p);r.some(t=>t?.options?.flags!==void 0)&&o.add("schema"),r.some(t=>typeof t=="object")&&o.add("commands");let n=e.hooks??{};return[n.beforeCommand,n.beforeMutation,n.afterCommand,n.onWrite,n.onRead,n.onIndex].some(u)&&o.add("hooks"),[...o].sort((t,s)=>t.localeCompare(s))}var ce=[["beforeCommand","before_command"],["beforeMutation","before_mutation"],["afterCommand","after_command"],["onWrite","on_write"],["onRead","on_read"],["onIndex","on_index"]];function d(e){return[...new Set(e)].sort((o,r)=>o.localeCompare(r))}function p(e){return e!=null}function _(e){return m(`${e.name} import`)}function v(e){return m(`${e.name} export`)}function de(e,o,r){return[...e.map(n=>m(n.name)),...o.filter(n=>n.options!==void 0).map(_),...r.filter(n=>n.options!==void 0).map(v)]}function me(e,o,r,n){return[...Object.keys(e.flags??{}).map(t=>m(t)),...o.filter(t=>t.flags!==void 0).map(t=>m(t.name)),...r.filter(t=>t.options?.flags!==void 0).map(_),...n.filter(t=>t.options?.flags!==void 0).map(v)]}function fe(e){return ce.filter(([o])=>(e[o]?.length??0)>0).map(([,o])=>o)}function pe(e){let o=Object.entries(e??{}).filter(([,r])=>typeof r!="function"&&((r.commands?.length??0)>0||r.resultDiscriminator!==void 0)).map(([r,n])=>{let t=n;return{format:r,commands:d((t.commands??[]).map(s=>m(s))),result_discriminator:t.resultDiscriminator!==void 0}}).sort((r,n)=>r.format.localeCompare(n.format));return o.length>0?{renderer_ownership:o}:{}}function le(e){return!e||e.length===0?{}:{assurance_providers:d(e.map(o=>o.id))}}function ue(e,o,r){return{item_types:d((e.itemTypes??[]).map(n=>n.name)),item_fields:d((e.itemFields??[]).map(n=>n.name)),...(e.relationshipKinds?.length??0)>0?{relationship_kinds:d(e.relationshipKinds.map(n=>n.kind))}:{},migrations:d((e.migrations??[]).flatMap(n=>typeof n.id=="string"?[n.id]:[])),profiles:d((e.profiles??[]).map(n=>n.name)),importers:d(o.map(n=>m(n.name))),exporters:d(r.map(n=>m(n.name))),search_providers:d((e.searchProviders??[]).map(n=>n.name)),vector_store_adapters:d((e.vectorStoreAdapters??[]).map(n=>n.name)),...le(e.assuranceProviders),parser_overrides:d(Object.keys(e.parsers??{}).map(n=>m(n))),service_overrides:d(Object.keys(e.services??{}).map(n=>String(n).trim().toLowerCase())),renderer_overrides:d(Object.keys(e.renderers??{}).map(n=>String(n).trim().toLowerCase())),...pe(e.renderers),preflight_overrides:(e.preflights??[]).length,preflight_ownership:(e.preflights??[]).map(n=>({commands:[...n.commands??[]]}))}}function Ue(e){let o=(e.commands??[]).filter(p),r=(e.importers??[]).filter(p),n=(e.exporters??[]).filter(p),t=r.map(_),s=n.map(v),i=de(o,r,n),c=me(e,o,r,n),a=e.hooks??{},O=ue(e,r,n);return{capabilities:h(e),commands:d(i),command_overrides:d(Object.keys(e.commandOverrides??{}).map(A=>m(A))),command_handlers:d([...i,...t,...s]),hooks:fe(a),flag_commands:d(c),...O}}var ge=["commands","commandOverrides","flags","parsers","renderers","services","preflights","itemTypes","itemFields","relationshipKinds","migrations","profiles","searchProviders","vectorStoreAdapters","assuranceProviders","importers","exporters"];function he(e){return(e.itemFields??[]).filter(o=>typeof o?.name=="string"&&g.has(o.name.trim())).map(o=>({code:"reserved_item_field",severity:"error",message:`Item field "${o.name}" collides with reserved item metadata; rename it with an extension-specific prefix before publishing.`,field:o.name}))}function _e(e){return[...Object.values(e.flags??{}).flat(),...(e.commands??[]).flatMap(r=>r.flags??[]),...(e.importers??[]).flatMap(r=>r.options?.flags??[]),...(e.exporters??[]).flatMap(r=>r.options?.flags??[])].flatMap(r=>{if(typeof r?.long!="string"&&typeof r?.short!="string")return[];let n=k(r.long,r.short);if(n===null)return[];let{token:t,failure:s}=n;return[{code:s,severity:"error",message:`Flag "${t}" ${E(t,s)}.`,field:t}]})}function P(e){let o=new Set;for(let r of e){let n=x(r)??y(r);n!==null&&o.add(n)}return[...o].sort((r,n)=>r.localeCompare(n))}function ve(e,o){let r=[];if(o===null)return e.length>0&&r.push({code:"manifest_capabilities_absent",severity:"warning",message:`Blueprint exercises ${e.length===1?"capability":"capabilities"} [${e.join(", ")}] but declares none; set capabilities to deriveExtensionCapabilities(blueprint) so the manifest grant matches.`}),r;let n=new Set(o),t=new Set(e);for(let s of e)n.has(s)||r.push({code:"capability_undeclared",severity:"error",message:`Blueprint exercises capability "${s}" but it is absent from the declared capabilities; activation throws extension_capability_missing \u2014 add "${s}" to the manifest capabilities.`,capability:s});for(let s of o)t.has(s)||r.push({code:"capability_unused",severity:"warning",message:`Capability "${s}" is declared but no blueprint surface exercises it; drop it to keep the manifest least-privilege (pm package doctor reports this as extension_capability_unused).`,capability:s});return r}function ye(e){let o=[],r=new Map;for(let t of e.commands??[]){let s=m(t.name);r.set(s,(r.get(s)??0)+1)}for(let[t,s]of r)s>1&&o.push({code:"duplicate_command",severity:"warning",message:`Command "${t}" is declared ${s} times in commands; the later registration shadows the earlier one at dispatch.`,command:t});let n=new Set(Object.keys(e.commandOverrides??{}).map(t=>m(t)));for(let t of r.keys())n.has(t)&&o.push({code:"command_override_conflict",severity:"warning",message:`Command "${t}" is declared both as a new command definition and as a command override; register one or the other.`,command:t});return o}function xe(e){let o=[];for(let r of ge)r in e&&!u(e[r])&&o.push({code:"empty_surface",severity:"warning",message:`Blueprint field "${r}" is present but empty; remove it or populate it.`,field:r});if("hooks"in e){let r=e.hooks??{};[r.beforeCommand,r.beforeMutation,r.afterCommand,r.onWrite,r.onRead,r.onIndex].some(u)||o.push({code:"empty_surface",severity:"warning",message:'Blueprint field "hooks" is present but registers no lifecycle hooks; remove it or populate it.',field:"hooks"})}return o}function ke(e,o={}){let r=h(e),n=o.declaredCapabilities??e.manifest?.capabilities,t=Array.isArray(n)?P(n):null,s=[...ve(r,t),...ye(e),..._e(e),...he(e),...xe(e)];return{ok:s.every(i=>i.severity!=="error"),findings:s,used:r,declared:t}}function S(e,o){let{additionalCapabilities:r,...n}=o,t=Array.isArray(r)?P(r):[],s=[...new Set([...h(e),...t])].sort((i,c)=>i.localeCompare(c));return{...n,capabilities:s}}function Ve(e,o){let r=S(e,o);return{module:oe({...e,manifest:r}),manifest:r}}function I(e,o){if(e.status==="absent"||e.status==="ok")return null;let r=`${e.kind}_${e.status}`,n="";switch(r){case"pm_min_version_invalid":n=`pm_min_version "${e.required}" is not a valid version; the extension is treated as incompatible and the loader skips it.`;break;case"pm_min_version_unchecked":n=`pm_min_version "${e.required}" could not be compared against pm ${o}; compatibility is unverified.`;break;case"pm_min_version_unmet":n=`Requires pm >= ${e.required} but the target is pm ${o}; the loader skips the extension.`;break;case"pm_max_version_invalid":n=`pm_max_version "${e.required}" is not a valid inclusive upper bound (version ranges are not allowed); the extension is treated as incompatible and the loader skips it.`;break;case"pm_max_version_unchecked":n=`pm_max_version "${e.required}" could not be compared against pm ${o}; compatibility is unverified.`;break;case"pm_max_version_exceeded":n=`Allows pm <= ${e.required} but the target is pm ${o}; the loader skips the extension.`;break;case"pm_max_version_exceeded_warn":n=`Target pm ${o} is newer than pm_max_version ${e.required}, but the "warn" exceeded mode lets it load with a warning.`;break}return{code:r,severity:e.allowed?"warning":"error",constraint:e.kind,required:e.required,current:o,message:n}}function Ee(e,o){let r=b(e.pm_min_version,o.pmVersion),n=C(e.pm_max_version,o.pmVersion,o.pmMaxVersionExceededMode??"block"),t=[],s=w(e);for(let a of s.unknownKeys)t.push({code:"manifest_unknown_key",severity:"warning",constraint:"manifest",required:a,current:o.pmVersion,path:a,...a==="compatibility"?{suggested_key:"pm_min_version"}:{},message:a==="compatibility"?'Manifest key "compatibility" is ignored; declare the canonical pm_min_version and optional pm_max_version fields instead.':`Manifest key "${a}" is not part of the extension manifest contract and will be ignored.`});s.missingVersionBounds&&t.push({code:"no_version_bounds_declared",severity:"warning",constraint:"manifest",required:"pm_min_version",current:o.pmVersion,path:"$",suggested_key:"pm_min_version",message:"No canonical pm version bounds are declared; add pm_min_version so compatibility intent is explicit."});let i=I(r,o.pmVersion);i!==null&&t.push(i);let c=I(n,o.pmVersion);return c!==null&&t.push(c),{compatible:r.allowed&&n.allowed,findings:t,pmVersion:o.pmVersion}}var be=new Set(["capability_undeclared","capability_unused","manifest_capabilities_absent"]);function ze(e,o={}){let r=ke(e,{declaredCapabilities:o.declaredCapabilities}),n=o.identity?S(e,o.identity):null,t=o.target?Ee(n??e.manifest??{},o.target):null,c=[...(n!==null&&o.declaredCapabilities===void 0?r.findings.filter(a=>!be.has(a.code)):r.findings).map(a=>({source:"blueprint",severity:a.severity,code:a.code,message:a.message})),...(t?.findings??[]).map(a=>({source:"compatibility",severity:a.severity,code:a.code,message:a.message}))];return{ok:c.every(a=>a.severity!=="error"),capabilities:r.used,blueprint:r,manifest:n,compatibility:t,findings:c}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="7fc669d4-1db2-5636-8304-2c111a684726")}catch{}})();function Ge(e){return e}function Ye(e){return e}function Xe(e){return e}function Je(e){return e}function Qe(e){return e}function Ze(e){return e}function er(e){return e}function rr(e){return e}function or(e){return e}function nr(e){return e}function tr(e){return e}function ir(e){return e}function sr(e){return e}function ar(e){return{handled:!0,result:e}}function cr(){return{handled:!1}}function dr(e){return e}function mr(e){return e}function fr(e){return e}function pr(e){return e}function lr(e){return e}function ur(e){return e}function gr(e){return e}function hr(e){return e}function _r(e){return e}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="bca95ba2-258c-5be2-8428-dcb8dbc87ef0")}catch{}})();export{D as BUILTIN_PROFILES,Pe as EXTENSION_CAPABILITIES,Ie as EXTENSION_CAPABILITY_CONTRACT,Ce as EXTENSION_CAPABILITY_CONTRACT_VERSION,we as EXTENSION_CAPABILITY_LEGACY_ALIASES,G as EXTENSION_CAPABILITY_REGISTRATION_SURFACES,Se as EXTENSION_POLICY_MODES,Oe as EXTENSION_POLICY_SURFACES,Fe as EXTENSION_SANDBOX_PROFILES,Ae as EXTENSION_TRUST_MODES,Te as LIST_FILTER_EXTENSION_FLAG_DEFINITIONS,M as PM_PACKAGE_CONVENTIONAL_RESOURCE_ROOTS,T as PM_PACKAGE_RESOURCE_KINDS,V as PROFILE_LINT_CODES,U as PROFILE_LINT_DIMENSIONS,$ as PROFILE_NAMES,g as RESERVED_ITEM_FIELD_NAMES,Me as SEARCH_EXTENSION_FLAG_DEFINITIONS,Ee as checkExtensionManifestCompatibility,N as collectPackageExtensionDirectories,Y as collectUsedExtensionCapabilities,oe as composeExtension,Ve as composeExtensionPackage,R as createExtensionContributionInventory,cr as declineServiceOverride,ur as defineAfterCommandHook,pr as defineBeforeCommandHook,lr as defineBeforeMutationHook,Xe as defineCommand,nr as defineCommandOverride,fr as defineExporter,Ke as defineExtension,He as defineExtensionBlueprint,Ge as defineExtensionManifest,Je as defineFlag,mr as defineImporter,Ze as defineItemField,Qe as defineItemType,er as defineMigration,_r as defineOnIndexHook,hr as defineOnReadHook,gr as defineOnWriteHook,tr as defineParserOverride,ir as definePreflightOverride,Ye as defineProjectProfile,dr as defineRendererOverride,rr as defineSearchProvider,sr as defineServiceOverride,or as defineVectorStoreAdapter,h as deriveExtensionCapabilities,Ue as describeExtensionBlueprint,H as describeProfileComposition,q as describeProjectProfile,ar as handleServiceOverride,ke as lintExtensionBlueprint,z as lintProjectProfile,K as listProfiles,qe as mergeExtensionBlueprints,F as normalizeExtensionContributionInventory,L as normalizeProfileName,W as planProfileApplication,ze as preflightExtension,B as readPmPackageManifest,X as reconcileExtensionCapabilityUsage,J as renderExtensionSurfaceMarkdown,j as resolveProfile,S as synthesizeExtensionManifest,Re as toExtensionFlagDefinitions};
1
+ import{a as Pe,b as Se,c as Oe,d as Ae,e as Fe,f as Re,g as Te,h as Me,i as $,j as D,k as L,l as j,m as K,p as H,q,w as U,x as V,y as z,z as W}from"./focused-chunks/chunk-CWCN5RLO.js";import{a as T,b as M,c as B,d as N,u as J}from"./focused-chunks/chunk-IZNRRCU3.js";import"./focused-chunks/chunk-6Z24ZMU3.js";import"./focused-chunks/chunk-IMWTYKII.js";import"./focused-chunks/chunk-BFA6KKCI.js";import{Xa as G,Za as Y,_a as X,b as y,c as x,f as m,g,k,l as E,m as b,n as C,o as w,sa as F,ta as R}from"./focused-chunks/chunk-QBP5FSBX.js";import{b as Ce,c as we,d as Ie}from"./focused-chunks/chunk-FCTT4CZU.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="bbc8dcd1-7dde-54f5-bebf-6d95ea0aaa1e")}catch{}})();function Ke(e){return e}function He(e){return e}function Q(e,o){for(let r of o.commands??[])e.registerCommand(r);for(let[r,n]of Object.entries(o.commandOverrides??{}))e.registerCommand(r,n);for(let[r,n]of Object.entries(o.flags??{}))e.registerFlags(r,n);for(let[r,n]of Object.entries(o.parsers??{}))e.registerParser(r,n);for(let[r,n]of Object.entries(o.renderers??{}))if(typeof n=="function")e.registerRenderer(r,n);else{let{run:t,...s}=n;e.registerRenderer(r,t,s)}for(let[r,n]of Object.entries(o.services??{}))e.registerService(r,n)}function Z(e,o){for(let s of o.preflights??[])e.registerPreflight(s);let r=o.itemTypes??[];r.length>0&&e.registerItemTypes(r);let n=o.itemFields??[];n.length>0&&e.registerItemFields(n);let t=o.relationshipKinds??[];t.length>0&&e.registerRelationshipKinds(t);for(let s of o.migrations??[])e.registerMigration(s);for(let s of o.profiles??[])e.registerProfile(s)}function ee(e,o){for(let r of o.searchProviders??[])e.registerSearchProvider(r);for(let r of o.vectorStoreAdapters??[])e.registerVectorStoreAdapter(r);for(let r of o.assuranceProviders??[])e.registerAssuranceMeasurementProvider(r);for(let r of o.importers??[])e.registerImporter(r.name,r.importer,r.options);for(let r of o.exporters??[])e.registerExporter(r.name,r.exporter,r.options)}function re(e,o){for(let r of o.beforeCommand??[])e.hooks.beforeCommand(r);for(let r of o.beforeMutation??[])e.hooks.beforeMutation(r);for(let r of o.afterCommand??[])e.hooks.afterCommand(r);for(let r of o.onWrite??[])e.hooks.onWrite(r);for(let r of o.onRead??[])e.hooks.onRead(r);for(let r of o.onIndex??[])e.hooks.onIndex(r)}function oe(e){let r={activate:async n=>{Q(n,e),Z(n,e),ee(n,e),re(n,e.hooks??{}),await e.activate?.(n)}};return e.manifest&&(r.manifest=e.manifest),e.deactivate&&(r.deactivate=e.deactivate),r}function f(e){let o=e.flatMap(r=>r??[]);return o.length>0?o:void 0}function l(e){let o=Object.assign({},...e.map(r=>r??{}));return Object.keys(o).length>0?o:void 0}function ne(e){let o={};for(let r of e)for(let[n,t]of Object.entries(r??{}))o[n]=[...o[n]??[],...t];return Object.keys(o).length>0?o:void 0}var te=["beforeCommand","beforeMutation","afterCommand","onWrite","onRead","onIndex"];function ie(e,o,r){let n=o.map(s=>s?.[r]),t=f(n);if(t!==void 0){let s=e;s[r]=t}}function se(e){let o={};for(let r of te)ie(o,e,r);return Object.keys(o).length>0?o:void 0}function qe(...e){let o={},r=(i,c)=>{c!==void 0&&(o[i]=c)};r("commands",f(e.map(i=>i.commands))),r("commandOverrides",l(e.map(i=>i.commandOverrides))),r("flags",ne(e.map(i=>i.flags))),r("parsers",l(e.map(i=>i.parsers))),r("renderers",l(e.map(i=>i.renderers))),r("services",l(e.map(i=>i.services))),r("preflights",f(e.map(i=>i.preflights))),r("itemTypes",f(e.map(i=>i.itemTypes))),r("itemFields",f(e.map(i=>i.itemFields))),r("relationshipKinds",f(e.map(i=>i.relationshipKinds))),r("migrations",f(e.map(i=>i.migrations))),r("profiles",f(e.map(i=>i.profiles))),r("searchProviders",f(e.map(i=>i.searchProviders))),r("vectorStoreAdapters",f(e.map(i=>i.vectorStoreAdapters))),r("assuranceProviders",f(e.map(i=>i.assuranceProviders))),r("importers",f(e.map(i=>i.importers))),r("exporters",f(e.map(i=>i.exporters))),r("hooks",se(e.map(i=>i.hooks)));let n;for(let i of e)i.manifest&&(n=i.manifest);r("manifest",n);let t=e.some(i=>i.activate);r("activate",t?async i=>{for(let c of e)c.activate&&await c.activate(i)}:void 0);let s=e.some(i=>i.deactivate);return r("deactivate",s?async()=>{let i=[];for(let c of[...e].reverse())if(c.deactivate)try{await c.deactivate()}catch(a){i.push(a)}if(i.length>0)throw i.length>1?new AggregateError(i,"Multiple extension blueprint deactivate hooks failed."):i[0]}:void 0),o}var ae=[["commands","commands"],["commandOverrides","commands"],["flags","schema"],["itemTypes","schema"],["itemFields","schema"],["relationshipKinds","schema"],["migrations","schema"],["profiles","schema"],["parsers","parser"],["renderers","renderers"],["services","services"],["preflights","preflight"],["searchProviders","search"],["vectorStoreAdapters","search"],["assuranceProviders","services"],["importers","importers"],["exporters","importers"]];function u(e){return e?Array.isArray(e)?e.length>0:Object.keys(e).length>0:!1}function h(e){let o=new Set;for(let[t,s]of ae)u(e[t])&&o.add(s);(e.commands??[]).filter(p).some(t=>t.flags!==void 0)&&o.add("schema");let r=[...e.importers??[],...e.exporters??[]].filter(p);r.some(t=>t?.options?.flags!==void 0)&&o.add("schema"),r.some(t=>typeof t=="object")&&o.add("commands");let n=e.hooks??{};return[n.beforeCommand,n.beforeMutation,n.afterCommand,n.onWrite,n.onRead,n.onIndex].some(u)&&o.add("hooks"),[...o].sort((t,s)=>t.localeCompare(s))}var ce=[["beforeCommand","before_command"],["beforeMutation","before_mutation"],["afterCommand","after_command"],["onWrite","on_write"],["onRead","on_read"],["onIndex","on_index"]];function d(e){return[...new Set(e)].sort((o,r)=>o.localeCompare(r))}function p(e){return e!=null}function _(e){return m(`${e.name} import`)}function v(e){return m(`${e.name} export`)}function de(e,o,r){return[...e.map(n=>m(n.name)),...o.filter(n=>n.options!==void 0).map(_),...r.filter(n=>n.options!==void 0).map(v)]}function me(e,o,r,n){return[...Object.keys(e.flags??{}).map(t=>m(t)),...o.filter(t=>t.flags!==void 0).map(t=>m(t.name)),...r.filter(t=>t.options?.flags!==void 0).map(_),...n.filter(t=>t.options?.flags!==void 0).map(v)]}function fe(e){return ce.filter(([o])=>(e[o]?.length??0)>0).map(([,o])=>o)}function pe(e){let o=Object.entries(e??{}).filter(([,r])=>typeof r!="function"&&((r.commands?.length??0)>0||r.resultDiscriminator!==void 0)).map(([r,n])=>{let t=n;return{format:r,commands:d((t.commands??[]).map(s=>m(s))),result_discriminator:t.resultDiscriminator!==void 0}}).sort((r,n)=>r.format.localeCompare(n.format));return o.length>0?{renderer_ownership:o}:{}}function le(e){return!e||e.length===0?{}:{assurance_providers:d(e.map(o=>o.id))}}function ue(e,o,r){return{item_types:d((e.itemTypes??[]).map(n=>n.name)),item_fields:d((e.itemFields??[]).map(n=>n.name)),...(e.relationshipKinds?.length??0)>0?{relationship_kinds:d(e.relationshipKinds.map(n=>n.kind))}:{},migrations:d((e.migrations??[]).flatMap(n=>typeof n.id=="string"?[n.id]:[])),profiles:d((e.profiles??[]).map(n=>n.name)),importers:d(o.map(n=>m(n.name))),exporters:d(r.map(n=>m(n.name))),search_providers:d((e.searchProviders??[]).map(n=>n.name)),vector_store_adapters:d((e.vectorStoreAdapters??[]).map(n=>n.name)),...le(e.assuranceProviders),parser_overrides:d(Object.keys(e.parsers??{}).map(n=>m(n))),service_overrides:d(Object.keys(e.services??{}).map(n=>String(n).trim().toLowerCase())),renderer_overrides:d(Object.keys(e.renderers??{}).map(n=>String(n).trim().toLowerCase())),...pe(e.renderers),preflight_overrides:(e.preflights??[]).length,preflight_ownership:(e.preflights??[]).map(n=>({commands:[...n.commands??[]]}))}}function Ue(e){let o=(e.commands??[]).filter(p),r=(e.importers??[]).filter(p),n=(e.exporters??[]).filter(p),t=r.map(_),s=n.map(v),i=de(o,r,n),c=me(e,o,r,n),a=e.hooks??{},O=ue(e,r,n);return{capabilities:h(e),commands:d(i),command_overrides:d(Object.keys(e.commandOverrides??{}).map(A=>m(A))),command_handlers:d([...i,...t,...s]),hooks:fe(a),flag_commands:d(c),...O}}var ge=["commands","commandOverrides","flags","parsers","renderers","services","preflights","itemTypes","itemFields","relationshipKinds","migrations","profiles","searchProviders","vectorStoreAdapters","assuranceProviders","importers","exporters"];function he(e){return(e.itemFields??[]).filter(o=>typeof o?.name=="string"&&g.has(o.name.trim())).map(o=>({code:"reserved_item_field",severity:"error",message:`Item field "${o.name}" collides with reserved item metadata; rename it with an extension-specific prefix before publishing.`,field:o.name}))}function _e(e){return[...Object.values(e.flags??{}).flat(),...(e.commands??[]).flatMap(r=>r.flags??[]),...(e.importers??[]).flatMap(r=>r.options?.flags??[]),...(e.exporters??[]).flatMap(r=>r.options?.flags??[])].flatMap(r=>{if(typeof r?.long!="string"&&typeof r?.short!="string")return[];let n=k(r.long,r.short);if(n===null)return[];let{token:t,failure:s}=n;return[{code:s,severity:"error",message:`Flag "${t}" ${E(t,s)}.`,field:t}]})}function P(e){let o=new Set;for(let r of e){let n=x(r)??y(r);n!==null&&o.add(n)}return[...o].sort((r,n)=>r.localeCompare(n))}function ve(e,o){let r=[];if(o===null)return e.length>0&&r.push({code:"manifest_capabilities_absent",severity:"warning",message:`Blueprint exercises ${e.length===1?"capability":"capabilities"} [${e.join(", ")}] but declares none; set capabilities to deriveExtensionCapabilities(blueprint) so the manifest grant matches.`}),r;let n=new Set(o),t=new Set(e);for(let s of e)n.has(s)||r.push({code:"capability_undeclared",severity:"error",message:`Blueprint exercises capability "${s}" but it is absent from the declared capabilities; activation throws extension_capability_missing \u2014 add "${s}" to the manifest capabilities.`,capability:s});for(let s of o)t.has(s)||r.push({code:"capability_unused",severity:"warning",message:`Capability "${s}" is declared but no blueprint surface exercises it; drop it to keep the manifest least-privilege (pm package doctor reports this as extension_capability_unused).`,capability:s});return r}function ye(e){let o=[],r=new Map;for(let t of e.commands??[]){let s=m(t.name);r.set(s,(r.get(s)??0)+1)}for(let[t,s]of r)s>1&&o.push({code:"duplicate_command",severity:"warning",message:`Command "${t}" is declared ${s} times in commands; the later registration shadows the earlier one at dispatch.`,command:t});let n=new Set(Object.keys(e.commandOverrides??{}).map(t=>m(t)));for(let t of r.keys())n.has(t)&&o.push({code:"command_override_conflict",severity:"warning",message:`Command "${t}" is declared both as a new command definition and as a command override; register one or the other.`,command:t});return o}function xe(e){let o=[];for(let r of ge)r in e&&!u(e[r])&&o.push({code:"empty_surface",severity:"warning",message:`Blueprint field "${r}" is present but empty; remove it or populate it.`,field:r});if("hooks"in e){let r=e.hooks??{};[r.beforeCommand,r.beforeMutation,r.afterCommand,r.onWrite,r.onRead,r.onIndex].some(u)||o.push({code:"empty_surface",severity:"warning",message:'Blueprint field "hooks" is present but registers no lifecycle hooks; remove it or populate it.',field:"hooks"})}return o}function ke(e,o={}){let r=h(e),n=o.declaredCapabilities??e.manifest?.capabilities,t=Array.isArray(n)?P(n):null,s=[...ve(r,t),...ye(e),..._e(e),...he(e),...xe(e)];return{ok:s.every(i=>i.severity!=="error"),findings:s,used:r,declared:t}}function S(e,o){let{additionalCapabilities:r,...n}=o,t=Array.isArray(r)?P(r):[],s=[...new Set([...h(e),...t])].sort((i,c)=>i.localeCompare(c));return{...n,capabilities:s}}function Ve(e,o){let r=S(e,o);return{module:oe({...e,manifest:r}),manifest:r}}function I(e,o){if(e.status==="absent"||e.status==="ok")return null;let r=`${e.kind}_${e.status}`,n="";switch(r){case"pm_min_version_invalid":n=`pm_min_version "${e.required}" is not a valid version; the extension is treated as incompatible and the loader skips it.`;break;case"pm_min_version_unchecked":n=`pm_min_version "${e.required}" could not be compared against pm ${o}; compatibility is unverified.`;break;case"pm_min_version_unmet":n=`Requires pm >= ${e.required} but the target is pm ${o}; the loader skips the extension.`;break;case"pm_max_version_invalid":n=`pm_max_version "${e.required}" is not a valid inclusive upper bound (version ranges are not allowed); the extension is treated as incompatible and the loader skips it.`;break;case"pm_max_version_unchecked":n=`pm_max_version "${e.required}" could not be compared against pm ${o}; compatibility is unverified.`;break;case"pm_max_version_exceeded":n=`Allows pm <= ${e.required} but the target is pm ${o}; the loader skips the extension.`;break;case"pm_max_version_exceeded_warn":n=`Target pm ${o} is newer than pm_max_version ${e.required}, but the "warn" exceeded mode lets it load with a warning.`;break}return{code:r,severity:e.allowed?"warning":"error",constraint:e.kind,required:e.required,current:o,message:n}}function Ee(e,o){let r=b(e.pm_min_version,o.pmVersion),n=C(e.pm_max_version,o.pmVersion,o.pmMaxVersionExceededMode??"block"),t=[],s=w(e);for(let a of s.unknownKeys)t.push({code:"manifest_unknown_key",severity:"warning",constraint:"manifest",required:a,current:o.pmVersion,path:a,...a==="compatibility"?{suggested_key:"pm_min_version"}:{},message:a==="compatibility"?'Manifest key "compatibility" is ignored; declare the canonical pm_min_version and optional pm_max_version fields instead.':`Manifest key "${a}" is not part of the extension manifest contract and will be ignored.`});s.missingVersionBounds&&t.push({code:"no_version_bounds_declared",severity:"warning",constraint:"manifest",required:"pm_min_version",current:o.pmVersion,path:"$",suggested_key:"pm_min_version",message:"No canonical pm version bounds are declared; add pm_min_version so compatibility intent is explicit."});let i=I(r,o.pmVersion);i!==null&&t.push(i);let c=I(n,o.pmVersion);return c!==null&&t.push(c),{compatible:r.allowed&&n.allowed,findings:t,pmVersion:o.pmVersion}}var be=new Set(["capability_undeclared","capability_unused","manifest_capabilities_absent"]);function ze(e,o={}){let r=ke(e,{declaredCapabilities:o.declaredCapabilities}),n=o.identity?S(e,o.identity):null,t=o.target?Ee(n??e.manifest??{},o.target):null,c=[...(n!==null&&o.declaredCapabilities===void 0?r.findings.filter(a=>!be.has(a.code)):r.findings).map(a=>({source:"blueprint",severity:a.severity,code:a.code,message:a.message})),...(t?.findings??[]).map(a=>({source:"compatibility",severity:a.severity,code:a.code,message:a.message}))];return{ok:c.every(a=>a.severity!=="error"),capabilities:r.used,blueprint:r,manifest:n,compatibility:t,findings:c}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="7fc669d4-1db2-5636-8304-2c111a684726")}catch{}})();function Ge(e){return e}function Ye(e){return e}function Xe(e){return e}function Je(e){return e}function Qe(e){return e}function Ze(e){return e}function er(e){return e}function rr(e){return e}function or(e){return e}function nr(e){return e}function tr(e){return e}function ir(e){return e}function sr(e){return e}function ar(e){return{handled:!0,result:e}}function cr(){return{handled:!1}}function dr(e){return e}function mr(e){return e}function fr(e){return e}function pr(e){return e}function lr(e){return e}function ur(e){return e}function gr(e){return e}function hr(e){return e}function _r(e){return e}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="bca95ba2-258c-5be2-8428-dcb8dbc87ef0")}catch{}})();export{D as BUILTIN_PROFILES,Pe as EXTENSION_CAPABILITIES,Ie as EXTENSION_CAPABILITY_CONTRACT,Ce as EXTENSION_CAPABILITY_CONTRACT_VERSION,we as EXTENSION_CAPABILITY_LEGACY_ALIASES,G as EXTENSION_CAPABILITY_REGISTRATION_SURFACES,Se as EXTENSION_POLICY_MODES,Oe as EXTENSION_POLICY_SURFACES,Fe as EXTENSION_SANDBOX_PROFILES,Ae as EXTENSION_TRUST_MODES,Te as LIST_FILTER_EXTENSION_FLAG_DEFINITIONS,M as PM_PACKAGE_CONVENTIONAL_RESOURCE_ROOTS,T as PM_PACKAGE_RESOURCE_KINDS,V as PROFILE_LINT_CODES,U as PROFILE_LINT_DIMENSIONS,$ as PROFILE_NAMES,g as RESERVED_ITEM_FIELD_NAMES,Me as SEARCH_EXTENSION_FLAG_DEFINITIONS,Ee as checkExtensionManifestCompatibility,N as collectPackageExtensionDirectories,Y as collectUsedExtensionCapabilities,oe as composeExtension,Ve as composeExtensionPackage,R as createExtensionContributionInventory,cr as declineServiceOverride,ur as defineAfterCommandHook,pr as defineBeforeCommandHook,lr as defineBeforeMutationHook,Xe as defineCommand,nr as defineCommandOverride,fr as defineExporter,Ke as defineExtension,He as defineExtensionBlueprint,Ge as defineExtensionManifest,Je as defineFlag,mr as defineImporter,Ze as defineItemField,Qe as defineItemType,er as defineMigration,_r as defineOnIndexHook,hr as defineOnReadHook,gr as defineOnWriteHook,tr as defineParserOverride,ir as definePreflightOverride,Ye as defineProjectProfile,dr as defineRendererOverride,rr as defineSearchProvider,sr as defineServiceOverride,or as defineVectorStoreAdapter,h as deriveExtensionCapabilities,Ue as describeExtensionBlueprint,H as describeProfileComposition,q as describeProjectProfile,ar as handleServiceOverride,ke as lintExtensionBlueprint,z as lintProjectProfile,K as listProfiles,qe as mergeExtensionBlueprints,F as normalizeExtensionContributionInventory,L as normalizeProfileName,W as planProfileApplication,ze as preflightExtension,B as readPmPackageManifest,X as reconcileExtensionCapabilityUsage,J as renderExtensionSurfaceMarkdown,j as resolveProfile,S as synthesizeExtensionManifest,Re as toExtensionFlagDefinitions};
2
2
  //# sourceMappingURL=sdk-authoring.js.map
@@ -1,3 +1,3 @@
1
- import{a as Ti,b as Oi,c as Ei,d as Di,e as Fi,f as Si,g as Ii,h as Mi,i as Gi,j as Ui,k as Ki,l as Xi,m as Yi,n as Hi,o as x,p as Vi,q as w,t as Qi,u as Zi,v as er,w as tr,x as or,y as ir}from"./focused-chunks/chunk-5SHSBMX2.js";import{a as xi,b as wi,c as ki,d as Ci,e as vi,f as ji,g as $i}from"./focused-chunks/chunk-PMGJUFNQ.js";import{A as Do,B as ai,C as ci,D as li,E as ui,F as pi,H as _i,I as fi,J as mi,K as gi,L as yi,M as bi,N as hi,a as A,b as R,c as L,d as q,e as B,f as J,g as G,h as U,i as K,j as _o,k as fo,l as mo,m as go,n as yo,o as bo,p as ho,q as xo,r as wo,s as ko,t as Co,u as vo,v as jo,w as $o,x as To,y as Oo,z as Eo}from"./focused-chunks/chunk-2AZT5WXZ.js";import{c as k,d as C,f as v,h as j}from"./focused-chunks/chunk-A2BC5PQL.js";import{$ as Ue,$a as h,A as be,Aa as bt,B as he,Ba as ht,C as xe,Ca as xt,D as we,Da as wt,E as ke,Ea as kt,F as Ce,Fa as Ct,G as ve,Ga as vt,H as je,Ha as jt,I as $e,Ia as $t,J as Te,Ja as Tt,K as Oe,Ka as Ot,L as Ee,La as Et,M as De,Ma as Dt,N as Fe,Na as Ft,O as Se,Oa as St,P as Ie,Pa as It,Q as Me,Qa as Mt,R as Pe,Ra as Pt,S as ze,Sa as zt,T as Ne,Ta as Nt,U as Ae,Ua as At,V as Re,Va as Rt,W as Le,Wa as Lt,X as qe,Y as Be,Ya as qt,Z as Je,_ as Ge,_a as b,aa as Ke,ab as Bt,b as X,ba as Xe,c as Y,ca as Ye,d as H,da as He,e as V,ea as Ve,f as W,fa as We,g as Q,ga as Qe,h as Z,ha as Ze,i as ee,ia as et,j as te,ja as tt,k as oe,ka as ot,l as ie,la as it,m as re,ma as rt,n as ne,na as nt,o as de,oa as dt,p as se,pa as st,q as ae,qa as at,r as ce,ra as ct,s as le,sa as lt,t as ue,ta as ut,u as pe,ua as pt,v as _e,va as _t,w as fe,wa as ft,x as me,xa as mt,y as ge,ya as gt,z as ye,za as yt}from"./focused-chunks/chunk-2ARQGDDW.js";import{g,h as Pi,i as zi,j as Ni,k as Ai,l as Ri,m as Li,n as qi,o as Bi,p as Ji,q as Wi}from"./focused-chunks/chunk-6S2MO3Q3.js";import{Aa as uo,Ba as po,Ha as Fo,Ia as So,Ja as Io,Ka as Mo,La as Po,Ma as zo,Na as No,Oa as Ao,Pa as Ro,Qa as Lo,Ra as qo,Sa as Bo,Ta as Jo,Ua as Go,Va as Uo,Wa as Ko,Y as m,ea as Jt,eb as Xo,fa as Gt,fb as Yo,ga as Ut,gb as Ho,ha as Kt,hb as Vo,ia as Xt,ib as Wo,ja as Yt,jb as Qo,ka as Ht,kb as Zo,la as Vt,lb as ei,ma as Wt,mb as ti,na as Qt,nb as oi,oa as Zt,ob as ii,pb as ri,qa as eo,qb as ni,ra as to,rb as di,sa as oo,sb as si,ta as io,ua as ro,va as no,wa as so,xa as ao,ya as co,za as lo}from"./focused-chunks/chunk-C4S4A4JJ.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]="6ba3d756-dcd6-59b7-92fe-ec33d294d72b")}catch{}})();var u,E=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 D(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=E[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(e)?"linked-file-path":["comments","notes","learnings"].includes(e)?"entry-file-input":"plan-definition-file"}function p(){if(u!==void 0)return u;let t=w.filter(({command:i})=>b(i)).flatMap(({command:i,family:s})=>x(i,h(i)).map(a=>({command:i,family:s,concept:D(i,a.flag),flag:a.flag,aliases:Object.freeze([...a.aliases??[]]),value_kind:a.repeatable?"list":a.flag==="--limit"?"number":a.value_type}))),r=new Set(t.flatMap(i=>i.aliases.map(s=>`${i.command}:${s}`))),n=t.filter(i=>!r.has(`${i.command}:${i.flag}`)),o=new Map;for(let i of n){let s=o.get(i.concept)??new Set;s.add(i.value_kind),o.set(i.concept,s)}return u=Object.freeze(n.map(i=>Object.freeze({...i,concept:o.get(i.concept)?.size===1?i.concept:`${i.concept}@${i.command}`}))),u}function sr(){return Object.freeze(p().map(e=>Object.freeze({command:e.command,canonical_flag:e.flag,accepted_spellings:Object.freeze([...new Set([e.flag,...e.aliases])].sort())})))}var $=Object.freeze({init:30,config:35,extension:53,package:54,packages:54,install:26,upgrade:29,create:100,copy:24,focus:22,list:86,"list-all":85,"list-draft":84,"list-open":84,"list-in-progress":84,"list-blocked":84,"list-closed":84,"list-canceled":84,aggregate:37,context:45,ctx:45,get:30,graph:34,search:78,duplicates:24,eval:25,next:35,history:35,events:33,"history-redact":27,"history-repair":26,"history-compact":30,"history-author-acknowledge":28,merge:24,schema:40,profile:22,activity:35,restore:23,update:105,"update-many":140,close:31,"close-many":72,delete:24,append:24,comments:30,notes:34,learnings:26,files:39,docs:30,deps:32,plan:109,test:48,"test-all":37,telemetry:21,stats:29,health:36,validate:45,assurance:30,gc:22,workspace:23,contracts:29,claim:36,release:23,"start-task":23,"pause-task":23,"close-task":24,meet:33,event:33,remind:29,"test-runs-worker":25});function T(){let e=new Map(Object.keys($).map(t=>[t,0]));for(let{command:t}of p())e.set(t,Number(e.get(t))+1);return Object.freeze(Object.entries($).map(([t,r])=>Object.freeze({command:t,current:Number(e.get(t)),maximum:r})))}function F(e,t,r){for(let n of e)for(let o of n.aliases){let i=t.get(`${n.command}:${o}`);i===void 0||i.flag===n.flag||r.push({code:"alias_collision",command:n.command,detail:`${o} aliases ${n.flag} but is canonical for ${i.flag}.`})}}function S(e,t,r){let n=new Set(t.map(({command:o})=>o));for(let o of e.keys())n.has(o)||r.push({code:"missing_budget",command:o,detail:`${o} has canonical flags but no persisted budget.`});for(let o of t){let i=e.get(o.command)??0;i===0&&r.push({code:"stale_budget",command:o.command,detail:`${o.command} has a persisted budget but no canonical flags.`}),!(i<=o.maximum)&&r.push({code:"budget_exceeded",command:o.command,detail:`${i} canonical flags exceed the ratcheted maximum ${o.maximum}.`})}}function I(e,t,r){let n=new Map(e.map(o=>[`${o.command}:${o.flag}`,o]));for(let o of t){let i=`${o.command}:${o.canonical_flag}`,s=n.get(i);if(!s){r.push({code:"removed_canonical_spelling",command:o.command,detail:`${o.canonical_flag} disappeared from the executable spelling inventory.`});continue}let a=new Set([s.flag,...s.aliases]);for(let d of o.accepted_spellings)a.has(d)||r.push({code:"removed_compatibility_spelling",command:o.command,detail:`${d} no longer resolves to ${o.canonical_flag}.`})}}function ar(e=p(),t=T(),r=[]){let n=[],o=new Map,i=new Map,s=new Map,a=new Map;for(let d of e){let c=`${d.command}:${d.flag}`;o.has(c)?n.push({code:"duplicate_canonical_flag",command:d.command,detail:`${d.flag} has more than one canonical row.`}):o.set(c,d),a.set(d.command,(a.get(d.command)??0)+1);let _=i.get(d.concept);_!==void 0&&_!==d.value_kind?n.push({code:"inconsistent_concept_kind",command:d.command,detail:`${d.concept} uses both ${_} and ${d.value_kind}.`}):i.set(d.concept,d.value_kind);let f=s.get(d.concept);f!==void 0&&f!==d.flag?n.push({code:"semantic_spelling_collision",command:d.command,detail:`${d.concept} is canonicalized by both ${f} and ${d.flag}.`}):s.set(d.concept,d.flag)}return F(e,o,n),S(a,t,n),I(e,r,n),n.sort((d,c)=>d.command.localeCompare(c.command)||d.code.localeCompare(c.code)||d.detail.localeCompare(c.detail)),{ok:n.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:n}}function cr(){let e=p(),t=T(),r=new Map(t.map(({command:o})=>[o,"unknown"]));for(let{command:o,family:i}of e)r.set(o,i);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:i,maximum:s})=>{let a=r.get(o);return`| \`${o}\` | ${a} | ${i} | ${s} |`}),""].join(`
2
- `)}(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]="0ec8c375-e58e-5ce4-b0aa-8a8a4dfa0778")}catch{}})();function M(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 P(e){return[e.exit_code!==m.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 ${m.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."},...M(e)]}function pr(e){let t=[],r=new Set,n=0;e.length===0&&t.push({code:"empty_corpus",probe_id:"corpus",detail:"At least one real refusal observation is required."});for(let o of e){if(r.has(o.probe_id)){t.push({code:"duplicate_probe",probe_id:o.probe_id,detail:`${o.probe_id} was supplied more than once.`});continue}r.add(o.probe_id);let i=t.length;for(let s of P(o))s!==void 0&&t.push(s);t.length===i&&(n+=1)}return t.sort((o,i)=>o.probe_id!==i.probe_id?o.probe_id.localeCompare(i.probe_id):o.code.localeCompare(i.code)),{ok:t.length===0,probe_count:r.size,closed_probe_count:n,closure_fraction:r.size===0?0:n/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]="35d4f3d7-7ec2-5a8b-bd96-f7e73c658737")}catch{}})();var O="not-a-declared-intent",l="not-a-declared-field";function z(){let e={get:["pm-domain"],search:["Domain query"]},t=[...new Set(g.map(({command:i})=>i))].map(i=>{let s=g.filter(c=>c.command===i),a=s[0],d=e[a.command]??[];return{probe_id:`${a.command}-invalid-intent`,command:a.command,flag:"--for",rejected_value:O,refusal_args:[a.command,...d,"--for",O],allowed_values:s.map(({intent:c})=>c).sort(),suggested_retry_args:[a.command,...d,"--for",a.intent],error_code:"unknown_context_intent"}}),r=C(),n=Object.keys(k).map(i=>({probe_id:`${i}-invalid-field`,command:i,flag:"--fields",rejected_value:l,refusal_args:[i,"--fields",l],allowed_values:r,suggested_retry_args:[i,"--fields","id,title,status","--limit","10"],error_code:"unknown_field_projection"}));return[...t,...n,{probe_id:"get-invalid-field",command:"get",flag:"--fields",rejected_value:l,refusal_args:["get","pm-domain","--fields",l],allowed_values:v(),suggested_retry_args:["get","pm-domain","--fields","id,title,status"],error_code:"unknown_field_projection"},{probe_id:"list-mutually-exclusive-projection",command:"list",flag:"--projection",rejected_value:"--brief+--full",refusal_args:["list","--brief","--full"],allowed_values:[],suggested_retry_args:["list","--brief"],error_code:"projection_options_mutually_exclusive",allowed_values_required:!1},{probe_id:"get-mutually-exclusive-projection",command:"get",flag:"--projection",rejected_value:"--full+--fields",refusal_args:["get","pm-domain","--full","--fields","id"],allowed_values:[],suggested_retry_args:["get","pm-domain","--full"],error_code:"projection_options_mutually_exclusive",allowed_values_required:!1},{probe_id:"search-mutually-exclusive-projection",command:"search",flag:"--projection",rejected_value:"--full+--fields",refusal_args:["search","Domain query","--full","--fields","id"],allowed_values:[],suggested_retry_args:["search","Domain query","--full"],error_code:"projection_options_mutually_exclusive",allowed_values_required:!1},{probe_id:"search-invalid-field",command:"search",flag:"--fields",rejected_value:l,refusal_args:["search","Domain query","--fields",l],allowed_values:j(),suggested_retry_args:["search","Domain query","--fields","id,title,status,score"],error_code:"unknown_field_projection"}].sort((i,s)=>i.probe_id.localeCompare(s.probe_id))}function gr(e,t){let r=z().find(i=>i.command===e&&i.flag===t);if(!r)return"No stable core values are declared.";let n=r.allowed_values.filter(i=>!i.startsWith("item.")),o=t==="--fields"?" item.<field> aliases and configured runtime metadata fields are also accepted.":" Configured package and workspace intents may extend this domain.";return`Allowed core values: ${n.join("|")}.${o}`}(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]="941a11a9-f756-56b3-9dc1-8afd78bc9328")}catch{}})();var y=[{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 br(){return y.map(e=>({...e}))}function N(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 n=t.suggested_retry_args.indexOf("init"),o=n===0||n===2&&t.suggested_retry_args[0]==="--pm-path"&&t.suggested_retry_args[1]?.length>0;return e.recovery_kind==="initialize"&&!o&&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 hr(e){let t=new Map(e.map(o=>[o.probe_id,o])),r=[],n=0;for(let o of y){let i=t.get(o.probe_id);if(i===void 0){r.push({code:"missing_probe",probe_id:o.probe_id,detail:"No runtime observation was supplied for this contract."});continue}let s=N(o,i);r.push(...s),s.length===0&&(n+=1)}return r.sort((o,i)=>o.probe_id.localeCompare(i.probe_id)||o.code.localeCompare(i.code)),{ok:r.length===0,probe_count:y.length,closed_probe_count:n,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]="8bdc03e5-c5cd-5842-b438-cf7bc79863f0")}catch{}})();export{J as ACTIVITY_COMMANDER_STRING_OPTION_CONTRACTS,Ot as ACTIVITY_FLAG_CONTRACTS,pe as AGGREGATE_FLAG_CONTRACTS,Qe as APPEND_FLAG_CONTRACTS,bt as ASSURANCE_FLAG_CONTRACTS,L as CALENDAR_COMMANDER_STRING_OPTION_CONTRACTS,Tt as CALENDAR_FLAG_CONTRACTS,Ze as CLAIM_FLAG_CONTRACTS,ui as CLOSE_ACTION_OPTION_KEYS,Ve as CLOSE_FLAG_CONTRACTS,We as CLOSE_MANY_FLAG_CONTRACTS,nt as CLOSE_TASK_FLAG_CONTRACTS,_e as COMMENTS_FLAG_CONTRACTS,Lt as COMPLETION_FLAG_CONTRACTS,Oe as CONFIG_FLAG_CONTRACTS,q as CONTEXT_COMMANDER_STRING_OPTION_CONTRACTS,Dt as CONTEXT_FLAG_CONTRACTS,Rt as CONTRACTS_FLAG_CONTRACTS,Ct as COPY_FLAG_CONTRACTS,xi as CREATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,ki as CREATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,wi as CREATE_COMMANDER_STRING_OPTION_CONTRACTS,ht as CREATE_FLAG_CONTRACTS,tt as DELETE_FLAG_CONTRACTS,It as DEPS_FLAG_CONTRACTS,ye as DOCS_FLAG_CONTRACTS,mt as DUPLICATES_FLAG_CONTRACTS,Pt as EVAL_FLAG_CONTRACTS,Et as EVENTS_FLAG_CONTRACTS,st as EVENT_FLAG_CONTRACTS,Gt as EXECUTABLE_COMMAND_ALIASES,Re as EXTENSION_ACTIVATE_FLAG_CONTRACTS,Ae as EXTENSION_ADOPT_ALL_FLAG_CONTRACTS,Ke as EXTENSION_ADOPT_FLAG_CONTRACTS,Ue as EXTENSION_CATALOG_FLAG_CONTRACTS,Le as EXTENSION_DEACTIVATE_FLAG_CONTRACTS,Ne as EXTENSION_DESCRIBE_FLAG_CONTRACTS,Ge as EXTENSION_DOCTOR_FLAG_CONTRACTS,ze as EXTENSION_EXPLORE_FLAG_CONTRACTS,Ee as EXTENSION_FLAG_CONTRACTS,Fe as EXTENSION_INIT_FLAG_CONTRACTS,Me as EXTENSION_INSTALL_FLAG_CONTRACTS,Be as EXTENSION_MANAGE_FLAG_CONTRACTS,qe as EXTENSION_MIGRATE_FLAG_CONTRACTS,Je as EXTENSION_RELOAD_FLAG_CONTRACTS,De as EXTENSION_SCOPE_FLAG_CONTRACTS,Pe as EXTENSION_UNINSTALL_FLAG_CONTRACTS,ge as FILES_FLAG_CONTRACTS,vt as FOCUS_FLAG_CONTRACTS,_t as GC_FLAG_CONTRACTS,Ft as GET_FLAG_CONTRACTS,le as GLOBAL_FLAG_CONTRACTS,Mt as GRAPH_FLAG_CONTRACTS,St as GUIDE_FLAG_CONTRACTS,gt as HEALTH_FLAG_CONTRACTS,ke as HISTORY_AUTHOR_ACKNOWLEDGE_FLAG_CONTRACTS,Ce as HISTORY_COMPACT_FLAG_CONTRACTS,be as HISTORY_FLAG_CONTRACTS,xe as HISTORY_REDACT_FLAG_CONTRACTS,we as HISTORY_REPAIR_FLAG_CONTRACTS,Te as INIT_FLAG_CONTRACTS,Xe as INSTALL_FLAG_CONTRACTS,wt as ITEM_COMPLETE_FLAG_CONTRACTS,xt as ITEM_MUTATE_FLAG_CONTRACTS,kt as ITEM_REOPEN_FLAG_CONTRACTS,me as LEARNINGS_FLAG_CONTRACTS,A as LIST_COMMANDER_STRING_OPTION_CONTRACTS,ue as LIST_FILTER_FLAG_CONTRACTS,dt as MEET_FLAG_CONTRACTS,he as MERGE_FLAG_CONTRACTS,B as NEXT_COMMANDER_STRING_OPTION_CONTRACTS,Nt as NEXT_FLAG_CONTRACTS,fe as NOTES_FLAG_CONTRACTS,Se as PACKAGE_FLAG_CONTRACTS,Ie as PACKAGE_INIT_FLAG_CONTRACTS,rt as PAUSE_TASK_FLAG_CONTRACTS,li as PLAN_CREATE_METADATA_PARAMETER_KEYS,$e as PLAN_FLAG_CONTRACTS,te as PM_CLI_GRAMMAR_CONTRACT,X as PM_CLI_GRAMMAR_NOUNS,oo as PM_CLI_ONLY_TOOL_ACTION_WAIVERS,Y as PM_CLI_SHARED_VERBS,Jt as PM_COMMAND_ALIAS_CONTRACTS,Z as PM_COMMAND_DESTINATION_CONTRACTS,Oi as PM_COMMAND_EXIT_CONTRACTS,Ti as PM_COMMAND_EXIT_OUTCOME_CONTRACTS,Ro as PM_COMMAND_OUTPUT_BUDGET_CONTRACTS,er as PM_COMMAND_OUTPUT_ENVELOPE_CONTRACTS,ee as PM_COMMAND_POSITIONAL_CONTRACTS,g as PM_CONTEXT_INTENT_CONTRACTS,Zt as PM_CORE_COMMAND_NAMES,ro as PM_DEPRECATED_TOOL_ACTIONS,Mo as PM_DIAGNOSTIC_DEGRADATION_STEPS,Po as PM_DIAGNOSTIC_OUTPUT_BUDGET_CONTRACTS,Io as PM_DIAGNOSTIC_OUTPUT_CLASSES,no as PM_DISCOVERABLE_TOOL_ACTIONS,Yi as PM_ERROR_CODE_CATALOG,Gi as PM_ERROR_CODE_EXIT_CLASS_CONTRACTS,Xt as PM_EXTENSION_CAPABILITY_CONTRACTS,eo as PM_EXTENSION_PACKAGE_ACTION_SUBCOMMANDS,Ht as PM_EXTENSION_POLICY_MODE_CONTRACTS,Qt as PM_EXTENSION_POLICY_SURFACE_CONTRACTS,Wt as PM_EXTENSION_SANDBOX_PROFILE_CONTRACTS,Yt as PM_EXTENSION_SERVICE_NAME_CONTRACTS,Vt as PM_EXTENSION_TRUST_MODE_CONTRACTS,to as PM_ITEM_ACTION_SUBCOMMANDS,So as PM_OUTPUT_BUDGET_CLASSES,Fo as PM_OUTPUT_DEGRADATION_STEPS,Qi as PM_OUTPUT_ENVELOPE_KINDS,H as PM_POSITIONAL_ACTION_CONTRACTS,bi as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA,gi as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA_VERSION,Vo as PM_READ_OUTPUT_COMPOSITION_OPTION_FLAGS,Xo as PM_READ_OUTPUT_DIMENSIONS,Ho as PM_READ_OUTPUT_OPTION_FLAGS,Yo as PM_READ_OUTPUT_SURFACES,Wo as PM_READ_OUTPUT_SURFACE_CONTRACTS,Ei as PM_SUCCESS_EXIT_CODES,io as PM_TOOL_ACTIONS,pi as PM_TOOL_ACTION_PARAMETER_CONTRACTS,yi as PM_TOOL_PARAMETERS_SCHEMA,mi as PM_TOOL_PARAMETERS_SCHEMA_MAJOR,fi as PM_TOOL_PARAMETERS_SCHEMA_VERSION,ai as PM_TOOL_RESERVED_CUSTOM_FIELD_PROPERTIES,je as PROFILE_FLAG_CONTRACTS,He as REINDEX_FLAG_CONTRACTS,ot as RELEASE_FLAG_CONTRACTS,at as REMIND_FLAG_CONTRACTS,et as RESTORE_FLAG_CONTRACTS,ve as SCHEMA_FLAG_CONTRACTS,R as SEARCH_COMMANDER_STRING_OPTION_CONTRACTS,At as SEARCH_FLAG_CONTRACTS,it as START_TASK_FLAG_CONTRACTS,ft as STATS_FLAG_CONTRACTS,ce as SUBCOMMAND_GLOBAL_FLAG_CONTRACTS,ut as TELEMETRY_FLAG_CONTRACTS,lt as TEST_ALL_FLAG_CONTRACTS,ct as TEST_FLAG_CONTRACTS,pt as TEST_RUNS_FLAG_CONTRACTS,To as TOOL_ACTIVITY_OPTION_CONTRACTS,mo as TOOL_AGGREGATE_OPTION_CONTRACTS,Co as TOOL_BULK_MUTATION_FILTER_OPTION_CONTRACT_SOURCE,$o as TOOL_CALENDAR_OPTION_CONTRACTS,jo as TOOL_CLOSE_MANY_FILTER_OPTION_CONTRACTS,Oo as TOOL_CONTEXT_OPTION_CONTRACTS,xo as TOOL_CREATE_OPTION_CONTRACTS,ho as TOOL_CREATE_OPTION_CONTRACT_SOURCE,Eo as TOOL_DEPS_OPTION_CONTRACTS,Do as TOOL_GRAPH_OPTION_CONTRACTS,fo as TOOL_LIST_FILTER_OPTION_CONTRACTS,go as TOOL_SEARCH_FILTER_OPTION_CONTRACTS,bo as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACTS,yo as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACT_SOURCE,vo as TOOL_UPDATE_MANY_FILTER_OPTION_CONTRACTS,ko as TOOL_UPDATE_OPTION_CONTRACTS,wo as TOOL_UPDATE_OPTION_CONTRACT_SOURCE,Ci as UPDATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,ji as UPDATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,vi as UPDATE_COMMANDER_STRING_OPTION_CONTRACTS,jt as UPDATE_FLAG_CONTRACTS,$t as UPDATE_MANY_FLAG_CONTRACTS,Ye as UPGRADE_FLAG_CONTRACTS,yt as VALIDATE_FLAG_CONTRACTS,zt as WORKSPACE_FLAG_CONTRACTS,hi as _testOnlyCliContracts,Ii as analyzePmCommandExitConformance,so as analyzePmToolActionParity,$i as analyzeSdkCliParameterCompleteness,Ri as applyContextIntentProjection,ni as applyReadOutputDimensions,ti as applyReadOutputIncludeModes,Bi as attachContextIntentReceipt,Wi as attachOutputTokenAccounting,Ji as attachReadOutputContracts,_i as buildPmActionToolInputSchema,ae as compactFlagAliasContracts,Ni as composeContextIntentContracts,qi as contextIntentRowId,No as createPmCommandOutputBudget,Li as decodeContextIntentCursor,Ko as decodeReadOutputContinuationCursor,Ao as definePmCommandOutputBudget,Zi as definePmCommandOutputEnvelope,Ui as definePmErrorCodeCatalog,Mi as derivePmBulkMutationEffect,Uo as encodeReadOutputContinuationCursor,Hi as enrichCliFlagInvocationContract,x as enrichCliFlagInvocationContracts,qo as estimatePmOutputTokens,Q as formatPmPositionalActionFlagTip,Pi as getActiveContextIntentContracts,b as hasSubcommandFlagContractsForCommand,zo as inferPmOutputBudgetClass,co as isPmExtensionCapabilityContract,uo as isPmExtensionPolicyModeContract,po as isPmExtensionPolicySurfaceContract,lo as isPmExtensionServiceNameContract,Fi as isPmKnownExitCode,or as isPmMutationReceipt,Di as isPmSuccessfulExitCode,ao as isPmToolAction,di as isReadOutputBudgetExceeded,z as listCoreClosedDomainContracts,T as listPmCommandFlagBudgets,p as listPmFlagLexicon,sr as listPmFlagSpellingInventory,br as listTrackerPreflightRecoveryContracts,oi as normalizeReadOutputIncludeModeOptions,ir as parseMutationReceipt,ie as positionalShapeKey,re as positionalSignatureKey,Jo as projectPmDiagnosticOutput,Go as projectPmDiagnosticText,G as readFirstStringFromCommanderOptions,U as readFirstValueFromCommanderOptions,ei as readOutputIncludeModeOptions,K as readStringArrayFromCommanderOptions,gr as renderPmClosedDomainHelp,Kt as renderPmCommandAliasMigrationHint,cr as renderPmFlagLexiconMarkdown,Ki as resolveCanonicalPmErrorCodeContract,Ai as resolveContextIntentContract,Ut as resolvePmCommandAlias,Si as resolvePmCommandExitContract,Lo as resolvePmCommandOutputBudget,tr as resolvePmCommandOutputEnvelope,V as resolvePmCommandPositionalContract,Bo as resolvePmDiagnosticOutputBudget,Xi as resolvePmErrorCodeContract,D as resolvePmFlagSemanticConcept,W as resolvePmPositionalActionContract,qt as resolvePmPositionalActionFlagContracts,ci as resolvePmToolCustomFieldCollision,ii as resolveReadOutputDimensions,si as resolveReadOutputEncoding,Qo as resolveReadOutputSurface,h as resolveSubcommandFlagContractsForCommand,zi as runWithContextIntentContracts,pr as scorePmRefusalClosure,hr as scoreTrackerPreflightRecoveryClosure,ri as stabilizeReadOutputReceiptEstimates,Bt as toCompletionFlagString,Zo as validateReadOutputOptions,Vi as verifyCliFlagInvocationParity,oe as verifyExplicitPositionalSlotCensus,de as verifyPmCliGrammar,ne as verifyPmCommandPositionalContracts,ar as verifyPmFlagLexicon,_o as verifyToolOptionCliParity,se as withFlagAliasMetadata};
1
+ import{a as Ei,b as Di,c as Fi,d as Si,e as Ii,f as Mi,g as Pi,h as zi,i as Ki,j as Xi,k as Yi,l as Hi,m as Vi,n as Wi,o as x,p as Qi,q as w,u as er,v as tr,w as or,x as ir,y as rr,z as nr}from"./focused-chunks/chunk-Q63PSLO4.js";import{a as ki,b as Ci,c as vi,d as ji,e as $i,f as Ti,g as Oi}from"./focused-chunks/chunk-MNPECIRL.js";import{A as Fo,B as li,C as ui,D as pi,E as _i,F as fi,H as mi,I as gi,J as yi,K as bi,L as hi,M as xi,N as wi,a as A,b as R,c as L,d as q,e as B,f as J,g as G,h as U,i as K,j as fo,k as mo,l as go,m as yo,n as bo,o as ho,p as xo,q as wo,r as ko,s as Co,t as vo,u as jo,v as $o,w as To,x as Oo,y as Eo,z as Do}from"./focused-chunks/chunk-6Z24ZMU3.js";import{c as k,d as C,f as v,h as j}from"./focused-chunks/chunk-O4ZXNJMT.js";import{$ as Ue,$a as h,A as be,Aa as bt,B as he,Ba as ht,C as xe,Ca as xt,D as we,Da as wt,E as ke,Ea as kt,F as Ce,Fa as Ct,G as ve,Ga as vt,H as je,Ha as jt,I as $e,Ia as $t,J as Te,Ja as Tt,K as Oe,Ka as Ot,L as Ee,La as Et,M as De,Ma as Dt,N as Fe,Na as Ft,O as Se,Oa as St,P as Ie,Pa as It,Q as Me,Qa as Mt,R as Pe,Ra as Pt,S as ze,Sa as zt,T as Ne,Ta as Nt,U as Ae,Ua as At,V as Re,Va as Rt,W as Le,Wa as Lt,X as qe,Y as Be,Ya as qt,Z as Je,_ as Ge,_a as b,aa as Ke,ab as Bt,b as X,ba as Xe,c as Y,ca as Ye,d as H,da as He,e as V,ea as Ve,f as W,fa as We,g as Q,ga as Qe,h as Z,ha as Ze,i as ee,ia as et,j as te,ja as tt,k as oe,ka as ot,l as ie,la as it,m as re,ma as rt,n as ne,na as nt,o as de,oa as dt,p as ae,pa as at,q as se,qa as st,r as ce,ra as ct,s as le,sa as lt,t as ue,ta as ut,u as pe,ua as pt,v as _e,va as _t,w as fe,wa as ft,x as me,xa as mt,y as ge,ya as gt,z as ye,za as yt}from"./focused-chunks/chunk-BFA6KKCI.js";import{g,h as Ni,i as Ai,j as Ri,k as Li,l as qi,m as Bi,n as Ji,o as Gi,p as Ui,q as Zi}from"./focused-chunks/chunk-WZLSSGEU.js";import{Aa as uo,Ba as po,Ca as _o,Ia as So,Ja as Io,Ka as Mo,La as Po,Ma as zo,Na as No,Oa as Ao,Pa as Ro,Qa as Lo,Ra as qo,Sa as Bo,Ta as Jo,Ua as Go,Va as Uo,Wa as Ko,Xa as Xo,Y as m,Ya as Yo,ea as Jt,fa as Gt,ga as Ut,gb as Ho,ha as Kt,hb as Vo,ia as Xt,ib as Wo,ja as Yt,jb as Qo,ka as Ht,kb as Zo,la as Vt,lb as ei,ma as Wt,mb as ti,na as Qt,nb as oi,oa as Zt,ob as ii,pb as ri,qa as eo,qb as ni,ra as to,rb as di,sa as oo,sb as ai,ta as io,tb as si,ua as ro,ub as ci,va as no,wa as ao,xa as so,ya as co,za as lo}from"./focused-chunks/chunk-FCTT4CZU.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]="8320177c-e95d-5d14-a914-4ac37230c0b9")}catch{}})();var u,E=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 D(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=E[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(e)?"linked-file-path":["comments","notes","learnings"].includes(e)?"entry-file-input":"plan-definition-file"}function p(){if(u!==void 0)return u;let t=w.filter(({command:i})=>b(i)).flatMap(({command:i,family:a})=>x(i,h(i)).map(s=>({command:i,family:a,concept:D(i,s.flag),flag:s.flag,aliases:Object.freeze([...s.aliases??[]]),value_kind:s.repeatable?"list":s.flag==="--limit"?"number":s.value_type}))),r=new Set(t.flatMap(i=>i.aliases.map(a=>`${i.command}:${a}`))),n=t.filter(i=>!r.has(`${i.command}:${i.flag}`)),o=new Map;for(let i of n){let a=o.get(i.concept)??new Set;a.add(i.value_kind),o.set(i.concept,a)}return u=Object.freeze(n.map(i=>Object.freeze({...i,concept:o.get(i.concept)?.size===1?i.concept:`${i.concept}@${i.command}`}))),u}function cr(){return Object.freeze(p().map(e=>Object.freeze({command:e.command,canonical_flag:e.flag,accepted_spellings:Object.freeze([...new Set([e.flag,...e.aliases])].sort())})))}var $=Object.freeze({init:30,config:35,extension:53,package:54,packages:54,install:26,upgrade:29,create:100,copy:24,focus:22,list:86,"list-all":85,"list-draft":84,"list-open":84,"list-in-progress":84,"list-blocked":84,"list-closed":84,"list-canceled":84,aggregate:37,context:45,ctx:45,get:30,graph:34,search:78,duplicates:24,eval:25,next:35,history:35,events:33,"history-redact":27,"history-repair":26,"history-compact":30,"history-author-acknowledge":28,merge:24,schema:40,profile:22,activity:35,restore:23,update:105,"update-many":140,close:31,"close-many":72,delete:24,append:24,comments:30,notes:34,learnings:26,files:39,docs:30,deps:32,plan:109,test:52,"test-all":40,telemetry:21,stats:29,health:36,validate:45,assurance:30,gc:22,workspace:23,contracts:29,claim:36,release:23,"start-task":23,"pause-task":23,"close-task":24,meet:33,event:33,remind:29,"test-runs-worker":25});function T(){let e=new Map(Object.keys($).map(t=>[t,0]));for(let{command:t}of p())e.set(t,Number(e.get(t))+1);return Object.freeze(Object.entries($).map(([t,r])=>Object.freeze({command:t,current:Number(e.get(t)),maximum:r})))}function F(e,t,r){for(let n of e)for(let o of n.aliases){let i=t.get(`${n.command}:${o}`);i===void 0||i.flag===n.flag||r.push({code:"alias_collision",command:n.command,detail:`${o} aliases ${n.flag} but is canonical for ${i.flag}.`})}}function S(e,t,r){let n=new Set(t.map(({command:o})=>o));for(let o of e.keys())n.has(o)||r.push({code:"missing_budget",command:o,detail:`${o} has canonical flags but no persisted budget.`});for(let o of t){let i=e.get(o.command)??0;i===0&&r.push({code:"stale_budget",command:o.command,detail:`${o.command} has a persisted budget but no canonical flags.`}),!(i<=o.maximum)&&r.push({code:"budget_exceeded",command:o.command,detail:`${i} canonical flags exceed the ratcheted maximum ${o.maximum}.`})}}function I(e,t,r){let n=new Map(e.map(o=>[`${o.command}:${o.flag}`,o]));for(let o of t){let i=`${o.command}:${o.canonical_flag}`,a=n.get(i);if(!a){r.push({code:"removed_canonical_spelling",command:o.command,detail:`${o.canonical_flag} disappeared from the executable spelling inventory.`});continue}let s=new Set([a.flag,...a.aliases]);for(let d of o.accepted_spellings)s.has(d)||r.push({code:"removed_compatibility_spelling",command:o.command,detail:`${d} no longer resolves to ${o.canonical_flag}.`})}}function lr(e=p(),t=T(),r=[]){let n=[],o=new Map,i=new Map,a=new Map,s=new Map;for(let d of e){let c=`${d.command}:${d.flag}`;o.has(c)?n.push({code:"duplicate_canonical_flag",command:d.command,detail:`${d.flag} has more than one canonical row.`}):o.set(c,d),s.set(d.command,(s.get(d.command)??0)+1);let _=i.get(d.concept);_!==void 0&&_!==d.value_kind?n.push({code:"inconsistent_concept_kind",command:d.command,detail:`${d.concept} uses both ${_} and ${d.value_kind}.`}):i.set(d.concept,d.value_kind);let f=a.get(d.concept);f!==void 0&&f!==d.flag?n.push({code:"semantic_spelling_collision",command:d.command,detail:`${d.concept} is canonicalized by both ${f} and ${d.flag}.`}):a.set(d.concept,d.flag)}return F(e,o,n),S(s,t,n),I(e,r,n),n.sort((d,c)=>d.command.localeCompare(c.command)||d.code.localeCompare(c.code)||d.detail.localeCompare(c.detail)),{ok:n.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:n}}function ur(){let e=p(),t=T(),r=new Map(t.map(({command:o})=>[o,"unknown"]));for(let{command:o,family:i}of e)r.set(o,i);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:i,maximum:a})=>{let s=r.get(o);return`| \`${o}\` | ${s} | ${i} | ${a} |`}),""].join(`
2
+ `)}(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]="0ec8c375-e58e-5ce4-b0aa-8a8a4dfa0778")}catch{}})();function M(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 P(e){return[e.exit_code!==m.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 ${m.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."},...M(e)]}function fr(e){let t=[],r=new Set,n=0;e.length===0&&t.push({code:"empty_corpus",probe_id:"corpus",detail:"At least one real refusal observation is required."});for(let o of e){if(r.has(o.probe_id)){t.push({code:"duplicate_probe",probe_id:o.probe_id,detail:`${o.probe_id} was supplied more than once.`});continue}r.add(o.probe_id);let i=t.length;for(let a of P(o))a!==void 0&&t.push(a);t.length===i&&(n+=1)}return t.sort((o,i)=>o.probe_id!==i.probe_id?o.probe_id.localeCompare(i.probe_id):o.code.localeCompare(i.code)),{ok:t.length===0,probe_count:r.size,closed_probe_count:n,closure_fraction:r.size===0?0:n/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]="35d4f3d7-7ec2-5a8b-bd96-f7e73c658737")}catch{}})();var O="not-a-declared-intent",l="not-a-declared-field";function z(){let e={get:["pm-domain"],search:["Domain query"]},t=[...new Set(g.map(({command:i})=>i))].map(i=>{let a=g.filter(c=>c.command===i),s=a[0],d=e[s.command]??[];return{probe_id:`${s.command}-invalid-intent`,command:s.command,flag:"--for",rejected_value:O,refusal_args:[s.command,...d,"--for",O],allowed_values:a.map(({intent:c})=>c).sort(),suggested_retry_args:[s.command,...d,"--for",s.intent],error_code:"unknown_context_intent"}}),r=C(),n=Object.keys(k).map(i=>({probe_id:`${i}-invalid-field`,command:i,flag:"--fields",rejected_value:l,refusal_args:[i,"--fields",l],allowed_values:r,suggested_retry_args:[i,"--fields","id,title,status","--limit","10"],error_code:"unknown_field_projection"}));return[...t,...n,{probe_id:"get-invalid-field",command:"get",flag:"--fields",rejected_value:l,refusal_args:["get","pm-domain","--fields",l],allowed_values:v(),suggested_retry_args:["get","pm-domain","--fields","id,title,status"],error_code:"unknown_field_projection"},{probe_id:"list-mutually-exclusive-projection",command:"list",flag:"--projection",rejected_value:"--brief+--full",refusal_args:["list","--brief","--full"],allowed_values:[],suggested_retry_args:["list","--brief"],error_code:"projection_options_mutually_exclusive",allowed_values_required:!1},{probe_id:"get-mutually-exclusive-projection",command:"get",flag:"--projection",rejected_value:"--full+--fields",refusal_args:["get","pm-domain","--full","--fields","id"],allowed_values:[],suggested_retry_args:["get","pm-domain","--full"],error_code:"projection_options_mutually_exclusive",allowed_values_required:!1},{probe_id:"search-mutually-exclusive-projection",command:"search",flag:"--projection",rejected_value:"--full+--fields",refusal_args:["search","Domain query","--full","--fields","id"],allowed_values:[],suggested_retry_args:["search","Domain query","--full"],error_code:"projection_options_mutually_exclusive",allowed_values_required:!1},{probe_id:"search-invalid-field",command:"search",flag:"--fields",rejected_value:l,refusal_args:["search","Domain query","--fields",l],allowed_values:j(),suggested_retry_args:["search","Domain query","--fields","id,title,status,score"],error_code:"unknown_field_projection"}].sort((i,a)=>i.probe_id.localeCompare(a.probe_id))}function br(e,t){let r=z().find(i=>i.command===e&&i.flag===t);if(!r)return"No stable core values are declared.";let n=r.allowed_values.filter(i=>!i.startsWith("item.")),o=t==="--fields"?" item.<field> aliases and configured runtime metadata fields are also accepted.":" Configured package and workspace intents may extend this domain.";return`Allowed core values: ${n.join("|")}.${o}`}(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]="941a11a9-f756-56b3-9dc1-8afd78bc9328")}catch{}})();var y=[{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 xr(){return y.map(e=>({...e}))}function N(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 n=t.suggested_retry_args.indexOf("init"),o=n===0||n===2&&t.suggested_retry_args[0]==="--pm-path"&&t.suggested_retry_args[1]?.length>0;return e.recovery_kind==="initialize"&&!o&&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 wr(e){let t=new Map(e.map(o=>[o.probe_id,o])),r=[],n=0;for(let o of y){let i=t.get(o.probe_id);if(i===void 0){r.push({code:"missing_probe",probe_id:o.probe_id,detail:"No runtime observation was supplied for this contract."});continue}let a=N(o,i);r.push(...a),a.length===0&&(n+=1)}return r.sort((o,i)=>o.probe_id.localeCompare(i.probe_id)||o.code.localeCompare(i.code)),{ok:r.length===0,probe_count:y.length,closed_probe_count:n,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]="8bdc03e5-c5cd-5842-b438-cf7bc79863f0")}catch{}})();export{J as ACTIVITY_COMMANDER_STRING_OPTION_CONTRACTS,Ot as ACTIVITY_FLAG_CONTRACTS,pe as AGGREGATE_FLAG_CONTRACTS,Qe as APPEND_FLAG_CONTRACTS,bt as ASSURANCE_FLAG_CONTRACTS,L as CALENDAR_COMMANDER_STRING_OPTION_CONTRACTS,Tt as CALENDAR_FLAG_CONTRACTS,Ze as CLAIM_FLAG_CONTRACTS,_i as CLOSE_ACTION_OPTION_KEYS,Ve as CLOSE_FLAG_CONTRACTS,We as CLOSE_MANY_FLAG_CONTRACTS,nt as CLOSE_TASK_FLAG_CONTRACTS,_e as COMMENTS_FLAG_CONTRACTS,Lt as COMPLETION_FLAG_CONTRACTS,Oe as CONFIG_FLAG_CONTRACTS,q as CONTEXT_COMMANDER_STRING_OPTION_CONTRACTS,Dt as CONTEXT_FLAG_CONTRACTS,Rt as CONTRACTS_FLAG_CONTRACTS,Ct as COPY_FLAG_CONTRACTS,ki as CREATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,vi as CREATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,Ci as CREATE_COMMANDER_STRING_OPTION_CONTRACTS,ht as CREATE_FLAG_CONTRACTS,tt as DELETE_FLAG_CONTRACTS,It as DEPS_FLAG_CONTRACTS,ye as DOCS_FLAG_CONTRACTS,mt as DUPLICATES_FLAG_CONTRACTS,Pt as EVAL_FLAG_CONTRACTS,Et as EVENTS_FLAG_CONTRACTS,at as EVENT_FLAG_CONTRACTS,Gt as EXECUTABLE_COMMAND_ALIASES,Re as EXTENSION_ACTIVATE_FLAG_CONTRACTS,Ae as EXTENSION_ADOPT_ALL_FLAG_CONTRACTS,Ke as EXTENSION_ADOPT_FLAG_CONTRACTS,Ue as EXTENSION_CATALOG_FLAG_CONTRACTS,Le as EXTENSION_DEACTIVATE_FLAG_CONTRACTS,Ne as EXTENSION_DESCRIBE_FLAG_CONTRACTS,Ge as EXTENSION_DOCTOR_FLAG_CONTRACTS,ze as EXTENSION_EXPLORE_FLAG_CONTRACTS,Ee as EXTENSION_FLAG_CONTRACTS,Fe as EXTENSION_INIT_FLAG_CONTRACTS,Me as EXTENSION_INSTALL_FLAG_CONTRACTS,Be as EXTENSION_MANAGE_FLAG_CONTRACTS,qe as EXTENSION_MIGRATE_FLAG_CONTRACTS,Je as EXTENSION_RELOAD_FLAG_CONTRACTS,De as EXTENSION_SCOPE_FLAG_CONTRACTS,Pe as EXTENSION_UNINSTALL_FLAG_CONTRACTS,ge as FILES_FLAG_CONTRACTS,vt as FOCUS_FLAG_CONTRACTS,_t as GC_FLAG_CONTRACTS,Ft as GET_FLAG_CONTRACTS,le as GLOBAL_FLAG_CONTRACTS,Mt as GRAPH_FLAG_CONTRACTS,St as GUIDE_FLAG_CONTRACTS,gt as HEALTH_FLAG_CONTRACTS,ke as HISTORY_AUTHOR_ACKNOWLEDGE_FLAG_CONTRACTS,Ce as HISTORY_COMPACT_FLAG_CONTRACTS,be as HISTORY_FLAG_CONTRACTS,xe as HISTORY_REDACT_FLAG_CONTRACTS,we as HISTORY_REPAIR_FLAG_CONTRACTS,Te as INIT_FLAG_CONTRACTS,Xe as INSTALL_FLAG_CONTRACTS,wt as ITEM_COMPLETE_FLAG_CONTRACTS,xt as ITEM_MUTATE_FLAG_CONTRACTS,kt as ITEM_REOPEN_FLAG_CONTRACTS,me as LEARNINGS_FLAG_CONTRACTS,A as LIST_COMMANDER_STRING_OPTION_CONTRACTS,ue as LIST_FILTER_FLAG_CONTRACTS,dt as MEET_FLAG_CONTRACTS,he as MERGE_FLAG_CONTRACTS,eo as MERGE_SUBCOMMAND_VALUES,B as NEXT_COMMANDER_STRING_OPTION_CONTRACTS,Nt as NEXT_FLAG_CONTRACTS,fe as NOTES_FLAG_CONTRACTS,Se as PACKAGE_FLAG_CONTRACTS,Ie as PACKAGE_INIT_FLAG_CONTRACTS,rt as PAUSE_TASK_FLAG_CONTRACTS,pi as PLAN_CREATE_METADATA_PARAMETER_KEYS,$e as PLAN_FLAG_CONTRACTS,te as PM_CLI_GRAMMAR_CONTRACT,X as PM_CLI_GRAMMAR_NOUNS,io as PM_CLI_ONLY_TOOL_ACTION_WAIVERS,Y as PM_CLI_SHARED_VERBS,Jt as PM_COMMAND_ALIAS_CONTRACTS,Z as PM_COMMAND_DESTINATION_CONTRACTS,Di as PM_COMMAND_EXIT_CONTRACTS,Ei as PM_COMMAND_EXIT_OUTCOME_CONTRACTS,qo as PM_COMMAND_OUTPUT_BUDGET_CONTRACTS,or as PM_COMMAND_OUTPUT_ENVELOPE_CONTRACTS,ee as PM_COMMAND_POSITIONAL_CONTRACTS,g as PM_CONTEXT_INTENT_CONTRACTS,Zt as PM_CORE_COMMAND_NAMES,no as PM_DEPRECATED_TOOL_ACTIONS,zo as PM_DIAGNOSTIC_DEGRADATION_STEPS,No as PM_DIAGNOSTIC_OUTPUT_BUDGET_CONTRACTS,Po as PM_DIAGNOSTIC_OUTPUT_CLASSES,ao as PM_DISCOVERABLE_TOOL_ACTIONS,Vi as PM_ERROR_CODE_CATALOG,Ki as PM_ERROR_CODE_EXIT_CLASS_CONTRACTS,Xt as PM_EXTENSION_CAPABILITY_CONTRACTS,to as PM_EXTENSION_PACKAGE_ACTION_SUBCOMMANDS,Ht as PM_EXTENSION_POLICY_MODE_CONTRACTS,Qt as PM_EXTENSION_POLICY_SURFACE_CONTRACTS,Wt as PM_EXTENSION_SANDBOX_PROFILE_CONTRACTS,Yt as PM_EXTENSION_SERVICE_NAME_CONTRACTS,Vt as PM_EXTENSION_TRUST_MODE_CONTRACTS,oo as PM_ITEM_ACTION_SUBCOMMANDS,Mo as PM_OUTPUT_BUDGET_CLASSES,Io as PM_OUTPUT_DEGRADATION_STEPS,er as PM_OUTPUT_ENVELOPE_KINDS,H as PM_POSITIONAL_ACTION_CONTRACTS,xi as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA,bi as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA_VERSION,Qo as PM_READ_OUTPUT_COMPOSITION_OPTION_FLAGS,Ho as PM_READ_OUTPUT_DIMENSIONS,Wo as PM_READ_OUTPUT_OPTION_FLAGS,Vo as PM_READ_OUTPUT_SURFACES,Zo as PM_READ_OUTPUT_SURFACE_CONTRACTS,Fi as PM_SUCCESS_EXIT_CODES,ro as PM_TOOL_ACTIONS,fi as PM_TOOL_ACTION_PARAMETER_CONTRACTS,hi as PM_TOOL_PARAMETERS_SCHEMA,yi as PM_TOOL_PARAMETERS_SCHEMA_MAJOR,gi as PM_TOOL_PARAMETERS_SCHEMA_VERSION,li as PM_TOOL_RESERVED_CUSTOM_FIELD_PROPERTIES,je as PROFILE_FLAG_CONTRACTS,He as REINDEX_FLAG_CONTRACTS,ot as RELEASE_FLAG_CONTRACTS,st as REMIND_FLAG_CONTRACTS,et as RESTORE_FLAG_CONTRACTS,ve as SCHEMA_FLAG_CONTRACTS,R as SEARCH_COMMANDER_STRING_OPTION_CONTRACTS,At as SEARCH_FLAG_CONTRACTS,it as START_TASK_FLAG_CONTRACTS,ft as STATS_FLAG_CONTRACTS,ce as SUBCOMMAND_GLOBAL_FLAG_CONTRACTS,ut as TELEMETRY_FLAG_CONTRACTS,lt as TEST_ALL_FLAG_CONTRACTS,ct as TEST_FLAG_CONTRACTS,pt as TEST_RUNS_FLAG_CONTRACTS,Oo as TOOL_ACTIVITY_OPTION_CONTRACTS,go as TOOL_AGGREGATE_OPTION_CONTRACTS,vo as TOOL_BULK_MUTATION_FILTER_OPTION_CONTRACT_SOURCE,To as TOOL_CALENDAR_OPTION_CONTRACTS,$o as TOOL_CLOSE_MANY_FILTER_OPTION_CONTRACTS,Eo as TOOL_CONTEXT_OPTION_CONTRACTS,wo as TOOL_CREATE_OPTION_CONTRACTS,xo as TOOL_CREATE_OPTION_CONTRACT_SOURCE,Do as TOOL_DEPS_OPTION_CONTRACTS,Fo as TOOL_GRAPH_OPTION_CONTRACTS,mo as TOOL_LIST_FILTER_OPTION_CONTRACTS,yo as TOOL_SEARCH_FILTER_OPTION_CONTRACTS,ho as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACTS,bo as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACT_SOURCE,jo as TOOL_UPDATE_MANY_FILTER_OPTION_CONTRACTS,Co as TOOL_UPDATE_OPTION_CONTRACTS,ko as TOOL_UPDATE_OPTION_CONTRACT_SOURCE,ji as UPDATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,Ti as UPDATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,$i as UPDATE_COMMANDER_STRING_OPTION_CONTRACTS,jt as UPDATE_FLAG_CONTRACTS,$t as UPDATE_MANY_FLAG_CONTRACTS,Ye as UPGRADE_FLAG_CONTRACTS,yt as VALIDATE_FLAG_CONTRACTS,zt as WORKSPACE_FLAG_CONTRACTS,wi as _testOnlyCliContracts,Pi as analyzePmCommandExitConformance,so as analyzePmToolActionParity,Oi as analyzeSdkCliParameterCompleteness,qi as applyContextIntentProjection,ai as applyReadOutputDimensions,ii as applyReadOutputIncludeModes,Gi as attachContextIntentReceipt,Zi as attachOutputTokenAccounting,Ui as attachReadOutputContracts,mi as buildPmActionToolInputSchema,se as compactFlagAliasContracts,Ri as composeContextIntentContracts,Ji as contextIntentRowId,Ro as createPmCommandOutputBudget,Bi as decodeContextIntentCursor,Yo as decodeReadOutputContinuationCursor,Lo as definePmCommandOutputBudget,tr as definePmCommandOutputEnvelope,Xi as definePmErrorCodeCatalog,zi as derivePmBulkMutationEffect,Xo as encodeReadOutputContinuationCursor,Wi as enrichCliFlagInvocationContract,x as enrichCliFlagInvocationContracts,Jo as estimatePmOutputTokens,Q as formatPmPositionalActionFlagTip,Ni as getActiveContextIntentContracts,b as hasSubcommandFlagContractsForCommand,Ao as inferPmOutputBudgetClass,lo as isPmExtensionCapabilityContract,po as isPmExtensionPolicyModeContract,_o as isPmExtensionPolicySurfaceContract,uo as isPmExtensionServiceNameContract,Ii as isPmKnownExitCode,rr as isPmMutationReceipt,Si as isPmSuccessfulExitCode,co as isPmToolAction,si as isReadOutputBudgetExceeded,z as listCoreClosedDomainContracts,T as listPmCommandFlagBudgets,p as listPmFlagLexicon,cr as listPmFlagSpellingInventory,xr as listTrackerPreflightRecoveryContracts,ri as normalizeReadOutputIncludeModeOptions,nr as parseMutationReceipt,ie as positionalShapeKey,re as positionalSignatureKey,Uo as projectPmDiagnosticOutput,Ko as projectPmDiagnosticText,G as readFirstStringFromCommanderOptions,U as readFirstValueFromCommanderOptions,oi as readOutputIncludeModeOptions,K as readStringArrayFromCommanderOptions,br as renderPmClosedDomainHelp,Kt as renderPmCommandAliasMigrationHint,ur as renderPmFlagLexiconMarkdown,Yi as resolveCanonicalPmErrorCodeContract,Li as resolveContextIntentContract,Ut as resolvePmCommandAlias,Mi as resolvePmCommandExitContract,Bo as resolvePmCommandOutputBudget,ir as resolvePmCommandOutputEnvelope,V as resolvePmCommandPositionalContract,Go as resolvePmDiagnosticOutputBudget,Hi as resolvePmErrorCodeContract,D as resolvePmFlagSemanticConcept,W as resolvePmPositionalActionContract,qt as resolvePmPositionalActionFlagContracts,ui as resolvePmToolCustomFieldCollision,ni as resolveReadOutputDimensions,ci as resolveReadOutputEncoding,So as resolveReadOutputRecoveryBudget,ei as resolveReadOutputSurface,h as resolveSubcommandFlagContractsForCommand,Ai as runWithContextIntentContracts,fr as scorePmRefusalClosure,wr as scoreTrackerPreflightRecoveryClosure,di as stabilizeReadOutputReceiptEstimates,Bt as toCompletionFlagString,ti as validateReadOutputOptions,Qi as verifyCliFlagInvocationParity,oe as verifyExplicitPositionalSlotCensus,de as verifyPmCliGrammar,ne as verifyPmCommandPositionalContracts,lr as verifyPmFlagLexicon,fo as verifyToolOptionCliParity,ae as withFlagAliasMetadata};
3
3
  //# sourceMappingURL=sdk-contracts.js.map