@unbrained/pm-cli 2026.8.12 → 2026.8.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/CHANGELOG.md +22 -0
  3. package/dist/cli/error-guidance.js +4 -8
  4. package/dist/cli/main.js +3 -2
  5. package/dist/cli/register-assurance.js +28 -17
  6. package/dist/cli-bundle/bundle-manifest.json +161 -161
  7. package/dist/cli-bundle/chunks/chunk-3ZMOWAFM.js +2 -0
  8. package/dist/cli-bundle/chunks/chunk-DEDU3DG7.js +196 -0
  9. package/dist/cli-bundle/chunks/chunk-DL5M5J3V.js +13 -0
  10. package/dist/cli-bundle/chunks/chunk-F7FJYGK3.js +8 -0
  11. package/dist/cli-bundle/chunks/{chunk-RBTK5EZV.js → chunk-HIUZVCMN.js} +2 -2
  12. package/dist/cli-bundle/chunks/chunk-IMGIN7R6.js +2 -0
  13. package/dist/cli-bundle/chunks/{chunk-WLAHPSOX.js → chunk-Q47C67TQ.js} +2 -2
  14. package/dist/cli-bundle/chunks/{chunk-BM5YJ2UW.js → chunk-QGTUPEU5.js} +52 -52
  15. package/dist/cli-bundle/chunks/chunk-TF3TPKPR.js +34 -0
  16. package/dist/cli-bundle/chunks/{chunk-KOQMGCTA.js → chunk-YLBAPY22.js} +50 -50
  17. package/dist/cli-bundle/chunks/{register-list-query-XPCJRUUD.js → register-list-query-4HIZ7EA3.js} +2 -2
  18. package/dist/cli-bundle/chunks/{register-mutation-4RJCBKRS.js → register-mutation-W64FZ5HN.js} +2 -2
  19. package/dist/cli-bundle/chunks/register-operations-C44ET7R5.js +2 -0
  20. package/dist/cli-bundle/chunks/{register-setup-LLHAKP2V.js → register-setup-634MFRXU.js} +2 -2
  21. package/dist/cli-bundle/focused-chunks/chunk-27N23W6M.js +31 -0
  22. package/dist/cli-bundle/focused-chunks/{chunk-YIAXMC3T.js → chunk-2JP7W7GO.js} +2 -2
  23. package/dist/cli-bundle/focused-chunks/chunk-2RI2FESN.js +4 -0
  24. package/dist/cli-bundle/focused-chunks/chunk-3BNVU6LC.js +8 -0
  25. package/dist/cli-bundle/focused-chunks/{chunk-KHM2CS2C.js → chunk-3DJSGWVB.js} +2 -2
  26. package/dist/cli-bundle/focused-chunks/{chunk-2DALMVF7.js → chunk-6MLIRBLV.js} +2 -2
  27. package/dist/cli-bundle/focused-chunks/chunk-6XYLENDV.js +155 -0
  28. package/dist/cli-bundle/focused-chunks/chunk-CP4K4WFS.js +2 -0
  29. package/dist/cli-bundle/focused-chunks/{chunk-RWPAWUOT.js → chunk-E3AVJ655.js} +2 -2
  30. package/dist/cli-bundle/focused-chunks/{chunk-5TAGTDRE.js → chunk-EBTNSFYE.js} +2 -2
  31. package/dist/cli-bundle/focused-chunks/{chunk-KPSXVBDV.js → chunk-HC2OL2H2.js} +2 -2
  32. package/dist/cli-bundle/focused-chunks/{chunk-GQW4BPUT.js → chunk-I75MANL7.js} +2 -2
  33. package/dist/cli-bundle/focused-chunks/{chunk-ZMGWAYH7.js → chunk-IIS2FRKL.js} +2 -2
  34. package/dist/cli-bundle/focused-chunks/chunk-NFHFZH2Z.js +2 -0
  35. package/dist/cli-bundle/focused-chunks/chunk-OGC4XSBC.js +17 -0
  36. package/dist/cli-bundle/focused-chunks/{chunk-JAFRIWVF.js → chunk-OOYYKQWX.js} +4 -4
  37. package/dist/cli-bundle/focused-chunks/{chunk-KTLOKKCQ.js → chunk-PKPOZXLL.js} +2 -2
  38. package/dist/cli-bundle/focused-chunks/chunk-QDZUABWL.js +2 -0
  39. package/dist/cli-bundle/focused-chunks/chunk-QQX5TDFT.js +16 -0
  40. package/dist/cli-bundle/focused-chunks/{chunk-NYLOUPOB.js → chunk-TEZIXMTH.js} +2 -2
  41. package/dist/cli-bundle/focused-chunks/chunk-WEH6NSL6.js +18 -0
  42. package/dist/cli-bundle/main.js +13 -13
  43. package/dist/cli-bundle/sdk-authoring.js +1 -1
  44. package/dist/cli-bundle/sdk-contracts.js +1 -1
  45. package/dist/cli-bundle/sdk-core.js +42 -41
  46. package/dist/cli-bundle/sdk-governance.js +1 -1
  47. package/dist/cli-bundle/sdk-graph.js +1 -1
  48. package/dist/cli-bundle/sdk-merge.js +1 -1
  49. package/dist/cli-bundle/sdk-query.js +1 -1
  50. package/dist/cli-bundle/sdk-runtime.js +1 -1
  51. package/dist/cli-bundle/sdk-testing.js +1 -1
  52. package/dist/cli-bundle/sdk.js +2 -2
  53. package/dist/core/checkpoint/checkpoint-gc.js +7 -12
  54. package/dist/core/extensions/activation-summary-markdown.js +5 -4
  55. package/dist/core/extensions/activation-summary.d.ts +2 -0
  56. package/dist/core/extensions/activation-summary.js +6 -2
  57. package/dist/core/extensions/capability-usage.d.ts +1 -1
  58. package/dist/core/extensions/capability-usage.js +4 -3
  59. package/dist/core/extensions/contribution-inventory.d.ts +1 -0
  60. package/dist/core/extensions/contribution-inventory.js +6 -2
  61. package/dist/core/extensions/extension-registries.js +3 -2
  62. package/dist/core/extensions/extension-types.d.ts +83 -1
  63. package/dist/core/extensions/extension-types.js +3 -2
  64. package/dist/core/extensions/loader.d.ts +2 -8
  65. package/dist/core/extensions/loader.js +53 -144
  66. package/dist/core/extensions/registration-values.d.ts +43 -0
  67. package/dist/core/extensions/registration-values.js +210 -0
  68. package/dist/core/extensions/runtime-registrations.d.ts +3 -1
  69. package/dist/core/extensions/runtime-registrations.js +12 -2
  70. package/dist/core/fs/fs-utils.d.ts +2 -0
  71. package/dist/core/fs/fs-utils.js +7 -3
  72. package/dist/core/history/drift-cache.js +4 -3
  73. package/dist/core/history/drift-scan.js +5 -11
  74. package/dist/core/lock/lock-gc.js +8 -13
  75. package/dist/core/lock/lock.js +5 -4
  76. package/dist/core/search/vector-stores.js +6 -11
  77. package/dist/core/store/item-metadata-cache.js +4 -4
  78. package/dist/core/telemetry/runtime.d.ts +6 -0
  79. package/dist/core/telemetry/runtime.js +101 -30
  80. package/dist/sdk/agent/command-recovery.d.ts +2 -0
  81. package/dist/sdk/agent/command-recovery.js +10 -2
  82. package/dist/sdk/annotations.js +4 -4
  83. package/dist/sdk/cli-contracts/completeness.js +9 -3
  84. package/dist/sdk/cli-contracts/enum-contracts.d.ts +1 -1
  85. package/dist/sdk/cli-contracts/flag-contracts.js +6 -3
  86. package/dist/sdk/cli-contracts/schemas/assurance-definition.d.ts +32 -0
  87. package/dist/sdk/cli-contracts/schemas/assurance-definition.js +25 -2
  88. package/dist/sdk/cli-contracts/tool-parameter-tables.js +35 -5
  89. package/dist/sdk/cli-contracts/tool-schema.js +17 -2
  90. package/dist/sdk/comments.js +4 -3
  91. package/dist/sdk/compile-cache.js +4 -3
  92. package/dist/sdk/compose.d.ts +3 -1
  93. package/dist/sdk/compose.js +16 -2
  94. package/dist/sdk/context-signal-store.js +4 -3
  95. package/dist/sdk/extension/install-runtime.js +4 -4
  96. package/dist/sdk/extension/managed-state.js +4 -3
  97. package/dist/sdk/extension-contracts.d.ts +1 -1
  98. package/dist/sdk/flag-invocation-contracts.js +5 -6
  99. package/dist/sdk/generated/generated-error-code-catalog-part-1.js +14 -2
  100. package/dist/sdk/governance/assurance-action.d.ts +27 -3
  101. package/dist/sdk/governance/assurance-action.js +112 -28
  102. package/dist/sdk/governance/assurance-mutation-error.d.ts +7 -0
  103. package/dist/sdk/governance/assurance-mutation-error.js +25 -2
  104. package/dist/sdk/governance/assurance-presets.d.ts +54 -0
  105. package/dist/sdk/governance/assurance-presets.js +136 -0
  106. package/dist/sdk/governance/assurance-runtime.d.ts +4 -0
  107. package/dist/sdk/governance/assurance-runtime.js +109 -8
  108. package/dist/sdk/governance/assurance.d.ts +39 -0
  109. package/dist/sdk/governance/assurance.js +143 -4
  110. package/dist/sdk/governance/gc.js +5 -11
  111. package/dist/sdk/governance/health.js +5 -5
  112. package/dist/sdk/governance/validate.js +4 -4
  113. package/dist/sdk/graph/durable-cache.js +61 -3
  114. package/dist/sdk/graph/governance-contracts.d.ts +12 -0
  115. package/dist/sdk/graph/governance-contracts.js +27 -0
  116. package/dist/sdk/graph/governance.d.ts +30 -2
  117. package/dist/sdk/graph/governance.js +124 -5
  118. package/dist/sdk/guide.js +4 -4
  119. package/dist/sdk/index.d.ts +2 -1
  120. package/dist/sdk/index.js +4 -3
  121. package/dist/sdk/linked-artifacts.d.ts +2 -0
  122. package/dist/sdk/linked-artifacts.js +29 -4
  123. package/dist/sdk/merge/install.js +5 -4
  124. package/dist/sdk/query/activity.js +4 -3
  125. package/dist/sdk/relationship-history.js +5 -5
  126. package/dist/sdk/schema-migration.js +4 -4
  127. package/dist/sdk/test/execution.js +4 -4
  128. package/dist/sdk/workspace-memory.js +4 -4
  129. package/dist/sdk/workspace-snapshot.js +8 -14
  130. package/dist/sdk/workspace-transaction-gc.js +4 -9
  131. package/dist/sdk/workspace-transaction.js +4 -4
  132. package/dist/sdk/workspace.js +4 -3
  133. package/docs/ASSURANCE.md +154 -3
  134. package/docs/CONFIGURATION.md +2 -0
  135. package/docs/EXTENSIONS.md +11 -12
  136. package/docs/RELATIONSHIP_GRAPH.md +15 -0
  137. package/docs/SDK.md +17 -3
  138. package/docs/TESTING.md +24 -15
  139. package/marketplace.json +2 -2
  140. package/package.json +3 -3
  141. package/packages/pm-beads/package.json +1 -1
  142. package/packages/pm-calendar/package.json +1 -1
  143. package/packages/pm-command-kit/package.json +1 -1
  144. package/packages/pm-digital-twin/package.json +1 -1
  145. package/packages/pm-governance-audit/package.json +1 -1
  146. package/packages/pm-guide-shell/package.json +1 -1
  147. package/packages/pm-kanban/package.json +1 -1
  148. package/packages/pm-lifecycle-hooks/package.json +1 -1
  149. package/packages/pm-linked-test-adapters/package.json +1 -1
  150. package/packages/pm-search-advanced/package.json +1 -1
  151. package/packages/pm-templates/package.json +1 -1
  152. package/packages/pm-todos/package.json +1 -1
  153. package/packages/pm-vcs/package.json +1 -1
  154. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
  155. package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
  156. package/sdk/public-surface.json +183 -33
  157. package/dist/cli-bundle/chunks/chunk-3PS7X6GS.js +0 -8
  158. package/dist/cli-bundle/chunks/chunk-7KL6KMWF.js +0 -13
  159. package/dist/cli-bundle/chunks/chunk-D55A5AEN.js +0 -33
  160. package/dist/cli-bundle/chunks/chunk-KIKDWECH.js +0 -196
  161. package/dist/cli-bundle/chunks/chunk-R76342NV.js +0 -2
  162. package/dist/cli-bundle/chunks/chunk-VLUQOIDT.js +0 -2
  163. package/dist/cli-bundle/chunks/register-operations-2OGISOVR.js +0 -2
  164. package/dist/cli-bundle/focused-chunks/chunk-5OQIMELN.js +0 -155
  165. package/dist/cli-bundle/focused-chunks/chunk-ECADZMVC.js +0 -18
  166. package/dist/cli-bundle/focused-chunks/chunk-EJGXRA6B.js +0 -2
  167. package/dist/cli-bundle/focused-chunks/chunk-FFGSZCPK.js +0 -16
  168. package/dist/cli-bundle/focused-chunks/chunk-ISKOBJCM.js +0 -2
  169. package/dist/cli-bundle/focused-chunks/chunk-LGYK3NUF.js +0 -8
  170. package/dist/cli-bundle/focused-chunks/chunk-NBLUKITQ.js +0 -4
  171. package/dist/cli-bundle/focused-chunks/chunk-Q4T463SD.js +0 -31
  172. package/dist/cli-bundle/focused-chunks/chunk-QVZVY53N.js +0 -2
  173. package/dist/cli-bundle/focused-chunks/chunk-UTEWXDEQ.js +0 -17
@@ -1,3 +1,3 @@
1
- import{a as zE,b as KE,c as XE,d as YE,e as qE,f as JE,g as QE,h as bm,i as Pm,j as wm,l as Lm,m as Mm,n as km,o as vm,p as Dm,q as Gm,r as Fm,s as Um,t as Hm,u as jm,v as ZE,w as ey,x as ty,y as ry}from"./chunks/chunk-R76342NV.js";import{A as Uy,B as Hy,C as jy,D as Vy,E as $y,F as By,G as Wy,H as zy,I as Ky,J as Xy,K as Yy,L as qy,M as Jy,N as Qy,O as Zy,P as eS,Q as tS,R as rS,S as nS,T as oS,U as iS,V as sS,W as aS,X as pS,Y as cS,a as uy,b as _y,c as fy,d as hy,e as Ty,f as gy,g as Ay,h as Cy,i as Ey,j as yy,k as Sy,l as Oy,m as Ry,n as Iy,o as Ny,p as xy,q as by,r as Py,s as wy,t as Ly,u as My,v as ky,w as vy,x as Dy,y as Gy,z as Fy}from"./chunks/chunk-3PS7X6GS.js";import{a as ny}from"./chunks/chunk-OAC5NIV4.js";import{a as oy,b as iy,c as sy,d as ay,e as py,f as cy,g as dy,h as ly,i as my}from"./chunks/chunk-VLUQOIDT.js";import{$ as Te,$a as Zd,$b as Zl,A as gp,Aa as Ed,Ab as Il,Ac as Im,B as Up,Ba as yd,Bb as Nl,Bc as Nm,C as Hp,Ca as Sd,Cb as xl,Cc as xm,D as jp,Da as Od,Db as bl,E as Vp,Ea as Rd,Eb as Pl,F as $p,Fa as Id,Fb as wl,G as Bp,Ga as Nd,Gb as Ll,H as Wp,Ha as xd,Hb as Ml,I as zp,Ia as bd,Ib as kl,J as cE,Ja as Pd,Jb as vl,K as dE,Ka as wd,Kb as Dl,L as lE,La as Ld,Lb as Gl,M as mE,Ma as Md,Mb as Fl,N as uE,Na as kd,Nb as Ul,O as _E,Oa as vd,Ob as Hl,P as fE,Pa as Dd,Pb as jl,Q as hE,Qa as Gd,Qb as Vl,R as TE,Ra as Fd,Rb as $l,S as gE,Sa as Ud,Sb as Bl,T as AE,Ta as Hd,Tb as Wl,U as CE,Ua as jd,Ub as zl,V as EE,Va as Vd,Vb as Kl,W as me,Wa as $d,Wb as Xl,X as ue,Xa as Bd,Xb as Yl,Y as _e,Ya as Se,Yb as ql,Z as fe,Za as P,Zb as Jl,_ as he,_a as Qd,_b as Ql,a as Ti,aa as ge,ab as el,ac as em,b as gi,ba as Ae,bb as tl,bc as tm,c as Ai,ca as Ce,cb as rl,cc as rm,d as QT,da as Ee,db as nl,dc as nm,e as ZT,ea as ye,eb as ol,ec as om,f as Ei,fa as Ec,fb as il,fc as im,g as sg,ga as yc,gb as sl,gc as sm,h as ag,ha as Sc,hb as al,hc as am,i as pg,ia as Oc,ib as pl,ic as pm,j as cg,ja as Rc,jb as cl,jc as cm,k as dg,ka as Ic,kb as dl,kc as dm,l as lg,la as Nc,lb as ll,lc as lm,m as mg,ma as xc,mb as ml,mc as mm,n as ug,na as bc,nb as ul,nc as um,o as Ii,oa as Pc,ob as _l,oc as _m,p as _g,pa as wc,pb as fl,pc as fm,q as fg,qa as Lc,qb as hl,qc as hm,r as hg,ra as Mc,rb as Tl,rc as Tm,s as Tg,sa as kc,sb as gl,sc as gm,t as gg,ta as xE,tb as Al,tc as Am,u as Ag,ua as bE,ub as Cl,uc as Cm,v as Sa,va as PE,vb as El,vc as Em,w as _p,wa as wE,wb as yl,wc as ym,x as fp,xa as gd,xb as Sl,xc as Sm,y as hp,ya as Ad,yb as Ol,yc as Om,z as Tp,za as Cd,zb as Rl,zc as Rm}from"./chunks/chunk-BM5YJ2UW.js";import{a as le,f as Yp,g as qp}from"./chunks/chunk-WLAHPSOX.js";import{A as ac,B as pc,C as cc,b as ya,c as VA,d as jC,e as WC,f as zC,g as KC,h as XC,i as YC,j as Kp,k as qC,l as nc,m as oc,n as ic,o as sc,p as QC,q as ZC,r as eE,s as tE,t as rE,u as nE,v as oE,w as iE,x as sE,y as aE,z as pE}from"./chunks/chunk-RBTK5EZV.js";import{$ as _A,$a as up,$b as Dc,$c as qd,Aa,Ab as vp,Ac as Jc,Ba as Ca,Bb as Dp,Bc as Qc,Ca as hA,Cb as $C,Cc as Zc,Da as TA,Db as BC,Dc as ed,Ea as gA,Eb as Gp,Ec as td,Fa as AA,Fc as rd,Ga as CA,Gc as nd,Ha as Oa,Hb as Fp,Hc as od,Ia as Ra,Ib as JC,Ic as id,Ja as Ia,Jb as Xp,Jc as sd,Ka as Na,Kb as dc,Kc as ad,La as xa,Lb as lc,Lc as WE,Ma as ba,Mb as mc,Mc as pd,N as Zg,Na as Pa,Nb as RE,Nc as cd,O as eA,Oa as wa,Ob as IE,Oc as dd,P as hs,Pa as La,Pb as NE,Pc as ld,Q as Ts,Qa as Ma,Qb as uc,Qc as md,R as gs,Ra as pp,Rb as _c,Rc as ud,S as As,Sa as cp,Sb as fc,Sc as _d,T as Cs,Ta as dp,Tb as hc,Tc as fd,U as Es,Ua as lp,Ub as Tc,Uc as hd,V as dA,Va as xC,Vb as gc,Vc as Td,W as lA,Wa as bC,Wb as Ac,Wc as Wd,Xa as PC,Xb as Cc,Xc as zd,Y as mA,Ya as wC,Yb as LE,Yc as Kd,Za as LC,Zb as ME,Zc as Xd,_ as uA,_a as mp,_b as vc,_c as Yd,a as Pg,aa as Xs,ab as MC,ac as Gc,ad as Jd,b as wg,ba as Ys,bb as kC,bc as Fc,c as Lg,ca as fA,cb as vC,cc as Uc,d as Mg,da as qs,db as DC,dc as Hc,e as kg,ea as Js,eb as GC,ec as jc,f as vg,fa as Qs,fb as FC,fc as Vc,g as Dg,ga as Zs,gb as UC,gc as kE,h as Gg,ha as ea,hb as HC,hc as vE,i as Fg,ia as ta,ic as DE,j as Ug,ja as ra,jb as Ap,jc as GE,k as Hg,ka as na,kb as Cp,kc as FE,l as jg,la as oa,lb as VC,lc as UE,m as Vg,ma as ia,mb as Ep,mc as HE,n as $g,na as sa,nb as yp,nc as jE,o as Bg,oa as aa,ob as Sp,oc as VE,p as Wg,pa,pb as Op,pc as $E,q as zg,qa as ca,qb as Rp,qc as BE,ra as da,rb as Ip,sa as la,sb as Np,sc as $c,ta as ma,tb as xp,tc as Bc,ua,ub as bp,uc as Wc,v as fs,va as _a,vb as Pp,vc as zc,wa as fa,wb as wp,wc as Kc,xa as ha,xb as Lp,xc as Xc,ya as Ta,yb as Mp,yc as Yc,za as ga,zb as kp,zc as qc}from"./chunks/chunk-D55A5AEN.js";import{A as ws,Aa as Hs,B as Ls,Ea as js,Fa as Vs,Ga as $s,Ha as Bs,Ia as Ws,Ja as zs,Ka as Ks,L as Ms,La as Jp,M as ks,Ma as Qp,N as vs,Na as Zp,O as Ds,Oa as ec,Pa as tc,Qa as rc,a as og,b as ig,c as yi,d as Si,f as Oi,g as Ri,h as tA,i as ys,j as Ss,k as Os,m as rA,n as nA,o as oA,p as iA,q as sA,r as aA,s as pA,sa as ie,t as Rs,ta as se,u as Is,ua as ae,v as Ns,va as pe,w as xs,wa as Gs,x as bs,y as cA,ya as Fs,z as Ps,za as Us}from"./chunks/chunk-KOQMGCTA.js";import{$ as zi,$a as ka,$b as Qa,Aa as OA,Ab as mC,B as Ni,Ba as RA,Bb as uC,C as Kg,Ca as IA,Cb as _C,D as Xg,Da as NA,Db as fC,E as Yg,Ea as xA,Eb as hC,F as qg,Fa as bA,Fb as TC,G as Jg,Ga as PA,Gb as gC,H as xi,Ha as wA,Hb as AC,I as bi,Ib as CC,J as Pi,Jb as EC,K as wi,Kb as yC,L as Li,Lb as SC,M as V,Mb as Fa,N as Mi,Nb as Ua,O as ki,Ob as Ha,P as vi,Pb as ja,Q as Di,Qa as LA,Qb as Va,R as Qg,Ra as MA,Rb as $a,S as Gi,Sa as kA,Sb as ce,T as Fi,Ta as vA,Tb as Ba,U as Ui,Ua as DA,Ub as Wa,V as Hi,Va as GA,Vb as za,W as ji,Wa as FA,Wb as Ka,X as Vi,Xa as UA,Xb as Xa,Y as $i,Ya as HA,Yb as Ya,Z as Bi,Za as jA,Zb as qa,_ as Wi,_a as Ea,_b as Ja,a as $T,aa as Ki,ab as va,ac as Za,b as BT,ba as Xi,bb as Da,bc as ep,c as WT,ca as Yi,cb as Ga,cc as tp,d as zT,da as qi,db as $A,dc as rp,e as KT,ea as Ji,eb as BA,ec as np,fa as Qi,fb as WA,fc as op,ga as Zi,gb as zA,gc as ip,h as XT,ha as es,hb as KA,hc as de,i as YT,ia as ts,ib as XA,ic as sp,j as Ci,ja as rs,jb as YA,jc as OC,k as qT,ka as ns,kb as qA,kc as RC,l as JT,la as os,lb as JA,lc as IC,m as eg,ma as is,mb as QA,mc as ap,n as tg,na as ss,nb as ZA,nc as NC,o as rg,oa as as,ob as eC,oc as yE,p as ng,pa as ps,pb as tC,pc as SE,q as Cg,qa as cs,qb as rC,qc as OE,r as Eg,ra as ds,rb as nC,s as yg,sa as ls,sb as oC,t as Sg,ta as ms,tb as iC,u as Og,ua as us,ub as sC,v as Rg,va as _s,vb as aC,w as Ig,wb as pC,x as Ng,xa as EA,xb as cC,y as xg,ya as yA,yb as dC,z as bg,za as SA,zb as lC}from"./chunks/chunk-7KL6KMWF.js";import{$ as Lu,$c as v_,$d as ef,$e as Kt,$f as Ar,$g as Wh,$h as wT,$i as un,$j as _o,$k as _i,A as Tu,Ac as E_,Ad as j_,Ae as xf,Af as eh,Ag as wh,Ai as ne,Aj as Hn,Ak as jo,B as F,Bc as mt,Bd as V_,Be as bf,Bf as th,Bg as Lh,Bi as HT,Bj as jn,Bk as Vo,C as gu,Cd as $_,Ce as Pf,Cf as rh,Cg as Mh,Ch as pT,Ci as jT,Cj as Vn,Ck as $o,D as U,Da as Gu,Db as qu,Dc as y_,Dd as Pt,De as wf,Df as nh,Dg as kh,Dh as cT,Di as VT,Dj as $n,Dk as Bo,Ea as Fu,Eb as it,Ec as S_,Ed as wt,Ee as Lf,Ef as mr,Eg as vh,Eh as dT,Ei as $r,Ej as Bn,Ek as Wo,F as Au,Fa as Uu,Fb as st,Fc as O_,Fd as Lt,Fe as Mf,Ff as ur,Fh as lT,Fi as Br,Fj as Wn,Fk as zo,G as Cu,Gb as b,Gc as R_,Gd as Mt,Ge as kf,Gh as mT,Gi as Wr,Gj as zn,Gk as Ko,Hb as Ju,Hc as I_,Hd as kt,He as vf,Hi as zr,Hj as Kn,Hk as Xo,Ia as Ze,Ic as ee,Id as vt,Ie as Df,Ih as uT,Ii as Kr,Ij as Xn,Ik as Yo,J as Eu,Ja as Hu,Jb as Qu,Jc as N_,Jd as Dt,Je as Gf,Jf as oh,Jh as _T,Ji as Xr,Jj as Yn,Jk as qo,Ka as ju,Kc as x_,Kd as Gt,Ke as Ff,Kf as ih,Kh as fT,Ki as Yr,Kj as qn,Kk as Jo,La as Vu,Lb as Zu,Lc as b_,Ld as Ft,Le as Uf,Lf as sh,Lh as hT,Li as qr,Lj as Jn,Lk as Qo,M as yu,Ma as $u,Mc as P_,Md as Ut,Me as Hf,Mf as ah,Mh as TT,Mi as Jr,Mj as Qn,Mk as Zo,N as J,Nc as w_,Nd as Ht,Ne as jf,Nh as gT,Ni as Qr,Nj as Zn,Nk as ei,O as Q,Oa as et,Od as B_,Oe as Vf,Of as ph,Oh as AT,Oi as Zr,Oj as eo,Ok as ti,P as Be,Pa as tt,Pd as W_,Pe as $f,Pf as ch,Pg as Dh,Ph as CT,Pi as en,Pj as to,Pk as ri,Q as We,Qa as H,Qd as z_,Qe as Bf,Qg as Gh,Qh as ET,Qi as tn,Qj as ro,Qk as ni,R as Su,Re as Wf,Rg as Fh,Rh as yT,Ri as rn,Rj as no,Rk as oi,Se as zf,Sf as dh,Sg as Uh,Sh as re,Si as nn,Sj as oo,Sk as ii,T as Ou,Ta as rt,Td as K_,Te as Kf,Tf as lh,Tg as Hh,Th as ST,Ti as on,Tj as io,Tk as si,U as Ru,Ua as nt,Uc as L_,Ud as X_,Ue as Xf,Uf as mh,Ug as jh,Uh as OT,Ui as sn,Uj as so,Uk as ai,V as Iu,Vd as Y_,Ve as jt,Vf as uh,Vh as RT,Vi as an,Vj as ao,Vk as pi,W as Nu,Wa as ot,Wc as ut,We as Vt,Wf as _r,Wh as IT,Wi as pn,Wj as po,Wk as ci,X as xu,Xc as M_,Xd as q_,Xe as $t,Xf as fr,Xg as Vh,Xh as NT,Xi as cn,Xj as co,Xk as di,Y as bu,Yb as e_,Yc as _t,Yd as J_,Ye as Bt,Yf as hr,Yg as $h,Yh as xT,Yi as dn,Yj as lo,Yk as li,Z as Pu,Zb as t_,Zd as Q_,Ze as Wt,Zf as Tr,Zg as Rr,Zh as bT,Zi as ln,Zj as mo,Zk as mi,_ as wu,_b as r_,_c as k_,_d as Z_,_e as zt,_f as gr,_g as Bh,_h as PT,_i as mn,_j as uo,_k as ui,aa as Mu,ac as n_,ad as D_,ae as tf,af as Xt,ag as Cr,ah as zh,ai as br,aj as _n,ak as fo,al as fi,bc as o_,bd as ft,be as rf,bf as Yt,bg as _h,bh as Kh,bi as Pr,bj as fn,bk as ho,bl as hi,c as He,ca as ku,cd as ht,ce as nf,cf as qt,ch as te,ci as wr,cj as hn,ck as To,cl as oe,da as vu,dc as i_,dd as Tt,de as of,df as Jt,dg as Er,dh as Xh,di as Lr,dj as Tn,dk as go,e as je,ea as Du,ec as at,ed as gt,ee as sf,ef as Qt,eg as yr,eh as Yh,ei as Mr,ej as gn,ek as Ao,f as Ve,fa as ze,fd as At,fe as af,ff as Zt,fg as Sr,fh as qh,fi as kr,fj as An,fk as Co,g as $e,ga as Ke,gc as pt,gd as Ct,ge as pf,gf as er,gh as Jh,gj as Cn,gk as Eo,ha as Xe,hc as ct,hd as Et,he as cf,hf as tr,hg as fh,hi as vr,hj as En,hk as yo,i as lu,id as G_,ie as df,if as rr,ig as hh,ih as Qh,ii as Dr,ij as yn,ik as So,j as mu,jc as s_,jd as F_,je as lf,jf as nr,jg as Th,jh as Zh,ji as Gr,jj as Sn,jk as Oo,k as uu,kb as Bu,kc as a_,ke as mf,kf as or,kg as gh,kh as eT,ki as Fr,kj as On,kk as Ro,la as Ye,lb as j,lc as p_,ld as yt,le as uf,lf as ir,lg as Or,lh as tT,li as Ur,lj as Rn,lk as Io,mb as Z,mc as c_,md as St,me as _f,mf as sr,mg as Ah,mh as Ir,mi as Hr,mj as In,mk as No,na as qe,nb as Wu,nc as d_,nd as U_,ne as ff,nf as ar,ng as Ch,nh as Nr,ni as jr,nj as Nn,nk as xo,oa as Je,ob as zu,oc as l_,od as Ot,oe as hf,of as pr,og as Eh,oh as xr,oi as Vr,oj as xn,ok as bo,pa as Qe,pb as Ku,pc as m_,pd as Rt,pe as Tf,pf as cr,pg as yh,ph as rT,pi as LT,pj as bn,pk as Po,qb as Xu,qc as dt,qd as H_,qe as gf,qf as dr,qg as Sh,qi as MT,qj as Pn,qk as wo,r as _u,rb as g,rc as u_,rd as It,re as Af,rf as lr,rg as Oh,rh as nT,ri as kT,rj as wn,rk as Lo,sb as Yu,sc as __,sd as Nt,se as Cf,sf as Yf,sg as Rh,sh as oT,si as vT,sj as Ln,sk as Mo,tc as f_,td as xt,te as Ef,tf as qf,tg as Ih,th as iT,ti as DT,tj as Mn,tk as ko,u as fu,uc as h_,ud as bt,ue as yf,ug as Nh,ui as GT,uj as kn,uk as vo,vc as T_,ve as Sf,vf as Jf,vg as xh,vi as FT,vj as vn,vk as Do,w as hu,wc as g_,we as Of,wf as Qf,wg as bh,wh as sT,wi as UT,wj as Dn,wk as Go,xc as A_,xe as Rf,xj as Gn,xk as Fo,yc as C_,ye as If,yg as Ph,yh as aT,yj as Fn,yk as Uo,zc as lt,ze as Nf,zf as Zf,zj as Un,zk as Ho}from"./chunks/chunk-KIKDWECH.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 f="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!==f)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:f,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:f,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:f,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:f,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:f,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 Vm(){return Object.keys(E).sort().map(e=>E[e])}function $m(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 Bm(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),a=t%o,i=Math.floor(t/o),s=0,p=1;for(let q=0;q<e.hierarchy_depth;q+=1)s=Math.min(Number.MAX_SAFE_INTEGER,s+p),p=Math.min(Number.MAX_SAFE_INTEGER,p*e.hierarchy_fanout);let c=i%s,l=i-c,u=c===0?void 0:a+(l+Math.floor((c-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:a,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 $=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,,s]of this.annotationFields){let p=Math.floor(this.itemCount/100),c=this.itemCount%100,l=p*s+Math.max(0,s+c-100),u=p*s+Math.min(s,c),d=this.annotations[i];(d<l||d>u)&&n.push(`${i}:${d}!in[${l},${u}]`)}let o=new Set([...Object.keys(this.edgeKinds),...Object.keys(this.expectedEdgeKinds)]);for(let i of[...o].sort()){let s=this.edgeKinds[i]??0,p=this.expectedEdgeKinds[i]??0;s!==p&&n.push(`edge_kind:${i}:${s}!=${p}`)}let a=[...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:a.length===0,mismatches:a}}};function Ne(e){return new $(e)}function Wm(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]="d19cfa31-a02f-53a7-8685-5d169d6e051d")}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 zm(){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 Km(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 Xm(){await ne()}import y from"node:fs";import W 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,Ym=3;function bS(e){return(e?.trim()||"development").replace(/[^a-zA-Z0-9._-]/g,"_").replace(/^\./,"_")}function PS(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=W.join(e,r);y.mkdirSync(n,{recursive:!0});let o=new Date;y.utimesSync(n,o,o);let a=y.readdirSync(e).filter(c=>c!==r).flatMap(c=>{try{return[{name:c,mtimeMs:y.statSync(W.join(e,c)).mtimeMs}]}catch(l){if(l instanceof Error&&"code"in l&&l.code==="ENOENT")return[];throw l}}).sort((c,l)=>l.mtimeMs-c.mtimeMs||c.name.localeCompare(l.name)),i=a.filter(c=>o.getTime()-c.mtimeMs<we),s=Math.max(0,Ym-1-i.length),p=a.filter(c=>o.getTime()-c.mtimeMs>=we).slice(s).map(c=>c.name).sort((c,l)=>c.localeCompare(l));for(let c of p)y.rmSync(W.join(e,c),{recursive:!0,force:!0,maxRetries:3,retryDelay:50});return{retained:r,removed:p}}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 v="@unbrained/pm-cli",qm=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 m(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]??"")||m(e,["--activate","--adopt","--adopt-all","--deactivate","--fix-managed-state","--init","--install","--output","--reload","--scaffold","--uninstall"])}var Jm={changelog:(e,t)=>{if(t[0]==="generate")return!m(e,["--check"]);let r=e.indexOf("export");return t[0]==="export"&&(m(e,["--output"])||r>=0&&e[r+1]!==void 0&&!e[r+1].startsWith("-"))},comments:e=>m(e,["--add","--delete","--edit","--file","--stdin"]),config:(e,t)=>(t[0]==="project"||t[0]==="global"?t[1]:t[0])==="set",deps:()=>!1,docs:e=>m(e,["--add","--add-glob","--migrate","--remove"]),duplicates:()=>!1,events:()=>!1,extension:z,files:(e,t)=>m(e,["--add","--add-glob","--migrate","--remove"])||t[0]==="discover"&&m(e,["--apply"]),health:e=>!m(e,["--check-only","--no-refresh","--skip-vectors"]),learnings:e=>m(e,["--add","--delete","--edit","--file","--stdin"]),merge:(e,t)=>t[0]!=="report",notes:e=>m(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]??"")&&!(m(e,["--infer"])&&!m(e,["--apply"])),telemetry:(e,t)=>t.slice(0,2).some(r=>["clear","flush"].includes(r)),templates:(e,t)=>t[0]==="save",test:e=>m(e,["--add","--add-json","--background","--measure","--remove","--resume","--run","--stop"]),validate:e=>m(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 a=r[o]-n[o];if(a!==0)return Math.sign(a)}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 Qm(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[v],a=typeof o=="string"?o.trim():"",i=/^[<!]/u.test(a)?void 0:a.match(X)?.[0];i&&t.push(i)}return t.sort((r,n)=>L(n,r))[0]}function Zm(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 eu(e,t){try{let r=Le.readFileSync(M.join(e,t),"utf8").split(/\r?\n/u),n=r.findIndex(p=>p.includes(v));if(n<0)return;let o=r[n].match(/^\s*/u)[0].length,a=[r[n]];for(let p=n+1;p<r.length;p+=1){let c=r[p],l=c.trim(),u=c.match(/^\s*/u)[0].length;if(l.length>0&&u<=o)break;a.push(c)}return a.join(`
2
- `).match(/^\s*version(?::\s*|\s+)["']?(\d{4}\.\d{1,2}\.\d{1,2}(?:-\d+)?)/mu)?.[1]??a[0].match(X)?.[0]}catch{return}}function tu(e){let t=[],r=K(M.join(e,"package.json")),n=r?Qm(r):void 0;n&&t.push({version:n,source:"package.json"});let a=K(M.join(e,"node_modules","@unbrained","pm-cli","package.json"))?.version;typeof a=="string"&&k(a)&&t.push({version:a,source:"installed-package"});let i=Zm(e);i&&k(i)&&t.push({version:i,source:"package-lock.json"});for(let s of["pnpm-lock.yaml","yarn.lock"]){let p=eu(e,s);p&&t.push({version:p,source:s})}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 ru(e){let t=ke(e);if(!t||m(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 s=e[i];if(Me.has(s)){i+=1;continue}s.startsWith("-")||o.push(s.toLowerCase())}let a=Jm[r];return a?a(e,o):qm.has(r)}function nu(e){let t=ke(e.argv)?.command,r=ru(e.argv),o=tu(e.projectRoot).filter(s=>L(s.version,e.executingVersion)!==null).sort((s,p)=>L(p.version,s.version))[0],a=o!==void 0&&L(e.executingVersion,o.version)===-1,i=a&&!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 ${v} ${o.version}.`,"Install the project dependencies with its declared package manager if the local executable is missing."]}:void 0;return{compatible:!r||!a||e.allowStale===!0,executing_version:e.executingVersion,...o?{project_version:o.version,source:o.source}:{},...t?{command:t}:{},mutating:r,stale:a,...i?{warning:i}:{},override_applied:a&&r&&e.allowStale===!0}}function DS(e){let t=nu(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 ${v} ${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 ou}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(),a=e.edges(),i=t.list();return Object.freeze({version:Y,fingerprint:ou("sha256").update(b({nodes:o,edges:a,kinds:i})).digest("hex"),created_at:new Date(n).toISOString(),nodes:o,edges:a,kinds:i})}function iu(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function N(e){if(!iu(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 _(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 D(e,t){let r=h(t.workspace,"workspace"),n=N(t.snapshot).snapshot,o=await _(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 _(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 su(e,t={}){let r=e.map(N),n=new Map;for(let i of r)for(let s of i.snapshot.kinds){let p=n.get(s.kind);if(p&&b(p)!==b(s))throw new TypeError(`Conflicting federated relationship kind: ${s.kind}`);n.set(s.kind,s)}let o=new j([...n.values()].sort((i,s)=>i.kind.localeCompare(s.kind))),a=new g(new Set(r.flatMap(i=>[...i.snapshot.nodes])),r.flatMap(i=>[...i.snapshot.edges]),o);return O(a,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 ve(e,t){if(!Number.isInteger(e)||e<1)throw new TypeError(`Relationship graph ${t} must be a positive integer`);return e}function au(e){let t=ve(e.nodeCount,"nodeCount"),r=ve(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(),a=(e.idPrefix??"node").trim();if(!o||!a)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 s=0;s<t;s+=1)yield`${a}-${s}`}},edges:{*[Symbol.iterator](){if(n!=="disconnected")for(let s=r;s<t;s+=r)yield{source:`${a}-${n==="star"?0:s-r}`,target:`${a}-${s}`,kind:o}}}}}function T(e,t){if(!e)throw new Error(`Relationship graph adapter conformance: ${t}`)}async function De(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"}),a=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 _(e,{workspace:r})===null,"workspace must start empty"),i.push({name:"empty-read",passed:!0});let s=await D(e,{workspace:r,snapshot:o});T(s.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 _(e,{workspace:r}))?.snapshot.nodes.length===2,"reads must not mutate stored state"),i.push({name:"read-isolation",passed:!0}),T((await D(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:a,expected_fingerprint:o.fingerprint}),T((await _(e,{workspace:r}))?.snapshot.fingerprint===a.fingerprint,"replacement must become visible"),i.push({name:"replacement-visibility",passed:!0});let c=!1;try{await e.replace({workspace:r,snapshot:o,expected_fingerprint:o.fingerprint})}catch{c=!0}return T(c,"stale compare-and-swap must fail"),i.push({name:"stale-cas",passed:!0}),e.clear&&(await e.clear({workspace:r,expected_fingerprint:a.fingerprint}),T(await _(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 pu(e){return De(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 aO(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 a=new Date(o).toISOString(),i=V(e,void 0,t.registry),s=i.graph.nodes(),p=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:a,reason:`Backfill ${r} from legacy item metadata`})}),c=Ge("sha256").update(JSON.stringify({migrationId:r,nodes:s,events:p})).digest("hex"),l=new Set([...t.existingEventIds??[]].filter(d=>typeof d=="string").map(d=>d.trim()).filter(Boolean)),u=p.filter(d=>!l.has(d.eventId));return Object.freeze({migration_id:r,fingerprint:c,nodes:s,events:Object.freeze(u),edge_count:p.length,skipped_existing_count:p.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]="55318c8e-1fbd-5abd-b18f-f0cc1f81dd5c")}catch{}})();function cO(e,t){let r=e.flatMap(i=>(i.owned_states??[]).map(s=>({contract:i,state:s}))),n=[],o=new Map;for(let i of t){if(o.has(i.probe_id)){n.push({kind:"duplicate_probe",probe_id:i.probe_id,detail:`Observation ${i.probe_id} was supplied more than once.`});continue}o.set(i.probe_id,i)}let a=new Set(r.map(({state:i})=>i.probe_id));for(let{contract:i,state:s}of r){let p=o.get(s.probe_id);if(!p){n.push({kind:"missing_probe",probe_id:s.probe_id,detail:`No entrypoint observation was recorded for ${i.code}.`});continue}p.code!==i.code&&n.push({kind:"wrong_error_code",probe_id:s.probe_id,detail:`Expected ${i.code}; observed ${p.code}.`}),p.exit_class!==s.expected_exit_class&&n.push({kind:"wrong_exit_class",probe_id:s.probe_id,detail:`Expected ${s.expected_exit_class}; observed ${p.exit_class}.`}),s.entrypoints.includes(p.entrypoint)||n.push({kind:"wrong_entrypoint",probe_id:s.probe_id,detail:`Expected one of ${s.entrypoints.join(", ")}; observed ${p.entrypoint}.`})}for(let i of t)a.has(i.probe_id)||n.push({kind:"undeclared_probe",probe_id:i.probe_id,detail:`Observation ${i.probe_id} has no catalog declaration.`});return n.sort((i,s)=>i.probe_id!==s.probe_id?i.probe_id.localeCompare(s.probe_id):i.kind.localeCompare(s.kind)),{ok:n.length===0,declared_probe_count:r.length,observed_probe_count:t.length,findings:n}}(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 lO(e){return e}function mO(e){return e}function uO(e){return e}function _O(e){return e}function fO(e){return e}function hO(e){return e}function TO(e){return e}function gO(e){return e}function AO(e){return e}function CO(e){return e}function EO(e){return e}function yO(e){return e}function SO(e){return e}function OO(e){return{handled:!0,result:e}}function RO(){return{handled:!1}}function IO(e){return e}function NO(e){return e}function xO(e){return e}function bO(e){return e}function PO(e){return e}function wO(e){return e}function LO(e){return e}function MO(e){return e}function kO(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 cu(e={},t={}){return new P(t).extension(void 0,{...e,migrate:!0})}function du(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]="8e8c2de1-7bff-57c6-8e71-9c27e9e76eaa")}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]="14672b89-6a87-59a0-8164-6b01a9c91ee1")}catch{}})();export{EA as ACTIONABILITY_ORDERING_KINDS,Yr as ACTIVITY_COMMANDER_STRING_OPTION_CONTRACTS,Bo as ACTIVITY_FLAG_CONTRACTS,Pt as AGENT_PROVENANCE_DIMENSIONS,xn as AGGREGATE_FLAG_CONTRACTS,fo as APPEND_FLAG_CONTRACTS,TA as ASSURANCE_ACTIONS,gA as ASSURANCE_DECLARATION_KINDS,Pg as ASSURANCE_DOCUMENT_VERSION,vo as ASSURANCE_FLAG_CONTRACTS,wg as ASSURANCE_GATE_TRIGGERS,ft as BASELINE_ITEM_FORMAT_VERSION,GA 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,Bu as BUILTIN_RELATIONSHIP_KINDS,zr as CALENDAR_COMMANDER_STRING_OPTION_CONTRACTS,$o as CALENDAR_FLAG_CONTRACTS,ho as CLAIM_FLAG_CONTRACTS,ci as CLOSE_ACTION_OPTION_KEYS,uo as CLOSE_FLAG_CONTRACTS,_o as CLOSE_MANY_FLAG_CONTRACTS,yo as CLOSE_TASK_FLAG_CONTRACTS,bn as COMMENTS_FLAG_CONTRACTS,Gu as COMMON_MUTATION_COMMAND_OPTION_KEYS,ri as COMPLETION_FLAG_CONTRACTS,Qe as CONFIDENCE_TEXT_VALUES,Bn as CONFIG_FLAG_CONTRACTS,Kr as CONTEXT_COMMANDER_STRING_OPTION_CONTRACTS,YA as CONTEXT_EVALUATION_METRIC_NAMES,zo as CONTEXT_FLAG_CONTRACTS,ce as CONTEXT_OUTPUT_VALUES,eC as CONTEXT_PACKING_PROFILES,WA as CONTEXT_RELEVANCE_SERVICE,$A as CONTEXT_RELEVANCE_SIGNAL_NAMES,pC as CONTEXT_SIGNAL_SET_VERSION,aC as CONTEXT_SIGNAL_STORE_FORMAT_VERSION,cC as CONTEXT_SIGNAL_STORE_WARNING_DETAILS,ti as CONTRACTS_FLAG_CONTRACTS,Uo as COPY_FLAG_CONTRACTS,Zr as CREATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,tn as CREATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,en as CREATE_COMMANDER_STRING_OPTION_CONTRACTS,_u as CREATE_DIRECT_CLOSE_REASON_DEFAULT,Do as CREATE_FLAG_CONTRACTS,Zf as CURRENT_HISTORY_ITEM_HASH_VERSION,ht as CURRENT_ITEM_FORMAT_VERSION,uC as ContextSignalStore,rC as ContextUsageValidationError,Sg as DEFAULT_AUTHOR_IDENTITY_VOCABULARY,zC as DEFAULT_CHILD_SAMPLE_LIMIT,DA as DEFAULT_COMPACT_LIST_FIELDS,Jh as DEFAULT_DERIVED_INDEX_MINIMUM_ITEMS,pc as DEFAULT_EVAL_QUERIES_RELATIVE_PATH,xC as DEFAULT_TERMINAL_TRANSITION_POLICY,TC as DEFAULT_WORKSPACE_MEMORY_MINIMUM_ITEMS,go as DELETE_FLAG_CONTRACTS,Ye as DEPENDENCY_KIND_VALUES,Yo as DEPS_FLAG_CONTRACTS,Mn as DOCS_FLAG_CONTRACTS,Lo as DUPLICATES_FLAG_CONTRACTS,Jo as EVAL_FLAG_CONTRACTS,oc as EVAL_QUERY_SET_CONTRACT,ic as EVAL_QUERY_SET_EXAMPLE,nc as EVAL_QUERY_SET_SCHEMA_ID,Wo as EVENTS_FLAG_CONTRACTS,Oo as EVENT_FLAG_CONTRACTS,$r as EXECUTABLE_COMMAND_ALIASES,F as EXIT_CODE,to as EXTENSION_ACTIVATE_FLAG_CONTRACTS,eo as EXTENSION_ADOPT_ALL_FLAG_CONTRACTS,po as EXTENSION_ADOPT_FLAG_CONTRACTS,sg as EXTENSION_CAPABILITIES,uu as EXTENSION_CAPABILITY_CONTRACT,lu as EXTENSION_CAPABILITY_CONTRACT_VERSION,mu as EXTENSION_CAPABILITY_LEGACY_ALIASES,at as EXTENSION_CAPABILITY_REGISTRATION_SURFACES,ao as EXTENSION_CATALOG_FLAG_CONTRACTS,ro as EXTENSION_DEACTIVATE_FLAG_CONTRACTS,Zn as EXTENSION_DESCRIBE_FLAG_CONTRACTS,so as EXTENSION_DOCTOR_FLAG_CONTRACTS,Qn as EXTENSION_EXPLORE_FLAG_CONTRACTS,Wn as EXTENSION_FLAG_CONTRACTS,Kn as EXTENSION_INIT_FLAG_CONTRACTS,qn as EXTENSION_INSTALL_FLAG_CONTRACTS,oo as EXTENSION_MANAGE_FLAG_CONTRACTS,no as EXTENSION_MIGRATE_FLAG_CONTRACTS,ag as EXTENSION_POLICY_MODES,pg as EXTENSION_POLICY_SURFACES,io as EXTENSION_RELOAD_FLAG_CONTRACTS,dg as EXTENSION_SANDBOX_PROFILES,zn as EXTENSION_SCOPE_FLAG_CONTRACTS,cg as EXTENSION_TRUST_MODES,Jn as EXTENSION_UNINSTALL_FLAG_CONTRACTS,Kg as EXTERNAL_DEPENDENCY_SOURCE_KIND,Xg as EXTERNAL_DEPENDENCY_SOURCE_KIND_ALIAS,Ln as FILES_FLAG_CONTRACTS,Ho as FOCUS_FLAG_CONTRACTS,Po as GC_FLAG_CONTRACTS,Ko as GET_FLAG_CONTRACTS,In as GLOBAL_FLAG_CONTRACTS,rs as GRAPH_DURABLE_CACHE_MIN_ITEMS,ts as GRAPH_DURABLE_CACHE_VERSION,qo as GRAPH_FLAG_CONTRACTS,Xt as GRAPH_SUBCOMMAND_VALUES,Xo as GUIDE_FLAG_CONTRACTS,Mo as HEALTH_FLAG_CONTRACTS,Fn as HISTORY_AUTHOR_ACKNOWLEDGE_FLAG_CONTRACTS,Zg as HISTORY_AUTHOR_ATTRIBUTION_BASELINE,bE as HISTORY_COMPACT_BULK_DEFAULT_MIN_ENTRIES,Un as HISTORY_COMPACT_FLAG_CONTRACTS,kn as HISTORY_FLAG_CONTRACTS,Dn as HISTORY_REDACT_FLAG_CONTRACTS,Gn as HISTORY_REPAIR_FLAG_CONTRACTS,Jp as INIT_AGENT_GUIDANCE_MODE_VALUES,$n as INIT_FLAG_CONTRACTS,co as INSTALL_FLAG_CONTRACTS,Je as ISSUE_SEVERITY_VALUES,Fo as ITEM_COMPLETE_FLAG_CONTRACTS,mE as ITEM_LATEST_TIMESTAMP_FIELDS,hu as ITEM_METADATA_KEY_ORDER,Go as ITEM_MUTATE_FLAG_CONTRACTS,Ke as ITEM_TYPE_VALUES,lE as ITEM_UNION_COLLECTION_FIELDS,mC as JsonFileContextSignalStoreAdapter,wn as LEARNINGS_FLAG_CONTRACTS,Rp as LINKED_TEST_ENV_NAME_PATTERN,Ip as LINKED_TEST_PM_CONTEXT_MODE_VALUES,Op as LINKED_TEST_PROTECTED_ENV_KEYS,Br as LIST_COMMANDER_STRING_OPTION_CONTRACTS,FA as LIST_COMMAND_DEFAULT_PROJECTIONS,mg as LIST_FILTER_EXTENSION_FLAG_DEFINITIONS,Nn as LIST_FILTER_FLAG_CONTRACTS,kA as LIST_SORT_FIELDS,vA as LIST_SORT_ORDER_VALUES,WC as MAX_CHILD_PROJECTION_ITEMS,So as MEET_FLAG_CONTRACTS,fE as MERGE_DRIVER_ARTIFACT_VALUES,vn as MERGE_FLAG_CONTRACTS,I as MemoryRelationshipGraphAdapter,Xr as NEXT_COMMANDER_STRING_OPTION_CONTRACTS,Zo as NEXT_FLAG_CONTRACTS,sp as NEXT_OUTPUT_VALUES,Pn as NOTES_FLAG_CONTRACTS,Xn as PACKAGE_FLAG_CONTRACTS,Yn as PACKAGE_INIT_FLAG_CONTRACTS,Eo as PAUSE_TASK_FLAG_CONTRACTS,pi as PLAN_CREATE_METADATA_PARAMETER_KEYS,Vn as PLAN_FLAG_CONTRACTS,jp as PLAN_SHOW_DEPTH_VALUES,Hp as PLAN_SUBCOMMANDS,Vp as PLAN_TEMPLATE_NAMES,Ti as PM_CLI_EXPECTED_ERROR_NAME,qt as PM_CLI_ONLY_TOOL_ACTION_WAIVERS,kC as PM_COMMAND_EXIT_CONTRACTS,MC as PM_COMMAND_EXIT_OUTCOME_CONTRACTS,cr as PM_COMMAND_OUTPUT_BUDGET_CONTRACTS,jE as PM_COMMAND_OUTPUT_ENVELOPE_CONTRACTS,vc as PM_COMMAND_VISIBILITY_CONTRACTS,_g as PM_CONTEXT_INTENTS_FILE,Uf as PM_CONTEXT_INTENT_CONTRACTS,Kt as PM_CORE_COMMAND_NAMES,f as PM_CORPUS_SHAPE_SCHEMA,FE as PM_ERROR_CODE_CATALOG,kE as PM_ERROR_CODE_EXIT_CLASS_CONTRACTS,jt as PM_EXTENSION_CAPABILITY_CONTRACTS,Yt as PM_EXTENSION_PACKAGE_ACTION_SUBCOMMANDS,$t as PM_EXTENSION_POLICY_MODE_CONTRACTS,zt as PM_EXTENSION_POLICY_SURFACE_CONTRACTS,Wt as PM_EXTENSION_SANDBOX_PROFILE_CONTRACTS,Vt as PM_EXTENSION_SERVICE_NAME_CONTRACTS,Bt as PM_EXTENSION_TRUST_MODE_CONTRACTS,sA as PM_GITATTRIBUTES_END,iA as PM_GITATTRIBUTES_START,pA as PM_GITATTRIBUTES_V2_END,aA as PM_GITATTRIBUTES_V2_START,Si as PM_GITIGNORE_END,yi as PM_GITIGNORE_START,jc as PM_MCP_PROMPT_CONTRACTS,Hc as PM_MCP_RESOURCE_CONTRACTS,Fc as PM_MCP_TOOL_COMMAND_CONTRACTS,Z_ as PM_MODE_PAIRED_OUTPUT_PROJECTION_CONTRACTS,br as PM_MUTATION_ACTION_CONTRACTS,ir as PM_OUTPUT_BUDGET_CLASSES,or as PM_OUTPUT_DEGRADATION_STEPS,UE as PM_OUTPUT_ENVELOPE_KINDS,se as PM_PACKAGE_CONVENTIONAL_RESOURCE_ROOTS,ie as PM_PACKAGE_RESOURCE_KINDS,hi as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA,_i as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA_VERSION,Pf as PM_READ_OUTPUT_COMPOSITION_OPTION_FLAGS,Nf as PM_READ_OUTPUT_DIMENSIONS,bf as PM_READ_OUTPUT_OPTION_FLAGS,yf as PM_READ_OUTPUT_SESSION_MAX_SEEN_ITEM_IDS,Ef as PM_READ_OUTPUT_SESSION_MIN_TOKENS,xf as PM_READ_OUTPUT_SURFACES,wf as PM_READ_OUTPUT_SURFACE_CONTRACTS,Q_ as PM_READ_ROW_CONTRACTS,J_ as PM_READ_ROW_JQ_SELECTOR,vC as PM_SUCCESS_EXIT_CODES,Jt as PM_TOOL_ACTIONS,di as PM_TOOL_ACTION_PARAMETER_CONTRACTS,fi as PM_TOOL_PARAMETERS_SCHEMA,ui as PM_TOOL_PARAMETERS_SCHEMA_MAJOR,mi as PM_TOOL_PARAMETERS_SCHEMA_VERSION,si as PM_TOOL_RESERVED_CUSTOM_FIELD_PROPERTIES,xe as PM_WORKSPACE_RECIPE_SCHEMA,jn as PROFILE_FLAG_CONTRACTS,Ce as PROFILE_LINT_CODES,Ae as PROFILE_LINT_DIMENSIONS,me as PROFILE_NAMES,Ic as PROFILE_SUBCOMMANDS,U as PmCliError,P as PmClient,ff as QUERY_CURSOR_CONTRACT,mo as REINDEX_FLAG_CONTRACTS,zh as REINDEX_LOCK_ID,Y as RELATIONSHIP_GRAPH_SNAPSHOT_VERSION,Ao as RELEASE_FLAG_CONTRACTS,Ro as REMIND_FLAG_CONTRACTS,ee as RESERVED_ITEM_FIELD_NAMES,To as RESTORE_FLAG_CONTRACTS,qe as RISK_VALUES,QT as RelationshipEventLog,ZT as RelationshipEventStore,g as RelationshipGraph,j as RelationshipKindRegistry,Hn as SCHEMA_FLAG_CONTRACTS,Wr as SEARCH_COMMANDER_STRING_OPTION_CONTRACTS,ug as SEARCH_EXTENSION_FLAG_DEFINITIONS,ei as SEARCH_FLAG_CONTRACTS,Va as SEMANTIC_ATTRIBUTION_LIMITS,Tu as SETTINGS_DEFAULTS,uc as SNAPSHOT_SCHEMA,rA as SOURCE_CONTEXT_ACCESS_ENV,nA as SOURCE_CONTEXT_WRITE_OVERRIDE_ENV,Co as START_TASK_FLAG_CONTRACTS,wo as STATS_FLAG_CONTRACTS,Xe as STATUS_VALUES,Rn as SUBCOMMAND_GLOBAL_FLAG_CONTRACTS,eh as SUPPORTED_HISTORY_ITEM_HASH_VERSIONS,K_ as SUPPRESS_HOST_OUTPUT_MARKER,xo as TELEMETRY_FLAG_CONTRACTS,pd as TELEMETRY_SUBCOMMANDS,No as TEST_ALL_FLAG_CONTRACTS,Io as TEST_FLAG_CONTRACTS,bo as TEST_RUNS_FLAG_CONTRACTS,nd as TEST_RUN_MEASUREMENT_LIMIT,An as TOOL_ACTIVITY_OPTION_CONTRACTS,an as TOOL_AGGREGATE_OPTION_CONTRACTS,fn as TOOL_BULK_MUTATION_FILTER_OPTION_CONTRACT_SOURCE,gn as TOOL_CALENDAR_OPTION_CONTRACTS,Tn as TOOL_CLOSE_MANY_FILTER_OPTION_CONTRACTS,Cn as TOOL_CONTEXT_OPTION_CONTRACTS,mn as TOOL_CREATE_OPTION_CONTRACTS,ln as TOOL_CREATE_OPTION_CONTRACT_SOURCE,En as TOOL_DEPS_OPTION_CONTRACTS,yn as TOOL_GRAPH_OPTION_CONTRACTS,sn as TOOL_LIST_FILTER_OPTION_CONTRACTS,pn as TOOL_SEARCH_FILTER_OPTION_CONTRACTS,dn as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACTS,cn as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACT_SOURCE,hn as TOOL_UPDATE_MANY_FILTER_OPTION_CONTRACTS,_n as TOOL_UPDATE_OPTION_CONTRACTS,un as TOOL_UPDATE_OPTION_CONTRACT_SOURCE,fu as TYPE_TO_FOLDER,Lu as UNKNOWN_SUBCOMMAND_COMPATIBILITY_CODES,rn as UPDATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,on as UPDATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,nn as UPDATE_COMMANDER_STRING_OPTION_CONTRACTS,jo as UPDATE_FLAG_CONTRACTS,Vo as UPDATE_MANY_FLAG_CONTRACTS,lo as UPGRADE_FLAG_CONTRACTS,ko as VALIDATE_FLAG_CONTRACTS,Qo as WORKSPACE_FLAG_CONTRACTS,fr as WORKSPACE_HISTORY_ID,ki as WorkspaceGraphCache,og as WorkspaceTransactionInterruptedError,Ci as _testOnly,VA as _testOnlyAggregateCommand,qp as _testOnlyConfigCommand,qC as _testOnlyGetCommand,Ys as _testOnlyHealthCommand,tc as _testOnlyInit,Qp as _testOnlyInitAgentGuidance,my as _testOnlyItemTransaction,OE as _testOnlyMutationEvents,RC as _testOnlyNextCommand,pE as _testOnlySearchCommand,VC as _testOnlySimilarity,Ec as _testOnlyTemplates,Aa as _testOnlyValidateCommand,Es as acknowledgeUnknownAuthorHistoryEvents,Cs as acknowledgeUnknownAuthorHistoryEventsFromTransport,Qh as acquireItemMetadataDerivedIndexLock,_r as acquireLock,Oy as activateExtensionForTest,n_ as activateExtensions,bt as agentSessionEnvironment,nl as aggregate,zc as analyzeAgentProvenanceDescriptorCoverage,tg as analyzeGraphImpact,rg as analyzeKnowledgeGraph,UC as analyzePmCommandExitConformance,Qt as analyzePmToolActionParity,TE as analyzeReconciliationDiscard,eg as analyzeRelationshipExecution,Yi as analyzeRelationshipSchedule,xm as analyzeSdkActionCoverage,oe as analyzeSdkCliParameterCompleteness,fl as append,ur as appendHistoryEntry,gr as appendWorkspaceAuditEvent,Tr as appendWorkspaceHistoryChange,Ch as applyAcceptanceCriteriaMutations,Mm as applyBootstrapPagerPolicy,Bf as applyContextIntentProjection,ip as applyContextTagProjection,UA as applyFilterValueEcho,WT as applyHistoryPatch,Hm as applyInvocationAuthorOverride,ta as applyPathMigrations,Df as applyReadOutputDimensions,Of as applyReadOutputSessionReferences,b_ as applyRegisteredItemFieldDefaultsAndValidation,oa as applyStandaloneNote,$s as applyStoredExtensionMigrationState,yh as applyTagRemovals,LC as applyTerminalOrderingPolicy,ia as artifactKey,yu as asRecordClone,Eu as asRecordOrNull,V as assembleWorkspaceRelationshipGraph,oS as assertExtensionBlueprint,nS as assertExtensionCapabilityUsage,Uy as assertExtensionDeactivated,aS as assertExtensionManifestCompatible,sS as assertExtensionManifestMatchesBlueprint,pS as assertExtensionPreflight,PE as assertHistoryCompactTarget,AE as assertHistoryRepairTarget,pu as assertMemoryRelationshipGraphAdapterConformance,Rh as assertNoUnknownCsvKeys,Hy as assertPackageManifest,gh as assertParentReferenceIsNotSelf,iS as assertProjectProfile,DS as assertProjectRuntimeCompatibility,ef as assertProjectionModeChoice,jy as assertRegisteredCommandContract,Jy as assertRegisteredCommandOverride,Ky as assertRegisteredExporter,Vy as assertRegisteredFlags,$y as assertRegisteredHook,zy as assertRegisteredImporter,Xy as assertRegisteredItemField,Yy as assertRegisteredItemType,rS as assertRegisteredMigration,Qy as assertRegisteredParserOverride,Zy as assertRegisteredPreflightOverride,qy as assertRegisteredProfile,eS as assertRegisteredRendererOverride,By as assertRegisteredSearchProvider,tS as assertRegisteredServiceOverride,Wy as assertRegisteredVectorStoreAdapter,Xu as assertRelationshipEdgeAllowed,De as assertRelationshipGraphAdapterConformance,Lg as assuranceAssertionUpdateIsLoosening,Kf as attachContextIntentReceipt,af as attachOutputOmissionReceipt,Yf as attachOutputTokenAccounting,Xf as attachReadOutputContracts,Rf as attachReadOutputSessionReceipt,bs as auditMergeAttributeFence,cA as auditMergeDriverConfiguration,Zi as auditWorkspaceRelationshipGraph,It as boundAgentEpisodeIdentity,Cf as boundReadOutputRows,tp as buildChildrenByParent,QC as buildCompactSearchFilterSummary,HA as buildContentFilterEcho,lC as buildContextSignalSnapshot,Bm as buildCorpusShapeItemPlan,Us as buildExtensionDescribeResult,jA as buildGovernanceMissingFilterEcho,Dh as buildInvalidTypeError,KC as buildItemChildrenRollup,dy as buildItemCompletionMutations,BA as buildItemContextRelevanceCandidates,oT as buildItemNotFoundError,YC as buildItemSchedule,Ns as buildMergeAttributePatterns,li as buildPmActionToolInputSchema,Qg as buildRelationshipContext,pT as buildSearchCorpus,dT as buildSemanticCorpusInput,hT as buildVectorizationEmbeddingIdentity,TT as buildVectorizationEmbeddingMetadata,ZC as buildVerboseSearchFilters,gC as buildWorkspaceMemorySnapshot,Rt as canonicalDocument,Fu as canonicalizeCommandOptionKey,Wu as canonicalizeRelationshipKind,yy as checkExtensionManifestCompatibility,Jl as claim,Ql as claimNext,eA as classifyHistoryAuthorEvent,RE as classifyHostEnvironmentFault,aE as classifyImplicitSemanticFallbackReason,At as classifyItemFormatVersion,ld as classifyLinkedTestFailure,C_ as clearActiveExtensionHooks,as as clearDurableGraphCache,$_ as clearFocusedItem,Ii as clearWorkspaceContractsCache,ql as close,mp as closeItem,sm as closeTask,Dm as coalesceRepeatedListFlags,yA as collectBlockedByIds,OA as collectBlockedByIdsFromCorpus,wi as collectDanglingDependencyReferences,IA as collectDependencyBlockedIds,Pi as collectDuplicateDependencyRows,Qi as collectDuplicateRelationshipEdgeGroups,sE as collectErrorCauseCodes,Li as collectMissingDependencyTargetIds,Ap as collectNewOrderingCycleWarnings,qi as collectOrderingCycles,Tg as collectPackageContextIntentContracts,pe as collectPackageExtensionDirectories,N_ as collectRegisteredItemFieldNames,v_ as collectRuntimeCreateFieldValues,Gh as collectRuntimeFilterValues,D_ as collectRuntimeUpdateFieldValues,qa as collectSubtreeIds,pt as collectUsedExtensionCapabilities,Uu as commandOptionFlagLabel,sl as comments,Hd as commitImportedItem,ly as commitItemCompletion,cy as commitItemMutations,ig as commitWorkspaceTransaction,On as compactFlagAliasContracts,Ja as compareCriticalItems,L as comparePmDateVersions,ng as compareRelationshipSnapshots,Su as compareTimestampStrings,xg as compileHistoryProvenanceMatcher,Vf as composeContextIntentContracts,fy as composeExtension,Ey as composeExtensionPackage,NA as computeActionabilityReport,lh as computeHistoryDiff,Ki as computeRelationshipCentrality,zi as computeRelationshipDominators,Mi as computeWorkspaceGraphFingerprint,Tl as config,A_ as consumeAfterCommandAffectedItems,Qd as context,zf as contextIntentRowId,em as copy,md as countFailureCategories,gf as countReadOutputRows,Xl as create,hA as createAssuranceWorkspaceContext,Ru as createCheckpointId,o_ as createCoreCommandHookContext,Ne as createCorpusShapeMeasurement,Gg as createEmptyAssuranceDocument,qu as createEmptyExtensionRegistrationRegistry,Ei as createExtensionCommandSdk,st as createExtensionContributionInventory,cS as createExtensionTestHarness,mr as createHistoryEntry,MT as createLazyModule,nT as createMutationGuardSdk,tf as createOutputOmissionReceipt,gi as createPmCliExpectedError,jm as createPmCliProgram,ar as createPmCommandOutputBudget,cf as createQueryFingerprint,au as createRelationshipGraphScaleFixture,O as createRelationshipGraphSnapshot,Z as createRelationshipKindRegistry,eE as createSearchCursorFingerprint,i_ as createSerialQueue,Ih as createStdinTokenResolver,Mu as createUnknownSubcommandError,_c as createWorkspaceSnapshot,Ry as deactivateExtensionForTest,RO as declineServiceOverride,Wf as decodeContextIntentCursor,LT as decodeHtmlEntitiesInOptions,mf as decodeQueryCursor,lf as decodeQueryCursorState,aa as dedupeLinkedArtifacts,zA as defaultScoreContextCandidates,wO as defineAfterCommandHook,bO as defineBeforeCommandHook,PO as defineBeforeMutationHook,uO as defineCommand,CO as defineCommandOverride,C as defineCorpusShape,xO as defineExporter,uy as defineExtension,_y as defineExtensionBlueprint,lO as defineExtensionManifest,_O as defineFlag,NO as defineImporter,hO as defineItemField,fO as defineItemType,TO as defineMigration,kO as defineOnIndexHook,MO as defineOnReadHook,LO as defineOnWriteHook,EO as defineParserOverride,pr as definePmCommandOutputBudget,HE as definePmCommandOutputEnvelope,vE as definePmErrorCodeCatalog,yO as definePreflightOverride,mO as defineProjectProfile,IO as defineRendererOverride,gO as defineSearchProvider,SO as defineServiceOverride,AO as defineVectorStoreAdapter,be as defineWorkspaceRecipe,tm as deleteItem,Cc as deleteWorkspaceSnapshot,Yu as dependencyToRelationship,ul as deps,Ty as deriveExtensionCapabilities,HC as derivePmBulkMutationEffect,Ms as deriveSchemaEvolutionMigrationId,RT as deriveTelemetryCommandResolution,jh as describeAllowedTransitions,tA as describeExtensionActivation,gy as describeExtensionBlueprint,Ma as describeItemOwnershipConflict,Te as describeProfileComposition,ge as describeProjectProfile,zE as describeUnknownError,vt as detectAgentIdentity,Ut as detectHarnessIdentity,Bi as detectRelationshipCommunities,Dt as diagnoseAgentIdentity,es as diffRelationshipAuditSnapshots,sd as diffTestRunMeasurements,t_ as discoverExtensions,tt as discoverNearbyPmRoot,tu as discoverProjectRuntimeVersionPins,ml as docs,il as duplicates,ns as durableGraphCachePath,ps as durableGraphCacheStatus,Tt as effectiveItemFormatVersion,VT as emitTelemetryErrorEvent,Ud as emptyImportedDocument,df as encodeQueryCursor,mh as enforceHistoryStreamPolicyForItem,uh as enforceHistoryStreamPolicyForItems,LE as enrichCliFlagInvocationContract,ME as enrichCliFlagInvocationContracts,KT as ensureMaterializedHistoryTarget,Ri as ensurePmGitignore,qs as ensureScope,OT as ensureSentryInit,Fd as ensureTrackerInitialized,Vi as enumerateRelationshipPaths,lr as estimatePmOutputTokens,Ug as evaluateAssuranceAssertion,Hg as evaluateAssuranceGate,qA as evaluateContextRanking,Fg as evaluateMeasurement,wr as evaluateMutationGuard,Qc as evaluateProvenanceCoverage,Yc as evaluateSemanticAttributionCoverage,Sp as evaluateSimilarityGovernance,Hh as evaluateTransition,lT as executeEmbeddingBatchesWithRetry,_T as executeVectorDelete,fT as executeVectorReset,uT as executeVectorUpsert,Km as executeWorkspaceRecipe,na as expandAddGlobEntries,ua as explainSourceTraceability,am as extension,cm as extensionActivate,dm as extensionDeactivate,pm as extensionList,cu as extensionMigrate,$T as extractPatchFailureContext,Ta as extractReferencedPmItemIdsFromCommand,su as federateRelationshipGraphSnapshots,cl as files,dl as filesDiscover,ll as filesLookup,yp as findDuplicateClusters,Is as findGitWorkspaceRoot,Gs as findInstalledNpmPackageCandidate,Wi as findRedundantRelationshipEdges,Xi as findRelationshipCutStructure,Ep as findSimilarItems,jT as finishTelemetryCommand,Pu as flattenFlagListValue,Xm as flushTelemetryQueue,nm as focus,$i as forEachMatchedRelationshipEdge,Ji as formatDuplicateEdgeGroup,kc as formatProfileApplyHuman,Mc as formatProfileLintHuman,wc as formatProfileListHuman,Lc as formatProfileShowHuman,Ds as formatSchemaEvolutionMigrationHuman,Vl as gc,Sr as generateItemId,tl as get,h_ as getActiveCommandResult,Hf as getActiveContextIntentContracts,dt as getActiveExtensionRegistrations,Vg as getAssuranceDeclaration,Om as getContracts,j_ as getFocusedItem,ot as getHistoryPath,JT as getItemAt,nt as getItemPath,kr as getMutationActionContract,Oi as getPmGitignoreBlock,rt as getSettingsPath,Sm as getWorkspaceContracts,hr as getWorkspaceHistoryPath,_l as graph,os as graphAuditBaselinePath,qc as groupHistoryByEpisode,OO as handleServiceOverride,ni as hasSubcommandFlagContractsForCommand,gT as hasVectorizationEmbeddingIdentityChanged,AT as hasVectorizationVectorDimensionChanged,th as hashDocument,rh as hashDocumentForVersion,nh as hashEmptyDocument,jl as health,Fi as hierarchyAncestors,Ui as hierarchyDescendants,zl as historyCompact,Kl as historyCompactBulk,Ng as historyEntryMatchesProvenance,$l as historyRedact,Bl as historyRepair,Wl as historyRepairAll,SA as indexBlockedByIds,CT as inferConsistentVectorDimension,sr as inferPmOutputBudgetClass,hl as init,hs as inspectHistoryAuthorStream,nu as inspectProjectRuntimeCompatibility,jr as inspectStaleInProgressItems,fc as inspectWorkspaceSnapshot,Ls as installMergeFence,pp as isAlreadyClaimedError,YE as isCommanderError,xa as isErrnoError,Yg as isExternalDependencySourceKind,Y_ as isHostOutputSuppressed,Lr as isMutationAction,Ku as isOrderingRelationshipKind,hh as isPlaceholderReferenceToken,Ai as isPmCliExpectedError,er as isPmExtensionCapabilityContract,rr as isPmExtensionPolicyModeContract,nr as isPmExtensionPolicySurfaceContract,tr as isPmExtensionServiceNameContract,GC as isPmKnownExitCode,$E as isPmMutationReceipt,DC as isPmSuccessfulExitCode,Zt as isPmToolAction,ru as isProjectMutatingInvocation,kT as isPureSnakeCaseAlias,Gf as isReadOutputBudgetExceeded,nf as isReadRowContract,fs as isRuntimeRecord,GT as isTerminalPlanMode,F_ as isTerminalStatus,We as isTimestampLiteral,ay as itemDocumentToMutationOptions,XC as itemHasSchedule,vr as jaccardSimilarity,pl as learnings,wu as levenshteinDistanceWithinLimit,Ra as limitAnnotationEntries,Ay as lintExtensionBlueprint,Ee as lintProjectProfile,Zd as list,vm as listAliasPluralKeys,tT as listAllDocumentCandidatesCached,xr as listAllItemMetadata,rT as listAllItemMetadataLight,jg as listAssuranceDeclarations,zg as listAssuranceVerdicts,Vm as listBuiltinCorpusShapes,mA as listMergeReceipts,Mr as listMutationActions,yE as listMutationEvents,Gc as listPmCommandsForTier,Uc as listPmMcpToolsForProfile,he as listProfiles,hc as listWorkspaceSnapshots,gg as loadContextIntentRuntimeLayers,yc as loadCreateTemplateOptions,r_ as loadExtensions,ds as loadGraphAuditBaseline,Nu as loadMutationCheckpoint,_ as loadRelationshipGraphAdapter,Ir as locateItem,Oh as looksLikeGenericKeyValueEntry,Af as mapReadOutputRows,uA as markMergeReceiptReconciled,Fh as matchesRuntimeFilters,UT as maybeRunFirstUseTelemetryPrompt,Wm as measureCorpusShapePlan,Eh as mergeAdditiveTags,hy as mergeExtensionBlueprints,cE as mergeHistoryStreams,uE as mergeItemDocuments,_E as mergeJsonDocuments,Gm as mergeLinkedTestTwoTokenEntries,dE as mergeRelationshipEventStreams,np as mergeSortedWarnings,DT as migrateItemFilesToFormat,iT as mutateItem,Ar as mutateWorkspaceJsonWithHistory,rl as next,Oa as normalizeAnnotationTransportOptions,Fm as normalizeBootstrapInvocation,xi as normalizeDependencyGraphTarget,Jg as normalizeDependencySeedId,qg as normalizeDependencySourceKind,it as normalizeExtensionContributionInventory,QE as normalizeItemAddressInvocation,gt as normalizeItemFormatVersion,yr as normalizeItemId,yt as normalizeItemMetadata,km as normalizeLegacyExtensionActionSyntax,ra as normalizeLinkedPath,fh as normalizeParentReferenceValue,_e as normalizeProfileName,Er as normalizeRawItemId,ah as normalizeReplayPatchOps,Dr as normalizeSimilarityText,G_ as normalizeStatusForRegistry,Et as normalizeStatusInput,M_ as normalizeStatusInputWithRegistry,XE as normalizeThrownExitCode,al as notes,Be as nowIso,is as openDurableGraphCache,Hi as orderingPredecessors,ji as orderingSuccessors,tC as packContextCandidates,Qa as packRankedContextItems,Cm as packageActivate,Am as packageCatalog,Em as packageDeactivate,Tm as packageDescribe,fm as packageDoctor,um as packageInstall,lm as packageLifecycle,mm as packageList,hm as packageManage,du as packageMigrate,gm as packageReload,_m as packageUninstall,_f as paginateQueryRows,Js as parseAddEntries,Qs as parseAddGlobEntries,Na as parseAnnotationTextInput,oy as parseAtomicMutationControls,Lm as parseBootstrapCommandName,bm as parseBootstrapGlobalOptions,wm as parseBootstrapHelpRequest,Um as parseBootstrapTypeValue,Xa as parseContextDepth,Ba as parseContextFocusFields,fg as parseContextIntentDeclarations,Ya as parseContextSections,dC as parseContextSignalSnapshot,Sh as parseCsvKv,sc as parseEvalQuerySet,us as parseGraphSubcommand,Rg as parseHistoryProvenanceFilters,Cg as parseIntegerLimit,U_ as parseItemDocument,iy as parseItemMutationBatch,vh as parseLimit,kp as parseLinkedTestAssertionEqualsMap,vp as parseLinkedTestAssertionGteMap,bp as parseLinkedTestBoolean,Pp as parseLinkedTestContextMode,xp as parseLinkedTestEnvClear,Np as parseLinkedTestEnvSet,Dp as parseLinkedTestJsonEntries,Mp as parseLinkedTestMinLines,Lp as parseLinkedTestRegexList,wp as parseLinkedTestStringList,ea as parseMigrateEntries,xA as parseMultiValueFilter,BE as parseMutationReceipt,xh as parseOptionalNonNegativeInteger,Nh as parseOptionalNumber,Eg as parsePriority,wA as parsePriorityFilterSet,Sf as parseReadOutputSession,x_ as parseRegisteredItemFieldAssignments,N as parseRelationshipGraphSnapshot,Zs as parseRemoveEntries,ma as parseSourceLineRange,wh as parseStatusFilterCsv,bA as parseStringFilterSet,Or as parseTags,od as parseTestRunMeasurements,yg as parseType,PA as parseTypeFilterSet,As as parseUnknownAuthorHistoryEventCoordinates,IC as partitionDecisionEntries,dh as patchPathToChangedField,He as pathExists,im as pauseTask,ss as persistDurableGraphResult,Vh as persistSelectedItemFormat,hC as planCompletedAtBackfill,ye as planProfileApplication,aO as planRelationshipEventBackfill,ms as planRelationshipRemediation,ks as planSchemaEvolutionMigration,Tc as planWorkspaceSnapshotRestore,Sy as preflightExtension,Fr as prepareSimilarityText,Qf as printError,Jf as printResult,vl as profile,Fl as profileApply,Ul as profileLint,Dl as profileList,Gl as profileShow,g_ as projectAfterCommandItemSnapshot,Wa as projectContextFocusRows,rd as projectFleetAttributionAnalytics,Ig as projectHistoryProvenance,ed as projectProvenanceCoverageAnalytics,ga as projectValidateCounts,PS as pruneCompileCacheGenerations,$g as putAssuranceDeclaration,Xh as queryItemMetadataIndex,Yh as queryLinkedFileMetadataIndex,qh as querySimilarItemMetadataIndex,id as queryTestRunMeasurementsBelow,Ss as quoteCommandArg,ys as quoteWindowsCommandArg,ey as rankCommandPaths,Ia as readAnnotationEntries,Gt as readAuthorEnvironment,Ad as readBooleanOption,sC as readContextUsageAffinity,Cd as readCsvListOption,Vs as readExtensionMigrationState,je as readFileIfExists,qr as readFirstStringFromCommanderOptions,Jr as readFirstValueFromCommanderOptions,Jc as readHistoryAnalyticsWindow,z_ as readHistoryEntries,Bc as readImprovementLedger,Zh as readItemMetadataDerivedIndexState,Nr as readLocatedItem,Tf as readOutputRowCollections,hf as readOutputRowPaths,If as readOutputSessionRemainingTokens,ae as readPmPackageManifest,Rm as readRequiredString,Rr as readSettings,$h as readSettingsWithMetadata,Qr as readStringArrayFromCommanderOptions,gd as readStringOption,KE as readThrownExitCode,ET as readVectorizationStatusLedger,hg as readWorkspaceContextIntentContracts,_C as readWorkspaceContextSignals,AC as readWorkspaceMemory,ct as reconcileExtensionCapabilityUsage,T_ as recordAfterCommandAffectedItem,Wg as recordAssuranceVerdict,Ua as recordClaimSemanticAttribution,nC as recordContextUsageServing,oC as recordContextUsageTouch,iC as recordContextUsageTouches,ja as recordFocusSemanticAttribution,$c as recordImprovementObservation,Ha as recordReleaseSemanticAttribution,eT as refreshItemMetadataDerivedIndex,Ps as refreshMergeAttributeFenceIfInstalled,ST as refreshSearchArtifactsForMutation,Lt as registerHarnessSignalDescriptors,q_ as registerOutputMaterialFieldGroups,Zl as release,Bg as removeAssuranceDeclaration,$e as removeFileIfExists,da as renameArtifactsResultKey,va as renderCalendarMarkdown,Da as renderCalendarToon,op as renderContextMarkdown,Hs as renderExtensionDescribeMarkdown,Fs as renderExtensionSurfaceMarkdown,$d as renderGuideMarkdown,ry as renderMissingOptionRetry,NC as renderNextMarkdown,Os as renderPmCommand,Vc as renderPmCommandVisibilityMarkdown,Mh as renderRowsAsCsv,kh as renderRowsAsTable,zT as replayHistoryToTarget,ih as replayToCanonicalItemDocument,oh as replayToItemDocument,PC as requireTerminalReason,wC as requireTerminalReasonWithRecovery,u_ as resetActiveExtensionRuntimeState,Di as resetWorkspaceGraphCache,Nt as resolveAgentSessionContextFromSignals,La as resolveAnnotationIndex,ba as resolveAnnotationInput,W_ as resolveAuthor,Ht as resolveAuthorIdentity,_h as resolveBodyFileContent,$m as resolveBuiltinCorpusShape,ka as resolveCalendarOutputFormat,DE as resolveCanonicalPmErrorCodeContract,zu as resolveCanonicalRelationshipKind,B_ as resolveClaimPrincipal,Vu as resolveCommandOptionPolicyState,bS as resolveCompileCacheGeneration,fC as resolveCompletionTimestamp,Du as resolveConfiguredPmPackageRoot,MA as resolveContentFieldFilters,$f as resolveContextIntentContract,za as resolveContextOutputFormat,Ka as resolveContextTokenBudget,$C as resolveCreateExplicitEmptyFlag,sT as resolveEmbeddingProviders,zs as resolveExtensionInstallSourceIdentity,js as resolveExtensionMigrationStatePath,e_ as resolveExtensionRoots,bu as resolveFlagValueKind,jd as resolveGuideOutputFormat,Wc as resolveHistoryEpisodeGroupIdentity,Og as resolveHistoryProvenanceDimensions,XT as resolveHistorySubject,BT as resolveHistoryTarget,oE as resolveHybridSemanticWeight,et as resolveImplicitPmRoot,Ou as resolveIsoOrRelative,RA as resolveItemBlockers,sy as resolveItemMutationDocument,Ze as resolveItemTypeRegistry,L_ as resolveItemTypesFilePath,ud as resolveLinkedTestFailureExitCode,Rs as resolveMergeInstallContext,LA as resolveMissingMetadataFilters,ty as resolveMissingOptionPlaceholder,rf as resolveModePairedOutputOmissionReceipt,OC as resolveNextOutputFormat,sf as resolveOutputOmissionReceipt,vu as resolvePmCliVersion,FC as resolvePmCommandExitContract,dr as resolvePmCommandOutputBudget,VE as resolvePmCommandOutputEnvelope,Dc as resolvePmCommandVisibilityTier,GE as resolvePmErrorCodeContract,ku as resolvePmPackageRootFromModule,H as resolvePmRoot,ai as resolvePmToolCustomFieldCollision,bh as resolvePriority,fe as resolveProfile,xs as resolveProjectMergeTypeFolders,uf as resolveQueryCursorStart,kf as resolveReadOutputDimensions,Ff as resolveReadOutputEncoding,Lf as resolveReadOutputSurface,of as resolveReadRowContract,P_ as resolveRegisteredSearchProvider,w_ as resolveRegisteredVectorStoreAdapter,_t as resolveRuntimeFieldRegistry,ut as resolveRuntimeStatusRegistry,aT as resolveSearchCorpusFields,rE as resolveSearchMaxResults,tE as resolveSearchPage,nE as resolveSearchScoreThreshold,iE as resolveSearchTuning,cT as resolveSemanticCorpusCharacterLimit,Fa as resolveSemanticLineageIds,Wh as resolveSettingsWithSemanticRuntimeDefaults,oA as resolveSourceContextWritePolicy,Td as resolveStartTaskInProgressStatus,oi as resolveSubcommandFlagContractsForCommand,gu as resolveTelemetryErrorCategory,bC as resolveTerminalReason,ju as resolveTypeDefinition,Hu as resolveTypeName,Lh as resolveTypeSynonym,Uh as resolveTypeWorkflows,gs as resolveUnknownAuthorAcknowledgmentSelector,mT as resolveVectorStores,bi as resolveWorkspaceRelationshipKindRegistry,rm as restore,xu as restoreCheckpointItems,Ac as restoreWorkspaceSnapshot,gc as restoreWorkspaceSnapshotWithRecovery,Nm as runAction,E_ as runActiveBeforeMutationHooks,S_ as runActiveCommandHandler,y_ as runActiveOnIndexHooks,mt as runActiveOnReadHooks,lt as runActiveOnWriteHooks,O_ as runActiveParserOverride,R_ as runActivePreflightOverride,I_ as runActiveServiceOverride,Ni as runActivity,Zu as runAfterCommandHooks,ya as runAggregate,wa as runAnnotationCommand,Sa as runAppend,AA as runAssuranceAction,CA as runAssuranceDispatch,Qu as runBeforeCommandHooks,Ga as runCalendar,cp as runClaim,dp as runClaimNext,up as runClose,fp as runCloseMany,hp as runComments,Bd as runCompletion,Yp as runConfig,de as runContext,ZA as runContextEvaluationCorpus,JA as runContextEvaluationScenario,Bp as runCopy,Gp as runCreate,Wp as runDelete,Gi as runDeps,la as runDocs,WE as runDuplicates,cc as runEval,lc as runEvent,Ks as runExtension,Ws as runExtensionMigrateAction,Bs as runExtensionMigrations,_a as runFiles,ha as runFilesDiscover,fa as runFilesLookup,td as runFleetAttributionAnalytics,zp as runFocus,Xp as runGc,Kp as runGet,_s as runGraph,Vd as runGuide,Xs as runHealth,jC as runHistory,xE as runHistoryCompact,wE as runHistoryCompactBulk,YT as runHistoryRedact,gE as runHistoryRepair,CE as runHistoryRepairAll,rc as runInit,Zp as runInitAgentGuidance,Tp as runLearnings,ca as runLinkedArtifacts,_d as runLinkedTests,Ea as runList,dc as runMeet,hE as runMergeDriver,ws as runMergeInstall,_A as runMergeReceiptReport,EE as runMergeReconcile,ap as runNext,gp as runNotes,$p as runPlan,Pc as runProfileApply,bc as runProfileLint,Nc as runProfileList,xc as runProfileShow,Zc as runProvenanceCoverageAnalytics,Iy as runRegisteredCommandForTest,wy as runRegisteredCommandOverrideForTest,Fy as runRegisteredExporterForTest,xy as runRegisteredHookForTest,Gy as runRegisteredImporterForTest,Dy as runRegisteredMigrationForTest,Ny as runRegisteredMutationGuardForTest,by as runRegisteredParserOverrideForTest,Py as runRegisteredPreflightOverrideForTest,Ly as runRegisteredRendererOverrideForTest,ky as runRegisteredSearchProviderForTest,My as runRegisteredServiceOverrideForTest,vy as runRegisteredVectorStoreAdapterForTest,Se as runReindex,lp as runRelease,mc as runRemind,_p as runRestore,vs as runSchemaEvolutionMigration,ac as runSearch,zm as runSearchRefreshWorkerEntrypoint,Wd as runStartBackgroundRun,ad as runStats,cd as runTelemetry,Oc as runTemplatesList,Sc as runTemplatesSave,Rc as runTemplatesShow,fd as runTest,hd as runTestAll,zd as runTestRunsList,Xd as runTestRunsLogs,qd as runTestRunsResume,Kd as runTestRunsStatus,Yd as runTestRunsStop,Jd as runTestRunsWorker,Fp as runUpdate,Up as runUpdateMany,le as runUpgrade,Ca as runValidate,Im as runWithActiveExtensions,xt as runWithAgentSessionContext,jf as runWithContextIntentContracts,Ag as runWithDiscoveredContextIntentContracts,Mt as runWithHarnessDetectionSignals,kt as runWithWorkspaceHarnessSignalDescriptors,Pe as runWithWorkspaceRecipe,JC as runWorkspaceTransactionGc,ls as saveGraphAuditBaseline,Ts as scanHistoryAuthorAttribution,Ct as scanItemFormatVersions,Pr as scanMutationSecrets,dA as scanProvenanceResolverHealth,Vr as scanStaleInProgressItems,fA as scanStorageIntegrity,gl as schema,Rl as schemaAddField,Sl as schemaAddStatus,El as schemaAddType,bl as schemaApplyPreset,Pl as schemaInferTypes,Al as schemaList,Nl as schemaListFields,Ml as schemaRemapStatus,Il as schemaRemoveField,Ol as schemaRemoveStatus,yl as schemaRemoveType,Ll as schemaRenameField,wl as schemaRenameType,Cl as schemaShow,xl as schemaShowField,kl as schemaShowStatus,ZE as scoreCommandPathMatch,KA as scoreContextCandidates,XA as scoreContextCandidatesWithActiveExtensions,Ur as scoreItemSimilarity,Hr as scorePreparedItemSimilarity,el as search,yC as searchWorkspaceMemory,SC as searchWorkspaceMemoryReadResult,pf as selectCursorSemanticOptions,Gd as selectImportAuthor,EC as selectWorkspaceMemory,CC as selectWorkspaceMemoryRollups,$a as semanticAttributionAffinity,bT as sentryCaptureCliError,xT as sentryFinishCommandSpan,wT as sentryFlush,PT as sentryLogCliUsageError,IT as sentrySetCommandContext,NT as sentryStartCommandSpan,Ot as serializeItemDocument,ny as serializeNdjsonRows,__ as setActiveCommandContext,f_ as setActiveCommandResult,a_ as setActiveExtensionCommands,s_ as setActiveExtensionHooks,p_ as setActiveExtensionParsers,c_ as setActiveExtensionPreflight,m_ as setActiveExtensionRegistrations,l_ as setActiveExtensionRenderers,d_ as setActiveExtensionServices,V_ as setFocusedItem,FT as shouldCompletePlanOnClose,cs as shouldPersistDurableGraphCache,Kh as shouldRunSearchRefreshInForeground,Cp as similarityAdvisoryWarnings,sa as sortLinkedArtifacts,Ah as splitAcceptanceCriteria,vT as splitCommaList,St as splitFrontMatter,vf as stabilizeReadOutputReceiptEstimates,b as stableStringify,Ju as stableValueEquals,om as startTask,HT as startTelemetryCommand,ol as stats,k_ as statusIsTerminal,Pm as stripGlobalBootstrapTokens,SE as subscribeMutationEvents,Kc as summarizeAgentModelProvenance,Xc as summarizeAgentProvenance,QA as summarizeContextEvaluationReports,dd as summarizeContextPreflight,bg as summarizeHistoryProvenance,ec as summarizeInitResult,lA as summarizeMergeReceipt,BC as supportsCreateExplicitEmpty,JE as supportsItemIdAlias,X_ as suppressHostOutput,D as syncRelationshipGraphAdapter,Cy as synthesizeExtensionManifest,ii as toCompletionFlagString,rp as toContextFocusItem,Za as toContextPackingSummary,ep as toContextRankingSummary,Cu as toErrorMessage,yd as toEstimatedMinutesValue,lg as toExtensionFlagDefinitions,Nd as toImportBoolean,wd as toImportConfidence,Id as toImportInteger,vd as toImportLinkedDocs,kd as toImportLinkedFiles,Dd as toImportLinkedTests,Md as toImportLogEntries,Ld as toImportNormalizedEnum,Pd as toImportNumberMap,Sd as toImportPriority,Rd as toImportStatus,xd as toImportStringList,bd as toImportStringMap,Od as toImportTags,H_ as toItemRecord,Ed as toNonEmptyImportString,Au as toNonEmptyStringOrUndefined,sh as toReplayDocument,Gr as tokenizeSimilarityText,IE as translateHostEnvironmentFault,Yl as update,ym as upgrade,Hl as validate,kg as validateAssertionDefinition,Dg as validateAssuranceDocument,vg as validateGateDefinition,py as validateItemMutationRows,pa as validateLinkedPaths,Mg as validateMeasurementDefinition,Th as validateMissingParentReference,Mf as validateReadOutputOptions,Ph as validateSprintOrReleaseValue,$u as validateTypeOptions,ch as verifyHistoryChain,ph as verifyHistoryChainWithVersion,qT as verifyHistoryEntries,cO as verifyPmRefusalReachability,Sn as withFlagAliasMetadata,NE as withHostEnvironmentBoundary,vi as workspaceGraphCache,Pa as wrapOwnershipConflict,qE as wrapThrownErrorForSentry,Ft as writeAuthorEnvironment,Ve as writeFileAtomic,Iu as writeMutationCheckpoint,Bh as writeSettings,qf as writeStdout,yT as writeVectorizationStatusLedger,Cr as writeWorkspaceJsonWithHistory};
1
+ import{a as ty,b as ry,c as wl,d as Ll,e as Ml,g as kl,h as vl,i as Dl,j as Gl,k as Fl,l as Ul,m as Hl,n as jl,o as ny,p as oy,q as iy,r as sy,s as ay,t as py,u as cy,v as dy,w as Vl,x as $l,y as my,z as ly}from"./chunks/chunk-IMGIN7R6.js";import{A as Yy,B as qy,C as Jy,D as Qy,E as Zy,F as eS,G as tS,H as rS,I as nS,J as oS,K as iS,L as sS,M as aS,N as pS,O as cS,P as dS,Q as mS,R as lS,S as uS,T as _S,U as fS,V as hS,W as TS,X as gS,Y as AS,a as Sy,b as Oy,c as Ry,d as Iy,e as Ny,f as xy,g as by,h as Py,i as wy,j as Ly,k as My,l as ky,m as vy,n as Dy,o as Gy,p as Fy,q as Uy,r as Hy,s as jy,t as Vy,u as $y,v as By,w as Wy,x as zy,y as Ky,z as Xy}from"./chunks/chunk-F7FJYGK3.js";import{a as uy}from"./chunks/chunk-OAC5NIV4.js";import{a as _y,b as fy,c as hy,d as Ty,e as gy,f as Ay,g as Cy,h as Ey,i as yy}from"./chunks/chunk-3ZMOWAFM.js";import{$ as ge,$a as tm,$b as tl,A as Cp,Aa as Sd,Ab as xm,Ac as xl,B as jp,Ba as Od,Bb as bm,Bc as bl,C as Vp,Ca as Rd,Cb as Pm,Cc as Pl,D as $p,Da as Id,Db as wm,E as Bp,Ea as Nd,Eb as Lm,F as Wp,Fa as xd,Fb as Mm,G as zp,Ga as bd,Gb as km,H as Kp,Ha as Pd,Hb as vm,I as Xp,Ia as wd,Ib as Dm,J as gE,Ja as Ld,Jb as Gm,K as AE,Ka as Md,Kb as Fm,L as CE,La as kd,Lb as Um,M as EE,Ma as vd,Mb as Hm,N as yE,Na as Dd,Nb as jm,O as SE,Oa as Gd,Ob as Vm,P as OE,Pa as Fd,Pb as $m,Q as RE,Qa as Ud,Qb as Bm,R as IE,Ra as Hd,Rb as Wm,S as NE,Sa as jd,Sb as zm,T as xE,Ta as Vd,Tb as Km,U as bE,Ua as $d,Ub as Xm,V as PE,Va as Bd,Vb as Ym,W as ue,Wa as Wd,Wb as qm,X as _e,Xa as zd,Xb as Jm,Y as fe,Ya as Oe,Yb as Qm,Z as he,Za as P,Zb as Zm,_ as Te,_a as em,_b as el,a as gi,aa as Ae,ab as rm,ac as rl,b as Ai,ba as Ce,bb as nm,bc as nl,c as Ci,ca as Ee,cb as om,cc as ol,d as eg,da as ye,db as im,dc as il,e as tg,ea as Se,eb as sm,ec as sl,f as yi,fa as Sc,fb as am,fc as al,g as pg,ga as Oc,gb as pm,gc as pl,h as cg,ha as Rc,hb as cm,hc as cl,i as dg,ia as Ic,ib as dm,ic as dl,j as mg,ja as Nc,jb as mm,jc as ml,k as lg,ka as xc,kb as lm,kc as ll,l as ug,la as bc,lb as um,lc as ul,m as _g,ma as Pc,mb as _m,mc as _l,n as fg,na as wc,nb as fm,nc as fl,o as Ni,oa as Lc,ob as hm,oc as hl,p as hg,pa as Mc,pb as Tm,pc as Tl,q as Tg,qa as kc,qb as gm,qc as gl,r as gg,ra as vc,rb as Am,rc as Al,s as Ag,sa as Dc,sb as Cm,sc as Cl,t as Cg,ta as GE,tb as Em,tc as El,u as Eg,ua as FE,ub as ym,uc as yl,v as Ra,va as UE,vb as Sm,vc as Sl,w as hp,wa as HE,wb as Om,wc as Ol,x as Tp,xa as Cd,xb as Rm,xc as Rl,y as gp,ya as Ed,yb as Im,yc as Il,z as Ap,za as yd,zb as Nm,zc as Nl}from"./chunks/chunk-QGTUPEU5.js";import{a as le,f as Jp,g as Qp}from"./chunks/chunk-Q47C67TQ.js";import{A as cc,B as dc,C as mc,b as Oa,c as JA,d as qC,e as eE,f as tE,g as rE,h as nE,i as oE,j as Yp,k as iE,l as ic,m as sc,n as ac,o as pc,p as aE,q as pE,r as cE,s as dE,t as mE,u as lE,v as uE,w as _E,x as fE,y as hE,z as TE}from"./chunks/chunk-HIUZVCMN.js";import{$ as ys,$a as lp,$b as gc,$c as Td,Aa as ua,Ab as bp,Ac as Wc,Ba as _a,Bb as Pp,Bc as zc,C as hs,Ca as fa,Cb as wp,Cc as Kc,Da as ha,Db as Lp,Dc as Xc,Ea as Ta,Eb as Mp,Ec as Yc,Fa as ga,Fb as kp,Fc as qc,Ga as Aa,Gb as vp,Gc as Jc,Ha as Ca,Hb as Dp,Hc as Qc,Ia as Ea,Ib as Gp,Ic as Zc,Ja as ya,Jb as Fp,Jc as ed,Ka as RA,Kb as QC,Kc as td,La as IA,Lb as ZC,Lc as rd,Ma as NA,Mb as Up,Mc as nd,Na as xA,Nc as od,Oa as bA,Oc as id,Pa as Ia,Pb as Hp,Pc as sd,Qa as Na,Qb as sE,Qc as ad,Ra as xa,Rb as qp,Rc as pd,Sa as ba,Sb as lc,Sc as cd,Ta as Pa,Tb as uc,Tc as ey,U as pA,Ua as wa,Ub as _c,Uc as dd,V as cA,Va as La,Vb as kE,Vc as md,W as Ts,Wa as Ma,Wb as vE,Wc as ld,X as gs,Xa as ka,Xb as DE,Xc as ud,Y as As,Ya as va,Yb as fc,Yc as _d,Z as Cs,Za as dp,Zb as hc,Zc as fd,_ as Es,_a as mp,_b as Tc,_c as hd,a as Lg,aa as AA,ab as up,ac as Ac,ad as gd,b as Mg,ba as CA,bb as GC,bc as Cc,bd as Ad,c as kg,cb as FC,cc as Ec,cd as Kd,d as vg,da as EA,db as UC,dc as yc,dd as Xd,e as Dg,eb as HC,ec as jE,ed as Yd,f as Gg,fa as yA,fb as jC,fc as VE,fd as qd,g as Fg,ga as SA,gb as _p,gc as Gc,gd as Jd,h as Ug,ha as Ys,hb as fp,hc as Fc,hd as Qd,i as Hg,ia as qs,ib as VC,ic as Uc,id as Zd,j as jg,ja as OA,jb as $C,jc as Hc,k as Vg,ka as Js,kb as BC,kc as jc,l as $g,la as Qs,lb as WC,lc as Vc,m as Bg,ma as Zs,mb as zC,mc as $c,n as Wg,na as ea,nb as KC,nc as Bc,o as zg,oa as ta,ob as XC,oc as $E,p as Kg,pa as ra,pb as YC,pc as BE,q as Xg,qa as na,qc as WE,r as Yg,ra as oa,rb as Ep,rc as zE,s as qg,sa as ia,sb as yp,sc as KE,t as Jg,ta as sa,tb as JC,tc as XE,u as Qg,ua as aa,ub as Sp,uc as YE,v as Zg,va as pa,vb as Op,vc as qE,w as eA,wa as ca,wb as Rp,wc as JE,x as tA,xa as da,xb as Ip,xc as QE,ya as ma,yb as Np,yc as ZE,za as la,zb as xp}from"./chunks/chunk-TF3TPKPR.js";import{A as Ls,Aa as js,B as Ms,Ea as Vs,Fa as $s,Ga as Bs,Ha as Ws,Ia as zs,Ja as Ks,Ka as Xs,L as ks,La as Zp,M as vs,Ma as ec,N as Ds,Na as tc,O as Gs,Oa as rc,Pa as nc,Qa as oc,a as sg,b as ag,c as Si,d as Oi,f as Ri,g as Ii,h as dA,i as Ss,j as Os,k as Rs,m as mA,n as lA,o as uA,p as _A,q as fA,r as hA,s as TA,sa as se,t as Is,ta as ae,u as Ns,ua as pe,v as xs,va as ce,w as bs,wa as Fs,x as Ps,y as gA,ya as Us,z as ws,za as Hs}from"./chunks/chunk-YLBAPY22.js";import{$ as Ki,$a as Da,$b as ep,Aa as MA,Ab as EC,B as xi,Ba as kA,Bb as yC,C as rA,Ca as vA,Cb as SC,D as nA,Da as DA,Db as OC,E as oA,Ea as GA,Eb as RC,F as iA,Fa as FA,Fb as IC,G as sA,Ga as UA,Gb as NC,H as bi,Ha as HA,Hb as xC,I as Pi,Ib as bC,J as wi,Jb as PC,K as Li,Kb as wC,L as Mi,Lb as LC,M as V,Mb as Ha,N as ki,Nb as ja,O as vi,Ob as Va,P as Di,Pb as $a,Q as Gi,Qa as jA,Qb as Ba,R as aA,Ra as VA,Rb as Wa,S as Fi,Sa as $A,Sb as de,T as Ui,Ta as BA,Tb as za,U as Hi,Ua as WA,Ub as Ka,V as ji,Va as zA,Vb as Xa,W as Vi,Wa as KA,Wb as Ya,X as $i,Xa as XA,Xb as qa,Y as Bi,Ya as YA,Yb as Ja,Z as Wi,Za as qA,Zb as Qa,_ as zi,_a as Sa,_b as Za,a as WT,aa as Xi,ab as Ga,ac as tp,b as zT,ba as Yi,bb as Fa,bc as rp,c as KT,ca as qi,cb as Ua,cc as np,d as XT,da as Ji,db as QA,dc as op,e as YT,ea as Qi,eb as ZA,ec as ip,fa as Zi,fb as eC,fc as sp,ga as es,gb as tC,gc as ap,h as qT,ha as ts,hb as rC,hc as me,i as JT,ia as rs,ib as nC,ic as pp,j as Ei,ja as ns,jb as oC,jc as MC,k as QT,ka as os,kb as iC,kc as kC,l as ZT,la as is,lb as sC,lc as vC,m as rg,ma as ss,mb as aC,mc as cp,n as ng,na as as,nb as pC,nc as DC,o as og,oa as ps,ob as cC,oc as wE,p as ig,pa as cs,pb as dC,pc as LE,q as yg,qa as ds,qb as mC,qc as ME,r as Sg,ra as ms,rb as lC,s as Og,sa as ls,sb as uC,t as Rg,ta as us,tb as _C,u as Ig,ua as _s,ub as fC,v as Ng,va as fs,vb as hC,w as xg,wb as TC,x as bg,xa as PA,xb as gC,y as Pg,ya as wA,yb as AC,z as wg,za as LA,zb as CC}from"./chunks/chunk-DL5M5J3V.js";import{$ as Mu,$b as o_,$c as ft,$d as Z_,$e as Wt,$f as Tr,$g as Wh,$h as PT,$i as mn,$j as lo,$k as li,Ac as y_,Ae as Nf,Aj as Fn,Ak as Uo,B as Au,Bc as lt,Be as xf,Bg as Lh,Bh as cT,Bj as Un,Bk as Ho,C as F,Cc as S_,Ce as bf,Cf as th,Cj as Hn,Ck as jo,D as Cu,Dc as ut,Dd as $_,De as Pf,Df as rh,Dg as Mh,Di as oe,Dj as jn,Dk as Vo,E as U,Ea as Uu,Eb as Qu,Ed as B_,Ee as wf,Ef as nh,Eg as kh,Ei as VT,Ej as Vn,Ek as $o,Fa as Hu,Fb as st,Fc as O_,Fd as W_,Fe as Lf,Ff as oh,Fg as vh,Fh as dT,Fi as $T,Fj as $n,Fk as Bo,G as Eu,Ga as ju,Gb as at,Gc as R_,Gd as wt,Ge as Mf,Gf as ih,Gg as Dh,Gh as mT,Gi as BT,Gj as Bn,Gk as Wo,H as yu,Hb as b,Hc as I_,Hd as Lt,He as kf,Hf as ur,Hg as Gh,Hh as lT,Hi as Br,Hj as Wn,Hk as zo,Ib as Zu,Ic as N_,Id as Mt,Ie as vf,If as _r,Ih as uT,Ii as Wr,Ij as zn,Ik as Ko,Ja as et,Jc as x_,Jd as kt,Je as Df,Jh as _T,Ji as zr,Jj as Kn,Jk as Xo,K as Su,Ka as Vu,Kb as e_,Kc as te,Kd as vt,Ke as Gf,Ki as Kr,Kj as Xn,Kk as Yo,La as $u,Lc as b_,Ld as Dt,Le as Ff,Lh as fT,Li as Xr,Lj as Yn,Lk as qo,Ma as Bu,Mb as t_,Mc as P_,Md as Gt,Me as Uf,Mf as sh,Mh as hT,Mi as Yr,Mj as qn,Mk as Jo,N as Ou,Na as Wu,Nc as w_,Nd as Ft,Ne as Hf,Nf as ah,Nh as TT,Ni as qr,Nj as Jn,Nk as Qo,O as Q,Od as Ut,Oe as jf,Of as ph,Oh as gT,Oi as Jr,Oj as Qn,Ok as Zo,P as Z,Pa as tt,Pc as L_,Pd as Ht,Pe as Vf,Pf as ch,Ph as AT,Pi as Qr,Pj as Zn,Pk as ei,Q as We,Qa as rt,Qc as M_,Qd as jt,Qe as $f,Qh as CT,Qi as Zr,Qj as eo,Qk as ti,R as ze,Ra as H,Rd as z_,Re as Bf,Rf as dh,Rh as ET,Ri as en,Rj as to,Rk as ri,S as Ru,Sd as K_,Se as Wf,Sf as mh,Sg as Fh,Sh as yT,Si as tn,Sj as ro,Sk as ni,Td as X_,Te as zf,Tg as Uh,Th as ST,Ti as rn,Tj as no,Tk as oi,U as Iu,Ua as nt,Ue as Kf,Ug as Hh,Uh as OT,Ui as nn,Uj as oo,Uk as ii,V as Nu,Va as ot,Ve as Xf,Vf as lh,Vg as jh,Vh as ne,Vi as on,Vj as io,Vk as si,W as xu,Wd as Y_,We as Yf,Wf as uh,Wg as Vh,Wh as RT,Wi as sn,Wj as so,Wk as ai,X as bu,Xa as it,Xc as k_,Xd as q_,Xe as qf,Xf as _h,Xg as $h,Xh as IT,Xi as an,Xj as ao,Xk as pi,Y as Pu,Yd as J_,Ye as Vt,Yf as fh,Yh as NT,Yi as pn,Yj as po,Yk as ci,Z as wu,Zb as r_,Zc as _t,Ze as $t,Zf as fr,Zh as xT,Zi as cn,Zj as co,Zk as di,_ as Lu,_b as n_,_c as v_,_d as Q_,_e as Bt,_f as hr,_g as Bh,_h as bT,_i as dn,_j as mo,_k as mi,aa as ku,ae as ef,af as zt,ag as gr,ah as Ir,ai as wT,aj as ln,ak as uo,al as ui,ba as vu,bc as i_,bd as D_,be as tf,bf as Kt,bg as Ar,bh as zh,bi as LT,bj as un,bk as _o,bl as _i,c as je,cc as s_,cd as G_,ce as rf,cf as Xt,cg as Cr,ch as Kh,ci as MT,cj as _n,ck as fo,cl as fi,da as Du,dd as F_,de as nf,df as Yt,dg as Er,dh as Xh,di as Pr,dj as fn,dk as ho,dl as hi,e as J,ea as Gu,ec as a_,ed as ht,ee as of,ef as qt,eg as hh,eh as Yh,ei as wr,ej as hn,ek as To,el as Ti,f as Ve,fa as Fu,fc as pt,fd as Tt,fe as sf,ff as Jt,fh as re,fi as Lr,fj as Tn,fk as go,fl as ie,g as $e,ga as Ke,gd as gt,ge as af,gf as Qt,gg as yr,gh as qh,gi as Mr,gj as gn,gk as Ao,h as Be,ha as Xe,hc as ct,hd as At,he as pf,hf as Zt,hg as Sr,hh as Jh,hi as kr,hj as An,hk as Co,ia as Ye,ic as dt,id as Ct,ie as cf,if as er,ig as Or,ih as Qh,ii as vr,ij as Cn,ik as Eo,j as uu,jd as Et,je as df,jf as tr,jh as Zh,jj as En,jk as yo,k as _u,kd as yt,ke as mf,kf as rr,kg as Th,ki as Dr,kj as yn,kk as So,l as fu,lb as zu,lc as p_,ld as U_,le as lf,lf as nr,lg as gh,lh as eT,li as Gr,lj as Sn,lk as Oo,ma as qe,mb as j,mc as c_,md as H_,me as uf,mf as or,mg as Ah,mh as tT,mi as Fr,mj as On,mk as Ro,nb as ee,nc as d_,ne as _f,nf as ir,ng as Ch,nh as rT,ni as Ur,nj as Rn,nk as Io,oa as Je,ob as Ku,oc as m_,od as St,oe as ff,of as sr,og as Rr,oh as nT,oi as Hr,oj as In,ok as No,pa as Qe,pb as Xu,pc as l_,pd as Ot,pe as hf,pf as ar,pg as Eh,ph as Nr,pi as jr,pj as Nn,pk as xo,qa as Ze,qb as Yu,qc as u_,qd as j_,qe as Tf,qf as pr,qg as yh,qh as xr,qi as Vr,qj as xn,qk as bo,rb as qu,rc as __,rd as Rt,re as gf,rf as cr,rg as Sh,rh as br,ri as $r,rj as bn,rk as Po,s as hu,sb as g,sc as mt,sd as It,se as Af,sf as dr,sg as Oh,sh as oT,si as kT,sj as Pn,sk as wo,tb as Ju,tc as f_,td as V_,te as Cf,tf as mr,tg as Rh,ti as vT,tj as wn,tk as Lo,uc as h_,ud as Nt,ue as Ef,uf as lr,ug as Ih,uh as iT,ui as DT,uj as Ln,uk as Mo,v as Tu,vc as T_,vd as xt,ve as yf,vf as Jf,vg as Nh,vh as sT,vi as GT,vj as Mn,vk as ko,wc as g_,wd as bt,we as Sf,wf as Qf,wg as xh,wh as aT,wi as FT,wj as kn,wk as vo,x as gu,xc as A_,xd as Pt,xe as Of,xg as bh,xi as UT,xj as vn,xk as Do,yc as C_,ye as Rf,yf as Zf,yg as Ph,yi as HT,yj as Dn,yk as Go,zc as E_,ze as If,zf as eh,zg as wh,zh as pT,zi as jT,zj as Gn,zk as Fo}from"./chunks/chunk-DEDU3DG7.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 f="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 Ie(e){if(!(typeof e!="object"||e===null||Object.isFrozen(e))){for(let t of Object.values(e))Ie(t);Object.freeze(e)}}function C(e){if(e.schema!==f)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 Ie(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:f,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:f,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:f,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:f,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:f,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 Bl(){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 Re=new WeakMap;function Ne(e,t){if(e===0)return[];let r=Re.get(t);r===void 0&&(r=t.edge_kind_mix.flatMap(o=>Array.from({length:o.weight},()=>o.kind)),Re.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 zl(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),a=t%o,i=Math.floor(t/o),s=0,p=1;for(let q=0;q<e.hierarchy_depth;q+=1)s=Math.min(Number.MAX_SAFE_INTEGER,s+p),p=Math.min(Number.MAX_SAFE_INTEGER,p*e.hierarchy_fanout);let c=i%s,m=i-c,u=c===0?void 0:a+(m+Math.floor((c-1)/e.hierarchy_fanout))*o,d=Date.UTC(2026,0,1),x=e.age_span_days*864e5,He=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:a,timestamp:He,author:`pm-corpus-agent-${(t+n)%Math.min(e.author_cardinality,r)}`,history_entry_count:e.history_entries_per_item,dependency_kinds:Ne(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 $=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,Ne(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,,s]of this.annotationFields){let p=Math.floor(this.itemCount/100),c=this.itemCount%100,m=p*s+Math.max(0,s+c-100),u=p*s+Math.min(s,c),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 s=this.edgeKinds[i]??0,p=this.expectedEdgeKinds[i]??0;s!==p&&n.push(`edge_kind:${i}:${s}!=${p}`)}let a=[...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:a.length===0,mismatches:a}}};function xe(e){return new $(e)}function Kl(e,t){let r=xe(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]="d19cfa31-a02f-53a7-8685-5d169d6e051d")}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 Xl(){let e=H(process.cwd(),process.env.PM_PATH);await re(e,(t,r)=>ne(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 be="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 Pe(e){if(e.schema!==be)throw new Error(`Unsupported workspace recipe schema: ${e.schema}`);let t=Q(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 we(e,t){let r=Pe(e);return Z(r,t)}async function Yl(e,t){return we(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 ql(){await oe()}import y from"node:fs";import W 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]="611e9aba-d08e-5c1a-89c9-c7fda0cc9bc9")}catch{}})();var Le=300*1e3,Jl=3;function HS(e){return(e?.trim()||"development").replace(/[^a-zA-Z0-9._-]/g,"_").replace(/^\./,"_")}function jS(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=W.join(e,r);y.mkdirSync(n,{recursive:!0});let o=new Date;y.utimesSync(n,o,o);let a=y.readdirSync(e).filter(c=>c!==r).flatMap(c=>{try{return[{name:c,mtimeMs:y.statSync(W.join(e,c)).mtimeMs}]}catch(m){if(m instanceof Error&&"code"in m&&J(m))return[];throw m}}).sort((c,m)=>m.mtimeMs-c.mtimeMs||c.name.localeCompare(m.name)),i=a.filter(c=>o.getTime()-c.mtimeMs<Le),s=Math.max(0,Jl-1-i.length),p=a.filter(c=>o.getTime()-c.mtimeMs>=Le).slice(s).map(c=>c.name).sort((c,m)=>c.localeCompare(m));for(let c of p)y.rmSync(W.join(e,c),{recursive:!0,force:!0,maxRetries:3,retryDelay:50});return{retained:r,removed:p}}import Me 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 v="@unbrained/pm-cli",Ql=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"]),ke=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 Zl={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 a=r[o]-n[o];if(a!==0)return Math.sign(a)}return 0}function K(e){try{let t=JSON.parse(Me.readFileSync(e,"utf8"));return typeof t=="object"&&t!==null&&!Array.isArray(t)?t:null}catch{return null}}function eu(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[v],a=typeof o=="string"?o.trim():"",i=/^[<!]/u.test(a)?void 0:a.match(X)?.[0];i&&t.push(i)}return t.sort((r,n)=>L(n,r))[0]}function tu(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 ru(e,t){try{let r=Me.readFileSync(M.join(e,t),"utf8").split(/\r?\n/u),n=r.findIndex(p=>p.includes(v));if(n<0)return;let o=r[n].match(/^\s*/u)[0].length,a=[r[n]];for(let p=n+1;p<r.length;p+=1){let c=r[p],m=c.trim(),u=c.match(/^\s*/u)[0].length;if(m.length>0&&u<=o)break;a.push(c)}return a.join(`
2
+ `).match(/^\s*version(?::\s*|\s+)["']?(\d{4}\.\d{1,2}\.\d{1,2}(?:-\d+)?)/mu)?.[1]??a[0].match(X)?.[0]}catch{return}}function nu(e){let t=[],r=K(M.join(e,"package.json")),n=r?eu(r):void 0;n&&t.push({version:n,source:"package.json"});let a=K(M.join(e,"node_modules","@unbrained","pm-cli","package.json"))?.version;typeof a=="string"&&k(a)&&t.push({version:a,source:"installed-package"});let i=tu(e);i&&k(i)&&t.push({version:i,source:"package-lock.json"});for(let s of["pnpm-lock.yaml","yarn.lock"]){let p=ru(e,s);p&&t.push({version:p,source:s})}return t}function ve(e){for(let t=0;t<e.length;t+=1){let r=e[t];if(ke.has(r)){t+=1;continue}if(!r.startsWith("-"))return{command:r.toLowerCase(),index:t}}}function ou(e){let t=ve(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 s=e[i];if(ke.has(s)){i+=1;continue}s.startsWith("-")||o.push(s.toLowerCase())}let a=Zl[r];return a?a(e,o):Ql.has(r)}function iu(e){let t=ve(e.argv)?.command,r=ou(e.argv),o=nu(e.projectRoot).filter(s=>L(s.version,e.executingVersion)!==null).sort((s,p)=>L(p.version,s.version))[0],a=o!==void 0&&L(e.executingVersion,o.version)===-1,i=a&&!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 ${v} ${o.version}.`,"Install the project dependencies with its declared package manager if the local executable is missing."]}:void 0;return{compatible:!r||!a||e.allowStale===!0,executing_version:e.executingVersion,...o?{project_version:o.version,source:o.source}:{},...t?{command:t}:{},mutating:r,stale:a,...i?{warning:i}:{},override_applied:a&&r&&e.allowStale===!0}}function KS(e){let t=iu(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 ${v} ${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 su}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(),a=e.edges(),i=t.list();return Object.freeze({version:Y,fingerprint:su("sha256").update(b({nodes:o,edges:a,kinds:i})).digest("hex"),created_at:new Date(n).toISOString(),nodes:o,edges:a,kinds:i})}function au(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function N(e){if(!au(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 _(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 D(e,t){let r=h(t.workspace,"workspace"),n=N(t.snapshot).snapshot,o=await _(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 _(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 pu(e,t={}){let r=e.map(N),n=new Map;for(let i of r)for(let s of i.snapshot.kinds){let p=n.get(s.kind);if(p&&b(p)!==b(s))throw new TypeError(`Conflicting federated relationship kind: ${s.kind}`);n.set(s.kind,s)}let o=new j([...n.values()].sort((i,s)=>i.kind.localeCompare(s.kind))),a=new g(new Set(r.flatMap(i=>[...i.snapshot.nodes])),r.flatMap(i=>[...i.snapshot.edges]),o);return O(a,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 cu(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(),a=(e.idPrefix??"node").trim();if(!o||!a)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 s=0;s<t;s+=1)yield`${a}-${s}`}},edges:{*[Symbol.iterator](){if(n!=="disconnected")for(let s=r;s<t;s+=r)yield{source:`${a}-${n==="star"?0:s-r}`,target:`${a}-${s}`,kind:o}}}}}function T(e,t){if(!e)throw new Error(`Relationship graph adapter conformance: ${t}`)}async function Ge(e,t={}){let r=t.workspace?.trim()||"pm-graph-conformance",n=ee(),o=O(new g(["a","b"],[{source:"a",target:"b",kind:"related"}],n),n,{createdAt:"2026-01-01T00:00:00.000Z"}),a=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 _(e,{workspace:r})===null,"workspace must start empty"),i.push({name:"empty-read",passed:!0});let s=await D(e,{workspace:r,snapshot:o});T(s.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 _(e,{workspace:r}))?.snapshot.nodes.length===2,"reads must not mutate stored state"),i.push({name:"read-isolation",passed:!0}),T((await D(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:a,expected_fingerprint:o.fingerprint}),T((await _(e,{workspace:r}))?.snapshot.fingerprint===a.fingerprint,"replacement must become visible"),i.push({name:"replacement-visibility",passed:!0});let c=!1;try{await e.replace({workspace:r,snapshot:o,expected_fingerprint:o.fingerprint})}catch{c=!0}return T(c,"stale compare-and-swap must fail"),i.push({name:"stale-cas",passed:!0}),e.clear&&(await e.clear({workspace:r,expected_fingerprint:a.fingerprint}),T(await _(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 du(e){return Ge(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 Fe}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 Ue(e,t){if(typeof e!="string"||e.trim().length===0)throw new TypeError(`Relationship backfill ${t} must be non-empty`);return e.trim()}function gO(e,t){let r=Ue(t.migrationId,"migrationId"),n=Ue(t.author,"author"),o=Date.parse(t.timestamp);if(!Number.isFinite(o))throw new TypeError("Relationship backfill timestamp must be valid");let a=new Date(o).toISOString(),i=V(e,void 0,t.registry),s=i.graph.nodes(),p=i.graph.edges().map(d=>{let x=Fe("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:a,reason:`Backfill ${r} from legacy item metadata`})}),c=Fe("sha256").update(JSON.stringify({migrationId:r,nodes:s,events:p})).digest("hex"),m=new Set([...t.existingEventIds??[]].filter(d=>typeof d=="string").map(d=>d.trim()).filter(Boolean)),u=p.filter(d=>!m.has(d.eventId));return Object.freeze({migration_id:r,fingerprint:c,nodes:s,events:Object.freeze(u),edge_count:p.length,skipped_existing_count:p.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]="55318c8e-1fbd-5abd-b18f-f0cc1f81dd5c")}catch{}})();function CO(e,t){let r=e.flatMap(i=>(i.owned_states??[]).map(s=>({contract:i,state:s}))),n=[],o=new Map;for(let i of t){if(o.has(i.probe_id)){n.push({kind:"duplicate_probe",probe_id:i.probe_id,detail:`Observation ${i.probe_id} was supplied more than once.`});continue}o.set(i.probe_id,i)}let a=new Set(r.map(({state:i})=>i.probe_id));for(let{contract:i,state:s}of r){let p=o.get(s.probe_id);if(!p){n.push({kind:"missing_probe",probe_id:s.probe_id,detail:`No entrypoint observation was recorded for ${i.code}.`});continue}p.code!==i.code&&n.push({kind:"wrong_error_code",probe_id:s.probe_id,detail:`Expected ${i.code}; observed ${p.code}.`}),p.exit_class!==s.expected_exit_class&&n.push({kind:"wrong_exit_class",probe_id:s.probe_id,detail:`Expected ${s.expected_exit_class}; observed ${p.exit_class}.`}),s.entrypoints.includes(p.entrypoint)||n.push({kind:"wrong_entrypoint",probe_id:s.probe_id,detail:`Expected one of ${s.entrypoints.join(", ")}; observed ${p.entrypoint}.`})}for(let i of t)a.has(i.probe_id)||n.push({kind:"undeclared_probe",probe_id:i.probe_id,detail:`Observation ${i.probe_id} has no catalog declaration.`});return n.sort((i,s)=>i.probe_id!==s.probe_id?i.probe_id.localeCompare(s.probe_id):i.kind.localeCompare(s.kind)),{ok:n.length===0,declared_probe_count:r.length,observed_probe_count:t.length,findings:n}}(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 yO(e){return e}function SO(e){return e}function OO(e){return e}function RO(e){return e}function IO(e){return e}function NO(e){return e}function xO(e){return e}function bO(e){return e}function PO(e){return e}function wO(e){return e}function LO(e){return e}function MO(e){return e}function kO(e){return e}function vO(e){return{handled:!0,result:e}}function DO(){return{handled:!1}}function GO(e){return e}function FO(e){return e}function UO(e){return e}function HO(e){return e}function jO(e){return e}function VO(e){return e}function $O(e){return e}function BO(e){return e}function WO(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 mu(e={},t={}){return new P(t).extension(void 0,{...e,migrate:!0})}function lu(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]="8e8c2de1-7bff-57c6-8e71-9c27e9e76eaa")}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]="8664ab01-dc47-5344-b2d7-9ac315e8a74b")}catch{}})();export{PA as ACTIONABILITY_ORDERING_KINDS,qr as ACTIVITY_COMMANDER_STRING_OPTION_CONTRACTS,Wo as ACTIVITY_FLAG_CONTRACTS,wt as AGENT_PROVENANCE_DIMENSIONS,bn as AGGREGATE_FLAG_CONTRACTS,ho as APPEND_FLAG_CONTRACTS,IA as ASSURANCE_ACTIONS,NA as ASSURANCE_DECLARATION_KINDS,Lg as ASSURANCE_DOCUMENT_VERSION,Do as ASSURANCE_FLAG_CONTRACTS,Mg as ASSURANCE_GATE_TRIGGERS,qg as ASSURANCE_PRESET_IDS,ht as BASELINE_ITEM_FORMAT_VERSION,zA as BRIEF_LIST_FIELDS,E as BUILTIN_CORPUS_SHAPES,Lt as BUILTIN_HARNESS_SIGNAL_DESCRIPTORS,Ke as BUILTIN_ITEM_TYPE_VALUES,_e as BUILTIN_PROFILES,zu as BUILTIN_RELATIONSHIP_KINDS,Kr as CALENDAR_COMMANDER_STRING_OPTION_CONTRACTS,Bo as CALENDAR_FLAG_CONTRACTS,To as CLAIM_FLAG_CONTRACTS,di as CLOSE_ACTION_OPTION_KEYS,_o as CLOSE_FLAG_CONTRACTS,fo as CLOSE_MANY_FLAG_CONTRACTS,So as CLOSE_TASK_FLAG_CONTRACTS,Pn as COMMENTS_FLAG_CONTRACTS,Uu as COMMON_MUTATION_COMMAND_OPTION_KEYS,ni as COMPLETION_FLAG_CONTRACTS,Ze as CONFIDENCE_TEXT_VALUES,Wn as CONFIG_FLAG_CONTRACTS,Xr as CONTEXT_COMMANDER_STRING_OPTION_CONTRACTS,oC as CONTEXT_EVALUATION_METRIC_NAMES,Ko as CONTEXT_FLAG_CONTRACTS,de as CONTEXT_OUTPUT_VALUES,cC as CONTEXT_PACKING_PROFILES,eC as CONTEXT_RELEVANCE_SERVICE,QA as CONTEXT_RELEVANCE_SIGNAL_NAMES,TC as CONTEXT_SIGNAL_SET_VERSION,hC as CONTEXT_SIGNAL_STORE_FORMAT_VERSION,gC as CONTEXT_SIGNAL_STORE_WARNING_DETAILS,ri as CONTRACTS_FLAG_CONTRACTS,Ho as COPY_FLAG_CONTRACTS,en as CREATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,rn as CREATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,tn as CREATE_COMMANDER_STRING_OPTION_CONTRACTS,hu as CREATE_DIRECT_CLOSE_REASON_DEFAULT,Go as CREATE_FLAG_CONTRACTS,th as CURRENT_HISTORY_ITEM_HASH_VERSION,Tt as CURRENT_ITEM_FORMAT_VERSION,yC as ContextSignalStore,mC as ContextUsageValidationError,Rg as DEFAULT_AUTHOR_IDENTITY_VOCABULARY,tE as DEFAULT_CHILD_SAMPLE_LIMIT,WA as DEFAULT_COMPACT_LIST_FIELDS,Zh as DEFAULT_DERIVED_INDEX_MINIMUM_ITEMS,dc as DEFAULT_EVAL_QUERIES_RELATIVE_PATH,GC as DEFAULT_TERMINAL_TRANSITION_POLICY,IC as DEFAULT_WORKSPACE_MEMORY_MINIMUM_ITEMS,Ao as DELETE_FLAG_CONTRACTS,qe as DEPENDENCY_KIND_VALUES,qo as DEPS_FLAG_CONTRACTS,kn as DOCS_FLAG_CONTRACTS,Mo as DUPLICATES_FLAG_CONTRACTS,Qo as EVAL_FLAG_CONTRACTS,sc as EVAL_QUERY_SET_CONTRACT,ac as EVAL_QUERY_SET_EXAMPLE,ic as EVAL_QUERY_SET_SCHEMA_ID,zo as EVENTS_FLAG_CONTRACTS,Ro as EVENT_FLAG_CONTRACTS,Br as EXECUTABLE_COMMAND_ALIASES,F as EXIT_CODE,ro as EXTENSION_ACTIVATE_FLAG_CONTRACTS,to as EXTENSION_ADOPT_ALL_FLAG_CONTRACTS,co as EXTENSION_ADOPT_FLAG_CONTRACTS,pg as EXTENSION_CAPABILITIES,fu as EXTENSION_CAPABILITY_CONTRACT,uu as EXTENSION_CAPABILITY_CONTRACT_VERSION,_u as EXTENSION_CAPABILITY_LEGACY_ALIASES,pt as EXTENSION_CAPABILITY_REGISTRATION_SURFACES,po as EXTENSION_CATALOG_FLAG_CONTRACTS,no as EXTENSION_DEACTIVATE_FLAG_CONTRACTS,eo as EXTENSION_DESCRIBE_FLAG_CONTRACTS,ao as EXTENSION_DOCTOR_FLAG_CONTRACTS,Zn as EXTENSION_EXPLORE_FLAG_CONTRACTS,zn as EXTENSION_FLAG_CONTRACTS,Xn as EXTENSION_INIT_FLAG_CONTRACTS,Jn as EXTENSION_INSTALL_FLAG_CONTRACTS,io as EXTENSION_MANAGE_FLAG_CONTRACTS,oo as EXTENSION_MIGRATE_FLAG_CONTRACTS,cg as EXTENSION_POLICY_MODES,dg as EXTENSION_POLICY_SURFACES,so as EXTENSION_RELOAD_FLAG_CONTRACTS,lg as EXTENSION_SANDBOX_PROFILES,Kn as EXTENSION_SCOPE_FLAG_CONTRACTS,mg as EXTENSION_TRUST_MODES,Qn as EXTENSION_UNINSTALL_FLAG_CONTRACTS,rA as EXTERNAL_DEPENDENCY_SOURCE_KIND,nA as EXTERNAL_DEPENDENCY_SOURCE_KIND_ALIAS,Mn as FILES_FLAG_CONTRACTS,jo as FOCUS_FLAG_CONTRACTS,wo as GC_FLAG_CONTRACTS,Xo as GET_FLAG_CONTRACTS,Nn as GLOBAL_FLAG_CONTRACTS,ns as GRAPH_DURABLE_CACHE_MIN_ITEMS,rs as GRAPH_DURABLE_CACHE_VERSION,Jo as GRAPH_FLAG_CONTRACTS,Yt as GRAPH_SUBCOMMAND_VALUES,Yo as GUIDE_FLAG_CONTRACTS,ko as HEALTH_FLAG_CONTRACTS,Un as HISTORY_AUTHOR_ACKNOWLEDGE_FLAG_CONTRACTS,pA as HISTORY_AUTHOR_ATTRIBUTION_BASELINE,FE as HISTORY_COMPACT_BULK_DEFAULT_MIN_ENTRIES,Hn as HISTORY_COMPACT_FLAG_CONTRACTS,vn as HISTORY_FLAG_CONTRACTS,Gn as HISTORY_REDACT_FLAG_CONTRACTS,Fn as HISTORY_REPAIR_FLAG_CONTRACTS,Zp as INIT_AGENT_GUIDANCE_MODE_VALUES,Bn as INIT_FLAG_CONTRACTS,mo as INSTALL_FLAG_CONTRACTS,Qe as ISSUE_SEVERITY_VALUES,Uo as ITEM_COMPLETE_FLAG_CONTRACTS,EE as ITEM_LATEST_TIMESTAMP_FIELDS,gu as ITEM_METADATA_KEY_ORDER,Fo as ITEM_MUTATE_FLAG_CONTRACTS,Xe as ITEM_TYPE_VALUES,CE as ITEM_UNION_COLLECTION_FIELDS,EC as JsonFileContextSignalStoreAdapter,Ln as LEARNINGS_FLAG_CONTRACTS,Np as LINKED_TEST_ENV_NAME_PATTERN,xp as LINKED_TEST_PM_CONTEXT_MODE_VALUES,Ip as LINKED_TEST_PROTECTED_ENV_KEYS,Wr as LIST_COMMANDER_STRING_OPTION_CONTRACTS,KA as LIST_COMMAND_DEFAULT_PROJECTIONS,_g as LIST_FILTER_EXTENSION_FLAG_DEFINITIONS,xn as LIST_FILTER_FLAG_CONTRACTS,$A as LIST_SORT_FIELDS,BA as LIST_SORT_ORDER_VALUES,eE as MAX_CHILD_PROJECTION_ITEMS,Oo as MEET_FLAG_CONTRACTS,OE as MERGE_DRIVER_ARTIFACT_VALUES,Dn as MERGE_FLAG_CONTRACTS,I as MemoryRelationshipGraphAdapter,Yr as NEXT_COMMANDER_STRING_OPTION_CONTRACTS,ei as NEXT_FLAG_CONTRACTS,pp as NEXT_OUTPUT_VALUES,wn as NOTES_FLAG_CONTRACTS,Yn as PACKAGE_FLAG_CONTRACTS,qn as PACKAGE_INIT_FLAG_CONTRACTS,yo as PAUSE_TASK_FLAG_CONTRACTS,ci as PLAN_CREATE_METADATA_PARAMETER_KEYS,$n as PLAN_FLAG_CONTRACTS,$p as PLAN_SHOW_DEPTH_VALUES,Vp as PLAN_SUBCOMMANDS,Bp as PLAN_TEMPLATE_NAMES,gi as PM_CLI_EXPECTED_ERROR_NAME,Jt as PM_CLI_ONLY_TOOL_ACTION_WAIVERS,$C as PM_COMMAND_EXIT_CONTRACTS,VC as PM_COMMAND_EXIT_OUTCOME_CONTRACTS,dr as PM_COMMAND_OUTPUT_BUDGET_CONTRACTS,qE as PM_COMMAND_OUTPUT_ENVELOPE_CONTRACTS,Gc as PM_COMMAND_VISIBILITY_CONTRACTS,hg as PM_CONTEXT_INTENTS_FILE,jf as PM_CONTEXT_INTENT_CONTRACTS,Xt as PM_CORE_COMMAND_NAMES,f as PM_CORPUS_SHAPE_SCHEMA,KE as PM_ERROR_CODE_CATALOG,$E as PM_ERROR_CODE_EXIT_CLASS_CONTRACTS,Vt as PM_EXTENSION_CAPABILITY_CONTRACTS,qt as PM_EXTENSION_PACKAGE_ACTION_SUBCOMMANDS,Bt as PM_EXTENSION_POLICY_MODE_CONTRACTS,Kt as PM_EXTENSION_POLICY_SURFACE_CONTRACTS,zt as PM_EXTENSION_SANDBOX_PROFILE_CONTRACTS,$t as PM_EXTENSION_SERVICE_NAME_CONTRACTS,Wt as PM_EXTENSION_TRUST_MODE_CONTRACTS,fA as PM_GITATTRIBUTES_END,_A as PM_GITATTRIBUTES_START,TA as PM_GITATTRIBUTES_V2_END,hA as PM_GITATTRIBUTES_V2_START,Oi as PM_GITIGNORE_END,Si as PM_GITIGNORE_START,$c as PM_MCP_PROMPT_CONTRACTS,Vc as PM_MCP_RESOURCE_CONTRACTS,Hc as PM_MCP_TOOL_COMMAND_CONTRACTS,tf as PM_MODE_PAIRED_OUTPUT_PROJECTION_CONTRACTS,Pr as PM_MUTATION_ACTION_CONTRACTS,sr as PM_OUTPUT_BUDGET_CLASSES,ir as PM_OUTPUT_DEGRADATION_STEPS,XE as PM_OUTPUT_ENVELOPE_KINDS,ae as PM_PACKAGE_CONVENTIONAL_RESOURCE_ROOTS,se as PM_PACKAGE_RESOURCE_KINDS,Ti as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA,fi as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA_VERSION,Lf as PM_READ_OUTPUT_COMPOSITION_OPTION_FLAGS,bf as PM_READ_OUTPUT_DIMENSIONS,wf as PM_READ_OUTPUT_OPTION_FLAGS,Of as PM_READ_OUTPUT_SESSION_MAX_SEEN_ITEM_IDS,Sf as PM_READ_OUTPUT_SESSION_MIN_TOKENS,Pf as PM_READ_OUTPUT_SURFACES,Mf as PM_READ_OUTPUT_SURFACE_CONTRACTS,ef as PM_READ_ROW_CONTRACTS,Z_ as PM_READ_ROW_JQ_SELECTOR,BC as PM_SUCCESS_EXIT_CODES,Qt as PM_TOOL_ACTIONS,mi as PM_TOOL_ACTION_PARAMETER_CONTRACTS,hi as PM_TOOL_PARAMETERS_SCHEMA,_i as PM_TOOL_PARAMETERS_SCHEMA_MAJOR,ui as PM_TOOL_PARAMETERS_SCHEMA_VERSION,ai as PM_TOOL_RESERVED_CUSTOM_FIELD_PROPERTIES,be as PM_WORKSPACE_RECIPE_SCHEMA,Vn as PROFILE_FLAG_CONTRACTS,Ee as PROFILE_LINT_CODES,Ce as PROFILE_LINT_DIMENSIONS,ue as PROFILE_NAMES,xc as PROFILE_SUBCOMMANDS,U as PmCliError,P as PmClient,Tf as QUERY_CURSOR_CONTRACT,uo as REINDEX_FLAG_CONTRACTS,Xh as REINDEX_LOCK_ID,Y as RELATIONSHIP_GRAPH_SNAPSHOT_VERSION,Co as RELEASE_FLAG_CONTRACTS,Io as REMIND_FLAG_CONTRACTS,te as RESERVED_ITEM_FIELD_NAMES,go as RESTORE_FLAG_CONTRACTS,Je as RISK_VALUES,eg as RelationshipEventLog,tg as RelationshipEventStore,g as RelationshipGraph,j as RelationshipKindRegistry,jn as SCHEMA_FLAG_CONTRACTS,zr as SEARCH_COMMANDER_STRING_OPTION_CONTRACTS,fg as SEARCH_EXTENSION_FLAG_DEFINITIONS,ti as SEARCH_FLAG_CONTRACTS,Ba as SEMANTIC_ATTRIBUTION_LIMITS,Au as SETTINGS_DEFAULTS,fc as SNAPSHOT_SCHEMA,mA as SOURCE_CONTEXT_ACCESS_ENV,lA as SOURCE_CONTEXT_WRITE_OVERRIDE_ENV,Eo as START_TASK_FLAG_CONTRACTS,Lo as STATS_FLAG_CONTRACTS,Ye as STATUS_VALUES,In as SUBCOMMAND_GLOBAL_FLAG_CONTRACTS,rh as SUPPORTED_HISTORY_ITEM_HASH_VERSIONS,Y_ as SUPPRESS_HOST_OUTPUT_MARKER,bo as TELEMETRY_FLAG_CONTRACTS,dd as TELEMETRY_SUBCOMMANDS,xo as TEST_ALL_FLAG_CONTRACTS,No as TEST_FLAG_CONTRACTS,Po as TEST_RUNS_FLAG_CONTRACTS,id as TEST_RUN_MEASUREMENT_LIMIT,Cn as TOOL_ACTIVITY_OPTION_CONTRACTS,pn as TOOL_AGGREGATE_OPTION_CONTRACTS,hn as TOOL_BULK_MUTATION_FILTER_OPTION_CONTRACT_SOURCE,An as TOOL_CALENDAR_OPTION_CONTRACTS,gn as TOOL_CLOSE_MANY_FILTER_OPTION_CONTRACTS,En as TOOL_CONTEXT_OPTION_CONTRACTS,un as TOOL_CREATE_OPTION_CONTRACTS,ln as TOOL_CREATE_OPTION_CONTRACT_SOURCE,yn as TOOL_DEPS_OPTION_CONTRACTS,Sn as TOOL_GRAPH_OPTION_CONTRACTS,an as TOOL_LIST_FILTER_OPTION_CONTRACTS,cn as TOOL_SEARCH_FILTER_OPTION_CONTRACTS,mn as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACTS,dn as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACT_SOURCE,Tn as TOOL_UPDATE_MANY_FILTER_OPTION_CONTRACTS,fn as TOOL_UPDATE_OPTION_CONTRACTS,_n as TOOL_UPDATE_OPTION_CONTRACT_SOURCE,Tu as TYPE_TO_FOLDER,ku as UNKNOWN_SUBCOMMAND_COMPATIBILITY_CODES,nn as UPDATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,sn as UPDATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,on as UPDATE_COMMANDER_STRING_OPTION_CONTRACTS,Vo as UPDATE_FLAG_CONTRACTS,$o as UPDATE_MANY_FLAG_CONTRACTS,lo as UPGRADE_FLAG_CONTRACTS,vo as VALIDATE_FLAG_CONTRACTS,Zo as WORKSPACE_FLAG_CONTRACTS,hr as WORKSPACE_HISTORY_ID,vi as WorkspaceGraphCache,sg as WorkspaceTransactionInterruptedError,Ei as _testOnly,JA as _testOnlyAggregateCommand,Qp as _testOnlyConfigCommand,iE as _testOnlyGetCommand,qs as _testOnlyHealthCommand,nc as _testOnlyInit,ec as _testOnlyInitAgentGuidance,yy as _testOnlyItemTransaction,ME as _testOnlyMutationEvents,kC as _testOnlyNextCommand,TE as _testOnlySearchCommand,JC as _testOnlySimilarity,Sc as _testOnlyTemplates,Ea as _testOnlyValidateCommand,eA as acceptAssuranceProposals,ys as acknowledgeUnknownAuthorHistoryEvents,Es as acknowledgeUnknownAuthorHistoryEventsFromTransport,eT as acquireItemMetadataDerivedIndexLock,fr as acquireLock,ky as activateExtensionForTest,i_ as activateExtensions,Pt as agentSessionEnvironment,im as aggregate,Xc as analyzeAgentProvenanceDescriptorCoverage,ng as analyzeGraphImpact,og as analyzeKnowledgeGraph,XC as analyzePmCommandExitConformance,Zt as analyzePmToolActionParity,IE as analyzeReconciliationDiscard,rg as analyzeRelationshipExecution,qi as analyzeRelationshipSchedule,Pl as analyzeSdkActionCoverage,ie as analyzeSdkCliParameterCompleteness,Tm as append,_r as appendHistoryEntry,Ar as appendWorkspaceAuditEvent,gr as appendWorkspaceHistoryChange,yh as applyAcceptanceCriteriaMutations,Qg as applyAssurancePreset,vl as applyBootstrapPagerPolicy,zf as applyContextIntentProjection,ap as applyContextTagProjection,XA as applyFilterValueEcho,KT as applyHistoryPatch,Vl as applyInvocationAuthorOverride,ra as applyPathMigrations,Ff as applyReadOutputDimensions,If as applyReadOutputSessionReferences,w_ as applyRegisteredItemFieldDefaultsAndValidation,sa as applyStandaloneNote,Bs as applyStoredExtensionMigrationState,Oh as applyTagRemovals,jC as applyTerminalOrderingPolicy,aa as artifactKey,Ou as asRecordClone,Su as asRecordOrNull,V as assembleWorkspaceRelationshipGraph,_S as assertExtensionBlueprint,uS as assertExtensionCapabilityUsage,Yy as assertExtensionDeactivated,TS as assertExtensionManifestCompatible,hS as assertExtensionManifestMatchesBlueprint,gS as assertExtensionPreflight,UE as assertHistoryCompactTarget,xE as assertHistoryRepairTarget,na as assertLinkedArtifactMutationIsUnambiguous,du as assertMemoryRelationshipGraphAdapterConformance,Nh as assertNoUnknownCsvKeys,qy as assertPackageManifest,Ch as assertParentReferenceIsNotSelf,fS as assertProjectProfile,KS as assertProjectRuntimeCompatibility,rf as assertProjectionModeChoice,Jy as assertRegisteredCommandContract,aS as assertRegisteredCommandOverride,nS as assertRegisteredExporter,Qy as assertRegisteredFlags,Zy as assertRegisteredHook,rS as assertRegisteredImporter,oS as assertRegisteredItemField,iS as assertRegisteredItemType,lS as assertRegisteredMigration,pS as assertRegisteredParserOverride,cS as assertRegisteredPreflightOverride,sS as assertRegisteredProfile,dS as assertRegisteredRendererOverride,eS as assertRegisteredSearchProvider,mS as assertRegisteredServiceOverride,tS as assertRegisteredVectorStoreAdapter,qu as assertRelationshipEdgeAllowed,Ge as assertRelationshipGraphAdapterConformance,kg as assuranceAssertionUpdateIsLoosening,Yf as attachContextIntentReceipt,cf as attachOutputOmissionReceipt,Jf as attachOutputTokenAccounting,qf as attachReadOutputContracts,Nf as attachReadOutputSessionReceipt,Ps as auditMergeAttributeFence,gA as auditMergeDriverConfiguration,es as auditWorkspaceRelationshipGraph,Nt as boundAgentEpisodeIdentity,yf as boundReadOutputRows,np as buildChildrenByParent,aE as buildCompactSearchFilterSummary,YA as buildContentFilterEcho,CC as buildContextSignalSnapshot,zl as buildCorpusShapeItemPlan,Hs as buildExtensionDescribeResult,qA as buildGovernanceMissingFilterEcho,Fh as buildInvalidTypeError,rE as buildItemChildrenRollup,Cy as buildItemCompletionMutations,ZA as buildItemContextRelevanceCandidates,sT as buildItemNotFoundError,oE as buildItemSchedule,xs as buildMergeAttributePatterns,li as buildPmActionToolInputSchema,aA as buildRelationshipContext,dT as buildSearchCorpus,lT as buildSemanticCorpusInput,gT as buildVectorizationEmbeddingIdentity,AT as buildVectorizationEmbeddingMetadata,pE as buildVerboseSearchFilters,NC as buildWorkspaceMemorySnapshot,It as canonicalDocument,Hu as canonicalizeCommandOptionKey,Ku as canonicalizeRelationshipKind,Ly as checkExtensionManifestCompatibility,Zm as claim,el as claimNext,cA as classifyHistoryAuthorEvent,kE as classifyHostEnvironmentFault,hE as classifyImplicitSemanticFallbackReason,Ct as classifyItemFormatVersion,ud as classifyLinkedTestFailure,y_ as clearActiveExtensionHooks,ps as clearDurableGraphCache,W_ as clearFocusedItem,Ni as clearWorkspaceContractsCache,Qm as close,_p as closeItem,pl as closeTask,Fl as coalesceRepeatedListFlags,wA as collectBlockedByIds,MA as collectBlockedByIdsFromCorpus,Li as collectDanglingDependencyReferences,vA as collectDependencyBlockedIds,wi as collectDuplicateDependencyRows,Zi as collectDuplicateRelationshipEdgeGroups,fE as collectErrorCauseCodes,Mi as collectMissingDependencyTargetIds,Ep as collectNewOrderingCycleWarnings,Ji as collectOrderingCycles,Ag as collectPackageContextIntentContracts,ce as collectPackageExtensionDirectories,b_ as collectRegisteredItemFieldNames,G_ as collectRuntimeCreateFieldValues,Uh as collectRuntimeFilterValues,F_ as collectRuntimeUpdateFieldValues,Qa as collectSubtreeIds,ct as collectUsedExtensionCapabilities,ju as commandOptionFlagLabel,pm as comments,Vd as commitImportedItem,Ey as commitItemCompletion,Ay as commitItemMutations,ag as commitWorkspaceTransaction,Rn as compactFlagAliasContracts,Za as compareCriticalItems,L as comparePmDateVersions,ig as compareRelationshipSnapshots,Ru as compareTimestampStrings,Pg as compileHistoryProvenanceMatcher,Bf as composeContextIntentContracts,Ry as composeExtension,wy as composeExtensionPackage,DA as computeActionabilityReport,uh as computeHistoryDiff,Xi as computeRelationshipCentrality,Ki as computeRelationshipDominators,ki as computeWorkspaceGraphFingerprint,Am as config,E_ as consumeAfterCommandAffectedItems,em as context,Xf as contextIntentRowId,rl as copy,_d as countFailureCategories,Cf as countReadOutputRows,qm as create,Jg as createAssurancePreset,RA as createAssuranceWorkspaceContext,Nu as createCheckpointId,s_ as createCoreCommandHookContext,xe as createCorpusShapeMeasurement,Ug as createEmptyAssuranceDocument,Qu as createEmptyExtensionRegistrationRegistry,yi as createExtensionCommandSdk,at as createExtensionContributionInventory,AS as createExtensionTestHarness,ur as createHistoryEntry,vT as createLazyModule,iT as createMutationGuardSdk,nf as createOutputOmissionReceipt,Ai as createPmCliExpectedError,$l as createPmCliProgram,pr as createPmCommandOutputBudget,mf as createQueryFingerprint,cu as createRelationshipGraphScaleFixture,O as createRelationshipGraphSnapshot,ee as createRelationshipKindRegistry,cE as createSearchCursorFingerprint,a_ as createSerialQueue,xh as createStdinTokenResolver,vu as createUnknownSubcommandError,hc as createWorkspaceSnapshot,vy as deactivateExtensionForTest,DO as declineServiceOverride,Kf as decodeContextIntentCursor,kT as decodeHtmlEntitiesInOptions,_f as decodeQueryCursor,uf as decodeQueryCursorState,ca as dedupeLinkedArtifacts,tC as defaultScoreContextCandidates,VO as defineAfterCommandHook,HO as defineBeforeCommandHook,jO as defineBeforeMutationHook,OO as defineCommand,wO as defineCommandOverride,C as defineCorpusShape,UO as defineExporter,Sy as defineExtension,Oy as defineExtensionBlueprint,yO as defineExtensionManifest,RO as defineFlag,FO as defineImporter,NO as defineItemField,IO as defineItemType,xO as defineMigration,WO as defineOnIndexHook,BO as defineOnReadHook,$O as defineOnWriteHook,LO as defineParserOverride,cr as definePmCommandOutputBudget,YE as definePmCommandOutputEnvelope,BE as definePmErrorCodeCatalog,MO as definePreflightOverride,SO as defineProjectProfile,GO as defineRendererOverride,bO as defineSearchProvider,kO as defineServiceOverride,PO as defineVectorStoreAdapter,Pe as defineWorkspaceRecipe,nl as deleteItem,yc as deleteWorkspaceSnapshot,Ju as dependencyToRelationship,fm as deps,Zg as deriveAssuranceProposals,Ny as deriveExtensionCapabilities,YC as derivePmBulkMutationEffect,ks as deriveSchemaEvolutionMigrationId,NT as deriveTelemetryCommandResolution,$h as describeAllowedTransitions,dA as describeExtensionActivation,xy as describeExtensionBlueprint,va as describeItemOwnershipConflict,ge as describeProfileComposition,Ae as describeProjectProfile,sy as describeUnknownError,Dt as detectAgentIdentity,Ht as detectHarnessIdentity,Wi as detectRelationshipCommunities,Gt as diagnoseAgentIdentity,ts as diffRelationshipAuditSnapshots,pd as diffTestRunMeasurements,n_ as discoverExtensions,rt as discoverNearbyPmRoot,nu as discoverProjectRuntimeVersionPins,_m as docs,am as duplicates,os as durableGraphCachePath,cs as durableGraphCacheStatus,gt as effectiveItemFormatVersion,BT as emitTelemetryErrorEvent,jd as emptyImportedDocument,lf as encodeQueryCursor,_h as enforceHistoryStreamPolicyForItem,fh as enforceHistoryStreamPolicyForItems,jE as enrichCliFlagInvocationContract,VE as enrichCliFlagInvocationContracts,YT as ensureMaterializedHistoryTarget,Ii as ensurePmGitignore,Js as ensureScope,IT as ensureSentryInit,Hd as ensureTrackerInitialized,$i as enumerateRelationshipPaths,lr as estimatePmOutputTokens,jg as evaluateAssuranceAssertion,Vg as evaluateAssuranceGate,iC as evaluateContextRanking,Hg as evaluateMeasurement,Lr as evaluateMutationGuard,ed as evaluateProvenanceCoverage,Jc as evaluateSemanticAttributionCoverage,Rp as evaluateSimilarityGovernance,Vh as evaluateTransition,uT as executeEmbeddingBatchesWithRetry,hT as executeVectorDelete,TT as executeVectorReset,fT as executeVectorUpsert,Yl as executeWorkspaceRecipe,ia as expandAddGlobEntries,fa as explainSourceTraceability,cl as extension,ml as extensionActivate,ll as extensionDeactivate,dl as extensionList,mu as extensionMigrate,WT as extractPatchFailureContext,Aa as extractReferencedPmItemIdsFromCommand,pu as federateRelationshipGraphSnapshots,mm as files,lm as filesDiscover,um as filesLookup,Op as findDuplicateClusters,Ns as findGitWorkspaceRoot,Fs as findInstalledNpmPackageCandidate,zi as findRedundantRelationshipEdges,Yi as findRelationshipCutStructure,Sp as findSimilarItems,$T as finishTelemetryCommand,Lu as flattenFlagListValue,ql as flushTelemetryQueue,il as focus,Bi as forEachMatchedRelationshipEdge,Qi as formatDuplicateEdgeGroup,Dc as formatProfileApplyHuman,vc as formatProfileLintHuman,Mc as formatProfileListHuman,kc as formatProfileShowHuman,Gs as formatSchemaEvolutionMigrationHuman,Bm as gc,Or as generateItemId,nm as get,g_ as getActiveCommandResult,Vf as getActiveContextIntentContracts,mt as getActiveExtensionRegistrations,Bg as getAssuranceDeclaration,Il as getContracts,$_ as getFocusedItem,it as getHistoryPath,ZT as getItemAt,ot as getItemPath,vr as getMutationActionContract,Ri as getPmGitignoreBlock,nt as getSettingsPath,Rl as getWorkspaceContracts,Tr as getWorkspaceHistoryPath,hm as graph,is as graphAuditBaselinePath,Qc as groupHistoryByEpisode,vO as handleServiceOverride,oi as hasSubcommandFlagContractsForCommand,CT as hasVectorizationEmbeddingIdentityChanged,ET as hasVectorizationVectorDimensionChanged,nh as hashDocument,oh as hashDocumentForVersion,ih as hashEmptyDocument,$m as health,Ui as hierarchyAncestors,Hi as hierarchyDescendants,Xm as historyCompact,Ym as historyCompactBulk,bg as historyEntryMatchesProvenance,Wm as historyRedact,zm as historyRepair,Km as historyRepairAll,LA as indexBlockedByIds,yT as inferConsistentVectorDimension,ar as inferPmOutputBudgetClass,gm as init,Ts as inspectHistoryAuthorStream,iu as inspectProjectRuntimeCompatibility,Vr as inspectStaleInProgressItems,Tc as inspectWorkspaceSnapshot,Ms as installMergeFence,dp as isAlreadyClaimedError,cy as isCommanderError,Pa as isErrnoError,oA as isExternalDependencySourceKind,J_ as isHostOutputSuppressed,Mr as isMutationAction,Yu as isOrderingRelationshipKind,gh as isPlaceholderReferenceToken,Ci as isPmCliExpectedError,tr as isPmExtensionCapabilityContract,nr as isPmExtensionPolicyModeContract,or as isPmExtensionPolicySurfaceContract,rr as isPmExtensionServiceNameContract,zC as isPmKnownExitCode,QE as isPmMutationReceipt,WC as isPmSuccessfulExitCode,er as isPmToolAction,ou as isProjectMutatingInvocation,DT as isPureSnakeCaseAlias,Uf as isReadOutputBudgetExceeded,sf as isReadRowContract,hs as isRuntimeRecord,UT as isTerminalPlanMode,H_ as isTerminalStatus,ze as isTimestampLiteral,Ty as itemDocumentToMutationOptions,nE as itemHasSchedule,Dr as jaccardSimilarity,dm as learnings,Mu as levenshteinDistanceWithinLimit,Na as limitAnnotationEntries,by as lintExtensionBlueprint,ye as lintProjectProfile,tm as list,Gl as listAliasPluralKeys,nT as listAllDocumentCandidatesCached,br as listAllItemMetadata,oT as listAllItemMetadataLight,$g as listAssuranceDeclarations,Yg as listAssuranceVerdicts,Bl as listBuiltinCorpusShapes,EA as listMergeReceipts,kr as listMutationActions,wE as listMutationEvents,Uc as listPmCommandsForTier,jc as listPmMcpToolsForProfile,Te as listProfiles,gc as listWorkspaceSnapshots,Cg as loadContextIntentRuntimeLayers,Oc as loadCreateTemplateOptions,o_ as loadExtensions,ms as loadGraphAuditBaseline,bu as loadMutationCheckpoint,_ as loadRelationshipGraphAdapter,Nr as locateItem,Ih as looksLikeGenericKeyValueEntry,Ef as mapReadOutputRows,yA as markMergeReceiptReconciled,Hh as matchesRuntimeFilters,jT as maybeRunFirstUseTelemetryPrompt,Kl as measureCorpusShapePlan,Sh as mergeAdditiveTags,Iy as mergeExtensionBlueprints,gE as mergeHistoryStreams,yE as mergeItemDocuments,SE as mergeJsonDocuments,Ul as mergeLinkedTestTwoTokenEntries,AE as mergeRelationshipEventStreams,ip as mergeSortedWarnings,FT as migrateItemFilesToFormat,aT as mutateItem,Cr as mutateWorkspaceJsonWithHistory,om as next,Ia as normalizeAnnotationTransportOptions,Hl as normalizeBootstrapInvocation,bi as normalizeDependencyGraphTarget,sA as normalizeDependencySeedId,iA as normalizeDependencySourceKind,st as normalizeExtensionContributionInventory,ry as normalizeItemAddressInvocation,At as normalizeItemFormatVersion,Sr as normalizeItemId,St as normalizeItemMetadata,Dl as normalizeLegacyExtensionActionSyntax,oa as normalizeLinkedPath,Th as normalizeParentReferenceValue,fe as normalizeProfileName,yr as normalizeRawItemId,ch as normalizeReplayPatchOps,Gr as normalizeSimilarityText,U_ as normalizeStatusForRegistry,yt as normalizeStatusInput,v_ as normalizeStatusInputWithRegistry,py as normalizeThrownExitCode,cm as notes,We as nowIso,ss as openDurableGraphCache,ji as orderingPredecessors,Vi as orderingSuccessors,dC as packContextCandidates,ep as packRankedContextItems,yl as packageActivate,El as packageCatalog,Sl as packageDeactivate,Al as packageDescribe,Tl as packageDoctor,fl as packageInstall,ul as packageLifecycle,_l as packageList,gl as packageManage,lu as packageMigrate,Cl as packageReload,hl as packageUninstall,hf as paginateQueryRows,Qs as parseAddEntries,Zs as parseAddGlobEntries,ba as parseAnnotationTextInput,_y as parseAtomicMutationControls,kl as parseBootstrapCommandName,wl as parseBootstrapGlobalOptions,Ml as parseBootstrapHelpRequest,jl as parseBootstrapTypeValue,qa as parseContextDepth,za as parseContextFocusFields,Tg as parseContextIntentDeclarations,Ja as parseContextSections,AC as parseContextSignalSnapshot,Rh as parseCsvKv,pc as parseEvalQuerySet,_s as parseGraphSubcommand,Ng as parseHistoryProvenanceFilters,yg as parseIntegerLimit,j_ as parseItemDocument,fy as parseItemMutationBatch,Gh as parseLimit,Dp as parseLinkedTestAssertionEqualsMap,Gp as parseLinkedTestAssertionGteMap,wp as parseLinkedTestBoolean,Lp as parseLinkedTestContextMode,Pp as parseLinkedTestEnvClear,bp as parseLinkedTestEnvSet,Fp as parseLinkedTestJsonEntries,vp as parseLinkedTestMinLines,kp as parseLinkedTestRegexList,Mp as parseLinkedTestStringList,ta as parseMigrateEntries,GA as parseMultiValueFilter,ZE as parseMutationReceipt,Ph as parseOptionalNonNegativeInteger,bh as parseOptionalNumber,Sg as parsePriority,HA as parsePriorityFilterSet,Rf as parseReadOutputSession,P_ as parseRegisteredItemFieldAssignments,N as parseRelationshipGraphSnapshot,ea as parseRemoveEntries,_a as parseSourceLineRange,Mh as parseStatusFilterCsv,FA as parseStringFilterSet,Rr as parseTags,sd as parseTestRunMeasurements,Og as parseType,UA as parseTypeFilterSet,Cs as parseUnknownAuthorHistoryEventCoordinates,vC as partitionDecisionEntries,lh as patchPathToChangedField,je as pathExists,al as pauseTask,as as persistDurableGraphResult,Bh as persistSelectedItemFormat,RC as planCompletedAtBackfill,Se as planProfileApplication,gO as planRelationshipEventBackfill,us as planRelationshipRemediation,vs as planSchemaEvolutionMigration,Ac as planWorkspaceSnapshotRestore,My as preflightExtension,Ur as prepareSimilarityText,eh as printError,Zf as printResult,Gm as profile,Hm as profileApply,jm as profileLint,Fm as profileList,Um as profileShow,C_ as projectAfterCommandItemSnapshot,Ka as projectContextFocusRows,od as projectFleetAttributionAnalytics,xg as projectHistoryProvenance,rd as projectProvenanceCoverageAnalytics,Ca as projectValidateCounts,tA as promoteAssuranceAssertion,jS as pruneCompileCacheGenerations,Wg as putAssuranceDeclaration,zg as putAssuranceDeclarationBundle,qh as queryItemMetadataIndex,Jh as queryLinkedFileMetadataIndex,Qh as querySimilarItemMetadataIndex,ad as queryTestRunMeasurementsBelow,Os as quoteCommandArg,Ss as quoteWindowsCommandArg,ly as rankCommandPaths,xa as readAnnotationEntries,Ft as readAuthorEnvironment,Ed as readBooleanOption,fC as readContextUsageAffinity,yd as readCsvListOption,$s as readExtensionMigrationState,Ve as readFileIfExists,Jr as readFirstStringFromCommanderOptions,Qr as readFirstValueFromCommanderOptions,Zc as readHistoryAnalyticsWindow,X_ as readHistoryEntries,zc as readImprovementLedger,tT as readItemMetadataDerivedIndexState,xr as readLocatedItem,Af as readOutputRowCollections,gf as readOutputRowPaths,xf as readOutputSessionRemainingTokens,pe as readPmPackageManifest,Nl as readRequiredString,Ir as readSettings,Wh as readSettingsWithMetadata,Zr as readStringArrayFromCommanderOptions,Cd as readStringOption,ay as readThrownExitCode,ST as readVectorizationStatusLedger,gg as readWorkspaceContextIntentContracts,SC as readWorkspaceContextSignals,xC as readWorkspaceMemory,dt as reconcileExtensionCapabilityUsage,A_ as recordAfterCommandAffectedItem,Xg as recordAssuranceVerdict,ja as recordClaimSemanticAttribution,lC as recordContextUsageServing,uC as recordContextUsageTouch,_C as recordContextUsageTouches,$a as recordFocusSemanticAttribution,Wc as recordImprovementObservation,Va as recordReleaseSemanticAttribution,rT as refreshItemMetadataDerivedIndex,ws as refreshMergeAttributeFenceIfInstalled,RT as refreshSearchArtifactsForMutation,Mt as registerHarnessSignalDescriptors,Q_ as registerOutputMaterialFieldGroups,tl as release,Kg as removeAssuranceDeclaration,Be as removeFileIfExists,la as renameArtifactsResultKey,Ga as renderCalendarMarkdown,Fa as renderCalendarToon,sp as renderContextMarkdown,js as renderExtensionDescribeMarkdown,Us as renderExtensionSurfaceMarkdown,Wd as renderGuideMarkdown,iy as renderMissingOptionRetry,DC as renderNextMarkdown,Rs as renderPmCommand,Bc as renderPmCommandVisibilityMarkdown,vh as renderRowsAsCsv,Dh as renderRowsAsTable,XT as replayHistoryToTarget,ah as replayToCanonicalItemDocument,sh as replayToItemDocument,UC as requireTerminalReason,HC as requireTerminalReasonWithRecovery,f_ as resetActiveExtensionRuntimeState,Gi as resetWorkspaceGraphCache,xt as resolveAgentSessionContextFromSignals,ka as resolveAnnotationIndex,wa as resolveAnnotationInput,K_ as resolveAuthor,jt as resolveAuthorIdentity,hh as resolveBodyFileContent,Wl as resolveBuiltinCorpusShape,Da as resolveCalendarOutputFormat,WE as resolveCanonicalPmErrorCodeContract,Xu as resolveCanonicalRelationshipKind,z_ as resolveClaimPrincipal,Bu as resolveCommandOptionPolicyState,HS as resolveCompileCacheGeneration,OC as resolveCompletionTimestamp,Fu as resolveConfiguredPmPackageRoot,VA as resolveContentFieldFilters,Wf as resolveContextIntentContract,Xa as resolveContextOutputFormat,Ya as resolveContextTokenBudget,QC as resolveCreateExplicitEmptyFlag,pT as resolveEmbeddingProviders,Ks as resolveExtensionInstallSourceIdentity,Vs as resolveExtensionMigrationStatePath,r_ as resolveExtensionRoots,wu as resolveFlagValueKind,$d as resolveGuideOutputFormat,Kc as resolveHistoryEpisodeGroupIdentity,Ig as resolveHistoryProvenanceDimensions,qT as resolveHistorySubject,zT as resolveHistoryTarget,uE as resolveHybridSemanticWeight,tt as resolveImplicitPmRoot,Iu as resolveIsoOrRelative,kA as resolveItemBlockers,hy as resolveItemMutationDocument,et as resolveItemTypeRegistry,k_ as resolveItemTypesFilePath,fd as resolveLinkedTestFailureExitCode,Is as resolveMergeInstallContext,jA as resolveMissingMetadataFilters,oy as resolveMissingOptionPlaceholder,of as resolveModePairedOutputOmissionReceipt,MC as resolveNextOutputFormat,pf as resolveOutputOmissionReceipt,Gu as resolvePmCliVersion,KC as resolvePmCommandExitContract,mr as resolvePmCommandOutputBudget,JE as resolvePmCommandOutputEnvelope,Fc as resolvePmCommandVisibilityTier,zE as resolvePmErrorCodeContract,Du as resolvePmPackageRootFromModule,H as resolvePmRoot,pi as resolvePmToolCustomFieldCollision,wh as resolvePriority,he as resolveProfile,bs as resolveProjectMergeTypeFolders,ff as resolveQueryCursorStart,Df as resolveReadOutputDimensions,Hf as resolveReadOutputEncoding,kf as resolveReadOutputSurface,af as resolveReadRowContract,ny as resolveRecoveryCommandName,L_ as resolveRegisteredSearchProvider,M_ as resolveRegisteredVectorStoreAdapter,ft as resolveRuntimeFieldRegistry,_t as resolveRuntimeStatusRegistry,cT as resolveSearchCorpusFields,mE as resolveSearchMaxResults,dE as resolveSearchPage,lE as resolveSearchScoreThreshold,_E as resolveSearchTuning,mT as resolveSemanticCorpusCharacterLimit,Ha as resolveSemanticLineageIds,Kh as resolveSettingsWithSemanticRuntimeDefaults,uA as resolveSourceContextWritePolicy,Ad as resolveStartTaskInProgressStatus,ii as resolveSubcommandFlagContractsForCommand,Cu as resolveTelemetryErrorCategory,FC as resolveTerminalReason,$u as resolveTypeDefinition,Vu as resolveTypeName,kh as resolveTypeSynonym,jh as resolveTypeWorkflows,As as resolveUnknownAuthorAcknowledgmentSelector,_T as resolveVectorStores,Pi as resolveWorkspaceRelationshipKindRegistry,ol as restore,Pu as restoreCheckpointItems,Ec as restoreWorkspaceSnapshot,Cc as restoreWorkspaceSnapshotWithRecovery,bl as runAction,S_ as runActiveBeforeMutationHooks,R_ as runActiveCommandHandler,O_ as runActiveOnIndexHooks,ut as runActiveOnReadHooks,lt as runActiveOnWriteHooks,I_ as runActiveParserOverride,N_ as runActivePreflightOverride,x_ as runActiveServiceOverride,xi as runActivity,t_ as runAfterCommandHooks,Oa as runAggregate,Ma as runAnnotationCommand,Ra as runAppend,xA as runAssuranceAction,bA as runAssuranceDispatch,e_ as runBeforeCommandHooks,Ua as runCalendar,mp as runClaim,lp as runClaimNext,fp as runClose,Tp as runCloseMany,gp as runComments,zd as runCompletion,Jp as runConfig,me as runContext,pC as runContextEvaluationCorpus,sC as runContextEvaluationScenario,zp as runCopy,Up as runCreate,Kp as runDelete,Fi as runDeps,ua as runDocs,ey as runDuplicates,mc as runEval,uc as runEvent,Xs as runExtension,zs as runExtensionMigrateAction,Ws as runExtensionMigrations,ha as runFiles,ga as runFilesDiscover,Ta as runFilesLookup,nd as runFleetAttributionAnalytics,Xp as runFocus,qp as runGc,Yp as runGet,fs as runGraph,Bd as runGuide,Ys as runHealth,qC as runHistory,GE as runHistoryCompact,HE as runHistoryCompactBulk,JT as runHistoryRedact,NE as runHistoryRepair,bE as runHistoryRepairAll,oc as runInit,tc as runInitAgentGuidance,Ap as runLearnings,ma as runLinkedArtifacts,hd as runLinkedTests,Sa as runList,lc as runMeet,RE as runMergeDriver,Ls as runMergeInstall,SA as runMergeReceiptReport,PE as runMergeReconcile,cp as runNext,Cp as runNotes,Wp as runPlan,Lc as runProfileApply,wc as runProfileLint,bc as runProfileList,Pc as runProfileShow,td as runProvenanceCoverageAnalytics,Dy as runRegisteredCommandForTest,jy as runRegisteredCommandOverrideForTest,Xy as runRegisteredExporterForTest,Fy as runRegisteredHookForTest,Ky as runRegisteredImporterForTest,zy as runRegisteredMigrationForTest,Gy as runRegisteredMutationGuardForTest,Uy as runRegisteredParserOverrideForTest,Hy as runRegisteredPreflightOverrideForTest,Vy as runRegisteredRendererOverrideForTest,By as runRegisteredSearchProviderForTest,$y as runRegisteredServiceOverrideForTest,Wy as runRegisteredVectorStoreAdapterForTest,Oe as runReindex,up as runRelease,_c as runRemind,hp as runRestore,Ds as runSchemaEvolutionMigration,cc as runSearch,Xl as runSearchRefreshWorkerEntrypoint,Kd as runStartBackgroundRun,cd as runStats,md as runTelemetry,Ic as runTemplatesList,Rc as runTemplatesSave,Nc as runTemplatesShow,Td as runTest,gd as runTestAll,Xd as runTestRunsList,qd as runTestRunsLogs,Qd as runTestRunsResume,Yd as runTestRunsStatus,Jd as runTestRunsStop,Zd as runTestRunsWorker,Hp as runUpdate,jp as runUpdateMany,le as runUpgrade,ya as runValidate,xl as runWithActiveExtensions,bt as runWithAgentSessionContext,$f as runWithContextIntentContracts,Eg as runWithDiscoveredContextIntentContracts,kt as runWithHarnessDetectionSignals,vt as runWithWorkspaceHarnessSignalDescriptors,we as runWithWorkspaceRecipe,sE as runWorkspaceTransactionGc,ls as saveGraphAuditBaseline,gs as scanHistoryAuthorAttribution,Et as scanItemFormatVersions,wr as scanMutationSecrets,AA as scanProvenanceResolverHealth,$r as scanStaleInProgressItems,OA as scanStorageIntegrity,Cm as schema,Nm as schemaAddField,Rm as schemaAddStatus,Sm as schemaAddType,wm as schemaApplyPreset,Lm as schemaInferTypes,Em as schemaList,bm as schemaListFields,vm as schemaRemapStatus,xm as schemaRemoveField,Im as schemaRemoveStatus,Om as schemaRemoveType,km as schemaRenameField,Mm as schemaRenameType,ym as schemaShow,Pm as schemaShowField,Dm as schemaShowStatus,my as scoreCommandPathMatch,rC as scoreContextCandidates,nC as scoreContextCandidatesWithActiveExtensions,Hr as scoreItemSimilarity,jr as scorePreparedItemSimilarity,rm as search,wC as searchWorkspaceMemory,LC as searchWorkspaceMemoryReadResult,df as selectCursorSemanticOptions,Ud as selectImportAuthor,PC as selectWorkspaceMemory,bC as selectWorkspaceMemoryRollups,Wa as semanticAttributionAffinity,wT as sentryCaptureCliError,PT as sentryFinishCommandSpan,MT as sentryFlush,LT as sentryLogCliUsageError,xT as sentrySetCommandContext,bT as sentryStartCommandSpan,Rt as serializeItemDocument,uy as serializeNdjsonRows,h_ as setActiveCommandContext,T_ as setActiveCommandResult,c_ as setActiveExtensionCommands,p_ as setActiveExtensionHooks,d_ as setActiveExtensionParsers,m_ as setActiveExtensionPreflight,__ as setActiveExtensionRegistrations,u_ as setActiveExtensionRenderers,l_ as setActiveExtensionServices,B_ as setFocusedItem,HT as shouldCompletePlanOnClose,ds as shouldPersistDurableGraphCache,Yh as shouldRunSearchRefreshInForeground,yp as similarityAdvisoryWarnings,pa as sortLinkedArtifacts,Eh as splitAcceptanceCriteria,GT as splitCommaList,Ot as splitFrontMatter,Gf as stabilizeReadOutputReceiptEstimates,b as stableStringify,Zu as stableValueEquals,sl as startTask,VT as startTelemetryCommand,sm as stats,D_ as statusIsTerminal,Ll as stripGlobalBootstrapTokens,LE as subscribeMutationEvents,Yc as summarizeAgentModelProvenance,qc as summarizeAgentProvenance,aC as summarizeContextEvaluationReports,ld as summarizeContextPreflight,wg as summarizeHistoryProvenance,rc as summarizeInitResult,CA as summarizeMergeReceipt,ZC as supportsCreateExplicitEmpty,ty as supportsItemIdAlias,q_ as suppressHostOutput,D as syncRelationshipGraphAdapter,Py as synthesizeExtensionManifest,si as toCompletionFlagString,op as toContextFocusItem,tp as toContextPackingSummary,rp as toContextRankingSummary,yu as toErrorMessage,Od as toEstimatedMinutesValue,ug as toExtensionFlagDefinitions,bd as toImportBoolean,Md as toImportConfidence,xd as toImportInteger,Gd as toImportLinkedDocs,Dd as toImportLinkedFiles,Fd as toImportLinkedTests,vd as toImportLogEntries,kd as toImportNormalizedEnum,Ld as toImportNumberMap,Rd as toImportPriority,Nd as toImportStatus,Pd as toImportStringList,wd as toImportStringMap,Id as toImportTags,V_ as toItemRecord,Sd as toNonEmptyImportString,Eu as toNonEmptyStringOrUndefined,ph as toReplayDocument,Fr as tokenizeSimilarityText,vE as translateHostEnvironmentFault,Jm as update,Ol as upgrade,Vm as validate,Dg as validateAssertionDefinition,Fg as validateAssuranceDocument,Gg as validateGateDefinition,gy as validateItemMutationRows,da as validateLinkedPaths,vg as validateMeasurementDefinition,Ah as validateMissingParentReference,vf as validateReadOutputOptions,Lh as validateSprintOrReleaseValue,Wu as validateTypeOptions,mh as verifyHistoryChain,dh as verifyHistoryChainWithVersion,QT as verifyHistoryEntries,CO as verifyPmRefusalReachability,On as withFlagAliasMetadata,DE as withHostEnvironmentBoundary,Di as workspaceGraphCache,La as wrapOwnershipConflict,dy as wrapThrownErrorForSentry,Ut as writeAuthorEnvironment,$e as writeFileAtomic,xu as writeMutationCheckpoint,zh as writeSettings,Qf as writeStdout,OT as writeVectorizationStatusLedger,Er as writeWorkspaceJsonWithHistory};
3
3
  //# sourceMappingURL=sdk.js.map
@@ -14,16 +14,11 @@
14
14
  * A zero/negative age (a future `created_at`) is always treated as active.
15
15
  */
16
16
 
17
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="8cc32963-26eb-5e08-bffb-2d8da152a43f")}catch(e){}}();
17
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b26cf702-330e-5cf5-8371-204220d5c5c9")}catch(e){}}();
18
+ import { isFileMissingError } from "../fs/fs-utils.js";
18
19
  import fs from "node:fs/promises";
19
20
  import path from "node:path";
20
21
  const MILLISECONDS_PER_DAY = 86_400_000;
21
- function isErrno(error, code) {
22
- return (typeof error === "object" &&
23
- error !== null &&
24
- "code" in error &&
25
- error.code === code);
26
- }
27
22
  /** Extract a parseable `created_at` from a checkpoint's raw JSON, or null. */
28
23
  function readCheckpointCreatedAt(raw) {
29
24
  let parsed;
@@ -46,7 +41,7 @@ async function collectCheckpointFiles(checkpointsDir, warnings) {
46
41
  dirEntries = await fs.readdir(checkpointsDir, { withFileTypes: true });
47
42
  }
48
43
  catch (error) {
49
- if (isErrno(error, "ENOENT")) {
44
+ if (isFileMissingError(error)) {
50
45
  return [];
51
46
  }
52
47
  throw error;
@@ -60,7 +55,7 @@ async function collectCheckpointFiles(checkpointsDir, warnings) {
60
55
  nested = await fs.readdir(subdir);
61
56
  }
62
57
  catch (error) {
63
- if (!isErrno(error, "ENOENT")) {
58
+ if (!isFileMissingError(error)) {
64
59
  warnings.push(`checkpoint_subdir_unreadable:${entry.name}`);
65
60
  }
66
61
  continue;
@@ -106,7 +101,7 @@ export async function runCheckpointGc(pmRoot, options) {
106
101
  raw = await fs.readFile(absPath, "utf8");
107
102
  }
108
103
  catch (readError) {
109
- if (isErrno(readError, "ENOENT")) {
104
+ if (isFileMissingError(readError)) {
110
105
  // Disappeared between readdir and readFile — treat as a ghost; skip quietly.
111
106
  result.scanned -= 1;
112
107
  continue;
@@ -154,7 +149,7 @@ export async function runCheckpointGc(pmRoot, options) {
154
149
  await fs.unlink(absPath);
155
150
  }
156
151
  catch (unlinkError) {
157
- if (!isErrno(unlinkError, "ENOENT")) {
152
+ if (!isFileMissingError(unlinkError)) {
158
153
  result.warnings.push(`checkpoint_remove_failed:${relName}`);
159
154
  result.retained.push(relPath);
160
155
  result.entries.push(entry);
@@ -172,4 +167,4 @@ export async function runCheckpointGc(pmRoot, options) {
172
167
  return result;
173
168
  }
174
169
  //# sourceMappingURL=checkpoint-gc.js.map
175
- //# debugId=8cc32963-26eb-5e08-bffb-2d8da152a43f
170
+ //# debugId=b26cf702-330e-5cf5-8371-204220d5c5c9
@@ -4,7 +4,7 @@
4
4
  * section headings so a deep title never emits an invalid `#######` run.
5
5
  */
6
6
 
7
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="60cccce0-d933-5180-ac30-0cea1679c656")}catch(e){}}();
7
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="48c3e62a-8085-5215-a692-4c03792022ce")}catch(e){}}();
8
8
  const MIN_HEADING_LEVEL = 1;
9
9
  const MAX_HEADING_LEVEL = 6;
10
10
  /**
@@ -28,6 +28,7 @@ const SURFACE_SECTIONS = [
28
28
  ["exporters", "Exporters"],
29
29
  ["search_providers", "Search providers"],
30
30
  ["vector_store_adapters", "Vector store adapters"],
31
+ ["assurance_providers", "Assurance measurement providers"],
31
32
  ["hooks", "Lifecycle hooks"],
32
33
  ["parser_overrides", "Parser overrides"],
33
34
  ["service_overrides", "Service overrides"],
@@ -127,7 +128,7 @@ export function renderExtensionSurfaceMarkdown(summary, options = {}) {
127
128
  lines.push(renderCapabilitiesLine(summary.capabilities), "");
128
129
  }
129
130
  for (const [field, heading] of SURFACE_SECTIONS) {
130
- const entries = summary[field];
131
+ const entries = summary[field] ?? [];
131
132
  if (entries.length === 0 && !includeEmpty) {
132
133
  continue;
133
134
  }
@@ -135,11 +136,11 @@ export function renderExtensionSurfaceMarkdown(summary, options = {}) {
135
136
  }
136
137
  lines.push(...renderPreflightSection(summary.preflight_overrides, sectionLevel, includeEmpty));
137
138
  const hasAnySurface = summary.preflight_overrides > 0 ||
138
- SURFACE_SECTIONS.some(([field]) => summary[field].length > 0);
139
+ SURFACE_SECTIONS.some(([field]) => (summary[field]?.length ?? 0) > 0);
139
140
  if (!hasAnySurface && !includeEmpty) {
140
141
  lines.push("_This extension registers no surfaces._", "");
141
142
  }
142
143
  return `${lines.join("\n").trimEnd()}\n`;
143
144
  }
144
145
  //# sourceMappingURL=activation-summary-markdown.js.map
145
- //# debugId=60cccce0-d933-5180-ac30-0cea1679c656
146
+ //# debugId=48c3e62a-8085-5215-a692-4c03792022ce
@@ -74,6 +74,8 @@ export interface ExtensionActivationSummary {
74
74
  search_providers: string[];
75
75
  /** Vector-store adapter names registered via `registerVectorStoreAdapter`. */
76
76
  vector_store_adapters: string[];
77
+ /** Assurance provider ids registered via `registerAssuranceMeasurementProvider`. */
78
+ assurance_providers?: string[];
77
79
  /** Command paths with a parser override registered via `registerParser`. */
78
80
  parser_overrides: string[];
79
81
  /** Built-in service names overridden via `registerService`. */
@@ -1,5 +1,5 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="1d184acd-e639-5b28-a294-98d22de2ebc7")}catch(e){}}();
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="2c514907-377f-59f9-bfdd-a184abf7ffb7")}catch(e){}}();
3
3
  import { collectUsedExtensionCapabilities, normalizeExtensionName, } from "./capability-usage.js";
4
4
  /**
5
5
  * Canonical lifecycle hook kinds paired with their {@link ExtensionHookRegistry}
@@ -52,6 +52,7 @@ export function describeExtensionActivation(activation, options = {}) {
52
52
  result_discriminator: entry.resultDiscriminator !== undefined,
53
53
  }))
54
54
  .sort((left, right) => left.format.localeCompare(right.format));
55
+ const assuranceProviders = collect(registrations.assurance_providers ?? [], (entry) => entry.definition.id);
55
56
  return {
56
57
  capabilities: collectUsedExtensionCapabilities(activation, options),
57
58
  commands: collect(registrations.commands, (entry) => entry.command),
@@ -70,6 +71,9 @@ export function describeExtensionActivation(activation, options = {}) {
70
71
  exporters: collect(registrations.exporters, (entry) => entry.exporter),
71
72
  search_providers: collect(registrations.search_providers, (entry) => entry.definition.name),
72
73
  vector_store_adapters: collect(registrations.vector_store_adapters, (entry) => entry.definition.name),
74
+ ...(assuranceProviders.length > 0
75
+ ? { assurance_providers: assuranceProviders }
76
+ : {}),
73
77
  parser_overrides: collect(parsers.overrides, (entry) => entry.command),
74
78
  service_overrides: collect(services.overrides, (entry) => entry.service),
75
79
  renderer_overrides: collect(renderers.overrides, (entry) => entry.format),
@@ -86,4 +90,4 @@ function sortUnique(values) {
86
90
  return [...new Set(values)].sort((left, right) => left.localeCompare(right));
87
91
  }
88
92
  //# sourceMappingURL=activation-summary.js.map
89
- //# debugId=1d184acd-e639-5b28-a294-98d22de2ebc7
93
+ //# debugId=2c514907-377f-59f9-bfdd-a184abf7ffb7
@@ -31,7 +31,7 @@ export declare const EXTENSION_CAPABILITY_REGISTRATION_SURFACES: {
31
31
  readonly search: readonly ["registerSearchProvider", "registerVectorStoreAdapter"];
32
32
  readonly parser: readonly ["registerParser"];
33
33
  readonly preflight: readonly ["registerPreflight"];
34
- readonly services: readonly ["registerService"];
34
+ readonly services: readonly ["registerService", "registerAssuranceMeasurementProvider"];
35
35
  };
36
36
  /** Per-extension reconciliation of declared versus exercised capabilities. */
37
37
  export interface ExtensionCapabilityUsageReconciliation {
@@ -1,5 +1,5 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="3f347c0d-2e1f-5d17-9e38-bae834f845d3")}catch(e){}}();
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a35f3cdc-810e-59bd-8408-03ce792db57f")}catch(e){}}();
3
3
  import { normalizeKnownExtensionCapability } from "./extension-capability-aliases.js";
4
4
  /**
5
5
  * Canonical map from each known extension capability to the human-readable
@@ -33,7 +33,7 @@ export const EXTENSION_CAPABILITY_REGISTRATION_SURFACES = {
33
33
  search: ["registerSearchProvider", "registerVectorStoreAdapter"],
34
34
  parser: ["registerParser"],
35
35
  preflight: ["registerPreflight"],
36
- services: ["registerService"],
36
+ services: ["registerService", "registerAssuranceMeasurementProvider"],
37
37
  };
38
38
  // `layer` is a closed enum (`"global" | "project"`) that never contains a
39
39
  // colon, so the first colon always separates the layer from the (possibly
@@ -103,6 +103,7 @@ function attributeCapabilityUsage(activation) {
103
103
  record(parsers.overrides, "parser");
104
104
  record(preflight.overrides, "preflight");
105
105
  record(services.overrides, "services");
106
+ record(registrations.assurance_providers ?? [], "services");
106
107
  record(renderers.overrides, "renderers");
107
108
  record(hooks.beforeCommand, "hooks");
108
109
  record(hooks.beforeMutation, "hooks");
@@ -170,4 +171,4 @@ export function reconcileExtensionCapabilityUsage(loaded, activation) {
170
171
  return reconciliations;
171
172
  }
172
173
  //# sourceMappingURL=capability-usage.js.map
173
- //# debugId=3f347c0d-2e1f-5d17-9e38-bae834f845d3
174
+ //# debugId=a35f3cdc-810e-59bd-8408-03ce792db57f
@@ -17,6 +17,7 @@ export declare function createExtensionContributionInventory(summary: {
17
17
  exporters: string[];
18
18
  search_providers: string[];
19
19
  vector_store_adapters: string[];
20
+ assurance_providers?: string[];
20
21
  parser_overrides: string[];
21
22
  service_overrides: string[];
22
23
  renderer_overrides: string[];