@unbrained/pm-cli 2026.8.21 → 2026.8.22

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 (158) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/CHANGELOG.md +16 -0
  3. package/dist/cli/error-guidance.d.ts +9 -4
  4. package/dist/cli/error-guidance.js +16 -15
  5. package/dist/cli/main.d.ts +3 -0
  6. package/dist/cli/main.js +40 -7
  7. package/dist/cli-bundle/bundle-manifest.json +153 -153
  8. package/dist/cli-bundle/chunks/{chunk-BKYB45NQ.js → chunk-BWX4SK46.js} +48 -48
  9. package/dist/cli-bundle/chunks/chunk-EMWDM5FI.js +13 -0
  10. package/dist/cli-bundle/chunks/chunk-HYG6LRL4.js +200 -0
  11. package/dist/cli-bundle/chunks/{chunk-LARJJ3RK.js → chunk-MYYI3ZOA.js} +2 -2
  12. package/dist/cli-bundle/chunks/{chunk-BUNIEJNE.js → chunk-MZTZQTMS.js} +2 -2
  13. package/dist/cli-bundle/chunks/{chunk-LOVTQ52Z.js → chunk-QI2CT3IX.js} +2 -2
  14. package/dist/cli-bundle/chunks/chunk-SMWXHMVB.js +35 -0
  15. package/dist/cli-bundle/chunks/{chunk-N3DSV4CH.js → chunk-U6GQ4VMV.js} +6 -6
  16. package/dist/cli-bundle/chunks/{chunk-3AFAUHUE.js → chunk-VMMIL3SI.js} +2 -2
  17. package/dist/cli-bundle/chunks/chunk-WG4STC36.js +5 -0
  18. package/dist/cli-bundle/chunks/{chunk-JSLOFXGA.js → chunk-YBPJAOQQ.js} +2 -2
  19. package/dist/cli-bundle/chunks/{register-list-query-F57EWDEF.js → register-list-query-HZKBQNWW.js} +2 -2
  20. package/dist/cli-bundle/chunks/{register-mutation-7IY2D5KO.js → register-mutation-HTKEEGRD.js} +2 -2
  21. package/dist/cli-bundle/chunks/{register-operations-FALL3YTU.js → register-operations-6EMRWJJY.js} +2 -2
  22. package/dist/cli-bundle/chunks/{register-setup-HXU7IZZD.js → register-setup-QK4OTOXN.js} +2 -2
  23. package/dist/cli-bundle/focused-chunks/{chunk-FJ22HNRP.js → chunk-2ARQGDDW.js} +2 -2
  24. package/dist/cli-bundle/focused-chunks/{chunk-CKKQSJNN.js → chunk-2AZT5WXZ.js} +2 -2
  25. package/dist/cli-bundle/focused-chunks/{chunk-F4YEW5I2.js → chunk-2POVTNLY.js} +2 -2
  26. package/dist/cli-bundle/focused-chunks/chunk-3LKU6PTJ.js +4 -0
  27. package/dist/cli-bundle/focused-chunks/chunk-5SHSBMX2.js +2 -0
  28. package/dist/cli-bundle/focused-chunks/{chunk-FH6DYED3.js → chunk-6S2MO3Q3.js} +2 -2
  29. package/dist/cli-bundle/focused-chunks/{chunk-UZE7XUZK.js → chunk-A2BC5PQL.js} +2 -2
  30. package/dist/cli-bundle/focused-chunks/chunk-C4S4A4JJ.js +5 -0
  31. package/dist/cli-bundle/focused-chunks/{chunk-KDNG7TKQ.js → chunk-D6RBZEJJ.js} +2 -2
  32. package/dist/cli-bundle/focused-chunks/chunk-E2EWYPY6.js +16 -0
  33. package/dist/cli-bundle/focused-chunks/{chunk-4ERLO7QD.js → chunk-GMYPD4FX.js} +2 -2
  34. package/dist/cli-bundle/focused-chunks/chunk-L5LDSRO2.js +155 -0
  35. package/dist/cli-bundle/focused-chunks/{chunk-ZOSEELYJ.js → chunk-MB37AYN6.js} +2 -2
  36. package/dist/cli-bundle/focused-chunks/chunk-MCOR37QK.js +2 -0
  37. package/dist/cli-bundle/focused-chunks/{chunk-2NIY5NKG.js → chunk-PH2OXXVZ.js} +2 -2
  38. package/dist/cli-bundle/focused-chunks/{chunk-YKBKIEAJ.js → chunk-PMGJUFNQ.js} +2 -2
  39. package/dist/cli-bundle/focused-chunks/chunk-R6SR45XU.js +50 -0
  40. package/dist/cli-bundle/focused-chunks/chunk-WZE4LIPW.js +8 -0
  41. package/dist/cli-bundle/main.js +13 -13
  42. package/dist/cli-bundle/sdk-authoring.js +1 -1
  43. package/dist/cli-bundle/sdk-contracts.js +2 -2
  44. package/dist/cli-bundle/sdk-core.js +40 -40
  45. package/dist/cli-bundle/sdk-governance.js +1 -1
  46. package/dist/cli-bundle/sdk-graph.js +1 -1
  47. package/dist/cli-bundle/sdk-merge.js +32 -32
  48. package/dist/cli-bundle/sdk-query.js +1 -1
  49. package/dist/cli-bundle/sdk-runtime.js +1 -1
  50. package/dist/cli-bundle/sdk-testing.js +1 -1
  51. package/dist/cli-bundle/sdk.js +5 -5
  52. package/dist/core/extensions/extension-hook-runtime.js +22 -20
  53. package/dist/core/extensions/extension-types.d.ts +8 -1
  54. package/dist/core/extensions/extension-types.js +2 -2
  55. package/dist/core/extensions/loader.js +7 -3
  56. package/dist/core/extensions/service-ownership.d.ts +8 -0
  57. package/dist/core/extensions/service-ownership.js +20 -0
  58. package/dist/core/item/id.js +20 -5
  59. package/dist/core/item/item-format.js +27 -2
  60. package/dist/core/shared/errors.d.ts +4 -0
  61. package/dist/core/shared/errors.js +2 -2
  62. package/dist/sdk/agent/refusal-reachability.d.ts +1 -1
  63. package/dist/sdk/authoring.d.ts +1 -1
  64. package/dist/sdk/authoring.js +2 -2
  65. package/dist/sdk/cli-contracts/agent-output-contracts.d.ts +77 -0
  66. package/dist/sdk/cli-contracts/agent-output-contracts.js +324 -2
  67. package/dist/sdk/cli-contracts/commander-mutation-options.js +3 -3
  68. package/dist/sdk/cli-contracts/runtime-contracts.d.ts +3 -1
  69. package/dist/sdk/cli-contracts/runtime-contracts.js +4 -3
  70. package/dist/sdk/cli-contracts.d.ts +1 -1
  71. package/dist/sdk/cli-contracts.js +3 -3
  72. package/dist/sdk/extension/install-sources.d.ts +1 -1
  73. package/dist/sdk/extension/install-sources.js +6 -3
  74. package/dist/sdk/extension/output-ownership.d.ts +1 -0
  75. package/dist/sdk/extension/output-ownership.js +3 -2
  76. package/dist/sdk/generated/generated-error-code-catalog-part-1.js +38 -14
  77. package/dist/sdk/generated/generated-error-code-catalog-part-2.js +14 -2
  78. package/dist/sdk/governance/health.d.ts +3 -0
  79. package/dist/sdk/governance/health.js +39 -7
  80. package/dist/sdk/governance/hierarchy-validation.d.ts +29 -0
  81. package/dist/sdk/governance/hierarchy-validation.js +109 -0
  82. package/dist/sdk/governance/validate.d.ts +1 -7
  83. package/dist/sdk/governance/validate.js +47 -99
  84. package/dist/sdk/graph/assembly.d.ts +6 -1
  85. package/dist/sdk/graph/assembly.js +16 -22
  86. package/dist/sdk/graph/governance-contracts.d.ts +1 -1
  87. package/dist/sdk/graph/governance-contracts.js +8 -2
  88. package/dist/sdk/graph/governance.js +46 -2
  89. package/dist/sdk/graph/hierarchy-integrity.d.ts +94 -0
  90. package/dist/sdk/graph/hierarchy-integrity.js +311 -0
  91. package/dist/sdk/graph/index.d.ts +2 -1
  92. package/dist/sdk/graph/index.js +3 -2
  93. package/dist/sdk/graph/remediation.js +32 -2
  94. package/dist/sdk/graph/run.d.ts +31 -2
  95. package/dist/sdk/graph/run.js +80 -31
  96. package/dist/sdk/graph/workspace-relationship-kind-registry.d.ts +8 -0
  97. package/dist/sdk/graph/workspace-relationship-kind-registry.js +28 -0
  98. package/dist/sdk/index.d.ts +2 -2
  99. package/dist/sdk/index.js +3 -3
  100. package/dist/sdk/item-children.js +21 -8
  101. package/dist/sdk/lifecycle/create.js +125 -96
  102. package/dist/sdk/lifecycle/hierarchy-mutation-lock.d.ts +15 -0
  103. package/dist/sdk/lifecycle/hierarchy-mutation-lock.js +25 -0
  104. package/dist/sdk/lifecycle/update.d.ts +2 -0
  105. package/dist/sdk/lifecycle/update.js +171 -83
  106. package/dist/sdk/query/complete-list.d.ts +3 -3
  107. package/dist/sdk/query/complete-list.js +46 -3
  108. package/dist/sdk/query/list.d.ts +4 -3
  109. package/dist/sdk/query/list.js +89 -49
  110. package/dist/sdk/read-output-contracts.d.ts +5 -1
  111. package/dist/sdk/read-output-contracts.js +87 -22
  112. package/dist/sdk/relationship-context.js +3 -4
  113. package/dist/sdk/relationships.js +17 -10
  114. package/dist/sdk/runtime.d.ts +3 -2
  115. package/dist/sdk/runtime.js +3 -2
  116. package/dist/sdk/test/batch.js +13 -5
  117. package/dist/sdk/test/execution.js +10 -2
  118. package/dist/types.d.ts +11 -0
  119. package/dist/types.js +2 -2
  120. package/docs/AGENT_UX_CONTRACTS.md +20 -4
  121. package/docs/COMMANDS.md +29 -14
  122. package/docs/DEPENDENCY_KIND_CONTRACT.md +31 -3
  123. package/docs/DIAGNOSTIC_OUTPUT_CONTRACTS.md +98 -0
  124. package/docs/EXTENSIONS.md +2 -1
  125. package/docs/README.md +1 -0
  126. package/docs/READ_OUTPUT_CONTRACTS.md +9 -2
  127. package/docs/RELATIONSHIP_GRAPH.md +6 -3
  128. package/docs/TESTING.md +15 -0
  129. package/marketplace.json +2 -2
  130. package/package.json +1 -1
  131. package/packages/pm-beads/package.json +1 -1
  132. package/packages/pm-calendar/package.json +1 -1
  133. package/packages/pm-command-kit/package.json +1 -1
  134. package/packages/pm-digital-twin/package.json +1 -1
  135. package/packages/pm-governance-audit/package.json +1 -1
  136. package/packages/pm-guide-shell/package.json +1 -1
  137. package/packages/pm-kanban/package.json +1 -1
  138. package/packages/pm-lifecycle-hooks/package.json +1 -1
  139. package/packages/pm-linked-test-adapters/package.json +1 -1
  140. package/packages/pm-search-advanced/package.json +1 -1
  141. package/packages/pm-templates/package.json +1 -1
  142. package/packages/pm-todos/package.json +1 -1
  143. package/packages/pm-vcs/package.json +1 -1
  144. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
  145. package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
  146. package/sdk/public-surface.json +593 -35
  147. package/dist/cli-bundle/chunks/chunk-2MA6ZQVZ.js +0 -197
  148. package/dist/cli-bundle/chunks/chunk-7VHZS727.js +0 -5
  149. package/dist/cli-bundle/chunks/chunk-OCLPLFAY.js +0 -35
  150. package/dist/cli-bundle/chunks/chunk-S4IRYKBU.js +0 -13
  151. package/dist/cli-bundle/focused-chunks/chunk-7WZRLCYF.js +0 -50
  152. package/dist/cli-bundle/focused-chunks/chunk-EEFKYMDR.js +0 -16
  153. package/dist/cli-bundle/focused-chunks/chunk-F2A56DHV.js +0 -8
  154. package/dist/cli-bundle/focused-chunks/chunk-FV5ACOK7.js +0 -2
  155. package/dist/cli-bundle/focused-chunks/chunk-JEAVFOWM.js +0 -2
  156. package/dist/cli-bundle/focused-chunks/chunk-NJ63LOP6.js +0 -155
  157. package/dist/cli-bundle/focused-chunks/chunk-NXRTQ7HI.js +0 -2
  158. package/dist/cli-bundle/focused-chunks/chunk-TJ7EMJ46.js +0 -4
@@ -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-ZOSEELYJ.js";import{a as T,b as M,c as B,d as N,u as J}from"./focused-chunks/chunk-KDNG7TKQ.js";import"./focused-chunks/chunk-CKKQSJNN.js";import"./focused-chunks/chunk-F4YEW5I2.js";import"./focused-chunks/chunk-FJ22HNRP.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-TJ7EMJ46.js";import{b as Ce,c as we,d as Ie}from"./focused-chunks/chunk-JEAVFOWM.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]="6260572c-1496-58ef-9377-0825f4183bc6")}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-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};
2
2
  //# sourceMappingURL=sdk-authoring.js.map
@@ -1,3 +1,3 @@
1
- import{a as wi,b as ki,c as Ci,d as vi,e as ji,f as $i,g as Ti,h as Oi,i as Ai,j as Ri,k as Li,l as qi,m as Bi,n as Ji,o as x,p as Gi,q as w,t as Ki,u as Xi,v as Yi,w as Hi,x as Vi,y as Wi}from"./focused-chunks/chunk-NXRTQ7HI.js";import{a as fi,b as mi,c as gi,d as yi,e as bi,f as hi,g as xi}from"./focused-chunks/chunk-YKBKIEAJ.js";import{A as Do,B as oi,C as ii,D as ri,E as ni,F as di,H as si,I as ai,J as ci,K as li,L as ui,M as pi,N as _i,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-CKKQSJNN.js";import{c as k,d as C,f as v,h as j}from"./focused-chunks/chunk-UZE7XUZK.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-FJ22HNRP.js";import{g,h as Ei,i as Di,j as Fi,k as Si,l as Ii,m as Mi,n as Pi,o as zi,p as Ni,q as Ui}from"./focused-chunks/chunk-FH6DYED3.js";import{$a as Bo,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,Y as m,_a as qo,ab as Jo,bb as Go,cb as Uo,db as Ko,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,oa as Zt,qa as eo,ra as to,sa as oo,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-JEAVFOWM.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 tr(){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 or(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 ir(){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 dr(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 lr(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 pr(){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 _r(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,ni 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,fi as CREATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,gi as CREATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,mi 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,ri 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,ki as PM_COMMAND_EXIT_CONTRACTS,wi as PM_COMMAND_EXIT_OUTCOME_CONTRACTS,zo as PM_COMMAND_OUTPUT_BUDGET_CONTRACTS,Yi 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,no as PM_DISCOVERABLE_TOOL_ACTIONS,Bi as PM_ERROR_CODE_CATALOG,Ai 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,Ki as PM_OUTPUT_ENVELOPE_KINDS,H as PM_POSITIONAL_ACTION_CONTRACTS,pi as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA,li as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA_VERSION,Go as PM_READ_OUTPUT_COMPOSITION_OPTION_FLAGS,qo as PM_READ_OUTPUT_DIMENSIONS,Jo as PM_READ_OUTPUT_OPTION_FLAGS,Bo as PM_READ_OUTPUT_SURFACES,Uo as PM_READ_OUTPUT_SURFACE_CONTRACTS,Ci as PM_SUCCESS_EXIT_CODES,io as PM_TOOL_ACTIONS,di as PM_TOOL_ACTION_PARAMETER_CONTRACTS,ui as PM_TOOL_PARAMETERS_SCHEMA,ci as PM_TOOL_PARAMETERS_SCHEMA_MAJOR,ai as PM_TOOL_PARAMETERS_SCHEMA_VERSION,oi 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,yi as UPDATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,hi as UPDATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,bi 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,_i as _testOnlyCliContracts,Ti as analyzePmCommandExitConformance,so as analyzePmToolActionParity,xi as analyzeSdkCliParameterCompleteness,Ii as applyContextIntentProjection,Zo as applyReadOutputDimensions,Ho as applyReadOutputIncludeModes,zi as attachContextIntentReceipt,Ui as attachOutputTokenAccounting,Ni as attachReadOutputContracts,si as buildPmActionToolInputSchema,ae as compactFlagAliasContracts,Fi as composeContextIntentContracts,Pi as contextIntentRowId,Mo as createPmCommandOutputBudget,Mi as decodeContextIntentCursor,Lo as decodeReadOutputContinuationCursor,Po as definePmCommandOutputBudget,Xi as definePmCommandOutputEnvelope,Ri as definePmErrorCodeCatalog,Oi as derivePmBulkMutationEffect,Ro as encodeReadOutputContinuationCursor,Ji as enrichCliFlagInvocationContract,x as enrichCliFlagInvocationContracts,Ao as estimatePmOutputTokens,Q as formatPmPositionalActionFlagTip,Ei as getActiveContextIntentContracts,b as hasSubcommandFlagContractsForCommand,Io as inferPmOutputBudgetClass,co as isPmExtensionCapabilityContract,uo as isPmExtensionPolicyModeContract,po as isPmExtensionPolicySurfaceContract,lo as isPmExtensionServiceNameContract,ji as isPmKnownExitCode,Vi as isPmMutationReceipt,vi as isPmSuccessfulExitCode,ao as isPmToolAction,ei as isReadOutputBudgetExceeded,z as listCoreClosedDomainContracts,T as listPmCommandFlagBudgets,p as listPmFlagLexicon,tr as listPmFlagSpellingInventory,pr as listTrackerPreflightRecoveryContracts,Vo as normalizeReadOutputIncludeModeOptions,Wi as parseMutationReceipt,ie as positionalShapeKey,re as positionalSignatureKey,G as readFirstStringFromCommanderOptions,U as readFirstValueFromCommanderOptions,Yo as readOutputIncludeModeOptions,K as readStringArrayFromCommanderOptions,lr as renderPmClosedDomainHelp,Kt as renderPmCommandAliasMigrationHint,ir as renderPmFlagLexiconMarkdown,Li as resolveCanonicalPmErrorCodeContract,Si as resolveContextIntentContract,Ut as resolvePmCommandAlias,$i as resolvePmCommandExitContract,No as resolvePmCommandOutputBudget,Hi as resolvePmCommandOutputEnvelope,V as resolvePmCommandPositionalContract,qi as resolvePmErrorCodeContract,D as resolvePmFlagSemanticConcept,W as resolvePmPositionalActionContract,qt as resolvePmPositionalActionFlagContracts,ii as resolvePmToolCustomFieldCollision,Wo as resolveReadOutputDimensions,ti as resolveReadOutputEncoding,Ko as resolveReadOutputSurface,h as resolveSubcommandFlagContractsForCommand,Di as runWithContextIntentContracts,dr as scorePmRefusalClosure,_r as scoreTrackerPreflightRecoveryClosure,Qo as stabilizeReadOutputReceiptEstimates,Bt as toCompletionFlagString,Xo as validateReadOutputOptions,Gi as verifyCliFlagInvocationParity,oe as verifyExplicitPositionalSlotCensus,de as verifyPmCliGrammar,ne as verifyPmCommandPositionalContracts,or as verifyPmFlagLexicon,_o as verifyToolOptionCliParity,se as withFlagAliasMetadata};
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};
3
3
  //# sourceMappingURL=sdk-contracts.js.map