@unbrained/pm-cli 2026.8.24 → 2026.8.26

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