@unbrained/pm-cli 2026.8.21 → 2026.8.23

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