@unbrained/pm-cli 2026.8.25 → 2026.8.26
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.
- package/.claude-plugin/marketplace.json +2 -2
- package/CHANGELOG.md +33 -0
- package/dist/cli-bundle/bundle-manifest.json +133 -133
- package/dist/cli-bundle/chunks/chunk-E2GCFJSU.js +35 -0
- package/dist/cli-bundle/chunks/{chunk-QKGMHGEI.js → chunk-ES25LX3D.js} +51 -51
- package/dist/cli-bundle/chunks/{chunk-TPQIBSL2.js → chunk-FRDWWB6R.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-65MHLHAA.js → chunk-ICQ3RVIY.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-IV64RJVE.js +13 -0
- package/dist/cli-bundle/chunks/{chunk-QLUORNIB.js → chunk-KBFP3E4E.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-T2ENPRXF.js → chunk-MVYLQ67M.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-5I5RWIJC.js → chunk-S4U76VZF.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-OWHNAR2B.js → chunk-UKBCRPA2.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-WRHJ3MB6.js +8 -0
- package/dist/cli-bundle/chunks/{chunk-244MI4GS.js → chunk-ZNRLJ54C.js} +60 -60
- package/dist/cli-bundle/chunks/{register-list-query-XVN2ZLI7.js → register-list-query-EMCPMICY.js} +2 -2
- package/dist/cli-bundle/chunks/{register-mutation-QCKAEGIJ.js → register-mutation-OJ67ABCB.js} +2 -2
- package/dist/cli-bundle/chunks/{register-operations-SDEAXE7E.js → register-operations-H2GLP7LT.js} +2 -2
- package/dist/cli-bundle/chunks/{register-setup-LXVBRCJ3.js → register-setup-GLZAHLVI.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-NOOZGIXP.js → chunk-4K2II4TV.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-IBZZZGK3.js → chunk-4XNH2HM7.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-VXWATRFL.js → chunk-57XY346D.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-GQR3WH3F.js → chunk-66VGB23P.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-42S3GGZ7.js → chunk-72T6JGAE.js} +45 -45
- package/dist/cli-bundle/focused-chunks/{chunk-RAFKLNZX.js → chunk-FXDLT6FL.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-H5JZEIQV.js → chunk-IBHXMFE7.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-N7W67YIG.js → chunk-LV5N3LK5.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-2UIWOP3O.js → chunk-MMXUPDDJ.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-ONYQCALA.js → chunk-P2E6LDAE.js} +6 -6
- package/dist/cli-bundle/focused-chunks/{chunk-XUQPEKRN.js → chunk-TMJDFHVD.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-OVJL6NZE.js → chunk-UYBA57GY.js} +4 -4
- package/dist/cli-bundle/main.js +2 -2
- package/dist/cli-bundle/sdk-authoring.js +1 -1
- package/dist/cli-bundle/sdk-contracts.js +1 -1
- package/dist/cli-bundle/sdk-core.js +31 -31
- package/dist/cli-bundle/sdk-governance.js +1 -1
- package/dist/cli-bundle/sdk-graph.js +1 -1
- package/dist/cli-bundle/sdk-merge.js +18 -18
- package/dist/cli-bundle/sdk-query.js +1 -1
- package/dist/cli-bundle/sdk-runtime.js +1 -1
- package/dist/cli-bundle/sdk-testing.js +1 -1
- package/dist/cli-bundle/sdk.js +7 -6
- package/dist/core/extensions/manifest-schema.d.ts +20 -0
- package/dist/core/extensions/manifest-schema.js +28 -10
- package/dist/mcp/http-server.d.ts +60 -0
- package/dist/mcp/http-server.js +451 -0
- package/dist/mcp/legacy-adapter.d.ts +50 -0
- package/dist/mcp/legacy-adapter.js +64 -0
- package/dist/mcp/server.d.ts +42 -9
- package/dist/mcp/server.js +457 -58
- package/dist/sdk/agent/refusal-closure-census.d.ts +6 -2
- package/dist/sdk/agent/refusal-closure-census.js +16 -8
- package/dist/sdk/compose.d.ts +4 -1
- package/dist/sdk/compose.js +23 -36
- package/dist/sdk/extension/author-manifest.d.ts +22 -0
- package/dist/sdk/extension/author-manifest.js +93 -0
- package/dist/sdk/extension.js +6 -3
- package/dist/sdk/generated/generated-error-code-catalog-part-1.js +20 -5
- package/dist/sdk/generated/generated-error-code-catalog-part-2.js +6 -3
- package/dist/sdk/governance/health.js +7 -2
- package/dist/sdk/index.d.ts +6 -0
- package/dist/sdk/index.js +8 -2
- package/dist/sdk/mcp/authorization.d.ts +134 -0
- package/dist/sdk/mcp/authorization.js +405 -0
- package/dist/sdk/mcp/interactions.d.ts +118 -0
- package/dist/sdk/mcp/interactions.js +337 -0
- package/dist/sdk/mcp/protocol.d.ts +142 -0
- package/dist/sdk/mcp/protocol.js +174 -0
- package/dist/sdk/mcp/subscriptions.d.ts +65 -0
- package/dist/sdk/mcp/subscriptions.js +212 -0
- package/dist/sdk/mcp/tasks.d.ts +107 -0
- package/dist/sdk/mcp/tasks.js +431 -0
- package/dist/sdk/mcp/transport.d.ts +30 -0
- package/dist/sdk/mcp/transport.js +261 -0
- package/dist/sdk/merge/receipts.d.ts +16 -0
- package/dist/sdk/merge/receipts.js +9 -8
- package/dist/sdk/runtime-primitives.d.ts +1 -1
- package/dist/sdk/runtime-primitives.js +3 -3
- package/dist/sdk/test/execution.d.ts +6 -0
- package/dist/sdk/test/execution.js +32 -3
- package/docs/AGENT_PROVENANCE_ADR.md +6 -4
- package/docs/AGENT_RUNTIME_PRIMITIVES.md +6 -5
- package/docs/CLAUDE_CODE_PLUGIN.md +12 -5
- package/docs/DIAGNOSTIC_OUTPUT_CONTRACTS.md +8 -0
- package/docs/EXTENSIONS.md +3 -4
- package/docs/MCP_2026_07_28.md +138 -0
- package/docs/MCP_2026_07_28_CONFORMANCE.md +30 -0
- package/docs/MCP_REMOTE_TRANSPORT_SECURITY.md +180 -0
- package/docs/README.md +4 -0
- package/docs/RELEASING.md +3 -2
- package/docs/SDK.md +22 -1
- package/docs/SDK_AGENT_SESSION_CONTEXT.md +18 -13
- package/docs/SDK_MCP_INTERACTIONS.md +227 -0
- package/docs/TESTING.md +4 -0
- package/docs/generated/REFUSAL_CLOSURE_CENSUS.md +9 -8
- package/marketplace.json +2 -2
- package/package.json +7 -5
- package/packages/pm-beads/package.json +1 -1
- package/packages/pm-calendar/package.json +1 -1
- package/packages/pm-command-kit/package.json +1 -1
- package/packages/pm-digital-twin/package.json +1 -1
- package/packages/pm-governance-audit/package.json +1 -1
- package/packages/pm-guide-shell/package.json +1 -1
- package/packages/pm-kanban/package.json +1 -1
- package/packages/pm-lifecycle-hooks/package.json +1 -1
- package/packages/pm-linked-test-adapters/package.json +1 -1
- package/packages/pm-search-advanced/package.json +1 -1
- package/packages/pm-templates/package.json +1 -1
- package/packages/pm-todos/package.json +1 -1
- package/packages/pm-vcs/package.json +1 -1
- package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
- package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
- package/scripts/finalize-build.mjs +1 -0
- package/sdk/public-surface.json +628 -2
- package/dist/cli-bundle/chunks/chunk-2F3LUFMW.js +0 -8
- package/dist/cli-bundle/chunks/chunk-6C7GIMIL.js +0 -13
- package/dist/cli-bundle/chunks/chunk-YQMYF3YD.js +0 -35
package/dist/cli-bundle/sdk.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import{A as lm,B as um,C as wO,D as kO,a as Wn,b as Kn,c as Xn,d as Yn,e as CO,f as AO,g as em,h as tm,i as rm,k as nm,l as om,m as im,n as sm,o as am,p as dm,q as cm,r as pm,s as EO,t as bO,u as SO,v as OO,w as RO,x as xO,y as IO,z as NO}from"./chunks/chunk-65MHLHAA.js";import{A as gR,B as TR,C as yR,D as CR,E as AR,F as ER,G as bR,H as SR,I as OR,J as RR,K as xR,L as IR,M as NR,N as wR,O as kR,P as vR,Q as PR,R as MR,S as LR,T as DR,U as FR,V as GR,W as $R,X as UR,Y as jR,a as VO,b as WO,c as KO,d as XO,e as YO,f as qO,g as JO,h as ZO,i as QO,j as eR,k as tR,l as rR,m as nR,n as oR,o as iR,p as sR,q as aR,r as dR,s as cR,t as pR,u as lR,v as uR,w as _R,x as mR,y as fR,z as hR}from"./chunks/chunk-2F3LUFMW.js";import{a as vO,b as PO,c as MO,d as LO}from"./chunks/chunk-TPQIBSL2.js";import{a as DO,b as FO,c as GO,d as $O,e as UO,f as jO,g as BO,h as HO,i as zO}from"./chunks/chunk-OWHNAR2B.js";import{$ as Ge,$a as Ke,$b as y_,A as mA,Aa as jl,Ab as Wu,Ac as W_,B as Hd,Ba as Bl,Bb as Ku,Bc as K_,C as Mc,Ca as Hl,Cb as Xu,Cc as X_,D as Lc,Da as zl,Db as Yu,Dc as Y_,E as Dc,Ea as Vl,Eb as qu,Ec as q_,F as Fc,Fa as Wl,Fb as Ju,Fc as J_,G as Gc,Ga as Kl,Gb as Zu,Gc as Z_,H as ap,Ha as Xl,Hb as Qu,Hc as Q_,I as re,Ia as Yl,Ib as e_,J as dp,Ja as ql,Jb as t_,K as cp,Ka as Jl,Kb as r_,L as pp,La as Zl,Lb as n_,M as lp,Ma as Ql,Mb as o_,N as up,Na as eu,Nb as i_,O as _p,Oa as tu,Ob as s_,P as GS,Pa as ru,Pb as a_,Q as $S,Qa as nu,Qb as d_,R as US,Ra as ou,Rb as c_,S as jS,Sa as iu,Sb as p_,T as BS,Ta as su,Tb as l_,U as HS,Ua as au,Ub as u_,V as zS,Va as du,Vb as __,W as VS,Wa as cu,Wb as m_,X as WS,Xa as pu,Xb as f_,Y as Le,Ya as lu,Yb as h_,Z as De,Za as uu,Zb as g_,_ as Fe,_a as _u,_b as T_,a as bs,aa as $e,ab as G,ac as C_,b as Ss,ba as Ue,bb as Au,bc as A_,c as Os,ca as je,cb as Eu,cc as E_,d as jC,da as Be,db as bu,dc as b_,e as BC,ea as He,eb as Su,ec as S_,f as xs,fa as ze,fb as Ou,fc as O_,g as YC,ga as Ve,gb as Ru,gc as R_,h as qC,ha as Hp,hb as xu,hc as x_,i as JC,ia as zp,ib as Iu,ic as I_,j as ZC,ja as Vp,jb as Nu,jc as N_,k as QC,ka as Wp,kb as wu,kc as w_,l as eA,la as Kp,lb as ku,lc as k_,m as tA,ma as ne,mb as vu,mc as v_,n as rA,na as Xp,nb as Pu,nc as P_,o as nA,oa as Yp,ob as Mu,oc as M_,p as oA,pa as qp,pb as Lu,pc as L_,q as iA,qa as Jp,qb as Du,qc as D_,r as sA,ra as Zp,rb as Fu,rc as F_,s as aA,sa as Qp,sb as Gu,sc as G_,t as dA,ta as el,tb as $u,tc as $_,u as vs,ua as tl,ub as Uu,uc as U_,v as cA,va as tO,vb as ju,vc as j_,w as pA,wa as rO,wb as Bu,wc as B_,x as lA,xa as nO,xb as Hu,xc as H_,y as uA,ya as oO,yb as zu,yc as z_,z as _A,za as iO,zb as Vu,zc as V_}from"./chunks/chunk-QLUORNIB.js";import{a as Me,f as bS,g as SS,h as hp,i as gp}from"./chunks/chunk-T2ENPRXF.js";import{A as DS,B as FS,C as Ip,D as Np,E as wp,b as Bd,c as _b,d as uS,e as hS,f as gS,g as TS,h as yS,i as CS,j as mp,k as AS,l as Sp,m as Op,n as Rp,o as xp,p as OS,q as RS,r as xS,s as IS,t as NS,u as wS,v as kS,w as vS,x as PS,y as MS,z as LS}from"./chunks/chunk-5I5RWIJC.js";import{$ as dE,$a as Ld,$b as Hc,$c as dl,A as JA,Aa as dd,Ab as Zd,Ac as vp,Ad as bl,B as ZA,Ba as cd,Bb as Qd,Bc as Pp,Bd as Sl,C as QA,Ca as pd,Cb as Ic,Cc as ZS,Cd as Ol,D as eE,Da as ld,Db as Nc,Dc as QS,Dd as Rl,E as aE,Ea as ud,Eb as wc,Ec as eO,Ed as xl,Fa as _d,Fb as kc,Fc as Mp,Fd as Il,Ga as md,Gb as Qb,Gc as Lp,Gd as Nl,Ha as fd,Hb as eS,Hc as Dp,Hd as wl,Ia as hd,Ib as tS,Ic as Fp,Id as kl,J as Ia,Ja as gd,Jb as rS,Jc as Gp,Jd as yO,Ka as Td,Kb as nS,Kc as $p,Kd as vl,La as yd,Lb as vc,Lc as Up,Ld as Pl,Ma as Cd,Mb as Pc,Mc as jp,Md as Ml,Na as Ad,Nb as oS,Nc as Bp,Nd as Ll,Oa as Ed,Ob as iS,Oc as rl,Od as Dl,Pa as bd,Pb as sS,Pc as sO,Pd as Fl,Qa as Sd,Qb as aS,Qc as We,Qd as Gl,Ra as Od,Rb as dS,Rc as aO,Rd as $l,Sa as Rd,Sb as cS,Sc as nl,Sd as Ul,Ta as xd,Tb as pS,Tc as oe,Td as mu,Ua as Id,Ub as lS,Uc as ol,Ud as fu,Va as Nd,Vd as hu,Wa as wd,Wb as $c,Wd as gu,Xa as kd,Xb as Uc,Xc as il,Xd as Tu,Ya as vd,Yb as _S,Yc as sl,Yd as yu,Za as Pd,Zb as jc,Zc as al,Zd as Cu,_a as Md,_b as Bc,a as OA,aa as cE,ab as Dd,ac as zc,ad as cl,b as RA,ba as Na,bb as Fd,bc as Vc,bd as pl,c as xA,ca as wa,cb as Gd,cc as Wc,cd as ll,d as IA,da as ka,db as $d,dc as Kc,dd as ul,e as NA,ea as va,eb as Ud,ec as Xc,ed as dO,f as wA,fa as Pa,fb as kE,fc as Yc,fd as cO,g as kA,ga as Ma,gb as vE,gc as qc,gd as pO,h as vA,ha as La,hb as PE,hc as Jc,hd as lO,i as PA,ia as yE,ib as ME,ic as Zc,id as uO,j as MA,ja as CE,jb as LE,jc as Qc,jd as _O,k as LA,ka as AE,kb as DE,kc as ep,kd as mO,l as DA,la as EE,lb as FE,lc as tp,ld as fO,m as FA,mb as GE,mc as rp,md as hO,n as GA,nb as $E,nc as np,nd as gO,o as $A,oa as bE,ob as UE,oc as op,od as TO,p as UA,pb as jE,pc as mS,q as jA,qa as SE,qb as BE,qc as fS,qd as _l,r as BA,ra as OE,rb as zd,rc as ip,rd as ml,s as HA,sa as RE,sb as Vd,sd as fl,t as zA,ta as xE,tb as Wd,td as hl,u as VA,ua as IE,ub as Kd,ud as gl,v as WA,va as NE,vb as Xd,vc as sp,vd as Tl,w as KA,wa as id,wd as yl,x as XA,xa as sd,xb as Yd,xc as ES,xd as Cl,y as YA,ya as wE,yb as qd,yc as fp,yd as Al,z as qA,za as ad,zb as Jd,zc as kp,zd as El}from"./chunks/chunk-YQMYF3YD.js";import{Ba as Za,Ca as Qa,Da as ed,Ea as td,Fa as rd,Ga as nd,H as za,Ha as od,I as Va,Ia as Tp,J as Wa,Ja as yp,K as Ka,Ka as Cp,L as xe,La as Ap,Ma as Ep,Na as bp,a as KC,b as XC,c as Is,d as Ns,f as ws,g as ks,h as pE,i as lE,j as uE,k as _E,l as mE,m as fE,n as hE,o as gE,oa as Ie,p as Da,pa as Ne,q as Fa,qa as we,r as Ga,ra as ke,s as $a,sa as Xa,t as Ua,u as TE,ua as Ya,v as ja,va as qa,w as Ba,wa as Ja,x as Ha}from"./chunks/chunk-244MI4GS.js";import{$ as Zs,$a as ob,$b as ac,Aa as Oa,Ab as Ob,Ac as KS,B as Ps,Ba as Ra,Bb as Rb,Bc as XS,C as tE,Ca as xa,Cb as xb,Cc as YS,D as rE,Db as Ib,Dc as qS,E as nE,Ea as HE,Eb as Nb,Ec as JS,F as oE,Fa as zE,Fb as wb,G as iE,Ga as VE,Gb as kb,H as Ms,Ha as WE,Hb as vb,I as Ls,Ia as KE,Ib as Pb,J as Ds,Ja as XE,Jb as Mb,K as Fs,Ka as YE,Kb as Lb,L as Gs,La as qE,Lb as Db,M as $s,Ma as JE,Mb as Fb,N as Us,Na as ZE,Nb as Gb,O as js,Oa as QE,Ob as $b,P as Bs,Pb as Ub,Q as Hs,Qb as jb,R as zs,Rb as Bb,S as te,Sb as Hb,T as Vs,Tb as zb,U as Ws,Ub as Vb,V as Ks,Vb as Wb,W as Xs,Wb as Kb,X as sE,Xa as eb,Xb,Y as Ys,Ya as tb,Yb as oc,Z as qs,Za as rb,Zb as ic,_ as Js,_a as nb,_b as sc,a as vC,aa as Qs,ab as ib,ac as dc,b as PC,ba as ea,bc as cc,c as MC,ca as ta,cc as ve,d as LC,da as ra,db as sb,dc as pc,e as DC,ea as na,eb as ab,ec as lc,fa as oa,fb as db,fc as uc,ga as ia,gb as cb,gc as _c,h as FC,ha as sa,hb as pb,hc as mc,i as GC,ia as aa,ib as lb,ic as fc,j as Rs,ja as da,jb as ub,jc as hc,k as $C,ka as ca,kb as jd,kc as gc,l as UC,la as pa,lb as ec,lc as Tc,m as HC,ma as la,mb as tc,mc as yc,n as zC,na as ua,nb as rc,nc as Cc,o as VC,oa as _a,ob as nc,oc as Ac,p as WC,pa as ma,pb as mb,pc as Ec,q as fA,qa as fa,qb as fb,qc as bc,r as hA,ra as ha,rb as hb,rc as Sc,s as gA,sa as ga,sb as gb,sc as Oc,t as TA,ta as Ta,tb as Tb,tc as Pe,u as yA,ua as ya,ub as yb,uc as Rc,v as CA,va as Ca,vb as Cb,vc as Yb,w as AA,wa as Aa,wb as Ab,wc as qb,x as EA,xa as Ea,xb as Eb,xc as Jb,y as bA,ya as ba,yb as bb,yc as xc,z as SA,za as Sa,zb as Sb,zc as Zb}from"./chunks/chunk-6C7GIMIL.js";import{$ as Uf,$c as Kh,$e as Wg,$f as aT,$h as Cy,$i as tC,$j as uo,$k as Zo,$l as Zi,Ac as xh,Ad as lg,Af as Br,Ag as MT,Aj as _C,Ak as xC,Al as Oi,Am as Es,B as If,Bc as Ih,Bd as Wt,Bf as Hr,Bg as LT,Bh as ay,Bi as Fy,Bj as mC,Bk as IC,Bl as Ri,Bm as Re,C,Cc as Nh,Ce as br,Cf as zr,Cg as DT,Cj as fC,Ck as NC,Cl as xi,D as Nf,Dc as wh,Dd as ug,De as Sr,Df as Vr,Dg as FT,Dh as dy,Dj as hC,Dk as wC,Dl as Ii,E as K,Ec as kh,Ed as _g,Ee as Or,Ef as Wr,Eh as cy,Ei as Gy,Ej as gC,Ek as kC,El as Ni,Fc as vh,Fd as mg,Ff as Kr,Fg as GT,Fh as py,Fk as wo,Fl as wi,G as wf,Gc as Ph,Gd as Kt,Ge as Og,Gf as Xr,Gg as $T,Gh as ly,Gi as $y,Gk as ko,Gl as ki,H as kf,Hc as Mh,Hd as Xt,He as Rg,Hf as Yr,Hh as uy,Hk as vo,Hl as vi,Ic as Bt,Id as Yt,Ie as xg,If as qr,Ij as Se,Ik as Po,Il as Pi,Ja as Jf,Jc as Lh,Jd as qt,Je as Ig,Jf as Jr,Jg as UT,Jj as TC,Jk as Mo,Jl as Mi,K as vf,Ka as Zf,Kb as ph,Kc as Ht,Kd as Jt,Ke as Ng,Kf as Zr,Kg as jT,Ki as Uy,Kj as yC,Kk as Lo,Kl as Li,La as Qf,Lb as Dt,Ld as Zt,Le as wg,Lf as Qr,Lg as BT,Li as jy,Lj as CC,Lk as Do,Ll as Di,Mb as Ft,Mc as Dh,Md as Qt,Me as kg,Mf as en,Mg as HT,Mi as By,Mj as qn,Mk as Fo,Ml as Fi,N as Pf,Nc as Fh,Nd as fg,Ne as vg,Nf as tn,Ng as zT,Ni as Hy,Nj as Jn,Nk as Go,Nl as Gi,O as ge,Oa as wt,Ob as F,Oc as Gh,Od as hg,Oe as Pg,Of as rn,Og as pn,Oi as zy,Oj as Zn,Ok as $o,Ol as $i,Pa as eh,Pb as lh,Pc as $h,Pe as Mg,Pf as nn,Pg as ln,Pj as Qn,Pk as Uo,Pl as Ui,Q as Te,Qa as th,Qc as Uh,Qd as er,Qe as Lg,Qf as on,Qi as Vy,Qj as eo,Qk as jo,Ql as ji,R as At,Ra as rh,Rb as uh,Rc as Ae,Rd as tr,Re as Dg,Rf as sn,Ri as Wy,Rj as to,Rk as Bo,Rl as Bi,S as Et,Sa as nh,Sc as jh,Sd as gg,Se as Fg,Sf as an,Sh as _y,Si as Ky,Sj as ro,Sk as Ho,Sl as Hi,T as ye,Tb as _h,Tc as Bh,Td as rr,Te as Gg,Tf as dn,Tg as VT,Th as my,Ti as Xy,Tj as no,Tk as zo,Tl as zi,U as Mf,Ua as kt,Uc as Hh,Ud as nr,Ue as $g,Uf as cn,Ug as WT,Uh as fy,Ui as Yy,Uj as oo,Uk as Vo,Ul as Vi,Va as vt,Vd as Tg,Ve as Ug,Vf as tT,Vg as KT,Vh as hy,Vi as qy,Vj as io,Vk as Wo,Vl as Wi,W as Lf,Wa as X,Wc as zh,Wd as or,We as jg,Wf as rT,Wg as XT,Wh as gy,Wi as Jy,Wj as so,Wk as Ko,Wl as Ki,X as Df,Xc as Vh,Xd as ir,Xe as Bg,Xf as nT,Xh as Ty,Xi as Zy,Xj as ao,Xk as Xo,Xl as Xi,Y as Ff,Yd as sr,Ye as Hg,Yf as oT,Yg as YT,Yi as Qy,Yj as co,Yk as Yo,Yl as Yi,Z as Gf,Za as Pt,Zc as zt,Zd as ar,Ze as zg,Zf as iT,Zg as qT,Zi as eC,Zj as po,Zk as qo,Zl as qi,_ as $f,_a as Mt,_c as Wh,_e as Vg,_f as sT,_h as yy,_i as be,_j as lo,_k as Jo,_l as Ji,aa as jf,ab as Lt,ad as Xh,af as Kg,ag as dT,ai as On,aj as rC,ak as _o,al as Qo,am as Qi,ba as Bf,bd as Yh,bf as Xg,bg as cT,bh as JT,bi as Ay,bj as nC,bk as mo,bl as ei,bm as es,c as gt,ca as Hf,cd as qh,cf as Yg,cg as pT,ch as ZT,ci as Ey,cj as oC,ck as fo,cl as ti,cm as ts,da as zf,dd as Jh,de as yg,df as qg,dg as lT,dh as QT,di as by,dj as iC,dk as ho,dl as ri,dm as rs,e as he,ec as mh,ed as Zh,ee as Cg,ef as Jg,eg as uT,eh as ey,ei as Sy,ej as sC,ek as go,el as ni,em as ns,f as Tt,fa as Vf,fc as fh,fd as Qh,fe as Ag,ff as Zg,fg as _T,fh as un,fi as Ee,fj as aC,fk as To,fl as oi,fm as os,g as yt,ga as Wf,gc as hh,gd as eg,ge as dr,gf as Qg,gg as mT,gh as _n,gi as Oy,gj as dC,gk as yo,gl as ii,gm as is,h as Ct,ha as Kf,hd as tg,he as cr,hf as eT,hg as fT,hh as mn,hi as Ry,hj as cC,hk as Co,hl as si,hm as ss,ia as Xf,ic as gh,ie as pr,if as Rr,ig as hT,ih as fn,ii as xy,ij as vn,ik as Ao,il as ai,im as as,j as Ef,ja as Yf,jc as Th,jd as rg,je as lr,jf as xr,jg as gT,jh as hn,ji as Iy,jj as Pn,jk as Eo,jl as di,jm as ds,k as bf,ka as qf,kd as ng,ke as ur,kf as Ir,kg as TT,kh as gn,kj as Mn,kk as bo,kl as ci,km as cs,l as Sf,la as bt,lc as yh,le as _r,lf as Nr,lg as yT,lh as Tn,li as Ny,lj as Ln,lk as So,ll as pi,lm as ps,ma as St,mc as Gt,md as og,me as mr,mf as wr,mg as CT,mh as yn,mi as wy,mj as Dn,mk as Oo,ml as li,na as Ot,nd as ig,ne as fr,nf as kr,ng as AT,nh as Cn,ni as ky,nj as Fn,nk as Ro,nl as ui,nm as ee,oc as $t,od as sg,oe as hr,of as vr,og as ET,oh as An,oi as vy,ok as xo,ol as _i,om as k,pc as Ut,pd as ag,pe as gr,pf as Pr,pg as bT,ph as ty,pi as Rn,pj as Gn,pk as Io,pl as mi,pm as ls,qd as dg,qe as Tr,qf as Mr,qg as ST,qi as xn,qj as $n,qk as No,ql as fi,qm as us,ra as Rt,rb as oh,rd as cg,re as yr,rf as Lr,rg as OT,rh as En,ri as In,rj as Un,rk as AC,rl as hi,rm as _s,s as Of,sb as Y,sc as Ch,se as Cr,sf as Dr,sg as RT,sh as bn,si as Nn,sj as jn,sk as EC,sl as gi,sm as ms,ta as xt,tb as Ce,tc as Ah,te as Ar,tf as q,tg as xT,th as Sn,ti as wn,tj as Bn,tk as Z,tl as Ti,tm as fs,u as Rf,ua as It,ub as ih,uc as Eh,ue as Er,uf as J,ug as IT,ui as kn,uj as Hn,uk as bC,ul as yi,um as hs,va as Nt,vb as sh,vc as bh,ve as Eg,vf as Fr,vg as NT,vh as ry,vi as Py,vj as zn,vk as SC,vl as Ci,vm as gs,wb as ah,wc as Sh,we as bg,wf as Gr,wg as wT,wh as ny,wj as Vn,wk as OC,wl as Ai,wm as Ts,x as xf,xb as dh,xc as Oh,xd as pg,xe as Sg,xf as $r,xg as kT,xh as oy,xi as My,xj as pC,xk as Oe,xl as Ei,xm as ys,yb as A,yc as Rh,yf as Ur,yg as vT,yh as iy,yi as Ly,yj as lC,yk as Q,yl as bi,ym as Cs,zb as ch,zc as jt,zd as Vt,zf as jr,zg as PT,zh as sy,zi as Dy,zj as uC,zk as RC,zl as Si,zm as As}from"./chunks/chunk-QKGMHGEI.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 Ye(e){if(!(typeof e!="object"||e===null||Object.isFrozen(e))){for(let t of Object.values(e))Ye(t);Object.freeze(e)}}function b(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 Ye(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}],S=Object.freeze({scratch:b({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:b({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":b({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":b({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":b({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 _m(){return Object.keys(S).sort().map(e=>S[e])}function mm(e){let t=e.trim().toLowerCase();if(!Object.hasOwn(S,t))throw new TypeError(`Unknown corpus shape "${e}". Available: ${Object.keys(S).join(", ")}`);return S[t]}var Xe=new WeakMap;function qe(e,t){if(e===0)return[];let r=Xe.get(t);r===void 0&&(r=t.edge_kind_mix.flatMap(n=>Array.from({length:n.weight},()=>n.kind)),Xe.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 fm(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),f=e.age_span_days*864e5,N=new Date(u+(r===1?0:Math.round(t/(r-1)*f))).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:qe(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,qe(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 Je(e){return new ie(e)}function hm(e,t){let r=Je(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 gm(){let e=X(process.cwd(),process.env.PM_PATH);await Ee(e,(t,r)=>be(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 Ze="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 Qe(e){if(e.schema!==Ze)throw new Error(`Unsupported workspace recipe schema: ${e.schema}`);let t=ge(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 et(e,t){let r=Qe(e);return Te(r,t)}async function Tm(e,t){return et(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 ym(){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 tt=["lines","branches","functions","statements"];function Cm(e,t){if(typeof t!="object"||t===null||Array.isArray(t))throw new TypeError(`Coverage entry for ${e} must be an object.`)}function Am(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 Em(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)){Cm(r,o);for(let n of tt){let i=Am(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 bm=["captured_redacted","captured_verbatim"],Sm=[{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 Om(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||!bm.includes(r.capture_source)||!m(r.capture_provenance)||!Array.isArray(r.redactions)||!r.redactions.every(m)||!("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 Sm)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 Rm(e,t){let r=Date.parse(e.waiver_expires_at),o=m(e.waiver_reason)&&m(e.waiver_owner)&&e.waiver_expires_at.endsWith("Z")&&ye(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 xm(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 o=t[e.fixture_path],n=m(e.fixture_path)&&e.fixture_path in t?Om(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 Rm(e,r)}function ax(e,t,r=new Date){let o=[];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 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=m(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=xm(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 rt=300*1e3,Im=3;function ux(e){return(e?.trim()||"development").replace(/[^a-zA-Z0-9._-]/g,"_").replace(/^\./,"_")}function _x(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&&he(p))return[];throw p}}).sort((c,p)=>p.mtimeMs-c.mtimeMs||c.name.localeCompare(p.name)),s=i.filter(c=>n.getTime()-c.mtimeMs<rt),d=Math.max(0,Im-1-s.length),a=i.filter(c=>n.getTime()-c.mtimeMs>=rt).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 nt 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",Nm=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"]),ot=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 _(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]??"")||_(e,["--activate","--adopt","--adopt-all","--deactivate","--fix-managed-state","--init","--install","--output","--reload","--scaffold","--uninstall"])}var wm={changelog:(e,t)=>{if(t[0]==="generate")return!_(e,["--check"]);let r=e.indexOf("export");return t[0]==="export"&&(_(e,["--output"])||r>=0&&e[r+1]!==void 0&&!e[r+1].startsWith("-"))},comments:e=>_(e,["--add","--delete","--edit","--file","--stdin"]),config:(e,t)=>(t[0]==="project"||t[0]==="global"?t[1]:t[0])==="set",deps:()=>!1,docs:e=>_(e,["--add","--add-glob","--migrate","--remove"]),duplicates:()=>!1,events:()=>!1,extension:de,files:(e,t)=>_(e,["--add","--add-glob","--migrate","--remove"])||t[0]==="discover"&&_(e,["--apply"]),health:e=>!_(e,["--check-only","--no-refresh","--skip-vectors"]),learnings:e=>_(e,["--add","--delete","--edit","--file","--stdin"]),merge:(e,t)=>t[0]!=="report",notes:e=>_(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]??"")&&!(_(e,["--infer"])&&!_(e,["--apply"])),telemetry:(e,t)=>t.slice(0,2).some(r=>["clear","flush"].includes(r)),templates:(e,t)=>t[0]==="save",test:e=>_(e,["--add","--add-json","--background","--measure","--remove","--resume","--run","--stop"]),validate:e=>_(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(nt.readFileSync(e,"utf8"));return typeof t=="object"&&t!==null&&!Array.isArray(t)?t:null}catch{return null}}function km(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 vm(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 Pm(e,t){try{let r=nt.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 Mm(e){let t=[],r=ce(j.join(e,"package.json")),o=r?km(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=vm(e);s&&B(s)&&t.push({version:s,source:"package-lock.json"});for(let d of["pnpm-lock.yaml","yarn.lock"]){let a=Pm(e,d);a&&t.push({version:a,source:d})}return t}function it(e){for(let t=0;t<e.length;t+=1){let r=e[t];if(ot.has(r)){t+=1;continue}if(!r.startsWith("-"))return{command:r.toLowerCase(),index:t}}}function Lm(e){let t=it(e);if(!t||_(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(ot.has(d)){s+=1;continue}d.startsWith("-")||n.push(d.toLowerCase())}let i=wm[r];return i?i(e,n):Nm.has(r)}function Dm(e){let t=it(e.argv)?.command,r=Lm(e.argv),n=Mm(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 yx(e){let t=Dm(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 Fm}from"node:crypto";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4586a8b2-07c8-53d4-9c5d-ca557ee07977")}catch{}})();var 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:Fm("sha256").update(F({nodes:n,edges:i,kinds:s})).digest("hex"),created_at:new Date(o).toISOString(),nodes:n,edges:i,kinds:s})}function Gm(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function M(e){if(!Gm(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 h(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 h(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 h(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 $m(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 st(e,t){if(!Number.isInteger(e)||e<1)throw new TypeError(`Relationship graph ${t} must be a positive integer`);return e}function Um(e){let t=st(e.nodeCount,"nodeCount"),r=st(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 at(e,t={}){let r=t.workspace?.trim()||"pm-graph-conformance",o=Ce(),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 h(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 h(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 h(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 h(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 jm(e){return at(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 dt}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 ct(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=ct(t.migrationId,"migrationId"),o=ct(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 f=dt("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}:${f}`,relationshipId:`migration:${r}:${f}`,action:"add",edge:u,author:o,timestamp:i,reason:`Backfill ${r} from legacy item metadata`})}),c=dt("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 pt 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"}},Kx=Object.freeze(Object.keys(ue));function lt(e){if(Object.hasOwn(ue,e))return ue[e]}var Bm=new Set([..."=([{,:;!?&|+-*%^~<>","=>"]);function I(e,t){return e<t?-1:e>t?1:0}function Hm(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 zm(e){return e===void 0||e.kind==="punctuator"&&Bm.has(e.value)||e.kind==="identifier"&&["return","case","throw","else","yield"].includes(e.value)}function Vm(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 Wm(e,t,r){if(e[t]!=="/"||!zm(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 Km(e,t){let r=e[t];if(r==="'"||r==='"'||r==="`"){let n=Hm(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 Xm(e){let t=[],r=0;for(;r<e.length;){let o=Vm(e,r);if(o!==void 0){r=o;continue}let n=Wm(e,r,t.at(-1));if(n!==void 0){r=n;continue}let i=Km(e,r);i.token&&t.push(i.token),r=i.next}return t}var Ym=new Set(["object","block","pattern"]),qm=new Set(["const","let","var"]),Jm=new Set(["}",")","]"]),Zm=new Set(["=","(","[",",",":","?","return"]);function Qm(e,t,r){if([...r].reverse().find(i=>Ym.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"&&qm.has(n.value)?"pattern":n?.value==="=>"||n?.value===")"?"block":n&&Zm.has(n.value)?"object":"block"}function ef(e,t,r){let o=e[t];if(o.value==="{"){let d=Qm(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 tf(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 rf(e,t){return e[t+1]?.value===")"&&e[t+2]?.value==="=>"||e[t+1]?.value==="="}function nf(e){let t=Xm(pt.stripTypeScriptTypes(e,{mode:"strip"})),r=[],o=[];for(let[n,i]of t.entries()){let s=o.at(-1),d=tf(s,i,t[n+1]);d&&s.candidates.push(d);let a=ef(t,n,o);if(a)o.push(a);else if(Jm.has(i.value)){let c=o.pop();c?.kind==="object"&&!rf(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 of(e){let t=[0];for(let r=0;r<e.length;r+=1)e[r]===`
|
|
4
|
-
|
|
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]="0ec8c375-e58e-5ce4-b0aa-8a8a4dfa0778")}catch{}})();function df(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 cf(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."},...df(e)]}function sI(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 cf(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 mt="not-a-declared-action";function pf(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 mI(e=Q.filter(t=>Oe.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=>pf(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 lf(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 xe;default:throw new Error(`Required positional action family ${e} has no authoritative value domain.`)}}function fI(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,mt],recovery_args:[...r,"--help"],error_code:"unknown_subcommand",rejected_value:mt,allowed_values:[...lf(t)].sort()}}).sort((t,r)=>t.probe_id.localeCompare(r.probe_id))}function uf(e,t){let r=[...t].sort();return e.length===t.length&&[...e].sort().every((o,n)=>o===r[n])}function _f(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&&!uf(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 hI(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=>_f(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 fe=[{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 TI(){return fe.map(e=>({...e}))}function mf(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 yI(e){let t=new Map(e.map(n=>[n.probe_id,n])),r=[],o=0;for(let n of fe){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=mf(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:fe.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,ff=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 hf(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=ff[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})=>We(i,k(i)).map(d=>({command:i,family:s,concept:hf(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 ft=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 ht(){let e=new Map(Object.keys(ft).map(t=>[t,0]));for(let{command:t}of W())e.set(t,Number(e.get(t))+1);return Object.freeze(Object.entries(ft).map(([t,r])=>Object.freeze({command:t,current:Number(e.get(t)),maximum:r})))}function gf(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 Tf(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 yf(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 OI(e=W(),t=ht(),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 gf(e,n,o),Tf(d,t,o),yf(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 RI(){let e=W(),t=ht(),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(`
|
|
6
|
-
`)}(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 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 MI(e){return e}function LI(e){return e}function DI(e){return e}function FI(e){return e}function GI(e){return e}function $I(e){return e}function UI(e){return e}function jI(e){return{handled:!0,result:e}}function BI(){return{handled:!1}}function HI(e){return e}function zI(e){return e}function VI(e){return e}function WI(e){return e}function KI(e){return e}function XI(e){return e}function YI(e){return e}function qI(e){return e}function JI(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 Cf(e={},t={}){return new G(t).extension(void 0,{...e,migrate:!0})}function Af(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]="805c081a-a781-50c3-8919-81492208913b")}catch{}})();export{HE as ACTIONABILITY_ORDERING_KINDS,to as ACTIVITY_COMMANDER_STRING_OPTION_CONTRACTS,Ji as ACTIVITY_FLAG_CONTRACTS,dr as AGENT_PROVENANCE_DIMENSIONS,Lo as AGGREGATE_FLAG_CONTRACTS,Ai as APPEND_FLAG_CONTRACTS,$E as ASSURANCE_ACTIONS,UE as ASSURANCE_DECLARATION_KINDS,wA as ASSURANCE_DOCUMENT_VERSION,ji as ASSURANCE_FLAG_CONTRACTS,kA as ASSURANCE_GATE_TRIGGERS,vA as ASSURANCE_MEASUREMENT_SOURCE_KINDS,YA as ASSURANCE_PRESET_IDS,RA as AssuranceEvaluationRefusalError,OA as AssuranceMutationRefusalError,xA as AssuranceSourceResolutionError,Kt as BASELINE_ITEM_FORMAT_VERSION,bm as BOUNDARY_FIXTURE_CAPTURE_SOURCES,tb as BRIEF_LIST_FIELDS,pr as BUILTIN_AGENT_PROVENANCE_ADAPTERS,S as BUILTIN_CORPUS_SHAPES,cr as BUILTIN_HARNESS_SIGNAL_DESCRIPTORS,bt as BUILTIN_ITEM_TYPE_VALUES,De as BUILTIN_PROFILES,oh as BUILTIN_RELATIONSHIP_KINDS,Zn as CALENDAR_COMMANDER_STRING_OPTION_CONTRACTS,qi as CALENDAR_FLAG_CONTRACTS,Ei as CLAIM_FLAG_CONTRACTS,fs as CLOSE_ACTION_OPTION_KEYS,yi as CLOSE_FLAG_CONTRACTS,Ci as CLOSE_MANY_FLAG_CONTRACTS,Ii as CLOSE_TASK_FLAG_CONTRACTS,Do as COMMENTS_FLAG_CONTRACTS,Jf as COMMON_MUTATION_COMMAND_OPTION_KEYS,cs as COMPLETION_FLAG_CONTRACTS,Nt as CONFIDENCE_TEXT_VALUES,Jo as CONFIG_FLAG_CONTRACTS,Qn as CONTEXT_COMMANDER_STRING_OPTION_CONTRACTS,Cb as CONTEXT_EVALUATION_METRIC_NAMES,Qi as CONTEXT_FLAG_CONTRACTS,ve as CONTEXT_OUTPUT_VALUES,Ob as CONTEXT_PACKING_PROFILES,hb as CONTEXT_RELEVANCE_SERVICE,mb as CONTEXT_RELEVANCE_SIGNAL_NAMES,Pb as CONTEXT_SIGNAL_SET_VERSION,vb as CONTEXT_SIGNAL_STORE_FORMAT_VERSION,Mb as CONTEXT_SIGNAL_STORE_WARNING_DETAILS,ds as CONTRACTS_FLAG_CONTRACTS,Wi as COPY_FLAG_CONTRACTS,io as CREATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,ao as CREATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,so as CREATE_COMMANDER_STRING_OPTION_CONTRACTS,Rf as CREATE_DIRECT_CLOSE_REASON_DEFAULT,Bi as CREATE_FLAG_CONTRACTS,UT as CURRENT_HISTORY_ITEM_HASH_VERSION,Xt as CURRENT_ITEM_FORMAT_VERSION,Gb as ContextSignalStore,xb as ContextUsageValidationError,TA as DEFAULT_AUTHOR_IDENTITY_VOCABULARY,gS as DEFAULT_CHILD_SAMPLE_LIMIT,eb as DEFAULT_COMPACT_LIST_FIELDS,Iy as DEFAULT_DERIVED_INDEX_MINIMUM_ITEMS,Np as DEFAULT_EVAL_QUERIES_RELATIVE_PATH,Qb as DEFAULT_TERMINAL_TRANSITION_POLICY,Bb as DEFAULT_WORKSPACE_MEMORY_MINIMUM_ITEMS,vE as DEFECT_ESCAPE_CLASSES,PE as DEFECT_GATE_EVIDENCE_DISPOSITIONS,Si as DELETE_FLAG_CONTRACTS,Rt as DEPENDENCY_KIND_VALUES,rs as DEPS_FLAG_CONTRACTS,Uo as DOCS_FLAG_CONTRACTS,Gi as DUPLICATES_FLAG_CONTRACTS,os as EVAL_FLAG_CONTRACTS,Op as EVAL_QUERY_SET_CONTRACT,Rp as EVAL_QUERY_SET_EXAMPLE,Sp as EVAL_QUERY_SET_SCHEMA_ID,Zi as EVENTS_FLAG_CONTRACTS,wi as EVENT_FLAG_CONTRACTS,xr as EXECUTABLE_COMMAND_ALIASES,C as EXIT_CODE,di as EXTENSION_ACTIVATE_FLAG_CONTRACTS,ai as EXTENSION_ADOPT_ALL_FLAG_CONTRACTS,fi as EXTENSION_ADOPT_FLAG_CONTRACTS,YC as EXTENSION_CAPABILITIES,Sf as EXTENSION_CAPABILITY_CONTRACT,Ef as EXTENSION_CAPABILITY_CONTRACT_VERSION,bf as EXTENSION_CAPABILITY_LEGACY_ALIASES,Gt as EXTENSION_CAPABILITY_REGISTRATION_SURFACES,mi as EXTENSION_CATALOG_FLAG_CONTRACTS,ci as EXTENSION_DEACTIVATE_FLAG_CONTRACTS,si as EXTENSION_DESCRIBE_FLAG_CONTRACTS,_i as EXTENSION_DOCTOR_FLAG_CONTRACTS,ii as EXTENSION_EXPLORE_FLAG_CONTRACTS,Zo as EXTENSION_FLAG_CONTRACTS,ei as EXTENSION_INIT_FLAG_CONTRACTS,ni as EXTENSION_INSTALL_FLAG_CONTRACTS,li as EXTENSION_MANAGE_FLAG_CONTRACTS,pi as EXTENSION_MIGRATE_FLAG_CONTRACTS,qC as EXTENSION_POLICY_MODES,JC as EXTENSION_POLICY_SURFACES,ui as EXTENSION_RELOAD_FLAG_CONTRACTS,QC as EXTENSION_SANDBOX_PROFILES,Qo as EXTENSION_SCOPE_FLAG_CONTRACTS,ZC as EXTENSION_TRUST_MODES,oi as EXTENSION_UNINSTALL_FLAG_CONTRACTS,tE as EXTERNAL_DEPENDENCY_SOURCE_KIND,rE as EXTERNAL_DEPENDENCY_SOURCE_KIND_ALIAS,$o as FILES_FLAG_CONTRACTS,Ki as FOCUS_FLAG_CONTRACTS,Di as GC_FLAG_CONTRACTS,ob as GET_DEPTH_VALUES,es as GET_FLAG_CONTRACTS,Po as GLOBAL_FLAG_CONTRACTS,fa as GRAPH_DURABLE_CACHE_MIN_ITEMS,ma as GRAPH_DURABLE_CACHE_VERSION,ns as GRAPH_FLAG_CONTRACTS,q as GRAPH_SUBCOMMAND_VALUES,ts as GUIDE_FLAG_CONTRACTS,$i as HEALTH_FLAG_CONTRACTS,Vo as HISTORY_AUTHOR_ACKNOWLEDGE_FLAG_CONTRACTS,dE as HISTORY_AUTHOR_ATTRIBUTION_BASELINE,rO as HISTORY_COMPACT_BULK_DEFAULT_MIN_ENTRIES,Wo as HISTORY_COMPACT_FLAG_CONTRACTS,jo as HISTORY_FLAG_CONTRACTS,Ho as HISTORY_REDACT_FLAG_CONTRACTS,zo as HISTORY_REPAIR_FLAG_CONTRACTS,Tp as INIT_AGENT_GUIDANCE_MODE_VALUES,qo as INIT_FLAG_CONTRACTS,hi as INSTALL_FLAG_CONTRACTS,It as ISSUE_SEVERITY_VALUES,zi as ITEM_COMPLETE_FLAG_CONTRACTS,jS as ITEM_LATEST_TIMESTAMP_FIELDS,Of as ITEM_METADATA_KEY_ORDER,Hi as ITEM_MUTATE_FLAG_CONTRACTS,Vi as ITEM_REOPEN_FLAG_CONTRACTS,St as ITEM_TYPE_VALUES,US as ITEM_UNION_COLLECTION_FIELDS,Fb as JsonFileContextSignalStoreAdapter,Go as LEARNINGS_FLAG_CONTRACTS,Vc as LINKED_TEST_ENV_NAME_PATTERN,Wc as LINKED_TEST_PM_CONTEXT_MODE_VALUES,zc as LINKED_TEST_PROTECTED_ENV_KEYS,Kc as LINKED_TEST_WORKSPACE_CONTEXT_MODE_VALUES,qn as LIST_COMMANDER_STRING_OPTION_CONTRACTS,rb as LIST_COMMAND_DEFAULT_PROJECTIONS,tA as LIST_FILTER_EXTENSION_FLAG_DEFINITIONS,Mo as LIST_FILTER_FLAG_CONTRACTS,db as LIST_SORT_FIELDS,cb as LIST_SORT_ORDER_VALUES,hS as MAX_CHILD_PROJECTION_ITEMS,Ni as MEET_FLAG_CONTRACTS,zS as MERGE_DRIVER_ARTIFACT_VALUES,Bo as MERGE_FLAG_CONTRACTS,J as MERGE_SUBCOMMAND_VALUES,KS as MUTATION_EVENT_WIRE_BUDGET,P as MemoryRelationshipGraphAdapter,eo as NEXT_COMMANDER_STRING_OPTION_CONTRACTS,ss as NEXT_FLAG_CONTRACTS,Rc as NEXT_OUTPUT_VALUES,Fo as NOTES_FLAG_CONTRACTS,ti as PACKAGE_FLAG_CONTRACTS,ri as PACKAGE_INIT_FLAG_CONTRACTS,xi as PAUSE_TASK_FLAG_CONTRACTS,ms as PLAN_CREATE_METADATA_PARAMETER_KEYS,Yo as PLAN_FLAG_CONTRACTS,dp as PLAN_SHOW_DEPTH_VALUES,re as PLAN_SUBCOMMANDS,cp as PLAN_TEMPLATE_NAMES,bs as PM_CLI_EXPECTED_ERROR_NAME,RC as PM_CLI_GRAMMAR_CONTRACT,AC as PM_CLI_GRAMMAR_NOUNS,$r as PM_CLI_ONLY_TOOL_ACTION_WAIVERS,EC as PM_CLI_SHARED_VERBS,Rr as PM_COMMAND_ALIAS_CONTRACTS,oe as PM_COMMAND_CAPABILITY_CONTRACTS,Oe as PM_COMMAND_DESTINATION_CONTRACTS,iS as PM_COMMAND_EXIT_CONTRACTS,oS as PM_COMMAND_EXIT_OUTCOME_CONTRACTS,nn as PM_COMMAND_OUTPUT_BUDGET_CONTRACTS,fO as PM_COMMAND_OUTPUT_ENVELOPE_CONTRACTS,Q as PM_COMMAND_POSITIONAL_CONTRACTS,ol as PM_COMMAND_VISIBILITY_CONTRACTS,nA as PM_COMPLETE_LIST_FINDING_CODES,cA as PM_CONTEXT_INTENTS_FILE,RT as PM_CONTEXT_INTENT_CONTRACTS,Dr as PM_CORE_COMMAND_NAMES,g as PM_CORPUS_SHAPE_SCHEMA,jr as PM_DEPRECATED_TOOL_ACTIONS,Zr as PM_DIAGNOSTIC_DEGRADATION_STEPS,Qr as PM_DIAGNOSTIC_OUTPUT_BUDGET_CONTRACTS,Jr as PM_DIAGNOSTIC_OUTPUT_CLASSES,Br as PM_DISCOVERABLE_TOOL_ACTIONS,uO as PM_ERROR_CODE_CATALOG,dO as PM_ERROR_CODE_EXIT_CLASS_CONTRACTS,tt as PM_EXACT_COVERAGE_METRICS,wr as PM_EXTENSION_CAPABILITY_CONTRACTS,Fr as PM_EXTENSION_PACKAGE_ACTION_SUBCOMMANDS,vr as PM_EXTENSION_POLICY_MODE_CONTRACTS,Lr as PM_EXTENSION_POLICY_SURFACE_CONTRACTS,Mr as PM_EXTENSION_SANDBOX_PROFILE_CONTRACTS,kr as PM_EXTENSION_SERVICE_NAME_CONTRACTS,Pr as PM_EXTENSION_TRUST_MODE_CONTRACTS,fE as PM_GITATTRIBUTES_END,mE as PM_GITATTRIBUTES_START,gE as PM_GITATTRIBUTES_V2_END,hE as PM_GITATTRIBUTES_V2_START,Ns as PM_GITIGNORE_END,Is as PM_GITIGNORE_START,Gr as PM_ITEM_ACTION_SUBCOMMANDS,ll as PM_MCP_PROMPT_CONTRACTS,pl as PM_MCP_RESOURCE_CONTRACTS,dl as PM_MCP_TOOL_COMMAND_CONTRACTS,Ig as PM_MODE_PAIRED_OUTPUT_PROJECTION_CONTRACTS,vn as PM_MUTATION_ACTION_CONTRACTS,qr as PM_OUTPUT_BUDGET_CLASSES,Yr as PM_OUTPUT_DEGRADATION_STEPS,_O as PM_OUTPUT_ENVELOPE_KINDS,Ne as PM_PACKAGE_CONVENTIONAL_RESOURCE_ROOTS,Ie as PM_PACKAGE_RESOURCE_KINDS,Z as PM_POSITIONAL_ACTION_CONTRACTS,Es as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA,Cs as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA_VERSION,mT as PM_READ_OUTPUT_COMPOSITION_OPTION_FLAGS,tT as PM_READ_OUTPUT_CONTINUATION_FINGERPRINT_POLICIES,lT as PM_READ_OUTPUT_DIMENSIONS,_T as PM_READ_OUTPUT_OPTION_FLAGS,sT as PM_READ_OUTPUT_SESSION_MAX_SEEN_ITEM_IDS,iT as PM_READ_OUTPUT_SESSION_MIN_TOKENS,uT as PM_READ_OUTPUT_SURFACES,fT as PM_READ_OUTPUT_SURFACE_CONTRACTS,xg as PM_READ_ROW_CONTRACTS,Rg as PM_READ_ROW_JQ_SELECTOR,Kx as PM_RECOVERY_REFERENCE_FIELDS,L as PM_RECOVERY_REFERENCE_KINDS,_t as PM_REFUSAL_CLOSURE_EXECUTABLE_CANONICAL_CODE_BASELINE,ut as PM_REFUSAL_CLOSURE_EXECUTABLE_CODE_BASELINE,Wn as PM_REPRODUCIBLE_PROCESS_ENV,sS as PM_SUCCESS_EXIT_CODES,Ur as PM_TOOL_ACTIONS,hs as PM_TOOL_ACTION_PARAMETER_CONTRACTS,As as PM_TOOL_PARAMETERS_SCHEMA,ys as PM_TOOL_PARAMETERS_SCHEMA_MAJOR,Ts as PM_TOOL_PARAMETERS_SCHEMA_VERSION,us as PM_TOOL_RESERVED_CUSTOM_FIELD_PROPERTIES,Ze as PM_WORKSPACE_RECIPE_SCHEMA,Xo as PROFILE_FLAG_CONTRACTS,He as PROFILE_LINT_CODES,Be as PROFILE_LINT_DIMENSIONS,Le as PROFILE_NAMES,ne as PROFILE_SUBCOMMANDS,K as PmCliError,G as PmClient,oA as PmCompleteListValidationError,zg as QUERY_CURSOR_CONTRACT,Ti as REINDEX_FLAG_CONTRACTS,by as REINDEX_LOCK_ID,le as RELATIONSHIP_GRAPH_SNAPSHOT_VERSION,Oi as RELEASE_FLAG_CONTRACTS,ki as REMIND_FLAG_CONTRACTS,Ae as RESERVED_ITEM_FIELD_NAMES,bi as RESTORE_FLAG_CONTRACTS,xt as RISK_VALUES,jC as RelationshipEventLog,BC as RelationshipEventStore,A as RelationshipGraph,Y as RelationshipKindRegistry,Ko as SCHEMA_FLAG_CONTRACTS,Jn as SEARCH_COMMANDER_STRING_OPTION_CONTRACTS,rA as SEARCH_EXTENSION_FLAG_DEFINITIONS,as as SEARCH_FLAG_CONTRACTS,dc as SEMANTIC_ATTRIBUTION_LIMITS,If as SETTINGS_DEFAULTS,Mp as SNAPSHOT_SCHEMA,lE as SOURCE_CONTEXT_ACCESS_ENV,uE as SOURCE_CONTEXT_WRITE_OVERRIDE_ENV,Ri as START_TASK_FLAG_CONTRACTS,Fi as STATS_FLAG_CONTRACTS,Ot as STATUS_VALUES,vo as SUBCOMMAND_GLOBAL_FLAG_CONTRACTS,jT as SUPPORTED_HISTORY_ITEM_HASH_VERSIONS,Vf as SUPPRESS_HOST_OUTPUT_MARKER,Mi as TELEMETRY_FLAG_CONTRACTS,vl as TELEMETRY_SUBCOMMANDS,Pi as TEST_ALL_FLAG_CONTRACTS,vi as TEST_FLAG_CONTRACTS,Li as TEST_RUNS_FLAG_CONTRACTS,xl as TEST_RUN_MEASUREMENT_LIMIT,Ro as TOOL_ACTIVITY_OPTION_CONTRACTS,mo as TOOL_AGGREGATE_OPTION_CONTRACTS,Eo as TOOL_BULK_MUTATION_FILTER_OPTION_CONTRACT_SOURCE,Oo as TOOL_CALENDAR_OPTION_CONTRACTS,So as TOOL_CLOSE_MANY_FILTER_OPTION_CONTRACTS,xo as TOOL_CONTEXT_OPTION_CONTRACTS,yo as TOOL_CREATE_OPTION_CONTRACTS,To as TOOL_CREATE_OPTION_CONTRACT_SOURCE,Io as TOOL_DEPS_OPTION_CONTRACTS,No as TOOL_GRAPH_OPTION_CONTRACTS,_o as TOOL_LIST_FILTER_OPTION_CONTRACTS,fo as TOOL_SEARCH_FILTER_OPTION_CONTRACTS,go as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACTS,ho as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACT_SOURCE,bo as TOOL_UPDATE_MANY_FILTER_OPTION_CONTRACTS,Ao as TOOL_UPDATE_OPTION_CONTRACTS,Co as TOOL_UPDATE_OPTION_CONTRACT_SOURCE,xf as TYPE_TO_FOLDER,Hf as UNKNOWN_SUBCOMMAND_COMPATIBILITY_CODES,co as UPDATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,lo as UPDATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,po as UPDATE_COMMANDER_STRING_OPTION_CONTRACTS,Xi as UPDATE_FLAG_CONTRACTS,Yi as UPDATE_MANY_FLAG_CONTRACTS,gi as UPGRADE_FLAG_CONTRACTS,Ui as VALIDATE_FLAG_CONTRACTS,is as WORKSPACE_FLAG_CONTRACTS,_n as WORKSPACE_HISTORY_ID,Lp as WORKSPACE_SNAPSHOT_ACTIONS,Ws as WorkspaceGraphCache,KC as WorkspaceTransactionInterruptedError,Rs as _testOnly,_b as _testOnlyAggregateCommand,gp as _testOnlyConfigCommand,AS as _testOnlyGetCommand,sd as _testOnlyHealthCommand,Ep as _testOnlyInit,yp as _testOnlyInitAgentGuidance,zO as _testOnlyItemTransaction,JS as _testOnlyMutationEvents,qb as _testOnlyNextCommand,FS as _testOnlySearchCommand,_S as _testOnlySimilarity,Hp as _testOnlyTemplates,$d as _testOnlyValidateCommand,QA as acceptAssuranceProposals,Fd as acknowledgeLinkedTests,La as acknowledgeUnknownAuthorHistoryEvents,Ma as acknowledgeUnknownAuthorHistoryEventsFromTransport,Ny as acquireItemMetadataDerivedIndexLock,un as acquireLock,rR as activateExtensionForTest,gh as activateExtensions,ar as agentSessionEnvironment,xu as aggregate,hl as analyzeAgentProvenanceDescriptorCoverage,LE as analyzeDefectChangeRisk,zC as analyzeGraphImpact,Ds as analyzeHierarchyIntegrity,VC as analyzeKnowledgeGraph,pS as analyzePmCommandExitConformance,Hr as analyzePmToolActionParity,RE as analyzeReconciliationDiscard,HC as analyzeRelationshipExecution,aa as analyzeRelationshipSchedule,Q_ as analyzeSdkActionCoverage,Re as analyzeSdkCliParameterCompleteness,$u as append,ln as appendHistoryEntry,gn as appendWorkspaceAuditEvent,hn as appendWorkspaceHistoryChange,Kh as applyAcceptanceCriteriaMutations,JA as applyAssurancePreset,om as applyBootstrapPagerPolicy,kT as applyContextIntentProjection,Oc as applyContextTagProjection,pb as applyFilterValueEcho,MC as applyHistoryPatch,lm as applyInvocationAuthorOverride,ud as applyPathMigrations,bT as applyReadOutputDimensions,yT as applyReadOutputIncludeModes,dT as applyReadOutputSessionReferences,Hh as applyRegisteredItemFieldDefaultsAndValidation,hd as applyStandaloneNote,ed as applyStoredExtensionMigrationState,Yh as applyTagRemovals,nS as applyTerminalOrderingPolicy,gd as artifactKey,Pf as asRecordClone,vf as asRecordOrNull,te as assembleWorkspaceRelationshipGraph,dA as assertCompleteListResult,DR as assertExtensionBlueprint,LR as assertExtensionCapabilityUsage,gR as assertExtensionDeactivated,$R as assertExtensionManifestCompatible,GR as assertExtensionManifestMatchesBlueprint,UR as assertExtensionPreflight,$s as assertHierarchyMutationAllowed,nO as assertHistoryCompactTarget,IE as assertHistoryRepairTarget,In as assertInitializedTracker,_d as assertLinkedArtifactMutationIsUnambiguous,jm as assertMemoryRelationshipGraphAdapterConformance,Zh as assertNoUnknownCsvKeys,TR as assertPackageManifest,iy as assertParentReferenceIsNotSelf,FR as assertProjectProfile,yx as assertProjectRuntimeCompatibility,Ng as assertProjectionModeChoice,xn as assertReadableTrackerRoot,yR as assertRegisteredCommandContract,NR as assertRegisteredCommandOverride,OR as assertRegisteredExporter,CR as assertRegisteredFlags,AR as assertRegisteredHook,SR as assertRegisteredImporter,RR as assertRegisteredItemField,xR as assertRegisteredItemType,MR as assertRegisteredMigration,wR as assertRegisteredParserOverride,kR as assertRegisteredPreflightOverride,IR as assertRegisteredProfile,vR as assertRegisteredRendererOverride,ER as assertRegisteredSearchProvider,PR as assertRegisteredServiceOverride,bR as assertRegisteredVectorStoreAdapter,dh as assertRelationshipEdgeAllowed,at as assertRelationshipGraphAdapterConformance,PA as assuranceAssertionUpdateIsLoosening,MT as attachContextIntentReceipt,Pd as attachLinkedTestMutationProvenance,vd as attachLinkedTestProvenance,Lg as attachOutputOmissionReceipt,DT as attachOutputTokenAccounting,LT as attachReadOutputContracts,cT as attachReadOutputSessionReceipt,Ua as auditMergeAttributeFence,TE as auditMergeDriverConfiguration,ua as auditWorkspaceRelationshipGraph,or as boundAgentEpisodeIdentity,Qg as boundReadOutputRows,Ac as buildChildrenByParent,OS as buildCompactSearchFilterSummary,lb as buildContentFilterEcho,Db as buildContextSignalSnapshot,fm as buildCorpusShapeItemPlan,ME as buildDefectRecurrenceIndex,qa as buildExtensionDescribeResult,ub as buildGovernanceMissingFilterEcho,_y as buildInvalidTypeError,TS as buildItemChildrenRollup,BO as buildItemCompletionMutations,fb as buildItemContextRelevanceCandidates,Ly as buildItemNotFoundError,CS as buildItemSchedule,Ga as buildMergeAttributePatterns,gs as buildPmActionToolInputSchema,rI as buildPmRefusalClosureCensus,sE as buildRelationshipContext,Uy as buildSearchCorpus,By as buildSemanticCorpusInput,Rn as buildTrackerInitializationRecovery,Xy as buildVectorizationEmbeddingIdentity,Yy as buildVectorizationEmbeddingMetadata,RS as buildVerboseSearchFilters,Hb as buildWorkspaceMemorySnapshot,nr as canonicalDocument,Zf as canonicalizeCommandOptionKey,ih as canonicalizeRelationshipKind,Xx as censusPmRecoveryReferenceProducers,aA as certifyCompleteListResult,eR as checkExtensionManifestCompatibility,E_ as claim,b_ as claimNext,cE as classifyHistoryAuthorEvent,ZS as classifyHostEnvironmentFault,MS as classifyImplicitSemanticFallbackReason,Jt as classifyItemFormatVersion,Ll as classifyLinkedTestFailure,Mh as clearActiveExtensionHooks,Ca as clearDurableGraphCache,Ag as clearFocusedItem,vs as clearWorkspaceContractsCache,A_ as close,vc as closeItem,k_ as closeTask,am as coalesceRepeatedListFlags,zE as collectBlockedByIds,WE as collectBlockedByIdsFromCorpus,Hs as collectDanglingDependencyReferences,XE as collectDependencyBlockedIds,js as collectDuplicateDependencyRows,la as collectDuplicateRelationshipEdgeGroups,PS as collectErrorCauseCodes,Ls as collectHierarchyRelations,zs as collectMissingDependencyTargetIds,$c as collectNewOrderingCycleWarnings,da as collectOrderingCycles,Bs as collectOrderingStorageContradictions,uA as collectPackageContextIntentContracts,ke as collectPackageExtensionDirectories,jh as collectRegisteredItemFieldNames,_g as collectRuntimeCreateFieldValues,my as collectRuntimeFilterValues,mg as collectRuntimeUpdateFieldValues,hc as collectSubtreeIds,$t as collectUsedExtensionCapabilities,Qf as commandOptionFlagLabel,wu as comments,cu as commitImportedItem,HO as commitItemCompletion,jO as commitItemMutations,XC as commitWorkspaceTransaction,ko as compactFlagAliasContracts,gc as compareCriticalItems,U as comparePmDateVersions,WC as compareRelationshipSnapshots,Mf as compareTimestampStrings,bA as compileHistoryProvenanceMatcher,NT as composeContextIntentContracts,KO as composeExtension,QO as composeExtensionPackage,YE as computeActionabilityReport,ZT as computeHistoryDiff,ia as computeRelationshipCentrality,oa as computeRelationshipDominators,Vs as computeWorkspaceGraphFingerprint,ju as config,Ph as consumeAfterCommandAffectedItems,Au as context,PT as contextIntentRowId,O_ as copy,Dl as countFailureCategories,Jg as countReadOutputRows,T_ as create,qA as createAssurancePreset,kE as createAssuranceWorkspaceContext,Df as createCheckpointId,iA as createCompleteListOptions,Th as createCoreCommandHookContext,Je as createCorpusShapeMeasurement,GA as createEmptyAssuranceDocument,ph as createEmptyExtensionRegistrationRegistry,xs as createExtensionCommandSdk,Ft as createExtensionContributionInventory,jR as createExtensionTestHarness,pn as createHistoryEntry,lC as createLazyModule,My as createMutationGuardSdk,wg as createOutputOmissionReceipt,Ss as createPmCliExpectedError,um as createPmCliProgram,tn as createPmCommandOutputBudget,Fg as createQueryFingerprint,Um as createRelationshipGraphScaleFixture,x as createRelationshipGraphSnapshot,Ce as createRelationshipKindRegistry,Xn as createReproducibleProcessRunner,xS as createSearchCursorFingerprint,yh as createSerialQueue,og as createStdinTokenResolver,zf as createUnknownSubcommandError,Dp as createWorkspaceSnapshot,nR as deactivateExtensionForTest,BI as declineServiceOverride,vT as decodeContextIntentCursor,pC as decodeHtmlEntitiesInOptions,jg as decodeQueryCursor,$g as decodeQueryCursorEnvelope,Ug as decodeQueryCursorState,oT as decodeReadOutputContinuationCursor,yd as dedupeLinkedArtifacts,gb as defaultScoreContextCandidates,XI as defineAfterCommandHook,WI as defineBeforeCommandHook,KI as defineBeforeMutationHook,wI as defineCommand,FI as defineCommandOverride,b as defineCorpusShape,VI as defineExporter,VO as defineExtension,WO as defineExtensionBlueprint,II as defineExtensionManifest,kI as defineFlag,zI as defineImporter,PI as defineItemField,vI as defineItemType,MI as defineMigration,JI as defineOnIndexHook,qI as defineOnReadHook,YI as defineOnWriteHook,GI as defineParserOverride,rn as definePmCommandOutputBudget,mO as definePmCommandOutputEnvelope,cO as definePmErrorCodeCatalog,$I as definePreflightOverride,NI as defineProjectProfile,HI as defineRendererOverride,LI as defineSearchProvider,UI as defineServiceOverride,DI as defineVectorStoreAdapter,Qe as defineWorkspaceRecipe,R_ as deleteItem,Bp as deleteWorkspaceSnapshot,ch as dependencyToRelationship,Fu as deps,ZA as deriveAssuranceProposals,YO as deriveExtensionCapabilities,lS as derivePmBulkMutationEffect,Yx as derivePmRecoveryReferenceObligations,za as deriveSchemaEvolutionMigrationId,nC as deriveTelemetryCommandResolution,Ty as describeAllowedTransitions,pE as describeExtensionActivation,qO as describeExtensionBlueprint,Qd as describeItemOwnershipConflict,Ue as describeProfileComposition,je as describeProjectProfile,OO as describeUnknownError,gr as detectAgentIdentity,Ar as detectHarnessIdentity,ra as detectRelationshipCommunities,Tr as diagnoseAgentIdentity,_a as diffRelationshipAuditSnapshots,wl as diffTestRunMeasurements,fh as discoverExtensions,vt as discoverNearbyPmRoot,Mm as discoverProjectRuntimeVersionPins,Du as docs,Nu as duplicates,ha as durableGraphCachePath,Aa as durableGraphCacheStatus,Yt as effectiveItemFormatVersion,CC as emitTelemetryErrorEvent,du as emptyImportedDocument,Gg as encodeQueryCursor,nT as encodeReadOutputContinuationCursor,QT as enforceHistoryStreamPolicyForItem,ey as enforceHistoryStreamPolicyForItems,sO as enrichCliFlagInvocationContract,We as enrichCliFlagInvocationContracts,DC as ensureMaterializedHistoryTarget,ks as ensurePmGitignore,ad as ensureScope,rC as ensureSentryInit,au as ensureTrackerInitialized,ea as enumerateRelationshipPaths,sn as estimatePmOutputTokens,UA as evaluateAssuranceAssertion,jA as evaluateAssuranceGate,ax as evaluateBoundaryFixtures,Ab as evaluateContextRanking,DE as evaluateDefectGateEvidence,$A as evaluateMeasurement,Mn as evaluateMutationGuard,El as evaluateProvenanceCoverage,yl as evaluateSemanticAttributionCoverage,Hc as evaluateSimilarityGovernance,gy as evaluateTransition,Hy as executeEmbeddingBatchesWithRetry,Wy as executeVectorDelete,Ky as executeVectorReset,Vy as executeVectorUpsert,Tm as executeWorkspaceRecipe,fd as expandAddGlobEntries,Od as explainSourceTraceability,v_ as extension,M_ as extensionActivate,L_ as extensionDeactivate,P_ as extensionList,Cf as extensionMigrate,vC as extractPatchFailureContext,Nd as extractReferencedPmItemIdsFromCommand,$m as federateRelationshipGraphSnapshots,Pu as files,Mu as filesDiscover,Lu as filesLookup,Em as findCoverageDeficits,Bc as findDuplicateClusters,Fa as findGitWorkspaceRoot,Xa as findInstalledNpmPackageCandidate,na as findRedundantRelationshipEdges,sa as findRelationshipCutStructure,jc as findSimilarItems,yC as finishTelemetryCommand,jf as flattenFlagListValue,ym as flushTelemetryQueue,I_ as focus,ta as forEachMatchedRelationshipEdge,pa as formatDuplicateEdgeGroup,Fs as formatHierarchyRelation,ca as formatOrderingStorageContradiction,OC as formatPmPositionalActionFlagTip,tl as formatProfileApplyHuman,el as formatProfileLintHuman,Zp as formatProfileListHuman,Qp as formatProfileShowHuman,Ka as formatSchemaEvolutionMigrationHuman,DS as formatVectorIndexRecoveryWarnings,u_ as gc,Sn as generateItemId,Ou as get,wh as getActiveCommandResult,xT as getActiveContextIntentContracts,jt as getActiveExtensionRegistrations,HA as getAssuranceDeclaration,Y_ as getContracts,yg as getFocusedItem,Lt as getHistoryPath,UC as getItemAt,Mt as getItemPath,Fn as getMutationActionContract,ws as getPmGitignoreBlock,Pt as getSettingsPath,X_ as getWorkspaceContracts,mn as getWorkspaceHistoryPath,Gu as graph,ga as graphAuditBaselinePath,Cl as groupHistoryByEpisode,jI as handleServiceOverride,ee as hasSubcommandFlagContractsForCommand,qy as hasVectorizationEmbeddingIdentityChanged,Jy as hasVectorizationVectorDimensionChanged,BT as hashDocument,HT as hashDocumentForVersion,zT as hashEmptyDocument,l_ as health,qs as hierarchyAncestors,Js as hierarchyDescendants,h_ as historyCompact,g_ as historyCompactBulk,EA as historyEntryMatchesProvenance,__ as historyRedact,m_ as historyRepair,f_ as historyRepairAll,VE as indexBlockedByIds,Gs as indexHierarchyRelations,Zy as inferConsistentVectorDimension,en as inferPmOutputBudgetClass,Uu as init,sA as inspectCompleteListResult,Na as inspectHistoryAuthorStream,Dm as inspectProjectRuntimeCompatibility,zn as inspectStaleInProgressItems,fn as inspectWorkspaceHistoryState,Fp as inspectWorkspaceSnapshot,Ha as installMergeFence,Ic as isAlreadyClaimedError,IO as isCommanderError,Xd as isErrnoError,nE as isExternalDependencySourceKind,Kf as isHostOutputSuppressed,Ln as isMutationAction,ah as isOrderingRelationshipKind,ny as isPlaceholderReferenceToken,Os as isPmCliExpectedError,Vr as isPmExtensionCapabilityContract,Kr as isPmExtensionPolicyModeContract,Xr as isPmExtensionPolicySurfaceContract,Wr as isPmExtensionServiceNameContract,dS as isPmKnownExitCode,gO as isPmMutationReceipt,aS as isPmSuccessfulExitCode,zr as isPmToolAction,Lm as isProjectMutatingInvocation,uC as isPureSnakeCaseAlias,ST as isReadOutputBudgetExceeded,vg as isReadRowContract,Ia as isRuntimeRecord,fC as isTerminalPlanMode,hg as isTerminalStatus,Et as isTimestampLiteral,$O as itemDocumentToMutationOptions,yS as itemHasSchedule,Gn as jaccardSimilarity,vu as learnings,Bf as levenshteinDistanceWithinLimit,Vd as limitAnnotationEntries,Md as linkedTestTrustFingerprint,JO as lintExtensionBlueprint,ze as lintProjectProfile,Eu as list,ur as listAgentProvenanceAdapters,sm as listAliasPluralKeys,bu as listAllComplete,vy as listAllDocumentCandidatesCached,kn as listAllItemMetadata,Py as listAllItemMetadataLight,BA as listAssuranceDeclarations,XA as listAssuranceVerdicts,_m as listBuiltinCorpusShapes,vO as listCoreClosedDomainContracts,ib as listGetProjectionFields,CE as listInvalidProvenanceHistoryStreamIds,nb as listListProjectionFields,bE as listMergeReceipts,Dn as listMutationActions,XS as listMutationEvents,ht as listPmCommandFlagBudgets,al as listPmCommandsForFamily,sl as listPmCommandsForTier,W as listPmFlagLexicon,SI as listPmFlagSpellingInventory,cl as listPmMcpToolsForProfile,mI as listPmRequiredArgumentRefusalContracts,fI as listPmSubcommandRefusalContracts,$e as listProfiles,TI as listTrackerPreflightRecoveryContracts,Gp as listWorkspaceSnapshots,_A as loadContextIntentRuntimeLayers,zp as loadCreateTemplateOptions,hh as loadExtensions,ba as loadGraphAuditBaseline,Gf as loadMutationCheckpoint,h as loadRelationshipGraphAdapter,Nn as locateItem,Jh as looksLikeGenericKeyValueEntry,Zg as mapReadOutputRows,SE as markMergeReceiptReconciled,fy as matchesRuntimeFilters,gC as maybeRunFirstUseTelemetryPrompt,hm as measureCorpusShapePlan,Xh as mergeAdditiveTags,XO as mergeExtensionBlueprints,GS as mergeHistoryStreams,BS as mergeItemDocuments,HS as mergeJsonDocuments,dm as mergeLinkedTestTwoTokenEntries,$S as mergeRelationshipEventStreams,bc as mergeSortedWarnings,mC as migrateItemFilesToFormat,Fy as mutateItem,Dy as mutateItemWithHistoryContext,Tn as mutateWorkspaceJsonWithHistory,Ru as next,mr as normalizeAgentProvenanceAdapterValue,zd as normalizeAnnotationTransportOptions,NA as normalizeAssuranceEvaluation,IA as normalizeAssuranceMutation,cm as normalizeBootstrapInvocation,dg as normalizeBulkIdsValue,Us as normalizeDependencyGraphTarget,iE as normalizeDependencySeedId,oE as normalizeDependencySourceKind,Dt as normalizeExtensionContributionInventory,yE as normalizeInvalidHistoryProvenance,AO as normalizeItemAddressInvocation,qt as normalizeItemFormatVersion,bn as normalizeItemId,er as normalizeItemMetadata,im as normalizeLegacyExtensionActionSyntax,md as normalizeLinkedPath,ry as normalizeParentReferenceValue,Fe as normalizeProfileName,En as normalizeRawItemId,CT as normalizeReadOutputIncludeModeOptions,XT as normalizeReplayPatchOps,$n as normalizeSimilarityText,fg as normalizeStatusForRegistry,Qt as normalizeStatusInput,lg as normalizeStatusInputWithRegistry,xO as normalizeThrownExitCode,ku as notes,At as nowIso,Ta as openDurableGraphCache,Zs as orderingPredecessors,Qs as orderingSuccessors,Rb as packContextCandidates,Tc as packRankedContextItems,V_ as packageActivate,z_ as packageCatalog,W_ as packageDeactivate,B_ as packageDescribe,U_ as packageDoctor,G_ as packageInstall,D_ as packageLifecycle,F_ as packageList,j_ as packageManage,Af as packageMigrate,H_ as packageReload,$_ as packageUninstall,Hg as paginateQueryRows,dd as parseAddEntries,cd as parseAddGlobEntries,Kd as parseAnnotationTextInput,DO as parseAtomicMutationControls,nm as parseBootstrapCommandName,em as parseBootstrapGlobalOptions,rm as parseBootstrapHelpRequest,pm as parseBootstrapTypeValue,ag as parseBulkIdsText,mc as parseContextDepth,pc as parseContextFocusFields,pA as parseContextIntentDeclarations,fc as parseContextSections,Lb as parseContextSignalSnapshot,qh as parseCsvKv,GE as parseDefectChangeRiskRequest,FE as parseDefectRecurrencePolicy,xp as parseEvalQuerySet,Ra as parseGraphSubcommand,CA as parseHistoryProvenanceFilters,fA as parseIntegerLimit,gg as parseItemDocument,FO as parseItemMutationBatch,uy as parseLimit,rp as parseLinkedTestAssertionEqualsMap,np as parseLinkedTestAssertionGteMap,qc as parseLinkedTestBoolean,Jc as parseLinkedTestContextMode,Yc as parseLinkedTestEnvClear,Xc as parseLinkedTestEnvSet,op as parseLinkedTestJsonEntries,tp as parseLinkedTestMinLines,ep as parseLinkedTestRegexList,Qc as parseLinkedTestStringList,Zc as parseLinkedTestWorkspaceContextMode,ld as parseMigrateEntries,qE as parseMultiValueFilter,TO as parseMutationReceipt,sg as parseOptionalNonNegativeInteger,ig as parseOptionalNumber,hA as parsePriority,QE as parsePriorityFilterSet,aT as parseReadOutputSession,Bh as parseRegisteredItemFieldAssignments,M as parseRelationshipGraphSnapshot,pd as parseRemoveEntries,Sd as parseSourceLineRange,dy as parseStatusFilterCsv,JE as parseStringFilterSet,zt as parseTags,Il as parseTestRunMeasurements,gA as parseType,ZE as parseTypeFilterSet,Pa as parseUnknownAuthorHistoryEventCoordinates,Jb as partitionDecisionEntries,JT as patchPathToChangedField,gt as pathExists,w_ as pauseTask,ya as persistDurableGraphResult,yy as persistSelectedItemFormat,SS as planAgentIdentityVocabularyMutation,jb as planCompletedAtBackfill,Ve as planProfileApplication,Vx as planRelationshipEventBackfill,Oa as planRelationshipRemediation,Va as planSchemaEvolutionMigration,ka as planUnknownAuthorHistoryAcknowledgment,$p as planWorkspaceSnapshotRestore,IC as positionalShapeKey,NC as positionalSignatureKey,tR as preflightExtension,jn as prepareSimilarityText,eg as preserveMutationStdinTokenFields,Qh as preserveMutationStdinTokenLiterals,$T as printError,GT as printResult,i_ as profile,d_ as profileApply,c_ as profileLint,s_ as profileList,a_ as profileShow,vh as projectAfterCommandItemSnapshot,lc as projectContextFocusRows,Rl as projectFleetAttributionAnalytics,AA as projectHistoryProvenance,dn as projectPmDiagnosticOutput,cn as projectPmDiagnosticText,Sl as projectProvenanceCoverageAnalytics,Gd as projectValidateCounts,eE as promoteAssuranceAssertion,_x as pruneCompileCacheGenerations,zA as putAssuranceDeclaration,VA as putAssuranceDeclarationBundle,Oy as queryItemMetadataIndex,Ry as queryLinkedFileMetadataIndex,xy as querySimilarItemMetadataIndex,Nl as queryTestRunMeasurementsBelow,Sr as quoteCommandArg,br as quoteWindowsCommandArg,kO as rankCommandPaths,Wd as readAnnotationEntries,yr as readAuthorEnvironment,Bl as readBooleanOption,kb as readContextUsageAffinity,Hl as readCsvListOption,Qa as readExtensionMigrationState,Tt as readFileIfExists,ro as readFirstStringFromCommanderOptions,no as readFirstValueFromCommanderOptions,Al as readHistoryAnalyticsWindow,Sg as readHistoryEntries,ml as readImprovementLedger,wy as readItemMetadataDerivedIndexState,wn as readLocatedItem,qg as readOutputBudgetCollections,rT as readOutputCollectionFingerprint,Yg as readOutputContinuationRowCollections,Kg as readOutputContinuationRowPaths,TT as readOutputIncludeModeOptions,Xg as readOutputRowCollections,Wg as readOutputRowPaths,pT as readOutputSessionRemainingTokens,we as readPmPackageManifest,q_ as readRequiredString,On as readSettings,Cy as readSettingsWithMetadata,oo as readStringArrayFromCommanderOptions,jl as readStringOption,RO as readThrownExitCode,Qy as readVectorizationStatusLedger,lA as readWorkspaceContextIntentContracts,$b as readWorkspaceContextSignals,zb as readWorkspaceMemory,Ut as reconcileExtensionCapabilityUsage,Cn as reconcileWorkspaceJsonHistory,kh as recordAfterCommandAffectedItem,KA as recordAssuranceVerdict,ic as recordClaimSemanticAttribution,Ib as recordContextUsageServing,Nb as recordContextUsageTouch,wb as recordContextUsageTouches,ac as recordFocusSemanticAttribution,_l as recordImprovementObservation,sc as recordReleaseSemanticAttribution,ky as refreshItemMetadataDerivedIndex,ja as refreshMergeAttributeFenceIfInstalled,tC as refreshSearchArtifactsForMutation,_r as registerAgentProvenanceAdapters,lr as registerHarnessSignalDescriptors,Og as registerOutputMaterialFieldGroups,S_ as release,WA as removeAssuranceDeclaration,Ct as removeFileIfExists,Ed as renameArtifactsResultKey,tc as renderCalendarMarkdown,rc as renderCalendarToon,Sc as renderContextMarkdown,Ja as renderExtensionDescribeMarkdown,Ya as renderExtensionSurfaceMarkdown,uu as renderGuideMarkdown,SO as renderMissingOptionRetry,Zb as renderNextMarkdown,PO as renderPmClosedDomainHelp,Or as renderPmCommand,Nr as renderPmCommandAliasMigrationHint,ul as renderPmCommandVisibilityMarkdown,RI as renderPmFlagLexiconMarkdown,nI as renderPmRefusalClosureCensusMarkdown,py as renderRowsAsCsv,ly as renderRowsAsTable,C_ as reopen,LC as replayHistoryToTarget,WT as replayToCanonicalItemDocument,VT as replayToItemDocument,tS as requireTerminalReason,rS as requireTerminalReasonWithRecovery,xh as resetActiveExtensionRuntimeState,Xs as resetWorkspaceGraphCache,ir as resolveAgentSessionContextFromSignals,Zd as resolveAnnotationIndex,Yd as resolveAnnotationInput,bg as resolveAuthor,Er as resolveAuthorIdentity,ty as resolveBodyFileContent,mm as resolveBuiltinCorpusShape,ec as resolveCalendarOutputFormat,pO as resolveCanonicalPmErrorCodeContract,sh as resolveCanonicalRelationshipKind,Eg as resolveClaimPrincipal,cg as resolveCliBulkIdsInput,rh as resolveCommandOptionPolicyState,ux as resolveCompileCacheGeneration,Ub as resolveCompletionTimestamp,qf as resolveConfiguredPmPackageRoot,ab as resolveContentFieldFilters,wT as resolveContextIntentContract,uc as resolveContextOutputFormat,_c as resolveContextTokenBudget,mS as resolveCreateExplicitEmptyFlag,Gy as resolveEmbeddingProviders,nd as resolveExtensionInstallSourceIdentity,Za as resolveExtensionMigrationStatePath,mh as resolveExtensionRoots,Uf as resolveFlagValueKind,pu as resolveGuideOutputFormat,fl as resolveHistoryEpisodeGroupIdentity,yA as resolveHistoryProvenanceDimensions,FC as resolveHistorySubject,PC as resolveHistoryTarget,kS as resolveHybridSemanticWeight,kt as resolveImplicitPmRoot,Lf as resolveIsoOrRelative,KE as resolveItemBlockers,GO as resolveItemMutationDocument,wt as resolveItemTypeRegistry,pg as resolveItemTypesFilePath,Fl as resolveLinkedTestFailureExitCode,wd as resolveLinkedTestSourceRef,kd as resolveLinkedTestSourceWorkspaceRoot,Ld as resolveLinkedTestTrust,Dd as resolveLinkedTestTrustBatch,Da as resolveMergeInstallContext,sb as resolveMissingMetadataFilters,bO as resolveMissingOptionPlaceholder,kg as resolveModePairedOutputOmissionReceipt,Yb as resolveNextOutputFormat,Mg as resolveOutputOmissionReceipt,Yf as resolvePmCliVersion,Ir as resolvePmCommandAlias,nl as resolvePmCommandCapabilityFamily,cS as resolvePmCommandExitContract,on as resolvePmCommandOutputBudget,hO as resolvePmCommandOutputEnvelope,bC as resolvePmCommandPositionalContract,il as resolvePmCommandVisibilityTier,an as resolvePmDiagnosticOutputBudget,lO as resolvePmErrorCodeContract,hf as resolvePmFlagSemanticConcept,Xf as resolvePmPackageRootFromModule,SC as resolvePmPositionalActionContract,ps as resolvePmPositionalActionFlagContracts,X as resolvePmRoot,_s as resolvePmToolCustomFieldCollision,sy as resolvePriority,Ge as resolveProfile,$a as resolveProjectMergeTypeFolders,Bg as resolveQueryCursorStart,AT as resolveReadOutputDimensions,OT as resolveReadOutputEncoding,eT as resolveReadOutputRecoveryBudget,hT as resolveReadOutputSurface,Pg as resolveReadRowContract,EO as resolveRecoveryCommandName,zh as resolveRegisteredSearchProvider,Vh as resolveRegisteredVectorStoreAdapter,Kn as resolveReproducibleProcessEnvironment,Wt as resolveRuntimeFieldRegistry,Vt as resolveRuntimeStatusRegistry,$y as resolveSearchCorpusFields,NS as resolveSearchMaxResults,IS as resolveSearchPage,wS as resolveSearchScoreThreshold,vS as resolveSearchTuning,jy as resolveSemanticCorpusCharacterLimit,oc as resolveSemanticLineageIds,Ey as resolveSettingsWithSemanticRuntimeDefaults,_E as resolveSourceContextWritePolicy,rl as resolveStartTaskInProgressStatus,k as resolveSubcommandFlagContractsForCommand,Nf as resolveTelemetryErrorCategory,eS as resolveTerminalReason,th as resolveTypeDefinition,eh as resolveTypeName,cy as resolveTypeSynonym,hy as resolveTypeWorkflows,va as resolveUnknownAuthorAcknowledgmentSelector,LS as resolveVectorIndexRecovery,zy as resolveVectorStores,Ms as resolveWorkspaceRelationshipKindRegistry,x_ as restore,$f as restoreCheckpointItems,An as restoreWorkspaceJsonFromHistory,jp as restoreWorkspaceSnapshot,Up as restoreWorkspaceSnapshotWithRecovery,Z_ as runAction,Lh as runActiveBeforeMutationHooks,Fh as runActiveCommandHandler,Dh as runActiveOnIndexHooks,Ht as runActiveOnReadHooks,Bt as runActiveOnWriteHooks,Gh as runActiveParserOverride,$h as runActivePreflightOverride,Uh as runActiveServiceOverride,Ps as runActivity,_h as runAfterCommandHooks,Bd as runAggregate,Jd as runAnnotationCommand,Hd as runAppend,jE as runAssuranceAction,BE as runAssuranceDispatch,uh as runBeforeCommandHooks,nc as runCalendar,Nc as runClaim,wc as runClaimNext,Pc as runClose,Lc as runCloseMany,Dc as runComments,_u as runCompletion,hp as runConfig,Pe as runContext,Sb as runContextEvaluationCorpus,Eb as runContextEvaluationScenario,lp as runCopy,ip as runCreate,up as runDelete,Ys as runDeps,bd as runDocs,yO as runDuplicates,wp as runEval,vp as runEvent,od as runExtension,rd as runExtensionMigrateAction,td as runExtensionMigrations,Rd as runFiles,Id as runFilesDiscover,xd as runFilesLookup,Ol as runFleetAttributionAnalytics,_p as runFocus,fp as runGc,mp as runGet,xa as runGraph,lu as runGuide,id as runHealth,uS as runHistory,tO as runHistoryCompact,oO as runHistoryCompactBulk,GC as runHistoryRedact,xE as runHistoryRepair,NE as runHistoryRepairAll,bp as runInit,Cp as runInitAgentGuidance,Fc as runLearnings,Ad as runLinkedArtifacts,Gl as runLinkedTests,jd as runList,kp as runMeet,VS as runMergeDriver,Ba as runMergeInstall,OE as runMergeReceiptReport,WS as runMergeReconcile,xc as runNext,Gc as runNotes,pp as runPlan,Jp as runProfileApply,qp as runProfileLint,Xp as runProfileList,Yp as runProfileShow,bl as runProvenanceCoverageAnalytics,oR as runRegisteredCommandForTest,cR as runRegisteredCommandOverrideForTest,hR as runRegisteredExporterForTest,sR as runRegisteredHookForTest,fR as runRegisteredImporterForTest,mR as runRegisteredMigrationForTest,iR as runRegisteredMutationGuardForTest,aR as runRegisteredParserOverrideForTest,dR as runRegisteredPreflightOverrideForTest,pR as runRegisteredRendererOverrideForTest,uR as runRegisteredSearchProviderForTest,lR as runRegisteredServiceOverrideForTest,_R as runRegisteredVectorStoreAdapterForTest,Ke as runReindex,kc as runRelease,Pp as runRemind,iO as runReopen,Mc as runRestore,Wa as runSchemaEvolutionMigration,Ip as runSearch,gm as runSearchRefreshWorkerEntrypoint,mu as runStartBackgroundRun,kl as runStats,Pl as runTelemetry,Wp as runTemplatesList,Vp as runTemplatesSave,Kp as runTemplatesShow,$l as runTest,Ul as runTestAll,fu as runTestRunsList,gu as runTestRunsLogs,yu as runTestRunsResume,hu as runTestRunsStatus,Tu as runTestRunsStop,Cu as runTestRunsWorker,sp as runUpdate,ap as runUpdateMany,Me as runUpgrade,Ud as runValidate,J_ as runWithActiveExtensions,sr as runWithAgentSessionContext,IT as runWithContextIntentContracts,mA as runWithDiscoveredContextIntentContracts,fr as runWithHarnessDetectionSignals,Yn as runWithReproducibleProcessEnvironment,hr as runWithWorkspaceHarnessSignalDescriptors,et as runWithWorkspaceRecipe,ES as runWorkspaceTransactionGc,Sa as saveGraphAuditBaseline,aE as scanExtensionHostVersions,wa as scanHistoryAuthorAttribution,Zt as scanItemFormatVersions,Pn as scanMutationSecrets,AE as scanProvenanceResolverHealth,Vn as scanStaleInProgressItems,wE as scanStorageIntegrity,Bu as schema,Yu as schemaAddField,Ku as schemaAddStatus,Vu as schemaAddType,Qu as schemaApplyPreset,e_ as schemaInferTypes,Hu as schemaList,Ju as schemaListFields,n_ as schemaRemapStatus,qu as schemaRemoveField,Xu as schemaRemoveStatus,Wu as schemaRemoveType,r_ as schemaRenameField,t_ as schemaRenameType,zu as schemaShow,Zu as schemaShowField,o_ as schemaShowStatus,wO as scoreCommandPathMatch,Tb as scoreContextCandidates,yb as scoreContextCandidatesWithActiveExtensions,Bn as scoreItemSimilarity,hI as scorePmGrammarRefusalClosure,sI as scorePmRefusalClosure,Hn as scorePreparedItemSimilarity,yI as scoreTrackerPreflightRecoveryClosure,Su as search,Kb as searchWorkspaceMemory,Xb as searchWorkspaceMemoryReadResult,Dg as selectCursorSemanticOptions,su as selectImportAuthor,Wb as selectWorkspaceMemory,Vb as selectWorkspaceMemoryRollups,cc as semanticAttributionAffinity,aC as sentryCaptureCliError,sC as sentryFinishCommandSpan,cC as sentryFlush,dC as sentryLogCliUsageError,oC as sentrySetCommandContext,iC as sentryStartCommandSpan,rr as serializeItemDocument,MO as serializeNdjsonRows,LO as serializeNdjsonStream,Ih as setActiveCommandContext,Nh as setActiveCommandResult,Ah as setActiveExtensionCommands,Ch as setActiveExtensionHooks,Eh as setActiveExtensionParsers,bh as setActiveExtensionPreflight,Rh as setActiveExtensionRegistrations,Oh as setActiveExtensionRenderers,Sh as setActiveExtensionServices,Cg as setFocusedItem,hC as shouldCompletePlanOnClose,Ea as shouldPersistDurableGraphCache,ng as shouldResolveMutationStdinTokenField,rg as shouldResolveMutationStdinTokens,Sy as shouldRunSearchRefreshInForeground,Uc as similarityAdvisoryWarnings,Vg as sliceReadOutputRowCollection,Td as sortLinkedArtifacts,Wh as splitAcceptanceCriteria,_C as splitCommaList,tr as splitFrontMatter,ET as stabilizeReadOutputReceiptEstimates,F as stableStringify,lh as stableValueEquals,N_ as startTask,TC as startTelemetryCommand,Iu as stats,ug as statusIsTerminal,tm as stripGlobalBootstrapTokens,YS as subscribeMutationEventBatches,qS as subscribeMutationEvents,bS as summarizeAgentIdentityVocabulary,gl as summarizeAgentModelProvenance,Tl as summarizeAgentProvenance,bb as summarizeContextEvaluationReports,Ml as summarizeContextPreflight,SA as summarizeHistoryProvenance,Ap as summarizeInitResult,EE as summarizeMergeReceipt,fS as supportsCreateExplicitEmpty,CO as supportsItemIdAlias,Wf as suppressHostOutput,z as syncRelationshipGraphAdapter,ZO as synthesizeExtensionManifest,ls as toCompletionFlagString,Ec as toContextFocusItem,yc as toContextPackingSummary,Cc as toContextRankingSummary,kf as toErrorMessage,Vl as toEstimatedMinutesValue,eA as toExtensionFlagDefinitions,ql as toImportBoolean,eu as toImportConfidence,Yl as toImportInteger,ou as toImportLinkedDocs,nu as toImportLinkedFiles,iu as toImportLinkedTests,ru as toImportLogEntries,tu as toImportNormalizedEnum,Ql as toImportNumberMap,Wl as toImportPriority,Xl as toImportStatus,Jl as toImportStringList,Zl as toImportStringMap,Kl as toImportTags,Tg as toItemRecord,zl as toNonEmptyImportString,wf as toNonEmptyStringOrUndefined,KT as toReplayDocument,Un as tokenizeSimilarityText,tg as transferMutationStdinTokenPolicy,QS as translateHostEnvironmentFault,y_ as update,K_ as upgrade,p_ as validate,LA as validateAssertionDefinition,FA as validateAssuranceDocument,DA as validateGateDefinition,UO as validateItemMutationRows,Cd as validateLinkedPaths,MA as validateMeasurementDefinition,oy as validateMissingParentReference,gT as validateReadOutputOptions,ay as validateSprintOrReleaseValue,nh as validateTypeOptions,aO as verifyCliFlagInvocationParity,xC as verifyExplicitPositionalSlotCensus,qT as verifyHistoryChain,YT as verifyHistoryChainWithVersion,$C as verifyHistoryEntries,kC as verifyPmCliGrammar,wC as verifyPmCommandPositionalContracts,OI as verifyPmFlagLexicon,Zx as verifyPmRecoveryKindRuntimeCoverage,af as verifyPmRecoveryProducerRuntimeCoverage,Jx as verifyPmRecoveryReferences,tI as verifyPmRefusalClosureIdentityRatchet,eI as verifyPmRefusalClosureRatchet,qx as verifyPmRefusalReachability,uo as verifyToolOptionCliParity,wo as withFlagAliasMetadata,eO as withHostEnvironmentBoundary,Ks as workspaceGraphCache,qd as wrapOwnershipConflict,NO as wrapThrownErrorForSentry,Cr as writeAuthorEnvironment,yt as writeFileAtomic,Ff as writeMutationCheckpoint,Ay as writeSettings,FT as writeStdout,eC as writeVectorizationStatusLedger,yn as writeWorkspaceJsonWithHistory};
|
|
1
|
+
import{A as l_,B as f_,C as GR,D as $R,a as Ko,b as Wo,c as Xo,d as Yo,e as OR,f as IR,g as t_,h as r_,i as n_,k as o_,l as i_,m as s_,n as a_,o as c_,p as d_,q as p_,r as u_,s as PR,t as MR,u as kR,v as NR,w as vR,x as LR,y as DR,z as FR}from"./chunks/chunk-ICQ3RVIY.js";import{A as wO,B as xO,C as RO,D as OO,E as IO,F as PO,G as MO,H as kO,I as NO,J as vO,K as LO,L as DO,M as FO,N as GO,O as $O,P as UO,Q as jO,R as BO,S as qO,T as zO,U as HO,V as VO,W as KO,X as WO,Y as XO,a as QR,b as eO,c as tO,d as rO,e as nO,f as oO,g as iO,h as sO,i as aO,j as cO,k as dO,l as pO,m as uO,n as lO,o as fO,p as mO,q as _O,r as hO,s as gO,t as yO,u as TO,v as CO,w as bO,x as AO,y as EO,z as SO}from"./chunks/chunk-WRHJ3MB6.js";import{a as UR,b as jR,c as BR,d as qR}from"./chunks/chunk-FRDWWB6R.js";import{a as zR,b as HR,c as VR,d as KR,e as WR,f as XR,g as YR,h as JR,i as ZR}from"./chunks/chunk-UKBCRPA2.js";import{$ as ft,$a as At,$b as Cm,A as AE,Aa as jl,Ab as Kf,Ac as Km,B as qd,Ba as Bl,Bb as Wf,Bc as Wm,C as vp,Ca as ql,Cb as Xf,Cc as Xm,D as Lp,Da as zl,Db as Yf,Dc as Ym,E as Dp,Ea as Hl,Eb as Jf,Ec as Jm,F as Fp,Fa as Vl,Fb as Zf,Fc as Zm,G as Gp,Ga as Kl,Gb as Qf,Gc as Qm,H as au,Ha as Wl,Hb as em,Hc as e_,I as Ee,Ia as Xl,Ib as tm,J as cu,Ja as Yl,Jb as rm,K as du,Ka as Jl,Kb as nm,L as pu,La as Zl,Lb as om,M as uu,Ma as Ql,Mb as im,N as lu,Na as ef,Nb as sm,O as fu,Oa as tf,Ob as am,P as Vx,Pa as rf,Pb as cm,Q as Kx,Qa as nf,Qb as dm,R as Wx,Ra as of,Rb as pm,S as Xx,Sa as sf,Sb as um,T as Yx,Ta as af,Tb as lm,U as Jx,Ua as cf,Ub as fm,V as Zx,Va as df,Vb as mm,W as Qx,Wa as pf,Wb as _m,X as eR,Xa as uf,Xb as hm,Y as pt,Ya as lf,Yb as gm,Z as ut,Za as ff,Zb as ym,_ as lt,_a as mf,_b as Tm,a as Ea,aa as mt,ab as X,ac as bm,b as Sa,ba as _t,bb as Af,bc as Am,c as wa,ca as ht,cb as Ef,cc as Em,d as XA,da as gt,db as Sf,dc as Sm,e as YA,ea as yt,eb as wf,ec as wm,f as Ra,fa as Tt,fb as xf,fc as xm,g as nE,ga as Ct,gb as Rf,gc as Rm,h as oE,ha as qu,hb as Of,hc as Om,i as iE,ia as zu,ib as If,ic as Im,j as sE,ja as Hu,jb as Pf,jc as Pm,k as aE,ka as Vu,kb as Mf,kc as Mm,l as cE,la as Ku,lb as kf,lc as km,m as dE,ma as Se,mb as Nf,mc as Nm,n as pE,na as Wu,nb as vf,nc as vm,o as uE,oa as Xu,ob as Lf,oc as Lm,p as lE,pa as Yu,pb as Df,pc as Dm,q as fE,qa as Ju,qb as Ff,qc as Fm,r as mE,ra as Zu,rb as Gf,rc as Gm,s as _E,sa as Qu,sb as $f,sc as $m,t as hE,ta as el,tb as Uf,tc as Um,u as ka,ua as tl,ub as jf,uc as jm,v as gE,va as dR,vb as Bf,vc as Bm,w as yE,wa as pR,wb as qf,wc as qm,x as TE,xa as uR,xb as zf,xc as zm,y as CE,ya as lR,yb as Hf,yc as Hm,z as bE,za as fR,zb as Vf,zc as Vm}from"./chunks/chunk-KBFP3E4E.js";import{a as dt,f as Mx,g as kx,h as hu,i as gu}from"./chunks/chunk-MVYLQ67M.js";import{A as zx,B as Hx,C as Ou,D as Iu,E as Pu,b as Bd,c as bw,d as Cx,e as Sx,f as wx,g as xx,h as Rx,i as Ox,j as mu,k as Ix,l as Su,m as wu,n as xu,o as Ru,p as Nx,q as vx,r as Lx,s as Dx,t as Fx,u as Gx,v as $x,w as Ux,x as jx,y as Bx,z as qx}from"./chunks/chunk-S4U76VZF.js";import{$ as hS,$a as Ld,$b as qp,$c as cl,A as iS,Aa as cd,Ab as Zd,Ac as ku,Ad as El,B as sS,Ba as dd,Bb as Qd,Bc as Nu,Bd as Sl,C as aS,Ca as pd,Cb as Op,Cc as sR,Cd as wl,D as cS,Da as ud,Db as Ip,Dc as aR,Dd as xl,E as _S,Ea as ld,Eb as Pp,Ec as cR,Ed as Rl,Fa as fd,Fb as Mp,Fc as vu,Fd as Ol,Ga as md,Gb as ax,Gc as Lu,Gd as Il,Ha as _d,Hb as cx,Hc as Du,Hd as Pl,Ia as hd,Ib as dx,Ic as Fu,Id as Ml,J as Oc,Ja as gd,Jb as px,Jc as Gu,Jd as RR,Ka as yd,Kb as ux,Kc as $u,Kd as kl,La as Td,Lb as kp,Lc as Uu,Ld as Nl,Ma as Cd,Mb as Np,Mc as ju,Md as vl,Na as bd,Nb as lx,Nc as Bu,Nd as Ll,Oa as Ad,Ob as fx,Oc as rl,Od as Dl,Pa as Ed,Pb as mx,Pc as mR,Pd as Fl,Qa as Sd,Qb as _x,Qc as bt,Qd as Gl,Ra as wd,Rb as hx,Rc as _R,Rd as $l,Sa as xd,Sb as gx,Sc as nl,Sd as Ul,Ta as Rd,Tb as yx,Tc as we,Td as _f,Ua as Od,Ub as Tx,Uc as ol,Ud as hf,Va as Id,Vd as gf,Wa as Pd,Wb as $p,Wd as yf,Xa as Md,Xb as Up,Xc as il,Xd as Tf,Ya as kd,Yb as bx,Yc as sl,Yd as Cf,Za as Nd,Zb as jp,Zc as al,Zd as bf,_a as vd,_b as Bp,a as NE,aa as gS,ab as Dd,ac as zp,ad as dl,b as vE,ba as Ic,bb as Fd,bc as Hp,bd as pl,c as LE,ca as Pc,cb as Gd,cc as Vp,cd as ul,d as DE,da as Mc,db as $d,dc as Kp,dd as ll,e as FE,ea as kc,eb as Ud,ec as Wp,ed as hR,f as GE,fa as Nc,fb as $S,fc as Xp,fd as gR,g as $E,ga as vc,gb as US,gc as Yp,gd as yR,h as UE,ha as Lc,hb as jS,hc as Jp,hd as TR,i as jE,ia as RS,ib as BS,ic as Zp,id as CR,j as BE,ja as OS,jb as qS,jc as Qp,jd as bR,k as qE,ka as IS,kb as zS,kc as eu,kd as AR,l as zE,la as PS,lb as HS,lc as tu,ld as ER,m as HE,mb as VS,mc as ru,md as SR,n as VE,nb as KS,nc as nu,nd as wR,o as KE,oa as MS,ob as WS,oc as ou,od as xR,p as WE,pb as XS,pc as Ax,q as XE,qa as kS,qb as YS,qc as Ex,qd as fl,r as YE,ra as NS,rb as zd,rc as iu,rd as ml,s as JE,sa as vS,sb as Hd,sd as _l,t as ZE,ta as LS,tb as Vd,td as hl,u as QE,ua as DS,ub as Kd,ud as gl,v as eS,va as FS,vb as Wd,vc as su,vd as yl,w as tS,wa as id,wd as Tl,x as rS,xa as sd,xb as Xd,xc as Px,xd as Cl,y as nS,ya as GS,yb as Yd,yc as _u,yd as bl,z as oS,za as ad,zb as Jd,zc as Mu,zd as Al}from"./chunks/chunk-E2GCFJSU.js";import{Ba as Zc,Ca as Qc,Da as ed,Ea as td,Fa as rd,H as zc,Ha as nd,I as Hc,Ia as od,J as Vc,Ja as yu,K as Kc,Ka as Tu,L as rt,La as Cu,Ma as bu,Na as Au,Oa as Eu,a as tE,b as rE,c as Oa,d as Ia,f as Pa,g as Ma,h as yS,i as TS,j as CS,k as bS,l as AS,m as ES,n as SS,o as wS,oa as nt,p as Dc,pa as ot,q as Fc,qa as it,r as Gc,ra as st,s as $c,sa as Wc,t as Uc,u as xS,ua as Xc,v as jc,va as Yc,w as Bc,wa as Jc,x as qc}from"./chunks/chunk-ZNRLJ54C.js";import{$ as Za,$a as lw,$b as ap,Aa as wc,Ab as Nw,Ac as tR,B as Na,Ba as xc,Bb as vw,Bc as rR,C as dS,Ca as Rc,Cb as Lw,Cc as nR,D as pS,Db as Dw,Dc as oR,E as uS,Ea as JS,Eb as Fw,Ec as iR,F as lS,Fa as ZS,Fb as Gw,G as fS,Ga as QS,Gb as $w,H as va,Ha as ew,Hb as Uw,I as La,Ia as tw,Ib as jw,J as Da,Ja as rw,Jb as Bw,K as Fa,Ka as nw,Kb as qw,L as Ga,La as ow,Lb as zw,M as $a,Ma as iw,Mb as Hw,N as Ua,Na as sw,Nb as Vw,O as ja,Oa as aw,Ob as Kw,P as Ba,Pb as Ww,Q as qa,Qb as Xw,R as za,Rb as Yw,S as Ae,Sb as Jw,T as Ha,Tb as Zw,U as Va,Ub as Qw,V as Ka,Vb as ex,W as Wa,Wb as tx,X as mS,Xa as cw,Xb as rx,Y as Xa,Ya as dw,Yb as op,Z as Ya,Za as pw,Zb as ip,_ as Ja,_a as uw,_b as sp,a as UA,aa as Qa,ab as fw,ac as cp,b as jA,ba as ec,bc as dp,c as BA,ca as tc,cc as at,d as qA,da as rc,db as mw,dc as pp,e as zA,ea as nc,eb as _w,ec as up,fa as oc,fb as hw,fc as lp,ga as ic,gb as gw,gc as fp,h as HA,ha as sc,hb as yw,hc as mp,i as VA,ia as ac,ib as Tw,ic as _p,j as xa,ja as cc,jb as Cw,jc as hp,k as KA,ka as dc,kb as jd,kc as gp,l as WA,la as pc,lb as ep,lc as yp,m as JA,ma as uc,mb as tp,mc as Tp,n as ZA,na as lc,nb as rp,nc as Cp,o as QA,oa as fc,ob as np,oc as bp,p as eE,pa as mc,pb as Aw,pc as Ap,q as EE,qa as _c,qb as Ew,qc as Ep,r as SE,ra as hc,rb as Sw,rc as Sp,s as wE,sa as gc,sb as ww,sc as wp,t as xE,ta as yc,tb as xw,tc as ct,u as RE,ua as Tc,ub as Rw,uc as xp,v as OE,va as Cc,vb as Ow,vc as nx,w as IE,wa as bc,wb as Iw,wc as ox,x as PE,xa as Ac,xb as Pw,xc as ix,y as ME,ya as Ec,yb as Mw,yc as Rp,z as kE,za as Sc,zb as kw,zc as sx}from"./chunks/chunk-IV64RJVE.js";import{$ as Vg,$c as eT,$e as QT,$f as mC,$h as Rb,$i as Ze,$j as ui,$k as Ji,$l as Js,Ac as Br,Ad as Vr,Af as qn,Ag as jC,Ah as mb,Ai as zb,Aj as CA,Ak as vA,Al as Ss,Am as ba,B as vg,Bc as Ly,Bd as TT,Bf as zn,Bg as BC,Bj as bA,Bk as LA,Bl as ws,Bm as Aa,C as O,Cc as Dy,Cd as Kr,Cf as Hn,Cg as qC,Ch as _b,Ci as Hb,Cj as AA,Ck as DA,Cl as xs,Cm as tt,D as Lg,Dc as Fy,De as wn,Df as Vn,Dg as zC,Dj as EA,Dk as FA,Dl as Rs,E as fe,Ec as Gy,Ed as CT,Ee as xn,Ef as Kn,Eg as HC,Eh as hb,Ej as SA,Ek as GA,El as Os,Fc as $y,Fd as bT,Fe as Rn,Ff as Wn,Fh as gb,Fi as Vb,Fj as wA,Fk as $A,Fl as Is,G as Dg,Gc as Uy,Gd as AT,Gf as Xn,Gg as VC,Gh as yb,Gk as Pi,Gl as Ps,H as Fg,Hc as jy,Hd as Wr,He as NT,Hf as Yn,Hg as KC,Hh as Tb,Hi as Kb,Hk as Mi,Hl as Ms,Ic as By,Id as Xr,Ie as vT,If as Jn,Ih as Cb,Ik as ki,Il as ks,Ja as ny,Jc as qr,Jd as Yr,Je as LT,Jf as Zn,Jj as Qe,Jk as Ni,Jl as Ns,K as Gg,Ka as oy,Kb as hy,Kc as qy,Kd as Jr,Ke as DT,Kf as Qn,Kg as WC,Kj as xA,Kk as vi,Kl as vs,La as iy,Lb as Fr,Lc as zr,Ld as Zr,Le as FT,Lf as eo,Lg as XC,Li as Wb,Lj as RA,Lk as Li,Ll as Ls,Mb as Gr,Md as Qr,Me as GT,Mf as to,Mg as YC,Mi as Xb,Mj as OA,Mk as Di,Ml as Ds,N as $g,Nb as gy,Nc as zy,Nd as en,Ne as $T,Nf as ro,Ng as JC,Ni as Yb,Nj as Jo,Nk as Fi,Nl as Fs,O as Ve,Oa as Mr,Ob as yy,Oc as Hy,Od as ET,Oe as UT,Of as no,Og as ZC,Oi as Jb,Oj as Zo,Ok as Gi,Ol as Gs,Pa as sy,Pb as W,Pc as Vy,Pd as ST,Pe as jT,Pf as oo,Pg as lo,Pi as Zb,Pj as Qo,Pk as $i,Pl as $s,Q as Ke,Qa as ay,Qb as Ty,Qc as Ky,Qe as BT,Qf as io,Qg as fo,Qj as ei,Qk as Ui,Ql as Us,R as Ar,Ra as cy,Rc as Wy,Rd as tn,Re as qT,Rf as so,Ri as Qb,Rj as ti,Rk as ji,Rl as js,S as Er,Sa as dy,Sb as Cy,Sc as Ye,Sd as rn,Se as zT,Sf as ao,Si as eA,Sj as ri,Sk as Bi,Sl as Bs,T as We,Tc as Xy,Td as wT,Te as HT,Tf as co,Th as bb,Ti as tA,Tj as ni,Tk as qi,Tl as qs,U as Ug,Ua as kr,Ub as by,Uc as Yy,Ud as nn,Ue as VT,Uf as po,Ug as QC,Uh as Ab,Ui as rA,Uj as oi,Uk as zi,Ul as zs,Va as Nr,Vc as Jy,Vd as on,Ve as KT,Vf as uo,Vg as eb,Vh as Eb,Vi as nA,Vj as ii,Vk as Hi,Vl as Hs,W as jg,Wa as me,Wd as xT,We as WT,Wf as dC,Wg as tb,Wh as Sb,Wi as oA,Wj as si,Wk as Vi,Wl as Vs,X as Bg,Xc as Zy,Xd as sn,Xe as XT,Xf as pC,Xg as rb,Xh as wb,Xi as iA,Xj as ai,Xk as Ki,Xl as Ks,Y as qg,Yc as Qy,Yd as an,Ye as YT,Yf as uC,Yh as xb,Yi as sA,Yj as ci,Yk as Wi,Yl as Ws,Z as zg,Za as vr,Zd as cn,Ze as JT,Zf as lC,Zg as nb,Zi as aA,Zj as di,Zk as Xi,Zl as Xs,_ as Hg,_a as Lr,_c as Hr,_d as dn,_e as ZT,_f as fC,_g as ob,_i as cA,_j as pi,_k as Yi,_l as Ys,aa as Kg,ab as Dr,ad as tT,af as eC,ag as _C,ai as Ob,aj as dA,ak as li,al as Zi,am as Zs,ba as Wg,bd as rT,bf as tC,bg as hC,bi as xo,bj as pA,bk as fi,bl as Qi,bm as Qs,c as Tr,ca as Xg,cd as nT,cf as rC,cg as gC,ch as ib,ci as Ib,cj as uA,ck as mi,cl as es,cm as ea,da as Yg,dd as oT,df as nC,dg as yC,dh as sb,di as Pb,dj as lA,dk as _i,dl as ts,dm as ta,e as K,ed as iT,ee as RT,ef as oC,eg as TC,eh as ab,ei as Mb,ej as fA,ek as hi,el as rs,em as ra,f as Cr,fa as Jg,fc as Ay,fd as sT,fe as OT,ff as iC,fg as CC,fh as cb,fi as kb,fj as mA,fk as gi,fl as ns,fm as na,g as le,ga as Zg,gc as Ey,gd as aT,ge as IT,gf as sC,gg as bC,gh as ye,gi as Je,gj as _A,gk as yi,gl as os,gm as oa,h as br,ha as Qg,hc as Sy,hd as cT,he as pn,hf as aC,hg as AC,hh as mo,hi as Nb,hj as hA,hk as Ti,hl as is,hm as ia,ia as ey,id as dT,ie as un,if as cC,ig as EC,ih as _o,ii as vb,ij as gA,ik as Ci,il as ss,im as sa,j as Og,ja as ty,jc as wy,je as ln,jf as On,jg as SC,jh as ho,ji as Lb,jj as No,jk as bi,jl as as,jm as aa,k as Ig,ka as ry,kc as xy,kd as pT,ke as fn,kf as In,kg as wC,kh as go,ki as Db,kj as vo,kk as Ai,kl as cs,km as ca,l as Pg,la as Sr,ld as uT,le as mn,lf as Pn,lg as xC,lh as yo,lj as Lo,lk as Ei,ll as ds,lm as da,ma as wr,mc as Ry,me as _n,mf as Mn,mg as RC,mh as To,mi as Fb,mj as Do,mk as Si,ml as ps,mm as pa,na as xr,nc as $r,nd as lT,ne as hn,nf as kn,ng as OC,nh as Co,ni as Gb,nj as Fo,nk as wi,nl as us,od as fT,oe as gn,of as Nn,og as IC,oh as bo,oi as $b,oj as Go,ok as xi,ol as ls,om as be,pc as Ur,pd as mT,pe as yn,pf as vn,pg as PC,ph as Ao,pi as Ub,pk as Ri,pl as fs,pm as U,qc as jr,qd as _T,qe as Tn,qf as Ln,qg as MC,qh as db,qi as Ro,qj as $o,qk as Oi,ql as ms,qm as ua,ra as Rr,rb as py,rd as hT,re as Cn,rf as Dn,rg as kC,ri as Oo,rj as Uo,rk as Ii,rl as _s,rm as la,s as Mg,sb as _e,sd as gT,se as bn,sf as Fn,sg as NC,sh as Eo,si as Io,sj as jo,sk as IA,sl as hs,sm as fa,ta as Or,tb as Xe,tc as Oy,te as An,tf as Gn,tg as vC,th as So,ti as Po,tj as Bo,tk as PA,tl as gs,tm as ma,u as kg,ua as Ir,ub as uy,uc as Iy,ue as En,uf as he,ug as LC,uh as wo,ui as Mo,uj as qo,uk as Te,ul as ys,um as _a,va as Pr,vb as ly,vc as Py,ve as Sn,vf as ge,vg as DC,vi as ko,vj as zo,vk as MA,vl as Ts,vm as ha,wb as fy,wc as My,we as PT,wf as $n,wg as FC,wh as pb,wi as jb,wj as Ho,wk as kA,wl as Cs,wm as ga,x as Ng,xb as my,xc as ky,xe as MT,xf as Un,xg as GC,xh as ub,xj as Vo,xk as NA,xl as bs,xm as ya,yb as I,yc as Ny,yd as yT,ye as kT,yf as jn,yg as $C,yh as lb,yi as Bb,yj as yA,yk as et,yl as As,ym as Ta,zb as _y,zc as vy,zf as Bn,zg as UC,zh as fb,zi as qb,zj as TA,zk as Ce,zl as Es,zm as Ca}from"./chunks/chunk-ES25LX3D.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]="9cb05a78-f95d-5211-a35a-03756f66c812")}catch{}})();var Y="2026-07-28",YO=["2025-06-18"],xe=[Y],l={headerMismatch:-32020,missingRequiredClientCapability:-32021,unsupportedProtocolVersion:-32022,invalidParams:-32602},A={clientCapabilities:"io.modelcontextprotocol/clientCapabilities",clientInfo:"io.modelcontextprotocol/clientInfo",protocolVersion:"io.modelcontextprotocol/protocolVersion",serverInfo:"io.modelcontextprotocol/serverInfo"},u=class extends Error{code;data;constructor(t,r,n={}){super(t),this.name="PmMcpProtocolError",this.code=r,this.data=n}};function m(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function m_(e){if(e===void 0)return;if(!m(e))throw new u("Invalid MCP clientInfo metadata",l.invalidParams,{field:A.clientInfo,expected:"object"});let t=typeof e.name=="string"?e.name.trim():"",r=typeof e.version=="string"?e.version.trim():"";if(t.length===0||r.length===0)throw new u("Invalid MCP clientInfo metadata",l.invalidParams,{field:A.clientInfo,required:["name","version"]});let n={name:t.slice(0,128),version:r.slice(0,128)};return typeof e.description=="string"&&e.description.trim()&&(n.description=e.description.trim().slice(0,1024)),typeof e.websiteUrl=="string"&&e.websiteUrl.trim()&&(n.websiteUrl=e.websiteUrl.trim().slice(0,2048)),n}function Re(e){let t=m(e)?e._meta:void 0;if(!m(t))throw new u("Missing required MCP request metadata",l.invalidParams,{required:[A.protocolVersion,A.clientCapabilities]});let r=t[A.protocolVersion];if(typeof r!="string"||!xe.includes(r))throw new u("Unsupported protocol version",l.unsupportedProtocolVersion,{supported:[...xe],requested:typeof r=="string"?r:null});let n=t[A.clientCapabilities];if(!m(n))throw new u("Invalid MCP client capabilities metadata",l.invalidParams,{field:A.clientCapabilities,expected:"object"});let o=m_(t[A.clientInfo]);return{protocolVersion:Y,clientCapabilities:n,...o?{clientInfo:o}:{}}}function JO(e,t){if(t!==e.protocolVersion)throw new u("MCP protocol header does not match request metadata",l.headerMismatch,{header:t??null,metadata:e.protocolVersion})}function ZO(e,t){let r=t.filter(n=>!Object.prototype.hasOwnProperty.call(e.clientCapabilities,n));if(r.length>0)throw new u("Missing required client capability",l.missingRequiredClientCapability,{requiredCapabilities:Object.fromEntries(r.map(n=>[n,{}]))})}function QO(e,t){let r=e.clientCapabilities.extensions;return m(r)&&m(r[t])}function Oe(e,t){let r=m(e._meta)?e._meta:{};return{...e,_meta:{...r,[A.serverInfo]:{...t}}}}function __(e,t){return Oe({...e,resultType:"complete"},t)}function eI(e){let t=e.ttlMs??6e4;if(!Number.isFinite(t)||t<0)throw new u("Invalid MCP discovery cache TTL",l.invalidParams,{ttlMs:t});return __({supportedVersions:[...xe],capabilities:structuredClone(e.capabilities),ttlMs:t,cacheScope:"public",...e.instructions?{instructions:e.instructions}:{}},e.serverInfo)}function tI(e,t){if(m(e)&&typeof e.resultType=="string")return e.resultType;if(t==="legacy")return"complete";throw new u("Modern MCP result is missing resultType",l.invalidParams,{required:"resultType"})}import{createHash as wt,createHmac as xt,timingSafeEqual as h_}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]="469f704b-12eb-524d-bcc8-fb8f9f1775f2")}catch{}})();var g_=["elicitation/create","roots/list","sampling/createMessage"],Et=class extends Error{inputRequests;requestState;constructor(t){super("MCP operation requires additional input"),this.name="PmMcpInputRequiredError",this.inputRequests=t.inputRequests,this.requestState=t.requestState}},Rt=/^[a-zA-Z][a-zA-Z0-9_.-]{0,63}$/u,J=32,Pe=64*1024,Z=16*1024,Ie={maxBytes:256*1024,maxDepth:32,maxNodes:4096};function y_(e){return e==="elicitation/create"?"elicitation":e==="sampling/createMessage"?"sampling":"roots"}function Q(e,t,r){let n;try{n=JSON.stringify(e)}catch{throw new u(`Invalid ${r}: value is not JSON serializable`,l.invalidParams,{field:r})}if(Buffer.byteLength(n,"utf8")>t)throw new u(`Invalid ${r}: payload exceeds the protocol bound`,l.invalidParams,{field:r,maximumBytes:t})}function Me(e,t){if(!m(e))throw new u("Invalid MCP inputRequests",l.invalidParams,{field:"inputRequests",expected:"object"});let r=Object.entries(e);if(r.length===0||r.length>J)throw new u("Invalid MCP inputRequests count",l.invalidParams,{minimum:1,maximum:J,observed:r.length});let n={};for(let[o,i]of r){if(!Rt.test(o)||!m(i))throw new u("Invalid MCP input request entry",l.invalidParams,{field:`inputRequests.${o}`});let s=i.method;if(typeof s!="string"||!g_.includes(s))throw new u("Unsupported MCP input request method",l.invalidParams,{field:`inputRequests.${o}.method`,method:s??null});let a=y_(s);if(!Object.prototype.hasOwnProperty.call(t.clientCapabilities,a))throw new u("Missing required client capability",l.missingRequiredClientCapability,{requiredCapabilities:{[a]:{}}});if(!m(i.params))throw new u("Invalid MCP input request parameters",l.invalidParams,{field:`inputRequests.${o}.params`,expected:"object"});n[o]={method:s,params:structuredClone(i.params)}}return Q(n,Pe,"inputRequests"),n}function Ot(e){if(!m(e))throw new u("Invalid MCP inputResponses",l.invalidParams,{field:"inputResponses",expected:"object"});let t=Object.entries(e);if(t.length>J)throw new u("Invalid MCP inputResponses count",l.invalidParams,{maximum:J,observed:t.length});let r={};for(let[n,o]of t){if(!Rt.test(n)||!m(o))throw new u("Invalid MCP input response entry",l.invalidParams,{field:`inputResponses.${n}`});r[n]=structuredClone(o)}return Q(r,Pe,"inputResponses"),r}function iI(e){let t=e.requestState?.trim();if(t&&Buffer.byteLength(t,"utf8")>Z)throw new u("Invalid MCP requestState: payload exceeds the protocol bound",l.invalidParams,{field:"requestState",maximumBytes:Z});let r=e.inputRequests===void 0?void 0:Me(e.inputRequests,e.requestContext);if(r===void 0&&!t)throw new u("InputRequiredResult requires inputRequests or requestState",l.invalidParams,{requiredAnyOf:["inputRequests","requestState"]});return{resultType:"input_required",...r?{inputRequests:r}:{},...t?{requestState:t}:{},_meta:{[A.serverInfo]:{...e.serverInfo}}}}function It(e){let t=Buffer.from(e);if(t.byteLength<32)throw new u("MCP requestState signing key must contain at least 32 bytes",l.invalidParams,{minimumBytes:32});return t}function sI(e,t){if(!Number.isSafeInteger(e.expiresAt)||e.expiresAt<=0||e.method.trim().length===0||e.parameterDigest.trim().length===0||e.principal.trim().length===0)throw new u("Invalid MCP requestState payload",l.invalidParams);let r=Buffer.from(JSON.stringify({version:1,...e}),"utf8");if(r.byteLength>Z/2)throw new u("MCP requestState payload exceeds the protocol bound",l.invalidParams,{maximumBytes:Z/2});let n=r.toString("base64url"),o=xt("sha256",It(t)).update(n).digest("base64url");return`${n}.${o}`}function T_(e){if(!m(e)||e.version!==1)throw new u("Invalid MCP requestState payload",l.invalidParams,{field:"requestState"});let{expiresAt:t,method:r,parameterDigest:n,principal:o,state:i}=e;if(typeof t!="number"||!Number.isSafeInteger(t))throw new u("Invalid MCP requestState payload",l.invalidParams,{field:"requestState"});if(typeof r!="string"||typeof n!="string"||typeof o!="string")throw new u("Invalid MCP requestState payload",l.invalidParams,{field:"requestState"});return{expiresAt:t,method:r,parameterDigest:n,principal:o,state:i}}function aI(e,t,r){let[n,o,i]=e.split(".");if(!n||!o||i!==void 0)throw new u("Invalid MCP requestState encoding",l.invalidParams,{field:"requestState"});let s=Buffer.from(o,"base64url"),a=xt("sha256",It(t)).update(n).digest();if(s.byteLength!==a.byteLength||!h_(s,a))throw new u("Invalid MCP requestState signature",l.invalidParams,{field:"requestState"});let c;try{c=JSON.parse(Buffer.from(n,"base64url").toString("utf8"))}catch{c=null}let d=T_(c),{expiresAt:p,method:f,parameterDigest:_,principal:T}=d;if(p<(r.nowMs??Date.now()))throw new u("Expired MCP requestState",l.invalidParams,{field:"requestState",expiredAt:p});if(f!==r.method||_!==r.parameterDigest||T!==r.principal)throw new u("MCP requestState binding mismatch",l.invalidParams,{field:"requestState"});return d}function cI(e){return Q(e,Pe,"request parameters"),wt("sha256").update(JSON.stringify(e)).digest("hex")}var St=class{#e=new Set;#t;constructor(t=4096){if(!Number.isSafeInteger(t)||t<1)throw new u("Invalid MCP replay guard capacity",l.invalidParams,{maximumEntries:t});this.#t=t}consume(t){let r=wt("sha256").update(t).digest("hex");if(this.#e.has(r))throw new u("MCP requestState replay detected",l.invalidParams,{field:"requestState"});if(this.#e.size>=this.#t){let n=this.#e.values().next().value;this.#e.delete(n)}this.#e.add(r)}};function C_(e){if(!Number.isSafeInteger(e.ttlMs)||e.ttlMs<0||e.cacheScope!=="public"&&e.cacheScope!=="private")throw new u("Invalid MCP cache policy",l.invalidParams,{ttlMs:e.ttlMs,cacheScope:e.cacheScope});return{ttlMs:e.ttlMs,cacheScope:e.cacheScope}}function dI(e,t){return{...e,...C_(t)}}function b_(e){return e.replaceAll("~1","/").replaceAll("~0","~")}function A_(e,t){if(t==="#")return e;if(!t.startsWith("#/"))return;let r=e;for(let n of t.slice(2).split("/").map(b_)){if(!m(r)&&!Array.isArray(r)||!Object.prototype.hasOwnProperty.call(r,n))return;r=r[n]}return r}function E_(e){let t=e.maxBytes??Ie.maxBytes,r=e.maxDepth??Ie.maxDepth,n=e.maxNodes??Ie.maxNodes;if(!Number.isSafeInteger(t)||t<2)throw new u("Invalid MCP JSON Schema work bounds",l.invalidParams);if(!Number.isSafeInteger(r)||r<1)throw new u("Invalid MCP JSON Schema work bounds",l.invalidParams);if(!Number.isSafeInteger(n)||n<1)throw new u("Invalid MCP JSON Schema work bounds",l.invalidParams);return{maximumBytes:t,maximumDepth:r,maximumNodes:n}}function S_(e,t){let r=Array.isArray(e.value)?e.value:m(e.value)?Object.values(e.value):[];for(let n of r)t.push({value:n,depth:e.depth+1})}function w_(e,t){if(!m(t)||typeof t.$ref!="string")return;let r=t.$ref;if(r.startsWith("#")&&A_(e,r)===void 0)throw new u("MCP JSON Schema contains an unresolved local reference",l.invalidParams,{reference:r})}function pI(e,t={}){let{maximumBytes:r,maximumDepth:n,maximumNodes:o}=E_(t);if(typeof e!="boolean"&&!m(e))throw new u("Invalid MCP JSON Schema root",l.invalidParams,{expected:"object or boolean"});Q(e,r,"JSON Schema");let i=[{value:e,depth:0}],s=0;for(;i.length>0;){let a=i.pop();if(s+=1,s>o||a.depth>n)throw new u("MCP JSON Schema exceeds validation work bounds",l.invalidParams,{maximumDepth:n,maximumNodes:o});w_(e,a.value),S_(a,i)}return structuredClone(e)}import{randomUUID as x_}from"node:crypto";import{readFile as R_}from"node:fs/promises";import Pt 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]="1774674f-4d33-5a24-9d97-522c55b861c0")}catch{}})();var yI="io.modelcontextprotocol/tasks",O_=["working","input_required","completed","failed","cancelled"],I_=/^mcp-task-[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/iu,P_=3600*1e3,M_=1e3,te=1024,k_=30,N_=2e3;function ke(e){return new u(e,l.invalidParams,{code:"mcp_task_not_found_or_not_authorized"})}function ee(e){let t=e.trim();if(!I_.test(t))throw ke("Unknown MCP task");return t}function Mt(e,t){if(typeof e!="string"||!Number.isFinite(Date.parse(e)))throw new u("Corrupt MCP task record",l.invalidParams,{field:t});return e}function kt(e){if(!m(e)||typeof e.code!="number"||!Number.isFinite(e.code)||typeof e.message!="string")throw new u("Corrupt MCP task error",l.invalidParams);return{code:e.code,message:e.message.slice(0,te),...m(e.data)?{data:structuredClone(e.data)}:{}}}function v_(e){if(!O_.includes(e))throw new u("Corrupt MCP task record",l.invalidParams);return e}function L_(e){if(typeof e!="string"||e.length===0)throw new u("Corrupt MCP task record",l.invalidParams);return e}function D_(e){if(typeof e!="number"||!Number.isSafeInteger(e)||e<1)throw new u("Corrupt MCP task record",l.invalidParams);return e}function F_(e){if(e!==null&&(typeof e!="number"||!Number.isSafeInteger(e)||e<0))throw new u("Corrupt MCP task record",l.invalidParams);return e}function G_(e){if(e!==void 0){if(typeof e!="number"||!Number.isSafeInteger(e)||e<0)throw new u("Corrupt MCP task record",l.invalidParams);return e}}function $_(e){if(!Array.isArray(e)||e.some(t=>typeof t!="string"))throw new u("Corrupt MCP task record",l.invalidParams);return[...e]}function U_(e){if(!m(e)||e.version!==1)throw new u("Corrupt MCP task record",l.invalidParams);let t=typeof e.taskId=="string"?ee(e.taskId):"",r=v_(e.status),n=L_(e.principal),o=D_(e.workerPid),i=F_(e.ttlMs),s=G_(e.pollIntervalMs),a={version:1,taskId:t,status:r,principal:n,workerPid:o,createdAt:Mt(e.createdAt,"createdAt"),lastUpdatedAt:Mt(e.lastUpdatedAt,"lastUpdatedAt"),ttlMs:i,consumedInputKeys:$_(e.consumedInputKeys),...typeof e.statusMessage=="string"?{statusMessage:e.statusMessage.slice(0,te)}:{},...typeof s=="number"?{pollIntervalMs:s}:{}};if(m(e.inputRequests)&&(a.inputRequests=structuredClone(e.inputRequests)),m(e.inputResponses)&&(a.inputResponses=structuredClone(e.inputResponses)),m(e.result)&&(a.result=structuredClone(e.result)),e.error!==void 0&&(a.error=kt(e.error)),a.status==="input_required"&&!a.inputRequests||a.status==="completed"&&!a.result||a.status==="failed"&&!a.error)throw new u("Corrupt MCP task status payload",l.invalidParams,{status:a.status});return a}function P(e){let t={taskId:e.taskId,status:e.status,createdAt:e.createdAt,lastUpdatedAt:e.lastUpdatedAt,ttlMs:e.ttlMs,...e.statusMessage?{statusMessage:e.statusMessage}:{},...e.pollIntervalMs===void 0?{}:{pollIntervalMs:e.pollIntervalMs}};return e.status==="input_required"?{...t,status:"input_required",inputRequests:structuredClone(e.inputRequests)}:e.status==="completed"?{...t,status:"completed",result:structuredClone(e.result)}:e.status==="failed"?{...t,status:"failed",error:structuredClone(e.error)}:e.status==="cancelled"?{...t,status:"cancelled"}:{...t,status:"working"}}function j(e){return e==="completed"||e==="failed"||e==="cancelled"}function j_(e){try{return process.kill(e,0),!0}catch(t){return!(typeof t=="object"&&t!==null&&"code"in t&&t.code==="ESRCH")}}var Ne=class{#e;#t;#r;#o;#i;constructor(t){this.#e=Pt.resolve(t.pmRoot),this.#t=t.owner?.trim()||"pm-mcp",this.#r=t.now??(()=>new Date),this.#o=t.taskIdFactory??(()=>`mcp-task-${x_()}`),this.#i=t.workerPid??process.pid}#s(t){return Pt.join(this.#e,"runtime","mcp-tasks","records",`${ee(t)}.json`)}async#c(t){try{return U_(JSON.parse(await R_(this.#s(t),"utf8")))}catch(r){throw K(r)||r instanceof SyntaxError?ke("Unknown MCP task"):r}}async#a(t){await le(this.#s(t.taskId),`${JSON.stringify(t,null,2)}
|
|
2
|
+
`)}async#n(t,r,n){let o=ee(t),i=await ye(this.#e,o,k_,this.#t,!1,!1,N_);try{let s=await this.#c(o);if(s.principal!==r)throw ke("Unknown MCP task");let a=n(s);return await this.#a(a),a}finally{await i()}}async create(t){let r=ee(this.#o()),n=t.principal.trim(),o=t.ttlMs===void 0?P_:t.ttlMs,i=t.pollIntervalMs??M_;if(n.length===0||o!==null&&(!Number.isSafeInteger(o)||o<0)||!Number.isSafeInteger(i)||i<0)throw new u("Invalid MCP task creation options",l.invalidParams);let s=this.#r().toISOString(),a={version:1,taskId:r,status:"working",createdAt:s,lastUpdatedAt:s,ttlMs:o,pollIntervalMs:i,principal:n,workerPid:this.#i,consumedInputKeys:[],...t.statusMessage?.trim()?{statusMessage:t.statusMessage.trim().slice(0,te)}:{}};return await this.#a(a),{...P(a),resultType:"task"}}async get(t,r){return P(await this.#n(t,r,n=>{if(j(n.status))return n;let o=this.#r().getTime(),i=n.ttlMs!==null&&Date.parse(n.createdAt)+n.ttlMs<=o,s=n.workerPid!==this.#i&&!j_(n.workerPid);return!i&&!s?n:{...n,status:"failed",statusMessage:i?"Task retention expired before completion.":"Task worker ended before recording a terminal result.",lastUpdatedAt:this.#r().toISOString(),error:{code:-32603,message:i?"MCP task expired":"MCP task worker unavailable after restart",data:{recoverable:!1,createNewTask:!0}},inputRequests:void 0}}))}async requireInput(t){let r=Me(t.inputRequests,t.requestContext);return P(await this.#n(t.taskId,t.principal,n=>{if(j(n.status))return n;let o=Object.keys(r).filter(i=>n.consumedInputKeys.includes(i));if(o.length>0)throw new u("MCP task input request keys must be unique for the task lifetime",l.invalidParams,{reused:o});return{...n,status:"input_required",statusMessage:t.statusMessage?.trim().slice(0,te),lastUpdatedAt:this.#r().toISOString(),inputRequests:r}}))}async update(t,r,n){let o=Ot(n),i=[],s=[];return await this.#n(t,r,a=>{if(a.status!=="input_required"||!a.inputRequests)return a;let c={...a.inputRequests},d=a.inputResponses?{...a.inputResponses}:{};for(let[p,f]of Object.entries(o))Object.prototype.hasOwnProperty.call(c,p)&&(d[p]=f,delete c[p],i.push(p));return s=Object.keys(c).sort(),i.length===0?a:{...a,status:s.length===0?"working":"input_required",lastUpdatedAt:this.#r().toISOString(),inputRequests:s.length===0?void 0:c,inputResponses:d,consumedInputKeys:[...new Set([...a.consumedInputKeys,...i])].sort()}}),{acceptedKeys:i.sort(),remainingKeys:s}}async takeInputResponses(t,r){let n={};return await this.#n(t,r,o=>(n=structuredClone(o.inputResponses??{}),Object.keys(n).length===0?o:{...o,inputResponses:void 0})),n}async complete(t,r,n){return P(await this.#n(t,r,o=>j(o.status)?o:{...o,status:"completed",statusMessage:"Task completed.",lastUpdatedAt:this.#r().toISOString(),result:structuredClone(n),inputRequests:void 0,error:void 0}))}async fail(t,r,n){let o=kt(n);return P(await this.#n(t,r,i=>j(i.status)?i:{...i,status:"failed",statusMessage:o.message,lastUpdatedAt:this.#r().toISOString(),error:o,inputRequests:void 0,result:void 0}))}async cancel(t,r){return P(await this.#n(t,r,n=>j(n.status)?n:{...n,status:"cancelled",statusMessage:"Task cancelled by the client.",lastUpdatedAt:this.#r().toISOString(),inputRequests:void 0,result:void 0,error:void 0}))}};function TI(e){return new Ne(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]="cb791784-bde2-5b1d-b5df-038282816043")}catch{}})();var re="io.modelcontextprotocol/subscriptionId",Nt=256,vt=2048,B_=5e3;function q_(e,t){return new Promise((r,n)=>{let o=setTimeout(()=>n(new Error("MCP subscription sink write timed out")),B_);o.unref(),Promise.resolve().then(()=>e(t)).then(()=>{clearTimeout(o),r()},i=>{clearTimeout(o),n(i instanceof Error?i:new Error(String(i)))})})}function ve(e,t){if(e!==void 0){if(typeof e!="boolean")throw new u("Invalid MCP subscription filter",l.invalidParams,{field:`notifications.${t}`,expected:"boolean"});return e||void 0}}function z_(e){if(!m(e))throw new u("Invalid MCP subscription filter",l.invalidParams,{field:"notifications",expected:"object"});let t=ve(e.toolsListChanged,"toolsListChanged"),r=ve(e.promptsListChanged,"promptsListChanged"),n=ve(e.resourcesListChanged,"resourcesListChanged"),o;if(e.resourceSubscriptions!==void 0){if(!Array.isArray(e.resourceSubscriptions)||e.resourceSubscriptions.length>Nt)throw new u("Invalid MCP resource subscriptions",l.invalidParams,{field:"notifications.resourceSubscriptions",maximum:Nt});let i=new Set;for(let s of e.resourceSubscriptions){if(typeof s!="string"||s.trim().length===0||Buffer.byteLength(s,"utf8")>vt)throw new u("Invalid MCP resource subscription URI",l.invalidParams,{field:"notifications.resourceSubscriptions",maximumBytes:vt});i.add(s)}i.size>0&&(o=[...i].sort())}return{...t?{toolsListChanged:t}:{},...r?{promptsListChanged:r}:{},...n?{resourcesListChanged:n}:{},...o?{resourceSubscriptions:o}:{}}}function H_(e,t){return{...e.toolsListChanged&&t.tools?.listChanged?{toolsListChanged:!0}:{},...e.promptsListChanged&&t.prompts?.listChanged?{promptsListChanged:!0}:{},...e.resourcesListChanged&&t.resources?.listChanged?{resourcesListChanged:!0}:{},...e.resourceSubscriptions&&t.resources?.subscribe?{resourceSubscriptions:[...e.resourceSubscriptions]}:{}}}var Lt=class{#e;#t=new Map;#r;constructor(t){this.#e=structuredClone(t.capabilities),this.#r={...t.serverInfo}}get size(){return this.#t.size}async open(t){if(this.#t.has(t.id))throw new u("MCP subscription id is already active",l.invalidParams,{subscriptionId:t.id});let r=H_(z_(t.notifications),this.#e),n={filter:r,sink:t.sink,writeQueue:Promise.resolve()};this.#t.set(t.id,n);try{await this.#o(t.id,n,{jsonrpc:"2.0",method:"notifications/subscriptions/acknowledged",params:{_meta:{[re]:t.id},notifications:structuredClone(r)}},!0)}catch(o){throw this.#t.delete(t.id),o}return structuredClone(r)}async emitListChanged(t){let r=`${t}ListChanged`,n=`notifications/${t}/list_changed`,o=[];for(let[i,s]of this.#t)s.filter[r]===!0&&o.push(this.#o(i,s,{jsonrpc:"2.0",method:n,params:{_meta:{[re]:i}}}));return(await Promise.all(o)).filter(Boolean).length}async emitResourceUpdated(t){let r=[];for(let[n,o]of this.#t)o.filter.resourceSubscriptions?.includes(t)&&r.push(this.#o(n,o,{jsonrpc:"2.0",method:"notifications/resources/updated",params:{_meta:{[re]:n},uri:t}}));return(await Promise.all(r)).filter(Boolean).length}async#o(t,r,n,o=!1){let i=r.writeQueue.then(async()=>{if(this.#t.get(t)!==r)return!1;try{return await q_(r.sink,n),!0}catch(s){if(this.#t.get(t)===r&&this.#t.delete(t),o)throw s;return!1}});return r.writeQueue=i.then(()=>{},()=>{}),i}close(t){if(this.#t.delete(t))return{...Oe({resultType:"complete",_meta:{[re]:t}},this.#r)}}closeAll(){let t=[];for(let r of this.#t.keys()){let n=this.close(r);t.push({id:r,result:n})}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]="5ffe7128-0fbb-59af-89ef-74d5d799a00d")}catch{}})();var Dt=/^=\?base64\?([A-Za-z0-9+/]*={0,2})\?=$/u,V_=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/u,Ft=/^[\t\x20-\x7E]*$/u,Gt=new Set(["prompts/get","resources/read","tools/call"]);function K_(e){let t=new Map;for(let[r,n]of Object.entries(e)){if(n===void 0)continue;let o=typeof n=="string"?n:n.join(", ");t.set(r.toLowerCase(),o)}return t}function C(e,t){throw new u(e,l.headerMismatch,{header:t})}function $t(e){let t=typeof e=="boolean"?String(e).toLowerCase():String(e);return t.length>0&&t.trim()===t&&Ft.test(t)&&!Dt.test(t)?t:`=?base64?${Buffer.from(t,"utf8").toString("base64")}?=`}function Ut(e,t){let r=Dt.exec(e);if(r){let n=r[1],o=Buffer.from(n,"base64");return o.toString("base64")!==n||o.length===0?C("Malformed MCP Base64 header value",t):o.toString("utf8")}return e.length===0||e.trim()!==e||!Ft.test(e)?C("Malformed MCP header value",t):e}function ne(e){return Array.isArray(e)?e.some(ne):m(e)?Object.prototype.hasOwnProperty.call(e,"x-mcp-header")||Object.values(e).some(ne):!1}function W_(e,t,r){let n=e["x-mcp-header"];if(n===void 0)return;let o=e.type;if(typeof n!="string"||!V_.test(n)||!["boolean","integer","string"].includes(String(o))||r.has(n.toLowerCase()))throw new u("Invalid MCP x-mcp-header annotation",l.invalidParams,{field:t.join("."),annotation:n});return r.add(n.toLowerCase()),{name:n,path:t,type:o}}function jt(e){if(!m(e))throw new u("Invalid MCP tool schema",l.invalidParams,{field:"inputSchema",expected:"object"});let t=[],r=new Set,n=(o,i)=>{let s=o.properties;if(s!==void 0){if(!m(s))throw new u("Invalid MCP tool schema properties",l.invalidParams,{field:"inputSchema.properties"});for(let[a,c]of Object.entries(s)){if(!m(c))continue;let d=[...i,a],p=W_(c,d,r);p&&t.push(p);for(let[f,_]of Object.entries(c))if(f!=="properties"&&f!=="x-mcp-header"&&ne(_))throw new u("MCP x-mcp-header is not statically reachable",l.invalidParams,{field:d.join("."),keyword:f});n(c,d)}}};for(let[o,i]of Object.entries(e))if(o!=="properties"&&ne(i))throw new u("MCP x-mcp-header is not statically reachable",l.invalidParams,{field:"inputSchema",keyword:o});return n(e,[]),t}function Bt(e,t){let r=e;for(let n of t){if(!m(r))return;r=r[n]}return r}function qt(e,t){let r=e==="resources/read"?t.uri:t.name;return typeof r=="string"?r:void 0}function X_(e,t){let r=m(e.arguments)?e.arguments:{},n={};for(let o of jt(t)){let i=Bt(r,o.path);if(i==null)continue;if(!(o.type==="integer"&&typeof i=="number"&&Number.isSafeInteger(i)||o.type==="boolean"&&typeof i=="boolean"||o.type==="string"&&typeof i=="string"))throw new u("Invalid MCP custom header argument",l.invalidParams,{field:o.path.join("."),expected:o.type});n[`Mcp-Param-${o.name}`]=$t(i)}return n}function SI(e){let t=m(e.request.params)?e.request.params:void 0,r=Re(t),n=e.request.method;if(typeof n!="string"||n.length===0)return C("Missing MCP request method","Mcp-Method");let o={Accept:"application/json, text/event-stream","Content-Type":"application/json","MCP-Protocol-Version":r.protocolVersion,"Mcp-Method":n},i=qt(n,t);if(Gt.has(n)){if(i===void 0)return C("Missing MCP request name","Mcp-Name");o["Mcp-Name"]=$t(i)}return n==="tools/call"&&e.toolSchema!==void 0&&Object.assign(o,X_(t,e.toolSchema)),o}function Y_(e,t){let r=t.method;(typeof r!="string"||r.length===0)&&C("Missing MCP request method","Mcp-Method");let n=m(t.params)?t.params:void 0,o=Re(n).protocolVersion;if(e.get("mcp-protocol-version")!==o&&C("MCP protocol header does not match request metadata","MCP-Protocol-Version"),e.get("mcp-method")!==r&&C("MCP method header does not match request body","Mcp-Method"),Gt.has(r)){let i=e.get("mcp-name"),s=qt(r,n);(i===void 0||s===void 0||Ut(i,"Mcp-Name")!==s)&&C("MCP name header does not match request body","Mcp-Name")}e.has("last-event-id")&&C("MCP SSE resumability is not supported","Last-Event-ID")}function J_(e,t,r){return e.type==="integer"?typeof t=="number"&&Number.isSafeInteger(t)&&Number(r)===t:e.type==="boolean"?typeof t=="boolean"&&r===String(t):typeof t=="string"&&r===t}function Z_(e){let t=m(e.params.arguments)?e.params.arguments:{};for(let r of jt(e.toolSchema)){let n=Bt(t,r.path),o=`Mcp-Param-${r.name}`,i=e.headers.get(o.toLowerCase());if(n==null){i!==void 0&&C("Unexpected MCP parameter header",o);continue}i===void 0&&C("Missing MCP parameter header",o),J_(r,n,Ut(i,o))||C("MCP parameter header does not match request body",o)}}function wI(e){let t=K_(e.headers),r=typeof e.request.method=="string"?e.request.method:"";Y_(t,e.request),!(r!=="tools/call"||e.toolSchema===void 0)&&Z_({headers:t,params:e.request.params,toolSchema:e.toolSchema})}var xI=Y;import{AsyncLocalStorage as Q_}from"node:async_hooks";import{createHash as zt,timingSafeEqual as eh}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]="a9aefc86-a8ce-5ecf-bb54-e5fa3ea277c7")}catch{}})();var h=class extends Error{httpStatus;challenge;constructor(t,r,n){super(t),this.name="PmMcpAuthorizationError",this.httpStatus=r,this.challenge=n}},th=/^00-([0-9a-f]{32})-([0-9a-f]{16})-([0-9a-f]{2})$/u,rh=/^[a-z][a-z0-9_*/-]{0,255}$/u,nh=/^(?:[a-z0-9][a-z0-9_*/-]{0,240})@[a-z][a-z0-9_*/-]{0,13}$/u,oh=/^[\x20-\x2B\x2D-\x3C\x3E-\x7E]{0,255}[\x21-\x2B\x2D-\x3C\x3E-\x7E]$/u,Vt=/^[\x21\x23-\x5B\x5D-\x7E]+$/u,Kt=/^[A-Za-z0-9!#$%&'*+.^_`|~-]+$/u,ih=/^[\x21\x23-\x2B\x2D-\x3A\x3C-\x5B\x5D-\x7E]*$/u,sh=/%(?![0-9A-Fa-f]{2})/u,ah=512,ch=32,dh=180,ph=8192,uh=8192,Wt=new Q_;function y(e,t,r=!1){if(new RegExp("\\p{Cc}","u").test(e))throw new h(`Invalid ${t}`,401);let n;try{n=new URL(e)}catch{throw new h(`Invalid ${t}`,401)}let o=n.hostname==="127.0.0.1"||n.hostname==="localhost";if(n.hash.length>0||n.protocol!=="https:"&&!(r&&o&&n.protocol==="http:"))throw new h(`Invalid ${t}`,401);return n}function lh(e,t){let r=t.toLowerCase();for(let[n,o]of Object.entries(e))if(!(n.toLowerCase()!==r||o===void 0))return typeof o=="string"?o:o.join(", ")}function MI(e){let t=y(e.resource,"protected resource URI",!0).href.replace(/\/$/u,"");if(e.authorizationServers.length===0)throw new h("Protected resource metadata requires an authorization server",401);let r=e.authorizationServers.map(o=>y(o,"authorization server issuer").href.replace(/\/$/u,"")),n=[...new Set(e.scopes??[])];if(n.some(o=>!Vt.test(o)))throw new h("Invalid authorization scope",401);return{resource:t,authorization_servers:r,...n.length>0?{scopes_supported:n.sort()}:{}}}function kI(e){let t=y(e,"authorization server issuer"),r=t.pathname.replace(/^\/+|\/+$/gu,""),n=t.origin;return r?[`${n}/.well-known/oauth-authorization-server/${r}`,`${n}/.well-known/openid-configuration/${r}`,`${n}/${r}/.well-known/openid-configuration`]:[`${n}/.well-known/oauth-authorization-server`,`${n}/.well-known/openid-configuration`]}function NI(e,t){if(!m(e)||typeof e.issuer!="string")throw new h("Invalid authorization server metadata",401);let r=y(t,"expected issuer").href.replace(/\/$/u,"");if(y(e.issuer,"metadata issuer").href.replace(/\/$/u,"")!==r)throw new h("Authorization server issuer mismatch",401);if(!Array.isArray(e.code_challenge_methods_supported)||!e.code_challenge_methods_supported.includes("S256"))throw new h("Authorization server does not support required S256 PKCE",401);let o=d=>{let p=e[d];if(typeof p!="string")throw new h(`Authorization server metadata requires ${d}`,401);return y(p,d).href},i=d=>{let p=e[d];return typeof p=="string"?y(p,d).href:void 0},s=o("authorization_endpoint"),a=o("token_endpoint"),c=i("registration_endpoint");return{issuer:r,authorization_endpoint:s,token_endpoint:a,code_challenge_methods_supported:[...new Set(e.code_challenge_methods_supported.filter(d=>typeof d=="string"))],...e.client_id_metadata_document_supported===!0?{client_id_metadata_document_supported:!0}:{},...c?{registration_endpoint:c}:{}}}function vI(e){return e.hasPreRegisteredClient?"pre_registered":e.metadata.client_id_metadata_document_supported?"client_id_metadata_document":e.metadata.registration_endpoint?"dynamic":"user_supplied"}function LI(e){if(e.responseIssuer===void 0){if(e.issuerParameterSupported)throw new h("Authorization response omitted the advertised issuer",401);return}if(e.responseIssuer!==e.expectedIssuer)throw new h("Authorization response issuer mismatch",401)}function DI(e,t){let r=y(t,"client metadata document URL");if(r.pathname==="/"||!m(e)||e.client_id!==r.href||typeof e.client_name!="string"||e.client_name.trim().length===0||!Array.isArray(e.redirect_uris)||e.redirect_uris.length===0)throw new h("Invalid Client ID Metadata Document",401);for(let n of e.redirect_uris){if(typeof n!="string")throw new h("Invalid client redirect URI",401);y(n,"client redirect URI",!0)}return structuredClone(e)}function FI(e){if(e.redirectUris.length===0||e.clientName.trim().length===0)throw new h("Invalid dynamic client registration metadata",401);let t=e.redirectUris.map(r=>y(r,"redirect URI",!0).href);return{application_type:e.applicationType,client_name:e.clientName.trim().slice(0,128),redirect_uris:t,grant_types:["authorization_code","refresh_token"],response_types:["code"],token_endpoint_auth_method:"none"}}var Ht=class{#e=new Map;set(t,r){let n=y(t,"credential issuer").href;this.#e.set(n,structuredClone(r))}get(t){let r=y(t,"credential issuer").href,n=this.#e.get(r);return n?structuredClone(n):void 0}delete(t){let r=y(t,"credential issuer").href;return this.#e.delete(r)}};function fh(e){let t=e.traceparent,r=e.tracestate;if(t!==void 0){let n=typeof t=="string"?th.exec(t):null;if(!n)throw new h("Invalid MCP traceparent",403);let o=n[1],i=n[2];if(/^0+$/u.test(o)||/^0+$/u.test(i))throw new h("Invalid MCP traceparent",403)}if(r!==void 0&&(typeof r!="string"||!_h(r)))throw new h("Invalid MCP tracestate",403);return{...typeof t=="string"?{traceparent:t}:{},...typeof r=="string"?{tracestate:r}:{}}}function S(e){return e.replace(/^[ \t]*|[ \t]*$/gu,"")}function mh(e){return rh.test(e)||nh.test(e)}function _h(e){if(Buffer.byteLength(e,"utf8")>ah)return!1;let t=e.split(",");if(t.length>ch)return!1;let r=new Set;for(let n of t){let o=S(n);if(o.length===0)continue;let i=o.indexOf("="),s=i>0?o.slice(0,i):"",a=i>0?o.slice(i+1):"";if(!mh(s)||!oh.test(a)||r.has(s))return!1;r.add(s)}return!0}function Xt(e){return ih.test(e)&&!sh.test(e)}function hh(e){let t=S(e),r=t.indexOf("="),n=S(r>=0?t.slice(0,r):t),o=r>=0?S(t.slice(r+1)):void 0;return Kt.test(n)&&(o===void 0||Xt(o))}function gh(e){let t=S(e),r=t.split(";"),n=r[0],o=r.slice(1),i=n.indexOf("="),s=S(i>0?n.slice(0,i):""),a=i>0?S(n.slice(i+1)):"";if(!(!Kt.test(s)||!Xt(a)||!o.every(hh)))return{key:s,serialized:t}}function yh(e,t){if(e===void 0)return;if(typeof e!="string"||Buffer.byteLength(e,"utf8")>ph)throw new h("Invalid MCP baggage",403);let r=new Set(t),n=e.split(",");if(n.length>dh)throw new h("Invalid MCP baggage",403);let o=[];for(let i of n){let s=gh(i);if(!s)throw new h("Invalid MCP baggage",403);r.has(s.key)&&o.push(s.serialized)}return o.length>0?o.join(","):void 0}function GI(e,t={}){let r=m(e)&&m(e._meta)?e._meta:{},n=yh(r.baggage,t.baggageAllowlist??[]);return{...fh(r),...n?{baggage:n}:{}}}function $I(e,t){return Wt.run(structuredClone(e),t)}function UI(){let e=Wt.getStore();return e?{...e}:void 0}async function jI(e){let t=y(e.policy.resourceMetadataUrl,"protected resource metadata URL",!0).href,r=[...new Set(e.policy.requiredScopes??[])];if(r.some(f=>!Vt.test(f)))throw new h("Invalid authorization scope",401);let n=`Bearer resource_metadata="${t}"`;if(new URL(e.requestUrl,e.policy.resource).searchParams.has("access_token"))throw new h("Access tokens must not appear in URI query parameters",401,n);let s=lh(e.headers,"authorization")?.match(/^Bearer ([^\s]+)$/iu);if(!s)throw new h("Missing or malformed bearer token",401,n);let a=s[1];if(Buffer.byteLength(a,"utf8")>uh)throw new h("Missing or malformed bearer token",401,n);let c;try{c=await e.policy.verifyAccessToken(a)}catch{throw new h("Invalid bearer token",401,n)}let d=Array.isArray(c.audience)?c.audience:[c.audience];if(c.issuer!==e.policy.issuer||!d.includes(e.policy.resource))throw new h("Bearer token issuer or audience mismatch",401,n);let p=r.filter(f=>!c.scopes.includes(f));if(p.length>0)throw new h("Bearer token has insufficient scope",403,`${n}, scope="${p.join(" ")}"`);return{...c,audience:[...d],scopes:[...c.scopes]}}function BI(e){let t=zt("sha256").update(e.token).digest();return r=>{let n=zt("sha256").update(r).digest();if(!eh(t,n))throw new h("Invalid bearer token",401);return structuredClone(e.claims)}}(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 w="https://schema.unbrained.dev/pm/corpus-shape/v1";function M(e,t){if(!Number.isSafeInteger(e)||e<=0)throw new TypeError(`Corpus shape ${t} must be a positive safe integer`);return e}function B(e,t){if(!Number.isSafeInteger(e)||e<0)throw new TypeError(`Corpus shape ${t} must be a non-negative safe integer`);return e}function Jt(e){if(!(typeof e!="object"||e===null||Object.isFrozen(e))){for(let t of Object.values(e))Jt(t);Object.freeze(e)}}function k(e){if(e.schema!==w)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(M(e.hierarchy_depth,"hierarchy_depth"),M(e.hierarchy_fanout,"hierarchy_fanout"),B(e.age_span_days,"age_span_days"),M(e.history_entries_per_item,"history_entries_per_item"),B(e.comments_per_100_items,"comments_per_100_items"),B(e.notes_per_100_items,"notes_per_100_items"),B(e.learnings_per_100_items,"learnings_per_100_items"),M(e.author_cardinality,"author_cardinality"),M(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 Jt(t),t}var oe=[{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}],N=Object.freeze({scratch:k({schema:w,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:k({schema:w,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:oe,author_cardinality:32,component_count:1,include_cycles:!1,custom_types:["Experiment"],custom_statuses:["review"],terminal_statuses:[],custom_fields:["domain"]}),"deep-graph":k({schema:w,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:oe,author_cardinality:16,component_count:1,include_cycles:!0,custom_types:[],custom_statuses:[],terminal_statuses:[],custom_fields:[]}),"multi-decade":k({schema:w,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:oe,author_cardinality:64,component_count:1,include_cycles:!1,custom_types:["Program"],custom_statuses:["archived"],terminal_statuses:["archived"],custom_fields:["portfolio"]}),"disconnected-archive":k({schema:w,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:oe,author_cardinality:24,component_count:5,include_cycles:!1,custom_types:["Archive"],custom_statuses:["archived"],terminal_statuses:["archived"],custom_fields:["archive_source"]})});function Th(){return Object.keys(N).sort().map(e=>N[e])}function Ch(e){let t=e.trim().toLowerCase();if(!Object.hasOwn(N,t))throw new TypeError(`Unknown corpus shape "${e}". Available: ${Object.keys(N).join(", ")}`);return N[t]}var Yt=new WeakMap;function Zt(e,t){if(e===0)return[];let r=Yt.get(t);r===void 0&&(r=t.edge_kind_mix.flatMap(o=>Array.from({length:o.weight},()=>o.kind)),Yt.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 bh(e,t,r,n=42){if(B(t,"item index"),M(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),a=0,c=1;for(let V=0;V<e.hierarchy_depth;V+=1)a=Math.min(Number.MAX_SAFE_INTEGER,a+c),c=Math.min(Number.MAX_SAFE_INTEGER,c*e.hierarchy_fanout);let d=s%a,p=s-d,f=d===0?void 0:i+(p+Math.floor((d-1)/e.hierarchy_fanout))*o,_=Date.UTC(2026,0,1),T=e.age_span_days*864e5,G=new Date(_+(r===1?0:Math.round(t/(r-1)*T))).toISOString(),$=(t*37+n)%100;return{index:t,id:`pm-s${t.toString(36).padStart(7,"0")}`,...f===void 0?{}:{parent:`pm-s${f.toString(36).padStart(7,"0")}`},component:i,timestamp:G,author:`pm-corpus-agent-${(t+n)%Math.min(e.author_cardinality,r)}`,history_entry_count:e.history_entries_per_item,dependency_kinds:Zt(t,e),has_comment:$<e.comments_per_100_items,has_note:$<e.notes_per_100_items,has_learning:$<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 Le=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,Zt(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,,a]of this.annotationFields){let c=Math.floor(this.itemCount/100),d=this.itemCount%100,p=c*a+Math.max(0,a+d-100),f=c*a+Math.min(a,d),_=this.annotations[s];(_<p||_>f)&&n.push(`${s}:${_}!in[${p},${f}]`)}let o=new Set([...Object.keys(this.edgeKinds),...Object.keys(this.expectedEdgeKinds)]);for(let s of[...o].sort()){let a=this.edgeKinds[s]??0,c=this.expectedEdgeKinds[s]??0;a!==c&&n.push(`edge_kind:${s}:${a}!=${c}`)}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 Qt(e){return new Le(e)}function Ah(e,t){let r=Qt(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]="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 Eh(){let e=me(process.cwd(),process.env.PM_PATH);await Je(e,(t,r)=>Ze(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 er="https://schema.unbrained.dev/pm/workspace-recipe/v1";function De(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)=>De(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,De(n,`${t}.${r}`)])))}function tr(e){if(e.schema!==er)throw new Error(`Unsupported workspace recipe schema: ${e.schema}`);let t=Ve(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:De(r.input,`operations[${n}].input`)})))})}async function rr(e,t){let r=tr(e);return Ke(r,t)}async function Sh(e,t){return rr(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 wh(){await Qe()}(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 nr=["lines","branches","functions","statements"];function xh(e,t){if(typeof t!="object"||t===null||Array.isArray(t))throw new TypeError(`Coverage entry for ${e} must be an object.`)}function Rh(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 Oh(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)){xh(r,n);for(let o of nr){let i=Rh(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 Ih=["captured_redacted","captured_verbatim"],Ph=[{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 b(e){return typeof e=="string"&&e.trim().length>0}function Mh(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||!Ih.includes(r.capture_source)||!b(r.capture_provenance)||!Array.isArray(r.redactions)||!r.redactions.every(b)||!("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 Ph)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 kh(e,t){let r=Date.parse(e.waiver_expires_at),n=b(e.waiver_reason)&&b(e.waiver_owner)&&e.waiver_expires_at.endsWith("Z")&&We(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 Nh(e,t,r){if(!b(e.id)||!b(e.producer)||!b(e.consumer)||!b(e.format))return{captured:0,waived:0,findings:[{boundary_id:b(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=b(e.fixture_path)&&e.fixture_path in t?Mh(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 kh(e,r)}function dP(e,t,r=new Date){let n=[];if(e.version!==1||!b(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 a of e.boundaries){if(typeof a!="object"||a===null||Array.isArray(a)){n.push({boundary_id:"unknown",kind:"invalid_boundary",detail:"Each boundary must be a JSON object."});continue}let c=a,d=b(c.id)?c.id:void 0;if(d!==void 0&&o.has(d)){n.push({boundary_id:d,kind:"duplicate_boundary",detail:`Boundary ${d} is inventoried more than once.`});continue}d!==void 0&&o.add(d);let p=Nh(c,t,r.getTime());i+=p.captured,s+=p.waived,n.push(...p.findings)}return n.sort((a,c)=>a.boundary_id!==c.boundary_id?a.boundary_id.localeCompare(c.boundary_id):a.kind.localeCompare(c.kind)),{ok:n.length===0,boundary_count:e.boundaries.length,captured_count:i,waived_count:s,findings:n}}import v from"node:fs";import Fe 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 or=300*1e3,vh=3;function mP(e){return(e?.trim()||"development").replace(/[^a-zA-Z0-9._-]/g,"_").replace(/^\./,"_")}function _P(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.");v.mkdirSync(e,{recursive:!0});let n=Fe.join(e,r);v.mkdirSync(n,{recursive:!0});let o=new Date;v.utimesSync(n,o,o);let i=v.readdirSync(e).filter(d=>d!==r).flatMap(d=>{try{return[{name:d,mtimeMs:v.statSync(Fe.join(e,d)).mtimeMs}]}catch(p){if(p instanceof Error&&"code"in p&&K(p))return[];throw p}}).sort((d,p)=>p.mtimeMs-d.mtimeMs||d.name.localeCompare(p.name)),s=i.filter(d=>o.getTime()-d.mtimeMs<or),a=Math.max(0,vh-1-s.length),c=i.filter(d=>o.getTime()-d.mtimeMs>=or).slice(a).map(d=>d.name).sort((d,p)=>d.localeCompare(p));for(let d of c)v.rmSync(Fe.join(e,d),{recursive:!0,force:!0,maxRetries:3,retryDelay:50});return{retained:r,removed:c}}import ir from"node:fs";import se 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 ce="@unbrained/pm-cli",Lh=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"]),sr=new Set(["--author","--output-budget","--output-format","--output-include","--output-limit","--output-session","--path","--pm-path"]),Ue=/\b(\d{4})\.(\d{1,2})\.(\d{1,2})(?:-(\d+))?\b/u;function g(e,t){return e.some(r=>t.includes(r.split("=",1)[0]))}function Ge(e,t){return["activate","adopt","adopt-all","deactivate","init","install","migrate","reload","uninstall"].includes(t[0]??"")||g(e,["--activate","--adopt","--adopt-all","--deactivate","--fix-managed-state","--init","--install","--output","--reload","--scaffold","--uninstall"])}var Dh={changelog:(e,t)=>{if(t[0]==="generate")return!g(e,["--check"]);let r=e.indexOf("export");return t[0]==="export"&&(g(e,["--output"])||r>=0&&e[r+1]!==void 0&&!e[r+1].startsWith("-"))},comments:e=>g(e,["--add","--delete","--edit","--file","--stdin"]),config:(e,t)=>(t[0]==="project"||t[0]==="global"?t[1]:t[0])==="set",deps:()=>!1,docs:e=>g(e,["--add","--add-glob","--migrate","--remove"]),duplicates:()=>!1,events:()=>!1,extension:Ge,files:(e,t)=>g(e,["--add","--add-glob","--migrate","--remove"])||t[0]==="discover"&&g(e,["--apply"]),health:e=>!g(e,["--check-only","--no-refresh","--skip-vectors"]),learnings:e=>g(e,["--add","--delete","--edit","--file","--stdin"]),merge:(e,t)=>t[0]!=="report",notes:e=>g(e,["--add","--delete","--edit","--file","--stdin"]),package:Ge,packages:Ge,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]??"")&&!(g(e,["--infer"])&&!g(e,["--apply"])),telemetry:(e,t)=>t.slice(0,2).some(r=>["clear","flush"].includes(r)),templates:(e,t)=>t[0]==="save",test:e=>g(e,["--add","--add-json","--background","--measure","--remove","--resume","--run","--stop"]),validate:e=>g(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 ae(e){let t=e.match(Ue);return t?[Number(t[1]),Number(t[2]),Number(t[3]),Number(t[4]??0)]:null}function ie(e,t){let r=ae(e),n=ae(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 $e(e){try{let t=JSON.parse(ir.readFileSync(e,"utf8"));return typeof t=="object"&&t!==null&&!Array.isArray(t)?t:null}catch{return null}}function Fh(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[ce],i=typeof o=="string"?o.trim():"",s=/^[<!]/u.test(i)?void 0:i.match(Ue)?.[0];s&&t.push(s)}return t.sort((r,n)=>ie(n,r))[0]}function Gh(e){let r=$e(se.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 $h(e,t){try{let r=ir.readFileSync(se.join(e,t),"utf8").split(/\r?\n/u),n=r.findIndex(c=>c.includes(ce));if(n<0)return;let o=r[n].match(/^\s*/u)[0].length,i=[r[n]];for(let c=n+1;c<r.length;c+=1){let d=r[c],p=d.trim(),f=d.match(/^\s*/u)[0].length;if(p.length>0&&f<=o)break;i.push(d)}return i.join(`
|
|
3
|
+
`).match(/^\s*version(?::\s*|\s+)["']?(\d{4}\.\d{1,2}\.\d{1,2}(?:-\d+)?)/mu)?.[1]??i[0].match(Ue)?.[0]}catch{return}}function Uh(e){let t=[],r=$e(se.join(e,"package.json")),n=r?Fh(r):void 0;n&&t.push({version:n,source:"package.json"});let i=$e(se.join(e,"node_modules","@unbrained","pm-cli","package.json"))?.version;typeof i=="string"&&ae(i)&&t.push({version:i,source:"installed-package"});let s=Gh(e);s&&ae(s)&&t.push({version:s,source:"package-lock.json"});for(let a of["pnpm-lock.yaml","yarn.lock"]){let c=$h(e,a);c&&t.push({version:c,source:a})}return t}function ar(e){for(let t=0;t<e.length;t+=1){let r=e[t];if(sr.has(r)){t+=1;continue}if(!r.startsWith("-"))return{command:r.toLowerCase(),index:t}}}function jh(e){let t=ar(e);if(!t||g(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 a=e[s];if(sr.has(a)){s+=1;continue}a.startsWith("-")||o.push(a.toLowerCase())}let i=Dh[r];return i?i(e,o):Lh.has(r)}function Bh(e){let t=ar(e.argv)?.command,r=jh(e.argv),o=Uh(e.projectRoot).filter(a=>ie(a.version,e.executingVersion)!==null).sort((a,c)=>ie(c.version,a.version))[0],i=o!==void 0&&ie(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 ${ce} ${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 bP(e){let t=Bh(e);if(t.compatible)return t;throw new fe(`pm ${t.executing_version} cannot mutate a project pinned to newer pm ${t.project_version}.`,O.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 ${ce} ${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 qh}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 je=1;function L(e){e?.throwIfAborted()}function x(e,t){if(typeof e!="string"||e.trim().length===0)throw new TypeError(`Relationship graph ${t} must be non-empty`);return e.trim()}function D(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:je,fingerprint:qh("sha256").update(W({nodes:o,edges:i,kinds:s})).digest("hex"),created_at:new Date(n).toISOString(),nodes:o,edges:i,kinds:s})}function zh(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function z(e){if(!zh(e))throw new TypeError("Relationship graph snapshot must be an object");if(e.version!==je)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 _e([]);for(let o of e.kinds)t.register(o);let r=new I(e.nodes,e.edges,t),n=D(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(e,t){x(e.name,"adapter name");let r=x(t.workspace,"workspace");L(t.signal);let n=await e.read({...t,workspace:r});return L(t.signal),n===null?null:z(n)}async function de(e,t){let r=x(t.workspace,"workspace"),n=z(t.snapshot).snapshot,o=await E(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(L(t.signal),await e.replace({workspace:r,signal:t.signal,snapshot:n,expected_fingerprint:o?.snapshot.fingerprint??null}),(await E(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 Hh(e,t={}){let r=e.map(z),n=new Map;for(let s of r)for(let a of s.snapshot.kinds){let c=n.get(a.kind);if(c&&W(c)!==W(a))throw new TypeError(`Conflicting federated relationship kind: ${a.kind}`);n.set(a.kind,a)}let o=new _e([...n.values()].sort((s,a)=>s.kind.localeCompare(a.kind))),i=new I(new Set(r.flatMap(s=>[...s.snapshot.nodes])),r.flatMap(s=>[...s.snapshot.edges]),o);return D(i,o,t)}var q=class{name;#e=new Map;constructor(t="memory"){this.name=x(t,"adapter name")}async read(t){L(t.signal);let r=this.#e.get(x(t.workspace,"workspace"));return r?structuredClone(r):null}async replace(t){L(t.signal);let r=x(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(z(t.snapshot).snapshot))}async clear(t){L(t.signal);let r=x(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 cr(e,t){if(!Number.isInteger(e)||e<1)throw new TypeError(`Relationship graph ${t} must be a positive integer`);return e}function Vh(e){let t=cr(e.nodeCount,"nodeCount"),r=cr(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 a=0;a<t;a+=1)yield`${i}-${a}`}},edges:{*[Symbol.iterator](){if(n!=="disconnected")for(let a=r;a<t;a+=r)yield{source:`${i}-${n==="star"?0:a-r}`,target:`${i}-${a}`,kind:o}}}}}function R(e,t){if(!e)throw new Error(`Relationship graph adapter conformance: ${t}`)}async function dr(e,t={}){let r=t.workspace?.trim()||"pm-graph-conformance",n=Xe(),o=D(new I(["a","b"],[{source:"a",target:"b",kind:"related"}],n),n,{createdAt:"2026-01-01T00:00:00.000Z"}),i=D(new I(["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=[];R(await E(e,{workspace:r})===null,"workspace must start empty"),s.push({name:"empty-read",passed:!0});let a=await de(e,{workspace:r,snapshot:o});R(a.disposition==="written","first sync must write"),s.push({name:"atomic-replace",passed:!0}),(await e.read({workspace:r})).nodes.push("mutated-reader-copy"),R((await E(e,{workspace:r}))?.snapshot.nodes.length===2,"reads must not mutate stored state"),s.push({name:"read-isolation",passed:!0}),R((await de(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}),R((await E(e,{workspace:r}))?.snapshot.fingerprint===i.fingerprint,"replacement must become visible"),s.push({name:"replacement-visibility",passed:!0});let d=!1;try{await e.replace({workspace:r,snapshot:o,expected_fingerprint:o.fingerprint})}catch{d=!0}return R(d,"stale compare-and-swap must fail"),s.push({name:"stale-cas",passed:!0}),e.clear&&(await e.clear({workspace:r,expected_fingerprint:i.fingerprint}),R(await E(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 Kh(e){return dr(new q,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 pr}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 ur(e,t){if(typeof e!="string"||e.trim().length===0)throw new TypeError(`Relationship backfill ${t} must be non-empty`);return e.trim()}function KP(e,t){let r=ur(t.migrationId,"migrationId"),n=ur(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=Ae(e,void 0,t.registry),a=s.graph.nodes(),c=s.graph.edges().map(_=>{let T=pr("sha256").update(JSON.stringify([r,_.kind,_.source,_.target,_.createdAt??null,_.author??null,_.payload??null])).digest("hex").slice(0,24);return Object.freeze({eventId:`backfill:${r}:${T}`,relationshipId:`migration:${r}:${T}`,action:"add",edge:_,author:n,timestamp:i,reason:`Backfill ${r} from legacy item metadata`})}),d=pr("sha256").update(JSON.stringify({migrationId:r,nodes:a,events:c})).digest("hex"),p=new Set([...t.existingEventIds??[]].filter(_=>typeof _=="string").map(_=>_.trim()).filter(Boolean)),f=c.filter(_=>!p.has(_.eventId));return Object.freeze({migration_id:r,fingerprint:d,nodes:a,events:Object.freeze(f),edge_count:c.length,skipped_existing_count:c.length-f.length,duplicate_dependency_rows:s.duplicateRows.length,dangling_reference_count:s.dangling.active.length+s.dangling.legacy_terminal.length})}import*as lr 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 H=["suggested_retry","candidate_command","example","next_step","migration_hint","restore_with"],Be={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"}},XP=Object.freeze(Object.keys(Be));function fr(e){if(Object.hasOwn(Be,e))return Be[e]}var Wh=new Set([..."=([{,:;!?&|+-*%^~<>","=>"]);function F(e,t){return e<t?-1:e>t?1:0}function Xh(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 Yh(e){return e===void 0||e.kind==="punctuator"&&Wh.has(e.value)||e.kind==="identifier"&&["return","case","throw","else","yield"].includes(e.value)}function Jh(e,t){if(/\s/u.test(e[t]))return t+1;if(e.startsWith("//",t)){let r=e.indexOf(`
|
|
4
|
+
`,t+2);return r===-1?e.length:r+1}if(e.startsWith("/*",t))return e.indexOf("*/",t+2)+2}function Zh(e,t,r){if(e[t]!=="/"||!Yh(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 Qh(e,t){let r=e[t];if(r==="'"||r==='"'||r==="`"){let o=Xh(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 eg(e){let t=[],r=0;for(;r<e.length;){let n=Jh(e,r);if(n!==void 0){r=n;continue}let o=Zh(e,r,t.at(-1));if(o!==void 0){r=o;continue}let i=Qh(e,r);i.token&&t.push(i.token),r=i.next}return t}var tg=new Set(["object","block","pattern"]),rg=new Set(["const","let","var"]),ng=new Set(["}",")","]"]),og=new Set(["=","(","[",",",":","?","return"]);function ig(e,t,r){if([...r].reverse().find(i=>tg.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"&&rg.has(o.value)?"pattern":o?.value==="=>"||o?.value===")"?"block":o&&og.has(o.value)?"object":"block"}function sg(e,t,r){let n=e[t];if(n.value==="{"){let a=ig(e,t,r);return{kind:a,...a==="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 ag(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 cg(e,t){return e[t+1]?.value===")"&&e[t+2]?.value==="=>"||e[t+1]?.value==="="}function dg(e){let t=eg(lr.stripTypeScriptTypes(e,{mode:"strip"})),r=[],n=[];for(let[o,i]of t.entries()){let s=n.at(-1),a=ag(s,i,t[o+1]);a&&s.candidates.push(a);let c=sg(t,o,n);if(c)n.push(c);else if(ng.has(i.value)){let d=n.pop();d?.kind==="object"&&!cg(t,o)&&r.push(...d.candidates)}else i.value===","&&s?.kind==="object"?s.member_start=!0:s?.kind==="object"&&i.value!==":"&&(s.member_start=!1)}return r}function pg(e){let t=[0];for(let r=0;r<e.length;r+=1)e[r]===`
|
|
5
|
+
`&&t.push(r+1);return t}function ug(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 YP(e){let t=[],r=[];for(let o of[...e].sort((i,s)=>F(i.path,s.path))){let i=pg(o.content),s;try{s=dg(o.content)}catch(a){r.push({kind:"invalid_source",subject:o.path,detail:`${o.path} could not be parsed for recovery producers: ${String(a)}.`});continue}for(let a of s){let c=a.field,d=ug(i,a.offset),p=fr(c);p?t.push({path:o.path,line:d,field:c,kind:p.kind}):/(?:retry_command|candidate_command|fallback_candidate|next_best_command|example|next_step|migration_hint|restore_with)/u.test(c)&&!/(?:_total|_truncated)$/u.test(c)&&r.push({kind:"unknown_recovery_field",subject:`${o.path}:${d}:${c}`,detail:`${c} resembles a recovery reference but has no typed field contract.`})}}let n=Object.fromEntries(H.map(o=>[o,t.filter(i=>i.kind===o).length]));for(let o of H)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?F(o.path,i.path):o.line!==i.line?o.line-i.line:F(o.field,i.field)),r.sort((o,i)=>o.subject!==i.subject?F(o.subject,i.subject):F(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 JP(e,t){let r=[],n=(o,i)=>{if(Array.isArray(o)){o.forEach((s,a)=>n(s,[...i,String(a)]));return}if(!(typeof o!="object"||o===null))for(let[s,a]of Object.entries(o).sort(([c],[d])=>F(c,d))){let c=fr(s),d=c?.kind==="migration_hint"&&o.semantics==="behavior_preserving"?{...c,semantics:"behavior_preserving"}:c,p=[a].flat();d!==void 0&&p.forEach((f,_)=>{let T="nested_value_field"in d&&typeof d.nested_value_field=="string"?d.nested_value_field:void 0,G=T&&typeof f=="object"&&f!==null&&!Array.isArray(f)?f[T]:f;if(typeof G!="string"||G.trim().length===0)return;let $=[...i,s,String(_)].map(V=>encodeURIComponent(V)).join("/");r.push({id:`${e}:${d.kind}:${$}`,probe_id:e,kind:d.kind,semantics:d.semantics,value:G})}),n(a,[...i,s])}};return n(t,[]),r}function ZP(e,t){let r=e.flatMap(s=>(s.owned_states??[]).map(a=>({contract:s,state:a}))),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:a}of r){let c=o.get(a.probe_id);if(!c){n.push({kind:"missing_probe",probe_id:a.probe_id,detail:`No entrypoint observation was recorded for ${s.code}.`});continue}c.code!==s.code&&n.push({kind:"wrong_error_code",probe_id:a.probe_id,detail:`Expected ${s.code}; observed ${c.code}.`}),c.exit_class!==a.expected_exit_class&&n.push({kind:"wrong_exit_class",probe_id:a.probe_id,detail:`Expected ${a.expected_exit_class}; observed ${c.exit_class}.`}),a.entrypoints.includes(c.entrypoint)||n.push({kind:"wrong_entrypoint",probe_id:a.probe_id,detail:`Expected one of ${a.entrypoints.join(", ")}; observed ${c.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,a)=>s.probe_id!==a.probe_id?s.probe_id.localeCompare(a.probe_id):s.kind.localeCompare(a.kind)),{ok:n.length===0,declared_probe_count:r.length,observed_probe_count:t.length,findings:n}}function QP(e,t){let r=[],n=new Set,o=new Set;for(let c of e){if(n.has(c.id)){o.add(c.id),r.push({kind:"duplicate_obligation",reference_id:c.id,detail:`Recovery obligation ${c.id} was declared more than once.`});continue}n.add(c.id)}let i=new Map;for(let c of t){if(i.has(c.id)){r.push({kind:"duplicate_observation",reference_id:c.id,detail:`Recovery reference ${c.id} was observed more than once.`});continue}i.set(c.id,c),n.has(c.id)||r.push({kind:"undeclared_observation",reference_id:c.id,detail:`Recovery observation ${c.id} has no emitted obligation.`})}for(let c of e){if(o.has(c.id))continue;let d=i.get(c.id);d?d.reachable?d.semantics!==c.semantics&&r.push({kind:"wrong_semantics",reference_id:c.id,detail:`Recovery reference ${c.value} promised ${c.semantics}; proof demonstrated ${d.semantics}.`}):r.push({kind:"unreachable_reference",reference_id:c.id,detail:`Recovery reference ${c.value} did not reach its promised target.`}):r.push({kind:"missing_observation",reference_id:c.id,detail:`No reachability proof was recorded for ${c.kind} ${c.value}.`})}let s=H.map(c=>{let d=e.filter(f=>f.kind===c),p=d.filter(f=>!o.has(f.id)).map(f=>i.get(f.id)).filter(f=>f!==void 0);return{kind:c,declared:d.length,observed:p.length,passed:d.filter(f=>{let _=i.get(f.id);return!o.has(f.id)&&_?.reachable===!0&&_.semantics===f.semantics}).length}});r.sort((c,d)=>c.reference_id!==d.reference_id?c.reference_id.localeCompare(d.reference_id):c.kind.localeCompare(d.kind));let a=s.reduce((c,d)=>c+d.passed,0);return{ok:r.length===0,declared_reference_count:e.length,observed_reference_count:t.length,pass_fraction:n.size===0?1:a/n.size,coverage_by_kind:s,findings:r}}function lg(e,t){let r=new Map(H.map(i=>[i,new Set]));for(let i of t)r.get(i.kind).add(i.value);let n=H.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 eM=lg;(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]="a1efaf49-c6ca-53dd-8fad-eb2540c20cc8")}catch{}})();var rM=16,fg=Object.freeze(["bulk_ids_input_empty","bulk_ids_input_missing_path","bulk_ids_input_unreadable","invalid_argument_value","missing_lifecycle_target","missing_required_argument","projection_options_mutually_exclusive","tracker_not_initialized","tracker_root_missing","tracker_root_not_directory","tracker_root_unreadable","unknown_context_intent","unknown_field_projection","unknown_option","unknown_subcommand"]),mr=18,_r=Object.freeze([...fg,"manifest_unknown_key","no_version_bounds_declared"].sort((e,t)=>e.localeCompare(t)));function nM(e,t=mr){return{ok:e.executable_error_code_count>=t,baseline:t,actual:e.executable_error_code_count}}function oM(e,t=_r){let r=new Set(e.rows.filter(({disposition:o})=>o==="executable").map(({canonical_code:o})=>o)),n=t.filter(o=>!r.has(o));return{ok:n.length===0,required_canonical_codes:[...t],missing_required_canonical_codes:n}}function qe(e,t){let r=e.get(t);if(r)return r;let n={kinds:new Set,probeIds:new Set};return e.set(t,n),n}function iM(e,t,r){let n=new Map(e.map(p=>[p.code,p.canonical_code??p.code])),o=new Map,i=0,s=0;for(let p of e){let f=qe(o,p.canonical_code??p.code);for(let _ of p.owned_states??[])f.kinds.add("owned_state"),f.probeIds.add(_.probe_id)}for(let p of t){let f=n.get(p.error_code);if(f===void 0)continue;i+=1;let _=qe(o,f);_.kinds.add("closed_domain"),_.probeIds.add(p.probe_id)}for(let p of r){let f=n.get(p.error_code);if(f===void 0)continue;s+=1;let _=qe(o,f);_.kinds.add("grammar"),_.probeIds.add(p.probe_id)}let a=e.map(p=>{let f=p.canonical_code??p.code,_=o.get(f),T=[..._.probeIds].sort();return{code:p.code,canonical_code:f,disposition:T.length>0?"executable":"uncovered",evidence_kinds:[..._.kinds].sort(),probe_ids:T}}).sort((p,f)=>p.code<f.code?-1:1),c=a.filter(({disposition:p})=>p==="uncovered").map(({code:p})=>p),d=a.length-c.length;return{ok:c.length===0,catalog_error_code_count:a.length,executable_error_code_count:d,uncovered_error_code_count:c.length,coverage_fraction:a.length===0?1:d/a.length,closed_domain_probe_count:i,grammar_probe_count:s,uncovered_error_codes:c,rows:a}}function sM(e){let t=e.rows.map(r=>`| \`${r.code}\` | \`${r.canonical_code}\` | ${r.disposition} | ${r.evidence_kinds.join(", ")||"none"} | ${r.probe_ids.length} |`);return["# Generated refusal closure census","","Tracker: `pm-f05lsg`.","","Every catalog code is listed. An `uncovered` row is an explicit closure obligation, never an omission or implied approval.","",`- Catalog error codes: ${e.catalog_error_code_count}`,`- Executable error codes: ${e.executable_error_code_count}`,`- Executable-code ratchet floor: ${mr}`,`- Required executable canonical codes: ${_r.map(r=>`\`${r}\``).join(", ")}`,`- Uncovered error codes: ${e.uncovered_error_code_count}`,`- Coverage fraction: ${e.coverage_fraction.toFixed(6)}`,`- Closed-domain probes: ${e.closed_domain_probe_count}`,`- Grammar probes: ${e.grammar_probe_count}`,"","| Error code | Canonical code | Disposition | Evidence kinds | Probe count |","| --- | --- | --- | --- | --- |",...t,""].join(`
|
|
6
|
+
`)}(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 mg(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 _g(e){return[e.exit_code!==O.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 ${O.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."},...mg(e)]}function dM(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 _g(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]="2e90ea29-2708-5af8-b390-599be97718e7")}catch{}})();var hr="not-a-declared-action";function hg(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 ze(e){return e.replaceAll(/[^a-z0-9]+/gu,"-").replaceAll(/^-|-$/gu,"")}function gM(e=Ce.filter(t=>et.some(r=>r.command===t.command&&r.disposition!=="package_owned"))){return e.flatMap(t=>t.slots.flatMap((r,n)=>{if(!r.required)return[];let o=t.command.split(" "),i=U(t.command).flatMap(a=>a.required?[a.flag,...a.value_name?["example"]:[]]:[]),s=Te.some(a=>a.command===t.command);return[{probe_id:`required-argument-${ze(t.command)}-${ze(r.name)}`,command:t.command,refusal_args:[...o,...t.slots.slice(0,n).map(a=>hg(t.command,a)),...i],recovery_args:[...o,"--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:n}]})).sort((t,r)=>t.probe_id.localeCompare(r.probe_id))}function gg(e){switch(e){case"assurance":case"workspace snapshot":return Te.filter(({parent:t})=>t===e).map(({action:t})=>t);case"graph":return he;case"merge":return ge;case"plan":return Ee;case"profile":return Se;case"schema":return rt;default:throw new Error(`Required positional action family ${e} has no authoritative value domain.`)}}function yM(e=Ce){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-${ze(t)}`,command:t,refusal_args:[...r,hr],recovery_args:[...r,"--help"],error_code:"unknown_subcommand",rejected_value:hr,allowed_values:[...gg(t)].sort()}}).sort((t,r)=>t.probe_id.localeCompare(r.probe_id))}function yg(e,t){let r=[...t].sort();return e.length===t.length&&[...e].sort().every((n,o)=>n===r[o])}function Tg(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&&!yg(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 TM(e,t){let r=new Map(e.map(s=>[s.probe_id,s])),n=new Map(t.map(s=>[s.probe_id,s])),o=[...e.flatMap(s=>Tg(s,n.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.`}))];o.sort((s,a)=>s.probe_id.localeCompare(a.probe_id)||s.code.localeCompare(a.code));let i=new Set(o.map(({probe_id:s})=>s));return{ok:o.length===0,probe_count:e.length,closed_probe_count:e.filter(({probe_id:s})=>!i.has(s)).length,findings:o}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="941a11a9-f756-56b3-9dc1-8afd78bc9328")}catch{}})();var He=[{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 bM(){return He.map(e=>({...e}))}function Cg(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 AM(e){let t=new Map(e.map(o=>[o.probe_id,o])),r=[],n=0;for(let o of He){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=Cg(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:He.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]="8320177c-e95d-5d14-a914-4ac37230c0b9")}catch{}})();var pe,bg=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 Ag(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=bg[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 ue(){if(pe!==void 0)return pe;let t=we.filter(({command:i})=>be(i)).flatMap(({command:i,family:s})=>bt(i,U(i)).map(a=>({command:i,family:s,concept:Ag(i,a.flag),flag:a.flag,aliases:Object.freeze([...a.aliases??[]]),value_kind:a.repeatable?"list":a.flag==="--limit"?"number":a.value_type}))),r=new Set(t.flatMap(i=>i.aliases.map(s=>`${i.command}:${s}`))),n=t.filter(i=>!r.has(`${i.command}:${i.flag}`)),o=new Map;for(let i of n){let s=o.get(i.concept)??new Set;s.add(i.value_kind),o.set(i.concept,s)}return pe=Object.freeze(n.map(i=>Object.freeze({...i,concept:o.get(i.concept)?.size===1?i.concept:`${i.concept}@${i.command}`}))),pe}function RM(){return Object.freeze(ue().map(e=>Object.freeze({command:e.command,canonical_flag:e.flag,accepted_spellings:Object.freeze([...new Set([e.flag,...e.aliases])].sort())})))}var gr=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 yr(){let e=new Map(Object.keys(gr).map(t=>[t,0]));for(let{command:t}of ue())e.set(t,Number(e.get(t))+1);return Object.freeze(Object.entries(gr).map(([t,r])=>Object.freeze({command:t,current:Number(e.get(t)),maximum:r})))}function Eg(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 Sg(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 wg(e,t,r){let n=new Map(e.map(o=>[`${o.command}:${o.flag}`,o]));for(let o of t){let i=`${o.command}:${o.canonical_flag}`,s=n.get(i);if(!s){r.push({code:"removed_canonical_spelling",command:o.command,detail:`${o.canonical_flag} disappeared from the executable spelling inventory.`});continue}let a=new Set([s.flag,...s.aliases]);for(let c of o.accepted_spellings)a.has(c)||r.push({code:"removed_compatibility_spelling",command:o.command,detail:`${c} no longer resolves to ${o.canonical_flag}.`})}}function OM(e=ue(),t=yr(),r=[]){let n=[],o=new Map,i=new Map,s=new Map,a=new Map;for(let c of e){let d=`${c.command}:${c.flag}`;o.has(d)?n.push({code:"duplicate_canonical_flag",command:c.command,detail:`${c.flag} has more than one canonical row.`}):o.set(d,c),a.set(c.command,(a.get(c.command)??0)+1);let p=i.get(c.concept);p!==void 0&&p!==c.value_kind?n.push({code:"inconsistent_concept_kind",command:c.command,detail:`${c.concept} uses both ${p} and ${c.value_kind}.`}):i.set(c.concept,c.value_kind);let f=s.get(c.concept);f!==void 0&&f!==c.flag?n.push({code:"semantic_spelling_collision",command:c.command,detail:`${c.concept} is canonicalized by both ${f} and ${c.flag}.`}):s.set(c.concept,c.flag)}return Eg(e,o,n),Sg(a,t,n),wg(e,r,n),n.sort((c,d)=>c.command.localeCompare(d.command)||c.code.localeCompare(d.code)||c.detail.localeCompare(d.detail)),{ok:n.length===0,entry_count:e.length,budget_count:t.length,concept_count:new Set(e.map(({concept:c})=>c)).size,baseline_entry_count:r.length,findings:n}}function IM(){let e=ue(),t=yr(),r=new Map(t.map(({command:o})=>[o,"unknown"]));for(let{command:o,family:i}of e)r.set(o,i);return["# Generated flag lexicon budgets","","This file is generated by `listPmFlagLexicon()`. Compatibility aliases do not consume canonical budget.","","| Command | Capability family | Canonical flags | Maximum |","| --- | --- | ---: | ---: |",...t.map(({command:o,current:i,maximum:s})=>{let a=r.get(o);return`| \`${o}\` | ${a} | ${i} | ${s} |`}),""].join(`
|
|
7
|
+
`)}(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 MM(e){return e}function kM(e){return e}function NM(e){return e}function vM(e){return e}function LM(e){return e}function DM(e){return e}function FM(e){return e}function GM(e){return e}function $M(e){return e}function UM(e){return e}function jM(e){return e}function BM(e){return e}function qM(e){return e}function zM(e){return{handled:!0,result:e}}function HM(){return{handled:!1}}function VM(e){return e}function KM(e){return e}function WM(e){return e}function XM(e){return e}function YM(e){return e}function JM(e){return e}function ZM(e){return e}function QM(e){return e}function ek(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 xg(e={},t={}){return new X(t).extension(void 0,{...e,migrate:!0})}function Rg(e={},t={}){return new X(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]="bfa96f97-ffdf-54f9-b632-006f5dfe2ee3")}catch{}})();export{JS as ACTIONABILITY_ORDERING_KINDS,ri as ACTIVITY_COMMANDER_STRING_OPTION_CONTRACTS,Js as ACTIVITY_FLAG_CONTRACTS,pn as AGENT_PROVENANCE_DIMENSIONS,Li as AGGREGATE_FLAG_CONTRACTS,bs as APPEND_FLAG_CONTRACTS,KS as ASSURANCE_ACTIONS,WS as ASSURANCE_DECLARATION_KINDS,GE as ASSURANCE_DOCUMENT_VERSION,js as ASSURANCE_FLAG_CONTRACTS,$E as ASSURANCE_GATE_TRIGGERS,UE as ASSURANCE_MEASUREMENT_SOURCE_KINDS,nS as ASSURANCE_PRESET_IDS,vE as AssuranceEvaluationRefusalError,NE as AssuranceMutationRefusalError,LE as AssuranceSourceResolutionError,Wr as BASELINE_ITEM_FORMAT_VERSION,Ih as BOUNDARY_FIXTURE_CAPTURE_SOURCES,dw as BRIEF_LIST_FIELDS,ln as BUILTIN_AGENT_PROVENANCE_ADAPTERS,N as BUILTIN_CORPUS_SHAPES,un as BUILTIN_HARNESS_SIGNAL_DESCRIPTORS,Sr as BUILTIN_ITEM_TYPE_VALUES,ut as BUILTIN_PROFILES,py as BUILTIN_RELATIONSHIP_KINDS,Qo as CALENDAR_COMMANDER_STRING_OPTION_CONTRACTS,Ys as CALENDAR_FLAG_CONTRACTS,As as CLAIM_FLAG_CONTRACTS,_a as CLOSE_ACTION_OPTION_KEYS,Ts as CLOSE_FLAG_CONTRACTS,Cs as CLOSE_MANY_FLAG_CONTRACTS,Os as CLOSE_TASK_FLAG_CONTRACTS,Di as COMMENTS_FLAG_CONTRACTS,ny as COMMON_MUTATION_COMMAND_OPTION_KEYS,da as COMPLETION_FLAG_CONTRACTS,Pr as CONFIDENCE_TEXT_VALUES,Ji as CONFIG_FLAG_CONTRACTS,ei as CONTEXT_COMMANDER_STRING_OPTION_CONTRACTS,Ow as CONTEXT_EVALUATION_METRIC_NAMES,Qs as CONTEXT_FLAG_CONTRACTS,at as CONTEXT_OUTPUT_VALUES,Nw as CONTEXT_PACKING_PROFILES,Sw as CONTEXT_RELEVANCE_SERVICE,Aw as CONTEXT_RELEVANCE_SIGNAL_NAMES,jw as CONTEXT_SIGNAL_SET_VERSION,Uw as CONTEXT_SIGNAL_STORE_FORMAT_VERSION,Bw as CONTEXT_SIGNAL_STORE_WARNING_DETAILS,ca as CONTRACTS_FLAG_CONTRACTS,Vs as COPY_FLAG_CONTRACTS,si as CREATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,ci as CREATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,ai as CREATE_COMMANDER_STRING_OPTION_CONTRACTS,kg as CREATE_DIRECT_CLOSE_REASON_DEFAULT,Bs as CREATE_FLAG_CONTRACTS,WC as CURRENT_HISTORY_ITEM_HASH_VERSION,Xr as CURRENT_ITEM_FORMAT_VERSION,Vw as ContextSignalStore,Lw as ContextUsageValidationError,xE as DEFAULT_AUTHOR_IDENTITY_VOCABULARY,wx as DEFAULT_CHILD_SAMPLE_LIMIT,cw as DEFAULT_COMPACT_LIST_FIELDS,Db as DEFAULT_DERIVED_INDEX_MINIMUM_ITEMS,Iu as DEFAULT_EVAL_QUERIES_RELATIVE_PATH,ax as DEFAULT_TERMINAL_TRANSITION_POLICY,Yw as DEFAULT_WORKSPACE_MEMORY_MINIMUM_ITEMS,US as DEFECT_ESCAPE_CLASSES,jS as DEFECT_GATE_EVIDENCE_DISPOSITIONS,Ss as DELETE_FLAG_CONTRACTS,Rr as DEPENDENCY_KIND_VALUES,ra as DEPS_FLAG_CONTRACTS,Ui as DOCS_FLAG_CONTRACTS,Gs as DUPLICATES_FLAG_CONTRACTS,oa as EVAL_FLAG_CONTRACTS,wu as EVAL_QUERY_SET_CONTRACT,xu as EVAL_QUERY_SET_EXAMPLE,Su as EVAL_QUERY_SET_SCHEMA_ID,Zs as EVENTS_FLAG_CONTRACTS,Ps as EVENT_FLAG_CONTRACTS,In as EXECUTABLE_COMMAND_ALIASES,O as EXIT_CODE,cs as EXTENSION_ACTIVATE_FLAG_CONTRACTS,as as EXTENSION_ADOPT_ALL_FLAG_CONTRACTS,_s as EXTENSION_ADOPT_FLAG_CONTRACTS,nE as EXTENSION_CAPABILITIES,Pg as EXTENSION_CAPABILITY_CONTRACT,Og as EXTENSION_CAPABILITY_CONTRACT_VERSION,Ig as EXTENSION_CAPABILITY_LEGACY_ALIASES,$r as EXTENSION_CAPABILITY_REGISTRATION_SURFACES,ms as EXTENSION_CATALOG_FLAG_CONTRACTS,ds as EXTENSION_DEACTIVATE_FLAG_CONTRACTS,ss as EXTENSION_DESCRIBE_FLAG_CONTRACTS,fs as EXTENSION_DOCTOR_FLAG_CONTRACTS,is as EXTENSION_EXPLORE_FLAG_CONTRACTS,Zi as EXTENSION_FLAG_CONTRACTS,es as EXTENSION_INIT_FLAG_CONTRACTS,ns as EXTENSION_INSTALL_FLAG_CONTRACTS,us as EXTENSION_MANAGE_FLAG_CONTRACTS,ps as EXTENSION_MIGRATE_FLAG_CONTRACTS,oE as EXTENSION_POLICY_MODES,iE as EXTENSION_POLICY_SURFACES,ls as EXTENSION_RELOAD_FLAG_CONTRACTS,aE as EXTENSION_SANDBOX_PROFILES,Qi as EXTENSION_SCOPE_FLAG_CONTRACTS,sE as EXTENSION_TRUST_MODES,os as EXTENSION_UNINSTALL_FLAG_CONTRACTS,dS as EXTERNAL_DEPENDENCY_SOURCE_KIND,pS as EXTERNAL_DEPENDENCY_SOURCE_KIND_ALIAS,$i as FILES_FLAG_CONTRACTS,Ks as FOCUS_FLAG_CONTRACTS,Ds as GC_FLAG_CONTRACTS,lw as GET_DEPTH_VALUES,ea as GET_FLAG_CONTRACTS,Ni as GLOBAL_FLAG_CONTRACTS,_c as GRAPH_DURABLE_CACHE_MIN_ITEMS,mc as GRAPH_DURABLE_CACHE_VERSION,na as GRAPH_FLAG_CONTRACTS,he as GRAPH_SUBCOMMAND_VALUES,ta as GUIDE_FLAG_CONTRACTS,$s as HEALTH_FLAG_CONTRACTS,Hi as HISTORY_AUTHOR_ACKNOWLEDGE_FLAG_CONTRACTS,hS as HISTORY_AUTHOR_ATTRIBUTION_BASELINE,pR as HISTORY_COMPACT_BULK_DEFAULT_MIN_ENTRIES,Vi as HISTORY_COMPACT_FLAG_CONTRACTS,ji as HISTORY_FLAG_CONTRACTS,qi as HISTORY_REDACT_FLAG_CONTRACTS,zi as HISTORY_REPAIR_FLAG_CONTRACTS,yu as INIT_AGENT_GUIDANCE_MODE_VALUES,Yi as INIT_FLAG_CONTRACTS,hs as INSTALL_FLAG_CONTRACTS,Ir as ISSUE_SEVERITY_VALUES,zs as ITEM_COMPLETE_FLAG_CONTRACTS,Xx as ITEM_LATEST_TIMESTAMP_FIELDS,Mg as ITEM_METADATA_KEY_ORDER,qs as ITEM_MUTATE_FLAG_CONTRACTS,Hs as ITEM_REOPEN_FLAG_CONTRACTS,wr as ITEM_TYPE_VALUES,Wx as ITEM_UNION_COLLECTION_FIELDS,Hw as JsonFileContextSignalStoreAdapter,Gi as LEARNINGS_FLAG_CONTRACTS,Hp as LINKED_TEST_ENV_NAME_PATTERN,Vp as LINKED_TEST_PM_CONTEXT_MODE_VALUES,zp as LINKED_TEST_PROTECTED_ENV_KEYS,Kp as LINKED_TEST_WORKSPACE_CONTEXT_MODE_VALUES,Jo as LIST_COMMANDER_STRING_OPTION_CONTRACTS,pw as LIST_COMMAND_DEFAULT_PROJECTIONS,dE as LIST_FILTER_EXTENSION_FLAG_DEFINITIONS,vi as LIST_FILTER_FLAG_CONTRACTS,hw as LIST_SORT_FIELDS,gw as LIST_SORT_ORDER_VALUES,Sx as MAX_CHILD_PROJECTION_ITEMS,Is as MEET_FLAG_CONTRACTS,Zx as MERGE_DRIVER_ARTIFACT_VALUES,Bi as MERGE_FLAG_CONTRACTS,ge as MERGE_SUBCOMMAND_VALUES,tR as MUTATION_EVENT_WIRE_BUDGET,q as MemoryRelationshipGraphAdapter,ti as NEXT_COMMANDER_STRING_OPTION_CONTRACTS,sa as NEXT_FLAG_CONTRACTS,xp as NEXT_OUTPUT_VALUES,Fi as NOTES_FLAG_CONTRACTS,ts as PACKAGE_FLAG_CONTRACTS,rs as PACKAGE_INIT_FLAG_CONTRACTS,Rs as PAUSE_TASK_FLAG_CONTRACTS,ma as PLAN_CREATE_METADATA_PARAMETER_KEYS,Xi as PLAN_FLAG_CONTRACTS,cu as PLAN_SHOW_DEPTH_VALUES,Ee as PLAN_SUBCOMMANDS,du as PLAN_TEMPLATE_NAMES,Ea as PM_CLI_EXPECTED_ERROR_NAME,vA as PM_CLI_GRAMMAR_CONTRACT,IA as PM_CLI_GRAMMAR_NOUNS,jn as PM_CLI_ONLY_TOOL_ACTION_WAIVERS,PA as PM_CLI_SHARED_VERBS,On as PM_COMMAND_ALIAS_CONTRACTS,we as PM_COMMAND_CAPABILITY_CONTRACTS,et as PM_COMMAND_DESTINATION_CONTRACTS,fx as PM_COMMAND_EXIT_CONTRACTS,lx as PM_COMMAND_EXIT_OUTCOME_CONTRACTS,io as PM_COMMAND_OUTPUT_BUDGET_CONTRACTS,ER as PM_COMMAND_OUTPUT_ENVELOPE_CONTRACTS,Ce as PM_COMMAND_POSITIONAL_CONTRACTS,ol as PM_COMMAND_VISIBILITY_CONTRACTS,uE as PM_COMPLETE_LIST_FINDING_CODES,gE as PM_CONTEXT_INTENTS_FILE,vC as PM_CONTEXT_INTENT_CONTRACTS,Gn as PM_CORE_COMMAND_NAMES,w as PM_CORPUS_SHAPE_SCHEMA,qn as PM_DEPRECATED_TOOL_ACTIONS,eo as PM_DIAGNOSTIC_DEGRADATION_STEPS,to as PM_DIAGNOSTIC_OUTPUT_BUDGET_CONTRACTS,Qn as PM_DIAGNOSTIC_OUTPUT_CLASSES,zn as PM_DISCOVERABLE_TOOL_ACTIONS,CR as PM_ERROR_CODE_CATALOG,hR as PM_ERROR_CODE_EXIT_CLASS_CONTRACTS,nr as PM_EXACT_COVERAGE_METRICS,kn as PM_EXTENSION_CAPABILITY_CONTRACTS,$n as PM_EXTENSION_PACKAGE_ACTION_SUBCOMMANDS,vn as PM_EXTENSION_POLICY_MODE_CONTRACTS,Fn as PM_EXTENSION_POLICY_SURFACE_CONTRACTS,Dn as PM_EXTENSION_SANDBOX_PROFILE_CONTRACTS,Nn as PM_EXTENSION_SERVICE_NAME_CONTRACTS,Ln as PM_EXTENSION_TRUST_MODE_CONTRACTS,ES as PM_GITATTRIBUTES_END,AS as PM_GITATTRIBUTES_START,wS as PM_GITATTRIBUTES_V2_END,SS as PM_GITATTRIBUTES_V2_START,Ia as PM_GITIGNORE_END,Oa as PM_GITIGNORE_START,Un as PM_ITEM_ACTION_SUBCOMMANDS,l as PM_MCP_ERROR_CODES,xI as PM_MCP_HTTP_PROTOCOL_VERSION,g_ as PM_MCP_INPUT_REQUEST_METHODS,YO as PM_MCP_LEGACY_PROTOCOL_VERSIONS,A as PM_MCP_META_KEYS,ul as PM_MCP_PROMPT_CONTRACTS,Y as PM_MCP_PROTOCOL_VERSION,pl as PM_MCP_RESOURCE_CONTRACTS,re as PM_MCP_SUBSCRIPTION_ID_META_KEY,xe as PM_MCP_SUPPORTED_PROTOCOL_VERSIONS,yI as PM_MCP_TASKS_EXTENSION,O_ as PM_MCP_TASK_STATUSES,cl as PM_MCP_TOOL_COMMAND_CONTRACTS,DT as PM_MODE_PAIRED_OUTPUT_PROJECTION_CONTRACTS,No as PM_MUTATION_ACTION_CONTRACTS,Zn as PM_OUTPUT_BUDGET_CLASSES,Jn as PM_OUTPUT_DEGRADATION_STEPS,bR as PM_OUTPUT_ENVELOPE_KINDS,ot as PM_PACKAGE_CONVENTIONAL_RESOURCE_ROOTS,nt as PM_PACKAGE_RESOURCE_KINDS,Te as PM_POSITIONAL_ACTION_CONTRACTS,Aa as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA,Ca as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA_VERSION,AC as PM_READ_OUTPUT_COMPOSITION_OPTION_FLAGS,dC as PM_READ_OUTPUT_CONTINUATION_FINGERPRINT_POLICIES,TC as PM_READ_OUTPUT_DIMENSIONS,bC as PM_READ_OUTPUT_OPTION_FLAGS,mC as PM_READ_OUTPUT_SESSION_MAX_SEEN_ITEM_IDS,fC as PM_READ_OUTPUT_SESSION_MIN_TOKENS,CC as PM_READ_OUTPUT_SURFACES,EC as PM_READ_OUTPUT_SURFACE_CONTRACTS,LT as PM_READ_ROW_CONTRACTS,vT as PM_READ_ROW_JQ_SELECTOR,XP as PM_RECOVERY_REFERENCE_FIELDS,H as PM_RECOVERY_REFERENCE_KINDS,fg as PM_REFUSAL_CLOSURE_EXECUTABLE_CANONICAL_CODE_BASELINE,_r as PM_REFUSAL_CLOSURE_EXECUTABLE_CANONICAL_CODE_BASELINE_V2,rM as PM_REFUSAL_CLOSURE_EXECUTABLE_CODE_BASELINE,mr as PM_REFUSAL_CLOSURE_EXECUTABLE_CODE_BASELINE_V2,Ko as PM_REPRODUCIBLE_PROCESS_ENV,mx as PM_SUCCESS_EXIT_CODES,Bn as PM_TOOL_ACTIONS,ha as PM_TOOL_ACTION_PARAMETER_CONTRACTS,ba as PM_TOOL_PARAMETERS_SCHEMA,Ta as PM_TOOL_PARAMETERS_SCHEMA_MAJOR,ya as PM_TOOL_PARAMETERS_SCHEMA_VERSION,la as PM_TOOL_RESERVED_CUSTOM_FIELD_PROPERTIES,er as PM_WORKSPACE_RECIPE_SCHEMA,Wi as PROFILE_FLAG_CONTRACTS,yt as PROFILE_LINT_CODES,gt as PROFILE_LINT_DIMENSIONS,pt as PROFILE_NAMES,Se as PROFILE_SUBCOMMANDS,fe as PmCliError,X as PmClient,lE as PmCompleteListValidationError,h as PmMcpAuthorizationError,Et as PmMcpInputRequiredError,Ht as PmMcpIssuerCredentialStore,u as PmMcpProtocolError,St as PmMcpRequestStateReplayGuard,Lt as PmMcpSubscriptionRegistry,Ne as PmMcpTaskStore,ZT as QUERY_CURSOR_CONTRACT,ys as REINDEX_FLAG_CONTRACTS,Mb as REINDEX_LOCK_ID,je as RELATIONSHIP_GRAPH_SNAPSHOT_VERSION,ws as RELEASE_FLAG_CONTRACTS,Ms as REMIND_FLAG_CONTRACTS,Ye as RESERVED_ITEM_FIELD_NAMES,Es as RESTORE_FLAG_CONTRACTS,Or as RISK_VALUES,XA as RelationshipEventLog,YA as RelationshipEventStore,I as RelationshipGraph,_e as RelationshipKindRegistry,Ki as SCHEMA_FLAG_CONTRACTS,Zo as SEARCH_COMMANDER_STRING_OPTION_CONTRACTS,pE as SEARCH_EXTENSION_FLAG_DEFINITIONS,aa as SEARCH_FLAG_CONTRACTS,cp as SEMANTIC_ATTRIBUTION_LIMITS,vg as SETTINGS_DEFAULTS,vu as SNAPSHOT_SCHEMA,TS as SOURCE_CONTEXT_ACCESS_ENV,CS as SOURCE_CONTEXT_WRITE_OVERRIDE_ENV,xs as START_TASK_FLAG_CONTRACTS,Fs as STATS_FLAG_CONTRACTS,xr as STATUS_VALUES,ki as SUBCOMMAND_GLOBAL_FLAG_CONTRACTS,XC as SUPPORTED_HISTORY_ITEM_HASH_VERSIONS,Jg as SUPPRESS_HOST_OUTPUT_MARKER,vs as TELEMETRY_FLAG_CONTRACTS,kl as TELEMETRY_SUBCOMMANDS,Ns as TEST_ALL_FLAG_CONTRACTS,ks as TEST_FLAG_CONTRACTS,Ls as TEST_RUNS_FLAG_CONTRACTS,Rl as TEST_RUN_MEASUREMENT_LIMIT,xi as TOOL_ACTIVITY_OPTION_CONTRACTS,mi as TOOL_AGGREGATE_OPTION_CONTRACTS,Ai as TOOL_BULK_MUTATION_FILTER_OPTION_CONTRACT_SOURCE,wi as TOOL_CALENDAR_OPTION_CONTRACTS,Si as TOOL_CLOSE_MANY_FILTER_OPTION_CONTRACTS,Ri as TOOL_CONTEXT_OPTION_CONTRACTS,Ti as TOOL_CREATE_OPTION_CONTRACTS,yi as TOOL_CREATE_OPTION_CONTRACT_SOURCE,Oi as TOOL_DEPS_OPTION_CONTRACTS,Ii as TOOL_GRAPH_OPTION_CONTRACTS,fi as TOOL_LIST_FILTER_OPTION_CONTRACTS,_i as TOOL_SEARCH_FILTER_OPTION_CONTRACTS,gi as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACTS,hi as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACT_SOURCE,Ei as TOOL_UPDATE_MANY_FILTER_OPTION_CONTRACTS,bi as TOOL_UPDATE_OPTION_CONTRACTS,Ci as TOOL_UPDATE_OPTION_CONTRACT_SOURCE,Ng as TYPE_TO_FOLDER,Xg as UNKNOWN_SUBCOMMAND_COMPATIBILITY_CODES,di as UPDATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,ui as UPDATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,pi as UPDATE_COMMANDER_STRING_OPTION_CONTRACTS,Ws as UPDATE_FLAG_CONTRACTS,Xs as UPDATE_MANY_FLAG_CONTRACTS,gs as UPGRADE_FLAG_CONTRACTS,Us as VALIDATE_FLAG_CONTRACTS,ia as WORKSPACE_FLAG_CONTRACTS,mo as WORKSPACE_HISTORY_ID,Lu as WORKSPACE_SNAPSHOT_ACTIONS,Va as WorkspaceGraphCache,tE as WorkspaceTransactionInterruptedError,xa as _testOnly,bw as _testOnlyAggregateCommand,gu as _testOnlyConfigCommand,Ix as _testOnlyGetCommand,sd as _testOnlyHealthCommand,Au as _testOnlyInit,Tu as _testOnlyInitAgentGuidance,ZR as _testOnlyItemTransaction,iR as _testOnlyMutationEvents,ox as _testOnlyNextCommand,Hx as _testOnlySearchCommand,bx as _testOnlySimilarity,qu as _testOnlyTemplates,$d as _testOnlyValidateCommand,aS as acceptAssuranceProposals,Fd as acknowledgeLinkedTests,Lc as acknowledgeUnknownAuthorHistoryEvents,vc as acknowledgeUnknownAuthorHistoryEventsFromTransport,Fb as acquireItemMetadataDerivedIndexLock,ye as acquireLock,pO as activateExtensionForTest,wy as activateExtensions,dn as agentSessionEnvironment,Of as aggregate,hl as analyzeAgentProvenanceDescriptorCoverage,qS as analyzeDefectChangeRisk,ZA as analyzeGraphImpact,Da as analyzeHierarchyIntegrity,QA as analyzeKnowledgeGraph,yx as analyzePmCommandExitConformance,Hn as analyzePmToolActionParity,vS as analyzeReconciliationDiscard,JA as analyzeRelationshipExecution,ac as analyzeRelationshipSchedule,e_ as analyzeSdkActionCoverage,tt as analyzeSdkCliParameterCompleteness,Uf as append,fo as appendHistoryEntry,yo as appendWorkspaceAuditEvent,go as appendWorkspaceHistoryChange,tT as applyAcceptanceCriteriaMutations,iS as applyAssurancePreset,i_ as applyBootstrapPagerPolicy,$C as applyContextIntentProjection,wp as applyContextTagProjection,yw as applyFilterValueEcho,BA as applyHistoryPatch,l_ as applyInvocationAuthorOverride,ld as applyPathMigrations,MC as applyReadOutputDimensions,RC as applyReadOutputIncludeModes,hC as applyReadOutputSessionReferences,Jy as applyRegisteredItemFieldDefaultsAndValidation,hd as applyStandaloneNote,ed as applyStoredExtensionMigrationState,nT as applyTagRemovals,ux as applyTerminalOrderingPolicy,gd as artifactKey,$g as asRecordClone,Gg as asRecordOrNull,Ae as assembleWorkspaceRelationshipGraph,hE as assertCompleteListResult,zO as assertExtensionBlueprint,qO as assertExtensionCapabilityUsage,wO as assertExtensionDeactivated,KO as assertExtensionManifestCompatible,VO as assertExtensionManifestMatchesBlueprint,WO as assertExtensionPreflight,$a as assertHierarchyMutationAllowed,uR as assertHistoryCompactTarget,DS as assertHistoryRepairTarget,Io as assertInitializedTracker,fd as assertLinkedArtifactMutationIsUnambiguous,ZO as assertMcpClientCapabilities,JO as assertMcpProtocolHeader,Kh as assertMemoryRelationshipGraphAdapterConformance,sT as assertNoUnknownCsvKeys,xO as assertPackageManifest,fb as assertParentReferenceIsNotSelf,HO as assertProjectProfile,bP as assertProjectRuntimeCompatibility,FT as assertProjectionModeChoice,Oo as assertReadableTrackerRoot,RO as assertRegisteredCommandContract,FO as assertRegisteredCommandOverride,NO as assertRegisteredExporter,OO as assertRegisteredFlags,IO as assertRegisteredHook,kO as assertRegisteredImporter,vO as assertRegisteredItemField,LO as assertRegisteredItemType,BO as assertRegisteredMigration,GO as assertRegisteredParserOverride,$O as assertRegisteredPreflightOverride,DO as assertRegisteredProfile,UO as assertRegisteredRendererOverride,PO as assertRegisteredSearchProvider,jO as assertRegisteredServiceOverride,MO as assertRegisteredVectorStoreAdapter,my as assertRelationshipEdgeAllowed,dr as assertRelationshipGraphAdapterConformance,jE as assuranceAssertionUpdateIsLoosening,BC as attachContextIntentReceipt,Nd as attachLinkedTestMutationProvenance,kd as attachLinkedTestProvenance,Oe as attachMcpServerInfo,qT as attachOutputOmissionReceipt,zC as attachOutputTokenAccounting,qC as attachReadOutputContracts,gC as attachReadOutputSessionReceipt,Uc as auditMergeAttributeFence,xS as auditMergeDriverConfiguration,lc as auditWorkspaceRelationshipGraph,jI as authorizeMcpHttpRequest,sn as boundAgentEpisodeIdentity,aC as boundReadOutputRows,bp as buildChildrenByParent,Nx as buildCompactSearchFilterSummary,Tw as buildContentFilterEcho,zw as buildContextSignalSnapshot,bh as buildCorpusShapeItemPlan,BS as buildDefectRecurrenceIndex,Yc as buildExtensionDescribeResult,Cw as buildGovernanceMissingFilterEcho,bb as buildInvalidTypeError,xx as buildItemChildrenRollup,YR as buildItemCompletionMutations,Ew as buildItemContextRelevanceCandidates,qb as buildItemNotFoundError,Ox as buildItemSchedule,kI as buildMcpAuthorizationDiscoveryUrls,__ as buildMcpCompleteResult,eI as buildMcpDiscoverResult,FI as buildMcpDynamicRegistrationMetadata,SI as buildMcpHttpRequestHeaders,iI as buildMcpInputRequiredResult,MI as buildMcpProtectedResourceMetadata,Gc as buildMergeAttributePatterns,ga as buildPmActionToolInputSchema,iM as buildPmRefusalClosureCensus,mS as buildRelationshipContext,Wb as buildSearchCorpus,Yb as buildSemanticCorpusInput,Ro as buildTrackerInitializationRecovery,rA as buildVectorizationEmbeddingIdentity,nA as buildVectorizationEmbeddingMetadata,vx as buildVerboseSearchFilters,Jw as buildWorkspaceMemorySnapshot,on as canonicalDocument,oy as canonicalizeCommandOptionKey,uy as canonicalizeRelationshipKind,YP as censusPmRecoveryReferenceProducers,_E as certifyCompleteListResult,cO as checkExtensionManifestCompatibility,Em as claim,Sm as claimNext,gS as classifyHistoryAuthorEvent,sR as classifyHostEnvironmentFault,Bx as classifyImplicitSemanticFallbackReason,Zr as classifyItemFormatVersion,Ll as classifyLinkedTestFailure,By as clearActiveExtensionHooks,Cc as clearDurableGraphCache,IT as clearFocusedItem,ka as clearWorkspaceContractsCache,Am as close,kp as closeItem,km as closeTask,c_ as coalesceRepeatedListFlags,ZS as collectBlockedByIds,ew as collectBlockedByIdsFromCorpus,qa as collectDanglingDependencyReferences,rw as collectDependencyBlockedIds,ja as collectDuplicateDependencyRows,uc as collectDuplicateRelationshipEdgeGroups,jx as collectErrorCauseCodes,La as collectHierarchyRelations,jt as collectMcpHeaderAnnotations,za as collectMissingDependencyTargetIds,$p as collectNewOrderingCycleWarnings,cc as collectOrderingCycles,Ba as collectOrderingStorageContradictions,CE as collectPackageContextIntentContracts,st as collectPackageExtensionDirectories,Xy as collectRegisteredItemFieldNames,bT as collectRuntimeCreateFieldValues,Ab as collectRuntimeFilterValues,AT as collectRuntimeUpdateFieldValues,hp as collectSubtreeIds,Ur as collectUsedExtensionCapabilities,iy as commandOptionFlagLabel,Mf as comments,pf as commitImportedItem,JR as commitItemCompletion,XR as commitItemMutations,rE as commitWorkspaceTransaction,Mi as compactFlagAliasContracts,gp as compareCriticalItems,ie as comparePmDateVersions,eE as compareRelationshipSnapshots,Ug as compareTimestampStrings,ME as compileHistoryProvenanceMatcher,FC as composeContextIntentContracts,tO as composeExtension,aO as composeExtensionPackage,nw as computeActionabilityReport,sb as computeHistoryDiff,ic as computeRelationshipCentrality,oc as computeRelationshipDominators,Ha as computeWorkspaceGraphFingerprint,Bf as config,jy as consumeAfterCommandAffectedItems,Af as context,jC as contextIntentRowId,xm as copy,Dl as countFailureCategories,iC as countReadOutputRows,Tm as create,oS as createAssurancePreset,$S as createAssuranceWorkspaceContext,Bg as createCheckpointId,fE as createCompleteListOptions,xy as createCoreCommandHookContext,Qt as createCorpusShapeMeasurement,VE as createEmptyAssuranceDocument,hy as createEmptyExtensionRegistrationRegistry,Ra as createExtensionCommandSdk,Gr as createExtensionContributionInventory,XO as createExtensionTestHarness,lo as createHistoryEntry,TA as createLazyModule,BI as createMcpStaticBearerVerifier,TI as createMcpTaskStore,Bb as createMutationGuardSdk,GT as createOutputOmissionReceipt,Sa as createPmCliExpectedError,f_ as createPmCliProgram,no as createPmCommandOutputBudget,HT as createQueryFingerprint,Vh as createRelationshipGraphScaleFixture,D as createRelationshipGraphSnapshot,Xe as createRelationshipKindRegistry,Xo as createReproducibleProcessRunner,Lx as createSearchCursorFingerprint,Ry as createSerialQueue,lT as createStdinTokenResolver,Yg as createUnknownSubcommandError,Du as createWorkspaceSnapshot,uO as deactivateExtensionForTest,HM as declineServiceOverride,UC as decodeContextIntentCursor,yA as decodeHtmlEntitiesInOptions,Ut as decodeMcpHttpHeaderValue,XT as decodeQueryCursor,KT as decodeQueryCursorEnvelope,WT as decodeQueryCursorState,lC as decodeReadOutputContinuationCursor,Td as dedupeLinkedArtifacts,ww as defaultScoreContextCandidates,JM as defineAfterCommandHook,XM as defineBeforeCommandHook,YM as defineBeforeMutationHook,NM as defineCommand,UM as defineCommandOverride,k as defineCorpusShape,WM as defineExporter,QR as defineExtension,eO as defineExtensionBlueprint,MM as defineExtensionManifest,vM as defineFlag,KM as defineImporter,DM as defineItemField,LM as defineItemType,FM as defineMigration,ek as defineOnIndexHook,QM as defineOnReadHook,ZM as defineOnWriteHook,jM as defineParserOverride,oo as definePmCommandOutputBudget,AR as definePmCommandOutputEnvelope,gR as definePmErrorCodeCatalog,BM as definePreflightOverride,kM as defineProjectProfile,VM as defineRendererOverride,GM as defineSearchProvider,qM as defineServiceOverride,$M as defineVectorStoreAdapter,tr as defineWorkspaceRecipe,Rm as deleteItem,Bu as deleteWorkspaceSnapshot,_y as dependencyToRelationship,Gf as deps,sS as deriveAssuranceProposals,nO as deriveExtensionCapabilities,Tx as derivePmBulkMutationEffect,JP as derivePmRecoveryReferenceObligations,zc as deriveSchemaEvolutionMigrationId,uA as deriveTelemetryCommandResolution,xb as describeAllowedTransitions,yS as describeExtensionActivation,oO as describeExtensionBlueprint,Qd as describeItemOwnershipConflict,_t as describeProfileComposition,ht as describeProjectProfile,NR as describeUnknownError,Tn as detectAgentIdentity,En as detectHarnessIdentity,rc as detectRelationshipCommunities,Cn as diagnoseAgentIdentity,fc as diffRelationshipAuditSnapshots,Pl as diffTestRunMeasurements,cI as digestMcpRequestParameters,Ey as discoverExtensions,Nr as discoverNearbyPmRoot,Uh as discoverProjectRuntimeVersionPins,Ff as docs,Pf as duplicates,hc as durableGraphCachePath,bc as durableGraphCacheStatus,Yr as effectiveItemFormatVersion,OA as emitTelemetryErrorEvent,df as emptyImportedDocument,$t as encodeMcpHttpHeaderValue,VT as encodeQueryCursor,uC as encodeReadOutputContinuationCursor,ab as enforceHistoryStreamPolicyForItem,cb as enforceHistoryStreamPolicyForItems,mR as enrichCliFlagInvocationContract,bt as enrichCliFlagInvocationContracts,zA as ensureMaterializedHistoryTarget,Ma as ensurePmGitignore,ad as ensureScope,pA as ensureSentryInit,cf as ensureTrackerInitialized,ec as enumerateRelationshipPaths,ao as estimatePmOutputTokens,WE as evaluateAssuranceAssertion,XE as evaluateAssuranceGate,dP as evaluateBoundaryFixtures,Iw as evaluateContextRanking,zS as evaluateDefectGateEvidence,KE as evaluateMeasurement,Lo as evaluateMutationGuard,Al as evaluateProvenanceCoverage,Tl as evaluateSemanticAttributionCoverage,qp as evaluateSimilarityGovernance,wb as evaluateTransition,Jb as executeEmbeddingBatchesWithRetry,eA as executeVectorDelete,tA as executeVectorReset,Qb as executeVectorUpsert,Sh as executeWorkspaceRecipe,_d as expandAddGlobEntries,wd as explainSourceTraceability,Nm as extension,Lm as extensionActivate,Dm as extensionDeactivate,vm as extensionList,xg as extensionMigrate,GI as extractMcpTraceContext,UA as extractPatchFailureContext,Id as extractReferencedPmItemIdsFromCommand,Hh as federateRelationshipGraphSnapshots,vf as files,Lf as filesDiscover,Df as filesLookup,Oh as findCoverageDeficits,Bp as findDuplicateClusters,Fc as findGitWorkspaceRoot,Wc as findInstalledNpmPackageCandidate,nc as findRedundantRelationshipEdges,sc as findRelationshipCutStructure,jp as findSimilarItems,RA as finishTelemetryCommand,Kg as flattenFlagListValue,wh as flushTelemetryQueue,Im as focus,tc as forEachMatchedRelationshipEdge,pc as formatDuplicateEdgeGroup,Fa as formatHierarchyRelation,dc as formatOrderingStorageContradiction,NA as formatPmPositionalActionFlagTip,tl as formatProfileApplyHuman,el as formatProfileLintHuman,Zu as formatProfileListHuman,Qu as formatProfileShowHuman,Kc as formatSchemaEvolutionMigrationHuman,zx as formatVectorIndexRecoveryWarnings,fm as gc,wo as generateItemId,xf as get,Gy as getActiveCommandResult,LC as getActiveContextIntentContracts,Br as getActiveExtensionRegistrations,UI as getActiveMcpTraceContext,JE as getAssuranceDeclaration,Ym as getContracts,RT as getFocusedItem,Dr as getHistoryPath,WA as getItemAt,Lr as getItemPath,Go as getMutationActionContract,Pa as getPmGitignoreBlock,vr as getSettingsPath,Xm as getWorkspaceContracts,_o as getWorkspaceHistoryPath,$f as graph,gc as graphAuditBaselinePath,Cl as groupHistoryByEpisode,zM as handleServiceOverride,QO as hasMcpClientExtension,be as hasSubcommandFlagContractsForCommand,oA as hasVectorizationEmbeddingIdentityChanged,iA as hasVectorizationVectorDimensionChanged,YC as hashDocument,JC as hashDocumentForVersion,ZC as hashEmptyDocument,lm as health,Ya as hierarchyAncestors,Ja as hierarchyDescendants,gm as historyCompact,ym as historyCompactBulk,PE as historyEntryMatchesProvenance,mm as historyRedact,_m as historyRepair,hm as historyRepairAll,QS as indexBlockedByIds,Ga as indexHierarchyRelations,sA as inferConsistentVectorDimension,ro as inferPmOutputBudgetClass,jf as init,mE as inspectCompleteListResult,gy as inspectExtensionManifestSchema,Ic as inspectHistoryAuthorStream,Bh as inspectProjectRuntimeCompatibility,Ho as inspectStaleInProgressItems,ho as inspectWorkspaceHistoryState,Fu as inspectWorkspaceSnapshot,qc as installMergeFence,tI as interpretMcpResultType,Op as isAlreadyClaimedError,DR as isCommanderError,Wd as isErrnoError,uS as isExternalDependencySourceKind,K as isFileMissingError,Qg as isHostOutputSuppressed,m as isMcpRecord,Do as isMutationAction,fy as isOrderingRelationshipKind,ub as isPlaceholderReferenceToken,wa as isPmCliExpectedError,Kn as isPmExtensionCapabilityContract,Xn as isPmExtensionPolicyModeContract,Yn as isPmExtensionPolicySurfaceContract,Wn as isPmExtensionServiceNameContract,hx as isPmKnownExitCode,wR as isPmMutationReceipt,_x as isPmSuccessfulExitCode,Vn as isPmToolAction,jh as isProjectMutatingInvocation,CA as isPureSnakeCaseAlias,kC as isReadOutputBudgetExceeded,UT as isReadRowContract,Oc as isRuntimeRecord,EA as isTerminalPlanMode,ST as isTerminalStatus,Er as isTimestampLiteral,KR as itemDocumentToMutationOptions,Rx as itemHasSchedule,$o as jaccardSimilarity,Nf as learnings,Wg as levenshteinDistanceWithinLimit,Hd as limitAnnotationEntries,vd as linkedTestTrustFingerprint,iO as lintExtensionBlueprint,yy as lintExtensionManifestSchema,Tt as lintProjectProfile,Ef as list,mn as listAgentProvenanceAdapters,a_ as listAliasPluralKeys,Sf as listAllComplete,Ub as listAllDocumentCandidatesCached,ko as listAllItemMetadata,jb as listAllItemMetadataLight,YE as listAssuranceDeclarations,rS as listAssuranceVerdicts,Th as listBuiltinCorpusShapes,UR as listCoreClosedDomainContracts,fw as listGetProjectionFields,OS as listInvalidProvenanceHistoryStreamIds,uw as listListProjectionFields,MS as listMergeReceipts,Fo as listMutationActions,rR as listMutationEvents,yr as listPmCommandFlagBudgets,al as listPmCommandsForFamily,sl as listPmCommandsForTier,ue as listPmFlagLexicon,RM as listPmFlagSpellingInventory,dl as listPmMcpToolsForProfile,gM as listPmRequiredArgumentRefusalContracts,yM as listPmSubcommandRefusalContracts,mt as listProfiles,bM as listTrackerPreflightRecoveryContracts,Gu as listWorkspaceSnapshots,bE as loadContextIntentRuntimeLayers,zu as loadCreateTemplateOptions,Sy as loadExtensions,Ec as loadGraphAuditBaseline,zg as loadMutationCheckpoint,E as loadRelationshipGraphAdapter,Po as locateItem,iT as looksLikeGenericKeyValueEntry,sC as mapReadOutputRows,kS as markMergeReceiptReconciled,Eb as matchesRuntimeFilters,wA as maybeRunFirstUseTelemetryPrompt,Ah as measureCorpusShapePlan,rT as mergeAdditiveTags,rO as mergeExtensionBlueprints,Vx as mergeHistoryStreams,Yx as mergeItemDocuments,Jx as mergeJsonDocuments,d_ as mergeLinkedTestTwoTokenEntries,Kx as mergeRelationshipEventStreams,Ep as mergeSortedWarnings,AA as migrateItemFilesToFormat,Hb as mutateItem,zb as mutateItemWithHistoryContext,To as mutateWorkspaceJsonWithHistory,Rf as next,hn as normalizeAgentProvenanceAdapterValue,zd as normalizeAnnotationTransportOptions,FE as normalizeAssuranceEvaluation,DE as normalizeAssuranceMutation,p_ as normalizeBootstrapInvocation,hT as normalizeBulkIdsValue,Ua as normalizeDependencyGraphTarget,fS as normalizeDependencySeedId,lS as normalizeDependencySourceKind,Fr as normalizeExtensionContributionInventory,RS as normalizeInvalidHistoryProvenance,IR as normalizeItemAddressInvocation,Jr as normalizeItemFormatVersion,So as normalizeItemId,tn as normalizeItemMetadata,s_ as normalizeLegacyExtensionActionSyntax,md as normalizeLinkedPath,pb as normalizeParentReferenceValue,lt as normalizeProfileName,Eo as normalizeRawItemId,OC as normalizeReadOutputIncludeModeOptions,rb as normalizeReplayPatchOps,Uo as normalizeSimilarityText,ET as normalizeStatusForRegistry,en as normalizeStatusInput,TT as normalizeStatusInputWithRegistry,LR as normalizeThrownExitCode,kf as notes,Ar as nowIso,yc as openDurableGraphCache,aI as openMcpRequestState,Za as orderingPredecessors,Qa as orderingSuccessors,vw as packContextCandidates,yp as packRankedContextItems,Vm as packageActivate,Hm as packageCatalog,Km as packageDeactivate,qm as packageDescribe,jm as packageDoctor,$m as packageInstall,Fm as packageLifecycle,Gm as packageList,Bm as packageManage,Rg as packageMigrate,zm as packageReload,Um as packageUninstall,JT as paginateQueryRows,cd as parseAddEntries,dd as parseAddGlobEntries,Kd as parseAnnotationTextInput,zR as parseAtomicMutationControls,o_ as parseBootstrapCommandName,t_ as parseBootstrapGlobalOptions,n_ as parseBootstrapHelpRequest,u_ as parseBootstrapTypeValue,_T as parseBulkIdsText,mp as parseContextDepth,pp as parseContextFocusFields,yE as parseContextIntentDeclarations,_p as parseContextSections,qw as parseContextSignalSnapshot,oT as parseCsvKv,VS as parseDefectChangeRiskRequest,HS as parseDefectRecurrencePolicy,Ru as parseEvalQuerySet,xc as parseGraphSubcommand,OE as parseHistoryProvenanceFilters,EE as parseIntegerLimit,wT as parseItemDocument,HR as parseItemMutationBatch,Cb as parseLimit,ru as parseLinkedTestAssertionEqualsMap,nu as parseLinkedTestAssertionGteMap,Yp as parseLinkedTestBoolean,Jp as parseLinkedTestContextMode,Xp as parseLinkedTestEnvClear,Wp as parseLinkedTestEnvSet,ou as parseLinkedTestJsonEntries,tu as parseLinkedTestMinLines,eu as parseLinkedTestRegexList,Qp as parseLinkedTestStringList,Zp as parseLinkedTestWorkspaceContextMode,C_ as parseMcpCachePolicy,m_ as parseMcpImplementation,Me as parseMcpInputRequests,Ot as parseMcpInputResponses,z_ as parseMcpSubscriptionFilter,ud as parseMigrateEntries,ow as parseMultiValueFilter,xR as parseMutationReceipt,mT as parseOptionalNonNegativeInteger,fT as parseOptionalNumber,SE as parsePriority,aw as parsePriorityFilterSet,_C as parseReadOutputSession,Yy as parseRegisteredItemFieldAssignments,z as parseRelationshipGraphSnapshot,pd as parseRemoveEntries,Sd as parseSourceLineRange,hb as parseStatusFilterCsv,iw as parseStringFilterSet,Hr as parseTags,Ol as parseTestRunMeasurements,wE as parseType,sw as parseTypeFilterSet,Nc as parseUnknownAuthorHistoryEventCoordinates,ix as partitionDecisionEntries,ib as patchPathToChangedField,Tr as pathExists,Mm as pauseTask,Tc as persistDurableGraphResult,Rb as persistSelectedItemFormat,kx as planAgentIdentityVocabularyMutation,Xw as planCompletedAtBackfill,Ct as planProfileApplication,KP as planRelationshipEventBackfill,wc as planRelationshipRemediation,Hc as planSchemaEvolutionMigration,Mc as planUnknownAuthorHistoryAcknowledgment,$u as planWorkspaceSnapshotRestore,DA as positionalShapeKey,FA as positionalSignatureKey,dO as preflightExtension,Bo as prepareSimilarityText,cT as preserveMutationStdinTokenFields,aT as preserveMutationStdinTokenLiterals,KC as printError,VC as printResult,sm as profile,dm as profileApply,pm as profileLint,am as profileList,cm as profileShow,Uy as projectAfterCommandItemSnapshot,up as projectContextFocusRows,xl as projectFleetAttributionAnalytics,IE as projectHistoryProvenance,po as projectPmDiagnosticOutput,uo as projectPmDiagnosticText,Sl as projectProvenanceCoverageAnalytics,Gd as projectValidateCounts,cS as promoteAssuranceAssertion,_P as pruneCompileCacheGenerations,ZE as putAssuranceDeclaration,QE as putAssuranceDeclarationBundle,Nb as queryItemMetadataIndex,vb as queryLinkedFileMetadataIndex,Lb as querySimilarItemMetadataIndex,Il as queryTestRunMeasurementsBelow,xn as quoteCommandArg,wn as quoteWindowsCommandArg,$R as rankCommandPaths,Vd as readAnnotationEntries,bn as readAuthorEnvironment,Bl as readBooleanOption,$w as readContextUsageAffinity,ql as readCsvListOption,Qc as readExtensionMigrationState,Cr as readFileIfExists,ni as readFirstStringFromCommanderOptions,oi as readFirstValueFromCommanderOptions,bl as readHistoryAnalyticsWindow,kT as readHistoryEntries,ml as readImprovementLedger,Gb as readItemMetadataDerivedIndexState,Mo as readLocatedItem,oC as readOutputBudgetCollections,pC as readOutputCollectionFingerprint,nC as readOutputContinuationRowCollections,tC as readOutputContinuationRowPaths,xC as readOutputIncludeModeOptions,rC as readOutputRowCollections,eC as readOutputRowPaths,yC as readOutputSessionRemainingTokens,it as readPmPackageManifest,Jm as readRequiredString,xo as readSettings,Ob as readSettingsWithMetadata,ii as readStringArrayFromCommanderOptions,jl as readStringOption,vR as readThrownExitCode,aA as readVectorizationStatusLedger,TE as readWorkspaceContextIntentContracts,Kw as readWorkspaceContextSignals,Zw as readWorkspaceMemory,jr as reconcileExtensionCapabilityUsage,bo as reconcileWorkspaceJsonHistory,$y as recordAfterCommandAffectedItem,tS as recordAssuranceVerdict,ip as recordClaimSemanticAttribution,Dw as recordContextUsageServing,Fw as recordContextUsageTouch,Gw as recordContextUsageTouches,ap as recordFocusSemanticAttribution,fl as recordImprovementObservation,sp as recordReleaseSemanticAttribution,$b as refreshItemMetadataDerivedIndex,jc as refreshMergeAttributeFenceIfInstalled,dA as refreshSearchArtifactsForMutation,_n as registerAgentProvenanceAdapters,fn as registerHarnessSignalDescriptors,NT as registerOutputMaterialFieldGroups,wm as release,eS as removeAssuranceDeclaration,br as removeFileIfExists,Ad as renameArtifactsResultKey,tp as renderCalendarMarkdown,rp as renderCalendarToon,Sp as renderContextMarkdown,Jc as renderExtensionDescribeMarkdown,Xc as renderExtensionSurfaceMarkdown,ff as renderGuideMarkdown,kR as renderMissingOptionRetry,sx as renderNextMarkdown,jR as renderPmClosedDomainHelp,Rn as renderPmCommand,Mn as renderPmCommandAliasMigrationHint,ll as renderPmCommandVisibilityMarkdown,IM as renderPmFlagLexiconMarkdown,sM as renderPmRefusalClosureCensusMarkdown,yb as renderRowsAsCsv,Tb as renderRowsAsTable,bm as reopen,qA as replayHistoryToTarget,eb as replayToCanonicalItemDocument,QC as replayToItemDocument,dx as requireTerminalReason,px as requireTerminalReasonWithRecovery,Ly as resetActiveExtensionRuntimeState,Wa as resetWorkspaceGraphCache,an as resolveAgentSessionContextFromSignals,Zd as resolveAnnotationIndex,Xd as resolveAnnotationInput,MT as resolveAuthor,Sn as resolveAuthorIdentity,db as resolveBodyFileContent,Ch as resolveBuiltinCorpusShape,ep as resolveCalendarOutputFormat,yR as resolveCanonicalPmErrorCodeContract,ly as resolveCanonicalRelationshipKind,PT as resolveClaimPrincipal,gT as resolveCliBulkIdsInput,cy as resolveCommandOptionPolicyState,mP as resolveCompileCacheGeneration,Ww as resolveCompletionTimestamp,ry as resolveConfiguredPmPackageRoot,_w as resolveContentFieldFilters,GC as resolveContextIntentContract,lp as resolveContextOutputFormat,fp as resolveContextTokenBudget,Ax as resolveCreateExplicitEmptyFlag,Vb as resolveEmbeddingProviders,nd as resolveExtensionInstallSourceIdentity,Zc as resolveExtensionMigrationStatePath,Ay as resolveExtensionRoots,Vg as resolveFlagValueKind,uf as resolveGuideOutputFormat,_l as resolveHistoryEpisodeGroupIdentity,RE as resolveHistoryProvenanceDimensions,HA as resolveHistorySubject,jA as resolveHistoryTarget,$x as resolveHybridSemanticWeight,kr as resolveImplicitPmRoot,jg as resolveIsoOrRelative,tw as resolveItemBlockers,VR as resolveItemMutationDocument,Mr as resolveItemTypeRegistry,yT as resolveItemTypesFilePath,Fl as resolveLinkedTestFailureExitCode,Pd as resolveLinkedTestSourceRef,Md as resolveLinkedTestSourceWorkspaceRoot,Ld as resolveLinkedTestTrust,Dd as resolveLinkedTestTrustBatch,H_ as resolveMcpAcknowledgedSubscriptionFilter,Re as resolveMcpRequestContext,Dc as resolveMergeInstallContext,mw as resolveMissingMetadataFilters,MR as resolveMissingOptionPlaceholder,$T as resolveModePairedOutputOmissionReceipt,nx as resolveNextOutputFormat,BT as resolveOutputOmissionReceipt,ty as resolvePmCliVersion,Pn as resolvePmCommandAlias,nl as resolvePmCommandCapabilityFamily,gx as resolvePmCommandExitContract,so as resolvePmCommandOutputBudget,SR as resolvePmCommandOutputEnvelope,MA as resolvePmCommandPositionalContract,il as resolvePmCommandVisibilityTier,co as resolvePmDiagnosticOutputBudget,TR as resolvePmErrorCodeContract,Ag as resolvePmFlagSemanticConcept,ey as resolvePmPackageRootFromModule,kA as resolvePmPositionalActionContract,pa as resolvePmPositionalActionFlagContracts,me as resolvePmRoot,fa as resolvePmToolCustomFieldCollision,mb as resolvePriority,ft as resolveProfile,$c as resolveProjectMergeTypeFolders,YT as resolveQueryCursorStart,IC as resolveReadOutputDimensions,NC as resolveReadOutputEncoding,cC as resolveReadOutputRecoveryBudget,SC as resolveReadOutputSurface,jT as resolveReadRowContract,PR as resolveRecoveryCommandName,Zy as resolveRegisteredSearchProvider,Qy as resolveRegisteredVectorStoreAdapter,Wo as resolveReproducibleProcessEnvironment,Kr as resolveRuntimeFieldRegistry,Vr as resolveRuntimeStatusRegistry,Kb as resolveSearchCorpusFields,Fx as resolveSearchMaxResults,Dx as resolveSearchPage,Gx as resolveSearchScoreThreshold,Ux as resolveSearchTuning,Xb as resolveSemanticCorpusCharacterLimit,op as resolveSemanticLineageIds,Pb as resolveSettingsWithSemanticRuntimeDefaults,bS as resolveSourceContextWritePolicy,rl as resolveStartTaskInProgressStatus,U as resolveSubcommandFlagContractsForCommand,Lg as resolveTelemetryErrorCategory,cx as resolveTerminalReason,ay as resolveTypeDefinition,sy as resolveTypeName,gb as resolveTypeSynonym,Sb as resolveTypeWorkflows,kc as resolveUnknownAuthorAcknowledgmentSelector,qx as resolveVectorIndexRecovery,Zb as resolveVectorStores,va as resolveWorkspaceRelationshipKindRegistry,Om as restore,Hg as restoreCheckpointItems,Ao as restoreWorkspaceJsonFromHistory,ju as restoreWorkspaceSnapshot,Uu as restoreWorkspaceSnapshotWithRecovery,Qm as runAction,qy as runActiveBeforeMutationHooks,Hy as runActiveCommandHandler,zy as runActiveOnIndexHooks,zr as runActiveOnReadHooks,qr as runActiveOnWriteHooks,Vy as runActiveParserOverride,Ky as runActivePreflightOverride,Wy as runActiveServiceOverride,Na as runActivity,by as runAfterCommandHooks,Bd as runAggregate,Jd as runAnnotationCommand,qd as runAppend,XS as runAssuranceAction,YS as runAssuranceDispatch,Cy as runBeforeCommandHooks,np as runCalendar,Ip as runClaim,Pp as runClaimNext,Np as runClose,Lp as runCloseMany,Dp as runComments,mf as runCompletion,hu as runConfig,ct as runContext,kw as runContextEvaluationCorpus,Pw as runContextEvaluationScenario,uu as runCopy,iu as runCreate,lu as runDelete,Xa as runDeps,Ed as runDocs,RR as runDuplicates,Pu as runEval,ku as runEvent,od as runExtension,rd as runExtensionMigrateAction,td as runExtensionMigrations,xd as runFiles,Od as runFilesDiscover,Rd as runFilesLookup,wl as runFleetAttributionAnalytics,fu as runFocus,_u as runGc,mu as runGet,Rc as runGraph,lf as runGuide,id as runHealth,Cx as runHistory,dR as runHistoryCompact,lR as runHistoryCompactBulk,VA as runHistoryRedact,LS as runHistoryRepair,FS as runHistoryRepairAll,Eu as runInit,Cu as runInitAgentGuidance,Fp as runLearnings,bd as runLinkedArtifacts,Gl as runLinkedTests,jd as runList,Mu as runMeet,Qx as runMergeDriver,Bc as runMergeInstall,NS as runMergeReceiptReport,eR as runMergeReconcile,Rp as runNext,Gp as runNotes,pu as runPlan,Ju as runProfileApply,Yu as runProfileLint,Wu as runProfileList,Xu as runProfileShow,El as runProvenanceCoverageAnalytics,lO as runRegisteredCommandForTest,gO as runRegisteredCommandOverrideForTest,SO as runRegisteredExporterForTest,mO as runRegisteredHookForTest,EO as runRegisteredImporterForTest,AO as runRegisteredMigrationForTest,fO as runRegisteredMutationGuardForTest,_O as runRegisteredParserOverrideForTest,hO as runRegisteredPreflightOverrideForTest,yO as runRegisteredRendererOverrideForTest,CO as runRegisteredSearchProviderForTest,TO as runRegisteredServiceOverrideForTest,bO as runRegisteredVectorStoreAdapterForTest,At as runReindex,Mp as runRelease,Nu as runRemind,fR as runReopen,vp as runRestore,Vc as runSchemaEvolutionMigration,Ou as runSearch,Eh as runSearchRefreshWorkerEntrypoint,_f as runStartBackgroundRun,Ml as runStats,Nl as runTelemetry,Vu as runTemplatesList,Hu as runTemplatesSave,Ku as runTemplatesShow,$l as runTest,Ul as runTestAll,hf as runTestRunsList,yf as runTestRunsLogs,Cf as runTestRunsResume,gf as runTestRunsStatus,Tf as runTestRunsStop,bf as runTestRunsWorker,su as runUpdate,au as runUpdateMany,dt as runUpgrade,Ud as runValidate,Zm as runWithActiveExtensions,cn as runWithAgentSessionContext,DC as runWithContextIntentContracts,AE as runWithDiscoveredContextIntentContracts,gn as runWithHarnessDetectionSignals,$I as runWithMcpTraceContext,Yo as runWithReproducibleProcessEnvironment,yn as runWithWorkspaceHarnessSignalDescriptors,rr as runWithWorkspaceRecipe,Px as runWorkspaceTransactionGc,Sc as saveGraphAuditBaseline,_S as scanExtensionHostVersions,Pc as scanHistoryAuthorAttribution,Qr as scanItemFormatVersions,vo as scanMutationSecrets,IS as scanProvenanceResolverHealth,Vo as scanStaleInProgressItems,GS as scanStorageIntegrity,qf as schema,Yf as schemaAddField,Wf as schemaAddStatus,Vf as schemaAddType,em as schemaApplyPreset,tm as schemaInferTypes,zf as schemaList,Zf as schemaListFields,om as schemaRemapStatus,Jf as schemaRemoveField,Xf as schemaRemoveStatus,Kf as schemaRemoveType,nm as schemaRenameField,rm as schemaRenameType,Hf as schemaShow,Qf as schemaShowField,im as schemaShowStatus,GR as scoreCommandPathMatch,xw as scoreContextCandidates,Rw as scoreContextCandidatesWithActiveExtensions,qo as scoreItemSimilarity,TM as scorePmGrammarRefusalClosure,dM as scorePmRefusalClosure,zo as scorePreparedItemSimilarity,AM as scoreTrackerPreflightRecoveryClosure,sI as sealMcpRequestState,wf as search,tx as searchWorkspaceMemory,rx as searchWorkspaceMemoryReadResult,zT as selectCursorSemanticOptions,af as selectImportAuthor,vI as selectMcpClientRegistrationMode,ex as selectWorkspaceMemory,Qw as selectWorkspaceMemoryRollups,dp as semanticAttributionAffinity,_A as sentryCaptureCliError,mA as sentryFinishCommandSpan,gA as sentryFlush,hA as sentryLogCliUsageError,lA as sentrySetCommandContext,fA as sentryStartCommandSpan,nn as serializeItemDocument,BR as serializeNdjsonRows,qR as serializeNdjsonStream,Dy as setActiveCommandContext,Fy as setActiveCommandResult,Iy as setActiveExtensionCommands,Oy as setActiveExtensionHooks,Py as setActiveExtensionParsers,My as setActiveExtensionPreflight,vy as setActiveExtensionRegistrations,Ny as setActiveExtensionRenderers,ky as setActiveExtensionServices,OT as setFocusedItem,SA as shouldCompletePlanOnClose,Ac as shouldPersistDurableGraphCache,uT as shouldResolveMutationStdinTokenField,pT as shouldResolveMutationStdinTokens,kb as shouldRunSearchRefreshInForeground,Up as similarityAdvisoryWarnings,QT as sliceReadOutputRowCollection,yd as sortLinkedArtifacts,eT as splitAcceptanceCriteria,bA as splitCommaList,rn as splitFrontMatter,PC as stabilizeReadOutputReceiptEstimates,W as stableStringify,Ty as stableValueEquals,Pm as startTask,xA as startTelemetryCommand,If as stats,CT as statusIsTerminal,r_ as stripGlobalBootstrapTokens,nR as subscribeMutationEventBatches,oR as subscribeMutationEvents,Mx as summarizeAgentIdentityVocabulary,gl as summarizeAgentModelProvenance,yl as summarizeAgentProvenance,Mw as summarizeContextEvaluationReports,vl as summarizeContextPreflight,kE as summarizeHistoryProvenance,bu as summarizeInitResult,PS as summarizeMergeReceipt,Ex as supportsCreateExplicitEmpty,OR as supportsItemIdAlias,Zg as suppressHostOutput,de as syncRelationshipGraphAdapter,sO as synthesizeExtensionManifest,ua as toCompletionFlagString,Ap as toContextFocusItem,Tp as toContextPackingSummary,Cp as toContextRankingSummary,Fg as toErrorMessage,Hl as toEstimatedMinutesValue,cE as toExtensionFlagDefinitions,Yl as toImportBoolean,ef as toImportConfidence,Xl as toImportInteger,of as toImportLinkedDocs,nf as toImportLinkedFiles,sf as toImportLinkedTests,rf as toImportLogEntries,tf as toImportNormalizedEnum,Ql as toImportNumberMap,Vl as toImportPriority,Wl as toImportStatus,Jl as toImportStringList,Zl as toImportStringMap,Kl as toImportTags,xT as toItemRecord,zl as toNonEmptyImportString,Dg as toNonEmptyStringOrUndefined,tb as toReplayDocument,jo as tokenizeSimilarityText,dT as transferMutationStdinTokenPolicy,aR as translateHostEnvironmentFault,Cm as update,Wm as upgrade,um as validate,qE as validateAssertionDefinition,HE as validateAssuranceDocument,zE as validateGateDefinition,WR as validateItemMutationRows,Cd as validateLinkedPaths,LI as validateMcpAuthorizationResponseIssuer,NI as validateMcpAuthorizationServerMetadata,DI as validateMcpClientMetadataDocument,wI as validateMcpHttpRequestHeaders,pI as validateMcpJsonSchema,BE as validateMeasurementDefinition,lb as validateMissingParentReference,wC as validateReadOutputOptions,_b as validateSprintOrReleaseValue,dy as validateTypeOptions,_R as verifyCliFlagInvocationParity,LA as verifyExplicitPositionalSlotCensus,ob as verifyHistoryChain,nb as verifyHistoryChainWithVersion,KA as verifyHistoryEntries,$A as verifyPmCliGrammar,GA as verifyPmCommandPositionalContracts,OM as verifyPmFlagLexicon,eM as verifyPmRecoveryKindRuntimeCoverage,lg as verifyPmRecoveryProducerRuntimeCoverage,QP as verifyPmRecoveryReferences,oM as verifyPmRefusalClosureIdentityRatchet,nM as verifyPmRefusalClosureRatchet,ZP as verifyPmRefusalReachability,li as verifyToolOptionCliParity,Pi as withFlagAliasMetadata,cR as withHostEnvironmentBoundary,dI as withMcpCachePolicy,Ka as workspaceGraphCache,Yd as wrapOwnershipConflict,FR as wrapThrownErrorForSentry,An as writeAuthorEnvironment,le as writeFileAtomic,qg as writeMutationCheckpoint,Ib as writeSettings,HC as writeStdout,cA as writeVectorizationStatusLedger,Co as writeWorkspaceJsonWithHistory};
|
|
7
8
|
//# sourceMappingURL=sdk.js.map
|