openmeld 0.3.212 → 0.3.213
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/dist/{add-me-membership-BwPpVKtA.js → add-me-membership-GbaxKxz-.js} +2 -2
- package/dist/{add-me-membership-BwPpVKtA.js.map → add-me-membership-GbaxKxz-.js.map} +1 -1
- package/dist/{agents-Y-UJ74By.js → agents-BNoz9DA5.js} +6 -6
- package/dist/{agents-Y-UJ74By.js.map → agents-BNoz9DA5.js.map} +1 -1
- package/dist/{api-client-foundation-CrQN8_-N.js → api-client-foundation-TEBOwWl1.js} +1 -1
- package/dist/{api-client-foundation-DjbtuE52.js → api-client-foundation-km8Ol1P4.js} +3 -3
- package/dist/{api-client-foundation-DjbtuE52.js.map → api-client-foundation-km8Ol1P4.js.map} +1 -1
- package/dist/auth-session-D6UDl3r3.js +4 -0
- package/dist/{auth-session-Dqz9X4F0.js → auth-session-DgHvRt5i.js} +61 -4
- package/dist/auth-session-DgHvRt5i.js.map +1 -0
- package/dist/{command-jgHbP21v.js → command-Dsa8gaFe.js} +10 -10
- package/dist/{command-jgHbP21v.js.map → command-Dsa8gaFe.js.map} +1 -1
- package/dist/computer-connection-D8tX14R_.js +120 -0
- package/dist/computer-connection-D8tX14R_.js.map +1 -0
- package/dist/{computer-connection-review-CzSpaHE0.js → computer-connection-review-CjOXBWiV.js} +6 -6
- package/dist/{computer-connection-review-CzSpaHE0.js.map → computer-connection-review-CjOXBWiV.js.map} +1 -1
- package/dist/{computer-disconnect-DNM7jvda.js → computer-disconnect-k6UVCsVF.js} +8 -8
- package/dist/{computer-disconnect-DNM7jvda.js.map → computer-disconnect-k6UVCsVF.js.map} +1 -1
- package/dist/{computer-setup-continuation-BqdhIAjT.js → computer-setup-continuation-DhY_sJis.js} +4 -4
- package/dist/{computer-setup-continuation-BqdhIAjT.js.map → computer-setup-continuation-DhY_sJis.js.map} +1 -1
- package/dist/{control-plane-PxntAyDq.js → control-plane-Bpu7g9Av.js} +2 -2
- package/dist/{control-plane-PxntAyDq.js.map → control-plane-Bpu7g9Av.js.map} +1 -1
- package/dist/{daemon-service-runtime-CWTlAhZY.js → daemon-service-runtime-CY6wdBe1.js} +94 -13
- package/dist/daemon-service-runtime-CY6wdBe1.js.map +1 -0
- package/dist/{daemon-service-update-coordinator-DcjOzGu1.js → daemon-service-update-coordinator-BcbbIDzC.js} +350 -164
- package/dist/daemon-service-update-coordinator-BcbbIDzC.js.map +1 -0
- package/dist/{dist--pb6JxqG.js → dist-Bsz_wafH.js} +1 -1
- package/dist/{dist-jsWwS864.js → dist-CAx_kxvt.js} +71 -32
- package/dist/dist-CAx_kxvt.js.map +1 -0
- package/dist/{elapsed-time-iFOSSUJo.js → elapsed-time-Do3uIV__.js} +8 -6
- package/dist/{elapsed-time-iFOSSUJo.js.map → elapsed-time-Do3uIV__.js.map} +1 -1
- package/dist/{installation-inventory-B0cbVLun.js → installation-inventory-C92AkQkA.js} +3 -3
- package/dist/{installation-inventory-B0cbVLun.js.map → installation-inventory-C92AkQkA.js.map} +1 -1
- package/dist/{local-components-H3SkJMC1.js → local-components-B6SCXZf9.js} +10 -2
- package/dist/local-components-B6SCXZf9.js.map +1 -0
- package/dist/{openmeld-B4gQCCex.js → openmeld-I4pLxQsY.js} +34 -23
- package/dist/openmeld-I4pLxQsY.js.map +1 -0
- package/dist/{openmeld-maintenance-worker-DtY_H7Bv.js → openmeld-maintenance-worker-D5VAO9GD.js} +5 -5
- package/dist/{openmeld-maintenance-worker-DtY_H7Bv.js.map → openmeld-maintenance-worker-D5VAO9GD.js.map} +1 -1
- package/dist/{openmeld-tools-update-join-DS_EIL5q.js → openmeld-tools-update-join-DsQdgYNw.js} +6 -4
- package/dist/{openmeld-tools-update-join-DS_EIL5q.js.map → openmeld-tools-update-join-DsQdgYNw.js.map} +1 -1
- package/dist/{openmeld-tools-update-process-frame-CbZPpc7D.js → openmeld-tools-update-process-frame-0X-t0Kjv.js} +2 -2
- package/dist/{openmeld-tools-update-process-frame-CbZPpc7D.js.map → openmeld-tools-update-process-frame-0X-t0Kjv.js.map} +1 -1
- package/dist/{openmeld-tools-update-process-frame-CcPLrSsw.js → openmeld-tools-update-process-frame-DX1Dc8VI.js} +1 -1
- package/dist/openmeld.js +4 -4
- package/dist/{prepare-session-executor-CWKqfuse.js → prepare-session-executor-BEzlM0hJ.js} +171 -18
- package/dist/prepare-session-executor-BEzlM0hJ.js.map +1 -0
- package/dist/{runtime-transport-BQAmcHwF.js → runtime-transport-DxISZdzf.js} +22 -5
- package/dist/runtime-transport-DxISZdzf.js.map +1 -0
- package/dist/{service-CTG3_X0o.js → service-Cev-7yAJ.js} +239 -50
- package/dist/service-Cev-7yAJ.js.map +1 -0
- package/dist/{service-account-authorization-Dq4LcAVa.js → service-account-authorization-AbowIr6n.js} +3 -3
- package/dist/{service-account-authorization-Dq4LcAVa.js.map → service-account-authorization-AbowIr6n.js.map} +1 -1
- package/dist/{service-account-control-BTR_X7QM.js → service-account-control-BV_tBiio.js} +6 -6
- package/dist/{service-account-control-BTR_X7QM.js.map → service-account-control-BV_tBiio.js.map} +1 -1
- package/dist/{service-control-capabilities-ChRe8hkw.js → service-control-capabilities-BGXPenm1.js} +1 -1
- package/dist/{service-control-capabilities-C5SxnBg2.js → service-control-capabilities-DUudAKoj.js} +2 -2
- package/dist/{service-control-capabilities-C5SxnBg2.js.map → service-control-capabilities-DUudAKoj.js.map} +1 -1
- package/dist/{upgrade-DAVEeo8B.js → upgrade-9h70HCQP.js} +10 -7
- package/dist/{upgrade-DAVEeo8B.js.map → upgrade-9h70HCQP.js.map} +1 -1
- package/dist/upgrade-CXgHeEKK.js +4 -0
- package/package.json +2 -2
- package/dist/auth-session-Dqz9X4F0.js.map +0 -1
- package/dist/auth-session-bRzDGlXy.js +0 -4
- package/dist/computer-connection-DvqsgYls.js +0 -81
- package/dist/computer-connection-DvqsgYls.js.map +0 -1
- package/dist/daemon-service-runtime-CWTlAhZY.js.map +0 -1
- package/dist/daemon-service-update-coordinator-DcjOzGu1.js.map +0 -1
- package/dist/dist-jsWwS864.js.map +0 -1
- package/dist/local-components-H3SkJMC1.js.map +0 -1
- package/dist/openmeld-B4gQCCex.js.map +0 -1
- package/dist/prepare-session-executor-CWKqfuse.js.map +0 -1
- package/dist/runtime-transport-BQAmcHwF.js.map +0 -1
- package/dist/service-CTG3_X0o.js.map +0 -1
- package/dist/upgrade-DKXu-1wO.js +0 -4
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
import { n as toDaemonRouteObservationUrl } from "./urls-CY2uzH2-.js";
|
|
4
4
|
import { t as isLoopbackHostname } from "./loopback-hostname-DHQPKq8N.js";
|
|
5
5
|
import { B as deviceOpenClawProfileBootstrapPath, C as isProcessIdentityAlive, H as deviceOpenClawProfileWorkspaceDir, I as accountProfileViewPath, L as accountProfileWorkspacePath, N as OPENMELD_HOME_ENV_KEY, P as accountProfileLocalMetaPath, Q as openMeldBackupsDir, S as CURRENT_PROCESS_START_IDENTITY, V as deviceOpenClawProfileDir, X as normalizeAccountKey, Z as normalizeOpenMeldProfileId, _ as resolveCliContext, a as isOpenMeldOrphanedLockError, d as runWithHeldLock, dt as resolveOpenMeldEnvPreset, ft as resolveOpenMeldRootDir, g as readCliContextState, h as listCliContextStates, ht as runtimeDir, i as isOpenMeldLockError, q as isPublishedOpenMeldHome, rt as openMeldRootDir, t as acquireLock, tt as openMeldManagedVersionBinaryPath, y as writeCliContextState, yt as systemDir } from "./lock-Dxp6o_t_.js";
|
|
6
|
-
import { Ar as modelCatalogSchema, Ci as agentControllerCollaborationModeSchema, Gn as OPENMELD_HEADER_PROFILE_ID, Kt as createLocalRuntimeExpectedRoutesApi, Mt as createAgentProfileBindingApi, Si as agentControllerPermissionModeSchema, Xn as toErrorMessage$24, jn as toStructuredApiClientFailure, t as OpenMeldApiClientHttpError, xi as openCodePermissionConfigSchema, zt as createCurrentDeviceApi } from "./dist-
|
|
6
|
+
import { Ar as modelCatalogSchema, Ci as agentControllerCollaborationModeSchema, Gn as OPENMELD_HEADER_PROFILE_ID, Kt as createLocalRuntimeExpectedRoutesApi, Mt as createAgentProfileBindingApi, Si as agentControllerPermissionModeSchema, Xn as toErrorMessage$24, jn as toStructuredApiClientFailure, t as OpenMeldApiClientHttpError, xi as openCodePermissionConfigSchema, zt as createCurrentDeviceApi } from "./dist-CAx_kxvt.js";
|
|
7
7
|
import { _ as canonicalizeAgentControllerRef, b as normalizeKnownBuiltinAgentControllerId, d as resolveBuiltinAgentControllerConversationKind, f as HOSTED_CENTER_AGENT_CONTROLLER_REF, g as buildAgentControllerRoutingKey, l as buildAgentControllerConversationRef, m as HOSTED_REMOTE_AGENT_CONTROLLER_REF, n as runtimeAgentControllerConversationIdMappingSpecSchema, o as runtimeStreamingModeSchema, p as HOSTED_CENTER_AGENT_CONTROLLER_REF_ID, r as runtimeAgentControllerLaunchContractSchema, s as runtimeTransportModeSchema, u as conversationPolicySchema, v as canonicalizeBuiltinAgentControllerRef, x as parseAgentControllerRef$1 } from "./controller-contract-pe3_Re-c.js";
|
|
8
|
-
import { An as normalizeMessageEnvelope, B as isOriginalErrorSafeForMessageDetails, Br as ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE, Dn as formatCanonicalMentionLiteral, G as openMeldDaemonTaskResultOpenClawGatewayVisibilityStatusSchema, Gr as profileErrorResponseSchema, Hr as authProfileManagedRoleSchema, Jn as agentInteractionResolutionSchema, Lr as localAgentCatalogSchema, N as runtimeTransportRejectedProfileRegistrationSchema, O as runtimeTransportLookupRouteOwnerServiceEvidenceSchema, Qr as resolveCommandAgentWorkActivity, U as openMeldDaemonProviderAccessEvidenceSchema, W as openMeldDaemonTaskResultEnvelopeWriteSchema, Wr as profileCapabilitiesResponseSchema, X as resolvePublicAgentAvailabilityCopy, Yr as openMeldProfileIdSchema, Z as resolvePublicAgentFailureRecovery, _ as runtimeTransportErrorCodeSchema, i as localWakeRouteReportSchema, n as daemonExecutionCompatibilitySchema, o as runtimeTransportCapabilitiesSchema, t as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, z as OPENMELD_ORIGINAL_ERROR_MAX_LENGTH, zr as ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE } from "./runtime-transport-
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
8
|
+
import { An as normalizeMessageEnvelope, B as isOriginalErrorSafeForMessageDetails, Br as ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE, Dn as formatCanonicalMentionLiteral, G as openMeldDaemonTaskResultOpenClawGatewayVisibilityStatusSchema, Gr as profileErrorResponseSchema, Hr as authProfileManagedRoleSchema, Jn as agentInteractionResolutionSchema, Lr as localAgentCatalogSchema, N as runtimeTransportRejectedProfileRegistrationSchema, O as runtimeTransportLookupRouteOwnerServiceEvidenceSchema, Qr as resolveCommandAgentWorkActivity, U as openMeldDaemonProviderAccessEvidenceSchema, W as openMeldDaemonTaskResultEnvelopeWriteSchema, Wr as profileCapabilitiesResponseSchema, X as resolvePublicAgentAvailabilityCopy, Yr as openMeldProfileIdSchema, Z as resolvePublicAgentFailureRecovery, _ as runtimeTransportErrorCodeSchema, i as localWakeRouteReportSchema, n as daemonExecutionCompatibilitySchema, o as runtimeTransportCapabilitiesSchema, t as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, z as OPENMELD_ORIGINAL_ERROR_MAX_LENGTH, zr as ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE } from "./runtime-transport-DxISZdzf.js";
|
|
9
|
+
import { $ as RUNTIME_AGENT_CONTROLLER_REPORT_SYNC_RETRY_INTERVAL_MS$1, B as DEFAULT_HEARTBEAT_INTERVAL_MS$1, F as DAEMON_RUNTIME_CONTRACT_EPOCH$1, G as MIN_HEARTBEAT_INTERVAL_MS$2, H as HEARTBEAT_RESPONSE_TIMEOUT_MS$1, I as DAEMON_STREAM_CONNECT_TIMEOUT_MS$1, J as PROVIDER_CONVERSATION_PROOF_SYNC_INTERVAL_MS$1, L as DAEMON_STREAM_KEEPALIVE_INTERVAL_MS$1, N as CATALOG_SYNC_RETRY_INTERVAL_MS$1, P as CATALOG_SYNC_SIGNAL_POLL_INTERVAL_MS$1, Q as RUNTIME_AGENT_CONTROLLER_REPORT_SYNC_INTERVAL_MS$1, R as DAEMON_STREAM_KEEPALIVE_PONG_TIMEOUT_MS$1, U as MAX_HEARTBEAT_INTERVAL_MS$2, X as REGISTER_RESPONSE_TIMEOUT_MS$1, Y as PROVIDER_CONVERSATION_PROOF_SYNC_RETRY_INTERVAL_MS$1, d as getAuthSessionState, et as RUNTIME_STATE_PERSIST_MIN_INTERVAL_MS$1, m as hasPendingComputerSetupContinuation, q as OPENCLAW_CLI_TIMEOUT_MS$1, z as DEFAULT_GATEWAY_CHAIN_TIMEOUT_MS$1 } from "./auth-session-DgHvRt5i.js";
|
|
10
|
+
import { A as profileWorkspaceModeSchema, C as normalizeOptionalWorkingDirectory, S as agentProfileIdSchema, _ as providerDispatchRuntimeContextSchema, a as openMeldDaemonControlPlaneResponseSchema, g as skippedDaemonProfileSchema, i as openMeldDaemonControlPlaneRequestSchema, x as MAX_PROFILE_WORKING_DIRECTORY_LENGTH, y as conversationExecutionStateSchema } from "./control-plane-Bpu7g9Av.js";
|
|
11
|
+
import { v as openMeldToolsUpdateAttemptSchema, w as openMeldToolsUpdateRequestSourceSchema } from "./local-components-B6SCXZf9.js";
|
|
11
12
|
import { r as daemonServiceLaneSchema } from "./service-contract-CRyDcIIf.js";
|
|
12
|
-
import { $ as RUNTIME_AGENT_CONTROLLER_REPORT_SYNC_RETRY_INTERVAL_MS$1, B as DEFAULT_HEARTBEAT_INTERVAL_MS$1, F as DAEMON_RUNTIME_CONTRACT_EPOCH$1, G as MIN_HEARTBEAT_INTERVAL_MS$2, H as HEARTBEAT_RESPONSE_TIMEOUT_MS$1, I as DAEMON_STREAM_CONNECT_TIMEOUT_MS$1, J as PROVIDER_CONVERSATION_PROOF_SYNC_INTERVAL_MS$1, L as DAEMON_STREAM_KEEPALIVE_INTERVAL_MS$1, N as CATALOG_SYNC_RETRY_INTERVAL_MS$1, P as CATALOG_SYNC_SIGNAL_POLL_INTERVAL_MS$1, Q as RUNTIME_AGENT_CONTROLLER_REPORT_SYNC_INTERVAL_MS$1, R as DAEMON_STREAM_KEEPALIVE_PONG_TIMEOUT_MS$1, U as MAX_HEARTBEAT_INTERVAL_MS$2, X as REGISTER_RESPONSE_TIMEOUT_MS$1, Y as PROVIDER_CONVERSATION_PROOF_SYNC_RETRY_INTERVAL_MS$1, d as getAuthSessionState, et as RUNTIME_STATE_PERSIST_MIN_INTERVAL_MS$1, m as hasPendingComputerSetupContinuation, q as OPENCLAW_CLI_TIMEOUT_MS$1, z as DEFAULT_GATEWAY_CHAIN_TIMEOUT_MS$1 } from "./auth-session-Dqz9X4F0.js";
|
|
13
13
|
import { n as resolveOpenMeldDistribution, t as isBinaryDistribution } from "./distribution-DY2fBeSW.js";
|
|
14
14
|
import { r as readDaemonRuntimeLease } from "./daemon-runtime-lease-Dd4hdHNo.js";
|
|
15
|
-
import { $ as readManagedCliInstallation, A as prepareDaemonServiceBundle, B as resolveDaemonServiceArtifact, Bt as isUnsafeProductionDeviceId, C as daemonServiceExecutableWrapperPath, Ct as resolveDaemonServiceUpdateWorkerLaunchdPlistPath, D as ensureDaemonServiceStableBinaryExecutable, Dt as resolveDaemonServiceUpdateWorkerWindowsScriptPath, E as discardPreparedDaemonServiceBundle, Et as resolveDaemonServiceUpdateWorkerSystemdUnitPath, F as restoreDaemonActiveBundleStateSnapshot, Ft as requestLocalDaemonShutdown, Ht as upsertDaemonServiceContract, I as runAuditedServiceManagerCarrierMutation, It as requestLocalSyncRouteCatalog, L as verifyDaemonActiveBundleIntegrity, Mt as LocalDaemonControlPlaneClientError, N as resolveDaemonBundleEntryPathFromState, O as ensureDaemonServiceUpdateWorkerBinaryExecutable, P as resolveInstalledDaemonBundleFingerprint, Pt as requestLocalDaemonServiceUpdateReadiness, Q as pruneManagedInstallVersions, R as writeDaemonServiceExecutableWrapper, Rt as clearDaemonServiceContract, S as daemonServiceBinaryExecutablePath, St as resolveDaemonServiceUpdateWorkerIdentity, T as daemonServiceUpdateWorkerBinaryPath, Tt as resolveDaemonServiceUpdateWorkerSystemdTimerUnitPath, U as readLatestDaemonLifecycleConnectionStateEvent, V as emitDaemonLifecycleEvent, Vt as readDaemonServiceContract, W as readLatestDaemonLifecycleOriginEvent, _ as matchesExpectedDaemonServiceManagerDefinition, a as resolveDaemonRuntimeState, at as persistPendingDaemonServiceUpdate, bt as daemonServiceUpdateWorkerNpmEntryPath, c as resolveObservedDaemonRuntimeStatus, ct as buildNextVersionState, d as inspectLegacySharedDaemonService, et as resolveCliSelfVersion, f as listDaemonOwnedProcesses, ft as fetchLatestPackageInfo, g as assertDaemonMaintenanceInstallationOwnership, gt as resolveBundledServiceRelease, ht as writeVersionState, i as readCurrentObservedDaemonRuntimeStatus, it as completePendingDaemonServiceUpdate, j as readDaemonActiveBundleState, k as isDaemonBundleSourceAllowedForLane, l as resolveObservedRuntimeCommandEntryPath, lt as compareSemver, m as normalizeDaemonCommandPath, mt as readVersionState, n as getEffectiveDaemonRuntimeStatus, nt as OPENMELD_VERSION, o as resolveDaemonServiceManagerForRuntimeState, pt as isPlainReleaseVersion, q as runDaemonServiceManagerAction, r as readCurrentDaemonRuntimeContext, rt as DAEMON_SERVICE_UPDATE_JOB_SCHEMA, s as waitForDaemonSystemServiceToStop, st as readPendingDaemonServiceUpdate, t as clearDaemonRuntimeStateIfDefinitelyStopped, tt as withManagedInstallTransaction, u as cleanupLegacySharedDaemonServiceState, vt as INDEPENDENT_MAINTENANCE_REGISTRATION, w as daemonServiceLauncherPath, wt as resolveDaemonServiceUpdateWorkerSystemdPathUnitPath, x as clearDaemonServiceUpdateWorkerBinaryExecutable, xt as hasIndependentMaintenanceRegistration, y as activateDaemonServiceBundle, yt as configureDaemonMaintenanceEnvironment, z as writeDaemonServiceLauncher, zt as isDaemonServiceContractIdentityReusable } from "./daemon-service-runtime-
|
|
15
|
+
import { $ as readManagedCliInstallation, A as prepareDaemonServiceBundle, B as resolveDaemonServiceArtifact, Bt as isUnsafeProductionDeviceId, C as daemonServiceExecutableWrapperPath, Ct as resolveDaemonServiceUpdateWorkerLaunchdPlistPath, D as ensureDaemonServiceStableBinaryExecutable, Dt as resolveDaemonServiceUpdateWorkerWindowsScriptPath, E as discardPreparedDaemonServiceBundle, Et as resolveDaemonServiceUpdateWorkerSystemdUnitPath, F as restoreDaemonActiveBundleStateSnapshot, Ft as requestLocalDaemonShutdown, Ht as upsertDaemonServiceContract, I as runAuditedServiceManagerCarrierMutation, It as requestLocalSyncRouteCatalog, L as verifyDaemonActiveBundleIntegrity, Mt as LocalDaemonControlPlaneClientError, N as resolveDaemonBundleEntryPathFromState, O as ensureDaemonServiceUpdateWorkerBinaryExecutable, P as resolveInstalledDaemonBundleFingerprint, Pt as requestLocalDaemonServiceUpdateReadiness, Q as pruneManagedInstallVersions, R as writeDaemonServiceExecutableWrapper, Rt as clearDaemonServiceContract, S as daemonServiceBinaryExecutablePath, St as resolveDaemonServiceUpdateWorkerIdentity, T as daemonServiceUpdateWorkerBinaryPath, Tt as resolveDaemonServiceUpdateWorkerSystemdTimerUnitPath, U as readLatestDaemonLifecycleConnectionStateEvent, V as emitDaemonLifecycleEvent, Vt as readDaemonServiceContract, W as readLatestDaemonLifecycleOriginEvent, _ as matchesExpectedDaemonServiceManagerDefinition, a as resolveDaemonRuntimeState, at as persistPendingDaemonServiceUpdate, bt as daemonServiceUpdateWorkerNpmEntryPath, c as resolveObservedDaemonRuntimeStatus, ct as buildNextVersionState, d as inspectLegacySharedDaemonService, et as resolveCliSelfVersion, f as listDaemonOwnedProcesses, ft as fetchLatestPackageInfo, g as assertDaemonMaintenanceInstallationOwnership, gt as resolveBundledServiceRelease, ht as writeVersionState, i as readCurrentObservedDaemonRuntimeStatus, it as completePendingDaemonServiceUpdate, j as readDaemonActiveBundleState, k as isDaemonBundleSourceAllowedForLane, l as resolveObservedRuntimeCommandEntryPath, lt as compareSemver, m as normalizeDaemonCommandPath, mt as readVersionState, n as getEffectiveDaemonRuntimeStatus, nt as OPENMELD_VERSION, o as resolveDaemonServiceManagerForRuntimeState, pt as isPlainReleaseVersion, q as runDaemonServiceManagerAction, r as readCurrentDaemonRuntimeContext, rt as DAEMON_SERVICE_UPDATE_JOB_SCHEMA, s as waitForDaemonSystemServiceToStop, st as readPendingDaemonServiceUpdate, t as clearDaemonRuntimeStateIfDefinitelyStopped, tt as withManagedInstallTransaction, u as cleanupLegacySharedDaemonServiceState, vt as INDEPENDENT_MAINTENANCE_REGISTRATION, w as daemonServiceLauncherPath, wt as resolveDaemonServiceUpdateWorkerSystemdPathUnitPath, x as clearDaemonServiceUpdateWorkerBinaryExecutable, xt as hasIndependentMaintenanceRegistration, y as activateDaemonServiceBundle, yt as configureDaemonMaintenanceEnvironment, z as writeDaemonServiceLauncher, zt as isDaemonServiceContractIdentityReusable } from "./daemon-service-runtime-CY6wdBe1.js";
|
|
16
16
|
import { i as windowsTaskActionArguments, n as runWindowsUserTask, r as windowsPowerShellPath } from "./windows-user-task-DqJWtlAm.js";
|
|
17
17
|
import { C as updateConfiguredDeviceRuntimeState, T as updateConfiguredSkillsConfig, _ as getConfiguredViewCustomization, a as resolveBaseUrl, c as resolveExplicitGatewayUrlOrThrow, d as createDefaultRuntimeAgentControllerSettings, g as getConfiguredSkillsConfig, h as getConfiguredOpenMeldToolsMaintenance, i as normalizeGatewayBaseUrlOrNull, o as resolveBaseUrlOrNull, p as getConfiguredDeviceRuntimeState, v as getRuntimeConfigReadHealth, x as setConfiguredOpenMeldToolsMaintenance, y as resolveRuntimeSkillsCustomTargetId } from "./base-url-C6sHRNGu.js";
|
|
18
18
|
import { n as writeDaemonLocalStateFile, t as readDaemonLocalStateFile } from "./daemon-local-state-file-jOXuXrky.js";
|
|
@@ -20,8 +20,8 @@ import { A as getDaemonStatus, B as restoreDaemonInstallStateSnapshot, F as read
|
|
|
20
20
|
import { O as assertSafePublishedProductionServiceRegistrationMutation, S as resolveDaemonServiceManager, T as waitForLaunchdJobUnloaded, a as disableDaemonServiceAutostartIfConfigured, c as getDaemonSystemServiceLogPath, o as formatDaemonServiceJobDiagnosticsEvidence, s as getDaemonServiceLaunchdLabel, v as readDaemonServiceStartupPolicyCurrent, w as startLaunchdService } from "./daemon-service-manager-GiMCiTmu.js";
|
|
21
21
|
import { a as formatOpenMeldCliCommand, c as formatOpenMeldCliTextBlock, i as formatInlineOpenMeldCliCommands, n as resolveOpenMeldEnvironmentTargetFromEnv, o as formatOpenMeldCliCommands, r as resolveAuthBaseUrl, t as resolveOpenMeldEnvironmentTarget } from "./openmeld-environment-target-NtJYJe1D.js";
|
|
22
22
|
import { n as toErrorMessage$25, t as sleep } from "./dist-o3UL1EGQ.js";
|
|
23
|
-
import { c as buildRequestAuthHeaders, d as buildOpenMeldRequestContextFromProfile, n as fetchSpaceRequestWithTimeout, s as buildOpenMeldRequestContextHeadersWithAuth, t as createCliApiClientFoundation } from "./api-client-foundation-
|
|
24
|
-
import { a as encodePersistedOpenMeldToolsUpdateFailure, i as OpenMeldToolsUpdateFailureError, o as resolveOpenMeldToolsUpdateFailure, r as parseOpenMeldToolsUpdateFailureFrame, t as appendBoundedOpenMeldToolsUpdateProcessOutput } from "./openmeld-tools-update-process-frame-
|
|
23
|
+
import { c as buildRequestAuthHeaders, d as buildOpenMeldRequestContextFromProfile, n as fetchSpaceRequestWithTimeout, s as buildOpenMeldRequestContextHeadersWithAuth, t as createCliApiClientFoundation } from "./api-client-foundation-km8Ol1P4.js";
|
|
24
|
+
import { a as encodePersistedOpenMeldToolsUpdateFailure, i as OpenMeldToolsUpdateFailureError, o as resolveOpenMeldToolsUpdateFailure, r as parseOpenMeldToolsUpdateFailureFrame, t as appendBoundedOpenMeldToolsUpdateProcessOutput } from "./openmeld-tools-update-process-frame-0X-t0Kjv.js";
|
|
25
25
|
import { createRequire } from "node:module";
|
|
26
26
|
import { createHash, randomUUID } from "node:crypto";
|
|
27
27
|
import { homedir, loadavg, tmpdir, userInfo } from "node:os";
|
|
@@ -231,7 +231,7 @@ function resolveOpenMeldAccountContext(input) {
|
|
|
231
231
|
};
|
|
232
232
|
}
|
|
233
233
|
async function resolveCurrentOpenMeldAccountContext() {
|
|
234
|
-
const { getAuthSessionMetadata } = await import("./auth-session-
|
|
234
|
+
const { getAuthSessionMetadata } = await import("./auth-session-D6UDl3r3.js");
|
|
235
235
|
return resolveOpenMeldAccountContext({ session: await getAuthSessionMetadata().catch(() => null) });
|
|
236
236
|
}
|
|
237
237
|
function resolveHostKey(baseUrl) {
|
|
@@ -7125,6 +7125,7 @@ const CONTROL_REQUEST_TIMEOUT_MS_BY_OPERATION = {
|
|
|
7125
7125
|
"collaborationMode/list": FAST_METADATA_ADMISSION_TIMEOUT_MS,
|
|
7126
7126
|
"thread/fork": COLD_CONTROLLER_ADMISSION_TIMEOUT_MS,
|
|
7127
7127
|
"thread/name/set": FAST_METADATA_ADMISSION_TIMEOUT_MS,
|
|
7128
|
+
"thread/read": FAST_METADATA_ADMISSION_TIMEOUT_MS,
|
|
7128
7129
|
"thread/resume": COLD_CONTROLLER_ADMISSION_TIMEOUT_MS,
|
|
7129
7130
|
"thread/start": COLD_CONTROLLER_ADMISSION_TIMEOUT_MS,
|
|
7130
7131
|
"turn/start": COLD_CONTROLLER_ADMISSION_TIMEOUT_MS
|
|
@@ -7697,52 +7698,22 @@ async function invokeCodexAppServerTransport(input) {
|
|
|
7697
7698
|
session.emitProviderConversationObserved(continuityThreadId);
|
|
7698
7699
|
session.observeReasoningForThread(executionThreadId);
|
|
7699
7700
|
throwIfCodexDispatchCancelled(input.cancellationSignal);
|
|
7700
|
-
const
|
|
7701
|
-
|
|
7702
|
-
|
|
7703
|
-
|
|
7704
|
-
|
|
7705
|
-
...reasoningSummary,
|
|
7706
|
-
input: [{
|
|
7707
|
-
text: turnPrompt,
|
|
7708
|
-
text_elements: [],
|
|
7709
|
-
type: "text"
|
|
7710
|
-
}],
|
|
7711
|
-
threadId: executionThreadId
|
|
7712
|
-
}, {
|
|
7713
|
-
code: "runtime.turn_start_timeout",
|
|
7714
|
-
operation: "turn/start"
|
|
7715
|
-
}));
|
|
7716
|
-
const turnId = readRequiredText(turn.id, "turn/start response turn.id");
|
|
7717
|
-
session.emitProviderTurnAccepted({
|
|
7718
|
-
threadId: executionThreadId,
|
|
7719
|
-
turnId
|
|
7720
|
-
});
|
|
7721
|
-
session.setNewSessionTitleInBackground({
|
|
7722
|
-
existingThreadId: input.threadId,
|
|
7701
|
+
const completedTurn = await startAndAwaitAppServerTurn({
|
|
7702
|
+
cancellationSignal: input.cancellationSignal,
|
|
7703
|
+
collaborationMode,
|
|
7704
|
+
conversationPolicyParams,
|
|
7705
|
+
codexWorkdir: input.codexWorkdir,
|
|
7723
7706
|
executionMode: input.executionMode,
|
|
7724
|
-
|
|
7725
|
-
|
|
7726
|
-
|
|
7727
|
-
const unregisterActiveTurn = session.registerActiveTurn({
|
|
7707
|
+
executionThreadId,
|
|
7708
|
+
existingThreadId: input.threadId,
|
|
7709
|
+
newSessionTitle: input.newSessionTitle,
|
|
7728
7710
|
onActiveTurn: input.onActiveTurn,
|
|
7711
|
+
permissionModeParams: permissionModeParams.turn,
|
|
7712
|
+
reasoningSummary,
|
|
7713
|
+
session,
|
|
7729
7714
|
taskId: input.taskId,
|
|
7730
|
-
|
|
7731
|
-
turnId
|
|
7732
|
-
});
|
|
7733
|
-
if (input.cancellationSignal?.aborted && turn.status !== "completed") await session.request("turn/interrupt", {
|
|
7734
|
-
threadId: executionThreadId,
|
|
7735
|
-
turnId
|
|
7715
|
+
turnPrompt
|
|
7736
7716
|
});
|
|
7737
|
-
let completedTurn;
|
|
7738
|
-
try {
|
|
7739
|
-
completedTurn = turn.status === "completed" ? turn : await session.waitForTurnCompleted({
|
|
7740
|
-
threadId: executionThreadId,
|
|
7741
|
-
turnId
|
|
7742
|
-
});
|
|
7743
|
-
} finally {
|
|
7744
|
-
unregisterActiveTurn?.();
|
|
7745
|
-
}
|
|
7746
7717
|
const interactionFailure = session.readInteractionFailure();
|
|
7747
7718
|
if (interactionFailure) throw new CodexAppServerTransportError({
|
|
7748
7719
|
code: interactionFailure.code,
|
|
@@ -7769,6 +7740,69 @@ async function invokeCodexAppServerTransport(input) {
|
|
|
7769
7740
|
};
|
|
7770
7741
|
});
|
|
7771
7742
|
}
|
|
7743
|
+
async function startAndAwaitAppServerTurn(input) {
|
|
7744
|
+
const { session, executionThreadId } = input;
|
|
7745
|
+
let activeTurnId = null;
|
|
7746
|
+
let interruptRequested = false;
|
|
7747
|
+
let interruptSent = false;
|
|
7748
|
+
const sendInterruptIfActive = async (targetTurnId) => {
|
|
7749
|
+
if (interruptSent) return;
|
|
7750
|
+
interruptSent = true;
|
|
7751
|
+
try {
|
|
7752
|
+
await session.request("turn/interrupt", {
|
|
7753
|
+
threadId: executionThreadId,
|
|
7754
|
+
turnId: targetTurnId
|
|
7755
|
+
});
|
|
7756
|
+
} catch {}
|
|
7757
|
+
};
|
|
7758
|
+
const unregisterActiveTurn = session.registerActiveTurn({
|
|
7759
|
+
interrupt: async () => {
|
|
7760
|
+
interruptRequested = true;
|
|
7761
|
+
if (activeTurnId) await sendInterruptIfActive(activeTurnId);
|
|
7762
|
+
},
|
|
7763
|
+
onActiveTurn: input.onActiveTurn,
|
|
7764
|
+
taskId: input.taskId,
|
|
7765
|
+
threadId: executionThreadId,
|
|
7766
|
+
turnId: null
|
|
7767
|
+
});
|
|
7768
|
+
try {
|
|
7769
|
+
const turn = readTurnStartResponse(await session.requestControl("turn/start", {
|
|
7770
|
+
...input.permissionModeParams,
|
|
7771
|
+
...input.collaborationMode ? { collaborationMode: input.collaborationMode } : {},
|
|
7772
|
+
cwd: input.codexWorkdir,
|
|
7773
|
+
...input.conversationPolicyParams,
|
|
7774
|
+
...input.reasoningSummary,
|
|
7775
|
+
input: [{
|
|
7776
|
+
text: input.turnPrompt,
|
|
7777
|
+
text_elements: [],
|
|
7778
|
+
type: "text"
|
|
7779
|
+
}],
|
|
7780
|
+
threadId: executionThreadId
|
|
7781
|
+
}, {
|
|
7782
|
+
code: "runtime.turn_start_timeout",
|
|
7783
|
+
operation: "turn/start"
|
|
7784
|
+
}));
|
|
7785
|
+
const turnId = readRequiredText(turn.id, "turn/start response turn.id");
|
|
7786
|
+
activeTurnId = turnId;
|
|
7787
|
+
session.emitProviderTurnAccepted({
|
|
7788
|
+
threadId: executionThreadId,
|
|
7789
|
+
turnId
|
|
7790
|
+
});
|
|
7791
|
+
session.setNewSessionTitleInBackground({
|
|
7792
|
+
existingThreadId: input.existingThreadId ?? null,
|
|
7793
|
+
executionMode: input.executionMode,
|
|
7794
|
+
threadId: executionThreadId,
|
|
7795
|
+
title: input.newSessionTitle ?? void 0
|
|
7796
|
+
});
|
|
7797
|
+
if ((interruptRequested || input.cancellationSignal?.aborted) && turn.status !== "completed") await sendInterruptIfActive(turnId);
|
|
7798
|
+
return turn.status === "completed" ? turn : await session.waitForTurnCompleted({
|
|
7799
|
+
threadId: executionThreadId,
|
|
7800
|
+
turnId
|
|
7801
|
+
});
|
|
7802
|
+
} finally {
|
|
7803
|
+
unregisterActiveTurn?.();
|
|
7804
|
+
}
|
|
7805
|
+
}
|
|
7772
7806
|
function requireSuccessfulCodexTurn(turn) {
|
|
7773
7807
|
if (turn.status !== "failed") return;
|
|
7774
7808
|
const failureMessage = readTurnFailureMessage(turn);
|
|
@@ -7824,6 +7858,38 @@ async function verifyCodexAppServerThread(input) {
|
|
|
7824
7858
|
})) };
|
|
7825
7859
|
});
|
|
7826
7860
|
}
|
|
7861
|
+
async function resolveCodexAppServerCompletedTurn(input) {
|
|
7862
|
+
const threadId = normalizeOptionalText$35(input.threadId);
|
|
7863
|
+
if (!threadId) throw new CodexAppServerTransportError({
|
|
7864
|
+
code: "schema.invalid",
|
|
7865
|
+
errorType: "config",
|
|
7866
|
+
message: "schema.invalid: threadId is required"
|
|
7867
|
+
});
|
|
7868
|
+
return await withCodexAppServerSession({
|
|
7869
|
+
codexTimeoutMs: input.codexTimeoutMs,
|
|
7870
|
+
codexWorkdir: input.codexWorkdir,
|
|
7871
|
+
env: input.env,
|
|
7872
|
+
launchContract: input.launchContract,
|
|
7873
|
+
onRuntimeEvent: input.onRuntimeEvent
|
|
7874
|
+
}, async (session) => {
|
|
7875
|
+
const completedTurnId = readLastCompletedTurnId(await session.requestControl("thread/read", {
|
|
7876
|
+
includeTurns: true,
|
|
7877
|
+
threadId
|
|
7878
|
+
}, {
|
|
7879
|
+
code: "execution_context.history_unavailable",
|
|
7880
|
+
operation: "thread/read"
|
|
7881
|
+
}));
|
|
7882
|
+
if (!completedTurnId) throw new CodexAppServerTransportError({
|
|
7883
|
+
code: "execution_context.fork_checkpoint_unavailable",
|
|
7884
|
+
errorType: "config",
|
|
7885
|
+
message: "execution_context.fork_checkpoint_unavailable: thread/read found no completed turn on the source thread"
|
|
7886
|
+
});
|
|
7887
|
+
return {
|
|
7888
|
+
completedTurnId,
|
|
7889
|
+
threadId
|
|
7890
|
+
};
|
|
7891
|
+
});
|
|
7892
|
+
}
|
|
7827
7893
|
async function forkCodexAppServerThread(input) {
|
|
7828
7894
|
const sourceThreadId = normalizeOptionalText$35(input.sourceThreadId);
|
|
7829
7895
|
if (!sourceThreadId) throw new CodexAppServerTransportError({
|
|
@@ -7831,10 +7897,17 @@ async function forkCodexAppServerThread(input) {
|
|
|
7831
7897
|
errorType: "config",
|
|
7832
7898
|
message: "schema.invalid: sourceThreadId is required"
|
|
7833
7899
|
});
|
|
7834
|
-
|
|
7900
|
+
const sourceCompletedTurnId = normalizeOptionalText$35(input.sourceCompletedTurnId);
|
|
7901
|
+
const executionContextScoped = input.computerFileAccessBoundary?.executionContextAccess !== void 0;
|
|
7902
|
+
if (sourceCompletedTurnId && input.forkFullHistory) throw new CodexAppServerTransportError({
|
|
7903
|
+
code: "schema.invalid",
|
|
7904
|
+
errorType: "config",
|
|
7905
|
+
message: "schema.invalid: a fork takes either sourceCompletedTurnId or forkFullHistory, not both"
|
|
7906
|
+
});
|
|
7907
|
+
if (!(sourceCompletedTurnId || input.forkFullHistory)) throw new CodexAppServerTransportError({
|
|
7835
7908
|
code: "execution_context.fork_checkpoint_unavailable",
|
|
7836
7909
|
errorType: "config",
|
|
7837
|
-
message: "execution_context.fork_checkpoint_unavailable: a completed turn is required for a scoped fork"
|
|
7910
|
+
message: executionContextScoped ? "execution_context.fork_checkpoint_unavailable: a completed turn is required for a scoped fork" : "execution_context.fork_checkpoint_unavailable: a completed turn is required, or forkFullHistory must be set to fork the source's entire history"
|
|
7838
7911
|
});
|
|
7839
7912
|
return await withCodexAppServerSession({
|
|
7840
7913
|
codexTimeoutMs: input.codexTimeoutMs,
|
|
@@ -7852,7 +7925,7 @@ async function forkCodexAppServerThread(input) {
|
|
|
7852
7925
|
approvalPolicy: "never",
|
|
7853
7926
|
runtimeWorkspaceRoots: [input.targetWorkingDirectory ?? input.codexWorkdir]
|
|
7854
7927
|
} : {},
|
|
7855
|
-
...
|
|
7928
|
+
...sourceCompletedTurnId ? { lastTurnId: sourceCompletedTurnId } : {},
|
|
7856
7929
|
...input.targetWorkingDirectory ? { cwd: input.targetWorkingDirectory } : {}
|
|
7857
7930
|
}, {
|
|
7858
7931
|
code: "context.fork_timeout",
|
|
@@ -8452,13 +8525,13 @@ var CodexAppServerSession = class {
|
|
|
8452
8525
|
return input.onActiveTurn({
|
|
8453
8526
|
taskId: input.taskId,
|
|
8454
8527
|
threadId: input.threadId,
|
|
8455
|
-
turnId: input.turnId,
|
|
8456
|
-
interrupt: async () => {
|
|
8457
|
-
await this.request("turn/interrupt", {
|
|
8528
|
+
turnId: input.turnId ?? "",
|
|
8529
|
+
interrupt: input.interrupt ?? (async () => {
|
|
8530
|
+
if (input.turnId) await this.request("turn/interrupt", {
|
|
8458
8531
|
threadId: input.threadId,
|
|
8459
8532
|
turnId: input.turnId
|
|
8460
8533
|
});
|
|
8461
|
-
}
|
|
8534
|
+
})
|
|
8462
8535
|
});
|
|
8463
8536
|
}
|
|
8464
8537
|
buildTelemetry(input) {
|
|
@@ -8729,6 +8802,17 @@ function readThreadContextFromResponse(value) {
|
|
|
8729
8802
|
threadSource: normalizeOptionalText$35(response?.thread?.threadSource)
|
|
8730
8803
|
};
|
|
8731
8804
|
}
|
|
8805
|
+
function readLastCompletedTurnId(value) {
|
|
8806
|
+
const response = toRecord$8(value);
|
|
8807
|
+
const turns = Array.isArray(response?.thread?.turns) ? response.thread.turns : [];
|
|
8808
|
+
for (let index = turns.length - 1; index >= 0; index -= 1) {
|
|
8809
|
+
const turn = turns[index];
|
|
8810
|
+
if (normalizeOptionalText$35(turn?.status) !== "completed") continue;
|
|
8811
|
+
const turnId = normalizeOptionalText$35(turn?.id);
|
|
8812
|
+
if (turnId) return turnId;
|
|
8813
|
+
}
|
|
8814
|
+
return null;
|
|
8815
|
+
}
|
|
8732
8816
|
function readTurnStartResponse(value) {
|
|
8733
8817
|
const turn = toRecord$8(value)?.turn;
|
|
8734
8818
|
if (!turn || typeof turn !== "object") throw new CodexAppServerTransportError({
|
|
@@ -10378,12 +10462,25 @@ function toRecord$7(value) {
|
|
|
10378
10462
|
//#region ../../runtime/adapters/codex/dist/index.js
|
|
10379
10463
|
const CODEX_CONVERSATION_BRIDGE_SPEC = resolveBuiltinAdapterConversationBridgeSpec("codex");
|
|
10380
10464
|
const TEST_DISABLE_DEFAULT_INVOKE = Symbol.for("openmeld.test.disableDefaultInvoke");
|
|
10465
|
+
/**
|
|
10466
|
+
* Reader for {@link CodexDispatchStopEvidence}, keyed off the adapter object the
|
|
10467
|
+
* way {@link TEST_DISABLE_DEFAULT_INVOKE} keys off runtime options.
|
|
10468
|
+
*
|
|
10469
|
+
* {@link RuntimeAdapter} is the adapter's whole surface, and the stop evidence
|
|
10470
|
+
* has to travel out of a `cancel` or `interrupt` call into the Core path that
|
|
10471
|
+
* decides whether a successor may take an occupied reservation. Widening that
|
|
10472
|
+
* shared type for one adapter's control-plane bookkeeping would put a Codex-only
|
|
10473
|
+
* field on every adapter, so the reader rides along as a symbol-keyed property
|
|
10474
|
+
* that only a caller holding this symbol can find.
|
|
10475
|
+
*/
|
|
10476
|
+
const READ_CODEX_DISPATCH_STOP_EVIDENCE = Symbol.for("openmeld.codex.readDispatchStopEvidence");
|
|
10381
10477
|
const COMPUTER_FILE_ACCESS_ATTESTATION_TTL_MS = 300 * 1e3;
|
|
10382
10478
|
const MAX_COMPUTER_FILE_ACCESS_ATTESTATIONS = 32;
|
|
10383
10479
|
const createCodexAdapter = (options) => {
|
|
10384
10480
|
const activeAppServerTurns = /* @__PURE__ */ new Map();
|
|
10385
10481
|
const computerFileAccessAttestations = /* @__PURE__ */ new Map();
|
|
10386
10482
|
const occupiedDispatches = /* @__PURE__ */ new Map();
|
|
10483
|
+
const stoppedDispatches = /* @__PURE__ */ new Map();
|
|
10387
10484
|
const registerAppServerTurn = (registration) => {
|
|
10388
10485
|
const activeTurn = {
|
|
10389
10486
|
interrupt: registration.interrupt,
|
|
@@ -10415,40 +10512,69 @@ const createCodexAdapter = (options) => {
|
|
|
10415
10512
|
});
|
|
10416
10513
|
const fallbackCancel = controlShell.cancel;
|
|
10417
10514
|
const cancel = async (request) => {
|
|
10418
|
-
|
|
10515
|
+
const occupiedDispatchAborted = abortOccupiedCodexDispatch({
|
|
10419
10516
|
occupiedDispatches,
|
|
10420
10517
|
request
|
|
10421
|
-
})
|
|
10422
|
-
|
|
10423
|
-
|
|
10424
|
-
|
|
10425
|
-
|
|
10426
|
-
|
|
10427
|
-
|
|
10428
|
-
|
|
10518
|
+
});
|
|
10519
|
+
if (occupiedDispatchAborted && !activeAppServerTurns.has(request.taskId)) {
|
|
10520
|
+
recordStoppedCodexDispatch({
|
|
10521
|
+
request,
|
|
10522
|
+
stoppedDispatches,
|
|
10523
|
+
turnWasRunning: false
|
|
10524
|
+
});
|
|
10525
|
+
return {
|
|
10526
|
+
accepted: true,
|
|
10527
|
+
deliveryPath: "cancel",
|
|
10528
|
+
reasonCode: "accepted",
|
|
10529
|
+
signalDelivery: "sent",
|
|
10530
|
+
taskId: request.taskId
|
|
10531
|
+
};
|
|
10532
|
+
}
|
|
10533
|
+
const turnWasRunning = activeAppServerTurns.has(request.taskId);
|
|
10534
|
+
const result = fallbackCancel ? await fallbackCancel(request) : {
|
|
10429
10535
|
accepted: false,
|
|
10430
10536
|
reasonCode: "adapter.unsupported",
|
|
10431
10537
|
signalDelivery: "not_sent",
|
|
10432
10538
|
taskId: request.taskId
|
|
10433
10539
|
};
|
|
10434
|
-
|
|
10540
|
+
if (occupiedDispatchAborted || turnWasRunning) recordStoppedCodexDispatch({
|
|
10541
|
+
request,
|
|
10542
|
+
stoppedDispatches,
|
|
10543
|
+
turnWasRunning
|
|
10544
|
+
});
|
|
10545
|
+
return result;
|
|
10435
10546
|
};
|
|
10436
10547
|
const interrupt = async (request) => {
|
|
10437
|
-
|
|
10548
|
+
const occupiedDispatchAborted = abortOccupiedCodexDispatch({
|
|
10438
10549
|
occupiedDispatches,
|
|
10439
10550
|
request
|
|
10440
|
-
})
|
|
10441
|
-
|
|
10442
|
-
|
|
10443
|
-
|
|
10444
|
-
|
|
10445
|
-
|
|
10446
|
-
|
|
10447
|
-
|
|
10551
|
+
});
|
|
10552
|
+
if (occupiedDispatchAborted && !activeAppServerTurns.has(request.taskId)) {
|
|
10553
|
+
recordStoppedCodexDispatch({
|
|
10554
|
+
request,
|
|
10555
|
+
stoppedDispatches,
|
|
10556
|
+
turnWasRunning: false
|
|
10557
|
+
});
|
|
10558
|
+
return {
|
|
10559
|
+
accepted: true,
|
|
10560
|
+
plan: buildInterruptPlan(request),
|
|
10561
|
+
reasonCode: "accepted",
|
|
10562
|
+
signalDelivery: "sent",
|
|
10563
|
+
taskId: request.taskId
|
|
10564
|
+
};
|
|
10565
|
+
}
|
|
10566
|
+
const turnWasRunning = activeAppServerTurns.has(request.taskId);
|
|
10567
|
+
const result = await interruptCodexActiveAppServerTurn({
|
|
10448
10568
|
activeAppServerTurns,
|
|
10449
10569
|
request,
|
|
10450
10570
|
fallbackInterrupt: controlShell.interrupt
|
|
10451
10571
|
});
|
|
10572
|
+
if (occupiedDispatchAborted || turnWasRunning) recordStoppedCodexDispatch({
|
|
10573
|
+
request,
|
|
10574
|
+
stoppedDispatches,
|
|
10575
|
+
turnWasRunning
|
|
10576
|
+
});
|
|
10577
|
+
return result;
|
|
10452
10578
|
};
|
|
10453
10579
|
const sharedDispatch = createSharedDispatchShell({
|
|
10454
10580
|
adapterId: "codex",
|
|
@@ -10466,76 +10592,78 @@ const createCodexAdapter = (options) => {
|
|
|
10466
10592
|
occupiedDispatches,
|
|
10467
10593
|
request,
|
|
10468
10594
|
sharedDispatch,
|
|
10595
|
+
stoppedDispatches,
|
|
10469
10596
|
waitForThreadWriterAvailability: options.waitForThreadWriterAvailability ?? waitForCodexThreadWriterAvailability
|
|
10470
10597
|
});
|
|
10471
|
-
|
|
10472
|
-
|
|
10473
|
-
|
|
10474
|
-
|
|
10475
|
-
|
|
10476
|
-
|
|
10477
|
-
|
|
10478
|
-
|
|
10598
|
+
const verifyComputerFileAccessBoundary = async (request) => {
|
|
10599
|
+
if (request.agentControllerPermissionMode === "codex:customConfig" || request.transportMode !== "codex-app-server" && request.transportMode !== "local-cli") return {
|
|
10600
|
+
reasonCode: "computer.file_access.controller_unsupported",
|
|
10601
|
+
supported: false
|
|
10602
|
+
};
|
|
10603
|
+
try {
|
|
10604
|
+
const configuredLaunchContract = resolveConfiguredCodexLaunchContract({
|
|
10605
|
+
codexBin: options.codexBin,
|
|
10606
|
+
inputLaunchContract: request.launchContract,
|
|
10607
|
+
optionLaunchContract: options.launchContract
|
|
10608
|
+
});
|
|
10609
|
+
if (!configuredLaunchContract) return {
|
|
10610
|
+
reasonCode: "computer.file_access.capability_unverified",
|
|
10611
|
+
supported: false
|
|
10612
|
+
};
|
|
10613
|
+
const probeArgs = [...buildCodexFileAccessBoundaryGlobalArgs({
|
|
10614
|
+
boundary: request.boundary,
|
|
10615
|
+
executionMode: request.executionMode,
|
|
10616
|
+
permissionMode: request.agentControllerPermissionMode
|
|
10617
|
+
}), "--version"];
|
|
10618
|
+
const cacheKey = JSON.stringify({
|
|
10619
|
+
launchContract: configuredLaunchContract,
|
|
10620
|
+
probeArgs,
|
|
10621
|
+
workingDirectory: request.workingDirectory
|
|
10622
|
+
});
|
|
10623
|
+
const nowMs = Date.now();
|
|
10624
|
+
const cached = computerFileAccessAttestations.get(cacheKey);
|
|
10625
|
+
if (cached && cached.expiresAtMs > nowMs) return await cached.result;
|
|
10626
|
+
if (cached) computerFileAccessAttestations.delete(cacheKey);
|
|
10627
|
+
const result = resolveCodexDispatchLaunchContract({
|
|
10628
|
+
codexBin: options.codexBin,
|
|
10629
|
+
inputLaunchContract: request.launchContract,
|
|
10630
|
+
optionLaunchContract: options.launchContract
|
|
10631
|
+
}).then((launchContract) => verifyCliLaunchContract({
|
|
10632
|
+
cwd: request.workingDirectory,
|
|
10633
|
+
displayName: "Codex file access boundary",
|
|
10634
|
+
launchContract,
|
|
10635
|
+
probeArgs,
|
|
10636
|
+
timeoutMs: 5e3
|
|
10637
|
+
})).then((verification) => verification.ok ? { supported: true } : {
|
|
10638
|
+
reasonCode: "computer.file_access.capability_unverified",
|
|
10639
|
+
supported: false
|
|
10640
|
+
}).catch(() => ({
|
|
10641
|
+
reasonCode: "computer.file_access.capability_unverified",
|
|
10642
|
+
supported: false
|
|
10643
|
+
}));
|
|
10644
|
+
rememberComputerFileAccessAttestation({
|
|
10645
|
+
attestations: computerFileAccessAttestations,
|
|
10646
|
+
cacheKey,
|
|
10647
|
+
value: {
|
|
10648
|
+
expiresAtMs: nowMs + COMPUTER_FILE_ACCESS_ATTESTATION_TTL_MS,
|
|
10649
|
+
result
|
|
10650
|
+
}
|
|
10651
|
+
});
|
|
10652
|
+
return await result;
|
|
10653
|
+
} catch {
|
|
10654
|
+
return {
|
|
10655
|
+
reasonCode: "computer.file_access.capability_unverified",
|
|
10479
10656
|
supported: false
|
|
10480
10657
|
};
|
|
10481
|
-
try {
|
|
10482
|
-
const configuredLaunchContract = resolveConfiguredCodexLaunchContract({
|
|
10483
|
-
codexBin: options.codexBin,
|
|
10484
|
-
inputLaunchContract: request.launchContract,
|
|
10485
|
-
optionLaunchContract: options.launchContract
|
|
10486
|
-
});
|
|
10487
|
-
if (!configuredLaunchContract) return {
|
|
10488
|
-
reasonCode: "computer.file_access.capability_unverified",
|
|
10489
|
-
supported: false
|
|
10490
|
-
};
|
|
10491
|
-
const probeArgs = [...buildCodexFileAccessBoundaryGlobalArgs({
|
|
10492
|
-
boundary: request.boundary,
|
|
10493
|
-
executionMode: request.executionMode,
|
|
10494
|
-
permissionMode: request.agentControllerPermissionMode
|
|
10495
|
-
}), "--version"];
|
|
10496
|
-
const cacheKey = JSON.stringify({
|
|
10497
|
-
launchContract: configuredLaunchContract,
|
|
10498
|
-
probeArgs,
|
|
10499
|
-
workingDirectory: request.workingDirectory
|
|
10500
|
-
});
|
|
10501
|
-
const nowMs = Date.now();
|
|
10502
|
-
const cached = computerFileAccessAttestations.get(cacheKey);
|
|
10503
|
-
if (cached && cached.expiresAtMs > nowMs) return await cached.result;
|
|
10504
|
-
if (cached) computerFileAccessAttestations.delete(cacheKey);
|
|
10505
|
-
const result = resolveCodexDispatchLaunchContract({
|
|
10506
|
-
codexBin: options.codexBin,
|
|
10507
|
-
inputLaunchContract: request.launchContract,
|
|
10508
|
-
optionLaunchContract: options.launchContract
|
|
10509
|
-
}).then((launchContract) => verifyCliLaunchContract({
|
|
10510
|
-
cwd: request.workingDirectory,
|
|
10511
|
-
displayName: "Codex file access boundary",
|
|
10512
|
-
launchContract,
|
|
10513
|
-
probeArgs,
|
|
10514
|
-
timeoutMs: 5e3
|
|
10515
|
-
})).then((verification) => verification.ok ? { supported: true } : {
|
|
10516
|
-
reasonCode: "computer.file_access.capability_unverified",
|
|
10517
|
-
supported: false
|
|
10518
|
-
}).catch(() => ({
|
|
10519
|
-
reasonCode: "computer.file_access.capability_unverified",
|
|
10520
|
-
supported: false
|
|
10521
|
-
}));
|
|
10522
|
-
rememberComputerFileAccessAttestation({
|
|
10523
|
-
attestations: computerFileAccessAttestations,
|
|
10524
|
-
cacheKey,
|
|
10525
|
-
value: {
|
|
10526
|
-
expiresAtMs: nowMs + COMPUTER_FILE_ACCESS_ATTESTATION_TTL_MS,
|
|
10527
|
-
result
|
|
10528
|
-
}
|
|
10529
|
-
});
|
|
10530
|
-
return await result;
|
|
10531
|
-
} catch {
|
|
10532
|
-
return {
|
|
10533
|
-
reasonCode: "computer.file_access.capability_unverified",
|
|
10534
|
-
supported: false
|
|
10535
|
-
};
|
|
10536
|
-
}
|
|
10537
10658
|
}
|
|
10538
10659
|
};
|
|
10660
|
+
return Object.assign({
|
|
10661
|
+
adapterId: "codex",
|
|
10662
|
+
cancel,
|
|
10663
|
+
dispatch,
|
|
10664
|
+
interrupt,
|
|
10665
|
+
verifyComputerFileAccessBoundary
|
|
10666
|
+
}, { [READ_CODEX_DISPATCH_STOP_EVIDENCE]: (taskId) => stoppedDispatches.get(taskId) ?? null });
|
|
10539
10667
|
};
|
|
10540
10668
|
function readCodexConversationOccupancy(result, request) {
|
|
10541
10669
|
if (result.status !== "failed" || request.transportMode !== "codex-app-server" || !result.agentControllerConversationOccupancy) return null;
|
|
@@ -10547,6 +10675,25 @@ function abortOccupiedCodexDispatch(input) {
|
|
|
10547
10675
|
occupiedDispatch.abortController.abort();
|
|
10548
10676
|
return true;
|
|
10549
10677
|
}
|
|
10678
|
+
/**
|
|
10679
|
+
* Records that a Stop ended a task, so no later attempt for it resumes the
|
|
10680
|
+
* thread.
|
|
10681
|
+
*
|
|
10682
|
+
* `turnWasRunning` is the part a caller must not drop: a Stop the adapter answers
|
|
10683
|
+
* without interrupting a native turn is evidence that nothing else in this
|
|
10684
|
+
* process holds the writer, while a Stop that lands on a running turn is only a
|
|
10685
|
+
* request. Both are recorded, because a record that hid the second kind would let
|
|
10686
|
+
* a later attempt read a running turn as a stopped one.
|
|
10687
|
+
*/
|
|
10688
|
+
function recordStoppedCodexDispatch(input) {
|
|
10689
|
+
const existing = input.stoppedDispatches.get(input.request.taskId);
|
|
10690
|
+
const turnWasRunning = existing ? existing.turnWasRunning || input.turnWasRunning : input.turnWasRunning;
|
|
10691
|
+
input.stoppedDispatches.set(input.request.taskId, {
|
|
10692
|
+
stoppedAtMs: existing?.stoppedAtMs ?? Date.now(),
|
|
10693
|
+
taskId: input.request.taskId,
|
|
10694
|
+
turnWasRunning
|
|
10695
|
+
});
|
|
10696
|
+
}
|
|
10550
10697
|
function buildCodexDispatchCancelledResult() {
|
|
10551
10698
|
return {
|
|
10552
10699
|
errorCode: "runtime.turn.cancelled",
|
|
@@ -10555,6 +10702,20 @@ function buildCodexDispatchCancelledResult() {
|
|
|
10555
10702
|
status: "failed"
|
|
10556
10703
|
};
|
|
10557
10704
|
}
|
|
10705
|
+
/**
|
|
10706
|
+
* Whether a dispatch result proves the attempt never reached a native turn.
|
|
10707
|
+
*
|
|
10708
|
+
* A Stop that lands while a dispatch is in flight must not be reported as
|
|
10709
|
+
* `runtime.turn.cancelled`: the transport uses that code for "Codex was stopped
|
|
10710
|
+
* before starting a turn", so claiming it for an attempt that may have won the
|
|
10711
|
+
* thread writer lock would tell Core nothing ran while a turn is running, and
|
|
10712
|
+
* invite a second execution of the same work. Only the transport's own pre-turn
|
|
10713
|
+
* cancellation and a refused `thread/resume` prove nothing started; every other
|
|
10714
|
+
* result is reported exactly as it came back, output included.
|
|
10715
|
+
*/
|
|
10716
|
+
function codexDispatchStoppedBeforeTurn(result) {
|
|
10717
|
+
return result.status === "failed" && (result.errorCode === "runtime.turn.cancelled" || result.agentControllerConversationOccupancy !== void 0);
|
|
10718
|
+
}
|
|
10558
10719
|
async function emitCodexConversationAvailable(input) {
|
|
10559
10720
|
await input.request.onRuntimeEvent?.({
|
|
10560
10721
|
agentControllerConversationId: input.occupancy.agentControllerConversationId,
|
|
@@ -10578,13 +10739,14 @@ async function dispatchCodexWithConversationOccupancy(input) {
|
|
|
10578
10739
|
};
|
|
10579
10740
|
try {
|
|
10580
10741
|
while (true) {
|
|
10742
|
+
if (input.stoppedDispatches.has(input.request.taskId)) return buildCodexDispatchCancelledResult();
|
|
10581
10743
|
const cancellationSignal = state.registration?.abortController.signal ?? void 0;
|
|
10582
10744
|
if (cancellationSignal?.aborted) return buildCodexDispatchCancelledResult();
|
|
10583
10745
|
const result = await input.sharedDispatch({
|
|
10584
10746
|
...input.request,
|
|
10585
10747
|
...cancellationSignal ? { cancellationSignal } : {}
|
|
10586
10748
|
});
|
|
10587
|
-
if (state.registration?.abortController.signal.aborted) return buildCodexDispatchCancelledResult();
|
|
10749
|
+
if (state.registration?.abortController.signal.aborted && codexDispatchStoppedBeforeTurn(result)) return buildCodexDispatchCancelledResult();
|
|
10588
10750
|
const occupancy = readCodexConversationOccupancy(result, input.request);
|
|
10589
10751
|
if (occupancy) {
|
|
10590
10752
|
if (await waitForOccupiedCodexConversation({
|
|
@@ -20269,6 +20431,7 @@ async function buildControlPlaneResponse(input) {
|
|
|
20269
20431
|
});
|
|
20270
20432
|
case "shutdown": return await buildShutdownControlPlaneResponse({
|
|
20271
20433
|
context: input.context,
|
|
20434
|
+
lifecycle: input.lifecycle,
|
|
20272
20435
|
payload: request.payload,
|
|
20273
20436
|
requestMeta
|
|
20274
20437
|
});
|
|
@@ -20387,7 +20550,7 @@ async function buildShutdownControlPlaneResponse(input) {
|
|
|
20387
20550
|
mode: "graceful",
|
|
20388
20551
|
gracePeriodMs: 5e3
|
|
20389
20552
|
};
|
|
20390
|
-
const payload = input.context.shutdownHandler ? await input.context.shutdownHandler(resolvedShutdownPayload) : {
|
|
20553
|
+
const payload = input.context.shutdownHandler ? await input.context.shutdownHandler(resolvedShutdownPayload, input.lifecycle?.onShutdownAdmitted ? { onAdmitted: input.lifecycle.onShutdownAdmitted } : void 0) : {
|
|
20391
20554
|
accepted: false,
|
|
20392
20555
|
mode: resolvedShutdownPayload.mode,
|
|
20393
20556
|
gracePeriodMs: resolvedShutdownPayload.gracePeriodMs
|
|
@@ -20462,8 +20625,10 @@ const buildAuthenticatedControlPlaneResponse = async (input) => {
|
|
|
20462
20625
|
expectedToken: input.expectedToken,
|
|
20463
20626
|
providedToken: request.authToken
|
|
20464
20627
|
})) throw new Error("auth.unauthenticated");
|
|
20628
|
+
input.lifecycle?.onAuthenticated?.();
|
|
20465
20629
|
return await buildControlPlaneResponse({
|
|
20466
20630
|
context: input.context,
|
|
20631
|
+
lifecycle: input.lifecycle,
|
|
20467
20632
|
request
|
|
20468
20633
|
});
|
|
20469
20634
|
};
|
|
@@ -29984,24 +30149,32 @@ async function writeAttempt(path, attempt) {
|
|
|
29984
30149
|
const OPERATION_ID_ENV = "OPENMELD_INTERNAL_TOOLS_UPDATE_OPERATION_ID";
|
|
29985
30150
|
const REQUESTED_AT_ENV = "OPENMELD_INTERNAL_TOOLS_UPDATE_REQUESTED_AT";
|
|
29986
30151
|
const REQUEST_SOURCE_ENV = "OPENMELD_INTERNAL_TOOLS_UPDATE_REQUEST_SOURCE";
|
|
30152
|
+
const TARGET_CLI_VERSION_ENV = "OPENMELD_INTERNAL_TOOLS_UPDATE_TARGET_CLI_VERSION";
|
|
30153
|
+
const TARGET_SERVICE_VERSION_ENV = "OPENMELD_INTERNAL_TOOLS_UPDATE_TARGET_SERVICE_VERSION";
|
|
29987
30154
|
function buildOpenMeldToolsUpdateContextEnv(context) {
|
|
29988
30155
|
return {
|
|
29989
30156
|
[OPERATION_ID_ENV]: context.operationId,
|
|
29990
30157
|
[REQUESTED_AT_ENV]: context.requestedAt,
|
|
29991
|
-
[REQUEST_SOURCE_ENV]: context.requestSource
|
|
30158
|
+
[REQUEST_SOURCE_ENV]: context.requestSource,
|
|
30159
|
+
...context.targetCliVersion ? { [TARGET_CLI_VERSION_ENV]: context.targetCliVersion } : {},
|
|
30160
|
+
...context.targetServiceVersion ? { [TARGET_SERVICE_VERSION_ENV]: context.targetServiceVersion } : {}
|
|
29992
30161
|
};
|
|
29993
30162
|
}
|
|
29994
30163
|
function readOpenMeldToolsUpdateContextFromEnv(env = process.env) {
|
|
29995
30164
|
const operationId = normalize$1(env[OPERATION_ID_ENV]);
|
|
29996
30165
|
const requestedAt = normalize$1(env[REQUESTED_AT_ENV]);
|
|
29997
30166
|
const requestSource = openMeldToolsUpdateRequestSourceSchema.safeParse(env[REQUEST_SOURCE_ENV]);
|
|
30167
|
+
const targetCliVersion = normalize$1(env[TARGET_CLI_VERSION_ENV]);
|
|
30168
|
+
const targetServiceVersion = normalize$1(env[TARGET_SERVICE_VERSION_ENV]);
|
|
29998
30169
|
if (!(operationId && requestedAt && requestSource.success)) return null;
|
|
29999
30170
|
const requestedAtMs = Date.parse(requestedAt);
|
|
30000
30171
|
if (!Number.isFinite(requestedAtMs)) return null;
|
|
30001
30172
|
return {
|
|
30002
30173
|
operationId,
|
|
30003
30174
|
requestedAt: new Date(requestedAtMs).toISOString(),
|
|
30004
|
-
requestSource: requestSource.data
|
|
30175
|
+
requestSource: requestSource.data,
|
|
30176
|
+
...targetCliVersion ? { targetCliVersion } : {},
|
|
30177
|
+
...targetServiceVersion ? { targetServiceVersion } : {}
|
|
30005
30178
|
};
|
|
30006
30179
|
}
|
|
30007
30180
|
function normalize$1(value) {
|
|
@@ -30151,7 +30324,7 @@ function createOpenMeldToolsUpdateCoordinator(overrides = {}, options = {}) {
|
|
|
30151
30324
|
}
|
|
30152
30325
|
const assessment = await deps.assessUpdate({ forceRefresh: true });
|
|
30153
30326
|
if (!(assessment.checked && assessment.latestVersion)) return { status: "unavailable" };
|
|
30154
|
-
const serviceVersion = assessment.serviceVersion ?? assessment.
|
|
30327
|
+
const serviceVersion = assessment.serviceVersion ?? assessment.latestVersion;
|
|
30155
30328
|
if (!(assessment.updateAvailable || await deps.serviceNeedsAlignment(serviceVersion))) return {
|
|
30156
30329
|
currentVersion: assessment.currentVersion,
|
|
30157
30330
|
status: "current"
|
|
@@ -30166,6 +30339,8 @@ function createOpenMeldToolsUpdateCoordinator(overrides = {}, options = {}) {
|
|
|
30166
30339
|
phase: "updating",
|
|
30167
30340
|
requestSource,
|
|
30168
30341
|
requestedAt: now,
|
|
30342
|
+
targetCliVersion: assessment.latestVersion,
|
|
30343
|
+
targetServiceVersion: serviceVersion,
|
|
30169
30344
|
targetVersion: assessment.updateAvailable ? assessment.latestVersion : serviceVersion,
|
|
30170
30345
|
updatedAt: now,
|
|
30171
30346
|
urgency: assessment.floorBreached ? "required" : await deps.resolveUrgency()
|
|
@@ -30203,7 +30378,9 @@ async function runAttempt(attempt, deps) {
|
|
|
30203
30378
|
const result = await deps.runUpgrade({
|
|
30204
30379
|
operationId: running.operation.operationId,
|
|
30205
30380
|
requestedAt: running.operation.requestedAt,
|
|
30206
|
-
requestSource: running.operation.requestSource
|
|
30381
|
+
requestSource: running.operation.requestSource,
|
|
30382
|
+
targetCliVersion: running.operation.targetCliVersion,
|
|
30383
|
+
targetServiceVersion: running.operation.targetServiceVersion
|
|
30207
30384
|
});
|
|
30208
30385
|
if (result.exitCode !== 0) {
|
|
30209
30386
|
const fallbackMessage = `OpenMeld update process exited with status ${String(result.exitCode)}.`;
|
|
@@ -30284,6 +30461,8 @@ function projectServiceJob(job) {
|
|
|
30284
30461
|
requestSource: job.requestSource,
|
|
30285
30462
|
requestedAt: job.requestedAt,
|
|
30286
30463
|
targetVersion: job.targetVersion,
|
|
30464
|
+
...job.targetCliVersion ? { targetCliVersion: job.targetCliVersion } : {},
|
|
30465
|
+
...job.targetServiceVersion ? { targetServiceVersion: job.targetServiceVersion } : {},
|
|
30287
30466
|
updatedAt: job.updatedAt,
|
|
30288
30467
|
urgency: job.urgency
|
|
30289
30468
|
};
|
|
@@ -30959,9 +31138,9 @@ function createModelCatalogReadSession(input) {
|
|
|
30959
31138
|
async function readModelCatalogOnce(baseUrl) {
|
|
30960
31139
|
try {
|
|
30961
31140
|
const [apiClient, baseUrlModule, clientFoundationModule] = await Promise.all([
|
|
30962
|
-
import("./dist
|
|
31141
|
+
import("./dist-Bsz_wafH.js"),
|
|
30963
31142
|
import("./base-url-BE3pFiOZ.js"),
|
|
30964
|
-
import("./api-client-foundation-
|
|
31143
|
+
import("./api-client-foundation-TEBOwWl1.js")
|
|
30965
31144
|
]);
|
|
30966
31145
|
if (typeof apiClient.createConfigApi !== "function") throw new Error("config api client is unavailable");
|
|
30967
31146
|
const resolvedBaseUrl = baseUrl ?? await baseUrlModule.resolveBaseUrl();
|
|
@@ -37617,6 +37796,8 @@ async function scheduleDaemonServiceUpdateLocked(input, deps) {
|
|
|
37617
37796
|
requestedAt: input.requestedAt ?? now,
|
|
37618
37797
|
phase: "waiting_for_work",
|
|
37619
37798
|
requestSource: input.requestSource ?? "cli",
|
|
37799
|
+
...input.targetCliVersion ? { targetCliVersion: input.targetCliVersion } : {},
|
|
37800
|
+
...input.targetServiceVersion ? { targetServiceVersion: input.targetServiceVersion } : {},
|
|
37620
37801
|
targetVersion: input.targetVersion,
|
|
37621
37802
|
updatedAt: now,
|
|
37622
37803
|
urgency: input.urgency
|
|
@@ -37641,19 +37822,7 @@ async function reschedulePendingDaemonServiceUpdate(input) {
|
|
|
37641
37822
|
const escalateUrgency = input.pending.phase !== "updated" && input.request.urgency === "required" && input.pending.urgency === "available";
|
|
37642
37823
|
const retained = replaceTarget || escalateUrgency ? {
|
|
37643
37824
|
...input.pending,
|
|
37644
|
-
...replaceTarget ? {
|
|
37645
|
-
attempts: 0,
|
|
37646
|
-
errorMessage: null,
|
|
37647
|
-
phase: "waiting_for_work",
|
|
37648
|
-
preparedBundle: await input.dependencies.prepareBundle({
|
|
37649
|
-
activate: false,
|
|
37650
|
-
daemonVersion: input.request.targetVersion,
|
|
37651
|
-
...input.request.binaryRelease ? { binaryRelease: input.request.binaryRelease } : {},
|
|
37652
|
-
...input.request.cliScriptPath ? { cliScriptPath: input.request.cliScriptPath } : {}
|
|
37653
|
-
}),
|
|
37654
|
-
requestSource: input.request.requestSource ?? "cli",
|
|
37655
|
-
targetVersion: input.request.targetVersion
|
|
37656
|
-
} : {},
|
|
37825
|
+
...replaceTarget ? await prepareReplacementJobFields(input) : {},
|
|
37657
37826
|
updatedAt: input.dependencies.now(),
|
|
37658
37827
|
urgency: escalateUrgency ? "required" : input.pending.urgency
|
|
37659
37828
|
} : input.pending;
|
|
@@ -37671,6 +37840,23 @@ async function reschedulePendingDaemonServiceUpdate(input) {
|
|
|
37671
37840
|
status: "already_scheduled"
|
|
37672
37841
|
};
|
|
37673
37842
|
}
|
|
37843
|
+
async function prepareReplacementJobFields(input) {
|
|
37844
|
+
return {
|
|
37845
|
+
attempts: 0,
|
|
37846
|
+
errorMessage: null,
|
|
37847
|
+
phase: "waiting_for_work",
|
|
37848
|
+
preparedBundle: await input.dependencies.prepareBundle({
|
|
37849
|
+
activate: false,
|
|
37850
|
+
daemonVersion: input.request.targetVersion,
|
|
37851
|
+
...input.request.binaryRelease ? { binaryRelease: input.request.binaryRelease } : {},
|
|
37852
|
+
...input.request.cliScriptPath ? { cliScriptPath: input.request.cliScriptPath } : {}
|
|
37853
|
+
}),
|
|
37854
|
+
requestSource: input.request.requestSource ?? "cli",
|
|
37855
|
+
...input.request.targetCliVersion ? { targetCliVersion: input.request.targetCliVersion } : {},
|
|
37856
|
+
...input.request.targetServiceVersion ? { targetServiceVersion: input.request.targetServiceVersion } : {},
|
|
37857
|
+
targetVersion: input.request.targetVersion
|
|
37858
|
+
};
|
|
37859
|
+
}
|
|
37674
37860
|
async function pruneWorkerVersionsBestEffort(input) {
|
|
37675
37861
|
await input.dependencies.pruneWorkerVersions(input.job).catch((error) => {
|
|
37676
37862
|
console.warn("[openmeld.daemon_service.update_worker_prune_failed]", {
|
|
@@ -37883,6 +38069,6 @@ function isNewerTargetVersion(candidate, current) {
|
|
|
37883
38069
|
return compareSemver(candidate, current) > 0;
|
|
37884
38070
|
}
|
|
37885
38071
|
//#endregion
|
|
37886
|
-
export { buildDaemonServiceDependencyTitle as $, alignSelectedOpenMeldProfileStorage as $a, buildLocalAgentCatalogFromReadiness as $i, ProjectBindingStoreUpdateRequiredError as $n, settleInflightTask as $r, resolveCurrentDaemonExpectedVersion as $t, formatDeviceReplyReadinessLabel as A, MAX_RECONNECT_DELAY_MS as Aa, createLocalAdapterEntries as Ai, setAgentRegistrationEnabled as An, createInflightTaskControlRegistry as Ar, uninstallDaemonServiceUpdateWorker as At, resolveGatewayChainReadiness as B, isSelectedOpenMeldProfileRequiredError as Ba, forkCodexAppServerThread as Bi, resolveSkillsAgentRegistry as Bn, resolveDispatchContinuityObservation as Br, toStartBackgroundHelperExecutionCompatibility as Bt, formatDaemonServiceRefreshReliabilityMessage as C, CONTROLLED_SHUTDOWN_SOCKET_CLOSE_TIMEOUT_MS as Ca, resolveAgentExecutionStatus as Ci, listAgentTargetStates as Cn, buildDispatchReplyContextSummary as Cr, readLastOpenMeldToolsUpdateAttempt as Ct, writeDaemonStartFailureState as D, DAEMON_STREAM_KEEPALIVE_PONG_TIMEOUT_MS as Da, resolveSelectableCandidates as Di, reconcileNewRunnableBuiltinAgentsForSetup as Dn, createLocalTaskInterruptSender as Dr, writeOpenMeldToolsMaintenancePolicy as Dt, clearDaemonStartFailureState as E, DAEMON_STREAM_KEEPALIVE_INTERVAL_MS as Ea, resolveNativeAgentControllerPermissionModeForController as Ei, reconcileNewRunnableBuiltinAgentRegistrations as En, mergeOpenClawGatewayVisibility as Er, resolveOpenMeldToolsMaintenanceProjection as Et, formatSpaceMemberCommandRecoveryCopy as F, RUNTIME_AGENT_CONTROLLER_REPORT_SYNC_RETRY_INTERVAL_MS as Fa, probeGrokBuildAcpInterface as Fi, parseAgentEnabledOption as Fn, applyIntervalJitterMs as Fr, readCurrentDaemonOwnerSnapshot as Ft, PREPARE_SESSION_RECONNECT_GRACE_MS as G, deleteOpenMeldProfile as Ga, resolveDispatchSpaceActionMcpServer as Gi, EMPTY_AGENT_CONTROLLER_INTERFACE_CAPABILITIES as Gn, buildRuntimeWorkspaceFingerprint as Gr, isVersionDowngrade as Gt, resolveGatewayChainRetryGuidance as H, resolveOpenMeldProfileOrNull as Ha, resolveInstalledClaudeCodeLaunchCandidates as Hi, resolveRegistryOriginLaunchCommand as Hn, resolveCompatibleConversationExecutionState as Hr, readDaemonRuntimeContractRepairReport as Ht, resolveReplyReadinessAvailabilityReasonCopy as I, RUNTIME_STATE_PERSIST_MIN_INTERVAL_MS as Ia, resolveInstalledGrokBuildLaunchCandidates as Ii, sortAgentRegistrations as In, pruneStaleLeases as Ir, resolveDaemonStopStrategy as It, getSetupFlowCopy as J, primeOpenMeldProfilesSessionCache as Ja, listAgentControllerSupervisedProcessIds as Ji, isHomebrewCommandPath as Jn, commitResolvedAgentContext as Jr, DAEMON_SERVICE_FULL_ALIGNMENT_ANOMALIES as Jt, buildDaemonRouteObservationPresentation as K, getOpenMeldProfileCapabilities as Ka, buildCliLaunchInvocation as Ki, resolveBuiltinAgentControllerDefinition as Kn, buildTaskResultEnvelope as Kr, resolveVersionChangeDirection as Kt, resolveReplyReadinessGuidanceSummaryCopy as L, parseCliViewMode as La, projectCodexUsageLimits as Li, repairBuiltinControllerInstall as Ln, resolveAdaptiveHeartbeatIntervalMs as Lr, resolveStoppedContractWriteBlockedReason as Lt, formatReplyReadinessSummary as M, PROVIDER_CONVERSATION_PROOF_SYNC_RETRY_INTERVAL_MS as Ma, forkOpenCodeServerSession as Mi, updateAgentRegistrations as Mn, MAX_HEARTBEAT_INTERVAL_MS as Mr, buildDaemonOwnerSnapshotFromObservedState as Mt, mapAgentReplyReadinessToLegacyAutoReply as N, REGISTER_RESPONSE_TIMEOUT_MS as Na, resolveInstalledOpenCodeLaunchCandidates as Ni, normalizeAgentId as Nn, MIN_HEARTBEAT_INTERVAL_MS as Nr, formatDaemonOwnerSummaryLabel as Nt, resolveCurrentReplyReadinessSnapshot as O, DEFAULT_RECONNECT_DELAY_MS as Oa, resolveCatalogSyncSkippedProfilesLogState as Oi, removeAgentCustomTarget as On, buildLocalServiceDiagnosticsPayload as Or, ensureDaemonServiceMaintenanceInstalled as Ot, REPLY_READINESS_COPY as P, RUNTIME_AGENT_CONTROLLER_REPORT_SYNC_INTERVAL_MS as Pa, GrokBuildAcpTransportError as Pi, normalizeAgentIds as Pn, applyAcceptedLeases as Pr, hasActiveDaemonOwners as Pt, buildDaemonServiceDependencySummary as Q, readDaemonCatalogSyncSignal as Qa, describeServerRequiredVersionUnavailableReason as Qi, ProjectBindingOperationError as Qn, seedLegacyAgentContext as Qr, classifyDaemonServiceWakeability as Qt, resolveOpenClawDiagnosticsGuidance as R, resolveRuntimeContext as Ra, resolveCodexTimeoutMs as Ri, canManageRegistryAgentSkillTargets as Rn, resolveCatalogSyncIntervalMs as Rr, summarizeDaemonOwnerSnapshot as Rt, buildDaemonServiceUpdateRequiredNextStep as S, CONTROLLED_SHUTDOWN_RESULT_ACK_TIMEOUT_MS as Sa, resolveAgentControllerPermissionModeForController as Si, listAgentRegistrations as Sn, createSerialAgentInteractionCallback as Sr, readOpenMeldToolsUpdateContextFromEnv as St, resolveDaemonServiceFreshnessWarning as T, DAEMON_STREAM_CONNECT_TIMEOUT_MS as Ta, resolveEvidenceSyncHealth as Ti, readAgentRuntimeConfigHealth as Tn, createPendingAgentInteractionRegistry as Tr, readOpenMeldToolsMaintenancePolicy as Tt, resolveOpenClawLocalDiagnosticsValue as U, createOpenMeldAgentProfile as Ua, createUnavailableProviderUsageLimits as Ui, resolveRegistryRuntimeAdapterCapabilitySnapshot as Un, resolveLatestScopedConversationExecutionState as Ur, buildDaemonServiceTargetSpec as Ut, resolveGatewayChainRepairGuidance as V, requireOpenMeldProfile as Va, verifyCodexAppServerThread as Vi, listBuiltinAgentsRegistryEntries as Vn, resolveCompatibleAgentContextMatch as Vr, ensureDaemonRuntimeContractState as Vt, resolveLocalServiceDemand as W, createOpenMeldHumanProfile as Wa, createUnsupportedProviderUsageLimits as Wi, resolveRegistryRuntimeAdapterContractByAgentControllerRef as Wn, runRuntimeTask as Wr, resolveDaemonServiceAlignmentDecision as Wt, buildDaemonServiceDependencyMeaning as X, updateOpenMeldProfile as Xa, resolveServiceUpdateUrgency as Xi, isPnpmGlobalCommandPath as Xn, removeConversationExecutionState as Xr, DAEMON_SERVICE_WAKEABILITY_ADVISORY_ANOMALIES as Xt, buildDaemonServiceDependencyDetails as Y, resolveOpenMeldProfile as Ya, createProviderOriginalError as Yi, isNpmGlobalCommandPath as Yn, loadLedgerState as Yr, DAEMON_SERVICE_REPAIR_ANOMALIES as Yt, buildDaemonServiceDependencyNextStep as Z, assertAdditionalHumanProfileCreationEnabled as Za, assessServerRequiredVersion as Zi, notifyDaemonRouteCatalogChanged as Zn, resolveConversationExecutionStateByLookupKey as Zr, classifyDaemonServiceRunStartability as Zt, resolveServiceReadinessFromServiceStatus as _, buildDaemonSystemServiceCommandSpec as _a, parseAgentControllerRef as _i, validateCustomProfileWorkspacePath as _n, compareAgentControllerRefsForDisplay as _o, syncRuntimeEventToInflightTaskControlRegistry as _r, syncDeviceRuntimeStateProjection as _t, isDaemonInventoryRunningAndStartReady as a, asRecord as aa, DEFAULT_TASK_LIFECYCLE_HEARTBEAT_INTERVAL_MS as ai, readLocalEnabledControllers as an, buildAuthenticationStatusLabel as ao, removeAgentActivityBindingsWhileDeliveryLocked as ar, slugifyOpenClawNamePart as at, buildDaemonServiceRepairGuidance as b, CATALOG_SYNC_SIGNAL_POLL_INTERVAL_MS as ba, renderInformationProtectionPrompt as bi, createRegistrationFromCatalogTarget as bn, isDaemonReconcileInProgressError as br, resolveLocalRegistryAgentIdFromAgentControllerRef as bt, waitForSystemServiceStartup as c, normalizeHeartbeatIntervalMs as ca, buildInformationProtectionPromptPlan as ci, resolveProfileWorkspaceRuntime as cn, createAuthenticationError as co, resolveProjectBindingForPath as cr, createMutableRouteCatalogState as ct, captureDaemonServiceEvidenceBestEffort as d, normalizeText$11 as da, createAgentExecutionStatusDisplayRows as di, readProfileWorkspaceConfig as dn, resolveAuthenticationGuidanceFromError as do, unbindProject as dr, summarizeSkippedDaemonProfiles as dt, readCurrentLocalDeviceId as ea, upsertConversationExecutionState as ei, emitDriftDetectedEvidence as en, clearAllSelectedOpenMeldProfileIds as eo, bindProject as er, resolveDaemonServiceDependencyDiagnostics as et, formatDaemonFailureContextText as f, nowIsoString as fa, createAuthorityOpenMeldServiceRuntimeId as fi, readProfileWorkspaceConfigForAccount as fn, resolveAuthenticationGuidanceFromMessage as fo, canonicalizeLocalProjectPath as fr, syncDaemonRouteCatalogState as ft, resolveServiceReadiness as g, isCliUpdateCheckApplicable as ga, listAgentControllerPermissionModeOptions as gi, setOpenMeldManagedProfileWorkspace as gn, resolveCurrentOpenMeldAccountContext as go, normalizeDispatchThreadAction as gr, NO_LOCAL_AGENTS_NEED_OPENMELD_SERVICE_REASON as gt, resolveDaemonStatusAuthenticationAttention as h, assessCliUpdate as ha, isAgentExecutionReadyOrConnecting as hi, setCustomProfileWorkspace as hn, setProfileDefaultView as ho, withAgentActivityLocalStateLock as hr, resolveCurrentEffectiveProfileWorkingFolderRuntime as ht, runDaemonServiceLifecycle as i, resolvePreferredDaemonDeviceId as ia, buildAgentContextLookupKey as ii, buildRuntimeRouteTargets as in, buildAgentAuthenticationGuide as io, migrateProjectBindingStore as ir, normalizeOpenClawSpaceIdPrefix as it, formatHumanReplyReadinessReason as j, PROVIDER_CONVERSATION_PROOF_SYNC_INTERVAL_MS as ja, parseOpenCodeGoUsageResponse as ji, updateAgentCustomTarget as jn, ADAPTIVE_HEARTBEAT_JITTER_RATIO as jr, inspectDaemonServiceInventory as jt, formatAgentReplyReadinessLabel as k, HEARTBEAT_RESPONSE_TIMEOUT_MS as ka, createLocalAdapterContainer as ki, resolveAgentTargetState as kn, createLocalExecutionSlots as kr, prepareDaemonServiceUpdateWorkerCarrier as kt, startDaemonSystemServiceWithAutoRepair as l, normalizeNonNegativeInteger as la, buildWorkingLanguagePromptPlan as li, ensureOpenMeldManagedProfileWorkspace as ln, extractAuthenticationPromptAction as lo, runIfAgentActivityBindingGenerationIsCurrent as lr, createRouteCatalogFromMutableState as lt, resolveDaemonStatusAttention as m, warnDaemonEvent as ma, getAgentControllerPermissionModeFieldLabel as mi, resolveConfiguredProfileWorkspacePathForAccount as mn, getProfileDefaultView as mo, withAgentActivityDeliveryLock as mr, createModelCatalogReadSession as mt, scheduleDaemonServiceUpdate as n, ensureDaemonRuntimePaths as na, buildAuthenticatedControlPlaneResponse as ni, emitReconcileStartedEvidence as nn, getSelectedOpenMeldProfileId as no, listProjectBindings as nr, prepareProviderRuntime as nt, isSystemServiceStartupTimeoutError as o, dirnamePath as oa, areAgentControllerInterfaceAccountsSame as oi, resolveLocalController as on, buildCommandAuthenticationPromptMessage as oo, removeMissingProjectConnections as or, readDaemonRouteCatalogCache as ot, resolveDaemonStatusSnapshot as p, toErrorMessage$23 as pa, getAgentControllerPermissionModeDisplayMetadata as pi, resolveConfiguredProfileWorkspacePath as pn, resolveAuthenticationReasonFromState as po, resolveLocalProjectConnectionForPath as pr, syncProfileWorkspaceState as pt, buildOnboardingPlan as q, listOpenMeldProfiles as qa, materializeCliLaunchCommand as qi, isBunGlobalCommandPath as qn, appendLedgerHistoryEntry as qr, DAEMON_SERVICE_AUTO_HEAL_ANOMALIES as qt, DaemonServiceLifecycleDrainTimeoutError as r, resolveDaemonDeviceId as ra, assertLegacyAgentContextAssociation as ri, DaemonServiceRunError as rn, setSelectedOpenMeldProfileId as ro, listProjectConnectionsWithStatus as rr, buildOpenClawSpaceSessionKey as rt, resolveSystemServiceStartupWaitMs as s, emitRunLine as sa, buildAgentControllerRef as si, resolveLocalRuntimeControllerSupport as sn, buildHumanAuthenticationCard as so, removeProjectConnection as sr, writeDaemonRouteCatalogCache as st, runPendingDaemonServiceUpdate as t, buildLedgerPaths as ta, withLedgerStateTransaction as ti, emitReconcileCompletedEvidence as tn, clearSelectedOpenMeldProfileId as to, isProjectBound as tr, writeDaemonServiceContract as tt, captureDaemonServiceEvidence as u, normalizeOptionalText$51 as ua, createAgentControllerInterfaceDisplayRows as ui, normalizeCustomProfileWorkspacePath as un, resolveAuthenticationGuidance as uo, setDefaultProjectConnection as ur, loadDaemonRouteCatalog as ut, buildDaemonServiceRefreshNextStep as v, ensureDaemonSystemServiceCommandFiles as va, peopleComputerContainsDevice as vi, describeProfileWorkspacePathValidationFailure as vn, resolveBuiltinAgentControllerBrand as vo, SPACE_ACTION_CONTEXT_GUIDANCE_LINES as vr, createPrimaryBindingReadSession as vt, formatDaemonServiceUpdateRequiredMessage as w, DAEMON_RUNTIME_CONTRACT_EPOCH as wa, resolveAgentProfileEditCapabilities as wi, manageAgentRegistrationInstallation as wn, normalizeDispatchPostMessageAction as wr, readPendingOpenMeldToolsUpdateAttempt as wt, buildDaemonServiceStatusReadOnlyDetail as x, CONTROLLED_SHUTDOWN_REQUEST_TIMEOUT_MS as xa, renderWorkingLanguagePrompt as xi, listAgentCustomTargets as xn, resolveRouteRegistrationReconcileDecision as xr, createOpenMeldToolsUpdateCoordinator as xt, buildDaemonServiceRefreshPromptMessage as y, CATALOG_SYNC_RETRY_INTERVAL_MS as ya, projectPeopleComputersToLegacyLocalRuntimes as yi, addAgentCustomTarget as yn, SPACE_ACTION_TARGET_GUIDANCE_LINES as yr, resolveAgentProfilePrimaryAgentControllerReport as yt, classifyGatewayChainFailure as z, resolveViewProfileKey as za, resolveInstalledCodexLaunchCandidates as zi, detectInstalledSkillsAgents as zn, resolveDispatchQueueLogMeta as zr, resolveDaemonRuntimeContractCompatibility as zt };
|
|
38072
|
+
export { buildDaemonServiceDependencyTitle as $, readDaemonCatalogSyncSignal as $a, describeServerRequiredVersionUnavailableReason as $i, ProjectBindingStoreUpdateRequiredError as $n, settleInflightTask as $r, resolveCurrentDaemonExpectedVersion as $t, formatDeviceReplyReadinessLabel as A, HEARTBEAT_RESPONSE_TIMEOUT_MS as Aa, createLocalAdapterEntries as Ai, setAgentRegistrationEnabled as An, createInflightTaskControlRegistry as Ar, uninstallDaemonServiceUpdateWorker as At, resolveGatewayChainReadiness as B, resolveViewProfileKey as Ba, forkCodexAppServerThread as Bi, resolveSkillsAgentRegistry as Bn, resolveDispatchContinuityObservation as Br, toStartBackgroundHelperExecutionCompatibility as Bt, formatDaemonServiceRefreshReliabilityMessage as C, CONTROLLED_SHUTDOWN_RESULT_ACK_TIMEOUT_MS as Ca, resolveAgentExecutionStatus as Ci, listAgentTargetStates as Cn, buildDispatchReplyContextSummary as Cr, readLastOpenMeldToolsUpdateAttempt as Ct, writeDaemonStartFailureState as D, DAEMON_STREAM_KEEPALIVE_INTERVAL_MS as Da, resolveSelectableCandidates as Di, reconcileNewRunnableBuiltinAgentsForSetup as Dn, createLocalTaskInterruptSender as Dr, writeOpenMeldToolsMaintenancePolicy as Dt, clearDaemonStartFailureState as E, DAEMON_STREAM_CONNECT_TIMEOUT_MS as Ea, resolveNativeAgentControllerPermissionModeForController as Ei, reconcileNewRunnableBuiltinAgentRegistrations as En, mergeOpenClawGatewayVisibility as Er, resolveOpenMeldToolsMaintenanceProjection as Et, formatSpaceMemberCommandRecoveryCopy as F, RUNTIME_AGENT_CONTROLLER_REPORT_SYNC_INTERVAL_MS as Fa, probeGrokBuildAcpInterface as Fi, parseAgentEnabledOption as Fn, applyIntervalJitterMs as Fr, readCurrentDaemonOwnerSnapshot as Ft, PREPARE_SESSION_RECONNECT_GRACE_MS as G, createOpenMeldHumanProfile as Ga, createUnsupportedProviderUsageLimits as Gi, EMPTY_AGENT_CONTROLLER_INTERFACE_CAPABILITIES as Gn, buildRuntimeWorkspaceFingerprint as Gr, isVersionDowngrade as Gt, resolveGatewayChainRetryGuidance as H, requireOpenMeldProfile as Ha, verifyCodexAppServerThread as Hi, resolveRegistryOriginLaunchCommand as Hn, resolveCompatibleConversationExecutionState as Hr, readDaemonRuntimeContractRepairReport as Ht, resolveReplyReadinessAvailabilityReasonCopy as I, RUNTIME_AGENT_CONTROLLER_REPORT_SYNC_RETRY_INTERVAL_MS as Ia, resolveInstalledGrokBuildLaunchCandidates as Ii, sortAgentRegistrations as In, pruneStaleLeases as Ir, resolveDaemonStopStrategy as It, getSetupFlowCopy as J, listOpenMeldProfiles as Ja, materializeCliLaunchCommand as Ji, isHomebrewCommandPath as Jn, commitResolvedAgentContext as Jr, DAEMON_SERVICE_FULL_ALIGNMENT_ANOMALIES as Jt, buildDaemonRouteObservationPresentation as K, deleteOpenMeldProfile as Ka, resolveDispatchSpaceActionMcpServer as Ki, resolveBuiltinAgentControllerDefinition as Kn, buildTaskResultEnvelope as Kr, resolveVersionChangeDirection as Kt, resolveReplyReadinessGuidanceSummaryCopy as L, RUNTIME_STATE_PERSIST_MIN_INTERVAL_MS as La, projectCodexUsageLimits as Li, repairBuiltinControllerInstall as Ln, resolveAdaptiveHeartbeatIntervalMs as Lr, resolveStoppedContractWriteBlockedReason as Lt, formatReplyReadinessSummary as M, PROVIDER_CONVERSATION_PROOF_SYNC_INTERVAL_MS as Ma, forkOpenCodeServerSession as Mi, updateAgentRegistrations as Mn, MAX_HEARTBEAT_INTERVAL_MS as Mr, buildDaemonOwnerSnapshotFromObservedState as Mt, mapAgentReplyReadinessToLegacyAutoReply as N, PROVIDER_CONVERSATION_PROOF_SYNC_RETRY_INTERVAL_MS as Na, resolveInstalledOpenCodeLaunchCandidates as Ni, normalizeAgentId as Nn, MIN_HEARTBEAT_INTERVAL_MS as Nr, formatDaemonOwnerSummaryLabel as Nt, resolveCurrentReplyReadinessSnapshot as O, DAEMON_STREAM_KEEPALIVE_PONG_TIMEOUT_MS as Oa, resolveCatalogSyncSkippedProfilesLogState as Oi, removeAgentCustomTarget as On, buildLocalServiceDiagnosticsPayload as Or, ensureDaemonServiceMaintenanceInstalled as Ot, REPLY_READINESS_COPY as P, REGISTER_RESPONSE_TIMEOUT_MS as Pa, GrokBuildAcpTransportError as Pi, normalizeAgentIds as Pn, applyAcceptedLeases as Pr, hasActiveDaemonOwners as Pt, buildDaemonServiceDependencySummary as Q, assertAdditionalHumanProfileCreationEnabled as Qa, assessServerRequiredVersion as Qi, ProjectBindingOperationError as Qn, seedLegacyAgentContext as Qr, classifyDaemonServiceWakeability as Qt, resolveOpenClawDiagnosticsGuidance as R, parseCliViewMode as Ra, resolveCodexTimeoutMs as Ri, canManageRegistryAgentSkillTargets as Rn, resolveCatalogSyncIntervalMs as Rr, summarizeDaemonOwnerSnapshot as Rt, buildDaemonServiceUpdateRequiredNextStep as S, CONTROLLED_SHUTDOWN_REQUEST_TIMEOUT_MS as Sa, resolveAgentControllerPermissionModeForController as Si, listAgentRegistrations as Sn, createSerialAgentInteractionCallback as Sr, readOpenMeldToolsUpdateContextFromEnv as St, resolveDaemonServiceFreshnessWarning as T, DAEMON_RUNTIME_CONTRACT_EPOCH as Ta, resolveEvidenceSyncHealth as Ti, readAgentRuntimeConfigHealth as Tn, createPendingAgentInteractionRegistry as Tr, readOpenMeldToolsMaintenancePolicy as Tt, resolveOpenClawLocalDiagnosticsValue as U, resolveOpenMeldProfileOrNull as Ua, resolveInstalledClaudeCodeLaunchCandidates as Ui, resolveRegistryRuntimeAdapterCapabilitySnapshot as Un, resolveLatestScopedConversationExecutionState as Ur, buildDaemonServiceTargetSpec as Ut, resolveGatewayChainRepairGuidance as V, isSelectedOpenMeldProfileRequiredError as Va, resolveCodexAppServerCompletedTurn as Vi, listBuiltinAgentsRegistryEntries as Vn, resolveCompatibleAgentContextMatch as Vr, ensureDaemonRuntimeContractState as Vt, resolveLocalServiceDemand as W, createOpenMeldAgentProfile as Wa, createUnavailableProviderUsageLimits as Wi, resolveRegistryRuntimeAdapterContractByAgentControllerRef as Wn, runRuntimeTask as Wr, resolveDaemonServiceAlignmentDecision as Wt, buildDaemonServiceDependencyMeaning as X, resolveOpenMeldProfile as Xa, createProviderOriginalError as Xi, isPnpmGlobalCommandPath as Xn, removeConversationExecutionState as Xr, DAEMON_SERVICE_WAKEABILITY_ADVISORY_ANOMALIES as Xt, buildDaemonServiceDependencyDetails as Y, primeOpenMeldProfilesSessionCache as Ya, listAgentControllerSupervisedProcessIds as Yi, isNpmGlobalCommandPath as Yn, loadLedgerState as Yr, DAEMON_SERVICE_REPAIR_ANOMALIES as Yt, buildDaemonServiceDependencyNextStep as Z, updateOpenMeldProfile as Za, resolveServiceUpdateUrgency as Zi, notifyDaemonRouteCatalogChanged as Zn, resolveConversationExecutionStateByLookupKey as Zr, classifyDaemonServiceRunStartability as Zt, resolveServiceReadinessFromServiceStatus as _, isCliUpdateCheckApplicable as _a, parseAgentControllerRef as _i, validateCustomProfileWorkspacePath as _n, resolveCurrentOpenMeldAccountContext as _o, syncRuntimeEventToInflightTaskControlRegistry as _r, syncDeviceRuntimeStateProjection as _t, isDaemonInventoryRunningAndStartReady as a, resolvePreferredDaemonDeviceId as aa, DEFAULT_TASK_LIFECYCLE_HEARTBEAT_INTERVAL_MS as ai, readLocalEnabledControllers as an, buildAgentAuthenticationGuide as ao, removeAgentActivityBindingsWhileDeliveryLocked as ar, slugifyOpenClawNamePart as at, buildDaemonServiceRepairGuidance as b, CATALOG_SYNC_RETRY_INTERVAL_MS as ba, renderInformationProtectionPrompt as bi, createRegistrationFromCatalogTarget as bn, isDaemonReconcileInProgressError as br, resolveLocalRegistryAgentIdFromAgentControllerRef as bt, waitForSystemServiceStartup as c, emitRunLine as ca, buildInformationProtectionPromptPlan as ci, resolveProfileWorkspaceRuntime as cn, buildHumanAuthenticationCard as co, resolveProjectBindingForPath as cr, createMutableRouteCatalogState as ct, captureDaemonServiceEvidenceBestEffort as d, normalizeOptionalText$51 as da, createAgentExecutionStatusDisplayRows as di, readProfileWorkspaceConfig as dn, resolveAuthenticationGuidance as do, unbindProject as dr, summarizeSkippedDaemonProfiles as dt, buildLocalAgentCatalogFromReadiness as ea, upsertConversationExecutionState as ei, emitDriftDetectedEvidence as en, alignSelectedOpenMeldProfileStorage as eo, bindProject as er, resolveDaemonServiceDependencyDiagnostics as et, formatDaemonFailureContextText as f, normalizeText$11 as fa, createAuthorityOpenMeldServiceRuntimeId as fi, readProfileWorkspaceConfigForAccount as fn, resolveAuthenticationGuidanceFromError as fo, canonicalizeLocalProjectPath as fr, syncDaemonRouteCatalogState as ft, resolveServiceReadiness as g, assessCliUpdate as ga, listAgentControllerPermissionModeOptions as gi, setOpenMeldManagedProfileWorkspace as gn, setProfileDefaultView as go, normalizeDispatchThreadAction as gr, NO_LOCAL_AGENTS_NEED_OPENMELD_SERVICE_REASON as gt, resolveDaemonStatusAuthenticationAttention as h, warnDaemonEvent as ha, isAgentExecutionReadyOrConnecting as hi, setCustomProfileWorkspace as hn, getProfileDefaultView as ho, withAgentActivityLocalStateLock as hr, resolveCurrentEffectiveProfileWorkingFolderRuntime as ht, runDaemonServiceLifecycle as i, resolveDaemonDeviceId as ia, buildAgentContextLookupKey as ii, buildRuntimeRouteTargets as in, setSelectedOpenMeldProfileId as io, migrateProjectBindingStore as ir, normalizeOpenClawSpaceIdPrefix as it, formatHumanReplyReadinessReason as j, MAX_RECONNECT_DELAY_MS as ja, parseOpenCodeGoUsageResponse as ji, updateAgentCustomTarget as jn, ADAPTIVE_HEARTBEAT_JITTER_RATIO as jr, inspectDaemonServiceInventory as jt, formatAgentReplyReadinessLabel as k, DEFAULT_RECONNECT_DELAY_MS as ka, createLocalAdapterContainer as ki, resolveAgentTargetState as kn, createLocalExecutionSlots as kr, prepareDaemonServiceUpdateWorkerCarrier as kt, startDaemonSystemServiceWithAutoRepair as l, normalizeHeartbeatIntervalMs as la, buildWorkingLanguagePromptPlan as li, ensureOpenMeldManagedProfileWorkspace as ln, createAuthenticationError as lo, runIfAgentActivityBindingGenerationIsCurrent as lr, createRouteCatalogFromMutableState as lt, resolveDaemonStatusAttention as m, toErrorMessage$23 as ma, getAgentControllerPermissionModeFieldLabel as mi, resolveConfiguredProfileWorkspacePathForAccount as mn, resolveAuthenticationReasonFromState as mo, withAgentActivityDeliveryLock as mr, createModelCatalogReadSession as mt, scheduleDaemonServiceUpdate as n, buildLedgerPaths as na, buildAuthenticatedControlPlaneResponse as ni, emitReconcileStartedEvidence as nn, clearSelectedOpenMeldProfileId as no, listProjectBindings as nr, prepareProviderRuntime as nt, isSystemServiceStartupTimeoutError as o, asRecord as oa, areAgentControllerInterfaceAccountsSame as oi, resolveLocalController as on, buildAuthenticationStatusLabel as oo, removeMissingProjectConnections as or, readDaemonRouteCatalogCache as ot, resolveDaemonStatusSnapshot as p, nowIsoString as pa, getAgentControllerPermissionModeDisplayMetadata as pi, resolveConfiguredProfileWorkspacePath as pn, resolveAuthenticationGuidanceFromMessage as po, resolveLocalProjectConnectionForPath as pr, syncProfileWorkspaceState as pt, buildOnboardingPlan as q, getOpenMeldProfileCapabilities as qa, buildCliLaunchInvocation as qi, isBunGlobalCommandPath as qn, appendLedgerHistoryEntry as qr, DAEMON_SERVICE_AUTO_HEAL_ANOMALIES as qt, DaemonServiceLifecycleDrainTimeoutError as r, ensureDaemonRuntimePaths as ra, assertLegacyAgentContextAssociation as ri, DaemonServiceRunError as rn, getSelectedOpenMeldProfileId as ro, listProjectConnectionsWithStatus as rr, buildOpenClawSpaceSessionKey as rt, resolveSystemServiceStartupWaitMs as s, dirnamePath as sa, buildAgentControllerRef as si, resolveLocalRuntimeControllerSupport as sn, buildCommandAuthenticationPromptMessage as so, removeProjectConnection as sr, writeDaemonRouteCatalogCache as st, runPendingDaemonServiceUpdate as t, readCurrentLocalDeviceId as ta, withLedgerStateTransaction as ti, emitReconcileCompletedEvidence as tn, clearAllSelectedOpenMeldProfileIds as to, isProjectBound as tr, writeDaemonServiceContract as tt, captureDaemonServiceEvidence as u, normalizeNonNegativeInteger as ua, createAgentControllerInterfaceDisplayRows as ui, normalizeCustomProfileWorkspacePath as un, extractAuthenticationPromptAction as uo, setDefaultProjectConnection as ur, loadDaemonRouteCatalog as ut, buildDaemonServiceRefreshNextStep as v, buildDaemonSystemServiceCommandSpec as va, peopleComputerContainsDevice as vi, describeProfileWorkspacePathValidationFailure as vn, compareAgentControllerRefsForDisplay as vo, SPACE_ACTION_CONTEXT_GUIDANCE_LINES as vr, createPrimaryBindingReadSession as vt, formatDaemonServiceUpdateRequiredMessage as w, CONTROLLED_SHUTDOWN_SOCKET_CLOSE_TIMEOUT_MS as wa, resolveAgentProfileEditCapabilities as wi, manageAgentRegistrationInstallation as wn, normalizeDispatchPostMessageAction as wr, readPendingOpenMeldToolsUpdateAttempt as wt, buildDaemonServiceStatusReadOnlyDetail as x, CATALOG_SYNC_SIGNAL_POLL_INTERVAL_MS as xa, renderWorkingLanguagePrompt as xi, listAgentCustomTargets as xn, resolveRouteRegistrationReconcileDecision as xr, createOpenMeldToolsUpdateCoordinator as xt, buildDaemonServiceRefreshPromptMessage as y, ensureDaemonSystemServiceCommandFiles as ya, projectPeopleComputersToLegacyLocalRuntimes as yi, addAgentCustomTarget as yn, resolveBuiltinAgentControllerBrand as yo, SPACE_ACTION_TARGET_GUIDANCE_LINES as yr, resolveAgentProfilePrimaryAgentControllerReport as yt, classifyGatewayChainFailure as z, resolveRuntimeContext as za, resolveInstalledCodexLaunchCandidates as zi, detectInstalledSkillsAgents as zn, resolveDispatchQueueLogMeta as zr, resolveDaemonRuntimeContractCompatibility as zt };
|
|
37887
38073
|
|
|
37888
|
-
//# sourceMappingURL=daemon-service-update-coordinator-
|
|
38074
|
+
//# sourceMappingURL=daemon-service-update-coordinator-BcbbIDzC.js.map
|