dsh-completion-guard 0.10.0 → 0.12.0
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/CHANGELOG.md +46 -1
- package/CHANGELOG.zh-CN.md +46 -1
- package/README.md +7 -3
- package/README.zh-CN.md +7 -3
- package/bin/dsh-completion-guard-activation.mjs +79 -11
- package/bin/dsh-completion-guard-host-lock.mjs +29 -8
- package/dist/domain/index.d.ts +2 -2
- package/dist/domain/index.js +2 -2
- package/dist/{domain-Dqw5NrT-.js → domain-DUS0V_Yv.js} +6172 -1266
- package/dist/{index-rCqdIg5B.d.ts → index-B1AGTJF6.d.ts} +78 -16
- package/dist/index.d.ts +10 -2
- package/dist/index.js +400 -66
- package/docs/ACTIVATION_MIGRATION.md +26 -10
- package/docs/COMPATIBILITY.md +42 -2
- package/docs/DEPENDENCY_SCAN.md +143 -0
- package/docs/GETTING_STARTED.md +9 -9
- package/docs/HISTORICAL_INCIDENT_COVERAGE.md +7 -0
- package/docs/HOST_LOCK_UPGRADE.md +21 -11
- package/docs/LOCAL_ACCEPTANCE.md +8 -0
- package/docs/PRIVACY.md +15 -1
- package/docs/README.md +1 -1
- package/docs/THIRD_PARTY_LICENSES.md +29 -1
- package/docs/UI_PERFORMANCE.md +75 -0
- package/manifests/desktop-distribution.v1.json +79 -1
- package/manifests/rc021-rc3-byte-audit.json +989 -0
- package/manifests/rc021-rc5-byte-audit.json +989 -0
- package/manifests/supported-host.v1.json +521 -13
- package/package.json +42 -38
package/dist/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { $ as evidenceFromPersistedToolResult, $a as createActivationMigrationReceipt, $i as registryArchiveFiles, $n as evidenceAvailabilityReason, $r as presentExplanationHead, $t as renderRecoveryPacket, A as previewFirstStepInjection, Aa as BOUNDED_ARTIFACT_TYPES, Ai as resolveActiveProfileHostLock, An as certifiableOpenItems, Ao as digestStrings, Ar as clauseIsProtected, At as proofHostSurfacesOf, B as projectCoreV2, Ba as isStatefulAction, Bi as memoizedAsarFile, Bn as createProjection, Br as isExplanationScope, Bt as CLEANUP_CONDITION_RULE_COMPACT, C as revalidateGitPrestate, Ca as SUPPORTED_HOST_VERSIONS, Ci as inspectTargetHostGraph, Cn as observeAssistantOutcome, Co as normalizeReleaseContract, Cr as classifyUserInteraction, Ct as canonicalProjection, D as firstStepGuidance, Da as satisfiesSupportedHostRange, Di as prepareDesktopHostTrust, Dn as goalCompletionDenial, Do as releasePreEffectDecision, Dr as clarifiedSpanOf, Dt as proofDigest, E as claimedBatchHasRealRootInput, Ea as parseHostVersion, Ei as prepareActiveHostTrust, En as v6TestPredicate, Eo as releaseCoverage, Er as actionVerbMatches, Et as proofCapabilityReport, F as sourcedNamedTestRoot, Fa as STOP_PROTOCOL_VERSION, Fi as DESKTOP_IDENTITY_FACTS, Fn as availableBoundaryQualifications, Fo as privateStorageToolDenial, Fr as hasWorkPredicate, Ft as sessionQuery, G as PROTOCOL_V5_NOTICE, Ga as semanticActionFromText, Gi as readDesktopDependency, Gn as rebindAttemptKey, Gr as itemHoldsExecutionAuthority, Gt as V6_ORDINARY_COMPLETION_RULE_COMPACT, H as DEFAULT_DELEGATION_TOOL_NAMES, Ha as requestedTargetAuthorizesMutation, Hi as readAsarFile, Hn as proposeRebind, Hr as isOpenObligation, Ht as DEFAULT_RECOVERY_CHAR_BUDGET, I as SESSION_API_UNSUPPORTED, Ia as STOP_PROTOCOL_VERSION_V2, Ii as DESKTOP_PROFILE_PACKAGE_NAME, In as effectuateBoundary, Io as ownedJobLifecycle, Ir as interpretClause, It as sessionQueryV2, J as deriveProjection, Ja as RC021_RC2_HOST_PACKAGES, Ji as HostTrustError, Jn as CONFIRM_LINE_PATTERN, Jr as maskCodeSpans, Jt as cleanupConditionFor, K as PROTOCOL_V6_NOTICE, Ka as validateActionManifest, Ki as readDesktopTargetGraph, Kn as rebindResponse, Kr as kindOfScope, Kt as V6_ORDINARY_COMPLETION_RULE_SHORT, L as SESSION_EVENT_ENVELOPE_INVALID, La as SUPPORTED_EVIDENCE_ADAPTERS, Li as DESKTOP_RUNTIME_PACKAGE_NAME, Ln as isCurrentAcceptedBoundary, Lr as interpretMessage, Lt as validateProofManifest, M as sessionCoreSnapshot, Ma as CERTIFICATE_VERSION_V2, Mi as resolveInstalledHostLock, Mn as needsReviewObligations, Mo as sanitizeClauseText, Mr as governedClauseRestrictsExecution, Mt as proofV2Rejection, N as HOST_WORKDIR_PREFIX, Na as SEMANTIC_ACTIONS, Ni as revalidateDesktopCoreLock, Nn as unitDescendantIds, No as sanitizeUrl, Nr as hasOrderedCoordination, Nt as requiredSubjectsOf, O as firstStepGuidanceV6, Oa as ACTION_MANIFEST, Oi as prepareTargetHostTrust, On as hasCurrentCertificate, Oo as reservationFor, Or as clauseAsksOwnQuestion, Ot as proofDigestV2, P as captureHostWorkdir, Pa as STATEFUL_ACTIONS, Pi as verifyComposedHostLockDump, Pn as BOUNDARY_RECORD_PREFIX, Po as sha256, Pr as hasQuestionScope, Pt as scopeCoverageDigest, Q as NATIVE_GIT_ROOT_PARENT_OID, Qa as adoptActivationReceipt, Qi as qualifyHostTrust, Qn as deriveItemDiagnosis, Qr as opensWithDirective, Qt as recoveryTitle, R as SessionApiError, Ra as actionCompatible, Ri as auditDesktopInstalledImplementation, Rn as qualifyBoundary, Rr as introducesActionClause, Rt as validateProofManifestV2, S as parseGitCommandManifest, Sa as SUPPORTED_HOST_RANGE, Si as inspectDesktopTargetGraph, Sn as latestRootInstruction, So as inFlightReservation, Sr as classifyTaskIntent, St as bindProofV2ToProjection, T as FIRST_STEP_GUIDANCE, Ta as evaluateMinimumHostVersion, Ti as packageRowsFromPnpmLock, Tn as testOutcomePredicate, To as releaseContractFor, Tr as LEGACY_QUALIFICATION, Tt as createProofManifestV2, U as PROTOCOL_V3_NOTICE, Ua as requestedTargetMatchesResolved, Ui as readAsarIndex, Un as proposeRebindOutcome, Ur as isQuestionScopeNeedingReview, Ut as MIN_RECOVERY_CHAR_BUDGET, V as CAPTURE_V042_NOTICE, Va as requestedIdentityKey, Vi as memoizedAsarIndex, Vn as confirmRebind, Vr as isInformationalFragment, Vt as CLEANUP_CONDITION_RULE_SHORT, W as PROTOCOL_V4_NOTICE, Wa as semanticActionFromCommand, Wi as readDesktopAppRuntime, Wn as proposeRebindV042, Wr as isRestatement, Wt as V6_ORDINARY_COMPLETION_RULE, X as rootLocatorFlavor, Xa as __activationBindingInternals, Xi as hostTrustDigest, Xn as parseConfirmationMessage, Xr as namedActions, Xt as openItems, Y as legacyRecordsNeedingReview, Ya as createHostAuditSession, Yi as acquireHostTrust, Yn as isFrozenV042RebindResponse, Yr as maskQuotedSpans, Yt as closingHint, Z as supersedeItem, Za as activationBindingPath, Zi as parseHostTrust, Zn as capabilityRemedyPhrase, Zr as opensConditionLead, Zt as recoveryDigest, _ as commitIndexSnapshotDigest, _a as hostVersionFromPackages, _i as evaluateActiveHostLock, _n as decideTurnStopping, _o as readPrivateLedger, _r as extractOperation, _t as PROOF_KINDS_V2, a as scanActivationInventory, aa as DEFAULT_HOST_LOCK, ai as splitTextFragments, an as bindingSatisfies, ao as writeActivationBinding, ar as admissibleForRemoval, at as shellReadbackOutcome, b as executeRevalidatedGitEffect, ba as LATEST_TESTED_HOST_VERSION, bi as hostLockRowsFromComposedDump, bn as isWholeTaskCompletionClaim, bo as RELEASE_OPERATION_SURFACES, br as canonicalRegistryBase, bt as PROOF_PROTOCOL_VERSION_V2, c as validateActivationSelection, ca as HOST_CAPABILITY_PACKAGE_GROUPS, ci as COMMAND_SURFACE_MANIFEST, cn as isVerifyingCapability, co as activationJson, cr as partialFailureOf, ct as isRunExecutable, d as prepareActivationMigration, da as bindLiveGoalCapability, di as activeRendererModule, dn as NO_PROGRESS_TURNS_BEFORE_STOP, do as appendPrivateLedger, dr as captureClause, dt as authorityCaptureCounts, ea as registryArchiveModules, ei as qualificationOfClause, en as v6CurrentRootBoundaries, eo as readActivationBinding, er as itemDiagnosis, et as extractTextContent, f as verifyMigrationInventory, fa as evaluateExternalWaitCapability, fi as auditedDefaultWorkdirHost, fn as assessmentAction, fo as applyPrivateLedger, fr as captureItem, ft as segmentAuthorityBlocks, g as GIT_COMMAND_TEMPLATES, ga as evaluateToolSurfaceCapability, gi as combineHostPolicy, gn as decideTurnBoundary, go as privateLedgerTargetDigest, gr as extractMethod, gt as PROOF_KINDS, h as GIT_COMMAND_MANIFEST_IDS, ha as evaluateHostLock, hi as auditedHostImplementation, hn as currentActionBases, ho as privateLedgerContractDigest, hr as extractArtifactPaths, ht as PROOF_CAPABILITY_MATRIX, i as prepareSelectedActivationMigration, ia as BASE_HOST_PACKAGES, ii as semanticActionOfScope, in as sourceItemForCoreRequirement, io as validateActivationMigrationReceipt, ir as actionHasCertificationPath, it as persistedToolResultStatus, j as projectSessionCoreV2, ja as CERTIFICATE_VERSION, ji as resolveDesktopProfileHostLock, jn as certificateClosure, jo as normalizeClause, jr as explanationHasActionResidue, jt as proofOperationMatches, k as lifecyclePhase, ka as ACTION_MANIFEST_VERSION, ki as readActiveHostGraph, kn as ancestorConstraintForBinding, ko as canonicalizePath, kr as clauseIsGoverned, kt as proofEvidenceConstraints, l as verifySelectedMigrationInventory, la as HOST_COHORTS, li as validateManifest, ln as CONTROL_RECORD_PREFIX, lo as sessionBirthIdentity, lr as removalIsComplete, lt as parsePwshCommand, m as RC020_RC1_HOST_PACKAGES, ma as evaluateHostCapability, mi as auditedForegroundRenderers, mn as classifyCompletionClaim, mo as initializePrivateLedger, mr as environmentDefaultRepositoryTarget, mt as certifyCheckpoint, n as createActivationSelection, na as ACTIVE_HOST_COHORT_IDS, ni as reportingHeadGoverns, nn as currentV6Feedback, no as resolveActivationBindingsRoot, nr as relevantEvidence, nt as isDeterministicCheck, o as selectedActivationInventory, oa as EXPECTED_HOST_PACKAGES, oi as statefulActionsOfScope, on as evidenceCoverage, oo as activationCanonical, or as capabilityConsequence, ot as withDurability, p as RC020_RC2_HOST_PACKAGES, pa as evaluateGraphDerivedHostLock, pi as auditedDefaultWorkdirProvider, pn as assessmentOutcomePredicate, po as hasPrivateRestartIntent, pr as classifyClause, pt as bindingIndividuallyAccepted, q as applyUpgradeEligibility, qa as validateActionTarget, qi as writeDesktopRuntimeReceipt, qn as replayRebindResult, qr as legacyQuestionReadingIsInformational, qt as carriesCleanupCondition, r as isSelectedActivationReceipt, ra as ACTIVE_HOST_LAUNCHER_VERSION, ri as restatedContentOf, rn as isV6PendingRootWait, ro as resolveSessionActivation, rr as DEPENDENCY_FREE_ONLY_CONDITION, rt as nativeGitParentOidVerified, s as validateActivationInventorySnapshot, sa as GOAL_HOST_PACKAGES, si as verbIsNegated, sn as evidenceMatchesItem, so as activationDigest, sr as capabilityFactOf, st as canonicalArgvFromCommand, t as activationSelectionPending, ta as ACTIVE_HOST_COHORT_ID, ti as questionHeadsClause, tn as confirmedV6CoreDiagnostic, to as readActivationMigrationReceipt, tr as nativeFileTwoRole, tt as extractToolSubject, u as inspectActivationInventory, ua as bindExecutableIdentity, ui as HostProfileError, un as NO_PROGRESS_RECORD_PREFIX, uo as validateActivationBinding, ur as removalIsPartiallyKnown, ut as parseShellCommand, v as commitTreeSnapshotDigest, va as selectHostCohort, vi as evaluateConfiguredHostLock, vn as decisionBoundaryKey, vo as resolvePrivateLedgerRoot, vr as isInformationalMessage, vt as PROOF_MANIFEST_DOMAIN_V2, w as verifiedLinearCommitReadback, wa as compareHostVersions, wi as packageRowsFromActiveGraph, wn as progressFingerprint, wo as readbackSettlesContract, wr as GRANTED_QUALIFICATION, wt as createProofManifest, x as gitCommandMatchesTarget, xa as MIN_SUPPORTED_HOST_VERSION, xi as injectActiveProfileHostLock, xn as latestAssistantText, xo as contractById, xr as npmEscapedPackageName, xt as bindProofToProjection, y as createGitPrestateEnvelope, ya as HOST_VALIDATED_VERSIONS, yi as hostLockContextFromComposedDump, yn as isRootPauseRequest, yo as RELEASE_OPERATIONS, yr as segmentClauses, yt as PROOF_PROTOCOL_VERSION, z as snapshotSessionEvents, za as boundedArtifactChoiceMatches, zi as hasDesktopImporterState, zn as currentContractDigest, zr as isExecutableItem, zt as CLEANUP_CONDITION_RULE } from "./domain-Dqw5NrT-.js";
|
|
1
|
+
import { $ as PROTOCOL_V6_NOTICE, $a as semanticActionFromCommand, $i as readDesktopAppRuntime, $n as proposeRebindV042, $r as isRestatement, $t as V6_ORDINARY_COMPLETION_RULE, A as revalidateGitPrestate, Aa as MIN_SUPPORTED_HOST_VERSION, Ai as injectActiveProfileHostLock, An as latestAssistantText, Ao as RELEASE_OPERATION_SURFACES, Ar as npmEscapedPackageName, At as bindProofToProjection, B as HOST_WORKDIR_PREFIX, Ba as CERTIFICATE_VERSION, Bi as resolveDesktopProfileHostLock, Bn as certificateClosure, Bo as digestStrings, Br as explanationHasActionResidue, Bt as proofOperationMatches, C as GIT_COMMAND_TEMPLATES, Ca as evaluateHostCapability, Ci as auditedForegroundRenderers, Cn as classifyCompletionClaim, Co as hasPrivateRestartIntent, Cr as environmentDefaultRepositoryTarget, Ct as certifyCheckpoint, D as executeRevalidatedGitEffect, Da as selectHostCohort, Di as evaluateConfiguredHostLock, Dn as decisionBoundaryKey, Do as readPrivateLedger, Dr as isInformationalMessage, Dt as PROOF_MANIFEST_DOMAIN_V2, E as createGitPrestateEnvelope, Ea as hostVersionFromPackages, Ei as evaluateActiveHostLock, En as decideTurnStopping, Eo as privateLedgerTargetDigest, Er as extractOperation, Et as PROOF_KINDS_V2, F as firstStepGuidanceV6, Fa as parseHostVersion, Fi as prepareActiveHostTrust, Fn as v6TestPredicate, Fo as releaseContractFor, Fr as actionVerbMatches, Ft as proofCapabilityReport, G as SessionApiError, Ga as STOP_PROTOCOL_VERSION_V2, Gi as DESKTOP_PROFILE_PACKAGE_NAME, Gn as effectuateBoundary, Go as stripUrlCredentials, Gr as interpretClause, Gt as sessionQueryV2, H as sourcedNamedTestRoot, Ha as SEMANTIC_ACTIONS, Hi as revalidateDesktopCoreLock, Hn as unitDescendantIds, Ho as sanitizeClauseText, Hr as hasOrderedCoordination, Ht as requiredSubjectsOf, I as lifecyclePhase, Ia as satisfiesSupportedHostRange, Ii as prepareDesktopHostTrust, In as goalCompletionDenial, Io as releaseCoverage, Ir as clarifiedSpanOf, It as proofDigest, J as CAPTURE_V042_NOTICE, Ja as boundedArtifactChoiceMatches, Ji as hasDesktopImporterState, Jn as currentContractDigest, Jr as isExecutableItem, Jt as CLEANUP_CONDITION_RULE, K as snapshotSessionEvents, Ka as SUPPORTED_EVIDENCE_ADAPTERS, Ki as DESKTOP_RUNTIME_PACKAGE_NAME, Kn as isCurrentAcceptedBoundary, Ko as privateStorageToolDenial, Kr as interpretMessage, Kt as validateProofManifest, L as previewFirstStepInjection, La as ACTION_MANIFEST, Li as prepareTargetHostTrust, Ln as hasCurrentCertificate, Lo as releasePreEffectDecision, Lr as clauseAsksOwnQuestion, Lt as proofDigestV2, M as FIRST_STEP_GUIDANCE, Ma as SUPPORTED_HOST_VERSIONS, Mi as inspectTargetHostGraph, Mn as observeAssistantOutcome, Mo as inFlightReservation, Mr as classifyUserInteraction, Mt as canonicalProjection, N as claimedBatchHasRealRootInput, Na as compareHostVersions, Ni as packageRowsFromActiveGraph, Nn as progressFingerprint, No as normalizeReleaseContract, Nr as GRANTED_QUALIFICATION, Nt as createProofManifest, O as gitCommandMatchesTarget, Oa as HOST_VALIDATED_VERSIONS, Oi as hostLockContextFromComposedDump, On as isRootPauseRequest, Oo as resolvePrivateLedgerRoot, Or as segmentClauses, Ot as PROOF_PROTOCOL_VERSION, P as firstStepGuidance, Pa as evaluateMinimumHostVersion, Pi as packageRowsFromPnpmLock, Pn as testOutcomePredicate, Po as readbackSettlesContract, Pr as LEGACY_QUALIFICATION, Pt as createProofManifestV2, Q as PROTOCOL_V5_NOTICE, Qa as requestedTargetMatchesResolved, Qi as readAsarIndex, Qn as proposeRebindOutcome, Qr as isQuestionScopeNeedingReview, Qt as MIN_RECOVERY_CHAR_BUDGET, R as projectSessionCoreV2, Ra as ACTION_MANIFEST_VERSION, Ri as readActiveHostGraph, Rn as ancestorConstraintForBinding, Ro as reservationFor, Rr as clauseIsGoverned, Rt as proofEvidenceConstraints, S as GIT_COMMAND_MANIFEST_IDS, Sa as evaluateGraphDerivedHostLock, Si as auditedDefaultWorkdirProvider, Sn as assessmentOutcomePredicate, So as applyPrivateLedger, Sr as classifyClause, St as bindingIndividuallyAccepted, T as commitTreeSnapshotDigest, Ta as evaluateToolSurfaceCapability, Ti as combineHostPolicy, Tn as decideTurnBoundary, To as privateLedgerContractDigest, Tr as extractMethod, Tt as PROOF_KINDS, U as SESSION_API_UNSUPPORTED, Ua as STATEFUL_ACTIONS, Ui as verifyComposedHostLockDump, Un as BOUNDARY_RECORD_PREFIX, Uo as sanitizeUrl, Ur as hasQuestionScope, Ut as scopeCoverageDigest, V as captureHostWorkdir, Va as CERTIFICATE_VERSION_V2, Vi as resolveInstalledHostLock, Vn as needsReviewObligations, Vo as normalizeClause, Vr as governedClauseRestrictsExecution, Vt as proofV2Rejection, W as SESSION_EVENT_ENVELOPE_INVALID, Wa as STOP_PROTOCOL_VERSION, Wi as DESKTOP_IDENTITY_FACTS, Wn as availableBoundaryQualifications, Wo as sha256, Wr as hasWorkPredicate, Wt as sessionQuery, X as PROTOCOL_V3_NOTICE, Xa as requestedIdentityKey, Xi as memoizedAsarIndex, Xn as confirmRebind, Xr as isInformationalFragment, Xt as CLEANUP_CONDITION_RULE_SHORT, Y as DEFAULT_DELEGATION_TOOL_NAMES, Ya as isStatefulAction, Yi as memoizedAsarFile, Yn as createProjection, Yr as isExplanationScope, Yt as CLEANUP_CONDITION_RULE_COMPACT, Z as PROTOCOL_V4_NOTICE, Za as requestedTargetAuthorizesMutation, Zi as readAsarFile, Zn as proposeRebind, Zr as isOpenObligation, Zt as DEFAULT_RECOVERY_CHAR_BUDGET, _ as prepareActivationMigration, _a as HOST_CAPABILITY_PACKAGE_GROUPS, _i as COMMAND_SURFACE_MANIFEST, _n as isVerifyingCapability, _o as activationDigest, _r as partialFailureOf, _t as parseShellCommand, a as resolveActivationPersistencePlugin, aa as hostTrustDigest, ai as namedActions, an as openItems, ao as createHostAuditSession, ar as parseConfirmationMessage, at as NATIVE_GIT_ROOT_PARENT_OID, b as RC020_RC2_HOST_PACKAGES, ba as bindLiveGoalCapability, bi as activeRendererModule, bn as NO_PROGRESS_TURNS_BEFORE_STOP, bo as validateActivationBinding, br as captureClause, bt as authorityCaptureCounts, c as createActivationSelection, ca as registryArchiveFiles, ci as presentExplanationHead, cn as renderRecoveryPacket, co as adoptActivationReceipt, cr as evidenceAvailabilityReason, ct as extractToolSubject, d as scanActivationInventory, da as ACTIVE_HOST_COHORT_IDS, di as reportingHeadGoverns, dn as currentV6Feedback, do as readActivationMigrationReceipt, dr as relevantEvidence, dt as persistedToolResultStatus, ea as readDesktopDependency, ei as itemHoldsExecutionAuthority, en as V6_ORDINARY_COMPLETION_RULE_COMPACT, eo as semanticActionFromText, er as rebindAttemptKey, et as applyUpgradeEligibility, f as selectedActivationInventory, fa as ACTIVE_HOST_LAUNCHER_VERSION, fi as restatedContentOf, fn as isV6PendingRootWait, fo as resolveActivationBindingsRoot, fr as DEPENDENCY_FREE_ONLY_CONDITION, ft as shellReadbackOutcome, g as inspectActivationInventory, ga as GOAL_HOST_PACKAGES, gi as verbIsNegated, gn as evidenceMatchesItem, go as activationCanonical, gr as capabilityFactOf, gt as parsePwshCommand, h as verifySelectedMigrationInventory, ha as EXPECTED_HOST_PACKAGES, hi as statefulActionsOfScope, hn as evidenceCoverage, ho as writeActivationBinding, hr as capabilityConsequence, ht as isRunExecutable, i as guardActivationInventory, ia as acquireHostTrust, ii as maskQuotedSpans, in as closingHint, io as RC021_RC3_HOST_PACKAGES, ir as isFrozenV042RebindResponse, it as supersedeItem, j as verifiedLinearCommitReadback, ja as SUPPORTED_HOST_RANGE, ji as inspectDesktopTargetGraph, jn as latestRootInstruction, jo as contractById, jr as classifyTaskIntent, jt as bindProofV2ToProjection, k as parseGitCommandManifest, ka as LATEST_TESTED_HOST_VERSION, ki as hostLockRowsFromComposedDump, kn as isWholeTaskCompletionClaim, ko as RELEASE_OPERATIONS, kr as canonicalRegistryBase, kt as PROOF_PROTOCOL_VERSION_V2, l as isSelectedActivationReceipt, la as registryArchiveModules, li as qualificationOfClause, ln as v6CurrentRootBoundaries, lo as createActivationMigrationReceipt, lr as itemDiagnosis, lt as isDeterministicCheck, m as validateActivationSelection, ma as DEFAULT_HOST_LOCK, mi as splitTextFragments, mn as bindingSatisfies, mo as validateActivationMigrationReceipt, mr as admissibleForRemoval, mt as canonicalArgvFromCommand, n as assertActivationPhysicalRows, na as writeDesktopRuntimeReceipt, ni as legacyQuestionReadingIsInformational, nn as carriesCleanupCondition, no as validateActionTarget, nr as replayRebindResult, nt as legacyRecordsNeedingReview, o as activationSelectionPending, oa as parseHostTrust, oi as opensConditionLead, on as recoveryDigest, oo as __activationBindingInternals, or as capabilityRemedyPhrase, ot as evidenceFromPersistedToolResult, p as validateActivationInventorySnapshot, pa as BASE_HOST_PACKAGES, pi as semanticActionOfScope, pn as sourceItemForCoreRequirement, po as resolveSessionActivation, pr as actionHasCertificationPath, pt as withDurability, q as projectCoreV2, qa as actionCompatible, qi as auditDesktopInstalledImplementation, qn as qualifyBoundary, qo as ownedJobLifecycle, qr as introducesActionClause, qt as validateProofManifestV2, r as captureActivationPhysicalInventory, ra as HostTrustError, ri as maskCodeSpans, rn as cleanupConditionFor, ro as RC021_RC5_HOST_PACKAGES, rr as CONFIRM_LINE_PATTERN, rt as rootLocatorFlavor, s as bindActivationInventoryPhysical, sa as qualifyHostTrust, si as opensWithDirective, sn as recoveryTitle, so as activationBindingPath, sr as deriveItemDiagnosis, st as extractTextContent, t as assertActivationBackendIdentity, ta as readDesktopTargetGraph, ti as kindOfScope, tn as V6_ORDINARY_COMPLETION_RULE_SHORT, to as validateActionManifest, tr as rebindResponse, tt as deriveProjection, u as prepareSelectedActivationMigration, ua as ACTIVE_HOST_COHORT_ID, ui as questionHeadsClause, un as confirmedV6CoreDiagnostic, uo as readActivationBinding, ur as nativeFileTwoRole, ut as nativeGitParentOidVerified, v as verifyMigrationInventory, va as HOST_COHORTS, vi as validateManifest, vn as CONTROL_RECORD_PREFIX, vo as activationJson, vr as removalIsComplete, vt as cwdEpochsFromEvents, w as commitIndexSnapshotDigest, wa as evaluateHostLock, wi as auditedHostImplementation, wn as currentActionBases, wo as initializePrivateLedger, wr as extractArtifactPaths, wt as PROOF_CAPABILITY_MATRIX, x as RC020_RC1_HOST_PACKAGES, xa as evaluateExternalWaitCapability, xi as auditedDefaultWorkdirHost, xn as assessmentAction, xo as appendPrivateLedger, xr as captureItem, xt as segmentAuthorityBlocks, y as RC021_RC2_HOST_PACKAGES, ya as bindExecutableIdentity, yi as HostProfileError, yn as NO_PROGRESS_RECORD_PREFIX, yo as sessionBirthIdentity, yr as removalIsPartiallyKnown, yt as effectiveCwdAt, z as sessionCoreSnapshot, za as BOUNDED_ARTIFACT_TYPES, zi as resolveActiveProfileHostLock, zn as certifiableOpenItems, zo as canonicalizePath, zr as clauseIsProtected, zt as proofHostSurfacesOf } from "./domain-DUS0V_Yv.js";
|
|
2
2
|
import { boundContextSummary, createUserMessage } from "@deepseek-ai/dsh-llm";
|
|
3
3
|
import { constants, existsSync, readFileSync } from "node:fs";
|
|
4
4
|
import { basename, delimiter, dirname, isAbsolute, join, posix, resolve, win32 } from "node:path";
|
|
5
5
|
import { homedir, tmpdir } from "node:os";
|
|
6
6
|
import { createHash } from "node:crypto";
|
|
7
7
|
import { fileURLToPath } from "node:url";
|
|
8
|
+
import { promisify } from "node:util";
|
|
8
9
|
import { gunzip } from "node:zlib";
|
|
9
10
|
import { execFile } from "node:child_process";
|
|
10
11
|
import { JobId } from "@deepseek-ai/dsh-jobs";
|
|
11
12
|
import { defineTool } from "@deepseek-ai/dsh-tools";
|
|
12
13
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
13
|
-
import {
|
|
14
|
-
import { access, readFile, realpath } from "node:fs/promises";
|
|
14
|
+
import { access, open, readFile, realpath } from "node:fs/promises";
|
|
15
15
|
import { SESSION_FORMAT_VERSION, Session, SessionId } from "@deepseek-ai/dsh-session";
|
|
16
16
|
|
|
17
17
|
//#region src/tools/rebind.ts
|
|
@@ -1992,6 +1992,255 @@ function createInterpretTool(options) {
|
|
|
1992
1992
|
});
|
|
1993
1993
|
}
|
|
1994
1994
|
|
|
1995
|
+
//#endregion
|
|
1996
|
+
//#region src/domain/tgz-archive.ts
|
|
1997
|
+
const gunzipAsync = promisify(gunzip);
|
|
1998
|
+
const DEFAULT_TGZ_BUDGET = {
|
|
1999
|
+
maxCompressedBytes: 128 * 1024 * 1024,
|
|
2000
|
+
maxDecompressedBytes: 256 * 1024 * 1024,
|
|
2001
|
+
maxMemberBytes: 256 * 1024 * 1024,
|
|
2002
|
+
maxMemberCount: 65536,
|
|
2003
|
+
maxManifestBytes: 1024 * 1024
|
|
2004
|
+
};
|
|
2005
|
+
const BLOCK = 512;
|
|
2006
|
+
const OCTAL_SIZE = /^[0-7]+$/;
|
|
2007
|
+
const POSIX_MAGIC = Buffer.from("ustar\0", "ascii");
|
|
2008
|
+
const POSIX_VERSION = Buffer.from("00", "ascii");
|
|
2009
|
+
/** NUL-terminated string field; bytes after the first NUL must be NUL. */
|
|
2010
|
+
function tarStringField(block, start, end) {
|
|
2011
|
+
const raw = block.subarray(start, end);
|
|
2012
|
+
const terminator = raw.indexOf(0);
|
|
2013
|
+
if (terminator >= 0 && raw.subarray(terminator + 1).some((byte) => byte !== 0)) return void 0;
|
|
2014
|
+
return (terminator < 0 ? raw : raw.subarray(0, terminator)).toString("utf8");
|
|
2015
|
+
}
|
|
2016
|
+
/** Unsigned header checksum: the checksum field counts as eight spaces. */
|
|
2017
|
+
function tarChecksumValid(block) {
|
|
2018
|
+
const field = block.subarray(148, 156);
|
|
2019
|
+
let digitsEnd = field.findIndex((byte) => byte === 0 || byte === 32);
|
|
2020
|
+
if (digitsEnd < 0) digitsEnd = field.length;
|
|
2021
|
+
const stored = field.subarray(0, digitsEnd).toString("ascii");
|
|
2022
|
+
if (!stored.length || !OCTAL_SIZE.test(stored)) return false;
|
|
2023
|
+
let sum = 0;
|
|
2024
|
+
for (let index = 0; index < block.length; index += 1) sum += index >= 148 && index < 156 ? 32 : block[index];
|
|
2025
|
+
return Number.parseInt(stored, 8) === sum;
|
|
2026
|
+
}
|
|
2027
|
+
/**
|
|
2028
|
+
* npm-compatible path projection for one member: POSIX ustar prefix joins the
|
|
2029
|
+
* name, `.` and empty components collapse, `..`/backslash/absolute/Windows
|
|
2030
|
+
* drive components and anything outside `package/<nonempty...>` are refused.
|
|
2031
|
+
*/
|
|
2032
|
+
function normalizeMemberPath(prefix, name$1) {
|
|
2033
|
+
if (name$1.includes("\\") || prefix.includes("\\")) return void 0;
|
|
2034
|
+
const full = prefix ? `${prefix}/${name$1}` : name$1;
|
|
2035
|
+
if (full.startsWith("/")) return void 0;
|
|
2036
|
+
const parts = [];
|
|
2037
|
+
for (const part of full.split("/")) {
|
|
2038
|
+
if (part === "" || part === ".") continue;
|
|
2039
|
+
if (part === ".." || /^[A-Za-z]:$/.test(part)) return void 0;
|
|
2040
|
+
parts.push(part);
|
|
2041
|
+
}
|
|
2042
|
+
if (parts.length < 2 || parts[0] !== "package") return void 0;
|
|
2043
|
+
return parts.join("/");
|
|
2044
|
+
}
|
|
2045
|
+
function parseTar(tar, budget) {
|
|
2046
|
+
const seen = /* @__PURE__ */ new Set();
|
|
2047
|
+
let manifest;
|
|
2048
|
+
let members = 0;
|
|
2049
|
+
let terminated = false;
|
|
2050
|
+
for (let offset = 0; offset + BLOCK <= tar.length;) {
|
|
2051
|
+
const header = tar.subarray(offset, offset + BLOCK);
|
|
2052
|
+
if (header.every((byte) => byte === 0)) {
|
|
2053
|
+
if (!tar.subarray(offset).every((byte) => byte === 0)) return {
|
|
2054
|
+
status: "rejected",
|
|
2055
|
+
reasonCode: "tgz_trailing_bytes"
|
|
2056
|
+
};
|
|
2057
|
+
terminated = true;
|
|
2058
|
+
break;
|
|
2059
|
+
}
|
|
2060
|
+
members += 1;
|
|
2061
|
+
if (members > budget.maxMemberCount) return {
|
|
2062
|
+
status: "rejected",
|
|
2063
|
+
reasonCode: "tgz_member_count_exceeded"
|
|
2064
|
+
};
|
|
2065
|
+
if (!tarChecksumValid(header)) return {
|
|
2066
|
+
status: "rejected",
|
|
2067
|
+
reasonCode: "tgz_tar_checksum_invalid"
|
|
2068
|
+
};
|
|
2069
|
+
const posix$1 = header.subarray(257, 263).equals(POSIX_MAGIC) && header.subarray(263, 265).equals(POSIX_VERSION);
|
|
2070
|
+
const noMagic = header.subarray(257, 265).every((byte) => byte === 0);
|
|
2071
|
+
if (!posix$1 && !noMagic) return {
|
|
2072
|
+
status: "rejected",
|
|
2073
|
+
reasonCode: "tgz_format_unsupported"
|
|
2074
|
+
};
|
|
2075
|
+
const typeflag = header[156];
|
|
2076
|
+
if (typeflag !== 0 && typeflag !== 48 && typeflag !== 53) return {
|
|
2077
|
+
status: "rejected",
|
|
2078
|
+
reasonCode: "tgz_member_type_unsupported"
|
|
2079
|
+
};
|
|
2080
|
+
const name$1 = tarStringField(header, 0, 100);
|
|
2081
|
+
const prefix = posix$1 ? tarStringField(header, 345, 500) : header.subarray(345, 500).every((byte) => byte === 0) ? "" : void 0;
|
|
2082
|
+
if (name$1 === void 0 || prefix === void 0) return {
|
|
2083
|
+
status: "rejected",
|
|
2084
|
+
reasonCode: "tgz_tar_corrupt"
|
|
2085
|
+
};
|
|
2086
|
+
const sizeText = header.subarray(124, 136).toString("ascii").replace(/\0.*$/, "").trim();
|
|
2087
|
+
if (!OCTAL_SIZE.test(sizeText)) return {
|
|
2088
|
+
status: "rejected",
|
|
2089
|
+
reasonCode: "tgz_tar_corrupt"
|
|
2090
|
+
};
|
|
2091
|
+
const size$1 = Number.parseInt(sizeText, 8);
|
|
2092
|
+
const bodyStart = offset + BLOCK;
|
|
2093
|
+
const bodyEnd = bodyStart + size$1;
|
|
2094
|
+
if (!Number.isSafeInteger(size$1) || size$1 < 0 || bodyEnd > tar.length) return {
|
|
2095
|
+
status: "rejected",
|
|
2096
|
+
reasonCode: "tgz_tar_corrupt"
|
|
2097
|
+
};
|
|
2098
|
+
if (size$1 > budget.maxMemberBytes) return {
|
|
2099
|
+
status: "rejected",
|
|
2100
|
+
reasonCode: "tgz_member_budget_exceeded"
|
|
2101
|
+
};
|
|
2102
|
+
const path = normalizeMemberPath(prefix, name$1);
|
|
2103
|
+
if (path === void 0) return {
|
|
2104
|
+
status: "rejected",
|
|
2105
|
+
reasonCode: "tgz_member_path_unsupported"
|
|
2106
|
+
};
|
|
2107
|
+
if (seen.has(path)) return {
|
|
2108
|
+
status: "rejected",
|
|
2109
|
+
reasonCode: "tgz_duplicate_member"
|
|
2110
|
+
};
|
|
2111
|
+
seen.add(path);
|
|
2112
|
+
if (path === "package/package.json" && typeflag !== 53) {
|
|
2113
|
+
if (size$1 > budget.maxManifestBytes) return {
|
|
2114
|
+
status: "rejected",
|
|
2115
|
+
reasonCode: "tgz_manifest_budget_exceeded"
|
|
2116
|
+
};
|
|
2117
|
+
manifest = tar.subarray(bodyStart, bodyEnd);
|
|
2118
|
+
}
|
|
2119
|
+
offset = bodyStart + Math.ceil(size$1 / BLOCK) * BLOCK;
|
|
2120
|
+
}
|
|
2121
|
+
if (!terminated) return {
|
|
2122
|
+
status: "rejected",
|
|
2123
|
+
reasonCode: "tgz_tar_corrupt"
|
|
2124
|
+
};
|
|
2125
|
+
if (manifest === void 0) return {
|
|
2126
|
+
status: "rejected",
|
|
2127
|
+
reasonCode: "tgz_manifest_missing"
|
|
2128
|
+
};
|
|
2129
|
+
return {
|
|
2130
|
+
status: "ok",
|
|
2131
|
+
manifest
|
|
2132
|
+
};
|
|
2133
|
+
}
|
|
2134
|
+
/** Read the release identity of a local tgz under explicit resource budgets. */
|
|
2135
|
+
async function readTgzIdentity(path, options) {
|
|
2136
|
+
const budget = options?.budget ?? DEFAULT_TGZ_BUDGET;
|
|
2137
|
+
if (typeof path !== "string" || !isAbsolute(path) || !path.endsWith(".tgz")) return {
|
|
2138
|
+
status: "rejected",
|
|
2139
|
+
reasonCode: "tgz_path_invalid"
|
|
2140
|
+
};
|
|
2141
|
+
if (options?.signal?.aborted) return {
|
|
2142
|
+
status: "rejected",
|
|
2143
|
+
reasonCode: "tgz_cancelled"
|
|
2144
|
+
};
|
|
2145
|
+
let handle;
|
|
2146
|
+
try {
|
|
2147
|
+
handle = await open(path, "r");
|
|
2148
|
+
} catch {
|
|
2149
|
+
return {
|
|
2150
|
+
status: "rejected",
|
|
2151
|
+
reasonCode: "tgz_missing"
|
|
2152
|
+
};
|
|
2153
|
+
}
|
|
2154
|
+
try {
|
|
2155
|
+
if (!(await handle.stat()).isFile()) return {
|
|
2156
|
+
status: "rejected",
|
|
2157
|
+
reasonCode: "tgz_not_regular_file"
|
|
2158
|
+
};
|
|
2159
|
+
const chunks = [];
|
|
2160
|
+
let received = 0;
|
|
2161
|
+
let position = 0;
|
|
2162
|
+
let eofStable = false;
|
|
2163
|
+
while (!eofStable) {
|
|
2164
|
+
if (options?.signal?.aborted) return {
|
|
2165
|
+
status: "rejected",
|
|
2166
|
+
reasonCode: "tgz_cancelled"
|
|
2167
|
+
};
|
|
2168
|
+
const chunk = Buffer.alloc(256 * 1024);
|
|
2169
|
+
const { bytesRead } = await handle.read(chunk, 0, chunk.length, position);
|
|
2170
|
+
if (bytesRead > 0) {
|
|
2171
|
+
position += bytesRead;
|
|
2172
|
+
received += bytesRead;
|
|
2173
|
+
if (received > budget.maxCompressedBytes) return {
|
|
2174
|
+
status: "rejected",
|
|
2175
|
+
reasonCode: "tgz_compressed_budget_exceeded"
|
|
2176
|
+
};
|
|
2177
|
+
chunks.push(chunk.subarray(0, bytesRead));
|
|
2178
|
+
}
|
|
2179
|
+
if (bytesRead < chunk.length) eofStable = (await handle.stat()).size <= position;
|
|
2180
|
+
}
|
|
2181
|
+
if (received === 0) return {
|
|
2182
|
+
status: "rejected",
|
|
2183
|
+
reasonCode: "tgz_empty"
|
|
2184
|
+
};
|
|
2185
|
+
const bytes = Buffer.concat(chunks);
|
|
2186
|
+
let tar;
|
|
2187
|
+
try {
|
|
2188
|
+
tar = await gunzipAsync(bytes, { maxOutputLength: budget.maxDecompressedBytes });
|
|
2189
|
+
} catch (error) {
|
|
2190
|
+
if (error.code === "ERR_BUFFER_TOO_LARGE") return {
|
|
2191
|
+
status: "rejected",
|
|
2192
|
+
reasonCode: "tgz_decompressed_budget_exceeded"
|
|
2193
|
+
};
|
|
2194
|
+
return {
|
|
2195
|
+
status: "rejected",
|
|
2196
|
+
reasonCode: "tgz_gzip_corrupt"
|
|
2197
|
+
};
|
|
2198
|
+
}
|
|
2199
|
+
if (options?.signal?.aborted) return {
|
|
2200
|
+
status: "rejected",
|
|
2201
|
+
reasonCode: "tgz_cancelled"
|
|
2202
|
+
};
|
|
2203
|
+
const parsed = parseTar(tar, budget);
|
|
2204
|
+
if (parsed.status !== "ok") return parsed;
|
|
2205
|
+
let manifestJson;
|
|
2206
|
+
try {
|
|
2207
|
+
manifestJson = JSON.parse(parsed.manifest.toString("utf8"));
|
|
2208
|
+
} catch {
|
|
2209
|
+
return {
|
|
2210
|
+
status: "rejected",
|
|
2211
|
+
reasonCode: "tgz_manifest_invalid"
|
|
2212
|
+
};
|
|
2213
|
+
}
|
|
2214
|
+
const manifest = manifestJson && typeof manifestJson === "object" && !Array.isArray(manifestJson) ? manifestJson : void 0;
|
|
2215
|
+
if (!manifest) return {
|
|
2216
|
+
status: "rejected",
|
|
2217
|
+
reasonCode: "tgz_manifest_invalid"
|
|
2218
|
+
};
|
|
2219
|
+
const name$1 = typeof manifest.name === "string" ? manifest.name : void 0;
|
|
2220
|
+
const version = typeof manifest.version === "string" ? manifest.version : void 0;
|
|
2221
|
+
if (!name$1 || !version) return {
|
|
2222
|
+
status: "rejected",
|
|
2223
|
+
reasonCode: "tgz_manifest_invalid"
|
|
2224
|
+
};
|
|
2225
|
+
const gitHead = typeof manifest.gitHead === "string" && /^[0-9a-f]{40}$/.test(manifest.gitHead) ? manifest.gitHead : void 0;
|
|
2226
|
+
const repositoryField = manifest.repository;
|
|
2227
|
+
const repository = typeof repositoryField === "string" ? repositoryField : repositoryField && typeof repositoryField === "object" && !Array.isArray(repositoryField) && typeof repositoryField.url === "string" ? repositoryField.url : void 0;
|
|
2228
|
+
return {
|
|
2229
|
+
status: "ok",
|
|
2230
|
+
identity: {
|
|
2231
|
+
name: name$1,
|
|
2232
|
+
version,
|
|
2233
|
+
integrity: `sha512-${createHash("sha512").update(bytes).digest("base64")}`,
|
|
2234
|
+
sha256: createHash("sha256").update(bytes).digest("hex"),
|
|
2235
|
+
...gitHead ? { gitHead } : {},
|
|
2236
|
+
...repository ? { repository } : {}
|
|
2237
|
+
}
|
|
2238
|
+
};
|
|
2239
|
+
} finally {
|
|
2240
|
+
await handle.close();
|
|
2241
|
+
}
|
|
2242
|
+
}
|
|
2243
|
+
|
|
1995
2244
|
//#endregion
|
|
1996
2245
|
//#region src/tools/evidence.ts
|
|
1997
2246
|
const execFileAsync$1 = promisify(execFile);
|
|
@@ -2010,6 +2259,10 @@ const SUPPORTED = [
|
|
|
2010
2259
|
"pull",
|
|
2011
2260
|
"fetch"
|
|
2012
2261
|
];
|
|
2262
|
+
const DEFAULT_REGISTRY_READ_BUDGET = {
|
|
2263
|
+
totalDeadlineMs: 3e4,
|
|
2264
|
+
maxBodyBytes: 8 * 1024 * 1024
|
|
2265
|
+
};
|
|
2013
2266
|
const RESTART_INTENT_PREFIX = "Context Guard restart intent v1: ";
|
|
2014
2267
|
function restartIntent(events, resolutionCallId, target) {
|
|
2015
2268
|
for (const raw of events) {
|
|
@@ -2307,44 +2560,15 @@ async function readJson(path) {
|
|
|
2307
2560
|
return;
|
|
2308
2561
|
}
|
|
2309
2562
|
}
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
const name$1 = header.subarray(0, 100).toString("utf8").replace(/\0.*$/, "");
|
|
2320
|
-
const sizeText = header.subarray(124, 136).toString("ascii").replace(/\0.*$/, "").trim();
|
|
2321
|
-
if (!/^[0-7]+$/.test(sizeText)) return void 0;
|
|
2322
|
-
const size$1 = Number.parseInt(sizeText, 8);
|
|
2323
|
-
const bodyStart = offset + 512;
|
|
2324
|
-
const bodyEnd = bodyStart + size$1;
|
|
2325
|
-
if (!Number.isSafeInteger(size$1) || size$1 < 0 || bodyEnd > tar.length) return void 0;
|
|
2326
|
-
if (name$1 === "package/package.json") {
|
|
2327
|
-
if (manifest || size$1 > 1024 * 1024) return void 0;
|
|
2328
|
-
try {
|
|
2329
|
-
manifest = record$1(JSON.parse(tar.subarray(bodyStart, bodyEnd).toString("utf8")));
|
|
2330
|
-
} catch {
|
|
2331
|
-
return;
|
|
2332
|
-
}
|
|
2333
|
-
}
|
|
2334
|
-
offset = bodyStart + Math.ceil(size$1 / 512) * 512;
|
|
2335
|
-
}
|
|
2336
|
-
if (typeof manifest?.name !== "string" || typeof manifest.version !== "string") return void 0;
|
|
2337
|
-
const gitHead = typeof manifest.gitHead === "string" && /^[0-9a-f]{40}$/.test(manifest.gitHead) ? manifest.gitHead : void 0;
|
|
2338
|
-
const repositoryField = manifest.repository;
|
|
2339
|
-
const repository = typeof repositoryField === "string" ? repositoryField : record$1(repositoryField) && typeof record$1(repositoryField)?.url === "string" ? String(record$1(repositoryField).url) : void 0;
|
|
2340
|
-
return {
|
|
2341
|
-
name: manifest.name,
|
|
2342
|
-
version: manifest.version,
|
|
2343
|
-
integrity: `sha512-${createHash("sha512").update(bytes).digest("base64")}`,
|
|
2344
|
-
sha256: createHash("sha256").update(bytes).digest("hex"),
|
|
2345
|
-
...gitHead ? { gitHead } : {},
|
|
2346
|
-
...repository ? { repository } : {}
|
|
2347
|
-
};
|
|
2563
|
+
/**
|
|
2564
|
+
* Identity of a release tgz under the auditable tar subset (F01/F08): every
|
|
2565
|
+
* producer that needs the artifact's identity — resolution, pre-effect
|
|
2566
|
+
* revalidation and post-publish observation — consumes this one result, so no
|
|
2567
|
+
* stage can disagree with another about which manifest the bytes encode.
|
|
2568
|
+
*/
|
|
2569
|
+
async function tgzIdentity(path, signal) {
|
|
2570
|
+
const result = await readTgzIdentity(path, signal ? { signal } : void 0);
|
|
2571
|
+
return result.status === "ok" ? result.identity : void 0;
|
|
2348
2572
|
}
|
|
2349
2573
|
/**
|
|
2350
2574
|
* Read the candidate identity of a publish from TRUSTED PRODUCERS only: the
|
|
@@ -2357,7 +2581,7 @@ async function tgzIdentity(path) {
|
|
|
2357
2581
|
async function observePublishCandidate(resolution, roots, signal, cwd) {
|
|
2358
2582
|
const tgzPath = requireString(resolution.commandManifest, "tgz_path");
|
|
2359
2583
|
if (!tgzPath) return void 0;
|
|
2360
|
-
const identity = await tgzIdentity(tgzPath);
|
|
2584
|
+
const identity = await tgzIdentity(tgzPath, signal);
|
|
2361
2585
|
if (!identity) return void 0;
|
|
2362
2586
|
const registry = typeof resolution.target.registry === "string" ? resolution.target.registry : void 0;
|
|
2363
2587
|
return {
|
|
@@ -2470,19 +2694,85 @@ async function profilePackage(profilePath, packageId) {
|
|
|
2470
2694
|
return;
|
|
2471
2695
|
}
|
|
2472
2696
|
}
|
|
2697
|
+
/**
|
|
2698
|
+
* One bounded registry read (F09/RF05): the caller's cancellation combined
|
|
2699
|
+
* with the plugin's own total deadline governs the WHOLE call — reads AND the
|
|
2700
|
+
* cleanup that releases the body — and a streamed hard byte budget covers the
|
|
2701
|
+
* DECODED bytes, so chunked or compressed transports cannot smuggle a larger
|
|
2702
|
+
* document past the counter. A cleanup cancel that itself hangs or rejects is
|
|
2703
|
+
* abandoned at the deadline instead of turning the release phase into an
|
|
2704
|
+
* unbounded wait; the timeout signal does not keep the event loop alive.
|
|
2705
|
+
*/
|
|
2706
|
+
async function boundedRegistryJson(url, init, fetcher, budget, signal) {
|
|
2707
|
+
const deadline = AbortSignal.timeout(budget.totalDeadlineMs);
|
|
2708
|
+
const combined = typeof AbortSignal.any === "function" ? AbortSignal.any([signal, deadline]) : deadline;
|
|
2709
|
+
const releaseBounded = (releasing) => {
|
|
2710
|
+
releasing.catch(() => {});
|
|
2711
|
+
if (combined.aborted) return Promise.resolve();
|
|
2712
|
+
return new Promise((resolve$1) => {
|
|
2713
|
+
const onAbort = () => resolve$1();
|
|
2714
|
+
combined.addEventListener("abort", onAbort, { once: true });
|
|
2715
|
+
releasing.then(() => {
|
|
2716
|
+
combined.removeEventListener("abort", onAbort);
|
|
2717
|
+
resolve$1();
|
|
2718
|
+
}, () => {
|
|
2719
|
+
combined.removeEventListener("abort", onAbort);
|
|
2720
|
+
resolve$1();
|
|
2721
|
+
});
|
|
2722
|
+
});
|
|
2723
|
+
};
|
|
2724
|
+
let response;
|
|
2725
|
+
try {
|
|
2726
|
+
response = await fetcher(url, {
|
|
2727
|
+
...init,
|
|
2728
|
+
signal: combined
|
|
2729
|
+
});
|
|
2730
|
+
} catch {
|
|
2731
|
+
return;
|
|
2732
|
+
}
|
|
2733
|
+
if (!response.ok || !response.body) {
|
|
2734
|
+
await releaseBounded(response.body?.cancel() ?? Promise.resolve());
|
|
2735
|
+
return;
|
|
2736
|
+
}
|
|
2737
|
+
const reader = response.body.getReader();
|
|
2738
|
+
const chunks = [];
|
|
2739
|
+
let received = 0;
|
|
2740
|
+
const readBounded = () => {
|
|
2741
|
+
if (combined.aborted) return Promise.reject(/* @__PURE__ */ new Error("registry_read_budget_exhausted"));
|
|
2742
|
+
let onAbort;
|
|
2743
|
+
return Promise.race([reader.read(), new Promise((_resolve, reject) => {
|
|
2744
|
+
onAbort = () => reject(/* @__PURE__ */ new Error("registry_read_budget_exhausted"));
|
|
2745
|
+
combined.addEventListener("abort", onAbort, { once: true });
|
|
2746
|
+
})]).finally(() => combined.removeEventListener("abort", onAbort));
|
|
2747
|
+
};
|
|
2748
|
+
try {
|
|
2749
|
+
while (true) {
|
|
2750
|
+
const { done, value } = await readBounded();
|
|
2751
|
+
if (done) break;
|
|
2752
|
+
received += value.byteLength;
|
|
2753
|
+
if (received > budget.maxBodyBytes) return void 0;
|
|
2754
|
+
chunks.push(value);
|
|
2755
|
+
}
|
|
2756
|
+
} catch {
|
|
2757
|
+
return;
|
|
2758
|
+
} finally {
|
|
2759
|
+
await releaseBounded(reader.cancel().catch(() => {}));
|
|
2760
|
+
}
|
|
2761
|
+
try {
|
|
2762
|
+
return record$1(JSON.parse(Buffer.concat(chunks).toString("utf8")));
|
|
2763
|
+
} catch {
|
|
2764
|
+
return;
|
|
2765
|
+
}
|
|
2766
|
+
}
|
|
2473
2767
|
async function registryIntegrity(registry, packageId, version, roots, signal) {
|
|
2474
2768
|
const canonical = canonicalRegistryBase(registry, { allowLoopbackHttp: roots.allowLoopbackHttpRegistry });
|
|
2475
2769
|
if (!canonical || canonical !== registry) return void 0;
|
|
2476
|
-
const
|
|
2477
|
-
signal,
|
|
2770
|
+
const release = await boundedRegistryJson(new URL(`${npmEscapedPackageName(packageId)}/${encodeURIComponent(version)}`, canonical), {
|
|
2478
2771
|
headers: { accept: "application/json" },
|
|
2479
2772
|
redirect: "error"
|
|
2480
|
-
});
|
|
2481
|
-
if (!response.ok) return void 0;
|
|
2482
|
-
const value = record$1(await response.json());
|
|
2483
|
-
const release = record$1(record$1(value?.versions)?.[version]);
|
|
2773
|
+
}, roots.fetcher ?? fetch, roots.registryReadBudget ?? DEFAULT_REGISTRY_READ_BUDGET, signal);
|
|
2484
2774
|
const dist = record$1(release?.dist);
|
|
2485
|
-
return
|
|
2775
|
+
return release?.name === packageId && release?.version === version && typeof dist?.integrity === "string" ? dist.integrity : void 0;
|
|
2486
2776
|
}
|
|
2487
2777
|
function windowsBatchCommand(file, args) {
|
|
2488
2778
|
const values = [file, ...args];
|
|
@@ -2587,7 +2877,7 @@ async function executeGuardAction(action, resolution, roots, signal, executableI
|
|
|
2587
2877
|
const target = resolution.target;
|
|
2588
2878
|
if (action === "install" || action === "apply") {
|
|
2589
2879
|
const tgzPath = requireString(resolution.commandManifest, "tgz_path");
|
|
2590
|
-
const identity = tgzPath ? await tgzIdentity(tgzPath) : void 0;
|
|
2880
|
+
const identity = tgzPath ? await tgzIdentity(tgzPath, signal) : void 0;
|
|
2591
2881
|
if (!executableIdentity$1 || !tgzPath || !identity || identity.name !== target.package_id || identity.version !== target.version || identity.integrity !== target.integrity_digest || roots.profile?.name !== target.profile) return { status: "unavailable" };
|
|
2592
2882
|
if (roots.preEffectVeto?.() === false) return {
|
|
2593
2883
|
status: "unavailable",
|
|
@@ -2604,7 +2894,7 @@ async function executeGuardAction(action, resolution, roots, signal, executableI
|
|
|
2604
2894
|
}
|
|
2605
2895
|
if (action === "publish") {
|
|
2606
2896
|
const tgzPath = requireString(resolution.commandManifest, "tgz_path");
|
|
2607
|
-
const identity = tgzPath ? await tgzIdentity(tgzPath) : void 0;
|
|
2897
|
+
const identity = tgzPath ? await tgzIdentity(tgzPath, signal) : void 0;
|
|
2608
2898
|
const registry = typeof target.registry === "string" ? canonicalRegistryBase(target.registry, { allowLoopbackHttp: roots.allowLoopbackHttpRegistry }) : void 0;
|
|
2609
2899
|
if (!executableIdentity$1 || !tgzPath || !identity || identity.name !== target.artifact_id || identity.version !== target.version || identity.integrity !== target.integrity_digest || !registry || registry !== target.registry) return { status: "unavailable" };
|
|
2610
2900
|
if (roots.preEffectVeto?.() === false) return {
|
|
@@ -2882,7 +3172,7 @@ async function resolveTarget(action, selector, commandManifest, cwd, roots, sign
|
|
|
2882
3172
|
const tgzPath = requireString(commandManifest, "tgz_path");
|
|
2883
3173
|
const manifestId = action === "install" ? "dsh.plugin_add_tgz.install.v1" : "dsh.plugin_add_tgz.apply.v1";
|
|
2884
3174
|
if (!hasExactKeys(commandManifest, ["manifest_id", "tgz_path"]) || !packageId || !profile || profile !== trustedProfile?.name || commandManifest.manifest_id !== manifestId || !ACTION_MANIFEST.actions[action].commandManifestIds.includes(manifestId) || !tgzPath) return void 0;
|
|
2885
|
-
const identity = await tgzIdentity(tgzPath);
|
|
3175
|
+
const identity = await tgzIdentity(tgzPath, signal);
|
|
2886
3176
|
if (!identity || identity.name !== packageId || selector.version !== void 0 && selector.version !== identity.version) return void 0;
|
|
2887
3177
|
const installed = await profilePackage(trustedProfile.path, packageId);
|
|
2888
3178
|
if (action === "install" && installed) return void 0;
|
|
@@ -2910,7 +3200,7 @@ async function resolveTarget(action, selector, commandManifest, cwd, roots, sign
|
|
|
2910
3200
|
const registry = canonicalRegistryBase(requireString(selector, "registry") ?? "", { allowLoopbackHttp: roots.allowLoopbackHttpRegistry });
|
|
2911
3201
|
const tgzPath = requireString(commandManifest, "tgz_path");
|
|
2912
3202
|
if (!hasExactKeys(commandManifest, ["manifest_id", "tgz_path"]) || !registry || commandManifest.manifest_id !== "npm.publish_tgz.v1" || !ACTION_MANIFEST.actions.publish.commandManifestIds.includes("npm.publish_tgz.v1") || !tgzPath) return void 0;
|
|
2913
|
-
const identity = await tgzIdentity(tgzPath);
|
|
3203
|
+
const identity = await tgzIdentity(tgzPath, signal);
|
|
2914
3204
|
if (!identity || identity.name !== selector.artifact_id || identity.version !== selector.version) return void 0;
|
|
2915
3205
|
return { target: {
|
|
2916
3206
|
artifact_id: identity.name,
|
|
@@ -3136,6 +3426,7 @@ function normalizedRoots(options) {
|
|
|
3136
3426
|
...options.allowLoopbackHttpRegistry ? { allowLoopbackHttpRegistry: true } : {},
|
|
3137
3427
|
...options.releaseGate ? { releaseGate: options.releaseGate } : {},
|
|
3138
3428
|
...options.releaseSettle ? { releaseSettle: options.releaseSettle } : {},
|
|
3429
|
+
...options.registryReadBudget ? { registryReadBudget: options.registryReadBudget } : {},
|
|
3139
3430
|
...options.preEffectVeto ? { preEffectVeto: options.preEffectVeto } : {}
|
|
3140
3431
|
};
|
|
3141
3432
|
}
|
|
@@ -3913,12 +4204,13 @@ function createNativeFileObserver(host) {
|
|
|
3913
4204
|
const agent = exec.agent;
|
|
3914
4205
|
if (!agent || !host.fs || !host.flush) return missing("host_fs_unavailable");
|
|
3915
4206
|
if (!await host.flush(agent.session)) return missing("native_effect_not_durable");
|
|
4207
|
+
const events = snapshotSessionEvents(agent.session);
|
|
3916
4208
|
let call;
|
|
3917
4209
|
let result;
|
|
3918
4210
|
let callSeq = -1;
|
|
3919
4211
|
let resultSeq = -1;
|
|
3920
4212
|
let duplicate = false;
|
|
3921
|
-
for (const raw of
|
|
4213
|
+
for (const raw of events) {
|
|
3922
4214
|
const event = record(raw);
|
|
3923
4215
|
const data = record(event?.data);
|
|
3924
4216
|
if (event?.type === "tool/call" && data?.callId === args.effect_call_id) {
|
|
@@ -3951,7 +4243,11 @@ function createNativeFileObserver(host) {
|
|
|
3951
4243
|
const filePath = effectArgs?.file_path;
|
|
3952
4244
|
if (typeof filePath !== "string" || !filePath) return missing("native_effect_target_missing");
|
|
3953
4245
|
const action = String(call.name).startsWith("write") ? "create" : "modify";
|
|
3954
|
-
const
|
|
4246
|
+
const headerCwdRaw = record(agent.session.header)?.cwd;
|
|
4247
|
+
const headerCwd = typeof headerCwdRaw === "string" ? headerCwdRaw : void 0;
|
|
4248
|
+
const epochs = cwdEpochsFromEvents(events, headerCwd);
|
|
4249
|
+
const cwd = epochs ? effectiveCwdAt(epochs, headerCwd, callSeq) : void 0;
|
|
4250
|
+
if (!posix.isAbsolute(filePath) && !win32.isAbsolute(filePath) && typeof cwd !== "string") return missing("native_effect_cwd_unresolvable");
|
|
3955
4251
|
try {
|
|
3956
4252
|
const target = await host.fs.resolve(filePath, {
|
|
3957
4253
|
...typeof cwd === "string" ? { cwd } : {},
|
|
@@ -4714,7 +5010,7 @@ function createContextGuardCommand(projectionFor, setEnabled, clearContract, lif
|
|
|
4714
5010
|
}
|
|
4715
5011
|
|
|
4716
5012
|
//#endregion
|
|
4717
|
-
//#region node_modules/.pnpm/@deepseek-ai+cosmokit@1.8.
|
|
5013
|
+
//#region node_modules/.pnpm/@deepseek-ai+cosmokit@1.8.6/node_modules/@deepseek-ai/cosmokit/lib/index.js
|
|
4718
5014
|
/** Return true when a value is `null` or `undefined`. */
|
|
4719
5015
|
function isNullable(value) {
|
|
4720
5016
|
return value === null || value === void 0;
|
|
@@ -4973,7 +5269,7 @@ var Time;
|
|
|
4973
5269
|
})(Time || (Time = {}));
|
|
4974
5270
|
|
|
4975
5271
|
//#endregion
|
|
4976
|
-
//#region node_modules/.pnpm/@deepseek-ai+schemastery@3.18.
|
|
5272
|
+
//#region node_modules/.pnpm/@deepseek-ai+schemastery@3.18.5/node_modules/@deepseek-ai/schemastery/lib/index.mjs
|
|
4977
5273
|
const kSchema = Symbol.for("schemastery");
|
|
4978
5274
|
const kValidationError = Symbol.for("ValidationError");
|
|
4979
5275
|
globalThis.__schemastery_index__ ??= 0;
|
|
@@ -6336,14 +6632,33 @@ function sessionCwd(session) {
|
|
|
6336
6632
|
const header = session.header;
|
|
6337
6633
|
return typeof header?.cwd === "string" && header.cwd.length > 0 ? header.cwd : void 0;
|
|
6338
6634
|
}
|
|
6635
|
+
/**
|
|
6636
|
+
* The directory the host's working-directory service resolves relative paths
|
|
6637
|
+
* against RIGHT NOW: the last committed epoch, not the immutable header
|
|
6638
|
+
* project. `undefined` when the timeline cannot be proven, so the private
|
|
6639
|
+
* storage guard fails closed on relative targets instead of guessing.
|
|
6640
|
+
*/
|
|
6641
|
+
function effectiveSessionCwd(session) {
|
|
6642
|
+
const header = sessionCwd(session);
|
|
6643
|
+
if (header === void 0) return void 0;
|
|
6644
|
+
const epochs = cwdEpochsFromEvents(snapshotSessionEvents(session), header);
|
|
6645
|
+
return epochs ? effectiveCwdAt(epochs, header, Number.POSITIVE_INFINITY) : void 0;
|
|
6646
|
+
}
|
|
6339
6647
|
/** A bounded signal for a short trusted readback performed by the gate. */
|
|
6340
6648
|
function requestSignal() {
|
|
6341
6649
|
return AbortSignal.timeout(5e3);
|
|
6342
6650
|
}
|
|
6343
|
-
/**
|
|
6651
|
+
/**
|
|
6652
|
+
* Delegated/subagent sessions never receive root-conversation injections.
|
|
6653
|
+
* `parentSession` is FORK LINEAGE, not delegation: a plain user fork is a
|
|
6654
|
+
* root conversation (the host's roots registry admits resumed forks). Only
|
|
6655
|
+
* the host's explicit subagent markers — `origin=subagent` or a positive
|
|
6656
|
+
* `delegationDepth` — delegate, so contradictory or unknown fields stay
|
|
6657
|
+
* delegated and never gain root privileges.
|
|
6658
|
+
*/
|
|
6344
6659
|
function isDelegatedSession(session) {
|
|
6345
6660
|
const header = session.header;
|
|
6346
|
-
return header?.origin === "subagent" || typeof header?.delegationDepth === "number" && header.delegationDepth > 0
|
|
6661
|
+
return header?.origin === "subagent" || typeof header?.delegationDepth === "number" && header.delegationDepth > 0;
|
|
6347
6662
|
}
|
|
6348
6663
|
/** Never reinterpret a legacy injected snapshot as freshly accepted core/v1. */
|
|
6349
6664
|
function revalidateCoreLock(config, expected, providedSession) {
|
|
@@ -6537,14 +6852,33 @@ function apply(ctx, rawConfig = {}, seams = {}) {
|
|
|
6537
6852
|
key: "identity"
|
|
6538
6853
|
};
|
|
6539
6854
|
}
|
|
6855
|
+
let creationRetry = initialization.status === "unavailable" && initialization.reasonCode === "activation_writer_unavailable" ? {
|
|
6856
|
+
source: startSources.get(agent),
|
|
6857
|
+
attempts: 0,
|
|
6858
|
+
deadline: Date.now() + 6e4
|
|
6859
|
+
} : void 0;
|
|
6540
6860
|
const readMode = () => {
|
|
6541
6861
|
if (!birth) return initialization;
|
|
6542
6862
|
try {
|
|
6543
|
-
const
|
|
6544
|
-
|
|
6545
|
-
|
|
6546
|
-
|
|
6547
|
-
|
|
6863
|
+
const currentBirth = sessionBirthIdentity(agent.session.header, agent.session.inheritedEventCount);
|
|
6864
|
+
const fresh = readActivationBinding(activationBindingsRoot, currentBirth, config.activationSource === "explicit" ? config.activation : void 0);
|
|
6865
|
+
if (fresh.status === "bound") {
|
|
6866
|
+
creationRetry = void 0;
|
|
6867
|
+
return fresh;
|
|
6868
|
+
}
|
|
6869
|
+
if (fresh.status === "unavailable" && fresh.reasonCode === "activation_mode_unknown" && initialization.status === "unavailable") {
|
|
6870
|
+
if (creationRetry !== void 0 && creationRetry.source === "startup" && creationRetry.attempts < 8 && Date.now() <= creationRetry.deadline && agentHostLock.status === "supported" && ctx.get?.("agents")?.get(agent.id) === agent && ctx.sessions.get?.(agent.session.id) === agent.session) {
|
|
6871
|
+
creationRetry.attempts += 1;
|
|
6872
|
+
const retried = resolveSessionActivation(activationBindingsRoot, currentBirth, config, creationRetry.source, true);
|
|
6873
|
+
if (retried.status === "bound" || retried.reasonCode !== "activation_writer_unavailable") initialization = retried;
|
|
6874
|
+
return retried;
|
|
6875
|
+
}
|
|
6876
|
+
return {
|
|
6877
|
+
...initialization,
|
|
6878
|
+
key: fresh.key
|
|
6879
|
+
};
|
|
6880
|
+
}
|
|
6881
|
+
return fresh;
|
|
6548
6882
|
} catch {
|
|
6549
6883
|
return {
|
|
6550
6884
|
status: "unavailable",
|
|
@@ -6795,7 +7129,7 @@ function apply(ctx, rawConfig = {}, seams = {}) {
|
|
|
6795
7129
|
}));
|
|
6796
7130
|
ownedTools.register(createExternalOperationTool((id, toolAgent) => readExternalOperation(ctx, toolAgent, id), () => evaluateExternalWaitCapability(hostLocks.get(agent) ?? installedHostLock)));
|
|
6797
7131
|
ownedTools.guard((exec) => {
|
|
6798
|
-
const privateDenial = privateStorageToolDenial(exec.name, exec.arguments,
|
|
7132
|
+
const privateDenial = privateStorageToolDenial(exec.name, exec.arguments, effectiveSessionCwd(agent.session), [activationBindingsRoot, ...privateLedgerRoot ? [privateLedgerRoot] : []]);
|
|
6799
7133
|
if (privateDenial) return privateDenial;
|
|
6800
7134
|
if (exec.name === "update_goal" && exec.arguments?.action === "complete") {
|
|
6801
7135
|
runtime.sync();
|
|
@@ -7114,4 +7448,4 @@ async function replayRawV2(input) {
|
|
|
7114
7448
|
}
|
|
7115
7449
|
|
|
7116
7450
|
//#endregion
|
|
7117
|
-
export { ACTION_MANIFEST, ACTION_MANIFEST_VERSION, ACTIVE_HOST_COHORT_ID, ACTIVE_HOST_COHORT_IDS, ACTIVE_HOST_LAUNCHER_VERSION, BASE_HOST_PACKAGES, BOUNDARY_RECORD_PREFIX, BOUNDED_ARTIFACT_TYPES, CAPTURE_V042_NOTICE, CERTIFICATE_VERSION, CERTIFICATE_VERSION_V2, CLEANUP_CONDITION_RULE, CLEANUP_CONDITION_RULE_COMPACT, CLEANUP_CONDITION_RULE_SHORT, COMMAND_SURFACE_MANIFEST, CONFIRM_LINE_PATTERN, CONTROL_RECORD_PREFIX, Config, DEFAULT_DELEGATION_TOOL_NAMES, DEFAULT_HOST_LOCK, DEFAULT_RECOVERY_CHAR_BUDGET, DEPENDENCY_FREE_ONLY_CONDITION, DESKTOP_IDENTITY_FACTS, DESKTOP_PROFILE_PACKAGE_NAME, DESKTOP_RUNTIME_PACKAGE_NAME, EXPECTED_HOST_PACKAGES, FIRST_STEP_GUIDANCE, GIT_COMMAND_MANIFEST_IDS, GIT_COMMAND_TEMPLATES, GOAL_HOST_PACKAGES, GRANTED_QUALIFICATION, HOST_CAPABILITY_PACKAGE_GROUPS, HOST_COHORTS, HOST_VALIDATED_VERSIONS, HostProfileError, HostTrustError, LATEST_TESTED_HOST_VERSION, LEGACY_QUALIFICATION, MIN_RECOVERY_CHAR_BUDGET, MIN_SUPPORTED_HOST_VERSION, NATIVE_GIT_ROOT_PARENT_OID, NO_PROGRESS_RECORD_PREFIX, NO_PROGRESS_TURNS_BEFORE_STOP, PROOF_CAPABILITY_MATRIX, PROOF_KINDS, PROOF_KINDS_V2, PROOF_MANIFEST_DOMAIN_V2, PROOF_PROTOCOL_VERSION, PROOF_PROTOCOL_VERSION_V2, PROTOCOL_V3_NOTICE, PROTOCOL_V4_NOTICE, PROTOCOL_V5_NOTICE, PROTOCOL_V6_NOTICE, RC020_RC1_HOST_PACKAGES, RC020_RC2_HOST_PACKAGES, RC021_RC2_HOST_PACKAGES, SEMANTIC_ACTIONS, SESSION_API_UNSUPPORTED, SESSION_EVENT_ENVELOPE_INVALID, STATEFUL_ACTIONS, STOP_PROTOCOL_VERSION, STOP_PROTOCOL_VERSION_V2, SUPPORTED_EVIDENCE_ADAPTERS, SUPPORTED_HOST_RANGE, SUPPORTED_HOST_VERSIONS, SessionApiError, V6_ORDINARY_COMPLETION_RULE, V6_ORDINARY_COMPLETION_RULE_COMPACT, V6_ORDINARY_COMPLETION_RULE_SHORT, __activationBindingInternals, acquireHostTrust, actionCompatible, actionHasCertificationPath, actionVerbMatches, activationBindingPath, activationCanonical, activationDigest, activationJson, activationSelectionPending, activeRendererModule, admissibleForRemoval, adoptActivationReceipt, apply, applyUpgradeEligibility, assessmentAction, assessmentOutcomePredicate, auditDesktopInstalledImplementation, auditedDefaultWorkdirHost, auditedDefaultWorkdirProvider, auditedForegroundRenderers, auditedHostImplementation, authorityCaptureCounts, availableBoundaryQualifications, bindExecutableIdentity, bindLiveGoalCapability, bindProofToProjection, bindProofV2ToProjection, bindingIndividuallyAccepted, bindingSatisfies, boundedArtifactChoiceMatches, canonicalArgvFromCommand, canonicalProjection, canonicalizePath, capabilityConsequence, capabilityFactOf, capabilityRemedyPhrase, captureClause, captureItem, carriesCleanupCondition, certifyCheckpoint, claimedBatchHasRealRootInput, clarifiedSpanOf, classifyClause, classifyCompletionClaim, classifyTaskIntent, classifyUserInteraction, clauseAsksOwnQuestion, clauseIsGoverned, clauseIsProtected, cleanupConditionFor, closingHint, combineHostPolicy, commitIndexSnapshotDigest, commitTreeSnapshotDigest, compareHostVersions, confirmRebind, createActivationMigrationReceipt, createActivationSelection, createGitPrestateEnvelope, createProjection, createProofManifest, createProofManifestV2, currentActionBases, currentContractDigest, decideTurnBoundary, decideTurnStopping, decisionBoundaryKey, deriveItemDiagnosis, deriveProjection, digestStrings, effectuateBoundary, environmentDefaultRepositoryTarget, evaluateActiveHostLock, evaluateConfiguredHostLock, evaluateExternalWaitCapability, evaluateGraphDerivedHostLock, evaluateHostCapability, evaluateHostLock, evaluateMinimumHostVersion, evaluateToolSurfaceCapability, evidenceAvailabilityReason, evidenceCoverage, evidenceFromPersistedToolResult, evidenceMatchesItem, executeRevalidatedGitEffect, explanationHasActionResidue, extractArtifactPaths, extractMethod, extractOperation, extractTextContent, extractToolSubject, firstStepGuidance, firstStepGuidanceV6, gitCommandMatchesTarget, goalCompletionDenial, governedClauseRestrictsExecution, hasCurrentCertificate, hasDesktopImporterState, hasOrderedCoordination, hasQuestionScope, hasWorkPredicate, hostLockContextFromComposedDump, hostLockRowsFromComposedDump, hostTrustDigest, hostVersionFromPackages, inject, injectActiveProfileHostLock, inspectActivationInventory, inspectDesktopTargetGraph, inspectTargetHostGraph, interpretClause, interpretMessage, introducesActionClause, isCurrentAcceptedBoundary, isDeterministicCheck, isExecutableItem, isExplanationScope, isFrozenV042RebindResponse, isInformationalFragment, isInformationalMessage, isOpenObligation, isQuestionScopeNeedingReview, isRestatement, isRootPauseRequest, isRunExecutable, isSelectedActivationReceipt, isStatefulAction, isVerifyingCapability, isWholeTaskCompletionClaim, itemDiagnosis, itemHoldsExecutionAuthority, kindOfScope, latestAssistantText, latestRootInstruction, legacyQuestionReadingIsInformational, legacyRecordsNeedingReview, lifecyclePhase, maskCodeSpans, maskQuotedSpans, memoizedAsarFile, memoizedAsarIndex, name, namedActions, nativeFileTwoRole, nativeGitParentOidVerified, normalizeClause, observeAssistantOutcome, openItems, opensConditionLead, opensWithDirective, packageRowsFromActiveGraph, packageRowsFromPnpmLock, parseConfirmationMessage, parseGitCommandManifest, parseHostTrust, parseHostVersion, parsePwshCommand, parseShellCommand, partialFailureOf, persistedToolResultStatus, prepareActivationMigration, prepareActiveHostTrust, prepareDesktopHostTrust, prepareSelectedActivationMigration, prepareTargetHostTrust, presentExplanationHead, previewFirstStepInjection, privateStorageToolDenial, progressFingerprint, projectCoreV2, projectSessionCoreV2, proofCapabilityReport, proofDigest, proofDigestV2, proofEvidenceConstraints, proofHostSurfacesOf, proofOperationMatches, proofV2Rejection, proposeRebind, proposeRebindOutcome, proposeRebindV042, qualificationOfClause, qualifyBoundary, qualifyHostTrust, questionHeadsClause, readActivationBinding, readActivationMigrationReceipt, readActiveHostGraph, readAsarFile, readAsarIndex, readDesktopAppRuntime, readDesktopDependency, readDesktopTargetGraph, rebindAttemptKey, rebindResponse, recoveryDigest, recoveryTitle, registryArchiveFiles, registryArchiveModules, relevantEvidence, removalIsComplete, removalIsPartiallyKnown, renderRecoveryPacket, replayRawV2, replayRebindResult, reportingHeadGoverns, requestedIdentityKey, requestedTargetAuthorizesMutation, requestedTargetMatchesResolved, requiredSubjectsOf, resolveActivationBindingsRoot, resolveActiveProfileHostLock, resolveDesktopProfileHostLock, resolveInstalledHostLock, resolveSessionActivation, restatedContentOf, revalidateDesktopCoreLock, revalidateGitPrestate, rootLocatorFlavor, sanitizeClauseText, sanitizeUrl, satisfiesSupportedHostRange, scanActivationInventory, scopeCoverageDigest, segmentAuthorityBlocks, segmentClauses, selectHostCohort, selectedActivationInventory, semanticActionFromCommand, semanticActionFromText, semanticActionOfScope, sessionBirthIdentity, sessionQuery, sessionQueryV2, sha256, shellReadbackOutcome, snapshotSessionEvents, splitTextFragments, statefulActionsOfScope, supersedeItem, testOutcomePredicate, v6CurrentRootBoundaries, v6TestPredicate, validateActionManifest, validateActionTarget, validateActivationBinding, validateActivationInventorySnapshot, validateActivationMigrationReceipt, validateActivationSelection, validateManifest, validateProofManifest, validateProofManifestV2, verbIsNegated, verifiedLinearCommitReadback, verifyComposedHostLockDump, verifyMigrationInventory, verifySelectedMigrationInventory, withDurability, writeActivationBinding, writeDesktopRuntimeReceipt };
|
|
7451
|
+
export { ACTION_MANIFEST, ACTION_MANIFEST_VERSION, ACTIVE_HOST_COHORT_ID, ACTIVE_HOST_COHORT_IDS, ACTIVE_HOST_LAUNCHER_VERSION, BASE_HOST_PACKAGES, BOUNDARY_RECORD_PREFIX, BOUNDED_ARTIFACT_TYPES, CAPTURE_V042_NOTICE, CERTIFICATE_VERSION, CERTIFICATE_VERSION_V2, CLEANUP_CONDITION_RULE, CLEANUP_CONDITION_RULE_COMPACT, CLEANUP_CONDITION_RULE_SHORT, COMMAND_SURFACE_MANIFEST, CONFIRM_LINE_PATTERN, CONTROL_RECORD_PREFIX, Config, DEFAULT_DELEGATION_TOOL_NAMES, DEFAULT_HOST_LOCK, DEFAULT_RECOVERY_CHAR_BUDGET, DEPENDENCY_FREE_ONLY_CONDITION, DESKTOP_IDENTITY_FACTS, DESKTOP_PROFILE_PACKAGE_NAME, DESKTOP_RUNTIME_PACKAGE_NAME, EXPECTED_HOST_PACKAGES, FIRST_STEP_GUIDANCE, GIT_COMMAND_MANIFEST_IDS, GIT_COMMAND_TEMPLATES, GOAL_HOST_PACKAGES, GRANTED_QUALIFICATION, HOST_CAPABILITY_PACKAGE_GROUPS, HOST_COHORTS, HOST_VALIDATED_VERSIONS, HostProfileError, HostTrustError, LATEST_TESTED_HOST_VERSION, LEGACY_QUALIFICATION, MIN_RECOVERY_CHAR_BUDGET, MIN_SUPPORTED_HOST_VERSION, NATIVE_GIT_ROOT_PARENT_OID, NO_PROGRESS_RECORD_PREFIX, NO_PROGRESS_TURNS_BEFORE_STOP, PROOF_CAPABILITY_MATRIX, PROOF_KINDS, PROOF_KINDS_V2, PROOF_MANIFEST_DOMAIN_V2, PROOF_PROTOCOL_VERSION, PROOF_PROTOCOL_VERSION_V2, PROTOCOL_V3_NOTICE, PROTOCOL_V4_NOTICE, PROTOCOL_V5_NOTICE, PROTOCOL_V6_NOTICE, RC020_RC1_HOST_PACKAGES, RC020_RC2_HOST_PACKAGES, RC021_RC2_HOST_PACKAGES, RC021_RC3_HOST_PACKAGES, RC021_RC5_HOST_PACKAGES, SEMANTIC_ACTIONS, SESSION_API_UNSUPPORTED, SESSION_EVENT_ENVELOPE_INVALID, STATEFUL_ACTIONS, STOP_PROTOCOL_VERSION, STOP_PROTOCOL_VERSION_V2, SUPPORTED_EVIDENCE_ADAPTERS, SUPPORTED_HOST_RANGE, SUPPORTED_HOST_VERSIONS, SessionApiError, V6_ORDINARY_COMPLETION_RULE, V6_ORDINARY_COMPLETION_RULE_COMPACT, V6_ORDINARY_COMPLETION_RULE_SHORT, __activationBindingInternals, acquireHostTrust, actionCompatible, actionHasCertificationPath, actionVerbMatches, activationBindingPath, activationCanonical, activationDigest, activationJson, activationSelectionPending, activeRendererModule, admissibleForRemoval, adoptActivationReceipt, apply, applyUpgradeEligibility, assertActivationBackendIdentity, assertActivationPhysicalRows, assessmentAction, assessmentOutcomePredicate, auditDesktopInstalledImplementation, auditedDefaultWorkdirHost, auditedDefaultWorkdirProvider, auditedForegroundRenderers, auditedHostImplementation, authorityCaptureCounts, availableBoundaryQualifications, bindActivationInventoryPhysical, bindExecutableIdentity, bindLiveGoalCapability, bindProofToProjection, bindProofV2ToProjection, bindingIndividuallyAccepted, bindingSatisfies, boundedArtifactChoiceMatches, canonicalArgvFromCommand, canonicalProjection, canonicalizePath, capabilityConsequence, capabilityFactOf, capabilityRemedyPhrase, captureActivationPhysicalInventory, captureClause, captureItem, carriesCleanupCondition, certifyCheckpoint, claimedBatchHasRealRootInput, clarifiedSpanOf, classifyClause, classifyCompletionClaim, classifyTaskIntent, classifyUserInteraction, clauseAsksOwnQuestion, clauseIsGoverned, clauseIsProtected, cleanupConditionFor, closingHint, combineHostPolicy, commitIndexSnapshotDigest, commitTreeSnapshotDigest, compareHostVersions, confirmRebind, createActivationMigrationReceipt, createActivationSelection, createGitPrestateEnvelope, createProjection, createProofManifest, createProofManifestV2, currentActionBases, currentContractDigest, decideTurnBoundary, decideTurnStopping, decisionBoundaryKey, deriveItemDiagnosis, deriveProjection, digestStrings, effectuateBoundary, environmentDefaultRepositoryTarget, evaluateActiveHostLock, evaluateConfiguredHostLock, evaluateExternalWaitCapability, evaluateGraphDerivedHostLock, evaluateHostCapability, evaluateHostLock, evaluateMinimumHostVersion, evaluateToolSurfaceCapability, evidenceAvailabilityReason, evidenceCoverage, evidenceFromPersistedToolResult, evidenceMatchesItem, executeRevalidatedGitEffect, explanationHasActionResidue, extractArtifactPaths, extractMethod, extractOperation, extractTextContent, extractToolSubject, firstStepGuidance, firstStepGuidanceV6, gitCommandMatchesTarget, goalCompletionDenial, governedClauseRestrictsExecution, guardActivationInventory, hasCurrentCertificate, hasDesktopImporterState, hasOrderedCoordination, hasQuestionScope, hasWorkPredicate, hostLockContextFromComposedDump, hostLockRowsFromComposedDump, hostTrustDigest, hostVersionFromPackages, inject, injectActiveProfileHostLock, inspectActivationInventory, inspectDesktopTargetGraph, inspectTargetHostGraph, interpretClause, interpretMessage, introducesActionClause, isCurrentAcceptedBoundary, isDeterministicCheck, isExecutableItem, isExplanationScope, isFrozenV042RebindResponse, isInformationalFragment, isInformationalMessage, isOpenObligation, isQuestionScopeNeedingReview, isRestatement, isRootPauseRequest, isRunExecutable, isSelectedActivationReceipt, isStatefulAction, isVerifyingCapability, isWholeTaskCompletionClaim, itemDiagnosis, itemHoldsExecutionAuthority, kindOfScope, latestAssistantText, latestRootInstruction, legacyQuestionReadingIsInformational, legacyRecordsNeedingReview, lifecyclePhase, maskCodeSpans, maskQuotedSpans, memoizedAsarFile, memoizedAsarIndex, name, namedActions, nativeFileTwoRole, nativeGitParentOidVerified, normalizeClause, observeAssistantOutcome, openItems, opensConditionLead, opensWithDirective, packageRowsFromActiveGraph, packageRowsFromPnpmLock, parseConfirmationMessage, parseGitCommandManifest, parseHostTrust, parseHostVersion, parsePwshCommand, parseShellCommand, partialFailureOf, persistedToolResultStatus, prepareActivationMigration, prepareActiveHostTrust, prepareDesktopHostTrust, prepareSelectedActivationMigration, prepareTargetHostTrust, presentExplanationHead, previewFirstStepInjection, privateStorageToolDenial, progressFingerprint, projectCoreV2, projectSessionCoreV2, proofCapabilityReport, proofDigest, proofDigestV2, proofEvidenceConstraints, proofHostSurfacesOf, proofOperationMatches, proofV2Rejection, proposeRebind, proposeRebindOutcome, proposeRebindV042, qualificationOfClause, qualifyBoundary, qualifyHostTrust, questionHeadsClause, readActivationBinding, readActivationMigrationReceipt, readActiveHostGraph, readAsarFile, readAsarIndex, readDesktopAppRuntime, readDesktopDependency, readDesktopTargetGraph, rebindAttemptKey, rebindResponse, recoveryDigest, recoveryTitle, registryArchiveFiles, registryArchiveModules, relevantEvidence, removalIsComplete, removalIsPartiallyKnown, renderRecoveryPacket, replayRawV2, replayRebindResult, reportingHeadGoverns, requestedIdentityKey, requestedTargetAuthorizesMutation, requestedTargetMatchesResolved, requiredSubjectsOf, resolveActivationBindingsRoot, resolveActivationPersistencePlugin, resolveActiveProfileHostLock, resolveDesktopProfileHostLock, resolveInstalledHostLock, resolveSessionActivation, restatedContentOf, revalidateDesktopCoreLock, revalidateGitPrestate, rootLocatorFlavor, sanitizeClauseText, sanitizeUrl, satisfiesSupportedHostRange, scanActivationInventory, scopeCoverageDigest, segmentAuthorityBlocks, segmentClauses, selectHostCohort, selectedActivationInventory, semanticActionFromCommand, semanticActionFromText, semanticActionOfScope, sessionBirthIdentity, sessionQuery, sessionQueryV2, sha256, shellReadbackOutcome, snapshotSessionEvents, splitTextFragments, statefulActionsOfScope, stripUrlCredentials, supersedeItem, testOutcomePredicate, v6CurrentRootBoundaries, v6TestPredicate, validateActionManifest, validateActionTarget, validateActivationBinding, validateActivationInventorySnapshot, validateActivationMigrationReceipt, validateActivationSelection, validateManifest, validateProofManifest, validateProofManifestV2, verbIsNegated, verifiedLinearCommitReadback, verifyComposedHostLockDump, verifyMigrationInventory, verifySelectedMigrationInventory, withDurability, writeActivationBinding, writeDesktopRuntimeReceipt };
|