@unbrained/pm-cli 2026.8.22 → 2026.8.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/CHANGELOG.md +28 -0
  3. package/dist/cli/error-guidance.d.ts +13 -0
  4. package/dist/cli/error-guidance.js +62 -6
  5. package/dist/cli/main.js +13 -4
  6. package/dist/cli/register-mutation.js +6 -6
  7. package/dist/cli/register-operations.d.ts +73 -0
  8. package/dist/cli/register-operations.js +39 -14
  9. package/dist/cli/register-setup.js +3 -3
  10. package/dist/cli/schema-registration-helpers.d.ts +8 -1
  11. package/dist/cli/schema-registration-helpers.js +14 -5
  12. package/dist/cli-bundle/bundle-manifest.json +155 -155
  13. package/dist/cli-bundle/chunks/chunk-3ENVHX6C.js +36 -0
  14. package/dist/cli-bundle/chunks/{chunk-QI2CT3IX.js → chunk-DW2CGEMU.js} +2 -2
  15. package/dist/cli-bundle/chunks/{chunk-WG4STC36.js → chunk-EG6CLDZT.js} +2 -2
  16. package/dist/cli-bundle/chunks/{chunk-MYYI3ZOA.js → chunk-F3AI2JFL.js} +2 -2
  17. package/dist/cli-bundle/chunks/{chunk-U6GQ4VMV.js → chunk-HWZ6CELB.js} +4 -4
  18. package/dist/cli-bundle/chunks/chunk-HZBMLSZI.js +201 -0
  19. package/dist/cli-bundle/chunks/chunk-JB4KZWBF.js +3 -0
  20. package/dist/cli-bundle/chunks/chunk-KPH73XXJ.js +2 -0
  21. package/dist/cli-bundle/chunks/{chunk-BWX4SK46.js → chunk-KXPMB2YL.js} +58 -58
  22. package/dist/cli-bundle/chunks/{chunk-MZTZQTMS.js → chunk-QDVHNHAQ.js} +2 -2
  23. package/dist/cli-bundle/chunks/chunk-TFI5V5N2.js +13 -0
  24. package/dist/cli-bundle/chunks/{register-list-query-HZKBQNWW.js → register-list-query-UJB5FMV2.js} +2 -2
  25. package/dist/cli-bundle/chunks/register-mutation-NX5XE4VX.js +20 -0
  26. package/dist/cli-bundle/chunks/register-operations-RXIJIYXC.js +2 -0
  27. package/dist/cli-bundle/chunks/{register-setup-QK4OTOXN.js → register-setup-GFUZEKRE.js} +2 -2
  28. package/dist/cli-bundle/focused-chunks/{chunk-2POVTNLY.js → chunk-37Z4OEAP.js} +2 -2
  29. package/dist/cli-bundle/focused-chunks/chunk-3UPTYG44.js +8 -0
  30. package/dist/cli-bundle/focused-chunks/{chunk-E2EWYPY6.js → chunk-5S7E72FY.js} +2 -2
  31. package/dist/cli-bundle/focused-chunks/{chunk-GMYPD4FX.js → chunk-AUFH5H35.js} +2 -2
  32. package/dist/cli-bundle/focused-chunks/chunk-E7X25GC3.js +2 -0
  33. package/dist/cli-bundle/focused-chunks/{chunk-3LKU6PTJ.js → chunk-FQCSTBWE.js} +2 -2
  34. package/dist/cli-bundle/focused-chunks/{chunk-6S2MO3Q3.js → chunk-FZS4H32O.js} +2 -2
  35. package/dist/cli-bundle/focused-chunks/chunk-IFLWKY2R.js +156 -0
  36. package/dist/cli-bundle/focused-chunks/{chunk-PMGJUFNQ.js → chunk-JOWDB2MH.js} +2 -2
  37. package/dist/cli-bundle/focused-chunks/chunk-LYVSW5VM.js +2 -0
  38. package/dist/cli-bundle/focused-chunks/chunk-MRCNF3U6.js +2 -0
  39. package/dist/cli-bundle/focused-chunks/{chunk-A2BC5PQL.js → chunk-OFVUGTLJ.js} +2 -2
  40. package/dist/cli-bundle/focused-chunks/{chunk-2ARQGDDW.js → chunk-OGLQBL46.js} +2 -2
  41. package/dist/cli-bundle/focused-chunks/{chunk-R6SR45XU.js → chunk-OY7QAV4Y.js} +48 -47
  42. package/dist/cli-bundle/focused-chunks/chunk-QGFNI65N.js +26 -0
  43. package/dist/cli-bundle/focused-chunks/{chunk-D6RBZEJJ.js → chunk-R27IDGHD.js} +2 -2
  44. package/dist/cli-bundle/focused-chunks/chunk-UYRFYCDQ.js +5 -0
  45. package/dist/cli-bundle/focused-chunks/{chunk-PH2OXXVZ.js → chunk-ZHVA42R5.js} +9 -9
  46. package/dist/cli-bundle/main.js +13 -13
  47. package/dist/cli-bundle/sdk-authoring.js +1 -1
  48. package/dist/cli-bundle/sdk-contracts.js +2 -2
  49. package/dist/cli-bundle/sdk-core.js +40 -40
  50. package/dist/cli-bundle/sdk-governance.js +1 -1
  51. package/dist/cli-bundle/sdk-graph.js +1 -1
  52. package/dist/cli-bundle/sdk-merge.js +33 -32
  53. package/dist/cli-bundle/sdk-query.js +1 -1
  54. package/dist/cli-bundle/sdk-runtime.js +1 -1
  55. package/dist/cli-bundle/sdk-testing.js +1 -1
  56. package/dist/cli-bundle/sdk.js +5 -5
  57. package/dist/core/config/nested-settings.js +8 -2
  58. package/dist/core/config/positional-value.d.ts +1 -1
  59. package/dist/core/config/positional-value.js +5 -2
  60. package/dist/core/history/history.js +3 -3
  61. package/dist/core/item/item-format.js +66 -12
  62. package/dist/core/reproducibility/context.d.ts +4 -0
  63. package/dist/core/reproducibility/context.js +14 -8
  64. package/dist/core/shared/author.d.ts +55 -1
  65. package/dist/core/shared/author.js +333 -16
  66. package/dist/core/shared/constants.js +3 -2
  67. package/dist/core/store/settings-validator.d.ts +1 -0
  68. package/dist/core/store/settings-validator.js +6 -3
  69. package/dist/core/store/settings.js +5 -2
  70. package/dist/mcp/server.d.ts +1 -1
  71. package/dist/mcp/server.js +30 -9
  72. package/dist/sdk/agent/identity-config.d.ts +63 -0
  73. package/dist/sdk/agent/identity-config.js +107 -0
  74. package/dist/sdk/agent/refusal-corpus-contracts.d.ts +76 -0
  75. package/dist/sdk/agent/refusal-corpus-contracts.js +194 -0
  76. package/dist/sdk/cli-contracts/agent-output-contracts.js +6 -4
  77. package/dist/sdk/cli-contracts/enum-contracts.d.ts +4 -0
  78. package/dist/sdk/cli-contracts/enum-contracts.js +9 -2
  79. package/dist/sdk/cli-contracts/flag-contracts.js +9 -2
  80. package/dist/sdk/cli-contracts/flag-lexicon-contracts.js +4 -4
  81. package/dist/sdk/cli-contracts/registration-helpers.js +5 -2
  82. package/dist/sdk/cli-contracts/tool-parameter-tables.js +22 -2
  83. package/dist/sdk/cli-contracts/tool-schema.d.ts +1 -1
  84. package/dist/sdk/cli-contracts/tool-schema.js +14 -3
  85. package/dist/sdk/cli-contracts.d.ts +3 -3
  86. package/dist/sdk/cli-contracts.js +4 -4
  87. package/dist/sdk/config.d.ts +6 -1
  88. package/dist/sdk/config.js +119 -14
  89. package/dist/sdk/context-intent-contracts.js +4 -2
  90. package/dist/sdk/core-governance.d.ts +1 -1
  91. package/dist/sdk/core-governance.js +3 -3
  92. package/dist/sdk/extension/scaffold.js +11 -5
  93. package/dist/sdk/flag-invocation-contracts.js +4 -2
  94. package/dist/sdk/generated/generated-error-code-catalog-part-1.js +50 -2
  95. package/dist/sdk/generated/generated-error-code-catalog-part-2.js +87 -38
  96. package/dist/sdk/governance/assurance-action.js +30 -10
  97. package/dist/sdk/governance/validate.d.ts +2 -2
  98. package/dist/sdk/governance/validate.js +39 -14
  99. package/dist/sdk/index.d.ts +7 -2
  100. package/dist/sdk/index.js +8 -3
  101. package/dist/sdk/lifecycle/create.js +6 -3
  102. package/dist/sdk/lifecycle/update.js +5 -3
  103. package/dist/sdk/merge/three-way.js +105 -26
  104. package/dist/sdk/read-output-budget.d.ts +21 -0
  105. package/dist/sdk/read-output-budget.js +39 -2
  106. package/dist/sdk/read-output-contracts.d.ts +5 -3
  107. package/dist/sdk/read-output-contracts.js +20 -12
  108. package/dist/sdk/reproducibility/process.d.ts +19 -0
  109. package/dist/sdk/reproducibility/process.js +88 -0
  110. package/dist/sdk/runtime-primitives.d.ts +1 -1
  111. package/dist/sdk/runtime-primitives.js +3 -3
  112. package/dist/sdk/runtime.js +6 -5
  113. package/dist/sdk/test/batch.d.ts +6 -0
  114. package/dist/sdk/test/batch.js +15 -3
  115. package/dist/sdk/test/entry.d.ts +1 -1
  116. package/dist/sdk/test/entry.js +3 -2
  117. package/dist/sdk/test/execution.d.ts +28 -3
  118. package/dist/sdk/test/execution.js +193 -34
  119. package/dist/sdk/test/parsers.d.ts +6 -0
  120. package/dist/sdk/test/parsers.js +21 -2
  121. package/dist/sdk/test/trust.d.ts +33 -0
  122. package/dist/sdk/test/trust.js +207 -0
  123. package/dist/types.d.ts +23 -0
  124. package/dist/types.js +2 -2
  125. package/docs/AGENT_PROVENANCE_ADR.md +41 -5
  126. package/docs/CONFIGURATION.md +4 -0
  127. package/docs/DIAGNOSTIC_OUTPUT_CONTRACTS.md +19 -2
  128. package/docs/MERGE_SAFETY.md +15 -1
  129. package/docs/READ_OUTPUT_CONTRACTS.md +11 -1
  130. package/docs/REPRODUCIBLE_WORKSPACES.md +42 -8
  131. package/docs/SDK.md +9 -0
  132. package/docs/SDK_AGENT_SESSION_CONTEXT.md +6 -4
  133. package/docs/SDK_EVIDENCE_TRACEABILITY.md +1 -1
  134. package/docs/TESTING.md +75 -8
  135. package/docs/agent-task-token-baseline.json +2 -2
  136. package/docs/generated/FLAG_LEXICON_BUDGETS.md +2 -2
  137. package/marketplace.json +2 -2
  138. package/package.json +2 -2
  139. package/packages/pm-beads/package.json +1 -1
  140. package/packages/pm-calendar/package.json +1 -1
  141. package/packages/pm-command-kit/package.json +1 -1
  142. package/packages/pm-digital-twin/package.json +1 -1
  143. package/packages/pm-governance-audit/package.json +1 -1
  144. package/packages/pm-guide-shell/package.json +1 -1
  145. package/packages/pm-kanban/package.json +1 -1
  146. package/packages/pm-lifecycle-hooks/package.json +1 -1
  147. package/packages/pm-linked-test-adapters/package.json +1 -1
  148. package/packages/pm-search-advanced/package.json +1 -1
  149. package/packages/pm-templates/package.json +1 -1
  150. package/packages/pm-todos/package.json +1 -1
  151. package/packages/pm-vcs/package.json +1 -1
  152. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
  153. package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
  154. package/sdk/public-surface.json +427 -17
  155. package/dist/cli-bundle/chunks/chunk-EMWDM5FI.js +0 -13
  156. package/dist/cli-bundle/chunks/chunk-HYG6LRL4.js +0 -200
  157. package/dist/cli-bundle/chunks/chunk-SMWXHMVB.js +0 -35
  158. package/dist/cli-bundle/chunks/chunk-VMMIL3SI.js +0 -2
  159. package/dist/cli-bundle/chunks/chunk-YBPJAOQQ.js +0 -3
  160. package/dist/cli-bundle/chunks/register-mutation-HTKEEGRD.js +0 -20
  161. package/dist/cli-bundle/chunks/register-operations-6EMRWJJY.js +0 -2
  162. package/dist/cli-bundle/focused-chunks/chunk-2AZT5WXZ.js +0 -2
  163. package/dist/cli-bundle/focused-chunks/chunk-5SHSBMX2.js +0 -2
  164. package/dist/cli-bundle/focused-chunks/chunk-C4S4A4JJ.js +0 -5
  165. package/dist/cli-bundle/focused-chunks/chunk-L5LDSRO2.js +0 -155
  166. package/dist/cli-bundle/focused-chunks/chunk-MB37AYN6.js +0 -26
  167. package/dist/cli-bundle/focused-chunks/chunk-MCOR37QK.js +0 -2
  168. package/dist/cli-bundle/focused-chunks/chunk-WZE4LIPW.js +0 -8
@@ -1,6 +1,6 @@
1
- import{a as vb,b as Pb,c as xf,d as If,e as Nf,g as wf,h as kf,i as vf,j as Pf,k as Mf,l as Lf,m as Df,n as Ff,o as Mb,p as Lb,q as Db,r as Fb,s as Gb,t as $b,u as jb,v as Ub,w as Gf,x as $f,y as Hb,z as Bb}from"./chunks/chunk-VMMIL3SI.js";import{A as NO,B as wO,C as kO,D as vO,E as PO,F as MO,G as LO,H as DO,I as FO,J as GO,K as $O,L as jO,M as UO,N as HO,O as BO,P as zO,Q as VO,R as WO,S as KO,T as XO,U as YO,V as JO,W as qO,X as ZO,Y as QO,a as nO,b as oO,c as iO,d as sO,e as aO,f as dO,g as cO,h as pO,i as lO,j as uO,k as fO,l as mO,m as _O,n as hO,o as gO,p as TO,q as yO,r as CO,s as AO,t as EO,u as SO,v as bO,w as OO,x as RO,y as xO,z as IO}from"./chunks/chunk-MZTZQTMS.js";import{a as zb,b as Vb,c as Wb,d as Kb}from"./chunks/chunk-MYYI3ZOA.js";import{a as Xb,b as Yb,c as Jb,d as qb,e as Zb,f as Qb,g as eO,h as tO,i as rO}from"./chunks/chunk-QI2CT3IX.js";import{$ as ob,$a as Dl,$b as Uu,A as IC,Aa as mb,Ab as mu,Ac as _f,B as _d,Ba as _b,Bb as _u,Bc as hf,C as sc,Ca as hb,Cb as hu,Cc as gf,D as ac,Da as gb,Db as gu,Dc as Tf,E as dc,Ea as fl,Eb as Tu,Ec as yf,F as cc,Fa as ml,Fb as yu,Fc as Cf,G as pc,Ga as _l,Gb as Cu,Gc as Af,H as kc,Ha as hl,Hb as Au,Hc as Ef,I as vc,Ia as gl,Ib as Eu,Ic as Sf,J as Pc,Ja as Tl,Jb as Su,Jc as bf,K as Mc,Ka as yl,Kb as bu,Kc as Of,L as Lc,La as Cl,Lb as Ou,Lc as Rf,M as Dc,Ma as Al,Mb as Ru,N as Fc,Na as El,Nb as xu,O as Gc,Oa as Sl,Ob as Iu,P as WS,Pa as bl,Pb as Nu,Q as KS,Qa as Ol,Qb as wu,R as XS,Ra as Rl,Rb as ku,S as YS,Sa as xl,Sb as vu,T as JS,Ta as Il,Tb as Pu,U as qS,Ua as Nl,Ub as Mu,V as ZS,Va as wl,Vb as Lu,W as QS,Wa as kl,Wb as Du,X as eb,Xa as vl,Xb as Fu,Y as tb,Ya as Pl,Yb as Gu,Z as rb,Za as Ml,Zb as $u,_ as nb,_a as Ll,_b as ju,a as ns,aa as Oe,ab as Fl,ac as Hu,b as os,ba as Re,bb as Gl,bc as Bu,c as is,ca as xe,cb as $l,cc as zu,d as tC,da as Ie,db as Fe,dc as Vu,e as rC,ea as Ne,eb as F,ec as Wu,f as as,fa as we,fb as Kl,fc as Ku,g as cC,ga as ke,gb as Xl,gc as Xu,h as pC,ha as ve,hb as Yl,hc as Yu,i as lC,ia as Pe,ib as Jl,ic as Ju,j as uC,ja as Me,jb as ql,jc as qu,k as fC,ka as Le,kb as Zl,kc as Zu,l as mC,la as mp,lb as Ql,lc as Qu,m as _C,ma as _p,mb as eu,mc as ef,n as hC,na as hp,nb as tu,nc as tf,o as gC,oa as gp,ob as ru,oc as rf,p as TC,pa as Tp,pb as nu,pc as nf,q as yC,qa as yp,qb as ou,qc as of,r as CC,ra as Cp,rb as iu,rc as sf,s as AC,sa as Ap,sb as su,sc as af,t as EC,ta as Ep,tb as au,tc as df,u as us,ua as Sp,ub as du,uc as cf,v as SC,va as bp,vb as cu,vc as pf,w as bC,wa as Op,wb as pu,wc as lf,x as OC,xa as Rp,xb as lu,xc as uf,y as RC,ya as xp,yb as uu,yc as ff,z as xC,za as fb,zb as fu,zc as mf}from"./chunks/chunk-BWX4SK46.js";import{a as be,f as Uc,g as Hc}from"./chunks/chunk-YBPJAOQQ.js";import{A as zS,B as VS,C as Qc,D as ep,E as tp,b as md,c as SE,d as ES,e as RS,f as xS,g as IS,h as NS,i as wS,j as $c,k as kS,l as Yc,m as Jc,n as qc,o as Zc,p as PS,q as MS,r as LS,s as DS,t as FS,u as GS,v as $S,w as jS,x as US,y as HS,z as BS}from"./chunks/chunk-WG4STC36.js";import{$ as EA,$a as XA,$b as bS,$c as Hp,A as lA,Aa as Ka,Ab as _S,Ac as yb,Ad as Ul,B as uA,Ba as Xa,Bb as hS,Bc as Np,Bd as Hl,C as fA,Ca as Ya,Cb as gS,Cc as Z,Cd as Bl,D as mA,Da as Ja,Db as TS,Dc as wp,Dd as zl,Ea as qa,Eb as yS,Ec as kp,Ed as Vl,F as AA,Fa as Za,Fb as CS,Fc as vp,Fd as Wl,Ga as Qa,Gb as AS,Gc as Pp,Ha as ed,Hc as Mp,Ia as td,Ib as lc,Ic as Lp,J as da,Ja as rd,Jb as uc,Jc as Dp,Ka as nd,Kb as SS,Kc as Fp,La as od,Lb as fc,Lc as Gp,Ma as id,Mb as mc,Mc as Cb,Na as sd,Nb as _c,Nc as Ab,Oa as ad,Ob as hc,Oc as Eb,Pa as dd,Pb as gc,Pc as Sb,Qa as cd,Qb as Tc,Qc as bb,Ra as pd,Rb as yc,Rc as Ob,Sa as ld,Sb as Cc,Sc as Rb,Ta as ud,Tb as Ac,Tc as xb,Ua as UA,Ub as Ec,Uc as Ib,Va as HA,Vb as Sc,Vc as Nb,Wa as BA,Wb as bc,Wc as wb,Xa as zA,Xb as Oc,Ya as VA,Yb as Rc,Yc as $p,Za as WA,Zb as xc,Zc as jp,_a as KA,_b as Ic,_c as Up,a as $C,aa as SA,ab as YA,ac as OS,ad as Bp,b as jC,ba as ca,bb as JA,bc as Nc,bd as zp,c as UC,ca as pa,cb as qA,cd as Vp,d as HC,da as la,db as ZA,dd as Wp,e as BC,ea as ua,eb as hd,ec as wc,ed as Kp,f as zC,fa,fb as gd,fd as Xp,g as VC,ga as ma,gb as Td,gc as vS,gd as Yp,h as WC,ha as _a,hb as yd,hc as jc,hd as Jp,i as KC,ia as PA,ib as Cd,ic as rp,id as qp,j as XC,ja as MA,jb as Ad,jc as np,jd as Zp,k as YC,ka as LA,kb as Ed,kc as op,kd as Qp,l as JC,la as DA,lb as Sd,lc as pb,ld as el,m as qC,mb as bd,mc as lb,md as tl,n as ZC,na as FA,nb as Od,nc as ub,nd as rl,o as QC,ob as ec,oc as ip,od as nl,p as eA,pa as GA,pb as tc,pc as sp,pd as kb,q as tA,qa as $A,qb as rc,qc as ap,qd as ol,r as rA,ra as $a,rb as nc,rc as dp,rd as il,s as nA,sa as ja,sb as cS,sc as cp,sd as sl,t as oA,ta as jA,tb as pS,tc as pp,td as al,u as iA,ua as Ua,ub as lS,uc as lp,ud as dl,v as sA,va as Ha,vb as uS,vc as up,vd as cl,w as aA,wa as Ba,wb as fS,wc as fp,wd as pl,x as dA,xa as za,xb as oc,xc as Ip,xd as ll,y as cA,ya as Va,yb as ic,yc as Tb,yd as ul,z as pA,za as Wa,zb as mS,zc as De,zd as jl}from"./chunks/chunk-SMWXHMVB.js";import{Aa as va,Ba as Pa,Ca as Ma,Da as La,Ea as Da,Fa,Ga,H as ba,Ha as Bc,I as Oa,Ia as zc,J as Ra,Ja as Vc,K as xa,Ka as Wc,La as Kc,Ma as Xc,a as aC,b as dC,c as ds,d as cs,f as ps,g as ls,h as bA,i as OA,j as RA,k as xA,l as IA,m as NA,n as wA,o as kA,oa as Te,p as ha,pa as ye,q as ga,qa as Ce,r as Ta,ra as Ae,s as ya,sa as Ia,t as Ca,u as vA,ua as Na,v as Aa,va as wa,w as Ea,wa as ka,x as Sa}from"./chunks/chunk-U6GQ4VMV.js";import{$ as vs,$a as mE,$b as Pd,Aa as ia,Ab as LE,Ac as ib,B as fs,Ba as sa,Bb as DE,Bc as sb,C as _A,Ca as aa,Cb as FE,Cc as ab,D as hA,Db as GE,Dc as db,E as gA,Ea as QA,Eb as $E,Ec as cb,F as TA,Fa as eE,Fb as jE,G as yA,Ga as tE,Gb as UE,H as ms,Ha as rE,Hb as HE,I as _s,Ia as nE,Ib as BE,J as hs,Ja as oE,Jb as zE,K as gs,Ka as iE,Kb as VE,L as Ts,La as sE,Lb as WE,M as ys,Ma as aE,Mb as KE,N as Cs,Na as dE,Nb as XE,O as As,Oa as cE,Ob as YE,P as Es,Pb as JE,Q as Ss,Qb as qE,R as bs,Rb as ZE,S as q,Sb as QE,T as Os,Tb as eS,U as Rs,Ub as tS,V as xs,Vb as rS,W as Is,Wb as nS,X as CA,Xa as pE,Xb as oS,Y as Ns,Ya as lE,Yb as wd,Z as ws,Za as uE,Zb as kd,_ as ks,_a as fE,_b as vd,a as Wy,aa as Ps,ab as _E,ac as Md,b as Ky,ba as Ms,bc as Ld,c as Xy,ca as Ls,cc as Ee,d as Yy,da as Ds,db as hE,dc as Dd,e as Jy,ea as Fs,eb as gE,ec as Fd,fa as Gs,fb as TE,fc as Gd,ga as $s,gb as yE,gc as $d,h as qy,ha as js,hb as CE,hc as jd,i as Zy,ia as Us,ib as AE,ic as Ud,j as ss,ja as Hs,jb as EE,jc as Hd,k as Qy,ka as Bs,kb as fd,kc as Bd,l as eC,la as zs,lb as Rd,lc as zd,m as nC,ma as Vs,mb as xd,mc as Vd,n as oC,na as Ws,nb as Id,nc as Wd,o as iC,oa as Ks,ob as Nd,oc as Kd,p as sC,pa as Xs,pb as bE,pc as Xd,q as NC,qa as Ys,qb as OE,qc as Yd,r as wC,ra as Js,rb as RE,rc as Jd,s as kC,sa as qs,sb as xE,sc as qd,t as vC,ta as Zs,tb as IE,tc as Se,u as PC,ua as Qs,ub as NE,uc as Zd,v as MC,va as ea,vb as wE,vc as iS,w as LC,wa as ta,wb as kE,wc as sS,x as DC,xa as ra,xb as vE,xc as aS,y as FC,ya as na,yb as PE,yc as Qd,z as GC,za as oa,zb as ME,zc as dS}from"./chunks/chunk-EMWDM5FI.js";import{$ as c_,$a as Et,$e as xr,$g as lT,$h as mn,$i as Rn,$j as My,$k as Zo,$l as Yi,Ac as q_,Ad as Vt,Ae as Jh,Af as ug,Ag as eT,Ah as RT,Ai as sy,Aj as Gn,Ak as Oo,Al as Oi,B as Jm,Bc as Z_,Bd as Wt,Be as qh,Bf as fg,Bg as tT,Bh as xT,Bi as ay,Bj as $n,Bk as Ro,Bl as Ri,C,Cc as Q_,Cd as Kt,Ce as Zh,Cf as mg,Cg as Xr,Ch as IT,Ci as dy,Cj as jn,Ck as xo,Cl as xi,D as qm,Dc as eh,De as Qh,Df as _g,Dg as Yr,Dh as NT,Di as cy,Dj as Un,Dk as Io,Dl as Ii,E as W,Ec as th,Ee as eg,Ef as hg,Eg as Jr,Ei as py,Ej as Hn,Ek as No,El as Ni,Fc as rh,Fe as tg,Ff as gg,Fg as qr,Fi as ly,Fj as Bn,Fk as wo,Fl as wi,G as Zm,Gc as Nt,Ge as rg,Gf as Tg,Gg as Zr,Gh as wT,Gi as _e,Gj as zn,Gk as ko,Gl as ki,H as Qm,Hc as nh,He as ng,Hf as yg,Hg as Qr,Hh as kT,Hi as uy,Hj as Vn,Hk as vo,Hl as vi,Ia as y_,Ib as v_,Ic as wt,Id as Sh,Ie as dr,If as Cg,Ig as en,Ih as cn,Ii as fy,Ij as Wn,Ik as Po,Il as Pi,Ja as C_,Jb as St,Jd as bh,Je as cr,Jf as Ag,Jg as tn,Jh as vT,Ji as my,Jj as Kn,Jk as Mo,Jl as Mi,K as e_,Ka as A_,Kb as bt,Kc as oh,Kd as Oh,Ke as pr,Kf as Eg,Kg as rn,Kh as PT,Ki as _y,Kj as Xn,Kk as Lo,Kl as Li,Lc as ih,Ld as Xt,Le as lr,Lf as Sg,Lg as nn,Lh as MT,Li as hy,Lj as Yn,Lk as Do,Ll as Di,Mb as D,Mc as sh,Md as Yt,Me as ur,Mf as bg,Mg as rT,Mh as LT,Mi as gy,Mj as Jn,Mk as Fo,Ml as Fi,N as t_,Na as gt,Nb as P_,Nc as ah,Nd as Jt,Ne as fr,Nf as Og,Nh as me,Ni as Ty,Nj as qn,Nk as Go,Nl as Gi,O as ce,Oa as E_,Oc as dh,Od as qt,Oe as mr,Of as Rg,Og as on,Oh as DT,Oi as yy,Oj as Zn,Ok as $o,Ol as $i,P as pe,Pa as S_,Pb as M_,Pc as fe,Pd as Zt,Pe as _r,Pf as xg,Pg as sn,Ph as FT,Pi as Cy,Pj as Qn,Pk as jo,Pl as ji,Q as dt,Qa as b_,Qc as ch,Qd as Qt,Qe as hr,Qf as Ig,Qg as an,Qh as GT,Qi as hn,Qj as eo,Qk as Uo,Ql as Ui,R as ct,Ra as O_,Rb as L_,Rc as ph,Rd as er,Re as gr,Rf as Ng,Rh as $T,Ri as gn,Rj as to,Rk as Ho,Rl as Hi,S as le,Sc as lh,Sd as tr,Se as Tr,Sf as wg,Sg as nT,Si as Tn,Sj as ro,Sk as Bo,Sl as Bi,T as r_,Ta as Tt,Td as rr,Te as yr,Tf as kg,Tg as oT,Th as jT,Ti as yn,Tj as no,Tk as zo,Tl as zi,Ua as yt,Uc as uh,Ud as nr,Ue as Cr,Uf as vg,Ug as iT,Uh as UT,Ui as Cn,Uj as oo,Uk as Vo,V as n_,Va as K,Vc as fh,Vd as or,Ve as Ar,Vf as Pg,Vg as sT,Vh as HT,Vi as An,Vj as io,Vk as Wo,Vl as Y,W as o_,Wd as Rh,We as Er,Wf as Mg,Wg as dn,Wh as BT,Wj as so,Wk as Ko,Wl as J,X as i_,Xd as xh,Xe as Sr,Xf as Lg,Xg as aT,Xh as pn,Xi as En,Xj as ao,Xk as Xo,Xl as Vi,Y as s_,Ya as Ct,Yd as Ih,Ye as br,Yf as Dg,Yg as dT,Yh as ln,Yi as Sn,Yj as co,Yk as Yo,Yl as Wi,Z as a_,Za as At,Ze as Or,Zf as Fg,Zg as cT,Zh as un,Zi as bn,Zj as vy,Zk as Jo,Zl as Ki,_ as d_,_e as Rr,_f as Gg,_g as pT,_h as fn,_i as On,_j as Py,_k as qo,_l as Xi,aa as p_,ad as mh,af as Ir,ag as $g,ah as uT,ai as _n,aj as xn,ak as Ly,al as Qo,am as Ji,ba as l_,be as ir,bf as Nr,bg as jg,bh as fT,bi as zT,bj as In,bk as Dy,bl as ei,bm as qi,c as ot,ca as u_,cc as D_,cd as kt,ce as sr,cf as wr,ch as mT,cj as Nn,ck as Fy,cl as ti,cm as Zi,dc as F_,dd as _h,de as ar,df as kr,dh as _T,di as VT,dj as Ay,dk as Gy,dl as ri,dm as Qi,e as de,ea as f_,ec as G_,ed as vt,ef as vr,eg as Ug,eh as hT,ei as WT,ej as Ey,ek as $y,el as ni,em as es,f as it,fa as m_,fe as Nh,ff as Pr,fg as Hg,fh as gT,fi as KT,fj as Sy,fk as jy,fl as oi,fm as ts,g as st,ga as __,gc as $_,gd as hh,ge as wh,gf as Mr,gg as Bg,gj as by,gk as Uy,gl as ii,gm as rs,h as at,ha as h_,hc as j_,hd as gh,he as kh,hf as Lr,hg as zg,hh as TT,hi as XT,hj as Oy,hk as Hy,hl as si,hm as ge,ia as g_,id as Th,ie as vh,if as Dr,ig as Vg,ij as Ry,ik as By,il as ai,j as zm,ja as T_,jc as U_,jd as Pt,je as Ph,jf as Fr,jg as Wr,jh as yT,jj as xy,jk as zy,jl as di,k as Vm,ka as pt,kc as Ot,kd as Mt,ke as Mh,kf as Gr,kg as Kr,kh as CT,ki as YT,kj as Iy,kk as Vy,kl as ci,l as Wm,la as lt,ld as Lt,le as Lh,lf as $r,lh as AT,lk as po,ll as pi,ma as ut,mc as Rt,md as Dt,me as Dh,mf as jr,mh as ET,mi as JT,mk as lo,ml as li,nc as xt,nd as Ft,ne as Fh,nf as Ur,nh as ST,nk as uo,nl as ui,od as Gt,oe as Gh,of as Hr,og as Wg,oj as he,ok as fo,ol as fi,pb as R_,pd as $t,pe as $h,pf as Br,pg as Kg,pj as Ny,pk as mo,pl as mi,qa as ft,qb as X,qc as H_,qd as yh,qe as jh,qf as zr,qg as Xg,qi as qT,qj as wy,qk as _o,ql as _i,rb as ue,rc as B_,rd as Ch,re as Uh,rf as Vr,rg as Yg,ri as ZT,rj as ky,rk as ho,rl as hi,s as Km,sa as mt,sb as x_,sc as z_,se as Hh,sf as og,si as QT,sj as wn,sk as go,sl as gi,ta as _t,tb as I_,tc as V_,td as jt,te as Bh,tf as ig,tg as Jg,ti as ey,tj as kn,tk as To,tl as Ti,u as Xm,ua as ht,ub as N_,uc as W_,ud as Ut,ue as zh,uf as sg,ug as qg,ui as ty,uj as vn,uk as yo,ul as yi,vb as w_,vc as K_,vd as Ah,ve as Vh,vf as ag,vj as Pn,vk as Co,vl as Ci,wb as A,wc as X_,wd as Ht,we as Wh,wf as dg,wi as ry,wj as Mn,wk as Ao,wl as Ai,x as Ym,xb as k_,xc as It,xd as Bt,xe as Kh,xf as cg,xi as ny,xj as Ln,xk as Eo,xl as Ei,yc as Y_,yd as Eh,ye as Xh,yf as pg,yg as Zg,yh as bT,yi as oy,yj as Dn,yk as So,yl as Si,zc as J_,zd as zt,ze as Yh,zf as lg,zg as Qg,zh as OT,zi as iy,zj as Fn,zk as bo,zl as bi}from"./chunks/chunk-HYG6LRL4.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 g="https://schema.unbrained.dev/pm/corpus-shape/v1";function E(e,t){if(!Number.isSafeInteger(e)||e<=0)throw new TypeError(`Corpus shape ${t} must be a positive safe integer`);return e}function k(e,t){if(!Number.isSafeInteger(e)||e<0)throw new TypeError(`Corpus shape ${t} must be a non-negative safe integer`);return e}function $e(e){if(!(typeof e!="object"||e===null||Object.isFrozen(e))){for(let t of Object.values(e))$e(t);Object.freeze(e)}}function S(e){if(e.schema!==g)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(E(e.hierarchy_depth,"hierarchy_depth"),E(e.hierarchy_fanout,"hierarchy_fanout"),k(e.age_span_days,"age_span_days"),E(e.history_entries_per_item,"history_entries_per_item"),k(e.comments_per_100_items,"comments_per_100_items"),k(e.notes_per_100_items,"notes_per_100_items"),k(e.learnings_per_100_items,"learnings_per_100_items"),E(e.author_cardinality,"author_cardinality"),E(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 $e(t),t}var G=[{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}],b=Object.freeze({scratch:S({schema:g,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:S({schema:g,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:G,author_cardinality:32,component_count:1,include_cycles:!1,custom_types:["Experiment"],custom_statuses:["review"],terminal_statuses:[],custom_fields:["domain"]}),"deep-graph":S({schema:g,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:G,author_cardinality:16,component_count:1,include_cycles:!0,custom_types:[],custom_statuses:[],terminal_statuses:[],custom_fields:[]}),"multi-decade":S({schema:g,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:G,author_cardinality:64,component_count:1,include_cycles:!1,custom_types:["Program"],custom_statuses:["archived"],terminal_statuses:["archived"],custom_fields:["portfolio"]}),"disconnected-archive":S({schema:g,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:G,author_cardinality:24,component_count:5,include_cycles:!1,custom_types:["Archive"],custom_statuses:["archived"],terminal_statuses:["archived"],custom_fields:["archive_source"]})});function jf(){return Object.keys(b).sort().map(e=>b[e])}function Uf(e){let t=e.trim().toLowerCase();if(!Object.hasOwn(b,t))throw new TypeError(`Unknown corpus shape "${e}". Available: ${Object.keys(b).join(", ")}`);return b[t]}var Ge=new WeakMap;function je(e,t){if(e===0)return[];let r=Ge.get(t);r===void 0&&(r=t.edge_kind_mix.flatMap(o=>Array.from({length:o.weight},()=>o.kind)),Ge.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 Hf(e,t,r,n=42){if(k(t,"item index"),E(r,"item count"),t>=r)throw new RangeError(`Corpus item index ${t} exceeds ${r}`);let o=Math.min(e.component_count,r),i=t%o,s=Math.floor(t/o),d=0,a=1;for(let L=0;L<e.hierarchy_depth;L+=1)d=Math.min(Number.MAX_SAFE_INTEGER,d+a),a=Math.min(Number.MAX_SAFE_INTEGER,a*e.hierarchy_fanout);let c=s%d,p=s-c,l=c===0?void 0:i+(p+Math.floor((c-1)/e.hierarchy_fanout))*o,u=Date.UTC(2026,0,1),h=e.age_span_days*864e5,N=new Date(u+(r===1?0:Math.round(t/(r-1)*h))).toISOString(),w=(t*37+n)%100;return{index:t,id:`pm-s${t.toString(36).padStart(7,"0")}`,...l===void 0?{}:{parent:`pm-s${l.toString(36).padStart(7,"0")}`},component:i,timestamp:N,author:`pm-corpus-agent-${(t+n)%Math.min(e.author_cardinality,r)}`,history_entry_count:e.history_entries_per_item,dependency_kinds:je(t,e),has_comment:w<e.comments_per_100_items,has_note:w<e.notes_per_100_items,has_learning:w<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 Q=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,je(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[s,,d]of this.annotationFields){let a=Math.floor(this.itemCount/100),c=this.itemCount%100,p=a*d+Math.max(0,d+c-100),l=a*d+Math.min(d,c),u=this.annotations[s];(u<p||u>l)&&n.push(`${s}:${u}!in[${p},${l}]`)}let o=new Set([...Object.keys(this.edgeKinds),...Object.keys(this.expectedEdgeKinds)]);for(let s of[...o].sort()){let d=this.edgeKinds[s]??0,a=this.expectedEdgeKinds[s]??0;d!==a&&n.push(`edge_kind:${s}:${d}!=${a}`)}let i=[...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:i.length===0,mismatches:i}}};function Ue(e){return new Q(e)}function Bf(e,t){let r=Ue(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 zf(){let e=K(process.cwd(),process.env.PM_PATH);await me(e,(t,r)=>_e(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 He="https://schema.unbrained.dev/pm/workspace-recipe/v1";function ee(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)=>ee(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,ee(n,`${t}.${r}`)])))}function Be(e){if(e.schema!==He)throw new Error(`Unsupported workspace recipe schema: ${e.schema}`);let t=ce(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:ee(r.input,`operations[${n}].input`)})))})}async function ze(e,t){let r=Be(e);return pe(r,t)}async function Vf(e,t){return ze(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 Wf(){await he()}(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]="340305b6-e3c8-5daa-bfbe-4a9c62a6d039")}catch{}})();var Ve=["lines","branches","functions","statements"];function Kf(e,t){if(typeof t!="object"||t===null||Array.isArray(t))throw new TypeError(`Coverage entry for ${e} must be an object.`)}function Xf(e,t,r){if(typeof r!="object"||r===null||Array.isArray(r))throw new TypeError(`Coverage entry ${e} has invalid ${t} counts.`);let n=r;if(typeof n.covered!="number"||typeof n.total!="number"||!Number.isInteger(n.covered)||!Number.isInteger(n.total)||n.covered<0||n.total<n.covered)throw new TypeError(`Coverage entry ${e} has invalid ${t} counts.`);return{covered:n.covered,total:n.total}}function Yf(e){if(typeof e!="object"||e===null||Array.isArray(e))throw new TypeError("Coverage summary must be a JSON object.");if(!("total"in e))throw new TypeError("Coverage summary is missing the total entry.");let t=[];for(let[r,n]of Object.entries(e)){Kf(r,n);for(let o of Ve){let i=Xf(r,o,n[o]),s=i.total-i.covered;s>0&&t.push({file:r,metric:o,uncovered:s,...i})}}return t}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3edb1f4f-d26e-51a8-b62a-caffdd3ac44b")}catch{}})();var Jf=["captured_redacted","captured_verbatim"],qf=[{label:"home directory",pattern:/(?:\/home\/|\/Users\/)[^/\s"']+/u},{label:"GitHub token",pattern:/\b(?:gh[oprsu]_[A-Za-z0-9_]{20,})\b/u},{label:"npm token",pattern:/\bnpm_[A-Za-z0-9]{20,}\b/u},{label:"private key",pattern:/-----BEGIN (?:RSA |EC |OPENSSH )?PRIVATE KEY-----/u}];function m(e){return typeof e=="string"&&e.trim().length>0}function Zf(e,t){if(typeof t!="object"||t===null||Array.isArray(t))return[{boundary_id:e.id,kind:"invalid_fixture",detail:`${e.fixture_path} must contain a JSON object.`}];let r=t,n=[];r.boundary_id!==e.id&&n.push({boundary_id:e.id,kind:"fixture_boundary_mismatch",detail:`${e.fixture_path} names ${String(r.boundary_id)} instead of ${e.id}.`}),(r.version!==1||!Jf.includes(r.capture_source)||!m(r.capture_provenance)||!Array.isArray(r.redactions)||!r.redactions.every(m)||!("input"in r)||!("observed"in r))&&n.push({boundary_id:e.id,kind:"invalid_fixture",detail:`${e.fixture_path} lacks captured provenance, redaction metadata, input, or observed output.`});let o=JSON.stringify(t);for(let i of qf)i.pattern.test(o)&&n.push({boundary_id:e.id,kind:"unsafe_fixture",detail:`${e.fixture_path} contains a possible ${i.label}.`});return n}function Qf(e,t){let r=Date.parse(e.waiver_expires_at),n=m(e.waiver_reason)&&m(e.waiver_owner)&&e.waiver_expires_at.endsWith("Z")&&le(e.waiver_expires_at)&&Number.isFinite(r);return{captured:0,waived:n&&r>=t?1:0,findings:n?r<t?[{boundary_id:e.id,kind:"expired_waiver",detail:`Boundary ${e.id} waiver expired at ${e.waiver_expires_at}.`}]:[]:[{boundary_id:e.id,kind:"invalid_waiver",detail:`Boundary ${e.id} waiver requires reason, owner, and an RFC 3339 UTC expiry.`}]}}function em(e,t,r){if(!m(e.id)||!m(e.producer)||!m(e.consumer)||!m(e.format))return{captured:0,waived:0,findings:[{boundary_id:m(e.id)?e.id:"unknown",kind:"invalid_boundary",detail:"Each boundary requires non-empty id, producer, consumer, and format."}]};if("fixture_path"in e){let n=t[e.fixture_path],o=m(e.fixture_path)&&e.fixture_path in t?Zf(e,n):[{boundary_id:e.id,kind:"missing_fixture",detail:`Boundary ${e.id} fixture ${String(e.fixture_path)} is missing.`}];return{captured:o.length===0?1:0,waived:0,findings:o}}return Qf(e,r)}function yR(e,t,r=new Date){let n=[];if(e.version!==1||!m(e.inventory_scope)||!Array.isArray(e.boundaries))return{ok:!1,boundary_count:0,captured_count:0,waived_count:0,findings:[{boundary_id:"registry",kind:"invalid_registry",detail:"Boundary registry requires version 1, inventory_scope, and boundaries."}]};let o=new Set,i=0,s=0;for(let d of e.boundaries){if(typeof d!="object"||d===null||Array.isArray(d)){n.push({boundary_id:"unknown",kind:"invalid_boundary",detail:"Each boundary must be a JSON object."});continue}let a=d,c=m(a.id)?a.id:void 0;if(c!==void 0&&o.has(c)){n.push({boundary_id:c,kind:"duplicate_boundary",detail:`Boundary ${c} is inventoried more than once.`});continue}c!==void 0&&o.add(c);let p=em(a,t,r.getTime());i+=p.captured,s+=p.waived,n.push(...p.findings)}return n.sort((d,a)=>d.boundary_id!==a.boundary_id?d.boundary_id.localeCompare(a.boundary_id):d.kind.localeCompare(a.kind)),{ok:n.length===0,boundary_count:e.boundaries.length,captured_count:i,waived_count:s,findings:n}}import O from"node:fs";import te 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 We=300*1e3,tm=3;function bR(e){return(e?.trim()||"development").replace(/[^a-zA-Z0-9._-]/g,"_").replace(/^\./,"_")}function OR(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.");O.mkdirSync(e,{recursive:!0});let n=te.join(e,r);O.mkdirSync(n,{recursive:!0});let o=new Date;O.utimesSync(n,o,o);let i=O.readdirSync(e).filter(c=>c!==r).flatMap(c=>{try{return[{name:c,mtimeMs:O.statSync(te.join(e,c)).mtimeMs}]}catch(p){if(p instanceof Error&&"code"in p&&de(p))return[];throw p}}).sort((c,p)=>p.mtimeMs-c.mtimeMs||c.name.localeCompare(p.name)),s=i.filter(c=>o.getTime()-c.mtimeMs<We),d=Math.max(0,tm-1-s.length),a=i.filter(c=>o.getTime()-c.mtimeMs>=We).slice(d).map(c=>c.name).sort((c,p)=>c.localeCompare(p));for(let c of a)O.rmSync(te.join(e,c),{recursive:!0,force:!0,maxRetries:3,retryDelay:50});return{retained:r,removed:a}}import Ke from"node:fs";import j 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 H="@unbrained/pm-cli",rm=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"]),Xe=new Set(["--author","--output-budget","--output-format","--output-include","--output-limit","--output-session","--path","--pm-path"]),oe=/\b(\d{4})\.(\d{1,2})\.(\d{1,2})(?:-(\d+))?\b/u;function f(e,t){return e.some(r=>t.includes(r.split("=",1)[0]))}function re(e,t){return["activate","adopt","adopt-all","deactivate","init","install","migrate","reload","uninstall"].includes(t[0]??"")||f(e,["--activate","--adopt","--adopt-all","--deactivate","--fix-managed-state","--init","--install","--output","--reload","--scaffold","--uninstall"])}var nm={changelog:(e,t)=>{if(t[0]==="generate")return!f(e,["--check"]);let r=e.indexOf("export");return t[0]==="export"&&(f(e,["--output"])||r>=0&&e[r+1]!==void 0&&!e[r+1].startsWith("-"))},comments:e=>f(e,["--add","--delete","--edit","--file","--stdin"]),config:(e,t)=>(t[0]==="project"||t[0]==="global"?t[1]:t[0])==="set",deps:()=>!1,docs:e=>f(e,["--add","--add-glob","--migrate","--remove"]),duplicates:()=>!1,events:()=>!1,extension:re,files:(e,t)=>f(e,["--add","--add-glob","--migrate","--remove"])||t[0]==="discover"&&f(e,["--apply"]),health:e=>!f(e,["--check-only","--no-refresh","--skip-vectors"]),learnings:e=>f(e,["--add","--delete","--edit","--file","--stdin"]),merge:(e,t)=>t[0]!=="report",notes:e=>f(e,["--add","--delete","--edit","--file","--stdin"]),package:re,packages:re,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]??"")&&!(f(e,["--infer"])&&!f(e,["--apply"])),telemetry:(e,t)=>t.slice(0,2).some(r=>["clear","flush"].includes(r)),templates:(e,t)=>t[0]==="save",test:e=>f(e,["--add","--add-json","--background","--measure","--remove","--resume","--run","--stop"]),validate:e=>f(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 U(e){let t=e.match(oe);return t?[Number(t[1]),Number(t[2]),Number(t[3]),Number(t[4]??0)]:null}function $(e,t){let r=U(e),n=U(t);if(!r||!n)return null;for(let o=0;o<r.length;o+=1){let i=r[o]-n[o];if(i!==0)return Math.sign(i)}return 0}function ne(e){try{let t=JSON.parse(Ke.readFileSync(e,"utf8"));return typeof t=="object"&&t!==null&&!Array.isArray(t)?t:null}catch{return null}}function om(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[H],i=typeof o=="string"?o.trim():"",s=/^[<!]/u.test(i)?void 0:i.match(oe)?.[0];s&&t.push(s)}return t.sort((r,n)=>$(n,r))[0]}function im(e){let r=ne(j.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 sm(e,t){try{let r=Ke.readFileSync(j.join(e,t),"utf8").split(/\r?\n/u),n=r.findIndex(a=>a.includes(H));if(n<0)return;let o=r[n].match(/^\s*/u)[0].length,i=[r[n]];for(let a=n+1;a<r.length;a+=1){let c=r[a],p=c.trim(),l=c.match(/^\s*/u)[0].length;if(p.length>0&&l<=o)break;i.push(c)}return i.join(`
2
- `).match(/^\s*version(?::\s*|\s+)["']?(\d{4}\.\d{1,2}\.\d{1,2}(?:-\d+)?)/mu)?.[1]??i[0].match(oe)?.[0]}catch{return}}function am(e){let t=[],r=ne(j.join(e,"package.json")),n=r?om(r):void 0;n&&t.push({version:n,source:"package.json"});let i=ne(j.join(e,"node_modules","@unbrained","pm-cli","package.json"))?.version;typeof i=="string"&&U(i)&&t.push({version:i,source:"installed-package"});let s=im(e);s&&U(s)&&t.push({version:s,source:"package-lock.json"});for(let d of["pnpm-lock.yaml","yarn.lock"]){let a=sm(e,d);a&&t.push({version:a,source:d})}return t}function Ye(e){for(let t=0;t<e.length;t+=1){let r=e[t];if(Xe.has(r)){t+=1;continue}if(!r.startsWith("-"))return{command:r.toLowerCase(),index:t}}}function dm(e){let t=Ye(e);if(!t||f(e,["--help","-h","--dry-run"]))return!1;let{command:r,index:n}=t,o=[];for(let s=n+1;s<e.length;s+=1){let d=e[s];if(Xe.has(d)){s+=1;continue}d.startsWith("-")||o.push(d.toLowerCase())}let i=nm[r];return i?i(e,o):rm.has(r)}function cm(e){let t=Ye(e.argv)?.command,r=dm(e.argv),o=am(e.projectRoot).filter(d=>$(d.version,e.executingVersion)!==null).sort((d,a)=>$(a.version,d.version))[0],i=o!==void 0&&$(e.executingVersion,o.version)===-1,s=i&&!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 ${H} ${o.version}.`,"Install the project dependencies with its declared package manager if the local executable is missing."]}:void 0;return{compatible:!r||!i||e.allowStale===!0,executing_version:e.executingVersion,...o?{project_version:o.version,source:o.source}:{},...t?{command:t}:{},mutating:r,stale:i,...s?{warning:s}:{},override_applied:i&&r&&e.allowStale===!0}}function kR(e){let t=cm(e);if(t.compatible)return t;throw new W(`pm ${t.executing_version} cannot mutate a project pinned to newer pm ${t.project_version}.`,C.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 ${H} ${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 pm}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 ie=1;function R(e){e?.throwIfAborted()}function T(e,t){if(typeof e!="string"||e.trim().length===0)throw new TypeError(`Relationship graph ${t} must be non-empty`);return e.trim()}function x(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(),i=e.edges(),s=t.list();return Object.freeze({version:ie,fingerprint:pm("sha256").update(D({nodes:o,edges:i,kinds:s})).digest("hex"),created_at:new Date(n).toISOString(),nodes:o,edges:i,kinds:s})}function lm(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function P(e){if(!lm(e))throw new TypeError("Relationship graph snapshot must be an object");if(e.version!==ie)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 X([]);for(let o of e.kinds)t.register(o);let r=new A(e.nodes,e.edges,t),n=x(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){T(e.name,"adapter name");let r=T(t.workspace,"workspace");R(t.signal);let n=await e.read({...t,workspace:r});return R(t.signal),n===null?null:P(n)}async function B(e,t){let r=T(t.workspace,"workspace"),n=P(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(R(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 um(e,t={}){let r=e.map(P),n=new Map;for(let s of r)for(let d of s.snapshot.kinds){let a=n.get(d.kind);if(a&&D(a)!==D(d))throw new TypeError(`Conflicting federated relationship kind: ${d.kind}`);n.set(d.kind,d)}let o=new X([...n.values()].sort((s,d)=>s.kind.localeCompare(d.kind))),i=new A(new Set(r.flatMap(s=>[...s.snapshot.nodes])),r.flatMap(s=>[...s.snapshot.edges]),o);return x(i,o,t)}var v=class{name;#e=new Map;constructor(t="memory"){this.name=T(t,"adapter name")}async read(t){R(t.signal);let r=this.#e.get(T(t.workspace,"workspace"));return r?structuredClone(r):null}async replace(t){R(t.signal);let r=T(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(P(t.snapshot).snapshot))}async clear(t){R(t.signal);let r=T(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 Je(e,t){if(!Number.isInteger(e)||e<1)throw new TypeError(`Relationship graph ${t} must be a positive integer`);return e}function fm(e){let t=Je(e.nodeCount,"nodeCount"),r=Je(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(),i=(e.idPrefix??"node").trim();if(!o||!i)throw new TypeError("Relationship graph kind and idPrefix must be non-empty");let s=n==="disconnected"?0:Math.floor((t-1)/r);return{node_count:t,edge_count:s,edge_basis:"fixture_generated",nodes:{*[Symbol.iterator](){for(let d=0;d<t;d+=1)yield`${i}-${d}`}},edges:{*[Symbol.iterator](){if(n!=="disconnected")for(let d=r;d<t;d+=r)yield{source:`${i}-${n==="star"?0:d-r}`,target:`${i}-${d}`,kind:o}}}}}function y(e,t){if(!e)throw new Error(`Relationship graph adapter conformance: ${t}`)}async function qe(e,t={}){let r=t.workspace?.trim()||"pm-graph-conformance",n=ue(),o=x(new A(["a","b"],[{source:"a",target:"b",kind:"related"}],n),n,{createdAt:"2026-01-01T00:00:00.000Z"}),i=x(new A(["a","b","c"],[{source:"a",target:"b",kind:"related"},{source:"b",target:"c",kind:"blocked_by"}],n),n,{createdAt:"2026-01-02T00:00:00.000Z"}),s=[];y(await _(e,{workspace:r})===null,"workspace must start empty"),s.push({name:"empty-read",passed:!0});let d=await B(e,{workspace:r,snapshot:o});y(d.disposition==="written","first sync must write"),s.push({name:"atomic-replace",passed:!0}),(await e.read({workspace:r})).nodes.push("mutated-reader-copy"),y((await _(e,{workspace:r}))?.snapshot.nodes.length===2,"reads must not mutate stored state"),s.push({name:"read-isolation",passed:!0}),y((await B(e,{workspace:r,snapshot:o})).disposition==="current","identical sync must be idempotent"),s.push({name:"idempotent-sync",passed:!0}),await e.replace({workspace:r,snapshot:i,expected_fingerprint:o.fingerprint}),y((await _(e,{workspace:r}))?.snapshot.fingerprint===i.fingerprint,"replacement must become visible"),s.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 y(c,"stale compare-and-swap must fail"),s.push({name:"stale-cas",passed:!0}),e.clear&&(await e.clear({workspace:r,expected_fingerprint:i.fingerprint}),y(await _(e,{workspace:r})===null,"clear must remove the workspace"),s.push({name:"clear",passed:!0})),{adapter:e.name,workspace:r,cases:Object.freeze(s),clear_supported:e.clear!==void 0}}function mm(e){return qe(new v,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]="20842b89-cef6-542e-b069-76c22b340f1d")}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 Ze}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 Qe(e,t){if(typeof e!="string"||e.trim().length===0)throw new TypeError(`Relationship backfill ${t} must be non-empty`);return e.trim()}function nx(e,t){let r=Qe(t.migrationId,"migrationId"),n=Qe(t.author,"author"),o=Date.parse(t.timestamp);if(!Number.isFinite(o))throw new TypeError("Relationship backfill timestamp must be valid");let i=new Date(o).toISOString(),s=q(e,void 0,t.registry),d=s.graph.nodes(),a=s.graph.edges().map(u=>{let h=Ze("sha256").update(JSON.stringify([r,u.kind,u.source,u.target,u.createdAt??null,u.author??null,u.payload??null])).digest("hex").slice(0,24);return Object.freeze({eventId:`backfill:${r}:${h}`,relationshipId:`migration:${r}:${h}`,action:"add",edge:u,author:n,timestamp:i,reason:`Backfill ${r} from legacy item metadata`})}),c=Ze("sha256").update(JSON.stringify({migrationId:r,nodes:d,events:a})).digest("hex"),p=new Set([...t.existingEventIds??[]].filter(u=>typeof u=="string").map(u=>u.trim()).filter(Boolean)),l=a.filter(u=>!p.has(u.eventId));return Object.freeze({migration_id:r,fingerprint:c,nodes:d,events:Object.freeze(l),edge_count:a.length,skipped_existing_count:a.length-l.length,duplicate_dependency_rows:s.duplicateRows.length,dangling_reference_count:s.dangling.active.length+s.dangling.legacy_terminal.length})}import*as et from"node:module";(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]="4f4e7daa-14aa-5dad-8a30-79a4d76159d4")}catch{}})();var M=["suggested_retry","candidate_command","example","next_step","migration_hint","restore_with"],se={suggested_retry:{kind:"suggested_retry",semantics:"recovery"},retry_command:{kind:"suggested_retry",semantics:"recovery"},candidate_command:{kind:"candidate_command",semantics:"recovery"},candidate_commands:{kind:"candidate_command",semantics:"recovery"},fallback_candidates:{kind:"candidate_command",semantics:"recovery",nested_value_field:"command"},next_best_command:{kind:"candidate_command",semantics:"recovery"},example:{kind:"example",semantics:"recovery"},examples:{kind:"example",semantics:"recovery"},next_step:{kind:"next_step",semantics:"recovery"},next_steps:{kind:"next_step",semantics:"recovery"},suggested_next_steps:{kind:"next_step",semantics:"recovery"},migration_hint:{kind:"migration_hint",semantics:"replacement"},migration_hints:{kind:"migration_hint",semantics:"replacement"},restore_with:{kind:"restore_with",semantics:"behavior_preserving"}},ix=Object.freeze(Object.keys(se));function tt(e){if(Object.hasOwn(se,e))return se[e]}var _m=new Set([..."=([{,:;!?&|+-*%^~<>","=>"]);function I(e,t){return e<t?-1:e>t?1:0}function hm(e,t){let r=e[t],n=t+1,o="";for(;n<e.length&&e[n]!==r;)e[n]==="\\"?n+=2:(o+=e[n],n+=1);return e[n]===r&&(n+=1),{next:n,value:o}}function gm(e){return e===void 0||e.kind==="punctuator"&&_m.has(e.value)||e.kind==="identifier"&&["return","case","throw","else","yield"].includes(e.value)}function Tm(e,t){if(/\s/u.test(e[t]))return t+1;if(e.startsWith("//",t)){let r=e.indexOf(`
3
- `,t+2);return r===-1?e.length:r+1}if(e.startsWith("/*",t))return e.indexOf("*/",t+2)+2}function ym(e,t,r){if(e[t]!=="/"||!gm(r))return;let n=t+1,o=!1;for(;n<e.length;)if(e[n]==="\\")n+=2;else if(e[n]==="[")o=!0,n+=1;else if(e[n]==="]")o=!1,n+=1;else if(e[n]==="/"&&!o){for(n+=1;/[A-Za-z]/u.test(e.charAt(n));)n+=1;return n}else n+=1;return n}function Cm(e,t){let r=e[t];if(r==="'"||r==='"'||r==="`"){let o=hm(e,t);return r==="`"?{next:o.next}:{next:o.next,token:{kind:"string",value:o.value,offset:t+1}}}if(/[A-Za-z_$]/u.test(r)){let o=t+1;for(;/[A-Za-z0-9_$]/u.test(e[o]??"");)o+=1;return{next:o,token:{kind:"identifier",value:e.slice(t,o),offset:t}}}let n=e.startsWith("=>",t)?"=>":r;return{next:t+n.length,token:{kind:"punctuator",value:n,offset:t}}}function Am(e){let t=[],r=0;for(;r<e.length;){let n=Tm(e,r);if(n!==void 0){r=n;continue}let o=ym(e,r,t.at(-1));if(o!==void 0){r=o;continue}let i=Cm(e,r);i.token&&t.push(i.token),r=i.next}return t}var Em=new Set(["object","block","pattern"]),Sm=new Set(["const","let","var"]),bm=new Set(["}",")","]"]),Om=new Set(["=","(","[",",",":","?","return"]);function Rm(e,t,r){if([...r].reverse().find(i=>Em.has(i.kind))?.kind==="pattern"||r.at(-1)?.kind==="paren"&&r.at(-1)?.parameter_list)return"pattern";let o=e[t-1];return o?.kind==="identifier"&&Sm.has(o.value)?"pattern":o?.value==="=>"||o?.value===")"?"block":o&&Om.has(o.value)?"object":"block"}function xm(e,t,r){let n=e[t];if(n.value==="{"){let d=Rm(e,t,r);return{kind:d,...d==="object"?{member_start:!0,candidates:[]}:{}}}if(n.value==="[")return{kind:"array"};if(n.value!=="(")return;let o=e[t-1],i=e[t-2];return{kind:"paren",...o?.value==="function"||i?.value==="function"?{parameter_list:!0}:{}}}function Im(e,t,r){if(!(e?.kind!=="object"||!e.member_start||t.kind!=="identifier"&&t.kind!=="string"||r?.value!==":"||!/^[A-Za-z][A-Za-z0-9_]*$/u.test(t.value)))return{field:t.value,offset:t.offset}}function Nm(e,t){return e[t+1]?.value===")"&&e[t+2]?.value==="=>"||e[t+1]?.value==="="}function wm(e){let t=Am(et.stripTypeScriptTypes(e,{mode:"strip"})),r=[],n=[];for(let[o,i]of t.entries()){let s=n.at(-1),d=Im(s,i,t[o+1]);d&&s.candidates.push(d);let a=xm(t,o,n);if(a)n.push(a);else if(bm.has(i.value)){let c=n.pop();c?.kind==="object"&&!Nm(t,o)&&r.push(...c.candidates)}else i.value===","&&s?.kind==="object"?s.member_start=!0:s?.kind==="object"&&i.value!==":"&&(s.member_start=!1)}return r}function km(e){let t=[0];for(let r=0;r<e.length;r+=1)e[r]===`
4
- `&&t.push(r+1);return t}function vm(e,t){let r=0,n=e.length;for(;r<n;){let o=Math.floor((r+n)/2);e[o]<=t?r=o+1:n=o}return r}function sx(e){let t=[],r=[];for(let o of[...e].sort((i,s)=>I(i.path,s.path))){let i=km(o.content),s;try{s=wm(o.content)}catch(d){r.push({kind:"invalid_source",subject:o.path,detail:`${o.path} could not be parsed for recovery producers: ${String(d)}.`});continue}for(let d of s){let a=d.field,c=vm(i,d.offset),p=tt(a);p?t.push({path:o.path,line:c,field:a,kind:p.kind}):/(?:retry_command|candidate_command|fallback_candidate|next_best_command|example|next_step|migration_hint|restore_with)/u.test(a)&&!/(?:_total|_truncated)$/u.test(a)&&r.push({kind:"unknown_recovery_field",subject:`${o.path}:${c}:${a}`,detail:`${a} resembles a recovery reference but has no typed field contract.`})}}let n=Object.fromEntries(M.map(o=>[o,t.filter(i=>i.kind===o).length]));for(let o of M)n[o]===0&&r.push({kind:"missing_kind_producer",subject:o,detail:`No source producer emits the ${o} recovery-reference kind.`});return t.sort((o,i)=>o.path!==i.path?I(o.path,i.path):o.line!==i.line?o.line-i.line:I(o.field,i.field)),r.sort((o,i)=>o.subject!==i.subject?I(o.subject,i.subject):I(o.kind,i.kind)),{ok:r.length===0,scanned_file_count:e.length,producer_count:t.length,producer_count_by_kind:n,producers:t,findings:r}}function ax(e,t){let r=[],n=(o,i)=>{if(Array.isArray(o)){o.forEach((s,d)=>n(s,[...i,String(d)]));return}if(!(typeof o!="object"||o===null))for(let[s,d]of Object.entries(o).sort(([a],[c])=>I(a,c))){let a=tt(s),c=a?.kind==="migration_hint"&&o.semantics==="behavior_preserving"?{...a,semantics:"behavior_preserving"}:a,p=[d].flat();c!==void 0&&p.forEach((l,u)=>{let h="nested_value_field"in c&&typeof c.nested_value_field=="string"?c.nested_value_field:void 0,N=h&&typeof l=="object"&&l!==null&&!Array.isArray(l)?l[h]:l;if(typeof N!="string"||N.trim().length===0)return;let w=[...i,s,String(u)].map(L=>encodeURIComponent(L)).join("/");r.push({id:`${e}:${c.kind}:${w}`,probe_id:e,kind:c.kind,semantics:c.semantics,value:N})}),n(d,[...i,s])}};return n(t,[]),r}function dx(e,t){let r=e.flatMap(s=>(s.owned_states??[]).map(d=>({contract:s,state:d}))),n=[],o=new Map;for(let s of t){if(o.has(s.probe_id)){n.push({kind:"duplicate_probe",probe_id:s.probe_id,detail:`Observation ${s.probe_id} was supplied more than once.`});continue}o.set(s.probe_id,s)}let i=new Set(r.map(({state:s})=>s.probe_id));for(let{contract:s,state:d}of r){let a=o.get(d.probe_id);if(!a){n.push({kind:"missing_probe",probe_id:d.probe_id,detail:`No entrypoint observation was recorded for ${s.code}.`});continue}a.code!==s.code&&n.push({kind:"wrong_error_code",probe_id:d.probe_id,detail:`Expected ${s.code}; observed ${a.code}.`}),a.exit_class!==d.expected_exit_class&&n.push({kind:"wrong_exit_class",probe_id:d.probe_id,detail:`Expected ${d.expected_exit_class}; observed ${a.exit_class}.`}),d.entrypoints.includes(a.entrypoint)||n.push({kind:"wrong_entrypoint",probe_id:d.probe_id,detail:`Expected one of ${d.entrypoints.join(", ")}; observed ${a.entrypoint}.`})}for(let s of t)i.has(s.probe_id)||n.push({kind:"undeclared_probe",probe_id:s.probe_id,detail:`Observation ${s.probe_id} has no catalog declaration.`});return n.sort((s,d)=>s.probe_id!==d.probe_id?s.probe_id.localeCompare(d.probe_id):s.kind.localeCompare(d.kind)),{ok:n.length===0,declared_probe_count:r.length,observed_probe_count:t.length,findings:n}}function cx(e,t){let r=[],n=new Set,o=new Set;for(let a of e){if(n.has(a.id)){o.add(a.id),r.push({kind:"duplicate_obligation",reference_id:a.id,detail:`Recovery obligation ${a.id} was declared more than once.`});continue}n.add(a.id)}let i=new Map;for(let a of t){if(i.has(a.id)){r.push({kind:"duplicate_observation",reference_id:a.id,detail:`Recovery reference ${a.id} was observed more than once.`});continue}i.set(a.id,a),n.has(a.id)||r.push({kind:"undeclared_observation",reference_id:a.id,detail:`Recovery observation ${a.id} has no emitted obligation.`})}for(let a of e){if(o.has(a.id))continue;let c=i.get(a.id);c?c.reachable?c.semantics!==a.semantics&&r.push({kind:"wrong_semantics",reference_id:a.id,detail:`Recovery reference ${a.value} promised ${a.semantics}; proof demonstrated ${c.semantics}.`}):r.push({kind:"unreachable_reference",reference_id:a.id,detail:`Recovery reference ${a.value} did not reach its promised target.`}):r.push({kind:"missing_observation",reference_id:a.id,detail:`No reachability proof was recorded for ${a.kind} ${a.value}.`})}let s=M.map(a=>{let c=e.filter(l=>l.kind===a),p=c.filter(l=>!o.has(l.id)).map(l=>i.get(l.id)).filter(l=>l!==void 0);return{kind:a,declared:c.length,observed:p.length,passed:c.filter(l=>{let u=i.get(l.id);return!o.has(l.id)&&u?.reachable===!0&&u.semantics===l.semantics}).length}});r.sort((a,c)=>a.reference_id!==c.reference_id?a.reference_id.localeCompare(c.reference_id):a.kind.localeCompare(c.kind));let d=s.reduce((a,c)=>a+c.passed,0);return{ok:r.length===0,declared_reference_count:e.length,observed_reference_count:t.length,pass_fraction:n.size===0?1:d/n.size,coverage_by_kind:s,findings:r}}function Pm(e,t){let r=new Map(M.map(i=>[i,new Set]));for(let i of t)r.get(i.kind).add(i.value);let n=M.map(i=>({kind:i,source_producers:e.producer_count_by_kind[i],runtime_values:r.get(i).size})),o=n.filter(({source_producers:i,runtime_values:s})=>i>0&&s===0).map(({kind:i})=>i);return{ok:e.ok&&o.length===0,source_producer_count:e.producer_count,runtime_value_count:n.reduce((i,{runtime_values:s})=>i+s,0),coverage_by_kind:n,missing_runtime_kinds:o}}var px=Pm;(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0ec8c375-e58e-5ce4-b0aa-8a8a4dfa0778")}catch{}})();function Mm(e){return[e.expected_error_code!==void 0&&e.error_code!==e.expected_error_code?{code:"error_code_mismatch",probe_id:e.probe_id,detail:`Expected error code ${e.expected_error_code}, received ${e.error_code??"<missing>"}.`}:void 0,e.expected_allowed_values!==void 0&&JSON.stringify([...e.allowed_values].sort())!==JSON.stringify([...e.expected_allowed_values].sort())?{code:"incomplete_allowed_values",probe_id:e.probe_id,detail:"The refusal's accepted domain differs from the SDK-owned domain contract."}:void 0,e.expected_suggested_retry_args!==void 0&&(e.suggested_retry_args?.length??0)===0?{code:"missing_suggested_retry_args",probe_id:e.probe_id,detail:"The refusal omitted shell-free suggested retry arguments."}:void 0,e.expected_suggested_retry_args!==void 0&&(e.suggested_retry_args?.length??0)>0&&JSON.stringify(e.suggested_retry_args)!==JSON.stringify(e.expected_suggested_retry_args)?{code:"suggested_retry_args_mismatch",probe_id:e.probe_id,detail:"The refusal's suggested retry arguments differ from the SDK-owned contract."}:void 0]}function Lm(e){return[e.exit_code!==C.USAGE?{code:"non_refusal_exit",probe_id:e.probe_id,detail:`${e.entrypoint} returned exit code ${e.exit_code}; a structured usage refusal must return ${C.USAGE}.`}:void 0,e.allowed_values_required!==!1&&e.allowed_values.length===0?{code:"missing_allowed_values",probe_id:e.probe_id,detail:"The refusal omitted its complete accepted value domain."}:void 0,e.allowed_values.includes(e.rejected_value)?{code:"accepted_rejected_value",probe_id:e.probe_id,detail:`${e.rejected_value} is both rejected and advertised as allowed.`}:void 0,e.suggested_retry.trim().length===0?{code:"missing_suggested_retry",probe_id:e.probe_id,detail:"The refusal omitted an executable suggested retry."}:void 0,e.retry_succeeded?void 0:{code:"retry_failed",probe_id:e.probe_id,detail:"The advertised suggested retry did not succeed."},...Mm(e)]}function fx(e){let t=[],r=new Set,n=0;e.length===0&&t.push({code:"empty_corpus",probe_id:"corpus",detail:"At least one real refusal observation is required."});for(let o of e){if(r.has(o.probe_id)){t.push({code:"duplicate_probe",probe_id:o.probe_id,detail:`${o.probe_id} was supplied more than once.`});continue}r.add(o.probe_id);let i=t.length;for(let s of Lm(o))s!==void 0&&t.push(s);t.length===i&&(n+=1)}return t.sort((o,i)=>o.probe_id!==i.probe_id?o.probe_id.localeCompare(i.probe_id):o.code.localeCompare(i.code)),{ok:t.length===0,probe_count:r.size,closed_probe_count:n,closure_fraction:r.size===0?0:n/r.size,findings:t}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="941a11a9-f756-56b3-9dc1-8afd78bc9328")}catch{}})();var ae=[{probe_id:"tracker-root-missing",failure_kind:"missing_root",expected_error_code:"tracker_root_missing",expected_exit_code:3,recovery_kind:"initialize"},{probe_id:"tracker-root-settings-missing",failure_kind:"settings_missing",expected_error_code:"tracker_not_initialized",expected_exit_code:3,recovery_kind:"initialize"},{probe_id:"tracker-root-not-directory",failure_kind:"not_directory",expected_error_code:"tracker_root_not_directory",expected_exit_code:2,recovery_kind:"select_directory"},{probe_id:"tracker-root-unreadable",failure_kind:"unreadable_root",expected_error_code:"tracker_root_unreadable",expected_exit_code:1,recovery_kind:"repair_permissions"}];function _x(){return ae.map(e=>({...e}))}function Dm(e,t){let r=[];t.error_code!==e.expected_error_code&&r.push({code:"error_code_mismatch",probe_id:e.probe_id,detail:`Expected ${e.expected_error_code}, received ${t.error_code}.`}),t.exit_code!==e.expected_exit_code&&r.push({code:"exit_code_mismatch",probe_id:e.probe_id,detail:`Expected exit ${e.expected_exit_code}, received ${t.exit_code}.`}),t.recovery_kind!==e.recovery_kind&&r.push({code:"recovery_kind_mismatch",probe_id:e.probe_id,detail:`Expected ${e.recovery_kind}, received ${t.recovery_kind}.`});let n=t.suggested_retry_args.indexOf("init"),o=n===0||n===2&&t.suggested_retry_args[0]==="--pm-path"&&t.suggested_retry_args[1]?.length>0;return e.recovery_kind==="initialize"&&!o&&r.push({code:"missing_init_recovery",probe_id:e.probe_id,detail:"Missing and uninitialized roots must emit a tokenized init retry."}),(t.unsafe_init_recommended||e.recovery_kind!=="initialize"&&t.suggested_retry_args.includes("init"))&&r.push({code:"unsafe_init_recovery",probe_id:e.probe_id,detail:"A tracker root that cannot be initialized safely must not recommend initialization."}),t.retry_succeeded||r.push({code:"retry_failed",probe_id:e.probe_id,detail:"The emitted retry or safe alternate-root recovery did not execute successfully."}),r}function hx(e){let t=new Map(e.map(o=>[o.probe_id,o])),r=[],n=0;for(let o of ae){let i=t.get(o.probe_id);if(i===void 0){r.push({code:"missing_probe",probe_id:o.probe_id,detail:"No runtime observation was supplied for this contract."});continue}let s=Dm(o,i);r.push(...s),s.length===0&&(n+=1)}return r.sort((o,i)=>o.probe_id.localeCompare(i.probe_id)||o.code.localeCompare(i.code)),{ok:r.length===0,probe_count:ae.length,closed_probe_count:n,findings:r}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6ba3d756-dcd6-59b7-92fe-ec33d294d72b")}catch{}})();var z,Fm=Object.freeze({list:"list-item-projection","list-all":"list-item-projection","list-draft":"list-item-projection","list-open":"list-item-projection","list-in-progress":"list-item-projection","list-blocked":"list-item-projection","list-closed":"list-item-projection","list-canceled":"list-item-projection",get:"get-item-projection",graph:"graph-detail-projection",search:"search-result-projection",history:"history-entry-projection",events:"mutation-event-projection",activity:"activity-entry-projection",deps:"dependency-graph-projection",health:"health-diagnostic-projection",validate:"validation-diagnostic-projection",contracts:"contract-catalog-projection"});function Gm(e,t){if(t==="--limit")return"result-row-limit";if(t==="--node-limit")return"graph-node-limit";if(t==="--edge-limit")return"graph-edge-limit";if(t==="--output-limit")return"rendered-output-row-limit";if(t==="--output-budget")return"rendered-output-byte-budget";if(t==="--token-budget")return"context-intent-token-budget";if(t==="--full"){let r=Fm[e];if(r===void 0)throw new Error(`Command ${e} exposes --full without a registered projection concept.`);return r}return t!=="--file"?t.slice(2):["create","update","update-many"].includes(e)?"linked-file-path":["comments","notes","learnings"].includes(e)?"entry-file-input":"plan-definition-file"}function V(){if(z!==void 0)return z;let t=Z.filter(({command:i})=>Y(i)).flatMap(({command:i,family:s})=>De(i,J(i)).map(d=>({command:i,family:s,concept:Gm(i,d.flag),flag:d.flag,aliases:Object.freeze([...d.aliases??[]]),value_kind:d.repeatable?"list":d.flag==="--limit"?"number":d.value_type}))),r=new Set(t.flatMap(i=>i.aliases.map(s=>`${i.command}:${s}`))),n=t.filter(i=>!r.has(`${i.command}:${i.flag}`)),o=new Map;for(let i of n){let s=o.get(i.concept)??new Set;s.add(i.value_kind),o.set(i.concept,s)}return z=Object.freeze(n.map(i=>Object.freeze({...i,concept:o.get(i.concept)?.size===1?i.concept:`${i.concept}@${i.command}`}))),z}function Ax(){return Object.freeze(V().map(e=>Object.freeze({command:e.command,canonical_flag:e.flag,accepted_spellings:Object.freeze([...new Set([e.flag,...e.aliases])].sort())})))}var rt=Object.freeze({init:30,config:35,extension:53,package:54,packages:54,install:26,upgrade:29,create:100,copy:24,focus:22,list:86,"list-all":85,"list-draft":84,"list-open":84,"list-in-progress":84,"list-blocked":84,"list-closed":84,"list-canceled":84,aggregate:37,context:45,ctx:45,get:30,graph:34,search:78,duplicates:24,eval:25,next:35,history:35,events:33,"history-redact":27,"history-repair":26,"history-compact":30,"history-author-acknowledge":28,merge:24,schema:40,profile:22,activity:35,restore:23,update:105,"update-many":140,close:31,"close-many":72,delete:24,append:24,comments:30,notes:34,learnings:26,files:39,docs:30,deps:32,plan:109,test:48,"test-all":37,telemetry:21,stats:29,health:36,validate:45,assurance:30,gc:22,workspace:23,contracts:29,claim:36,release:23,"start-task":23,"pause-task":23,"close-task":24,meet:33,event:33,remind:29,"test-runs-worker":25});function nt(){let e=new Map(Object.keys(rt).map(t=>[t,0]));for(let{command:t}of V())e.set(t,Number(e.get(t))+1);return Object.freeze(Object.entries(rt).map(([t,r])=>Object.freeze({command:t,current:Number(e.get(t)),maximum:r})))}function $m(e,t,r){for(let n of e)for(let o of n.aliases){let i=t.get(`${n.command}:${o}`);i===void 0||i.flag===n.flag||r.push({code:"alias_collision",command:n.command,detail:`${o} aliases ${n.flag} but is canonical for ${i.flag}.`})}}function jm(e,t,r){let n=new Set(t.map(({command:o})=>o));for(let o of e.keys())n.has(o)||r.push({code:"missing_budget",command:o,detail:`${o} has canonical flags but no persisted budget.`});for(let o of t){let i=e.get(o.command)??0;i===0&&r.push({code:"stale_budget",command:o.command,detail:`${o.command} has a persisted budget but no canonical flags.`}),!(i<=o.maximum)&&r.push({code:"budget_exceeded",command:o.command,detail:`${i} canonical flags exceed the ratcheted maximum ${o.maximum}.`})}}function Um(e,t,r){let n=new Map(e.map(o=>[`${o.command}:${o.flag}`,o]));for(let o of t){let i=`${o.command}:${o.canonical_flag}`,s=n.get(i);if(!s){r.push({code:"removed_canonical_spelling",command:o.command,detail:`${o.canonical_flag} disappeared from the executable spelling inventory.`});continue}let d=new Set([s.flag,...s.aliases]);for(let a of o.accepted_spellings)d.has(a)||r.push({code:"removed_compatibility_spelling",command:o.command,detail:`${a} no longer resolves to ${o.canonical_flag}.`})}}function Ex(e=V(),t=nt(),r=[]){let n=[],o=new Map,i=new Map,s=new Map,d=new Map;for(let a of e){let c=`${a.command}:${a.flag}`;o.has(c)?n.push({code:"duplicate_canonical_flag",command:a.command,detail:`${a.flag} has more than one canonical row.`}):o.set(c,a),d.set(a.command,(d.get(a.command)??0)+1);let p=i.get(a.concept);p!==void 0&&p!==a.value_kind?n.push({code:"inconsistent_concept_kind",command:a.command,detail:`${a.concept} uses both ${p} and ${a.value_kind}.`}):i.set(a.concept,a.value_kind);let l=s.get(a.concept);l!==void 0&&l!==a.flag?n.push({code:"semantic_spelling_collision",command:a.command,detail:`${a.concept} is canonicalized by both ${l} and ${a.flag}.`}):s.set(a.concept,a.flag)}return $m(e,o,n),jm(d,t,n),Um(e,r,n),n.sort((a,c)=>a.command.localeCompare(c.command)||a.code.localeCompare(c.code)||a.detail.localeCompare(c.detail)),{ok:n.length===0,entry_count:e.length,budget_count:t.length,concept_count:new Set(e.map(({concept:a})=>a)).size,baseline_entry_count:r.length,findings:n}}function Sx(){let e=V(),t=nt(),r=new Map(t.map(({command:o})=>[o,"unknown"]));for(let{command:o,family:i}of e)r.set(o,i);return["# Generated flag lexicon budgets","","This file is generated by `listPmFlagLexicon()`. Compatibility aliases do not consume canonical budget.","","| Command | Capability family | Canonical flags | Maximum |","| --- | --- | ---: | ---: |",...t.map(({command:o,current:i,maximum:s})=>{let d=r.get(o);return`| \`${o}\` | ${d} | ${i} | ${s} |`}),""].join(`
5
- `)}(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 Ox(e){return e}function Rx(e){return e}function xx(e){return e}function Ix(e){return e}function Nx(e){return e}function wx(e){return e}function kx(e){return e}function vx(e){return e}function Px(e){return e}function Mx(e){return e}function Lx(e){return e}function Dx(e){return e}function Fx(e){return e}function Gx(e){return{handled:!0,result:e}}function $x(){return{handled:!1}}function jx(e){return e}function Ux(e){return e}function Hx(e){return e}function Bx(e){return e}function zx(e){return e}function Vx(e){return e}function Wx(e){return e}function Kx(e){return e}function Xx(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 Hm(e={},t={}){return new F(t).extension(void 0,{...e,migrate:!0})}function Bm(e={},t={}){return new F(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]="bca95ba2-258c-5be2-8428-dcb8dbc87ef0")}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]="c2063b82-58b6-54c9-baff-ca252cadf463")}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]="036baf5a-3ba9-55ea-a11b-d9e94a848b92")}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]="483445af-d102-5b49-9b45-8452f8e48ea8")}catch{}})();export{QA as ACTIONABILITY_ORDERING_KINDS,Ln as ACTIVITY_COMMANDER_STRING_OPTION_CONTRACTS,ki as ACTIVITY_FLAG_CONTRACTS,Xt as AGENT_PROVENANCE_DIMENSIONS,_o as AGGREGATE_FLAG_CONTRACTS,ti as APPEND_FLAG_CONTRACTS,YA as ASSURANCE_ACTIONS,JA as ASSURANCE_DECLARATION_KINDS,zC as ASSURANCE_DOCUMENT_VERSION,Ai as ASSURANCE_FLAG_CONTRACTS,VC as ASSURANCE_GATE_TRIGGERS,WC as ASSURANCE_MEASUREMENT_SOURCE_KINDS,cA as ASSURANCE_PRESET_IDS,jC as AssuranceEvaluationRefusalError,$C as AssuranceMutationRefusalError,UC as AssuranceSourceResolutionError,Pt as BASELINE_ITEM_FORMAT_VERSION,Jf as BOUNDARY_FIXTURE_CAPTURE_SOURCES,lE as BRIEF_LIST_FIELDS,b as BUILTIN_CORPUS_SHAPES,Yt as BUILTIN_HARNESS_SIGNAL_DESCRIPTORS,pt as BUILTIN_ITEM_TYPE_VALUES,Re as BUILTIN_PROFILES,R_ as BUILTIN_RELATIONSHIP_KINDS,vn as CALENDAR_COMMANDER_STRING_OPTION_CONTRACTS,wi as CALENDAR_FLAG_CONTRACTS,ri as CLAIM_FLAG_CONTRACTS,Yi as CLOSE_ACTION_OPTION_KEYS,Qo as CLOSE_FLAG_CONTRACTS,ei as CLOSE_MANY_FLAG_CONTRACTS,di as CLOSE_TASK_FLAG_CONTRACTS,ho as COMMENTS_FLAG_CONTRACTS,y_ as COMMON_MUTATION_COMMAND_OPTION_KEYS,Bi as COMPLETION_FLAG_CONTRACTS,ht as CONFIDENCE_TEXT_VALUES,ko as CONFIG_FLAG_CONTRACTS,Pn as CONTEXT_COMMANDER_STRING_OPTION_CONTRACTS,wE as CONTEXT_EVALUATION_METRIC_NAMES,Pi as CONTEXT_FLAG_CONTRACTS,Ee as CONTEXT_OUTPUT_VALUES,LE as CONTEXT_PACKING_PROFILES,RE as CONTEXT_RELEVANCE_SERVICE,bE as CONTEXT_RELEVANCE_SIGNAL_NAMES,BE as CONTEXT_SIGNAL_SET_VERSION,HE as CONTEXT_SIGNAL_STORE_FORMAT_VERSION,zE as CONTEXT_SIGNAL_STORE_WARNING_DETAILS,Hi as CONTRACTS_FLAG_CONTRACTS,Ri as COPY_FLAG_CONTRACTS,$n as CREATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,Un as CREATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,jn as CREATE_COMMANDER_STRING_OPTION_CONTRACTS,Xm as CREATE_DIRECT_CLOSE_REASON_DEFAULT,Ei as CREATE_FLAG_CONTRACTS,Ug as CURRENT_HISTORY_ITEM_HASH_VERSION,Mt as CURRENT_ITEM_FORMAT_VERSION,XE as ContextSignalStore,FE as ContextUsageValidationError,vC as DEFAULT_AUTHOR_IDENTITY_VOCABULARY,xS as DEFAULT_CHILD_SAMPLE_LIMIT,pE as DEFAULT_COMPACT_LIST_FIELDS,$T as DEFAULT_DERIVED_INDEX_MINIMUM_ITEMS,ep as DEFAULT_EVAL_QUERIES_RELATIVE_PATH,cS as DEFAULT_TERMINAL_TRANSITION_POLICY,ZE as DEFAULT_WORKSPACE_MEMORY_MINIMUM_ITEMS,HA as DEFECT_ESCAPE_CLASSES,BA as DEFECT_GATE_EVIDENCE_DISPOSITIONS,oi as DELETE_FLAG_CONTRACTS,ft as DEPENDENCY_KIND_VALUES,Di as DEPS_FLAG_CONTRACTS,Co as DOCS_FLAG_CONTRACTS,Ti as DUPLICATES_FLAG_CONTRACTS,Gi as EVAL_FLAG_CONTRACTS,Jc as EVAL_QUERY_SET_CONTRACT,qc as EVAL_QUERY_SET_EXAMPLE,Yc as EVAL_QUERY_SET_SCHEMA_ID,vi as EVENTS_FLAG_CONTRACTS,pi as EVENT_FLAG_CONTRACTS,cr as EXECUTABLE_COMMAND_ALIASES,C as EXIT_CODE,Ho as EXTENSION_ACTIVATE_FLAG_CONTRACTS,Uo as EXTENSION_ADOPT_ALL_FLAG_CONTRACTS,Yo as EXTENSION_ADOPT_FLAG_CONTRACTS,cC as EXTENSION_CAPABILITIES,Wm as EXTENSION_CAPABILITY_CONTRACT,zm as EXTENSION_CAPABILITY_CONTRACT_VERSION,Vm as EXTENSION_CAPABILITY_LEGACY_ALIASES,Ot as EXTENSION_CAPABILITY_REGISTRATION_SURFACES,Xo as EXTENSION_CATALOG_FLAG_CONTRACTS,Bo as EXTENSION_DEACTIVATE_FLAG_CONTRACTS,jo as EXTENSION_DESCRIBE_FLAG_CONTRACTS,Ko as EXTENSION_DOCTOR_FLAG_CONTRACTS,$o as EXTENSION_EXPLORE_FLAG_CONTRACTS,vo as EXTENSION_FLAG_CONTRACTS,Mo as EXTENSION_INIT_FLAG_CONTRACTS,Fo as EXTENSION_INSTALL_FLAG_CONTRACTS,Vo as EXTENSION_MANAGE_FLAG_CONTRACTS,zo as EXTENSION_MIGRATE_FLAG_CONTRACTS,pC as EXTENSION_POLICY_MODES,lC as EXTENSION_POLICY_SURFACES,Wo as EXTENSION_RELOAD_FLAG_CONTRACTS,fC as EXTENSION_SANDBOX_PROFILES,Po as EXTENSION_SCOPE_FLAG_CONTRACTS,uC as EXTENSION_TRUST_MODES,Go as EXTENSION_UNINSTALL_FLAG_CONTRACTS,_A as EXTERNAL_DEPENDENCY_SOURCE_KIND,hA as EXTERNAL_DEPENDENCY_SOURCE_KIND_ALIAS,yo as FILES_FLAG_CONTRACTS,xi as FOCUS_FLAG_CONTRACTS,hi as GC_FLAG_CONTRACTS,mE as GET_DEPTH_VALUES,Mi as GET_FLAG_CONTRACTS,fo as GLOBAL_FLAG_CONTRACTS,Ys as GRAPH_DURABLE_CACHE_MIN_ITEMS,Xs as GRAPH_DURABLE_CACHE_VERSION,Fi as GRAPH_FLAG_CONTRACTS,yr as GRAPH_SUBCOMMAND_VALUES,Li as GUIDE_FLAG_CONTRACTS,yi as HEALTH_FLAG_CONTRACTS,Oo as HISTORY_AUTHOR_ACKNOWLEDGE_FLAG_CONTRACTS,EA as HISTORY_AUTHOR_ATTRIBUTION_BASELINE,mb as HISTORY_COMPACT_BULK_DEFAULT_MIN_ENTRIES,Ro as HISTORY_COMPACT_FLAG_CONTRACTS,Ao as HISTORY_FLAG_CONTRACTS,So as HISTORY_REDACT_FLAG_CONTRACTS,bo as HISTORY_REPAIR_FLAG_CONTRACTS,Bc as INIT_AGENT_GUIDANCE_MODE_VALUES,wo as INIT_FLAG_CONTRACTS,Jo as INSTALL_FLAG_CONTRACTS,_t as ISSUE_SEVERITY_VALUES,bi as ITEM_COMPLETE_FLAG_CONTRACTS,YS as ITEM_LATEST_TIMESTAMP_FIELDS,Km as ITEM_METADATA_KEY_ORDER,Si as ITEM_MUTATE_FLAG_CONTRACTS,Oi as ITEM_REOPEN_FLAG_CONTRACTS,lt as ITEM_TYPE_VALUES,XS as ITEM_UNION_COLLECTION_FIELDS,KE as JsonFileContextSignalStoreAdapter,To as LEARNINGS_FLAG_CONTRACTS,gc as LINKED_TEST_ENV_NAME_PATTERN,Tc as LINKED_TEST_PM_CONTEXT_MODE_VALUES,hc as LINKED_TEST_PROTECTED_ENV_KEYS,wn as LIST_COMMANDER_STRING_OPTION_CONTRACTS,uE as LIST_COMMAND_DEFAULT_PROJECTIONS,_C as LIST_FILTER_EXTENSION_FLAG_DEFINITIONS,mo as LIST_FILTER_FLAG_CONTRACTS,TE as LIST_SORT_FIELDS,yE as LIST_SORT_ORDER_VALUES,RS as MAX_CHILD_PROJECTION_ITEMS,ci as MEET_FLAG_CONTRACTS,ZS as MERGE_DRIVER_ARTIFACT_VALUES,Eo as MERGE_FLAG_CONTRACTS,ib as MUTATION_EVENT_WIRE_BUDGET,v as MemoryRelationshipGraphAdapter,Mn as NEXT_COMMANDER_STRING_OPTION_CONTRACTS,ji as NEXT_FLAG_CONTRACTS,Zd as NEXT_OUTPUT_VALUES,go as NOTES_FLAG_CONTRACTS,Lo as PACKAGE_FLAG_CONTRACTS,Do as PACKAGE_INIT_FLAG_CONTRACTS,ai as PAUSE_TASK_FLAG_CONTRACTS,Xi as PLAN_CREATE_METADATA_PARAMETER_KEYS,No as PLAN_FLAG_CONTRACTS,Pc as PLAN_SHOW_DEPTH_VALUES,vc as PLAN_SUBCOMMANDS,Mc as PLAN_TEMPLATE_NAMES,ns as PM_CLI_EXPECTED_ERROR_NAME,jy as PM_CLI_GRAMMAR_CONTRACT,vy as PM_CLI_GRAMMAR_NOUNS,Er as PM_CLI_ONLY_TOOL_ACTION_WAIVERS,Py as PM_CLI_SHARED_VERBS,dr as PM_COMMAND_ALIAS_CONTRACTS,Z as PM_COMMAND_CAPABILITY_CONTRACTS,Gy as PM_COMMAND_DESTINATION_CONTRACTS,_S as PM_COMMAND_EXIT_CONTRACTS,mS as PM_COMMAND_EXIT_OUTCOME_CONTRACTS,jr as PM_COMMAND_OUTPUT_BUDGET_CONTRACTS,xb as PM_COMMAND_OUTPUT_ENVELOPE_CONTRACTS,$y as PM_COMMAND_POSITIONAL_CONTRACTS,wp as PM_COMMAND_VISIBILITY_CONTRACTS,gC as PM_COMPLETE_LIST_FINDING_CODES,SC as PM_CONTEXT_INTENTS_FILE,xg as PM_CONTEXT_INTENT_CONTRACTS,Tr as PM_CORE_COMMAND_NAMES,g as PM_CORPUS_SHAPE_SCHEMA,br as PM_DEPRECATED_TOOL_ACTIONS,Lr as PM_DIAGNOSTIC_DEGRADATION_STEPS,Dr as PM_DIAGNOSTIC_OUTPUT_BUDGET_CONTRACTS,Mr as PM_DIAGNOSTIC_OUTPUT_CLASSES,Or as PM_DISCOVERABLE_TOOL_ACTIONS,bb as PM_ERROR_CODE_CATALOG,Cb as PM_ERROR_CODE_EXIT_CLASS_CONTRACTS,Ve as PM_EXACT_COVERAGE_METRICS,ur as PM_EXTENSION_CAPABILITY_CONTRACTS,Cr as PM_EXTENSION_PACKAGE_ACTION_SUBCOMMANDS,mr as PM_EXTENSION_POLICY_MODE_CONTRACTS,gr as PM_EXTENSION_POLICY_SURFACE_CONTRACTS,hr as PM_EXTENSION_SANDBOX_PROFILE_CONTRACTS,fr as PM_EXTENSION_SERVICE_NAME_CONTRACTS,_r as PM_EXTENSION_TRUST_MODE_CONTRACTS,NA as PM_GITATTRIBUTES_END,IA as PM_GITATTRIBUTES_START,kA as PM_GITATTRIBUTES_V2_END,wA as PM_GITATTRIBUTES_V2_START,cs as PM_GITIGNORE_END,ds as PM_GITIGNORE_START,Ar as PM_ITEM_ACTION_SUBCOMMANDS,Fp as PM_MCP_PROMPT_CONTRACTS,Dp as PM_MCP_RESOURCE_CONTRACTS,Mp as PM_MCP_TOOL_COMMAND_CONTRACTS,vh as PM_MODE_PAIRED_OUTPUT_PROJECTION_CONTRACTS,hn as PM_MUTATION_ACTION_CONTRACTS,Pr as PM_OUTPUT_BUDGET_CLASSES,vr as PM_OUTPUT_DEGRADATION_STEPS,Ob as PM_OUTPUT_ENVELOPE_KINDS,ye as PM_PACKAGE_CONVENTIONAL_RESOURCE_ROOTS,Te as PM_PACKAGE_RESOURCE_KINDS,My as PM_POSITIONAL_ACTION_CONTRACTS,rs as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA,es as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA_VERSION,_g as PM_READ_OUTPUT_COMPOSITION_OPTION_FLAGS,ug as PM_READ_OUTPUT_DIMENSIONS,mg as PM_READ_OUTPUT_OPTION_FLAGS,ag as PM_READ_OUTPUT_SESSION_MAX_SEEN_ITEM_IDS,sg as PM_READ_OUTPUT_SESSION_MIN_TOKENS,fg as PM_READ_OUTPUT_SURFACES,hg as PM_READ_OUTPUT_SURFACE_CONTRACTS,kh as PM_READ_ROW_CONTRACTS,wh as PM_READ_ROW_JQ_SELECTOR,ix as PM_RECOVERY_REFERENCE_FIELDS,M as PM_RECOVERY_REFERENCE_KINDS,hS as PM_SUCCESS_EXIT_CODES,Sr as PM_TOOL_ACTIONS,Ji as PM_TOOL_ACTION_PARAMETER_CONTRACTS,ts as PM_TOOL_PARAMETERS_SCHEMA,Qi as PM_TOOL_PARAMETERS_SCHEMA_MAJOR,Zi as PM_TOOL_PARAMETERS_SCHEMA_VERSION,Wi as PM_TOOL_RESERVED_CUSTOM_FIELD_PROPERTIES,He as PM_WORKSPACE_RECIPE_SCHEMA,Io as PROFILE_FLAG_CONTRACTS,Pe as PROFILE_LINT_CODES,ve as PROFILE_LINT_DIMENSIONS,Oe as PROFILE_NAMES,yp as PROFILE_SUBCOMMANDS,W as PmCliError,F as PmClient,TC as PmCompleteListValidationError,Xh as QUERY_CURSOR_CONTRACT,Zo as REINDEX_FLAG_CONTRACTS,MT as REINDEX_LOCK_ID,ie as RELATIONSHIP_GRAPH_SNAPSHOT_VERSION,ii as RELEASE_FLAG_CONTRACTS,li as REMIND_FLAG_CONTRACTS,fe as RESERVED_ITEM_FIELD_NAMES,ni as RESTORE_FLAG_CONTRACTS,mt as RISK_VALUES,tC as RelationshipEventLog,rC as RelationshipEventStore,A as RelationshipGraph,X as RelationshipKindRegistry,xo as SCHEMA_FLAG_CONTRACTS,kn as SEARCH_COMMANDER_STRING_OPTION_CONTRACTS,hC as SEARCH_EXTENSION_FLAG_DEFINITIONS,Ui as SEARCH_FLAG_CONTRACTS,Md as SEMANTIC_ATTRIBUTION_LIMITS,Jm as SETTINGS_DEFAULTS,ip as SNAPSHOT_SCHEMA,OA as SOURCE_CONTEXT_ACCESS_ENV,RA as SOURCE_CONTEXT_WRITE_OVERRIDE_ENV,si as START_TASK_FLAG_CONTRACTS,gi as STATS_FLAG_CONTRACTS,ut as STATUS_VALUES,uo as SUBCOMMAND_GLOBAL_FLAG_CONTRACTS,Hg as SUPPORTED_HISTORY_ITEM_HASH_VERSIONS,f_ as SUPPRESS_HOST_OUTPUT_MARKER,mi as TELEMETRY_FLAG_CONTRACTS,ol as TELEMETRY_SUBCOMMANDS,fi as TEST_ALL_FLAG_CONTRACTS,ui as TEST_FLAG_CONTRACTS,_i as TEST_RUNS_FLAG_CONTRACTS,Qp as TEST_RUN_MEASUREMENT_LIMIT,io as TOOL_ACTIVITY_OPTION_CONTRACTS,Kn as TOOL_AGGREGATE_OPTION_CONTRACTS,to as TOOL_BULK_MUTATION_FILTER_OPTION_CONTRACT_SOURCE,oo as TOOL_CALENDAR_OPTION_CONTRACTS,no as TOOL_CLOSE_MANY_FILTER_OPTION_CONTRACTS,so as TOOL_CONTEXT_OPTION_CONTRACTS,Zn as TOOL_CREATE_OPTION_CONTRACTS,qn as TOOL_CREATE_OPTION_CONTRACT_SOURCE,ao as TOOL_DEPS_OPTION_CONTRACTS,co as TOOL_GRAPH_OPTION_CONTRACTS,Wn as TOOL_LIST_FILTER_OPTION_CONTRACTS,Xn as TOOL_SEARCH_FILTER_OPTION_CONTRACTS,Jn as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACTS,Yn as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACT_SOURCE,ro as TOOL_UPDATE_MANY_FILTER_OPTION_CONTRACTS,eo as TOOL_UPDATE_OPTION_CONTRACTS,Qn as TOOL_UPDATE_OPTION_CONTRACT_SOURCE,Ym as TYPE_TO_FOLDER,l_ as UNKNOWN_SUBCOMMAND_COMPATIBILITY_CODES,Hn as UPDATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,zn as UPDATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,Bn as UPDATE_COMMANDER_STRING_OPTION_CONTRACTS,Ii as UPDATE_FLAG_CONTRACTS,Ni as UPDATE_MANY_FLAG_CONTRACTS,qo as UPGRADE_FLAG_CONTRACTS,Ci as VALIDATE_FLAG_CONTRACTS,$i as WORKSPACE_FLAG_CONTRACTS,Yr as WORKSPACE_HISTORY_ID,sp as WORKSPACE_SNAPSHOT_ACTIONS,Rs as WorkspaceGraphCache,aC as WorkspaceTransactionInterruptedError,ss as _testOnly,SE as _testOnlyAggregateCommand,Hc as _testOnlyConfigCommand,kS as _testOnlyGetCommand,ja as _testOnlyHealthCommand,Kc as _testOnlyInit,zc as _testOnlyInitAgentGuidance,rO as _testOnlyItemTransaction,cb as _testOnlyMutationEvents,sS as _testOnlyNextCommand,VS as _testOnlySearchCommand,SS as _testOnlySimilarity,mp as _testOnlyTemplates,ld as _testOnlyValidateCommand,fA as acceptAssuranceProposals,_a as acknowledgeUnknownAuthorHistoryEvents,ma as acknowledgeUnknownAuthorHistoryEventsFromTransport,jT as acquireItemMetadataDerivedIndexLock,Xr as acquireLock,mO as activateExtensionForTest,$_ as activateExtensions,Kt as agentSessionEnvironment,Ql as aggregate,Hp as analyzeAgentProvenanceDescriptorCoverage,VA as analyzeDefectChangeRisk,oC as analyzeGraphImpact,hs as analyzeHierarchyIntegrity,iC as analyzeKnowledgeGraph,CS as analyzePmCommandExitConformance,Rr as analyzePmToolActionParity,eb as analyzeReconciliationDiscard,nC as analyzeRelationshipExecution,Us as analyzeRelationshipSchedule,Rf as analyzeSdkActionCoverage,ge as analyzeSdkCliParameterCompleteness,lu as append,Kr as appendHistoryEntry,Qr as appendWorkspaceAuditEvent,Zr as appendWorkspaceHistoryChange,dT as applyAcceptanceCriteriaMutations,lA as applyAssurancePreset,kf as applyBootstrapPagerPolicy,vg as applyContextIntentProjection,qd as applyContextTagProjection,CE as applyFilterValueEcho,Xy as applyHistoryPatch,Gf as applyInvocationAuthorOverride,Wa as applyPathMigrations,bg as applyReadOutputDimensions,Cg as applyReadOutputIncludeModes,cg as applyReadOutputSessionReferences,lh as applyRegisteredItemFieldDefaultsAndValidation,Ja as applyStandaloneNote,Ma as applyStoredExtensionMigrationState,pT as applyTagRemovals,fS as applyTerminalOrderingPolicy,qa as artifactKey,t_ as asRecordClone,e_ as asRecordOrNull,q as assembleWorkspaceRelationshipGraph,EC as assertCompleteListResult,XO as assertExtensionBlueprint,KO as assertExtensionCapabilityUsage,NO as assertExtensionDeactivated,qO as assertExtensionManifestCompatible,JO as assertExtensionManifestMatchesBlueprint,ZO as assertExtensionPreflight,ys as assertHierarchyMutationAllowed,_b as assertHistoryCompactTarget,rb as assertHistoryRepairTarget,un as assertInitializedTracker,Ka as assertLinkedArtifactMutationIsUnambiguous,mm as assertMemoryRelationshipGraphAdapterConformance,fT as assertNoUnknownCsvKeys,wO as assertPackageManifest,sT as assertParentReferenceIsNotSelf,YO as assertProjectProfile,kR as assertProjectRuntimeCompatibility,Ph as assertProjectionModeChoice,ln as assertReadableTrackerRoot,kO as assertRegisteredCommandContract,UO as assertRegisteredCommandOverride,FO as assertRegisteredExporter,vO as assertRegisteredFlags,PO as assertRegisteredHook,DO as assertRegisteredImporter,GO as assertRegisteredItemField,$O as assertRegisteredItemType,WO as assertRegisteredMigration,HO as assertRegisteredParserOverride,BO as assertRegisteredPreflightOverride,jO as assertRegisteredProfile,zO as assertRegisteredRendererOverride,MO as assertRegisteredSearchProvider,VO as assertRegisteredServiceOverride,LO as assertRegisteredVectorStoreAdapter,w_ as assertRelationshipEdgeAllowed,qe as assertRelationshipGraphAdapterConformance,KC as assuranceAssertionUpdateIsLoosening,Lg as attachContextIntentReceipt,$h as attachOutputOmissionReceipt,Fg as attachOutputTokenAccounting,Dg as attachReadOutputContracts,pg as attachReadOutputSessionReceipt,Ca as auditMergeAttributeFence,vA as auditMergeDriverConfiguration,Ws as auditWorkspaceRelationshipGraph,zt as boundAgentEpisodeIdentity,ng as boundReadOutputRows,Kd as buildChildrenByParent,PS as buildCompactSearchFilterSummary,AE as buildContentFilterEcho,WE as buildContextSignalSnapshot,Hf as buildCorpusShapeItemPlan,zA as buildDefectRecurrenceIndex,wa as buildExtensionDescribeResult,EE as buildGovernanceMissingFilterEcho,bT as buildInvalidTypeError,IS as buildItemChildrenRollup,eO as buildItemCompletionMutations,OE as buildItemContextRelevanceCandidates,WT as buildItemNotFoundError,wS as buildItemSchedule,Ta as buildMergeAttributePatterns,qi as buildPmActionToolInputSchema,CA as buildRelationshipContext,qT as buildSearchCorpus,QT as buildSemanticCorpusInput,pn as buildTrackerInitializationRecovery,iy as buildVectorizationEmbeddingIdentity,sy as buildVectorizationEmbeddingMetadata,MS as buildVerboseSearchFilters,QE as buildWorkspaceMemorySnapshot,Bt as canonicalDocument,C_ as canonicalizeCommandOptionKey,x_ as canonicalizeRelationshipKind,sx as censusPmRecoveryReferenceProducers,AC as certifyCompleteListResult,uO as checkExtensionManifestCompatibility,Xu as claim,Yu as claimNext,SA as classifyHistoryAuthorEvent,pb as classifyHostEnvironmentFault,HS as classifyImplicitSemanticFallbackReason,Ft as classifyItemFormatVersion,al as classifyLinkedTestFailure,rh as clearActiveExtensionHooks,ea as clearDurableGraphCache,Oh as clearFocusedItem,us as clearWorkspaceContractsCache,Ku as close,oc as closeItem,nf as closeTask,Mf as coalesceRepeatedListFlags,eE as collectBlockedByIds,rE as collectBlockedByIdsFromCorpus,Ss as collectDanglingDependencyReferences,oE as collectDependencyBlockedIds,As as collectDuplicateDependencyRows,Vs as collectDuplicateRelationshipEdgeGroups,US as collectErrorCauseCodes,_s as collectHierarchyRelations,bs as collectMissingDependencyTargetIds,lc as collectNewOrderingCycleWarnings,Hs as collectOrderingCycles,Es as collectOrderingStorageContradictions,RC as collectPackageContextIntentContracts,Ae as collectPackageExtensionDirectories,ch as collectRegisteredItemFieldNames,gh as collectRuntimeCreateFieldValues,OT as collectRuntimeFilterValues,Th as collectRuntimeUpdateFieldValues,Hd as collectSubtreeIds,Rt as collectUsedExtensionCapabilities,A_ as commandOptionFlagLabel,ru as comments,Ll as commitImportedItem,tO as commitItemCompletion,Qb as commitItemMutations,dC as commitWorkspaceTransaction,lo as compactFlagAliasContracts,Bd as compareCriticalItems,$ as comparePmDateVersions,sC as compareRelationshipSnapshots,r_ as compareTimestampStrings,FC as compileHistoryProvenanceMatcher,wg as composeContextIntentContracts,iO as composeExtension,lO as composeExtensionPackage,iE as computeActionabilityReport,Qg as computeHistoryDiff,$s as computeRelationshipCentrality,Gs as computeRelationshipDominators,Os as computeWorkspaceGraphFingerprint,fu as config,th as consumeAfterCommandAffectedItems,Kl as context,Mg as contextIntentRowId,qu as copy,dl as countFailureCategories,tg as countReadOutputRows,zu as create,pA as createAssurancePreset,UA as createAssuranceWorkspaceContext,o_ as createCheckpointId,yC as createCompleteListOptions,j_ as createCoreCommandHookContext,Ue as createCorpusShapeMeasurement,ZC as createEmptyAssuranceDocument,v_ as createEmptyExtensionRegistrationRegistry,as as createExtensionCommandSdk,bt as createExtensionContributionInventory,QO as createExtensionTestHarness,Wr as createHistoryEntry,Ey as createLazyModule,VT as createMutationGuardSdk,Mh as createOutputOmissionReceipt,os as createPmCliExpectedError,$f as createPmCliProgram,Gr as createPmCommandOutputBudget,Uh as createQueryFingerprint,fm as createRelationshipGraphScaleFixture,x as createRelationshipGraphSnapshot,ue as createRelationshipKindRegistry,LS as createSearchCursorFingerprint,U_ as createSerialQueue,mT as createStdinTokenResolver,u_ as createUnknownSubcommandError,ap as createWorkspaceSnapshot,_O as deactivateExtensionForTest,$x as declineServiceOverride,Pg as decodeContextIntentCursor,Ay as decodeHtmlEntitiesInOptions,Vh as decodeQueryCursor,Bh as decodeQueryCursorEnvelope,zh as decodeQueryCursorState,ig as decodeReadOutputContinuationCursor,Qa as dedupeLinkedArtifacts,xE as defaultScoreContextCandidates,Vx as defineAfterCommandHook,Bx as defineBeforeCommandHook,zx as defineBeforeMutationHook,xx as defineCommand,Mx as defineCommandOverride,S as defineCorpusShape,Hx as defineExporter,nO as defineExtension,oO as defineExtensionBlueprint,Ox as defineExtensionManifest,Ix as defineFlag,Ux as defineImporter,wx as defineItemField,Nx as defineItemType,kx as defineMigration,Xx as defineOnIndexHook,Kx as defineOnReadHook,Wx as defineOnWriteHook,Lx as defineParserOverride,$r as definePmCommandOutputBudget,Rb as definePmCommandOutputEnvelope,Ab as definePmErrorCodeCatalog,Dx as definePreflightOverride,Rx as defineProjectProfile,jx as defineRendererOverride,vx as defineSearchProvider,Fx as defineServiceOverride,Px as defineVectorStoreAdapter,Be as defineWorkspaceRecipe,Zu as deleteItem,fp as deleteWorkspaceSnapshot,k_ as dependencyToRelationship,cu as deps,uA as deriveAssuranceProposals,aO as deriveExtensionCapabilities,AS as derivePmBulkMutationEffect,ax as derivePmRecoveryReferenceObligations,ba as deriveSchemaEvolutionMigrationId,my as deriveTelemetryCommandResolution,NT as describeAllowedTransitions,bA as describeExtensionActivation,dO as describeExtensionBlueprint,Od as describeItemOwnershipConflict,we as describeProfileComposition,ke as describeProjectProfile,Fb as describeUnknownError,Qt as detectAgentIdentity,nr as detectHarnessIdentity,Ds as detectRelationshipCommunities,er as diagnoseAgentIdentity,Ks as diffRelationshipAuditSnapshots,rl as diffTestRunMeasurements,F_ as discoverExtensions,yt as discoverNearbyPmRoot,am as discoverProjectRuntimeVersionPins,du as docs,tu as duplicates,Js as durableGraphCachePath,ta as durableGraphCacheStatus,Lt as effectiveItemFormatVersion,ky as emitTelemetryErrorEvent,Ml as emptyImportedDocument,Hh as encodeQueryCursor,og as encodeReadOutputContinuationCursor,eT as enforceHistoryStreamPolicyForItem,tT as enforceHistoryStreamPolicyForItems,Tb as enrichCliFlagInvocationContract,De as enrichCliFlagInvocationContracts,Jy as ensureMaterializedHistoryTarget,ls as ensurePmGitignore,Ua as ensureScope,fy as ensureSentryInit,Pl as ensureTrackerInitialized,Ms as enumerateRelationshipPaths,Hr as estimatePmOutputTokens,eA as evaluateAssuranceAssertion,tA as evaluateAssuranceGate,yR as evaluateBoundaryFixtures,kE as evaluateContextRanking,WA as evaluateDefectGateEvidence,QC as evaluateMeasurement,Tn as evaluateMutationGuard,Xp as evaluateProvenanceCoverage,Vp as evaluateSemanticAttributionCoverage,_c as evaluateSimilarityGovernance,IT as evaluateTransition,ey as executeEmbeddingBatchesWithRetry,ny as executeVectorDelete,oy as executeVectorReset,ry as executeVectorUpsert,Vf as executeWorkspaceRecipe,Ya as expandAddGlobEntries,id as explainSourceTraceability,of as extension,af as extensionActivate,df as extensionDeactivate,sf as extensionList,Hm as extensionMigrate,Wy as extractPatchFailureContext,cd as extractReferencedPmItemIdsFromCommand,um as federateRelationshipGraphSnapshots,iu as files,su as filesDiscover,au as filesLookup,Yf as findCoverageDeficits,mc as findDuplicateClusters,ga as findGitWorkspaceRoot,Ia as findInstalledNpmPackageCandidate,Fs as findRedundantRelationshipEdges,js as findRelationshipCutStructure,fc as findSimilarItems,wy as finishTelemetryCommand,c_ as flattenFlagListValue,Wf as flushTelemetryQueue,ef as focus,Ls as forEachMatchedRelationshipEdge,zs as formatDuplicateEdgeGroup,gs as formatHierarchyRelation,Bs as formatOrderingStorageContradiction,Fy as formatPmPositionalActionFlagTip,xp as formatProfileApplyHuman,Rp as formatProfileLintHuman,bp as formatProfileListHuman,Op as formatProfileShowHuman,xa as formatSchemaEvolutionMigrationHuman,zS as formatVectorIndexRecoveryWarnings,Gu as gc,an as generateItemId,ql as get,Z_ as getActiveCommandResult,Ig as getActiveContextIntentContracts,It as getActiveExtensionRegistrations,nA as getAssuranceDeclaration,Ef as getContracts,Sh as getFocusedItem,Et as getHistoryPath,eC as getItemAt,At as getItemPath,An as getMutationActionContract,ps as getPmGitignoreBlock,Ct as getSettingsPath,Af as getWorkspaceContracts,Jr as getWorkspaceHistoryPath,pu as graph,qs as graphAuditBaselinePath,Wp as groupHistoryByEpisode,Gx as handleServiceOverride,Y as hasSubcommandFlagContractsForCommand,ay as hasVectorizationEmbeddingIdentityChanged,dy as hasVectorizationVectorDimensionChanged,Bg as hashDocument,zg as hashDocumentForVersion,Vg as hashEmptyDocument,Fu as health,ws as hierarchyAncestors,ks as hierarchyDescendants,Hu as historyCompact,Bu as historyCompactBulk,DC as historyEntryMatchesProvenance,$u as historyRedact,ju as historyRepair,Uu as historyRepairAll,tE as indexBlockedByIds,Ts as indexHierarchyRelations,cy as inferConsistentVectorDimension,Fr as inferPmOutputBudgetClass,uu as init,CC as inspectCompleteListResult,ca as inspectHistoryAuthorStream,cm as inspectProjectRuntimeCompatibility,In as inspectStaleInProgressItems,qr as inspectWorkspaceHistoryState,dp as inspectWorkspaceSnapshot,Sa as installMergeFence,ec as isAlreadyClaimedError,jb as isCommanderError,Cd as isErrnoError,gA as isExternalDependencySourceKind,__ as isHostOutputSuppressed,yn as isMutationAction,N_ as isOrderingRelationshipKind,oT as isPlaceholderReferenceToken,is as isPmCliExpectedError,Ir as isPmExtensionCapabilityContract,wr as isPmExtensionPolicyModeContract,kr as isPmExtensionPolicySurfaceContract,Nr as isPmExtensionServiceNameContract,TS as isPmKnownExitCode,Nb as isPmMutationReceipt,gS as isPmSuccessfulExitCode,xr as isPmToolAction,dm as isProjectMutatingInvocation,Sy as isPureSnakeCaseAlias,Og as isReadOutputBudgetExceeded,Dh as isReadRowContract,da as isRuntimeRecord,Ry as isTerminalPlanMode,Ch as isTerminalStatus,ct as isTimestampLiteral,qb as itemDocumentToMutationOptions,NS as itemHasSchedule,En as jaccardSimilarity,ou as learnings,p_ as levenshteinDistanceWithinLimit,gd as limitAnnotationEntries,cO as lintExtensionBlueprint,Me as lintProjectProfile,Xl as list,Pf as listAliasPluralKeys,Yl as listAllComplete,BT as listAllDocumentCandidatesCached,_n as listAllItemMetadata,zT as listAllItemMetadataLight,rA as listAssuranceDeclarations,dA as listAssuranceVerdicts,jf as listBuiltinCorpusShapes,zb as listCoreClosedDomainContracts,_E as listGetProjectionFields,MA as listInvalidProvenanceHistoryStreamIds,fE as listListProjectionFields,FA as listMergeReceipts,Cn as listMutationActions,sb as listMutationEvents,nt as listPmCommandFlagBudgets,Pp as listPmCommandsForFamily,vp as listPmCommandsForTier,V as listPmFlagLexicon,Ax as listPmFlagSpellingInventory,Lp as listPmMcpToolsForProfile,Ne as listProfiles,_x as listTrackerPreflightRecoveryContracts,cp as listWorkspaceSnapshots,xC as loadContextIntentRuntimeLayers,_p as loadCreateTemplateOptions,G_ as loadExtensions,na as loadGraphAuditBaseline,s_ as loadMutationCheckpoint,_ as loadRelationshipGraphAdapter,fn as locateItem,uT as looksLikeGenericKeyValueEntry,rg as mapReadOutputRows,GA as markMergeReceiptReconciled,RT as matchesRuntimeFilters,Iy as maybeRunFirstUseTelemetryPrompt,Bf as measureCorpusShapePlan,cT as mergeAdditiveTags,sO as mergeExtensionBlueprints,WS as mergeHistoryStreams,JS as mergeItemDocuments,qS as mergeJsonDocuments,Lf as mergeLinkedTestTwoTokenEntries,KS as mergeRelationshipEventStreams,Yd as mergeSortedWarnings,Oy as migrateItemFilesToFormat,XT as mutateItem,KT as mutateItemWithHistoryContext,en as mutateWorkspaceJsonWithHistory,Zl as next,hd as normalizeAnnotationTransportOptions,BC as normalizeAssuranceEvaluation,HC as normalizeAssuranceMutation,Df as normalizeBootstrapInvocation,Cs as normalizeDependencyGraphTarget,yA as normalizeDependencySeedId,TA as normalizeDependencySourceKind,St as normalizeExtensionContributionInventory,PA as normalizeInvalidHistoryProvenance,Pb as normalizeItemAddressInvocation,Dt as normalizeItemFormatVersion,sn as normalizeItemId,jt as normalizeItemMetadata,vf as normalizeLegacyExtensionActionSyntax,Xa as normalizeLinkedPath,nT as normalizeParentReferenceValue,xe as normalizeProfileName,on as normalizeRawItemId,Ag as normalizeReadOutputIncludeModeOptions,Yg as normalizeReplayPatchOps,Sn as normalizeSimilarityText,yh as normalizeStatusForRegistry,$t as normalizeStatusInput,_h as normalizeStatusInputWithRegistry,$b as normalizeThrownExitCode,nu as notes,dt as nowIso,Zs as openDurableGraphCache,vs as orderingPredecessors,Ps as orderingSuccessors,DE as packContextCandidates,zd as packRankedContextItems,Tf as packageActivate,gf as packageCatalog,yf as packageDeactivate,_f as packageDescribe,ff as packageDoctor,lf as packageInstall,cf as packageLifecycle,pf as packageList,mf as packageManage,Bm as packageMigrate,hf as packageReload,uf as packageUninstall,Kh as paginateQueryRows,Ha as parseAddEntries,Ba as parseAddGlobEntries,yd as parseAnnotationTextInput,Xb as parseAtomicMutationControls,wf as parseBootstrapCommandName,xf as parseBootstrapGlobalOptions,Nf as parseBootstrapHelpRequest,Ff as parseBootstrapTypeValue,jd as parseContextDepth,Dd as parseContextFocusFields,bC as parseContextIntentDeclarations,Ud as parseContextSections,VE as parseContextSignalSnapshot,lT as parseCsvKv,XA as parseDefectChangeRiskRequest,KA as parseDefectRecurrencePolicy,Zc as parseEvalQuerySet,sa as parseGraphSubcommand,MC as parseHistoryProvenanceFilters,NC as parseIntegerLimit,Ah as parseItemDocument,Yb as parseItemMutationBatch,ST as parseLimit,Rc as parseLinkedTestAssertionEqualsMap,xc as parseLinkedTestAssertionGteMap,Ac as parseLinkedTestBoolean,Ec as parseLinkedTestContextMode,Cc as parseLinkedTestEnvClear,yc as parseLinkedTestEnvSet,Ic as parseLinkedTestJsonEntries,Oc as parseLinkedTestMinLines,bc as parseLinkedTestRegexList,Sc as parseLinkedTestStringList,Va as parseMigrateEntries,sE as parseMultiValueFilter,wb as parseMutationReceipt,hT as parseOptionalNonNegativeInteger,_T as parseOptionalNumber,wC as parsePriority,cE as parsePriorityFilterSet,dg as parseReadOutputSession,ph as parseRegisteredItemFieldAssignments,P as parseRelationshipGraphSnapshot,za as parseRemoveEntries,od as parseSourceLineRange,yT as parseStatusFilterCsv,aE as parseStringFilterSet,dn as parseTags,el as parseTestRunMeasurements,kC as parseType,dE as parseTypeFilterSet,fa as parseUnknownAuthorHistoryEventCoordinates,aS as partitionDecisionEntries,Zg as patchPathToChangedField,ot as pathExists,rf as pauseTask,Qs as persistDurableGraphResult,wT as persistSelectedItemFormat,qE as planCompletedAtBackfill,Le as planProfileApplication,nx as planRelationshipEventBackfill,ia as planRelationshipRemediation,Oa as planSchemaEvolutionMigration,la as planUnknownAuthorHistoryAcknowledgment,pp as planWorkspaceSnapshotRestore,Hy as positionalShapeKey,By as positionalSignatureKey,fO as preflightExtension,On as prepareSimilarityText,jg as printError,$g as printResult,ku as profile,Mu as profileApply,Lu as profileLint,vu as profileList,Pu as profileShow,eh as projectAfterCommandItemSnapshot,Fd as projectContextFocusRows,Zp as projectFleetAttributionAnalytics,LC as projectHistoryProvenance,zr as projectPmDiagnosticOutput,Vr as projectPmDiagnosticText,Jp as projectProvenanceCoverageAnalytics,pd as projectValidateCounts,mA as promoteAssuranceAssertion,OR as pruneCompileCacheGenerations,oA as putAssuranceDeclaration,iA as putAssuranceDeclarationBundle,DT as queryItemMetadataIndex,FT as queryLinkedFileMetadataIndex,GT as querySimilarItemMetadataIndex,tl as queryTestRunMeasurementsBelow,sr as quoteCommandArg,ir as quoteWindowsCommandArg,Bb as rankCommandPaths,Td as readAnnotationEntries,tr as readAuthorEnvironment,ml as readBooleanOption,UE as readContextUsageAffinity,_l as readCsvListOption,Pa as readExtensionMigrationState,it as readFileIfExists,Dn as readFirstStringFromCommanderOptions,Fn as readFirstValueFromCommanderOptions,Kp as readHistoryAnalyticsWindow,Ih as readHistoryEntries,jp as readImprovementLedger,UT as readItemMetadataDerivedIndexState,mn as readLocatedItem,eg as readOutputBudgetCollections,Qh as readOutputContinuationRowCollections,qh as readOutputContinuationRowPaths,yg as readOutputIncludeModeOptions,Zh as readOutputRowCollections,Jh as readOutputRowPaths,lg as readOutputSessionRemainingTokens,Ce as readPmPackageManifest,Sf as readRequiredString,cn as readSettings,kT as readSettingsWithMetadata,Gn as readStringArrayFromCommanderOptions,fl as readStringOption,Gb as readThrownExitCode,py as readVectorizationStatusLedger,OC as readWorkspaceContextIntentContracts,YE as readWorkspaceContextSignals,eS as readWorkspaceMemory,xt as reconcileExtensionCapabilityUsage,rn as reconcileWorkspaceJsonHistory,Q_ as recordAfterCommandAffectedItem,aA as recordAssuranceVerdict,kd as recordClaimSemanticAttribution,GE as recordContextUsageServing,$E as recordContextUsageTouch,jE as recordContextUsageTouches,Pd as recordFocusSemanticAttribution,$p as recordImprovementObservation,vd as recordReleaseSemanticAttribution,HT as refreshItemMetadataDerivedIndex,Aa as refreshMergeAttributeFenceIfInstalled,uy as refreshSearchArtifactsForMutation,Jt as registerHarnessSignalDescriptors,Nh as registerOutputMaterialFieldGroups,Ju as release,sA as removeAssuranceDeclaration,at as removeFileIfExists,rd as renameArtifactsResultKey,xd as renderCalendarMarkdown,Id as renderCalendarToon,Jd as renderContextMarkdown,ka as renderExtensionDescribeMarkdown,Na as renderExtensionSurfaceMarkdown,Gl as renderGuideMarkdown,Db as renderMissingOptionRetry,dS as renderNextMarkdown,Vb as renderPmClosedDomainHelp,ar as renderPmCommand,lr as renderPmCommandAliasMigrationHint,Gp as renderPmCommandVisibilityMarkdown,Sx as renderPmFlagLexiconMarkdown,AT as renderRowsAsCsv,ET as renderRowsAsTable,Wu as reopen,Yy as replayHistoryToTarget,Kg as replayToCanonicalItemDocument,Wg as replayToItemDocument,lS as requireTerminalReason,uS as requireTerminalReasonWithRecovery,Y_ as resetActiveExtensionRuntimeState,Is as resetWorkspaceGraphCache,Vt as resolveAgentSessionContextFromSignals,bd as resolveAnnotationIndex,Ad as resolveAnnotationInput,xh as resolveAuthor,or as resolveAuthorIdentity,rT as resolveBodyFileContent,Uf as resolveBuiltinCorpusShape,Rd as resolveCalendarOutputFormat,Eb as resolveCanonicalPmErrorCodeContract,I_ as resolveCanonicalRelationshipKind,Rh as resolveClaimPrincipal,b_ as resolveCommandOptionPolicyState,bR as resolveCompileCacheGeneration,JE as resolveCompletionTimestamp,T_ as resolveConfiguredPmPackageRoot,gE as resolveContentFieldFilters,kg as resolveContextIntentContract,Gd as resolveContextOutputFormat,$d as resolveContextTokenBudget,bS as resolveCreateExplicitEmptyFlag,YT as resolveEmbeddingProviders,Fa as resolveExtensionInstallSourceIdentity,va as resolveExtensionMigrationStatePath,D_ as resolveExtensionRoots,d_ as resolveFlagValueKind,Dl as resolveGuideOutputFormat,Up as resolveHistoryEpisodeGroupIdentity,PC as resolveHistoryProvenanceDimensions,qy as resolveHistorySubject,Ky as resolveHistoryTarget,$S as resolveHybridSemanticWeight,Tt as resolveImplicitPmRoot,n_ as resolveIsoOrRelative,nE as resolveItemBlockers,Jb as resolveItemMutationDocument,gt as resolveItemTypeRegistry,mh as resolveItemTypesFilePath,cl as resolveLinkedTestFailureExitCode,ha as resolveMergeInstallContext,hE as resolveMissingMetadataFilters,Lb as resolveMissingOptionPlaceholder,Lh as resolveModePairedOutputOmissionReceipt,iS as resolveNextOutputFormat,Gh as resolveOutputOmissionReceipt,g_ as resolvePmCliVersion,pr as resolvePmCommandAlias,Np as resolvePmCommandCapabilityFamily,yS as resolvePmCommandExitContract,Ur as resolvePmCommandOutputBudget,Ib as resolvePmCommandOutputEnvelope,Ly as resolvePmCommandPositionalContract,kp as resolvePmCommandVisibilityTier,Br as resolvePmDiagnosticOutputBudget,Sb as resolvePmErrorCodeContract,Gm as resolvePmFlagSemanticConcept,h_ as resolvePmPackageRootFromModule,Dy as resolvePmPositionalActionContract,zi as resolvePmPositionalActionFlagContracts,K as resolvePmRoot,Ki as resolvePmToolCustomFieldCollision,gT as resolvePriority,Ie as resolveProfile,ya as resolveProjectMergeTypeFolders,Wh as resolveQueryCursorStart,Eg as resolveReadOutputDimensions,Rg as resolveReadOutputEncoding,gg as resolveReadOutputSurface,Fh as resolveReadRowContract,Mb as resolveRecoveryCommandName,uh as resolveRegisteredSearchProvider,fh as resolveRegisteredVectorStoreAdapter,vt as resolveRuntimeFieldRegistry,kt as resolveRuntimeStatusRegistry,JT as resolveSearchCorpusFields,FS as resolveSearchMaxResults,DS as resolveSearchPage,GS as resolveSearchScoreThreshold,jS as resolveSearchTuning,ZT as resolveSemanticCorpusCharacterLimit,wd as resolveSemanticLineageIds,PT as resolveSettingsWithSemanticRuntimeDefaults,xA as resolveSourceContextWritePolicy,Ip as resolveStartTaskInProgressStatus,J as resolveSubcommandFlagContractsForCommand,qm as resolveTelemetryErrorCategory,pS as resolveTerminalReason,S_ as resolveTypeDefinition,E_ as resolveTypeName,CT as resolveTypeSynonym,xT as resolveTypeWorkflows,ua as resolveUnknownAuthorAcknowledgmentSelector,BS as resolveVectorIndexRecovery,ty as resolveVectorStores,ms as resolveWorkspaceRelationshipKindRegistry,Qu as restore,a_ as restoreCheckpointItems,nn as restoreWorkspaceJsonFromHistory,up as restoreWorkspaceSnapshot,lp as restoreWorkspaceSnapshotWithRecovery,Of as runAction,nh as runActiveBeforeMutationHooks,ih as runActiveCommandHandler,oh as runActiveOnIndexHooks,wt as runActiveOnReadHooks,Nt as runActiveOnWriteHooks,sh as runActiveParserOverride,ah as runActivePreflightOverride,dh as runActiveServiceOverride,fs as runActivity,L_ as runAfterCommandHooks,md as runAggregate,Sd as runAnnotationCommand,_d as runAppend,qA as runAssuranceAction,ZA as runAssuranceDispatch,M_ as runBeforeCommandHooks,Nd as runCalendar,tc as runClaim,rc as runClaimNext,ic as runClose,ac as runCloseMany,dc as runComments,$l as runCompletion,Uc as runConfig,Se as runContext,ME as runContextEvaluationCorpus,vE as runContextEvaluationScenario,Dc as runCopy,Nc as runCreate,Fc as runDelete,Ns as runDeps,nd as runDocs,kb as runDuplicates,tp as runEval,np as runEvent,Ga as runExtension,Da as runExtensionMigrateAction,La as runExtensionMigrations,sd as runFiles,dd as runFilesDiscover,ad as runFilesLookup,qp as runFleetAttributionAnalytics,Gc as runFocus,jc as runGc,$c as runGet,aa as runGraph,Fl as runGuide,$a as runHealth,ES as runHistory,fb as runHistoryCompact,hb as runHistoryCompactBulk,Zy as runHistoryRedact,tb as runHistoryRepair,nb as runHistoryRepairAll,Xc as runInit,Vc as runInitAgentGuidance,cc as runLearnings,td as runLinkedArtifacts,pl as runLinkedTests,fd as runList,rp as runMeet,QS as runMergeDriver,Ea as runMergeInstall,$A as runMergeReceiptReport,ob as runMergeReconcile,Qd as runNext,pc as runNotes,Lc as runPlan,Sp as runProfileApply,Ep as runProfileLint,Cp as runProfileList,Ap as runProfileShow,Yp as runProvenanceCoverageAnalytics,hO as runRegisteredCommandForTest,AO as runRegisteredCommandOverrideForTest,IO as runRegisteredExporterForTest,TO as runRegisteredHookForTest,xO as runRegisteredImporterForTest,RO as runRegisteredMigrationForTest,gO as runRegisteredMutationGuardForTest,yO as runRegisteredParserOverrideForTest,CO as runRegisteredPreflightOverrideForTest,EO as runRegisteredRendererOverrideForTest,bO as runRegisteredSearchProviderForTest,SO as runRegisteredServiceOverrideForTest,OO as runRegisteredVectorStoreAdapterForTest,Fe as runReindex,nc as runRelease,op as runRemind,gb as runReopen,sc as runRestore,Ra as runSchemaEvolutionMigration,Qc as runSearch,zf as runSearchRefreshWorkerEntrypoint,jl as runStartBackgroundRun,nl as runStats,il as runTelemetry,gp as runTemplatesList,hp as runTemplatesSave,Tp as runTemplatesShow,ll as runTest,ul as runTestAll,Ul as runTestRunsList,Bl as runTestRunsLogs,Vl as runTestRunsResume,Hl as runTestRunsStatus,zl as runTestRunsStop,Wl as runTestRunsWorker,wc as runUpdate,kc as runUpdateMany,be as runUpgrade,ud as runValidate,bf as runWithActiveExtensions,Wt as runWithAgentSessionContext,Ng as runWithContextIntentContracts,IC as runWithDiscoveredContextIntentContracts,qt as runWithHarnessDetectionSignals,Zt as runWithWorkspaceHarnessSignalDescriptors,ze as runWithWorkspaceRecipe,vS as runWorkspaceTransactionGc,oa as saveGraphAuditBaseline,AA as scanExtensionHostVersions,pa as scanHistoryAuthorAttribution,Gt as scanItemFormatVersions,gn as scanMutationSecrets,LA as scanProvenanceResolverHealth,Nn as scanStaleInProgressItems,jA as scanStorageIntegrity,mu as schema,Au as schemaAddField,yu as schemaAddStatus,gu as schemaAddType,Ou as schemaApplyPreset,Ru as schemaInferTypes,_u as schemaList,Su as schemaListFields,Nu as schemaRemapStatus,Eu as schemaRemoveField,Cu as schemaRemoveStatus,Tu as schemaRemoveType,Iu as schemaRenameField,xu as schemaRenameType,hu as schemaShow,bu as schemaShowField,wu as schemaShowStatus,Hb as scoreCommandPathMatch,IE as scoreContextCandidates,NE as scoreContextCandidatesWithActiveExtensions,Rn as scoreItemSimilarity,fx as scorePmRefusalClosure,xn as scorePreparedItemSimilarity,hx as scoreTrackerPreflightRecoveryClosure,Jl as search,nS as searchWorkspaceMemory,oS as searchWorkspaceMemoryReadResult,jh as selectCursorSemanticOptions,vl as selectImportAuthor,rS as selectWorkspaceMemory,tS as selectWorkspaceMemoryRollups,Ld as semanticAttributionAffinity,Ty as sentryCaptureCliError,gy as sentryFinishCommandSpan,Cy as sentryFlush,yy as sentryLogCliUsageError,_y as sentrySetCommandContext,hy as sentryStartCommandSpan,Ht as serializeItemDocument,Wb as serializeNdjsonRows,Kb as serializeNdjsonStream,J_ as setActiveCommandContext,q_ as setActiveCommandResult,B_ as setActiveExtensionCommands,H_ as setActiveExtensionHooks,z_ as setActiveExtensionParsers,V_ as setActiveExtensionPreflight,X_ as setActiveExtensionRegistrations,K_ as setActiveExtensionRenderers,W_ as setActiveExtensionServices,bh as setFocusedItem,xy as shouldCompletePlanOnClose,ra as shouldPersistDurableGraphCache,LT as shouldRunSearchRefreshInForeground,uc as similarityAdvisoryWarnings,Yh as sliceReadOutputRowCollection,Za as sortLinkedArtifacts,aT as splitAcceptanceCriteria,by as splitCommaList,Ut as splitFrontMatter,Sg as stabilizeReadOutputReceiptEstimates,D as stableStringify,P_ as stableValueEquals,tf as startTask,Ny as startTelemetryCommand,eu as stats,hh as statusIsTerminal,If as stripGlobalBootstrapTokens,ab as subscribeMutationEventBatches,db as subscribeMutationEvents,Bp as summarizeAgentModelProvenance,zp as summarizeAgentProvenance,PE as summarizeContextEvaluationReports,sl as summarizeContextPreflight,GC as summarizeHistoryProvenance,Wc as summarizeInitResult,DA as summarizeMergeReceipt,OS as supportsCreateExplicitEmpty,vb as supportsItemIdAlias,m_ as suppressHostOutput,B as syncRelationshipGraphAdapter,pO as synthesizeExtensionManifest,Vi as toCompletionFlagString,Xd as toContextFocusItem,Vd as toContextPackingSummary,Wd as toContextRankingSummary,Qm as toErrorMessage,gl as toEstimatedMinutesValue,mC as toExtensionFlagDefinitions,El as toImportBoolean,Rl as toImportConfidence,Al as toImportInteger,wl as toImportLinkedDocs,Nl as toImportLinkedFiles,kl as toImportLinkedTests,Il as toImportLogEntries,xl as toImportNormalizedEnum,Ol as toImportNumberMap,Tl as toImportPriority,Cl as toImportStatus,Sl as toImportStringList,bl as toImportStringMap,yl as toImportTags,Eh as toItemRecord,hl as toNonEmptyImportString,Zm as toNonEmptyStringOrUndefined,Xg as toReplayDocument,bn as tokenizeSimilarityText,lb as translateHostEnvironmentFault,Vu as update,Cf as upgrade,Du as validate,YC as validateAssertionDefinition,qC as validateAssuranceDocument,JC as validateGateDefinition,Zb as validateItemMutationRows,ed as validateLinkedPaths,XC as validateMeasurementDefinition,iT as validateMissingParentReference,Tg as validateReadOutputOptions,TT as validateSprintOrReleaseValue,O_ as validateTypeOptions,yb as verifyCliFlagInvocationParity,Uy as verifyExplicitPositionalSlotCensus,qg as verifyHistoryChain,Jg as verifyHistoryChainWithVersion,Qy as verifyHistoryEntries,Vy as verifyPmCliGrammar,zy as verifyPmCommandPositionalContracts,Ex as verifyPmFlagLexicon,px as verifyPmRecoveryKindRuntimeCoverage,Pm as verifyPmRecoveryProducerRuntimeCoverage,cx as verifyPmRecoveryReferences,dx as verifyPmRefusalReachability,Vn as verifyToolOptionCliParity,po as withFlagAliasMetadata,ub as withHostEnvironmentBoundary,xs as workspaceGraphCache,Ed as wrapOwnershipConflict,Ub as wrapThrownErrorForSentry,rr as writeAuthorEnvironment,st as writeFileAtomic,i_ as writeMutationCheckpoint,vT as writeSettings,Gg as writeStdout,ly as writeVectorizationStatusLedger,tn as writeWorkspaceJsonWithHistory};
1
+ import{A as d_,B as c_,C as gO,D as TO,a as Hn,b as zn,c as Vn,d as Wn,e as aO,f as dO,g as Jm,h as Zm,i as Qm,k as e_,l as t_,m as r_,n as n_,o as o_,p as i_,q as s_,r as a_,s as cO,t as pO,u as lO,v as uO,w as mO,x as _O,y as fO,z as hO}from"./chunks/chunk-KPH73XXJ.js";import{A as oR,B as iR,C as sR,D as aR,E as dR,F as cR,G as pR,H as lR,I as uR,J as mR,K as _R,L as fR,M as hR,N as gR,O as TR,P as yR,Q as CR,R as AR,S as ER,T as SR,U as bR,V as OR,W as RR,X as xR,Y as IR,a as vO,b as PO,c as MO,d as LO,e as DO,f as FO,g as GO,h as $O,i as UO,j as jO,k as BO,l as HO,m as zO,n as VO,o as WO,p as KO,q as XO,r as YO,s as qO,t as JO,u as ZO,v as QO,w as eR,x as tR,y as rR,z as nR}from"./chunks/chunk-QDVHNHAQ.js";import{a as yO,b as CO,c as AO,d as EO}from"./chunks/chunk-F3AI2JFL.js";import{a as SO,b as bO,c as OO,d as RO,e as xO,f as IO,g as NO,h as wO,i as kO}from"./chunks/chunk-DW2CGEMU.js";import{$ as Pb,$a as au,$b as um,A as tA,Aa as Hb,Ab as $u,Ac as $m,B as Ud,Ba as zb,Bb as Uu,Bc as Um,C as kc,Ca as Vb,Cb as ju,Cc as jm,D as vc,Da as Wb,Db as Bu,Dc as Bm,E as Pc,Ea as Gl,Eb as Hu,Ec as Hm,F as Mc,Fa as $l,Fb as zu,Fc as zm,G as Lc,Ga as Ul,Gb as Vu,Gc as Vm,H as op,Ha as jl,Hb as Wu,Hc as Wm,I as re,Ia as Bl,Ib as Ku,Ic as Km,J as ip,Ja as Hl,Jb as Xu,Jc as Xm,K as sp,Ka as zl,Kb as Yu,Kc as Ym,L as ap,La as Vl,Lb as qu,Lc as qm,M as dp,Ma as Wl,Mb as Ju,N as cp,Na as Kl,Nb as Zu,O as pp,Oa as Xl,Ob as Qu,P as Ab,Pa as Yl,Pb as em,Q as Eb,Qa as ql,Qb as tm,R as Sb,Ra as Jl,Rb as rm,S as bb,Sa as Zl,Sb as nm,T as Ob,Ta as Ql,Tb as om,U as Rb,Ua as eu,Ub as im,V as xb,Va as tu,Vb as sm,W as Ib,Wa as ru,Wb as am,X as Nb,Xa as nu,Xb as dm,Y as wb,Ya as ou,Yb as cm,Z as kb,Za as iu,Zb as pm,_ as vb,_a as su,_b as lm,a as Cs,aa as Me,ab as du,ac as mm,b as As,ba as Le,bb as cu,bc as _m,c as Es,ca as De,cb as pu,cc as fm,d as IC,da as Fe,db as We,dc as hm,e as NC,ea as Ge,eb as G,ec as gm,f as bs,fa as $e,fb as Tu,fc as Tm,g as DC,ga as Ue,gb as yu,gc as ym,h as FC,ha as je,hb as Cu,hc as Cm,i as GC,ia as Be,ib as Au,ic as Am,j as $C,ja as He,jb as Eu,jc as Em,k as UC,ka as ze,kb as Su,kc as Sm,l as jC,la as Up,lb as bu,lc as bm,m as BC,ma as jp,mb as Ou,mc as Om,n as HC,na as Bp,nb as Ru,nc as Rm,o as zC,oa as Hp,ob as xu,oc as xm,p as VC,pa as zp,pb as Iu,pc as Im,q as WC,qa as ne,qb as Nu,qc as Nm,r as KC,ra as Vp,rb as wu,rc as wm,s as XC,sa as Wp,sb as ku,sc as km,t as YC,ta as Kp,tb as vu,tc as vm,u as Ns,ua as Xp,ub as Pu,uc as Pm,v as qC,va as Yp,vb as Mu,vc as Mm,w as JC,wa as qp,wb as Lu,wc as Lm,x as ZC,xa as Jp,xb as Du,xc as Dm,y as QC,ya as Zp,yb as Fu,yc as Fm,z as eA,za as Bb,zb as Gu,zc as Gm}from"./chunks/chunk-KXPMB2YL.js";import{a as Pe,f as sb,g as ab,h as mp,i as _p}from"./chunks/chunk-JB4KZWBF.js";import{A as yb,B as Cb,C as Op,D as Rp,E as xp,b as $d,c as qE,d as YS,e as QS,f as eb,g as tb,h as rb,i as nb,j as lp,k as ob,l as Ap,m as Ep,n as Sp,o as bp,p as db,q as cb,r as pb,s as lb,t as ub,u as mb,v as _b,w as fb,x as hb,y as gb,z as Tb}from"./chunks/chunk-EG6CLDZT.js";import{$ as YA,$a as Fd,$b as Wc,$c as eO,A as GA,Aa as pd,Ab as DS,Ac as Pp,Ad as Nl,B as $A,Ba as ld,Bb as FS,Bc as Mp,Bd as wl,C as UA,Ca as ud,Cb as GS,Cc as Lp,Cd as kl,D as jA,Da as md,Db as $S,Dc as Dp,Dd as vl,Ea as _d,Eb as US,Ec as Fp,Ed as Pl,F as XA,Fa as fd,Fb as Nc,Fc as Gp,Fd as Ml,Ga as hd,Gb as wc,Gc as $p,Gd as Ll,Ha as gd,Hb as jS,Hc as Qp,Hd as Dl,Ia as Td,Ib as BS,Ic as Kb,Id as Fl,J as Oa,Ja as yd,Jb as HS,Jc as Ve,Jd as lu,Ka as Cd,Kb as zS,Kc as Xb,Kd as uu,La as Ad,Lb as VS,Lc as el,Ld as mu,Ma as Ed,Mb as WS,Mc as oe,Md as _u,Na as Sd,Nb as KS,Nc as tl,Nd as fu,Oa as bd,Ob as XS,Oc as rl,Od as hu,Pa as Od,Pc as nl,Pd as gu,Qa as Rd,Qb as Dc,Qc as ol,Ra as xd,Rb as Fc,Rc as il,Sa as Id,Sb as qS,Sc as sl,Ta as Nd,Tb as Gc,Tc as al,Ua as wd,Ub as $c,Uc as dl,Va as kd,Vb as Uc,Vc as cl,Wa as vd,Wb as jc,Wc as Yb,Xa as Pd,Xb as Bc,Xc as qb,Ya as Md,Yb as Hc,Yc as Jb,Za as Ld,Zb as zc,Zc as Zb,_a as Dd,_b as Vc,_c as Qb,a as uA,aa as qA,ab as _E,ac as Kc,ad as tO,b as mA,ba as Ra,bb as fE,bc as Xc,bd as rO,c as _A,ca as xa,cb as hE,cc as Yc,cd as nO,d as fA,da as Ia,db as gE,dc as qc,dd as oO,e as hA,ea as Na,eb as TE,ec as Jc,ed as iO,f as gA,fa as wa,fb as yE,fc as Zc,g as TA,ga as ka,gb as CE,gc as Qc,gd as pl,h as yA,ha as va,hb as AE,hc as ep,hd as ll,i as CA,ia as sE,ib as EE,ic as tp,id as ul,j as AA,ja as aE,jb as SE,jc as JS,jd as ml,k as EA,ka as dE,kb as bE,kc as ZS,kd as _l,l as SA,la as cE,lb as OE,lc as rp,ld as fl,m as bA,mb as jd,md as hl,n as OA,na as pE,nb as Bd,nd as gl,o as RA,ob as Hd,oc as np,od as Tl,p as xA,pa as lE,pb as zd,pd as yl,q as IA,qa as uE,qb as Vd,qc as ib,qd as Cl,r as NA,ra as rd,rb as Wd,rc as up,rd as Al,s as wA,sa as nd,sb as Kd,sc as Ip,sd as El,t as kA,ta as mE,tb as Xd,tc as Np,td as Sl,u as vA,ua as od,ub as Yd,uc as wp,ud as bl,v as PA,va as id,vb as qd,vc as $b,vd as Ol,w as MA,wa as sd,wb as Oc,wc as Ub,wd as Rl,x as LA,xa as ad,xb as Rc,xc as jb,xd as xl,y as DA,ya as dd,yb as xc,yc as kp,yd as Il,z as FA,za as cd,zb as Ic,zc as vp,zd as sO}from"./chunks/chunk-3ENVHX6C.js";import{Aa as Ya,Ba as qa,Ca as Ja,Da as Za,Ea as Qa,Fa as ed,Ga as td,H as ja,Ha as fp,I as Ba,Ia as hp,J as Ha,Ja as gp,K as za,Ka as Tp,L as Re,La as yp,Ma as Cp,a as MC,b as LC,c as Os,d as Rs,f as xs,g as Is,h as JA,i as ZA,j as QA,k as eE,l as tE,m as rE,n as nE,o as oE,oa as xe,p as Pa,pa as Ie,q as Ma,qa as Ne,r as La,ra as we,s as Da,sa as Va,t as Fa,u as iE,ua as Wa,v as Ga,va as Ka,w as $a,wa as Xa,x as Ua}from"./chunks/chunk-HWZ6CELB.js";import{$ as Ys,$a as jE,$b as oc,Aa as Ea,Ab as dS,Ac as Mb,B as ws,Ba as Sa,Bb as cS,Bc as Lb,C as BA,Ca as ba,Cb as pS,Cc as Db,D as HA,Db as lS,Dc as Fb,E as zA,Ea as RE,Eb as uS,Ec as Gb,F as VA,Fa as xE,Fb as mS,G as WA,Ga as IE,Gb as _S,H as ks,Ha as NE,Hb as fS,I as vs,Ia as wE,Ib as hS,J as Ps,Ja as kE,Jb as gS,K as Ms,Ka as vE,Kb as TS,L as Ls,La as PE,Lb as yS,M as Ds,Ma as ME,Mb as CS,N as Fs,Na as LE,Nb as AS,O as Gs,Oa as DE,Ob as ES,P as $s,Pb as SS,Q as Us,Qb as bS,R as js,Rb as OS,S as te,Sb as RS,T as Bs,Tb as xS,U as Hs,Ub as IS,V as zs,Vb as NS,W as Vs,Wb as wS,X as KA,Xa as FE,Xb as kS,Y as Ws,Ya as GE,Yb as tc,Z as Ks,Za as $E,Zb as rc,_ as Xs,_a as UE,_b as nc,a as yC,aa as qs,ab as BE,ac as ic,b as CC,ba as Js,bc as sc,c as AC,ca as Zs,cc as ke,d as EC,da as Qs,db as HE,dc as ac,e as SC,ea,eb as zE,ec as dc,fa as ta,fb as VE,fc as cc,ga as ra,gb as WE,gc as pc,h as bC,ha as na,hb as KE,hc as lc,i as OC,ia as oa,ib as XE,ic as uc,j as Ss,ja as ia,jb as YE,jc as mc,k as RC,ka as sa,kb as Gd,kc as _c,l as xC,la as aa,lb as Jd,lc as fc,m as wC,ma as da,mb as Zd,mc as hc,n as kC,na as ca,nb as Qd,nc as gc,o as vC,oa as pa,ob as ec,oc as Tc,p as PC,pa as la,pb as JE,pc as yc,q as rA,qa as ua,qb as ZE,qc as Cc,r as nA,ra as ma,rb as QE,rc as Ac,s as oA,sa as _a,sb as eS,sc as Ec,t as iA,ta as fa,tb as tS,tc as ve,u as sA,ua as ha,ub as rS,uc as Sc,v as aA,va as ga,vb as nS,vc as vS,w as dA,wa as Ta,wb as oS,wc as PS,x as cA,xa as ya,xb as iS,xc as MS,y as pA,ya as Ca,yb as sS,yc as bc,z as lA,za as Aa,zb as aS,zc as LS}from"./chunks/chunk-TFI5V5N2.js";import{$ as Ff,$d as Tr,$e as J,$f as aT,$g as MT,$h as hy,$i as vn,$j as Ao,$k as ai,$l as as,Ac as bh,Ad as Jh,Ae as yg,Af as Mg,Ai as Ny,Aj as Kn,Ak as Mo,Al as Mi,B as Of,Bc as Oh,Bd as er,Be as Cg,Bf as Lg,Bg as RT,Bi as wy,Bj as Xn,Bk as Lo,Bl as Li,C,Cc as Rh,Cd as tr,Ce as Ag,Cf as Dg,Cg as xT,Ci as ky,Cj as Yn,Ck as Do,Cl as Di,D as Rf,Dc as xh,Dd as rr,De as Eg,Df as Fg,Dj as qn,Dk as Fo,Dl as Fi,E as K,Ec as Ih,Ed as nr,Ee as Sg,Ef as Gg,Ei as vy,Ej as Jn,Ek as Go,El as Gi,Fc as Nh,Fe as bg,Ff as $g,Fi as Py,Fj as Zn,Fk as $o,Fl as $i,G as xf,Gc as wh,Ge as Og,Gf as Ug,Gg as IT,Gh as ey,Gi as My,Gj as Qn,Gk as Uo,Gl as Ui,H as If,Hc as kh,He as Rg,Hf as jg,Hg as NT,Hh as ty,Hi as Ly,Hj as eo,Hk as jo,Hl as ji,Ic as $t,Ie as xg,If as Bg,Ig as wT,Ih as ry,Ii as Dy,Ij as to,Ik as Bo,Il as Bi,Ja as Xf,Jc as vh,Je as Ig,Jf as Hg,Jg as kT,Jh as ny,Ji as Fy,Jj as ro,Jk as Ho,Jl as Hi,K as Nf,Ka as Yf,Kb as ah,Kc as Ut,Kd as Zh,Ke as Ng,Kf as zg,Kg as dn,Kh as oy,Ki as Gy,Kj as no,Kk as zo,Kl as zi,La as qf,Lb as Pt,Ld as Qh,Le as wg,Lf as Vg,Lg as cn,Lh as iy,Li as $y,Lj as oo,Lk as Vo,Ll as Vi,Mb as Mt,Mc as Ph,Md as eg,Me as kg,Mf as Wg,Mg as pn,Mi as Uy,Mj as io,Mk as Wo,Ml as Wi,N as wf,Nc as Mh,Nd as or,Ne as vg,Nf as Kg,Ng as ln,Ni as jy,Nj as so,Nk as Ko,Nl as Ki,O as he,Oa as xt,Ob as F,Oc as Lh,Od as ir,Oe as Pg,Of as Xg,Og as un,Oh as sy,Oi as Ee,Oj as ao,Ok as Xo,Ol as Xi,Pa as Jf,Pb as dh,Pc as Dh,Pd as sr,Pe as Er,Pf as Yg,Pg as mn,Ph as ay,Pi as By,Pj as co,Pk as Yo,Pl as Yi,Q as ge,Qa as Zf,Qc as Fh,Qd as ar,Qe as Sr,Qf as qg,Qg as _n,Qh as En,Qi as Hy,Qj as po,Qk as qo,Ql as qi,R as Tt,Ra as Qf,Rb as ch,Rc as Ce,Rd as dr,Re as br,Rf as Jg,Rg as fn,Rh as dy,Ri as zy,Rj as lo,Rk as Jo,Rl as Ji,S as yt,Sa as eh,Sc as Gh,Sd as cr,Se as Or,Sf as Zg,Sg as hn,Sh as cy,Si as Vy,Sj as uo,Sk as Zo,Sl as Zi,T as Te,Tb as ph,Tc as $h,Td as pr,Te as Rr,Tf as Qg,Tg as gn,Th as py,Ti as Wy,Tj as mo,Tk as Qo,Tl as Qi,U as kf,Ua as It,Uc as Uh,Ud as lr,Ue as xr,Uf as eT,Ug as vT,Uh as ly,Ui as Ky,Uj as _o,Uk as ei,Ul as es,Va as Nt,Vd as ur,Ve as Ir,Vf as tT,Vh as Ae,Vi as Xy,Vj as fo,Vk as ti,Vl as ts,W as vf,Wa as X,Wc as jh,Wd as mr,We as Nr,Wf as rT,Wg as Tn,Wh as uy,Wi as Yy,Wj as ho,Wk as ri,Wl as rs,X as Pf,Xc as Bh,Xd as _r,Xe as wr,Xf as nT,Xg as yn,Xh as my,Xi as qy,Xj as go,Xk as ni,Xl as ns,Y as Mf,Yd as fr,Ye as kr,Yf as oT,Yg as Cn,Yh as _y,Yi as Nn,Yj as To,Yk as oi,Yl as os,Z as Lf,Za as wt,Zd as hr,Ze as vr,Zf as iT,Zh as fy,Zi as wn,Zj as yo,Zk as ii,Zl as is,_ as Df,_a as kt,_d as gr,_e as q,_f as sT,_g as PT,_i as kn,_j as Co,_k as si,_l as ss,aa as Gf,ab as vt,ae as tg,af as Pr,ag as dT,ah as LT,ai as gy,aj as Pn,ak as Eo,al as di,ba as $f,be as rg,bf as Mr,bg as cT,bh as DT,bi as Ty,bj as Mn,bk as So,bl as ci,bm as ee,c as _t,ca as Uf,cd as Hh,ce as ng,cf as Lr,cg as pT,ch as An,ci as yy,ck as bo,cl as pi,cm as k,da as jf,df as Dr,dg as lT,dh as FT,di as Sn,dj as Ln,dk as Oo,dl as li,dm as ds,e as fe,ec as lh,ed as jt,ef as Fr,eg as uT,eh as GT,ei as bn,ej as Dn,ek as Ro,el as ui,em as cs,f as ft,fa as Bf,fc as uh,fd as zh,ff as Gr,fg as mT,fh as $T,fi as On,fj as Fn,fk as dC,fl as mi,fm as ps,g as ht,ga as Hf,gc as mh,gd as Bt,gf as $r,gg as _T,gh as UT,gi as Rn,gj as Gn,gk as cC,gl as _i,gm as ls,h as gt,ha as zf,he as yr,hf as Ur,hh as jT,hi as xn,hj as $n,hk as Z,hl as fi,hm as us,ia as Vf,ic as _h,id as Vh,ie as Cr,if as jr,ig as fT,ih as BT,ii as In,ij as Un,ik as pC,il as hi,im as ms,j as yf,ja as Wf,jc as fh,jd as Wh,je as Ar,jf as Br,jg as hT,jh as HT,ji as Cy,jj as jn,jk as lC,jl as gi,jm as _s,k as Cf,ka as Kf,kd as Kh,kf as Hr,kh as zT,kj as Bn,kk as uC,kl as Ti,km as fs,l as Af,la as Ct,lc as hh,ld as Ht,le as og,lf as zr,lh as VT,li as Ay,lj as Jy,lk as be,ll as yi,lm as hs,ma as At,mc as Lt,md as zt,me as ig,mf as Vr,mg as gT,mh as WT,mi as Ey,mj as Zy,mk as Q,ml as Ci,mm as gs,na as Et,nd as Vt,ne as sg,nf as Wr,ng as TT,nh as KT,ni as Sy,nj as Qy,nk as mC,nl as Ai,nm as Ts,oc as Dt,od as Wt,oe as ag,of as Kr,og as yT,oj as eC,ok as _C,ol as Ei,om as ys,pc as Ft,pd as Kt,pe as dg,pf as Xr,pg as CT,ph as XT,pi as by,pj as tC,pk as fC,pl as Si,pm as Oe,qd as Xt,qe as cg,qf as Yr,qg as AT,qj as rC,qk as hC,ql as bi,ra as St,rb as th,rd as Yt,re as pg,rf as qr,rg as sn,rh as YT,rj as nC,rk as gC,rl as Oi,s as Ef,sb as Y,sc as gh,sd as Xh,se as lg,sf as Jr,sg as an,sh as qT,si as Oy,sj as oC,sk as TC,sl as Ri,ta as bt,tb as ye,tc as Th,td as Yh,te as ug,tf as Zr,th as JT,tk as xo,tl as xi,u as Sf,ua as Ot,ub as rh,uc as yh,ue as mg,uf as Qr,uh as ZT,ui as Ry,uk as Io,ul as Ii,va as Rt,vb as nh,vc as Ch,vd as qt,ve as _g,vf as en,vh as QT,vk as No,vl as Ni,wb as oh,wc as Ah,wd as Jt,we as fg,wf as tn,wg as ET,wj as Se,wk as wo,wl as wi,x as bf,xb as ih,xc as Eh,xd as qh,xe as hg,xf as rn,xg as ST,xj as iC,xk as ko,xl as ki,yb as A,yc as Sh,yd as Zt,ye as gg,yf as nn,yg as bT,yi as xy,yj as sC,yk as vo,yl as vi,zb as sh,zc as Gt,zd as Qt,ze as Tg,zf as on,zg as OT,zi as Iy,zj as aC,zk as Po,zl as Pi}from"./chunks/chunk-HZBMLSZI.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 g="https://schema.unbrained.dev/pm/corpus-shape/v1";function E(e,t){if(!Number.isSafeInteger(e)||e<=0)throw new TypeError(`Corpus shape ${t} must be a positive safe integer`);return e}function v(e,t){if(!Number.isSafeInteger(e)||e<0)throw new TypeError(`Corpus shape ${t} must be a non-negative safe integer`);return e}function Xe(e){if(!(typeof e!="object"||e===null||Object.isFrozen(e))){for(let t of Object.values(e))Xe(t);Object.freeze(e)}}function S(e){if(e.schema!==g)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(E(e.hierarchy_depth,"hierarchy_depth"),E(e.hierarchy_fanout,"hierarchy_fanout"),v(e.age_span_days,"age_span_days"),E(e.history_entries_per_item,"history_entries_per_item"),v(e.comments_per_100_items,"comments_per_100_items"),v(e.notes_per_100_items,"notes_per_100_items"),v(e.learnings_per_100_items,"learnings_per_100_items"),E(e.author_cardinality,"author_cardinality"),E(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 Xe(t),t}var $=[{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}],b=Object.freeze({scratch:S({schema:g,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:S({schema:g,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:$,author_cardinality:32,component_count:1,include_cycles:!1,custom_types:["Experiment"],custom_statuses:["review"],terminal_statuses:[],custom_fields:["domain"]}),"deep-graph":S({schema:g,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:$,author_cardinality:16,component_count:1,include_cycles:!0,custom_types:[],custom_statuses:[],terminal_statuses:[],custom_fields:[]}),"multi-decade":S({schema:g,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:$,author_cardinality:64,component_count:1,include_cycles:!1,custom_types:["Program"],custom_statuses:["archived"],terminal_statuses:["archived"],custom_fields:["portfolio"]}),"disconnected-archive":S({schema:g,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:$,author_cardinality:24,component_count:5,include_cycles:!1,custom_types:["Archive"],custom_statuses:["archived"],terminal_statuses:["archived"],custom_fields:["archive_source"]})});function p_(){return Object.keys(b).sort().map(e=>b[e])}function l_(e){let t=e.trim().toLowerCase();if(!Object.hasOwn(b,t))throw new TypeError(`Unknown corpus shape "${e}". Available: ${Object.keys(b).join(", ")}`);return b[t]}var Ke=new WeakMap;function Ye(e,t){if(e===0)return[];let r=Ke.get(t);r===void 0&&(r=t.edge_kind_mix.flatMap(n=>Array.from({length:n.weight},()=>n.kind)),Ke.set(t,r));let o=[r[e%r.length]];return t.include_cycles&&e>2&&e%17===0&&o.push("related"),[...new Set(o)]}function u_(e,t,r,o=42){if(v(t,"item index"),E(r,"item count"),t>=r)throw new RangeError(`Corpus item index ${t} exceeds ${r}`);let n=Math.min(e.component_count,r),i=t%n,s=Math.floor(t/n),d=0,a=1;for(let D=0;D<e.hierarchy_depth;D+=1)d=Math.min(Number.MAX_SAFE_INTEGER,d+a),a=Math.min(Number.MAX_SAFE_INTEGER,a*e.hierarchy_fanout);let c=s%d,p=s-c,l=c===0?void 0:i+(p+Math.floor((c-1)/e.hierarchy_fanout))*n,u=Date.UTC(2026,0,1),h=e.age_span_days*864e5,N=new Date(u+(r===1?0:Math.round(t/(r-1)*h))).toISOString(),w=(t*37+o)%100;return{index:t,id:`pm-s${t.toString(36).padStart(7,"0")}`,...l===void 0?{}:{parent:`pm-s${l.toString(36).padStart(7,"0")}`},component:i,timestamp:N,author:`pm-corpus-agent-${(t+o)%Math.min(e.author_cardinality,r)}`,history_entry_count:e.history_entries_per_item,dependency_kinds:Ye(t,e),has_comment:w<e.comments_per_100_items,has_note:w<e.notes_per_100_items,has_learning:w<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 ie=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 o of r)t[o]=(t[o]??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 o=this.depths.get(t.parent);this.recordMismatch(o===void 0,`parent_missing:${t.parent}`),r=(o??0)+1;let n=(this.childCounts.get(t.parent)??0)+1;this.childCounts.set(t.parent,n),this.observedFanout=Math.max(this.observedFanout,n)}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[o,n]of this.annotationFields)this.annotations[o]+=Number(t[n]);this.recordEdgeKinds(this.edgeKinds,t.dependency_kinds),this.recordEdgeKinds(this.expectedEdgeKinds,Ye(t.index,this.shape))}finish(){let t=Math.min(this.shape.author_cardinality,this.itemCount),r=Math.min(this.shape.component_count,this.itemCount),o=[...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[s,,d]of this.annotationFields){let a=Math.floor(this.itemCount/100),c=this.itemCount%100,p=a*d+Math.max(0,d+c-100),l=a*d+Math.min(d,c),u=this.annotations[s];(u<p||u>l)&&o.push(`${s}:${u}!in[${p},${l}]`)}let n=new Set([...Object.keys(this.edgeKinds),...Object.keys(this.expectedEdgeKinds)]);for(let s of[...n].sort()){let d=this.edgeKinds[s]??0,a=this.expectedEdgeKinds[s]??0;d!==a&&o.push(`edge_kind:${s}:${d}!=${a}`)}let i=[...new Set(o)];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:i.length===0,mismatches:i}}};function qe(e){return new ie(e)}function m_(e,t){let r=qe(e);for(let o of t)r.add(o);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]="cea03617-5e90-5683-a9d1-289087ed4646")}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 __(){let e=X(process.cwd(),process.env.PM_PATH);await Ae(e,(t,r)=>Ee(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 Je="https://schema.unbrained.dev/pm/workspace-recipe/v1";function se(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,o)=>se(r,`${t}[${o}]`)));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,o])=>[r,se(o,`${t}.${r}`)])))}function Ze(e){if(e.schema!==Je)throw new Error(`Unsupported workspace recipe schema: ${e.schema}`);let t=he(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,o)=>Object.freeze({action:r.action,input:se(r.input,`operations[${o}].input`)})))})}async function Qe(e,t){let r=Ze(e);return ge(r,t)}async function f_(e,t){return Qe(e,async()=>{let r=[];for(let[o,n]of e.operations.entries())r.push(await t(n,o));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 h_(){await Se()}(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]="340305b6-e3c8-5daa-bfbe-4a9c62a6d039")}catch{}})();var et=["lines","branches","functions","statements"];function g_(e,t){if(typeof t!="object"||t===null||Array.isArray(t))throw new TypeError(`Coverage entry for ${e} must be an object.`)}function T_(e,t,r){if(typeof r!="object"||r===null||Array.isArray(r))throw new TypeError(`Coverage entry ${e} has invalid ${t} counts.`);let o=r;if(typeof o.covered!="number"||typeof o.total!="number"||!Number.isInteger(o.covered)||!Number.isInteger(o.total)||o.covered<0||o.total<o.covered)throw new TypeError(`Coverage entry ${e} has invalid ${t} counts.`);return{covered:o.covered,total:o.total}}function y_(e){if(typeof e!="object"||e===null||Array.isArray(e))throw new TypeError("Coverage summary must be a JSON object.");if(!("total"in e))throw new TypeError("Coverage summary is missing the total entry.");let t=[];for(let[r,o]of Object.entries(e)){g_(r,o);for(let n of et){let i=T_(r,n,o[n]),s=i.total-i.covered;s>0&&t.push({file:r,metric:n,uncovered:s,...i})}}return t}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3edb1f4f-d26e-51a8-b62a-caffdd3ac44b")}catch{}})();var C_=["captured_redacted","captured_verbatim"],A_=[{label:"home directory",pattern:/(?:\/home\/|\/Users\/)[^/\s"']+/u},{label:"GitHub token",pattern:/\b(?:gh[oprsu]_[A-Za-z0-9_]{20,})\b/u},{label:"npm token",pattern:/\bnpm_[A-Za-z0-9]{20,}\b/u},{label:"private key",pattern:/-----BEGIN (?:RSA |EC |OPENSSH )?PRIVATE KEY-----/u}];function _(e){return typeof e=="string"&&e.trim().length>0}function E_(e,t){if(typeof t!="object"||t===null||Array.isArray(t))return[{boundary_id:e.id,kind:"invalid_fixture",detail:`${e.fixture_path} must contain a JSON object.`}];let r=t,o=[];r.boundary_id!==e.id&&o.push({boundary_id:e.id,kind:"fixture_boundary_mismatch",detail:`${e.fixture_path} names ${String(r.boundary_id)} instead of ${e.id}.`}),(r.version!==1||!C_.includes(r.capture_source)||!_(r.capture_provenance)||!Array.isArray(r.redactions)||!r.redactions.every(_)||!("input"in r)||!("observed"in r))&&o.push({boundary_id:e.id,kind:"invalid_fixture",detail:`${e.fixture_path} lacks captured provenance, redaction metadata, input, or observed output.`});let n=JSON.stringify(t);for(let i of A_)i.pattern.test(n)&&o.push({boundary_id:e.id,kind:"unsafe_fixture",detail:`${e.fixture_path} contains a possible ${i.label}.`});return o}function S_(e,t){let r=Date.parse(e.waiver_expires_at),o=_(e.waiver_reason)&&_(e.waiver_owner)&&e.waiver_expires_at.endsWith("Z")&&Te(e.waiver_expires_at)&&Number.isFinite(r);return{captured:0,waived:o&&r>=t?1:0,findings:o?r<t?[{boundary_id:e.id,kind:"expired_waiver",detail:`Boundary ${e.id} waiver expired at ${e.waiver_expires_at}.`}]:[]:[{boundary_id:e.id,kind:"invalid_waiver",detail:`Boundary ${e.id} waiver requires reason, owner, and an RFC 3339 UTC expiry.`}]}}function b_(e,t,r){if(!_(e.id)||!_(e.producer)||!_(e.consumer)||!_(e.format))return{captured:0,waived:0,findings:[{boundary_id:_(e.id)?e.id:"unknown",kind:"invalid_boundary",detail:"Each boundary requires non-empty id, producer, consumer, and format."}]};if("fixture_path"in e){let o=t[e.fixture_path],n=_(e.fixture_path)&&e.fixture_path in t?E_(e,o):[{boundary_id:e.id,kind:"missing_fixture",detail:`Boundary ${e.id} fixture ${String(e.fixture_path)} is missing.`}];return{captured:n.length===0?1:0,waived:0,findings:n}}return S_(e,r)}function XR(e,t,r=new Date){let o=[];if(e.version!==1||!_(e.inventory_scope)||!Array.isArray(e.boundaries))return{ok:!1,boundary_count:0,captured_count:0,waived_count:0,findings:[{boundary_id:"registry",kind:"invalid_registry",detail:"Boundary registry requires version 1, inventory_scope, and boundaries."}]};let n=new Set,i=0,s=0;for(let d of e.boundaries){if(typeof d!="object"||d===null||Array.isArray(d)){o.push({boundary_id:"unknown",kind:"invalid_boundary",detail:"Each boundary must be a JSON object."});continue}let a=d,c=_(a.id)?a.id:void 0;if(c!==void 0&&n.has(c)){o.push({boundary_id:c,kind:"duplicate_boundary",detail:`Boundary ${c} is inventoried more than once.`});continue}c!==void 0&&n.add(c);let p=b_(a,t,r.getTime());i+=p.captured,s+=p.waived,o.push(...p.findings)}return o.sort((d,a)=>d.boundary_id!==a.boundary_id?d.boundary_id.localeCompare(a.boundary_id):d.kind.localeCompare(a.kind)),{ok:o.length===0,boundary_count:e.boundaries.length,captured_count:i,waived_count:s,findings:o}}import O from"node:fs";import ae 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 tt=300*1e3,O_=3;function QR(e){return(e?.trim()||"development").replace(/[^a-zA-Z0-9._-]/g,"_").replace(/^\./,"_")}function ex(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.");O.mkdirSync(e,{recursive:!0});let o=ae.join(e,r);O.mkdirSync(o,{recursive:!0});let n=new Date;O.utimesSync(o,n,n);let i=O.readdirSync(e).filter(c=>c!==r).flatMap(c=>{try{return[{name:c,mtimeMs:O.statSync(ae.join(e,c)).mtimeMs}]}catch(p){if(p instanceof Error&&"code"in p&&fe(p))return[];throw p}}).sort((c,p)=>p.mtimeMs-c.mtimeMs||c.name.localeCompare(p.name)),s=i.filter(c=>n.getTime()-c.mtimeMs<tt),d=Math.max(0,O_-1-s.length),a=i.filter(c=>n.getTime()-c.mtimeMs>=tt).slice(d).map(c=>c.name).sort((c,p)=>c.localeCompare(p));for(let c of a)O.rmSync(ae.join(e,c),{recursive:!0,force:!0,maxRetries:3,retryDelay:50});return{retained:r,removed:a}}import rt from"node:fs";import j 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 H="@unbrained/pm-cli",R_=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"]),nt=new Set(["--author","--output-budget","--output-format","--output-include","--output-limit","--output-session","--path","--pm-path"]),pe=/\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 de(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 x_={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:de,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:de,packages:de,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 B(e){let t=e.match(pe);return t?[Number(t[1]),Number(t[2]),Number(t[3]),Number(t[4]??0)]:null}function U(e,t){let r=B(e),o=B(t);if(!r||!o)return null;for(let n=0;n<r.length;n+=1){let i=r[n]-o[n];if(i!==0)return Math.sign(i)}return 0}function ce(e){try{let t=JSON.parse(rt.readFileSync(e,"utf8"));return typeof t=="object"&&t!==null&&!Array.isArray(t)?t:null}catch{return null}}function I_(e){let t=[];for(let r of["dependencies","devDependencies","optionalDependencies","peerDependencies"]){let o=e[r];if(typeof o!="object"||o===null)continue;let n=o[H],i=typeof n=="string"?n.trim():"",s=/^[<!]/u.test(i)?void 0:i.match(pe)?.[0];s&&t.push(s)}return t.sort((r,o)=>U(o,r))[0]}function N_(e){let r=ce(j.join(e,"package-lock.json"))?.packages;if(typeof r!="object"||r===null)return;let o=r["node_modules/@unbrained/pm-cli"];if(typeof o!="object"||o===null)return;let n=o.version;return typeof n=="string"?n:void 0}function w_(e,t){try{let r=rt.readFileSync(j.join(e,t),"utf8").split(/\r?\n/u),o=r.findIndex(a=>a.includes(H));if(o<0)return;let n=r[o].match(/^\s*/u)[0].length,i=[r[o]];for(let a=o+1;a<r.length;a+=1){let c=r[a],p=c.trim(),l=c.match(/^\s*/u)[0].length;if(p.length>0&&l<=n)break;i.push(c)}return i.join(`
2
+ `).match(/^\s*version(?::\s*|\s+)["']?(\d{4}\.\d{1,2}\.\d{1,2}(?:-\d+)?)/mu)?.[1]??i[0].match(pe)?.[0]}catch{return}}function k_(e){let t=[],r=ce(j.join(e,"package.json")),o=r?I_(r):void 0;o&&t.push({version:o,source:"package.json"});let i=ce(j.join(e,"node_modules","@unbrained","pm-cli","package.json"))?.version;typeof i=="string"&&B(i)&&t.push({version:i,source:"installed-package"});let s=N_(e);s&&B(s)&&t.push({version:s,source:"package-lock.json"});for(let d of["pnpm-lock.yaml","yarn.lock"]){let a=w_(e,d);a&&t.push({version:a,source:d})}return t}function ot(e){for(let t=0;t<e.length;t+=1){let r=e[t];if(nt.has(r)){t+=1;continue}if(!r.startsWith("-"))return{command:r.toLowerCase(),index:t}}}function v_(e){let t=ot(e);if(!t||m(e,["--help","-h","--dry-run"]))return!1;let{command:r,index:o}=t,n=[];for(let s=o+1;s<e.length;s+=1){let d=e[s];if(nt.has(d)){s+=1;continue}d.startsWith("-")||n.push(d.toLowerCase())}let i=x_[r];return i?i(e,n):R_.has(r)}function P_(e){let t=ot(e.argv)?.command,r=v_(e.argv),n=k_(e.projectRoot).filter(d=>U(d.version,e.executingVersion)!==null).sort((d,a)=>U(a.version,d.version))[0],i=n!==void 0&&U(e.executingVersion,n.version)===-1,s=i&&!r?{code:"project_runtime_stale_read",executing_version:e.executingVersion,project_version:n.version,source:n.source,message:"This read is using an older pm runtime than the project requires.",next_steps:[`Run the command through the project's installed ${H} ${n.version}.`,"Install the project dependencies with its declared package manager if the local executable is missing."]}:void 0;return{compatible:!r||!i||e.allowStale===!0,executing_version:e.executingVersion,...n?{project_version:n.version,source:n.source}:{},...t?{command:t}:{},mutating:r,stale:i,...s?{warning:s}:{},override_applied:i&&r&&e.allowStale===!0}}function sx(e){let t=P_(e);if(t.compatible)return t;throw new K(`pm ${t.executing_version} cannot mutate a project pinned to newer pm ${t.project_version}.`,C.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 ${H} ${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 M_}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 le=1;function R(e){e?.throwIfAborted()}function T(e,t){if(typeof e!="string"||e.trim().length===0)throw new TypeError(`Relationship graph ${t} must be non-empty`);return e.trim()}function x(e,t,r={}){let o=Date.parse(r.createdAt??new Date().toISOString());if(!Number.isFinite(o))throw new TypeError("Relationship graph createdAt must be a valid timestamp");let n=e.nodes(),i=e.edges(),s=t.list();return Object.freeze({version:le,fingerprint:M_("sha256").update(F({nodes:n,edges:i,kinds:s})).digest("hex"),created_at:new Date(o).toISOString(),nodes:n,edges:i,kinds:s})}function L_(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function M(e){if(!L_(e))throw new TypeError("Relationship graph snapshot must be an object");if(e.version!==le)throw new TypeError(`Unsupported relationship graph snapshot version: ${String(e.version)}`);if(!Array.isArray(e.nodes)||e.nodes.some(n=>typeof n!="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 Y([]);for(let n of e.kinds)t.register(n);let r=new A(e.nodes,e.edges,t),o=x(r,t,{createdAt:e.created_at});if(o.fingerprint!==e.fingerprint)throw new TypeError("Relationship graph snapshot fingerprint mismatch");return{snapshot:o,registry:t,graph:r}}async function f(e,t){T(e.name,"adapter name");let r=T(t.workspace,"workspace");R(t.signal);let o=await e.read({...t,workspace:r});return R(t.signal),o===null?null:M(o)}async function z(e,t){let r=T(t.workspace,"workspace"),o=M(t.snapshot).snapshot,n=await f(e,{workspace:r,signal:t.signal});if(n?.snapshot.fingerprint===o.fingerprint)return{adapter:e.name,workspace:r,disposition:"current",fingerprint:o.fingerprint,previous_fingerprint:n.snapshot.fingerprint,node_count:o.nodes.length,edge_count:o.edges.length};if(R(t.signal),await e.replace({workspace:r,signal:t.signal,snapshot:o,expected_fingerprint:n?.snapshot.fingerprint??null}),(await f(e,{workspace:r,signal:t.signal}))?.snapshot.fingerprint!==o.fingerprint)throw new Error(`Relationship graph adapter "${e.name}" did not expose the replaced snapshot`);return{adapter:e.name,workspace:r,disposition:"written",fingerprint:o.fingerprint,...n?{previous_fingerprint:n.snapshot.fingerprint}:{},node_count:o.nodes.length,edge_count:o.edges.length}}function D_(e,t={}){let r=e.map(M),o=new Map;for(let s of r)for(let d of s.snapshot.kinds){let a=o.get(d.kind);if(a&&F(a)!==F(d))throw new TypeError(`Conflicting federated relationship kind: ${d.kind}`);o.set(d.kind,d)}let n=new Y([...o.values()].sort((s,d)=>s.kind.localeCompare(d.kind))),i=new A(new Set(r.flatMap(s=>[...s.snapshot.nodes])),r.flatMap(s=>[...s.snapshot.edges]),n);return x(i,n,t)}var P=class{name;#e=new Map;constructor(t="memory"){this.name=T(t,"adapter name")}async read(t){R(t.signal);let r=this.#e.get(T(t.workspace,"workspace"));return r?structuredClone(r):null}async replace(t){R(t.signal);let r=T(t.workspace,"workspace"),o=this.#e.get(r);if(t.expected_fingerprint!==void 0&&(o?.fingerprint??null)!==t.expected_fingerprint)throw new Error(`Relationship graph adapter conflict for ${r}`);this.#e.set(r,structuredClone(M(t.snapshot).snapshot))}async clear(t){R(t.signal);let r=T(t.workspace,"workspace"),o=this.#e.get(r);if(t.expected_fingerprint!==void 0&&(o?.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 it(e,t){if(!Number.isInteger(e)||e<1)throw new TypeError(`Relationship graph ${t} must be a positive integer`);return e}function F_(e){let t=it(e.nodeCount,"nodeCount"),r=it(e.edgeStride??1,"edgeStride"),o=e.topology??"chain";if(!["chain","star","disconnected"].includes(o))throw new TypeError(`Unsupported relationship graph topology: ${o}`);let n=(e.kind??"related").trim(),i=(e.idPrefix??"node").trim();if(!n||!i)throw new TypeError("Relationship graph kind and idPrefix must be non-empty");let s=o==="disconnected"?0:Math.floor((t-1)/r);return{node_count:t,edge_count:s,edge_basis:"fixture_generated",nodes:{*[Symbol.iterator](){for(let d=0;d<t;d+=1)yield`${i}-${d}`}},edges:{*[Symbol.iterator](){if(o!=="disconnected")for(let d=r;d<t;d+=r)yield{source:`${i}-${o==="star"?0:d-r}`,target:`${i}-${d}`,kind:n}}}}}function y(e,t){if(!e)throw new Error(`Relationship graph adapter conformance: ${t}`)}async function st(e,t={}){let r=t.workspace?.trim()||"pm-graph-conformance",o=ye(),n=x(new A(["a","b"],[{source:"a",target:"b",kind:"related"}],o),o,{createdAt:"2026-01-01T00:00:00.000Z"}),i=x(new A(["a","b","c"],[{source:"a",target:"b",kind:"related"},{source:"b",target:"c",kind:"blocked_by"}],o),o,{createdAt:"2026-01-02T00:00:00.000Z"}),s=[];y(await f(e,{workspace:r})===null,"workspace must start empty"),s.push({name:"empty-read",passed:!0});let d=await z(e,{workspace:r,snapshot:n});y(d.disposition==="written","first sync must write"),s.push({name:"atomic-replace",passed:!0}),(await e.read({workspace:r})).nodes.push("mutated-reader-copy"),y((await f(e,{workspace:r}))?.snapshot.nodes.length===2,"reads must not mutate stored state"),s.push({name:"read-isolation",passed:!0}),y((await z(e,{workspace:r,snapshot:n})).disposition==="current","identical sync must be idempotent"),s.push({name:"idempotent-sync",passed:!0}),await e.replace({workspace:r,snapshot:i,expected_fingerprint:n.fingerprint}),y((await f(e,{workspace:r}))?.snapshot.fingerprint===i.fingerprint,"replacement must become visible"),s.push({name:"replacement-visibility",passed:!0});let c=!1;try{await e.replace({workspace:r,snapshot:n,expected_fingerprint:n.fingerprint})}catch{c=!0}return y(c,"stale compare-and-swap must fail"),s.push({name:"stale-cas",passed:!0}),e.clear&&(await e.clear({workspace:r,expected_fingerprint:i.fingerprint}),y(await f(e,{workspace:r})===null,"clear must remove the workspace"),s.push({name:"clear",passed:!0})),{adapter:e.name,workspace:r,cases:Object.freeze(s),clear_supported:e.clear!==void 0}}function G_(e){return st(new P,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]="20842b89-cef6-542e-b069-76c22b340f1d")}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 at}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 dt(e,t){if(typeof e!="string"||e.trim().length===0)throw new TypeError(`Relationship backfill ${t} must be non-empty`);return e.trim()}function vx(e,t){let r=dt(t.migrationId,"migrationId"),o=dt(t.author,"author"),n=Date.parse(t.timestamp);if(!Number.isFinite(n))throw new TypeError("Relationship backfill timestamp must be valid");let i=new Date(n).toISOString(),s=te(e,void 0,t.registry),d=s.graph.nodes(),a=s.graph.edges().map(u=>{let h=at("sha256").update(JSON.stringify([r,u.kind,u.source,u.target,u.createdAt??null,u.author??null,u.payload??null])).digest("hex").slice(0,24);return Object.freeze({eventId:`backfill:${r}:${h}`,relationshipId:`migration:${r}:${h}`,action:"add",edge:u,author:o,timestamp:i,reason:`Backfill ${r} from legacy item metadata`})}),c=at("sha256").update(JSON.stringify({migrationId:r,nodes:d,events:a})).digest("hex"),p=new Set([...t.existingEventIds??[]].filter(u=>typeof u=="string").map(u=>u.trim()).filter(Boolean)),l=a.filter(u=>!p.has(u.eventId));return Object.freeze({migration_id:r,fingerprint:c,nodes:d,events:Object.freeze(l),edge_count:a.length,skipped_existing_count:a.length-l.length,duplicate_dependency_rows:s.duplicateRows.length,dangling_reference_count:s.dangling.active.length+s.dangling.legacy_terminal.length})}import*as ct from"node:module";(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]="4f4e7daa-14aa-5dad-8a30-79a4d76159d4")}catch{}})();var L=["suggested_retry","candidate_command","example","next_step","migration_hint","restore_with"],ue={suggested_retry:{kind:"suggested_retry",semantics:"recovery"},retry_command:{kind:"suggested_retry",semantics:"recovery"},candidate_command:{kind:"candidate_command",semantics:"recovery"},candidate_commands:{kind:"candidate_command",semantics:"recovery"},fallback_candidates:{kind:"candidate_command",semantics:"recovery",nested_value_field:"command"},next_best_command:{kind:"candidate_command",semantics:"recovery"},example:{kind:"example",semantics:"recovery"},examples:{kind:"example",semantics:"recovery"},next_step:{kind:"next_step",semantics:"recovery"},next_steps:{kind:"next_step",semantics:"recovery"},suggested_next_steps:{kind:"next_step",semantics:"recovery"},migration_hint:{kind:"migration_hint",semantics:"replacement"},migration_hints:{kind:"migration_hint",semantics:"replacement"},restore_with:{kind:"restore_with",semantics:"behavior_preserving"}},Mx=Object.freeze(Object.keys(ue));function pt(e){if(Object.hasOwn(ue,e))return ue[e]}var $_=new Set([..."=([{,:;!?&|+-*%^~<>","=>"]);function I(e,t){return e<t?-1:e>t?1:0}function U_(e,t){let r=e[t],o=t+1,n="";for(;o<e.length&&e[o]!==r;)e[o]==="\\"?o+=2:(n+=e[o],o+=1);return e[o]===r&&(o+=1),{next:o,value:n}}function j_(e){return e===void 0||e.kind==="punctuator"&&$_.has(e.value)||e.kind==="identifier"&&["return","case","throw","else","yield"].includes(e.value)}function B_(e,t){if(/\s/u.test(e[t]))return t+1;if(e.startsWith("//",t)){let r=e.indexOf(`
3
+ `,t+2);return r===-1?e.length:r+1}if(e.startsWith("/*",t))return e.indexOf("*/",t+2)+2}function H_(e,t,r){if(e[t]!=="/"||!j_(r))return;let o=t+1,n=!1;for(;o<e.length;)if(e[o]==="\\")o+=2;else if(e[o]==="[")n=!0,o+=1;else if(e[o]==="]")n=!1,o+=1;else if(e[o]==="/"&&!n){for(o+=1;/[A-Za-z]/u.test(e.charAt(o));)o+=1;return o}else o+=1;return o}function z_(e,t){let r=e[t];if(r==="'"||r==='"'||r==="`"){let n=U_(e,t);return r==="`"?{next:n.next}:{next:n.next,token:{kind:"string",value:n.value,offset:t+1}}}if(/[A-Za-z_$]/u.test(r)){let n=t+1;for(;/[A-Za-z0-9_$]/u.test(e[n]??"");)n+=1;return{next:n,token:{kind:"identifier",value:e.slice(t,n),offset:t}}}let o=e.startsWith("=>",t)?"=>":r;return{next:t+o.length,token:{kind:"punctuator",value:o,offset:t}}}function V_(e){let t=[],r=0;for(;r<e.length;){let o=B_(e,r);if(o!==void 0){r=o;continue}let n=H_(e,r,t.at(-1));if(n!==void 0){r=n;continue}let i=z_(e,r);i.token&&t.push(i.token),r=i.next}return t}var W_=new Set(["object","block","pattern"]),K_=new Set(["const","let","var"]),X_=new Set(["}",")","]"]),Y_=new Set(["=","(","[",",",":","?","return"]);function q_(e,t,r){if([...r].reverse().find(i=>W_.has(i.kind))?.kind==="pattern"||r.at(-1)?.kind==="paren"&&r.at(-1)?.parameter_list)return"pattern";let n=e[t-1];return n?.kind==="identifier"&&K_.has(n.value)?"pattern":n?.value==="=>"||n?.value===")"?"block":n&&Y_.has(n.value)?"object":"block"}function J_(e,t,r){let o=e[t];if(o.value==="{"){let d=q_(e,t,r);return{kind:d,...d==="object"?{member_start:!0,candidates:[]}:{}}}if(o.value==="[")return{kind:"array"};if(o.value!=="(")return;let n=e[t-1],i=e[t-2];return{kind:"paren",...n?.value==="function"||i?.value==="function"?{parameter_list:!0}:{}}}function Z_(e,t,r){if(!(e?.kind!=="object"||!e.member_start||t.kind!=="identifier"&&t.kind!=="string"||r?.value!==":"||!/^[A-Za-z][A-Za-z0-9_]*$/u.test(t.value)))return{field:t.value,offset:t.offset}}function Q_(e,t){return e[t+1]?.value===")"&&e[t+2]?.value==="=>"||e[t+1]?.value==="="}function ef(e){let t=V_(ct.stripTypeScriptTypes(e,{mode:"strip"})),r=[],o=[];for(let[n,i]of t.entries()){let s=o.at(-1),d=Z_(s,i,t[n+1]);d&&s.candidates.push(d);let a=J_(t,n,o);if(a)o.push(a);else if(X_.has(i.value)){let c=o.pop();c?.kind==="object"&&!Q_(t,n)&&r.push(...c.candidates)}else i.value===","&&s?.kind==="object"?s.member_start=!0:s?.kind==="object"&&i.value!==":"&&(s.member_start=!1)}return r}function tf(e){let t=[0];for(let r=0;r<e.length;r+=1)e[r]===`
4
+ `&&t.push(r+1);return t}function rf(e,t){let r=0,o=e.length;for(;r<o;){let n=Math.floor((r+o)/2);e[n]<=t?r=n+1:o=n}return r}function Lx(e){let t=[],r=[];for(let n of[...e].sort((i,s)=>I(i.path,s.path))){let i=tf(n.content),s;try{s=ef(n.content)}catch(d){r.push({kind:"invalid_source",subject:n.path,detail:`${n.path} could not be parsed for recovery producers: ${String(d)}.`});continue}for(let d of s){let a=d.field,c=rf(i,d.offset),p=pt(a);p?t.push({path:n.path,line:c,field:a,kind:p.kind}):/(?:retry_command|candidate_command|fallback_candidate|next_best_command|example|next_step|migration_hint|restore_with)/u.test(a)&&!/(?:_total|_truncated)$/u.test(a)&&r.push({kind:"unknown_recovery_field",subject:`${n.path}:${c}:${a}`,detail:`${a} resembles a recovery reference but has no typed field contract.`})}}let o=Object.fromEntries(L.map(n=>[n,t.filter(i=>i.kind===n).length]));for(let n of L)o[n]===0&&r.push({kind:"missing_kind_producer",subject:n,detail:`No source producer emits the ${n} recovery-reference kind.`});return t.sort((n,i)=>n.path!==i.path?I(n.path,i.path):n.line!==i.line?n.line-i.line:I(n.field,i.field)),r.sort((n,i)=>n.subject!==i.subject?I(n.subject,i.subject):I(n.kind,i.kind)),{ok:r.length===0,scanned_file_count:e.length,producer_count:t.length,producer_count_by_kind:o,producers:t,findings:r}}function Dx(e,t){let r=[],o=(n,i)=>{if(Array.isArray(n)){n.forEach((s,d)=>o(s,[...i,String(d)]));return}if(!(typeof n!="object"||n===null))for(let[s,d]of Object.entries(n).sort(([a],[c])=>I(a,c))){let a=pt(s),c=a?.kind==="migration_hint"&&n.semantics==="behavior_preserving"?{...a,semantics:"behavior_preserving"}:a,p=[d].flat();c!==void 0&&p.forEach((l,u)=>{let h="nested_value_field"in c&&typeof c.nested_value_field=="string"?c.nested_value_field:void 0,N=h&&typeof l=="object"&&l!==null&&!Array.isArray(l)?l[h]:l;if(typeof N!="string"||N.trim().length===0)return;let w=[...i,s,String(u)].map(D=>encodeURIComponent(D)).join("/");r.push({id:`${e}:${c.kind}:${w}`,probe_id:e,kind:c.kind,semantics:c.semantics,value:N})}),o(d,[...i,s])}};return o(t,[]),r}function Fx(e,t){let r=e.flatMap(s=>(s.owned_states??[]).map(d=>({contract:s,state:d}))),o=[],n=new Map;for(let s of t){if(n.has(s.probe_id)){o.push({kind:"duplicate_probe",probe_id:s.probe_id,detail:`Observation ${s.probe_id} was supplied more than once.`});continue}n.set(s.probe_id,s)}let i=new Set(r.map(({state:s})=>s.probe_id));for(let{contract:s,state:d}of r){let a=n.get(d.probe_id);if(!a){o.push({kind:"missing_probe",probe_id:d.probe_id,detail:`No entrypoint observation was recorded for ${s.code}.`});continue}a.code!==s.code&&o.push({kind:"wrong_error_code",probe_id:d.probe_id,detail:`Expected ${s.code}; observed ${a.code}.`}),a.exit_class!==d.expected_exit_class&&o.push({kind:"wrong_exit_class",probe_id:d.probe_id,detail:`Expected ${d.expected_exit_class}; observed ${a.exit_class}.`}),d.entrypoints.includes(a.entrypoint)||o.push({kind:"wrong_entrypoint",probe_id:d.probe_id,detail:`Expected one of ${d.entrypoints.join(", ")}; observed ${a.entrypoint}.`})}for(let s of t)i.has(s.probe_id)||o.push({kind:"undeclared_probe",probe_id:s.probe_id,detail:`Observation ${s.probe_id} has no catalog declaration.`});return o.sort((s,d)=>s.probe_id!==d.probe_id?s.probe_id.localeCompare(d.probe_id):s.kind.localeCompare(d.kind)),{ok:o.length===0,declared_probe_count:r.length,observed_probe_count:t.length,findings:o}}function Gx(e,t){let r=[],o=new Set,n=new Set;for(let a of e){if(o.has(a.id)){n.add(a.id),r.push({kind:"duplicate_obligation",reference_id:a.id,detail:`Recovery obligation ${a.id} was declared more than once.`});continue}o.add(a.id)}let i=new Map;for(let a of t){if(i.has(a.id)){r.push({kind:"duplicate_observation",reference_id:a.id,detail:`Recovery reference ${a.id} was observed more than once.`});continue}i.set(a.id,a),o.has(a.id)||r.push({kind:"undeclared_observation",reference_id:a.id,detail:`Recovery observation ${a.id} has no emitted obligation.`})}for(let a of e){if(n.has(a.id))continue;let c=i.get(a.id);c?c.reachable?c.semantics!==a.semantics&&r.push({kind:"wrong_semantics",reference_id:a.id,detail:`Recovery reference ${a.value} promised ${a.semantics}; proof demonstrated ${c.semantics}.`}):r.push({kind:"unreachable_reference",reference_id:a.id,detail:`Recovery reference ${a.value} did not reach its promised target.`}):r.push({kind:"missing_observation",reference_id:a.id,detail:`No reachability proof was recorded for ${a.kind} ${a.value}.`})}let s=L.map(a=>{let c=e.filter(l=>l.kind===a),p=c.filter(l=>!n.has(l.id)).map(l=>i.get(l.id)).filter(l=>l!==void 0);return{kind:a,declared:c.length,observed:p.length,passed:c.filter(l=>{let u=i.get(l.id);return!n.has(l.id)&&u?.reachable===!0&&u.semantics===l.semantics}).length}});r.sort((a,c)=>a.reference_id!==c.reference_id?a.reference_id.localeCompare(c.reference_id):a.kind.localeCompare(c.kind));let d=s.reduce((a,c)=>a+c.passed,0);return{ok:r.length===0,declared_reference_count:e.length,observed_reference_count:t.length,pass_fraction:o.size===0?1:d/o.size,coverage_by_kind:s,findings:r}}function nf(e,t){let r=new Map(L.map(i=>[i,new Set]));for(let i of t)r.get(i.kind).add(i.value);let o=L.map(i=>({kind:i,source_producers:e.producer_count_by_kind[i],runtime_values:r.get(i).size})),n=o.filter(({source_producers:i,runtime_values:s})=>i>0&&s===0).map(({kind:i})=>i);return{ok:e.ok&&n.length===0,source_producer_count:e.producer_count,runtime_value_count:o.reduce((i,{runtime_values:s})=>i+s,0),coverage_by_kind:o,missing_runtime_kinds:n}}var $x=nf;(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0ec8c375-e58e-5ce4-b0aa-8a8a4dfa0778")}catch{}})();function of(e){return[e.expected_error_code!==void 0&&e.error_code!==e.expected_error_code?{code:"error_code_mismatch",probe_id:e.probe_id,detail:`Expected error code ${e.expected_error_code}, received ${e.error_code??"<missing>"}.`}:void 0,e.expected_allowed_values!==void 0&&JSON.stringify([...e.allowed_values].sort())!==JSON.stringify([...e.expected_allowed_values].sort())?{code:"incomplete_allowed_values",probe_id:e.probe_id,detail:"The refusal's accepted domain differs from the SDK-owned domain contract."}:void 0,e.expected_suggested_retry_args!==void 0&&(e.suggested_retry_args?.length??0)===0?{code:"missing_suggested_retry_args",probe_id:e.probe_id,detail:"The refusal omitted shell-free suggested retry arguments."}:void 0,e.expected_suggested_retry_args!==void 0&&(e.suggested_retry_args?.length??0)>0&&JSON.stringify(e.suggested_retry_args)!==JSON.stringify(e.expected_suggested_retry_args)?{code:"suggested_retry_args_mismatch",probe_id:e.probe_id,detail:"The refusal's suggested retry arguments differ from the SDK-owned contract."}:void 0]}function sf(e){return[e.exit_code!==C.USAGE?{code:"non_refusal_exit",probe_id:e.probe_id,detail:`${e.entrypoint} returned exit code ${e.exit_code}; a structured usage refusal must return ${C.USAGE}.`}:void 0,e.allowed_values_required!==!1&&e.allowed_values.length===0?{code:"missing_allowed_values",probe_id:e.probe_id,detail:"The refusal omitted its complete accepted value domain."}:void 0,e.allowed_values.includes(e.rejected_value)?{code:"accepted_rejected_value",probe_id:e.probe_id,detail:`${e.rejected_value} is both rejected and advertised as allowed.`}:void 0,e.suggested_retry.trim().length===0?{code:"missing_suggested_retry",probe_id:e.probe_id,detail:"The refusal omitted an executable suggested retry."}:void 0,e.retry_succeeded?void 0:{code:"retry_failed",probe_id:e.probe_id,detail:"The advertised suggested retry did not succeed."},...of(e)]}function Bx(e){let t=[],r=new Set,o=0;e.length===0&&t.push({code:"empty_corpus",probe_id:"corpus",detail:"At least one real refusal observation is required."});for(let n of e){if(r.has(n.probe_id)){t.push({code:"duplicate_probe",probe_id:n.probe_id,detail:`${n.probe_id} was supplied more than once.`});continue}r.add(n.probe_id);let i=t.length;for(let s of sf(n))s!==void 0&&t.push(s);t.length===i&&(o+=1)}return t.sort((n,i)=>n.probe_id!==i.probe_id?n.probe_id.localeCompare(i.probe_id):n.code.localeCompare(i.code)),{ok:t.length===0,probe_count:r.size,closed_probe_count:o,closure_fraction:r.size===0?0:o/r.size,findings:t}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2e90ea29-2708-5af8-b390-599be97718e7")}catch{}})();var lt="not-a-declared-action";function af(e,t){if(e.startsWith("assurance ")&&t.name==="kind")return"measurement";switch(t.value_kind){case"integer":return"1";case"item_id":return"pm-domain";case"action":throw new Error(`Cannot synthesize a preceding action value for positional slot ${t.name}.`);default:return"example"}}function me(e){return e.replaceAll(/[^a-z0-9]+/gu,"-").replaceAll(/^-|-$/gu,"")}function qx(e=Q.filter(t=>be.some(r=>r.command===t.command&&r.disposition!=="package_owned"))){return e.flatMap(t=>t.slots.flatMap((r,o)=>{if(!r.required)return[];let n=t.command.split(" "),i=k(t.command).flatMap(d=>d.required?[d.flag,...d.value_name?["example"]:[]]:[]),s=Z.some(d=>d.command===t.command);return[{probe_id:`required-argument-${me(t.command)}-${me(r.name)}`,command:t.command,refusal_args:[...n,...t.slots.slice(0,o).map(d=>af(t.command,d)),...i],recovery_args:[...n,"--help"],error_code:s&&!t.command.startsWith("assurance ")?"invalid_argument_value":/^extension (?:activate|adopt|deactivate|uninstall)$/u.test(t.command)?"missing_lifecycle_target":"missing_required_argument",missing_argument:r.name,missing_argument_index:o}]})).sort((t,r)=>t.probe_id.localeCompare(r.probe_id))}function df(e){switch(e){case"assurance":case"workspace snapshot":return Z.filter(({parent:t})=>t===e).map(({action:t})=>t);case"graph":return q;case"merge":return J;case"plan":return re;case"profile":return ne;case"schema":return Re;default:throw new Error(`Required positional action family ${e} has no authoritative value domain.`)}}function Jx(e=Q){return e.filter(({slots:t})=>t[0]?.required===!0&&t[0].value_kind==="action").map(({command:t})=>{let r=t.split(" ");return{probe_id:`unknown-subcommand-${me(t)}`,command:t,refusal_args:[...r,lt],recovery_args:[...r,"--help"],error_code:"unknown_subcommand",rejected_value:lt,allowed_values:[...df(t)].sort()}}).sort((t,r)=>t.probe_id.localeCompare(r.probe_id))}function cf(e,t){let r=[...t].sort();return e.length===t.length&&[...e].sort().every((o,n)=>o===r[n])}function pf(e,t){if(!t)return[{code:"refusal_probe_missing",probe_id:e.probe_id,detail:`${e.probe_id} has no runtime observation.`}];let r=[];return t.error_code!==e.error_code&&r.push({code:"refusal_error_code_mismatch",probe_id:e.probe_id,detail:`${e.probe_id} emitted ${t.error_code||"<none>"}; expected ${e.error_code}.`}),t.exit_code!==2&&r.push({code:"refusal_exit_code_mismatch",probe_id:e.probe_id,detail:`${e.probe_id} exited ${t.exit_code}; expected usage exit 2.`}),"allowed_values"in e&&!cf(t.allowed_values,e.allowed_values)&&r.push({code:"refusal_allowed_values_mismatch",probe_id:e.probe_id,detail:`${e.probe_id} did not expose its complete action domain.`}),t.recovery_succeeded||r.push({code:"refusal_recovery_failed",probe_id:e.probe_id,detail:`${e.probe_id} help recovery did not succeed.`}),t.refusal_mutated_state&&r.push({code:"refusal_mutated_state",probe_id:e.probe_id,detail:`${e.probe_id} changed tracker state while refusing input${t.mutated_paths?.length?`: ${t.mutated_paths.join(", ")}`:"."}`}),r}function Zx(e,t){let r=new Map(e.map(s=>[s.probe_id,s])),o=new Map(t.map(s=>[s.probe_id,s])),n=[...e.flatMap(s=>pf(s,o.get(s.probe_id))),...t.filter(s=>!r.has(s.probe_id)).map(s=>({code:"unexpected_refusal_probe",probe_id:s.probe_id,detail:`${s.probe_id} has no declared grammar refusal contract.`}))];n.sort((s,d)=>s.probe_id.localeCompare(d.probe_id)||s.code.localeCompare(d.code));let i=new Set(n.map(({probe_id:s})=>s));return{ok:n.length===0,probe_count:e.length,closed_probe_count:e.filter(({probe_id:s})=>!i.has(s)).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]="941a11a9-f756-56b3-9dc1-8afd78bc9328")}catch{}})();var _e=[{probe_id:"tracker-root-missing",failure_kind:"missing_root",expected_error_code:"tracker_root_missing",expected_exit_code:3,recovery_kind:"initialize"},{probe_id:"tracker-root-settings-missing",failure_kind:"settings_missing",expected_error_code:"tracker_not_initialized",expected_exit_code:3,recovery_kind:"initialize"},{probe_id:"tracker-root-not-directory",failure_kind:"not_directory",expected_error_code:"tracker_root_not_directory",expected_exit_code:2,recovery_kind:"select_directory"},{probe_id:"tracker-root-unreadable",failure_kind:"unreadable_root",expected_error_code:"tracker_root_unreadable",expected_exit_code:1,recovery_kind:"repair_permissions"}];function eI(){return _e.map(e=>({...e}))}function lf(e,t){let r=[];t.error_code!==e.expected_error_code&&r.push({code:"error_code_mismatch",probe_id:e.probe_id,detail:`Expected ${e.expected_error_code}, received ${t.error_code}.`}),t.exit_code!==e.expected_exit_code&&r.push({code:"exit_code_mismatch",probe_id:e.probe_id,detail:`Expected exit ${e.expected_exit_code}, received ${t.exit_code}.`}),t.recovery_kind!==e.recovery_kind&&r.push({code:"recovery_kind_mismatch",probe_id:e.probe_id,detail:`Expected ${e.recovery_kind}, received ${t.recovery_kind}.`});let o=t.suggested_retry_args.indexOf("init"),n=o===0||o===2&&t.suggested_retry_args[0]==="--pm-path"&&t.suggested_retry_args[1]?.length>0;return e.recovery_kind==="initialize"&&!n&&r.push({code:"missing_init_recovery",probe_id:e.probe_id,detail:"Missing and uninitialized roots must emit a tokenized init retry."}),(t.unsafe_init_recommended||e.recovery_kind!=="initialize"&&t.suggested_retry_args.includes("init"))&&r.push({code:"unsafe_init_recovery",probe_id:e.probe_id,detail:"A tracker root that cannot be initialized safely must not recommend initialization."}),t.retry_succeeded||r.push({code:"retry_failed",probe_id:e.probe_id,detail:"The emitted retry or safe alternate-root recovery did not execute successfully."}),r}function tI(e){let t=new Map(e.map(n=>[n.probe_id,n])),r=[],o=0;for(let n of _e){let i=t.get(n.probe_id);if(i===void 0){r.push({code:"missing_probe",probe_id:n.probe_id,detail:"No runtime observation was supplied for this contract."});continue}let s=lf(n,i);r.push(...s),s.length===0&&(o+=1)}return r.sort((n,i)=>n.probe_id.localeCompare(i.probe_id)||n.code.localeCompare(i.code)),{ok:r.length===0,probe_count:_e.length,closed_probe_count:o,findings:r}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8320177c-e95d-5d14-a914-4ac37230c0b9")}catch{}})();var V,uf=Object.freeze({list:"list-item-projection","list-all":"list-item-projection","list-draft":"list-item-projection","list-open":"list-item-projection","list-in-progress":"list-item-projection","list-blocked":"list-item-projection","list-closed":"list-item-projection","list-canceled":"list-item-projection",get:"get-item-projection",graph:"graph-detail-projection",search:"search-result-projection",history:"history-entry-projection",events:"mutation-event-projection",activity:"activity-entry-projection",deps:"dependency-graph-projection",health:"health-diagnostic-projection",validate:"validation-diagnostic-projection",contracts:"contract-catalog-projection"});function mf(e,t){if(t==="--limit")return"result-row-limit";if(t==="--node-limit")return"graph-node-limit";if(t==="--edge-limit")return"graph-edge-limit";if(t==="--output-limit")return"rendered-output-row-limit";if(t==="--output-budget")return"rendered-output-byte-budget";if(t==="--token-budget")return"context-intent-token-budget";if(t==="--full"){let r=uf[e];if(r===void 0)throw new Error(`Command ${e} exposes --full without a registered projection concept.`);return r}return t!=="--file"?t.slice(2):["create","update","update-many"].includes(e)?"linked-file-path":["comments","notes","learnings"].includes(e)?"entry-file-input":"plan-definition-file"}function W(){if(V!==void 0)return V;let t=oe.filter(({command:i})=>ee(i)).flatMap(({command:i,family:s})=>Ve(i,k(i)).map(d=>({command:i,family:s,concept:mf(i,d.flag),flag:d.flag,aliases:Object.freeze([...d.aliases??[]]),value_kind:d.repeatable?"list":d.flag==="--limit"?"number":d.value_type}))),r=new Set(t.flatMap(i=>i.aliases.map(s=>`${i.command}:${s}`))),o=t.filter(i=>!r.has(`${i.command}:${i.flag}`)),n=new Map;for(let i of o){let s=n.get(i.concept)??new Set;s.add(i.value_kind),n.set(i.concept,s)}return V=Object.freeze(o.map(i=>Object.freeze({...i,concept:n.get(i.concept)?.size===1?i.concept:`${i.concept}@${i.command}`}))),V}function sI(){return Object.freeze(W().map(e=>Object.freeze({command:e.command,canonical_flag:e.flag,accepted_spellings:Object.freeze([...new Set([e.flag,...e.aliases])].sort())})))}var ut=Object.freeze({init:30,config:35,extension:53,package:54,packages:54,install:26,upgrade:29,create:100,copy:24,focus:22,list:86,"list-all":85,"list-draft":84,"list-open":84,"list-in-progress":84,"list-blocked":84,"list-closed":84,"list-canceled":84,aggregate:37,context:45,ctx:45,get:30,graph:34,search:78,duplicates:24,eval:25,next:35,history:35,events:33,"history-redact":27,"history-repair":26,"history-compact":30,"history-author-acknowledge":28,merge:24,schema:40,profile:22,activity:35,restore:23,update:105,"update-many":140,close:31,"close-many":72,delete:24,append:24,comments:30,notes:34,learnings:26,files:39,docs:30,deps:32,plan:109,test:52,"test-all":40,telemetry:21,stats:29,health:36,validate:45,assurance:30,gc:22,workspace:23,contracts:29,claim:36,release:23,"start-task":23,"pause-task":23,"close-task":24,meet:33,event:33,remind:29,"test-runs-worker":25});function mt(){let e=new Map(Object.keys(ut).map(t=>[t,0]));for(let{command:t}of W())e.set(t,Number(e.get(t))+1);return Object.freeze(Object.entries(ut).map(([t,r])=>Object.freeze({command:t,current:Number(e.get(t)),maximum:r})))}function _f(e,t,r){for(let o of e)for(let n of o.aliases){let i=t.get(`${o.command}:${n}`);i===void 0||i.flag===o.flag||r.push({code:"alias_collision",command:o.command,detail:`${n} aliases ${o.flag} but is canonical for ${i.flag}.`})}}function ff(e,t,r){let o=new Set(t.map(({command:n})=>n));for(let n of e.keys())o.has(n)||r.push({code:"missing_budget",command:n,detail:`${n} has canonical flags but no persisted budget.`});for(let n of t){let i=e.get(n.command)??0;i===0&&r.push({code:"stale_budget",command:n.command,detail:`${n.command} has a persisted budget but no canonical flags.`}),!(i<=n.maximum)&&r.push({code:"budget_exceeded",command:n.command,detail:`${i} canonical flags exceed the ratcheted maximum ${n.maximum}.`})}}function hf(e,t,r){let o=new Map(e.map(n=>[`${n.command}:${n.flag}`,n]));for(let n of t){let i=`${n.command}:${n.canonical_flag}`,s=o.get(i);if(!s){r.push({code:"removed_canonical_spelling",command:n.command,detail:`${n.canonical_flag} disappeared from the executable spelling inventory.`});continue}let d=new Set([s.flag,...s.aliases]);for(let a of n.accepted_spellings)d.has(a)||r.push({code:"removed_compatibility_spelling",command:n.command,detail:`${a} no longer resolves to ${n.canonical_flag}.`})}}function aI(e=W(),t=mt(),r=[]){let o=[],n=new Map,i=new Map,s=new Map,d=new Map;for(let a of e){let c=`${a.command}:${a.flag}`;n.has(c)?o.push({code:"duplicate_canonical_flag",command:a.command,detail:`${a.flag} has more than one canonical row.`}):n.set(c,a),d.set(a.command,(d.get(a.command)??0)+1);let p=i.get(a.concept);p!==void 0&&p!==a.value_kind?o.push({code:"inconsistent_concept_kind",command:a.command,detail:`${a.concept} uses both ${p} and ${a.value_kind}.`}):i.set(a.concept,a.value_kind);let l=s.get(a.concept);l!==void 0&&l!==a.flag?o.push({code:"semantic_spelling_collision",command:a.command,detail:`${a.concept} is canonicalized by both ${l} and ${a.flag}.`}):s.set(a.concept,a.flag)}return _f(e,n,o),ff(d,t,o),hf(e,r,o),o.sort((a,c)=>a.command.localeCompare(c.command)||a.code.localeCompare(c.code)||a.detail.localeCompare(c.detail)),{ok:o.length===0,entry_count:e.length,budget_count:t.length,concept_count:new Set(e.map(({concept:a})=>a)).size,baseline_entry_count:r.length,findings:o}}function dI(){let e=W(),t=mt(),r=new Map(t.map(({command:n})=>[n,"unknown"]));for(let{command:n,family:i}of e)r.set(n,i);return["# Generated flag lexicon budgets","","This file is generated by `listPmFlagLexicon()`. Compatibility aliases do not consume canonical budget.","","| Command | Capability family | Canonical flags | Maximum |","| --- | --- | ---: | ---: |",...t.map(({command:n,current:i,maximum:s})=>{let d=r.get(n);return`| \`${n}\` | ${d} | ${i} | ${s} |`}),""].join(`
5
+ `)}(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 pI(e){return e}function lI(e){return e}function uI(e){return e}function mI(e){return e}function _I(e){return e}function fI(e){return e}function hI(e){return e}function gI(e){return e}function TI(e){return e}function yI(e){return e}function CI(e){return e}function AI(e){return e}function EI(e){return e}function SI(e){return{handled:!0,result:e}}function bI(){return{handled:!1}}function OI(e){return e}function RI(e){return e}function xI(e){return e}function II(e){return e}function NI(e){return e}function wI(e){return e}function kI(e){return e}function vI(e){return e}function PI(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 gf(e={},t={}){return new G(t).extension(void 0,{...e,migrate:!0})}function Tf(e={},t={}){return new G(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]="bca95ba2-258c-5be2-8428-dcb8dbc87ef0")}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]="c2063b82-58b6-54c9-baff-ca252cadf463")}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]="036baf5a-3ba9-55ea-a11b-d9e94a848b92")}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]="714cb108-a51f-5f77-b628-dc994e659f45")}catch{}})();export{RE as ACTIONABILITY_ORDERING_KINDS,Zn as ACTIVITY_COMMANDER_STRING_OPTION_CONTRACTS,Xi as ACTIVITY_FLAG_CONTRACTS,or as AGENT_PROVENANCE_DIMENSIONS,vo as AGGREGATE_FLAG_CONTRACTS,Ti as APPEND_FLAG_CONTRACTS,EE as ASSURANCE_ACTIONS,SE as ASSURANCE_DECLARATION_KINDS,gA as ASSURANCE_DOCUMENT_VERSION,Gi as ASSURANCE_FLAG_CONTRACTS,TA as ASSURANCE_GATE_TRIGGERS,yA as ASSURANCE_MEASUREMENT_SOURCE_KINDS,DA as ASSURANCE_PRESET_IDS,mA as AssuranceEvaluationRefusalError,uA as AssuranceMutationRefusalError,_A as AssuranceSourceResolutionError,Ht as BASELINE_ITEM_FORMAT_VERSION,C_ as BOUNDARY_FIXTURE_CAPTURE_SOURCES,GE as BRIEF_LIST_FIELDS,sr as BUILTIN_AGENT_PROVENANCE_ADAPTERS,b as BUILTIN_CORPUS_SHAPES,ir as BUILTIN_HARNESS_SIGNAL_DESCRIPTORS,Ct as BUILTIN_ITEM_TYPE_VALUES,Le as BUILTIN_PROFILES,th as BUILTIN_RELATIONSHIP_KINDS,Yn as CALENDAR_COMMANDER_STRING_OPTION_CONTRACTS,Ki as CALENDAR_FLAG_CONTRACTS,yi as CLAIM_FLAG_CONTRACTS,us as CLOSE_ACTION_OPTION_KEYS,hi as CLOSE_FLAG_CONTRACTS,gi as CLOSE_MANY_FLAG_CONTRACTS,Oi as CLOSE_TASK_FLAG_CONTRACTS,Po as COMMENTS_FLAG_CONTRACTS,Xf as COMMON_MUTATION_COMMAND_OPTION_KEYS,ss as COMPLETION_FLAG_CONTRACTS,Rt as CONFIDENCE_TEXT_VALUES,Xo as CONFIG_FLAG_CONTRACTS,qn as CONTEXT_COMMANDER_STRING_OPTION_CONTRACTS,nS as CONTEXT_EVALUATION_METRIC_NAMES,qi as CONTEXT_FLAG_CONTRACTS,ke as CONTEXT_OUTPUT_VALUES,dS as CONTEXT_PACKING_PROFILES,QE as CONTEXT_RELEVANCE_SERVICE,JE as CONTEXT_RELEVANCE_SIGNAL_NAMES,hS as CONTEXT_SIGNAL_SET_VERSION,fS as CONTEXT_SIGNAL_STORE_FORMAT_VERSION,gS as CONTEXT_SIGNAL_STORE_WARNING_DETAILS,is as CONTRACTS_FLAG_CONTRACTS,Hi as COPY_FLAG_CONTRACTS,ro as CREATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,oo as CREATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,no as CREATE_COMMANDER_STRING_OPTION_CONTRACTS,Sf as CREATE_DIRECT_CLOSE_REASON_DEFAULT,$i as CREATE_FLAG_CONTRACTS,gT as CURRENT_HISTORY_ITEM_HASH_VERSION,zt as CURRENT_ITEM_FORMAT_VERSION,AS as ContextSignalStore,pS as ContextUsageValidationError,iA as DEFAULT_AUTHOR_IDENTITY_VOCABULARY,eb as DEFAULT_CHILD_SAMPLE_LIMIT,FE as DEFAULT_COMPACT_LIST_FIELDS,fy as DEFAULT_DERIVED_INDEX_MINIMUM_ITEMS,Rp as DEFAULT_EVAL_QUERIES_RELATIVE_PATH,DS as DEFAULT_TERMINAL_TRANSITION_POLICY,OS as DEFAULT_WORKSPACE_MEMORY_MINIMUM_ITEMS,fE as DEFECT_ESCAPE_CLASSES,hE as DEFECT_GATE_EVIDENCE_DISPOSITIONS,Ai as DELETE_FLAG_CONTRACTS,St as DEPENDENCY_KIND_VALUES,Qi as DEPS_FLAG_CONTRACTS,Fo as DOCS_FLAG_CONTRACTS,Li as DUPLICATES_FLAG_CONTRACTS,ts as EVAL_FLAG_CONTRACTS,Ep as EVAL_QUERY_SET_CONTRACT,Sp as EVAL_QUERY_SET_EXAMPLE,Ap as EVAL_QUERY_SET_SCHEMA_ID,Yi as EVENTS_FLAG_CONTRACTS,xi as EVENT_FLAG_CONTRACTS,Sr as EXECUTABLE_COMMAND_ALIASES,C as EXIT_CODE,ii as EXTENSION_ACTIVATE_FLAG_CONTRACTS,oi as EXTENSION_ADOPT_ALL_FLAG_CONTRACTS,ui as EXTENSION_ADOPT_FLAG_CONTRACTS,DC as EXTENSION_CAPABILITIES,Af as EXTENSION_CAPABILITY_CONTRACT,yf as EXTENSION_CAPABILITY_CONTRACT_VERSION,Cf as EXTENSION_CAPABILITY_LEGACY_ALIASES,Lt as EXTENSION_CAPABILITY_REGISTRATION_SURFACES,li as EXTENSION_CATALOG_FLAG_CONTRACTS,si as EXTENSION_DEACTIVATE_FLAG_CONTRACTS,ni as EXTENSION_DESCRIBE_FLAG_CONTRACTS,pi as EXTENSION_DOCTOR_FLAG_CONTRACTS,ri as EXTENSION_EXPLORE_FLAG_CONTRACTS,Yo as EXTENSION_FLAG_CONTRACTS,Jo as EXTENSION_INIT_FLAG_CONTRACTS,ei as EXTENSION_INSTALL_FLAG_CONTRACTS,di as EXTENSION_MANAGE_FLAG_CONTRACTS,ai as EXTENSION_MIGRATE_FLAG_CONTRACTS,FC as EXTENSION_POLICY_MODES,GC as EXTENSION_POLICY_SURFACES,ci as EXTENSION_RELOAD_FLAG_CONTRACTS,UC as EXTENSION_SANDBOX_PROFILES,qo as EXTENSION_SCOPE_FLAG_CONTRACTS,$C as EXTENSION_TRUST_MODES,ti as EXTENSION_UNINSTALL_FLAG_CONTRACTS,BA as EXTERNAL_DEPENDENCY_SOURCE_KIND,HA as EXTERNAL_DEPENDENCY_SOURCE_KIND_ALIAS,Do as FILES_FLAG_CONTRACTS,zi as FOCUS_FLAG_CONTRACTS,Pi as GC_FLAG_CONTRACTS,jE as GET_DEPTH_VALUES,Ji as GET_FLAG_CONTRACTS,wo as GLOBAL_FLAG_CONTRACTS,ua as GRAPH_DURABLE_CACHE_MIN_ITEMS,la as GRAPH_DURABLE_CACHE_VERSION,es as GRAPH_FLAG_CONTRACTS,q as GRAPH_SUBCOMMAND_VALUES,Zi as GUIDE_FLAG_CONTRACTS,Di as HEALTH_FLAG_CONTRACTS,Bo as HISTORY_AUTHOR_ACKNOWLEDGE_FLAG_CONTRACTS,YA as HISTORY_AUTHOR_ATTRIBUTION_BASELINE,Hb as HISTORY_COMPACT_BULK_DEFAULT_MIN_ENTRIES,Ho as HISTORY_COMPACT_FLAG_CONTRACTS,Go as HISTORY_FLAG_CONTRACTS,Uo as HISTORY_REDACT_FLAG_CONTRACTS,jo as HISTORY_REPAIR_FLAG_CONTRACTS,fp as INIT_AGENT_GUIDANCE_MODE_VALUES,Ko as INIT_FLAG_CONTRACTS,mi as INSTALL_FLAG_CONTRACTS,Ot as ISSUE_SEVERITY_VALUES,ji as ITEM_COMPLETE_FLAG_CONTRACTS,bb as ITEM_LATEST_TIMESTAMP_FIELDS,Ef as ITEM_METADATA_KEY_ORDER,Ui as ITEM_MUTATE_FLAG_CONTRACTS,Bi as ITEM_REOPEN_FLAG_CONTRACTS,At as ITEM_TYPE_VALUES,Sb as ITEM_UNION_COLLECTION_FIELDS,CS as JsonFileContextSignalStoreAdapter,Lo as LEARNINGS_FLAG_CONTRACTS,Bc as LINKED_TEST_ENV_NAME_PATTERN,Hc as LINKED_TEST_PM_CONTEXT_MODE_VALUES,jc as LINKED_TEST_PROTECTED_ENV_KEYS,zc as LINKED_TEST_WORKSPACE_CONTEXT_MODE_VALUES,Kn as LIST_COMMANDER_STRING_OPTION_CONTRACTS,$E as LIST_COMMAND_DEFAULT_PROJECTIONS,BC as LIST_FILTER_EXTENSION_FLAG_DEFINITIONS,ko as LIST_FILTER_FLAG_CONTRACTS,VE as LIST_SORT_FIELDS,WE as LIST_SORT_ORDER_VALUES,QS as MAX_CHILD_PROJECTION_ITEMS,Ri as MEET_FLAG_CONTRACTS,xb as MERGE_DRIVER_ARTIFACT_VALUES,$o as MERGE_FLAG_CONTRACTS,J as MERGE_SUBCOMMAND_VALUES,Mb as MUTATION_EVENT_WIRE_BUDGET,P as MemoryRelationshipGraphAdapter,Jn as NEXT_COMMANDER_STRING_OPTION_CONTRACTS,ns as NEXT_FLAG_CONTRACTS,Sc as NEXT_OUTPUT_VALUES,Mo as NOTES_FLAG_CONTRACTS,Zo as PACKAGE_FLAG_CONTRACTS,Qo as PACKAGE_INIT_FLAG_CONTRACTS,bi as PAUSE_TASK_FLAG_CONTRACTS,ls as PLAN_CREATE_METADATA_PARAMETER_KEYS,Wo as PLAN_FLAG_CONTRACTS,ip as PLAN_SHOW_DEPTH_VALUES,re as PLAN_SUBCOMMANDS,sp as PLAN_TEMPLATE_NAMES,Cs as PM_CLI_EXPECTED_ERROR_NAME,mC as PM_CLI_GRAMMAR_CONTRACT,dC as PM_CLI_GRAMMAR_NOUNS,Lr as PM_CLI_ONLY_TOOL_ACTION_WAIVERS,cC as PM_CLI_SHARED_VERBS,Er as PM_COMMAND_ALIAS_CONTRACTS,oe as PM_COMMAND_CAPABILITY_CONTRACTS,be as PM_COMMAND_DESTINATION_CONTRACTS,BS as PM_COMMAND_EXIT_CONTRACTS,jS as PM_COMMAND_EXIT_OUTCOME_CONTRACTS,Qr as PM_COMMAND_OUTPUT_BUDGET_CONTRACTS,rO as PM_COMMAND_OUTPUT_ENVELOPE_CONTRACTS,Q as PM_COMMAND_POSITIONAL_CONTRACTS,tl as PM_COMMAND_VISIBILITY_CONTRACTS,zC as PM_COMPLETE_LIST_FINDING_CODES,qC as PM_CONTEXT_INTENTS_FILE,nT as PM_CONTEXT_INTENT_CONTRACTS,vr as PM_CORE_COMMAND_NAMES,g as PM_CORPUS_SHAPE_SCHEMA,Fr as PM_DEPRECATED_TOOL_ACTIONS,Xr as PM_DIAGNOSTIC_DEGRADATION_STEPS,Yr as PM_DIAGNOSTIC_OUTPUT_BUDGET_CONTRACTS,Kr as PM_DIAGNOSTIC_OUTPUT_CLASSES,Gr as PM_DISCOVERABLE_TOOL_ACTIONS,Qb as PM_ERROR_CODE_CATALOG,Yb as PM_ERROR_CODE_EXIT_CLASS_CONTRACTS,et as PM_EXACT_COVERAGE_METRICS,Rr as PM_EXTENSION_CAPABILITY_CONTRACTS,Pr as PM_EXTENSION_PACKAGE_ACTION_SUBCOMMANDS,Ir as PM_EXTENSION_POLICY_MODE_CONTRACTS,kr as PM_EXTENSION_POLICY_SURFACE_CONTRACTS,wr as PM_EXTENSION_SANDBOX_PROFILE_CONTRACTS,xr as PM_EXTENSION_SERVICE_NAME_CONTRACTS,Nr as PM_EXTENSION_TRUST_MODE_CONTRACTS,rE as PM_GITATTRIBUTES_END,tE as PM_GITATTRIBUTES_START,oE as PM_GITATTRIBUTES_V2_END,nE as PM_GITATTRIBUTES_V2_START,Rs as PM_GITIGNORE_END,Os as PM_GITIGNORE_START,Mr as PM_ITEM_ACTION_SUBCOMMANDS,dl as PM_MCP_PROMPT_CONTRACTS,al as PM_MCP_RESOURCE_CONTRACTS,il as PM_MCP_TOOL_COMMAND_CONTRACTS,ag as PM_MODE_PAIRED_OUTPUT_PROJECTION_CONTRACTS,Nn as PM_MUTATION_ACTION_CONTRACTS,Wr as PM_OUTPUT_BUDGET_CLASSES,Vr as PM_OUTPUT_DEGRADATION_STEPS,eO as PM_OUTPUT_ENVELOPE_KINDS,Ie as PM_PACKAGE_CONVENTIONAL_RESOURCE_ROOTS,xe as PM_PACKAGE_RESOURCE_KINDS,Z as PM_POSITIONAL_ACTION_CONTRACTS,ys as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA,gs as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA_VERSION,Vg as PM_READ_OUTPUT_COMPOSITION_OPTION_FLAGS,Bg as PM_READ_OUTPUT_DIMENSIONS,zg as PM_READ_OUTPUT_OPTION_FLAGS,Fg as PM_READ_OUTPUT_SESSION_MAX_SEEN_ITEM_IDS,Dg as PM_READ_OUTPUT_SESSION_MIN_TOKENS,Hg as PM_READ_OUTPUT_SURFACES,Wg as PM_READ_OUTPUT_SURFACE_CONTRACTS,sg as PM_READ_ROW_CONTRACTS,ig as PM_READ_ROW_JQ_SELECTOR,Mx as PM_RECOVERY_REFERENCE_FIELDS,L as PM_RECOVERY_REFERENCE_KINDS,Hn as PM_REPRODUCIBLE_PROCESS_ENV,HS as PM_SUCCESS_EXIT_CODES,Dr as PM_TOOL_ACTIONS,ms as PM_TOOL_ACTION_PARAMETER_CONTRACTS,Ts as PM_TOOL_PARAMETERS_SCHEMA,hs as PM_TOOL_PARAMETERS_SCHEMA_MAJOR,fs as PM_TOOL_PARAMETERS_SCHEMA_VERSION,cs as PM_TOOL_RESERVED_CUSTOM_FIELD_PROPERTIES,Je as PM_WORKSPACE_RECIPE_SCHEMA,Vo as PROFILE_FLAG_CONTRACTS,Be as PROFILE_LINT_CODES,je as PROFILE_LINT_DIMENSIONS,Me as PROFILE_NAMES,ne as PROFILE_SUBCOMMANDS,K as PmCliError,G as PmClient,VC as PmCompleteListValidationError,Sg as QUERY_CURSOR_CONTRACT,fi as REINDEX_FLAG_CONTRACTS,py as REINDEX_LOCK_ID,le as RELATIONSHIP_GRAPH_SNAPSHOT_VERSION,Ei as RELEASE_FLAG_CONTRACTS,Ii as REMIND_FLAG_CONTRACTS,Ce as RESERVED_ITEM_FIELD_NAMES,Ci as RESTORE_FLAG_CONTRACTS,bt as RISK_VALUES,IC as RelationshipEventLog,NC as RelationshipEventStore,A as RelationshipGraph,Y as RelationshipKindRegistry,zo as SCHEMA_FLAG_CONTRACTS,Xn as SEARCH_COMMANDER_STRING_OPTION_CONTRACTS,HC as SEARCH_EXTENSION_FLAG_DEFINITIONS,os as SEARCH_FLAG_CONTRACTS,ic as SEMANTIC_ATTRIBUTION_LIMITS,Of as SETTINGS_DEFAULTS,kp as SNAPSHOT_SCHEMA,ZA as SOURCE_CONTEXT_ACCESS_ENV,QA as SOURCE_CONTEXT_WRITE_OVERRIDE_ENV,Si as START_TASK_FLAG_CONTRACTS,Mi as STATS_FLAG_CONTRACTS,Et as STATUS_VALUES,No as SUBCOMMAND_GLOBAL_FLAG_CONTRACTS,TT as SUPPORTED_HISTORY_ITEM_HASH_VERSIONS,Bf as SUPPRESS_HOST_OUTPUT_MARKER,ki as TELEMETRY_FLAG_CONTRACTS,Nl as TELEMETRY_SUBCOMMANDS,wi as TEST_ALL_FLAG_CONTRACTS,Ni as TEST_FLAG_CONTRACTS,vi as TEST_RUNS_FLAG_CONTRACTS,bl as TEST_RUN_MEASUREMENT_LIMIT,So as TOOL_ACTIVITY_OPTION_CONTRACTS,lo as TOOL_AGGREGATE_OPTION_CONTRACTS,yo as TOOL_BULK_MUTATION_FILTER_OPTION_CONTRACT_SOURCE,Eo as TOOL_CALENDAR_OPTION_CONTRACTS,Ao as TOOL_CLOSE_MANY_FILTER_OPTION_CONTRACTS,bo as TOOL_CONTEXT_OPTION_CONTRACTS,ho as TOOL_CREATE_OPTION_CONTRACTS,fo as TOOL_CREATE_OPTION_CONTRACT_SOURCE,Oo as TOOL_DEPS_OPTION_CONTRACTS,Ro as TOOL_GRAPH_OPTION_CONTRACTS,po as TOOL_LIST_FILTER_OPTION_CONTRACTS,uo as TOOL_SEARCH_FILTER_OPTION_CONTRACTS,_o as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACTS,mo as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACT_SOURCE,Co as TOOL_UPDATE_MANY_FILTER_OPTION_CONTRACTS,To as TOOL_UPDATE_OPTION_CONTRACTS,go as TOOL_UPDATE_OPTION_CONTRACT_SOURCE,bf as TYPE_TO_FOLDER,Uf as UNKNOWN_SUBCOMMAND_COMPATIBILITY_CODES,io as UPDATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,ao as UPDATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,so as UPDATE_COMMANDER_STRING_OPTION_CONTRACTS,Vi as UPDATE_FLAG_CONTRACTS,Wi as UPDATE_MANY_FLAG_CONTRACTS,_i as UPGRADE_FLAG_CONTRACTS,Fi as VALIDATE_FLAG_CONTRACTS,rs as WORKSPACE_FLAG_CONTRACTS,cn as WORKSPACE_HISTORY_ID,vp as WORKSPACE_SNAPSHOT_ACTIONS,Hs as WorkspaceGraphCache,MC as WorkspaceTransactionInterruptedError,Ss as _testOnly,qE as _testOnlyAggregateCommand,_p as _testOnlyConfigCommand,ob as _testOnlyGetCommand,nd as _testOnlyHealthCommand,yp as _testOnlyInit,hp as _testOnlyInitAgentGuidance,kO as _testOnlyItemTransaction,Gb as _testOnlyMutationEvents,PS as _testOnlyNextCommand,Cb as _testOnlySearchCommand,qS as _testOnlySimilarity,Up as _testOnlyTemplates,Dd as _testOnlyValidateCommand,UA as acceptAssuranceProposals,Md as acknowledgeLinkedTests,va as acknowledgeUnknownAuthorHistoryEvents,ka as acknowledgeUnknownAuthorHistoryEventsFromTransport,hy as acquireItemMetadataDerivedIndexLock,dn as acquireLock,HO as activateExtensionForTest,_h as activateExtensions,nr as agentSessionEnvironment,bu as aggregate,ml as analyzeAgentProvenanceDescriptorCoverage,TE as analyzeDefectChangeRisk,kC as analyzeGraphImpact,Ps as analyzeHierarchyIntegrity,vC as analyzeKnowledgeGraph,KS as analyzePmCommandExitConformance,$r as analyzePmToolActionParity,Nb as analyzeReconciliationDiscard,wC as analyzeRelationshipExecution,oa as analyzeRelationshipSchedule,qm as analyzeSdkActionCoverage,Oe as analyzeSdkCliParameterCompleteness,Du as append,an as appendHistoryEntry,mn as appendWorkspaceAuditEvent,un as appendWorkspaceHistoryChange,GT as applyAcceptanceCriteriaMutations,GA as applyAssurancePreset,t_ as applyBootstrapPagerPolicy,dT as applyContextIntentProjection,Ec as applyContextTagProjection,KE as applyFilterValueEcho,AC as applyHistoryPatch,d_ as applyInvocationAuthorOverride,cd as applyPathMigrations,eT as applyReadOutputDimensions,qg as applyReadOutputIncludeModes,$g as applyReadOutputSessionReferences,Uh as applyRegisteredItemFieldDefaultsAndValidation,md as applyStandaloneNote,Ja as applyStoredExtensionMigrationState,UT as applyTagRemovals,US as applyTerminalOrderingPolicy,_d as artifactKey,wf as asRecordClone,Nf as asRecordOrNull,te as assembleWorkspaceRelationshipGraph,YC as assertCompleteListResult,SR as assertExtensionBlueprint,ER as assertExtensionCapabilityUsage,oR as assertExtensionDeactivated,RR as assertExtensionManifestCompatible,OR as assertExtensionManifestMatchesBlueprint,xR as assertExtensionPreflight,Ds as assertHierarchyMutationAllowed,zb as assertHistoryCompactTarget,kb as assertHistoryRepairTarget,On as assertInitializedTracker,pd as assertLinkedArtifactMutationIsUnambiguous,G_ as assertMemoryRelationshipGraphAdapterConformance,HT as assertNoUnknownCsvKeys,iR as assertPackageManifest,DT as assertParentReferenceIsNotSelf,bR as assertProjectProfile,sx as assertProjectRuntimeCompatibility,dg as assertProjectionModeChoice,bn as assertReadableTrackerRoot,sR as assertRegisteredCommandContract,hR as assertRegisteredCommandOverride,uR as assertRegisteredExporter,aR as assertRegisteredFlags,dR as assertRegisteredHook,lR as assertRegisteredImporter,mR as assertRegisteredItemField,_R as assertRegisteredItemType,AR as assertRegisteredMigration,gR as assertRegisteredParserOverride,TR as assertRegisteredPreflightOverride,fR as assertRegisteredProfile,yR as assertRegisteredRendererOverride,cR as assertRegisteredSearchProvider,CR as assertRegisteredServiceOverride,pR as assertRegisteredVectorStoreAdapter,ih as assertRelationshipEdgeAllowed,st as assertRelationshipGraphAdapterConformance,CA as assuranceAssertionUpdateIsLoosening,lT as attachContextIntentReceipt,wd as attachLinkedTestMutationProvenance,Nd as attachLinkedTestProvenance,_g as attachOutputOmissionReceipt,mT as attachOutputTokenAccounting,uT as attachReadOutputContracts,Ug as attachReadOutputSessionReceipt,Fa as auditMergeAttributeFence,iE as auditMergeDriverConfiguration,ca as auditWorkspaceRelationshipGraph,er as boundAgentEpisodeIdentity,vg as boundReadOutputRows,Tc as buildChildrenByParent,db as buildCompactSearchFilterSummary,XE as buildContentFilterEcho,yS as buildContextSignalSnapshot,u_ as buildCorpusShapeItemPlan,gE as buildDefectRecurrenceIndex,Ka as buildExtensionDescribeResult,YE as buildGovernanceMissingFilterEcho,ey as buildInvalidTypeError,tb as buildItemChildrenRollup,NO as buildItemCompletionMutations,ZE as buildItemContextRelevanceCandidates,Ey as buildItemNotFoundError,nb as buildItemSchedule,La as buildMergeAttributePatterns,_s as buildPmActionToolInputSchema,KA as buildRelationshipContext,xy as buildSearchCorpus,Ny as buildSemanticCorpusInput,Sn as buildTrackerInitializationRecovery,Ly as buildVectorizationEmbeddingIdentity,Dy as buildVectorizationEmbeddingMetadata,cb as buildVerboseSearchFilters,RS as buildWorkspaceMemorySnapshot,Qt as canonicalDocument,Yf as canonicalizeCommandOptionKey,rh as canonicalizeRelationshipKind,Lx as censusPmRecoveryReferenceProducers,XC as certifyCompleteListResult,jO as checkExtensionManifestCompatibility,ym as claim,Cm as claimNext,qA as classifyHistoryAuthorEvent,$b as classifyHostEnvironmentFault,gb as classifyImplicitSemanticFallbackReason,Kt as classifyItemFormatVersion,vl as classifyLinkedTestFailure,kh as clearActiveExtensionHooks,ga as clearDurableGraphCache,eg as clearFocusedItem,Ns as clearWorkspaceContractsCache,Tm as close,Nc as closeItem,Im as closeTask,o_ as coalesceRepeatedListFlags,xE as collectBlockedByIds,NE as collectBlockedByIdsFromCorpus,Us as collectDanglingDependencyReferences,kE as collectDependencyBlockedIds,Gs as collectDuplicateDependencyRows,da as collectDuplicateRelationshipEdgeGroups,hb as collectErrorCauseCodes,vs as collectHierarchyRelations,js as collectMissingDependencyTargetIds,Dc as collectNewOrderingCycleWarnings,ia as collectOrderingCycles,$s as collectOrderingStorageContradictions,QC as collectPackageContextIntentContracts,we as collectPackageExtensionDirectories,Gh as collectRegisteredItemFieldNames,Wh as collectRuntimeCreateFieldValues,ty as collectRuntimeFilterValues,Kh as collectRuntimeUpdateFieldValues,mc as collectSubtreeIds,Dt as collectUsedExtensionCapabilities,qf as commandOptionFlagLabel,xu as comments,su as commitImportedItem,wO as commitItemCompletion,IO as commitItemMutations,LC as commitWorkspaceTransaction,Io as compactFlagAliasContracts,_c as compareCriticalItems,U as comparePmDateVersions,PC as compareRelationshipSnapshots,kf as compareTimestampStrings,pA as compileHistoryProvenanceMatcher,sT as composeContextIntentContracts,MO as composeExtension,UO as composeExtensionPackage,vE as computeActionabilityReport,NT as computeHistoryDiff,ra as computeRelationshipCentrality,ta as computeRelationshipDominators,Bs as computeWorkspaceGraphFingerprint,Gu as config,wh as consumeAfterCommandAffectedItems,Tu as context,pT as contextIntentRowId,Em as copy,Pl as countFailureCategories,wg as countReadOutputRows,fm as create,FA as createAssurancePreset,_E as createAssuranceWorkspaceContext,Pf as createCheckpointId,WC as createCompleteListOptions,fh as createCoreCommandHookContext,qe as createCorpusShapeMeasurement,OA as createEmptyAssuranceDocument,ah as createEmptyExtensionRegistrationRegistry,bs as createExtensionCommandSdk,Mt as createExtensionContributionInventory,IR as createExtensionTestHarness,sn as createHistoryEntry,Zy as createLazyModule,Ay as createMutationGuardSdk,cg as createOutputOmissionReceipt,As as createPmCliExpectedError,c_ as createPmCliProgram,Jr as createPmCommandOutputBudget,hg as createQueryFingerprint,F_ as createRelationshipGraphScaleFixture,x as createRelationshipGraphSnapshot,ye as createRelationshipKindRegistry,Vn as createReproducibleProcessRunner,pb as createSearchCursorFingerprint,hh as createSerialQueue,zT as createStdinTokenResolver,jf as createUnknownSubcommandError,Pp as createWorkspaceSnapshot,zO as deactivateExtensionForTest,bI as declineServiceOverride,cT as decodeContextIntentCursor,Jy as decodeHtmlEntitiesInOptions,Cg as decodeQueryCursor,Tg as decodeQueryCursorEnvelope,yg as decodeQueryCursorState,Lg as decodeReadOutputContinuationCursor,hd as dedupeLinkedArtifacts,eS as defaultScoreContextCandidates,wI as defineAfterCommandHook,II as defineBeforeCommandHook,NI as defineBeforeMutationHook,uI as defineCommand,yI as defineCommandOverride,S as defineCorpusShape,xI as defineExporter,vO as defineExtension,PO as defineExtensionBlueprint,pI as defineExtensionManifest,mI as defineFlag,RI as defineImporter,fI as defineItemField,_I as defineItemType,hI as defineMigration,PI as defineOnIndexHook,vI as defineOnReadHook,kI as defineOnWriteHook,CI as defineParserOverride,Zr as definePmCommandOutputBudget,tO as definePmCommandOutputEnvelope,qb as definePmErrorCodeCatalog,AI as definePreflightOverride,lI as defineProjectProfile,OI as defineRendererOverride,gI as defineSearchProvider,EI as defineServiceOverride,TI as defineVectorStoreAdapter,Ze as defineWorkspaceRecipe,Sm as deleteItem,$p as deleteWorkspaceSnapshot,sh as dependencyToRelationship,Mu as deps,$A as deriveAssuranceProposals,DO as deriveExtensionCapabilities,XS as derivePmBulkMutationEffect,Dx as derivePmRecoveryReferenceObligations,ja as deriveSchemaEvolutionMigrationId,zy as deriveTelemetryCommandResolution,iy as describeAllowedTransitions,JA as describeExtensionActivation,FO as describeExtensionBlueprint,qd as describeItemOwnershipConflict,$e as describeProfileComposition,Ue as describeProjectProfile,uO as describeUnknownError,mr as detectAgentIdentity,gr as detectHarnessIdentity,Qs as detectRelationshipCommunities,_r as diagnoseAgentIdentity,pa as diffRelationshipAuditSnapshots,xl as diffTestRunMeasurements,uh as discoverExtensions,Nt as discoverNearbyPmRoot,k_ as discoverProjectRuntimeVersionPins,Pu as docs,Ru as duplicates,ma as durableGraphCachePath,Ta as durableGraphCacheStatus,Vt as effectiveItemFormatVersion,aC as emitTelemetryErrorEvent,iu as emptyImportedDocument,gg as encodeQueryCursor,Mg as encodeReadOutputContinuationCursor,wT as enforceHistoryStreamPolicyForItem,kT as enforceHistoryStreamPolicyForItems,Kb as enrichCliFlagInvocationContract,Ve as enrichCliFlagInvocationContracts,SC as ensureMaterializedHistoryTarget,Is as ensurePmGitignore,od as ensureScope,Hy as ensureSentryInit,ou as ensureTrackerInitialized,Js as enumerateRelationshipPaths,tn as estimatePmOutputTokens,xA as evaluateAssuranceAssertion,IA as evaluateAssuranceGate,XR as evaluateBoundaryFixtures,oS as evaluateContextRanking,yE as evaluateDefectGateEvidence,RA as evaluateMeasurement,kn as evaluateMutationGuard,yl as evaluateProvenanceCoverage,hl as evaluateSemanticAttributionCoverage,Uc as evaluateSimilarityGovernance,oy as evaluateTransition,wy as executeEmbeddingBatchesWithRetry,Py as executeVectorDelete,My as executeVectorReset,vy as executeVectorUpsert,f_ as executeWorkspaceRecipe,ud as expandAddGlobEntries,Ed as explainSourceTraceability,Nm as extension,km as extensionActivate,vm as extensionDeactivate,wm as extensionList,gf as extensionMigrate,yC as extractPatchFailureContext,Rd as extractReferencedPmItemIdsFromCommand,D_ as federateRelationshipGraphSnapshots,wu as files,ku as filesDiscover,vu as filesLookup,y_ as findCoverageDeficits,$c as findDuplicateClusters,Ma as findGitWorkspaceRoot,Va as findInstalledNpmPackageCandidate,ea as findRedundantRelationshipEdges,na as findRelationshipCutStructure,Gc as findSimilarItems,sC as finishTelemetryCommand,Gf as flattenFlagListValue,h_ as flushTelemetryQueue,Om as focus,Zs as forEachMatchedRelationshipEdge,aa as formatDuplicateEdgeGroup,Ms as formatHierarchyRelation,sa as formatOrderingStorageContradiction,uC as formatPmPositionalActionFlagTip,Zp as formatProfileApplyHuman,Jp as formatProfileLintHuman,Yp as formatProfileListHuman,qp as formatProfileShowHuman,za as formatSchemaEvolutionMigrationHuman,yb as formatVectorIndexRecoveryWarnings,cm as gc,Cn as generateItemId,Eu as get,xh as getActiveCommandResult,oT as getActiveContextIntentContracts,Gt as getActiveExtensionRegistrations,wA as getAssuranceDeclaration,Wm as getContracts,Zh as getFocusedItem,vt as getHistoryPath,xC as getItemAt,kt as getItemPath,Mn as getMutationActionContract,xs as getPmGitignoreBlock,wt as getSettingsPath,Vm as getWorkspaceContracts,pn as getWorkspaceHistoryPath,Lu as graph,_a as graphAuditBaselinePath,gl as groupHistoryByEpisode,SI as handleServiceOverride,ee as hasSubcommandFlagContractsForCommand,Fy as hasVectorizationEmbeddingIdentityChanged,Gy as hasVectorizationVectorDimensionChanged,yT as hashDocument,CT as hashDocumentForVersion,AT as hashEmptyDocument,dm as health,Ks as hierarchyAncestors,Xs as hierarchyDescendants,mm as historyCompact,_m as historyCompactBulk,cA as historyEntryMatchesProvenance,pm as historyRedact,lm as historyRepair,um as historyRepairAll,IE as indexBlockedByIds,Ls as indexHierarchyRelations,$y as inferConsistentVectorDimension,qr as inferPmOutputBudgetClass,Fu as init,KC as inspectCompleteListResult,Ra as inspectHistoryAuthorStream,P_ as inspectProjectRuntimeCompatibility,jn as inspectStaleInProgressItems,ln as inspectWorkspaceHistoryState,Mp as inspectWorkspaceSnapshot,Ua as installMergeFence,Oc as isAlreadyClaimedError,fO as isCommanderError,Vd as isErrnoError,zA as isExternalDependencySourceKind,zf as isHostOutputSuppressed,vn as isMutationAction,oh as isOrderingRelationshipKind,MT as isPlaceholderReferenceToken,Es as isPmCliExpectedError,jr as isPmExtensionCapabilityContract,Hr as isPmExtensionPolicyModeContract,zr as isPmExtensionPolicySurfaceContract,Br as isPmExtensionServiceNameContract,VS as isPmKnownExitCode,oO as isPmMutationReceipt,zS as isPmSuccessfulExitCode,Ur as isPmToolAction,v_ as isProjectMutatingInvocation,Qy as isPureSnakeCaseAlias,tT as isReadOutputBudgetExceeded,lg as isReadRowContract,Oa as isRuntimeRecord,rC as isTerminalPlanMode,Yh as isTerminalStatus,yt as isTimestampLiteral,RO as itemDocumentToMutationOptions,rb as itemHasSchedule,Ln as jaccardSimilarity,Nu as learnings,$f as levenshteinDistanceWithinLimit,Bd as limitAnnotationEntries,kd as linkedTestTrustFingerprint,GO as lintExtensionBlueprint,He as lintProjectProfile,yu as list,dr as listAgentProvenanceAdapters,n_ as listAliasPluralKeys,Cu as listAllComplete,yy as listAllDocumentCandidatesCached,In as listAllItemMetadata,Cy as listAllItemMetadataLight,NA as listAssuranceDeclarations,LA as listAssuranceVerdicts,p_ as listBuiltinCorpusShapes,yO as listCoreClosedDomainContracts,BE as listGetProjectionFields,aE as listInvalidProvenanceHistoryStreamIds,UE as listListProjectionFields,pE as listMergeReceipts,Pn as listMutationActions,Lb as listMutationEvents,mt as listPmCommandFlagBudgets,ol as listPmCommandsForFamily,nl as listPmCommandsForTier,W as listPmFlagLexicon,sI as listPmFlagSpellingInventory,sl as listPmMcpToolsForProfile,qx as listPmRequiredArgumentRefusalContracts,Jx as listPmSubcommandRefusalContracts,Ge as listProfiles,eI as listTrackerPreflightRecoveryContracts,Lp as listWorkspaceSnapshots,eA as loadContextIntentRuntimeLayers,jp as loadCreateTemplateOptions,mh as loadExtensions,Ca as loadGraphAuditBaseline,Lf as loadMutationCheckpoint,f as loadRelationshipGraphAdapter,Rn as locateItem,BT as looksLikeGenericKeyValueEntry,kg as mapReadOutputRows,lE as markMergeReceiptReconciled,ry as matchesRuntimeFilters,oC as maybeRunFirstUseTelemetryPrompt,m_ as measureCorpusShapePlan,$T as mergeAdditiveTags,LO as mergeExtensionBlueprints,Ab as mergeHistoryStreams,Ob as mergeItemDocuments,Rb as mergeJsonDocuments,i_ as mergeLinkedTestTwoTokenEntries,Eb as mergeRelationshipEventStreams,Cc as mergeSortedWarnings,tC as migrateItemFilesToFormat,by as mutateItem,Sy as mutateItemWithHistoryContext,_n as mutateWorkspaceJsonWithHistory,Su as next,pr as normalizeAgentProvenanceAdapterValue,jd as normalizeAnnotationTransportOptions,hA as normalizeAssuranceEvaluation,fA as normalizeAssuranceMutation,s_ as normalizeBootstrapInvocation,Fs as normalizeDependencyGraphTarget,WA as normalizeDependencySeedId,VA as normalizeDependencySourceKind,Pt as normalizeExtensionContributionInventory,sE as normalizeInvalidHistoryProvenance,dO as normalizeItemAddressInvocation,Wt as normalizeItemFormatVersion,yn as normalizeItemId,qt as normalizeItemMetadata,r_ as normalizeLegacyExtensionActionSyntax,ld as normalizeLinkedPath,PT as normalizeParentReferenceValue,De as normalizeProfileName,Tn as normalizeRawItemId,Jg as normalizeReadOutputIncludeModeOptions,OT as normalizeReplayPatchOps,Dn as normalizeSimilarityText,Xh as normalizeStatusForRegistry,Yt as normalizeStatusInput,zh as normalizeStatusInputWithRegistry,_O as normalizeThrownExitCode,Iu as notes,Tt as nowIso,fa as openDurableGraphCache,Ys as orderingPredecessors,qs as orderingSuccessors,cS as packContextCandidates,fc as packRankedContextItems,Bm as packageActivate,jm as packageCatalog,Hm as packageDeactivate,$m as packageDescribe,Fm as packageDoctor,Lm as packageInstall,Pm as packageLifecycle,Mm as packageList,Gm as packageManage,Tf as packageMigrate,Um as packageReload,Dm as packageUninstall,Eg as paginateQueryRows,id as parseAddEntries,sd as parseAddGlobEntries,zd as parseAnnotationTextInput,SO as parseAtomicMutationControls,e_ as parseBootstrapCommandName,Jm as parseBootstrapGlobalOptions,Qm as parseBootstrapHelpRequest,a_ as parseBootstrapTypeValue,lc as parseContextDepth,ac as parseContextFocusFields,JC as parseContextIntentDeclarations,uc as parseContextSections,TS as parseContextSignalSnapshot,jT as parseCsvKv,AE as parseDefectChangeRiskRequest,CE as parseDefectRecurrencePolicy,bp as parseEvalQuerySet,Sa as parseGraphSubcommand,aA as parseHistoryProvenanceFilters,rA as parseIntegerLimit,qh as parseItemDocument,bO as parseItemMutationBatch,QT as parseLimit,Qc as parseLinkedTestAssertionEqualsMap,ep as parseLinkedTestAssertionGteMap,Kc as parseLinkedTestBoolean,Xc as parseLinkedTestContextMode,Wc as parseLinkedTestEnvClear,Vc as parseLinkedTestEnvSet,tp as parseLinkedTestJsonEntries,Zc as parseLinkedTestMinLines,Jc as parseLinkedTestRegexList,qc as parseLinkedTestStringList,Yc as parseLinkedTestWorkspaceContextMode,dd as parseMigrateEntries,PE as parseMultiValueFilter,iO as parseMutationReceipt,WT as parseOptionalNonNegativeInteger,VT as parseOptionalNumber,nA as parsePriority,DE as parsePriorityFilterSet,Gg as parseReadOutputSession,$h as parseRegisteredItemFieldAssignments,M as parseRelationshipGraphSnapshot,ad as parseRemoveEntries,Ad as parseSourceLineRange,YT as parseStatusFilterCsv,ME as parseStringFilterSet,An as parseTags,Ol as parseTestRunMeasurements,oA as parseType,LE as parseTypeFilterSet,wa as parseUnknownAuthorHistoryEventCoordinates,MS as partitionDecisionEntries,IT as patchPathToChangedField,_t as pathExists,xm as pauseTask,ha as persistDurableGraphResult,sy as persistSelectedItemFormat,ab as planAgentIdentityVocabularyMutation,bS as planCompletedAtBackfill,ze as planProfileApplication,vx as planRelationshipEventBackfill,Ea as planRelationshipRemediation,Ba as planSchemaEvolutionMigration,Ia as planUnknownAuthorHistoryAcknowledgment,Dp as planWorkspaceSnapshotRestore,fC as positionalShapeKey,hC as positionalSignatureKey,BO as preflightExtension,Gn as prepareSimilarityText,hT as printError,fT as printResult,rm as profile,im as profileApply,sm as profileLint,nm as profileList,om as profileShow,Nh as projectAfterCommandItemSnapshot,dc as projectContextFocusRows,Sl as projectFleetAttributionAnalytics,dA as projectHistoryProvenance,nn as projectPmDiagnosticOutput,on as projectPmDiagnosticText,Al as projectProvenanceCoverageAnalytics,Ld as projectValidateCounts,jA as promoteAssuranceAssertion,ex as pruneCompileCacheGenerations,kA as putAssuranceDeclaration,vA as putAssuranceDeclarationBundle,uy as queryItemMetadataIndex,my as queryLinkedFileMetadataIndex,_y as querySimilarItemMetadataIndex,Rl as queryTestRunMeasurementsBelow,Cr as quoteCommandArg,yr as quoteWindowsCommandArg,TO as rankCommandPaths,Hd as readAnnotationEntries,fr as readAuthorEnvironment,$l as readBooleanOption,_S as readContextUsageAffinity,Ul as readCsvListOption,qa as readExtensionMigrationState,ft as readFileIfExists,Qn as readFirstStringFromCommanderOptions,eo as readFirstValueFromCommanderOptions,Tl as readHistoryAnalyticsWindow,ng as readHistoryEntries,ll as readImprovementLedger,gy as readItemMetadataDerivedIndexState,xn as readLocatedItem,Ng as readOutputBudgetCollections,Ig as readOutputContinuationRowCollections,Rg as readOutputContinuationRowPaths,Yg as readOutputIncludeModeOptions,xg as readOutputRowCollections,Og as readOutputRowPaths,jg as readOutputSessionRemainingTokens,Ne as readPmPackageManifest,Km as readRequiredString,En as readSettings,ay as readSettingsWithMetadata,to as readStringArrayFromCommanderOptions,Gl as readStringOption,mO as readThrownExitCode,Uy as readVectorizationStatusLedger,ZC as readWorkspaceContextIntentContracts,ES as readWorkspaceContextSignals,xS as readWorkspaceMemory,Ft as reconcileExtensionCapabilityUsage,hn as reconcileWorkspaceJsonHistory,Ih as recordAfterCommandAffectedItem,MA as recordAssuranceVerdict,rc as recordClaimSemanticAttribution,lS as recordContextUsageServing,uS as recordContextUsageTouch,mS as recordContextUsageTouches,oc as recordFocusSemanticAttribution,pl as recordImprovementObservation,nc as recordReleaseSemanticAttribution,Ty as refreshItemMetadataDerivedIndex,Ga as refreshMergeAttributeFenceIfInstalled,By as refreshSearchArtifactsForMutation,cr as registerAgentProvenanceAdapters,ar as registerHarnessSignalDescriptors,og as registerOutputMaterialFieldGroups,Am as release,PA as removeAssuranceDeclaration,gt as removeFileIfExists,yd as renameArtifactsResultKey,Zd as renderCalendarMarkdown,Qd as renderCalendarToon,Ac as renderContextMarkdown,Xa as renderExtensionDescribeMarkdown,Wa as renderExtensionSurfaceMarkdown,cu as renderGuideMarkdown,lO as renderMissingOptionRetry,LS as renderNextMarkdown,CO as renderPmClosedDomainHelp,Ar as renderPmCommand,Or as renderPmCommandAliasMigrationHint,cl as renderPmCommandVisibilityMarkdown,dI as renderPmFlagLexiconMarkdown,JT as renderRowsAsCsv,ZT as renderRowsAsTable,gm as reopen,EC as replayHistoryToTarget,ST as replayToCanonicalItemDocument,ET as replayToItemDocument,GS as requireTerminalReason,$S as requireTerminalReasonWithRecovery,bh as resetActiveExtensionRuntimeState,Vs as resetWorkspaceGraphCache,tr as resolveAgentSessionContextFromSignals,Yd as resolveAnnotationIndex,Wd as resolveAnnotationInput,rg as resolveAuthor,Tr as resolveAuthorIdentity,vT as resolveBodyFileContent,l_ as resolveBuiltinCorpusShape,Jd as resolveCalendarOutputFormat,Jb as resolveCanonicalPmErrorCodeContract,nh as resolveCanonicalRelationshipKind,tg as resolveClaimPrincipal,Qf as resolveCommandOptionPolicyState,QR as resolveCompileCacheGeneration,SS as resolveCompletionTimestamp,Kf as resolveConfiguredPmPackageRoot,zE as resolveContentFieldFilters,aT as resolveContextIntentContract,cc as resolveContextOutputFormat,pc as resolveContextTokenBudget,JS as resolveCreateExplicitEmptyFlag,Oy as resolveEmbeddingProviders,ed as resolveExtensionInstallSourceIdentity,Ya as resolveExtensionMigrationStatePath,lh as resolveExtensionRoots,Ff as resolveFlagValueKind,au as resolveGuideOutputFormat,ul as resolveHistoryEpisodeGroupIdentity,sA as resolveHistoryProvenanceDimensions,bC as resolveHistorySubject,CC as resolveHistoryTarget,_b as resolveHybridSemanticWeight,It as resolveImplicitPmRoot,vf as resolveIsoOrRelative,wE as resolveItemBlockers,OO as resolveItemMutationDocument,xt as resolveItemTypeRegistry,Hh as resolveItemTypesFilePath,Ml as resolveLinkedTestFailureExitCode,xd as resolveLinkedTestSourceRef,Id as resolveLinkedTestSourceWorkspaceRoot,vd as resolveLinkedTestTrust,Pd as resolveLinkedTestTrustBatch,Pa as resolveMergeInstallContext,HE as resolveMissingMetadataFilters,pO as resolveMissingOptionPlaceholder,pg as resolveModePairedOutputOmissionReceipt,vS as resolveNextOutputFormat,mg as resolveOutputOmissionReceipt,Wf as resolvePmCliVersion,br as resolvePmCommandAlias,el as resolvePmCommandCapabilityFamily,WS as resolvePmCommandExitContract,en as resolvePmCommandOutputBudget,nO as resolvePmCommandOutputEnvelope,pC as resolvePmCommandPositionalContract,rl as resolvePmCommandVisibilityTier,rn as resolvePmDiagnosticOutputBudget,Zb as resolvePmErrorCodeContract,mf as resolvePmFlagSemanticConcept,Vf as resolvePmPackageRootFromModule,lC as resolvePmPositionalActionContract,as as resolvePmPositionalActionFlagContracts,X as resolvePmRoot,ps as resolvePmToolCustomFieldCollision,KT as resolvePriority,Fe as resolveProfile,Da as resolveProjectMergeTypeFolders,Ag as resolveQueryCursorStart,Zg as resolveReadOutputDimensions,rT as resolveReadOutputEncoding,Pg as resolveReadOutputRecoveryBudget,Kg as resolveReadOutputSurface,ug as resolveReadRowContract,cO as resolveRecoveryCommandName,jh as resolveRegisteredSearchProvider,Bh as resolveRegisteredVectorStoreAdapter,zn as resolveReproducibleProcessEnvironment,Bt as resolveRuntimeFieldRegistry,jt as resolveRuntimeStatusRegistry,Ry as resolveSearchCorpusFields,ub as resolveSearchMaxResults,lb as resolveSearchPage,mb as resolveSearchScoreThreshold,fb as resolveSearchTuning,Iy as resolveSemanticCorpusCharacterLimit,tc as resolveSemanticLineageIds,cy as resolveSettingsWithSemanticRuntimeDefaults,eE as resolveSourceContextWritePolicy,Qp as resolveStartTaskInProgressStatus,k as resolveSubcommandFlagContractsForCommand,Rf as resolveTelemetryErrorCategory,FS as resolveTerminalReason,Zf as resolveTypeDefinition,Jf as resolveTypeName,qT as resolveTypeSynonym,ny as resolveTypeWorkflows,Na as resolveUnknownAuthorAcknowledgmentSelector,Tb as resolveVectorIndexRecovery,ky as resolveVectorStores,ks as resolveWorkspaceRelationshipKindRegistry,bm as restore,Df as restoreCheckpointItems,gn as restoreWorkspaceJsonFromHistory,Gp as restoreWorkspaceSnapshot,Fp as restoreWorkspaceSnapshotWithRecovery,Ym as runAction,vh as runActiveBeforeMutationHooks,Mh as runActiveCommandHandler,Ph as runActiveOnIndexHooks,Ut as runActiveOnReadHooks,$t as runActiveOnWriteHooks,Lh as runActiveParserOverride,Dh as runActivePreflightOverride,Fh as runActiveServiceOverride,ws as runActivity,ph as runAfterCommandHooks,$d as runAggregate,Xd as runAnnotationCommand,Ud as runAppend,bE as runAssuranceAction,OE as runAssuranceDispatch,ch as runBeforeCommandHooks,ec as runCalendar,Rc as runClaim,xc as runClaimNext,wc as runClose,vc as runCloseMany,Pc as runComments,pu as runCompletion,mp as runConfig,ve as runContext,aS as runContextEvaluationCorpus,iS as runContextEvaluationScenario,dp as runCopy,rp as runCreate,cp as runDelete,Ws as runDeps,Cd as runDocs,sO as runDuplicates,xp as runEval,Np as runEvent,td as runExtension,Qa as runExtensionMigrateAction,Za as runExtensionMigrations,Sd as runFiles,Od as runFilesDiscover,bd as runFilesLookup,El as runFleetAttributionAnalytics,pp as runFocus,up as runGc,lp as runGet,ba as runGraph,du as runGuide,rd as runHealth,YS as runHistory,Bb as runHistoryCompact,Vb as runHistoryCompactBulk,OC as runHistoryRedact,wb as runHistoryRepair,vb as runHistoryRepairAll,Cp as runInit,gp as runInitAgentGuidance,Mc as runLearnings,Td as runLinkedArtifacts,Ll as runLinkedTests,Gd as runList,Ip as runMeet,Ib as runMergeDriver,$a as runMergeInstall,uE as runMergeReceiptReport,Pb as runMergeReconcile,bc as runNext,Lc as runNotes,ap as runPlan,Xp as runProfileApply,Kp as runProfileLint,Vp as runProfileList,Wp as runProfileShow,Cl as runProvenanceCoverageAnalytics,VO as runRegisteredCommandForTest,qO as runRegisteredCommandOverrideForTest,nR as runRegisteredExporterForTest,KO as runRegisteredHookForTest,rR as runRegisteredImporterForTest,tR as runRegisteredMigrationForTest,WO as runRegisteredMutationGuardForTest,XO as runRegisteredParserOverrideForTest,YO as runRegisteredPreflightOverrideForTest,JO as runRegisteredRendererOverrideForTest,QO as runRegisteredSearchProviderForTest,ZO as runRegisteredServiceOverrideForTest,eR as runRegisteredVectorStoreAdapterForTest,We as runReindex,Ic as runRelease,wp as runRemind,Wb as runReopen,kc as runRestore,Ha as runSchemaEvolutionMigration,Op as runSearch,__ as runSearchRefreshWorkerEntrypoint,lu as runStartBackgroundRun,Il as runStats,wl as runTelemetry,Hp as runTemplatesList,Bp as runTemplatesSave,zp as runTemplatesShow,Dl as runTest,Fl as runTestAll,uu as runTestRunsList,_u as runTestRunsLogs,hu as runTestRunsResume,mu as runTestRunsStatus,fu as runTestRunsStop,gu as runTestRunsWorker,np as runUpdate,op as runUpdateMany,Pe as runUpgrade,Fd as runValidate,Xm as runWithActiveExtensions,rr as runWithAgentSessionContext,iT as runWithContextIntentContracts,tA as runWithDiscoveredContextIntentContracts,lr as runWithHarnessDetectionSignals,Wn as runWithReproducibleProcessEnvironment,ur as runWithWorkspaceHarnessSignalDescriptors,Qe as runWithWorkspaceRecipe,ib as runWorkspaceTransactionGc,Aa as saveGraphAuditBaseline,XA as scanExtensionHostVersions,xa as scanHistoryAuthorAttribution,Xt as scanItemFormatVersions,wn as scanMutationSecrets,dE as scanProvenanceResolverHealth,Bn as scanStaleInProgressItems,mE as scanStorageIntegrity,$u as schema,Wu as schemaAddField,zu as schemaAddStatus,Bu as schemaAddType,qu as schemaApplyPreset,Ju as schemaInferTypes,Uu as schemaList,Xu as schemaListFields,em as schemaRemapStatus,Ku as schemaRemoveField,Vu as schemaRemoveStatus,Hu as schemaRemoveType,Qu as schemaRenameField,Zu as schemaRenameType,ju as schemaShow,Yu as schemaShowField,tm as schemaShowStatus,gO as scoreCommandPathMatch,tS as scoreContextCandidates,rS as scoreContextCandidatesWithActiveExtensions,$n as scoreItemSimilarity,Zx as scorePmGrammarRefusalClosure,Bx as scorePmRefusalClosure,Un as scorePreparedItemSimilarity,tI as scoreTrackerPreflightRecoveryClosure,Au as search,wS as searchWorkspaceMemory,kS as searchWorkspaceMemoryReadResult,fg as selectCursorSemanticOptions,nu as selectImportAuthor,NS as selectWorkspaceMemory,IS as selectWorkspaceMemoryRollups,sc as semanticAttributionAffinity,Xy as sentryCaptureCliError,Ky as sentryFinishCommandSpan,qy as sentryFlush,Yy as sentryLogCliUsageError,Vy as sentrySetCommandContext,Wy as sentryStartCommandSpan,Zt as serializeItemDocument,AO as serializeNdjsonRows,EO as serializeNdjsonStream,Oh as setActiveCommandContext,Rh as setActiveCommandResult,Th as setActiveExtensionCommands,gh as setActiveExtensionHooks,yh as setActiveExtensionParsers,Ch as setActiveExtensionPreflight,Sh as setActiveExtensionRegistrations,Eh as setActiveExtensionRenderers,Ah as setActiveExtensionServices,Qh as setFocusedItem,nC as shouldCompletePlanOnClose,ya as shouldPersistDurableGraphCache,ly as shouldRunSearchRefreshInForeground,Fc as similarityAdvisoryWarnings,bg as sliceReadOutputRowCollection,fd as sortLinkedArtifacts,FT as splitAcceptanceCriteria,eC as splitCommaList,Jt as splitFrontMatter,Qg as stabilizeReadOutputReceiptEstimates,F as stableStringify,dh as stableValueEquals,Rm as startTask,iC as startTelemetryCommand,Ou as stats,Vh as statusIsTerminal,Zm as stripGlobalBootstrapTokens,Db as subscribeMutationEventBatches,Fb as subscribeMutationEvents,sb as summarizeAgentIdentityVocabulary,_l as summarizeAgentModelProvenance,fl as summarizeAgentProvenance,sS as summarizeContextEvaluationReports,kl as summarizeContextPreflight,lA as summarizeHistoryProvenance,Tp as summarizeInitResult,cE as summarizeMergeReceipt,ZS as supportsCreateExplicitEmpty,aO as supportsItemIdAlias,Hf as suppressHostOutput,z as syncRelationshipGraphAdapter,$O as synthesizeExtensionManifest,ds as toCompletionFlagString,yc as toContextFocusItem,hc as toContextPackingSummary,gc as toContextRankingSummary,If as toErrorMessage,Bl as toEstimatedMinutesValue,jC as toExtensionFlagDefinitions,Kl as toImportBoolean,Jl as toImportConfidence,Wl as toImportInteger,tu as toImportLinkedDocs,eu as toImportLinkedFiles,ru as toImportLinkedTests,Ql as toImportLogEntries,Zl as toImportNormalizedEnum,ql as toImportNumberMap,Hl as toImportPriority,Vl as toImportStatus,Xl as toImportStringList,Yl as toImportStringMap,zl as toImportTags,Jh as toItemRecord,jl as toNonEmptyImportString,xf as toNonEmptyStringOrUndefined,bT as toReplayDocument,Fn as tokenizeSimilarityText,Ub as translateHostEnvironmentFault,hm as update,zm as upgrade,am as validate,EA as validateAssertionDefinition,bA as validateAssuranceDocument,SA as validateGateDefinition,xO as validateItemMutationRows,gd as validateLinkedPaths,AA as validateMeasurementDefinition,LT as validateMissingParentReference,Xg as validateReadOutputOptions,XT as validateSprintOrReleaseValue,eh as validateTypeOptions,Xb as verifyCliFlagInvocationParity,_C as verifyExplicitPositionalSlotCensus,xT as verifyHistoryChain,RT as verifyHistoryChainWithVersion,RC as verifyHistoryEntries,TC as verifyPmCliGrammar,gC as verifyPmCommandPositionalContracts,aI as verifyPmFlagLexicon,$x as verifyPmRecoveryKindRuntimeCoverage,nf as verifyPmRecoveryProducerRuntimeCoverage,Gx as verifyPmRecoveryReferences,Fx as verifyPmRefusalReachability,co as verifyToolOptionCliParity,xo as withFlagAliasMetadata,jb as withHostEnvironmentBoundary,zs as workspaceGraphCache,Kd as wrapOwnershipConflict,hO as wrapThrownErrorForSentry,hr as writeAuthorEnvironment,ht as writeFileAtomic,Mf as writeMutationCheckpoint,dy as writeSettings,_T as writeStdout,jy as writeVectorizationStatusLedger,fn as writeWorkspaceJsonWithHistory};
6
6
  //# sourceMappingURL=sdk.js.map