@unbrained/pm-cli 2026.8.17 → 2026.8.18
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/AGENTS.md +4 -3
- package/CHANGELOG.md +35 -3
- package/README.md +3 -3
- package/dist/cli/error-guidance.js +7 -4
- package/dist/cli/register-list-query.js +132 -51
- package/dist/cli-bundle/bundle-manifest.json +146 -146
- package/dist/cli-bundle/chunks/chunk-5UZZAJKR.js +3 -0
- package/dist/cli-bundle/chunks/{chunk-YM2YAMF7.js → chunk-ALDJGKAK.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-HBJAS566.js → chunk-BSK2IN3C.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-DY4DMUMC.js +197 -0
- package/dist/cli-bundle/chunks/{chunk-JOKATURE.js → chunk-GNFAFIJI.js} +9 -9
- package/dist/cli-bundle/chunks/chunk-L5Q2CLPE.js +35 -0
- package/dist/cli-bundle/chunks/{chunk-TPXZIBIV.js → chunk-PVRUN5ZS.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-7IBRGCHX.js → chunk-RZQTVMRQ.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-SARFF5H5.js +3 -0
- package/dist/cli-bundle/chunks/chunk-UYCLQVL2.js +13 -0
- package/dist/cli-bundle/chunks/{chunk-3UEGXBMR.js → chunk-YRGOLZA7.js} +58 -54
- package/dist/cli-bundle/chunks/register-list-query-I23LALEE.js +11 -0
- package/dist/cli-bundle/chunks/{register-mutation-4WBRPXLV.js → register-mutation-6YGU3GPH.js} +2 -2
- package/dist/cli-bundle/chunks/{register-operations-SSENDH5B.js → register-operations-4HTFC6J7.js} +2 -2
- package/dist/cli-bundle/chunks/{register-setup-DOSFBGKE.js → register-setup-PPPEF3SN.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-2PN4TJXH.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-ZQPGZZWQ.js → chunk-3TKWMNKF.js} +3 -3
- package/dist/cli-bundle/focused-chunks/chunk-5AF3ZBNB.js +155 -0
- package/dist/cli-bundle/focused-chunks/chunk-C5IW2NDA.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-SYZENPIT.js → chunk-EUEGXZ2A.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-XKAMP5OU.js → chunk-EX6MKP2X.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-CYFK5UPB.js → chunk-K43KKAFS.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-ATEY76SX.js → chunk-M62NO7EI.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-SALH6B6K.js → chunk-ODOVCP45.js} +5 -5
- package/dist/cli-bundle/focused-chunks/chunk-RNDNMARJ.js +16 -0
- package/dist/cli-bundle/focused-chunks/chunk-TN4AE665.js +26 -0
- package/dist/cli-bundle/focused-chunks/chunk-TVV2DONO.js +2 -0
- package/dist/cli-bundle/focused-chunks/chunk-UI6AJ5TD.js +4 -0
- package/dist/cli-bundle/focused-chunks/{chunk-MHPIL773.js → chunk-V5XTGLK7.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-KP2VQQVQ.js → chunk-WGHQVU6P.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-XYNBXTDQ.js +2 -0
- package/dist/cli-bundle/focused-chunks/chunk-Z56ECT7I.js +2 -0
- package/dist/cli-bundle/main.js +7 -7
- 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 +32 -32
- 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 +4 -4
- package/dist/core/config/nested-settings.js +8 -2
- package/dist/core/extensions/exporter-output-contract.d.ts +12 -0
- package/dist/core/extensions/exporter-output-contract.js +67 -0
- package/dist/core/extensions/extension-types.d.ts +36 -1
- package/dist/core/extensions/extension-types.js +2 -2
- package/dist/core/extensions/loader.js +35 -44
- package/dist/core/history/event-index.d.ts +5 -0
- package/dist/core/history/event-index.js +133 -27
- package/dist/core/sentry/helpers.js +3 -3
- package/dist/core/shared/constants.js +5 -2
- package/dist/core/store/settings-validator.d.ts +4 -0
- package/dist/core/store/settings-validator.js +3 -2
- package/dist/core/store/settings.js +8 -2
- package/dist/mcp/tool-definitions.js +12 -7
- package/dist/sdk/agent/refusal-reachability.js +4 -4
- package/dist/sdk/authoring.d.ts +1 -1
- package/dist/sdk/authoring.js +2 -2
- package/dist/sdk/cli-bootstrap.d.ts +2 -2
- package/dist/sdk/cli-bootstrap.js +4 -4
- package/dist/sdk/cli-contracts/command-aliases.d.ts +34 -2
- package/dist/sdk/cli-contracts/command-aliases.js +64 -13
- package/dist/sdk/cli-contracts/enum-contracts.d.ts +4 -0
- package/dist/sdk/cli-contracts/enum-contracts.js +9 -2
- package/dist/sdk/cli-contracts/flag-contracts.js +11 -7
- package/dist/sdk/cli-contracts/grammar-contracts.d.ts +70 -0
- package/dist/sdk/cli-contracts/grammar-contracts.js +345 -0
- package/dist/sdk/cli-contracts/runtime-contracts.d.ts +19 -2
- package/dist/sdk/cli-contracts/runtime-contracts.js +61 -14
- package/dist/sdk/cli-contracts/tool-parameter-tables.js +7 -2
- package/dist/sdk/cli-contracts/tool-schema.d.ts +2 -2
- package/dist/sdk/cli-contracts/tool-schema.js +20 -11
- package/dist/sdk/cli-contracts.d.ts +2 -2
- package/dist/sdk/cli-contracts.js +4 -4
- package/dist/sdk/completion.js +13 -15
- package/dist/sdk/compose.d.ts +3 -3
- package/dist/sdk/compose.js +2 -2
- package/dist/sdk/contracts.d.ts +1 -0
- package/dist/sdk/contracts.js +3 -2
- package/dist/sdk/core.d.ts +1 -1
- package/dist/sdk/core.js +3 -3
- package/dist/sdk/environment/host-environment-errors.js +3 -3
- package/dist/sdk/generated/generated-error-code-catalog-part-1.js +54 -14
- package/dist/sdk/generated/generated-error-code-catalog-part-2.js +50 -14
- package/dist/sdk/guide-topics.js +5 -5
- package/dist/sdk/index.d.ts +4 -3
- package/dist/sdk/index.js +6 -5
- package/dist/sdk/init-agent-guidance.js +3 -3
- package/dist/sdk/mutation-events.d.ts +18 -2
- package/dist/sdk/mutation-events.js +59 -16
- package/dist/sdk/output.d.ts +44 -0
- package/dist/sdk/output.js +28 -2
- package/dist/sdk/query/complete-list.d.ts +94 -0
- package/dist/sdk/query/complete-list.js +173 -0
- package/dist/sdk/query/list.js +5 -2
- package/dist/sdk/query.d.ts +1 -0
- package/dist/sdk/query.js +3 -2
- package/dist/sdk/read-output-contracts.d.ts +2 -2
- package/dist/sdk/read-output-contracts.js +36 -9
- package/dist/sdk/runtime-extended-actions.js +10 -2
- package/dist/sdk/runtime.d.ts +8 -2
- package/dist/sdk/runtime.js +11 -8
- package/dist/types.d.ts +5 -0
- package/dist/types.js +2 -2
- package/docs/AGENT_GUIDE.md +25 -9
- package/docs/CLI_GRAMMAR.md +106 -0
- package/docs/COMMANDS.md +23 -23
- package/docs/ONBOARDING.md +4 -4
- package/docs/QUICKSTART.md +1 -1
- package/docs/README.md +2 -0
- package/docs/RELEASING.md +30 -6
- package/docs/SDK.md +36 -2
- package/docs/SDK_ARTIFACT_OUTPUT.md +72 -0
- package/docs/SDK_CONTEXT_COORDINATION.md +46 -12
- package/docs/agent-task-token-baseline.json +5 -5
- package/marketplace.json +2 -2
- package/package.json +3 -2
- 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/sdk/public-surface.json +652 -31
- package/dist/cli-bundle/chunks/chunk-2QLOXC3V.js +0 -3
- package/dist/cli-bundle/chunks/chunk-4JPYF536.js +0 -35
- package/dist/cli-bundle/chunks/chunk-6VDLG2FC.js +0 -13
- package/dist/cli-bundle/chunks/chunk-ION3E43Q.js +0 -197
- package/dist/cli-bundle/chunks/chunk-OAC5NIV4.js +0 -3
- package/dist/cli-bundle/chunks/register-list-query-Q7KII4G5.js +0 -10
- package/dist/cli-bundle/focused-chunks/chunk-267MUUS6.js +0 -16
- package/dist/cli-bundle/focused-chunks/chunk-2NNFLLNG.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-2QSAKMIH.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-BUCG4ZI2.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-EHXIKD6K.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-KGEXTMPG.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-POEEAD2V.js +0 -4
- package/dist/cli-bundle/focused-chunks/chunk-XPIC53VA.js +0 -26
- package/dist/cli-bundle/focused-chunks/chunk-ZT2DJS27.js +0 -155
package/dist/cli-bundle/sdk.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{a as uS,b as lS,c as Vl,d as Wl,e as zl,g as Kl,h as Xl,i as Yl,j as ql,k as Jl,l as Zl,m as Ql,n as ef,o as fS,p as mS,q as _S,r as hS,s as TS,t as gS,u as AS,v as yS,w as tf,x as rf,y as ES,z as CS}from"./chunks/chunk-YM2YAMF7.js";import{A as iO,B as sO,C as aO,D as cO,E as dO,F as pO,G as uO,H as lO,I as fO,J as mO,K as _O,L as hO,M as TO,N as gO,O as AO,P as yO,Q as EO,R as CO,S as SO,T as OO,U as RO,V as bO,W as xO,X as IO,Y as NO,a as PS,b as LS,c as MS,d as DS,e as GS,f as FS,g as US,h as jS,i as $S,j as HS,k as BS,l as VS,m as WS,n as zS,o as KS,p as XS,q as YS,r as qS,s as JS,t as ZS,u as QS,v as eO,w as tO,x as rO,y as nO,z as oO}from"./chunks/chunk-HBJAS566.js";import{a as SS}from"./chunks/chunk-OAC5NIV4.js";import{a as OS,b as RS,c as bS,d as xS,e as IS,f as NS,g as wS,h as kS,i as vS}from"./chunks/chunk-7IBRGCHX.js";import{$ as Oe,$a as mu,$b as ml,A as Pc,Aa as Dp,Ab as $u,Ac as $l,B as ed,Ba as Gp,Bb as Hu,Bc as Hl,C as td,Ca as Fp,Cb as Bu,Cc as Bl,D as rd,Da as Up,Db as Vu,E as nd,Ea as jp,Eb as Wu,F as od,Fa as $p,Fb as zu,G as id,Ga as Hp,Gb as Ku,H as sd,Ha as Bp,Hb as Xu,I as ad,Ia as Vp,Ib as Yu,J as IC,Ja as Wp,Jb as qu,K as NC,Ka as zp,Kb as Ju,L as wC,La as Kp,Lb as Zu,M as kC,Ma as Xp,Mb as Qu,N as vC,Na as Yp,Nb as el,O as PC,Oa as qp,Ob as tl,P as LC,Pa as Jp,Pb as rl,Q as MC,Qa as Zp,Qb as nl,R as DC,Ra as Qp,Rb as ol,S as GC,Sa as eu,Sb as il,T as FC,Ta as tu,Tb as sl,U as UC,Ua as ru,Ub as al,V as jC,Va as nu,Vb as cl,W as Ae,Wa as ou,Wb as dl,X as ye,Xa as iu,Xb as pl,Y as Ee,Ya as we,Yb as ul,Z as Ce,Za as M,Zb as ll,_ as Se,_a as fu,_b as fl,a as Ii,aa as Re,ab as _u,ac as _l,b as Ni,ba as be,bb as hu,bc as hl,c as wi,ca as xe,cb as Tu,cc as Tl,d as Xg,da as Ie,db as gu,dc as gl,e as Yg,ea as Ne,eb as Au,ec as Al,f as vi,fa as Dd,fb as yu,fc as yl,g as rA,ga as Gd,gb as Eu,gc as El,h as nA,ha as Fd,hb as Cu,hc as Cl,i as oA,ia as Ud,ib as Su,ic as Sl,j as iA,ja as jd,jb as Ou,jc as Ol,k as sA,ka as $d,kb as Ru,kc as Rl,l as aA,la as Hd,lb as bu,lc as bl,m as cA,ma as Bd,mb as xu,mc as xl,n as dA,na as Vd,nb as Iu,nc as Il,o as Gi,oa as Wd,ob as Nu,oc as Nl,p as pA,pa as zd,pb as wu,pc as wl,q as uA,qa as Kd,qb as ku,qc as kl,r as lA,ra as Xd,rb as vu,rc as vl,s as fA,sa as Yd,sb as Pu,sc as Pl,t as mA,ta as KC,tb as Lu,tc as Ll,u as _A,ua as XC,ub as Mu,uc as Ml,v as Fa,va as YC,vb as Du,vc as Dl,w as Nc,wa as qC,wb as Gu,wc as Gl,x as wc,xa as Pp,xb as Fu,xc as Fl,y as kc,ya as Lp,yb as Uu,yc as Ul,z as vc,za as Mp,zb as ju,zc as jl}from"./chunks/chunk-3UEGXBMR.js";import{a as ge,f as pd,g as ud}from"./chunks/chunk-2QLOXC3V.js";import{A as Cd,B as Sd,C as Od,b as Ga,c as aE,d as sC,e as pC,f as uC,g as lC,h as fC,i as mC,j as cd,k as _C,l as gd,m as Ad,n as yd,o as Ed,p as TC,q as gC,r as AC,s as yC,t as EC,u as CC,v as SC,w as OC,x as RC,y as bC,z as xC}from"./chunks/chunk-TPXZIBIV.js";import{$ as dy,$a as My,$b as cC,$c as mp,A as ZA,Aa as ha,Ab as QE,Ac as Qd,B as QA,Ba as Ta,Bb as eC,Bc as ep,C as ey,Ca as ga,Cb as tC,Cc as tp,D as ty,Da as Aa,Db as rC,Dc as rp,Ea as ya,Eb as nC,Ec as np,F as cy,Fa as Ea,Fb as oC,Fc as QC,Ga as Ca,Gb as iC,Gc as eS,Ha as Sa,Hc as tS,Ia as Oa,Ib as Lc,Ic as rS,J as Is,Ja as Ra,Jb as Mc,Jc as nS,Ka as ba,Kb as aC,Kc as oS,La as xa,Lb as Dc,Lc as iS,Ma as Ia,Mb as Gc,Mc as sS,Na,Nb as Fc,Nc as aS,Oa as wa,Ob as Uc,Oc as cS,Pa as ka,Pb as jc,Pc as dS,Qa as va,Qb as $c,Ra as Pa,Rb as Hc,Rc as op,Sa as La,Sb as Bc,Sc as ip,Ta as Ma,Tb as Vc,Tc as sp,Ua as Iy,Ub as Wc,Uc as ap,Va as Ny,Vb as zc,Vc as cp,Wa as wy,Wb as Kc,Wc as dp,Xa as ky,Xb as Xc,Xc as pp,Ya as vy,Yb as Yc,Yc as up,Za as Py,Zb as qc,Zc as lp,_a as Ly,_b as Jc,_c as fp,a as bA,aa as py,ab as Dy,ac as dC,ad as _p,b as xA,ba as Ns,bb as Gy,bc as Zc,bd as hp,c as IA,ca as ws,cb as Fy,cd as Tp,d as NA,da as ks,db as Uy,dd as gp,e as wA,ea as vs,eb as Ua,ec as Qc,ed as Ap,f as kA,fa as Ps,fb as ja,fc as hC,fd as yp,g as vA,ga as Ls,gb as $a,gc as dd,gd as Ep,h as PA,ha as Ms,hb as Ha,hc as Rd,hd as Cp,i as LA,ia as yy,ib as Ba,ic as bd,id as pS,j as MA,ja as Ey,jb as Va,jc as xd,jd as Sp,k as DA,ka as Cy,kb as Wa,kc as VC,kd as Op,l as GA,la as Sy,lb as za,lc as WC,ld as Rp,m as FA,mb as Ka,mc as zC,md as bp,n as UA,na as Oy,nb as Xa,nc as Id,nd as xp,o as jA,ob as Sc,oc as Nd,od as Ip,p as $A,pa as Ry,pb as Oc,pc as wd,pd as Np,q as HA,qa as by,qb as Rc,qc as kd,qd as wp,r as BA,ra as ca,rb as bc,rc as vd,rd as kp,s as VA,sa as da,sb as KE,sc as Pd,sd as vp,t as WA,ta as xy,tb as XE,tc as Ld,td as su,u as zA,ua as pa,ub as YE,uc as Md,ud as au,v as KA,va as ua,vb as qE,vc as JC,vd as cu,w as XA,wa as la,wb as JE,wc as ZC,wd as du,x as YA,xa as fa,xb as xc,xc as qd,xd as pu,y as qA,ya as ma,yb as Ic,yc as Jd,yd as uu,z as JA,za as _a,zb as ZE,zc as Zd,zd as lu}from"./chunks/chunk-4JPYF536.js";import{A as Ws,Aa as ea,B as zs,Ea as ta,Fa as ra,Ga as na,Ha as oa,Ia as ia,Ja as sa,Ka as aa,L as Ks,La as ld,M as Xs,Ma as fd,N as Ys,Na as md,O as qs,Oa as _d,Pa as hd,Qa as Td,a as eA,b as tA,c as Pi,d as Li,f as Mi,g as Di,h as uy,i as Ds,j as Gs,k as Fs,m as ly,n as fy,o as my,p as _y,q as hy,r as Ty,s as gy,sa as le,t as Us,ta as fe,u as js,ua as me,v as $s,va as _e,w as Hs,wa as Js,x as Bs,y as Ay,ya as Zs,z as Vs,za as Qs}from"./chunks/chunk-JOKATURE.js";import{$ as ns,$a as sE,$b as uc,Aa as $y,Ab as NE,B as Fi,Ba as Hy,Bb as wE,C as ry,Ca as By,Cb as kE,D as ny,Da as Vy,Db as vE,E as oy,Ea as Wy,Eb as PE,F as iy,Fa as zy,Fb as LE,G as sy,Ga as Ky,Gb as ME,H as Ui,Ha as Xy,Hb as DE,I as ji,Ia as Yy,Ib as GE,J as $i,Ja as qy,Jb as FE,K as Hi,Kb as UE,L as Bi,Lb as jE,M as Vi,Mb as $E,N as z,Nb as HE,O as Wi,Ob as Qa,P as zi,Pb as ec,Q as Ki,Qb as tc,R as Xi,Rb as rc,S as ay,Sa as Jy,Sb as nc,T as Yi,Ta as Zy,Tb as oc,U as qi,Ua as Qy,Ub as he,V as Ji,Va as eE,Vb as ic,W as Zi,Wa as tE,Wb as sc,X as Qi,Xa as rE,Xb as ac,Y as es,Ya as nE,Yb as cc,Z as ts,Za as oE,Zb as dc,_ as rs,_a as iE,_b as pc,a as Ug,aa as os,ab as Da,ac as lc,b as jg,ba as is,bb as Ya,bc as fc,c as $g,ca as ss,cb as qa,cc as mc,d as Hg,da as as,db as Ja,dc as _c,e as Bg,ea as cs,eb as Za,ec as hc,fa as ds,fb as cE,fc as Tc,ga as ps,gb as dE,gc,h as Vg,ha as us,hb as pE,hc as Ac,i as Wg,ia as ls,ib as uE,ic as yc,j as ki,ja as fs,jb as lE,jc as Te,k as zg,ka as ms,kb as fE,kc as Ec,l as Kg,la as _s,lb as mE,lc as BE,m as qg,ma as hs,mb as _E,mc as VE,n as Jg,na as Ts,nb as hE,nc as WE,o as Zg,oa as gs,ob as TE,oc as Cc,p as Qg,pa as As,pb as gE,pc as zE,q as hA,qa as ys,qb as AE,qc as $C,r as TA,ra as Es,rb as yE,rc as HC,s as gA,sa as Cs,sb as EE,sc as BC,t as AA,ta as Ss,tb as CE,u as yA,ua as Os,ub as SE,v as EA,va as Rs,vb as OE,w as CA,wa as bs,wb as RE,x as SA,xa as xs,xb as bE,y as OA,yb as xE,z as RA,za as jy,zb as IE}from"./chunks/chunk-6VDLG2FC.js";import{$ as Am,$b as Bm,$c as Et,$e as fh,$f as oT,$h as ug,$i as an,$j as ao,$k as ci,Ac as a_,Ae as uh,Af as jh,Ag as fT,Ah as YT,Ai as Xr,Aj as Ln,Ak as Mo,B as sm,Bc as c_,Be as Yt,Bf as $h,Bg as mT,Bh as qT,Bi as Yr,Bj as Mn,Bk as Do,C as H,Cc as d_,Ce as qt,Cf as Hh,Cg as Mr,Ch as JT,Ci as qr,Cj as Dn,Ck as Go,D as am,Dc as At,De as Jt,Df as Bh,Dg as _T,Dh as Gr,Di as Jr,Dj as Gn,Dk as Fo,E as B,Ec as p_,Ee as Zt,Ef as Vh,Eg as hT,Eh as Fr,Ei as Zr,Ej as Fn,Ek as Uo,Fa as bm,Fb as Um,Fc as yt,Fd as w_,Fe as Qt,Ff as Wh,Fg as TT,Fh as Ur,Fi as Qr,Fj as Un,Fk as jo,G as cm,Ga as xm,Gb as ft,Gd as k_,Ge as er,Gf as zh,Gg as gT,Gh as ZT,Gi as Ig,Gj as jn,Gk as $o,H as dm,Ha as Im,Hb as mt,Hc as u_,Hd as v_,He as tr,Hg as AT,Hi as Ng,Hj as $n,Hk as Ho,Ic as l_,Id as Ft,Ie as rr,If as Kh,Ig as yT,Ih as QT,Ii as wg,Ij as Hn,Ik as Bo,Jb as L,Jc as f_,Jd as Ut,Je as nr,Jf as Xh,Jg as ET,Jh as eg,Ji as kg,Jj as Bn,Jk as Vo,K as pm,Ka as at,Kb as jm,Kc as m_,Kd as jt,Ke as or,Kg as CT,Kh as tg,Ki as vg,Kj as Vn,Kk as Wo,La as Nm,Lc as __,Ld as $t,Le as ir,Lg as ST,Li as Pg,Lj as Wn,Lk as zo,Ma as wm,Mb as $m,Mc as ae,Md as Ht,Me as sr,Mf as Yh,Mg as OT,Mi as Lg,Mj as zn,Mk as Ko,N as um,Na as km,Nc as h_,Nd as Bt,Ne as ar,Nf as qh,Ng as RT,Nh as rg,Ni as Mg,Nj as Kn,Nk as Xo,O as ne,Oa as vm,Ob as Hm,Oc as T_,Od as Vt,Oe as cr,Of as Jh,Oj as Xn,Ok as Yo,P as oe,Pc as g_,Pd as Wt,Pe as dr,Pf as Zh,Pg as bT,Ph as ng,Pj as Yn,Pk as qo,Q as Ze,Qa as ct,Qd as zt,Qe as pr,Qf as Qh,Qj as qn,Qk as Jo,R as Qe,Ra as dt,Rc as A_,Rd as Kt,Re as ur,Rf as yr,Rg as xT,Ri as pe,Rj as Jn,Rk as Zo,S as ie,Sa as V,Sc as y_,Sd as Xt,Se as lr,Sf as Er,Sg as IT,Si as Dg,Sj as Zn,Sk as Qo,T as lm,Td as P_,Te as fr,Tg as NT,Th as og,Ti as Gg,Tj as Qn,Tk as ei,Ud as L_,Ue as mr,Ug as wT,Uh as ig,Ui as Fg,Uj as eo,Uk as ti,V as fm,Va as pt,Vd as M_,Ve as _r,Vg as kT,Vh as sg,Vi as en,Vj as to,Vk as ri,W as mm,Wa as ut,We as hr,Wf as eT,Wh as ag,Wi as tn,Wj as ro,Wk as ni,X as _m,Xe as Tr,Xf as tT,Xh as cg,Xi as rn,Xj as no,Xk as oi,Y as hm,Ya as lt,Yd as D_,Ye as gr,Yf as rT,Yi as nn,Yj as oo,Yk as ii,Z as Tm,Zc as E_,Zd as G_,Ze as Ar,Zf as nT,Zh as dg,Zi as on,Zj as io,Zk as si,_ as gm,_d as F_,_e as lh,_h as pg,_i as sn,_j as so,_k as ai,aa as ym,ac as Vm,ad as C_,ae as U_,af as mh,ag as iT,ai as lg,aj as cn,ak as co,al as di,ba as Em,bc as Wm,bd as Ct,be as j_,bf as _h,bi as fg,bj as dn,bk as po,bl as pi,c as Xe,ca as Cm,ce as $_,cf as hh,ci as mg,cj as pn,ck as uo,cl as ui,dc as zm,dd as S_,de as H_,df as Th,di as _g,dj as un,dk as lo,dl as li,e as re,ea as Sm,ec as Km,ed as O_,ee as B_,ef as gh,eg as sT,eh as vT,ei as hg,ej as ln,ek as fo,el as fi,f as Ye,fa as Om,fd as R_,fe as V_,ff as Ah,fg as aT,fh as PT,fi as Tg,fj as fn,fk as mo,fl as mi,g as qe,ga as Rm,gc as Xm,gd as St,ge as W_,gf as yh,gg as cT,gh as LT,gi as gg,gj as mn,gk as _o,gl as _i,h as Je,ha as et,hc as _t,hd as Ot,he as z_,hf as Eh,hg as dT,hh as MT,hi as de,hj as _n,hk as ho,hl as hi,ia as tt,id as Rt,ie as K_,if as Ch,ig as Cr,ih as DT,ii as Ag,ij as hn,ik as To,il as Ti,j as em,ja as rt,jc as ht,jd as bt,je as X_,jf as Sh,jg as Sr,jh as GT,ji as yg,jj as Tn,jk as go,jl as gi,k as tm,kc as Tt,kd as xt,ke as Y_,kf as Oh,kg as Or,ki as Eg,kj as gn,kk as Ao,kl as Ai,l as rm,ld as It,le as q_,lf as Rh,lg as Rr,li as Cg,lj as An,lk as yo,ll as yi,mb as Pm,md as Nt,me as J_,mf as bh,mg as br,mh as FT,mi as Sg,mj as yn,mk as Eo,ml as Ei,na as nt,nb as W,nc as Ym,nd as b_,ne as Z_,nf as xh,ng as xr,nh as UT,ni as Og,nj as En,nk as Co,nl as Ci,ob as se,oc as qm,od as x_,oe as Q_,of as Ih,og as Ir,oh as Dr,oi as Rg,oj as Cn,ok as So,ol as Si,pa as ot,pb as Lm,pc as Jm,pe as eh,pf as Nh,pg as Nr,ph as jT,pi as bg,pj as Sn,pk as Oo,pl as Oi,qa as it,qb as Mm,qc as Zm,qd as wt,qe as th,qf as wh,qg as wr,qh as $T,qi as xg,qj as On,qk as Ro,ql as Ri,ra as st,rb as Dm,rc as Qm,rd as kt,re as rh,rf as kh,rg as kr,rh as HT,ri as jr,rj as Rn,rk as bo,rl as bi,s as nm,sb as Gm,sc as e_,sd as I_,se as nh,sf as vh,sg as pT,sh as BT,si as $r,sj as bn,sk as xo,sl as xi,tb as y,tc as t_,td as vt,te as oh,tf as Ph,th as ce,ti as Hr,tj as xn,tk as Io,tl as ue,ub as Fm,uc as gt,ud as Pt,ue as ih,uf as Lh,ug as vr,uh as VT,ui as Br,uj as In,uk as No,v as om,vc as r_,vd as N_,ve as sh,vf as Mh,vg as Pr,vh as WT,vi as Vr,vj as Nn,vk as wo,wc as n_,wd as Lt,we as ah,wf as Dh,wg as Lr,wh as zT,wi as Wr,wj as wn,wk as ko,x as im,xc as o_,xd as Mt,xe as ch,xf as Gh,xh as KT,xj as kn,xk as vo,yc as i_,yd as Dt,ye as dh,yf as Fh,yg as uT,yi as zr,yj as vn,yk as Po,zc as s_,zd as Gt,ze as ph,zf as Uh,zg as lT,zh as XT,zi as Kr,zj as Pn,zk as Lo}from"./chunks/chunk-ION3E43Q.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 T="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 w(e,t){if(!Number.isSafeInteger(e)||e<0)throw new TypeError(`Corpus shape ${t} must be a non-negative safe integer`);return e}function ve(e){if(!(typeof e!="object"||e===null||Object.isFrozen(e))){for(let t of Object.values(e))ve(t);Object.freeze(e)}}function C(e){if(e.schema!==T)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"),w(e.age_span_days,"age_span_days"),E(e.history_entries_per_item,"history_entries_per_item"),w(e.comments_per_100_items,"comments_per_100_items"),w(e.notes_per_100_items,"notes_per_100_items"),w(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 ve(t),t}var D=[{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:C({schema:T,name:"scratch",description:"Seconds-old, shallow project with minimal history.",hierarchy_depth:2,hierarchy_fanout:50,age_span_days:0,history_entries_per_item:1,comments_per_100_items:2,notes_per_100_items:1,learnings_per_100_items:1,edge_kind_mix:[{kind:"related",weight:1}],author_cardinality:2,component_count:1,include_cycles:!1,custom_types:[],custom_statuses:[],terminal_statuses:[],custom_fields:[]}),representative:C({schema:T,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:D,author_cardinality:32,component_count:1,include_cycles:!1,custom_types:["Experiment"],custom_statuses:["review"],terminal_statuses:[],custom_fields:["domain"]}),"deep-graph":C({schema:T,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:D,author_cardinality:16,component_count:1,include_cycles:!0,custom_types:[],custom_statuses:[],terminal_statuses:[],custom_fields:[]}),"multi-decade":C({schema:T,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:D,author_cardinality:64,component_count:1,include_cycles:!1,custom_types:["Program"],custom_statuses:["archived"],terminal_statuses:["archived"],custom_fields:["portfolio"]}),"disconnected-archive":C({schema:T,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:D,author_cardinality:24,component_count:5,include_cycles:!1,custom_types:["Archive"],custom_statuses:["archived"],terminal_statuses:["archived"],custom_fields:["archive_source"]})});function nf(){return Object.keys(S).sort().map(e=>S[e])}function of(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 ke=new WeakMap;function Pe(e,t){if(e===0)return[];let r=ke.get(t);r===void 0&&(r=t.edge_kind_mix.flatMap(o=>Array.from({length:o.weight},()=>o.kind)),ke.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 sf(e,t,r,n=42){if(w(t,"item index"),E(r,"item count"),t>=r)throw new RangeError(`Corpus item index ${t} exceeds ${r}`);let o=Math.min(e.component_count,r),a=t%o,i=Math.floor(t/o),c=0,s=1;for(let P=0;P<e.hierarchy_depth;P+=1)c=Math.min(Number.MAX_SAFE_INTEGER,c+s),s=Math.min(Number.MAX_SAFE_INTEGER,s*e.hierarchy_fanout);let d=i%c,p=i-d,u=d===0?void 0:a+(p+Math.floor((d-1)/e.hierarchy_fanout))*o,l=Date.UTC(2026,0,1),h=e.age_span_days*864e5,I=new Date(l+(r===1?0:Math.round(t/(r-1)*h))).toISOString(),N=(t*37+n)%100;return{index:t,id:`pm-s${t.toString(36).padStart(7,"0")}`,...u===void 0?{}:{parent:`pm-s${u.toString(36).padStart(7,"0")}`},component:a,timestamp:I,author:`pm-corpus-agent-${(t+n)%Math.min(e.author_cardinality,r)}`,history_entry_count:e.history_entries_per_item,dependency_kinds:Pe(t,e),has_comment:N<e.comments_per_100_items,has_note:N<e.notes_per_100_items,has_learning:N<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 K=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,Pe(t.index,this.shape))}finish(){let t=Math.min(this.shape.author_cardinality,this.itemCount),r=Math.min(this.shape.component_count,this.itemCount),n=[...this.planMismatches,...this.itemCount===0?["item_count:empty"]:[],...this.authors.size===t?[]:[`author_count:${this.authors.size}!=${t}`],...this.components.size===r?[]:[`component_count:${this.components.size}!=${r}`],...this.observedDepth<=this.shape.hierarchy_depth?[]:[`hierarchy_depth:${this.observedDepth}>${this.shape.hierarchy_depth}`],...this.observedFanout<=this.shape.hierarchy_fanout?[]:[`hierarchy_fanout:${this.observedFanout}>${this.shape.hierarchy_fanout}`]];for(let[i,,c]of this.annotationFields){let s=Math.floor(this.itemCount/100),d=this.itemCount%100,p=s*c+Math.max(0,c+d-100),u=s*c+Math.min(c,d),l=this.annotations[i];(l<p||l>u)&&n.push(`${i}:${l}!in[${p},${u}]`)}let o=new Set([...Object.keys(this.edgeKinds),...Object.keys(this.expectedEdgeKinds)]);for(let i of[...o].sort()){let c=this.edgeKinds[i]??0,s=this.expectedEdgeKinds[i]??0;c!==s&&n.push(`edge_kind:${i}:${c}!=${s}`)}let a=[...new Set(n)];return{shape:this.shape.name,item_count:this.itemCount,author_count:this.authors.size,component_count:this.components.size,hierarchy_depth:this.observedDepth,hierarchy_fanout:this.observedFanout,timestamp_range:{first:this.firstTimestamp,last:this.lastTimestamp},history_entry_count:this.historyEntryCount,annotations:{...this.annotations},edge_kinds:{...this.edgeKinds},matches_declaration:a.length===0,mismatches:a}}};function Le(e){return new K(e)}function af(e,t){let r=Le(e);for(let n of t)r.add(n);return r.finish()}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d19cfa31-a02f-53a7-8685-5d169d6e051d")}catch{}})();(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8c9a34bd-b77a-55ab-a5d1-3594cecfeb3f")}catch{}})();async function cf(){let e=V(process.cwd(),process.env.PM_PATH);await ce(e,(t,r)=>de(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 Me="https://schema.unbrained.dev/pm/workspace-recipe/v1";function X(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)=>X(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,X(n,`${t}.${r}`)])))}function De(e){if(e.schema!==Me)throw new Error(`Unsupported workspace recipe schema: ${e.schema}`);let t=ne(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:X(r.input,`operations[${n}].input`)})))})}async function Ge(e,t){let r=De(e);return oe(r,t)}async function df(e,t){return Ge(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 pf(){await pe()}(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 Fe=["lines","branches","functions","statements"];function uf(e,t){if(typeof t!="object"||t===null||Array.isArray(t))throw new TypeError(`Coverage entry for ${e} must be an object.`)}function lf(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 ff(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)){uf(r,n);for(let o of Fe){let a=lf(r,o,n[o]),i=a.total-a.covered;i>0&&t.push({file:r,metric:o,uncovered:i,...a})}}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 mf=["captured_redacted","captured_verbatim"],_f=[{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 hf(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||!mf.includes(r.capture_source)||!m(r.capture_provenance)||!Array.isArray(r.redactions)||!r.redactions.every(m)||!("input"in r)||!("observed"in r))&&n.push({boundary_id:e.id,kind:"invalid_fixture",detail:`${e.fixture_path} lacks captured provenance, redaction metadata, input, or observed output.`});let o=JSON.stringify(t);for(let a of _f)a.pattern.test(o)&&n.push({boundary_id:e.id,kind:"unsafe_fixture",detail:`${e.fixture_path} contains a possible ${a.label}.`});return n}function Tf(e,t){let r=Date.parse(e.waiver_expires_at),n=m(e.waiver_reason)&&m(e.waiver_owner)&&e.waiver_expires_at.endsWith("Z")&&ie(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 gf(e,t,r){if(!m(e.id)||!m(e.producer)||!m(e.consumer)||!m(e.format))return{captured:0,waived:0,findings:[{boundary_id:m(e.id)?e.id:"unknown",kind:"invalid_boundary",detail:"Each boundary requires non-empty id, producer, consumer, and format."}]};if("fixture_path"in e){let n=t[e.fixture_path],o=m(e.fixture_path)&&e.fixture_path in t?hf(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 Tf(e,r)}function YO(e,t,r=new Date){let n=[];if(e.version!==1||!m(e.inventory_scope)||!Array.isArray(e.boundaries))return{ok:!1,boundary_count:0,captured_count:0,waived_count:0,findings:[{boundary_id:"registry",kind:"invalid_registry",detail:"Boundary registry requires version 1, inventory_scope, and boundaries."}]};let o=new Set,a=0,i=0;for(let c of e.boundaries){if(typeof c!="object"||c===null||Array.isArray(c)){n.push({boundary_id:"unknown",kind:"invalid_boundary",detail:"Each boundary must be a JSON object."});continue}let s=c,d=m(s.id)?s.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=gf(s,t,r.getTime());a+=p.captured,i+=p.waived,n.push(...p.findings)}return n.sort((c,s)=>c.boundary_id!==s.boundary_id?c.boundary_id.localeCompare(s.boundary_id):c.kind.localeCompare(s.kind)),{ok:n.length===0,boundary_count:e.boundaries.length,captured_count:a,waived_count:i,findings:n}}import O from"node:fs";import Y 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 Ue=300*1e3,Af=3;function eR(e){return(e?.trim()||"development").replace(/[^a-zA-Z0-9._-]/g,"_").replace(/^\./,"_")}function tR(e,t){let r=t.trim();if(!/^[a-zA-Z0-9_-][a-zA-Z0-9._-]*$/.test(r))throw new TypeError("Compile-cache generation must be a safe non-empty filename token.");O.mkdirSync(e,{recursive:!0});let n=Y.join(e,r);O.mkdirSync(n,{recursive:!0});let o=new Date;O.utimesSync(n,o,o);let a=O.readdirSync(e).filter(d=>d!==r).flatMap(d=>{try{return[{name:d,mtimeMs:O.statSync(Y.join(e,d)).mtimeMs}]}catch(p){if(p instanceof Error&&"code"in p&&re(p))return[];throw p}}).sort((d,p)=>p.mtimeMs-d.mtimeMs||d.name.localeCompare(p.name)),i=a.filter(d=>o.getTime()-d.mtimeMs<Ue),c=Math.max(0,Af-1-i.length),s=a.filter(d=>o.getTime()-d.mtimeMs>=Ue).slice(c).map(d=>d.name).sort((d,p)=>d.localeCompare(p));for(let d of s)O.rmSync(Y.join(e,d),{recursive:!0,force:!0,maxRetries:3,retryDelay:50});return{retained:r,removed:s}}import je from"node:fs";import F 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 j="@unbrained/pm-cli",yf=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"]),$e=new Set(["--author","--output-budget","--output-format","--output-include","--output-limit","--output-session","--path","--pm-path"]),Z=/\b(\d{4})\.(\d{1,2})\.(\d{1,2})(?:-(\d+))?\b/u;function f(e,t){return e.some(r=>t.includes(r.split("=",1)[0]))}function q(e,t){return["activate","adopt","adopt-all","deactivate","init","install","migrate","reload","uninstall"].includes(t[0]??"")||f(e,["--activate","--adopt","--adopt-all","--deactivate","--fix-managed-state","--init","--install","--output","--reload","--scaffold","--uninstall"])}var Ef={changelog:(e,t)=>{if(t[0]==="generate")return!f(e,["--check"]);let r=e.indexOf("export");return t[0]==="export"&&(f(e,["--output"])||r>=0&&e[r+1]!==void 0&&!e[r+1].startsWith("-"))},comments:e=>f(e,["--add","--delete","--edit","--file","--stdin"]),config:(e,t)=>(t[0]==="project"||t[0]==="global"?t[1]:t[0])==="set",deps:()=>!1,docs:e=>f(e,["--add","--add-glob","--migrate","--remove"]),duplicates:()=>!1,events:()=>!1,extension:q,files:(e,t)=>f(e,["--add","--add-glob","--migrate","--remove"])||t[0]==="discover"&&f(e,["--apply"]),health:e=>!f(e,["--check-only","--no-refresh","--skip-vectors"]),learnings:e=>f(e,["--add","--delete","--edit","--file","--stdin"]),merge:(e,t)=>t[0]!=="report",notes:e=>f(e,["--add","--delete","--edit","--file","--stdin"]),package:q,packages:q,profile:(e,t)=>t[0]==="apply",schema:(e,t)=>["add-field","add-status","add-type","remove-field","remove-status","remove-type","remap-status","rename-field","rename-type"].includes(t[0]??"")&&!(f(e,["--infer"])&&!f(e,["--apply"])),telemetry:(e,t)=>t.slice(0,2).some(r=>["clear","flush"].includes(r)),templates:(e,t)=>t[0]==="save",test:e=>f(e,["--add","--add-json","--background","--measure","--remove","--resume","--run","--stop"]),validate:e=>f(e,["--auto-fix","--prune-missing"]),vcs:(e,t)=>["abandon","create","merge","propose","ref-create"].includes(t[0]??""),workspace:(e,t)=>t[0]==="snapshot"&&["create","delete","restore"].includes(t[1]??"")};function U(e){let t=e.match(Z);return t?[Number(t[1]),Number(t[2]),Number(t[3]),Number(t[4]??0)]:null}function G(e,t){let r=U(e),n=U(t);if(!r||!n)return null;for(let o=0;o<r.length;o+=1){let a=r[o]-n[o];if(a!==0)return Math.sign(a)}return 0}function J(e){try{let t=JSON.parse(je.readFileSync(e,"utf8"));return typeof t=="object"&&t!==null&&!Array.isArray(t)?t:null}catch{return null}}function Cf(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[j],a=typeof o=="string"?o.trim():"",i=/^[<!]/u.test(a)?void 0:a.match(Z)?.[0];i&&t.push(i)}return t.sort((r,n)=>G(n,r))[0]}function Sf(e){let r=J(F.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 Of(e,t){try{let r=je.readFileSync(F.join(e,t),"utf8").split(/\r?\n/u),n=r.findIndex(s=>s.includes(j));if(n<0)return;let o=r[n].match(/^\s*/u)[0].length,a=[r[n]];for(let s=n+1;s<r.length;s+=1){let d=r[s],p=d.trim(),u=d.match(/^\s*/u)[0].length;if(p.length>0&&u<=o)break;a.push(d)}return a.join(`
|
|
2
|
-
`).match(/^\s*version(?::\s*|\s+)["']?(\d{4}\.\d{1,2}\.\d{1,2}(?:-\d+)?)/mu)?.[1]??a[0].match(Z)?.[0]}catch{return}}function Rf(e){let t=[],r=J(F.join(e,"package.json")),n=r?Cf(r):void 0;n&&t.push({version:n,source:"package.json"});let a=J(F.join(e,"node_modules","@unbrained","pm-cli","package.json"))?.version;typeof a=="string"&&U(a)&&t.push({version:a,source:"installed-package"});let i=Sf(e);i&&U(i)&&t.push({version:i,source:"package-lock.json"});for(let c of["pnpm-lock.yaml","yarn.lock"]){let s=Of(e,c);s&&t.push({version:s,source:c})}return t}function He(e){for(let t=0;t<e.length;t+=1){let r=e[t];if($e.has(r)){t+=1;continue}if(!r.startsWith("-"))return{command:r.toLowerCase(),index:t}}}function bf(e){let t=He(e);if(!t||f(e,["--help","-h","--dry-run"]))return!1;let{command:r,index:n}=t,o=[];for(let i=n+1;i<e.length;i+=1){let c=e[i];if($e.has(c)){i+=1;continue}c.startsWith("-")||o.push(c.toLowerCase())}let a=Ef[r];return a?a(e,o):yf.has(r)}function xf(e){let t=He(e.argv)?.command,r=bf(e.argv),o=Rf(e.projectRoot).filter(c=>G(c.version,e.executingVersion)!==null).sort((c,s)=>G(s.version,c.version))[0],a=o!==void 0&&G(e.executingVersion,o.version)===-1,i=a&&!r?{code:"project_runtime_stale_read",executing_version:e.executingVersion,project_version:o.version,source:o.source,message:"This read is using an older pm runtime than the project requires.",next_steps:[`Run the command through the project's installed ${j} ${o.version}.`,"Install the project dependencies with its declared package manager if the local executable is missing."]}:void 0;return{compatible:!r||!a||e.allowStale===!0,executing_version:e.executingVersion,...o?{project_version:o.version,source:o.source}:{},...t?{command:t}:{},mutating:r,stale:a,...i?{warning:i}:{},override_applied:a&&r&&e.allowStale===!0}}function aR(e){let t=xf(e);if(t.compatible)return t;throw new B(`pm ${t.executing_version} cannot mutate a project pinned to newer pm ${t.project_version}.`,H.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 ${j} ${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 If}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 Q=1;function R(e){e?.throwIfAborted()}function g(e,t){if(typeof e!="string"||e.trim().length===0)throw new TypeError(`Relationship graph ${t} must be non-empty`);return e.trim()}function b(e,t,r={}){let n=Date.parse(r.createdAt??new Date().toISOString());if(!Number.isFinite(n))throw new TypeError("Relationship graph createdAt must be a valid timestamp");let o=e.nodes(),a=e.edges(),i=t.list();return Object.freeze({version:Q,fingerprint:If("sha256").update(L({nodes:o,edges:a,kinds:i})).digest("hex"),created_at:new Date(n).toISOString(),nodes:o,edges:a,kinds:i})}function Nf(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function v(e){if(!Nf(e))throw new TypeError("Relationship graph snapshot must be an object");if(e.version!==Q)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 W([]);for(let o of e.kinds)t.register(o);let r=new y(e.nodes,e.edges,t),n=b(r,t,{createdAt:e.created_at});if(n.fingerprint!==e.fingerprint)throw new TypeError("Relationship graph snapshot fingerprint mismatch");return{snapshot:n,registry:t,graph:r}}async function _(e,t){g(e.name,"adapter name");let r=g(t.workspace,"workspace");R(t.signal);let n=await e.read({...t,workspace:r});return R(t.signal),n===null?null:v(n)}async function $(e,t){let r=g(t.workspace,"workspace"),n=v(t.snapshot).snapshot,o=await _(e,{workspace:r,signal:t.signal});if(o?.snapshot.fingerprint===n.fingerprint)return{adapter:e.name,workspace:r,disposition:"current",fingerprint:n.fingerprint,previous_fingerprint:o.snapshot.fingerprint,node_count:n.nodes.length,edge_count:n.edges.length};if(R(t.signal),await e.replace({workspace:r,signal:t.signal,snapshot:n,expected_fingerprint:o?.snapshot.fingerprint??null}),(await _(e,{workspace:r,signal:t.signal}))?.snapshot.fingerprint!==n.fingerprint)throw new Error(`Relationship graph adapter "${e.name}" did not expose the replaced snapshot`);return{adapter:e.name,workspace:r,disposition:"written",fingerprint:n.fingerprint,...o?{previous_fingerprint:o.snapshot.fingerprint}:{},node_count:n.nodes.length,edge_count:n.edges.length}}function wf(e,t={}){let r=e.map(v),n=new Map;for(let i of r)for(let c of i.snapshot.kinds){let s=n.get(c.kind);if(s&&L(s)!==L(c))throw new TypeError(`Conflicting federated relationship kind: ${c.kind}`);n.set(c.kind,c)}let o=new W([...n.values()].sort((i,c)=>i.kind.localeCompare(c.kind))),a=new y(new Set(r.flatMap(i=>[...i.snapshot.nodes])),r.flatMap(i=>[...i.snapshot.edges]),o);return b(a,o,t)}var k=class{name;#e=new Map;constructor(t="memory"){this.name=g(t,"adapter name")}async read(t){R(t.signal);let r=this.#e.get(g(t.workspace,"workspace"));return r?structuredClone(r):null}async replace(t){R(t.signal);let r=g(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(v(t.snapshot).snapshot))}async clear(t){R(t.signal);let r=g(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 Be(e,t){if(!Number.isInteger(e)||e<1)throw new TypeError(`Relationship graph ${t} must be a positive integer`);return e}function kf(e){let t=Be(e.nodeCount,"nodeCount"),r=Be(e.edgeStride??1,"edgeStride"),n=e.topology??"chain";if(!["chain","star","disconnected"].includes(n))throw new TypeError(`Unsupported relationship graph topology: ${n}`);let o=(e.kind??"related").trim(),a=(e.idPrefix??"node").trim();if(!o||!a)throw new TypeError("Relationship graph kind and idPrefix must be non-empty");let i=n==="disconnected"?0:Math.floor((t-1)/r);return{node_count:t,edge_count:i,edge_basis:"fixture_generated",nodes:{*[Symbol.iterator](){for(let c=0;c<t;c+=1)yield`${a}-${c}`}},edges:{*[Symbol.iterator](){if(n!=="disconnected")for(let c=r;c<t;c+=r)yield{source:`${a}-${n==="star"?0:c-r}`,target:`${a}-${c}`,kind:o}}}}}function A(e,t){if(!e)throw new Error(`Relationship graph adapter conformance: ${t}`)}async function Ve(e,t={}){let r=t.workspace?.trim()||"pm-graph-conformance",n=se(),o=b(new y(["a","b"],[{source:"a",target:"b",kind:"related"}],n),n,{createdAt:"2026-01-01T00:00:00.000Z"}),a=b(new y(["a","b","c"],[{source:"a",target:"b",kind:"related"},{source:"b",target:"c",kind:"blocked_by"}],n),n,{createdAt:"2026-01-02T00:00:00.000Z"}),i=[];A(await _(e,{workspace:r})===null,"workspace must start empty"),i.push({name:"empty-read",passed:!0});let c=await $(e,{workspace:r,snapshot:o});A(c.disposition==="written","first sync must write"),i.push({name:"atomic-replace",passed:!0}),(await e.read({workspace:r})).nodes.push("mutated-reader-copy"),A((await _(e,{workspace:r}))?.snapshot.nodes.length===2,"reads must not mutate stored state"),i.push({name:"read-isolation",passed:!0}),A((await $(e,{workspace:r,snapshot:o})).disposition==="current","identical sync must be idempotent"),i.push({name:"idempotent-sync",passed:!0}),await e.replace({workspace:r,snapshot:a,expected_fingerprint:o.fingerprint}),A((await _(e,{workspace:r}))?.snapshot.fingerprint===a.fingerprint,"replacement must become visible"),i.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 A(d,"stale compare-and-swap must fail"),i.push({name:"stale-cas",passed:!0}),e.clear&&(await e.clear({workspace:r,expected_fingerprint:a.fingerprint}),A(await _(e,{workspace:r})===null,"clear must remove the workspace"),i.push({name:"clear",passed:!0})),{adapter:e.name,workspace:r,cases:Object.freeze(i),clear_supported:e.clear!==void 0}}function vf(e){return Ve(new k,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]="b5509c6e-1431-5316-a563-16681ced4f33")}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 We}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 ze(e,t){if(typeof e!="string"||e.trim().length===0)throw new TypeError(`Relationship backfill ${t} must be non-empty`);return e.trim()}function vR(e,t){let r=ze(t.migrationId,"migrationId"),n=ze(t.author,"author"),o=Date.parse(t.timestamp);if(!Number.isFinite(o))throw new TypeError("Relationship backfill timestamp must be valid");let a=new Date(o).toISOString(),i=z(e,void 0,t.registry),c=i.graph.nodes(),s=i.graph.edges().map(l=>{let h=We("sha256").update(JSON.stringify([r,l.kind,l.source,l.target,l.createdAt??null,l.author??null,l.payload??null])).digest("hex").slice(0,24);return Object.freeze({eventId:`backfill:${r}:${h}`,relationshipId:`migration:${r}:${h}`,action:"add",edge:l,author:n,timestamp:a,reason:`Backfill ${r} from legacy item metadata`})}),d=We("sha256").update(JSON.stringify({migrationId:r,nodes:c,events:s})).digest("hex"),p=new Set([...t.existingEventIds??[]].filter(l=>typeof l=="string").map(l=>l.trim()).filter(Boolean)),u=s.filter(l=>!p.has(l.eventId));return Object.freeze({migration_id:r,fingerprint:d,nodes:c,events:Object.freeze(u),edge_count:s.length,skipped_existing_count:s.length-u.length,duplicate_dependency_rows:i.duplicateRows.length,dangling_reference_count:i.dangling.active.length+i.dangling.legacy_terminal.length})}import{stripTypeScriptTypes as Pf}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]="70af2366-a675-5631-8edb-4ebeef4bb786")}catch{}})();var ee=["suggested_retry","candidate_command","example","next_step","migration_hint","restore_with"],te={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"}},MR=Object.freeze(Object.keys(te));function Ke(e){if(Object.hasOwn(te,e))return te[e]}var Lf=new Set([..."=([{,:;!?&|+-*%^~<>","=>"]);function x(e,t){return e<t?-1:e>t?1:0}function Mf(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 Df(e){return e===void 0||e.kind==="punctuator"&&Lf.has(e.value)||e.kind==="identifier"&&["return","case","throw","else","yield"].includes(e.value)}function Gf(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
|
|
4
|
-
`&&t.push(r+1);return t}function Jf(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 DR(e){let t=[],r=[];for(let o of[...e].sort((a,i)=>x(a.path,i.path))){let a=qf(o.content),i;try{i=Yf(o.content)}catch(c){r.push({kind:"invalid_source",subject:o.path,detail:`${o.path} could not be parsed for recovery producers: ${String(c)}.`});continue}for(let c of i){let s=c.field,d=Jf(a,c.offset),p=Ke(s);p?t.push({path:o.path,line:d,field:s,kind:p.kind}):/(?:retry_command|candidate_command|fallback_candidate|next_best_command|example|next_step|migration_hint|restore_with)/u.test(s)&&!/(?:_total|_truncated)$/u.test(s)&&r.push({kind:"unknown_recovery_field",subject:`${o.path}:${d}:${s}`,detail:`${s} resembles a recovery reference but has no typed field contract.`})}}let n=Object.fromEntries(ee.map(o=>[o,t.filter(a=>a.kind===o).length]));for(let o of ee)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,a)=>o.path!==a.path?x(o.path,a.path):o.line!==a.line?o.line-a.line:x(o.field,a.field)),r.sort((o,a)=>o.subject!==a.subject?x(o.subject,a.subject):x(o.kind,a.kind)),{ok:r.length===0,scanned_file_count:e.length,producer_count:t.length,producer_count_by_kind:n,producers:t,findings:r}}function GR(e,t){let r=[],n=(o,a)=>{if(Array.isArray(o)){o.forEach((i,c)=>n(i,[...a,String(c)]));return}if(!(typeof o!="object"||o===null))for(let[i,c]of Object.entries(o).sort(([s],[d])=>x(s,d))){let s=Ke(i),d=s?.kind==="migration_hint"&&o.semantics==="behavior_preserving"?{...s,semantics:"behavior_preserving"}:s,p=[c].flat();d!==void 0&&p.forEach((u,l)=>{let h="nested_value_field"in d&&typeof d.nested_value_field=="string"?d.nested_value_field:void 0,I=h&&typeof u=="object"&&u!==null&&!Array.isArray(u)?u[h]:u;if(typeof I!="string"||I.trim().length===0)return;let N=[...a,i,String(l)].map(P=>encodeURIComponent(P)).join("/");r.push({id:`${e}:${d.kind}:${N}`,probe_id:e,kind:d.kind,semantics:d.semantics,value:I})}),n(c,[...a,i])}};return n(t,[]),r}function FR(e,t){let r=e.flatMap(i=>(i.owned_states??[]).map(c=>({contract:i,state:c}))),n=[],o=new Map;for(let i of t){if(o.has(i.probe_id)){n.push({kind:"duplicate_probe",probe_id:i.probe_id,detail:`Observation ${i.probe_id} was supplied more than once.`});continue}o.set(i.probe_id,i)}let a=new Set(r.map(({state:i})=>i.probe_id));for(let{contract:i,state:c}of r){let s=o.get(c.probe_id);if(!s){n.push({kind:"missing_probe",probe_id:c.probe_id,detail:`No entrypoint observation was recorded for ${i.code}.`});continue}s.code!==i.code&&n.push({kind:"wrong_error_code",probe_id:c.probe_id,detail:`Expected ${i.code}; observed ${s.code}.`}),s.exit_class!==c.expected_exit_class&&n.push({kind:"wrong_exit_class",probe_id:c.probe_id,detail:`Expected ${c.expected_exit_class}; observed ${s.exit_class}.`}),c.entrypoints.includes(s.entrypoint)||n.push({kind:"wrong_entrypoint",probe_id:c.probe_id,detail:`Expected one of ${c.entrypoints.join(", ")}; observed ${s.entrypoint}.`})}for(let i of t)a.has(i.probe_id)||n.push({kind:"undeclared_probe",probe_id:i.probe_id,detail:`Observation ${i.probe_id} has no catalog declaration.`});return n.sort((i,c)=>i.probe_id!==c.probe_id?i.probe_id.localeCompare(c.probe_id):i.kind.localeCompare(c.kind)),{ok:n.length===0,declared_probe_count:r.length,observed_probe_count:t.length,findings:n}}function UR(e,t){let r=[],n=new Set,o=new Set;for(let s of e){if(n.has(s.id)){o.add(s.id),r.push({kind:"duplicate_obligation",reference_id:s.id,detail:`Recovery obligation ${s.id} was declared more than once.`});continue}n.add(s.id)}let a=new Map;for(let s of t){if(a.has(s.id)){r.push({kind:"duplicate_observation",reference_id:s.id,detail:`Recovery reference ${s.id} was observed more than once.`});continue}a.set(s.id,s),n.has(s.id)||r.push({kind:"undeclared_observation",reference_id:s.id,detail:`Recovery observation ${s.id} has no emitted obligation.`})}for(let s of e){if(o.has(s.id))continue;let d=a.get(s.id);d?d.reachable?d.semantics!==s.semantics&&r.push({kind:"wrong_semantics",reference_id:s.id,detail:`Recovery reference ${s.value} promised ${s.semantics}; proof demonstrated ${d.semantics}.`}):r.push({kind:"unreachable_reference",reference_id:s.id,detail:`Recovery reference ${s.value} did not reach its promised target.`}):r.push({kind:"missing_observation",reference_id:s.id,detail:`No reachability proof was recorded for ${s.kind} ${s.value}.`})}let i=ee.map(s=>{let d=e.filter(u=>u.kind===s),p=d.filter(u=>!o.has(u.id)).map(u=>a.get(u.id)).filter(u=>u!==void 0);return{kind:s,declared:d.length,observed:p.length,passed:d.filter(u=>{let l=a.get(u.id);return!o.has(u.id)&&l?.reachable===!0&&l.semantics===u.semantics}).length}});r.sort((s,d)=>s.reference_id!==d.reference_id?s.reference_id.localeCompare(d.reference_id):s.kind.localeCompare(d.kind));let c=i.reduce((s,d)=>s+d.passed,0);return{ok:r.length===0,declared_reference_count:e.length,observed_reference_count:t.length,pass_fraction:n.size===0?1:c/n.size,coverage_by_kind:i,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]="7fc669d4-1db2-5636-8304-2c111a684726")}catch{}})();function $R(e){return e}function HR(e){return e}function BR(e){return e}function VR(e){return e}function WR(e){return e}function zR(e){return e}function KR(e){return e}function XR(e){return e}function YR(e){return e}function qR(e){return e}function JR(e){return e}function ZR(e){return e}function QR(e){return e}function eb(e){return{handled:!0,result:e}}function tb(){return{handled:!1}}function rb(e){return e}function nb(e){return e}function ob(e){return e}function ib(e){return e}function sb(e){return e}function ab(e){return e}function cb(e){return e}function db(e){return e}function pb(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 Zf(e={},t={}){return new M(t).extension(void 0,{...e,migrate:!0})}function Qf(e={},t={}){return new M(t).packageMigrate(e)}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="99a9b24a-4bc7-50da-8333-e76086f0e303")}catch{}})();(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="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]="5e04dc9d-8e2d-5ef2-bf8b-6b18bd87c3bc")}catch{}})();(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fe5e55c6-aabb-53c7-bdbb-16f2ea78f180")}catch{}})();export{jy as ACTIONABILITY_ORDERING_KINDS,an as ACTIVITY_COMMANDER_STRING_OPTION_CONTRACTS,ti as ACTIVITY_FLAG_CONTRACTS,Ft as AGENT_PROVENANCE_DIMENSIONS,Un as AGGREGATE_FLAG_CONTRACTS,bo as APPEND_FLAG_CONTRACTS,Dy as ASSURANCE_ACTIONS,Gy as ASSURANCE_DECLARATION_KINDS,kA as ASSURANCE_DOCUMENT_VERSION,zo as ASSURANCE_FLAG_CONTRACTS,vA as ASSURANCE_GATE_TRIGGERS,PA as ASSURANCE_MEASUREMENT_SOURCE_KINDS,qA as ASSURANCE_PRESET_IDS,xA as AssuranceEvaluationRefusalError,bA as AssuranceMutationRefusalError,IA as AssuranceSourceResolutionError,St as BASELINE_ITEM_FORMAT_VERSION,mf as BOUNDARY_FIXTURE_CAPTURE_SOURCES,rE as BRIEF_LIST_FIELDS,S as BUILTIN_CORPUS_SHAPES,Ut as BUILTIN_HARNESS_SIGNAL_DESCRIPTORS,et as BUILTIN_ITEM_TYPE_VALUES,ye as BUILTIN_PROFILES,Pm as BUILTIN_RELATIONSHIP_KINDS,nn as CALENDAR_COMMANDER_STRING_OPTION_CONTRACTS,ei as CALENDAR_FLAG_CONTRACTS,xo as CLAIM_FLAG_CONTRACTS,yi as CLOSE_ACTION_OPTION_KEYS,Oo as CLOSE_FLAG_CONTRACTS,Ro as CLOSE_MANY_FLAG_CONTRACTS,Po as CLOSE_TASK_FLAG_CONTRACTS,jn as COMMENTS_FLAG_CONTRACTS,bm as COMMON_MUTATION_COMMAND_OPTION_KEYS,fi as COMPLETION_FLAG_CONTRACTS,st as CONFIDENCE_TEXT_VALUES,to as CONFIG_FLAG_CONTRACTS,on as CONTEXT_COMMANDER_STRING_OPTION_CONTRACTS,mE as CONTEXT_EVALUATION_METRIC_NAMES,ni as CONTEXT_FLAG_CONTRACTS,he as CONTEXT_OUTPUT_VALUES,AE as CONTEXT_PACKING_PROFILES,pE as CONTEXT_RELEVANCE_SERVICE,cE as CONTEXT_RELEVANCE_SIGNAL_NAMES,xE as CONTEXT_SIGNAL_SET_VERSION,bE as CONTEXT_SIGNAL_STORE_FORMAT_VERSION,IE as CONTEXT_SIGNAL_STORE_WARNING_DETAILS,li as CONTRACTS_FLAG_CONTRACTS,qo as COPY_FLAG_CONTRACTS,un as CREATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,fn as CREATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,ln as CREATE_COMMANDER_STRING_OPTION_CONTRACTS,nm as CREATE_DIRECT_CLOSE_REASON_DEFAULT,Ko as CREATE_FLAG_CONTRACTS,Yh as CURRENT_HISTORY_ITEM_HASH_VERSION,Ot as CURRENT_ITEM_FORMAT_VERSION,vE as ContextSignalStore,EE as ContextUsageValidationError,AA as DEFAULT_AUTHOR_IDENTITY_VOCABULARY,uC as DEFAULT_CHILD_SAMPLE_LIMIT,tE as DEFAULT_COMPACT_LIST_FIELDS,KT as DEFAULT_DERIVED_INDEX_MINIMUM_ITEMS,Sd as DEFAULT_EVAL_QUERIES_RELATIVE_PATH,KE as DEFAULT_TERMINAL_TRANSITION_POLICY,DE as DEFAULT_WORKSPACE_MEMORY_MINIMUM_ITEMS,Ny as DEFECT_ESCAPE_CLASSES,wy as DEFECT_GATE_EVIDENCE_DISPOSITIONS,No as DELETE_FLAG_CONTRACTS,nt as DEPENDENCY_KIND_VALUES,si as DEPS_FLAG_CONTRACTS,Vn as DOCS_FLAG_CONTRACTS,Bo as DUPLICATES_FLAG_CONTRACTS,ci as EVAL_FLAG_CONTRACTS,Ad as EVAL_QUERY_SET_CONTRACT,yd as EVAL_QUERY_SET_EXAMPLE,gd as EVAL_QUERY_SET_SCHEMA_ID,ri as EVENTS_FLAG_CONTRACTS,Mo as EVENT_FLAG_CONTRACTS,en as EXECUTABLE_COMMAND_ALIASES,H as EXIT_CODE,fo as EXTENSION_ACTIVATE_FLAG_CONTRACTS,lo as EXTENSION_ADOPT_ALL_FLAG_CONTRACTS,yo as EXTENSION_ADOPT_FLAG_CONTRACTS,rA as EXTENSION_CAPABILITIES,rm as EXTENSION_CAPABILITY_CONTRACT,em as EXTENSION_CAPABILITY_CONTRACT_VERSION,tm as EXTENSION_CAPABILITY_LEGACY_ALIASES,_t as EXTENSION_CAPABILITY_REGISTRATION_SURFACES,Ao as EXTENSION_CATALOG_FLAG_CONTRACTS,mo as EXTENSION_DEACTIVATE_FLAG_CONTRACTS,uo as EXTENSION_DESCRIBE_FLAG_CONTRACTS,go as EXTENSION_DOCTOR_FLAG_CONTRACTS,po as EXTENSION_EXPLORE_FLAG_CONTRACTS,ro as EXTENSION_FLAG_CONTRACTS,oo as EXTENSION_INIT_FLAG_CONTRACTS,ao as EXTENSION_INSTALL_FLAG_CONTRACTS,ho as EXTENSION_MANAGE_FLAG_CONTRACTS,_o as EXTENSION_MIGRATE_FLAG_CONTRACTS,nA as EXTENSION_POLICY_MODES,oA as EXTENSION_POLICY_SURFACES,To as EXTENSION_RELOAD_FLAG_CONTRACTS,sA as EXTENSION_SANDBOX_PROFILES,no as EXTENSION_SCOPE_FLAG_CONTRACTS,iA as EXTENSION_TRUST_MODES,co as EXTENSION_UNINSTALL_FLAG_CONTRACTS,ry as EXTERNAL_DEPENDENCY_SOURCE_KIND,ny as EXTERNAL_DEPENDENCY_SOURCE_KIND_ALIAS,Bn as FILES_FLAG_CONTRACTS,Jo as FOCUS_FLAG_CONTRACTS,$o as GC_FLAG_CONTRACTS,oi as GET_FLAG_CONTRACTS,Gn as GLOBAL_FLAG_CONTRACTS,_s as GRAPH_DURABLE_CACHE_MIN_ITEMS,ms as GRAPH_DURABLE_CACHE_VERSION,ai as GRAPH_FLAG_CONTRACTS,rr as GRAPH_SUBCOMMAND_VALUES,ii as GUIDE_FLAG_CONTRACTS,Vo as HEALTH_FLAG_CONTRACTS,Yn as HISTORY_AUTHOR_ACKNOWLEDGE_FLAG_CONTRACTS,dy as HISTORY_AUTHOR_ATTRIBUTION_BASELINE,XC as HISTORY_COMPACT_BULK_DEFAULT_MIN_ENTRIES,qn as HISTORY_COMPACT_FLAG_CONTRACTS,Wn as HISTORY_FLAG_CONTRACTS,Kn as HISTORY_REDACT_FLAG_CONTRACTS,Xn as HISTORY_REPAIR_FLAG_CONTRACTS,ld as INIT_AGENT_GUIDANCE_MODE_VALUES,eo as INIT_FLAG_CONTRACTS,Eo as INSTALL_FLAG_CONTRACTS,it as ISSUE_SEVERITY_VALUES,Yo as ITEM_COMPLETE_FLAG_CONTRACTS,kC as ITEM_LATEST_TIMESTAMP_FIELDS,im as ITEM_METADATA_KEY_ORDER,Xo as ITEM_MUTATE_FLAG_CONTRACTS,tt as ITEM_TYPE_VALUES,wC as ITEM_UNION_COLLECTION_FIELDS,kE as JsonFileContextSignalStoreAdapter,Hn as LEARNINGS_FLAG_CONTRACTS,jc as LINKED_TEST_ENV_NAME_PATTERN,$c as LINKED_TEST_PM_CONTEXT_MODE_VALUES,Uc as LINKED_TEST_PROTECTED_ENV_KEYS,tn as LIST_COMMANDER_STRING_OPTION_CONTRACTS,nE as LIST_COMMAND_DEFAULT_PROJECTIONS,cA as LIST_FILTER_EXTENSION_FLAG_DEFINITIONS,Fn as LIST_FILTER_FLAG_CONTRACTS,Qy as LIST_SORT_FIELDS,eE as LIST_SORT_ORDER_VALUES,pC as MAX_CHILD_PROJECTION_ITEMS,Lo as MEET_FLAG_CONTRACTS,LC as MERGE_DRIVER_ARTIFACT_VALUES,zn as MERGE_FLAG_CONTRACTS,k as MemoryRelationshipGraphAdapter,sn as NEXT_COMMANDER_STRING_OPTION_CONTRACTS,pi as NEXT_FLAG_CONTRACTS,Ec as NEXT_OUTPUT_VALUES,$n as NOTES_FLAG_CONTRACTS,io as PACKAGE_FLAG_CONTRACTS,so as PACKAGE_INIT_FLAG_CONTRACTS,vo as PAUSE_TASK_FLAG_CONTRACTS,Ai as PLAN_CREATE_METADATA_PARAMETER_KEYS,Qn as PLAN_FLAG_CONTRACTS,rd as PLAN_SHOW_DEPTH_VALUES,td as PLAN_SUBCOMMANDS,nd as PLAN_TEMPLATE_NAMES,Ii as PM_CLI_EXPECTED_ERROR_NAME,or as PM_CLI_ONLY_TOOL_ACTION_WAIVERS,QE as PM_COMMAND_EXIT_CONTRACTS,ZE as PM_COMMAND_EXIT_OUTCOME_CONTRACTS,Tr as PM_COMMAND_OUTPUT_BUDGET_CONTRACTS,sS as PM_COMMAND_OUTPUT_ENVELOPE_CONTRACTS,qd as PM_COMMAND_VISIBILITY_CONTRACTS,pA as PM_CONTEXT_INTENTS_FILE,Mh as PM_CONTEXT_INTENT_CONTRACTS,tr as PM_CORE_COMMAND_NAMES,T as PM_CORPUS_SHAPE_SCHEMA,nS as PM_ERROR_CODE_CATALOG,QC as PM_ERROR_CODE_EXIT_CLASS_CONTRACTS,Fe as PM_EXACT_COVERAGE_METRICS,Yt as PM_EXTENSION_CAPABILITY_CONTRACTS,nr as PM_EXTENSION_PACKAGE_ACTION_SUBCOMMANDS,Jt as PM_EXTENSION_POLICY_MODE_CONTRACTS,er as PM_EXTENSION_POLICY_SURFACE_CONTRACTS,Qt as PM_EXTENSION_SANDBOX_PROFILE_CONTRACTS,qt as PM_EXTENSION_SERVICE_NAME_CONTRACTS,Zt as PM_EXTENSION_TRUST_MODE_CONTRACTS,hy as PM_GITATTRIBUTES_END,_y as PM_GITATTRIBUTES_START,gy as PM_GITATTRIBUTES_V2_END,Ty as PM_GITATTRIBUTES_V2_START,Li as PM_GITIGNORE_END,Pi as PM_GITIGNORE_START,rp as PM_MCP_PROMPT_CONTRACTS,tp as PM_MCP_RESOURCE_CONTRACTS,Qd as PM_MCP_TOOL_COMMAND_CONTRACTS,H_ as PM_MODE_PAIRED_OUTPUT_PROJECTION_CONTRACTS,jr as PM_MUTATION_ACTION_CONTRACTS,fr as PM_OUTPUT_BUDGET_CLASSES,lr as PM_OUTPUT_DEGRADATION_STEPS,oS as PM_OUTPUT_ENVELOPE_KINDS,fe as PM_PACKAGE_CONVENTIONAL_RESOURCE_ROOTS,le as PM_PACKAGE_RESOURCE_KINDS,xi as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA,Ri as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA_VERSION,Sh as PM_READ_OUTPUT_COMPOSITION_OPTION_FLAGS,yh as PM_READ_OUTPUT_DIMENSIONS,Ch as PM_READ_OUTPUT_OPTION_FLAGS,_h as PM_READ_OUTPUT_SESSION_MAX_SEEN_ITEM_IDS,mh as PM_READ_OUTPUT_SESSION_MIN_TOKENS,Eh as PM_READ_OUTPUT_SURFACES,Oh as PM_READ_OUTPUT_SURFACE_CONTRACTS,$_ as PM_READ_ROW_CONTRACTS,j_ as PM_READ_ROW_JQ_SELECTOR,MR as PM_RECOVERY_REFERENCE_FIELDS,ee as PM_RECOVERY_REFERENCE_KINDS,eC as PM_SUCCESS_EXIT_CODES,ir as PM_TOOL_ACTIONS,Ei as PM_TOOL_ACTION_PARAMETER_CONTRACTS,bi as PM_TOOL_PARAMETERS_SCHEMA,Oi as PM_TOOL_PARAMETERS_SCHEMA_MAJOR,Si as PM_TOOL_PARAMETERS_SCHEMA_VERSION,Ti as PM_TOOL_RESERVED_CUSTOM_FIELD_PROPERTIES,Me as PM_WORKSPACE_RECIPE_SCHEMA,Zn as PROFILE_FLAG_CONTRACTS,xe as PROFILE_LINT_CODES,be as PROFILE_LINT_DIMENSIONS,Ae as PROFILE_NAMES,$d as PROFILE_SUBCOMMANDS,B as PmCliError,M as PmClient,oh as QUERY_CURSOR_CONTRACT,So as REINDEX_FLAG_CONTRACTS,HT as REINDEX_LOCK_ID,Q as RELATIONSHIP_GRAPH_SNAPSHOT_VERSION,wo as RELEASE_FLAG_CONTRACTS,Do as REMIND_FLAG_CONTRACTS,ae as RESERVED_ITEM_FIELD_NAMES,Io as RESTORE_FLAG_CONTRACTS,ot as RISK_VALUES,Xg as RelationshipEventLog,Yg as RelationshipEventStore,y as RelationshipGraph,W as RelationshipKindRegistry,Jn as SCHEMA_FLAG_CONTRACTS,rn as SEARCH_COMMANDER_STRING_OPTION_CONTRACTS,dA as SEARCH_EXTENSION_FLAG_DEFINITIONS,ui as SEARCH_FLAG_CONTRACTS,nc as SEMANTIC_ATTRIBUTION_LIMITS,sm as SETTINGS_DEFAULTS,Id as SNAPSHOT_SCHEMA,ly as SOURCE_CONTEXT_ACCESS_ENV,fy as SOURCE_CONTEXT_WRITE_OVERRIDE_ENV,ko as START_TASK_FLAG_CONTRACTS,Ho as STATS_FLAG_CONTRACTS,rt as STATUS_VALUES,Dn as SUBCOMMAND_GLOBAL_FLAG_CONTRACTS,qh as SUPPORTED_HISTORY_ITEM_HASH_VERSIONS,D_ as SUPPRESS_HOST_OUTPUT_MARKER,Uo as TELEMETRY_FLAG_CONTRACTS,Sp as TELEMETRY_SUBCOMMANDS,Fo as TEST_ALL_FLAG_CONTRACTS,Go as TEST_FLAG_CONTRACTS,jo as TEST_RUNS_FLAG_CONTRACTS,gp as TEST_RUN_MEASUREMENT_LIMIT,wn as TOOL_ACTIVITY_OPTION_CONTRACTS,gn as TOOL_AGGREGATE_OPTION_CONTRACTS,bn as TOOL_BULK_MUTATION_FILTER_OPTION_CONTRACT_SOURCE,Nn as TOOL_CALENDAR_OPTION_CONTRACTS,In as TOOL_CLOSE_MANY_FILTER_OPTION_CONTRACTS,kn as TOOL_CONTEXT_OPTION_CONTRACTS,Sn as TOOL_CREATE_OPTION_CONTRACTS,Cn as TOOL_CREATE_OPTION_CONTRACT_SOURCE,vn as TOOL_DEPS_OPTION_CONTRACTS,Pn as TOOL_GRAPH_OPTION_CONTRACTS,Tn as TOOL_LIST_FILTER_OPTION_CONTRACTS,An as TOOL_SEARCH_FILTER_OPTION_CONTRACTS,En as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACTS,yn as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACT_SOURCE,xn as TOOL_UPDATE_MANY_FILTER_OPTION_CONTRACTS,Rn as TOOL_UPDATE_OPTION_CONTRACTS,On as TOOL_UPDATE_OPTION_CONTRACT_SOURCE,om as TYPE_TO_FOLDER,Em as UNKNOWN_SUBCOMMAND_COMPATIBILITY_CODES,mn as UPDATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,hn as UPDATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,_n as UPDATE_COMMANDER_STRING_OPTION_CONTRACTS,Zo as UPDATE_FLAG_CONTRACTS,Qo as UPDATE_MANY_FLAG_CONTRACTS,Co as UPGRADE_FLAG_CONTRACTS,Wo as VALIDATE_FLAG_CONTRACTS,di as WORKSPACE_FLAG_CONTRACTS,Sr as WORKSPACE_HISTORY_ID,zi as WorkspaceGraphCache,eA as WorkspaceTransactionInterruptedError,ki as _testOnly,aE as _testOnlyAggregateCommand,ud as _testOnlyConfigCommand,_C as _testOnlyGetCommand,da as _testOnlyHealthCommand,hd as _testOnlyInit,fd as _testOnlyInitAgentGuidance,vS as _testOnlyItemTransaction,BC as _testOnlyMutationEvents,VE as _testOnlyNextCommand,xC as _testOnlySearchCommand,aC as _testOnlySimilarity,Dd as _testOnlyTemplates,La as _testOnlyValidateCommand,ey as acceptAssuranceProposals,Ms as acknowledgeUnknownAuthorHistoryEvents,Ls as acknowledgeUnknownAuthorHistoryEventsFromTransport,XT as acquireItemMetadataDerivedIndexLock,Cr as acquireLock,VS as activateExtensionForTest,zm as activateExtensions,Gt as agentSessionEnvironment,gu as aggregate,ap as analyzeAgentProvenanceDescriptorCoverage,vy as analyzeDefectChangeRisk,Jg as analyzeGraphImpact,Zg as analyzeKnowledgeGraph,oC as analyzePmCommandExitConformance,sr as analyzePmToolActionParity,DC as analyzeReconciliationDiscard,qg as analyzeRelationshipExecution,as as analyzeRelationshipSchedule,Bl as analyzeSdkActionCoverage,ue as analyzeSdkCliParameterCompleteness,wu as append,Er as appendHistoryEntry,xr as appendWorkspaceAuditEvent,br as appendWorkspaceHistoryChange,hT as applyAcceptanceCriteriaMutations,ZA as applyAssurancePreset,Xl as applyBootstrapPagerPolicy,jh as applyContextIntentProjection,yc as applyContextTagProjection,oE as applyFilterValueEcho,$g as applyHistoryPatch,tf as applyInvocationAuthorOverride,_a as applyPathMigrations,vh as applyReadOutputDimensions,Ih as applyReadOutputIncludeModes,Th as applyReadOutputSessionReferences,g_ as applyRegisteredItemFieldDefaultsAndValidation,Aa as applyStandaloneNote,na as applyStoredExtensionMigrationState,gT as applyTagRemovals,JE as applyTerminalOrderingPolicy,ya as artifactKey,um as asRecordClone,pm as asRecordOrNull,z as assembleWorkspaceRelationshipGraph,OO as assertExtensionBlueprint,SO as assertExtensionCapabilityUsage,iO as assertExtensionDeactivated,xO as assertExtensionManifestCompatible,bO as assertExtensionManifestMatchesBlueprint,IO as assertExtensionPreflight,YC as assertHistoryCompactTarget,FC as assertHistoryRepairTarget,ha as assertLinkedArtifactMutationIsUnambiguous,vf as assertMemoryRelationshipGraphAdapterConformance,ET as assertNoUnknownCsvKeys,sO as assertPackageManifest,mT as assertParentReferenceIsNotSelf,RO as assertProjectProfile,aR as assertProjectRuntimeCompatibility,B_ as assertProjectionModeChoice,aO as assertRegisteredCommandContract,TO as assertRegisteredCommandOverride,fO as assertRegisteredExporter,cO as assertRegisteredFlags,dO as assertRegisteredHook,lO as assertRegisteredImporter,mO as assertRegisteredItemField,_O as assertRegisteredItemType,CO as assertRegisteredMigration,gO as assertRegisteredParserOverride,AO as assertRegisteredPreflightOverride,hO as assertRegisteredProfile,yO as assertRegisteredRendererOverride,pO as assertRegisteredSearchProvider,EO as assertRegisteredServiceOverride,uO as assertRegisteredVectorStoreAdapter,Gm as assertRelationshipEdgeAllowed,Ve as assertRelationshipGraphAdapterConformance,LA as assuranceAssertionUpdateIsLoosening,Bh as attachContextIntentReceipt,Y_ as attachOutputOmissionReceipt,Wh as attachOutputTokenAccounting,Vh as attachReadOutputContracts,gh as attachReadOutputSessionReceipt,Bs as auditMergeAttributeFence,Ay as auditMergeDriverConfiguration,ls as auditWorkspaceRelationshipGraph,Lt as boundAgentEpisodeIdentity,uh as boundReadOutputRows,hc as buildChildrenByParent,TC as buildCompactSearchFilterSummary,iE as buildContentFilterEcho,wE as buildContextSignalSnapshot,sf as buildCorpusShapeItemPlan,ky as buildDefectRecurrenceIndex,Qs as buildExtensionDescribeResult,sE as buildGovernanceMissingFilterEcho,vT as buildInvalidTypeError,lC as buildItemChildrenRollup,wS as buildItemCompletionMutations,dE as buildItemContextRelevanceCandidates,eg as buildItemNotFoundError,mC as buildItemSchedule,$s as buildMergeAttributePatterns,Ci as buildPmActionToolInputSchema,ay as buildRelationshipContext,og as buildSearchCorpus,sg as buildSemanticCorpusInput,lg as buildVectorizationEmbeddingIdentity,fg as buildVectorizationEmbeddingMetadata,gC as buildVerboseSearchFilters,GE as buildWorkspaceMemorySnapshot,Pt as canonicalDocument,xm as canonicalizeCommandOptionKey,Lm as canonicalizeRelationshipKind,DR as censusPmRecoveryReferenceProducers,HS as checkExtensionManifestCompatibility,ll as claim,fl as claimNext,py as classifyHistoryAuthorEvent,VC as classifyHostEnvironmentFault,bC as classifyImplicitSemanticFallbackReason,xt as classifyItemFormatVersion,bp as classifyLinkedTestFailure,d_ as clearActiveExtensionHooks,ys as clearDurableGraphCache,v_ as clearFocusedItem,Gi as clearWorkspaceContractsCache,ul as close,xc as closeItem,El as closeTask,Jl as coalesceRepeatedListFlags,$y as collectBlockedByIds,By as collectBlockedByIdsFromCorpus,Bi as collectDanglingDependencyReferences,Wy as collectDependencyBlockedIds,$i as collectDuplicateDependencyRows,us as collectDuplicateRelationshipEdgeGroups,RC as collectErrorCauseCodes,Vi as collectMissingDependencyTargetIds,Lc as collectNewOrderingCycleWarnings,cs as collectOrderingCycles,Hi as collectOrderingStorageContradictions,fA as collectPackageContextIntentContracts,_e as collectPackageExtensionDirectories,h_ as collectRegisteredItemFieldNames,O_ as collectRuntimeCreateFieldValues,PT as collectRuntimeFilterValues,R_ as collectRuntimeUpdateFieldValues,uc as collectSubtreeIds,ht as collectUsedExtensionCapabilities,Im as commandOptionFlagLabel,Eu as comments,tu as commitImportedItem,kS as commitItemCompletion,NS as commitItemMutations,tA as commitWorkspaceTransaction,Mn as compactFlagAliasContracts,lc as compareCriticalItems,G as comparePmDateVersions,Qg as compareRelationshipSnapshots,lm as compareTimestampStrings,OA as compileHistoryProvenanceMatcher,Fh as composeContextIntentContracts,MS as composeExtension,$S as composeExtensionPackage,zy as computeActionabilityReport,aT as computeHistoryDiff,is as computeRelationshipCentrality,os as computeRelationshipDominators,Wi as computeWorkspaceGraphFingerprint,vu as config,c_ as consumeAfterCommandAffectedItems,fu as context,Hh as contextIntentRowId,_l as copy,xp as countFailureCategories,dh as countReadOutputRows,dl as create,JA as createAssurancePreset,Iy as createAssuranceWorkspaceContext,mm as createCheckpointId,Km as createCoreCommandHookContext,Le as createCorpusShapeMeasurement,UA as createEmptyAssuranceDocument,Um as createEmptyExtensionRegistrationRegistry,vi as createExtensionCommandSdk,mt as createExtensionContributionInventory,NO as createExtensionTestHarness,yr as createHistoryEntry,Ng as createLazyModule,QT as createMutationGuardSdk,V_ as createOutputOmissionReceipt,Ni as createPmCliExpectedError,rf as createPmCliProgram,_r as createPmCommandOutputBudget,J_ as createQueryFingerprint,kf as createRelationshipGraphScaleFixture,b as createRelationshipGraphSnapshot,se as createRelationshipKindRegistry,AC as createSearchCursorFingerprint,Xm as createSerialQueue,CT as createStdinTokenResolver,Cm as createUnknownSubcommandError,Nd as createWorkspaceSnapshot,WS as deactivateExtensionForTest,tb as declineServiceOverride,$h as decodeContextIntentCursor,Ig as decodeHtmlEntitiesInOptions,th as decodeQueryCursor,Q_ as decodeQueryCursorEnvelope,eh as decodeQueryCursorState,fh as decodeReadOutputContinuationCursor,Ca as dedupeLinkedArtifacts,uE as defaultScoreContextCandidates,ab as defineAfterCommandHook,ib as defineBeforeCommandHook,sb as defineBeforeMutationHook,BR as defineCommand,qR as defineCommandOverride,C as defineCorpusShape,ob as defineExporter,PS as defineExtension,LS as defineExtensionBlueprint,$R as defineExtensionManifest,VR as defineFlag,nb as defineImporter,zR as defineItemField,WR as defineItemType,KR as defineMigration,pb as defineOnIndexHook,db as defineOnReadHook,cb as defineOnWriteHook,JR as defineParserOverride,hr as definePmCommandOutputBudget,iS as definePmCommandOutputEnvelope,eS as definePmErrorCodeCatalog,ZR as definePreflightOverride,HR as defineProjectProfile,rb as defineRendererOverride,XR as defineSearchProvider,QR as defineServiceOverride,YR as defineVectorStoreAdapter,De as defineWorkspaceRecipe,hl as deleteItem,Md as deleteWorkspaceSnapshot,Fm as dependencyToRelationship,Iu as deps,QA as deriveAssuranceProposals,GS as deriveExtensionCapabilities,iC as derivePmBulkMutationEffect,GR as derivePmRecoveryReferenceObligations,Ks as deriveSchemaEvolutionMigrationId,Eg as deriveTelemetryCommandResolution,GT as describeAllowedTransitions,uy as describeExtensionActivation,FS as describeExtensionBlueprint,Xa as describeItemOwnershipConflict,Oe as describeProfileComposition,Re as describeProjectProfile,hS as describeUnknownError,Bt as detectAgentIdentity,Kt as detectHarnessIdentity,rs as detectRelationshipCommunities,Vt as diagnoseAgentIdentity,fs as diffRelationshipAuditSnapshots,Ep as diffTestRunMeasurements,Vm as discoverExtensions,dt as discoverNearbyPmRoot,Rf as discoverProjectRuntimeVersionPins,xu as docs,yu as duplicates,hs as durableGraphCachePath,Es as durableGraphCacheStatus,Rt as effectiveItemFormatVersion,Fg as emitTelemetryErrorEvent,eu as emptyImportedDocument,Z_ as encodeQueryCursor,lh as encodeReadOutputContinuationCursor,cT as enforceHistoryStreamPolicyForItem,dT as enforceHistoryStreamPolicyForItems,JC as enrichCliFlagInvocationContract,ZC as enrichCliFlagInvocationContracts,Bg as ensureMaterializedHistoryTarget,Di as ensurePmGitignore,pa as ensureScope,yg as ensureSentryInit,Qp as ensureTrackerInitialized,es as enumerateRelationshipPaths,Ar as estimatePmOutputTokens,$A as evaluateAssuranceAssertion,HA as evaluateAssuranceGate,YO as evaluateBoundaryFixtures,_E as evaluateContextRanking,Py as evaluateDefectGateEvidence,jA as evaluateMeasurement,Hr as evaluateMutationGuard,fp as evaluateProvenanceCoverage,pp as evaluateSemanticAttributionCoverage,Fc as evaluateSimilarityGovernance,DT as evaluateTransition,ag as executeEmbeddingBatchesWithRetry,pg as executeVectorDelete,ug as executeVectorReset,dg as executeVectorUpsert,df as executeWorkspaceRecipe,ga as expandAddGlobEntries,Ia as explainSourceTraceability,Cl as extension,Ol as extensionActivate,Rl as extensionDeactivate,Sl as extensionList,Zf as extensionMigrate,Ug as extractPatchFailureContext,va as extractReferencedPmItemIdsFromCommand,wf as federateRelationshipGraphSnapshots,Ou as files,Ru as filesDiscover,bu as filesLookup,ff as findCoverageDeficits,Gc as findDuplicateClusters,js as findGitWorkspaceRoot,Js as findInstalledNpmPackageCandidate,ns as findRedundantRelationshipEdges,ss as findRelationshipCutStructure,Dc as findSimilarItems,Gg as finishTelemetryCommand,Am as flattenFlagListValue,pf as flushTelemetryQueue,gl as focus,ts as forEachMatchedRelationshipEdge,ps as formatDuplicateEdgeGroup,ds as formatOrderingStorageContradiction,Yd as formatProfileApplyHuman,Xd as formatProfileLintHuman,zd as formatProfileListHuman,Kd as formatProfileShowHuman,qs as formatSchemaEvolutionMigrationHuman,nl as gc,Lr as generateItemId,hu as get,i_ as getActiveCommandResult,Dh as getActiveContextIntentContracts,gt as getActiveExtensionRegistrations,VA as getAssuranceDeclaration,Ul as getContracts,w_ as getFocusedItem,lt as getHistoryPath,Kg as getItemAt,ut as getItemPath,Wr as getMutationActionContract,Mi as getPmGitignoreBlock,pt as getSettingsPath,Fl as getWorkspaceContracts,Or as getWorkspaceHistoryPath,Nu as graph,Ts as graphAuditBaselinePath,up as groupHistoryByEpisode,eb as handleServiceOverride,mi as hasSubcommandFlagContractsForCommand,mg as hasVectorizationEmbeddingIdentityChanged,_g as hasVectorizationVectorDimensionChanged,Jh as hashDocument,Zh as hashDocumentForVersion,Qh as hashEmptyDocument,rl as health,qi as hierarchyAncestors,Ji as hierarchyDescendants,al as historyCompact,cl as historyCompactBulk,SA as historyEntryMatchesProvenance,ol as historyRedact,il as historyRepair,sl as historyRepairAll,Hy as indexBlockedByIds,hg as inferConsistentVectorDimension,mr as inferPmOutputBudgetClass,ku as init,Ns as inspectHistoryAuthorStream,xf as inspectProjectRuntimeCompatibility,Zr as inspectStaleInProgressItems,Rr as inspectWorkspaceHistoryState,wd as inspectWorkspaceSnapshot,zs as installMergeFence,Sc as isAlreadyClaimedError,AS as isCommanderError,Ba as isErrnoError,oy as isExternalDependencySourceKind,F_ as isHostOutputSuppressed,Br as isMutationAction,Dm as isOrderingRelationshipKind,lT as isPlaceholderReferenceToken,wi as isPmCliExpectedError,cr as isPmExtensionCapabilityContract,pr as isPmExtensionPolicyModeContract,ur as isPmExtensionPolicySurfaceContract,dr as isPmExtensionServiceNameContract,rC as isPmKnownExitCode,cS as isPmMutationReceipt,tC as isPmSuccessfulExitCode,ar as isPmToolAction,bf as isProjectMutatingInvocation,wg as isPureSnakeCaseAlias,Ph as isReadOutputBudgetExceeded,z_ as isReadRowContract,Is as isRuntimeRecord,Pg as isTerminalPlanMode,x_ as isTerminalStatus,Qe as isTimestampLiteral,xS as itemDocumentToMutationOptions,fC as itemHasSchedule,zr as jaccardSimilarity,Su as learnings,ym as levenshteinDistanceWithinLimit,ja as limitAnnotationEntries,US as lintExtensionBlueprint,Ie as lintProjectProfile,mu as list,ql as listAliasPluralKeys,JT as listAllDocumentCandidatesCached,Ur as listAllItemMetadata,ZT as listAllItemMetadataLight,BA as listAssuranceDeclarations,YA as listAssuranceVerdicts,nf as listBuiltinCorpusShapes,Ey as listInvalidProvenanceHistoryStreamIds,Oy as listMergeReceipts,Vr as listMutationActions,$C as listMutationEvents,Zd as listPmCommandsForTier,ep as listPmMcpToolsForProfile,Se as listProfiles,kd as listWorkspaceSnapshots,mA as loadContextIntentRuntimeLayers,Gd as loadCreateTemplateOptions,Wm as loadExtensions,Ss as loadGraphAuditBaseline,hm as loadMutationCheckpoint,_ as loadRelationshipGraphAdapter,Gr as locateItem,yT as looksLikeGenericKeyValueEntry,ph as mapReadOutputRows,Ry as markMergeReceiptReconciled,LT as matchesRuntimeFilters,Mg as maybeRunFirstUseTelemetryPrompt,af as measureCorpusShapePlan,TT as mergeAdditiveTags,DS as mergeExtensionBlueprints,IC as mergeHistoryStreams,vC as mergeItemDocuments,PC as mergeJsonDocuments,Zl as mergeLinkedTestTwoTokenEntries,NC as mergeRelationshipEventStreams,gc as mergeSortedWarnings,vg as migrateItemFilesToFormat,tg as mutateItem,Ir as mutateWorkspaceJsonWithHistory,Tu as next,Ua as normalizeAnnotationTransportOptions,wA as normalizeAssuranceEvaluation,NA as normalizeAssuranceMutation,Ql as normalizeBootstrapInvocation,Ui as normalizeDependencyGraphTarget,sy as normalizeDependencySeedId,iy as normalizeDependencySourceKind,ft as normalizeExtensionContributionInventory,yy as normalizeInvalidHistoryProvenance,lS as normalizeItemAddressInvocation,bt as normalizeItemFormatVersion,Pr as normalizeItemId,wt as normalizeItemMetadata,Yl as normalizeLegacyExtensionActionSyntax,Ta as normalizeLinkedPath,uT as normalizeParentReferenceValue,Ee as normalizeProfileName,vr as normalizeRawItemId,Nh as normalizeReadOutputIncludeModeOptions,nT as normalizeReplayPatchOps,Kr as normalizeSimilarityText,b_ as normalizeStatusForRegistry,Nt as normalizeStatusInput,C_ as normalizeStatusInputWithRegistry,gS as normalizeThrownExitCode,Cu as notes,Ze as nowIso,gs as openDurableGraphCache,Zi as orderingPredecessors,Qi as orderingSuccessors,yE as packContextCandidates,fc as packRankedContextItems,Ml as packageActivate,Ll as packageCatalog,Dl as packageDeactivate,vl as packageDescribe,wl as packageDoctor,Il as packageInstall,bl as packageLifecycle,xl as packageList,kl as packageManage,Qf as packageMigrate,Pl as packageReload,Nl as packageUninstall,nh as paginateQueryRows,ua as parseAddEntries,la as parseAddGlobEntries,Ha as parseAnnotationTextInput,OS as parseAtomicMutationControls,Kl as parseBootstrapCommandName,Vl as parseBootstrapGlobalOptions,zl as parseBootstrapHelpRequest,ef as parseBootstrapTypeValue,dc as parseContextDepth,ic as parseContextFocusFields,uA as parseContextIntentDeclarations,pc as parseContextSections,NE as parseContextSignalSnapshot,AT as parseCsvKv,My as parseDefectChangeRiskRequest,Ly as parseDefectRecurrencePolicy,Ed as parseEvalQuerySet,bs as parseGraphSubcommand,EA as parseHistoryProvenanceFilters,hA as parseIntegerLimit,I_ as parseItemDocument,RS as parseItemMutationBatch,kT as parseLimit,Yc as parseLinkedTestAssertionEqualsMap,qc as parseLinkedTestAssertionGteMap,Vc as parseLinkedTestBoolean,Wc as parseLinkedTestContextMode,Bc as parseLinkedTestEnvClear,Hc as parseLinkedTestEnvSet,Jc as parseLinkedTestJsonEntries,Xc as parseLinkedTestMinLines,Kc as parseLinkedTestRegexList,zc as parseLinkedTestStringList,ma as parseMigrateEntries,Ky as parseMultiValueFilter,dS as parseMutationReceipt,OT as parseOptionalNonNegativeInteger,ST as parseOptionalNumber,TA as parsePriority,qy as parsePriorityFilterSet,hh as parseReadOutputSession,T_ as parseRegisteredItemFieldAssignments,v as parseRelationshipGraphSnapshot,fa as parseRemoveEntries,xa as parseSourceLineRange,xT as parseStatusFilterCsv,Xy as parseStringFilterSet,Mr as parseTags,Ap as parseTestRunMeasurements,gA as parseType,Yy as parseTypeFilterSet,Ps as parseUnknownAuthorHistoryEventCoordinates,WE as partitionDecisionEntries,sT as patchPathToChangedField,Xe as pathExists,yl as pauseTask,As as persistDurableGraphResult,FT as persistSelectedItemFormat,ME as planCompletedAtBackfill,Ne as planProfileApplication,vR as planRelationshipEventBackfill,Rs as planRelationshipRemediation,Xs as planSchemaEvolutionMigration,ks as planUnknownAuthorHistoryAcknowledgment,vd as planWorkspaceSnapshotRestore,BS as preflightExtension,Yr as prepareSimilarityText,Xh as printError,Kh as printResult,qu as profile,Qu as profileApply,el as profileLint,Ju as profileList,Zu as profileShow,a_ as projectAfterCommandItemSnapshot,sc as projectContextFocusRows,Tp as projectFleetAttributionAnalytics,CA as projectHistoryProvenance,_p as projectProvenanceCoverageAnalytics,Pa as projectValidateCounts,ty as promoteAssuranceAssertion,tR as pruneCompileCacheGenerations,WA as putAssuranceDeclaration,zA as putAssuranceDeclarationBundle,VT as queryItemMetadataIndex,WT as queryLinkedFileMetadataIndex,zT as querySimilarItemMetadataIndex,yp as queryTestRunMeasurementsBelow,Gs as quoteCommandArg,Ds as quoteWindowsCommandArg,CS as rankCommandPaths,$a as readAnnotationEntries,Wt as readAuthorEnvironment,Lp as readBooleanOption,RE as readContextUsageAffinity,Mp as readCsvListOption,ra as readExtensionMigrationState,Ye as readFileIfExists,cn as readFirstStringFromCommanderOptions,dn as readFirstValueFromCommanderOptions,lp as readHistoryAnalyticsWindow,M_ as readHistoryEntries,ip as readImprovementLedger,YT as readItemMetadataDerivedIndexState,Fr as readLocatedItem,ch as readOutputBudgetCollections,xh as readOutputIncludeModeOptions,ah as readOutputRowCollections,sh as readOutputRowPaths,Ah as readOutputSessionRemainingTokens,me as readPmPackageManifest,jl as readRequiredString,Dr as readSettings,UT as readSettingsWithMetadata,pn as readStringArrayFromCommanderOptions,Pp as readStringOption,TS as readThrownExitCode,Tg as readVectorizationStatusLedger,lA as readWorkspaceContextIntentContracts,PE as readWorkspaceContextSignals,FE as readWorkspaceMemory,Tt as reconcileExtensionCapabilityUsage,wr as reconcileWorkspaceJsonHistory,s_ as recordAfterCommandAffectedItem,XA as recordAssuranceVerdict,ec as recordClaimSemanticAttribution,CE as recordContextUsageServing,SE as recordContextUsageTouch,OE as recordContextUsageTouches,rc as recordFocusSemanticAttribution,op as recordImprovementObservation,tc as recordReleaseSemanticAttribution,qT as refreshItemMetadataDerivedIndex,Vs as refreshMergeAttributeFenceIfInstalled,Ag as refreshSearchArtifactsForMutation,jt as registerHarnessSignalDescriptors,U_ as registerOutputMaterialFieldGroups,ml as release,KA as removeAssuranceDeclaration,Je as removeFileIfExists,Ra as renameArtifactsResultKey,qa as renderCalendarMarkdown,Ja as renderCalendarToon,Ac as renderContextMarkdown,ea as renderExtensionDescribeMarkdown,Zs as renderExtensionSurfaceMarkdown,ou as renderGuideMarkdown,_S as renderMissingOptionRetry,zE as renderNextMarkdown,Fs as renderPmCommand,np as renderPmCommandVisibilityMarkdown,NT as renderRowsAsCsv,wT as renderRowsAsTable,Hg as replayHistoryToTarget,tT as replayToCanonicalItemDocument,eT as replayToItemDocument,YE as requireTerminalReason,qE as requireTerminalReasonWithRecovery,r_ as resetActiveExtensionRuntimeState,Xi as resetWorkspaceGraphCache,Mt as resolveAgentSessionContextFromSignals,Ka as resolveAnnotationIndex,Va as resolveAnnotationInput,L_ as resolveAuthor,Xt as resolveAuthorIdentity,pT as resolveBodyFileContent,of as resolveBuiltinCorpusShape,Ya as resolveCalendarOutputFormat,tS as resolveCanonicalPmErrorCodeContract,Mm as resolveCanonicalRelationshipKind,P_ as resolveClaimPrincipal,km as resolveCommandOptionPolicyState,eR as resolveCompileCacheGeneration,LE as resolveCompletionTimestamp,Rm as resolveConfiguredPmPackageRoot,Zy as resolveContentFieldFilters,Uh as resolveContextIntentContract,ac as resolveContextOutputFormat,cc as resolveContextTokenBudget,cC as resolveCreateExplicitEmptyFlag,rg as resolveEmbeddingProviders,sa as resolveExtensionInstallSourceIdentity,ta as resolveExtensionMigrationStatePath,Bm as resolveExtensionRoots,gm as resolveFlagValueKind,ru as resolveGuideOutputFormat,sp as resolveHistoryEpisodeGroupIdentity,yA as resolveHistoryProvenanceDimensions,Vg as resolveHistorySubject,jg as resolveHistoryTarget,SC as resolveHybridSemanticWeight,ct as resolveImplicitPmRoot,fm as resolveIsoOrRelative,Vy as resolveItemBlockers,bS as resolveItemMutationDocument,at as resolveItemTypeRegistry,E_ as resolveItemTypesFilePath,Ip as resolveLinkedTestFailureExitCode,Us as resolveMergeInstallContext,Jy as resolveMissingMetadataFilters,mS as resolveMissingOptionPlaceholder,W_ as resolveModePairedOutputOmissionReceipt,BE as resolveNextOutputFormat,X_ as resolveOutputOmissionReceipt,Om as resolvePmCliVersion,nC as resolvePmCommandExitContract,gr as resolvePmCommandOutputBudget,aS as resolvePmCommandOutputEnvelope,Jd as resolvePmCommandVisibilityTier,rS as resolvePmErrorCodeContract,Sm as resolvePmPackageRootFromModule,V as resolvePmRoot,gi as resolvePmToolCustomFieldCollision,RT as resolvePriority,Ce as resolveProfile,Hs as resolveProjectMergeTypeFolders,rh as resolveQueryCursorStart,wh as resolveReadOutputDimensions,Lh as resolveReadOutputEncoding,Rh as resolveReadOutputSurface,K_ as resolveReadRowContract,fS as resolveRecoveryCommandName,A_ as resolveRegisteredSearchProvider,y_ as resolveRegisteredVectorStoreAdapter,Ct as resolveRuntimeFieldRegistry,Et as resolveRuntimeStatusRegistry,ng as resolveSearchCorpusFields,EC as resolveSearchMaxResults,yC as resolveSearchPage,CC as resolveSearchScoreThreshold,OC as resolveSearchTuning,ig as resolveSemanticCorpusCharacterLimit,Qa as resolveSemanticLineageIds,$T as resolveSettingsWithSemanticRuntimeDefaults,my as resolveSourceContextWritePolicy,vp as resolveStartTaskInProgressStatus,_i as resolveSubcommandFlagContractsForCommand,am as resolveTelemetryErrorCategory,XE as resolveTerminalReason,wm as resolveTypeDefinition,Nm as resolveTypeName,IT as resolveTypeSynonym,MT as resolveTypeWorkflows,vs as resolveUnknownAuthorAcknowledgmentSelector,cg as resolveVectorStores,ji as resolveWorkspaceRelationshipKindRegistry,Tl as restore,Tm as restoreCheckpointItems,kr as restoreWorkspaceJsonFromHistory,Ld as restoreWorkspaceSnapshot,Pd as restoreWorkspaceSnapshotWithRecovery,Hl as runAction,p_ as runActiveBeforeMutationHooks,l_ as runActiveCommandHandler,u_ as runActiveOnIndexHooks,yt as runActiveOnReadHooks,At as runActiveOnWriteHooks,f_ as runActiveParserOverride,m_ as runActivePreflightOverride,__ as runActiveServiceOverride,Fi as runActivity,Hm as runAfterCommandHooks,Ga as runAggregate,za as runAnnotationCommand,Fa as runAppend,Fy as runAssuranceAction,Uy as runAssuranceDispatch,$m as runBeforeCommandHooks,Za as runCalendar,Oc as runClaim,Rc as runClaimNext,Ic as runClose,wc as runCloseMany,kc as runComments,iu as runCompletion,pd as runConfig,Te as runContext,gE as runContextEvaluationCorpus,hE as runContextEvaluationScenario,id as runCopy,Zc as runCreate,sd as runDelete,Yi as runDeps,ba as runDocs,pS as runDuplicates,Od as runEval,bd as runEvent,aa as runExtension,ia as runExtensionMigrateAction,oa as runExtensionMigrations,Na as runFiles,ka as runFilesDiscover,wa as runFilesLookup,hp as runFleetAttributionAnalytics,ad as runFocus,dd as runGc,cd as runGet,xs as runGraph,nu as runGuide,ca as runHealth,sC as runHistory,KC as runHistoryCompact,qC as runHistoryCompactBulk,Wg as runHistoryRedact,GC as runHistoryRepair,UC as runHistoryRepairAll,Td as runInit,md as runInitAgentGuidance,vc as runLearnings,Oa as runLinkedArtifacts,Np as runLinkedTests,Da as runList,Rd as runMeet,MC as runMergeDriver,Ws as runMergeInstall,by as runMergeReceiptReport,jC as runMergeReconcile,Cc as runNext,Pc as runNotes,od as runPlan,Wd as runProfileApply,Vd as runProfileLint,Hd as runProfileList,Bd as runProfileShow,mp as runProvenanceCoverageAnalytics,zS as runRegisteredCommandForTest,JS as runRegisteredCommandOverrideForTest,oO as runRegisteredExporterForTest,XS as runRegisteredHookForTest,nO as runRegisteredImporterForTest,rO as runRegisteredMigrationForTest,KS as runRegisteredMutationGuardForTest,YS as runRegisteredParserOverrideForTest,qS as runRegisteredPreflightOverrideForTest,ZS as runRegisteredRendererOverrideForTest,eO as runRegisteredSearchProviderForTest,QS as runRegisteredServiceOverrideForTest,tO as runRegisteredVectorStoreAdapterForTest,we as runReindex,bc as runRelease,xd as runRemind,Nc as runRestore,Ys as runSchemaEvolutionMigration,Cd as runSearch,cf as runSearchRefreshWorkerEntrypoint,su as runStartBackgroundRun,Cp as runStats,Op as runTelemetry,Ud as runTemplatesList,Fd as runTemplatesSave,jd as runTemplatesShow,wp as runTest,kp as runTestAll,au as runTestRunsList,du as runTestRunsLogs,uu as runTestRunsResume,cu as runTestRunsStatus,pu as runTestRunsStop,lu as runTestRunsWorker,Qc as runUpdate,ed as runUpdateMany,ge as runUpgrade,Ma as runValidate,$l as runWithActiveExtensions,Dt as runWithAgentSessionContext,Gh as runWithContextIntentContracts,_A as runWithDiscoveredContextIntentContracts,$t as runWithHarnessDetectionSignals,Ht as runWithWorkspaceHarnessSignalDescriptors,Ge as runWithWorkspaceRecipe,hC as runWorkspaceTransactionGc,Os as saveGraphAuditBaseline,cy as scanExtensionHostVersions,ws as scanHistoryAuthorAttribution,It as scanItemFormatVersions,$r as scanMutationSecrets,Cy as scanProvenanceResolverHealth,Qr as scanStaleInProgressItems,xy as scanStorageIntegrity,Pu as schema,ju as schemaAddField,Fu as schemaAddStatus,Du as schemaAddType,Vu as schemaApplyPreset,Wu as schemaInferTypes,Lu as schemaList,Hu as schemaListFields,Xu as schemaRemapStatus,$u as schemaRemoveField,Uu as schemaRemoveStatus,Gu as schemaRemoveType,Ku as schemaRenameField,zu as schemaRenameType,Mu as schemaShow,Bu as schemaShowField,Yu as schemaShowStatus,ES as scoreCommandPathMatch,lE as scoreContextCandidates,fE as scoreContextCandidatesWithActiveExtensions,qr as scoreItemSimilarity,Jr as scorePreparedItemSimilarity,_u as search,$E as searchWorkspaceMemory,HE as searchWorkspaceMemoryReadResult,q_ as selectCursorSemanticOptions,Zp as selectImportAuthor,jE as selectWorkspaceMemory,UE as selectWorkspaceMemoryRollups,oc as semanticAttributionAffinity,Rg as sentryCaptureCliError,Og as sentryFinishCommandSpan,xg as sentryFlush,bg as sentryLogCliUsageError,Cg as sentrySetCommandContext,Sg as sentryStartCommandSpan,vt as serializeItemDocument,SS as serializeNdjsonRows,n_ as setActiveCommandContext,o_ as setActiveCommandResult,qm as setActiveExtensionCommands,Ym as setActiveExtensionHooks,Jm as setActiveExtensionParsers,Zm as setActiveExtensionPreflight,t_ as setActiveExtensionRegistrations,e_ as setActiveExtensionRenderers,Qm as setActiveExtensionServices,k_ as setFocusedItem,Lg as shouldCompletePlanOnClose,Cs as shouldPersistDurableGraphCache,BT as shouldRunSearchRefreshInForeground,Mc as similarityAdvisoryWarnings,ih as sliceReadOutputRowCollection,Ea as sortLinkedArtifacts,_T as splitAcceptanceCriteria,kg as splitCommaList,kt as splitFrontMatter,kh as stabilizeReadOutputReceiptEstimates,L as stableStringify,jm as stableValueEquals,Al as startTask,Dg as startTelemetryCommand,Au as stats,S_ as statusIsTerminal,Wl as stripGlobalBootstrapTokens,HC as subscribeMutationEvents,cp as summarizeAgentModelProvenance,dp as summarizeAgentProvenance,TE as summarizeContextEvaluationReports,Rp as summarizeContextPreflight,RA as summarizeHistoryProvenance,_d as summarizeInitResult,Sy as summarizeMergeReceipt,dC as supportsCreateExplicitEmpty,uS as supportsItemIdAlias,G_ as suppressHostOutput,$ as syncRelationshipGraphAdapter,jS as synthesizeExtensionManifest,hi as toCompletionFlagString,Tc as toContextFocusItem,mc as toContextPackingSummary,_c as toContextRankingSummary,dm as toErrorMessage,Gp as toEstimatedMinutesValue,aA as toExtensionFlagDefinitions,Hp as toImportBoolean,zp as toImportConfidence,$p as toImportInteger,qp as toImportLinkedDocs,Yp as toImportLinkedFiles,Jp as toImportLinkedTests,Xp as toImportLogEntries,Kp as toImportNormalizedEnum,Wp as toImportNumberMap,Fp as toImportPriority,jp as toImportStatus,Bp as toImportStringList,Vp as toImportStringMap,Up as toImportTags,N_ as toItemRecord,Dp as toNonEmptyImportString,cm as toNonEmptyStringOrUndefined,rT as toReplayDocument,Xr as tokenizeSimilarityText,WC as translateHostEnvironmentFault,pl as update,Gl as upgrade,tl as validate,DA as validateAssertionDefinition,FA as validateAssuranceDocument,GA as validateGateDefinition,IS as validateItemMutationRows,Sa as validateLinkedPaths,MA as validateMeasurementDefinition,fT as validateMissingParentReference,bh as validateReadOutputOptions,bT as validateSprintOrReleaseValue,vm as validateTypeOptions,iT as verifyHistoryChain,oT as verifyHistoryChainWithVersion,zg as verifyHistoryEntries,UR as verifyPmRecoveryReferences,FR as verifyPmRefusalReachability,Ln as withFlagAliasMetadata,zC as withHostEnvironmentBoundary,Ki as workspaceGraphCache,Wa as wrapOwnershipConflict,yS as wrapThrownErrorForSentry,zt as writeAuthorEnvironment,qe as writeFileAtomic,_m as writeMutationCheckpoint,jT as writeSettings,zh as writeStdout,gg as writeVectorizationStatusLedger,Nr as writeWorkspaceJsonWithHistory};
|
|
1
|
+
import{a as wS,b as kS,c as Jl,d as Zl,e as Ql,g as ef,h as tf,i as rf,j as nf,k as of,l as sf,m as af,n as cf,o as vS,p as PS,q as LS,r as MS,s as DS,t as GS,u as FS,v as US,w as df,x as pf,y as jS,z as $S}from"./chunks/chunk-ALDJGKAK.js";import{A as RO,B as bO,C as xO,D as IO,E as NO,F as wO,G as kO,H as vO,I as PO,J as LO,K as MO,L as DO,M as GO,N as FO,O as UO,P as jO,Q as $O,R as HO,S as BO,T as VO,U as WO,V as zO,W as KO,X as XO,Y as YO,a as QS,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 TO,t as gO,u as AO,v as EO,w as CO,x as yO,y as SO,z as OO}from"./chunks/chunk-BSK2IN3C.js";import{a as HS,b as BS}from"./chunks/chunk-SARFF5H5.js";import{a as VS,b as WS,c as zS,d as KS,e as XS,f as YS,g as qS,h as JS,i as ZS}from"./chunks/chunk-RZQTVMRQ.js";import{$ as Zy,$a as du,$b as ml,A as xA,Aa as cS,Ab as $u,Ac as $l,B as Va,Ba as dS,Bb as Hu,Bc as Hl,C as Mc,Ca as pS,Cb as Bu,Cc as Bl,D as Dc,Da as Up,Db as Vu,Dc as Vl,E as Gc,Ea as jp,Eb as Wu,Ec as Wl,F as Fc,Fa as $p,Fb as zu,Fc as zl,G as Uc,Ga as Hp,Gb as Ku,Gc as Kl,H as sd,Ha as Bp,Hb as Xu,Hc as Xl,I as ad,Ia as Vp,Ib as Yu,Ic as Yl,J as cd,Ja as Wp,Jb as qu,Jc as ql,K as dd,Ka as zp,Kb as Ju,L as pd,La as Kp,Lb as Zu,M as ud,Ma as Xp,Mb as Qu,N as ld,Na as Yp,Nb as el,O as fd,Oa as qp,Ob as tl,P as jy,Pa as Jp,Pb as rl,Q as $y,Qa as Zp,Qb as nl,R as Hy,Ra as Qp,Rb as ol,S as By,Sa as eu,Sb as il,T as Vy,Ta as tu,Tb as sl,U as Wy,Ua as ru,Ub as al,V as zy,Va as nu,Vb as cl,W as Ky,Wa as ou,Wb as dl,X as Xy,Xa as iu,Xb as pl,Y as Yy,Ya as su,Yb as ul,Z as qy,Za as au,Zb as ll,_ as Jy,_a as cu,_b as fl,a as Li,aa as Ae,ab as pu,ac as _l,b as Mi,ba as Ee,bb as uu,bc as hl,c as Di,ca as Ce,cb as we,cc as Tl,d as eA,da as ye,db as M,dc as gl,e as tA,ea as Se,eb as Au,ec as Al,f as Fi,fa as Oe,fb as Eu,fc as El,g as cA,ga as Re,gb as Cu,gc as Cl,h as dA,ha as be,hb as yu,hc as yl,i as pA,ia as xe,ib as Su,ic as Sl,j as uA,ja as Ie,jb as Ou,jc as Ol,k as lA,ka as Ne,kb as Ru,kc as Rl,l as fA,la as Hd,lb as bu,lc as bl,m as mA,ma as Bd,mb as xu,mc as xl,n as _A,na as Vd,nb as Iu,nc as Il,o as hA,oa as Wd,ob as Nu,oc as Nl,p as TA,pa as zd,pb as wu,pc as wl,q as gA,qa as Kd,qb as ku,qc as kl,r as AA,ra as Xd,rb as vu,rc as vl,s as EA,sa as Yd,sb as Pu,sc as Pl,t as CA,ta as qd,tb as Lu,tc as Ll,u as Bi,ua as Jd,ub as Mu,uc as Ml,v as yA,va as Zd,vb as Du,vc as Dl,w as SA,wa as Qd,wb as Gu,wc as Gl,x as OA,xa as ep,xb as Fu,xc as Fl,y as RA,ya as tp,yb as Uu,yc as Ul,z as bA,za as aS,zb as ju,zc as jl}from"./chunks/chunk-YRGOLZA7.js";import{a as ge,f as hd,g as Td}from"./chunks/chunk-5UZZAJKR.js";import{A as Id,B as Nd,C as wd,b as Ba,c as AC,d as gy,e as yy,f as Sy,g as Oy,h as Ry,i as by,j as md,k as xy,l as Od,m as Rd,n as bd,o as xd,p as Ny,q as wy,r as ky,s as vy,t as Py,u as Ly,v as My,w as Dy,x as Gy,y as Fy,z as Uy}from"./chunks/chunk-PVRUN5ZS.js";import{$ as CE,$a as KE,$b as Ey,$c as _p,A as pE,Aa as ya,Ab as uy,Ac as ip,Ad as mu,B as uE,Ba as Sa,Bb as ly,Bc as sp,Bd as _u,C as lE,Ca as Oa,Cb as fy,Cc as ap,Cd as hu,D as fE,Da as Ra,Db as my,Dc as cp,Dd as Tu,Ea as ba,Eb as _y,Ec as dp,Ed as gu,F as EE,Fa as xa,Fb as hy,Fc as fS,Ga as Ia,Gb as Ty,Gc as mS,Ha as Na,Hc as _S,Ia as wa,Ib as jc,Ic as hS,J as Ls,Ja as ka,Jb as $c,Jc as TS,Ka as va,Kb as Ay,Kc as gS,La as Pa,Lb as Hc,Lc as AS,Ma as La,Mb as Bc,Mc as ES,Na as Ma,Nb as Vc,Nc as CS,Oa as Da,Ob as Wc,Oc as yS,Pa as Ga,Pb as zc,Pc as SS,Qa as Fa,Qb as Kc,Qc as OS,Ra as Ua,Rb as Xc,Rc as RS,Sa as ja,Sb as Yc,Sc as bS,Ta as $a,Tb as qc,Tc as xS,Ua as jE,Ub as Jc,Uc as IS,Va as $E,Vb as Zc,Wa as HE,Wb as Qc,Wc as pp,Xa as BE,Xb as ed,Xc as up,Ya as VE,Yb as td,Yc as lp,Za as WE,Zb as rd,Zc as fp,_a as zE,_b as nd,_c as mp,a as FA,aa as yE,ab as XE,ac as Cy,ad as hp,b as UA,ba as Ms,bb as YE,bc as od,bd as Tp,c as jA,ca as Ds,cb as qE,cd as gp,d as $A,da as Gs,db as JE,dd as Ap,e as HA,ea as Fs,eb as Wa,ec as id,ed as Ep,f as BA,fa as Us,fb as za,fc as Iy,fd as Cp,g as VA,ga as js,gb as Ka,gc as _d,gd as yp,h as WA,ha as $s,hb as Xa,hc as kd,hd as Sp,i as zA,ia as vE,ib as Ya,ic as vd,id as Op,j as KA,ja as PE,jb as qa,jc as Pd,jd as Rp,k as XA,ka as LE,kb as Ja,kc as oS,kd as bp,l as YA,la as ME,lb as Za,lc as iS,ld as xp,m as qA,mb as Qa,mc as sS,md as Ip,n as JA,na as DE,nb as ec,nc as Ld,nd as NS,o as ZA,ob as Nc,oc as Md,od as Np,p as QA,pa as GE,pb as wc,pc as Dd,pd as wp,q as eE,qa as FE,qb as kc,qc as Gd,qd as kp,r as tE,ra as ma,rb as vc,rc as Fd,rd as vp,s as rE,sa as _a,sb as iy,sc as Ud,sd as Pp,t as nE,ta as UE,tb as sy,tc as jd,td as Lp,u as oE,ua as ha,ub as ay,uc as $d,ud as Mp,v as iE,va as Ta,vb as cy,vc as uS,vd as Dp,w as sE,wa as ga,wb as dy,wc as lS,wd as Gp,x as aE,xa as Aa,xb as Pc,xc as rp,xd as Fp,y as cE,ya as Ea,yb as Lc,yc as np,yd as lu,z as dE,za as Ca,zb as py,zc as op,zd as fu}from"./chunks/chunk-L5Q2CLPE.js";import{A as Js,Aa as sa,B as Zs,Ea as aa,Fa as ca,Ga as da,Ha as pa,Ia as ua,Ja as la,Ka as fa,L as Qs,La as gd,M as ea,Ma as Ad,N as ta,Na as Ed,O as ra,Oa as Cd,Pa as yd,Qa as Sd,a as sA,b as aA,c as Ui,d as ji,f as $i,g as Hi,h as SE,i as Hs,j as Bs,k as Vs,m as OE,n as RE,o as bE,p as xE,q as IE,r as NE,s as wE,sa as le,t as Ws,ta as fe,u as zs,ua as me,v as Ks,va as _e,w as Xs,wa as na,x as Ys,y as kE,ya as oa,z as qs,za as ia}from"./chunks/chunk-GNFAFIJI.js";import{$ as ds,$a as gC,$b as Tc,Aa as QE,Ab as $C,B as Vi,Ba as eC,Bb as HC,C as mE,Ca as tC,Cb as BC,D as _E,Da as rC,Db as VC,E as hE,Ea as nC,Eb as WC,F as TE,Fa as oC,Fb as zC,G as gE,Ga as iC,Gb as KC,H as Wi,Ha as sC,Hb as XC,I as zi,Ia as aC,Ib as YC,J as Ki,Ja as cC,Jb as qC,K as Xi,Kb as JC,L as Yi,Lb as ZC,M as qi,Mb as QC,N as z,Nb as ey,O as Ji,Ob as ic,P as Zi,Pb as sc,Q as Qi,Qb as ac,R as es,Rb as cc,S as AE,Sa as dC,Sb as dc,T as ts,Ta as pC,Tb as pc,U as rs,Ua as uC,Ub as he,V as ns,Va as lC,Vb as uc,W as os,Wa as fC,Wb as lc,X as is,Xa as mC,Xb as fc,Y as ss,Ya as _C,Yb as mc,Z as as,Za as hC,Zb as _c,_ as cs,_a as TC,_b as hc,a as Wg,aa as ps,ab as Ha,ac as gc,b as zg,ba as us,bb as tc,bc as Ac,c as Kg,ca as ls,cb as rc,cc as Ec,d as Xg,da as fs,db as nc,dc as Cc,e as Yg,ea as ms,eb as oc,ec as yc,fa as _s,fb as EC,fc as Sc,ga as hs,gb as CC,gc as Oc,h as qg,ha as Ts,hb as yC,hc as Rc,i as Jg,ia as gs,ib as SC,ic as bc,j as Gi,ja as As,jb as OC,jc as Te,k as Zg,ka as Es,kb as RC,kc as xc,l as Qg,la as Cs,lb as bC,lc as ty,m as rA,ma as ys,mb as xC,mc as ry,n as nA,na as Ss,nb as IC,nc as ny,o as oA,oa as Os,ob as NC,oc as Ic,p as iA,pa as Rs,pb as wC,pc as oy,q as IA,qa as bs,qb as kC,qc as Qy,r as NA,ra as xs,rb as vC,rc as eS,s as wA,sa as Is,sb as PC,sc as tS,t as kA,ta as Ns,tb as LC,tc as rS,u as vA,ua as ws,ub as MC,uc as nS,v as PA,va as ks,vb as DC,w as LA,wa as vs,wb as GC,x as MA,xa as Ps,xb as FC,y as DA,yb as UC,z as GA,za as ZE,zb as jC}from"./chunks/chunk-UYCLQVL2.js";import{$ as Rm,$a as ft,$e as Cr,$g as DT,$h as ug,$i as Vg,$j as ao,$k as ci,Ac as f_,Ad as Dt,Ae as hh,Af as Uh,Ah as ce,Ai as Yr,Aj as Ln,Ak as Mo,B as lm,Bc as m_,Bd as Gt,Be as Th,Bf as jh,Bg as Ur,Bh as qT,Bi as qr,Bj as Mn,Bk as Do,C as H,Cc as __,Cd as Ft,Ce as qt,Cf as $h,Cg as jr,Ch as JT,Ci as Jr,Cj as Dn,Ck as Go,D as fm,Dc as h_,De as Jt,Df as Hh,Dg as $r,Dh as ZT,Di as Zr,Dj as Gn,Dk as Fo,E as B,Ec as T_,Ee as Zt,Ef as Bh,Eh as QT,Ej as Fn,Ek as Uo,Fc as g_,Fe as Qt,Ff as Vh,Fg as TT,Fi as Qr,Fj as Un,Fk as jo,G as mm,Gc as Et,Ge as er,Gf as Wh,Gg as gT,Gh as eg,Gi as en,Gj as jn,Gk as $o,H as _m,Hc as A_,He as tr,Hf as zh,Hg as AT,Hh as tg,Hi as tn,Hj as $n,Hk as Ho,Ia as Mm,Ib as Xm,Ic as Ct,Id as U_,Ie as rr,If as Kh,Ig as ET,Ih as rg,Ii as rn,Ij as Hn,Ik as Bo,Ja as Dm,Jb as mt,Jd as j_,Je as nr,Jf as Xh,Jg as Hr,Jh as ng,Ji as nn,Jj as Bn,Jk as Vo,K as hm,Ka as Gm,Kb as _t,Kc as E_,Kd as $_,Ke as or,Kf as Yh,Kg as CT,Kh as Vr,Ki as on,Kj as Vn,Kk as Wo,Lc as C_,Ld as Ut,Le as ir,Lf as qh,Lg as yT,Lh as Wr,Li as sn,Lj as Wn,Lk as zo,Mb as L,Mc as y_,Md as jt,Me as sr,Mf as Jh,Mg as ST,Mh as zr,Mi as an,Mj as zn,Mk as Ko,N as Tm,Na as ct,Nb as Ym,Nc as S_,Nd as $t,Ne as ar,Nf as Zh,Ng as OT,Nh as og,Ni as Lg,Nj as Kn,Nk as Xo,O as ne,Oa as Fm,Oc as O_,Od as Ht,Oe as cr,Og as RT,Oi as Mg,Oj as Xn,Ok as Yo,P as oe,Pa as Um,Pb as qm,Pc as ae,Pd as Bt,Pe as dr,Pf as Qh,Pg as bT,Ph as ig,Pi as Dg,Pj as Yn,Pk as qo,Q as Qe,Qa as jm,Qc as R_,Qd as Vt,Qe as pr,Qf as eT,Qg as xT,Qh as sg,Qi as Gg,Qj as qn,Qk as Jo,R as et,Ra as $m,Rb as Jm,Rc as b_,Rd as Wt,Re as ur,Rg as IT,Rh as ag,Ri as Fg,Rj as Jn,Rk as Zo,S as ie,Sc as x_,Sd as zt,Se as lr,Sg as NT,Si as Ug,Sj as Zn,Sk as Qo,T as gm,Ta as dt,Td as Kt,Te as fr,Tf as tT,Tg as wT,Ti as jg,Tj as Qn,Tk as ei,Ua as pt,Uc as I_,Ud as Xt,Ue as mr,Uf as rT,Ug as kT,Uh as cg,Ui as $g,Uj as eo,Uk as ti,V as Am,Va as V,Vc as N_,Vd as Yt,Ve as _r,Vf as nT,Vj as to,Vk as ri,W as Em,Wd as H_,We as hr,Wf as oT,Wg as vT,Wh as dg,Wj as ro,Wk as ni,X as Cm,Xd as B_,Xe as Tr,Xf as iT,Xj as no,Xk as oi,Y as ym,Ya as ut,Yd as V_,Ye as gr,Yf as xr,Yg as PT,Yi as pe,Yj as oo,Yk as ii,Z as Sm,Za as lt,Ze as Ar,Zf as Ir,Zg as LT,Zi as Hg,Zj as io,Zk as si,_ as Om,_e as Er,_g as MT,_h as pg,_i as Bg,_j as so,_k as ai,aa as bm,ad as w_,af as yr,ah as GT,ai as lg,aj as cn,ak as co,al as di,ba as xm,be as W_,bf as Sr,bg as sT,bi as fg,bj as dn,bk as po,bl as pi,c as Ye,ca as Im,cc as Zm,cd as yt,ce as z_,cf as Or,cg as aT,ci as mg,cj as pn,ck as uo,cl as ui,dc as Qm,dd as k_,de as K_,df as Rr,dg as cT,dj as un,dk as lo,dl as li,e as re,ea as Nm,ec as e_,ed as St,ee as X_,ef as br,eg as dT,ei as _g,ej as ln,ek as fo,el as fi,f as qe,fa as wm,fe as Y_,ff as gh,fi as hg,fj as fn,fk as mo,fl as mi,g as Je,ga as km,gc as t_,gd as v_,ge as q_,gf as Ah,gg as pT,gi as Tg,gj as mn,gk as _o,gl as _i,h as Ze,ha as vm,hc as r_,hd as P_,he as J_,hf as Eh,hg as uT,hi as gg,hj as _n,hk as ho,hl as hi,ia as Pm,id as L_,ie as Z_,if as Ch,ii as Ag,ij as hn,ik as To,il as Ti,j as sm,ja as Lm,jc as n_,jd as Ot,je as Q_,jf as yh,ji as Eg,jj as Tn,jk as go,jl as gi,k as am,ka as tt,kc as ht,kd as Rt,ke as eh,kf as Sh,ki as Cg,kj as gn,kk as Ao,kl as Ai,l as cm,la as rt,ld as bt,le as th,lf as Oh,lg as lT,lh as FT,li as yg,lj as An,lk as Eo,ll as Ei,ma as nt,mc as Tt,md as xt,me as rh,mf as Rh,mg as fT,mh as UT,mi as Sg,mj as En,mk as Co,ml as Ci,nc as gt,nd as It,ne as nh,nf as bh,ng as mT,nh as jT,ni as Og,nj as Cn,nk as yo,nl as yi,od as Nt,oe as oh,of as xh,og as _T,oh as $T,oi as de,oj as yn,ok as So,ol as Si,pb as Hm,pd as wt,pe as ih,pf as Ih,pg as Nr,ph as HT,pi as Rg,pj as Sn,pk as Oo,pl as Oi,qa as ot,qb as W,qc as o_,qd as M_,qe as sh,qf as Nh,qg as wr,qh as BT,qi as bg,qj as On,qk as Ro,ql as Ri,rb as se,rc as i_,rd as D_,re as ah,rf as wh,rg as kr,ri as xg,rj as Rn,rk as bo,rl as bi,s as dm,sa as it,sb as Bm,sc as s_,se as ch,sf as kh,sg as vr,si as Ig,sj as bn,sk as xo,sl as xi,ta as st,tb as Vm,tc as a_,td as kt,te as dh,tf as vh,tg as Pr,th as VT,ti as Ng,tj as xn,tk as Io,tl as Ii,ua as at,ub as Wm,uc as c_,ud as vt,ue as ph,uf as Ph,ug as Lr,uh as WT,ui as wg,uj as In,uk as No,ul as Ni,v as pm,vb as zm,vc as d_,vd as G_,ve as uh,vf as Lh,vg as Mr,vh as Br,vi as kg,vj as Nn,vk as wo,vl as wi,wb as E,wc as p_,wd as Pt,we as lh,wf as Mh,wg as Dr,wh as zT,wi as vg,wj as wn,wk as ko,wl as ki,x as um,xb as Km,xc as At,xd as Lt,xe as fh,xf as Dh,xg as Gr,xh as KT,xi as Pg,xj as kn,xk as vo,xl as vi,yc as u_,yd as F_,ye as mh,yf as Gh,yg as Fr,yh as XT,yi as Kr,yj as vn,yk as Po,yl as Pi,zc as l_,zd as Mt,ze as _h,zf as Fh,zg as hT,zh as YT,zi as Xr,zj as Pn,zk as Lo,zl as ue}from"./chunks/chunk-DY4DMUMC.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 T="https://schema.unbrained.dev/pm/corpus-shape/v1";function C(e,t){if(!Number.isSafeInteger(e)||e<=0)throw new TypeError(`Corpus shape ${t} must be a positive safe integer`);return e}function w(e,t){if(!Number.isSafeInteger(e)||e<0)throw new TypeError(`Corpus shape ${t} must be a non-negative safe integer`);return e}function ve(e){if(!(typeof e!="object"||e===null||Object.isFrozen(e))){for(let t of Object.values(e))ve(t);Object.freeze(e)}}function y(e){if(e.schema!==T)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(C(e.hierarchy_depth,"hierarchy_depth"),C(e.hierarchy_fanout,"hierarchy_fanout"),w(e.age_span_days,"age_span_days"),C(e.history_entries_per_item,"history_entries_per_item"),w(e.comments_per_100_items,"comments_per_100_items"),w(e.notes_per_100_items,"notes_per_100_items"),w(e.learnings_per_100_items,"learnings_per_100_items"),C(e.author_cardinality,"author_cardinality"),C(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 ve(t),t}var D=[{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:y({schema:T,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:y({schema:T,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:D,author_cardinality:32,component_count:1,include_cycles:!1,custom_types:["Experiment"],custom_statuses:["review"],terminal_statuses:[],custom_fields:["domain"]}),"deep-graph":y({schema:T,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:D,author_cardinality:16,component_count:1,include_cycles:!0,custom_types:[],custom_statuses:[],terminal_statuses:[],custom_fields:[]}),"multi-decade":y({schema:T,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:D,author_cardinality:64,component_count:1,include_cycles:!1,custom_types:["Program"],custom_statuses:["archived"],terminal_statuses:["archived"],custom_fields:["portfolio"]}),"disconnected-archive":y({schema:T,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:D,author_cardinality:24,component_count:5,include_cycles:!1,custom_types:["Archive"],custom_statuses:["archived"],terminal_statuses:["archived"],custom_fields:["archive_source"]})});function uf(){return Object.keys(S).sort().map(e=>S[e])}function lf(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 ke=new WeakMap;function Pe(e,t){if(e===0)return[];let r=ke.get(t);r===void 0&&(r=t.edge_kind_mix.flatMap(o=>Array.from({length:o.weight},()=>o.kind)),ke.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 ff(e,t,r,n=42){if(w(t,"item index"),C(r,"item count"),t>=r)throw new RangeError(`Corpus item index ${t} exceeds ${r}`);let o=Math.min(e.component_count,r),a=t%o,i=Math.floor(t/o),c=0,s=1;for(let P=0;P<e.hierarchy_depth;P+=1)c=Math.min(Number.MAX_SAFE_INTEGER,c+s),s=Math.min(Number.MAX_SAFE_INTEGER,s*e.hierarchy_fanout);let d=i%c,p=i-d,u=d===0?void 0:a+(p+Math.floor((d-1)/e.hierarchy_fanout))*o,l=Date.UTC(2026,0,1),h=e.age_span_days*864e5,I=new Date(l+(r===1?0:Math.round(t/(r-1)*h))).toISOString(),N=(t*37+n)%100;return{index:t,id:`pm-s${t.toString(36).padStart(7,"0")}`,...u===void 0?{}:{parent:`pm-s${u.toString(36).padStart(7,"0")}`},component:a,timestamp:I,author:`pm-corpus-agent-${(t+n)%Math.min(e.author_cardinality,r)}`,history_entry_count:e.history_entries_per_item,dependency_kinds:Pe(t,e),has_comment:N<e.comments_per_100_items,has_note:N<e.notes_per_100_items,has_learning:N<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 K=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,Pe(t.index,this.shape))}finish(){let t=Math.min(this.shape.author_cardinality,this.itemCount),r=Math.min(this.shape.component_count,this.itemCount),n=[...this.planMismatches,...this.itemCount===0?["item_count:empty"]:[],...this.authors.size===t?[]:[`author_count:${this.authors.size}!=${t}`],...this.components.size===r?[]:[`component_count:${this.components.size}!=${r}`],...this.observedDepth<=this.shape.hierarchy_depth?[]:[`hierarchy_depth:${this.observedDepth}>${this.shape.hierarchy_depth}`],...this.observedFanout<=this.shape.hierarchy_fanout?[]:[`hierarchy_fanout:${this.observedFanout}>${this.shape.hierarchy_fanout}`]];for(let[i,,c]of this.annotationFields){let s=Math.floor(this.itemCount/100),d=this.itemCount%100,p=s*c+Math.max(0,c+d-100),u=s*c+Math.min(c,d),l=this.annotations[i];(l<p||l>u)&&n.push(`${i}:${l}!in[${p},${u}]`)}let o=new Set([...Object.keys(this.edgeKinds),...Object.keys(this.expectedEdgeKinds)]);for(let i of[...o].sort()){let c=this.edgeKinds[i]??0,s=this.expectedEdgeKinds[i]??0;c!==s&&n.push(`edge_kind:${i}:${c}!=${s}`)}let a=[...new Set(n)];return{shape:this.shape.name,item_count:this.itemCount,author_count:this.authors.size,component_count:this.components.size,hierarchy_depth:this.observedDepth,hierarchy_fanout:this.observedFanout,timestamp_range:{first:this.firstTimestamp,last:this.lastTimestamp},history_entry_count:this.historyEntryCount,annotations:{...this.annotations},edge_kinds:{...this.edgeKinds},matches_declaration:a.length===0,mismatches:a}}};function Le(e){return new K(e)}function mf(e,t){let r=Le(e);for(let n of t)r.add(n);return r.finish()}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d19cfa31-a02f-53a7-8685-5d169d6e051d")}catch{}})();(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8c9a34bd-b77a-55ab-a5d1-3594cecfeb3f")}catch{}})();async function _f(){let e=V(process.cwd(),process.env.PM_PATH);await ce(e,(t,r)=>de(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 Me="https://schema.unbrained.dev/pm/workspace-recipe/v1";function X(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)=>X(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,X(n,`${t}.${r}`)])))}function De(e){if(e.schema!==Me)throw new Error(`Unsupported workspace recipe schema: ${e.schema}`);let t=ne(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:X(r.input,`operations[${n}].input`)})))})}async function Ge(e,t){let r=De(e);return oe(r,t)}async function hf(e,t){return Ge(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 Tf(){await pe()}(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 Fe=["lines","branches","functions","statements"];function gf(e,t){if(typeof t!="object"||t===null||Array.isArray(t))throw new TypeError(`Coverage entry for ${e} must be an object.`)}function Af(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 Ef(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)){gf(r,n);for(let o of Fe){let a=Af(r,o,n[o]),i=a.total-a.covered;i>0&&t.push({file:r,metric:o,uncovered:i,...a})}}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 Cf=["captured_redacted","captured_verbatim"],yf=[{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 Sf(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||!Cf.includes(r.capture_source)||!m(r.capture_provenance)||!Array.isArray(r.redactions)||!r.redactions.every(m)||!("input"in r)||!("observed"in r))&&n.push({boundary_id:e.id,kind:"invalid_fixture",detail:`${e.fixture_path} lacks captured provenance, redaction metadata, input, or observed output.`});let o=JSON.stringify(t);for(let a of yf)a.pattern.test(o)&&n.push({boundary_id:e.id,kind:"unsafe_fixture",detail:`${e.fixture_path} contains a possible ${a.label}.`});return n}function Of(e,t){let r=Date.parse(e.waiver_expires_at),n=m(e.waiver_reason)&&m(e.waiver_owner)&&e.waiver_expires_at.endsWith("Z")&&ie(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 Rf(e,t,r){if(!m(e.id)||!m(e.producer)||!m(e.consumer)||!m(e.format))return{captured:0,waived:0,findings:[{boundary_id:m(e.id)?e.id:"unknown",kind:"invalid_boundary",detail:"Each boundary requires non-empty id, producer, consumer, and format."}]};if("fixture_path"in e){let n=t[e.fixture_path],o=m(e.fixture_path)&&e.fixture_path in t?Sf(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 Of(e,r)}function _R(e,t,r=new Date){let n=[];if(e.version!==1||!m(e.inventory_scope)||!Array.isArray(e.boundaries))return{ok:!1,boundary_count:0,captured_count:0,waived_count:0,findings:[{boundary_id:"registry",kind:"invalid_registry",detail:"Boundary registry requires version 1, inventory_scope, and boundaries."}]};let o=new Set,a=0,i=0;for(let c of e.boundaries){if(typeof c!="object"||c===null||Array.isArray(c)){n.push({boundary_id:"unknown",kind:"invalid_boundary",detail:"Each boundary must be a JSON object."});continue}let s=c,d=m(s.id)?s.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=Rf(s,t,r.getTime());a+=p.captured,i+=p.waived,n.push(...p.findings)}return n.sort((c,s)=>c.boundary_id!==s.boundary_id?c.boundary_id.localeCompare(s.boundary_id):c.kind.localeCompare(s.kind)),{ok:n.length===0,boundary_count:e.boundaries.length,captured_count:a,waived_count:i,findings:n}}import O from"node:fs";import Y 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 Ue=300*1e3,bf=3;function ER(e){return(e?.trim()||"development").replace(/[^a-zA-Z0-9._-]/g,"_").replace(/^\./,"_")}function CR(e,t){let r=t.trim();if(!/^[a-zA-Z0-9_-][a-zA-Z0-9._-]*$/.test(r))throw new TypeError("Compile-cache generation must be a safe non-empty filename token.");O.mkdirSync(e,{recursive:!0});let n=Y.join(e,r);O.mkdirSync(n,{recursive:!0});let o=new Date;O.utimesSync(n,o,o);let a=O.readdirSync(e).filter(d=>d!==r).flatMap(d=>{try{return[{name:d,mtimeMs:O.statSync(Y.join(e,d)).mtimeMs}]}catch(p){if(p instanceof Error&&"code"in p&&re(p))return[];throw p}}).sort((d,p)=>p.mtimeMs-d.mtimeMs||d.name.localeCompare(p.name)),i=a.filter(d=>o.getTime()-d.mtimeMs<Ue),c=Math.max(0,bf-1-i.length),s=a.filter(d=>o.getTime()-d.mtimeMs>=Ue).slice(c).map(d=>d.name).sort((d,p)=>d.localeCompare(p));for(let d of s)O.rmSync(Y.join(e,d),{recursive:!0,force:!0,maxRetries:3,retryDelay:50});return{retained:r,removed:s}}import je from"node:fs";import F 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 j="@unbrained/pm-cli",xf=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"]),$e=new Set(["--author","--output-budget","--output-format","--output-include","--output-limit","--output-session","--path","--pm-path"]),Z=/\b(\d{4})\.(\d{1,2})\.(\d{1,2})(?:-(\d+))?\b/u;function f(e,t){return e.some(r=>t.includes(r.split("=",1)[0]))}function q(e,t){return["activate","adopt","adopt-all","deactivate","init","install","migrate","reload","uninstall"].includes(t[0]??"")||f(e,["--activate","--adopt","--adopt-all","--deactivate","--fix-managed-state","--init","--install","--output","--reload","--scaffold","--uninstall"])}var If={changelog:(e,t)=>{if(t[0]==="generate")return!f(e,["--check"]);let r=e.indexOf("export");return t[0]==="export"&&(f(e,["--output"])||r>=0&&e[r+1]!==void 0&&!e[r+1].startsWith("-"))},comments:e=>f(e,["--add","--delete","--edit","--file","--stdin"]),config:(e,t)=>(t[0]==="project"||t[0]==="global"?t[1]:t[0])==="set",deps:()=>!1,docs:e=>f(e,["--add","--add-glob","--migrate","--remove"]),duplicates:()=>!1,events:()=>!1,extension:q,files:(e,t)=>f(e,["--add","--add-glob","--migrate","--remove"])||t[0]==="discover"&&f(e,["--apply"]),health:e=>!f(e,["--check-only","--no-refresh","--skip-vectors"]),learnings:e=>f(e,["--add","--delete","--edit","--file","--stdin"]),merge:(e,t)=>t[0]!=="report",notes:e=>f(e,["--add","--delete","--edit","--file","--stdin"]),package:q,packages:q,profile:(e,t)=>t[0]==="apply",schema:(e,t)=>["add-field","add-status","add-type","remove-field","remove-status","remove-type","remap-status","rename-field","rename-type"].includes(t[0]??"")&&!(f(e,["--infer"])&&!f(e,["--apply"])),telemetry:(e,t)=>t.slice(0,2).some(r=>["clear","flush"].includes(r)),templates:(e,t)=>t[0]==="save",test:e=>f(e,["--add","--add-json","--background","--measure","--remove","--resume","--run","--stop"]),validate:e=>f(e,["--auto-fix","--prune-missing"]),vcs:(e,t)=>["abandon","create","merge","propose","ref-create"].includes(t[0]??""),workspace:(e,t)=>t[0]==="snapshot"&&["create","delete","restore"].includes(t[1]??"")};function U(e){let t=e.match(Z);return t?[Number(t[1]),Number(t[2]),Number(t[3]),Number(t[4]??0)]:null}function G(e,t){let r=U(e),n=U(t);if(!r||!n)return null;for(let o=0;o<r.length;o+=1){let a=r[o]-n[o];if(a!==0)return Math.sign(a)}return 0}function J(e){try{let t=JSON.parse(je.readFileSync(e,"utf8"));return typeof t=="object"&&t!==null&&!Array.isArray(t)?t:null}catch{return null}}function Nf(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[j],a=typeof o=="string"?o.trim():"",i=/^[<!]/u.test(a)?void 0:a.match(Z)?.[0];i&&t.push(i)}return t.sort((r,n)=>G(n,r))[0]}function wf(e){let r=J(F.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 kf(e,t){try{let r=je.readFileSync(F.join(e,t),"utf8").split(/\r?\n/u),n=r.findIndex(s=>s.includes(j));if(n<0)return;let o=r[n].match(/^\s*/u)[0].length,a=[r[n]];for(let s=n+1;s<r.length;s+=1){let d=r[s],p=d.trim(),u=d.match(/^\s*/u)[0].length;if(p.length>0&&u<=o)break;a.push(d)}return a.join(`
|
|
2
|
+
`).match(/^\s*version(?::\s*|\s+)["']?(\d{4}\.\d{1,2}\.\d{1,2}(?:-\d+)?)/mu)?.[1]??a[0].match(Z)?.[0]}catch{return}}function vf(e){let t=[],r=J(F.join(e,"package.json")),n=r?Nf(r):void 0;n&&t.push({version:n,source:"package.json"});let a=J(F.join(e,"node_modules","@unbrained","pm-cli","package.json"))?.version;typeof a=="string"&&U(a)&&t.push({version:a,source:"installed-package"});let i=wf(e);i&&U(i)&&t.push({version:i,source:"package-lock.json"});for(let c of["pnpm-lock.yaml","yarn.lock"]){let s=kf(e,c);s&&t.push({version:s,source:c})}return t}function He(e){for(let t=0;t<e.length;t+=1){let r=e[t];if($e.has(r)){t+=1;continue}if(!r.startsWith("-"))return{command:r.toLowerCase(),index:t}}}function Pf(e){let t=He(e);if(!t||f(e,["--help","-h","--dry-run"]))return!1;let{command:r,index:n}=t,o=[];for(let i=n+1;i<e.length;i+=1){let c=e[i];if($e.has(c)){i+=1;continue}c.startsWith("-")||o.push(c.toLowerCase())}let a=If[r];return a?a(e,o):xf.has(r)}function Lf(e){let t=He(e.argv)?.command,r=Pf(e.argv),o=vf(e.projectRoot).filter(c=>G(c.version,e.executingVersion)!==null).sort((c,s)=>G(s.version,c.version))[0],a=o!==void 0&&G(e.executingVersion,o.version)===-1,i=a&&!r?{code:"project_runtime_stale_read",executing_version:e.executingVersion,project_version:o.version,source:o.source,message:"This read is using an older pm runtime than the project requires.",next_steps:[`Run the command through the project's installed ${j} ${o.version}.`,"Install the project dependencies with its declared package manager if the local executable is missing."]}:void 0;return{compatible:!r||!a||e.allowStale===!0,executing_version:e.executingVersion,...o?{project_version:o.version,source:o.source}:{},...t?{command:t}:{},mutating:r,stale:a,...i?{warning:i}:{},override_applied:a&&r&&e.allowStale===!0}}function xR(e){let t=Lf(e);if(t.compatible)return t;throw new B(`pm ${t.executing_version} cannot mutate a project pinned to newer pm ${t.project_version}.`,H.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 ${j} ${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 Mf}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 Q=1;function R(e){e?.throwIfAborted()}function g(e,t){if(typeof e!="string"||e.trim().length===0)throw new TypeError(`Relationship graph ${t} must be non-empty`);return e.trim()}function b(e,t,r={}){let n=Date.parse(r.createdAt??new Date().toISOString());if(!Number.isFinite(n))throw new TypeError("Relationship graph createdAt must be a valid timestamp");let o=e.nodes(),a=e.edges(),i=t.list();return Object.freeze({version:Q,fingerprint:Mf("sha256").update(L({nodes:o,edges:a,kinds:i})).digest("hex"),created_at:new Date(n).toISOString(),nodes:o,edges:a,kinds:i})}function Df(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function v(e){if(!Df(e))throw new TypeError("Relationship graph snapshot must be an object");if(e.version!==Q)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 W([]);for(let o of e.kinds)t.register(o);let r=new E(e.nodes,e.edges,t),n=b(r,t,{createdAt:e.created_at});if(n.fingerprint!==e.fingerprint)throw new TypeError("Relationship graph snapshot fingerprint mismatch");return{snapshot:n,registry:t,graph:r}}async function _(e,t){g(e.name,"adapter name");let r=g(t.workspace,"workspace");R(t.signal);let n=await e.read({...t,workspace:r});return R(t.signal),n===null?null:v(n)}async function $(e,t){let r=g(t.workspace,"workspace"),n=v(t.snapshot).snapshot,o=await _(e,{workspace:r,signal:t.signal});if(o?.snapshot.fingerprint===n.fingerprint)return{adapter:e.name,workspace:r,disposition:"current",fingerprint:n.fingerprint,previous_fingerprint:o.snapshot.fingerprint,node_count:n.nodes.length,edge_count:n.edges.length};if(R(t.signal),await e.replace({workspace:r,signal:t.signal,snapshot:n,expected_fingerprint:o?.snapshot.fingerprint??null}),(await _(e,{workspace:r,signal:t.signal}))?.snapshot.fingerprint!==n.fingerprint)throw new Error(`Relationship graph adapter "${e.name}" did not expose the replaced snapshot`);return{adapter:e.name,workspace:r,disposition:"written",fingerprint:n.fingerprint,...o?{previous_fingerprint:o.snapshot.fingerprint}:{},node_count:n.nodes.length,edge_count:n.edges.length}}function Gf(e,t={}){let r=e.map(v),n=new Map;for(let i of r)for(let c of i.snapshot.kinds){let s=n.get(c.kind);if(s&&L(s)!==L(c))throw new TypeError(`Conflicting federated relationship kind: ${c.kind}`);n.set(c.kind,c)}let o=new W([...n.values()].sort((i,c)=>i.kind.localeCompare(c.kind))),a=new E(new Set(r.flatMap(i=>[...i.snapshot.nodes])),r.flatMap(i=>[...i.snapshot.edges]),o);return b(a,o,t)}var k=class{name;#e=new Map;constructor(t="memory"){this.name=g(t,"adapter name")}async read(t){R(t.signal);let r=this.#e.get(g(t.workspace,"workspace"));return r?structuredClone(r):null}async replace(t){R(t.signal);let r=g(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(v(t.snapshot).snapshot))}async clear(t){R(t.signal);let r=g(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 Be(e,t){if(!Number.isInteger(e)||e<1)throw new TypeError(`Relationship graph ${t} must be a positive integer`);return e}function Ff(e){let t=Be(e.nodeCount,"nodeCount"),r=Be(e.edgeStride??1,"edgeStride"),n=e.topology??"chain";if(!["chain","star","disconnected"].includes(n))throw new TypeError(`Unsupported relationship graph topology: ${n}`);let o=(e.kind??"related").trim(),a=(e.idPrefix??"node").trim();if(!o||!a)throw new TypeError("Relationship graph kind and idPrefix must be non-empty");let i=n==="disconnected"?0:Math.floor((t-1)/r);return{node_count:t,edge_count:i,edge_basis:"fixture_generated",nodes:{*[Symbol.iterator](){for(let c=0;c<t;c+=1)yield`${a}-${c}`}},edges:{*[Symbol.iterator](){if(n!=="disconnected")for(let c=r;c<t;c+=r)yield{source:`${a}-${n==="star"?0:c-r}`,target:`${a}-${c}`,kind:o}}}}}function A(e,t){if(!e)throw new Error(`Relationship graph adapter conformance: ${t}`)}async function Ve(e,t={}){let r=t.workspace?.trim()||"pm-graph-conformance",n=se(),o=b(new E(["a","b"],[{source:"a",target:"b",kind:"related"}],n),n,{createdAt:"2026-01-01T00:00:00.000Z"}),a=b(new E(["a","b","c"],[{source:"a",target:"b",kind:"related"},{source:"b",target:"c",kind:"blocked_by"}],n),n,{createdAt:"2026-01-02T00:00:00.000Z"}),i=[];A(await _(e,{workspace:r})===null,"workspace must start empty"),i.push({name:"empty-read",passed:!0});let c=await $(e,{workspace:r,snapshot:o});A(c.disposition==="written","first sync must write"),i.push({name:"atomic-replace",passed:!0}),(await e.read({workspace:r})).nodes.push("mutated-reader-copy"),A((await _(e,{workspace:r}))?.snapshot.nodes.length===2,"reads must not mutate stored state"),i.push({name:"read-isolation",passed:!0}),A((await $(e,{workspace:r,snapshot:o})).disposition==="current","identical sync must be idempotent"),i.push({name:"idempotent-sync",passed:!0}),await e.replace({workspace:r,snapshot:a,expected_fingerprint:o.fingerprint}),A((await _(e,{workspace:r}))?.snapshot.fingerprint===a.fingerprint,"replacement must become visible"),i.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 A(d,"stale compare-and-swap must fail"),i.push({name:"stale-cas",passed:!0}),e.clear&&(await e.clear({workspace:r,expected_fingerprint:a.fingerprint}),A(await _(e,{workspace:r})===null,"clear must remove the workspace"),i.push({name:"clear",passed:!0})),{adapter:e.name,workspace:r,cases:Object.freeze(i),clear_supported:e.clear!==void 0}}function Uf(e){return Ve(new k,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]="b5509c6e-1431-5316-a563-16681ced4f33")}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 We}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 ze(e,t){if(typeof e!="string"||e.trim().length===0)throw new TypeError(`Relationship backfill ${t} must be non-empty`);return e.trim()}function ZR(e,t){let r=ze(t.migrationId,"migrationId"),n=ze(t.author,"author"),o=Date.parse(t.timestamp);if(!Number.isFinite(o))throw new TypeError("Relationship backfill timestamp must be valid");let a=new Date(o).toISOString(),i=z(e,void 0,t.registry),c=i.graph.nodes(),s=i.graph.edges().map(l=>{let h=We("sha256").update(JSON.stringify([r,l.kind,l.source,l.target,l.createdAt??null,l.author??null,l.payload??null])).digest("hex").slice(0,24);return Object.freeze({eventId:`backfill:${r}:${h}`,relationshipId:`migration:${r}:${h}`,action:"add",edge:l,author:n,timestamp:a,reason:`Backfill ${r} from legacy item metadata`})}),d=We("sha256").update(JSON.stringify({migrationId:r,nodes:c,events:s})).digest("hex"),p=new Set([...t.existingEventIds??[]].filter(l=>typeof l=="string").map(l=>l.trim()).filter(Boolean)),u=s.filter(l=>!p.has(l.eventId));return Object.freeze({migration_id:r,fingerprint:d,nodes:c,events:Object.freeze(u),edge_count:s.length,skipped_existing_count:s.length-u.length,duplicate_dependency_rows:i.duplicateRows.length,dangling_reference_count:i.dangling.active.length+i.dangling.legacy_terminal.length})}import*as Ke 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]="7b488d32-9f92-5a80-965e-e2555cd49315")}catch{}})();var ee=["suggested_retry","candidate_command","example","next_step","migration_hint","restore_with"],te={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"}},eb=Object.freeze(Object.keys(te));function Xe(e){if(Object.hasOwn(te,e))return te[e]}var jf=new Set([..."=([{,:;!?&|+-*%^~<>","=>"]);function x(e,t){return e<t?-1:e>t?1:0}function $f(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 Hf(e){return e===void 0||e.kind==="punctuator"&&jf.has(e.value)||e.kind==="identifier"&&["return","case","throw","else","yield"].includes(e.value)}function Bf(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 Vf(e,t,r){if(e[t]!=="/"||!Hf(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 Wf(e,t){let r=e[t];if(r==="'"||r==='"'||r==="`"){let o=$f(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 zf(e){let t=[],r=0;for(;r<e.length;){let n=Bf(e,r);if(n!==void 0){r=n;continue}let o=Vf(e,r,t.at(-1));if(o!==void 0){r=o;continue}let a=Wf(e,r);a.token&&t.push(a.token),r=a.next}return t}var Kf=new Set(["object","block","pattern"]),Xf=new Set(["const","let","var"]),Yf=new Set(["}",")","]"]),qf=new Set(["=","(","[",",",":","?","return"]);function Jf(e,t,r){if([...r].reverse().find(a=>Kf.has(a.kind))?.kind==="pattern"||r.at(-1)?.kind==="paren"&&r.at(-1)?.parameter_list)return"pattern";let o=e[t-1];return o?.kind==="identifier"&&Xf.has(o.value)?"pattern":o?.value==="=>"||o?.value===")"?"block":o&&qf.has(o.value)?"object":"block"}function Zf(e,t,r){let n=e[t];if(n.value==="{"){let c=Jf(e,t,r);return{kind:c,...c==="object"?{member_start:!0,candidates:[]}:{}}}if(n.value==="[")return{kind:"array"};if(n.value!=="(")return;let o=e[t-1],a=e[t-2];return{kind:"paren",...o?.value==="function"||a?.value==="function"?{parameter_list:!0}:{}}}function Qf(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 em(e,t){return e[t+1]?.value===")"&&e[t+2]?.value==="=>"||e[t+1]?.value==="="}function tm(e){let t=zf(Ke.stripTypeScriptTypes(e,{mode:"strip"})),r=[],n=[];for(let[o,a]of t.entries()){let i=n.at(-1),c=Qf(i,a,t[o+1]);c&&i.candidates.push(c);let s=Zf(t,o,n);if(s)n.push(s);else if(Yf.has(a.value)){let d=n.pop();d?.kind==="object"&&!em(t,o)&&r.push(...d.candidates)}else a.value===","&&i?.kind==="object"?i.member_start=!0:i?.kind==="object"&&a.value!==":"&&(i.member_start=!1)}return r}function rm(e){let t=[0];for(let r=0;r<e.length;r+=1)e[r]===`
|
|
4
|
+
`&&t.push(r+1);return t}function nm(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 tb(e){let t=[],r=[];for(let o of[...e].sort((a,i)=>x(a.path,i.path))){let a=rm(o.content),i;try{i=tm(o.content)}catch(c){r.push({kind:"invalid_source",subject:o.path,detail:`${o.path} could not be parsed for recovery producers: ${String(c)}.`});continue}for(let c of i){let s=c.field,d=nm(a,c.offset),p=Xe(s);p?t.push({path:o.path,line:d,field:s,kind:p.kind}):/(?:retry_command|candidate_command|fallback_candidate|next_best_command|example|next_step|migration_hint|restore_with)/u.test(s)&&!/(?:_total|_truncated)$/u.test(s)&&r.push({kind:"unknown_recovery_field",subject:`${o.path}:${d}:${s}`,detail:`${s} resembles a recovery reference but has no typed field contract.`})}}let n=Object.fromEntries(ee.map(o=>[o,t.filter(a=>a.kind===o).length]));for(let o of ee)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,a)=>o.path!==a.path?x(o.path,a.path):o.line!==a.line?o.line-a.line:x(o.field,a.field)),r.sort((o,a)=>o.subject!==a.subject?x(o.subject,a.subject):x(o.kind,a.kind)),{ok:r.length===0,scanned_file_count:e.length,producer_count:t.length,producer_count_by_kind:n,producers:t,findings:r}}function rb(e,t){let r=[],n=(o,a)=>{if(Array.isArray(o)){o.forEach((i,c)=>n(i,[...a,String(c)]));return}if(!(typeof o!="object"||o===null))for(let[i,c]of Object.entries(o).sort(([s],[d])=>x(s,d))){let s=Xe(i),d=s?.kind==="migration_hint"&&o.semantics==="behavior_preserving"?{...s,semantics:"behavior_preserving"}:s,p=[c].flat();d!==void 0&&p.forEach((u,l)=>{let h="nested_value_field"in d&&typeof d.nested_value_field=="string"?d.nested_value_field:void 0,I=h&&typeof u=="object"&&u!==null&&!Array.isArray(u)?u[h]:u;if(typeof I!="string"||I.trim().length===0)return;let N=[...a,i,String(l)].map(P=>encodeURIComponent(P)).join("/");r.push({id:`${e}:${d.kind}:${N}`,probe_id:e,kind:d.kind,semantics:d.semantics,value:I})}),n(c,[...a,i])}};return n(t,[]),r}function nb(e,t){let r=e.flatMap(i=>(i.owned_states??[]).map(c=>({contract:i,state:c}))),n=[],o=new Map;for(let i of t){if(o.has(i.probe_id)){n.push({kind:"duplicate_probe",probe_id:i.probe_id,detail:`Observation ${i.probe_id} was supplied more than once.`});continue}o.set(i.probe_id,i)}let a=new Set(r.map(({state:i})=>i.probe_id));for(let{contract:i,state:c}of r){let s=o.get(c.probe_id);if(!s){n.push({kind:"missing_probe",probe_id:c.probe_id,detail:`No entrypoint observation was recorded for ${i.code}.`});continue}s.code!==i.code&&n.push({kind:"wrong_error_code",probe_id:c.probe_id,detail:`Expected ${i.code}; observed ${s.code}.`}),s.exit_class!==c.expected_exit_class&&n.push({kind:"wrong_exit_class",probe_id:c.probe_id,detail:`Expected ${c.expected_exit_class}; observed ${s.exit_class}.`}),c.entrypoints.includes(s.entrypoint)||n.push({kind:"wrong_entrypoint",probe_id:c.probe_id,detail:`Expected one of ${c.entrypoints.join(", ")}; observed ${s.entrypoint}.`})}for(let i of t)a.has(i.probe_id)||n.push({kind:"undeclared_probe",probe_id:i.probe_id,detail:`Observation ${i.probe_id} has no catalog declaration.`});return n.sort((i,c)=>i.probe_id!==c.probe_id?i.probe_id.localeCompare(c.probe_id):i.kind.localeCompare(c.kind)),{ok:n.length===0,declared_probe_count:r.length,observed_probe_count:t.length,findings:n}}function ob(e,t){let r=[],n=new Set,o=new Set;for(let s of e){if(n.has(s.id)){o.add(s.id),r.push({kind:"duplicate_obligation",reference_id:s.id,detail:`Recovery obligation ${s.id} was declared more than once.`});continue}n.add(s.id)}let a=new Map;for(let s of t){if(a.has(s.id)){r.push({kind:"duplicate_observation",reference_id:s.id,detail:`Recovery reference ${s.id} was observed more than once.`});continue}a.set(s.id,s),n.has(s.id)||r.push({kind:"undeclared_observation",reference_id:s.id,detail:`Recovery observation ${s.id} has no emitted obligation.`})}for(let s of e){if(o.has(s.id))continue;let d=a.get(s.id);d?d.reachable?d.semantics!==s.semantics&&r.push({kind:"wrong_semantics",reference_id:s.id,detail:`Recovery reference ${s.value} promised ${s.semantics}; proof demonstrated ${d.semantics}.`}):r.push({kind:"unreachable_reference",reference_id:s.id,detail:`Recovery reference ${s.value} did not reach its promised target.`}):r.push({kind:"missing_observation",reference_id:s.id,detail:`No reachability proof was recorded for ${s.kind} ${s.value}.`})}let i=ee.map(s=>{let d=e.filter(u=>u.kind===s),p=d.filter(u=>!o.has(u.id)).map(u=>a.get(u.id)).filter(u=>u!==void 0);return{kind:s,declared:d.length,observed:p.length,passed:d.filter(u=>{let l=a.get(u.id);return!o.has(u.id)&&l?.reachable===!0&&l.semantics===u.semantics}).length}});r.sort((s,d)=>s.reference_id!==d.reference_id?s.reference_id.localeCompare(d.reference_id):s.kind.localeCompare(d.kind));let c=i.reduce((s,d)=>s+d.passed,0);return{ok:r.length===0,declared_reference_count:e.length,observed_reference_count:t.length,pass_fraction:n.size===0?1:c/n.size,coverage_by_kind:i,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]="7fc669d4-1db2-5636-8304-2c111a684726")}catch{}})();function sb(e){return e}function ab(e){return e}function cb(e){return e}function db(e){return e}function pb(e){return e}function ub(e){return e}function lb(e){return e}function fb(e){return e}function mb(e){return e}function _b(e){return e}function hb(e){return e}function Tb(e){return e}function gb(e){return e}function Ab(e){return{handled:!0,result:e}}function Eb(){return{handled:!1}}function Cb(e){return e}function yb(e){return e}function Sb(e){return e}function Ob(e){return e}function Rb(e){return e}function bb(e){return e}function xb(e){return e}function Ib(e){return e}function Nb(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 om(e={},t={}){return new M(t).extension(void 0,{...e,migrate:!0})}function im(e={},t={}){return new M(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]="6260572c-1496-58ef-9377-0825f4183bc6")}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]="9f95a9b0-3bc5-5c78-8e85-c5f7d50cae60")}catch{}})();export{ZE as ACTIONABILITY_ORDERING_KINDS,fn as ACTIVITY_COMMANDER_STRING_OPTION_CONTRACTS,ai as ACTIVITY_FLAG_CONTRACTS,Ut as AGENT_PROVENANCE_DIMENSIONS,Wn as AGGREGATE_FLAG_CONTRACTS,vo as APPEND_FLAG_CONTRACTS,XE as ASSURANCE_ACTIONS,YE as ASSURANCE_DECLARATION_KINDS,BA as ASSURANCE_DOCUMENT_VERSION,Zo as ASSURANCE_FLAG_CONTRACTS,VA as ASSURANCE_GATE_TRIGGERS,WA as ASSURANCE_MEASUREMENT_SOURCE_KINDS,cE as ASSURANCE_PRESET_IDS,UA as AssuranceEvaluationRefusalError,FA as AssuranceMutationRefusalError,jA as AssuranceSourceResolutionError,Ot as BASELINE_ITEM_FORMAT_VERSION,Cf as BOUNDARY_FIXTURE_CAPTURE_SOURCES,mC as BRIEF_LIST_FIELDS,S as BUILTIN_CORPUS_SHAPES,jt as BUILTIN_HARNESS_SIGNAL_DESCRIPTORS,tt as BUILTIN_ITEM_TYPE_VALUES,Ee as BUILTIN_PROFILES,Hm as BUILTIN_RELATIONSHIP_KINDS,pn as CALENDAR_COMMANDER_STRING_OPTION_CONTRACTS,si as CALENDAR_FLAG_CONTRACTS,Po as CLAIM_FLAG_CONTRACTS,bi as CLOSE_ACTION_OPTION_KEYS,wo as CLOSE_FLAG_CONTRACTS,ko as CLOSE_MANY_FLAG_CONTRACTS,Uo as CLOSE_TASK_FLAG_CONTRACTS,zn as COMMENTS_FLAG_CONTRACTS,Mm as COMMON_MUTATION_COMMAND_OPTION_KEYS,Ai as COMPLETION_FLAG_CONTRACTS,at as CONFIDENCE_TEXT_VALUES,ao as CONFIG_FLAG_CONTRACTS,un as CONTEXT_COMMANDER_STRING_OPTION_CONTRACTS,bC as CONTEXT_EVALUATION_METRIC_NAMES,di as CONTEXT_FLAG_CONTRACTS,he as CONTEXT_OUTPUT_VALUES,kC as CONTEXT_PACKING_PROFILES,yC as CONTEXT_RELEVANCE_SERVICE,EC as CONTEXT_RELEVANCE_SIGNAL_NAMES,UC as CONTEXT_SIGNAL_SET_VERSION,FC as CONTEXT_SIGNAL_STORE_FORMAT_VERSION,jC as CONTEXT_SIGNAL_STORE_WARNING_DETAILS,gi as CONTRACTS_FLAG_CONTRACTS,ri as COPY_FLAG_CONTRACTS,Tn as CREATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,An as CREATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,gn as CREATE_COMMANDER_STRING_OPTION_CONTRACTS,dm as CREATE_DIRECT_CLOSE_REASON_DEFAULT,Qo as CREATE_FLAG_CONTRACTS,tT as CURRENT_HISTORY_ITEM_HASH_VERSION,Rt as CURRENT_ITEM_FORMAT_VERSION,VC as ContextSignalStore,PC as ContextUsageValidationError,kA as DEFAULT_AUTHOR_IDENTITY_VOCABULARY,Sy as DEFAULT_CHILD_SAMPLE_LIMIT,fC as DEFAULT_COMPACT_LIST_FIELDS,QT as DEFAULT_DERIVED_INDEX_MINIMUM_ITEMS,Nd as DEFAULT_EVAL_QUERIES_RELATIVE_PATH,iy as DEFAULT_TERMINAL_TRANSITION_POLICY,XC as DEFAULT_WORKSPACE_MEMORY_MINIMUM_ITEMS,$E as DEFECT_ESCAPE_CLASSES,HE as DEFECT_GATE_EVIDENCE_DISPOSITIONS,Mo as DELETE_FLAG_CONTRACTS,ot as DEPENDENCY_KIND_VALUES,li as DEPS_FLAG_CONTRACTS,qn as DOCS_FLAG_CONTRACTS,Yo as DUPLICATES_FLAG_CONTRACTS,mi as EVAL_FLAG_CONTRACTS,Rd as EVAL_QUERY_SET_CONTRACT,bd as EVAL_QUERY_SET_EXAMPLE,Od as EVAL_QUERY_SET_SCHEMA_ID,ci as EVENTS_FLAG_CONTRACTS,$o as EVENT_FLAG_CONTRACTS,Jt as EXECUTABLE_COMMAND_ALIASES,H as EXIT_CODE,Ao as EXTENSION_ACTIVATE_FLAG_CONTRACTS,go as EXTENSION_ADOPT_ALL_FLAG_CONTRACTS,bo as EXTENSION_ADOPT_FLAG_CONTRACTS,cA as EXTENSION_CAPABILITIES,cm as EXTENSION_CAPABILITY_CONTRACT,sm as EXTENSION_CAPABILITY_CONTRACT_VERSION,am as EXTENSION_CAPABILITY_LEGACY_ALIASES,ht as EXTENSION_CAPABILITY_REGISTRATION_SURFACES,Ro as EXTENSION_CATALOG_FLAG_CONTRACTS,Eo as EXTENSION_DEACTIVATE_FLAG_CONTRACTS,To as EXTENSION_DESCRIBE_FLAG_CONTRACTS,Oo as EXTENSION_DOCTOR_FLAG_CONTRACTS,ho as EXTENSION_EXPLORE_FLAG_CONTRACTS,co as EXTENSION_FLAG_CONTRACTS,uo as EXTENSION_INIT_FLAG_CONTRACTS,mo as EXTENSION_INSTALL_FLAG_CONTRACTS,yo as EXTENSION_MANAGE_FLAG_CONTRACTS,Co as EXTENSION_MIGRATE_FLAG_CONTRACTS,dA as EXTENSION_POLICY_MODES,pA as EXTENSION_POLICY_SURFACES,So as EXTENSION_RELOAD_FLAG_CONTRACTS,lA as EXTENSION_SANDBOX_PROFILES,po as EXTENSION_SCOPE_FLAG_CONTRACTS,uA as EXTENSION_TRUST_MODES,_o as EXTENSION_UNINSTALL_FLAG_CONTRACTS,mE as EXTERNAL_DEPENDENCY_SOURCE_KIND,_E as EXTERNAL_DEPENDENCY_SOURCE_KIND_ALIAS,Yn as FILES_FLAG_CONTRACTS,ni as FOCUS_FLAG_CONTRACTS,Ko as GC_FLAG_CONTRACTS,pi as GET_FLAG_CONTRACTS,Bn as GLOBAL_FLAG_CONTRACTS,Cs as GRAPH_DURABLE_CACHE_MIN_ITEMS,Es as GRAPH_DURABLE_CACHE_VERSION,fi as GRAPH_FLAG_CONTRACTS,ar as GRAPH_SUBCOMMAND_VALUES,ui as GUIDE_FLAG_CONTRACTS,qo as HEALTH_FLAG_CONTRACTS,to as HISTORY_AUTHOR_ACKNOWLEDGE_FLAG_CONTRACTS,CE as HISTORY_AUTHOR_ATTRIBUTION_BASELINE,cS as HISTORY_COMPACT_BULK_DEFAULT_MIN_ENTRIES,ro as HISTORY_COMPACT_FLAG_CONTRACTS,Jn as HISTORY_FLAG_CONTRACTS,Qn as HISTORY_REDACT_FLAG_CONTRACTS,eo as HISTORY_REPAIR_FLAG_CONTRACTS,gd as INIT_AGENT_GUIDANCE_MODE_VALUES,so as INIT_FLAG_CONTRACTS,xo as INSTALL_FLAG_CONTRACTS,st as ISSUE_SEVERITY_VALUES,ti as ITEM_COMPLETE_FLAG_CONTRACTS,By as ITEM_LATEST_TIMESTAMP_FIELDS,um as ITEM_METADATA_KEY_ORDER,ei as ITEM_MUTATE_FLAG_CONTRACTS,rt as ITEM_TYPE_VALUES,Hy as ITEM_UNION_COLLECTION_FIELDS,BC as JsonFileContextSignalStoreAdapter,Xn as LEARNINGS_FLAG_CONTRACTS,zc as LINKED_TEST_ENV_NAME_PATTERN,Kc as LINKED_TEST_PM_CONTEXT_MODE_VALUES,Wc as LINKED_TEST_PROTECTED_ENV_KEYS,cn as LIST_COMMANDER_STRING_OPTION_CONTRACTS,_C as LIST_COMMAND_DEFAULT_PROJECTIONS,mA as LIST_FILTER_EXTENSION_FLAG_DEFINITIONS,Vn as LIST_FILTER_FLAG_CONTRACTS,uC as LIST_SORT_FIELDS,lC as LIST_SORT_ORDER_VALUES,yy as MAX_CHILD_PROJECTION_ITEMS,jo as MEET_FLAG_CONTRACTS,zy as MERGE_DRIVER_ARTIFACT_VALUES,Zn as MERGE_FLAG_CONTRACTS,Qy as MUTATION_EVENT_WIRE_BUDGET,k as MemoryRelationshipGraphAdapter,ln as NEXT_COMMANDER_STRING_OPTION_CONTRACTS,hi as NEXT_FLAG_CONTRACTS,xc as NEXT_OUTPUT_VALUES,Kn as NOTES_FLAG_CONTRACTS,lo as PACKAGE_FLAG_CONTRACTS,fo as PACKAGE_INIT_FLAG_CONTRACTS,Fo as PAUSE_TASK_FLAG_CONTRACTS,Ri as PLAN_CREATE_METADATA_PARAMETER_KEYS,io as PLAN_FLAG_CONTRACTS,cd as PLAN_SHOW_DEPTH_VALUES,ad as PLAN_SUBCOMMANDS,dd as PLAN_TEMPLATE_NAMES,Li as PM_CLI_EXPECTED_ERROR_NAME,xS as PM_CLI_GRAMMAR_CONTRACT,OS as PM_CLI_GRAMMAR_NOUNS,dr as PM_CLI_ONLY_TOOL_ACTION_WAIVERS,RS as PM_CLI_SHARED_VERBS,qt as PM_COMMAND_ALIAS_CONTRACTS,bS as PM_COMMAND_DESTINATION_CONTRACTS,uy as PM_COMMAND_EXIT_CONTRACTS,py as PM_COMMAND_EXIT_OUTCOME_CONTRACTS,Or as PM_COMMAND_OUTPUT_BUDGET_CONTRACTS,ES as PM_COMMAND_OUTPUT_ENVELOPE_CONTRACTS,rp as PM_COMMAND_VISIBILITY_CONTRACTS,hA as PM_COMPLETE_LIST_FINDING_CODES,yA as PM_CONTEXT_INTENTS_FILE,$h as PM_CONTEXT_INTENT_CONTRACTS,sr as PM_CORE_COMMAND_NAMES,T as PM_CORPUS_SHAPE_SCHEMA,ur as PM_DEPRECATED_TOOL_ACTIONS,lr as PM_DISCOVERABLE_TOOL_ACTIONS,TS as PM_ERROR_CODE_CATALOG,fS as PM_ERROR_CODE_EXIT_CLASS_CONTRACTS,Fe as PM_EXACT_COVERAGE_METRICS,er as PM_EXTENSION_CAPABILITY_CONTRACTS,cr as PM_EXTENSION_PACKAGE_ACTION_SUBCOMMANDS,rr as PM_EXTENSION_POLICY_MODE_CONTRACTS,ir as PM_EXTENSION_POLICY_SURFACE_CONTRACTS,or as PM_EXTENSION_SANDBOX_PROFILE_CONTRACTS,tr as PM_EXTENSION_SERVICE_NAME_CONTRACTS,nr as PM_EXTENSION_TRUST_MODE_CONTRACTS,IE as PM_GITATTRIBUTES_END,xE as PM_GITATTRIBUTES_START,wE as PM_GITATTRIBUTES_V2_END,NE as PM_GITATTRIBUTES_V2_START,ji as PM_GITIGNORE_END,Ui as PM_GITIGNORE_START,cp as PM_MCP_PROMPT_CONTRACTS,ap as PM_MCP_RESOURCE_CONTRACTS,ip as PM_MCP_TOOL_COMMAND_CONTRACTS,X_ as PM_MODE_PAIRED_OUTPUT_PROJECTION_CONTRACTS,Kr as PM_MUTATION_ACTION_CONTRACTS,Er as PM_OUTPUT_BUDGET_CLASSES,Ar as PM_OUTPUT_DEGRADATION_STEPS,gS as PM_OUTPUT_ENVELOPE_KINDS,fe as PM_PACKAGE_CONVENTIONAL_RESOURCE_ROOTS,le as PM_PACKAGE_RESOURCE_KINDS,Pi as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA,ki as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA_VERSION,Nh as PM_READ_OUTPUT_COMPOSITION_OPTION_FLAGS,bh as PM_READ_OUTPUT_DIMENSIONS,Ih as PM_READ_OUTPUT_OPTION_FLAGS,Ch as PM_READ_OUTPUT_SESSION_MAX_SEEN_ITEM_IDS,Eh as PM_READ_OUTPUT_SESSION_MIN_TOKENS,xh as PM_READ_OUTPUT_SURFACES,wh as PM_READ_OUTPUT_SURFACE_CONTRACTS,K_ as PM_READ_ROW_CONTRACTS,z_ as PM_READ_ROW_JQ_SELECTOR,eb as PM_RECOVERY_REFERENCE_FIELDS,ee as PM_RECOVERY_REFERENCE_KINDS,ly as PM_SUCCESS_EXIT_CODES,pr as PM_TOOL_ACTIONS,xi as PM_TOOL_ACTION_PARAMETER_CONTRACTS,vi as PM_TOOL_PARAMETERS_SCHEMA,wi as PM_TOOL_PARAMETERS_SCHEMA_MAJOR,Ni as PM_TOOL_PARAMETERS_SCHEMA_VERSION,Si as PM_TOOL_RESERVED_CUSTOM_FIELD_PROPERTIES,Me as PM_WORKSPACE_RECIPE_SCHEMA,oo as PROFILE_FLAG_CONTRACTS,xe as PROFILE_LINT_CODES,be as PROFILE_LINT_DIMENSIONS,Ae as PROFILE_NAMES,Kd as PROFILE_SUBCOMMANDS,B as PmCliError,M as PmClient,TA as PmCompleteListValidationError,ph as QUERY_CURSOR_CONTRACT,No as REINDEX_FLAG_CONTRACTS,XT as REINDEX_LOCK_ID,Q as RELATIONSHIP_GRAPH_SNAPSHOT_VERSION,Do as RELEASE_FLAG_CONTRACTS,Ho as REMIND_FLAG_CONTRACTS,ae as RESERVED_ITEM_FIELD_NAMES,Lo as RESTORE_FLAG_CONTRACTS,it as RISK_VALUES,eA as RelationshipEventLog,tA as RelationshipEventStore,E as RelationshipGraph,W as RelationshipKindRegistry,no as SCHEMA_FLAG_CONTRACTS,dn as SEARCH_COMMANDER_STRING_OPTION_CONTRACTS,_A as SEARCH_EXTENSION_FLAG_DEFINITIONS,Ti as SEARCH_FLAG_CONTRACTS,dc as SEMANTIC_ATTRIBUTION_LIMITS,lm as SETTINGS_DEFAULTS,Ld as SNAPSHOT_SCHEMA,OE as SOURCE_CONTEXT_ACCESS_ENV,RE as SOURCE_CONTEXT_WRITE_OVERRIDE_ENV,Go as START_TASK_FLAG_CONTRACTS,Xo as STATS_FLAG_CONTRACTS,nt as STATUS_VALUES,Hn as SUBCOMMAND_GLOBAL_FLAG_CONTRACTS,rT as SUPPORTED_HISTORY_ITEM_HASH_VERSIONS,Nm as SUPPRESS_HOST_OUTPUT_MARKER,Wo as TELEMETRY_FLAG_CONTRACTS,Np as TELEMETRY_SUBCOMMANDS,Vo as TEST_ALL_FLAG_CONTRACTS,Bo as TEST_FLAG_CONTRACTS,zo as TEST_RUNS_FLAG_CONTRACTS,Op as TEST_RUN_MEASUREMENT_LIMIT,Dn as TOOL_ACTIVITY_OPTION_CONTRACTS,On as TOOL_AGGREGATE_OPTION_CONTRACTS,vn as TOOL_BULK_MUTATION_FILTER_OPTION_CONTRACT_SOURCE,Mn as TOOL_CALENDAR_OPTION_CONTRACTS,Ln as TOOL_CLOSE_MANY_FILTER_OPTION_CONTRACTS,Gn as TOOL_CONTEXT_OPTION_CONTRACTS,Nn as TOOL_CREATE_OPTION_CONTRACTS,In as TOOL_CREATE_OPTION_CONTRACT_SOURCE,Fn as TOOL_DEPS_OPTION_CONTRACTS,Un as TOOL_GRAPH_OPTION_CONTRACTS,Sn as TOOL_LIST_FILTER_OPTION_CONTRACTS,Rn as TOOL_SEARCH_FILTER_OPTION_CONTRACTS,xn as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACTS,bn as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACT_SOURCE,Pn as TOOL_UPDATE_MANY_FILTER_OPTION_CONTRACTS,kn as TOOL_UPDATE_OPTION_CONTRACTS,wn as TOOL_UPDATE_OPTION_CONTRACT_SOURCE,pm as TYPE_TO_FOLDER,xm as UNKNOWN_SUBCOMMAND_COMPATIBILITY_CODES,En as UPDATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,yn as UPDATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,Cn as UPDATE_COMMANDER_STRING_OPTION_CONTRACTS,oi as UPDATE_FLAG_CONTRACTS,ii as UPDATE_MANY_FLAG_CONTRACTS,Io as UPGRADE_FLAG_CONTRACTS,Jo as VALIDATE_FLAG_CONTRACTS,_i as WORKSPACE_FLAG_CONTRACTS,wr as WORKSPACE_HISTORY_ID,Zi as WorkspaceGraphCache,sA as WorkspaceTransactionInterruptedError,Gi as _testOnly,AC as _testOnlyAggregateCommand,Td as _testOnlyConfigCommand,xy as _testOnlyGetCommand,_a as _testOnlyHealthCommand,yd as _testOnlyInit,Ad as _testOnlyInitAgentGuidance,ZS as _testOnlyItemTransaction,nS as _testOnlyMutationEvents,ry as _testOnlyNextCommand,Uy as _testOnlySearchCommand,Ay as _testOnlySimilarity,Hd as _testOnlyTemplates,ja as _testOnlyValidateCommand,lE as acceptAssuranceProposals,$s as acknowledgeUnknownAuthorHistoryEvents,js as acknowledgeUnknownAuthorHistoryEventsFromTransport,eg as acquireItemMetadataDerivedIndexLock,Nr as acquireLock,pO as activateExtensionForTest,t_ as activateExtensions,Ft as agentSessionEnvironment,Ru as aggregate,fp as analyzeAgentProvenanceDescriptorCoverage,VE as analyzeDefectChangeRisk,nA as analyzeGraphImpact,oA as analyzeKnowledgeGraph,hy as analyzePmCommandExitConformance,fr as analyzePmToolActionParity,Xy as analyzeReconciliationDiscard,rA as analyzeRelationshipExecution,fs as analyzeRelationshipSchedule,ql as analyzeSdkActionCoverage,ue as analyzeSdkCliParameterCompleteness,Gu as append,Ir as appendHistoryEntry,Lr as appendWorkspaceAuditEvent,Pr as appendWorkspaceHistoryChange,yT as applyAcceptanceCriteriaMutations,pE as applyAssurancePreset,tf as applyBootstrapPagerPolicy,zh as applyContextIntentProjection,bc as applyContextTagProjection,hC as applyFilterValueEcho,Kg as applyHistoryPatch,df as applyInvocationAuthorOverride,Ca as applyPathMigrations,Fh as applyReadOutputDimensions,Lh as applyReadOutputIncludeModes,Sh as applyReadOutputSessionReferences,x_ as applyRegisteredItemFieldDefaultsAndValidation,Ra as applyStandaloneNote,da as applyStoredExtensionMigrationState,OT as applyTagRemovals,dy as applyTerminalOrderingPolicy,ba as artifactKey,Tm as asRecordClone,hm as asRecordOrNull,z as assembleWorkspaceRelationshipGraph,CA as assertCompleteListResult,VO as assertExtensionBlueprint,BO as assertExtensionCapabilityUsage,RO as assertExtensionDeactivated,KO as assertExtensionManifestCompatible,zO as assertExtensionManifestMatchesBlueprint,XO as assertExtensionPreflight,dS as assertHistoryCompactTarget,qy as assertHistoryRepairTarget,ya as assertLinkedArtifactMutationIsUnambiguous,Uf as assertMemoryRelationshipGraphAdapterConformance,xT as assertNoUnknownCsvKeys,bO as assertPackageManifest,ET as assertParentReferenceIsNotSelf,WO as assertProjectProfile,xR as assertProjectRuntimeCompatibility,Y_ as assertProjectionModeChoice,xO as assertRegisteredCommandContract,GO as assertRegisteredCommandOverride,PO as assertRegisteredExporter,IO as assertRegisteredFlags,NO as assertRegisteredHook,vO as assertRegisteredImporter,LO as assertRegisteredItemField,MO as assertRegisteredItemType,HO as assertRegisteredMigration,FO as assertRegisteredParserOverride,UO as assertRegisteredPreflightOverride,DO as assertRegisteredProfile,jO as assertRegisteredRendererOverride,wO as assertRegisteredSearchProvider,$O as assertRegisteredServiceOverride,kO as assertRegisteredVectorStoreAdapter,zm as assertRelationshipEdgeAllowed,Ve as assertRelationshipGraphAdapterConformance,zA as assuranceAssertionUpdateIsLoosening,Yh as attachContextIntentReceipt,th as attachOutputOmissionReceipt,Jh as attachOutputTokenAccounting,qh as attachReadOutputContracts,Oh as attachReadOutputSessionReceipt,Ys as auditMergeAttributeFence,kE as auditMergeDriverConfiguration,gs as auditWorkspaceRelationshipGraph,Mt as boundAgentEpisodeIdentity,Th as boundReadOutputRows,yc as buildChildrenByParent,Ny as buildCompactSearchFilterSummary,TC as buildContentFilterEcho,HC as buildContextSignalSnapshot,ff as buildCorpusShapeItemPlan,BE as buildDefectRecurrenceIndex,ia as buildExtensionDescribeResult,gC as buildGovernanceMissingFilterEcho,FT as buildInvalidTypeError,Oy as buildItemChildrenRollup,qS as buildItemCompletionMutations,CC as buildItemContextRelevanceCandidates,sg as buildItemNotFoundError,by as buildItemSchedule,Ks as buildMergeAttributePatterns,Ii as buildPmActionToolInputSchema,AE as buildRelationshipContext,pg as buildSearchCorpus,lg as buildSemanticCorpusInput,gg as buildVectorizationEmbeddingIdentity,Ag as buildVectorizationEmbeddingMetadata,wy as buildVerboseSearchFilters,YC as buildWorkspaceMemorySnapshot,Lt as canonicalDocument,Dm as canonicalizeCommandOptionKey,Bm as canonicalizeRelationshipKind,tb as censusPmRecoveryReferenceProducers,EA as certifyCompleteListResult,cO as checkExtensionManifestCompatibility,Al as claim,El as claimNext,yE as classifyHistoryAuthorEvent,oS as classifyHostEnvironmentFault,Fy as classifyImplicitSemanticFallbackReason,It as classifyItemFormatVersion,vp as classifyLinkedTestFailure,g_ as clearActiveExtensionHooks,bs as clearDurableGraphCache,$_ as clearFocusedItem,Bi as clearWorkspaceContractsCache,gl as close,Pc as closeItem,Il as closeTask,of as coalesceRepeatedListFlags,QE as collectBlockedByIds,tC as collectBlockedByIdsFromCorpus,Yi as collectDanglingDependencyReferences,nC as collectDependencyBlockedIds,Ki as collectDuplicateDependencyRows,Ts as collectDuplicateRelationshipEdgeGroups,Gy as collectErrorCauseCodes,qi as collectMissingDependencyTargetIds,jc as collectNewOrderingCycleWarnings,ms as collectOrderingCycles,Xi as collectOrderingStorageContradictions,RA as collectPackageContextIntentContracts,_e as collectPackageExtensionDirectories,R_ as collectRegisteredItemFieldNames,P_ as collectRuntimeCreateFieldValues,UT as collectRuntimeFilterValues,L_ as collectRuntimeUpdateFieldValues,Tc as collectSubtreeIds,Tt as collectUsedExtensionCapabilities,Gm as commandOptionFlagLabel,Iu as comments,au as commitImportedItem,JS as commitItemCompletion,YS as commitItemMutations,aA as commitWorkspaceTransaction,$n as compactFlagAliasContracts,gc as compareCriticalItems,G as comparePmDateVersions,iA as compareRelationshipSnapshots,gm as compareTimestampStrings,DA as compileHistoryProvenanceMatcher,Vh as composeContextIntentContracts,tO as composeExtension,aO as composeExtensionPackage,oC as computeActionabilityReport,fT as computeHistoryDiff,us as computeRelationshipCentrality,ps as computeRelationshipDominators,Ji as computeWorkspaceGraphFingerprint,Uu as config,T_ as consumeAfterCommandAffectedItems,Au as context,Xh as contextIntentRowId,yl as copy,Pp as countFailureCategories,_h as countReadOutputRows,hl as create,dE as createAssurancePreset,jE as createAssuranceWorkspaceContext,Em as createCheckpointId,gA as createCompleteListOptions,r_ as createCoreCommandHookContext,Le as createCorpusShapeMeasurement,JA as createEmptyAssuranceDocument,Xm as createEmptyExtensionRegistrationRegistry,Fi as createExtensionCommandSdk,_t as createExtensionContributionInventory,YO as createExtensionTestHarness,xr as createHistoryEntry,Mg as createLazyModule,ig as createMutationGuardSdk,q_ as createOutputOmissionReceipt,Mi as createPmCliExpectedError,pf as createPmCliProgram,yr as createPmCommandOutputBudget,nh as createQueryFingerprint,Ff as createRelationshipGraphScaleFixture,b as createRelationshipGraphSnapshot,se as createRelationshipKindRegistry,ky as createSearchCursorFingerprint,n_ as createSerialQueue,IT as createStdinTokenResolver,Im as createUnknownSubcommandError,Md as createWorkspaceSnapshot,uO as deactivateExtensionForTest,Eb as declineServiceOverride,Kh as decodeContextIntentCursor,Lg as decodeHtmlEntitiesInOptions,ah as decodeQueryCursor,ih as decodeQueryCursorEnvelope,sh as decodeQueryCursorState,Ah as decodeReadOutputContinuationCursor,Ia as dedupeLinkedArtifacts,SC as defaultScoreContextCandidates,bb as defineAfterCommandHook,Ob as defineBeforeCommandHook,Rb as defineBeforeMutationHook,cb as defineCommand,_b as defineCommandOverride,y as defineCorpusShape,Sb as defineExporter,QS as defineExtension,eO as defineExtensionBlueprint,sb as defineExtensionManifest,db as defineFlag,yb as defineImporter,ub as defineItemField,pb as defineItemType,lb as defineMigration,Nb as defineOnIndexHook,Ib as defineOnReadHook,xb as defineOnWriteHook,hb as defineParserOverride,Sr as definePmCommandOutputBudget,AS as definePmCommandOutputEnvelope,mS as definePmErrorCodeCatalog,Tb as definePreflightOverride,ab as defineProjectProfile,Cb as defineRendererOverride,fb as defineSearchProvider,gb as defineServiceOverride,mb as defineVectorStoreAdapter,De as defineWorkspaceRecipe,Sl as deleteItem,$d as deleteWorkspaceSnapshot,Km as dependencyToRelationship,Mu as deps,uE as deriveAssuranceProposals,nO as deriveExtensionCapabilities,Ty as derivePmBulkMutationEffect,rb as derivePmRecoveryReferenceObligations,Qs as deriveSchemaEvolutionMigrationId,xg as deriveTelemetryCommandResolution,BT as describeAllowedTransitions,SE as describeExtensionActivation,oO as describeExtensionBlueprint,ec as describeItemOwnershipConflict,Oe as describeProfileComposition,Re as describeProjectProfile,MS as describeUnknownError,Vt as detectAgentIdentity,Xt as detectHarnessIdentity,cs as detectRelationshipCommunities,Wt as diagnoseAgentIdentity,As as diffRelationshipAuditSnapshots,xp as diffTestRunMeasurements,Qm as discoverExtensions,pt as discoverNearbyPmRoot,vf as discoverProjectRuntimeVersionPins,Lu as docs,xu as duplicates,ys as durableGraphCachePath,xs as durableGraphCacheStatus,bt as effectiveItemFormatVersion,Vg as emitTelemetryErrorEvent,su as emptyImportedDocument,oh as encodeQueryCursor,gh as encodeReadOutputContinuationCursor,mT as enforceHistoryStreamPolicyForItem,_T as enforceHistoryStreamPolicyForItems,uS as enrichCliFlagInvocationContract,lS as enrichCliFlagInvocationContracts,Yg as ensureMaterializedHistoryTarget,Hi as ensurePmGitignore,ha as ensureScope,bg as ensureSentryInit,iu as ensureTrackerInitialized,ss as enumerateRelationshipPaths,br as estimatePmOutputTokens,QA as evaluateAssuranceAssertion,eE as evaluateAssuranceGate,_R as evaluateBoundaryFixtures,xC as evaluateContextRanking,WE as evaluateDefectGateEvidence,ZA as evaluateMeasurement,Yr as evaluateMutationGuard,Ap as evaluateProvenanceCoverage,hp as evaluateSemanticAttributionCoverage,Vc as evaluateSimilarityGovernance,HT as evaluateTransition,fg as executeEmbeddingBatchesWithRetry,hg as executeVectorDelete,Tg as executeVectorReset,_g as executeVectorUpsert,hf as executeWorkspaceRecipe,Oa as expandAddGlobEntries,La as explainSourceTraceability,Nl as extension,kl as extensionActivate,vl as extensionDeactivate,wl as extensionList,om as extensionMigrate,Wg as extractPatchFailureContext,Fa as extractReferencedPmItemIdsFromCommand,Gf as federateRelationshipGraphSnapshots,ku as files,vu as filesDiscover,Pu as filesLookup,Ef as findCoverageDeficits,Bc as findDuplicateClusters,zs as findGitWorkspaceRoot,na as findInstalledNpmPackageCandidate,ds as findRedundantRelationshipEdges,ls as findRelationshipCutStructure,Hc as findSimilarItems,Bg as finishTelemetryCommand,Rm as flattenFlagListValue,Tf as flushTelemetryQueue,Rl as focus,as as forEachMatchedRelationshipEdge,hs as formatDuplicateEdgeGroup,_s as formatOrderingStorageContradiction,tp as formatProfileApplyHuman,ep as formatProfileLintHuman,Zd as formatProfileListHuman,Qd as formatProfileShowHuman,ra as formatSchemaEvolutionMigrationHuman,pl as gc,$r as generateItemId,Su as get,m_ as getActiveCommandResult,Hh as getActiveContextIntentContracts,At as getActiveExtensionRegistrations,rE as getAssuranceDeclaration,zl as getContracts,U_ as getFocusedItem,ft as getHistoryPath,Qg as getItemAt,lt as getItemPath,Zr as getMutationActionContract,$i as getPmGitignoreBlock,ut as getSettingsPath,Wl as getWorkspaceContracts,kr as getWorkspaceHistoryPath,Du as graph,Ss as graphAuditBaselinePath,Tp as groupHistoryByEpisode,Ab as handleServiceOverride,Ei as hasSubcommandFlagContractsForCommand,Eg as hasVectorizationEmbeddingIdentityChanged,Cg as hasVectorizationVectorDimensionChanged,nT as hashDocument,oT as hashDocumentForVersion,iT as hashEmptyDocument,dl as health,rs as hierarchyAncestors,ns as hierarchyDescendants,ml as historyCompact,_l as historyCompactBulk,MA as historyEntryMatchesProvenance,ul as historyRedact,ll as historyRepair,fl as historyRepairAll,eC as indexBlockedByIds,yg as inferConsistentVectorDimension,Cr as inferPmOutputBudgetClass,Fu as init,AA as inspectCompleteListResult,Ms as inspectHistoryAuthorStream,Lf as inspectProjectRuntimeCompatibility,sn as inspectStaleInProgressItems,vr as inspectWorkspaceHistoryState,Dd as inspectWorkspaceSnapshot,Zs as installMergeFence,Nc as isAlreadyClaimedError,FS as isCommanderError,Ya as isErrnoError,hE as isExternalDependencySourceKind,km as isHostOutputSuppressed,qr as isMutationAction,Wm as isOrderingRelationshipKind,gT as isPlaceholderReferenceToken,Di as isPmCliExpectedError,_r as isPmExtensionCapabilityContract,Tr as isPmExtensionPolicyModeContract,gr as isPmExtensionPolicySurfaceContract,hr as isPmExtensionServiceNameContract,my as isPmKnownExitCode,yS as isPmMutationReceipt,fy as isPmSuccessfulExitCode,mr as isPmToolAction,Pf as isProjectMutatingInvocation,Dg as isPureSnakeCaseAlias,Uh as isReadOutputBudgetExceeded,Z_ as isReadRowContract,Ls as isRuntimeRecord,Ug as isTerminalPlanMode,D_ as isTerminalStatus,et as isTimestampLiteral,KS as itemDocumentToMutationOptions,Ry as itemHasSchedule,Qr as jaccardSimilarity,wu as learnings,bm as levenshteinDistanceWithinLimit,za as limitAnnotationEntries,iO as lintExtensionBlueprint,Ie as lintProjectProfile,Eu as list,nf as listAliasPluralKeys,Cu as listAllComplete,ng as listAllDocumentCandidatesCached,zr as listAllItemMetadata,og as listAllItemMetadataLight,tE as listAssuranceDeclarations,aE as listAssuranceVerdicts,uf as listBuiltinCorpusShapes,PE as listInvalidProvenanceHistoryStreamIds,DE as listMergeReceipts,Jr as listMutationActions,eS as listMutationEvents,op as listPmCommandsForTier,sp as listPmMcpToolsForProfile,Se as listProfiles,Gd as listWorkspaceSnapshots,bA as loadContextIntentRuntimeLayers,Bd as loadCreateTemplateOptions,e_ as loadExtensions,Ns as loadGraphAuditBaseline,ym as loadMutationCheckpoint,_ as loadRelationshipGraphAdapter,Vr as locateItem,bT as looksLikeGenericKeyValueEntry,hh as mapReadOutputRows,GE as markMergeReceiptReconciled,jT as matchesRuntimeFilters,$g as maybeRunFirstUseTelemetryPrompt,mf as measureCorpusShapePlan,ST as mergeAdditiveTags,rO as mergeExtensionBlueprints,jy as mergeHistoryStreams,Vy as mergeItemDocuments,Wy as mergeJsonDocuments,sf as mergeLinkedTestTwoTokenEntries,$y as mergeRelationshipEventStreams,Oc as mergeSortedWarnings,Fg as migrateItemFilesToFormat,ag as mutateItem,Mr as mutateWorkspaceJsonWithHistory,Ou as next,Wa as normalizeAnnotationTransportOptions,HA as normalizeAssuranceEvaluation,$A as normalizeAssuranceMutation,af as normalizeBootstrapInvocation,Wi as normalizeDependencyGraphTarget,gE as normalizeDependencySeedId,TE as normalizeDependencySourceKind,mt as normalizeExtensionContributionInventory,vE as normalizeInvalidHistoryProvenance,kS as normalizeItemAddressInvocation,xt as normalizeItemFormatVersion,jr as normalizeItemId,kt as normalizeItemMetadata,rf as normalizeLegacyExtensionActionSyntax,Sa as normalizeLinkedPath,TT as normalizeParentReferenceValue,Ce as normalizeProfileName,Ur as normalizeRawItemId,Mh as normalizeReadOutputIncludeModeOptions,dT as normalizeReplayPatchOps,en as normalizeSimilarityText,M_ as normalizeStatusForRegistry,wt as normalizeStatusInput,k_ as normalizeStatusInputWithRegistry,GS as normalizeThrownExitCode,Nu as notes,Qe as nowIso,Os as openDurableGraphCache,os as orderingPredecessors,is as orderingSuccessors,vC as packContextCandidates,Ac as packRankedContextItems,Hl as packageActivate,$l as packageCatalog,Bl as packageDeactivate,Ul as packageDescribe,Gl as packageDoctor,Ml as packageInstall,Pl as packageLifecycle,Ll as packageList,Fl as packageManage,im as packageMigrate,jl as packageReload,Dl as packageUninstall,dh as paginateQueryRows,Ta as parseAddEntries,ga as parseAddGlobEntries,Xa as parseAnnotationTextInput,VS as parseAtomicMutationControls,ef as parseBootstrapCommandName,Jl as parseBootstrapGlobalOptions,Ql as parseBootstrapHelpRequest,cf as parseBootstrapTypeValue,_c as parseContextDepth,uc as parseContextFocusFields,SA as parseContextIntentDeclarations,hc as parseContextSections,$C as parseContextSignalSnapshot,RT as parseCsvKv,KE as parseDefectChangeRiskRequest,zE as parseDefectRecurrencePolicy,xd as parseEvalQuerySet,vs as parseGraphSubcommand,PA as parseHistoryProvenanceFilters,IA as parseIntegerLimit,G_ as parseItemDocument,WS as parseItemMutationBatch,GT as parseLimit,td as parseLinkedTestAssertionEqualsMap,rd as parseLinkedTestAssertionGteMap,qc as parseLinkedTestBoolean,Jc as parseLinkedTestContextMode,Yc as parseLinkedTestEnvClear,Xc as parseLinkedTestEnvSet,nd as parseLinkedTestJsonEntries,ed as parseLinkedTestMinLines,Qc as parseLinkedTestRegexList,Zc as parseLinkedTestStringList,Ea as parseMigrateEntries,iC as parseMultiValueFilter,SS as parseMutationReceipt,wT as parseOptionalNonNegativeInteger,NT as parseOptionalNumber,NA as parsePriority,cC as parsePriorityFilterSet,yh as parseReadOutputSession,b_ as parseRegisteredItemFieldAssignments,v as parseRelationshipGraphSnapshot,Aa as parseRemoveEntries,Pa as parseSourceLineRange,PT as parseStatusFilterCsv,sC as parseStringFilterSet,Hr as parseTags,Rp as parseTestRunMeasurements,wA as parseType,aC as parseTypeFilterSet,Us as parseUnknownAuthorHistoryEventCoordinates,ny as partitionDecisionEntries,lT as patchPathToChangedField,Ye as pathExists,xl as pauseTask,Rs as persistDurableGraphResult,VT as persistSelectedItemFormat,KC as planCompletedAtBackfill,Ne as planProfileApplication,ZR as planRelationshipEventBackfill,ks as planRelationshipRemediation,ea as planSchemaEvolutionMigration,Gs as planUnknownAuthorHistoryAcknowledgment,Fd as planWorkspaceSnapshotRestore,dO as preflightExtension,rn as prepareSimilarityText,eT as printError,Qh as printResult,nl as profile,sl as profileApply,al as profileLint,ol as profileList,il as profileShow,h_ as projectAfterCommandItemSnapshot,lc as projectContextFocusRows,Sp as projectFleetAttributionAnalytics,LA as projectHistoryProvenance,Cp as projectProvenanceCoverageAnalytics,Ua as projectValidateCounts,fE as promoteAssuranceAssertion,CR as pruneCompileCacheGenerations,nE as putAssuranceDeclaration,oE as putAssuranceDeclarationBundle,qT as queryItemMetadataIndex,JT as queryLinkedFileMetadataIndex,ZT as querySimilarItemMetadataIndex,bp as queryTestRunMeasurementsBelow,Bs as quoteCommandArg,Hs as quoteWindowsCommandArg,$S as rankCommandPaths,Ka as readAnnotationEntries,zt as readAuthorEnvironment,jp as readBooleanOption,GC as readContextUsageAffinity,$p as readCsvListOption,ca as readExtensionMigrationState,qe as readFileIfExists,mn as readFirstStringFromCommanderOptions,_n as readFirstValueFromCommanderOptions,gp as readHistoryAnalyticsWindow,V_ as readHistoryEntries,up as readImprovementLedger,tg as readItemMetadataDerivedIndexState,Wr as readLocatedItem,mh as readOutputBudgetCollections,Ph as readOutputIncludeModeOptions,fh as readOutputRowCollections,lh as readOutputRowPaths,Rh as readOutputSessionRemainingTokens,me as readPmPackageManifest,Kl as readRequiredString,Br as readSettings,WT as readSettingsWithMetadata,hn as readStringArrayFromCommanderOptions,Up as readStringOption,DS as readThrownExitCode,Sg as readVectorizationStatusLedger,OA as readWorkspaceContextIntentContracts,WC as readWorkspaceContextSignals,qC as readWorkspaceMemory,gt as reconcileExtensionCapabilityUsage,Gr as reconcileWorkspaceJsonHistory,__ as recordAfterCommandAffectedItem,sE as recordAssuranceVerdict,sc as recordClaimSemanticAttribution,LC as recordContextUsageServing,MC as recordContextUsageTouch,DC as recordContextUsageTouches,cc as recordFocusSemanticAttribution,pp as recordImprovementObservation,ac as recordReleaseSemanticAttribution,rg as refreshItemMetadataDerivedIndex,qs as refreshMergeAttributeFenceIfInstalled,Rg as refreshSearchArtifactsForMutation,$t as registerHarnessSignalDescriptors,W_ as registerOutputMaterialFieldGroups,Cl as release,iE as removeAssuranceDeclaration,Ze as removeFileIfExists,ka as renameArtifactsResultKey,rc as renderCalendarMarkdown,nc as renderCalendarToon,Rc as renderContextMarkdown,sa as renderExtensionDescribeMarkdown,oa as renderExtensionSurfaceMarkdown,pu as renderGuideMarkdown,LS as renderMissingOptionRetry,oy as renderNextMarkdown,Vs as renderPmCommand,Qt as renderPmCommandAliasMigrationHint,dp as renderPmCommandVisibilityMarkdown,MT as renderRowsAsCsv,DT as renderRowsAsTable,Xg as replayHistoryToTarget,aT as replayToCanonicalItemDocument,sT as replayToItemDocument,ay as requireTerminalReason,cy as requireTerminalReasonWithRecovery,u_ as resetActiveExtensionRuntimeState,es as resetWorkspaceGraphCache,Dt as resolveAgentSessionContextFromSignals,Qa as resolveAnnotationIndex,qa as resolveAnnotationInput,B_ as resolveAuthor,Yt as resolveAuthorIdentity,hT as resolveBodyFileContent,lf as resolveBuiltinCorpusShape,tc as resolveCalendarOutputFormat,_S as resolveCanonicalPmErrorCodeContract,Vm as resolveCanonicalRelationshipKind,H_ as resolveClaimPrincipal,jm as resolveCommandOptionPolicyState,ER as resolveCompileCacheGeneration,zC as resolveCompletionTimestamp,Lm as resolveConfiguredPmPackageRoot,pC as resolveContentFieldFilters,Wh as resolveContextIntentContract,fc as resolveContextOutputFormat,mc as resolveContextTokenBudget,Ey as resolveCreateExplicitEmptyFlag,cg as resolveEmbeddingProviders,la as resolveExtensionInstallSourceIdentity,aa as resolveExtensionMigrationStatePath,Zm as resolveExtensionRoots,Om as resolveFlagValueKind,cu as resolveGuideOutputFormat,lp as resolveHistoryEpisodeGroupIdentity,vA as resolveHistoryProvenanceDimensions,qg as resolveHistorySubject,zg as resolveHistoryTarget,My as resolveHybridSemanticWeight,dt as resolveImplicitPmRoot,Am as resolveIsoOrRelative,rC as resolveItemBlockers,zS as resolveItemMutationDocument,ct as resolveItemTypeRegistry,w_ as resolveItemTypesFilePath,Lp as resolveLinkedTestFailureExitCode,Ws as resolveMergeInstallContext,dC as resolveMissingMetadataFilters,PS as resolveMissingOptionPlaceholder,J_ as resolveModePairedOutputOmissionReceipt,ty as resolveNextOutputFormat,eh as resolveOutputOmissionReceipt,Pm as resolvePmCliVersion,Zt as resolvePmCommandAlias,_y as resolvePmCommandExitContract,Rr as resolvePmCommandOutputBudget,CS as resolvePmCommandOutputEnvelope,np as resolvePmCommandVisibilityTier,hS as resolvePmErrorCodeContract,vm as resolvePmPackageRootFromModule,V as resolvePmRoot,Oi as resolvePmToolCustomFieldCollision,kT as resolvePriority,ye as resolveProfile,Xs as resolveProjectMergeTypeFolders,ch as resolveQueryCursorStart,Dh as resolveReadOutputDimensions,jh as resolveReadOutputEncoding,kh as resolveReadOutputSurface,Q_ as resolveReadRowContract,vS as resolveRecoveryCommandName,I_ as resolveRegisteredSearchProvider,N_ as resolveRegisteredVectorStoreAdapter,St as resolveRuntimeFieldRegistry,yt as resolveRuntimeStatusRegistry,dg as resolveSearchCorpusFields,Py as resolveSearchMaxResults,vy as resolveSearchPage,Ly as resolveSearchScoreThreshold,Dy as resolveSearchTuning,ug as resolveSemanticCorpusCharacterLimit,ic as resolveSemanticLineageIds,KT as resolveSettingsWithSemanticRuntimeDefaults,bE as resolveSourceContextWritePolicy,Fp as resolveStartTaskInProgressStatus,Ci as resolveSubcommandFlagContractsForCommand,fm as resolveTelemetryErrorCategory,sy as resolveTerminalReason,Um as resolveTypeDefinition,Fm as resolveTypeName,LT as resolveTypeSynonym,$T as resolveTypeWorkflows,Fs as resolveUnknownAuthorAcknowledgmentSelector,mg as resolveVectorStores,zi as resolveWorkspaceRelationshipKindRegistry,Ol as restore,Sm as restoreCheckpointItems,Fr as restoreWorkspaceJsonFromHistory,jd as restoreWorkspaceSnapshot,Ud as restoreWorkspaceSnapshotWithRecovery,Yl as runAction,A_ as runActiveBeforeMutationHooks,C_ as runActiveCommandHandler,E_ as runActiveOnIndexHooks,Ct as runActiveOnReadHooks,Et as runActiveOnWriteHooks,y_ as runActiveParserOverride,S_ as runActivePreflightOverride,O_ as runActiveServiceOverride,Vi as runActivity,Jm as runAfterCommandHooks,Ba as runAggregate,Za as runAnnotationCommand,Va as runAppend,qE as runAssuranceAction,JE as runAssuranceDispatch,qm as runBeforeCommandHooks,oc as runCalendar,wc as runClaim,kc as runClaimNext,Lc as runClose,Dc as runCloseMany,Gc as runComments,uu as runCompletion,hd as runConfig,Te as runContext,wC as runContextEvaluationCorpus,IC as runContextEvaluationScenario,ud as runCopy,od as runCreate,ld as runDelete,ts as runDeps,va as runDocs,NS as runDuplicates,wd as runEval,vd as runEvent,fa as runExtension,ua as runExtensionMigrateAction,pa as runExtensionMigrations,Ma as runFiles,Ga as runFilesDiscover,Da as runFilesLookup,yp as runFleetAttributionAnalytics,fd as runFocus,_d as runGc,md as runGet,Ps as runGraph,du as runGuide,ma as runHealth,gy as runHistory,aS as runHistoryCompact,pS as runHistoryCompactBulk,Jg as runHistoryRedact,Yy as runHistoryRepair,Jy as runHistoryRepairAll,Sd as runInit,Ed as runInitAgentGuidance,Fc as runLearnings,wa as runLinkedArtifacts,Mp as runLinkedTests,Ha as runList,kd as runMeet,Ky as runMergeDriver,Js as runMergeInstall,FE as runMergeReceiptReport,Zy as runMergeReconcile,Ic as runNext,Uc as runNotes,pd as runPlan,Jd as runProfileApply,qd as runProfileLint,Xd as runProfileList,Yd as runProfileShow,Ep as runProvenanceCoverageAnalytics,lO as runRegisteredCommandForTest,TO as runRegisteredCommandOverrideForTest,OO as runRegisteredExporterForTest,mO as runRegisteredHookForTest,SO as runRegisteredImporterForTest,yO as runRegisteredMigrationForTest,fO as runRegisteredMutationGuardForTest,_O as runRegisteredParserOverrideForTest,hO as runRegisteredPreflightOverrideForTest,gO as runRegisteredRendererOverrideForTest,EO as runRegisteredSearchProviderForTest,AO as runRegisteredServiceOverrideForTest,CO as runRegisteredVectorStoreAdapterForTest,we as runReindex,vc as runRelease,Pd as runRemind,Mc as runRestore,ta as runSchemaEvolutionMigration,Id as runSearch,_f as runSearchRefreshWorkerEntrypoint,lu as runStartBackgroundRun,Ip as runStats,wp as runTelemetry,Wd as runTemplatesList,Vd as runTemplatesSave,zd as runTemplatesShow,Dp as runTest,Gp as runTestAll,fu as runTestRunsList,_u as runTestRunsLogs,Tu as runTestRunsResume,mu as runTestRunsStatus,hu as runTestRunsStop,gu as runTestRunsWorker,id as runUpdate,sd as runUpdateMany,ge as runUpgrade,$a as runValidate,Xl as runWithActiveExtensions,Gt as runWithAgentSessionContext,Bh as runWithContextIntentContracts,xA as runWithDiscoveredContextIntentContracts,Ht as runWithHarnessDetectionSignals,Bt as runWithWorkspaceHarnessSignalDescriptors,Ge as runWithWorkspaceRecipe,Iy as runWorkspaceTransactionGc,ws as saveGraphAuditBaseline,EE as scanExtensionHostVersions,Ds as scanHistoryAuthorAttribution,Nt as scanItemFormatVersions,Xr as scanMutationSecrets,LE as scanProvenanceResolverHealth,an as scanStaleInProgressItems,UE as scanStorageIntegrity,ju as schema,Ku as schemaAddField,Wu as schemaAddStatus,Bu as schemaAddType,Ju as schemaApplyPreset,Zu as schemaInferTypes,$u as schemaList,Yu as schemaListFields,tl as schemaRemapStatus,Xu as schemaRemoveField,zu as schemaRemoveStatus,Vu as schemaRemoveType,el as schemaRenameField,Qu as schemaRenameType,Hu as schemaShow,qu as schemaShowField,rl as schemaShowStatus,jS as scoreCommandPathMatch,OC as scoreContextCandidates,RC as scoreContextCandidatesWithActiveExtensions,nn as scoreItemSimilarity,on as scorePreparedItemSimilarity,yu as search,QC as searchWorkspaceMemory,ey as searchWorkspaceMemoryReadResult,rh as selectCursorSemanticOptions,ou as selectImportAuthor,ZC as selectWorkspaceMemory,JC as selectWorkspaceMemoryRollups,pc as semanticAttributionAffinity,kg as sentryCaptureCliError,wg as sentryFinishCommandSpan,Pg as sentryFlush,vg as sentryLogCliUsageError,Ig as sentrySetCommandContext,Ng as sentryStartCommandSpan,Pt as serializeItemDocument,HS as serializeNdjsonRows,BS as serializeNdjsonStream,l_ as setActiveCommandContext,f_ as setActiveCommandResult,i_ as setActiveExtensionCommands,o_ as setActiveExtensionHooks,s_ as setActiveExtensionParsers,a_ as setActiveExtensionPreflight,p_ as setActiveExtensionRegistrations,d_ as setActiveExtensionRenderers,c_ as setActiveExtensionServices,j_ as setFocusedItem,jg as shouldCompletePlanOnClose,Is as shouldPersistDurableGraphCache,YT as shouldRunSearchRefreshInForeground,$c as similarityAdvisoryWarnings,uh as sliceReadOutputRowCollection,xa as sortLinkedArtifacts,CT as splitAcceptanceCriteria,Gg as splitCommaList,vt as splitFrontMatter,Gh as stabilizeReadOutputReceiptEstimates,L as stableStringify,Ym as stableValueEquals,bl as startTask,Hg as startTelemetryCommand,bu as stats,v_ as statusIsTerminal,Zl as stripGlobalBootstrapTokens,tS as subscribeMutationEventBatches,rS as subscribeMutationEvents,mp as summarizeAgentModelProvenance,_p as summarizeAgentProvenance,NC as summarizeContextEvaluationReports,kp as summarizeContextPreflight,GA as summarizeHistoryProvenance,Cd as summarizeInitResult,ME as summarizeMergeReceipt,Cy as supportsCreateExplicitEmpty,wS as supportsItemIdAlias,wm as suppressHostOutput,$ as syncRelationshipGraphAdapter,sO as synthesizeExtensionManifest,yi as toCompletionFlagString,Sc as toContextFocusItem,Ec as toContextPackingSummary,Cc as toContextRankingSummary,_m as toErrorMessage,Bp as toEstimatedMinutesValue,fA as toExtensionFlagDefinitions,Xp as toImportBoolean,Zp as toImportConfidence,Kp as toImportInteger,ru as toImportLinkedDocs,tu as toImportLinkedFiles,nu as toImportLinkedTests,eu as toImportLogEntries,Qp as toImportNormalizedEnum,Jp as toImportNumberMap,Vp as toImportPriority,zp as toImportStatus,Yp as toImportStringList,qp as toImportStringMap,Wp as toImportTags,F_ as toItemRecord,Hp as toNonEmptyImportString,mm as toNonEmptyStringOrUndefined,cT as toReplayDocument,tn as tokenizeSimilarityText,iS as translateHostEnvironmentFault,Tl as update,Vl as upgrade,cl as validate,XA as validateAssertionDefinition,qA as validateAssuranceDocument,YA as validateGateDefinition,XS as validateItemMutationRows,Na as validateLinkedPaths,KA as validateMeasurementDefinition,AT as validateMissingParentReference,vh as validateReadOutputOptions,vT as validateSprintOrReleaseValue,$m as validateTypeOptions,uT as verifyHistoryChain,pT as verifyHistoryChainWithVersion,Zg as verifyHistoryEntries,IS as verifyPmCliGrammar,ob as verifyPmRecoveryReferences,nb as verifyPmRefusalReachability,jn as withFlagAliasMetadata,sS as withHostEnvironmentBoundary,Qi as workspaceGraphCache,Ja as wrapOwnershipConflict,US as wrapThrownErrorForSentry,Kt as writeAuthorEnvironment,Je as writeFileAtomic,Cm as writeMutationCheckpoint,zT as writeSettings,Zh as writeStdout,Og as writeVectorizationStatusLedger,Dr as writeWorkspaceJsonWithHistory};
|
|
5
5
|
//# sourceMappingURL=sdk.js.map
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
*/
|
|
25
25
|
/** Search/provider/vector-store leaves. Order is the display order in `pm config list` and in error hints. */
|
|
26
26
|
|
|
27
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
27
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="be95f220-5f66-5e8c-8447-996696d02e43")}catch(e){}}();
|
|
28
28
|
export const NESTED_SETTING_DESCRIPTORS = [
|
|
29
29
|
{
|
|
30
30
|
key: "search_provider",
|
|
@@ -255,6 +255,12 @@ export const NESTED_SETTING_DESCRIPTORS = [
|
|
|
255
255
|
choices: ["toon", "json"],
|
|
256
256
|
summary: "Default output format for commands that support it: toon or json.",
|
|
257
257
|
},
|
|
258
|
+
{
|
|
259
|
+
key: "ux_deprecation_hints",
|
|
260
|
+
path: "ux.deprecation_hints",
|
|
261
|
+
kind: "boolean",
|
|
262
|
+
summary: "Emit one stderr migration hint for deprecated command aliases.",
|
|
263
|
+
},
|
|
258
264
|
{
|
|
259
265
|
key: "locks_ttl_seconds",
|
|
260
266
|
path: "locks.ttl_seconds",
|
|
@@ -520,4 +526,4 @@ export function writeNestedSettingValue(settings, descriptor, value) {
|
|
|
520
526
|
return true;
|
|
521
527
|
}
|
|
522
528
|
//# sourceMappingURL=nested-settings.js.map
|
|
523
|
-
//# debugId=
|
|
529
|
+
//# debugId=be95f220-5f66-5e8c-8447-996696d02e43
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module core/extensions/exporter-output-contract
|
|
3
|
+
*
|
|
4
|
+
* Validates SDK-declared exporter artifact channels independently from extension activation.
|
|
5
|
+
*/
|
|
6
|
+
import type { CommandHandlerContext, ExporterRegistrationOptions, ImportExportContext, RegisteredExporterArtifactOutputContract } from "./extension-types.js";
|
|
7
|
+
/** Validates and normalizes the public artifact-channel metadata for one exporter registration. */
|
|
8
|
+
export declare function normalizeExporterArtifactOutput(value: unknown): RegisteredExporterArtifactOutputContract;
|
|
9
|
+
/** Enforces importer/exporter channel ownership and applies the stdout-specific derived description. */
|
|
10
|
+
export declare function resolveImportExportArtifactOutput(method: "registerImporter" | "registerExporter", resolvedOptions: ExporterRegistrationOptions, descriptionWasDeclared: boolean): RegisteredExporterArtifactOutputContract | undefined;
|
|
11
|
+
/** Snapshots a host command invocation into the stable importer/exporter context contract. */
|
|
12
|
+
export declare function buildImportExportContext(context: CommandHandlerContext, registration: string, action: "import" | "export"): ImportExportContext;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="057f439e-ac5c-5715-9fd0-4410e003d481")}catch(e){}}();
|
|
3
|
+
import { cloneContextSnapshot } from "./extension-runtime-helpers.js";
|
|
4
|
+
import { asRegistrationRecord, assertOptionalStringField, } from "./registration-validation.js";
|
|
5
|
+
/** Validates and normalizes the public artifact-channel metadata for one exporter registration. */
|
|
6
|
+
export function normalizeExporterArtifactOutput(value) {
|
|
7
|
+
const candidate = asRegistrationRecord("registerExporter options.output", value);
|
|
8
|
+
const allowedKeys = new Set(["channel", "receipt", "media_type"]);
|
|
9
|
+
for (const key of Object.keys(candidate)) {
|
|
10
|
+
if (!allowedKeys.has(key)) {
|
|
11
|
+
throw new TypeError(`registerExporter options.output contains unsupported field ${key}`);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
if (candidate.channel !== "stdout" && candidate.channel !== "file") {
|
|
15
|
+
throw new TypeError("registerExporter options.output.channel must be stdout|file");
|
|
16
|
+
}
|
|
17
|
+
if (candidate.receipt !== undefined &&
|
|
18
|
+
candidate.receipt !== "suppress" &&
|
|
19
|
+
candidate.receipt !== "render") {
|
|
20
|
+
throw new TypeError("registerExporter options.output.receipt must be suppress|render");
|
|
21
|
+
}
|
|
22
|
+
if (candidate.channel === "stdout" && candidate.receipt === "render") {
|
|
23
|
+
throw new TypeError("registerExporter stdout artifacts cannot render a host receipt");
|
|
24
|
+
}
|
|
25
|
+
assertOptionalStringField("registerExporter options.output.media_type", candidate.media_type);
|
|
26
|
+
return {
|
|
27
|
+
channel: candidate.channel,
|
|
28
|
+
receipt: candidate.receipt ??
|
|
29
|
+
(candidate.channel === "stdout" ? "suppress" : "render"),
|
|
30
|
+
...(typeof candidate.media_type === "string"
|
|
31
|
+
? { media_type: candidate.media_type }
|
|
32
|
+
: {}),
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
/** Enforces importer/exporter channel ownership and applies the stdout-specific derived description. */
|
|
36
|
+
export function resolveImportExportArtifactOutput(method, resolvedOptions, descriptionWasDeclared) {
|
|
37
|
+
if (method === "registerImporter" && resolvedOptions.output !== undefined) {
|
|
38
|
+
throw new TypeError("registerImporter options.output is exporter-only");
|
|
39
|
+
}
|
|
40
|
+
if (method !== "registerExporter" || resolvedOptions.output === undefined) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
const output = normalizeExporterArtifactOutput(resolvedOptions.output);
|
|
44
|
+
if (!descriptionWasDeclared && output.channel === "stdout") {
|
|
45
|
+
resolvedOptions.description =
|
|
46
|
+
"Export items with the registered extension adapter. Artifact bytes are written exclusively to stdout and the host receipt is suppressed by default.";
|
|
47
|
+
}
|
|
48
|
+
return output;
|
|
49
|
+
}
|
|
50
|
+
/** Snapshots a host command invocation into the stable importer/exporter context contract. */
|
|
51
|
+
export function buildImportExportContext(context, registration, action) {
|
|
52
|
+
return {
|
|
53
|
+
registration,
|
|
54
|
+
action,
|
|
55
|
+
command: context.command,
|
|
56
|
+
args: cloneContextSnapshot(context.args),
|
|
57
|
+
options: cloneContextSnapshot(context.options),
|
|
58
|
+
global: cloneContextSnapshot(context.global),
|
|
59
|
+
pm_root: context.pm_root,
|
|
60
|
+
source_workspace_root: context.source_workspace_root,
|
|
61
|
+
repo_root: context.repo_root,
|
|
62
|
+
pm_root_rel: context.pm_root_rel,
|
|
63
|
+
...(context.sdk === undefined ? {} : { sdk: context.sdk }),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=exporter-output-contract.js.map
|
|
67
|
+
//# debugId=057f439e-ac5c-5715-9fd0-4410e003d481
|