@unbrained/pm-cli 2026.10.30 → 2026.11.1
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/.agents/skills/pm-user/references/ECOSYSTEM_PLANNING.md +1 -1
- package/.claude-plugin/marketplace.json +1 -1
- package/AGENTS.md +3 -3
- package/CHANGELOG.md +41 -0
- package/README.md +1 -1
- package/dist/cli/commander-usage.js +2 -2
- package/dist/cli/error-guidance.d.ts +45 -5
- package/dist/cli/error-guidance.js +5 -3
- package/dist/cli/extension-command-help.d.ts +1 -0
- package/dist/cli/extension-command-help.js +2 -2
- package/dist/cli/main.d.ts +1 -5
- package/dist/cli/main.js +5 -5
- package/dist/cli/migration-gates.d.ts +1 -1
- package/dist/cli/migration-gates.js +1 -1
- package/dist/cli/preflight-warnings.d.ts +11 -0
- package/dist/cli/preflight-warnings.js +4 -0
- package/dist/cli/register-mutation.js +2 -2
- package/dist/cli/register-operations.d.ts +3 -3
- package/dist/cli/register-operations.js +1 -1
- package/dist/cli-bundle/bundle-manifest.json +1 -1
- package/dist/cli-bundle/chunks/chunk-2GK2IVU5.js +8 -0
- package/dist/cli-bundle/chunks/chunk-5KW4WUAK.js +6 -0
- package/dist/cli-bundle/chunks/chunk-5WVE7XBS.js +114 -0
- package/dist/cli-bundle/chunks/chunk-6PKWKVS6.js +8 -0
- package/dist/cli-bundle/chunks/chunk-E74BORFX.js +128 -0
- package/dist/cli-bundle/chunks/chunk-F3ECOBKA.js +2 -0
- package/dist/cli-bundle/chunks/chunk-ICT6E4IW.js +2 -0
- package/dist/cli-bundle/chunks/chunk-MP2DQJH2.js +3 -0
- package/dist/cli-bundle/chunks/{chunk-LWW4F4G2.js → chunk-MRUA2Z43.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-UUQX3PFD.js → chunk-MTRIGD7M.js} +76 -76
- package/dist/cli-bundle/chunks/{chunk-S2U7ECUJ.js → chunk-N45IXPCA.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-MVL27TAH.js → chunk-NILQ2ZMV.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-GRABKNFL.js → chunk-O56O7NIE.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-O6TFUV6M.js +31 -0
- package/dist/cli-bundle/chunks/{chunk-TH5KPAN4.js → chunk-SBVX5CMV.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-Y6NC3X3E.js → chunk-TMPO4CTZ.js} +3 -3
- package/dist/cli-bundle/chunks/chunk-TYERATXH.js +2 -0
- package/dist/cli-bundle/chunks/{chunk-EHBGHX55.js → chunk-UEEG47TU.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-UUN3WNMQ.js +20 -0
- package/dist/cli-bundle/chunks/chunk-WFBYKDB2.js +2 -0
- package/dist/cli-bundle/chunks/{chunk-RZQNFHXO.js → chunk-WX25MU4N.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-4BQD5SW2.js → chunk-Y7CKVU56.js} +30 -30
- package/dist/cli-bundle/chunks/{indexed-receipt-blobs-LHLE7PSG.js → indexed-receipt-blobs-KGMJVFH2.js} +2 -2
- package/dist/cli-bundle/chunks/item-transaction-Q5S5YLEJ.js +2 -0
- package/dist/cli-bundle/chunks/{mutation-admission-TRGAVS7N.js → mutation-admission-BOOCJPCU.js} +2 -2
- package/dist/cli-bundle/chunks/{register-list-query-BH4F6M7Z.js → register-list-query-23OX36Q3.js} +3 -3
- package/dist/cli-bundle/chunks/register-mutation-JPJ5YNDX.js +20 -0
- package/dist/cli-bundle/chunks/register-operations-IGR7ERY5.js +2 -0
- package/dist/cli-bundle/chunks/{register-setup-QPWSVHFZ.js → register-setup-BMIFKZZP.js} +2 -2
- package/dist/cli-bundle/chunks/{settlement-hook-MN3Y7LVX.js → settlement-hook-YWSWFOZY.js} +2 -2
- package/dist/cli-bundle/chunks/{stage-RTB6RAAO.js → stage-ON7CYYPM.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-POJPJX64.js → chunk-2Y77HWIX.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-SAT7IAEB.js → chunk-3NYWMUX3.js} +3 -3
- package/dist/cli-bundle/focused-chunks/chunk-3Z53POXU.js +2 -0
- package/dist/cli-bundle/focused-chunks/chunk-5TWS5KOM.js +26 -0
- package/dist/cli-bundle/focused-chunks/chunk-5WCQFH6D.js +12 -0
- package/dist/cli-bundle/focused-chunks/{chunk-S23ZUASN.js → chunk-6GMYW42K.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-YQUZL2CK.js → chunk-6OKPYCLU.js} +5 -5
- package/dist/cli-bundle/focused-chunks/chunk-7WJDRZOR.js +22 -0
- package/dist/cli-bundle/focused-chunks/{chunk-3SRX77ES.js → chunk-AL7SOFUL.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-CIQ6YWCW.js +26 -0
- package/dist/cli-bundle/focused-chunks/{chunk-RKPUQDWF.js → chunk-DFUTCKUF.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-RYEZSZJ7.js → chunk-GE755ODZ.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-JCR32IAO.js +91 -0
- package/dist/cli-bundle/focused-chunks/{chunk-BPE6JTKL.js → chunk-JLXGRDTG.js} +3 -3
- package/dist/cli-bundle/focused-chunks/chunk-LVA76N27.js +6 -0
- package/dist/cli-bundle/focused-chunks/{chunk-YU7QOYYV.js → chunk-M22TI7LP.js} +3 -3
- package/dist/cli-bundle/focused-chunks/chunk-PAT6QF63.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-VFWCSQAG.js → chunk-RPUDOJVB.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-SXZM4PSS.js +44 -0
- package/dist/cli-bundle/focused-chunks/chunk-UQIBGLDR.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-RGQEJFXO.js → chunk-VFQAZLKO.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-BCIUAEWX.js → chunk-VS2ZFPXD.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-FRFNGMAK.js → chunk-WX2RVS2Y.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-Z7GIVH6B.js +3 -0
- package/dist/cli-bundle/focused-chunks/{indexed-receipt-blobs-VK2363JB.js → indexed-receipt-blobs-KHWT44EK.js} +2 -2
- package/dist/cli-bundle/focused-chunks/item-transaction-7VLPA2SU.js +2 -0
- package/dist/cli-bundle/focused-chunks/{mutation-admission-7VUODEPJ.js → mutation-admission-2DH27R5Y.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{settlement-hook-OK6A7PG2.js → settlement-hook-SJV52ZTV.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{stage-S5RP5SZH.js → stage-FYOBWQA7.js} +2 -2
- package/dist/cli-bundle/main.js +26 -22
- package/dist/cli-bundle/sdk-authoring.js +1 -1
- package/dist/cli-bundle/sdk-contracts.js +4 -4
- package/dist/cli-bundle/sdk-core.js +1 -1
- 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 +57 -57
- 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 +11 -11
- package/dist/core/config/nested-settings.js +1 -1
- package/dist/core/extensions/extension-hook-runtime.js +1 -1
- package/dist/core/extensions/extension-types.d.ts +4 -0
- package/dist/core/extensions/extension-types.js +1 -1
- package/dist/core/extensions/loader.js +1 -1
- package/dist/core/lock/lock.js +4 -4
- package/dist/core/output/mutation-projection.js +1 -1
- package/dist/core/output/output.js +3 -3
- package/dist/core/schema/fields-file.js +1 -1
- package/dist/core/sentry/helpers.d.ts +6 -0
- package/dist/core/sentry/helpers.js +1 -1
- package/dist/core/sentry/instrument.d.ts +1 -1
- package/dist/core/sentry/instrument.js +1 -1
- package/dist/core/shared/constants.js +1 -1
- package/dist/core/shared/errors.d.ts +6 -0
- package/dist/core/shared/errors.js +1 -1
- package/dist/core/shared/output-unicode.d.ts +10 -0
- package/dist/core/shared/output-unicode.js +2 -0
- package/dist/core/store/settings-validator.d.ts +1 -0
- package/dist/core/store/settings-validator.js +1 -1
- package/dist/core/store/settings.js +1 -1
- package/dist/core/telemetry/policy.d.ts +8 -0
- package/dist/core/telemetry/policy.js +1 -1
- package/dist/core/telemetry/runtime.js +3 -3
- package/dist/sdk/agent/command-recovery.d.ts +15 -0
- package/dist/sdk/agent/command-recovery.js +1 -1
- package/dist/sdk/cli-bootstrap.js +1 -1
- package/dist/sdk/cli-contracts/agent-output-contracts.d.ts +28 -0
- package/dist/sdk/cli-contracts/agent-output-contracts.js +2 -2
- package/dist/sdk/cli-contracts/commander-mutation-options.js +1 -1
- package/dist/sdk/cli-contracts/flag-contracts.d.ts +2 -0
- package/dist/sdk/cli-contracts/flag-contracts.js +1 -1
- package/dist/sdk/cli-contracts/grammar-contracts.js +1 -1
- package/dist/sdk/cli-contracts/tool-parameter-tables.js +1 -1
- package/dist/sdk/cli-contracts/tool-schema.js +1 -1
- package/dist/sdk/cli-contracts.d.ts +1 -1
- package/dist/sdk/cli-contracts.js +1 -1
- package/dist/sdk/completion/fish.js +4 -4
- package/dist/sdk/completion/zsh.js +3 -3
- package/dist/sdk/config.d.ts +1 -0
- package/dist/sdk/config.js +1 -1
- package/dist/sdk/context-intent-contracts.d.ts +17 -0
- package/dist/sdk/context-intent-contracts.js +1 -1
- package/dist/sdk/core.d.ts +2 -1
- package/dist/sdk/core.js +1 -1
- package/dist/sdk/error-runtime.d.ts +9 -0
- package/dist/sdk/error-runtime.js +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/generated/generated-error-code-catalog-part-1.js +1 -1
- package/dist/sdk/generated/generated-error-code-catalog-part-2.js +1 -1
- package/dist/sdk/index.d.ts +3 -3
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/init-agent-guidance.js +2 -2
- package/dist/sdk/lifecycle/claim.d.ts +27 -0
- package/dist/sdk/lifecycle/claim.js +1 -1
- package/dist/sdk/lifecycle/close.js +1 -1
- package/dist/sdk/lifecycle/create.js +1 -1
- package/dist/sdk/lifecycle/mcp-actions.d.ts +1 -1
- package/dist/sdk/lifecycle/mcp-actions.js +1 -1
- package/dist/sdk/lifecycle/plan.d.ts +2 -3
- package/dist/sdk/lifecycle/plan.js +1 -1
- package/dist/sdk/lifecycle/repeated-terminal-state.d.ts +45 -0
- package/dist/sdk/lifecycle/repeated-terminal-state.js +2 -0
- package/dist/sdk/lifecycle/shared-unset-fields.d.ts +9 -0
- package/dist/sdk/lifecycle/shared-unset-fields.js +1 -1
- package/dist/sdk/lifecycle/task-composition.js +1 -1
- package/dist/sdk/lifecycle/update-many.d.ts +0 -1
- package/dist/sdk/lifecycle/update-many.js +1 -1
- package/dist/sdk/lifecycle/update.d.ts +29 -1
- package/dist/sdk/lifecycle/update.js +2 -2
- package/dist/sdk/output/list-envelope.d.ts +8 -0
- package/dist/sdk/output/list-envelope.js +1 -1
- package/dist/sdk/output/table-rows.d.ts +7 -1
- package/dist/sdk/output/table-rows.js +1 -1
- package/dist/sdk/output.d.ts +2 -1
- package/dist/sdk/output.js +2 -2
- package/dist/sdk/ownership-source.d.ts +18 -0
- package/dist/sdk/ownership-source.js +1 -1
- package/dist/sdk/public-surface.json +1 -1
- package/dist/sdk/query/context.js +2 -2
- package/dist/sdk/query/get.d.ts +1 -1
- package/dist/sdk/query/get.js +1 -1
- package/dist/sdk/query/next-ranking-policy.d.ts +35 -0
- package/dist/sdk/query/next-ranking-policy.js +2 -0
- package/dist/sdk/query/next.d.ts +12 -2
- package/dist/sdk/query/next.js +2 -2
- package/dist/sdk/query/projection-contracts.d.ts +4 -0
- package/dist/sdk/query/projection-contracts.js +1 -1
- package/dist/sdk/read-output/surfaces.d.ts +27 -0
- package/dist/sdk/read-output/surfaces.js +2 -0
- package/dist/sdk/read-output-contracts.js +1 -1
- package/dist/sdk/runtime/actions.js +1 -1
- package/dist/sdk/runtime-input.js +1 -1
- package/dist/sdk/runtime-primitives.d.ts +1 -0
- package/dist/sdk/runtime-primitives.js +1 -1
- package/dist/sdk/runtime-public-contracts.d.ts +2 -0
- package/dist/sdk/runtime.d.ts +2 -2
- package/dist/sdk/runtime.js +1 -1
- package/dist/sdk/start-task-status.d.ts +1 -1
- package/dist/sdk/start-task-status.js +1 -1
- package/dist/sdk/test/execution-receipts.d.ts +25 -0
- package/dist/sdk/test/execution-receipts.js +2 -2
- package/dist/sdk/test/execution.d.ts +5 -0
- package/dist/sdk/test/execution.js +2 -2
- package/dist/types.d.ts +2 -0
- package/dist/types.js +1 -1
- package/docs/AGENT_GUIDE.md +4 -4
- package/docs/AGENT_OUTPUT_ENCODINGS.md +12 -0
- package/docs/AGENT_UX_CONTRACTS.md +2 -1
- package/docs/COMMANDS.md +59 -5
- package/docs/COMMAND_NAMESPACES.md +1 -1
- package/docs/CONFIGURATION.md +48 -1
- package/docs/DEVELOPMENT_DEPENDENCY_SECURITY.md +26 -0
- package/docs/LIFECYCLE_COMMANDS.md +19 -4
- package/docs/PACKED_FIRST_RUN.md +2 -1
- package/docs/READ_OUTPUT_CONTRACTS.md +24 -6
- package/docs/SDK.md +82 -3
- package/docs/SDK_ACTION_CONFORMANCE.md +21 -0
- package/docs/TESTING.md +38 -2
- package/docs/agent-task-token-baseline.json +1 -1
- package/docs/agent-task-transcripts.json +1 -1
- package/marketplace.json +1 -1
- package/package.json +1 -1
- package/packages/pm-beads/package.json +1 -1
- package/packages/pm-calendar/extensions/calendar/index.ts +1 -0
- 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-claude/package.json +1 -1
- package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
- package/plugins/pm-codex/package.json +1 -1
- package/plugins/pm-codex/plugin.json +1 -1
- package/runtime-dependencies.json +1 -1
- package/dist/cli-bundle/chunks/chunk-34MP7WKK.js +0 -6
- package/dist/cli-bundle/chunks/chunk-3KMYHYJV.js +0 -2
- package/dist/cli-bundle/chunks/chunk-42BHHNTL.js +0 -128
- package/dist/cli-bundle/chunks/chunk-I5O3XZOA.js +0 -2
- package/dist/cli-bundle/chunks/chunk-LEIVUGDH.js +0 -8
- package/dist/cli-bundle/chunks/chunk-OH7WPD42.js +0 -114
- package/dist/cli-bundle/chunks/chunk-OOD2A7AF.js +0 -20
- package/dist/cli-bundle/chunks/chunk-Q5V7P6NM.js +0 -2
- package/dist/cli-bundle/chunks/chunk-QLPFYBXN.js +0 -2
- package/dist/cli-bundle/chunks/chunk-SA5NYLPE.js +0 -8
- package/dist/cli-bundle/chunks/chunk-VHLAVTJN.js +0 -31
- package/dist/cli-bundle/chunks/chunk-XAOVJG52.js +0 -3
- package/dist/cli-bundle/chunks/chunk-XPQ4RTSF.js +0 -2
- package/dist/cli-bundle/chunks/item-transaction-WIOBZW4E.js +0 -2
- package/dist/cli-bundle/chunks/register-mutation-5V2NANIS.js +0 -20
- package/dist/cli-bundle/chunks/register-operations-XSFRMUFX.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-2V6NMNYN.js +0 -26
- package/dist/cli-bundle/focused-chunks/chunk-ASHGXMX4.js +0 -3
- package/dist/cli-bundle/focused-chunks/chunk-CKBN2D42.js +0 -12
- package/dist/cli-bundle/focused-chunks/chunk-I642DXOT.js +0 -22
- package/dist/cli-bundle/focused-chunks/chunk-K7DKG5HM.js +0 -91
- package/dist/cli-bundle/focused-chunks/chunk-NMQBXU7N.js +0 -44
- package/dist/cli-bundle/focused-chunks/chunk-PGM3ENGZ.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-QFNV4JTA.js +0 -6
- package/dist/cli-bundle/focused-chunks/chunk-QVJCQMZY.js +0 -26
- package/dist/cli-bundle/focused-chunks/chunk-R2TPPPVU.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-VJVJ2ZX2.js +0 -2
- package/dist/cli-bundle/focused-chunks/item-transaction-ZFDKJIP7.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as Pe,b as Oe,c as Ae,d as Fe,e as Re,f as Te,g as Me,h as Be,i as $,j as D,k as j,l as K,m as H,p as U,q,w as G,x as Y,y as X,z as J}from"./focused-chunks/chunk-QVJCQMZY.js";import{a as M,b as B,c as N,d as L,u as Q}from"./focused-chunks/chunk-QFNV4JTA.js";import"./focused-chunks/chunk-ASHGXMX4.js";import"./focused-chunks/chunk-S23ZUASN.js";import"./focused-chunks/chunk-R2TPPPVU.js";import{a as g}from"./focused-chunks/chunk-3SRX77ES.js";import"./focused-chunks/chunk-RGQEJFXO.js";import"./focused-chunks/chunk-AK2CI2GI.js";import{Bb as R,Cb as T,J as x,K as k,L as C,M as I,N as F,O as w,Xb as V,Zb as z,_b as W,b as y,c as E,f as m}from"./focused-chunks/chunk-2V6NMNYN.js";import{b as we,c as Se,d as be}from"./focused-chunks/chunk-BPE6JTKL.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]="52f6eff3-e226-56d9-893a-f16997d11c50")}catch{}})();function He(e){return e}function Ue(e){return e}function Z(e,o){for(let r of o.commands??[])e.registerCommand(r);for(let[r,t]of Object.entries(o.commandOverrides??{}))e.registerCommand(r,t);for(let[r,t]of Object.entries(o.flags??{}))e.registerFlags(r,t);for(let[r,t]of Object.entries(o.parsers??{}))e.registerParser(r,t);for(let[r,t]of Object.entries(o.renderers??{}))if(typeof t=="function")e.registerRenderer(r,t);else{let{run:i,...s}=t;e.registerRenderer(r,i,s)}for(let[r,t]of Object.entries(o.services??{}))e.registerService(r,t)}function ee(e,o){for(let s of o.preflights??[])e.registerPreflight(s);let r=o.itemTypes??[];r.length>0&&e.registerItemTypes(r);let t=o.itemFields??[];t.length>0&&e.registerItemFields(t);let i=o.relationshipKinds??[];i.length>0&&e.registerRelationshipKinds(i);for(let s of o.migrations??[])e.registerMigration(s);for(let s of o.profiles??[])e.registerProfile(s)}function re(e,o){for(let r of o.searchProviders??[])e.registerSearchProvider(r);for(let r of o.vectorStoreAdapters??[])e.registerVectorStoreAdapter(r);for(let r of o.assuranceProviders??[])e.registerAssuranceMeasurementProvider(r);for(let r of o.importers??[])e.registerImporter(r.name,r.importer,r.options);for(let r of o.exporters??[])e.registerExporter(r.name,r.exporter,r.options)}function oe(e,o){for(let r of o.beforeCommand??[])e.hooks.beforeCommand(r);for(let r of o.beforeMutation??[])e.hooks.beforeMutation(r);for(let r of o.afterCommand??[])e.hooks.afterCommand(r);for(let r of o.onWrite??[])e.hooks.onWrite(r);for(let r of o.onRead??[])e.hooks.onRead(r);for(let r of o.onIndex??[])e.hooks.onIndex(r)}function te(e){let o={activate:async r=>{Z(r,e),ee(r,e),re(r,e),oe(r,e.hooks??{}),await e.activate?.(r)}};return e.manifest&&(o.manifest=e.manifest),e.deactivate&&(o.deactivate=e.deactivate),o}function d(e){let o=e.flatMap(r=>r??[]);return o.length>0?o:void 0}function p(e){let o=Object.assign({},...e.map(r=>r??{}));return Object.keys(o).length>0?o:void 0}function ne(e){let o={};for(let r of e)for(let[t,i]of Object.entries(r??{}))o[t]=[...o[t]??[],...i];return Object.keys(o).length>0?o:void 0}var ie=["beforeCommand","beforeMutation","afterCommand","onWrite","onRead","onIndex"];function se(e,o,r){let t=o.map(s=>s?.[r]),i=d(t);if(i!==void 0){let s=e;s[r]=i}}function ae(e){let o={};for(let r of ie)se(o,e,r);return Object.keys(o).length>0?o:void 0}function qe(...e){let o={},r=(n,c)=>{c!==void 0&&(o[n]=c)};r("commands",d(e.map(n=>n.commands))),r("commandOverrides",p(e.map(n=>n.commandOverrides))),r("flags",ne(e.map(n=>n.flags))),r("parsers",p(e.map(n=>n.parsers))),r("renderers",p(e.map(n=>n.renderers))),r("services",p(e.map(n=>n.services))),r("preflights",d(e.map(n=>n.preflights))),r("itemTypes",d(e.map(n=>n.itemTypes))),r("itemFields",d(e.map(n=>n.itemFields))),r("relationshipKinds",d(e.map(n=>n.relationshipKinds))),r("migrations",d(e.map(n=>n.migrations))),r("profiles",d(e.map(n=>n.profiles))),r("searchProviders",d(e.map(n=>n.searchProviders))),r("vectorStoreAdapters",d(e.map(n=>n.vectorStoreAdapters))),r("assuranceProviders",d(e.map(n=>n.assuranceProviders))),r("importers",d(e.map(n=>n.importers))),r("exporters",d(e.map(n=>n.exporters))),r("hooks",ae(e.map(n=>n.hooks)));let t;for(let n of e)n.manifest&&(t=n.manifest);r("manifest",t);let i=e.some(n=>n.activate);r("activate",i?async n=>{for(let c of e)c.activate&&await c.activate(n)}:void 0);let s=e.some(n=>n.deactivate);return r("deactivate",s?async()=>{let n=[];for(let c of[...e].reverse())if(c.deactivate)try{await c.deactivate()}catch(f){n.push(f)}if(n.length>0)throw n.length>1?new AggregateError(n,"Multiple extension blueprint deactivate hooks failed."):n[0]}:void 0),o}var ce=[["commands","commands"],["commandOverrides","commands"],["flags","schema"],["itemTypes","schema"],["itemFields","schema"],["relationshipKinds","schema"],["migrations","schema"],["profiles","schema"],["parsers","parser"],["renderers","renderers"],["services","services"],["preflights","preflight"],["searchProviders","search"],["vectorStoreAdapters","search"],["assuranceProviders","services"],["importers","importers"],["exporters","importers"]];function u(e){return e?Array.isArray(e)?e.length>0:Object.keys(e).length>0:!1}function h(e){let o=new Set;for(let[i,s]of ce)u(e[i])&&o.add(s);(e.commands??[]).filter(l).some(i=>i.flags!==void 0)&&o.add("schema");let r=[...e.importers??[],...e.exporters??[]].filter(l);r.some(i=>i?.options?.flags!==void 0)&&o.add("schema"),r.some(i=>typeof i=="object")&&o.add("commands");let t=e.hooks??{};return[t.beforeCommand,t.beforeMutation,t.afterCommand,t.onWrite,t.onRead,t.onIndex].some(u)&&o.add("hooks"),[...o].sort((i,s)=>i.localeCompare(s))}var me=[["beforeCommand","before_command"],["beforeMutation","before_mutation"],["afterCommand","after_command"],["onWrite","on_write"],["onRead","on_read"],["onIndex","on_index"]];function a(e){return[...new Set(e)].sort((o,r)=>o.localeCompare(r))}function l(e){return e!=null}function v(e){return m(`${e.name} import`)}function _(e){return m(`${e.name} export`)}function de(e,o,r){return[...e.map(t=>m(t.name)),...o.filter(t=>t.options!==void 0).map(v),...r.filter(t=>t.options!==void 0).map(_)]}function fe(e,o,r,t){return[...Object.keys(e.flags??{}).map(i=>m(i)),...o.filter(i=>i.flags!==void 0).map(i=>m(i.name)),...r.filter(i=>i.options?.flags!==void 0).map(v),...t.filter(i=>i.options?.flags!==void 0).map(_)]}function le(e){return me.filter(([o])=>(e[o]?.length??0)>0).map(([,o])=>o)}function pe(e){let o=Object.entries(e??{}).filter(([,r])=>typeof r!="function"&&((r.commands?.length??0)>0||r.resultDiscriminator!==void 0)).map(([r,t])=>{let i=t;return{format:r,commands:a((i.commands??[]).map(s=>m(s))),result_discriminator:i.resultDiscriminator!==void 0}}).sort((r,t)=>r.format.localeCompare(t.format));return o.length>0?{renderer_ownership:o}:{}}function ue(e){return!e||e.length===0?{}:{assurance_providers:a(e.map(o=>o.id))}}function ge(e,o,r){return{item_types:a((e.itemTypes??[]).map(t=>t.name)),item_fields:a((e.itemFields??[]).map(t=>t.name)),...(e.relationshipKinds?.length??0)>0?{relationship_kinds:a(e.relationshipKinds.map(t=>t.kind))}:{},migrations:a((e.migrations??[]).flatMap(t=>typeof t.id=="string"?[t.id]:[])),profiles:a((e.profiles??[]).map(t=>t.name)),importers:a(o.map(t=>m(t.name))),exporters:a(r.map(t=>m(t.name))),search_providers:a((e.searchProviders??[]).map(t=>t.name)),vector_store_adapters:a((e.vectorStoreAdapters??[]).map(t=>t.name)),...ue(e.assuranceProviders),parser_overrides:a(Object.keys(e.parsers??{}).map(t=>m(t))),service_overrides:a(Object.keys(e.services??{}).map(t=>String(t).trim().toLowerCase())),renderer_overrides:a(Object.keys(e.renderers??{}).map(t=>String(t).trim().toLowerCase())),...pe(e.renderers),preflight_overrides:(e.preflights??[]).length,preflight_ownership:(e.preflights??[]).map(t=>({commands:[...t.commands??[]]}))}}function Ve(e){let o=(e.commands??[]).filter(l),r=(e.importers??[]).filter(l),t=(e.exporters??[]).filter(l),i=r.map(v),s=t.map(_),n=de(o,r,t),c=fe(e,o,r,t),f=e.hooks??{},O=ge(e,r,t);return{capabilities:h(e),commands:a(n),command_overrides:a(Object.keys(e.commandOverrides??{}).map(A=>m(A))),command_handlers:a([...n,...i,...s]),hooks:le(f),flag_commands:a(c),...O}}var he=["commands","commandOverrides","flags","parsers","renderers","services","preflights","itemTypes","itemFields","relationshipKinds","migrations","profiles","searchProviders","vectorStoreAdapters","assuranceProviders","importers","exporters"];function ve(e){return(e.itemFields??[]).filter(o=>typeof o?.name=="string"&&g.has(o.name.trim())).map(o=>({code:"reserved_item_field",severity:"error",message:`Item field "${o.name}" collides with reserved item metadata; rename it with an extension-specific prefix before publishing.`,field:o.name}))}function _e(e){return[...Object.values(e.flags??{}).flat(),...(e.commands??[]).flatMap(o=>o.flags??[]),...(e.importers??[]).flatMap(o=>o.options?.flags??[]),...(e.exporters??[]).flatMap(o=>o.options?.flags??[])].flatMap(o=>{if(typeof o?.long!="string"&&typeof o?.short!="string")return[];let r=x(o.long,o.short);if(r===null)return[];let{token:t,failure:i}=r;return[{code:i,severity:"error",message:`Flag "${t}" ${k(t,i)}.`,field:t}]})}function b(e){let o=new Set;for(let r of e){let t=E(r)??y(r);t!==null&&o.add(t)}return[...o].sort((r,t)=>r.localeCompare(t))}function ye(e,o){let r=[];if(o===null)return e.length>0&&r.push({code:"manifest_capabilities_absent",severity:"warning",message:`Blueprint exercises ${e.length===1?"capability":"capabilities"} [${e.join(", ")}] but declares none; set capabilities to deriveExtensionCapabilities(blueprint) so the manifest grant matches.`}),r;let t=new Set(o),i=new Set(e);for(let s of e)t.has(s)||r.push({code:"capability_undeclared",severity:"error",message:`Blueprint exercises capability "${s}" but it is absent from the declared capabilities; activation throws extension_capability_missing \u2014 add "${s}" to the manifest capabilities.`,capability:s});for(let s of o)i.has(s)||r.push({code:"capability_unused",severity:"warning",message:`Capability "${s}" is declared but no blueprint surface exercises it; drop it to keep the manifest least-privilege (pm package doctor reports this as extension_capability_unused).`,capability:s});return r}function Ee(e){let o=[],r=new Map;for(let i of e.commands??[]){let s=m(i.name);r.set(s,(r.get(s)??0)+1)}for(let[i,s]of r)s>1&&o.push({code:"duplicate_command",severity:"warning",message:`Command "${i}" is declared ${s} times in commands; the later registration shadows the earlier one at dispatch.`,command:i});let t=new Set(Object.keys(e.commandOverrides??{}).map(i=>m(i)));for(let i of r.keys())t.has(i)&&o.push({code:"command_override_conflict",severity:"warning",message:`Command "${i}" is declared both as a new command definition and as a command override; register one or the other.`,command:i});return o}function xe(e){let o=[];for(let r of he)r in e&&!u(e[r])&&o.push({code:"empty_surface",severity:"warning",message:`Blueprint field "${r}" is present but empty; remove it or populate it.`,field:r});if("hooks"in e){let r=e.hooks??{};[r.beforeCommand,r.beforeMutation,r.afterCommand,r.onWrite,r.onRead,r.onIndex].some(u)||o.push({code:"empty_surface",severity:"warning",message:'Blueprint field "hooks" is present but registers no lifecycle hooks; remove it or populate it.',field:"hooks"})}return o}function ke(e,o={}){let r=h(e),t=o.declaredCapabilities??e.manifest?.capabilities,i=Array.isArray(t)?b(t):null,s=[...ye(r,i),...Ee(e),..._e(e),...ve(e),...xe(e)];return{ok:s.every(n=>n.severity!=="error"),findings:s,used:r,declared:i}}function P(e,o){let{additionalCapabilities:r,...t}=o,i=Array.isArray(r)?b(r):[],s=[...new Set([...h(e),...i])].sort((n,c)=>n.localeCompare(c));return{...t,capabilities:s}}function ze(e,o){let r=P(e,o);return{module:te({...e,manifest:r}),manifest:r}}function S(e,o){if(e.status==="absent"||e.status==="ok")return null;let r=`${e.kind}_${e.status}`,t="";switch(r){case"pm_min_version_invalid":t=`pm_min_version "${e.required}" is not a valid version; the extension is treated as incompatible and the loader skips it.`;break;case"pm_min_version_unchecked":t=`pm_min_version "${e.required}" could not be compared against pm ${o}; compatibility is unverified.`;break;case"pm_min_version_unmet":t=`Requires pm >= ${e.required} but the target is pm ${o}; the loader skips the extension.`;break;case"pm_max_version_invalid":t=`pm_max_version "${e.required}" is not a valid inclusive upper bound (version ranges are not allowed); the extension is treated as incompatible and the loader skips it.`;break;case"pm_max_version_unchecked":t=`pm_max_version "${e.required}" could not be compared against pm ${o}; compatibility is unverified.`;break;case"pm_max_version_exceeded":t=`Allows pm <= ${e.required} but the target is pm ${o}; the loader skips the extension.`;break;case"pm_max_version_exceeded_warn":t=`Target pm ${o} is newer than pm_max_version ${e.required}, but the "warn" exceeded mode lets it load with a warning.`;break}return{code:r,severity:e.allowed?"warning":"error",constraint:e.kind,required:e.required,current:o,message:t}}function Ce(e,o){let r=C(e.pm_min_version,o.pmVersion),t=I(e.pm_max_version,o.pmVersion,o.pmMaxVersionExceededMode??"block"),i=w(e).findings.map(f=>({code:f.code,severity:"warning",constraint:"manifest",required:f.code==="manifest_unknown_key"?f.path:"pm_min_version",current:o.pmVersion,path:f.path,...f.suggested_key?{suggested_key:f.suggested_key}:{},message:f.message})),s=[],n=S(r,o.pmVersion);n!==null&&s.push(n);let c=S(t,o.pmVersion);return c!==null&&s.push(c),{compatible:r.allowed&&t.allowed,findings:[...i,...s],pmVersion:o.pmVersion}}var Ie=new Set(["capability_undeclared","capability_unused","manifest_capabilities_absent"]);function We(e,o={}){let r=ke(e,{declaredCapabilities:o.declaredCapabilities}),t=o.identity?P(e,o.identity):null,i=o.target?Ce(t??e.manifest??{},o.target):null,s=[...(t!==null&&o.declaredCapabilities===void 0?r.findings.filter(n=>!Ie.has(n.code)):r.findings).map(n=>({source:"blueprint",severity:n.severity,code:n.code,message:n.message})),...(i?.findings??[]).map(n=>({source:"compatibility",severity:n.severity,code:n.code,message:n.message}))];return{ok:s.every(n=>n.severity!=="error"),capabilities:r.used,blueprint:r,manifest:t,compatibility:i,findings:s}}(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]="4c9a1aa8-05b6-53da-a8b1-f1a7289d39cf")}catch{}})();function Ye(e){return e}function Xe(e){return e}function Je(e){return e}function Qe(e){return e}function Ze(e){return e}function er(e){return e}function rr(e){return e}function or(e){return e}function tr(e){return e}function nr(e){return e}function ir(e){return e}function sr(e){return e}function ar(e){return e}function cr(e){return{handled:!0,result:e}}function mr(){return{handled:!1}}function dr(e){return e}function fr(e){return e}function lr(e){return e}function pr(e){return e}function ur(e){return e}function gr(e){return e}function hr(e){return e}function vr(e){return e}function _r(e){return e}(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]="d0b86c6a-67f0-52f2-90b8-d1058e8f2284")}catch{}})();export{D as BUILTIN_PROFILES,Pe as EXTENSION_CAPABILITIES,be as EXTENSION_CAPABILITY_CONTRACT,we as EXTENSION_CAPABILITY_CONTRACT_VERSION,Se as EXTENSION_CAPABILITY_LEGACY_ALIASES,V as EXTENSION_CAPABILITY_REGISTRATION_SURFACES,Oe as EXTENSION_POLICY_MODES,Ae as EXTENSION_POLICY_SURFACES,Re as EXTENSION_SANDBOX_PROFILES,Fe as EXTENSION_TRUST_MODES,Me as LIST_FILTER_EXTENSION_FLAG_DEFINITIONS,B as PM_PACKAGE_CONVENTIONAL_RESOURCE_ROOTS,M as PM_PACKAGE_RESOURCE_KINDS,Y as PROFILE_LINT_CODES,G as PROFILE_LINT_DIMENSIONS,$ as PROFILE_NAMES,g as RESERVED_ITEM_FIELD_NAMES,Be as SEARCH_EXTENSION_FLAG_DEFINITIONS,Ce as checkExtensionManifestCompatibility,L as collectPackageExtensionDirectories,z as collectUsedExtensionCapabilities,te as composeExtension,ze as composeExtensionPackage,T as createExtensionContributionInventory,mr as declineServiceOverride,gr as defineAfterCommandHook,pr as defineBeforeCommandHook,ur as defineBeforeMutationHook,Je as defineCommand,nr as defineCommandOverride,lr as defineExporter,He as defineExtension,Ue as defineExtensionBlueprint,Ye as defineExtensionManifest,Qe as defineFlag,fr as defineImporter,er as defineItemField,Ze as defineItemType,rr as defineMigration,_r as defineOnIndexHook,vr as defineOnReadHook,hr as defineOnWriteHook,ir as defineParserOverride,sr as definePreflightOverride,Xe as defineProjectProfile,dr as defineRendererOverride,or as defineSearchProvider,ar as defineServiceOverride,tr as defineVectorStoreAdapter,h as deriveExtensionCapabilities,Ve as describeExtensionBlueprint,U as describeProfileComposition,q as describeProjectProfile,cr as handleServiceOverride,F as inspectExtensionManifestSchema,ke as lintExtensionBlueprint,w as lintExtensionManifestSchema,X as lintProjectProfile,H as listProfiles,qe as mergeExtensionBlueprints,R as normalizeExtensionContributionInventory,j as normalizeProfileName,J as planProfileApplication,We as preflightExtension,N as readPmPackageManifest,W as reconcileExtensionCapabilityUsage,Q as renderExtensionSurfaceMarkdown,K as resolveProfile,P as synthesizeExtensionManifest,Te as toExtensionFlagDefinitions};
|
|
1
|
+
import{a as Pe,b as Oe,c as Ae,d as Fe,e as Re,f as Te,g as Me,h as Be,i as $,j as D,k as j,l as K,m as H,p as U,q,w as G,x as Y,y as X,z as J}from"./focused-chunks/chunk-5TWS5KOM.js";import{a as M,b as B,c as N,d as L,u as Q}from"./focused-chunks/chunk-LVA76N27.js";import"./focused-chunks/chunk-Z7GIVH6B.js";import"./focused-chunks/chunk-6GMYW42K.js";import"./focused-chunks/chunk-UQIBGLDR.js";import{a as g}from"./focused-chunks/chunk-AL7SOFUL.js";import"./focused-chunks/chunk-VFQAZLKO.js";import"./focused-chunks/chunk-AK2CI2GI.js";import{Bb as R,Cb as T,J as x,K as k,L as C,M as I,N as F,O as w,b as y,c as E,f as m,fc as V,hc as z,ic as W}from"./focused-chunks/chunk-CIQ6YWCW.js";import{b as we,c as Se,d as be}from"./focused-chunks/chunk-JLXGRDTG.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]="52f6eff3-e226-56d9-893a-f16997d11c50")}catch{}})();function He(e){return e}function Ue(e){return e}function Z(e,o){for(let r of o.commands??[])e.registerCommand(r);for(let[r,t]of Object.entries(o.commandOverrides??{}))e.registerCommand(r,t);for(let[r,t]of Object.entries(o.flags??{}))e.registerFlags(r,t);for(let[r,t]of Object.entries(o.parsers??{}))e.registerParser(r,t);for(let[r,t]of Object.entries(o.renderers??{}))if(typeof t=="function")e.registerRenderer(r,t);else{let{run:i,...s}=t;e.registerRenderer(r,i,s)}for(let[r,t]of Object.entries(o.services??{}))e.registerService(r,t)}function ee(e,o){for(let s of o.preflights??[])e.registerPreflight(s);let r=o.itemTypes??[];r.length>0&&e.registerItemTypes(r);let t=o.itemFields??[];t.length>0&&e.registerItemFields(t);let i=o.relationshipKinds??[];i.length>0&&e.registerRelationshipKinds(i);for(let s of o.migrations??[])e.registerMigration(s);for(let s of o.profiles??[])e.registerProfile(s)}function re(e,o){for(let r of o.searchProviders??[])e.registerSearchProvider(r);for(let r of o.vectorStoreAdapters??[])e.registerVectorStoreAdapter(r);for(let r of o.assuranceProviders??[])e.registerAssuranceMeasurementProvider(r);for(let r of o.importers??[])e.registerImporter(r.name,r.importer,r.options);for(let r of o.exporters??[])e.registerExporter(r.name,r.exporter,r.options)}function oe(e,o){for(let r of o.beforeCommand??[])e.hooks.beforeCommand(r);for(let r of o.beforeMutation??[])e.hooks.beforeMutation(r);for(let r of o.afterCommand??[])e.hooks.afterCommand(r);for(let r of o.onWrite??[])e.hooks.onWrite(r);for(let r of o.onRead??[])e.hooks.onRead(r);for(let r of o.onIndex??[])e.hooks.onIndex(r)}function te(e){let o={activate:async r=>{Z(r,e),ee(r,e),re(r,e),oe(r,e.hooks??{}),await e.activate?.(r)}};return e.manifest&&(o.manifest=e.manifest),e.deactivate&&(o.deactivate=e.deactivate),o}function d(e){let o=e.flatMap(r=>r??[]);return o.length>0?o:void 0}function p(e){let o=Object.assign({},...e.map(r=>r??{}));return Object.keys(o).length>0?o:void 0}function ne(e){let o={};for(let r of e)for(let[t,i]of Object.entries(r??{}))o[t]=[...o[t]??[],...i];return Object.keys(o).length>0?o:void 0}var ie=["beforeCommand","beforeMutation","afterCommand","onWrite","onRead","onIndex"];function se(e,o,r){let t=o.map(s=>s?.[r]),i=d(t);if(i!==void 0){let s=e;s[r]=i}}function ae(e){let o={};for(let r of ie)se(o,e,r);return Object.keys(o).length>0?o:void 0}function qe(...e){let o={},r=(n,c)=>{c!==void 0&&(o[n]=c)};r("commands",d(e.map(n=>n.commands))),r("commandOverrides",p(e.map(n=>n.commandOverrides))),r("flags",ne(e.map(n=>n.flags))),r("parsers",p(e.map(n=>n.parsers))),r("renderers",p(e.map(n=>n.renderers))),r("services",p(e.map(n=>n.services))),r("preflights",d(e.map(n=>n.preflights))),r("itemTypes",d(e.map(n=>n.itemTypes))),r("itemFields",d(e.map(n=>n.itemFields))),r("relationshipKinds",d(e.map(n=>n.relationshipKinds))),r("migrations",d(e.map(n=>n.migrations))),r("profiles",d(e.map(n=>n.profiles))),r("searchProviders",d(e.map(n=>n.searchProviders))),r("vectorStoreAdapters",d(e.map(n=>n.vectorStoreAdapters))),r("assuranceProviders",d(e.map(n=>n.assuranceProviders))),r("importers",d(e.map(n=>n.importers))),r("exporters",d(e.map(n=>n.exporters))),r("hooks",ae(e.map(n=>n.hooks)));let t;for(let n of e)n.manifest&&(t=n.manifest);r("manifest",t);let i=e.some(n=>n.activate);r("activate",i?async n=>{for(let c of e)c.activate&&await c.activate(n)}:void 0);let s=e.some(n=>n.deactivate);return r("deactivate",s?async()=>{let n=[];for(let c of[...e].reverse())if(c.deactivate)try{await c.deactivate()}catch(f){n.push(f)}if(n.length>0)throw n.length>1?new AggregateError(n,"Multiple extension blueprint deactivate hooks failed."):n[0]}:void 0),o}var ce=[["commands","commands"],["commandOverrides","commands"],["flags","schema"],["itemTypes","schema"],["itemFields","schema"],["relationshipKinds","schema"],["migrations","schema"],["profiles","schema"],["parsers","parser"],["renderers","renderers"],["services","services"],["preflights","preflight"],["searchProviders","search"],["vectorStoreAdapters","search"],["assuranceProviders","services"],["importers","importers"],["exporters","importers"]];function u(e){return e?Array.isArray(e)?e.length>0:Object.keys(e).length>0:!1}function h(e){let o=new Set;for(let[i,s]of ce)u(e[i])&&o.add(s);(e.commands??[]).filter(l).some(i=>i.flags!==void 0)&&o.add("schema");let r=[...e.importers??[],...e.exporters??[]].filter(l);r.some(i=>i?.options?.flags!==void 0)&&o.add("schema"),r.some(i=>typeof i=="object")&&o.add("commands");let t=e.hooks??{};return[t.beforeCommand,t.beforeMutation,t.afterCommand,t.onWrite,t.onRead,t.onIndex].some(u)&&o.add("hooks"),[...o].sort((i,s)=>i.localeCompare(s))}var me=[["beforeCommand","before_command"],["beforeMutation","before_mutation"],["afterCommand","after_command"],["onWrite","on_write"],["onRead","on_read"],["onIndex","on_index"]];function a(e){return[...new Set(e)].sort((o,r)=>o.localeCompare(r))}function l(e){return e!=null}function v(e){return m(`${e.name} import`)}function _(e){return m(`${e.name} export`)}function de(e,o,r){return[...e.map(t=>m(t.name)),...o.filter(t=>t.options!==void 0).map(v),...r.filter(t=>t.options!==void 0).map(_)]}function fe(e,o,r,t){return[...Object.keys(e.flags??{}).map(i=>m(i)),...o.filter(i=>i.flags!==void 0).map(i=>m(i.name)),...r.filter(i=>i.options?.flags!==void 0).map(v),...t.filter(i=>i.options?.flags!==void 0).map(_)]}function le(e){return me.filter(([o])=>(e[o]?.length??0)>0).map(([,o])=>o)}function pe(e){let o=Object.entries(e??{}).filter(([,r])=>typeof r!="function"&&((r.commands?.length??0)>0||r.resultDiscriminator!==void 0)).map(([r,t])=>{let i=t;return{format:r,commands:a((i.commands??[]).map(s=>m(s))),result_discriminator:i.resultDiscriminator!==void 0}}).sort((r,t)=>r.format.localeCompare(t.format));return o.length>0?{renderer_ownership:o}:{}}function ue(e){return!e||e.length===0?{}:{assurance_providers:a(e.map(o=>o.id))}}function ge(e,o,r){return{item_types:a((e.itemTypes??[]).map(t=>t.name)),item_fields:a((e.itemFields??[]).map(t=>t.name)),...(e.relationshipKinds?.length??0)>0?{relationship_kinds:a(e.relationshipKinds.map(t=>t.kind))}:{},migrations:a((e.migrations??[]).flatMap(t=>typeof t.id=="string"?[t.id]:[])),profiles:a((e.profiles??[]).map(t=>t.name)),importers:a(o.map(t=>m(t.name))),exporters:a(r.map(t=>m(t.name))),search_providers:a((e.searchProviders??[]).map(t=>t.name)),vector_store_adapters:a((e.vectorStoreAdapters??[]).map(t=>t.name)),...ue(e.assuranceProviders),parser_overrides:a(Object.keys(e.parsers??{}).map(t=>m(t))),service_overrides:a(Object.keys(e.services??{}).map(t=>String(t).trim().toLowerCase())),renderer_overrides:a(Object.keys(e.renderers??{}).map(t=>String(t).trim().toLowerCase())),...pe(e.renderers),preflight_overrides:(e.preflights??[]).length,preflight_ownership:(e.preflights??[]).map(t=>({commands:[...t.commands??[]]}))}}function Ve(e){let o=(e.commands??[]).filter(l),r=(e.importers??[]).filter(l),t=(e.exporters??[]).filter(l),i=r.map(v),s=t.map(_),n=de(o,r,t),c=fe(e,o,r,t),f=e.hooks??{},O=ge(e,r,t);return{capabilities:h(e),commands:a(n),command_overrides:a(Object.keys(e.commandOverrides??{}).map(A=>m(A))),command_handlers:a([...n,...i,...s]),hooks:le(f),flag_commands:a(c),...O}}var he=["commands","commandOverrides","flags","parsers","renderers","services","preflights","itemTypes","itemFields","relationshipKinds","migrations","profiles","searchProviders","vectorStoreAdapters","assuranceProviders","importers","exporters"];function ve(e){return(e.itemFields??[]).filter(o=>typeof o?.name=="string"&&g.has(o.name.trim())).map(o=>({code:"reserved_item_field",severity:"error",message:`Item field "${o.name}" collides with reserved item metadata; rename it with an extension-specific prefix before publishing.`,field:o.name}))}function _e(e){return[...Object.values(e.flags??{}).flat(),...(e.commands??[]).flatMap(o=>o.flags??[]),...(e.importers??[]).flatMap(o=>o.options?.flags??[]),...(e.exporters??[]).flatMap(o=>o.options?.flags??[])].flatMap(o=>{if(typeof o?.long!="string"&&typeof o?.short!="string")return[];let r=x(o.long,o.short);if(r===null)return[];let{token:t,failure:i}=r;return[{code:i,severity:"error",message:`Flag "${t}" ${k(t,i)}.`,field:t}]})}function b(e){let o=new Set;for(let r of e){let t=E(r)??y(r);t!==null&&o.add(t)}return[...o].sort((r,t)=>r.localeCompare(t))}function ye(e,o){let r=[];if(o===null)return e.length>0&&r.push({code:"manifest_capabilities_absent",severity:"warning",message:`Blueprint exercises ${e.length===1?"capability":"capabilities"} [${e.join(", ")}] but declares none; set capabilities to deriveExtensionCapabilities(blueprint) so the manifest grant matches.`}),r;let t=new Set(o),i=new Set(e);for(let s of e)t.has(s)||r.push({code:"capability_undeclared",severity:"error",message:`Blueprint exercises capability "${s}" but it is absent from the declared capabilities; activation throws extension_capability_missing \u2014 add "${s}" to the manifest capabilities.`,capability:s});for(let s of o)i.has(s)||r.push({code:"capability_unused",severity:"warning",message:`Capability "${s}" is declared but no blueprint surface exercises it; drop it to keep the manifest least-privilege (pm package doctor reports this as extension_capability_unused).`,capability:s});return r}function Ee(e){let o=[],r=new Map;for(let i of e.commands??[]){let s=m(i.name);r.set(s,(r.get(s)??0)+1)}for(let[i,s]of r)s>1&&o.push({code:"duplicate_command",severity:"warning",message:`Command "${i}" is declared ${s} times in commands; the later registration shadows the earlier one at dispatch.`,command:i});let t=new Set(Object.keys(e.commandOverrides??{}).map(i=>m(i)));for(let i of r.keys())t.has(i)&&o.push({code:"command_override_conflict",severity:"warning",message:`Command "${i}" is declared both as a new command definition and as a command override; register one or the other.`,command:i});return o}function xe(e){let o=[];for(let r of he)r in e&&!u(e[r])&&o.push({code:"empty_surface",severity:"warning",message:`Blueprint field "${r}" is present but empty; remove it or populate it.`,field:r});if("hooks"in e){let r=e.hooks??{};[r.beforeCommand,r.beforeMutation,r.afterCommand,r.onWrite,r.onRead,r.onIndex].some(u)||o.push({code:"empty_surface",severity:"warning",message:'Blueprint field "hooks" is present but registers no lifecycle hooks; remove it or populate it.',field:"hooks"})}return o}function ke(e,o={}){let r=h(e),t=o.declaredCapabilities??e.manifest?.capabilities,i=Array.isArray(t)?b(t):null,s=[...ye(r,i),...Ee(e),..._e(e),...ve(e),...xe(e)];return{ok:s.every(n=>n.severity!=="error"),findings:s,used:r,declared:i}}function P(e,o){let{additionalCapabilities:r,...t}=o,i=Array.isArray(r)?b(r):[],s=[...new Set([...h(e),...i])].sort((n,c)=>n.localeCompare(c));return{...t,capabilities:s}}function ze(e,o){let r=P(e,o);return{module:te({...e,manifest:r}),manifest:r}}function S(e,o){if(e.status==="absent"||e.status==="ok")return null;let r=`${e.kind}_${e.status}`,t="";switch(r){case"pm_min_version_invalid":t=`pm_min_version "${e.required}" is not a valid version; the extension is treated as incompatible and the loader skips it.`;break;case"pm_min_version_unchecked":t=`pm_min_version "${e.required}" could not be compared against pm ${o}; compatibility is unverified.`;break;case"pm_min_version_unmet":t=`Requires pm >= ${e.required} but the target is pm ${o}; the loader skips the extension.`;break;case"pm_max_version_invalid":t=`pm_max_version "${e.required}" is not a valid inclusive upper bound (version ranges are not allowed); the extension is treated as incompatible and the loader skips it.`;break;case"pm_max_version_unchecked":t=`pm_max_version "${e.required}" could not be compared against pm ${o}; compatibility is unverified.`;break;case"pm_max_version_exceeded":t=`Allows pm <= ${e.required} but the target is pm ${o}; the loader skips the extension.`;break;case"pm_max_version_exceeded_warn":t=`Target pm ${o} is newer than pm_max_version ${e.required}, but the "warn" exceeded mode lets it load with a warning.`;break}return{code:r,severity:e.allowed?"warning":"error",constraint:e.kind,required:e.required,current:o,message:t}}function Ce(e,o){let r=C(e.pm_min_version,o.pmVersion),t=I(e.pm_max_version,o.pmVersion,o.pmMaxVersionExceededMode??"block"),i=w(e).findings.map(f=>({code:f.code,severity:"warning",constraint:"manifest",required:f.code==="manifest_unknown_key"?f.path:"pm_min_version",current:o.pmVersion,path:f.path,...f.suggested_key?{suggested_key:f.suggested_key}:{},message:f.message})),s=[],n=S(r,o.pmVersion);n!==null&&s.push(n);let c=S(t,o.pmVersion);return c!==null&&s.push(c),{compatible:r.allowed&&t.allowed,findings:[...i,...s],pmVersion:o.pmVersion}}var Ie=new Set(["capability_undeclared","capability_unused","manifest_capabilities_absent"]);function We(e,o={}){let r=ke(e,{declaredCapabilities:o.declaredCapabilities}),t=o.identity?P(e,o.identity):null,i=o.target?Ce(t??e.manifest??{},o.target):null,s=[...(t!==null&&o.declaredCapabilities===void 0?r.findings.filter(n=>!Ie.has(n.code)):r.findings).map(n=>({source:"blueprint",severity:n.severity,code:n.code,message:n.message})),...(i?.findings??[]).map(n=>({source:"compatibility",severity:n.severity,code:n.code,message:n.message}))];return{ok:s.every(n=>n.severity!=="error"),capabilities:r.used,blueprint:r,manifest:t,compatibility:i,findings:s}}(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]="4c9a1aa8-05b6-53da-a8b1-f1a7289d39cf")}catch{}})();function Ye(e){return e}function Xe(e){return e}function Je(e){return e}function Qe(e){return e}function Ze(e){return e}function er(e){return e}function rr(e){return e}function or(e){return e}function tr(e){return e}function nr(e){return e}function ir(e){return e}function sr(e){return e}function ar(e){return e}function cr(e){return{handled:!0,result:e}}function mr(){return{handled:!1}}function dr(e){return e}function fr(e){return e}function lr(e){return e}function pr(e){return e}function ur(e){return e}function gr(e){return e}function hr(e){return e}function vr(e){return e}function _r(e){return e}(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]="d0b86c6a-67f0-52f2-90b8-d1058e8f2284")}catch{}})();export{D as BUILTIN_PROFILES,Pe as EXTENSION_CAPABILITIES,be as EXTENSION_CAPABILITY_CONTRACT,we as EXTENSION_CAPABILITY_CONTRACT_VERSION,Se as EXTENSION_CAPABILITY_LEGACY_ALIASES,V as EXTENSION_CAPABILITY_REGISTRATION_SURFACES,Oe as EXTENSION_POLICY_MODES,Ae as EXTENSION_POLICY_SURFACES,Re as EXTENSION_SANDBOX_PROFILES,Fe as EXTENSION_TRUST_MODES,Me as LIST_FILTER_EXTENSION_FLAG_DEFINITIONS,B as PM_PACKAGE_CONVENTIONAL_RESOURCE_ROOTS,M as PM_PACKAGE_RESOURCE_KINDS,Y as PROFILE_LINT_CODES,G as PROFILE_LINT_DIMENSIONS,$ as PROFILE_NAMES,g as RESERVED_ITEM_FIELD_NAMES,Be as SEARCH_EXTENSION_FLAG_DEFINITIONS,Ce as checkExtensionManifestCompatibility,L as collectPackageExtensionDirectories,z as collectUsedExtensionCapabilities,te as composeExtension,ze as composeExtensionPackage,T as createExtensionContributionInventory,mr as declineServiceOverride,gr as defineAfterCommandHook,pr as defineBeforeCommandHook,ur as defineBeforeMutationHook,Je as defineCommand,nr as defineCommandOverride,lr as defineExporter,He as defineExtension,Ue as defineExtensionBlueprint,Ye as defineExtensionManifest,Qe as defineFlag,fr as defineImporter,er as defineItemField,Ze as defineItemType,rr as defineMigration,_r as defineOnIndexHook,vr as defineOnReadHook,hr as defineOnWriteHook,ir as defineParserOverride,sr as definePreflightOverride,Xe as defineProjectProfile,dr as defineRendererOverride,or as defineSearchProvider,ar as defineServiceOverride,tr as defineVectorStoreAdapter,h as deriveExtensionCapabilities,Ve as describeExtensionBlueprint,U as describeProfileComposition,q as describeProjectProfile,cr as handleServiceOverride,F as inspectExtensionManifestSchema,ke as lintExtensionBlueprint,w as lintExtensionManifestSchema,X as lintProjectProfile,H as listProfiles,qe as mergeExtensionBlueprints,R as normalizeExtensionContributionInventory,j as normalizeProfileName,J as planProfileApplication,We as preflightExtension,N as readPmPackageManifest,W as reconcileExtensionCapabilityUsage,Q as renderExtensionSurfaceMarkdown,K as resolveProfile,P as synthesizeExtensionManifest,Te as toExtensionFlagDefinitions};
|
|
2
2
|
//# sourceMappingURL=sdk-authoring.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{a as
|
|
2
|
-
`)}function
|
|
1
|
+
import{a as ji,b as Ai,c as Ri,d as T,e as Di,f as L,g as Ni,h as Li,i as Fi,j as qi,k as zi,l as Ui,m as Gi,n as Hi,o as F,p as Vi,q,u as z,v as Bi,w as Ji,x as U,y as Ki,z as Yi}from"./focused-chunks/chunk-3Z53POXU.js";import{a as Wi}from"./focused-chunks/chunk-SVOOGGAK.js";import{a as Ii}from"./focused-chunks/chunk-VS2ZFPXD.js";import{$ as Ei,A as yo,N as fi,O as mi,P as gi,Q as yi,R as bi,S as hi,T as wi,U as xi,V as Ti,W as Ci,X as Pi,Z as vi,_ as ki,a as Je,aa as Mi,b as Ke,ba as Oi,c as Ye,ca as $i,d as We,da as Si,e as Xe,f as Qe,g as Ze,h as et,i as tt,j as Zr,k as eo,l as to,m as ro,n as oo,o as io,p as no,q as so,r as ao,s as co,t as lo,u as po,v as uo,w as _o,x as fo,y as mo,z as go}from"./focused-chunks/chunk-Z7GIVH6B.js";import{$ as er,$a as A,A as Mt,Aa as Er,B as Ot,Ba as Mr,C as $t,Ca as Or,D as St,Da as $r,E as It,Ea as Sr,F as jt,Fa as Ir,Ga as jr,H as At,Ha as Ar,I as Rt,Ia as Rr,J as Dt,Ja as Dr,K as Nt,Ka as Nr,L as Lt,La as Lr,M as Ft,Ma as Fr,N as qt,Na as qr,O as zt,Oa as zr,P as Ut,Pa as Ur,Q as Gt,Qa as Gr,R as Ht,Ra as Hr,S as Vt,Sa as Vr,T as Bt,Ta as Br,U as Jt,Ua as Jr,V as Kt,Va as Kr,W as Yt,Wa as Yr,X as Wt,Xa as Wr,Y as Xt,Z as Qt,Za as Xr,_ as Zt,aa as tr,ab as R,b as ot,ba as rr,bb as Qr,c as it,ca as or,d as nt,da as ir,e as st,ea as nr,f as at,fa as sr,g as dt,ga as ar,h as ct,ha as dr,i as lt,ia as cr,j as pt,ja as lr,k as ut,ka as pr,l as _t,la as ur,m as ft,ma as _r,n as mt,na as fr,o as gt,oa as mr,p as yt,pa as gr,q as bt,qa as yr,r as ht,ra as br,s as wt,sa as hr,t as xt,ta as wr,u as Tt,ua as xr,v as Ct,va as Tr,w as Pt,wa as Cr,x as vt,xa as Pr,y as kt,ya as vr,z as Et,za as kr}from"./focused-chunks/chunk-UQIBGLDR.js";import{a as Xi,b as Qi,c as Zi,d as en,e as tn,f as rn,g as on,h as nn}from"./focused-chunks/chunk-4PW5XWVI.js";import{a as rt}from"./focused-chunks/chunk-AK2CI2GI.js";import{$a as O,$b as I,$c as Oo,Ab as Be,Ad as Qo,Bd as Zo,Cd as ei,Dd as ti,Ee as _i,Kc as D,Lc as N,Mb as Q,Qc as bo,Rc as ho,Sc as wo,Tc as xo,Ua as ge,Uc as To,Va as ye,Vc as Co,Wa as be,Wb as $,Wc as Po,Xa as he,Xb as S,Xc as vo,Ya as M,Yc as ko,Za as we,Zc as Eo,_a as f,_c as Mo,ab as xe,ad as $o,bb as Te,bc as j,bd as So,cb as Ce,cd as Io,db as Pe,dd as jo,eb as ve,ed as Ao,fb as ke,fd as Ro,gb as Ee,gd as Do,hb as Me,hd as No,ib as Oe,jb as $e,kb as Se,mb as Ie,md as Lo,nb as je,nd as Fo,ne as ri,ob as Ae,od as qo,oe as x,pb as Re,pd as zo,pe as oi,qb as De,qd as Uo,qe as ii,rb as Ne,rd as Go,re as ni,sb as Le,sd as Ho,se as si,tb as Fe,td as Vo,te as ai,ub as qe,ud as Bo,ue as di,vb as ze,vd as Jo,ve as ci,wb as Ue,wd as Ko,we as li,xb as Ge,xd as Yo,xe as pi,yb as He,yd as Wo,ye as ui,zb as Ve,zd as Xo}from"./focused-chunks/chunk-CIQ6YWCW.js";import{z as w}from"./focused-chunks/chunk-JLXGRDTG.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]="8f11e0bf-4115-55a8-bd39-c360f43cdc09")}catch{}})();var Z="2026-07-28",G=["2025-11-25","2025-06-18"],H=[Z];(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]="d4a56906-c542-567e-9265-15184a5c330b")}catch{}})();var ee=new Set(["--help","-h","--version","-V"]);function te(e,r){let o=[`Usage: ${e==="stdio"?"pm-mcp":"pm-mcp-http"} [--help | --version]`,"",e==="stdio"?"JSON-RPC over stdin/stdout. With no arguments, starts the stdio server.":"Streamable HTTP POST /mcp. With no arguments, starts the HTTP server.","","Options:"," -h, --help Print help and exit before transport startup."," -V, --version Print the package version and exit.","","Environment:"," PM_PATH Tracker root (otherwise discovered from cwd)."," PM_GLOBAL_PATH Global settings root."," PM_MCP_PROFILE core (default), standard, full, or custom."," PM_MCP_TOOLS Comma-separated tool allowlist for custom profile."," PM_MCP_DISCOVERY_CURSOR_KEY Shared discovery cursor secret, at least 32 UTF-8 bytes."," PM_MCP_BAGGAGE_ALLOWLIST Comma-separated permitted trace baggage keys."];return e==="http"&&o.push(" PM_MCP_HTTP_HOST Bind host (default 127.0.0.1)."," PM_MCP_HTTP_PORT Bind port, 0..65535 (default 3000)."," PM_MCP_HTTP_ALLOWED_ORIGINS Comma-separated exact browser origins (default none)."," PM_MCP_HTTP_BEARER_TOKEN Deployment token for the bundled verifier."," PM_MCP_HTTP_AUTH_ISSUER Exact HTTPS authorization-server issuer."," PM_MCP_HTTP_RESOURCE Canonical resource/audience URI."," PM_MCP_HTTP_SCOPES Space-separated scopes (default pm:read pm:write).","","Non-loopback HTTP requires bearer token, issuer, and resource together."),o.push("",`MCP protocol: ${H.join(", ")}.`,e==="stdio"?`Legacy initialize compatibility: ${G.join(", ")}.`:"HTTP requires modern per-request metadata; legacy initialize is stdio-only.","",e==="stdio"?"Client configuration:":"Example loopback server:",e==="stdio"?JSON.stringify({mcpServers:{pm:{command:"npx",args:["--yes","--package",`@unbrained/pm-cli@${r}`,"pm-mcp"]}}}):`PM_MCP_HTTP_PORT=3000 npx --yes --package @unbrained/pm-cli@${r} pm-mcp-http`,...e==="http"?["HTTP client configuration:",JSON.stringify({mcpServers:{pm:{url:"http://127.0.0.1:3000/mcp"}}})]:[],"","Configuration: https://github.com/unbraind/pm-cli/blob/main/docs/MCP_REMOTE_TRANSPORT_SECURITY.md",""),o.join(`
|
|
2
|
+
`)}function dn(e,r,o){if(e.length===0)return{kind:"serve"};let i=e.find(t=>!ee.has(t));if(i!==void 0){let t=r==="stdio"?"pm-mcp":"pm-mcp-http";return{kind:"exit",exitCode:64,stdout:"",stderr:`Unsupported argument ${JSON.stringify(i)}. Run ${t} --help.
|
|
3
3
|
`}}return{kind:"exit",exitCode:0,stdout:e.includes("--help")||e.includes("-h")?te(r,o):`${o}
|
|
4
|
-
`,stderr:""}}(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]="1cda240f-7416-5d00-abf5-53695f26ef69")}catch{}})();var m,re=Object.freeze({list:"list-item-projection","list-all":"list-item-projection","list-draft":"list-item-projection","list-open":"list-item-projection","list-in-progress":"list-item-projection","list-blocked":"list-item-projection","list-closed":"list-item-projection","list-canceled":"list-item-projection",get:"get-item-projection",graph:"graph-detail-projection",search:"search-result-projection",history:"history-entry-projection",events:"mutation-event-projection",activity:"activity-entry-projection",deps:"dependency-graph-projection",health:"health-diagnostic-projection",validate:"validation-diagnostic-projection",contracts:"contract-catalog-projection"});function oe(e,r){if(r==="--limit")return"result-row-limit";if(r==="--node-limit")return"graph-node-limit";if(r==="--edge-limit")return"graph-edge-limit";if(r==="--output-limit")return"rendered-output-row-limit";if(r==="--output-budget")return"rendered-output-byte-budget";if(r==="--token-budget")return"context-intent-token-budget";if(r==="--full"){let o=re[f(e)];if(o===void 0)throw new Error(`Command ${e} exposes --full without a registered projection concept.`);return o}return r!=="--file"?r.slice(2):["create","update","update-many"].includes(f(e))?"linked-file-path":["comments","notes","learnings"].includes(f(e))?"entry-file-input":"plan-definition-file"}function g(){if(m!==void 0)return m;let e=q.filter(({command:t})
|
|
5
|
-
`)}(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]="f5567aa1-0268-574d-907b-38d6249538ce")}catch{}})();var C=2,ae=["self_reported","independent_transport"];function y(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function _(e,r){if(typeof e!="string"||e.trim().length===0)throw new TypeError(`${r} must be a non-empty string`);return e.trim()}function K(e,r,o=!1){if(!Array.isArray(e)||e.length===0)throw new TypeError(`${r} must be a non-empty string array`);return e.map((i,t)=>{let n=_(i,`${r}[${String(t)}]`);return o?i:n})}function P(e,r){return e===void 0?void 0:_(e,r)}function de(e,r){if(e===void 0)return;if(!y(e)||Object.keys(e).length===0)throw new TypeError(`${r} must be a non-empty object`);let o=Object.entries(e).map(([i,t])=>{if(i.length===0||i.split(".").some(n=>n.length===0))throw new TypeError(`${r} must use dot-separated own-property paths`);if(t!==null&&typeof t!="string"&&typeof t!="boolean"&&(typeof t!="number"||!Number.isFinite(t)))throw new TypeError(`${r} values must be JSON primitives`);return[i,t]});return Object.fromEntries(o)}function ce(e,r,o,i,t,n){if(i==="refusal"){if(T(o)||t===void 0||n===void 0)throw new TypeError(`${e} refusal steps require a non-success exit, error code, and refusal surface`);return}if(t!==void 0||n!==void 0)throw new TypeError(`${e} only refusal steps may declare expected_error_code or expected_refusal_surface`);let s=I(r);if(s===void 0)throw new TypeError(`${e}.args must identify a command after global flags`);let d=r[s].trim().toLowerCase();if(d==="history"){let l=j(r.slice(s+1));l!==void 0&&(d=O(`history ${l}`))}let a=L(d);if(!T(o)||o!==0&&!a?.exit_codes.some(l=>l===o))throw new TypeError(`${e} successful output must use exit code 0 or a command-declared successful effect exit`);let c=U(d).kind;if(i!==c)throw new TypeError(`${e} expected ${i}, but ${d} declares ${c}`)}function le(e,r,o){if(!y(e))throw new TypeError(`tasks.${r}.steps[${String(o)}] must be an object`);let i=`tasks.${r}.steps[${String(o)}]`,t=_(e.id,`${i}.id`),n=K(e.args,`${i}.args`,!0),s=e.expected_exit_code;if(typeof s!="number"||!Number.isSafeInteger(s))throw new TypeError(`${i}.expected_exit_code must be a safe integer`);let d=e.expected_output_kind;if(d!=="refusal"&&!z.includes(d))throw new TypeError(`${i}.expected_output_kind is unsupported`);let a=d,c=e.expected_accounting_mode;if(!ae.includes(c))throw new TypeError(`${i}.expected_accounting_mode is unsupported`);let l=c;if(l==="independent_transport"&&a!=="refusal")throw new TypeError(`${i} independent_transport accounting is supported only for refusal steps`);let p=K(e.required_fields,`${i}.required_fields`);if(p.some(W=>W.split(".").some(X=>X.length===0)))throw new TypeError(`${i}.required_fields must contain dot-separated own-property paths`);let k=de(e.expected_field_values,`${i}.expected_field_values`),b=P(e.expected_error_code,`${i}.expected_error_code`),h=P(e.expected_refusal_surface,`${i}.expected_refusal_surface`),E=P(e.recovery_for,`${i}.recovery_for`);return ce(i,n,s,a,b,h),{id:t,args:n,expected_exit_code:s,expected_output_kind:a,expected_accounting_mode:l,required_fields:p,...k?{expected_field_values:k}:{},...b?{expected_error_code:b}:{},...h?{expected_refusal_surface:h}:{},...E?{recovery_for:E}:{}}}function pe(e,r){if(!y(e))throw new TypeError(`tasks[${String(r)}] must be an object`);let o=_(e.id,`tasks[${String(r)}].id`),i=_(e.description,`tasks.${o}.description`);if(!Array.isArray(e.steps)||e.steps.length===0)throw new TypeError(`tasks.${o}.steps must be a non-empty array`);let t=e.steps.map((s,d)=>le(s,o,d)),n=new Map;for(let s of t){if(n.has(s.id))throw new TypeError(`tasks.${o} contains duplicate step id ${s.id}`);if(s.recovery_for!==void 0&&(n.get(s.recovery_for)?.expected_output_kind!=="refusal"||s.expected_output_kind==="refusal"))throw new TypeError(`tasks.${o}.${s.id} recovery_for must reference an earlier refusal and declare successful output`);n.set(s.id,s)}if(t.at(-1)?.expected_output_kind==="refusal")throw new TypeError(`tasks.${o} completed task must terminate with successful output`);for(let s of t)if(s.expected_output_kind==="refusal"&&!t.some(d=>d.recovery_for===s.id))throw new TypeError(`tasks.${o}.${s.id} refusal must have a later successful recovery_for step`);return{id:o,description:i,steps:t}}function mn(e){if(!y(e))throw new TypeError("agent-task transcript corpus must be an object");if(e.version!==C)throw new TypeError(`agent-task transcript corpus version must be ${String(C)}`);if(!Array.isArray(e.tasks)||e.tasks.length===0)throw new TypeError("agent-task transcript corpus tasks must be non-empty");let r=e.tasks.map((i,t)=>pe(i,t)),o=new Set;for(let i of r){if(o.has(i.id))throw new TypeError(`duplicate agent-task transcript id ${i.id}`);o.add(i.id)}return{version:C,tasks:r}}(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]="d252409d-e33e-5c9e-9671-789f0ee87312")}catch{}})();function ue(e){return[e.expected_error_code!==void 0&&e.error_code!==e.expected_error_code?{code:"error_code_mismatch",probe_id:e.probe_id,detail:`Expected error code ${e.expected_error_code}, received ${e.error_code??"<missing>"}.`}:void 0,e.expected_allowed_values!==void 0&&JSON.stringify([...e.allowed_values].sort())!==JSON.stringify([...e.expected_allowed_values].sort())?{code:"incomplete_allowed_values",probe_id:e.probe_id,detail:"The refusal's accepted domain differs from the SDK-owned domain contract."}:void 0,e.expected_suggested_retry_args!==void 0&&(e.suggested_retry_args?.length??0)===0?{code:"missing_suggested_retry_args",probe_id:e.probe_id,detail:"The refusal omitted shell-free suggested retry arguments."}:void 0,e.expected_suggested_retry_args!==void 0&&(e.suggested_retry_args?.length??0)>0&&JSON.stringify(e.suggested_retry_args)!==JSON.stringify(e.expected_suggested_retry_args)?{code:"suggested_retry_args_mismatch",probe_id:e.probe_id,detail:"The refusal's suggested retry arguments differ from the SDK-owned contract."}:void 0]}function _e(e){return[e.exit_code!==w.USAGE?{code:"non_refusal_exit",probe_id:e.probe_id,detail:`${e.entrypoint} returned exit code ${e.exit_code}; a structured usage refusal must return ${w.USAGE}.`}:void 0,e.allowed_values_required!==!1&&e.allowed_values.length===0?{code:"missing_allowed_values",probe_id:e.probe_id,detail:"The refusal omitted its complete accepted value domain."}:void 0,e.allowed_values.includes(e.rejected_value)?{code:"accepted_rejected_value",probe_id:e.probe_id,detail:`${e.rejected_value} is both rejected and advertised as allowed.`}:void 0,e.suggested_retry.trim().length===0?{code:"missing_suggested_retry",probe_id:e.probe_id,detail:"The refusal omitted an executable suggested retry."}:void 0,e.retry_succeeded?void 0:{code:"retry_failed",probe_id:e.probe_id,detail:"The advertised suggested retry did not succeed."},...ue(e)]}function bn(e){let r=[],o=new Set,i=0;e.length===0&&r.push({code:"empty_corpus",probe_id:"corpus",detail:"At least one real refusal observation is required."});for(let t of e){if(o.has(t.probe_id)){r.push({code:"duplicate_probe",probe_id:t.probe_id,detail:`${t.probe_id} was supplied more than once.`});continue}o.add(t.probe_id);let n=r.length;for(let s of _e(t))s!==void 0&&r.push(s);r.length===n&&(i+=1)}return r.sort((t,n)=>t.probe_id!==n.probe_id?t.probe_id.localeCompare(n.probe_id):t.code.localeCompare(n.code)),{ok:r.length===0,probe_count:o.size,closed_probe_count:i,closure_fraction:o.size===0?0:i/o.size,findings:r}}(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]="8467eccc-684d-56cc-8b18-5f2e940abb42")}catch{}})();var Y="not-a-declared-intent",u="not-a-declared-field";function fe(){let e={get:["pm-domain"],search:["Domain query"]},r=[...new Set(x.map(({command:t})=>t))].map(t=>{let n=x.filter(a=>a.command===t),s=n[0],d=e[s.command]??[];return{probe_id:`${s.command}-invalid-intent`,command:s.command,flag:"--for",rejected_value:Y,refusal_args:[s.command,...d,"--for",Y],allowed_values:n.map(({intent:a})=>a).sort(),suggested_retry_args:[s.command,...d,"--for",s.intent],error_code:"unknown_context_intent"}}),o=R(),i=Object.keys(A).map(t=>({probe_id:`${t}-invalid-field`,command:t,flag:"--fields",rejected_value:u,refusal_args:[t,"--fields",u],allowed_values:o,suggested_retry_args:[t,"--fields","id,title,status"],error_code:"unknown_field_projection"}));return[...r,...i,{probe_id:"get-invalid-field",command:"get",flag:"--fields",rejected_value:u,refusal_args:["get","pm-domain","--fields",u],allowed_values:D(),suggested_retry_args:["get","pm-domain","--fields","id,title,status"],error_code:"unknown_field_projection"},{probe_id:"list-mutually-exclusive-projection",command:"list",flag:"--projection",rejected_value:"--brief+--full",refusal_args:["list","--brief","--full"],allowed_values:[],suggested_retry_args:["list","--brief"],error_code:"projection_options_mutually_exclusive",allowed_values_required:!1},{probe_id:"get-mutually-exclusive-projection",command:"get",flag:"--projection",rejected_value:"--full+--fields",refusal_args:["get","pm-domain","--full","--fields","id"],allowed_values:[],suggested_retry_args:["get","pm-domain","--full"],error_code:"projection_options_mutually_exclusive",allowed_values_required:!1},{probe_id:"search-mutually-exclusive-projection",command:"search",flag:"--projection",rejected_value:"--full+--fields",refusal_args:["search","Domain query","--full","--fields","id"],allowed_values:[],suggested_retry_args:["search","Domain query","--full"],error_code:"projection_options_mutually_exclusive",allowed_values_required:!1},{probe_id:"package-upgrade-mutually-exclusive-modes",command:"package upgrade",flag:"--cli-only/--packages-only",rejected_value:"--cli-only+--packages-only",refusal_args:["package","upgrade","--cli-only","--packages-only","--dry-run"],allowed_values:[],suggested_retry_args:["package","upgrade","--packages-only","--dry-run"],error_code:"package_upgrade_modes_mutually_exclusive",allowed_values_required:!1},{probe_id:"search-invalid-field",command:"search",flag:"--fields",rejected_value:u,refusal_args:["search","Domain query","--fields",u],allowed_values:N(),suggested_retry_args:["search","Domain query","--fields","id,title,status,score"],error_code:"unknown_field_projection"}].sort((t,n)=>t.probe_id.localeCompare(n.probe_id))}function Tn(e,r){let o=fe().find(n=>n.command===e&&n.flag===r);if(!o)return"No stable core values are declared.";let i=o.allowed_values.filter(n=>!n.startsWith("item.")),t=r==="--fields"?" item.<field> aliases and configured runtime metadata fields are also accepted.":" Configured package and workspace intents may extend this domain.";return`Allowed core values: ${i.join("|")}.${t}`}(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]="d3795bc4-fbe5-5ca4-bc90-b72a2d469dc7")}catch{}})();var v=[{probe_id:"tracker-root-missing",failure_kind:"missing_root",expected_error_code:"tracker_root_missing",expected_exit_code:3,recovery_kind:"initialize"},{probe_id:"tracker-root-settings-missing",failure_kind:"settings_missing",expected_error_code:"tracker_not_initialized",expected_exit_code:3,recovery_kind:"initialize"},{probe_id:"tracker-root-not-directory",failure_kind:"not_directory",expected_error_code:"tracker_root_not_directory",expected_exit_code:2,recovery_kind:"select_directory"},{probe_id:"tracker-root-unreadable",failure_kind:"unreadable_root",expected_error_code:"tracker_root_unreadable",expected_exit_code:1,recovery_kind:"repair_permissions"}];function Pn(){return v.map(e=>({...e}))}function me(e,r){let o=[];r.error_code!==e.expected_error_code&&o.push({code:"error_code_mismatch",probe_id:e.probe_id,detail:`Expected ${e.expected_error_code}, received ${r.error_code}.`}),r.exit_code!==e.expected_exit_code&&o.push({code:"exit_code_mismatch",probe_id:e.probe_id,detail:`Expected exit ${e.expected_exit_code}, received ${r.exit_code}.`}),r.recovery_kind!==e.recovery_kind&&o.push({code:"recovery_kind_mismatch",probe_id:e.probe_id,detail:`Expected ${e.recovery_kind}, received ${r.recovery_kind}.`});let i=r.suggested_retry_args.indexOf("init"),t=i===0||i===2&&r.suggested_retry_args[0]==="--pm-path"&&r.suggested_retry_args[1]?.length>0;return e.recovery_kind==="initialize"&&!t&&o.push({code:"missing_init_recovery",probe_id:e.probe_id,detail:"Missing and uninitialized roots must emit a tokenized init retry."}),(r.unsafe_init_recommended||e.recovery_kind!=="initialize"&&r.suggested_retry_args.includes("init"))&&o.push({code:"unsafe_init_recovery",probe_id:e.probe_id,detail:"A tracker root that cannot be initialized safely must not recommend initialization."}),r.retry_succeeded||o.push({code:"retry_failed",probe_id:e.probe_id,detail:"The emitted retry or safe alternate-root recovery did not execute successfully."}),o}function vn(e){let r=new Map(e.map(t=>[t.probe_id,t])),o=[],i=0;for(let t of v){let n=r.get(t.probe_id);if(n===void 0){o.push({code:"missing_probe",probe_id:t.probe_id,detail:"No runtime observation was supplied for this contract."});continue}let s=me(t,n);o.push(...s),s.length===0&&(i+=1)}return o.sort((t,n)=>t.probe_id.localeCompare(n.probe_id)||t.code.localeCompare(n.code)),{ok:o.length===0,probe_count:v.length,closed_probe_count:i,findings:o}}(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]="06f7e972-61ab-5964-843c-5524cfd407d9")}catch{}})();export{Qe as ACTIVITY_COMMANDER_STRING_OPTION_CONTRACTS,Lr as ACTIVITY_FLAG_CONTRACTS,Tt as AGGREGATE_FLAG_CONTRACTS,dr as APPEND_FLAG_CONTRACTS,Mr as ASSURANCE_FLAG_CONTRACTS,Ye as CALENDAR_COMMANDER_STRING_OPTION_CONTRACTS,Nr as CALENDAR_FLAG_CONTRACTS,cr as CLAIM_FLAG_CONTRACTS,gi as CLOSE_ACTION_OPTION_KEYS,sr as CLOSE_FLAG_CONTRACTS,ar as CLOSE_MANY_FLAG_CONTRACTS,mr as CLOSE_TASK_FLAG_CONTRACTS,Ct as COMMENTS_FLAG_CONTRACTS,Wr as COMPLETION_FLAG_CONTRACTS,Lt as CONFIG_FLAG_CONTRACTS,We as CONTEXT_COMMANDER_STRING_OPTION_CONTRACTS,qr as CONTEXT_FLAG_CONTRACTS,Yr as CONTRACTS_FLAG_CONTRACTS,jr as COPY_FLAG_CONTRACTS,ai as CREATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,ci as CREATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,di as CREATE_COMMANDER_STRING_OPTION_CONTRACTS,Or as CREATE_FLAG_CONTRACTS,pr as DELETE_FLAG_CONTRACTS,Gr as DEPS_FLAG_CONTRACTS,Et as DOCS_FLAG_CONTRACTS,vr as DUPLICATES_FLAG_CONTRACTS,Vr as EVAL_FLAG_CONTRACTS,Fr as EVENTS_FLAG_CONTRACTS,yr as EVENT_FLAG_CONTRACTS,Te as EXECUTABLE_COMMAND_ALIASES,Yt as EXTENSION_ACTIVATE_FLAG_CONTRACTS,Kt as EXTENSION_ADOPT_ALL_FLAG_CONTRACTS,rr as EXTENSION_ADOPT_FLAG_CONTRACTS,tr as EXTENSION_CATALOG_FLAG_CONTRACTS,Wt as EXTENSION_DEACTIVATE_FLAG_CONTRACTS,Jt as EXTENSION_DESCRIBE_FLAG_CONTRACTS,er as EXTENSION_DOCTOR_FLAG_CONTRACTS,Bt as EXTENSION_EXPLORE_FLAG_CONTRACTS,Ft as EXTENSION_FLAG_CONTRACTS,zt as EXTENSION_INIT_FLAG_CONTRACTS,Ht as EXTENSION_INSTALL_FLAG_CONTRACTS,Qt as EXTENSION_MANAGE_FLAG_CONTRACTS,Xt as EXTENSION_MIGRATE_FLAG_CONTRACTS,Zt as EXTENSION_RELOAD_FLAG_CONTRACTS,qt as EXTENSION_SCOPE_FLAG_CONTRACTS,Vt as EXTENSION_UNINSTALL_FLAG_CONTRACTS,kt as FILES_FLAG_CONTRACTS,Ar as FOCUS_FLAG_CONTRACTS,Cr as GC_FLAG_CONTRACTS,zr as GET_FLAG_CONTRACTS,wt as GLOBAL_FLAG_CONTRACTS,Hr as GRAPH_FLAG_CONTRACTS,rt as GRAPH_QUERY_DEFAULTS,Ur as GUIDE_FLAG_CONTRACTS,kr as HEALTH_FLAG_CONTRACTS,It as HISTORY_AUTHOR_ACKNOWLEDGE_FLAG_CONTRACTS,jt as HISTORY_COMPACT_FLAG_CONTRACTS,Mt as HISTORY_FLAG_CONTRACTS,$t as HISTORY_REDACT_FLAG_CONTRACTS,St as HISTORY_REPAIR_FLAG_CONTRACTS,Nt as INIT_FLAG_CONTRACTS,or as INSTALL_FLAG_CONTRACTS,Sr as ITEM_COMPLETE_FLAG_CONTRACTS,$r as ITEM_MUTATE_FLAG_CONTRACTS,Ir as ITEM_REOPEN_FLAG_CONTRACTS,vt as LEARNINGS_FLAG_CONTRACTS,Je as LIST_COMMANDER_STRING_OPTION_CONTRACTS,xt as LIST_FILTER_FLAG_CONTRACTS,gr as MEET_FLAG_CONTRACTS,Ot as MERGE_FLAG_CONTRACTS,Ie as MERGE_SUBCOMMAND_VALUES,Xe as NEXT_COMMANDER_STRING_OPTION_CONTRACTS,Jr as NEXT_FLAG_CONTRACTS,Pt as NOTES_FLAG_CONTRACTS,Ut as PACKAGE_FLAG_CONTRACTS,Gt as PACKAGE_INIT_FLAG_CONTRACTS,fr as PAUSE_TASK_FLAG_CONTRACTS,mi as PLAN_CREATE_METADATA_PARAMETER_KEYS,Dt as PLAN_FLAG_CONTRACTS,ae as PM_AGENT_TASK_ACCOUNTING_MODES,C as PM_AGENT_TASK_TRANSCRIPT_VERSION,be as PM_BULK_LIFECYCLE_COMMAND_ALIASES,pt as PM_CLI_GRAMMAR_CONTRACT,ot as PM_CLI_GRAMMAR_NOUNS,De as PM_CLI_ONLY_TOOL_ACTION_WAIVERS,it as PM_CLI_SHARED_VERBS,xe as PM_COMMAND_ALIAS_CONTRACTS,ct as PM_COMMAND_DESTINATION_CONTRACTS,Ei as PM_COMMAND_EXIT_CONTRACTS,ki as PM_COMMAND_EXIT_OUTCOME_CONTRACTS,ko as PM_COMMAND_OUTPUT_BUDGET_CONTRACTS,qi as PM_COMMAND_OUTPUT_ENVELOPE_CONTRACTS,lt as PM_COMMAND_POSITIONAL_CONTRACTS,x as PM_CONTEXT_INTENT_CONTRACTS,ye as PM_CONTEXT_OPS_COMMAND_ALIASES,Se as PM_CORE_COMMAND_NAMES,Le as PM_DEPRECATED_TOOL_ACTIONS,xo as PM_DIAGNOSTIC_DEGRADATION_STEPS,To as PM_DIAGNOSTIC_OUTPUT_BUDGET_CONTRACTS,wo as PM_DIAGNOSTIC_OUTPUT_CLASSES,Fe as PM_DISCOVERABLE_TOOL_ACTIONS,Di as PM_ERROR_CODE_CATALOG,Ii as PM_ERROR_CODE_EXIT_CLASS_CONTRACTS,ve as PM_EXTENSION_CAPABILITY_CONTRACTS,je as PM_EXTENSION_PACKAGE_ACTION_SUBCOMMANDS,Ee as PM_EXTENSION_POLICY_MODE_CONTRACTS,$e as PM_EXTENSION_POLICY_SURFACE_CONTRACTS,Oe as PM_EXTENSION_SANDBOX_PROFILE_CONTRACTS,ke as PM_EXTENSION_SERVICE_NAME_CONTRACTS,Me as PM_EXTENSION_TRUST_MODE_CONTRACTS,Gi as PM_HISTORY_ATTESTATION_CONTRACT,ge as PM_HISTORY_COMMAND_ALIASES,Bi as PM_HISTORY_OPERATION_ALIASES,Ki as PM_HISTORY_OPERATION_CONTRACT,Ji as PM_HISTORY_OPERATION_PATTERNS,Re as PM_ITEM_ACTION_SUBCOMMANDS,Hi as PM_ITEM_HISTORY_OPERATIONS,M as PM_NAMESPACED_COMMAND_ALIASES,ho as PM_OUTPUT_BUDGET_CLASSES,bo as PM_OUTPUT_DEGRADATION_STEPS,z as PM_OUTPUT_ENVELOPE_KINDS,Ae as PM_PACKAGE_ONLY_ACTION_SUBCOMMANDS,nt as PM_POSITIONAL_ACTION_CONTRACTS,Ci as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA,xi as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA_VERSION,Ao as PM_READ_OUTPUT_COMPOSITION_OPTION_FLAGS,Bo as PM_READ_OUTPUT_CONTINUATION_FINGERPRINT_POLICIES,Io as PM_READ_OUTPUT_DIMENSIONS,jo as PM_READ_OUTPUT_OPTION_FLAGS,Be as PM_READ_OUTPUT_SURFACES,Ro as PM_READ_OUTPUT_SURFACE_CONTRACTS,he as PM_RELOCATED_COMMAND_ALIASES,Mi as PM_SUCCESS_EXIT_CODES,Ne as PM_TOOL_ACTIONS,yi as PM_TOOL_ACTION_PARAMETER_CONTRACTS,Ti as PM_TOOL_PARAMETERS_SCHEMA,wi as PM_TOOL_PARAMETERS_SCHEMA_MAJOR,hi as PM_TOOL_PARAMETERS_SCHEMA_VERSION,_i as PM_TOOL_RESERVED_CUSTOM_FIELD_PROPERTIES,Vi as PM_WORKSPACE_HISTORY_OPERATIONS,Rt as PROFILE_FLAG_CONTRACTS,nr as REINDEX_FLAG_CONTRACTS,ur as RELEASE_FLAG_CONTRACTS,br as REMIND_FLAG_CONTRACTS,lr as RESTORE_FLAG_CONTRACTS,At as SCHEMA_FLAG_CONTRACTS,Ke as SEARCH_COMMANDER_STRING_OPTION_CONTRACTS,Kr as SEARCH_FLAG_CONTRACTS,_r as START_TASK_FLAG_CONTRACTS,Pr as STATS_FLAG_CONTRACTS,ht as SUBCOMMAND_GLOBAL_FLAG_CONTRACTS,xr as TELEMETRY_FLAG_CONTRACTS,wr as TEST_ALL_FLAG_CONTRACTS,hr as TEST_FLAG_CONTRACTS,Tr as TEST_RUNS_FLAG_CONTRACTS,fo as TOOL_ACTIVITY_OPTION_CONTRACTS,to as TOOL_AGGREGATE_OPTION_CONTRACTS,lo as TOOL_BULK_MUTATION_FILTER_OPTION_CONTRACT_SOURCE,_o as TOOL_CALENDAR_OPTION_CONTRACTS,uo as TOOL_CLOSE_MANY_FILTER_OPTION_CONTRACTS,mo as TOOL_CONTEXT_OPTION_CONTRACTS,so as TOOL_CREATE_OPTION_CONTRACTS,no as TOOL_CREATE_OPTION_CONTRACT_SOURCE,go as TOOL_DEPS_OPTION_CONTRACTS,yo as TOOL_GRAPH_OPTION_CONTRACTS,eo as TOOL_LIST_FILTER_OPTION_CONTRACTS,ro as TOOL_SEARCH_FILTER_OPTION_CONTRACTS,io as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACTS,oo as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACT_SOURCE,po as TOOL_UPDATE_MANY_FILTER_OPTION_CONTRACTS,co as TOOL_UPDATE_OPTION_CONTRACTS,ao as TOOL_UPDATE_OPTION_CONTRACT_SOURCE,li as UPDATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,ui as UPDATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,pi as UPDATE_COMMANDER_STRING_OPTION_CONTRACTS,Rr as UPDATE_FLAG_CONTRACTS,Dr as UPDATE_MANY_FLAG_CONTRACTS,ir as UPGRADE_FLAG_CONTRACTS,Er as VALIDATE_FLAG_CONTRACTS,Br as WORKSPACE_FLAG_CONTRACTS,Pi as _testOnlyCliContracts,$i as analyzePmCommandExitConformance,qe as analyzePmToolActionParity,vi as analyzeSdkCliParameterCompleteness,ei as applyContextIntentProjection,Go as applyReadOutputDimensions,Fo as applyReadOutputIncludeModes,oi as attachContextIntentReceipt,ni as attachOutputTokenAccounting,ii as attachReadOutputContracts,bi as buildPmActionToolInputSchema,bt as compactFlagAliasContracts,Qo as composeContextIntentContracts,ri as contextIntentRowId,Po as createPmCommandOutputBudget,ti as decodeContextIntentCursor,Yo as decodeReadOutputContinuationCursor,vo as definePmCommandOutputBudget,Fi as definePmCommandOutputEnvelope,ji as definePmErrorCodeCatalog,Si as derivePmBulkMutationEffect,Ko as encodeReadOutputContinuationCursor,Ni as enrichCliFlagInvocationContract,F as enrichCliFlagInvocationContracts,Mo as estimatePmOutputTokens,we as findPmNamespacedCommand,dt as formatPmPositionalActionFlagTip,Wo as getActiveContextIntentContracts,$ as hasSubcommandFlagContractsForCommand,Co as inferPmOutputBudgetClass,Ue as isPmExtensionCapabilityContract,He as isPmExtensionPolicyModeContract,Ve as isPmExtensionPolicySurfaceContract,Ge as isPmExtensionServiceNameContract,Oi as isPmKnownExitCode,zi as isPmMutationReceipt,T as isPmSuccessfulExitCode,ze as isPmToolAction,Ho as isReadOutputBudgetExceeded,fe as listCoreClosedDomainContracts,J as listPmCommandFlagBudgets,g as listPmFlagLexicon,an as listPmFlagSpellingInventory,Pn as listTrackerPreflightRecoveryContracts,Xi as normalizeHistoryOperationForWrite,qo as normalizeReadOutputIncludeModeOptions,Ui as parseMutationReceipt,mn as parsePmAgentTaskTranscriptCorpus,_t as positionalShapeKey,ft as positionalSignatureKey,$o as projectPmDiagnosticOutput,So as projectPmDiagnosticText,Ze as readFirstStringFromCommanderOptions,et as readFirstValueFromCommanderOptions,Jo as readOutputCollectionFingerprint,Lo as readOutputIncludeModeOptions,tt as readStringArrayFromCommanderOptions,Tn as renderPmClosedDomainHelp,Pe as renderPmCommandAliasMigrationHint,cn as renderPmFlagLexiconMarkdown,Wi as requireHistoryOperation,Ai as resolveCanonicalPmErrorCodeContract,Zo as resolveContextIntentContract,Q as resolveExtensionFlagValueContract,Yi as resolveHistoryOperation,Ce as resolvePmCommandAlias,L as resolvePmCommandExitContract,f as resolvePmCommandOperation,Eo as resolvePmCommandOutputBudget,U as resolvePmCommandOutputEnvelope,st as resolvePmCommandPositionalContract,Oo as resolvePmDiagnosticOutputBudget,Ri as resolvePmErrorCodeContract,oe as resolvePmFlagSemanticConcept,O as resolvePmHistoryOperation,en as resolvePmMcpExecutableInvocation,at as resolvePmPositionalActionContract,Xr as resolvePmPositionalActionFlagContracts,fi as resolvePmToolCustomFieldCollision,zo as resolveReadOutputDimensions,Vo as resolveReadOutputEncoding,si as resolveReadOutputRecoveryBudget,Do as resolveReadOutputSurface,S as resolveSubcommandFlagContractsForCommand,Xo as runWithContextIntentContracts,bn as scorePmRefusalClosure,vn as scoreTrackerPreflightRecoveryClosure,Uo as stabilizeReadOutputReceiptEstimates,Qr as toCompletionFlagString,No as validateReadOutputOptions,Li as verifyCliFlagInvocationParity,ut as verifyExplicitPositionalSlotCensus,gt as verifyPmCliGrammar,mt as verifyPmCommandPositionalContracts,dn as verifyPmFlagLexicon,Zr as verifyToolOptionCliParity,yt as withFlagAliasMetadata};
|
|
4
|
+
`,stderr:""}}(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]="1cda240f-7416-5d00-abf5-53695f26ef69")}catch{}})();var m,re=Object.freeze({list:"list-item-projection","list-all":"list-item-projection","list-draft":"list-item-projection","list-open":"list-item-projection","list-in-progress":"list-item-projection","list-blocked":"list-item-projection","list-closed":"list-item-projection","list-canceled":"list-item-projection",get:"get-item-projection",graph:"graph-detail-projection",search:"search-result-projection",history:"history-entry-projection",events:"mutation-event-projection",activity:"activity-entry-projection",deps:"dependency-graph-projection",health:"health-diagnostic-projection",validate:"validation-diagnostic-projection",contracts:"contract-catalog-projection"});function oe(e,r){if(r==="--limit")return"result-row-limit";if(r==="--node-limit")return"graph-node-limit";if(r==="--edge-limit")return"graph-edge-limit";if(r==="--output-limit")return"rendered-output-row-limit";if(r==="--output-budget")return"rendered-output-byte-budget";if(r==="--token-budget")return"context-intent-token-budget";if(r==="--full"){let o=re[f(e)];if(o===void 0)throw new Error(`Command ${e} exposes --full without a registered projection concept.`);return o}return r!=="--file"?r.slice(2):["create","update","update-many"].includes(f(e))?"linked-file-path":["comments","notes","learnings"].includes(f(e))?"entry-file-input":"plan-definition-file"}function g(){if(m!==void 0)return m;let e=q.filter(({command:t})=>A(t)).flatMap(({command:t,family:n})=>F(t,R(t)).map(s=>({command:t,family:n,concept:oe(t,s.flag),flag:s.flag,aliases:Object.freeze([...s.aliases??[]]),value_kind:s.repeatable?"list":s.flag==="--limit"?"number":s.value_type}))),r=new Set(e.flatMap(t=>t.aliases.map(n=>`${t.command}:${n}`))),o=e.filter(t=>!r.has(`${t.command}:${t.flag}`)),i=new Map;for(let t of o){let n=i.get(t.concept)??new Set;n.add(t.value_kind),i.set(t.concept,n)}return m=Object.freeze(o.map(t=>Object.freeze({...t,concept:i.get(t.concept)?.size===1?t.concept:`${t.concept}@${t.command}`}))),m}function fn(){return Object.freeze(g().map(e=>Object.freeze({command:e.command,canonical_flag:e.flag,accepted_spellings:Object.freeze([...new Set([e.flag,...e.aliases])].sort())})))}var V=Object.freeze({init:30,item:20,config:36,extension:55,package:56,packages:56,install:27,upgrade:29,create:102,copy:24,focus:22,list:86,"list-all":86,"list-draft":84,"list-open":84,"list-in-progress":84,"list-blocked":84,"list-closed":84,"list-canceled":84,aggregate:40,context:45,ctx:45,get:30,graph:34,search:78,duplicates:25,eval:25,next:38,history:36,events:34,"history-attest":23,"history-redact":27,"history-repair":27,"history-compact":30,"history-author-acknowledge":28,merge:29,schema:43,profile:22,activity:36,restore:23,update:105,"update-many":146,close:32,"close-many":72,delete:24,append:25,comments:31,notes:35,learnings:31,files:39,docs:30,deps:32,plan:111,test:56,"test-all":40,telemetry:21,stats:29,health:36,validate:46,assurance:30,gc:22,workspace:23,contracts:29,claim:39,release:25,"start-task":23,"pause-task":23,"close-task":24,meet:33,event:33,remind:29,"test-runs-worker":20}),B=Object.freeze({...V,...Object.fromEntries(M.flatMap(({alias:e,canonical:r})=>{let o=V[e];return o===void 0?[]:[[r,o]]}))});function J(){let e=new Map(Object.keys(B).map(r=>[r,0]));for(let{command:r}of g())e.set(r,Number(e.get(r))+1);return Object.freeze(Object.entries(B).map(([r,o])=>Object.freeze({command:r,current:Number(e.get(r)),maximum:o})))}function ie(e,r,o){for(let i of e)for(let t of i.aliases){let n=r.get(`${i.command}:${t}`);n===void 0||n.flag===i.flag||o.push({code:"alias_collision",command:i.command,detail:`${t} aliases ${i.flag} but is canonical for ${n.flag}.`})}}function ne(e,r,o){let i=new Set(r.map(({command:t})=>t));for(let t of e.keys())i.has(t)||o.push({code:"missing_budget",command:t,detail:`${t} has canonical flags but no persisted budget.`});for(let t of r){let n=e.get(t.command)??0;n===0&&o.push({code:"stale_budget",command:t.command,detail:`${t.command} has a persisted budget but no canonical flags.`}),!(n<=t.maximum)&&o.push({code:"budget_exceeded",command:t.command,detail:`${n} canonical flags exceed the ratcheted maximum ${t.maximum}.`})}}function se(e,r,o){let i=new Map(e.map(t=>[`${t.command}:${t.flag}`,t]));for(let t of r){let n=`${t.command}:${t.canonical_flag}`,s=i.get(n);if(!s){o.push({code:"removed_canonical_spelling",command:t.command,detail:`${t.canonical_flag} disappeared from the executable spelling inventory.`});continue}let d=new Set([s.flag,...s.aliases]);for(let a of t.accepted_spellings)d.has(a)||o.push({code:"removed_compatibility_spelling",command:t.command,detail:`${a} no longer resolves to ${t.canonical_flag}.`})}}function mn(e=g(),r=J(),o=[]){let i=[],t=new Map,n=new Map,s=new Map,d=new Map;for(let a of e){let c=`${a.command}:${a.flag}`;t.has(c)?i.push({code:"duplicate_canonical_flag",command:a.command,detail:`${a.flag} has more than one canonical row.`}):t.set(c,a),d.set(a.command,(d.get(a.command)??0)+1);let l=n.get(a.concept);l!==void 0&&l!==a.value_kind?i.push({code:"inconsistent_concept_kind",command:a.command,detail:`${a.concept} uses both ${l} and ${a.value_kind}.`}):n.set(a.concept,a.value_kind);let p=s.get(a.concept);p!==void 0&&p!==a.flag?i.push({code:"semantic_spelling_collision",command:a.command,detail:`${a.concept} is canonicalized by both ${p} and ${a.flag}.`}):s.set(a.concept,a.flag)}return ie(e,t,i),ne(d,r,i),se(e,o,i),i.sort((a,c)=>a.command.localeCompare(c.command)||a.code.localeCompare(c.code)||a.detail.localeCompare(c.detail)),{ok:i.length===0,entry_count:e.length,budget_count:r.length,concept_count:new Set(e.map(({concept:a})=>a)).size,baseline_entry_count:o.length,findings:i}}function gn(){let e=g(),r=J(),o=new Map(r.map(({command:i})=>[i,"unknown"]));for(let{command:i,family:t}of e)o.set(i,t);return["# Generated flag lexicon budgets","","This file is generated by `listPmFlagLexicon()`. Compatibility aliases do not consume canonical budget.","","| Command | Capability family | Canonical flags | Maximum |","| --- | --- | ---: | ---: |",...r.map(({command:i,current:t,maximum:n})=>{let s=o.get(i);return`| \`${i}\` | ${s} | ${t} | ${n} |`}),""].join(`
|
|
5
|
+
`)}(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]="f5567aa1-0268-574d-907b-38d6249538ce")}catch{}})();var C=2,ae=["self_reported","independent_transport"];function y(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function _(e,r){if(typeof e!="string"||e.trim().length===0)throw new TypeError(`${r} must be a non-empty string`);return e.trim()}function K(e,r,o=!1){if(!Array.isArray(e)||e.length===0)throw new TypeError(`${r} must be a non-empty string array`);return e.map((i,t)=>{let n=_(i,`${r}[${String(t)}]`);return o?i:n})}function P(e,r){return e===void 0?void 0:_(e,r)}function de(e,r){if(e===void 0)return;if(!y(e)||Object.keys(e).length===0)throw new TypeError(`${r} must be a non-empty object`);let o=Object.entries(e).map(([i,t])=>{if(i.length===0||i.split(".").some(n=>n.length===0))throw new TypeError(`${r} must use dot-separated own-property paths`);if(t!==null&&typeof t!="string"&&typeof t!="boolean"&&(typeof t!="number"||!Number.isFinite(t)))throw new TypeError(`${r} values must be JSON primitives`);return[i,t]});return Object.fromEntries(o)}function ce(e,r,o,i,t,n){if(i==="refusal"){if(T(o)||t===void 0||n===void 0)throw new TypeError(`${e} refusal steps require a non-success exit, error code, and refusal surface`);return}if(t!==void 0||n!==void 0)throw new TypeError(`${e} only refusal steps may declare expected_error_code or expected_refusal_surface`);let s=D(r);if(s===void 0)throw new TypeError(`${e}.args must identify a command after global flags`);let d=r[s].trim().toLowerCase();if(d==="history"){let l=N(r.slice(s+1));l!==void 0&&(d=O(`history ${l}`))}let a=L(d);if(!T(o)||o!==0&&!a?.exit_codes.some(l=>l===o))throw new TypeError(`${e} successful output must use exit code 0 or a command-declared successful effect exit`);let c=U(d).kind;if(i!==c)throw new TypeError(`${e} expected ${i}, but ${d} declares ${c}`)}function le(e,r,o){if(!y(e))throw new TypeError(`tasks.${r}.steps[${String(o)}] must be an object`);let i=`tasks.${r}.steps[${String(o)}]`,t=_(e.id,`${i}.id`),n=K(e.args,`${i}.args`,!0),s=e.expected_exit_code;if(typeof s!="number"||!Number.isSafeInteger(s))throw new TypeError(`${i}.expected_exit_code must be a safe integer`);let d=e.expected_output_kind;if(d!=="refusal"&&!z.includes(d))throw new TypeError(`${i}.expected_output_kind is unsupported`);let a=d,c=e.expected_accounting_mode;if(!ae.includes(c))throw new TypeError(`${i}.expected_accounting_mode is unsupported`);let l=c;if(l==="independent_transport"&&a!=="refusal")throw new TypeError(`${i} independent_transport accounting is supported only for refusal steps`);let p=K(e.required_fields,`${i}.required_fields`);if(p.some(W=>W.split(".").some(X=>X.length===0)))throw new TypeError(`${i}.required_fields must contain dot-separated own-property paths`);let k=de(e.expected_field_values,`${i}.expected_field_values`),b=P(e.expected_error_code,`${i}.expected_error_code`),h=P(e.expected_refusal_surface,`${i}.expected_refusal_surface`),E=P(e.recovery_for,`${i}.recovery_for`);return ce(i,n,s,a,b,h),{id:t,args:n,expected_exit_code:s,expected_output_kind:a,expected_accounting_mode:l,required_fields:p,...k?{expected_field_values:k}:{},...b?{expected_error_code:b}:{},...h?{expected_refusal_surface:h}:{},...E?{recovery_for:E}:{}}}function pe(e,r){if(!y(e))throw new TypeError(`tasks[${String(r)}] must be an object`);let o=_(e.id,`tasks[${String(r)}].id`),i=_(e.description,`tasks.${o}.description`);if(!Array.isArray(e.steps)||e.steps.length===0)throw new TypeError(`tasks.${o}.steps must be a non-empty array`);let t=e.steps.map((s,d)=>le(s,o,d)),n=new Map;for(let s of t){if(n.has(s.id))throw new TypeError(`tasks.${o} contains duplicate step id ${s.id}`);if(s.recovery_for!==void 0&&(n.get(s.recovery_for)?.expected_output_kind!=="refusal"||s.expected_output_kind==="refusal"))throw new TypeError(`tasks.${o}.${s.id} recovery_for must reference an earlier refusal and declare successful output`);n.set(s.id,s)}if(t.at(-1)?.expected_output_kind==="refusal")throw new TypeError(`tasks.${o} completed task must terminate with successful output`);for(let s of t)if(s.expected_output_kind==="refusal"&&!t.some(d=>d.recovery_for===s.id))throw new TypeError(`tasks.${o}.${s.id} refusal must have a later successful recovery_for step`);return{id:o,description:i,steps:t}}function Tn(e){if(!y(e))throw new TypeError("agent-task transcript corpus must be an object");if(e.version!==C)throw new TypeError(`agent-task transcript corpus version must be ${String(C)}`);if(!Array.isArray(e.tasks)||e.tasks.length===0)throw new TypeError("agent-task transcript corpus tasks must be non-empty");let r=e.tasks.map((i,t)=>pe(i,t)),o=new Set;for(let i of r){if(o.has(i.id))throw new TypeError(`duplicate agent-task transcript id ${i.id}`);o.add(i.id)}return{version:C,tasks:r}}(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]="d252409d-e33e-5c9e-9671-789f0ee87312")}catch{}})();function ue(e){return[e.expected_error_code!==void 0&&e.error_code!==e.expected_error_code?{code:"error_code_mismatch",probe_id:e.probe_id,detail:`Expected error code ${e.expected_error_code}, received ${e.error_code??"<missing>"}.`}:void 0,e.expected_allowed_values!==void 0&&JSON.stringify([...e.allowed_values].sort())!==JSON.stringify([...e.expected_allowed_values].sort())?{code:"incomplete_allowed_values",probe_id:e.probe_id,detail:"The refusal's accepted domain differs from the SDK-owned domain contract."}:void 0,e.expected_suggested_retry_args!==void 0&&(e.suggested_retry_args?.length??0)===0?{code:"missing_suggested_retry_args",probe_id:e.probe_id,detail:"The refusal omitted shell-free suggested retry arguments."}:void 0,e.expected_suggested_retry_args!==void 0&&(e.suggested_retry_args?.length??0)>0&&JSON.stringify(e.suggested_retry_args)!==JSON.stringify(e.expected_suggested_retry_args)?{code:"suggested_retry_args_mismatch",probe_id:e.probe_id,detail:"The refusal's suggested retry arguments differ from the SDK-owned contract."}:void 0]}function _e(e){return[e.exit_code!==w.USAGE?{code:"non_refusal_exit",probe_id:e.probe_id,detail:`${e.entrypoint} returned exit code ${e.exit_code}; a structured usage refusal must return ${w.USAGE}.`}:void 0,e.allowed_values_required!==!1&&e.allowed_values.length===0?{code:"missing_allowed_values",probe_id:e.probe_id,detail:"The refusal omitted its complete accepted value domain."}:void 0,e.allowed_values.includes(e.rejected_value)?{code:"accepted_rejected_value",probe_id:e.probe_id,detail:`${e.rejected_value} is both rejected and advertised as allowed.`}:void 0,e.suggested_retry.trim().length===0?{code:"missing_suggested_retry",probe_id:e.probe_id,detail:"The refusal omitted an executable suggested retry."}:void 0,e.retry_succeeded?void 0:{code:"retry_failed",probe_id:e.probe_id,detail:"The advertised suggested retry did not succeed."},...ue(e)]}function vn(e){let r=[],o=new Set,i=0;e.length===0&&r.push({code:"empty_corpus",probe_id:"corpus",detail:"At least one real refusal observation is required."});for(let t of e){if(o.has(t.probe_id)){r.push({code:"duplicate_probe",probe_id:t.probe_id,detail:`${t.probe_id} was supplied more than once.`});continue}o.add(t.probe_id);let n=r.length;for(let s of _e(t))s!==void 0&&r.push(s);r.length===n&&(i+=1)}return r.sort((t,n)=>t.probe_id!==n.probe_id?t.probe_id.localeCompare(n.probe_id):t.code.localeCompare(n.code)),{ok:r.length===0,probe_count:o.size,closed_probe_count:i,closure_fraction:o.size===0?0:i/o.size,findings:r}}(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]="8467eccc-684d-56cc-8b18-5f2e940abb42")}catch{}})();var Y="not-a-declared-intent",u="not-a-declared-field";function fe(){let e={get:["pm-domain"],search:["Domain query"]},r=[...new Set(x.map(({command:t})=>t))].map(t=>{let n=x.filter(a=>a.command===t),s=n[0],d=e[s.command]??[];return{probe_id:`${s.command}-invalid-intent`,command:s.command,flag:"--for",rejected_value:Y,refusal_args:[s.command,...d,"--for",Y],allowed_values:n.map(({intent:a})=>a).sort(),suggested_retry_args:[s.command,...d,"--for",s.intent],error_code:"unknown_context_intent"}}),o=S(),i=Object.keys($).map(t=>({probe_id:`${t}-invalid-field`,command:t,flag:"--fields",rejected_value:u,refusal_args:[t,"--fields",u],allowed_values:o,suggested_retry_args:[t,"--fields","id,title,status"],error_code:"unknown_field_projection"}));return[...r,...i,{probe_id:"get-invalid-field",command:"get",flag:"--fields",rejected_value:u,refusal_args:["get","pm-domain","--fields",u],allowed_values:I(),suggested_retry_args:["get","pm-domain","--fields","id,title,status"],error_code:"unknown_field_projection"},{probe_id:"list-mutually-exclusive-projection",command:"list",flag:"--projection",rejected_value:"--brief+--full",refusal_args:["list","--brief","--full"],allowed_values:[],suggested_retry_args:["list","--brief"],error_code:"projection_options_mutually_exclusive",allowed_values_required:!1},{probe_id:"get-mutually-exclusive-projection",command:"get",flag:"--projection",rejected_value:"--full+--fields",refusal_args:["get","pm-domain","--full","--fields","id"],allowed_values:[],suggested_retry_args:["get","pm-domain","--full"],error_code:"projection_options_mutually_exclusive",allowed_values_required:!1},{probe_id:"search-mutually-exclusive-projection",command:"search",flag:"--projection",rejected_value:"--full+--fields",refusal_args:["search","Domain query","--full","--fields","id"],allowed_values:[],suggested_retry_args:["search","Domain query","--full"],error_code:"projection_options_mutually_exclusive",allowed_values_required:!1},{probe_id:"package-upgrade-mutually-exclusive-modes",command:"package upgrade",flag:"--cli-only/--packages-only",rejected_value:"--cli-only+--packages-only",refusal_args:["package","upgrade","--cli-only","--packages-only","--dry-run"],allowed_values:[],suggested_retry_args:["package","upgrade","--packages-only","--dry-run"],error_code:"package_upgrade_modes_mutually_exclusive",allowed_values_required:!1},{probe_id:"search-invalid-field",command:"search",flag:"--fields",rejected_value:u,refusal_args:["search","Domain query","--fields",u],allowed_values:j(),suggested_retry_args:["search","Domain query","--fields","id,title,status,score"],error_code:"unknown_field_projection"}].sort((t,n)=>t.probe_id.localeCompare(n.probe_id))}function On(e,r){let o=fe().find(n=>n.command===e&&n.flag===r);if(!o)return"No stable core values are declared.";let i=o.allowed_values.filter(n=>!n.startsWith("item.")),t=r==="--fields"?" item.<field> aliases and configured runtime metadata fields are also accepted.":" Configured package and workspace intents may extend this domain.";return`Allowed core values: ${i.join("|")}.${t}`}(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]="d3795bc4-fbe5-5ca4-bc90-b72a2d469dc7")}catch{}})();var v=[{probe_id:"tracker-root-missing",failure_kind:"missing_root",expected_error_code:"tracker_root_missing",expected_exit_code:3,recovery_kind:"initialize"},{probe_id:"tracker-root-settings-missing",failure_kind:"settings_missing",expected_error_code:"tracker_not_initialized",expected_exit_code:3,recovery_kind:"initialize"},{probe_id:"tracker-root-not-directory",failure_kind:"not_directory",expected_error_code:"tracker_root_not_directory",expected_exit_code:2,recovery_kind:"select_directory"},{probe_id:"tracker-root-unreadable",failure_kind:"unreadable_root",expected_error_code:"tracker_root_unreadable",expected_exit_code:1,recovery_kind:"repair_permissions"}];function Sn(){return v.map(e=>({...e}))}function me(e,r){let o=[];r.error_code!==e.expected_error_code&&o.push({code:"error_code_mismatch",probe_id:e.probe_id,detail:`Expected ${e.expected_error_code}, received ${r.error_code}.`}),r.exit_code!==e.expected_exit_code&&o.push({code:"exit_code_mismatch",probe_id:e.probe_id,detail:`Expected exit ${e.expected_exit_code}, received ${r.exit_code}.`}),r.recovery_kind!==e.recovery_kind&&o.push({code:"recovery_kind_mismatch",probe_id:e.probe_id,detail:`Expected ${e.recovery_kind}, received ${r.recovery_kind}.`});let i=r.suggested_retry_args.indexOf("init"),t=i===0||i===2&&r.suggested_retry_args[0]==="--pm-path"&&r.suggested_retry_args[1]?.length>0;return e.recovery_kind==="initialize"&&!t&&o.push({code:"missing_init_recovery",probe_id:e.probe_id,detail:"Missing and uninitialized roots must emit a tokenized init retry."}),(r.unsafe_init_recommended||e.recovery_kind!=="initialize"&&r.suggested_retry_args.includes("init"))&&o.push({code:"unsafe_init_recovery",probe_id:e.probe_id,detail:"A tracker root that cannot be initialized safely must not recommend initialization."}),r.retry_succeeded||o.push({code:"retry_failed",probe_id:e.probe_id,detail:"The emitted retry or safe alternate-root recovery did not execute successfully."}),o}function In(e){let r=new Map(e.map(t=>[t.probe_id,t])),o=[],i=0;for(let t of v){let n=r.get(t.probe_id);if(n===void 0){o.push({code:"missing_probe",probe_id:t.probe_id,detail:"No runtime observation was supplied for this contract."});continue}let s=me(t,n);o.push(...s),s.length===0&&(i+=1)}return o.sort((t,n)=>t.probe_id.localeCompare(n.probe_id)||t.code.localeCompare(n.code)),{ok:o.length===0,probe_count:v.length,closed_probe_count:i,findings:o}}(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]="06f7e972-61ab-5964-843c-5524cfd407d9")}catch{}})();export{Qe as ACTIVITY_COMMANDER_STRING_OPTION_CONTRACTS,Lr as ACTIVITY_FLAG_CONTRACTS,Tt as AGGREGATE_FLAG_CONTRACTS,dr as APPEND_FLAG_CONTRACTS,Mr as ASSURANCE_FLAG_CONTRACTS,Ye as CALENDAR_COMMANDER_STRING_OPTION_CONTRACTS,Nr as CALENDAR_FLAG_CONTRACTS,cr as CLAIM_FLAG_CONTRACTS,Ci as CLOSE_ACTION_OPTION_KEYS,sr as CLOSE_FLAG_CONTRACTS,ar as CLOSE_MANY_FLAG_CONTRACTS,mr as CLOSE_TASK_FLAG_CONTRACTS,Ct as COMMENTS_FLAG_CONTRACTS,Wr as COMPLETION_FLAG_CONTRACTS,Lt as CONFIG_FLAG_CONTRACTS,We as CONTEXT_COMMANDER_STRING_OPTION_CONTRACTS,qr as CONTEXT_FLAG_CONTRACTS,ri as CONTEXT_INTENT_LIMIT_OVERRIDE_WARNING,Yr as CONTRACTS_FLAG_CONTRACTS,jr as COPY_FLAG_CONTRACTS,fi as CREATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,gi as CREATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,mi as CREATE_COMMANDER_STRING_OPTION_CONTRACTS,Or as CREATE_FLAG_CONTRACTS,pr as DELETE_FLAG_CONTRACTS,Gr as DEPS_FLAG_CONTRACTS,Et as DOCS_FLAG_CONTRACTS,vr as DUPLICATES_FLAG_CONTRACTS,Vr as EVAL_FLAG_CONTRACTS,Fr as EVENTS_FLAG_CONTRACTS,yr as EVENT_FLAG_CONTRACTS,Te as EXECUTABLE_COMMAND_ALIASES,Yt as EXTENSION_ACTIVATE_FLAG_CONTRACTS,Kt as EXTENSION_ADOPT_ALL_FLAG_CONTRACTS,rr as EXTENSION_ADOPT_FLAG_CONTRACTS,tr as EXTENSION_CATALOG_FLAG_CONTRACTS,Wt as EXTENSION_DEACTIVATE_FLAG_CONTRACTS,Jt as EXTENSION_DESCRIBE_FLAG_CONTRACTS,er as EXTENSION_DOCTOR_FLAG_CONTRACTS,Bt as EXTENSION_EXPLORE_FLAG_CONTRACTS,Ft as EXTENSION_FLAG_CONTRACTS,zt as EXTENSION_INIT_FLAG_CONTRACTS,Ht as EXTENSION_INSTALL_FLAG_CONTRACTS,Qt as EXTENSION_MANAGE_FLAG_CONTRACTS,Xt as EXTENSION_MIGRATE_FLAG_CONTRACTS,Zt as EXTENSION_RELOAD_FLAG_CONTRACTS,qt as EXTENSION_SCOPE_FLAG_CONTRACTS,Vt as EXTENSION_UNINSTALL_FLAG_CONTRACTS,kt as FILES_FLAG_CONTRACTS,Ar as FOCUS_FLAG_CONTRACTS,Cr as GC_FLAG_CONTRACTS,zr as GET_FLAG_CONTRACTS,wt as GLOBAL_FLAG_CONTRACTS,Hr as GRAPH_FLAG_CONTRACTS,rt as GRAPH_QUERY_DEFAULTS,Ur as GUIDE_FLAG_CONTRACTS,kr as HEALTH_FLAG_CONTRACTS,It as HISTORY_AUTHOR_ACKNOWLEDGE_FLAG_CONTRACTS,jt as HISTORY_COMPACT_FLAG_CONTRACTS,Mt as HISTORY_FLAG_CONTRACTS,$t as HISTORY_REDACT_FLAG_CONTRACTS,St as HISTORY_REPAIR_FLAG_CONTRACTS,Nt as INIT_FLAG_CONTRACTS,or as INSTALL_FLAG_CONTRACTS,Sr as ITEM_COMPLETE_FLAG_CONTRACTS,$r as ITEM_MUTATE_FLAG_CONTRACTS,Ir as ITEM_REOPEN_FLAG_CONTRACTS,vt as LEARNINGS_FLAG_CONTRACTS,Je as LIST_COMMANDER_STRING_OPTION_CONTRACTS,xt as LIST_FILTER_FLAG_CONTRACTS,gr as MEET_FLAG_CONTRACTS,Ot as MERGE_FLAG_CONTRACTS,Ie as MERGE_SUBCOMMAND_VALUES,Xe as NEXT_COMMANDER_STRING_OPTION_CONTRACTS,Jr as NEXT_FLAG_CONTRACTS,Pt as NOTES_FLAG_CONTRACTS,Ut as PACKAGE_FLAG_CONTRACTS,Gt as PACKAGE_INIT_FLAG_CONTRACTS,fr as PAUSE_TASK_FLAG_CONTRACTS,Ti as PLAN_CREATE_METADATA_PARAMETER_KEYS,Dt as PLAN_FLAG_CONTRACTS,ae as PM_AGENT_TASK_ACCOUNTING_MODES,C as PM_AGENT_TASK_TRANSCRIPT_VERSION,be as PM_BULK_LIFECYCLE_COMMAND_ALIASES,pt as PM_CLI_GRAMMAR_CONTRACT,ot as PM_CLI_GRAMMAR_NOUNS,De as PM_CLI_ONLY_TOOL_ACTION_WAIVERS,it as PM_CLI_SHARED_VERBS,xe as PM_COMMAND_ALIAS_CONTRACTS,ct as PM_COMMAND_DESTINATION_CONTRACTS,Ai as PM_COMMAND_EXIT_CONTRACTS,ji as PM_COMMAND_EXIT_OUTCOME_CONTRACTS,ko as PM_COMMAND_OUTPUT_BUDGET_CONTRACTS,Ji as PM_COMMAND_OUTPUT_ENVELOPE_CONTRACTS,lt as PM_COMMAND_POSITIONAL_CONTRACTS,x as PM_CONTEXT_INTENT_CONTRACTS,ye as PM_CONTEXT_OPS_COMMAND_ALIASES,Se as PM_CORE_COMMAND_NAMES,Le as PM_DEPRECATED_TOOL_ACTIONS,xo as PM_DIAGNOSTIC_DEGRADATION_STEPS,To as PM_DIAGNOSTIC_OUTPUT_BUDGET_CONTRACTS,wo as PM_DIAGNOSTIC_OUTPUT_CLASSES,Fe as PM_DISCOVERABLE_TOOL_ACTIONS,Gi as PM_ERROR_CODE_CATALOG,Fi as PM_ERROR_CODE_EXIT_CLASS_CONTRACTS,ve as PM_EXTENSION_CAPABILITY_CONTRACTS,je as PM_EXTENSION_PACKAGE_ACTION_SUBCOMMANDS,Ee as PM_EXTENSION_POLICY_MODE_CONTRACTS,$e as PM_EXTENSION_POLICY_SURFACE_CONTRACTS,Oe as PM_EXTENSION_SANDBOX_PROFILE_CONTRACTS,ke as PM_EXTENSION_SERVICE_NAME_CONTRACTS,Me as PM_EXTENSION_TRUST_MODE_CONTRACTS,Io as PM_GENERIC_REFUSAL_GUIDANCE,Wi as PM_HISTORY_ATTESTATION_CONTRACT,ge as PM_HISTORY_COMMAND_ALIASES,Zi as PM_HISTORY_OPERATION_ALIASES,tn as PM_HISTORY_OPERATION_CONTRACT,en as PM_HISTORY_OPERATION_PATTERNS,Re as PM_ITEM_ACTION_SUBCOMMANDS,Xi as PM_ITEM_HISTORY_OPERATIONS,M as PM_NAMESPACED_COMMAND_ALIASES,ho as PM_OUTPUT_BUDGET_CLASSES,bo as PM_OUTPUT_DEGRADATION_STEPS,z as PM_OUTPUT_ENVELOPE_KINDS,Ae as PM_PACKAGE_ONLY_ACTION_SUBCOMMANDS,nt as PM_POSITIONAL_ACTION_CONTRACTS,$i as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA,Mi as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA_VERSION,qo as PM_READ_OUTPUT_COMPOSITION_OPTION_FLAGS,Qo as PM_READ_OUTPUT_CONTINUATION_FINGERPRINT_POLICIES,Lo as PM_READ_OUTPUT_DIMENSIONS,Fo as PM_READ_OUTPUT_OPTION_FLAGS,Be as PM_READ_OUTPUT_SURFACES,zo as PM_READ_OUTPUT_SURFACE_CONTRACTS,Do as PM_RECOVERY_ECHO_FIELDS,he as PM_RELOCATED_COMMAND_ALIASES,Ri as PM_SUCCESS_EXIT_CODES,Ne as PM_TOOL_ACTIONS,Pi as PM_TOOL_ACTION_PARAMETER_CONTRACTS,Oi as PM_TOOL_PARAMETERS_SCHEMA,Ei as PM_TOOL_PARAMETERS_SCHEMA_MAJOR,ki as PM_TOOL_PARAMETERS_SCHEMA_VERSION,wi as PM_TOOL_RESERVED_CUSTOM_FIELD_PROPERTIES,Qi as PM_WORKSPACE_HISTORY_OPERATIONS,Rt as PROFILE_FLAG_CONTRACTS,nr as REINDEX_FLAG_CONTRACTS,ur as RELEASE_FLAG_CONTRACTS,br as REMIND_FLAG_CONTRACTS,lr as RESTORE_FLAG_CONTRACTS,At as SCHEMA_FLAG_CONTRACTS,Ke as SEARCH_COMMANDER_STRING_OPTION_CONTRACTS,Kr as SEARCH_FLAG_CONTRACTS,_r as START_TASK_FLAG_CONTRACTS,Pr as STATS_FLAG_CONTRACTS,ht as SUBCOMMAND_GLOBAL_FLAG_CONTRACTS,xr as TELEMETRY_FLAG_CONTRACTS,wr as TEST_ALL_FLAG_CONTRACTS,hr as TEST_FLAG_CONTRACTS,Tr as TEST_RUNS_FLAG_CONTRACTS,fo as TOOL_ACTIVITY_OPTION_CONTRACTS,to as TOOL_AGGREGATE_OPTION_CONTRACTS,lo as TOOL_BULK_MUTATION_FILTER_OPTION_CONTRACT_SOURCE,_o as TOOL_CALENDAR_OPTION_CONTRACTS,uo as TOOL_CLOSE_MANY_FILTER_OPTION_CONTRACTS,mo as TOOL_CONTEXT_OPTION_CONTRACTS,so as TOOL_CREATE_OPTION_CONTRACTS,no as TOOL_CREATE_OPTION_CONTRACT_SOURCE,go as TOOL_DEPS_OPTION_CONTRACTS,yo as TOOL_GRAPH_OPTION_CONTRACTS,eo as TOOL_LIST_FILTER_OPTION_CONTRACTS,ro as TOOL_SEARCH_FILTER_OPTION_CONTRACTS,io as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACTS,oo as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACT_SOURCE,po as TOOL_UPDATE_MANY_FILTER_OPTION_CONTRACTS,co as TOOL_UPDATE_OPTION_CONTRACTS,ao as TOOL_UPDATE_OPTION_CONTRACT_SOURCE,yi as UPDATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,hi as UPDATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,bi as UPDATE_COMMANDER_STRING_OPTION_CONTRACTS,Rr as UPDATE_FLAG_CONTRACTS,Dr as UPDATE_MANY_FLAG_CONTRACTS,ir as UPGRADE_FLAG_CONTRACTS,Er as VALIDATE_FLAG_CONTRACTS,Br as WORKSPACE_FLAG_CONTRACTS,Si as _testOnlyCliContracts,Ni as analyzePmCommandExitConformance,qe as analyzePmToolActionParity,Ii as analyzeSdkCliParameterCompleteness,ai as applyContextIntentProjection,Yo as applyReadOutputDimensions,Vo as applyReadOutputIncludeModes,li as attachContextIntentReceipt,ui as attachOutputTokenAccounting,pi as attachReadOutputContracts,vi as buildPmActionToolInputSchema,bt as compactFlagAliasContracts,ni as composeContextIntentContracts,ci as contextIntentRowId,Po as createPmCommandOutputBudget,di as decodeContextIntentCursor,ti as decodeReadOutputContinuationCursor,vo as definePmCommandOutputBudget,Bi as definePmCommandOutputEnvelope,qi as definePmErrorCodeCatalog,Li as derivePmBulkMutationEffect,ei as encodeReadOutputContinuationCursor,Hi as enrichCliFlagInvocationContract,F as enrichCliFlagInvocationContracts,Mo as estimatePmOutputTokens,we as findPmNamespacedCommand,dt as formatPmPositionalActionFlagTip,oi as getActiveContextIntentContracts,A as hasSubcommandFlagContractsForCommand,Co as inferPmOutputBudgetClass,jo as isGenericRefusalRequired,Ao as isGenericRefusalWhy,Ue as isPmExtensionCapabilityContract,He as isPmExtensionPolicyModeContract,Ve as isPmExtensionPolicySurfaceContract,Ge as isPmExtensionServiceNameContract,Di as isPmKnownExitCode,Ki as isPmMutationReceipt,T as isPmSuccessfulExitCode,ze as isPmToolAction,Wo as isReadOutputBudgetExceeded,fe as listCoreClosedDomainContracts,J as listPmCommandFlagBudgets,g as listPmFlagLexicon,fn as listPmFlagSpellingInventory,Sn as listTrackerPreflightRecoveryContracts,nn as normalizeHistoryOperationForWrite,Bo as normalizeReadOutputIncludeModeOptions,Yi as parseMutationReceipt,Tn as parsePmAgentTaskTranscriptCorpus,_t as positionalShapeKey,ft as positionalSignatureKey,No as projectLeanRecoveryPayload,$o as projectPmDiagnosticOutput,So as projectPmDiagnosticText,Ze as readFirstStringFromCommanderOptions,et as readFirstValueFromCommanderOptions,Zo as readOutputCollectionFingerprint,Ho as readOutputIncludeModeOptions,tt as readStringArrayFromCommanderOptions,On as renderPmClosedDomainHelp,Pe as renderPmCommandAliasMigrationHint,gn as renderPmFlagLexiconMarkdown,on as requireHistoryOperation,zi as resolveCanonicalPmErrorCodeContract,si as resolveContextIntentContract,Q as resolveExtensionFlagValueContract,rn as resolveHistoryOperation,Ce as resolvePmCommandAlias,L as resolvePmCommandExitContract,f as resolvePmCommandOperation,Eo as resolvePmCommandOutputBudget,U as resolvePmCommandOutputEnvelope,st as resolvePmCommandPositionalContract,Oo as resolvePmDiagnosticOutputBudget,Ui as resolvePmErrorCodeContract,oe as resolvePmFlagSemanticConcept,O as resolvePmHistoryOperation,dn as resolvePmMcpExecutableInvocation,at as resolvePmPositionalActionContract,Xr as resolvePmPositionalActionFlagContracts,xi as resolvePmToolCustomFieldCollision,Jo as resolveReadOutputDimensions,Xo as resolveReadOutputEncoding,_i as resolveReadOutputRecoveryBudget,Uo as resolveReadOutputSurface,R as resolveSubcommandFlagContractsForCommand,ii as runWithContextIntentContracts,vn as scorePmRefusalClosure,In as scoreTrackerPreflightRecoveryClosure,Ko as stabilizeReadOutputReceiptEstimates,Qr as toCompletionFlagString,Go as validateReadOutputOptions,Vi as verifyCliFlagInvocationParity,ut as verifyExplicitPositionalSlotCensus,gt as verifyPmCliGrammar,mt as verifyPmCommandPositionalContracts,mn as verifyPmFlagLexicon,Zr as verifyToolOptionCliParity,yt as withFlagAliasMetadata,Ro as withoutGenericRefusalExamples};
|
|
6
6
|
//# sourceMappingURL=sdk-contracts.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{A as
|
|
1
|
+
import{A as Ye,B as Xe,C as Ke,D as je,E as qe,F as Je,G as Qe,H as Ze,I as $e,J as et,K as tt,L as ot,N as rt,b as Se,c as Te,d as ye,e as Re,f as Oe,g as be,h as De,i as Ce,j as Ne,k as Pe,l as ve,m as Ue,n as Le,o as he,p as Me,q as we,r as xe,s as Ve,t as Fe,u as ze,v as ke,w as Be,x as He,y as Ge,z as We}from"./focused-chunks/chunk-SXZM4PSS.js";import"./focused-chunks/chunk-5TWS5KOM.js";import"./focused-chunks/chunk-3Z53POXU.js";import{ka as pe,la as ce}from"./focused-chunks/chunk-6OKPYCLU.js";import"./focused-chunks/chunk-3NYWMUX3.js";import"./focused-chunks/chunk-DFUTCKUF.js";import"./focused-chunks/chunk-WX2RVS2Y.js";import"./focused-chunks/chunk-LVA76N27.js";import"./focused-chunks/chunk-SVOOGGAK.js";import{a as L}from"./focused-chunks/chunk-VS2ZFPXD.js";import"./focused-chunks/chunk-Z7GIVH6B.js";import"./focused-chunks/chunk-2Y77HWIX.js";import"./focused-chunks/chunk-RPUDOJVB.js";import{k as Ee,l as fe,m as Ie,n as _e,o as Ae,p as ge}from"./focused-chunks/chunk-5WCQFH6D.js";import"./focused-chunks/chunk-GE755ODZ.js";import"./focused-chunks/chunk-7WJDRZOR.js";import"./focused-chunks/chunk-6GMYW42K.js";import"./focused-chunks/chunk-UQIBGLDR.js";import"./focused-chunks/chunk-PAT6QF63.js";import"./focused-chunks/chunk-GHQVM6K6.js";import{R as ae,S as de,T as ue,U as le,V as me,f as se}from"./focused-chunks/chunk-JCR32IAO.js";import{$ as ie,A as B,B as H,C as G,D as W,N as Y,O as X,P as K,Q as j,R as q,S as J,T as Q,U as Z,V as $,W as ee,X as te,Y as oe,Z as re,_ as ne,k as h,l as M,n as w,o as x,p as V,r as F,y as z,z as k}from"./focused-chunks/chunk-M22TI7LP.js";import"./focused-chunks/chunk-AL7SOFUL.js";import"./focused-chunks/chunk-VFQAZLKO.js";import"./focused-chunks/chunk-4PW5XWVI.js";import"./focused-chunks/chunk-AK2CI2GI.js";import{Ae as D,Cd as y,Dd as R,Ge as C,Ie as N,Je as P,Ke as v,Le as U,Od as O,g as r,h as n,i,md as p,n as s,nd as c,od as E,p as a,pd as f,q as d,qd as I,r as u,rd as _,vd as A,xd as g,yd as S,zd as T,ze as b}from"./focused-chunks/chunk-CIQ6YWCW.js";import"./focused-chunks/chunk-EGN2HFRU.js";import"./focused-chunks/chunk-FOA7XKWP.js";import{A as m,z as l}from"./focused-chunks/chunk-JLXGRDTG.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]="48d03e9b-14a4-545c-8e5d-5f5f2092a113")}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]="38023567-8a5b-5e25-8d71-5112f74d1894")}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]="1b7735e8-a1a3-59bb-a89f-d014b70c34ec")}catch{}})();export{Y as AGENT_PROVENANCE_DIMENSIONS,h as BASELINE_ITEM_FORMAT_VERSION,K as BUILTIN_AGENT_PROVENANCE_ADAPTERS,X as BUILTIN_HARNESS_SIGNAL_DESCRIPTORS,r as BUILTIN_ITEM_TYPE_VALUES,u as CONFIDENCE_TEXT_VALUES,M as CURRENT_ITEM_FORMAT_VERSION,s as DEPENDENCY_KIND_VALUES,l as EXIT_CODE,d as ISSUE_SEVERITY_VALUES,n as ITEM_TYPE_VALUES,de as PM_CLI_EXPECTED_ERROR_NAME,E as PM_READ_OUTPUT_COMPOSITION_OPTION_FLAGS,p as PM_READ_OUTPUT_DIMENSIONS,c as PM_READ_OUTPUT_OPTION_FLAGS,f as PM_READ_OUTPUT_SURFACE_CONTRACTS,m as PmCliError,Pe as PmClient,a as RISK_VALUES,Ae as SEMANTIC_ATTRIBUTION_LIMITS,i as STATUS_VALUES,W as agentSessionEnvironment,xe as aggregate,ye as analyzeAgentProvenanceDescriptorCoverage,L as analyzeSdkCliParameterCompleteness,Ye as append,g as applyReadOutputDimensions,P as applyReadOutputSessionReferences,D as assertWellFormedOutputText,v as attachReadOutputSessionReceipt,B as boundAgentEpisodeIdentity,k as canonicalDocument,Je as claim,Qe as claimNext,V as classifyItemFormatVersion,qe as close,Ve as comments,ve as context,$e as copy,Xe as create,le as createPmCliExpectedError,R as decodeReadOutputContinuationCursor,et as deleteItem,Ge as deps,ee as detectAgentIdentity,ne as detectHarnessIdentity,te as diagnoseAgentIdentity,He as docs,w as effectiveItemFormatVersion,Ne as emptyImportedDocument,y as encodeReadOutputContinuationCursor,be as evaluateSemanticAttributionCoverage,ce as explainSourceTraceability,ke as files,Be as filesDiscover,ot as focus,Me as get,We as graph,De as groupHistoryByEpisode,Se as isAlreadyClaimedError,ue as isItemAlreadyExistsError,me as isPmCliExpectedError,ae as isPmTokenBudgetRecovery,S as isReadOutputBudgetExceeded,C as isReadOutputSessionReference,ze as learnings,Ue as list,q as listAgentProvenanceAdapters,Le as listAllComplete,we as next,Q as normalizeAgentProvenanceAdapterValue,x as normalizeItemFormatVersion,se as normalizeItemId,F as normalizeStatusInput,Fe as notes,O as nowIso,N as parseReadOutputSession,pe as parseSourceLineRange,oe as readAuthorEnvironment,U as readOutputSessionRemainingTokens,fe as recordClaimSemanticAttribution,_e as recordFocusSemanticAttribution,Ie as recordReleaseSemanticAttribution,J as registerAgentProvenanceAdapters,j as registerHarnessSignalDescriptors,Ze as release,je as reopen,H as resolveAgentSessionContextFromSignals,ie as resolveAuthorIdentity,Te as resolveHistoryEpisodeGroupIdentity,A as resolveReadOutputDimensions,T as resolveReadOutputEncoding,I as resolveReadOutputSurface,Ee as resolveSemanticLineageIds,tt as restore,rt as runAction,G as runWithAgentSessionContext,Z as runWithHarnessDetectionSignals,$ as runWithWorkspaceHarnessSignalDescriptors,he as search,ge as semanticAttributionAffinity,z as serializeItemDocument,Re as summarizeAgentModelProvenance,Oe as summarizeAgentProvenance,b as toWellFormedText,Ke as update,Ce as updateLinkedTest,_ as validateReadOutputOptions,re as writeAuthorEnvironment};
|
|
2
2
|
//# sourceMappingURL=sdk-core.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{$a as kt,Ab as At,Bb as Dt,Cb as Rt,D as Pe,Db as Ot,E as Fe,Eb as $t,F as Je,Fb as Nt,G as We,Gb as Bt,H as Me,Hb as Ct,Ib as zt,Jb as h,Kb as jt,Lb as qt,Mb as Ut,Nb as Pt,Ob as Ft,Pb as Jt,Qa as gt,Qb as Wt,Rb as v,Ua as yt,Va as wt,Wa as ht,Xa as vt,Ya as bt,Za as xt,_a as Et,a as ge,aa as Ze,ab as Tt,b as ye,ba as Ge,c as we,ca as He,d as he,da as Ve,e as ve,ea as Ye,f as be,fa as Ke,g as xe,ga as Le,h as Ee,ha as Xe,i as ke,ia as Qe,j as Te,k as Ie,l as Se,m as Ae,n as De,o as Re,p as Oe,pa as at,q as $e,qa as dt,r as Ne,ra as st,s as Be,sa as ft,t as Ce,ta as ut,u as ze,ua as ct,v as je,va as pt,w as qe,wa as lt,x as Ue,xa as mt,ya as _t,yb as It,zb as St}from"./focused-chunks/chunk-YQUZL2CK.js";import"./focused-chunks/chunk-SAT7IAEB.js";import"./focused-chunks/chunk-RKPUQDWF.js";import"./focused-chunks/chunk-FRFNGMAK.js";import"./focused-chunks/chunk-QFNV4JTA.js";import{a as K}from"./focused-chunks/chunk-SVOOGGAK.js";import"./focused-chunks/chunk-BCIUAEWX.js";import{E as J,F as W,G as M,H as Z,I as G,J as H,K as V,L as Y}from"./focused-chunks/chunk-ASHGXMX4.js";import"./focused-chunks/chunk-VFWCSQAG.js";import{C as et,D as tt,E as it,F as rt,G as nt,H as ot}from"./focused-chunks/chunk-RYEZSZJ7.js";import{Fa as re,Ga as ne,Ha as oe,Ia as ae,Ja as de,Ka as se,La as fe,Ma as ue,Na as ce,Oa as pe,Pa as le,Qa as me,Ra as _e}from"./focused-chunks/chunk-I642DXOT.js";import"./focused-chunks/chunk-S23ZUASN.js";import"./focused-chunks/chunk-R2TPPPVU.js";import"./focused-chunks/chunk-PGM3ENGZ.js";import"./focused-chunks/chunk-GHQVM6K6.js";import{o as ie}from"./focused-chunks/chunk-K7DKG5HM.js";import{a as L,b as X,c as Q,d as ee,e as te}from"./focused-chunks/chunk-YU7QOYYV.js";import"./focused-chunks/chunk-3SRX77ES.js";import"./focused-chunks/chunk-RGQEJFXO.js";import"./focused-chunks/chunk-4PW5XWVI.js";import"./focused-chunks/chunk-AK2CI2GI.js";import{Ad as y,Ja as R,Ka as O,La as $,Ma as N,Na as B,Oa as C,Pa as z,Qa as j,Ra as q,Sa as U,Ta as P,uc as F}from"./focused-chunks/chunk-2V6NMNYN.js";import"./focused-chunks/chunk-EGN2HFRU.js";import"./focused-chunks/chunk-FOA7XKWP.js";import"./focused-chunks/chunk-BPE6JTKL.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="7e55d416-9cc3-51c5-8e56-6b5fd5c836a9")}catch{}})();var b=["captured_redacted","captured_verbatim"],x=[{label:"home directory",pattern:/(?:\/home\/|\/Users\/)[^/\s"']+/u},{label:"GitHub token",pattern:/\b(?:gh[oprsu]_[A-Za-z0-9_]{20,})\b/u},{label:"npm token",pattern:/\bnpm_[A-Za-z0-9]{20,}\b/u},{label:"private key",pattern:/-----BEGIN (?:RSA |EC |OPENSSH )?PRIVATE KEY-----/u}];function c(e){return typeof e=="string"&&e.trim().length>0}function E(e,i){if(typeof i!="object"||i===null||Array.isArray(i))return[{boundary_id:e.id,kind:"invalid_fixture",detail:`${e.fixture_path} must contain a JSON object.`}];let t=i,r=[];t.boundary_id!==e.id&&r.push({boundary_id:e.id,kind:"fixture_boundary_mismatch",detail:`${e.fixture_path} names ${String(t.boundary_id)} instead of ${e.id}.`}),(t.version!==1||!b.includes(t.capture_source)||!c(t.capture_provenance)||!Array.isArray(t.redactions)||!t.redactions.every(c)||!("input"in t)||!("observed"in t))&&r.push({boundary_id:e.id,kind:"invalid_fixture",detail:`${e.fixture_path} lacks captured provenance, redaction metadata, input, or observed output.`});let o=JSON.stringify(i);for(let u of x)u.pattern.test(o)&&r.push({boundary_id:e.id,kind:"unsafe_fixture",detail:`${e.fixture_path} contains a possible ${u.label}.`});return r}function k(e,i){let t=Date.parse(e.waiver_expires_at),r=c(e.waiver_reason)&&c(e.waiver_owner)&&e.waiver_expires_at.endsWith("Z")&&y(e.waiver_expires_at)&&Number.isFinite(t);return{captured:0,waived:r&&t>=i?1:0,findings:r?t<i?[{boundary_id:e.id,kind:"expired_waiver",detail:`Boundary ${e.id} waiver expired at ${e.waiver_expires_at}.`}]:[]:[{boundary_id:e.id,kind:"invalid_waiver",detail:`Boundary ${e.id} waiver requires reason, owner, and an RFC 3339 UTC expiry.`}]}}function T(e,i,t){if(!c(e.id)||!c(e.producer)||!c(e.consumer)||!c(e.format))return{captured:0,waived:0,findings:[{boundary_id:c(e.id)?e.id:"unknown",kind:"invalid_boundary",detail:"Each boundary requires non-empty id, producer, consumer, and format."}]};if("fixture_path"in e){let r=i[e.fixture_path],o=c(e.fixture_path)&&e.fixture_path in i?E(e,r):[{boundary_id:e.id,kind:"missing_fixture",detail:`Boundary ${e.id} fixture ${String(e.fixture_path)} is missing.`}];return{captured:o.length===0?1:0,waived:0,findings:o}}return k(e,t)}function Zt(e,i,t=new Date){let r=[];if(e.version!==1||!c(e.inventory_scope)||!Array.isArray(e.boundaries))return{ok:!1,boundary_count:0,captured_count:0,waived_count:0,findings:[{boundary_id:"registry",kind:"invalid_registry",detail:"Boundary registry requires version 1, inventory_scope, and boundaries."}]};let o=new Set,u=0,n=0;for(let d of e.boundaries){if(typeof d!="object"||d===null||Array.isArray(d)){r.push({boundary_id:"unknown",kind:"invalid_boundary",detail:"Each boundary must be a JSON object."});continue}let s=d,a=c(s.id)?s.id:void 0;if(a!==void 0&&o.has(a)){r.push({boundary_id:a,kind:"duplicate_boundary",detail:`Boundary ${a} is inventoried more than once.`});continue}a!==void 0&&o.add(a);let p=T(s,i,t.getTime());u+=p.captured,n+=p.waived,r.push(...p.findings)}return r.sort((d,s)=>d.boundary_id!==s.boundary_id?d.boundary_id.localeCompare(s.boundary_id):d.kind.localeCompare(s.kind)),{ok:r.length===0,boundary_count:e.boundaries.length,captured_count:u,waived_count:n,findings:r}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="604d7dcb-9fea-5631-8a72-b2a7ff3278f8")}catch{}})();function l(e){if(typeof e!="string"||!y(e))throw new TypeError("Invalid reliability timestamp.");return Date.parse(e)}function I(e){let i=l(e.window_start),t=l(e.window_end);if(i>=t||!Number.isFinite(e.max_failure_rate)||e.max_failure_rate<0||e.max_failure_rate>=1||!Number.isSafeInteger(e.min_completed_attempts)||e.min_completed_attempts<1)throw new TypeError("Invalid reliability window policy.");if(e.families.length===0||e.families.some(r=>typeof r!="string"||r.trim().length===0)||new Set(e.families).size!==e.families.length)throw new TypeError("Expected unique, nonempty reliability families.");return{start:i,end:t}}function S(e,i,t,r){let o=new Map(i.map(n=>[n,[]])),u=new Set;for(let n of e){if(typeof n.id!="string"||n.id.trim().length===0||u.has(n.id))throw new TypeError("Invalid or duplicate reliability attempt identity.");u.add(n.id);let d=o.get(n.family);if(!d||!["success","failure","pending"].includes(n.outcome)||n.cause!==void 0&&(!["product","infrastructure","unknown"].includes(n.cause)||n.outcome!=="failure"))throw new TypeError("Invalid reliability attempt family, outcome or cause.");let s=l(n.started_at);if(n.repaired_at!==void 0&&(l(n.repaired_at)<s||n.outcome!=="failure"))throw new TypeError("Invalid reliability repair chronology.");s>=t&&s<r&&d.push(n)}return o}function Vt(e,i){let{start:t,end:r}=I(i),o=[...S(e,i.families,t,r)].map(([u,n])=>{let d=n.filter(f=>f.outcome==="failure"),s=n.filter(f=>f.outcome!=="pending").length,a=s===0?null:d.length/s,p=d.filter(f=>f.repaired_at!==void 0&&l(f.repaired_at)<r),m={product:0,infrastructure:0,unknown:0};for(let f of d)m[f.cause??"unknown"]+=1;let _=[];return s<i.min_completed_attempts&&_.push("insufficient_completed_attempts"),a!==null&&a>i.max_failure_rate&&_.push("failure_rate"),{family:u,attempts:n.length,completed:s,failed:d.length,pending:n.length-s,failure_rate:a,affected_days:[...new Set(d.map(f=>new Date(l(f.started_at)).toISOString().slice(0,10)))].sort(),repair_minutes:p.map(f=>(l(f.repaired_at)-l(f.started_at))/6e4).sort((f,w)=>f-w),unresolved:d.length-p.length,causes:m,violations:_,ok:_.length===0}});return{schema:"pm-reliability-window/1",window_start:new Date(t).toISOString(),window_end:new Date(r).toISOString(),ok:o.every(u=>u.ok),families:o}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="773ad2b6-326e-5483-bdce-a377f935cb31")}catch{}})();function g(e){return typeof e=="string"&&e.length>0&&e.trim()===e}function A(e){if(!Array.isArray(e)||e.length<2)throw new TypeError("Expected at least two artifact ledgers.");let i=new Map;for(let t of e){if(t===null||typeof t!="object"||!g(t.name)||i.has(t.name)||t.complete!==!0)throw new TypeError("Expected unique complete artifact ledgers.");if(!Array.isArray(t.identities))throw new TypeError("Invalid or duplicate artifact identity.");let r=new Set(t.identities);if(r.size!==t.identities.length||[...r].some(o=>!g(o)))throw new TypeError("Invalid or duplicate artifact identity.");i.set(t.name,r)}if([...i.values()].every(t=>t.size===0))throw new TypeError("Empty inventories cannot establish artifact reconciliation.");return i}function D(e,i){if(!Array.isArray(e))throw new TypeError("Expected unique evidence-backed artifact exceptions.");let t=new Map;for(let r of e){if(r===null||typeof r!="object"||!g(r.identity)||t.has(r.identity)||!g(r.reason)||!g(r.evidence))throw new TypeError("Expected unique evidence-backed artifact exceptions.");let o=r.missing_from;if(!Array.isArray(o)||o.length===0||o.length>=i.length||new Set(o).size!==o.length||[...o].some(u=>!i.includes(u)))throw new TypeError("Invalid artifact exception ledger signature.");t.set(r.identity,r)}return t}function Kt(e,i=[]){let t=A(e),r=[...t.keys()].sort(),o=D(i,r),u=[...new Set([...t.values()].flatMap(a=>[...a]))].sort(),n=[],d=new Set;for(let a of u){let p=r.filter(f=>!t.get(f).has(a));if(p.length===0)continue;let m=o.get(a),_=m!==void 0&&JSON.stringify([...m.missing_from].sort())===JSON.stringify(p);_&&d.add(a),n.push({identity:a,present_in:r.filter(f=>t.get(f).has(a)),missing_from:p,disposition:_?{reason:m.reason,evidence:m.evidence}:null})}let s=[...o.keys()].filter(a=>!d.has(a)).sort();return{schema:"pm-artifact-ledgers/1",ok:n.every(a=>a.disposition!==null)&&s.length===0,counts:Object.fromEntries(r.map(a=>[a,t.get(a).size])),findings:n,stale_exceptions:s}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="fca4e9bb-3a30-512e-9929-565ab6c11c54")}catch{}})();export{$t as ASSURANCE_ACTIONS,Nt as ASSURANCE_DECLARATION_KINDS,be as ASSURANCE_DOCUMENT_VERSION,xe as ASSURANCE_GATE_TRIGGERS,Ee as ASSURANCE_MEASUREMENT_SOURCE_KINDS,at as ASSURANCE_PRESET_IDS,ye as AssuranceEvaluationRefusalError,ge as AssuranceMutationRefusalError,we as AssuranceSourceResolutionError,b as BOUNDARY_FIXTURE_CAPTURE_SOURCES,Q as CURRENT_HISTORY_HASH_ALGORITHM,J as DEFECT_ESCAPE_CLASSES,W as DEFECT_GATE_EVIDENCE_DISPOSITIONS,H as DefectRecurrencePolicyParseError,Ze as HISTORY_AUTHOR_ATTRIBUTION_BASELINE,L as HISTORY_HASH_ALGORITHMS,X as LEGACY_HISTORY_HASH_ALGORITHM,O as MAX_WORKFLOW_POLICIES,$ as MAX_WORKFLOW_POLICY_TERMS,K as PM_HISTORY_ATTESTATION_CONTRACT,re as PM_MUTATION_ACTION_CONTRACTS,R as WORKFLOW_POLICY_ACTIONS,Fe as WORKFLOW_POLICY_DOCUMENT_SCHEMA,Pe as WORKFLOW_POLICY_SCHEMA,vt as _testOnlyHealthCommand,tt as _testOnlySimilarity,St as _testOnlyValidateCommand,Wt as _testOnlyWorkspacePosition,ut as acceptAssuranceProposals,Qe as acknowledgeUnknownAuthorHistoryEvents,Xe as acknowledgeUnknownAuthorHistoryEventsFromTransport,Z as analyzeDefectChangeRisk,Ot as analyzeDefectRecurrenceCoverage,rt as analyzeDuplicateItems,st as applyAssurancePreset,Et as applyClosureTimestampFix,ke as assuranceAssertionUpdateIsLoosening,M as buildDefectRecurrenceIndex,kt as buildLinkedFileRepairReport,wt as buildStatusRoleWarnings,Je as buildWorkflowCompletenessCheck,Ge as classifyHistoryAuthorEvent,dt as createAssurancePreset,Dt as createAssuranceWorkspaceContext,De as createEmptyAssuranceDocument,We as createLifecycleCompletenessPolicies,P as createWorkflowPolicyEvaluator,ft as deriveAssuranceProposals,bt as deriveClosureTimestamp,Oe as evaluateAssuranceAssertion,$e as evaluateAssuranceGate,Zt as evaluateBoundaryFixtures,G as evaluateDefectGateEvidence,Re as evaluateMeasurement,oe as evaluateMutationGuard,Vt as evaluateReliabilityWindow,ot as evaluateSimilarityGovernance,U as evaluateWorkflowPolicies,qt as exportAttestation,nt as findDuplicateClusters,it as findSimilarItems,Jt as formatWorkspacePositionHuman,Be as getAssuranceDeclaration,se as getMutationActionContract,te as historyDigest,He as inspectHistoryAuthorStream,me as inspectStaleInProgressItems,yt as inspectStatusRoleAssignments,ae as isMutationAction,F as jaccardSimilarity,Ne as listAssuranceDeclarations,Ue as listAssuranceVerdicts,mt as listInvalidProvenanceHistoryStreamIds,de as listMutationActions,ve as normalizeAssuranceEvaluation,he as normalizeAssuranceMutation,lt as normalizeInvalidHistoryProvenance,fe as normalizeSimilarityText,Y as parseDefectChangeRiskRequest,Rt as parseDefectRecurrenceCoverageRequest,V as parseDefectRecurrencePolicy,jt as parseHistoryAttestation,Le as parseUnknownAuthorHistoryEventCoordinates,N as parseWorkflowPolicy,B as parseWorkflowPolicyDocument,Ye as planUnknownAuthorHistoryAcknowledgment,ce as prepareSimilarityText,It as projectValidateCounts,ct as promoteAssuranceAssertion,Ce as putAssuranceDeclaration,ze as putAssuranceDeclarationBundle,ie as readWorkflowPolicies,C as readWorkflowPolicyField,Ft as readWorkspacePosition,Kt as reconcileArtifactLedgers,qe as recordAssuranceVerdict,je as removeAssuranceDeclaration,ee as resolveHistoryHashAlgorithm,Ke as resolveUnknownAuthorAcknowledgmentSelector,Bt as runAssuranceAction,Ct as runAssuranceDispatch,zt as runGc,ht as runHealth,Pt as runHistoryAttest,gt as runHistoryMaintenance,v as runReindex,h as runUpgrade,At as runValidate,Me as runWorkflowPolicyAction,xt as scanClosureTimestamps,pt as scanExtensionHostVersions,Ve as scanHistoryAuthorAttribution,ne as scanMutationSecrets,_t as scanProvenanceResolverHealth,_e as scanStaleInProgressItems,Tt as scanStorageIntegrity,pe as scoreItemSimilarity,le as scorePreparedItemSimilarity,et as similarityAdvisoryWarnings,ue as tokenizeSimilarityText,Ie as validateAssertionDefinition,Ae as validateAssuranceDocument,Se as validateGateDefinition,Te as validateMeasurementDefinition,Ut as verifyAttestation,j as workflowApprovalFingerprint,q as workflowPolicyApplies,z as workflowPolicyFingerprint};
|
|
1
|
+
import{$a as kt,Ab as At,Bb as Dt,Cb as Rt,D as Pe,Db as Ot,E as Fe,Eb as $t,F as Je,Fb as Nt,G as We,Gb as Bt,H as Me,Hb as Ct,Ib as zt,Jb as h,Kb as jt,Lb as qt,Mb as Ut,Nb as Pt,Ob as Ft,Pb as Jt,Qa as gt,Qb as Wt,Rb as v,Ua as yt,Va as wt,Wa as ht,Xa as vt,Ya as bt,Za as xt,_a as Et,a as ge,aa as Ze,ab as Tt,b as ye,ba as Ge,c as we,ca as He,d as he,da as Ve,e as ve,ea as Ye,f as be,fa as Ke,g as xe,ga as Le,h as Ee,ha as Xe,i as ke,ia as Qe,j as Te,k as Ie,l as Se,m as Ae,n as De,o as Re,p as Oe,pa as at,q as $e,qa as dt,r as Ne,ra as st,s as Be,sa as ft,t as Ce,ta as ut,u as ze,ua as ct,v as je,va as pt,w as qe,wa as lt,x as Ue,xa as mt,ya as _t,yb as It,zb as St}from"./focused-chunks/chunk-6OKPYCLU.js";import"./focused-chunks/chunk-3NYWMUX3.js";import"./focused-chunks/chunk-DFUTCKUF.js";import"./focused-chunks/chunk-WX2RVS2Y.js";import"./focused-chunks/chunk-LVA76N27.js";import{a as K}from"./focused-chunks/chunk-SVOOGGAK.js";import"./focused-chunks/chunk-VS2ZFPXD.js";import{E as J,F as W,G as M,H as Z,I as G,J as H,K as V,L as Y}from"./focused-chunks/chunk-Z7GIVH6B.js";import"./focused-chunks/chunk-RPUDOJVB.js";import{C as et,D as tt,E as it,F as rt,G as nt,H as ot}from"./focused-chunks/chunk-GE755ODZ.js";import{Ga as re,Ha as ne,Ia as oe,Ja as ae,Ka as de,La as se,Ma as fe,Na as ue,Oa as ce,Pa as pe,Qa as le,Ra as me,Sa as _e}from"./focused-chunks/chunk-7WJDRZOR.js";import"./focused-chunks/chunk-6GMYW42K.js";import"./focused-chunks/chunk-UQIBGLDR.js";import"./focused-chunks/chunk-PAT6QF63.js";import"./focused-chunks/chunk-GHQVM6K6.js";import{o as ie}from"./focused-chunks/chunk-JCR32IAO.js";import{a as L,b as X,c as Q,d as ee,e as te}from"./focused-chunks/chunk-M22TI7LP.js";import"./focused-chunks/chunk-AL7SOFUL.js";import"./focused-chunks/chunk-VFQAZLKO.js";import"./focused-chunks/chunk-4PW5XWVI.js";import"./focused-chunks/chunk-AK2CI2GI.js";import{Ec as F,Ja as R,Ka as O,La as $,Ma as N,Na as B,Oa as C,Pa as z,Qa as j,Qd as y,Ra as q,Sa as U,Ta as P}from"./focused-chunks/chunk-CIQ6YWCW.js";import"./focused-chunks/chunk-EGN2HFRU.js";import"./focused-chunks/chunk-FOA7XKWP.js";import"./focused-chunks/chunk-JLXGRDTG.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="7e55d416-9cc3-51c5-8e56-6b5fd5c836a9")}catch{}})();var b=["captured_redacted","captured_verbatim"],x=[{label:"home directory",pattern:/(?:\/home\/|\/Users\/)[^/\s"']+/u},{label:"GitHub token",pattern:/\b(?:gh[oprsu]_[A-Za-z0-9_]{20,})\b/u},{label:"npm token",pattern:/\bnpm_[A-Za-z0-9]{20,}\b/u},{label:"private key",pattern:/-----BEGIN (?:RSA |EC |OPENSSH )?PRIVATE KEY-----/u}];function c(e){return typeof e=="string"&&e.trim().length>0}function E(e,i){if(typeof i!="object"||i===null||Array.isArray(i))return[{boundary_id:e.id,kind:"invalid_fixture",detail:`${e.fixture_path} must contain a JSON object.`}];let t=i,r=[];t.boundary_id!==e.id&&r.push({boundary_id:e.id,kind:"fixture_boundary_mismatch",detail:`${e.fixture_path} names ${String(t.boundary_id)} instead of ${e.id}.`}),(t.version!==1||!b.includes(t.capture_source)||!c(t.capture_provenance)||!Array.isArray(t.redactions)||!t.redactions.every(c)||!("input"in t)||!("observed"in t))&&r.push({boundary_id:e.id,kind:"invalid_fixture",detail:`${e.fixture_path} lacks captured provenance, redaction metadata, input, or observed output.`});let o=JSON.stringify(i);for(let u of x)u.pattern.test(o)&&r.push({boundary_id:e.id,kind:"unsafe_fixture",detail:`${e.fixture_path} contains a possible ${u.label}.`});return r}function k(e,i){let t=Date.parse(e.waiver_expires_at),r=c(e.waiver_reason)&&c(e.waiver_owner)&&e.waiver_expires_at.endsWith("Z")&&y(e.waiver_expires_at)&&Number.isFinite(t);return{captured:0,waived:r&&t>=i?1:0,findings:r?t<i?[{boundary_id:e.id,kind:"expired_waiver",detail:`Boundary ${e.id} waiver expired at ${e.waiver_expires_at}.`}]:[]:[{boundary_id:e.id,kind:"invalid_waiver",detail:`Boundary ${e.id} waiver requires reason, owner, and an RFC 3339 UTC expiry.`}]}}function T(e,i,t){if(!c(e.id)||!c(e.producer)||!c(e.consumer)||!c(e.format))return{captured:0,waived:0,findings:[{boundary_id:c(e.id)?e.id:"unknown",kind:"invalid_boundary",detail:"Each boundary requires non-empty id, producer, consumer, and format."}]};if("fixture_path"in e){let r=i[e.fixture_path],o=c(e.fixture_path)&&e.fixture_path in i?E(e,r):[{boundary_id:e.id,kind:"missing_fixture",detail:`Boundary ${e.id} fixture ${String(e.fixture_path)} is missing.`}];return{captured:o.length===0?1:0,waived:0,findings:o}}return k(e,t)}function Zt(e,i,t=new Date){let r=[];if(e.version!==1||!c(e.inventory_scope)||!Array.isArray(e.boundaries))return{ok:!1,boundary_count:0,captured_count:0,waived_count:0,findings:[{boundary_id:"registry",kind:"invalid_registry",detail:"Boundary registry requires version 1, inventory_scope, and boundaries."}]};let o=new Set,u=0,n=0;for(let d of e.boundaries){if(typeof d!="object"||d===null||Array.isArray(d)){r.push({boundary_id:"unknown",kind:"invalid_boundary",detail:"Each boundary must be a JSON object."});continue}let s=d,a=c(s.id)?s.id:void 0;if(a!==void 0&&o.has(a)){r.push({boundary_id:a,kind:"duplicate_boundary",detail:`Boundary ${a} is inventoried more than once.`});continue}a!==void 0&&o.add(a);let p=T(s,i,t.getTime());u+=p.captured,n+=p.waived,r.push(...p.findings)}return r.sort((d,s)=>d.boundary_id!==s.boundary_id?d.boundary_id.localeCompare(s.boundary_id):d.kind.localeCompare(s.kind)),{ok:r.length===0,boundary_count:e.boundaries.length,captured_count:u,waived_count:n,findings:r}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="604d7dcb-9fea-5631-8a72-b2a7ff3278f8")}catch{}})();function l(e){if(typeof e!="string"||!y(e))throw new TypeError("Invalid reliability timestamp.");return Date.parse(e)}function I(e){let i=l(e.window_start),t=l(e.window_end);if(i>=t||!Number.isFinite(e.max_failure_rate)||e.max_failure_rate<0||e.max_failure_rate>=1||!Number.isSafeInteger(e.min_completed_attempts)||e.min_completed_attempts<1)throw new TypeError("Invalid reliability window policy.");if(e.families.length===0||e.families.some(r=>typeof r!="string"||r.trim().length===0)||new Set(e.families).size!==e.families.length)throw new TypeError("Expected unique, nonempty reliability families.");return{start:i,end:t}}function S(e,i,t,r){let o=new Map(i.map(n=>[n,[]])),u=new Set;for(let n of e){if(typeof n.id!="string"||n.id.trim().length===0||u.has(n.id))throw new TypeError("Invalid or duplicate reliability attempt identity.");u.add(n.id);let d=o.get(n.family);if(!d||!["success","failure","pending"].includes(n.outcome)||n.cause!==void 0&&(!["product","infrastructure","unknown"].includes(n.cause)||n.outcome!=="failure"))throw new TypeError("Invalid reliability attempt family, outcome or cause.");let s=l(n.started_at);if(n.repaired_at!==void 0&&(l(n.repaired_at)<s||n.outcome!=="failure"))throw new TypeError("Invalid reliability repair chronology.");s>=t&&s<r&&d.push(n)}return o}function Vt(e,i){let{start:t,end:r}=I(i),o=[...S(e,i.families,t,r)].map(([u,n])=>{let d=n.filter(f=>f.outcome==="failure"),s=n.filter(f=>f.outcome!=="pending").length,a=s===0?null:d.length/s,p=d.filter(f=>f.repaired_at!==void 0&&l(f.repaired_at)<r),m={product:0,infrastructure:0,unknown:0};for(let f of d)m[f.cause??"unknown"]+=1;let _=[];return s<i.min_completed_attempts&&_.push("insufficient_completed_attempts"),a!==null&&a>i.max_failure_rate&&_.push("failure_rate"),{family:u,attempts:n.length,completed:s,failed:d.length,pending:n.length-s,failure_rate:a,affected_days:[...new Set(d.map(f=>new Date(l(f.started_at)).toISOString().slice(0,10)))].sort(),repair_minutes:p.map(f=>(l(f.repaired_at)-l(f.started_at))/6e4).sort((f,w)=>f-w),unresolved:d.length-p.length,causes:m,violations:_,ok:_.length===0}});return{schema:"pm-reliability-window/1",window_start:new Date(t).toISOString(),window_end:new Date(r).toISOString(),ok:o.every(u=>u.ok),families:o}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="773ad2b6-326e-5483-bdce-a377f935cb31")}catch{}})();function g(e){return typeof e=="string"&&e.length>0&&e.trim()===e}function A(e){if(!Array.isArray(e)||e.length<2)throw new TypeError("Expected at least two artifact ledgers.");let i=new Map;for(let t of e){if(t===null||typeof t!="object"||!g(t.name)||i.has(t.name)||t.complete!==!0)throw new TypeError("Expected unique complete artifact ledgers.");if(!Array.isArray(t.identities))throw new TypeError("Invalid or duplicate artifact identity.");let r=new Set(t.identities);if(r.size!==t.identities.length||[...r].some(o=>!g(o)))throw new TypeError("Invalid or duplicate artifact identity.");i.set(t.name,r)}if([...i.values()].every(t=>t.size===0))throw new TypeError("Empty inventories cannot establish artifact reconciliation.");return i}function D(e,i){if(!Array.isArray(e))throw new TypeError("Expected unique evidence-backed artifact exceptions.");let t=new Map;for(let r of e){if(r===null||typeof r!="object"||!g(r.identity)||t.has(r.identity)||!g(r.reason)||!g(r.evidence))throw new TypeError("Expected unique evidence-backed artifact exceptions.");let o=r.missing_from;if(!Array.isArray(o)||o.length===0||o.length>=i.length||new Set(o).size!==o.length||[...o].some(u=>!i.includes(u)))throw new TypeError("Invalid artifact exception ledger signature.");t.set(r.identity,r)}return t}function Kt(e,i=[]){let t=A(e),r=[...t.keys()].sort(),o=D(i,r),u=[...new Set([...t.values()].flatMap(a=>[...a]))].sort(),n=[],d=new Set;for(let a of u){let p=r.filter(f=>!t.get(f).has(a));if(p.length===0)continue;let m=o.get(a),_=m!==void 0&&JSON.stringify([...m.missing_from].sort())===JSON.stringify(p);_&&d.add(a),n.push({identity:a,present_in:r.filter(f=>t.get(f).has(a)),missing_from:p,disposition:_?{reason:m.reason,evidence:m.evidence}:null})}let s=[...o.keys()].filter(a=>!d.has(a)).sort();return{schema:"pm-artifact-ledgers/1",ok:n.every(a=>a.disposition!==null)&&s.length===0,counts:Object.fromEntries(r.map(a=>[a,t.get(a).size])),findings:n,stale_exceptions:s}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="fca4e9bb-3a30-512e-9929-565ab6c11c54")}catch{}})();export{$t as ASSURANCE_ACTIONS,Nt as ASSURANCE_DECLARATION_KINDS,be as ASSURANCE_DOCUMENT_VERSION,xe as ASSURANCE_GATE_TRIGGERS,Ee as ASSURANCE_MEASUREMENT_SOURCE_KINDS,at as ASSURANCE_PRESET_IDS,ye as AssuranceEvaluationRefusalError,ge as AssuranceMutationRefusalError,we as AssuranceSourceResolutionError,b as BOUNDARY_FIXTURE_CAPTURE_SOURCES,Q as CURRENT_HISTORY_HASH_ALGORITHM,J as DEFECT_ESCAPE_CLASSES,W as DEFECT_GATE_EVIDENCE_DISPOSITIONS,H as DefectRecurrencePolicyParseError,Ze as HISTORY_AUTHOR_ATTRIBUTION_BASELINE,L as HISTORY_HASH_ALGORITHMS,X as LEGACY_HISTORY_HASH_ALGORITHM,O as MAX_WORKFLOW_POLICIES,$ as MAX_WORKFLOW_POLICY_TERMS,K as PM_HISTORY_ATTESTATION_CONTRACT,re as PM_MUTATION_ACTION_CONTRACTS,R as WORKFLOW_POLICY_ACTIONS,Fe as WORKFLOW_POLICY_DOCUMENT_SCHEMA,Pe as WORKFLOW_POLICY_SCHEMA,vt as _testOnlyHealthCommand,tt as _testOnlySimilarity,St as _testOnlyValidateCommand,Wt as _testOnlyWorkspacePosition,ut as acceptAssuranceProposals,Qe as acknowledgeUnknownAuthorHistoryEvents,Xe as acknowledgeUnknownAuthorHistoryEventsFromTransport,Z as analyzeDefectChangeRisk,Ot as analyzeDefectRecurrenceCoverage,rt as analyzeDuplicateItems,st as applyAssurancePreset,Et as applyClosureTimestampFix,ke as assuranceAssertionUpdateIsLoosening,M as buildDefectRecurrenceIndex,kt as buildLinkedFileRepairReport,wt as buildStatusRoleWarnings,Je as buildWorkflowCompletenessCheck,Ge as classifyHistoryAuthorEvent,dt as createAssurancePreset,Dt as createAssuranceWorkspaceContext,De as createEmptyAssuranceDocument,We as createLifecycleCompletenessPolicies,P as createWorkflowPolicyEvaluator,ft as deriveAssuranceProposals,bt as deriveClosureTimestamp,Oe as evaluateAssuranceAssertion,$e as evaluateAssuranceGate,Zt as evaluateBoundaryFixtures,G as evaluateDefectGateEvidence,Re as evaluateMeasurement,oe as evaluateMutationGuard,Vt as evaluateReliabilityWindow,ot as evaluateSimilarityGovernance,U as evaluateWorkflowPolicies,qt as exportAttestation,nt as findDuplicateClusters,it as findSimilarItems,Jt as formatWorkspacePositionHuman,Be as getAssuranceDeclaration,se as getMutationActionContract,te as historyDigest,He as inspectHistoryAuthorStream,me as inspectStaleInProgressItems,yt as inspectStatusRoleAssignments,ae as isMutationAction,F as jaccardSimilarity,Ne as listAssuranceDeclarations,Ue as listAssuranceVerdicts,mt as listInvalidProvenanceHistoryStreamIds,de as listMutationActions,ve as normalizeAssuranceEvaluation,he as normalizeAssuranceMutation,lt as normalizeInvalidHistoryProvenance,fe as normalizeSimilarityText,Y as parseDefectChangeRiskRequest,Rt as parseDefectRecurrenceCoverageRequest,V as parseDefectRecurrencePolicy,jt as parseHistoryAttestation,Le as parseUnknownAuthorHistoryEventCoordinates,N as parseWorkflowPolicy,B as parseWorkflowPolicyDocument,Ye as planUnknownAuthorHistoryAcknowledgment,ce as prepareSimilarityText,It as projectValidateCounts,ct as promoteAssuranceAssertion,Ce as putAssuranceDeclaration,ze as putAssuranceDeclarationBundle,ie as readWorkflowPolicies,C as readWorkflowPolicyField,Ft as readWorkspacePosition,Kt as reconcileArtifactLedgers,qe as recordAssuranceVerdict,je as removeAssuranceDeclaration,ee as resolveHistoryHashAlgorithm,Ke as resolveUnknownAuthorAcknowledgmentSelector,Bt as runAssuranceAction,Ct as runAssuranceDispatch,zt as runGc,ht as runHealth,Pt as runHistoryAttest,gt as runHistoryMaintenance,v as runReindex,h as runUpgrade,At as runValidate,Me as runWorkflowPolicyAction,xt as scanClosureTimestamps,pt as scanExtensionHostVersions,Ve as scanHistoryAuthorAttribution,ne as scanMutationSecrets,_t as scanProvenanceResolverHealth,_e as scanStaleInProgressItems,Tt as scanStorageIntegrity,pe as scoreItemSimilarity,le as scorePreparedItemSimilarity,et as similarityAdvisoryWarnings,ue as tokenizeSimilarityText,Ie as validateAssertionDefinition,Ae as validateAssuranceDocument,Se as validateGateDefinition,Te as validateMeasurementDefinition,Ut as verifyAttestation,j as workflowApprovalFingerprint,q as workflowPolicyApplies,z as workflowPolicyFingerprint};
|
|
2
2
|
//# sourceMappingURL=sdk-governance.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as Ze,b as Qe,c as Ie,e as De}from"./focused-chunks/chunk-POJPJX64.js";import{A as me,B as ye,C as we,D as be,E as Re,F as _e,G as ke,H as Ae,I as Ge,J as Se,K as Ee,a as Xe,b as Ye,c as er,d as rr,e as q,f as J,g as Z,h as Q,i as X,j as Y,k as ee,l as re,m as te,n as ne,o as ie,p as ae,q as oe,r as se,s as pe,t as de,u as ce,v as le,w as he,x as fe,y as ge,z as ue}from"./focused-chunks/chunk-VFWCSQAG.js";import{E as U,F as L,G as V,H as K,I as tr,J as nr,a as We,b as je,c as Fe,d as Ue,e as Le,f as Ve,g as Ke,h as qe,i as Je,m as $,n as H,o as v,p as M,q as N,r as P,s as B,t as z,u as W,v as j,w as F,y as _}from"./focused-chunks/chunk-PGM3ENGZ.js";import"./focused-chunks/chunk-GHQVM6K6.js";import"./focused-chunks/chunk-K7DKG5HM.js";import"./focused-chunks/chunk-YU7QOYYV.js";import"./focused-chunks/chunk-3SRX77ES.js";import"./focused-chunks/chunk-RGQEJFXO.js";import"./focused-chunks/chunk-4PW5XWVI.js";import{a as ze}from"./focused-chunks/chunk-AK2CI2GI.js";import{Fa as w,P as He,Q as R,R as S,S as ve,T as Me,U as Ne,V as Pe,W as f,X as Be,lb as O}from"./focused-chunks/chunk-2V6NMNYN.js";import"./focused-chunks/chunk-BPE6JTKL.js";import{createHash as Te}from"node:crypto";(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]="ff60bc5b-bd85-5b3c-9a55-21e7e72477ac")}catch{}})();var k=1;function g(e){e?.throwIfAborted()}function l(e,r){if(typeof e!="string"||e.trim().length===0)throw new TypeError(`Relationship graph ${r} must be non-empty`);return e.trim()}function u(e,r,t={}){let n=Date.parse(t.createdAt??new Date().toISOString());if(!Number.isFinite(n))throw new TypeError("Relationship graph createdAt must be a valid timestamp");let i=e.nodes(),s=e.edges(),a=r.list();return Object.freeze({version:k,fingerprint:Te("sha256").update(w({nodes:i,edges:s,kinds:a})).digest("hex"),created_at:new Date(n).toISOString(),nodes:i,edges:s,kinds:a})}function Ce(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function y(e){if(!Ce(e))throw new TypeError("Relationship graph snapshot must be an object");if(e.version!==k)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 r=new R([]);for(let i of e.kinds)r.register(i);let t=new f(e.nodes,e.edges,r),n=u(t,r,{createdAt:e.created_at});if(n.fingerprint!==e.fingerprint)throw new TypeError("Relationship graph snapshot fingerprint mismatch");return{snapshot:n,registry:r,graph:t}}async function c(e,r){l(e.name,"adapter name");let t=l(r.workspace,"workspace");g(r.signal);let n=await e.read({...r,workspace:t});return g(r.signal),n===null?null:y(n)}async function b(e,r){let t=l(r.workspace,"workspace"),n=y(r.snapshot).snapshot,i=await c(e,{workspace:t,signal:r.signal});if(i?.snapshot.fingerprint===n.fingerprint)return{adapter:e.name,workspace:t,disposition:"current",fingerprint:n.fingerprint,previous_fingerprint:i.snapshot.fingerprint,node_count:n.nodes.length,edge_count:n.edges.length};if(g(r.signal),await e.replace({workspace:t,signal:r.signal,snapshot:n,expected_fingerprint:i?.snapshot.fingerprint??null}),(await c(e,{workspace:t,signal:r.signal}))?.snapshot.fingerprint!==n.fingerprint)throw new Error(`Relationship graph adapter "${e.name}" did not expose the replaced snapshot`);return{adapter:e.name,workspace:t,disposition:"written",fingerprint:n.fingerprint,...i?{previous_fingerprint:i.snapshot.fingerprint}:{},node_count:n.nodes.length,edge_count:n.edges.length}}function xe(e,r={}){let t=e.map(y),n=new Map;for(let a of t)for(let o of a.snapshot.kinds){let d=n.get(o.kind);if(d&&w(d)!==w(o))throw new TypeError(`Conflicting federated relationship kind: ${o.kind}`);n.set(o.kind,o)}let i=new R([...n.values()].sort((a,o)=>a.kind.localeCompare(o.kind))),s=new f(new Set(t.flatMap(a=>[...a.snapshot.nodes])),t.flatMap(a=>[...a.snapshot.edges]),i);return u(s,i,r)}var m=class{name;#e=new Map;constructor(r="memory"){this.name=l(r,"adapter name")}async read(r){g(r.signal);let t=this.#e.get(l(r.workspace,"workspace"));return t?structuredClone(t):null}async replace(r){g(r.signal);let t=l(r.workspace,"workspace"),n=this.#e.get(t);if(r.expected_fingerprint!==void 0&&(n?.fingerprint??null)!==r.expected_fingerprint)throw new Error(`Relationship graph adapter conflict for ${t}`);this.#e.set(t,structuredClone(y(r.snapshot).snapshot))}async clear(r){g(r.signal);let t=l(r.workspace,"workspace"),n=this.#e.get(t);if(r.expected_fingerprint!==void 0&&(n?.fingerprint??null)!==r.expected_fingerprint)throw new Error(`Relationship graph adapter conflict for ${t}`);this.#e.delete(t)}};(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]="e47f9bb8-f98e-5159-9116-29c3e6fedfc3")}catch{}})();function E(e,r){if(!Number.isInteger(e)||e<1)throw new TypeError(`Relationship graph ${r} must be a positive integer`);return e}function Oe(e){let r=E(e.nodeCount,"nodeCount"),t=E(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(),s=(e.idPrefix??"node").trim();if(!i||!s)throw new TypeError("Relationship graph kind and idPrefix must be non-empty");let a=n==="disconnected"?0:Math.floor((r-1)/t);return{node_count:r,edge_count:a,edge_basis:"fixture_generated",nodes:{*[Symbol.iterator](){for(let o=0;o<r;o+=1)yield`${s}-${o}`}},edges:{*[Symbol.iterator](){if(n!=="disconnected")for(let o=t;o<r;o+=t)yield{source:`${s}-${n==="star"?0:o-t}`,target:`${s}-${o}`,kind:i}}}}}function h(e,r){if(!e)throw new Error(`Relationship graph adapter conformance: ${r}`)}async function I(e,r={}){let t=r.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"}),s=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"}),a=[];h(await c(e,{workspace:t})===null,"workspace must start empty"),a.push({name:"empty-read",passed:!0});let o=await b(e,{workspace:t,snapshot:i});h(o.disposition==="written","first sync must write"),a.push({name:"atomic-replace",passed:!0}),(await e.read({workspace:t})).nodes.push("mutated-reader-copy"),h((await c(e,{workspace:t}))?.snapshot.nodes.length===2,"reads must not mutate stored state"),a.push({name:"read-isolation",passed:!0}),h((await b(e,{workspace:t,snapshot:i})).disposition==="current","identical sync must be idempotent"),a.push({name:"idempotent-sync",passed:!0}),await e.replace({workspace:t,snapshot:s,expected_fingerprint:i.fingerprint}),h((await c(e,{workspace:t}))?.snapshot.fingerprint===s.fingerprint,"replacement must become visible"),a.push({name:"replacement-visibility",passed:!0});let d=!1;try{await e.replace({workspace:t,snapshot:i,expected_fingerprint:i.fingerprint})}catch{d=!0}return h(d,"stale compare-and-swap must fail"),a.push({name:"stale-cas",passed:!0}),e.clear&&(await e.clear({workspace:t,expected_fingerprint:s.fingerprint}),h(await c(e,{workspace:t})===null,"clear must remove the workspace"),a.push({name:"clear",passed:!0})),{adapter:e.name,workspace:t,cases:Object.freeze(a),clear_supported:e.clear!==void 0}}function $e(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:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="58736688-35d0-545d-892e-e0ede7fedc1a")}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:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="7163a078-d8be-5bca-813f-c941fcb8e406")}catch{}})();function T(e,r){if(typeof e!="string"||e.trim().length===0)throw new TypeError(`Relationship backfill ${r} must be non-empty`);return e.trim()}function xr(e,r){let t=T(r.migrationId,"migrationId"),n=T(r.author,"author"),i=Date.parse(r.timestamp);if(!Number.isFinite(i))throw new TypeError("Relationship backfill timestamp must be valid");let s=new Date(i).toISOString(),a=_(e,void 0,r.registry),o=a.graph.nodes(),d=a.graph.edges().map(p=>{let G=D("sha256").update(JSON.stringify([t,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:${t}:${G}`,relationshipId:`migration:${t}:${G}`,action:"add",edge:p,author:n,timestamp:s,reason:`Backfill ${t} from legacy item metadata`})}),C=D("sha256").update(JSON.stringify({migrationId:t,nodes:o,events:d})).digest("hex"),x=new Set([...r.existingEventIds??[]].filter(p=>typeof p=="string").map(p=>p.trim()).filter(Boolean)),A=d.filter(p=>!x.has(p.eventId));return Object.freeze({migration_id:t,fingerprint:C,nodes:o,events:Object.freeze(A),edge_count:d.length,skipped_existing_count:d.length-A.length,duplicate_dependency_rows:a.duplicateRows.length,dangling_reference_count:a.dangling.active.length+a.dangling.legacy_terminal.length})}(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]="3160880c-9d85-52c5-ae1d-ada213f56ce6")}catch{}})();export{je as ACTIONABILITY_ORDERING_KINDS,He as BUILTIN_RELATIONSHIP_KINDS,tr as DEFAULT_RELATIONSHIP_CONTEXT_TOKEN_BUDGET,ge as GRAPH_DURABLE_CACHE_MIN_ITEMS,fe as GRAPH_DURABLE_CACHE_VERSION,ze as GRAPH_QUERY_DEFAULTS,O as GRAPH_SUBCOMMAND_VALUES,m as MemoryRelationshipGraphAdapter,k as RELATIONSHIP_GRAPH_SNAPSHOT_VERSION,Ze as RelationshipEventLog,Qe as RelationshipEventStore,f as RelationshipGraph,R as RelationshipKindRegistry,L as WorkspaceGraphCache,Ye as analyzeGraphImpact,v as analyzeHierarchyIntegrity,er as analyzeKnowledgeGraph,Xe as analyzeRelationshipExecution,ae as analyzeRelationshipSchedule,_ as assembleWorkspaceRelationshipGraph,P as assertHierarchyMutationAllowed,$e as assertMemoryRelationshipGraphAdapterConformance,De as assertNonHierarchyCardinalityMutationAllowed,Pe as assertRelationshipEdgeAllowed,I as assertRelationshipGraphAdapterConformance,le as auditWorkspaceRelationshipGraph,nr as buildRelationshipContext,ve as canonicalizeRelationshipKind,be as clearDurableGraphCache,Fe as collectBlockedByIds,Le as collectBlockedByIdsFromCorpus,j as collectDanglingDependencyReferences,Ke as collectDependencyBlockedIds,z as collectDuplicateDependencyRows,ce as collectDuplicateRelationshipEdgeGroups,H as collectHierarchyRelations,F as collectMissingDependencyTargetIds,Ie as collectNewOrderingCycleWarnings,se as collectOrderingCycles,W as collectOrderingStorageContradictions,rr as compareRelationshipSnapshots,Je as computeActionabilityReport,ne as computeRelationshipCentrality,te as computeRelationshipDominators,U as computeWorkspaceGraphFingerprint,Oe as createRelationshipGraphScaleFixture,u as createRelationshipGraphSnapshot,S as createRelationshipKindRegistry,Be as dependencyToRelationship,oe as deriveRelationshipDeadlines,ee as detectRelationshipCommunities,he as diffRelationshipAuditSnapshots,ue as durableGraphCachePath,Re as durableGraphCacheStatus,X as enumerateRelationshipPaths,xe as federateRelationshipGraphSnapshots,re as findRedundantRelationshipEdges,ie as findRelationshipCutStructure,Y as forEachMatchedRelationshipEdge,de as formatDuplicateEdgeGroup,M as formatHierarchyRelation,pe as formatOrderingStorageContradiction,me as graphAuditBaselinePath,q as hierarchyAncestors,J as hierarchyDescendants,Ue as indexBlockedByIds,N as indexHierarchyRelations,Ne as isOrderingRelationshipKind,ke as loadGraphAuditBaseline,c as loadRelationshipGraphAdapter,B as normalizeDependencyGraphTarget,ye as openDurableGraphCache,Z as orderingPredecessors,Q as orderingSuccessors,Se as parseGraphSubcommand,y as parseRelationshipGraphSnapshot,we as persistDurableGraphResult,xr as planRelationshipEventBackfill,Ge as planRelationshipRemediation,K as resetWorkspaceGraphCache,Me as resolveCanonicalRelationshipKind,Ve as resolveItemBlockers,We as resolveItemExecutionRole,$ as resolveWorkspaceRelationshipKindRegistry,Ee as runGraph,Ae as saveGraphAuditBaseline,qe as selectActionableEntries,_e as shouldPersistDurableGraphCache,b as syncRelationshipGraphAdapter,V as workspaceGraphCache};
|
|
1
|
+
import{a as Ze,b as Qe,c as Ie,e as De}from"./focused-chunks/chunk-2Y77HWIX.js";import{A as me,B as ye,C as we,D as be,E as Re,F as _e,G as ke,H as Ae,I as Ge,J as Se,K as Ee,a as Xe,b as Ye,c as er,d as rr,e as q,f as J,g as Z,h as Q,i as X,j as Y,k as ee,l as re,m as te,n as ne,o as ie,p as ae,q as oe,r as se,s as pe,t as de,u as ce,v as le,w as he,x as fe,y as ge,z as ue}from"./focused-chunks/chunk-RPUDOJVB.js";import{A as L,B as V,C as K,D as tr,E as nr,a as We,b as je,c as Fe,d as Ue,e as Le,f as Ve,g as Ke,h as qe,i as Je,m as $,n as H,o as v,p as M,q as N,r as P,s as B,t as z,u as W,v as j,w as F,y as _,z as U}from"./focused-chunks/chunk-PAT6QF63.js";import"./focused-chunks/chunk-GHQVM6K6.js";import"./focused-chunks/chunk-JCR32IAO.js";import"./focused-chunks/chunk-M22TI7LP.js";import"./focused-chunks/chunk-AL7SOFUL.js";import"./focused-chunks/chunk-VFQAZLKO.js";import"./focused-chunks/chunk-4PW5XWVI.js";import{a as ze}from"./focused-chunks/chunk-AK2CI2GI.js";import{Fa as w,P as He,Q as R,R as S,S as ve,T as Me,U as Ne,V as Pe,W as f,X as Be,lb as O}from"./focused-chunks/chunk-CIQ6YWCW.js";import"./focused-chunks/chunk-JLXGRDTG.js";import{createHash as Te}from"node:crypto";(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]="ff60bc5b-bd85-5b3c-9a55-21e7e72477ac")}catch{}})();var k=1;function g(e){e?.throwIfAborted()}function l(e,r){if(typeof e!="string"||e.trim().length===0)throw new TypeError(`Relationship graph ${r} must be non-empty`);return e.trim()}function u(e,r,t={}){let n=Date.parse(t.createdAt??new Date().toISOString());if(!Number.isFinite(n))throw new TypeError("Relationship graph createdAt must be a valid timestamp");let i=e.nodes(),s=e.edges(),a=r.list();return Object.freeze({version:k,fingerprint:Te("sha256").update(w({nodes:i,edges:s,kinds:a})).digest("hex"),created_at:new Date(n).toISOString(),nodes:i,edges:s,kinds:a})}function Ce(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function y(e){if(!Ce(e))throw new TypeError("Relationship graph snapshot must be an object");if(e.version!==k)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 r=new R([]);for(let i of e.kinds)r.register(i);let t=new f(e.nodes,e.edges,r),n=u(t,r,{createdAt:e.created_at});if(n.fingerprint!==e.fingerprint)throw new TypeError("Relationship graph snapshot fingerprint mismatch");return{snapshot:n,registry:r,graph:t}}async function c(e,r){l(e.name,"adapter name");let t=l(r.workspace,"workspace");g(r.signal);let n=await e.read({...r,workspace:t});return g(r.signal),n===null?null:y(n)}async function b(e,r){let t=l(r.workspace,"workspace"),n=y(r.snapshot).snapshot,i=await c(e,{workspace:t,signal:r.signal});if(i?.snapshot.fingerprint===n.fingerprint)return{adapter:e.name,workspace:t,disposition:"current",fingerprint:n.fingerprint,previous_fingerprint:i.snapshot.fingerprint,node_count:n.nodes.length,edge_count:n.edges.length};if(g(r.signal),await e.replace({workspace:t,signal:r.signal,snapshot:n,expected_fingerprint:i?.snapshot.fingerprint??null}),(await c(e,{workspace:t,signal:r.signal}))?.snapshot.fingerprint!==n.fingerprint)throw new Error(`Relationship graph adapter "${e.name}" did not expose the replaced snapshot`);return{adapter:e.name,workspace:t,disposition:"written",fingerprint:n.fingerprint,...i?{previous_fingerprint:i.snapshot.fingerprint}:{},node_count:n.nodes.length,edge_count:n.edges.length}}function xe(e,r={}){let t=e.map(y),n=new Map;for(let a of t)for(let o of a.snapshot.kinds){let d=n.get(o.kind);if(d&&w(d)!==w(o))throw new TypeError(`Conflicting federated relationship kind: ${o.kind}`);n.set(o.kind,o)}let i=new R([...n.values()].sort((a,o)=>a.kind.localeCompare(o.kind))),s=new f(new Set(t.flatMap(a=>[...a.snapshot.nodes])),t.flatMap(a=>[...a.snapshot.edges]),i);return u(s,i,r)}var m=class{name;#e=new Map;constructor(r="memory"){this.name=l(r,"adapter name")}async read(r){g(r.signal);let t=this.#e.get(l(r.workspace,"workspace"));return t?structuredClone(t):null}async replace(r){g(r.signal);let t=l(r.workspace,"workspace"),n=this.#e.get(t);if(r.expected_fingerprint!==void 0&&(n?.fingerprint??null)!==r.expected_fingerprint)throw new Error(`Relationship graph adapter conflict for ${t}`);this.#e.set(t,structuredClone(y(r.snapshot).snapshot))}async clear(r){g(r.signal);let t=l(r.workspace,"workspace"),n=this.#e.get(t);if(r.expected_fingerprint!==void 0&&(n?.fingerprint??null)!==r.expected_fingerprint)throw new Error(`Relationship graph adapter conflict for ${t}`);this.#e.delete(t)}};(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]="e47f9bb8-f98e-5159-9116-29c3e6fedfc3")}catch{}})();function E(e,r){if(!Number.isInteger(e)||e<1)throw new TypeError(`Relationship graph ${r} must be a positive integer`);return e}function Oe(e){let r=E(e.nodeCount,"nodeCount"),t=E(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(),s=(e.idPrefix??"node").trim();if(!i||!s)throw new TypeError("Relationship graph kind and idPrefix must be non-empty");let a=n==="disconnected"?0:Math.floor((r-1)/t);return{node_count:r,edge_count:a,edge_basis:"fixture_generated",nodes:{*[Symbol.iterator](){for(let o=0;o<r;o+=1)yield`${s}-${o}`}},edges:{*[Symbol.iterator](){if(n!=="disconnected")for(let o=t;o<r;o+=t)yield{source:`${s}-${n==="star"?0:o-t}`,target:`${s}-${o}`,kind:i}}}}}function h(e,r){if(!e)throw new Error(`Relationship graph adapter conformance: ${r}`)}async function I(e,r={}){let t=r.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"}),s=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"}),a=[];h(await c(e,{workspace:t})===null,"workspace must start empty"),a.push({name:"empty-read",passed:!0});let o=await b(e,{workspace:t,snapshot:i});h(o.disposition==="written","first sync must write"),a.push({name:"atomic-replace",passed:!0}),(await e.read({workspace:t})).nodes.push("mutated-reader-copy"),h((await c(e,{workspace:t}))?.snapshot.nodes.length===2,"reads must not mutate stored state"),a.push({name:"read-isolation",passed:!0}),h((await b(e,{workspace:t,snapshot:i})).disposition==="current","identical sync must be idempotent"),a.push({name:"idempotent-sync",passed:!0}),await e.replace({workspace:t,snapshot:s,expected_fingerprint:i.fingerprint}),h((await c(e,{workspace:t}))?.snapshot.fingerprint===s.fingerprint,"replacement must become visible"),a.push({name:"replacement-visibility",passed:!0});let d=!1;try{await e.replace({workspace:t,snapshot:i,expected_fingerprint:i.fingerprint})}catch{d=!0}return h(d,"stale compare-and-swap must fail"),a.push({name:"stale-cas",passed:!0}),e.clear&&(await e.clear({workspace:t,expected_fingerprint:s.fingerprint}),h(await c(e,{workspace:t})===null,"clear must remove the workspace"),a.push({name:"clear",passed:!0})),{adapter:e.name,workspace:t,cases:Object.freeze(a),clear_supported:e.clear!==void 0}}function $e(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:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="58736688-35d0-545d-892e-e0ede7fedc1a")}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:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="7163a078-d8be-5bca-813f-c941fcb8e406")}catch{}})();function T(e,r){if(typeof e!="string"||e.trim().length===0)throw new TypeError(`Relationship backfill ${r} must be non-empty`);return e.trim()}function xr(e,r){let t=T(r.migrationId,"migrationId"),n=T(r.author,"author"),i=Date.parse(r.timestamp);if(!Number.isFinite(i))throw new TypeError("Relationship backfill timestamp must be valid");let s=new Date(i).toISOString(),a=_(e,void 0,r.registry),o=a.graph.nodes(),d=a.graph.edges().map(p=>{let G=D("sha256").update(JSON.stringify([t,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:${t}:${G}`,relationshipId:`migration:${t}:${G}`,action:"add",edge:p,author:n,timestamp:s,reason:`Backfill ${t} from legacy item metadata`})}),C=D("sha256").update(JSON.stringify({migrationId:t,nodes:o,events:d})).digest("hex"),x=new Set([...r.existingEventIds??[]].filter(p=>typeof p=="string").map(p=>p.trim()).filter(Boolean)),A=d.filter(p=>!x.has(p.eventId));return Object.freeze({migration_id:t,fingerprint:C,nodes:o,events:Object.freeze(A),edge_count:d.length,skipped_existing_count:d.length-A.length,duplicate_dependency_rows:a.duplicateRows.length,dangling_reference_count:a.dangling.active.length+a.dangling.legacy_terminal.length})}(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]="3160880c-9d85-52c5-ae1d-ada213f56ce6")}catch{}})();export{je as ACTIONABILITY_ORDERING_KINDS,He as BUILTIN_RELATIONSHIP_KINDS,tr as DEFAULT_RELATIONSHIP_CONTEXT_TOKEN_BUDGET,ge as GRAPH_DURABLE_CACHE_MIN_ITEMS,fe as GRAPH_DURABLE_CACHE_VERSION,ze as GRAPH_QUERY_DEFAULTS,O as GRAPH_SUBCOMMAND_VALUES,m as MemoryRelationshipGraphAdapter,k as RELATIONSHIP_GRAPH_SNAPSHOT_VERSION,Ze as RelationshipEventLog,Qe as RelationshipEventStore,f as RelationshipGraph,R as RelationshipKindRegistry,L as WorkspaceGraphCache,Ye as analyzeGraphImpact,v as analyzeHierarchyIntegrity,er as analyzeKnowledgeGraph,Xe as analyzeRelationshipExecution,ae as analyzeRelationshipSchedule,_ as assembleWorkspaceRelationshipGraph,P as assertHierarchyMutationAllowed,$e as assertMemoryRelationshipGraphAdapterConformance,De as assertNonHierarchyCardinalityMutationAllowed,Pe as assertRelationshipEdgeAllowed,I as assertRelationshipGraphAdapterConformance,le as auditWorkspaceRelationshipGraph,nr as buildRelationshipContext,ve as canonicalizeRelationshipKind,be as clearDurableGraphCache,Fe as collectBlockedByIds,Le as collectBlockedByIdsFromCorpus,j as collectDanglingDependencyReferences,Ke as collectDependencyBlockedIds,z as collectDuplicateDependencyRows,ce as collectDuplicateRelationshipEdgeGroups,H as collectHierarchyRelations,F as collectMissingDependencyTargetIds,Ie as collectNewOrderingCycleWarnings,se as collectOrderingCycles,W as collectOrderingStorageContradictions,rr as compareRelationshipSnapshots,Je as computeActionabilityReport,ne as computeRelationshipCentrality,te as computeRelationshipDominators,U as computeWorkspaceGraphFingerprint,Oe as createRelationshipGraphScaleFixture,u as createRelationshipGraphSnapshot,S as createRelationshipKindRegistry,Be as dependencyToRelationship,oe as deriveRelationshipDeadlines,ee as detectRelationshipCommunities,he as diffRelationshipAuditSnapshots,ue as durableGraphCachePath,Re as durableGraphCacheStatus,X as enumerateRelationshipPaths,xe as federateRelationshipGraphSnapshots,re as findRedundantRelationshipEdges,ie as findRelationshipCutStructure,Y as forEachMatchedRelationshipEdge,de as formatDuplicateEdgeGroup,M as formatHierarchyRelation,pe as formatOrderingStorageContradiction,me as graphAuditBaselinePath,q as hierarchyAncestors,J as hierarchyDescendants,Ue as indexBlockedByIds,N as indexHierarchyRelations,Ne as isOrderingRelationshipKind,ke as loadGraphAuditBaseline,c as loadRelationshipGraphAdapter,B as normalizeDependencyGraphTarget,ye as openDurableGraphCache,Z as orderingPredecessors,Q as orderingSuccessors,Se as parseGraphSubcommand,y as parseRelationshipGraphSnapshot,we as persistDurableGraphResult,xr as planRelationshipEventBackfill,Ge as planRelationshipRemediation,K as resetWorkspaceGraphCache,Me as resolveCanonicalRelationshipKind,Ve as resolveItemBlockers,We as resolveItemExecutionRole,$ as resolveWorkspaceRelationshipKindRegistry,Ee as runGraph,Ae as saveGraphAuditBaseline,qe as selectActionableEntries,_e as shouldPersistDurableGraphCache,b as syncRelationshipGraphAdapter,V as workspaceGraphCache};
|
|
2
2
|
//# sourceMappingURL=sdk-graph.js.map
|