@unbrained/pm-cli 2026.8.9 → 2026.8.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +2 -2
- package/CHANGELOG.md +40 -0
- package/dist/cli/commander-usage.js +17 -12
- package/dist/cli/help-json-payload.js +51 -16
- package/dist/cli/main.js +7 -6
- package/dist/cli-bundle/bundle-manifest.json +165 -165
- package/dist/cli-bundle/chunks/chunk-2QYH4QMI.js +30 -0
- package/dist/cli-bundle/chunks/{chunk-YC3UF2IO.js → chunk-EBO7OUUE.js} +57 -57
- package/dist/cli-bundle/chunks/{chunk-GMX5YOI3.js → chunk-ETML5C6H.js} +48 -48
- package/dist/cli-bundle/chunks/chunk-JUDU4RO4.js +194 -0
- package/dist/cli-bundle/chunks/{chunk-PYO5GZU6.js → chunk-JZSNADRR.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-EF43KODO.js → chunk-MENWVGJW.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-5JO6R4BS.js → chunk-S4EITGLA.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-2DTCZXSD.js → chunk-TIGKWVLA.js} +9 -9
- package/dist/cli-bundle/chunks/{chunk-RJC7TPF4.js → chunk-TRWXF476.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-TSLDTJLQ.js +2 -0
- package/dist/cli-bundle/chunks/{register-list-query-BUE7PTCU.js → register-list-query-OJ6ZXKV4.js} +2 -2
- package/dist/cli-bundle/chunks/{register-mutation-FC3XLVIK.js → register-mutation-DKI7QC7O.js} +2 -2
- package/dist/cli-bundle/chunks/register-operations-P5OGMT6I.js +2 -0
- package/dist/cli-bundle/chunks/{register-setup-UQDTNTLJ.js → register-setup-S3KT2LTH.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-6DO4YQWZ.js → chunk-2COZ67XT.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-2EXI2DKR.js +4 -0
- package/dist/cli-bundle/focused-chunks/{chunk-KNEHLPBF.js → chunk-34SX654S.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-36FTZ2NT.js +2 -0
- package/dist/cli-bundle/focused-chunks/chunk-3CQECMKR.js +16 -0
- package/dist/cli-bundle/focused-chunks/chunk-75774JWP.js +6 -0
- package/dist/cli-bundle/focused-chunks/{chunk-MRWVJ3ZG.js → chunk-7UN6BHHO.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-VRXJSGIT.js → chunk-CHIBMEZR.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-DZGAHZZV.js +3 -0
- package/dist/cli-bundle/focused-chunks/chunk-FF4MNAYB.js +153 -0
- package/dist/cli-bundle/focused-chunks/{chunk-ZG54B4XG.js → chunk-GHTN2ILR.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-I4YM2I7S.js +2 -0
- package/dist/cli-bundle/focused-chunks/chunk-IMDTEN7K.js +2 -0
- package/dist/cli-bundle/focused-chunks/chunk-IW43E4XL.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-3WVHTUAW.js → chunk-JMVA4HKR.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-C3GCHDSQ.js → chunk-KR5RVXLQ.js} +31 -31
- package/dist/cli-bundle/focused-chunks/chunk-KSNJG4KI.js +16 -0
- package/dist/cli-bundle/focused-chunks/{chunk-73FIJONU.js → chunk-M6RPIXKC.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-MXYSIQ56.js +18 -0
- package/dist/cli-bundle/focused-chunks/chunk-RIIN5V4N.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-U46GQJNY.js → chunk-RKWSCYYN.js} +2 -2
- package/dist/cli-bundle/main.js +13 -13
- 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 +38 -38
- 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 +1 -1
- 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 +2 -2
- package/dist/core/diagnostics/remediation.js +9 -9
- package/dist/core/fs/fs-utils.d.ts +10 -0
- package/dist/core/fs/fs-utils.js +16 -4
- package/dist/core/item/item-format.js +3 -32
- package/dist/core/schema/fields-file.d.ts +1 -2
- package/dist/core/schema/fields-file.js +4 -11
- package/dist/core/schema/runtime-schema.js +3 -10
- package/dist/core/schema/status-defs-file.d.ts +1 -2
- package/dist/core/schema/status-defs-file.js +4 -32
- package/dist/core/schema/status-token.d.ts +2 -0
- package/dist/core/schema/status-token.js +32 -0
- package/dist/core/schema/type-workflows.d.ts +1 -2
- package/dist/core/schema/type-workflows.js +4 -11
- package/dist/core/shared/author.d.ts +1 -1
- package/dist/core/shared/author.js +21 -8
- package/dist/core/shared/errors.d.ts +4 -0
- package/dist/core/shared/errors.js +2 -2
- package/dist/core/shared/text-normalization.d.ts +1 -1
- package/dist/core/shared/text-normalization.js +2 -2
- package/dist/sdk/agent/command-recovery.d.ts +4 -0
- package/dist/sdk/agent/command-recovery.js +52 -0
- package/dist/sdk/agent/command-suggestions.d.ts +4 -0
- package/dist/sdk/agent/command-suggestions.js +67 -0
- package/dist/sdk/agent/create-option-policy.d.ts +12 -0
- package/dist/sdk/agent/create-option-policy.js +32 -0
- package/dist/sdk/agent/item-addressing.d.ts +19 -0
- package/dist/sdk/agent/item-addressing.js +208 -0
- package/dist/sdk/cli-bootstrap.d.ts +1 -1
- package/dist/sdk/cli-bootstrap.js +20 -5
- package/dist/sdk/cli-contracts/commander-mutation-options.js +16 -4
- package/dist/sdk/cli-contracts/flag-contracts.js +62 -21
- package/dist/sdk/cli-contracts/registration-helpers.js +10 -2
- package/dist/sdk/cli-contracts/runtime-contracts.js +5 -3
- package/dist/sdk/cli-contracts/tool-option-contracts.d.ts +6 -0
- package/dist/sdk/cli-contracts/tool-option-contracts.js +4 -2
- package/dist/sdk/cli-contracts/tool-parameter-tables.js +19 -4
- package/dist/sdk/cli-contracts/tool-schema.js +17 -4
- package/dist/sdk/context-intent-runtime.js +8 -5
- package/dist/sdk/context-signal-store.d.ts +34 -0
- package/dist/sdk/context-signal-store.js +24 -2
- package/dist/sdk/dependency-flag-validation.d.ts +15 -1
- package/dist/sdk/dependency-flag-validation.js +54 -2
- package/dist/sdk/generated-error-code-catalog.js +74 -2
- package/dist/sdk/governance/health.js +14 -7
- package/dist/sdk/governance/provenance-health.d.ts +13 -0
- package/dist/sdk/governance/provenance-health.js +63 -17
- package/dist/sdk/governance/validate-item-reader.d.ts +13 -0
- package/dist/sdk/governance/validate-item-reader.js +18 -0
- package/dist/sdk/governance/validate.d.ts +2 -2
- package/dist/sdk/governance/validate.js +15 -6
- package/dist/sdk/index.d.ts +4 -0
- package/dist/sdk/index.js +6 -2
- package/dist/sdk/lifecycle/close.js +17 -14
- package/dist/sdk/lifecycle/create.d.ts +2 -0
- package/dist/sdk/lifecycle/create.js +62 -9
- package/dist/sdk/lifecycle/update-many.js +39 -27
- package/dist/sdk/lifecycle/update.d.ts +6 -1
- package/dist/sdk/lifecycle/update.js +47 -10
- package/dist/sdk/merge/index.d.ts +1 -1
- package/dist/sdk/merge/index.js +3 -3
- package/dist/sdk/merge/install.d.ts +4 -0
- package/dist/sdk/merge/install.js +28 -16
- package/dist/sdk/merge/receipts.d.ts +3 -0
- package/dist/sdk/merge/receipts.js +81 -17
- package/dist/sdk/output-projection.js +24 -4
- package/dist/sdk/query/context.d.ts +2 -0
- package/dist/sdk/query/context.js +7 -4
- package/dist/sdk/query/light-metadata.d.ts +3 -0
- package/dist/sdk/query/light-metadata.js +19 -0
- package/dist/sdk/runtime.d.ts +4 -1
- package/dist/sdk/runtime.js +8 -3
- package/dist/sdk/schema-migration.js +7 -9
- package/dist/sdk/similarity-scoring.d.ts +1 -2
- package/dist/sdk/similarity-scoring.js +4 -16
- package/dist/sdk/workspace-snapshot.d.ts +4 -0
- package/dist/sdk/workspace-snapshot.js +24 -11
- package/docs/AGENT_GUIDE.md +3 -1
- package/docs/COMMANDS.md +8 -5
- package/docs/MERGE_SAFETY.md +7 -5
- package/docs/README.md +2 -5
- package/docs/READ_OUTPUT_CONTRACTS.md +2 -2
- package/docs/SDK.md +33 -8
- package/docs/SDK_AGENT_SESSION_CONTEXT.md +3 -2
- package/docs/SDK_CONTEXT.md +97 -0
- package/docs/SDK_CONTEXT_INTEGRITY.md +18 -3
- package/docs/agent-task-token-baseline.json +2 -2
- package/marketplace.json +2 -2
- package/package.json +5 -4
- 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 +194 -26
- package/dist/cli-bundle/chunks/chunk-5KN4DZYV.js +0 -194
- package/dist/cli-bundle/chunks/chunk-HUV2Z7IS.js +0 -28
- package/dist/cli-bundle/chunks/chunk-MHBVCUF2.js +0 -2
- package/dist/cli-bundle/chunks/register-operations-YH2WAOXU.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-2VVP5RAA.js +0 -153
- package/dist/cli-bundle/focused-chunks/chunk-3GSFUDAI.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-4H6MVCK3.js +0 -16
- package/dist/cli-bundle/focused-chunks/chunk-54TZJ4BM.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-5NK5TJ5D.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-JGRSQZJT.js +0 -18
- package/dist/cli-bundle/focused-chunks/chunk-NL57J7BZ.js +0 -4
- package/dist/cli-bundle/focused-chunks/chunk-P6BBIQRG.js +0 -6
- package/dist/cli-bundle/focused-chunks/chunk-PZAGVQNN.js +0 -3
- package/dist/cli-bundle/focused-chunks/chunk-QDAO3XEK.js +0 -14
- package/dist/cli-bundle/focused-chunks/chunk-T4IGQCSY.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-XC2ZW3CJ.js +0 -2
package/dist/cli-bundle/sdk.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as eE,b as tE,c as rE,d as nE,e as oE,f as gl,g as Al,h as Cl,i as El,j as yl,k as Sl,l as Ol,m as Rl,n as Il,o as Nl,p as xl,q as bl,r as Pl}from"./chunks/chunk-MHBVCUF2.js";import{A as jE,B as VE,C as WE,D as BE,E as $E,F as zE,G as KE,H as XE,I as YE,J as qE,K as JE,L as QE,M as ZE,N as ey,O as ty,P as ry,Q as ny,R as oy,S as iy,T as sy,U as ay,V as py,W as cy,X as dy,Y as my,a as fE,b as hE,c as TE,d as gE,e as AE,f as CE,g as EE,h as yE,i as SE,j as OE,k as RE,l as IE,m as NE,n as xE,o as bE,p as PE,q as wE,r as LE,s as ME,t as kE,u as DE,v as vE,w as GE,x as FE,y as UE,z as HE}from"./chunks/chunk-RJC7TPF4.js";import{a as iE}from"./chunks/chunk-OAC5NIV4.js";import{a as sE,b as aE,c as pE,d as cE,e as dE,f as mE,g as lE,h as uE,i as _E}from"./chunks/chunk-EF43KODO.js";import{$ as Te,$a as Vd,$b as Vm,A as Cs,Aa as dd,Ab as fm,Ac as fl,B as sa,Ba as md,Bb as hm,Bc as hl,C as Pa,Ca as ld,Cb as Tm,Cc as Tl,D as wa,Da as ud,Db as gm,E as La,Ea as _d,Eb as Am,F as Ma,Fa as fd,Fb as Cm,G as ka,Ga as hd,Gb as Em,H as Da,Ha as Td,Hb as ym,I as va,Ia as gd,Ib as Sm,J as hC,Ja as Ad,Jb as Om,K as TC,Ka as Cd,Kb as Rm,L as gC,La as Ed,Lb as Im,M as AC,Ma as yd,Mb as Nm,N as CC,Na as Sd,Nb as xm,O as EC,Oa as Od,Ob as bm,P as yC,Pa as Rd,Pb as Pm,Q as SC,Qa as Id,Qb as wm,R as OC,Ra as Nd,Rb as Lm,S as RC,Sa as xd,Sb as Mm,T as IC,Ta as bd,Tb as km,U as NC,Ua as Pd,Ub as Dm,V as xC,Va as wd,Vb as vm,W as le,Wa as Ld,Wb as Gm,X as ue,Xa as Md,Xb as Fm,Y as _e,Ya as Se,Yb as Um,Z as fe,Za as P,Zb as Hm,_ as he,_a as jd,_b as jm,a as hi,aa as ge,ab as Wd,ac as Wm,b as Ti,ba as Ae,bb as Bd,bc as Bm,c as gi,ca as Ce,cb as $d,cc as $m,d as MT,da as Ee,db as zd,dc as zm,e as kT,ea as ye,eb as Kd,ec as Km,f as Ci,fa as Wp,fb as Xd,fc as Xm,g as jT,ga as Bp,gb as Yd,gc as Ym,h as VT,ha as $p,hb as qd,hc as qm,i as WT,ia as zp,ib as Jd,ic as Jm,j as BT,ja as Kp,jb as Qd,jc as Qm,k as $T,ka as Xp,kb as Zd,kc as Zm,l as zT,la as Yp,lb as em,lc as el,m as KT,ma as qp,mb as tm,mc as tl,n as XT,na as Jp,nb as rm,nc as rl,o as Ri,oa as Qp,ob as nm,oc as nl,p as YT,pa as Zp,pb as om,pc as ol,q as qT,qa as ec,qb as im,qc as il,r as JT,ra as tc,rb as sm,rc as sl,s as QT,sa as rc,sb as am,sc as al,t as ZT,ta as DC,tb as pm,tc as pl,u as eg,ua as vC,ub as cm,uc as cl,v as bi,va as GC,vb as dm,vc as dl,w as hs,wa as FC,wb as mm,wc as ml,x as Ts,xa as ad,xb as lm,xc as ll,y as gs,ya as pd,yb as um,yc as ul,z as As,za as cd,zb as _m,zc as _l}from"./chunks/chunk-YC3UF2IO.js";import{a as me,f as Tp,g as gp}from"./chunks/chunk-5JO6R4BS.js";import{$ as yc,A as lC,B as uC,C as _C,D as fC,E as bp,F as Pp,G as wp,H as nc,I as oc,J as ic,K as sc,L as UC,M as ac,N as pc,O as cc,P as dc,Q as mc,R as lc,S as uc,T as _c,U as fc,V as hc,W as Tc,X as gc,Y as Ac,Z as Cc,_ as Ec,a as DT,aa as Sc,b as vT,ba as Oc,c as GT,d as FT,f as xi,g as Lg,h as PA,i as BA,j as $A,k as zA,l as KA,m as XA,n as Ga,o as YA,p as Rp,q as Ip,r as Np,s as xp,t as iC,u as sC,v as aC,w as pC,x as cC,y as dC,z as mC}from"./chunks/chunk-PYO5GZU6.js";import{$a as dp,$b as Bc,A as xA,Aa as $a,Ab as bc,B as bA,Ba as ZA,Bb as Pc,C as Hs,Ca as eC,Cb as wc,D as js,Db as Lc,E as vA,Ea as tC,Eb as VC,F as Vs,Fb as WC,G as Ws,Ga as rC,Gb as BC,H as Bs,Ha as nC,Hb as $C,I as $s,Ia as za,Ib as zC,J as zs,Ja as Ka,Jb as KC,K as Ks,Ka as oC,Kb as XC,L as Xs,La as Xa,Lb as YC,M as Ys,Ma as Ya,Mb as qC,N as qs,Na as qa,Nb as JC,O as Js,Oa as Ja,Ob as QC,P as Qs,Pa as Qa,Q as Zs,Qa as Za,Qb as Mc,R as ea,Ra as ep,Rb as kc,S as ta,Sa as tp,Sb as Dc,T as ra,Ta as rp,Tb as vc,U as na,Ua as np,Ub as Gc,V as oa,Va as op,Vb as Fc,W as ia,Wa as ip,Wb as Uc,X as qA,Xa as sp,Xb as Hc,Y as Fa,Ya as ap,Yb as jc,Za as pp,Zb as Vc,_a as cp,_b as Wc,a as Pi,ab as mp,ac as $c,b as wi,ba as Ua,bb as lp,bc as zc,c as Li,cb as up,cc as Kc,d as Mi,db as _p,dc as Xc,e as ki,eb as fp,ec as Yc,f as Di,fb as hp,fc as qc,g as vi,gb as Lp,gc as ZC,h as Gi,hb as Mp,hc as Jc,i as Fi,ib as kp,ic as Qc,j as Ui,jb as LC,jc as Zc,k as ps,kb as MC,kc as ed,l as cs,lb as kC,lc as td,m as ds,mb as Dp,mc as rd,n as TA,nb as vp,nc as nd,o as gA,ob as Gp,oc as od,p as AA,pb as Fp,pc as id,q as CA,qb as Up,qc as sd,r as EA,rb as Hp,rc as kd,s as _s,sb as jp,sc as Dd,t as fs,ta as JA,tb as Vp,tc as vd,u as yA,ua as QA,ub as HC,uc as Gd,v as SA,va as Ha,vb as jC,vc as Fd,w as OA,wa as ja,wb as Rc,wc as Ud,x as RA,xa as Va,xb as Ic,xc as Hd,y as IA,ya as Wa,yb as Nc,z as NA,za as Ba,zb as xc}from"./chunks/chunk-HUV2Z7IS.js";import{Ca as Sa,Da as Oa,Ea as Ra,Fa as Ia,Ga as Na,Ha as xa,Ia as ba,J as fa,Ja as Ap,K as ha,Ka as Cp,L as Ta,La as Ep,M as ga,Ma as yp,Na as Sp,Oa as Op,a as UT,b as HT,c as Ei,d as yi,f as Si,g as Oi,h as ms,i as ls,j as us,l as GA,m as FA,n as UA,o as HA,p as jA,q as VA,qa as ae,r as aa,ra as pe,s as pa,sa as ce,t as ca,ta as de,u as da,ua as Aa,v as ma,w as WA,wa as Ca,x as la,xa as Ea,y as ua,ya,z as _a}from"./chunks/chunk-GMX5YOI3.js";import{$ as Hi,$a as is,A as _g,Aa as rA,Ab as Ms,B as fg,Ba as nA,Bb as ks,C as hg,Ca as oA,Cb as Ds,D as Tg,Da as iA,Db as vs,E as gg,Ea as sA,Eb as Gs,F as Ag,Fa as aA,Fb as Fs,G as Cg,Ga as pA,Gb as Us,H as Eg,Ha as cA,Ia as dA,Ib as bC,Ja as mA,Jb as PC,Ka as lA,Kb as wC,La as ie,Ma as Bi,Na as $i,Oa as zi,Pa as Ki,Q as yg,Qa as Xi,R as Sg,Ra as Yi,S as Og,Sa as qi,T as Rg,Ta as Ji,U as Ig,Ua as Qi,V as Ng,Va as Zi,W as xg,Wa as es,X as bg,Xa as ts,Y as Pg,Ya as rs,Z as wg,Za as ns,_ as Ni,_a as os,a as OT,aa as ji,ab as se,b as RT,ba as Vi,bb as ss,c as IT,ca as Wi,cb as uA,d as NT,da as Mg,db as _A,e as xT,ea as kg,eb as fA,fa as Dg,fb as as,ga as vg,gb as hA,h as bT,ha as Gg,hb as wA,i as PT,ia as Fg,ib as LA,j as Ai,ja as Ug,jb as MA,k as wT,ka as Hg,kb as kA,l as LT,la as jg,lb as DA,m as tg,ma as Vg,mb as Es,n as rg,na as Wg,nb as ys,o as ng,oa as Bg,ob as Ss,p as og,pa as $g,pb as Os,q as ig,qa as zg,qb as Rs,r as sg,ra as Kg,rb as V,s as ag,sa as Xg,t as pg,ta as Yg,tb as Is,u as cg,ua as qg,ub as Ns,v as dg,va as Jg,vb as xs,w as Ii,wa as Qg,wb as bs,x as mg,xa as Zg,xb as Ps,y as lg,ya as eA,yb as ws,z as ug,za as tA,zb as Ls}from"./chunks/chunk-2DTCZXSD.js";import{$ as Cu,$b as $u,$c as ht,$d as Y_,$e as sr,$f as th,$g as kh,$h as jr,$i as Nn,$j as xo,A as F,Aa as Su,Ad as Ft,Ae as Sf,Ag as hh,Ah as Zh,Ai as Zr,Aj as eo,Ak as ti,B as au,Ba as Ou,Bb as Gu,Bc as c_,Bd as Ut,Be as Of,Bf as Vf,Bh as eT,Bi as en,Bj as to,Bk as ri,C as U,Ca as Ru,Cb as it,Cc as d_,Cd as Ht,Ce as Rf,Cf as Wf,Cg as Th,Ch as re,Ci as tn,Cj as ro,Ck as ni,Db as st,Dc as m_,Dd as x_,De as If,Df as Bf,Dg as gh,Dh as tT,Di as rn,Dj as no,Dk as oi,E as pu,Eb as b,Ec as l_,Ed as b_,Ee as Nf,Ef as $f,Eg as Ah,Eh as rT,Ei as nn,Ej as oo,Ek as ii,F as cu,Fa as Ze,Fb as Fu,Fc as u_,Fd as P_,Fe as xf,Ff as _r,Fh as nT,Fi as on,Fj as io,Fk as si,Ga as Iu,Gc as ee,Ge as bf,Gf as fr,Gh as oT,Gi as sn,Gj as so,Gk as ai,Ha as Nu,Hb as Uu,Hc as __,He as Pf,Hf as hr,Hg as Ch,Hh as iT,Hi as an,Hj as ao,Hk as pi,I as du,Ia as xu,Ic as f_,Id as w_,Ie as jt,If as Tr,Ig as Eh,Ih as sT,Ii as pn,Ij as po,Ik as ci,Ja as bu,Jb as Hu,Jc as h_,Jd as L_,Je as Vt,Jf as gr,Jg as Rr,Jh as aT,Ji as cn,Jj as co,Jk as di,Kc as T_,Kd as M_,Ke as Wt,Kf as Ar,Kg as yh,Kh as pT,Ki as dn,Kj as mo,Kk as mi,L as mu,La as et,Lc as g_,Le as Bt,Lf as Cr,Lg as Sh,Lh as cT,Li as mn,Lj as lo,Lk as li,Ma as tt,Md as k_,Me as $t,Mf as zf,Mg as Oh,Mh as dT,Mi as ln,Mj as uo,Mk as ui,N as J,Na as H,Nd as D_,Ne as zt,Ng as Rh,Nh as mT,Ni as un,Nj as _o,Nk as _i,O as Q,Od as v_,Oe as Kt,Of as Er,Og as te,Oh as lT,Oi as _n,Oj as fo,Ok as fi,P as Be,Pd as G_,Pe as Xt,Pf as yr,Pg as Ih,Ph as br,Pi as fn,Pj as ho,Pk as oe,Q as $e,Qa as rt,Qd as F_,Qe as Yt,Qf as Sr,Qg as Nh,Qh as Pr,Qi as hn,Qj as To,R as lu,Ra as nt,Rc as A_,Rd as U_,Re as qt,Rg as xh,Rh as wr,Ri as Tn,Rj as go,Sd as H_,Se as Jt,Sf as Kf,Sg as bh,Sh as Lr,Si as gn,Sj as Ao,T as uu,Ta as ot,Tc as ut,Td as j_,Te as Qt,Tf as Xf,Th as Mr,Ti as An,Tj as Co,U as _u,Uc as C_,Ud as V_,Ue as Zt,Uf as Yf,Ug as Ph,Uh as kr,Ui as Cn,Uj as Eo,V as fu,Vc as _t,Vd as W_,Ve as er,Vf as qf,Vg as wh,Vh as Dr,Vi as En,Vj as yo,W as hu,Wb as ju,Wd as B_,We as tr,Wf as Or,Wg as Lh,Wh as vr,Wi as yn,Wj as So,X as Tu,Xb as Vu,Xc as E_,Xd as $_,Xe as rr,Xf as Jf,Xg as Mh,Xh as Gr,Xi as Sn,Xj as Oo,Y as gu,Yb as Wu,Yc as y_,Yd as z_,Ye as nr,Yf as Qf,Yg as Ir,Yh as Fr,Yi as On,Yj as Ro,Z as Au,Zc as S_,Zd as K_,Ze as or,Zf,Zg as Nr,Zh as Ur,Zi as Rn,Zj as Io,_b as Bu,_c as ft,_d as X_,_e as ir,_f as eh,_g as xr,_h as Hr,_i as In,_j as No,aa as Eu,ad as Tt,ae as q_,af as ar,ag as rh,ai as Vr,aj as xn,ak as bo,ba as yu,bc as zu,bd as gt,be as J_,bf as pr,bg as nh,bh as Dh,bi as uT,bj as bn,bk as Po,c as He,ca as ze,cb as Pu,cc as at,cd as At,ce as Q_,cf as cr,cg as oh,ch as vh,ci as _T,cj as Pn,ck as wo,d as je,da as Ke,dd as Ct,de as Z_,df as dr,dg as ih,dh as Gh,di as fT,dj as wn,dk as Lo,e as Ve,ea as Xe,ec as pt,ed as Et,ee as ef,ef as mr,eg as sh,ei as hT,ej as Ln,ek as Mo,f as We,fc as ct,fd as O_,fe as tf,ff as wf,fg as ah,fi as TT,fj as Mn,fk as ko,gd as R_,ge as rf,gf as Lf,gh as Fh,gi as gT,gj as kn,gk as Do,h as eu,hc as Ku,he as nf,hg as ph,hi as AT,hj as Dn,hk as vo,i as tu,ia as Ye,ib as wu,ic as Xu,id as yt,ie as of,if as Mf,ih as Uh,ii as CT,ij as vn,ik as Go,j as ru,jb as j,jc as Yu,jd as St,je as sf,jf as kf,jg as ch,jj as Gn,jk as Fo,ka as qe,kb as Z,kc as qu,kd as I_,ke as af,kg as dh,kj as Fn,kk as Uo,la as Je,lb as Lu,lc as Ju,ld as Ot,le as pf,lg as mh,lj as Un,lk as Ho,ma as Qe,mb as Mu,mc as Qu,md as Rt,me as cf,mf as Df,mg as lh,mh as Hh,mi as ne,mj as Hn,mk as jo,nb as ku,nc as Zu,nd as N_,ne as df,nf as vf,ng as uh,nh as jh,ni as ET,nj as jn,nk as Vo,ob as Du,oc as dt,od as It,oe as mf,of as lr,oh as Vh,oi as yT,oj as Vn,ok as Wo,pb as g,pc as e_,pd as Nt,pe as lf,pf as ur,ph as Wh,pi as ST,pj as Wn,pk as Bo,q as nu,qb as vu,qc as t_,qd as xt,qe as uf,qh as Bh,qi as Wr,qj as Bn,qk as $o,rc as r_,rd as bt,re as _f,ri as Br,rj as $n,rk as zo,sc as n_,sd as Pt,se as ff,sh as $h,si as $r,sj as zn,sk as Ko,t as ou,tc as o_,td as wt,te as hf,tf as Gf,th as zh,ti as zr,tj as Kn,tk as Xo,uc as i_,ud as Lt,ue as Tf,uf as Ff,uh as Kh,ui as Kr,uj as Xn,uk as Yo,v as iu,vc as s_,vd as Mt,ve as gf,vf as Uf,vh as Xh,vi as Xr,vj as Yn,vk as qo,wc as a_,wd as kt,we as Af,wf as Hf,wh as Yh,wi as Yr,wj as qn,wk as Jo,xc as mt,xd as Dt,xe as Cf,xh as qh,xi as qr,xj as Jn,xk as Qo,yc as p_,yd as vt,ye as Ef,yf as jf,yg as _h,yh as Jh,yi as Jr,yj as Qn,yk as Zo,z as su,zc as lt,zd as Gt,ze as yf,zg as fh,zh as Qh,zi as Qr,zj as Zn,zk as ei}from"./chunks/chunk-5KN4DZYV.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="cc0d4dd1-20e8-59d4-acb5-9f8ed639d35f")}catch{}})();(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fa4eb88d-f50e-59fa-be7f-0cfb42931a73")}catch{}})();var f="https://schema.unbrained.dev/pm/corpus-shape/v1";function A(e,t){if(!Number.isSafeInteger(e)||e<=0)throw new TypeError(`Corpus shape ${t} must be a positive safe integer`);return e}function R(e,t){if(!Number.isSafeInteger(e)||e<0)throw new TypeError(`Corpus shape ${t} must be a non-negative safe integer`);return e}function Re(e){if(!(typeof e!="object"||e===null||Object.isFrozen(e))){for(let t of Object.values(e))Re(t);Object.freeze(e)}}function C(e){if(e.schema!==f)throw new TypeError(`Unsupported corpus shape schema: ${e.schema}`);if(e.name.trim().length===0||e.description.trim().length===0)throw new TypeError("Corpus shape name and description must be non-empty");if(A(e.hierarchy_depth,"hierarchy_depth"),A(e.hierarchy_fanout,"hierarchy_fanout"),R(e.age_span_days,"age_span_days"),A(e.history_entries_per_item,"history_entries_per_item"),R(e.comments_per_100_items,"comments_per_100_items"),R(e.notes_per_100_items,"notes_per_100_items"),R(e.learnings_per_100_items,"learnings_per_100_items"),A(e.author_cardinality,"author_cardinality"),A(e.component_count,"component_count"),e.edge_kind_mix.length===0||e.edge_kind_mix.some(r=>r.kind.trim().length===0||r.weight<=0))throw new TypeError("Corpus shape edge_kind_mix requires non-empty kinds with positive weights");if(e.terminal_statuses.some(r=>!e.custom_statuses.includes(r)))throw new TypeError("Corpus shape terminal_statuses must be declared in custom_statuses");let t=structuredClone(e);return Re(t),t}var w=[{kind:"implements",weight:5},{kind:"blocked_by",weight:2},{kind:"discovered_from",weight:2},{kind:"verifies",weight:2},{kind:"supersedes",weight:1},{kind:"related",weight:4}],E=Object.freeze({scratch:C({schema:f,name:"scratch",description:"Seconds-old, shallow project with minimal history.",hierarchy_depth:2,hierarchy_fanout:50,age_span_days:0,history_entries_per_item:1,comments_per_100_items:2,notes_per_100_items:1,learnings_per_100_items:1,edge_kind_mix:[{kind:"related",weight:1}],author_cardinality:2,component_count:1,include_cycles:!1,custom_types:[],custom_statuses:[],terminal_statuses:[],custom_fields:[]}),representative:C({schema:f,name:"representative",description:"Medium-lived project with rich evidence and typed lineage.",hierarchy_depth:5,hierarchy_fanout:8,age_span_days:730,history_entries_per_item:12,comments_per_100_items:30,notes_per_100_items:12,learnings_per_100_items:10,edge_kind_mix:w,author_cardinality:32,component_count:1,include_cycles:!1,custom_types:["Experiment"],custom_statuses:["review"],terminal_statuses:[],custom_fields:["domain"]}),"deep-graph":C({schema:f,name:"deep-graph",description:"Deep typed relationship graph with deterministic cycles.",hierarchy_depth:16,hierarchy_fanout:2,age_span_days:3650,history_entries_per_item:6,comments_per_100_items:15,notes_per_100_items:8,learnings_per_100_items:8,edge_kind_mix:w,author_cardinality:16,component_count:1,include_cycles:!0,custom_types:[],custom_statuses:[],terminal_statuses:[],custom_fields:[]}),"multi-decade":C({schema:f,name:"multi-decade",description:"Thirty-year event history with dense per-item evolution.",hierarchy_depth:6,hierarchy_fanout:6,age_span_days:10958,history_entries_per_item:24,comments_per_100_items:40,notes_per_100_items:20,learnings_per_100_items:16,edge_kind_mix:w,author_cardinality:64,component_count:1,include_cycles:!1,custom_types:["Program"],custom_statuses:["archived"],terminal_statuses:["archived"],custom_fields:["portfolio"]}),"disconnected-archive":C({schema:f,name:"disconnected-archive",description:"Multiple disconnected historical project components.",hierarchy_depth:4,hierarchy_fanout:10,age_span_days:7305,history_entries_per_item:8,comments_per_100_items:10,notes_per_100_items:5,learnings_per_100_items:6,edge_kind_mix:w,author_cardinality:24,component_count:5,include_cycles:!1,custom_types:["Archive"],custom_statuses:["archived"],terminal_statuses:["archived"],custom_fields:["archive_source"]})});function wl(){return Object.keys(E).sort().map(e=>E[e])}function Ll(e){let t=e.trim().toLowerCase();if(!Object.hasOwn(E,t))throw new TypeError(`Unknown corpus shape "${e}". Available: ${Object.keys(E).join(", ")}`);return E[t]}var Oe=new WeakMap;function Ie(e,t){if(e===0)return[];let r=Oe.get(t);r===void 0&&(r=t.edge_kind_mix.flatMap(o=>Array.from({length:o.weight},()=>o.kind)),Oe.set(t,r));let n=[r[e%r.length]];return t.include_cycles&&e>2&&e%17===0&&n.push("related"),[...new Set(n)]}function Ml(e,t,r,n=42){if(R(t,"item index"),A(r,"item count"),t>=r)throw new RangeError(`Corpus item index ${t} exceeds ${r}`);let o=Math.min(e.component_count,r),s=t%o,i=Math.floor(t/o),a=0,c=1;for(let q=0;q<e.hierarchy_depth;q+=1)a=Math.min(Number.MAX_SAFE_INTEGER,a+c),c=Math.min(Number.MAX_SAFE_INTEGER,c*e.hierarchy_fanout);let p=i%a,m=i-p,u=p===0?void 0:s+(m+Math.floor((p-1)/e.hierarchy_fanout))*o,d=Date.UTC(2026,0,1),x=e.age_span_days*864e5,Ue=new Date(d+(r===1?0:Math.round(t/(r-1)*x))).toISOString(),G=(t*37+n)%100;return{index:t,id:`pm-s${t.toString(36).padStart(7,"0")}`,...u===void 0?{}:{parent:`pm-s${u.toString(36).padStart(7,"0")}`},component:s,timestamp:Ue,author:`pm-corpus-agent-${(t+n)%Math.min(e.author_cardinality,r)}`,history_entry_count:e.history_entries_per_item,dependency_kinds:Ie(t,e),has_comment:G<e.comments_per_100_items,has_note:G<e.notes_per_100_items,has_learning:G<e.learnings_per_100_items,...e.custom_types.length>0&&t%11===0?{custom_type:e.custom_types[t%e.custom_types.length]}:{},...e.custom_statuses.length>0&&t%13===0?{custom_status:e.custom_statuses[t%e.custom_statuses.length]}:{}}}var W=class{shape;authors=new Set;components=new Set;depths=new Map;childCounts=new Map;edgeKinds={};expectedEdgeKinds={};annotations={comments:0,notes:0,learnings:0};annotationFields;planMismatches=[];itemCount=0;observedDepth=0;observedFanout=0;historyEntryCount=0;firstTimestamp=null;lastTimestamp=null;constructor(t){this.shape=t,this.annotationFields=[["comments","has_comment",t.comments_per_100_items],["notes","has_note",t.notes_per_100_items],["learnings","has_learning",t.learnings_per_100_items]]}recordMismatch(t,r){t&&this.planMismatches.push(r)}recordEdgeKinds(t,r){for(let n of r)t[n]=(t[n]??0)+1}add(t){this.itemCount+=1,this.authors.add(t.author),this.components.add(t.component),this.recordMismatch(this.depths.has(t.id),`duplicate_id:${t.id}`);let r=1;if(t.parent!==void 0){let n=this.depths.get(t.parent);this.recordMismatch(n===void 0,`parent_missing:${t.parent}`),r=(n??0)+1;let o=(this.childCounts.get(t.parent)??0)+1;this.childCounts.set(t.parent,o),this.observedFanout=Math.max(this.observedFanout,o)}this.depths.set(t.id,r),this.observedDepth=Math.max(this.observedDepth,r),this.historyEntryCount+=t.history_entry_count,this.recordMismatch(t.history_entry_count!==this.shape.history_entries_per_item,"history_entries_per_item:drift"),this.firstTimestamp=this.firstTimestamp===null||t.timestamp<this.firstTimestamp?t.timestamp:this.firstTimestamp,this.lastTimestamp=this.lastTimestamp===null||t.timestamp>this.lastTimestamp?t.timestamp:this.lastTimestamp;for(let[n,o]of this.annotationFields)this.annotations[n]+=Number(t[o]);this.recordEdgeKinds(this.edgeKinds,t.dependency_kinds),this.recordEdgeKinds(this.expectedEdgeKinds,Ie(t.index,this.shape))}finish(){let t=Math.min(this.shape.author_cardinality,this.itemCount),r=Math.min(this.shape.component_count,this.itemCount),n=[...this.planMismatches,...this.itemCount===0?["item_count:empty"]:[],...this.authors.size===t?[]:[`author_count:${this.authors.size}!=${t}`],...this.components.size===r?[]:[`component_count:${this.components.size}!=${r}`],...this.observedDepth<=this.shape.hierarchy_depth?[]:[`hierarchy_depth:${this.observedDepth}>${this.shape.hierarchy_depth}`],...this.observedFanout<=this.shape.hierarchy_fanout?[]:[`hierarchy_fanout:${this.observedFanout}>${this.shape.hierarchy_fanout}`]];for(let[i,,a]of this.annotationFields){let c=Math.floor(this.itemCount/100),p=this.itemCount%100,m=c*a+Math.max(0,a+p-100),u=c*a+Math.min(a,p),d=this.annotations[i];(d<m||d>u)&&n.push(`${i}:${d}!in[${m},${u}]`)}let o=new Set([...Object.keys(this.edgeKinds),...Object.keys(this.expectedEdgeKinds)]);for(let i of[...o].sort()){let a=this.edgeKinds[i]??0,c=this.expectedEdgeKinds[i]??0;a!==c&&n.push(`edge_kind:${i}:${a}!=${c}`)}let s=[...new Set(n)];return{shape:this.shape.name,item_count:this.itemCount,author_count:this.authors.size,component_count:this.components.size,hierarchy_depth:this.observedDepth,hierarchy_fanout:this.observedFanout,timestamp_range:{first:this.firstTimestamp,last:this.lastTimestamp},history_entry_count:this.historyEntryCount,annotations:{...this.annotations},edge_kinds:{...this.edgeKinds},matches_declaration:s.length===0,mismatches:s}}};function Ne(e){return new W(e)}function kl(e,t){let r=Ne(e);for(let n of t)r.add(n);return r.finish()}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7442357d-52b9-5461-9ac4-3acd898334da")}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 Dl(){let e=H(process.cwd(),process.env.PM_PATH);await te(e,(t,r)=>re(t,r,{apply_runtime_defaults:!0}))}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f48b9002-59dc-54d3-95de-36bf0d11b39a")}catch{}})();var xe="https://schema.unbrained.dev/pm/workspace-recipe/v1";function B(e,t){if(e===null||typeof e=="boolean"||typeof e=="string")return e;if(typeof e=="number"){if(!Number.isFinite(e))throw new Error(`Workspace recipe JSON number must be finite at ${t}`);return e}if(Array.isArray(e))return Object.freeze(e.map((r,n)=>B(r,`${t}[${n}]`)));if(typeof e!="object"||Object.getPrototypeOf(e)!==Object.prototype&&Object.getPrototypeOf(e)!==null)throw new Error(`Workspace recipe input must contain JSON values at ${t}`);return Object.freeze(Object.fromEntries(Object.entries(e).map(([r,n])=>[r,B(n,`${t}.${r}`)])))}function be(e){if(e.schema!==xe)throw new Error(`Unsupported workspace recipe schema: ${e.schema}`);let t=J(e);if(e.operations.some(r=>r.action.trim().length===0||r.input===null||Array.isArray(r.input)))throw new Error("Workspace recipe operations require an action and object input");return Object.freeze({...t,operations:Object.freeze(e.operations.map((r,n)=>Object.freeze({action:r.action,input:B(r.input,`operations[${n}].input`)})))})}async function Pe(e,t){let r=be(e);return Q(r,t)}async function vl(e,t){return Pe(e,async()=>{let r=[];for(let[n,o]of e.operations.entries())r.push(await t(o,n));return r})}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a108f4d2-80c3-540e-821c-5acdf68eb7fa")}catch{}})();async function Gl(){await ne()}import y from"node:fs";import $ from"node:path";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6748a283-bc93-5783-98c1-d1a7f2fdce4e")}catch{}})();var we=300*1e3,Fl=3;function by(e){return(e?.trim()||"development").replace(/[^a-zA-Z0-9._-]/g,"_").replace(/^\./,"_")}function Py(e,t){let r=t.trim();if(!/^[a-zA-Z0-9_-][a-zA-Z0-9._-]*$/.test(r))throw new TypeError("Compile-cache generation must be a safe non-empty filename token.");y.mkdirSync(e,{recursive:!0});let n=$.join(e,r);y.mkdirSync(n,{recursive:!0});let o=new Date;y.utimesSync(n,o,o);let s=y.readdirSync(e).filter(p=>p!==r).flatMap(p=>{try{return[{name:p,mtimeMs:y.statSync($.join(e,p)).mtimeMs}]}catch(m){if(m instanceof Error&&"code"in m&&m.code==="ENOENT")return[];throw m}}).sort((p,m)=>m.mtimeMs-p.mtimeMs||p.name.localeCompare(m.name)),i=s.filter(p=>o.getTime()-p.mtimeMs<we),a=Math.max(0,Fl-1-i.length),c=s.filter(p=>o.getTime()-p.mtimeMs>=we).slice(a).map(p=>p.name).sort((p,m)=>p.localeCompare(m));for(let p of c)y.rmSync($.join(e,p),{recursive:!0,force:!0,maxRetries:3,retryDelay:50});return{retained:r,removed:c}}import Le from"node:fs";import M from"node:path";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="962636b0-ed3b-5ad0-ae0c-904435025986")}catch{}})();var D="@unbrained/pm-cli",Ul=new Set(["append","claim","changelog","close","close-many","close-task","comments","config","copy","create","dedupe-merge","delete","deps","docs","extension","event","events","files","focus","gc","history-author-acknowledge","history-compact","history-redact","history-repair","init","install","item","learnings","meet","merge","normalize","notes","package","packages","pause-task","plan","profile","reindex","release","remind","restore","schema","start-task","test","test-all","test-runs","test-runs-worker","telemetry","templates","twin","update","update-many","upgrade","vcs","workspace"]),Me=new Set(["--author","--output-budget","--output-format","--output-include","--output-limit","--output-session","--path","--pm-path"]),X=/\b(\d{4})\.(\d{1,2})\.(\d{1,2})(?:-(\d+))?\b/u;function l(e,t){return e.some(r=>t.includes(r.split("=",1)[0]))}function z(e,t){return["activate","adopt","adopt-all","deactivate","init","install","migrate","reload","uninstall"].includes(t[0]??"")||l(e,["--activate","--adopt","--adopt-all","--deactivate","--fix-managed-state","--init","--install","--output","--reload","--scaffold","--uninstall"])}var Hl={changelog:(e,t)=>{if(t[0]==="generate")return!l(e,["--check"]);let r=e.indexOf("export");return t[0]==="export"&&(l(e,["--output"])||r>=0&&e[r+1]!==void 0&&!e[r+1].startsWith("-"))},comments:e=>l(e,["--add","--delete","--edit","--file","--stdin"]),config:(e,t)=>(t[0]==="project"||t[0]==="global"?t[1]:t[0])==="set",deps:()=>!1,docs:e=>l(e,["--add","--add-glob","--migrate","--remove"]),duplicates:()=>!1,events:()=>!1,extension:z,files:(e,t)=>l(e,["--add","--add-glob","--migrate","--remove"])||t[0]==="discover"&&l(e,["--apply"]),health:e=>!l(e,["--check-only","--no-refresh","--skip-vectors"]),learnings:e=>l(e,["--add","--delete","--edit","--file","--stdin"]),merge:(e,t)=>t[0]!=="report",notes:e=>l(e,["--add","--delete","--edit","--file","--stdin"]),package:z,packages:z,profile:(e,t)=>t[0]==="apply",schema:(e,t)=>["add-field","add-status","add-type","remove-field","remove-status","remove-type","remap-status","rename-field","rename-type"].includes(t[0]??"")&&!(l(e,["--infer"])&&!l(e,["--apply"])),telemetry:(e,t)=>t.slice(0,2).some(r=>["clear","flush"].includes(r)),templates:(e,t)=>t[0]==="save",test:e=>l(e,["--add","--add-json","--background","--measure","--remove","--resume","--run","--stop"]),validate:e=>l(e,["--auto-fix","--prune-missing"]),vcs:(e,t)=>["abandon","create","merge","propose","ref-create"].includes(t[0]??""),workspace:(e,t)=>t[0]==="snapshot"&&["create","delete","restore"].includes(t[1]??"")};function k(e){let t=e.match(X);return t?[Number(t[1]),Number(t[2]),Number(t[3]),Number(t[4]??0)]:null}function L(e,t){let r=k(e),n=k(t);if(!r||!n)return null;for(let o=0;o<r.length;o+=1){let s=r[o]-n[o];if(s!==0)return Math.sign(s)}return 0}function K(e){try{let t=JSON.parse(Le.readFileSync(e,"utf8"));return typeof t=="object"&&t!==null&&!Array.isArray(t)?t:null}catch{return null}}function jl(e){let t=[];for(let r of["dependencies","devDependencies","optionalDependencies","peerDependencies"]){let n=e[r];if(typeof n!="object"||n===null)continue;let o=n[D],s=typeof o=="string"?o.trim():"",i=/^[<!]/u.test(s)?void 0:s.match(X)?.[0];i&&t.push(i)}return t.sort((r,n)=>L(n,r))[0]}function Vl(e){let r=K(M.join(e,"package-lock.json"))?.packages;if(typeof r!="object"||r===null)return;let n=r["node_modules/@unbrained/pm-cli"];if(typeof n!="object"||n===null)return;let o=n.version;return typeof o=="string"?o:void 0}function Wl(e,t){try{let r=Le.readFileSync(M.join(e,t),"utf8").split(/\r?\n/u),n=r.findIndex(c=>c.includes(D));if(n<0)return;let o=r[n].match(/^\s*/u)[0].length,s=[r[n]];for(let c=n+1;c<r.length;c+=1){let p=r[c],m=p.trim(),u=p.match(/^\s*/u)[0].length;if(m.length>0&&u<=o)break;s.push(p)}return s.join(`
|
|
2
|
-
`).match(/^\s*version(?::\s*|\s+)["']?(\d{4}\.\d{1,2}\.\d{1,2}(?:-\d+)?)/mu)?.[1]??s[0].match(X)?.[0]}catch{return}}function Bl(e){let t=[],r=K(M.join(e,"package.json")),n=r?jl(r):void 0;n&&t.push({version:n,source:"package.json"});let s=K(M.join(e,"node_modules","@unbrained","pm-cli","package.json"))?.version;typeof s=="string"&&k(s)&&t.push({version:s,source:"installed-package"});let i=Vl(e);i&&k(i)&&t.push({version:i,source:"package-lock.json"});for(let a of["pnpm-lock.yaml","yarn.lock"]){let c=Wl(e,a);c&&t.push({version:c,source:a})}return t}function ke(e){for(let t=0;t<e.length;t+=1){let r=e[t];if(Me.has(r)){t+=1;continue}if(!r.startsWith("-"))return{command:r.toLowerCase(),index:t}}}function $l(e){let t=ke(e);if(!t||l(e,["--help","-h","--dry-run"]))return!1;let{command:r,index:n}=t,o=[];for(let i=n+1;i<e.length;i+=1){let a=e[i];if(Me.has(a)){i+=1;continue}a.startsWith("-")||o.push(a.toLowerCase())}let s=Hl[r];return s?s(e,o):Ul.has(r)}function zl(e){let t=ke(e.argv)?.command,r=$l(e.argv),o=Bl(e.projectRoot).filter(a=>L(a.version,e.executingVersion)!==null).sort((a,c)=>L(c.version,a.version))[0],s=o!==void 0&&L(e.executingVersion,o.version)===-1,i=s&&!r?{code:"project_runtime_stale_read",executing_version:e.executingVersion,project_version:o.version,source:o.source,message:"This read is using an older pm runtime than the project requires.",next_steps:[`Run the command through the project's installed ${D} ${o.version}.`,"Install the project dependencies with its declared package manager if the local executable is missing."]}:void 0;return{compatible:!r||!s||e.allowStale===!0,executing_version:e.executingVersion,...o?{project_version:o.version,source:o.source}:{},...t?{command:t}:{},mutating:r,stale:s,...i?{warning:i}:{},override_applied:s&&r&&e.allowStale===!0}}function vy(e){let t=zl(e);if(t.compatible)return t;throw new U(`pm ${t.executing_version} cannot mutate a project pinned to newer pm ${t.project_version}.`,F.CONFLICT,{code:"project_runtime_stale_mutation",reason:t.source,why:"An older runtime can write storage, history, and merge contracts it does not understand.",nextSteps:[`Run this command through the project's installed ${D} ${t.project_version}.`,"For an intentional recovery only, set PM_ALLOW_STALE_CLI=1 for this invocation and record why.","Read-only commands remain available without an override."]})}import{createHash as Kl}from"node:crypto";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4586a8b2-07c8-53d4-9c5d-ca557ee07977")}catch{}})();var Y=1;function S(e){e?.throwIfAborted()}function h(e,t){if(typeof e!="string"||e.trim().length===0)throw new TypeError(`Relationship graph ${t} must be non-empty`);return e.trim()}function O(e,t,r={}){let n=Date.parse(r.createdAt??new Date().toISOString());if(!Number.isFinite(n))throw new TypeError("Relationship graph createdAt must be a valid timestamp");let o=e.nodes(),s=e.edges(),i=t.list();return Object.freeze({version:Y,fingerprint:Kl("sha256").update(b({nodes:o,edges:s,kinds:i})).digest("hex"),created_at:new Date(n).toISOString(),nodes:o,edges:s,kinds:i})}function Xl(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function N(e){if(!Xl(e))throw new TypeError("Relationship graph snapshot must be an object");if(e.version!==Y)throw new TypeError(`Unsupported relationship graph snapshot version: ${String(e.version)}`);if(!Array.isArray(e.nodes)||e.nodes.some(o=>typeof o!="string"))throw new TypeError("Relationship graph snapshot nodes must be strings");if(!Array.isArray(e.edges)||!Array.isArray(e.kinds))throw new TypeError("Relationship graph snapshot edges and kinds must be arrays");if(typeof e.created_at!="string"||!Number.isFinite(Date.parse(e.created_at)))throw new TypeError("Relationship graph snapshot created_at must be valid");if(typeof e.fingerprint!="string")throw new TypeError("Relationship graph snapshot fingerprint must be a string");let t=new j([]);for(let o of e.kinds)t.register(o);let r=new g(e.nodes,e.edges,t),n=O(r,t,{createdAt:e.created_at});if(n.fingerprint!==e.fingerprint)throw new TypeError("Relationship graph snapshot fingerprint mismatch");return{snapshot:n,registry:t,graph:r}}async function _(e,t){h(e.name,"adapter name");let r=h(t.workspace,"workspace");S(t.signal);let n=await e.read({...t,workspace:r});return S(t.signal),n===null?null:N(n)}async function v(e,t){let r=h(t.workspace,"workspace"),n=N(t.snapshot).snapshot,o=await _(e,{workspace:r,signal:t.signal});if(o?.snapshot.fingerprint===n.fingerprint)return{adapter:e.name,workspace:r,disposition:"current",fingerprint:n.fingerprint,previous_fingerprint:o.snapshot.fingerprint,node_count:n.nodes.length,edge_count:n.edges.length};if(S(t.signal),await e.replace({workspace:r,signal:t.signal,snapshot:n,expected_fingerprint:o?.snapshot.fingerprint??null}),(await _(e,{workspace:r,signal:t.signal}))?.snapshot.fingerprint!==n.fingerprint)throw new Error(`Relationship graph adapter "${e.name}" did not expose the replaced snapshot`);return{adapter:e.name,workspace:r,disposition:"written",fingerprint:n.fingerprint,...o?{previous_fingerprint:o.snapshot.fingerprint}:{},node_count:n.nodes.length,edge_count:n.edges.length}}function Yl(e,t={}){let r=e.map(N),n=new Map;for(let i of r)for(let a of i.snapshot.kinds){let c=n.get(a.kind);if(c&&b(c)!==b(a))throw new TypeError(`Conflicting federated relationship kind: ${a.kind}`);n.set(a.kind,a)}let o=new j([...n.values()].sort((i,a)=>i.kind.localeCompare(a.kind))),s=new g(new Set(r.flatMap(i=>[...i.snapshot.nodes])),r.flatMap(i=>[...i.snapshot.edges]),o);return O(s,o,t)}var I=class{name;#e=new Map;constructor(t="memory"){this.name=h(t,"adapter name")}async read(t){S(t.signal);let r=this.#e.get(h(t.workspace,"workspace"));return r?structuredClone(r):null}async replace(t){S(t.signal);let r=h(t.workspace,"workspace"),n=this.#e.get(r);if(t.expected_fingerprint!==void 0&&(n?.fingerprint??null)!==t.expected_fingerprint)throw new Error(`Relationship graph adapter conflict for ${r}`);this.#e.set(r,structuredClone(N(t.snapshot).snapshot))}async clear(t){S(t.signal);let r=h(t.workspace,"workspace"),n=this.#e.get(r);if(t.expected_fingerprint!==void 0&&(n?.fingerprint??null)!==t.expected_fingerprint)throw new Error(`Relationship graph adapter conflict for ${r}`);this.#e.delete(r)}};(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="423d6e5d-93e5-5f29-93e0-11ddca9c3156")}catch{}})();function De(e,t){if(!Number.isInteger(e)||e<1)throw new TypeError(`Relationship graph ${t} must be a positive integer`);return e}function ql(e){let t=De(e.nodeCount,"nodeCount"),r=De(e.edgeStride??1,"edgeStride"),n=e.topology??"chain";if(!["chain","star","disconnected"].includes(n))throw new TypeError(`Unsupported relationship graph topology: ${n}`);let o=(e.kind??"related").trim(),s=(e.idPrefix??"node").trim();if(!o||!s)throw new TypeError("Relationship graph kind and idPrefix must be non-empty");let i=n==="disconnected"?0:Math.floor((t-1)/r);return{node_count:t,edge_count:i,edge_basis:"fixture_generated",nodes:{*[Symbol.iterator](){for(let a=0;a<t;a+=1)yield`${s}-${a}`}},edges:{*[Symbol.iterator](){if(n!=="disconnected")for(let a=r;a<t;a+=r)yield{source:`${s}-${n==="star"?0:a-r}`,target:`${s}-${a}`,kind:o}}}}}function T(e,t){if(!e)throw new Error(`Relationship graph adapter conformance: ${t}`)}async function ve(e,t={}){let r=t.workspace?.trim()||"pm-graph-conformance",n=Z(),o=O(new g(["a","b"],[{source:"a",target:"b",kind:"related"}],n),n,{createdAt:"2026-01-01T00:00:00.000Z"}),s=O(new g(["a","b","c"],[{source:"a",target:"b",kind:"related"},{source:"b",target:"c",kind:"blocked_by"}],n),n,{createdAt:"2026-01-02T00:00:00.000Z"}),i=[];T(await _(e,{workspace:r})===null,"workspace must start empty"),i.push({name:"empty-read",passed:!0});let a=await v(e,{workspace:r,snapshot:o});T(a.disposition==="written","first sync must write"),i.push({name:"atomic-replace",passed:!0}),(await e.read({workspace:r})).nodes.push("mutated-reader-copy"),T((await _(e,{workspace:r}))?.snapshot.nodes.length===2,"reads must not mutate stored state"),i.push({name:"read-isolation",passed:!0}),T((await v(e,{workspace:r,snapshot:o})).disposition==="current","identical sync must be idempotent"),i.push({name:"idempotent-sync",passed:!0}),await e.replace({workspace:r,snapshot:s,expected_fingerprint:o.fingerprint}),T((await _(e,{workspace:r}))?.snapshot.fingerprint===s.fingerprint,"replacement must become visible"),i.push({name:"replacement-visibility",passed:!0});let p=!1;try{await e.replace({workspace:r,snapshot:o,expected_fingerprint:o.fingerprint})}catch{p=!0}return T(p,"stale compare-and-swap must fail"),i.push({name:"stale-cas",passed:!0}),e.clear&&(await e.clear({workspace:r,expected_fingerprint:s.fingerprint}),T(await _(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 Jl(e){return ve(new I,e?{workspace:e}:{})}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2c3df51e-6b10-5da6-8340-126465d9c434")}catch{}})();(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="5133d678-01f4-5164-aea7-2cc5ed42dd58")}catch{}})();import{createHash as Ge}from"node:crypto";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="54a3448c-719c-5404-a9b9-c3072a2fdce2")}catch{}})();function Fe(e,t){if(typeof e!="string"||e.trim().length===0)throw new TypeError(`Relationship backfill ${t} must be non-empty`);return e.trim()}function aS(e,t){let r=Fe(t.migrationId,"migrationId"),n=Fe(t.author,"author"),o=Date.parse(t.timestamp);if(!Number.isFinite(o))throw new TypeError("Relationship backfill timestamp must be valid");let s=new Date(o).toISOString(),i=V(e,void 0,t.registry),a=i.graph.nodes(),c=i.graph.edges().map(d=>{let x=Ge("sha256").update(JSON.stringify([r,d.kind,d.source,d.target,d.createdAt??null,d.author??null,d.payload??null])).digest("hex").slice(0,24);return Object.freeze({eventId:`backfill:${r}:${x}`,relationshipId:`migration:${r}:${x}`,action:"add",edge:d,author:n,timestamp:s,reason:`Backfill ${r} from legacy item metadata`})}),p=Ge("sha256").update(JSON.stringify({migrationId:r,nodes:a,events:c})).digest("hex"),m=new Set([...t.existingEventIds??[]].filter(d=>typeof d=="string").map(d=>d.trim()).filter(Boolean)),u=c.filter(d=>!m.has(d.eventId));return Object.freeze({migration_id:r,fingerprint:p,nodes:a,events:Object.freeze(u),edge_count:c.length,skipped_existing_count:c.length-u.length,duplicate_dependency_rows:i.duplicateRows.length,dangling_reference_count:i.dangling.active.length+i.dangling.legacy_terminal.length})}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7fc669d4-1db2-5636-8304-2c111a684726")}catch{}})();function cS(e){return e}function dS(e){return e}function mS(e){return e}function lS(e){return e}function uS(e){return e}function _S(e){return e}function fS(e){return e}function hS(e){return e}function TS(e){return e}function gS(e){return e}function AS(e){return e}function CS(e){return e}function ES(e){return e}function yS(e){return{handled:!0,result:e}}function SS(){return{handled:!1}}function OS(e){return e}function RS(e){return e}function IS(e){return e}function NS(e){return e}function xS(e){return e}function bS(e){return e}function PS(e){return e}function wS(e){return e}function LS(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 Ql(e={},t={}){return new P(t).extension(void 0,{...e,migrate:!0})}function Zl(e={},t={}){return new P(t).packageMigrate(e)}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="99a9b24a-4bc7-50da-8333-e76086f0e303")}catch{}})();(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8e8c2de1-7bff-57c6-8e71-9c27e9e76eaa")}catch{}})();(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="5e04dc9d-8e2d-5ef2-bf8b-6b18bd87c3bc")}catch{}})();(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ae84c7af-bfa7-577d-b9f3-2bd9450d5755")}catch{}})();export{mg as ACTIONABILITY_ORDERING_KINDS,Yr as ACTIVITY_COMMANDER_STRING_OPTION_CONTRACTS,Wo as ACTIVITY_FLAG_CONTRACTS,Pt as AGENT_PROVENANCE_DIMENSIONS,xn as AGGREGATE_FLAG_CONTRACTS,fo as APPEND_FLAG_CONTRACTS,ft as BASELINE_ITEM_FORMAT_VERSION,Ng as BRIEF_LIST_FIELDS,E as BUILTIN_CORPUS_SHAPES,wt as BUILTIN_HARNESS_SIGNAL_DESCRIPTORS,ze as BUILTIN_ITEM_TYPE_VALUES,ue as BUILTIN_PROFILES,wu as BUILTIN_RELATIONSHIP_KINDS,zr as CALENDAR_COMMANDER_STRING_OPTION_CONTRACTS,Vo as CALENDAR_FLAG_CONTRACTS,ho as CLAIM_FLAG_CONTRACTS,pi as CLOSE_ACTION_OPTION_KEYS,uo as CLOSE_FLAG_CONTRACTS,_o as CLOSE_MANY_FLAG_CONTRACTS,yo as CLOSE_TASK_FLAG_CONTRACTS,bn as COMMENTS_FLAG_CONTRACTS,Su as COMMON_MUTATION_COMMAND_OPTION_KEYS,ti as COMPLETION_FLAG_CONTRACTS,Qe as CONFIDENCE_TEXT_VALUES,Bn as CONFIG_FLAG_CONTRACTS,Kr as CONTEXT_COMMANDER_STRING_OPTION_CONTRACTS,Ug as CONTEXT_EVALUATION_METRIC_NAMES,$o as CONTEXT_FLAG_CONTRACTS,ie as CONTEXT_OUTPUT_VALUES,Bg as CONTEXT_PACKING_PROFILES,Dg as CONTEXT_RELEVANCE_SERVICE,Mg as CONTEXT_RELEVANCE_SIGNAL_NAMES,Qg as CONTEXT_SIGNAL_SET_VERSION,Jg as CONTEXT_SIGNAL_STORE_FORMAT_VERSION,ei as CONTRACTS_FLAG_CONTRACTS,Fo as COPY_FLAG_CONTRACTS,Zr as CREATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,tn as CREATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,en as CREATE_COMMANDER_STRING_OPTION_CONTRACTS,nu as CREATE_DIRECT_CLOSE_REASON_DEFAULT,Do as CREATE_FLAG_CONTRACTS,ht as CURRENT_ITEM_FORMAT_VERSION,rA as ContextSignalStore,zg as ContextUsageValidationError,og as DEFAULT_AUTHOR_IDENTITY_VOCABULARY,$A as DEFAULT_CHILD_SAMPLE_LIMIT,Ig as DEFAULT_COMPACT_LIST_FIELDS,bh as DEFAULT_DERIVED_INDEX_MINIMUM_ITEMS,Pp as DEFAULT_EVAL_QUERIES_RELATIVE_PATH,TA as DEFAULT_TERMINAL_TRANSITION_POLICY,sA as DEFAULT_WORKSPACE_MEMORY_MINIMUM_ITEMS,go as DELETE_FLAG_CONTRACTS,Ye as DEPENDENCY_KIND_VALUES,Xo as DEPS_FLAG_CONTRACTS,Mn as DOCS_FLAG_CONTRACTS,Lo as DUPLICATES_FLAG_CONTRACTS,qo as EVAL_FLAG_CONTRACTS,Ip as EVAL_QUERY_SET_CONTRACT,Np as EVAL_QUERY_SET_EXAMPLE,Rp as EVAL_QUERY_SET_SCHEMA_ID,Bo as EVENTS_FLAG_CONTRACTS,Oo as EVENT_FLAG_CONTRACTS,Wr as EXECUTABLE_COMMAND_ALIASES,F as EXIT_CODE,to as EXTENSION_ACTIVATE_FLAG_CONTRACTS,eo as EXTENSION_ADOPT_ALL_FLAG_CONTRACTS,po as EXTENSION_ADOPT_FLAG_CONTRACTS,jT as EXTENSION_CAPABILITIES,ru as EXTENSION_CAPABILITY_CONTRACT,eu as EXTENSION_CAPABILITY_CONTRACT_VERSION,tu as EXTENSION_CAPABILITY_LEGACY_ALIASES,at as EXTENSION_CAPABILITY_REGISTRATION_SURFACES,ao as EXTENSION_CATALOG_FLAG_CONTRACTS,ro as EXTENSION_DEACTIVATE_FLAG_CONTRACTS,Zn as EXTENSION_DESCRIBE_FLAG_CONTRACTS,so as EXTENSION_DOCTOR_FLAG_CONTRACTS,Qn as EXTENSION_EXPLORE_FLAG_CONTRACTS,$n as EXTENSION_FLAG_CONTRACTS,Kn as EXTENSION_INIT_FLAG_CONTRACTS,qn as EXTENSION_INSTALL_FLAG_CONTRACTS,oo as EXTENSION_MANAGE_FLAG_CONTRACTS,no as EXTENSION_MIGRATE_FLAG_CONTRACTS,VT as EXTENSION_POLICY_MODES,WT as EXTENSION_POLICY_SURFACES,io as EXTENSION_RELOAD_FLAG_CONTRACTS,$T as EXTENSION_SANDBOX_PROFILES,zn as EXTENSION_SCOPE_FLAG_CONTRACTS,BT as EXTENSION_TRUST_MODES,Jn as EXTENSION_UNINSTALL_FLAG_CONTRACTS,wA as EXTERNAL_DEPENDENCY_SOURCE_KIND,LA as EXTERNAL_DEPENDENCY_SOURCE_KIND_ALIAS,Ln as FILES_FLAG_CONTRACTS,Uo as FOCUS_FLAG_CONTRACTS,Po as GC_FLAG_CONTRACTS,zo as GET_FLAG_CONTRACTS,In as GLOBAL_FLAG_CONTRACTS,lc as GRAPH_DURABLE_CACHE_MIN_ITEMS,mc as GRAPH_DURABLE_CACHE_VERSION,Yo as GRAPH_FLAG_CONTRACTS,Xt as GRAPH_SUBCOMMAND_VALUES,Ko as GUIDE_FLAG_CONTRACTS,Mo as HEALTH_FLAG_CONTRACTS,Fn as HISTORY_AUTHOR_ACKNOWLEDGE_FLAG_CONTRACTS,JA as HISTORY_AUTHOR_ATTRIBUTION_BASELINE,vC as HISTORY_COMPACT_BULK_DEFAULT_MIN_ENTRIES,Un as HISTORY_COMPACT_FLAG_CONTRACTS,kn as HISTORY_FLAG_CONTRACTS,vn as HISTORY_REDACT_FLAG_CONTRACTS,Gn as HISTORY_REPAIR_FLAG_CONTRACTS,Ap as INIT_AGENT_GUIDANCE_MODE_VALUES,Wn as INIT_FLAG_CONTRACTS,co as INSTALL_FLAG_CONTRACTS,Je as ISSUE_SEVERITY_VALUES,Go as ITEM_COMPLETE_FLAG_CONTRACTS,AC as ITEM_LATEST_TIMESTAMP_FIELDS,iu as ITEM_METADATA_KEY_ORDER,vo as ITEM_MUTATE_FLAG_CONTRACTS,Ke as ITEM_TYPE_VALUES,gC as ITEM_UNION_COLLECTION_FIELDS,tA as JsonFileContextSignalStoreAdapter,wn as LEARNINGS_FLAG_CONTRACTS,zs as LINKED_TEST_ENV_NAME_PATTERN,Ks as LINKED_TEST_PM_CONTEXT_MODE_VALUES,$s as LINKED_TEST_PROTECTED_ENV_KEYS,Br as LIST_COMMANDER_STRING_OPTION_CONTRACTS,xg as LIST_COMMAND_DEFAULT_PROJECTIONS,KT as LIST_FILTER_EXTENSION_FLAG_DEFINITIONS,Nn as LIST_FILTER_FLAG_CONTRACTS,Og as LIST_SORT_FIELDS,Rg as LIST_SORT_ORDER_VALUES,BA as MAX_CHILD_PROJECTION_ITEMS,So as MEET_FLAG_CONTRACTS,yC as MERGE_DRIVER_ARTIFACT_VALUES,Dn as MERGE_FLAG_CONTRACTS,I as MemoryRelationshipGraphAdapter,Xr as NEXT_COMMANDER_STRING_OPTION_CONTRACTS,Qo as NEXT_FLAG_CONTRACTS,ss as NEXT_OUTPUT_VALUES,Pn as NOTES_FLAG_CONTRACTS,Xn as PACKAGE_FLAG_CONTRACTS,Yn as PACKAGE_INIT_FLAG_CONTRACTS,Eo as PAUSE_TASK_FLAG_CONTRACTS,ai as PLAN_CREATE_METADATA_PARAMETER_KEYS,Vn as PLAN_FLAG_CONTRACTS,wa as PLAN_SHOW_DEPTH_VALUES,Pa as PLAN_SUBCOMMANDS,La as PLAN_TEMPLATE_NAMES,hi as PM_CLI_EXPECTED_ERROR_NAME,qt as PM_CLI_ONLY_TOOL_ACTION_WAIVERS,SA as PM_COMMAND_EXIT_CONTRACTS,yA as PM_COMMAND_EXIT_OUTCOME_CONTRACTS,cr as PM_COMMAND_OUTPUT_BUDGET_CONTRACTS,YC as PM_COMMAND_OUTPUT_ENVELOPE_CONTRACTS,Rc as PM_COMMAND_VISIBILITY_CONTRACTS,YT as PM_CONTEXT_INTENTS_FILE,Ef as PM_CONTEXT_INTENT_CONTRACTS,Kt as PM_CORE_COMMAND_NAMES,f as PM_CORPUS_SHAPE_SCHEMA,zC as PM_ERROR_CODE_CATALOG,VC as PM_ERROR_CODE_EXIT_CLASS_CONTRACTS,jt as PM_EXTENSION_CAPABILITY_CONTRACTS,Yt as PM_EXTENSION_PACKAGE_ACTION_SUBCOMMANDS,Wt as PM_EXTENSION_POLICY_MODE_CONTRACTS,zt as PM_EXTENSION_POLICY_SURFACE_CONTRACTS,$t as PM_EXTENSION_SANDBOX_PROFILE_CONTRACTS,Vt as PM_EXTENSION_SERVICE_NAME_CONTRACTS,Bt as PM_EXTENSION_TRUST_MODE_CONTRACTS,VA as PM_GITATTRIBUTES_END,jA as PM_GITATTRIBUTES_START,yi as PM_GITIGNORE_END,Ei as PM_GITIGNORE_START,wc as PM_MCP_PROMPT_CONTRACTS,Pc as PM_MCP_RESOURCE_CONTRACTS,xc as PM_MCP_TOOL_COMMAND_CONTRACTS,v_ as PM_MODE_PAIRED_OUTPUT_PROJECTION_CONTRACTS,br as PM_MUTATION_ACTION_CONTRACTS,ir as PM_OUTPUT_BUDGET_CLASSES,or as PM_OUTPUT_DEGRADATION_STEPS,KC as PM_OUTPUT_ENVELOPE_KINDS,pe as PM_PACKAGE_CONVENTIONAL_RESOURCE_ROOTS,ae as PM_PACKAGE_RESOURCE_KINDS,fi as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA,ui as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA_VERSION,uf as PM_READ_OUTPUT_COMPOSITION_OPTION_FLAGS,df as PM_READ_OUTPUT_DIMENSIONS,lf as PM_READ_OUTPUT_OPTION_FLAGS,of as PM_READ_OUTPUT_SESSION_MAX_SEEN_ITEM_IDS,nf as PM_READ_OUTPUT_SESSION_MIN_TOKENS,mf as PM_READ_OUTPUT_SURFACES,_f as PM_READ_OUTPUT_SURFACE_CONTRACTS,D_ as PM_READ_ROW_CONTRACTS,k_ as PM_READ_ROW_JQ_SELECTOR,OA as PM_SUCCESS_EXIT_CODES,Jt as PM_TOOL_ACTIONS,ci as PM_TOOL_ACTION_PARAMETER_CONTRACTS,_i as PM_TOOL_PARAMETERS_SCHEMA,li as PM_TOOL_PARAMETERS_SCHEMA_MAJOR,mi as PM_TOOL_PARAMETERS_SCHEMA_VERSION,ii as PM_TOOL_RESERVED_CUSTOM_FIELD_PROPERTIES,xe as PM_WORKSPACE_RECIPE_SCHEMA,jn as PROFILE_FLAG_CONTRACTS,Ce as PROFILE_LINT_CODES,Ae as PROFILE_LINT_DIMENSIONS,le as PROFILE_NAMES,Xp as PROFILE_SUBCOMMANDS,U as PmCliError,P as PmClient,J_ as QUERY_CURSOR_CONTRACT,lo as REINDEX_FLAG_CONTRACTS,Oh as REINDEX_LOCK_ID,Y as RELATIONSHIP_GRAPH_SNAPSHOT_VERSION,Ao as RELEASE_FLAG_CONTRACTS,Ro as REMIND_FLAG_CONTRACTS,ee as RESERVED_ITEM_FIELD_NAMES,To as RESTORE_FLAG_CONTRACTS,qe as RISK_VALUES,MT as RelationshipEventLog,kT as RelationshipEventStore,g as RelationshipGraph,j as RelationshipKindRegistry,Hn as SCHEMA_FLAG_CONTRACTS,$r as SEARCH_COMMANDER_STRING_OPTION_CONTRACTS,XT as SEARCH_EXTENSION_FLAG_DEFINITIONS,Zo as SEARCH_FLAG_CONTRACTS,su as SETTINGS_DEFAULTS,Dp as SNAPSHOT_SCHEMA,GA as SOURCE_CONTEXT_ACCESS_ENV,FA as SOURCE_CONTEXT_WRITE_OVERRIDE_ENV,Co as START_TASK_FLAG_CONTRACTS,wo as STATS_FLAG_CONTRACTS,Xe as STATUS_VALUES,Rn as SUBCOMMAND_GLOBAL_FLAG_CONTRACTS,w_ as SUPPRESS_HOST_OUTPUT_MARKER,xo as TELEMETRY_FLAG_CONTRACTS,Jc as TELEMETRY_SUBCOMMANDS,No as TEST_ALL_FLAG_CONTRACTS,Io as TEST_FLAG_CONTRACTS,bo as TEST_RUNS_FLAG_CONTRACTS,zc as TEST_RUN_MEASUREMENT_LIMIT,An as TOOL_ACTIVITY_OPTION_CONTRACTS,an as TOOL_AGGREGATE_OPTION_CONTRACTS,fn as TOOL_BULK_MUTATION_FILTER_OPTION_CONTRACT_SOURCE,gn as TOOL_CALENDAR_OPTION_CONTRACTS,Tn as TOOL_CLOSE_MANY_FILTER_OPTION_CONTRACTS,Cn as TOOL_CONTEXT_OPTION_CONTRACTS,ln as TOOL_CREATE_OPTION_CONTRACTS,mn as TOOL_CREATE_OPTION_CONTRACT_SOURCE,En as TOOL_DEPS_OPTION_CONTRACTS,yn as TOOL_GRAPH_OPTION_CONTRACTS,sn as TOOL_LIST_FILTER_OPTION_CONTRACTS,pn as TOOL_SEARCH_FILTER_OPTION_CONTRACTS,dn as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACTS,cn as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACT_SOURCE,hn as TOOL_UPDATE_MANY_FILTER_OPTION_CONTRACTS,_n as TOOL_UPDATE_OPTION_CONTRACTS,un as TOOL_UPDATE_OPTION_CONTRACT_SOURCE,ou as TYPE_TO_FOLDER,rn as UPDATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,on as UPDATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,nn as UPDATE_COMMANDER_STRING_OPTION_CONTRACTS,Ho as UPDATE_FLAG_CONTRACTS,jo as UPDATE_MANY_FLAG_CONTRACTS,mo as UPGRADE_FLAG_CONTRACTS,ko as VALIDATE_FLAG_CONTRACTS,Jo as WORKSPACE_FLAG_CONTRACTS,fr as WORKSPACE_HISTORY_ID,oc as WorkspaceGraphCache,UT as WorkspaceTransactionInterruptedError,Ai as _testOnly,Lg as _testOnlyAggregateCommand,gp as _testOnlyConfigCommand,YA as _testOnlyGetCommand,Ka as _testOnlyHealthCommand,Sp as _testOnlyInit,Cp as _testOnlyInitAgentGuidance,_E as _testOnlyItemTransaction,wC as _testOnlyMutationEvents,_A as _testOnlyNextCommand,fC as _testOnlySearchCommand,vA as _testOnlySimilarity,Wp as _testOnlyTemplates,fp as _testOnlyValidateCommand,$a as acknowledgeUnknownAuthorHistoryEvents,Ba as acknowledgeUnknownAuthorHistoryEventsFromTransport,Ph as acquireItemMetadataDerivedIndexLock,_r as acquireLock,IE as activateExtensionForTest,Bu as activateExtensions,bt as agentSessionEnvironment,zd as aggregate,vc as analyzeAgentProvenanceDescriptorCoverage,vT as analyzeGraphImpact,GT as analyzeKnowledgeGraph,xA as analyzePmCommandExitConformance,Qt as analyzePmToolActionParity,OC as analyzeReconciliationDiscard,DT as analyzeRelationshipExecution,dc as analyzeRelationshipSchedule,Tl as analyzeSdkActionCoverage,oe as analyzeSdkCliParameterCompleteness,om as append,ur as appendHistoryEntry,gr as appendWorkspaceAuditEvent,Tr as appendWorkspaceHistoryChange,Qf as applyAcceptanceCriteriaMutations,yl as applyBootstrapPagerPolicy,If as applyContextIntentProjection,is as applyContextTagProjection,bg as applyFilterValueEcho,IT as applyHistoryPatch,bl as applyInvocationAuthorOverride,Za as applyPathMigrations,gf as applyReadOutputDimensions,af as applyReadOutputSessionReferences,h_ as applyRegisteredItemFieldDefaultsAndValidation,rp as applyStandaloneNote,Ra as applyStoredExtensionMigrationState,eh as applyTagRemovals,EA as applyTerminalOrderingPolicy,np as artifactKey,mu as asRecordClone,du as asRecordOrNull,V as assembleWorkspaceRelationshipGraph,sy as assertExtensionBlueprint,iy as assertExtensionCapabilityUsage,jE as assertExtensionDeactivated,cy as assertExtensionManifestCompatible,py as assertExtensionManifestMatchesBlueprint,dy as assertExtensionPreflight,GC as assertHistoryCompactTarget,IC as assertHistoryRepairTarget,Jl as assertMemoryRelationshipGraphAdapterConformance,nh as assertNoUnknownCsvKeys,VE as assertPackageManifest,qf as assertParentReferenceIsNotSelf,ay as assertProjectProfile,vy as assertProjectRuntimeCompatibility,G_ as assertProjectionModeChoice,WE as assertRegisteredCommandContract,ZE as assertRegisteredCommandOverride,YE as assertRegisteredExporter,BE as assertRegisteredFlags,$E as assertRegisteredHook,XE as assertRegisteredImporter,qE as assertRegisteredItemField,JE as assertRegisteredItemType,oy as assertRegisteredMigration,ey as assertRegisteredParserOverride,ty as assertRegisteredPreflightOverride,QE as assertRegisteredProfile,ry as assertRegisteredRendererOverride,zE as assertRegisteredSearchProvider,ny as assertRegisteredServiceOverride,KE as assertRegisteredVectorStoreAdapter,Du as assertRelationshipEdgeAllowed,ve as assertRelationshipGraphAdapterConformance,bf as attachContextIntentReceipt,W_ as attachOutputOmissionReceipt,wf as attachOutputTokenAccounting,Pf as attachReadOutputContracts,pf as attachReadOutputSessionReceipt,ma as auditMergeAttributeFence,WA as auditMergeDriverConfiguration,Fs as auditWorkspaceRelationshipGraph,It as boundAgentEpisodeIdentity,rf as boundReadOutputRows,ts as buildChildrenByParent,iC as buildCompactSearchFilterSummary,Pg as buildContentFilterEcho,eA as buildContextSignalSnapshot,Ml as buildCorpusShapeItemPlan,Ea as buildExtensionDescribeResult,wg as buildGovernanceMissingFilterEcho,_h as buildInvalidTypeError,zA as buildItemChildrenRollup,lE as buildItemCompletionMutations,kg as buildItemContextRelevanceCandidates,vh as buildItemNotFoundError,XA as buildItemSchedule,ca as buildMergeAttributePatterns,di as buildPmActionToolInputSchema,UC as buildRelationshipContext,Hh as buildSearchCorpus,Vh as buildSemanticCorpusInput,Xh as buildVectorizationEmbeddingIdentity,Yh as buildVectorizationEmbeddingMetadata,sC as buildVerboseSearchFilters,aA as buildWorkspaceMemorySnapshot,Rt as canonicalDocument,Ou as canonicalizeCommandOptionKey,Lu as canonicalizeRelationshipKind,OE as checkExtensionManifestCompatibility,Hm as claim,jm as claimNext,QA as classifyHistoryAuthorEvent,LC as classifyHostEnvironmentFault,_C as classifyImplicitSemanticFallbackReason,At as classifyItemFormatVersion,ed as classifyLinkedTestFailure,a_ as clearActiveExtensionHooks,Tc as clearDurableGraphCache,lT as clearFocusedItem,Ri as clearWorkspaceContractsCache,Um as close,_s as closeItem,Ym as closeTask,Rl as coalesceRepeatedListFlags,lg as collectBlockedByIds,_g as collectBlockedByIdsFromCorpus,Os as collectDanglingDependencyReferences,hg as collectDependencyBlockedIds,Ss as collectDuplicateDependencyRows,Gs as collectDuplicateRelationshipEdgeGroups,uC as collectErrorCauseCodes,Rs as collectMissingDependencyTargetIds,Hs as collectNewOrderingCycleWarnings,Ds as collectOrderingCycles,QT as collectPackageContextIntentContracts,de as collectPackageExtensionDirectories,__ as collectRegisteredItemFieldNames,y_ as collectRuntimeCreateFieldValues,fh as collectRuntimeFilterValues,S_ as collectRuntimeUpdateFieldValues,qi as collectSubtreeIds,pt as collectUsedExtensionCapabilities,Ru as commandOptionFlagLabel,Yd as comments,bd as commitImportedItem,uE as commitItemCompletion,mE as commitItemMutations,HT as commitWorkspaceTransaction,On as compactFlagAliasContracts,Ji as compareCriticalItems,L as comparePmDateVersions,FT as compareRelationshipSnapshots,lu as compareTimestampStrings,cg as compileHistoryProvenanceMatcher,Of as composeContextIntentContracts,TE as composeExtension,SE as composeExtensionPackage,Tg as computeActionabilityReport,Wf as computeHistoryDiff,pc as computeRelationshipCentrality,ks as computeRelationshipDominators,nc as computeWorkspaceGraphFingerprint,sm as config,s_ as consumeAfterCommandAffectedItems,jd as context,xf as contextIntentRowId,Wm as copy,td as countFailureCategories,ef as countReadOutputRows,Gm as create,_u as createCheckpointId,$u as createCoreCommandHookContext,Ne as createCorpusShapeMeasurement,Gu as createEmptyExtensionRegistrationRegistry,Ci as createExtensionCommandSdk,st as createExtensionContributionInventory,my as createExtensionTestHarness,lr as createHistoryEntry,_T as createLazyModule,Dh as createMutationGuardSdk,F_ as createOutputOmissionReceipt,Ti as createPmCliExpectedError,Pl as createPmCliProgram,ar as createPmCommandOutputBudget,$_ as createQueryFingerprint,ql as createRelationshipGraphScaleFixture,O as createRelationshipGraphSnapshot,Z as createRelationshipKindRegistry,aC as createSearchCursorFingerprint,zu as createSerialQueue,oh as createStdinTokenResolver,vp as createWorkspaceSnapshot,NE as deactivateExtensionForTest,SS as declineServiceOverride,Nf as decodeContextIntentCursor,uT as decodeHtmlEntitiesInOptions,X_ as decodeQueryCursor,K_ as decodeQueryCursorState,ip as dedupeLinkedArtifacts,vg as defaultScoreContextCandidates,bS as defineAfterCommandHook,NS as defineBeforeCommandHook,xS as defineBeforeMutationHook,mS as defineCommand,gS as defineCommandOverride,C as defineCorpusShape,IS as defineExporter,fE as defineExtension,hE as defineExtensionBlueprint,cS as defineExtensionManifest,lS as defineFlag,RS as defineImporter,_S as defineItemField,uS as defineItemType,fS as defineMigration,LS as defineOnIndexHook,wS as defineOnReadHook,PS as defineOnWriteHook,AS as defineParserOverride,pr as definePmCommandOutputBudget,XC as definePmCommandOutputEnvelope,WC as definePmErrorCodeCatalog,CS as definePreflightOverride,dS as defineProjectProfile,OS as defineRendererOverride,hS as defineSearchProvider,ES as defineServiceOverride,TS as defineVectorStoreAdapter,be as defineWorkspaceRecipe,Bm as deleteItem,Vp as deleteWorkspaceSnapshot,vu as dependencyToRelationship,rm as deps,AE as deriveExtensionCapabilities,bA as derivePmBulkMutationEffect,fa as deriveSchemaEvolutionMigrationId,nT as deriveTelemetryCommandResolution,Ah as describeAllowedTransitions,HA as describeExtensionActivation,CE as describeExtensionBlueprint,Ui as describeItemOwnershipConflict,Te as describeProfileComposition,ge as describeProjectProfile,eE as describeUnknownError,Dt as detectAgentIdentity,Ut as detectHarnessIdentity,Ls as detectRelationshipCommunities,vt as diagnoseAgentIdentity,Us as diffRelationshipAuditSnapshots,Yc as diffTestRunMeasurements,Vu as discoverExtensions,tt as discoverNearbyPmRoot,Bl as discoverProjectRuntimeVersionPins,tm as docs,Xd as duplicates,uc as durableGraphCachePath,gc as durableGraphCacheStatus,Tt as effectiveItemFormatVersion,ST as emitTelemetryErrorEvent,xd as emptyImportedDocument,z_ as encodeQueryCursor,Bf as enforceHistoryStreamPolicyForItem,$f as enforceHistoryStreamPolicyForItems,HC as enrichCliFlagInvocationContract,jC as enrichCliFlagInvocationContracts,xT as ensureMaterializedHistoryTarget,Oi as ensurePmGitignore,Xa as ensureScope,rT as ensureSentryInit,Nd as ensureTrackerInitialized,Ps as enumerateRelationshipPaths,mr as estimatePmOutputTokens,Hg as evaluateContextRanking,wr as evaluateMutationGuard,jc as evaluateProvenanceCoverage,Bs as evaluateSimilarityGovernance,gh as evaluateTransition,Wh as executeEmbeddingBatchesWithRetry,zh as executeVectorDelete,Kh as executeVectorReset,$h as executeVectorUpsert,vl as executeWorkspaceRecipe,tp as expandAddGlobEntries,qm as extension,Qm as extensionActivate,Zm as extensionDeactivate,Jm as extensionList,Ql as extensionMigrate,OT as extractPatchFailureContext,up as extractReferencedPmItemIdsFromCommand,Yl as federateRelationshipGraphSnapshots,Qd as files,Zd as filesDiscover,em as filesLookup,Ws as findDuplicateClusters,pa as findGitWorkspaceRoot,Aa as findInstalledNpmPackageCandidate,Ms as findRedundantRelationshipEdges,cc as findRelationshipCutStructure,Vs as findSimilarItems,yT as finishTelemetryCommand,Au as flattenFlagListValue,Gl as flushTelemetryQueue,zm as focus,ws as forEachMatchedRelationshipEdge,vs as formatDuplicateEdgeGroup,rc as formatProfileApplyHuman,tc as formatProfileLintHuman,Zp as formatProfileListHuman,ec as formatProfileShowHuman,ga as formatSchemaEvolutionMigrationHuman,wm as gc,Sr as generateItemId,Bd as get,n_ as getActiveCommandResult,yf as getActiveContextIntentContracts,dt as getActiveExtensionRegistrations,ul as getContracts,dT as getFocusedItem,ot as getHistoryPath,LT as getItemAt,nt as getItemPath,kr as getMutationActionContract,Si as getPmGitignoreBlock,rt as getSettingsPath,ll as getWorkspaceContracts,hr as getWorkspaceHistoryPath,nm as graph,_c as graphAuditBaselinePath,Uc as groupHistoryByEpisode,yS as handleServiceOverride,ri as hasSubcommandFlagContractsForCommand,qh as hasVectorizationEmbeddingIdentityChanged,Jh as hasVectorizationVectorDimensionChanged,Df as hashDocument,vf as hashEmptyDocument,Pm as health,Is as hierarchyAncestors,Ns as hierarchyDescendants,Dm as historyCompact,vm as historyCompactBulk,pg as historyEntryMatchesProvenance,Lm as historyRedact,Mm as historyRepair,km as historyRepairAll,ug as indexBlockedByIds,Qh as inferConsistentVectorDimension,sr as inferPmOutputBudgetClass,im as init,Ha as inspectHistoryAuthorStream,zl as inspectProjectRuntimeCompatibility,jr as inspectStaleInProgressItems,Gp as inspectWorkspaceSnapshot,_a as installMergeFence,nE as isCommanderError,ki as isErrnoError,MA as isExternalDependencySourceKind,M_ as isHostOutputSuppressed,Lr as isMutationAction,ku as isOrderingRelationshipKind,Xf as isPlaceholderReferenceToken,gi as isPmCliExpectedError,er as isPmExtensionCapabilityContract,rr as isPmExtensionPolicyModeContract,nr as isPmExtensionPolicySurfaceContract,tr as isPmExtensionServiceNameContract,IA as isPmKnownExitCode,JC as isPmMutationReceipt,RA as isPmSuccessfulExitCode,Zt as isPmToolAction,$l as isProjectMutatingInvocation,fT as isPureSnakeCaseAlias,Af as isReadOutputBudgetExceeded,H_ as isReadRowContract,Ua as isRuntimeRecord,gT as isTerminalPlanMode,R_ as isTerminalStatus,$e as isTimestampLiteral,cE as itemDocumentToMutationOptions,KA as itemHasSchedule,Fr as jaccardSimilarity,Jd as learnings,Pu as levenshteinDistanceWithinLimit,wi as limitAnnotationEntries,EE as lintExtensionBlueprint,Ee as lintProjectProfile,Vd as list,Ol as listAliasPluralKeys,Mh as listAllDocumentCandidatesCached,xr as listAllItemMetadata,kh as listAllItemMetadataLight,wl as listBuiltinCorpusShapes,tC as listMergeReceipts,Mr as listMutationActions,bC as listMutationEvents,Nc as listPmCommandsForTier,bc as listPmMcpToolsForProfile,he as listProfiles,Fp as listWorkspaceSnapshots,ZT as loadContextIntentRuntimeLayers,Bp as loadCreateTemplateOptions,Wu as loadExtensions,Cc as loadGraphAuditBaseline,hu as loadMutationCheckpoint,_ as loadRelationshipGraphAdapter,Ir as locateItem,rh as looksLikeGenericKeyValueEntry,tf as mapReadOutputRows,rC as markMergeReceiptReconciled,hh as matchesRuntimeFilters,CT as maybeRunFirstUseTelemetryPrompt,kl as measureCorpusShapePlan,Zf as mergeAdditiveTags,gE as mergeExtensionBlueprints,hC as mergeHistoryStreams,CC as mergeItemDocuments,EC as mergeJsonDocuments,Il as mergeLinkedTestTwoTokenEntries,TC as mergeRelationshipEventStreams,ns as mergeSortedWarnings,TT as migrateItemFilesToFormat,Gh as mutateItem,Ar as mutateWorkspaceJsonWithHistory,$d as next,Pi as normalizeAnnotationTransportOptions,Nl as normalizeBootstrapInvocation,Es as normalizeDependencyGraphTarget,DA as normalizeDependencySeedId,kA as normalizeDependencySourceKind,it as normalizeExtensionContributionInventory,gt as normalizeItemFormatVersion,yr as normalizeItemId,yt as normalizeItemMetadata,Sl as normalizeLegacyExtensionActionSyntax,ep as normalizeLinkedPath,Kf as normalizeParentReferenceValue,_e as normalizeProfileName,Er as normalizeRawItemId,Hf as normalizeReplayPatchOps,Dr as normalizeSimilarityText,O_ as normalizeStatusForRegistry,Et as normalizeStatusInput,C_ as normalizeStatusInputWithRegistry,rE as normalizeThrownExitCode,qd as notes,Be as nowIso,fc as openDurableGraphCache,xs as orderingPredecessors,bs as orderingSuccessors,$g as packContextCandidates,Qi as packRankedContextItems,cl as packageActivate,pl as packageCatalog,dl as packageDeactivate,sl as packageDescribe,ol as packageDoctor,rl as packageInstall,el as packageLifecycle,tl as packageList,il as packageManage,Zl as packageMigrate,al as packageReload,nl as packageUninstall,q_ as paginateQueryRows,Ya as parseAddEntries,qa as parseAddGlobEntries,Mi as parseAnnotationTextInput,sE as parseAtomicMutationControls,El as parseBootstrapCommandName,gl as parseBootstrapGlobalOptions,Cl as parseBootstrapHelpRequest,xl as parseBootstrapTypeValue,Xi as parseContextDepth,Bi as parseContextFocusFields,qT as parseContextIntentDeclarations,Yi as parseContextSections,Zg as parseContextSignalSnapshot,th as parseCsvKv,xp as parseEvalQuerySet,Sc as parseGraphSubcommand,sg as parseHistoryProvenanceFilters,tg as parseIntegerLimit,I_ as parseItemDocument,aE as parseItemMutationBatch,uh as parseLimit,ta as parseLinkedTestAssertionEqualsMap,ra as parseLinkedTestAssertionGteMap,qs as parseLinkedTestBoolean,Js as parseLinkedTestContextMode,Ys as parseLinkedTestEnvClear,Xs as parseLinkedTestEnvSet,na as parseLinkedTestJsonEntries,ea as parseLinkedTestMinLines,Zs as parseLinkedTestRegexList,Qs as parseLinkedTestStringList,Qa as parseMigrateEntries,gg as parseMultiValueFilter,QC as parseMutationReceipt,sh as parseOptionalNonNegativeInteger,ih as parseOptionalNumber,rg as parsePriority,Eg as parsePriorityFilterSet,sf as parseReadOutputSession,f_ as parseRegisteredItemFieldAssignments,N as parseRelationshipGraphSnapshot,Ja as parseRemoveEntries,ch as parseStatusFilterCsv,Ag as parseStringFilterSet,Or as parseTags,Kc as parseTestRunMeasurements,ng as parseType,Cg as parseTypeFilterSet,Wa as parseUnknownAuthorHistoryEventCoordinates,fA as partitionDecisionEntries,Vf as patchPathToChangedField,He as pathExists,Xm as pauseTask,hc as persistDurableGraphResult,Ch as persistSelectedItemFormat,iA as planCompletedAtBackfill,ye as planProfileApplication,aS as planRelationshipEventBackfill,yc as planRelationshipRemediation,ha as planSchemaEvolutionMigration,Up as planWorkspaceSnapshotRestore,RE as preflightExtension,Gr as prepareSimilarityText,kf as printError,Mf as printResult,Om as profile,Nm as profileApply,xm as profileLint,Rm as profileList,Im as profileShow,i_ as projectAfterCommandItemSnapshot,$i as projectContextFocusRows,$c as projectFleetAttributionAnalytics,ag as projectHistoryProvenance,Wc as projectProvenanceCoverageAnalytics,_p as projectValidateCounts,Py as pruneCompileCacheGenerations,Ih as queryItemMetadataIndex,Nh as queryLinkedFileMetadataIndex,xh as querySimilarItemMetadataIndex,Xc as queryTestRunMeasurementsBelow,ls as quoteCommandArg,ms as quoteWindowsCommandArg,Li as readAnnotationEntries,Gt as readAuthorEnvironment,pd as readBooleanOption,qg as readContextUsageAffinity,cd as readCsvListOption,Oa as readExtensionMigrationState,je as readFileIfExists,qr as readFirstStringFromCommanderOptions,Jr as readFirstValueFromCommanderOptions,Hc as readHistoryAnalyticsWindow,P_ as readHistoryEntries,kc as readImprovementLedger,wh as readItemMetadataDerivedIndexState,Nr as readLocatedItem,Z_ as readOutputRowCollections,Q_ as readOutputRowPaths,cf as readOutputSessionRemainingTokens,ce as readPmPackageManifest,_l as readRequiredString,Rr as readSettings,Eh as readSettingsWithMetadata,Qr as readStringArrayFromCommanderOptions,ad as readStringOption,tE as readThrownExitCode,Zh as readVectorizationStatusLedger,JT as readWorkspaceContextIntentContracts,nA as readWorkspaceContextSignals,pA as readWorkspaceMemory,ct as reconcileExtensionCapabilityUsage,o_ as recordAfterCommandAffectedItem,Kg as recordContextUsageServing,Xg as recordContextUsageTouch,Yg as recordContextUsageTouches,Mc as recordImprovementObservation,Lh as refreshItemMetadataDerivedIndex,la as refreshMergeAttributeFenceIfInstalled,tT as refreshSearchArtifactsForMutation,Lt as registerHarnessSignalDescriptors,Vm as release,We as removeFileIfExists,pp as renameArtifactsResultKey,ji as renderCalendarMarkdown,Vi as renderCalendarToon,os as renderContextMarkdown,ya as renderExtensionDescribeMarkdown,Ca as renderExtensionSurfaceMarkdown,Ld as renderGuideMarkdown,hA as renderNextMarkdown,us as renderPmCommand,Lc as renderPmCommandVisibilityMarkdown,mh as renderRowsAsCsv,lh as renderRowsAsTable,NT as replayHistoryToTarget,Ff as replayToCanonicalItemDocument,Gf as replayToItemDocument,AA as requireTerminalReason,CA as requireTerminalReasonWithRecovery,e_ as resetActiveExtensionRuntimeState,sc as resetWorkspaceGraphCache,Nt as resolveAgentSessionContextFromSignals,Fi as resolveAnnotationIndex,Di as resolveAnnotationInput,b_ as resolveAuthor,Ht as resolveAuthorIdentity,zf as resolveBodyFileContent,Ll as resolveBuiltinCorpusShape,Hi as resolveCalendarOutputFormat,BC as resolveCanonicalPmErrorCodeContract,Mu as resolveCanonicalRelationshipKind,x_ as resolveClaimPrincipal,xu as resolveCommandOptionPolicyState,by as resolveCompileCacheGeneration,oA as resolveCompletionTimestamp,yu as resolveConfiguredPmPackageRoot,Sg as resolveContentFieldFilters,Rf as resolveContextIntentContract,zi as resolveContextOutputFormat,Ki as resolveContextTokenBudget,Fh as resolveEmbeddingProviders,xa as resolveExtensionInstallSourceIdentity,Sa as resolveExtensionMigrationStatePath,ju as resolveExtensionRoots,gu as resolveFlagValueKind,Pd as resolveGuideOutputFormat,Dc as resolveHistoryEpisodeGroupIdentity,ig as resolveHistoryProvenanceDimensions,bT as resolveHistorySubject,RT as resolveHistoryTarget,mC as resolveHybridSemanticWeight,et as resolveImplicitPmRoot,uu as resolveIsoOrRelative,fg as resolveItemBlockers,pE as resolveItemMutationDocument,Ze as resolveItemTypeRegistry,A_ as resolveItemTypesFilePath,rd as resolveLinkedTestFailureExitCode,aa as resolveMergeInstallContext,yg as resolveMissingMetadataFilters,U_ as resolveModePairedOutputOmissionReceipt,uA as resolveNextOutputFormat,V_ as resolveOutputOmissionReceipt,Eu as resolvePmCliVersion,NA as resolvePmCommandExitContract,dr as resolvePmCommandOutputBudget,qC as resolvePmCommandOutputEnvelope,Ic as resolvePmCommandVisibilityTier,$C as resolvePmErrorCodeContract,Cu as resolvePmPackageRootFromModule,H as resolvePmRoot,si as resolvePmToolCustomFieldCollision,ah as resolvePriority,fe as resolveProfile,da as resolveProjectMergeTypeFolders,Y_ as resolveQueryCursorStart,Tf as resolveReadOutputDimensions,Cf as resolveReadOutputEncoding,ff as resolveReadOutputSurface,j_ as resolveReadRowContract,T_ as resolveRegisteredSearchProvider,g_ as resolveRegisteredVectorStoreAdapter,_t as resolveRuntimeFieldRegistry,ut as resolveRuntimeStatusRegistry,Uh as resolveSearchCorpusFields,cC as resolveSearchMaxResults,pC as resolveSearchPage,dC as resolveSearchScoreThreshold,lC as resolveSearchTuning,jh as resolveSemanticCorpusCharacterLimit,Sh as resolveSettingsWithSemanticRuntimeDefaults,UA as resolveSourceContextWritePolicy,sd as resolveStartTaskInProgressStatus,ni as resolveSubcommandFlagContractsForCommand,au as resolveTelemetryErrorCategory,gA as resolveTerminalReason,Nu as resolveTypeDefinition,Iu as resolveTypeName,dh as resolveTypeSynonym,Th as resolveTypeWorkflows,Va as resolveUnknownAuthorAcknowledgmentSelector,Bh as resolveVectorStores,ys as resolveWorkspaceRelationshipKindRegistry,$m as restore,Tu as restoreCheckpointItems,jp as restoreWorkspaceSnapshot,Hp as restoreWorkspaceSnapshotWithRecovery,hl as runAction,p_ as runActiveBeforeMutationHooks,d_ as runActiveCommandHandler,c_ as runActiveOnIndexHooks,lt as runActiveOnReadHooks,mt as runActiveOnWriteHooks,m_ as runActiveParserOverride,l_ as runActivePreflightOverride,u_ as runActiveServiceOverride,Ii as runActivity,Hu as runAfterCommandHooks,xi as runAggregate,Gi as runAnnotationCommand,bi as runAppend,Uu as runBeforeCommandHooks,Wi as runCalendar,ps as runClaim,cs as runClaimNext,fs as runClose,Ts as runCloseMany,gs as runComments,Md as runCompletion,Tp as runConfig,se as runContext,Wg as runContextEvaluationCorpus,jg as runContextEvaluationScenario,ka as runCopy,oa as runCreate,Da as runDelete,ac as runDeps,cp as runDocs,ZC as runDuplicates,wp as runEval,Mp as runEvent,ba as runExtension,Na as runExtensionMigrateAction,Ia as runExtensionMigrations,dp as runFiles,lp as runFilesDiscover,mp as runFilesLookup,Bc as runFleetAttributionAnalytics,va as runFocus,Fa as runGc,Ga as runGet,Oc as runGraph,wd as runGuide,za as runHealth,PA as runHistory,DC as runHistoryCompact,FC as runHistoryCompactBulk,PT as runHistoryRedact,RC as runHistoryRepair,NC as runHistoryRepairAll,Op as runInit,Ep as runInitAgentGuidance,As as runLearnings,ap as runLinkedArtifacts,nd as runLinkedTests,Ni as runList,Lp as runMeet,SC as runMergeDriver,ua as runMergeInstall,nC as runMergeReceiptReport,xC as runMergeReconcile,as as runNext,Cs as runNotes,Ma as runPlan,Qp as runProfileApply,Jp as runProfileLint,Yp as runProfileList,qp as runProfileShow,Vc as runProvenanceCoverageAnalytics,xE as runRegisteredCommandForTest,ME as runRegisteredCommandOverrideForTest,HE as runRegisteredExporterForTest,PE as runRegisteredHookForTest,UE as runRegisteredImporterForTest,FE as runRegisteredMigrationForTest,bE as runRegisteredMutationGuardForTest,wE as runRegisteredParserOverrideForTest,LE as runRegisteredPreflightOverrideForTest,kE as runRegisteredRendererOverrideForTest,vE as runRegisteredSearchProviderForTest,DE as runRegisteredServiceOverrideForTest,GE as runRegisteredVectorStoreAdapterForTest,Se as runReindex,ds as runRelease,kp as runRemind,hs as runRestore,Ta as runSchemaEvolutionMigration,bp as runSearch,Dl as runSearchRefreshWorkerEntrypoint,kd as runStartBackgroundRun,qc as runStats,Qc as runTelemetry,zp as runTemplatesList,$p as runTemplatesSave,Kp as runTemplatesShow,od as runTest,id as runTestAll,Dd as runTestRunsList,Gd as runTestRunsLogs,Ud as runTestRunsResume,vd as runTestRunsStatus,Fd as runTestRunsStop,Hd as runTestRunsWorker,ia as runUpdate,sa as runUpdateMany,me as runUpgrade,hp as runValidate,fl as runWithActiveExtensions,xt as runWithAgentSessionContext,Sf as runWithContextIntentContracts,eg as runWithDiscoveredContextIntentContracts,Mt as runWithHarnessDetectionSignals,kt as runWithWorkspaceHarnessSignalDescriptors,Pe as runWithWorkspaceRecipe,qA as runWorkspaceTransactionGc,Ec as saveGraphAuditBaseline,ja as scanHistoryAuthorAttribution,Ct as scanItemFormatVersions,Pr as scanMutationSecrets,ZA as scanProvenanceResolverHealth,Vr as scanStaleInProgressItems,oC as scanStorageIntegrity,am as schema,_m as schemaAddField,lm as schemaAddStatus,dm as schemaAddType,gm as schemaApplyPreset,Am as schemaInferTypes,pm as schemaList,hm as schemaListFields,ym as schemaRemapStatus,fm as schemaRemoveField,um as schemaRemoveStatus,mm as schemaRemoveType,Em as schemaRenameField,Cm as schemaRenameType,cm as schemaShow,Tm as schemaShowField,Sm as schemaShowStatus,Gg as scoreContextCandidates,Fg as scoreContextCandidatesWithActiveExtensions,Ur as scoreItemSimilarity,Hr as scorePreparedItemSimilarity,Wd as search,mA as searchWorkspaceMemory,lA as searchWorkspaceMemoryReadResult,B_ as selectCursorSemanticOptions,Id as selectImportAuthor,dA as selectWorkspaceMemory,cA as selectWorkspaceMemoryRollups,aT as sentryCaptureCliError,sT as sentryFinishCommandSpan,cT as sentryFlush,pT as sentryLogCliUsageError,oT as sentrySetCommandContext,iT as sentryStartCommandSpan,Ot as serializeItemDocument,iE as serializeNdjsonRows,t_ as setActiveCommandContext,r_ as setActiveCommandResult,Xu as setActiveExtensionCommands,Ku as setActiveExtensionHooks,Yu as setActiveExtensionParsers,qu as setActiveExtensionPreflight,Zu as setActiveExtensionRegistrations,Qu as setActiveExtensionRenderers,Ju as setActiveExtensionServices,mT as setFocusedItem,AT as shouldCompletePlanOnClose,Ac as shouldPersistDurableGraphCache,Rh as shouldRunSearchRefreshInForeground,js as similarityAdvisoryWarnings,op as sortLinkedArtifacts,Jf as splitAcceptanceCriteria,hT as splitCommaList,St as splitFrontMatter,b as stableStringify,Fu as stableValueEquals,Km as startTask,ET as startTelemetryCommand,Kd as stats,E_ as statusIsTerminal,Al as stripGlobalBootstrapTokens,PC as subscribeMutationEvents,Gc as summarizeAgentModelProvenance,Fc as summarizeAgentProvenance,Vg as summarizeContextEvaluationReports,Zc as summarizeContextPreflight,dg as summarizeHistoryProvenance,yp as summarizeInitResult,eC as summarizeMergeReceipt,L_ as suppressHostOutput,v as syncRelationshipGraphAdapter,yE as synthesizeExtensionManifest,oi as toCompletionFlagString,rs as toContextFocusItem,Zi as toContextPackingSummary,es as toContextRankingSummary,cu as toErrorMessage,md as toEstimatedMinutesValue,zT as toExtensionFlagDefinitions,hd as toImportBoolean,Cd as toImportConfidence,fd as toImportInteger,Od as toImportLinkedDocs,Sd as toImportLinkedFiles,Rd as toImportLinkedTests,yd as toImportLogEntries,Ed as toImportNormalizedEnum,Ad as toImportNumberMap,ld as toImportPriority,_d as toImportStatus,Td as toImportStringList,gd as toImportStringMap,ud as toImportTags,N_ as toItemRecord,dd as toNonEmptyImportString,pu as toNonEmptyStringOrUndefined,Uf as toReplayDocument,vr as tokenizeSimilarityText,MC as translateHostEnvironmentFault,Fm as update,ml as upgrade,bm as validate,dE as validateItemMutationRows,sp as validateLinkedPaths,Yf as validateMissingParentReference,hf as validateReadOutputOptions,ph as validateSprintOrReleaseValue,bu as validateTypeOptions,jf as verifyHistoryChain,wT as verifyHistoryEntries,Sn as withFlagAliasMetadata,kC as withHostEnvironmentBoundary,ic as workspaceGraphCache,vi as wrapOwnershipConflict,oE as wrapThrownErrorForSentry,Ft as writeAuthorEnvironment,Ve as writeFileAtomic,fu as writeMutationCheckpoint,yh as writeSettings,Lf as writeStdout,eT as writeVectorizationStatusLedger,Cr as writeWorkspaceJsonWithHistory};
|
|
1
|
+
import{a as iE,b as sE,c as aE,d as pE,e as cE,f as dE,g as mE,h as gl,i as Al,j as Cl,k as El,l as yl,m as Sl,n as Ol,o as Rl,p as Il,q as Nl,r as xl,s as bl,t as Pl,u as lE,v as uE,w as fE,x as _E}from"./chunks/chunk-TSLDTJLQ.js";import{A as QE,B as ZE,C as ey,D as ty,E as ry,F as ny,G as oy,H as iy,I as sy,J as ay,K as py,L as cy,M as dy,N as my,O as ly,P as uy,Q as fy,R as _y,S as hy,T as Ty,U as gy,V as Ay,W as Cy,X as Ey,Y as yy,a as IE,b as NE,c as xE,d as bE,e as PE,f as wE,g as LE,h as ME,i as kE,j as DE,k as vE,l as GE,m as FE,n as UE,o as HE,p as jE,q as VE,r as WE,s as BE,t as $E,u as zE,v as KE,w as XE,x as YE,y as qE,z as JE}from"./chunks/chunk-TRWXF476.js";import{a as hE}from"./chunks/chunk-OAC5NIV4.js";import{a as TE,b as gE,c as AE,d as CE,e as EE,f as yE,g as SE,h as OE,i as RE}from"./chunks/chunk-MENWVGJW.js";import{$ as Te,$a as Vd,$b as Vm,A as Cs,Aa as dd,Ab as _m,Ac as _l,B as sa,Ba as md,Bb as hm,Bc as hl,C as Pa,Ca as ld,Cb as Tm,Cc as Tl,D as wa,Da as ud,Db as gm,E as La,Ea as fd,Eb as Am,F as Ma,Fa as _d,Fb as Cm,G as ka,Ga as hd,Gb as Em,H as Da,Ha as Td,Hb as ym,I as va,Ia as gd,Ib as Sm,J as EC,Ja as Ad,Jb as Om,K as yC,Ka as Cd,Kb as Rm,L as SC,La as Ed,Lb as Im,M as OC,Ma as yd,Mb as Nm,N as RC,Na as Sd,Nb as xm,O as IC,Oa as Od,Ob as bm,P as NC,Pa as Rd,Pb as Pm,Q as xC,Qa as Id,Qb as wm,R as bC,Ra as Nd,Rb as Lm,S as PC,Sa as xd,Sb as Mm,T as wC,Ta as bd,Tb as km,U as LC,Ua as Pd,Ub as Dm,V as MC,Va as wd,Vb as vm,W as le,Wa as Ld,Wb as Gm,X as ue,Xa as Md,Xb as Fm,Y as fe,Ya as Se,Yb as Um,Z as _e,Za as P,Zb as Hm,_ as he,_a as jd,_b as jm,a as hi,aa as ge,ab as Wd,ac as Wm,b as Ti,ba as Ae,bb as Bd,bc as Bm,c as gi,ca as Ce,cb as $d,cc as $m,d as MT,da as Ee,db as zd,dc as zm,e as kT,ea as ye,eb as Kd,ec as Km,f as Ci,fa as Wp,fb as Xd,fc as Xm,g as jT,ga as Bp,gb as Yd,gc as Ym,h as VT,ha as $p,hb as qd,hc as qm,i as WT,ia as zp,ib as Jd,ic as Jm,j as BT,ja as Kp,jb as Qd,jc as Qm,k as $T,ka as Xp,kb as Zd,kc as Zm,l as zT,la as Yp,lb as em,lc as el,m as KT,ma as qp,mb as tm,mc as tl,n as XT,na as Jp,nb as rm,nc as rl,o as Ri,oa as Qp,ob as nm,oc as nl,p as YT,pa as Zp,pb as om,pc as ol,q as qT,qa as ec,qb as im,qc as il,r as JT,ra as tc,rb as sm,rc as sl,s as QT,sa as rc,sb as am,sc as al,t as ZT,ta as HC,tb as pm,tc as pl,u as eg,ua as jC,ub as cm,uc as cl,v as bi,va as VC,vb as dm,vc as dl,w as hs,wa as WC,wb as mm,wc as ml,x as Ts,xa as ad,xb as lm,xc as ll,y as gs,ya as pd,yb as um,yc as ul,z as As,za as cd,zb as fm,zc as fl}from"./chunks/chunk-EBO7OUUE.js";import{a as me,f as Tp,g as gp}from"./chunks/chunk-S4EITGLA.js";import{$ as yc,A as TC,B as gC,C as AC,D as CC,E as bp,F as Pp,G as wp,H as nc,I as oc,J as ic,K as sc,L as BC,M as ac,N as pc,O as cc,P as dc,Q as mc,R as lc,S as uc,T as fc,U as _c,V as hc,W as Tc,X as gc,Y as Ac,Z as Cc,_ as Ec,a as DT,aa as Sc,b as vT,ba as Oc,c as GT,d as FT,f as xi,g as Lg,h as wA,i as YA,j as qA,k as JA,l as QA,m as ZA,n as Ga,o as eC,p as Rp,q as Ip,r as Np,s as xp,t as dC,u as mC,v as lC,w as uC,x as fC,y as _C,z as hC}from"./chunks/chunk-JZSNADRR.js";import{$ as ia,$a as ip,$b as Uc,A as bA,Aa as Ha,Ab as zC,Ac as Fd,B as PA,Ba as ja,Bb as Rc,Bc as Ud,Ca as Va,Cb as Ic,Cc as Hd,D as Hs,Da as Wa,Db as Nc,E as js,Ea as Ba,Eb as xc,F as GA,Fa as $a,Fb as bc,G as Vs,Ga as oC,Gb as Pc,H as Ws,Ha as iC,Hb as wc,I as Bs,Ib as Lc,J as $s,Ja as sC,Jb as KC,K as zs,Kb as XC,L as Ks,La as aC,Lb as YC,M as Xs,Ma as pC,Mb as qC,N as Ys,Na as za,Nb as JC,O as qs,Oa as Ka,Ob as QC,P as Js,Pa as cC,Pb as ZC,Q as Qs,Qa as Xa,Qb as eE,R as Zs,Ra as Ya,Rb as tE,S as ea,Sa as qa,Sb as rE,T as ta,Ta as Ja,Tb as nE,U as ra,Ua as Qa,V as na,Va as Za,Vb as Mc,W as jA,Wa as ep,Wb as kc,X as VA,Xa as tp,Xb as Dc,Y as oa,Ya as rp,Yb as vc,Za as np,Zb as Gc,_a as op,_b as Fc,a as Pi,aa as tC,ab as sp,ac as Hc,b as wi,ba as Fa,bb as ap,bc as jc,c as Li,cb as pp,cc as Vc,d as Mi,db as cp,dc as Wc,e as ki,eb as dp,ec as Bc,f as Di,fb as mp,fc as $c,g as vi,ga as Ua,gb as lp,gc as zc,h as Gi,hb as up,hc as Kc,i as Fi,ib as fp,ic as Xc,j as Ui,jb as _p,jc as Yc,k as ps,kb as hp,kc as qc,l as cs,lb as Lp,lc as oE,m as ds,mb as Mp,mc as Jc,n as gA,nb as kp,nc as Qc,o as AA,ob as GC,oc as Zc,p as CA,pb as FC,pc as ed,q as EA,qb as UC,qc as td,r as yA,rb as Dp,rc as rd,s as fs,sb as vp,sc as nd,t as _s,tb as Gp,tc as od,u as SA,ub as Fp,uc as id,v as OA,vb as Up,vc as sd,w as RA,wb as Hp,wc as kd,x as IA,xb as jp,xc as Dd,y as NA,ya as rC,yb as Vp,yc as vd,z as xA,za as nC,zb as $C,zc as Gd}from"./chunks/chunk-2QYH4QMI.js";import{A as ua,Aa as ya,B as fa,Ea as Sa,Fa as Oa,Ga as Ra,Ha as Ia,Ia as Na,Ja as xa,Ka as ba,L as _a,La as Ap,M as ha,Ma as Cp,N as Ta,Na as Ep,O as ga,Oa as yp,Pa as Sp,Qa as Op,a as UT,b as HT,c as Ei,d as yi,f as Si,g as Oi,h as ms,i as ls,j as us,l as FA,m as UA,n as HA,o as WA,p as BA,q as $A,r as zA,s as KA,sa as ae,t as aa,ta as pe,u as pa,ua as ce,v as ca,va as de,w as da,wa as Aa,x as ma,y as XA,ya as Ca,z as la,za as Ea}from"./chunks/chunk-ETML5C6H.js";import{$ as Hi,$a as os,A as fg,Aa as rA,Ab as Ls,B as _g,Ba as nA,Bb as Ms,C as hg,Ca as oA,Cb as ks,D as Tg,Da as iA,Db as Ds,E as gg,Ea as sA,Eb as vs,F as Ag,Fa as aA,Fb as Gs,G as Cg,Ga as pA,Gb as Fs,H as Eg,Ha as cA,Hb as Us,Ia as dA,Ja as mA,Jb as kC,Ka as lA,Kb as DC,La as uA,Lb as vC,Ma as ie,Na as Bi,Oa as $i,Pa as zi,Q as yg,Qa as Ki,R as Sg,Ra as Xi,S as Og,Sa as Yi,T as Rg,Ta as qi,U as Ig,Ua as Ji,V as Ng,Va as Qi,W as xg,Wa as Zi,X as bg,Xa as es,Y as Pg,Ya as ts,Z as wg,Za as rs,_ as Ni,_a as ns,a as OT,aa as ji,ab as is,b as RT,ba as Vi,bb as se,c as IT,ca as Wi,cb as ss,d as NT,da as Mg,db as fA,e as xT,ea as kg,eb as _A,fa as Dg,fb as hA,ga as vg,gb as as,h as bT,ha as Gg,hb as TA,i as PT,ia as Fg,ib as LA,j as Ai,ja as Ug,jb as MA,k as wT,ka as Hg,kb as kA,l as LT,la as jg,lb as DA,m as tg,ma as Vg,mb as vA,n as rg,na as Wg,nb as Es,o as ng,oa as Bg,ob as ys,p as og,pa as $g,pb as Ss,q as ig,qa as zg,qb as Os,r as sg,ra as Kg,rb as Rs,s as ag,sa as Xg,sb as V,t as pg,ta as Yg,u as cg,ua as qg,ub as Is,v as dg,va as Jg,vb as Ns,w as Ii,wa as Qg,wb as xs,x as mg,xa as Zg,xb as bs,y as lg,ya as eA,yb as Ps,z as ug,za as tA,zb as ws}from"./chunks/chunk-TIGKWVLA.js";import{$ as Cu,$b as $u,$c as _t,$d as Yf,$e as ir,$f as eh,$g as kh,$h as Hr,$i as In,$j as No,A as su,Aa as Su,Ad as Gt,Ae as y_,Ag as _h,Ah as Zh,Ai as Qr,Aj as Zn,Ak as ei,B as F,Ba as Ou,Bb as Gu,Bc as df,Bd as Ft,Be as S_,Bg as hh,Bh as eT,Bi as Zr,Bj as eo,Bk as ti,C as au,Ca as Ru,Cb as it,Cc as mf,Cd as Ut,Ce as O_,Cf as V_,Cg as Th,Ch as re,Ci as en,Cj as to,Ck as ri,D as U,Db as st,Dc as lf,Dd as Ht,De as R_,Df as W_,Dg as gh,Dh as tT,Di as tn,Dj as ro,Dk as ni,Eb as b,Ec as uf,Ed as bf,Ee as I_,Ef as B_,Eg as Ah,Eh as rT,Ei as rn,Ej as no,Ek as oi,F as pu,Fa as Ze,Fb as Fu,Fc as ff,Fd as Pf,Fe as N_,Ff as $_,Fh as nT,Fi as nn,Fj as oo,Fk as ii,G as cu,Ga as Iu,Gc as ee,Gd as wf,Ge as x_,Gf as fr,Gh as oT,Gi as on,Gj as io,Gk as si,Ha as Nu,Hb as Uu,Hc as _f,He as b_,Hf as _r,Hg as Ch,Hh as iT,Hi as sn,Hj as so,Hk as ai,Ia as xu,Ic as hf,Ie as P_,If as hr,Ig as Eh,Ih as sT,Ii as an,Ij as ao,Ik as pi,J as du,Ja as bu,Jb as Hu,Jc as Tf,Jd as Lf,Je as jt,Jf as Tr,Jg as Rr,Jh as aT,Ji as pn,Jj as po,Jk as ci,Kc as gf,Kd as Mf,Ke as Vt,Kf as gr,Kg as yh,Kh as pT,Ki as cn,Kj as co,Kk as di,La as et,Lc as Af,Ld as kf,Le as Wt,Lf as Ar,Lg as Sh,Lh as cT,Li as dn,Lj as mo,Lk as mi,M as mu,Ma as tt,Me as Bt,Mf as Cr,Mg as Oh,Mh as dT,Mi as mn,Mj as lo,Mk as li,N as J,Na as H,Nd as Df,Ne as $t,Nf as z_,Ng as Rh,Nh as mT,Ni as ln,Nj as uo,Nk as ui,O as Q,Od as vf,Oe as zt,Og as te,Oh as lT,Oi as un,Oj as fo,Ok as fi,P as Be,Pd as Gf,Pe as Kt,Pf as Er,Pg as Ih,Ph as br,Pi as fn,Pj as _o,Pk as _i,Q as $e,Qa as rt,Qd as Ff,Qe as Xt,Qf as yr,Qg as Nh,Qh as Pr,Qi as _n,Qj as ho,Qk as oe,R as lu,Ra as nt,Rd as Uf,Re as Yt,Rf as Sr,Rg as xh,Rh as wr,Ri as hn,Rj as To,Sc as Cf,Sd as Hf,Se as qt,Sg as bh,Sh as Lr,Si as Tn,Sj as go,T as uu,Ta as ot,Td as jf,Te as Jt,Tf as K_,Th as Mr,Ti as gn,Tj as Ao,U as fu,Uc as ut,Ud as Vf,Ue as Qt,Uf as X_,Ug as Ph,Uh as kr,Ui as An,Uj as Co,V as _u,Vc as Ef,Vd as Wf,Ve as Zt,Vf as Y_,Vg as wh,Vi as Cn,Vj as Eo,W as hu,Wb as ju,Wc as ft,Wd as Bf,We as er,Wf as q_,Wg as Lh,Wh as Dr,Wi as En,Wj as yo,X as Tu,Xb as Vu,Xd as $f,Xe as tr,Xf as Or,Xg as Mh,Xh as vr,Xi as yn,Xj as So,Y as gu,Yb as Wu,Yc as yf,Yd as zf,Ye as rr,Yf as J_,Yg as Ir,Yh as Gr,Yi as Sn,Yj as Oo,Z as Au,Zc as Sf,Zd as Kf,Ze as nr,Zf as Q_,Zg as Nr,Zh as Fr,Zi as On,Zj as Ro,_b as Bu,_c as Of,_d as Xf,_e as or,_f as Z_,_g as xr,_h as Ur,_i as Rn,_j as Io,aa as Eu,ad as ht,ae as qf,af as sr,ag as th,ai as jr,aj as Nn,ak as xo,ba as yu,bc as zu,bd as Tt,be as Jf,bf as ar,bg as rh,bh as Dh,bi as Vr,bj as xn,bk as bo,c as He,ca as ze,cb as Pu,cc as at,cd as gt,ce as Qf,cf as pr,cg as nh,ch as vh,ci as uT,cj as bn,ck as Po,da as Ke,dd as At,de as Zf,df as cr,dg as oh,dh as Gh,di as fT,dj as Pn,dk as wo,e as je,ea as Xe,ec as pt,ed as Ct,ee as e_,ef as dr,eg as ih,ei as _T,ej as wn,ek as Lo,f as Ve,fc as ct,fd as Et,fe as t_,ff as mr,fg as sh,fi as hT,fj as Ln,fk as Mo,g as We,gd as Rf,ge as r_,gf as w_,gg as ah,gh as Fh,gi as TT,gj as Mn,gk as ko,hc as Ku,hd as If,he as n_,hf as L_,hi as gT,hj as kn,hk as Do,i as eu,ia as Ye,ib as wu,ic as Xu,ie as o_,ig as ph,ih as Uh,ii as AT,ij as Dn,ik as vo,j as tu,jb as j,jc as Yu,jd as yt,je as i_,jf as M_,ji as CT,jj as vn,jk as Go,k as ru,ka as qe,kb as Z,kc as qu,kd as St,ke as s_,kf as k_,kg as ch,kj as Gn,kk as Fo,la as Je,lb as Lu,lc as Ju,ld as Nf,le as a_,lg as dh,lj as Fn,lk as Uo,ma as Qe,mb as Mu,mc as Qu,md as Ot,me as p_,mg as mh,mh as Hh,mj as Un,mk as Ho,nb as ku,nc as Zu,nd as Rt,ne as c_,nf as D_,ng as lh,nh as jh,ni as ne,nj as Hn,nk as jo,ob as Du,oc as dt,od as xf,oe as d_,of as v_,og as uh,oh as Vh,oi as ET,oj as jn,ok as Vo,pb as g,pc as ef,pd as It,pe as m_,pf as lr,ph as Wh,pi as yT,pj as Vn,pk as Wo,qb as vu,qc as tf,qd as Nt,qe as l_,qf as ur,qh as Bh,qi as ST,qj as Wn,qk as Bo,r as nu,rc as rf,rd as xt,re as u_,ri as Wr,rj as Bn,rk as $o,sc as nf,sd as bt,se as f_,sh as $h,si as Br,sj as $n,sk as zo,tc as of,td as Pt,te as __,th as zh,ti as $r,tj as zn,tk as Ko,u as ou,uc as sf,ud as wt,ue as h_,uf as G_,uh as Kh,ui as zr,uj as Kn,uk as Xo,vc as af,vd as Lt,ve as T_,vf as F_,vh as Xh,vi as Kr,vj as Xn,vk as Yo,w as iu,wc as pf,wd as Mt,we as g_,wf as U_,wh as Yh,wi as Xr,wj as Yn,wk as qo,xc as mt,xd as kt,xe as A_,xf as H_,xh as qh,xi as Yr,xj as qn,xk as Jo,yc as cf,yd as Dt,ye as C_,yh as Jh,yi as qr,yj as Jn,yk as Qo,zc as lt,zd as vt,ze as E_,zf as j_,zg as fh,zh as Qh,zi as Jr,zj as Qn,zk as Zo}from"./chunks/chunk-JUDU4RO4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="cc0d4dd1-20e8-59d4-acb5-9f8ed639d35f")}catch{}})();(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fa4eb88d-f50e-59fa-be7f-0cfb42931a73")}catch{}})();var _="https://schema.unbrained.dev/pm/corpus-shape/v1";function A(e,t){if(!Number.isSafeInteger(e)||e<=0)throw new TypeError(`Corpus shape ${t} must be a positive safe integer`);return e}function R(e,t){if(!Number.isSafeInteger(e)||e<0)throw new TypeError(`Corpus shape ${t} must be a non-negative safe integer`);return e}function Re(e){if(!(typeof e!="object"||e===null||Object.isFrozen(e))){for(let t of Object.values(e))Re(t);Object.freeze(e)}}function C(e){if(e.schema!==_)throw new TypeError(`Unsupported corpus shape schema: ${e.schema}`);if(e.name.trim().length===0||e.description.trim().length===0)throw new TypeError("Corpus shape name and description must be non-empty");if(A(e.hierarchy_depth,"hierarchy_depth"),A(e.hierarchy_fanout,"hierarchy_fanout"),R(e.age_span_days,"age_span_days"),A(e.history_entries_per_item,"history_entries_per_item"),R(e.comments_per_100_items,"comments_per_100_items"),R(e.notes_per_100_items,"notes_per_100_items"),R(e.learnings_per_100_items,"learnings_per_100_items"),A(e.author_cardinality,"author_cardinality"),A(e.component_count,"component_count"),e.edge_kind_mix.length===0||e.edge_kind_mix.some(r=>r.kind.trim().length===0||r.weight<=0))throw new TypeError("Corpus shape edge_kind_mix requires non-empty kinds with positive weights");if(e.terminal_statuses.some(r=>!e.custom_statuses.includes(r)))throw new TypeError("Corpus shape terminal_statuses must be declared in custom_statuses");let t=structuredClone(e);return Re(t),t}var w=[{kind:"implements",weight:5},{kind:"blocked_by",weight:2},{kind:"discovered_from",weight:2},{kind:"verifies",weight:2},{kind:"supersedes",weight:1},{kind:"related",weight:4}],E=Object.freeze({scratch:C({schema:_,name:"scratch",description:"Seconds-old, shallow project with minimal history.",hierarchy_depth:2,hierarchy_fanout:50,age_span_days:0,history_entries_per_item:1,comments_per_100_items:2,notes_per_100_items:1,learnings_per_100_items:1,edge_kind_mix:[{kind:"related",weight:1}],author_cardinality:2,component_count:1,include_cycles:!1,custom_types:[],custom_statuses:[],terminal_statuses:[],custom_fields:[]}),representative:C({schema:_,name:"representative",description:"Medium-lived project with rich evidence and typed lineage.",hierarchy_depth:5,hierarchy_fanout:8,age_span_days:730,history_entries_per_item:12,comments_per_100_items:30,notes_per_100_items:12,learnings_per_100_items:10,edge_kind_mix:w,author_cardinality:32,component_count:1,include_cycles:!1,custom_types:["Experiment"],custom_statuses:["review"],terminal_statuses:[],custom_fields:["domain"]}),"deep-graph":C({schema:_,name:"deep-graph",description:"Deep typed relationship graph with deterministic cycles.",hierarchy_depth:16,hierarchy_fanout:2,age_span_days:3650,history_entries_per_item:6,comments_per_100_items:15,notes_per_100_items:8,learnings_per_100_items:8,edge_kind_mix:w,author_cardinality:16,component_count:1,include_cycles:!0,custom_types:[],custom_statuses:[],terminal_statuses:[],custom_fields:[]}),"multi-decade":C({schema:_,name:"multi-decade",description:"Thirty-year event history with dense per-item evolution.",hierarchy_depth:6,hierarchy_fanout:6,age_span_days:10958,history_entries_per_item:24,comments_per_100_items:40,notes_per_100_items:20,learnings_per_100_items:16,edge_kind_mix:w,author_cardinality:64,component_count:1,include_cycles:!1,custom_types:["Program"],custom_statuses:["archived"],terminal_statuses:["archived"],custom_fields:["portfolio"]}),"disconnected-archive":C({schema:_,name:"disconnected-archive",description:"Multiple disconnected historical project components.",hierarchy_depth:4,hierarchy_fanout:10,age_span_days:7305,history_entries_per_item:8,comments_per_100_items:10,notes_per_100_items:5,learnings_per_100_items:6,edge_kind_mix:w,author_cardinality:24,component_count:5,include_cycles:!1,custom_types:["Archive"],custom_statuses:["archived"],terminal_statuses:["archived"],custom_fields:["archive_source"]})});function wl(){return Object.keys(E).sort().map(e=>E[e])}function Ll(e){let t=e.trim().toLowerCase();if(!Object.hasOwn(E,t))throw new TypeError(`Unknown corpus shape "${e}". Available: ${Object.keys(E).join(", ")}`);return E[t]}var Oe=new WeakMap;function Ie(e,t){if(e===0)return[];let r=Oe.get(t);r===void 0&&(r=t.edge_kind_mix.flatMap(o=>Array.from({length:o.weight},()=>o.kind)),Oe.set(t,r));let n=[r[e%r.length]];return t.include_cycles&&e>2&&e%17===0&&n.push("related"),[...new Set(n)]}function Ml(e,t,r,n=42){if(R(t,"item index"),A(r,"item count"),t>=r)throw new RangeError(`Corpus item index ${t} exceeds ${r}`);let o=Math.min(e.component_count,r),s=t%o,i=Math.floor(t/o),a=0,c=1;for(let q=0;q<e.hierarchy_depth;q+=1)a=Math.min(Number.MAX_SAFE_INTEGER,a+c),c=Math.min(Number.MAX_SAFE_INTEGER,c*e.hierarchy_fanout);let p=i%a,m=i-p,u=p===0?void 0:s+(m+Math.floor((p-1)/e.hierarchy_fanout))*o,d=Date.UTC(2026,0,1),x=e.age_span_days*864e5,Ue=new Date(d+(r===1?0:Math.round(t/(r-1)*x))).toISOString(),G=(t*37+n)%100;return{index:t,id:`pm-s${t.toString(36).padStart(7,"0")}`,...u===void 0?{}:{parent:`pm-s${u.toString(36).padStart(7,"0")}`},component:s,timestamp:Ue,author:`pm-corpus-agent-${(t+n)%Math.min(e.author_cardinality,r)}`,history_entry_count:e.history_entries_per_item,dependency_kinds:Ie(t,e),has_comment:G<e.comments_per_100_items,has_note:G<e.notes_per_100_items,has_learning:G<e.learnings_per_100_items,...e.custom_types.length>0&&t%11===0?{custom_type:e.custom_types[t%e.custom_types.length]}:{},...e.custom_statuses.length>0&&t%13===0?{custom_status:e.custom_statuses[t%e.custom_statuses.length]}:{}}}var W=class{shape;authors=new Set;components=new Set;depths=new Map;childCounts=new Map;edgeKinds={};expectedEdgeKinds={};annotations={comments:0,notes:0,learnings:0};annotationFields;planMismatches=[];itemCount=0;observedDepth=0;observedFanout=0;historyEntryCount=0;firstTimestamp=null;lastTimestamp=null;constructor(t){this.shape=t,this.annotationFields=[["comments","has_comment",t.comments_per_100_items],["notes","has_note",t.notes_per_100_items],["learnings","has_learning",t.learnings_per_100_items]]}recordMismatch(t,r){t&&this.planMismatches.push(r)}recordEdgeKinds(t,r){for(let n of r)t[n]=(t[n]??0)+1}add(t){this.itemCount+=1,this.authors.add(t.author),this.components.add(t.component),this.recordMismatch(this.depths.has(t.id),`duplicate_id:${t.id}`);let r=1;if(t.parent!==void 0){let n=this.depths.get(t.parent);this.recordMismatch(n===void 0,`parent_missing:${t.parent}`),r=(n??0)+1;let o=(this.childCounts.get(t.parent)??0)+1;this.childCounts.set(t.parent,o),this.observedFanout=Math.max(this.observedFanout,o)}this.depths.set(t.id,r),this.observedDepth=Math.max(this.observedDepth,r),this.historyEntryCount+=t.history_entry_count,this.recordMismatch(t.history_entry_count!==this.shape.history_entries_per_item,"history_entries_per_item:drift"),this.firstTimestamp=this.firstTimestamp===null||t.timestamp<this.firstTimestamp?t.timestamp:this.firstTimestamp,this.lastTimestamp=this.lastTimestamp===null||t.timestamp>this.lastTimestamp?t.timestamp:this.lastTimestamp;for(let[n,o]of this.annotationFields)this.annotations[n]+=Number(t[o]);this.recordEdgeKinds(this.edgeKinds,t.dependency_kinds),this.recordEdgeKinds(this.expectedEdgeKinds,Ie(t.index,this.shape))}finish(){let t=Math.min(this.shape.author_cardinality,this.itemCount),r=Math.min(this.shape.component_count,this.itemCount),n=[...this.planMismatches,...this.itemCount===0?["item_count:empty"]:[],...this.authors.size===t?[]:[`author_count:${this.authors.size}!=${t}`],...this.components.size===r?[]:[`component_count:${this.components.size}!=${r}`],...this.observedDepth<=this.shape.hierarchy_depth?[]:[`hierarchy_depth:${this.observedDepth}>${this.shape.hierarchy_depth}`],...this.observedFanout<=this.shape.hierarchy_fanout?[]:[`hierarchy_fanout:${this.observedFanout}>${this.shape.hierarchy_fanout}`]];for(let[i,,a]of this.annotationFields){let c=Math.floor(this.itemCount/100),p=this.itemCount%100,m=c*a+Math.max(0,a+p-100),u=c*a+Math.min(a,p),d=this.annotations[i];(d<m||d>u)&&n.push(`${i}:${d}!in[${m},${u}]`)}let o=new Set([...Object.keys(this.edgeKinds),...Object.keys(this.expectedEdgeKinds)]);for(let i of[...o].sort()){let a=this.edgeKinds[i]??0,c=this.expectedEdgeKinds[i]??0;a!==c&&n.push(`edge_kind:${i}:${a}!=${c}`)}let s=[...new Set(n)];return{shape:this.shape.name,item_count:this.itemCount,author_count:this.authors.size,component_count:this.components.size,hierarchy_depth:this.observedDepth,hierarchy_fanout:this.observedFanout,timestamp_range:{first:this.firstTimestamp,last:this.lastTimestamp},history_entry_count:this.historyEntryCount,annotations:{...this.annotations},edge_kinds:{...this.edgeKinds},matches_declaration:s.length===0,mismatches:s}}};function Ne(e){return new W(e)}function kl(e,t){let r=Ne(e);for(let n of t)r.add(n);return r.finish()}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7442357d-52b9-5461-9ac4-3acd898334da")}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 Dl(){let e=H(process.cwd(),process.env.PM_PATH);await te(e,(t,r)=>re(t,r,{apply_runtime_defaults:!0}))}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f48b9002-59dc-54d3-95de-36bf0d11b39a")}catch{}})();var xe="https://schema.unbrained.dev/pm/workspace-recipe/v1";function B(e,t){if(e===null||typeof e=="boolean"||typeof e=="string")return e;if(typeof e=="number"){if(!Number.isFinite(e))throw new Error(`Workspace recipe JSON number must be finite at ${t}`);return e}if(Array.isArray(e))return Object.freeze(e.map((r,n)=>B(r,`${t}[${n}]`)));if(typeof e!="object"||Object.getPrototypeOf(e)!==Object.prototype&&Object.getPrototypeOf(e)!==null)throw new Error(`Workspace recipe input must contain JSON values at ${t}`);return Object.freeze(Object.fromEntries(Object.entries(e).map(([r,n])=>[r,B(n,`${t}.${r}`)])))}function be(e){if(e.schema!==xe)throw new Error(`Unsupported workspace recipe schema: ${e.schema}`);let t=J(e);if(e.operations.some(r=>r.action.trim().length===0||r.input===null||Array.isArray(r.input)))throw new Error("Workspace recipe operations require an action and object input");return Object.freeze({...t,operations:Object.freeze(e.operations.map((r,n)=>Object.freeze({action:r.action,input:B(r.input,`operations[${n}].input`)})))})}async function Pe(e,t){let r=be(e);return Q(r,t)}async function vl(e,t){return Pe(e,async()=>{let r=[];for(let[n,o]of e.operations.entries())r.push(await t(o,n));return r})}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a108f4d2-80c3-540e-821c-5acdf68eb7fa")}catch{}})();async function Gl(){await ne()}import y from"node:fs";import $ from"node:path";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6748a283-bc93-5783-98c1-d1a7f2fdce4e")}catch{}})();var we=300*1e3,Fl=3;function Hy(e){return(e?.trim()||"development").replace(/[^a-zA-Z0-9._-]/g,"_").replace(/^\./,"_")}function jy(e,t){let r=t.trim();if(!/^[a-zA-Z0-9_-][a-zA-Z0-9._-]*$/.test(r))throw new TypeError("Compile-cache generation must be a safe non-empty filename token.");y.mkdirSync(e,{recursive:!0});let n=$.join(e,r);y.mkdirSync(n,{recursive:!0});let o=new Date;y.utimesSync(n,o,o);let s=y.readdirSync(e).filter(p=>p!==r).flatMap(p=>{try{return[{name:p,mtimeMs:y.statSync($.join(e,p)).mtimeMs}]}catch(m){if(m instanceof Error&&"code"in m&&m.code==="ENOENT")return[];throw m}}).sort((p,m)=>m.mtimeMs-p.mtimeMs||p.name.localeCompare(m.name)),i=s.filter(p=>o.getTime()-p.mtimeMs<we),a=Math.max(0,Fl-1-i.length),c=s.filter(p=>o.getTime()-p.mtimeMs>=we).slice(a).map(p=>p.name).sort((p,m)=>p.localeCompare(m));for(let p of c)y.rmSync($.join(e,p),{recursive:!0,force:!0,maxRetries:3,retryDelay:50});return{retained:r,removed:c}}import Le from"node:fs";import M from"node:path";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="962636b0-ed3b-5ad0-ae0c-904435025986")}catch{}})();var D="@unbrained/pm-cli",Ul=new Set(["append","claim","changelog","close","close-many","close-task","comments","config","copy","create","dedupe-merge","delete","deps","docs","extension","event","events","files","focus","gc","history-author-acknowledge","history-compact","history-redact","history-repair","init","install","item","learnings","meet","merge","normalize","notes","package","packages","pause-task","plan","profile","reindex","release","remind","restore","schema","start-task","test","test-all","test-runs","test-runs-worker","telemetry","templates","twin","update","update-many","upgrade","vcs","workspace"]),Me=new Set(["--author","--output-budget","--output-format","--output-include","--output-limit","--output-session","--path","--pm-path"]),X=/\b(\d{4})\.(\d{1,2})\.(\d{1,2})(?:-(\d+))?\b/u;function l(e,t){return e.some(r=>t.includes(r.split("=",1)[0]))}function z(e,t){return["activate","adopt","adopt-all","deactivate","init","install","migrate","reload","uninstall"].includes(t[0]??"")||l(e,["--activate","--adopt","--adopt-all","--deactivate","--fix-managed-state","--init","--install","--output","--reload","--scaffold","--uninstall"])}var Hl={changelog:(e,t)=>{if(t[0]==="generate")return!l(e,["--check"]);let r=e.indexOf("export");return t[0]==="export"&&(l(e,["--output"])||r>=0&&e[r+1]!==void 0&&!e[r+1].startsWith("-"))},comments:e=>l(e,["--add","--delete","--edit","--file","--stdin"]),config:(e,t)=>(t[0]==="project"||t[0]==="global"?t[1]:t[0])==="set",deps:()=>!1,docs:e=>l(e,["--add","--add-glob","--migrate","--remove"]),duplicates:()=>!1,events:()=>!1,extension:z,files:(e,t)=>l(e,["--add","--add-glob","--migrate","--remove"])||t[0]==="discover"&&l(e,["--apply"]),health:e=>!l(e,["--check-only","--no-refresh","--skip-vectors"]),learnings:e=>l(e,["--add","--delete","--edit","--file","--stdin"]),merge:(e,t)=>t[0]!=="report",notes:e=>l(e,["--add","--delete","--edit","--file","--stdin"]),package:z,packages:z,profile:(e,t)=>t[0]==="apply",schema:(e,t)=>["add-field","add-status","add-type","remove-field","remove-status","remove-type","remap-status","rename-field","rename-type"].includes(t[0]??"")&&!(l(e,["--infer"])&&!l(e,["--apply"])),telemetry:(e,t)=>t.slice(0,2).some(r=>["clear","flush"].includes(r)),templates:(e,t)=>t[0]==="save",test:e=>l(e,["--add","--add-json","--background","--measure","--remove","--resume","--run","--stop"]),validate:e=>l(e,["--auto-fix","--prune-missing"]),vcs:(e,t)=>["abandon","create","merge","propose","ref-create"].includes(t[0]??""),workspace:(e,t)=>t[0]==="snapshot"&&["create","delete","restore"].includes(t[1]??"")};function k(e){let t=e.match(X);return t?[Number(t[1]),Number(t[2]),Number(t[3]),Number(t[4]??0)]:null}function L(e,t){let r=k(e),n=k(t);if(!r||!n)return null;for(let o=0;o<r.length;o+=1){let s=r[o]-n[o];if(s!==0)return Math.sign(s)}return 0}function K(e){try{let t=JSON.parse(Le.readFileSync(e,"utf8"));return typeof t=="object"&&t!==null&&!Array.isArray(t)?t:null}catch{return null}}function jl(e){let t=[];for(let r of["dependencies","devDependencies","optionalDependencies","peerDependencies"]){let n=e[r];if(typeof n!="object"||n===null)continue;let o=n[D],s=typeof o=="string"?o.trim():"",i=/^[<!]/u.test(s)?void 0:s.match(X)?.[0];i&&t.push(i)}return t.sort((r,n)=>L(n,r))[0]}function Vl(e){let r=K(M.join(e,"package-lock.json"))?.packages;if(typeof r!="object"||r===null)return;let n=r["node_modules/@unbrained/pm-cli"];if(typeof n!="object"||n===null)return;let o=n.version;return typeof o=="string"?o:void 0}function Wl(e,t){try{let r=Le.readFileSync(M.join(e,t),"utf8").split(/\r?\n/u),n=r.findIndex(c=>c.includes(D));if(n<0)return;let o=r[n].match(/^\s*/u)[0].length,s=[r[n]];for(let c=n+1;c<r.length;c+=1){let p=r[c],m=p.trim(),u=p.match(/^\s*/u)[0].length;if(m.length>0&&u<=o)break;s.push(p)}return s.join(`
|
|
2
|
+
`).match(/^\s*version(?::\s*|\s+)["']?(\d{4}\.\d{1,2}\.\d{1,2}(?:-\d+)?)/mu)?.[1]??s[0].match(X)?.[0]}catch{return}}function Bl(e){let t=[],r=K(M.join(e,"package.json")),n=r?jl(r):void 0;n&&t.push({version:n,source:"package.json"});let s=K(M.join(e,"node_modules","@unbrained","pm-cli","package.json"))?.version;typeof s=="string"&&k(s)&&t.push({version:s,source:"installed-package"});let i=Vl(e);i&&k(i)&&t.push({version:i,source:"package-lock.json"});for(let a of["pnpm-lock.yaml","yarn.lock"]){let c=Wl(e,a);c&&t.push({version:c,source:a})}return t}function ke(e){for(let t=0;t<e.length;t+=1){let r=e[t];if(Me.has(r)){t+=1;continue}if(!r.startsWith("-"))return{command:r.toLowerCase(),index:t}}}function $l(e){let t=ke(e);if(!t||l(e,["--help","-h","--dry-run"]))return!1;let{command:r,index:n}=t,o=[];for(let i=n+1;i<e.length;i+=1){let a=e[i];if(Me.has(a)){i+=1;continue}a.startsWith("-")||o.push(a.toLowerCase())}let s=Hl[r];return s?s(e,o):Ul.has(r)}function zl(e){let t=ke(e.argv)?.command,r=$l(e.argv),o=Bl(e.projectRoot).filter(a=>L(a.version,e.executingVersion)!==null).sort((a,c)=>L(c.version,a.version))[0],s=o!==void 0&&L(e.executingVersion,o.version)===-1,i=s&&!r?{code:"project_runtime_stale_read",executing_version:e.executingVersion,project_version:o.version,source:o.source,message:"This read is using an older pm runtime than the project requires.",next_steps:[`Run the command through the project's installed ${D} ${o.version}.`,"Install the project dependencies with its declared package manager if the local executable is missing."]}:void 0;return{compatible:!r||!s||e.allowStale===!0,executing_version:e.executingVersion,...o?{project_version:o.version,source:o.source}:{},...t?{command:t}:{},mutating:r,stale:s,...i?{warning:i}:{},override_applied:s&&r&&e.allowStale===!0}}function Ky(e){let t=zl(e);if(t.compatible)return t;throw new U(`pm ${t.executing_version} cannot mutate a project pinned to newer pm ${t.project_version}.`,F.CONFLICT,{code:"project_runtime_stale_mutation",reason:t.source,why:"An older runtime can write storage, history, and merge contracts it does not understand.",nextSteps:[`Run this command through the project's installed ${D} ${t.project_version}.`,"For an intentional recovery only, set PM_ALLOW_STALE_CLI=1 for this invocation and record why.","Read-only commands remain available without an override."]})}import{createHash as Kl}from"node:crypto";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4586a8b2-07c8-53d4-9c5d-ca557ee07977")}catch{}})();var Y=1;function S(e){e?.throwIfAborted()}function h(e,t){if(typeof e!="string"||e.trim().length===0)throw new TypeError(`Relationship graph ${t} must be non-empty`);return e.trim()}function O(e,t,r={}){let n=Date.parse(r.createdAt??new Date().toISOString());if(!Number.isFinite(n))throw new TypeError("Relationship graph createdAt must be a valid timestamp");let o=e.nodes(),s=e.edges(),i=t.list();return Object.freeze({version:Y,fingerprint:Kl("sha256").update(b({nodes:o,edges:s,kinds:i})).digest("hex"),created_at:new Date(n).toISOString(),nodes:o,edges:s,kinds:i})}function Xl(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function N(e){if(!Xl(e))throw new TypeError("Relationship graph snapshot must be an object");if(e.version!==Y)throw new TypeError(`Unsupported relationship graph snapshot version: ${String(e.version)}`);if(!Array.isArray(e.nodes)||e.nodes.some(o=>typeof o!="string"))throw new TypeError("Relationship graph snapshot nodes must be strings");if(!Array.isArray(e.edges)||!Array.isArray(e.kinds))throw new TypeError("Relationship graph snapshot edges and kinds must be arrays");if(typeof e.created_at!="string"||!Number.isFinite(Date.parse(e.created_at)))throw new TypeError("Relationship graph snapshot created_at must be valid");if(typeof e.fingerprint!="string")throw new TypeError("Relationship graph snapshot fingerprint must be a string");let t=new j([]);for(let o of e.kinds)t.register(o);let r=new g(e.nodes,e.edges,t),n=O(r,t,{createdAt:e.created_at});if(n.fingerprint!==e.fingerprint)throw new TypeError("Relationship graph snapshot fingerprint mismatch");return{snapshot:n,registry:t,graph:r}}async function f(e,t){h(e.name,"adapter name");let r=h(t.workspace,"workspace");S(t.signal);let n=await e.read({...t,workspace:r});return S(t.signal),n===null?null:N(n)}async function v(e,t){let r=h(t.workspace,"workspace"),n=N(t.snapshot).snapshot,o=await f(e,{workspace:r,signal:t.signal});if(o?.snapshot.fingerprint===n.fingerprint)return{adapter:e.name,workspace:r,disposition:"current",fingerprint:n.fingerprint,previous_fingerprint:o.snapshot.fingerprint,node_count:n.nodes.length,edge_count:n.edges.length};if(S(t.signal),await e.replace({workspace:r,signal:t.signal,snapshot:n,expected_fingerprint:o?.snapshot.fingerprint??null}),(await f(e,{workspace:r,signal:t.signal}))?.snapshot.fingerprint!==n.fingerprint)throw new Error(`Relationship graph adapter "${e.name}" did not expose the replaced snapshot`);return{adapter:e.name,workspace:r,disposition:"written",fingerprint:n.fingerprint,...o?{previous_fingerprint:o.snapshot.fingerprint}:{},node_count:n.nodes.length,edge_count:n.edges.length}}function Yl(e,t={}){let r=e.map(N),n=new Map;for(let i of r)for(let a of i.snapshot.kinds){let c=n.get(a.kind);if(c&&b(c)!==b(a))throw new TypeError(`Conflicting federated relationship kind: ${a.kind}`);n.set(a.kind,a)}let o=new j([...n.values()].sort((i,a)=>i.kind.localeCompare(a.kind))),s=new g(new Set(r.flatMap(i=>[...i.snapshot.nodes])),r.flatMap(i=>[...i.snapshot.edges]),o);return O(s,o,t)}var I=class{name;#e=new Map;constructor(t="memory"){this.name=h(t,"adapter name")}async read(t){S(t.signal);let r=this.#e.get(h(t.workspace,"workspace"));return r?structuredClone(r):null}async replace(t){S(t.signal);let r=h(t.workspace,"workspace"),n=this.#e.get(r);if(t.expected_fingerprint!==void 0&&(n?.fingerprint??null)!==t.expected_fingerprint)throw new Error(`Relationship graph adapter conflict for ${r}`);this.#e.set(r,structuredClone(N(t.snapshot).snapshot))}async clear(t){S(t.signal);let r=h(t.workspace,"workspace"),n=this.#e.get(r);if(t.expected_fingerprint!==void 0&&(n?.fingerprint??null)!==t.expected_fingerprint)throw new Error(`Relationship graph adapter conflict for ${r}`);this.#e.delete(r)}};(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="423d6e5d-93e5-5f29-93e0-11ddca9c3156")}catch{}})();function De(e,t){if(!Number.isInteger(e)||e<1)throw new TypeError(`Relationship graph ${t} must be a positive integer`);return e}function ql(e){let t=De(e.nodeCount,"nodeCount"),r=De(e.edgeStride??1,"edgeStride"),n=e.topology??"chain";if(!["chain","star","disconnected"].includes(n))throw new TypeError(`Unsupported relationship graph topology: ${n}`);let o=(e.kind??"related").trim(),s=(e.idPrefix??"node").trim();if(!o||!s)throw new TypeError("Relationship graph kind and idPrefix must be non-empty");let i=n==="disconnected"?0:Math.floor((t-1)/r);return{node_count:t,edge_count:i,edge_basis:"fixture_generated",nodes:{*[Symbol.iterator](){for(let a=0;a<t;a+=1)yield`${s}-${a}`}},edges:{*[Symbol.iterator](){if(n!=="disconnected")for(let a=r;a<t;a+=r)yield{source:`${s}-${n==="star"?0:a-r}`,target:`${s}-${a}`,kind:o}}}}}function T(e,t){if(!e)throw new Error(`Relationship graph adapter conformance: ${t}`)}async function ve(e,t={}){let r=t.workspace?.trim()||"pm-graph-conformance",n=Z(),o=O(new g(["a","b"],[{source:"a",target:"b",kind:"related"}],n),n,{createdAt:"2026-01-01T00:00:00.000Z"}),s=O(new g(["a","b","c"],[{source:"a",target:"b",kind:"related"},{source:"b",target:"c",kind:"blocked_by"}],n),n,{createdAt:"2026-01-02T00:00:00.000Z"}),i=[];T(await f(e,{workspace:r})===null,"workspace must start empty"),i.push({name:"empty-read",passed:!0});let a=await v(e,{workspace:r,snapshot:o});T(a.disposition==="written","first sync must write"),i.push({name:"atomic-replace",passed:!0}),(await e.read({workspace:r})).nodes.push("mutated-reader-copy"),T((await f(e,{workspace:r}))?.snapshot.nodes.length===2,"reads must not mutate stored state"),i.push({name:"read-isolation",passed:!0}),T((await v(e,{workspace:r,snapshot:o})).disposition==="current","identical sync must be idempotent"),i.push({name:"idempotent-sync",passed:!0}),await e.replace({workspace:r,snapshot:s,expected_fingerprint:o.fingerprint}),T((await f(e,{workspace:r}))?.snapshot.fingerprint===s.fingerprint,"replacement must become visible"),i.push({name:"replacement-visibility",passed:!0});let p=!1;try{await e.replace({workspace:r,snapshot:o,expected_fingerprint:o.fingerprint})}catch{p=!0}return T(p,"stale compare-and-swap must fail"),i.push({name:"stale-cas",passed:!0}),e.clear&&(await e.clear({workspace:r,expected_fingerprint:s.fingerprint}),T(await f(e,{workspace:r})===null,"clear must remove the workspace"),i.push({name:"clear",passed:!0})),{adapter:e.name,workspace:r,cases:Object.freeze(i),clear_supported:e.clear!==void 0}}function Jl(e){return ve(new I,e?{workspace:e}:{})}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2c3df51e-6b10-5da6-8340-126465d9c434")}catch{}})();(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="5133d678-01f4-5164-aea7-2cc5ed42dd58")}catch{}})();import{createHash as Ge}from"node:crypto";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="54a3448c-719c-5404-a9b9-c3072a2fdce2")}catch{}})();function Fe(e,t){if(typeof e!="string"||e.trim().length===0)throw new TypeError(`Relationship backfill ${t} must be non-empty`);return e.trim()}function gS(e,t){let r=Fe(t.migrationId,"migrationId"),n=Fe(t.author,"author"),o=Date.parse(t.timestamp);if(!Number.isFinite(o))throw new TypeError("Relationship backfill timestamp must be valid");let s=new Date(o).toISOString(),i=V(e,void 0,t.registry),a=i.graph.nodes(),c=i.graph.edges().map(d=>{let x=Ge("sha256").update(JSON.stringify([r,d.kind,d.source,d.target,d.createdAt??null,d.author??null,d.payload??null])).digest("hex").slice(0,24);return Object.freeze({eventId:`backfill:${r}:${x}`,relationshipId:`migration:${r}:${x}`,action:"add",edge:d,author:n,timestamp:s,reason:`Backfill ${r} from legacy item metadata`})}),p=Ge("sha256").update(JSON.stringify({migrationId:r,nodes:a,events:c})).digest("hex"),m=new Set([...t.existingEventIds??[]].filter(d=>typeof d=="string").map(d=>d.trim()).filter(Boolean)),u=c.filter(d=>!m.has(d.eventId));return Object.freeze({migration_id:r,fingerprint:p,nodes:a,events:Object.freeze(u),edge_count:c.length,skipped_existing_count:c.length-u.length,duplicate_dependency_rows:i.duplicateRows.length,dangling_reference_count:i.dangling.active.length+i.dangling.legacy_terminal.length})}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7fc669d4-1db2-5636-8304-2c111a684726")}catch{}})();function CS(e){return e}function ES(e){return e}function yS(e){return e}function SS(e){return e}function OS(e){return e}function RS(e){return e}function IS(e){return e}function NS(e){return e}function xS(e){return e}function bS(e){return e}function PS(e){return e}function wS(e){return e}function LS(e){return e}function MS(e){return{handled:!0,result:e}}function kS(){return{handled:!1}}function DS(e){return e}function vS(e){return e}function GS(e){return e}function FS(e){return e}function US(e){return e}function HS(e){return e}function jS(e){return e}function VS(e){return e}function WS(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 Ql(e={},t={}){return new P(t).extension(void 0,{...e,migrate:!0})}function Zl(e={},t={}){return new P(t).packageMigrate(e)}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="99a9b24a-4bc7-50da-8333-e76086f0e303")}catch{}})();(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8e8c2de1-7bff-57c6-8e71-9c27e9e76eaa")}catch{}})();(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="5e04dc9d-8e2d-5ef2-bf8b-6b18bd87c3bc")}catch{}})();(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="99d427a5-1f09-5ca4-8c1f-8b9d54bfd2f2")}catch{}})();export{mg as ACTIONABILITY_ORDERING_KINDS,Yr as ACTIVITY_COMMANDER_STRING_OPTION_CONTRACTS,Wo as ACTIVITY_FLAG_CONTRACTS,Pt as AGENT_PROVENANCE_DIMENSIONS,xn as AGGREGATE_FLAG_CONTRACTS,_o as APPEND_FLAG_CONTRACTS,_t as BASELINE_ITEM_FORMAT_VERSION,Ng as BRIEF_LIST_FIELDS,E as BUILTIN_CORPUS_SHAPES,wt as BUILTIN_HARNESS_SIGNAL_DESCRIPTORS,ze as BUILTIN_ITEM_TYPE_VALUES,ue as BUILTIN_PROFILES,wu as BUILTIN_RELATIONSHIP_KINDS,zr as CALENDAR_COMMANDER_STRING_OPTION_CONTRACTS,Vo as CALENDAR_FLAG_CONTRACTS,ho as CLAIM_FLAG_CONTRACTS,pi as CLOSE_ACTION_OPTION_KEYS,uo as CLOSE_FLAG_CONTRACTS,fo as CLOSE_MANY_FLAG_CONTRACTS,yo as CLOSE_TASK_FLAG_CONTRACTS,bn as COMMENTS_FLAG_CONTRACTS,Su as COMMON_MUTATION_COMMAND_OPTION_KEYS,ti as COMPLETION_FLAG_CONTRACTS,Qe as CONFIDENCE_TEXT_VALUES,Bn as CONFIG_FLAG_CONTRACTS,Kr as CONTEXT_COMMANDER_STRING_OPTION_CONTRACTS,Ug as CONTEXT_EVALUATION_METRIC_NAMES,$o as CONTEXT_FLAG_CONTRACTS,ie as CONTEXT_OUTPUT_VALUES,Bg as CONTEXT_PACKING_PROFILES,Dg as CONTEXT_RELEVANCE_SERVICE,Mg as CONTEXT_RELEVANCE_SIGNAL_NAMES,Qg as CONTEXT_SIGNAL_SET_VERSION,Jg as CONTEXT_SIGNAL_STORE_FORMAT_VERSION,Zg as CONTEXT_SIGNAL_STORE_WARNING_DETAILS,ei as CONTRACTS_FLAG_CONTRACTS,Fo as COPY_FLAG_CONTRACTS,Zr as CREATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,tn as CREATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,en as CREATE_COMMANDER_STRING_OPTION_CONTRACTS,nu as CREATE_DIRECT_CLOSE_REASON_DEFAULT,Do as CREATE_FLAG_CONTRACTS,ht as CURRENT_ITEM_FORMAT_VERSION,nA as ContextSignalStore,zg as ContextUsageValidationError,og as DEFAULT_AUTHOR_IDENTITY_VOCABULARY,qA as DEFAULT_CHILD_SAMPLE_LIMIT,Ig as DEFAULT_COMPACT_LIST_FIELDS,bh as DEFAULT_DERIVED_INDEX_MINIMUM_ITEMS,Pp as DEFAULT_EVAL_QUERIES_RELATIVE_PATH,gA as DEFAULT_TERMINAL_TRANSITION_POLICY,aA as DEFAULT_WORKSPACE_MEMORY_MINIMUM_ITEMS,go as DELETE_FLAG_CONTRACTS,Ye as DEPENDENCY_KIND_VALUES,Xo as DEPS_FLAG_CONTRACTS,Mn as DOCS_FLAG_CONTRACTS,Lo as DUPLICATES_FLAG_CONTRACTS,qo as EVAL_FLAG_CONTRACTS,Ip as EVAL_QUERY_SET_CONTRACT,Np as EVAL_QUERY_SET_EXAMPLE,Rp as EVAL_QUERY_SET_SCHEMA_ID,Bo as EVENTS_FLAG_CONTRACTS,Oo as EVENT_FLAG_CONTRACTS,Wr as EXECUTABLE_COMMAND_ALIASES,F as EXIT_CODE,to as EXTENSION_ACTIVATE_FLAG_CONTRACTS,eo as EXTENSION_ADOPT_ALL_FLAG_CONTRACTS,po as EXTENSION_ADOPT_FLAG_CONTRACTS,jT as EXTENSION_CAPABILITIES,ru as EXTENSION_CAPABILITY_CONTRACT,eu as EXTENSION_CAPABILITY_CONTRACT_VERSION,tu as EXTENSION_CAPABILITY_LEGACY_ALIASES,at as EXTENSION_CAPABILITY_REGISTRATION_SURFACES,ao as EXTENSION_CATALOG_FLAG_CONTRACTS,ro as EXTENSION_DEACTIVATE_FLAG_CONTRACTS,Zn as EXTENSION_DESCRIBE_FLAG_CONTRACTS,so as EXTENSION_DOCTOR_FLAG_CONTRACTS,Qn as EXTENSION_EXPLORE_FLAG_CONTRACTS,$n as EXTENSION_FLAG_CONTRACTS,Kn as EXTENSION_INIT_FLAG_CONTRACTS,qn as EXTENSION_INSTALL_FLAG_CONTRACTS,oo as EXTENSION_MANAGE_FLAG_CONTRACTS,no as EXTENSION_MIGRATE_FLAG_CONTRACTS,VT as EXTENSION_POLICY_MODES,WT as EXTENSION_POLICY_SURFACES,io as EXTENSION_RELOAD_FLAG_CONTRACTS,$T as EXTENSION_SANDBOX_PROFILES,zn as EXTENSION_SCOPE_FLAG_CONTRACTS,BT as EXTENSION_TRUST_MODES,Jn as EXTENSION_UNINSTALL_FLAG_CONTRACTS,LA as EXTERNAL_DEPENDENCY_SOURCE_KIND,MA as EXTERNAL_DEPENDENCY_SOURCE_KIND_ALIAS,Ln as FILES_FLAG_CONTRACTS,Uo as FOCUS_FLAG_CONTRACTS,Po as GC_FLAG_CONTRACTS,zo as GET_FLAG_CONTRACTS,In as GLOBAL_FLAG_CONTRACTS,lc as GRAPH_DURABLE_CACHE_MIN_ITEMS,mc as GRAPH_DURABLE_CACHE_VERSION,Yo as GRAPH_FLAG_CONTRACTS,Xt as GRAPH_SUBCOMMAND_VALUES,Ko as GUIDE_FLAG_CONTRACTS,Mo as HEALTH_FLAG_CONTRACTS,Fn as HISTORY_AUTHOR_ACKNOWLEDGE_FLAG_CONTRACTS,rC as HISTORY_AUTHOR_ATTRIBUTION_BASELINE,jC as HISTORY_COMPACT_BULK_DEFAULT_MIN_ENTRIES,Un as HISTORY_COMPACT_FLAG_CONTRACTS,kn as HISTORY_FLAG_CONTRACTS,vn as HISTORY_REDACT_FLAG_CONTRACTS,Gn as HISTORY_REPAIR_FLAG_CONTRACTS,Ap as INIT_AGENT_GUIDANCE_MODE_VALUES,Wn as INIT_FLAG_CONTRACTS,co as INSTALL_FLAG_CONTRACTS,Je as ISSUE_SEVERITY_VALUES,Go as ITEM_COMPLETE_FLAG_CONTRACTS,OC as ITEM_LATEST_TIMESTAMP_FIELDS,iu as ITEM_METADATA_KEY_ORDER,vo as ITEM_MUTATE_FLAG_CONTRACTS,Ke as ITEM_TYPE_VALUES,SC as ITEM_UNION_COLLECTION_FIELDS,rA as JsonFileContextSignalStoreAdapter,wn as LEARNINGS_FLAG_CONTRACTS,zs as LINKED_TEST_ENV_NAME_PATTERN,Ks as LINKED_TEST_PM_CONTEXT_MODE_VALUES,$s as LINKED_TEST_PROTECTED_ENV_KEYS,Br as LIST_COMMANDER_STRING_OPTION_CONTRACTS,xg as LIST_COMMAND_DEFAULT_PROJECTIONS,KT as LIST_FILTER_EXTENSION_FLAG_DEFINITIONS,Nn as LIST_FILTER_FLAG_CONTRACTS,Og as LIST_SORT_FIELDS,Rg as LIST_SORT_ORDER_VALUES,YA as MAX_CHILD_PROJECTION_ITEMS,So as MEET_FLAG_CONTRACTS,NC as MERGE_DRIVER_ARTIFACT_VALUES,Dn as MERGE_FLAG_CONTRACTS,I as MemoryRelationshipGraphAdapter,Xr as NEXT_COMMANDER_STRING_OPTION_CONTRACTS,Qo as NEXT_FLAG_CONTRACTS,ss as NEXT_OUTPUT_VALUES,Pn as NOTES_FLAG_CONTRACTS,Xn as PACKAGE_FLAG_CONTRACTS,Yn as PACKAGE_INIT_FLAG_CONTRACTS,Eo as PAUSE_TASK_FLAG_CONTRACTS,ai as PLAN_CREATE_METADATA_PARAMETER_KEYS,Vn as PLAN_FLAG_CONTRACTS,wa as PLAN_SHOW_DEPTH_VALUES,Pa as PLAN_SUBCOMMANDS,La as PLAN_TEMPLATE_NAMES,hi as PM_CLI_EXPECTED_ERROR_NAME,qt as PM_CLI_ONLY_TOOL_ACTION_WAIVERS,OA as PM_COMMAND_EXIT_CONTRACTS,SA as PM_COMMAND_EXIT_OUTCOME_CONTRACTS,cr as PM_COMMAND_OUTPUT_BUDGET_CONTRACTS,eE as PM_COMMAND_OUTPUT_ENVELOPE_CONTRACTS,Rc as PM_COMMAND_VISIBILITY_CONTRACTS,YT as PM_CONTEXT_INTENTS_FILE,E_ as PM_CONTEXT_INTENT_CONTRACTS,Kt as PM_CORE_COMMAND_NAMES,_ as PM_CORPUS_SHAPE_SCHEMA,JC as PM_ERROR_CODE_CATALOG,KC as PM_ERROR_CODE_EXIT_CLASS_CONTRACTS,jt as PM_EXTENSION_CAPABILITY_CONTRACTS,Yt as PM_EXTENSION_PACKAGE_ACTION_SUBCOMMANDS,Wt as PM_EXTENSION_POLICY_MODE_CONTRACTS,zt as PM_EXTENSION_POLICY_SURFACE_CONTRACTS,$t as PM_EXTENSION_SANDBOX_PROFILE_CONTRACTS,Vt as PM_EXTENSION_SERVICE_NAME_CONTRACTS,Bt as PM_EXTENSION_TRUST_MODE_CONTRACTS,$A as PM_GITATTRIBUTES_END,BA as PM_GITATTRIBUTES_START,KA as PM_GITATTRIBUTES_V2_END,zA as PM_GITATTRIBUTES_V2_START,yi as PM_GITIGNORE_END,Ei as PM_GITIGNORE_START,wc as PM_MCP_PROMPT_CONTRACTS,Pc as PM_MCP_RESOURCE_CONTRACTS,xc as PM_MCP_TOOL_COMMAND_CONTRACTS,Gf as PM_MODE_PAIRED_OUTPUT_PROJECTION_CONTRACTS,br as PM_MUTATION_ACTION_CONTRACTS,ir as PM_OUTPUT_BUDGET_CLASSES,or as PM_OUTPUT_DEGRADATION_STEPS,QC as PM_OUTPUT_ENVELOPE_KINDS,pe as PM_PACKAGE_CONVENTIONAL_RESOURCE_ROOTS,ae as PM_PACKAGE_RESOURCE_KINDS,_i as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA,ui as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA_VERSION,u_ as PM_READ_OUTPUT_COMPOSITION_OPTION_FLAGS,d_ as PM_READ_OUTPUT_DIMENSIONS,l_ as PM_READ_OUTPUT_OPTION_FLAGS,i_ as PM_READ_OUTPUT_SESSION_MAX_SEEN_ITEM_IDS,o_ as PM_READ_OUTPUT_SESSION_MIN_TOKENS,m_ as PM_READ_OUTPUT_SURFACES,f_ as PM_READ_OUTPUT_SURFACE_CONTRACTS,vf as PM_READ_ROW_CONTRACTS,Df as PM_READ_ROW_JQ_SELECTOR,RA as PM_SUCCESS_EXIT_CODES,Jt as PM_TOOL_ACTIONS,ci as PM_TOOL_ACTION_PARAMETER_CONTRACTS,fi as PM_TOOL_PARAMETERS_SCHEMA,li as PM_TOOL_PARAMETERS_SCHEMA_MAJOR,mi as PM_TOOL_PARAMETERS_SCHEMA_VERSION,ii as PM_TOOL_RESERVED_CUSTOM_FIELD_PROPERTIES,xe as PM_WORKSPACE_RECIPE_SCHEMA,jn as PROFILE_FLAG_CONTRACTS,Ce as PROFILE_LINT_CODES,Ae as PROFILE_LINT_DIMENSIONS,le as PROFILE_NAMES,Xp as PROFILE_SUBCOMMANDS,U as PmCliError,P as PmClient,Qf as QUERY_CURSOR_CONTRACT,lo as REINDEX_FLAG_CONTRACTS,Oh as REINDEX_LOCK_ID,Y as RELATIONSHIP_GRAPH_SNAPSHOT_VERSION,Ao as RELEASE_FLAG_CONTRACTS,Ro as REMIND_FLAG_CONTRACTS,ee as RESERVED_ITEM_FIELD_NAMES,To as RESTORE_FLAG_CONTRACTS,qe as RISK_VALUES,MT as RelationshipEventLog,kT as RelationshipEventStore,g as RelationshipGraph,j as RelationshipKindRegistry,Hn as SCHEMA_FLAG_CONTRACTS,$r as SEARCH_COMMANDER_STRING_OPTION_CONTRACTS,XT as SEARCH_EXTENSION_FLAG_DEFINITIONS,Zo as SEARCH_FLAG_CONTRACTS,su as SETTINGS_DEFAULTS,Dp as SNAPSHOT_SCHEMA,FA as SOURCE_CONTEXT_ACCESS_ENV,UA as SOURCE_CONTEXT_WRITE_OVERRIDE_ENV,Co as START_TASK_FLAG_CONTRACTS,wo as STATS_FLAG_CONTRACTS,Xe as STATUS_VALUES,Rn as SUBCOMMAND_GLOBAL_FLAG_CONTRACTS,Lf as SUPPRESS_HOST_OUTPUT_MARKER,xo as TELEMETRY_FLAG_CONTRACTS,Jc as TELEMETRY_SUBCOMMANDS,No as TEST_ALL_FLAG_CONTRACTS,Io as TEST_FLAG_CONTRACTS,bo as TEST_RUNS_FLAG_CONTRACTS,zc as TEST_RUN_MEASUREMENT_LIMIT,An as TOOL_ACTIVITY_OPTION_CONTRACTS,an as TOOL_AGGREGATE_OPTION_CONTRACTS,_n as TOOL_BULK_MUTATION_FILTER_OPTION_CONTRACT_SOURCE,gn as TOOL_CALENDAR_OPTION_CONTRACTS,Tn as TOOL_CLOSE_MANY_FILTER_OPTION_CONTRACTS,Cn as TOOL_CONTEXT_OPTION_CONTRACTS,ln as TOOL_CREATE_OPTION_CONTRACTS,mn as TOOL_CREATE_OPTION_CONTRACT_SOURCE,En as TOOL_DEPS_OPTION_CONTRACTS,yn as TOOL_GRAPH_OPTION_CONTRACTS,sn as TOOL_LIST_FILTER_OPTION_CONTRACTS,pn as TOOL_SEARCH_FILTER_OPTION_CONTRACTS,dn as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACTS,cn as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACT_SOURCE,hn as TOOL_UPDATE_MANY_FILTER_OPTION_CONTRACTS,fn as TOOL_UPDATE_OPTION_CONTRACTS,un as TOOL_UPDATE_OPTION_CONTRACT_SOURCE,ou as TYPE_TO_FOLDER,rn as UPDATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,on as UPDATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,nn as UPDATE_COMMANDER_STRING_OPTION_CONTRACTS,Ho as UPDATE_FLAG_CONTRACTS,jo as UPDATE_MANY_FLAG_CONTRACTS,mo as UPGRADE_FLAG_CONTRACTS,ko as VALIDATE_FLAG_CONTRACTS,Jo as WORKSPACE_FLAG_CONTRACTS,_r as WORKSPACE_HISTORY_ID,oc as WorkspaceGraphCache,UT as WorkspaceTransactionInterruptedError,Ai as _testOnly,Lg as _testOnlyAggregateCommand,gp as _testOnlyConfigCommand,eC as _testOnlyGetCommand,Ka as _testOnlyHealthCommand,Sp as _testOnlyInit,Cp as _testOnlyInitAgentGuidance,RE as _testOnlyItemTransaction,vC as _testOnlyMutationEvents,_A as _testOnlyNextCommand,CC as _testOnlySearchCommand,GA as _testOnlySimilarity,Wp as _testOnlyTemplates,_p as _testOnlyValidateCommand,$a as acknowledgeUnknownAuthorHistoryEvents,Ba as acknowledgeUnknownAuthorHistoryEventsFromTransport,Ph as acquireItemMetadataDerivedIndexLock,fr as acquireLock,GE as activateExtensionForTest,Bu as activateExtensions,bt as agentSessionEnvironment,zd as aggregate,vc as analyzeAgentProvenanceDescriptorCoverage,vT as analyzeGraphImpact,GT as analyzeKnowledgeGraph,bA as analyzePmCommandExitConformance,Qt as analyzePmToolActionParity,bC as analyzeReconciliationDiscard,DT as analyzeRelationshipExecution,dc as analyzeRelationshipSchedule,Tl as analyzeSdkActionCoverage,oe as analyzeSdkCliParameterCompleteness,om as append,ur as appendHistoryEntry,gr as appendWorkspaceAuditEvent,Tr as appendWorkspaceHistoryChange,Q_ as applyAcceptanceCriteriaMutations,yl as applyBootstrapPagerPolicy,I_ as applyContextIntentProjection,is as applyContextTagProjection,bg as applyFilterValueEcho,IT as applyHistoryPatch,bl as applyInvocationAuthorOverride,Za as applyPathMigrations,g_ as applyReadOutputDimensions,a_ as applyReadOutputSessionReferences,Tf as applyRegisteredItemFieldDefaultsAndValidation,rp as applyStandaloneNote,Ra as applyStoredExtensionMigrationState,eh as applyTagRemovals,yA as applyTerminalOrderingPolicy,np as artifactKey,mu as asRecordClone,du as asRecordOrNull,V as assembleWorkspaceRelationshipGraph,Ty as assertExtensionBlueprint,hy as assertExtensionCapabilityUsage,QE as assertExtensionDeactivated,Cy as assertExtensionManifestCompatible,Ay as assertExtensionManifestMatchesBlueprint,Ey as assertExtensionPreflight,VC as assertHistoryCompactTarget,wC as assertHistoryRepairTarget,Jl as assertMemoryRelationshipGraphAdapterConformance,nh as assertNoUnknownCsvKeys,ZE as assertPackageManifest,q_ as assertParentReferenceIsNotSelf,gy as assertProjectProfile,Ky as assertProjectRuntimeCompatibility,Ff as assertProjectionModeChoice,ey as assertRegisteredCommandContract,dy as assertRegisteredCommandOverride,sy as assertRegisteredExporter,ty as assertRegisteredFlags,ry as assertRegisteredHook,iy as assertRegisteredImporter,ay as assertRegisteredItemField,py as assertRegisteredItemType,_y as assertRegisteredMigration,my as assertRegisteredParserOverride,ly as assertRegisteredPreflightOverride,cy as assertRegisteredProfile,uy as assertRegisteredRendererOverride,ny as assertRegisteredSearchProvider,fy as assertRegisteredServiceOverride,oy as assertRegisteredVectorStoreAdapter,Du as assertRelationshipEdgeAllowed,ve as assertRelationshipGraphAdapterConformance,b_ as attachContextIntentReceipt,Bf as attachOutputOmissionReceipt,w_ as attachOutputTokenAccounting,P_ as attachReadOutputContracts,p_ as attachReadOutputSessionReceipt,ma as auditMergeAttributeFence,XA as auditMergeDriverConfiguration,Fs as auditWorkspaceRelationshipGraph,It as boundAgentEpisodeIdentity,n_ as boundReadOutputRows,ts as buildChildrenByParent,dC as buildCompactSearchFilterSummary,Pg as buildContentFilterEcho,tA as buildContextSignalSnapshot,Ml as buildCorpusShapeItemPlan,Ea as buildExtensionDescribeResult,wg as buildGovernanceMissingFilterEcho,fh as buildInvalidTypeError,JA as buildItemChildrenRollup,SE as buildItemCompletionMutations,kg as buildItemContextRelevanceCandidates,vh as buildItemNotFoundError,ZA as buildItemSchedule,ca as buildMergeAttributePatterns,di as buildPmActionToolInputSchema,BC as buildRelationshipContext,Hh as buildSearchCorpus,Vh as buildSemanticCorpusInput,Xh as buildVectorizationEmbeddingIdentity,Yh as buildVectorizationEmbeddingMetadata,mC as buildVerboseSearchFilters,pA as buildWorkspaceMemorySnapshot,Rt as canonicalDocument,Ou as canonicalizeCommandOptionKey,Lu as canonicalizeRelationshipKind,DE as checkExtensionManifestCompatibility,Hm as claim,jm as claimNext,nC as classifyHistoryAuthorEvent,GC as classifyHostEnvironmentFault,AC as classifyImplicitSemanticFallbackReason,At as classifyItemFormatVersion,ed as classifyLinkedTestFailure,pf as clearActiveExtensionHooks,Tc as clearDurableGraphCache,lT as clearFocusedItem,Ri as clearWorkspaceContractsCache,Um as close,fs as closeItem,Ym as closeTask,Rl as coalesceRepeatedListFlags,lg as collectBlockedByIds,fg as collectBlockedByIdsFromCorpus,Os as collectDanglingDependencyReferences,hg as collectDependencyBlockedIds,Ss as collectDuplicateDependencyRows,Gs as collectDuplicateRelationshipEdgeGroups,gC as collectErrorCauseCodes,Rs as collectMissingDependencyTargetIds,Hs as collectNewOrderingCycleWarnings,Ds as collectOrderingCycles,QT as collectPackageContextIntentContracts,de as collectPackageExtensionDirectories,_f as collectRegisteredItemFieldNames,Sf as collectRuntimeCreateFieldValues,_h as collectRuntimeFilterValues,Of as collectRuntimeUpdateFieldValues,qi as collectSubtreeIds,pt as collectUsedExtensionCapabilities,Ru as commandOptionFlagLabel,Yd as comments,bd as commitImportedItem,OE as commitItemCompletion,yE as commitItemMutations,HT as commitWorkspaceTransaction,On as compactFlagAliasContracts,Ji as compareCriticalItems,L as comparePmDateVersions,FT as compareRelationshipSnapshots,lu as compareTimestampStrings,cg as compileHistoryProvenanceMatcher,O_ as composeContextIntentContracts,xE as composeExtension,kE as composeExtensionPackage,Tg as computeActionabilityReport,W_ as computeHistoryDiff,pc as computeRelationshipCentrality,ks as computeRelationshipDominators,nc as computeWorkspaceGraphFingerprint,sm as config,af as consumeAfterCommandAffectedItems,jd as context,x_ as contextIntentRowId,Wm as copy,td as countFailureCategories,t_ as countReadOutputRows,Gm as create,fu as createCheckpointId,$u as createCoreCommandHookContext,Ne as createCorpusShapeMeasurement,Gu as createEmptyExtensionRegistrationRegistry,Ci as createExtensionCommandSdk,st as createExtensionContributionInventory,yy as createExtensionTestHarness,lr as createHistoryEntry,fT as createLazyModule,Dh as createMutationGuardSdk,Uf as createOutputOmissionReceipt,Ti as createPmCliExpectedError,Pl as createPmCliProgram,ar as createPmCommandOutputBudget,zf as createQueryFingerprint,ql as createRelationshipGraphScaleFixture,O as createRelationshipGraphSnapshot,Z as createRelationshipKindRegistry,lC as createSearchCursorFingerprint,zu as createSerialQueue,oh as createStdinTokenResolver,vp as createWorkspaceSnapshot,FE as deactivateExtensionForTest,kS as declineServiceOverride,N_ as decodeContextIntentCursor,uT as decodeHtmlEntitiesInOptions,Yf as decodeQueryCursor,Xf as decodeQueryCursorState,ip as dedupeLinkedArtifacts,vg as defaultScoreContextCandidates,HS as defineAfterCommandHook,FS as defineBeforeCommandHook,US as defineBeforeMutationHook,yS as defineCommand,bS as defineCommandOverride,C as defineCorpusShape,GS as defineExporter,IE as defineExtension,NE as defineExtensionBlueprint,CS as defineExtensionManifest,SS as defineFlag,vS as defineImporter,RS as defineItemField,OS as defineItemType,IS as defineMigration,WS as defineOnIndexHook,VS as defineOnReadHook,jS as defineOnWriteHook,PS as defineParserOverride,pr as definePmCommandOutputBudget,ZC as definePmCommandOutputEnvelope,XC as definePmErrorCodeCatalog,wS as definePreflightOverride,ES as defineProjectProfile,DS as defineRendererOverride,NS as defineSearchProvider,LS as defineServiceOverride,xS as defineVectorStoreAdapter,be as defineWorkspaceRecipe,Bm as deleteItem,Vp as deleteWorkspaceSnapshot,vu as dependencyToRelationship,rm as deps,PE as deriveExtensionCapabilities,PA as derivePmBulkMutationEffect,_a as deriveSchemaEvolutionMigrationId,nT as deriveTelemetryCommandResolution,Ah as describeAllowedTransitions,WA as describeExtensionActivation,wE as describeExtensionBlueprint,Ui as describeItemOwnershipConflict,Te as describeProfileComposition,ge as describeProjectProfile,iE as describeUnknownError,Dt as detectAgentIdentity,Ut as detectHarnessIdentity,Ls as detectRelationshipCommunities,vt as diagnoseAgentIdentity,Us as diffRelationshipAuditSnapshots,Yc as diffTestRunMeasurements,Vu as discoverExtensions,tt as discoverNearbyPmRoot,Bl as discoverProjectRuntimeVersionPins,tm as docs,Xd as duplicates,uc as durableGraphCachePath,gc as durableGraphCacheStatus,Tt as effectiveItemFormatVersion,ST as emitTelemetryErrorEvent,xd as emptyImportedDocument,Kf as encodeQueryCursor,B_ as enforceHistoryStreamPolicyForItem,$_ as enforceHistoryStreamPolicyForItems,$C as enrichCliFlagInvocationContract,zC as enrichCliFlagInvocationContracts,xT as ensureMaterializedHistoryTarget,Oi as ensurePmGitignore,Xa as ensureScope,rT as ensureSentryInit,Nd as ensureTrackerInitialized,Ps as enumerateRelationshipPaths,mr as estimatePmOutputTokens,Hg as evaluateContextRanking,wr as evaluateMutationGuard,jc as evaluateProvenanceCoverage,Bs as evaluateSimilarityGovernance,gh as evaluateTransition,Wh as executeEmbeddingBatchesWithRetry,zh as executeVectorDelete,Kh as executeVectorReset,$h as executeVectorUpsert,vl as executeWorkspaceRecipe,tp as expandAddGlobEntries,qm as extension,Qm as extensionActivate,Zm as extensionDeactivate,Jm as extensionList,Ql as extensionMigrate,OT as extractPatchFailureContext,up as extractReferencedPmItemIdsFromCommand,Yl as federateRelationshipGraphSnapshots,Qd as files,Zd as filesDiscover,em as filesLookup,Ws as findDuplicateClusters,pa as findGitWorkspaceRoot,Aa as findInstalledNpmPackageCandidate,Ms as findRedundantRelationshipEdges,cc as findRelationshipCutStructure,Vs as findSimilarItems,yT as finishTelemetryCommand,Au as flattenFlagListValue,Gl as flushTelemetryQueue,zm as focus,ws as forEachMatchedRelationshipEdge,vs as formatDuplicateEdgeGroup,rc as formatProfileApplyHuman,tc as formatProfileLintHuman,Zp as formatProfileListHuman,ec as formatProfileShowHuman,ga as formatSchemaEvolutionMigrationHuman,wm as gc,Sr as generateItemId,Bd as get,nf as getActiveCommandResult,y_ as getActiveContextIntentContracts,dt as getActiveExtensionRegistrations,ul as getContracts,dT as getFocusedItem,ot as getHistoryPath,LT as getItemAt,nt as getItemPath,kr as getMutationActionContract,Si as getPmGitignoreBlock,rt as getSettingsPath,ll as getWorkspaceContracts,hr as getWorkspaceHistoryPath,nm as graph,fc as graphAuditBaselinePath,Uc as groupHistoryByEpisode,MS as handleServiceOverride,ri as hasSubcommandFlagContractsForCommand,qh as hasVectorizationEmbeddingIdentityChanged,Jh as hasVectorizationVectorDimensionChanged,D_ as hashDocument,v_ as hashEmptyDocument,Pm as health,Is as hierarchyAncestors,Ns as hierarchyDescendants,Dm as historyCompact,vm as historyCompactBulk,pg as historyEntryMatchesProvenance,Lm as historyRedact,Mm as historyRepair,km as historyRepairAll,ug as indexBlockedByIds,Qh as inferConsistentVectorDimension,sr as inferPmOutputBudgetClass,im as init,Ha as inspectHistoryAuthorStream,zl as inspectProjectRuntimeCompatibility,jr as inspectStaleInProgressItems,Gp as inspectWorkspaceSnapshot,fa as installMergeFence,pE as isCommanderError,ki as isErrnoError,kA as isExternalDependencySourceKind,kf as isHostOutputSuppressed,Lr as isMutationAction,ku as isOrderingRelationshipKind,X_ as isPlaceholderReferenceToken,gi as isPmCliExpectedError,er as isPmExtensionCapabilityContract,rr as isPmExtensionPolicyModeContract,nr as isPmExtensionPolicySurfaceContract,tr as isPmExtensionServiceNameContract,NA as isPmKnownExitCode,rE as isPmMutationReceipt,IA as isPmSuccessfulExitCode,Zt as isPmToolAction,$l as isProjectMutatingInvocation,_T as isPureSnakeCaseAlias,A_ as isReadOutputBudgetExceeded,jf as isReadRowContract,Ua as isRuntimeRecord,gT as isTerminalPlanMode,If as isTerminalStatus,$e as isTimestampLiteral,CE as itemDocumentToMutationOptions,QA as itemHasSchedule,Dr as jaccardSimilarity,Jd as learnings,Pu as levenshteinDistanceWithinLimit,wi as limitAnnotationEntries,LE as lintExtensionBlueprint,Ee as lintProjectProfile,Vd as list,Ol as listAliasPluralKeys,Mh as listAllDocumentCandidatesCached,xr as listAllItemMetadata,kh as listAllItemMetadataLight,wl as listBuiltinCorpusShapes,sC as listMergeReceipts,Mr as listMutationActions,kC as listMutationEvents,Nc as listPmCommandsForTier,bc as listPmMcpToolsForProfile,he as listProfiles,Fp as listWorkspaceSnapshots,ZT as loadContextIntentRuntimeLayers,Bp as loadCreateTemplateOptions,Wu as loadExtensions,Cc as loadGraphAuditBaseline,hu as loadMutationCheckpoint,f as loadRelationshipGraphAdapter,Ir as locateItem,rh as looksLikeGenericKeyValueEntry,r_ as mapReadOutputRows,aC as markMergeReceiptReconciled,hh as matchesRuntimeFilters,CT as maybeRunFirstUseTelemetryPrompt,kl as measureCorpusShapePlan,Z_ as mergeAdditiveTags,bE as mergeExtensionBlueprints,EC as mergeHistoryStreams,RC as mergeItemDocuments,IC as mergeJsonDocuments,Il as mergeLinkedTestTwoTokenEntries,yC as mergeRelationshipEventStreams,ns as mergeSortedWarnings,TT as migrateItemFilesToFormat,Gh as mutateItem,Ar as mutateWorkspaceJsonWithHistory,$d as next,Pi as normalizeAnnotationTransportOptions,Nl as normalizeBootstrapInvocation,Es as normalizeDependencyGraphTarget,vA as normalizeDependencySeedId,DA as normalizeDependencySourceKind,it as normalizeExtensionContributionInventory,mE as normalizeItemAddressInvocation,gt as normalizeItemFormatVersion,yr as normalizeItemId,yt as normalizeItemMetadata,Sl as normalizeLegacyExtensionActionSyntax,ep as normalizeLinkedPath,K_ as normalizeParentReferenceValue,fe as normalizeProfileName,Er as normalizeRawItemId,H_ as normalizeReplayPatchOps,vr as normalizeSimilarityText,Rf as normalizeStatusForRegistry,Et as normalizeStatusInput,Ef as normalizeStatusInputWithRegistry,aE as normalizeThrownExitCode,qd as notes,Be as nowIso,_c as openDurableGraphCache,xs as orderingPredecessors,bs as orderingSuccessors,$g as packContextCandidates,Qi as packRankedContextItems,cl as packageActivate,pl as packageCatalog,dl as packageDeactivate,sl as packageDescribe,ol as packageDoctor,rl as packageInstall,el as packageLifecycle,tl as packageList,il as packageManage,Zl as packageMigrate,al as packageReload,nl as packageUninstall,Jf as paginateQueryRows,Ya as parseAddEntries,qa as parseAddGlobEntries,Mi as parseAnnotationTextInput,TE as parseAtomicMutationControls,El as parseBootstrapCommandName,gl as parseBootstrapGlobalOptions,Cl as parseBootstrapHelpRequest,xl as parseBootstrapTypeValue,Xi as parseContextDepth,Bi as parseContextFocusFields,qT as parseContextIntentDeclarations,Yi as parseContextSections,eA as parseContextSignalSnapshot,th as parseCsvKv,xp as parseEvalQuerySet,Sc as parseGraphSubcommand,sg as parseHistoryProvenanceFilters,tg as parseIntegerLimit,Nf as parseItemDocument,gE as parseItemMutationBatch,uh as parseLimit,ta as parseLinkedTestAssertionEqualsMap,ra as parseLinkedTestAssertionGteMap,qs as parseLinkedTestBoolean,Js as parseLinkedTestContextMode,Ys as parseLinkedTestEnvClear,Xs as parseLinkedTestEnvSet,na as parseLinkedTestJsonEntries,ea as parseLinkedTestMinLines,Zs as parseLinkedTestRegexList,Qs as parseLinkedTestStringList,Qa as parseMigrateEntries,gg as parseMultiValueFilter,nE as parseMutationReceipt,sh as parseOptionalNonNegativeInteger,ih as parseOptionalNumber,rg as parsePriority,Eg as parsePriorityFilterSet,s_ as parseReadOutputSession,hf as parseRegisteredItemFieldAssignments,N as parseRelationshipGraphSnapshot,Ja as parseRemoveEntries,ch as parseStatusFilterCsv,Ag as parseStringFilterSet,Or as parseTags,Kc as parseTestRunMeasurements,ng as parseType,Cg as parseTypeFilterSet,Wa as parseUnknownAuthorHistoryEventCoordinates,hA as partitionDecisionEntries,V_ as patchPathToChangedField,He as pathExists,Xm as pauseTask,hc as persistDurableGraphResult,Ch as persistSelectedItemFormat,sA as planCompletedAtBackfill,ye as planProfileApplication,gS as planRelationshipEventBackfill,yc as planRelationshipRemediation,ha as planSchemaEvolutionMigration,Up as planWorkspaceSnapshotRestore,vE as preflightExtension,Fr as prepareSimilarityText,k_ as printError,M_ as printResult,Om as profile,Nm as profileApply,xm as profileLint,Rm as profileList,Im as profileShow,sf as projectAfterCommandItemSnapshot,$i as projectContextFocusRows,$c as projectFleetAttributionAnalytics,ag as projectHistoryProvenance,Wc as projectProvenanceCoverageAnalytics,fp as projectValidateCounts,jy as pruneCompileCacheGenerations,Ih as queryItemMetadataIndex,Nh as queryLinkedFileMetadataIndex,xh as querySimilarItemMetadataIndex,Xc as queryTestRunMeasurementsBelow,ls as quoteCommandArg,ms as quoteWindowsCommandArg,uE as rankCommandPaths,Li as readAnnotationEntries,Gt as readAuthorEnvironment,pd as readBooleanOption,qg as readContextUsageAffinity,cd as readCsvListOption,Oa as readExtensionMigrationState,je as readFileIfExists,qr as readFirstStringFromCommanderOptions,Jr as readFirstValueFromCommanderOptions,Hc as readHistoryAnalyticsWindow,wf as readHistoryEntries,kc as readImprovementLedger,wh as readItemMetadataDerivedIndexState,Nr as readLocatedItem,e_ as readOutputRowCollections,Zf as readOutputRowPaths,c_ as readOutputSessionRemainingTokens,ce as readPmPackageManifest,fl as readRequiredString,Rr as readSettings,Eh as readSettingsWithMetadata,Qr as readStringArrayFromCommanderOptions,ad as readStringOption,sE as readThrownExitCode,Zh as readVectorizationStatusLedger,JT as readWorkspaceContextIntentContracts,oA as readWorkspaceContextSignals,cA as readWorkspaceMemory,ct as reconcileExtensionCapabilityUsage,of as recordAfterCommandAffectedItem,Kg as recordContextUsageServing,Xg as recordContextUsageTouch,Yg as recordContextUsageTouches,Mc as recordImprovementObservation,Lh as refreshItemMetadataDerivedIndex,la as refreshMergeAttributeFenceIfInstalled,tT as refreshSearchArtifactsForMutation,Lt as registerHarnessSignalDescriptors,Vm as release,We as removeFileIfExists,pp as renameArtifactsResultKey,ji as renderCalendarMarkdown,Vi as renderCalendarToon,os as renderContextMarkdown,ya as renderExtensionDescribeMarkdown,Ca as renderExtensionSurfaceMarkdown,Ld as renderGuideMarkdown,_E as renderMissingOptionRetry,TA as renderNextMarkdown,us as renderPmCommand,Lc as renderPmCommandVisibilityMarkdown,mh as renderRowsAsCsv,lh as renderRowsAsTable,NT as replayHistoryToTarget,F_ as replayToCanonicalItemDocument,G_ as replayToItemDocument,CA as requireTerminalReason,EA as requireTerminalReasonWithRecovery,ef as resetActiveExtensionRuntimeState,sc as resetWorkspaceGraphCache,Nt as resolveAgentSessionContextFromSignals,Fi as resolveAnnotationIndex,Di as resolveAnnotationInput,Pf as resolveAuthor,Ht as resolveAuthorIdentity,z_ as resolveBodyFileContent,Ll as resolveBuiltinCorpusShape,Hi as resolveCalendarOutputFormat,YC as resolveCanonicalPmErrorCodeContract,Mu as resolveCanonicalRelationshipKind,bf as resolveClaimPrincipal,xu as resolveCommandOptionPolicyState,Hy as resolveCompileCacheGeneration,iA as resolveCompletionTimestamp,yu as resolveConfiguredPmPackageRoot,Sg as resolveContentFieldFilters,R_ as resolveContextIntentContract,zi as resolveContextOutputFormat,Ki as resolveContextTokenBudget,jA as resolveCreateExplicitEmptyFlag,Fh as resolveEmbeddingProviders,xa as resolveExtensionInstallSourceIdentity,Sa as resolveExtensionMigrationStatePath,ju as resolveExtensionRoots,gu as resolveFlagValueKind,Pd as resolveGuideOutputFormat,Dc as resolveHistoryEpisodeGroupIdentity,ig as resolveHistoryProvenanceDimensions,bT as resolveHistorySubject,RT as resolveHistoryTarget,hC as resolveHybridSemanticWeight,et as resolveImplicitPmRoot,uu as resolveIsoOrRelative,_g as resolveItemBlockers,AE as resolveItemMutationDocument,Ze as resolveItemTypeRegistry,Cf as resolveItemTypesFilePath,rd as resolveLinkedTestFailureExitCode,aa as resolveMergeInstallContext,yg as resolveMissingMetadataFilters,fE as resolveMissingOptionPlaceholder,Hf as resolveModePairedOutputOmissionReceipt,fA as resolveNextOutputFormat,Wf as resolveOutputOmissionReceipt,Eu as resolvePmCliVersion,xA as resolvePmCommandExitContract,dr as resolvePmCommandOutputBudget,tE as resolvePmCommandOutputEnvelope,Ic as resolvePmCommandVisibilityTier,qC as resolvePmErrorCodeContract,Cu as resolvePmPackageRootFromModule,H as resolvePmRoot,si as resolvePmToolCustomFieldCollision,ah as resolvePriority,_e as resolveProfile,da as resolveProjectMergeTypeFolders,qf as resolveQueryCursorStart,T_ as resolveReadOutputDimensions,C_ as resolveReadOutputEncoding,__ as resolveReadOutputSurface,Vf as resolveReadRowContract,gf as resolveRegisteredSearchProvider,Af as resolveRegisteredVectorStoreAdapter,ft as resolveRuntimeFieldRegistry,ut as resolveRuntimeStatusRegistry,Uh as resolveSearchCorpusFields,fC as resolveSearchMaxResults,uC as resolveSearchPage,_C as resolveSearchScoreThreshold,TC as resolveSearchTuning,jh as resolveSemanticCorpusCharacterLimit,Sh as resolveSettingsWithSemanticRuntimeDefaults,HA as resolveSourceContextWritePolicy,sd as resolveStartTaskInProgressStatus,ni as resolveSubcommandFlagContractsForCommand,au as resolveTelemetryErrorCategory,AA as resolveTerminalReason,Nu as resolveTypeDefinition,Iu as resolveTypeName,dh as resolveTypeSynonym,Th as resolveTypeWorkflows,Va as resolveUnknownAuthorAcknowledgmentSelector,Bh as resolveVectorStores,ys as resolveWorkspaceRelationshipKindRegistry,$m as restore,Tu as restoreCheckpointItems,jp as restoreWorkspaceSnapshot,Hp as restoreWorkspaceSnapshotWithRecovery,hl as runAction,cf as runActiveBeforeMutationHooks,mf as runActiveCommandHandler,df as runActiveOnIndexHooks,lt as runActiveOnReadHooks,mt as runActiveOnWriteHooks,lf as runActiveParserOverride,uf as runActivePreflightOverride,ff as runActiveServiceOverride,Ii as runActivity,Hu as runAfterCommandHooks,xi as runAggregate,Gi as runAnnotationCommand,bi as runAppend,Uu as runBeforeCommandHooks,Wi as runCalendar,ps as runClaim,cs as runClaimNext,_s as runClose,Ts as runCloseMany,gs as runComments,Md as runCompletion,Tp as runConfig,se as runContext,Wg as runContextEvaluationCorpus,jg as runContextEvaluationScenario,ka as runCopy,oa as runCreate,Da as runDelete,ac as runDeps,cp as runDocs,oE as runDuplicates,wp as runEval,Mp as runEvent,ba as runExtension,Na as runExtensionMigrateAction,Ia as runExtensionMigrations,dp as runFiles,lp as runFilesDiscover,mp as runFilesLookup,Bc as runFleetAttributionAnalytics,va as runFocus,Fa as runGc,Ga as runGet,Oc as runGraph,wd as runGuide,za as runHealth,wA as runHistory,HC as runHistoryCompact,WC as runHistoryCompactBulk,PT as runHistoryRedact,PC as runHistoryRepair,LC as runHistoryRepairAll,Op as runInit,Ep as runInitAgentGuidance,As as runLearnings,ap as runLinkedArtifacts,nd as runLinkedTests,Ni as runList,Lp as runMeet,xC as runMergeDriver,ua as runMergeInstall,pC as runMergeReceiptReport,MC as runMergeReconcile,as as runNext,Cs as runNotes,Ma as runPlan,Qp as runProfileApply,Jp as runProfileLint,Yp as runProfileList,qp as runProfileShow,Vc as runProvenanceCoverageAnalytics,UE as runRegisteredCommandForTest,BE as runRegisteredCommandOverrideForTest,JE as runRegisteredExporterForTest,jE as runRegisteredHookForTest,qE as runRegisteredImporterForTest,YE as runRegisteredMigrationForTest,HE as runRegisteredMutationGuardForTest,VE as runRegisteredParserOverrideForTest,WE as runRegisteredPreflightOverrideForTest,$E as runRegisteredRendererOverrideForTest,KE as runRegisteredSearchProviderForTest,zE as runRegisteredServiceOverrideForTest,XE as runRegisteredVectorStoreAdapterForTest,Se as runReindex,ds as runRelease,kp as runRemind,hs as runRestore,Ta as runSchemaEvolutionMigration,bp as runSearch,Dl as runSearchRefreshWorkerEntrypoint,kd as runStartBackgroundRun,qc as runStats,Qc as runTelemetry,zp as runTemplatesList,$p as runTemplatesSave,Kp as runTemplatesShow,od as runTest,id as runTestAll,Dd as runTestRunsList,Gd as runTestRunsLogs,Ud as runTestRunsResume,vd as runTestRunsStatus,Fd as runTestRunsStop,Hd as runTestRunsWorker,ia as runUpdate,sa as runUpdateMany,me as runUpgrade,hp as runValidate,_l as runWithActiveExtensions,xt as runWithAgentSessionContext,S_ as runWithContextIntentContracts,eg as runWithDiscoveredContextIntentContracts,Mt as runWithHarnessDetectionSignals,kt as runWithWorkspaceHarnessSignalDescriptors,Pe as runWithWorkspaceRecipe,tC as runWorkspaceTransactionGc,Ec as saveGraphAuditBaseline,ja as scanHistoryAuthorAttribution,Ct as scanItemFormatVersions,Pr as scanMutationSecrets,oC as scanProvenanceResolverHealth,Vr as scanStaleInProgressItems,cC as scanStorageIntegrity,am as schema,fm as schemaAddField,lm as schemaAddStatus,dm as schemaAddType,gm as schemaApplyPreset,Am as schemaInferTypes,pm as schemaList,hm as schemaListFields,ym as schemaRemapStatus,_m as schemaRemoveField,um as schemaRemoveStatus,mm as schemaRemoveType,Em as schemaRenameField,Cm as schemaRenameType,cm as schemaShow,Tm as schemaShowField,Sm as schemaShowStatus,lE as scoreCommandPathMatch,Gg as scoreContextCandidates,Fg as scoreContextCandidatesWithActiveExtensions,Ur as scoreItemSimilarity,Hr as scorePreparedItemSimilarity,Wd as search,lA as searchWorkspaceMemory,uA as searchWorkspaceMemoryReadResult,$f as selectCursorSemanticOptions,Id as selectImportAuthor,mA as selectWorkspaceMemory,dA as selectWorkspaceMemoryRollups,aT as sentryCaptureCliError,sT as sentryFinishCommandSpan,cT as sentryFlush,pT as sentryLogCliUsageError,oT as sentrySetCommandContext,iT as sentryStartCommandSpan,Ot as serializeItemDocument,hE as serializeNdjsonRows,tf as setActiveCommandContext,rf as setActiveCommandResult,Xu as setActiveExtensionCommands,Ku as setActiveExtensionHooks,Yu as setActiveExtensionParsers,qu as setActiveExtensionPreflight,Zu as setActiveExtensionRegistrations,Qu as setActiveExtensionRenderers,Ju as setActiveExtensionServices,mT as setFocusedItem,AT as shouldCompletePlanOnClose,Ac as shouldPersistDurableGraphCache,Rh as shouldRunSearchRefreshInForeground,js as similarityAdvisoryWarnings,op as sortLinkedArtifacts,J_ as splitAcceptanceCriteria,hT as splitCommaList,St as splitFrontMatter,b as stableStringify,Fu as stableValueEquals,Km as startTask,ET as startTelemetryCommand,Kd as stats,yf as statusIsTerminal,Al as stripGlobalBootstrapTokens,DC as subscribeMutationEvents,Gc as summarizeAgentModelProvenance,Fc as summarizeAgentProvenance,Vg as summarizeContextEvaluationReports,Zc as summarizeContextPreflight,dg as summarizeHistoryProvenance,yp as summarizeInitResult,iC as summarizeMergeReceipt,VA as supportsCreateExplicitEmpty,dE as supportsItemIdAlias,Mf as suppressHostOutput,v as syncRelationshipGraphAdapter,ME as synthesizeExtensionManifest,oi as toCompletionFlagString,rs as toContextFocusItem,Zi as toContextPackingSummary,es as toContextRankingSummary,cu as toErrorMessage,md as toEstimatedMinutesValue,zT as toExtensionFlagDefinitions,hd as toImportBoolean,Cd as toImportConfidence,_d as toImportInteger,Od as toImportLinkedDocs,Sd as toImportLinkedFiles,Rd as toImportLinkedTests,yd as toImportLogEntries,Ed as toImportNormalizedEnum,Ad as toImportNumberMap,ld as toImportPriority,fd as toImportStatus,Td as toImportStringList,gd as toImportStringMap,ud as toImportTags,xf as toItemRecord,dd as toNonEmptyImportString,pu as toNonEmptyStringOrUndefined,U_ as toReplayDocument,Gr as tokenizeSimilarityText,FC as translateHostEnvironmentFault,Fm as update,ml as upgrade,bm as validate,EE as validateItemMutationRows,sp as validateLinkedPaths,Y_ as validateMissingParentReference,h_ as validateReadOutputOptions,ph as validateSprintOrReleaseValue,bu as validateTypeOptions,j_ as verifyHistoryChain,wT as verifyHistoryEntries,Sn as withFlagAliasMetadata,UC as withHostEnvironmentBoundary,ic as workspaceGraphCache,vi as wrapOwnershipConflict,cE as wrapThrownErrorForSentry,Ft as writeAuthorEnvironment,Ve as writeFileAtomic,_u as writeMutationCheckpoint,yh as writeSettings,L_ as writeStdout,eT as writeVectorizationStatusLedger,Cr as writeWorkspaceJsonWithHistory};
|
|
3
3
|
//# sourceMappingURL=sdk.js.map
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
*/
|
|
20
20
|
/** Registry of every non-extension `pm health` / `pm validate` warning code and its remediation. Extension findings keep their richer, contextual `details.triage.remediation` produced by the extension health triage and are intentionally excluded here (see pm-0hnu: "all non-extension checks"). */
|
|
21
21
|
|
|
22
|
-
!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]="
|
|
22
|
+
!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]="31d625d8-44be-5298-ab64-c17508ed07d0")}catch(e){}}();
|
|
23
23
|
export const REMEDIATION_REGISTRY = Object.freeze([
|
|
24
24
|
// --- pm health: directories ---
|
|
25
25
|
{
|
|
@@ -229,8 +229,13 @@ export const REMEDIATION_REGISTRY = Object.freeze([
|
|
|
229
229
|
},
|
|
230
230
|
{
|
|
231
231
|
code: "history_unknown_author_events",
|
|
232
|
-
command:
|
|
233
|
-
summary: "
|
|
232
|
+
command: 'pm history-author-acknowledge --all-actionable --attributed-author "<principal>" --reviewer "<reviewer>" --reason "<evidence>"',
|
|
233
|
+
summary: "Review the actionable coordinates, then record an append-only attribution disposition for the complete current set.",
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
code: "validate_history_unknown_author_events",
|
|
237
|
+
command: 'pm history-author-acknowledge --all-actionable --attributed-author "<principal>" --reviewer "<reviewer>" --reason "<evidence>"',
|
|
238
|
+
summary: "Review the actionable coordinates, then record an append-only attribution disposition for the complete current set.",
|
|
234
239
|
},
|
|
235
240
|
// --- pm health: locks ---
|
|
236
241
|
{
|
|
@@ -401,11 +406,6 @@ export const REMEDIATION_REGISTRY = Object.freeze([
|
|
|
401
406
|
command: "pm history-repair <id>",
|
|
402
407
|
summary: "Re-anchor the history chains of the items with a broken history chain.",
|
|
403
408
|
},
|
|
404
|
-
{
|
|
405
|
-
code: "validate_history_unknown_author_events",
|
|
406
|
-
command: "pm config project set author_default <stable-agent-id>",
|
|
407
|
-
summary: "Historical mutations lack attributable authorship. Set a stable default or use invocation-wide --author for future events; existing audit history remains append-only.",
|
|
408
|
-
},
|
|
409
409
|
// --- pm validate: command_references ---
|
|
410
410
|
{
|
|
411
411
|
code: "validate_command_references_stale_pm_ids",
|
|
@@ -469,4 +469,4 @@ export function buildRemediationCommands(warnings) {
|
|
|
469
469
|
return Object.values(buildRemediationMap(warnings));
|
|
470
470
|
}
|
|
471
471
|
//# sourceMappingURL=remediation.js.map
|
|
472
|
-
//# debugId=
|
|
472
|
+
//# debugId=31d625d8-44be-5298-ab64-c17508ed07d0
|
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
export declare function ensureDir(dirPath: string): Promise<void>;
|
|
3
3
|
/** Implements path exists for the public runtime surface of this module. */
|
|
4
4
|
export declare function pathExists(targetPath: string): Promise<boolean>;
|
|
5
|
+
/**
|
|
6
|
+
* Report whether an error means "this file is not there".
|
|
7
|
+
*
|
|
8
|
+
* `ENOENT` is the common case. `ENOTDIR` is the same answer reached from a
|
|
9
|
+
* different direction: a path component is a regular file, so the target
|
|
10
|
+
* cannot exist under it either. Absence-tolerant readers must accept both,
|
|
11
|
+
* otherwise a misdirected root turns a graceful default into an unclassified
|
|
12
|
+
* runtime fault instead of reaching the caller's own root validation.
|
|
13
|
+
*/
|
|
14
|
+
export declare function isFileAbsentError(error: unknown): boolean;
|
|
5
15
|
/** Implements read file if exists for the public runtime surface of this module. */
|
|
6
16
|
export declare function readFileIfExists(targetPath: string): Promise<string | null>;
|
|
7
17
|
/** Implements write file atomic for the public runtime surface of this module. */
|
package/dist/core/fs/fs-utils.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Provides filesystem helpers for Fs Utils.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
7
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="5aef9dc6-948a-5c82-9e3c-2f85fef46beb")}catch(e){}}();
|
|
8
8
|
import * as fs from "node:fs/promises";
|
|
9
9
|
import path from "node:path";
|
|
10
10
|
import crypto from "node:crypto";
|
|
@@ -23,13 +23,25 @@ export async function pathExists(targetPath) {
|
|
|
23
23
|
return false;
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* Report whether an error means "this file is not there".
|
|
28
|
+
*
|
|
29
|
+
* `ENOENT` is the common case. `ENOTDIR` is the same answer reached from a
|
|
30
|
+
* different direction: a path component is a regular file, so the target
|
|
31
|
+
* cannot exist under it either. Absence-tolerant readers must accept both,
|
|
32
|
+
* otherwise a misdirected root turns a graceful default into an unclassified
|
|
33
|
+
* runtime fault instead of reaching the caller's own root validation.
|
|
34
|
+
*/
|
|
35
|
+
export function isFileAbsentError(error) {
|
|
36
|
+
return isErrno(error, "ENOENT") || isErrno(error, "ENOTDIR");
|
|
37
|
+
}
|
|
26
38
|
/** Implements read file if exists for the public runtime surface of this module. */
|
|
27
39
|
export async function readFileIfExists(targetPath) {
|
|
28
40
|
try {
|
|
29
41
|
return await fs.readFile(targetPath, "utf8");
|
|
30
42
|
}
|
|
31
43
|
catch (error) {
|
|
32
|
-
if (
|
|
44
|
+
if (isFileAbsentError(error)) {
|
|
33
45
|
return null;
|
|
34
46
|
}
|
|
35
47
|
throw error;
|
|
@@ -128,7 +140,7 @@ export async function removeFileIfExists(targetPath) {
|
|
|
128
140
|
await fs.unlink(targetPath);
|
|
129
141
|
}
|
|
130
142
|
catch (error) {
|
|
131
|
-
if (!
|
|
143
|
+
if (!isFileAbsentError(error)) {
|
|
132
144
|
throw error;
|
|
133
145
|
}
|
|
134
146
|
}
|
|
@@ -140,4 +152,4 @@ function isErrno(error, code) {
|
|
|
140
152
|
error.code === code);
|
|
141
153
|
}
|
|
142
154
|
//# sourceMappingURL=fs-utils.js.map
|
|
143
|
-
//# debugId=
|
|
155
|
+
//# debugId=5aef9dc6-948a-5c82-9e3c-2f85fef46beb
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Defines item parsing, formatting, and lifecycle helpers for Item Format.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
7
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="eaf0e260-a864-57cf-b23b-aac4f9151d8e")}catch(e){}}();
|
|
8
8
|
import { encode as encodeToon } from "@toon-format/toon";
|
|
9
9
|
import { isDeepStrictEqual } from "node:util";
|
|
10
10
|
import { CONFIDENCE_TEXT_VALUES, ISSUE_SEVERITY_VALUES, PLAN_STEP_STATUS_VALUES, RECURRENCE_FREQUENCY_VALUES, RECURRENCE_WEEKDAY_VALUES, STATUS_VALUES, weekdayOrderIndex, } from "../../types/index.js";
|
|
@@ -630,7 +630,7 @@ function normalizeTestRunSummary(value) {
|
|
|
630
630
|
function sortTests(values) {
|
|
631
631
|
if (!Array.isArray(values) || values.length === 0)
|
|
632
632
|
return undefined;
|
|
633
|
-
return
|
|
633
|
+
return values.map(normalizeLinkedTest);
|
|
634
634
|
}
|
|
635
635
|
function normalizeTrimmedStringList(value) {
|
|
636
636
|
if (!Array.isArray(value)) {
|
|
@@ -709,35 +709,6 @@ function normalizeLinkedTest(value) {
|
|
|
709
709
|
deleteUndefinedFields(test);
|
|
710
710
|
return test;
|
|
711
711
|
}
|
|
712
|
-
function compareLinkedTests(a, b) {
|
|
713
|
-
return firstNonZeroComparison([
|
|
714
|
-
a.scope.localeCompare(b.scope),
|
|
715
|
-
compareOptionalStrings(a.path, b.path),
|
|
716
|
-
compareOptionalStrings(a.command, b.command),
|
|
717
|
-
compareOptionalNumbers(a.timeout_seconds, b.timeout_seconds),
|
|
718
|
-
compareOptionalStrings(a.pm_context_mode, b.pm_context_mode),
|
|
719
|
-
Number(Boolean(a.shared_host_safe)) - Number(Boolean(b.shared_host_safe)),
|
|
720
|
-
compareJsonValues(a.env_clear, b.env_clear, []),
|
|
721
|
-
compareJsonValues(a.env_set, b.env_set, {}),
|
|
722
|
-
compareJsonValues(a.assert_stdout_contains, b.assert_stdout_contains, []),
|
|
723
|
-
compareJsonValues(a.assert_stdout_regex, b.assert_stdout_regex, []),
|
|
724
|
-
compareJsonValues(a.assert_stderr_contains, b.assert_stderr_contains, []),
|
|
725
|
-
compareJsonValues(a.assert_stderr_regex, b.assert_stderr_regex, []),
|
|
726
|
-
compareOptionalNumbers(a.assert_stdout_min_lines, b.assert_stdout_min_lines),
|
|
727
|
-
compareJsonValues(a.assert_json_field_equals, b.assert_json_field_equals, {}),
|
|
728
|
-
compareJsonValues(a.assert_json_field_gte, b.assert_json_field_gte, {}),
|
|
729
|
-
compareOptionalStrings(a.note, b.note),
|
|
730
|
-
]);
|
|
731
|
-
}
|
|
732
|
-
function compareOptionalStrings(left, right) {
|
|
733
|
-
return (left ?? "").localeCompare(right ?? "");
|
|
734
|
-
}
|
|
735
|
-
function compareOptionalNumbers(left, right) {
|
|
736
|
-
return (left ?? 0) - (right ?? 0);
|
|
737
|
-
}
|
|
738
|
-
function compareJsonValues(left, right, fallback) {
|
|
739
|
-
return JSON.stringify(left ?? fallback).localeCompare(JSON.stringify(right ?? fallback));
|
|
740
|
-
}
|
|
741
712
|
function sortDocs(values) {
|
|
742
713
|
if (!values || values.length === 0)
|
|
743
714
|
return undefined;
|
|
@@ -1422,4 +1393,4 @@ export const _testOnlyItemFormat = {
|
|
|
1422
1393
|
sortTests,
|
|
1423
1394
|
};
|
|
1424
1395
|
//# sourceMappingURL=item-format.js.map
|
|
1425
|
-
//# debugId=
|
|
1396
|
+
//# debugId=eaf0e260-a864-57cf-b23b-aac4f9151d8e
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { RuntimeFieldCommand, RuntimeFieldDefinition, RuntimeFieldType } from "../../types/index.js";
|
|
2
|
+
export { normalizeStatusToken as normalizeFieldKey } from "./status-token.js";
|
|
2
3
|
export type { RuntimeFieldCommand, RuntimeFieldDefinition, RuntimeFieldType, } from "../../types/index.js";
|
|
3
4
|
/** Built-in item-metadata field names a custom field key must never shadow. A custom key that collides with one of these would let `pm create --<key>` write over reserved metadata, so add-field rejects them up front (symmetric with the built-in-type guard in item-types-file.ts). */
|
|
4
5
|
export declare const BUILTIN_FIELD_KEYS: ReadonlySet<string>;
|
|
@@ -71,8 +72,6 @@ export interface RemoveFieldResult {
|
|
|
71
72
|
/** The removed definition, when one matched the requested key. */
|
|
72
73
|
definition?: RuntimeFieldDefinition;
|
|
73
74
|
}
|
|
74
|
-
/** Normalizes a field key using the same rule as runtime-schema.ts: lowercase and collapse any run of whitespace/hyphens into a single underscore. */
|
|
75
|
-
export declare function normalizeFieldKey(value: unknown): string;
|
|
76
75
|
/** Validates and normalizes raw add-field CLI input. Throws a plain Error with a stable message when the key is missing/empty, collides with a built-in field, or carries an invalid type/command; the CLI layer maps these to PmCliError exit codes. A `string_array` type implies a repeatable field downstream (runtime-schema.ts derives `repeatable`), so no separate repeatable flag is exposed. */
|
|
77
76
|
export declare function normalizeAddFieldInput(raw: RawAddFieldInput): NormalizedAddFieldInput;
|
|
78
77
|
/** Coerces an arbitrary parsed value from fields.json into a FieldsFile. Accepts the canonical `{ fields: [...] }` shape, a bare array, or a `{ definitions: [...] }` form, and tolerates a missing/invalid file by returning an empty fields list. */
|