@unbrained/pm-cli 2026.8.6 → 2026.8.8

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 (269) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/CHANGELOG.md +65 -0
  3. package/dist/cli/main.js +6 -3
  4. package/dist/cli/register-annotations.d.ts +11 -0
  5. package/dist/cli/register-annotations.js +195 -0
  6. package/dist/cli/register-history-author.js +7 -30
  7. package/dist/cli/register-mutation.js +25 -206
  8. package/dist/cli/register-operations.js +11 -2
  9. package/dist/cli/runtime-compatibility-boundary.d.ts +17 -0
  10. package/dist/cli/runtime-compatibility-boundary.js +43 -0
  11. package/dist/cli/stats-analytics-json.d.ts +9 -0
  12. package/dist/cli/stats-analytics-json.js +69 -0
  13. package/dist/cli-bundle/bundle-manifest.json +156 -692
  14. package/dist/cli-bundle/chunks/chunk-2ZMXX3Q6.js +2068 -0
  15. package/dist/cli-bundle/chunks/chunk-ALDHXLPS.js +3 -0
  16. package/dist/cli-bundle/chunks/chunk-CBLA33YK.js +8 -0
  17. package/dist/cli-bundle/chunks/chunk-GKA54IJM.js +5 -0
  18. package/dist/cli-bundle/chunks/chunk-KRY7SRUO.js +2 -0
  19. package/dist/cli-bundle/chunks/chunk-MNJ4NNSY.js +26 -0
  20. package/dist/cli-bundle/chunks/chunk-NUXRRNAB.js +77 -0
  21. package/dist/cli-bundle/chunks/chunk-OJPCFDDY.js +13 -0
  22. package/dist/cli-bundle/chunks/chunk-PFSD3DAN.js +194 -0
  23. package/dist/cli-bundle/chunks/chunk-QWRRFYK3.js +2 -0
  24. package/dist/cli-bundle/chunks/chunk-SQ7QZFQ6.js +2 -0
  25. package/dist/cli-bundle/chunks/{register-list-query-QH7ONPKU.js → register-list-query-WFZAMJHZ.js} +8 -8
  26. package/dist/cli-bundle/chunks/register-mutation-SOKKOTHQ.js +20 -0
  27. package/dist/cli-bundle/chunks/register-operations-5XQETS6E.js +2 -0
  28. package/dist/cli-bundle/chunks/register-setup-2HL5ZHMK.js +2 -0
  29. package/dist/cli-bundle/focused-chunks/chunk-54EU2UVO.js +2 -0
  30. package/dist/cli-bundle/focused-chunks/{chunk-N7QN3NE6.js → chunk-5FLBTZJQ.js} +2 -2
  31. package/dist/cli-bundle/focused-chunks/chunk-5GJ57YKN.js +2 -0
  32. package/dist/cli-bundle/focused-chunks/{chunk-YLPZHWX7.js → chunk-ANTMGYLI.js} +2 -2
  33. package/dist/cli-bundle/focused-chunks/chunk-CMDS3KYT.js +14 -0
  34. package/dist/cli-bundle/focused-chunks/{chunk-EYO4F74Z.js → chunk-DMKOMTTY.js} +2 -2
  35. package/dist/cli-bundle/focused-chunks/{chunk-GSW2Y7VZ.js → chunk-F5B3HBEZ.js} +2 -2
  36. package/dist/cli-bundle/focused-chunks/{chunk-27DK4A5O.js → chunk-FI6DWU2M.js} +2 -2
  37. package/dist/cli-bundle/focused-chunks/{chunk-CL3NB7VW.js → chunk-FNOKJG6N.js} +2 -2
  38. package/dist/cli-bundle/focused-chunks/{chunk-EAXXF2HW.js → chunk-FPDYXZBK.js} +2 -2
  39. package/dist/cli-bundle/focused-chunks/{chunk-XNVXIQ4B.js → chunk-GWI6YIKJ.js} +2 -2
  40. package/dist/cli-bundle/focused-chunks/{chunk-6KDHXURF.js → chunk-HCUC62AB.js} +2 -2
  41. package/dist/cli-bundle/focused-chunks/{chunk-GEYU23YS.js → chunk-HGNKPSCB.js} +22 -22
  42. package/dist/cli-bundle/focused-chunks/chunk-IAS7PMLG.js +2 -0
  43. package/dist/cli-bundle/focused-chunks/{chunk-TQMFQYXR.js → chunk-PL2EYDJK.js} +29 -29
  44. package/dist/cli-bundle/focused-chunks/chunk-SM2PJGP3.js +2 -0
  45. package/dist/cli-bundle/focused-chunks/{chunk-4JC3AOGS.js → chunk-TCSAPH33.js} +2 -2
  46. package/dist/cli-bundle/focused-chunks/chunk-U646T7Z6.js +18 -0
  47. package/dist/cli-bundle/focused-chunks/chunk-YKPE4PPY.js +2 -0
  48. package/dist/cli-bundle/focused-chunks/{chunk-GIERI4YU.js → chunk-YSAHYUXX.js} +2 -2
  49. package/dist/cli-bundle/focused-chunks/chunk-ZOLDTUU7.js +2 -0
  50. package/dist/cli-bundle/main.js +13 -13
  51. package/dist/cli-bundle/sdk-authoring.js +1 -1
  52. package/dist/cli-bundle/sdk-contracts.js +1 -1
  53. package/dist/cli-bundle/sdk-core.js +38 -37
  54. package/dist/cli-bundle/sdk-governance.js +1 -1
  55. package/dist/cli-bundle/sdk-graph.js +1 -1
  56. package/dist/cli-bundle/sdk-merge.js +1 -1
  57. package/dist/cli-bundle/sdk-query.js +1 -1
  58. package/dist/cli-bundle/sdk-runtime.js +1 -1
  59. package/dist/cli-bundle/sdk-testing.js +1 -1
  60. package/dist/cli-bundle/sdk.js +2 -1
  61. package/dist/cli.js +14 -4
  62. package/dist/core/extensions/reserved-host-flags.js +3 -2
  63. package/dist/core/history/workspace-history.d.ts +22 -2
  64. package/dist/core/history/workspace-history.js +60 -36
  65. package/dist/core/output/output.d.ts +2 -0
  66. package/dist/core/output/output.js +10 -2
  67. package/dist/core/sentry/helpers.d.ts +10 -0
  68. package/dist/core/sentry/helpers.js +59 -4
  69. package/dist/core/shared/command-types.d.ts +2 -0
  70. package/dist/core/shared/command-types.js +2 -2
  71. package/dist/core/shared/constants.d.ts +2 -0
  72. package/dist/core/shared/constants.js +4 -2
  73. package/dist/mcp/tool-definitions.js +6 -2
  74. package/dist/sdk/annotations.d.ts +40 -0
  75. package/dist/sdk/annotations.js +61 -9
  76. package/dist/sdk/author-attribution.d.ts +12 -0
  77. package/dist/sdk/author-attribution.js +87 -9
  78. package/dist/sdk/cli-bootstrap.d.ts +2 -0
  79. package/dist/sdk/cli-bootstrap.js +7 -2
  80. package/dist/sdk/cli-contracts/command-exit-contracts.d.ts +118 -0
  81. package/dist/sdk/cli-contracts/command-exit-contracts.js +152 -0
  82. package/dist/sdk/cli-contracts/completeness.js +54 -5
  83. package/dist/sdk/cli-contracts/flag-contracts.js +6 -2
  84. package/dist/sdk/cli-contracts/registration-helpers.js +3 -2
  85. package/dist/sdk/cli-contracts/runtime-contracts.d.ts +11 -0
  86. package/dist/sdk/cli-contracts/runtime-contracts.js +41 -8
  87. package/dist/sdk/cli-contracts/tool-parameter-tables.js +129 -10
  88. package/dist/sdk/cli-contracts/tool-schema.d.ts +1 -1
  89. package/dist/sdk/cli-contracts/tool-schema.js +22 -3
  90. package/dist/sdk/cli-program.js +3 -2
  91. package/dist/sdk/comments.d.ts +7 -0
  92. package/dist/sdk/comments.js +2 -2
  93. package/dist/sdk/completion.js +12 -5
  94. package/dist/sdk/contracts.d.ts +2 -0
  95. package/dist/sdk/contracts.js +3 -2
  96. package/dist/sdk/core.d.ts +3 -1
  97. package/dist/sdk/core.js +4 -3
  98. package/dist/sdk/environment/host-environment-errors.d.ts +27 -0
  99. package/dist/sdk/environment/host-environment-errors.js +124 -0
  100. package/dist/sdk/environment/project-runtime-compatibility.d.ts +65 -0
  101. package/dist/sdk/environment/project-runtime-compatibility.js +385 -0
  102. package/dist/sdk/environment/source-context.d.ts +23 -0
  103. package/dist/sdk/environment/source-context.js +29 -0
  104. package/dist/sdk/error-code-catalog.d.ts +6 -0
  105. package/dist/sdk/error-code-catalog.js +62 -8
  106. package/dist/sdk/extension.js +9 -11
  107. package/dist/sdk/generated-error-code-catalog.js +739 -3
  108. package/dist/sdk/governance/health.d.ts +11 -3
  109. package/dist/sdk/governance/health.js +5 -5
  110. package/dist/sdk/history-analytics.d.ts +141 -0
  111. package/dist/sdk/history-analytics.js +283 -0
  112. package/dist/sdk/improvement-ledger-validation.d.ts +3 -0
  113. package/dist/sdk/improvement-ledger-validation.js +63 -0
  114. package/dist/sdk/improvement-ledger.d.ts +139 -0
  115. package/dist/sdk/improvement-ledger.js +261 -0
  116. package/dist/sdk/index.d.ts +13 -5
  117. package/dist/sdk/index.js +15 -7
  118. package/dist/sdk/learnings.d.ts +15 -0
  119. package/dist/sdk/learnings.js +2 -2
  120. package/dist/sdk/lifecycle/close-many.d.ts +6 -1
  121. package/dist/sdk/lifecycle/close-many.js +43 -5
  122. package/dist/sdk/lifecycle/plan.js +6 -3
  123. package/dist/sdk/lifecycle/update-many.d.ts +2 -1
  124. package/dist/sdk/lifecycle/update-many.js +29 -5
  125. package/dist/sdk/merge/index.d.ts +1 -1
  126. package/dist/sdk/merge/index.js +3 -3
  127. package/dist/sdk/merge/install.d.ts +21 -0
  128. package/dist/sdk/merge/install.js +58 -20
  129. package/dist/sdk/notes.d.ts +7 -0
  130. package/dist/sdk/notes.js +2 -2
  131. package/dist/sdk/read-output-budget.js +24 -22
  132. package/dist/sdk/read-output-contracts.d.ts +10 -2
  133. package/dist/sdk/read-output-contracts.js +204 -66
  134. package/dist/sdk/read-output-rows.d.ts +29 -0
  135. package/dist/sdk/read-output-rows.js +100 -0
  136. package/dist/sdk/read-output-session.d.ts +69 -0
  137. package/dist/sdk/read-output-session.js +200 -0
  138. package/dist/sdk/runtime-input.d.ts +2 -0
  139. package/dist/sdk/runtime-input.js +14 -2
  140. package/dist/sdk/runtime-primitives.d.ts +1 -1
  141. package/dist/sdk/runtime-primitives.js +3 -3
  142. package/dist/sdk/runtime-stats-options.d.ts +9 -0
  143. package/dist/sdk/runtime-stats-options.js +38 -0
  144. package/dist/sdk/runtime.d.ts +1 -0
  145. package/dist/sdk/runtime.js +13 -50
  146. package/dist/sdk/stats.d.ts +40 -0
  147. package/dist/sdk/stats.js +112 -29
  148. package/dist/sdk/test/execution.js +4 -2
  149. package/dist/sdk/test/parsers.js +5 -2
  150. package/dist/sdk/workspace-snapshot.d.ts +9 -0
  151. package/dist/sdk/workspace-snapshot.js +48 -16
  152. package/docs/AGENT_RUNTIME_PRIMITIVES.md +11 -4
  153. package/docs/IMPROVEMENT_ANALYTICS.md +103 -0
  154. package/docs/OUTPUT_PROJECTION_CONTRACTS.md +5 -5
  155. package/docs/README.md +2 -0
  156. package/docs/READ_OUTPUT_CONTRACTS.md +60 -1
  157. package/docs/RELEASING.md +27 -2
  158. package/docs/SCRIPTING.md +27 -1
  159. package/docs/SDK_CONTEXT_INTEGRITY.md +66 -0
  160. package/docs/SDK_RUNTIME_BOUNDARIES.md +58 -0
  161. package/docs/SELF_DESCRIBING_CONTEXT_CONTRACTS.md +13 -0
  162. package/docs/TESTING.md +17 -0
  163. package/marketplace.json +2 -2
  164. package/package.json +6 -4
  165. package/packages/pm-beads/package.json +1 -1
  166. package/packages/pm-calendar/package.json +1 -1
  167. package/packages/pm-command-kit/package.json +1 -1
  168. package/packages/pm-digital-twin/package.json +1 -1
  169. package/packages/pm-governance-audit/package.json +1 -1
  170. package/packages/pm-guide-shell/package.json +1 -1
  171. package/packages/pm-kanban/package.json +1 -1
  172. package/packages/pm-lifecycle-hooks/package.json +1 -1
  173. package/packages/pm-linked-test-adapters/package.json +1 -1
  174. package/packages/pm-search-advanced/package.json +1 -1
  175. package/packages/pm-templates/package.json +1 -1
  176. package/packages/pm-todos/package.json +1 -1
  177. package/packages/pm-vcs/package.json +1 -1
  178. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
  179. package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
  180. package/sdk/public-surface.json +875 -827
  181. package/dist/cli-bundle/chunks/append-XAJ5Z4XS.js +0 -2
  182. package/dist/cli-bundle/chunks/chunk-343QETLI.js +0 -2
  183. package/dist/cli-bundle/chunks/chunk-3KFVGGRE.js +0 -2
  184. package/dist/cli-bundle/chunks/chunk-3ZJRFYY2.js +0 -23
  185. package/dist/cli-bundle/chunks/chunk-4AVFKHHC.js +0 -2
  186. package/dist/cli-bundle/chunks/chunk-4OVGQW22.js +0 -2
  187. package/dist/cli-bundle/chunks/chunk-5PBP2ZP3.js +0 -2
  188. package/dist/cli-bundle/chunks/chunk-5ZKQPA44.js +0 -2
  189. package/dist/cli-bundle/chunks/chunk-A3XQ7VPU.js +0 -2
  190. package/dist/cli-bundle/chunks/chunk-A6KGKEWT.js +0 -2
  191. package/dist/cli-bundle/chunks/chunk-AJE3AHPD.js +0 -8
  192. package/dist/cli-bundle/chunks/chunk-AOBDLU4T.js +0 -2
  193. package/dist/cli-bundle/chunks/chunk-AYRUGRNS.js +0 -3
  194. package/dist/cli-bundle/chunks/chunk-BP6EMEDP.js +0 -5
  195. package/dist/cli-bundle/chunks/chunk-BXCSXK4J.js +0 -2
  196. package/dist/cli-bundle/chunks/chunk-C3YABSJK.js +0 -2
  197. package/dist/cli-bundle/chunks/chunk-CA3BURYF.js +0 -2
  198. package/dist/cli-bundle/chunks/chunk-CHOQ2VAW.js +0 -2
  199. package/dist/cli-bundle/chunks/chunk-D7I3TUGV.js +0 -2
  200. package/dist/cli-bundle/chunks/chunk-DQGJ2RWT.js +0 -3
  201. package/dist/cli-bundle/chunks/chunk-DWOAOZHZ.js +0 -2
  202. package/dist/cli-bundle/chunks/chunk-E2ZSLTOP.js +0 -2
  203. package/dist/cli-bundle/chunks/chunk-E7BFPLUZ.js +0 -5
  204. package/dist/cli-bundle/chunks/chunk-F4NREH3G.js +0 -2
  205. package/dist/cli-bundle/chunks/chunk-FB7G2HY2.js +0 -2
  206. package/dist/cli-bundle/chunks/chunk-FDBRXV25.js +0 -2
  207. package/dist/cli-bundle/chunks/chunk-GU3TSEHD.js +0 -2
  208. package/dist/cli-bundle/chunks/chunk-HS7OVAUN.js +0 -164
  209. package/dist/cli-bundle/chunks/chunk-JC6FKIFM.js +0 -2
  210. package/dist/cli-bundle/chunks/chunk-JFZIS6JF.js +0 -2
  211. package/dist/cli-bundle/chunks/chunk-JQ4NZ5EB.js +0 -2
  212. package/dist/cli-bundle/chunks/chunk-L6LGKJX3.js +0 -2
  213. package/dist/cli-bundle/chunks/chunk-LEPJJ6QC.js +0 -2
  214. package/dist/cli-bundle/chunks/chunk-M357ZCOR.js +0 -2
  215. package/dist/cli-bundle/chunks/chunk-M4VEE3FK.js +0 -2
  216. package/dist/cli-bundle/chunks/chunk-MCS73BKB.js +0 -3
  217. package/dist/cli-bundle/chunks/chunk-MDTH7SAE.js +0 -19
  218. package/dist/cli-bundle/chunks/chunk-NE5VRDAI.js +0 -2
  219. package/dist/cli-bundle/chunks/chunk-OXY3SJ3N.js +0 -2
  220. package/dist/cli-bundle/chunks/chunk-PECV7L5T.js +0 -2
  221. package/dist/cli-bundle/chunks/chunk-Q3VOP62W.js +0 -2
  222. package/dist/cli-bundle/chunks/chunk-QJ7C3JIW.js +0 -2
  223. package/dist/cli-bundle/chunks/chunk-R6LSRGPS.js +0 -8
  224. package/dist/cli-bundle/chunks/chunk-R6RKEYYW.js +0 -2
  225. package/dist/cli-bundle/chunks/chunk-RAFUN7IX.js +0 -2005
  226. package/dist/cli-bundle/chunks/chunk-RSIC5OPE.js +0 -2
  227. package/dist/cli-bundle/chunks/chunk-RUAU5OSH.js +0 -2
  228. package/dist/cli-bundle/chunks/chunk-SD3YXU2U.js +0 -56
  229. package/dist/cli-bundle/chunks/chunk-SV3YQ4RY.js +0 -2
  230. package/dist/cli-bundle/chunks/chunk-SVV3DQES.js +0 -2
  231. package/dist/cli-bundle/chunks/chunk-SXECIECW.js +0 -5
  232. package/dist/cli-bundle/chunks/chunk-T45OHXDW.js +0 -8
  233. package/dist/cli-bundle/chunks/chunk-TPKDJ5WL.js +0 -2
  234. package/dist/cli-bundle/chunks/chunk-UVVXHGYS.js +0 -3
  235. package/dist/cli-bundle/chunks/chunk-V663653R.js +0 -20
  236. package/dist/cli-bundle/chunks/chunk-WSI5KZQJ.js +0 -55
  237. package/dist/cli-bundle/chunks/chunk-XPOQQJTX.js +0 -13
  238. package/dist/cli-bundle/chunks/chunk-YCCDXBNU.js +0 -2
  239. package/dist/cli-bundle/chunks/chunk-ZFBWCKYF.js +0 -2
  240. package/dist/cli-bundle/chunks/close-DI66JMSB.js +0 -2
  241. package/dist/cli-bundle/chunks/close-many-VFKT6U3O.js +0 -2
  242. package/dist/cli-bundle/chunks/comments-E73HIEZJ.js +0 -2
  243. package/dist/cli-bundle/chunks/copy-WBYVLCPC.js +0 -2
  244. package/dist/cli-bundle/chunks/create-TG67IVFI.js +0 -2
  245. package/dist/cli-bundle/chunks/delete-6XKUVVQN.js +0 -2
  246. package/dist/cli-bundle/chunks/deps-AJUGP2OH.js +0 -2
  247. package/dist/cli-bundle/chunks/docs-QOCLDRKJ.js +0 -2
  248. package/dist/cli-bundle/chunks/files-3ST5TY64.js +0 -2
  249. package/dist/cli-bundle/chunks/focus-R2AWS63Y.js +0 -2
  250. package/dist/cli-bundle/chunks/history-compact-7BJFML4S.js +0 -2
  251. package/dist/cli-bundle/chunks/history-redact-WJN3HYXR.js +0 -2
  252. package/dist/cli-bundle/chunks/history-repair-XDNZUB7F.js +0 -2
  253. package/dist/cli-bundle/chunks/learnings-SZMUPVNA.js +0 -2
  254. package/dist/cli-bundle/chunks/profile-KL53JIAC.js +0 -2
  255. package/dist/cli-bundle/chunks/register-mutation-OCRQNZK4.js +0 -20
  256. package/dist/cli-bundle/chunks/register-operations-HIBJXRGB.js +0 -2
  257. package/dist/cli-bundle/chunks/register-setup-QWBQ6HBS.js +0 -2
  258. package/dist/cli-bundle/chunks/restore-FXA5QPM7.js +0 -2
  259. package/dist/cli-bundle/chunks/schema-QJ27OTRV.js +0 -2
  260. package/dist/cli-bundle/chunks/update-7GBO4SXG.js +0 -2
  261. package/dist/cli-bundle/chunks/update-many-VF6ZKQUO.js +0 -2
  262. package/dist/cli-bundle/focused-chunks/chunk-74CWP3A4.js +0 -2
  263. package/dist/cli-bundle/focused-chunks/chunk-7AZDTGPA.js +0 -2
  264. package/dist/cli-bundle/focused-chunks/chunk-7YTZ7A4E.js +0 -2
  265. package/dist/cli-bundle/focused-chunks/chunk-LKQXXO62.js +0 -2
  266. package/dist/cli-bundle/focused-chunks/chunk-MBBMTDD3.js +0 -12
  267. package/dist/cli-bundle/focused-chunks/chunk-ME4XVOBJ.js +0 -8
  268. package/dist/cli-bundle/focused-chunks/chunk-QL5H3AQH.js +0 -2
  269. package/dist/cli-bundle/focused-chunks/chunk-YHDCGUIW.js +0 -14
@@ -1,2 +1,2 @@
1
- import{s as r,t as T,u as j,v as q,w as f}from"./focused-chunks/chunk-TQMFQYXR.js";import"./focused-chunks/chunk-EYO4F74Z.js";import"./focused-chunks/chunk-QL5H3AQH.js";import"./focused-chunks/chunk-LKQXXO62.js";import{V as A,W as B,X as C,n as k,o as v,p as E,q as R,r as U,y as z}from"./focused-chunks/chunk-YHDCGUIW.js";import"./focused-chunks/chunk-6KDHXURF.js";import{$ as x,X as n,Y as d,Z as p,_ as s,aa as i,ba as l,ca as m,da as u,ea as a,fa as c,ga as g,ha as y,ia as b,qa as w,ra as h,sa as D,ta as I,ua as _}from"./focused-chunks/chunk-MBBMTDD3.js";import"./focused-chunks/chunk-XNVXIQ4B.js";import"./focused-chunks/chunk-7YTZ7A4E.js";import"./focused-chunks/chunk-ME4XVOBJ.js";import"./focused-chunks/chunk-GEYU23YS.js";import"./focused-chunks/chunk-EAXXF2HW.js";import"./focused-chunks/chunk-27DK4A5O.js";import"./focused-chunks/chunk-7AZDTGPA.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]="708c1c46-ce32-56ff-812f-71f825ad7ec4")}catch{}})();export{k as HISTORY_AUTHOR_ATTRIBUTION_BASELINE,n as PM_MUTATION_ACTION_CONTRACTS,q as _testOnlyHealthCommand,h as _testOnlySimilarity,B as _testOnlyValidateCommand,U as acknowledgeUnknownAuthorHistoryEvents,v as classifyHistoryAuthorEvent,p as evaluateMutationGuard,_ as evaluateSimilarityGovernance,I as findDuplicateClusters,D as findSimilarItems,i as getMutationActionContract,E as inspectHistoryAuthorStream,y as inspectStaleInProgressItems,s as isMutationAction,a as jaccardSimilarity,x as listMutationActions,l as normalizeSimilarityText,u as prepareSimilarityText,A as projectValidateCounts,T as runGc,j as runHealth,f as runReindex,r as runUpgrade,C as runValidate,R as scanHistoryAuthorAttribution,d as scanMutationSecrets,b as scanStaleInProgressItems,z as scanStorageIntegrity,c as scoreItemSimilarity,g as scorePreparedItemSimilarity,w as similarityAdvisoryWarnings,m as tokenizeSimilarityText};
1
+ import{s as r,t as T,u as A,v as B,w as f}from"./focused-chunks/chunk-PL2EYDJK.js";import"./focused-chunks/chunk-DMKOMTTY.js";import{K as k,L as v,M as E,N as R,O as U,P as j,Q as q,R as z,Y as C,ta as F,ua as G,va as H}from"./focused-chunks/chunk-CMDS3KYT.js";import"./focused-chunks/chunk-IAS7PMLG.js";import"./focused-chunks/chunk-ZOLDTUU7.js";import"./focused-chunks/chunk-HCUC62AB.js";import{a as w,b as h,c as D,d as I,e as _}from"./focused-chunks/chunk-5GJ57YKN.js";import{ia as n,ja as d,ka as p,la as s,ma as x,na as i,oa as l,pa as m,qa as u,ra as a,sa as c,ta as g,ua as y,va as b}from"./focused-chunks/chunk-U646T7Z6.js";import"./focused-chunks/chunk-GWI6YIKJ.js";import"./focused-chunks/chunk-SM2PJGP3.js";import"./focused-chunks/chunk-HGNKPSCB.js";import"./focused-chunks/chunk-FPDYXZBK.js";import"./focused-chunks/chunk-FI6DWU2M.js";import"./focused-chunks/chunk-54EU2UVO.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]="708c1c46-ce32-56ff-812f-71f825ad7ec4")}catch{}})();export{k as HISTORY_AUTHOR_ATTRIBUTION_BASELINE,n as PM_MUTATION_ACTION_CONTRACTS,B as _testOnlyHealthCommand,h as _testOnlySimilarity,G as _testOnlyValidateCommand,z as acknowledgeUnknownAuthorHistoryEvents,q as acknowledgeUnknownAuthorHistoryEventsFromTransport,v as classifyHistoryAuthorEvent,p as evaluateMutationGuard,_ as evaluateSimilarityGovernance,I as findDuplicateClusters,D as findSimilarItems,i as getMutationActionContract,E as inspectHistoryAuthorStream,y as inspectStaleInProgressItems,s as isMutationAction,a as jaccardSimilarity,x as listMutationActions,l as normalizeSimilarityText,j as parseUnknownAuthorHistoryEventCoordinates,u as prepareSimilarityText,F as projectValidateCounts,U as resolveUnknownAuthorAcknowledgmentSelector,T as runGc,A as runHealth,f as runReindex,r as runUpgrade,H as runValidate,R as scanHistoryAuthorAttribution,d as scanMutationSecrets,b as scanStaleInProgressItems,C as scanStorageIntegrity,c as scoreItemSimilarity,g as scorePreparedItemSimilarity,w as similarityAdvisoryWarnings,m as tokenizeSimilarityText};
2
2
  //# sourceMappingURL=sdk-governance.js.map
@@ -1,2 +1,2 @@
1
- import{B as ne,C as ie,D as se,E as oe,F as ae,G as pe,H as de,I as ce,J as le,K as he,L as fe,M as ge,N as ue,O as me,P as ye,Q as we,R as be,a as Ie,b as De,c as Te,d as Ce,e as $e,f as Oe,g as H,h as B,i as W,j,k as z,l as F,m as U,n as L,o as V,p as K,q,r as J,s as Z,t as Q,u as X,v as Y,w as ee,x as te,y as re,z as He}from"./focused-chunks/chunk-4JC3AOGS.js";import{c as O,d as P,e as N,f as M,g as v,h as k}from"./focused-chunks/chunk-6KDHXURF.js";import{a as Pe,b as Ne,c as Me,d as ve}from"./focused-chunks/chunk-N7QN3NE6.js";import"./focused-chunks/chunk-GEYU23YS.js";import{$ as _,aa as S,ba as Ee,ca as Se,da as f,ea as xe}from"./focused-chunks/chunk-EAXXF2HW.js";import"./focused-chunks/chunk-27DK4A5O.js";import{aa as b,la as $}from"./focused-chunks/chunk-7AZDTGPA.js";import{createHash as Re}from"node:crypto";(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]="4586a8b2-07c8-53d4-9c5d-ca557ee07977")}catch{}})();var A=1;function g(e){e?.throwIfAborted()}function l(e,t){if(typeof e!="string"||e.trim().length===0)throw new TypeError(`Relationship graph ${t} must be non-empty`);return e.trim()}function u(e,t,r={}){let n=Date.parse(r.createdAt??new Date().toISOString());if(!Number.isFinite(n))throw new TypeError("Relationship graph createdAt must be a valid timestamp");let i=e.nodes(),a=e.edges(),s=t.list();return Object.freeze({version:A,fingerprint:Re("sha256").update(b({nodes:i,edges:a,kinds:s})).digest("hex"),created_at:new Date(n).toISOString(),nodes:i,edges:a,kinds:s})}function _e(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function y(e){if(!_e(e))throw new TypeError("Relationship graph snapshot must be an object");if(e.version!==A)throw new TypeError(`Unsupported relationship graph snapshot version: ${String(e.version)}`);if(!Array.isArray(e.nodes)||e.nodes.some(i=>typeof i!="string"))throw new TypeError("Relationship graph snapshot nodes must be strings");if(!Array.isArray(e.edges)||!Array.isArray(e.kinds))throw new TypeError("Relationship graph snapshot edges and kinds must be arrays");if(typeof e.created_at!="string"||!Number.isFinite(Date.parse(e.created_at)))throw new TypeError("Relationship graph snapshot created_at must be valid");if(typeof e.fingerprint!="string")throw new TypeError("Relationship graph snapshot fingerprint must be a string");let t=new _([]);for(let i of e.kinds)t.register(i);let r=new f(e.nodes,e.edges,t),n=u(r,t,{createdAt:e.created_at});if(n.fingerprint!==e.fingerprint)throw new TypeError("Relationship graph snapshot fingerprint mismatch");return{snapshot:n,registry:t,graph:r}}async function c(e,t){l(e.name,"adapter name");let r=l(t.workspace,"workspace");g(t.signal);let n=await e.read({...t,workspace:r});return g(t.signal),n===null?null:y(n)}async function R(e,t){let r=l(t.workspace,"workspace"),n=y(t.snapshot).snapshot,i=await c(e,{workspace:r,signal:t.signal});if(i?.snapshot.fingerprint===n.fingerprint)return{adapter:e.name,workspace:r,disposition:"current",fingerprint:n.fingerprint,previous_fingerprint:i.snapshot.fingerprint,node_count:n.nodes.length,edge_count:n.edges.length};if(g(t.signal),await e.replace({workspace:r,signal:t.signal,snapshot:n,expected_fingerprint:i?.snapshot.fingerprint??null}),(await c(e,{workspace:r,signal:t.signal}))?.snapshot.fingerprint!==n.fingerprint)throw new Error(`Relationship graph adapter "${e.name}" did not expose the replaced snapshot`);return{adapter:e.name,workspace:r,disposition:"written",fingerprint:n.fingerprint,...i?{previous_fingerprint:i.snapshot.fingerprint}:{},node_count:n.nodes.length,edge_count:n.edges.length}}function ke(e,t={}){let r=e.map(y),n=new Map;for(let s of r)for(let o of s.snapshot.kinds){let d=n.get(o.kind);if(d&&b(d)!==b(o))throw new TypeError(`Conflicting federated relationship kind: ${o.kind}`);n.set(o.kind,o)}let i=new _([...n.values()].sort((s,o)=>s.kind.localeCompare(o.kind))),a=new f(new Set(r.flatMap(s=>[...s.snapshot.nodes])),r.flatMap(s=>[...s.snapshot.edges]),i);return u(a,i,t)}var m=class{name;#e=new Map;constructor(t="memory"){this.name=l(t,"adapter name")}async read(t){g(t.signal);let r=this.#e.get(l(t.workspace,"workspace"));return r?structuredClone(r):null}async replace(t){g(t.signal);let r=l(t.workspace,"workspace"),n=this.#e.get(r);if(t.expected_fingerprint!==void 0&&(n?.fingerprint??null)!==t.expected_fingerprint)throw new Error(`Relationship graph adapter conflict for ${r}`);this.#e.set(r,structuredClone(y(t.snapshot).snapshot))}async clear(t){g(t.signal);let r=l(t.workspace,"workspace"),n=this.#e.get(r);if(t.expected_fingerprint!==void 0&&(n?.fingerprint??null)!==t.expected_fingerprint)throw new Error(`Relationship graph adapter conflict for ${r}`);this.#e.delete(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]="423d6e5d-93e5-5f29-93e0-11ddca9c3156")}catch{}})();function x(e,t){if(!Number.isInteger(e)||e<1)throw new TypeError(`Relationship graph ${t} must be a positive integer`);return e}function Ae(e){let t=x(e.nodeCount,"nodeCount"),r=x(e.edgeStride??1,"edgeStride"),n=e.topology??"chain";if(!["chain","star","disconnected"].includes(n))throw new TypeError(`Unsupported relationship graph topology: ${n}`);let i=(e.kind??"related").trim(),a=(e.idPrefix??"node").trim();if(!i||!a)throw new TypeError("Relationship graph kind and idPrefix must be non-empty");let s=n==="disconnected"?0:Math.floor((t-1)/r);return{node_count:t,edge_count:s,edge_basis:"fixture_generated",nodes:{*[Symbol.iterator](){for(let o=0;o<t;o+=1)yield`${a}-${o}`}},edges:{*[Symbol.iterator](){if(n!=="disconnected")for(let o=r;o<t;o+=r)yield{source:`${a}-${n==="star"?0:o-r}`,target:`${a}-${o}`,kind:i}}}}}function h(e,t){if(!e)throw new Error(`Relationship graph adapter conformance: ${t}`)}async function I(e,t={}){let r=t.workspace?.trim()||"pm-graph-conformance",n=S(),i=u(new f(["a","b"],[{source:"a",target:"b",kind:"related"}],n),n,{createdAt:"2026-01-01T00:00:00.000Z"}),a=u(new f(["a","b","c"],[{source:"a",target:"b",kind:"related"},{source:"b",target:"c",kind:"blocked_by"}],n),n,{createdAt:"2026-01-02T00:00:00.000Z"}),s=[];h(await c(e,{workspace:r})===null,"workspace must start empty"),s.push({name:"empty-read",passed:!0});let o=await R(e,{workspace:r,snapshot:i});h(o.disposition==="written","first sync must write"),s.push({name:"atomic-replace",passed:!0}),(await e.read({workspace:r})).nodes.push("mutated-reader-copy"),h((await c(e,{workspace:r}))?.snapshot.nodes.length===2,"reads must not mutate stored state"),s.push({name:"read-isolation",passed:!0}),h((await R(e,{workspace:r,snapshot:i})).disposition==="current","identical sync must be idempotent"),s.push({name:"idempotent-sync",passed:!0}),await e.replace({workspace:r,snapshot:a,expected_fingerprint:i.fingerprint}),h((await c(e,{workspace:r}))?.snapshot.fingerprint===a.fingerprint,"replacement must become visible"),s.push({name:"replacement-visibility",passed:!0});let w=!1;try{await e.replace({workspace:r,snapshot:i,expected_fingerprint:i.fingerprint})}catch{w=!0}return h(w,"stale compare-and-swap must fail"),s.push({name:"stale-cas",passed:!0}),e.clear&&(await e.clear({workspace:r,expected_fingerprint:a.fingerprint}),h(await c(e,{workspace:r})===null,"clear must remove the workspace"),s.push({name:"clear",passed:!0})),{adapter:e.name,workspace:r,cases:Object.freeze(s),clear_supported:e.clear!==void 0}}function Ge(e){return I(new m,e?{workspace:e}:{})}(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]="2c3df51e-6b10-5da6-8340-126465d9c434")}catch{}})();import{createHash as D}from"node:crypto";(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]="54a3448c-719c-5404-a9b9-c3072a2fdce2")}catch{}})();function T(e,t){if(typeof e!="string"||e.trim().length===0)throw new TypeError(`Relationship backfill ${t} must be non-empty`);return e.trim()}function pt(e,t){let r=T(t.migrationId,"migrationId"),n=T(t.author,"author"),i=Date.parse(t.timestamp);if(!Number.isFinite(i))throw new TypeError("Relationship backfill timestamp must be valid");let a=new Date(i).toISOString(),s=k(e,void 0,t.registry),o=s.graph.nodes(),d=s.graph.edges().map(p=>{let E=D("sha256").update(JSON.stringify([r,p.kind,p.source,p.target,p.createdAt??null,p.author??null,p.payload??null])).digest("hex").slice(0,24);return Object.freeze({eventId:`backfill:${r}:${E}`,relationshipId:`migration:${r}:${E}`,action:"add",edge:p,author:n,timestamp:a,reason:`Backfill ${r} from legacy item metadata`})}),w=D("sha256").update(JSON.stringify({migrationId:r,nodes:o,events:d})).digest("hex"),C=new Set([...t.existingEventIds??[]].filter(p=>typeof p=="string").map(p=>p.trim()).filter(Boolean)),G=d.filter(p=>!C.has(p.eventId));return Object.freeze({migration_id:r,fingerprint:w,nodes:o,events:Object.freeze(G),edge_count:d.length,skipped_existing_count:d.length-G.length,duplicate_dependency_rows:s.duplicateRows.length,dangling_reference_count:s.dangling.active.length+s.dangling.legacy_terminal.length})}(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]="b6d6f773-8336-5e0e-8dfb-d5729caa18d9")}catch{}})();export{ae as GRAPH_DURABLE_CACHE_MIN_ITEMS,oe as GRAPH_DURABLE_CACHE_VERSION,$ as GRAPH_SUBCOMMAND_VALUES,m as MemoryRelationshipGraphAdapter,A as RELATIONSHIP_GRAPH_SNAPSHOT_VERSION,Ie as RelationshipEventLog,De as RelationshipEventStore,f as RelationshipGraph,_ as RelationshipKindRegistry,ee as WorkspaceGraphCache,Ce as analyzeGraphImpact,$e as analyzeKnowledgeGraph,Te as analyzeRelationshipExecution,se as analyzeRelationshipSchedule,k as assembleWorkspaceRelationshipGraph,Ge as assertMemoryRelationshipGraphAdapterConformance,Se as assertRelationshipEdgeAllowed,I as assertRelationshipGraphAdapterConformance,Z as auditWorkspaceRelationshipGraph,He as buildRelationshipContext,he as clearDurableGraphCache,Pe as collectBlockedByIds,M as collectDanglingDependencyReferences,Me as collectDependencyBlockedIds,N as collectDuplicateDependencyRows,J as collectDuplicateRelationshipEdgeGroups,v as collectMissingDependencyTargetIds,X as collectNewOrderingCycleWarnings,K as collectOrderingCycles,Oe as compareRelationshipSnapshots,ve as computeActionabilityReport,ne as computeRelationshipCentrality,V as computeRelationshipDominators,Y as computeWorkspaceGraphFingerprint,Ae as createRelationshipGraphScaleFixture,u as createRelationshipGraphSnapshot,S as createRelationshipKindRegistry,xe as dependencyToRelationship,U as detectRelationshipCommunities,Q as diffRelationshipAuditSnapshots,pe as durableGraphCachePath,fe as durableGraphCacheStatus,z as enumerateRelationshipPaths,ke as federateRelationshipGraphSnapshots,L as findRedundantRelationshipEdges,ie as findRelationshipCutStructure,F as forEachMatchedRelationshipEdge,q as formatDuplicateEdgeGroup,de as graphAuditBaselinePath,H as hierarchyAncestors,B as hierarchyDescendants,Ee as isOrderingRelationshipKind,ue as loadGraphAuditBaseline,c as loadRelationshipGraphAdapter,O as normalizeDependencyGraphTarget,ce as openDurableGraphCache,W as orderingPredecessors,j as orderingSuccessors,we as parseGraphSubcommand,y as parseRelationshipGraphSnapshot,le as persistDurableGraphResult,pt as planRelationshipEventBackfill,ye as planRelationshipRemediation,re as resetWorkspaceGraphCache,Ne as resolveItemBlockers,P as resolveWorkspaceRelationshipKindRegistry,be as runGraph,me as saveGraphAuditBaseline,ge as shouldPersistDurableGraphCache,R as syncRelationshipGraphAdapter,te as workspaceGraphCache};
1
+ import{B as ne,C as ie,D as se,E as oe,F as ae,G as pe,H as de,I as ce,J as le,K as he,L as fe,M as ge,N as ue,O as me,P as ye,Q as we,R as be,a as Ie,b as De,c as Te,d as Ce,e as $e,f as Oe,g as H,h as B,i as W,j,k as z,l as F,m as U,n as L,o as V,p as K,q,r as J,s as Z,t as Q,u as X,v as Y,w as ee,x as te,y as re,z as He}from"./focused-chunks/chunk-TCSAPH33.js";import{c as O,d as P,e as N,f as M,g as v,h as k}from"./focused-chunks/chunk-HCUC62AB.js";import{a as Pe,b as Ne,c as Me,d as ve}from"./focused-chunks/chunk-5FLBTZJQ.js";import"./focused-chunks/chunk-HGNKPSCB.js";import{$ as _,aa as S,ba as Ee,ca as Se,da as f,ea as xe}from"./focused-chunks/chunk-FPDYXZBK.js";import"./focused-chunks/chunk-FI6DWU2M.js";import{aa as b,la as $}from"./focused-chunks/chunk-54EU2UVO.js";import{createHash as Re}from"node:crypto";(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]="4586a8b2-07c8-53d4-9c5d-ca557ee07977")}catch{}})();var A=1;function g(e){e?.throwIfAborted()}function l(e,t){if(typeof e!="string"||e.trim().length===0)throw new TypeError(`Relationship graph ${t} must be non-empty`);return e.trim()}function u(e,t,r={}){let n=Date.parse(r.createdAt??new Date().toISOString());if(!Number.isFinite(n))throw new TypeError("Relationship graph createdAt must be a valid timestamp");let i=e.nodes(),a=e.edges(),s=t.list();return Object.freeze({version:A,fingerprint:Re("sha256").update(b({nodes:i,edges:a,kinds:s})).digest("hex"),created_at:new Date(n).toISOString(),nodes:i,edges:a,kinds:s})}function _e(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function y(e){if(!_e(e))throw new TypeError("Relationship graph snapshot must be an object");if(e.version!==A)throw new TypeError(`Unsupported relationship graph snapshot version: ${String(e.version)}`);if(!Array.isArray(e.nodes)||e.nodes.some(i=>typeof i!="string"))throw new TypeError("Relationship graph snapshot nodes must be strings");if(!Array.isArray(e.edges)||!Array.isArray(e.kinds))throw new TypeError("Relationship graph snapshot edges and kinds must be arrays");if(typeof e.created_at!="string"||!Number.isFinite(Date.parse(e.created_at)))throw new TypeError("Relationship graph snapshot created_at must be valid");if(typeof e.fingerprint!="string")throw new TypeError("Relationship graph snapshot fingerprint must be a string");let t=new _([]);for(let i of e.kinds)t.register(i);let r=new f(e.nodes,e.edges,t),n=u(r,t,{createdAt:e.created_at});if(n.fingerprint!==e.fingerprint)throw new TypeError("Relationship graph snapshot fingerprint mismatch");return{snapshot:n,registry:t,graph:r}}async function c(e,t){l(e.name,"adapter name");let r=l(t.workspace,"workspace");g(t.signal);let n=await e.read({...t,workspace:r});return g(t.signal),n===null?null:y(n)}async function R(e,t){let r=l(t.workspace,"workspace"),n=y(t.snapshot).snapshot,i=await c(e,{workspace:r,signal:t.signal});if(i?.snapshot.fingerprint===n.fingerprint)return{adapter:e.name,workspace:r,disposition:"current",fingerprint:n.fingerprint,previous_fingerprint:i.snapshot.fingerprint,node_count:n.nodes.length,edge_count:n.edges.length};if(g(t.signal),await e.replace({workspace:r,signal:t.signal,snapshot:n,expected_fingerprint:i?.snapshot.fingerprint??null}),(await c(e,{workspace:r,signal:t.signal}))?.snapshot.fingerprint!==n.fingerprint)throw new Error(`Relationship graph adapter "${e.name}" did not expose the replaced snapshot`);return{adapter:e.name,workspace:r,disposition:"written",fingerprint:n.fingerprint,...i?{previous_fingerprint:i.snapshot.fingerprint}:{},node_count:n.nodes.length,edge_count:n.edges.length}}function ke(e,t={}){let r=e.map(y),n=new Map;for(let s of r)for(let o of s.snapshot.kinds){let d=n.get(o.kind);if(d&&b(d)!==b(o))throw new TypeError(`Conflicting federated relationship kind: ${o.kind}`);n.set(o.kind,o)}let i=new _([...n.values()].sort((s,o)=>s.kind.localeCompare(o.kind))),a=new f(new Set(r.flatMap(s=>[...s.snapshot.nodes])),r.flatMap(s=>[...s.snapshot.edges]),i);return u(a,i,t)}var m=class{name;#e=new Map;constructor(t="memory"){this.name=l(t,"adapter name")}async read(t){g(t.signal);let r=this.#e.get(l(t.workspace,"workspace"));return r?structuredClone(r):null}async replace(t){g(t.signal);let r=l(t.workspace,"workspace"),n=this.#e.get(r);if(t.expected_fingerprint!==void 0&&(n?.fingerprint??null)!==t.expected_fingerprint)throw new Error(`Relationship graph adapter conflict for ${r}`);this.#e.set(r,structuredClone(y(t.snapshot).snapshot))}async clear(t){g(t.signal);let r=l(t.workspace,"workspace"),n=this.#e.get(r);if(t.expected_fingerprint!==void 0&&(n?.fingerprint??null)!==t.expected_fingerprint)throw new Error(`Relationship graph adapter conflict for ${r}`);this.#e.delete(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]="423d6e5d-93e5-5f29-93e0-11ddca9c3156")}catch{}})();function x(e,t){if(!Number.isInteger(e)||e<1)throw new TypeError(`Relationship graph ${t} must be a positive integer`);return e}function Ae(e){let t=x(e.nodeCount,"nodeCount"),r=x(e.edgeStride??1,"edgeStride"),n=e.topology??"chain";if(!["chain","star","disconnected"].includes(n))throw new TypeError(`Unsupported relationship graph topology: ${n}`);let i=(e.kind??"related").trim(),a=(e.idPrefix??"node").trim();if(!i||!a)throw new TypeError("Relationship graph kind and idPrefix must be non-empty");let s=n==="disconnected"?0:Math.floor((t-1)/r);return{node_count:t,edge_count:s,edge_basis:"fixture_generated",nodes:{*[Symbol.iterator](){for(let o=0;o<t;o+=1)yield`${a}-${o}`}},edges:{*[Symbol.iterator](){if(n!=="disconnected")for(let o=r;o<t;o+=r)yield{source:`${a}-${n==="star"?0:o-r}`,target:`${a}-${o}`,kind:i}}}}}function h(e,t){if(!e)throw new Error(`Relationship graph adapter conformance: ${t}`)}async function I(e,t={}){let r=t.workspace?.trim()||"pm-graph-conformance",n=S(),i=u(new f(["a","b"],[{source:"a",target:"b",kind:"related"}],n),n,{createdAt:"2026-01-01T00:00:00.000Z"}),a=u(new f(["a","b","c"],[{source:"a",target:"b",kind:"related"},{source:"b",target:"c",kind:"blocked_by"}],n),n,{createdAt:"2026-01-02T00:00:00.000Z"}),s=[];h(await c(e,{workspace:r})===null,"workspace must start empty"),s.push({name:"empty-read",passed:!0});let o=await R(e,{workspace:r,snapshot:i});h(o.disposition==="written","first sync must write"),s.push({name:"atomic-replace",passed:!0}),(await e.read({workspace:r})).nodes.push("mutated-reader-copy"),h((await c(e,{workspace:r}))?.snapshot.nodes.length===2,"reads must not mutate stored state"),s.push({name:"read-isolation",passed:!0}),h((await R(e,{workspace:r,snapshot:i})).disposition==="current","identical sync must be idempotent"),s.push({name:"idempotent-sync",passed:!0}),await e.replace({workspace:r,snapshot:a,expected_fingerprint:i.fingerprint}),h((await c(e,{workspace:r}))?.snapshot.fingerprint===a.fingerprint,"replacement must become visible"),s.push({name:"replacement-visibility",passed:!0});let w=!1;try{await e.replace({workspace:r,snapshot:i,expected_fingerprint:i.fingerprint})}catch{w=!0}return h(w,"stale compare-and-swap must fail"),s.push({name:"stale-cas",passed:!0}),e.clear&&(await e.clear({workspace:r,expected_fingerprint:a.fingerprint}),h(await c(e,{workspace:r})===null,"clear must remove the workspace"),s.push({name:"clear",passed:!0})),{adapter:e.name,workspace:r,cases:Object.freeze(s),clear_supported:e.clear!==void 0}}function Ge(e){return I(new m,e?{workspace:e}:{})}(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]="2c3df51e-6b10-5da6-8340-126465d9c434")}catch{}})();import{createHash as D}from"node:crypto";(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]="54a3448c-719c-5404-a9b9-c3072a2fdce2")}catch{}})();function T(e,t){if(typeof e!="string"||e.trim().length===0)throw new TypeError(`Relationship backfill ${t} must be non-empty`);return e.trim()}function pt(e,t){let r=T(t.migrationId,"migrationId"),n=T(t.author,"author"),i=Date.parse(t.timestamp);if(!Number.isFinite(i))throw new TypeError("Relationship backfill timestamp must be valid");let a=new Date(i).toISOString(),s=k(e,void 0,t.registry),o=s.graph.nodes(),d=s.graph.edges().map(p=>{let E=D("sha256").update(JSON.stringify([r,p.kind,p.source,p.target,p.createdAt??null,p.author??null,p.payload??null])).digest("hex").slice(0,24);return Object.freeze({eventId:`backfill:${r}:${E}`,relationshipId:`migration:${r}:${E}`,action:"add",edge:p,author:n,timestamp:a,reason:`Backfill ${r} from legacy item metadata`})}),w=D("sha256").update(JSON.stringify({migrationId:r,nodes:o,events:d})).digest("hex"),C=new Set([...t.existingEventIds??[]].filter(p=>typeof p=="string").map(p=>p.trim()).filter(Boolean)),G=d.filter(p=>!C.has(p.eventId));return Object.freeze({migration_id:r,fingerprint:w,nodes:o,events:Object.freeze(G),edge_count:d.length,skipped_existing_count:d.length-G.length,duplicate_dependency_rows:s.duplicateRows.length,dangling_reference_count:s.dangling.active.length+s.dangling.legacy_terminal.length})}(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]="b6d6f773-8336-5e0e-8dfb-d5729caa18d9")}catch{}})();export{ae as GRAPH_DURABLE_CACHE_MIN_ITEMS,oe as GRAPH_DURABLE_CACHE_VERSION,$ as GRAPH_SUBCOMMAND_VALUES,m as MemoryRelationshipGraphAdapter,A as RELATIONSHIP_GRAPH_SNAPSHOT_VERSION,Ie as RelationshipEventLog,De as RelationshipEventStore,f as RelationshipGraph,_ as RelationshipKindRegistry,ee as WorkspaceGraphCache,Ce as analyzeGraphImpact,$e as analyzeKnowledgeGraph,Te as analyzeRelationshipExecution,se as analyzeRelationshipSchedule,k as assembleWorkspaceRelationshipGraph,Ge as assertMemoryRelationshipGraphAdapterConformance,Se as assertRelationshipEdgeAllowed,I as assertRelationshipGraphAdapterConformance,Z as auditWorkspaceRelationshipGraph,He as buildRelationshipContext,he as clearDurableGraphCache,Pe as collectBlockedByIds,M as collectDanglingDependencyReferences,Me as collectDependencyBlockedIds,N as collectDuplicateDependencyRows,J as collectDuplicateRelationshipEdgeGroups,v as collectMissingDependencyTargetIds,X as collectNewOrderingCycleWarnings,K as collectOrderingCycles,Oe as compareRelationshipSnapshots,ve as computeActionabilityReport,ne as computeRelationshipCentrality,V as computeRelationshipDominators,Y as computeWorkspaceGraphFingerprint,Ae as createRelationshipGraphScaleFixture,u as createRelationshipGraphSnapshot,S as createRelationshipKindRegistry,xe as dependencyToRelationship,U as detectRelationshipCommunities,Q as diffRelationshipAuditSnapshots,pe as durableGraphCachePath,fe as durableGraphCacheStatus,z as enumerateRelationshipPaths,ke as federateRelationshipGraphSnapshots,L as findRedundantRelationshipEdges,ie as findRelationshipCutStructure,F as forEachMatchedRelationshipEdge,q as formatDuplicateEdgeGroup,de as graphAuditBaselinePath,H as hierarchyAncestors,B as hierarchyDescendants,Ee as isOrderingRelationshipKind,ue as loadGraphAuditBaseline,c as loadRelationshipGraphAdapter,O as normalizeDependencyGraphTarget,ce as openDurableGraphCache,W as orderingPredecessors,j as orderingSuccessors,we as parseGraphSubcommand,y as parseRelationshipGraphSnapshot,le as persistDurableGraphResult,pt as planRelationshipEventBackfill,ye as planRelationshipRemediation,re as resetWorkspaceGraphCache,Ne as resolveItemBlockers,P as resolveWorkspaceRelationshipKindRegistry,be as runGraph,me as saveGraphAuditBaseline,ge as shouldPersistDurableGraphCache,R as syncRelationshipGraphAdapter,te as workspaceGraphCache};
2
2
  //# sourceMappingURL=sdk-graph.js.map
@@ -1,2 +1,2 @@
1
- import{a as T,b as p,c as b,d as m,e as _,f as M,g as y,h as E,l as R}from"./focused-chunks/chunk-GSW2Y7VZ.js";import{b as o,c as n,d as i,e as f,f as D,g as s,h as d,i as a,j as g,k as A,t as u,v as l,w as c,x as I}from"./focused-chunks/chunk-YHDCGUIW.js";import"./focused-chunks/chunk-6KDHXURF.js";import"./focused-chunks/chunk-GIERI4YU.js";import"./focused-chunks/chunk-ME4XVOBJ.js";import"./focused-chunks/chunk-GEYU23YS.js";import"./focused-chunks/chunk-EAXXF2HW.js";import"./focused-chunks/chunk-27DK4A5O.js";import"./focused-chunks/chunk-7AZDTGPA.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="27725b9d-2a1d-54ae-8191-12ebace6ef6a")}catch{}})();(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="00dc29ff-60e0-5755-b7f1-4f69e438e87f")}catch{}})();export{m as ITEM_LATEST_TIMESTAMP_FIELDS,b as ITEM_UNION_COLLECTION_FIELDS,y as MERGE_DRIVER_ARTIFACT_VALUES,n as PM_GITATTRIBUTES_END,o as PM_GITATTRIBUTES_START,s as auditMergeAttributeFence,d as auditMergeDriverConfiguration,f as buildMergeAttributePatterns,i as findGitWorkspaceRoot,A as installMergeFence,l as listMergeReceipts,c as markMergeReceiptReconciled,T as mergeHistoryStreams,_ as mergeItemDocuments,M as mergeJsonDocuments,p as mergeRelationshipEventStreams,a as refreshMergeAttributeFenceIfInstalled,D as resolveProjectMergeTypeFolders,E as runMergeDriver,g as runMergeInstall,I as runMergeReceiptReport,R as runMergeReconcile,u as summarizeMergeReceipt};
1
+ import{a as p,b,c as m,d as M,e as _,f as y,g as E,h as R,l as D}from"./focused-chunks/chunk-F5B3HBEZ.js";import{T as u,V as c,W as I,X as T,d as o,e as n,f,g as i,h as s,i as A,j as d,k as l,l as g,m as a,n as w}from"./focused-chunks/chunk-CMDS3KYT.js";import"./focused-chunks/chunk-IAS7PMLG.js";import"./focused-chunks/chunk-ZOLDTUU7.js";import"./focused-chunks/chunk-HCUC62AB.js";import"./focused-chunks/chunk-YSAHYUXX.js";import"./focused-chunks/chunk-U646T7Z6.js";import"./focused-chunks/chunk-GWI6YIKJ.js";import"./focused-chunks/chunk-SM2PJGP3.js";import"./focused-chunks/chunk-HGNKPSCB.js";import"./focused-chunks/chunk-FPDYXZBK.js";import"./focused-chunks/chunk-FI6DWU2M.js";import"./focused-chunks/chunk-54EU2UVO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="a8072065-092c-564b-a84f-cf687f795a92")}catch{}})();(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="00dc29ff-60e0-5755-b7f1-4f69e438e87f")}catch{}})();export{M as ITEM_LATEST_TIMESTAMP_FIELDS,m as ITEM_UNION_COLLECTION_FIELDS,E as MERGE_DRIVER_ARTIFACT_VALUES,n as PM_GITATTRIBUTES_END,o as PM_GITATTRIBUTES_START,d as auditMergeAttributeFence,l as auditMergeDriverConfiguration,s as buildMergeAttributePatterns,i as findGitWorkspaceRoot,w as installMergeFence,c as listMergeReceipts,I as markMergeReceiptReconciled,p as mergeHistoryStreams,_ as mergeItemDocuments,y as mergeJsonDocuments,b as mergeRelationshipEventStreams,g as refreshMergeAttributeFenceIfInstalled,f as resolveMergeInstallContext,A as resolveProjectMergeTypeFolders,R as runMergeDriver,a as runMergeInstall,T as runMergeReceiptReport,D as runMergeReconcile,u as summarizeMergeReceipt};
2
2
  //# sourceMappingURL=sdk-merge.js.map
@@ -1,2 +1,2 @@
1
- import{$ as ve,$a as mo,A as oe,Aa as b,B as te,Ba as y,C as re,Ca as g,D as ne,Da as C,E as fe,Ea as w,F as de,Fa as I,G as pe,Ga as Xe,H as se,Ha as qe,I as xe,Ia as ze,J as ae,Ja as Ge,K as me,Ka as He,L as ie,La as Je,M as le,Ma as Ke,N as ue,Na as Qe,O as ce,Oa as Ye,P as be,Pa as Ze,Q as ye,Qa as $e,R as ge,Ra as eo,S as Ce,Sa as oo,T as we,Ta as to,U as Ie,Ua as ro,V as Te,Va as no,W as he,Wa as fo,X as ke,Xa as po,Y as _e,Ya as so,Z as De,Za as xo,_ as Se,_a as ao,aa as Fe,ab as io,b as N,ba as Ee,bb as lo,c as V,ca as Pe,cb as uo,d as W,da as Oe,ea as Re,fa as Ue,ga as je,ha as Ae,i as r,ia as Be,ja as Le,k as X,ka as Me,l as q,la as Ne,m as z,ma as Ve,n as G,na as We,oa as n,pa as f,qa as d,ra as p,s as H,sa as s,t as J,ta as x,u as K,ua as a,v as Q,va as m,w as Y,wa as i,x as Z,xa as l,y as $,ya as u,z as ee,za as c}from"./focused-chunks/chunk-CL3NB7VW.js";import{r as M}from"./focused-chunks/chunk-MBBMTDD3.js";import"./focused-chunks/chunk-XNVXIQ4B.js";import"./focused-chunks/chunk-7YTZ7A4E.js";import"./focused-chunks/chunk-N7QN3NE6.js";import"./focused-chunks/chunk-GIERI4YU.js";import"./focused-chunks/chunk-ME4XVOBJ.js";import{Sa as O,Ta as R,Ua as U,Va as j,Xa as A,Ya as B,Za as L,ga as E,za as P}from"./focused-chunks/chunk-GEYU23YS.js";import"./focused-chunks/chunk-EAXXF2HW.js";import{l as T,m as h,n as k,o as _,p as D,q as S,r as v,s as F}from"./focused-chunks/chunk-27DK4A5O.js";import"./focused-chunks/chunk-7AZDTGPA.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]="5133d678-01f4-5164-aea7-2cc5ed42dd58")}catch{}})();(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]="5e04dc9d-8e2d-5ef2-bf8b-6b18bd87c3bc")}catch{}})();export{Z as BRIEF_LIST_FIELDS,ye as CONTEXT_EVALUATION_METRIC_NAMES,n as CONTEXT_OUTPUT_VALUES,Te as CONTEXT_PACKING_PROFILES,le as CONTEXT_RELEVANCE_SERVICE,me as CONTEXT_RELEVANCE_SIGNAL_NAMES,Ee as CONTEXT_SIGNAL_SET_VERSION,Fe as CONTEXT_SIGNAL_STORE_FORMAT_VERSION,Ue as ContextSignalStore,ke as ContextUsageValidationError,Ye as DEFAULT_CHILD_SAMPLE_LIMIT,Y as DEFAULT_COMPACT_LIST_FIELDS,j as DEFAULT_DERIVED_INDEX_MINIMUM_ITEMS,Ae as DEFAULT_WORKSPACE_MEMORY_MINIMUM_ITEMS,Re as JsonFileContextSignalStoreAdapter,$ as LIST_COMMAND_DEFAULT_PROJECTIONS,K as LIST_SORT_FIELDS,Q as LIST_SORT_ORDER_VALUES,Qe as MAX_CHILD_PROJECTION_ITEMS,Xe as NEXT_OUTPUT_VALUES,F as QUERY_CURSOR_CONTRACT,ne as _testOnly,de as _testOnlyAggregateCommand,eo as _testOnlyGetCommand,ze as _testOnlyNextCommand,io as _testOnlySearchCommand,A as acquireItemMetadataDerivedIndexLock,w as applyContextTagProjection,ee as applyFilterValueEcho,b as buildChildrenByParent,oo as buildCompactSearchFilterSummary,oe as buildContentFilterEcho,Oe as buildContextSignalSnapshot,te as buildGovernanceMissingFilterEcho,Ze as buildItemChildrenRollup,ie as buildItemContextRelevanceCandidates,to as buildVerboseSearchFilters,Be as buildWorkspaceMemorySnapshot,mo as classifyImplicitSemanticFallbackReason,ao as collectErrorCauseCodes,m as collectSubtreeIds,i as compareCriticalItems,h as createQueryFingerprint,ro as createSearchCursorFingerprint,D as decodeQueryCursor,_ as decodeQueryCursorState,ue as defaultScoreContextCandidates,k as encodeQueryCursor,ge as evaluateContextRanking,g as mergeSortedWarnings,he as packContextCandidates,l as packRankedContextItems,v as paginateQueryRows,x as parseContextDepth,f as parseContextFocusFields,a as parseContextSections,Pe as parseContextSignalSnapshot,N as parseIntegerLimit,M as parseLimit,X as parseMultiValueFilter,V as parsePriority,G as parsePriorityFilterSet,q as parseStringFilterSet,W as parseType,z as parseTypeFilterSet,Ge as partitionDecisionEntries,d as projectContextFocusRows,O as queryItemMetadataIndex,R as queryLinkedFileMetadataIndex,U as querySimilarItemMetadataIndex,ve as readContextUsageAffinity,E as readHistoryEntries,B as readItemMetadataDerivedIndexState,je as readWorkspaceContextSignals,Le as readWorkspaceMemory,_e as recordContextUsageServing,De as recordContextUsageTouch,Se as recordContextUsageTouches,L as refreshItemMetadataDerivedIndex,se as renderCalendarMarkdown,xe as renderCalendarToon,C as renderContextMarkdown,Je as renderNextMarkdown,pe as resolveCalendarOutputFormat,J as resolveContentFieldFilters,p as resolveContextOutputFormat,s as resolveContextTokenBudget,so as resolveHybridSemanticWeight,H as resolveMissingMetadataFilters,qe as resolveNextOutputFormat,S as resolveQueryCursorStart,fo as resolveSearchMaxResults,no as resolveSearchPage,po as resolveSearchScoreThreshold,xo as resolveSearchTuning,r as runActivity,fe as runAggregate,ae as runCalendar,I as runContext,Ie as runContextEvaluationCorpus,Ce as runContextEvaluationScenario,uo as runDuplicates,$e as runGet,Ke as runHistory,re as runList,He as runNext,lo as runSearch,ce as scoreContextCandidates,be as scoreContextCandidatesWithActiveExtensions,Ve as searchWorkspaceMemory,We as searchWorkspaceMemoryReadResult,T as selectCursorSemanticOptions,Ne as selectWorkspaceMemory,Me as selectWorkspaceMemoryRollups,we as summarizeContextEvaluationReports,y as toContextFocusItem,u as toContextPackingSummary,c as toContextRankingSummary,P as verifyHistoryChain};
1
+ import{$ as ve,$a as mo,A as oe,Aa as b,B as te,Ba as y,C as re,Ca as g,D as ne,Da as C,E as fe,Ea as w,F as de,Fa as I,G as pe,Ga as Xe,H as se,Ha as qe,I as xe,Ia as ze,J as ae,Ja as Ge,K as me,Ka as He,L as ie,La as Je,M as le,Ma as Ke,N as ue,Na as Qe,O as ce,Oa as Ye,P as be,Pa as Ze,Q as ye,Qa as $e,R as ge,Ra as eo,S as Ce,Sa as oo,T as we,Ta as to,U as Ie,Ua as ro,V as Te,Va as no,W as he,Wa as fo,X as ke,Xa as po,Y as _e,Ya as so,Z as De,Za as xo,_ as Se,_a as ao,aa as Fe,ab as io,b as N,ba as Ee,bb as lo,c as V,ca as Pe,cb as uo,d as W,da as Oe,ea as Re,fa as Ue,ga as je,ha as Ae,i as r,ia as Be,ja as Le,k as X,ka as Me,l as q,la as Ne,m as z,ma as Ve,n as G,na as We,oa as n,pa as f,qa as d,ra as p,s as H,sa as s,t as J,ta as x,u as K,ua as a,v as Q,va as m,w as Y,wa as i,x as Z,xa as l,y as $,ya as u,z as ee,za as c}from"./focused-chunks/chunk-FNOKJG6N.js";import"./focused-chunks/chunk-5GJ57YKN.js";import"./focused-chunks/chunk-5FLBTZJQ.js";import"./focused-chunks/chunk-YSAHYUXX.js";import{E as M}from"./focused-chunks/chunk-U646T7Z6.js";import"./focused-chunks/chunk-GWI6YIKJ.js";import"./focused-chunks/chunk-SM2PJGP3.js";import{Ta as O,Ua as R,Va as U,Wa as j,Ya as A,Za as B,_a as L,ga as E,za as P}from"./focused-chunks/chunk-HGNKPSCB.js";import"./focused-chunks/chunk-FPDYXZBK.js";import{l as T,m as h,n as k,o as _,p as D,q as S,r as v,s as F}from"./focused-chunks/chunk-FI6DWU2M.js";import"./focused-chunks/chunk-54EU2UVO.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]="5133d678-01f4-5164-aea7-2cc5ed42dd58")}catch{}})();(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]="5e04dc9d-8e2d-5ef2-bf8b-6b18bd87c3bc")}catch{}})();export{Z as BRIEF_LIST_FIELDS,ye as CONTEXT_EVALUATION_METRIC_NAMES,n as CONTEXT_OUTPUT_VALUES,Te as CONTEXT_PACKING_PROFILES,le as CONTEXT_RELEVANCE_SERVICE,me as CONTEXT_RELEVANCE_SIGNAL_NAMES,Ee as CONTEXT_SIGNAL_SET_VERSION,Fe as CONTEXT_SIGNAL_STORE_FORMAT_VERSION,Ue as ContextSignalStore,ke as ContextUsageValidationError,Ye as DEFAULT_CHILD_SAMPLE_LIMIT,Y as DEFAULT_COMPACT_LIST_FIELDS,j as DEFAULT_DERIVED_INDEX_MINIMUM_ITEMS,Ae as DEFAULT_WORKSPACE_MEMORY_MINIMUM_ITEMS,Re as JsonFileContextSignalStoreAdapter,$ as LIST_COMMAND_DEFAULT_PROJECTIONS,K as LIST_SORT_FIELDS,Q as LIST_SORT_ORDER_VALUES,Qe as MAX_CHILD_PROJECTION_ITEMS,Xe as NEXT_OUTPUT_VALUES,F as QUERY_CURSOR_CONTRACT,ne as _testOnly,de as _testOnlyAggregateCommand,eo as _testOnlyGetCommand,ze as _testOnlyNextCommand,io as _testOnlySearchCommand,A as acquireItemMetadataDerivedIndexLock,w as applyContextTagProjection,ee as applyFilterValueEcho,b as buildChildrenByParent,oo as buildCompactSearchFilterSummary,oe as buildContentFilterEcho,Oe as buildContextSignalSnapshot,te as buildGovernanceMissingFilterEcho,Ze as buildItemChildrenRollup,ie as buildItemContextRelevanceCandidates,to as buildVerboseSearchFilters,Be as buildWorkspaceMemorySnapshot,mo as classifyImplicitSemanticFallbackReason,ao as collectErrorCauseCodes,m as collectSubtreeIds,i as compareCriticalItems,h as createQueryFingerprint,ro as createSearchCursorFingerprint,D as decodeQueryCursor,_ as decodeQueryCursorState,ue as defaultScoreContextCandidates,k as encodeQueryCursor,ge as evaluateContextRanking,g as mergeSortedWarnings,he as packContextCandidates,l as packRankedContextItems,v as paginateQueryRows,x as parseContextDepth,f as parseContextFocusFields,a as parseContextSections,Pe as parseContextSignalSnapshot,N as parseIntegerLimit,M as parseLimit,X as parseMultiValueFilter,V as parsePriority,G as parsePriorityFilterSet,q as parseStringFilterSet,W as parseType,z as parseTypeFilterSet,Ge as partitionDecisionEntries,d as projectContextFocusRows,O as queryItemMetadataIndex,R as queryLinkedFileMetadataIndex,U as querySimilarItemMetadataIndex,ve as readContextUsageAffinity,E as readHistoryEntries,B as readItemMetadataDerivedIndexState,je as readWorkspaceContextSignals,Le as readWorkspaceMemory,_e as recordContextUsageServing,De as recordContextUsageTouch,Se as recordContextUsageTouches,L as refreshItemMetadataDerivedIndex,se as renderCalendarMarkdown,xe as renderCalendarToon,C as renderContextMarkdown,Je as renderNextMarkdown,pe as resolveCalendarOutputFormat,J as resolveContentFieldFilters,p as resolveContextOutputFormat,s as resolveContextTokenBudget,so as resolveHybridSemanticWeight,H as resolveMissingMetadataFilters,qe as resolveNextOutputFormat,S as resolveQueryCursorStart,fo as resolveSearchMaxResults,no as resolveSearchPage,po as resolveSearchScoreThreshold,xo as resolveSearchTuning,r as runActivity,fe as runAggregate,ae as runCalendar,I as runContext,Ie as runContextEvaluationCorpus,Ce as runContextEvaluationScenario,uo as runDuplicates,$e as runGet,Ke as runHistory,re as runList,He as runNext,lo as runSearch,ce as scoreContextCandidates,be as scoreContextCandidatesWithActiveExtensions,Ve as searchWorkspaceMemory,We as searchWorkspaceMemoryReadResult,T as selectCursorSemanticOptions,Ne as selectWorkspaceMemory,Me as selectWorkspaceMemoryRollups,we as summarizeContextEvaluationReports,y as toContextFocusItem,u as toContextPackingSummary,c as toContextRankingSummary,P as verifyHistoryChain};
2
2
  //# sourceMappingURL=sdk-query.js.map
@@ -1,2 +1,2 @@
1
- import{$ as ab,$a as fc,Aa as Gb,Ab as Gc,Ba as Hb,Bb as Hc,Ca as Ib,Cb as Ic,Da as Jb,Db as Jc,Ea as Kb,Eb as Kc,Fa as Lb,Fb as Lc,Ga as Mb,Gb as Mc,Ha as Nb,Hb as Nc,Ia as Ob,Ib as Oc,Ja as Pb,Jb as Pc,K as La,Ka as Qb,Kb as Qc,L as Ma,La as Rb,Lb as Rc,M as Na,Ma as Sb,Mb as Sc,N as Oa,Na as Tb,Nb as Tc,O as Pa,Oa as Ub,Ob as Uc,P as Qa,Pa as Vb,Pb as Vc,Q as Ra,Qa as Wb,R as Sa,Ra as Xb,S as Ta,Sa as Yb,T as Ua,Ta as Zb,U as Va,Ua as _b,V as Wa,Va as $b,W as Xa,Wa as ac,X as Ya,Xa as bc,Y as Za,Ya as cc,Z as _a,Za as dc,_ as $a,_a as ec,a as $,aa as bb,ab as gc,b as aa,ba as cb,bb as hc,c as ba,ca as db,cb as ic,da as eb,db as jc,ea as fb,eb as kc,fa as gb,fb as lc,ga as hb,gb as mc,ha as ib,hb as nc,ia as jb,ib as oc,ja as kb,jb as pc,ka as qb,kb as qc,la as rb,lb as rc,ma as sb,mb as sc,n as ga,na as tb,nb as tc,o as ha,oa as ub,ob as uc,pa as vb,pb as vc,qa as wb,qb as wc,ra as xb,rb as xc,sa as yb,sb as yc,ta as zb,tb as zc,ua as Ab,ub as Ac,va as Bb,vb as Bc,wa as Cb,wb as Cc,xa as Db,xb as Dc,ya as Eb,yb as Ec,za as Fb,zb as Fc}from"./chunks/chunk-RAFUN7IX.js";import"./chunks/chunk-SVV3DQES.js";import{ba as Ja,ca as Ka,sa as lb,ta as mb,ua as nb,va as ob,wa as pb}from"./chunks/chunk-V663653R.js";import"./chunks/chunk-D7I3TUGV.js";import{a as Ba}from"./chunks/chunk-Q3VOP62W.js";import"./chunks/chunk-SXECIECW.js";import{m as Fa,n as Ga,o as Ha,p as Ia}from"./chunks/chunk-WSI5KZQJ.js";import"./chunks/chunk-R6RKEYYW.js";import"./chunks/chunk-4AVFKHHC.js";import"./chunks/chunk-FDBRXV25.js";import"./chunks/chunk-DQGJ2RWT.js";import"./chunks/chunk-GU3TSEHD.js";import"./chunks/chunk-343QETLI.js";import"./chunks/chunk-AOBDLU4T.js";import"./chunks/chunk-5PBP2ZP3.js";import{a as Aa}from"./chunks/chunk-JFZIS6JF.js";import{a as Ca}from"./chunks/chunk-JQ4NZ5EB.js";import{a as za}from"./chunks/chunk-AYRUGRNS.js";import"./chunks/chunk-MCS73BKB.js";import"./chunks/chunk-SD3YXU2U.js";import"./chunks/chunk-CHOQ2VAW.js";import{c as ca,d as da,f as ea,g as fa}from"./chunks/chunk-3ZJRFYY2.js";import{D as Ea,e as ja,m as Da}from"./chunks/chunk-E7BFPLUZ.js";import{U as oa,i as ka,j as la,ja as pa,k as ma,ka as qa,l as na,oa as ra}from"./chunks/chunk-XPOQQJTX.js";import"./chunks/chunk-F4NREH3G.js";import"./chunks/chunk-AJE3AHPD.js";import"./chunks/chunk-ZFBWCKYF.js";import"./chunks/chunk-SV3YQ4RY.js";import"./chunks/chunk-BP6EMEDP.js";import"./chunks/chunk-DWOAOZHZ.js";import"./chunks/chunk-NE5VRDAI.js";import"./chunks/chunk-PECV7L5T.js";import"./chunks/chunk-M357ZCOR.js";import{a as ya}from"./chunks/chunk-OXY3SJ3N.js";import{b as wa,c as xa}from"./chunks/chunk-TPKDJ5WL.js";import"./chunks/chunk-JC6FKIFM.js";import"./chunks/chunk-FB7G2HY2.js";import{u as ia}from"./chunks/chunk-3KFVGGRE.js";import"./chunks/chunk-CA3BURYF.js";import"./chunks/chunk-QJ7C3JIW.js";import"./chunks/chunk-C3YABSJK.js";import"./chunks/chunk-L6LGKJX3.js";import"./chunks/chunk-RUAU5OSH.js";import{a as sa,b as ta,c as ua,e as va}from"./chunks/chunk-5ZKQPA44.js";import"./chunks/chunk-E2ZSLTOP.js";import{pa as X,qa as Y,sa as Z,ta as _}from"./chunks/chunk-MDTH7SAE.js";import"./chunks/chunk-4OVGQW22.js";import"./chunks/chunk-RSIC5OPE.js";import"./chunks/chunk-M4VEE3FK.js";import"./chunks/chunk-A6KGKEWT.js";import{a as S}from"./chunks/chunk-R6LSRGPS.js";import"./chunks/chunk-UVVXHGYS.js";import{$c as F,A as e,Af as T,C as f,Da as p,Ja as q,La as r,Lf as U,Mf as V,Nc as y,Nf as W,Oa as s,Pa as t,Pc as z,R as g,Ra as u,S as h,Wc as A,Xc as B,Yc as C,Zc as D,Ze as M,_c as E,_e as N,aa as i,ad as G,b as a,ba as j,c as b,ca as k,cd as H,d as c,ed as I,f as d,fd as J,ga as l,hd as K,ia as m,id as L,ja as n,ka as o,lc as v,mf as O,tf as P,uc as w,uf as Q,vf as R,wc as x}from"./chunks/chunk-HS7OVAUN.js";export{A as BASELINE_ITEM_FORMAT_VERSION,i as BUILTIN_ITEM_TYPE_VALUES,o as CONFIDENCE_TEXT_VALUES,oa as CONTEXT_OUTPUT_VALUES,B as CURRENT_ITEM_FORMAT_VERSION,sa as DEFAULT_TERMINAL_TRANSITION_POLICY,l as DEPENDENCY_KIND_VALUES,e as EXIT_CODE,n as ISSUE_SEVERITY_VALUES,j as ITEM_TYPE_VALUES,qa as NEXT_OUTPUT_VALUES,$ as PM_CLI_EXPECTED_ERROR_NAME,da as PM_GITIGNORE_END,ca as PM_GITIGNORE_START,f as PmCliError,qb as PmClient,m as RISK_VALUES,ga as SEARCH_EXTENSION_FLAG_DEFINITIONS,k as STATUS_VALUES,O as acquireLock,wb as aggregate,Vc as analyzeSdkActionCoverage,Ib as append,N as appendHistoryEntry,va as applyTerminalOrderingPolicy,L as canonicalDocument,qc as claim,rc as claimNext,E as classifyItemFormatVersion,ha as clearWorkspaceContractsCache,pc as close,wa as closeItem,zc as closeTask,zb as comments,fb as commitImportedItem,Kb as config,rb as context,tc as copy,nc as create,M as createHistoryEntry,aa as createPmCliExpectedError,uc as deleteItem,Gb as deps,Fb as docs,yb as duplicates,C as effectiveItemFormatVersion,eb as emptyImportedDocument,fa as ensurePmGitignore,db as ensureTrackerInitialized,Ac as extension,Cc as extensionActivate,Dc as extensionDeactivate,Bc as extensionList,Cb as files,Db as filesDiscover,Eb as filesLookup,wc as focus,hc as gc,R as generateItemId,ub as get,v as getActiveExtensionRegistrations,Rc as getContracts,u as getHistoryPath,t as getItemPath,ea as getPmGitignoreBlock,s as getSettingsPath,Qc as getWorkspaceContracts,Hb as graph,gc as health,lc as historyCompact,mc as historyCompactBulk,ic as historyRedact,jc as historyRepair,kc as historyRepairAll,Jb as init,ba as isPmCliExpectedError,H as isTerminalStatus,h as isTimestampLiteral,Z as jaccardSimilarity,Bb as learnings,sb as list,W as listAllItemMetadata,Fa as loadCreateTemplateOptions,U as locateItem,vb as next,D as normalizeItemFormatVersion,Q as normalizeItemId,I as normalizeItemMetadata,P as normalizeRawItemId,X as normalizeSimilarityText,G as normalizeStatusInput,Ab as notes,g as nowIso,Nc as packageActivate,Mc as packageCatalog,Oc as packageDeactivate,Kc as packageDescribe,Ic as packageDoctor,Gc as packageInstall,Ec as packageLifecycle,Fc as packageList,Jc as packageManage,Lc as packageReload,Hc as packageUninstall,S as parseTags,a as pathExists,yc as pauseTask,ac as profile,dc as profileApply,ec as profileLint,bc as profileList,cc as profileShow,Ma as readBooleanOption,Na as readCsvListOption,b as readFileIfExists,V as readLocatedItem,Sc as readRequiredString,T as readSettings,La as readStringOption,sc as release,d as removeFileIfExists,la as renderCalendarMarkdown,ma as renderCalendarToon,ib as renderGuideMarkdown,ua as requireTerminalReason,ka as resolveCalendarOutputFormat,gb as resolveGuideOutputFormat,q as resolveImplicitPmRoot,p as resolveItemTypeRegistry,r as resolvePmRoot,z as resolveRuntimeFieldRegistry,y as resolveRuntimeStatusRegistry,ta as resolveTerminalReason,vc as restore,Uc as runAction,x as runActiveOnReadHooks,w as runActiveOnWriteHooks,ja as runAggregate,na as runCalendar,xa as runClose,jb as runCompletion,pa as runContext,Aa as runCopy,Ba as runDelete,Ka as runDuplicates,Ca as runFocus,Da as runGet,hb as runGuide,ia as runList,ra as runNext,kb as runReindex,ya as runRestore,Ea as runSearch,Ja as runStats,Ha as runTemplatesList,Ga as runTemplatesSave,Ia as runTemplatesShow,lb as runTestRunsList,nb as runTestRunsLogs,pb as runTestRunsResume,mb as runTestRunsStatus,ob as runTestRunsStop,za as runUpdate,Tc as runWithActiveExtensions,F as scanItemFormatVersions,Lb as schema,Sb as schemaAddField,Qb as schemaAddStatus,Ob as schemaAddType,Wb as schemaApplyPreset,Xb as schemaInferTypes,Mb as schemaList,Ub as schemaListFields,_b as schemaRemapStatus,Tb as schemaRemoveField,Rb as schemaRemoveStatus,Pb as schemaRemoveType,Zb as schemaRenameField,Yb as schemaRenameType,Nb as schemaShow,Vb as schemaShowField,$b as schemaShowStatus,_ as scoreItemSimilarity,tb as search,cb as selectImportAuthor,K as serializeItemDocument,J as splitFrontMatter,xc as startTask,xb as stats,Pa as toEstimatedMinutesValue,Ua as toImportBoolean,Ya as toImportConfidence,Ta as toImportInteger,ab as toImportLinkedDocs,$a as toImportLinkedFiles,bb as toImportLinkedTests,_a as toImportLogEntries,Za as toImportNormalizedEnum,Xa as toImportNumberMap,Qa as toImportPriority,Sa as toImportStatus,Va as toImportStringList,Wa as toImportStringMap,Ra as toImportTags,Oa as toNonEmptyImportString,Y as tokenizeSimilarityText,oc as update,Pc as upgrade,fc as validate,c as writeFileAtomic};
1
+ import{$a as sb,$b as sc,Aa as Oa,Ab as Tb,Ac as Tc,Ba as Pa,Bb as Ub,Bc as Uc,Ca as Qa,Cb as Vb,Cc as Vc,Da as Ra,Db as Wb,Ea as Sa,Eb as Xb,Fa as Ta,Fb as Yb,G as Aa,Ga as Ua,Gb as Zb,H as Ba,Ha as Va,Hb as _b,I as Ca,Ia as Wa,Ib as $b,Ja as Xa,Jb as ac,Ka as Ya,Kb as bc,La as Za,Lb as cc,Ma as _a,Mb as dc,Na as $a,Nb as ec,Oa as ab,Ob as fc,Pa as bb,Pb as gc,Qa as cb,Qb as hc,Ra as db,Rb as ic,Sa as eb,Sb as jc,Ta as fb,Tb as kc,Ua as gb,Ub as lc,Va as hb,Vb as mc,Wa as ib,Wb as nc,Xa as jb,Xb as oc,Ya as kb,Yb as pc,Za as qb,Zb as qc,_a as rb,_b as rc,a as $,ab as tb,ac as tc,b as aa,bb as ub,bc as uc,c as ba,cb as vb,cc as vc,db as wb,dc as wc,eb as xb,ec as xc,fb as yb,fc as yc,ga as Fa,gb as zb,gc as zc,ha as Ga,hb as Ab,hc as Ac,ia as Ha,ib as Bb,ic as Bc,ja as Ia,jb as Cb,jc as Cc,kb as Db,kc as Dc,lb as Eb,lc as Ec,mb as Fb,mc as Fc,n as ga,nb as Gb,nc as Gc,o as ha,ob as Hb,oc as Hc,pb as Ib,pc as Ic,qb as Jb,qc as Jc,rb as Kb,rc as Kc,sb as Lb,sc as Lc,tb as Mb,tc as Mc,ub as Nb,uc as Nc,vb as Ob,vc as Oc,w as ya,wb as Pb,wc as Pc,xa as La,xb as Qb,xc as Qc,ya as Ma,yb as Rb,yc as Rc,za as Na,zb as Sb,zc as Sc}from"./chunks/chunk-2ZMXX3Q6.js";import"./chunks/chunk-ALDHXLPS.js";import{E as Ea,f as ja,n as Da}from"./chunks/chunk-GKA54IJM.js";import{W as za,dc as Ja,ec as Ka,n as sa,o as ta,p as ua,qc as lb,r as va,rc as mb,s as wa,sc as nb,t as xa,tc as ob,uc as pb}from"./chunks/chunk-MNJ4NNSY.js";import{c as ca,d as da,f as ea,g as fa}from"./chunks/chunk-NUXRRNAB.js";import{$ as na,Ia as oa,X as ia,Y as ka,Z as la,Za as pa,_ as ma,_a as qa,cb as ra}from"./chunks/chunk-OJPCFDDY.js";import{$c as E,A as e,Bf as O,C as f,Fa as p,Fg as T,Kf as P,La as q,Lf as Q,Mf as R,Na as r,P as g,Q as h,Qa as s,Qc as y,Ra as t,Rh as X,Sc as z,Sf as S,Sh as Y,Ta as u,Ug as U,Uh as Z,Vg as V,Vh as _,Wg as W,Xc as A,Yc as B,Zc as C,_c as D,ad as F,bd as G,c as a,ca as i,d as b,da as j,dd as H,e as c,ea as k,f as d,fd as I,gd as J,ia as l,id as K,jd as L,ka as m,kf as M,la as n,lc as v,lf as N,ma as o,uc as w,wc as x}from"./chunks/chunk-PFSD3DAN.js";export{A as BASELINE_ITEM_FORMAT_VERSION,i as BUILTIN_ITEM_TYPE_VALUES,o as CONFIDENCE_TEXT_VALUES,oa as CONTEXT_OUTPUT_VALUES,B as CURRENT_ITEM_FORMAT_VERSION,sa as DEFAULT_TERMINAL_TRANSITION_POLICY,l as DEPENDENCY_KIND_VALUES,e as EXIT_CODE,n as ISSUE_SEVERITY_VALUES,j as ITEM_TYPE_VALUES,qa as NEXT_OUTPUT_VALUES,$ as PM_CLI_EXPECTED_ERROR_NAME,da as PM_GITIGNORE_END,ca as PM_GITIGNORE_START,f as PmCliError,qb as PmClient,m as RISK_VALUES,ga as SEARCH_EXTENSION_FLAG_DEFINITIONS,k as STATUS_VALUES,O as acquireLock,wb as aggregate,Vc as analyzeSdkActionCoverage,Ib as append,N as appendHistoryEntry,va as applyTerminalOrderingPolicy,L as canonicalDocument,qc as claim,rc as claimNext,E as classifyItemFormatVersion,ha as clearWorkspaceContractsCache,pc as close,wa as closeItem,zc as closeTask,zb as comments,fb as commitImportedItem,Kb as config,rb as context,tc as copy,nc as create,M as createHistoryEntry,aa as createPmCliExpectedError,uc as deleteItem,Gb as deps,Fb as docs,yb as duplicates,C as effectiveItemFormatVersion,eb as emptyImportedDocument,fa as ensurePmGitignore,db as ensureTrackerInitialized,Ac as extension,Cc as extensionActivate,Dc as extensionDeactivate,Bc as extensionList,Cb as files,Db as filesDiscover,Eb as filesLookup,wc as focus,hc as gc,R as generateItemId,ub as get,v as getActiveExtensionRegistrations,Rc as getContracts,u as getHistoryPath,t as getItemPath,ea as getPmGitignoreBlock,s as getSettingsPath,Qc as getWorkspaceContracts,Hb as graph,gc as health,lc as historyCompact,mc as historyCompactBulk,ic as historyRedact,jc as historyRepair,kc as historyRepairAll,Jb as init,ba as isPmCliExpectedError,H as isTerminalStatus,h as isTimestampLiteral,Z as jaccardSimilarity,Bb as learnings,sb as list,W as listAllItemMetadata,Fa as loadCreateTemplateOptions,U as locateItem,vb as next,D as normalizeItemFormatVersion,Q as normalizeItemId,I as normalizeItemMetadata,P as normalizeRawItemId,X as normalizeSimilarityText,G as normalizeStatusInput,Ab as notes,g as nowIso,Nc as packageActivate,Mc as packageCatalog,Oc as packageDeactivate,Kc as packageDescribe,Ic as packageDoctor,Gc as packageInstall,Ec as packageLifecycle,Fc as packageList,Jc as packageManage,Lc as packageReload,Hc as packageUninstall,S as parseTags,a as pathExists,yc as pauseTask,ac as profile,dc as profileApply,ec as profileLint,bc as profileList,cc as profileShow,Ma as readBooleanOption,Na as readCsvListOption,b as readFileIfExists,V as readLocatedItem,Sc as readRequiredString,T as readSettings,La as readStringOption,sc as release,d as removeFileIfExists,la as renderCalendarMarkdown,ma as renderCalendarToon,ib as renderGuideMarkdown,ua as requireTerminalReason,ka as resolveCalendarOutputFormat,gb as resolveGuideOutputFormat,q as resolveImplicitPmRoot,p as resolveItemTypeRegistry,r as resolvePmRoot,z as resolveRuntimeFieldRegistry,y as resolveRuntimeStatusRegistry,ta as resolveTerminalReason,vc as restore,Uc as runAction,x as runActiveOnReadHooks,w as runActiveOnWriteHooks,ja as runAggregate,na as runCalendar,xa as runClose,jb as runCompletion,pa as runContext,Aa as runCopy,Ba as runDelete,Ka as runDuplicates,Ca as runFocus,Da as runGet,hb as runGuide,ia as runList,ra as runNext,kb as runReindex,ya as runRestore,Ea as runSearch,Ja as runStats,Ha as runTemplatesList,Ga as runTemplatesSave,Ia as runTemplatesShow,lb as runTestRunsList,nb as runTestRunsLogs,pb as runTestRunsResume,mb as runTestRunsStatus,ob as runTestRunsStop,za as runUpdate,Tc as runWithActiveExtensions,F as scanItemFormatVersions,Lb as schema,Sb as schemaAddField,Qb as schemaAddStatus,Ob as schemaAddType,Wb as schemaApplyPreset,Xb as schemaInferTypes,Mb as schemaList,Ub as schemaListFields,_b as schemaRemapStatus,Tb as schemaRemoveField,Rb as schemaRemoveStatus,Pb as schemaRemoveType,Zb as schemaRenameField,Yb as schemaRenameType,Nb as schemaShow,Vb as schemaShowField,$b as schemaShowStatus,_ as scoreItemSimilarity,tb as search,cb as selectImportAuthor,K as serializeItemDocument,J as splitFrontMatter,xc as startTask,xb as stats,Pa as toEstimatedMinutesValue,Ua as toImportBoolean,Ya as toImportConfidence,Ta as toImportInteger,ab as toImportLinkedDocs,$a as toImportLinkedFiles,bb as toImportLinkedTests,_a as toImportLogEntries,Za as toImportNormalizedEnum,Xa as toImportNumberMap,Qa as toImportPriority,Sa as toImportStatus,Va as toImportStringList,Wa as toImportStringMap,Ra as toImportTags,Oa as toNonEmptyImportString,Y as tokenizeSimilarityText,oc as update,Pc as upgrade,fc as validate,c as writeFileAtomic};
2
2
  //# sourceMappingURL=sdk-runtime.js.map
@@ -1,2 +1,2 @@
1
- import{A as t,B as u,C as v,D as w,E as x,F as y,G as z,H as A,I as B,J as C,K as D,L as E,M as F,N as G,O as H,P as I,Q as J,R as K,S as L,T as M,U as N,V as O,W as P,X as Q,Y as R,f as c,g as d,l as e,m as f,n as g,o as h,p as i,q as j,r as k,s as l,t as m,u as n,v as o,w as p,x as q,y as r,z as s}from"./chunks/chunk-T45OHXDW.js";import"./chunks/chunk-RAFUN7IX.js";import"./chunks/chunk-SVV3DQES.js";import"./chunks/chunk-V663653R.js";import"./chunks/chunk-D7I3TUGV.js";import"./chunks/chunk-Q3VOP62W.js";import"./chunks/chunk-SXECIECW.js";import"./chunks/chunk-WSI5KZQJ.js";import"./chunks/chunk-R6RKEYYW.js";import"./chunks/chunk-4AVFKHHC.js";import"./chunks/chunk-FDBRXV25.js";import"./chunks/chunk-DQGJ2RWT.js";import"./chunks/chunk-GU3TSEHD.js";import"./chunks/chunk-343QETLI.js";import"./chunks/chunk-AOBDLU4T.js";import"./chunks/chunk-5PBP2ZP3.js";import"./chunks/chunk-JFZIS6JF.js";import"./chunks/chunk-JQ4NZ5EB.js";import"./chunks/chunk-AYRUGRNS.js";import"./chunks/chunk-MCS73BKB.js";import{a,j as b}from"./chunks/chunk-SD3YXU2U.js";import"./chunks/chunk-CHOQ2VAW.js";import"./chunks/chunk-3ZJRFYY2.js";import"./chunks/chunk-E7BFPLUZ.js";import"./chunks/chunk-XPOQQJTX.js";import"./chunks/chunk-F4NREH3G.js";import"./chunks/chunk-AJE3AHPD.js";import"./chunks/chunk-ZFBWCKYF.js";import"./chunks/chunk-SV3YQ4RY.js";import"./chunks/chunk-BP6EMEDP.js";import"./chunks/chunk-DWOAOZHZ.js";import"./chunks/chunk-NE5VRDAI.js";import"./chunks/chunk-PECV7L5T.js";import"./chunks/chunk-M357ZCOR.js";import"./chunks/chunk-OXY3SJ3N.js";import"./chunks/chunk-TPKDJ5WL.js";import"./chunks/chunk-JC6FKIFM.js";import"./chunks/chunk-FB7G2HY2.js";import"./chunks/chunk-3KFVGGRE.js";import"./chunks/chunk-CA3BURYF.js";import"./chunks/chunk-QJ7C3JIW.js";import"./chunks/chunk-C3YABSJK.js";import"./chunks/chunk-L6LGKJX3.js";import"./chunks/chunk-RUAU5OSH.js";import"./chunks/chunk-5ZKQPA44.js";import"./chunks/chunk-E2ZSLTOP.js";import"./chunks/chunk-MDTH7SAE.js";import"./chunks/chunk-4OVGQW22.js";import"./chunks/chunk-RSIC5OPE.js";import"./chunks/chunk-M4VEE3FK.js";import"./chunks/chunk-A6KGKEWT.js";import"./chunks/chunk-R6LSRGPS.js";import"./chunks/chunk-UVVXHGYS.js";import"./chunks/chunk-HS7OVAUN.js";export{e as activateExtensionForTest,M as assertExtensionBlueprint,L as assertExtensionCapabilityUsage,t as assertExtensionDeactivated,P as assertExtensionManifestCompatible,O as assertExtensionManifestMatchesBlueprint,Q as assertExtensionPreflight,u as assertPackageManifest,N as assertProjectProfile,v as assertRegisteredCommandContract,F as assertRegisteredCommandOverride,B as assertRegisteredExporter,w as assertRegisteredFlags,x as assertRegisteredHook,A as assertRegisteredImporter,C as assertRegisteredItemField,D as assertRegisteredItemType,K as assertRegisteredMigration,G as assertRegisteredParserOverride,H as assertRegisteredPreflightOverride,E as assertRegisteredProfile,I as assertRegisteredRendererOverride,y as assertRegisteredSearchProvider,J as assertRegisteredServiceOverride,z as assertRegisteredVectorStoreAdapter,R as createExtensionTestHarness,f as deactivateExtensionForTest,a as describeExtensionActivation,c as describeExtensionBlueprint,d as lintExtensionBlueprint,b as renderExtensionSurfaceMarkdown,g as runRegisteredCommandForTest,l as runRegisteredCommandOverrideForTest,s as runRegisteredExporterForTest,i as runRegisteredHookForTest,r as runRegisteredImporterForTest,q as runRegisteredMigrationForTest,h as runRegisteredMutationGuardForTest,j as runRegisteredParserOverrideForTest,k as runRegisteredPreflightOverrideForTest,m as runRegisteredRendererOverrideForTest,o as runRegisteredSearchProviderForTest,n as runRegisteredServiceOverrideForTest,p as runRegisteredVectorStoreAdapterForTest};
1
+ import{A as t,B as u,C as v,D as w,E as x,F as y,G as z,H as A,I as B,J as C,K as D,L as E,M as F,N as G,O as H,P as I,Q as J,R as K,S as L,T as M,U as N,V as O,W as P,X as Q,Y as R,f as c,g as d,l as e,m as f,n as g,o as h,p as i,q as j,r as k,s as l,t as m,u as n,v as o,w as p,x as q,y as r,z as s}from"./chunks/chunk-CBLA33YK.js";import"./chunks/chunk-2ZMXX3Q6.js";import"./chunks/chunk-ALDHXLPS.js";import"./chunks/chunk-GKA54IJM.js";import"./chunks/chunk-MNJ4NNSY.js";import{o as a,wa as b}from"./chunks/chunk-NUXRRNAB.js";import"./chunks/chunk-OJPCFDDY.js";import"./chunks/chunk-PFSD3DAN.js";export{e as activateExtensionForTest,M as assertExtensionBlueprint,L as assertExtensionCapabilityUsage,t as assertExtensionDeactivated,P as assertExtensionManifestCompatible,O as assertExtensionManifestMatchesBlueprint,Q as assertExtensionPreflight,u as assertPackageManifest,N as assertProjectProfile,v as assertRegisteredCommandContract,F as assertRegisteredCommandOverride,B as assertRegisteredExporter,w as assertRegisteredFlags,x as assertRegisteredHook,A as assertRegisteredImporter,C as assertRegisteredItemField,D as assertRegisteredItemType,K as assertRegisteredMigration,G as assertRegisteredParserOverride,H as assertRegisteredPreflightOverride,E as assertRegisteredProfile,I as assertRegisteredRendererOverride,y as assertRegisteredSearchProvider,J as assertRegisteredServiceOverride,z as assertRegisteredVectorStoreAdapter,R as createExtensionTestHarness,f as deactivateExtensionForTest,a as describeExtensionActivation,c as describeExtensionBlueprint,d as lintExtensionBlueprint,b as renderExtensionSurfaceMarkdown,g as runRegisteredCommandForTest,l as runRegisteredCommandOverrideForTest,s as runRegisteredExporterForTest,i as runRegisteredHookForTest,r as runRegisteredImporterForTest,q as runRegisteredMigrationForTest,h as runRegisteredMutationGuardForTest,j as runRegisteredParserOverrideForTest,k as runRegisteredPreflightOverrideForTest,m as runRegisteredRendererOverrideForTest,o as runRegisteredSearchProviderForTest,n as runRegisteredServiceOverrideForTest,p as runRegisteredVectorStoreAdapterForTest};
2
2
  //# sourceMappingURL=sdk-testing.js.map
@@ -1,2 +1,3 @@
1
- import{a as XC,b as YC,c as qC,d as JC,e as QC,f as ZC,g as eE,h as tE,i as rE}from"./chunks/chunk-A3XQ7VPU.js";import{a as $C,b as VC,c as WC,d as zC,e as KC,f as $_,g as V_,h as W_,i as z_,j as K_,k as j_,l as X_,m as Y_,n as q_,o as J_,p as Q_,q as Z_,r as em}from"./chunks/chunk-YCCDXBNU.js";import{A as bE,B as PE,C as LE,D as wE,E as ME,F as kE,G as DE,H as GE,I as vE,J as FE,K as UE,L as HE,M as BE,N as $E,O as VE,P as WE,Q as zE,R as KE,S as jE,T as XE,U as YE,V as qE,W as JE,X as QE,Y as ZE,a as nE,b as oE,c as iE,d as sE,e as aE,f as pE,g as dE,h as cE,i as _E,j as mE,k as lE,l as uE,m as fE,n as hE,o as TE,p as AE,q as CE,r as EE,s as gE,t as SE,u as OE,v as yE,w as RE,x as IE,y as NE,z as xE}from"./chunks/chunk-T45OHXDW.js";import{$ as Xd,$a as Zc,A as pC,Aa as Ic,Ab as I_,B as dC,Ba as Nc,Bb as N_,C as cC,Ca as xc,Cb as x_,D as _C,Da as bc,Db as b_,E as mC,Ea as Pc,Eb as P_,F as lC,Fa as Lc,Fb as L_,G as uC,Ga as wc,Gb as w_,H as fC,Ha as Mc,Hb as M_,I as EC,Ia as kc,Ib as k_,J as up,Ja as Dc,Jb as D_,K as Ld,Ka as Gc,Kb as G_,L as wd,La as vc,Lb as v_,M as Md,Ma as Fc,Mb as F_,N as kd,Na as Uc,Nb as U_,O as Dd,Oa as Hc,Ob as H_,P as Gd,Pa as Bc,Pb as B_,Q as vd,Qa as $c,R as Fd,Ra as Vc,S as Ud,Sa as Wc,T as Hd,Ta as zc,U as Bd,Ua as Kc,V as $d,Va as jc,W as Vd,Wa as Xc,X as Wd,Xa as Yc,Y as zd,Ya as qc,Z as Kd,Za as Jc,_ as jd,_a as Qc,a as oi,aa as Yd,ab as e_,b as ii,ba as qd,bb as t_,c as si,ca as Jd,cb as r_,d as Hh,da as Qd,db as n_,e as Bh,ea as Zd,eb as o_,f as pi,fa as ec,fb as i_,g as Xh,ga as tc,gb as s_,h as Yh,ha as rc,hb as a_,i as qh,ia as nc,ib as p_,j as Jh,ja as fe,jb as d_,k as Qh,ka as P,kb as c_,l as Zh,la as _c,lb as __,m as eT,ma as mc,mb as m_,n as tT,na as lc,nb as l_,o as li,oa as uc,ob as u_,p as rT,pa as fc,pb as f_,q as nT,qa as hc,qb as h_,r as oT,ra as Tc,rb as T_,s as iT,sa as Ac,sb as A_,t as sT,ta as Cc,tb as C_,u as aT,ua as Ec,ub as E_,v as as,va as gc,vb as g_,w as ha,wa as Sc,wb as S_,x as Ta,xa as Oc,xb as O_,y as Aa,ya as yc,yb as y_,z as Ca,za as Rc,zb as R_}from"./chunks/chunk-RAFUN7IX.js";import{a as hC,b as TC,c as AC,d as CC}from"./chunks/chunk-SVV3DQES.js";import{$ as HC,A as Ap,B as Cp,C as Ep,D as gp,E as Sp,F as Op,G as yp,H as Rp,I as bC,J as PC,K as pd,L as dd,M as cd,N as _d,O as md,P as ld,Q as ud,R as fd,S as LC,T as wC,U as MC,V as kC,W as DC,X as GC,Y as vC,Z as FC,_ as UC,a as Ii,b as Yi,ba as hd,c as qi,ca as BC,d as Ji,da as Td,e as VA,ea as Ad,f as ya,fa as Cd,g as WA,ga as Ed,h as zA,ha as gd,i as Ra,ia as Sd,j as Ia,ja as Od,k as Na,ka as yd,l as KA,la as Rd,ma as Id,n as jA,na as Nd,o as XA,oa as xd,p as YA,pa as bd,q as xa,qa as Pd,r as ba,ra as oc,s as qA,sa as ic,t as Ya,ta as sc,u as qa,ua as ac,v as Ja,va as pc,w as Qa,wa as dc,x as fp,xa as cc,y as hp,z as Tp}from"./chunks/chunk-V663653R.js";import"./chunks/chunk-D7I3TUGV.js";import{a as ga}from"./chunks/chunk-Q3VOP62W.js";import{a as Ti}from"./chunks/chunk-SXECIECW.js";import{a as oe,b as ie,c as se,d as ae,e as pe,f as de,g as ce,h as _e,i as me,j as le,k as ue,l as Ip,m as Np,n as xp,o as bp,p as Pp,q as Lp,r as wp,s as Mp,t as kp,u as Dp,v as Gp,w as vp,x as Fp,y as Up}from"./chunks/chunk-WSI5KZQJ.js";import{a as ss}from"./chunks/chunk-R6RKEYYW.js";import{b as Ka,c as ja,d as Xa}from"./chunks/chunk-4AVFKHHC.js";import{a as za}from"./chunks/chunk-FDBRXV25.js";import{b as Pa,c as La,d as wa,e as Ma,f as ka,g as Da,h as Ga,i as va,j as Fa,k as Ua,l as Ha,m as Ba,n as $a,o as Va,p as Wa}from"./chunks/chunk-DQGJ2RWT.js";import{a as js}from"./chunks/chunk-GU3TSEHD.js";import{a as yC,b as RC,c as IC,d as NC}from"./chunks/chunk-343QETLI.js";import{a as is}from"./chunks/chunk-AOBDLU4T.js";import{a as Ai,b as Ci,c as Ei,d as gi,e as Si,f as Oi,g as yi,h as Ri}from"./chunks/chunk-5PBP2ZP3.js";import{a as Ea}from"./chunks/chunk-JFZIS6JF.js";import{a as Sa}from"./chunks/chunk-JQ4NZ5EB.js";import{a as Ks}from"./chunks/chunk-AYRUGRNS.js";import{a as ne,b as Za,c as ep}from"./chunks/chunk-MCS73BKB.js";import{A as ip,B as sp,a as MA,d as Z,e as ee,f as te,g as re,h as ia,j as sa,k as aa,l as pa,p as da,q as ca,r as _a,s as ma,t as la,u as ua,v as fa,w as tp,x as rp,y as np,z as op}from"./chunks/chunk-SD3YXU2U.js";import"./chunks/chunk-CHOQ2VAW.js";import{D as ta,E as ra,F as na,G as oa,a as Kh,b as jh,c as di,d as ci,f as _i,g as mi,h as kA,i as DA,j as Xs,k as Ys,l as qs,m as Js,n as GA,o as Qs,p as Zs,q as ea}from"./chunks/chunk-3ZJRFYY2.js";import{a as jC}from"./chunks/chunk-OAC5NIV4.js";import{A as iC,B as sC,C as aC,D as _p,E as mp,F as lp,G as gC,H as SC,I as OC,J as zp,K as Kp,L as jp,M as Xp,N as Yp,O as qp,P as Jp,Q as Qp,R as Zp,S as ed,T as td,U as rd,V as nd,W as od,X as id,Y as sd,Z as ad,a as $h,b as Vh,c as Wh,d as zh,e as hi,f as GT,g as IA,h as vA,i as FA,j as UA,k as HA,l as BA,m as Oa,n as $A,o as ap,p as pp,q as dp,r as cp,s as JA,t as QA,u as ZA,v as eC,w as tC,x as rC,y as nC,z as oC}from"./chunks/chunk-E7BFPLUZ.js";import{$ as vi,A as JT,B as QT,C as ZT,D as eA,E as tA,F as rA,G as nA,H as oA,I as iA,J as sA,K as aA,L as pA,M as dA,N as cA,O as _A,P as mA,Q as lA,R as uA,S as fA,T as hA,U as J,V as Li,W as wi,X as Mi,Y as ki,Z as Di,_ as Gi,a as _T,aa as Fi,b as mT,ba as Ui,c as lT,ca as Hi,d as uT,da as Bi,e as fT,ea as $i,f as hT,fa as Vi,g as TT,ga as Wi,h as ui,ha as zi,i as Ni,ia as Ki,j as xi,ja as Q,k as bi,ka as ji,l as Pi,la as TA,m as vT,ma as AA,n as FT,na as CA,o as UT,oa as Xi,p as HT,pa as EA,q as BT,r as $T,s as VT,t as WT,u as zT,v as KT,w as jT,x as XT,y as YT,z as qT}from"./chunks/chunk-XPOQQJTX.js";import{a as Hp,b as Bp,c as $p,d as Vp,e as xC,n as Wp}from"./chunks/chunk-F4NREH3G.js";import"./chunks/chunk-AJE3AHPD.js";import{a as Lr,b as wr,c as Mr,d as kr,e as Dr,f as Gr,g as vr,h as Fr,i as Ur,j as Hr,k as Br,l as $r,m as Vr,n as Wr,o as zr,p as Kr,q}from"./chunks/chunk-ZFBWCKYF.js";import{A as ti,B as ri,C as ni,a as jr,b as Xr,c as Yr,d as qr,e as Jr,f as Qr,g as Zr,h as en,i as tn,j as rn,k as nn,l as on,m as sn,n as an,o as pn,p as dn,q as cn,r as jo,s as Xo,t as Yo,u as qo,v as Jo,x as Qo,y as Zo,z as ei}from"./chunks/chunk-SV3YQ4RY.js";import{A as Hs,B as Bs,C as $s,D as Vs,E as Ws,P as zs,p as Ns,s as ws,t as Ms,u as ks,v as Ds,w as Gs,x as vs,y as Fs,z as Us}from"./chunks/chunk-BP6EMEDP.js";import{a as xs,b as wA,c as bs,d as Ps,e as Ls}from"./chunks/chunk-DWOAOZHZ.js";import{b as ls,c as us,d as fs,e as hs,f as Ts,g as As,h as Cs,i as Es,j as gs,k as Ss,l as Os,m as ys,n as Rs,o as Is}from"./chunks/chunk-NE5VRDAI.js";import{a as NA,b as xA,c as bA,d as PA,e as LA,f as ps,g as ds,h as cs,i as _s,j as ms,k as v}from"./chunks/chunk-PECV7L5T.js";import{a as os}from"./chunks/chunk-M357ZCOR.js";import{a as ns}from"./chunks/chunk-OXY3SJ3N.js";import{b as ts,c as rs}from"./chunks/chunk-TPKDJ5WL.js";import{a as Qi,b as Zi,c as es}from"./chunks/chunk-JC6FKIFM.js";import"./chunks/chunk-FB7G2HY2.js";import{a as pT,b as dT,c as cT,d as ST,e as OT,f as yT,g as RT,k as IT,l as NT,m as xT,n as bT,o as PT,p as LT,q as wT,r as MT,s as kT,t as DT,u as fi}from"./chunks/chunk-3KFVGGRE.js";import{a as Fh,b as Uh}from"./chunks/chunk-CA3BURYF.js";import"./chunks/chunk-QJ7C3JIW.js";import{a as Lh,b as wh,c as Mh,d as kh,e as Dh,h as Gh,i as vh,j as ai}from"./chunks/chunk-C3YABSJK.js";import{a as AT,b as CT,c as ET,d as gT}from"./chunks/chunk-L6LGKJX3.js";import{$ as co,A as Gn,Aa as vo,B as vn,Ba as Fo,C as Fn,Ca as Uo,D as Un,Da as Ho,E as Hn,Ea as Bo,F as Bn,Fa as $o,G as $n,Ga as Vo,H as Vn,Ha as Wo,I as Wn,Ia as zo,J as zn,Ja as Ko,K as Kn,L as jn,M as Xn,N as Yn,O as qn,P as Jn,Q as Qn,R as Zn,S as eo,T as to,U as ro,V as no,W as oo,X as io,Y as so,Z as ao,_ as po,aa as _o,b as _n,ba as mo,c as mn,ca as lo,d as ln,da as uo,e as un,ea as fo,f as fn,fa as ho,g as hn,ga as To,h as Tn,ha as Ao,i as An,ia as Co,j as Cn,ja as Eo,k as En,ka as go,l as gn,la as So,m as Sn,ma as Oo,n as On,na as yo,o as yn,oa as Ro,p as Rn,pa as Io,q as In,qa as No,r as Nn,ra as xo,s as xn,sa as bo,t as bn,ta as Po,u as Pn,ua as Lo,v as Ln,va as wo,w as wn,wa as Mo,x as Mn,xa as ko,y as kn,ya as Do,z as Dn,za as Go}from"./chunks/chunk-RUAU5OSH.js";import{a as gA,b as SA,c as OA,d as yA,e as RA}from"./chunks/chunk-5ZKQPA44.js";import"./chunks/chunk-E2ZSLTOP.js";import{$ as ch,A as j,Aa as yh,Ba as Rh,C as zf,Ca as Ih,Da as Nh,E as Kf,Ha as Y,I as jf,Ia as xh,J as Xf,Ja as bh,K as Yf,Ka as Ph,L as qf,M as Jf,O as Qf,P as Zf,Q as eh,R as th,S as rh,T as nh,U as oh,V as ih,W as sh,X as ah,Y as X,Z as ph,_ as dh,a as Gm,aa as _h,b as vm,ba as mh,c as Fm,ca as lh,d as Um,da as uh,e as Gl,ea as fh,f as vl,fa as hh,ga as Th,h as Qu,ha as Ah,ia as Ch,j as Zu,ja as Tr,k as ef,ka as Ar,l as tf,la as Cr,m as rf,ma as Er,n as uf,na as gr,oa as Sr,p as ff,pa as Or,qa as yr,r as hf,ra as Rr,s as Tf,sa as Ir,t as Af,ta as Nr,u as Cf,ua as xr,v as Sf,va as br,w as Of,wa as Pr,x as Pf,xa as Eh,y as Lf,ya as gh,z as wf,za as Sh}from"./chunks/chunk-MDTH7SAE.js";import{a as Xu,b as Yu}from"./chunks/chunk-4OVGQW22.js";import{b as yf,c as Rf,d as If}from"./chunks/chunk-RSIC5OPE.js";import{a as Ef}from"./chunks/chunk-M4VEE3FK.js";import{a as Oh}from"./chunks/chunk-A6KGKEWT.js";import{a as mr,b as nf,c as of,d as sf,e as af,f as pf,g as df,h as cf,i as _f,j as mf,k as lf}from"./chunks/chunk-R6LSRGPS.js";import{k as gf}from"./chunks/chunk-UVVXHGYS.js";import{$ as Wm,$b as Ze,$c as mt,$d as Cu,A as ke,Aa as jm,Ab as Qe,Ac as Pl,Ad as Yl,Ae as Ut,Af as lr,B as bm,Bb as x,Bc as Ll,Be as Ht,Bf as bf,C as De,Cb as nl,Cc as wl,Ce as Bt,Cf as Mf,Da as ze,Dc as K,Dd as ql,De as $t,Df as kf,E as Pm,Ea as Xm,Eb as ol,Ec as Ml,Ed as Jl,Ee as Vt,Ef as Df,Fa as Ym,Fc as kl,Fd as Ql,Fe as Wt,Ff as Gf,Ga as qm,Gb as il,Gc as Dl,Ge as zt,H as Lm,Ha as Jm,Hd as Zl,He as Kt,Hf as vf,Id as eu,Ie as jt,If as Ff,Ja as Ke,Jd as tu,Je as Xt,Jf as Uf,K as wm,Ka as je,Kd as ru,Ke as Yt,Kf as Hf,La as k,Lc as Fl,Ld as nu,Le as qt,Lf as ur,Md as ou,Me as Jt,Mf as fr,N as Mm,Nc as it,Nd as iu,Ne as Qt,Nf as hr,Oa as Xe,Oc as Ul,Od as su,Oe as Zt,Of as Bf,P as V,Pa as Ye,Pc as st,Pd as au,Pe as er,Q as W,Qd as pu,Qe as vu,Qf as $f,R as Ge,Ra as qe,Rc as Hl,Rd as du,Re as Fu,Rf as Vf,S as ve,Sd as cu,Sf as Wf,T as km,Tb as sl,Td as _u,Te as Uu,Ub as al,Uc as Bl,Ud as mu,Ue as Hu,V as Dm,Vb as pl,Vc as $l,Vd as lu,W as Hm,Wc as at,Wd as uu,X as Bm,Xb as dl,Xc as pt,Xd as fu,Xe as Bu,Yb as cl,Yc as dt,Yd as hu,Ye as $u,Z as $m,Zc as ct,Zd as Tu,Ze as tr,_ as Vm,_b as _l,_c as _t,_d as Au,_e as rr,aa as Fe,ad as lt,ae as Eu,b as Pe,ba as Ue,bb as Qm,bc as et,bd as Vl,be as gu,c as Le,ca as He,cc as tt,cd as Wl,ce as Su,cf as Vu,d as we,de as Ou,df as Wu,ec as ml,ed as ut,ee as yu,ef as zu,f as Me,fc as ll,fd as ft,fe as Ru,ff as Ku,ga as Be,gc as ul,gd as zl,ge as Iu,h as Sm,hc as fl,hd as ht,he as Nu,hf as ju,i as Om,ia as $e,ib as D,ic as hl,id as Tt,ie as xu,j as ym,ja as Ve,jb as z,jc as Tl,jd as Kl,je as bu,ka as We,kb as Zm,kc as Al,kd as At,ke as Pu,kf as qu,lb as el,lc as rt,ld as Ct,le as Lu,lf as Ju,mb as T,mc as Cl,md as Et,me as wu,mf as nr,nb as tl,nc as El,nd as gt,ne as Mu,nf as or,oc as gl,od as b,oe as ku,of as ir,pc as Sl,pd as G,pe as Du,pf as sr,q as Rm,qc as Ol,qd as St,qe as Gu,qf as ar,rc as yl,rd as Ot,re as Pt,rf as pr,sc as Rl,sd as yt,se as Lt,t as Im,tc as Il,td as Rt,te as wt,tf as dr,uc as nt,ud as It,ue as Mt,uf as cr,v as Nm,vc as Nl,vd as Nt,ve as kt,vf as _r,wc as ot,wd as xt,we as Dt,xd as bt,xe as Gt,ya as zm,yb as rl,yc as xl,yd as jl,ye as vt,yf as Nf,z as xm,za as Km,zb as Je,zc as bl,zd as Xl,ze as Ft,zf as xf}from"./chunks/chunk-HS7OVAUN.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]="cc0d4dd1-20e8-59d4-acb5-9f8ed639d35f")}catch{}})();(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]="fa4eb88d-f50e-59fa-be7f-0cfb42931a73")}catch{}})();var u="https://schema.unbrained.dev/pm/corpus-shape/v1";function A(e,t){if(!Number.isSafeInteger(e)||e<=0)throw new TypeError(`Corpus shape ${t} must be a positive safe integer`);return e}function y(e,t){if(!Number.isSafeInteger(e)||e<0)throw new TypeError(`Corpus shape ${t} must be a non-negative safe integer`);return e}function Te(e){if(!(typeof e!="object"||e===null||Object.isFrozen(e))){for(let t of Object.values(e))Te(t);Object.freeze(e)}}function C(e){if(e.schema!==u)throw new TypeError(`Unsupported corpus shape schema: ${e.schema}`);if(e.name.trim().length===0||e.description.trim().length===0)throw new TypeError("Corpus shape name and description must be non-empty");if(A(e.hierarchy_depth,"hierarchy_depth"),A(e.hierarchy_fanout,"hierarchy_fanout"),y(e.age_span_days,"age_span_days"),A(e.history_entries_per_item,"history_entries_per_item"),y(e.comments_per_100_items,"comments_per_100_items"),y(e.notes_per_100_items,"notes_per_100_items"),y(e.learnings_per_100_items,"learnings_per_100_items"),A(e.author_cardinality,"author_cardinality"),A(e.component_count,"component_count"),e.edge_kind_mix.length===0||e.edge_kind_mix.some(r=>r.kind.trim().length===0||r.weight<=0))throw new TypeError("Corpus shape edge_kind_mix requires non-empty kinds with positive weights");if(e.terminal_statuses.some(r=>!e.custom_statuses.includes(r)))throw new TypeError("Corpus shape terminal_statuses must be declared in custom_statuses");let t=structuredClone(e);return Te(t),t}var L=[{kind:"implements",weight:5},{kind:"blocked_by",weight:2},{kind:"discovered_from",weight:2},{kind:"verifies",weight:2},{kind:"supersedes",weight:1},{kind:"related",weight:4}],E=Object.freeze({scratch:C({schema:u,name:"scratch",description:"Seconds-old, shallow project with minimal history.",hierarchy_depth:2,hierarchy_fanout:50,age_span_days:0,history_entries_per_item:1,comments_per_100_items:2,notes_per_100_items:1,learnings_per_100_items:1,edge_kind_mix:[{kind:"related",weight:1}],author_cardinality:2,component_count:1,include_cycles:!1,custom_types:[],custom_statuses:[],terminal_statuses:[],custom_fields:[]}),representative:C({schema:u,name:"representative",description:"Medium-lived project with rich evidence and typed lineage.",hierarchy_depth:5,hierarchy_fanout:8,age_span_days:730,history_entries_per_item:12,comments_per_100_items:30,notes_per_100_items:12,learnings_per_100_items:10,edge_kind_mix:L,author_cardinality:32,component_count:1,include_cycles:!1,custom_types:["Experiment"],custom_statuses:["review"],terminal_statuses:[],custom_fields:["domain"]}),"deep-graph":C({schema:u,name:"deep-graph",description:"Deep typed relationship graph with deterministic cycles.",hierarchy_depth:16,hierarchy_fanout:2,age_span_days:3650,history_entries_per_item:6,comments_per_100_items:15,notes_per_100_items:8,learnings_per_100_items:8,edge_kind_mix:L,author_cardinality:16,component_count:1,include_cycles:!0,custom_types:[],custom_statuses:[],terminal_statuses:[],custom_fields:[]}),"multi-decade":C({schema:u,name:"multi-decade",description:"Thirty-year event history with dense per-item evolution.",hierarchy_depth:6,hierarchy_fanout:6,age_span_days:10958,history_entries_per_item:24,comments_per_100_items:40,notes_per_100_items:20,learnings_per_100_items:16,edge_kind_mix:L,author_cardinality:64,component_count:1,include_cycles:!1,custom_types:["Program"],custom_statuses:["archived"],terminal_statuses:["archived"],custom_fields:["portfolio"]}),"disconnected-archive":C({schema:u,name:"disconnected-archive",description:"Multiple disconnected historical project components.",hierarchy_depth:4,hierarchy_fanout:10,age_span_days:7305,history_entries_per_item:8,comments_per_100_items:10,notes_per_100_items:5,learnings_per_100_items:6,edge_kind_mix:L,author_cardinality:24,component_count:5,include_cycles:!1,custom_types:["Archive"],custom_statuses:["archived"],terminal_statuses:["archived"],custom_fields:["archive_source"]})});function tm(){return Object.keys(E).sort().map(e=>E[e])}function rm(e){let t=e.trim().toLowerCase();if(!Object.hasOwn(E,t))throw new TypeError(`Unknown corpus shape "${e}". Available: ${Object.keys(E).join(", ")}`);return E[t]}var he=new WeakMap;function Ae(e,t){if(e===0)return[];let r=he.get(t);r===void 0&&(r=t.edge_kind_mix.flatMap(o=>Array.from({length:o.weight},()=>o.kind)),he.set(t,r));let n=[r[e%r.length]];return t.include_cycles&&e>2&&e%17===0&&n.push("related"),[...new Set(n)]}function nm(e,t,r,n=42){if(y(t,"item index"),A(r,"item count"),t>=r)throw new RangeError(`Corpus item index ${t} exceeds ${r}`);let o=Math.min(e.component_count,r),s=t%o,i=Math.floor(t/o),a=0,d=1;for(let $=0;$<e.hierarchy_depth;$+=1)a=Math.min(Number.MAX_SAFE_INTEGER,a+d),d=Math.min(Number.MAX_SAFE_INTEGER,d*e.hierarchy_fanout);let p=i%a,c=i-p,m=p===0?void 0:s+(c+Math.floor((p-1)/e.hierarchy_fanout))*o,_=Date.UTC(2026,0,1),N=e.age_span_days*864e5,be=new Date(_+(r===1?0:Math.round(t/(r-1)*N))).toISOString(),M=(t*37+n)%100;return{index:t,id:`pm-s${t.toString(36).padStart(7,"0")}`,...m===void 0?{}:{parent:`pm-s${m.toString(36).padStart(7,"0")}`},component:s,timestamp:be,author:`pm-corpus-agent-${(t+n)%Math.min(e.author_cardinality,r)}`,history_entry_count:e.history_entries_per_item,dependency_kinds:Ae(t,e),has_comment:M<e.comments_per_100_items,has_note:M<e.notes_per_100_items,has_learning:M<e.learnings_per_100_items,...e.custom_types.length>0&&t%11===0?{custom_type:e.custom_types[t%e.custom_types.length]}:{},...e.custom_statuses.length>0&&t%13===0?{custom_status:e.custom_statuses[t%e.custom_statuses.length]}:{}}}var F=class{shape;authors=new Set;components=new Set;depths=new Map;childCounts=new Map;edgeKinds={};expectedEdgeKinds={};annotations={comments:0,notes:0,learnings:0};annotationFields;planMismatches=[];itemCount=0;observedDepth=0;observedFanout=0;historyEntryCount=0;firstTimestamp=null;lastTimestamp=null;constructor(t){this.shape=t,this.annotationFields=[["comments","has_comment",t.comments_per_100_items],["notes","has_note",t.notes_per_100_items],["learnings","has_learning",t.learnings_per_100_items]]}recordMismatch(t,r){t&&this.planMismatches.push(r)}recordEdgeKinds(t,r){for(let n of r)t[n]=(t[n]??0)+1}add(t){this.itemCount+=1,this.authors.add(t.author),this.components.add(t.component),this.recordMismatch(this.depths.has(t.id),`duplicate_id:${t.id}`);let r=1;if(t.parent!==void 0){let n=this.depths.get(t.parent);this.recordMismatch(n===void 0,`parent_missing:${t.parent}`),r=(n??0)+1;let o=(this.childCounts.get(t.parent)??0)+1;this.childCounts.set(t.parent,o),this.observedFanout=Math.max(this.observedFanout,o)}this.depths.set(t.id,r),this.observedDepth=Math.max(this.observedDepth,r),this.historyEntryCount+=t.history_entry_count,this.recordMismatch(t.history_entry_count!==this.shape.history_entries_per_item,"history_entries_per_item:drift"),this.firstTimestamp=this.firstTimestamp===null||t.timestamp<this.firstTimestamp?t.timestamp:this.firstTimestamp,this.lastTimestamp=this.lastTimestamp===null||t.timestamp>this.lastTimestamp?t.timestamp:this.lastTimestamp;for(let[n,o]of this.annotationFields)this.annotations[n]+=Number(t[o]);this.recordEdgeKinds(this.edgeKinds,t.dependency_kinds),this.recordEdgeKinds(this.expectedEdgeKinds,Ae(t.index,this.shape))}finish(){let t=Math.min(this.shape.author_cardinality,this.itemCount),r=Math.min(this.shape.component_count,this.itemCount),n=[...this.planMismatches,...this.itemCount===0?["item_count:empty"]:[],...this.authors.size===t?[]:[`author_count:${this.authors.size}!=${t}`],...this.components.size===r?[]:[`component_count:${this.components.size}!=${r}`],...this.observedDepth<=this.shape.hierarchy_depth?[]:[`hierarchy_depth:${this.observedDepth}>${this.shape.hierarchy_depth}`],...this.observedFanout<=this.shape.hierarchy_fanout?[]:[`hierarchy_fanout:${this.observedFanout}>${this.shape.hierarchy_fanout}`]];for(let[i,,a]of this.annotationFields){let d=Math.floor(this.itemCount/100),p=this.itemCount%100,c=d*a+Math.max(0,a+p-100),m=d*a+Math.min(a,p),_=this.annotations[i];(_<c||_>m)&&n.push(`${i}:${_}!in[${c},${m}]`)}let o=new Set([...Object.keys(this.edgeKinds),...Object.keys(this.expectedEdgeKinds)]);for(let i of[...o].sort()){let a=this.edgeKinds[i]??0,d=this.expectedEdgeKinds[i]??0;a!==d&&n.push(`edge_kind:${i}:${a}!=${d}`)}let s=[...new Set(n)];return{shape:this.shape.name,item_count:this.itemCount,author_count:this.authors.size,component_count:this.components.size,hierarchy_depth:this.observedDepth,hierarchy_fanout:this.observedFanout,timestamp_range:{first:this.firstTimestamp,last:this.lastTimestamp},history_entry_count:this.historyEntryCount,annotations:{...this.annotations},edge_kinds:{...this.edgeKinds},matches_declaration:s.length===0,mismatches:s}}};function Ce(e){return new F(e)}function om(e,t){let r=Ce(e);for(let n of t)r.add(n);return r.finish()}(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]="1f6a4ff8-fc1e-5aac-8117-bae8f325b275")}catch{}})();function Ee(e){return e.agent_episode!==void 0?{id:e.agent_episode.id,source:"declared"}:{id:e.agent_instance?`inferred:instance:${e.agent_instance}`:`inferred:author:${e.author}:${e.ts.slice(0,13)}`,source:"inferred"}}function im(e,t,r){let n=t,o=new Set([e.id]);for(;n!==void 0&&!o.has(n.id);)o.add(n.id),n=n.parent_id?r.get(n.parent_id):void 0;return n===void 0}function sm(e){let t=[e];for(;t.length>0;){let r=t.pop();r.sort((n,o)=>n.entries[0].ts.localeCompare(o.entries[0].ts)||n.id.localeCompare(o.id)),t.push(...r.map(n=>n.children))}}function am(e=G,t=b){return t.map(r=>{let n=e.filter(o=>((r==="model"?o.model_environment_keys:o.provenance_environment_keys?.[r])?.length??0)>0||o.provenance_resolvers?.[r]!==void 0).map(o=>o.harness).sort();return{dimension:r,harnesses:n,covered:n.length>0}})}function pm(e,t=1){let r=new Map;for(let n of e){if(!n.agent_harness)continue;let o=r.get(n.agent_harness)??{harness:n.agent_harness,entries:0,observed:0,unavailable:0,legacy_missing:0};o.entries+=1,n.agent_model||n.agent_provenance?.model&&n.agent_provenance.model.value.length>0?o.observed+=1:n.agent_provenance?.model===null?o.unavailable+=1:o.legacy_missing+=1,r.set(n.agent_harness,o)}return[...r.values()].map(n=>{let o=n.observed+n.unavailable;return{...n,coverage:o===0?null:n.observed/o,inert:o>=t&&n.observed===0}}).sort((n,o)=>n.harness.localeCompare(o.harness))}function dm(e,t=b,r=1){let n=new Map;for(let o of e)if(o.agent_harness)for(let s of t){let i=`${o.agent_harness}\0${s}`,a=n.get(i)??{harness:o.agent_harness,dimension:s,entries:0,observed:0,unavailable:0,legacy_missing:0};a.entries+=1;let d=o.agent_provenance?.[s];d!=null&&d.value.length>0?a.observed+=1:d===null?a.unavailable+=1:a.legacy_missing+=1,n.set(i,a)}return[...n.values()].map(o=>{let s=o.observed+o.unavailable;return{...o,coverage:s===0?null:o.observed/s,inert:s>=r&&o.observed===0}}).sort((o,s)=>o.harness.localeCompare(s.harness)||o.dimension.localeCompare(s.dimension))}function cm(e){let t=[...e].sort((s,i)=>s.ts.localeCompare(i.ts)||s.author.localeCompare(i.author)||s.op.localeCompare(i.op)||s.before_hash.localeCompare(i.before_hash)||s.after_hash.localeCompare(i.after_hash)),r=new Map,n=new Map;for(let s of t){let i=s.agent_episode,a=Ee(s),d=`${a.source}:${a.id}`,p=r.get(d);if(p){p.entries.push(s);continue}let c={id:a.id,...i?.label===void 0?{}:{label:i.label},...i?.parent_id===void 0?{}:{parent_id:i.parent_id},source:a.source,entries:[s],children:[]};r.set(d,c),i!==void 0&&n.set(a.id,c)}let o=[];for(let s of r.values()){let i=s.parent_id?n.get(s.parent_id):void 0;i&&im(s,i,n)?i.children.push(s):o.push(s)}return sm(o),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]="80b8e2af-4dcf-59e8-bfbf-38124db887bf")}catch{}})();(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]="8c9a34bd-b77a-55ab-a5d1-3594cecfeb3f")}catch{}})();async function _m(){let e=k(process.cwd(),process.env.PM_PATH);await j(e,(t,r)=>X(t,r,{apply_runtime_defaults:!0}))}(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]="f48b9002-59dc-54d3-95de-36bf0d11b39a")}catch{}})();var ge="https://schema.unbrained.dev/pm/workspace-recipe/v1";function U(e,t){if(e===null||typeof e=="boolean"||typeof e=="string")return e;if(typeof e=="number"){if(!Number.isFinite(e))throw new Error(`Workspace recipe JSON number must be finite at ${t}`);return e}if(Array.isArray(e))return Object.freeze(e.map((r,n)=>U(r,`${t}[${n}]`)));if(typeof e!="object"||Object.getPrototypeOf(e)!==Object.prototype&&Object.getPrototypeOf(e)!==null)throw new Error(`Workspace recipe input must contain JSON values at ${t}`);return Object.freeze(Object.fromEntries(Object.entries(e).map(([r,n])=>[r,U(n,`${t}.${r}`)])))}function Se(e){if(e.schema!==ge)throw new Error(`Unsupported workspace recipe schema: ${e.schema}`);let t=V(e);if(e.operations.some(r=>r.action.trim().length===0||r.input===null||Array.isArray(r.input)))throw new Error("Workspace recipe operations require an action and object input");return Object.freeze({...t,operations:Object.freeze(e.operations.map((r,n)=>Object.freeze({action:r.action,input:U(r.input,`operations[${n}].input`)})))})}async function Oe(e,t){let r=Se(e);return W(r,t)}async function mm(e,t){return Oe(e,async()=>{let r=[];for(let[n,o]of e.operations.entries())r.push(await t(o,n));return 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]="a108f4d2-80c3-540e-821c-5acdf68eb7fa")}catch{}})();async function lm(){await Y()}import g from"node:fs";import H from"node:path";(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]="6748a283-bc93-5783-98c1-d1a7f2fdce4e")}catch{}})();var ye=300*1e3,um=3;function Cg(e){return(e?.trim()||"development").replace(/[^a-zA-Z0-9._-]/g,"_").replace(/^\./,"_")}function Eg(e,t){let r=t.trim();if(!/^[a-zA-Z0-9_-][a-zA-Z0-9._-]*$/.test(r))throw new TypeError("Compile-cache generation must be a safe non-empty filename token.");g.mkdirSync(e,{recursive:!0});let n=H.join(e,r);g.mkdirSync(n,{recursive:!0});let o=new Date;g.utimesSync(n,o,o);let s=g.readdirSync(e).filter(p=>p!==r).flatMap(p=>{try{return[{name:p,mtimeMs:g.statSync(H.join(e,p)).mtimeMs}]}catch(c){if(c instanceof Error&&"code"in c&&c.code==="ENOENT")return[];throw c}}).sort((p,c)=>c.mtimeMs-p.mtimeMs||p.name.localeCompare(c.name)),i=s.filter(p=>o.getTime()-p.mtimeMs<ye),a=Math.max(0,um-1-i.length),d=s.filter(p=>o.getTime()-p.mtimeMs>=ye).slice(a).map(p=>p.name).sort((p,c)=>p.localeCompare(c));for(let p of d)g.rmSync(H.join(e,p),{recursive:!0,force:!0,maxRetries:3,retryDelay:50});return{retained:r,removed:d}}import{createHash as fm}from"node:crypto";(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]="4586a8b2-07c8-53d4-9c5d-ca557ee07977")}catch{}})();var B=1;function S(e){e?.throwIfAborted()}function f(e,t){if(typeof e!="string"||e.trim().length===0)throw new TypeError(`Relationship graph ${t} must be non-empty`);return e.trim()}function O(e,t,r={}){let n=Date.parse(r.createdAt??new Date().toISOString());if(!Number.isFinite(n))throw new TypeError("Relationship graph createdAt must be a valid timestamp");let o=e.nodes(),s=e.edges(),i=t.list();return Object.freeze({version:B,fingerprint:fm("sha256").update(x({nodes:o,edges:s,kinds:i})).digest("hex"),created_at:new Date(n).toISOString(),nodes:o,edges:s,kinds:i})}function hm(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function I(e){if(!hm(e))throw new TypeError("Relationship graph snapshot must be an object");if(e.version!==B)throw new TypeError(`Unsupported relationship graph snapshot version: ${String(e.version)}`);if(!Array.isArray(e.nodes)||e.nodes.some(o=>typeof o!="string"))throw new TypeError("Relationship graph snapshot nodes must be strings");if(!Array.isArray(e.edges)||!Array.isArray(e.kinds))throw new TypeError("Relationship graph snapshot edges and kinds must be arrays");if(typeof e.created_at!="string"||!Number.isFinite(Date.parse(e.created_at)))throw new TypeError("Relationship graph snapshot created_at must be valid");if(typeof e.fingerprint!="string")throw new TypeError("Relationship graph snapshot fingerprint must be a string");let t=new D([]);for(let o of e.kinds)t.register(o);let r=new T(e.nodes,e.edges,t),n=O(r,t,{createdAt:e.created_at});if(n.fingerprint!==e.fingerprint)throw new TypeError("Relationship graph snapshot fingerprint mismatch");return{snapshot:n,registry:t,graph:r}}async function l(e,t){f(e.name,"adapter name");let r=f(t.workspace,"workspace");S(t.signal);let n=await e.read({...t,workspace:r});return S(t.signal),n===null?null:I(n)}async function w(e,t){let r=f(t.workspace,"workspace"),n=I(t.snapshot).snapshot,o=await l(e,{workspace:r,signal:t.signal});if(o?.snapshot.fingerprint===n.fingerprint)return{adapter:e.name,workspace:r,disposition:"current",fingerprint:n.fingerprint,previous_fingerprint:o.snapshot.fingerprint,node_count:n.nodes.length,edge_count:n.edges.length};if(S(t.signal),await e.replace({workspace:r,signal:t.signal,snapshot:n,expected_fingerprint:o?.snapshot.fingerprint??null}),(await l(e,{workspace:r,signal:t.signal}))?.snapshot.fingerprint!==n.fingerprint)throw new Error(`Relationship graph adapter "${e.name}" did not expose the replaced snapshot`);return{adapter:e.name,workspace:r,disposition:"written",fingerprint:n.fingerprint,...o?{previous_fingerprint:o.snapshot.fingerprint}:{},node_count:n.nodes.length,edge_count:n.edges.length}}function Tm(e,t={}){let r=e.map(I),n=new Map;for(let i of r)for(let a of i.snapshot.kinds){let d=n.get(a.kind);if(d&&x(d)!==x(a))throw new TypeError(`Conflicting federated relationship kind: ${a.kind}`);n.set(a.kind,a)}let o=new D([...n.values()].sort((i,a)=>i.kind.localeCompare(a.kind))),s=new T(new Set(r.flatMap(i=>[...i.snapshot.nodes])),r.flatMap(i=>[...i.snapshot.edges]),o);return O(s,o,t)}var R=class{name;#e=new Map;constructor(t="memory"){this.name=f(t,"adapter name")}async read(t){S(t.signal);let r=this.#e.get(f(t.workspace,"workspace"));return r?structuredClone(r):null}async replace(t){S(t.signal);let r=f(t.workspace,"workspace"),n=this.#e.get(r);if(t.expected_fingerprint!==void 0&&(n?.fingerprint??null)!==t.expected_fingerprint)throw new Error(`Relationship graph adapter conflict for ${r}`);this.#e.set(r,structuredClone(I(t.snapshot).snapshot))}async clear(t){S(t.signal);let r=f(t.workspace,"workspace"),n=this.#e.get(r);if(t.expected_fingerprint!==void 0&&(n?.fingerprint??null)!==t.expected_fingerprint)throw new Error(`Relationship graph adapter conflict for ${r}`);this.#e.delete(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]="423d6e5d-93e5-5f29-93e0-11ddca9c3156")}catch{}})();function Re(e,t){if(!Number.isInteger(e)||e<1)throw new TypeError(`Relationship graph ${t} must be a positive integer`);return e}function Am(e){let t=Re(e.nodeCount,"nodeCount"),r=Re(e.edgeStride??1,"edgeStride"),n=e.topology??"chain";if(!["chain","star","disconnected"].includes(n))throw new TypeError(`Unsupported relationship graph topology: ${n}`);let o=(e.kind??"related").trim(),s=(e.idPrefix??"node").trim();if(!o||!s)throw new TypeError("Relationship graph kind and idPrefix must be non-empty");let i=n==="disconnected"?0:Math.floor((t-1)/r);return{node_count:t,edge_count:i,edge_basis:"fixture_generated",nodes:{*[Symbol.iterator](){for(let a=0;a<t;a+=1)yield`${s}-${a}`}},edges:{*[Symbol.iterator](){if(n!=="disconnected")for(let a=r;a<t;a+=r)yield{source:`${s}-${n==="star"?0:a-r}`,target:`${s}-${a}`,kind:o}}}}}function h(e,t){if(!e)throw new Error(`Relationship graph adapter conformance: ${t}`)}async function Ie(e,t={}){let r=t.workspace?.trim()||"pm-graph-conformance",n=z(),o=O(new T(["a","b"],[{source:"a",target:"b",kind:"related"}],n),n,{createdAt:"2026-01-01T00:00:00.000Z"}),s=O(new T(["a","b","c"],[{source:"a",target:"b",kind:"related"},{source:"b",target:"c",kind:"blocked_by"}],n),n,{createdAt:"2026-01-02T00:00:00.000Z"}),i=[];h(await l(e,{workspace:r})===null,"workspace must start empty"),i.push({name:"empty-read",passed:!0});let a=await w(e,{workspace:r,snapshot:o});h(a.disposition==="written","first sync must write"),i.push({name:"atomic-replace",passed:!0}),(await e.read({workspace:r})).nodes.push("mutated-reader-copy"),h((await l(e,{workspace:r}))?.snapshot.nodes.length===2,"reads must not mutate stored state"),i.push({name:"read-isolation",passed:!0}),h((await w(e,{workspace:r,snapshot:o})).disposition==="current","identical sync must be idempotent"),i.push({name:"idempotent-sync",passed:!0}),await e.replace({workspace:r,snapshot:s,expected_fingerprint:o.fingerprint}),h((await l(e,{workspace:r}))?.snapshot.fingerprint===s.fingerprint,"replacement must become visible"),i.push({name:"replacement-visibility",passed:!0});let p=!1;try{await e.replace({workspace:r,snapshot:o,expected_fingerprint:o.fingerprint})}catch{p=!0}return h(p,"stale compare-and-swap must fail"),i.push({name:"stale-cas",passed:!0}),e.clear&&(await e.clear({workspace:r,expected_fingerprint:s.fingerprint}),h(await l(e,{workspace:r})===null,"clear must remove the workspace"),i.push({name:"clear",passed:!0})),{adapter:e.name,workspace:r,cases:Object.freeze(i),clear_supported:e.clear!==void 0}}function Cm(e){return Ie(new R,e?{workspace:e}:{})}(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]="2c3df51e-6b10-5da6-8340-126465d9c434")}catch{}})();(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]="5133d678-01f4-5164-aea7-2cc5ed42dd58")}catch{}})();import{createHash as Ne}from"node:crypto";(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]="54a3448c-719c-5404-a9b9-c3072a2fdce2")}catch{}})();function xe(e,t){if(typeof e!="string"||e.trim().length===0)throw new TypeError(`Relationship backfill ${t} must be non-empty`);return e.trim()}function zg(e,t){let r=xe(t.migrationId,"migrationId"),n=xe(t.author,"author"),o=Date.parse(t.timestamp);if(!Number.isFinite(o))throw new TypeError("Relationship backfill timestamp must be valid");let s=new Date(o).toISOString(),i=v(e,void 0,t.registry),a=i.graph.nodes(),d=i.graph.edges().map(_=>{let N=Ne("sha256").update(JSON.stringify([r,_.kind,_.source,_.target,_.createdAt??null,_.author??null,_.payload??null])).digest("hex").slice(0,24);return Object.freeze({eventId:`backfill:${r}:${N}`,relationshipId:`migration:${r}:${N}`,action:"add",edge:_,author:n,timestamp:s,reason:`Backfill ${r} from legacy item metadata`})}),p=Ne("sha256").update(JSON.stringify({migrationId:r,nodes:a,events:d})).digest("hex"),c=new Set([...t.existingEventIds??[]].filter(_=>typeof _=="string").map(_=>_.trim()).filter(Boolean)),m=d.filter(_=>!c.has(_.eventId));return Object.freeze({migration_id:r,fingerprint:p,nodes:a,events:Object.freeze(m),edge_count:d.length,skipped_existing_count:d.length-m.length,duplicate_dependency_rows:i.duplicateRows.length,dangling_reference_count:i.dangling.active.length+i.dangling.legacy_terminal.length})}(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]="7fc669d4-1db2-5636-8304-2c111a684726")}catch{}})();function jg(e){return e}function Xg(e){return e}function Yg(e){return e}function qg(e){return e}function Jg(e){return e}function Qg(e){return e}function Zg(e){return e}function eS(e){return e}function tS(e){return e}function rS(e){return e}function nS(e){return e}function oS(e){return e}function iS(e){return e}function sS(e){return{handled:!0,result:e}}function aS(){return{handled:!1}}function pS(e){return e}function dS(e){return e}function cS(e){return e}function _S(e){return e}function mS(e){return e}function lS(e){return e}function uS(e){return e}function fS(e){return e}function hS(e){return e}(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]="5bbfab95-010d-5507-ab01-f8f43943d295")}catch{}})();function Em(e={},t={}){return new P(t).extension(void 0,{...e,migrate:!0})}function gm(e={},t={}){return new P(t).packageMigrate(e)}(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]="99a9b24a-4bc7-50da-8333-e76086f0e303")}catch{}})();(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]="708c1c46-ce32-56ff-812f-71f825ad7ec4")}catch{}})();(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]="5e04dc9d-8e2d-5ef2-bf8b-6b18bd87c3bc")}catch{}})();(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]="4e336574-f00e-5296-a55f-7f27a264188c")}catch{}})();export{vr as ACTIVITY_COMMANDER_STRING_OPTION_CONTRACTS,Lo as ACTIVITY_FLAG_CONTRACTS,b as AGENT_PROVENANCE_DIMENSIONS,hn as AGGREGATE_FLAG_CONTRACTS,ro as APPEND_FLAG_CONTRACTS,at as BASELINE_ITEM_FORMAT_VERSION,LT as BRIEF_LIST_FIELDS,E as BUILTIN_CORPUS_SHAPES,G as BUILTIN_HARNESS_SIGNAL_DESCRIPTORS,Fe as BUILTIN_ITEM_TYPE_VALUES,ie as BUILTIN_PROFILES,kr as CALENDAR_COMMANDER_STRING_OPTION_CONTRACTS,Po as CALENDAR_FLAG_CONTRACTS,no as CLAIM_FLAG_CONTRACTS,qo as CLOSE_ACTION_OPTION_KEYS,eo as CLOSE_FLAG_CONTRACTS,to as CLOSE_MANY_FLAG_CONTRACTS,co as CLOSE_TASK_FLAG_CONTRACTS,Tn as COMMENTS_FLAG_CONTRACTS,zm as COMMON_MUTATION_COMMAND_OPTION_KEYS,Vo as COMPLETION_FLAG_CONTRACTS,We as CONFIDENCE_TEXT_VALUES,wn as CONFIG_FLAG_CONTRACTS,Dr as CONTEXT_COMMANDER_STRING_OPTION_CONTRACTS,VT as CONTEXT_EVALUATION_METRIC_NAMES,Mo as CONTEXT_FLAG_CONTRACTS,J as CONTEXT_OUTPUT_VALUES,XT as CONTEXT_PACKING_PROFILES,UT as CONTEXT_RELEVANCE_SERVICE,vT as CONTEXT_RELEVANCE_SIGNAL_NAMES,rA as CONTEXT_SIGNAL_SET_VERSION,tA as CONTEXT_SIGNAL_STORE_FORMAT_VERSION,$o as CONTRACTS_FLAG_CONTRACTS,Io as COPY_FLAG_CONTRACTS,Br as CREATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,Vr as CREATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,$r as CREATE_COMMANDER_STRING_OPTION_CONTRACTS,Rm as CREATE_DIRECT_CLOSE_REASON_DEFAULT,Oo as CREATE_FLAG_CONTRACTS,pt as CURRENT_ITEM_FORMAT_VERSION,sA as ContextSignalStore,qT as ContextUsageValidationError,_T as DEFAULT_AUTHOR_IDENTITY_VOCABULARY,FA as DEFAULT_CHILD_SAMPLE_LIMIT,PT as DEFAULT_COMPACT_LIST_FIELDS,Gf as DEFAULT_DERIVED_INDEX_MINIMUM_ITEMS,mp as DEFAULT_EVAL_QUERIES_RELATIVE_PATH,gA as DEFAULT_TERMINAL_TRANSITION_POLICY,cA as DEFAULT_WORKSPACE_MEMORY_MINIMUM_ITEMS,io as DELETE_FLAG_CONTRACTS,Be as DEPENDENCY_KIND_VALUES,Go as DEPS_FLAG_CONTRACTS,gn as DOCS_FLAG_CONTRACTS,Eo as DUPLICATES_FLAG_CONTRACTS,Fo as EVAL_FLAG_CONTRACTS,pp as EVAL_QUERY_SET_CONTRACT,dp as EVAL_QUERY_SET_EXAMPLE,ap as EVAL_QUERY_SET_SCHEMA_ID,wo as EVENTS_FLAG_CONTRACTS,mo as EVENT_FLAG_CONTRACTS,Lr as EXECUTABLE_COMMAND_ALIASES,ke as EXIT_CODE,Vn as EXTENSION_ACTIVATE_FLAG_CONTRACTS,$n as EXTENSION_ADOPT_ALL_FLAG_CONTRACTS,qn as EXTENSION_ADOPT_FLAG_CONTRACTS,Xh as EXTENSION_CAPABILITIES,ym as EXTENSION_CAPABILITY_CONTRACT,Sm as EXTENSION_CAPABILITY_CONTRACT_VERSION,Om as EXTENSION_CAPABILITY_LEGACY_ALIASES,Ze as EXTENSION_CAPABILITY_REGISTRATION_SURFACES,Yn as EXTENSION_CATALOG_FLAG_CONTRACTS,Wn as EXTENSION_DEACTIVATE_FLAG_CONTRACTS,Bn as EXTENSION_DESCRIBE_FLAG_CONTRACTS,Xn as EXTENSION_DOCTOR_FLAG_CONTRACTS,Hn as EXTENSION_EXPLORE_FLAG_CONTRACTS,Mn as EXTENSION_FLAG_CONTRACTS,Dn as EXTENSION_INIT_FLAG_CONTRACTS,Fn as EXTENSION_INSTALL_FLAG_CONTRACTS,Kn as EXTENSION_MANAGE_FLAG_CONTRACTS,zn as EXTENSION_MIGRATE_FLAG_CONTRACTS,Yh as EXTENSION_POLICY_MODES,qh as EXTENSION_POLICY_SURFACES,jn as EXTENSION_RELOAD_FLAG_CONTRACTS,Qh as EXTENSION_SANDBOX_PROFILES,kn as EXTENSION_SCOPE_FLAG_CONTRACTS,Jh as EXTENSION_TRUST_MODES,Un as EXTENSION_UNINSTALL_FLAG_CONTRACTS,NA as EXTERNAL_DEPENDENCY_SOURCE_KIND,xA as EXTERNAL_DEPENDENCY_SOURCE_KIND_ALIAS,En as FILES_FLAG_CONTRACTS,No as FOCUS_FLAG_CONTRACTS,Ao as GC_FLAG_CONTRACTS,ko as GET_FLAG_CONTRACTS,un as GLOBAL_FLAG_CONTRACTS,Yp as GRAPH_DURABLE_CACHE_MIN_ITEMS,Xp as GRAPH_DURABLE_CACHE_VERSION,vo as GRAPH_FLAG_CONTRACTS,vt as GRAPH_SUBCOMMAND_VALUES,Do as GUIDE_FLAG_CONTRACTS,go as HEALTH_FLAG_CONTRACTS,In as HISTORY_AUTHOR_ACKNOWLEDGE_FLAG_CONTRACTS,WA as HISTORY_AUTHOR_ATTRIBUTION_BASELINE,RC as HISTORY_COMPACT_BULK_DEFAULT_MIN_ENTRIES,Nn as HISTORY_COMPACT_FLAG_CONTRACTS,Sn as HISTORY_FLAG_CONTRACTS,yn as HISTORY_REDACT_FLAG_CONTRACTS,Rn as HISTORY_REPAIR_FLAG_CONTRACTS,tp as INIT_AGENT_GUIDANCE_MODE_VALUES,Ln as INIT_FLAG_CONTRACTS,Jn as INSTALL_FLAG_CONTRACTS,Ve as ISSUE_SEVERITY_VALUES,Ro as ITEM_COMPLETE_FLAG_CONTRACTS,_C as ITEM_LATEST_TIMESTAMP_FIELDS,Nm as ITEM_METADATA_KEY_ORDER,yo as ITEM_MUTATE_FLAG_CONTRACTS,Ue as ITEM_TYPE_VALUES,cC as ITEM_UNION_COLLECTION_FIELDS,iA as JsonFileContextSignalStoreAdapter,Cn as LEARNINGS_FLAG_CONTRACTS,Ms as LINKED_TEST_ENV_NAME_PATTERN,ks as LINKED_TEST_PM_CONTEXT_MODE_VALUES,ws as LINKED_TEST_PROTECTED_ENV_KEYS,wr as LIST_COMMANDER_STRING_OPTION_CONTRACTS,wT as LIST_COMMAND_DEFAULT_PROJECTIONS,eT as LIST_FILTER_EXTENSION_FLAG_DEFINITIONS,fn as LIST_FILTER_FLAG_CONTRACTS,xT as LIST_SORT_FIELDS,bT as LIST_SORT_ORDER_VALUES,vA as MAX_CHILD_PROJECTION_ITEMS,_o as MEET_FLAG_CONTRACTS,uC as MERGE_DRIVER_ARTIFACT_VALUES,On as MERGE_FLAG_CONTRACTS,R as MemoryRelationshipGraphAdapter,Gr as NEXT_COMMANDER_STRING_OPTION_CONTRACTS,Ho as NEXT_FLAG_CONTRACTS,ji as NEXT_OUTPUT_VALUES,An as NOTES_FLAG_CONTRACTS,Gn as PACKAGE_FLAG_CONTRACTS,vn as PACKAGE_INIT_FLAG_CONTRACTS,po as PAUSE_TASK_FLAG_CONTRACTS,Yo as PLAN_CREATE_METADATA_PARAMETER_KEYS,Pn as PLAN_FLAG_CONTRACTS,Ta as PLAN_SHOW_DEPTH_VALUES,ha as PLAN_SUBCOMMANDS,Aa as PLAN_TEMPLATE_NAMES,oi as PM_CLI_EXPECTED_ERROR_NAME,Ut as PM_CLI_ONLY_TOOL_ACTION_WAIVERS,Qt as PM_COMMAND_OUTPUT_BUDGET_CONTRACTS,vC as PM_COMMAND_OUTPUT_ENVELOPE_CONTRACTS,pd as PM_COMMAND_VISIBILITY_CONTRACTS,rT as PM_CONTEXT_INTENTS_FILE,Nu as PM_CONTEXT_INTENT_CONTRACTS,Gt as PM_CORE_COMMAND_NAMES,u as PM_CORPUS_SHAPE_SCHEMA,kC as PM_ERROR_CODE_CATALOG,LC as PM_ERROR_CODE_EXIT_CLASS_CONTRACTS,Pt as PM_EXTENSION_CAPABILITY_CONTRACTS,Ft as PM_EXTENSION_PACKAGE_ACTION_SUBCOMMANDS,wt as PM_EXTENSION_POLICY_MODE_CONTRACTS,Dt as PM_EXTENSION_POLICY_SURFACE_CONTRACTS,kt as PM_EXTENSION_SANDBOX_PROFILE_CONTRACTS,Lt as PM_EXTENSION_SERVICE_NAME_CONTRACTS,Mt as PM_EXTENSION_TRUST_MODE_CONTRACTS,DA as PM_GITATTRIBUTES_END,kA as PM_GITATTRIBUTES_START,ci as PM_GITIGNORE_END,di as PM_GITIGNORE_START,ud as PM_MCP_PROMPT_CONTRACTS,ld as PM_MCP_RESOURCE_CONTRACTS,_d as PM_MCP_TOOL_COMMAND_CONTRACTS,tu as PM_MODE_PAIRED_OUTPUT_PROJECTION_CONTRACTS,Tr as PM_MUTATION_ACTION_CONTRACTS,Xt as PM_OUTPUT_BUDGET_CLASSES,jt as PM_OUTPUT_DEGRADATION_STEPS,DC as PM_OUTPUT_ENVELOPE_KINDS,ee as PM_PACKAGE_CONVENTIONAL_RESOURCE_ROOTS,Z as PM_PACKAGE_RESOURCE_KINDS,ni as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA,ti as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA_VERSION,Tu as PM_READ_OUTPUT_DIMENSIONS,Cu as PM_READ_OUTPUT_OPTION_FLAGS,Au as PM_READ_OUTPUT_SURFACES,Eu as PM_READ_OUTPUT_SURFACE_CONTRACTS,eu as PM_READ_ROW_CONTRACTS,Zl as PM_READ_ROW_JQ_SELECTOR,Ht as PM_TOOL_ACTIONS,Jo as PM_TOOL_ACTION_PARAMETER_CONTRACTS,ri as PM_TOOL_PARAMETERS_SCHEMA,ei as PM_TOOL_PARAMETERS_SCHEMA_MAJOR,Zo as PM_TOOL_PARAMETERS_SCHEMA_VERSION,jo as PM_TOOL_RESERVED_CUSTOM_FIELD_PROPERTIES,ge as PM_WORKSPACE_RECIPE_SCHEMA,bn as PROFILE_FLAG_CONTRACTS,me as PROFILE_LINT_CODES,_e as PROFILE_LINT_DIMENSIONS,oe as PROFILE_NAMES,Lp as PROFILE_SUBCOMMANDS,De as PmCliError,P as PmClient,hu as QUERY_CURSOR_CONTRACT,Zn as REINDEX_FLAG_CONTRACTS,Lf as REINDEX_LOCK_ID,B as RELATIONSHIP_GRAPH_SNAPSHOT_VERSION,so as RELEASE_FLAG_CONTRACTS,lo as REMIND_FLAG_CONTRACTS,K as RESERVED_ITEM_FIELD_NAMES,oo as RESTORE_FLAG_CONTRACTS,$e as RISK_VALUES,Hh as RelationshipEventLog,Bh as RelationshipEventStore,T as RelationshipGraph,D as RelationshipKindRegistry,xn as SCHEMA_FLAG_CONTRACTS,Mr as SEARCH_COMMANDER_STRING_OPTION_CONTRACTS,tT as SEARCH_EXTENSION_FLAG_DEFINITIONS,Bo as SEARCH_FLAG_CONTRACTS,xm as SETTINGS_DEFAULTS,Ap as SNAPSHOT_SCHEMA,ao as START_TASK_FLAG_CONTRACTS,Co as STATS_FLAG_CONTRACTS,He as STATUS_VALUES,ln as SUBCOMMAND_GLOBAL_FLAG_CONTRACTS,ql as SUPPRESS_HOST_OUTPUT_MARKER,ho as TELEMETRY_FLAG_CONTRACTS,Td as TELEMETRY_SUBCOMMANDS,fo as TEST_ALL_FLAG_CONTRACTS,uo as TEST_FLAG_CONTRACTS,To as TEST_RUNS_FLAG_CONTRACTS,Cd as TEST_RUN_MEASUREMENT_LIMIT,an as TOOL_ACTIVITY_OPTION_CONTRACTS,Xr as TOOL_AGGREGATE_OPTION_CONTRACTS,rn as TOOL_BULK_MUTATION_FILTER_OPTION_CONTRACT_SOURCE,sn as TOOL_CALENDAR_OPTION_CONTRACTS,on as TOOL_CLOSE_MANY_FILTER_OPTION_CONTRACTS,pn as TOOL_CONTEXT_OPTION_CONTRACTS,Zr as TOOL_CREATE_OPTION_CONTRACTS,Qr as TOOL_CREATE_OPTION_CONTRACT_SOURCE,dn as TOOL_DEPS_OPTION_CONTRACTS,cn as TOOL_GRAPH_OPTION_CONTRACTS,jr as TOOL_LIST_FILTER_OPTION_CONTRACTS,Yr as TOOL_SEARCH_FILTER_OPTION_CONTRACTS,Jr as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACTS,qr as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACT_SOURCE,nn as TOOL_UPDATE_MANY_FILTER_OPTION_CONTRACTS,tn as TOOL_UPDATE_OPTION_CONTRACTS,en as TOOL_UPDATE_OPTION_CONTRACT_SOURCE,Im as TYPE_TO_FOLDER,Wr as UPDATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,Kr as UPDATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,zr as UPDATE_COMMANDER_STRING_OPTION_CONTRACTS,xo as UPDATE_FLAG_CONTRACTS,bo as UPDATE_MANY_FLAG_CONTRACTS,Qn as UPGRADE_FLAG_CONTRACTS,So as VALIDATE_FLAG_CONTRACTS,Uo as WORKSPACE_FLAG_CONTRACTS,or as WORKSPACE_HISTORY_ID,Bp as WorkspaceGraphCache,Kh as WorkspaceTransactionInterruptedError,ai as _testOnly,GT as _testOnlyAggregateCommand,ep as _testOnlyConfigCommand,$A as _testOnlyGetCommand,ba as _testOnlyHealthCommand,ip as _testOnlyInit,rp as _testOnlyInitAgentGuidance,rE as _testOnlyItemTransaction,OC as _testOnlyMutationEvents,AA as _testOnlyNextCommand,aC as _testOnlySearchCommand,wA as _testOnlySimilarity,Ip as _testOnlyTemplates,Ja as _testOnlyValidateCommand,Na as acknowledgeUnknownAuthorHistoryEvents,vf as acquireItemMetadataDerivedIndexLock,nr as acquireLock,uE as activateExtensionForTest,dl as activateExtensions,gt as agentSessionEnvironment,hc as aggregate,am as analyzeAgentProvenanceDescriptorCoverage,Vh as analyzeGraphImpact,Wh as analyzeKnowledgeGraph,Bt as analyzePmToolActionParity,hC as analyzeReconciliationDiscard,$h as analyzeRelationshipExecution,jp as analyzeRelationshipSchedule,B_ as analyzeSdkActionCoverage,q as analyzeSdkCliParameterCompleteness,xc as append,rr as appendHistoryEntry,ar as appendWorkspaceAuditEvent,sr as appendWorkspaceHistoryChange,of as applyAcceptanceCriteriaMutations,K_ as applyBootstrapPagerPolicy,wu as applyContextIntentProjection,Ki as applyContextTagProjection,MT as applyFilterValueEcho,Mh as applyHistoryPatch,Z_ as applyInvocationAuthorOverride,Da as applyPathMigrations,yu as applyReadOutputDimensions,Dl as applyRegisteredItemFieldDefaultsAndValidation,Fa as applyStandaloneNote,_a as applyStoredExtensionMigrationState,af as applyTagRemovals,RA as applyTerminalOrderingPolicy,Ua as artifactKey,Mm as asRecordClone,wm as asRecordOrNull,v as assembleWorkspaceRelationshipGraph,XE as assertExtensionBlueprint,jE as assertExtensionCapabilityUsage,bE as assertExtensionDeactivated,JE as assertExtensionManifestCompatible,qE as assertExtensionManifestMatchesBlueprint,QE as assertExtensionPreflight,IC as assertHistoryCompactTarget,AC as assertHistoryRepairTarget,Cm as assertMemoryRelationshipGraphAdapterConformance,cf as assertNoUnknownCsvKeys,PE as assertPackageManifest,rf as assertParentReferenceIsNotSelf,YE as assertProjectProfile,ru as assertProjectionModeChoice,LE as assertRegisteredCommandContract,BE as assertRegisteredCommandOverride,vE as assertRegisteredExporter,wE as assertRegisteredFlags,ME as assertRegisteredHook,GE as assertRegisteredImporter,FE as assertRegisteredItemField,UE as assertRegisteredItemType,KE as assertRegisteredMigration,$E as assertRegisteredParserOverride,VE as assertRegisteredPreflightOverride,HE as assertRegisteredProfile,WE as assertRegisteredRendererOverride,kE as assertRegisteredSearchProvider,zE as assertRegisteredServiceOverride,DE as assertRegisteredVectorStoreAdapter,el as assertRelationshipEdgeAllowed,Ie as assertRelationshipGraphAdapterConformance,Du as attachContextIntentReceipt,pu as attachOutputOmissionReceipt,vu as attachOutputTokenAccounting,Gu as attachReadOutputContracts,Js as auditMergeAttributeFence,GA as auditMergeDriverConfiguration,Rs as auditWorkspaceRelationshipGraph,At as boundAgentEpisodeIdentity,$i as buildChildrenByParent,JA as buildCompactSearchFilterSummary,kT as buildContentFilterEcho,oA as buildContextSignalSnapshot,nm as buildCorpusShapeItemPlan,aa as buildExtensionDescribeResult,DT as buildGovernanceMissingFilterEcho,gf as buildInvalidTypeError,UA as buildItemChildrenRollup,eE as buildItemCompletionMutations,FT as buildItemContextRelevanceCandidates,Vf as buildItemNotFoundError,BA as buildItemSchedule,Ys as buildMergeAttributePatterns,Qo as buildPmActionToolInputSchema,xC as buildRelationshipContext,jf as buildSearchCorpus,Yf as buildSemanticCorpusInput,th as buildVectorizationEmbeddingIdentity,rh as buildVectorizationEmbeddingMetadata,QA as buildVerboseSearchFilters,_A as buildWorkspaceMemorySnapshot,Tt as canonicalDocument,Km as canonicalizeCommandOptionKey,mE as checkExtensionManifestCompatibility,c_ as claim,__ as claimNext,zA as classifyHistoryAuthorEvent,sC as classifyImplicitSemanticFallbackReason,_t as classifyItemFormatVersion,yd as classifyLinkedTestFailure,Il as clearActiveExtensionHooks,ed as clearDurableGraphCache,Ch as clearFocusedItem,li as clearWorkspaceContractsCache,d_ as close,ts as closeItem,C_ as closeTask,Y_ as coalesceRepeatedListFlags,AT as collectBlockedByIds,_s as collectDanglingDependencyReferences,ET as collectDependencyBlockedIds,cs as collectDuplicateDependencyRows,ys as collectDuplicateRelationshipEdgeGroups,iC as collectErrorCauseCodes,ms as collectMissingDependencyTargetIds,Ns as collectNewOrderingCycleWarnings,Ss as collectOrderingCycles,iT as collectPackageContextIntentContracts,re as collectPackageExtensionDirectories,Ml as collectRegisteredItemFieldNames,Bl as collectRuntimeCreateFieldValues,Sf as collectRuntimeFilterValues,$l as collectRuntimeUpdateFieldValues,vi as collectSubtreeIds,et as collectUsedExtensionCapabilities,jm as commandOptionFlagLabel,Cc as comments,Zd as commitImportedItem,tE as commitItemCompletion,ZC as commitItemMutations,jh as commitWorkspaceTransaction,mn as compactFlagAliasContracts,Fi as compareCriticalItems,zh as compareRelationshipSnapshots,km as compareTimestampStrings,hT as compileHistoryProvenanceMatcher,Pu as composeContextIntentContracts,iE as composeExtension,_E as composeExtensionPackage,gT as computeActionabilityReport,Yu as computeHistoryDiff,zp as computeRelationshipCentrality,gs as computeRelationshipDominators,Hp as computeWorkspaceGraphFingerprint,Pc as config,Rl as consumeAfterCommandAffectedItems,_c as context,ku as contextIntentRowId,l_ as copy,Rd as countFailureCategories,a_ as create,Gm as createCheckpointId,cl as createCoreCommandHookContext,Ce as createCorpusShapeMeasurement,rl as createEmptyExtensionRegistrationRegistry,pi as createExtensionCommandSdk,Qe as createExtensionContributionInventory,ZE as createExtensionTestHarness,tr as createHistoryEntry,gh as createLazyModule,$f as createMutationGuardSdk,nu as createOutputOmissionReceipt,ii as createPmCliExpectedError,em as createPmCliProgram,qt as createPmCommandOutputBudget,cu as createQueryFingerprint,Am as createRelationshipGraphScaleFixture,O as createRelationshipGraphSnapshot,z as createRelationshipKindRegistry,ZA as createSearchCursorFingerprint,_l as createSerialQueue,_f as createStdinTokenResolver,Cp as createWorkspaceSnapshot,fE as deactivateExtensionForTest,aS as declineServiceOverride,Mu as decodeContextIntentCursor,Eh as decodeHtmlEntitiesInOptions,lu as decodeQueryCursor,mu as decodeQueryCursorState,Ba as dedupeLinkedArtifacts,HT as defaultScoreContextCandidates,lS as defineAfterCommandHook,_S as defineBeforeCommandHook,mS as defineBeforeMutationHook,Yg as defineCommand,rS as defineCommandOverride,C as defineCorpusShape,cS as defineExporter,nE as defineExtension,oE as defineExtensionBlueprint,jg as defineExtensionManifest,qg as defineFlag,dS as defineImporter,Qg as defineItemField,Jg as defineItemType,Zg as defineMigration,hS as defineOnIndexHook,fS as defineOnReadHook,uS as defineOnWriteHook,nS as defineParserOverride,Jt as definePmCommandOutputBudget,GC as definePmCommandOutputEnvelope,wC as definePmErrorCodeCatalog,oS as definePreflightOverride,Xg as defineProjectProfile,pS as defineRendererOverride,eS as defineSearchProvider,iS as defineServiceOverride,tS as defineVectorStoreAdapter,Se as defineWorkspaceRecipe,u_ as deleteItem,Rp as deleteWorkspaceSnapshot,tl as dependencyToRelationship,Ic as deps,aE as deriveExtensionCapabilities,ta as deriveSchemaEvolutionMigrationId,ch as deriveTelemetryCommandResolution,If as describeAllowedTransitions,MA as describeExtensionActivation,pE as describeExtensionBlueprint,Ii as describeItemOwnershipConflict,de as describeProfileComposition,ce as describeProjectProfile,$C as describeUnknownError,Rt as detectAgentIdentity,xt as detectHarnessIdentity,Cs as detectRelationshipCommunities,Is as diffRelationshipAuditSnapshots,Sd as diffTestRunMeasurements,al as discoverExtensions,je as discoverNearbyPmRoot,Rc as docs,Ac as duplicates,qp as durableGraphCachePath,td as durableGraphCacheStatus,dt as effectiveItemFormatVersion,Ph as emitTelemetryErrorEvent,Qd as emptyImportedDocument,_u as encodeQueryCursor,qu as enforceHistoryStreamPolicyForItem,Ju as enforceHistoryStreamPolicyForItems,bC as enrichCliFlagInvocationContract,PC as enrichCliFlagInvocationContracts,Dh as ensureMaterializedHistoryTarget,mi as ensurePmGitignore,Pa as ensureScope,dh as ensureSentryInit,Jd as ensureTrackerInitialized,Ts as enumerateRelationshipPaths,er as estimatePmOutputTokens,WT as evaluateContextRanking,Cr as evaluateMutationGuard,Ls as evaluateSimilarityGovernance,Rf as evaluateTransition,qf as executeEmbeddingBatchesWithRetry,Zf as executeVectorDelete,eh as executeVectorReset,Qf as executeVectorUpsert,mm as executeWorkspaceRecipe,va as expandAddGlobEntries,E_ as extension,S_ as extensionActivate,O_ as extensionDeactivate,g_ as extensionList,Em as extensionMigrate,Lh as extractPatchFailureContext,Ya as extractReferencedPmItemIdsFromCommand,Tm as federateRelationshipGraphSnapshots,Sc as files,Oc as filesDiscover,yc as filesLookup,Ps as findDuplicateClusters,Xs as findGitWorkspaceRoot,ia as findInstalledNpmPackageCandidate,Es as findRedundantRelationshipEdges,Kp as findRelationshipCutStructure,bs as findSimilarItems,bh as finishTelemetryCommand,Bm as flattenFlagListValue,lm as flushTelemetryQueue,h_ as focus,As as forEachMatchedRelationshipEdge,Os as formatDuplicateEdgeGroup,Up as formatProfileApplyHuman,Fp as formatProfileLintHuman,Gp as formatProfileListHuman,vp as formatProfileShowHuman,oa as formatSchemaEvolutionMigrationHuman,t_ as gc,_r as generateItemId,uc as get,Sl as getActiveCommandResult,xu as getActiveContextIntentContracts,rt as getActiveExtensionRegistrations,v_ as getContracts,Th as getFocusedItem,qe as getHistoryPath,Uh as getItemAt,Ye as getItemPath,Sr as getMutationActionContract,_i as getPmGitignoreBlock,Xe as getSettingsPath,G_ as getWorkspaceContracts,ir as getWorkspaceHistoryPath,Nc as graph,Jp as graphAuditBaselinePath,cm as groupHistoryByEpisode,sS as handleServiceOverride,Wo as hasSubcommandFlagContractsForCommand,nh as hasVectorizationEmbeddingIdentityChanged,oh as hasVectorizationVectorDimensionChanged,Bu as hashDocument,$u as hashEmptyDocument,e_ as health,ls as hierarchyAncestors,us as hierarchyDescendants,i_ as historyCompact,s_ as historyCompactBulk,fT as historyEntryMatchesProvenance,r_ as historyRedact,n_ as historyRepair,o_ as historyRepairAll,ih as inferConsistentVectorDimension,Yt as inferPmOutputBudgetClass,bc as init,Ra as inspectHistoryAuthorStream,br as inspectStaleInProgressItems,Ep as inspectWorkspaceSnapshot,ea as installMergeFence,zC as isCommanderError,gi as isErrnoError,bA as isExternalDependencySourceKind,Ql as isHostOutputSuppressed,Er as isMutationAction,Zm as isOrderingRelationshipKind,ef as isPlaceholderReferenceToken,si as isPmCliExpectedError,Vt as isPmExtensionCapabilityContract,zt as isPmExtensionPolicyModeContract,Kt as isPmExtensionPolicySurfaceContract,Wt as isPmExtensionServiceNameContract,UC as isPmMutationReceipt,$t as isPmToolAction,Sh as isPureSnakeCaseAlias,Ru as isReadOutputBudgetExceeded,iu as isReadRowContract,up as isRuntimeRecord,Rh as isTerminalPlanMode,Wl as isTerminalStatus,ve as isTimestampLiteral,JC as itemDocumentToMutationOptions,HA as itemHasSchedule,Ir as jaccardSimilarity,gc as learnings,Qm as levenshteinDistanceWithinLimit,Ai as limitAnnotationEntries,dE as lintExtensionBlueprint,le as lintProjectProfile,mc as list,X_ as listAliasPluralKeys,Hf as listAllDocumentCandidatesCached,hr as listAllItemMetadata,Bf as listAllItemMetadataLight,tm as listBuiltinCorpusShapes,jA as listMergeReceipts,gr as listMutationActions,gC as listMutationEvents,cd as listPmCommandsForTier,md as listPmMcpToolsForProfile,pe as listProfiles,gp as listWorkspaceSnapshots,sT as loadContextIntentRuntimeLayers,Np as loadCreateTemplateOptions,pl as loadExtensions,nd as loadGraphAuditBaseline,Fm as loadMutationCheckpoint,l as loadRelationshipGraphAdapter,ur as locateItem,df as looksLikeGenericKeyValueEntry,XA as markMergeReceiptReconciled,Of as matchesRuntimeFilters,Nh as maybeRunFirstUseTelemetryPrompt,om as measureCorpusShapePlan,sf as mergeAdditiveTags,sE as mergeExtensionBlueprints,pC as mergeHistoryStreams,mC as mergeItemDocuments,lC as mergeJsonDocuments,q_ as mergeLinkedTestTwoTokenEntries,dC as mergeRelationshipEventStreams,Wi as mergeSortedWarnings,yh as migrateItemFilesToFormat,Wf as mutateItem,fc as next,J_ as normalizeBootstrapInvocation,ps as normalizeDependencyGraphTarget,LA as normalizeDependencySeedId,PA as normalizeDependencySourceKind,Je as normalizeExtensionContributionInventory,ct as normalizeItemFormatVersion,cr as normalizeItemId,ut as normalizeItemMetadata,j_ as normalizeLegacyExtensionActionSyntax,Ga as normalizeLinkedPath,Zu as normalizeParentReferenceValue,se as normalizeProfileName,dr as normalizeRawItemId,Ku as normalizeReplayPatchOps,Or as normalizeSimilarityText,Vl as normalizeStatusForRegistry,lt as normalizeStatusInput,Ul as normalizeStatusInputWithRegistry,WC as normalizeThrownExitCode,Ec as notes,Ge as nowIso,Qp as openDurableGraphCache,fs as orderingPredecessors,hs as orderingSuccessors,YT as packContextCandidates,Ui as packRankedContextItems,M_ as packageActivate,w_ as packageCatalog,k_ as packageDeactivate,P_ as packageDescribe,x_ as packageDoctor,I_ as packageInstall,y_ as packageLifecycle,R_ as packageList,b_ as packageManage,gm as packageMigrate,L_ as packageReload,N_ as packageUninstall,fu as paginateQueryRows,La as parseAddEntries,wa as parseAddGlobEntries,Ei as parseAnnotationTextInput,XC as parseAtomicMutationControls,z_ as parseBootstrapCommandName,$_ as parseBootstrapGlobalOptions,W_ as parseBootstrapHelpRequest,Q_ as parseBootstrapTypeValue,Di as parseContextDepth,Li as parseContextFocusFields,nT as parseContextIntentDeclarations,Gi as parseContextSections,nA as parseContextSignalSnapshot,pf as parseCsvKv,cp as parseEvalQuerySet,sd as parseGraphSubcommand,lT as parseHistoryProvenanceFilters,pT as parseIntegerLimit,zl as parseItemDocument,YC as parseItemMutationBatch,Ef as parseLimit,$s as parseLinkedTestAssertionEqualsMap,Vs as parseLinkedTestAssertionGteMap,vs as parseLinkedTestBoolean,Fs as parseLinkedTestContextMode,Gs as parseLinkedTestEnvClear,Ds as parseLinkedTestEnvSet,Ws as parseLinkedTestJsonEntries,Bs as parseLinkedTestMinLines,Hs as parseLinkedTestRegexList,Us as parseLinkedTestStringList,ka as parseMigrateEntries,ST as parseMultiValueFilter,HC as parseMutationReceipt,lf as parseOptionalNonNegativeInteger,mf as parseOptionalNumber,dT as parsePriority,RT as parsePriorityFilterSet,kl as parseRegisteredItemFieldAssignments,I as parseRelationshipGraphSnapshot,Ma as parseRemoveEntries,hf as parseStatusFilterCsv,OT as parseStringFilterSet,mr as parseTags,Ed as parseTestRunMeasurements,cT as parseType,yT as parseTypeFilterSet,CA as partitionDecisionEntries,Xu as patchPathToChangedField,Pe as pathExists,A_ as pauseTask,Zp as persistDurableGraphResult,Nf as persistSelectedItemFormat,dA as planCompletedAtBackfill,ue as planProfileApplication,zg as planRelationshipEventBackfill,id as planRelationshipRemediation,ra as planSchemaEvolutionMigration,Sp as planWorkspaceSnapshotRestore,lE as preflightExtension,Rr as prepareSimilarityText,Hu as printError,Uu as printResult,Xc as profile,Jc as profileApply,Qc as profileLint,Yc as profileList,qc as profileShow,yl as projectAfterCommandItemSnapshot,wi as projectContextFocusRows,uT as projectHistoryProvenance,qa as projectValidateCounts,Eg as pruneCompileCacheGenerations,Mf as queryItemMetadataIndex,kf as queryLinkedFileMetadataIndex,Df as querySimilarItemMetadataIndex,gd as queryTestRunMeasurementsBelow,Zi as quoteCommandArg,Qi as quoteWindowsCommandArg,Ci as readAnnotationEntries,It as readAuthorEnvironment,wd as readBooleanOption,eA as readContextUsageAffinity,Md as readCsvListOption,ca as readExtensionMigrationState,Le as readFileIfExists,Fr as readFirstStringFromCommanderOptions,Ur as readFirstValueFromCommanderOptions,Yl as readHistoryEntries,Ff as readItemMetadataDerivedIndexState,fr as readLocatedItem,te as readPmPackageManifest,F_ as readRequiredString,lr as readSettings,xf as readSettingsWithMetadata,Hr as readStringArrayFromCommanderOptions,Ld as readStringOption,VC as readThrownExitCode,sh as readVectorizationStatusLedger,oT as readWorkspaceContextIntentContracts,aA as readWorkspaceContextSignals,mA as readWorkspaceMemory,tt as reconcileExtensionCapabilityUsage,Ol as recordAfterCommandAffectedItem,JT as recordContextUsageServing,QT as recordContextUsageTouch,ZT as recordContextUsageTouches,Uf as refreshItemMetadataDerivedIndex,Qs as refreshMergeAttributeFenceIfInstalled,ph as refreshSearchArtifactsForMutation,St as registerHarnessSignalDescriptors,m_ as release,Me as removeFileIfExists,Wa as renameArtifactsResultKey,xi as renderCalendarMarkdown,bi as renderCalendarToon,zi as renderContextMarkdown,pa as renderExtensionDescribeMarkdown,sa as renderExtensionSurfaceMarkdown,rc as renderGuideMarkdown,EA as renderNextMarkdown,es as renderPmCommand,fd as renderPmCommandVisibilityMarkdown,Af as renderRowsAsCsv,Cf as renderRowsAsTable,kh as replayHistoryToTarget,Wu as replayToCanonicalItemDocument,Vu as replayToItemDocument,OA as requireTerminalReason,yA as requireTerminalReasonWithRecovery,Cl as resetActiveExtensionRuntimeState,Vp as resetWorkspaceGraphCache,Ct as resolveAgentSessionContextFromSignals,Ri as resolveAnnotationIndex,Si as resolveAnnotationInput,Xl as resolveAuthor,bt as resolveAuthorIdentity,Qu as resolveBodyFileContent,rm as resolveBuiltinCorpusShape,Ni as resolveCalendarOutputFormat,jl as resolveClaimPrincipal,qm as resolveCommandOptionPolicyState,Cg as resolveCompileCacheGeneration,pA as resolveCompletionTimestamp,Wm as resolveConfiguredPmPackageRoot,NT as resolveContentFieldFilters,Lu as resolveContextIntentContract,Mi as resolveContextOutputFormat,ki as resolveContextTokenBudget,zf as resolveEmbeddingProviders,ua as resolveExtensionInstallSourceIdentity,da as resolveExtensionMigrationStatePath,sl as resolveExtensionRoots,Hm as resolveFlagValueKind,ec as resolveGuideOutputFormat,Ee as resolveHistoryEpisodeGroupIdentity,mT as resolveHistoryProvenanceDimensions,Gh as resolveHistorySubject,wh as resolveHistoryTarget,nC as resolveHybridSemanticWeight,Ke as resolveImplicitPmRoot,Dm as resolveIsoOrRelative,CT as resolveItemBlockers,qC as resolveItemMutationDocument,ze as resolveItemTypeRegistry,Fl as resolveItemTypesFilePath,Id as resolveLinkedTestFailureExitCode,IT as resolveMissingMetadataFilters,ou as resolveModePairedOutputOmissionReceipt,TA as resolveNextOutputFormat,au as resolveOutputOmissionReceipt,Vm as resolvePmCliVersion,Zt as resolvePmCommandOutputBudget,FC as resolvePmCommandOutputEnvelope,dd as resolvePmCommandVisibilityTier,MC as resolvePmErrorCodeContract,$m as resolvePmPackageRootFromModule,k as resolvePmRoot,Xo as resolvePmToolCustomFieldCollision,uf as resolvePriority,ae as resolveProfile,qs as resolveProjectMergeTypeFolders,uu as resolveQueryCursorStart,Ou as resolveReadOutputDimensions,Iu as resolveReadOutputEncoding,gu as resolveReadOutputSurface,su as resolveReadRowContract,Gl as resolveRegisteredSearchProvider,vl as resolveRegisteredVectorStoreAdapter,st as resolveRuntimeFieldRegistry,it as resolveRuntimeStatusRegistry,Kf as resolveSearchCorpusFields,tC as resolveSearchMaxResults,eC as resolveSearchPage,rC as resolveSearchScoreThreshold,oC as resolveSearchTuning,Xf as resolveSemanticCorpusCharacterLimit,Pf as resolveSettingsWithSemanticRuntimeDefaults,Pd as resolveStartTaskInProgressStatus,zo as resolveSubcommandFlagContractsForCommand,bm as resolveTelemetryErrorCategory,SA as resolveTerminalReason,Ym as resolveTypeDefinition,Xm as resolveTypeName,Tf as resolveTypeSynonym,yf as resolveTypeWorkflows,Jf as resolveVectorStores,ds as resolveWorkspaceRelationshipKindRegistry,f_ as restore,Um as restoreCheckpointItems,yp as restoreWorkspaceSnapshot,Op as restoreWorkspaceSnapshotWithRecovery,H_ as runAction,Nl as runActiveBeforeMutationHooks,bl as runActiveCommandHandler,xl as runActiveOnIndexHooks,ot as runActiveOnReadHooks,nt as runActiveOnWriteHooks,Pl as runActiveParserOverride,Ll as runActivePreflightOverride,wl as runActiveServiceOverride,ui as runActivity,il as runAfterCommandHooks,hi as runAggregate,yi as runAnnotationCommand,Ti as runAppend,ol as runBeforeCommandHooks,Pi as runCalendar,Yi as runClaim,qi as runClaimNext,rs as runClose,os as runCloseMany,is as runComments,nc as runCompletion,Za as runConfig,Q as runContext,jT as runContextEvaluationCorpus,zT as runContextEvaluationScenario,Ea as runCopy,zs as runCreate,ga as runDelete,Wp as runDeps,za as runDocs,BC as runDuplicates,lp as runEval,hp as runEvent,fa as runExtension,la as runExtensionMigrateAction,ma as runExtensionMigrations,Ka as runFiles,Xa as runFilesDiscover,ja as runFilesLookup,Sa as runFocus,ya as runGc,Oa as runGet,ad as runGraph,tc as runGuide,xa as runHealth,IA as runHistory,yC as runHistoryCompact,NC as runHistoryCompactBulk,vh as runHistoryRedact,TC as runHistoryRepair,CC as runHistoryRepairAll,sp as runInit,np as runInitAgentGuidance,ss as runLearnings,Va as runLinkedArtifacts,Nd as runLinkedTests,fi as runList,fp as runMeet,fC as runMergeDriver,Zs as runMergeInstall,YA as runMergeReceiptReport,EC as runMergeReconcile,Xi as runNext,as as runNotes,Ca as runPlan,Dp as runProfileApply,kp as runProfileLint,wp as runProfileList,Mp as runProfileShow,hE as runRegisteredCommandForTest,gE as runRegisteredCommandOverrideForTest,xE as runRegisteredExporterForTest,AE as runRegisteredHookForTest,NE as runRegisteredImporterForTest,IE as runRegisteredMigrationForTest,TE as runRegisteredMutationGuardForTest,CE as runRegisteredParserOverrideForTest,EE as runRegisteredPreflightOverrideForTest,SE as runRegisteredRendererOverrideForTest,yE as runRegisteredSearchProviderForTest,OE as runRegisteredServiceOverrideForTest,RE as runRegisteredVectorStoreAdapterForTest,fe as runReindex,Ji as runRelease,Tp as runRemind,ns as runRestore,na as runSchemaEvolutionMigration,_p as runSearch,_m as runSearchRefreshWorkerEntrypoint,oc as runStartBackgroundRun,hd as runStats,Ad as runTelemetry,bp as runTemplatesList,xp as runTemplatesSave,Pp as runTemplatesShow,xd as runTest,bd as runTestAll,ic as runTestRunsList,ac as runTestRunsLogs,dc as runTestRunsResume,sc as runTestRunsStatus,pc as runTestRunsStop,cc as runTestRunsWorker,Ks as runUpdate,js as runUpdateMany,ne as runUpgrade,Qa as runValidate,U_ as runWithActiveExtensions,Et as runWithAgentSessionContext,bu as runWithContextIntentContracts,aT as runWithDiscoveredContextIntentContracts,Ot as runWithHarnessDetectionSignals,yt as runWithWorkspaceHarnessSignalDescriptors,Oe as runWithWorkspaceRecipe,VA as runWorkspaceTransactionGc,od as saveGraphAuditBaseline,Ia as scanHistoryAuthorAttribution,mt as scanItemFormatVersions,Ar as scanMutationSecrets,Pr as scanStaleInProgressItems,qA as scanStorageIntegrity,Lc as schema,Fc as schemaAddField,Gc as schemaAddStatus,kc as schemaAddType,$c as schemaApplyPreset,Vc as schemaInferTypes,wc as schemaList,Hc as schemaListFields,Kc as schemaRemapStatus,Uc as schemaRemoveField,vc as schemaRemoveStatus,Dc as schemaRemoveType,zc as schemaRenameField,Wc as schemaRenameType,Mc as schemaShow,Bc as schemaShowField,jc as schemaShowStatus,BT as scoreContextCandidates,$T as scoreContextCandidatesWithActiveExtensions,Nr as scoreItemSimilarity,xr as scorePreparedItemSimilarity,lc as search,fA as searchWorkspaceMemory,hA as searchWorkspaceMemoryReadResult,du as selectCursorSemanticOptions,qd as selectImportAuthor,uA as selectWorkspaceMemory,lA as selectWorkspaceMemoryRollups,uh as sentryCaptureCliError,lh as sentryFinishCommandSpan,hh as sentryFlush,fh as sentryLogCliUsageError,_h as sentrySetCommandContext,mh as sentryStartCommandSpan,ht as serializeItemDocument,jC as serializeNdjsonRows,El as setActiveCommandContext,gl as setActiveCommandResult,ll as setActiveExtensionCommands,ml as setActiveExtensionHooks,ul as setActiveExtensionParsers,fl as setActiveExtensionPreflight,Al as setActiveExtensionRegistrations,Tl as setActiveExtensionRenderers,hl as setActiveExtensionServices,Ah as setFocusedItem,Ih as shouldCompletePlanOnClose,rd as shouldPersistDurableGraphCache,wf as shouldRunSearchRefreshInForeground,xs as similarityAdvisoryWarnings,Ha as sortLinkedArtifacts,nf as splitAcceptanceCriteria,Oh as splitCommaList,ft as splitFrontMatter,x as stableStringify,nl as stableValueEquals,T_ as startTask,xh as startTelemetryCommand,Tc as stats,Hl as statusIsTerminal,V_ as stripGlobalBootstrapTokens,SC as subscribeMutationEvents,pm as summarizeAgentModelProvenance,dm as summarizeAgentProvenance,KT as summarizeContextEvaluationReports,Od as summarizeContextPreflight,TT as summarizeHistoryProvenance,op as summarizeInitResult,KA as summarizeMergeReceipt,Jl as suppressHostOutput,w as syncRelationshipGraphAdapter,cE as synthesizeExtensionManifest,Ko as toCompletionFlagString,Vi as toContextFocusItem,Hi as toContextPackingSummary,Bi as toContextRankingSummary,Lm as toErrorMessage,Dd as toEstimatedMinutesValue,Zh as toExtensionFlagDefinitions,Hd as toImportBoolean,Wd as toImportConfidence,Ud as toImportInteger,Xd as toImportLinkedDocs,jd as toImportLinkedFiles,Yd as toImportLinkedTests,Kd as toImportLogEntries,zd as toImportNormalizedEnum,Vd as toImportNumberMap,Gd as toImportPriority,Fd as toImportStatus,Bd as toImportStringList,$d as toImportStringMap,vd as toImportTags,Kl as toItemRecord,kd as toNonEmptyImportString,Pm as toNonEmptyStringOrUndefined,zu as toReplayDocument,yr as tokenizeSimilarityText,p_ as update,D_ as upgrade,Zc as validate,QC as validateItemMutationRows,$a as validateLinkedPaths,tf as validateMissingParentReference,Su as validateReadOutputOptions,ff as validateSprintOrReleaseValue,Jm as validateTypeOptions,ju as verifyHistoryChain,Fh as verifyHistoryEntries,_n as withFlagAliasMetadata,$p as workspaceGraphCache,Oi as wrapOwnershipConflict,KC as wrapThrownErrorForSentry,Nt as writeAuthorEnvironment,we as writeFileAtomic,vm as writeMutationCheckpoint,bf as writeSettings,Fu as writeStdout,ah as writeVectorizationStatusLedger,pr as writeWorkspaceJsonWithHistory};
1
+ import{a as zC,b as KC,c as XC,d as YC,e as qC,f as Tl,g as gl,h as Al,i as Cl,j as El,k as yl,l as Sl,m as Ol,n as Rl,o as Il,p as Nl,q as xl,r as bl}from"./chunks/chunk-SQ7QZFQ6.js";import{A as ME,B as kE,C as DE,D as vE,E as GE,F as FE,G as UE,H as HE,I as jE,J as VE,K as WE,L as BE,M as $E,N as zE,O as KE,P as XE,Q as YE,R as qE,S as JE,T as QE,U as ZE,V as ey,W as ty,X as ry,Y as ny,a as aE,b as pE,c as cE,d as dE,e as mE,f as lE,g as uE,h as fE,i as _E,j as hE,k as TE,l as gE,m as AE,n as CE,o as EE,p as yE,q as SE,r as OE,s as RE,t as IE,u as NE,v as xE,w as bE,x as PE,y as wE,z as LE}from"./chunks/chunk-CBLA33YK.js";import{a as JC}from"./chunks/chunk-OAC5NIV4.js";import{a as QC,b as ZC,c as eE,d as tE,e as rE,f as nE,g as oE,h as iE,i as sE}from"./chunks/chunk-KRY7SRUO.js";import{$ as Te,$a as jd,$b as jm,A as As,Aa as cd,Ab as fm,Ac as fl,B as ia,Ba as dd,Bb as _m,Bc as _l,C as ba,Ca as md,Cb as hm,Cc as hl,D as Pa,Da as ld,Db as Tm,E as wa,Ea as ud,Eb as gm,F as La,Fa as fd,Fb as Am,G as Ma,Ga as _d,Gb as Cm,H as ka,Ha as hd,Hb as Em,I as Da,Ia as Td,Ib as ym,J as pC,Ja as gd,Jb as Sm,K as cC,Ka as Ad,Kb as Om,L as dC,La as Cd,Lb as Rm,M as mC,Ma as Ed,Mb as Im,N as lC,Na as yd,Nb as Nm,O as uC,Oa as Sd,Ob as xm,P as fC,Pa as Od,Pb as bm,Q as _C,Qa as Rd,Qb as Pm,R as hC,Ra as Id,Rb as wm,S as TC,Sa as Nd,Sb as Lm,T as gC,Ta as xd,Tb as Mm,U as AC,Ua as bd,Ub as km,V as CC,Va as Pd,Vb as Dm,W as le,Wa as wd,Wb as vm,X as ue,Xa as Ld,Xb as Gm,Y as fe,Ya as Se,Yb as Fm,Z as _e,Za as P,Zb as Um,_ as he,_a as Hd,_b as Hm,a as _i,aa as ge,ab as Vd,ac as Vm,b as hi,ba as Ae,bb as Wd,bc as Wm,c as Ti,ca as Ce,cb as Bd,cc as Bm,d as bT,da as Ee,db as $d,dc as $m,e as PT,ea as ye,eb as zd,ec as zm,f as Ai,fa as Vp,fb as Kd,fc as Km,g as GT,ga as Wp,gb as Xd,gc as Xm,h as FT,ha as Bp,hb as Yd,hc as Ym,i as UT,ia as $p,ib as qd,ic as qm,j as HT,ja as zp,jb as Jd,jc as Jm,k as jT,ka as Kp,kb as Qd,kc as Qm,l as VT,la as Xp,lb as Zd,lc as Zm,m as WT,ma as Yp,mb as em,mc as el,n as BT,na as qp,nb as tm,nc as tl,o as Oi,oa as Jp,ob as rm,oc as rl,p as $T,pa as Qp,pb as nm,pc as nl,q as zT,qa as Zp,qb as om,qc as ol,r as KT,ra as ec,rb as im,rc as il,s as XT,sa as tc,sb as sm,sc as sl,t as YT,ta as NC,tb as am,tc as al,u as qT,ua as xC,ub as pm,uc as pl,v as xi,va as bC,vb as cm,vc as cl,w as _s,wa as PC,wb as dm,wc as dl,x as hs,xa as sd,xb as mm,xc as ml,y as Ts,ya as ad,yb as lm,yc as ll,z as gs,za as pd,zb as um,zc as ul}from"./chunks/chunk-2ZMXX3Q6.js";import{a as me,f as hp,g as Tp}from"./chunks/chunk-ALDHXLPS.js";import{$ as Ec,A as oC,B as iC,C as sC,D as aC,E as xp,F as bp,G as Pp,H as rc,I as nc,J as oc,K as ic,L as wC,M as sc,N as ac,O as pc,P as cc,Q as dc,R as mc,S as lc,T as uc,U as fc,V as _c,W as hc,X as Tc,Y as gc,Z as Ac,_ as Cc,a as wT,aa as yc,b as LT,ba as Sc,c as MT,d as kT,f as Ni,g as Rg,h as SA,i as GA,j as FA,k as UA,l as HA,m as jA,n as va,o as VA,p as Op,q as Rp,r as Ip,s as Np,t as JA,u as QA,v as ZA,w as eC,x as tC,y as rC,z as nC}from"./chunks/chunk-GKA54IJM.js";import{$a as mp,$b as $c,A as EA,Aa as Ba,Ab as Pc,B as yA,Ba as zA,Bb as wc,C as Us,Cb as kC,D as Hs,Da as KA,Db as DC,E as bA,Ea as XA,Eb as vC,F as js,Fa as YA,Fb as GC,G as Vs,Ga as $a,Gb as FC,H as Ws,Ha as za,Hb as UC,I as Bs,Ia as qA,Ib as HC,J as $s,Ja as Ka,Jb as jC,K as zs,Ka as Xa,Kb as VC,L as Ks,La as Ya,Lb as WC,M as Xs,Ma as qa,Mb as BC,N as Ys,Na as Ja,O as qs,Oa as Qa,Ob as Lc,P as Js,Pa as Za,Pb as Mc,Q as Qs,Qa as ep,Qb as kc,R as Zs,Ra as tp,Rb as Dc,S as ea,Sa as rp,Sb as vc,T as ta,Ta as np,Tb as Gc,U as ra,Ua as op,Ub as Fc,V as na,Va as ip,Vb as Uc,W as oa,Wa as sp,Wb as Hc,X as WA,Xa as ap,Xb as jc,Y as Ga,Ya as pp,Yb as Vc,Za as cp,Zb as Wc,_a as dp,_b as Bc,a as bi,ab as lp,ac as zc,b as Pi,ba as Fa,bb as up,bc as Kc,c as wi,cb as fp,cc as Xc,d as Li,db as _p,dc as Yc,e as Mi,eb as wp,ec as $C,f as ki,fb as Lp,fc as qc,g as Di,gb as Mp,gc as Jc,h as vi,hb as OC,hc as Qc,i as Gi,ib as RC,ic as Zc,j as Fi,jb as IC,jc as ed,k as as,kb as kp,kc as td,l as ps,lb as Dp,lc as rd,m as cs,mb as vp,mc as nd,n as dA,nb as Gp,nc as od,o as mA,ob as Fp,oc as id,p as lA,pb as Up,pc as Md,q as uA,qb as Hp,qc as kd,r as fA,rb as jp,rc as Dd,s as us,sb as LC,sc as vd,t as fs,ta as BA,tb as MC,tc as Gd,u as _A,ua as $A,ub as Oc,uc as Fd,v as hA,va as Ua,vb as Rc,vc as Ud,w as TA,wa as Ha,wb as Ic,x as gA,xa as ja,xb as Nc,y as AA,ya as Va,yb as xc,z as CA,za as Wa,zb as bc}from"./chunks/chunk-MNJ4NNSY.js";import{Ca as ya,Da as Sa,Ea as Oa,Fa as Ra,Ga as Ia,Ha as Na,Ia as xa,J as fa,Ja as gp,K as _a,Ka as Ap,L as ha,La as Cp,M as Ta,Ma as Ep,Na as yp,Oa as Sp,a as DT,b as vT,c as Ci,d as Ei,f as yi,g as Si,h as ds,i as ms,j as ls,l as PA,m as wA,n as LA,o as MA,p as kA,q as DA,qa as ae,r as sa,ra as pe,s as aa,sa as ce,t as pa,ta as de,u as ca,ua as ga,v as da,w as vA,wa as Aa,x as ma,xa as Ca,y as la,ya as Ea,z as ua}from"./chunks/chunk-NUXRRNAB.js";import{$ as Vi,$a as sA,A as dg,Aa as Qg,Ab as Ds,B as mg,Ba as Zg,Bb as vs,C as lg,Ca as eA,Cb as Gs,D as ug,Da as tA,Db as Fs,E as fg,Ea as rA,Fa as nA,Fb as EC,Ga as oA,Gb as yC,Ha as iA,Hb as SC,Ia as ie,Ja as Wi,Ka as Bi,La as $i,Ma as zi,N as _g,Na as Ki,O as hg,Oa as Xi,P as Tg,Pa as Yi,Q as gg,Qa as qi,R as Ag,Ra as Ji,S as Cg,Sa as Qi,T as Eg,Ta as Zi,U as yg,Ua as es,V as Sg,Va as ts,W as Og,Wa as rs,X as Ii,Xa as ns,Y as Ui,Ya as os,Z as Hi,Za as se,_ as ji,_a as is,a as CT,aa as Ig,ab as aA,b as ET,ba as Ng,bb as pA,c as yT,ca as xg,cb as ss,d as ST,da as bg,db as cA,e as OT,ea as Pg,eb as OA,fa as wg,fb as RA,ga as Lg,gb as IA,h as RT,ha as Mg,hb as NA,i as IT,ia as kg,ib as xA,j as gi,ja as Dg,jb as Cs,k as NT,ka as vg,kb as Es,l as xT,la as Gg,lb as ys,m as JT,ma as Fg,mb as Ss,n as QT,na as Ug,nb as Os,o as ZT,oa as Hg,ob as V,p as eg,pa as jg,q as tg,qa as Vg,qb as Rs,r as rg,ra as Wg,rb as Is,s as ng,sa as Bg,sb as Ns,t as og,ta as $g,tb as xs,u as ig,ua as zg,ub as bs,v as sg,va as Kg,vb as Ps,w as Ri,wa as Xg,wb as ws,x as ag,xa as Yg,xb as Ls,y as pg,ya as qg,yb as Ms,z as cg,za as Jg,zb as ks}from"./chunks/chunk-OJPCFDDY.js";import{$ as Au,$b as at,$c as At,$d as qf,$e as cr,$f as th,$g as Mh,$h as mT,$i as Pn,$j as wo,A as F,Aa as yu,Ab as st,Ac as pf,Ad as If,Ae as S_,Af as j_,Ag as _h,Ah as Qh,Ai as rn,Aj as no,Ak as oi,B as su,Ba as Su,Bb as b,Bc as cf,Bd as Nf,Be as O_,Bf as ur,Bh as Zh,Bi as nn,Bj as oo,Bk as ii,C as U,Ca as Ou,Cb as ku,Cc as df,Ce as R_,Cf as fr,Ch as eT,Ci as on,Cj as io,Ck as si,Dc as ee,De as I_,Df as _r,Dg as hh,Dh as tT,Di as sn,Dj as so,Dk as ai,E as au,Eb as Du,Ec as mf,Ed as xf,Ee as Ht,Ef as hr,Eg as Th,Eh as rT,Ei as an,Ej as ao,Ek as pi,F as pu,Fa as Ze,Fc as lf,Fd as bf,Fe as jt,Ff as Tr,Fg as Or,Fh as nT,Fi as pn,Fj as po,Fk as ci,Ga as Ru,Gb as vu,Gc as uf,Gd as Pf,Ge as Vt,Gf as gr,Gg as gh,Gh as oT,Gi as cn,Gj as co,Gk as di,Ha as Iu,Hc as ff,He as Wt,Hf as Ar,Hg as Ah,Hh as iT,Hi as dn,Hj as mo,Hk as mi,I as cu,Ia as Nu,Ic as _f,Id as wf,Ie as Bt,If as V_,Ig as Ch,Ih as sT,Ii as mn,Ij as lo,Ik as li,Ja as xu,Jd as Lf,Je as $t,Jg as Eh,Jh as aT,Ji as ln,Jj as uo,Jk as ui,Kd as Mf,Ke as zt,Kf as Cr,Kg as te,Kh as pT,Ki as un,Kj as fo,Kk as fi,L as du,La as et,Ld as kf,Le as Kt,Lf as Er,Lg as yh,Lh as xr,Li as fn,Lj as _o,Lk as oe,Ma as tt,Md as Df,Me as Xt,Mf as yr,Mg as Sh,Mh as br,Mi as _n,Mj as ho,N as J,Na as H,Nd as vf,Ne as Yt,Ng as Oh,Nh as Pr,Ni as hn,Nj as To,O as Q,Oc as hf,Od as Gf,Oe as qt,Of as W_,Og as Rh,Oh as wr,Oi as Tn,Oj as go,P as Be,Pd as Ff,Pe as Jt,Pf as B_,Ph as Lr,Pi as gn,Pj as Ao,Q as $e,Qa as rt,Qc as ut,Qd as Uf,Qe as Qt,Qf as $_,Qg as Ih,Qh as Mr,Qi as An,Qj as Co,R as mu,Ra as nt,Rc as Tf,Rd as Hf,Re as Zt,Rf as z_,Rg as Nh,Rh as kr,Ri as Cn,Rj as Eo,Sc as ft,Sd as jf,Se as er,Sf as Sr,Sg as xh,Sh as Dr,Si as En,Sj as yo,T as lu,Ta as ot,Tb as Gu,Td as Vf,Te as tr,Tf as K_,Tg as bh,Th as vr,Ti as yn,Tj as So,U as uu,Ub as Fu,Uc as gf,Ud as Wf,Ue as rr,Uf as X_,Ug as Rr,Uh as Gr,Ui as Sn,Uj as Oo,V as fu,Vb as Uu,Vc as Af,Vd as Bf,Ve as nr,Vf as Y_,Vg as Ir,Vh as Fr,Vi as On,Vj as Ro,W as _u,Wc as Cf,Wd as $f,We as or,Wf as q_,Wg as Nr,Wh as Ur,Wi as Rn,Wj as Io,X as hu,Xb as Hu,Xc as _t,Xd as zf,Xe as ir,Xf as J_,Xg as Ph,Xh as Hr,Xi as In,Xj as No,Y as Tu,Yb as ju,Yc as ht,Yd as Kf,Ye as sr,Yf as Q_,Yh as jr,Yi as Nn,Yj as xo,Z as gu,Zc as Tt,Zd as Xf,Ze as ar,Zf as Z_,Zg as wh,Zh as cT,Zi as xn,Zj as bo,_b as Vu,_c as gt,_d as Yf,_e as pr,_f as eh,_g as Lh,_h as dT,_i as bn,_j as Po,aa as Cu,ad as Ct,ae as Jf,af as dr,ag as rh,ai as lT,aj as wn,ak as Lo,ba as Eu,bc as pt,bd as Et,be as Qf,bf as N_,bg as nh,bi as uT,bj as Ln,bk as Mo,c as He,ca as ze,cb as bu,cc as ct,cd as Ef,ce as Zf,cf as x_,ch as kh,ci as fT,cj as Mn,ck as ko,d as je,da as Ke,dd as yf,de as e_,dg as oh,di as _T,dj as kn,dk as Do,e as Ve,ea as Xe,ec as Wu,ee as t_,ef as b_,eh as Dh,ei as hT,ej as Dn,ek as vo,f as We,fc as Bu,fd as yt,fe as r_,ff as P_,fg as ih,fj as vn,fk as Go,gc as $u,gd as St,ge as n_,gg as sh,gj as Gn,gk as Fo,h as Zl,hc as zu,hd as Sf,he as o_,hg as ah,hj as Fn,hk as Uo,i as eu,ia as Ye,ib as j,ic as Ku,id as Ot,ie as i_,if as w_,ig as ph,ih as vh,ii as ne,ij as Un,ik as Ho,j as tu,jb as Z,jc as Xu,jd as Rt,je as s_,jf as L_,jg as ch,jh as Gh,ji as TT,jj as Hn,jk as jo,ka as qe,kb as Pu,kc as Yu,kd as Of,ke as a_,kf as mr,kh as Fh,ki as gT,kj as jn,kk as Vo,la as Je,lb as wu,lc as dt,ld as It,le as p_,lf as lr,lh as Uh,li as AT,lj as Vn,lk as Wo,ma as Qe,mb as g,mc as qu,md as Nt,me as c_,mh as Hh,mi as Vr,mj as Wn,mk as Bo,nb as Lu,nc as Ju,nd as xt,ne as d_,ni as Wr,nj as Bn,nk as $o,oc as Qu,od as bt,oe as m_,oh as jh,oi as Br,oj as $n,ok as zo,pc as Zu,pd as Pt,pe as l_,pf as M_,ph as Vh,pi as $r,pj as zn,pk as Ko,q as ru,qc as ef,qd as wt,qe as u_,qf as k_,qh as Wh,qi as zr,qj as Kn,qk as Xo,rc as tf,rd as Lt,re as f_,rf as D_,rh as Bh,ri as Kr,rj as Xn,rk as Yo,sc as rf,sd as Mt,se as __,sf as v_,sh as $h,si as Xr,sj as Yn,sk as qo,t as nu,tc as nf,td as kt,te as h_,th as zh,ti as Yr,tj as qn,tk as Jo,uc as mt,ud as Dt,ue as T_,uf as G_,ug as dh,uh as Kh,ui as qr,uj as Jn,uk as Qo,v as ou,vc as of,vd as vt,ve as g_,vg as mh,vh as Xh,vi as Jr,vj as Qn,vk as Zo,wc as lt,wd as Gt,we as A_,wg as lh,wh as Yh,wi as Qr,wj as Zn,wk as ei,xd as Ft,xe as C_,xf as F_,xh as qh,xi as Zr,xj as eo,xk as ti,yb as Mu,yc as sf,yd as Ut,ye as E_,yf as U_,yg as uh,yh as re,yi as en,yj as to,yk as ri,z as iu,zb as it,zc as af,zd as Rf,ze as y_,zf as H_,zg as fh,zh as Jh,zi as tn,zj as ro,zk as ni}from"./chunks/chunk-PFSD3DAN.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]="cc0d4dd1-20e8-59d4-acb5-9f8ed639d35f")}catch{}})();(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]="fa4eb88d-f50e-59fa-be7f-0cfb42931a73")}catch{}})();var _="https://schema.unbrained.dev/pm/corpus-shape/v1";function A(e,t){if(!Number.isSafeInteger(e)||e<=0)throw new TypeError(`Corpus shape ${t} must be a positive safe integer`);return e}function R(e,t){if(!Number.isSafeInteger(e)||e<0)throw new TypeError(`Corpus shape ${t} must be a non-negative safe integer`);return e}function Re(e){if(!(typeof e!="object"||e===null||Object.isFrozen(e))){for(let t of Object.values(e))Re(t);Object.freeze(e)}}function C(e){if(e.schema!==_)throw new TypeError(`Unsupported corpus shape schema: ${e.schema}`);if(e.name.trim().length===0||e.description.trim().length===0)throw new TypeError("Corpus shape name and description must be non-empty");if(A(e.hierarchy_depth,"hierarchy_depth"),A(e.hierarchy_fanout,"hierarchy_fanout"),R(e.age_span_days,"age_span_days"),A(e.history_entries_per_item,"history_entries_per_item"),R(e.comments_per_100_items,"comments_per_100_items"),R(e.notes_per_100_items,"notes_per_100_items"),R(e.learnings_per_100_items,"learnings_per_100_items"),A(e.author_cardinality,"author_cardinality"),A(e.component_count,"component_count"),e.edge_kind_mix.length===0||e.edge_kind_mix.some(r=>r.kind.trim().length===0||r.weight<=0))throw new TypeError("Corpus shape edge_kind_mix requires non-empty kinds with positive weights");if(e.terminal_statuses.some(r=>!e.custom_statuses.includes(r)))throw new TypeError("Corpus shape terminal_statuses must be declared in custom_statuses");let t=structuredClone(e);return Re(t),t}var w=[{kind:"implements",weight:5},{kind:"blocked_by",weight:2},{kind:"discovered_from",weight:2},{kind:"verifies",weight:2},{kind:"supersedes",weight:1},{kind:"related",weight:4}],E=Object.freeze({scratch:C({schema:_,name:"scratch",description:"Seconds-old, shallow project with minimal history.",hierarchy_depth:2,hierarchy_fanout:50,age_span_days:0,history_entries_per_item:1,comments_per_100_items:2,notes_per_100_items:1,learnings_per_100_items:1,edge_kind_mix:[{kind:"related",weight:1}],author_cardinality:2,component_count:1,include_cycles:!1,custom_types:[],custom_statuses:[],terminal_statuses:[],custom_fields:[]}),representative:C({schema:_,name:"representative",description:"Medium-lived project with rich evidence and typed lineage.",hierarchy_depth:5,hierarchy_fanout:8,age_span_days:730,history_entries_per_item:12,comments_per_100_items:30,notes_per_100_items:12,learnings_per_100_items:10,edge_kind_mix:w,author_cardinality:32,component_count:1,include_cycles:!1,custom_types:["Experiment"],custom_statuses:["review"],terminal_statuses:[],custom_fields:["domain"]}),"deep-graph":C({schema:_,name:"deep-graph",description:"Deep typed relationship graph with deterministic cycles.",hierarchy_depth:16,hierarchy_fanout:2,age_span_days:3650,history_entries_per_item:6,comments_per_100_items:15,notes_per_100_items:8,learnings_per_100_items:8,edge_kind_mix:w,author_cardinality:16,component_count:1,include_cycles:!0,custom_types:[],custom_statuses:[],terminal_statuses:[],custom_fields:[]}),"multi-decade":C({schema:_,name:"multi-decade",description:"Thirty-year event history with dense per-item evolution.",hierarchy_depth:6,hierarchy_fanout:6,age_span_days:10958,history_entries_per_item:24,comments_per_100_items:40,notes_per_100_items:20,learnings_per_100_items:16,edge_kind_mix:w,author_cardinality:64,component_count:1,include_cycles:!1,custom_types:["Program"],custom_statuses:["archived"],terminal_statuses:["archived"],custom_fields:["portfolio"]}),"disconnected-archive":C({schema:_,name:"disconnected-archive",description:"Multiple disconnected historical project components.",hierarchy_depth:4,hierarchy_fanout:10,age_span_days:7305,history_entries_per_item:8,comments_per_100_items:10,notes_per_100_items:5,learnings_per_100_items:6,edge_kind_mix:w,author_cardinality:24,component_count:5,include_cycles:!1,custom_types:["Archive"],custom_statuses:["archived"],terminal_statuses:["archived"],custom_fields:["archive_source"]})});function Pl(){return Object.keys(E).sort().map(e=>E[e])}function wl(e){let t=e.trim().toLowerCase();if(!Object.hasOwn(E,t))throw new TypeError(`Unknown corpus shape "${e}". Available: ${Object.keys(E).join(", ")}`);return E[t]}var Oe=new WeakMap;function Ie(e,t){if(e===0)return[];let r=Oe.get(t);r===void 0&&(r=t.edge_kind_mix.flatMap(o=>Array.from({length:o.weight},()=>o.kind)),Oe.set(t,r));let n=[r[e%r.length]];return t.include_cycles&&e>2&&e%17===0&&n.push("related"),[...new Set(n)]}function Ll(e,t,r,n=42){if(R(t,"item index"),A(r,"item count"),t>=r)throw new RangeError(`Corpus item index ${t} exceeds ${r}`);let o=Math.min(e.component_count,r),s=t%o,i=Math.floor(t/o),a=0,c=1;for(let q=0;q<e.hierarchy_depth;q+=1)a=Math.min(Number.MAX_SAFE_INTEGER,a+c),c=Math.min(Number.MAX_SAFE_INTEGER,c*e.hierarchy_fanout);let p=i%a,m=i-p,u=p===0?void 0:s+(m+Math.floor((p-1)/e.hierarchy_fanout))*o,d=Date.UTC(2026,0,1),x=e.age_span_days*864e5,Ue=new Date(d+(r===1?0:Math.round(t/(r-1)*x))).toISOString(),G=(t*37+n)%100;return{index:t,id:`pm-s${t.toString(36).padStart(7,"0")}`,...u===void 0?{}:{parent:`pm-s${u.toString(36).padStart(7,"0")}`},component:s,timestamp:Ue,author:`pm-corpus-agent-${(t+n)%Math.min(e.author_cardinality,r)}`,history_entry_count:e.history_entries_per_item,dependency_kinds:Ie(t,e),has_comment:G<e.comments_per_100_items,has_note:G<e.notes_per_100_items,has_learning:G<e.learnings_per_100_items,...e.custom_types.length>0&&t%11===0?{custom_type:e.custom_types[t%e.custom_types.length]}:{},...e.custom_statuses.length>0&&t%13===0?{custom_status:e.custom_statuses[t%e.custom_statuses.length]}:{}}}var W=class{shape;authors=new Set;components=new Set;depths=new Map;childCounts=new Map;edgeKinds={};expectedEdgeKinds={};annotations={comments:0,notes:0,learnings:0};annotationFields;planMismatches=[];itemCount=0;observedDepth=0;observedFanout=0;historyEntryCount=0;firstTimestamp=null;lastTimestamp=null;constructor(t){this.shape=t,this.annotationFields=[["comments","has_comment",t.comments_per_100_items],["notes","has_note",t.notes_per_100_items],["learnings","has_learning",t.learnings_per_100_items]]}recordMismatch(t,r){t&&this.planMismatches.push(r)}recordEdgeKinds(t,r){for(let n of r)t[n]=(t[n]??0)+1}add(t){this.itemCount+=1,this.authors.add(t.author),this.components.add(t.component),this.recordMismatch(this.depths.has(t.id),`duplicate_id:${t.id}`);let r=1;if(t.parent!==void 0){let n=this.depths.get(t.parent);this.recordMismatch(n===void 0,`parent_missing:${t.parent}`),r=(n??0)+1;let o=(this.childCounts.get(t.parent)??0)+1;this.childCounts.set(t.parent,o),this.observedFanout=Math.max(this.observedFanout,o)}this.depths.set(t.id,r),this.observedDepth=Math.max(this.observedDepth,r),this.historyEntryCount+=t.history_entry_count,this.recordMismatch(t.history_entry_count!==this.shape.history_entries_per_item,"history_entries_per_item:drift"),this.firstTimestamp=this.firstTimestamp===null||t.timestamp<this.firstTimestamp?t.timestamp:this.firstTimestamp,this.lastTimestamp=this.lastTimestamp===null||t.timestamp>this.lastTimestamp?t.timestamp:this.lastTimestamp;for(let[n,o]of this.annotationFields)this.annotations[n]+=Number(t[o]);this.recordEdgeKinds(this.edgeKinds,t.dependency_kinds),this.recordEdgeKinds(this.expectedEdgeKinds,Ie(t.index,this.shape))}finish(){let t=Math.min(this.shape.author_cardinality,this.itemCount),r=Math.min(this.shape.component_count,this.itemCount),n=[...this.planMismatches,...this.itemCount===0?["item_count:empty"]:[],...this.authors.size===t?[]:[`author_count:${this.authors.size}!=${t}`],...this.components.size===r?[]:[`component_count:${this.components.size}!=${r}`],...this.observedDepth<=this.shape.hierarchy_depth?[]:[`hierarchy_depth:${this.observedDepth}>${this.shape.hierarchy_depth}`],...this.observedFanout<=this.shape.hierarchy_fanout?[]:[`hierarchy_fanout:${this.observedFanout}>${this.shape.hierarchy_fanout}`]];for(let[i,,a]of this.annotationFields){let c=Math.floor(this.itemCount/100),p=this.itemCount%100,m=c*a+Math.max(0,a+p-100),u=c*a+Math.min(a,p),d=this.annotations[i];(d<m||d>u)&&n.push(`${i}:${d}!in[${m},${u}]`)}let o=new Set([...Object.keys(this.edgeKinds),...Object.keys(this.expectedEdgeKinds)]);for(let i of[...o].sort()){let a=this.edgeKinds[i]??0,c=this.expectedEdgeKinds[i]??0;a!==c&&n.push(`edge_kind:${i}:${a}!=${c}`)}let s=[...new Set(n)];return{shape:this.shape.name,item_count:this.itemCount,author_count:this.authors.size,component_count:this.components.size,hierarchy_depth:this.observedDepth,hierarchy_fanout:this.observedFanout,timestamp_range:{first:this.firstTimestamp,last:this.lastTimestamp},history_entry_count:this.historyEntryCount,annotations:{...this.annotations},edge_kinds:{...this.edgeKinds},matches_declaration:s.length===0,mismatches:s}}};function Ne(e){return new W(e)}function Ml(e,t){let r=Ne(e);for(let n of t)r.add(n);return r.finish()}(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]="80b8e2af-4dcf-59e8-bfbf-38124db887bf")}catch{}})();(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]="8c9a34bd-b77a-55ab-a5d1-3594cecfeb3f")}catch{}})();async function kl(){let e=H(process.cwd(),process.env.PM_PATH);await te(e,(t,r)=>re(t,r,{apply_runtime_defaults:!0}))}(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]="f48b9002-59dc-54d3-95de-36bf0d11b39a")}catch{}})();var xe="https://schema.unbrained.dev/pm/workspace-recipe/v1";function B(e,t){if(e===null||typeof e=="boolean"||typeof e=="string")return e;if(typeof e=="number"){if(!Number.isFinite(e))throw new Error(`Workspace recipe JSON number must be finite at ${t}`);return e}if(Array.isArray(e))return Object.freeze(e.map((r,n)=>B(r,`${t}[${n}]`)));if(typeof e!="object"||Object.getPrototypeOf(e)!==Object.prototype&&Object.getPrototypeOf(e)!==null)throw new Error(`Workspace recipe input must contain JSON values at ${t}`);return Object.freeze(Object.fromEntries(Object.entries(e).map(([r,n])=>[r,B(n,`${t}.${r}`)])))}function be(e){if(e.schema!==xe)throw new Error(`Unsupported workspace recipe schema: ${e.schema}`);let t=J(e);if(e.operations.some(r=>r.action.trim().length===0||r.input===null||Array.isArray(r.input)))throw new Error("Workspace recipe operations require an action and object input");return Object.freeze({...t,operations:Object.freeze(e.operations.map((r,n)=>Object.freeze({action:r.action,input:B(r.input,`operations[${n}].input`)})))})}async function Pe(e,t){let r=be(e);return Q(r,t)}async function Dl(e,t){return Pe(e,async()=>{let r=[];for(let[n,o]of e.operations.entries())r.push(await t(o,n));return 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]="a108f4d2-80c3-540e-821c-5acdf68eb7fa")}catch{}})();async function vl(){await ne()}import y from"node:fs";import $ from"node:path";(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]="6748a283-bc93-5783-98c1-d1a7f2fdce4e")}catch{}})();var we=300*1e3,Gl=3;function Ey(e){return(e?.trim()||"development").replace(/[^a-zA-Z0-9._-]/g,"_").replace(/^\./,"_")}function yy(e,t){let r=t.trim();if(!/^[a-zA-Z0-9_-][a-zA-Z0-9._-]*$/.test(r))throw new TypeError("Compile-cache generation must be a safe non-empty filename token.");y.mkdirSync(e,{recursive:!0});let n=$.join(e,r);y.mkdirSync(n,{recursive:!0});let o=new Date;y.utimesSync(n,o,o);let s=y.readdirSync(e).filter(p=>p!==r).flatMap(p=>{try{return[{name:p,mtimeMs:y.statSync($.join(e,p)).mtimeMs}]}catch(m){if(m instanceof Error&&"code"in m&&m.code==="ENOENT")return[];throw m}}).sort((p,m)=>m.mtimeMs-p.mtimeMs||p.name.localeCompare(m.name)),i=s.filter(p=>o.getTime()-p.mtimeMs<we),a=Math.max(0,Gl-1-i.length),c=s.filter(p=>o.getTime()-p.mtimeMs>=we).slice(a).map(p=>p.name).sort((p,m)=>p.localeCompare(m));for(let p of c)y.rmSync($.join(e,p),{recursive:!0,force:!0,maxRetries:3,retryDelay:50});return{retained:r,removed:c}}import Le from"node:fs";import M from"node:path";(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]="962636b0-ed3b-5ad0-ae0c-904435025986")}catch{}})();var D="@unbrained/pm-cli",Fl=new Set(["append","claim","changelog","close","close-many","close-task","comments","config","copy","create","dedupe-merge","delete","deps","docs","extension","event","events","files","focus","gc","history-author-acknowledge","history-compact","history-redact","history-repair","init","install","item","learnings","meet","merge","normalize","notes","package","packages","pause-task","plan","profile","reindex","release","remind","restore","schema","start-task","test","test-all","test-runs","test-runs-worker","telemetry","templates","twin","update","update-many","upgrade","vcs","workspace"]),Me=new Set(["--author","--output-budget","--output-format","--output-include","--output-limit","--output-session","--path","--pm-path"]),X=/\b(\d{4})\.(\d{1,2})\.(\d{1,2})(?:-(\d+))?\b/u;function l(e,t){return e.some(r=>t.includes(r.split("=",1)[0]))}function z(e,t){return["activate","adopt","adopt-all","deactivate","init","install","migrate","reload","uninstall"].includes(t[0]??"")||l(e,["--activate","--adopt","--adopt-all","--deactivate","--fix-managed-state","--init","--install","--output","--reload","--scaffold","--uninstall"])}var Ul={changelog:(e,t)=>{if(t[0]==="generate")return!l(e,["--check"]);let r=e.indexOf("export");return t[0]==="export"&&(l(e,["--output"])||r>=0&&e[r+1]!==void 0&&!e[r+1].startsWith("-"))},comments:e=>l(e,["--add","--delete","--edit","--file","--stdin"]),config:(e,t)=>(t[0]==="project"||t[0]==="global"?t[1]:t[0])==="set",deps:()=>!1,docs:e=>l(e,["--add","--add-glob","--migrate","--remove"]),duplicates:()=>!1,events:()=>!1,extension:z,files:(e,t)=>l(e,["--add","--add-glob","--migrate","--remove"])||t[0]==="discover"&&l(e,["--apply"]),health:e=>!l(e,["--check-only","--no-refresh","--skip-vectors"]),learnings:e=>l(e,["--add","--delete","--edit","--file","--stdin"]),merge:(e,t)=>t[0]!=="report",notes:e=>l(e,["--add","--delete","--edit","--file","--stdin"]),package:z,packages:z,profile:(e,t)=>t[0]==="apply",schema:(e,t)=>["add-field","add-status","add-type","remove-field","remove-status","remove-type","remap-status","rename-field","rename-type"].includes(t[0]??"")&&!(l(e,["--infer"])&&!l(e,["--apply"])),telemetry:(e,t)=>t.slice(0,2).some(r=>["clear","flush"].includes(r)),templates:(e,t)=>t[0]==="save",test:e=>l(e,["--add","--add-json","--background","--measure","--remove","--resume","--run","--stop"]),validate:e=>l(e,["--auto-fix","--prune-missing"]),vcs:(e,t)=>["abandon","create","merge","propose","ref-create"].includes(t[0]??""),workspace:(e,t)=>t[0]==="snapshot"&&["create","delete","restore"].includes(t[1]??"")};function k(e){let t=e.match(X);return t?[Number(t[1]),Number(t[2]),Number(t[3]),Number(t[4]??0)]:null}function L(e,t){let r=k(e),n=k(t);if(!r||!n)return null;for(let o=0;o<r.length;o+=1){let s=r[o]-n[o];if(s!==0)return Math.sign(s)}return 0}function K(e){try{let t=JSON.parse(Le.readFileSync(e,"utf8"));return typeof t=="object"&&t!==null&&!Array.isArray(t)?t:null}catch{return null}}function Hl(e){let t=[];for(let r of["dependencies","devDependencies","optionalDependencies","peerDependencies"]){let n=e[r];if(typeof n!="object"||n===null)continue;let o=n[D],s=typeof o=="string"?o.trim():"",i=/^[<!]/u.test(s)?void 0:s.match(X)?.[0];i&&t.push(i)}return t.sort((r,n)=>L(n,r))[0]}function jl(e){let r=K(M.join(e,"package-lock.json"))?.packages;if(typeof r!="object"||r===null)return;let n=r["node_modules/@unbrained/pm-cli"];if(typeof n!="object"||n===null)return;let o=n.version;return typeof o=="string"?o:void 0}function Vl(e,t){try{let r=Le.readFileSync(M.join(e,t),"utf8").split(/\r?\n/u),n=r.findIndex(c=>c.includes(D));if(n<0)return;let o=r[n].match(/^\s*/u)[0].length,s=[r[n]];for(let c=n+1;c<r.length;c+=1){let p=r[c],m=p.trim(),u=p.match(/^\s*/u)[0].length;if(m.length>0&&u<=o)break;s.push(p)}return s.join(`
2
+ `).match(/^\s*version(?::\s*|\s+)["']?(\d{4}\.\d{1,2}\.\d{1,2}(?:-\d+)?)/mu)?.[1]??s[0].match(X)?.[0]}catch{return}}function Wl(e){let t=[],r=K(M.join(e,"package.json")),n=r?Hl(r):void 0;n&&t.push({version:n,source:"package.json"});let s=K(M.join(e,"node_modules","@unbrained","pm-cli","package.json"))?.version;typeof s=="string"&&k(s)&&t.push({version:s,source:"installed-package"});let i=jl(e);i&&k(i)&&t.push({version:i,source:"package-lock.json"});for(let a of["pnpm-lock.yaml","yarn.lock"]){let c=Vl(e,a);c&&t.push({version:c,source:a})}return t}function ke(e){for(let t=0;t<e.length;t+=1){let r=e[t];if(Me.has(r)){t+=1;continue}if(!r.startsWith("-"))return{command:r.toLowerCase(),index:t}}}function Bl(e){let t=ke(e);if(!t||l(e,["--help","-h","--dry-run"]))return!1;let{command:r,index:n}=t,o=[];for(let i=n+1;i<e.length;i+=1){let a=e[i];if(Me.has(a)){i+=1;continue}a.startsWith("-")||o.push(a.toLowerCase())}let s=Ul[r];return s?s(e,o):Fl.has(r)}function $l(e){let t=ke(e.argv)?.command,r=Bl(e.argv),o=Wl(e.projectRoot).filter(a=>L(a.version,e.executingVersion)!==null).sort((a,c)=>L(c.version,a.version))[0],s=o!==void 0&&L(e.executingVersion,o.version)===-1,i=s&&!r?{code:"project_runtime_stale_read",executing_version:e.executingVersion,project_version:o.version,source:o.source,message:"This read is using an older pm runtime than the project requires.",next_steps:[`Run the command through the project's installed ${D} ${o.version}.`,"Install the project dependencies with its declared package manager if the local executable is missing."]}:void 0;return{compatible:!r||!s||e.allowStale===!0,executing_version:e.executingVersion,...o?{project_version:o.version,source:o.source}:{},...t?{command:t}:{},mutating:r,stale:s,...i?{warning:i}:{},override_applied:s&&r&&e.allowStale===!0}}function xy(e){let t=$l(e);if(t.compatible)return t;throw new U(`pm ${t.executing_version} cannot mutate a project pinned to newer pm ${t.project_version}.`,F.CONFLICT,{code:"project_runtime_stale_mutation",reason:t.source,why:"An older runtime can write storage, history, and merge contracts it does not understand.",nextSteps:[`Run this command through the project's installed ${D} ${t.project_version}.`,"For an intentional recovery only, set PM_ALLOW_STALE_CLI=1 for this invocation and record why.","Read-only commands remain available without an override."]})}import{createHash as zl}from"node:crypto";(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]="4586a8b2-07c8-53d4-9c5d-ca557ee07977")}catch{}})();var Y=1;function S(e){e?.throwIfAborted()}function h(e,t){if(typeof e!="string"||e.trim().length===0)throw new TypeError(`Relationship graph ${t} must be non-empty`);return e.trim()}function O(e,t,r={}){let n=Date.parse(r.createdAt??new Date().toISOString());if(!Number.isFinite(n))throw new TypeError("Relationship graph createdAt must be a valid timestamp");let o=e.nodes(),s=e.edges(),i=t.list();return Object.freeze({version:Y,fingerprint:zl("sha256").update(b({nodes:o,edges:s,kinds:i})).digest("hex"),created_at:new Date(n).toISOString(),nodes:o,edges:s,kinds:i})}function Kl(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function N(e){if(!Kl(e))throw new TypeError("Relationship graph snapshot must be an object");if(e.version!==Y)throw new TypeError(`Unsupported relationship graph snapshot version: ${String(e.version)}`);if(!Array.isArray(e.nodes)||e.nodes.some(o=>typeof o!="string"))throw new TypeError("Relationship graph snapshot nodes must be strings");if(!Array.isArray(e.edges)||!Array.isArray(e.kinds))throw new TypeError("Relationship graph snapshot edges and kinds must be arrays");if(typeof e.created_at!="string"||!Number.isFinite(Date.parse(e.created_at)))throw new TypeError("Relationship graph snapshot created_at must be valid");if(typeof e.fingerprint!="string")throw new TypeError("Relationship graph snapshot fingerprint must be a string");let t=new j([]);for(let o of e.kinds)t.register(o);let r=new g(e.nodes,e.edges,t),n=O(r,t,{createdAt:e.created_at});if(n.fingerprint!==e.fingerprint)throw new TypeError("Relationship graph snapshot fingerprint mismatch");return{snapshot:n,registry:t,graph:r}}async function f(e,t){h(e.name,"adapter name");let r=h(t.workspace,"workspace");S(t.signal);let n=await e.read({...t,workspace:r});return S(t.signal),n===null?null:N(n)}async function v(e,t){let r=h(t.workspace,"workspace"),n=N(t.snapshot).snapshot,o=await f(e,{workspace:r,signal:t.signal});if(o?.snapshot.fingerprint===n.fingerprint)return{adapter:e.name,workspace:r,disposition:"current",fingerprint:n.fingerprint,previous_fingerprint:o.snapshot.fingerprint,node_count:n.nodes.length,edge_count:n.edges.length};if(S(t.signal),await e.replace({workspace:r,signal:t.signal,snapshot:n,expected_fingerprint:o?.snapshot.fingerprint??null}),(await f(e,{workspace:r,signal:t.signal}))?.snapshot.fingerprint!==n.fingerprint)throw new Error(`Relationship graph adapter "${e.name}" did not expose the replaced snapshot`);return{adapter:e.name,workspace:r,disposition:"written",fingerprint:n.fingerprint,...o?{previous_fingerprint:o.snapshot.fingerprint}:{},node_count:n.nodes.length,edge_count:n.edges.length}}function Xl(e,t={}){let r=e.map(N),n=new Map;for(let i of r)for(let a of i.snapshot.kinds){let c=n.get(a.kind);if(c&&b(c)!==b(a))throw new TypeError(`Conflicting federated relationship kind: ${a.kind}`);n.set(a.kind,a)}let o=new j([...n.values()].sort((i,a)=>i.kind.localeCompare(a.kind))),s=new g(new Set(r.flatMap(i=>[...i.snapshot.nodes])),r.flatMap(i=>[...i.snapshot.edges]),o);return O(s,o,t)}var I=class{name;#e=new Map;constructor(t="memory"){this.name=h(t,"adapter name")}async read(t){S(t.signal);let r=this.#e.get(h(t.workspace,"workspace"));return r?structuredClone(r):null}async replace(t){S(t.signal);let r=h(t.workspace,"workspace"),n=this.#e.get(r);if(t.expected_fingerprint!==void 0&&(n?.fingerprint??null)!==t.expected_fingerprint)throw new Error(`Relationship graph adapter conflict for ${r}`);this.#e.set(r,structuredClone(N(t.snapshot).snapshot))}async clear(t){S(t.signal);let r=h(t.workspace,"workspace"),n=this.#e.get(r);if(t.expected_fingerprint!==void 0&&(n?.fingerprint??null)!==t.expected_fingerprint)throw new Error(`Relationship graph adapter conflict for ${r}`);this.#e.delete(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]="423d6e5d-93e5-5f29-93e0-11ddca9c3156")}catch{}})();function De(e,t){if(!Number.isInteger(e)||e<1)throw new TypeError(`Relationship graph ${t} must be a positive integer`);return e}function Yl(e){let t=De(e.nodeCount,"nodeCount"),r=De(e.edgeStride??1,"edgeStride"),n=e.topology??"chain";if(!["chain","star","disconnected"].includes(n))throw new TypeError(`Unsupported relationship graph topology: ${n}`);let o=(e.kind??"related").trim(),s=(e.idPrefix??"node").trim();if(!o||!s)throw new TypeError("Relationship graph kind and idPrefix must be non-empty");let i=n==="disconnected"?0:Math.floor((t-1)/r);return{node_count:t,edge_count:i,edge_basis:"fixture_generated",nodes:{*[Symbol.iterator](){for(let a=0;a<t;a+=1)yield`${s}-${a}`}},edges:{*[Symbol.iterator](){if(n!=="disconnected")for(let a=r;a<t;a+=r)yield{source:`${s}-${n==="star"?0:a-r}`,target:`${s}-${a}`,kind:o}}}}}function T(e,t){if(!e)throw new Error(`Relationship graph adapter conformance: ${t}`)}async function ve(e,t={}){let r=t.workspace?.trim()||"pm-graph-conformance",n=Z(),o=O(new g(["a","b"],[{source:"a",target:"b",kind:"related"}],n),n,{createdAt:"2026-01-01T00:00:00.000Z"}),s=O(new g(["a","b","c"],[{source:"a",target:"b",kind:"related"},{source:"b",target:"c",kind:"blocked_by"}],n),n,{createdAt:"2026-01-02T00:00:00.000Z"}),i=[];T(await f(e,{workspace:r})===null,"workspace must start empty"),i.push({name:"empty-read",passed:!0});let a=await v(e,{workspace:r,snapshot:o});T(a.disposition==="written","first sync must write"),i.push({name:"atomic-replace",passed:!0}),(await e.read({workspace:r})).nodes.push("mutated-reader-copy"),T((await f(e,{workspace:r}))?.snapshot.nodes.length===2,"reads must not mutate stored state"),i.push({name:"read-isolation",passed:!0}),T((await v(e,{workspace:r,snapshot:o})).disposition==="current","identical sync must be idempotent"),i.push({name:"idempotent-sync",passed:!0}),await e.replace({workspace:r,snapshot:s,expected_fingerprint:o.fingerprint}),T((await f(e,{workspace:r}))?.snapshot.fingerprint===s.fingerprint,"replacement must become visible"),i.push({name:"replacement-visibility",passed:!0});let p=!1;try{await e.replace({workspace:r,snapshot:o,expected_fingerprint:o.fingerprint})}catch{p=!0}return T(p,"stale compare-and-swap must fail"),i.push({name:"stale-cas",passed:!0}),e.clear&&(await e.clear({workspace:r,expected_fingerprint:s.fingerprint}),T(await f(e,{workspace:r})===null,"clear must remove the workspace"),i.push({name:"clear",passed:!0})),{adapter:e.name,workspace:r,cases:Object.freeze(i),clear_supported:e.clear!==void 0}}function ql(e){return ve(new I,e?{workspace:e}:{})}(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]="2c3df51e-6b10-5da6-8340-126465d9c434")}catch{}})();(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]="5133d678-01f4-5164-aea7-2cc5ed42dd58")}catch{}})();import{createHash as Ge}from"node:crypto";(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]="54a3448c-719c-5404-a9b9-c3072a2fdce2")}catch{}})();function Fe(e,t){if(typeof e!="string"||e.trim().length===0)throw new TypeError(`Relationship backfill ${t} must be non-empty`);return e.trim()}function Zy(e,t){let r=Fe(t.migrationId,"migrationId"),n=Fe(t.author,"author"),o=Date.parse(t.timestamp);if(!Number.isFinite(o))throw new TypeError("Relationship backfill timestamp must be valid");let s=new Date(o).toISOString(),i=V(e,void 0,t.registry),a=i.graph.nodes(),c=i.graph.edges().map(d=>{let x=Ge("sha256").update(JSON.stringify([r,d.kind,d.source,d.target,d.createdAt??null,d.author??null,d.payload??null])).digest("hex").slice(0,24);return Object.freeze({eventId:`backfill:${r}:${x}`,relationshipId:`migration:${r}:${x}`,action:"add",edge:d,author:n,timestamp:s,reason:`Backfill ${r} from legacy item metadata`})}),p=Ge("sha256").update(JSON.stringify({migrationId:r,nodes:a,events:c})).digest("hex"),m=new Set([...t.existingEventIds??[]].filter(d=>typeof d=="string").map(d=>d.trim()).filter(Boolean)),u=c.filter(d=>!m.has(d.eventId));return Object.freeze({migration_id:r,fingerprint:p,nodes:a,events:Object.freeze(u),edge_count:c.length,skipped_existing_count:c.length-u.length,duplicate_dependency_rows:i.duplicateRows.length,dangling_reference_count:i.dangling.active.length+i.dangling.legacy_terminal.length})}(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]="7fc669d4-1db2-5636-8304-2c111a684726")}catch{}})();function tS(e){return e}function rS(e){return e}function nS(e){return e}function oS(e){return e}function iS(e){return e}function sS(e){return e}function aS(e){return e}function pS(e){return e}function cS(e){return e}function dS(e){return e}function mS(e){return e}function lS(e){return e}function uS(e){return e}function fS(e){return{handled:!0,result:e}}function _S(){return{handled:!1}}function hS(e){return e}function TS(e){return e}function gS(e){return e}function AS(e){return e}function CS(e){return e}function ES(e){return e}function yS(e){return e}function SS(e){return e}function OS(e){return e}(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]="5bbfab95-010d-5507-ab01-f8f43943d295")}catch{}})();function Jl(e={},t={}){return new P(t).extension(void 0,{...e,migrate:!0})}function Ql(e={},t={}){return new P(t).packageMigrate(e)}(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]="99a9b24a-4bc7-50da-8333-e76086f0e303")}catch{}})();(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]="708c1c46-ce32-56ff-812f-71f825ad7ec4")}catch{}})();(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]="5e04dc9d-8e2d-5ef2-bf8b-6b18bd87c3bc")}catch{}})();(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]="ae84c7af-bfa7-577d-b9f3-2bd9450d5755")}catch{}})();export{Xr as ACTIVITY_COMMANDER_STRING_OPTION_CONTRACTS,Vo as ACTIVITY_FLAG_CONTRACTS,Pt as AGENT_PROVENANCE_DIMENSIONS,Nn as AGGREGATE_FLAG_CONTRACTS,fo as APPEND_FLAG_CONTRACTS,_t as BASELINE_ITEM_FORMAT_VERSION,Cg as BRIEF_LIST_FIELDS,E as BUILTIN_CORPUS_SHAPES,wt as BUILTIN_HARNESS_SIGNAL_DESCRIPTORS,ze as BUILTIN_ITEM_TYPE_VALUES,ue as BUILTIN_PROFILES,$r as CALENDAR_COMMANDER_STRING_OPTION_CONTRACTS,jo as CALENDAR_FLAG_CONTRACTS,_o as CLAIM_FLAG_CONTRACTS,ai as CLOSE_ACTION_OPTION_KEYS,lo as CLOSE_FLAG_CONTRACTS,uo as CLOSE_MANY_FLAG_CONTRACTS,Eo as CLOSE_TASK_FLAG_CONTRACTS,xn as COMMENTS_FLAG_CONTRACTS,yu as COMMON_MUTATION_COMMAND_OPTION_KEYS,ei as COMPLETION_FLAG_CONTRACTS,Qe as CONFIDENCE_TEXT_VALUES,Wn as CONFIG_FLAG_CONTRACTS,zr as CONTEXT_COMMANDER_STRING_OPTION_CONTRACTS,Lg as CONTEXT_EVALUATION_METRIC_NAMES,Bo as CONTEXT_FLAG_CONTRACTS,ie as CONTEXT_OUTPUT_VALUES,Gg as CONTEXT_PACKING_PROFILES,xg as CONTEXT_RELEVANCE_SERVICE,Ig as CONTEXT_RELEVANCE_SIGNAL_NAMES,$g as CONTEXT_SIGNAL_SET_VERSION,Bg as CONTEXT_SIGNAL_STORE_FORMAT_VERSION,Zo as CONTRACTS_FLAG_CONTRACTS,Go as COPY_FLAG_CONTRACTS,Qr as CREATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,en as CREATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,Zr as CREATE_COMMANDER_STRING_OPTION_CONTRACTS,ru as CREATE_DIRECT_CLOSE_REASON_DEFAULT,ko as CREATE_FLAG_CONTRACTS,ht as CURRENT_ITEM_FORMAT_VERSION,Yg as ContextSignalStore,Ug as ContextUsageValidationError,eg as DEFAULT_AUTHOR_IDENTITY_VOCABULARY,FA as DEFAULT_CHILD_SAMPLE_LIMIT,Ag as DEFAULT_COMPACT_LIST_FIELDS,Rh as DEFAULT_DERIVED_INDEX_MINIMUM_ITEMS,bp as DEFAULT_EVAL_QUERIES_RELATIVE_PATH,dA as DEFAULT_TERMINAL_TRANSITION_POLICY,Zg as DEFAULT_WORKSPACE_MEMORY_MINIMUM_ITEMS,To as DELETE_FLAG_CONTRACTS,Ye as DEPENDENCY_KIND_VALUES,Ko as DEPS_FLAG_CONTRACTS,Ln as DOCS_FLAG_CONTRACTS,wo as DUPLICATES_FLAG_CONTRACTS,Yo as EVAL_FLAG_CONTRACTS,Rp as EVAL_QUERY_SET_CONTRACT,Ip as EVAL_QUERY_SET_EXAMPLE,Op as EVAL_QUERY_SET_SCHEMA_ID,Wo as EVENTS_FLAG_CONTRACTS,So as EVENT_FLAG_CONTRACTS,Vr as EXECUTABLE_COMMAND_ALIASES,F as EXIT_CODE,eo as EXTENSION_ACTIVATE_FLAG_CONTRACTS,Zn as EXTENSION_ADOPT_ALL_FLAG_CONTRACTS,ao as EXTENSION_ADOPT_FLAG_CONTRACTS,GT as EXTENSION_CAPABILITIES,tu as EXTENSION_CAPABILITY_CONTRACT,Zl as EXTENSION_CAPABILITY_CONTRACT_VERSION,eu as EXTENSION_CAPABILITY_LEGACY_ALIASES,at as EXTENSION_CAPABILITY_REGISTRATION_SURFACES,so as EXTENSION_CATALOG_FLAG_CONTRACTS,to as EXTENSION_DEACTIVATE_FLAG_CONTRACTS,Qn as EXTENSION_DESCRIBE_FLAG_CONTRACTS,io as EXTENSION_DOCTOR_FLAG_CONTRACTS,Jn as EXTENSION_EXPLORE_FLAG_CONTRACTS,Bn as EXTENSION_FLAG_CONTRACTS,zn as EXTENSION_INIT_FLAG_CONTRACTS,Yn as EXTENSION_INSTALL_FLAG_CONTRACTS,no as EXTENSION_MANAGE_FLAG_CONTRACTS,ro as EXTENSION_MIGRATE_FLAG_CONTRACTS,FT as EXTENSION_POLICY_MODES,UT as EXTENSION_POLICY_SURFACES,oo as EXTENSION_RELOAD_FLAG_CONTRACTS,jT as EXTENSION_SANDBOX_PROFILES,$n as EXTENSION_SCOPE_FLAG_CONTRACTS,HT as EXTENSION_TRUST_MODES,qn as EXTENSION_UNINSTALL_FLAG_CONTRACTS,OA as EXTERNAL_DEPENDENCY_SOURCE_KIND,RA as EXTERNAL_DEPENDENCY_SOURCE_KIND_ALIAS,wn as FILES_FLAG_CONTRACTS,Fo as FOCUS_FLAG_CONTRACTS,bo as GC_FLAG_CONTRACTS,$o as GET_FLAG_CONTRACTS,Rn as GLOBAL_FLAG_CONTRACTS,mc as GRAPH_DURABLE_CACHE_MIN_ITEMS,dc as GRAPH_DURABLE_CACHE_VERSION,Xo as GRAPH_FLAG_CONTRACTS,Kt as GRAPH_SUBCOMMAND_VALUES,zo as GUIDE_FLAG_CONTRACTS,Lo as HEALTH_FLAG_CONTRACTS,Gn as HISTORY_AUTHOR_ACKNOWLEDGE_FLAG_CONTRACTS,BA as HISTORY_AUTHOR_ATTRIBUTION_BASELINE,xC as HISTORY_COMPACT_BULK_DEFAULT_MIN_ENTRIES,Fn as HISTORY_COMPACT_FLAG_CONTRACTS,Mn as HISTORY_FLAG_CONTRACTS,Dn as HISTORY_REDACT_FLAG_CONTRACTS,vn as HISTORY_REPAIR_FLAG_CONTRACTS,gp as INIT_AGENT_GUIDANCE_MODE_VALUES,Vn as INIT_FLAG_CONTRACTS,po as INSTALL_FLAG_CONTRACTS,Je as ISSUE_SEVERITY_VALUES,vo as ITEM_COMPLETE_FLAG_CONTRACTS,mC as ITEM_LATEST_TIMESTAMP_FIELDS,ou as ITEM_METADATA_KEY_ORDER,Do as ITEM_MUTATE_FLAG_CONTRACTS,Ke as ITEM_TYPE_VALUES,dC as ITEM_UNION_COLLECTION_FIELDS,Xg as JsonFileContextSignalStoreAdapter,Pn as LEARNINGS_FLAG_CONTRACTS,$s as LINKED_TEST_ENV_NAME_PATTERN,zs as LINKED_TEST_PM_CONTEXT_MODE_VALUES,Bs as LINKED_TEST_PROTECTED_ENV_KEYS,Wr as LIST_COMMANDER_STRING_OPTION_CONTRACTS,Eg as LIST_COMMAND_DEFAULT_PROJECTIONS,WT as LIST_FILTER_EXTENSION_FLAG_DEFINITIONS,In as LIST_FILTER_FLAG_CONTRACTS,Tg as LIST_SORT_FIELDS,gg as LIST_SORT_ORDER_VALUES,GA as MAX_CHILD_PROJECTION_ITEMS,yo as MEET_FLAG_CONTRACTS,fC as MERGE_DRIVER_ARTIFACT_VALUES,kn as MERGE_FLAG_CONTRACTS,I as MemoryRelationshipGraphAdapter,Kr as NEXT_COMMANDER_STRING_OPTION_CONTRACTS,Jo as NEXT_FLAG_CONTRACTS,is as NEXT_OUTPUT_VALUES,bn as NOTES_FLAG_CONTRACTS,Kn as PACKAGE_FLAG_CONTRACTS,Xn as PACKAGE_INIT_FLAG_CONTRACTS,Co as PAUSE_TASK_FLAG_CONTRACTS,si as PLAN_CREATE_METADATA_PARAMETER_KEYS,jn as PLAN_FLAG_CONTRACTS,Pa as PLAN_SHOW_DEPTH_VALUES,ba as PLAN_SUBCOMMANDS,wa as PLAN_TEMPLATE_NAMES,_i as PM_CLI_EXPECTED_ERROR_NAME,Yt as PM_CLI_ONLY_TOOL_ACTION_WAIVERS,hA as PM_COMMAND_EXIT_CONTRACTS,_A as PM_COMMAND_EXIT_OUTCOME_CONTRACTS,pr as PM_COMMAND_OUTPUT_BUDGET_CONTRACTS,jC as PM_COMMAND_OUTPUT_ENVELOPE_CONTRACTS,Oc as PM_COMMAND_VISIBILITY_CONTRACTS,$T as PM_CONTEXT_INTENTS_FILE,T_ as PM_CONTEXT_INTENT_CONTRACTS,zt as PM_CORE_COMMAND_NAMES,_ as PM_CORPUS_SHAPE_SCHEMA,FC as PM_ERROR_CODE_CATALOG,kC as PM_ERROR_CODE_EXIT_CLASS_CONTRACTS,Ht as PM_EXTENSION_CAPABILITY_CONTRACTS,Xt as PM_EXTENSION_PACKAGE_ACTION_SUBCOMMANDS,Vt as PM_EXTENSION_POLICY_MODE_CONTRACTS,$t as PM_EXTENSION_POLICY_SURFACE_CONTRACTS,Bt as PM_EXTENSION_SANDBOX_PROFILE_CONTRACTS,jt as PM_EXTENSION_SERVICE_NAME_CONTRACTS,Wt as PM_EXTENSION_TRUST_MODE_CONTRACTS,DA as PM_GITATTRIBUTES_END,kA as PM_GITATTRIBUTES_START,Ei as PM_GITIGNORE_END,Ci as PM_GITIGNORE_START,Pc as PM_MCP_PROMPT_CONTRACTS,bc as PM_MCP_RESOURCE_CONTRACTS,Nc as PM_MCP_TOOL_COMMAND_CONTRACTS,Mf as PM_MODE_PAIRED_OUTPUT_PROJECTION_CONTRACTS,xr as PM_MUTATION_ACTION_CONTRACTS,or as PM_OUTPUT_BUDGET_CLASSES,nr as PM_OUTPUT_DEGRADATION_STEPS,UC as PM_OUTPUT_ENVELOPE_KINDS,pe as PM_PACKAGE_CONVENTIONAL_RESOURCE_ROOTS,ae as PM_PACKAGE_RESOURCE_KINDS,fi as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA,li as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA_VERSION,c_ as PM_READ_OUTPUT_COMPOSITION_OPTION_FLAGS,s_ as PM_READ_OUTPUT_DIMENSIONS,p_ as PM_READ_OUTPUT_OPTION_FLAGS,t_ as PM_READ_OUTPUT_SESSION_MAX_SEEN_ITEM_IDS,e_ as PM_READ_OUTPUT_SESSION_MIN_TOKENS,a_ as PM_READ_OUTPUT_SURFACES,d_ as PM_READ_OUTPUT_SURFACE_CONTRACTS,Lf as PM_READ_ROW_CONTRACTS,wf as PM_READ_ROW_JQ_SELECTOR,TA as PM_SUCCESS_EXIT_CODES,qt as PM_TOOL_ACTIONS,pi as PM_TOOL_ACTION_PARAMETER_CONTRACTS,ui as PM_TOOL_PARAMETERS_SCHEMA,mi as PM_TOOL_PARAMETERS_SCHEMA_MAJOR,di as PM_TOOL_PARAMETERS_SCHEMA_VERSION,oi as PM_TOOL_RESERVED_CUSTOM_FIELD_PROPERTIES,xe as PM_WORKSPACE_RECIPE_SCHEMA,Hn as PROFILE_FLAG_CONTRACTS,Ce as PROFILE_LINT_CODES,Ae as PROFILE_LINT_DIMENSIONS,le as PROFILE_NAMES,Kp as PROFILE_SUBCOMMANDS,U as PmCliError,P as PmClient,Xf as QUERY_CURSOR_CONTRACT,mo as REINDEX_FLAG_CONTRACTS,Ch as REINDEX_LOCK_ID,Y as RELATIONSHIP_GRAPH_SNAPSHOT_VERSION,go as RELEASE_FLAG_CONTRACTS,Oo as REMIND_FLAG_CONTRACTS,ee as RESERVED_ITEM_FIELD_NAMES,ho as RESTORE_FLAG_CONTRACTS,qe as RISK_VALUES,bT as RelationshipEventLog,PT as RelationshipEventStore,g as RelationshipGraph,j as RelationshipKindRegistry,Un as SCHEMA_FLAG_CONTRACTS,Br as SEARCH_COMMANDER_STRING_OPTION_CONTRACTS,BT as SEARCH_EXTENSION_FLAG_DEFINITIONS,Qo as SEARCH_FLAG_CONTRACTS,iu as SETTINGS_DEFAULTS,kp as SNAPSHOT_SCHEMA,PA as SOURCE_CONTEXT_ACCESS_ENV,wA as SOURCE_CONTEXT_WRITE_OVERRIDE_ENV,Ao as START_TASK_FLAG_CONTRACTS,Po as STATS_FLAG_CONTRACTS,Xe as STATUS_VALUES,On as SUBCOMMAND_GLOBAL_FLAG_CONTRACTS,xf as SUPPRESS_HOST_OUTPUT_MARKER,No as TELEMETRY_FLAG_CONTRACTS,qc as TELEMETRY_SUBCOMMANDS,Io as TEST_ALL_FLAG_CONTRACTS,Ro as TEST_FLAG_CONTRACTS,xo as TEST_RUNS_FLAG_CONTRACTS,$c as TEST_RUN_MEASUREMENT_LIMIT,gn as TOOL_ACTIVITY_OPTION_CONTRACTS,sn as TOOL_AGGREGATE_OPTION_CONTRACTS,fn as TOOL_BULK_MUTATION_FILTER_OPTION_CONTRACT_SOURCE,Tn as TOOL_CALENDAR_OPTION_CONTRACTS,hn as TOOL_CLOSE_MANY_FILTER_OPTION_CONTRACTS,An as TOOL_CONTEXT_OPTION_CONTRACTS,mn as TOOL_CREATE_OPTION_CONTRACTS,dn as TOOL_CREATE_OPTION_CONTRACT_SOURCE,Cn as TOOL_DEPS_OPTION_CONTRACTS,En as TOOL_GRAPH_OPTION_CONTRACTS,on as TOOL_LIST_FILTER_OPTION_CONTRACTS,an as TOOL_SEARCH_FILTER_OPTION_CONTRACTS,cn as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACTS,pn as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACT_SOURCE,_n as TOOL_UPDATE_MANY_FILTER_OPTION_CONTRACTS,un as TOOL_UPDATE_OPTION_CONTRACTS,ln as TOOL_UPDATE_OPTION_CONTRACT_SOURCE,nu as TYPE_TO_FOLDER,tn as UPDATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,nn as UPDATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,rn as UPDATE_COMMANDER_STRING_OPTION_CONTRACTS,Uo as UPDATE_FLAG_CONTRACTS,Ho as UPDATE_MANY_FLAG_CONTRACTS,co as UPGRADE_FLAG_CONTRACTS,Mo as VALIDATE_FLAG_CONTRACTS,qo as WORKSPACE_FLAG_CONTRACTS,fr as WORKSPACE_HISTORY_ID,nc as WorkspaceGraphCache,DT as WorkspaceTransactionInterruptedError,gi as _testOnly,Rg as _testOnlyAggregateCommand,Tp as _testOnlyConfigCommand,VA as _testOnlyGetCommand,za as _testOnlyHealthCommand,yp as _testOnlyInit,Ap as _testOnlyInitAgentGuidance,sE as _testOnlyItemTransaction,SC as _testOnlyMutationEvents,aA as _testOnlyNextCommand,aC as _testOnlySearchCommand,bA as _testOnlySimilarity,Vp as _testOnlyTemplates,fp as _testOnlyValidateCommand,Ba as acknowledgeUnknownAuthorHistoryEvents,Wa as acknowledgeUnknownAuthorHistoryEventsFromTransport,Ih as acquireItemMetadataDerivedIndexLock,ur as acquireLock,gE as activateExtensionForTest,Hu as activateExtensions,bt as agentSessionEnvironment,$d as aggregate,Dc as analyzeAgentProvenanceDescriptorCoverage,LT as analyzeGraphImpact,MT as analyzeKnowledgeGraph,EA as analyzePmCommandExitConformance,Jt as analyzePmToolActionParity,hC as analyzeReconciliationDiscard,wT as analyzeRelationshipExecution,cc as analyzeRelationshipSchedule,hl as analyzeSdkActionCoverage,oe as analyzeSdkCliParameterCompleteness,nm as append,lr as appendHistoryEntry,Tr as appendWorkspaceAuditEvent,hr as appendWorkspaceHistoryChange,X_ as applyAcceptanceCriteriaMutations,El as applyBootstrapPagerPolicy,y_ as applyContextIntentProjection,os as applyContextTagProjection,yg as applyFilterValueEcho,yT as applyHistoryPatch,xl as applyInvocationAuthorOverride,Qa as applyPathMigrations,f_ as applyReadOutputDimensions,n_ as applyReadOutputSessionReferences,uf as applyRegisteredItemFieldDefaultsAndValidation,tp as applyStandaloneNote,Oa as applyStoredExtensionMigrationState,q_ as applyTagRemovals,fA as applyTerminalOrderingPolicy,rp as artifactKey,du as asRecordClone,cu as asRecordOrNull,V as assembleWorkspaceRelationshipGraph,QE as assertExtensionBlueprint,JE as assertExtensionCapabilityUsage,ME as assertExtensionDeactivated,ty as assertExtensionManifestCompatible,ey as assertExtensionManifestMatchesBlueprint,ry as assertExtensionPreflight,bC as assertHistoryCompactTarget,gC as assertHistoryRepairTarget,ql as assertMemoryRelationshipGraphAdapterConformance,Z_ as assertNoUnknownCsvKeys,kE as assertPackageManifest,z_ as assertParentReferenceIsNotSelf,ZE as assertProjectProfile,xy as assertProjectRuntimeCompatibility,kf as assertProjectionModeChoice,DE as assertRegisteredCommandContract,$E as assertRegisteredCommandOverride,jE as assertRegisteredExporter,vE as assertRegisteredFlags,GE as assertRegisteredHook,HE as assertRegisteredImporter,VE as assertRegisteredItemField,WE as assertRegisteredItemType,qE as assertRegisteredMigration,zE as assertRegisteredParserOverride,KE as assertRegisteredPreflightOverride,BE as assertRegisteredProfile,XE as assertRegisteredRendererOverride,FE as assertRegisteredSearchProvider,YE as assertRegisteredServiceOverride,UE as assertRegisteredVectorStoreAdapter,wu as assertRelationshipEdgeAllowed,ve as assertRelationshipGraphAdapterConformance,R_ as attachContextIntentReceipt,Hf as attachOutputOmissionReceipt,N_ as attachOutputTokenAccounting,I_ as attachReadOutputContracts,o_ as attachReadOutputSessionReceipt,da as auditMergeAttributeFence,vA as auditMergeDriverConfiguration,Gs as auditWorkspaceRelationshipGraph,It as boundAgentEpisodeIdentity,Zf as boundReadOutputRows,es as buildChildrenByParent,JA as buildCompactSearchFilterSummary,Sg as buildContentFilterEcho,Kg as buildContextSignalSnapshot,Ll as buildCorpusShapeItemPlan,Ca as buildExtensionDescribeResult,Og as buildGovernanceMissingFilterEcho,dh as buildInvalidTypeError,UA as buildItemChildrenRollup,oE as buildItemCompletionMutations,Ng as buildItemContextRelevanceCandidates,Lh as buildItemNotFoundError,jA as buildItemSchedule,pa as buildMergeAttributePatterns,ci as buildPmActionToolInputSchema,wC as buildRelationshipContext,vh as buildSearchCorpus,Fh as buildSemanticCorpusInput,Bh as buildVectorizationEmbeddingIdentity,$h as buildVectorizationEmbeddingMetadata,QA as buildVerboseSearchFilters,eA as buildWorkspaceMemorySnapshot,Rt as canonicalDocument,Su as canonicalizeCommandOptionKey,hE as checkExtensionManifestCompatibility,Um as claim,Hm as claimNext,$A as classifyHistoryAuthorEvent,OC as classifyHostEnvironmentFault,sC as classifyImplicitSemanticFallbackReason,At as classifyItemFormatVersion,Zc as classifyLinkedTestFailure,nf as clearActiveExtensionHooks,hc as clearDurableGraphCache,pT as clearFocusedItem,Oi as clearWorkspaceContractsCache,Fm as close,us as closeItem,Xm as closeTask,Ol as coalesceRepeatedListFlags,ag as collectBlockedByIds,Ss as collectDanglingDependencyReferences,cg as collectDependencyBlockedIds,ys as collectDuplicateDependencyRows,vs as collectDuplicateRelationshipEdgeGroups,iC as collectErrorCauseCodes,Os as collectMissingDependencyTargetIds,Us as collectNewOrderingCycleWarnings,ks as collectOrderingCycles,XT as collectPackageContextIntentContracts,de as collectPackageExtensionDirectories,mf as collectRegisteredItemFieldNames,Af as collectRuntimeCreateFieldValues,mh as collectRuntimeFilterValues,Cf as collectRuntimeUpdateFieldValues,Yi as collectSubtreeIds,pt as collectUsedExtensionCapabilities,Ou as commandOptionFlagLabel,Xd as comments,xd as commitImportedItem,iE as commitItemCompletion,nE as commitItemMutations,vT as commitWorkspaceTransaction,Sn as compactFlagAliasContracts,qi as compareCriticalItems,L as comparePmDateVersions,kT as compareRelationshipSnapshots,mu as compareTimestampStrings,ig as compileHistoryProvenanceMatcher,C_ as composeContextIntentContracts,cE as composeExtension,_E as composeExtensionPackage,dg as computeActionabilityReport,U_ as computeHistoryDiff,ac as computeRelationshipCentrality,Ms as computeRelationshipDominators,rc as computeWorkspaceGraphFingerprint,im as config,rf as consumeAfterCommandAffectedItems,Hd as context,O_ as contextIntentRowId,Vm as copy,ed as countFailureCategories,Jf as countReadOutputRows,vm as create,uu as createCheckpointId,ju as createCoreCommandHookContext,Ne as createCorpusShapeMeasurement,Mu as createEmptyExtensionRegistrationRegistry,Ai as createExtensionCommandSdk,st as createExtensionContributionInventory,ny as createExtensionTestHarness,mr as createHistoryEntry,dT as createLazyModule,wh as createMutationGuardSdk,Df as createOutputOmissionReceipt,hi as createPmCliExpectedError,bl as createPmCliProgram,sr as createPmCommandOutputBudget,Vf as createQueryFingerprint,Yl as createRelationshipGraphScaleFixture,O as createRelationshipGraphSnapshot,Z as createRelationshipKindRegistry,ZA as createSearchCursorFingerprint,Vu as createSerialQueue,eh as createStdinTokenResolver,Dp as createWorkspaceSnapshot,AE as deactivateExtensionForTest,_S as declineServiceOverride,S_ as decodeContextIntentCursor,cT as decodeHtmlEntitiesInOptions,$f as decodeQueryCursor,Bf as decodeQueryCursorState,op as dedupeLinkedArtifacts,bg as defaultScoreContextCandidates,ES as defineAfterCommandHook,AS as defineBeforeCommandHook,CS as defineBeforeMutationHook,nS as defineCommand,dS as defineCommandOverride,C as defineCorpusShape,gS as defineExporter,aE as defineExtension,pE as defineExtensionBlueprint,tS as defineExtensionManifest,oS as defineFlag,TS as defineImporter,sS as defineItemField,iS as defineItemType,aS as defineMigration,OS as defineOnIndexHook,SS as defineOnReadHook,yS as defineOnWriteHook,mS as defineParserOverride,ar as definePmCommandOutputBudget,HC as definePmCommandOutputEnvelope,DC as definePmErrorCodeCatalog,lS as definePreflightOverride,rS as defineProjectProfile,hS as defineRendererOverride,pS as defineSearchProvider,uS as defineServiceOverride,cS as defineVectorStoreAdapter,be as defineWorkspaceRecipe,Wm as deleteItem,jp as deleteWorkspaceSnapshot,Lu as dependencyToRelationship,tm as deps,mE as deriveExtensionCapabilities,yA as derivePmBulkMutationEffect,fa as deriveSchemaEvolutionMigrationId,Zh as deriveTelemetryCommandResolution,_h as describeAllowedTransitions,MA as describeExtensionActivation,lE as describeExtensionBlueprint,Fi as describeItemOwnershipConflict,Te as describeProfileComposition,ge as describeProjectProfile,zC as describeUnknownError,Dt as detectAgentIdentity,Ft as detectHarnessIdentity,ws as detectRelationshipCommunities,Fs as diffRelationshipAuditSnapshots,Xc as diffTestRunMeasurements,Fu as discoverExtensions,tt as discoverNearbyPmRoot,Wl as discoverProjectRuntimeVersionPins,em as docs,Kd as duplicates,lc as durableGraphCachePath,Tc as durableGraphCacheStatus,Tt as effectiveItemFormatVersion,AT as emitTelemetryErrorEvent,Nd as emptyImportedDocument,Wf as encodeQueryCursor,H_ as enforceHistoryStreamPolicyForItem,j_ as enforceHistoryStreamPolicyForItems,LC as enrichCliFlagInvocationContract,MC as enrichCliFlagInvocationContracts,OT as ensureMaterializedHistoryTarget,Si as ensurePmGitignore,Ka as ensureScope,Qh as ensureSentryInit,Id as ensureTrackerInitialized,bs as enumerateRelationshipPaths,dr as estimatePmOutputTokens,Mg as evaluateContextRanking,Pr as evaluateMutationGuard,Hc as evaluateProvenanceCoverage,Ws as evaluateSimilarityGovernance,fh as evaluateTransition,Uh as executeEmbeddingBatchesWithRetry,Vh as executeVectorDelete,Wh as executeVectorReset,jh as executeVectorUpsert,Dl as executeWorkspaceRecipe,ep as expandAddGlobEntries,Ym as extension,Jm as extensionActivate,Qm as extensionDeactivate,qm as extensionList,Jl as extensionMigrate,CT as extractPatchFailureContext,lp as extractReferencedPmItemIdsFromCommand,Xl as federateRelationshipGraphSnapshots,Jd as files,Qd as filesDiscover,Zd as filesLookup,Vs as findDuplicateClusters,aa as findGitWorkspaceRoot,ga as findInstalledNpmPackageCandidate,Ls as findRedundantRelationshipEdges,pc as findRelationshipCutStructure,js as findSimilarItems,gT as finishTelemetryCommand,gu as flattenFlagListValue,vl as flushTelemetryQueue,$m as focus,Ps as forEachMatchedRelationshipEdge,Ds as formatDuplicateEdgeGroup,tc as formatProfileApplyHuman,ec as formatProfileLintHuman,Qp as formatProfileListHuman,Zp as formatProfileShowHuman,Ta as formatSchemaEvolutionMigrationHuman,Pm as gc,yr as generateItemId,Wd as get,Zu as getActiveCommandResult,g_ as getActiveContextIntentContracts,dt as getActiveExtensionRegistrations,ll as getContracts,sT as getFocusedItem,ot as getHistoryPath,xT as getItemAt,nt as getItemPath,Mr as getMutationActionContract,yi as getPmGitignoreBlock,rt as getSettingsPath,ml as getWorkspaceContracts,_r as getWorkspaceHistoryPath,rm as graph,uc as graphAuditBaselinePath,Fc as groupHistoryByEpisode,fS as handleServiceOverride,ti as hasSubcommandFlagContractsForCommand,zh as hasVectorizationEmbeddingIdentityChanged,Kh as hasVectorizationVectorDimensionChanged,w_ as hashDocument,L_ as hashEmptyDocument,bm as health,Rs as hierarchyAncestors,Is as hierarchyDescendants,km as historyCompact,Dm as historyCompactBulk,og as historyEntryMatchesProvenance,wm as historyRedact,Lm as historyRepair,Mm as historyRepairAll,Xh as inferConsistentVectorDimension,ir as inferPmOutputBudgetClass,om as init,Ua as inspectHistoryAuthorStream,$l as inspectProjectRuntimeCompatibility,Hr as inspectStaleInProgressItems,vp as inspectWorkspaceSnapshot,ua as installMergeFence,YC as isCommanderError,Mi as isErrnoError,IA as isExternalDependencySourceKind,Pf as isHostOutputSuppressed,wr as isMutationAction,Pu as isOrderingRelationshipKind,B_ as isPlaceholderReferenceToken,Ti as isPmCliExpectedError,Zt as isPmExtensionCapabilityContract,tr as isPmExtensionPolicyModeContract,rr as isPmExtensionPolicySurfaceContract,er as isPmExtensionServiceNameContract,AA as isPmKnownExitCode,WC as isPmMutationReceipt,gA as isPmSuccessfulExitCode,Qt as isPmToolAction,Bl as isProjectMutatingInvocation,mT as isPureSnakeCaseAlias,__ as isReadOutputBudgetExceeded,Gf as isReadRowContract,Fa as isRuntimeRecord,fT as isTerminalPlanMode,yf as isTerminalStatus,$e as isTimestampLiteral,tE as itemDocumentToMutationOptions,HA as itemHasSchedule,Gr as jaccardSimilarity,qd as learnings,bu as levenshteinDistanceWithinLimit,Pi as limitAnnotationEntries,uE as lintExtensionBlueprint,Ee as lintProjectProfile,jd as list,Sl as listAliasPluralKeys,bh as listAllDocumentCandidatesCached,Nr as listAllItemMetadata,Ph as listAllItemMetadataLight,Pl as listBuiltinCorpusShapes,KA as listMergeReceipts,Lr as listMutationActions,EC as listMutationEvents,Ic as listPmCommandsForTier,xc as listPmMcpToolsForProfile,he as listProfiles,Gp as listWorkspaceSnapshots,YT as loadContextIntentRuntimeLayers,Wp as loadCreateTemplateOptions,Uu as loadExtensions,Ac as loadGraphAuditBaseline,_u as loadMutationCheckpoint,f as loadRelationshipGraphAdapter,Rr as locateItem,Q_ as looksLikeGenericKeyValueEntry,Qf as mapReadOutputRows,XA as markMergeReceiptReconciled,lh as matchesRuntimeFilters,hT as maybeRunFirstUseTelemetryPrompt,Ml as measureCorpusShapePlan,Y_ as mergeAdditiveTags,dE as mergeExtensionBlueprints,pC as mergeHistoryStreams,lC as mergeItemDocuments,uC as mergeJsonDocuments,Rl as mergeLinkedTestTwoTokenEntries,cC as mergeRelationshipEventStreams,rs as mergeSortedWarnings,uT as migrateItemFilesToFormat,Mh as mutateItem,gr as mutateWorkspaceJsonWithHistory,Bd as next,bi as normalizeAnnotationTransportOptions,Il as normalizeBootstrapInvocation,Cs as normalizeDependencyGraphTarget,xA as normalizeDependencySeedId,NA as normalizeDependencySourceKind,it as normalizeExtensionContributionInventory,gt as normalizeItemFormatVersion,Er as normalizeItemId,yt as normalizeItemMetadata,yl as normalizeLegacyExtensionActionSyntax,Za as normalizeLinkedPath,W_ as normalizeParentReferenceValue,fe as normalizeProfileName,Cr as normalizeRawItemId,v_ as normalizeReplayPatchOps,kr as normalizeSimilarityText,Ef as normalizeStatusForRegistry,Et as normalizeStatusInput,Tf as normalizeStatusInputWithRegistry,XC as normalizeThrownExitCode,Yd as notes,Be as nowIso,fc as openDurableGraphCache,Ns as orderingPredecessors,xs as orderingSuccessors,Fg as packContextCandidates,Ji as packRankedContextItems,pl as packageActivate,al as packageCatalog,cl as packageDeactivate,il as packageDescribe,nl as packageDoctor,tl as packageInstall,Zm as packageLifecycle,el as packageList,ol as packageManage,Ql as packageMigrate,sl as packageReload,rl as packageUninstall,Kf as paginateQueryRows,Xa as parseAddEntries,Ya as parseAddGlobEntries,Li as parseAnnotationTextInput,QC as parseAtomicMutationControls,Cl as parseBootstrapCommandName,Tl as parseBootstrapGlobalOptions,Al as parseBootstrapHelpRequest,Nl as parseBootstrapTypeValue,Ki as parseContextDepth,Wi as parseContextFocusFields,zT as parseContextIntentDeclarations,Xi as parseContextSections,zg as parseContextSignalSnapshot,J_ as parseCsvKv,Np as parseEvalQuerySet,yc as parseGraphSubcommand,rg as parseHistoryProvenanceFilters,JT as parseIntegerLimit,Sf as parseItemDocument,ZC as parseItemMutationBatch,ch as parseLimit,ea as parseLinkedTestAssertionEqualsMap,ta as parseLinkedTestAssertionGteMap,Ys as parseLinkedTestBoolean,qs as parseLinkedTestContextMode,Xs as parseLinkedTestEnvClear,Ks as parseLinkedTestEnvSet,ra as parseLinkedTestJsonEntries,Zs as parseLinkedTestMinLines,Qs as parseLinkedTestRegexList,Js as parseLinkedTestStringList,Ja as parseMigrateEntries,mg as parseMultiValueFilter,BC as parseMutationReceipt,rh as parseOptionalNonNegativeInteger,th as parseOptionalNumber,QT as parsePriority,fg as parsePriorityFilterSet,r_ as parseReadOutputSession,lf as parseRegisteredItemFieldAssignments,N as parseRelationshipGraphSnapshot,qa as parseRemoveEntries,ih as parseStatusFilterCsv,lg as parseStringFilterSet,Sr as parseTags,zc as parseTestRunMeasurements,ZT as parseType,ug as parseTypeFilterSet,Va as parseUnknownAuthorHistoryEventCoordinates,pA as partitionDecisionEntries,F_ as patchPathToChangedField,He as pathExists,Km as pauseTask,_c as persistDurableGraphResult,hh as persistSelectedItemFormat,Qg as planCompletedAtBackfill,ye as planProfileApplication,Zy as planRelationshipEventBackfill,Ec as planRelationshipRemediation,_a as planSchemaEvolutionMigration,Fp as planWorkspaceSnapshotRestore,TE as preflightExtension,vr as prepareSimilarityText,P_ as printError,b_ as printResult,Sm as profile,Im as profileApply,Nm as profileLint,Om as profileList,Rm as profileShow,tf as projectAfterCommandItemSnapshot,Bi as projectContextFocusRows,Bc as projectFleetAttributionAnalytics,ng as projectHistoryProvenance,Vc as projectProvenanceCoverageAnalytics,up as projectValidateCounts,yy as pruneCompileCacheGenerations,yh as queryItemMetadataIndex,Sh as queryLinkedFileMetadataIndex,Oh as querySimilarItemMetadataIndex,Kc as queryTestRunMeasurementsBelow,ms as quoteCommandArg,ds as quoteWindowsCommandArg,wi as readAnnotationEntries,vt as readAuthorEnvironment,ad as readBooleanOption,Wg as readContextUsageAffinity,pd as readCsvListOption,Sa as readExtensionMigrationState,je as readFileIfExists,Yr as readFirstStringFromCommanderOptions,qr as readFirstValueFromCommanderOptions,Uc as readHistoryAnalyticsWindow,Nf as readHistoryEntries,Mc as readImprovementLedger,Nh as readItemMetadataDerivedIndexState,Ir as readLocatedItem,qf as readOutputRowCollections,Yf as readOutputRowPaths,i_ as readOutputSessionRemainingTokens,ce as readPmPackageManifest,ul as readRequiredString,Or as readSettings,Th as readSettingsWithMetadata,Jr as readStringArrayFromCommanderOptions,sd as readStringOption,KC as readThrownExitCode,Yh as readVectorizationStatusLedger,KT as readWorkspaceContextIntentContracts,qg as readWorkspaceContextSignals,tA as readWorkspaceMemory,ct as reconcileExtensionCapabilityUsage,ef as recordAfterCommandAffectedItem,Hg as recordContextUsageServing,jg as recordContextUsageTouch,Vg as recordContextUsageTouches,Lc as recordImprovementObservation,xh as refreshItemMetadataDerivedIndex,ma as refreshMergeAttributeFenceIfInstalled,Jh as refreshSearchArtifactsForMutation,Lt as registerHarnessSignalDescriptors,jm as release,We as removeFileIfExists,ap as renameArtifactsResultKey,Hi as renderCalendarMarkdown,ji as renderCalendarToon,ns as renderContextMarkdown,Ea as renderExtensionDescribeMarkdown,Aa as renderExtensionSurfaceMarkdown,wd as renderGuideMarkdown,cA as renderNextMarkdown,ls as renderPmCommand,wc as renderPmCommandVisibilityMarkdown,ah as renderRowsAsCsv,ph as renderRowsAsTable,ST as replayHistoryToTarget,k_ as replayToCanonicalItemDocument,M_ as replayToItemDocument,lA as requireTerminalReason,uA as requireTerminalReasonWithRecovery,qu as resetActiveExtensionRuntimeState,ic as resetWorkspaceGraphCache,Nt as resolveAgentSessionContextFromSignals,Gi as resolveAnnotationIndex,ki as resolveAnnotationInput,If as resolveAuthor,Ut as resolveAuthorIdentity,V_ as resolveBodyFileContent,wl as resolveBuiltinCorpusShape,Ui as resolveCalendarOutputFormat,vC as resolveCanonicalPmErrorCodeContract,Rf as resolveClaimPrincipal,Nu as resolveCommandOptionPolicyState,Ey as resolveCompileCacheGeneration,Jg as resolveCompletionTimestamp,Eu as resolveConfiguredPmPackageRoot,hg as resolveContentFieldFilters,E_ as resolveContextIntentContract,$i as resolveContextOutputFormat,zi as resolveContextTokenBudget,kh as resolveEmbeddingProviders,Na as resolveExtensionInstallSourceIdentity,ya as resolveExtensionMigrationStatePath,Gu as resolveExtensionRoots,Tu as resolveFlagValueKind,bd as resolveGuideOutputFormat,kc as resolveHistoryEpisodeGroupIdentity,tg as resolveHistoryProvenanceDimensions,RT as resolveHistorySubject,ET as resolveHistoryTarget,nC as resolveHybridSemanticWeight,et as resolveImplicitPmRoot,lu as resolveIsoOrRelative,pg as resolveItemBlockers,eE as resolveItemMutationDocument,Ze as resolveItemTypeRegistry,hf as resolveItemTypesFilePath,td as resolveLinkedTestFailureExitCode,sa as resolveMergeInstallContext,_g as resolveMissingMetadataFilters,vf as resolveModePairedOutputOmissionReceipt,sA as resolveNextOutputFormat,Uf as resolveOutputOmissionReceipt,Cu as resolvePmCliVersion,CA as resolvePmCommandExitContract,cr as resolvePmCommandOutputBudget,VC as resolvePmCommandOutputEnvelope,Rc as resolvePmCommandVisibilityTier,GC as resolvePmErrorCodeContract,Au as resolvePmPackageRootFromModule,H as resolvePmRoot,ii as resolvePmToolCustomFieldCollision,nh as resolvePriority,_e as resolveProfile,ca as resolveProjectMergeTypeFolders,zf as resolveQueryCursorStart,u_ as resolveReadOutputDimensions,h_ as resolveReadOutputEncoding,m_ as resolveReadOutputSurface,Ff as resolveReadRowContract,ff as resolveRegisteredSearchProvider,_f as resolveRegisteredVectorStoreAdapter,ft as resolveRuntimeFieldRegistry,ut as resolveRuntimeStatusRegistry,Dh as resolveSearchCorpusFields,tC as resolveSearchMaxResults,eC as resolveSearchPage,rC as resolveSearchScoreThreshold,oC as resolveSearchTuning,Gh as resolveSemanticCorpusCharacterLimit,Ah as resolveSettingsWithSemanticRuntimeDefaults,LA as resolveSourceContextWritePolicy,id as resolveStartTaskInProgressStatus,ri as resolveSubcommandFlagContractsForCommand,su as resolveTelemetryErrorCategory,mA as resolveTerminalReason,Iu as resolveTypeDefinition,Ru as resolveTypeName,sh as resolveTypeSynonym,uh as resolveTypeWorkflows,ja as resolveUnknownAuthorAcknowledgmentSelector,Hh as resolveVectorStores,Es as resolveWorkspaceRelationshipKindRegistry,Bm as restore,hu as restoreCheckpointItems,Hp as restoreWorkspaceSnapshot,Up as restoreWorkspaceSnapshotWithRecovery,_l as runAction,of as runActiveBeforeMutationHooks,af as runActiveCommandHandler,sf as runActiveOnIndexHooks,lt as runActiveOnReadHooks,mt as runActiveOnWriteHooks,pf as runActiveParserOverride,cf as runActivePreflightOverride,df as runActiveServiceOverride,Ri as runActivity,vu as runAfterCommandHooks,Ni as runAggregate,vi as runAnnotationCommand,xi as runAppend,Du as runBeforeCommandHooks,Vi as runCalendar,as as runClaim,ps as runClaimNext,fs as runClose,hs as runCloseMany,Ts as runComments,Ld as runCompletion,hp as runConfig,se as runContext,vg as runContextEvaluationCorpus,kg as runContextEvaluationScenario,Ma as runCopy,na as runCreate,ka as runDelete,sc as runDeps,pp as runDocs,$C as runDuplicates,Pp as runEval,Lp as runEvent,xa as runExtension,Ia as runExtensionMigrateAction,Ra as runExtensionMigrations,cp as runFiles,mp as runFilesDiscover,dp as runFilesLookup,Wc as runFleetAttributionAnalytics,Da as runFocus,Ga as runGc,va as runGet,Sc as runGraph,Pd as runGuide,$a as runHealth,SA as runHistory,NC as runHistoryCompact,PC as runHistoryCompactBulk,IT as runHistoryRedact,TC as runHistoryRepair,AC as runHistoryRepairAll,Sp as runInit,Cp as runInitAgentGuidance,gs as runLearnings,sp as runLinkedArtifacts,rd as runLinkedTests,Ii as runList,wp as runMeet,_C as runMergeDriver,la as runMergeInstall,YA as runMergeReceiptReport,CC as runMergeReconcile,ss as runNext,As as runNotes,La as runPlan,Jp as runProfileApply,qp as runProfileLint,Xp as runProfileList,Yp as runProfileShow,jc as runProvenanceCoverageAnalytics,CE as runRegisteredCommandForTest,RE as runRegisteredCommandOverrideForTest,LE as runRegisteredExporterForTest,yE as runRegisteredHookForTest,wE as runRegisteredImporterForTest,PE as runRegisteredMigrationForTest,EE as runRegisteredMutationGuardForTest,SE as runRegisteredParserOverrideForTest,OE as runRegisteredPreflightOverrideForTest,IE as runRegisteredRendererOverrideForTest,xE as runRegisteredSearchProviderForTest,NE as runRegisteredServiceOverrideForTest,bE as runRegisteredVectorStoreAdapterForTest,Se as runReindex,cs as runRelease,Mp as runRemind,_s as runRestore,ha as runSchemaEvolutionMigration,xp as runSearch,kl as runSearchRefreshWorkerEntrypoint,Md as runStartBackgroundRun,Yc as runStats,Jc as runTelemetry,$p as runTemplatesList,Bp as runTemplatesSave,zp as runTemplatesShow,nd as runTest,od as runTestAll,kd as runTestRunsList,vd as runTestRunsLogs,Fd as runTestRunsResume,Dd as runTestRunsStatus,Gd as runTestRunsStop,Ud as runTestRunsWorker,oa as runUpdate,ia as runUpdateMany,me as runUpgrade,_p as runValidate,fl as runWithActiveExtensions,xt as runWithAgentSessionContext,A_ as runWithContextIntentContracts,qT as runWithDiscoveredContextIntentContracts,Mt as runWithHarnessDetectionSignals,kt as runWithWorkspaceHarnessSignalDescriptors,Pe as runWithWorkspaceRecipe,WA as runWorkspaceTransactionGc,Cc as saveGraphAuditBaseline,Ha as scanHistoryAuthorAttribution,Ct as scanItemFormatVersions,br as scanMutationSecrets,jr as scanStaleInProgressItems,qA as scanStorageIntegrity,sm as schema,um as schemaAddField,mm as schemaAddStatus,cm as schemaAddType,Tm as schemaApplyPreset,gm as schemaInferTypes,am as schemaList,_m as schemaListFields,Em as schemaRemapStatus,fm as schemaRemoveField,lm as schemaRemoveStatus,dm as schemaRemoveType,Cm as schemaRenameField,Am as schemaRenameType,pm as schemaShow,hm as schemaShowField,ym as schemaShowStatus,Pg as scoreContextCandidates,wg as scoreContextCandidatesWithActiveExtensions,Fr as scoreItemSimilarity,Ur as scorePreparedItemSimilarity,Vd as search,oA as searchWorkspaceMemory,iA as searchWorkspaceMemoryReadResult,jf as selectCursorSemanticOptions,Rd as selectImportAuthor,nA as selectWorkspaceMemory,rA as selectWorkspaceMemoryRollups,nT as sentryCaptureCliError,rT as sentryFinishCommandSpan,iT as sentryFlush,oT as sentryLogCliUsageError,eT as sentrySetCommandContext,tT as sentryStartCommandSpan,Ot as serializeItemDocument,JC as serializeNdjsonRows,Ju as setActiveCommandContext,Qu as setActiveCommandResult,Bu as setActiveExtensionCommands,Wu as setActiveExtensionHooks,$u as setActiveExtensionParsers,zu as setActiveExtensionPreflight,Yu as setActiveExtensionRegistrations,Xu as setActiveExtensionRenderers,Ku as setActiveExtensionServices,aT as setFocusedItem,_T as shouldCompletePlanOnClose,gc as shouldPersistDurableGraphCache,Eh as shouldRunSearchRefreshInForeground,Hs as similarityAdvisoryWarnings,np as sortLinkedArtifacts,K_ as splitAcceptanceCriteria,lT as splitCommaList,St as splitFrontMatter,b as stableStringify,ku as stableValueEquals,zm as startTask,TT as startTelemetryCommand,zd as stats,gf as statusIsTerminal,gl as stripGlobalBootstrapTokens,yC as subscribeMutationEvents,vc as summarizeAgentModelProvenance,Gc as summarizeAgentProvenance,Dg as summarizeContextEvaluationReports,Qc as summarizeContextPreflight,sg as summarizeHistoryProvenance,Ep as summarizeInitResult,zA as summarizeMergeReceipt,bf as suppressHostOutput,v as syncRelationshipGraphAdapter,fE as synthesizeExtensionManifest,ni as toCompletionFlagString,ts as toContextFocusItem,Qi as toContextPackingSummary,Zi as toContextRankingSummary,pu as toErrorMessage,dd as toEstimatedMinutesValue,VT as toExtensionFlagDefinitions,_d as toImportBoolean,Ad as toImportConfidence,fd as toImportInteger,Sd as toImportLinkedDocs,yd as toImportLinkedFiles,Od as toImportLinkedTests,Ed as toImportLogEntries,Cd as toImportNormalizedEnum,gd as toImportNumberMap,md as toImportPriority,ud as toImportStatus,hd as toImportStringList,Td as toImportStringMap,ld as toImportTags,Of as toItemRecord,cd as toNonEmptyImportString,au as toNonEmptyStringOrUndefined,D_ as toReplayDocument,Dr as tokenizeSimilarityText,RC as translateHostEnvironmentFault,Gm as update,dl as upgrade,xm as validate,rE as validateItemMutationRows,ip as validateLinkedPaths,$_ as validateMissingParentReference,l_ as validateReadOutputOptions,oh as validateSprintOrReleaseValue,xu as validateTypeOptions,G_ as verifyHistoryChain,NT as verifyHistoryEntries,yn as withFlagAliasMetadata,IC as withHostEnvironmentBoundary,oc as workspaceGraphCache,Di as wrapOwnershipConflict,qC as wrapThrownErrorForSentry,Gt as writeAuthorEnvironment,Ve as writeFileAtomic,fu as writeMutationCheckpoint,gh as writeSettings,x_ as writeStdout,qh as writeVectorizationStatusLedger,Ar as writeWorkspaceJsonWithHistory};
2
3
  //# sourceMappingURL=sdk.js.map