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