@unbrained/pm-cli 2026.10.12 → 2026.10.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +1 -1
- package/CHANGELOG.md +27 -0
- package/dist/cli/after-command-context-usage.d.ts +8 -8
- package/dist/cli/bundle-integrity.d.ts +23 -23
- package/dist/cli/commander-usage.d.ts +26 -26
- package/dist/cli/commander-usage.js +2 -2
- package/dist/cli/error-guidance.d.ts +158 -163
- package/dist/cli/error-guidance.js +2 -2
- package/dist/cli/extension-command-help.d.ts +68 -68
- package/dist/cli/extension-command-options.d.ts +20 -20
- package/dist/cli/extension-recovery.d.ts +20 -20
- package/dist/cli/help-content.d.ts +16 -16
- package/dist/cli/help-content.js +2 -2
- package/dist/cli/help-json-payload.d.ts +40 -40
- package/dist/cli/invocation-profile.d.ts +8 -8
- package/dist/cli/main.d.ts +165 -165
- package/dist/cli/main.js +1 -1
- package/dist/cli/migration-gates.d.ts +20 -20
- package/dist/cli/register-list-query.d.ts +4 -4
- package/dist/cli/register-mutation-options.d.ts +2 -2
- package/dist/cli/register-operations.d.ts +66 -66
- package/dist/cli/register-setup.d.ts +1 -1
- package/dist/cli/register-structured-mutation.d.ts +3 -3
- package/dist/cli/register-structured-mutation.js +1 -1
- package/dist/cli/runtime/activation.d.ts +3 -3
- package/dist/cli/runtime/invocation-options.js +1 -1
- package/dist/cli/runtime/selection.d.ts +6 -6
- package/dist/cli/runtime-compatibility-boundary.d.ts +12 -12
- package/dist/cli-bundle/bundle-manifest.json +1 -1
- package/dist/cli-bundle/chunks/{chunk-MHPU2LDF.js → chunk-AM2XOZKE.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-UABZJXIS.js → chunk-APWPC4ZZ.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-DJDRHJBP.js +234 -0
- package/dist/cli-bundle/chunks/{chunk-B465HPS5.js → chunk-DUK5DHI6.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-HXHFKXLV.js +2 -0
- package/dist/cli-bundle/chunks/chunk-IFPJDJUM.js +20 -0
- package/dist/cli-bundle/chunks/{chunk-QM3M7GB5.js → chunk-LBDWFWPK.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-X2I2EEAS.js → chunk-N5EXRYCZ.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-PSNS537F.js +30 -0
- package/dist/cli-bundle/chunks/{chunk-3LQTJN4J.js → chunk-RL45OYTL.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-DT3KUUKY.js → chunk-UBTYYZIE.js} +49 -49
- package/dist/cli-bundle/chunks/chunk-WYZGZV2M.js +2 -0
- package/dist/cli-bundle/chunks/{chunk-GUVKPOY6.js → chunk-YH6H3UVE.js} +10 -10
- package/dist/cli-bundle/chunks/{register-list-query-OR33UEML.js → register-list-query-BJ742QOR.js} +2 -2
- package/dist/cli-bundle/chunks/{register-mutation-R34EJ3NH.js → register-mutation-GGGBRIH2.js} +3 -3
- package/dist/cli-bundle/chunks/{register-operations-UHSMEHSF.js → register-operations-E6HXYHNM.js} +2 -2
- package/dist/cli-bundle/chunks/{register-setup-5E3PT22L.js → register-setup-4ZVTVEPY.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-TS46OZD5.js → chunk-3LQEBXU5.js} +12 -12
- package/dist/cli-bundle/focused-chunks/{chunk-AJG3DBXR.js → chunk-6BTUISKV.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-73UNAJHD.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-RNAWRTQV.js → chunk-DVK7VKZL.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-7QIZB2F2.js → chunk-F5J3ATMV.js} +14 -14
- package/dist/cli-bundle/focused-chunks/chunk-IIKFTJVC.js +2 -0
- package/dist/cli-bundle/focused-chunks/chunk-IOTNG6CN.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-Z4T3637Y.js → chunk-KGFRQ34R.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-NNW5BS5L.js +3 -0
- package/dist/cli-bundle/focused-chunks/{chunk-VBTLX5SN.js → chunk-QMNAY25P.js} +62 -62
- package/dist/cli-bundle/focused-chunks/{chunk-CYEZLKLL.js → chunk-R23T7GFZ.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-RAA7SVRA.js +8 -0
- package/dist/cli-bundle/focused-chunks/{chunk-SV6YYZLR.js → chunk-RU6GCFN3.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-YCOJLIDI.js → chunk-S6ITXQ5T.js} +4 -4
- package/dist/cli-bundle/focused-chunks/{chunk-OGOLIS5R.js → chunk-SOB7X4FJ.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-UPJA45K7.js +26 -0
- package/dist/cli-bundle/main.js +20 -20
- package/dist/cli-bundle/sdk-authoring.js +1 -1
- package/dist/cli-bundle/sdk-contracts.js +2 -2
- package/dist/cli-bundle/sdk-core.js +23 -23
- 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 +51 -51
- 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 +8 -8
- package/dist/cli.d.ts +4 -4
- package/dist/core/checkpoint/checkpoint-gc.d.ts +32 -32
- package/dist/core/checkpoint/mutation-checkpoint.d.ts +34 -34
- package/dist/core/config/nested-settings.d.ts +26 -26
- package/dist/core/config/positional-value.d.ts +16 -16
- package/dist/core/diagnostics/remediation.d.ts +6 -6
- package/dist/core/diagnostics/remediation.js +1 -1
- package/dist/core/extensions/activation-summary-markdown.d.ts +6 -6
- package/dist/core/extensions/activation-summary.d.ts +54 -54
- package/dist/core/extensions/activation-transaction.d.ts +7 -7
- package/dist/core/extensions/capability-usage.d.ts +26 -26
- package/dist/core/extensions/command-hook-context.d.ts +26 -26
- package/dist/core/extensions/contribution-inventory.d.ts +21 -21
- package/dist/core/extensions/extension-candidate.d.ts +14 -14
- package/dist/core/extensions/extension-capability-aliases.d.ts +2 -2
- package/dist/core/extensions/extension-policy.d.ts +80 -80
- package/dist/core/extensions/extension-types.d.ts +1294 -1285
- package/dist/core/extensions/extension-types.js +1 -1
- package/dist/core/extensions/flag-definition-validation.d.ts +4 -4
- package/dist/core/extensions/item-fields.d.ts +3 -2
- package/dist/core/extensions/item-fields.js +1 -1
- package/dist/core/extensions/loader.d.ts +36 -36
- package/dist/core/extensions/loader.js +1 -1
- package/dist/core/extensions/manifest-schema.d.ts +16 -16
- package/dist/core/extensions/module-graph-snapshot.d.ts +8 -8
- package/dist/core/extensions/read-output-contract.d.ts +5 -0
- package/dist/core/extensions/read-output-contract.js +2 -0
- package/dist/core/extensions/registration-values.d.ts +1 -1
- package/dist/core/extensions/reserved-host-flags.d.ts +6 -6
- package/dist/core/extensions/version-compat.d.ts +10 -10
- package/dist/core/fs/fs-utils.d.ts +1 -1
- package/dist/core/fs/host-environment-errors.d.ts +14 -14
- package/dist/core/governance/content-fields.d.ts +31 -31
- package/dist/core/governance/issue-codes.d.ts +27 -27
- package/dist/core/governance/metadata-coverage.d.ts +91 -91
- package/dist/core/history/drift-scan.d.ts +26 -26
- package/dist/core/history/event-index.d.ts +41 -41
- package/dist/core/history/history-compact-bulk.d.ts +22 -22
- package/dist/core/history/history-diff.d.ts +22 -22
- package/dist/core/history/history-rewrite.d.ts +66 -66
- package/dist/core/history/history-storage-stats.d.ts +31 -31
- package/dist/core/history/history-stream-policy.d.ts +12 -12
- package/dist/core/history/history.d.ts +22 -22
- package/dist/core/history/identity.d.ts +6 -6
- package/dist/core/history/operation-contract.d.ts +9 -9
- package/dist/core/history/projection.d.ts +15 -15
- package/dist/core/history/read.d.ts +4 -4
- package/dist/core/history/replay.d.ts +51 -49
- package/dist/core/history/replay.js +1 -1
- package/dist/core/history/workspace-history.d.ts +101 -101
- package/dist/core/io/bulk-ids-input.d.ts +4 -4
- package/dist/core/item/actionability.d.ts +40 -40
- package/dist/core/item/id.d.ts +3 -3
- package/dist/core/item/item-format-version.d.ts +8 -8
- package/dist/core/item/item-format.d.ts +35 -35
- package/dist/core/item/item-type-definition.d.ts +2 -2
- package/dist/core/item/parent-reference-policy.d.ts +1 -1
- package/dist/core/item/parse.d.ts +12 -12
- package/dist/core/item/sprint-release-format.d.ts +2 -2
- package/dist/core/item/status-filter.d.ts +4 -4
- package/dist/core/item/toon-decode.d.ts +9 -9
- package/dist/core/item/type-registry.d.ts +40 -40
- package/dist/core/lock/lock-gc.d.ts +50 -50
- package/dist/core/lock/lock.d.ts +37 -37
- package/dist/core/output/mutation-projection.d.ts +6 -6
- package/dist/core/output/output-control.d.ts +4 -4
- package/dist/core/output/output.d.ts +40 -40
- package/dist/core/output/query-summary.d.ts +5 -5
- package/dist/core/packages/manifest.d.ts +50 -50
- package/dist/core/policy/workflow-policy-schema.d.ts +306 -306
- package/dist/core/policy/workflow-policy-store.d.ts +7 -7
- package/dist/core/policy/workflow-policy.d.ts +81 -81
- package/dist/core/profile/profile-describe.d.ts +40 -40
- package/dist/core/profile/profile-lint.d.ts +20 -20
- package/dist/core/profile/profile-plan.d.ts +84 -84
- package/dist/core/profile/profile-presets.d.ts +52 -52
- package/dist/core/reproducibility/context.d.ts +6 -6
- package/dist/core/schema/fields-file.d.ts +54 -54
- package/dist/core/schema/item-types-file.d.ts +36 -36
- package/dist/core/schema/runtime-field-values.d.ts +2 -2
- package/dist/core/schema/runtime-schema.d.ts +86 -86
- package/dist/core/schema/status-defs-file.d.ts +36 -36
- package/dist/core/schema/type-inference.d.ts +14 -14
- package/dist/core/schema/type-workflows.d.ts +22 -22
- package/dist/core/search/background-refresh.d.ts +9 -9
- package/dist/core/search/bm25.d.ts +19 -19
- package/dist/core/search/cache.d.ts +35 -35
- package/dist/core/search/corpus.d.ts +12 -12
- package/dist/core/search/embedding-batches.d.ts +48 -48
- package/dist/core/search/eval.d.ts +49 -49
- package/dist/core/search/http-client.d.ts +38 -38
- package/dist/core/search/providers.d.ts +41 -41
- package/dist/core/search/relevance.d.ts +20 -20
- package/dist/core/search/semantic-defaults.d.ts +8 -8
- package/dist/core/search/staleness.d.ts +4 -4
- package/dist/core/search/vector-stores.d.ts +78 -78
- package/dist/core/search/vectorization-metadata.d.ts +6 -6
- package/dist/core/sentry/helpers.d.ts +15 -15
- package/dist/core/sentry/instrument.d.ts +40 -40
- package/dist/core/session/session-state.d.ts +32 -32
- package/dist/core/shared/agent-session-context.d.ts +14 -14
- package/dist/core/shared/author.d.ts +128 -128
- package/dist/core/shared/command-types.d.ts +40 -40
- package/dist/core/shared/conflict-markers.d.ts +6 -6
- package/dist/core/shared/constants.d.ts +13 -13
- package/dist/core/shared/errors.d.ts +194 -183
- package/dist/core/shared/errors.js +1 -1
- package/dist/core/shared/secret-rules.d.ts +97 -97
- package/dist/core/shared/serial-queue.d.ts +8 -8
- package/dist/core/shared/split-comma-list.d.ts +6 -6
- package/dist/core/shared/time.d.ts +23 -23
- package/dist/core/store/item-format-migration.d.ts +10 -10
- package/dist/core/store/item-metadata-cache.d.ts +38 -38
- package/dist/core/store/item-metadata-query-index.d.ts +79 -79
- package/dist/core/store/item-metadata-read-work.d.ts +6 -6
- package/dist/core/store/item-store.d.ts +110 -110
- package/dist/core/store/paths.d.ts +2 -2
- package/dist/core/store/settings-read-cache.d.ts +12 -12
- package/dist/core/store/settings-validator.d.ts +165 -165
- package/dist/core/store/settings.d.ts +59 -59
- package/dist/core/telemetry/observability.d.ts +17 -17
- package/dist/core/telemetry/policy.d.ts +3 -3
- package/dist/core/telemetry/runtime.d.ts +241 -241
- package/dist/core/test/background-runs.d.ts +185 -185
- package/dist/core/test/item-test-run-tracking.d.ts +6 -6
- package/dist/core/test/run-selectors.d.ts +18 -18
- package/dist/core/validate/fix-planning.d.ts +50 -50
- package/dist/core/validate/missing-by-type.d.ts +4 -4
- package/dist/core/validate/missing-link-owners.d.ts +30 -30
- package/dist/core/validate/stale-file-classification.d.ts +8 -8
- package/dist/mcp/http-server.d.ts +28 -28
- package/dist/mcp/legacy-adapter.d.ts +33 -33
- package/dist/mcp/runtime-capabilities.d.ts +16 -16
- package/dist/mcp/server.d.ts +50 -50
- package/dist/mcp/tool-definitions.d.ts +36 -36
- package/dist/sdk/agent/closed-domain-contracts.d.ts +18 -18
- package/dist/sdk/agent/command-recovery.d.ts +4 -0
- package/dist/sdk/agent/command-recovery.js +1 -1
- package/dist/sdk/agent/identity-config.d.ts +32 -32
- package/dist/sdk/agent/item-addressing.d.ts +8 -8
- package/dist/sdk/agent/refusal-closure-census.d.ts +34 -34
- package/dist/sdk/agent/refusal-closure.d.ts +42 -42
- package/dist/sdk/agent/refusal-corpus-contracts.d.ts +46 -46
- package/dist/sdk/agent/refusal-reachability.d.ts +112 -112
- package/dist/sdk/agent/subcommand-recovery.d.ts +25 -25
- package/dist/sdk/agent/task-transcript-contracts.d.ts +30 -30
- package/dist/sdk/agent/tracker-preflight-contracts.d.ts +38 -38
- package/dist/sdk/agent-capability-contracts.d.ts +37 -37
- package/dist/sdk/annotations.d.ts +106 -106
- package/dist/sdk/author-attribution.d.ts +76 -76
- package/dist/sdk/authoring.d.ts +1 -1
- package/dist/sdk/authoring.js +1 -1
- package/dist/sdk/cli-bootstrap.d.ts +70 -70
- package/dist/sdk/cli-contracts/agent-output-contracts.d.ts +63 -63
- package/dist/sdk/cli-contracts/command-aliases.d.ts +14 -14
- package/dist/sdk/cli-contracts/command-exit-contracts.d.ts +70 -70
- package/dist/sdk/cli-contracts/commander-types.d.ts +17 -17
- package/dist/sdk/cli-contracts/completeness.d.ts +26 -26
- package/dist/sdk/cli-contracts/enum-contracts.d.ts +5 -5
- package/dist/sdk/cli-contracts/flag-contracts.d.ts +32 -32
- package/dist/sdk/cli-contracts/flag-contracts.js +1 -1
- package/dist/sdk/cli-contracts/flag-lexicon-contracts.d.ts +42 -42
- package/dist/sdk/cli-contracts/grammar-contracts.d.ts +84 -84
- package/dist/sdk/cli-contracts/grammar-contracts.js +1 -1
- package/dist/sdk/cli-contracts/registration-helpers.d.ts +36 -36
- package/dist/sdk/cli-contracts/runtime-contracts.d.ts +290 -294
- package/dist/sdk/cli-contracts/runtime-contracts.js +1 -1
- package/dist/sdk/cli-contracts/schemas/assurance-definition.d.ts +793 -793
- package/dist/sdk/cli-contracts/tool-option-contracts.d.ts +391 -391
- package/dist/sdk/cli-contracts/tool-parameter-tables.d.ts +6 -6
- package/dist/sdk/cli-contracts/tool-schema.d.ts +54 -54
- package/dist/sdk/cli-contracts/tool-schema.js +1 -1
- package/dist/sdk/cli-contracts/typed-action-inputs.d.ts +24 -24
- package/dist/sdk/comments.d.ts +44 -44
- package/dist/sdk/compile-cache.d.ts +4 -4
- package/dist/sdk/completion/shared.d.ts +22 -22
- package/dist/sdk/compose.d.ts +156 -156
- package/dist/sdk/config.d.ts +123 -123
- package/dist/sdk/context/semantic-session-attribution.d.ts +14 -14
- package/dist/sdk/context/usage-ledger.d.ts +20 -20
- package/dist/sdk/context-intent-contracts.d.ts +50 -50
- package/dist/sdk/context-intent-contracts.js +1 -1
- package/dist/sdk/context-intent-runtime.d.ts +8 -8
- package/dist/sdk/context-packing.d.ts +78 -78
- package/dist/sdk/context-relevance.d.ts +189 -180
- package/dist/sdk/context-relevance.js +1 -1
- package/dist/sdk/context-signal-store.d.ts +84 -84
- package/dist/sdk/context-usage.d.ts +92 -92
- package/dist/sdk/corpus-shape.d.ts +101 -101
- package/dist/sdk/define.d.ts +2 -2
- package/dist/sdk/dependencies.d.ts +116 -116
- package/dist/sdk/dependency-flag-validation.d.ts +14 -12
- package/dist/sdk/dependency-flag-validation.js +1 -1
- package/dist/sdk/dependency-provenance.d.ts +30 -30
- package/dist/sdk/docs.d.ts +32 -32
- package/dist/sdk/duplicates.d.ts +21 -21
- package/dist/sdk/environment/agent-environment.d.ts +196 -196
- package/dist/sdk/environment/project-runtime-compatibility.d.ts +56 -56
- package/dist/sdk/environment/source-context.d.ts +6 -6
- package/dist/sdk/error-code-catalog.d.ts +40 -40
- package/dist/sdk/errors.d.ts +29 -29
- package/dist/sdk/eval.d.ts +45 -45
- package/dist/sdk/extension/author-manifest.d.ts +14 -14
- package/dist/sdk/extension/bundled-catalog.d.ts +7 -7
- package/dist/sdk/extension/describe.d.ts +36 -36
- package/dist/sdk/extension/doctor.d.ts +29 -29
- package/dist/sdk/extension/install-plan.d.ts +55 -55
- package/dist/sdk/extension/install-receipts.d.ts +2 -2
- package/dist/sdk/extension/install-runtime.d.ts +8 -8
- package/dist/sdk/extension/install-snapshot.d.ts +14 -14
- package/dist/sdk/extension/install-sources.d.ts +96 -96
- package/dist/sdk/extension/managed-state.d.ts +66 -66
- package/dist/sdk/extension/migrations.d.ts +82 -82
- package/dist/sdk/extension/output-ownership.d.ts +24 -24
- package/dist/sdk/extension/runtime-summary.d.ts +5 -5
- package/dist/sdk/extension/scaffold.d.ts +12 -12
- package/dist/sdk/extension/shared.d.ts +15 -15
- package/dist/sdk/extension/source-resolution.d.ts +30 -30
- package/dist/sdk/extension/static-inventory.d.ts +42 -42
- package/dist/sdk/extension/update-check.d.ts +10 -10
- package/dist/sdk/extension.d.ts +320 -320
- package/dist/sdk/files.d.ts +157 -157
- package/dist/sdk/flag-invocation-contracts.d.ts +44 -44
- 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/governance/artifact-ledgers.d.ts +35 -35
- package/dist/sdk/governance/assurance-action.d.ts +68 -68
- package/dist/sdk/governance/assurance-action.js +1 -1
- package/dist/sdk/governance/assurance-mutation-error.d.ts +36 -36
- package/dist/sdk/governance/assurance-presets.d.ts +24 -24
- package/dist/sdk/governance/assurance-runtime.d.ts +14 -14
- package/dist/sdk/governance/assurance.d.ts +353 -353
- package/dist/sdk/governance/boundary-fixtures.d.ts +60 -60
- package/dist/sdk/governance/closure-timestamps.d.ts +9 -9
- package/dist/sdk/governance/coverage-assurance.d.ts +10 -10
- package/dist/sdk/governance/defect-recurrence-coverage.d.ts +75 -75
- package/dist/sdk/governance/defect-recurrence-graph.d.ts +18 -18
- package/dist/sdk/governance/defect-recurrence.d.ts +186 -181
- package/dist/sdk/governance/defect-recurrence.js +1 -1
- package/dist/sdk/governance/extension-host-version.d.ts +16 -16
- package/dist/sdk/governance/gc.d.ts +48 -48
- package/dist/sdk/governance/health-merge-evidence.d.ts +5 -5
- package/dist/sdk/governance/health.d.ts +188 -188
- package/dist/sdk/governance/hierarchy-validation.d.ts +13 -13
- package/dist/sdk/governance/linked-file-report.d.ts +26 -26
- package/dist/sdk/governance/merge-receipt-history.d.ts +36 -36
- package/dist/sdk/governance/provenance-health.d.ts +64 -64
- package/dist/sdk/governance/reindex.d.ts +89 -89
- package/dist/sdk/governance/reliability.d.ts +56 -56
- package/dist/sdk/governance/stale-work.d.ts +22 -22
- package/dist/sdk/governance/status-role-diagnostics.d.ts +12 -12
- package/dist/sdk/governance/storage-integrity.d.ts +54 -54
- package/dist/sdk/governance/tracked-runtime-cache.d.ts +10 -10
- package/dist/sdk/governance/upgrade.d.ts +104 -104
- package/dist/sdk/governance/validate-history-drift.d.ts +2 -2
- package/dist/sdk/governance/validate-item-reader.d.ts +6 -6
- package/dist/sdk/governance/validate.d.ts +191 -191
- package/dist/sdk/governance/workflow-completeness.d.ts +15 -15
- package/dist/sdk/governance/workflow-policy.d.ts +28 -28
- package/dist/sdk/governance/workspace-position.d.ts +46 -46
- package/dist/sdk/graph/adapter.d.ts +66 -66
- package/dist/sdk/graph/analytics.d.ts +54 -54
- package/dist/sdk/graph/assembly.d.ts +80 -80
- package/dist/sdk/graph/cache.d.ts +29 -29
- package/dist/sdk/graph/cardinality-integrity.d.ts +13 -0
- package/dist/sdk/graph/cardinality-integrity.js +2 -0
- package/dist/sdk/graph/centrality.d.ts +34 -34
- package/dist/sdk/graph/conformance.d.ts +33 -33
- package/dist/sdk/graph/deadline-scheduling.d.ts +58 -58
- package/dist/sdk/graph/durable-cache.d.ts +26 -26
- package/dist/sdk/graph/governance.d.ts +165 -165
- package/dist/sdk/graph/hierarchy-integrity.d.ts +52 -52
- package/dist/sdk/graph/index.d.ts +1 -0
- package/dist/sdk/graph/index.js +1 -1
- package/dist/sdk/graph/lifecycle-coverage.d.ts +17 -17
- package/dist/sdk/graph/mutation-advisory.d.ts +11 -11
- package/dist/sdk/graph/query-contracts.d.ts +10 -10
- package/dist/sdk/graph/remediation.d.ts +25 -25
- package/dist/sdk/graph/run.d.ts +392 -392
- package/dist/sdk/graph/scheduling.d.ts +38 -38
- package/dist/sdk/graph/traversal.d.ts +14 -14
- package/dist/sdk/guide-topics.d.ts +32 -32
- package/dist/sdk/guide.d.ts +62 -62
- package/dist/sdk/history/attestation-command.d.ts +12 -12
- package/dist/sdk/history/attestation-contract.d.ts +78 -78
- package/dist/sdk/history/attestation-scan.d.ts +6 -6
- package/dist/sdk/history/maintenance.d.ts +46 -46
- package/dist/sdk/history/salvage.d.ts +18 -18
- package/dist/sdk/history/subject.d.ts +9 -9
- package/dist/sdk/history-analytics.d.ts +84 -84
- package/dist/sdk/history-compact.d.ts +103 -103
- package/dist/sdk/history-mcp.d.ts +8 -8
- package/dist/sdk/history-provenance.d.ts +59 -59
- package/dist/sdk/history-read.d.ts +36 -36
- package/dist/sdk/history-redact.d.ts +78 -78
- package/dist/sdk/history-repair.d.ts +158 -158
- package/dist/sdk/history-repair.js +1 -1
- package/dist/sdk/improvement-ledger.d.ts +102 -102
- package/dist/sdk/init-agent-guidance.d.ts +70 -70
- package/dist/sdk/init.d.ts +152 -152
- package/dist/sdk/item-children.d.ts +28 -28
- package/dist/sdk/item-schedule.d.ts +12 -12
- package/dist/sdk/item-transaction.d.ts +100 -100
- package/dist/sdk/learnings.d.ts +42 -42
- package/dist/sdk/lifecycle/append.d.ts +14 -14
- package/dist/sdk/lifecycle/claim.d.ts +60 -60
- package/dist/sdk/lifecycle/close-many.d.ts +94 -94
- package/dist/sdk/lifecycle/close.d.ts +27 -27
- package/dist/sdk/lifecycle/copy.d.ts +18 -18
- package/dist/sdk/lifecycle/core-field-recovery.d.ts +7 -0
- package/dist/sdk/lifecycle/core-field-recovery.js +2 -0
- package/dist/sdk/lifecycle/create.d.ts +82 -82
- package/dist/sdk/lifecycle/create.js +1 -1
- package/dist/sdk/lifecycle/delete.d.ts +28 -28
- package/dist/sdk/lifecycle/focus.d.ts +10 -10
- package/dist/sdk/lifecycle/hierarchy-mutation-lock.d.ts +10 -10
- package/dist/sdk/lifecycle/hierarchy-mutation-lock.js +1 -1
- package/dist/sdk/lifecycle/legacy-none-tokens.d.ts +54 -54
- package/dist/sdk/lifecycle/lifecycle-transitions.d.ts +4 -4
- package/dist/sdk/lifecycle/mcp-actions.d.ts +10 -10
- package/dist/sdk/lifecycle/mutation-command-options.d.ts +116 -116
- package/dist/sdk/lifecycle/mutation-facet-contracts.d.ts +6 -0
- package/dist/sdk/lifecycle/mutation-facet-contracts.js +2 -0
- package/dist/sdk/lifecycle/plan-mutation-receipt.d.ts +42 -42
- package/dist/sdk/lifecycle/plan.d.ts +217 -217
- package/dist/sdk/lifecycle/reopen.d.ts +29 -24
- package/dist/sdk/lifecycle/reopen.js +1 -1
- package/dist/sdk/lifecycle/repeatable-metadata-parsers.d.ts +3 -3
- package/dist/sdk/lifecycle/restore.d.ts +33 -33
- package/dist/sdk/lifecycle/shared-unset-fields.d.ts +19 -19
- package/dist/sdk/lifecycle/task-composition.d.ts +4 -4
- package/dist/sdk/lifecycle/update-many.d.ts +79 -79
- package/dist/sdk/lifecycle/update.d.ts +131 -132
- package/dist/sdk/lifecycle/update.js +2 -2
- package/dist/sdk/lifecycle-completion.d.ts +22 -22
- package/dist/sdk/lifecycle-policy.d.ts +52 -52
- package/dist/sdk/linked-artifacts.d.ts +69 -69
- package/dist/sdk/mcp/apps.d.ts +32 -32
- package/dist/sdk/mcp/authorization.d.ts +76 -76
- package/dist/sdk/mcp/discovery.d.ts +111 -111
- package/dist/sdk/mcp/interactions.d.ts +61 -61
- package/dist/sdk/mcp/protocol.d.ts +78 -78
- package/dist/sdk/mcp/skills.d.ts +88 -88
- package/dist/sdk/mcp/subscriptions.d.ts +39 -39
- package/dist/sdk/mcp/tasks.d.ts +75 -75
- package/dist/sdk/mcp/transport.d.ts +11 -11
- package/dist/sdk/merge/abandoned-receipts.d.ts +6 -6
- package/dist/sdk/merge/driver.d.ts +60 -60
- package/dist/sdk/merge/install.d.ts +64 -64
- package/dist/sdk/merge/receipt-file-boundary.d.ts +5 -5
- package/dist/sdk/merge/receipt-operation.d.ts +6 -6
- package/dist/sdk/merge/receipt-schema.d.ts +2 -2
- package/dist/sdk/merge/receipts.d.ts +156 -156
- package/dist/sdk/merge/reconcile.d.ts +36 -36
- package/dist/sdk/merge/reconcile.js +1 -1
- package/dist/sdk/merge/three-way.d.ts +77 -76
- package/dist/sdk/merge/three-way.js +1 -1
- package/dist/sdk/mutation-events.d.ts +84 -84
- package/dist/sdk/mutation-guard.d.ts +106 -106
- package/dist/sdk/notes.d.ts +52 -52
- package/dist/sdk/output/table-rows.d.ts +8 -8
- package/dist/sdk/output-contracts.d.ts +38 -38
- package/dist/sdk/output-projection.d.ts +142 -142
- package/dist/sdk/output-token-accounting.d.ts +27 -27
- package/dist/sdk/output.d.ts +28 -28
- package/dist/sdk/package-import-adapters.d.ts +54 -54
- package/dist/sdk/pagination.d.ts +29 -29
- package/dist/sdk/profile.d.ts +123 -123
- package/dist/sdk/provenance.d.ts +58 -58
- package/dist/sdk/public-surface.json +1 -1
- package/dist/sdk/query/activity.d.ts +118 -118
- package/dist/sdk/query/aggregate.d.ts +140 -140
- package/dist/sdk/query/calendar.d.ts +144 -144
- package/dist/sdk/query/complete-list.d.ts +53 -53
- package/dist/sdk/query/context.d.ts +395 -395
- package/dist/sdk/query/duplicate-candidates.d.ts +1 -1
- package/dist/sdk/query/get.d.ts +77 -77
- package/dist/sdk/query/history.d.ts +72 -72
- package/dist/sdk/query/item-filter-options.d.ts +79 -79
- package/dist/sdk/query/list-filter-shared.d.ts +1 -1
- package/dist/sdk/query/list.d.ts +188 -188
- package/dist/sdk/query/multi-value-filters.d.ts +4 -4
- package/dist/sdk/query/next-ready-budget.d.ts +14 -14
- package/dist/sdk/query/next.d.ts +137 -137
- package/dist/sdk/query/projection-contracts.d.ts +8 -8
- package/dist/sdk/query/search/corpus.d.ts +8 -8
- package/dist/sdk/query/search/filters.d.ts +5 -5
- package/dist/sdk/query/search/input.d.ts +4 -4
- package/dist/sdk/query/search/response.d.ts +8 -8
- package/dist/sdk/query/search/semantic.d.ts +106 -106
- package/dist/sdk/query/search/types.d.ts +85 -85
- package/dist/sdk/query/search-contracts.d.ts +65 -65
- package/dist/sdk/query/search-pagination.d.ts +19 -19
- package/dist/sdk/query/search-rendering.d.ts +25 -25
- package/dist/sdk/query/search.d.ts +46 -46
- package/dist/sdk/read-output/continuation.d.ts +8 -8
- package/dist/sdk/read-output/continuation.js +1 -1
- package/dist/sdk/read-output/extension.d.ts +7 -0
- package/dist/sdk/read-output/extension.js +2 -0
- package/dist/sdk/read-output/options.d.ts +6 -4
- package/dist/sdk/read-output/options.js +1 -1
- package/dist/sdk/read-output/provenance.d.ts +8 -8
- package/dist/sdk/read-output-budget.d.ts +10 -10
- package/dist/sdk/read-output-contracts.d.ts +192 -186
- package/dist/sdk/read-output-contracts.js +1 -1
- package/dist/sdk/read-output-rows.d.ts +6 -6
- package/dist/sdk/read-output-session.d.ts +50 -50
- package/dist/sdk/relationship-analytics.d.ts +78 -78
- package/dist/sdk/relationship-context.d.ts +81 -81
- package/dist/sdk/relationship-history.d.ts +109 -109
- package/dist/sdk/relationship-kinds/contract.d.ts +34 -34
- package/dist/sdk/relationship-migration.d.ts +26 -26
- package/dist/sdk/relationships.d.ts +78 -78
- package/dist/sdk/reproducibility/process.d.ts +3 -3
- package/dist/sdk/runtime/context.d.ts +11 -11
- package/dist/sdk/runtime-action-aliases.d.ts +2 -2
- package/dist/sdk/runtime-extended-actions.d.ts +8 -8
- package/dist/sdk/runtime-input.d.ts +3 -3
- package/dist/sdk/runtime-public-contracts.d.ts +78 -78
- package/dist/sdk/runtime.d.ts +305 -305
- package/dist/sdk/runtime.js +1 -1
- package/dist/sdk/scheduling-shortcuts.d.ts +32 -32
- package/dist/sdk/schema-migration.d.ts +86 -86
- package/dist/sdk/schema.d.ts +355 -355
- package/dist/sdk/similarity-scoring.d.ts +10 -10
- package/dist/sdk/similarity.d.ts +113 -113
- package/dist/sdk/stats.d.ts +108 -108
- package/dist/sdk/structured-mutations.d.ts +16 -16
- package/dist/sdk/structured-mutations.js +1 -1
- package/dist/sdk/telemetry.d.ts +53 -53
- package/dist/sdk/templates.d.ts +39 -39
- package/dist/sdk/test/batch.d.ts +85 -85
- package/dist/sdk/test/execution-receipts.d.ts +3 -3
- package/dist/sdk/test/execution.d.ts +277 -277
- package/dist/sdk/test/execution.js +2 -2
- package/dist/sdk/test/json-path.d.ts +2 -2
- package/dist/sdk/test/linked-command-detection.d.ts +10 -10
- package/dist/sdk/test/measurements.d.ts +11 -11
- package/dist/sdk/test/parsers.d.ts +1 -1
- package/dist/sdk/test/parsers.js +1 -1
- package/dist/sdk/test/runs.d.ts +52 -52
- package/dist/sdk/test/trust.d.ts +12 -12
- package/dist/sdk/test/update.d.ts +31 -31
- package/dist/sdk/testing.d.ts +319 -319
- package/dist/sdk/traceability/source-traceability.d.ts +65 -65
- package/dist/sdk/workspace-contracts.d.ts +37 -37
- package/dist/sdk/workspace-memory.d.ts +60 -60
- package/dist/sdk/workspace-recipe.d.ts +9 -9
- package/dist/sdk/workspace-snapshot.d.ts +97 -97
- package/dist/sdk/workspace-transaction-gc.d.ts +32 -32
- package/dist/sdk/workspace-transaction.d.ts +47 -47
- package/dist/sdk/workspace.d.ts +6 -6
- package/dist/types.d.ts +978 -978
- package/dist/types.js +1 -1
- package/docs/BUILD_AND_RELEASE_ACCEPTANCE.md +5 -2
- package/docs/DEFECT_RECURRENCE.md +12 -0
- package/docs/EXTENSIONS.md +2 -2
- package/docs/MERGE_SAFETY.md +27 -1
- package/docs/RECURRENCE_RECOVERY_CONTRACTS.md +17 -4
- package/docs/RELATIONSHIP_GRAPH.md +26 -0
- package/docs/RELEASING.md +6 -0
- package/docs/SDK.md +43 -18
- package/docs/SDK_CONSUMER_RECEIPTS.md +67 -0
- package/docs/generated/REFUSAL_CLOSURE_CENSUS.md +6 -3
- package/marketplace.json +1 -1
- package/node_modules/@opentelemetry/core/build/esm/version.d.ts +1 -1
- package/node_modules/@opentelemetry/core/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/core/build/esnext/version.d.ts +1 -1
- package/node_modules/@opentelemetry/core/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/core/build/src/version.d.ts +1 -1
- package/node_modules/@opentelemetry/core/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/core/package.json +2 -2
- package/node_modules/@opentelemetry/resources/build/esm/version.d.ts +1 -1
- package/node_modules/@opentelemetry/resources/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/resources/build/esnext/version.d.ts +1 -1
- package/node_modules/@opentelemetry/resources/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/resources/build/src/version.d.ts +1 -1
- package/node_modules/@opentelemetry/resources/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/resources/package.json +3 -3
- package/node_modules/@opentelemetry/sdk-trace/build/esm/StackContextManager.d.ts +57 -0
- package/node_modules/@opentelemetry/sdk-trace/build/esm/StackContextManager.js +105 -0
- package/node_modules/@opentelemetry/sdk-trace/build/esm/index.d.ts +1 -0
- package/node_modules/@opentelemetry/sdk-trace/build/esm/index.js +1 -0
- package/node_modules/@opentelemetry/sdk-trace/build/esm/version.d.ts +1 -1
- package/node_modules/@opentelemetry/sdk-trace/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace/build/esnext/StackContextManager.d.ts +57 -0
- package/node_modules/@opentelemetry/sdk-trace/build/esnext/StackContextManager.js +105 -0
- package/node_modules/@opentelemetry/sdk-trace/build/esnext/index.d.ts +1 -0
- package/node_modules/@opentelemetry/sdk-trace/build/esnext/index.js +1 -0
- package/node_modules/@opentelemetry/sdk-trace/build/esnext/version.d.ts +1 -1
- package/node_modules/@opentelemetry/sdk-trace/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace/build/src/StackContextManager.d.ts +57 -0
- package/node_modules/@opentelemetry/sdk-trace/build/src/StackContextManager.js +109 -0
- package/node_modules/@opentelemetry/sdk-trace/build/src/index.d.ts +1 -0
- package/node_modules/@opentelemetry/sdk-trace/build/src/index.js +3 -1
- package/node_modules/@opentelemetry/sdk-trace/build/src/version.d.ts +1 -1
- package/node_modules/@opentelemetry/sdk-trace/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace/package.json +5 -5
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/version.d.ts +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/version.d.ts +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/version.d.ts +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace-base/package.json +7 -7
- package/node_modules/@sentry/core/build/cjs/browser.js +3 -0
- package/node_modules/@sentry/core/build/cjs/fetch.js +10 -9
- package/node_modules/@sentry/core/build/cjs/index.js +3 -0
- package/node_modules/@sentry/core/build/cjs/integrations/http/add-outgoing-request-breadcrumb.js +2 -1
- package/node_modules/@sentry/core/build/cjs/integrations/http/get-outgoing-span-data.js +3 -2
- package/node_modules/@sentry/core/build/cjs/integrations/http/server-subscription.js +7 -3
- package/node_modules/@sentry/core/build/cjs/integrations/requestdata.js +23 -9
- package/node_modules/@sentry/core/build/cjs/server.js +3 -0
- package/node_modules/@sentry/core/build/cjs/utils/data-collection/filterCollectedUrl.js +24 -0
- package/node_modules/@sentry/core/build/cjs/utils/data-collection/filterKeyValueData.js +17 -23
- package/node_modules/@sentry/core/build/cjs/utils/data-collection/filterQueryParams.js +8 -15
- package/node_modules/@sentry/core/build/cjs/utils/data-collection/filterUrlQuery.js +20 -0
- package/node_modules/@sentry/core/build/cjs/utils/url.js +4 -3
- package/node_modules/@sentry/core/build/cjs/utils/version.js +1 -1
- package/node_modules/@sentry/core/build/esm/browser.js +1 -0
- package/node_modules/@sentry/core/build/esm/fetch.js +10 -9
- package/node_modules/@sentry/core/build/esm/index.js +1 -0
- package/node_modules/@sentry/core/build/esm/integrations/http/add-outgoing-request-breadcrumb.js +2 -1
- package/node_modules/@sentry/core/build/esm/integrations/http/get-outgoing-span-data.js +3 -2
- package/node_modules/@sentry/core/build/esm/integrations/http/server-subscription.js +7 -3
- package/node_modules/@sentry/core/build/esm/integrations/requestdata.js +23 -9
- package/node_modules/@sentry/core/build/esm/package.json +1 -1
- package/node_modules/@sentry/core/build/esm/server.js +1 -0
- package/node_modules/@sentry/core/build/esm/utils/data-collection/filterCollectedUrl.js +21 -0
- package/node_modules/@sentry/core/build/esm/utils/data-collection/filterKeyValueData.js +18 -25
- package/node_modules/@sentry/core/build/esm/utils/data-collection/filterQueryParams.js +9 -16
- package/node_modules/@sentry/core/build/esm/utils/data-collection/filterUrlQuery.js +18 -0
- package/node_modules/@sentry/core/build/esm/utils/url.js +4 -3
- package/node_modules/@sentry/core/build/esm/utils/version.js +1 -1
- package/node_modules/@sentry/core/build/types/shared-exports.d.ts +1 -0
- package/node_modules/@sentry/core/build/types/utils/data-collection/filterCollectedUrl.d.ts +21 -0
- package/node_modules/@sentry/core/build/types/utils/data-collection/filterKeyValueData.d.ts +1 -0
- package/node_modules/@sentry/core/build/types/utils/data-collection/filterQueryParams.d.ts +2 -3
- package/node_modules/@sentry/core/build/types/utils/data-collection/filterUrlQuery.d.ts +13 -0
- package/node_modules/@sentry/core/build/types/utils/url.d.ts +4 -1
- package/node_modules/@sentry/core/build/types-ts3.8/shared-exports.d.ts +1 -0
- package/node_modules/@sentry/core/build/types-ts3.8/utils/data-collection/filterCollectedUrl.d.ts +21 -0
- package/node_modules/@sentry/core/build/types-ts3.8/utils/data-collection/filterKeyValueData.d.ts +1 -0
- package/node_modules/@sentry/core/build/types-ts3.8/utils/data-collection/filterQueryParams.d.ts +2 -3
- package/node_modules/@sentry/core/build/types-ts3.8/utils/data-collection/filterUrlQuery.d.ts +13 -0
- package/node_modules/@sentry/core/build/types-ts3.8/utils/url.d.ts +4 -1
- package/node_modules/@sentry/core/package.json +3 -2
- package/node_modules/@sentry/node/build/cjs/integrations/tracing/vercelai/instrumentation.js +3 -0
- package/node_modules/@sentry/node/build/esm/integrations/tracing/vercelai/instrumentation.js +3 -0
- package/node_modules/@sentry/node/build/esm/package.json +1 -1
- package/node_modules/@sentry/node/package.json +7 -6
- package/node_modules/@sentry/node-core/build/cjs/integrations/anr/index.js +1 -1
- package/node_modules/@sentry/node-core/build/cjs/integrations/http/httpServerSpansIntegration.js +6 -3
- package/node_modules/@sentry/node-core/build/cjs/integrations/local-variables/local-variables-async.js +1 -1
- package/node_modules/@sentry/node-core/build/cjs/integrations/node-fetch/undici-instrumentation.js +2 -2
- package/node_modules/@sentry/node-core/build/cjs/light/client.js +7 -0
- package/node_modules/@sentry/node-core/build/cjs/sdk/client.js +7 -0
- package/node_modules/@sentry/node-core/build/cjs/utils/outgoingFetchRequest.js +1 -1
- package/node_modules/@sentry/node-core/build/esm/integrations/anr/index.js +1 -1
- package/node_modules/@sentry/node-core/build/esm/integrations/anr/worker-script.js +2 -2
- package/node_modules/@sentry/node-core/build/esm/integrations/http/httpServerSpansIntegration.js +7 -4
- package/node_modules/@sentry/node-core/build/esm/integrations/local-variables/local-variables-async.js +1 -1
- package/node_modules/@sentry/node-core/build/esm/integrations/local-variables/worker-script.js +1 -1
- package/node_modules/@sentry/node-core/build/esm/integrations/node-fetch/undici-instrumentation.js +3 -3
- package/node_modules/@sentry/node-core/build/esm/light/client.js +8 -1
- package/node_modules/@sentry/node-core/build/esm/package.json +1 -1
- package/node_modules/@sentry/node-core/build/esm/sdk/client.js +8 -1
- package/node_modules/@sentry/node-core/build/esm/utils/outgoingFetchRequest.js +2 -2
- package/node_modules/@sentry/node-core/build/types/light/client.d.ts +1 -0
- package/node_modules/@sentry/node-core/build/types/sdk/client.d.ts +1 -0
- package/node_modules/@sentry/node-core/build/types-ts3.8/light/client.d.ts +1 -0
- package/node_modules/@sentry/node-core/build/types-ts3.8/sdk/client.d.ts +1 -0
- package/node_modules/@sentry/node-core/package.json +5 -4
- package/node_modules/@sentry/opentelemetry/build/cjs/{asyncContextStrategy-BJ5buq_A.js → asyncContextStrategy-BR-l9zjD.js} +8 -6
- package/node_modules/@sentry/opentelemetry/build/cjs/index.browser.js +1 -1
- package/node_modules/@sentry/opentelemetry/build/cjs/index.js +1 -1
- package/node_modules/@sentry/opentelemetry/build/esm/{asyncContextStrategy-Bx5F5tCX.js → asyncContextStrategy-BQfM_LMv.js} +9 -7
- package/node_modules/@sentry/opentelemetry/build/esm/index.browser.js +1 -1
- package/node_modules/@sentry/opentelemetry/build/esm/index.js +2 -2
- package/node_modules/@sentry/opentelemetry/build/esm/package.json +1 -1
- package/node_modules/@sentry/opentelemetry/package.json +4 -3
- package/node_modules/@sentry/server-utils/build/cjs/tracing-channel.js +1 -0
- package/node_modules/@sentry/server-utils/build/esm/package.json +1 -1
- package/node_modules/@sentry/server-utils/build/esm/tracing-channel.js +1 -0
- package/node_modules/@sentry/server-utils/build/types/tracing-channel.d.ts +3 -1
- package/node_modules/@sentry/server-utils/build/types-ts3.8/tracing-channel.d.ts +3 -1
- package/node_modules/@sentry/server-utils/package.json +4 -3
- package/node_modules/cjs-module-lexer/README.md +8 -3
- package/node_modules/cjs-module-lexer/dist/lexer.js +1 -1
- package/node_modules/cjs-module-lexer/dist/lexer.mjs +2 -2
- package/node_modules/cjs-module-lexer/lexer.js +48 -9
- package/node_modules/cjs-module-lexer/package.json +3 -2
- package/node_modules/es-module-lexer/dist/lexer.asm.js +2 -2
- package/node_modules/es-module-lexer/dist/lexer.cjs +1 -1
- package/node_modules/es-module-lexer/dist/lexer.js +2 -2
- package/node_modules/es-module-lexer/dist/lexer.minimal.asm.js +2 -2
- package/node_modules/es-module-lexer/dist/lexer.minimal.cjs +1 -1
- package/node_modules/es-module-lexer/dist/lexer.minimal.js +2 -2
- package/node_modules/es-module-lexer/package.json +1 -1
- package/node_modules/import-in-the-middle/CHANGELOG.md +7 -0
- package/node_modules/import-in-the-middle/lib/get-esm-exports.mjs +7 -0
- package/node_modules/import-in-the-middle/package.json +1 -1
- package/package.json +2 -2
- package/packages/pm-beads/extensions/beads/runtime.ts +2 -2
- package/packages/pm-beads/package.json +1 -1
- package/packages/pm-calendar/package.json +1 -1
- package/packages/pm-command-kit/package.json +1 -1
- package/packages/pm-digital-twin/package.json +1 -1
- package/packages/pm-governance-audit/package.json +1 -1
- package/packages/pm-guide-shell/package.json +1 -1
- package/packages/pm-kanban/package.json +1 -1
- package/packages/pm-lifecycle-hooks/package.json +1 -1
- package/packages/pm-linked-test-adapters/package.json +1 -1
- package/packages/pm-search-advanced/package.json +1 -1
- package/packages/pm-templates/package.json +1 -1
- package/packages/pm-todos/package.json +1 -1
- package/packages/pm-vcs/package.json +1 -1
- package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
- package/plugins/pm-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/scripts/finalize-build.mjs +37 -0
- package/dist/cli-bundle/chunks/chunk-6PZPUJW3.js +0 -234
- package/dist/cli-bundle/chunks/chunk-ILQEZ4Y6.js +0 -2
- package/dist/cli-bundle/chunks/chunk-JRRXWH5B.js +0 -20
- package/dist/cli-bundle/chunks/chunk-LH5QDBMN.js +0 -2
- package/dist/cli-bundle/chunks/chunk-M5NDSW6E.js +0 -30
- package/dist/cli-bundle/focused-chunks/chunk-AXBO53EQ.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-FXRWJEQ5.js +0 -3
- package/dist/cli-bundle/focused-chunks/chunk-IKJFAU32.js +0 -8
- package/dist/cli-bundle/focused-chunks/chunk-PPH5N26M.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-RZVNGUT7.js +0 -26
- package/dist/cli-bundle/focused-chunks/chunk-YDJT33JU.js +0 -2
package/dist/cli-bundle/sdk.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{A as HP,B as KP,C as WP,D as XP,E as YP,F as JP,a as Kn,b as Jw,c as Zw,d as Qw,e as eS,f as tS,g as iA,h as sA,i as La,j as Da,k as $a,m as Fa,n as Ga,o as Ua,p as ja,q as Ba,r as qa,s as za,t as Va,u as td,v as rd,w as od,x as nd,y as id,z as VP}from"./chunks/chunk-ILQEZ4Y6.js";import{A as F0,B as G0,C as U0,D as j0,E as B0,F as q0,G as z0,H as V0,I as H0,J as K0,K as W0,L as X0,M as Y0,N as J0,O as Z0,P as Q0,Q as ek,R as tk,S as rk,T as ok,U as nk,V as ik,W as sk,X as ak,Y as dk,a as u0,b as m0,c as f0,d as _0,e as h0,f as g0,g as y0,h as b0,i as T0,j as C0,k as w0,l as S0,m as E0,n as A0,o as v0,p as O0,q as I0,r as R0,s as M0,t as P0,u as k0,v as x0,w as N0,x as L0,y as D0,z as $0}from"./chunks/chunk-B465HPS5.js";import{a as Dh}from"./chunks/chunk-X2I2EEAS.js";import{a as ZP,b as QP,c as e0,d as t0}from"./chunks/chunk-QM3M7GB5.js";import{a as r0,b as o0,c as n0,d as i0,e as s0,f as a0,g as d0,h as c0,i as l0,j as p0}from"./chunks/chunk-LH5QDBMN.js";import{$ as bm,$a as u_,$b as uh,A as nm,Aa as Nf,Ab as G_,B as im,Ba as Lf,Bb as U_,C as sm,Ca as Df,Cb as j_,D as qt,Da as $f,Db as B_,E as zt,Ea as Ff,Eb as q_,F as Vt,Fa as Gf,Fb as z_,G as Ht,Ga as Uf,Gb as V_,H as Kt,Ha as jf,Hb as H_,I as Wt,Ia as Bf,Ib as K_,J as Xt,Ja as qf,Jb as W_,K as Yt,Ka as zf,Kb as X_,L as Jt,La as Vf,Lb as Y_,M as Zt,Ma as Hf,Mb as J_,N as Qt,Na as Kf,Nb as Z_,O as am,Oa as Wf,Ob as Q_,P as dm,Pa as Xf,Pb as eh,Q as cm,Qa as Yf,Qb as th,R as lm,Ra as Jf,Rb as rh,S as pm,Sa as er,Sb as oh,T as Xe,Ta as he,Tb as nh,U as um,Ua as i_,Ub as ih,V as mm,Va as s_,Vb as sh,W as fm,Wa as a_,Wb as ah,X as _m,Xa as d_,Xb as dh,Y as hm,Ya as c_,Yb as ch,Z as gm,Za as l_,Zb as lh,_ as ym,_a as p_,_b as ph,a as Vw,aa as vP,ab as m_,ac as mh,b as Hw,ba as OP,bb as f_,bc as fh,c as Kw,ca as IP,cb as __,cc as _h,d as Ww,da as km,db as h_,dc as hh,e as Xw,ea as xm,eb as g_,ec as gh,f as Yw,fa as Nm,fb as y_,fc as yh,g as FE,ga as wf,gb as b_,gc as bh,h as GE,ha as Sf,hb as T_,hc as Th,i as Ki,ia as $P,ib as C_,ic as Ch,j as GI,ja as FP,jb as w_,jc as wh,k as UI,ka as GP,kb as S_,kc as Sh,l as jI,la as UP,lb as E_,lc as Eh,m as BI,ma as jP,mb as A_,mc as Ah,n as qI,na as BP,nb as v_,nc as vh,o as zI,oa as qP,ob as O_,oc as Oh,p as _l,pa as zP,pb as I_,pc as Ih,q as Vp,qa as Ef,qb as R_,qc as Rh,r as Hp,ra as Af,rb as M_,rc as Mh,s as Yp,sa as vf,sb as P_,sc as Ph,t as Jp,ta as Of,tb as k_,tc as kh,u as _u,ua as If,ub as x_,uc as xh,v as wu,va as Rf,vb as N_,vc as Nh,w as fM,wa as Mf,wb as L_,wc as Lh,x as We,xa as Pf,xb as D_,y as rm,ya as kf,yb as $_,z as om,za as xf,zb as F_}from"./chunks/chunk-DT3KUUKY.js";import{e as KI,f as WI,g as hl,h as gl,i as Ut}from"./chunks/chunk-MHPU2LDF.js";import{A as pP,B as uP,C as mP,D as fP,E as _P,F as hP,G as gP,H as yP,I as bP,J as TP,K as CP,L as wP,M as SP,N as EP,O as AP,P as wm,Q as Sm,R as Em,S as Am,T as vm,U as Om,V as Im,W as Rm,X as Mm,Y as Pm,a as Di,b as $i,c as Fi,d as Gi,e as JR,f as ZR,g as QR,h as eM,i as tM,j as zp,k as rM,l as oM,m as nM,n as iM,o as sM,q as Xp,r as Tm,s as nP,t as iP,u as sP,v as aP,w as dP,x as cP,y as Cm,z as lP}from"./chunks/chunk-3LQTJN4J.js";import{$ as pI,$a as vl,$b as Dp,$c as Qu,A as UO,Ab as QI,Ac as ru,Ad as rf,B as jO,Bb as eR,Bc as ou,Bd as of,C as BO,Cb as tR,Cc as nu,Cd as nf,D as qO,Db as rR,Dc as iu,Dd as sf,E as zO,Eb as oR,Ec as su,Ed as af,F as Ke,Fa as Qc,Fb as nR,Fc as au,Fd as df,G as VO,Ga as el,Gb as ER,Gc as du,Gd as cf,H as Nt,Ha as tl,Hb as AR,Hc as cu,Hd as lf,I as HO,Ia as rl,Ib as vR,Ic as lu,J as KO,Ja as ol,Jb as OR,Jc as pu,Jd as pf,K as WO,Kb as IR,Kc as uu,Kd as uf,L as XO,La as nl,Lb as RR,Lc as mu,Ld as mf,M as YO,Ma as il,Mb as MR,Md as ff,N as JO,Na as sl,Nb as DR,Nc as uM,Nd as _f,O as ZO,Oa as al,Ob as $R,Oc as mM,Od as hf,P as QO,Pa as VI,Pb as Rp,Pc as fu,Pd as gf,Q as eI,Qa as HI,Qb as Mp,Qc as Su,Qd as yf,R as tI,Ra as dl,Rb as FR,Rd as bf,S as rI,Sa as cl,Sb as GR,Sd as Tf,T as oI,Ta as ll,Tb as UR,Td as Cf,U as nI,Ua as pl,Ub as jR,Uc as Eu,Ud as Zf,V as iI,Va as ul,Vb as BR,Vd as Qf,W as sI,Wa as ml,Wb as Pp,Wc as Au,Wd as e_,X as aI,Xa as fl,Xb as kp,Xc as Xu,Xd as t_,Y as dI,Ya as Sl,Yb as xp,Yc as Yu,Yd as r_,Z as cI,Za as El,Zb as Np,Zc as Ju,Zd as o_,_ as lI,_a as Al,_b as Lp,_c as Zu,_d as n_,a as PO,aa as uI,ab as Ol,ac as $p,ad as em,b as Pt,ba as mI,bb as Il,bc as Fp,bd as tm,c as kO,ca as fI,cb as Rl,cc as Gp,cd as Lm,d as Ve,da as _I,db as Ml,dc as Up,dd as Dm,e as te,ea as hI,eb as Pl,ec as jp,ed as $m,f as _c,fa as gI,fb as kl,fc as Bp,fd as Fm,gb as xl,gc as qR,gd as Gm,hb as Nl,hc as zR,hd as Um,i as He,ib as Ll,ic as VR,id as jm,j as hc,jb as Dl,jc as HR,jd as Bm,k as gc,kb as $l,kc as KR,kd as qm,lb as Fl,lc as WR,ld as NP,m as _e,ma as Zc,mb as Gl,mc as XR,md as LP,n as yc,nb as Ul,nc as YR,nd as DP,o as bc,ob as YI,oc as qp,od as zm,p as Tc,pb as jl,pc as aM,pd as Vm,q as Cc,qb as Bl,qc as dM,qd as Hm,r as xO,rb as ql,rc as cM,rd as Km,s as NO,sb as zl,sc as lM,sd as Wm,t as LO,tb as JI,tc as pM,td as Xm,u as DO,ub as Vl,uc as Kp,ud as Ym,v as $O,vb as Hl,vc as Wp,vd as Jm,w as kt,wb as Kl,wc as Zp,wd as Zm,x as FO,xb as Wl,xc as Qp,xd as Qm,y as GO,yb as Xl,yc as eu,yd as ef,z as xt,zb as ZI,zc as tu,zd as tf}from"./chunks/chunk-M5NDSW6E.js";import{$ as Lc,$a as Vc,A as MI,B as PI,C as kI,D as vc,E as Oc,F as Ic,G as Rc,H as Mc,I as xI,J as Pc,K as kc,Ka as Dt,L as xc,La as $t,Ma as Ft,Na as Gt,Oa as Fc,Qa as Gc,Ra as Uc,Sa as jc,U as NI,V as LI,X as DI,Xa as Bc,Y as $I,Ya as qc,Z as FI,_ as Nc,_a as zc,a as zE,aa as Dc,ab as Hc,b as VE,ba as $c,bb as Kc,c as HE,ca as Lt,cb as Wc,d as Wi,e as Xi,eb as Xc,f as Yi,fb as Yc,g as Ji,gb as Jc,h as Zi,j as wc,k as Sc,m as Ec,n as Ac,o as yI,p as bI,q as TI,r as CI,s as wI,t as SI,u as EI,v as AI,w as vI,x as OI,y as II,z as RI}from"./chunks/chunk-GUVKPOY6.js";import{$ as bO,$a as Ip,$b as SM,$c as oP,Aa as tp,Ab as SR,Ac as YM,Ba as rp,Bc as JM,Ca as op,Cb as PR,Cc as ZM,Da as np,Db as kR,Dc as QM,Ea as ip,Eb as xR,Ec as jt,Fa as sp,Fb as NR,Fc as Pu,G as lO,Ga as ap,Gb as LR,Gc as ku,H as pO,Ha as dp,Hb as hu,Hc as xu,I as uO,Ia as cp,Ib as gu,Ic as Nu,J as mO,Ja as lp,Jb as yu,Jc as Lu,K as fO,Ka as pp,Kb as bu,Kc as Du,L as _O,La as up,Lb as Tu,Lc as $u,M as hO,Ma as mp,Mb as Cu,Mc as Fu,N as gO,Na as fp,Nb as vu,Nc as Gu,O as oc,Oa as _p,Ob as Ou,Oc as Uu,P as nc,Pa as hp,Pb as Iu,Pc as ju,Q as ic,Qa as gp,Qb as Ru,Qc as Bu,R as sc,Ra as yp,Rb as _M,Rc as qu,S as ac,Sa as bp,Sb as hM,Sc as zu,T as dc,Ta as Tp,Tb as gM,Tc as Vu,U as cc,Ua as Cp,Ub as yM,Uc as Hu,V as lc,Va as wp,Vb as bM,Vc as Bt,W as pc,Wa as Sp,Wb as TM,Wc as Ku,X as uc,Xa as Ep,Xb as CM,Xc as eP,Y as mc,Ya as Ap,Yc as tP,Z as ze,Za as vp,Zb as Mu,Zc as rP,_ as yO,_a as Op,_b as wM,_c as Wu,aa as TO,ac as EM,ad as RP,b as LE,ba as CO,bc as AM,bd as MP,c as DE,ca as wO,cc as vM,cd as PP,d as $E,da as SO,db as iR,dc as OM,dd as kP,e as UE,eb as sR,ec as IM,ed as xP,f as jE,fb as aR,fc as RM,g as BE,ga as EO,gb as dR,gc as MM,h as qE,ha as AO,hb as cR,hc as PM,i as Wv,ia as vO,ib as lR,ic as kM,j as Xv,ja as OO,jb as pR,jc as xM,k as Yv,ka as IO,kb as uR,kc as NM,l as Jv,la as RO,lb as mR,lc as LM,m as Zv,ma as MO,mb as fR,mc as DM,n as Qv,na as fc,nb as _R,nc as $M,o as eO,oa as yl,ob as hR,oc as FM,p as tO,pa as bl,pb as gR,pc as GM,q as rO,qa as Tl,qc as UM,r as oO,ra as Cl,rc as jM,s as nO,sa as XI,sc as BM,t as iO,tb as yR,tc as qM,u as sO,ua as wl,uc as zM,v as aO,va as Yl,vb as bR,vc as VM,w as dO,wa as Jl,wb as TR,wc as HM,x as cO,xa as Zl,xc as KM,ya as Ql,yb as CR,yc as WM,za as ep,zb as wR,zc as XM}from"./chunks/chunk-JRRXWH5B.js";import{$ as De,$a as Wo,$c as Ct,$d as _n,$e as pw,$f as cS,$g as _i,$h as YS,$i as IE,$j as Ss,$k as Sa,$l as MA,$m as lv,$n as Ad,Aa as Vo,Ac as $T,Ad as wC,Ae as Un,Af as Rw,Ag as ni,Ah as MS,Ai as mE,Aj as oA,Ak as Ys,Al as lA,Ao as Ud,Ba as Ho,Bc as FT,Bd as SC,Be as jn,Bf as Mw,Bg as ii,Bh as PS,Bi as fE,Bj as nA,Bk as Js,Bl as pA,Bn as fd,Bo as jd,Cc as GT,Cd as EC,Ce as Bn,Cf as Pw,Cg as TS,Ch as kS,Ci as _E,Cj as Qi,Ck as Zs,Cl as uA,Cn as _d,Co as Bd,Dc as UT,Dd as AC,De as qn,Df as kw,Dg as CS,Dh as xS,Dj as es,Dk as Qs,Dl as mA,Dm as WA,Dn as hd,Do as qd,Ec as nn,Ed as vC,Ee as zn,Ef as xw,Eh as NS,Ei as Ui,Ej as ts,Ek as ea,Em as XA,En as gd,Eo as zd,Fc as jT,Fd as OC,Fe as zC,Ff as Nw,Fh as LS,Fi as ji,Fj as rs,Fk as ta,Fl as fA,Fm as YA,Fn as yd,Fo as Vd,G as Hb,Gc as BT,Gd as IC,Ge as VC,Gf as Lw,Gg as si,Gh as DS,Gi as Bi,Gj as os,Gk as ra,Gl as _A,Gm as JA,Gn as bd,Go as Hd,Hb as gT,Hc as qT,Hd as RC,He as HC,Hf as Dw,Hg as ai,Hh as $S,Hj as ns,Hk as oa,Hm as ZA,Hn as Td,Ho as Kd,Ic as zT,Id as MC,Ie as KC,If as $w,Ig as wS,Ih as FS,Ij as is,Ik as na,Im as QA,In as Cd,Io as Wd,J as Kb,Jb as yT,Jc as VT,Jd as PC,Je as WC,Jf as Fw,Jg as di,Jh as GS,Ji as hE,Jj as ss,Jk as ia,Jl as sd,Jm as ev,Jn as Iv,Jo as Xd,Kb as bT,Kc as HT,Kd as kC,Ke as XC,Kf as Gw,Kg as ci,Kh as US,Kj as as,Kk as sa,Kl as hA,Km as tv,Kn as Rv,Ko as Yd,Lb as TT,Lc as KT,Le as YC,Lf as Uw,Lg as SS,Lh as jS,Lj as ds,Lk as aa,Ll as gA,Lm as rv,Ln as Mv,Lo as Jd,M as Wb,Mb as CT,Mc as WT,Md as xC,Me as JC,Mf as jw,Mg as li,Mh as BS,Mj as cs,Mk as da,Ml as yA,Mm as Ot,Mn as Pv,Mo as Zd,Nb as wT,Nc as sn,Nd as NC,Ne as ZC,Nf as Bw,Ng as pi,Ni as qi,Nj as ls,Nk as ca,Nl as bA,Nn as kv,No as Qd,Oc as XT,Od as LC,Oe as QC,Og as D,Oh as qS,Oi as At,Oj as ps,Ok as la,Ol as TA,Om as ov,On as xv,Oo as ec,Pc as an,Pd as DC,Pf as qw,Pg as ui,Ph as xi,Pi as gE,Pj as us,Pk as pa,Pl as CA,Pn as Nv,Po as tc,Q as Xb,Qa as aT,Qb as ST,Qd as $C,Qe as ew,Qf as zw,Qh as Ni,Qi as yE,Qj as ms,Qk as ua,Qm as nv,Qn as Lv,Qo as rc,R as ue,Ra as dT,Rb as ET,Rc as YT,Rd as FC,Re as tw,Rf as Wn,Rh as zS,Ri as bE,Rj as fs,Rk as ma,Rl as wA,Ro as Mt,S as Yb,Sa as cT,Sc as JT,Sd as GC,Se as rw,Sf as Xn,Si as TE,Sj as _s,Sk as fa,Sl as SA,T as b,Tc as ZT,Td as UC,Te as ow,Tf as Yn,Ti as CE,Tk as _a,Tl as EA,Ub as R,Uc as QT,Ud as jC,Ue as nw,Uf as rS,Ui as wE,Uj as hs,Uk as ha,Ul as AA,Um as iv,Un as Rt,V as $o,Va as Ko,Vb as AT,Vc as eC,Vd as BC,Ve as iw,Vf as oS,Vi as SE,Vj as gs,Vk as ga,Vm as sv,Vn as Dv,W as bt,Wa as lT,Wb as Tt,Wd as qC,We as sw,Wf as nS,Wg as ES,Wh as VS,Wi as EE,Wj as ys,Wk as ya,Wl as vA,Wm as av,Wn as $v,X as me,Xa as pT,Xb as vT,Xd as pn,Xe as aw,Xf as iS,Xg as AS,Xh as HS,Xi as AE,Xj as bs,Xk as ba,Xl as OA,Xm as ad,Xn as Fv,Y as Fo,Ya as uT,Yd as un,Ye as dw,Yf as sS,Yg as vS,Yh as KS,Yj as Ts,Yk as Ta,Ym as dv,Yn as wd,Za as mT,Zb as OT,Zd as mn,Ze as cw,Zf as aS,Zg as mi,Zh as WS,Zi as vE,Zj as Cs,Zk as Ca,Zl as IA,Zn as Sd,_d as fn,_e as lw,_f as dS,_g as fi,_h as XS,_i as OE,_j as ws,_k as wa,_l as RA,_m as cv,_n as Ed,aa as Go,ab as Xo,ad as wt,ae as hn,af as uw,ag as lS,ah as hi,aj as RE,ak as Es,al as Ea,am as PA,an as pv,ao as vd,b as Io,bb as $e,bd as dn,be as gn,bf as mw,bg as pS,bh as gi,bi as JS,bj as zi,bk as As,bl as Aa,bm as kA,bn as uv,bo as Od,c as Ro,ca as Jb,cb as fT,cd as cn,ce as Fe,cf as fw,cg as uS,ch as yi,cj as Vi,ck as vs,cl as va,cm as xA,cn as mv,co as Id,d as Mo,da as Zb,db as _T,dd as ln,de as Ge,df as St,dg as mS,dh as bi,di as ZS,dk as Os,dl as Oa,dm as NA,dn as fv,do as Rd,e as Po,ea as Qb,eb as Yo,ee as yn,eg as fS,eh as Ti,ei as QS,ej as Hi,ek as Is,el as Ia,em as LA,en as _v,eo as Md,f as xe,fa as eT,fb as Jo,fd as tC,fe as bn,ff as Et,fh as Ci,fi as eE,fj as ME,fk as Rs,fl as Ra,fm as DA,fn as hv,fo as Pd,g as ko,ga as tT,gd as rC,ge as Tn,gf as Vn,gh as wi,gi as tE,gk as Ms,gl as Ma,gn as gv,go as kd,h as L,ha as rT,hb as Zo,hd as oC,he as Cn,hf as Hn,hh as Si,hi as rE,hj as PE,hk as Ps,hl as Pa,hm as $A,hn as yv,ho as xd,i as Ne,id as nC,ie as wn,if as fe,ih as Ei,ii as oE,ij as kE,ik as ks,il as ka,im as FA,in as It,io as Nd,j as xo,ja as oT,jc as IT,jd as iC,je as Sn,jh as Ai,ji as nE,jj as xE,jk as xs,jl as xa,jm as GA,jn as bv,jo as Ld,k as No,ka as nT,kc as RT,kd as sC,ke as En,kf as _w,kg as _S,kh as vi,ki as iE,kk as Ns,km as UA,ko as Dd,l as Lo,lc as MT,ld as aC,le as An,lh as Oi,li as sE,lj as NE,lk as Ls,ll as qe,lm as jA,lo as $d,m as Do,md as dC,me as vn,mf as hw,mh as OS,mk as Ds,ml as ee,mn as Tv,mo as Fd,n as $b,na as iT,nc as PT,nd as cC,ne as On,nf as Ue,ng as Jn,nh as IS,nj as KE,nk as $s,nl as Na,nm as BA,nn as Cv,no as Gd,o as Le,oc as kT,od as lC,oe as In,of as gw,og as hS,oh as Ii,oj as WE,ok as Fs,ol as Ha,on as wv,p as yt,pd as pC,pe as Rn,pf as yw,pg as Zn,ph as RS,pi as aE,pj as XE,pk as Gs,pl as Ka,pm as qA,pn as Sv,po as Gv,q as Fb,qa as sT,qc as xT,qd as uC,qe as Mn,qf as bw,qh as Ri,qj as je,qk as Us,ql as Wa,qm as zA,qn as Ev,qo as Uv,r as Gb,ra as Uo,rc as tn,rd as mC,re as Pn,rf as Tw,rg as gS,rh as Mi,ri as dE,rj as YE,rk as js,rl as Xa,rm as VA,rn as Av,s as Ub,sa as jo,sd as fC,se as kn,sf as Cw,sh as Pi,sj as JE,sk as Bs,sl as Ya,sm as HA,sn as vv,t as jb,ta as Bo,tc as rn,td as _C,te as xn,tf as ww,tg as yS,th as ki,tj as ZE,tk as qs,tl as Ja,tm as KA,tn as Ov,to as jv,u as z,ub as Qo,uc as on,ud as hC,ue as Nn,uf as Sw,ug as bS,ui as cE,uj as vt,uk as zs,ul as Za,un as dd,uo as Bv,v as Bb,vb as en,vd as gC,ve as Ln,vf as Ew,vg as Qn,vi as Li,vj as Be,vk as Vs,vl as Qa,vn as cd,vo as qv,wb as hT,wd as yC,we as Dn,wf as Aw,wg as ei,wi as lE,wj as QE,wk as Hs,wl as ed,wn as ld,wo as zv,x as qb,xa as qo,xc as NT,xd as bC,xe as $n,xf as vw,xg as ti,xj as eA,xk as Ks,xl as aA,xn as pd,xo as Vv,y as zb,yc as LT,yd as TC,ye as Fn,yf as Ow,yg as ri,yi as pE,yj as tA,yk as Ws,yl as dA,yn as ud,yo as Hv,z as Vb,za as zo,zc as DT,zd as CC,ze as Gn,zf as Iw,zg as oi,zi as uE,zj as rA,zk as Xs,zl as cA,zn as md,zo as Kv}from"./chunks/chunk-6PZPUJW3.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]="8f11e0bf-4115-55a8-bd39-c360f43cdc09")}catch{}})();var V="2026-07-28",ck=["2025-11-25","2025-06-18"],Ye=[V],m={headerMismatch:-32020,missingRequiredClientCapability:-32021,unsupportedProtocolVersion:-32022,invalidParams:-32602},E={clientCapabilities:"io.modelcontextprotocol/clientCapabilities",clientInfo:"io.modelcontextprotocol/clientInfo",logLevel:"io.modelcontextprotocol/logLevel",protocolVersion:"io.modelcontextprotocol/protocolVersion",serverInfo:"io.modelcontextprotocol/serverInfo"},tr=["debug","info","notice","warning","error","critical","alert","emergency"],u=class extends Error{code;data;constructor(t,r,o={}){super(t),this.name="PmMcpProtocolError",this.code=r,this.data=o}};function h(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function $h(e){if(e===void 0)return;if(!h(e))throw new u("Invalid MCP clientInfo metadata",m.invalidParams,{field:E.clientInfo,expected:"object"});let t=typeof e.name=="string"?e.name.trim():"",r=typeof e.version=="string"?e.version.trim():"";if(t.length===0||r.length===0)throw new u("Invalid MCP clientInfo metadata",m.invalidParams,{field:E.clientInfo,required:["name","version"]});let o={name:t.slice(0,128),version:r.slice(0,128)};return typeof e.description=="string"&&e.description.trim()&&(o.description=e.description.trim().slice(0,1024)),typeof e.websiteUrl=="string"&&e.websiteUrl.trim()&&(o.websiteUrl=e.websiteUrl.trim().slice(0,2048)),o}function Fh(e){if(e!==void 0){if(typeof e!="string"||!tr.includes(e))throw new u("Invalid MCP logLevel metadata",m.invalidParams,{field:E.logLevel,allowed:[...tr]});return e}}function Je(e){let t=h(e)?e._meta:void 0;if(!h(t))throw new u("Missing required MCP request metadata",m.invalidParams,{required:[E.protocolVersion,E.clientCapabilities]});let r=t[E.protocolVersion];if(typeof r!="string"||!Ye.includes(r))throw new u("Unsupported protocol version",m.unsupportedProtocolVersion,{supported:[...Ye],requested:typeof r=="string"?r:null});let o=t[E.clientCapabilities];if(!h(o))throw new u("Invalid MCP client capabilities metadata",m.invalidParams,{field:E.clientCapabilities,expected:"object"});let n=$h(t[E.clientInfo]),s=Fh(t[E.logLevel]);return{protocolVersion:V,clientCapabilities:o,...n?{clientInfo:n}:{},...s?{logLevel:s}:{}}}function lk(e,t){if(t!==e.protocolVersion)throw new u("MCP protocol header does not match request metadata",m.headerMismatch,{header:t??null,metadata:e.protocolVersion})}function pk(e,t){let r=t.filter(o=>!Object.prototype.hasOwnProperty.call(e.clientCapabilities,o));if(r.length>0)throw new u("Missing required client capability",m.missingRequiredClientCapability,{requiredCapabilities:Object.fromEntries(r.map(o=>[o,{}]))})}function uk(e,t){let r=e.clientCapabilities.extensions;return h(r)&&h(r[t])}function Ze(e,t){let r=h(e._meta)?e._meta:{};return{...e,_meta:{...r,[E.serverInfo]:{...t}}}}function Gh(e,t){return Ze({...e,resultType:"complete"},t)}function mk(e){let t=e.ttlMs??6e4;if(!Number.isFinite(t)||t<0)throw new u("Invalid MCP discovery cache TTL",m.invalidParams,{ttlMs:t});return Gh({supportedVersions:[...Ye],capabilities:structuredClone(e.capabilities),ttlMs:t,cacheScope:"public",...e.instructions?{instructions:e.instructions}:{}},e.serverInfo)}function fk(e,t){if(h(e)&&typeof e.resultType=="string")return e.resultType;if(t==="legacy")return"complete";throw new u("Modern MCP result is missing resultType",m.invalidParams,{required:"resultType"})}import{createHash as nr,createHmac as ir,timingSafeEqual as Uh}from"node:crypto";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="15b81dd0-ef1a-58be-b6ee-5975b6778993")}catch{}})();var jh=["elicitation/create","roots/list","sampling/createMessage"],rr=class extends Error{inputRequests;requestState;constructor(t){super("MCP operation requires additional input"),this.name="PmMcpInputRequiredError",this.inputRequests=t.inputRequests,this.requestState=t.requestState}},sr=/^[a-zA-Z][a-zA-Z0-9_.-]{0,63}$/u,ge=32,et=64*1024,ye=16*1024,Qe={maxBytes:256*1024,maxDepth:32,maxNodes:4096};function Bh(e){return e==="elicitation/create"?"elicitation":e==="sampling/createMessage"?"sampling":"roots"}function be(e,t,r){let o;try{o=JSON.stringify(e)}catch{throw new u(`Invalid ${r}: value is not JSON serializable`,m.invalidParams,{field:r})}if(Buffer.byteLength(o,"utf8")>t)throw new u(`Invalid ${r}: payload exceeds the protocol bound`,m.invalidParams,{field:r,maximumBytes:t})}function tt(e,t){if(!h(e))throw new u("Invalid MCP inputRequests",m.invalidParams,{field:"inputRequests",expected:"object"});let r=Object.entries(e);if(r.length===0||r.length>ge)throw new u("Invalid MCP inputRequests count",m.invalidParams,{minimum:1,maximum:ge,observed:r.length});let o={};for(let[n,s]of r){if(!sr.test(n)||!h(s))throw new u("Invalid MCP input request entry",m.invalidParams,{field:`inputRequests.${n}`});let i=s.method;if(typeof i!="string"||!jh.includes(i))throw new u("Unsupported MCP input request method",m.invalidParams,{field:`inputRequests.${n}.method`,method:i??null});let a=Bh(i);if(!Object.prototype.hasOwnProperty.call(t.clientCapabilities,a))throw new u("Missing required client capability",m.missingRequiredClientCapability,{requiredCapabilities:{[a]:{}}});if(!h(s.params))throw new u("Invalid MCP input request parameters",m.invalidParams,{field:`inputRequests.${n}.params`,expected:"object"});o[n]={method:i,params:structuredClone(s.params)}}return be(o,et,"inputRequests"),o}function ar(e){if(!h(e))throw new u("Invalid MCP inputResponses",m.invalidParams,{field:"inputResponses",expected:"object"});let t=Object.entries(e);if(t.length>ge)throw new u("Invalid MCP inputResponses count",m.invalidParams,{maximum:ge,observed:t.length});let r={};for(let[o,n]of t){if(!sr.test(o)||!h(n))throw new u("Invalid MCP input response entry",m.invalidParams,{field:`inputResponses.${o}`});r[o]=structuredClone(n)}return be(r,et,"inputResponses"),r}function yk(e){let t=e.requestState?.trim();if(t&&Buffer.byteLength(t,"utf8")>ye)throw new u("Invalid MCP requestState: payload exceeds the protocol bound",m.invalidParams,{field:"requestState",maximumBytes:ye});let r=e.inputRequests===void 0?void 0:tt(e.inputRequests,e.requestContext);if(r===void 0&&!t)throw new u("InputRequiredResult requires inputRequests or requestState",m.invalidParams,{requiredAnyOf:["inputRequests","requestState"]});return{resultType:"input_required",...r?{inputRequests:r}:{},...t?{requestState:t}:{},_meta:{[E.serverInfo]:{...e.serverInfo}}}}function dr(e){let t=Buffer.from(e);if(t.byteLength<32)throw new u("MCP requestState signing key must contain at least 32 bytes",m.invalidParams,{minimumBytes:32});return t}function bk(e,t){if(!Number.isSafeInteger(e.expiresAt)||e.expiresAt<=0||e.method.trim().length===0||e.parameterDigest.trim().length===0||e.principal.trim().length===0)throw new u("Invalid MCP requestState payload",m.invalidParams);let r=Buffer.from(JSON.stringify({version:1,...e}),"utf8");if(r.byteLength>ye/2)throw new u("MCP requestState payload exceeds the protocol bound",m.invalidParams,{maximumBytes:ye/2});let o=r.toString("base64url"),n=ir("sha256",dr(t)).update(o).digest("base64url");return`${o}.${n}`}function qh(e){if(!h(e)||e.version!==1)throw new u("Invalid MCP requestState payload",m.invalidParams,{field:"requestState"});let{expiresAt:t,method:r,parameterDigest:o,principal:n,state:s}=e;if(typeof t!="number"||!Number.isSafeInteger(t))throw new u("Invalid MCP requestState payload",m.invalidParams,{field:"requestState"});if(typeof r!="string"||typeof o!="string"||typeof n!="string")throw new u("Invalid MCP requestState payload",m.invalidParams,{field:"requestState"});return{expiresAt:t,method:r,parameterDigest:o,principal:n,state:s}}function Tk(e,t,r){let[o,n,s]=e.split(".");if(!o||!n||s!==void 0)throw new u("Invalid MCP requestState encoding",m.invalidParams,{field:"requestState"});let i=Buffer.from(n,"base64url"),a=ir("sha256",dr(t)).update(o).digest();if(i.byteLength!==a.byteLength||!Uh(i,a))throw new u("Invalid MCP requestState signature",m.invalidParams,{field:"requestState"});let d;try{d=JSON.parse(Buffer.from(o,"base64url").toString("utf8"))}catch{d=null}let c=qh(d),{expiresAt:l,method:p,parameterDigest:f,principal:_}=c;if(l<(r.nowMs??Date.now()))throw new u("Expired MCP requestState",m.invalidParams,{field:"requestState",expiredAt:l});if(p!==r.method||f!==r.parameterDigest||_!==r.principal)throw new u("MCP requestState binding mismatch",m.invalidParams,{field:"requestState"});return c}function Ck(e){return be(e,et,"request parameters"),nr("sha256").update(JSON.stringify(e)).digest("hex")}var or=class{#e=new Set;#t;constructor(t=4096){if(!Number.isSafeInteger(t)||t<1)throw new u("Invalid MCP replay guard capacity",m.invalidParams,{maximumEntries:t});this.#t=t}consume(t){let r=nr("sha256").update(t).digest("hex");if(this.#e.has(r))throw new u("MCP requestState replay detected",m.invalidParams,{field:"requestState"});if(this.#e.size>=this.#t){let o=this.#e.values().next().value;this.#e.delete(o)}this.#e.add(r)}};function zh(e){if(!Number.isSafeInteger(e.ttlMs)||e.ttlMs<0||e.cacheScope!=="public"&&e.cacheScope!=="private")throw new u("Invalid MCP cache policy",m.invalidParams,{ttlMs:e.ttlMs,cacheScope:e.cacheScope});return{ttlMs:e.ttlMs,cacheScope:e.cacheScope}}function wk(e,t){return{...e,...zh(t)}}function Vh(e){return e.replaceAll("~1","/").replaceAll("~0","~")}function Hh(e,t){if(t==="#")return e;if(!t.startsWith("#/"))return;let r=e;for(let o of t.slice(2).split("/").map(Vh)){if(!h(r)&&!Array.isArray(r)||!Object.prototype.hasOwnProperty.call(r,o))return;r=r[o]}return r}function Kh(e){let t=e.maxBytes??Qe.maxBytes,r=e.maxDepth??Qe.maxDepth,o=e.maxNodes??Qe.maxNodes;if(!Number.isSafeInteger(t)||t<2)throw new u("Invalid MCP JSON Schema work bounds",m.invalidParams);if(!Number.isSafeInteger(r)||r<1)throw new u("Invalid MCP JSON Schema work bounds",m.invalidParams);if(!Number.isSafeInteger(o)||o<1)throw new u("Invalid MCP JSON Schema work bounds",m.invalidParams);return{maximumBytes:t,maximumDepth:r,maximumNodes:o}}function Wh(e,t){let r=Array.isArray(e.value)?e.value:h(e.value)?Object.values(e.value):[];for(let o of r)t.push({value:o,depth:e.depth+1})}function Xh(e,t){if(!h(t)||typeof t.$ref!="string")return;let r=t.$ref;if(r.startsWith("#")&&Hh(e,r)===void 0)throw new u("MCP JSON Schema contains an unresolved local reference",m.invalidParams,{reference:r})}function Sk(e,t={}){let{maximumBytes:r,maximumDepth:o,maximumNodes:n}=Kh(t);if(typeof e!="boolean"&&!h(e))throw new u("Invalid MCP JSON Schema root",m.invalidParams,{expected:"object or boolean"});be(e,r,"JSON Schema");let s=[{value:e,depth:0}],i=0;for(;s.length>0;){let a=s.pop();if(i+=1,i>n||a.depth>o)throw new u("MCP JSON Schema exceeds validation work bounds",m.invalidParams,{maximumDepth:o,maximumNodes:n});Xh(e,a.value),Wh(a,s)}return structuredClone(e)}import{randomUUID as Yh}from"node:crypto";import{readFile as Jh}from"node:fs/promises";import cr from"node:path";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f3e94896-b2a0-561c-902b-71c28ddde2a1")}catch{}})();var Pk="io.modelcontextprotocol/tasks",Zh=["working","input_required","completed","failed","cancelled"],Qh=/^mcp-task-[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/iu,eg=3600*1e3,tg=1e3,Ce=1024,rg=30,og=2e3;function rt(e){return new u(e,m.invalidParams,{code:"mcp_task_not_found_or_not_authorized"})}function Te(e){let t=e.trim();if(!Qh.test(t))throw rt("Unknown MCP task");return t}function lr(e,t){if(typeof e!="string"||!Number.isFinite(Date.parse(e)))throw new u("Corrupt MCP task record",m.invalidParams,{field:t});return e}function pr(e){if(!h(e)||typeof e.code!="number"||!Number.isFinite(e.code)||typeof e.message!="string")throw new u("Corrupt MCP task error",m.invalidParams);return{code:e.code,message:e.message.slice(0,Ce),...h(e.data)?{data:structuredClone(e.data)}:{}}}function ng(e){if(!Zh.includes(e))throw new u("Corrupt MCP task record",m.invalidParams);return e}function ig(e){if(typeof e!="string"||e.length===0)throw new u("Corrupt MCP task record",m.invalidParams);return e}function sg(e){if(typeof e!="number"||!Number.isSafeInteger(e)||e<1)throw new u("Corrupt MCP task record",m.invalidParams);return e}function ag(e){if(e!==null&&(typeof e!="number"||!Number.isSafeInteger(e)||e<0))throw new u("Corrupt MCP task record",m.invalidParams);return e}function dg(e){if(e!==void 0){if(typeof e!="number"||!Number.isSafeInteger(e)||e<0)throw new u("Corrupt MCP task record",m.invalidParams);return e}}function cg(e){if(!Array.isArray(e)||e.some(t=>typeof t!="string"))throw new u("Corrupt MCP task record",m.invalidParams);return[...e]}function lg(e){if(!h(e)||e.version!==1)throw new u("Corrupt MCP task record",m.invalidParams);let t=typeof e.taskId=="string"?Te(e.taskId):"",r=ng(e.status),o=ig(e.principal),n=sg(e.workerPid),s=ag(e.ttlMs),i=dg(e.pollIntervalMs),a={version:1,taskId:t,status:r,principal:o,workerPid:n,createdAt:lr(e.createdAt,"createdAt"),lastUpdatedAt:lr(e.lastUpdatedAt,"lastUpdatedAt"),ttlMs:s,consumedInputKeys:cg(e.consumedInputKeys),...typeof e.statusMessage=="string"?{statusMessage:e.statusMessage.slice(0,Ce)}:{},...typeof i=="number"?{pollIntervalMs:i}:{}};if(h(e.inputRequests)&&(a.inputRequests=structuredClone(e.inputRequests)),h(e.inputResponses)&&(a.inputResponses=structuredClone(e.inputResponses)),h(e.result)&&(a.result=structuredClone(e.result)),e.error!==void 0&&(a.error=pr(e.error)),a.status==="input_required"&&!a.inputRequests||a.status==="completed"&&!a.result||a.status==="failed"&&!a.error)throw new u("Corrupt MCP task status payload",m.invalidParams,{status:a.status});return a}function H(e){let t={taskId:e.taskId,status:e.status,createdAt:e.createdAt,lastUpdatedAt:e.lastUpdatedAt,ttlMs:e.ttlMs,...e.statusMessage?{statusMessage:e.statusMessage}:{},...e.pollIntervalMs===void 0?{}:{pollIntervalMs:e.pollIntervalMs}};return e.status==="input_required"?{...t,status:"input_required",inputRequests:structuredClone(e.inputRequests)}:e.status==="completed"?{...t,status:"completed",result:structuredClone(e.result)}:e.status==="failed"?{...t,status:"failed",error:structuredClone(e.error)}:e.status==="cancelled"?{...t,status:"cancelled"}:{...t,status:"working"}}function re(e){return e==="completed"||e==="failed"||e==="cancelled"}function pg(e){try{return process.kill(e,0),!0}catch(t){return!(typeof t=="object"&&t!==null&&"code"in t&&t.code==="ESRCH")}}var ot=class{#e;#t;#r;#o;#i;constructor(t){this.#e=cr.resolve(t.pmRoot),this.#t=t.owner?.trim()||"pm-mcp",this.#r=t.now??(()=>new Date),this.#o=t.taskIdFactory??(()=>`mcp-task-${Yh()}`),this.#i=t.workerPid??process.pid}#s(t){return cr.join(this.#e,"runtime","mcp-tasks","records",`${Te(t)}.json`)}async#d(t){try{return lg(JSON.parse(await Jh(this.#s(t),"utf8")))}catch(r){throw me(r)||r instanceof SyntaxError?rt("Unknown MCP task"):r}}async#a(t){await De(this.#s(t.taskId),`${JSON.stringify(t,null,2)}
|
|
2
|
-
`)}async#n(t,r,o){let n=Te(t),s=await Ue(this.#e,n,rg,this.#t,!1,!1,og);try{let i=await this.#d(n);if(i.principal!==r)throw rt("Unknown MCP task");let a=o(i);return await this.#a(a),a}finally{await s()}}async create(t){let r=Te(this.#o()),o=t.principal.trim(),n=t.ttlMs===void 0?eg:t.ttlMs,s=t.pollIntervalMs??tg;if(o.length===0||n!==null&&(!Number.isSafeInteger(n)||n<0)||!Number.isSafeInteger(s)||s<0)throw new u("Invalid MCP task creation options",m.invalidParams);let i=this.#r().toISOString(),a={version:1,taskId:r,status:"working",createdAt:i,lastUpdatedAt:i,ttlMs:n,pollIntervalMs:s,principal:o,workerPid:this.#i,consumedInputKeys:[],...t.statusMessage?.trim()?{statusMessage:t.statusMessage.trim().slice(0,Ce)}:{}};return await this.#a(a),{...H(a),resultType:"task"}}async get(t,r){return H(await this.#n(t,r,o=>{if(re(o.status))return o;let n=this.#r().getTime(),s=o.ttlMs!==null&&Date.parse(o.createdAt)+o.ttlMs<=n,i=o.workerPid!==this.#i&&!pg(o.workerPid);return!s&&!i?o:{...o,status:"failed",statusMessage:s?"Task retention expired before completion.":"Task worker ended before recording a terminal result.",lastUpdatedAt:this.#r().toISOString(),error:{code:-32603,message:s?"MCP task expired":"MCP task worker unavailable after restart",data:{recoverable:!1,createNewTask:!0}},inputRequests:void 0}}))}async requireInput(t){let r=tt(t.inputRequests,t.requestContext);return H(await this.#n(t.taskId,t.principal,o=>{if(re(o.status))return o;let n=Object.keys(r).filter(s=>o.consumedInputKeys.includes(s));if(n.length>0)throw new u("MCP task input request keys must be unique for the task lifetime",m.invalidParams,{reused:n});return{...o,status:"input_required",statusMessage:t.statusMessage?.trim().slice(0,Ce),lastUpdatedAt:this.#r().toISOString(),inputRequests:r}}))}async update(t,r,o){let n=ar(o),s=[],i=[];return await this.#n(t,r,a=>{if(a.status!=="input_required"||!a.inputRequests)return a;let d={...a.inputRequests},c=a.inputResponses?{...a.inputResponses}:{};for(let[l,p]of Object.entries(n))Object.prototype.hasOwnProperty.call(d,l)&&(c[l]=p,delete d[l],s.push(l));return i=Object.keys(d).sort(),s.length===0?a:{...a,status:i.length===0?"working":"input_required",lastUpdatedAt:this.#r().toISOString(),inputRequests:i.length===0?void 0:d,inputResponses:c,consumedInputKeys:[...new Set([...a.consumedInputKeys,...s])].sort()}}),{acceptedKeys:s.sort(),remainingKeys:i}}async takeInputResponses(t,r){let o={};return await this.#n(t,r,n=>(o=structuredClone(n.inputResponses??{}),Object.keys(o).length===0?n:{...n,inputResponses:void 0})),o}async complete(t,r,o){return H(await this.#n(t,r,n=>re(n.status)?n:{...n,status:"completed",statusMessage:"Task completed.",lastUpdatedAt:this.#r().toISOString(),result:structuredClone(o),inputRequests:void 0,error:void 0}))}async fail(t,r,o){let n=pr(o);return H(await this.#n(t,r,s=>re(s.status)?s:{...s,status:"failed",statusMessage:n.message,lastUpdatedAt:this.#r().toISOString(),error:n,inputRequests:void 0,result:void 0}))}async cancel(t,r){return H(await this.#n(t,r,o=>re(o.status)?o:{...o,status:"cancelled",statusMessage:"Task cancelled by the client.",lastUpdatedAt:this.#r().toISOString(),inputRequests:void 0,result:void 0,error:void 0}))}};function kk(e){return new ot(e)}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="15cbe26a-5716-5e8c-8700-eb36a1a056d6")}catch{}})();var we="io.modelcontextprotocol/subscriptionId",ur=256,mr=2048,ug=5e3;function mg(e,t){return new Promise((r,o)=>{let n=setTimeout(()=>o(new Error("MCP subscription sink write timed out")),ug);n.unref(),Promise.resolve().then(()=>e(t)).then(()=>{clearTimeout(n),r()},s=>{clearTimeout(n),o(s instanceof Error?s:new Error(String(s)))})})}function nt(e,t){if(e!==void 0){if(typeof e!="boolean")throw new u("Invalid MCP subscription filter",m.invalidParams,{field:`notifications.${t}`,expected:"boolean"});return e||void 0}}function fg(e){if(!h(e))throw new u("Invalid MCP subscription filter",m.invalidParams,{field:"notifications",expected:"object"});let t=nt(e.toolsListChanged,"toolsListChanged"),r=nt(e.promptsListChanged,"promptsListChanged"),o=nt(e.resourcesListChanged,"resourcesListChanged"),n;if(e.resourceSubscriptions!==void 0){if(!Array.isArray(e.resourceSubscriptions)||e.resourceSubscriptions.length>ur)throw new u("Invalid MCP resource subscriptions",m.invalidParams,{field:"notifications.resourceSubscriptions",maximum:ur});let s=new Set;for(let i of e.resourceSubscriptions){if(typeof i!="string"||i.trim().length===0||Buffer.byteLength(i,"utf8")>mr)throw new u("Invalid MCP resource subscription URI",m.invalidParams,{field:"notifications.resourceSubscriptions",maximumBytes:mr});s.add(i)}s.size>0&&(n=[...s].sort())}return{...t?{toolsListChanged:t}:{},...r?{promptsListChanged:r}:{},...o?{resourcesListChanged:o}:{},...n?{resourceSubscriptions:n}:{}}}function _g(e,t){return{...e.toolsListChanged&&t.tools?.listChanged?{toolsListChanged:!0}:{},...e.promptsListChanged&&t.prompts?.listChanged?{promptsListChanged:!0}:{},...e.resourcesListChanged&&t.resources?.listChanged?{resourcesListChanged:!0}:{},...e.resourceSubscriptions&&t.resources?.subscribe?{resourceSubscriptions:[...e.resourceSubscriptions]}:{}}}var fr=class{#e;#t=new Map;#r;constructor(t){this.#e=structuredClone(t.capabilities),this.#r={...t.serverInfo}}get size(){return this.#t.size}async open(t){if(this.#t.has(t.id))throw new u("MCP subscription id is already active",m.invalidParams,{subscriptionId:t.id});let r=_g(fg(t.notifications),this.#e),o={filter:r,sink:t.sink,writeQueue:Promise.resolve()};this.#t.set(t.id,o);try{await this.#o(t.id,o,{jsonrpc:"2.0",method:"notifications/subscriptions/acknowledged",params:{_meta:{[we]:t.id},notifications:structuredClone(r)}},!0)}catch(n){throw this.#t.delete(t.id),n}return structuredClone(r)}async emitListChanged(t){let r=`${t}ListChanged`,o=`notifications/${t}/list_changed`,n=[];for(let[s,i]of this.#t)i.filter[r]===!0&&n.push(this.#o(s,i,{jsonrpc:"2.0",method:o,params:{_meta:{[we]:s}}}));return(await Promise.all(n)).filter(Boolean).length}async emitResourceUpdated(t){let r=[];for(let[o,n]of this.#t)n.filter.resourceSubscriptions?.includes(t)&&r.push(this.#o(o,n,{jsonrpc:"2.0",method:"notifications/resources/updated",params:{_meta:{[we]:o},uri:t}}));return(await Promise.all(r)).filter(Boolean).length}async#o(t,r,o,n=!1){let s=r.writeQueue.then(async()=>{if(this.#t.get(t)!==r)return!1;try{return await mg(r.sink,o),!0}catch(i){if(this.#t.get(t)===r&&this.#t.delete(t),n)throw i;return!1}});return r.writeQueue=s.then(()=>{},()=>{}),s}close(t){if(this.#t.delete(t))return{...Ze({resultType:"complete",_meta:{[we]:t}},this.#r)}}closeAll(){let t=[];for(let r of this.#t.keys()){let o=this.close(r);t.push({id:r,result:o})}return t}};(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3681273a-e101-57a0-9446-982c450e7183")}catch{}})();var _r=/^=\?base64\?([A-Za-z0-9+/]*={0,2})\?=$/u,hg=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/u,hr=/^[\t\x20-\x7E]*$/u,gr=new Set(["prompts/get","resources/read","tools/call"]);function gg(e){let t=new Map;for(let[r,o]of Object.entries(e)){if(o===void 0)continue;let n=typeof o=="string"?o:o.join(", ");t.set(r.toLowerCase(),n)}return t}function A(e,t){throw new u(e,m.headerMismatch,{header:t})}function yr(e){let t=typeof e=="boolean"?String(e).toLowerCase():String(e);return t.length>0&&t.trim()===t&&hr.test(t)&&!_r.test(t)?t:`=?base64?${Buffer.from(t,"utf8").toString("base64")}?=`}function br(e,t){let r=_r.exec(e);if(r){let o=r[1],n=Buffer.from(o,"base64");return n.toString("base64")!==o||n.length===0?A("Malformed MCP Base64 header value",t):n.toString("utf8")}return e.length===0||e.trim()!==e||!hr.test(e)?A("Malformed MCP header value",t):e}function Se(e){return Array.isArray(e)?e.some(Se):h(e)?Object.prototype.hasOwnProperty.call(e,"x-mcp-header")||Object.values(e).some(Se):!1}function yg(e,t,r){let o=e["x-mcp-header"];if(o===void 0)return;let n=e.type;if(typeof o!="string"||!hg.test(o)||!["boolean","integer","string"].includes(String(n))||r.has(o.toLowerCase()))throw new u("Invalid MCP x-mcp-header annotation",m.invalidParams,{field:t.join("."),annotation:o});return r.add(o.toLowerCase()),{name:o,path:t,type:n}}function Tr(e){if(!h(e))throw new u("Invalid MCP tool schema",m.invalidParams,{field:"inputSchema",expected:"object"});let t=[],r=new Set,o=(n,s)=>{let i=n.properties;if(i!==void 0){if(!h(i))throw new u("Invalid MCP tool schema properties",m.invalidParams,{field:"inputSchema.properties"});for(let[a,d]of Object.entries(i)){if(!h(d))continue;let c=[...s,a],l=yg(d,c,r);l&&t.push(l);for(let[p,f]of Object.entries(d))if(p!=="properties"&&p!=="x-mcp-header"&&Se(f))throw new u("MCP x-mcp-header is not statically reachable",m.invalidParams,{field:c.join("."),keyword:p});o(d,c)}}};for(let[n,s]of Object.entries(e))if(n!=="properties"&&Se(s))throw new u("MCP x-mcp-header is not statically reachable",m.invalidParams,{field:"inputSchema",keyword:n});return o(e,[]),t}function Cr(e,t){let r=e;for(let o of t){if(!h(r))return;r=r[o]}return r}function wr(e,t){let r=e==="resources/read"?t.uri:t.name;return typeof r=="string"?r:void 0}function bg(e,t){let r=h(e.arguments)?e.arguments:{},o={};for(let n of Tr(t)){let s=Cr(r,n.path);if(s!=null){if(!(n.type==="integer"&&typeof s=="number"&&Number.isSafeInteger(s)||n.type==="boolean"&&typeof s=="boolean"||n.type==="string"&&typeof s=="string"))throw new u("Invalid MCP custom header argument",m.invalidParams,{field:n.path.join("."),expected:n.type});o[`Mcp-Param-${n.name}`]=yr(s)}}return o}function $k(e){let t=h(e.request.params)?e.request.params:void 0,r=Je(t),o=e.request.method;if(typeof o!="string"||o.length===0)return A("Missing MCP request method","Mcp-Method");let n={Accept:"application/json, text/event-stream","Content-Type":"application/json","MCP-Protocol-Version":r.protocolVersion,"Mcp-Method":o},s=wr(o,t);if(gr.has(o)){if(s===void 0)return A("Missing MCP request name","Mcp-Name");n["Mcp-Name"]=yr(s)}return o==="tools/call"&&e.toolSchema!==void 0&&Object.assign(n,bg(t,e.toolSchema)),n}function Tg(e,t){let r=t.method;(typeof r!="string"||r.length===0)&&A("Missing MCP request method","Mcp-Method");let o=h(t.params)?t.params:void 0,n=Je(o).protocolVersion;if(e.get("mcp-protocol-version")!==n&&A("MCP protocol header does not match request metadata","MCP-Protocol-Version"),e.get("mcp-method")!==r&&A("MCP method header does not match request body","Mcp-Method"),gr.has(r)){let s=e.get("mcp-name"),i=wr(r,o);(s===void 0||i===void 0||br(s,"Mcp-Name")!==i)&&A("MCP name header does not match request body","Mcp-Name")}e.has("last-event-id")&&A("MCP SSE resumability is not supported","Last-Event-ID")}function Cg(e,t,r){return e.type==="integer"?typeof t=="number"&&Number.isSafeInteger(t)&&Number(r)===t:e.type==="boolean"?typeof t=="boolean"&&r===String(t):typeof t=="string"&&r===t}function wg(e){let t=h(e.params.arguments)?e.params.arguments:{};for(let r of Tr(e.toolSchema)){let o=Cr(t,r.path),n=`Mcp-Param-${r.name}`,s=e.headers.get(n.toLowerCase());if(o==null){s!==void 0&&A("Unexpected MCP parameter header",n);continue}s===void 0&&A("Missing MCP parameter header",n),Cg(r,o,br(s,n))||A("MCP parameter header does not match request body",n)}}function Fk(e){let t=gg(e.headers),r=typeof e.request.method=="string"?e.request.method:"";Tg(t,e.request),!(r!=="tools/call"||e.toolSchema===void 0)&&wg({headers:t,params:e.request.params,toolSchema:e.toolSchema})}var Gk=V;import{AsyncLocalStorage as Sg}from"node:async_hooks";import{createHash as Sr,timingSafeEqual as Eg}from"node:crypto";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a7c30d99-a0e4-552e-be61-0c54a455e211")}catch{}})();var y=class extends Error{httpStatus;challenge;constructor(t,r,o){super(t),this.name="PmMcpAuthorizationError",this.httpStatus=r,this.challenge=o}},Ag=/^00-([0-9a-f]{32})-([0-9a-f]{16})-([0-9a-f]{2})$/u,vg=/^[a-z][a-z0-9_*/-]{0,255}$/u,Og=/^(?:[a-z0-9][a-z0-9_*/-]{0,240})@[a-z][a-z0-9_*/-]{0,13}$/u,Ig=/^[\x20-\x2B\x2D-\x3C\x3E-\x7E]{0,255}[\x21-\x2B\x2D-\x3C\x3E-\x7E]$/u,Ar=/^[\x21\x23-\x5B\x5D-\x7E]+$/u,vr=/^[A-Za-z0-9!#$%&'*+.^_`|~-]+$/u,Rg=/^[\x21\x23-\x2B\x2D-\x3A\x3C-\x5B\x5D-\x7E]*$/u,Mg=/%(?![0-9A-Fa-f]{2})/u,Pg=512,kg=32,xg=180,Ng=8192,Lg=8192,Or=new Sg;function S(e,t,r=!1){if(new RegExp("\\p{Cc}","u").test(e))throw new y(`Invalid ${t}`,401);let o;try{o=new URL(e)}catch{throw new y(`Invalid ${t}`,401)}let n=o.hostname==="127.0.0.1"||o.hostname==="localhost";if(o.hash.length>0||o.protocol!=="https:"&&!(r&&n&&o.protocol==="http:"))throw new y(`Invalid ${t}`,401);return o}function Dg(e,t){let r=t.toLowerCase();for(let[o,n]of Object.entries(e))if(!(o.toLowerCase()!==r||n===void 0))return typeof n=="string"?n:n.join(", ")}function zk(e){let t=S(e.resource,"protected resource URI",!0).href.replace(/\/$/u,"");if(e.authorizationServers.length===0)throw new y("Protected resource metadata requires an authorization server",401);let r=e.authorizationServers.map(n=>S(n,"authorization server issuer").href.replace(/\/$/u,"")),o=[...new Set(e.scopes??[])];if(o.some(n=>!Ar.test(n)))throw new y("Invalid authorization scope",401);return{resource:t,authorization_servers:r,...o.length>0?{scopes_supported:o.sort()}:{}}}function Vk(e){let t=S(e,"authorization server issuer"),r=t.pathname.replace(/^\/+|\/+$/gu,""),o=t.origin;return r?[`${o}/.well-known/oauth-authorization-server/${r}`,`${o}/.well-known/openid-configuration/${r}`,`${o}/${r}/.well-known/openid-configuration`]:[`${o}/.well-known/oauth-authorization-server`,`${o}/.well-known/openid-configuration`]}function Hk(e,t){if(!h(e)||typeof e.issuer!="string")throw new y("Invalid authorization server metadata",401);let r=S(t,"expected issuer").href.replace(/\/$/u,"");if(S(e.issuer,"metadata issuer").href.replace(/\/$/u,"")!==r)throw new y("Authorization server issuer mismatch",401);if(!Array.isArray(e.code_challenge_methods_supported)||!e.code_challenge_methods_supported.includes("S256"))throw new y("Authorization server does not support required S256 PKCE",401);let o=d=>{let c=e[d];if(typeof c!="string")throw new y(`Authorization server metadata requires ${d}`,401);return S(c,d).href},n=d=>{let c=e[d];return typeof c=="string"?S(c,d).href:void 0},s=o("authorization_endpoint"),i=o("token_endpoint"),a=n("registration_endpoint");return{issuer:r,authorization_endpoint:s,token_endpoint:i,code_challenge_methods_supported:[...new Set(e.code_challenge_methods_supported.filter(d=>typeof d=="string"))],...e.client_id_metadata_document_supported===!0?{client_id_metadata_document_supported:!0}:{},...a?{registration_endpoint:a}:{}}}function Kk(e){return e.hasPreRegisteredClient?"pre_registered":e.metadata.client_id_metadata_document_supported?"client_id_metadata_document":e.metadata.registration_endpoint?"dynamic":"user_supplied"}function Wk(e){if(e.responseIssuer===void 0){if(e.issuerParameterSupported)throw new y("Authorization response omitted the advertised issuer",401);return}if(e.responseIssuer!==e.expectedIssuer)throw new y("Authorization response issuer mismatch",401)}function Xk(e,t){let r=S(t,"client metadata document URL");if(r.pathname==="/"||!h(e)||e.client_id!==r.href||typeof e.client_name!="string"||e.client_name.trim().length===0||!Array.isArray(e.redirect_uris)||e.redirect_uris.length===0)throw new y("Invalid Client ID Metadata Document",401);for(let o of e.redirect_uris){if(typeof o!="string")throw new y("Invalid client redirect URI",401);S(o,"client redirect URI",!0)}return structuredClone(e)}function Yk(e){if(e.redirectUris.length===0||e.clientName.trim().length===0)throw new y("Invalid dynamic client registration metadata",401);let t=e.redirectUris.map(r=>S(r,"redirect URI",!0).href);return{application_type:e.applicationType,client_name:e.clientName.trim().slice(0,128),redirect_uris:t,grant_types:["authorization_code","refresh_token"],response_types:["code"],token_endpoint_auth_method:"none"}}var Er=class{#e=new Map;set(t,r){let o=S(t,"credential issuer").href;this.#e.set(o,structuredClone(r))}get(t){let r=S(t,"credential issuer").href,o=this.#e.get(r);return o?structuredClone(o):void 0}delete(t){let r=S(t,"credential issuer").href;return this.#e.delete(r)}};function $g(e){let t=e.traceparent,r=e.tracestate;if(t!==void 0){let o=typeof t=="string"?Ag.exec(t):null;if(!o)throw new y("Invalid MCP traceparent",403);let n=o[1],s=o[2];if(/^0+$/u.test(n)||/^0+$/u.test(s))throw new y("Invalid MCP traceparent",403)}if(r!==void 0&&(typeof r!="string"||!Gg(r)))throw new y("Invalid MCP tracestate",403);return{...typeof t=="string"?{traceparent:t}:{},...typeof r=="string"?{tracestate:r}:{}}}function $(e){return e.replace(/^[ \t]*|[ \t]*$/gu,"")}function Fg(e){return vg.test(e)||Og.test(e)}function Gg(e){if(Buffer.byteLength(e,"utf8")>Pg)return!1;let t=e.split(",");if(t.length>kg)return!1;let r=new Set;for(let o of t){let n=$(o);if(n.length===0)continue;let s=n.indexOf("="),i=s>0?n.slice(0,s):"",a=s>0?n.slice(s+1):"";if(!Fg(i)||!Ig.test(a)||r.has(i))return!1;r.add(i)}return!0}function Ir(e){return Rg.test(e)&&!Mg.test(e)}function Ug(e){let t=$(e),r=t.indexOf("="),o=$(r>=0?t.slice(0,r):t),n=r>=0?$(t.slice(r+1)):void 0;return vr.test(o)&&(n===void 0||Ir(n))}function jg(e){let t=$(e),r=t.split(";"),o=r[0],n=r.slice(1),s=o.indexOf("="),i=$(s>0?o.slice(0,s):""),a=s>0?$(o.slice(s+1)):"";if(!(!vr.test(i)||!Ir(a)||!n.every(Ug)))return{key:i,serialized:t}}function Bg(e,t){if(e===void 0)return;if(typeof e!="string"||Buffer.byteLength(e,"utf8")>Ng)throw new y("Invalid MCP baggage",403);let r=new Set(t),o=e.split(",");if(o.length>xg)throw new y("Invalid MCP baggage",403);let n=[];for(let s of o){let i=jg(s);if(!i)throw new y("Invalid MCP baggage",403);r.has(i.key)&&n.push(i.serialized)}return n.length>0?n.join(","):void 0}function Jk(e,t={}){let r=h(e)&&h(e._meta)?e._meta:{},o=Bg(r.baggage,t.baggageAllowlist??[]);return{...$g(r),...o?{baggage:o}:{}}}function Zk(e,t){return Or.run(structuredClone(e),t)}function Qk(){let e=Or.getStore();return e?{...e}:void 0}async function ex(e){let t=S(e.policy.resourceMetadataUrl,"protected resource metadata URL",!0).href,r=[...new Set(e.policy.requiredScopes??[])];if(r.some(c=>!Ar.test(c)))throw new y("Invalid authorization scope",401);let o=`Bearer resource_metadata="${t}"`;if(new URL(e.requestUrl,e.policy.resource).searchParams.has("access_token"))throw new y("Access tokens must not appear in URI query parameters",401,o);let n=Dg(e.headers,"authorization")?.match(/^Bearer ([^\s]+)$/iu);if(!n)throw new y("Missing or malformed bearer token",401,o);let s=n[1];if(Buffer.byteLength(s,"utf8")>Lg)throw new y("Missing or malformed bearer token",401,o);let i;try{i=await e.policy.verifyAccessToken(s)}catch{throw new y("Invalid bearer token",401,o)}let a=Array.isArray(i.audience)?i.audience:[i.audience];if(i.issuer!==e.policy.issuer||!a.includes(e.policy.resource))throw new y("Bearer token issuer or audience mismatch",401,o);let d=r.filter(c=>!i.scopes.includes(c));if(d.length>0)throw new y("Bearer token has insufficient scope",403,`${o}, scope="${d.join(" ")}"`);return{...i,audience:[...a],scopes:[...i.scopes]}}function tx(e){let t=Sr("sha256").update(e.token).digest();return r=>{let o=Sr("sha256").update(r).digest();if(!Eg(t,o))throw new y("Invalid bearer token",401);return structuredClone(e.claims)}}(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]="46f5fe59-6b84-5c68-ad07-bb1329f4ea29")}catch{}})();var it="io.modelcontextprotocol/ui",Ee="2026-01-26",Pr="text/html;profile=mcp-app",Rr=Object.freeze({specVersion:Ee,mimeTypes:[Pr]});function nx(e){let t=e.clientCapabilities.extensions;if(!h(t))return!1;let r=t[it];if(r===void 0)return!1;if(!h(r))throw new u("Invalid MCP Apps client capability",m.missingRequiredClientCapability,{requiredCapabilities:{extensions:{[it]:Rr}}});let o=r.mimeTypes,n=r.specVersion;if(!Array.isArray(o)||!o.includes(Pr)||n!==void 0&&n!==Ee)throw new u("Unsupported MCP Apps client capability",m.missingRequiredClientCapability,{requiredCapabilities:{extensions:{[it]:Rr}}});return!0}var qg={csp:{connectDomains:[],resourceDomains:[],frameDomains:[]},permissions:{},prefersBorder:!0},kr=Object.freeze([{id:"context",name:"Context explorer",description:"Inspect bounded project context, provenance, omissions, and token accounting.",toolName:"pm_context",uri:"ui://pm/context.html"},{id:"graph",name:"Relationship graph",description:"Explore typed relationships, explaining paths, and graph-governance evidence.",toolName:"pm_graph",uri:"ui://pm/graph.html"},{id:"plan",name:"Plan and milestone view",description:"Review durable plan steps, dependencies, decisions, discoveries, and validation state.",toolName:"pm_plan",uri:"ui://pm/plan.html"},{id:"assurance",name:"Assurance dashboard",description:"Inspect validation verdicts, evidence, omissions, and actionable recovery paths.",toolName:"pm_validate",uri:"ui://pm/assurance.html"},{id:"operations",name:"Long-operation view",description:"Inspect durable test and operation results without creating a second task store.",toolName:"pm_test",uri:"ui://pm/operations.html"}].map(e=>({...e,toolMeta:{resourceUri:e.uri,visibility:["model","app"]},resourceMeta:qg})));function ix(e){return kr.find(t=>t.uri===e)}function sx(e){let t=new Map(kr.map(r=>[r.toolName,r]));return e.map(r=>{let o=t.get(r.name);return o?{...r,_meta:{...r._meta,ui:o.toolMeta}}:{...r}})}function Mr(e){return e.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'")}function ax(e){let t=Mr(e.name),r=Mr(e.description),o=JSON.stringify({name:`pm-${e.id}-view`,version:Ee}),n=JSON.stringify(Ee);return`<!doctype html>
|
|
1
|
+
import{A as WP,B as XP,C as YP,D as JP,E as ZP,F as QP,G as e0,H as t0,a as Kn,b as Zw,c as Qw,d as eS,e as tS,f as rS,g as sA,h as aA,i as La,j as Da,k as $a,m as Fa,n as Ga,o as Ua,p as ja,q as Ba,r as qa,s as za,t as Va,u as td,v as rd,w as od,x as nd,y as id,z as KP}from"./chunks/chunk-WYZGZV2M.js";import{A as B0,B as q0,C as z0,D as V0,E as H0,F as K0,G as W0,H as X0,I as Y0,J as J0,K as Z0,L as Q0,M as ek,N as tk,O as rk,P as ok,Q as nk,R as ik,S as sk,T as ak,U as dk,V as ck,W as lk,X as pk,Y as uk,a as h0,b as g0,c as y0,d as b0,e as T0,f as C0,g as w0,h as S0,i as E0,j as A0,k as v0,l as O0,m as I0,n as R0,o as M0,p as P0,q as k0,r as x0,s as N0,t as L0,u as D0,v as $0,w as F0,x as G0,y as U0,z as j0}from"./chunks/chunk-DUK5DHI6.js";import{a as $h}from"./chunks/chunk-N5EXRYCZ.js";import{a as r0,b as o0,c as n0,d as i0}from"./chunks/chunk-LBDWFWPK.js";import{a as s0,b as a0,c as d0,d as c0,e as l0,f as p0,g as u0,h as m0,i as f0,j as _0}from"./chunks/chunk-HXHFKXLV.js";import{$ as Tm,$a as m_,$b as mh,A as im,Aa as Lf,Ab as U_,B as sm,Ba as Df,Bb as j_,C as am,Ca as $f,Cb as B_,D as qt,Da as Ff,Db as q_,E as zt,Ea as Gf,Eb as z_,F as Vt,Fa as Uf,Fb as V_,G as Ht,Ga as jf,Gb as H_,H as Kt,Ha as Bf,Hb as K_,I as Wt,Ia as qf,Ib as W_,J as Xt,Ja as zf,Jb as X_,K as Yt,Ka as Vf,Kb as Y_,L as Jt,La as Hf,Lb as J_,M as Zt,Ma as Kf,Mb as Z_,N as Qt,Na as Wf,Nb as Q_,O as dm,Oa as Xf,Ob as eh,P as cm,Pa as Yf,Pb as th,Q as lm,Qa as Jf,Qb as rh,R as pm,Ra as Zf,Rb as oh,S as um,Sa as er,Sb as nh,T as Xe,Ta as he,Tb as ih,U as mm,Ua as s_,Ub as sh,V as fm,Va as a_,Vb as ah,W as _m,Wa as d_,Wb as dh,X as hm,Xa as c_,Xb as ch,Y as gm,Ya as l_,Yb as lh,Z as ym,Za as p_,Zb as ph,_ as bm,_a as u_,_b as uh,a as Hw,aa as IP,ab as f_,ac as fh,b as Kw,ba as RP,bb as __,bc as _h,c as Ww,ca as MP,cb as h_,cc as hh,d as Xw,da as xm,db as g_,dc as gh,e as Yw,ea as Nm,eb as y_,ec as yh,f as Jw,fa as Lm,fb as b_,fc as bh,g as GE,ga as Sf,gb as T_,gc as Th,h as UE,ha as Ef,hb as C_,hc as Ch,i as Ki,ia as GP,ib as w_,ic as wh,j as jI,ja as UP,jb as S_,jc as Sh,k as BI,ka as jP,kb as E_,kc as Eh,l as qI,la as BP,lb as A_,lc as Ah,m as zI,ma as qP,mb as v_,mc as vh,n as VI,na as zP,nb as O_,nc as Oh,o as HI,oa as VP,ob as I_,oc as Ih,p as _l,pa as HP,pb as R_,pc as Rh,q as Vp,qa as Af,qb as M_,qc as Mh,r as Hp,ra as vf,rb as P_,rc as Ph,s as Yp,sa as Of,sb as k_,sc as kh,t as Jp,ta as If,tb as x_,tc as xh,u as hu,ua as Rf,ub as N_,uc as Nh,v as Su,va as Mf,vb as L_,vc as Lh,w as hM,wa as Pf,wb as D_,wc as Dh,x as We,xa as kf,xb as $_,y as om,ya as xf,yb as F_,z as nm,za as Nf,zb as G_}from"./chunks/chunk-UBTYYZIE.js";import{e as XI,f as YI,g as hl,h as gl,i as Ut}from"./chunks/chunk-AM2XOZKE.js";import{A as mP,B as fP,C as _P,D as hP,E as gP,F as yP,G as bP,H as TP,I as CP,J as wP,K as SP,L as EP,M as AP,N as vP,O as OP,P as Sm,Q as Em,R as Am,S as vm,T as Om,U as Im,V as Rm,W as Mm,X as Pm,Y as km,a as Di,b as $i,c as Fi,d as Gi,e as QR,f as eM,g as tM,h as rM,i as oM,j as zp,k as nM,l as iM,m as sM,n as aM,o as dM,q as Xp,r as Cm,s as sP,t as aP,u as dP,v as cP,w as lP,x as pP,y as wm,z as uP}from"./chunks/chunk-RL45OYTL.js";import{$ as mI,$a as vl,$b as Dp,$c as Zu,$d as n_,A as BO,Ab as tR,Ac as tu,Ad as tf,B as qO,Bb as rR,Bc as ru,Bd as rf,C as zO,Cb as oR,Cc as ou,Cd as of,D as VO,Db as nR,Dc as nu,Dd as nf,E as HO,Eb as iR,Ec as iu,Ed as sf,F as Ke,Fa as Qc,Fb as sR,Fc as su,Fd as af,G as KO,Ga as el,Gb as vR,Gc as au,Gd as df,H as Nt,Ha as tl,Hb as OR,Hc as du,Hd as cf,I as WO,Ia as rl,Ib as IR,Ic as cu,Id as lf,J as XO,Ja as ol,Jb as RR,Jc as lu,Jd as pf,K as YO,Kb as MR,Kc as pu,L as JO,La as nl,Lb as PR,Lc as uu,Ld as uf,M as ZO,Ma as il,Mb as kR,Mc as mu,Md as mf,N as QO,Na as sl,Nb as FR,Nc as fu,Nd as ff,O as eI,Oa as al,Ob as GR,Od as _f,P as tI,Pa as KI,Pb as Rp,Pc as fM,Pd as hf,Q as rI,Qa as WI,Qb as Mp,Qc as _M,Qd as gf,R as oI,Ra as dl,Rb as UR,Rc as _u,Rd as yf,S as nI,Sa as cl,Sb as jR,Sc as Eu,Sd as bf,T as iI,Ta as ll,Tb as BR,Td as Tf,U as sI,Ua as pl,Ub as qR,Ud as Cf,V as aI,Va as ul,Vb as zR,Vd as wf,W as dI,Wa as ml,Wb as Pp,Wc as Au,Wd as Qf,X as cI,Xa as fl,Xb as kp,Xd as e_,Y as lI,Ya as Sl,Yb as xp,Yc as vu,Yd as t_,Z as pI,Za as El,Zb as Np,Zc as Yu,Zd as r_,_ as uI,_a as Al,_b as Lp,_c as Ju,_d as o_,a as xO,aa as fI,ab as Ol,ac as $p,ad as Qu,ae as i_,b as Pt,ba as _I,bb as Il,bc as Fp,bd as em,c as NO,ca as hI,cb as Rl,cc as Gp,cd as tm,d as Ve,da as gI,db as Ml,dc as Up,dd as rm,e as te,ea as yI,eb as Pl,ec as jp,ed as Dm,f as _c,fa as bI,fb as kl,fc as Bp,fd as $m,gb as xl,gc as VR,gd as Fm,hb as Nl,hc as HR,hd as Gm,i as He,ib as Ll,ic as KR,id as Um,j as hc,jb as Dl,jc as WR,jd as jm,k as gc,kb as $l,kc as XR,kd as Bm,lb as Fl,lc as YR,ld as qm,m as _e,ma as Zc,mb as Gl,mc as JR,md as zm,n as yc,nb as Ul,nc as ZR,nd as DP,o as bc,ob as ZI,oc as qp,od as $P,p as Tc,pb as jl,pc as cM,pd as FP,q as Cc,qb as Bl,qc as lM,qd as Vm,r as LO,rb as ql,rc as pM,rd as Hm,s as DO,sb as zl,sc as uM,sd as Km,t as $O,tb as QI,tc as mM,td as Wm,u as FO,ub as Vl,uc as Kp,ud as Xm,v as GO,vb as Hl,vc as Wp,vd as Ym,w as kt,wb as Kl,wc as Zp,wd as Jm,x as UO,xb as Wl,xc as Qp,xd as Zm,y as jO,yb as Xl,yd as Qm,z as xt,zb as eR,zc as eu,zd as ef}from"./chunks/chunk-PSNS537F.js";import{$ as Lc,$a as Vc,A as kI,B as xI,C as NI,D as vc,E as Oc,F as Ic,G as Rc,H as Mc,I as LI,J as Pc,K as kc,Ka as Dt,L as xc,La as $t,Ma as Ft,Na as Gt,Oa as Fc,Qa as Gc,Ra as Uc,Sa as jc,U as DI,V as $I,X as FI,Xa as Bc,Y as GI,Ya as qc,Z as UI,_ as Nc,_a as zc,a as VE,aa as Dc,ab as Hc,b as HE,ba as $c,bb as Kc,c as KE,ca as Lt,cb as Wc,d as Wi,e as Xi,eb as Xc,f as Yi,fb as Yc,g as Ji,gb as Jc,h as Zi,j as wc,k as Sc,m as Ec,n as Ac,o as TI,p as CI,q as wI,r as SI,s as EI,t as AI,u as vI,v as OI,w as II,x as RI,y as MI,z as PI}from"./chunks/chunk-YH6H3UVE.js";import{$ as CO,$a as Ip,$b as AM,$c as iP,Aa as tp,Ab as AR,Ac as ZM,Ba as rp,Bc as QM,Ca as op,Cb as xR,Cc as eP,Da as np,Db as NR,Dc as tP,Ea as ip,Eb as LR,Ec as jt,Fa as sp,Fb as DR,Fc as ku,G as uO,Ga as ap,Gb as $R,Gc as xu,H as mO,Ha as dp,Hb as gu,Hc as Nu,I as fO,Ia as cp,Ib as yu,Ic as Lu,J as _O,Ja as lp,Jb as bu,Jc as Du,K as hO,Ka as pp,Kb as Tu,Kc as $u,L as gO,La as up,Lb as Cu,Lc as Fu,M as yO,Ma as mp,Mb as wu,Mc as Gu,N as bO,Na as fp,Nb as Ou,Nc as Uu,O as oc,Oa as _p,Ob as Iu,Oc as ju,P as nc,Pa as hp,Pb as Ru,Pc as Bu,Q as ic,Qa as gp,Qb as Mu,Qc as qu,R as sc,Ra as yp,Rb as gM,Rc as zu,S as ac,Sa as bp,Sb as yM,Sc as Vu,T as dc,Ta as Tp,Tb as bM,Tc as Hu,U as cc,Ua as Cp,Ub as TM,Uc as Ku,V as lc,Va as wp,Vb as CM,Vc as Bt,W as pc,Wa as Sp,Wb as wM,Wc as Wu,X as uc,Xa as Ep,Xb as SM,Xc as rP,Y as mc,Ya as Ap,Yc as oP,Z as ze,Za as vp,Zb as Pu,Zc as nP,_ as TO,_a as Op,_b as EM,_c as Xu,aa as wO,ac as vM,ad as PP,b as DE,ba as SO,bc as OM,bd as kP,c as $E,ca as EO,cc as IM,cd as xP,d as FE,da as AO,db as aR,dc as RM,dd as NP,e as jE,eb as dR,ec as MM,ed as LP,f as BE,fb as cR,fc as PM,g as qE,ga as vO,gb as lR,gc as kM,h as zE,ha as OO,hb as pR,hc as xM,i as Yv,ia as IO,ib as uR,ic as NM,j as Jv,ja as RO,jb as mR,jc as LM,k as Zv,ka as MO,kb as fR,kc as DM,l as Qv,la as PO,lb as _R,lc as $M,m as eO,ma as kO,mb as hR,mc as FM,n as tO,na as fc,nb as gR,nc as GM,o as rO,oa as yl,ob as yR,oc as UM,p as oO,pa as bl,pb as bR,pc as jM,q as nO,qa as Tl,qc as BM,r as iO,ra as Cl,rc as qM,s as sO,sa as JI,sc as zM,t as aO,tb as TR,tc as VM,u as dO,ua as wl,uc as HM,v as cO,va as Yl,vb as CR,vc as KM,w as lO,wa as Jl,wb as wR,wc as WM,x as pO,xa as Zl,xc as XM,ya as Ql,yb as SR,yc as YM,za as ep,zb as ER,zc as JM}from"./chunks/chunk-IFPJDJUM.js";import{$ as De,$a as Wo,$b as yn,$c as wn,$d as vC,$e as lw,$f as dS,$g as mi,$h as XS,$j as Ts,$k as Ta,$m as cv,Aa as Vo,Ab as wT,Ad as lC,Ae as $n,Af as Iw,Ag as ri,Aj as tA,Ak as Ks,Al as dA,An as pd,Ao as Ld,Ba as Ho,Bb as ST,Bc as $T,Bd as pC,Be as Fn,Bf as Rw,Bg as oi,Bi as uE,Bj as rA,Bk as Ws,Bl as cA,Bn as ud,Bo as Dd,Cb as ET,Cc as FT,Cd as uC,Ce as Gn,Cf as Mw,Cg as ni,Ch as PS,Ci as mE,Cj as oA,Ck as Xs,Cl as lA,Cn as md,Co as $d,Db as AT,Dd as mC,De as Un,Df as Pw,Dg as ii,Dh as kS,Di as fE,Dj as nA,Dk as Ys,Dl as pA,Do as Fd,Eb as vT,Ee as jn,Ef as kw,Eg as CS,Eh as xS,Ei as _E,Ej as iA,Ek as Js,El as uA,En as fd,Eo as Gd,Fb as OT,Fc as GT,Fd as fC,Fe as Bn,Ff as xw,Fg as wS,Fh as NS,Fi as hE,Fj as Qi,Fk as Zs,Fl as mA,Fn as _d,Fo as Ud,G as Kb,Gb as IT,Gd as _C,Ge as qn,Gf as Nw,Gh as LS,Gj as es,Gk as Qs,Gl as fA,Gm as XA,Gn as hd,Go as jd,Hb as Qo,Hc as UT,Hd as hC,He as zn,Hf as Lw,Hh as DS,Hi as Ui,Hj as ts,Hk as ea,Hm as YA,Hn as gd,Ho as Bd,Ib as en,Id as gC,Ie as HC,If as Dw,Ig as si,Ih as $S,Ii as ji,Ij as rs,Ik as ta,Il as _A,Im as JA,In as yd,Io as qd,J as Wb,Jb as tn,Jd as yC,Je as KC,Jf as $w,Jg as ai,Jh as FS,Ji as Bi,Jj as os,Jk as ra,Jl as hA,Jm as ZA,Jn as bd,Jo as zd,Kb as rn,Kd as bC,Ke as WC,Kf as Fw,Kg as SS,Kh as GS,Kj as ns,Kk as oa,Km as QA,Kn as Td,Ko as Vd,Lb as on,Ld as TC,Le as XC,Lf as Gw,Lg as di,Lh as US,Lj as is,Lk as na,Lm as ev,Ln as Cd,Lo as Hd,M as Xb,Mb as nn,Md as CC,Me as YC,Mf as Uw,Mg as ci,Mh as jS,Mi as gE,Mj as ss,Mk as ia,Ml as sd,Mm as tv,Mn as Rv,Mo as Kd,Nb as sn,Nd as wC,Ne as JC,Nf as jw,Ng as ES,Nh as BS,Nj as as,Nk as sa,Nl as gA,Nm as rv,Nn as Mv,No as Wd,Ob as Fe,Od as SC,Oe as ZC,Of as Bw,Og as li,Oh as qS,Oj as ds,Ok as aa,Ol as yA,Om as ov,On as Pv,Oo as Xd,Pb as Ge,Pd as EC,Pe as QC,Pf as qw,Pg as pi,Pj as cs,Pk as da,Pl as bA,Pm as Ot,Pn as kv,Po as Yd,Q as Yb,Qa as dT,Qb as an,Qe as ew,Qg as D,Qh as zS,Qi as qi,Qj as ls,Qk as ca,Ql as TA,Qn as xv,Qo as Jd,R as ue,Ra as cT,Rb as dn,Re as tw,Rf as zw,Rg as ui,Rh as xi,Ri as At,Rj as ps,Rk as la,Rl as CA,Rm as nv,Rn as Nv,Ro as Zd,S as Jb,Sa as lT,Sb as cn,Sf as Vw,Sh as Ni,Si as yE,Sj as us,Sk as pa,Sl as wA,Sn as Lv,So as Qd,T as b,Tb as ln,Tc as jT,Te as rw,Tf as Wn,Th as VS,Ti as bE,Tj as ms,Tk as ua,Tm as iv,Tn as Dv,To as ec,Ub as pn,Uc as BT,Ud as Ct,Ue as ow,Uf as Xn,Ui as TE,Uj as fs,Uk as ma,Ul as SA,Uo as tc,V as $o,Va as Ko,Vb as un,Vc as qT,Vd as wt,Ve as nw,Vf as Yn,Vi as CE,Vj as _s,Vk as fa,Vl as EA,Vo as rc,W as bt,Wa as pT,Wb as mn,Wd as In,We as iw,Wf as oS,Wi as wE,Wk as _a,Wl as AA,Wo as Mt,X as me,Xa as uT,Xb as fn,Xc as zT,Xd as Rn,Xe as sw,Xf as nS,Xi as SE,Xj as hs,Xk as ha,Xl as vA,Xm as sv,Xn as Rt,Y as Fo,Ya as mT,Yb as _n,Yc as VT,Yd as Mn,Ye as aw,Yf as iS,Yg as AS,Yh as HS,Yi as EE,Yj as gs,Yk as ga,Ym as av,Yn as $v,Za as fT,Zb as hn,Ze as dw,Zf as sS,Zg as vS,Zh as KS,Zi as AE,Zj as ys,Zk as ya,Zl as OA,Zm as dv,Zn as Fv,_b as gn,_c as HT,_d as AC,_e as cw,_f as aS,_g as OS,_h as WS,_i as vE,_j as bs,_k as ba,_l as IA,_m as ad,_n as Gv,aa as Go,ab as Xo,ac as bn,ae as OC,af as pw,ag as cS,ah as fi,aj as OE,ak as Cs,al as Ca,am as RA,ao as Uv,b as Io,bb as $e,bd as Sn,be as IC,bf as uw,bg as lS,bh as _i,bi as YS,bj as IE,bk as ws,bl as wa,bm as MA,bn as lv,bo as jv,c as Ro,ca as Zb,cb as _T,cd as En,ce as RC,cf as mw,cg as pS,ch as hi,ci as JS,cj as RE,ck as Ss,cl as Sa,cm as PA,cn as pv,d as Mo,da as Qb,db as hT,dc as RT,de as MC,df as fw,dg as uS,dh as gi,dj as ME,dk as Es,dl as Ea,dm as kA,dn as uv,e as Po,ea as eT,eb as Yo,ee as PC,ef as _w,eg as mS,eh as yi,ei as ZS,ej as zi,ek as As,el as Aa,em as xA,en as mv,eo as Bv,f as xe,fa as tT,fb as Jo,fc as Tn,fd as KT,fe as kC,ff as St,fg as fS,fh as bi,fj as Vi,fk as vs,fl as va,fm as NA,fn as fv,fo as qv,g as ko,ga as rT,gc as Cn,gd as WT,ge as xC,gg as _S,gh as Ti,gi as QS,gk as Os,gl as Oa,gm as LA,gn as _v,go as zv,h as L,ha as oT,hb as Zo,hc as MT,hd as XT,he as NC,hf as Et,hh as Ci,hi as eE,hj as Hi,hk as Is,hl as Ia,hm as DA,hn as hv,ho as Vv,i as Ne,id as YT,ie as LC,if as Vn,ih as wi,ii as tE,ij as PE,ik as Rs,il as Ra,im as $A,in as gv,io as Hv,j as xo,ja as nT,jd as JT,je as DC,jf as Hn,jh as Si,ji as rE,jk as Ms,jl as Ma,jn as yv,jo as Kv,k as No,ka as iT,kd as ZT,ke as $C,kf as fe,kh as Ei,ki as oE,kj as kE,kk as Ps,kl as Pa,km as FA,kn as bv,ko as Wv,l as Lo,ld as QT,le as FC,lh as Ai,li as nE,lj as xE,lk as ks,ll as ka,lm as GA,ln as It,lo as Xv,m as Do,md as An,me as GC,mf as hw,mg as hS,mh as vi,mi as iE,mj as NE,mk as xs,ml as xa,mm as UA,mn as Tv,n as Fb,na as sT,nd as eC,ne as UC,nh as Oi,ni as sE,nk as Ns,nm as jA,no as wd,o as Le,od as tC,oe as jC,of as gw,oh as IS,oi as aE,oj as LE,ok as Ls,ol as qe,om as BA,oo as Sd,p as yt,pd as rC,pe as BC,pf as Ue,pg as Jn,ph as RS,pk as Ds,pl as ee,pn as Cv,po as Ed,q as Gb,qa as aT,qd as oC,qe as qC,qf as yw,qg as gS,qh as Ii,qj as WE,qk as $s,ql as Na,qm as qA,qn as wv,qo as Ad,r as Ub,ra as Uo,rd as nC,re as zC,rf as bw,rg as Zn,rh as MS,rj as XE,rk as Fs,rl as Ha,rn as Sv,ro as vd,s as jb,sa as jo,sc as PT,sd as iC,se as VC,sf as Tw,sh as Ri,si as dE,sj as YE,sk as Gs,sl as Ka,sm as zA,sn as Ev,so as Od,t as Bb,ta as Bo,tb as R,td as sC,tf as Cw,tg as yS,th as Mi,tj as je,tk as Us,tl as Wa,tm as VA,tn as Av,to as Id,u as z,ub as gT,uc as kT,ud as aC,ue as Pn,uf as ww,uh as Pi,ui as cE,uj as JE,uk as js,ul as Xa,um as HA,un as vv,uo as Rd,v as qb,vb as Tt,vc as xT,vd as vn,ve as kn,vf as Sw,vg as bS,vh as ki,vj as ZE,vk as Bs,vl as Ya,vm as KA,vn as Ov,vo as Md,wb as yT,wc as NT,wd as dC,we as xn,wf as Ew,wg as TS,wj as QE,wk as qs,wl as Ja,wm as WA,wn as Iv,wo as Pd,x as zb,xa as qo,xb as bT,xc as LT,xd as On,xe as Nn,xf as Aw,xg as Qn,xi as lE,xj as vt,xk as zs,xl as Za,xn as dd,xo as kd,y as Vb,yb as TT,yc as DT,ye as Ln,yf as vw,yg as ei,yi as Li,yj as Be,yk as Vs,yl as Qa,yn as cd,yo as xd,z as Hb,za as zo,zb as CT,zd as cC,ze as Dn,zf as Ow,zg as ti,zi as pE,zj as eA,zk as Hs,zl as ed,zn as ld,zo as Nd}from"./chunks/chunk-DJDRHJBP.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]="8f11e0bf-4115-55a8-bd39-c360f43cdc09")}catch{}})();var V="2026-07-28",mk=["2025-11-25","2025-06-18"],Ye=[V],m={headerMismatch:-32020,missingRequiredClientCapability:-32021,unsupportedProtocolVersion:-32022,invalidParams:-32602},E={clientCapabilities:"io.modelcontextprotocol/clientCapabilities",clientInfo:"io.modelcontextprotocol/clientInfo",logLevel:"io.modelcontextprotocol/logLevel",protocolVersion:"io.modelcontextprotocol/protocolVersion",serverInfo:"io.modelcontextprotocol/serverInfo"},tr=["debug","info","notice","warning","error","critical","alert","emergency"],u=class extends Error{code;data;constructor(t,r,o={}){super(t),this.name="PmMcpProtocolError",this.code=r,this.data=o}};function h(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Fh(e){if(e===void 0)return;if(!h(e))throw new u("Invalid MCP clientInfo metadata",m.invalidParams,{field:E.clientInfo,expected:"object"});let t=typeof e.name=="string"?e.name.trim():"",r=typeof e.version=="string"?e.version.trim():"";if(t.length===0||r.length===0)throw new u("Invalid MCP clientInfo metadata",m.invalidParams,{field:E.clientInfo,required:["name","version"]});let o={name:t.slice(0,128),version:r.slice(0,128)};return typeof e.description=="string"&&e.description.trim()&&(o.description=e.description.trim().slice(0,1024)),typeof e.websiteUrl=="string"&&e.websiteUrl.trim()&&(o.websiteUrl=e.websiteUrl.trim().slice(0,2048)),o}function Gh(e){if(e!==void 0){if(typeof e!="string"||!tr.includes(e))throw new u("Invalid MCP logLevel metadata",m.invalidParams,{field:E.logLevel,allowed:[...tr]});return e}}function Je(e){let t=h(e)?e._meta:void 0;if(!h(t))throw new u("Missing required MCP request metadata",m.invalidParams,{required:[E.protocolVersion,E.clientCapabilities]});let r=t[E.protocolVersion];if(typeof r!="string"||!Ye.includes(r))throw new u("Unsupported protocol version",m.unsupportedProtocolVersion,{supported:[...Ye],requested:typeof r=="string"?r:null});let o=t[E.clientCapabilities];if(!h(o))throw new u("Invalid MCP client capabilities metadata",m.invalidParams,{field:E.clientCapabilities,expected:"object"});let n=Fh(t[E.clientInfo]),s=Gh(t[E.logLevel]);return{protocolVersion:V,clientCapabilities:o,...n?{clientInfo:n}:{},...s?{logLevel:s}:{}}}function fk(e,t){if(t!==e.protocolVersion)throw new u("MCP protocol header does not match request metadata",m.headerMismatch,{header:t??null,metadata:e.protocolVersion})}function _k(e,t){let r=t.filter(o=>!Object.prototype.hasOwnProperty.call(e.clientCapabilities,o));if(r.length>0)throw new u("Missing required client capability",m.missingRequiredClientCapability,{requiredCapabilities:Object.fromEntries(r.map(o=>[o,{}]))})}function hk(e,t){let r=e.clientCapabilities.extensions;return h(r)&&h(r[t])}function Ze(e,t){let r=h(e._meta)?e._meta:{};return{...e,_meta:{...r,[E.serverInfo]:{...t}}}}function Uh(e,t){return Ze({...e,resultType:"complete"},t)}function gk(e){let t=e.ttlMs??6e4;if(!Number.isFinite(t)||t<0)throw new u("Invalid MCP discovery cache TTL",m.invalidParams,{ttlMs:t});return Uh({supportedVersions:[...Ye],capabilities:structuredClone(e.capabilities),ttlMs:t,cacheScope:"public",...e.instructions?{instructions:e.instructions}:{}},e.serverInfo)}function yk(e,t){if(h(e)&&typeof e.resultType=="string")return e.resultType;if(t==="legacy")return"complete";throw new u("Modern MCP result is missing resultType",m.invalidParams,{required:"resultType"})}import{createHash as nr,createHmac as ir,timingSafeEqual as jh}from"node:crypto";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="15b81dd0-ef1a-58be-b6ee-5975b6778993")}catch{}})();var Bh=["elicitation/create","roots/list","sampling/createMessage"],rr=class extends Error{inputRequests;requestState;constructor(t){super("MCP operation requires additional input"),this.name="PmMcpInputRequiredError",this.inputRequests=t.inputRequests,this.requestState=t.requestState}},sr=/^[a-zA-Z][a-zA-Z0-9_.-]{0,63}$/u,ge=32,et=64*1024,ye=16*1024,Qe={maxBytes:256*1024,maxDepth:32,maxNodes:4096};function qh(e){return e==="elicitation/create"?"elicitation":e==="sampling/createMessage"?"sampling":"roots"}function be(e,t,r){let o;try{o=JSON.stringify(e)}catch{throw new u(`Invalid ${r}: value is not JSON serializable`,m.invalidParams,{field:r})}if(Buffer.byteLength(o,"utf8")>t)throw new u(`Invalid ${r}: payload exceeds the protocol bound`,m.invalidParams,{field:r,maximumBytes:t})}function tt(e,t){if(!h(e))throw new u("Invalid MCP inputRequests",m.invalidParams,{field:"inputRequests",expected:"object"});let r=Object.entries(e);if(r.length===0||r.length>ge)throw new u("Invalid MCP inputRequests count",m.invalidParams,{minimum:1,maximum:ge,observed:r.length});let o={};for(let[n,s]of r){if(!sr.test(n)||!h(s))throw new u("Invalid MCP input request entry",m.invalidParams,{field:`inputRequests.${n}`});let i=s.method;if(typeof i!="string"||!Bh.includes(i))throw new u("Unsupported MCP input request method",m.invalidParams,{field:`inputRequests.${n}.method`,method:i??null});let a=qh(i);if(!Object.prototype.hasOwnProperty.call(t.clientCapabilities,a))throw new u("Missing required client capability",m.missingRequiredClientCapability,{requiredCapabilities:{[a]:{}}});if(!h(s.params))throw new u("Invalid MCP input request parameters",m.invalidParams,{field:`inputRequests.${n}.params`,expected:"object"});o[n]={method:i,params:structuredClone(s.params)}}return be(o,et,"inputRequests"),o}function ar(e){if(!h(e))throw new u("Invalid MCP inputResponses",m.invalidParams,{field:"inputResponses",expected:"object"});let t=Object.entries(e);if(t.length>ge)throw new u("Invalid MCP inputResponses count",m.invalidParams,{maximum:ge,observed:t.length});let r={};for(let[o,n]of t){if(!sr.test(o)||!h(n))throw new u("Invalid MCP input response entry",m.invalidParams,{field:`inputResponses.${o}`});r[o]=structuredClone(n)}return be(r,et,"inputResponses"),r}function wk(e){let t=e.requestState?.trim();if(t&&Buffer.byteLength(t,"utf8")>ye)throw new u("Invalid MCP requestState: payload exceeds the protocol bound",m.invalidParams,{field:"requestState",maximumBytes:ye});let r=e.inputRequests===void 0?void 0:tt(e.inputRequests,e.requestContext);if(r===void 0&&!t)throw new u("InputRequiredResult requires inputRequests or requestState",m.invalidParams,{requiredAnyOf:["inputRequests","requestState"]});return{resultType:"input_required",...r?{inputRequests:r}:{},...t?{requestState:t}:{},_meta:{[E.serverInfo]:{...e.serverInfo}}}}function dr(e){let t=Buffer.from(e);if(t.byteLength<32)throw new u("MCP requestState signing key must contain at least 32 bytes",m.invalidParams,{minimumBytes:32});return t}function Sk(e,t){if(!Number.isSafeInteger(e.expiresAt)||e.expiresAt<=0||e.method.trim().length===0||e.parameterDigest.trim().length===0||e.principal.trim().length===0)throw new u("Invalid MCP requestState payload",m.invalidParams);let r=Buffer.from(JSON.stringify({version:1,...e}),"utf8");if(r.byteLength>ye/2)throw new u("MCP requestState payload exceeds the protocol bound",m.invalidParams,{maximumBytes:ye/2});let o=r.toString("base64url"),n=ir("sha256",dr(t)).update(o).digest("base64url");return`${o}.${n}`}function zh(e){if(!h(e)||e.version!==1)throw new u("Invalid MCP requestState payload",m.invalidParams,{field:"requestState"});let{expiresAt:t,method:r,parameterDigest:o,principal:n,state:s}=e;if(typeof t!="number"||!Number.isSafeInteger(t))throw new u("Invalid MCP requestState payload",m.invalidParams,{field:"requestState"});if(typeof r!="string"||typeof o!="string"||typeof n!="string")throw new u("Invalid MCP requestState payload",m.invalidParams,{field:"requestState"});return{expiresAt:t,method:r,parameterDigest:o,principal:n,state:s}}function Ek(e,t,r){let[o,n,s]=e.split(".");if(!o||!n||s!==void 0)throw new u("Invalid MCP requestState encoding",m.invalidParams,{field:"requestState"});let i=Buffer.from(n,"base64url"),a=ir("sha256",dr(t)).update(o).digest();if(i.byteLength!==a.byteLength||!jh(i,a))throw new u("Invalid MCP requestState signature",m.invalidParams,{field:"requestState"});let d;try{d=JSON.parse(Buffer.from(o,"base64url").toString("utf8"))}catch{d=null}let c=zh(d),{expiresAt:l,method:p,parameterDigest:f,principal:_}=c;if(l<(r.nowMs??Date.now()))throw new u("Expired MCP requestState",m.invalidParams,{field:"requestState",expiredAt:l});if(p!==r.method||f!==r.parameterDigest||_!==r.principal)throw new u("MCP requestState binding mismatch",m.invalidParams,{field:"requestState"});return c}function Ak(e){return be(e,et,"request parameters"),nr("sha256").update(JSON.stringify(e)).digest("hex")}var or=class{#e=new Set;#t;constructor(t=4096){if(!Number.isSafeInteger(t)||t<1)throw new u("Invalid MCP replay guard capacity",m.invalidParams,{maximumEntries:t});this.#t=t}consume(t){let r=nr("sha256").update(t).digest("hex");if(this.#e.has(r))throw new u("MCP requestState replay detected",m.invalidParams,{field:"requestState"});if(this.#e.size>=this.#t){let o=this.#e.values().next().value;this.#e.delete(o)}this.#e.add(r)}};function Vh(e){if(!Number.isSafeInteger(e.ttlMs)||e.ttlMs<0||e.cacheScope!=="public"&&e.cacheScope!=="private")throw new u("Invalid MCP cache policy",m.invalidParams,{ttlMs:e.ttlMs,cacheScope:e.cacheScope});return{ttlMs:e.ttlMs,cacheScope:e.cacheScope}}function vk(e,t){return{...e,...Vh(t)}}function Hh(e){return e.replaceAll("~1","/").replaceAll("~0","~")}function Kh(e,t){if(t==="#")return e;if(!t.startsWith("#/"))return;let r=e;for(let o of t.slice(2).split("/").map(Hh)){if(!h(r)&&!Array.isArray(r)||!Object.prototype.hasOwnProperty.call(r,o))return;r=r[o]}return r}function Wh(e){let t=e.maxBytes??Qe.maxBytes,r=e.maxDepth??Qe.maxDepth,o=e.maxNodes??Qe.maxNodes;if(!Number.isSafeInteger(t)||t<2)throw new u("Invalid MCP JSON Schema work bounds",m.invalidParams);if(!Number.isSafeInteger(r)||r<1)throw new u("Invalid MCP JSON Schema work bounds",m.invalidParams);if(!Number.isSafeInteger(o)||o<1)throw new u("Invalid MCP JSON Schema work bounds",m.invalidParams);return{maximumBytes:t,maximumDepth:r,maximumNodes:o}}function Xh(e,t){let r=Array.isArray(e.value)?e.value:h(e.value)?Object.values(e.value):[];for(let o of r)t.push({value:o,depth:e.depth+1})}function Yh(e,t){if(!h(t)||typeof t.$ref!="string")return;let r=t.$ref;if(r.startsWith("#")&&Kh(e,r)===void 0)throw new u("MCP JSON Schema contains an unresolved local reference",m.invalidParams,{reference:r})}function Ok(e,t={}){let{maximumBytes:r,maximumDepth:o,maximumNodes:n}=Wh(t);if(typeof e!="boolean"&&!h(e))throw new u("Invalid MCP JSON Schema root",m.invalidParams,{expected:"object or boolean"});be(e,r,"JSON Schema");let s=[{value:e,depth:0}],i=0;for(;s.length>0;){let a=s.pop();if(i+=1,i>n||a.depth>o)throw new u("MCP JSON Schema exceeds validation work bounds",m.invalidParams,{maximumDepth:o,maximumNodes:n});Yh(e,a.value),Xh(a,s)}return structuredClone(e)}import{randomUUID as Jh}from"node:crypto";import{readFile as Zh}from"node:fs/promises";import cr from"node:path";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f3e94896-b2a0-561c-902b-71c28ddde2a1")}catch{}})();var Lk="io.modelcontextprotocol/tasks",Qh=["working","input_required","completed","failed","cancelled"],eg=/^mcp-task-[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/iu,tg=3600*1e3,rg=1e3,Ce=1024,og=30,ng=2e3;function rt(e){return new u(e,m.invalidParams,{code:"mcp_task_not_found_or_not_authorized"})}function Te(e){let t=e.trim();if(!eg.test(t))throw rt("Unknown MCP task");return t}function lr(e,t){if(typeof e!="string"||!Number.isFinite(Date.parse(e)))throw new u("Corrupt MCP task record",m.invalidParams,{field:t});return e}function pr(e){if(!h(e)||typeof e.code!="number"||!Number.isFinite(e.code)||typeof e.message!="string")throw new u("Corrupt MCP task error",m.invalidParams);return{code:e.code,message:e.message.slice(0,Ce),...h(e.data)?{data:structuredClone(e.data)}:{}}}function ig(e){if(!Qh.includes(e))throw new u("Corrupt MCP task record",m.invalidParams);return e}function sg(e){if(typeof e!="string"||e.length===0)throw new u("Corrupt MCP task record",m.invalidParams);return e}function ag(e){if(typeof e!="number"||!Number.isSafeInteger(e)||e<1)throw new u("Corrupt MCP task record",m.invalidParams);return e}function dg(e){if(e!==null&&(typeof e!="number"||!Number.isSafeInteger(e)||e<0))throw new u("Corrupt MCP task record",m.invalidParams);return e}function cg(e){if(e!==void 0){if(typeof e!="number"||!Number.isSafeInteger(e)||e<0)throw new u("Corrupt MCP task record",m.invalidParams);return e}}function lg(e){if(!Array.isArray(e)||e.some(t=>typeof t!="string"))throw new u("Corrupt MCP task record",m.invalidParams);return[...e]}function pg(e){if(!h(e)||e.version!==1)throw new u("Corrupt MCP task record",m.invalidParams);let t=typeof e.taskId=="string"?Te(e.taskId):"",r=ig(e.status),o=sg(e.principal),n=ag(e.workerPid),s=dg(e.ttlMs),i=cg(e.pollIntervalMs),a={version:1,taskId:t,status:r,principal:o,workerPid:n,createdAt:lr(e.createdAt,"createdAt"),lastUpdatedAt:lr(e.lastUpdatedAt,"lastUpdatedAt"),ttlMs:s,consumedInputKeys:lg(e.consumedInputKeys),...typeof e.statusMessage=="string"?{statusMessage:e.statusMessage.slice(0,Ce)}:{},...typeof i=="number"?{pollIntervalMs:i}:{}};if(h(e.inputRequests)&&(a.inputRequests=structuredClone(e.inputRequests)),h(e.inputResponses)&&(a.inputResponses=structuredClone(e.inputResponses)),h(e.result)&&(a.result=structuredClone(e.result)),e.error!==void 0&&(a.error=pr(e.error)),a.status==="input_required"&&!a.inputRequests||a.status==="completed"&&!a.result||a.status==="failed"&&!a.error)throw new u("Corrupt MCP task status payload",m.invalidParams,{status:a.status});return a}function H(e){let t={taskId:e.taskId,status:e.status,createdAt:e.createdAt,lastUpdatedAt:e.lastUpdatedAt,ttlMs:e.ttlMs,...e.statusMessage?{statusMessage:e.statusMessage}:{},...e.pollIntervalMs===void 0?{}:{pollIntervalMs:e.pollIntervalMs}};return e.status==="input_required"?{...t,status:"input_required",inputRequests:structuredClone(e.inputRequests)}:e.status==="completed"?{...t,status:"completed",result:structuredClone(e.result)}:e.status==="failed"?{...t,status:"failed",error:structuredClone(e.error)}:e.status==="cancelled"?{...t,status:"cancelled"}:{...t,status:"working"}}function re(e){return e==="completed"||e==="failed"||e==="cancelled"}function ug(e){try{return process.kill(e,0),!0}catch(t){return!(typeof t=="object"&&t!==null&&"code"in t&&t.code==="ESRCH")}}var ot=class{#e;#t;#r;#o;#i;constructor(t){this.#e=cr.resolve(t.pmRoot),this.#t=t.owner?.trim()||"pm-mcp",this.#r=t.now??(()=>new Date),this.#o=t.taskIdFactory??(()=>`mcp-task-${Jh()}`),this.#i=t.workerPid??process.pid}#s(t){return cr.join(this.#e,"runtime","mcp-tasks","records",`${Te(t)}.json`)}async#d(t){try{return pg(JSON.parse(await Zh(this.#s(t),"utf8")))}catch(r){throw me(r)||r instanceof SyntaxError?rt("Unknown MCP task"):r}}async#a(t){await De(this.#s(t.taskId),`${JSON.stringify(t,null,2)}
|
|
2
|
+
`)}async#n(t,r,o){let n=Te(t),s=await Ue(this.#e,n,og,this.#t,!1,!1,ng);try{let i=await this.#d(n);if(i.principal!==r)throw rt("Unknown MCP task");let a=o(i);return await this.#a(a),a}finally{await s()}}async create(t){let r=Te(this.#o()),o=t.principal.trim(),n=t.ttlMs===void 0?tg:t.ttlMs,s=t.pollIntervalMs??rg;if(o.length===0||n!==null&&(!Number.isSafeInteger(n)||n<0)||!Number.isSafeInteger(s)||s<0)throw new u("Invalid MCP task creation options",m.invalidParams);let i=this.#r().toISOString(),a={version:1,taskId:r,status:"working",createdAt:i,lastUpdatedAt:i,ttlMs:n,pollIntervalMs:s,principal:o,workerPid:this.#i,consumedInputKeys:[],...t.statusMessage?.trim()?{statusMessage:t.statusMessage.trim().slice(0,Ce)}:{}};return await this.#a(a),{...H(a),resultType:"task"}}async get(t,r){return H(await this.#n(t,r,o=>{if(re(o.status))return o;let n=this.#r().getTime(),s=o.ttlMs!==null&&Date.parse(o.createdAt)+o.ttlMs<=n,i=o.workerPid!==this.#i&&!ug(o.workerPid);return!s&&!i?o:{...o,status:"failed",statusMessage:s?"Task retention expired before completion.":"Task worker ended before recording a terminal result.",lastUpdatedAt:this.#r().toISOString(),error:{code:-32603,message:s?"MCP task expired":"MCP task worker unavailable after restart",data:{recoverable:!1,createNewTask:!0}},inputRequests:void 0}}))}async requireInput(t){let r=tt(t.inputRequests,t.requestContext);return H(await this.#n(t.taskId,t.principal,o=>{if(re(o.status))return o;let n=Object.keys(r).filter(s=>o.consumedInputKeys.includes(s));if(n.length>0)throw new u("MCP task input request keys must be unique for the task lifetime",m.invalidParams,{reused:n});return{...o,status:"input_required",statusMessage:t.statusMessage?.trim().slice(0,Ce),lastUpdatedAt:this.#r().toISOString(),inputRequests:r}}))}async update(t,r,o){let n=ar(o),s=[],i=[];return await this.#n(t,r,a=>{if(a.status!=="input_required"||!a.inputRequests)return a;let d={...a.inputRequests},c=a.inputResponses?{...a.inputResponses}:{};for(let[l,p]of Object.entries(n))Object.prototype.hasOwnProperty.call(d,l)&&(c[l]=p,delete d[l],s.push(l));return i=Object.keys(d).sort(),s.length===0?a:{...a,status:i.length===0?"working":"input_required",lastUpdatedAt:this.#r().toISOString(),inputRequests:i.length===0?void 0:d,inputResponses:c,consumedInputKeys:[...new Set([...a.consumedInputKeys,...s])].sort()}}),{acceptedKeys:s.sort(),remainingKeys:i}}async takeInputResponses(t,r){let o={};return await this.#n(t,r,n=>(o=structuredClone(n.inputResponses??{}),Object.keys(o).length===0?n:{...n,inputResponses:void 0})),o}async complete(t,r,o){return H(await this.#n(t,r,n=>re(n.status)?n:{...n,status:"completed",statusMessage:"Task completed.",lastUpdatedAt:this.#r().toISOString(),result:structuredClone(o),inputRequests:void 0,error:void 0}))}async fail(t,r,o){let n=pr(o);return H(await this.#n(t,r,s=>re(s.status)?s:{...s,status:"failed",statusMessage:n.message,lastUpdatedAt:this.#r().toISOString(),error:n,inputRequests:void 0,result:void 0}))}async cancel(t,r){return H(await this.#n(t,r,o=>re(o.status)?o:{...o,status:"cancelled",statusMessage:"Task cancelled by the client.",lastUpdatedAt:this.#r().toISOString(),inputRequests:void 0,result:void 0,error:void 0}))}};function Dk(e){return new ot(e)}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="15cbe26a-5716-5e8c-8700-eb36a1a056d6")}catch{}})();var we="io.modelcontextprotocol/subscriptionId",ur=256,mr=2048,mg=5e3;function fg(e,t){return new Promise((r,o)=>{let n=setTimeout(()=>o(new Error("MCP subscription sink write timed out")),mg);n.unref(),Promise.resolve().then(()=>e(t)).then(()=>{clearTimeout(n),r()},s=>{clearTimeout(n),o(s instanceof Error?s:new Error(String(s)))})})}function nt(e,t){if(e!==void 0){if(typeof e!="boolean")throw new u("Invalid MCP subscription filter",m.invalidParams,{field:`notifications.${t}`,expected:"boolean"});return e||void 0}}function _g(e){if(!h(e))throw new u("Invalid MCP subscription filter",m.invalidParams,{field:"notifications",expected:"object"});let t=nt(e.toolsListChanged,"toolsListChanged"),r=nt(e.promptsListChanged,"promptsListChanged"),o=nt(e.resourcesListChanged,"resourcesListChanged"),n;if(e.resourceSubscriptions!==void 0){if(!Array.isArray(e.resourceSubscriptions)||e.resourceSubscriptions.length>ur)throw new u("Invalid MCP resource subscriptions",m.invalidParams,{field:"notifications.resourceSubscriptions",maximum:ur});let s=new Set;for(let i of e.resourceSubscriptions){if(typeof i!="string"||i.trim().length===0||Buffer.byteLength(i,"utf8")>mr)throw new u("Invalid MCP resource subscription URI",m.invalidParams,{field:"notifications.resourceSubscriptions",maximumBytes:mr});s.add(i)}s.size>0&&(n=[...s].sort())}return{...t?{toolsListChanged:t}:{},...r?{promptsListChanged:r}:{},...o?{resourcesListChanged:o}:{},...n?{resourceSubscriptions:n}:{}}}function hg(e,t){return{...e.toolsListChanged&&t.tools?.listChanged?{toolsListChanged:!0}:{},...e.promptsListChanged&&t.prompts?.listChanged?{promptsListChanged:!0}:{},...e.resourcesListChanged&&t.resources?.listChanged?{resourcesListChanged:!0}:{},...e.resourceSubscriptions&&t.resources?.subscribe?{resourceSubscriptions:[...e.resourceSubscriptions]}:{}}}var fr=class{#e;#t=new Map;#r;constructor(t){this.#e=structuredClone(t.capabilities),this.#r={...t.serverInfo}}get size(){return this.#t.size}async open(t){if(this.#t.has(t.id))throw new u("MCP subscription id is already active",m.invalidParams,{subscriptionId:t.id});let r=hg(_g(t.notifications),this.#e),o={filter:r,sink:t.sink,writeQueue:Promise.resolve()};this.#t.set(t.id,o);try{await this.#o(t.id,o,{jsonrpc:"2.0",method:"notifications/subscriptions/acknowledged",params:{_meta:{[we]:t.id},notifications:structuredClone(r)}},!0)}catch(n){throw this.#t.delete(t.id),n}return structuredClone(r)}async emitListChanged(t){let r=`${t}ListChanged`,o=`notifications/${t}/list_changed`,n=[];for(let[s,i]of this.#t)i.filter[r]===!0&&n.push(this.#o(s,i,{jsonrpc:"2.0",method:o,params:{_meta:{[we]:s}}}));return(await Promise.all(n)).filter(Boolean).length}async emitResourceUpdated(t){let r=[];for(let[o,n]of this.#t)n.filter.resourceSubscriptions?.includes(t)&&r.push(this.#o(o,n,{jsonrpc:"2.0",method:"notifications/resources/updated",params:{_meta:{[we]:o},uri:t}}));return(await Promise.all(r)).filter(Boolean).length}async#o(t,r,o,n=!1){let s=r.writeQueue.then(async()=>{if(this.#t.get(t)!==r)return!1;try{return await fg(r.sink,o),!0}catch(i){if(this.#t.get(t)===r&&this.#t.delete(t),n)throw i;return!1}});return r.writeQueue=s.then(()=>{},()=>{}),s}close(t){if(this.#t.delete(t))return{...Ze({resultType:"complete",_meta:{[we]:t}},this.#r)}}closeAll(){let t=[];for(let r of this.#t.keys()){let o=this.close(r);t.push({id:r,result:o})}return t}};(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3681273a-e101-57a0-9446-982c450e7183")}catch{}})();var _r=/^=\?base64\?([A-Za-z0-9+/]*={0,2})\?=$/u,gg=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/u,hr=/^[\t\x20-\x7E]*$/u,gr=new Set(["prompts/get","resources/read","tools/call"]);function yg(e){let t=new Map;for(let[r,o]of Object.entries(e)){if(o===void 0)continue;let n=typeof o=="string"?o:o.join(", ");t.set(r.toLowerCase(),n)}return t}function A(e,t){throw new u(e,m.headerMismatch,{header:t})}function yr(e){let t=typeof e=="boolean"?String(e).toLowerCase():String(e);return t.length>0&&t.trim()===t&&hr.test(t)&&!_r.test(t)?t:`=?base64?${Buffer.from(t,"utf8").toString("base64")}?=`}function br(e,t){let r=_r.exec(e);if(r){let o=r[1],n=Buffer.from(o,"base64");return n.toString("base64")!==o||n.length===0?A("Malformed MCP Base64 header value",t):n.toString("utf8")}return e.length===0||e.trim()!==e||!hr.test(e)?A("Malformed MCP header value",t):e}function Se(e){return Array.isArray(e)?e.some(Se):h(e)?Object.prototype.hasOwnProperty.call(e,"x-mcp-header")||Object.values(e).some(Se):!1}function bg(e,t,r){let o=e["x-mcp-header"];if(o===void 0)return;let n=e.type;if(typeof o!="string"||!gg.test(o)||!["boolean","integer","string"].includes(String(n))||r.has(o.toLowerCase()))throw new u("Invalid MCP x-mcp-header annotation",m.invalidParams,{field:t.join("."),annotation:o});return r.add(o.toLowerCase()),{name:o,path:t,type:n}}function Tr(e){if(!h(e))throw new u("Invalid MCP tool schema",m.invalidParams,{field:"inputSchema",expected:"object"});let t=[],r=new Set,o=(n,s)=>{let i=n.properties;if(i!==void 0){if(!h(i))throw new u("Invalid MCP tool schema properties",m.invalidParams,{field:"inputSchema.properties"});for(let[a,d]of Object.entries(i)){if(!h(d))continue;let c=[...s,a],l=bg(d,c,r);l&&t.push(l);for(let[p,f]of Object.entries(d))if(p!=="properties"&&p!=="x-mcp-header"&&Se(f))throw new u("MCP x-mcp-header is not statically reachable",m.invalidParams,{field:c.join("."),keyword:p});o(d,c)}}};for(let[n,s]of Object.entries(e))if(n!=="properties"&&Se(s))throw new u("MCP x-mcp-header is not statically reachable",m.invalidParams,{field:"inputSchema",keyword:n});return o(e,[]),t}function Cr(e,t){let r=e;for(let o of t){if(!h(r))return;r=r[o]}return r}function wr(e,t){let r=e==="resources/read"?t.uri:t.name;return typeof r=="string"?r:void 0}function Tg(e,t){let r=h(e.arguments)?e.arguments:{},o={};for(let n of Tr(t)){let s=Cr(r,n.path);if(s!=null){if(!(n.type==="integer"&&typeof s=="number"&&Number.isSafeInteger(s)||n.type==="boolean"&&typeof s=="boolean"||n.type==="string"&&typeof s=="string"))throw new u("Invalid MCP custom header argument",m.invalidParams,{field:n.path.join("."),expected:n.type});o[`Mcp-Param-${n.name}`]=yr(s)}}return o}function jk(e){let t=h(e.request.params)?e.request.params:void 0,r=Je(t),o=e.request.method;if(typeof o!="string"||o.length===0)return A("Missing MCP request method","Mcp-Method");let n={Accept:"application/json, text/event-stream","Content-Type":"application/json","MCP-Protocol-Version":r.protocolVersion,"Mcp-Method":o},s=wr(o,t);if(gr.has(o)){if(s===void 0)return A("Missing MCP request name","Mcp-Name");n["Mcp-Name"]=yr(s)}return o==="tools/call"&&e.toolSchema!==void 0&&Object.assign(n,Tg(t,e.toolSchema)),n}function Cg(e,t){let r=t.method;(typeof r!="string"||r.length===0)&&A("Missing MCP request method","Mcp-Method");let o=h(t.params)?t.params:void 0,n=Je(o).protocolVersion;if(e.get("mcp-protocol-version")!==n&&A("MCP protocol header does not match request metadata","MCP-Protocol-Version"),e.get("mcp-method")!==r&&A("MCP method header does not match request body","Mcp-Method"),gr.has(r)){let s=e.get("mcp-name"),i=wr(r,o);(s===void 0||i===void 0||br(s,"Mcp-Name")!==i)&&A("MCP name header does not match request body","Mcp-Name")}e.has("last-event-id")&&A("MCP SSE resumability is not supported","Last-Event-ID")}function wg(e,t,r){return e.type==="integer"?typeof t=="number"&&Number.isSafeInteger(t)&&Number(r)===t:e.type==="boolean"?typeof t=="boolean"&&r===String(t):typeof t=="string"&&r===t}function Sg(e){let t=h(e.params.arguments)?e.params.arguments:{};for(let r of Tr(e.toolSchema)){let o=Cr(t,r.path),n=`Mcp-Param-${r.name}`,s=e.headers.get(n.toLowerCase());if(o==null){s!==void 0&&A("Unexpected MCP parameter header",n);continue}s===void 0&&A("Missing MCP parameter header",n),wg(r,o,br(s,n))||A("MCP parameter header does not match request body",n)}}function Bk(e){let t=yg(e.headers),r=typeof e.request.method=="string"?e.request.method:"";Cg(t,e.request),!(r!=="tools/call"||e.toolSchema===void 0)&&Sg({headers:t,params:e.request.params,toolSchema:e.toolSchema})}var qk=V;import{AsyncLocalStorage as Eg}from"node:async_hooks";import{createHash as Sr,timingSafeEqual as Ag}from"node:crypto";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a7c30d99-a0e4-552e-be61-0c54a455e211")}catch{}})();var y=class extends Error{httpStatus;challenge;constructor(t,r,o){super(t),this.name="PmMcpAuthorizationError",this.httpStatus=r,this.challenge=o}},vg=/^00-([0-9a-f]{32})-([0-9a-f]{16})-([0-9a-f]{2})$/u,Og=/^[a-z][a-z0-9_*/-]{0,255}$/u,Ig=/^(?:[a-z0-9][a-z0-9_*/-]{0,240})@[a-z][a-z0-9_*/-]{0,13}$/u,Rg=/^[\x20-\x2B\x2D-\x3C\x3E-\x7E]{0,255}[\x21-\x2B\x2D-\x3C\x3E-\x7E]$/u,Ar=/^[\x21\x23-\x5B\x5D-\x7E]+$/u,vr=/^[A-Za-z0-9!#$%&'*+.^_`|~-]+$/u,Mg=/^[\x21\x23-\x2B\x2D-\x3A\x3C-\x5B\x5D-\x7E]*$/u,Pg=/%(?![0-9A-Fa-f]{2})/u,kg=512,xg=32,Ng=180,Lg=8192,Dg=8192,Or=new Eg;function S(e,t,r=!1){if(new RegExp("\\p{Cc}","u").test(e))throw new y(`Invalid ${t}`,401);let o;try{o=new URL(e)}catch{throw new y(`Invalid ${t}`,401)}let n=o.hostname==="127.0.0.1"||o.hostname==="localhost";if(o.hash.length>0||o.protocol!=="https:"&&!(r&&n&&o.protocol==="http:"))throw new y(`Invalid ${t}`,401);return o}function $g(e,t){let r=t.toLowerCase();for(let[o,n]of Object.entries(e))if(!(o.toLowerCase()!==r||n===void 0))return typeof n=="string"?n:n.join(", ")}function Wk(e){let t=S(e.resource,"protected resource URI",!0).href.replace(/\/$/u,"");if(e.authorizationServers.length===0)throw new y("Protected resource metadata requires an authorization server",401);let r=e.authorizationServers.map(n=>S(n,"authorization server issuer").href.replace(/\/$/u,"")),o=[...new Set(e.scopes??[])];if(o.some(n=>!Ar.test(n)))throw new y("Invalid authorization scope",401);return{resource:t,authorization_servers:r,...o.length>0?{scopes_supported:o.sort()}:{}}}function Xk(e){let t=S(e,"authorization server issuer"),r=t.pathname.replace(/^\/+|\/+$/gu,""),o=t.origin;return r?[`${o}/.well-known/oauth-authorization-server/${r}`,`${o}/.well-known/openid-configuration/${r}`,`${o}/${r}/.well-known/openid-configuration`]:[`${o}/.well-known/oauth-authorization-server`,`${o}/.well-known/openid-configuration`]}function Yk(e,t){if(!h(e)||typeof e.issuer!="string")throw new y("Invalid authorization server metadata",401);let r=S(t,"expected issuer").href.replace(/\/$/u,"");if(S(e.issuer,"metadata issuer").href.replace(/\/$/u,"")!==r)throw new y("Authorization server issuer mismatch",401);if(!Array.isArray(e.code_challenge_methods_supported)||!e.code_challenge_methods_supported.includes("S256"))throw new y("Authorization server does not support required S256 PKCE",401);let o=d=>{let c=e[d];if(typeof c!="string")throw new y(`Authorization server metadata requires ${d}`,401);return S(c,d).href},n=d=>{let c=e[d];return typeof c=="string"?S(c,d).href:void 0},s=o("authorization_endpoint"),i=o("token_endpoint"),a=n("registration_endpoint");return{issuer:r,authorization_endpoint:s,token_endpoint:i,code_challenge_methods_supported:[...new Set(e.code_challenge_methods_supported.filter(d=>typeof d=="string"))],...e.client_id_metadata_document_supported===!0?{client_id_metadata_document_supported:!0}:{},...a?{registration_endpoint:a}:{}}}function Jk(e){return e.hasPreRegisteredClient?"pre_registered":e.metadata.client_id_metadata_document_supported?"client_id_metadata_document":e.metadata.registration_endpoint?"dynamic":"user_supplied"}function Zk(e){if(e.responseIssuer===void 0){if(e.issuerParameterSupported)throw new y("Authorization response omitted the advertised issuer",401);return}if(e.responseIssuer!==e.expectedIssuer)throw new y("Authorization response issuer mismatch",401)}function Qk(e,t){let r=S(t,"client metadata document URL");if(r.pathname==="/"||!h(e)||e.client_id!==r.href||typeof e.client_name!="string"||e.client_name.trim().length===0||!Array.isArray(e.redirect_uris)||e.redirect_uris.length===0)throw new y("Invalid Client ID Metadata Document",401);for(let o of e.redirect_uris){if(typeof o!="string")throw new y("Invalid client redirect URI",401);S(o,"client redirect URI",!0)}return structuredClone(e)}function ex(e){if(e.redirectUris.length===0||e.clientName.trim().length===0)throw new y("Invalid dynamic client registration metadata",401);let t=e.redirectUris.map(r=>S(r,"redirect URI",!0).href);return{application_type:e.applicationType,client_name:e.clientName.trim().slice(0,128),redirect_uris:t,grant_types:["authorization_code","refresh_token"],response_types:["code"],token_endpoint_auth_method:"none"}}var Er=class{#e=new Map;set(t,r){let o=S(t,"credential issuer").href;this.#e.set(o,structuredClone(r))}get(t){let r=S(t,"credential issuer").href,o=this.#e.get(r);return o?structuredClone(o):void 0}delete(t){let r=S(t,"credential issuer").href;return this.#e.delete(r)}};function Fg(e){let t=e.traceparent,r=e.tracestate;if(t!==void 0){let o=typeof t=="string"?vg.exec(t):null;if(!o)throw new y("Invalid MCP traceparent",403);let n=o[1],s=o[2];if(/^0+$/u.test(n)||/^0+$/u.test(s))throw new y("Invalid MCP traceparent",403)}if(r!==void 0&&(typeof r!="string"||!Ug(r)))throw new y("Invalid MCP tracestate",403);return{...typeof t=="string"?{traceparent:t}:{},...typeof r=="string"?{tracestate:r}:{}}}function $(e){return e.replace(/^[ \t]*|[ \t]*$/gu,"")}function Gg(e){return Og.test(e)||Ig.test(e)}function Ug(e){if(Buffer.byteLength(e,"utf8")>kg)return!1;let t=e.split(",");if(t.length>xg)return!1;let r=new Set;for(let o of t){let n=$(o);if(n.length===0)continue;let s=n.indexOf("="),i=s>0?n.slice(0,s):"",a=s>0?n.slice(s+1):"";if(!Gg(i)||!Rg.test(a)||r.has(i))return!1;r.add(i)}return!0}function Ir(e){return Mg.test(e)&&!Pg.test(e)}function jg(e){let t=$(e),r=t.indexOf("="),o=$(r>=0?t.slice(0,r):t),n=r>=0?$(t.slice(r+1)):void 0;return vr.test(o)&&(n===void 0||Ir(n))}function Bg(e){let t=$(e),r=t.split(";"),o=r[0],n=r.slice(1),s=o.indexOf("="),i=$(s>0?o.slice(0,s):""),a=s>0?$(o.slice(s+1)):"";if(!(!vr.test(i)||!Ir(a)||!n.every(jg)))return{key:i,serialized:t}}function qg(e,t){if(e===void 0)return;if(typeof e!="string"||Buffer.byteLength(e,"utf8")>Lg)throw new y("Invalid MCP baggage",403);let r=new Set(t),o=e.split(",");if(o.length>Ng)throw new y("Invalid MCP baggage",403);let n=[];for(let s of o){let i=Bg(s);if(!i)throw new y("Invalid MCP baggage",403);r.has(i.key)&&n.push(i.serialized)}return n.length>0?n.join(","):void 0}function tx(e,t={}){let r=h(e)&&h(e._meta)?e._meta:{},o=qg(r.baggage,t.baggageAllowlist??[]);return{...Fg(r),...o?{baggage:o}:{}}}function rx(e,t){return Or.run(structuredClone(e),t)}function ox(){let e=Or.getStore();return e?{...e}:void 0}async function nx(e){let t=S(e.policy.resourceMetadataUrl,"protected resource metadata URL",!0).href,r=[...new Set(e.policy.requiredScopes??[])];if(r.some(c=>!Ar.test(c)))throw new y("Invalid authorization scope",401);let o=`Bearer resource_metadata="${t}"`;if(new URL(e.requestUrl,e.policy.resource).searchParams.has("access_token"))throw new y("Access tokens must not appear in URI query parameters",401,o);let n=$g(e.headers,"authorization")?.match(/^Bearer ([^\s]+)$/iu);if(!n)throw new y("Missing or malformed bearer token",401,o);let s=n[1];if(Buffer.byteLength(s,"utf8")>Dg)throw new y("Missing or malformed bearer token",401,o);let i;try{i=await e.policy.verifyAccessToken(s)}catch{throw new y("Invalid bearer token",401,o)}let a=Array.isArray(i.audience)?i.audience:[i.audience];if(i.issuer!==e.policy.issuer||!a.includes(e.policy.resource))throw new y("Bearer token issuer or audience mismatch",401,o);let d=r.filter(c=>!i.scopes.includes(c));if(d.length>0)throw new y("Bearer token has insufficient scope",403,`${o}, scope="${d.join(" ")}"`);return{...i,audience:[...a],scopes:[...i.scopes]}}function ix(e){let t=Sr("sha256").update(e.token).digest();return r=>{let o=Sr("sha256").update(r).digest();if(!Ag(t,o))throw new y("Invalid bearer token",401);return structuredClone(e.claims)}}(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]="46f5fe59-6b84-5c68-ad07-bb1329f4ea29")}catch{}})();var it="io.modelcontextprotocol/ui",Ee="2026-01-26",Pr="text/html;profile=mcp-app",Rr=Object.freeze({specVersion:Ee,mimeTypes:[Pr]});function dx(e){let t=e.clientCapabilities.extensions;if(!h(t))return!1;let r=t[it];if(r===void 0)return!1;if(!h(r))throw new u("Invalid MCP Apps client capability",m.missingRequiredClientCapability,{requiredCapabilities:{extensions:{[it]:Rr}}});let o=r.mimeTypes,n=r.specVersion;if(!Array.isArray(o)||!o.includes(Pr)||n!==void 0&&n!==Ee)throw new u("Unsupported MCP Apps client capability",m.missingRequiredClientCapability,{requiredCapabilities:{extensions:{[it]:Rr}}});return!0}var zg={csp:{connectDomains:[],resourceDomains:[],frameDomains:[]},permissions:{},prefersBorder:!0},kr=Object.freeze([{id:"context",name:"Context explorer",description:"Inspect bounded project context, provenance, omissions, and token accounting.",toolName:"pm_context",uri:"ui://pm/context.html"},{id:"graph",name:"Relationship graph",description:"Explore typed relationships, explaining paths, and graph-governance evidence.",toolName:"pm_graph",uri:"ui://pm/graph.html"},{id:"plan",name:"Plan and milestone view",description:"Review durable plan steps, dependencies, decisions, discoveries, and validation state.",toolName:"pm_plan",uri:"ui://pm/plan.html"},{id:"assurance",name:"Assurance dashboard",description:"Inspect validation verdicts, evidence, omissions, and actionable recovery paths.",toolName:"pm_validate",uri:"ui://pm/assurance.html"},{id:"operations",name:"Long-operation view",description:"Inspect durable test and operation results without creating a second task store.",toolName:"pm_test",uri:"ui://pm/operations.html"}].map(e=>({...e,toolMeta:{resourceUri:e.uri,visibility:["model","app"]},resourceMeta:zg})));function cx(e){return kr.find(t=>t.uri===e)}function lx(e){let t=new Map(kr.map(r=>[r.toolName,r]));return e.map(r=>{let o=t.get(r.name);return o?{...r,_meta:{...r._meta,ui:o.toolMeta}}:{...r}})}function Mr(e){return e.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'")}function px(e){let t=Mr(e.name),r=Mr(e.description),o=JSON.stringify({name:`pm-${e.id}-view`,version:Ee}),n=JSON.stringify(Ee);return`<!doctype html>
|
|
3
3
|
<html lang="en">
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="utf-8">
|
|
@@ -22,11 +22,11 @@ import{A as HP,B as KP,C as WP,D as XP,E as YP,F as JP,a as Kn,b as Jw,c as Zw,d
|
|
|
22
22
|
(()=>{"use strict";const MAX=24000,status=document.querySelector("#status"),result=document.querySelector("#result"),input=document.querySelector("#input"),pending=new Map();let nextId=1;const render=(node,value)=>{let text;try{text=typeof value==="string"?value:JSON.stringify(value,null,2)}catch{text="Result could not be serialized."}if(text.length>MAX)text=text.slice(0,MAX)+"\\n\\n[View truncated at "+MAX+" characters; use the authoritative pm tool with a cursor or narrower projection.]";node.textContent=text};const send=(message)=>window.parent.postMessage(message,"*");window.addEventListener("message",event=>{if(event.source!==window.parent||!event.data||event.data.jsonrpc!=="2.0")return;const message=event.data;if(message.id!==undefined&&pending.has(message.id)){pending.get(message.id)(message);pending.delete(message.id);return}if(message.method==="ui/notifications/tool-input"||message.method==="ui/notifications/tool-input-partial"){render(input,message.params?.arguments??message.params);status.textContent="Input received"}else if(message.method==="ui/notifications/tool-result"){render(result,message.params);status.textContent="Current tool result"}else if(message.method==="ui/notifications/tool-cancelled"){status.textContent="Tool call cancelled";status.classList.add("notice")}else if(message.method==="ui/notifications/host-context-changed"&&message.params?.theme){document.documentElement.style.colorScheme=message.params.theme}});const request=(method,params)=>new Promise(resolve=>{const id=nextId++;pending.set(id,resolve);send({jsonrpc:"2.0",id,method,params})});document.querySelector("#copy").addEventListener("click",async()=>{const text=result.textContent+"\\n\\n"+input.textContent;try{await navigator.clipboard.writeText(text);status.textContent="Visible evidence copied"}catch{status.textContent="Clipboard permission unavailable";status.classList.add("notice")}});request("ui/initialize",{appInfo:${o},appCapabilities:{},protocolVersion:${n}}).then(message=>{if(message.error){status.textContent="Host rejected MCP App initialization";status.classList.add("notice");return}send({jsonrpc:"2.0",method:"ui/notifications/initialized"});status.textContent="Connected \u2014 awaiting authoritative result"})})();
|
|
23
23
|
</script>
|
|
24
24
|
</body>
|
|
25
|
-
</html>`}import{createHash as st}from"node:crypto";import{lstat as
|
|
25
|
+
</html>`}import{createHash as st}from"node:crypto";import{lstat as Vg,readdir as Ur,readFile as Hg}from"node:fs/promises";import P from"node:path";import{parseDocument as Kg}from"yaml";(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]="eafd8bc3-0da1-5220-8fb1-6967eecdb6bf")}catch{}})();var xr="io.modelcontextprotocol/skills",at="SEP-2640@a3e147ca2710f68214247aecc729731ee1ae8d03",Wg=Object.freeze({revision:at,status:"draft",directoryRead:!0});function bx(e,t=!1){let r=e.clientCapabilities.extensions,o=h(r)?r[xr]:void 0;if(!h(o)||o.revision!==at||t&&o.directoryRead!==!0)throw new u("Missing or incompatible Skills over MCP draft capability",m.missingRequiredClientCapability,{requiredCapabilities:{extensions:{[xr]:Wg}}})}var M=Object.freeze({maxFilesPerSkill:512,maxFileBytes:16*1024*1024,maxSkillBytes:16*1024*1024,defaultPageSize:20,maxPageSize:100}),Nr=100,Xg=32*1024*1024,Yg=/^[a-z0-9]+(?:-[a-z0-9]+)*$/u,Lr=new Set(Array.from({length:M.maxPageSize},(e,t)=>t+1));function C(e,t){throw new u(e,-32602,t)}function Dr(e,t){try{return new TextDecoder("utf-8",{fatal:!0}).decode(t),e.endsWith(".md")?"text/markdown":"text/plain"}catch{return"application/octet-stream"}}function Jg(e,t){let r=/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/u.exec(e);r||C(`Skill ${t} is missing YAML frontmatter.`);let o=Kg(r[1],{prettyErrors:!1,strict:!0,uniqueKeys:!0});o.errors.length>0&&C(`Skill ${t} has invalid YAML frontmatter.`,{errors:o.errors.map(s=>s.message)});let n;try{n=o.toJS({maxAliasCount:0})}catch(s){C(`Skill ${t} has unsupported YAML aliases.`,{error:String(s)})}return(typeof n!="object"||n===null||Array.isArray(n))&&C(`Skill ${t} frontmatter must be an object.`),n}async function Zg(e,t,r,o){return r>M.maxFileBytes&&C(`Skill resource exceeds the per-file limit: ${t}.`),o.files+=1,o.files>M.maxFilesPerSkill&&C(`Skill exceeds ${M.maxFilesPerSkill} files.`),o.skillBytes+=r,o.skillBytes>M.maxSkillBytes&&C(`Skill exceeds the aggregate byte limit: ${t}.`),o.originBytes.value+=r,o.originBytes.value>Xg&&C(`Skill origin exceeds the aggregate byte limit: ${t}.`),Hg(e)}async function jr(e,t,r){let o=P.join(e,t),n=await Ur(o,{withFileTypes:!0}),s=[];for(let i of n.sort((a,d)=>a.name.localeCompare(d.name))){let a=P.posix.join(t.split(P.sep).join("/"),i.name),d=P.join(e,...a.split("/")),c=await Vg(d);c.isSymbolicLink()&&C(`Skill resource must not be a symbolic link: ${a}.`),c.isDirectory()?s.push(...await jr(e,a,r)):c.isFile()?s.push({relative:a,bytes:await Zg(d,a,c.size,r)}):C(`Skill resource must be a regular file or directory: ${a}.`)}return s}async function $r(e,t,r){let o=new Map,n;try{n=await Ur(e,{withFileTypes:!0})}catch(a){if(bt(a))return o;throw a}let s=n.filter(a=>a.isDirectory()&&Yg.test(a.name)).sort((a,d)=>a.name.localeCompare(d.name));s.length>Nr&&C(`Skill origin exceeds ${Nr} directories.`);let i={value:0};for(let a of s){let d=await jr(P.join(e,a.name),"",{files:0,skillBytes:0,originBytes:i}),c=d.reduce((g,T)=>g+T.bytes.byteLength,0),l=d.find(g=>g.relative==="SKILL.md");if(!l)continue;let p=Jg(l.bytes.toString("utf8"),a.name);p.name!==a.name&&C(`Skill directory ${a.name} must match frontmatter name.`,{actual:p.name??null,expected:a.name}),(typeof p.description!="string"||p.description.trim().length===0)&&C(`Skill ${a.name} requires a non-empty frontmatter description.`,{required:["description"]});let f=d.map(g=>({uri:`skill://${a.name}/${g.relative}`,digest:`sha256:${st("sha256").update(g.bytes).digest("hex")}`,size:g.bytes.byteLength})),_=st("sha256").update(f.map(g=>`${g.uri}:${g.digest}`).join(`
|
|
26
26
|
`)).digest("hex");o.set(a.name,{uri:`skill://${a.name}/SKILL.md`,frontmatter:p,resources:f,_meta:{contractVersion:1,extensionRevision:at,origin:t,packageVersion:r,protocolVersion:V,trust:"untrusted",estimatedTokens:Math.ceil(c/4)},files:new Map(d.map(g=>[g.relative,g.bytes])),fingerprint:_})}return o}function Fr(e){let{files:t,fingerprint:r,...o}=e;return o}var Gr=class e{#e;#t;constructor(t){this.#e=t,this.#t=st("sha256").update([...t.entries()].sort(([r],[o])=>r.localeCompare(o)).map(([r,o])=>`${r}:${o.fingerprint}`).join(`
|
|
27
|
-
`)).digest("hex").slice(0,16)}#r(t,r){if(!t)return 0;try{let o=JSON.parse(Buffer.from(t,"base64url").toString("utf8"));return(typeof o!="object"||o===null||!("fingerprint"in o)||o.fingerprint!==this.#t||!("scope"in o)||o.scope!==r||!("offset"in o)||!Number.isInteger(o.offset)||Number(o.offset)<0)&&C("Skill cursor is invalid or stale."),Number(o.offset)}catch(o){if(o instanceof u)throw o;return C("Skill cursor is invalid or stale.")}}#o(t,r){return Buffer.from(JSON.stringify({fingerprint:this.#t,offset:t,scope:r})).toString("base64url")}static async load(t){let r=await $r(P.join(t.packageRoot,".agents","skills"),"package",t.packageVersion);if(t.workspaceRoot){let o=P.resolve(t.packageRoot,".agents","skills"),n=P.resolve(t.workspaceRoot,".agents","skills");if(n!==o){let s=await $r(n,"workspace",t.packageVersion);for(let[i,a]of s)r.set(i,a)}}return new e(r)}list(t={}){let r=t.limit??M.defaultPageSize;Lr.has(r)||C(`Skill list limit must be an integer from 1 to ${M.maxPageSize}.`);let o=this.#r(t.cursor,"skills/list"),n=[...this.#e.values()].sort((d,c)=>d.uri.localeCompare(c.uri)),s=n.slice(o,o+r),i=o+s.length,a=i<n.length;return{skills:s.map(Fr),hasMore:a,...a?{nextCursor:this.#o(i,"skills/list")}:{}}}get(t){let r=/^skill:\/\/([a-z0-9]+(?:-[a-z0-9]+)*)\/SKILL\.md$/u.exec(t),o=r?this.#e.get(r[1]):void 0;return o||C(`Unknown pm MCP skill: ${t}.`,{field:"uri"}),Fr(o)}read(t){let r=/^skill:\/\/([a-z0-9]+(?:-[a-z0-9]+)*)\/(.+)$/u.exec(t),o=r?this.#e.get(r[1]):void 0,n=r?.[2]??"",s=o&&n?o.files.get(n):void 0,i=o?.resources.find(c=>c.uri===t);(!o||!s||!i)&&C(`Unknown pm MCP skill resource: ${t}.`,{field:"uri"});let a={digest:i.digest,origin:o._meta.origin,trust:"untrusted"},d=Dr(n,s);return d!=="application/octet-stream"?{contents:[{uri:t,mimeType:d,text:s.toString("utf8"),_meta:a}]}:{contents:[{uri:t,mimeType:d,blob:s.toString("base64"),_meta:a}]}}readDirectory(t,r={}){let o=/^skill:\/\/([a-z0-9]+(?:-[a-z0-9]+)*)(?:\/(.+))?$/u.exec(t),n=o?this.#e.get(o[1]):void 0;n||C(`Unknown pm MCP skill directory: ${t}.`,{field:"uri"});let s=(o?.[2]??"").replace(/\/$/u,""),i=s.length>0?`${s}/`:"",a=`skill://${o[1]}`,d=new Map;for(let T of n.resources){let w=T.uri.slice(`${a}/`.length);if(!w.startsWith(i))continue;let q=w.slice(i.length),[I,...Ao]=q.split("/"),vo=`${a}/${i}${I}`,Oo=n.files.get(`${i}${I}`);d.set(I,{uri:vo,name:I,mimeType:Ao.length>0?"inode/directory":Dr(I,Oo)})}s.length>0&&d.size===0&&C(`Unknown pm MCP skill directory: ${t}.`,{field:"uri"});let c=r.limit??M.maxPageSize;Lr.has(c)||C(`Skill directory limit must be an integer from 1 to ${M.maxPageSize}.`);let l=this.#r(r.cursor,t),p=[...d.values()].sort((T,w)=>T.uri.localeCompare(w.uri)),f=p.slice(l,l+c),_=l+f.length,g=_<p.length;return{resources:f,hasMore:g,...g?{nextCursor:this.#o(_,t)}:{}}}};(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="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]="2b24276b-948b-50bd-bfd9-f429cd74be70")}catch{}})();var Br="https://schema.unbrained.dev/pm/workspace-recipe/v1";function dt(e,t){if(e===null||typeof e=="boolean"||typeof e=="string")return e;if(typeof e=="number"){if(!Number.isFinite(e))throw new Error(`Workspace recipe JSON number must be finite at ${t}`);return e}if(Array.isArray(e))return Object.freeze(e.map((r,o)=>dt(r,`${t}[${o}]`)));if(typeof e!="object"||Object.getPrototypeOf(e)!==Object.prototype&&Object.getPrototypeOf(e)!==null)throw new Error(`Workspace recipe input must contain JSON values at ${t}`);return Object.freeze(Object.fromEntries(Object.entries(e).map(([r,o])=>[r,dt(o,`${t}.${r}`)])))}function Ae(e){if(e.schema!==Br)throw new Error(`Unsupported workspace recipe schema: ${e.schema}`);let t=St(e);if(e.operations.some(r=>r.action.trim().length===0||r.input===null||Array.isArray(r.input)))throw new Error("Workspace recipe operations require an action and object input");return Object.freeze({...t,operations:Object.freeze(e.operations.map((r,o)=>Object.freeze({action:r.action,input:dt(r.input,`operations[${o}].input`)})))})}async function qr(e,t){let r=Ae(e);return Et(r,t)}async function Zg(e,t){return qr(e,async()=>{let r=[];for(let[o,n]of e.operations.entries())r.push(await t(n,o));return r})}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c234be1c-35b7-5388-8a70-a012e9a34389")}catch{}})();var zr="pm.agent-observation/v1",Vr="pm.agent-verdict/v1",Hr="pm.agent-episode/v1";function O(e,t){if(!Number.isSafeInteger(e)||e<=0)throw new Error(`${t} must be a positive safe integer.`)}function k(e,t){if(e.trim().length===0)throw new Error(`${t} must not be empty.`)}function oe(e){if(e!==null&&typeof e=="object"&&!Object.isFrozen(e)){Object.freeze(e);for(let t of Object.values(e))oe(t)}return e}function Qg(e){if(e.length===0)throw new Error("observation.reads must declare at least one bounded read.");let t=0;for(let r of e)if(k(r.command,"observation.reads.command"),O(r.budget_tokens,"observation.reads.budget_tokens"),t+=r.budget_tokens,!Number.isSafeInteger(t))throw new Error("observation read ceilings exceed safe integer range.")}function ey(e){if(e.basis!=="emitted_bytes")throw new Error("observation calibration must use emitted_bytes.");for(let r of e.samples)if(!Number.isSafeInteger(r)||r<0)throw new Error("observation calibration samples must be non-negative safe integers.");if(e.samples.length===0)throw new Error("observation calibration must include at least one sample.");if(O(e.expected_emitted_bytes,"observation.calibration.expected_emitted_bytes"),!Number.isSafeInteger(e.tolerance_bytes)||e.tolerance_bytes<0)throw new Error("observation.calibration.tolerance_bytes must be a non-negative safe integer.");let t=e.samples.reduce((r,o)=>r+o,0)/e.samples.length;if(Math.abs(t-e.expected_emitted_bytes)>e.tolerance_bytes)throw new Error("observation expected_emitted_bytes is outside the calibrated sample tolerance.")}function ty(e){if(e.length===0)throw new Error("observation.tiers must declare a degradation ladder.");let t=new Set,r=Number.POSITIVE_INFINITY;for(let o of e){if(k(o.id,"observation.tiers.id"),O(o.max_tokens,"observation.tiers.max_tokens"),t.has(o.id))throw new Error(`Duplicate observation tier: ${o.id}.`);if(t.add(o.id),o.max_tokens>r)throw new Error("observation tiers must be ordered from largest to smallest max_tokens.");r=o.max_tokens;let n=new Set;for(let s of o.fields){if(F(s,"observation.tiers.fields"),n.has(s))throw new Error(`Duplicate observation tier field: ${s}.`);n.add(s)}}}function ry(e){if(e.schema!==zr)throw new Error(`observation.schema must be ${zr}.`);return k(e.id,"observation.id"),O(e.version,"observation.version"),Qg(e.reads),ey(e.calibration),e.corpus_dependence.kind==="bounded"&&(k(e.corpus_dependence.dimension,"observation.corpus_dependence.dimension"),O(e.corpus_dependence.maximum,"observation.corpus_dependence.maximum")),ty(e.tiers),oe(structuredClone(e))}function Ex(e){return{contract_id:e.id,contract_version:e.version,guaranteed_ceiling_tokens:e.reads.reduce((t,r)=>t+r.budget_tokens,0),expected_emitted_bytes:e.calibration.expected_emitted_bytes,expected_tokens:Math.ceil(e.calibration.expected_emitted_bytes/4),tolerance_bytes:e.calibration.tolerance_bytes,calibration_basis:"emitted_bytes",corpus_dependence:e.corpus_dependence}}async function oy(e,t,r){O(r.budget_tokens,"observation request budget_tokens");let o=[];for(let[n,s]of e.tiers.entries()){o.push(s.id);let i=await t(s),a=Buffer.byteLength(R(i),"utf8"),d=Math.ceil(a/4);if(d<=Math.min(r.budget_tokens,s.max_tokens))return{status:"served",payload:i,receipt:{contract_id:e.id,contract_version:e.version,served_tier:s.id,degraded:n>0,attempted_tiers:o,emitted_bytes:a,estimated_tokens:d,calibration_basis:"emitted_bytes"}}}return{status:"refused",reason:"no_declared_tier_fits_budget",receipt:{contract_id:e.id,contract_version:e.version,served_tier:null,degraded:e.tiers.length>1,attempted_tiers:o,emitted_bytes:null,estimated_tokens:null,calibration_basis:"emitted_bytes"}}}function F(e,t){let r=e.split(".");if(r.some(o=>o.length===0||o==="__proto__"||o==="prototype"||o==="constructor"))throw new Error(`${t} must be a safe, non-empty dot-separated path.`);return r}function Kr(e,t){let r=e;for(let o of F(t,"recorded field path")){if(r===null||typeof r!="object"||!Object.hasOwn(r,o))return;r=r[o]}return r}function ny(e){return`/${F(e,"verdict predicate path").map(t=>t.replaceAll("~","~0").replaceAll("/","~1")).join("/")}`}function iy(e){if(e.kind!=="field_equals")return;let t;try{t=JSON.stringify(e.expected)}catch{throw new Error(`Expected value for verdict predicate ${e.id} must be JSON serializable.`)}if(t===void 0)throw new Error(`Expected value for verdict predicate ${e.id} must be JSON serializable.`)}function sy(e){if(e.schema!==Vr)throw new Error(`verdict.schema must be ${Vr}.`);k(e.id,"verdict.id"),O(e.version,"verdict.version");let t=new Set;for(let o of e.predicates){k(o.id,"verdict.predicates.id"),F(o.path,"verdict.predicates.path");let n=o.kind;if(n!=="field_equals"&&n!=="field_present"&&n!=="field_absent")throw new Error(`Unsupported verdict predicate kind for ${o.id}.`);if(t.has(o.id))throw new Error(`Duplicate verdict predicate: ${o.id}.`);iy(o),t.add(o.id)}if(e.composition.operator!=="all"&&e.composition.operator!=="any")throw new Error("verdict composition operator must be all or any.");if(e.composition.predicate_ids.length!==e.predicates.length)throw new Error("verdict composition must reference every predicate exactly once.");let r=new Set(e.composition.predicate_ids);if(r.size!==e.composition.predicate_ids.length||[...r].some(o=>!t.has(o)))throw new Error("verdict composition contains duplicate or unknown predicate ids.");return oe(structuredClone(e))}function ay(e,t){if(e.predicates.length===0)return{contract_id:e.id,contract_version:e.version,snapshot_id:t.snapshot_id,outcome:"not_applicable",score:null,policy:"verdict_only_no_reward",reason:"no_predicates_declared",predicates:[]};let r=new Map(e.predicates.map(i=>[i.id,i])),o=e.composition.predicate_ids.map(i=>{let a=r.get(i),d=Kr(t.state,a.path),c=a.kind==="field_present"?d!==void 0:a.kind==="field_absent"?d===void 0:R(d)===R(a.expected);return{id:i,outcome:c?"satisfied":"violated",evidence_pointer:`${t.snapshot_id}#${ny(a.path)}`,evidence_digest:Tt(R(d))}}),n=o.filter(i=>i.outcome==="satisfied").length,s=e.composition.operator==="all"?n===o.length:n>0;return{contract_id:e.id,contract_version:e.version,snapshot_id:t.snapshot_id,outcome:s?"satisfied":"violated",score:n/o.length,policy:"verdict_only_no_reward",predicates:o}}function Ax(e){if(e.schema!==Hr)throw new Error(`episode.schema must be ${Hr}.`);if(k(e.id,"episode.id"),O(e.version,"episode.version"),!["benchmark","evaluation","training","scale_transfer"].includes(e.mode))throw new Error("episode.mode is not supported.");if(e.task_item_ids.length===0)throw new Error("episode.task_item_ids must declare at least one pm item.");for(let t of e.task_item_ids)k(t,"episode.task_item_ids");O(e.limits.max_actions,"episode.limits.max_actions"),O(e.limits.max_observations,"episode.limits.max_observations"),O(e.limits.max_tokens_per_observation,"episode.limits.max_tokens_per_observation");for(let t of e.observable_fields)F(t,"episode.observable_fields");for(let t of e.withheld_fields)F(t,"episode.withheld_fields");for(let t of e.observable_fields){let r=e.withheld_fields.find(o=>t===o||t.startsWith(`${o}.`)||o.startsWith(`${t}.`));if(r!==void 0)throw new Error(`Observable field ${t} overlaps withheld field ${r}.`)}for(let t of e.observation.tiers)for(let r of t.fields)if(!e.observable_fields.includes(r))throw new Error(`Observation tier field ${r} is not declared observable.`);return ry(e.observation),sy(e.verdict),Ae(e.recipe),oe(structuredClone(e))}function dy(e,t,r){let o=F(t,"observation projection field"),n=e;for(let[s,i]of o.entries()){if(s===o.length-1){r!==void 0&&(n[i]=structuredClone(r));return}let a=n[i];(a===null||typeof a!="object"||Array.isArray(a))&&(n[i]={}),n=n[i]}}function cy(e,t){let r={};for(let o of t)dy(r,o,Kr(e,o));return r}async function vx(e,t){let r=[],o=0,n=0,s=!1,i,a={episode:{id:e.id,label:`pm agent environment v${e.version}`},provenance:{role:e.mode,topic:"agent-environment"}},d=await D(a,()=>t.reset(e.recipe));r.push({sequence:1,kind:"reset",state_id:d.state_id});let c=async()=>{if(s)throw new Error("episode is already closed.");if(n>=e.limits.max_observations)throw new Error("episode exceeded limits.max_observations.");n+=1;let p=await t.readRecordedState(),f=await oy(e.observation,async _=>cy(p.state,_.fields),{budget_tokens:e.limits.max_tokens_per_observation});return r.push({sequence:r.length+1,kind:"observation",state_id:f.receipt.served_tier??p.snapshot_id}),f},l=async(p=!1)=>{if(s&&!p)throw new Error("episode is already closed.");if(n>=e.limits.max_observations)throw new Error("episode exceeded limits.max_observations.");n+=1;let f=await t.readRecordedState(),_=ay(e.verdict,f);return r.push({sequence:r.length+1,kind:"verdict",state_id:f.snapshot_id}),_};return{observe:()=>D(a,c),step:async p=>{if(s)throw new Error("episode is already closed.");if(o>=e.limits.max_actions)throw new Error("episode exceeded limits.max_actions.");o+=1;let f=await D(a,()=>t.execute(p));return r.push({sequence:r.length+1,kind:"action",state_id:f.state_id}),f},score:()=>D(a,l),close:()=>i!==void 0?i:s?Promise.reject(new Error("episode is already closed.")):(s=!0,i=D(a,()=>l(!0)).then(p=>(r.push({sequence:r.length+1,kind:"close",state_id:p.snapshot_id}),{verdict:p,trajectory:oe(structuredClone(r))})).catch(p=>{throw s=!1,p}).finally(()=>{i=void 0}),i)}}(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]="14472bc2-ebca-5b9c-9462-bd8694b630a0")}catch{}})();var G="https://schema.unbrained.dev/pm/corpus-shape/v1";function K(e,t){if(!Number.isSafeInteger(e)||e<=0)throw new TypeError(`Corpus shape ${t} must be a positive safe integer`);return e}function ne(e,t){if(!Number.isSafeInteger(e)||e<0)throw new TypeError(`Corpus shape ${t} must be a non-negative safe integer`);return e}function Xr(e){if(!(typeof e!="object"||e===null||Object.isFrozen(e))){for(let t of Object.values(e))Xr(t);Object.freeze(e)}}function W(e){if(e.schema!==G)throw new TypeError(`Unsupported corpus shape schema: ${e.schema}`);if(e.name.trim().length===0||e.description.trim().length===0)throw new TypeError("Corpus shape name and description must be non-empty");if(K(e.hierarchy_depth,"hierarchy_depth"),K(e.hierarchy_fanout,"hierarchy_fanout"),ne(e.age_span_days,"age_span_days"),K(e.history_entries_per_item,"history_entries_per_item"),ne(e.comments_per_100_items,"comments_per_100_items"),ne(e.notes_per_100_items,"notes_per_100_items"),ne(e.learnings_per_100_items,"learnings_per_100_items"),K(e.author_cardinality,"author_cardinality"),K(e.component_count,"component_count"),e.edge_kind_mix.length===0||e.edge_kind_mix.some(r=>r.kind.trim().length===0||r.weight<=0))throw new TypeError("Corpus shape edge_kind_mix requires non-empty kinds with positive weights");if(e.terminal_statuses.some(r=>!e.custom_statuses.includes(r)))throw new TypeError("Corpus shape terminal_statuses must be declared in custom_statuses");let t=structuredClone(e);return Xr(t),t}var ve=[{kind:"implements",weight:5},{kind:"blocked_by",weight:2},{kind:"discovered_from",weight:2},{kind:"verifies",weight:2},{kind:"supersedes",weight:1},{kind:"related",weight:4}],X=Object.freeze({scratch:W({schema:G,name:"scratch",description:"Seconds-old, shallow project with minimal history.",hierarchy_depth:2,hierarchy_fanout:50,age_span_days:0,history_entries_per_item:1,comments_per_100_items:2,notes_per_100_items:1,learnings_per_100_items:1,edge_kind_mix:[{kind:"related",weight:1}],author_cardinality:2,component_count:1,include_cycles:!1,custom_types:[],custom_statuses:[],terminal_statuses:[],custom_fields:[]}),representative:W({schema:G,name:"representative",description:"Medium-lived project with rich evidence and typed lineage.",hierarchy_depth:5,hierarchy_fanout:8,age_span_days:730,history_entries_per_item:12,comments_per_100_items:30,notes_per_100_items:12,learnings_per_100_items:10,edge_kind_mix:ve,author_cardinality:32,component_count:1,include_cycles:!1,custom_types:["Experiment"],custom_statuses:["review"],terminal_statuses:[],custom_fields:["domain"]}),"deep-graph":W({schema:G,name:"deep-graph",description:"Deep typed relationship graph with deterministic cycles.",hierarchy_depth:16,hierarchy_fanout:2,age_span_days:3650,history_entries_per_item:6,comments_per_100_items:15,notes_per_100_items:8,learnings_per_100_items:8,edge_kind_mix:ve,author_cardinality:16,component_count:1,include_cycles:!0,custom_types:[],custom_statuses:[],terminal_statuses:[],custom_fields:[]}),"multi-decade":W({schema:G,name:"multi-decade",description:"Thirty-year event history with dense per-item evolution.",hierarchy_depth:6,hierarchy_fanout:6,age_span_days:10958,history_entries_per_item:24,comments_per_100_items:40,notes_per_100_items:20,learnings_per_100_items:16,edge_kind_mix:ve,author_cardinality:64,component_count:1,include_cycles:!1,custom_types:["Program"],custom_statuses:["archived"],terminal_statuses:["archived"],custom_fields:["portfolio"]}),"disconnected-archive":W({schema:G,name:"disconnected-archive",description:"Multiple disconnected historical project components.",hierarchy_depth:4,hierarchy_fanout:10,age_span_days:7305,history_entries_per_item:8,comments_per_100_items:10,notes_per_100_items:5,learnings_per_100_items:6,edge_kind_mix:ve,author_cardinality:24,component_count:5,include_cycles:!1,custom_types:["Archive"],custom_statuses:["archived"],terminal_statuses:["archived"],custom_fields:["archive_source"]})});function ly(){return Object.keys(X).sort().map(e=>X[e])}function py(e){let t=e.trim().toLowerCase();if(!Object.hasOwn(X,t))throw new TypeError(`Unknown corpus shape "${e}". Available: ${Object.keys(X).join(", ")}`);return X[t]}var Wr=new WeakMap;function Yr(e,t){if(e===0)return[];let r=Wr.get(t);r===void 0&&(r=t.edge_kind_mix.flatMap(n=>Array.from({length:n.weight},()=>n.kind)),Wr.set(t,r));let o=[r[e%r.length]];return t.include_cycles&&e>2&&e%17===0&&o.push("related"),[...new Set(o)]}function uy(e,t,r,o=42){if(ne(t,"item index"),K(r,"item count"),t>=r)throw new RangeError(`Corpus item index ${t} exceeds ${r}`);let n=Math.min(e.component_count,r),s=t%n,i=Math.floor(t/n),a=0,d=1;for(let w=0;w<e.hierarchy_depth;w+=1)a=Math.min(Number.MAX_SAFE_INTEGER,a+d),d=Math.min(Number.MAX_SAFE_INTEGER,d*e.hierarchy_fanout);let c=i%a,l=i-c,p=c===0?void 0:s+(l+Math.floor((c-1)/e.hierarchy_fanout))*n,f=Date.UTC(2026,0,1),_=e.age_span_days*864e5,g=new Date(f+(r===1?0:Math.round(t/(r-1)*_))).toISOString(),T=(t*37+o)%100;return{index:t,id:`pm-s${t.toString(36).padStart(7,"0")}`,...p===void 0?{}:{parent:`pm-s${p.toString(36).padStart(7,"0")}`},component:s,timestamp:g,author:`pm-corpus-agent-${(t+o)%Math.min(e.author_cardinality,r)}`,history_entry_count:e.history_entries_per_item,dependency_kinds:Yr(t,e),has_comment:T<e.comments_per_100_items,has_note:T<e.notes_per_100_items,has_learning:T<e.learnings_per_100_items,...e.custom_types.length>0&&t%11===0?{custom_type:e.custom_types[t%e.custom_types.length]}:{},...e.custom_statuses.length>0&&t%13===0?{custom_status:e.custom_statuses[t%e.custom_statuses.length]}:{}}}var ct=class{shape;authors=new Set;components=new Set;depths=new Map;childCounts=new Map;edgeKinds={};expectedEdgeKinds={};annotations={comments:0,notes:0,learnings:0};annotationFields;planMismatches=[];itemCount=0;observedDepth=0;observedFanout=0;historyEntryCount=0;firstTimestamp=null;lastTimestamp=null;constructor(t){this.shape=t,this.annotationFields=[["comments","has_comment",t.comments_per_100_items],["notes","has_note",t.notes_per_100_items],["learnings","has_learning",t.learnings_per_100_items]]}recordMismatch(t,r){t&&this.planMismatches.push(r)}recordEdgeKinds(t,r){for(let o of r)t[o]=(t[o]??0)+1}add(t){this.itemCount+=1,this.authors.add(t.author),this.components.add(t.component),this.recordMismatch(this.depths.has(t.id),`duplicate_id:${t.id}`);let r=1;if(t.parent!==void 0){let o=this.depths.get(t.parent);this.recordMismatch(o===void 0,`parent_missing:${t.parent}`),r=(o??0)+1;let n=(this.childCounts.get(t.parent)??0)+1;this.childCounts.set(t.parent,n),this.observedFanout=Math.max(this.observedFanout,n)}this.depths.set(t.id,r),this.observedDepth=Math.max(this.observedDepth,r),this.historyEntryCount+=t.history_entry_count,this.recordMismatch(t.history_entry_count!==this.shape.history_entries_per_item,"history_entries_per_item:drift"),this.firstTimestamp=this.firstTimestamp===null||t.timestamp<this.firstTimestamp?t.timestamp:this.firstTimestamp,this.lastTimestamp=this.lastTimestamp===null||t.timestamp>this.lastTimestamp?t.timestamp:this.lastTimestamp;for(let[o,n]of this.annotationFields)this.annotations[o]+=Number(t[n]);this.recordEdgeKinds(this.edgeKinds,t.dependency_kinds),this.recordEdgeKinds(this.expectedEdgeKinds,Yr(t.index,this.shape))}finish(){let t=Math.min(this.shape.author_cardinality,this.itemCount),r=Math.min(this.shape.component_count,this.itemCount),o=[...this.planMismatches,...this.itemCount===0?["item_count:empty"]:[],...this.authors.size===t?[]:[`author_count:${this.authors.size}!=${t}`],...this.components.size===r?[]:[`component_count:${this.components.size}!=${r}`],...this.observedDepth<=this.shape.hierarchy_depth?[]:[`hierarchy_depth:${this.observedDepth}>${this.shape.hierarchy_depth}`],...this.observedFanout<=this.shape.hierarchy_fanout?[]:[`hierarchy_fanout:${this.observedFanout}>${this.shape.hierarchy_fanout}`]];for(let[i,,a]of this.annotationFields){let d=Math.floor(this.itemCount/100),c=this.itemCount%100,l=d*a+Math.max(0,a+c-100),p=d*a+Math.min(a,c),f=this.annotations[i];(f<l||f>p)&&o.push(`${i}:${f}!in[${l},${p}]`)}let n=new Set([...Object.keys(this.edgeKinds),...Object.keys(this.expectedEdgeKinds)]);for(let i of[...n].sort()){let a=this.edgeKinds[i]??0,d=this.expectedEdgeKinds[i]??0;a!==d&&o.push(`edge_kind:${i}:${a}!=${d}`)}let s=[...new Set(o)];return{shape:this.shape.name,item_count:this.itemCount,author_count:this.authors.size,component_count:this.components.size,hierarchy_depth:this.observedDepth,hierarchy_fanout:this.observedFanout,timestamp_range:{first:this.firstTimestamp,last:this.lastTimestamp},history_entry_count:this.historyEntryCount,annotations:{...this.annotations},edge_kinds:{...this.edgeKinds},matches_declaration:s.length===0,mismatches:s}}};function Jr(e){return new ct(e)}function my(e,t){let r=Jr(e);for(let o of t)r.add(o);return r.finish()}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="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]="6a6b2905-b6b7-5b46-b87d-8b8287e37745")}catch{}})();async function fy(){let e=$e(process.cwd(),process.env.PM_PATH);await Ot(e,(t,r)=>It(t,r,{apply_runtime_defaults:!0}))}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4534b1c9-de27-5745-88f2-641b00b94714")}catch{}})();async function _y(){await Rt()}(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]="c1cb8d82-20a6-5460-a0ff-f55312911218")}catch{}})();var Zr=["lines","branches","functions","statements"];function hy(e,t){if(typeof t!="object"||t===null||Array.isArray(t))throw new TypeError(`Coverage entry for ${e} must be an object.`)}function gy(e,t,r){if(typeof r!="object"||r===null||Array.isArray(r))throw new TypeError(`Coverage entry ${e} has invalid ${t} counts.`);let o=r;if(typeof o.covered!="number"||typeof o.total!="number"||!Number.isInteger(o.covered)||!Number.isInteger(o.total)||o.covered<0||o.total<o.covered)throw new TypeError(`Coverage entry ${e} has invalid ${t} counts.`);return{covered:o.covered,total:o.total}}function yy(e){if(typeof e!="object"||e===null||Array.isArray(e))throw new TypeError("Coverage summary must be a JSON object.");if(!("total"in e))throw new TypeError("Coverage summary is missing the total entry.");let t=[];for(let[r,o]of Object.entries(e)){hy(r,o);for(let n of Zr){let s=gy(r,n,o[n]),i=s.total-s.covered;i>0&&t.push({file:r,metric:n,uncovered:i,...s})}}return t}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7e55d416-9cc3-51c5-8e56-6b5fd5c836a9")}catch{}})();var by=["captured_redacted","captured_verbatim"],Ty=[{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 v(e){return typeof e=="string"&&e.trim().length>0}function Cy(e,t){if(typeof t!="object"||t===null||Array.isArray(t))return[{boundary_id:e.id,kind:"invalid_fixture",detail:`${e.fixture_path} must contain a JSON object.`}];let r=t,o=[];r.boundary_id!==e.id&&o.push({boundary_id:e.id,kind:"fixture_boundary_mismatch",detail:`${e.fixture_path} names ${String(r.boundary_id)} instead of ${e.id}.`}),(r.version!==1||!by.includes(r.capture_source)||!v(r.capture_provenance)||!Array.isArray(r.redactions)||!r.redactions.every(v)||!("input"in r)||!("observed"in r))&&o.push({boundary_id:e.id,kind:"invalid_fixture",detail:`${e.fixture_path} lacks captured provenance, redaction metadata, input, or observed output.`});let n=JSON.stringify(t);for(let s of Ty)s.pattern.test(n)&&o.push({boundary_id:e.id,kind:"unsafe_fixture",detail:`${e.fixture_path} contains a possible ${s.label}.`});return o}function wy(e,t){let r=Date.parse(e.waiver_expires_at),o=v(e.waiver_reason)&&v(e.waiver_owner)&&e.waiver_expires_at.endsWith("Z")&&fe(e.waiver_expires_at)&&Number.isFinite(r);return{captured:0,waived:o&&r>=t?1:0,findings:o?r<t?[{boundary_id:e.id,kind:"expired_waiver",detail:`Boundary ${e.id} waiver expired at ${e.waiver_expires_at}.`}]:[]:[{boundary_id:e.id,kind:"invalid_waiver",detail:`Boundary ${e.id} waiver requires reason, owner, and an RFC 3339 UTC expiry.`}]}}function Sy(e,t,r){if(!v(e.id)||!v(e.producer)||!v(e.consumer)||!v(e.format))return{captured:0,waived:0,findings:[{boundary_id:v(e.id)?e.id:"unknown",kind:"invalid_boundary",detail:"Each boundary requires non-empty id, producer, consumer, and format."}]};if("fixture_path"in e){let o=t[e.fixture_path],n=v(e.fixture_path)&&e.fixture_path in t?Cy(e,o):[{boundary_id:e.id,kind:"missing_fixture",detail:`Boundary ${e.id} fixture ${String(e.fixture_path)} is missing.`}];return{captured:n.length===0?1:0,waived:0,findings:n}}return wy(e,r)}function qx(e,t,r=new Date){let o=[];if(e.version!==1||!v(e.inventory_scope)||!Array.isArray(e.boundaries))return{ok:!1,boundary_count:0,captured_count:0,waived_count:0,findings:[{boundary_id:"registry",kind:"invalid_registry",detail:"Boundary registry requires version 1, inventory_scope, and boundaries."}]};let n=new Set,s=0,i=0;for(let a of e.boundaries){if(typeof a!="object"||a===null||Array.isArray(a)){o.push({boundary_id:"unknown",kind:"invalid_boundary",detail:"Each boundary must be a JSON object."});continue}let d=a,c=v(d.id)?d.id:void 0;if(c!==void 0&&n.has(c)){o.push({boundary_id:c,kind:"duplicate_boundary",detail:`Boundary ${c} is inventoried more than once.`});continue}c!==void 0&&n.add(c);let l=Sy(d,t,r.getTime());s+=l.captured,i+=l.waived,o.push(...l.findings)}return o.sort((a,d)=>a.boundary_id!==d.boundary_id?a.boundary_id.localeCompare(d.boundary_id):a.kind.localeCompare(d.kind)),{ok:o.length===0,boundary_count:e.boundaries.length,captured_count:s,waived_count:i,findings:o}}import Y from"node:fs";import lt from"node:path";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="aacf5738-098d-50f9-b619-19e472b577ea")}catch{}})();var Qr=300*1e3,Ey=3;function Wx(e){return(e?.trim()||"development").replace(/[^a-zA-Z0-9._-]/g,"_").replace(/^\./,"_")}function Xx(e,t){let r=t.trim();if(!/^[a-zA-Z0-9_-][a-zA-Z0-9._-]*$/.test(r))throw new TypeError("Compile-cache generation must be a safe non-empty filename token.");Y.mkdirSync(e,{recursive:!0});let o=lt.join(e,r);Y.mkdirSync(o,{recursive:!0});let n=new Date;Y.utimesSync(o,n,n);let s=Y.readdirSync(e).filter(c=>c!==r).flatMap(c=>{try{return[{name:c,mtimeMs:Y.statSync(lt.join(e,c)).mtimeMs}]}catch(l){if(l instanceof Error&&"code"in l&&me(l))return[];throw l}}).sort((c,l)=>l.mtimeMs-c.mtimeMs||c.name.localeCompare(l.name)),i=s.filter(c=>n.getTime()-c.mtimeMs<Qr),a=Math.max(0,Ey-1-i.length),d=s.filter(c=>n.getTime()-c.mtimeMs>=Qr).slice(a).map(c=>c.name).sort((c,l)=>c.localeCompare(l));for(let c of d)Y.rmSync(lt.join(e,c),{recursive:!0,force:!0,maxRetries:3,retryDelay:50});return{retained:r,removed:d}}import{createHash as Ay}from"node:crypto";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ff60bc5b-bd85-5b3c-9a55-21e7e72477ac")}catch{}})();var pt=1;function J(e){e?.throwIfAborted()}function U(e,t){if(typeof e!="string"||e.trim().length===0)throw new TypeError(`Relationship graph ${t} must be non-empty`);return e.trim()}function Z(e,t,r={}){let o=Date.parse(r.createdAt??new Date().toISOString());if(!Number.isFinite(o))throw new TypeError("Relationship graph createdAt must be a valid timestamp");let n=e.nodes(),s=e.edges(),i=t.list();return Object.freeze({version:pt,fingerprint:Ay("sha256").update(R({nodes:n,edges:s,kinds:i})).digest("hex"),created_at:new Date(o).toISOString(),nodes:n,edges:s,kinds:i})}function vy(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function se(e){if(!vy(e))throw new TypeError("Relationship graph snapshot must be an object");if(e.version!==pt)throw new TypeError(`Unsupported relationship graph snapshot version: ${String(e.version)}`);if(!Array.isArray(e.nodes)||e.nodes.some(n=>typeof n!="string"))throw new TypeError("Relationship graph snapshot nodes must be strings");if(!Array.isArray(e.edges)||!Array.isArray(e.kinds))throw new TypeError("Relationship graph snapshot edges and kinds must be arrays");if(typeof e.created_at!="string"||!Number.isFinite(Date.parse(e.created_at)))throw new TypeError("Relationship graph snapshot created_at must be valid");if(typeof e.fingerprint!="string")throw new TypeError("Relationship graph snapshot fingerprint must be a string");let t=new Le([]);for(let n of e.kinds)t.register(n);let r=new z(e.nodes,e.edges,t),o=Z(r,t,{createdAt:e.created_at});if(o.fingerprint!==e.fingerprint)throw new TypeError("Relationship graph snapshot fingerprint mismatch");return{snapshot:o,registry:t,graph:r}}async function x(e,t){U(e.name,"adapter name");let r=U(t.workspace,"workspace");J(t.signal);let o=await e.read({...t,workspace:r});return J(t.signal),o===null?null:se(o)}async function Oe(e,t){let r=U(t.workspace,"workspace"),o=se(t.snapshot).snapshot,n=await x(e,{workspace:r,signal:t.signal});if(n?.snapshot.fingerprint===o.fingerprint)return{adapter:e.name,workspace:r,disposition:"current",fingerprint:o.fingerprint,previous_fingerprint:n.snapshot.fingerprint,node_count:o.nodes.length,edge_count:o.edges.length};if(J(t.signal),await e.replace({workspace:r,signal:t.signal,snapshot:o,expected_fingerprint:n?.snapshot.fingerprint??null}),(await x(e,{workspace:r,signal:t.signal}))?.snapshot.fingerprint!==o.fingerprint)throw new Error(`Relationship graph adapter "${e.name}" did not expose the replaced snapshot`);return{adapter:e.name,workspace:r,disposition:"written",fingerprint:o.fingerprint,...n?{previous_fingerprint:n.snapshot.fingerprint}:{},node_count:o.nodes.length,edge_count:o.edges.length}}function Oy(e,t={}){let r=e.map(se),o=new Map;for(let i of r)for(let a of i.snapshot.kinds){let d=o.get(a.kind);if(d&&R(d)!==R(a))throw new TypeError(`Conflicting federated relationship kind: ${a.kind}`);o.set(a.kind,a)}let n=new Le([...o.values()].sort((i,a)=>i.kind.localeCompare(a.kind))),s=new z(new Set(r.flatMap(i=>[...i.snapshot.nodes])),r.flatMap(i=>[...i.snapshot.edges]),n);return Z(s,n,t)}var ie=class{name;#e=new Map;constructor(t="memory"){this.name=U(t,"adapter name")}async read(t){J(t.signal);let r=this.#e.get(U(t.workspace,"workspace"));return r?structuredClone(r):null}async replace(t){J(t.signal);let r=U(t.workspace,"workspace"),o=this.#e.get(r);if(t.expected_fingerprint!==void 0&&(o?.fingerprint??null)!==t.expected_fingerprint)throw new Error(`Relationship graph adapter conflict for ${r}`);this.#e.set(r,structuredClone(se(t.snapshot).snapshot))}async clear(t){J(t.signal);let r=U(t.workspace,"workspace"),o=this.#e.get(r);if(t.expected_fingerprint!==void 0&&(o?.fingerprint??null)!==t.expected_fingerprint)throw new Error(`Relationship graph adapter conflict for ${r}`);this.#e.delete(r)}};(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e47f9bb8-f98e-5159-9116-29c3e6fedfc3")}catch{}})();function eo(e,t){if(!Number.isInteger(e)||e<1)throw new TypeError(`Relationship graph ${t} must be a positive integer`);return e}function Iy(e){let t=eo(e.nodeCount,"nodeCount"),r=eo(e.edgeStride??1,"edgeStride"),o=e.topology??"chain";if(!["chain","star","disconnected"].includes(o))throw new TypeError(`Unsupported relationship graph topology: ${o}`);let n=(e.kind??"related").trim(),s=(e.idPrefix??"node").trim();if(!n||!s)throw new TypeError("Relationship graph kind and idPrefix must be non-empty");let i=o==="disconnected"?0:Math.floor((t-1)/r);return{node_count:t,edge_count:i,edge_basis:"fixture_generated",nodes:{*[Symbol.iterator](){for(let a=0;a<t;a+=1)yield`${s}-${a}`}},edges:{*[Symbol.iterator](){if(o!=="disconnected")for(let a=r;a<t;a+=r)yield{source:`${s}-${o==="star"?0:a-r}`,target:`${s}-${a}`,kind:n}}}}}function j(e,t){if(!e)throw new Error(`Relationship graph adapter conformance: ${t}`)}async function to(e,t={}){let r=t.workspace?.trim()||"pm-graph-conformance",o=yt(),n=Z(new z(["a","b"],[{source:"a",target:"b",kind:"related"}],o),o,{createdAt:"2026-01-01T00:00:00.000Z"}),s=Z(new z(["a","b","c"],[{source:"a",target:"b",kind:"related"},{source:"b",target:"c",kind:"blocked_by"}],o),o,{createdAt:"2026-01-02T00:00:00.000Z"}),i=[];j(await x(e,{workspace:r})===null,"workspace must start empty"),i.push({name:"empty-read",passed:!0});let a=await Oe(e,{workspace:r,snapshot:n});j(a.disposition==="written","first sync must write"),i.push({name:"atomic-replace",passed:!0}),(await e.read({workspace:r})).nodes.push("mutated-reader-copy"),j((await x(e,{workspace:r}))?.snapshot.nodes.length===2,"reads must not mutate stored state"),i.push({name:"read-isolation",passed:!0}),j((await Oe(e,{workspace:r,snapshot:n})).disposition==="current","identical sync must be idempotent"),i.push({name:"idempotent-sync",passed:!0}),await e.replace({workspace:r,snapshot:s,expected_fingerprint:n.fingerprint}),j((await x(e,{workspace:r}))?.snapshot.fingerprint===s.fingerprint,"replacement must become visible"),i.push({name:"replacement-visibility",passed:!0});let d=!1;try{await e.replace({workspace:r,snapshot:n,expected_fingerprint:n.fingerprint})}catch{d=!0}return j(d,"stale compare-and-swap must fail"),i.push({name:"stale-cas",passed:!0}),e.clear&&(await e.clear({workspace:r,expected_fingerprint:s.fingerprint}),j(await x(e,{workspace:r})===null,"clear must remove the workspace"),i.push({name:"clear",passed:!0})),{adapter:e.name,workspace:r,cases:Object.freeze(i),clear_supported:e.clear!==void 0}}function Ry(e){return to(new ie,e?{workspace:e}:{})}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="df28925a-72d8-5d39-accf-e295ee01d3f9")}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]="d45a8203-4501-5797-a6cc-a2e7844adec9")}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]="f5567aa1-0268-574d-907b-38d6249538ce")}catch{}})();var ut=2,My=["self_reported","independent_transport"];function Ie(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function ae(e,t){if(typeof e!="string"||e.trim().length===0)throw new TypeError(`${t} must be a non-empty string`);return e.trim()}function ro(e,t,r=!1){if(!Array.isArray(e)||e.length===0)throw new TypeError(`${t} must be a non-empty string array`);return e.map((o,n)=>{let s=ae(o,`${t}[${String(n)}]`);return r?o:s})}function mt(e,t){return e===void 0?void 0:ae(e,t)}function Py(e,t){if(e===void 0)return;if(!Ie(e)||Object.keys(e).length===0)throw new TypeError(`${t} must be a non-empty object`);let r=Object.entries(e).map(([o,n])=>{if(o.length===0||o.split(".").some(s=>s.length===0))throw new TypeError(`${t} must use dot-separated own-property paths`);if(n!==null&&typeof n!="string"&&typeof n!="boolean"&&(typeof n!="number"||!Number.isFinite(n)))throw new TypeError(`${t} values must be JSON primitives`);return[o,n]});return Object.fromEntries(r)}function ky(e,t,r,o,n,s){if(o==="refusal"){if(Ke(r)||n===void 0||s===void 0)throw new TypeError(`${e} refusal steps require a non-success exit, error code, and refusal surface`);return}if(n!==void 0||s!==void 0)throw new TypeError(`${e} only refusal steps may declare expected_error_code or expected_refusal_surface`);let i=Ct(t);if(i===void 0)throw new TypeError(`${e}.args must identify a command after global flags`);let a=t[i].trim().toLowerCase();if(a==="history"){let l=wt(t.slice(i+1));l!==void 0&&(a=Ne(`history ${l}`))}let d=Nt(a);if(!Ke(r)||r!==0&&!d?.exit_codes.some(l=>l===r))throw new TypeError(`${e} successful output must use exit code 0 or a command-declared successful effect exit`);let c=xt(a).kind;if(o!==c)throw new TypeError(`${e} expected ${o}, but ${a} declares ${c}`)}function xy(e,t,r){if(!Ie(e))throw new TypeError(`tasks.${t}.steps[${String(r)}] must be an object`);let o=`tasks.${t}.steps[${String(r)}]`,n=ae(e.id,`${o}.id`),s=ro(e.args,`${o}.args`,!0),i=e.expected_exit_code;if(typeof i!="number"||!Number.isSafeInteger(i))throw new TypeError(`${o}.expected_exit_code must be a safe integer`);let a=e.expected_output_kind;if(a!=="refusal"&&!kt.includes(a))throw new TypeError(`${o}.expected_output_kind is unsupported`);let d=a,c=e.expected_accounting_mode;if(!My.includes(c))throw new TypeError(`${o}.expected_accounting_mode is unsupported`);let l=c;if(l==="independent_transport"&&d!=="refusal")throw new TypeError(`${o} independent_transport accounting is supported only for refusal steps`);let p=ro(e.required_fields,`${o}.required_fields`);if(p.some(w=>w.split(".").some(q=>q.length===0)))throw new TypeError(`${o}.required_fields must contain dot-separated own-property paths`);let f=Py(e.expected_field_values,`${o}.expected_field_values`),_=mt(e.expected_error_code,`${o}.expected_error_code`),g=mt(e.expected_refusal_surface,`${o}.expected_refusal_surface`),T=mt(e.recovery_for,`${o}.recovery_for`);return ky(o,s,i,d,_,g),{id:n,args:s,expected_exit_code:i,expected_output_kind:d,expected_accounting_mode:l,required_fields:p,...f?{expected_field_values:f}:{},..._?{expected_error_code:_}:{},...g?{expected_refusal_surface:g}:{},...T?{recovery_for:T}:{}}}function Ny(e,t){if(!Ie(e))throw new TypeError(`tasks[${String(t)}] must be an object`);let r=ae(e.id,`tasks[${String(t)}].id`),o=ae(e.description,`tasks.${r}.description`);if(!Array.isArray(e.steps)||e.steps.length===0)throw new TypeError(`tasks.${r}.steps must be a non-empty array`);let n=e.steps.map((i,a)=>xy(i,r,a)),s=new Map;for(let i of n){if(s.has(i.id))throw new TypeError(`tasks.${r} contains duplicate step id ${i.id}`);if(i.recovery_for!==void 0&&(s.get(i.recovery_for)?.expected_output_kind!=="refusal"||i.expected_output_kind==="refusal"))throw new TypeError(`tasks.${r}.${i.id} recovery_for must reference an earlier refusal and declare successful output`);s.set(i.id,i)}if(n.at(-1)?.expected_output_kind==="refusal")throw new TypeError(`tasks.${r} completed task must terminate with successful output`);for(let i of n)if(i.expected_output_kind==="refusal"&&!n.some(a=>a.recovery_for===i.id))throw new TypeError(`tasks.${r}.${i.id} refusal must have a later successful recovery_for step`);return{id:r,description:o,steps:n}}function AN(e){if(!Ie(e))throw new TypeError("agent-task transcript corpus must be an object");if(e.version!==ut)throw new TypeError(`agent-task transcript corpus version must be ${String(ut)}`);if(!Array.isArray(e.tasks)||e.tasks.length===0)throw new TypeError("agent-task transcript corpus tasks must be non-empty");let t=e.tasks.map((o,n)=>Ny(o,n)),r=new Set;for(let o of t){if(r.has(o.id))throw new TypeError(`duplicate agent-task transcript id ${o.id}`);r.add(o.id)}return{version:ut,tasks:t}}import{createHash as oo}from"node:crypto";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7163a078-d8be-5bca-813f-c941fcb8e406")}catch{}})();function no(e,t){if(typeof e!="string"||e.trim().length===0)throw new TypeError(`Relationship backfill ${t} must be non-empty`);return e.trim()}function RN(e,t){let r=no(t.migrationId,"migrationId"),o=no(t.author,"author"),n=Date.parse(t.timestamp);if(!Number.isFinite(n))throw new TypeError("Relationship backfill timestamp must be valid");let s=new Date(n).toISOString(),i=ze(e,void 0,t.registry),a=i.graph.nodes(),d=i.graph.edges().map(f=>{let _=oo("sha256").update(JSON.stringify([r,f.kind,f.source,f.target,f.createdAt??null,f.author??null,f.payload??null])).digest("hex").slice(0,24);return Object.freeze({eventId:`backfill:${r}:${_}`,relationshipId:`migration:${r}:${_}`,action:"add",edge:f,author:o,timestamp:s,reason:`Backfill ${r} from legacy item metadata`})}),c=oo("sha256").update(JSON.stringify({migrationId:r,nodes:a,events:d})).digest("hex"),l=new Set([...t.existingEventIds??[]].filter(f=>typeof f=="string").map(f=>f.trim()).filter(Boolean)),p=d.filter(f=>!l.has(f.eventId));return Object.freeze({migration_id:r,fingerprint:c,nodes:a,events:Object.freeze(p),edge_count:d.length,skipped_existing_count:d.length-p.length,duplicate_dependency_rows:i.duplicateRows.length,dangling_reference_count:i.dangling.active.length+i.dangling.legacy_terminal.length})}import*as io from"node:module";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7a1d7194-6ff1-5365-ab64-80b47b0176d7")}catch{}})();var de=["suggested_retry","candidate_command","example","next_step","migration_hint","restore_with"],ft={suggested_retry:{kind:"suggested_retry",semantics:"recovery"},retry_command:{kind:"suggested_retry",semantics:"recovery"},candidate_command:{kind:"candidate_command",semantics:"recovery"},candidate_commands:{kind:"candidate_command",semantics:"recovery"},fallback_candidates:{kind:"candidate_command",semantics:"recovery",nested_value_field:"command"},next_best_command:{kind:"candidate_command",semantics:"recovery"},example:{kind:"example",semantics:"recovery"},examples:{kind:"example",semantics:"recovery"},next_step:{kind:"next_step",semantics:"recovery"},next_steps:{kind:"next_step",semantics:"recovery"},suggested_next_steps:{kind:"next_step",semantics:"recovery"},migration_hint:{kind:"migration_hint",semantics:"replacement"},migration_hints:{kind:"migration_hint",semantics:"replacement"},restore_with:{kind:"restore_with",semantics:"behavior_preserving"}},PN=Object.freeze(Object.keys(ft));function so(e){if(Object.hasOwn(ft,e))return ft[e]}var Ly=new Set([..."=([{,:;!?&|+-*%^~<>","=>"]);function Q(e,t){return e<t?-1:e>t?1:0}function Dy(e,t){let r=e[t],o=t+1,n="";for(;o<e.length&&e[o]!==r;)e[o]==="\\"?o+=2:(n+=e[o],o+=1);return e[o]===r&&(o+=1),{next:o,value:n}}function $y(e){return e===void 0||e.kind==="punctuator"&&Ly.has(e.value)||e.kind==="identifier"&&["return","case","throw","else","yield"].includes(e.value)}function Fy(e,t){if(/\s/u.test(e[t]))return t+1;if(e.startsWith("//",t)){let r=e.indexOf(`
|
|
28
|
-
`,t+2);return r===-1?e.length:r+1}if(e.startsWith("/*",t))return e.indexOf("*/",t+2)+2}function
|
|
29
|
-
`&&t.push(r+1);return t}function
|
|
30
|
-
`)}(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]="d252409d-e33e-5c9e-9671-789f0ee87312")}catch{}})();function tb(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 rb(e){return[e.exit_code!==ue.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 ${ue.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."},...tb(e)]}function VN(e){let t=[],r=new Set,o=0;e.length===0&&t.push({code:"empty_corpus",probe_id:"corpus",detail:"At least one real refusal observation is required."});for(let n of e){if(r.has(n.probe_id)){t.push({code:"duplicate_probe",probe_id:n.probe_id,detail:`${n.probe_id} was supplied more than once.`});continue}r.add(n.probe_id);let s=t.length;for(let i of rb(n))i!==void 0&&t.push(i);t.length===s&&(o+=1)}return t.sort((n,s)=>n.probe_id!==s.probe_id?n.probe_id.localeCompare(s.probe_id):n.code.localeCompare(s.code)),{ok:t.length===0,probe_count:r.size,closed_probe_count:o,closure_fraction:r.size===0?0:o/r.size,findings:t}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="39b4e1fe-a34a-5ffc-9447-eaf8c46863c7")}catch{}})();var lo="not-a-declared-action";function ob(e,t){if(e.startsWith("assurance ")&&t.name==="kind")return"measurement";switch(t.value_kind){case"integer":return"1";case"item_id":return"pm-domain";case"action":throw new Error(`Cannot synthesize a preceding action value for positional slot ${t.name}.`);default:return"example"}}function ce(e){return e.replaceAll(/[^a-z0-9]+/gu,"-").replaceAll(/^-|-$/gu,"")}function eL(e=Be.filter(t=>vt.some(r=>r.command===t.command&&r.disposition!=="package_owned"))){let t=new Set(e.filter(({command:r})=>!r.includes(" ")).map(({command:r})=>ce(r)));return e.flatMap(r=>r.slots.flatMap((o,n)=>{if(!o.required)return[];let s=r.command.split(" "),i=ce(r.command),a=s.length>1&&t.has(i)?s.map(ce).join("--"):i,d=ee(r.command).flatMap(l=>l.required?[l.flag,...l.value_name?["example"]:[]]:[]),c=je.some(l=>l.command===r.command);return[{probe_id:`required-argument-${a}-${ce(o.name)}`,command:r.command,refusal_args:[...s,...r.slots.slice(0,n).map(l=>ob(r.command,l)),...d],recovery_args:[...s,"--help"],error_code:c&&!r.command.startsWith("assurance ")?"invalid_argument_value":/^extension (?:activate|adopt|deactivate|uninstall)$/u.test(r.command)?"missing_lifecycle_target":"missing_required_argument",missing_argument:o.name,missing_argument_index:n}]})).sort((r,o)=>r.probe_id.localeCompare(o.probe_id))}function nb(e){switch(L(e)){case"assurance":case"workspace snapshot":return je.filter(({parent:t})=>t===e).map(({action:t})=>t);case"graph":return Fe;case"merge":return Ge;case"plan":return We;case"profile":return Xe;case"schema":return Lt;default:throw new Error(`Required positional action family ${e} has no authoritative value domain.`)}}function tL(e=Be){return e.filter(({slots:t})=>t[0]?.required===!0&&t[0].value_kind==="action").map(({command:t})=>{let r=t.split(" ");return{probe_id:`unknown-subcommand-${ce(t)}`,command:t,refusal_args:[...r,lo],recovery_args:[...r,"--help"],error_code:"unknown_subcommand",rejected_value:lo,allowed_values:[...nb(t)].sort()}}).sort((t,r)=>t.probe_id.localeCompare(r.probe_id))}function ib(e,t){let r=[...t].sort();return e.length===t.length&&[...e].sort().every((o,n)=>o===r[n])}function sb(e,t){if(!t)return[{code:"refusal_probe_missing",probe_id:e.probe_id,detail:`${e.probe_id} has no runtime observation.`}];let r=[];return t.error_code!==e.error_code&&r.push({code:"refusal_error_code_mismatch",probe_id:e.probe_id,detail:`${e.probe_id} emitted ${t.error_code||"<none>"}; expected ${e.error_code}.`}),t.exit_code!==2&&r.push({code:"refusal_exit_code_mismatch",probe_id:e.probe_id,detail:`${e.probe_id} exited ${t.exit_code}; expected usage exit 2.`}),"allowed_values"in e&&!ib(t.allowed_values,e.allowed_values)&&r.push({code:"refusal_allowed_values_mismatch",probe_id:e.probe_id,detail:`${e.probe_id} did not expose its complete action domain.`}),t.recovery_succeeded||r.push({code:"refusal_recovery_failed",probe_id:e.probe_id,detail:`${e.probe_id} help recovery did not succeed.`}),t.refusal_mutated_state&&r.push({code:"refusal_mutated_state",probe_id:e.probe_id,detail:`${e.probe_id} changed tracker state while refusing input${t.mutated_paths?.length?`: ${t.mutated_paths.join(", ")}`:"."}`}),r}function rL(e,t){let r=new Map(e.map(i=>[i.probe_id,i])),o=new Map(t.map(i=>[i.probe_id,i])),n=[...e.flatMap(i=>sb(i,o.get(i.probe_id))),...t.filter(i=>!r.has(i.probe_id)).map(i=>({code:"unexpected_refusal_probe",probe_id:i.probe_id,detail:`${i.probe_id} has no declared grammar refusal contract.`}))];n.sort((i,a)=>i.probe_id.localeCompare(a.probe_id)||i.code.localeCompare(a.code));let s=new Set(n.map(({probe_id:i})=>i));return{ok:n.length===0,probe_count:e.length,closed_probe_count:e.filter(({probe_id:i})=>!s.has(i)).length,findings:n}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d3795bc4-fbe5-5ca4-bc90-b72a2d469dc7")}catch{}})();var ht=[{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 nL(){return ht.map(e=>({...e}))}function ab(e,t){let r=[];t.error_code!==e.expected_error_code&&r.push({code:"error_code_mismatch",probe_id:e.probe_id,detail:`Expected ${e.expected_error_code}, received ${t.error_code}.`}),t.exit_code!==e.expected_exit_code&&r.push({code:"exit_code_mismatch",probe_id:e.probe_id,detail:`Expected exit ${e.expected_exit_code}, received ${t.exit_code}.`}),t.recovery_kind!==e.recovery_kind&&r.push({code:"recovery_kind_mismatch",probe_id:e.probe_id,detail:`Expected ${e.recovery_kind}, received ${t.recovery_kind}.`});let o=t.suggested_retry_args.indexOf("init"),n=o===0||o===2&&t.suggested_retry_args[0]==="--pm-path"&&t.suggested_retry_args[1]?.length>0;return e.recovery_kind==="initialize"&&!n&&r.push({code:"missing_init_recovery",probe_id:e.probe_id,detail:"Missing and uninitialized roots must emit a tokenized init retry."}),(t.unsafe_init_recommended||e.recovery_kind!=="initialize"&&t.suggested_retry_args.includes("init"))&&r.push({code:"unsafe_init_recovery",probe_id:e.probe_id,detail:"A tracker root that cannot be initialized safely must not recommend initialization."}),t.retry_succeeded||r.push({code:"retry_failed",probe_id:e.probe_id,detail:"The emitted retry or safe alternate-root recovery did not execute successfully."}),r}function iL(e){let t=new Map(e.map(n=>[n.probe_id,n])),r=[],o=0;for(let n of ht){let s=t.get(n.probe_id);if(s===void 0){r.push({code:"missing_probe",probe_id:n.probe_id,detail:"No runtime observation was supplied for this contract."});continue}let i=ab(n,s);r.push(...i),i.length===0&&(o+=1)}return r.sort((n,s)=>n.probe_id.localeCompare(s.probe_id)||n.code.localeCompare(s.code)),{ok:r.length===0,probe_count:ht.length,closed_probe_count:o,findings:r}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fe6d2eec-19a1-58fe-90e3-1f679e2f5179")}catch{}})();var Re,db=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 cb(e,t){if(t==="--limit")return"result-row-limit";if(t==="--node-limit")return"graph-node-limit";if(t==="--edge-limit")return"graph-edge-limit";if(t==="--output-limit")return"rendered-output-row-limit";if(t==="--output-budget")return"rendered-output-byte-budget";if(t==="--token-budget")return"context-intent-token-budget";if(t==="--full"){let r=db[L(e)];if(r===void 0)throw new Error(`Command ${e} exposes --full without a registered projection concept.`);return r}return t!=="--file"?t.slice(2):["create","update","update-many"].includes(L(e))?"linked-file-path":["comments","notes","learnings"].includes(L(e))?"entry-file-input":"plan-definition-file"}function Me(){if(Re!==void 0)return Re;let e=te.filter(({command:n})=>qe(n)).flatMap(({command:n,family:s})=>Pt(n,ee(n)).map(i=>({command:n,family:s,concept:cb(n,i.flag),flag:i.flag,aliases:Object.freeze([...i.aliases??[]]),value_kind:i.repeatable?"list":i.flag==="--limit"?"number":i.value_type}))),t=new Set(e.flatMap(n=>n.aliases.map(s=>`${n.command}:${s}`))),r=e.filter(n=>!t.has(`${n.command}:${n.flag}`)),o=new Map;for(let n of r){let s=o.get(n.concept)??new Set;s.add(n.value_kind),o.set(n.concept,s)}return Re=Object.freeze(r.map(n=>Object.freeze({...n,concept:o.get(n.concept)?.size===1?n.concept:`${n.concept}@${n.command}`}))),Re}function pL(){return Object.freeze(Me().map(e=>Object.freeze({command:e.command,canonical_flag:e.flag,accepted_spellings:Object.freeze([...new Set([e.flag,...e.aliases])].sort())})))}var po=Object.freeze({init:30,item:20,config:36,extension:55,package:56,packages:56,install:27,upgrade:29,create:100,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:35,events:33,"history-attest":23,"history-redact":27,"history-repair":27,"history-compact":30,"history-author-acknowledge":28,merge:27,schema:43,profile:22,activity:35,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:109,test:56,"test-all":40,telemetry:21,stats:29,health:36,validate:46,assurance:30,gc:22,workspace:23,contracts:29,claim:39,release:24,"start-task":23,"pause-task":23,"close-task":24,meet:33,event:33,remind:29,"test-runs-worker":20}),uo=Object.freeze({...po,...Object.fromEntries(xe.flatMap(({alias:e,canonical:t})=>{let r=po[e];return r===void 0?[]:[[t,r]]}))});function mo(){let e=new Map(Object.keys(uo).map(t=>[t,0]));for(let{command:t}of Me())e.set(t,Number(e.get(t))+1);return Object.freeze(Object.entries(uo).map(([t,r])=>Object.freeze({command:t,current:Number(e.get(t)),maximum:r})))}function lb(e,t,r){for(let o of e)for(let n of o.aliases){let s=t.get(`${o.command}:${n}`);s===void 0||s.flag===o.flag||r.push({code:"alias_collision",command:o.command,detail:`${n} aliases ${o.flag} but is canonical for ${s.flag}.`})}}function pb(e,t,r){let o=new Set(t.map(({command:n})=>n));for(let n of e.keys())o.has(n)||r.push({code:"missing_budget",command:n,detail:`${n} has canonical flags but no persisted budget.`});for(let n of t){let s=e.get(n.command)??0;s===0&&r.push({code:"stale_budget",command:n.command,detail:`${n.command} has a persisted budget but no canonical flags.`}),!(s<=n.maximum)&&r.push({code:"budget_exceeded",command:n.command,detail:`${s} canonical flags exceed the ratcheted maximum ${n.maximum}.`})}}function ub(e,t,r){let o=new Map(e.map(n=>[`${n.command}:${n.flag}`,n]));for(let n of t){let s=`${n.command}:${n.canonical_flag}`,i=o.get(s);if(!i){r.push({code:"removed_canonical_spelling",command:n.command,detail:`${n.canonical_flag} disappeared from the executable spelling inventory.`});continue}let a=new Set([i.flag,...i.aliases]);for(let d of n.accepted_spellings)a.has(d)||r.push({code:"removed_compatibility_spelling",command:n.command,detail:`${d} no longer resolves to ${n.canonical_flag}.`})}}function uL(e=Me(),t=mo(),r=[]){let o=[],n=new Map,s=new Map,i=new Map,a=new Map;for(let d of e){let c=`${d.command}:${d.flag}`;n.has(c)?o.push({code:"duplicate_canonical_flag",command:d.command,detail:`${d.flag} has more than one canonical row.`}):n.set(c,d),a.set(d.command,(a.get(d.command)??0)+1);let l=s.get(d.concept);l!==void 0&&l!==d.value_kind?o.push({code:"inconsistent_concept_kind",command:d.command,detail:`${d.concept} uses both ${l} and ${d.value_kind}.`}):s.set(d.concept,d.value_kind);let p=i.get(d.concept);p!==void 0&&p!==d.flag?o.push({code:"semantic_spelling_collision",command:d.command,detail:`${d.concept} is canonicalized by both ${p} and ${d.flag}.`}):i.set(d.concept,d.flag)}return lb(e,n,o),pb(a,t,o),ub(e,r,o),o.sort((d,c)=>d.command.localeCompare(c.command)||d.code.localeCompare(c.code)||d.detail.localeCompare(c.detail)),{ok:o.length===0,entry_count:e.length,budget_count:t.length,concept_count:new Set(e.map(({concept:d})=>d)).size,baseline_entry_count:r.length,findings:o}}function mL(){let e=Me(),t=mo(),r=new Map(t.map(({command:o})=>[o,"unknown"]));for(let{command:o,family:n}of e)r.set(o,n);return["# Generated flag lexicon budgets","","This file is generated by `listPmFlagLexicon()`. Compatibility aliases do not consume canonical budget.","","| Command | Capability family | Canonical flags | Maximum |","| --- | --- | ---: | ---: |",...t.map(({command:o,current:n,maximum:s})=>{let i=r.get(o);return`| \`${o}\` | ${i} | ${n} | ${s} |`}),""].join(`
|
|
31
|
-
`)}(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]="4e72da21-425b-568d-9174-bc5021e1d4f4")}catch{}})();function _L(e){return e}function hL(e){return e}function gL(e){return e}function yL(e){return e}function bL(e){return e}function TL(e){return e}function CL(e){return e}function wL(e){return e}function SL(e){return e}function EL(e){return e}function AL(e){return e}function vL(e){return e}function OL(e){return e}function IL(e){return{handled:!0,result:e}}function RL(){return{handled:!1}}function ML(e){return e}function PL(e){return e}function kL(e){return e}function xL(e){return e}function NL(e){return e}function LL(e){return e}function DL(e){return e}function $L(e){return e}function FL(e){return e}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="68ca9ab1-91e0-5020-859e-fc1f1f6dcc56")}catch{}})();function mb(e={},t={}){return new he(t).extension(void 0,{...e,migrate:!0})}function fb(e={},t={}){return new he(t).packageMigrate(e)}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="af4da99c-f557-5bf7-a439-c14878e4970d")}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]="604d7dcb-9fea-5631-8a72-b2a7ff3278f8")}catch{}})();function N(e){if(typeof e!="string"||!fe(e))throw new TypeError("Invalid reliability timestamp.");return Date.parse(e)}function _b(e){let t=N(e.window_start),r=N(e.window_end);if(t>=r||!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(o=>typeof o!="string"||o.trim().length===0)||new Set(e.families).size!==e.families.length)throw new TypeError("Expected unique, nonempty reliability families.");return{start:t,end:r}}function hb(e,t,r,o){let n=new Map(t.map(i=>[i,[]])),s=new Set;for(let i of e){if(typeof i.id!="string"||i.id.trim().length===0||s.has(i.id))throw new TypeError("Invalid or duplicate reliability attempt identity.");s.add(i.id);let a=n.get(i.family);if(!a||!["success","failure","pending"].includes(i.outcome)||i.cause!==void 0&&(!["product","infrastructure","unknown"].includes(i.cause)||i.outcome!=="failure"))throw new TypeError("Invalid reliability attempt family, outcome or cause.");let d=N(i.started_at);if(i.repaired_at!==void 0&&(N(i.repaired_at)<d||i.outcome!=="failure"))throw new TypeError("Invalid reliability repair chronology.");d>=r&&d<o&&a.push(i)}return n}function rD(e,t){let{start:r,end:o}=_b(t),n=[...hb(e,t.families,r,o)].map(([s,i])=>{let a=i.filter(_=>_.outcome==="failure"),d=i.filter(_=>_.outcome!=="pending").length,c=d===0?null:a.length/d,l=a.filter(_=>_.repaired_at!==void 0&&N(_.repaired_at)<o),p={product:0,infrastructure:0,unknown:0};for(let _ of a)p[_.cause??"unknown"]+=1;let f=[];return d<t.min_completed_attempts&&f.push("insufficient_completed_attempts"),c!==null&&c>t.max_failure_rate&&f.push("failure_rate"),{family:s,attempts:i.length,completed:d,failed:a.length,pending:i.length-d,failure_rate:c,affected_days:[...new Set(a.map(_=>new Date(N(_.started_at)).toISOString().slice(0,10)))].sort(),repair_minutes:l.map(_=>(N(_.repaired_at)-N(_.started_at))/6e4).sort((_,g)=>_-g),unresolved:a.length-l.length,causes:p,violations:f,ok:f.length===0}});return{schema:"pm-reliability-window/1",window_start:new Date(r).toISOString(),window_end:new Date(o).toISOString(),ok:n.every(s=>s.ok),families:n}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="773ad2b6-326e-5483-bdce-a377f935cb31")}catch{}})();function le(e){return typeof e=="string"&&e.length>0&&e.trim()===e}function gb(e){if(!Array.isArray(e)||e.length<2)throw new TypeError("Expected at least two artifact ledgers.");let t=new Map;for(let r of e){if(r===null||typeof r!="object"||!le(r.name)||t.has(r.name)||r.complete!==!0)throw new TypeError("Expected unique complete artifact ledgers.");if(!Array.isArray(r.identities))throw new TypeError("Invalid or duplicate artifact identity.");let o=new Set(r.identities);if(o.size!==r.identities.length||[...o].some(n=>!le(n)))throw new TypeError("Invalid or duplicate artifact identity.");t.set(r.name,o)}if([...t.values()].every(r=>r.size===0))throw new TypeError("Empty inventories cannot establish artifact reconciliation.");return t}function yb(e,t){if(!Array.isArray(e))throw new TypeError("Expected unique evidence-backed artifact exceptions.");let r=new Map;for(let o of e){if(o===null||typeof o!="object"||!le(o.identity)||r.has(o.identity)||!le(o.reason)||!le(o.evidence))throw new TypeError("Expected unique evidence-backed artifact exceptions.");let n=o.missing_from;if(!Array.isArray(n)||n.length===0||n.length>=t.length||new Set(n).size!==n.length||[...n].some(s=>!t.includes(s)))throw new TypeError("Invalid artifact exception ledger signature.");r.set(o.identity,o)}return r}function nD(e,t=[]){let r=gb(e),o=[...r.keys()].sort(),n=yb(t,o),s=[...new Set([...r.values()].flatMap(c=>[...c]))].sort(),i=[],a=new Set;for(let c of s){let l=o.filter(_=>!r.get(_).has(c));if(l.length===0)continue;let p=n.get(c),f=p!==void 0&&JSON.stringify([...p.missing_from].sort())===JSON.stringify(l);f&&a.add(c),i.push({identity:c,present_in:o.filter(_=>r.get(_).has(c)),missing_from:l,disposition:f?{reason:p.reason,evidence:p.evidence}:null})}let d=[...n.keys()].filter(c=>!a.has(c)).sort();return{schema:"pm-artifact-ledgers/1",ok:i.every(c=>c.disposition!==null)&&d.length===0,counts:Object.fromEntries(o.map(c=>[c,r.get(c).size])),findings:i,stale_exceptions:d}}(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]="fca4e9bb-3a30-512e-9929-565ab6c11c54")}catch{}})();import{createHash as _o,createHmac as bb,randomBytes as Tb,timingSafeEqual as Cb}from"node:crypto";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="837ee381-0838-55d3-bcdf-7352fb76661d")}catch{}})();var jD="dev.unbrained.pm/progressive-tool-discovery",BD=Object.freeze({version:1,discoveryTool:"pm_discover",canonicalResult:"structuredContent.result",compatibilityText:"pointer"}),wb=Object.freeze(["pm_discover","pm_next","pm_context","pm_search","pm_get"]),B=Object.freeze({lexical:.4,semantic:.2,graph:.1,permission:.15,freshness:.05,usage:.1}),Sb=Object.freeze(["profile_changed","tool_contract_changed","workspace_extension_changed","authorization_changed","ranking_signal_changed","cursor_integrity_key_rotated"]),ho={core:0,standard:1,full:2,internal:3},go=Object.freeze(["core","standard","full"]),Eb=new Set(["core","standard","full","custom"]),yo=new Set(te.map(({family:e})=>e)),Ab=Tb(32);function ke(e,t){if(typeof e!="string")throw new b(`pm tool discovery ${t} must be a string of at most 4096 Unicode characters.`,64);let r=e[Symbol.iterator](),o=0;for(let n=r.next();!n.done;n=r.next())if(o+=1,o>4096)throw new b(`pm tool discovery ${t} must be a string of at most 4096 Unicode characters.`,64);return e}function bo(e){if(!Number.isInteger(e)||Number(e)<1||Number(e)>100)throw new b("pm tool discovery limit must be from 1 through 100.",64);return Number(e)}function To(e){if(e!=="unbounded"&&(!Number.isInteger(e)||Number(e)<128))throw new b("pm tool discovery outputBudget must be unbounded or an integer of at least 128.",64);return e==="unbounded"?e:Number(e)}function Co(e){if(e!==void 0&&typeof e!="boolean")throw new b("pm tool discovery includeSchema must be a boolean.",64);return e===!0}function wo(e){if(e===null||typeof e!="object"||Array.isArray(e))throw new b("pm tool discovery options must be an object.",64)}function vb(e){if(!Array.isArray(e))throw new b("pm tool discovery candidates must be an array.",64);for(let[t,r]of e.entries()){if(r===null||typeof r!="object"||Array.isArray(r))throw new b(`pm tool discovery candidate ${t} must be an object.`,64);if(typeof r.name!="string"||r.name.trim().length===0)throw new b(`pm tool discovery candidate ${t} name must be a non-empty string.`,64);if(typeof r.description!="string"||r.description.trim().length===0)throw new b(`pm tool discovery candidate ${t} description must be a non-empty string.`,64);if(r.inputSchema===null||typeof r.inputSchema!="object"||Array.isArray(r.inputSchema))throw new b(`pm tool discovery candidate ${t} inputSchema must be an object.`,64);if(r.authorized!==void 0&&typeof r.authorized!="boolean")throw new b(`pm tool discovery candidate ${t} authorized must be a boolean.`,64)}}function qD(e){if(wo(e),e.family!==void 0&&(typeof e.family!="string"||!yo.has(e.family)))throw new b("pm tool discovery family must be a declared capability family.",64);if(e.tier!==void 0&&(typeof e.tier!="string"||!go.includes(e.tier)))throw new b("pm tool discovery tier must be core, standard, or full.",64);return{...e.query!==void 0?{query:ke(e.query,"query")}:{},...e.family!==void 0?{family:e.family}:{},...e.tier!==void 0?{tier:e.tier}:{},...e.limit!==void 0?{limit:bo(e.limit)}:{},...e.cursor!==void 0?{cursor:ke(e.cursor,"cursor")}:{},...e.includeSchema!==void 0?{includeSchema:Co(e.includeSchema)}:{},...e.outputBudget!==void 0?{outputBudget:To(e.outputBudget)}:{}}}function Ob(e){return e===void 0||!Number.isFinite(e)?0:Math.min(1,Math.max(0,e))}function pe(e){return[...new Set(e.toLowerCase().match(/[a-z0-9]+/gu)??[])].sort()}function Ib(e,t){let r=pe(e);if(r.length===0)return 0;let o=new Set(pe(t)),n=r.filter(i=>o.has(i)).length,s=t.toLowerCase().includes(e.toLowerCase())?.25:0;return Math.min(1,n/r.length+s)}function Rb(e,t){let r=pe(e);if(r.length===0)return 0;let o=t.toLowerCase(),n=pe(t),s=r.filter(a=>n.some(d=>d.startsWith(a)||a.startsWith(d))).length,i=o.includes(e.toLowerCase())?.2:0;return Math.min(1,s/r.length+i)}function fo(e){return _o("sha256").update(JSON.stringify(e)).digest("hex").slice(0,24)}function So(e,t,r){return bb("sha256",r).update(JSON.stringify({version:1,fingerprint:e,offset:t})).digest("base64url")}function Mb(e,t,r){let o={version:1,offset:t,signature:So(e,t,r)};return Buffer.from(JSON.stringify(o),"utf8").toString("base64url")}function Pb(e,t,r,o){if(e===void 0)return 0;try{let n=JSON.parse(Buffer.from(e,"base64url").toString("utf8"));if(n.version!==1||!Number.isInteger(n.offset)||(n.offset??-1)<0||Number(n.offset)>r||typeof n.signature!="string")throw new Error("cursor fields do not match the request");let s=Buffer.from(So(t,n.offset,o),"base64url"),i=Buffer.from(n.signature,"base64url");if(i.length!==s.length||!Cb(i,s))throw new Error("cursor signature does not match the request");return n.offset}catch(n){throw new b("Invalid or stale pm tool discovery cursor; restart discovery without cursor.",64,{reason:String(n)})}}function gt(e,t,r){return{value:Ob(e),weight:t,available:r!=="unavailable",source:r}}function Pe(e,t,r){return gt(e??t,r,e===void 0?"computed":"host")}function kb(e,t,r){let o=Object.hasOwn(_e,e.name)?_e[e.name]:"help",n=Ve(o),s=`${e.name} ${e.description} ${o} ${n}`,i=Ib(t,s),a=new Set(pe(t)),d={lexical:gt(i,B.lexical,"computed"),semantic:Pe(e.signals?.semantic,Rb(t,s),B.semantic),graph:Pe(e.signals?.graph,a.has(n)||a.has(o)?1:0,B.graph),permission:gt(1,B.permission,"authorization"),freshness:Pe(e.signals?.freshness,1,B.freshness),usage:Pe(e.signals?.usage,wb.includes(e.name)?1:0,B.usage)},c=Object.values(d).reduce((l,p)=>l+p.value*p.weight,0);return{name:e.name,description:e.description,command:o,tier:He(o),family:n,score:Number(c.toFixed(6)),signals:d,...r?{input_schema:structuredClone(e.inputSchema)}:{}}}function xb(e){if(e.cursorIntegrityKey!==void 0&&(!(e.cursorIntegrityKey instanceof Uint8Array)||e.cursorIntegrityKey.byteLength<32))throw new b("pm tool discovery cursorIntegrityKey must contain at least 32 bytes.",64);if(e.tier!==void 0&&(typeof e.tier!="string"||!go.includes(e.tier)))throw new b("pm tool discovery tier must be core, standard, or full.",64);if(e.family!==void 0&&(typeof e.family!="string"||!yo.has(e.family)))throw new b("pm tool discovery family must be a declared capability family.",64);if(e.profile!==void 0&&(typeof e.profile!="string"||!Eb.has(e.profile)))throw new b("pm tool discovery profile must be core, standard, full, or custom.",64)}function Nb(e){let t=ke(e.query===void 0?"":e.query,"query").trim().replace(/\s+/gu," ");ke(e.cursor===void 0?"":e.cursor,"cursor");let r=bo(e.limit===void 0?10:e.limit),o=To(e.outputBudget===void 0?1200:e.outputBudget);return xb(e),{query:t,includeSchema:Co(e.includeSchema),limit:r,budget:o,maximumTier:ho[e.tier??"full"],profile:e.profile===void 0?"core":e.profile}}function Eo(e,t,r){let o=r??e.tools.reduce((i,a,d)=>i+(d===0?0:1)+Buffer.byteLength(JSON.stringify(a),"utf8"),0),n={...e,tools:[]},s=0;for(let i=0;i<4;i+=1){let a=Buffer.byteLength(JSON.stringify({...n,token_cost:{estimated_tokens:s,budget:t,within_budget:!0}}),"utf8"),d=Math.ceil((a+o)/4);if(d===s)break;s=d}return s}function Lb(e,t,r){return e.filter(o=>o.authorized!==!1).map(o=>kb(o,r.query,r.includeSchema)).filter(o=>o.tier!=="internal"&&ho[o.tier]<=r.maximumTier&&(t.family===void 0||o.family===t.family)).sort((o,n)=>n.score-o.score||(o.name<n.name?-1:o.name>n.name?1:0))}function Db(e,t,r){if(t==="unbounded")return[...e];let o=[],n=0;for(let[s,i]of e.entries()){let a=n+(s===0?0:1)+Buffer.byteLength(JSON.stringify(i),"utf8");if(Eo(r(s+1),t,a)>t)break;o.push(i),n=a}return o}function zD(e,t={}){vb(e),wo(t);let r=Nb(t),o=t.cursorIntegrityKey??Ab,n=Lb(e,t,r),s=fo({query:r.query,family:t.family??null,tier:t.tier??"full",includeSchema:r.includeSchema,profile:r.profile,ranked:n}),i=Pb(t.cursor,s,n.length,o),a=n.slice(i,i+r.limit),d=[];r.includeSchema||d.push({name:"input_schema",reason:"compact_projection",restore_with:"Set includeSchema=true."}),i+r.limit<n.length&&d.push({name:"tools",reason:"limit",restore_with:"Continue with next_cursor or increase limit."});let c={result_type:"pm_tool_discovery",contract_version:1,query:r.query,profile:r.profile,total:n.length,ranking_policy:{version:1,formula:"weighted_sum_then_name",weights:B},cache:{key:fo({fingerprint:s,cursorIntegrityKey:_o("sha256").update(o).digest("hex"),limit:r.limit,offset:i,budget:r.budget}),ttl_ms:3e4,scope:"private",invalidates_on:Sb}},l=(g,T=g.length)=>{let w=i+T,q=w<n.length,I=[...d];return T<a.length&&I.push({name:"tools",reason:"token_budget",restore_with:"Continue with next_cursor or increase outputBudget."}),{...c,tools:[...g],returned:T,has_more:q,...q?{next_cursor:Mb(s,w,o)}:{},omission_receipt:{has_omissions:I.length>0,omitted:I}}},p=g=>{let T=l(g),w=Eo(T,r.budget);return{...T,token_cost:{estimated_tokens:w,budget:r.budget,within_budget:r.budget==="unbounded"||w<=r.budget}}},f=Db(a,r.budget,g=>l([],g)),_=p(f);if(a.length>0&&f.length===0){let g=p([a[0]]).token_cost.estimated_tokens;throw new b(`pm tool discovery outputBudget is too small to return a tool; increase it to at least ${g}.`,64,{required:String(g)})}if(r.budget!=="unbounded"&&_.token_cost.estimated_tokens>r.budget)throw new b(`pm tool discovery outputBudget is too small; at least ${_.token_cost.estimated_tokens} estimated tokens are required for this page.`,64,{required:String(_.token_cost.estimated_tokens)});return _}(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]="d007edcb-46f0-5546-b804-27d86afe23e7")}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]="1c706c4d-988c-5d6d-b8cc-8985ea2215d1")}catch{}})();export{Xv as ACTIONABILITY_ORDERING_KINDS,Ja as ACTIVITY_COMMANDER_STRING_OPTION_CONTRACTS,Ta as ACTIVITY_FLAG_CONTRACTS,mi as AGENT_PROVENANCE_DIMENSIONS,ns as AGGREGATE_FLAG_CONTRACTS,zs as APPEND_FLAG_CONTRACTS,HR as ASSURANCE_ACTIONS,KR as ASSURANCE_DECLARATION_KINDS,QO as ASSURANCE_DOCUMENT_VERSION,la as ASSURANCE_FLAG_CONTRACTS,eI as ASSURANCE_GATE_TRIGGERS,tI as ASSURANCE_MEASUREMENT_SOURCE_KINDS,ZI as ASSURANCE_PRESET_IDS,XO as AssuranceEvaluationRefusalError,WO as AssuranceMutationRefusalError,YO as AssuranceSourceResolutionError,Qn as BASELINE_ITEM_FORMAT_VERSION,by as BOUNDARY_FIXTURE_CAPTURE_SOURCES,bO as BRIEF_LIST_FIELDS,_i as BUILTIN_AGENT_PROVENANCE_ADAPTERS,X as BUILTIN_CORPUS_SHAPES,fi as BUILTIN_HARNESS_SIGNAL_DESCRIPTORS,Uo as BUILTIN_ITEM_TYPE_VALUES,zt as BUILTIN_PROFILES,$b as BUILTIN_RELATIONSHIP_KINDS,Wa as CALENDAR_COMMANDER_STRING_OPTION_CONTRACTS,ba as CALENDAR_FLAG_CONTRACTS,Vs as CLAIM_FLAG_CONTRACTS,qd as CLOSE_ACTION_OPTION_KEYS,Bs as CLOSE_FLAG_CONTRACTS,qs as CLOSE_MANY_FLAG_CONTRACTS,Js as CLOSE_TASK_FLAG_CONTRACTS,is as COMMENTS_FLAG_CONTRACTS,aT as COMMON_MUTATION_COMMAND_OPTION_KEYS,ka as COMPLETION_FLAG_CONTRACTS,Ho as CONFIDENCE_TEXT_VALUES,Ts as CONFIG_FLAG_CONTRACTS,Xa as CONTEXT_COMMANDER_STRING_OPTION_CONTRACTS,MM as CONTEXT_EVALUATION_METRIC_NAMES,wa as CONTEXT_FLAG_CONTRACTS,jt as CONTEXT_OUTPUT_VALUES,LM as CONTEXT_PACKING_PROFILES,wM as CONTEXT_RECENCY_EPOCH,vM as CONTEXT_RELEVANCE_SERVICE,EM as CONTEXT_RELEVANCE_SIGNAL_NAMES,FM as CONTEXT_SIGNAL_SET_VERSION,$M as CONTEXT_SIGNAL_STORE_FORMAT_VERSION,GM as CONTEXT_SIGNAL_STORE_WARNING_DETAILS,gw as CONTEXT_USAGE_LIMITS,Pa as CONTRACTS_FLAG_CONTRACTS,_a as COPY_FLAG_CONTRACTS,Jd as CREATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,Qd as CREATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,Zd as CREATE_COMMANDER_STRING_OPTION_CONTRACTS,Kb as CREATE_DIRECT_CLOSE_REASON_DEFAULT,pa as CREATE_FLAG_CONTRACTS,uS as CURRENT_HISTORY_HASH_ALGORITHM,MS as CURRENT_HISTORY_ITEM_HASH_VERSION,kS as CURRENT_HISTORY_RECORD_HASH_VERSION,ei as CURRENT_ITEM_FORMAT_VERSION,qM as ContextSignalStore,yw as ContextUsageValidationError,_M as DEFAULT_AUTHOR_IDENTITY_VOCABULARY,sP as DEFAULT_CHILD_SAMPLE_LIMIT,yO as DEFAULT_COMPACT_LIST_FIELDS,AE as DEFAULT_DERIVED_INDEX_MINIMUM_ITEMS,Mm as DEFAULT_EVAL_QUERIES_RELATIVE_PATH,aM as DEFAULT_TERMINAL_TRANSITION_POLICY,KM as DEFAULT_WORKSPACE_MEMORY_MINIMUM_ITEMS,jv as DEFECT_ESCAPE_CLASSES,Bv as DEFECT_GATE_EVIDENCE_DISPOSITIONS,Ks as DELETE_FLAG_CONTRACTS,qo as DEPENDENCY_KIND_VALUES,Aa as DEPS_FLAG_CONTRACTS,cs as DOCS_FLAG_CONTRACTS,aa as DUPLICATES_FLAG_CONTRACTS,ER as DURABLE_MERGE_RECEIPT_INTRODUCED_AT,Oa as EVAL_FLAG_CONTRACTS,Sm as EVAL_METRIC_NAMES,Om as EVAL_QUERY_SET_CONTRACT,Im as EVAL_QUERY_SET_EXAMPLE,vm as EVAL_QUERY_SET_SCHEMA_ID,Ca as EVENTS_FLAG_CONTRACTS,Qs as EVENT_FLAG_CONTRACTS,No as EXECUTABLE_COMMAND_ALIASES,ue as EXIT_CODE,Ps as EXTENSION_ACTIVATE_FLAG_CONTRACTS,Ms as EXTENSION_ADOPT_ALL_FLAG_CONTRACTS,Fs as EXTENSION_ADOPT_FLAG_CONTRACTS,$P as EXTENSION_CAPABILITIES,Vb as EXTENSION_CAPABILITY_CONTRACT,qb as EXTENSION_CAPABILITY_CONTRACT_VERSION,zb as EXTENSION_CAPABILITY_LEGACY_ALIASES,tn as EXTENSION_CAPABILITY_REGISTRATION_SURFACES,$s as EXTENSION_CATALOG_FLAG_CONTRACTS,ks as EXTENSION_DEACTIVATE_FLAG_CONTRACTS,Rs as EXTENSION_DESCRIBE_FLAG_CONTRACTS,Ds as EXTENSION_DOCTOR_FLAG_CONTRACTS,Is as EXTENSION_EXPLORE_FLAG_CONTRACTS,Cs as EXTENSION_FLAG_CONTRACTS,Ss as EXTENSION_INIT_FLAG_CONTRACTS,vs as EXTENSION_INSTALL_FLAG_CONTRACTS,Ns as EXTENSION_MANAGE_FLAG_CONTRACTS,xs as EXTENSION_MIGRATE_FLAG_CONTRACTS,FP as EXTENSION_POLICY_MODES,GP as EXTENSION_POLICY_SURFACES,Ls as EXTENSION_RELOAD_FLAG_CONTRACTS,jP as EXTENSION_SANDBOX_PROFILES,ws as EXTENSION_SCOPE_FLAG_CONTRACTS,UP as EXTENSION_TRUST_MODES,Os as EXTENSION_UNINSTALL_FLAG_CONTRACTS,uO as EXTERNAL_DEPENDENCY_RESOLUTION_STATUSES,lO as EXTERNAL_DEPENDENCY_SOURCE_KIND,pO as EXTERNAL_DEPENDENCY_SOURCE_KIND_ALIAS,ds as FILES_FLAG_CONTRACTS,ha as FOCUS_FLAG_CONTRACTS,ia as GC_FLAG_CONTRACTS,wO as GET_DEPTH_VALUES,Sa as GET_FLAG_CONTRACTS,rs as GLOBAL_FLAG_CONTRACTS,hp as GRAPH_DURABLE_CACHE_MIN_ITEMS,_p as GRAPH_DURABLE_CACHE_VERSION,va as GRAPH_FLAG_CONTRACTS,KE as GRAPH_QUERY_DEFAULTS,Fe as GRAPH_SUBCOMMAND_VALUES,Ea as GUIDE_FLAG_CONTRACTS,da as HEALTH_FLAG_CONTRACTS,fs as HISTORY_AUTHOR_ACKNOWLEDGE_FLAG_CONTRACTS,VI as HISTORY_AUTHOR_ATTRIBUTION_BASELINE,ZR as HISTORY_COMPACT_BULK_DEFAULT_MIN_ENTRIES,_s as HISTORY_COMPACT_FLAG_CONTRACTS,Ri as HISTORY_EVENT_CLASSIFICATION_VERSION,ls as HISTORY_FLAG_CONTRACTS,lS as HISTORY_HASH_ALGORITHMS,wI as HISTORY_ITEM_HASH_VERSION_3_INTRODUCED_IN,us as HISTORY_REDACT_FLAG_CONTRACTS,ms as HISTORY_REPAIR_FLAG_CONTRACTS,Hc as INIT_AGENT_GUIDANCE_MODE_VALUES,bs as INIT_FLAG_CONTRACTS,Gs as INSTALL_FLAG_CONTRACTS,Vo as ISSUE_SEVERITY_VALUES,ma as ITEM_COMPLETE_FLAG_CONTRACTS,_R as ITEM_LATEST_TIMESTAMP_FIELDS,Hb as ITEM_METADATA_KEY_ORDER,ua as ITEM_MUTATE_FLAG_CONTRACTS,fa as ITEM_REOPEN_FLAG_CONTRACTS,dR as ITEM_SCALAR_MISSING_VALUE,jo as ITEM_TYPE_VALUES,fR as ITEM_UNION_COLLECTION_FIELDS,BM as JsonFileContextSignalStoreAdapter,as as LEARNINGS_FLAG_CONTRACTS,pS as LEGACY_HISTORY_HASH_ALGORITHM,eu as LINKED_TEST_ENV_NAME_PATTERN,tu as LINKED_TEST_PM_CONTEXT_MODE_VALUES,Qp as LINKED_TEST_PROTECTED_ENV_KEYS,ru as LINKED_TEST_WORKSPACE_CONTEXT_MODE_VALUES,Ha as LIST_COMMANDER_STRING_OPTION_CONTRACTS,TO as LIST_COMMAND_DEFAULT_PROJECTIONS,qP as LIST_FILTER_EXTENSION_FLAG_DEFINITIONS,os as LIST_FILTER_FLAG_CONTRACTS,vO as LIST_SORT_FIELDS,OO as LIST_SORT_ORDER_VALUES,Mi as MAINTENANCE_HISTORY_OPERATIONS,iP as MAX_CHILD_PROJECTION_ITEMS,NC as MAX_WORKFLOW_POLICIES,LC as MAX_WORKFLOW_POLICY_TERMS,Zs as MEET_FLAG_CONTRACTS,vP as MERGE_DRIVER_ARTIFACT_VALUES,ps as MERGE_FLAG_CONTRACTS,Ge as MERGE_SUBCOMMAND_VALUES,RP as MUTATION_EVENT_WIRE_BUDGET,ie as MemoryRelationshipGraphAdapter,Ya as NEXT_COMMANDER_STRING_OPTION_CONTRACTS,Ra as NEXT_FLAG_CONTRACTS,Ku as NEXT_OUTPUT_VALUES,ss as NOTES_FLAG_CONTRACTS,Es as PACKAGE_FLAG_CONTRACTS,As as PACKAGE_INIT_FLAG_CONTRACTS,Ys as PAUSE_TASK_FLAG_CONTRACTS,Bd as PLAN_CREATE_METADATA_PARAMETER_KEYS,ys as PLAN_FLAG_CONTRACTS,rm as PLAN_SHOW_DEPTH_VALUES,We as PLAN_SUBCOMMANDS,om as PLAN_TEMPLATE_NAMES,My as PM_AGENT_TASK_ACCOUNTING_MODES,ut as PM_AGENT_TASK_TRANSCRIPT_VERSION,Mo as PM_BULK_LIFECYCLE_COMMAND_ALIASES,Di as PM_CLI_EXPECTED_ERROR_NAME,QE as PM_CLI_GRAMMAR_CONTRACT,WE as PM_CLI_GRAMMAR_NOUNS,Cn as PM_CLI_ONLY_TOOL_ACTION_WAIVERS,XE as PM_CLI_SHARED_VERBS,xo as PM_COMMAND_ALIAS_CONTRACTS,te as PM_COMMAND_CAPABILITY_CONTRACTS,vt as PM_COMMAND_DESTINATION_CONTRACTS,qO as PM_COMMAND_EXIT_CONTRACTS,BO as PM_COMMAND_EXIT_OUTCOME_CONTRACTS,Gn as PM_COMMAND_OUTPUT_BUDGET_CONTRACTS,GO as PM_COMMAND_OUTPUT_ENVELOPE_CONTRACTS,Be as PM_COMMAND_POSITIONAL_CONTRACTS,_c as PM_COMMAND_VISIBILITY_CONTRACTS,GI as PM_COMPLETE_LIST_FINDING_CODES,Vw as PM_CONTEXT_INTENTS_FILE,Iw as PM_CONTEXT_INTENT_CONTRACTS,Ro as PM_CONTEXT_OPS_COMMAND_ALIASES,gn as PM_CORE_COMMAND_NAMES,G as PM_CORPUS_SHAPE_SCHEMA,Sn as PM_DEPRECATED_TOOL_ACTIONS,Nn as PM_DIAGNOSTIC_DEGRADATION_STEPS,Ln as PM_DIAGNOSTIC_OUTPUT_BUDGET_CONTRACTS,xn as PM_DIAGNOSTIC_OUTPUT_CLASSES,En as PM_DISCOVERABLE_TOOL_ACTIONS,Hr as PM_EPISODE_SCHEMA,$O as PM_ERROR_CODE_CATALOG,xO as PM_ERROR_CODE_EXIT_CLASS_CONTRACTS,Zr as PM_EXACT_COVERAGE_METRICS,pn as PM_EXTENSION_CAPABILITY_CONTRACTS,yn as PM_EXTENSION_PACKAGE_ACTION_SUBCOMMANDS,mn as PM_EXTENSION_POLICY_MODE_CONTRACTS,hn as PM_EXTENSION_POLICY_SURFACE_CONTRACTS,_n as PM_EXTENSION_SANDBOX_PROFILE_CONTRACTS,un as PM_EXTENSION_SERVICE_NAME_CONTRACTS,fn as PM_EXTENSION_TRUST_MODE_CONTRACTS,MI as PM_GITATTRIBUTES_END,RI as PM_GITATTRIBUTES_START,kI as PM_GITATTRIBUTES_V2_END,PI as PM_GITATTRIBUTES_V2_START,Sc as PM_GITIGNORE_END,wc as PM_GITIGNORE_START,rM as PM_HISTORY_ATTESTATION_CONTRACT,Io as PM_HISTORY_COMMAND_ALIASES,nS as PM_HISTORY_OPERATION_ALIASES,sS as PM_HISTORY_OPERATION_CONTRACT,iS as PM_HISTORY_OPERATION_PATTERNS,Tn as PM_ITEM_ACTION_SUBCOMMANDS,rS as PM_ITEM_HISTORY_OPERATIONS,it as PM_MCP_APPS_EXTENSION,Rr as PM_MCP_APPS_SERVER_CAPABILITY,Ee as PM_MCP_APPS_SPEC_VERSION,kr as PM_MCP_APP_CONTRACTS,Pr as PM_MCP_APP_MIME_TYPE,wb as PM_MCP_ENTRY_TOOL_NAMES,m as PM_MCP_ERROR_CODES,Gk as PM_MCP_HTTP_PROTOCOL_VERSION,jh as PM_MCP_INPUT_REQUEST_METHODS,ck as PM_MCP_LEGACY_PROTOCOL_VERSIONS,tr as PM_MCP_LOG_LEVELS,E as PM_MCP_META_KEYS,jD as PM_MCP_PROGRESSIVE_DISCOVERY_EXTENSION,BD as PM_MCP_PROGRESSIVE_DISCOVERY_SERVER_CAPABILITY,Tc as PM_MCP_PROMPT_CONTRACTS,V as PM_MCP_PROTOCOL_VERSION,bc as PM_MCP_RESOURCE_CONTRACTS,at as PM_MCP_SKILLS_DRAFT_REVISION,xr as PM_MCP_SKILLS_EXTENSION,Kg as PM_MCP_SKILLS_SERVER_CAPABILITY,M as PM_MCP_SKILL_LIMITS,we as PM_MCP_SUBSCRIPTION_ID_META_KEY,Ye as PM_MCP_SUPPORTED_PROTOCOL_VERSIONS,Pk as PM_MCP_TASKS_EXTENSION,Zh as PM_MCP_TASK_STATUSES,_e as PM_MCP_TOOL_COMMAND_CONTRACTS,nC as PM_MODE_PAIRED_OUTPUT_PROJECTION_CONTRACTS,dd as PM_MUTATION_ACTION_CONTRACTS,xe as PM_NAMESPACED_COMMAND_ALIASES,zr as PM_OBSERVATION_SCHEMA,kn as PM_OUTPUT_BUDGET_CLASSES,Pn as PM_OUTPUT_DEGRADATION_STEPS,kt as PM_OUTPUT_ENVELOPE_KINDS,$t as PM_PACKAGE_CONVENTIONAL_RESOURCE_ROOTS,bn as PM_PACKAGE_ONLY_ACTION_SUBCOMMANDS,Dt as PM_PACKAGE_RESOURCE_KINDS,je as PM_POSITIONAL_ACTION_CONTRACTS,Yd as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA,Wd as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA_VERSION,ow as PM_READ_OUTPUT_COMPOSITION_OPTION_FLAGS,zC as PM_READ_OUTPUT_CONTINUATION_FINGERPRINT_POLICIES,ew as PM_READ_OUTPUT_DIMENSIONS,rw as PM_READ_OUTPUT_OPTION_FLAGS,XC as PM_READ_OUTPUT_SESSION_MAX_SEEN_ITEM_IDS,WC as PM_READ_OUTPUT_SESSION_MIN_TOKENS,tw as PM_READ_OUTPUT_SURFACES,nw as PM_READ_OUTPUT_SURFACE_CONTRACTS,oC as PM_READ_ROW_CONTRACTS,rC as PM_READ_ROW_JQ_SELECTOR,PN as PM_RECOVERY_REFERENCE_FIELDS,de as PM_RECOVERY_REFERENCE_KINDS,eb as PM_REFUSAL_CLOSURE_EXECUTABLE_CANONICAL_CODE_BASELINE,co as PM_REFUSAL_CLOSURE_EXECUTABLE_CANONICAL_CODE_BASELINE_V2,FN as PM_REFUSAL_CLOSURE_EXECUTABLE_CODE_BASELINE,ao as PM_REFUSAL_CLOSURE_EXECUTABLE_CODE_BASELINE_V2,Po as PM_RELOCATED_COMMAND_ALIASES,rd as PM_REPRODUCIBLE_PROCESS_ENV,zO as PM_SUCCESS_EXIT_CODES,wn as PM_TOOL_ACTIONS,zd as PM_TOOL_ACTION_PARAMETER_CONTRACTS,Xd as PM_TOOL_PARAMETERS_SCHEMA,Kd as PM_TOOL_PARAMETERS_SCHEMA_MAJOR,Hd as PM_TOOL_PARAMETERS_SCHEMA_VERSION,Ud as PM_TOOL_RESERVED_CUSTOM_FIELD_PROPERTIES,Vr as PM_VERDICT_SCHEMA,oS as PM_WORKSPACE_HISTORY_OPERATIONS,Br as PM_WORKSPACE_RECIPE_SCHEMA,gs as PROFILE_FLAG_CONTRACTS,Jt as PROFILE_LINT_CODES,Yt as PROFILE_LINT_DIMENSIONS,qt as PROFILE_NAMES,Xe as PROFILE_SUBCOMMANDS,b as PmCliError,he as PmClient,UI as PmCompleteListValidationError,y as PmMcpAuthorizationError,rr as PmMcpInputRequiredError,Er as PmMcpIssuerCredentialStore,u as PmMcpProtocolError,or as PmMcpRequestStateReplayGuard,Gr as PmMcpSkillRegistry,fr as PmMcpSubscriptionRegistry,ot as PmMcpTaskStore,TC as QUERY_CURSOR_CONTRACT,js as REINDEX_FLAG_CONTRACTS,tv as REINDEX_LOCK_ID,pt as RELATIONSHIP_GRAPH_SNAPSHOT_VERSION,Ws as RELEASE_FLAG_CONTRACTS,ea as REMIND_FLAG_CONTRACTS,At as RESERVED_ITEM_FIELD_NAMES,Hs as RESTORE_FLAG_CONTRACTS,zo as RISK_VALUES,FE as RelationshipEventLog,GE as RelationshipEventStore,z as RelationshipGraph,Le as RelationshipKindRegistry,hs as SCHEMA_FLAG_CONTRACTS,Ka as SEARCH_COMMANDER_STRING_OPTION_CONTRACTS,zP as SEARCH_EXTENSION_FLAG_DEFINITIONS,Ma as SEARCH_FLAG_CONTRACTS,Tu as SEMANTIC_ATTRIBUTION_LIMITS,Xb as SETTINGS_DEFAULTS,Lm as SNAPSHOT_SCHEMA,bI as SOURCE_CONTEXT_ACCESS_ENV,TI as SOURCE_CONTEXT_WRITE_OVERRIDE_ENV,Xs as START_TASK_FLAG_CONTRACTS,sa as STATS_FLAG_CONTRACTS,Bo as STATUS_VALUES,ts as SUBCOMMAND_GLOBAL_FLAG_CONTRACTS,Pi as SUBSTANTIVE_HISTORY_OPERATIONS,PS as SUPPORTED_HISTORY_ITEM_HASH_VERSIONS,xS as SUPPORTED_HISTORY_RECORD_HASH_VERSIONS,Jb as SUPPRESS_HOST_OUTPUT_MARKER,oa as TELEMETRY_FLAG_CONTRACTS,lf as TELEMETRY_SUBCOMMANDS,ra as TEST_ALL_FLAG_CONTRACTS,ta as TEST_FLAG_CONTRACTS,na as TEST_RUNS_FLAG_CONTRACTS,nf as TEST_RUN_MEASUREMENT_LIMIT,Dd as TOOL_ACTIVITY_OPTION_CONTRACTS,Ed as TOOL_AGGREGATE_OPTION_CONTRACTS,kd as TOOL_BULK_MUTATION_FILTER_OPTION_CONTRACT_SOURCE,Ld as TOOL_CALENDAR_OPTION_CONTRACTS,Nd as TOOL_CLOSE_MANY_FILTER_OPTION_CONTRACTS,$d as TOOL_CONTEXT_OPTION_CONTRACTS,Rd as TOOL_CREATE_OPTION_CONTRACTS,Id as TOOL_CREATE_OPTION_CONTRACT_SOURCE,Fd as TOOL_DEPS_OPTION_CONTRACTS,Gd as TOOL_GRAPH_OPTION_CONTRACTS,Sd as TOOL_LIST_FILTER_OPTION_CONTRACTS,Ad as TOOL_SEARCH_FILTER_OPTION_CONTRACTS,Od as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACTS,vd as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACT_SOURCE,xd as TOOL_UPDATE_MANY_FILTER_OPTION_CONTRACTS,Pd as TOOL_UPDATE_OPTION_CONTRACTS,Md as TOOL_UPDATE_OPTION_CONTRACT_SOURCE,Wb as TYPE_TO_FOLDER,uA as UNKNOWN_SUBCOMMAND_COMPATIBILITY_CODES,ec as UPDATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,rc as UPDATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,tc as UPDATE_COMMANDER_STRING_OPTION_CONTRACTS,ga as UPDATE_FLAG_CONTRACTS,ya as UPDATE_MANY_FLAG_CONTRACTS,Us as UPGRADE_FLAG_CONTRACTS,ca as VALIDATE_FLAG_CONTRACTS,xC as WORKFLOW_POLICY_ACTIONS,LI as WORKFLOW_POLICY_DOCUMENT_SCHEMA,NI as WORKFLOW_POLICY_SCHEMA,Ia as WORKSPACE_FLAG_CONTRACTS,ZS as WORKSPACE_HISTORY_ID,Dm as WORKSPACE_SNAPSHOT_ACTIONS,bl as WorkspaceGraphCache,zE as WorkspaceTransactionInterruptedError,zp as _testOnly,nP as _testOnlyAggregateCommand,gl as _testOnlyConfigCommand,lP as _testOnlyGetCommand,Mp as _testOnlyHealthCommand,Yc as _testOnlyInit,Kc as _testOnlyInitAgentGuidance,p0 as _testOnlyItemTransaction,xP as _testOnlyMutationEvents,tP as _testOnlyNextCommand,AP as _testOnlySearchCommand,YI as _testOnlySimilarity,am as _testOnlyTemplates,jp as _testOnlyValidateCommand,DP as _testOnlyWorkspacePosition,rR as acceptAssuranceProposals,Gp as acknowledgeLinkedTests,fl as acknowledgeUnknownAuthorHistoryEvents,ml as acknowledgeUnknownAuthorHistoryEventsFromTransport,vE as acquireItemMetadataDerivedIndexLock,Ue as acquireLock,S0 as activateExtensionForTest,PT as activateExtensions,ui as agentSessionEnvironment,p_ as aggregate,Km as analyzeAgentProvenanceDescriptorCoverage,zv as analyzeDefectChangeRisk,VR as analyzeDefectRecurrenceCoverage,Bl as analyzeDuplicateItems,jE as analyzeGraphImpact,ic as analyzeHierarchyIntegrity,BE as analyzeKnowledgeGraph,HO as analyzePmCommandExitConformance,An as analyzePmToolActionParity,kR as analyzeReconciliationDiscard,UE as analyzeRelationshipExecution,ap as analyzeRelationshipSchedule,Lh as analyzeSdkActionCoverage,Mt as analyzeSdkCliParameterCompleteness,S_ as append,Ni as appendHistoryEntry,rE as appendWorkspaceAuditEvent,tE as appendWorkspaceHistoryChange,gA as applyAcceptanceCriteriaMutations,eR as applyAssurancePreset,Ga as applyBootstrapPagerPolicy,UR as applyClosureTimestampFix,xw as applyContextIntentProjection,Hu as applyContextTagProjection,IO as applyFilterValueEcho,mE as applyHistoryPatch,td as applyInvocationAuthorOverride,Il as applyPathMigrations,uw as applyReadOutputDimensions,dw as applyReadOutputIncludeModes,JC as applyReadOutputSessionReferences,bE as applyRegisteredItemFieldDefaultsAndValidation,kl as applyStandaloneNote,Yi as applyStoredExtensionMigrationState,bA as applyTagRemovals,pM as applyTerminalOrderingPolicy,xl as artifactKey,sT as asRecordClone,iT as asRecordOrNull,ze as assembleWorkspaceRelationshipGraph,zI as assertCompleteListResult,ok as assertExtensionBlueprint,rk as assertExtensionCapabilityUsage,F0 as assertExtensionDeactivated,sk as assertExtensionManifestCompatible,ik as assertExtensionManifestMatchesBlueprint,ak as assertExtensionPreflight,dc as assertHierarchyMutationAllowed,QR as assertHistoryCompactTarget,NR as assertHistoryRepairTarget,Yn as assertInitializedTracker,Rl as assertLinkedArtifactMutationIsUnambiguous,pk as assertMcpClientCapabilities,lk as assertMcpProtocolHeader,Ry as assertMemoryRelationshipGraphAdapterConformance,wA as assertNoUnknownCsvKeys,G0 as assertPackageManifest,UA as assertParentReferenceIsNotSelf,_x as assertPmMcpSkillsCapability,nk as assertProjectProfile,II as assertProjectRuntimeCompatibility,iC as assertProjectionModeChoice,Xn as assertReadableTrackerRoot,U0 as assertRegisteredCommandContract,Y0 as assertRegisteredCommandOverride,H0 as assertRegisteredExporter,j0 as assertRegisteredFlags,B0 as assertRegisteredHook,V0 as assertRegisteredImporter,K0 as assertRegisteredItemField,W0 as assertRegisteredItemType,tk as assertRegisteredMigration,J0 as assertRegisteredParserOverride,Z0 as assertRegisteredPreflightOverride,X0 as assertRegisteredProfile,Q0 as assertRegisteredRendererOverride,q0 as assertRegisteredSearchProvider,ek as assertRegisteredServiceOverride,z0 as assertRegisteredVectorStoreAdapter,jb as assertRelationshipEdgeAllowed,to as assertRelationshipGraphAdapterConformance,aA as assertSchemaPreviewSupported,mf as assertTestMeasurementRun,rI as assuranceAssertionUpdateIsLoosening,Dw as attachContextIntentReceipt,bw as attachContextUsageServingReceipt,Lp as attachLinkedTestMutationProvenance,Np as attachLinkedTestProvenance,Ze as attachMcpServerInfo,pC as attachOutputOmissionReceipt,Fw as attachOutputTokenAccounting,$w as attachReadOutputContracts,ZC as attachReadOutputSessionReceipt,Mc as auditMergeAttributeFence,xI as auditMergeDriverConfiguration,mp as auditWorkspaceRelationshipGraph,ex as authorizeMcpHttpRequest,li as boundAgentEpisodeIdentity,RC as boundReadOutputRows,Bu as buildChildrenByParent,bP as buildCompactSearchFilterSummary,RO as buildContentFilterEcho,jM as buildContextSignalSnapshot,uy as buildCorpusShapeItemPlan,qv as buildDefectRecurrenceIndex,Uc as buildExtensionDescribeResult,Bc as buildExtensionInstallPlan,MO as buildGovernanceMissingFilterEcho,WA as buildInvalidTypeError,aP as buildItemChildrenRollup,c0 as buildItemCompletionMutations,AM as buildItemContextRelevanceCandidates,kE as buildItemNotFoundError,cP as buildItemSchedule,jR as buildLinkedFileRepairReport,Vk as buildMcpAuthorizationDiscoveryUrls,Gh as buildMcpCompleteResult,mk as buildMcpDiscoverResult,Yk as buildMcpDynamicRegistrationMetadata,$k as buildMcpHttpRequestHeaders,yk as buildMcpInputRequiredResult,zk as buildMcpProtectedResourceMetadata,Ic as buildMergeAttributePatterns,Vd as buildPmActionToolInputSchema,jN as buildPmRefusalClosureCensus,XI as buildRelationshipContext,iv as buildSearchCorpus,av as buildSemanticCorpusInput,$R as buildStatusRoleWarnings,Wn as buildTrackerInitializationRecovery,uv as buildVectorizationEmbeddingIdentity,mv as buildVectorizationEmbeddingMetadata,TP as buildVerboseSearchFilters,DI as buildWorkflowCompletenessCheck,WM as buildWorkspaceMemorySnapshot,ci as canonicalDocument,dT as canonicalizeCommandOptionKey,JP as canonicalizeCommandSuggestions,SM as canonicalizeContextRecencyCoordinate,Fb as canonicalizeRelationshipKind,kN as censusPmRecoveryReferenceProducers,qI as certifyCompleteListResult,C0 as checkExtensionManifestCompatibility,sh as claim,ah as claimNext,HI as classifyHistoryAuthorEvent,ki as classifyHistoryEvent,MR as classifyHistoryMergeReceiptReferences,TT as classifyHostEnvironmentFault,wP as classifyImplicitSemanticFallbackReason,oi as classifyItemFormatVersion,_f as classifyLinkedTestCommandSafety,hf as classifyLinkedTestFailure,WT as clearActiveExtensionHooks,Cp as clearDurableGraphCache,vS as clearFocusedItem,Sf as clearWorkspaceContractsCache,ih as close,Kp as closeItem,_h as closeTask,Ba as coalesceRepeatedListFlags,Yv as collectBlockedByIds,Zv as collectBlockedByIdsFromCorpus,Cw as collectContextUsageDeliveredItemIds,uc as collectDanglingDependencyReferences,eO as collectDependencyBlockedIds,lc as collectDuplicateDependencyRows,up as collectDuplicateRelationshipEdgeGroups,CP as collectErrorCauseCodes,nc as collectHierarchyRelations,Tr as collectMcpHeaderAnnotations,mc as collectMissingDependencyTargetIds,Zp as collectNewOrderingCycleWarnings,cp as collectOrderingCycles,pc as collectOrderingStorageContradictions,Ww as collectPackageContextIntentContracts,Gt as collectPackageExtensionDirectories,gE as collectRegisteredItemFieldNames,yS as collectRuntimeCreateFieldValues,XA as collectRuntimeFilterValues,bS as collectRuntimeUpdateFieldValues,$u as collectSubtreeIds,rn as collectUsedExtensionCapabilities,cT as commandOptionFlagLabel,f_ as comments,Kf as commitImportedItem,l0 as commitItemCompletion,d0 as commitItemMutations,HE as commitWorkspaceTransaction,es as compactFlagAliasContracts,Fu as compareCriticalItems,SI as comparePmDateVersions,qE as compareRelationshipSnapshots,_w as compareTimestampStrings,TM as compileHistoryProvenanceMatcher,Pw as composeContextIntentContracts,f0 as composeExtension,T0 as composeExtensionPackage,rO as computeActionabilityReport,LA as computeHistoryDiff,ip as computeRelationshipCentrality,np as computeRelationshipDominators,yl as computeWorkspaceGraphFingerprint,A_ as config,KT as consumeAfterCommandAffectedItems,i_ as context,Lw as contextIntentRowId,ch as copy,gf as countFailureCategories,OC as countReadOutputRows,rh as create,QI as createAssurancePreset,qR as createAssuranceWorkspaceContext,dA as createCheckpointId,jI as createCompleteListOptions,kT as createCoreCommandHookContext,Jr as createCorpusShapeMeasurement,aI as createEmptyAssuranceDocument,gT as createEmptyExtensionRegistrationRegistry,Ki as createExtensionCommandSdk,en as createExtensionContributionInventory,dk as createExtensionTestHarness,xi as createHistoryEntry,Rv as createLazyModule,$I as createLifecycleCompletenessPolicies,tx as createMcpStaticBearerVerifier,kk as createMcpTaskStore,PE as createMutationGuardSdk,sC as createOutputOmissionReceipt,Fi as createPmCliExpectedError,Kn as createPmCliProgram,$n as createPmCommandOutputBudget,mC as createQueryFingerprint,Iy as createRelationshipGraphScaleFixture,Z as createRelationshipGraphSnapshot,yt as createRelationshipKindRegistry,nd as createReproducibleProcessRunner,gP as createSearchCursorFingerprint,xT as createSerialQueue,IA as createStdinTokenResolver,mA as createUnknownSubcommandError,qC as createWorkflowPolicyEvaluator,$m as createWorkspaceSnapshot,E0 as deactivateExtensionForTest,RL as declineServiceOverride,Nw as decodeContextIntentCursor,Iv as decodeHtmlEntitiesInOptions,br as decodeMcpHttpHeaderValue,Uw as decodePmTableRows,gC as decodeQueryCursor,_C as decodeQueryCursorEnvelope,hC as decodeQueryCursorState,KC as decodeReadOutputContinuationCursor,sx as decoratePmMcpToolsWithApps,Ll as dedupeLinkedArtifacts,OM as defaultScoreContextCandidates,LL as defineAfterCommandHook,xL as defineBeforeCommandHook,NL as defineBeforeMutationHook,gL as defineCommand,EL as defineCommandOverride,W as defineCorpusShape,Ax as defineEpisodeSpecification,kL as defineExporter,u0 as defineExtension,m0 as defineExtensionBlueprint,_L as defineExtensionManifest,yL as defineFlag,PL as defineImporter,TL as defineItemField,bL as defineItemType,CL as defineMigration,ry as defineObservationContract,FL as defineOnIndexHook,$L as defineOnReadHook,DL as defineOnWriteHook,AL as defineParserOverride,Fn as definePmCommandOutputBudget,FO as definePmCommandOutputEnvelope,NO as definePmErrorCodeCatalog,vL as definePreflightOverride,hL as defineProjectProfile,ML as defineRendererOverride,wL as defineSearchProvider,OL as defineServiceOverride,SL as defineVectorStoreAdapter,sy as defineVerdictContract,Ae as defineWorkspaceRecipe,lh as deleteItem,qm as deleteWorkspaceSnapshot,Bb as dependencyToRelationship,C_ as deps,tR as deriveAssuranceProposals,FR as deriveClosureTimestamp,h0 as deriveExtensionCapabilities,KO as derivePmBulkMutationEffect,xN as derivePmRecoveryReferenceObligations,dp as deriveRelationshipDeadlines,Nc as deriveSchemaEvolutionMigrationId,Cv as deriveTelemetryCommandResolution,QA as describeAllowedTransitions,yI as describeExtensionActivation,g0 as describeExtensionBlueprint,Au as describeItemOwnershipConflict,Ex as describeObservationCost,Wt as describeProfileComposition,Xt as describeProjectProfile,Jw as describeUnknownError,wi as detectAgentIdentity,vi as detectHarnessIdentity,rp as detectRelationshipCommunities,Si as diagnoseAgentIdentity,fp as diffRelationshipAuditSnapshots,df as diffTestRunMeasurements,Ck as digestMcpRequestParameters,RT as discoverExtensions,Xo as discoverNearbyPmRoot,zD as discoverPmTools,AI as discoverProjectRuntimeVersionPins,T_ as docs,m_ as duplicates,gp as durableGraphCachePath,wp as durableGraphCacheStatus,ti as effectiveItemFormatVersion,Fv as emitTelemetryErrorEvent,Hf as emptyImportedDocument,lR as encodeItemScalarDecisionValue,yr as encodeMcpHttpHeaderValue,Gw as encodePmTableRows,fC as encodeQueryCursor,HC as encodeReadOutputContinuationCursor,TE as enforceHistoryStreamPolicyForItem,CE as enforceHistoryStreamPolicyForItems,PO as enrichCliFlagInvocationContract,Pt as enrichCliFlagInvocationContracts,_E as ensureMaterializedHistoryTarget,Ac as ensurePmGitignore,Sl as ensureScope,Tv as ensureSentryInit,Vf as ensureTrackerInitialized,ep as enumerateRelationshipPaths,jn as estimatePmOutputTokens,cI as evaluateAssuranceAssertion,lI as evaluateAssuranceGate,qx as evaluateBoundaryFixtures,PM as evaluateContextRanking,Vv as evaluateDefectGateEvidence,dI as evaluateMeasurement,Am as evaluateMetricFloors,ld as evaluateMutationGuard,Qm as evaluateProvenanceCoverage,rD as evaluateReliabilityWindow,Ym as evaluateSemanticAttributionCoverage,zl as evaluateSimilarityGovernance,ZA as evaluateTransition,ay as evaluateVerdictContract,BC as evaluateWorkflowPolicies,ad as executeEmbeddingBatchesWithRetry,lv as executeVectorDelete,pv as executeVectorReset,cv as executeVectorUpsert,Zg as executeWorkspaceRecipe,Pl as expandAddGlobEntries,Hl as explainSourceTraceability,nM as exportAttestation,hh as extension,yh as extensionActivate,bh as extensionDeactivate,gh as extensionList,mb as extensionMigrate,RR as extractHistoryMergeReceiptDispositions,IR as extractHistoryMergeReceiptReferences,Jk as extractMcpTraceContext,pE as extractPatchFailureContext,Pp as extractReferencedPmItemIdsFromCommand,Oy as federateRelationshipGraphSnapshots,g_ as files,y_ as filesDiscover,b_ as filesLookup,ww as finalizeContextUsageDelivery,yy as findCoverageDeficits,ql as findDuplicateClusters,Oc as findGitWorkspaceRoot,zS as findHistoryIdentityDiscontinuities,Fc as findInstalledNpmPackageCandidate,ix as findPmMcpAppByUri,ko as findPmNamespacedCommand,op as findRedundantRelationshipEdges,sp as findRelationshipCutStructure,jl as findSimilarItems,$v as finishTelemetryCommand,ET as flattenFlagListValue,_y as flushTelemetryQueue,uh as focus,tp as forEachMatchedRelationshipEdge,pp as formatDuplicateEdgeGroup,sc as formatHierarchyRelation,lp as formatOrderingStorageContradiction,ZE as formatPmPositionalActionFlagTip,bm as formatProfileApplyHuman,ym as formatProfileLintHuman,hm as formatProfileListHuman,gm as formatProfileShowHuman,$c as formatSchemaEvolutionMigrationHuman,EP as formatVectorIndexRecoveryWarnings,LP as formatWorkspacePositionHuman,Y_ as gc,Bi as generateItemId,c_ as get,zT as getActiveCommandResult,Rw as getActiveContextIntentContracts,nn as getActiveExtensionRegistrations,Qk as getActiveMcpTraceContext,uI as getAssuranceDeclaration,kh as getContracts,ES as getFocusedItem,Zo as getHistoryPath,$E as getItemAt,Jo as getItemPath,md as getMutationActionContract,Ec as getPmGitignoreBlock,Yo as getSettingsPath,Ef as getWorkspaceContracts,QS as getWorkspaceHistoryPath,w_ as graph,yp as graphAuditBaselinePath,Jm as groupHistoryByEpisode,IL as handleServiceOverride,uk as hasMcpClientExtension,nx as hasPmMcpAppsCapability,qe as hasSubcommandFlagContractsForCommand,fv as hasVectorizationEmbeddingIdentityChanged,_v as hasVectorizationVectorDimensionChanged,jS as hashDocument,BS as hashDocumentForVersion,qS as hashEmptyDocument,LS as hashHistoryPatch,NS as hashHistoryRecord,DS as hashHistoryStream,pR as hashItemScalarDecisionValue,X_ as health,Yl as hierarchyAncestors,Jl as hierarchyDescendants,eh as historyCompact,th as historyCompactBulk,fS as historyDigest,bM as historyEntryMatchesProvenance,EI as historyItemHashVersionForRuntime,J_ as historyRedact,Z_ as historyRepair,Q_ as historyRepairAll,Jv as indexBlockedByIds,ac as indexHierarchyRelations,hv as inferConsistentVectorDimension,Dn as inferPmOutputBudgetClass,E_ as init,BI as inspectCompleteListResult,yT as inspectExtensionManifestSchema,dl as inspectHistoryAuthorStream,bR as inspectMergeReceiptEvidence,OI as inspectProjectRuntimeCompatibility,Td as inspectStaleInProgressItems,Dh as inspectStaticExtensionInventory,DR as inspectStatusRoleAssignments,eE as inspectWorkspaceHistoryState,Fm as inspectWorkspaceSnapshot,xc as installMergeFence,fk as interpretMcpResultType,Xu as isAlreadyClaimedError,eS as isCommanderError,ol as isErrnoError,Gv as isExternalDependencyReference,Uv as isExternalDependencySourceKind,me as isFileMissingError,Qb as isHostOutputSuppressed,$i as isItemAlreadyExistsError,cR as isItemScalarMissingValue,AR as isLegacyMergeReceiptSummary,h as isMcpRecord,pd as isMutationAction,Ub as isOrderingRelationshipKind,FA as isPlaceholderReferenceToken,Gi as isPmCliExpectedError,On as isPmExtensionCapabilityContract,Rn as isPmExtensionPolicyModeContract,Mn as isPmExtensionPolicySurfaceContract,In as isPmExtensionServiceNameContract,VO as isPmKnownExitCode,UO as isPmMutationReceipt,Ke as isPmSuccessfulExitCode,vn as isPmToolAction,vR as isPreDurableCloneLocalReceiptSummary,OR as isPreDurableDispositionEligibleReference,vI as isProjectMutatingInvocation,Mv as isPureSnakeCaseAlias,mw as isReadOutputBudgetExceeded,dC as isReadRowContract,Zc as isRuntimeRecord,xv as isTerminalPlanMode,CS as isTerminalStatus,Hn as isTimestampLiteral,i0 as itemDocumentToMutationOptions,dP as itemHasSchedule,fd as jaccardSimilarity,h_ as learnings,hT as levenshteinDistanceWithinLimit,el as limitAnnotationEntries,Dp as linkedTestTrustFingerprint,y0 as lintExtensionBlueprint,bT as lintExtensionManifestSchema,Zt as lintProjectProfile,s_ as list,gi as listAgentProvenanceAdapters,ja as listAliasPluralKeys,a_ as listAllComplete,RE as listAllDocumentCandidatesCached,Hi as listAllItemMetadata,ME as listAllItemMetadataLight,pI as listAssuranceDeclarations,gI as listAssuranceVerdicts,ly as listBuiltinCorpusShapes,ZP as listCoreClosedDomainContracts,SO as listGetProjectionFields,sR as listInvalidProvenanceHistoryStreamIds,CO as listListProjectionFields,TR as listMergeReceipts,ud as listMutationActions,MP as listMutationEvents,mo as listPmCommandFlagBudgets,gc as listPmCommandsForFamily,hc as listPmCommandsForTier,Me as listPmFlagLexicon,pL as listPmFlagSpellingInventory,yc as listPmMcpToolsForProfile,eL as listPmRequiredArgumentRefusalContracts,tL as listPmSubcommandRefusalContracts,Kt as listProfiles,nL as listTrackerPreflightRecoveryContracts,Gm as listWorkspaceSnapshots,Xw as loadContextIntentRuntimeLayers,dm as loadCreateTemplateOptions,MT as loadExtensions,Ep as loadGraphAuditBaseline,lA as loadMutationCheckpoint,x as loadRelationshipGraphAdapter,zi as locateItem,CA as looksLikeGenericKeyValueEntry,IC as mapReadOutputRows,CR as markMergeReceiptReconciled,YA as matchesRuntimeFilters,Lv as maybeRunFirstUseTelemetryPrompt,my as measureCorpusShapePlan,qi as measureItemMetadataReadWork,yA as mergeAdditiveTags,_0 as mergeExtensionBlueprints,uR as mergeHistoryStreams,hR as mergeItemDocuments,gR as mergeJsonDocuments,qa as mergeLinkedTestTwoTokenEntries,mR as mergeRelationshipEventStreams,zu as mergeSortedWarnings,kv as migrateItemFilesToFormat,NE as mutateItem,xE as mutateItemWithHistoryContext,oE as mutateWorkspaceJsonWithHistory,l_ as next,bi as normalizeAgentProvenanceAdapterValue,Qc as normalizeAnnotationTransportOptions,ZO as normalizeAssuranceEvaluation,JO as normalizeAssuranceMutation,za as normalizeBootstrapInvocation,kA as normalizeBulkIdsValue,cc as normalizeDependencyGraphTarget,hO as normalizeDependencySeedId,_O as normalizeDependencySourceKind,Qo as normalizeExtensionContributionInventory,cS as normalizeHistoryOperationForWrite,iR as normalizeInvalidHistoryProvenance,sA as normalizeItemAddressInvocation,ri as normalizeItemFormatVersion,ji as normalizeItemId,si as normalizeItemMetadata,gO as normalizeItemReference,Ua as normalizeLegacyExtensionActionSyntax,Ml as normalizeLinkedPath,$A as normalizeParentReferenceValue,Vt as normalizeProfileName,Ui as normalizeRawItemId,cw as normalizeReadOutputIncludeModeOptions,WS as normalizeReplayPatchOps,_d as normalizeSimilarityText,TS as normalizeStatusForRegistry,ii as normalizeStatusInput,hS as normalizeStatusInputWithRegistry,Qw as normalizeThrownExitCode,__ as notes,Vn as nowIso,bp as openDurableGraphCache,Tk as openMcpRequestState,vx as openPmEpisode,Zl as orderingPredecessors,Ql as orderingSuccessors,DM as packContextCandidates,Gu as packRankedContextItems,Rh as packageActivate,Ih as packageCatalog,Mh as packageDeactivate,vh as packageDescribe,Eh as packageDoctor,wh as packageInstall,Th as packageLifecycle,Ch as packageList,Ah as packageManage,fb as packageMigrate,Oh as packageReload,Sh as packageUninstall,bC as paginateQueryRows,El as parseAddEntries,Al as parseAddGlobEntries,rl as parseAnnotationTextInput,r0 as parseAtomicMutationControls,Fa as parseBootstrapCommandName,La as parseBootstrapGlobalOptions,$a as parseBootstrapHelpRequest,Va as parseBootstrapTypeValue,PA as parseBulkIdsText,Lu as parseContextDepth,Pu as parseContextFocusFields,Hw as parseContextIntentDeclarations,Du as parseContextSections,UM as parseContextSignalSnapshot,TA as parseCsvKv,Kv as parseDefectChangeRiskRequest,zR as parseDefectRecurrenceCoverageRequest,Hv as parseDefectRecurrencePolicy,Em as parseEvalMetricFloors,Rm as parseEvalQuerySet,Op as parseGraphSubcommand,oM as parseHistoryAttestation,gM as parseHistoryProvenanceFilters,oO as parseIntegerLimit,wS as parseItemDocument,o0 as parseItemMutationBatch,KA as parseLimit,pu as parseLinkedTestAssertionEqualsMap,uu as parseLinkedTestAssertionGteMap,iu as parseLinkedTestBoolean,su as parseLinkedTestContextMode,nu as parseLinkedTestEnvClear,ou as parseLinkedTestEnvSet,mu as parseLinkedTestJsonEntries,lu as parseLinkedTestMinLines,cu as parseLinkedTestRegexList,du as parseLinkedTestStringList,au as parseLinkedTestWorkspaceContextMode,zh as parseMcpCachePolicy,$h as parseMcpImplementation,tt as parseMcpInputRequests,ar as parseMcpInputResponses,fg as parseMcpSubscriptionFilter,Ol as parseMigrateEntries,sO as parseMultiValueFilter,jO as parseMutationReceipt,MA as parseOptionalNonNegativeInteger,RA as parseOptionalNumber,AN as parsePmAgentTaskTranscriptCorpus,qD as parsePmToolDiscoveryOptions,nO as parsePriority,cO as parsePriorityFilterSet,YC as parseReadOutputSession,yE as parseRegisteredItemFieldAssignments,se as parseRelationshipGraphSnapshot,vl as parseRemoveEntries,Vl as parseSourceLineRange,qA as parseStatusFilterCsv,aO as parseStringFilterSet,sd as parseTags,sf as parseTestRunMeasurements,iO as parseType,dO as parseTypeFilterSet,ul as parseUnknownAuthorHistoryEventCoordinates,DC as parseWorkflowPolicy,$C as parseWorkflowPolicyDocument,rP as partitionDecisionEntries,NA as patchPathToChangedField,$o as pathExists,fh as pauseTask,Tp as persistDurableGraphResult,dE as persistSelectedItemFormat,WI as planAgentIdentityVocabularyMutation,HM as planCompletedAtBackfill,qc as planExtensionDirectoryCopy,Qt as planProfileApplication,RN as planRelationshipEventBackfill,vp as planRelationshipRemediation,Lc as planSchemaEvolutionMigration,ll as planUnknownAuthorHistoryAcknowledgment,Um as planWorkspaceSnapshotRestore,tA as positionalShapeKey,rA as positionalSignatureKey,w0 as preflightExtension,gd as prepareSimilarityText,EA as preserveMutationStdinTokenFields,SA as preserveMutationStdinTokenLiterals,a0 as previewItemMutations,zw as printError,qw as printResult,q_ as profile,H_ as profileApply,K_ as profileLint,z_ as profileList,V_ as profileShow,HT as projectAfterCommandItemSnapshot,ku as projectContextFocusRows,of as projectFleetAttributionAnalytics,yM as projectHistoryProvenance,qn as projectPmDiagnosticOutput,zn as projectPmDiagnosticText,tf as projectProvenanceCoverageAnalytics,Up as projectValidateCounts,oR as promoteAssuranceAssertion,Tw as propagateContextUsageServingReceipt,Xx as pruneCompileCacheGenerations,mI as putAssuranceDeclaration,fI as putAssuranceDeclarationBundle,wE as queryItemMetadataIndex,SE as queryLinkedFileMetadataIndex,EE as querySimilarItemMetadataIndex,af as queryTestRunMeasurementsBelow,cn as quoteCommandArg,dn as quoteWindowsCommandArg,YP as rankCommandPaths,tl as readAnnotationEntries,Ei as readAuthorEnvironment,vf as readBooleanOption,Ow as readContextUsageAffinity,Of as readCsvListOption,Xi as readExtensionMigrationState,Fo as readFileIfExists,Za as readFirstStringFromCommanderOptions,Qa as readFirstValueFromCommanderOptions,Zm as readHistoryAnalyticsWindow,RS as readHistoryEntries,Ii as readHistorySnapshot,Vm as readImprovementLedger,OE as readItemMetadataDerivedIndexState,Vi as readLocatedItem,vC as readOutputBudgetCollections,VC as readOutputCollectionFingerprint,AC as readOutputContinuationRowCollections,SC as readOutputContinuationRowPaths,aw as readOutputIncludeModeOptions,EC as readOutputRowCollections,wC as readOutputRowPaths,QC as readOutputSessionRemainingTokens,Ft as readPmPackageManifest,wf as readRequiredString,Li as readSettings,cE as readSettingsWithMetadata,ed as readStringArrayFromCommanderOptions,Af as readStringOption,Zw as readThrownExitCode,gv as readVectorizationStatusLedger,hE as readWorkflowPolicies,FC as readWorkflowPolicyField,Kw as readWorkspaceContextIntentContracts,zM as readWorkspaceContextSignals,XM as readWorkspaceMemory,NP as readWorkspacePosition,JS as reanchorHistoryEntries,nD as reconcileArtifactLedgers,on as reconcileExtensionCapabilityUsage,iE as reconcileWorkspaceJsonHistory,VT as recordAfterCommandAffectedItem,hI as recordAssuranceVerdict,gu as recordClaimSemanticAttribution,Ew as recordContextUsageDelivery,Sw as recordContextUsageServing,Aw as recordContextUsageTouch,vw as recordContextUsageTouches,bu as recordFocusSemanticAttribution,zm as recordImprovementObservation,yu as recordReleaseSemanticAttribution,IE as refreshItemMetadataDerivedIndex,Pc as refreshMergeAttributeFenceIfInstalled,PC as refreshReadOutputDeliveredCounts,bv as refreshSearchArtifactsForMutation,yi as registerAgentProvenanceAdapters,mO as registerExternalDependencyResolver,hi as registerHarnessSignalDescriptors,tC as registerOutputMaterialFieldGroups,dh as release,MC as rememberReadOutputFocusRows,_I as removeAssuranceDeclaration,Go as removeFileIfExists,Fl as renameArtifactsResultKey,Ou as renderCalendarMarkdown,Iu as renderCalendarToon,Vu as renderContextMarkdown,jc as renderExtensionDescribeMarkdown,Gc as renderExtensionSurfaceMarkdown,Yf as renderGuideMarkdown,KP as renderMissingOptionRetry,oP as renderNextMarkdown,QP as renderPmClosedDomainHelp,ln as renderPmCommand,Do as renderPmCommandAliasMigrationHint,Cc as renderPmCommandVisibilityMarkdown,mL as renderPmFlagLexiconMarkdown,ax as renderPmMcpAppHtml,BN as renderPmRefusalClosureCensusMarkdown,VA as renderRowsAsCsv,HA as renderRowsAsTable,nh as reopen,fE as replayHistoryToTarget,HS as replayToCanonicalItemDocument,VS as replayToItemDocument,dS as requireHistoryOperation,cM as requireTerminalReason,lM as requireTerminalReasonWithRecovery,GS as resealHistoryRewrite,jT as resetActiveExtensionRuntimeState,Cl as resetWorkspaceGraphCache,pi as resolveAgentSessionContextFromSignals,al as resolveAnnotationIndex,nl as resolveAnnotationInput,IS as resolveAuthor,Oi as resolveAuthorIdentity,DA as resolveBodyFileContent,py as resolveBuiltinCorpusShape,vu as resolveCalendarOutputFormat,LO as resolveCanonicalPmErrorCodeContract,Gb as resolveCanonicalRelationshipKind,OS as resolveClaimPrincipal,xA as resolveCliBulkIdsInput,uT as resolveCommandOptionPolicyState,Wx as resolveCompileCacheGeneration,VM as resolveCompletionTimestamp,rT as resolveConfiguredPmPackageRoot,AO as resolveContentFieldFilters,kw as resolveContextIntentContract,xu as resolveContextOutputFormat,Nu as resolveContextTokenBudget,uM as resolveCreateExplicitEmptyFlag,mP as resolveEffectiveSearchMode,ov as resolveEmbeddingProviders,zc as resolveExtensionInstallSourceIdentity,Wi as resolveExtensionMigrationStatePath,IT as resolveExtensionRoots,fO as resolveExternalDependencyReference,ST as resolveFlagValueKind,_T as resolveGlobalPmRoot,Wf as resolveGuideOutputFormat,Hm as resolveHistoryEpisodeGroupIdentity,mS as resolveHistoryHashAlgorithm,aS as resolveHistoryOperation,hM as resolveHistoryProvenanceDimensions,LE as resolveHistorySubject,uE as resolveHistoryTarget,_P as resolveHybridSemanticWeight,Wo as resolveImplicitPmRoot,hw as resolveIsoOrRelative,Qv as resolveItemBlockers,Wv as resolveItemExecutionRole,n0 as resolveItemMutationDocument,Ko as resolveItemTypeRegistry,_S as resolveItemTypesFilePath,yf as resolveLinkedTestFailureExitCode,kp as resolveLinkedTestSourceRef,xp as resolveLinkedTestSourceWorkspaceRoot,$p as resolveLinkedTestTrust,Fp as resolveLinkedTestTrustBatch,_g as resolveMcpAcknowledgedSubscriptionFilter,Je as resolveMcpRequestContext,vc as resolveMergeInstallContext,WP as resolveMisnestedCommandPath,EO as resolveMissingMetadataFilters,HP as resolveMissingOptionPlaceholder,aC as resolveModePairedOutputOmissionReceipt,eP as resolveNextOutputFormat,lC as resolveOutputOmissionReceipt,tT as resolvePmCliVersion,Lo as resolvePmCommandAlias,Ve as resolvePmCommandCapabilityFamily,Nt as resolvePmCommandExitContract,L as resolvePmCommandOperation,Un as resolvePmCommandOutputBudget,xt as resolvePmCommandOutputEnvelope,YE as resolvePmCommandPositionalContract,He as resolvePmCommandVisibilityTier,Bn as resolvePmDiagnosticOutputBudget,DO as resolvePmErrorCodeContract,cb as resolvePmFlagSemanticConcept,Ne as resolvePmHistoryOperation,eT as resolvePmPackageRootFromModule,JE as resolvePmPositionalActionContract,xa as resolvePmPositionalActionFlagContracts,$e as resolvePmRoot,jd as resolvePmToolCustomFieldCollision,jA as resolvePriority,Ht as resolveProfile,Rc as resolveProjectMergeTypeFolders,yC as resolveQueryCursorStart,lw as resolveReadOutputDimensions,fw as resolveReadOutputEncoding,kC as resolveReadOutputRecoveryBudget,iw as resolveReadOutputSurface,cC as resolveReadRowContract,VP as resolveRecoveryCommandName,fA as resolveRegisteredSearchProvider,_A as resolveRegisteredVectorStoreAdapter,od as resolveReproducibleProcessEnvironment,Zn as resolveRuntimeFieldRegistry,Jn as resolveRuntimeStatusRegistry,nv as resolveSearchCorpusFields,uP as resolveSearchMaxResults,yP as resolveSearchPage,fP as resolveSearchScoreThreshold,hP as resolveSearchTuning,sv as resolveSemanticCorpusCharacterLimit,hu as resolveSemanticLineageIds,ev as resolveSettingsWithSemanticRuntimeDefaults,CI as resolveSourceContextWritePolicy,Su as resolveStartTaskInProgressStatus,ee as resolveSubcommandFlagContractsForCommand,Yb as resolveTelemetryErrorCategory,dM as resolveTerminalReason,pT as resolveTypeDefinition,lT as resolveTypeName,zA as resolveTypeSynonym,JA as resolveTypeWorkflows,pl as resolveUnknownAuthorAcknowledgmentSelector,SP as resolveVectorIndexRecovery,dv as resolveVectorStores,oc as resolveWorkspaceRelationshipKindRegistry,fT as resolveWorkspaceRoot,ph as restore,pA as restoreCheckpointItems,sE as restoreWorkspaceJsonFromHistory,Bm as restoreWorkspaceSnapshot,jm as restoreWorkspaceSnapshotWithRecovery,Nh as runAction,XT as runActiveBeforeMutationHooks,JT as runActiveCommandHandler,YT as runActiveOnIndexHooks,an as runActiveOnReadHooks,sn as runActiveOnWriteHooks,ZT as runActiveParserOverride,QT as runActivePreflightOverride,eC as runActiveServiceOverride,Mu as runActivity,OT as runAfterCommandHooks,Tm as runAggregate,sl as runAnnotationCommand,Hp as runAppend,WR as runAssuranceAction,XR as runAssuranceDispatch,vT as runBeforeCommandHooks,Ru as runCalendar,Yu as runClaim,Ju as runClaimNext,Wp as runClose,Yp as runCloseMany,tm as runCloseTask,_l as runComments,Jf as runCompletion,hl as runConfig,Bt as runContext,NM as runContextEvaluationCorpus,kM as runContextEvaluationScenario,Jp as runCopy,fu as runCreate,_u as runDelete,wl as runDeps,Gl as runDocs,JI as runDuplicates,Pm as runEval,xm as runEvent,Vc as runExtension,Zi as runExtensionMigrateAction,Ji as runExtensionMigrations,Kl as runFiles,Xl as runFilesDiscover,Wl as runFilesLookup,rf as runFleetAttributionAnalytics,wu as runFocus,qp as runGc,Cm as runGet,Ip as runGraph,Xf as runGuide,Rp as runHealth,pP as runHistory,sM as runHistoryAttest,JR as runHistoryCompact,eM as runHistoryCompactBulk,PR as runHistoryMaintenance,tM as runHistoryRedact,xR as runHistoryRepair,LR as runHistoryRepairAll,Jc as runInit,Wc as runInitAgentGuidance,Vp as runLearnings,$l as runLinkedArtifacts,bf as runLinkedTests,fc as runList,km as runMeet,OP as runMergeDriver,kc as runMergeInstall,SR as runMergeReceiptEvidenceReport,wR as runMergeReceiptReport,IP as runMergeReconcile,Wu as runNext,sm as runNotes,em as runPauseTask,nm as runPlan,_m as runProfileApply,fm as runProfileLint,um as runProfileList,mm as runProfileShow,ef as runProvenanceCoverageAnalytics,A0 as runRegisteredCommandForTest,M0 as runRegisteredCommandOverrideForTest,$0 as runRegisteredExporterForTest,O0 as runRegisteredHookForTest,D0 as runRegisteredImporterForTest,L0 as runRegisteredMigrationForTest,v0 as runRegisteredMutationGuardForTest,I0 as runRegisteredParserOverrideForTest,R0 as runRegisteredPreflightOverrideForTest,P0 as runRegisteredRendererOverrideForTest,x0 as runRegisteredSearchProviderForTest,k0 as runRegisteredServiceOverrideForTest,N0 as runRegisteredVectorStoreAdapterForTest,er as runReindex,Zu as runRelease,Nm as runRemind,fM as runReopen,Xp as runRestore,Dc as runSchemaEvolutionMigration,wm as runSearch,fy as runSearchRefreshWorkerEntrypoint,Zf as runStartBackgroundRun,Qu as runStartTask,cf as runStats,pf as runTelemetry,lm as runTemplatesList,cm as runTemplatesSave,pm as runTemplatesShow,Tf as runTest,Cf as runTestAll,Qf as runTestRunsList,t_ as runTestRunsLogs,o_ as runTestRunsResume,e_ as runTestRunsStatus,r_ as runTestRunsStop,n_ as runTestRunsWorker,Eu as runUpdate,im as runUpdateMany,Ut as runUpgrade,Bp as runValidate,xh as runWithActiveExtensions,D as runWithAgentSessionContext,aE as runWithConfigurationOnlySettings,Mw as runWithContextIntentContracts,Yw as runWithDiscoveredContextIntentContracts,Ti as runWithHarnessDetectionSignals,Zk as runWithMcpTraceContext,id as runWithReproducibleProcessEnvironment,Ci as runWithWorkspaceHarnessSignalDescriptors,qr as runWithWorkspaceRecipe,FI as runWorkflowPolicyAction,YR as runWorkspaceTransactionGc,Ap as saveGraphAuditBaseline,GR as scanClosureTimestamps,nR as scanExtensionHostVersions,cl as scanHistoryAuthorAttribution,ni as scanItemFormatVersions,cd as scanMutationSecrets,aR as scanProvenanceResolverHealth,Cd as scanStaleInProgressItems,BR as scanStorageIntegrity,v_ as schema,x_ as schemaAddField,P_ as schemaAddStatus,R_ as schemaAddType,$_ as schemaApplyPreset,F_ as schemaInferTypes,O_ as schemaList,L_ as schemaListFields,j_ as schemaRemapStatus,N_ as schemaRemoveField,k_ as schemaRemoveStatus,M_ as schemaRemoveType,U_ as schemaRenameField,G_ as schemaRenameType,I_ as schemaShow,D_ as schemaShowField,B_ as schemaShowStatus,XP as scoreCommandPathMatch,IM as scoreContextCandidates,RM as scoreContextCandidatesWithActiveExtensions,yd as scoreItemSimilarity,rL as scorePmGrammarRefusalClosure,VN as scorePmRefusalClosure,bd as scorePreparedItemSimilarity,iL as scoreTrackerPreflightRecoveryClosure,$S as sealHistoryRecord,bk as sealMcpRequestState,d_ as search,ZM as searchWorkspaceMemory,QM as searchWorkspaceMemoryReadResult,tO as selectActionableEntries,uC as selectCursorSemanticOptions,zf as selectImportAuthor,Kk as selectMcpClientRegistrationMode,JM as selectWorkspaceMemory,YM as selectWorkspaceMemoryRollups,Cu as semanticAttributionAffinity,Av as sentryCaptureCliError,Ev as sentryFinishCommandSpan,Ov as sentryFlush,vv as sentryLogCliUsageError,wv as sentrySetCommandContext,Sv as sentryStartCommandSpan,di as serializeItemDocument,e0 as serializeNdjsonRows,t0 as serializeNdjsonStream,oy as serveDeclaredObservation,BT as setActiveCommandContext,qT as setActiveCommandResult,LT as setActiveExtensionCommands,NT as setActiveExtensionHooks,DT as setActiveExtensionParsers,$T as setActiveExtensionPreflight,UT as setActiveExtensionRegistrations,GT as setActiveExtensionRenderers,FT as setActiveExtensionServices,AS as setFocusedItem,Nv as shouldCompletePlanOnClose,Sp as shouldPersistDurableGraphCache,OA as shouldResolveMutationStdinTokenField,vA as shouldResolveMutationStdinTokens,rv as shouldRunSearchRefreshInForeground,Ul as similarityAdvisoryWarnings,CC as sliceReadOutputRowCollection,Nl as sortLinkedArtifacts,hA as splitAcceptanceCriteria,Pv as splitCommaList,ai as splitFrontMatter,pw as stabilizeReadOutputReceiptEstimates,R as stableStringify,AT as stableValueEquals,mh as startTask,Dv as startTelemetryCommand,u_ as stats,gS as statusIsTerminal,Da as stripGlobalBootstrapTokens,PP as subscribeMutationEventBatches,kP as subscribeMutationEvents,KI as summarizeAgentIdentityVocabulary,Wm as summarizeAgentModelProvenance,Xm as summarizeAgentProvenance,xM as summarizeContextEvaluationReports,ff as summarizeContextPreflight,CM as summarizeHistoryProvenance,Xc as summarizeInitResult,yR as summarizeMergeReceipt,mM as supportsCreateExplicitEmpty,iA as supportsItemIdAlias,Zb as suppressHostOutput,Oe as syncRelationshipGraphAdapter,b0 as synthesizeExtensionManifest,Na as toCompletionFlagString,qu as toContextFocusItem,Uu as toContextPackingSummary,ju as toContextRankingSummary,nT as toErrorMessage,Rf as toEstimatedMinutesValue,BP as toExtensionFlagDefinitions,Nf as toImportBoolean,Ff as toImportConfidence,xf as toImportInteger,Bf as toImportLinkedDocs,jf as toImportLinkedFiles,qf as toImportLinkedTests,Uf as toImportLogEntries,Gf as toImportNormalizedEnum,$f as toImportNumberMap,Mf as toImportPriority,kf as toImportStatus,Lf as toImportStringList,Df as toImportStringMap,Pf as toImportTags,SS as toItemRecord,If as toNonEmptyImportString,oT as toNonEmptyStringOrUndefined,KS as toReplayDocument,hd as tokenizeSimilarityText,AA as transferMutationStdinTokenPolicy,CT as translateHostEnvironmentFault,oh as update,uf as updateLinkedTest,Ph as upgrade,W_ as validate,nI as validateAssertionDefinition,sI as validateAssuranceDocument,iI as validateGateDefinition,s0 as validateItemMutationRows,Dl as validateLinkedPaths,Wk as validateMcpAuthorizationResponseIssuer,Hk as validateMcpAuthorizationServerMetadata,Xk as validateMcpClientMetadataDocument,Fk as validateMcpHttpRequestHeaders,Sk as validateMcpJsonSchema,oI as validateMeasurementDefinition,GA as validateMissingParentReference,sw as validateReadOutputOptions,BA as validateSprintOrReleaseValue,mT as validateTypeOptions,VE as validateWorkspaceTransactionIdentity,iM as verifyAttestation,kO as verifyCliFlagInvocationParity,eA as verifyExplicitPositionalSlotCensus,YS as verifyHistoryChain,XS as verifyHistoryChainWithVersion,DE as verifyHistoryEntries,FS as verifyHistoryRecordHash,US as verifyHistoryRewriteEvidence,nA as verifyPmCliGrammar,oA as verifyPmCommandPositionalContracts,uL as verifyPmFlagLexicon,DN as verifyPmRecoveryKindRuntimeCoverage,Qy as verifyPmRecoveryProducerRuntimeCoverage,LN as verifyPmRecoveryReferences,UN as verifyPmRefusalClosureIdentityRatchet,GN as verifyPmRefusalClosureRatchet,NN as verifyPmRefusalReachability,wd as verifyToolOptionCliParity,Qi as withFlagAliasMetadata,wT as withHostEnvironmentBoundary,wk as withMcpCachePolicy,UC as workflowApprovalFingerprint,jC as workflowPolicyApplies,GC as workflowPolicyFingerprint,Tl as workspaceGraphCache,il as wrapOwnershipConflict,tS as wrapThrownErrorForSentry,Ai as writeAuthorEnvironment,De as writeFileAtomic,cA as writeMutationCheckpoint,lE as writeSettings,Bw as writeStderr,jw as writeStdout,yv as writeVectorizationStatusLedger,nE as writeWorkspaceJsonWithHistory};
|
|
27
|
+
`)).digest("hex").slice(0,16)}#r(t,r){if(!t)return 0;try{let o=JSON.parse(Buffer.from(t,"base64url").toString("utf8"));return(typeof o!="object"||o===null||!("fingerprint"in o)||o.fingerprint!==this.#t||!("scope"in o)||o.scope!==r||!("offset"in o)||!Number.isInteger(o.offset)||Number(o.offset)<0)&&C("Skill cursor is invalid or stale."),Number(o.offset)}catch(o){if(o instanceof u)throw o;return C("Skill cursor is invalid or stale.")}}#o(t,r){return Buffer.from(JSON.stringify({fingerprint:this.#t,offset:t,scope:r})).toString("base64url")}static async load(t){let r=await $r(P.join(t.packageRoot,".agents","skills"),"package",t.packageVersion);if(t.workspaceRoot){let o=P.resolve(t.packageRoot,".agents","skills"),n=P.resolve(t.workspaceRoot,".agents","skills");if(n!==o){let s=await $r(n,"workspace",t.packageVersion);for(let[i,a]of s)r.set(i,a)}}return new e(r)}list(t={}){let r=t.limit??M.defaultPageSize;Lr.has(r)||C(`Skill list limit must be an integer from 1 to ${M.maxPageSize}.`);let o=this.#r(t.cursor,"skills/list"),n=[...this.#e.values()].sort((d,c)=>d.uri.localeCompare(c.uri)),s=n.slice(o,o+r),i=o+s.length,a=i<n.length;return{skills:s.map(Fr),hasMore:a,...a?{nextCursor:this.#o(i,"skills/list")}:{}}}get(t){let r=/^skill:\/\/([a-z0-9]+(?:-[a-z0-9]+)*)\/SKILL\.md$/u.exec(t),o=r?this.#e.get(r[1]):void 0;return o||C(`Unknown pm MCP skill: ${t}.`,{field:"uri"}),Fr(o)}read(t){let r=/^skill:\/\/([a-z0-9]+(?:-[a-z0-9]+)*)\/(.+)$/u.exec(t),o=r?this.#e.get(r[1]):void 0,n=r?.[2]??"",s=o&&n?o.files.get(n):void 0,i=o?.resources.find(c=>c.uri===t);(!o||!s||!i)&&C(`Unknown pm MCP skill resource: ${t}.`,{field:"uri"});let a={digest:i.digest,origin:o._meta.origin,trust:"untrusted"},d=Dr(n,s);return d!=="application/octet-stream"?{contents:[{uri:t,mimeType:d,text:s.toString("utf8"),_meta:a}]}:{contents:[{uri:t,mimeType:d,blob:s.toString("base64"),_meta:a}]}}readDirectory(t,r={}){let o=/^skill:\/\/([a-z0-9]+(?:-[a-z0-9]+)*)(?:\/(.+))?$/u.exec(t),n=o?this.#e.get(o[1]):void 0;n||C(`Unknown pm MCP skill directory: ${t}.`,{field:"uri"});let s=(o?.[2]??"").replace(/\/$/u,""),i=s.length>0?`${s}/`:"",a=`skill://${o[1]}`,d=new Map;for(let T of n.resources){let w=T.uri.slice(`${a}/`.length);if(!w.startsWith(i))continue;let q=w.slice(i.length),[I,...Ao]=q.split("/"),vo=`${a}/${i}${I}`,Oo=n.files.get(`${i}${I}`);d.set(I,{uri:vo,name:I,mimeType:Ao.length>0?"inode/directory":Dr(I,Oo)})}s.length>0&&d.size===0&&C(`Unknown pm MCP skill directory: ${t}.`,{field:"uri"});let c=r.limit??M.maxPageSize;Lr.has(c)||C(`Skill directory limit must be an integer from 1 to ${M.maxPageSize}.`);let l=this.#r(r.cursor,t),p=[...d.values()].sort((T,w)=>T.uri.localeCompare(w.uri)),f=p.slice(l,l+c),_=l+f.length,g=_<p.length;return{resources:f,hasMore:g,...g?{nextCursor:this.#o(_,t)}:{}}}};(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="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]="2b24276b-948b-50bd-bfd9-f429cd74be70")}catch{}})();var Br="https://schema.unbrained.dev/pm/workspace-recipe/v1";function dt(e,t){if(e===null||typeof e=="boolean"||typeof e=="string")return e;if(typeof e=="number"){if(!Number.isFinite(e))throw new Error(`Workspace recipe JSON number must be finite at ${t}`);return e}if(Array.isArray(e))return Object.freeze(e.map((r,o)=>dt(r,`${t}[${o}]`)));if(typeof e!="object"||Object.getPrototypeOf(e)!==Object.prototype&&Object.getPrototypeOf(e)!==null)throw new Error(`Workspace recipe input must contain JSON values at ${t}`);return Object.freeze(Object.fromEntries(Object.entries(e).map(([r,o])=>[r,dt(o,`${t}.${r}`)])))}function Ae(e){if(e.schema!==Br)throw new Error(`Unsupported workspace recipe schema: ${e.schema}`);let t=St(e);if(e.operations.some(r=>r.action.trim().length===0||r.input===null||Array.isArray(r.input)))throw new Error("Workspace recipe operations require an action and object input");return Object.freeze({...t,operations:Object.freeze(e.operations.map((r,o)=>Object.freeze({action:r.action,input:dt(r.input,`operations[${o}].input`)})))})}async function qr(e,t){let r=Ae(e);return Et(r,t)}async function Qg(e,t){return qr(e,async()=>{let r=[];for(let[o,n]of e.operations.entries())r.push(await t(n,o));return r})}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c234be1c-35b7-5388-8a70-a012e9a34389")}catch{}})();var zr="pm.agent-observation/v1",Vr="pm.agent-verdict/v1",Hr="pm.agent-episode/v1";function O(e,t){if(!Number.isSafeInteger(e)||e<=0)throw new Error(`${t} must be a positive safe integer.`)}function k(e,t){if(e.trim().length===0)throw new Error(`${t} must not be empty.`)}function oe(e){if(e!==null&&typeof e=="object"&&!Object.isFrozen(e)){Object.freeze(e);for(let t of Object.values(e))oe(t)}return e}function ey(e){if(e.length===0)throw new Error("observation.reads must declare at least one bounded read.");let t=0;for(let r of e)if(k(r.command,"observation.reads.command"),O(r.budget_tokens,"observation.reads.budget_tokens"),t+=r.budget_tokens,!Number.isSafeInteger(t))throw new Error("observation read ceilings exceed safe integer range.")}function ty(e){if(e.basis!=="emitted_bytes")throw new Error("observation calibration must use emitted_bytes.");for(let r of e.samples)if(!Number.isSafeInteger(r)||r<0)throw new Error("observation calibration samples must be non-negative safe integers.");if(e.samples.length===0)throw new Error("observation calibration must include at least one sample.");if(O(e.expected_emitted_bytes,"observation.calibration.expected_emitted_bytes"),!Number.isSafeInteger(e.tolerance_bytes)||e.tolerance_bytes<0)throw new Error("observation.calibration.tolerance_bytes must be a non-negative safe integer.");let t=e.samples.reduce((r,o)=>r+o,0)/e.samples.length;if(Math.abs(t-e.expected_emitted_bytes)>e.tolerance_bytes)throw new Error("observation expected_emitted_bytes is outside the calibrated sample tolerance.")}function ry(e){if(e.length===0)throw new Error("observation.tiers must declare a degradation ladder.");let t=new Set,r=Number.POSITIVE_INFINITY;for(let o of e){if(k(o.id,"observation.tiers.id"),O(o.max_tokens,"observation.tiers.max_tokens"),t.has(o.id))throw new Error(`Duplicate observation tier: ${o.id}.`);if(t.add(o.id),o.max_tokens>r)throw new Error("observation tiers must be ordered from largest to smallest max_tokens.");r=o.max_tokens;let n=new Set;for(let s of o.fields){if(F(s,"observation.tiers.fields"),n.has(s))throw new Error(`Duplicate observation tier field: ${s}.`);n.add(s)}}}function oy(e){if(e.schema!==zr)throw new Error(`observation.schema must be ${zr}.`);return k(e.id,"observation.id"),O(e.version,"observation.version"),ey(e.reads),ty(e.calibration),e.corpus_dependence.kind==="bounded"&&(k(e.corpus_dependence.dimension,"observation.corpus_dependence.dimension"),O(e.corpus_dependence.maximum,"observation.corpus_dependence.maximum")),ry(e.tiers),oe(structuredClone(e))}function Ix(e){return{contract_id:e.id,contract_version:e.version,guaranteed_ceiling_tokens:e.reads.reduce((t,r)=>t+r.budget_tokens,0),expected_emitted_bytes:e.calibration.expected_emitted_bytes,expected_tokens:Math.ceil(e.calibration.expected_emitted_bytes/4),tolerance_bytes:e.calibration.tolerance_bytes,calibration_basis:"emitted_bytes",corpus_dependence:e.corpus_dependence}}async function ny(e,t,r){O(r.budget_tokens,"observation request budget_tokens");let o=[];for(let[n,s]of e.tiers.entries()){o.push(s.id);let i=await t(s),a=Buffer.byteLength(R(i),"utf8"),d=Math.ceil(a/4);if(d<=Math.min(r.budget_tokens,s.max_tokens))return{status:"served",payload:i,receipt:{contract_id:e.id,contract_version:e.version,served_tier:s.id,degraded:n>0,attempted_tiers:o,emitted_bytes:a,estimated_tokens:d,calibration_basis:"emitted_bytes"}}}return{status:"refused",reason:"no_declared_tier_fits_budget",receipt:{contract_id:e.id,contract_version:e.version,served_tier:null,degraded:e.tiers.length>1,attempted_tiers:o,emitted_bytes:null,estimated_tokens:null,calibration_basis:"emitted_bytes"}}}function F(e,t){let r=e.split(".");if(r.some(o=>o.length===0||o==="__proto__"||o==="prototype"||o==="constructor"))throw new Error(`${t} must be a safe, non-empty dot-separated path.`);return r}function Kr(e,t){let r=e;for(let o of F(t,"recorded field path")){if(r===null||typeof r!="object"||!Object.hasOwn(r,o))return;r=r[o]}return r}function iy(e){return`/${F(e,"verdict predicate path").map(t=>t.replaceAll("~","~0").replaceAll("/","~1")).join("/")}`}function sy(e){if(e.kind!=="field_equals")return;let t;try{t=JSON.stringify(e.expected)}catch{throw new Error(`Expected value for verdict predicate ${e.id} must be JSON serializable.`)}if(t===void 0)throw new Error(`Expected value for verdict predicate ${e.id} must be JSON serializable.`)}function ay(e){if(e.schema!==Vr)throw new Error(`verdict.schema must be ${Vr}.`);k(e.id,"verdict.id"),O(e.version,"verdict.version");let t=new Set;for(let o of e.predicates){k(o.id,"verdict.predicates.id"),F(o.path,"verdict.predicates.path");let n=o.kind;if(n!=="field_equals"&&n!=="field_present"&&n!=="field_absent")throw new Error(`Unsupported verdict predicate kind for ${o.id}.`);if(t.has(o.id))throw new Error(`Duplicate verdict predicate: ${o.id}.`);sy(o),t.add(o.id)}if(e.composition.operator!=="all"&&e.composition.operator!=="any")throw new Error("verdict composition operator must be all or any.");if(e.composition.predicate_ids.length!==e.predicates.length)throw new Error("verdict composition must reference every predicate exactly once.");let r=new Set(e.composition.predicate_ids);if(r.size!==e.composition.predicate_ids.length||[...r].some(o=>!t.has(o)))throw new Error("verdict composition contains duplicate or unknown predicate ids.");return oe(structuredClone(e))}function dy(e,t){if(e.predicates.length===0)return{contract_id:e.id,contract_version:e.version,snapshot_id:t.snapshot_id,outcome:"not_applicable",score:null,policy:"verdict_only_no_reward",reason:"no_predicates_declared",predicates:[]};let r=new Map(e.predicates.map(i=>[i.id,i])),o=e.composition.predicate_ids.map(i=>{let a=r.get(i),d=Kr(t.state,a.path),c=a.kind==="field_present"?d!==void 0:a.kind==="field_absent"?d===void 0:R(d)===R(a.expected);return{id:i,outcome:c?"satisfied":"violated",evidence_pointer:`${t.snapshot_id}#${iy(a.path)}`,evidence_digest:Tt(R(d))}}),n=o.filter(i=>i.outcome==="satisfied").length,s=e.composition.operator==="all"?n===o.length:n>0;return{contract_id:e.id,contract_version:e.version,snapshot_id:t.snapshot_id,outcome:s?"satisfied":"violated",score:n/o.length,policy:"verdict_only_no_reward",predicates:o}}function Rx(e){if(e.schema!==Hr)throw new Error(`episode.schema must be ${Hr}.`);if(k(e.id,"episode.id"),O(e.version,"episode.version"),!["benchmark","evaluation","training","scale_transfer"].includes(e.mode))throw new Error("episode.mode is not supported.");if(e.task_item_ids.length===0)throw new Error("episode.task_item_ids must declare at least one pm item.");for(let t of e.task_item_ids)k(t,"episode.task_item_ids");O(e.limits.max_actions,"episode.limits.max_actions"),O(e.limits.max_observations,"episode.limits.max_observations"),O(e.limits.max_tokens_per_observation,"episode.limits.max_tokens_per_observation");for(let t of e.observable_fields)F(t,"episode.observable_fields");for(let t of e.withheld_fields)F(t,"episode.withheld_fields");for(let t of e.observable_fields){let r=e.withheld_fields.find(o=>t===o||t.startsWith(`${o}.`)||o.startsWith(`${t}.`));if(r!==void 0)throw new Error(`Observable field ${t} overlaps withheld field ${r}.`)}for(let t of e.observation.tiers)for(let r of t.fields)if(!e.observable_fields.includes(r))throw new Error(`Observation tier field ${r} is not declared observable.`);return oy(e.observation),ay(e.verdict),Ae(e.recipe),oe(structuredClone(e))}function cy(e,t,r){let o=F(t,"observation projection field"),n=e;for(let[s,i]of o.entries()){if(s===o.length-1){r!==void 0&&(n[i]=structuredClone(r));return}let a=n[i];(a===null||typeof a!="object"||Array.isArray(a))&&(n[i]={}),n=n[i]}}function ly(e,t){let r={};for(let o of t)cy(r,o,Kr(e,o));return r}async function Mx(e,t){let r=[],o=0,n=0,s=!1,i,a={episode:{id:e.id,label:`pm agent environment v${e.version}`},provenance:{role:e.mode,topic:"agent-environment"}},d=await D(a,()=>t.reset(e.recipe));r.push({sequence:1,kind:"reset",state_id:d.state_id});let c=async()=>{if(s)throw new Error("episode is already closed.");if(n>=e.limits.max_observations)throw new Error("episode exceeded limits.max_observations.");n+=1;let p=await t.readRecordedState(),f=await ny(e.observation,async _=>ly(p.state,_.fields),{budget_tokens:e.limits.max_tokens_per_observation});return r.push({sequence:r.length+1,kind:"observation",state_id:f.receipt.served_tier??p.snapshot_id}),f},l=async(p=!1)=>{if(s&&!p)throw new Error("episode is already closed.");if(n>=e.limits.max_observations)throw new Error("episode exceeded limits.max_observations.");n+=1;let f=await t.readRecordedState(),_=dy(e.verdict,f);return r.push({sequence:r.length+1,kind:"verdict",state_id:f.snapshot_id}),_};return{observe:()=>D(a,c),step:async p=>{if(s)throw new Error("episode is already closed.");if(o>=e.limits.max_actions)throw new Error("episode exceeded limits.max_actions.");o+=1;let f=await D(a,()=>t.execute(p));return r.push({sequence:r.length+1,kind:"action",state_id:f.state_id}),f},score:()=>D(a,l),close:()=>i!==void 0?i:s?Promise.reject(new Error("episode is already closed.")):(s=!0,i=D(a,()=>l(!0)).then(p=>(r.push({sequence:r.length+1,kind:"close",state_id:p.snapshot_id}),{verdict:p,trajectory:oe(structuredClone(r))})).catch(p=>{throw s=!1,p}).finally(()=>{i=void 0}),i)}}(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]="14472bc2-ebca-5b9c-9462-bd8694b630a0")}catch{}})();var G="https://schema.unbrained.dev/pm/corpus-shape/v1";function K(e,t){if(!Number.isSafeInteger(e)||e<=0)throw new TypeError(`Corpus shape ${t} must be a positive safe integer`);return e}function ne(e,t){if(!Number.isSafeInteger(e)||e<0)throw new TypeError(`Corpus shape ${t} must be a non-negative safe integer`);return e}function Xr(e){if(!(typeof e!="object"||e===null||Object.isFrozen(e))){for(let t of Object.values(e))Xr(t);Object.freeze(e)}}function W(e){if(e.schema!==G)throw new TypeError(`Unsupported corpus shape schema: ${e.schema}`);if(e.name.trim().length===0||e.description.trim().length===0)throw new TypeError("Corpus shape name and description must be non-empty");if(K(e.hierarchy_depth,"hierarchy_depth"),K(e.hierarchy_fanout,"hierarchy_fanout"),ne(e.age_span_days,"age_span_days"),K(e.history_entries_per_item,"history_entries_per_item"),ne(e.comments_per_100_items,"comments_per_100_items"),ne(e.notes_per_100_items,"notes_per_100_items"),ne(e.learnings_per_100_items,"learnings_per_100_items"),K(e.author_cardinality,"author_cardinality"),K(e.component_count,"component_count"),e.edge_kind_mix.length===0||e.edge_kind_mix.some(r=>r.kind.trim().length===0||r.weight<=0))throw new TypeError("Corpus shape edge_kind_mix requires non-empty kinds with positive weights");if(e.terminal_statuses.some(r=>!e.custom_statuses.includes(r)))throw new TypeError("Corpus shape terminal_statuses must be declared in custom_statuses");let t=structuredClone(e);return Xr(t),t}var ve=[{kind:"implements",weight:5},{kind:"blocked_by",weight:2},{kind:"discovered_from",weight:2},{kind:"verifies",weight:2},{kind:"supersedes",weight:1},{kind:"related",weight:4}],X=Object.freeze({scratch:W({schema:G,name:"scratch",description:"Seconds-old, shallow project with minimal history.",hierarchy_depth:2,hierarchy_fanout:50,age_span_days:0,history_entries_per_item:1,comments_per_100_items:2,notes_per_100_items:1,learnings_per_100_items:1,edge_kind_mix:[{kind:"related",weight:1}],author_cardinality:2,component_count:1,include_cycles:!1,custom_types:[],custom_statuses:[],terminal_statuses:[],custom_fields:[]}),representative:W({schema:G,name:"representative",description:"Medium-lived project with rich evidence and typed lineage.",hierarchy_depth:5,hierarchy_fanout:8,age_span_days:730,history_entries_per_item:12,comments_per_100_items:30,notes_per_100_items:12,learnings_per_100_items:10,edge_kind_mix:ve,author_cardinality:32,component_count:1,include_cycles:!1,custom_types:["Experiment"],custom_statuses:["review"],terminal_statuses:[],custom_fields:["domain"]}),"deep-graph":W({schema:G,name:"deep-graph",description:"Deep typed relationship graph with deterministic cycles.",hierarchy_depth:16,hierarchy_fanout:2,age_span_days:3650,history_entries_per_item:6,comments_per_100_items:15,notes_per_100_items:8,learnings_per_100_items:8,edge_kind_mix:ve,author_cardinality:16,component_count:1,include_cycles:!0,custom_types:[],custom_statuses:[],terminal_statuses:[],custom_fields:[]}),"multi-decade":W({schema:G,name:"multi-decade",description:"Thirty-year event history with dense per-item evolution.",hierarchy_depth:6,hierarchy_fanout:6,age_span_days:10958,history_entries_per_item:24,comments_per_100_items:40,notes_per_100_items:20,learnings_per_100_items:16,edge_kind_mix:ve,author_cardinality:64,component_count:1,include_cycles:!1,custom_types:["Program"],custom_statuses:["archived"],terminal_statuses:["archived"],custom_fields:["portfolio"]}),"disconnected-archive":W({schema:G,name:"disconnected-archive",description:"Multiple disconnected historical project components.",hierarchy_depth:4,hierarchy_fanout:10,age_span_days:7305,history_entries_per_item:8,comments_per_100_items:10,notes_per_100_items:5,learnings_per_100_items:6,edge_kind_mix:ve,author_cardinality:24,component_count:5,include_cycles:!1,custom_types:["Archive"],custom_statuses:["archived"],terminal_statuses:["archived"],custom_fields:["archive_source"]})});function py(){return Object.keys(X).sort().map(e=>X[e])}function uy(e){let t=e.trim().toLowerCase();if(!Object.hasOwn(X,t))throw new TypeError(`Unknown corpus shape "${e}". Available: ${Object.keys(X).join(", ")}`);return X[t]}var Wr=new WeakMap;function Yr(e,t){if(e===0)return[];let r=Wr.get(t);r===void 0&&(r=t.edge_kind_mix.flatMap(n=>Array.from({length:n.weight},()=>n.kind)),Wr.set(t,r));let o=[r[e%r.length]];return t.include_cycles&&e>2&&e%17===0&&o.push("related"),[...new Set(o)]}function my(e,t,r,o=42){if(ne(t,"item index"),K(r,"item count"),t>=r)throw new RangeError(`Corpus item index ${t} exceeds ${r}`);let n=Math.min(e.component_count,r),s=t%n,i=Math.floor(t/n),a=0,d=1;for(let w=0;w<e.hierarchy_depth;w+=1)a=Math.min(Number.MAX_SAFE_INTEGER,a+d),d=Math.min(Number.MAX_SAFE_INTEGER,d*e.hierarchy_fanout);let c=i%a,l=i-c,p=c===0?void 0:s+(l+Math.floor((c-1)/e.hierarchy_fanout))*n,f=Date.UTC(2026,0,1),_=e.age_span_days*864e5,g=new Date(f+(r===1?0:Math.round(t/(r-1)*_))).toISOString(),T=(t*37+o)%100;return{index:t,id:`pm-s${t.toString(36).padStart(7,"0")}`,...p===void 0?{}:{parent:`pm-s${p.toString(36).padStart(7,"0")}`},component:s,timestamp:g,author:`pm-corpus-agent-${(t+o)%Math.min(e.author_cardinality,r)}`,history_entry_count:e.history_entries_per_item,dependency_kinds:Yr(t,e),has_comment:T<e.comments_per_100_items,has_note:T<e.notes_per_100_items,has_learning:T<e.learnings_per_100_items,...e.custom_types.length>0&&t%11===0?{custom_type:e.custom_types[t%e.custom_types.length]}:{},...e.custom_statuses.length>0&&t%13===0?{custom_status:e.custom_statuses[t%e.custom_statuses.length]}:{}}}var ct=class{shape;authors=new Set;components=new Set;depths=new Map;childCounts=new Map;edgeKinds={};expectedEdgeKinds={};annotations={comments:0,notes:0,learnings:0};annotationFields;planMismatches=[];itemCount=0;observedDepth=0;observedFanout=0;historyEntryCount=0;firstTimestamp=null;lastTimestamp=null;constructor(t){this.shape=t,this.annotationFields=[["comments","has_comment",t.comments_per_100_items],["notes","has_note",t.notes_per_100_items],["learnings","has_learning",t.learnings_per_100_items]]}recordMismatch(t,r){t&&this.planMismatches.push(r)}recordEdgeKinds(t,r){for(let o of r)t[o]=(t[o]??0)+1}add(t){this.itemCount+=1,this.authors.add(t.author),this.components.add(t.component),this.recordMismatch(this.depths.has(t.id),`duplicate_id:${t.id}`);let r=1;if(t.parent!==void 0){let o=this.depths.get(t.parent);this.recordMismatch(o===void 0,`parent_missing:${t.parent}`),r=(o??0)+1;let n=(this.childCounts.get(t.parent)??0)+1;this.childCounts.set(t.parent,n),this.observedFanout=Math.max(this.observedFanout,n)}this.depths.set(t.id,r),this.observedDepth=Math.max(this.observedDepth,r),this.historyEntryCount+=t.history_entry_count,this.recordMismatch(t.history_entry_count!==this.shape.history_entries_per_item,"history_entries_per_item:drift"),this.firstTimestamp=this.firstTimestamp===null||t.timestamp<this.firstTimestamp?t.timestamp:this.firstTimestamp,this.lastTimestamp=this.lastTimestamp===null||t.timestamp>this.lastTimestamp?t.timestamp:this.lastTimestamp;for(let[o,n]of this.annotationFields)this.annotations[o]+=Number(t[n]);this.recordEdgeKinds(this.edgeKinds,t.dependency_kinds),this.recordEdgeKinds(this.expectedEdgeKinds,Yr(t.index,this.shape))}finish(){let t=Math.min(this.shape.author_cardinality,this.itemCount),r=Math.min(this.shape.component_count,this.itemCount),o=[...this.planMismatches,...this.itemCount===0?["item_count:empty"]:[],...this.authors.size===t?[]:[`author_count:${this.authors.size}!=${t}`],...this.components.size===r?[]:[`component_count:${this.components.size}!=${r}`],...this.observedDepth<=this.shape.hierarchy_depth?[]:[`hierarchy_depth:${this.observedDepth}>${this.shape.hierarchy_depth}`],...this.observedFanout<=this.shape.hierarchy_fanout?[]:[`hierarchy_fanout:${this.observedFanout}>${this.shape.hierarchy_fanout}`]];for(let[i,,a]of this.annotationFields){let d=Math.floor(this.itemCount/100),c=this.itemCount%100,l=d*a+Math.max(0,a+c-100),p=d*a+Math.min(a,c),f=this.annotations[i];(f<l||f>p)&&o.push(`${i}:${f}!in[${l},${p}]`)}let n=new Set([...Object.keys(this.edgeKinds),...Object.keys(this.expectedEdgeKinds)]);for(let i of[...n].sort()){let a=this.edgeKinds[i]??0,d=this.expectedEdgeKinds[i]??0;a!==d&&o.push(`edge_kind:${i}:${a}!=${d}`)}let s=[...new Set(o)];return{shape:this.shape.name,item_count:this.itemCount,author_count:this.authors.size,component_count:this.components.size,hierarchy_depth:this.observedDepth,hierarchy_fanout:this.observedFanout,timestamp_range:{first:this.firstTimestamp,last:this.lastTimestamp},history_entry_count:this.historyEntryCount,annotations:{...this.annotations},edge_kinds:{...this.edgeKinds},matches_declaration:s.length===0,mismatches:s}}};function Jr(e){return new ct(e)}function fy(e,t){let r=Jr(e);for(let o of t)r.add(o);return r.finish()}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="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]="6a6b2905-b6b7-5b46-b87d-8b8287e37745")}catch{}})();async function _y(){let e=$e(process.cwd(),process.env.PM_PATH);await Ot(e,(t,r)=>It(t,r,{apply_runtime_defaults:!0}))}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4534b1c9-de27-5745-88f2-641b00b94714")}catch{}})();async function hy(){await Rt()}(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]="c1cb8d82-20a6-5460-a0ff-f55312911218")}catch{}})();var Zr=["lines","branches","functions","statements"];function gy(e,t){if(typeof t!="object"||t===null||Array.isArray(t))throw new TypeError(`Coverage entry for ${e} must be an object.`)}function yy(e,t,r){if(typeof r!="object"||r===null||Array.isArray(r))throw new TypeError(`Coverage entry ${e} has invalid ${t} counts.`);let o=r;if(typeof o.covered!="number"||typeof o.total!="number"||!Number.isInteger(o.covered)||!Number.isInteger(o.total)||o.covered<0||o.total<o.covered)throw new TypeError(`Coverage entry ${e} has invalid ${t} counts.`);return{covered:o.covered,total:o.total}}function by(e){if(typeof e!="object"||e===null||Array.isArray(e))throw new TypeError("Coverage summary must be a JSON object.");if(!("total"in e))throw new TypeError("Coverage summary is missing the total entry.");let t=[];for(let[r,o]of Object.entries(e)){gy(r,o);for(let n of Zr){let s=yy(r,n,o[n]),i=s.total-s.covered;i>0&&t.push({file:r,metric:n,uncovered:i,...s})}}return t}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7e55d416-9cc3-51c5-8e56-6b5fd5c836a9")}catch{}})();var Ty=["captured_redacted","captured_verbatim"],Cy=[{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 v(e){return typeof e=="string"&&e.trim().length>0}function wy(e,t){if(typeof t!="object"||t===null||Array.isArray(t))return[{boundary_id:e.id,kind:"invalid_fixture",detail:`${e.fixture_path} must contain a JSON object.`}];let r=t,o=[];r.boundary_id!==e.id&&o.push({boundary_id:e.id,kind:"fixture_boundary_mismatch",detail:`${e.fixture_path} names ${String(r.boundary_id)} instead of ${e.id}.`}),(r.version!==1||!Ty.includes(r.capture_source)||!v(r.capture_provenance)||!Array.isArray(r.redactions)||!r.redactions.every(v)||!("input"in r)||!("observed"in r))&&o.push({boundary_id:e.id,kind:"invalid_fixture",detail:`${e.fixture_path} lacks captured provenance, redaction metadata, input, or observed output.`});let n=JSON.stringify(t);for(let s of Cy)s.pattern.test(n)&&o.push({boundary_id:e.id,kind:"unsafe_fixture",detail:`${e.fixture_path} contains a possible ${s.label}.`});return o}function Sy(e,t){let r=Date.parse(e.waiver_expires_at),o=v(e.waiver_reason)&&v(e.waiver_owner)&&e.waiver_expires_at.endsWith("Z")&&fe(e.waiver_expires_at)&&Number.isFinite(r);return{captured:0,waived:o&&r>=t?1:0,findings:o?r<t?[{boundary_id:e.id,kind:"expired_waiver",detail:`Boundary ${e.id} waiver expired at ${e.waiver_expires_at}.`}]:[]:[{boundary_id:e.id,kind:"invalid_waiver",detail:`Boundary ${e.id} waiver requires reason, owner, and an RFC 3339 UTC expiry.`}]}}function Ey(e,t,r){if(!v(e.id)||!v(e.producer)||!v(e.consumer)||!v(e.format))return{captured:0,waived:0,findings:[{boundary_id:v(e.id)?e.id:"unknown",kind:"invalid_boundary",detail:"Each boundary requires non-empty id, producer, consumer, and format."}]};if("fixture_path"in e){let o=t[e.fixture_path],n=v(e.fixture_path)&&e.fixture_path in t?wy(e,o):[{boundary_id:e.id,kind:"missing_fixture",detail:`Boundary ${e.id} fixture ${String(e.fixture_path)} is missing.`}];return{captured:n.length===0?1:0,waived:0,findings:n}}return Sy(e,r)}function Kx(e,t,r=new Date){let o=[];if(e.version!==1||!v(e.inventory_scope)||!Array.isArray(e.boundaries))return{ok:!1,boundary_count:0,captured_count:0,waived_count:0,findings:[{boundary_id:"registry",kind:"invalid_registry",detail:"Boundary registry requires version 1, inventory_scope, and boundaries."}]};let n=new Set,s=0,i=0;for(let a of e.boundaries){if(typeof a!="object"||a===null||Array.isArray(a)){o.push({boundary_id:"unknown",kind:"invalid_boundary",detail:"Each boundary must be a JSON object."});continue}let d=a,c=v(d.id)?d.id:void 0;if(c!==void 0&&n.has(c)){o.push({boundary_id:c,kind:"duplicate_boundary",detail:`Boundary ${c} is inventoried more than once.`});continue}c!==void 0&&n.add(c);let l=Ey(d,t,r.getTime());s+=l.captured,i+=l.waived,o.push(...l.findings)}return o.sort((a,d)=>a.boundary_id!==d.boundary_id?a.boundary_id.localeCompare(d.boundary_id):a.kind.localeCompare(d.kind)),{ok:o.length===0,boundary_count:e.boundaries.length,captured_count:s,waived_count:i,findings:o}}import Y from"node:fs";import lt from"node:path";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="aacf5738-098d-50f9-b619-19e472b577ea")}catch{}})();var Qr=300*1e3,Ay=3;function Zx(e){return(e?.trim()||"development").replace(/[^a-zA-Z0-9._-]/g,"_").replace(/^\./,"_")}function Qx(e,t){let r=t.trim();if(!/^[a-zA-Z0-9_-][a-zA-Z0-9._-]*$/.test(r))throw new TypeError("Compile-cache generation must be a safe non-empty filename token.");Y.mkdirSync(e,{recursive:!0});let o=lt.join(e,r);Y.mkdirSync(o,{recursive:!0});let n=new Date;Y.utimesSync(o,n,n);let s=Y.readdirSync(e).filter(c=>c!==r).flatMap(c=>{try{return[{name:c,mtimeMs:Y.statSync(lt.join(e,c)).mtimeMs}]}catch(l){if(l instanceof Error&&"code"in l&&me(l))return[];throw l}}).sort((c,l)=>l.mtimeMs-c.mtimeMs||c.name.localeCompare(l.name)),i=s.filter(c=>n.getTime()-c.mtimeMs<Qr),a=Math.max(0,Ay-1-i.length),d=s.filter(c=>n.getTime()-c.mtimeMs>=Qr).slice(a).map(c=>c.name).sort((c,l)=>c.localeCompare(l));for(let c of d)Y.rmSync(lt.join(e,c),{recursive:!0,force:!0,maxRetries:3,retryDelay:50});return{retained:r,removed:d}}import{createHash as vy}from"node:crypto";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ff60bc5b-bd85-5b3c-9a55-21e7e72477ac")}catch{}})();var pt=1;function J(e){e?.throwIfAborted()}function U(e,t){if(typeof e!="string"||e.trim().length===0)throw new TypeError(`Relationship graph ${t} must be non-empty`);return e.trim()}function Z(e,t,r={}){let o=Date.parse(r.createdAt??new Date().toISOString());if(!Number.isFinite(o))throw new TypeError("Relationship graph createdAt must be a valid timestamp");let n=e.nodes(),s=e.edges(),i=t.list();return Object.freeze({version:pt,fingerprint:vy("sha256").update(R({nodes:n,edges:s,kinds:i})).digest("hex"),created_at:new Date(o).toISOString(),nodes:n,edges:s,kinds:i})}function Oy(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function se(e){if(!Oy(e))throw new TypeError("Relationship graph snapshot must be an object");if(e.version!==pt)throw new TypeError(`Unsupported relationship graph snapshot version: ${String(e.version)}`);if(!Array.isArray(e.nodes)||e.nodes.some(n=>typeof n!="string"))throw new TypeError("Relationship graph snapshot nodes must be strings");if(!Array.isArray(e.edges)||!Array.isArray(e.kinds))throw new TypeError("Relationship graph snapshot edges and kinds must be arrays");if(typeof e.created_at!="string"||!Number.isFinite(Date.parse(e.created_at)))throw new TypeError("Relationship graph snapshot created_at must be valid");if(typeof e.fingerprint!="string")throw new TypeError("Relationship graph snapshot fingerprint must be a string");let t=new Le([]);for(let n of e.kinds)t.register(n);let r=new z(e.nodes,e.edges,t),o=Z(r,t,{createdAt:e.created_at});if(o.fingerprint!==e.fingerprint)throw new TypeError("Relationship graph snapshot fingerprint mismatch");return{snapshot:o,registry:t,graph:r}}async function x(e,t){U(e.name,"adapter name");let r=U(t.workspace,"workspace");J(t.signal);let o=await e.read({...t,workspace:r});return J(t.signal),o===null?null:se(o)}async function Oe(e,t){let r=U(t.workspace,"workspace"),o=se(t.snapshot).snapshot,n=await x(e,{workspace:r,signal:t.signal});if(n?.snapshot.fingerprint===o.fingerprint)return{adapter:e.name,workspace:r,disposition:"current",fingerprint:o.fingerprint,previous_fingerprint:n.snapshot.fingerprint,node_count:o.nodes.length,edge_count:o.edges.length};if(J(t.signal),await e.replace({workspace:r,signal:t.signal,snapshot:o,expected_fingerprint:n?.snapshot.fingerprint??null}),(await x(e,{workspace:r,signal:t.signal}))?.snapshot.fingerprint!==o.fingerprint)throw new Error(`Relationship graph adapter "${e.name}" did not expose the replaced snapshot`);return{adapter:e.name,workspace:r,disposition:"written",fingerprint:o.fingerprint,...n?{previous_fingerprint:n.snapshot.fingerprint}:{},node_count:o.nodes.length,edge_count:o.edges.length}}function Iy(e,t={}){let r=e.map(se),o=new Map;for(let i of r)for(let a of i.snapshot.kinds){let d=o.get(a.kind);if(d&&R(d)!==R(a))throw new TypeError(`Conflicting federated relationship kind: ${a.kind}`);o.set(a.kind,a)}let n=new Le([...o.values()].sort((i,a)=>i.kind.localeCompare(a.kind))),s=new z(new Set(r.flatMap(i=>[...i.snapshot.nodes])),r.flatMap(i=>[...i.snapshot.edges]),n);return Z(s,n,t)}var ie=class{name;#e=new Map;constructor(t="memory"){this.name=U(t,"adapter name")}async read(t){J(t.signal);let r=this.#e.get(U(t.workspace,"workspace"));return r?structuredClone(r):null}async replace(t){J(t.signal);let r=U(t.workspace,"workspace"),o=this.#e.get(r);if(t.expected_fingerprint!==void 0&&(o?.fingerprint??null)!==t.expected_fingerprint)throw new Error(`Relationship graph adapter conflict for ${r}`);this.#e.set(r,structuredClone(se(t.snapshot).snapshot))}async clear(t){J(t.signal);let r=U(t.workspace,"workspace"),o=this.#e.get(r);if(t.expected_fingerprint!==void 0&&(o?.fingerprint??null)!==t.expected_fingerprint)throw new Error(`Relationship graph adapter conflict for ${r}`);this.#e.delete(r)}};(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e47f9bb8-f98e-5159-9116-29c3e6fedfc3")}catch{}})();function eo(e,t){if(!Number.isInteger(e)||e<1)throw new TypeError(`Relationship graph ${t} must be a positive integer`);return e}function Ry(e){let t=eo(e.nodeCount,"nodeCount"),r=eo(e.edgeStride??1,"edgeStride"),o=e.topology??"chain";if(!["chain","star","disconnected"].includes(o))throw new TypeError(`Unsupported relationship graph topology: ${o}`);let n=(e.kind??"related").trim(),s=(e.idPrefix??"node").trim();if(!n||!s)throw new TypeError("Relationship graph kind and idPrefix must be non-empty");let i=o==="disconnected"?0:Math.floor((t-1)/r);return{node_count:t,edge_count:i,edge_basis:"fixture_generated",nodes:{*[Symbol.iterator](){for(let a=0;a<t;a+=1)yield`${s}-${a}`}},edges:{*[Symbol.iterator](){if(o!=="disconnected")for(let a=r;a<t;a+=r)yield{source:`${s}-${o==="star"?0:a-r}`,target:`${s}-${a}`,kind:n}}}}}function j(e,t){if(!e)throw new Error(`Relationship graph adapter conformance: ${t}`)}async function to(e,t={}){let r=t.workspace?.trim()||"pm-graph-conformance",o=yt(),n=Z(new z(["a","b"],[{source:"a",target:"b",kind:"related"}],o),o,{createdAt:"2026-01-01T00:00:00.000Z"}),s=Z(new z(["a","b","c"],[{source:"a",target:"b",kind:"related"},{source:"b",target:"c",kind:"blocked_by"}],o),o,{createdAt:"2026-01-02T00:00:00.000Z"}),i=[];j(await x(e,{workspace:r})===null,"workspace must start empty"),i.push({name:"empty-read",passed:!0});let a=await Oe(e,{workspace:r,snapshot:n});j(a.disposition==="written","first sync must write"),i.push({name:"atomic-replace",passed:!0}),(await e.read({workspace:r})).nodes.push("mutated-reader-copy"),j((await x(e,{workspace:r}))?.snapshot.nodes.length===2,"reads must not mutate stored state"),i.push({name:"read-isolation",passed:!0}),j((await Oe(e,{workspace:r,snapshot:n})).disposition==="current","identical sync must be idempotent"),i.push({name:"idempotent-sync",passed:!0}),await e.replace({workspace:r,snapshot:s,expected_fingerprint:n.fingerprint}),j((await x(e,{workspace:r}))?.snapshot.fingerprint===s.fingerprint,"replacement must become visible"),i.push({name:"replacement-visibility",passed:!0});let d=!1;try{await e.replace({workspace:r,snapshot:n,expected_fingerprint:n.fingerprint})}catch{d=!0}return j(d,"stale compare-and-swap must fail"),i.push({name:"stale-cas",passed:!0}),e.clear&&(await e.clear({workspace:r,expected_fingerprint:s.fingerprint}),j(await x(e,{workspace:r})===null,"clear must remove the workspace"),i.push({name:"clear",passed:!0})),{adapter:e.name,workspace:r,cases:Object.freeze(i),clear_supported:e.clear!==void 0}}function My(e){return to(new ie,e?{workspace:e}:{})}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="58736688-35d0-545d-892e-e0ede7fedc1a")}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]="d45a8203-4501-5797-a6cc-a2e7844adec9")}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]="f5567aa1-0268-574d-907b-38d6249538ce")}catch{}})();var ut=2,Py=["self_reported","independent_transport"];function Ie(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function ae(e,t){if(typeof e!="string"||e.trim().length===0)throw new TypeError(`${t} must be a non-empty string`);return e.trim()}function ro(e,t,r=!1){if(!Array.isArray(e)||e.length===0)throw new TypeError(`${t} must be a non-empty string array`);return e.map((o,n)=>{let s=ae(o,`${t}[${String(n)}]`);return r?o:s})}function mt(e,t){return e===void 0?void 0:ae(e,t)}function ky(e,t){if(e===void 0)return;if(!Ie(e)||Object.keys(e).length===0)throw new TypeError(`${t} must be a non-empty object`);let r=Object.entries(e).map(([o,n])=>{if(o.length===0||o.split(".").some(s=>s.length===0))throw new TypeError(`${t} must use dot-separated own-property paths`);if(n!==null&&typeof n!="string"&&typeof n!="boolean"&&(typeof n!="number"||!Number.isFinite(n)))throw new TypeError(`${t} values must be JSON primitives`);return[o,n]});return Object.fromEntries(r)}function xy(e,t,r,o,n,s){if(o==="refusal"){if(Ke(r)||n===void 0||s===void 0)throw new TypeError(`${e} refusal steps require a non-success exit, error code, and refusal surface`);return}if(n!==void 0||s!==void 0)throw new TypeError(`${e} only refusal steps may declare expected_error_code or expected_refusal_surface`);let i=Ct(t);if(i===void 0)throw new TypeError(`${e}.args must identify a command after global flags`);let a=t[i].trim().toLowerCase();if(a==="history"){let l=wt(t.slice(i+1));l!==void 0&&(a=Ne(`history ${l}`))}let d=Nt(a);if(!Ke(r)||r!==0&&!d?.exit_codes.some(l=>l===r))throw new TypeError(`${e} successful output must use exit code 0 or a command-declared successful effect exit`);let c=xt(a).kind;if(o!==c)throw new TypeError(`${e} expected ${o}, but ${a} declares ${c}`)}function Ny(e,t,r){if(!Ie(e))throw new TypeError(`tasks.${t}.steps[${String(r)}] must be an object`);let o=`tasks.${t}.steps[${String(r)}]`,n=ae(e.id,`${o}.id`),s=ro(e.args,`${o}.args`,!0),i=e.expected_exit_code;if(typeof i!="number"||!Number.isSafeInteger(i))throw new TypeError(`${o}.expected_exit_code must be a safe integer`);let a=e.expected_output_kind;if(a!=="refusal"&&!kt.includes(a))throw new TypeError(`${o}.expected_output_kind is unsupported`);let d=a,c=e.expected_accounting_mode;if(!Py.includes(c))throw new TypeError(`${o}.expected_accounting_mode is unsupported`);let l=c;if(l==="independent_transport"&&d!=="refusal")throw new TypeError(`${o} independent_transport accounting is supported only for refusal steps`);let p=ro(e.required_fields,`${o}.required_fields`);if(p.some(w=>w.split(".").some(q=>q.length===0)))throw new TypeError(`${o}.required_fields must contain dot-separated own-property paths`);let f=ky(e.expected_field_values,`${o}.expected_field_values`),_=mt(e.expected_error_code,`${o}.expected_error_code`),g=mt(e.expected_refusal_surface,`${o}.expected_refusal_surface`),T=mt(e.recovery_for,`${o}.recovery_for`);return xy(o,s,i,d,_,g),{id:n,args:s,expected_exit_code:i,expected_output_kind:d,expected_accounting_mode:l,required_fields:p,...f?{expected_field_values:f}:{},..._?{expected_error_code:_}:{},...g?{expected_refusal_surface:g}:{},...T?{recovery_for:T}:{}}}function Ly(e,t){if(!Ie(e))throw new TypeError(`tasks[${String(t)}] must be an object`);let r=ae(e.id,`tasks[${String(t)}].id`),o=ae(e.description,`tasks.${r}.description`);if(!Array.isArray(e.steps)||e.steps.length===0)throw new TypeError(`tasks.${r}.steps must be a non-empty array`);let n=e.steps.map((i,a)=>Ny(i,r,a)),s=new Map;for(let i of n){if(s.has(i.id))throw new TypeError(`tasks.${r} contains duplicate step id ${i.id}`);if(i.recovery_for!==void 0&&(s.get(i.recovery_for)?.expected_output_kind!=="refusal"||i.expected_output_kind==="refusal"))throw new TypeError(`tasks.${r}.${i.id} recovery_for must reference an earlier refusal and declare successful output`);s.set(i.id,i)}if(n.at(-1)?.expected_output_kind==="refusal")throw new TypeError(`tasks.${r} completed task must terminate with successful output`);for(let i of n)if(i.expected_output_kind==="refusal"&&!n.some(a=>a.recovery_for===i.id))throw new TypeError(`tasks.${r}.${i.id} refusal must have a later successful recovery_for step`);return{id:r,description:o,steps:n}}function MN(e){if(!Ie(e))throw new TypeError("agent-task transcript corpus must be an object");if(e.version!==ut)throw new TypeError(`agent-task transcript corpus version must be ${String(ut)}`);if(!Array.isArray(e.tasks)||e.tasks.length===0)throw new TypeError("agent-task transcript corpus tasks must be non-empty");let t=e.tasks.map((o,n)=>Ly(o,n)),r=new Set;for(let o of t){if(r.has(o.id))throw new TypeError(`duplicate agent-task transcript id ${o.id}`);r.add(o.id)}return{version:ut,tasks:t}}import{createHash as oo}from"node:crypto";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7163a078-d8be-5bca-813f-c941fcb8e406")}catch{}})();function no(e,t){if(typeof e!="string"||e.trim().length===0)throw new TypeError(`Relationship backfill ${t} must be non-empty`);return e.trim()}function NN(e,t){let r=no(t.migrationId,"migrationId"),o=no(t.author,"author"),n=Date.parse(t.timestamp);if(!Number.isFinite(n))throw new TypeError("Relationship backfill timestamp must be valid");let s=new Date(n).toISOString(),i=ze(e,void 0,t.registry),a=i.graph.nodes(),d=i.graph.edges().map(f=>{let _=oo("sha256").update(JSON.stringify([r,f.kind,f.source,f.target,f.createdAt??null,f.author??null,f.payload??null])).digest("hex").slice(0,24);return Object.freeze({eventId:`backfill:${r}:${_}`,relationshipId:`migration:${r}:${_}`,action:"add",edge:f,author:o,timestamp:s,reason:`Backfill ${r} from legacy item metadata`})}),c=oo("sha256").update(JSON.stringify({migrationId:r,nodes:a,events:d})).digest("hex"),l=new Set([...t.existingEventIds??[]].filter(f=>typeof f=="string").map(f=>f.trim()).filter(Boolean)),p=d.filter(f=>!l.has(f.eventId));return Object.freeze({migration_id:r,fingerprint:c,nodes:a,events:Object.freeze(p),edge_count:d.length,skipped_existing_count:d.length-p.length,duplicate_dependency_rows:i.duplicateRows.length,dangling_reference_count:i.dangling.active.length+i.dangling.legacy_terminal.length})}import*as io from"node:module";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7a1d7194-6ff1-5365-ab64-80b47b0176d7")}catch{}})();var de=["suggested_retry","candidate_command","example","next_step","migration_hint","restore_with"],ft={suggested_retry:{kind:"suggested_retry",semantics:"recovery"},retry_command:{kind:"suggested_retry",semantics:"recovery"},candidate_command:{kind:"candidate_command",semantics:"recovery"},candidate_commands:{kind:"candidate_command",semantics:"recovery"},fallback_candidates:{kind:"candidate_command",semantics:"recovery",nested_value_field:"command"},next_best_command:{kind:"candidate_command",semantics:"recovery"},example:{kind:"example",semantics:"recovery"},examples:{kind:"example",semantics:"recovery"},next_step:{kind:"next_step",semantics:"recovery"},next_steps:{kind:"next_step",semantics:"recovery"},suggested_next_steps:{kind:"next_step",semantics:"recovery"},migration_hint:{kind:"migration_hint",semantics:"replacement"},migration_hints:{kind:"migration_hint",semantics:"replacement"},restore_with:{kind:"restore_with",semantics:"behavior_preserving"}},DN=Object.freeze(Object.keys(ft));function so(e){if(Object.hasOwn(ft,e))return ft[e]}var Dy=new Set([..."=([{,:;!?&|+-*%^~<>","=>"]);function Q(e,t){return e<t?-1:e>t?1:0}function $y(e,t){let r=e[t],o=t+1,n="";for(;o<e.length&&e[o]!==r;)e[o]==="\\"?o+=2:(n+=e[o],o+=1);return e[o]===r&&(o+=1),{next:o,value:n}}function Fy(e){return e===void 0||e.kind==="punctuator"&&Dy.has(e.value)||e.kind==="identifier"&&["return","case","throw","else","yield"].includes(e.value)}function Gy(e,t){if(/\s/u.test(e[t]))return t+1;if(e.startsWith("//",t)){let r=e.indexOf(`
|
|
28
|
+
`,t+2);return r===-1?e.length:r+1}if(e.startsWith("/*",t))return e.indexOf("*/",t+2)+2}function Uy(e,t,r){if(e[t]!=="/"||!Fy(r))return;let o=t+1,n=!1;for(;o<e.length;)if(e[o]==="\\")o+=2;else if(e[o]==="[")n=!0,o+=1;else if(e[o]==="]")n=!1,o+=1;else if(e[o]==="/"&&!n){for(o+=1;/[A-Za-z]/u.test(e.charAt(o));)o+=1;return o}else o+=1;return o}function jy(e,t){let r=e[t];if(r==="'"||r==='"'||r==="`"){let n=$y(e,t);return r==="`"?{next:n.next}:{next:n.next,token:{kind:"string",value:n.value,offset:t+1}}}if(/[A-Za-z_$]/u.test(r)){let n=t+1;for(;/[A-Za-z0-9_$]/u.test(e[n]??"");)n+=1;return{next:n,token:{kind:"identifier",value:e.slice(t,n),offset:t}}}let o=e.startsWith("=>",t)?"=>":r;return{next:t+o.length,token:{kind:"punctuator",value:o,offset:t}}}function By(e){let t=[],r=0;for(;r<e.length;){let o=Gy(e,r);if(o!==void 0){r=o;continue}let n=Uy(e,r,t.at(-1));if(n!==void 0){r=n;continue}let s=jy(e,r);s.token&&t.push(s.token),r=s.next}return t}var qy=new Set(["object","block","pattern"]),zy=new Set(["const","let","var"]),Vy=new Set(["}",")","]"]),Hy=new Set(["=","(","[",",",":","?","return"]);function Ky(e,t,r){if([...r].reverse().find(n=>qy.has(n.kind))?.kind==="pattern"||r.at(-1)?.kind==="paren"&&r.at(-1)?.parameter_list)return"pattern";let o=e[t-1];return o?.kind==="identifier"&&zy.has(o.value)?"pattern":o?.value==="=>"||o?.value===")"?"block":o&&Hy.has(o.value)?"object":"block"}function Wy(e,t,r){let o=e[t];if(o.value==="{"){let i=Ky(e,t,r);return{kind:i,...i==="object"?{member_start:!0,candidates:[]}:{}}}if(o.value==="[")return{kind:"array"};if(o.value!=="(")return;let n=e[t-1],s=e[t-2];return{kind:"paren",...n?.value==="function"||s?.value==="function"?{parameter_list:!0}:{}}}function Xy(e,t,r){if(!(e?.kind!=="object"||!e.member_start||t.kind!=="identifier"&&t.kind!=="string"||r?.value!==":"||!/^[A-Za-z][A-Za-z0-9_]*$/u.test(t.value)))return{field:t.value,offset:t.offset}}function Yy(e,t){return e[t+1]?.value===")"&&e[t+2]?.value==="=>"||e[t+1]?.value==="="}function Jy(e){let t=By(io.stripTypeScriptTypes(e,{mode:"strip"})),r=[],o=[];for(let[n,s]of t.entries()){let i=o.at(-1),a=Xy(i,s,t[n+1]);a&&i.candidates.push(a);let d=Wy(t,n,o);if(d)o.push(d);else if(Vy.has(s.value)){let c=o.pop();c?.kind==="object"&&!Yy(t,n)&&r.push(...c.candidates)}else s.value===","&&i?.kind==="object"?i.member_start=!0:i?.kind==="object"&&s.value!==":"&&(i.member_start=!1)}return r}function Zy(e){let t=[0];for(let r=0;r<e.length;r+=1)e[r]===`
|
|
29
|
+
`&&t.push(r+1);return t}function Qy(e,t){let r=0,o=e.length;for(;r<o;){let n=Math.floor((r+o)/2);e[n]<=t?r=n+1:o=n}return r}function $N(e){let t=[],r=[];for(let n of[...e].sort((s,i)=>Q(s.path,i.path))){let s=Zy(n.content),i;try{i=Jy(n.content)}catch(a){r.push({kind:"invalid_source",subject:n.path,detail:`${n.path} could not be parsed for recovery producers: ${String(a)}.`});continue}for(let a of i){let d=a.field,c=Qy(s,a.offset),l=so(d);l?t.push({path:n.path,line:c,field:d,kind:l.kind}):/(?:retry_command|candidate_command|fallback_candidate|next_best_command|example|next_step|migration_hint|restore_with)/u.test(d)&&!/(?:_total|_truncated)$/u.test(d)&&r.push({kind:"unknown_recovery_field",subject:`${n.path}:${c}:${d}`,detail:`${d} resembles a recovery reference but has no typed field contract.`})}}let o=Object.fromEntries(de.map(n=>[n,t.filter(s=>s.kind===n).length]));for(let n of de)o[n]===0&&r.push({kind:"missing_kind_producer",subject:n,detail:`No source producer emits the ${n} recovery-reference kind.`});return t.sort((n,s)=>n.path!==s.path?Q(n.path,s.path):n.line!==s.line?n.line-s.line:Q(n.field,s.field)),r.sort((n,s)=>n.subject!==s.subject?Q(n.subject,s.subject):Q(n.kind,s.kind)),{ok:r.length===0,scanned_file_count:e.length,producer_count:t.length,producer_count_by_kind:o,producers:t,findings:r}}function FN(e,t){let r=[],o=(n,s)=>{if(Array.isArray(n)){n.forEach((i,a)=>o(i,[...s,String(a)]));return}if(!(typeof n!="object"||n===null))for(let[i,a]of Object.entries(n).sort(([d],[c])=>Q(d,c))){let d=so(i),c=d?.kind==="migration_hint"&&n.semantics==="behavior_preserving"?{...d,semantics:"behavior_preserving"}:d,l=[a].flat();c!==void 0&&l.forEach((p,f)=>{let _="nested_value_field"in c&&typeof c.nested_value_field=="string"?c.nested_value_field:void 0,g=_&&typeof p=="object"&&p!==null&&!Array.isArray(p)?p[_]:p;if(typeof g!="string"||g.trim().length===0)return;let T=[...s,i,String(f)].map(w=>encodeURIComponent(w)).join("/");r.push({id:`${e}:${c.kind}:${T}`,probe_id:e,kind:c.kind,semantics:c.semantics,value:g})}),o(a,[...s,i])}};return o(t,[]),r}function GN(e,t){let r=e.flatMap(i=>(i.owned_states??[]).map(a=>({contract:i,state:a}))),o=[],n=new Map;for(let i of t){if(n.has(i.probe_id)){o.push({kind:"duplicate_probe",probe_id:i.probe_id,detail:`Observation ${i.probe_id} was supplied more than once.`});continue}n.set(i.probe_id,i)}let s=new Set(r.map(({state:i})=>i.probe_id));for(let{contract:i,state:a}of r){let d=n.get(a.probe_id);if(!d){o.push({kind:"missing_probe",probe_id:a.probe_id,detail:`No entrypoint observation was recorded for ${i.code}.`});continue}d.code!==i.code&&o.push({kind:"wrong_error_code",probe_id:a.probe_id,detail:`Expected ${i.code}; observed ${d.code}.`}),d.exit_class!==a.expected_exit_class&&o.push({kind:"wrong_exit_class",probe_id:a.probe_id,detail:`Expected ${a.expected_exit_class}; observed ${d.exit_class}.`}),a.entrypoints.includes(d.entrypoint)||o.push({kind:"wrong_entrypoint",probe_id:a.probe_id,detail:`Expected one of ${a.entrypoints.join(", ")}; observed ${d.entrypoint}.`})}for(let i of t)s.has(i.probe_id)||o.push({kind:"undeclared_probe",probe_id:i.probe_id,detail:`Observation ${i.probe_id} has no catalog declaration.`});return o.sort((i,a)=>i.probe_id!==a.probe_id?i.probe_id.localeCompare(a.probe_id):i.kind.localeCompare(a.kind)),{ok:o.length===0,declared_probe_count:r.length,observed_probe_count:t.length,findings:o}}function UN(e,t){let r=[],o=new Set,n=new Set;for(let d of e){if(o.has(d.id)){n.add(d.id),r.push({kind:"duplicate_obligation",reference_id:d.id,detail:`Recovery obligation ${d.id} was declared more than once.`});continue}o.add(d.id)}let s=new Map;for(let d of t){if(s.has(d.id)){r.push({kind:"duplicate_observation",reference_id:d.id,detail:`Recovery reference ${d.id} was observed more than once.`});continue}s.set(d.id,d),o.has(d.id)||r.push({kind:"undeclared_observation",reference_id:d.id,detail:`Recovery observation ${d.id} has no emitted obligation.`})}for(let d of e){if(n.has(d.id))continue;let c=s.get(d.id);c?c.reachable?c.semantics!==d.semantics&&r.push({kind:"wrong_semantics",reference_id:d.id,detail:`Recovery reference ${d.value} promised ${d.semantics}; proof demonstrated ${c.semantics}.`}):r.push({kind:"unreachable_reference",reference_id:d.id,detail:`Recovery reference ${d.value} did not reach its promised target.`}):r.push({kind:"missing_observation",reference_id:d.id,detail:`No reachability proof was recorded for ${d.kind} ${d.value}.`})}let i=de.map(d=>{let c=e.filter(p=>p.kind===d),l=c.filter(p=>!n.has(p.id)).map(p=>s.get(p.id)).filter(p=>p!==void 0);return{kind:d,declared:c.length,observed:l.length,passed:c.filter(p=>{let f=s.get(p.id);return!n.has(p.id)&&f?.reachable===!0&&f.semantics===p.semantics}).length}});r.sort((d,c)=>d.reference_id!==c.reference_id?d.reference_id.localeCompare(c.reference_id):d.kind.localeCompare(c.kind));let a=i.reduce((d,c)=>d+c.passed,0);return{ok:r.length===0,declared_reference_count:e.length,observed_reference_count:t.length,pass_fraction:o.size===0?1:a/o.size,coverage_by_kind:i,findings:r}}function eb(e,t){let r=new Map(de.map(s=>[s,new Set]));for(let s of t)r.get(s.kind).add(s.value);let o=de.map(s=>({kind:s,source_producers:e.producer_count_by_kind[s],runtime_values:r.get(s).size})),n=o.filter(({source_producers:s,runtime_values:i})=>s>0&&i===0).map(({kind:s})=>s);return{ok:e.ok&&n.length===0,source_producer_count:e.producer_count,runtime_value_count:o.reduce((s,{runtime_values:i})=>s+i,0),coverage_by_kind:o,missing_runtime_kinds:n}}var jN=eb;(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]="2b2197f3-7203-52c8-9cc7-f714b33a9306")}catch{}})();var qN=16,tb=Object.freeze(["bulk_ids_input_empty","bulk_ids_input_missing_path","bulk_ids_input_unreadable","invalid_argument_value","missing_lifecycle_target","missing_required_argument","projection_options_mutually_exclusive","tracker_not_initialized","tracker_root_missing","tracker_root_not_directory","tracker_root_unreadable","unknown_context_intent","unknown_field_projection","unknown_option","unknown_subcommand"]),ao=18,co=Object.freeze([...tb,"manifest_unknown_key","no_version_bounds_declared"].sort((e,t)=>e.localeCompare(t)));function zN(e,t=ao){return{ok:e.executable_error_code_count>=t,baseline:t,actual:e.executable_error_code_count}}function VN(e,t=co){let r=new Set(e.rows.filter(({disposition:n})=>n==="executable").map(({canonical_code:n})=>n)),o=t.filter(n=>!r.has(n));return{ok:o.length===0,required_canonical_codes:[...t],missing_required_canonical_codes:o}}function _t(e,t){let r=e.get(t);if(r)return r;let o={kinds:new Set,probeIds:new Set};return e.set(t,o),o}function HN(e,t,r){let o=new Map(e.map(l=>[l.code,l.canonical_code??l.code])),n=new Map,s=0,i=0;for(let l of e){let p=_t(n,l.canonical_code??l.code);for(let f of l.owned_states??[])p.kinds.add("owned_state"),p.probeIds.add(f.probe_id)}for(let l of t){let p=o.get(l.error_code);if(p===void 0)continue;s+=1;let f=_t(n,p);f.kinds.add("closed_domain"),f.probeIds.add(l.probe_id)}for(let l of r){let p=o.get(l.error_code);if(p===void 0)continue;i+=1;let f=_t(n,p);f.kinds.add("grammar"),f.probeIds.add(l.probe_id)}let a=e.map(l=>{let p=l.canonical_code??l.code,f=n.get(p),_=[...f.probeIds].sort();return{code:l.code,canonical_code:p,disposition:_.length>0?"executable":"uncovered",evidence_kinds:[...f.kinds].sort(),probe_ids:_}}).sort((l,p)=>l.code<p.code?-1:1),d=a.filter(({disposition:l})=>l==="uncovered").map(({code:l})=>l),c=a.length-d.length;return{ok:d.length===0,catalog_error_code_count:a.length,executable_error_code_count:c,uncovered_error_code_count:d.length,coverage_fraction:a.length===0?1:c/a.length,closed_domain_probe_count:s,grammar_probe_count:i,uncovered_error_codes:d,rows:a}}function KN(e){let t=e.rows.map(r=>`| \`${r.code}\` | \`${r.canonical_code}\` | ${r.disposition} | ${r.evidence_kinds.join(", ")||"none"} | ${r.probe_ids.length} |`);return["# Generated refusal closure census","","Tracker: `pm-f05lsg`.","","Every catalog code is listed. An `uncovered` row is an explicit closure obligation, never an omission or implied approval.","",`- Catalog error codes: ${e.catalog_error_code_count}`,`- Executable error codes: ${e.executable_error_code_count}`,`- Executable-code ratchet floor: ${ao}`,`- Required executable canonical codes: ${co.map(r=>`\`${r}\``).join(", ")}`,`- Uncovered error codes: ${e.uncovered_error_code_count}`,`- Coverage fraction: ${e.coverage_fraction.toFixed(6)}`,`- Closed-domain probes: ${e.closed_domain_probe_count}`,`- Grammar probes: ${e.grammar_probe_count}`,"","| Error code | Canonical code | Disposition | Evidence kinds | Probe count |","| --- | --- | --- | --- | --- |",...t,""].join(`
|
|
30
|
+
`)}(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]="d252409d-e33e-5c9e-9671-789f0ee87312")}catch{}})();function rb(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 ob(e){return[e.exit_code!==ue.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 ${ue.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."},...rb(e)]}function YN(e){let t=[],r=new Set,o=0;e.length===0&&t.push({code:"empty_corpus",probe_id:"corpus",detail:"At least one real refusal observation is required."});for(let n of e){if(r.has(n.probe_id)){t.push({code:"duplicate_probe",probe_id:n.probe_id,detail:`${n.probe_id} was supplied more than once.`});continue}r.add(n.probe_id);let s=t.length;for(let i of ob(n))i!==void 0&&t.push(i);t.length===s&&(o+=1)}return t.sort((n,s)=>n.probe_id!==s.probe_id?n.probe_id.localeCompare(s.probe_id):n.code.localeCompare(s.code)),{ok:t.length===0,probe_count:r.size,closed_probe_count:o,closure_fraction:r.size===0?0:o/r.size,findings:t}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="39b4e1fe-a34a-5ffc-9447-eaf8c46863c7")}catch{}})();var lo="not-a-declared-action";function nb(e,t){if(e.startsWith("assurance ")&&t.name==="kind")return"measurement";switch(t.value_kind){case"integer":return"1";case"item_id":return"pm-domain";case"action":throw new Error(`Cannot synthesize a preceding action value for positional slot ${t.name}.`);default:return"example"}}function ce(e){return e.replaceAll(/[^a-z0-9]+/gu,"-").replaceAll(/^-|-$/gu,"")}function iL(e=Be.filter(t=>vt.some(r=>r.command===t.command&&r.disposition!=="package_owned"))){let t=new Set(e.filter(({command:r})=>!r.includes(" ")).map(({command:r})=>ce(r)));return e.flatMap(r=>r.slots.flatMap((o,n)=>{if(!o.required)return[];let s=r.command.split(" "),i=ce(r.command),a=s.length>1&&t.has(i)?s.map(ce).join("--"):i,d=ee(r.command).flatMap(l=>l.required?[l.flag,...l.value_name?["example"]:[]]:[]),c=je.some(l=>l.command===r.command);return[{probe_id:`required-argument-${a}-${ce(o.name)}`,command:r.command,refusal_args:[...s,...r.slots.slice(0,n).map(l=>nb(r.command,l)),...d],recovery_args:[...s,"--help"],error_code:c&&!r.command.startsWith("assurance ")?"invalid_argument_value":/^extension (?:activate|adopt|deactivate|uninstall)$/u.test(r.command)?"missing_lifecycle_target":"missing_required_argument",missing_argument:o.name,missing_argument_index:n}]})).sort((r,o)=>r.probe_id.localeCompare(o.probe_id))}function ib(e){switch(L(e)){case"assurance":case"workspace snapshot":return je.filter(({parent:t})=>t===e).map(({action:t})=>t);case"graph":return Fe;case"merge":return Ge;case"plan":return We;case"profile":return Xe;case"schema":return Lt;default:throw new Error(`Required positional action family ${e} has no authoritative value domain.`)}}function sL(e=Be){return e.filter(({slots:t})=>t[0]?.required===!0&&t[0].value_kind==="action").map(({command:t})=>{let r=t.split(" ");return{probe_id:`unknown-subcommand-${ce(t)}`,command:t,refusal_args:[...r,lo],recovery_args:[...r,"--help"],error_code:"unknown_subcommand",rejected_value:lo,allowed_values:[...ib(t)].sort()}}).sort((t,r)=>t.probe_id.localeCompare(r.probe_id))}function sb(e,t){let r=[...t].sort();return e.length===t.length&&[...e].sort().every((o,n)=>o===r[n])}function ab(e,t){if(!t)return[{code:"refusal_probe_missing",probe_id:e.probe_id,detail:`${e.probe_id} has no runtime observation.`}];let r=[];return t.error_code!==e.error_code&&r.push({code:"refusal_error_code_mismatch",probe_id:e.probe_id,detail:`${e.probe_id} emitted ${t.error_code||"<none>"}; expected ${e.error_code}.`}),t.exit_code!==2&&r.push({code:"refusal_exit_code_mismatch",probe_id:e.probe_id,detail:`${e.probe_id} exited ${t.exit_code}; expected usage exit 2.`}),"allowed_values"in e&&!sb(t.allowed_values,e.allowed_values)&&r.push({code:"refusal_allowed_values_mismatch",probe_id:e.probe_id,detail:`${e.probe_id} did not expose its complete action domain.`}),t.recovery_succeeded||r.push({code:"refusal_recovery_failed",probe_id:e.probe_id,detail:`${e.probe_id} help recovery did not succeed.`}),t.refusal_mutated_state&&r.push({code:"refusal_mutated_state",probe_id:e.probe_id,detail:`${e.probe_id} changed tracker state while refusing input${t.mutated_paths?.length?`: ${t.mutated_paths.join(", ")}`:"."}`}),r}function aL(e,t){let r=new Map(e.map(i=>[i.probe_id,i])),o=new Map(t.map(i=>[i.probe_id,i])),n=[...e.flatMap(i=>ab(i,o.get(i.probe_id))),...t.filter(i=>!r.has(i.probe_id)).map(i=>({code:"unexpected_refusal_probe",probe_id:i.probe_id,detail:`${i.probe_id} has no declared grammar refusal contract.`}))];n.sort((i,a)=>i.probe_id.localeCompare(a.probe_id)||i.code.localeCompare(a.code));let s=new Set(n.map(({probe_id:i})=>i));return{ok:n.length===0,probe_count:e.length,closed_probe_count:e.filter(({probe_id:i})=>!s.has(i)).length,findings:n}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d3795bc4-fbe5-5ca4-bc90-b72a2d469dc7")}catch{}})();var ht=[{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 cL(){return ht.map(e=>({...e}))}function db(e,t){let r=[];t.error_code!==e.expected_error_code&&r.push({code:"error_code_mismatch",probe_id:e.probe_id,detail:`Expected ${e.expected_error_code}, received ${t.error_code}.`}),t.exit_code!==e.expected_exit_code&&r.push({code:"exit_code_mismatch",probe_id:e.probe_id,detail:`Expected exit ${e.expected_exit_code}, received ${t.exit_code}.`}),t.recovery_kind!==e.recovery_kind&&r.push({code:"recovery_kind_mismatch",probe_id:e.probe_id,detail:`Expected ${e.recovery_kind}, received ${t.recovery_kind}.`});let o=t.suggested_retry_args.indexOf("init"),n=o===0||o===2&&t.suggested_retry_args[0]==="--pm-path"&&t.suggested_retry_args[1]?.length>0;return e.recovery_kind==="initialize"&&!n&&r.push({code:"missing_init_recovery",probe_id:e.probe_id,detail:"Missing and uninitialized roots must emit a tokenized init retry."}),(t.unsafe_init_recommended||e.recovery_kind!=="initialize"&&t.suggested_retry_args.includes("init"))&&r.push({code:"unsafe_init_recovery",probe_id:e.probe_id,detail:"A tracker root that cannot be initialized safely must not recommend initialization."}),t.retry_succeeded||r.push({code:"retry_failed",probe_id:e.probe_id,detail:"The emitted retry or safe alternate-root recovery did not execute successfully."}),r}function lL(e){let t=new Map(e.map(n=>[n.probe_id,n])),r=[],o=0;for(let n of ht){let s=t.get(n.probe_id);if(s===void 0){r.push({code:"missing_probe",probe_id:n.probe_id,detail:"No runtime observation was supplied for this contract."});continue}let i=db(n,s);r.push(...i),i.length===0&&(o+=1)}return r.sort((n,s)=>n.probe_id.localeCompare(s.probe_id)||n.code.localeCompare(s.code)),{ok:r.length===0,probe_count:ht.length,closed_probe_count:o,findings:r}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fe6d2eec-19a1-58fe-90e3-1f679e2f5179")}catch{}})();var Re,cb=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 lb(e,t){if(t==="--limit")return"result-row-limit";if(t==="--node-limit")return"graph-node-limit";if(t==="--edge-limit")return"graph-edge-limit";if(t==="--output-limit")return"rendered-output-row-limit";if(t==="--output-budget")return"rendered-output-byte-budget";if(t==="--token-budget")return"context-intent-token-budget";if(t==="--full"){let r=cb[L(e)];if(r===void 0)throw new Error(`Command ${e} exposes --full without a registered projection concept.`);return r}return t!=="--file"?t.slice(2):["create","update","update-many"].includes(L(e))?"linked-file-path":["comments","notes","learnings"].includes(L(e))?"entry-file-input":"plan-definition-file"}function Me(){if(Re!==void 0)return Re;let e=te.filter(({command:n})=>qe(n)).flatMap(({command:n,family:s})=>Pt(n,ee(n)).map(i=>({command:n,family:s,concept:lb(n,i.flag),flag:i.flag,aliases:Object.freeze([...i.aliases??[]]),value_kind:i.repeatable?"list":i.flag==="--limit"?"number":i.value_type}))),t=new Set(e.flatMap(n=>n.aliases.map(s=>`${n.command}:${s}`))),r=e.filter(n=>!t.has(`${n.command}:${n.flag}`)),o=new Map;for(let n of r){let s=o.get(n.concept)??new Set;s.add(n.value_kind),o.set(n.concept,s)}return Re=Object.freeze(r.map(n=>Object.freeze({...n,concept:o.get(n.concept)?.size===1?n.concept:`${n.concept}@${n.command}`}))),Re}function hL(){return Object.freeze(Me().map(e=>Object.freeze({command:e.command,canonical_flag:e.flag,accepted_spellings:Object.freeze([...new Set([e.flag,...e.aliases])].sort())})))}var po=Object.freeze({init:30,item:20,config:36,extension:55,package:56,packages:56,install:27,upgrade:29,create:100,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:35,events:33,"history-attest":23,"history-redact":27,"history-repair":27,"history-compact":30,"history-author-acknowledge":28,merge:27,schema:43,profile:22,activity:35,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:109,test:56,"test-all":40,telemetry:21,stats:29,health:36,validate:46,assurance:30,gc:22,workspace:23,contracts:29,claim:39,release:24,"start-task":23,"pause-task":23,"close-task":24,meet:33,event:33,remind:29,"test-runs-worker":20}),uo=Object.freeze({...po,...Object.fromEntries(xe.flatMap(({alias:e,canonical:t})=>{let r=po[e];return r===void 0?[]:[[t,r]]}))});function mo(){let e=new Map(Object.keys(uo).map(t=>[t,0]));for(let{command:t}of Me())e.set(t,Number(e.get(t))+1);return Object.freeze(Object.entries(uo).map(([t,r])=>Object.freeze({command:t,current:Number(e.get(t)),maximum:r})))}function pb(e,t,r){for(let o of e)for(let n of o.aliases){let s=t.get(`${o.command}:${n}`);s===void 0||s.flag===o.flag||r.push({code:"alias_collision",command:o.command,detail:`${n} aliases ${o.flag} but is canonical for ${s.flag}.`})}}function ub(e,t,r){let o=new Set(t.map(({command:n})=>n));for(let n of e.keys())o.has(n)||r.push({code:"missing_budget",command:n,detail:`${n} has canonical flags but no persisted budget.`});for(let n of t){let s=e.get(n.command)??0;s===0&&r.push({code:"stale_budget",command:n.command,detail:`${n.command} has a persisted budget but no canonical flags.`}),!(s<=n.maximum)&&r.push({code:"budget_exceeded",command:n.command,detail:`${s} canonical flags exceed the ratcheted maximum ${n.maximum}.`})}}function mb(e,t,r){let o=new Map(e.map(n=>[`${n.command}:${n.flag}`,n]));for(let n of t){let s=`${n.command}:${n.canonical_flag}`,i=o.get(s);if(!i){r.push({code:"removed_canonical_spelling",command:n.command,detail:`${n.canonical_flag} disappeared from the executable spelling inventory.`});continue}let a=new Set([i.flag,...i.aliases]);for(let d of n.accepted_spellings)a.has(d)||r.push({code:"removed_compatibility_spelling",command:n.command,detail:`${d} no longer resolves to ${n.canonical_flag}.`})}}function gL(e=Me(),t=mo(),r=[]){let o=[],n=new Map,s=new Map,i=new Map,a=new Map;for(let d of e){let c=`${d.command}:${d.flag}`;n.has(c)?o.push({code:"duplicate_canonical_flag",command:d.command,detail:`${d.flag} has more than one canonical row.`}):n.set(c,d),a.set(d.command,(a.get(d.command)??0)+1);let l=s.get(d.concept);l!==void 0&&l!==d.value_kind?o.push({code:"inconsistent_concept_kind",command:d.command,detail:`${d.concept} uses both ${l} and ${d.value_kind}.`}):s.set(d.concept,d.value_kind);let p=i.get(d.concept);p!==void 0&&p!==d.flag?o.push({code:"semantic_spelling_collision",command:d.command,detail:`${d.concept} is canonicalized by both ${p} and ${d.flag}.`}):i.set(d.concept,d.flag)}return pb(e,n,o),ub(a,t,o),mb(e,r,o),o.sort((d,c)=>d.command.localeCompare(c.command)||d.code.localeCompare(c.code)||d.detail.localeCompare(c.detail)),{ok:o.length===0,entry_count:e.length,budget_count:t.length,concept_count:new Set(e.map(({concept:d})=>d)).size,baseline_entry_count:r.length,findings:o}}function yL(){let e=Me(),t=mo(),r=new Map(t.map(({command:o})=>[o,"unknown"]));for(let{command:o,family:n}of e)r.set(o,n);return["# Generated flag lexicon budgets","","This file is generated by `listPmFlagLexicon()`. Compatibility aliases do not consume canonical budget.","","| Command | Capability family | Canonical flags | Maximum |","| --- | --- | ---: | ---: |",...t.map(({command:o,current:n,maximum:s})=>{let i=r.get(o);return`| \`${o}\` | ${i} | ${n} | ${s} |`}),""].join(`
|
|
31
|
+
`)}(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]="4e72da21-425b-568d-9174-bc5021e1d4f4")}catch{}})();function TL(e){return e}function CL(e){return e}function wL(e){return e}function SL(e){return e}function EL(e){return e}function AL(e){return e}function vL(e){return e}function OL(e){return e}function IL(e){return e}function RL(e){return e}function ML(e){return e}function PL(e){return e}function kL(e){return e}function xL(e){return{handled:!0,result:e}}function NL(){return{handled:!1}}function LL(e){return e}function DL(e){return e}function $L(e){return e}function FL(e){return e}function GL(e){return e}function UL(e){return e}function jL(e){return e}function BL(e){return e}function qL(e){return e}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="68ca9ab1-91e0-5020-859e-fc1f1f6dcc56")}catch{}})();function fb(e={},t={}){return new he(t).extension(void 0,{...e,migrate:!0})}function _b(e={},t={}){return new he(t).packageMigrate(e)}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d0b86c6a-67f0-52f2-90b8-d1058e8f2284")}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]="604d7dcb-9fea-5631-8a72-b2a7ff3278f8")}catch{}})();function N(e){if(typeof e!="string"||!fe(e))throw new TypeError("Invalid reliability timestamp.");return Date.parse(e)}function hb(e){let t=N(e.window_start),r=N(e.window_end);if(t>=r||!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(o=>typeof o!="string"||o.trim().length===0)||new Set(e.families).size!==e.families.length)throw new TypeError("Expected unique, nonempty reliability families.");return{start:t,end:r}}function gb(e,t,r,o){let n=new Map(t.map(i=>[i,[]])),s=new Set;for(let i of e){if(typeof i.id!="string"||i.id.trim().length===0||s.has(i.id))throw new TypeError("Invalid or duplicate reliability attempt identity.");s.add(i.id);let a=n.get(i.family);if(!a||!["success","failure","pending"].includes(i.outcome)||i.cause!==void 0&&(!["product","infrastructure","unknown"].includes(i.cause)||i.outcome!=="failure"))throw new TypeError("Invalid reliability attempt family, outcome or cause.");let d=N(i.started_at);if(i.repaired_at!==void 0&&(N(i.repaired_at)<d||i.outcome!=="failure"))throw new TypeError("Invalid reliability repair chronology.");d>=r&&d<o&&a.push(i)}return n}function aD(e,t){let{start:r,end:o}=hb(t),n=[...gb(e,t.families,r,o)].map(([s,i])=>{let a=i.filter(_=>_.outcome==="failure"),d=i.filter(_=>_.outcome!=="pending").length,c=d===0?null:a.length/d,l=a.filter(_=>_.repaired_at!==void 0&&N(_.repaired_at)<o),p={product:0,infrastructure:0,unknown:0};for(let _ of a)p[_.cause??"unknown"]+=1;let f=[];return d<t.min_completed_attempts&&f.push("insufficient_completed_attempts"),c!==null&&c>t.max_failure_rate&&f.push("failure_rate"),{family:s,attempts:i.length,completed:d,failed:a.length,pending:i.length-d,failure_rate:c,affected_days:[...new Set(a.map(_=>new Date(N(_.started_at)).toISOString().slice(0,10)))].sort(),repair_minutes:l.map(_=>(N(_.repaired_at)-N(_.started_at))/6e4).sort((_,g)=>_-g),unresolved:a.length-l.length,causes:p,violations:f,ok:f.length===0}});return{schema:"pm-reliability-window/1",window_start:new Date(r).toISOString(),window_end:new Date(o).toISOString(),ok:n.every(s=>s.ok),families:n}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="773ad2b6-326e-5483-bdce-a377f935cb31")}catch{}})();function le(e){return typeof e=="string"&&e.length>0&&e.trim()===e}function yb(e){if(!Array.isArray(e)||e.length<2)throw new TypeError("Expected at least two artifact ledgers.");let t=new Map;for(let r of e){if(r===null||typeof r!="object"||!le(r.name)||t.has(r.name)||r.complete!==!0)throw new TypeError("Expected unique complete artifact ledgers.");if(!Array.isArray(r.identities))throw new TypeError("Invalid or duplicate artifact identity.");let o=new Set(r.identities);if(o.size!==r.identities.length||[...o].some(n=>!le(n)))throw new TypeError("Invalid or duplicate artifact identity.");t.set(r.name,o)}if([...t.values()].every(r=>r.size===0))throw new TypeError("Empty inventories cannot establish artifact reconciliation.");return t}function bb(e,t){if(!Array.isArray(e))throw new TypeError("Expected unique evidence-backed artifact exceptions.");let r=new Map;for(let o of e){if(o===null||typeof o!="object"||!le(o.identity)||r.has(o.identity)||!le(o.reason)||!le(o.evidence))throw new TypeError("Expected unique evidence-backed artifact exceptions.");let n=o.missing_from;if(!Array.isArray(n)||n.length===0||n.length>=t.length||new Set(n).size!==n.length||[...n].some(s=>!t.includes(s)))throw new TypeError("Invalid artifact exception ledger signature.");r.set(o.identity,o)}return r}function cD(e,t=[]){let r=yb(e),o=[...r.keys()].sort(),n=bb(t,o),s=[...new Set([...r.values()].flatMap(c=>[...c]))].sort(),i=[],a=new Set;for(let c of s){let l=o.filter(_=>!r.get(_).has(c));if(l.length===0)continue;let p=n.get(c),f=p!==void 0&&JSON.stringify([...p.missing_from].sort())===JSON.stringify(l);f&&a.add(c),i.push({identity:c,present_in:o.filter(_=>r.get(_).has(c)),missing_from:l,disposition:f?{reason:p.reason,evidence:p.evidence}:null})}let d=[...n.keys()].filter(c=>!a.has(c)).sort();return{schema:"pm-artifact-ledgers/1",ok:i.every(c=>c.disposition!==null)&&d.length===0,counts:Object.fromEntries(o.map(c=>[c,r.get(c).size])),findings:i,stale_exceptions:d}}(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]="fca4e9bb-3a30-512e-9929-565ab6c11c54")}catch{}})();import{createHash as _o,createHmac as Tb,randomBytes as Cb,timingSafeEqual as wb}from"node:crypto";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="837ee381-0838-55d3-bcdf-7352fb76661d")}catch{}})();var HD="dev.unbrained.pm/progressive-tool-discovery",KD=Object.freeze({version:1,discoveryTool:"pm_discover",canonicalResult:"structuredContent.result",compatibilityText:"pointer"}),Sb=Object.freeze(["pm_discover","pm_next","pm_context","pm_search","pm_get"]),B=Object.freeze({lexical:.4,semantic:.2,graph:.1,permission:.15,freshness:.05,usage:.1}),Eb=Object.freeze(["profile_changed","tool_contract_changed","workspace_extension_changed","authorization_changed","ranking_signal_changed","cursor_integrity_key_rotated"]),ho={core:0,standard:1,full:2,internal:3},go=Object.freeze(["core","standard","full"]),Ab=new Set(["core","standard","full","custom"]),yo=new Set(te.map(({family:e})=>e)),vb=Cb(32);function ke(e,t){if(typeof e!="string")throw new b(`pm tool discovery ${t} must be a string of at most 4096 Unicode characters.`,64);let r=e[Symbol.iterator](),o=0;for(let n=r.next();!n.done;n=r.next())if(o+=1,o>4096)throw new b(`pm tool discovery ${t} must be a string of at most 4096 Unicode characters.`,64);return e}function bo(e){if(!Number.isInteger(e)||Number(e)<1||Number(e)>100)throw new b("pm tool discovery limit must be from 1 through 100.",64);return Number(e)}function To(e){if(e!=="unbounded"&&(!Number.isInteger(e)||Number(e)<128))throw new b("pm tool discovery outputBudget must be unbounded or an integer of at least 128.",64);return e==="unbounded"?e:Number(e)}function Co(e){if(e!==void 0&&typeof e!="boolean")throw new b("pm tool discovery includeSchema must be a boolean.",64);return e===!0}function wo(e){if(e===null||typeof e!="object"||Array.isArray(e))throw new b("pm tool discovery options must be an object.",64)}function Ob(e){if(!Array.isArray(e))throw new b("pm tool discovery candidates must be an array.",64);for(let[t,r]of e.entries()){if(r===null||typeof r!="object"||Array.isArray(r))throw new b(`pm tool discovery candidate ${t} must be an object.`,64);if(typeof r.name!="string"||r.name.trim().length===0)throw new b(`pm tool discovery candidate ${t} name must be a non-empty string.`,64);if(typeof r.description!="string"||r.description.trim().length===0)throw new b(`pm tool discovery candidate ${t} description must be a non-empty string.`,64);if(r.inputSchema===null||typeof r.inputSchema!="object"||Array.isArray(r.inputSchema))throw new b(`pm tool discovery candidate ${t} inputSchema must be an object.`,64);if(r.authorized!==void 0&&typeof r.authorized!="boolean")throw new b(`pm tool discovery candidate ${t} authorized must be a boolean.`,64)}}function WD(e){if(wo(e),e.family!==void 0&&(typeof e.family!="string"||!yo.has(e.family)))throw new b("pm tool discovery family must be a declared capability family.",64);if(e.tier!==void 0&&(typeof e.tier!="string"||!go.includes(e.tier)))throw new b("pm tool discovery tier must be core, standard, or full.",64);return{...e.query!==void 0?{query:ke(e.query,"query")}:{},...e.family!==void 0?{family:e.family}:{},...e.tier!==void 0?{tier:e.tier}:{},...e.limit!==void 0?{limit:bo(e.limit)}:{},...e.cursor!==void 0?{cursor:ke(e.cursor,"cursor")}:{},...e.includeSchema!==void 0?{includeSchema:Co(e.includeSchema)}:{},...e.outputBudget!==void 0?{outputBudget:To(e.outputBudget)}:{}}}function Ib(e){return e===void 0||!Number.isFinite(e)?0:Math.min(1,Math.max(0,e))}function pe(e){return[...new Set(e.toLowerCase().match(/[a-z0-9]+/gu)??[])].sort()}function Rb(e,t){let r=pe(e);if(r.length===0)return 0;let o=new Set(pe(t)),n=r.filter(i=>o.has(i)).length,s=t.toLowerCase().includes(e.toLowerCase())?.25:0;return Math.min(1,n/r.length+s)}function Mb(e,t){let r=pe(e);if(r.length===0)return 0;let o=t.toLowerCase(),n=pe(t),s=r.filter(a=>n.some(d=>d.startsWith(a)||a.startsWith(d))).length,i=o.includes(e.toLowerCase())?.2:0;return Math.min(1,s/r.length+i)}function fo(e){return _o("sha256").update(JSON.stringify(e)).digest("hex").slice(0,24)}function So(e,t,r){return Tb("sha256",r).update(JSON.stringify({version:1,fingerprint:e,offset:t})).digest("base64url")}function Pb(e,t,r){let o={version:1,offset:t,signature:So(e,t,r)};return Buffer.from(JSON.stringify(o),"utf8").toString("base64url")}function kb(e,t,r,o){if(e===void 0)return 0;try{let n=JSON.parse(Buffer.from(e,"base64url").toString("utf8"));if(n.version!==1||!Number.isInteger(n.offset)||(n.offset??-1)<0||Number(n.offset)>r||typeof n.signature!="string")throw new Error("cursor fields do not match the request");let s=Buffer.from(So(t,n.offset,o),"base64url"),i=Buffer.from(n.signature,"base64url");if(i.length!==s.length||!wb(i,s))throw new Error("cursor signature does not match the request");return n.offset}catch(n){throw new b("Invalid or stale pm tool discovery cursor; restart discovery without cursor.",64,{reason:String(n)})}}function gt(e,t,r){return{value:Ib(e),weight:t,available:r!=="unavailable",source:r}}function Pe(e,t,r){return gt(e??t,r,e===void 0?"computed":"host")}function xb(e,t,r){let o=Object.hasOwn(_e,e.name)?_e[e.name]:"help",n=Ve(o),s=`${e.name} ${e.description} ${o} ${n}`,i=Rb(t,s),a=new Set(pe(t)),d={lexical:gt(i,B.lexical,"computed"),semantic:Pe(e.signals?.semantic,Mb(t,s),B.semantic),graph:Pe(e.signals?.graph,a.has(n)||a.has(o)?1:0,B.graph),permission:gt(1,B.permission,"authorization"),freshness:Pe(e.signals?.freshness,1,B.freshness),usage:Pe(e.signals?.usage,Sb.includes(e.name)?1:0,B.usage)},c=Object.values(d).reduce((l,p)=>l+p.value*p.weight,0);return{name:e.name,description:e.description,command:o,tier:He(o),family:n,score:Number(c.toFixed(6)),signals:d,...r?{input_schema:structuredClone(e.inputSchema)}:{}}}function Nb(e){if(e.cursorIntegrityKey!==void 0&&(!(e.cursorIntegrityKey instanceof Uint8Array)||e.cursorIntegrityKey.byteLength<32))throw new b("pm tool discovery cursorIntegrityKey must contain at least 32 bytes.",64);if(e.tier!==void 0&&(typeof e.tier!="string"||!go.includes(e.tier)))throw new b("pm tool discovery tier must be core, standard, or full.",64);if(e.family!==void 0&&(typeof e.family!="string"||!yo.has(e.family)))throw new b("pm tool discovery family must be a declared capability family.",64);if(e.profile!==void 0&&(typeof e.profile!="string"||!Ab.has(e.profile)))throw new b("pm tool discovery profile must be core, standard, full, or custom.",64)}function Lb(e){let t=ke(e.query===void 0?"":e.query,"query").trim().replace(/\s+/gu," ");ke(e.cursor===void 0?"":e.cursor,"cursor");let r=bo(e.limit===void 0?10:e.limit),o=To(e.outputBudget===void 0?1200:e.outputBudget);return Nb(e),{query:t,includeSchema:Co(e.includeSchema),limit:r,budget:o,maximumTier:ho[e.tier??"full"],profile:e.profile===void 0?"core":e.profile}}function Eo(e,t,r){let o=r??e.tools.reduce((i,a,d)=>i+(d===0?0:1)+Buffer.byteLength(JSON.stringify(a),"utf8"),0),n={...e,tools:[]},s=0;for(let i=0;i<4;i+=1){let a=Buffer.byteLength(JSON.stringify({...n,token_cost:{estimated_tokens:s,budget:t,within_budget:!0}}),"utf8"),d=Math.ceil((a+o)/4);if(d===s)break;s=d}return s}function Db(e,t,r){return e.filter(o=>o.authorized!==!1).map(o=>xb(o,r.query,r.includeSchema)).filter(o=>o.tier!=="internal"&&ho[o.tier]<=r.maximumTier&&(t.family===void 0||o.family===t.family)).sort((o,n)=>n.score-o.score||(o.name<n.name?-1:o.name>n.name?1:0))}function $b(e,t,r){if(t==="unbounded")return[...e];let o=[],n=0;for(let[s,i]of e.entries()){let a=n+(s===0?0:1)+Buffer.byteLength(JSON.stringify(i),"utf8");if(Eo(r(s+1),t,a)>t)break;o.push(i),n=a}return o}function XD(e,t={}){Ob(e),wo(t);let r=Lb(t),o=t.cursorIntegrityKey??vb,n=Db(e,t,r),s=fo({query:r.query,family:t.family??null,tier:t.tier??"full",includeSchema:r.includeSchema,profile:r.profile,ranked:n}),i=kb(t.cursor,s,n.length,o),a=n.slice(i,i+r.limit),d=[];r.includeSchema||d.push({name:"input_schema",reason:"compact_projection",restore_with:"Set includeSchema=true."}),i+r.limit<n.length&&d.push({name:"tools",reason:"limit",restore_with:"Continue with next_cursor or increase limit."});let c={result_type:"pm_tool_discovery",contract_version:1,query:r.query,profile:r.profile,total:n.length,ranking_policy:{version:1,formula:"weighted_sum_then_name",weights:B},cache:{key:fo({fingerprint:s,cursorIntegrityKey:_o("sha256").update(o).digest("hex"),limit:r.limit,offset:i,budget:r.budget}),ttl_ms:3e4,scope:"private",invalidates_on:Eb}},l=(g,T=g.length)=>{let w=i+T,q=w<n.length,I=[...d];return T<a.length&&I.push({name:"tools",reason:"token_budget",restore_with:"Continue with next_cursor or increase outputBudget."}),{...c,tools:[...g],returned:T,has_more:q,...q?{next_cursor:Pb(s,w,o)}:{},omission_receipt:{has_omissions:I.length>0,omitted:I}}},p=g=>{let T=l(g),w=Eo(T,r.budget);return{...T,token_cost:{estimated_tokens:w,budget:r.budget,within_budget:r.budget==="unbounded"||w<=r.budget}}},f=$b(a,r.budget,g=>l([],g)),_=p(f);if(a.length>0&&f.length===0){let g=p([a[0]]).token_cost.estimated_tokens;throw new b(`pm tool discovery outputBudget is too small to return a tool; increase it to at least ${g}.`,64,{required:String(g)})}if(r.budget!=="unbounded"&&_.token_cost.estimated_tokens>r.budget)throw new b(`pm tool discovery outputBudget is too small; at least ${_.token_cost.estimated_tokens} estimated tokens are required for this page.`,64,{required:String(_.token_cost.estimated_tokens)});return _}(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]="d007edcb-46f0-5546-b804-27d86afe23e7")}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]="1c706c4d-988c-5d6d-b8cc-8985ea2215d1")}catch{}})();export{Jv as ACTIONABILITY_ORDERING_KINDS,Ja as ACTIVITY_COMMANDER_STRING_OPTION_CONTRACTS,Ta as ACTIVITY_FLAG_CONTRACTS,mi as AGENT_PROVENANCE_DIMENSIONS,ns as AGGREGATE_FLAG_CONTRACTS,zs as APPEND_FLAG_CONTRACTS,WR as ASSURANCE_ACTIONS,XR as ASSURANCE_DECLARATION_KINDS,tI as ASSURANCE_DOCUMENT_VERSION,la as ASSURANCE_FLAG_CONTRACTS,rI as ASSURANCE_GATE_TRIGGERS,oI as ASSURANCE_MEASUREMENT_SOURCE_KINDS,eR as ASSURANCE_PRESET_IDS,JO as AssuranceEvaluationRefusalError,YO as AssuranceMutationRefusalError,ZO as AssuranceSourceResolutionError,Qn as BASELINE_ITEM_FORMAT_VERSION,Ty as BOUNDARY_FIXTURE_CAPTURE_SOURCES,CO as BRIEF_LIST_FIELDS,_i as BUILTIN_AGENT_PROVENANCE_ADAPTERS,X as BUILTIN_CORPUS_SHAPES,fi as BUILTIN_HARNESS_SIGNAL_DESCRIPTORS,Uo as BUILTIN_ITEM_TYPE_VALUES,zt as BUILTIN_PROFILES,Fb as BUILTIN_RELATIONSHIP_KINDS,Wa as CALENDAR_COMMANDER_STRING_OPTION_CONTRACTS,ba as CALENDAR_FLAG_CONTRACTS,Vs as CLAIM_FLAG_CONTRACTS,qd as CLOSE_ACTION_OPTION_KEYS,Bs as CLOSE_FLAG_CONTRACTS,qs as CLOSE_MANY_FLAG_CONTRACTS,Js as CLOSE_TASK_FLAG_CONTRACTS,is as COMMENTS_FLAG_CONTRACTS,dT as COMMON_MUTATION_COMMAND_OPTION_KEYS,ka as COMPLETION_FLAG_CONTRACTS,Ho as CONFIDENCE_TEXT_VALUES,Ts as CONFIG_FLAG_CONTRACTS,Xa as CONTEXT_COMMANDER_STRING_OPTION_CONTRACTS,kM as CONTEXT_EVALUATION_METRIC_NAMES,wa as CONTEXT_FLAG_CONTRACTS,jt as CONTEXT_OUTPUT_VALUES,$M as CONTEXT_PACKING_PROFILES,EM as CONTEXT_RECENCY_EPOCH,IM as CONTEXT_RELEVANCE_SERVICE,vM as CONTEXT_RELEVANCE_SIGNAL_NAMES,UM as CONTEXT_SIGNAL_SET_VERSION,GM as CONTEXT_SIGNAL_STORE_FORMAT_VERSION,jM as CONTEXT_SIGNAL_STORE_WARNING_DETAILS,yw as CONTEXT_USAGE_LIMITS,Pa as CONTRACTS_FLAG_CONTRACTS,_a as COPY_FLAG_CONTRACTS,Jd as CREATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,Qd as CREATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,Zd as CREATE_COMMANDER_STRING_OPTION_CONTRACTS,Wb as CREATE_DIRECT_CLOSE_REASON_DEFAULT,pa as CREATE_FLAG_CONTRACTS,mS as CURRENT_HISTORY_HASH_ALGORITHM,PS as CURRENT_HISTORY_ITEM_HASH_VERSION,xS as CURRENT_HISTORY_RECORD_HASH_VERSION,ei as CURRENT_ITEM_FORMAT_VERSION,VM as ContextSignalStore,bw as ContextUsageValidationError,gM as DEFAULT_AUTHOR_IDENTITY_VOCABULARY,dP as DEFAULT_CHILD_SAMPLE_LIMIT,TO as DEFAULT_COMPACT_LIST_FIELDS,vE as DEFAULT_DERIVED_INDEX_MINIMUM_ITEMS,Pm as DEFAULT_EVAL_QUERIES_RELATIVE_PATH,cM as DEFAULT_TERMINAL_TRANSITION_POLICY,XM as DEFAULT_WORKSPACE_MEMORY_MINIMUM_ITEMS,Bv as DEFECT_ESCAPE_CLASSES,qv as DEFECT_GATE_EVIDENCE_DISPOSITIONS,Ks as DELETE_FLAG_CONTRACTS,qo as DEPENDENCY_KIND_VALUES,Aa as DEPS_FLAG_CONTRACTS,cs as DOCS_FLAG_CONTRACTS,aa as DUPLICATES_FLAG_CONTRACTS,vR as DURABLE_MERGE_RECEIPT_INTRODUCED_AT,Kv as DefectRecurrencePolicyParseError,Oa as EVAL_FLAG_CONTRACTS,Em as EVAL_METRIC_NAMES,Im as EVAL_QUERY_SET_CONTRACT,Rm as EVAL_QUERY_SET_EXAMPLE,Om as EVAL_QUERY_SET_SCHEMA_ID,Ca as EVENTS_FLAG_CONTRACTS,Qs as EVENT_FLAG_CONTRACTS,No as EXECUTABLE_COMMAND_ALIASES,ue as EXIT_CODE,Ps as EXTENSION_ACTIVATE_FLAG_CONTRACTS,Ms as EXTENSION_ADOPT_ALL_FLAG_CONTRACTS,Fs as EXTENSION_ADOPT_FLAG_CONTRACTS,GP as EXTENSION_CAPABILITIES,Hb as EXTENSION_CAPABILITY_CONTRACT,zb as EXTENSION_CAPABILITY_CONTRACT_VERSION,Vb as EXTENSION_CAPABILITY_LEGACY_ALIASES,wn as EXTENSION_CAPABILITY_REGISTRATION_SURFACES,$s as EXTENSION_CATALOG_FLAG_CONTRACTS,ks as EXTENSION_DEACTIVATE_FLAG_CONTRACTS,Rs as EXTENSION_DESCRIBE_FLAG_CONTRACTS,Ds as EXTENSION_DOCTOR_FLAG_CONTRACTS,Is as EXTENSION_EXPLORE_FLAG_CONTRACTS,Cs as EXTENSION_FLAG_CONTRACTS,Ss as EXTENSION_INIT_FLAG_CONTRACTS,vs as EXTENSION_INSTALL_FLAG_CONTRACTS,Ns as EXTENSION_MANAGE_FLAG_CONTRACTS,xs as EXTENSION_MIGRATE_FLAG_CONTRACTS,UP as EXTENSION_POLICY_MODES,jP as EXTENSION_POLICY_SURFACES,Ls as EXTENSION_RELOAD_FLAG_CONTRACTS,qP as EXTENSION_SANDBOX_PROFILES,ws as EXTENSION_SCOPE_FLAG_CONTRACTS,BP as EXTENSION_TRUST_MODES,Os as EXTENSION_UNINSTALL_FLAG_CONTRACTS,fO as EXTERNAL_DEPENDENCY_RESOLUTION_STATUSES,uO as EXTERNAL_DEPENDENCY_SOURCE_KIND,mO as EXTERNAL_DEPENDENCY_SOURCE_KIND_ALIAS,ds as FILES_FLAG_CONTRACTS,ha as FOCUS_FLAG_CONTRACTS,ia as GC_FLAG_CONTRACTS,EO as GET_DEPTH_VALUES,Sa as GET_FLAG_CONTRACTS,rs as GLOBAL_FLAG_CONTRACTS,hp as GRAPH_DURABLE_CACHE_MIN_ITEMS,_p as GRAPH_DURABLE_CACHE_VERSION,va as GRAPH_FLAG_CONTRACTS,WE as GRAPH_QUERY_DEFAULTS,Fe as GRAPH_SUBCOMMAND_VALUES,Ea as GUIDE_FLAG_CONTRACTS,da as HEALTH_FLAG_CONTRACTS,fs as HISTORY_AUTHOR_ACKNOWLEDGE_FLAG_CONTRACTS,KI as HISTORY_AUTHOR_ATTRIBUTION_BASELINE,eM as HISTORY_COMPACT_BULK_DEFAULT_MIN_ENTRIES,_s as HISTORY_COMPACT_FLAG_CONTRACTS,Ri as HISTORY_EVENT_CLASSIFICATION_VERSION,ls as HISTORY_FLAG_CONTRACTS,pS as HISTORY_HASH_ALGORITHMS,EI as HISTORY_ITEM_HASH_VERSION_3_INTRODUCED_IN,us as HISTORY_REDACT_FLAG_CONTRACTS,ms as HISTORY_REPAIR_FLAG_CONTRACTS,Hc as INIT_AGENT_GUIDANCE_MODE_VALUES,bs as INIT_FLAG_CONTRACTS,Gs as INSTALL_FLAG_CONTRACTS,Vo as ISSUE_SEVERITY_VALUES,ma as ITEM_COMPLETE_FLAG_CONTRACTS,gR as ITEM_LATEST_TIMESTAMP_FIELDS,Kb as ITEM_METADATA_KEY_ORDER,ua as ITEM_MUTATE_FLAG_CONTRACTS,fa as ITEM_REOPEN_FLAG_CONTRACTS,lR as ITEM_SCALAR_MISSING_VALUE,jo as ITEM_TYPE_VALUES,hR as ITEM_UNION_COLLECTION_FIELDS,zM as JsonFileContextSignalStoreAdapter,as as LEARNINGS_FLAG_CONTRACTS,uS as LEGACY_HISTORY_HASH_ALGORITHM,tu as LINKED_TEST_ENV_NAME_PATTERN,ru as LINKED_TEST_PM_CONTEXT_MODE_VALUES,eu as LINKED_TEST_PROTECTED_ENV_KEYS,ou as LINKED_TEST_WORKSPACE_CONTEXT_MODE_VALUES,Ha as LIST_COMMANDER_STRING_OPTION_CONTRACTS,wO as LIST_COMMAND_DEFAULT_PROJECTIONS,VP as LIST_FILTER_EXTENSION_FLAG_DEFINITIONS,os as LIST_FILTER_FLAG_CONTRACTS,IO as LIST_SORT_FIELDS,RO as LIST_SORT_ORDER_VALUES,Mi as MAINTENANCE_HISTORY_OPERATIONS,aP as MAX_CHILD_PROJECTION_ITEMS,bT as MAX_WORKFLOW_POLICIES,TT as MAX_WORKFLOW_POLICY_TERMS,Zs as MEET_FLAG_CONTRACTS,IP as MERGE_DRIVER_ARTIFACT_VALUES,ps as MERGE_FLAG_CONTRACTS,Ge as MERGE_SUBCOMMAND_VALUES,PP as MUTATION_EVENT_WIRE_BUDGET,ie as MemoryRelationshipGraphAdapter,Ya as NEXT_COMMANDER_STRING_OPTION_CONTRACTS,Ra as NEXT_FLAG_CONTRACTS,Wu as NEXT_OUTPUT_VALUES,ss as NOTES_FLAG_CONTRACTS,Es as PACKAGE_FLAG_CONTRACTS,As as PACKAGE_INIT_FLAG_CONTRACTS,Ys as PAUSE_TASK_FLAG_CONTRACTS,Bd as PLAN_CREATE_METADATA_PARAMETER_KEYS,ys as PLAN_FLAG_CONTRACTS,om as PLAN_SHOW_DEPTH_VALUES,We as PLAN_SUBCOMMANDS,nm as PLAN_TEMPLATE_NAMES,Py as PM_AGENT_TASK_ACCOUNTING_MODES,ut as PM_AGENT_TASK_TRANSCRIPT_VERSION,Mo as PM_BULK_LIFECYCLE_COMMAND_ALIASES,Di as PM_CLI_EXPECTED_ERROR_NAME,eA as PM_CLI_GRAMMAR_CONTRACT,XE as PM_CLI_GRAMMAR_NOUNS,ln as PM_CLI_ONLY_TOOL_ACTION_WAIVERS,YE as PM_CLI_SHARED_VERBS,xo as PM_COMMAND_ALIAS_CONTRACTS,te as PM_COMMAND_CAPABILITY_CONTRACTS,vt as PM_COMMAND_DESTINATION_CONTRACTS,VO as PM_COMMAND_EXIT_CONTRACTS,zO as PM_COMMAND_EXIT_OUTCOME_CONTRACTS,Gn as PM_COMMAND_OUTPUT_BUDGET_CONTRACTS,jO as PM_COMMAND_OUTPUT_ENVELOPE_CONTRACTS,Be as PM_COMMAND_POSITIONAL_CONTRACTS,_c as PM_COMMAND_VISIBILITY_CONTRACTS,jI as PM_COMPLETE_LIST_FINDING_CODES,Hw as PM_CONTEXT_INTENTS_FILE,Rw as PM_CONTEXT_INTENT_CONTRACTS,Ro as PM_CONTEXT_OPS_COMMAND_ALIASES,sn as PM_CORE_COMMAND_NAMES,G as PM_CORPUS_SHAPE_SCHEMA,un as PM_DEPRECATED_TOOL_ACTIONS,Nn as PM_DIAGNOSTIC_DEGRADATION_STEPS,Ln as PM_DIAGNOSTIC_OUTPUT_BUDGET_CONTRACTS,xn as PM_DIAGNOSTIC_OUTPUT_CLASSES,mn as PM_DISCOVERABLE_TOOL_ACTIONS,Hr as PM_EPISODE_SCHEMA,GO as PM_ERROR_CODE_CATALOG,LO as PM_ERROR_CODE_EXIT_CLASS_CONTRACTS,Zr as PM_EXACT_COVERAGE_METRICS,Qo as PM_EXTENSION_CAPABILITY_CONTRACTS,an as PM_EXTENSION_PACKAGE_ACTION_SUBCOMMANDS,tn as PM_EXTENSION_POLICY_MODE_CONTRACTS,nn as PM_EXTENSION_POLICY_SURFACE_CONTRACTS,on as PM_EXTENSION_SANDBOX_PROFILE_CONTRACTS,en as PM_EXTENSION_SERVICE_NAME_CONTRACTS,rn as PM_EXTENSION_TRUST_MODE_CONTRACTS,kI as PM_GITATTRIBUTES_END,PI as PM_GITATTRIBUTES_START,NI as PM_GITATTRIBUTES_V2_END,xI as PM_GITATTRIBUTES_V2_START,Sc as PM_GITIGNORE_END,wc as PM_GITIGNORE_START,nM as PM_HISTORY_ATTESTATION_CONTRACT,Io as PM_HISTORY_COMMAND_ALIASES,iS as PM_HISTORY_OPERATION_ALIASES,aS as PM_HISTORY_OPERATION_CONTRACT,sS as PM_HISTORY_OPERATION_PATTERNS,cn as PM_ITEM_ACTION_SUBCOMMANDS,oS as PM_ITEM_HISTORY_OPERATIONS,it as PM_MCP_APPS_EXTENSION,Rr as PM_MCP_APPS_SERVER_CAPABILITY,Ee as PM_MCP_APPS_SPEC_VERSION,kr as PM_MCP_APP_CONTRACTS,Pr as PM_MCP_APP_MIME_TYPE,Sb as PM_MCP_ENTRY_TOOL_NAMES,m as PM_MCP_ERROR_CODES,qk as PM_MCP_HTTP_PROTOCOL_VERSION,Bh as PM_MCP_INPUT_REQUEST_METHODS,mk as PM_MCP_LEGACY_PROTOCOL_VERSIONS,tr as PM_MCP_LOG_LEVELS,E as PM_MCP_META_KEYS,HD as PM_MCP_PROGRESSIVE_DISCOVERY_EXTENSION,KD as PM_MCP_PROGRESSIVE_DISCOVERY_SERVER_CAPABILITY,Tc as PM_MCP_PROMPT_CONTRACTS,V as PM_MCP_PROTOCOL_VERSION,bc as PM_MCP_RESOURCE_CONTRACTS,at as PM_MCP_SKILLS_DRAFT_REVISION,xr as PM_MCP_SKILLS_EXTENSION,Wg as PM_MCP_SKILLS_SERVER_CAPABILITY,M as PM_MCP_SKILL_LIMITS,we as PM_MCP_SUBSCRIPTION_ID_META_KEY,Ye as PM_MCP_SUPPORTED_PROTOCOL_VERSIONS,Lk as PM_MCP_TASKS_EXTENSION,Qh as PM_MCP_TASK_STATUSES,_e as PM_MCP_TOOL_COMMAND_CONTRACTS,gC as PM_MODE_PAIRED_OUTPUT_PROJECTION_CONTRACTS,dd as PM_MUTATION_ACTION_CONTRACTS,xe as PM_NAMESPACED_COMMAND_ALIASES,zr as PM_OBSERVATION_SCHEMA,kn as PM_OUTPUT_BUDGET_CLASSES,Pn as PM_OUTPUT_DEGRADATION_STEPS,kt as PM_OUTPUT_ENVELOPE_KINDS,$t as PM_PACKAGE_CONVENTIONAL_RESOURCE_ROOTS,dn as PM_PACKAGE_ONLY_ACTION_SUBCOMMANDS,Dt as PM_PACKAGE_RESOURCE_KINDS,je as PM_POSITIONAL_ACTION_CONTRACTS,Yd as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA,Wd as PM_PROVIDER_TOOL_PARAMETERS_SCHEMA_VERSION,nw as PM_READ_OUTPUT_COMPOSITION_OPTION_FLAGS,HC as PM_READ_OUTPUT_CONTINUATION_FINGERPRINT_POLICIES,rw as PM_READ_OUTPUT_DIMENSIONS,ow as PM_READ_OUTPUT_OPTION_FLAGS,JC as PM_READ_OUTPUT_SESSION_MAX_SEEN_ITEM_IDS,YC as PM_READ_OUTPUT_SESSION_MIN_TOKENS,RT as PM_READ_OUTPUT_SURFACES,iw as PM_READ_OUTPUT_SURFACE_CONTRACTS,hC as PM_READ_ROW_CONTRACTS,_C as PM_READ_ROW_JQ_SELECTOR,DN as PM_RECOVERY_REFERENCE_FIELDS,de as PM_RECOVERY_REFERENCE_KINDS,tb as PM_REFUSAL_CLOSURE_EXECUTABLE_CANONICAL_CODE_BASELINE,co as PM_REFUSAL_CLOSURE_EXECUTABLE_CANONICAL_CODE_BASELINE_V2,qN as PM_REFUSAL_CLOSURE_EXECUTABLE_CODE_BASELINE,ao as PM_REFUSAL_CLOSURE_EXECUTABLE_CODE_BASELINE_V2,Po as PM_RELOCATED_COMMAND_ALIASES,rd as PM_REPRODUCIBLE_PROCESS_ENV,HO as PM_SUCCESS_EXIT_CODES,pn as PM_TOOL_ACTIONS,zd as PM_TOOL_ACTION_PARAMETER_CONTRACTS,Xd as PM_TOOL_PARAMETERS_SCHEMA,Kd as PM_TOOL_PARAMETERS_SCHEMA_MAJOR,Hd as PM_TOOL_PARAMETERS_SCHEMA_VERSION,Ud as PM_TOOL_RESERVED_CUSTOM_FIELD_PROPERTIES,Vr as PM_VERDICT_SCHEMA,nS as PM_WORKSPACE_HISTORY_OPERATIONS,Br as PM_WORKSPACE_RECIPE_SCHEMA,gs as PROFILE_FLAG_CONTRACTS,Jt as PROFILE_LINT_CODES,Yt as PROFILE_LINT_DIMENSIONS,qt as PROFILE_NAMES,Xe as PROFILE_SUBCOMMANDS,b as PmCliError,he as PmClient,BI as PmCompleteListValidationError,y as PmMcpAuthorizationError,rr as PmMcpInputRequiredError,Er as PmMcpIssuerCredentialStore,u as PmMcpProtocolError,or as PmMcpRequestStateReplayGuard,Gr as PmMcpSkillRegistry,fr as PmMcpSubscriptionRegistry,ot as PmMcpTaskStore,xC as QUERY_CURSOR_CONTRACT,js as REINDEX_FLAG_CONTRACTS,rv as REINDEX_LOCK_ID,pt as RELATIONSHIP_GRAPH_SNAPSHOT_VERSION,Ws as RELEASE_FLAG_CONTRACTS,ea as REMIND_FLAG_CONTRACTS,At as RESERVED_ITEM_FIELD_NAMES,Hs as RESTORE_FLAG_CONTRACTS,zo as RISK_VALUES,GE as RelationshipEventLog,UE as RelationshipEventStore,z as RelationshipGraph,Le as RelationshipKindRegistry,hs as SCHEMA_FLAG_CONTRACTS,Ka as SEARCH_COMMANDER_STRING_OPTION_CONTRACTS,HP as SEARCH_EXTENSION_FLAG_DEFINITIONS,Ma as SEARCH_FLAG_CONTRACTS,Cu as SEMANTIC_ATTRIBUTION_LIMITS,Yb as SETTINGS_DEFAULTS,Dm as SNAPSHOT_SCHEMA,CI as SOURCE_CONTEXT_ACCESS_ENV,wI as SOURCE_CONTEXT_WRITE_OVERRIDE_ENV,Xs as START_TASK_FLAG_CONTRACTS,sa as STATS_FLAG_CONTRACTS,Bo as STATUS_VALUES,ts as SUBCOMMAND_GLOBAL_FLAG_CONTRACTS,Pi as SUBSTANTIVE_HISTORY_OPERATIONS,kS as SUPPORTED_HISTORY_ITEM_HASH_VERSIONS,NS as SUPPORTED_HISTORY_RECORD_HASH_VERSIONS,Zb as SUPPRESS_HOST_OUTPUT_MARKER,oa as TELEMETRY_FLAG_CONTRACTS,pf as TELEMETRY_SUBCOMMANDS,ra as TEST_ALL_FLAG_CONTRACTS,ta as TEST_FLAG_CONTRACTS,na as TEST_RUNS_FLAG_CONTRACTS,sf as TEST_RUN_MEASUREMENT_LIMIT,Dd as TOOL_ACTIVITY_OPTION_CONTRACTS,Ed as TOOL_AGGREGATE_OPTION_CONTRACTS,kd as TOOL_BULK_MUTATION_FILTER_OPTION_CONTRACT_SOURCE,Ld as TOOL_CALENDAR_OPTION_CONTRACTS,Nd as TOOL_CLOSE_MANY_FILTER_OPTION_CONTRACTS,$d as TOOL_CONTEXT_OPTION_CONTRACTS,Rd as TOOL_CREATE_OPTION_CONTRACTS,Id as TOOL_CREATE_OPTION_CONTRACT_SOURCE,Fd as TOOL_DEPS_OPTION_CONTRACTS,Gd as TOOL_GRAPH_OPTION_CONTRACTS,Sd as TOOL_LIST_FILTER_OPTION_CONTRACTS,Ad as TOOL_SEARCH_FILTER_OPTION_CONTRACTS,Od as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACTS,vd as TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACT_SOURCE,xd as TOOL_UPDATE_MANY_FILTER_OPTION_CONTRACTS,Pd as TOOL_UPDATE_OPTION_CONTRACTS,Md as TOOL_UPDATE_OPTION_CONTRACT_SOURCE,Xb as TYPE_TO_FOLDER,mA as UNKNOWN_SUBCOMMAND_COMPATIBILITY_CODES,ec as UPDATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS,rc as UPDATE_COMMANDER_REPEATABLE_OPTION_CONTRACTS,tc as UPDATE_COMMANDER_STRING_OPTION_CONTRACTS,ga as UPDATE_FLAG_CONTRACTS,ya as UPDATE_MANY_FLAG_CONTRACTS,Us as UPGRADE_FLAG_CONTRACTS,ca as VALIDATE_FLAG_CONTRACTS,yT as WORKFLOW_POLICY_ACTIONS,$I as WORKFLOW_POLICY_DOCUMENT_SCHEMA,DI as WORKFLOW_POLICY_SCHEMA,Ia as WORKSPACE_FLAG_CONTRACTS,QS as WORKSPACE_HISTORY_ID,$m as WORKSPACE_SNAPSHOT_ACTIONS,bl as WorkspaceGraphCache,VE as WorkspaceTransactionInterruptedError,zp as _testOnly,sP as _testOnlyAggregateCommand,gl as _testOnlyConfigCommand,uP as _testOnlyGetCommand,Mp as _testOnlyHealthCommand,Yc as _testOnlyInit,Kc as _testOnlyInitAgentGuidance,_0 as _testOnlyItemTransaction,LP as _testOnlyMutationEvents,oP as _testOnlyNextCommand,OP as _testOnlySearchCommand,ZI as _testOnlySimilarity,dm as _testOnlyTemplates,jp as _testOnlyValidateCommand,FP as _testOnlyWorkspacePosition,nR as acceptAssuranceProposals,Gp as acknowledgeLinkedTests,fl as acknowledgeUnknownAuthorHistoryEvents,ml as acknowledgeUnknownAuthorHistoryEventsFromTransport,OE as acquireItemMetadataDerivedIndexLock,Ue as acquireLock,O0 as activateExtensionForTest,zT as activateExtensions,ui as agentSessionEnvironment,u_ as aggregate,Wm as analyzeAgentProvenanceDescriptorCoverage,Vv as analyzeDefectChangeRisk,KR as analyzeDefectRecurrenceCoverage,Bl as analyzeDuplicateItems,BE as analyzeGraphImpact,ic as analyzeHierarchyIntegrity,qE as analyzeKnowledgeGraph,WO as analyzePmCommandExitConformance,fn as analyzePmToolActionParity,NR as analyzeReconciliationDiscard,jE as analyzeRelationshipExecution,ap as analyzeRelationshipSchedule,Dh as analyzeSdkActionCoverage,Mt as analyzeSdkCliParameterCompleteness,E_ as append,Ni as appendHistoryEntry,oE as appendWorkspaceAuditEvent,rE as appendWorkspaceHistoryChange,yA as applyAcceptanceCriteriaMutations,rR as applyAssurancePreset,Ga as applyBootstrapPagerPolicy,BR as applyClosureTimestampFix,Nw as applyContextIntentProjection,Ku as applyContextTagProjection,MO as applyFilterValueEcho,fE as applyHistoryPatch,td as applyInvocationAuthorOverride,Il as applyPathMigrations,mw as applyReadOutputDimensions,cw as applyReadOutputIncludeModes,QC as applyReadOutputSessionReferences,TE as applyRegisteredItemFieldDefaultsAndValidation,kl as applyStandaloneNote,Yi as applyStoredExtensionMigrationState,TA as applyTagRemovals,mM as applyTerminalOrderingPolicy,xl as artifactKey,aT as asRecordClone,sT as asRecordOrNull,ze as assembleWorkspaceRelationshipGraph,HI as assertCompleteListResult,ak as assertExtensionBlueprint,sk as assertExtensionCapabilityUsage,B0 as assertExtensionDeactivated,lk as assertExtensionManifestCompatible,ck as assertExtensionManifestMatchesBlueprint,pk as assertExtensionPreflight,dc as assertHierarchyMutationAllowed,tM as assertHistoryCompactTarget,DR as assertHistoryRepairTarget,Yn as assertInitializedTracker,Rl as assertLinkedArtifactMutationIsUnambiguous,_k as assertMcpClientCapabilities,fk as assertMcpProtocolHeader,My as assertMemoryRelationshipGraphAdapterConformance,SA as assertNoUnknownCsvKeys,Qp as assertNonHierarchyCardinalityMutationAllowed,q0 as assertPackageManifest,jA as assertParentReferenceIsNotSelf,bx as assertPmMcpSkillsCapability,dk as assertProjectProfile,MI as assertProjectRuntimeCompatibility,yC as assertProjectionModeChoice,Xn as assertReadableTrackerRoot,z0 as assertRegisteredCommandContract,ek as assertRegisteredCommandOverride,Y0 as assertRegisteredExporter,V0 as assertRegisteredFlags,H0 as assertRegisteredHook,X0 as assertRegisteredImporter,J0 as assertRegisteredItemField,Z0 as assertRegisteredItemType,ik as assertRegisteredMigration,tk as assertRegisteredParserOverride,rk as assertRegisteredPreflightOverride,Q0 as assertRegisteredProfile,ok as assertRegisteredRendererOverride,K0 as assertRegisteredSearchProvider,nk as assertRegisteredServiceOverride,W0 as assertRegisteredVectorStoreAdapter,Bb as assertRelationshipEdgeAllowed,to as assertRelationshipGraphAdapterConformance,dA as assertSchemaPreviewSupported,ff as assertTestMeasurementRun,nI as assuranceAssertionUpdateIsLoosening,$w as attachContextIntentReceipt,Tw as attachContextUsageServingReceipt,Lp as attachLinkedTestMutationProvenance,Np as attachLinkedTestProvenance,Ze as attachMcpServerInfo,EC as attachOutputOmissionReceipt,Gw as attachOutputTokenAccounting,Fw as attachReadOutputContracts,ew as attachReadOutputSessionReceipt,Mc as auditMergeAttributeFence,LI as auditMergeDriverConfiguration,mp as auditWorkspaceRelationshipGraph,nx as authorizeMcpHttpRequest,li as boundAgentEpisodeIdentity,BC as boundReadOutputRows,qu as buildChildrenByParent,CP as buildCompactSearchFilterSummary,PO as buildContentFilterEcho,qM as buildContextSignalSnapshot,my as buildCorpusShapeItemPlan,zv as buildDefectRecurrenceIndex,Uc as buildExtensionDescribeResult,Bc as buildExtensionInstallPlan,kO as buildGovernanceMissingFilterEcho,XA as buildInvalidTypeError,cP as buildItemChildrenRollup,m0 as buildItemCompletionMutations,OM as buildItemContextRelevanceCandidates,xE as buildItemNotFoundError,pP as buildItemSchedule,qR as buildLinkedFileRepairReport,Xk as buildMcpAuthorizationDiscoveryUrls,Uh as buildMcpCompleteResult,gk as buildMcpDiscoverResult,ex as buildMcpDynamicRegistrationMetadata,jk as buildMcpHttpRequestHeaders,wk as buildMcpInputRequiredResult,Wk as buildMcpProtectedResourceMetadata,Ic as buildMergeAttributePatterns,Vd as buildPmActionToolInputSchema,HN as buildPmRefusalClosureCensus,JI as buildRelationshipContext,sv as buildSearchCorpus,dv as buildSemanticCorpusInput,GR as buildStatusRoleWarnings,Wn as buildTrackerInitializationRecovery,mv as buildVectorizationEmbeddingIdentity,fv as buildVectorizationEmbeddingMetadata,wP as buildVerboseSearchFilters,FI as buildWorkflowCompletenessCheck,YM as buildWorkspaceMemorySnapshot,ci as canonicalDocument,cT as canonicalizeCommandOptionKey,t0 as canonicalizeCommandSuggestions,AM as canonicalizeContextRecencyCoordinate,Gb as canonicalizeRelationshipKind,$N as censusPmRecoveryReferenceProducers,VI as certifyCompleteListResult,A0 as checkExtensionManifestCompatibility,ah as claim,dh as claimNext,WI as classifyHistoryAuthorEvent,ki as classifyHistoryEvent,kR as classifyHistoryMergeReceiptReferences,NT as classifyHostEnvironmentFault,EP as classifyImplicitSemanticFallbackReason,oi as classifyItemFormatVersion,hf as classifyLinkedTestCommandSafety,gf as classifyLinkedTestFailure,aC as clearActiveExtensionHooks,Cp as clearDurableGraphCache,OS as clearFocusedItem,Ef as clearWorkspaceContractsCache,sh as close,Kp as closeItem,hh as closeTask,Ba as coalesceRepeatedListFlags,Zv as collectBlockedByIds,eO as collectBlockedByIdsFromCorpus,ww as collectContextUsageDeliveredItemIds,uc as collectDanglingDependencyReferences,rO as collectDependencyBlockedIds,lc as collectDuplicateDependencyRows,up as collectDuplicateRelationshipEdgeGroups,SP as collectErrorCauseCodes,nc as collectHierarchyRelations,Tr as collectMcpHeaderAnnotations,mc as collectMissingDependencyTargetIds,Zp as collectNewOrderingCycleWarnings,cp as collectOrderingCycles,pc as collectOrderingStorageContradictions,Xw as collectPackageContextIntentContracts,Gt as collectPackageExtensionDirectories,yE as collectRegisteredItemFieldNames,bS as collectRuntimeCreateFieldValues,YA as collectRuntimeFilterValues,TS as collectRuntimeUpdateFieldValues,Fu as collectSubtreeIds,Sn as collectUsedExtensionCapabilities,lT as commandOptionFlagLabel,__ as comments,Wf as commitImportedItem,f0 as commitItemCompletion,u0 as commitItemMutations,KE as commitWorkspaceTransaction,es as compactFlagAliasContracts,Gu as compareCriticalItems,AI as comparePmDateVersions,zE as compareRelationshipSnapshots,hw as compareTimestampStrings,wM as compileHistoryProvenanceMatcher,kw as composeContextIntentContracts,y0 as composeExtension,E0 as composeExtensionPackage,nO as computeActionabilityReport,DA as computeHistoryDiff,ip as computeRelationshipCentrality,np as computeRelationshipDominators,yl as computeWorkspaceGraphFingerprint,v_ as config,sC as consumeAfterCommandAffectedItems,s_ as context,Dw as contextIntentRowId,lh as copy,yf as countFailureCategories,UC as countReadOutputRows,oh as create,tR as createAssurancePreset,VR as createAssuranceWorkspaceContext,cA as createCheckpointId,qI as createCompleteListOptions,VT as createCoreCommandHookContext,Jr as createCorpusShapeMeasurement,cI as createEmptyAssuranceDocument,PT as createEmptyExtensionRegistrationRegistry,Ki as createExtensionCommandSdk,Cn as createExtensionContributionInventory,uk as createExtensionTestHarness,xi as createHistoryEntry,Mv as createLazyModule,GI as createLifecycleCompletenessPolicies,ix as createMcpStaticBearerVerifier,Dk as createMcpTaskStore,kE as createMutationGuardSdk,bC as createOutputOmissionReceipt,Fi as createPmCliExpectedError,Kn as createPmCliProgram,$n as createPmCommandOutputBudget,vC as createQueryFingerprint,Ry as createRelationshipGraphScaleFixture,Z as createRelationshipGraphSnapshot,yt as createRelationshipKindRegistry,nd as createReproducibleProcessRunner,bP as createSearchCursorFingerprint,HT as createSerialQueue,RA as createStdinTokenResolver,fA as createUnknownSubcommandError,IT as createWorkflowPolicyEvaluator,Fm as createWorkspaceSnapshot,I0 as deactivateExtensionForTest,NL as declineServiceOverride,Lw as decodeContextIntentCursor,Rv as decodeHtmlEntitiesInOptions,br as decodeMcpHttpHeaderValue,jw as decodePmTableRows,MC as decodeQueryCursor,IC as decodeQueryCursorEnvelope,RC as decodeQueryCursorState,XC as decodeReadOutputContinuationCursor,lx as decoratePmMcpToolsWithApps,Ll as dedupeLinkedArtifacts,RM as defaultScoreContextCandidates,UL as defineAfterCommandHook,FL as defineBeforeCommandHook,GL as defineBeforeMutationHook,wL as defineCommand,RL as defineCommandOverride,W as defineCorpusShape,Rx as defineEpisodeSpecification,$L as defineExporter,h0 as defineExtension,g0 as defineExtensionBlueprint,TL as defineExtensionManifest,SL as defineFlag,DL as defineImporter,AL as defineItemField,EL as defineItemType,vL as defineMigration,oy as defineObservationContract,qL as defineOnIndexHook,BL as defineOnReadHook,jL as defineOnWriteHook,ML as defineParserOverride,Fn as definePmCommandOutputBudget,UO as definePmCommandOutputEnvelope,DO as definePmErrorCodeCatalog,PL as definePreflightOverride,CL as defineProjectProfile,LL as defineRendererOverride,OL as defineSearchProvider,kL as defineServiceOverride,IL as defineVectorStoreAdapter,ay as defineVerdictContract,Ae as defineWorkspaceRecipe,ph as deleteItem,zm as deleteWorkspaceSnapshot,qb as dependencyToRelationship,w_ as deps,oR as deriveAssuranceProposals,UR as deriveClosureTimestamp,T0 as deriveExtensionCapabilities,XO as derivePmBulkMutationEffect,FN as derivePmRecoveryReferenceObligations,dp as deriveRelationshipDeadlines,Nc as deriveSchemaEvolutionMigrationId,wv as deriveTelemetryCommandResolution,ev as describeAllowedTransitions,TI as describeExtensionActivation,C0 as describeExtensionBlueprint,vu as describeItemOwnershipConflict,Ix as describeObservationCost,Wt as describeProfileComposition,Xt as describeProjectProfile,Zw as describeUnknownError,wi as detectAgentIdentity,vi as detectHarnessIdentity,rp as detectRelationshipCommunities,Si as diagnoseAgentIdentity,fp as diffRelationshipAuditSnapshots,cf as diffTestRunMeasurements,Ak as digestMcpRequestParameters,BT as discoverExtensions,Xo as discoverNearbyPmRoot,XD as discoverPmTools,OI as discoverProjectRuntimeVersionPins,C_ as docs,f_ as duplicates,gp as durableGraphCachePath,wp as durableGraphCacheStatus,ti as effectiveItemFormatVersion,Gv as emitTelemetryErrorEvent,Kf as emptyImportedDocument,uR as encodeItemScalarDecisionValue,yr as encodeMcpHttpHeaderValue,Uw as encodePmTableRows,OC as encodeQueryCursor,WC as encodeReadOutputContinuationCursor,CE as enforceHistoryStreamPolicyForItem,wE as enforceHistoryStreamPolicyForItems,xO as enrichCliFlagInvocationContract,Pt as enrichCliFlagInvocationContracts,hE as ensureMaterializedHistoryTarget,Ac as ensurePmGitignore,Sl as ensureScope,Cv as ensureSentryInit,Hf as ensureTrackerInitialized,ep as enumerateRelationshipPaths,jn as estimatePmOutputTokens,pI as evaluateAssuranceAssertion,uI as evaluateAssuranceGate,Kx as evaluateBoundaryFixtures,xM as evaluateContextRanking,Hv as evaluateDefectGateEvidence,lI as evaluateMeasurement,vm as evaluateMetricFloors,ld as evaluateMutationGuard,ef as evaluateProvenanceCoverage,aD as evaluateReliabilityWindow,Jm as evaluateSemanticAttributionCoverage,zl as evaluateSimilarityGovernance,QA as evaluateTransition,dy as evaluateVerdictContract,OT as evaluateWorkflowPolicies,ad as executeEmbeddingBatchesWithRetry,pv as executeVectorDelete,uv as executeVectorReset,lv as executeVectorUpsert,Qg as executeWorkspaceRecipe,Pl as expandAddGlobEntries,Hl as explainSourceTraceability,sM as exportAttestation,gh as extension,bh as extensionActivate,Th as extensionDeactivate,yh as extensionList,fb as extensionMigrate,PR as extractHistoryMergeReceiptDispositions,MR as extractHistoryMergeReceiptReferences,tx as extractMcpTraceContext,uE as extractPatchFailureContext,Pp as extractReferencedPmItemIdsFromCommand,Iy as federateRelationshipGraphSnapshots,y_ as files,b_ as filesDiscover,T_ as filesLookup,Sw as finalizeContextUsageDelivery,by as findCoverageDeficits,ql as findDuplicateClusters,Oc as findGitWorkspaceRoot,VS as findHistoryIdentityDiscontinuities,Fc as findInstalledNpmPackageCandidate,cx as findPmMcpAppByUri,ko as findPmNamespacedCommand,op as findRedundantRelationshipEdges,sp as findRelationshipCutStructure,jl as findSimilarItems,Fv as finishTelemetryCommand,FT as flattenFlagListValue,hy as flushTelemetryQueue,mh as focus,tp as forEachMatchedRelationshipEdge,pp as formatDuplicateEdgeGroup,sc as formatHierarchyRelation,lp as formatOrderingStorageContradiction,QE as formatPmPositionalActionFlagTip,Tm as formatProfileApplyHuman,bm as formatProfileLintHuman,gm as formatProfileListHuman,ym as formatProfileShowHuman,$c as formatSchemaEvolutionMigrationHuman,vP as formatVectorIndexRecoveryWarnings,$P as formatWorkspacePositionHuman,J_ as gc,Bi as generateItemId,l_ as get,oC as getActiveCommandResult,Mw as getActiveContextIntentContracts,An as getActiveExtensionRegistrations,ox as getActiveMcpTraceContext,fI as getAssuranceDeclaration,xh as getContracts,AS as getFocusedItem,Zo as getHistoryPath,FE as getItemAt,Jo as getItemPath,md as getMutationActionContract,Ec as getPmGitignoreBlock,Yo as getSettingsPath,Af as getWorkspaceContracts,eE as getWorkspaceHistoryPath,S_ as graph,yp as graphAuditBaselinePath,Zm as groupHistoryByEpisode,xL as handleServiceOverride,hk as hasMcpClientExtension,dx as hasPmMcpAppsCapability,qe as hasSubcommandFlagContractsForCommand,_v as hasVectorizationEmbeddingIdentityChanged,hv as hasVectorizationVectorDimensionChanged,BS as hashDocument,qS as hashDocumentForVersion,zS as hashEmptyDocument,DS as hashHistoryPatch,LS as hashHistoryRecord,$S as hashHistoryStream,mR as hashItemScalarDecisionValue,Y_ as health,Yl as hierarchyAncestors,Jl as hierarchyDescendants,th as historyCompact,rh as historyCompactBulk,_S as historyDigest,CM as historyEntryMatchesProvenance,vI as historyItemHashVersionForRuntime,Z_ as historyRedact,Q_ as historyRepair,eh as historyRepairAll,Qv as indexBlockedByIds,ac as indexHierarchyRelations,gv as inferConsistentVectorDimension,Dn as inferPmOutputBudgetClass,A_ as init,zI as inspectCompleteListResult,kT as inspectExtensionManifestSchema,dl as inspectHistoryAuthorStream,CR as inspectMergeReceiptEvidence,RI as inspectProjectRuntimeCompatibility,Td as inspectStaleInProgressItems,$h as inspectStaticExtensionInventory,FR as inspectStatusRoleAssignments,tE as inspectWorkspaceHistoryState,Gm as inspectWorkspaceSnapshot,xc as installMergeFence,yk as interpretMcpResultType,Yu as isAlreadyClaimedError,tS as isCommanderError,WP as isCompatibleRecoveryFlag,ol as isErrnoError,Uv as isExternalDependencyReference,jv as isExternalDependencySourceKind,me as isFileMissingError,eT as isHostOutputSuppressed,$i as isItemAlreadyExistsError,pR as isItemScalarMissingValue,OR as isLegacyMergeReceiptSummary,h as isMcpRecord,pd as isMutationAction,jb as isOrderingRelationshipKind,GA as isPlaceholderReferenceToken,Gi as isPmCliExpectedError,hn as isPmExtensionCapabilityContract,yn as isPmExtensionPolicyModeContract,bn as isPmExtensionPolicySurfaceContract,gn as isPmExtensionServiceNameContract,KO as isPmKnownExitCode,BO as isPmMutationReceipt,Ke as isPmSuccessfulExitCode,_n as isPmToolAction,IR as isPreDurableCloneLocalReceiptSummary,RR as isPreDurableDispositionEligibleReference,II as isProjectMutatingInvocation,Pv as isPureSnakeCaseAlias,fw as isReadOutputBudgetExceeded,KP as isReadProjectionRecoveryFlag,CC as isReadRowContract,Zc as isRuntimeRecord,Nv as isTerminalPlanMode,wS as isTerminalStatus,Hn as isTimestampLiteral,c0 as itemDocumentToMutationOptions,lP as itemHasSchedule,fd as jaccardSimilarity,g_ as learnings,MT as levenshteinDistanceWithinLimit,el as limitAnnotationEntries,Dp as linkedTestTrustFingerprint,w0 as lintExtensionBlueprint,xT as lintExtensionManifestSchema,Zt as lintProjectProfile,a_ as list,gi as listAgentProvenanceAdapters,ja as listAliasPluralKeys,d_ as listAllComplete,ME as listAllDocumentCandidatesCached,Hi as listAllItemMetadata,PE as listAllItemMetadataLight,mI as listAssuranceDeclarations,bI as listAssuranceVerdicts,py as listBuiltinCorpusShapes,r0 as listCoreClosedDomainContracts,AO as listGetProjectionFields,dR as listInvalidProvenanceHistoryStreamIds,SO as listListProjectionFields,wR as listMergeReceipts,ud as listMutationActions,kP as listMutationEvents,mo as listPmCommandFlagBudgets,gc as listPmCommandsForFamily,hc as listPmCommandsForTier,Me as listPmFlagLexicon,hL as listPmFlagSpellingInventory,yc as listPmMcpToolsForProfile,iL as listPmRequiredArgumentRefusalContracts,sL as listPmSubcommandRefusalContracts,Kt as listProfiles,cL as listTrackerPreflightRecoveryContracts,Um as listWorkspaceSnapshots,Yw as loadContextIntentRuntimeLayers,cm as loadCreateTemplateOptions,qT as loadExtensions,Ep as loadGraphAuditBaseline,pA as loadMutationCheckpoint,x as loadRelationshipGraphAdapter,zi as locateItem,wA as looksLikeGenericKeyValueEntry,jC as mapReadOutputRows,SR as markMergeReceiptReconciled,JA as matchesRuntimeFilters,Dv as maybeRunFirstUseTelemetryPrompt,fy as measureCorpusShapePlan,qi as measureItemMetadataReadWork,bA as mergeAdditiveTags,b0 as mergeExtensionBlueprints,fR as mergeHistoryStreams,yR as mergeItemDocuments,bR as mergeJsonDocuments,qa as mergeLinkedTestTwoTokenEntries,_R as mergeRelationshipEventStreams,Vu as mergeSortedWarnings,xv as migrateItemFilesToFormat,LE as mutateItem,NE as mutateItemWithHistoryContext,nE as mutateWorkspaceJsonWithHistory,p_ as next,bi as normalizeAgentProvenanceAdapterValue,Qc as normalizeAnnotationTransportOptions,eI as normalizeAssuranceEvaluation,QO as normalizeAssuranceMutation,za as normalizeBootstrapInvocation,xA as normalizeBulkIdsValue,cc as normalizeDependencyGraphTarget,yO as normalizeDependencySeedId,gO as normalizeDependencySourceKind,Tn as normalizeExtensionContributionInventory,lS as normalizeHistoryOperationForWrite,aR as normalizeInvalidHistoryProvenance,aA as normalizeItemAddressInvocation,ri as normalizeItemFormatVersion,ji as normalizeItemId,si as normalizeItemMetadata,bO as normalizeItemReference,Ua as normalizeLegacyExtensionActionSyntax,Ml as normalizeLinkedPath,FA as normalizeParentReferenceValue,Vt as normalizeProfileName,Ui as normalizeRawItemId,lw as normalizeReadOutputIncludeModeOptions,XS as normalizeReplayPatchOps,_d as normalizeSimilarityText,CS as normalizeStatusForRegistry,ii as normalizeStatusInput,gS as normalizeStatusInputWithRegistry,eS as normalizeThrownExitCode,h_ as notes,Vn as nowIso,bp as openDurableGraphCache,Ek as openMcpRequestState,Mx as openPmEpisode,Zl as orderingPredecessors,Ql as orderingSuccessors,FM as packContextCandidates,Uu as packRankedContextItems,Mh as packageActivate,Rh as packageCatalog,Ph as packageDeactivate,Oh as packageDescribe,Ah as packageDoctor,Sh as packageInstall,Ch as packageLifecycle,wh as packageList,vh as packageManage,_b as packageMigrate,Ih as packageReload,Eh as packageUninstall,kC as paginateQueryRows,El as parseAddEntries,Al as parseAddGlobEntries,rl as parseAnnotationTextInput,s0 as parseAtomicMutationControls,Fa as parseBootstrapCommandName,La as parseBootstrapGlobalOptions,$a as parseBootstrapHelpRequest,Va as parseBootstrapTypeValue,kA as parseBulkIdsText,Du as parseContextDepth,ku as parseContextFocusFields,Kw as parseContextIntentDeclarations,$u as parseContextSections,BM as parseContextSignalSnapshot,CA as parseCsvKv,Xv as parseDefectChangeRiskRequest,HR as parseDefectRecurrenceCoverageRequest,Wv as parseDefectRecurrencePolicy,Am as parseEvalMetricFloors,Mm as parseEvalQuerySet,Op as parseGraphSubcommand,iM as parseHistoryAttestation,bM as parseHistoryProvenanceFilters,iO as parseIntegerLimit,SS as parseItemDocument,a0 as parseItemMutationBatch,WA as parseLimit,uu as parseLinkedTestAssertionEqualsMap,mu as parseLinkedTestAssertionGteMap,su as parseLinkedTestBoolean,au as parseLinkedTestContextMode,iu as parseLinkedTestEnvClear,nu as parseLinkedTestEnvSet,fu as parseLinkedTestJsonEntries,pu as parseLinkedTestMinLines,lu as parseLinkedTestRegexList,cu as parseLinkedTestStringList,du as parseLinkedTestWorkspaceContextMode,Vh as parseMcpCachePolicy,Fh as parseMcpImplementation,tt as parseMcpInputRequests,ar as parseMcpInputResponses,_g as parseMcpSubscriptionFilter,Ol as parseMigrateEntries,dO as parseMultiValueFilter,qO as parseMutationReceipt,PA as parseOptionalNonNegativeInteger,MA as parseOptionalNumber,MN as parsePmAgentTaskTranscriptCorpus,WD as parsePmToolDiscoveryOptions,sO as parsePriority,pO as parsePriorityFilterSet,ZC as parseReadOutputSession,bE as parseRegisteredItemFieldAssignments,se as parseRelationshipGraphSnapshot,vl as parseRemoveEntries,Vl as parseSourceLineRange,zA as parseStatusFilterCsv,cO as parseStringFilterSet,sd as parseTags,af as parseTestRunMeasurements,aO as parseType,lO as parseTypeFilterSet,ul as parseUnknownAuthorHistoryEventCoordinates,CT as parseWorkflowPolicy,wT as parseWorkflowPolicyDocument,nP as partitionDecisionEntries,LA as patchPathToChangedField,$o as pathExists,_h as pauseTask,Tp as persistDurableGraphResult,cE as persistSelectedItemFormat,YI as planAgentIdentityVocabularyMutation,WM as planCompletedAtBackfill,qc as planExtensionDirectoryCopy,Qt as planProfileApplication,NN as planRelationshipEventBackfill,vp as planRelationshipRemediation,Lc as planSchemaEvolutionMigration,ll as planUnknownAuthorHistoryAcknowledgment,jm as planWorkspaceSnapshotRestore,rA as positionalShapeKey,oA as positionalSignatureKey,v0 as preflightExtension,gd as prepareSimilarityText,AA as preserveMutationStdinTokenFields,EA as preserveMutationStdinTokenLiterals,p0 as previewItemMutations,Vw as printError,zw as printResult,z_ as profile,K_ as profileApply,W_ as profileLint,V_ as profileList,H_ as profileShow,iC as projectAfterCommandItemSnapshot,xu as projectContextFocusRows,nf as projectFleetAttributionAnalytics,TM as projectHistoryProvenance,qn as projectPmDiagnosticOutput,zn as projectPmDiagnosticText,rf as projectProvenanceCoverageAnalytics,Up as projectValidateCounts,iR as promoteAssuranceAssertion,Cw as propagateContextUsageServingReceipt,Qx as pruneCompileCacheGenerations,_I as putAssuranceDeclaration,hI as putAssuranceDeclarationBundle,SE as queryItemMetadataIndex,EE as queryLinkedFileMetadataIndex,AE as querySimilarItemMetadataIndex,df as queryTestRunMeasurementsBelow,Rn as quoteCommandArg,In as quoteWindowsCommandArg,e0 as rankCommandPaths,tl as readAnnotationEntries,Ei as readAuthorEnvironment,Of as readBooleanOption,Iw as readContextUsageAffinity,If as readCsvListOption,Xi as readExtensionMigrationState,Fo as readFileIfExists,Za as readFirstStringFromCommanderOptions,Qa as readFirstValueFromCommanderOptions,Qm as readHistoryAnalyticsWindow,MS as readHistoryEntries,Ii as readHistorySnapshot,Hm as readImprovementLedger,IE as readItemMetadataDerivedIndexState,Vi as readLocatedItem,GC as readOutputBudgetCollections,KC as readOutputCollectionFingerprint,FC as readOutputContinuationRowCollections,DC as readOutputContinuationRowPaths,dw as readOutputIncludeModeOptions,$C as readOutputRowCollections,LC as readOutputRowPaths,tw as readOutputSessionRemainingTokens,Ft as readPmPackageManifest,Sf as readRequiredString,Li as readSettings,lE as readSettingsWithMetadata,ed as readStringArrayFromCommanderOptions,vf as readStringOption,Qw as readThrownExitCode,yv as readVectorizationStatusLedger,gE as readWorkflowPolicies,ST as readWorkflowPolicyField,Ww as readWorkspaceContextIntentContracts,HM as readWorkspaceContextSignals,JM as readWorkspaceMemory,DP as readWorkspacePosition,ZS as reanchorHistoryEntries,cD as reconcileArtifactLedgers,En as reconcileExtensionCapabilityUsage,sE as reconcileWorkspaceJsonHistory,nC as recordAfterCommandAffectedItem,yI as recordAssuranceVerdict,yu as recordClaimSemanticAttribution,Aw as recordContextUsageDelivery,Ew as recordContextUsageServing,vw as recordContextUsageTouch,Ow as recordContextUsageTouches,Tu as recordFocusSemanticAttribution,Vm as recordImprovementObservation,bu as recordReleaseSemanticAttribution,RE as refreshItemMetadataDerivedIndex,Pc as refreshMergeAttributeFenceIfInstalled,zC as refreshReadOutputDeliveredCounts,Tv as refreshSearchArtifactsForMutation,yi as registerAgentProvenanceAdapters,_O as registerExternalDependencyResolver,hi as registerHarnessSignalDescriptors,fC as registerOutputMaterialFieldGroups,ch as release,qC as rememberReadOutputFocusRows,gI as removeAssuranceDeclaration,Go as removeFileIfExists,Fl as renameArtifactsResultKey,Iu as renderCalendarMarkdown,Ru as renderCalendarToon,Hu as renderContextMarkdown,jc as renderExtensionDescribeMarkdown,Gc as renderExtensionSurfaceMarkdown,Jf as renderGuideMarkdown,JP as renderMissingOptionRetry,iP as renderNextMarkdown,o0 as renderPmClosedDomainHelp,Mn as renderPmCommand,Do as renderPmCommandAliasMigrationHint,Cc as renderPmCommandVisibilityMarkdown,yL as renderPmFlagLexiconMarkdown,px as renderPmMcpAppHtml,KN as renderPmRefusalClosureCensusMarkdown,HA as renderRowsAsCsv,KA as renderRowsAsTable,ih as reopen,_E as replayHistoryToTarget,KS as replayToCanonicalItemDocument,HS as replayToItemDocument,cS as requireHistoryOperation,pM as requireTerminalReason,uM as requireTerminalReasonWithRecovery,US as resealHistoryRewrite,eC as resetActiveExtensionRuntimeState,Cl as resetWorkspaceGraphCache,pi as resolveAgentSessionContextFromSignals,al as resolveAnnotationIndex,nl as resolveAnnotationInput,RS as resolveAuthor,Oi as resolveAuthorIdentity,$A as resolveBodyFileContent,uy as resolveBuiltinCorpusShape,Ou as resolveCalendarOutputFormat,$O as resolveCanonicalPmErrorCodeContract,Ub as resolveCanonicalRelationshipKind,IS as resolveClaimPrincipal,NA as resolveCliBulkIdsInput,mT as resolveCommandOptionPolicyState,Zx as resolveCompileCacheGeneration,KM as resolveCompletionTimestamp,oT as resolveConfiguredPmPackageRoot,OO as resolveContentFieldFilters,xw as resolveContextIntentContract,Nu as resolveContextOutputFormat,Lu as resolveContextTokenBudget,fM as resolveCreateExplicitEmptyFlag,_P as resolveEffectiveSearchMode,nv as resolveEmbeddingProviders,zc as resolveExtensionInstallSourceIdentity,Wi as resolveExtensionMigrationStatePath,jT as resolveExtensionRoots,hO as resolveExternalDependencyReference,$T as resolveFlagValueKind,hT as resolveGlobalPmRoot,Xf as resolveGuideOutputFormat,Km as resolveHistoryEpisodeGroupIdentity,fS as resolveHistoryHashAlgorithm,dS as resolveHistoryOperation,yM as resolveHistoryProvenanceDimensions,DE as resolveHistorySubject,mE as resolveHistoryTarget,gP as resolveHybridSemanticWeight,Wo as resolveImplicitPmRoot,gw as resolveIsoOrRelative,tO as resolveItemBlockers,Yv as resolveItemExecutionRole,d0 as resolveItemMutationDocument,Ko as resolveItemTypeRegistry,hS as resolveItemTypesFilePath,bf as resolveLinkedTestFailureExitCode,kp as resolveLinkedTestSourceRef,xp as resolveLinkedTestSourceWorkspaceRoot,$p as resolveLinkedTestTrust,Fp as resolveLinkedTestTrustBatch,hg as resolveMcpAcknowledgedSubscriptionFilter,Je as resolveMcpRequestContext,vc as resolveMergeInstallContext,ZP as resolveMisnestedCommandPath,vO as resolveMissingMetadataFilters,YP as resolveMissingOptionPlaceholder,TC as resolveModePairedOutputOmissionReceipt,rP as resolveNextOutputFormat,SC as resolveOutputOmissionReceipt,rT as resolvePmCliVersion,Lo as resolvePmCommandAlias,Ve as resolvePmCommandCapabilityFamily,Nt as resolvePmCommandExitContract,L as resolvePmCommandOperation,Un as resolvePmCommandOutputBudget,xt as resolvePmCommandOutputEnvelope,JE as resolvePmCommandPositionalContract,He as resolvePmCommandVisibilityTier,Bn as resolvePmDiagnosticOutputBudget,FO as resolvePmErrorCodeContract,lb as resolvePmFlagSemanticConcept,Ne as resolvePmHistoryOperation,tT as resolvePmPackageRootFromModule,ZE as resolvePmPositionalActionContract,xa as resolvePmPositionalActionFlagContracts,$e as resolvePmRoot,jd as resolvePmToolCustomFieldCollision,BA as resolvePriority,Ht as resolveProfile,Rc as resolveProjectMergeTypeFolders,PC as resolveQueryCursorStart,pw as resolveReadOutputDimensions,_w as resolveReadOutputEncoding,VC as resolveReadOutputRecoveryBudget,sw as resolveReadOutputSurface,wC as resolveReadRowContract,XP as resolveRecoveryCommandName,_A as resolveRegisteredSearchProvider,hA as resolveRegisteredVectorStoreAdapter,od as resolveReproducibleProcessEnvironment,Zn as resolveRuntimeFieldRegistry,Jn as resolveRuntimeStatusRegistry,iv as resolveSearchCorpusFields,fP as resolveSearchMaxResults,TP as resolveSearchPage,hP as resolveSearchScoreThreshold,yP as resolveSearchTuning,av as resolveSemanticCorpusCharacterLimit,gu as resolveSemanticLineageIds,tv as resolveSettingsWithSemanticRuntimeDefaults,SI as resolveSourceContextWritePolicy,Eu as resolveStartTaskInProgressStatus,ee as resolveSubcommandFlagContractsForCommand,Jb as resolveTelemetryErrorCategory,lM as resolveTerminalReason,uT as resolveTypeDefinition,pT as resolveTypeName,VA as resolveTypeSynonym,ZA as resolveTypeWorkflows,pl as resolveUnknownAuthorAcknowledgmentSelector,AP as resolveVectorIndexRecovery,cv as resolveVectorStores,oc as resolveWorkspaceRelationshipKindRegistry,_T as resolveWorkspaceRoot,uh as restore,uA as restoreCheckpointItems,aE as restoreWorkspaceJsonFromHistory,qm as restoreWorkspaceSnapshot,Bm as restoreWorkspaceSnapshotWithRecovery,Lh as runAction,dC as runActiveBeforeMutationHooks,lC as runActiveCommandHandler,cC as runActiveOnIndexHooks,On as runActiveOnReadHooks,vn as runActiveOnWriteHooks,pC as runActiveParserOverride,uC as runActivePreflightOverride,mC as runActiveServiceOverride,Pu as runActivity,UT as runAfterCommandHooks,Cm as runAggregate,sl as runAnnotationCommand,Hp as runAppend,YR as runAssuranceAction,JR as runAssuranceDispatch,GT as runBeforeCommandHooks,Mu as runCalendar,Ju as runClaim,Zu as runClaimNext,Wp as runClose,Yp as runCloseMany,rm as runCloseTask,_l as runComments,Zf as runCompletion,hl as runConfig,Bt as runContext,DM as runContextEvaluationCorpus,NM as runContextEvaluationScenario,Jp as runCopy,_u as runCreate,hu as runDelete,wl as runDeps,Gl as runDocs,QI as runDuplicates,km as runEval,Nm as runEvent,Vc as runExtension,Zi as runExtensionMigrateAction,Ji as runExtensionMigrations,Kl as runFiles,Xl as runFilesDiscover,Wl as runFilesLookup,of as runFleetAttributionAnalytics,Su as runFocus,qp as runGc,wm as runGet,Ip as runGraph,Yf as runGuide,Rp as runHealth,mP as runHistory,dM as runHistoryAttest,QR as runHistoryCompact,rM as runHistoryCompactBulk,xR as runHistoryMaintenance,oM as runHistoryRedact,LR as runHistoryRepair,$R as runHistoryRepairAll,Jc as runInit,Wc as runInitAgentGuidance,Vp as runLearnings,$l as runLinkedArtifacts,Tf as runLinkedTests,fc as runList,xm as runMeet,RP as runMergeDriver,kc as runMergeInstall,AR as runMergeReceiptEvidenceReport,ER as runMergeReceiptReport,MP as runMergeReconcile,Xu as runNext,am as runNotes,tm as runPauseTask,im as runPlan,hm as runProfileApply,_m as runProfileLint,mm as runProfileList,fm as runProfileShow,tf as runProvenanceCoverageAnalytics,R0 as runRegisteredCommandForTest,N0 as runRegisteredCommandOverrideForTest,j0 as runRegisteredExporterForTest,P0 as runRegisteredHookForTest,U0 as runRegisteredImporterForTest,G0 as runRegisteredMigrationForTest,M0 as runRegisteredMutationGuardForTest,k0 as runRegisteredParserOverrideForTest,x0 as runRegisteredPreflightOverrideForTest,L0 as runRegisteredRendererOverrideForTest,$0 as runRegisteredSearchProviderForTest,D0 as runRegisteredServiceOverrideForTest,F0 as runRegisteredVectorStoreAdapterForTest,er as runReindex,Qu as runRelease,Lm as runRemind,hM as runReopen,Xp as runRestore,Dc as runSchemaEvolutionMigration,Sm as runSearch,_y as runSearchRefreshWorkerEntrypoint,Qf as runStartBackgroundRun,em as runStartTask,lf as runStats,uf as runTelemetry,pm as runTemplatesList,lm as runTemplatesSave,um as runTemplatesShow,Cf as runTest,wf as runTestAll,e_ as runTestRunsList,r_ as runTestRunsLogs,n_ as runTestRunsResume,t_ as runTestRunsStatus,o_ as runTestRunsStop,i_ as runTestRunsWorker,Au as runUpdate,sm as runUpdateMany,Ut as runUpgrade,Bp as runValidate,Nh as runWithActiveExtensions,D as runWithAgentSessionContext,dE as runWithConfigurationOnlySettings,Pw as runWithContextIntentContracts,Jw as runWithDiscoveredContextIntentContracts,Ti as runWithHarnessDetectionSignals,rx as runWithMcpTraceContext,id as runWithReproducibleProcessEnvironment,Ci as runWithWorkspaceHarnessSignalDescriptors,qr as runWithWorkspaceRecipe,UI as runWorkflowPolicyAction,ZR as runWorkspaceTransactionGc,Ap as saveGraphAuditBaseline,jR as scanClosureTimestamps,sR as scanExtensionHostVersions,cl as scanHistoryAuthorAttribution,ni as scanItemFormatVersions,cd as scanMutationSecrets,cR as scanProvenanceResolverHealth,Cd as scanStaleInProgressItems,zR as scanStorageIntegrity,O_ as schema,N_ as schemaAddField,k_ as schemaAddStatus,M_ as schemaAddType,F_ as schemaApplyPreset,G_ as schemaInferTypes,I_ as schemaList,D_ as schemaListFields,B_ as schemaRemapStatus,L_ as schemaRemoveField,x_ as schemaRemoveStatus,P_ as schemaRemoveType,j_ as schemaRenameField,U_ as schemaRenameType,R_ as schemaShow,$_ as schemaShowField,q_ as schemaShowStatus,QP as scoreCommandPathMatch,MM as scoreContextCandidates,PM as scoreContextCandidatesWithActiveExtensions,yd as scoreItemSimilarity,aL as scorePmGrammarRefusalClosure,YN as scorePmRefusalClosure,bd as scorePreparedItemSimilarity,lL as scoreTrackerPreflightRecoveryClosure,FS as sealHistoryRecord,Sk as sealMcpRequestState,c_ as search,eP as searchWorkspaceMemory,tP as searchWorkspaceMemoryReadResult,oO as selectActionableEntries,AC as selectCursorSemanticOptions,Vf as selectImportAuthor,Jk as selectMcpClientRegistrationMode,QM as selectWorkspaceMemory,ZM as selectWorkspaceMemoryRollups,wu as semanticAttributionAffinity,vv as sentryCaptureCliError,Av as sentryFinishCommandSpan,Iv as sentryFlush,Ov as sentryLogCliUsageError,Sv as sentrySetCommandContext,Ev as sentryStartCommandSpan,di as serializeItemDocument,n0 as serializeNdjsonRows,i0 as serializeNdjsonStream,ny as serveDeclaredObservation,tC as setActiveCommandContext,rC as setActiveCommandResult,WT as setActiveExtensionCommands,KT as setActiveExtensionHooks,XT as setActiveExtensionParsers,YT as setActiveExtensionPreflight,QT as setActiveExtensionRegistrations,ZT as setActiveExtensionRenderers,JT as setActiveExtensionServices,vS as setFocusedItem,Lv as shouldCompletePlanOnClose,Sp as shouldPersistDurableGraphCache,IA as shouldResolveMutationStdinTokenField,OA as shouldResolveMutationStdinTokens,ov as shouldRunSearchRefreshInForeground,Ul as similarityAdvisoryWarnings,NC as sliceReadOutputRowCollection,Nl as sortLinkedArtifacts,gA as splitAcceptanceCriteria,kv as splitCommaList,ai as splitFrontMatter,uw as stabilizeReadOutputReceiptEstimates,R as stableStringify,gT as stableValueEquals,fh as startTask,$v as startTelemetryCommand,m_ as stats,yS as statusIsTerminal,Da as stripGlobalBootstrapTokens,xP as subscribeMutationEventBatches,NP as subscribeMutationEvents,XI as summarizeAgentIdentityVocabulary,Xm as summarizeAgentModelProvenance,Ym as summarizeAgentProvenance,LM as summarizeContextEvaluationReports,_f as summarizeContextPreflight,SM as summarizeHistoryProvenance,Xc as summarizeInitResult,TR as summarizeMergeReceipt,_M as supportsCreateExplicitEmpty,sA as supportsItemIdAlias,Qb as suppressHostOutput,Oe as syncRelationshipGraphAdapter,S0 as synthesizeExtensionManifest,Na as toCompletionFlagString,zu as toContextFocusItem,ju as toContextPackingSummary,Bu as toContextRankingSummary,iT as toErrorMessage,Mf as toEstimatedMinutesValue,zP as toExtensionFlagDefinitions,Lf as toImportBoolean,Gf as toImportConfidence,Nf as toImportInteger,qf as toImportLinkedDocs,Bf as toImportLinkedFiles,zf as toImportLinkedTests,jf as toImportLogEntries,Uf as toImportNormalizedEnum,Ff as toImportNumberMap,Pf as toImportPriority,xf as toImportStatus,Df as toImportStringList,$f as toImportStringMap,kf as toImportTags,ES as toItemRecord,Rf as toNonEmptyImportString,nT as toNonEmptyStringOrUndefined,WS as toReplayDocument,hd as tokenizeSimilarityText,vA as transferMutationStdinTokenPolicy,LT as translateHostEnvironmentFault,nh as update,mf as updateLinkedTest,kh as upgrade,X_ as validate,sI as validateAssertionDefinition,dI as validateAssuranceDocument,aI as validateGateDefinition,l0 as validateItemMutationRows,Dl as validateLinkedPaths,Zk as validateMcpAuthorizationResponseIssuer,Yk as validateMcpAuthorizationServerMetadata,Qk as validateMcpClientMetadataDocument,Bk as validateMcpHttpRequestHeaders,Ok as validateMcpJsonSchema,iI as validateMeasurementDefinition,UA as validateMissingParentReference,aw as validateReadOutputOptions,qA as validateSprintOrReleaseValue,fT as validateTypeOptions,HE as validateWorkspaceTransactionIdentity,aM as verifyAttestation,NO as verifyCliFlagInvocationParity,tA as verifyExplicitPositionalSlotCensus,JS as verifyHistoryChain,YS as verifyHistoryChainWithVersion,$E as verifyHistoryEntries,GS as verifyHistoryRecordHash,jS as verifyHistoryRewriteEvidence,iA as verifyPmCliGrammar,nA as verifyPmCommandPositionalContracts,gL as verifyPmFlagLexicon,jN as verifyPmRecoveryKindRuntimeCoverage,eb as verifyPmRecoveryProducerRuntimeCoverage,UN as verifyPmRecoveryReferences,VN as verifyPmRefusalClosureIdentityRatchet,zN as verifyPmRefusalClosureRatchet,GN as verifyPmRefusalReachability,wd as verifyToolOptionCliParity,Qi as withFlagAliasMetadata,DT as withHostEnvironmentBoundary,vk as withMcpCachePolicy,AT as workflowApprovalFingerprint,vT as workflowPolicyApplies,ET as workflowPolicyFingerprint,Tl as workspaceGraphCache,il as wrapOwnershipConflict,rS as wrapThrownErrorForSentry,Ai as writeAuthorEnvironment,De as writeFileAtomic,lA as writeMutationCheckpoint,pE as writeSettings,qw as writeStderr,Bw as writeStdout,bv as writeVectorizationStatusLedger,iE as writeWorkspaceJsonWithHistory};
|
|
32
32
|
//# sourceMappingURL=sdk.js.map
|