@unbrained/pm-cli 2026.8.5 → 2026.8.7

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 (251) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/CHANGELOG.md +44 -0
  3. package/dist/cli/main.js +14 -37
  4. package/dist/cli/register-operations.js +11 -2
  5. package/dist/cli/register-setup.d.ts +1 -1
  6. package/dist/cli/register-setup.js +46 -20
  7. package/dist/cli/stats-analytics-json.d.ts +9 -0
  8. package/dist/cli/stats-analytics-json.js +69 -0
  9. package/dist/cli-bundle/bundle-manifest.json +403 -403
  10. package/dist/cli-bundle/chunks/append-7BXBFDGD.js +2 -0
  11. package/dist/cli-bundle/chunks/{chunk-PMXJEU3F.js → chunk-2AXF3VSK.js} +2 -2
  12. package/dist/cli-bundle/chunks/{chunk-MHK6LIWE.js → chunk-2XS43CCV.js} +2 -2
  13. package/dist/cli-bundle/chunks/chunk-3A6KWB72.js +8 -0
  14. package/dist/cli-bundle/chunks/chunk-3ISTDB42.js +8 -0
  15. package/dist/cli-bundle/chunks/{chunk-45G53IU4.js → chunk-4MTI7XOV.js} +2 -2
  16. package/dist/cli-bundle/chunks/{chunk-7C4PTJG6.js → chunk-6BX5UDCN.js} +2 -2
  17. package/dist/cli-bundle/chunks/{chunk-4YUBDMQM.js → chunk-6QPO7KLR.js} +2 -2
  18. package/dist/cli-bundle/chunks/{chunk-HWRRMBJO.js → chunk-7MXHZHSQ.js} +2 -2
  19. package/dist/cli-bundle/chunks/{chunk-3FTILRJ2.js → chunk-7ZPMJW4U.js} +2 -2
  20. package/dist/cli-bundle/chunks/{chunk-2WFXWAYX.js → chunk-AGYNSNCI.js} +2 -2
  21. package/dist/cli-bundle/chunks/chunk-B4H7FEFH.js +5 -0
  22. package/dist/cli-bundle/chunks/{chunk-43HQQI6S.js → chunk-B4KLBBMN.js} +2 -2
  23. package/dist/cli-bundle/chunks/{chunk-VCKLFEUN.js → chunk-CALJHNBL.js} +12 -12
  24. package/dist/cli-bundle/chunks/{chunk-CSI3WS5I.js → chunk-CFIGP5LY.js} +2 -2
  25. package/dist/cli-bundle/chunks/{chunk-V3EUXXOF.js → chunk-CS6MRHG7.js} +2 -2
  26. package/dist/cli-bundle/chunks/{chunk-YSO3YFZ4.js → chunk-CUGNQQKH.js} +2 -2
  27. package/dist/cli-bundle/chunks/chunk-D4FPS43D.js +164 -0
  28. package/dist/cli-bundle/chunks/{chunk-BXQLRKWF.js → chunk-H5Y5YE6A.js} +2 -2
  29. package/dist/cli-bundle/chunks/{chunk-54FNT7U2.js → chunk-H5Y6UV6E.js} +2 -2
  30. package/dist/cli-bundle/chunks/{chunk-UP7DTVMD.js → chunk-H7KGWPDF.js} +2 -2
  31. package/dist/cli-bundle/chunks/{chunk-E2RKBKWB.js → chunk-HFSD77TQ.js} +2 -2
  32. package/dist/cli-bundle/chunks/{chunk-V3774P7D.js → chunk-HX2GTA6L.js} +2 -2
  33. package/dist/cli-bundle/chunks/{chunk-UZBWIUYD.js → chunk-J2IEKAVR.js} +2 -2
  34. package/dist/cli-bundle/chunks/{chunk-HNFD72UK.js → chunk-K44PYFXH.js} +2 -2
  35. package/dist/cli-bundle/chunks/{chunk-5ZBOIPGP.js → chunk-K4KGEEBT.js} +2 -2
  36. package/dist/cli-bundle/chunks/chunk-KFLK5TRH.js +21 -0
  37. package/dist/cli-bundle/chunks/{chunk-OMXVBQ2N.js → chunk-KL6IEBV2.js} +2 -2
  38. package/dist/cli-bundle/chunks/{chunk-7A5OT5J2.js → chunk-KWQZDZSS.js} +2 -2
  39. package/dist/cli-bundle/chunks/{chunk-M72BKL5Q.js → chunk-KZ4X3DGU.js} +2 -2
  40. package/dist/cli-bundle/chunks/chunk-LD77HJMQ.js +13 -0
  41. package/dist/cli-bundle/chunks/{chunk-VN5VITU3.js → chunk-ME2JJ4LA.js} +2 -2
  42. package/dist/cli-bundle/chunks/chunk-NFLJ3FHD.js +2 -0
  43. package/dist/cli-bundle/chunks/{chunk-A62CYISG.js → chunk-NG6OXIBR.js} +8 -8
  44. package/dist/cli-bundle/chunks/{chunk-42E7YPLG.js → chunk-NYIGHWQY.js} +2 -2
  45. package/dist/cli-bundle/chunks/{chunk-RKAVWO3O.js → chunk-NZ75GNSA.js} +2 -2
  46. package/dist/cli-bundle/chunks/{chunk-DXDREUXT.js → chunk-PCJWJNC2.js} +2 -2
  47. package/dist/cli-bundle/chunks/{chunk-ZYHOB3SN.js → chunk-PD3225AM.js} +2 -2
  48. package/dist/cli-bundle/chunks/{chunk-OTHLDSFP.js → chunk-PDEGKG7P.js} +2 -2
  49. package/dist/cli-bundle/chunks/chunk-PIE5HBNA.js +2 -0
  50. package/dist/cli-bundle/chunks/chunk-PW2H7YJR.js +56 -0
  51. package/dist/cli-bundle/chunks/{chunk-L3AZOELJ.js → chunk-TPKN3S7S.js} +2 -2
  52. package/dist/cli-bundle/chunks/{chunk-LKDGK44W.js → chunk-TPXAXTCO.js} +2 -2
  53. package/dist/cli-bundle/chunks/chunk-UFWUJO4V.js +2 -0
  54. package/dist/cli-bundle/chunks/{chunk-R546TPDE.js → chunk-UQLZQVFW.js} +2 -2
  55. package/dist/cli-bundle/chunks/{chunk-BPELKUQD.js → chunk-VT3Z5G7D.js} +2 -2
  56. package/dist/cli-bundle/chunks/chunk-WOD3WWUN.js +2 -0
  57. package/dist/cli-bundle/chunks/{chunk-4VN6GS4U.js → chunk-WSJEIGJF.js} +2 -2
  58. package/dist/cli-bundle/chunks/{chunk-UN66FZRO.js → chunk-WYNUU7ZW.js} +49 -46
  59. package/dist/cli-bundle/chunks/{chunk-NY4T3JWN.js → chunk-YGPNCCXZ.js} +2 -2
  60. package/dist/cli-bundle/chunks/close-CMY3BAUG.js +2 -0
  61. package/dist/cli-bundle/chunks/close-many-SA4XZCTK.js +2 -0
  62. package/dist/cli-bundle/chunks/comments-EZ556ZD3.js +2 -0
  63. package/dist/cli-bundle/chunks/copy-ZSGPA52X.js +2 -0
  64. package/dist/cli-bundle/chunks/{create-XLKTXTUF.js → create-I5DVV4YG.js} +2 -2
  65. package/dist/cli-bundle/chunks/delete-RL3JACSW.js +2 -0
  66. package/dist/cli-bundle/chunks/{deps-ITTY3GIC.js → deps-S7UBCECS.js} +2 -2
  67. package/dist/cli-bundle/chunks/{docs-W4OSRTYR.js → docs-ZZNVBBYO.js} +2 -2
  68. package/dist/cli-bundle/chunks/{files-EOK4AZI4.js → files-27C337VT.js} +2 -2
  69. package/dist/cli-bundle/chunks/focus-5Z2SG7LU.js +2 -0
  70. package/dist/cli-bundle/chunks/{history-compact-7UGTMLL3.js → history-compact-HJQK67CZ.js} +2 -2
  71. package/dist/cli-bundle/chunks/{history-redact-4DZRMD6Z.js → history-redact-PWC6PDWA.js} +2 -2
  72. package/dist/cli-bundle/chunks/{history-repair-UPOSZW5R.js → history-repair-N3CY4WBF.js} +2 -2
  73. package/dist/cli-bundle/chunks/{learnings-GMRNCBS3.js → learnings-4FH23XDT.js} +2 -2
  74. package/dist/cli-bundle/chunks/{profile-2MUUMHRE.js → profile-5Y5XXH5N.js} +2 -2
  75. package/dist/cli-bundle/chunks/{register-list-query-LR3SQ5ZF.js → register-list-query-FJZCJ67O.js} +2 -2
  76. package/dist/cli-bundle/chunks/{register-mutation-SUOHFVWM.js → register-mutation-YGYPW3BL.js} +3 -3
  77. package/dist/cli-bundle/chunks/register-operations-WMDSUMQF.js +2 -0
  78. package/dist/cli-bundle/chunks/register-setup-DL7FFABC.js +2 -0
  79. package/dist/cli-bundle/chunks/restore-6KYBV5BY.js +2 -0
  80. package/dist/cli-bundle/chunks/{schema-FJ4EA3XF.js → schema-EQGKBYXJ.js} +2 -2
  81. package/dist/cli-bundle/chunks/update-QVTYOD6I.js +2 -0
  82. package/dist/cli-bundle/chunks/update-many-DJSBU525.js +2 -0
  83. package/dist/cli-bundle/focused-chunks/{chunk-MJ7HWSFK.js → chunk-2ECLECMK.js} +3 -3
  84. package/dist/cli-bundle/focused-chunks/{chunk-A7BJ5SS6.js → chunk-3K4XV2BF.js} +2 -2
  85. package/dist/cli-bundle/focused-chunks/{chunk-PIMMYG7Q.js → chunk-4EX25PXM.js} +2 -2
  86. package/dist/cli-bundle/focused-chunks/chunk-4VJQTS3P.js +2 -0
  87. package/dist/cli-bundle/focused-chunks/chunk-73JUDYXT.js +2 -0
  88. package/dist/cli-bundle/focused-chunks/{chunk-WVIVUWVL.js → chunk-CIXVQPB7.js} +2 -2
  89. package/dist/cli-bundle/focused-chunks/chunk-DLTS3IHM.js +2 -0
  90. package/dist/cli-bundle/focused-chunks/{chunk-FGKY4MBE.js → chunk-DQ6FKGL3.js} +10 -10
  91. package/dist/cli-bundle/focused-chunks/{chunk-QVHKCI4T.js → chunk-HNL6IFGS.js} +2 -2
  92. package/dist/cli-bundle/focused-chunks/chunk-JLG2C4EQ.js +2 -0
  93. package/dist/cli-bundle/focused-chunks/{chunk-G6ETT4QK.js → chunk-MHMTKV5V.js} +2 -2
  94. package/dist/cli-bundle/focused-chunks/{chunk-7J5TUBUJ.js → chunk-MOTJFQ3F.js} +22 -22
  95. package/dist/cli-bundle/focused-chunks/{chunk-UIL2M2NA.js → chunk-NBJKQP4S.js} +2 -2
  96. package/dist/cli-bundle/focused-chunks/{chunk-RUR5I3TK.js → chunk-QHRTT7WT.js} +2 -2
  97. package/dist/cli-bundle/focused-chunks/{chunk-B7LJWAZE.js → chunk-R2LEMEV5.js} +2 -2
  98. package/dist/cli-bundle/focused-chunks/{chunk-SV3O7TSH.js → chunk-RPNYG5MO.js} +2 -2
  99. package/dist/cli-bundle/focused-chunks/chunk-RW5IYD4J.js +4 -0
  100. package/dist/cli-bundle/focused-chunks/chunk-TIKDBG4D.js +29 -0
  101. package/dist/cli-bundle/focused-chunks/{chunk-IPWSFADF.js → chunk-VZFU2R4M.js} +2 -2
  102. package/dist/cli-bundle/focused-chunks/{chunk-WEM2E2PE.js → chunk-YZEZAPJK.js} +2 -2
  103. package/dist/cli-bundle/focused-chunks/chunk-ZJIMJHDB.js +2 -0
  104. package/dist/cli-bundle/main.js +13 -13
  105. package/dist/cli-bundle/sdk-authoring.js +1 -1
  106. package/dist/cli-bundle/sdk-contracts.js +1 -1
  107. package/dist/cli-bundle/sdk-core.js +29 -28
  108. package/dist/cli-bundle/sdk-governance.js +1 -1
  109. package/dist/cli-bundle/sdk-graph.js +1 -1
  110. package/dist/cli-bundle/sdk-merge.js +1 -1
  111. package/dist/cli-bundle/sdk-query.js +1 -1
  112. package/dist/cli-bundle/sdk-runtime.js +1 -1
  113. package/dist/cli-bundle/sdk-testing.js +1 -1
  114. package/dist/cli-bundle/sdk.js +1 -1
  115. package/dist/core/extensions/activation-summary.d.ts +4 -0
  116. package/dist/core/extensions/activation-summary.js +5 -2
  117. package/dist/core/extensions/contribution-inventory.d.ts +1 -0
  118. package/dist/core/extensions/contribution-inventory.js +35 -2
  119. package/dist/core/extensions/extension-hook-runtime.js +5 -3
  120. package/dist/core/extensions/extension-types.d.ts +18 -1
  121. package/dist/core/extensions/extension-types.js +2 -2
  122. package/dist/core/extensions/loader.js +5 -13
  123. package/dist/core/extensions/preflight-ownership.d.ts +5 -0
  124. package/dist/core/extensions/preflight-ownership.js +42 -0
  125. package/dist/core/extensions/reserved-host-flags.js +3 -2
  126. package/dist/core/history/workspace-history.d.ts +22 -2
  127. package/dist/core/history/workspace-history.js +60 -36
  128. package/dist/core/output/output.d.ts +2 -0
  129. package/dist/core/output/output.js +3 -2
  130. package/dist/core/shared/command-types.d.ts +2 -0
  131. package/dist/core/shared/command-types.js +2 -2
  132. package/dist/mcp/tool-definitions.js +6 -2
  133. package/dist/sdk/author-attribution.js +23 -7
  134. package/dist/sdk/cli-bootstrap.d.ts +2 -0
  135. package/dist/sdk/cli-bootstrap.js +7 -2
  136. package/dist/sdk/cli-contracts/completeness.js +51 -4
  137. package/dist/sdk/cli-contracts/flag-contracts.d.ts +2 -0
  138. package/dist/sdk/cli-contracts/flag-contracts.js +9 -2
  139. package/dist/sdk/cli-contracts/registration-helpers.js +3 -2
  140. package/dist/sdk/cli-contracts/runtime-contracts.js +16 -9
  141. package/dist/sdk/cli-contracts/tool-parameter-tables.js +116 -10
  142. package/dist/sdk/cli-contracts/tool-schema.js +18 -2
  143. package/dist/sdk/cli-contracts.d.ts +1 -1
  144. package/dist/sdk/cli-contracts.js +3 -3
  145. package/dist/sdk/cli-program.js +3 -2
  146. package/dist/sdk/completion.js +5 -2
  147. package/dist/sdk/compose.d.ts +2 -2
  148. package/dist/sdk/compose.js +7 -2
  149. package/dist/sdk/contracts.d.ts +1 -0
  150. package/dist/sdk/contracts.js +2 -2
  151. package/dist/sdk/core.d.ts +3 -1
  152. package/dist/sdk/core.js +4 -3
  153. package/dist/sdk/define.d.ts +3 -1
  154. package/dist/sdk/define.js +3 -8
  155. package/dist/sdk/extension/install-sources.d.ts +43 -5
  156. package/dist/sdk/extension/install-sources.js +36 -2
  157. package/dist/sdk/extension/migrations.d.ts +114 -0
  158. package/dist/sdk/extension/migrations.js +175 -0
  159. package/dist/sdk/extension/scaffold.js +14 -9
  160. package/dist/sdk/extension/source-resolution.d.ts +50 -0
  161. package/dist/sdk/extension/source-resolution.js +66 -0
  162. package/dist/sdk/extension.d.ts +5 -1
  163. package/dist/sdk/extension.js +31 -35
  164. package/dist/sdk/generated-error-code-catalog.js +112 -2
  165. package/dist/sdk/governance/health.js +11 -2
  166. package/dist/sdk/history-analytics.d.ts +141 -0
  167. package/dist/sdk/history-analytics.js +283 -0
  168. package/dist/sdk/improvement-ledger-validation.d.ts +3 -0
  169. package/dist/sdk/improvement-ledger-validation.js +63 -0
  170. package/dist/sdk/improvement-ledger.d.ts +139 -0
  171. package/dist/sdk/improvement-ledger.js +261 -0
  172. package/dist/sdk/index.d.ts +11 -3
  173. package/dist/sdk/index.js +12 -4
  174. package/dist/sdk/lifecycle/plan.js +6 -3
  175. package/dist/sdk/merge/install.js +10 -2
  176. package/dist/sdk/package-migrations.d.ts +10 -0
  177. package/dist/sdk/package-migrations.js +21 -0
  178. package/dist/sdk/read-output-budget.js +24 -22
  179. package/dist/sdk/read-output-contracts.d.ts +10 -2
  180. package/dist/sdk/read-output-contracts.js +124 -65
  181. package/dist/sdk/read-output-rows.d.ts +29 -0
  182. package/dist/sdk/read-output-rows.js +100 -0
  183. package/dist/sdk/read-output-session.d.ts +69 -0
  184. package/dist/sdk/read-output-session.js +200 -0
  185. package/dist/sdk/runtime-input.d.ts +2 -0
  186. package/dist/sdk/runtime-input.js +14 -2
  187. package/dist/sdk/runtime-primitives.d.ts +1 -1
  188. package/dist/sdk/runtime-primitives.js +3 -3
  189. package/dist/sdk/runtime-stats-options.d.ts +9 -0
  190. package/dist/sdk/runtime-stats-options.js +38 -0
  191. package/dist/sdk/runtime.d.ts +3 -0
  192. package/dist/sdk/runtime.js +10 -27
  193. package/dist/sdk/stats.d.ts +40 -0
  194. package/dist/sdk/stats.js +112 -29
  195. package/docs/COMMANDS.md +9 -0
  196. package/docs/EXTENSIONS.md +2 -2
  197. package/docs/EXTENSION_LIFECYCLE.md +46 -0
  198. package/docs/IMPROVEMENT_ANALYTICS.md +103 -0
  199. package/docs/OUTPUT_PROJECTION_CONTRACTS.md +5 -5
  200. package/docs/README.md +2 -0
  201. package/docs/READ_OUTPUT_CONTRACTS.md +60 -1
  202. package/docs/RELEASING.md +33 -20
  203. package/docs/SDK.md +31 -3
  204. package/marketplace.json +2 -2
  205. package/package.json +5 -5
  206. package/packages/pm-beads/package.json +1 -1
  207. package/packages/pm-calendar/package.json +1 -1
  208. package/packages/pm-command-kit/package.json +1 -1
  209. package/packages/pm-digital-twin/package.json +1 -1
  210. package/packages/pm-governance-audit/package.json +1 -1
  211. package/packages/pm-guide-shell/package.json +1 -1
  212. package/packages/pm-kanban/package.json +1 -1
  213. package/packages/pm-lifecycle-hooks/package.json +1 -1
  214. package/packages/pm-linked-test-adapters/package.json +1 -1
  215. package/packages/pm-search-advanced/package.json +1 -1
  216. package/packages/pm-templates/package.json +1 -1
  217. package/packages/pm-todos/package.json +1 -1
  218. package/packages/pm-vcs/package.json +1 -1
  219. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
  220. package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
  221. package/sdk/public-surface.json +566 -815
  222. package/dist/cli-bundle/chunks/append-VXXGOXSG.js +0 -2
  223. package/dist/cli-bundle/chunks/chunk-6MSQJOTG.js +0 -13
  224. package/dist/cli-bundle/chunks/chunk-EGJ4JTUG.js +0 -55
  225. package/dist/cli-bundle/chunks/chunk-FPBQHMFT.js +0 -8
  226. package/dist/cli-bundle/chunks/chunk-GE4KCSZP.js +0 -164
  227. package/dist/cli-bundle/chunks/chunk-LN2WFEU4.js +0 -2
  228. package/dist/cli-bundle/chunks/chunk-OPVH7SKD.js +0 -8
  229. package/dist/cli-bundle/chunks/chunk-Q35VBGOQ.js +0 -5
  230. package/dist/cli-bundle/chunks/chunk-SSF4PIUR.js +0 -2
  231. package/dist/cli-bundle/chunks/chunk-WRL4KNDL.js +0 -20
  232. package/dist/cli-bundle/chunks/chunk-XCEZYMNI.js +0 -2
  233. package/dist/cli-bundle/chunks/chunk-YEWNL576.js +0 -2
  234. package/dist/cli-bundle/chunks/close-VZ3OQPN5.js +0 -2
  235. package/dist/cli-bundle/chunks/close-many-SB4TI27P.js +0 -2
  236. package/dist/cli-bundle/chunks/comments-BIF3Q4KY.js +0 -2
  237. package/dist/cli-bundle/chunks/copy-6AI5Z57X.js +0 -2
  238. package/dist/cli-bundle/chunks/delete-ZY2VHQTP.js +0 -2
  239. package/dist/cli-bundle/chunks/focus-DLBNWL7L.js +0 -2
  240. package/dist/cli-bundle/chunks/register-operations-ARRRKOVN.js +0 -2
  241. package/dist/cli-bundle/chunks/register-setup-O6AYP6NP.js +0 -2
  242. package/dist/cli-bundle/chunks/restore-ZVCVHTB5.js +0 -2
  243. package/dist/cli-bundle/chunks/update-YHV52CSS.js +0 -2
  244. package/dist/cli-bundle/chunks/update-many-M6YHVNXM.js +0 -2
  245. package/dist/cli-bundle/focused-chunks/chunk-BIMTMOS7.js +0 -4
  246. package/dist/cli-bundle/focused-chunks/chunk-GJ2TG2CW.js +0 -28
  247. package/dist/cli-bundle/focused-chunks/chunk-N5XU5UVK.js +0 -2
  248. package/dist/cli-bundle/focused-chunks/chunk-PG2RIZBX.js +0 -2
  249. package/dist/cli-bundle/focused-chunks/chunk-VLYOEYML.js +0 -2
  250. package/dist/cli-bundle/focused-chunks/chunk-W7BJEWHX.js +0 -2
  251. package/dist/cli-bundle/focused-chunks/chunk-Y4LDYLLT.js +0 -2
@@ -1,2 +1,2 @@
1
- import{a as Ie,b as we,c as Oe,d as Se,e as Pe,f as Fe,g as Re,h as Ae,i as D,j as N,k as L,l as $,m as j,p as K,q as H,w as U,x as q,y as V,z}from"./focused-chunks/chunk-QVHKCI4T.js";import{a as A,b as T,c as M,d as B,w as X}from"./focused-chunks/chunk-UIL2M2NA.js";import"./focused-chunks/chunk-VLYOEYML.js";import"./focused-chunks/chunk-RUR5I3TK.js";import"./focused-chunks/chunk-N5XU5UVK.js";import{Qa as W,Sa as G,Ta as Y,b as y,c as v,f as m,g,k as E,l as k,m as C,ma as F,n as b,na as R}from"./focused-chunks/chunk-BIMTMOS7.js";import{b as ke,c as Ce,d as be}from"./focused-chunks/chunk-Y4LDYLLT.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]="60463c2e-f904-5199-87b0-8a17f0e2ee0f")}catch{}})();function Le(e){return e}function $e(e){return e}function J(e,o){for(let r of o.commands??[])e.registerCommand(r);for(let[r,t]of Object.entries(o.commandOverrides??{}))e.registerCommand(r,t);for(let[r,t]of Object.entries(o.flags??{}))e.registerFlags(r,t);for(let[r,t]of Object.entries(o.parsers??{}))e.registerParser(r,t);for(let[r,t]of Object.entries(o.renderers??{}))if(typeof t=="function")e.registerRenderer(r,t);else{let{run:n,...s}=t;e.registerRenderer(r,n,s)}for(let[r,t]of Object.entries(o.services??{}))e.registerService(r,t)}function Q(e,o){for(let s of o.preflights??[])e.registerPreflight(s);let r=o.itemTypes??[];r.length>0&&e.registerItemTypes(r);let t=o.itemFields??[];t.length>0&&e.registerItemFields(t);let n=o.relationshipKinds??[];n.length>0&&e.registerRelationshipKinds(n);for(let s of o.migrations??[])e.registerMigration(s);for(let s of o.profiles??[])e.registerProfile(s)}function Z(e,o){for(let r of o.searchProviders??[])e.registerSearchProvider(r);for(let r of o.vectorStoreAdapters??[])e.registerVectorStoreAdapter(r);for(let r of o.importers??[])e.registerImporter(r.name,r.importer,r.options);for(let r of o.exporters??[])e.registerExporter(r.name,r.exporter,r.options)}function ee(e,o){for(let r of o.beforeCommand??[])e.hooks.beforeCommand(r);for(let r of o.beforeMutation??[])e.hooks.beforeMutation(r);for(let r of o.afterCommand??[])e.hooks.afterCommand(r);for(let r of o.onWrite??[])e.hooks.onWrite(r);for(let r of o.onRead??[])e.hooks.onRead(r);for(let r of o.onIndex??[])e.hooks.onIndex(r)}function re(e){let r={activate:async t=>{J(t,e),Q(t,e),Z(t,e),ee(t,e.hooks??{}),await e.activate?.(t)}};return e.manifest&&(r.manifest=e.manifest),e.deactivate&&(r.deactivate=e.deactivate),r}function f(e){let o=e.flatMap(r=>r??[]);return o.length>0?o:void 0}function p(e){let o=Object.assign({},...e.map(r=>r??{}));return Object.keys(o).length>0?o:void 0}function oe(e){let o={};for(let r of e)for(let[t,n]of Object.entries(r??{}))o[t]=[...o[t]??[],...n];return Object.keys(o).length>0?o:void 0}var te=["beforeCommand","beforeMutation","afterCommand","onWrite","onRead","onIndex"];function ne(e,o,r){let t=o.map(s=>s?.[r]),n=f(t);if(n!==void 0){let s=e;s[r]=n}}function ie(e){let o={};for(let r of te)ne(o,e,r);return Object.keys(o).length>0?o:void 0}function je(...e){let o={},r=(i,c)=>{c!==void 0&&(o[i]=c)};r("commands",f(e.map(i=>i.commands))),r("commandOverrides",p(e.map(i=>i.commandOverrides))),r("flags",oe(e.map(i=>i.flags))),r("parsers",p(e.map(i=>i.parsers))),r("renderers",p(e.map(i=>i.renderers))),r("services",p(e.map(i=>i.services))),r("preflights",f(e.map(i=>i.preflights))),r("itemTypes",f(e.map(i=>i.itemTypes))),r("itemFields",f(e.map(i=>i.itemFields))),r("relationshipKinds",f(e.map(i=>i.relationshipKinds))),r("migrations",f(e.map(i=>i.migrations))),r("profiles",f(e.map(i=>i.profiles))),r("searchProviders",f(e.map(i=>i.searchProviders))),r("vectorStoreAdapters",f(e.map(i=>i.vectorStoreAdapters))),r("importers",f(e.map(i=>i.importers))),r("exporters",f(e.map(i=>i.exporters))),r("hooks",ie(e.map(i=>i.hooks)));let t;for(let i of e)i.manifest&&(t=i.manifest);r("manifest",t);let n=e.some(i=>i.activate);r("activate",n?async i=>{for(let c of e)c.activate&&await c.activate(i)}:void 0);let s=e.some(i=>i.deactivate);return r("deactivate",s?async()=>{let i=[];for(let c of[...e].reverse())if(c.deactivate)try{await c.deactivate()}catch(d){i.push(d)}if(i.length>0)throw i.length>1?new AggregateError(i,"Multiple extension blueprint deactivate hooks failed."):i[0]}:void 0),o}var se=[["commands","commands"],["commandOverrides","commands"],["flags","schema"],["itemTypes","schema"],["itemFields","schema"],["relationshipKinds","schema"],["migrations","schema"],["profiles","schema"],["parsers","parser"],["renderers","renderers"],["services","services"],["preflights","preflight"],["searchProviders","search"],["vectorStoreAdapters","search"],["importers","importers"],["exporters","importers"]];function u(e){return e?Array.isArray(e)?e.length>0:Object.keys(e).length>0:!1}function h(e){let o=new Set;for(let[n,s]of se)u(e[n])&&o.add(s);(e.commands??[]).filter(l).some(n=>n.flags!==void 0)&&o.add("schema");let r=[...e.importers??[],...e.exporters??[]].filter(l);r.some(n=>n?.options?.flags!==void 0)&&o.add("schema"),r.some(n=>typeof n=="object")&&o.add("commands");let t=e.hooks??{};return[t.beforeCommand,t.beforeMutation,t.afterCommand,t.onWrite,t.onRead,t.onIndex].some(u)&&o.add("hooks"),[...o].sort((n,s)=>n.localeCompare(s))}var ae=[["beforeCommand","before_command"],["beforeMutation","before_mutation"],["afterCommand","after_command"],["onWrite","on_write"],["onRead","on_read"],["onIndex","on_index"]];function a(e){return[...new Set(e)].sort((o,r)=>o.localeCompare(r))}function l(e){return e!=null}function _(e){return m(`${e.name} import`)}function x(e){return m(`${e.name} export`)}function ce(e,o,r){return[...e.map(t=>m(t.name)),...o.filter(t=>t.options!==void 0).map(_),...r.filter(t=>t.options!==void 0).map(x)]}function de(e,o,r,t){return[...Object.keys(e.flags??{}).map(n=>m(n)),...o.filter(n=>n.flags!==void 0).map(n=>m(n.name)),...r.filter(n=>n.options?.flags!==void 0).map(_),...t.filter(n=>n.options?.flags!==void 0).map(x)]}function me(e){return ae.filter(([o])=>(e[o]?.length??0)>0).map(([,o])=>o)}function fe(e){let o=Object.entries(e??{}).filter(([,r])=>typeof r!="function"&&((r.commands?.length??0)>0||r.resultDiscriminator!==void 0)).map(([r,t])=>{let n=t;return{format:r,commands:a((n.commands??[]).map(s=>m(s))),result_discriminator:n.resultDiscriminator!==void 0}}).sort((r,t)=>r.format.localeCompare(t.format));return o.length>0?{renderer_ownership:o}:{}}function le(e,o,r){return{item_types:a((e.itemTypes??[]).map(t=>t.name)),item_fields:a((e.itemFields??[]).map(t=>t.name)),...(e.relationshipKinds?.length??0)>0?{relationship_kinds:a(e.relationshipKinds.map(t=>t.kind))}:{},migrations:a((e.migrations??[]).flatMap(t=>typeof t.id=="string"?[t.id]:[])),profiles:a((e.profiles??[]).map(t=>t.name)),importers:a(o.map(t=>m(t.name))),exporters:a(r.map(t=>m(t.name))),search_providers:a((e.searchProviders??[]).map(t=>t.name)),vector_store_adapters:a((e.vectorStoreAdapters??[]).map(t=>t.name)),parser_overrides:a(Object.keys(e.parsers??{}).map(t=>m(t))),service_overrides:a(Object.keys(e.services??{}).map(t=>String(t).trim().toLowerCase())),renderer_overrides:a(Object.keys(e.renderers??{}).map(t=>String(t).trim().toLowerCase())),...fe(e.renderers),preflight_overrides:(e.preflights??[]).length}}function Ke(e){let o=(e.commands??[]).filter(l),r=(e.importers??[]).filter(l),t=(e.exporters??[]).filter(l),n=r.map(_),s=t.map(x),i=ce(o,r,t),c=de(e,o,r,t),d=e.hooks??{},S=le(e,r,t);return{capabilities:h(e),commands:a(i),command_overrides:a(Object.keys(e.commandOverrides??{}).map(P=>m(P))),command_handlers:a([...i,...n,...s]),hooks:me(d),flag_commands:a(c),...S}}var pe=["commands","commandOverrides","flags","parsers","renderers","services","preflights","itemTypes","itemFields","relationshipKinds","migrations","profiles","searchProviders","vectorStoreAdapters","importers","exporters"];function ue(e){return(e.itemFields??[]).filter(o=>typeof o?.name=="string"&&g.has(o.name.trim())).map(o=>({code:"reserved_item_field",severity:"error",message:`Item field "${o.name}" collides with reserved item metadata; rename it with an extension-specific prefix before publishing.`,field:o.name}))}function ge(e){return[...Object.values(e.flags??{}).flat(),...(e.commands??[]).flatMap(r=>r.flags??[]),...(e.importers??[]).flatMap(r=>r.options?.flags??[]),...(e.exporters??[]).flatMap(r=>r.options?.flags??[])].flatMap(r=>{if(typeof r?.long!="string"&&typeof r?.short!="string")return[];let t=E(r.long,r.short);if(t===null)return[];let{token:n,failure:s}=t;return[{code:s,severity:"error",message:`Flag "${n}" ${k(n,s)}.`,field:n}]})}function w(e){let o=new Set;for(let r of e){let t=v(r)??y(r);t!==null&&o.add(t)}return[...o].sort((r,t)=>r.localeCompare(t))}function he(e,o){let r=[];if(o===null)return e.length>0&&r.push({code:"manifest_capabilities_absent",severity:"warning",message:`Blueprint exercises ${e.length===1?"capability":"capabilities"} [${e.join(", ")}] but declares none; set capabilities to deriveExtensionCapabilities(blueprint) so the manifest grant matches.`}),r;let t=new Set(o),n=new Set(e);for(let s of e)t.has(s)||r.push({code:"capability_undeclared",severity:"error",message:`Blueprint exercises capability "${s}" but it is absent from the declared capabilities; activation throws extension_capability_missing \u2014 add "${s}" to the manifest capabilities.`,capability:s});for(let s of o)n.has(s)||r.push({code:"capability_unused",severity:"warning",message:`Capability "${s}" is declared but no blueprint surface exercises it; drop it to keep the manifest least-privilege (pm package doctor reports this as extension_capability_unused).`,capability:s});return r}function _e(e){let o=[],r=new Map;for(let n of e.commands??[]){let s=m(n.name);r.set(s,(r.get(s)??0)+1)}for(let[n,s]of r)s>1&&o.push({code:"duplicate_command",severity:"warning",message:`Command "${n}" is declared ${s} times in commands; the later registration shadows the earlier one at dispatch.`,command:n});let t=new Set(Object.keys(e.commandOverrides??{}).map(n=>m(n)));for(let n of r.keys())t.has(n)&&o.push({code:"command_override_conflict",severity:"warning",message:`Command "${n}" is declared both as a new command definition and as a command override; register one or the other.`,command:n});return o}function xe(e){let o=[];for(let r of pe)r in e&&!u(e[r])&&o.push({code:"empty_surface",severity:"warning",message:`Blueprint field "${r}" is present but empty; remove it or populate it.`,field:r});if("hooks"in e){let r=e.hooks??{};[r.beforeCommand,r.beforeMutation,r.afterCommand,r.onWrite,r.onRead,r.onIndex].some(u)||o.push({code:"empty_surface",severity:"warning",message:'Blueprint field "hooks" is present but registers no lifecycle hooks; remove it or populate it.',field:"hooks"})}return o}function ye(e,o={}){let r=h(e),t=o.declaredCapabilities??e.manifest?.capabilities,n=Array.isArray(t)?w(t):null,s=[...he(r,n),..._e(e),...ge(e),...ue(e),...xe(e)];return{ok:s.every(i=>i.severity!=="error"),findings:s,used:r,declared:n}}function O(e,o){let{additionalCapabilities:r,...t}=o,n=Array.isArray(r)?w(r):[],s=[...new Set([...h(e),...n])].sort((i,c)=>i.localeCompare(c));return{...t,capabilities:s}}function He(e,o){let r=O(e,o);return{module:re({...e,manifest:r}),manifest:r}}function I(e,o){if(e.status==="absent"||e.status==="ok")return null;let r=`${e.kind}_${e.status}`,t;switch(r){case"pm_min_version_invalid":t=`pm_min_version "${e.required}" is not a valid version; the extension is treated as incompatible and the loader skips it.`;break;case"pm_min_version_unchecked":t=`pm_min_version "${e.required}" could not be compared against pm ${o}; compatibility is unverified.`;break;case"pm_min_version_unmet":t=`Requires pm >= ${e.required} but the target is pm ${o}; the loader skips the extension.`;break;case"pm_max_version_invalid":t=`pm_max_version "${e.required}" is not a valid inclusive upper bound (version ranges are not allowed); the extension is treated as incompatible and the loader skips it.`;break;case"pm_max_version_unchecked":t=`pm_max_version "${e.required}" could not be compared against pm ${o}; compatibility is unverified.`;break;case"pm_max_version_exceeded":t=`Allows pm <= ${e.required} but the target is pm ${o}; the loader skips the extension.`;break;case"pm_max_version_exceeded_warn":t=`Target pm ${o} is newer than pm_max_version ${e.required}, but the "warn" exceeded mode lets it load with a warning.`;break}return{code:r,severity:e.allowed?"warning":"error",constraint:e.kind,required:e.required,current:o,message:t}}function ve(e,o){let r=C(e.pm_min_version,o.pmVersion),t=b(e.pm_max_version,o.pmVersion,o.pmMaxVersionExceededMode??"block"),n=[],s=I(r,o.pmVersion);s!==null&&n.push(s);let i=I(t,o.pmVersion);return i!==null&&n.push(i),{compatible:r.allowed&&t.allowed,findings:n,pmVersion:o.pmVersion}}var Ee=new Set(["capability_undeclared","capability_unused","manifest_capabilities_absent"]);function Ue(e,o={}){let r=ye(e,{declaredCapabilities:o.declaredCapabilities}),t=o.identity?O(e,o.identity):null,n=o.target?ve(t??e.manifest??{},o.target):null,c=[...(t!==null&&o.declaredCapabilities===void 0?r.findings.filter(d=>!Ee.has(d.code)):r.findings).map(d=>({source:"blueprint",severity:d.severity,code:d.code,message:d.message})),...(n?.findings??[]).map(d=>({source:"compatibility",severity:d.severity,code:d.code,message:d.message}))];return{ok:c.every(d=>d.severity!=="error"),capabilities:r.used,blueprint:r,manifest:t,compatibility:n,findings:c}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="9212673f-1a9f-50b8-92a2-4fd30ce54351")}catch{}})();function Ve(e){return e}function ze(e){return e}function We(e){return e}function Ge(e){return e}function Ye(e){return e}function Xe(e){return e}function Je(e){return e}function Qe(e){return e}function Ze(e){return e}function er(e){return e}function rr(e){return e}function or(e){return e}function tr(e){return e}function nr(e){return{handled:!0,result:e}}function ir(){return{handled:!1}}function sr(e){return e}function ar(e){return e}function cr(e){return e}function dr(e){return e}function mr(e){return e}function fr(e){return e}function lr(e){return e}function pr(e){return e}function ur(e){return e}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="99a9b24a-4bc7-50da-8333-e76086f0e303")}catch{}})();export{N as BUILTIN_PROFILES,Ie as EXTENSION_CAPABILITIES,be as EXTENSION_CAPABILITY_CONTRACT,ke as EXTENSION_CAPABILITY_CONTRACT_VERSION,Ce as EXTENSION_CAPABILITY_LEGACY_ALIASES,W as EXTENSION_CAPABILITY_REGISTRATION_SURFACES,we as EXTENSION_POLICY_MODES,Oe as EXTENSION_POLICY_SURFACES,Pe as EXTENSION_SANDBOX_PROFILES,Se as EXTENSION_TRUST_MODES,Re as LIST_FILTER_EXTENSION_FLAG_DEFINITIONS,T as PM_PACKAGE_CONVENTIONAL_RESOURCE_ROOTS,A as PM_PACKAGE_RESOURCE_KINDS,q as PROFILE_LINT_CODES,U as PROFILE_LINT_DIMENSIONS,D as PROFILE_NAMES,g as RESERVED_ITEM_FIELD_NAMES,Ae as SEARCH_EXTENSION_FLAG_DEFINITIONS,ve as checkExtensionManifestCompatibility,B as collectPackageExtensionDirectories,G as collectUsedExtensionCapabilities,re as composeExtension,He as composeExtensionPackage,R as createExtensionContributionInventory,ir as declineServiceOverride,fr as defineAfterCommandHook,dr as defineBeforeCommandHook,mr as defineBeforeMutationHook,We as defineCommand,er as defineCommandOverride,cr as defineExporter,Le as defineExtension,$e as defineExtensionBlueprint,Ve as defineExtensionManifest,Ge as defineFlag,ar as defineImporter,Xe as defineItemField,Ye as defineItemType,Je as defineMigration,ur as defineOnIndexHook,pr as defineOnReadHook,lr as defineOnWriteHook,rr as defineParserOverride,or as definePreflightOverride,ze as defineProjectProfile,sr as defineRendererOverride,Qe as defineSearchProvider,tr as defineServiceOverride,Ze as defineVectorStoreAdapter,h as deriveExtensionCapabilities,Ke as describeExtensionBlueprint,K as describeProfileComposition,H as describeProjectProfile,nr as handleServiceOverride,ye as lintExtensionBlueprint,V as lintProjectProfile,j as listProfiles,je as mergeExtensionBlueprints,F as normalizeExtensionContributionInventory,L as normalizeProfileName,z as planProfileApplication,Ue as preflightExtension,M as readPmPackageManifest,Y as reconcileExtensionCapabilityUsage,X as renderExtensionSurfaceMarkdown,$ as resolveProfile,O as synthesizeExtensionManifest,Fe as toExtensionFlagDefinitions};
1
+ import{a as Ie,b as we,c as Oe,d as Se,e as Pe,f as Fe,g as Re,h as Ae,i as D,j as N,k as L,l as $,m as j,p as K,q as H,w as U,x as q,y as V,z}from"./focused-chunks/chunk-HNL6IFGS.js";import{a as A,b as T,c as M,d as B,w as X}from"./focused-chunks/chunk-NBJKQP4S.js";import"./focused-chunks/chunk-73JUDYXT.js";import"./focused-chunks/chunk-QHRTT7WT.js";import"./focused-chunks/chunk-DLTS3IHM.js";import{Qa as W,Sa as G,Ta as Y,b as y,c as v,f as m,g,k as E,l as k,m as C,ma as F,n as b,na as R}from"./focused-chunks/chunk-RW5IYD4J.js";import{b as ke,c as Ce,d as be}from"./focused-chunks/chunk-ZJIMJHDB.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="142a413a-35a6-5861-9063-0c196a176eaa")}catch{}})();function Le(e){return e}function $e(e){return e}function J(e,o){for(let r of o.commands??[])e.registerCommand(r);for(let[r,t]of Object.entries(o.commandOverrides??{}))e.registerCommand(r,t);for(let[r,t]of Object.entries(o.flags??{}))e.registerFlags(r,t);for(let[r,t]of Object.entries(o.parsers??{}))e.registerParser(r,t);for(let[r,t]of Object.entries(o.renderers??{}))if(typeof t=="function")e.registerRenderer(r,t);else{let{run:n,...s}=t;e.registerRenderer(r,n,s)}for(let[r,t]of Object.entries(o.services??{}))e.registerService(r,t)}function Q(e,o){for(let s of o.preflights??[])e.registerPreflight(s);let r=o.itemTypes??[];r.length>0&&e.registerItemTypes(r);let t=o.itemFields??[];t.length>0&&e.registerItemFields(t);let n=o.relationshipKinds??[];n.length>0&&e.registerRelationshipKinds(n);for(let s of o.migrations??[])e.registerMigration(s);for(let s of o.profiles??[])e.registerProfile(s)}function Z(e,o){for(let r of o.searchProviders??[])e.registerSearchProvider(r);for(let r of o.vectorStoreAdapters??[])e.registerVectorStoreAdapter(r);for(let r of o.importers??[])e.registerImporter(r.name,r.importer,r.options);for(let r of o.exporters??[])e.registerExporter(r.name,r.exporter,r.options)}function ee(e,o){for(let r of o.beforeCommand??[])e.hooks.beforeCommand(r);for(let r of o.beforeMutation??[])e.hooks.beforeMutation(r);for(let r of o.afterCommand??[])e.hooks.afterCommand(r);for(let r of o.onWrite??[])e.hooks.onWrite(r);for(let r of o.onRead??[])e.hooks.onRead(r);for(let r of o.onIndex??[])e.hooks.onIndex(r)}function re(e){let r={activate:async t=>{J(t,e),Q(t,e),Z(t,e),ee(t,e.hooks??{}),await e.activate?.(t)}};return e.manifest&&(r.manifest=e.manifest),e.deactivate&&(r.deactivate=e.deactivate),r}function f(e){let o=e.flatMap(r=>r??[]);return o.length>0?o:void 0}function p(e){let o=Object.assign({},...e.map(r=>r??{}));return Object.keys(o).length>0?o:void 0}function oe(e){let o={};for(let r of e)for(let[t,n]of Object.entries(r??{}))o[t]=[...o[t]??[],...n];return Object.keys(o).length>0?o:void 0}var te=["beforeCommand","beforeMutation","afterCommand","onWrite","onRead","onIndex"];function ne(e,o,r){let t=o.map(s=>s?.[r]),n=f(t);if(n!==void 0){let s=e;s[r]=n}}function ie(e){let o={};for(let r of te)ne(o,e,r);return Object.keys(o).length>0?o:void 0}function je(...e){let o={},r=(i,c)=>{c!==void 0&&(o[i]=c)};r("commands",f(e.map(i=>i.commands))),r("commandOverrides",p(e.map(i=>i.commandOverrides))),r("flags",oe(e.map(i=>i.flags))),r("parsers",p(e.map(i=>i.parsers))),r("renderers",p(e.map(i=>i.renderers))),r("services",p(e.map(i=>i.services))),r("preflights",f(e.map(i=>i.preflights))),r("itemTypes",f(e.map(i=>i.itemTypes))),r("itemFields",f(e.map(i=>i.itemFields))),r("relationshipKinds",f(e.map(i=>i.relationshipKinds))),r("migrations",f(e.map(i=>i.migrations))),r("profiles",f(e.map(i=>i.profiles))),r("searchProviders",f(e.map(i=>i.searchProviders))),r("vectorStoreAdapters",f(e.map(i=>i.vectorStoreAdapters))),r("importers",f(e.map(i=>i.importers))),r("exporters",f(e.map(i=>i.exporters))),r("hooks",ie(e.map(i=>i.hooks)));let t;for(let i of e)i.manifest&&(t=i.manifest);r("manifest",t);let n=e.some(i=>i.activate);r("activate",n?async i=>{for(let c of e)c.activate&&await c.activate(i)}:void 0);let s=e.some(i=>i.deactivate);return r("deactivate",s?async()=>{let i=[];for(let c of[...e].reverse())if(c.deactivate)try{await c.deactivate()}catch(d){i.push(d)}if(i.length>0)throw i.length>1?new AggregateError(i,"Multiple extension blueprint deactivate hooks failed."):i[0]}:void 0),o}var se=[["commands","commands"],["commandOverrides","commands"],["flags","schema"],["itemTypes","schema"],["itemFields","schema"],["relationshipKinds","schema"],["migrations","schema"],["profiles","schema"],["parsers","parser"],["renderers","renderers"],["services","services"],["preflights","preflight"],["searchProviders","search"],["vectorStoreAdapters","search"],["importers","importers"],["exporters","importers"]];function u(e){return e?Array.isArray(e)?e.length>0:Object.keys(e).length>0:!1}function h(e){let o=new Set;for(let[n,s]of se)u(e[n])&&o.add(s);(e.commands??[]).filter(l).some(n=>n.flags!==void 0)&&o.add("schema");let r=[...e.importers??[],...e.exporters??[]].filter(l);r.some(n=>n?.options?.flags!==void 0)&&o.add("schema"),r.some(n=>typeof n=="object")&&o.add("commands");let t=e.hooks??{};return[t.beforeCommand,t.beforeMutation,t.afterCommand,t.onWrite,t.onRead,t.onIndex].some(u)&&o.add("hooks"),[...o].sort((n,s)=>n.localeCompare(s))}var ae=[["beforeCommand","before_command"],["beforeMutation","before_mutation"],["afterCommand","after_command"],["onWrite","on_write"],["onRead","on_read"],["onIndex","on_index"]];function a(e){return[...new Set(e)].sort((o,r)=>o.localeCompare(r))}function l(e){return e!=null}function _(e){return m(`${e.name} import`)}function x(e){return m(`${e.name} export`)}function ce(e,o,r){return[...e.map(t=>m(t.name)),...o.filter(t=>t.options!==void 0).map(_),...r.filter(t=>t.options!==void 0).map(x)]}function de(e,o,r,t){return[...Object.keys(e.flags??{}).map(n=>m(n)),...o.filter(n=>n.flags!==void 0).map(n=>m(n.name)),...r.filter(n=>n.options?.flags!==void 0).map(_),...t.filter(n=>n.options?.flags!==void 0).map(x)]}function me(e){return ae.filter(([o])=>(e[o]?.length??0)>0).map(([,o])=>o)}function fe(e){let o=Object.entries(e??{}).filter(([,r])=>typeof r!="function"&&((r.commands?.length??0)>0||r.resultDiscriminator!==void 0)).map(([r,t])=>{let n=t;return{format:r,commands:a((n.commands??[]).map(s=>m(s))),result_discriminator:n.resultDiscriminator!==void 0}}).sort((r,t)=>r.format.localeCompare(t.format));return o.length>0?{renderer_ownership:o}:{}}function le(e,o,r){return{item_types:a((e.itemTypes??[]).map(t=>t.name)),item_fields:a((e.itemFields??[]).map(t=>t.name)),...(e.relationshipKinds?.length??0)>0?{relationship_kinds:a(e.relationshipKinds.map(t=>t.kind))}:{},migrations:a((e.migrations??[]).flatMap(t=>typeof t.id=="string"?[t.id]:[])),profiles:a((e.profiles??[]).map(t=>t.name)),importers:a(o.map(t=>m(t.name))),exporters:a(r.map(t=>m(t.name))),search_providers:a((e.searchProviders??[]).map(t=>t.name)),vector_store_adapters:a((e.vectorStoreAdapters??[]).map(t=>t.name)),parser_overrides:a(Object.keys(e.parsers??{}).map(t=>m(t))),service_overrides:a(Object.keys(e.services??{}).map(t=>String(t).trim().toLowerCase())),renderer_overrides:a(Object.keys(e.renderers??{}).map(t=>String(t).trim().toLowerCase())),...fe(e.renderers),preflight_overrides:(e.preflights??[]).length,preflight_ownership:(e.preflights??[]).map(t=>({commands:[...t.commands??[]]}))}}function Ke(e){let o=(e.commands??[]).filter(l),r=(e.importers??[]).filter(l),t=(e.exporters??[]).filter(l),n=r.map(_),s=t.map(x),i=ce(o,r,t),c=de(e,o,r,t),d=e.hooks??{},S=le(e,r,t);return{capabilities:h(e),commands:a(i),command_overrides:a(Object.keys(e.commandOverrides??{}).map(P=>m(P))),command_handlers:a([...i,...n,...s]),hooks:me(d),flag_commands:a(c),...S}}var pe=["commands","commandOverrides","flags","parsers","renderers","services","preflights","itemTypes","itemFields","relationshipKinds","migrations","profiles","searchProviders","vectorStoreAdapters","importers","exporters"];function ue(e){return(e.itemFields??[]).filter(o=>typeof o?.name=="string"&&g.has(o.name.trim())).map(o=>({code:"reserved_item_field",severity:"error",message:`Item field "${o.name}" collides with reserved item metadata; rename it with an extension-specific prefix before publishing.`,field:o.name}))}function ge(e){return[...Object.values(e.flags??{}).flat(),...(e.commands??[]).flatMap(r=>r.flags??[]),...(e.importers??[]).flatMap(r=>r.options?.flags??[]),...(e.exporters??[]).flatMap(r=>r.options?.flags??[])].flatMap(r=>{if(typeof r?.long!="string"&&typeof r?.short!="string")return[];let t=E(r.long,r.short);if(t===null)return[];let{token:n,failure:s}=t;return[{code:s,severity:"error",message:`Flag "${n}" ${k(n,s)}.`,field:n}]})}function w(e){let o=new Set;for(let r of e){let t=v(r)??y(r);t!==null&&o.add(t)}return[...o].sort((r,t)=>r.localeCompare(t))}function he(e,o){let r=[];if(o===null)return e.length>0&&r.push({code:"manifest_capabilities_absent",severity:"warning",message:`Blueprint exercises ${e.length===1?"capability":"capabilities"} [${e.join(", ")}] but declares none; set capabilities to deriveExtensionCapabilities(blueprint) so the manifest grant matches.`}),r;let t=new Set(o),n=new Set(e);for(let s of e)t.has(s)||r.push({code:"capability_undeclared",severity:"error",message:`Blueprint exercises capability "${s}" but it is absent from the declared capabilities; activation throws extension_capability_missing \u2014 add "${s}" to the manifest capabilities.`,capability:s});for(let s of o)n.has(s)||r.push({code:"capability_unused",severity:"warning",message:`Capability "${s}" is declared but no blueprint surface exercises it; drop it to keep the manifest least-privilege (pm package doctor reports this as extension_capability_unused).`,capability:s});return r}function _e(e){let o=[],r=new Map;for(let n of e.commands??[]){let s=m(n.name);r.set(s,(r.get(s)??0)+1)}for(let[n,s]of r)s>1&&o.push({code:"duplicate_command",severity:"warning",message:`Command "${n}" is declared ${s} times in commands; the later registration shadows the earlier one at dispatch.`,command:n});let t=new Set(Object.keys(e.commandOverrides??{}).map(n=>m(n)));for(let n of r.keys())t.has(n)&&o.push({code:"command_override_conflict",severity:"warning",message:`Command "${n}" is declared both as a new command definition and as a command override; register one or the other.`,command:n});return o}function xe(e){let o=[];for(let r of pe)r in e&&!u(e[r])&&o.push({code:"empty_surface",severity:"warning",message:`Blueprint field "${r}" is present but empty; remove it or populate it.`,field:r});if("hooks"in e){let r=e.hooks??{};[r.beforeCommand,r.beforeMutation,r.afterCommand,r.onWrite,r.onRead,r.onIndex].some(u)||o.push({code:"empty_surface",severity:"warning",message:'Blueprint field "hooks" is present but registers no lifecycle hooks; remove it or populate it.',field:"hooks"})}return o}function ye(e,o={}){let r=h(e),t=o.declaredCapabilities??e.manifest?.capabilities,n=Array.isArray(t)?w(t):null,s=[...he(r,n),..._e(e),...ge(e),...ue(e),...xe(e)];return{ok:s.every(i=>i.severity!=="error"),findings:s,used:r,declared:n}}function O(e,o){let{additionalCapabilities:r,...t}=o,n=Array.isArray(r)?w(r):[],s=[...new Set([...h(e),...n])].sort((i,c)=>i.localeCompare(c));return{...t,capabilities:s}}function He(e,o){let r=O(e,o);return{module:re({...e,manifest:r}),manifest:r}}function I(e,o){if(e.status==="absent"||e.status==="ok")return null;let r=`${e.kind}_${e.status}`,t;switch(r){case"pm_min_version_invalid":t=`pm_min_version "${e.required}" is not a valid version; the extension is treated as incompatible and the loader skips it.`;break;case"pm_min_version_unchecked":t=`pm_min_version "${e.required}" could not be compared against pm ${o}; compatibility is unverified.`;break;case"pm_min_version_unmet":t=`Requires pm >= ${e.required} but the target is pm ${o}; the loader skips the extension.`;break;case"pm_max_version_invalid":t=`pm_max_version "${e.required}" is not a valid inclusive upper bound (version ranges are not allowed); the extension is treated as incompatible and the loader skips it.`;break;case"pm_max_version_unchecked":t=`pm_max_version "${e.required}" could not be compared against pm ${o}; compatibility is unverified.`;break;case"pm_max_version_exceeded":t=`Allows pm <= ${e.required} but the target is pm ${o}; the loader skips the extension.`;break;case"pm_max_version_exceeded_warn":t=`Target pm ${o} is newer than pm_max_version ${e.required}, but the "warn" exceeded mode lets it load with a warning.`;break}return{code:r,severity:e.allowed?"warning":"error",constraint:e.kind,required:e.required,current:o,message:t}}function ve(e,o){let r=C(e.pm_min_version,o.pmVersion),t=b(e.pm_max_version,o.pmVersion,o.pmMaxVersionExceededMode??"block"),n=[],s=I(r,o.pmVersion);s!==null&&n.push(s);let i=I(t,o.pmVersion);return i!==null&&n.push(i),{compatible:r.allowed&&t.allowed,findings:n,pmVersion:o.pmVersion}}var Ee=new Set(["capability_undeclared","capability_unused","manifest_capabilities_absent"]);function Ue(e,o={}){let r=ye(e,{declaredCapabilities:o.declaredCapabilities}),t=o.identity?O(e,o.identity):null,n=o.target?ve(t??e.manifest??{},o.target):null,c=[...(t!==null&&o.declaredCapabilities===void 0?r.findings.filter(d=>!Ee.has(d.code)):r.findings).map(d=>({source:"blueprint",severity:d.severity,code:d.code,message:d.message})),...(n?.findings??[]).map(d=>({source:"compatibility",severity:d.severity,code:d.code,message:d.message}))];return{ok:c.every(d=>d.severity!=="error"),capabilities:r.used,blueprint:r,manifest:t,compatibility:n,findings:c}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="7fc669d4-1db2-5636-8304-2c111a684726")}catch{}})();function Ve(e){return e}function ze(e){return e}function We(e){return e}function Ge(e){return e}function Ye(e){return e}function Xe(e){return e}function Je(e){return e}function Qe(e){return e}function Ze(e){return e}function er(e){return e}function rr(e){return e}function or(e){return e}function tr(e){return e}function nr(e){return{handled:!0,result:e}}function ir(){return{handled:!1}}function sr(e){return e}function ar(e){return e}function cr(e){return e}function dr(e){return e}function mr(e){return e}function fr(e){return e}function lr(e){return e}function pr(e){return e}function ur(e){return e}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="99a9b24a-4bc7-50da-8333-e76086f0e303")}catch{}})();export{N as BUILTIN_PROFILES,Ie as EXTENSION_CAPABILITIES,be as EXTENSION_CAPABILITY_CONTRACT,ke as EXTENSION_CAPABILITY_CONTRACT_VERSION,Ce as EXTENSION_CAPABILITY_LEGACY_ALIASES,W as EXTENSION_CAPABILITY_REGISTRATION_SURFACES,we as EXTENSION_POLICY_MODES,Oe as EXTENSION_POLICY_SURFACES,Pe as EXTENSION_SANDBOX_PROFILES,Se as EXTENSION_TRUST_MODES,Re as LIST_FILTER_EXTENSION_FLAG_DEFINITIONS,T as PM_PACKAGE_CONVENTIONAL_RESOURCE_ROOTS,A as PM_PACKAGE_RESOURCE_KINDS,q as PROFILE_LINT_CODES,U as PROFILE_LINT_DIMENSIONS,D as PROFILE_NAMES,g as RESERVED_ITEM_FIELD_NAMES,Ae as SEARCH_EXTENSION_FLAG_DEFINITIONS,ve as checkExtensionManifestCompatibility,B as collectPackageExtensionDirectories,G as collectUsedExtensionCapabilities,re as composeExtension,He as composeExtensionPackage,R as createExtensionContributionInventory,ir as declineServiceOverride,fr as defineAfterCommandHook,dr as defineBeforeCommandHook,mr as defineBeforeMutationHook,We as defineCommand,er as defineCommandOverride,cr as defineExporter,Le as defineExtension,$e as defineExtensionBlueprint,Ve as defineExtensionManifest,Ge as defineFlag,ar as defineImporter,Xe as defineItemField,Ye as defineItemType,Je as defineMigration,ur as defineOnIndexHook,pr as defineOnReadHook,lr as defineOnWriteHook,rr as defineParserOverride,or as definePreflightOverride,ze as defineProjectProfile,sr as defineRendererOverride,Qe as defineSearchProvider,tr as defineServiceOverride,Ze as defineVectorStoreAdapter,h as deriveExtensionCapabilities,Ke as describeExtensionBlueprint,K as describeProfileComposition,H as describeProjectProfile,nr as handleServiceOverride,ye as lintExtensionBlueprint,V as lintProjectProfile,j as listProfiles,je as mergeExtensionBlueprints,F as normalizeExtensionContributionInventory,L as normalizeProfileName,z as planProfileApplication,Ue as preflightExtension,M as readPmPackageManifest,Y as reconcileExtensionCapabilityUsage,X as renderExtensionSurfaceMarkdown,$ as resolveProfile,O as synthesizeExtensionManifest,Fe as toExtensionFlagDefinitions};
2
2
  //# sourceMappingURL=sdk-authoring.js.map
@@ -1,2 +1,2 @@
1
- import{a as hr,b as Dr,c as Ir,d as _r,e as Tr,f as kr,g as Er,h as jr,i as qr,j as zr,k as Ar,l as Br}from"./focused-chunks/chunk-PG2RIZBX.js";import{a as Vo,b as Wo,c as Xo,d as Yo,e as Zo,f as $o,g as er,h as or}from"./focused-chunks/chunk-W7BJEWHX.js";import{A as Ho,B as Jo,C as Ko,D as Lo,E as Mo,G as No,H as Oo,I as Po,J as Qo,K as Ro,L as So,M as Uo,a as f,b as t,c as d,d as n,e as p,f as s,g as l,h as a,i,j as lo,k as ao,l as io,m as bo,n as mo,o as uo,p as xo,q as yo,r as go,s as co,t as wo,u as ho,v as Do,w as Io,x as _o,y as To,z as ko}from"./focused-chunks/chunk-VLYOEYML.js";import{$ as ae,A as J,Aa as Je,B as K,Ba as Ke,C as L,Ca as Le,D as M,Da as Me,E as N,Ea as Ne,F as O,Fa as Oe,G as P,H as Q,Ha as Pe,I as R,Ia as Qe,J as S,Ja as Re,K as U,L as V,M as W,N as X,O as Y,P as Z,Q as $,R as ee,S as oe,T as re,U as fe,V as te,W as de,X as ne,Y as pe,Z as se,_ as le,aa as ie,b,ba as be,c as m,ca as me,d as u,da as ue,e as x,ea as xe,f as y,fa as ye,g,ga as ge,h as c,ha as ce,i as w,ia as we,j as h,ja as he,k as D,ka as De,l as I,la as Ie,m as _,ma as _e,n as T,na as Te,o as k,oa as ke,p as v,pa as ve,q as E,qa as Ee,r as j,ra as je,s as q,sa as qe,t as z,ta as ze,u as A,ua as Ae,v as B,va as Be,w as C,wa as Ce,x as F,xa as Fe,y as G,ya as Ge,z as H,za as He}from"./focused-chunks/chunk-N5XU5UVK.js";import{A as gr,B as cr,C as wr,D as vr,a as rr,b as fr,c as tr,d as dr,e as nr,f as pr,g as sr,h as lr,t as ar,u as ir,v as br,w as mr,x as ur,y as xr,z as yr}from"./focused-chunks/chunk-B7LJWAZE.js";import{Aa as Ao,Ba as Bo,Ca as Co,Da as Fo,Ea as Go,ea as Se,fa as Ue,ga as Ve,ha as We,ia as Xe,ja as Ye,ka as Ze,ma as $e,na as eo,oa as oo,pa as ro,qa as fo,ra as to,sa as no,ta as po,ua as so,va as vo,wa as Eo,xa as jo,ya as qo,za as zo}from"./focused-chunks/chunk-Y4LDYLLT.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]="2962656f-386f-59a0-8dc1-411ae382dddb")}catch{}})();export{s as ACTIVITY_COMMANDER_STRING_OPTION_CONTRACTS,ze as ACTIVITY_FLAG_CONTRACTS,g as AGGREGATE_FLAG_CONTRACTS,re as APPEND_FLAG_CONTRACTS,d as CALENDAR_COMMANDER_STRING_OPTION_CONTRACTS,qe as CALENDAR_FLAG_CONTRACTS,fe as CLAIM_FLAG_CONTRACTS,Lo as CLOSE_ACTION_OPTION_KEYS,ee as CLOSE_FLAG_CONTRACTS,oe as CLOSE_MANY_FLAG_CONTRACTS,le as CLOSE_TASK_FLAG_CONTRACTS,c as COMMENTS_FLAG_CONTRACTS,Oe as COMPLETION_FLAG_CONTRACTS,C as CONFIG_FLAG_CONTRACTS,n as CONTEXT_COMMANDER_STRING_OPTION_CONTRACTS,Be as CONTEXT_FLAG_CONTRACTS,Ne as CONTRACTS_FLAG_CONTRACTS,ke as COPY_FLAG_CONTRACTS,Wo as CREATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,Yo as CREATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,Xo as CREATE_COMMANDER_STRING_OPTION_CONTRACTS,Ie as CREATE_FLAG_CONTRACTS,de as DELETE_FLAG_CONTRACTS,Ge as DEPS_FLAG_CONTRACTS,I as DOCS_FLAG_CONTRACTS,we as DUPLICATES_FLAG_CONTRACTS,Je as EVAL_FLAG_CONTRACTS,Ae as EVENTS_FLAG_CONTRACTS,ie as EVENT_FLAG_CONTRACTS,Vo as EXECUTABLE_COMMAND_ALIASES,Q as EXTENSION_ACTIVATE_FLAG_CONTRACTS,P as EXTENSION_ADOPT_ALL_FLAG_CONTRACTS,X as EXTENSION_ADOPT_FLAG_CONTRACTS,W as EXTENSION_CATALOG_FLAG_CONTRACTS,R as EXTENSION_DEACTIVATE_FLAG_CONTRACTS,O as EXTENSION_DESCRIBE_FLAG_CONTRACTS,V as EXTENSION_DOCTOR_FLAG_CONTRACTS,N as EXTENSION_EXPLORE_FLAG_CONTRACTS,F as EXTENSION_FLAG_CONTRACTS,H as EXTENSION_INIT_FLAG_CONTRACTS,L as EXTENSION_INSTALL_FLAG_CONTRACTS,S as EXTENSION_MANAGE_FLAG_CONTRACTS,U as EXTENSION_RELOAD_FLAG_CONTRACTS,G as EXTENSION_SCOPE_FLAG_CONTRACTS,M as EXTENSION_UNINSTALL_FLAG_CONTRACTS,D as FILES_FLAG_CONTRACTS,ve as FOCUS_FLAG_CONTRACTS,ge as GC_FLAG_CONTRACTS,Ce as GET_FLAG_CONTRACTS,x as GLOBAL_FLAG_CONTRACTS,He as GRAPH_FLAG_CONTRACTS,Fe as GUIDE_FLAG_CONTRACTS,he as HEALTH_FLAG_CONTRACTS,E as HISTORY_AUTHOR_ACKNOWLEDGE_FLAG_CONTRACTS,j as HISTORY_COMPACT_FLAG_CONTRACTS,_ as HISTORY_FLAG_CONTRACTS,k as HISTORY_REDACT_FLAG_CONTRACTS,v as HISTORY_REPAIR_FLAG_CONTRACTS,B as INIT_FLAG_CONTRACTS,Y as INSTALL_FLAG_CONTRACTS,Te as ITEM_COMPLETE_FLAG_CONTRACTS,_e as ITEM_MUTATE_FLAG_CONTRACTS,h as LEARNINGS_FLAG_CONTRACTS,f as LIST_COMMANDER_STRING_OPTION_CONTRACTS,y as LIST_FILTER_FLAG_CONTRACTS,ae as MEET_FLAG_CONTRACTS,T as MERGE_FLAG_CONTRACTS,p as NEXT_COMMANDER_STRING_OPTION_CONTRACTS,Le as NEXT_FLAG_CONTRACTS,w as NOTES_FLAG_CONTRACTS,J as PACKAGE_FLAG_CONTRACTS,K as PACKAGE_INIT_FLAG_CONTRACTS,se as PAUSE_TASK_FLAG_CONTRACTS,Ko as PLAN_CREATE_METADATA_PARAMETER_KEYS,A as PLAN_FLAG_CONTRACTS,eo as PM_CLI_ONLY_TOOL_ACTION_WAIVERS,pr as PM_COMMAND_OUTPUT_BUDGET_CONTRACTS,qr as PM_COMMAND_OUTPUT_ENVELOPE_CONTRACTS,ar as PM_CONTEXT_INTENT_CONTRACTS,Ze as PM_CORE_COMMAND_NAMES,_r as PM_ERROR_CODE_CATALOG,hr as PM_ERROR_CODE_EXIT_CLASS_CONTRACTS,Se as PM_EXTENSION_CAPABILITY_CONTRACTS,$e as PM_EXTENSION_PACKAGE_ACTION_SUBCOMMANDS,Ve as PM_EXTENSION_POLICY_MODE_CONTRACTS,Ye as PM_EXTENSION_POLICY_SURFACE_CONTRACTS,Xe as PM_EXTENSION_SANDBOX_PROFILE_CONTRACTS,Ue as PM_EXTENSION_SERVICE_NAME_CONTRACTS,We as PM_EXTENSION_TRUST_MODE_CONTRACTS,fr as PM_OUTPUT_BUDGET_CLASSES,rr as PM_OUTPUT_DEGRADATION_STEPS,Er as PM_OUTPUT_ENVELOPE_KINDS,So as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA,Qo as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA_VERSION,vo as PM_READ_OUTPUT_DIMENSIONS,jo as PM_READ_OUTPUT_OPTION_FLAGS,Eo as PM_READ_OUTPUT_SURFACES,qo as PM_READ_OUTPUT_SURFACE_CONTRACTS,oo as PM_TOOL_ACTIONS,Mo as PM_TOOL_ACTION_PARAMETER_CONTRACTS,Ro as PM_TOOL_PARAMETERS_SCHEMA,Po as PM_TOOL_PARAMETERS_SCHEMA_MAJOR,Oo as PM_TOOL_PARAMETERS_SCHEMA_VERSION,Ho as PM_TOOL_RESERVED_CUSTOM_FIELD_PROPERTIES,z as PROFILE_FLAG_CONTRACTS,$ as REINDEX_FLAG_CONTRACTS,ne as RELEASE_FLAG_CONTRACTS,be as REMIND_FLAG_CONTRACTS,te as RESTORE_FLAG_CONTRACTS,q as SCHEMA_FLAG_CONTRACTS,t as SEARCH_COMMANDER_STRING_OPTION_CONTRACTS,Me as SEARCH_FLAG_CONTRACTS,pe as START_TASK_FLAG_CONTRACTS,ce as STATS_FLAG_CONTRACTS,u as SUBCOMMAND_GLOBAL_FLAG_CONTRACTS,xe as TELEMETRY_FLAG_CONTRACTS,ue as TEST_ALL_FLAG_CONTRACTS,me as TEST_FLAG_CONTRACTS,ye as TEST_RUNS_FLAG_CONTRACTS,Io as TOOL_ACTIVITY_OPTION_CONTRACTS,ao as TOOL_AGGREGATE_OPTION_CONTRACTS,co as TOOL_BULK_MUTATION_FILTER_OPTION_CONTRACT_SOURCE,Do as TOOL_CALENDAR_OPTION_CONTRACTS,ho as TOOL_CLOSE_MANY_FILTER_OPTION_CONTRACTS,_o as TOOL_CONTEXT_OPTION_CONTRACTS,xo as TOOL_CREATE_OPTION_CONTRACTS,uo as TOOL_CREATE_OPTION_CONTRACT_SOURCE,To as TOOL_DEPS_OPTION_CONTRACTS,ko as TOOL_GRAPH_OPTION_CONTRACTS,lo as TOOL_LIST_FILTER_OPTION_CONTRACTS,io as TOOL_SEARCH_FILTER_OPTION_CONTRACTS,mo as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACTS,bo as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACT_SOURCE,wo as TOOL_UPDATE_MANY_FILTER_OPTION_CONTRACTS,go as TOOL_UPDATE_OPTION_CONTRACTS,yo as TOOL_UPDATE_OPTION_CONTRACT_SOURCE,Zo as UPDATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,er as UPDATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,$o as UPDATE_COMMANDER_STRING_OPTION_CONTRACTS,Ee as UPDATE_FLAG_CONTRACTS,je as UPDATE_MANY_FLAG_CONTRACTS,Z as UPGRADE_FLAG_CONTRACTS,De as VALIDATE_FLAG_CONTRACTS,Ke as WORKSPACE_FLAG_CONTRACTS,Uo as _testOnlyCliContracts,ro as analyzePmToolActionParity,or as analyzeSdkCliParameterCompleteness,xr as applyContextIntentProjection,Co as applyReadOutputDimensions,cr as attachContextIntentReceipt,vr as attachOutputTokenAccounting,wr as attachReadOutputContracts,No as buildPmActionToolInputSchema,m as compactFlagAliasContracts,mr as composeContextIntentContracts,gr as contextIntentRowId,dr as createPmCommandOutputBudget,yr as decodeContextIntentCursor,nr as definePmCommandOutputBudget,jr as definePmCommandOutputEnvelope,Dr as definePmErrorCodeCatalog,Tr as enrichCliFlagInvocationContract,kr as enrichCliFlagInvocationContracts,lr as estimatePmOutputTokens,ir as getActiveContextIntentContracts,Pe as hasSubcommandFlagContractsForCommand,tr as inferPmOutputBudgetClass,to as isPmExtensionCapabilityContract,po as isPmExtensionPolicyModeContract,so as isPmExtensionPolicySurfaceContract,no as isPmExtensionServiceNameContract,Ar as isPmMutationReceipt,fo as isPmToolAction,Fo as isReadOutputBudgetExceeded,Br as parseMutationReceipt,l as readFirstStringFromCommanderOptions,a as readFirstValueFromCommanderOptions,i as readStringArrayFromCommanderOptions,ur as resolveContextIntentContract,sr as resolvePmCommandOutputBudget,zr as resolvePmCommandOutputEnvelope,Ir as resolvePmErrorCodeContract,Jo as resolvePmToolCustomFieldCollision,Bo as resolveReadOutputDimensions,Go as resolveReadOutputEncoding,zo as resolveReadOutputSurface,Qe as resolveSubcommandFlagContractsForCommand,br as runWithContextIntentContracts,Re as toCompletionFlagString,Ao as validateReadOutputOptions,b as withFlagAliasMetadata};
1
+ import{a as Ir,b as _r,c as Tr,d as kr,e as vr,f as Er,g as qr,h as zr,i as Ar,j as Br,k as Cr,l as Fr}from"./focused-chunks/chunk-JLG2C4EQ.js";import{a as Xo,b as Yo,c as Zo,d as $o,e as er,f as or,g as rr,h as fr}from"./focused-chunks/chunk-4VJQTS3P.js";import{A as Ko,B as Lo,C as Mo,D as No,E as Oo,G as Po,H as Qo,I as Ro,J as So,K as Uo,L as Vo,M as Wo,a as f,b as t,c as n,d,e as p,f as s,g as l,h as b,i,j as bo,k as io,l as ao,m as mo,n as uo,o as xo,p as yo,q as go,r as co,s as wo,t as ho,u as Do,v as Io,w as _o,x as To,y as ko,z as vo}from"./focused-chunks/chunk-73JUDYXT.js";import{$ as be,A as J,Aa as Je,B as K,Ba as Ke,C as L,Ca as Le,D as M,Da as Me,E as N,Ea as Ne,F as O,Fa as Oe,G as P,Ga as Pe,H as Q,I as R,Ia as Qe,J as S,Ja as Re,K as U,Ka as Se,L as V,M as W,N as X,O as Y,P as Z,Q as $,R as ee,S as oe,T as re,U as fe,V as te,W as ne,X as de,Y as pe,Z as se,_ as le,aa as ie,b as a,ba as ae,c as m,ca as me,d as u,da as ue,e as x,ea as xe,f as y,fa as ye,g,ga as ge,h as c,ha as ce,i as w,ia as we,j as h,ja as he,k as D,ka as De,l as I,la as Ie,m as _,ma as _e,n as T,na as Te,o as k,oa as ke,p as v,pa as ve,q as E,qa as Ee,r as j,ra as je,s as q,sa as qe,t as z,ta as ze,u as A,ua as Ae,v as B,va as Be,w as C,wa as Ce,x as F,xa as Fe,y as G,ya as Ge,z as H,za as He}from"./focused-chunks/chunk-DLTS3IHM.js";import{A as wr,B as hr,C as Dr,D as jr,a as tr,b as nr,c as dr,d as pr,e as sr,f as lr,g as br,h as ir,t as ar,u as mr,v as ur,w as xr,x as yr,y as gr,z as cr}from"./focused-chunks/chunk-R2LEMEV5.js";import{Aa as Eo,Ba as jo,Ca as qo,Da as zo,Ea as Ao,Fa as Bo,Ga as Co,Ha as Fo,Ia as Go,Ja as Ho,Ka as Jo,ea as Ue,fa as Ve,ga as We,ha as Xe,ia as Ye,ja as Ze,ka as $e,ma as eo,na as oo,oa as ro,pa as fo,qa as to,ra as no,sa as po,ta as so,ua as lo}from"./focused-chunks/chunk-ZJIMJHDB.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]="8c442738-13e6-5bf5-b60d-1439c3255f1a")}catch{}})();export{s as ACTIVITY_COMMANDER_STRING_OPTION_CONTRACTS,Ae as ACTIVITY_FLAG_CONTRACTS,g as AGGREGATE_FLAG_CONTRACTS,fe as APPEND_FLAG_CONTRACTS,n as CALENDAR_COMMANDER_STRING_OPTION_CONTRACTS,ze as CALENDAR_FLAG_CONTRACTS,te as CLAIM_FLAG_CONTRACTS,No as CLOSE_ACTION_OPTION_KEYS,oe as CLOSE_FLAG_CONTRACTS,re as CLOSE_MANY_FLAG_CONTRACTS,be as CLOSE_TASK_FLAG_CONTRACTS,c as COMMENTS_FLAG_CONTRACTS,Pe as COMPLETION_FLAG_CONTRACTS,C as CONFIG_FLAG_CONTRACTS,d as CONTEXT_COMMANDER_STRING_OPTION_CONTRACTS,Ce as CONTEXT_FLAG_CONTRACTS,Oe as CONTRACTS_FLAG_CONTRACTS,ve as COPY_FLAG_CONTRACTS,Yo as CREATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,$o as CREATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,Zo as CREATE_COMMANDER_STRING_OPTION_CONTRACTS,_e as CREATE_FLAG_CONTRACTS,de as DELETE_FLAG_CONTRACTS,He as DEPS_FLAG_CONTRACTS,I as DOCS_FLAG_CONTRACTS,he as DUPLICATES_FLAG_CONTRACTS,Ke as EVAL_FLAG_CONTRACTS,Be as EVENTS_FLAG_CONTRACTS,ae as EVENT_FLAG_CONTRACTS,Xo as EXECUTABLE_COMMAND_ALIASES,Q as EXTENSION_ACTIVATE_FLAG_CONTRACTS,P as EXTENSION_ADOPT_ALL_FLAG_CONTRACTS,Y as EXTENSION_ADOPT_FLAG_CONTRACTS,X as EXTENSION_CATALOG_FLAG_CONTRACTS,R as EXTENSION_DEACTIVATE_FLAG_CONTRACTS,O as EXTENSION_DESCRIBE_FLAG_CONTRACTS,W as EXTENSION_DOCTOR_FLAG_CONTRACTS,N as EXTENSION_EXPLORE_FLAG_CONTRACTS,F as EXTENSION_FLAG_CONTRACTS,H as EXTENSION_INIT_FLAG_CONTRACTS,L as EXTENSION_INSTALL_FLAG_CONTRACTS,U as EXTENSION_MANAGE_FLAG_CONTRACTS,S as EXTENSION_MIGRATE_FLAG_CONTRACTS,V as EXTENSION_RELOAD_FLAG_CONTRACTS,G as EXTENSION_SCOPE_FLAG_CONTRACTS,M as EXTENSION_UNINSTALL_FLAG_CONTRACTS,D as FILES_FLAG_CONTRACTS,Ee as FOCUS_FLAG_CONTRACTS,ce as GC_FLAG_CONTRACTS,Fe as GET_FLAG_CONTRACTS,x as GLOBAL_FLAG_CONTRACTS,Je as GRAPH_FLAG_CONTRACTS,Ge as GUIDE_FLAG_CONTRACTS,De as HEALTH_FLAG_CONTRACTS,E as HISTORY_AUTHOR_ACKNOWLEDGE_FLAG_CONTRACTS,j as HISTORY_COMPACT_FLAG_CONTRACTS,_ as HISTORY_FLAG_CONTRACTS,k as HISTORY_REDACT_FLAG_CONTRACTS,v as HISTORY_REPAIR_FLAG_CONTRACTS,B as INIT_FLAG_CONTRACTS,Z as INSTALL_FLAG_CONTRACTS,ke as ITEM_COMPLETE_FLAG_CONTRACTS,Te as ITEM_MUTATE_FLAG_CONTRACTS,h as LEARNINGS_FLAG_CONTRACTS,f as LIST_COMMANDER_STRING_OPTION_CONTRACTS,y as LIST_FILTER_FLAG_CONTRACTS,ie as MEET_FLAG_CONTRACTS,T as MERGE_FLAG_CONTRACTS,p as NEXT_COMMANDER_STRING_OPTION_CONTRACTS,Me as NEXT_FLAG_CONTRACTS,w as NOTES_FLAG_CONTRACTS,J as PACKAGE_FLAG_CONTRACTS,K as PACKAGE_INIT_FLAG_CONTRACTS,le as PAUSE_TASK_FLAG_CONTRACTS,Mo as PLAN_CREATE_METADATA_PARAMETER_KEYS,A as PLAN_FLAG_CONTRACTS,oo as PM_CLI_ONLY_TOOL_ACTION_WAIVERS,lr as PM_COMMAND_OUTPUT_BUDGET_CONTRACTS,Ar as PM_COMMAND_OUTPUT_ENVELOPE_CONTRACTS,ar as PM_CONTEXT_INTENT_CONTRACTS,$e as PM_CORE_COMMAND_NAMES,kr as PM_ERROR_CODE_CATALOG,Ir as PM_ERROR_CODE_EXIT_CLASS_CONTRACTS,Ue as PM_EXTENSION_CAPABILITY_CONTRACTS,eo as PM_EXTENSION_PACKAGE_ACTION_SUBCOMMANDS,We as PM_EXTENSION_POLICY_MODE_CONTRACTS,Ze as PM_EXTENSION_POLICY_SURFACE_CONTRACTS,Ye as PM_EXTENSION_SANDBOX_PROFILE_CONTRACTS,Ve as PM_EXTENSION_SERVICE_NAME_CONTRACTS,Xe as PM_EXTENSION_TRUST_MODE_CONTRACTS,nr as PM_OUTPUT_BUDGET_CLASSES,tr as PM_OUTPUT_DEGRADATION_STEPS,qr as PM_OUTPUT_ENVELOPE_KINDS,Vo as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA,So as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA_VERSION,zo as PM_READ_OUTPUT_COMPOSITION_OPTION_FLAGS,Eo as PM_READ_OUTPUT_DIMENSIONS,qo as PM_READ_OUTPUT_OPTION_FLAGS,jo as PM_READ_OUTPUT_SURFACES,Ao as PM_READ_OUTPUT_SURFACE_CONTRACTS,ro as PM_TOOL_ACTIONS,Oo as PM_TOOL_ACTION_PARAMETER_CONTRACTS,Uo as PM_TOOL_PARAMETERS_SCHEMA,Ro as PM_TOOL_PARAMETERS_SCHEMA_MAJOR,Qo as PM_TOOL_PARAMETERS_SCHEMA_VERSION,Ko as PM_TOOL_RESERVED_CUSTOM_FIELD_PROPERTIES,z as PROFILE_FLAG_CONTRACTS,ee as REINDEX_FLAG_CONTRACTS,pe as RELEASE_FLAG_CONTRACTS,me as REMIND_FLAG_CONTRACTS,ne as RESTORE_FLAG_CONTRACTS,q as SCHEMA_FLAG_CONTRACTS,t as SEARCH_COMMANDER_STRING_OPTION_CONTRACTS,Ne as SEARCH_FLAG_CONTRACTS,se as START_TASK_FLAG_CONTRACTS,we as STATS_FLAG_CONTRACTS,u as SUBCOMMAND_GLOBAL_FLAG_CONTRACTS,ye as TELEMETRY_FLAG_CONTRACTS,xe as TEST_ALL_FLAG_CONTRACTS,ue as TEST_FLAG_CONTRACTS,ge as TEST_RUNS_FLAG_CONTRACTS,_o as TOOL_ACTIVITY_OPTION_CONTRACTS,io as TOOL_AGGREGATE_OPTION_CONTRACTS,wo as TOOL_BULK_MUTATION_FILTER_OPTION_CONTRACT_SOURCE,Io as TOOL_CALENDAR_OPTION_CONTRACTS,Do as TOOL_CLOSE_MANY_FILTER_OPTION_CONTRACTS,To as TOOL_CONTEXT_OPTION_CONTRACTS,yo as TOOL_CREATE_OPTION_CONTRACTS,xo as TOOL_CREATE_OPTION_CONTRACT_SOURCE,ko as TOOL_DEPS_OPTION_CONTRACTS,vo as TOOL_GRAPH_OPTION_CONTRACTS,bo as TOOL_LIST_FILTER_OPTION_CONTRACTS,ao as TOOL_SEARCH_FILTER_OPTION_CONTRACTS,uo as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACTS,mo as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACT_SOURCE,ho as TOOL_UPDATE_MANY_FILTER_OPTION_CONTRACTS,co as TOOL_UPDATE_OPTION_CONTRACTS,go as TOOL_UPDATE_OPTION_CONTRACT_SOURCE,er as UPDATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,rr as UPDATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,or as UPDATE_COMMANDER_STRING_OPTION_CONTRACTS,je as UPDATE_FLAG_CONTRACTS,qe as UPDATE_MANY_FLAG_CONTRACTS,$ as UPGRADE_FLAG_CONTRACTS,Ie as VALIDATE_FLAG_CONTRACTS,Le as WORKSPACE_FLAG_CONTRACTS,Wo as _testOnlyCliContracts,fo as analyzePmToolActionParity,fr as analyzeSdkCliParameterCompleteness,gr as applyContextIntentProjection,Go as applyReadOutputDimensions,hr as attachContextIntentReceipt,jr as attachOutputTokenAccounting,Dr as attachReadOutputContracts,Po as buildPmActionToolInputSchema,m as compactFlagAliasContracts,xr as composeContextIntentContracts,wr as contextIntentRowId,pr as createPmCommandOutputBudget,cr as decodeContextIntentCursor,sr as definePmCommandOutputBudget,zr as definePmCommandOutputEnvelope,_r as definePmErrorCodeCatalog,vr as enrichCliFlagInvocationContract,Er as enrichCliFlagInvocationContracts,ir as estimatePmOutputTokens,mr as getActiveContextIntentContracts,Qe as hasSubcommandFlagContractsForCommand,dr as inferPmOutputBudgetClass,no as isPmExtensionCapabilityContract,so as isPmExtensionPolicyModeContract,lo as isPmExtensionPolicySurfaceContract,po as isPmExtensionServiceNameContract,Cr as isPmMutationReceipt,to as isPmToolAction,Ho as isReadOutputBudgetExceeded,Fr as parseMutationReceipt,l as readFirstStringFromCommanderOptions,b as readFirstValueFromCommanderOptions,i as readStringArrayFromCommanderOptions,yr as resolveContextIntentContract,br as resolvePmCommandOutputBudget,Br as resolvePmCommandOutputEnvelope,Tr as resolvePmErrorCodeContract,Lo as resolvePmToolCustomFieldCollision,Fo as resolveReadOutputDimensions,Jo as resolveReadOutputEncoding,Bo as resolveReadOutputSurface,Re as resolveSubcommandFlagContractsForCommand,ur as runWithContextIntentContracts,Se as toCompletionFlagString,Co as validateReadOutputOptions,a as withFlagAliasMetadata};
2
2
  //# sourceMappingURL=sdk-contracts.js.map