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