openmeld 0.3.135 → 0.3.136
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-9xY_Cbqw.js → add-me-membership-BNNtDZYW.js} +2 -2
- package/dist/{add-me-membership-9xY_Cbqw.js.map → add-me-membership-BNNtDZYW.js.map} +1 -1
- package/dist/{api-client-foundation--Nr2FS4d.js → api-client-foundation-CabWpjFe.js} +3 -3
- package/dist/{api-client-foundation--Nr2FS4d.js.map → api-client-foundation-CabWpjFe.js.map} +1 -1
- package/dist/{auth-session-CNmIonA7.js → auth-session-Bj8n8YwV.js} +223 -84
- package/dist/auth-session-Bj8n8YwV.js.map +1 -0
- package/dist/{command-wO4TFiYh.js → command-BGqFPMwd.js} +484 -63
- package/dist/{command-wO4TFiYh.js.map → command-BGqFPMwd.js.map} +1 -1
- package/dist/{dist-DoFr77hZ.js → dist-0qM_CVk2.js} +29 -9
- package/dist/dist-0qM_CVk2.js.map +1 -0
- package/dist/openmeld.js +6 -6
- package/dist/{runtime-transport-Ciax1_jb.js → runtime-transport-BiQfJGnw.js} +49 -4
- package/dist/runtime-transport-BiQfJGnw.js.map +1 -0
- package/package.json +2 -2
- package/dist/auth-session-CNmIonA7.js.map +0 -1
- package/dist/dist-DoFr77hZ.js.map +0 -1
- package/dist/runtime-transport-Ciax1_jb.js.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { $ as runWithHeldLock, $t as formatLocalMachineIssueMessage, At as normalizeAccountKey, B as toSpaceRemoveMembersUrl, C as updateConfiguredDeviceRuntimeState, Ct as accountProfileWorkspacePath, D as normalizeBaseUrl, Dt as deviceOpenClawProfileWorkspaceDir, Et as deviceOpenClawProfileDir, Ft as openMeldManagedVersionBinaryPath, Gt as resolveOpenMeldEnvPreset, H as toSpaceUpdatesUrl, Ht as resolveDefaultOpenMeldHomeDirname, I as toSpaceLeaveUrl, It as openMeldManagedVersionDir, Jt as runtimeDir, K as isOpenMeldLockError, Kt as resolveOpenMeldPresetOwnedPathInput, L as toSpaceMembersUrl, Lt as openMeldRootDir, M as toSpaceCursorUrl, Mt as openMeldBackupsDir, N as toSpaceDeleteUrl, Nt as openMeldBinDir, O as toDaemonRouteObservationUrl, Ot as isPublishedOpenMeldHome, Pt as openMeldManagedBinaryPath, Q as resolveOpenMeldOrphanedLockIssue, Qt as systemDir, R as toSpaceMetaUrl, Rt as openMeldVersionsDir, S as setConfiguredSkillsConfig, St as accountProfileViewPath, T as updateConfiguredSkillsConfig, Tt as deviceOpenClawProfileBootstrapPath, U as toSpaceWsUrl, Ut as resolveExplicitOpenMeldEnvPreset, W as acquireLock, Xt as skillsDir, Yt as runtimeLogsDir, _ as getConfiguredViewCustomization, _n as normalizeKnownBuiltinAgentControllerId, _t as CURRENT_PROCESS_START_IDENTITY, a as resolveBaseUrl, an as runtimeTransportModeSchema, at as resolveCliContext, bt as accountProfileLocalMetaPath, c as resolveExplicitGatewayUrlOrThrow, cn as conversationPolicySchema, d as createDefaultRuntimeAgentControllerSettings, dn as HOSTED_CENTER_AGENT_CONTROLLER_REF_ID, dt as assessLocalMachineFailure, f as getConfiguredDaemonDispatchLimits, g as getConfiguredSkillsConfig, gn as normalizeBuiltinAgentControllerId, h as getConfiguredOpenMeldToolsMaintenance, hn as canonicalizeBuiltinAgentControllerRef, i as normalizeGatewayBaseUrlOrNull, in as runtimeStreamingModeSchema, it as readCliContextState, j as toSpaceCreateUrl, jt as normalizeOpenMeldProfileId, kt as legacyAccountProfileSpacesDir, l as DEFAULT_RUNTIME_AGENT_TRANSPORT_MODE, ln as resolveBuiltinAgentControllerConversationKind, lt as resolveOpenMeldLaneDescriptor, mn as canonicalizeAgentControllerRef, nn as runtimeAgentControllerLaunchContractSchema, o as resolveBaseUrlOrNull, ot as resolveCliContextId, p as getConfiguredDeviceRuntimeState, pn as buildAgentControllerRoutingKey, pt as createBackgroundExecutionBlockedIssue, q as isOpenMeldOrphanedLockError, qt as resolveOpenMeldRootDir, r as normalizeGatewayBaseUrl, rt as listCliContextStates, s as resolveDefaultGatewayBaseUrl, sn as buildAgentControllerConversationRef, st as writeCliContextState, tn as runtimeAgentControllerConversationIdMappingSpecSchema, un as HOSTED_CENTER_AGENT_CONTROLLER_REF, v as getRuntimeConfigReadHealth, vn as parseAgentControllerRef$1, vt as isProcessIdentityAlive, wt as accountsDir, x as setConfiguredOpenMeldToolsMaintenance, xt as accountProfileSpaceCacheDir, y as resolveRuntimeSkillsCustomTargetId, yt as OPENMELD_HOME_ENV_KEY, z as toSpacePasswordUrl } from "./base-url-BtqW4aLS.js";
|
|
4
|
-
import { A as MAX_TEXT_LENGTH, At as createCenterAgentRoutineResponseSchema, B as sleep, C as createSpaceApi, D as toStructuredApiClientFailure, Dt as organizationComputersResponseSchema, E as resolveProfileSpaceHistoryGatewayHost, Et as profileErrorResponseSchema, F as OPENMELD_HEADER_PROFILE_ID, Ft as resumeCenterAgentRoutineResponseSchema, Gt as localProjectControlDaemonFrameSchema, H as getSpaceUpdatesResponseSchema, It as updateCenterAgentRoutineResponseSchema, Jt as postSpaceMembersResponseSchema, Kt as localProjectControlDiscoverProjectsResponseSchema, L as OPENMELD_HEADER_REQUEST_ID, M as parseIncoming$1, Mt as listCenterAgentRoutineRunsResponseSchema, N as parseServerErrorFrame$1, Nt as listCenterAgentRoutinesResponseSchema, O as DAEMON_STREAM_KEEPALIVE_PING, Ot as submitFeedbackIssueRequestSchema, P as resolveCustomMentionAliasOverride, Pt as pauseCenterAgentRoutineResponseSchema, Q as submitAgentControllerTaskLifecycleEventItemSchema, Rt as AGENT_ACTIVITY_PRESENCE_TTL_MAX_MS, S as createRuntimeReportingApi, St as ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE, T as resolveAccountSpaceIndexGatewayHost, Tt as profileCapabilitiesResponseSchema, U as SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS, Ut as agentActivitySnapshotResponseSchema, V as toErrorMessage$43, Wt as localProjectControlConnectionSchema, Xt as spaceMemberDirectoryEntrySchema, Yt as removeSpaceMembersResponseSchema, Zt as spaceMemberDirectorySchema, _n as agentControllerPermissionModeSchema, _t as organizationSkillReleaseSummarySchema, a as buildSpaceAttachmentDownloadPath, an as createProjectResponseSchema, at as COMPUTER_FILE_ACCESS_RUNTIME_CAPABILITY, bt as organizationDirectoryResponseSchema, c as createAgentProfileBindingApi, cn as updateProjectResponseSchema, ct as computerFileAccessPolicyInputSchema, d as createCurrentDeviceApi, dt as organizationSpaceDirectoryWithMemberCountsResponseSchema, ft as spaceCreatorSchema, g as createOrganizationApi, h as createOpenMeldApiClient, ht as listOrganizationSkillsResponseSchema, i as buildProfileSpaceHistoryUpsertPath, in as archiveProjectResponseSchema, it as gatewayErrorEnvelopeSchema, j as parseEnvelope$1, jt as deleteCenterAgentRoutineResponseSchema, kt as submitFeedbackIssueResponseSchema, ln as centerAgentToolSpeakerSchema, lt as computerFileAccessPolicySchema, m as createLocalRuntimeExpectedRoutesApi, mt as getOrganizationSkillResponseSchema, n as OpenMeldApiClientInvalidResponseError, o as createAccountSpaceIndexApi, on as listProjectsResponseSchema, ot as OPENMELD_RUNTIME_CAPABILITIES_HEADER, p as createFetchTransport, pt as spaceMetaSchema, qt as leaveSpaceResponseSchema, r as buildProfileSpaceHistoryStatusPath, rn as observedLocalAgentSessionSchema, s as createAgentActivityApi, sn as projectSchema, st as computerFileAccessDaemonFrameSchema, t as OpenMeldApiClientHttpError, tn as agentActivitySessionInventoryResponseSchema, un as openCodePermissionConfigSchema, ut as modelCatalogSchema, vn as agentControllerCollaborationModeSchema, vt as organizationSkillSummarySchema, wt as authProfileManagedRoleSchema, xt as ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE, y as createProfileSpaceHistoryApi, yn as toLegacySpaceAddressingWireValue, z as toErrorMessage$44, zt as agentActivityEventSchema } from "./dist-
|
|
5
|
-
import { $r as MAX_PROFILE_WORKING_DIRECTORY_LENGTH, A as runtimeTransportRegisterSessionResponseSchema, Bn as agentInteractionResolutionSchema, C as runtimeTransportLocalAgentControlRefreshCatalogFramePayloadSchema, Cn as MESSAGE_MENTION_TYPE_VALUES, D as runtimeTransportOpenMeldToolsControlFramePayloadSchema, Dr as url, E as runtimeTransportLookupRouteOwnerServiceEvidenceSchema, En as getSpaceMessageAddressingRelationSupportForTargetKind, Fr as runtimeCoordinatorExecutionTokenEnvelopeSchema, Gn as formatLocalSetupActionLabel, H as openMeldDaemonTaskResultEnvelopeWriteSchema, Hn as formatLocalComponentsSummaryDescription, Hr as resolveSpaceMentionLabels, I as runtimeTransportSubmitTaskResultRequestSchema, Ir as runtimeTransportDeliveryExecutionIdentitySchema, J as OPENMELD_LOCAL_FOLDER_PICKER_CAPABILITY_HEADER, K as openMeldSpaceEgressActionSchema, Kn as installedLocalComponentsSnapshotSchema, Kt as resolveSpaceFileMimeType, L as OPENMELD_ORIGINAL_ERROR_MAX_LENGTH, Ln as AGENT_INTERACTION_DEFAULT_TIMEOUT_MS, M as runtimeTransportResumeControllerConversationFramePayloadSchema, N as runtimeTransportResumeControllerConversationResultFramePayloadSchema, O as runtimeTransportOpenMeldToolsControlResultFramePayloadSchema, On as normalizeMessageEnvelope, P as runtimeTransportRouteCatalogChangedFramePayloadSchema, Qr as openMeldRequestContextSchema, R as isOriginalErrorSafeForMessageDetails, Rt as SPACE_FILE_MAX_SIZE_BYTES, S as runtimeTransportLocalAgentControlManageInstallationFramePayloadSchema, Sr as string, St as sanitizeSignalTextPreview, T as runtimeTransportLocalAgentControlSetProfileWorkspaceFramePayloadSchema, Tn as formatCanonicalMentionLiteral, U as openMeldDaemonTaskResultOpenClawGatewayVisibilityStatusSchema, Un as formatLocalComponentsSummaryLabel, V as openMeldDaemonProviderAccessEvidenceSchema, Vr as resolveSingleSpaceMentionLabels, W as openMeldDaemonTaskResultPayloadSchema, Wn as formatLocalSetupActionDescription, X as localFolderPickerHelperProtocolResultSchema, Xt as spaceFileNameSchema, Y as localFolderPickerDaemonFrameSchema, Z as localFolderPickerHelperResultSchema, Zn as localServiceComponentUpdateProjectionSchema, _ as runtimeTransportHeartbeatRequestSchema, _i as
|
|
4
|
+
import { A as MAX_TEXT_LENGTH, At as createCenterAgentRoutineResponseSchema, B as sleep, C as createSpaceApi, D as toStructuredApiClientFailure, Dt as organizationComputersResponseSchema, E as resolveProfileSpaceHistoryGatewayHost, Et as profileErrorResponseSchema, F as OPENMELD_HEADER_PROFILE_ID, Ft as resumeCenterAgentRoutineResponseSchema, Gt as localProjectControlDaemonFrameSchema, H as getSpaceUpdatesResponseSchema, It as updateCenterAgentRoutineResponseSchema, Jt as postSpaceMembersResponseSchema, Kt as localProjectControlDiscoverProjectsResponseSchema, L as OPENMELD_HEADER_REQUEST_ID, M as parseIncoming$1, Mt as listCenterAgentRoutineRunsResponseSchema, N as parseServerErrorFrame$1, Nt as listCenterAgentRoutinesResponseSchema, O as DAEMON_STREAM_KEEPALIVE_PING, Ot as submitFeedbackIssueRequestSchema, P as resolveCustomMentionAliasOverride, Pt as pauseCenterAgentRoutineResponseSchema, Q as submitAgentControllerTaskLifecycleEventItemSchema, Rt as AGENT_ACTIVITY_PRESENCE_TTL_MAX_MS, S as createRuntimeReportingApi, St as ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE, T as resolveAccountSpaceIndexGatewayHost, Tt as profileCapabilitiesResponseSchema, U as SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS, Ut as agentActivitySnapshotResponseSchema, V as toErrorMessage$43, Wt as localProjectControlConnectionSchema, Xt as spaceMemberDirectoryEntrySchema, Yt as removeSpaceMembersResponseSchema, Zt as spaceMemberDirectorySchema, _n as agentControllerPermissionModeSchema, _t as organizationSkillReleaseSummarySchema, a as buildSpaceAttachmentDownloadPath, an as createProjectResponseSchema, at as COMPUTER_FILE_ACCESS_RUNTIME_CAPABILITY, bt as organizationDirectoryResponseSchema, c as createAgentProfileBindingApi, cn as updateProjectResponseSchema, ct as computerFileAccessPolicyInputSchema, d as createCurrentDeviceApi, dt as organizationSpaceDirectoryWithMemberCountsResponseSchema, ft as spaceCreatorSchema, g as createOrganizationApi, h as createOpenMeldApiClient, ht as listOrganizationSkillsResponseSchema, i as buildProfileSpaceHistoryUpsertPath, in as archiveProjectResponseSchema, it as gatewayErrorEnvelopeSchema, j as parseEnvelope$1, jt as deleteCenterAgentRoutineResponseSchema, kt as submitFeedbackIssueResponseSchema, ln as centerAgentToolSpeakerSchema, lt as computerFileAccessPolicySchema, m as createLocalRuntimeExpectedRoutesApi, mt as getOrganizationSkillResponseSchema, n as OpenMeldApiClientInvalidResponseError, o as createAccountSpaceIndexApi, on as listProjectsResponseSchema, ot as OPENMELD_RUNTIME_CAPABILITIES_HEADER, p as createFetchTransport, pt as spaceMetaSchema, qt as leaveSpaceResponseSchema, r as buildProfileSpaceHistoryStatusPath, rn as observedLocalAgentSessionSchema, s as createAgentActivityApi, sn as projectSchema, st as computerFileAccessDaemonFrameSchema, t as OpenMeldApiClientHttpError, tn as agentActivitySessionInventoryResponseSchema, un as openCodePermissionConfigSchema, ut as modelCatalogSchema, vn as agentControllerCollaborationModeSchema, vt as organizationSkillSummarySchema, wt as authProfileManagedRoleSchema, xt as ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE, y as createProfileSpaceHistoryApi, yn as toLegacySpaceAddressingWireValue, z as toErrorMessage$44, zt as agentActivityEventSchema } from "./dist-0qM_CVk2.js";
|
|
5
|
+
import { $r as MAX_PROFILE_WORKING_DIRECTORY_LENGTH, A as runtimeTransportRegisterSessionResponseSchema, Bn as agentInteractionResolutionSchema, C as runtimeTransportLocalAgentControlRefreshCatalogFramePayloadSchema, Cn as MESSAGE_MENTION_TYPE_VALUES, D as runtimeTransportOpenMeldToolsControlFramePayloadSchema, Dr as url, E as runtimeTransportLookupRouteOwnerServiceEvidenceSchema, En as getSpaceMessageAddressingRelationSupportForTargetKind, Fr as runtimeCoordinatorExecutionTokenEnvelopeSchema, Gn as formatLocalSetupActionLabel, H as openMeldDaemonTaskResultEnvelopeWriteSchema, Hn as formatLocalComponentsSummaryDescription, Hr as resolveSpaceMentionLabels, I as runtimeTransportSubmitTaskResultRequestSchema, Ir as runtimeTransportDeliveryExecutionIdentitySchema, J as OPENMELD_LOCAL_FOLDER_PICKER_CAPABILITY_HEADER, K as openMeldSpaceEgressActionSchema, Kn as installedLocalComponentsSnapshotSchema, Kt as resolveSpaceFileMimeType, L as OPENMELD_ORIGINAL_ERROR_MAX_LENGTH, Ln as AGENT_INTERACTION_DEFAULT_TIMEOUT_MS, M as runtimeTransportResumeControllerConversationFramePayloadSchema, N as runtimeTransportResumeControllerConversationResultFramePayloadSchema, O as runtimeTransportOpenMeldToolsControlResultFramePayloadSchema, On as normalizeMessageEnvelope, P as runtimeTransportRouteCatalogChangedFramePayloadSchema, Qr as openMeldRequestContextSchema, R as isOriginalErrorSafeForMessageDetails, Rt as SPACE_FILE_MAX_SIZE_BYTES, S as runtimeTransportLocalAgentControlManageInstallationFramePayloadSchema, Si as resolveCommandAgentWorkActivity, Sr as string, St as sanitizeSignalTextPreview, T as runtimeTransportLocalAgentControlSetProfileWorkspaceFramePayloadSchema, Tn as formatCanonicalMentionLiteral, U as openMeldDaemonTaskResultOpenClawGatewayVisibilityStatusSchema, Un as formatLocalComponentsSummaryLabel, V as openMeldDaemonProviderAccessEvidenceSchema, Vr as resolveSingleSpaceMentionLabels, W as openMeldDaemonTaskResultPayloadSchema, Wn as formatLocalSetupActionDescription, X as localFolderPickerHelperProtocolResultSchema, Xt as spaceFileNameSchema, Y as localFolderPickerDaemonFrameSchema, Z as localFolderPickerHelperResultSchema, Zn as localServiceComponentUpdateProjectionSchema, _ as runtimeTransportHeartbeatRequestSchema, _i as sanitizeDispatchErrorSummary, a as runtimeTransportCapabilitiesSchema, b as runtimeTransportLocalAgentControlForkSessionFramePayloadSchema, bt as SPACE_MENTION_REJECT_NOTICE_PURPOSE, c as runtimeTransportDispatchInteractionRequestSchema, cn as conversationExecutionStateSchema, d as runtimeTransportDispatchPreviewEndRequestSchema, di as trimmedStringFromUnknown, dr as enumFactory, ei as agentProfileIdSchema, er as openMeldToolsUpdateAttemptSchema, f as runtimeTransportDispatchPreviewRequestSchema, fi as MAX_TEXT_LENGTH$1, g as runtimeTransportForkAgentSessionResultSchema, gi as resolvePublicAgentFailureRecovery, h as runtimeTransportErrorCodeSchema, hi as resolvePublicAgentAvailabilityCopy, i as localWakeRouteReportSchema, in as openMeldDaemonControlPlaneResponseSchema, ir as openMeldToolsUpdateRequestSourceSchema, j as runtimeTransportRejectedProfileRegistrationSchema, jr as parseOptionalClientMessageId, k as runtimeTransportRegisterSessionRequestSchema, kn as resolveMessageEnvelopeTargetField, l as runtimeTransportDispatchInteractionResponseFramePayloadSchema, lr as discriminatedUnion, m as runtimeTransportDispatchToolActivityRequestSchema, mi as resolveMappedPublicAgentFailureReason, mr as literal, mt as CONVERSATION_CONTINUITY_WARNING_PURPOSE, n as daemonExecutionCompatibilitySchema, ni as openMeldRuntimeProfileIdSchema, o as runtimeTransportDeliverDispatchRequestSchema, oi as profileWorkspaceModeSchema, on as skippedDaemonProfileSchema, p as runtimeTransportDispatchRuntimeEvidenceRequestSchema, pr as iso, q as LOCAL_FOLDER_PICKER_RUNTIME_CAPABILITY, qn as localCliComponentUpdateProjectionSchema, r as daemonStreamFrameSchema, rn as openMeldDaemonControlPlaneRequestSchema, s as runtimeTransportDispatchInteractionDeliveredRequestSchema, sn as providerDispatchRuntimeContextSchema, sr as boolean, t as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, ti as normalizeOptionalWorkingDirectory, tr as openMeldToolsUpdateOperationPhaseSchema, u as runtimeTransportDispatchLifecycleRequestSchema, v as runtimeTransportHeartbeatResponseSchema, vi as shouldPreferMappedPublicAgentFailureReason, vt as SPACE_MEMBER_JOIN_NOTICE_PURPOSE, w as runtimeTransportLocalAgentControlSetEnabledFramePayloadSchema, wn as collectCanonicalMentionTextFragments, x as runtimeTransportLocalAgentControlInterruptFramePayloadSchema, xr as strictObject, y as runtimeTransportLocalAgentControlCancelFramePayloadSchema, yt as SPACE_MEMBER_REMOVE_NOTICE_PURPOSE, zn as agentInteractionRequestSchema, zr as normalizeSpacePasswordText } from "./runtime-transport-BiQfJGnw.js";
|
|
6
6
|
import { r as daemonServiceLaneSchema, t as daemonServiceContractSchema } from "./service-contract-CRyDcIIf.js";
|
|
7
7
|
import { A as getDaemonRuntimeStatus, B as resolveDaemonServiceRuntimeMetadata, C as daemonServiceRepairJournalPath, D as daemonServiceUpdateWorkerBinaryExecutablePath, E as daemonServiceStableLauncherPath, F as readDaemonServiceLifecycleLockMeta, G as withDaemonServiceReconcileLock, H as rotateDaemonControlPlaneTokenIfExpired, I as readDaemonServiceLifecycleLockMetaWithCleanup, J as withDaemonServiceStopLock, K as withDaemonServiceRegistrationMutationLock, L as readDaemonServiceRuntimeSnapshot, M as installDaemon, N as isDaemonServiceRuntimeHeartbeatStale, O as daemonStatePath, P as readDaemonControlPlaneToken, R as releaseDaemonServiceLifecycleLock, S as daemonServiceRecognizedExecutablePaths$1, T as daemonServiceStableExecutableWrapperPath, U as setDaemonServiceRuntimeState, V as restoreDaemonInstallStateSnapshot, W as uninstallDaemon, X as writeDaemonLocalStateFile, Y as readDaemonLocalStateFile, _ as daemonRuntimeServiceManagerPath, a as DAEMON_SERVICE_RUNTIME_CONTROLLER_ENV, b as daemonServiceExecutableWrapperPaths$1, c as DAEMON_SERVICE_RUNTIME_STATE_SCHEMA, d as clearDaemonServiceRuntimeState, f as daemonDispatchJournalPath, g as daemonRuntimeRootPath, h as daemonRuntimeDataPath, i as DAEMON_SERVICE_RUNTIME_AUTO_START_ENV, j as getDaemonStatus, k as ensureDaemonControlPlaneToken, l as DAEMON_SERVICE_RUNTIME_SYSTEM_SERVICE_ENV, m as daemonRuntimeBundlesPath, n as writeDaemonRuntimeLease, o as DAEMON_SERVICE_RUNTIME_DETACHED_ENV, p as daemonLifecycleJournalPath, q as withDaemonServiceRunLock, r as DAEMON_HEARTBEAT_STALE_MS, s as DAEMON_SERVICE_RUNTIME_MODE_ENV, t as readDaemonRuntimeLease, u as acquireDaemonServiceLifecycleLock, v as daemonRuntimeStateRootPath, w as daemonServiceStableBinaryExecutablePath, x as daemonServiceLegacyExecutableWrapperPath, y as daemonServiceActiveBundleStatePath, z as resolveDaemonControlPlaneEndpoint } from "./daemon-runtime-lease-D82uDZ5s.js";
|
|
8
|
-
import { A as HEARTBEAT_RESPONSE_TIMEOUT_MS$1, B as RUNTIME_AGENT_CONTROLLER_REPORT_SYNC_INTERVAL_MS$1, C as DAEMON_RUNTIME_CONTRACT_EPOCH$1, D as DEFAULT_GATEWAY_CHAIN_TIMEOUT_MS$1, E as DAEMON_STREAM_KEEPALIVE_PONG_TIMEOUT_MS$1, F as OPENCLAW_CLI_TIMEOUT_MS$1, H as RUNTIME_STATE_PERSIST_MIN_INTERVAL_MS$1, I as PROVIDER_CONVERSATION_PROOF_SYNC_INTERVAL_MS$1, L as PROVIDER_CONVERSATION_PROOF_SYNC_RETRY_INTERVAL_MS$1, N as MIN_HEARTBEAT_INTERVAL_MS$2, O as DEFAULT_HEARTBEAT_INTERVAL_MS$1, R as REGISTER_RESPONSE_TIMEOUT_MS$1, S as CATALOG_SYNC_SIGNAL_POLL_INTERVAL_MS$1, T as DAEMON_STREAM_KEEPALIVE_INTERVAL_MS$1, V as RUNTIME_AGENT_CONTROLLER_REPORT_SYNC_RETRY_INTERVAL_MS$1, a as beginAuthSessionTransition, h as setAuthSession, j as MAX_HEARTBEAT_INTERVAL_MS$2, l as getAuthSessionState, o as clearAuthSession, r as assertAuthSessionMutationAvailable, v as isBinaryDistribution, w as DAEMON_STREAM_CONNECT_TIMEOUT_MS$1, x as CATALOG_SYNC_RETRY_INTERVAL_MS$1, y as resolveOpenMeldDistribution } from "./auth-session-
|
|
9
|
-
import { a as AuthRequestCredentialError, c as buildOpenMeldRequestContextHeadersWithAuth, d as buildOpenMeldRequestContextFromProfile, f as buildOpenMeldRequestContextFromProfileIdentity, i as resolveSpaceRequestTimeoutMsForDiagnostics, l as buildRequestAuthHeaders, m as resolveAuthRequestCompatibility, n as createCliApiClientFoundation, o as buildOpenMeldProfileIdentityRequestHeadersWithAuth, p as deriveAuthBaseUrlFromGatewayUrl, r as fetchSpaceRequestWithTimeout, s as buildOpenMeldProfileRequestHeadersWithAuth, u as canAttachAuthTokenToRequest } from "./api-client-foundation
|
|
8
|
+
import { A as HEARTBEAT_RESPONSE_TIMEOUT_MS$1, B as RUNTIME_AGENT_CONTROLLER_REPORT_SYNC_INTERVAL_MS$1, C as DAEMON_RUNTIME_CONTRACT_EPOCH$1, D as DEFAULT_GATEWAY_CHAIN_TIMEOUT_MS$1, E as DAEMON_STREAM_KEEPALIVE_PONG_TIMEOUT_MS$1, F as OPENCLAW_CLI_TIMEOUT_MS$1, H as RUNTIME_STATE_PERSIST_MIN_INTERVAL_MS$1, I as PROVIDER_CONVERSATION_PROOF_SYNC_INTERVAL_MS$1, L as PROVIDER_CONVERSATION_PROOF_SYNC_RETRY_INTERVAL_MS$1, N as MIN_HEARTBEAT_INTERVAL_MS$2, O as DEFAULT_HEARTBEAT_INTERVAL_MS$1, R as REGISTER_RESPONSE_TIMEOUT_MS$1, S as CATALOG_SYNC_SIGNAL_POLL_INTERVAL_MS$1, T as DAEMON_STREAM_KEEPALIVE_INTERVAL_MS$1, V as RUNTIME_AGENT_CONTROLLER_REPORT_SYNC_RETRY_INTERVAL_MS$1, a as beginAuthSessionTransition, h as setAuthSession, j as MAX_HEARTBEAT_INTERVAL_MS$2, l as getAuthSessionState, o as clearAuthSession, r as assertAuthSessionMutationAvailable, v as isBinaryDistribution, w as DAEMON_STREAM_CONNECT_TIMEOUT_MS$1, x as CATALOG_SYNC_RETRY_INTERVAL_MS$1, y as resolveOpenMeldDistribution } from "./auth-session-Bj8n8YwV.js";
|
|
9
|
+
import { a as AuthRequestCredentialError, c as buildOpenMeldRequestContextHeadersWithAuth, d as buildOpenMeldRequestContextFromProfile, f as buildOpenMeldRequestContextFromProfileIdentity, i as resolveSpaceRequestTimeoutMsForDiagnostics, l as buildRequestAuthHeaders, m as resolveAuthRequestCompatibility, n as createCliApiClientFoundation, o as buildOpenMeldProfileIdentityRequestHeadersWithAuth, p as deriveAuthBaseUrlFromGatewayUrl, r as fetchSpaceRequestWithTimeout, s as buildOpenMeldProfileRequestHeadersWithAuth, u as canAttachAuthTokenToRequest } from "./api-client-foundation-CabWpjFe.js";
|
|
10
10
|
import { createRequire } from "node:module";
|
|
11
11
|
import { homedir, tmpdir, userInfo } from "node:os";
|
|
12
12
|
import * as z$1 from "zod/v4";
|
|
@@ -6256,8 +6256,6 @@ function normalizePermissionKind(value) {
|
|
|
6256
6256
|
const normalized = String(value ?? "").trim().toLowerCase().replace(UNSAFE_PERMISSION_KIND_CHARACTER_RE, "_").replace(EDGE_UNDERSCORE_RE, "");
|
|
6257
6257
|
return normalized.length > 0 ? normalized : null;
|
|
6258
6258
|
}
|
|
6259
|
-
//#endregion
|
|
6260
|
-
//#region ../../runtime/adapters/core/dist/index.js
|
|
6261
6259
|
const DEFAULT_GRACEFUL_INTERRUPT_TIMEOUT_MS = 1e4;
|
|
6262
6260
|
const DEFAULT_INTERRUPT_REASON = "service.interrupt";
|
|
6263
6261
|
const DEFAULT_CANCEL_REASON = "service.cancel";
|
|
@@ -6496,12 +6494,14 @@ const buildAdapterCancelRequest = (input) => ({
|
|
|
6496
6494
|
});
|
|
6497
6495
|
const toAdapterDispatchFailure = (error, defaultErrorType = "adapter") => {
|
|
6498
6496
|
const errorCode = extractErrorCode$2(error);
|
|
6497
|
+
const agentControllerConversationOccupancy = extractAgentControllerConversationOccupancy(error);
|
|
6499
6498
|
const errorType = extractErrorType(error) ?? defaultErrorType;
|
|
6500
6499
|
const diagnostics = extractDispatchDiagnostics(error);
|
|
6501
6500
|
const providerAccessEvidence = extractProviderAccessEvidence(error);
|
|
6502
6501
|
const originalError = extractProviderOriginalError(error);
|
|
6503
6502
|
const telemetry = extractDispatchTelemetry(error);
|
|
6504
6503
|
return {
|
|
6504
|
+
...agentControllerConversationOccupancy ? { agentControllerConversationOccupancy } : {},
|
|
6505
6505
|
...diagnostics ? { diagnostics } : {},
|
|
6506
6506
|
...errorCode ? { errorCode } : {},
|
|
6507
6507
|
errorMessage: error instanceof Error ? error.message : "adapter dispatch failed",
|
|
@@ -6512,6 +6512,19 @@ const toAdapterDispatchFailure = (error, defaultErrorType = "adapter") => {
|
|
|
6512
6512
|
...telemetry ? { telemetry } : {}
|
|
6513
6513
|
};
|
|
6514
6514
|
};
|
|
6515
|
+
const extractAgentControllerConversationOccupancy = (error) => {
|
|
6516
|
+
if (!(error && typeof error === "object")) return null;
|
|
6517
|
+
const value = error.agentControllerConversationOccupancy;
|
|
6518
|
+
if (!(value && typeof value === "object")) return null;
|
|
6519
|
+
const occupancy = value;
|
|
6520
|
+
const agentControllerConversationId = typeof occupancy.agentControllerConversationId === "string" ? occupancy.agentControllerConversationId.trim() : "";
|
|
6521
|
+
if (!agentControllerConversationId || occupancy.contractVersion !== 1 || occupancy.state !== "occupied") return null;
|
|
6522
|
+
return {
|
|
6523
|
+
agentControllerConversationId,
|
|
6524
|
+
contractVersion: 1,
|
|
6525
|
+
state: "occupied"
|
|
6526
|
+
};
|
|
6527
|
+
};
|
|
6515
6528
|
const extractProviderOriginalError = (error) => {
|
|
6516
6529
|
if (!(error && typeof error === "object")) return null;
|
|
6517
6530
|
return createProviderOriginalError(error.originalError);
|
|
@@ -9249,19 +9262,40 @@ const CODEX_APP_SERVER_VERSION_PATTERN = /\/([^\s]+)/u;
|
|
|
9249
9262
|
const APP_SERVER_PROCESS_KILL_GRACE_MS = 1e3;
|
|
9250
9263
|
const DEFAULT_APP_SERVER_STARTUP_TIMEOUT_MS = 15e3;
|
|
9251
9264
|
var CodexAppServerTransportError = class extends Error {
|
|
9265
|
+
agentControllerConversationOccupancy;
|
|
9252
9266
|
code;
|
|
9253
9267
|
errorType;
|
|
9254
9268
|
originalError;
|
|
9255
9269
|
providerAccessEvidence;
|
|
9270
|
+
rpcErrorCode;
|
|
9256
9271
|
constructor(input) {
|
|
9257
9272
|
super(input.message);
|
|
9258
9273
|
this.name = "CodexAppServerTransportError";
|
|
9274
|
+
this.agentControllerConversationOccupancy = input.agentControllerConversationOccupancy;
|
|
9259
9275
|
this.code = input.code;
|
|
9260
9276
|
this.errorType = input.errorType;
|
|
9261
9277
|
this.originalError = input.originalError;
|
|
9262
9278
|
this.providerAccessEvidence = input.providerAccessEvidence;
|
|
9279
|
+
this.rpcErrorCode = input.rpcErrorCode;
|
|
9263
9280
|
}
|
|
9264
9281
|
};
|
|
9282
|
+
function throwIfCodexDispatchCancelled(signal) {
|
|
9283
|
+
if (!signal?.aborted) return;
|
|
9284
|
+
throw new CodexAppServerTransportError({
|
|
9285
|
+
code: "runtime.turn.cancelled",
|
|
9286
|
+
errorType: "adapter",
|
|
9287
|
+
message: "runtime.turn.cancelled: Codex was stopped before starting a turn"
|
|
9288
|
+
});
|
|
9289
|
+
}
|
|
9290
|
+
function classifyCodexThreadWriterConflict(input) {
|
|
9291
|
+
const agentControllerConversationId = input.agentControllerConversationId.trim();
|
|
9292
|
+
if (!agentControllerConversationId || input.operation !== "thread/resume" || input.rpcErrorCode !== -32600 || input.rpcErrorMessage !== `thread ${agentControllerConversationId} already has an active writer`) return null;
|
|
9293
|
+
return {
|
|
9294
|
+
agentControllerConversationId,
|
|
9295
|
+
contractVersion: 1,
|
|
9296
|
+
state: "occupied"
|
|
9297
|
+
};
|
|
9298
|
+
}
|
|
9265
9299
|
async function probeCodexAppServerAccount(input) {
|
|
9266
9300
|
const timeoutMs = input.timeoutMs ?? DEFAULT_APP_SERVER_STARTUP_TIMEOUT_MS;
|
|
9267
9301
|
return await withCodexAppServerSession({
|
|
@@ -9281,6 +9315,7 @@ async function probeCodexAppServerAccount(input) {
|
|
|
9281
9315
|
});
|
|
9282
9316
|
}
|
|
9283
9317
|
async function invokeCodexAppServerTransport(input) {
|
|
9318
|
+
throwIfCodexDispatchCancelled(input.cancellationSignal);
|
|
9284
9319
|
const prompt = normalizeOptionalText$59(input.prompt);
|
|
9285
9320
|
if (!prompt) throw new CodexAppServerTransportError({
|
|
9286
9321
|
code: "schema.invalid",
|
|
@@ -9304,7 +9339,9 @@ async function invokeCodexAppServerTransport(input) {
|
|
|
9304
9339
|
onRuntimeEvent: input.onRuntimeEvent,
|
|
9305
9340
|
startupTimeoutMs: input.startupTimeoutMs
|
|
9306
9341
|
}, async (session) => {
|
|
9342
|
+
throwIfCodexDispatchCancelled(input.cancellationSignal);
|
|
9307
9343
|
const threadContext = await resolveDispatchThreadContext({
|
|
9344
|
+
cancellationSignal: input.cancellationSignal,
|
|
9308
9345
|
conversationPolicyParams,
|
|
9309
9346
|
codexWorkdir: input.codexWorkdir,
|
|
9310
9347
|
executionMode: input.executionMode,
|
|
@@ -9327,6 +9364,7 @@ async function invokeCodexAppServerTransport(input) {
|
|
|
9327
9364
|
threadSource: threadContext.threadSource
|
|
9328
9365
|
});
|
|
9329
9366
|
session.emitProviderConversationObserved(continuityThreadId);
|
|
9367
|
+
throwIfCodexDispatchCancelled(input.cancellationSignal);
|
|
9330
9368
|
const turn = readTurnStartResponse(await session.requestControl("turn/start", {
|
|
9331
9369
|
...permissionModeParams.turn,
|
|
9332
9370
|
...collaborationMode ? { collaborationMode } : {},
|
|
@@ -9349,6 +9387,10 @@ async function invokeCodexAppServerTransport(input) {
|
|
|
9349
9387
|
threadId: executionThreadId,
|
|
9350
9388
|
turnId
|
|
9351
9389
|
});
|
|
9390
|
+
if (input.cancellationSignal?.aborted && turn.status !== "completed") await session.request("turn/interrupt", {
|
|
9391
|
+
threadId: executionThreadId,
|
|
9392
|
+
turnId
|
|
9393
|
+
});
|
|
9352
9394
|
let completedTurn;
|
|
9353
9395
|
try {
|
|
9354
9396
|
completedTurn = turn.status === "completed" ? turn : await session.waitForTurnCompleted({
|
|
@@ -9484,16 +9526,37 @@ async function resolveDispatchThreadContext(input) {
|
|
|
9484
9526
|
session: input.session,
|
|
9485
9527
|
sourceThreadId: existingThreadId
|
|
9486
9528
|
});
|
|
9487
|
-
|
|
9488
|
-
|
|
9489
|
-
|
|
9490
|
-
|
|
9491
|
-
|
|
9492
|
-
|
|
9493
|
-
|
|
9494
|
-
|
|
9495
|
-
|
|
9496
|
-
|
|
9529
|
+
let response;
|
|
9530
|
+
try {
|
|
9531
|
+
throwIfCodexDispatchCancelled(input.cancellationSignal);
|
|
9532
|
+
response = await input.session.requestControl("thread/resume", {
|
|
9533
|
+
...input.conversationPolicyParams.model ? { model: input.conversationPolicyParams.model } : {},
|
|
9534
|
+
...input.permissionModeParams,
|
|
9535
|
+
cwd: input.codexWorkdir,
|
|
9536
|
+
excludeTurns: true,
|
|
9537
|
+
threadId: existingThreadId
|
|
9538
|
+
}, {
|
|
9539
|
+
code: "context.resume_timeout",
|
|
9540
|
+
operation: "thread/resume"
|
|
9541
|
+
});
|
|
9542
|
+
} catch (error) {
|
|
9543
|
+
const transportError = error instanceof CodexAppServerTransportError ? error : null;
|
|
9544
|
+
const occupancy = transportError ? classifyCodexThreadWriterConflict({
|
|
9545
|
+
agentControllerConversationId: existingThreadId,
|
|
9546
|
+
operation: "thread/resume",
|
|
9547
|
+
rpcErrorCode: transportError.rpcErrorCode,
|
|
9548
|
+
rpcErrorMessage: transportError.message
|
|
9549
|
+
}) : null;
|
|
9550
|
+
if (!occupancy) throw error;
|
|
9551
|
+
throw new CodexAppServerTransportError({
|
|
9552
|
+
agentControllerConversationOccupancy: occupancy,
|
|
9553
|
+
code: "agent_controller.conversation_occupied",
|
|
9554
|
+
errorType: "adapter",
|
|
9555
|
+
message: transportError?.message ?? "Codex thread writer is occupied",
|
|
9556
|
+
rpcErrorCode: transportError?.rpcErrorCode
|
|
9557
|
+
});
|
|
9558
|
+
}
|
|
9559
|
+
return readThreadContextFromResponse(response);
|
|
9497
9560
|
}
|
|
9498
9561
|
return readThreadContextFromResponse(await input.session.requestControl("thread/start", {
|
|
9499
9562
|
...input.conversationPolicyParams.model ? { model: input.conversationPolicyParams.model } : {},
|
|
@@ -10744,7 +10807,8 @@ function toJsonRpcTransportError$1(error) {
|
|
|
10744
10807
|
return new CodexAppServerTransportError({
|
|
10745
10808
|
code: "upstream_unreachable",
|
|
10746
10809
|
errorType: "adapter",
|
|
10747
|
-
message
|
|
10810
|
+
message,
|
|
10811
|
+
...typeof error.code === "number" ? { rpcErrorCode: error.code } : {}
|
|
10748
10812
|
});
|
|
10749
10813
|
}
|
|
10750
10814
|
function toCodexAppServerTransportError(error, timeoutMs) {
|
|
@@ -11481,6 +11545,7 @@ function normalizeOptionalText$56(value) {
|
|
|
11481
11545
|
//#endregion
|
|
11482
11546
|
//#region ../../runtime/adapters/codex/dist/invoke/codex-invoke.js
|
|
11483
11547
|
var CodexRuntimeError = class extends Error {
|
|
11548
|
+
agentControllerConversationOccupancy;
|
|
11484
11549
|
code;
|
|
11485
11550
|
errorType;
|
|
11486
11551
|
originalError;
|
|
@@ -11488,6 +11553,7 @@ var CodexRuntimeError = class extends Error {
|
|
|
11488
11553
|
constructor(input) {
|
|
11489
11554
|
super(input.message);
|
|
11490
11555
|
this.name = "CodexRuntimeError";
|
|
11556
|
+
this.agentControllerConversationOccupancy = input.agentControllerConversationOccupancy;
|
|
11491
11557
|
this.code = input.code;
|
|
11492
11558
|
this.errorType = input.errorType;
|
|
11493
11559
|
this.originalError = input.originalError;
|
|
@@ -11597,6 +11663,7 @@ function isCodexAppServerContextLostError(error) {
|
|
|
11597
11663
|
function toCodexRuntimeError(error) {
|
|
11598
11664
|
if (error instanceof CodexRuntimeError) return error;
|
|
11599
11665
|
if (error && typeof error === "object" && "code" in error && typeof error.code === "string" && "errorType" in error && typeof error.errorType === "string" && error instanceof Error) return new CodexRuntimeError({
|
|
11666
|
+
agentControllerConversationOccupancy: error.agentControllerConversationOccupancy,
|
|
11600
11667
|
code: error.code,
|
|
11601
11668
|
errorType: error.errorType,
|
|
11602
11669
|
message: error.message,
|
|
@@ -11646,6 +11713,89 @@ function toErrorMessage$37(error) {
|
|
|
11646
11713
|
return String(error);
|
|
11647
11714
|
}
|
|
11648
11715
|
//#endregion
|
|
11716
|
+
//#region ../../runtime/adapters/codex/dist/transport/codex-thread-writer-availability.js
|
|
11717
|
+
const CODEX_THREAD_WRITER_RECOVERY_RETRY_MS = 3e4;
|
|
11718
|
+
const CODEX_THREAD_WRITER_MISSING_LOCK_RETRY_MS = 500;
|
|
11719
|
+
const MIN_MISSING_LOCK_RETRY_MS = 100;
|
|
11720
|
+
const MAX_MISSING_LOCK_RETRY_MS = 2e3;
|
|
11721
|
+
async function waitForCodexThreadWriterAvailability(input) {
|
|
11722
|
+
if (input.signal?.aborted) return "aborted";
|
|
11723
|
+
const lockDirectory = join(input.env?.CODEX_HOME?.trim() || process.env.CODEX_HOME?.trim() || join(homedir(), ".codex"), "thread-writer-locks");
|
|
11724
|
+
const lockFileName = `${input.occupancy.agentControllerConversationId}.lock`;
|
|
11725
|
+
const lockPath = join(lockDirectory, lockFileName);
|
|
11726
|
+
const lockExists = await pathExists$6(lockPath);
|
|
11727
|
+
if (input.signal?.aborted) return "aborted";
|
|
11728
|
+
if (!lockExists) return await waitForRetryOrAbort({
|
|
11729
|
+
delayMs: normalizeMissingLockRetryMs(input.missingLockRetryMs),
|
|
11730
|
+
signal: input.signal
|
|
11731
|
+
});
|
|
11732
|
+
return await new Promise((resolve) => {
|
|
11733
|
+
let settled = false;
|
|
11734
|
+
let recoveryTimer = null;
|
|
11735
|
+
let watcher = null;
|
|
11736
|
+
const finish = (result) => {
|
|
11737
|
+
if (settled) return;
|
|
11738
|
+
settled = true;
|
|
11739
|
+
if (recoveryTimer) {
|
|
11740
|
+
clearTimeout(recoveryTimer);
|
|
11741
|
+
recoveryTimer = null;
|
|
11742
|
+
}
|
|
11743
|
+
watcher?.close();
|
|
11744
|
+
input.signal?.removeEventListener("abort", handleAbort);
|
|
11745
|
+
resolve(result);
|
|
11746
|
+
};
|
|
11747
|
+
const handleAbort = () => finish("aborted");
|
|
11748
|
+
const observeAvailability = () => {
|
|
11749
|
+
pathExists$6(lockPath).then((exists) => {
|
|
11750
|
+
if (!exists) finish("release_observed");
|
|
11751
|
+
}).catch(() => {});
|
|
11752
|
+
};
|
|
11753
|
+
input.signal?.addEventListener("abort", handleAbort, { once: true });
|
|
11754
|
+
recoveryTimer = setTimeout(() => finish("retry_due"), input.recoveryRetryMs ?? CODEX_THREAD_WRITER_RECOVERY_RETRY_MS);
|
|
11755
|
+
recoveryTimer.unref?.();
|
|
11756
|
+
try {
|
|
11757
|
+
watcher = watch(lockDirectory, (_eventType, fileName) => {
|
|
11758
|
+
if (fileName === null || String(fileName) === lockFileName) observeAvailability();
|
|
11759
|
+
});
|
|
11760
|
+
watcher.on("error", () => {});
|
|
11761
|
+
} catch {}
|
|
11762
|
+
observeAvailability();
|
|
11763
|
+
});
|
|
11764
|
+
}
|
|
11765
|
+
async function waitForRetryOrAbort(input) {
|
|
11766
|
+
if (input.signal?.aborted) return "aborted";
|
|
11767
|
+
return await new Promise((resolve) => {
|
|
11768
|
+
let settled = false;
|
|
11769
|
+
let timer = null;
|
|
11770
|
+
const finish = (result) => {
|
|
11771
|
+
if (settled) return;
|
|
11772
|
+
settled = true;
|
|
11773
|
+
if (timer) {
|
|
11774
|
+
clearTimeout(timer);
|
|
11775
|
+
timer = null;
|
|
11776
|
+
}
|
|
11777
|
+
input.signal?.removeEventListener("abort", handleAbort);
|
|
11778
|
+
resolve(result);
|
|
11779
|
+
};
|
|
11780
|
+
const handleAbort = () => finish("aborted");
|
|
11781
|
+
input.signal?.addEventListener("abort", handleAbort, { once: true });
|
|
11782
|
+
timer = setTimeout(() => finish("retry_due"), input.delayMs);
|
|
11783
|
+
timer.unref?.();
|
|
11784
|
+
});
|
|
11785
|
+
}
|
|
11786
|
+
function normalizeMissingLockRetryMs(value) {
|
|
11787
|
+
if (!(typeof value === "number" && Number.isFinite(value))) return CODEX_THREAD_WRITER_MISSING_LOCK_RETRY_MS;
|
|
11788
|
+
return Math.min(MAX_MISSING_LOCK_RETRY_MS, Math.max(MIN_MISSING_LOCK_RETRY_MS, Math.trunc(value)));
|
|
11789
|
+
}
|
|
11790
|
+
async function pathExists$6(path) {
|
|
11791
|
+
try {
|
|
11792
|
+
await access(path);
|
|
11793
|
+
return true;
|
|
11794
|
+
} catch {
|
|
11795
|
+
return false;
|
|
11796
|
+
}
|
|
11797
|
+
}
|
|
11798
|
+
//#endregion
|
|
11649
11799
|
//#region ../../runtime/adapters/codex/dist/usage/codex-usage-limits.js
|
|
11650
11800
|
const DEFAULT_LIMIT_ID = "codex";
|
|
11651
11801
|
const MAX_LIMIT_ID_LENGTH = 160;
|
|
@@ -11743,6 +11893,7 @@ const MAX_COMPUTER_FILE_ACCESS_ATTESTATIONS = 32;
|
|
|
11743
11893
|
const createCodexAdapter = (options) => {
|
|
11744
11894
|
const activeAppServerTurns = /* @__PURE__ */ new Map();
|
|
11745
11895
|
const computerFileAccessAttestations = /* @__PURE__ */ new Map();
|
|
11896
|
+
const occupiedDispatches = /* @__PURE__ */ new Map();
|
|
11746
11897
|
const registerAppServerTurn = (registration) => {
|
|
11747
11898
|
const activeTurn = {
|
|
11748
11899
|
interrupt: registration.interrupt,
|
|
@@ -11772,6 +11923,43 @@ const createCodexAdapter = (options) => {
|
|
|
11772
11923
|
sendInterrupt,
|
|
11773
11924
|
waitForMs: options.waitForMs
|
|
11774
11925
|
});
|
|
11926
|
+
const fallbackCancel = controlShell.cancel;
|
|
11927
|
+
const cancel = async (request) => {
|
|
11928
|
+
if (abortOccupiedCodexDispatch({
|
|
11929
|
+
occupiedDispatches,
|
|
11930
|
+
request
|
|
11931
|
+
}) && !activeAppServerTurns.has(request.taskId)) return {
|
|
11932
|
+
accepted: true,
|
|
11933
|
+
deliveryPath: "cancel",
|
|
11934
|
+
reasonCode: "accepted",
|
|
11935
|
+
signalDelivery: "sent",
|
|
11936
|
+
taskId: request.taskId
|
|
11937
|
+
};
|
|
11938
|
+
if (!fallbackCancel) return {
|
|
11939
|
+
accepted: false,
|
|
11940
|
+
reasonCode: "adapter.unsupported",
|
|
11941
|
+
signalDelivery: "not_sent",
|
|
11942
|
+
taskId: request.taskId
|
|
11943
|
+
};
|
|
11944
|
+
return await fallbackCancel(request);
|
|
11945
|
+
};
|
|
11946
|
+
const interrupt = async (request) => {
|
|
11947
|
+
if (abortOccupiedCodexDispatch({
|
|
11948
|
+
occupiedDispatches,
|
|
11949
|
+
request
|
|
11950
|
+
}) && !activeAppServerTurns.has(request.taskId)) return {
|
|
11951
|
+
accepted: true,
|
|
11952
|
+
plan: buildInterruptPlan(request),
|
|
11953
|
+
reasonCode: "accepted",
|
|
11954
|
+
signalDelivery: "sent",
|
|
11955
|
+
taskId: request.taskId
|
|
11956
|
+
};
|
|
11957
|
+
return await interruptCodexActiveAppServerTurn({
|
|
11958
|
+
activeAppServerTurns,
|
|
11959
|
+
request,
|
|
11960
|
+
fallbackInterrupt: controlShell.interrupt
|
|
11961
|
+
});
|
|
11962
|
+
};
|
|
11775
11963
|
const sharedDispatch = createSharedDispatchShell({
|
|
11776
11964
|
adapterId: "codex",
|
|
11777
11965
|
bridgeSpec: CODEX_CONVERSATION_BRIDGE_SPEC,
|
|
@@ -11784,20 +11972,17 @@ const createCodexAdapter = (options) => {
|
|
|
11784
11972
|
resolveDefaultInvoke: () => resolveDefaultCodexInvoke(options),
|
|
11785
11973
|
runtimeOptions: options
|
|
11786
11974
|
});
|
|
11787
|
-
const dispatch =
|
|
11788
|
-
|
|
11789
|
-
|
|
11790
|
-
|
|
11791
|
-
|
|
11975
|
+
const dispatch = (request) => dispatchCodexWithConversationOccupancy({
|
|
11976
|
+
occupiedDispatches,
|
|
11977
|
+
request,
|
|
11978
|
+
sharedDispatch,
|
|
11979
|
+
waitForThreadWriterAvailability: options.waitForThreadWriterAvailability ?? waitForCodexThreadWriterAvailability
|
|
11980
|
+
});
|
|
11792
11981
|
return {
|
|
11793
11982
|
adapterId: "codex",
|
|
11794
|
-
cancel
|
|
11983
|
+
cancel,
|
|
11795
11984
|
dispatch,
|
|
11796
|
-
interrupt
|
|
11797
|
-
activeAppServerTurns,
|
|
11798
|
-
request,
|
|
11799
|
-
fallbackInterrupt: controlShell.interrupt
|
|
11800
|
-
}),
|
|
11985
|
+
interrupt,
|
|
11801
11986
|
verifyComputerFileAccessBoundary: async (request) => {
|
|
11802
11987
|
if (request.agentControllerPermissionMode === "codex:customConfig" || request.transportMode !== "codex-app-server" && request.transportMode !== "local-cli") return {
|
|
11803
11988
|
reasonCode: "computer.file_access.controller_unsupported",
|
|
@@ -11862,6 +12047,32 @@ const createCodexAdapter = (options) => {
|
|
|
11862
12047
|
}
|
|
11863
12048
|
};
|
|
11864
12049
|
};
|
|
12050
|
+
function readCodexConversationOccupancy(result, request) {
|
|
12051
|
+
if (result.status !== "failed" || request.transportMode !== "codex-app-server" || !result.agentControllerConversationOccupancy) return null;
|
|
12052
|
+
return result.agentControllerConversationOccupancy;
|
|
12053
|
+
}
|
|
12054
|
+
function abortOccupiedCodexDispatch(input) {
|
|
12055
|
+
const occupiedDispatch = input.occupiedDispatches.get(input.request.taskId);
|
|
12056
|
+
if (!occupiedDispatch) return false;
|
|
12057
|
+
occupiedDispatch.abortController.abort();
|
|
12058
|
+
return true;
|
|
12059
|
+
}
|
|
12060
|
+
function buildCodexWriterWaitCancelledResult() {
|
|
12061
|
+
return {
|
|
12062
|
+
errorCode: "runtime.turn.cancelled",
|
|
12063
|
+
errorMessage: "runtime.turn.cancelled: Codex was stopped while waiting for the Agent Controller conversation",
|
|
12064
|
+
errorType: "adapter",
|
|
12065
|
+
status: "failed"
|
|
12066
|
+
};
|
|
12067
|
+
}
|
|
12068
|
+
async function emitCodexConversationAvailable(input) {
|
|
12069
|
+
await input.request.onRuntimeEvent?.({
|
|
12070
|
+
agentControllerConversationId: input.occupancy.agentControllerConversationId,
|
|
12071
|
+
contractVersion: input.occupancy.contractVersion,
|
|
12072
|
+
phase: "agent_controller_conversation_available",
|
|
12073
|
+
tsMs: Date.now()
|
|
12074
|
+
});
|
|
12075
|
+
}
|
|
11865
12076
|
function rememberComputerFileAccessAttestation(input) {
|
|
11866
12077
|
while (input.attestations.size >= MAX_COMPUTER_FILE_ACCESS_ATTESTATIONS) {
|
|
11867
12078
|
const oldestKey = input.attestations.keys().next().value;
|
|
@@ -11870,6 +12081,93 @@ function rememberComputerFileAccessAttestation(input) {
|
|
|
11870
12081
|
}
|
|
11871
12082
|
input.attestations.set(input.cacheKey, input.value);
|
|
11872
12083
|
}
|
|
12084
|
+
async function dispatchCodexWithConversationOccupancy(input) {
|
|
12085
|
+
const state = {
|
|
12086
|
+
occupancy: null,
|
|
12087
|
+
registration: null
|
|
12088
|
+
};
|
|
12089
|
+
try {
|
|
12090
|
+
while (true) {
|
|
12091
|
+
const cancellationSignal = state.registration?.abortController.signal ?? void 0;
|
|
12092
|
+
if (cancellationSignal?.aborted) return buildCodexWriterWaitCancelledResult();
|
|
12093
|
+
const result = await input.sharedDispatch({
|
|
12094
|
+
...input.request,
|
|
12095
|
+
...cancellationSignal ? { cancellationSignal } : {}
|
|
12096
|
+
});
|
|
12097
|
+
if (state.registration?.abortController.signal.aborted) return buildCodexWriterWaitCancelledResult();
|
|
12098
|
+
const occupancy = readCodexConversationOccupancy(result, input.request);
|
|
12099
|
+
if (occupancy) {
|
|
12100
|
+
if (await waitForOccupiedCodexConversation({
|
|
12101
|
+
...input,
|
|
12102
|
+
occupancy,
|
|
12103
|
+
state
|
|
12104
|
+
}) === "cancelled") return buildCodexWriterWaitCancelledResult();
|
|
12105
|
+
continue;
|
|
12106
|
+
}
|
|
12107
|
+
if (state.occupancy) {
|
|
12108
|
+
await emitCodexConversationAvailable({
|
|
12109
|
+
occupancy: state.occupancy,
|
|
12110
|
+
request: input.request
|
|
12111
|
+
});
|
|
12112
|
+
state.occupancy = null;
|
|
12113
|
+
}
|
|
12114
|
+
return finalizeCodexDispatchResult({
|
|
12115
|
+
request: input.request,
|
|
12116
|
+
result
|
|
12117
|
+
});
|
|
12118
|
+
}
|
|
12119
|
+
} finally {
|
|
12120
|
+
removeOccupiedCodexDispatchRegistration({
|
|
12121
|
+
occupiedDispatches: input.occupiedDispatches,
|
|
12122
|
+
state,
|
|
12123
|
+
taskId: input.request.taskId
|
|
12124
|
+
});
|
|
12125
|
+
}
|
|
12126
|
+
}
|
|
12127
|
+
async function waitForOccupiedCodexConversation(input) {
|
|
12128
|
+
const registration = ensureOccupiedCodexDispatchRegistration(input);
|
|
12129
|
+
if (!input.state.occupancy) {
|
|
12130
|
+
await input.request.onRuntimeEvent?.({
|
|
12131
|
+
agentControllerConversationId: input.occupancy.agentControllerConversationId,
|
|
12132
|
+
contractVersion: input.occupancy.contractVersion,
|
|
12133
|
+
phase: "agent_controller_conversation_occupied",
|
|
12134
|
+
tsMs: Date.now()
|
|
12135
|
+
});
|
|
12136
|
+
input.state.occupancy = input.occupancy;
|
|
12137
|
+
}
|
|
12138
|
+
const waitResult = await input.waitForThreadWriterAvailability({
|
|
12139
|
+
env: input.request.env,
|
|
12140
|
+
occupancy: input.occupancy,
|
|
12141
|
+
signal: registration.abortController.signal
|
|
12142
|
+
});
|
|
12143
|
+
if (waitResult === "aborted" || registration.abortController.signal.aborted) return "cancelled";
|
|
12144
|
+
if (waitResult === "release_observed") {
|
|
12145
|
+
await emitCodexConversationAvailable({
|
|
12146
|
+
occupancy: input.occupancy,
|
|
12147
|
+
request: input.request
|
|
12148
|
+
});
|
|
12149
|
+
input.state.occupancy = null;
|
|
12150
|
+
}
|
|
12151
|
+
return registration.abortController.signal.aborted ? "cancelled" : "retry";
|
|
12152
|
+
}
|
|
12153
|
+
function ensureOccupiedCodexDispatchRegistration(input) {
|
|
12154
|
+
if (input.state.registration) return input.state.registration;
|
|
12155
|
+
const registration = {
|
|
12156
|
+
abortController: new AbortController(),
|
|
12157
|
+
taskId: input.request.taskId
|
|
12158
|
+
};
|
|
12159
|
+
input.state.registration = registration;
|
|
12160
|
+
input.occupiedDispatches.set(input.request.taskId, registration);
|
|
12161
|
+
return registration;
|
|
12162
|
+
}
|
|
12163
|
+
function finalizeCodexDispatchResult(input) {
|
|
12164
|
+
if (input.result.status === "failed" && input.request.computerFileAccessBoundary !== void 0) return redactCodexFileAccessBoundaryDispatchFailure(input.result);
|
|
12165
|
+
return input.result;
|
|
12166
|
+
}
|
|
12167
|
+
function removeOccupiedCodexDispatchRegistration(input) {
|
|
12168
|
+
const registration = input.state.registration;
|
|
12169
|
+
if (registration && input.occupiedDispatches.get(input.taskId) === registration) input.occupiedDispatches.delete(input.taskId);
|
|
12170
|
+
}
|
|
11873
12171
|
const resolveDefaultCodexInvoke = (options) => {
|
|
11874
12172
|
const codexTimeoutMs = options.codexTimeoutMs ?? resolveCodexTimeoutMs();
|
|
11875
12173
|
return async (input) => {
|
|
@@ -11939,6 +12237,7 @@ const resolveDefaultCodexAppServerInvoke = (input) => {
|
|
|
11939
12237
|
} : void 0;
|
|
11940
12238
|
const result = await invokeCodexAppServer({
|
|
11941
12239
|
agentControllerPermissionMode: dispatchInput.agentControllerPermissionMode,
|
|
12240
|
+
cancellationSignal: dispatchInput.cancellationSignal,
|
|
11942
12241
|
computerFileAccessBoundary: dispatchInput.computerFileAccessBoundary,
|
|
11943
12242
|
launchContract,
|
|
11944
12243
|
codexTimeoutMs,
|
|
@@ -18167,7 +18466,7 @@ function resolveOpenMeldAccountContext(input) {
|
|
|
18167
18466
|
};
|
|
18168
18467
|
}
|
|
18169
18468
|
async function resolveCurrentOpenMeldAccountContext() {
|
|
18170
|
-
const { getAuthSessionMetadata } = await import("./auth-session-
|
|
18469
|
+
const { getAuthSessionMetadata } = await import("./auth-session-Bj8n8YwV.js").then((n) => n.i);
|
|
18171
18470
|
return resolveOpenMeldAccountContext({ session: await getAuthSessionMetadata().catch(() => null) });
|
|
18172
18471
|
}
|
|
18173
18472
|
function resolveHostKey(baseUrl) {
|
|
@@ -19708,8 +20007,8 @@ function splitSentences(message) {
|
|
|
19708
20007
|
var package_default = {
|
|
19709
20008
|
$schema: "https://www.schemastore.org/package.json",
|
|
19710
20009
|
name: "openmeld",
|
|
19711
|
-
version: "0.3.
|
|
19712
|
-
openMeldReleaseDate: "2026-08-
|
|
20010
|
+
version: "0.3.136",
|
|
20011
|
+
openMeldReleaseDate: "2026-08-31",
|
|
19713
20012
|
description: "OpenMeld CLI - https://openmeld.ai",
|
|
19714
20013
|
license: "MIT",
|
|
19715
20014
|
type: "module",
|
|
@@ -22418,6 +22717,16 @@ function resolveDaemonServiceIdentity(input = {}) {
|
|
|
22418
22717
|
}
|
|
22419
22718
|
//#endregion
|
|
22420
22719
|
//#region src/local-service/lifecycle/daemon-service-manager.ts
|
|
22720
|
+
/**
|
|
22721
|
+
* Disables autostart only when the OS definition is already committed.
|
|
22722
|
+
* Setup can run a candidate Service from its stable carrier before that
|
|
22723
|
+
* definition exists; the process can still be stopped without toggling it.
|
|
22724
|
+
*/
|
|
22725
|
+
async function disableDaemonServiceAutostartIfConfigured(input) {
|
|
22726
|
+
if (!(input.status?.installed === true && input.status.enabled === true)) return false;
|
|
22727
|
+
await input.manager.disableAutostart();
|
|
22728
|
+
return true;
|
|
22729
|
+
}
|
|
22421
22730
|
const SHELL_QUOTING_PATTERN = /[\s"\\]/g;
|
|
22422
22731
|
const SHELL_BACKSLASH_PATTERN = /\\/g;
|
|
22423
22732
|
const SHELL_DOUBLE_QUOTE_PATTERN = /"/g;
|
|
@@ -28745,6 +29054,19 @@ function resolveControllerOptions(agentControllerRef) {
|
|
|
28745
29054
|
function isAgentControllerPermissionModeControllerId(value) {
|
|
28746
29055
|
return Object.hasOwn(AGENT_CONTROLLER_PERMISSION_MODE_OPTIONS_BY_CONTROLLER_ID, value);
|
|
28747
29056
|
}
|
|
29057
|
+
const AGENT_CONTROLLER_USAGE_LIMIT_SUPPORT_MATRIX = {
|
|
29058
|
+
"claude-code": "passive",
|
|
29059
|
+
codex: "native",
|
|
29060
|
+
cursor: "unsupported",
|
|
29061
|
+
"grok-build": "native",
|
|
29062
|
+
opencode: "unsupported",
|
|
29063
|
+
openclaw: "not_evaluated"
|
|
29064
|
+
};
|
|
29065
|
+
function resolveAgentControllerUsageLimitSupport(agentControllerRef) {
|
|
29066
|
+
const parsedRef = parseAgentControllerRef(agentControllerRef);
|
|
29067
|
+
if (parsedRef?.kind !== "builtin") return "not_evaluated";
|
|
29068
|
+
return AGENT_CONTROLLER_USAGE_LIMIT_SUPPORT_MATRIX[parsedRef.id] ?? "not_evaluated";
|
|
29069
|
+
}
|
|
28748
29070
|
const DUPLICATE_REPLY_CONVERSATION_REASON = "This agent shares a reply conversation with another Agent Profile.";
|
|
28749
29071
|
function resolveAgentExecutionStatus(input) {
|
|
28750
29072
|
const executionFamily = input.executionFamily ?? "workstation";
|
|
@@ -29077,6 +29399,7 @@ function resolveServicePrimaryAction(input) {
|
|
|
29077
29399
|
function resolveRuntimeRoutePrimaryAction(input) {
|
|
29078
29400
|
if (!(input.localService.reachable || input.route.online)) return "run_prepare";
|
|
29079
29401
|
if (input.providerAccount.blocked) return "fix_provider_account";
|
|
29402
|
+
if (input.runtime.reasonCodes.includes("usage_exhausted")) return "check_status";
|
|
29080
29403
|
if (!input.runtime.ready) return resolveRuntimeNotReadyPrimaryAction({
|
|
29081
29404
|
localService: input.localService,
|
|
29082
29405
|
runtime: input.runtime
|
|
@@ -29117,7 +29440,7 @@ function resolveRuntimeNotReadyPrimaryAction(input) {
|
|
|
29117
29440
|
return "run_prepare";
|
|
29118
29441
|
}
|
|
29119
29442
|
function hasRuntimeAgentControllerReportRefreshReason(reasonCodes) {
|
|
29120
|
-
return reasonCodes.some((reasonCode) => reasonCode === "controller.interface.check_failed" || reasonCode === "runtime.agent_controller_report_stale" || reasonCode === "runtime.agent_controller_report_missing" || reasonCode === "runtime.projection_missing" || reasonCode === "claim_eligibility.agent_controller_report_missing" || reasonCode === "claim_eligibility.agent_controller_report_stale");
|
|
29443
|
+
return reasonCodes.some((reasonCode) => reasonCode === "controller.interface.check_failed" || reasonCode === "usage_checking" || reasonCode === "runtime.agent_controller_report_stale" || reasonCode === "runtime.agent_controller_report_missing" || reasonCode === "runtime.projection_missing" || reasonCode === "claim_eligibility.agent_controller_report_missing" || reasonCode === "claim_eligibility.agent_controller_report_stale");
|
|
29121
29444
|
}
|
|
29122
29445
|
function isAgentExecutionReadyOrConnecting(readiness) {
|
|
29123
29446
|
return readiness.displayState === "ready";
|
|
@@ -34220,12 +34543,16 @@ const BUILTIN_AGENT_CONTROLLER_DEFINITIONS = [
|
|
|
34220
34543
|
permissionModes: true,
|
|
34221
34544
|
structuredUserInput: false
|
|
34222
34545
|
},
|
|
34546
|
+
conversationOccupancy: {
|
|
34547
|
+
contractVersion: 1,
|
|
34548
|
+
mode: "unsupported"
|
|
34549
|
+
},
|
|
34223
34550
|
installResolver: {
|
|
34224
34551
|
resolveInstalledLaunchCandidates: resolveInstalledClaudeCodeLaunchCandidates,
|
|
34225
34552
|
verifyLaunchContract: verifyClaudeCodeLaunchContract
|
|
34226
34553
|
},
|
|
34227
34554
|
nativeInterface: "claude-agent-sdk",
|
|
34228
|
-
usageLimitSupport: "
|
|
34555
|
+
usageLimitSupport: resolveAgentControllerUsageLimitSupport("builtin:claude-code"),
|
|
34229
34556
|
versionMaintenance: {
|
|
34230
34557
|
homebrewPackage: {
|
|
34231
34558
|
kind: "cask",
|
|
@@ -34251,12 +34578,16 @@ const BUILTIN_AGENT_CONTROLLER_DEFINITIONS = [
|
|
|
34251
34578
|
permissionModes: true,
|
|
34252
34579
|
structuredUserInput: false
|
|
34253
34580
|
},
|
|
34581
|
+
conversationOccupancy: {
|
|
34582
|
+
contractVersion: 1,
|
|
34583
|
+
mode: "official_atomic_admission_and_release_signal"
|
|
34584
|
+
},
|
|
34254
34585
|
installResolver: {
|
|
34255
34586
|
resolveInstalledLaunchCandidates: resolveInstalledCodexLaunchCandidates,
|
|
34256
34587
|
verifyLaunchContract: verifyCodexLaunchContract
|
|
34257
34588
|
},
|
|
34258
34589
|
nativeInterface: "codex-app-server",
|
|
34259
|
-
usageLimitSupport: "
|
|
34590
|
+
usageLimitSupport: resolveAgentControllerUsageLimitSupport("builtin:codex"),
|
|
34260
34591
|
versionMaintenance: {
|
|
34261
34592
|
homebrewPackage: {
|
|
34262
34593
|
kind: "cask",
|
|
@@ -34270,12 +34601,16 @@ const BUILTIN_AGENT_CONTROLLER_DEFINITIONS = [
|
|
|
34270
34601
|
adapterId: "openclaw",
|
|
34271
34602
|
agentId: "openclaw",
|
|
34272
34603
|
capabilities: EMPTY_AGENT_CONTROLLER_INTERFACE_CAPABILITIES,
|
|
34604
|
+
conversationOccupancy: {
|
|
34605
|
+
contractVersion: 1,
|
|
34606
|
+
mode: "unsupported"
|
|
34607
|
+
},
|
|
34273
34608
|
installResolver: {
|
|
34274
34609
|
resolveInstalledLaunchCandidates: resolveInstalledOpenClawLaunchCandidates,
|
|
34275
34610
|
verifyLaunchContract: verifyOpenClawLaunchContract
|
|
34276
34611
|
},
|
|
34277
34612
|
nativeInterface: "local-cli",
|
|
34278
|
-
usageLimitSupport: "
|
|
34613
|
+
usageLimitSupport: resolveAgentControllerUsageLimitSupport("builtin:openclaw")
|
|
34279
34614
|
},
|
|
34280
34615
|
{
|
|
34281
34616
|
adapterId: "cursor",
|
|
@@ -34289,13 +34624,17 @@ const BUILTIN_AGENT_CONTROLLER_DEFINITIONS = [
|
|
|
34289
34624
|
permissionModes: true,
|
|
34290
34625
|
structuredUserInput: false
|
|
34291
34626
|
},
|
|
34627
|
+
conversationOccupancy: {
|
|
34628
|
+
contractVersion: 1,
|
|
34629
|
+
mode: "unsupported"
|
|
34630
|
+
},
|
|
34292
34631
|
installResolver: {
|
|
34293
34632
|
refreshPersistedLaunchContract: refreshCursorPersistedLaunchContract,
|
|
34294
34633
|
resolveInstalledLaunchCandidates: resolveInstalledCursorLaunchCandidates,
|
|
34295
34634
|
verifyLaunchContract: verifyCursorLaunchContract
|
|
34296
34635
|
},
|
|
34297
34636
|
nativeInterface: "acp",
|
|
34298
|
-
usageLimitSupport: "
|
|
34637
|
+
usageLimitSupport: resolveAgentControllerUsageLimitSupport("builtin:cursor"),
|
|
34299
34638
|
versionMaintenance: {
|
|
34300
34639
|
homebrewPackage: {
|
|
34301
34640
|
kind: "cask",
|
|
@@ -34320,12 +34659,16 @@ const BUILTIN_AGENT_CONTROLLER_DEFINITIONS = [
|
|
|
34320
34659
|
permissionModes: true,
|
|
34321
34660
|
structuredUserInput: true
|
|
34322
34661
|
},
|
|
34662
|
+
conversationOccupancy: {
|
|
34663
|
+
contractVersion: 1,
|
|
34664
|
+
mode: "unsupported"
|
|
34665
|
+
},
|
|
34323
34666
|
installResolver: {
|
|
34324
34667
|
resolveInstalledLaunchCandidates: resolveInstalledGrokBuildLaunchCandidates,
|
|
34325
34668
|
verifyLaunchContract: verifyGrokBuildLaunchContract
|
|
34326
34669
|
},
|
|
34327
34670
|
nativeInterface: "acp",
|
|
34328
|
-
usageLimitSupport: "
|
|
34671
|
+
usageLimitSupport: resolveAgentControllerUsageLimitSupport("builtin:grok-build"),
|
|
34329
34672
|
versionMaintenance: { officialChannels: [{
|
|
34330
34673
|
latest: {
|
|
34331
34674
|
kind: "http-text",
|
|
@@ -34347,12 +34690,16 @@ const BUILTIN_AGENT_CONTROLLER_DEFINITIONS = [
|
|
|
34347
34690
|
permissionModes: false,
|
|
34348
34691
|
structuredUserInput: false
|
|
34349
34692
|
},
|
|
34693
|
+
conversationOccupancy: {
|
|
34694
|
+
contractVersion: 1,
|
|
34695
|
+
mode: "unsupported"
|
|
34696
|
+
},
|
|
34350
34697
|
installResolver: {
|
|
34351
34698
|
resolveInstalledLaunchCandidates: resolveInstalledOpenCodeLaunchCandidates,
|
|
34352
34699
|
verifyLaunchContract: verifyOpenCodeLaunchContract
|
|
34353
34700
|
},
|
|
34354
34701
|
nativeInterface: "local-cli",
|
|
34355
|
-
usageLimitSupport: "
|
|
34702
|
+
usageLimitSupport: resolveAgentControllerUsageLimitSupport("builtin:opencode"),
|
|
34356
34703
|
versionMaintenance: {
|
|
34357
34704
|
homebrewPackage: {
|
|
34358
34705
|
kind: "formula",
|
|
@@ -38974,9 +39321,9 @@ function createModelCatalogReadSession(input) {
|
|
|
38974
39321
|
async function readModelCatalogOnce(baseUrl) {
|
|
38975
39322
|
try {
|
|
38976
39323
|
const [apiClient, baseUrlModule, clientFoundationModule] = await Promise.all([
|
|
38977
|
-
import("./dist-
|
|
39324
|
+
import("./dist-0qM_CVk2.js").then((n) => n.w),
|
|
38978
39325
|
import("./base-url-BtqW4aLS.js").then((n) => n.n),
|
|
38979
|
-
import("./api-client-foundation
|
|
39326
|
+
import("./api-client-foundation-CabWpjFe.js").then((n) => n.t)
|
|
38980
39327
|
]);
|
|
38981
39328
|
if (typeof apiClient.createConfigApi !== "function") throw new Error("config api client is unavailable");
|
|
38982
39329
|
const resolvedBaseUrl = baseUrl ?? await baseUrlModule.resolveBaseUrl();
|
|
@@ -45035,8 +45382,10 @@ async function stopLifecycleRuntime(input) {
|
|
|
45035
45382
|
if (!(await forceKillStalledDaemonAfterStopTimeout({ stage: "stop_or_drain" })).killed) throw new DaemonServiceLifecycleDrainTimeoutError(input.drainWaitMs);
|
|
45036
45383
|
}
|
|
45037
45384
|
async function stopLifecycleSystemServiceRuntime(input) {
|
|
45038
|
-
const restoreAutostartOnDrainFailure =
|
|
45039
|
-
|
|
45385
|
+
const restoreAutostartOnDrainFailure = await disableDaemonServiceAutostartIfConfigured({
|
|
45386
|
+
manager: input.serviceManager,
|
|
45387
|
+
status: input.inventory.serviceManagerStatus
|
|
45388
|
+
});
|
|
45040
45389
|
let drained = false;
|
|
45041
45390
|
try {
|
|
45042
45391
|
drained = hasActiveLifecycleRuntimeEvidence(input.inventory) && !input.forceKillAfterDrainTimeout && await requestControlledSystemServiceDrain({
|
|
@@ -55291,6 +55640,7 @@ function projectAgentControllerInterfaceForCloud(snapshot) {
|
|
|
55291
55640
|
skills: [],
|
|
55292
55641
|
status: snapshot.status,
|
|
55293
55642
|
...snapshot.usageLimits ? { usageLimits: snapshot.usageLimits.map((limit) => ({ ...limit })) } : {},
|
|
55643
|
+
usageLimitsSupportMatrixVersion: 1,
|
|
55294
55644
|
version: snapshot.version,
|
|
55295
55645
|
...snapshot.versionAdvisory ? { versionAdvisory: {
|
|
55296
55646
|
checkedAt: snapshot.versionAdvisory.checkedAt,
|
|
@@ -55695,7 +56045,7 @@ async function submitAgentControllerReportsWithCompatibilityRetry(input) {
|
|
|
55695
56045
|
let compatibilityError = error;
|
|
55696
56046
|
if (shouldRetryWithoutUsageLimits({
|
|
55697
56047
|
error,
|
|
55698
|
-
|
|
56048
|
+
submittedReports: input.initialInput.reports
|
|
55699
56049
|
})) {
|
|
55700
56050
|
warnDaemonEvent("[openmeld.runtime_reporting.usage_limits_downgraded]", {
|
|
55701
56051
|
error: toErrorMessage$16(error),
|
|
@@ -55729,8 +56079,8 @@ function omitUsageLimitsFromReports(input) {
|
|
|
55729
56079
|
return {
|
|
55730
56080
|
...input,
|
|
55731
56081
|
reports: input.reports.map((report) => {
|
|
55732
|
-
if (!report.agentControllerInterface?.usageLimits) return report;
|
|
55733
|
-
const { usageLimits: _usageLimits, ...agentControllerInterface } = report.agentControllerInterface;
|
|
56082
|
+
if (!(report.agentControllerInterface?.usageLimits || report.agentControllerInterface?.usageLimitsSupportMatrixVersion)) return report;
|
|
56083
|
+
const { usageLimits: _usageLimits, usageLimitsSupportMatrixVersion: _usageLimitsSupportMatrixVersion, ...agentControllerInterface } = report.agentControllerInterface;
|
|
55734
56084
|
return {
|
|
55735
56085
|
...report,
|
|
55736
56086
|
agentControllerInterface
|
|
@@ -55739,7 +56089,7 @@ function omitUsageLimitsFromReports(input) {
|
|
|
55739
56089
|
};
|
|
55740
56090
|
}
|
|
55741
56091
|
function shouldRetryWithoutUsageLimits(input) {
|
|
55742
|
-
if (!input.
|
|
56092
|
+
if (!input.submittedReports.some((report) => report.agentControllerInterface?.usageLimits || report.agentControllerInterface?.usageLimitsSupportMatrixVersion)) return false;
|
|
55743
56093
|
const failure = toStructuredApiClientFailure(input.error);
|
|
55744
56094
|
if (failure.status !== 400) return false;
|
|
55745
56095
|
return collectCompatibilityDiagnosticText(failure).includes("usagelimits");
|
|
@@ -59193,6 +59543,7 @@ function sendDispatchLifecycleFrame(input) {
|
|
|
59193
59543
|
leaseEpoch: input.leaseEpoch,
|
|
59194
59544
|
phase: input.phase,
|
|
59195
59545
|
lifecycleAtMs: Date.now(),
|
|
59546
|
+
...input.agentControllerConversationOccupancy === void 0 || input.agentControllerConversationOccupancy === null ? {} : { agentControllerConversationOccupancy: input.agentControllerConversationOccupancy },
|
|
59196
59547
|
...input.localQueue === void 0 || input.localQueue === null ? {} : { localQueue: input.localQueue }
|
|
59197
59548
|
});
|
|
59198
59549
|
if (!lifecycleRequest.success) throw new DaemonServiceRunError({
|
|
@@ -70084,6 +70435,7 @@ const resolveStructuredActionRequirementFailure = resolveStructuredActionRequire
|
|
|
70084
70435
|
const CLI_SPACE_ACTION_RECORD_POLL_INTERVAL_MS = 25;
|
|
70085
70436
|
const CLI_SPACE_ACTION_RECORD_RUNTIME_COMPLETION_GRACE_MS = 1500;
|
|
70086
70437
|
const CLI_SPACE_ACTION_PROVIDER_CONVERSATION_GRACE_MS = 1500;
|
|
70438
|
+
const AGENT_CONTROLLER_OCCUPANCY_KEEPALIVE_REASSERT_INTERVALS = 4;
|
|
70087
70439
|
function enqueueDispatchDeliverFrame(input) {
|
|
70088
70440
|
const currentSocketRef = input.currentSocketRef ?? {
|
|
70089
70441
|
connectionGeneration: normalizePositiveInteger(input.payload.connectionGeneration),
|
|
@@ -70953,6 +71305,43 @@ async function handleDispatchDeliverFrame(input) {
|
|
|
70953
71305
|
};
|
|
70954
71306
|
let agentToolActivitySequence = 0;
|
|
70955
71307
|
let usageObservationAuthPromise = null;
|
|
71308
|
+
const syncAgentControllerConversationOccupancyLifecycle = (event) => {
|
|
71309
|
+
if (event.phase !== "agent_controller_conversation_available" && event.phase !== "agent_controller_conversation_occupied") return;
|
|
71310
|
+
const occupancy = {
|
|
71311
|
+
agentControllerConversationId: event.agentControllerConversationId,
|
|
71312
|
+
contractVersion: event.contractVersion,
|
|
71313
|
+
state: event.phase === "agent_controller_conversation_occupied" ? "occupied" : "available"
|
|
71314
|
+
};
|
|
71315
|
+
stopRunningKeepalive?.();
|
|
71316
|
+
emitDispatchLifecycleTransition({
|
|
71317
|
+
agentControllerConversationOccupancy: occupancy,
|
|
71318
|
+
attemptId: parsedTask.attemptId,
|
|
71319
|
+
connectionGeneration: input.deliverRequest.connectionGeneration,
|
|
71320
|
+
currentSocketRef,
|
|
71321
|
+
daemonSessionId: input.daemonSessionId,
|
|
71322
|
+
dispatchId: parsedTask.dispatchId,
|
|
71323
|
+
leaseEpoch: input.deliverRequest.leaseEpoch,
|
|
71324
|
+
phase: "running",
|
|
71325
|
+
presenter: input.presenter,
|
|
71326
|
+
executionTokenEcho: parsedTask.executionTokenEcho,
|
|
71327
|
+
runtimeCoordinatorExecutionId: parsedTask.runtimeCoordinatorExecutionId,
|
|
71328
|
+
taskId: parsedTask.taskId
|
|
71329
|
+
});
|
|
71330
|
+
stopRunningKeepalive = startDispatchLifecycleKeepalive({
|
|
71331
|
+
agentControllerConversationOccupancy: occupancy,
|
|
71332
|
+
attemptId: parsedTask.attemptId,
|
|
71333
|
+
connectionGeneration: input.deliverRequest.connectionGeneration,
|
|
71334
|
+
currentSocketRef,
|
|
71335
|
+
daemonSessionId: input.daemonSessionId,
|
|
71336
|
+
dispatchId: parsedTask.dispatchId,
|
|
71337
|
+
leaseEpoch: input.deliverRequest.leaseEpoch,
|
|
71338
|
+
phase: "running",
|
|
71339
|
+
presenter: input.presenter,
|
|
71340
|
+
executionTokenEcho: parsedTask.executionTokenEcho,
|
|
71341
|
+
runtimeCoordinatorExecutionId: parsedTask.runtimeCoordinatorExecutionId,
|
|
71342
|
+
taskId: parsedTask.taskId
|
|
71343
|
+
});
|
|
71344
|
+
};
|
|
70956
71345
|
const runtimeExecutionPromise = Promise.resolve(runDispatchRuntimeExecution({
|
|
70957
71346
|
computerFileAccessBoundary,
|
|
70958
71347
|
contextId: contextIdForDispatch,
|
|
@@ -70974,6 +71363,7 @@ async function handleDispatchDeliverFrame(input) {
|
|
|
70974
71363
|
});
|
|
70975
71364
|
},
|
|
70976
71365
|
onRuntimeEvent: (event) => {
|
|
71366
|
+
syncAgentControllerConversationOccupancyLifecycle(event);
|
|
70977
71367
|
if (event.phase === "tool_activity") {
|
|
70978
71368
|
agentToolActivitySequence += 1;
|
|
70979
71369
|
emitDispatchAgentToolActivityFrame({
|
|
@@ -73470,6 +73860,7 @@ function toRuntimeTransportDispatchLocalQueueDiagnostics(input) {
|
|
|
73470
73860
|
function emitDispatchLifecycleTransition(input) {
|
|
73471
73861
|
try {
|
|
73472
73862
|
sendCurrentDispatchLifecycleFrame({
|
|
73863
|
+
agentControllerConversationOccupancy: input.agentControllerConversationOccupancy ?? null,
|
|
73473
73864
|
attemptId: input.attemptId,
|
|
73474
73865
|
connectionGeneration: input.connectionGeneration,
|
|
73475
73866
|
currentSocketRef: input.currentSocketRef,
|
|
@@ -73541,9 +73932,19 @@ function emitDispatchLifecycleTransition(input) {
|
|
|
73541
73932
|
});
|
|
73542
73933
|
}
|
|
73543
73934
|
function startDispatchLifecycleKeepalive(input) {
|
|
73935
|
+
let intervalCount = 0;
|
|
73936
|
+
let lastOccupancyConnectionGeneration = null;
|
|
73544
73937
|
const intervalId = setInterval(() => {
|
|
73545
73938
|
try {
|
|
73939
|
+
const currentConnectionGeneration = resolveCurrentConnectionGeneration({
|
|
73940
|
+
currentSocketRef: input.currentSocketRef,
|
|
73941
|
+
fallbackConnectionGeneration: input.connectionGeneration
|
|
73942
|
+
});
|
|
73943
|
+
const shouldReassertOccupancy = Boolean(input.agentControllerConversationOccupancy && (intervalCount % AGENT_CONTROLLER_OCCUPANCY_KEEPALIVE_REASSERT_INTERVALS === 0 || lastOccupancyConnectionGeneration !== currentConnectionGeneration));
|
|
73944
|
+
intervalCount += 1;
|
|
73945
|
+
if (shouldReassertOccupancy) lastOccupancyConnectionGeneration = currentConnectionGeneration;
|
|
73546
73946
|
sendCurrentDispatchLifecycleFrame({
|
|
73947
|
+
agentControllerConversationOccupancy: shouldReassertOccupancy ? input.agentControllerConversationOccupancy ?? null : null,
|
|
73547
73948
|
attemptId: input.attemptId,
|
|
73548
73949
|
connectionGeneration: input.connectionGeneration,
|
|
73549
73950
|
currentSocketRef: input.currentSocketRef,
|
|
@@ -73575,6 +73976,7 @@ function startDispatchLifecycleKeepalive(input) {
|
|
|
73575
73976
|
}
|
|
73576
73977
|
function sendCurrentDispatchLifecycleFrame(input) {
|
|
73577
73978
|
sendDispatchLifecycleFrame({
|
|
73979
|
+
agentControllerConversationOccupancy: input.agentControllerConversationOccupancy ?? null,
|
|
73578
73980
|
attemptId: input.attemptId,
|
|
73579
73981
|
connectionGeneration: resolveCurrentConnectionGeneration({
|
|
73580
73982
|
currentSocketRef: input.currentSocketRef,
|
|
@@ -75971,10 +76373,17 @@ async function resolveDaemonServiceOwnerContext(input) {
|
|
|
75971
76373
|
persistSelection: false
|
|
75972
76374
|
}).catch(() => null);
|
|
75973
76375
|
if (fallbackProfile) return resolveDaemonServiceOwnerContextFromProfile(fallbackProfile, "resolved OpenMeld profile is missing owner user id");
|
|
75974
|
-
if (authState?.state !== "valid" || authSession === null)
|
|
75975
|
-
|
|
75976
|
-
|
|
75977
|
-
|
|
76376
|
+
if (authState?.state !== "valid" || authSession === null) {
|
|
76377
|
+
console.warn("[openmeld.daemon.owner_auth_not_ready]", {
|
|
76378
|
+
error: authState?.errorMessage,
|
|
76379
|
+
reasonCode: authState?.reasonCode ?? "session_state_unavailable",
|
|
76380
|
+
state: authState?.state ?? "unavailable"
|
|
76381
|
+
});
|
|
76382
|
+
throw new DaemonServiceRunError({
|
|
76383
|
+
code: "daemon.run.auth_required",
|
|
76384
|
+
message: "authentication required before starting OpenMeld Service"
|
|
76385
|
+
});
|
|
76386
|
+
}
|
|
75978
76387
|
throw new DaemonServiceRunError({
|
|
75979
76388
|
code: "daemon.run.owner_missing",
|
|
75980
76389
|
message: "authenticated session is missing user id and no OpenMeld profile could be resolved"
|
|
@@ -80119,8 +80528,10 @@ async function stopManagedCurrentLaneDaemonService(input) {
|
|
|
80119
80528
|
async function prepareManagedDaemonServiceForStop(input) {
|
|
80120
80529
|
const serviceManager = input.ownerSnapshot.serviceManager;
|
|
80121
80530
|
if (!serviceManager) return null;
|
|
80122
|
-
const shouldRestoreAutostart =
|
|
80123
|
-
|
|
80531
|
+
const shouldRestoreAutostart = await disableDaemonServiceAutostartIfConfigured({
|
|
80532
|
+
manager: serviceManager,
|
|
80533
|
+
status: input.ownerSnapshot.serviceManagerStatus
|
|
80534
|
+
});
|
|
80124
80535
|
if (input.force === true) return null;
|
|
80125
80536
|
try {
|
|
80126
80537
|
const shutdown = await requestLocalDaemonShutdown({
|
|
@@ -81598,17 +82009,27 @@ async function runDaemonStatusFlow(input) {
|
|
|
81598
82009
|
return "completed";
|
|
81599
82010
|
}
|
|
81600
82011
|
async function resolveDaemonRunAuthReadiness(input) {
|
|
81601
|
-
const authState = await Promise.resolve(getAuthSessionState({ validateRemote: false })).catch(() =>
|
|
82012
|
+
const authState = await Promise.resolve(getAuthSessionState({ validateRemote: false })).catch((error) => {
|
|
82013
|
+
console.warn("[openmeld.service.auth_session_read_failed]", { error: toErrorMessage$43(error) });
|
|
82014
|
+
return null;
|
|
82015
|
+
});
|
|
81602
82016
|
const session = authState?.session ?? null;
|
|
81603
|
-
if (authState?.state !== "valid" || !session)
|
|
81604
|
-
|
|
81605
|
-
|
|
81606
|
-
|
|
81607
|
-
|
|
81608
|
-
|
|
81609
|
-
|
|
81610
|
-
|
|
81611
|
-
|
|
82017
|
+
if (authState?.state !== "valid" || !session) {
|
|
82018
|
+
console.warn("[openmeld.service.auth_session_not_ready]", {
|
|
82019
|
+
error: authState?.errorMessage,
|
|
82020
|
+
reasonCode: authState?.reasonCode ?? "session_state_unavailable",
|
|
82021
|
+
state: authState?.state ?? "unavailable"
|
|
82022
|
+
});
|
|
82023
|
+
return {
|
|
82024
|
+
ready: false,
|
|
82025
|
+
reason: "authentication_required",
|
|
82026
|
+
guidance: resolveAuthenticationGuidance({
|
|
82027
|
+
reason: "required",
|
|
82028
|
+
action: "starting OpenMeld Service"
|
|
82029
|
+
}),
|
|
82030
|
+
nextSteps: [formatInlineOpenMeldCliCommands("Run `openmeld login` in an interactive terminal."), formatInlineOpenMeldCliCommands("After sign-in succeeds, run `openmeld service start` again.")]
|
|
82031
|
+
};
|
|
82032
|
+
}
|
|
81612
82033
|
const resolvedGatewayUrl = await resolveBaseUrlOrNull(input.gatewayUrl);
|
|
81613
82034
|
if (resolvedGatewayUrl && !canAttachAuthTokenToRequest(session, resolvedGatewayUrl)) {
|
|
81614
82035
|
const authBaseUrl = String(session.authBaseUrl ?? "").trim();
|
|
@@ -110437,4 +110858,4 @@ function isHumanInteractiveSpaceRuntime(runtime) {
|
|
|
110437
110858
|
//#endregion
|
|
110438
110859
|
export { runAgentsManage as $, LocalProjectConnectionError as $a, resetCurrentCommandCheckState as $i, isCliUpdateCheckApplicable as $n, cliJsonOutputEnvelopeSchema as $o, resolveServiceReadinessFromServiceStatus as $r, ensureLocalSkills as $t, parseEnvelope as A, resolveViewProfileKey as Aa, getAgentControllerPermissionModeFieldLabel as Ai, submitProfileRuntimeAgentControllerReport as An, enqueueAgentActivityHookEvent as Ao, registerSpaceMemberSelectionOptions as Ar, createDelayedSpinner as At, resolveHumanControllerDisplayName as B, updateOpenMeldProfile as Ba, buildOnboardingPlan as Bi, buildDispatchResultMessageReadProjection as Bn, setDefaultProjectConnection as Bo, buildDualViewGuideMessage as Br, toStructuredGatewayFailure as Bt, toSpaceMetaUpsertInput as C, buildHumanErrorCopy as Ca, reconcileNewRunnableBuiltinAgentsForSetup as Ci, resolveCreateProfileName as Cn, upsertDaemonServiceContract as Co, createSpaceTargetGuideError as Cr, runDaemonStop as Ct, formatHumanReadTargetList as D, formatMessage as Da, buildAgentControllerRef as Di, resolveServiceParticipationReadiness as Dn, resolveObservedAgentActivityBinding as Do, createUpgradeConfirmationGuideError as Dr, buildProfileWorkspaceRows as Dt, buildHumanReplyContextSummary as E, createPresenter as Ea, resolveLocalRegistryAgentIdFromAgentControllerRef as Ei, formatServiceParticipationReadinessLabel as En, buildAgentActivityEvent as Eo, createStartAuthenticationGuideError as Er, buildProfileWorkspacePresentation as Et, resolveOpenMeldProfileForSpaceCommand as F, createOpenMeldHumanProfile as Fa, resolveAgentProfileEditCapabilities as Fi, resolveLocalAgentControllerLaunchability as Fn, listProjectBindings as Fo, registerAuthLoginRequestOptions as Fr, createCliSpaceApi as Ft, runAgentsCustomAdd as G, buildAgentAuthenticationGuide as Ga, classifyDaemonServiceWakeability as Gi, buildUpdatesReplyWorkflowProjection as Gn, renderInfoCard as Go, buildAgentFacingPublicationModeGuideLines as Gr, runDaemonServiceParticipationGate as Gt, resolveAgentProfileSetup as H, clearSelectedOpenMeldProfileId as Ha, buildDaemonServiceTargetSpec as Hi, buildSignalIndex as Hn, canonicalizeLocalProjectPath as Ho, OPENMELD_AGENT_MENTAL_MODEL_LINES as Hr, resolveLocalComponentsStatus as Ht, emitSpaceAgentOverview as I, deleteOpenMeldProfile as Ia, resolveEvidenceSyncHealth as Ii, resolveLocalAgentControllerReportDecision as In, listProjectConnectionsWithStatus as Io, registerBuiltinAgentSelectionOptions as Ir, fetchSpaceMeta as It, runAgentsCustomUpdate as J, resolveAuthenticationGuidance as Ja, resolveOpenMeldEnvironmentTarget as Ji, promptSearchMultiselect as Jn, emitCliJsonEnvelope as Jo, runPendingDaemonServiceUpdate as Jr, runSkillsCheck as Jt, runAgentsCustomList as K, buildHumanAuthenticationCard as Ka, resolveServiceUpdateUrgency as Ki, createSpaceMemberIdentityIndex as Kn, renderTextInfoCard as Ko, canonicalizeAllowedActions as Kr, runDaemonStartDecisionPrompt as Kt, emitSpaceCliAgentOverview as L, listOpenMeldProfiles as La, resolveNativeAgentControllerPermissionModeForController as Li, inspectSpaceCacheFile as Ln, migrateProjectBindingStore as Lo, buildAgentOverviewFromContract as Lr, updateSpaceMeta as Lt, assertFullSignalIdArgument as M, requireOpenMeldProfile as Ma, parseAgentControllerRef as Mi, submitRuntimeAgentControllerReports as Mn, readAgentActivityOutboxHealth as Mo, registerSkillsTargetSelectionOptions as Mr, runDaemonStartupPreflight as Mt, assertValidSpaceIdTarget as N, resolveOpenMeldProfileOrNull as Na, resolveAgentControllerPermissionModeForController as Ni, collectLocalAgentControllerInventory as Nn, removeProjectOutbox as No, getCliVersionInfo as Nr, readDaemonStartFailureLogTailLines as Nt, resolveLinkAccessLabel as O, parseCliViewMode as Oa, createAgentExecutionStatusDisplayRows as Oi, assessActionParticipationCandidate as On, normalizeSharedSessionTitle as Oo, getCommandEntryContract as Or, reconcileCliVersionView as Ot, prepareAuthenticatedSpaceCommandContext as P, createOpenMeldAgentProfile as Pa, resolveAgentExecutionStatus as Pi, resolveLocalAgentControllerBlockerReasonCodes as Pn, bindProject as Po, registerDaemonControlTargetOptions as Pr, fetchSpaceUpdates as Pt, runAgentsList as Q, setProfileDefaultView as Qa, isCurrentCommandCheckScopeActive as Qi, assessCliUpdate as Qn, cliBinaryDeltaPatchSchema as Qo, formatDaemonFailureContextText as Qr, runSkillsUpdate as Qt, prepareLocalAgentReadiness as R, primeOpenMeldProfilesSessionCache as Ra, PREPARE_SESSION_RECONNECT_GRACE_MS as Ri, upsertSpaceConfig as Rn, removeProjectConnection as Ro, DualViewGuideError as Rr, readGatewayJsonResponse as Rt, loadSpaceSignalIndexOrNull as S, OPENMELD_VERSION as Sa, listAgentTargetStates as Si, resolveCreateProfileKind as Sn, readDaemonServiceContract as So, createSpaceSubcommandTargetGuideError as Sr, runDaemonStatusFlow as St, buildFormalSignalReadPayload as T, renderHumanTextErrorCard as Ta, notifyDaemonRouteCatalogChanged as Ti, ensureAgentProfileRuntimeBinding as Tn, removeAgentActivityContextCache as To, createStartAgentIdentityGuideError as Tr, runDaemonUninstall as Tt, runAgents as U, getSelectedOpenMeldProfileId as Ua, resolveDaemonServiceAlignmentDecision as Ui, buildSignalMessageReadProjection as Un, enqueueControllerTaskLifecycleEventWhileLocked as Uo, SPACE_CONTRACT_ALLOWED_ACTION_ORDER as Ur, writeInstalledLocalComponentsSnapshot as Ut, persistAgentTransportSelection as V, alignSelectedOpenMeldProfileStorage as Va, getSetupFlowCopy as Vi, buildDispatchResultReplyWorkflowProjection as Vn, unbindProject as Vo, formatAgentOverviewPayload as Vr, parseJsonResponse$1 as Vt, runAgentsConfig as W, setSelectedOpenMeldProfileId as Wa, classifyDaemonServiceRunStartability as Wi, buildSpaceRoundReadProjection as Wn, readControllerTaskLifecycleOutboxHealth as Wo, areAllowedActionsEquivalent as Wr, resolveDaemonServiceParticipationStatus as Wt, runAgentsDisable as X, resolveAuthenticationGuidanceFromMessage as Xa, finishCurrentCommandCheckScope as Xi, isReturnKeypress as Xn, outJsonLine as Xo, ensureDaemonRuntimePaths as Xr, runSkillsInstall as Xt, runAgentsDetect as Y, resolveAuthenticationGuidanceFromError as Ya, resolveAuthBaseUrl as Yi, promptSearchSelect as Yn, errLine as Yo, scheduleDaemonServiceUpdate as Yr, runSkillsEnsure as Yt, runAgentsEnable as Z, getProfileDefaultView as Za, getCurrentCommandCheckState as Zi, runInteractivePrompt as Zn, outLine as Zo, resolveDaemonDeviceId as Zr, runSkillsUninstall as Zt, runSpaceWriteWithPasswordRetry as _, readVersionState as _a, validateCustomProfileWorkspacePath as _i, requestDeviceToken as _n, formatOpenMeldCliTextBlock as _o, createSpaceLeaveGuideError as _r, runDaemonInstall as _t, runSpaceDelete as a, getDaemonSystemServiceLogPath as aa, mapAgentReplyReadinessToLegacyAutoReply as ai, ensureCommandAuthenticationOrCancel as an, resolveAgentActivityRouteForPath as ao, resolveElapsedTimeMs as ar, revokeOrganizationJoinLinkResponseSchema as as, printOpenMeldBanner as at, buildIdentityOnlyMembersSnapshotForReadProjection as b, toStartBackgroundHelperExecutionCompatibility as ba, createPrimaryBindingReadSession as bi, revokeAuthAccessToken as bn, resolveUserFacingCliEntryCommand as bo, createSpaceRemoveMembersGuideError as br, runDaemonRunAfterEntryChecks as bt, runSpaceLeave as c, resolveDaemonServiceManager as ca, syncProfileWorkspaceState as ci, runAuthLogout as cn, defaultManagedIntegrationPaths as co, canUseInteractivePrompts as cr, renderOpenMeldLogo as ct, runSpaceRemoveMembers as d, performManagedInstall as da, ensureOpenMeldManagedProfileWorkspace as di, exchangeOneTimeTokenAuthSession as dn, resolveAgentActivityDispatcherCommand as do, createProfileCreateGuideError as dr, resolveSpaceSendText as dt, startCurrentCommandCheckScope as ea, resolveDaemonServiceFreshnessWarning as ei, readBundledOpenMeldCliSkillDocumentByPath as en, validateLocalProjectConnectionPath as eo, assertDispatchOwnedRuntimePublicWriteAllowed as er, cliJsonSkillsListEnvelopeSchema as es, runAgentsRepair as et, runSpaceSend as f, buildNextVersionState as fa, normalizeCustomProfileWorkspacePath as fi, buildAuthStatusRows as fn, uninstallAgentActivityIntegrations as fo, createProfileMenuGuideError as fr, bestEffortStopCurrentLaneDaemonService as ft, runSpaceReadWithPasswordRetry as g, fetchLatestPackageInfo as ga, setOpenMeldManagedProfileWorkspace as gi, fetchAuthUserSnapshot as gn, formatOpenMeldCliLine as go, createSpaceContractSetGuideError as gr, runDaemonCancel as gt, uploadPreparedSpaceFiles as h, fetchLatestCliBinaryRelease as ha, setCustomProfileWorkspace as hi, extractAuthApiErrorMessage as hn, formatOpenMeldCliCommands as ho, createSpaceAliasTargetGuideError as hr, runDaemonBackgroundStartForDecision as ht, runSpaceCreate as i, readCurrentObservedDaemonRuntimeStatus as ia, formatHumanReplyReadinessReason as ii, buildCommandAuthenticationPromptMessage as in, registerAgentActivityRoute as io, formatElapsedTime as ir, organizationJoinLinkErrorResponseSchema as is, colorizeDisplayProfileLabel as it, isSpaceCommandOutputHandledError as j, isSelectedOpenMeldProfileRequiredError as ja, listAgentControllerPermissionModeOptions as ji, submitRuntimeAgentControllerReport as jn, removeProjectInbox as jo, SPACE_ADD_MEMBERS_PROGRESS_HEARTBEAT_MS as jr, shouldEmitAgentOverview as jt, resolveOrganizationVisibilityLabel as k, resolveRuntimeContext as ka, getAgentControllerPermissionModeDisplayMetadata as ki, computeRetryDelayMs as kn, readCodexSessionTitles as ko, getCommandHintsFromContract as kr, emitDaemonAgentOverview as kt, runSpaceList as l, readRecentDaemonLifecycleEvents as la, createModelCatalogReadSession as li, runAuthMenu as ln, installAgentActivityIntegrations as lo, createDoctorFailedGuideError as lr, renderOpenMeldTagline as lt, prepareRequestedSpaceSendFiles as m, ensureVersionStateReady as ma, resolveConfiguredProfileWorkspacePath as mi, formatActiveOrganizationLabel as mn, formatOpenMeldCliCommand as mo, createSpaceAddMembersGuideError as mr, runDaemonAutostart as mt, promptAndConfirmSpacePassword as n, resolveVersionChangeDirection as na, formatAgentReplyReadinessLabel as ni, readRecentDaemonDispatchJournalEvents as nn, requestLocalAgentActivitySync as no, readDispatchSpaceActionContextFromEnv as nr, cliJsonSkillsShowEnvelopeSchema as ns, formatTransportModeDisplay as nt, runSpaceHistory as o, isDaemonServiceJobNeverSpawned as oa, resolveGatewayChainReadiness as oi, evaluateCommandAuthentication as on, unregisterAgentActivityRoute as oo, formatDaemonServiceDowngradeBlockedRecommendation as or, compareAgentControllerRefsForDisplay as os, renderOpenMeldBrandBlockLines as ot, runSpaceWatch as p, compareSemver as pa, readProfileWorkspaceConfig as pi, buildAuthStatusSnapshot as pn, formatInlineOpenMeldCliCommands as po, createResetConfirmationGuideError as pr, runDaemon as pt, runAgentsCustomRemove as q, createAuthenticationError as qa, assessServerRequiredVersion as qi, formatRemovedCcRelationMessage as qn, sanitizeTerminalDisplayText as qo, readOpenMeldToolsUpdateContextFromEnv as qr, collectSkillsReadinessSnapshot as qt, runSpaceAddMembers as r, readCurrentDaemonRuntimeContext as ra, formatDeviceReplyReadinessLabel as ri, connectWebSocket as rn, isAgentActivityRouteRegistered as ro, writeDispatchSpaceActionRecord as rr, getOrganizationJoinLinkResponseSchema as rs, colorizeAgentLabel as rt, runSpaceJoin as s, readDaemonServiceJobCrashExitCode as sa, resolveOpenClawLocalDiagnosticsValue as si, runAuthLogin as sn, AGENT_ACTIVITY_INTEGRATION_OWNER as so, formatDaemonServiceMissingRecommendation as sr, renderOpenMeldHeader as st, buildCreateSpacePasswordPromptConfig as t, inspectDaemonServiceInventory as ta, resolveCurrentReplyReadinessSnapshot as ti, readRuntimeReportingHealthState as tn, LocalDaemonControlPlaneClientError as to, readDispatchOwnedRuntimeGuard as tr, cliJsonSkillsLoadEnvelopeSchema as ts, runAgentsShow as tt, runSpacePassword as u, buildInstallSelfJsonPayload as ua, resolveProfileWorkspaceRuntime as ui, runAuthStatus as un, readAgentActivityIntegrationStatus as uo, createProfileActionGuideError as ur, resolveGatewayWebOrigin as ut, buildHumanReadSignalsTranscriptItems as v, writeVersionState as va, describeProfileWorkspacePathValidationFailure as vi, resolveDeviceAuthClientId as vn, formatProfileAwareOpenMeldCliCommands as vo, createSpaceMenuGuideError as vr, runDaemonInterrupt as vt, buildFormalDispatchResultReadPayload as w, renderHumanErrorCard as wa, listBuiltinAgentsRegistryEntries as wi, promptTextEntry as wn, readAgentActivityContextForPath as wo, createSpaceUpdatesGuideError as wr, runDaemonTeardownStrict as wt, loadSpaceIdentityDirectoryOrNull as x, resolveCurrentDaemonExpectedVersion as xa, resolveAgentProfilePrimaryAgentControllerReport as xi, createProfileByKind as xn, syncLocalAgentActivity as xo, createSpaceResultGuideError as xr, runDaemonSnapshot as xt, emitHumanReadSignalsTextProjection as y, resolveDaemonRuntimeContractCompatibility as ya, syncDeviceRuntimeStateProjection as yi, resolveDeviceTokenExpiresAt as yn, resolveSetupFollowUpCliEntryCommand as yo, createSpacePublicationSetGuideError as yr, runDaemonReinstall as yt, buildReplyReadinessGuidance as z, resolveOpenMeldProfile as za, buildDaemonRouteObservationPresentation as zi, assertNoRemovedCcSpaceAddressingSyntax as zn, runIfAgentActivityBindingGenerationIsCurrent as zo, formatDualViewGuideForDisplay as zr, readGatewayTextResponse as zt };
|
|
110439
110860
|
|
|
110440
|
-
//# sourceMappingURL=command-
|
|
110861
|
+
//# sourceMappingURL=command-BGqFPMwd.js.map
|