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