@unbrained/pm-cli 2026.8.18 → 2026.8.20

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 (186) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/CHANGELOG.md +35 -2
  3. package/dist/cli/error-guidance.js +3 -2
  4. package/dist/cli/help-content.js +32 -13
  5. package/dist/cli/help-json-payload.d.ts +15 -0
  6. package/dist/cli/help-json-payload.js +101 -23
  7. package/dist/cli/main.js +6 -2
  8. package/dist/cli/register-list-query.js +18 -13
  9. package/dist/cli/register-mutation.js +8 -8
  10. package/dist/cli/register-operations.js +6 -6
  11. package/dist/cli/register-structured-mutation.d.ts +2 -0
  12. package/dist/cli/register-structured-mutation.js +29 -6
  13. package/dist/cli-bundle/bundle-manifest.json +151 -143
  14. package/dist/cli-bundle/chunks/{chunk-UYCLQVL2.js → chunk-2RDVGYWE.js} +12 -12
  15. package/dist/cli-bundle/chunks/{chunk-BSK2IN3C.js → chunk-4GB2LTOQ.js} +2 -2
  16. package/dist/cli-bundle/chunks/{chunk-RZQTVMRQ.js → chunk-7BRF2BX2.js} +2 -2
  17. package/dist/cli-bundle/chunks/chunk-BLVQHFSY.js +35 -0
  18. package/dist/cli-bundle/chunks/chunk-CU25EQVV.js +5 -0
  19. package/dist/cli-bundle/chunks/chunk-K3EN3LK2.js +2 -0
  20. package/dist/cli-bundle/chunks/{chunk-YRGOLZA7.js → chunk-L4LGPBJU.js} +49 -49
  21. package/dist/cli-bundle/chunks/chunk-RS3IV2R6.js +197 -0
  22. package/dist/cli-bundle/chunks/chunk-TSMWLCHS.js +3 -0
  23. package/dist/cli-bundle/chunks/chunk-US2ZQW2M.js +77 -0
  24. package/dist/cli-bundle/chunks/{chunk-5UZZAJKR.js → chunk-XYDDWBZN.js} +2 -2
  25. package/dist/cli-bundle/chunks/register-list-query-JSAQCVOC.js +11 -0
  26. package/dist/cli-bundle/chunks/register-mutation-XJPAW63D.js +20 -0
  27. package/dist/cli-bundle/chunks/register-operations-DSOSB2XQ.js +2 -0
  28. package/dist/cli-bundle/chunks/{register-setup-PPPEF3SN.js → register-setup-QUR6QL2C.js} +2 -2
  29. package/dist/cli-bundle/focused-chunks/chunk-325UXIO7.js +2 -0
  30. package/dist/cli-bundle/focused-chunks/chunk-5L7M4AI7.js +2 -0
  31. package/dist/cli-bundle/focused-chunks/{chunk-ODOVCP45.js → chunk-6AHG2YW7.js} +44 -44
  32. package/dist/cli-bundle/focused-chunks/chunk-AZBACT5T.js +2 -0
  33. package/dist/cli-bundle/focused-chunks/{chunk-TN4AE665.js → chunk-BLJCGGID.js} +2 -2
  34. package/dist/cli-bundle/focused-chunks/chunk-FUREQLQN.js +18 -0
  35. package/dist/cli-bundle/focused-chunks/{chunk-M62NO7EI.js → chunk-G3C5ERXG.js} +2 -2
  36. package/dist/cli-bundle/focused-chunks/{chunk-K43KKAFS.js → chunk-GXWQBE3T.js} +2 -2
  37. package/dist/cli-bundle/focused-chunks/{chunk-UI6AJ5TD.js → chunk-JWKEDZJI.js} +3 -3
  38. package/dist/cli-bundle/focused-chunks/chunk-KYZ6JGPL.js +155 -0
  39. package/dist/cli-bundle/focused-chunks/{chunk-EX6MKP2X.js → chunk-M32HFIQB.js} +2 -2
  40. package/dist/cli-bundle/focused-chunks/{chunk-EUEGXZ2A.js → chunk-OM65KHGF.js} +2 -2
  41. package/dist/cli-bundle/focused-chunks/chunk-Q47EX4DI.js +2 -0
  42. package/dist/cli-bundle/focused-chunks/{chunk-V5XTGLK7.js → chunk-RIHDMCUM.js} +2 -2
  43. package/dist/cli-bundle/focused-chunks/chunk-T4ZFY7ZJ.js +16 -0
  44. package/dist/cli-bundle/focused-chunks/chunk-TDR5OGG3.js +2 -0
  45. package/dist/cli-bundle/focused-chunks/chunk-UGSS4F5X.js +2 -0
  46. package/dist/cli-bundle/focused-chunks/chunk-Z3PLWSGM.js +2 -0
  47. package/dist/cli-bundle/main.js +13 -13
  48. package/dist/cli-bundle/sdk-authoring.js +1 -1
  49. package/dist/cli-bundle/sdk-contracts.js +2 -1
  50. package/dist/cli-bundle/sdk-core.js +41 -41
  51. package/dist/cli-bundle/sdk-governance.js +1 -1
  52. package/dist/cli-bundle/sdk-graph.js +1 -1
  53. package/dist/cli-bundle/sdk-merge.js +32 -32
  54. package/dist/cli-bundle/sdk-query.js +1 -1
  55. package/dist/cli-bundle/sdk-runtime.js +1 -1
  56. package/dist/cli-bundle/sdk-testing.js +1 -1
  57. package/dist/cli-bundle/sdk.js +5 -4
  58. package/dist/core/output/mutation-projection.js +26 -2
  59. package/dist/core/shared/constants.d.ts +1 -5
  60. package/dist/core/shared/constants.js +3 -81
  61. package/dist/core/shared/errors.d.ts +2 -0
  62. package/dist/core/shared/errors.js +2 -2
  63. package/dist/core/shared/item-metadata-contract.d.ts +14 -0
  64. package/dist/core/shared/item-metadata-contract.js +90 -0
  65. package/dist/core/store/item-store.d.ts +60 -0
  66. package/dist/core/store/item-store.js +22 -5
  67. package/dist/sdk/agent/closed-domain-contracts.d.ts +25 -0
  68. package/dist/sdk/agent/closed-domain-contracts.js +140 -0
  69. package/dist/sdk/agent/refusal-closure.d.ts +53 -0
  70. package/dist/sdk/agent/refusal-closure.js +134 -0
  71. package/dist/sdk/agent/refusal-reachability.d.ts +27 -1
  72. package/dist/sdk/agent/refusal-reachability.js +26 -2
  73. package/dist/sdk/agent-capability-contracts.d.ts +13 -0
  74. package/dist/sdk/agent-capability-contracts.js +101 -9
  75. package/dist/sdk/cli-contracts/command-aliases.js +18 -2
  76. package/dist/sdk/cli-contracts/commander-mutation-options.js +30 -6
  77. package/dist/sdk/cli-contracts/commander-types.js +5 -4
  78. package/dist/sdk/cli-contracts/completeness.js +8 -2
  79. package/dist/sdk/cli-contracts/enum-contracts.d.ts +4 -2
  80. package/dist/sdk/cli-contracts/enum-contracts.js +16 -6
  81. package/dist/sdk/cli-contracts/flag-contracts.d.ts +7 -0
  82. package/dist/sdk/cli-contracts/flag-contracts.js +84 -8
  83. package/dist/sdk/cli-contracts/flag-lexicon-contracts.d.ts +72 -0
  84. package/dist/sdk/cli-contracts/flag-lexicon-contracts.js +340 -0
  85. package/dist/sdk/cli-contracts/grammar-contracts.d.ts +83 -2
  86. package/dist/sdk/cli-contracts/grammar-contracts.js +618 -2
  87. package/dist/sdk/cli-contracts/runtime-contracts.d.ts +15 -4
  88. package/dist/sdk/cli-contracts/runtime-contracts.js +47 -13
  89. package/dist/sdk/cli-contracts/tool-option-contracts.d.ts +28 -1
  90. package/dist/sdk/cli-contracts/tool-option-contracts.js +38 -3
  91. package/dist/sdk/cli-contracts/tool-schema.js +7 -2
  92. package/dist/sdk/cli-contracts.d.ts +4 -3
  93. package/dist/sdk/cli-contracts.js +6 -5
  94. package/dist/sdk/context-intent-contracts.d.ts +2 -2
  95. package/dist/sdk/context-intent-contracts.js +22 -7
  96. package/dist/sdk/contracts.d.ts +3 -0
  97. package/dist/sdk/contracts.js +5 -2
  98. package/dist/sdk/core.d.ts +1 -1
  99. package/dist/sdk/core.js +3 -3
  100. package/dist/sdk/flag-invocation-contracts.d.ts +37 -0
  101. package/dist/sdk/flag-invocation-contracts.js +218 -9
  102. package/dist/sdk/generated/generated-error-code-catalog-part-1.js +206 -2
  103. package/dist/sdk/generated/generated-error-code-catalog-part-2.js +244 -40
  104. package/dist/sdk/index.d.ts +11 -7
  105. package/dist/sdk/index.js +10 -6
  106. package/dist/sdk/init-agent-guidance.d.ts +5 -3
  107. package/dist/sdk/init-agent-guidance.js +69 -9
  108. package/dist/sdk/lifecycle/mcp-actions.d.ts +18 -0
  109. package/dist/sdk/lifecycle/mcp-actions.js +52 -0
  110. package/dist/sdk/lifecycle/reopen.d.ts +44 -0
  111. package/dist/sdk/lifecycle/reopen.js +69 -0
  112. package/dist/sdk/lifecycle/update.d.ts +31 -0
  113. package/dist/sdk/lifecycle/update.js +95 -13
  114. package/dist/sdk/output-projection.d.ts +2 -0
  115. package/dist/sdk/output-projection.js +11 -5
  116. package/dist/sdk/query/get.d.ts +1 -1
  117. package/dist/sdk/query/get.js +34 -49
  118. package/dist/sdk/query/list.d.ts +7 -21
  119. package/dist/sdk/query/list.js +44 -44
  120. package/dist/sdk/query/projection-contracts.d.ts +33 -0
  121. package/dist/sdk/query/projection-contracts.js +185 -0
  122. package/dist/sdk/query/search-contracts.d.ts +3 -2
  123. package/dist/sdk/query/search-contracts.js +30 -85
  124. package/dist/sdk/query/search.d.ts +15 -0
  125. package/dist/sdk/query/search.js +32 -6
  126. package/dist/sdk/read-output/continuation.d.ts +1 -1
  127. package/dist/sdk/read-output/continuation.js +7 -24
  128. package/dist/sdk/read-output-contracts.js +55 -6
  129. package/dist/sdk/read-output-rows.d.ts +4 -0
  130. package/dist/sdk/read-output-rows.js +47 -18
  131. package/dist/sdk/runtime-primitives.d.ts +1 -1
  132. package/dist/sdk/runtime-primitives.js +3 -3
  133. package/dist/sdk/runtime.d.ts +6 -0
  134. package/dist/sdk/runtime.js +25 -17
  135. package/dist/sdk/similarity.d.ts +13 -0
  136. package/dist/sdk/similarity.js +32 -6
  137. package/dist/sdk/workspace-snapshot.d.ts +2 -0
  138. package/dist/sdk/workspace-snapshot.js +10 -2
  139. package/docs/COMMANDS.md +29 -5
  140. package/docs/OUTPUT_PROJECTION_CONTRACTS.md +11 -2
  141. package/docs/README.md +1 -0
  142. package/docs/READ_OUTPUT_CONTRACTS.md +10 -6
  143. package/docs/RECURRENCE_RECOVERY_CONTRACTS.md +114 -0
  144. package/docs/SDK.md +16 -2
  145. package/docs/SDK_CONTEXT_INTEGRITY.md +45 -0
  146. package/docs/TESTING.md +14 -1
  147. package/docs/generated/AGENT_COMMAND_SURFACE.md +78 -78
  148. package/docs/generated/FLAG_LEXICON_BUDGETS.md +76 -0
  149. package/docs/performance/sdk-entrypoint-import-costs.md +14 -21
  150. package/marketplace.json +2 -2
  151. package/package.json +9 -7
  152. package/packages/pm-beads/package.json +1 -1
  153. package/packages/pm-calendar/package.json +1 -1
  154. package/packages/pm-command-kit/package.json +1 -1
  155. package/packages/pm-digital-twin/package.json +1 -1
  156. package/packages/pm-governance-audit/package.json +1 -1
  157. package/packages/pm-guide-shell/package.json +1 -1
  158. package/packages/pm-kanban/package.json +1 -1
  159. package/packages/pm-lifecycle-hooks/package.json +1 -1
  160. package/packages/pm-linked-test-adapters/package.json +1 -1
  161. package/packages/pm-search-advanced/package.json +1 -1
  162. package/packages/pm-templates/package.json +1 -1
  163. package/packages/pm-todos/package.json +1 -1
  164. package/packages/pm-vcs/package.json +1 -1
  165. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
  166. package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
  167. package/scripts/generate-agent-capability-surfaces.mjs +20 -14
  168. package/sdk/public-surface.json +950 -24
  169. package/dist/cli-bundle/chunks/chunk-ALDJGKAK.js +0 -2
  170. package/dist/cli-bundle/chunks/chunk-DY4DMUMC.js +0 -197
  171. package/dist/cli-bundle/chunks/chunk-GNFAFIJI.js +0 -77
  172. package/dist/cli-bundle/chunks/chunk-L5Q2CLPE.js +0 -35
  173. package/dist/cli-bundle/chunks/chunk-PVRUN5ZS.js +0 -5
  174. package/dist/cli-bundle/chunks/chunk-SARFF5H5.js +0 -3
  175. package/dist/cli-bundle/chunks/register-list-query-I23LALEE.js +0 -11
  176. package/dist/cli-bundle/chunks/register-mutation-6YGU3GPH.js +0 -20
  177. package/dist/cli-bundle/chunks/register-operations-4HTFC6J7.js +0 -2
  178. package/dist/cli-bundle/focused-chunks/chunk-2PN4TJXH.js +0 -2
  179. package/dist/cli-bundle/focused-chunks/chunk-3TKWMNKF.js +0 -18
  180. package/dist/cli-bundle/focused-chunks/chunk-5AF3ZBNB.js +0 -155
  181. package/dist/cli-bundle/focused-chunks/chunk-C5IW2NDA.js +0 -2
  182. package/dist/cli-bundle/focused-chunks/chunk-RNDNMARJ.js +0 -16
  183. package/dist/cli-bundle/focused-chunks/chunk-TVV2DONO.js +0 -2
  184. package/dist/cli-bundle/focused-chunks/chunk-WGHQVU6P.js +0 -2
  185. package/dist/cli-bundle/focused-chunks/chunk-XYNBXTDQ.js +0 -2
  186. package/dist/cli-bundle/focused-chunks/chunk-Z56ECT7I.js +0 -2
@@ -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-TN4AE665.js";import{a as T,b as M,c as B,d as N,u as J}from"./focused-chunks/chunk-EUEGXZ2A.js";import"./focused-chunks/chunk-C5IW2NDA.js";import"./focused-chunks/chunk-EX6MKP2X.js";import"./focused-chunks/chunk-TVV2DONO.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-UI6AJ5TD.js";import{b as Ce,c as we,d as Ie}from"./focused-chunks/chunk-2PN4TJXH.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="bbc8dcd1-7dde-54f5-bebf-6d95ea0aaa1e")}catch{}})();function Ke(e){return e}function He(e){return e}function Q(e,o){for(let r of o.commands??[])e.registerCommand(r);for(let[r,n]of Object.entries(o.commandOverrides??{}))e.registerCommand(r,n);for(let[r,n]of Object.entries(o.flags??{}))e.registerFlags(r,n);for(let[r,n]of Object.entries(o.parsers??{}))e.registerParser(r,n);for(let[r,n]of Object.entries(o.renderers??{}))if(typeof n=="function")e.registerRenderer(r,n);else{let{run:t,...s}=n;e.registerRenderer(r,t,s)}for(let[r,n]of Object.entries(o.services??{}))e.registerService(r,n)}function Z(e,o){for(let s of o.preflights??[])e.registerPreflight(s);let r=o.itemTypes??[];r.length>0&&e.registerItemTypes(r);let n=o.itemFields??[];n.length>0&&e.registerItemFields(n);let t=o.relationshipKinds??[];t.length>0&&e.registerRelationshipKinds(t);for(let s of o.migrations??[])e.registerMigration(s);for(let s of o.profiles??[])e.registerProfile(s)}function ee(e,o){for(let r of o.searchProviders??[])e.registerSearchProvider(r);for(let r of o.vectorStoreAdapters??[])e.registerVectorStoreAdapter(r);for(let r of o.assuranceProviders??[])e.registerAssuranceMeasurementProvider(r);for(let r of o.importers??[])e.registerImporter(r.name,r.importer,r.options);for(let r of o.exporters??[])e.registerExporter(r.name,r.exporter,r.options)}function re(e,o){for(let r of o.beforeCommand??[])e.hooks.beforeCommand(r);for(let r of o.beforeMutation??[])e.hooks.beforeMutation(r);for(let r of o.afterCommand??[])e.hooks.afterCommand(r);for(let r of o.onWrite??[])e.hooks.onWrite(r);for(let r of o.onRead??[])e.hooks.onRead(r);for(let r of o.onIndex??[])e.hooks.onIndex(r)}function oe(e){let r={activate:async n=>{Q(n,e),Z(n,e),ee(n,e),re(n,e.hooks??{}),await e.activate?.(n)}};return e.manifest&&(r.manifest=e.manifest),e.deactivate&&(r.deactivate=e.deactivate),r}function f(e){let o=e.flatMap(r=>r??[]);return o.length>0?o:void 0}function l(e){let o=Object.assign({},...e.map(r=>r??{}));return Object.keys(o).length>0?o:void 0}function ne(e){let o={};for(let r of e)for(let[n,t]of Object.entries(r??{}))o[n]=[...o[n]??[],...t];return Object.keys(o).length>0?o:void 0}var te=["beforeCommand","beforeMutation","afterCommand","onWrite","onRead","onIndex"];function ie(e,o,r){let n=o.map(s=>s?.[r]),t=f(n);if(t!==void 0){let s=e;s[r]=t}}function se(e){let o={};for(let r of te)ie(o,e,r);return Object.keys(o).length>0?o:void 0}function qe(...e){let o={},r=(i,c)=>{c!==void 0&&(o[i]=c)};r("commands",f(e.map(i=>i.commands))),r("commandOverrides",l(e.map(i=>i.commandOverrides))),r("flags",ne(e.map(i=>i.flags))),r("parsers",l(e.map(i=>i.parsers))),r("renderers",l(e.map(i=>i.renderers))),r("services",l(e.map(i=>i.services))),r("preflights",f(e.map(i=>i.preflights))),r("itemTypes",f(e.map(i=>i.itemTypes))),r("itemFields",f(e.map(i=>i.itemFields))),r("relationshipKinds",f(e.map(i=>i.relationshipKinds))),r("migrations",f(e.map(i=>i.migrations))),r("profiles",f(e.map(i=>i.profiles))),r("searchProviders",f(e.map(i=>i.searchProviders))),r("vectorStoreAdapters",f(e.map(i=>i.vectorStoreAdapters))),r("assuranceProviders",f(e.map(i=>i.assuranceProviders))),r("importers",f(e.map(i=>i.importers))),r("exporters",f(e.map(i=>i.exporters))),r("hooks",se(e.map(i=>i.hooks)));let n;for(let i of e)i.manifest&&(n=i.manifest);r("manifest",n);let t=e.some(i=>i.activate);r("activate",t?async i=>{for(let c of e)c.activate&&await c.activate(i)}:void 0);let s=e.some(i=>i.deactivate);return r("deactivate",s?async()=>{let i=[];for(let c of[...e].reverse())if(c.deactivate)try{await c.deactivate()}catch(a){i.push(a)}if(i.length>0)throw i.length>1?new AggregateError(i,"Multiple extension blueprint deactivate hooks failed."):i[0]}:void 0),o}var ae=[["commands","commands"],["commandOverrides","commands"],["flags","schema"],["itemTypes","schema"],["itemFields","schema"],["relationshipKinds","schema"],["migrations","schema"],["profiles","schema"],["parsers","parser"],["renderers","renderers"],["services","services"],["preflights","preflight"],["searchProviders","search"],["vectorStoreAdapters","search"],["assuranceProviders","services"],["importers","importers"],["exporters","importers"]];function u(e){return e?Array.isArray(e)?e.length>0:Object.keys(e).length>0:!1}function h(e){let o=new Set;for(let[t,s]of ae)u(e[t])&&o.add(s);(e.commands??[]).filter(p).some(t=>t.flags!==void 0)&&o.add("schema");let r=[...e.importers??[],...e.exporters??[]].filter(p);r.some(t=>t?.options?.flags!==void 0)&&o.add("schema"),r.some(t=>typeof t=="object")&&o.add("commands");let n=e.hooks??{};return[n.beforeCommand,n.beforeMutation,n.afterCommand,n.onWrite,n.onRead,n.onIndex].some(u)&&o.add("hooks"),[...o].sort((t,s)=>t.localeCompare(s))}var ce=[["beforeCommand","before_command"],["beforeMutation","before_mutation"],["afterCommand","after_command"],["onWrite","on_write"],["onRead","on_read"],["onIndex","on_index"]];function d(e){return[...new Set(e)].sort((o,r)=>o.localeCompare(r))}function p(e){return e!=null}function _(e){return m(`${e.name} import`)}function v(e){return m(`${e.name} export`)}function de(e,o,r){return[...e.map(n=>m(n.name)),...o.filter(n=>n.options!==void 0).map(_),...r.filter(n=>n.options!==void 0).map(v)]}function me(e,o,r,n){return[...Object.keys(e.flags??{}).map(t=>m(t)),...o.filter(t=>t.flags!==void 0).map(t=>m(t.name)),...r.filter(t=>t.options?.flags!==void 0).map(_),...n.filter(t=>t.options?.flags!==void 0).map(v)]}function fe(e){return ce.filter(([o])=>(e[o]?.length??0)>0).map(([,o])=>o)}function pe(e){let o=Object.entries(e??{}).filter(([,r])=>typeof r!="function"&&((r.commands?.length??0)>0||r.resultDiscriminator!==void 0)).map(([r,n])=>{let t=n;return{format:r,commands:d((t.commands??[]).map(s=>m(s))),result_discriminator:t.resultDiscriminator!==void 0}}).sort((r,n)=>r.format.localeCompare(n.format));return o.length>0?{renderer_ownership:o}:{}}function le(e){return!e||e.length===0?{}:{assurance_providers:d(e.map(o=>o.id))}}function ue(e,o,r){return{item_types:d((e.itemTypes??[]).map(n=>n.name)),item_fields:d((e.itemFields??[]).map(n=>n.name)),...(e.relationshipKinds?.length??0)>0?{relationship_kinds:d(e.relationshipKinds.map(n=>n.kind))}:{},migrations:d((e.migrations??[]).flatMap(n=>typeof n.id=="string"?[n.id]:[])),profiles:d((e.profiles??[]).map(n=>n.name)),importers:d(o.map(n=>m(n.name))),exporters:d(r.map(n=>m(n.name))),search_providers:d((e.searchProviders??[]).map(n=>n.name)),vector_store_adapters:d((e.vectorStoreAdapters??[]).map(n=>n.name)),...le(e.assuranceProviders),parser_overrides:d(Object.keys(e.parsers??{}).map(n=>m(n))),service_overrides:d(Object.keys(e.services??{}).map(n=>String(n).trim().toLowerCase())),renderer_overrides:d(Object.keys(e.renderers??{}).map(n=>String(n).trim().toLowerCase())),...pe(e.renderers),preflight_overrides:(e.preflights??[]).length,preflight_ownership:(e.preflights??[]).map(n=>({commands:[...n.commands??[]]}))}}function Ue(e){let o=(e.commands??[]).filter(p),r=(e.importers??[]).filter(p),n=(e.exporters??[]).filter(p),t=r.map(_),s=n.map(v),i=de(o,r,n),c=me(e,o,r,n),a=e.hooks??{},O=ue(e,r,n);return{capabilities:h(e),commands:d(i),command_overrides:d(Object.keys(e.commandOverrides??{}).map(A=>m(A))),command_handlers:d([...i,...t,...s]),hooks:fe(a),flag_commands:d(c),...O}}var ge=["commands","commandOverrides","flags","parsers","renderers","services","preflights","itemTypes","itemFields","relationshipKinds","migrations","profiles","searchProviders","vectorStoreAdapters","assuranceProviders","importers","exporters"];function he(e){return(e.itemFields??[]).filter(o=>typeof o?.name=="string"&&g.has(o.name.trim())).map(o=>({code:"reserved_item_field",severity:"error",message:`Item field "${o.name}" collides with reserved item metadata; rename it with an extension-specific prefix before publishing.`,field:o.name}))}function _e(e){return[...Object.values(e.flags??{}).flat(),...(e.commands??[]).flatMap(r=>r.flags??[]),...(e.importers??[]).flatMap(r=>r.options?.flags??[]),...(e.exporters??[]).flatMap(r=>r.options?.flags??[])].flatMap(r=>{if(typeof r?.long!="string"&&typeof r?.short!="string")return[];let n=k(r.long,r.short);if(n===null)return[];let{token:t,failure:s}=n;return[{code:s,severity:"error",message:`Flag "${t}" ${E(t,s)}.`,field:t}]})}function P(e){let o=new Set;for(let r of e){let n=x(r)??y(r);n!==null&&o.add(n)}return[...o].sort((r,n)=>r.localeCompare(n))}function ve(e,o){let r=[];if(o===null)return e.length>0&&r.push({code:"manifest_capabilities_absent",severity:"warning",message:`Blueprint exercises ${e.length===1?"capability":"capabilities"} [${e.join(", ")}] but declares none; set capabilities to deriveExtensionCapabilities(blueprint) so the manifest grant matches.`}),r;let n=new Set(o),t=new Set(e);for(let s of e)n.has(s)||r.push({code:"capability_undeclared",severity:"error",message:`Blueprint exercises capability "${s}" but it is absent from the declared capabilities; activation throws extension_capability_missing \u2014 add "${s}" to the manifest capabilities.`,capability:s});for(let s of o)t.has(s)||r.push({code:"capability_unused",severity:"warning",message:`Capability "${s}" is declared but no blueprint surface exercises it; drop it to keep the manifest least-privilege (pm package doctor reports this as extension_capability_unused).`,capability:s});return r}function ye(e){let o=[],r=new Map;for(let t of e.commands??[]){let s=m(t.name);r.set(s,(r.get(s)??0)+1)}for(let[t,s]of r)s>1&&o.push({code:"duplicate_command",severity:"warning",message:`Command "${t}" is declared ${s} times in commands; the later registration shadows the earlier one at dispatch.`,command:t});let n=new Set(Object.keys(e.commandOverrides??{}).map(t=>m(t)));for(let t of r.keys())n.has(t)&&o.push({code:"command_override_conflict",severity:"warning",message:`Command "${t}" is declared both as a new command definition and as a command override; register one or the other.`,command:t});return o}function xe(e){let o=[];for(let r of ge)r in e&&!u(e[r])&&o.push({code:"empty_surface",severity:"warning",message:`Blueprint field "${r}" is present but empty; remove it or populate it.`,field:r});if("hooks"in e){let r=e.hooks??{};[r.beforeCommand,r.beforeMutation,r.afterCommand,r.onWrite,r.onRead,r.onIndex].some(u)||o.push({code:"empty_surface",severity:"warning",message:'Blueprint field "hooks" is present but registers no lifecycle hooks; remove it or populate it.',field:"hooks"})}return o}function ke(e,o={}){let r=h(e),n=o.declaredCapabilities??e.manifest?.capabilities,t=Array.isArray(n)?P(n):null,s=[...ve(r,t),...ye(e),..._e(e),...he(e),...xe(e)];return{ok:s.every(i=>i.severity!=="error"),findings:s,used:r,declared:t}}function S(e,o){let{additionalCapabilities:r,...n}=o,t=Array.isArray(r)?P(r):[],s=[...new Set([...h(e),...t])].sort((i,c)=>i.localeCompare(c));return{...n,capabilities:s}}function Ve(e,o){let r=S(e,o);return{module:oe({...e,manifest:r}),manifest:r}}function I(e,o){if(e.status==="absent"||e.status==="ok")return null;let r=`${e.kind}_${e.status}`,n="";switch(r){case"pm_min_version_invalid":n=`pm_min_version "${e.required}" is not a valid version; the extension is treated as incompatible and the loader skips it.`;break;case"pm_min_version_unchecked":n=`pm_min_version "${e.required}" could not be compared against pm ${o}; compatibility is unverified.`;break;case"pm_min_version_unmet":n=`Requires pm >= ${e.required} but the target is pm ${o}; the loader skips the extension.`;break;case"pm_max_version_invalid":n=`pm_max_version "${e.required}" is not a valid inclusive upper bound (version ranges are not allowed); the extension is treated as incompatible and the loader skips it.`;break;case"pm_max_version_unchecked":n=`pm_max_version "${e.required}" could not be compared against pm ${o}; compatibility is unverified.`;break;case"pm_max_version_exceeded":n=`Allows pm <= ${e.required} but the target is pm ${o}; the loader skips the extension.`;break;case"pm_max_version_exceeded_warn":n=`Target pm ${o} is newer than pm_max_version ${e.required}, but the "warn" exceeded mode lets it load with a warning.`;break}return{code:r,severity:e.allowed?"warning":"error",constraint:e.kind,required:e.required,current:o,message:n}}function Ee(e,o){let r=b(e.pm_min_version,o.pmVersion),n=C(e.pm_max_version,o.pmVersion,o.pmMaxVersionExceededMode??"block"),t=[],s=w(e);for(let a of s.unknownKeys)t.push({code:"manifest_unknown_key",severity:"warning",constraint:"manifest",required:a,current:o.pmVersion,path:a,...a==="compatibility"?{suggested_key:"pm_min_version"}:{},message:a==="compatibility"?'Manifest key "compatibility" is ignored; declare the canonical pm_min_version and optional pm_max_version fields instead.':`Manifest key "${a}" is not part of the extension manifest contract and will be ignored.`});s.missingVersionBounds&&t.push({code:"no_version_bounds_declared",severity:"warning",constraint:"manifest",required:"pm_min_version",current:o.pmVersion,path:"$",suggested_key:"pm_min_version",message:"No canonical pm version bounds are declared; add pm_min_version so compatibility intent is explicit."});let i=I(r,o.pmVersion);i!==null&&t.push(i);let c=I(n,o.pmVersion);return c!==null&&t.push(c),{compatible:r.allowed&&n.allowed,findings:t,pmVersion:o.pmVersion}}var be=new Set(["capability_undeclared","capability_unused","manifest_capabilities_absent"]);function ze(e,o={}){let r=ke(e,{declaredCapabilities:o.declaredCapabilities}),n=o.identity?S(e,o.identity):null,t=o.target?Ee(n??e.manifest??{},o.target):null,c=[...(n!==null&&o.declaredCapabilities===void 0?r.findings.filter(a=>!be.has(a.code)):r.findings).map(a=>({source:"blueprint",severity:a.severity,code:a.code,message:a.message})),...(t?.findings??[]).map(a=>({source:"compatibility",severity:a.severity,code:a.code,message:a.message}))];return{ok:c.every(a=>a.severity!=="error"),capabilities:r.used,blueprint:r,manifest:n,compatibility:t,findings:c}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="7fc669d4-1db2-5636-8304-2c111a684726")}catch{}})();function Ge(e){return e}function Ye(e){return e}function Xe(e){return e}function Je(e){return e}function Qe(e){return e}function Ze(e){return e}function er(e){return e}function rr(e){return e}function or(e){return e}function nr(e){return e}function tr(e){return e}function ir(e){return e}function sr(e){return e}function ar(e){return{handled:!0,result:e}}function cr(){return{handled:!1}}function dr(e){return e}function mr(e){return e}function fr(e){return e}function pr(e){return e}function lr(e){return e}function ur(e){return e}function gr(e){return e}function hr(e){return e}function _r(e){return e}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="6260572c-1496-58ef-9377-0825f4183bc6")}catch{}})();export{D as BUILTIN_PROFILES,Pe as EXTENSION_CAPABILITIES,Ie as EXTENSION_CAPABILITY_CONTRACT,Ce as EXTENSION_CAPABILITY_CONTRACT_VERSION,we as EXTENSION_CAPABILITY_LEGACY_ALIASES,G as EXTENSION_CAPABILITY_REGISTRATION_SURFACES,Se as EXTENSION_POLICY_MODES,Oe as EXTENSION_POLICY_SURFACES,Fe as EXTENSION_SANDBOX_PROFILES,Ae as EXTENSION_TRUST_MODES,Te as LIST_FILTER_EXTENSION_FLAG_DEFINITIONS,M as PM_PACKAGE_CONVENTIONAL_RESOURCE_ROOTS,T as PM_PACKAGE_RESOURCE_KINDS,V as PROFILE_LINT_CODES,U as PROFILE_LINT_DIMENSIONS,$ as PROFILE_NAMES,g as RESERVED_ITEM_FIELD_NAMES,Me as SEARCH_EXTENSION_FLAG_DEFINITIONS,Ee as checkExtensionManifestCompatibility,N as collectPackageExtensionDirectories,Y as collectUsedExtensionCapabilities,oe as composeExtension,Ve as composeExtensionPackage,R as createExtensionContributionInventory,cr as declineServiceOverride,ur as defineAfterCommandHook,pr as defineBeforeCommandHook,lr as defineBeforeMutationHook,Xe as defineCommand,nr as defineCommandOverride,fr as defineExporter,Ke as defineExtension,He as defineExtensionBlueprint,Ge as defineExtensionManifest,Je as defineFlag,mr as defineImporter,Ze as defineItemField,Qe as defineItemType,er as defineMigration,_r as defineOnIndexHook,hr as defineOnReadHook,gr as defineOnWriteHook,tr as defineParserOverride,ir as definePreflightOverride,Ye as defineProjectProfile,dr as defineRendererOverride,rr as defineSearchProvider,sr as defineServiceOverride,or as defineVectorStoreAdapter,h as deriveExtensionCapabilities,Ue as describeExtensionBlueprint,H as describeProfileComposition,q as describeProjectProfile,ar as handleServiceOverride,ke as lintExtensionBlueprint,z as lintProjectProfile,K as listProfiles,qe as mergeExtensionBlueprints,F as normalizeExtensionContributionInventory,L as normalizeProfileName,W as planProfileApplication,ze as preflightExtension,B as readPmPackageManifest,X as reconcileExtensionCapabilityUsage,J as renderExtensionSurfaceMarkdown,j as resolveProfile,S as synthesizeExtensionManifest,Re as toExtensionFlagDefinitions};
1
+ import{a as Pe,b as Se,c as Oe,d as Ae,e as Fe,f as Re,g as Te,h as Me,i as $,j as D,k as L,l as j,m as K,p as H,q,w as U,x as V,y as z,z as W}from"./focused-chunks/chunk-BLJCGGID.js";import{a as T,b as M,c as B,d as N,u as J}from"./focused-chunks/chunk-OM65KHGF.js";import"./focused-chunks/chunk-AZBACT5T.js";import"./focused-chunks/chunk-M32HFIQB.js";import"./focused-chunks/chunk-TDR5OGG3.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-JWKEDZJI.js";import{b as Ce,c as we,d as Ie}from"./focused-chunks/chunk-Q47EX4DI.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="bbc8dcd1-7dde-54f5-bebf-6d95ea0aaa1e")}catch{}})();function Ke(e){return e}function He(e){return e}function Q(e,o){for(let r of o.commands??[])e.registerCommand(r);for(let[r,n]of Object.entries(o.commandOverrides??{}))e.registerCommand(r,n);for(let[r,n]of Object.entries(o.flags??{}))e.registerFlags(r,n);for(let[r,n]of Object.entries(o.parsers??{}))e.registerParser(r,n);for(let[r,n]of Object.entries(o.renderers??{}))if(typeof n=="function")e.registerRenderer(r,n);else{let{run:t,...s}=n;e.registerRenderer(r,t,s)}for(let[r,n]of Object.entries(o.services??{}))e.registerService(r,n)}function Z(e,o){for(let s of o.preflights??[])e.registerPreflight(s);let r=o.itemTypes??[];r.length>0&&e.registerItemTypes(r);let n=o.itemFields??[];n.length>0&&e.registerItemFields(n);let t=o.relationshipKinds??[];t.length>0&&e.registerRelationshipKinds(t);for(let s of o.migrations??[])e.registerMigration(s);for(let s of o.profiles??[])e.registerProfile(s)}function ee(e,o){for(let r of o.searchProviders??[])e.registerSearchProvider(r);for(let r of o.vectorStoreAdapters??[])e.registerVectorStoreAdapter(r);for(let r of o.assuranceProviders??[])e.registerAssuranceMeasurementProvider(r);for(let r of o.importers??[])e.registerImporter(r.name,r.importer,r.options);for(let r of o.exporters??[])e.registerExporter(r.name,r.exporter,r.options)}function re(e,o){for(let r of o.beforeCommand??[])e.hooks.beforeCommand(r);for(let r of o.beforeMutation??[])e.hooks.beforeMutation(r);for(let r of o.afterCommand??[])e.hooks.afterCommand(r);for(let r of o.onWrite??[])e.hooks.onWrite(r);for(let r of o.onRead??[])e.hooks.onRead(r);for(let r of o.onIndex??[])e.hooks.onIndex(r)}function oe(e){let r={activate:async n=>{Q(n,e),Z(n,e),ee(n,e),re(n,e.hooks??{}),await e.activate?.(n)}};return e.manifest&&(r.manifest=e.manifest),e.deactivate&&(r.deactivate=e.deactivate),r}function f(e){let o=e.flatMap(r=>r??[]);return o.length>0?o:void 0}function l(e){let o=Object.assign({},...e.map(r=>r??{}));return Object.keys(o).length>0?o:void 0}function ne(e){let o={};for(let r of e)for(let[n,t]of Object.entries(r??{}))o[n]=[...o[n]??[],...t];return Object.keys(o).length>0?o:void 0}var te=["beforeCommand","beforeMutation","afterCommand","onWrite","onRead","onIndex"];function ie(e,o,r){let n=o.map(s=>s?.[r]),t=f(n);if(t!==void 0){let s=e;s[r]=t}}function se(e){let o={};for(let r of te)ie(o,e,r);return Object.keys(o).length>0?o:void 0}function qe(...e){let o={},r=(i,c)=>{c!==void 0&&(o[i]=c)};r("commands",f(e.map(i=>i.commands))),r("commandOverrides",l(e.map(i=>i.commandOverrides))),r("flags",ne(e.map(i=>i.flags))),r("parsers",l(e.map(i=>i.parsers))),r("renderers",l(e.map(i=>i.renderers))),r("services",l(e.map(i=>i.services))),r("preflights",f(e.map(i=>i.preflights))),r("itemTypes",f(e.map(i=>i.itemTypes))),r("itemFields",f(e.map(i=>i.itemFields))),r("relationshipKinds",f(e.map(i=>i.relationshipKinds))),r("migrations",f(e.map(i=>i.migrations))),r("profiles",f(e.map(i=>i.profiles))),r("searchProviders",f(e.map(i=>i.searchProviders))),r("vectorStoreAdapters",f(e.map(i=>i.vectorStoreAdapters))),r("assuranceProviders",f(e.map(i=>i.assuranceProviders))),r("importers",f(e.map(i=>i.importers))),r("exporters",f(e.map(i=>i.exporters))),r("hooks",se(e.map(i=>i.hooks)));let n;for(let i of e)i.manifest&&(n=i.manifest);r("manifest",n);let t=e.some(i=>i.activate);r("activate",t?async i=>{for(let c of e)c.activate&&await c.activate(i)}:void 0);let s=e.some(i=>i.deactivate);return r("deactivate",s?async()=>{let i=[];for(let c of[...e].reverse())if(c.deactivate)try{await c.deactivate()}catch(a){i.push(a)}if(i.length>0)throw i.length>1?new AggregateError(i,"Multiple extension blueprint deactivate hooks failed."):i[0]}:void 0),o}var ae=[["commands","commands"],["commandOverrides","commands"],["flags","schema"],["itemTypes","schema"],["itemFields","schema"],["relationshipKinds","schema"],["migrations","schema"],["profiles","schema"],["parsers","parser"],["renderers","renderers"],["services","services"],["preflights","preflight"],["searchProviders","search"],["vectorStoreAdapters","search"],["assuranceProviders","services"],["importers","importers"],["exporters","importers"]];function u(e){return e?Array.isArray(e)?e.length>0:Object.keys(e).length>0:!1}function h(e){let o=new Set;for(let[t,s]of ae)u(e[t])&&o.add(s);(e.commands??[]).filter(p).some(t=>t.flags!==void 0)&&o.add("schema");let r=[...e.importers??[],...e.exporters??[]].filter(p);r.some(t=>t?.options?.flags!==void 0)&&o.add("schema"),r.some(t=>typeof t=="object")&&o.add("commands");let n=e.hooks??{};return[n.beforeCommand,n.beforeMutation,n.afterCommand,n.onWrite,n.onRead,n.onIndex].some(u)&&o.add("hooks"),[...o].sort((t,s)=>t.localeCompare(s))}var ce=[["beforeCommand","before_command"],["beforeMutation","before_mutation"],["afterCommand","after_command"],["onWrite","on_write"],["onRead","on_read"],["onIndex","on_index"]];function d(e){return[...new Set(e)].sort((o,r)=>o.localeCompare(r))}function p(e){return e!=null}function _(e){return m(`${e.name} import`)}function v(e){return m(`${e.name} export`)}function de(e,o,r){return[...e.map(n=>m(n.name)),...o.filter(n=>n.options!==void 0).map(_),...r.filter(n=>n.options!==void 0).map(v)]}function me(e,o,r,n){return[...Object.keys(e.flags??{}).map(t=>m(t)),...o.filter(t=>t.flags!==void 0).map(t=>m(t.name)),...r.filter(t=>t.options?.flags!==void 0).map(_),...n.filter(t=>t.options?.flags!==void 0).map(v)]}function fe(e){return ce.filter(([o])=>(e[o]?.length??0)>0).map(([,o])=>o)}function pe(e){let o=Object.entries(e??{}).filter(([,r])=>typeof r!="function"&&((r.commands?.length??0)>0||r.resultDiscriminator!==void 0)).map(([r,n])=>{let t=n;return{format:r,commands:d((t.commands??[]).map(s=>m(s))),result_discriminator:t.resultDiscriminator!==void 0}}).sort((r,n)=>r.format.localeCompare(n.format));return o.length>0?{renderer_ownership:o}:{}}function le(e){return!e||e.length===0?{}:{assurance_providers:d(e.map(o=>o.id))}}function ue(e,o,r){return{item_types:d((e.itemTypes??[]).map(n=>n.name)),item_fields:d((e.itemFields??[]).map(n=>n.name)),...(e.relationshipKinds?.length??0)>0?{relationship_kinds:d(e.relationshipKinds.map(n=>n.kind))}:{},migrations:d((e.migrations??[]).flatMap(n=>typeof n.id=="string"?[n.id]:[])),profiles:d((e.profiles??[]).map(n=>n.name)),importers:d(o.map(n=>m(n.name))),exporters:d(r.map(n=>m(n.name))),search_providers:d((e.searchProviders??[]).map(n=>n.name)),vector_store_adapters:d((e.vectorStoreAdapters??[]).map(n=>n.name)),...le(e.assuranceProviders),parser_overrides:d(Object.keys(e.parsers??{}).map(n=>m(n))),service_overrides:d(Object.keys(e.services??{}).map(n=>String(n).trim().toLowerCase())),renderer_overrides:d(Object.keys(e.renderers??{}).map(n=>String(n).trim().toLowerCase())),...pe(e.renderers),preflight_overrides:(e.preflights??[]).length,preflight_ownership:(e.preflights??[]).map(n=>({commands:[...n.commands??[]]}))}}function Ue(e){let o=(e.commands??[]).filter(p),r=(e.importers??[]).filter(p),n=(e.exporters??[]).filter(p),t=r.map(_),s=n.map(v),i=de(o,r,n),c=me(e,o,r,n),a=e.hooks??{},O=ue(e,r,n);return{capabilities:h(e),commands:d(i),command_overrides:d(Object.keys(e.commandOverrides??{}).map(A=>m(A))),command_handlers:d([...i,...t,...s]),hooks:fe(a),flag_commands:d(c),...O}}var ge=["commands","commandOverrides","flags","parsers","renderers","services","preflights","itemTypes","itemFields","relationshipKinds","migrations","profiles","searchProviders","vectorStoreAdapters","assuranceProviders","importers","exporters"];function he(e){return(e.itemFields??[]).filter(o=>typeof o?.name=="string"&&g.has(o.name.trim())).map(o=>({code:"reserved_item_field",severity:"error",message:`Item field "${o.name}" collides with reserved item metadata; rename it with an extension-specific prefix before publishing.`,field:o.name}))}function _e(e){return[...Object.values(e.flags??{}).flat(),...(e.commands??[]).flatMap(r=>r.flags??[]),...(e.importers??[]).flatMap(r=>r.options?.flags??[]),...(e.exporters??[]).flatMap(r=>r.options?.flags??[])].flatMap(r=>{if(typeof r?.long!="string"&&typeof r?.short!="string")return[];let n=k(r.long,r.short);if(n===null)return[];let{token:t,failure:s}=n;return[{code:s,severity:"error",message:`Flag "${t}" ${E(t,s)}.`,field:t}]})}function P(e){let o=new Set;for(let r of e){let n=x(r)??y(r);n!==null&&o.add(n)}return[...o].sort((r,n)=>r.localeCompare(n))}function ve(e,o){let r=[];if(o===null)return e.length>0&&r.push({code:"manifest_capabilities_absent",severity:"warning",message:`Blueprint exercises ${e.length===1?"capability":"capabilities"} [${e.join(", ")}] but declares none; set capabilities to deriveExtensionCapabilities(blueprint) so the manifest grant matches.`}),r;let n=new Set(o),t=new Set(e);for(let s of e)n.has(s)||r.push({code:"capability_undeclared",severity:"error",message:`Blueprint exercises capability "${s}" but it is absent from the declared capabilities; activation throws extension_capability_missing \u2014 add "${s}" to the manifest capabilities.`,capability:s});for(let s of o)t.has(s)||r.push({code:"capability_unused",severity:"warning",message:`Capability "${s}" is declared but no blueprint surface exercises it; drop it to keep the manifest least-privilege (pm package doctor reports this as extension_capability_unused).`,capability:s});return r}function ye(e){let o=[],r=new Map;for(let t of e.commands??[]){let s=m(t.name);r.set(s,(r.get(s)??0)+1)}for(let[t,s]of r)s>1&&o.push({code:"duplicate_command",severity:"warning",message:`Command "${t}" is declared ${s} times in commands; the later registration shadows the earlier one at dispatch.`,command:t});let n=new Set(Object.keys(e.commandOverrides??{}).map(t=>m(t)));for(let t of r.keys())n.has(t)&&o.push({code:"command_override_conflict",severity:"warning",message:`Command "${t}" is declared both as a new command definition and as a command override; register one or the other.`,command:t});return o}function xe(e){let o=[];for(let r of ge)r in e&&!u(e[r])&&o.push({code:"empty_surface",severity:"warning",message:`Blueprint field "${r}" is present but empty; remove it or populate it.`,field:r});if("hooks"in e){let r=e.hooks??{};[r.beforeCommand,r.beforeMutation,r.afterCommand,r.onWrite,r.onRead,r.onIndex].some(u)||o.push({code:"empty_surface",severity:"warning",message:'Blueprint field "hooks" is present but registers no lifecycle hooks; remove it or populate it.',field:"hooks"})}return o}function ke(e,o={}){let r=h(e),n=o.declaredCapabilities??e.manifest?.capabilities,t=Array.isArray(n)?P(n):null,s=[...ve(r,t),...ye(e),..._e(e),...he(e),...xe(e)];return{ok:s.every(i=>i.severity!=="error"),findings:s,used:r,declared:t}}function S(e,o){let{additionalCapabilities:r,...n}=o,t=Array.isArray(r)?P(r):[],s=[...new Set([...h(e),...t])].sort((i,c)=>i.localeCompare(c));return{...n,capabilities:s}}function Ve(e,o){let r=S(e,o);return{module:oe({...e,manifest:r}),manifest:r}}function I(e,o){if(e.status==="absent"||e.status==="ok")return null;let r=`${e.kind}_${e.status}`,n="";switch(r){case"pm_min_version_invalid":n=`pm_min_version "${e.required}" is not a valid version; the extension is treated as incompatible and the loader skips it.`;break;case"pm_min_version_unchecked":n=`pm_min_version "${e.required}" could not be compared against pm ${o}; compatibility is unverified.`;break;case"pm_min_version_unmet":n=`Requires pm >= ${e.required} but the target is pm ${o}; the loader skips the extension.`;break;case"pm_max_version_invalid":n=`pm_max_version "${e.required}" is not a valid inclusive upper bound (version ranges are not allowed); the extension is treated as incompatible and the loader skips it.`;break;case"pm_max_version_unchecked":n=`pm_max_version "${e.required}" could not be compared against pm ${o}; compatibility is unverified.`;break;case"pm_max_version_exceeded":n=`Allows pm <= ${e.required} but the target is pm ${o}; the loader skips the extension.`;break;case"pm_max_version_exceeded_warn":n=`Target pm ${o} is newer than pm_max_version ${e.required}, but the "warn" exceeded mode lets it load with a warning.`;break}return{code:r,severity:e.allowed?"warning":"error",constraint:e.kind,required:e.required,current:o,message:n}}function Ee(e,o){let r=b(e.pm_min_version,o.pmVersion),n=C(e.pm_max_version,o.pmVersion,o.pmMaxVersionExceededMode??"block"),t=[],s=w(e);for(let a of s.unknownKeys)t.push({code:"manifest_unknown_key",severity:"warning",constraint:"manifest",required:a,current:o.pmVersion,path:a,...a==="compatibility"?{suggested_key:"pm_min_version"}:{},message:a==="compatibility"?'Manifest key "compatibility" is ignored; declare the canonical pm_min_version and optional pm_max_version fields instead.':`Manifest key "${a}" is not part of the extension manifest contract and will be ignored.`});s.missingVersionBounds&&t.push({code:"no_version_bounds_declared",severity:"warning",constraint:"manifest",required:"pm_min_version",current:o.pmVersion,path:"$",suggested_key:"pm_min_version",message:"No canonical pm version bounds are declared; add pm_min_version so compatibility intent is explicit."});let i=I(r,o.pmVersion);i!==null&&t.push(i);let c=I(n,o.pmVersion);return c!==null&&t.push(c),{compatible:r.allowed&&n.allowed,findings:t,pmVersion:o.pmVersion}}var be=new Set(["capability_undeclared","capability_unused","manifest_capabilities_absent"]);function ze(e,o={}){let r=ke(e,{declaredCapabilities:o.declaredCapabilities}),n=o.identity?S(e,o.identity):null,t=o.target?Ee(n??e.manifest??{},o.target):null,c=[...(n!==null&&o.declaredCapabilities===void 0?r.findings.filter(a=>!be.has(a.code)):r.findings).map(a=>({source:"blueprint",severity:a.severity,code:a.code,message:a.message})),...(t?.findings??[]).map(a=>({source:"compatibility",severity:a.severity,code:a.code,message:a.message}))];return{ok:c.every(a=>a.severity!=="error"),capabilities:r.used,blueprint:r,manifest:n,compatibility:t,findings:c}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="7fc669d4-1db2-5636-8304-2c111a684726")}catch{}})();function Ge(e){return e}function Ye(e){return e}function Xe(e){return e}function Je(e){return e}function Qe(e){return e}function Ze(e){return e}function er(e){return e}function rr(e){return e}function or(e){return e}function nr(e){return e}function tr(e){return e}function ir(e){return e}function sr(e){return e}function ar(e){return{handled:!0,result:e}}function cr(){return{handled:!1}}function dr(e){return e}function mr(e){return e}function fr(e){return e}function pr(e){return e}function lr(e){return e}function ur(e){return e}function gr(e){return e}function hr(e){return e}function _r(e){return e}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="6260572c-1496-58ef-9377-0825f4183bc6")}catch{}})();export{D as BUILTIN_PROFILES,Pe as EXTENSION_CAPABILITIES,Ie as EXTENSION_CAPABILITY_CONTRACT,Ce as EXTENSION_CAPABILITY_CONTRACT_VERSION,we as EXTENSION_CAPABILITY_LEGACY_ALIASES,G as EXTENSION_CAPABILITY_REGISTRATION_SURFACES,Se as EXTENSION_POLICY_MODES,Oe as EXTENSION_POLICY_SURFACES,Fe as EXTENSION_SANDBOX_PROFILES,Ae as EXTENSION_TRUST_MODES,Te as LIST_FILTER_EXTENSION_FLAG_DEFINITIONS,M as PM_PACKAGE_CONVENTIONAL_RESOURCE_ROOTS,T as PM_PACKAGE_RESOURCE_KINDS,V as PROFILE_LINT_CODES,U as PROFILE_LINT_DIMENSIONS,$ as PROFILE_NAMES,g as RESERVED_ITEM_FIELD_NAMES,Me as SEARCH_EXTENSION_FLAG_DEFINITIONS,Ee as checkExtensionManifestCompatibility,N as collectPackageExtensionDirectories,Y as collectUsedExtensionCapabilities,oe as composeExtension,Ve as composeExtensionPackage,R as createExtensionContributionInventory,cr as declineServiceOverride,ur as defineAfterCommandHook,pr as defineBeforeCommandHook,lr as defineBeforeMutationHook,Xe as defineCommand,nr as defineCommandOverride,fr as defineExporter,Ke as defineExtension,He as defineExtensionBlueprint,Ge as defineExtensionManifest,Je as defineFlag,mr as defineImporter,Ze as defineItemField,Qe as defineItemType,er as defineMigration,_r as defineOnIndexHook,hr as defineOnReadHook,gr as defineOnWriteHook,tr as defineParserOverride,ir as definePreflightOverride,Ye as defineProjectProfile,dr as defineRendererOverride,rr as defineSearchProvider,sr as defineServiceOverride,or as defineVectorStoreAdapter,h as deriveExtensionCapabilities,Ue as describeExtensionBlueprint,H as describeProfileComposition,q as describeProjectProfile,ar as handleServiceOverride,ke as lintExtensionBlueprint,z as lintProjectProfile,K as listProfiles,qe as mergeExtensionBlueprints,F as normalizeExtensionContributionInventory,L as normalizeProfileName,W as planProfileApplication,ze as preflightExtension,B as readPmPackageManifest,X as reconcileExtensionCapabilityUsage,J as renderExtensionSurfaceMarkdown,j as resolveProfile,S as synthesizeExtensionManifest,Re as toExtensionFlagDefinitions};
2
2
  //# sourceMappingURL=sdk-authoring.js.map
@@ -1,2 +1,3 @@
1
- import{a as Tr,b as kr,c as vr,d as Er,e as jr,f as qr,g as zr,h as Ar,i as Br,j as Cr,k as Fr,l as Gr,m as Hr,n as Ur,o as Vr,p as Wr,q as Xr,r as Yr,s as Zr,t as $r,u as of,v as rf,w as ff,x as tf,y as df,z as nf}from"./focused-chunks/chunk-Z56ECT7I.js";import{a as gr,b as cr,c as wr,d as hr,e as Dr,f as Ir,g as _r}from"./focused-chunks/chunk-XYNBXTDQ.js";import{A as dr,B as nr,C as pr,D as sr,E as lr,G as mr,H as xr,I as br,J as ir,K as ar,L as ur,M as yr,a as f,b as t,c as d,d as n,e as p,f as s,g as l,h as m,i as x,j as go,k as co,l as wo,m as ho,n as Do,o as Io,p as _o,q as To,r as ko,s as vo,t as Eo,u as jo,v as qo,w as zo,x as Ao,y as Bo,z as Co}from"./focused-chunks/chunk-C5IW2NDA.js";import{$ as me,A as J,Aa as Je,B as K,Ba as Ke,C as L,Ca as Le,D as M,Da as Me,E as N,Ea as Ne,F as O,Fa as Oe,G as P,Ga as Pe,H as Q,Ha as Qe,I as R,J as S,Ja as Re,K as U,Ka as Se,L as V,La as Ue,M as W,N as X,O as Y,P as Z,Q as $,R as ee,S as oe,T as re,U as fe,V as te,W as de,X as ne,Y as pe,Z as se,_ as le,aa as xe,b,ba as be,c as i,ca as ie,d as a,da as ae,e as u,ea as ue,f as y,fa as ye,g,ga as ge,h as c,ha as ce,i as w,ia as we,j as h,ja as he,k as D,ka as De,l as I,la as Ie,m as _,ma as _e,n as T,na as Te,o as k,oa as ke,p as v,pa as ve,q as E,qa as Ee,r as j,ra as je,s as q,sa as qe,t as z,ta as ze,u as A,ua as Ae,v as B,va as Be,w as C,wa as Ce,x as F,xa as Fe,y as G,ya as Ge,z as H,za as He}from"./focused-chunks/chunk-TVV2DONO.js";import{e as Jr,f as Kr,g as Lr,h as Mr,i as Nr,j as Or,k as Pr,l as Qr,m as Rr,n as Sr,o as ef}from"./focused-chunks/chunk-WGHQVU6P.js";import{$a as So,Aa as yo,Ga as Fo,Ha as Go,Ia as Ho,Ja as Jo,Ka as Ko,La as Lo,Ma as Mo,Na as No,Oa as Oo,Pa as Po,Za as Qo,_a as Ro,ab as Uo,bb as Vo,cb as Wo,db as Xo,ea as Ve,eb as Yo,fa as We,fb as Zo,ga as Xe,gb as $o,ha as Ye,hb as er,ia as Ze,ib as or,ja as $e,jb as rr,ka as eo,kb as fr,la as oo,lb as tr,ma as ro,na as fo,oa as to,qa as no,ra as po,sa as so,ta as lo,ua as mo,va as xo,wa as bo,xa as io,ya as ao,za as uo}from"./focused-chunks/chunk-2PN4TJXH.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]="df504de1-de3b-55fe-baef-08c0d1dcf97f")}catch{}})();export{s as ACTIVITY_COMMANDER_STRING_OPTION_CONTRACTS,Be as ACTIVITY_FLAG_CONTRACTS,g as AGGREGATE_FLAG_CONTRACTS,fe as APPEND_FLAG_CONTRACTS,_e as ASSURANCE_FLAG_CONTRACTS,d as CALENDAR_COMMANDER_STRING_OPTION_CONTRACTS,Ae as CALENDAR_FLAG_CONTRACTS,te as CLAIM_FLAG_CONTRACTS,sr as CLOSE_ACTION_OPTION_KEYS,oe as CLOSE_FLAG_CONTRACTS,re as CLOSE_MANY_FLAG_CONTRACTS,me as CLOSE_TASK_FLAG_CONTRACTS,c as COMMENTS_FLAG_CONTRACTS,Qe as COMPLETION_FLAG_CONTRACTS,C as CONFIG_FLAG_CONTRACTS,n as CONTEXT_COMMANDER_STRING_OPTION_CONTRACTS,Fe as CONTEXT_FLAG_CONTRACTS,Pe as CONTRACTS_FLAG_CONTRACTS,Ee as COPY_FLAG_CONTRACTS,gr as CREATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,wr as CREATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,cr as CREATE_COMMANDER_STRING_OPTION_CONTRACTS,Te as CREATE_FLAG_CONTRACTS,ne as DELETE_FLAG_CONTRACTS,Je as DEPS_FLAG_CONTRACTS,I as DOCS_FLAG_CONTRACTS,he as DUPLICATES_FLAG_CONTRACTS,Le as EVAL_FLAG_CONTRACTS,Ce as EVENTS_FLAG_CONTRACTS,be as EVENT_FLAG_CONTRACTS,We as EXECUTABLE_COMMAND_ALIASES,Q as EXTENSION_ACTIVATE_FLAG_CONTRACTS,P as EXTENSION_ADOPT_ALL_FLAG_CONTRACTS,Y as EXTENSION_ADOPT_FLAG_CONTRACTS,X as EXTENSION_CATALOG_FLAG_CONTRACTS,R as EXTENSION_DEACTIVATE_FLAG_CONTRACTS,O as EXTENSION_DESCRIBE_FLAG_CONTRACTS,W as EXTENSION_DOCTOR_FLAG_CONTRACTS,N as EXTENSION_EXPLORE_FLAG_CONTRACTS,F as EXTENSION_FLAG_CONTRACTS,H as EXTENSION_INIT_FLAG_CONTRACTS,L as EXTENSION_INSTALL_FLAG_CONTRACTS,U as EXTENSION_MANAGE_FLAG_CONTRACTS,S as EXTENSION_MIGRATE_FLAG_CONTRACTS,V as EXTENSION_RELOAD_FLAG_CONTRACTS,G as EXTENSION_SCOPE_FLAG_CONTRACTS,M as EXTENSION_UNINSTALL_FLAG_CONTRACTS,D as FILES_FLAG_CONTRACTS,je as FOCUS_FLAG_CONTRACTS,ce as GC_FLAG_CONTRACTS,Ge as GET_FLAG_CONTRACTS,u as GLOBAL_FLAG_CONTRACTS,Ke as GRAPH_FLAG_CONTRACTS,He as GUIDE_FLAG_CONTRACTS,De as HEALTH_FLAG_CONTRACTS,E as HISTORY_AUTHOR_ACKNOWLEDGE_FLAG_CONTRACTS,j as HISTORY_COMPACT_FLAG_CONTRACTS,_ as HISTORY_FLAG_CONTRACTS,k as HISTORY_REDACT_FLAG_CONTRACTS,v as HISTORY_REPAIR_FLAG_CONTRACTS,B as INIT_FLAG_CONTRACTS,Z as INSTALL_FLAG_CONTRACTS,ve as ITEM_COMPLETE_FLAG_CONTRACTS,ke as ITEM_MUTATE_FLAG_CONTRACTS,h as LEARNINGS_FLAG_CONTRACTS,f as LIST_COMMANDER_STRING_OPTION_CONTRACTS,y as LIST_FILTER_FLAG_CONTRACTS,xe as MEET_FLAG_CONTRACTS,T as MERGE_FLAG_CONTRACTS,p as NEXT_COMMANDER_STRING_OPTION_CONTRACTS,Ne as NEXT_FLAG_CONTRACTS,w as NOTES_FLAG_CONTRACTS,J as PACKAGE_FLAG_CONTRACTS,K as PACKAGE_INIT_FLAG_CONTRACTS,le as PAUSE_TASK_FLAG_CONTRACTS,pr as PLAN_CREATE_METADATA_PARAMETER_KEYS,A as PLAN_FLAG_CONTRACTS,Er as PM_CLI_GRAMMAR_CONTRACT,Tr as PM_CLI_GRAMMAR_NOUNS,po as PM_CLI_ONLY_TOOL_ACTION_WAIVERS,kr as PM_CLI_SHARED_VERBS,Ve as PM_COMMAND_ALIAS_CONTRACTS,vr as PM_COMMAND_DESTINATION_CONTRACTS,zr as PM_COMMAND_EXIT_CONTRACTS,qr as PM_COMMAND_EXIT_OUTCOME_CONTRACTS,Lo as PM_COMMAND_OUTPUT_BUDGET_CONTRACTS,ff as PM_COMMAND_OUTPUT_ENVELOPE_CONTRACTS,Jr as PM_CONTEXT_INTENT_CONTRACTS,to as PM_CORE_COMMAND_NAMES,lo as PM_DEPRECATED_TOOL_ACTIONS,mo as PM_DISCOVERABLE_TOOL_ACTIONS,Yr as PM_ERROR_CODE_CATALOG,Ur as PM_ERROR_CODE_EXIT_CLASS_CONTRACTS,Ze as PM_EXTENSION_CAPABILITY_CONTRACTS,no as PM_EXTENSION_PACKAGE_ACTION_SUBCOMMANDS,eo as PM_EXTENSION_POLICY_MODE_CONTRACTS,fo as PM_EXTENSION_POLICY_SURFACE_CONTRACTS,ro as PM_EXTENSION_SANDBOX_PROFILE_CONTRACTS,$e as PM_EXTENSION_SERVICE_NAME_CONTRACTS,oo as PM_EXTENSION_TRUST_MODE_CONTRACTS,Go as PM_OUTPUT_BUDGET_CLASSES,Fo as PM_OUTPUT_DEGRADATION_STEPS,of as PM_OUTPUT_ENVELOPE_KINDS,ur as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA,ir as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA_VERSION,Uo as PM_READ_OUTPUT_COMPOSITION_OPTION_FLAGS,Qo as PM_READ_OUTPUT_DIMENSIONS,So as PM_READ_OUTPUT_OPTION_FLAGS,Ro as PM_READ_OUTPUT_SURFACES,Vo as PM_READ_OUTPUT_SURFACE_CONTRACTS,Ar as PM_SUCCESS_EXIT_CODES,so as PM_TOOL_ACTIONS,lr as PM_TOOL_ACTION_PARAMETER_CONTRACTS,ar as PM_TOOL_PARAMETERS_SCHEMA,br as PM_TOOL_PARAMETERS_SCHEMA_MAJOR,xr as PM_TOOL_PARAMETERS_SCHEMA_VERSION,dr as PM_TOOL_RESERVED_CUSTOM_FIELD_PROPERTIES,z as PROFILE_FLAG_CONTRACTS,ee as REINDEX_FLAG_CONTRACTS,pe as RELEASE_FLAG_CONTRACTS,ie as REMIND_FLAG_CONTRACTS,de as RESTORE_FLAG_CONTRACTS,q as SCHEMA_FLAG_CONTRACTS,t as SEARCH_COMMANDER_STRING_OPTION_CONTRACTS,Oe as SEARCH_FLAG_CONTRACTS,se as START_TASK_FLAG_CONTRACTS,we as STATS_FLAG_CONTRACTS,a as SUBCOMMAND_GLOBAL_FLAG_CONTRACTS,ye as TELEMETRY_FLAG_CONTRACTS,ue as TEST_ALL_FLAG_CONTRACTS,ae as TEST_FLAG_CONTRACTS,ge as TEST_RUNS_FLAG_CONTRACTS,zo as TOOL_ACTIVITY_OPTION_CONTRACTS,co as TOOL_AGGREGATE_OPTION_CONTRACTS,vo as TOOL_BULK_MUTATION_FILTER_OPTION_CONTRACT_SOURCE,qo as TOOL_CALENDAR_OPTION_CONTRACTS,jo as TOOL_CLOSE_MANY_FILTER_OPTION_CONTRACTS,Ao as TOOL_CONTEXT_OPTION_CONTRACTS,_o as TOOL_CREATE_OPTION_CONTRACTS,Io as TOOL_CREATE_OPTION_CONTRACT_SOURCE,Bo as TOOL_DEPS_OPTION_CONTRACTS,Co as TOOL_GRAPH_OPTION_CONTRACTS,go as TOOL_LIST_FILTER_OPTION_CONTRACTS,wo as TOOL_SEARCH_FILTER_OPTION_CONTRACTS,Do as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACTS,ho as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACT_SOURCE,Eo as TOOL_UPDATE_MANY_FILTER_OPTION_CONTRACTS,ko as TOOL_UPDATE_OPTION_CONTRACTS,To as TOOL_UPDATE_OPTION_CONTRACT_SOURCE,hr as UPDATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,Ir as UPDATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,Dr as UPDATE_COMMANDER_STRING_OPTION_CONTRACTS,qe as UPDATE_FLAG_CONTRACTS,ze as UPDATE_MANY_FLAG_CONTRACTS,$ as UPGRADE_FLAG_CONTRACTS,Ie as VALIDATE_FLAG_CONTRACTS,Me as WORKSPACE_FLAG_CONTRACTS,yr as _testOnlyCliContracts,Gr as analyzePmCommandExitConformance,xo as analyzePmToolActionParity,_r as analyzeSdkCliParameterCompleteness,Or as applyContextIntentProjection,rr as applyReadOutputDimensions,Zo as applyReadOutputIncludeModes,Rr as attachContextIntentReceipt,ef as attachOutputTokenAccounting,Sr as attachReadOutputContracts,mr as buildPmActionToolInputSchema,i as compactFlagAliasContracts,Mr as composeContextIntentContracts,Qr as contextIntentRowId,Jo as createPmCommandOutputBudget,Pr as decodeContextIntentCursor,Po as decodeReadOutputContinuationCursor,Ko as definePmCommandOutputBudget,rf as definePmCommandOutputEnvelope,Vr as definePmErrorCodeCatalog,Hr as derivePmBulkMutationEffect,Oo as encodeReadOutputContinuationCursor,Zr as enrichCliFlagInvocationContract,$r as enrichCliFlagInvocationContracts,No as estimatePmOutputTokens,Kr as getActiveContextIntentContracts,Re as hasSubcommandFlagContractsForCommand,Ho as inferPmOutputBudgetClass,io as isPmExtensionCapabilityContract,uo as isPmExtensionPolicyModeContract,yo as isPmExtensionPolicySurfaceContract,ao as isPmExtensionServiceNameContract,Cr as isPmKnownExitCode,df as isPmMutationReceipt,Br as isPmSuccessfulExitCode,bo as isPmToolAction,fr as isReadOutputBudgetExceeded,$o as normalizeReadOutputIncludeModeOptions,nf as parseMutationReceipt,l as readFirstStringFromCommanderOptions,m as readFirstValueFromCommanderOptions,Yo as readOutputIncludeModeOptions,x as readStringArrayFromCommanderOptions,Ye as renderPmCommandAliasMigrationHint,Wr as resolveCanonicalPmErrorCodeContract,Nr as resolveContextIntentContract,Xe as resolvePmCommandAlias,Fr as resolvePmCommandExitContract,Mo as resolvePmCommandOutputBudget,tf as resolvePmCommandOutputEnvelope,Xr as resolvePmErrorCodeContract,nr as resolvePmToolCustomFieldCollision,er as resolveReadOutputDimensions,tr as resolveReadOutputEncoding,Wo as resolveReadOutputSurface,Se as resolveSubcommandFlagContractsForCommand,Lr as runWithContextIntentContracts,or as stabilizeReadOutputReceiptEstimates,Ue as toCompletionFlagString,Xo as validateReadOutputOptions,jr as verifyPmCliGrammar,b as withFlagAliasMetadata};
1
+ import{a as wn,b as xn,c as jn,d as Cn,e as vn,f as $n,g as kn,h as Tn,i as An,j as zn,k as Ln,l as qn,m as Bn,n as Jn,o as h,p as Rn,q as w,t as Un,u as Kn,v as Xn,w as Yn,x as Hn,y as Vn}from"./focused-chunks/chunk-Z3PLWSGM.js";import{a as pn,b as mn,c as gn,d as _n,e as yn,f as bn,g as hn}from"./focused-chunks/chunk-325UXIO7.js";import{A as Oo,B as en,C as tn,D as on,E as nn,F as an,H as rn,I as sn,J as dn,K as ln,L as cn,M as un,N as fn,a as P,b as A,c as z,d as L,e as q,f as B,g as J,h as R,i as G,j as uo,k as fo,l as po,m as mo,n as go,o as _o,p as yo,q as bo,r as ho,s as wo,t as xo,u as jo,v as Co,w as vo,x as $o,y as ko,z as To}from"./focused-chunks/chunk-AZBACT5T.js";import{c as x,d as j,f as C,h as v}from"./focused-chunks/chunk-5L7M4AI7.js";import{$ as Re,$a as b,A as _e,Aa as _t,B as ye,Ba as yt,C as be,Ca as bt,D as he,Da as ht,E as we,Ea as wt,F as xe,Fa as xt,G as je,Ga as jt,H as Ce,Ha as Ct,I as ve,Ia as vt,J as $e,Ja as $t,K as ke,Ka as kt,L as Te,La as Tt,M as Oe,Ma as Ot,N as De,Na as Dt,O as Se,Oa as St,P as Fe,Pa as Ft,Q as Ee,Qa as Et,R as Me,Ra as Mt,S as Ie,Sa as It,T as Ne,Ta as Nt,U as Pe,Ua as Pt,V as Ae,Va as At,W as ze,Wa as zt,X as Le,Y as qe,Ya as Lt,Z as Be,_ as Je,_a as y,aa as Ge,ab as qt,b as U,ba as Ue,c as K,ca as Ke,d as X,da as Xe,e as Y,ea as Ye,f as H,fa as He,g as V,ga as Ve,h as W,ha as We,i as Q,ia as Qe,j as Z,ja as Ze,k as ee,ka as et,l as te,la as tt,m as oe,ma as ot,n as ne,na as nt,o as ie,oa as it,p as ae,pa as at,q as re,qa as rt,r as se,ra as st,s as de,sa as dt,t as le,ta as lt,u as ce,ua as ct,v as ue,va as ut,w as fe,wa as ft,x as pe,xa as pt,y as me,ya as mt,z as ge,za as gt}from"./focused-chunks/chunk-TDR5OGG3.js";import{g as _,h as On,i as Dn,j as Sn,k as Fn,l as En,m as Mn,n as In,o as Nn,p as Pn,q as Gn}from"./focused-chunks/chunk-UGSS4F5X.js";import{$a as qo,Aa as lo,Ba as co,Ha as Do,Ia as So,Ja as Fo,Ka as Eo,La as Mo,Ma as Io,Na as No,Oa as Po,Pa as Ao,Qa as zo,Y as g,_a as Lo,ab as Bo,bb as Jo,cb as Ro,db as Go,ea as Bt,eb as Uo,fa as Jt,fb as Ko,ga as Rt,gb as Xo,ha as Gt,hb as Yo,ia as Ut,ib as Ho,ja as Kt,jb as Vo,ka as Xt,kb as Wo,la as Yt,lb as Qo,ma as Ht,mb as Zo,na as Vt,oa as Wt,qa as Qt,ra as Zt,sa as eo,ta as to,ua as oo,va as no,wa as io,xa as ao,ya as ro,za as so}from"./focused-chunks/chunk-Q47EX4DI.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]="6ba3d756-dcd6-59b7-92fe-ec33d294d72b")}catch{}})();var u,O=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,o){if(o==="--limit")return"result-row-limit";if(o==="--node-limit")return"graph-node-limit";if(o==="--edge-limit")return"graph-edge-limit";if(o==="--output-limit")return"rendered-output-row-limit";if(o==="--output-budget")return"rendered-output-byte-budget";if(o==="--token-budget")return"context-intent-token-budget";if(o==="--full"){let i=O[e];if(i===void 0)throw new Error(`Command ${e} exposes --full without a registered projection concept.`);return i}return o!=="--file"?o.slice(2):["create","update","update-many"].includes(e)?"linked-file-path":["comments","notes","learnings"].includes(e)?"entry-file-input":"plan-definition-file"}function f(){if(u!==void 0)return u;let o=w.filter(({command:t})=>y(t)).flatMap(({command:t,family:s})=>h(t,b(t)).map(d=>({command:t,family:s,concept:D(t,d.flag),flag:d.flag,aliases:Object.freeze([...d.aliases??[]]),value_kind:d.repeatable?"list":d.flag==="--limit"?"number":d.value_type}))),i=new Set(o.flatMap(t=>t.aliases.map(s=>`${t.command}:${s}`))),r=o.filter(t=>!i.has(`${t.command}:${t.flag}`)),n=new Map;for(let t of r){let s=n.get(t.concept)??new Set;s.add(t.value_kind),n.set(t.concept,s)}return u=Object.freeze(r.map(t=>Object.freeze({...t,concept:n.get(t.concept)?.size===1?t.concept:`${t.concept}@${t.command}`}))),u}function ei(){return Object.freeze(f().map(e=>Object.freeze({command:e.command,canonical_flag:e.flag,accepted_spellings:Object.freeze([...new Set([e.flag,...e.aliases])].sort())})))}var $=Object.freeze({init:30,config:35,extension:53,package:54,packages:54,install:26,upgrade:29,create:100,copy:24,focus:22,list:86,"list-all":85,"list-draft":84,"list-open":84,"list-in-progress":84,"list-blocked":84,"list-closed":84,"list-canceled":84,aggregate:37,context:45,ctx:45,get:30,graph:34,search:78,duplicates:24,eval:25,next:35,history:35,events:33,"history-redact":27,"history-repair":26,"history-compact":30,"history-author-acknowledge":28,merge:24,schema:40,profile:22,activity:35,restore:23,update:105,"update-many":140,close:31,"close-many":72,delete:24,append:24,comments:30,notes:34,learnings:26,files:39,docs:30,deps:32,plan:109,test:48,"test-all":37,telemetry:21,stats:29,health:36,validate:45,assurance:30,gc:22,workspace:23,contracts:29,claim:36,release:23,"start-task":23,"pause-task":23,"close-task":24,meet:33,event:33,remind:29,"test-runs-worker":25});function k(){let e=new Map(Object.keys($).map(o=>[o,0]));for(let{command:o}of f())e.set(o,Number(e.get(o))+1);return Object.freeze(Object.entries($).map(([o,i])=>Object.freeze({command:o,current:Number(e.get(o)),maximum:i})))}function S(e,o,i){for(let r of e)for(let n of r.aliases){let t=o.get(`${r.command}:${n}`);t===void 0||t.flag===r.flag||i.push({code:"alias_collision",command:r.command,detail:`${n} aliases ${r.flag} but is canonical for ${t.flag}.`})}}function F(e,o,i){let r=new Set(o.map(({command:n})=>n));for(let n of e.keys())r.has(n)||i.push({code:"missing_budget",command:n,detail:`${n} has canonical flags but no persisted budget.`});for(let n of o){let t=e.get(n.command)??0;t===0&&i.push({code:"stale_budget",command:n.command,detail:`${n.command} has a persisted budget but no canonical flags.`}),!(t<=n.maximum)&&i.push({code:"budget_exceeded",command:n.command,detail:`${t} canonical flags exceed the ratcheted maximum ${n.maximum}.`})}}function E(e,o,i){let r=new Map(e.map(n=>[`${n.command}:${n.flag}`,n]));for(let n of o){let t=`${n.command}:${n.canonical_flag}`,s=r.get(t);if(!s){i.push({code:"removed_canonical_spelling",command:n.command,detail:`${n.canonical_flag} disappeared from the executable spelling inventory.`});continue}let d=new Set([s.flag,...s.aliases]);for(let a of n.accepted_spellings)d.has(a)||i.push({code:"removed_compatibility_spelling",command:n.command,detail:`${a} no longer resolves to ${n.canonical_flag}.`})}}function ti(e=f(),o=k(),i=[]){let r=[],n=new Map,t=new Map,s=new Map,d=new Map;for(let a of e){let l=`${a.command}:${a.flag}`;n.has(l)?r.push({code:"duplicate_canonical_flag",command:a.command,detail:`${a.flag} has more than one canonical row.`}):n.set(l,a),d.set(a.command,(d.get(a.command)??0)+1);let p=t.get(a.concept);p!==void 0&&p!==a.value_kind?r.push({code:"inconsistent_concept_kind",command:a.command,detail:`${a.concept} uses both ${p} and ${a.value_kind}.`}):t.set(a.concept,a.value_kind);let m=s.get(a.concept);m!==void 0&&m!==a.flag?r.push({code:"semantic_spelling_collision",command:a.command,detail:`${a.concept} is canonicalized by both ${m} and ${a.flag}.`}):s.set(a.concept,a.flag)}return S(e,n,r),F(d,o,r),E(e,i,r),r.sort((a,l)=>a.command.localeCompare(l.command)||a.code.localeCompare(l.code)||a.detail.localeCompare(l.detail)),{ok:r.length===0,entry_count:e.length,budget_count:o.length,concept_count:new Set(e.map(({concept:a})=>a)).size,baseline_entry_count:i.length,findings:r}}function oi(){let e=f(),o=k(),i=new Map(o.map(({command:n})=>[n,"unknown"]));for(let{command:n,family:t}of e)i.set(n,t);return["# Generated flag lexicon budgets","","This file is generated by `listPmFlagLexicon()`. Compatibility aliases do not consume canonical budget.","","| Command | Capability family | Canonical flags | Maximum |","| --- | --- | ---: | ---: |",...o.map(({command:n,current:t,maximum:s})=>{let d=i.get(n);return`| \`${n}\` | ${d} | ${t} | ${s} |`}),""].join(`
2
+ `)}(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]="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 I(e){return[e.exit_code!==g.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 ${g.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 ai(e){let o=[],i=new Set,r=0;e.length===0&&o.push({code:"empty_corpus",probe_id:"corpus",detail:"At least one real refusal observation is required."});for(let n of e){if(i.has(n.probe_id)){o.push({code:"duplicate_probe",probe_id:n.probe_id,detail:`${n.probe_id} was supplied more than once.`});continue}i.add(n.probe_id);let t=o.length;for(let s of I(n))s!==void 0&&o.push(s);o.length===t&&(r+=1)}return o.sort((n,t)=>n.probe_id!==t.probe_id?n.probe_id.localeCompare(t.probe_id):n.code.localeCompare(t.code)),{ok:o.length===0,probe_count:i.size,closed_probe_count:r,closure_fraction:i.size===0?0:r/i.size,findings:o}}(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]="35d4f3d7-7ec2-5a8b-bd96-f7e73c658737")}catch{}})();var T="not-a-declared-intent",c="not-a-declared-field";function N(){let e={get:["pm-domain"],search:["Domain query"]},o=[...new Set(_.map(({command:t})=>t))].map(t=>{let s=_.filter(l=>l.command===t),d=s[0],a=e[d.command]??[];return{probe_id:`${d.command}-invalid-intent`,command:d.command,flag:"--for",rejected_value:T,refusal_args:[d.command,...a,"--for",T],allowed_values:s.map(({intent:l})=>l).sort(),suggested_retry_args:[d.command,...a,"--for",d.intent],error_code:"unknown_context_intent"}}),i=j(),r=Object.keys(x).map(t=>({probe_id:`${t}-invalid-field`,command:t,flag:"--fields",rejected_value:c,refusal_args:[t,"--fields",c],allowed_values:i,suggested_retry_args:[t,"--fields","id,title,status","--limit","10"],error_code:"unknown_field_projection"}));return[...o,...r,{probe_id:"get-invalid-field",command:"get",flag:"--fields",rejected_value:c,refusal_args:["get","pm-domain","--fields",c],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:"search-invalid-field",command:"search",flag:"--fields",rejected_value:c,refusal_args:["search","Domain query","--fields",c],allowed_values:v(),suggested_retry_args:["search","Domain query","--fields","id,title,status,score"],error_code:"unknown_field_projection"}].sort((t,s)=>t.probe_id.localeCompare(s.probe_id))}function li(e,o){let i=N().find(t=>t.command===e&&t.flag===o);if(!i)return"No stable core values are declared.";let r=i.allowed_values.filter(t=>!t.startsWith("item.")),n=o==="--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: ${r.join("|")}.${n}`}(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]="8e9dc315-4c5a-5cb0-befc-e0dbbf7e8571")}catch{}})();export{B as ACTIVITY_COMMANDER_STRING_OPTION_CONTRACTS,kt as ACTIVITY_FLAG_CONTRACTS,ce as AGGREGATE_FLAG_CONTRACTS,Ve as APPEND_FLAG_CONTRACTS,_t as ASSURANCE_FLAG_CONTRACTS,z as CALENDAR_COMMANDER_STRING_OPTION_CONTRACTS,$t as CALENDAR_FLAG_CONTRACTS,We as CLAIM_FLAG_CONTRACTS,nn as CLOSE_ACTION_OPTION_KEYS,Ye as CLOSE_FLAG_CONTRACTS,He as CLOSE_MANY_FLAG_CONTRACTS,nt as CLOSE_TASK_FLAG_CONTRACTS,ue as COMMENTS_FLAG_CONTRACTS,zt as COMPLETION_FLAG_CONTRACTS,ke as CONFIG_FLAG_CONTRACTS,L as CONTEXT_COMMANDER_STRING_OPTION_CONTRACTS,Ot as CONTEXT_FLAG_CONTRACTS,At as CONTRACTS_FLAG_CONTRACTS,xt as COPY_FLAG_CONTRACTS,pn as CREATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,gn as CREATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,mn as CREATE_COMMANDER_STRING_OPTION_CONTRACTS,yt as CREATE_FLAG_CONTRACTS,Ze as DELETE_FLAG_CONTRACTS,Ft as DEPS_FLAG_CONTRACTS,ge as DOCS_FLAG_CONTRACTS,pt as DUPLICATES_FLAG_CONTRACTS,Mt as EVAL_FLAG_CONTRACTS,Tt as EVENTS_FLAG_CONTRACTS,at as EVENT_FLAG_CONTRACTS,Jt as EXECUTABLE_COMMAND_ALIASES,Ae as EXTENSION_ACTIVATE_FLAG_CONTRACTS,Pe as EXTENSION_ADOPT_ALL_FLAG_CONTRACTS,Ge as EXTENSION_ADOPT_FLAG_CONTRACTS,Re as EXTENSION_CATALOG_FLAG_CONTRACTS,ze as EXTENSION_DEACTIVATE_FLAG_CONTRACTS,Ne as EXTENSION_DESCRIBE_FLAG_CONTRACTS,Je as EXTENSION_DOCTOR_FLAG_CONTRACTS,Ie as EXTENSION_EXPLORE_FLAG_CONTRACTS,Te as EXTENSION_FLAG_CONTRACTS,De as EXTENSION_INIT_FLAG_CONTRACTS,Ee as EXTENSION_INSTALL_FLAG_CONTRACTS,qe as EXTENSION_MANAGE_FLAG_CONTRACTS,Le as EXTENSION_MIGRATE_FLAG_CONTRACTS,Be as EXTENSION_RELOAD_FLAG_CONTRACTS,Oe as EXTENSION_SCOPE_FLAG_CONTRACTS,Me as EXTENSION_UNINSTALL_FLAG_CONTRACTS,me as FILES_FLAG_CONTRACTS,jt as FOCUS_FLAG_CONTRACTS,ut as GC_FLAG_CONTRACTS,Dt as GET_FLAG_CONTRACTS,de as GLOBAL_FLAG_CONTRACTS,Et as GRAPH_FLAG_CONTRACTS,St as GUIDE_FLAG_CONTRACTS,mt as HEALTH_FLAG_CONTRACTS,we as HISTORY_AUTHOR_ACKNOWLEDGE_FLAG_CONTRACTS,xe as HISTORY_COMPACT_FLAG_CONTRACTS,_e as HISTORY_FLAG_CONTRACTS,be as HISTORY_REDACT_FLAG_CONTRACTS,he as HISTORY_REPAIR_FLAG_CONTRACTS,$e as INIT_FLAG_CONTRACTS,Ue as INSTALL_FLAG_CONTRACTS,ht as ITEM_COMPLETE_FLAG_CONTRACTS,bt as ITEM_MUTATE_FLAG_CONTRACTS,wt as ITEM_REOPEN_FLAG_CONTRACTS,pe as LEARNINGS_FLAG_CONTRACTS,P as LIST_COMMANDER_STRING_OPTION_CONTRACTS,le as LIST_FILTER_FLAG_CONTRACTS,it as MEET_FLAG_CONTRACTS,ye as MERGE_FLAG_CONTRACTS,q as NEXT_COMMANDER_STRING_OPTION_CONTRACTS,Nt as NEXT_FLAG_CONTRACTS,fe as NOTES_FLAG_CONTRACTS,Se as PACKAGE_FLAG_CONTRACTS,Fe as PACKAGE_INIT_FLAG_CONTRACTS,ot as PAUSE_TASK_FLAG_CONTRACTS,on as PLAN_CREATE_METADATA_PARAMETER_KEYS,ve as PLAN_FLAG_CONTRACTS,Z as PM_CLI_GRAMMAR_CONTRACT,U as PM_CLI_GRAMMAR_NOUNS,eo as PM_CLI_ONLY_TOOL_ACTION_WAIVERS,K as PM_CLI_SHARED_VERBS,Bt as PM_COMMAND_ALIAS_CONTRACTS,W as PM_COMMAND_DESTINATION_CONTRACTS,xn as PM_COMMAND_EXIT_CONTRACTS,wn as PM_COMMAND_EXIT_OUTCOME_CONTRACTS,Io as PM_COMMAND_OUTPUT_BUDGET_CONTRACTS,Xn as PM_COMMAND_OUTPUT_ENVELOPE_CONTRACTS,Q as PM_COMMAND_POSITIONAL_CONTRACTS,_ as PM_CONTEXT_INTENT_CONTRACTS,Wt as PM_CORE_COMMAND_NAMES,oo as PM_DEPRECATED_TOOL_ACTIONS,no as PM_DISCOVERABLE_TOOL_ACTIONS,Bn as PM_ERROR_CODE_CATALOG,An as PM_ERROR_CODE_EXIT_CLASS_CONTRACTS,Ut as PM_EXTENSION_CAPABILITY_CONTRACTS,Qt as PM_EXTENSION_PACKAGE_ACTION_SUBCOMMANDS,Xt as PM_EXTENSION_POLICY_MODE_CONTRACTS,Vt as PM_EXTENSION_POLICY_SURFACE_CONTRACTS,Ht as PM_EXTENSION_SANDBOX_PROFILE_CONTRACTS,Kt as PM_EXTENSION_SERVICE_NAME_CONTRACTS,Yt as PM_EXTENSION_TRUST_MODE_CONTRACTS,Zt as PM_ITEM_ACTION_SUBCOMMANDS,So as PM_OUTPUT_BUDGET_CLASSES,Do as PM_OUTPUT_DEGRADATION_STEPS,Un as PM_OUTPUT_ENVELOPE_KINDS,X as PM_POSITIONAL_ACTION_CONTRACTS,un as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA,ln as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA_VERSION,Jo as PM_READ_OUTPUT_COMPOSITION_OPTION_FLAGS,Lo as PM_READ_OUTPUT_DIMENSIONS,Bo as PM_READ_OUTPUT_OPTION_FLAGS,qo as PM_READ_OUTPUT_SURFACES,Ro as PM_READ_OUTPUT_SURFACE_CONTRACTS,jn as PM_SUCCESS_EXIT_CODES,to as PM_TOOL_ACTIONS,an as PM_TOOL_ACTION_PARAMETER_CONTRACTS,cn as PM_TOOL_PARAMETERS_SCHEMA,dn as PM_TOOL_PARAMETERS_SCHEMA_MAJOR,sn as PM_TOOL_PARAMETERS_SCHEMA_VERSION,en as PM_TOOL_RESERVED_CUSTOM_FIELD_PROPERTIES,Ce as PROFILE_FLAG_CONTRACTS,Xe as REINDEX_FLAG_CONTRACTS,et as RELEASE_FLAG_CONTRACTS,rt as REMIND_FLAG_CONTRACTS,Qe as RESTORE_FLAG_CONTRACTS,je as SCHEMA_FLAG_CONTRACTS,A as SEARCH_COMMANDER_STRING_OPTION_CONTRACTS,Pt as SEARCH_FLAG_CONTRACTS,tt as START_TASK_FLAG_CONTRACTS,ft as STATS_FLAG_CONTRACTS,se as SUBCOMMAND_GLOBAL_FLAG_CONTRACTS,lt as TELEMETRY_FLAG_CONTRACTS,dt as TEST_ALL_FLAG_CONTRACTS,st as TEST_FLAG_CONTRACTS,ct as TEST_RUNS_FLAG_CONTRACTS,$o as TOOL_ACTIVITY_OPTION_CONTRACTS,po as TOOL_AGGREGATE_OPTION_CONTRACTS,xo as TOOL_BULK_MUTATION_FILTER_OPTION_CONTRACT_SOURCE,vo as TOOL_CALENDAR_OPTION_CONTRACTS,Co as TOOL_CLOSE_MANY_FILTER_OPTION_CONTRACTS,ko as TOOL_CONTEXT_OPTION_CONTRACTS,bo as TOOL_CREATE_OPTION_CONTRACTS,yo as TOOL_CREATE_OPTION_CONTRACT_SOURCE,To as TOOL_DEPS_OPTION_CONTRACTS,Oo as TOOL_GRAPH_OPTION_CONTRACTS,fo as TOOL_LIST_FILTER_OPTION_CONTRACTS,mo as TOOL_SEARCH_FILTER_OPTION_CONTRACTS,_o as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACTS,go as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACT_SOURCE,jo as TOOL_UPDATE_MANY_FILTER_OPTION_CONTRACTS,wo as TOOL_UPDATE_OPTION_CONTRACTS,ho as TOOL_UPDATE_OPTION_CONTRACT_SOURCE,_n as UPDATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,bn as UPDATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,yn as UPDATE_COMMANDER_STRING_OPTION_CONTRACTS,Ct as UPDATE_FLAG_CONTRACTS,vt as UPDATE_MANY_FLAG_CONTRACTS,Ke as UPGRADE_FLAG_CONTRACTS,gt as VALIDATE_FLAG_CONTRACTS,It as WORKSPACE_FLAG_CONTRACTS,fn as _testOnlyCliContracts,kn as analyzePmCommandExitConformance,io as analyzePmToolActionParity,hn as analyzeSdkCliParameterCompleteness,En as applyContextIntentProjection,Wo as applyReadOutputDimensions,Xo as applyReadOutputIncludeModes,Nn as attachContextIntentReceipt,Gn as attachOutputTokenAccounting,Pn as attachReadOutputContracts,rn as buildPmActionToolInputSchema,re as compactFlagAliasContracts,Sn as composeContextIntentContracts,In as contextIntentRowId,Eo as createPmCommandOutputBudget,Mn as decodeContextIntentCursor,zo as decodeReadOutputContinuationCursor,Mo as definePmCommandOutputBudget,Kn as definePmCommandOutputEnvelope,zn as definePmErrorCodeCatalog,Tn as derivePmBulkMutationEffect,Ao as encodeReadOutputContinuationCursor,Jn as enrichCliFlagInvocationContract,h as enrichCliFlagInvocationContracts,Po as estimatePmOutputTokens,V as formatPmPositionalActionFlagTip,On as getActiveContextIntentContracts,y as hasSubcommandFlagContractsForCommand,Fo as inferPmOutputBudgetClass,ro as isPmExtensionCapabilityContract,lo as isPmExtensionPolicyModeContract,co as isPmExtensionPolicySurfaceContract,so as isPmExtensionServiceNameContract,vn as isPmKnownExitCode,Hn as isPmMutationReceipt,Cn as isPmSuccessfulExitCode,ao as isPmToolAction,Qo as isReadOutputBudgetExceeded,N as listCoreClosedDomainContracts,k as listPmCommandFlagBudgets,f as listPmFlagLexicon,ei as listPmFlagSpellingInventory,Yo as normalizeReadOutputIncludeModeOptions,Vn as parseMutationReceipt,te as positionalShapeKey,oe as positionalSignatureKey,J as readFirstStringFromCommanderOptions,R as readFirstValueFromCommanderOptions,Ko as readOutputIncludeModeOptions,G as readStringArrayFromCommanderOptions,li as renderPmClosedDomainHelp,Gt as renderPmCommandAliasMigrationHint,oi as renderPmFlagLexiconMarkdown,Ln as resolveCanonicalPmErrorCodeContract,Fn as resolveContextIntentContract,Rt as resolvePmCommandAlias,$n as resolvePmCommandExitContract,No as resolvePmCommandOutputBudget,Yn as resolvePmCommandOutputEnvelope,Y as resolvePmCommandPositionalContract,qn as resolvePmErrorCodeContract,D as resolvePmFlagSemanticConcept,H as resolvePmPositionalActionContract,Lt as resolvePmPositionalActionFlagContracts,tn as resolvePmToolCustomFieldCollision,Ho as resolveReadOutputDimensions,Zo as resolveReadOutputEncoding,Go as resolveReadOutputSurface,b as resolveSubcommandFlagContractsForCommand,Dn as runWithContextIntentContracts,ai as scorePmRefusalClosure,Vo as stabilizeReadOutputReceiptEstimates,qt as toCompletionFlagString,Uo as validateReadOutputOptions,Rn as verifyCliFlagInvocationParity,ee as verifyExplicitPositionalSlotCensus,ie as verifyPmCliGrammar,ne as verifyPmCommandPositionalContracts,ti as verifyPmFlagLexicon,uo as verifyToolOptionCliParity,ae as withFlagAliasMetadata};
2
3
  //# sourceMappingURL=sdk-contracts.js.map