@unbrained/pm-cli 2026.8.12 → 2026.8.13

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 (173) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/CHANGELOG.md +22 -0
  3. package/dist/cli/error-guidance.js +4 -8
  4. package/dist/cli/main.js +3 -2
  5. package/dist/cli/register-assurance.js +28 -17
  6. package/dist/cli-bundle/bundle-manifest.json +161 -161
  7. package/dist/cli-bundle/chunks/chunk-3ZMOWAFM.js +2 -0
  8. package/dist/cli-bundle/chunks/chunk-DEDU3DG7.js +196 -0
  9. package/dist/cli-bundle/chunks/chunk-DL5M5J3V.js +13 -0
  10. package/dist/cli-bundle/chunks/chunk-F7FJYGK3.js +8 -0
  11. package/dist/cli-bundle/chunks/{chunk-RBTK5EZV.js → chunk-HIUZVCMN.js} +2 -2
  12. package/dist/cli-bundle/chunks/chunk-IMGIN7R6.js +2 -0
  13. package/dist/cli-bundle/chunks/{chunk-WLAHPSOX.js → chunk-Q47C67TQ.js} +2 -2
  14. package/dist/cli-bundle/chunks/{chunk-BM5YJ2UW.js → chunk-QGTUPEU5.js} +52 -52
  15. package/dist/cli-bundle/chunks/chunk-TF3TPKPR.js +34 -0
  16. package/dist/cli-bundle/chunks/{chunk-KOQMGCTA.js → chunk-YLBAPY22.js} +50 -50
  17. package/dist/cli-bundle/chunks/{register-list-query-XPCJRUUD.js → register-list-query-4HIZ7EA3.js} +2 -2
  18. package/dist/cli-bundle/chunks/{register-mutation-4RJCBKRS.js → register-mutation-W64FZ5HN.js} +2 -2
  19. package/dist/cli-bundle/chunks/register-operations-C44ET7R5.js +2 -0
  20. package/dist/cli-bundle/chunks/{register-setup-LLHAKP2V.js → register-setup-634MFRXU.js} +2 -2
  21. package/dist/cli-bundle/focused-chunks/chunk-27N23W6M.js +31 -0
  22. package/dist/cli-bundle/focused-chunks/{chunk-YIAXMC3T.js → chunk-2JP7W7GO.js} +2 -2
  23. package/dist/cli-bundle/focused-chunks/chunk-2RI2FESN.js +4 -0
  24. package/dist/cli-bundle/focused-chunks/chunk-3BNVU6LC.js +8 -0
  25. package/dist/cli-bundle/focused-chunks/{chunk-KHM2CS2C.js → chunk-3DJSGWVB.js} +2 -2
  26. package/dist/cli-bundle/focused-chunks/{chunk-2DALMVF7.js → chunk-6MLIRBLV.js} +2 -2
  27. package/dist/cli-bundle/focused-chunks/chunk-6XYLENDV.js +155 -0
  28. package/dist/cli-bundle/focused-chunks/chunk-CP4K4WFS.js +2 -0
  29. package/dist/cli-bundle/focused-chunks/{chunk-RWPAWUOT.js → chunk-E3AVJ655.js} +2 -2
  30. package/dist/cli-bundle/focused-chunks/{chunk-5TAGTDRE.js → chunk-EBTNSFYE.js} +2 -2
  31. package/dist/cli-bundle/focused-chunks/{chunk-KPSXVBDV.js → chunk-HC2OL2H2.js} +2 -2
  32. package/dist/cli-bundle/focused-chunks/{chunk-GQW4BPUT.js → chunk-I75MANL7.js} +2 -2
  33. package/dist/cli-bundle/focused-chunks/{chunk-ZMGWAYH7.js → chunk-IIS2FRKL.js} +2 -2
  34. package/dist/cli-bundle/focused-chunks/chunk-NFHFZH2Z.js +2 -0
  35. package/dist/cli-bundle/focused-chunks/chunk-OGC4XSBC.js +17 -0
  36. package/dist/cli-bundle/focused-chunks/{chunk-JAFRIWVF.js → chunk-OOYYKQWX.js} +4 -4
  37. package/dist/cli-bundle/focused-chunks/{chunk-KTLOKKCQ.js → chunk-PKPOZXLL.js} +2 -2
  38. package/dist/cli-bundle/focused-chunks/chunk-QDZUABWL.js +2 -0
  39. package/dist/cli-bundle/focused-chunks/chunk-QQX5TDFT.js +16 -0
  40. package/dist/cli-bundle/focused-chunks/{chunk-NYLOUPOB.js → chunk-TEZIXMTH.js} +2 -2
  41. package/dist/cli-bundle/focused-chunks/chunk-WEH6NSL6.js +18 -0
  42. package/dist/cli-bundle/main.js +13 -13
  43. package/dist/cli-bundle/sdk-authoring.js +1 -1
  44. package/dist/cli-bundle/sdk-contracts.js +1 -1
  45. package/dist/cli-bundle/sdk-core.js +42 -41
  46. package/dist/cli-bundle/sdk-governance.js +1 -1
  47. package/dist/cli-bundle/sdk-graph.js +1 -1
  48. package/dist/cli-bundle/sdk-merge.js +1 -1
  49. package/dist/cli-bundle/sdk-query.js +1 -1
  50. package/dist/cli-bundle/sdk-runtime.js +1 -1
  51. package/dist/cli-bundle/sdk-testing.js +1 -1
  52. package/dist/cli-bundle/sdk.js +2 -2
  53. package/dist/core/checkpoint/checkpoint-gc.js +7 -12
  54. package/dist/core/extensions/activation-summary-markdown.js +5 -4
  55. package/dist/core/extensions/activation-summary.d.ts +2 -0
  56. package/dist/core/extensions/activation-summary.js +6 -2
  57. package/dist/core/extensions/capability-usage.d.ts +1 -1
  58. package/dist/core/extensions/capability-usage.js +4 -3
  59. package/dist/core/extensions/contribution-inventory.d.ts +1 -0
  60. package/dist/core/extensions/contribution-inventory.js +6 -2
  61. package/dist/core/extensions/extension-registries.js +3 -2
  62. package/dist/core/extensions/extension-types.d.ts +83 -1
  63. package/dist/core/extensions/extension-types.js +3 -2
  64. package/dist/core/extensions/loader.d.ts +2 -8
  65. package/dist/core/extensions/loader.js +53 -144
  66. package/dist/core/extensions/registration-values.d.ts +43 -0
  67. package/dist/core/extensions/registration-values.js +210 -0
  68. package/dist/core/extensions/runtime-registrations.d.ts +3 -1
  69. package/dist/core/extensions/runtime-registrations.js +12 -2
  70. package/dist/core/fs/fs-utils.d.ts +2 -0
  71. package/dist/core/fs/fs-utils.js +7 -3
  72. package/dist/core/history/drift-cache.js +4 -3
  73. package/dist/core/history/drift-scan.js +5 -11
  74. package/dist/core/lock/lock-gc.js +8 -13
  75. package/dist/core/lock/lock.js +5 -4
  76. package/dist/core/search/vector-stores.js +6 -11
  77. package/dist/core/store/item-metadata-cache.js +4 -4
  78. package/dist/core/telemetry/runtime.d.ts +6 -0
  79. package/dist/core/telemetry/runtime.js +101 -30
  80. package/dist/sdk/agent/command-recovery.d.ts +2 -0
  81. package/dist/sdk/agent/command-recovery.js +10 -2
  82. package/dist/sdk/annotations.js +4 -4
  83. package/dist/sdk/cli-contracts/completeness.js +9 -3
  84. package/dist/sdk/cli-contracts/enum-contracts.d.ts +1 -1
  85. package/dist/sdk/cli-contracts/flag-contracts.js +6 -3
  86. package/dist/sdk/cli-contracts/schemas/assurance-definition.d.ts +32 -0
  87. package/dist/sdk/cli-contracts/schemas/assurance-definition.js +25 -2
  88. package/dist/sdk/cli-contracts/tool-parameter-tables.js +35 -5
  89. package/dist/sdk/cli-contracts/tool-schema.js +17 -2
  90. package/dist/sdk/comments.js +4 -3
  91. package/dist/sdk/compile-cache.js +4 -3
  92. package/dist/sdk/compose.d.ts +3 -1
  93. package/dist/sdk/compose.js +16 -2
  94. package/dist/sdk/context-signal-store.js +4 -3
  95. package/dist/sdk/extension/install-runtime.js +4 -4
  96. package/dist/sdk/extension/managed-state.js +4 -3
  97. package/dist/sdk/extension-contracts.d.ts +1 -1
  98. package/dist/sdk/flag-invocation-contracts.js +5 -6
  99. package/dist/sdk/generated/generated-error-code-catalog-part-1.js +14 -2
  100. package/dist/sdk/governance/assurance-action.d.ts +27 -3
  101. package/dist/sdk/governance/assurance-action.js +112 -28
  102. package/dist/sdk/governance/assurance-mutation-error.d.ts +7 -0
  103. package/dist/sdk/governance/assurance-mutation-error.js +25 -2
  104. package/dist/sdk/governance/assurance-presets.d.ts +54 -0
  105. package/dist/sdk/governance/assurance-presets.js +136 -0
  106. package/dist/sdk/governance/assurance-runtime.d.ts +4 -0
  107. package/dist/sdk/governance/assurance-runtime.js +109 -8
  108. package/dist/sdk/governance/assurance.d.ts +39 -0
  109. package/dist/sdk/governance/assurance.js +143 -4
  110. package/dist/sdk/governance/gc.js +5 -11
  111. package/dist/sdk/governance/health.js +5 -5
  112. package/dist/sdk/governance/validate.js +4 -4
  113. package/dist/sdk/graph/durable-cache.js +61 -3
  114. package/dist/sdk/graph/governance-contracts.d.ts +12 -0
  115. package/dist/sdk/graph/governance-contracts.js +27 -0
  116. package/dist/sdk/graph/governance.d.ts +30 -2
  117. package/dist/sdk/graph/governance.js +124 -5
  118. package/dist/sdk/guide.js +4 -4
  119. package/dist/sdk/index.d.ts +2 -1
  120. package/dist/sdk/index.js +4 -3
  121. package/dist/sdk/linked-artifacts.d.ts +2 -0
  122. package/dist/sdk/linked-artifacts.js +29 -4
  123. package/dist/sdk/merge/install.js +5 -4
  124. package/dist/sdk/query/activity.js +4 -3
  125. package/dist/sdk/relationship-history.js +5 -5
  126. package/dist/sdk/schema-migration.js +4 -4
  127. package/dist/sdk/test/execution.js +4 -4
  128. package/dist/sdk/workspace-memory.js +4 -4
  129. package/dist/sdk/workspace-snapshot.js +8 -14
  130. package/dist/sdk/workspace-transaction-gc.js +4 -9
  131. package/dist/sdk/workspace-transaction.js +4 -4
  132. package/dist/sdk/workspace.js +4 -3
  133. package/docs/ASSURANCE.md +154 -3
  134. package/docs/CONFIGURATION.md +2 -0
  135. package/docs/EXTENSIONS.md +11 -12
  136. package/docs/RELATIONSHIP_GRAPH.md +15 -0
  137. package/docs/SDK.md +17 -3
  138. package/docs/TESTING.md +24 -15
  139. package/marketplace.json +2 -2
  140. package/package.json +3 -3
  141. package/packages/pm-beads/package.json +1 -1
  142. package/packages/pm-calendar/package.json +1 -1
  143. package/packages/pm-command-kit/package.json +1 -1
  144. package/packages/pm-digital-twin/package.json +1 -1
  145. package/packages/pm-governance-audit/package.json +1 -1
  146. package/packages/pm-guide-shell/package.json +1 -1
  147. package/packages/pm-kanban/package.json +1 -1
  148. package/packages/pm-lifecycle-hooks/package.json +1 -1
  149. package/packages/pm-linked-test-adapters/package.json +1 -1
  150. package/packages/pm-search-advanced/package.json +1 -1
  151. package/packages/pm-templates/package.json +1 -1
  152. package/packages/pm-todos/package.json +1 -1
  153. package/packages/pm-vcs/package.json +1 -1
  154. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
  155. package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
  156. package/sdk/public-surface.json +183 -33
  157. package/dist/cli-bundle/chunks/chunk-3PS7X6GS.js +0 -8
  158. package/dist/cli-bundle/chunks/chunk-7KL6KMWF.js +0 -13
  159. package/dist/cli-bundle/chunks/chunk-D55A5AEN.js +0 -33
  160. package/dist/cli-bundle/chunks/chunk-KIKDWECH.js +0 -196
  161. package/dist/cli-bundle/chunks/chunk-R76342NV.js +0 -2
  162. package/dist/cli-bundle/chunks/chunk-VLUQOIDT.js +0 -2
  163. package/dist/cli-bundle/chunks/register-operations-2OGISOVR.js +0 -2
  164. package/dist/cli-bundle/focused-chunks/chunk-5OQIMELN.js +0 -155
  165. package/dist/cli-bundle/focused-chunks/chunk-ECADZMVC.js +0 -18
  166. package/dist/cli-bundle/focused-chunks/chunk-EJGXRA6B.js +0 -2
  167. package/dist/cli-bundle/focused-chunks/chunk-FFGSZCPK.js +0 -16
  168. package/dist/cli-bundle/focused-chunks/chunk-ISKOBJCM.js +0 -2
  169. package/dist/cli-bundle/focused-chunks/chunk-LGYK3NUF.js +0 -8
  170. package/dist/cli-bundle/focused-chunks/chunk-NBLUKITQ.js +0 -4
  171. package/dist/cli-bundle/focused-chunks/chunk-Q4T463SD.js +0 -31
  172. package/dist/cli-bundle/focused-chunks/chunk-QVZVY53N.js +0 -2
  173. package/dist/cli-bundle/focused-chunks/chunk-UTEWXDEQ.js +0 -17
@@ -1,2 +1,2 @@
1
- import{a as Ie,b as we,c as Oe,d as Se,e as Pe,f as Fe,g as Re,h as Ae,i as D,j as N,k as L,l as $,m as j,p as K,q as H,w as U,x as q,y as V,z}from"./focused-chunks/chunk-KHM2CS2C.js";import{a as A,b as T,c as M,d as B,u as X}from"./focused-chunks/chunk-JAFRIWVF.js";import"./focused-chunks/chunk-QVZVY53N.js";import"./focused-chunks/chunk-RWPAWUOT.js";import"./focused-chunks/chunk-EJGXRA6B.js";import{Va as W,Xa as G,Ya as Y,b as y,c as v,f as m,g,k as E,l as k,m as C,n as b,qa as F,ra as R}from"./focused-chunks/chunk-NBLUKITQ.js";import{b as ke,c as Ce,d as be}from"./focused-chunks/chunk-ISKOBJCM.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]="142a413a-35a6-5861-9063-0c196a176eaa")}catch{}})();function Le(e){return e}function $e(e){return e}function J(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:n,...s}=t;e.registerRenderer(r,n,s)}for(let[r,t]of Object.entries(o.services??{}))e.registerService(r,t)}function Q(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 n=o.relationshipKinds??[];n.length>0&&e.registerRelationshipKinds(n);for(let s of o.migrations??[])e.registerMigration(s);for(let s of o.profiles??[])e.registerProfile(s)}function Z(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.importers??[])e.registerImporter(r.name,r.importer,r.options);for(let r of o.exporters??[])e.registerExporter(r.name,r.exporter,r.options)}function ee(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 re(e){let r={activate:async t=>{J(t,e),Q(t,e),Z(t,e),ee(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 p(e){let o=Object.assign({},...e.map(r=>r??{}));return Object.keys(o).length>0?o:void 0}function oe(e){let o={};for(let r of e)for(let[t,n]of Object.entries(r??{}))o[t]=[...o[t]??[],...n];return Object.keys(o).length>0?o:void 0}var te=["beforeCommand","beforeMutation","afterCommand","onWrite","onRead","onIndex"];function ne(e,o,r){let t=o.map(s=>s?.[r]),n=f(t);if(n!==void 0){let s=e;s[r]=n}}function ie(e){let o={};for(let r of te)ne(o,e,r);return Object.keys(o).length>0?o:void 0}function je(...e){let o={},r=(i,c)=>{c!==void 0&&(o[i]=c)};r("commands",f(e.map(i=>i.commands))),r("commandOverrides",p(e.map(i=>i.commandOverrides))),r("flags",oe(e.map(i=>i.flags))),r("parsers",p(e.map(i=>i.parsers))),r("renderers",p(e.map(i=>i.renderers))),r("services",p(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("importers",f(e.map(i=>i.importers))),r("exporters",f(e.map(i=>i.exporters))),r("hooks",ie(e.map(i=>i.hooks)));let t;for(let i of e)i.manifest&&(t=i.manifest);r("manifest",t);let n=e.some(i=>i.activate);r("activate",n?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(d){i.push(d)}if(i.length>0)throw i.length>1?new AggregateError(i,"Multiple extension blueprint deactivate hooks failed."):i[0]}:void 0),o}var se=[["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"],["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[n,s]of se)u(e[n])&&o.add(s);(e.commands??[]).filter(l).some(n=>n.flags!==void 0)&&o.add("schema");let r=[...e.importers??[],...e.exporters??[]].filter(l);r.some(n=>n?.options?.flags!==void 0)&&o.add("schema"),r.some(n=>typeof n=="object")&&o.add("commands");let t=e.hooks??{};return[t.beforeCommand,t.beforeMutation,t.afterCommand,t.onWrite,t.onRead,t.onIndex].some(u)&&o.add("hooks"),[...o].sort((n,s)=>n.localeCompare(s))}var ae=[["beforeCommand","before_command"],["beforeMutation","before_mutation"],["afterCommand","after_command"],["onWrite","on_write"],["onRead","on_read"],["onIndex","on_index"]];function a(e){return[...new Set(e)].sort((o,r)=>o.localeCompare(r))}function l(e){return e!=null}function _(e){return m(`${e.name} import`)}function x(e){return m(`${e.name} export`)}function ce(e,o,r){return[...e.map(t=>m(t.name)),...o.filter(t=>t.options!==void 0).map(_),...r.filter(t=>t.options!==void 0).map(x)]}function de(e,o,r,t){return[...Object.keys(e.flags??{}).map(n=>m(n)),...o.filter(n=>n.flags!==void 0).map(n=>m(n.name)),...r.filter(n=>n.options?.flags!==void 0).map(_),...t.filter(n=>n.options?.flags!==void 0).map(x)]}function me(e){return ae.filter(([o])=>(e[o]?.length??0)>0).map(([,o])=>o)}function fe(e){let o=Object.entries(e??{}).filter(([,r])=>typeof r!="function"&&((r.commands?.length??0)>0||r.resultDiscriminator!==void 0)).map(([r,t])=>{let n=t;return{format:r,commands:a((n.commands??[]).map(s=>m(s))),result_discriminator:n.resultDiscriminator!==void 0}}).sort((r,t)=>r.format.localeCompare(t.format));return o.length>0?{renderer_ownership:o}:{}}function le(e,o,r){return{item_types:a((e.itemTypes??[]).map(t=>t.name)),item_fields:a((e.itemFields??[]).map(t=>t.name)),...(e.relationshipKinds?.length??0)>0?{relationship_kinds:a(e.relationshipKinds.map(t=>t.kind))}:{},migrations:a((e.migrations??[]).flatMap(t=>typeof t.id=="string"?[t.id]:[])),profiles:a((e.profiles??[]).map(t=>t.name)),importers:a(o.map(t=>m(t.name))),exporters:a(r.map(t=>m(t.name))),search_providers:a((e.searchProviders??[]).map(t=>t.name)),vector_store_adapters:a((e.vectorStoreAdapters??[]).map(t=>t.name)),parser_overrides:a(Object.keys(e.parsers??{}).map(t=>m(t))),service_overrides:a(Object.keys(e.services??{}).map(t=>String(t).trim().toLowerCase())),renderer_overrides:a(Object.keys(e.renderers??{}).map(t=>String(t).trim().toLowerCase())),...fe(e.renderers),preflight_overrides:(e.preflights??[]).length,preflight_ownership:(e.preflights??[]).map(t=>({commands:[...t.commands??[]]}))}}function Ke(e){let o=(e.commands??[]).filter(l),r=(e.importers??[]).filter(l),t=(e.exporters??[]).filter(l),n=r.map(_),s=t.map(x),i=ce(o,r,t),c=de(e,o,r,t),d=e.hooks??{},S=le(e,r,t);return{capabilities:h(e),commands:a(i),command_overrides:a(Object.keys(e.commandOverrides??{}).map(P=>m(P))),command_handlers:a([...i,...n,...s]),hooks:me(d),flag_commands:a(c),...S}}var pe=["commands","commandOverrides","flags","parsers","renderers","services","preflights","itemTypes","itemFields","relationshipKinds","migrations","profiles","searchProviders","vectorStoreAdapters","importers","exporters"];function ue(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 ge(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=E(r.long,r.short);if(t===null)return[];let{token:n,failure:s}=t;return[{code:s,severity:"error",message:`Flag "${n}" ${k(n,s)}.`,field:n}]})}function w(e){let o=new Set;for(let r of e){let t=v(r)??y(r);t!==null&&o.add(t)}return[...o].sort((r,t)=>r.localeCompare(t))}function he(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),n=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)n.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 _e(e){let o=[],r=new Map;for(let n of e.commands??[]){let s=m(n.name);r.set(s,(r.get(s)??0)+1)}for(let[n,s]of r)s>1&&o.push({code:"duplicate_command",severity:"warning",message:`Command "${n}" is declared ${s} times in commands; the later registration shadows the earlier one at dispatch.`,command:n});let t=new Set(Object.keys(e.commandOverrides??{}).map(n=>m(n)));for(let n of r.keys())t.has(n)&&o.push({code:"command_override_conflict",severity:"warning",message:`Command "${n}" is declared both as a new command definition and as a command override; register one or the other.`,command:n});return o}function xe(e){let o=[];for(let r of pe)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 ye(e,o={}){let r=h(e),t=o.declaredCapabilities??e.manifest?.capabilities,n=Array.isArray(t)?w(t):null,s=[...he(r,n),..._e(e),...ge(e),...ue(e),...xe(e)];return{ok:s.every(i=>i.severity!=="error"),findings:s,used:r,declared:n}}function O(e,o){let{additionalCapabilities:r,...t}=o,n=Array.isArray(r)?w(r):[],s=[...new Set([...h(e),...n])].sort((i,c)=>i.localeCompare(c));return{...t,capabilities:s}}function He(e,o){let r=O(e,o);return{module:re({...e,manifest:r}),manifest:r}}function I(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 ve(e,o){let r=C(e.pm_min_version,o.pmVersion),t=b(e.pm_max_version,o.pmVersion,o.pmMaxVersionExceededMode??"block"),n=[],s=I(r,o.pmVersion);s!==null&&n.push(s);let i=I(t,o.pmVersion);return i!==null&&n.push(i),{compatible:r.allowed&&t.allowed,findings:n,pmVersion:o.pmVersion}}var Ee=new Set(["capability_undeclared","capability_unused","manifest_capabilities_absent"]);function Ue(e,o={}){let r=ye(e,{declaredCapabilities:o.declaredCapabilities}),t=o.identity?O(e,o.identity):null,n=o.target?ve(t??e.manifest??{},o.target):null,c=[...(t!==null&&o.declaredCapabilities===void 0?r.findings.filter(d=>!Ee.has(d.code)):r.findings).map(d=>({source:"blueprint",severity:d.severity,code:d.code,message:d.message})),...(n?.findings??[]).map(d=>({source:"compatibility",severity:d.severity,code:d.code,message:d.message}))];return{ok:c.every(d=>d.severity!=="error"),capabilities:r.used,blueprint:r,manifest:t,compatibility:n,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 Ve(e){return e}function ze(e){return e}function We(e){return e}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 tr(e){return e}function nr(e){return{handled:!0,result:e}}function ir(){return{handled:!1}}function sr(e){return e}function ar(e){return e}function cr(e){return e}function dr(e){return e}function mr(e){return e}function fr(e){return e}function lr(e){return e}function pr(e){return e}function ur(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]="99a9b24a-4bc7-50da-8333-e76086f0e303")}catch{}})();export{N as BUILTIN_PROFILES,Ie as EXTENSION_CAPABILITIES,be as EXTENSION_CAPABILITY_CONTRACT,ke as EXTENSION_CAPABILITY_CONTRACT_VERSION,Ce as EXTENSION_CAPABILITY_LEGACY_ALIASES,W as EXTENSION_CAPABILITY_REGISTRATION_SURFACES,we as EXTENSION_POLICY_MODES,Oe as EXTENSION_POLICY_SURFACES,Pe as EXTENSION_SANDBOX_PROFILES,Se as EXTENSION_TRUST_MODES,Re as LIST_FILTER_EXTENSION_FLAG_DEFINITIONS,T as PM_PACKAGE_CONVENTIONAL_RESOURCE_ROOTS,A as PM_PACKAGE_RESOURCE_KINDS,q as PROFILE_LINT_CODES,U as PROFILE_LINT_DIMENSIONS,D as PROFILE_NAMES,g as RESERVED_ITEM_FIELD_NAMES,Ae as SEARCH_EXTENSION_FLAG_DEFINITIONS,ve as checkExtensionManifestCompatibility,B as collectPackageExtensionDirectories,G as collectUsedExtensionCapabilities,re as composeExtension,He as composeExtensionPackage,R as createExtensionContributionInventory,ir as declineServiceOverride,fr as defineAfterCommandHook,dr as defineBeforeCommandHook,mr as defineBeforeMutationHook,We as defineCommand,er as defineCommandOverride,cr as defineExporter,Le as defineExtension,$e as defineExtensionBlueprint,Ve as defineExtensionManifest,Ge as defineFlag,ar as defineImporter,Xe as defineItemField,Ye as defineItemType,Je as defineMigration,ur as defineOnIndexHook,pr as defineOnReadHook,lr as defineOnWriteHook,rr as defineParserOverride,or as definePreflightOverride,ze as defineProjectProfile,sr as defineRendererOverride,Qe as defineSearchProvider,tr as defineServiceOverride,Ze as defineVectorStoreAdapter,h as deriveExtensionCapabilities,Ke as describeExtensionBlueprint,K as describeProfileComposition,H as describeProjectProfile,nr as handleServiceOverride,ye as lintExtensionBlueprint,V as lintProjectProfile,j as listProfiles,je as mergeExtensionBlueprints,F as normalizeExtensionContributionInventory,L as normalizeProfileName,z as planProfileApplication,Ue as preflightExtension,M as readPmPackageManifest,Y as reconcileExtensionCapabilityUsage,X as renderExtensionSurfaceMarkdown,$ as resolveProfile,O as synthesizeExtensionManifest,Fe as toExtensionFlagDefinitions};
1
+ import{a as we,b as Pe,c as Oe,d as Se,e as Ae,f as Fe,g as Re,h as Te,i as D,j as N,k as L,l as $,m as j,p as K,q as H,w as U,x as q,y as V,z}from"./focused-chunks/chunk-3DJSGWVB.js";import{a as R,b as T,c as M,d as B,u as X}from"./focused-chunks/chunk-OOYYKQWX.js";import"./focused-chunks/chunk-NFHFZH2Z.js";import"./focused-chunks/chunk-E3AVJ655.js";import"./focused-chunks/chunk-QDZUABWL.js";import{Wa as W,Ya as G,Za as Y,b as x,c as y,f as m,g,k as E,l as k,m as C,n as I,ra as A,sa as F}from"./focused-chunks/chunk-2RI2FESN.js";import{b as Ce,c as Ie,d as be}from"./focused-chunks/chunk-CP4K4WFS.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]="fb438c6a-1927-54c3-98dd-dd7423df6722")}catch{}})();function $e(e){return e}function je(e){return e}function J(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:n,...s}=t;e.registerRenderer(r,n,s)}for(let[r,t]of Object.entries(o.services??{}))e.registerService(r,t)}function Q(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 n=o.relationshipKinds??[];n.length>0&&e.registerRelationshipKinds(n);for(let s of o.migrations??[])e.registerMigration(s);for(let s of o.profiles??[])e.registerProfile(s)}function Z(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 ee(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 re(e){let r={activate:async t=>{J(t,e),Q(t,e),Z(t,e),ee(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 p(e){let o=Object.assign({},...e.map(r=>r??{}));return Object.keys(o).length>0?o:void 0}function oe(e){let o={};for(let r of e)for(let[t,n]of Object.entries(r??{}))o[t]=[...o[t]??[],...n];return Object.keys(o).length>0?o:void 0}var te=["beforeCommand","beforeMutation","afterCommand","onWrite","onRead","onIndex"];function ne(e,o,r){let t=o.map(s=>s?.[r]),n=f(t);if(n!==void 0){let s=e;s[r]=n}}function ie(e){let o={};for(let r of te)ne(o,e,r);return Object.keys(o).length>0?o:void 0}function Ke(...e){let o={},r=(i,c)=>{c!==void 0&&(o[i]=c)};r("commands",f(e.map(i=>i.commands))),r("commandOverrides",p(e.map(i=>i.commandOverrides))),r("flags",oe(e.map(i=>i.flags))),r("parsers",p(e.map(i=>i.parsers))),r("renderers",p(e.map(i=>i.renderers))),r("services",p(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",ie(e.map(i=>i.hooks)));let t;for(let i of e)i.manifest&&(t=i.manifest);r("manifest",t);let n=e.some(i=>i.activate);r("activate",n?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(d){i.push(d)}if(i.length>0)throw i.length>1?new AggregateError(i,"Multiple extension blueprint deactivate hooks failed."):i[0]}:void 0),o}var se=[["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[n,s]of se)u(e[n])&&o.add(s);(e.commands??[]).filter(l).some(n=>n.flags!==void 0)&&o.add("schema");let r=[...e.importers??[],...e.exporters??[]].filter(l);r.some(n=>n?.options?.flags!==void 0)&&o.add("schema"),r.some(n=>typeof n=="object")&&o.add("commands");let t=e.hooks??{};return[t.beforeCommand,t.beforeMutation,t.afterCommand,t.onWrite,t.onRead,t.onIndex].some(u)&&o.add("hooks"),[...o].sort((n,s)=>n.localeCompare(s))}var ae=[["beforeCommand","before_command"],["beforeMutation","before_mutation"],["afterCommand","after_command"],["onWrite","on_write"],["onRead","on_read"],["onIndex","on_index"]];function a(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 _(e){return m(`${e.name} export`)}function ce(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(_)]}function de(e,o,r,t){return[...Object.keys(e.flags??{}).map(n=>m(n)),...o.filter(n=>n.flags!==void 0).map(n=>m(n.name)),...r.filter(n=>n.options?.flags!==void 0).map(v),...t.filter(n=>n.options?.flags!==void 0).map(_)]}function me(e){return ae.filter(([o])=>(e[o]?.length??0)>0).map(([,o])=>o)}function fe(e){let o=Object.entries(e??{}).filter(([,r])=>typeof r!="function"&&((r.commands?.length??0)>0||r.resultDiscriminator!==void 0)).map(([r,t])=>{let n=t;return{format:r,commands:a((n.commands??[]).map(s=>m(s))),result_discriminator:n.resultDiscriminator!==void 0}}).sort((r,t)=>r.format.localeCompare(t.format));return o.length>0?{renderer_ownership:o}:{}}function le(e){return!e||e.length===0?{}:{assurance_providers:a(e.map(o=>o.id))}}function pe(e,o,r){return{item_types:a((e.itemTypes??[]).map(t=>t.name)),item_fields:a((e.itemFields??[]).map(t=>t.name)),...(e.relationshipKinds?.length??0)>0?{relationship_kinds:a(e.relationshipKinds.map(t=>t.kind))}:{},migrations:a((e.migrations??[]).flatMap(t=>typeof t.id=="string"?[t.id]:[])),profiles:a((e.profiles??[]).map(t=>t.name)),importers:a(o.map(t=>m(t.name))),exporters:a(r.map(t=>m(t.name))),search_providers:a((e.searchProviders??[]).map(t=>t.name)),vector_store_adapters:a((e.vectorStoreAdapters??[]).map(t=>t.name)),...le(e.assuranceProviders),parser_overrides:a(Object.keys(e.parsers??{}).map(t=>m(t))),service_overrides:a(Object.keys(e.services??{}).map(t=>String(t).trim().toLowerCase())),renderer_overrides:a(Object.keys(e.renderers??{}).map(t=>String(t).trim().toLowerCase())),...fe(e.renderers),preflight_overrides:(e.preflights??[]).length,preflight_ownership:(e.preflights??[]).map(t=>({commands:[...t.commands??[]]}))}}function He(e){let o=(e.commands??[]).filter(l),r=(e.importers??[]).filter(l),t=(e.exporters??[]).filter(l),n=r.map(v),s=t.map(_),i=ce(o,r,t),c=de(e,o,r,t),d=e.hooks??{},O=pe(e,r,t);return{capabilities:h(e),commands:a(i),command_overrides:a(Object.keys(e.commandOverrides??{}).map(S=>m(S))),command_handlers:a([...i,...n,...s]),hooks:me(d),flag_commands:a(c),...O}}var ue=["commands","commandOverrides","flags","parsers","renderers","services","preflights","itemTypes","itemFields","relationshipKinds","migrations","profiles","searchProviders","vectorStoreAdapters","assuranceProviders","importers","exporters"];function ge(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 he(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=E(r.long,r.short);if(t===null)return[];let{token:n,failure:s}=t;return[{code:s,severity:"error",message:`Flag "${n}" ${k(n,s)}.`,field:n}]})}function w(e){let o=new Set;for(let r of e){let t=y(r)??x(r);t!==null&&o.add(t)}return[...o].sort((r,t)=>r.localeCompare(t))}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 t=new Set(o),n=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)n.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 _e(e){let o=[],r=new Map;for(let n of e.commands??[]){let s=m(n.name);r.set(s,(r.get(s)??0)+1)}for(let[n,s]of r)s>1&&o.push({code:"duplicate_command",severity:"warning",message:`Command "${n}" is declared ${s} times in commands; the later registration shadows the earlier one at dispatch.`,command:n});let t=new Set(Object.keys(e.commandOverrides??{}).map(n=>m(n)));for(let n of r.keys())t.has(n)&&o.push({code:"command_override_conflict",severity:"warning",message:`Command "${n}" is declared both as a new command definition and as a command override; register one or the other.`,command:n});return o}function xe(e){let o=[];for(let r of ue)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 ye(e,o={}){let r=h(e),t=o.declaredCapabilities??e.manifest?.capabilities,n=Array.isArray(t)?w(t):null,s=[...ve(r,n),..._e(e),...he(e),...ge(e),...xe(e)];return{ok:s.every(i=>i.severity!=="error"),findings:s,used:r,declared:n}}function P(e,o){let{additionalCapabilities:r,...t}=o,n=Array.isArray(r)?w(r):[],s=[...new Set([...h(e),...n])].sort((i,c)=>i.localeCompare(c));return{...t,capabilities:s}}function Ue(e,o){let r=P(e,o);return{module:re({...e,manifest:r}),manifest:r}}function b(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 Ee(e,o){let r=C(e.pm_min_version,o.pmVersion),t=I(e.pm_max_version,o.pmVersion,o.pmMaxVersionExceededMode??"block"),n=[],s=b(r,o.pmVersion);s!==null&&n.push(s);let i=b(t,o.pmVersion);return i!==null&&n.push(i),{compatible:r.allowed&&t.allowed,findings:n,pmVersion:o.pmVersion}}var ke=new Set(["capability_undeclared","capability_unused","manifest_capabilities_absent"]);function qe(e,o={}){let r=ye(e,{declaredCapabilities:o.declaredCapabilities}),t=o.identity?P(e,o.identity):null,n=o.target?Ee(t??e.manifest??{},o.target):null,c=[...(t!==null&&o.declaredCapabilities===void 0?r.findings.filter(d=>!ke.has(d.code)):r.findings).map(d=>({source:"blueprint",severity:d.severity,code:d.code,message:d.message})),...(n?.findings??[]).map(d=>({source:"compatibility",severity:d.severity,code:d.code,message:d.message}))];return{ok:c.every(d=>d.severity!=="error"),capabilities:r.used,blueprint:r,manifest:t,compatibility:n,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 ze(e){return e}function We(e){return e}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 tr(e){return e}function nr(e){return e}function ir(e){return{handled:!0,result:e}}function sr(){return{handled:!1}}function ar(e){return e}function cr(e){return e}function dr(e){return e}function mr(e){return e}function fr(e){return e}function lr(e){return e}function pr(e){return e}function ur(e){return e}function gr(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]="99a9b24a-4bc7-50da-8333-e76086f0e303")}catch{}})();export{N as BUILTIN_PROFILES,we as EXTENSION_CAPABILITIES,be as EXTENSION_CAPABILITY_CONTRACT,Ce as EXTENSION_CAPABILITY_CONTRACT_VERSION,Ie as EXTENSION_CAPABILITY_LEGACY_ALIASES,W as EXTENSION_CAPABILITY_REGISTRATION_SURFACES,Pe as EXTENSION_POLICY_MODES,Oe as EXTENSION_POLICY_SURFACES,Ae as EXTENSION_SANDBOX_PROFILES,Se as EXTENSION_TRUST_MODES,Re as LIST_FILTER_EXTENSION_FLAG_DEFINITIONS,T as PM_PACKAGE_CONVENTIONAL_RESOURCE_ROOTS,R as PM_PACKAGE_RESOURCE_KINDS,q as PROFILE_LINT_CODES,U as PROFILE_LINT_DIMENSIONS,D as PROFILE_NAMES,g as RESERVED_ITEM_FIELD_NAMES,Te as SEARCH_EXTENSION_FLAG_DEFINITIONS,Ee as checkExtensionManifestCompatibility,B as collectPackageExtensionDirectories,G as collectUsedExtensionCapabilities,re as composeExtension,Ue as composeExtensionPackage,F as createExtensionContributionInventory,sr as declineServiceOverride,lr as defineAfterCommandHook,mr as defineBeforeCommandHook,fr as defineBeforeMutationHook,Ge as defineCommand,rr as defineCommandOverride,dr as defineExporter,$e as defineExtension,je as defineExtensionBlueprint,ze as defineExtensionManifest,Ye as defineFlag,cr as defineImporter,Je as defineItemField,Xe as defineItemType,Qe as defineMigration,gr as defineOnIndexHook,ur as defineOnReadHook,pr as defineOnWriteHook,or as defineParserOverride,tr as definePreflightOverride,We as defineProjectProfile,ar as defineRendererOverride,Ze as defineSearchProvider,nr as defineServiceOverride,er as defineVectorStoreAdapter,h as deriveExtensionCapabilities,He as describeExtensionBlueprint,K as describeProfileComposition,H as describeProjectProfile,ir as handleServiceOverride,ye as lintExtensionBlueprint,V as lintProjectProfile,j as listProfiles,Ke as mergeExtensionBlueprints,A as normalizeExtensionContributionInventory,L as normalizeProfileName,z as planProfileApplication,qe as preflightExtension,M as readPmPackageManifest,Y as reconcileExtensionCapabilityUsage,X as renderExtensionSurfaceMarkdown,$ as resolveProfile,P as synthesizeExtensionManifest,Fe as toExtensionFlagDefinitions};
2
2
  //# sourceMappingURL=sdk-authoring.js.map
@@ -1,2 +1,2 @@
1
- import{a as ar,b as ur,c as yr,d as gr,e as cr,f as wr,g as hr,h as Dr,i as Br,j as Cr,k as Fr,l as Gr,m as Hr,n as Jr,o as Kr,p as Mr,q as Nr,r as Or,s as Pr,t as Qr,u as Rr}from"./focused-chunks/chunk-ZMGWAYH7.js";import{a as Ze,b as $e,c as or,d as er,e as rr,f as fr,g as tr,h as dr}from"./focused-chunks/chunk-GQW4BPUT.js";import{A as Me,B as Ne,C as Oe,D as Pe,E as Qe,G as Re,H as Se,I as Ue,J as Ve,K as We,L as Xe,M as Ye,a as f,b as t,c as d,d as n,e as p,f as s,g as l,h as b,i,j as ie,k as me,l as xe,m as ae,n as ue,o as ye,p as ge,q as ce,r as we,s as he,t as De,u as Ie,v as _e,w as Te,x as ke,y as ve,z as Ee}from"./focused-chunks/chunk-QVZVY53N.js";import{$ as io,A as J,Aa as Ko,B as K,Ba as Lo,C as L,Ca as Mo,D as M,Da as No,E as N,Ea as Oo,F as O,Fa as Po,G as P,Ga as Qo,H as Q,Ha as Ro,I as R,J as S,Ja as So,K as U,Ka as Uo,L as V,La as Vo,M as W,N as X,O as Y,P as Z,Q as $,R as oo,S as eo,T as ro,U as fo,V as to,W as no,X as po,Y as so,Z as lo,_ as bo,aa as mo,b as m,ba as xo,c as x,ca as ao,d as a,da as uo,e as u,ea as yo,f as y,fa as go,g,ga as co,h as c,ha as wo,i as w,ia as ho,j as h,ja as Do,k as D,ka as Io,l as I,la as _o,m as _,ma as To,n as T,na as ko,o as k,oa as vo,p as v,pa as Eo,q as E,qa as jo,r as j,ra as qo,s as q,sa as zo,t as z,ta as Ao,u as A,ua as Bo,v as B,va as Co,w as C,wa as Fo,x as F,xa as Go,y as G,ya as Ho,z as H,za as Jo}from"./focused-chunks/chunk-EJGXRA6B.js";import{A as jr,B as qr,C as zr,D as Ar,E as Lr,a as nr,b as pr,c as sr,d as lr,e as br,f as ir,g as mr,h as xr,u as Ir,v as _r,w as Tr,x as kr,y as vr,z as Er}from"./focused-chunks/chunk-5TAGTDRE.js";import{Aa as je,Ba as qe,Ca as ze,Da as Ae,Ea as Be,Fa as Ce,Ga as Fe,Ha as Ge,Ia as He,Ja as Je,Ka as Ke,La as Le,ea as Wo,fa as Xo,ga as Yo,ha as Zo,ia as $o,ja as oe,ka as ee,ma as re,na as fe,oa as te,pa as de,qa as ne,ra as pe,sa as se,ta as le,ua as be}from"./focused-chunks/chunk-ISKOBJCM.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new o.Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="65e53d90-6fff-59df-bdfc-0d2387b5a28d")}catch{}})();export{s as ACTIVITY_COMMANDER_STRING_OPTION_CONTRACTS,Co as ACTIVITY_FLAG_CONTRACTS,g as AGGREGATE_FLAG_CONTRACTS,fo as APPEND_FLAG_CONTRACTS,To as ASSURANCE_FLAG_CONTRACTS,d as CALENDAR_COMMANDER_STRING_OPTION_CONTRACTS,Bo as CALENDAR_FLAG_CONTRACTS,to as CLAIM_FLAG_CONTRACTS,Pe as CLOSE_ACTION_OPTION_KEYS,eo as CLOSE_FLAG_CONTRACTS,ro as CLOSE_MANY_FLAG_CONTRACTS,io as CLOSE_TASK_FLAG_CONTRACTS,c as COMMENTS_FLAG_CONTRACTS,Ro as COMPLETION_FLAG_CONTRACTS,C as CONFIG_FLAG_CONTRACTS,n as CONTEXT_COMMANDER_STRING_OPTION_CONTRACTS,Go as CONTEXT_FLAG_CONTRACTS,Qo as CONTRACTS_FLAG_CONTRACTS,jo as COPY_FLAG_CONTRACTS,$e as CREATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,er as CREATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,or as CREATE_COMMANDER_STRING_OPTION_CONTRACTS,ko as CREATE_FLAG_CONTRACTS,po as DELETE_FLAG_CONTRACTS,Ko as DEPS_FLAG_CONTRACTS,I as DOCS_FLAG_CONTRACTS,Do as DUPLICATES_FLAG_CONTRACTS,Mo as EVAL_FLAG_CONTRACTS,Fo as EVENTS_FLAG_CONTRACTS,xo as EVENT_FLAG_CONTRACTS,Ze 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,qo as FOCUS_FLAG_CONTRACTS,wo as GC_FLAG_CONTRACTS,Ho as GET_FLAG_CONTRACTS,u as GLOBAL_FLAG_CONTRACTS,Lo as GRAPH_FLAG_CONTRACTS,Jo as GUIDE_FLAG_CONTRACTS,Io 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,Eo as ITEM_COMPLETE_FLAG_CONTRACTS,vo as ITEM_MUTATE_FLAG_CONTRACTS,h as LEARNINGS_FLAG_CONTRACTS,f as LIST_COMMANDER_STRING_OPTION_CONTRACTS,y as LIST_FILTER_FLAG_CONTRACTS,mo as MEET_FLAG_CONTRACTS,T as MERGE_FLAG_CONTRACTS,p as NEXT_COMMANDER_STRING_OPTION_CONTRACTS,Oo as NEXT_FLAG_CONTRACTS,w as NOTES_FLAG_CONTRACTS,J as PACKAGE_FLAG_CONTRACTS,K as PACKAGE_INIT_FLAG_CONTRACTS,bo as PAUSE_TASK_FLAG_CONTRACTS,Oe as PLAN_CREATE_METADATA_PARAMETER_KEYS,A as PLAN_FLAG_CONTRACTS,fe as PM_CLI_ONLY_TOOL_ACTION_WAIVERS,ur as PM_COMMAND_EXIT_CONTRACTS,ar as PM_COMMAND_EXIT_OUTCOME_CONTRACTS,ir as PM_COMMAND_OUTPUT_BUDGET_CONTRACTS,Or as PM_COMMAND_OUTPUT_ENVELOPE_CONTRACTS,Ir as PM_CONTEXT_INTENT_CONTRACTS,ee as PM_CORE_COMMAND_NAMES,Hr as PM_ERROR_CODE_CATALOG,Br as PM_ERROR_CODE_EXIT_CLASS_CONTRACTS,Wo as PM_EXTENSION_CAPABILITY_CONTRACTS,re as PM_EXTENSION_PACKAGE_ACTION_SUBCOMMANDS,Yo as PM_EXTENSION_POLICY_MODE_CONTRACTS,oe as PM_EXTENSION_POLICY_SURFACE_CONTRACTS,$o as PM_EXTENSION_SANDBOX_PROFILE_CONTRACTS,Xo as PM_EXTENSION_SERVICE_NAME_CONTRACTS,Zo as PM_EXTENSION_TRUST_MODE_CONTRACTS,pr as PM_OUTPUT_BUDGET_CLASSES,nr as PM_OUTPUT_DEGRADATION_STEPS,Mr as PM_OUTPUT_ENVELOPE_KINDS,Xe as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA,Ve as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA_VERSION,Ae as PM_READ_OUTPUT_COMPOSITION_OPTION_FLAGS,je as PM_READ_OUTPUT_DIMENSIONS,ze as PM_READ_OUTPUT_OPTION_FLAGS,qe as PM_READ_OUTPUT_SURFACES,Be as PM_READ_OUTPUT_SURFACE_CONTRACTS,yr as PM_SUCCESS_EXIT_CODES,te as PM_TOOL_ACTIONS,Qe as PM_TOOL_ACTION_PARAMETER_CONTRACTS,We as PM_TOOL_PARAMETERS_SCHEMA,Ue as PM_TOOL_PARAMETERS_SCHEMA_MAJOR,Se as PM_TOOL_PARAMETERS_SCHEMA_VERSION,Me as PM_TOOL_RESERVED_CUSTOM_FIELD_PROPERTIES,z as PROFILE_FLAG_CONTRACTS,oo as REINDEX_FLAG_CONTRACTS,so as RELEASE_FLAG_CONTRACTS,ao as REMIND_FLAG_CONTRACTS,no as RESTORE_FLAG_CONTRACTS,q as SCHEMA_FLAG_CONTRACTS,t as SEARCH_COMMANDER_STRING_OPTION_CONTRACTS,Po as SEARCH_FLAG_CONTRACTS,lo as START_TASK_FLAG_CONTRACTS,ho as STATS_FLAG_CONTRACTS,a as SUBCOMMAND_GLOBAL_FLAG_CONTRACTS,go as TELEMETRY_FLAG_CONTRACTS,yo as TEST_ALL_FLAG_CONTRACTS,uo as TEST_FLAG_CONTRACTS,co as TEST_RUNS_FLAG_CONTRACTS,Te as TOOL_ACTIVITY_OPTION_CONTRACTS,me as TOOL_AGGREGATE_OPTION_CONTRACTS,he as TOOL_BULK_MUTATION_FILTER_OPTION_CONTRACT_SOURCE,_e as TOOL_CALENDAR_OPTION_CONTRACTS,Ie as TOOL_CLOSE_MANY_FILTER_OPTION_CONTRACTS,ke as TOOL_CONTEXT_OPTION_CONTRACTS,ge as TOOL_CREATE_OPTION_CONTRACTS,ye as TOOL_CREATE_OPTION_CONTRACT_SOURCE,ve as TOOL_DEPS_OPTION_CONTRACTS,Ee as TOOL_GRAPH_OPTION_CONTRACTS,ie as TOOL_LIST_FILTER_OPTION_CONTRACTS,xe as TOOL_SEARCH_FILTER_OPTION_CONTRACTS,ue as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACTS,ae as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACT_SOURCE,De as TOOL_UPDATE_MANY_FILTER_OPTION_CONTRACTS,we as TOOL_UPDATE_OPTION_CONTRACTS,ce as TOOL_UPDATE_OPTION_CONTRACT_SOURCE,rr as UPDATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,tr as UPDATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,fr as UPDATE_COMMANDER_STRING_OPTION_CONTRACTS,zo as UPDATE_FLAG_CONTRACTS,Ao as UPDATE_MANY_FLAG_CONTRACTS,$ as UPGRADE_FLAG_CONTRACTS,_o as VALIDATE_FLAG_CONTRACTS,No as WORKSPACE_FLAG_CONTRACTS,Ye as _testOnlyCliContracts,hr as analyzePmCommandExitConformance,de as analyzePmToolActionParity,dr as analyzeSdkCliParameterCompleteness,Er as applyContextIntentProjection,Je as applyReadOutputDimensions,zr as attachContextIntentReceipt,Lr as attachOutputTokenAccounting,Ar as attachReadOutputContracts,Re as buildPmActionToolInputSchema,x as compactFlagAliasContracts,kr as composeContextIntentContracts,qr as contextIntentRowId,lr as createPmCommandOutputBudget,jr as decodeContextIntentCursor,br as definePmCommandOutputBudget,Nr as definePmCommandOutputEnvelope,Cr as definePmErrorCodeCatalog,Dr as derivePmBulkMutationEffect,Jr as enrichCliFlagInvocationContract,Kr as enrichCliFlagInvocationContracts,xr as estimatePmOutputTokens,_r as getActiveContextIntentContracts,So as hasSubcommandFlagContractsForCommand,sr as inferPmOutputBudgetClass,pe as isPmExtensionCapabilityContract,le as isPmExtensionPolicyModeContract,be as isPmExtensionPolicySurfaceContract,se as isPmExtensionServiceNameContract,cr as isPmKnownExitCode,Qr as isPmMutationReceipt,gr as isPmSuccessfulExitCode,ne as isPmToolAction,Ke as isReadOutputBudgetExceeded,Rr as parseMutationReceipt,l as readFirstStringFromCommanderOptions,b as readFirstValueFromCommanderOptions,i as readStringArrayFromCommanderOptions,Fr as resolveCanonicalPmErrorCodeContract,vr as resolveContextIntentContract,wr as resolvePmCommandExitContract,mr as resolvePmCommandOutputBudget,Pr as resolvePmCommandOutputEnvelope,Gr as resolvePmErrorCodeContract,Ne as resolvePmToolCustomFieldCollision,Ge as resolveReadOutputDimensions,Le as resolveReadOutputEncoding,Ce as resolveReadOutputSurface,Uo as resolveSubcommandFlagContractsForCommand,Tr as runWithContextIntentContracts,He as stabilizeReadOutputReceiptEstimates,Vo as toCompletionFlagString,Fe as validateReadOutputOptions,m as withFlagAliasMetadata};
1
+ import{a as ar,b as ur,c as yr,d as gr,e as cr,f as wr,g as hr,h as Dr,i as Br,j as Cr,k as Fr,l as Gr,m as Hr,n as Jr,o as Kr,p as Mr,q as Nr,r as Or,s as Pr,t as Qr,u as Rr}from"./focused-chunks/chunk-IIS2FRKL.js";import{a as Ze,b as $e,c as or,d as er,e as rr,f as fr,g as tr,h as dr}from"./focused-chunks/chunk-I75MANL7.js";import{A as Me,B as Ne,C as Oe,D as Pe,E as Qe,G as Re,H as Se,I as Ue,J as Ve,K as We,L as Xe,M as Ye,a as f,b as t,c as d,d as n,e as p,f as s,g as l,h as b,i,j as ie,k as me,l as xe,m as ae,n as ue,o as ye,p as ge,q as ce,r as we,s as he,t as De,u as Ie,v as _e,w as Te,x as ke,y as ve,z as Ee}from"./focused-chunks/chunk-NFHFZH2Z.js";import{$ as io,A as J,Aa as Ko,B as K,Ba as Lo,C as L,Ca as Mo,D as M,Da as No,E as N,Ea as Oo,F as O,Fa as Po,G as P,Ga as Qo,H as Q,Ha as Ro,I as R,J as S,Ja as So,K as U,Ka as Uo,L as V,La as Vo,M as W,N as X,O as Y,P as Z,Q as $,R as oo,S as eo,T as ro,U as fo,V as to,W as no,X as po,Y as so,Z as lo,_ as bo,aa as mo,b as m,ba as xo,c as x,ca as ao,d as a,da as uo,e as u,ea as yo,f as y,fa as go,g,ga as co,h as c,ha as wo,i as w,ia as ho,j as h,ja as Do,k as D,ka as Io,l as I,la as _o,m as _,ma as To,n as T,na as ko,o as k,oa as vo,p as v,pa as Eo,q as E,qa as jo,r as j,ra as qo,s as q,sa as zo,t as z,ta as Ao,u as A,ua as Bo,v as B,va as Co,w as C,wa as Fo,x as F,xa as Go,y as G,ya as Ho,z as H,za as Jo}from"./focused-chunks/chunk-QDZUABWL.js";import{A as jr,B as qr,C as zr,D as Ar,E as Lr,a as nr,b as pr,c as sr,d as lr,e as br,f as ir,g as mr,h as xr,u as Ir,v as _r,w as Tr,x as kr,y as vr,z as Er}from"./focused-chunks/chunk-EBTNSFYE.js";import{Aa as je,Ba as qe,Ca as ze,Da as Ae,Ea as Be,Fa as Ce,Ga as Fe,Ha as Ge,Ia as He,Ja as Je,Ka as Ke,La as Le,ea as Wo,fa as Xo,ga as Yo,ha as Zo,ia as $o,ja as oe,ka as ee,ma as re,na as fe,oa as te,pa as de,qa as ne,ra as pe,sa as se,ta as le,ua as be}from"./focused-chunks/chunk-CP4K4WFS.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new o.Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="65e53d90-6fff-59df-bdfc-0d2387b5a28d")}catch{}})();export{s as ACTIVITY_COMMANDER_STRING_OPTION_CONTRACTS,Co as ACTIVITY_FLAG_CONTRACTS,g as AGGREGATE_FLAG_CONTRACTS,fo as APPEND_FLAG_CONTRACTS,To as ASSURANCE_FLAG_CONTRACTS,d as CALENDAR_COMMANDER_STRING_OPTION_CONTRACTS,Bo as CALENDAR_FLAG_CONTRACTS,to as CLAIM_FLAG_CONTRACTS,Pe as CLOSE_ACTION_OPTION_KEYS,eo as CLOSE_FLAG_CONTRACTS,ro as CLOSE_MANY_FLAG_CONTRACTS,io as CLOSE_TASK_FLAG_CONTRACTS,c as COMMENTS_FLAG_CONTRACTS,Ro as COMPLETION_FLAG_CONTRACTS,C as CONFIG_FLAG_CONTRACTS,n as CONTEXT_COMMANDER_STRING_OPTION_CONTRACTS,Go as CONTEXT_FLAG_CONTRACTS,Qo as CONTRACTS_FLAG_CONTRACTS,jo as COPY_FLAG_CONTRACTS,$e as CREATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,er as CREATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,or as CREATE_COMMANDER_STRING_OPTION_CONTRACTS,ko as CREATE_FLAG_CONTRACTS,po as DELETE_FLAG_CONTRACTS,Ko as DEPS_FLAG_CONTRACTS,I as DOCS_FLAG_CONTRACTS,Do as DUPLICATES_FLAG_CONTRACTS,Mo as EVAL_FLAG_CONTRACTS,Fo as EVENTS_FLAG_CONTRACTS,xo as EVENT_FLAG_CONTRACTS,Ze 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,qo as FOCUS_FLAG_CONTRACTS,wo as GC_FLAG_CONTRACTS,Ho as GET_FLAG_CONTRACTS,u as GLOBAL_FLAG_CONTRACTS,Lo as GRAPH_FLAG_CONTRACTS,Jo as GUIDE_FLAG_CONTRACTS,Io 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,Eo as ITEM_COMPLETE_FLAG_CONTRACTS,vo as ITEM_MUTATE_FLAG_CONTRACTS,h as LEARNINGS_FLAG_CONTRACTS,f as LIST_COMMANDER_STRING_OPTION_CONTRACTS,y as LIST_FILTER_FLAG_CONTRACTS,mo as MEET_FLAG_CONTRACTS,T as MERGE_FLAG_CONTRACTS,p as NEXT_COMMANDER_STRING_OPTION_CONTRACTS,Oo as NEXT_FLAG_CONTRACTS,w as NOTES_FLAG_CONTRACTS,J as PACKAGE_FLAG_CONTRACTS,K as PACKAGE_INIT_FLAG_CONTRACTS,bo as PAUSE_TASK_FLAG_CONTRACTS,Oe as PLAN_CREATE_METADATA_PARAMETER_KEYS,A as PLAN_FLAG_CONTRACTS,fe as PM_CLI_ONLY_TOOL_ACTION_WAIVERS,ur as PM_COMMAND_EXIT_CONTRACTS,ar as PM_COMMAND_EXIT_OUTCOME_CONTRACTS,ir as PM_COMMAND_OUTPUT_BUDGET_CONTRACTS,Or as PM_COMMAND_OUTPUT_ENVELOPE_CONTRACTS,Ir as PM_CONTEXT_INTENT_CONTRACTS,ee as PM_CORE_COMMAND_NAMES,Hr as PM_ERROR_CODE_CATALOG,Br as PM_ERROR_CODE_EXIT_CLASS_CONTRACTS,Wo as PM_EXTENSION_CAPABILITY_CONTRACTS,re as PM_EXTENSION_PACKAGE_ACTION_SUBCOMMANDS,Yo as PM_EXTENSION_POLICY_MODE_CONTRACTS,oe as PM_EXTENSION_POLICY_SURFACE_CONTRACTS,$o as PM_EXTENSION_SANDBOX_PROFILE_CONTRACTS,Xo as PM_EXTENSION_SERVICE_NAME_CONTRACTS,Zo as PM_EXTENSION_TRUST_MODE_CONTRACTS,pr as PM_OUTPUT_BUDGET_CLASSES,nr as PM_OUTPUT_DEGRADATION_STEPS,Mr as PM_OUTPUT_ENVELOPE_KINDS,Xe as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA,Ve as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA_VERSION,Ae as PM_READ_OUTPUT_COMPOSITION_OPTION_FLAGS,je as PM_READ_OUTPUT_DIMENSIONS,ze as PM_READ_OUTPUT_OPTION_FLAGS,qe as PM_READ_OUTPUT_SURFACES,Be as PM_READ_OUTPUT_SURFACE_CONTRACTS,yr as PM_SUCCESS_EXIT_CODES,te as PM_TOOL_ACTIONS,Qe as PM_TOOL_ACTION_PARAMETER_CONTRACTS,We as PM_TOOL_PARAMETERS_SCHEMA,Ue as PM_TOOL_PARAMETERS_SCHEMA_MAJOR,Se as PM_TOOL_PARAMETERS_SCHEMA_VERSION,Me as PM_TOOL_RESERVED_CUSTOM_FIELD_PROPERTIES,z as PROFILE_FLAG_CONTRACTS,oo as REINDEX_FLAG_CONTRACTS,so as RELEASE_FLAG_CONTRACTS,ao as REMIND_FLAG_CONTRACTS,no as RESTORE_FLAG_CONTRACTS,q as SCHEMA_FLAG_CONTRACTS,t as SEARCH_COMMANDER_STRING_OPTION_CONTRACTS,Po as SEARCH_FLAG_CONTRACTS,lo as START_TASK_FLAG_CONTRACTS,ho as STATS_FLAG_CONTRACTS,a as SUBCOMMAND_GLOBAL_FLAG_CONTRACTS,go as TELEMETRY_FLAG_CONTRACTS,yo as TEST_ALL_FLAG_CONTRACTS,uo as TEST_FLAG_CONTRACTS,co as TEST_RUNS_FLAG_CONTRACTS,Te as TOOL_ACTIVITY_OPTION_CONTRACTS,me as TOOL_AGGREGATE_OPTION_CONTRACTS,he as TOOL_BULK_MUTATION_FILTER_OPTION_CONTRACT_SOURCE,_e as TOOL_CALENDAR_OPTION_CONTRACTS,Ie as TOOL_CLOSE_MANY_FILTER_OPTION_CONTRACTS,ke as TOOL_CONTEXT_OPTION_CONTRACTS,ge as TOOL_CREATE_OPTION_CONTRACTS,ye as TOOL_CREATE_OPTION_CONTRACT_SOURCE,ve as TOOL_DEPS_OPTION_CONTRACTS,Ee as TOOL_GRAPH_OPTION_CONTRACTS,ie as TOOL_LIST_FILTER_OPTION_CONTRACTS,xe as TOOL_SEARCH_FILTER_OPTION_CONTRACTS,ue as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACTS,ae as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACT_SOURCE,De as TOOL_UPDATE_MANY_FILTER_OPTION_CONTRACTS,we as TOOL_UPDATE_OPTION_CONTRACTS,ce as TOOL_UPDATE_OPTION_CONTRACT_SOURCE,rr as UPDATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,tr as UPDATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,fr as UPDATE_COMMANDER_STRING_OPTION_CONTRACTS,zo as UPDATE_FLAG_CONTRACTS,Ao as UPDATE_MANY_FLAG_CONTRACTS,$ as UPGRADE_FLAG_CONTRACTS,_o as VALIDATE_FLAG_CONTRACTS,No as WORKSPACE_FLAG_CONTRACTS,Ye as _testOnlyCliContracts,hr as analyzePmCommandExitConformance,de as analyzePmToolActionParity,dr as analyzeSdkCliParameterCompleteness,Er as applyContextIntentProjection,Je as applyReadOutputDimensions,zr as attachContextIntentReceipt,Lr as attachOutputTokenAccounting,Ar as attachReadOutputContracts,Re as buildPmActionToolInputSchema,x as compactFlagAliasContracts,kr as composeContextIntentContracts,qr as contextIntentRowId,lr as createPmCommandOutputBudget,jr as decodeContextIntentCursor,br as definePmCommandOutputBudget,Nr as definePmCommandOutputEnvelope,Cr as definePmErrorCodeCatalog,Dr as derivePmBulkMutationEffect,Jr as enrichCliFlagInvocationContract,Kr as enrichCliFlagInvocationContracts,xr as estimatePmOutputTokens,_r as getActiveContextIntentContracts,So as hasSubcommandFlagContractsForCommand,sr as inferPmOutputBudgetClass,pe as isPmExtensionCapabilityContract,le as isPmExtensionPolicyModeContract,be as isPmExtensionPolicySurfaceContract,se as isPmExtensionServiceNameContract,cr as isPmKnownExitCode,Qr as isPmMutationReceipt,gr as isPmSuccessfulExitCode,ne as isPmToolAction,Ke as isReadOutputBudgetExceeded,Rr as parseMutationReceipt,l as readFirstStringFromCommanderOptions,b as readFirstValueFromCommanderOptions,i as readStringArrayFromCommanderOptions,Fr as resolveCanonicalPmErrorCodeContract,vr as resolveContextIntentContract,wr as resolvePmCommandExitContract,mr as resolvePmCommandOutputBudget,Pr as resolvePmCommandOutputEnvelope,Gr as resolvePmErrorCodeContract,Ne as resolvePmToolCustomFieldCollision,Ge as resolveReadOutputDimensions,Le as resolveReadOutputEncoding,Ce as resolveReadOutputSurface,Uo as resolveSubcommandFlagContractsForCommand,Tr as runWithContextIntentContracts,He as stabilizeReadOutputReceiptEstimates,Vo as toCompletionFlagString,Fe as validateReadOutputOptions,m as withFlagAliasMetadata};
2
2
  //# sourceMappingURL=sdk-contracts.js.map