@unbrained/pm-cli 2026.8.25 → 2026.8.27

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 (206) hide show
  1. package/.agents/skills/HARNESS_COMPATIBILITY.md +32 -0
  2. package/.agents/skills/README.md +47 -0
  3. package/.agents/skills/pm-developer/SKILL.md +117 -0
  4. package/.agents/skills/pm-developer/references/COMMAND_PLAYBOOK.md +49 -0
  5. package/.agents/skills/pm-developer/references/GRAPH_AND_RELATIONSHIPS.md +91 -0
  6. package/.agents/skills/pm-developer/references/MULTI_AGENT_MERGE.md +72 -0
  7. package/.agents/skills/pm-developer/references/PROMPTS.md +17 -0
  8. package/.agents/skills/pm-developer/references/SCRIPTING_COMPOSITION.md +82 -0
  9. package/.agents/skills/pm-developer/references/TOKEN_BUDGETS.md +85 -0
  10. package/.agents/skills/pm-extensions/SKILL.md +106 -0
  11. package/.agents/skills/pm-extensions/references/AUTHORING.md +95 -0
  12. package/.agents/skills/pm-extensions/references/LIFECYCLE.md +40 -0
  13. package/.agents/skills/pm-extensions/references/TROUBLESHOOTING.md +25 -0
  14. package/.agents/skills/pm-sdk/SKILL.md +107 -0
  15. package/.agents/skills/pm-sdk/references/DOMAIN_MODELING.md +78 -0
  16. package/.agents/skills/pm-sdk/references/INTEGRATION_CHECKLIST.md +31 -0
  17. package/.agents/skills/pm-sdk/references/PROMPTS.md +13 -0
  18. package/.agents/skills/pm-sdk/references/SURFACE_MAP.md +82 -0
  19. package/.agents/skills/pm-user/SKILL.md +111 -0
  20. package/.agents/skills/pm-user/references/BACKLOG_SHAPING.md +105 -0
  21. package/.agents/skills/pm-user/references/PROMPTS.md +17 -0
  22. package/.agents/skills/pm-user/references/WORKFLOWS.md +35 -0
  23. package/.claude-plugin/marketplace.json +2 -2
  24. package/CHANGELOG.md +58 -3
  25. package/README.md +8 -5
  26. package/dist/cli/commander-usage.js +11 -7
  27. package/dist/cli/error-guidance.js +3 -3
  28. package/dist/cli/help-content.d.ts +2 -0
  29. package/dist/cli/help-content.js +53 -17
  30. package/dist/cli/help-json-payload.d.ts +8 -2
  31. package/dist/cli/help-json-payload.js +46 -12
  32. package/dist/cli/main.js +52 -74
  33. package/dist/cli/register-annotations.js +27 -21
  34. package/dist/cli/register-setup.js +98 -57
  35. package/dist/cli-bundle/bundle-manifest.json +156 -156
  36. package/dist/cli-bundle/chunks/chunk-3OO3W6FW.js +202 -0
  37. package/dist/cli-bundle/chunks/chunk-52EKTW6V.js +3 -0
  38. package/dist/cli-bundle/chunks/{chunk-QLUORNIB.js → chunk-CVBBGWW5.js} +62 -44
  39. package/dist/cli-bundle/chunks/chunk-MFNTKMTI.js +13 -0
  40. package/dist/cli-bundle/chunks/chunk-OS27HHBN.js +35 -0
  41. package/dist/cli-bundle/chunks/chunk-QTO7USTH.js +2 -0
  42. package/dist/cli-bundle/chunks/{chunk-5I5RWIJC.js → chunk-R4ETAOJC.js} +2 -2
  43. package/dist/cli-bundle/chunks/{chunk-OWHNAR2B.js → chunk-SH6P7FXI.js} +2 -2
  44. package/dist/cli-bundle/chunks/chunk-SHMDY36D.js +8 -0
  45. package/dist/cli-bundle/chunks/{chunk-244MI4GS.js → chunk-SKXLJIEK.js} +60 -60
  46. package/dist/cli-bundle/chunks/chunk-TNX6HC54.js +3 -0
  47. package/dist/cli-bundle/chunks/{register-list-query-XVN2ZLI7.js → register-list-query-EUWM6VII.js} +2 -2
  48. package/dist/cli-bundle/chunks/{register-mutation-QCKAEGIJ.js → register-mutation-FD4HSAVU.js} +4 -4
  49. package/dist/cli-bundle/chunks/{register-operations-SDEAXE7E.js → register-operations-HRMNFEC3.js} +2 -2
  50. package/dist/cli-bundle/chunks/register-setup-33GNICLX.js +2 -0
  51. package/dist/cli-bundle/focused-chunks/{chunk-IBZZZGK3.js → chunk-2AGZ5BRT.js} +2 -2
  52. package/dist/cli-bundle/focused-chunks/chunk-4BR5UU52.js +50 -0
  53. package/dist/cli-bundle/focused-chunks/{chunk-OHIHZ7HS.js → chunk-6GCRSLPG.js} +2 -2
  54. package/dist/cli-bundle/focused-chunks/{chunk-OVJL6NZE.js → chunk-AD6ULRAF.js} +4 -4
  55. package/dist/cli-bundle/focused-chunks/{chunk-7YCDTCBC.js → chunk-AQ5IYEZZ.js} +2 -2
  56. package/dist/cli-bundle/focused-chunks/{chunk-YO3ZF3FI.js → chunk-EKX37ZHA.js} +2 -2
  57. package/dist/cli-bundle/focused-chunks/{chunk-N7W67YIG.js → chunk-FC2AXLB5.js} +2 -2
  58. package/dist/cli-bundle/focused-chunks/{chunk-H5JZEIQV.js → chunk-HC7ODMH3.js} +2 -2
  59. package/dist/cli-bundle/focused-chunks/{chunk-NOOZGIXP.js → chunk-HVQ22RC4.js} +2 -2
  60. package/dist/cli-bundle/focused-chunks/{chunk-A644DUFQ.js → chunk-MEASX544.js} +2 -2
  61. package/dist/cli-bundle/focused-chunks/{chunk-RAFKLNZX.js → chunk-MXTYGECH.js} +2 -2
  62. package/dist/cli-bundle/focused-chunks/{chunk-2UIWOP3O.js → chunk-SUBSWYW3.js} +2 -2
  63. package/dist/cli-bundle/focused-chunks/{chunk-VXWATRFL.js → chunk-XDPYBQCF.js} +9 -9
  64. package/dist/cli-bundle/focused-chunks/{chunk-XUQPEKRN.js → chunk-Y3JJXRVK.js} +2 -2
  65. package/dist/cli-bundle/focused-chunks/{chunk-GQR3WH3F.js → chunk-Y5A7SJJ7.js} +2 -2
  66. package/dist/cli-bundle/focused-chunks/chunk-YHWHX6YY.js +2 -0
  67. package/dist/cli-bundle/focused-chunks/{chunk-ONYQCALA.js → chunk-YVVZ3LQ6.js} +6 -6
  68. package/dist/cli-bundle/focused-chunks/chunk-Z2USIBR2.js +5 -0
  69. package/dist/cli-bundle/main.js +15 -14
  70. package/dist/cli-bundle/sdk-authoring.js +1 -1
  71. package/dist/cli-bundle/sdk-contracts.js +2 -2
  72. package/dist/cli-bundle/sdk-core.js +31 -31
  73. package/dist/cli-bundle/sdk-governance.js +1 -1
  74. package/dist/cli-bundle/sdk-graph.js +1 -1
  75. package/dist/cli-bundle/sdk-merge.js +31 -31
  76. package/dist/cli-bundle/sdk-query.js +1 -1
  77. package/dist/cli-bundle/sdk-runtime.js +1 -1
  78. package/dist/cli-bundle/sdk-testing.js +1 -1
  79. package/dist/cli-bundle/sdk.js +32 -6
  80. package/dist/core/extensions/manifest-schema.d.ts +20 -0
  81. package/dist/core/extensions/manifest-schema.js +28 -10
  82. package/dist/core/governance/issue-codes.d.ts +11 -2
  83. package/dist/core/governance/issue-codes.js +29 -10
  84. package/dist/core/item/item-format.js +3 -3
  85. package/dist/core/store/item-store.js +12 -5
  86. package/dist/mcp/http-server.d.ts +60 -0
  87. package/dist/mcp/http-server.js +451 -0
  88. package/dist/mcp/legacy-adapter.d.ts +50 -0
  89. package/dist/mcp/legacy-adapter.js +64 -0
  90. package/dist/mcp/server.d.ts +42 -9
  91. package/dist/mcp/server.js +572 -59
  92. package/dist/mcp/tool-definitions.d.ts +2 -0
  93. package/dist/mcp/tool-definitions.js +2 -2
  94. package/dist/sdk/agent/closed-domain-contracts.d.ts +1 -1
  95. package/dist/sdk/agent/closed-domain-contracts.js +24 -2
  96. package/dist/sdk/agent/refusal-closure-census.d.ts +6 -2
  97. package/dist/sdk/agent/refusal-closure-census.js +16 -8
  98. package/dist/sdk/agent-capability-contracts.js +6 -2
  99. package/dist/sdk/cli-bootstrap.js +3 -2
  100. package/dist/sdk/cli-contracts/command-aliases.js +15 -2
  101. package/dist/sdk/cli-contracts/enum-contracts.d.ts +4 -1
  102. package/dist/sdk/cli-contracts/enum-contracts.js +7 -2
  103. package/dist/sdk/cli-contracts/flag-contracts.js +9 -5
  104. package/dist/sdk/cli-contracts/grammar-contracts.d.ts +3 -3
  105. package/dist/sdk/cli-contracts/grammar-contracts.js +24 -17
  106. package/dist/sdk/cli-contracts/runtime-contracts.js +13 -11
  107. package/dist/sdk/cli-contracts/tool-schema.js +18 -15
  108. package/dist/sdk/cli-contracts.d.ts +1 -1
  109. package/dist/sdk/cli-contracts.js +3 -3
  110. package/dist/sdk/cli-program.js +3 -2
  111. package/dist/sdk/completion.js +40 -13
  112. package/dist/sdk/compose.d.ts +4 -1
  113. package/dist/sdk/compose.js +23 -36
  114. package/dist/sdk/extension/author-manifest.d.ts +22 -0
  115. package/dist/sdk/extension/author-manifest.js +93 -0
  116. package/dist/sdk/extension.js +6 -3
  117. package/dist/sdk/generated/generated-error-code-catalog-part-1.js +20 -5
  118. package/dist/sdk/generated/generated-error-code-catalog-part-2.js +18 -3
  119. package/dist/sdk/governance/health.js +7 -2
  120. package/dist/sdk/governance/upgrade.d.ts +2 -0
  121. package/dist/sdk/governance/upgrade.js +30 -8
  122. package/dist/sdk/governance/validate.js +8 -6
  123. package/dist/sdk/guide-topics.js +6 -6
  124. package/dist/sdk/index.d.ts +10 -2
  125. package/dist/sdk/index.js +11 -3
  126. package/dist/sdk/mcp/apps.d.ts +70 -0
  127. package/dist/sdk/mcp/apps.js +154 -0
  128. package/dist/sdk/mcp/authorization.d.ts +134 -0
  129. package/dist/sdk/mcp/authorization.js +405 -0
  130. package/dist/sdk/mcp/interactions.d.ts +118 -0
  131. package/dist/sdk/mcp/interactions.js +337 -0
  132. package/dist/sdk/mcp/protocol.d.ts +142 -0
  133. package/dist/sdk/mcp/protocol.js +174 -0
  134. package/dist/sdk/mcp/skills.d.ts +127 -0
  135. package/dist/sdk/mcp/skills.js +390 -0
  136. package/dist/sdk/mcp/subscriptions.d.ts +65 -0
  137. package/dist/sdk/mcp/subscriptions.js +212 -0
  138. package/dist/sdk/mcp/tasks.d.ts +107 -0
  139. package/dist/sdk/mcp/tasks.js +431 -0
  140. package/dist/sdk/mcp/transport.d.ts +30 -0
  141. package/dist/sdk/mcp/transport.js +261 -0
  142. package/dist/sdk/merge/receipts.d.ts +16 -0
  143. package/dist/sdk/merge/receipts.js +9 -8
  144. package/dist/sdk/read-output-contracts.js +16 -3
  145. package/dist/sdk/runtime-action-aliases.js +7 -3
  146. package/dist/sdk/runtime-input.js +12 -4
  147. package/dist/sdk/runtime-primitives.d.ts +2 -2
  148. package/dist/sdk/runtime-primitives.js +4 -4
  149. package/dist/sdk/test/execution.d.ts +6 -0
  150. package/dist/sdk/test/execution.js +32 -3
  151. package/docs/AGENT_PROVENANCE_ADR.md +6 -4
  152. package/docs/AGENT_RUNTIME_PRIMITIVES.md +6 -5
  153. package/docs/CLAUDE_CODE_PLUGIN.md +12 -5
  154. package/docs/CLI_GRAMMAR.md +7 -1
  155. package/docs/COMMANDS.md +2 -2
  156. package/docs/DIAGNOSTIC_OUTPUT_CONTRACTS.md +8 -0
  157. package/docs/EXTENSIONS.md +36 -36
  158. package/docs/MCP_2026_07_28.md +160 -0
  159. package/docs/MCP_2026_07_28_CONFORMANCE.md +30 -0
  160. package/docs/MCP_REMOTE_TRANSPORT_SECURITY.md +180 -0
  161. package/docs/MCP_SKILLS_AND_APPS.md +107 -0
  162. package/docs/QUICKSTART.md +15 -15
  163. package/docs/README.md +5 -0
  164. package/docs/RELEASING.md +12 -3
  165. package/docs/SDK.md +22 -1
  166. package/docs/SDK_AGENT_SESSION_CONTEXT.md +18 -13
  167. package/docs/SDK_CONTEXT_INTEGRITY.md +6 -0
  168. package/docs/SDK_EVIDENCE_TRACEABILITY.md +9 -1
  169. package/docs/SDK_MCP_INTERACTIONS.md +227 -0
  170. package/docs/TESTING.md +4 -0
  171. package/docs/generated/AGENT_CAPABILITY_ROUTING.md +1 -1
  172. package/docs/generated/REFUSAL_CLOSURE_CENSUS.md +13 -11
  173. package/marketplace.json +2 -2
  174. package/package.json +15 -11
  175. package/packages/pm-beads/README.md +12 -6
  176. package/packages/pm-beads/docs/MIGRATION.md +53 -0
  177. package/packages/pm-beads/extensions/beads/index.ts +8 -0
  178. package/packages/pm-beads/extensions/beads/runtime.ts +671 -112
  179. package/packages/pm-beads/package.json +1 -1
  180. package/packages/pm-calendar/package.json +1 -1
  181. package/packages/pm-command-kit/package.json +1 -1
  182. package/packages/pm-digital-twin/package.json +1 -1
  183. package/packages/pm-governance-audit/package.json +1 -1
  184. package/packages/pm-guide-shell/package.json +1 -1
  185. package/packages/pm-kanban/package.json +1 -1
  186. package/packages/pm-lifecycle-hooks/package.json +1 -1
  187. package/packages/pm-linked-test-adapters/package.json +1 -1
  188. package/packages/pm-search-advanced/package.json +1 -1
  189. package/packages/pm-templates/package.json +1 -1
  190. package/packages/pm-todos/package.json +1 -1
  191. package/packages/pm-vcs/package.json +1 -1
  192. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
  193. package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
  194. package/scripts/finalize-build.mjs +1 -0
  195. package/sdk/public-surface.json +902 -54
  196. package/dist/cli-bundle/chunks/chunk-2F3LUFMW.js +0 -8
  197. package/dist/cli-bundle/chunks/chunk-65MHLHAA.js +0 -2
  198. package/dist/cli-bundle/chunks/chunk-6C7GIMIL.js +0 -13
  199. package/dist/cli-bundle/chunks/chunk-QKGMHGEI.js +0 -202
  200. package/dist/cli-bundle/chunks/chunk-T2ENPRXF.js +0 -3
  201. package/dist/cli-bundle/chunks/chunk-TPQIBSL2.js +0 -3
  202. package/dist/cli-bundle/chunks/chunk-YQMYF3YD.js +0 -35
  203. package/dist/cli-bundle/chunks/register-setup-LXVBRCJ3.js +0 -2
  204. package/dist/cli-bundle/focused-chunks/chunk-42S3GGZ7.js +0 -50
  205. package/dist/cli-bundle/focused-chunks/chunk-7I23XGWO.js +0 -2
  206. package/dist/cli-bundle/focused-chunks/chunk-LMKG3DFE.js +0 -5
@@ -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-2UIWOP3O.js";import{a as T,b as M,c as B,d as N,u as J}from"./focused-chunks/chunk-XUQPEKRN.js";import"./focused-chunks/chunk-7YCDTCBC.js";import"./focused-chunks/chunk-NOOZGIXP.js";import"./focused-chunks/chunk-7I23XGWO.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-OVJL6NZE.js";import{b as Ce,c as we,d as Ie}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]="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-SUBSWYW3.js";import{a as M,b as B,c as D,d as N,u as Q}from"./focused-chunks/chunk-Y3JJXRVK.js";import"./focused-chunks/chunk-AQ5IYEZZ.js";import"./focused-chunks/chunk-HVQ22RC4.js";import"./focused-chunks/chunk-YHWHX6YY.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-AD6ULRAF.js";import{b as Ie,c as we,d as Se}from"./focused-chunks/chunk-Z2USIBR2.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 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-IBZZZGK3.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};
1
+ import{a as Si,b as Ii,c as Mi,d as Pi,e as zi,f as Ni,g as Ai,h as Ri,i as Hi,j as Vi,k as Wi,l as Qi,m as Zi,n as er,o as x,p as tr,q as w,u as ir,v as rr,w as nr,x as dr,y as ar,z as sr}from"./focused-chunks/chunk-2AGZ5BRT.js";import{a as ji,b as $i,c as Ti,d as Oi,e as Ei,f as Di,g as Fi}from"./focused-chunks/chunk-EKX37ZHA.js";import{A as So,B as _i,C as fi,D as mi,E as gi,F as yi,H as bi,I as hi,J as xi,K as wi,L as ki,M as vi,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 mo,k as go,l as yo,m as bo,n as ho,o as xo,p as wo,q as ko,r as vo,s as Co,t as jo,u as $o,v as To,w as Oo,x as Eo,y as Do,z as Fo}from"./focused-chunks/chunk-AQ5IYEZZ.js";import{c as k,d as v,f as C,h as j}from"./focused-chunks/chunk-MEASX544.js";import{$ as He,$a as h,A as ke,Aa as kt,B as ve,Ba as vt,C as Ce,Ca as Ct,D as je,Da as jt,E as $e,Ea as $t,F as Te,Fa as Tt,G as Oe,Ga as Ot,H as Ee,Ha as Et,I as De,Ia as Dt,J as Fe,Ja as Ft,K as Se,Ka as St,L as Ie,La as It,M as Me,Ma as Mt,N as Pe,Na as Pt,O as ze,Oa as zt,P as Ne,Pa as Nt,Q as Ae,Qa as At,R as Re,Ra as Rt,S as Le,Sa as Lt,T as qe,Ta as qt,U as Be,Ua as Bt,V as Je,Va as Jt,W as Ge,Wa as Gt,X as Ue,Y as Ke,Ya as Ut,Z as Xe,_ as Ye,_a as b,aa as Ve,ab as Kt,b as W,ba as We,c as Q,ca as Qe,d as Z,da as Ze,e as ee,ea as et,f as te,fa as tt,g as oe,ga as ot,h as ie,ha as it,i as re,ia as rt,j as ne,ja as nt,k as de,ka as dt,l as ae,la as at,m as se,ma as st,n as ce,na as ct,o as le,oa as lt,p as ue,pa as ut,q as pe,qa as pt,r as _e,ra as _t,s as fe,sa as ft,t as me,ta as mt,u as ge,ua as gt,v as ye,va as yt,w as be,wa as bt,x as he,xa as ht,y as xe,ya as xt,z as we,za as wt}from"./focused-chunks/chunk-YHWHX6YY.js";import{g,h as Li,i as qi,j as Bi,k as Ji,l as Gi,m as Ui,n as Ki,o as Xi,p as Yi,q as or}from"./focused-chunks/chunk-6GCRSLPG.js";import{$a as Wo,Aa as uo,Ba as po,Ca as _o,Da as fo,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 X,fa as Y,ga as H,ha as V,ia as Xt,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,xb as pi,ya as co,za as lo}from"./focused-chunks/chunk-Z2USIBR2.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 pr(){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 _r(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 fr(){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 yr(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]="95833d58-d6b9-5ab4-b447-5ce003643fd5")}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=v(),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:C(),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:"package-upgrade-mutually-exclusive-modes",command:"package upgrade",flag:"--cli-only/--packages-only",rejected_value:"--cli-only+--packages-only",refusal_args:["package","upgrade","--cli-only","--packages-only","--dry-run"],allowed_values:[],suggested_retry_args:["package","upgrade","--packages-only","--dry-run"],error_code:"package_upgrade_modes_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 wr(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 vr(){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,St as ACTIVITY_FLAG_CONTRACTS,ge as AGGREGATE_FLAG_CONTRACTS,ot as APPEND_FLAG_CONTRACTS,kt as ASSURANCE_FLAG_CONTRACTS,L as CALENDAR_COMMANDER_STRING_OPTION_CONTRACTS,Ft as CALENDAR_FLAG_CONTRACTS,it as CLAIM_FLAG_CONTRACTS,gi as CLOSE_ACTION_OPTION_KEYS,et as CLOSE_FLAG_CONTRACTS,tt as CLOSE_MANY_FLAG_CONTRACTS,ct as CLOSE_TASK_FLAG_CONTRACTS,ye as COMMENTS_FLAG_CONTRACTS,Gt as COMPLETION_FLAG_CONTRACTS,Se as CONFIG_FLAG_CONTRACTS,q as CONTEXT_COMMANDER_STRING_OPTION_CONTRACTS,Mt as CONTEXT_FLAG_CONTRACTS,Jt as CONTRACTS_FLAG_CONTRACTS,Tt as COPY_FLAG_CONTRACTS,ji as CREATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,Ti as CREATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,$i as CREATE_COMMANDER_STRING_OPTION_CONTRACTS,vt as CREATE_FLAG_CONTRACTS,nt as DELETE_FLAG_CONTRACTS,Nt as DEPS_FLAG_CONTRACTS,we as DOCS_FLAG_CONTRACTS,ht as DUPLICATES_FLAG_CONTRACTS,Rt as EVAL_FLAG_CONTRACTS,It as EVENTS_FLAG_CONTRACTS,ut as EVENT_FLAG_CONTRACTS,Y as EXECUTABLE_COMMAND_ALIASES,Je as EXTENSION_ACTIVATE_FLAG_CONTRACTS,Be as EXTENSION_ADOPT_ALL_FLAG_CONTRACTS,Ve as EXTENSION_ADOPT_FLAG_CONTRACTS,He as EXTENSION_CATALOG_FLAG_CONTRACTS,Ge as EXTENSION_DEACTIVATE_FLAG_CONTRACTS,qe as EXTENSION_DESCRIBE_FLAG_CONTRACTS,Ye as EXTENSION_DOCTOR_FLAG_CONTRACTS,Le as EXTENSION_EXPLORE_FLAG_CONTRACTS,Ie as EXTENSION_FLAG_CONTRACTS,Pe as EXTENSION_INIT_FLAG_CONTRACTS,Ae as EXTENSION_INSTALL_FLAG_CONTRACTS,Ke as EXTENSION_MANAGE_FLAG_CONTRACTS,Ue as EXTENSION_MIGRATE_FLAG_CONTRACTS,Xe as EXTENSION_RELOAD_FLAG_CONTRACTS,Me as EXTENSION_SCOPE_FLAG_CONTRACTS,Re as EXTENSION_UNINSTALL_FLAG_CONTRACTS,xe as FILES_FLAG_CONTRACTS,Ot as FOCUS_FLAG_CONTRACTS,yt as GC_FLAG_CONTRACTS,Pt as GET_FLAG_CONTRACTS,fe as GLOBAL_FLAG_CONTRACTS,At as GRAPH_FLAG_CONTRACTS,zt as GUIDE_FLAG_CONTRACTS,xt as HEALTH_FLAG_CONTRACTS,$e as HISTORY_AUTHOR_ACKNOWLEDGE_FLAG_CONTRACTS,Te as HISTORY_COMPACT_FLAG_CONTRACTS,ke as HISTORY_FLAG_CONTRACTS,Ce as HISTORY_REDACT_FLAG_CONTRACTS,je as HISTORY_REPAIR_FLAG_CONTRACTS,Fe as INIT_FLAG_CONTRACTS,We as INSTALL_FLAG_CONTRACTS,jt as ITEM_COMPLETE_FLAG_CONTRACTS,Ct as ITEM_MUTATE_FLAG_CONTRACTS,$t as ITEM_REOPEN_FLAG_CONTRACTS,he as LEARNINGS_FLAG_CONTRACTS,A as LIST_COMMANDER_STRING_OPTION_CONTRACTS,me as LIST_FILTER_FLAG_CONTRACTS,lt as MEET_FLAG_CONTRACTS,ve as MERGE_FLAG_CONTRACTS,eo as MERGE_SUBCOMMAND_VALUES,B as NEXT_COMMANDER_STRING_OPTION_CONTRACTS,qt as NEXT_FLAG_CONTRACTS,be as NOTES_FLAG_CONTRACTS,ze as PACKAGE_FLAG_CONTRACTS,Ne as PACKAGE_INIT_FLAG_CONTRACTS,st as PAUSE_TASK_FLAG_CONTRACTS,mi as PLAN_CREATE_METADATA_PARAMETER_KEYS,De as PLAN_FLAG_CONTRACTS,ne as PM_CLI_GRAMMAR_CONTRACT,W as PM_CLI_GRAMMAR_NOUNS,ro as PM_CLI_ONLY_TOOL_ACTION_WAIVERS,Q as PM_CLI_SHARED_VERBS,X as PM_COMMAND_ALIAS_CONTRACTS,ie as PM_COMMAND_DESTINATION_CONTRACTS,Ii as PM_COMMAND_EXIT_CONTRACTS,Si as PM_COMMAND_EXIT_OUTCOME_CONTRACTS,Bo as PM_COMMAND_OUTPUT_BUDGET_CONTRACTS,nr as PM_COMMAND_OUTPUT_ENVELOPE_CONTRACTS,re as PM_COMMAND_POSITIONAL_CONTRACTS,g as PM_CONTEXT_INTENT_CONTRACTS,Zt as PM_CORE_COMMAND_NAMES,ao as PM_DEPRECATED_TOOL_ACTIONS,No as PM_DIAGNOSTIC_DEGRADATION_STEPS,Ao as PM_DIAGNOSTIC_OUTPUT_BUDGET_CONTRACTS,zo as PM_DIAGNOSTIC_OUTPUT_CLASSES,so as PM_DISCOVERABLE_TOOL_ACTIONS,Zi as PM_ERROR_CODE_CATALOG,Hi 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,io as PM_ITEM_ACTION_SUBCOMMANDS,Po as PM_OUTPUT_BUDGET_CLASSES,Mo as PM_OUTPUT_DEGRADATION_STEPS,ir as PM_OUTPUT_ENVELOPE_KINDS,oo as PM_PACKAGE_ONLY_ACTION_SUBCOMMANDS,Z as PM_POSITIONAL_ACTION_CONTRACTS,vi as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA,wi as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA_VERSION,ti as PM_READ_OUTPUT_COMPOSITION_OPTION_FLAGS,Yo as PM_READ_OUTPUT_CONTINUATION_FINGERPRINT_POLICIES,Qo as PM_READ_OUTPUT_DIMENSIONS,ei as PM_READ_OUTPUT_OPTION_FLAGS,Zo as PM_READ_OUTPUT_SURFACES,oi as PM_READ_OUTPUT_SURFACE_CONTRACTS,Mi as PM_SUCCESS_EXIT_CODES,no as PM_TOOL_ACTIONS,yi as PM_TOOL_ACTION_PARAMETER_CONTRACTS,ki as PM_TOOL_PARAMETERS_SCHEMA,xi as PM_TOOL_PARAMETERS_SCHEMA_MAJOR,hi as PM_TOOL_PARAMETERS_SCHEMA_VERSION,_i as PM_TOOL_RESERVED_CUSTOM_FIELD_PROPERTIES,Ee as PROFILE_FLAG_CONTRACTS,Ze as REINDEX_FLAG_CONTRACTS,dt as RELEASE_FLAG_CONTRACTS,pt as REMIND_FLAG_CONTRACTS,rt as RESTORE_FLAG_CONTRACTS,Oe as SCHEMA_FLAG_CONTRACTS,R as SEARCH_COMMANDER_STRING_OPTION_CONTRACTS,Bt as SEARCH_FLAG_CONTRACTS,at as START_TASK_FLAG_CONTRACTS,bt as STATS_FLAG_CONTRACTS,_e as SUBCOMMAND_GLOBAL_FLAG_CONTRACTS,mt as TELEMETRY_FLAG_CONTRACTS,ft as TEST_ALL_FLAG_CONTRACTS,_t as TEST_FLAG_CONTRACTS,gt as TEST_RUNS_FLAG_CONTRACTS,Eo as TOOL_ACTIVITY_OPTION_CONTRACTS,yo as TOOL_AGGREGATE_OPTION_CONTRACTS,jo as TOOL_BULK_MUTATION_FILTER_OPTION_CONTRACT_SOURCE,Oo as TOOL_CALENDAR_OPTION_CONTRACTS,To as TOOL_CLOSE_MANY_FILTER_OPTION_CONTRACTS,Do as TOOL_CONTEXT_OPTION_CONTRACTS,ko as TOOL_CREATE_OPTION_CONTRACTS,wo as TOOL_CREATE_OPTION_CONTRACT_SOURCE,Fo as TOOL_DEPS_OPTION_CONTRACTS,So as TOOL_GRAPH_OPTION_CONTRACTS,go as TOOL_LIST_FILTER_OPTION_CONTRACTS,bo as TOOL_SEARCH_FILTER_OPTION_CONTRACTS,xo as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACTS,ho as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACT_SOURCE,$o as TOOL_UPDATE_MANY_FILTER_OPTION_CONTRACTS,Co as TOOL_UPDATE_OPTION_CONTRACTS,vo as TOOL_UPDATE_OPTION_CONTRACT_SOURCE,Oi as UPDATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,Di as UPDATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,Ei as UPDATE_COMMANDER_STRING_OPTION_CONTRACTS,Et as UPDATE_FLAG_CONTRACTS,Dt as UPDATE_MANY_FLAG_CONTRACTS,Qe as UPGRADE_FLAG_CONTRACTS,wt as VALIDATE_FLAG_CONTRACTS,Lt as WORKSPACE_FLAG_CONTRACTS,Ci as _testOnlyCliContracts,Ai as analyzePmCommandExitConformance,co as analyzePmToolActionParity,Fi as analyzeSdkCliParameterCompleteness,Gi as applyContextIntentProjection,li as applyReadOutputDimensions,di as applyReadOutputIncludeModes,Xi as attachContextIntentReceipt,or as attachOutputTokenAccounting,Yi as attachReadOutputContracts,bi as buildPmActionToolInputSchema,pe as compactFlagAliasContracts,Bi as composeContextIntentContracts,Ki as contextIntentRowId,Lo as createPmCommandOutputBudget,Ui as decodeContextIntentCursor,Wo as decodeReadOutputContinuationCursor,qo as definePmCommandOutputBudget,rr as definePmCommandOutputEnvelope,Vi as definePmErrorCodeCatalog,Ri as derivePmBulkMutationEffect,Vo as encodeReadOutputContinuationCursor,er as enrichCliFlagInvocationContract,x as enrichCliFlagInvocationContracts,Go as estimatePmOutputTokens,oe as formatPmPositionalActionFlagTip,Li as getActiveContextIntentContracts,b as hasSubcommandFlagContractsForCommand,Ro as inferPmOutputBudgetClass,uo as isPmExtensionCapabilityContract,_o as isPmExtensionPolicyModeContract,fo as isPmExtensionPolicySurfaceContract,po as isPmExtensionServiceNameContract,zi as isPmKnownExitCode,ar as isPmMutationReceipt,Pi as isPmSuccessfulExitCode,lo as isPmToolAction,ui as isReadOutputBudgetExceeded,z as listCoreClosedDomainContracts,T as listPmCommandFlagBudgets,p as listPmFlagLexicon,pr as listPmFlagSpellingInventory,vr as listTrackerPreflightRecoveryContracts,ai as normalizeReadOutputIncludeModeOptions,sr as parseMutationReceipt,ae as positionalShapeKey,se as positionalSignatureKey,Ko as projectPmDiagnosticOutput,Xo as projectPmDiagnosticText,G as readFirstStringFromCommanderOptions,U as readFirstValueFromCommanderOptions,Ho as readOutputCollectionFingerprint,ni as readOutputIncludeModeOptions,K as readStringArrayFromCommanderOptions,wr as renderPmClosedDomainHelp,V as renderPmCommandAliasMigrationHint,fr as renderPmFlagLexiconMarkdown,Wi as resolveCanonicalPmErrorCodeContract,Ji as resolveContextIntentContract,H as resolvePmCommandAlias,Ni as resolvePmCommandExitContract,Jo as resolvePmCommandOutputBudget,dr as resolvePmCommandOutputEnvelope,ee as resolvePmCommandPositionalContract,Uo as resolvePmDiagnosticOutputBudget,Qi as resolvePmErrorCodeContract,D as resolvePmFlagSemanticConcept,te as resolvePmPositionalActionContract,Ut as resolvePmPositionalActionFlagContracts,fi as resolvePmToolCustomFieldCollision,si as resolveReadOutputDimensions,pi as resolveReadOutputEncoding,Io as resolveReadOutputRecoveryBudget,ii as resolveReadOutputSurface,h as resolveSubcommandFlagContractsForCommand,qi as runWithContextIntentContracts,yr as scorePmRefusalClosure,Cr as scoreTrackerPreflightRecoveryClosure,ci as stabilizeReadOutputReceiptEstimates,Kt as toCompletionFlagString,ri as validateReadOutputOptions,tr as verifyCliFlagInvocationParity,de as verifyExplicitPositionalSlotCensus,le as verifyPmCliGrammar,ce as verifyPmCommandPositionalContracts,_r as verifyPmFlagLexicon,mo as verifyToolOptionCliParity,ue as withFlagAliasMetadata};
3
3
  //# sourceMappingURL=sdk-contracts.js.map