openmeld 0.3.81 → 0.3.83

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.
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import { A as toSpaceCursorUrl, At as openMeldManagedBinaryPath, B as toSpaceUpdatesUrl, C as updateConfiguredSkillsConfig, Ct as deviceOpenClawProfileWorkspaceDir, Dt as normalizeOpenMeldProfileId, E as toDaemonRouteObservationUrl, Et as normalizeAccountKey, F as toSpaceMembersUrl, G as isOpenMeldOrphanedLockError, Gt as runtimeLogsDir, H as acquireLock, Ht as resolveOpenMeldPresetOwnedPathInput, I as toSpaceMetaUrl, Jt as systemDir, Kt as skillsDir, L as toSpacePasswordUrl, Mt as openMeldManagedVersionDir, Nt as openMeldRootDir, Ot as openMeldBackupsDir, P as toSpaceLeaveUrl, Pt as openMeldVersionsDir, Qt as runtimeAgentControllerLaunchContractSchema, R as toSpaceRemoveMembersUrl, Rt as resolveDefaultOpenMeldHomeDirname, St as deviceOpenClawProfileDir, T as normalizeBaseUrl, Tt as legacyAccountProfileSpacesDir, Ut as resolveOpenMeldRootDir, V as toSpaceWsUrl, Vt as resolveOpenMeldEnvPreset, W as isOpenMeldLockError, Wt as runtimeDir, X as resolveOpenMeldOrphanedLockIssue, Yt as formatLocalMachineIssueMessage, Z as runWithHeldLock, Zt as runtimeAgentControllerConversationIdMappingSpecSchema, _ as getRuntimeConfigReadHealth, _t as accountProfileSpaceCacheDir, a as resolveBaseUrl, an as resolveBuiltinAgentControllerConversationKind, at as writeCliContextState, b as setConfiguredSkillsConfig, bt as accountsDir, c as resolveExplicitGatewayUrlOrThrow, d as createDefaultRuntimeAgentControllerSettings, dn as canonicalizeBuiltinAgentControllerRef, dt as createBackgroundExecutionBlockedIssue, en as runtimeStreamingModeSchema, f as getConfiguredDaemonDispatchLimits, fn as normalizeBuiltinAgentControllerId, g as getConfiguredViewCustomization, gt as accountProfileLocalMetaPath, h as getConfiguredSkillsConfig, ht as OPENMELD_HOME_ENV_KEY, i as normalizeGatewayBaseUrlOrNull, in as conversationPolicySchema, it as resolveCliContextId, j as toSpaceDeleteUrl, jt as openMeldManagedVersionBinaryPath, k as toSpaceCreateUrl, kt as openMeldBinDir, l as DEFAULT_RUNTIME_AGENT_TRANSPORT_MODE, ln as buildAgentControllerRoutingKey, lt as assessLocalMachineFailure, mn as parseAgentControllerRef$1, nt as readCliContextState, o as resolveBaseUrlOrNull, on as HOSTED_CENTER_AGENT_CONTROLLER_REF, p as getConfiguredDeviceRuntimeState, pn as normalizeKnownBuiltinAgentControllerId, r as normalizeGatewayBaseUrl, rn as buildAgentControllerConversationRef, rt as resolveCliContext, s as resolveDefaultGatewayBaseUrl, sn as HOSTED_CENTER_AGENT_CONTROLLER_REF_ID, st as resolveOpenMeldLaneDescriptor, tn as runtimeTransportModeSchema, tt as listCliContextStates, un as canonicalizeAgentControllerRef, v as resolveRuntimeSkillsCustomTargetId, vt as accountProfileViewPath, wt as isPublishedOpenMeldHome, x as updateConfiguredDeviceRuntimeState, xt as deviceOpenClawProfileBootstrapPath, yt as accountProfileWorkspacePath, zt as resolveExplicitOpenMeldEnvPreset } from "./base-url-Cv9x5Es9.js";
4
- import { A as MAX_TEXT_LENGTH, At as deleteCenterAgentRoutineResponseSchema, B as sleep, C as createSpaceApi, Ct as authProfileManagedRoleSchema, D as toStructuredApiClientFailure, Dt as submitFeedbackIssueRequestSchema, E as resolveProfileSpaceHistoryGatewayHost, Et as organizationComputersResponseSchema, F as OPENMELD_HEADER_PROFILE_ID, Ft as updateCenterAgentRoutineResponseSchema, Gt as localProjectControlDiscoverProjectsResponseSchema, H as getSpaceUpdatesResponseSchema, Ht as agentActivitySnapshotResponseSchema, Jt as removeSpaceMembersResponseSchema, Kt as leaveSpaceResponseSchema, L as OPENMELD_HEADER_REQUEST_ID, Lt as AGENT_ACTIVITY_PRESENCE_TTL_MAX_MS, M as parseIncoming$1, Mt as listCenterAgentRoutinesResponseSchema, N as parseServerErrorFrame$1, Nt as pauseCenterAgentRoutineResponseSchema, O as DAEMON_STREAM_KEEPALIVE_PING, Ot as submitFeedbackIssueResponseSchema, P as resolveCustomMentionAliasOverride, Pt as resumeCenterAgentRoutineResponseSchema, Rt as agentActivityEventSchema, S as createRuntimeReportingApi, T as resolveAccountSpaceIndexGatewayHost, Tt as profileErrorResponseSchema, U as SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS, Ut as localProjectControlConnectionSchema, V as toErrorMessage$41, Wt as localProjectControlDaemonFrameSchema, Xt as spaceMemberDirectorySchema, Yt as spaceMemberDirectoryEntrySchema, Z as submitAgentControllerTaskLifecycleEventItemSchema, _n as agentControllerCollaborationModeSchema, _t as organizationSkillSummarySchema, a as buildSpaceAttachmentDownloadPath, an as listProjectsResponseSchema, at as OPENMELD_RUNTIME_CAPABILITIES_HEADER, bt as ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE, c as createAgentProfileBindingApi, cn as centerAgentToolSpeakerSchema, ct as computerFileAccessPolicySchema, d as createCurrentDeviceApi, dt as spaceCreatorSchema, en as agentActivitySessionInventoryResponseSchema, ft as spaceMetaSchema, g as createOrganizationApi, gn as agentControllerPermissionModeSchema, gt as organizationSkillReleaseSummarySchema, h as createOpenMeldApiClient, i as buildProfileSpaceHistoryUpsertPath, in as createProjectResponseSchema, it as COMPUTER_FILE_ACCESS_RUNTIME_CAPABILITY, j as parseEnvelope$1, jt as listCenterAgentRoutineRunsResponseSchema, kt as createCenterAgentRoutineResponseSchema, ln as openCodePermissionConfigSchema, lt as modelCatalogSchema, m as createLocalRuntimeExpectedRoutesApi, mt as listOrganizationSkillsResponseSchema, n as OpenMeldApiClientInvalidResponseError, nn as observedLocalAgentSessionSchema, o as createAccountSpaceIndexApi, on as projectSchema, ot as computerFileAccessDaemonFrameSchema, p as createFetchTransport, pt as getOrganizationSkillResponseSchema, qt as postSpaceMembersResponseSchema, r as buildProfileSpaceHistoryStatusPath, rn as archiveProjectResponseSchema, rt as gatewayErrorEnvelopeSchema, s as createAgentActivityApi, sn as updateProjectResponseSchema, st as computerFileAccessPolicyInputSchema, t as OpenMeldApiClientHttpError, ut as organizationSpaceDirectoryWithMemberCountsResponseSchema, vn as toLegacySpaceAddressingWireValue, wt as profileCapabilitiesResponseSchema, xt as ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE, y as createProfileSpaceHistoryApi, yt as organizationDirectoryResponseSchema, z as toErrorMessage$42 } from "./dist-DtEdipqO.js";
5
- import { $ as localFolderPickerHelperResultSchema, A as runtimeTransportResumeControllerConversationFramePayloadSchema, An as formatLocalSetupActionDescription, At as detectSpaceAttachmentMimeType, C as runtimeTransportLocalAgentControlRefreshCatalogFramePayloadSchema, Cn as AGENT_INTERACTION_DEFAULT_TIMEOUT_MS, Cr as resolveDetailedPublicAgentFailureReason$1, D as runtimeTransportRegisterSessionRequestSchema, Dr as shouldPreferMappedPublicAgentFailureReason, E as runtimeTransportLookupRouteOwnerServiceEvidenceSchema, En as agentInteractionResolutionSchema, Er as resolvePublicAgentFailureRecovery, G as openMeldDaemonTaskResultOpenClawGatewayVisibilityStatusSchema, Gn as runtimeCoordinatorExecutionTokenEnvelopeSchema, H as runtimeTransportSubmitTaskResultRequestSchema, J as openMeldSpaceEgressActionSchema, Jt as conversationExecutionStateSchema, K as openMeldDaemonTaskResultPayloadSchema, Kn as runtimeTransportDeliveryExecutionIdentitySchema, Kt as skippedDaemonProfileSchema, Ln as localServiceComponentUpdateProjectionSchema, M as runtimeTransportRouteCatalogChangedFramePayloadSchema, Mn as installedLocalComponentsSnapshotSchema, Nn as localCliComponentUpdateProjectionSchema, O as runtimeTransportRegisterSessionResponseSchema, On as formatLocalComponentsSummaryDescription, Pt as spaceAttachmentFileNameSchema, Q as localFolderPickerHelperProtocolResultSchema, Qn as resolveSpaceMentionLabels, S as runtimeTransportLocalAgentControlManageInstallationFramePayloadSchema, Sr as MAX_TEXT_LENGTH$1, St as SPACE_MENTION_REJECT_NOTICE_PURPOSE, T as runtimeTransportLocalAgentControlSetProfileWorkspaceFramePayloadSchema, Tn as agentInteractionRequestSchema, Tr as resolvePublicAgentAvailabilityCopy, Ut as openMeldDaemonControlPlaneRequestSchema, Vn as parseOptionalClientMessageId, W as openMeldDaemonTaskResultEnvelopeWriteSchema, Wt as openMeldDaemonControlPlaneResponseSchema, X as OPENMELD_LOCAL_FOLDER_PICKER_CAPABILITY_HEADER, Y as LOCAL_FOLDER_PICKER_RUNTIME_CAPABILITY, Yn as normalizeSpacePasswordText, Z as localFolderPickerDaemonFrameSchema, Zn as resolveSingleSpaceMentionLabels, _ as runtimeTransportHeartbeatRequestSchema, a as runtimeTransportCapabilitiesSchema, b as runtimeTransportLocalAgentControlForkSessionFramePayloadSchema, bt as SPACE_MEMBER_JOIN_NOTICE_PURPOSE, c as runtimeTransportDispatchInteractionRequestSchema, cr as openMeldRequestContextSchema, d as runtimeTransportDispatchPreviewEndRequestSchema, dn as formatCanonicalMentionLiteral, dr as normalizeOptionalWorkingDirectory, f as runtimeTransportDispatchPreviewRequestSchema, fn as getSpaceMessageAddressingRelationSupportForTargetKind, fr as openMeldRuntimeProfileIdSchema, g as runtimeTransportForkAgentSessionResultSchema, gr as profileWorkspaceModeSchema, gt as CONVERSATION_CONTINUITY_WARNING_PURPOSE, h as runtimeTransportErrorCodeSchema, hn as resolveMessageEnvelopeTargetField, i as localWakeRouteReportSchema, j as runtimeTransportResumeControllerConversationResultFramePayloadSchema, jn as formatLocalSetupActionLabel, jr as resolveCommandAgentWorkActivity, jt as projectSpaceMessageAttachment, k as runtimeTransportRejectedProfileRegistrationSchema, kn as formatLocalComponentsSummaryLabel, kt as SPACE_ATTACHMENT_MAX_SIZE_BYTES, l as runtimeTransportDispatchInteractionResponseFramePayloadSchema, ln as MESSAGE_MENTION_TYPE_VALUES, lr as MAX_PROFILE_WORKING_DIRECTORY_LENGTH, m as runtimeTransportDispatchToolActivityRequestSchema, mn as normalizeMessageEnvelope, n as daemonExecutionCompatibilitySchema, o as runtimeTransportDeliverDispatchRequestSchema, p as runtimeTransportDispatchRuntimeEvidenceRequestSchema, qt as providerDispatchRuntimeContextSchema, r as daemonStreamFrameSchema, s as runtimeTransportDispatchInteractionDeliveredRequestSchema, t as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, u as runtimeTransportDispatchLifecycleRequestSchema, un as collectCanonicalMentionTextFragments, ur as agentProfileIdSchema, v as runtimeTransportHeartbeatResponseSchema, w as runtimeTransportLocalAgentControlSetEnabledFramePayloadSchema, wr as resolveMappedPublicAgentFailureReason, wt as sanitizeSignalTextPreview, x as runtimeTransportLocalAgentControlInterruptFramePayloadSchema, xr as trimmedStringFromUnknown, xt as SPACE_MEMBER_REMOVE_NOTICE_PURPOSE, y as runtimeTransportLocalAgentControlCancelFramePayloadSchema } from "./runtime-transport-BLEvh9zX.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$41, 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$42, zt as agentActivityEventSchema } from "./dist-Cm4BbP8Y.js";
5
+ import { A as runtimeTransportResumeControllerConversationFramePayloadSchema, B as openMeldSpaceEgressActionSchema, Bt as conversationExecutionStateSchema, C as runtimeTransportLocalAgentControlRefreshCatalogFramePayloadSchema, Cn as formatLocalSetupActionLabel, Cr as resolveCommandAgentWorkActivity, Ct as projectSpaceMessageAttachment, D as runtimeTransportRegisterSessionRequestSchema, E as runtimeTransportLookupRouteOwnerServiceEvidenceSchema, Et as spaceAttachmentFileNameSchema, Ft as openMeldDaemonControlPlaneRequestSchema, G as localFolderPickerHelperResultSchema, H as OPENMELD_LOCAL_FOLDER_PICKER_CAPABILITY_HEADER, I as openMeldDaemonTaskResultEnvelopeWriteSchema, It as openMeldDaemonControlPlaneResponseSchema, L as openMeldDaemonTaskResultOpenClawGatewayVisibilityStatusSchema, Ln as runtimeCoordinatorExecutionTokenEnvelopeSchema, M as runtimeTransportRouteCatalogChangedFramePayloadSchema, Nn as parseOptionalClientMessageId, O as runtimeTransportRegisterSessionResponseSchema, P as runtimeTransportSubmitTaskResultRequestSchema, R as openMeldDaemonTaskResultPayloadSchema, Rn as runtimeTransportDeliveryExecutionIdentitySchema, Rt as skippedDaemonProfileSchema, S as runtimeTransportLocalAgentControlManageInstallationFramePayloadSchema, Sn as formatLocalSetupActionDescription, St as detectSpaceAttachmentMimeType, T as runtimeTransportLocalAgentControlSetProfileWorkspaceFramePayloadSchema, Tn as localCliComponentUpdateProjectionSchema, U as localFolderPickerDaemonFrameSchema, Un as resolveSingleSpaceMentionLabels, V as LOCAL_FOLDER_PICKER_RUNTIME_CAPABILITY, Vn as normalizeSpacePasswordText, W as localFolderPickerHelperProtocolResultSchema, Wn as resolveSpaceMentionLabels, _ as runtimeTransportHeartbeatRequestSchema, _n as agentInteractionRequestSchema, _r as resolvePublicAgentAvailabilityCopy, a as runtimeTransportCapabilitiesSchema, b as runtimeTransportLocalAgentControlForkSessionFramePayloadSchema, bn as formatLocalComponentsSummaryDescription, c as runtimeTransportDispatchInteractionRequestSchema, cr as profileWorkspaceModeSchema, ct as CONVERSATION_CONTINUITY_WARNING_PURPOSE, d as runtimeTransportDispatchPreviewEndRequestSchema, er as openMeldRequestContextSchema, f as runtimeTransportDispatchPreviewRequestSchema, ft as SPACE_MEMBER_JOIN_NOTICE_PURPOSE, g as runtimeTransportForkAgentSessionResultSchema, gr as resolveMappedPublicAgentFailureReason, gt as sanitizeSignalTextPreview, h as runtimeTransportErrorCodeSchema, hn as AGENT_INTERACTION_DEFAULT_TIMEOUT_MS, hr as resolveDetailedPublicAgentFailureReason$1, i as localWakeRouteReportSchema, in as getSpaceMessageAddressingRelationSupportForTargetKind, ir as openMeldRuntimeProfileIdSchema, j as runtimeTransportResumeControllerConversationResultFramePayloadSchema, k as runtimeTransportRejectedProfileRegistrationSchema, kn as localServiceComponentUpdateProjectionSchema, l as runtimeTransportDispatchInteractionResponseFramePayloadSchema, m as runtimeTransportDispatchToolActivityRequestSchema, mr as MAX_TEXT_LENGTH$1, mt as SPACE_MENTION_REJECT_NOTICE_PURPOSE, n as daemonExecutionCompatibilitySchema, nn as collectCanonicalMentionTextFragments, nr as agentProfileIdSchema, o as runtimeTransportDeliverDispatchRequestSchema, on as normalizeMessageEnvelope, p as runtimeTransportDispatchRuntimeEvidenceRequestSchema, pr as trimmedStringFromUnknown, pt as SPACE_MEMBER_REMOVE_NOTICE_PURPOSE, r as daemonStreamFrameSchema, rn as formatCanonicalMentionLiteral, rr as normalizeOptionalWorkingDirectory, s as runtimeTransportDispatchInteractionDeliveredRequestSchema, sn as resolveMessageEnvelopeTargetField, t as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, tn as MESSAGE_MENTION_TYPE_VALUES, tr as MAX_PROFILE_WORKING_DIRECTORY_LENGTH, u as runtimeTransportDispatchLifecycleRequestSchema, v as runtimeTransportHeartbeatResponseSchema, vn as agentInteractionResolutionSchema, vr as resolvePublicAgentFailureRecovery, w as runtimeTransportLocalAgentControlSetEnabledFramePayloadSchema, wn as installedLocalComponentsSnapshotSchema, x as runtimeTransportLocalAgentControlInterruptFramePayloadSchema, xn as formatLocalComponentsSummaryLabel, xt as SPACE_ATTACHMENT_MAX_SIZE_BYTES, y as runtimeTransportLocalAgentControlCancelFramePayloadSchema, yr as shouldPreferMappedPublicAgentFailureReason, zt as providerDispatchRuntimeContextSchema } from "./runtime-transport-DI97Fndy.js";
6
6
  import { r as daemonServiceLaneSchema, t as daemonServiceContractSchema } from "./service-contract-DZWQdPz5.js";
7
- import { A as isDaemonServiceRuntimeHeartbeatStale, B as uninstallDaemon, C as daemonServiceStableExecutableWrapperPath, D as getDaemonRuntimeStatus, E as ensureDaemonControlPlaneToken, F as releaseDaemonServiceLifecycleLock, G as readDaemonLocalStateFile, H as withDaemonServiceRegistrationMutationLock, I as resolveDaemonControlPlaneEndpoint, K as writeDaemonLocalStateFile, L as resolveDaemonServiceRuntimeMetadata, M as readDaemonServiceLifecycleLockMeta, N as readDaemonServiceLifecycleLockMetaWithCleanup, O as getDaemonStatus, P as readDaemonServiceRuntimeSnapshot, R as restoreDaemonInstallStateSnapshot, S as daemonServiceRepairJournalPath, T as daemonStatePath, U as withDaemonServiceRunLock, V as withDaemonServiceReconcileLock, W as withDaemonServiceStopLock, _ as daemonRuntimeServiceManagerPath, a as DAEMON_SERVICE_RUNTIME_CONTROLLER_ENV, b as daemonServiceLegacyExecutableWrapperPath, 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 readDaemonControlPlaneToken, k as installDaemon, l as DAEMON_SERVICE_RUNTIME_SYSTEM_SERVICE_ENV, m as daemonRuntimeBundlesPath, n as writeDaemonRuntimeLease, o as DAEMON_SERVICE_RUNTIME_DETACHED_ENV, p as daemonLifecycleJournalPath, r as DAEMON_HEARTBEAT_STALE_MS, s as DAEMON_SERVICE_RUNTIME_MODE_ENV, t as readDaemonRuntimeLease, u as acquireDaemonServiceLifecycleLock, v as daemonRuntimeStateRootPath, w as daemonServiceStableLauncherPath, x as daemonServiceRecognizedExecutableWrapperPaths, y as daemonServiceActiveBundleStatePath, z as setDaemonServiceRuntimeState } from "./daemon-runtime-lease-CKQef0lp.js";
8
- import { A as RUNTIME_AGENT_CONTROLLER_REPORT_SYNC_RETRY_INTERVAL_MS$1, D as REGISTER_RESPONSE_TIMEOUT_MS$1, E as PROVIDER_CONVERSATION_PROOF_SYNC_RETRY_INTERVAL_MS$1, S as MIN_HEARTBEAT_INTERVAL_MS$2, T as PROVIDER_CONVERSATION_PROOF_SYNC_INTERVAL_MS$1, _ as DEFAULT_HEARTBEAT_INTERVAL_MS$1, a as getAuthSessionState, b as MAX_HEARTBEAT_INTERVAL_MS$2, c as setAuthSession, d as CATALOG_SYNC_SIGNAL_POLL_INTERVAL_MS$1, f as DAEMON_RUNTIME_CONTRACT_EPOCH$1, g as DEFAULT_GATEWAY_CHAIN_TIMEOUT_MS$1, h as DAEMON_STREAM_KEEPALIVE_PONG_TIMEOUT_MS$1, j as RUNTIME_STATE_PERSIST_MIN_INTERVAL_MS$1, k as RUNTIME_AGENT_CONTROLLER_REPORT_SYNC_INTERVAL_MS$1, m as DAEMON_STREAM_KEEPALIVE_INTERVAL_MS$1, n as clearAuthSession, p as DAEMON_STREAM_CONNECT_TIMEOUT_MS$1, r as getAuthSession, u as CATALOG_SYNC_RETRY_INTERVAL_MS$1, w as OPENCLAW_CLI_TIMEOUT_MS$1, y as HEARTBEAT_RESPONSE_TIMEOUT_MS$1 } from "./auth-session-BOKcW_84.js";
9
- import { a as buildOpenMeldProfileIdentityRequestHeadersWithAuth, c as buildRequestAuthHeaders, d as buildOpenMeldRequestContextFromProfile, f as buildOpenMeldRequestContextFromProfileIdentity, i as resolveSpaceRequestTimeoutMsForDiagnostics, l as canAttachAuthTokenToRequest, m as resolveAuthRequestCompatibility, n as createCliApiClientFoundation, o as buildOpenMeldProfileRequestHeadersWithAuth, p as deriveAuthBaseUrlFromGatewayUrl, r as fetchSpaceRequestWithTimeout, s as buildOpenMeldRequestContextHeadersWithAuth, u as resolveAuthTokenAttachment } from "./api-client-foundation-jjwUa25Q.js";
7
+ import { A as isDaemonServiceRuntimeHeartbeatStale, B as setDaemonServiceRuntimeState, C as daemonServiceStableExecutableWrapperPath, D as getDaemonRuntimeStatus, E as ensureDaemonControlPlaneToken, F as releaseDaemonServiceLifecycleLock, G as withDaemonServiceStopLock, H as withDaemonServiceReconcileLock, I as resolveDaemonControlPlaneEndpoint, K as readDaemonLocalStateFile, L as resolveDaemonServiceRuntimeMetadata, M as readDaemonServiceLifecycleLockMeta, N as readDaemonServiceLifecycleLockMetaWithCleanup, O as getDaemonStatus, P as readDaemonServiceRuntimeSnapshot, R as restoreDaemonInstallStateSnapshot, S as daemonServiceRepairJournalPath, T as daemonStatePath, U as withDaemonServiceRegistrationMutationLock, V as uninstallDaemon, W as withDaemonServiceRunLock, _ as daemonRuntimeServiceManagerPath, a as DAEMON_SERVICE_RUNTIME_CONTROLLER_ENV, b as daemonServiceLegacyExecutableWrapperPath, 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 readDaemonControlPlaneToken, k as installDaemon, 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 writeDaemonLocalStateFile, r as DAEMON_HEARTBEAT_STALE_MS, s as DAEMON_SERVICE_RUNTIME_MODE_ENV, t as readDaemonRuntimeLease, u as acquireDaemonServiceLifecycleLock, v as daemonRuntimeStateRootPath, w as daemonServiceStableLauncherPath, x as daemonServiceRecognizedExecutableWrapperPaths, y as daemonServiceActiveBundleStatePath, z as rotateDaemonControlPlaneTokenIfExpired } from "./daemon-runtime-lease-DiRoGxhm.js";
8
+ import { A as RUNTIME_AGENT_CONTROLLER_REPORT_SYNC_RETRY_INTERVAL_MS$1, D as REGISTER_RESPONSE_TIMEOUT_MS$1, E as PROVIDER_CONVERSATION_PROOF_SYNC_RETRY_INTERVAL_MS$1, S as MIN_HEARTBEAT_INTERVAL_MS$2, T as PROVIDER_CONVERSATION_PROOF_SYNC_INTERVAL_MS$1, _ as DEFAULT_HEARTBEAT_INTERVAL_MS$1, a as getAuthSessionState, b as MAX_HEARTBEAT_INTERVAL_MS$2, c as setAuthSession, d as CATALOG_SYNC_SIGNAL_POLL_INTERVAL_MS$1, f as DAEMON_RUNTIME_CONTRACT_EPOCH$1, g as DEFAULT_GATEWAY_CHAIN_TIMEOUT_MS$1, h as DAEMON_STREAM_KEEPALIVE_PONG_TIMEOUT_MS$1, j as RUNTIME_STATE_PERSIST_MIN_INTERVAL_MS$1, k as RUNTIME_AGENT_CONTROLLER_REPORT_SYNC_INTERVAL_MS$1, m as DAEMON_STREAM_KEEPALIVE_INTERVAL_MS$1, n as clearAuthSession, p as DAEMON_STREAM_CONNECT_TIMEOUT_MS$1, r as getAuthSession, u as CATALOG_SYNC_RETRY_INTERVAL_MS$1, w as OPENCLAW_CLI_TIMEOUT_MS$1, y as HEARTBEAT_RESPONSE_TIMEOUT_MS$1 } from "./auth-session-BJZuJ2bM.js";
9
+ import { a as buildOpenMeldProfileIdentityRequestHeadersWithAuth, c as buildRequestAuthHeaders, d as buildOpenMeldRequestContextFromProfile, f as buildOpenMeldRequestContextFromProfileIdentity, i as resolveSpaceRequestTimeoutMsForDiagnostics, l as canAttachAuthTokenToRequest, m as resolveAuthRequestCompatibility, n as createCliApiClientFoundation, o as buildOpenMeldProfileRequestHeadersWithAuth, p as deriveAuthBaseUrlFromGatewayUrl, r as fetchSpaceRequestWithTimeout, s as buildOpenMeldRequestContextHeadersWithAuth, u as resolveAuthTokenAttachment } from "./api-client-foundation-Chryr5BZ.js";
10
10
  import { createRequire } from "node:module";
11
11
  import { homedir, tmpdir, userInfo } from "node:os";
12
12
  import { z } from "zod/v4";
@@ -34,8 +34,8 @@ import { Box, Container, Editor, Key, ProcessTerminal, TUI, Text, getEditorKeybi
34
34
  var package_default = {
35
35
  $schema: "https://www.schemastore.org/package.json",
36
36
  name: "openmeld",
37
- version: "0.3.81",
38
- openMeldReleaseDate: "2026-08-22",
37
+ version: "0.3.83",
38
+ openMeldReleaseDate: "2026-08-23",
39
39
  description: "OpenMeld CLI - https://openmeld.ai",
40
40
  license: "MIT",
41
41
  type: "module",
@@ -1269,7 +1269,7 @@ async function tryClaimLease(path, token, leaseMs) {
1269
1269
  throw error;
1270
1270
  }
1271
1271
  } catch (error) {
1272
- if (!isNodeError$12(error, "EEXIST")) throw error;
1272
+ if (!isNodeError$11(error, "EEXIST")) throw error;
1273
1273
  }
1274
1274
  const current = await readLeaseOwner(path);
1275
1275
  if (current && isLeaseOwnerStillRunning(current)) return false;
@@ -1278,7 +1278,7 @@ async function tryClaimLease(path, token, leaseMs) {
1278
1278
  try {
1279
1279
  await rename(path, stalePath);
1280
1280
  } catch (error) {
1281
- if (isNodeError$12(error, "ENOENT")) return false;
1281
+ if (isNodeError$11(error, "ENOENT")) return false;
1282
1282
  throw error;
1283
1283
  }
1284
1284
  await rm(stalePath, {
@@ -1298,7 +1298,7 @@ async function releaseLease(path, token) {
1298
1298
  try {
1299
1299
  await rename(path, releasePath);
1300
1300
  } catch (error) {
1301
- if (isNodeError$12(error, "ENOENT")) return;
1301
+ if (isNodeError$11(error, "ENOENT")) return;
1302
1302
  throw error;
1303
1303
  }
1304
1304
  await rm(releasePath, {
@@ -1308,7 +1308,7 @@ async function releaseLease(path, token) {
1308
1308
  }
1309
1309
  async function readLeaseOwner(path) {
1310
1310
  const raw = await readFile(join(path, "owner.json"), "utf8").catch((error) => {
1311
- if (isNodeError$12(error, "ENOENT")) return null;
1311
+ if (isNodeError$11(error, "ENOENT")) return null;
1312
1312
  throw error;
1313
1313
  });
1314
1314
  if (!raw) return null;
@@ -1337,7 +1337,7 @@ async function writeLeaseOwner(path, owner) {
1337
1337
  }
1338
1338
  async function isUninitializedLeaseStale(path) {
1339
1339
  const metadata = await stat(path).catch((error) => {
1340
- if (isNodeError$12(error, "ENOENT")) return null;
1340
+ if (isNodeError$11(error, "ENOENT")) return null;
1341
1341
  throw error;
1342
1342
  });
1343
1343
  return Boolean(metadata && Date.now() - metadata.mtimeMs >= OWNER_INITIALIZATION_GRACE_MS);
@@ -1388,10 +1388,10 @@ function isProcessAlive$1(pid) {
1388
1388
  process.kill(pid, 0);
1389
1389
  return true;
1390
1390
  } catch (error) {
1391
- return !isNodeError$12(error, "ESRCH");
1391
+ return !isNodeError$11(error, "ESRCH");
1392
1392
  }
1393
1393
  }
1394
- function isNodeError$12(error, code) {
1394
+ function isNodeError$11(error, code) {
1395
1395
  return error instanceof Error && "code" in error && String(error.code) === code;
1396
1396
  }
1397
1397
  //#endregion
@@ -1578,7 +1578,7 @@ async function appendPermanentDiagnostic$1(root, diagnostic) {
1578
1578
  async function readPermanentDiagnostics$1(root) {
1579
1579
  const path = join(root, "permanent-rejections.json");
1580
1580
  const raw = await readFile(path, "utf8").catch((error) => {
1581
- if (isNodeError$11(error, "ENOENT")) return null;
1581
+ if (isNodeError$10(error, "ENOENT")) return null;
1582
1582
  throw error;
1583
1583
  });
1584
1584
  let diagnostics = [];
@@ -1599,7 +1599,7 @@ async function readPermanentDiagnostics$1(root) {
1599
1599
  recursive: true
1600
1600
  });
1601
1601
  await rename(path, join(quarantine, `${nowMs}-${diagnosticId}.invalid-diagnostics`)).catch((error) => {
1602
- if (!isNodeError$11(error, "ENOENT")) throw error;
1602
+ if (!isNodeError$10(error, "ENOENT")) throw error;
1603
1603
  });
1604
1604
  diagnostics.push({
1605
1605
  eventId: `invalid:${diagnosticId}`,
@@ -1640,13 +1640,13 @@ async function readQuarantinedInvalidRecordDiagnostics(quarantine) {
1640
1640
  }
1641
1641
  async function readQuarantineEntries(quarantine) {
1642
1642
  return await readdir(quarantine).catch((error) => {
1643
- if (isNodeError$11(error, "ENOENT")) return [];
1643
+ if (isNodeError$10(error, "ENOENT")) return [];
1644
1644
  throw error;
1645
1645
  });
1646
1646
  }
1647
1647
  async function markQuarantinedInvalidRecordsReconciled(quarantine, recovered) {
1648
1648
  for (const { entry } of recovered) await rename(join(quarantine, entry), join(quarantine, `${entry}.reconciled`)).catch((error) => {
1649
- if (!isNodeError$11(error, "ENOENT")) throw error;
1649
+ if (!isNodeError$10(error, "ENOENT")) throw error;
1650
1650
  });
1651
1651
  }
1652
1652
  async function ensureStorePaths$1(input) {
@@ -1669,7 +1669,7 @@ async function ensureStorePaths$1(input) {
1669
1669
  async function quarantineInvalidRecord(paths, path, nowMs) {
1670
1670
  const diagnosticId = randomUUID();
1671
1671
  await rename(path, join(paths.quarantine, `${nowMs}-${diagnosticId}.invalid`)).catch((error) => {
1672
- if (!isNodeError$11(error, "ENOENT")) throw error;
1672
+ if (!isNodeError$10(error, "ENOENT")) throw error;
1673
1673
  });
1674
1674
  await appendPermanentDiagnostic$1(paths.root, {
1675
1675
  eventId: `invalid:${diagnosticId}`,
@@ -1684,7 +1684,7 @@ async function trimQuarantineEntries(quarantine) {
1684
1684
  }
1685
1685
  async function readCurrentOutboxRecord$1(path) {
1686
1686
  const raw = await readFile(path, "utf8").catch((error) => {
1687
- if (isNodeError$11(error, "ENOENT")) return null;
1687
+ if (isNodeError$10(error, "ENOENT")) return null;
1688
1688
  throw error;
1689
1689
  });
1690
1690
  if (raw === null) return { status: "missing" };
@@ -1732,7 +1732,7 @@ async function atomicWriteJson$1(path, value) {
1732
1732
  function isPermanentDiagnostic$1(value) {
1733
1733
  return Boolean(value && typeof value === "object" && "eventId" in value && typeof value.eventId === "string" && "occurredAtMs" in value && Number.isFinite(value.occurredAtMs) && "reason" in value && typeof value.reason === "string");
1734
1734
  }
1735
- function isNodeError$11(error, code) {
1735
+ function isNodeError$10(error, code) {
1736
1736
  return error instanceof Error && "code" in error && String(error.code) === code;
1737
1737
  }
1738
1738
  //#endregion
@@ -1826,7 +1826,7 @@ function storePath$2(input) {
1826
1826
  //#region src/agent-activity/project-binding-resolution.ts
1827
1827
  async function canonicalizeLocalProjectPath(path) {
1828
1828
  return await realpath(resolve(path)).catch((error) => {
1829
- if (isNodeError$10(error, "ENOENT")) return null;
1829
+ if (isUnavailablePathError(error)) return null;
1830
1830
  throw error;
1831
1831
  });
1832
1832
  }
@@ -1837,13 +1837,9 @@ function resolveCanonicalLocalProjectConnection(canonicalPath, connections) {
1837
1837
  }
1838
1838
  async function resolveLocalProjectConnectionForPath(input) {
1839
1839
  const sameLaneConnections = input.organizationId === void 0 ? input.connections : input.connections.filter((connection) => connection.organizationId === input.organizationId);
1840
- const resolvedPath = resolve(input.path);
1841
- const pathAliases = localPathAliases(resolvedPath);
1842
- const possibleConnections = sameLaneConnections.filter((connection) => pathAliases.some((candidate) => isPathWithin(candidate, connection.repositoryPath)));
1843
- if (possibleConnections.length === 0) return null;
1844
- const canonicalPath = await canonicalizeLocalProjectPath(resolvedPath);
1840
+ const canonicalPath = await canonicalizeLocalProjectPath(resolve(input.path));
1845
1841
  if (canonicalPath === null) return null;
1846
- return resolveCanonicalLocalProjectConnection(canonicalPath, possibleConnections);
1842
+ return resolveCanonicalLocalProjectConnection(canonicalPath, sameLaneConnections);
1847
1843
  }
1848
1844
  function findExactLocalProjectConnection(input) {
1849
1845
  return input.connections.find((connection) => connection.organizationId === input.organizationId && connection.projectId === input.projectId && (input.bindingGeneration === void 0 || connection.bindingGeneration === input.bindingGeneration) && (input.canonicalPath === void 0 || connection.repositoryPath === input.canonicalPath)) ?? null;
@@ -1851,19 +1847,17 @@ function findExactLocalProjectConnection(input) {
1851
1847
  function isPathWithin(candidate, root) {
1852
1848
  return candidate === root || candidate.startsWith(`${root}${sep}`);
1853
1849
  }
1854
- function localPathAliases(path) {
1855
- const privatePrefix = `${sep}private`;
1856
- if (path.startsWith(`${privatePrefix}${sep}`)) return [path, path.slice(privatePrefix.length)];
1857
- if ([
1858
- `${sep}etc`,
1859
- `${sep}tmp`,
1860
- `${sep}var`
1861
- ].some((root) => path === root || path.startsWith(`${root}${sep}`))) return [path, `${privatePrefix}${path}`];
1862
- return [path];
1863
- }
1864
- function isNodeError$10(error, code) {
1865
- return Boolean(error && typeof error === "object" && "code" in error && error.code === code);
1850
+ function isUnavailablePathError(error) {
1851
+ return Boolean(error && typeof error === "object" && "code" in error && typeof error.code === "string" && UNAVAILABLE_PATH_ERROR_CODES.has(error.code));
1866
1852
  }
1853
+ const UNAVAILABLE_PATH_ERROR_CODES = /* @__PURE__ */ new Set([
1854
+ "EACCES",
1855
+ "ELOOP",
1856
+ "ENOENT",
1857
+ "ENOTDIR",
1858
+ "EPERM",
1859
+ "ESTALE"
1860
+ ]);
1867
1861
  //#endregion
1868
1862
  //#region src/agent-activity/project-bindings.ts
1869
1863
  const LEGACY_STORE_VERSION = 2;
@@ -17513,7 +17507,7 @@ function resolveOpenMeldAccountContext(input) {
17513
17507
  };
17514
17508
  }
17515
17509
  async function resolveCurrentOpenMeldAccountContext() {
17516
- const { getAuthSessionMetadata } = await import("./auth-session-BOKcW_84.js").then((n) => n.t);
17510
+ const { getAuthSessionMetadata } = await import("./auth-session-BJZuJ2bM.js").then((n) => n.t);
17517
17511
  return resolveOpenMeldAccountContext({ session: await getAuthSessionMetadata().catch(() => null) });
17518
17512
  }
17519
17513
  function resolveHostKey(baseUrl) {
@@ -17689,19 +17683,9 @@ function buildCommandAuthenticationPromptMessage$1(action) {
17689
17683
  function buildHumanAuthenticationCard(input) {
17690
17684
  const rows = [];
17691
17685
  rows.push({
17692
- label: "Status",
17686
+ label: "What happened",
17693
17687
  value: buildHumanAuthenticationStatusText(input.guidance)
17694
17688
  });
17695
- if (input.guidance.reason === "mismatch") {
17696
- if (input.guidance.authBaseUrl) rows.push({
17697
- label: "Signed In To",
17698
- value: input.guidance.authBaseUrl
17699
- });
17700
- if (input.guidance.gatewayUrl) rows.push({
17701
- label: "This Command Uses",
17702
- value: input.guidance.gatewayUrl
17703
- });
17704
- }
17705
17689
  rows.push({
17706
17690
  label: "Next",
17707
17691
  value: input.mode === "prompt" ? input.guidance.promptNextStep : input.guidance.errorNextStep
@@ -18660,12 +18644,13 @@ function isInteractiveSession() {
18660
18644
  }
18661
18645
  //#endregion
18662
18646
  //#region src/runtime/messages.ts
18647
+ const SENTENCE_END_PATTERN = /[.!?]$/u;
18663
18648
  const HUMAN_MESSAGES = {
18664
18649
  "whoami.loaded": (params) => `Profile loaded (profile: ${String(params?.profile ?? "unknown")}).`,
18665
18650
  "space.menu.interactive_required": () => "This menu only works in an interactive terminal. Run `openmeld space --help`.",
18666
- "space.target.missing": (params) => `Missing required argument 'space' for \`openmeld space ${String(params?.command ?? "join")}\`.`,
18667
- "space.target.invalid": (params) => `Invalid space target: ${String(params?.space ?? "unknown")} (space ID must be a 64-character hex ID).`,
18668
- "signal.id.invalid": (params) => `Invalid ${String(params?.flag ?? "signal")} value: ${String(params?.value ?? "unknown")}. Use the full signal ID — a 36-character UUID like 80d6ac34-353a-495e-9aa3-b2013ee06179, not a short prefix. Copy the full "signalId" from \`openmeld space history --view agent\`.`,
18651
+ "space.target.missing": (params) => `Add a Space ID after \`openmeld space ${String(params?.command ?? "join")}\`, then try again.`,
18652
+ "space.target.invalid": (_params) => "That Space ID isn't valid. Copy the full Space ID, then try again.",
18653
+ "signal.id.invalid": (params) => `That ${String(params?.flag ?? "signal")} ID is incomplete. Copy the full signal ID from \`openmeld space history --view agent\`, then try again.`,
18669
18654
  "space.create.created": (params) => `Space created: ${String(params?.spaceId ?? "unknown")}`,
18670
18655
  "space.join.stdin_fallback_watch": (params) => formatJoinNoStdioMessage("human", params),
18671
18656
  "space.join.bootstrap_context": (params) => formatJoinBootstrapContextMessage("human", params),
@@ -18677,36 +18662,36 @@ const HUMAN_MESSAGES = {
18677
18662
  "space.password.warning": () => "Important: Save this password securely. If lost, it cannot be recovered. Reset is the only option.",
18678
18663
  "profile.menu.interactive_required": () => "This menu only works in an interactive terminal. Run `openmeld profiles --help`.",
18679
18664
  "profile.no_profiles": () => "No OpenMeld profiles found. Sign in with `openmeld login` or create one with `openmeld profiles create`.",
18680
- "profile.target.missing": (params) => `Missing required argument 'profile' for \`openmeld profiles ${String(params?.action ?? "set")}\`.`,
18681
- "profile.delete.force_required": () => "Deleting a profile requires `--force` in non-interactive mode.",
18665
+ "profile.target.missing": (params) => `Add a profile ID after \`openmeld profiles ${String(params?.action ?? "set")}\`, then try again.`,
18666
+ "profile.delete.force_required": () => "Add `--force` to delete a profile from a non-interactive terminal.",
18682
18667
  "profile.current_set": (params) => `Current profile: ${String(params?.profile ?? "unknown")}. New OpenMeld commands will use this profile by default unless you pass \`--profile\`.`,
18683
18668
  "profile.selection.non_persistent": () => "Warning: this temporary OpenMeld CLI context only uses the selected profile for this command.",
18684
18669
  "profile.deleted": (params) => `Deleted profile: ${String(params?.profile ?? "unknown")}.`,
18685
18670
  "profile.current_switched": (params) => `Current profile switched to: ${String(params?.profile ?? "unknown")}.`,
18686
18671
  "profile.no_active": () => "No OpenMeld profile is currently selected.",
18687
- "profile.update.missing_changes": () => "`openmeld profile update` requires at least one update option.",
18672
+ "profile.update.missing_changes": () => "Choose at least one profile setting to update. Run `openmeld profile update --help` to see the options.",
18688
18673
  "profile.update.candidates_required": () => "Choose a profile first. Available profiles are listed above.",
18689
- "routines.error": (params) => String(params?.message ?? "Routine command failed."),
18674
+ "routines.error": (params) => String(params?.message ?? "Routine action couldn't finish."),
18690
18675
  "doctor.summary.failed": () => "OpenMeld diagnostics found issues.",
18691
18676
  "send.sent": () => "Sent.",
18692
18677
  "tail.empty": () => "(no signals yet)",
18693
18678
  "space.updates.empty": () => "(no updates found after this signal)",
18694
18679
  "init.profile_initialized": (params) => `Profile initialized: ${String(params?.profile ?? "unknown")}.`,
18695
18680
  "connect.connecting": (params) => `Connecting to ${String(params?.wsUrl ?? "")}`,
18696
- "connect.warn.persist_last_seen": (params) => `Warning: OpenMeld couldn't save where you left off in this space: ${String(params?.error ?? "unknown")}`,
18697
- "connect.warn.persist_recent_mentions": (params) => `Warning: OpenMeld couldn't save your recent @ targets for this space: ${String(params?.error ?? "unknown")}`,
18698
- "connect.warn.cursor_fetch_failed": (params) => `Warning: OpenMeld couldn't load your place in this space: ${String(params?.error ?? "unknown")}`,
18699
- "connect.warn.cursor_patch_failed": (params) => `Warning: OpenMeld couldn't update your place in this space: ${String(params?.error ?? "unknown")}`,
18700
- "connect.warn.catchup_failed": (params) => `Warning: OpenMeld couldn't catch up to recent messages: ${String(params?.error ?? "unknown")}`,
18701
- "connect.warn.catchup_live_buffer_overflow": (_params) => `Warning: OpenMeld couldn't fully catch up to recent messages, so live updates will continue without saving your place for this session.`,
18702
- "connect.warn.cursor_sync_paused": () => "Warning: OpenMeld will keep showing live updates, but it won't save your place for the rest of this session.",
18703
- "connect.warn.meta_fetch_failed": (params) => `Warning: couldn't fetch space details: ${String(params?.error ?? "unknown")}`,
18704
- "connect.warn.members_fetch_failed": (params) => `Warning: couldn't fetch space members: ${String(params?.error ?? "unknown")}`,
18705
- "connect.warn.profile_space_history_sync_failed": (params) => `Warning: OpenMeld couldn't update this space in your recent history: ${String(params?.error ?? "unknown")}`,
18681
+ "connect.warn.persist_last_seen": (_params) => "OpenMeld couldn't save where you left off. Live updates will continue.",
18682
+ "connect.warn.persist_recent_mentions": (_params) => "OpenMeld couldn't save your recent @ mentions. Live updates will continue.",
18683
+ "connect.warn.cursor_fetch_failed": (_params) => "OpenMeld couldn't load where you left off. Live updates will continue.",
18684
+ "connect.warn.cursor_patch_failed": (_params) => "OpenMeld couldn't save your new place. Live updates will continue.",
18685
+ "connect.warn.catchup_failed": (_params) => "OpenMeld couldn't load every recent message. Live updates will continue.",
18686
+ "connect.warn.catchup_live_buffer_overflow": (_params) => "OpenMeld couldn't load every recent message. Live updates will continue, but your place won't be saved in this session.",
18687
+ "connect.warn.cursor_sync_paused": () => "Live updates will continue, but OpenMeld won't save your place in this session.",
18688
+ "connect.warn.meta_fetch_failed": (_params) => "OpenMeld couldn't load this Space's details.",
18689
+ "connect.warn.members_fetch_failed": (_params) => "OpenMeld couldn't load this Space's members.",
18690
+ "connect.warn.profile_space_history_sync_failed": (_params) => "OpenMeld couldn't save this Space to your recent history.",
18706
18691
  "connect.closed": () => "Connection closed.",
18707
- "connect.closed_with_code_reason": (params) => `closed code=${String(params?.code ?? "")}${formatCodeLabelSuffix(params?.codeLabel)} reason=${String(params?.reason ?? "")}${formatHintSuffix(params?.hint)}`,
18708
- "connect.error": (params) => `error: ${String(params?.error ?? "unknown")}${formatHintSuffix(params?.hint)}`,
18709
- "connect.error.space_not_found": (params) => `Space not found: ${String(params?.space ?? "unknown")} (you can only join existing spaces; create one first with \`openmeld space create --name <name> --visibility private\`).`,
18692
+ "connect.closed_with_code_reason": (params) => `The connection closed.${formatHumanHintSentence(params?.hint)}`,
18693
+ "connect.error": (params) => formatHumanConnectError(params),
18694
+ "connect.error.space_not_found": (_params) => `OpenMeld couldn't find that Space. Check the Space ID, then try again.`,
18710
18695
  "connect.closing": (params) => `Closing the connection (${String(params?.why ?? "")})...`,
18711
18696
  "connect.watch_ready": () => "Watching the stream. Press Ctrl+C to quit.",
18712
18697
  "connect.connected_no_stdio": (params) => formatConnectedNoStdioMessage("human", params),
@@ -18847,6 +18832,20 @@ function formatHintSuffix(hint) {
18847
18832
  if (normalized.length === 0) return "";
18848
18833
  return ` (hint: ${normalized})`;
18849
18834
  }
18835
+ function formatHumanConnectError(params) {
18836
+ const error = String(params?.error ?? "").toLowerCase();
18837
+ let summary = "OpenMeld lost the connection.";
18838
+ if (error.includes("last message may not have been confirmed")) summary = "OpenMeld lost the connection before confirming your message.";
18839
+ else if (error.includes("couldn't send the message")) summary = "OpenMeld couldn't send your message.";
18840
+ return `${summary}${formatHumanHintSentence(params?.hint)}`;
18841
+ }
18842
+ function formatHumanHintSentence(hint) {
18843
+ if (typeof hint !== "string") return "";
18844
+ const normalized = hint.trim();
18845
+ if (!normalized) return "";
18846
+ const sentence = `${normalized.slice(0, 1).toUpperCase()}${normalized.slice(1)}`;
18847
+ return ` ${SENTENCE_END_PATTERN.test(sentence) ? sentence : `${sentence}.`}`;
18848
+ }
18850
18849
  //#endregion
18851
18850
  //#region src/runtime/presenter/agent.ts
18852
18851
  function createAgentPresenter(input) {
@@ -18959,6 +18958,72 @@ function createPresenter(context) {
18959
18958
  return context.resolvedView === "agent" ? createAgentPresenter({ context }) : createHumanPresenter({ context });
18960
18959
  }
18961
18960
  //#endregion
18961
+ //#region src/ui/human-error-card.ts
18962
+ const TECHNICAL_DETAIL_MARKERS = [
18963
+ /\s+Detail:/iu,
18964
+ /\s+Details:/iu,
18965
+ /\s+For diagnostics[,.:]?/iu,
18966
+ /\s+Diagnostic evidence:/iu,
18967
+ /\s+Last network error:/iu,
18968
+ /\s+Support code:/iu
18969
+ ];
18970
+ const ACTION_SENTENCE_RE = /^(?:After\b|Check\b|Choose\b|Close\b|Connect\b|Contact\b|Continue\b|Copy\b|Finish\b|Free\b|Go\b|Make sure\b|Open\b|Reconnect\b|Remove\b|Restart\b|Run\b|Select\b|Sign in\b|Start\b|Stop\b|Try\b|Turn off\b|Turn on\b|Update\b|Use\b|Wait\b)/iu;
18971
+ const SENTENCE_BOUNDARY_RE = /(?<=[.!?])\s+(?=[A-Z`])/u;
18972
+ function buildHumanErrorCopy(message) {
18973
+ const sentences = splitSentences(stripTechnicalErrorDetail(message));
18974
+ return {
18975
+ summary: sentences[0] ?? "OpenMeld couldn't finish that.",
18976
+ nextStep: sentences.slice(1).find((sentence) => ACTION_SENTENCE_RE.test(sentence)) ?? null
18977
+ };
18978
+ }
18979
+ function renderHumanErrorCard(input) {
18980
+ const copy = buildHumanErrorCopy(input.message);
18981
+ const explicitNextStep = input.nextStep ? buildHumanErrorCopy(input.nextStep) : null;
18982
+ renderInfoCard({
18983
+ codePrefix: input.codePrefix,
18984
+ compact: true,
18985
+ minContentWidth: 48,
18986
+ presenter: input.presenter,
18987
+ rows: buildHumanErrorRows({
18988
+ ...copy,
18989
+ nextStep: explicitNextStep ? explicitNextStep.nextStep ?? explicitNextStep.summary : copy.nextStep
18990
+ }),
18991
+ sanitize: true,
18992
+ title: input.title ?? "OpenMeld couldn't finish"
18993
+ });
18994
+ }
18995
+ function renderHumanTextErrorCard(input) {
18996
+ const copy = buildHumanErrorCopy(input.message);
18997
+ renderTextInfoCard({
18998
+ compact: true,
18999
+ emitLine: input.emitLine,
19000
+ minContentWidth: 48,
19001
+ rows: buildHumanErrorRows(copy),
19002
+ sanitize: true,
19003
+ title: input.title ?? "OpenMeld couldn't finish"
19004
+ });
19005
+ }
19006
+ function buildHumanErrorRows(copy) {
19007
+ return [{
19008
+ label: "What happened",
19009
+ value: copy.summary
19010
+ }, ...copy.nextStep ? [{
19011
+ label: "Next",
19012
+ value: copy.nextStep
19013
+ }] : []];
19014
+ }
19015
+ function stripTechnicalErrorDetail(message) {
19016
+ let end = message.length;
19017
+ for (const marker of TECHNICAL_DETAIL_MARKERS) {
19018
+ const index = message.search(marker);
19019
+ if (index >= 0) end = Math.min(end, index);
19020
+ }
19021
+ return message.slice(0, end).replaceAll(/\s+/gu, " ").trim();
19022
+ }
19023
+ function splitSentences(message) {
19024
+ return message.split(SENTENCE_BOUNDARY_RE).map((sentence) => sentence.trim()).filter(Boolean);
19025
+ }
19026
+ //#endregion
18962
19027
  //#region src/local-service/lifecycle/current-daemon-version.ts
18963
19028
  function resolveCurrentDaemonExpectedVersion() {
18964
19029
  return package_default.version;
@@ -37074,9 +37139,9 @@ function createModelCatalogReadSession(input) {
37074
37139
  async function readModelCatalogOnce(baseUrl) {
37075
37140
  try {
37076
37141
  const [apiClient, baseUrlModule, clientFoundationModule] = await Promise.all([
37077
- import("./dist-DtEdipqO.js").then((n) => n.w),
37142
+ import("./dist-Cm4BbP8Y.js").then((n) => n.w),
37078
37143
  import("./base-url-Cv9x5Es9.js").then((n) => n.n),
37079
- import("./api-client-foundation-jjwUa25Q.js").then((n) => n.t)
37144
+ import("./api-client-foundation-Chryr5BZ.js").then((n) => n.t)
37080
37145
  ]);
37081
37146
  if (typeof apiClient.createConfigApi !== "function") throw new Error("config api client is unavailable");
37082
37147
  const resolvedBaseUrl = baseUrl ?? await baseUrlModule.resolveBaseUrl();
@@ -41133,9 +41198,7 @@ function buildDaemonServiceRefreshPromptMessage() {
41133
41198
  return "Reconnect OpenMeld Service before this computer can receive local Wake work. OpenMeld can reconnect it for you now.";
41134
41199
  }
41135
41200
  function buildDaemonServiceRefreshNextStep() {
41136
- const repairCommand = formatDaemonServiceRefreshCommand();
41137
- const statusCommand = formatDaemonServiceStatusCommand();
41138
- return `${DAEMON_SERVICE_REFRESH_SUMMARY} Run \`${repairCommand}\`. If Wake or readiness still looks wrong after setup, run \`${statusCommand}\`.`;
41201
+ return `Run \`${formatDaemonServiceRefreshCommand()}\` to repair OpenMeld Service.`;
41139
41202
  }
41140
41203
  function buildDaemonServiceStatusReadOnlyDetail() {
41141
41204
  return "Status is read-only. It does not change OpenMeld Service.";
@@ -41167,10 +41230,6 @@ function formatDaemonServiceUpdateCommand() {
41167
41230
  const [updateCommand] = formatOpenMeldCliCommands([DAEMON_SERVICE_SETUP_COMMAND]);
41168
41231
  return updateCommand;
41169
41232
  }
41170
- function formatDaemonServiceStatusCommand() {
41171
- const [statusCommand] = formatOpenMeldCliCommands(["openmeld service status"]);
41172
- return statusCommand;
41173
- }
41174
41233
  //#endregion
41175
41234
  //#region src/system/service-readiness-resolver.ts
41176
41235
  const SERVICE_LOCK_ANOMALY_CODES = /* @__PURE__ */ new Set([
@@ -42472,6 +42531,7 @@ async function executeDaemonServiceLifecycle(input) {
42472
42531
  input.state.failureStage = "install_bundle";
42473
42532
  await input.emitPhase("install_bundle");
42474
42533
  const preparedBundle = input.preparedBundle;
42534
+ await rotateDaemonControlPlaneTokenIfExpired();
42475
42535
  await activateDaemonServiceBundle(preparedBundle);
42476
42536
  await installDaemon({
42477
42537
  daemonVersion: input.expectedVersion,
@@ -56070,6 +56130,7 @@ function resolveProviderConversationProofTimeoutMs(runtimeTimeoutMs) {
56070
56130
  const MAX_CONTROL_PLANE_REQUEST_SIZE_BYTES = 64 * 1024;
56071
56131
  async function startLocalDaemonControlPlaneServer(input) {
56072
56132
  const endpoint = input.endpoint ?? resolveDaemonControlPlaneEndpoint();
56133
+ const resolveExpectedToken = buildExpectedTokenResolver(input);
56073
56134
  if (process.platform !== "win32") await rm(endpoint, { force: true }).catch(() => void 0);
56074
56135
  const server = createServer((socket) => {
56075
56136
  let buffer = "";
@@ -56077,10 +56138,10 @@ async function startLocalDaemonControlPlaneServer(input) {
56077
56138
  const respond = (request) => {
56078
56139
  const requestId = readOptionalRequestId(request);
56079
56140
  buildResponse({
56080
- expectedToken: input.expectedToken,
56081
56141
  getContext: input.getContext,
56082
56142
  request,
56083
- requestId
56143
+ requestId,
56144
+ resolveExpectedToken
56084
56145
  }).then((response) => {
56085
56146
  socket.end(`${JSON.stringify(response)}\n`);
56086
56147
  });
@@ -56145,11 +56206,16 @@ async function startLocalDaemonControlPlaneServer(input) {
56145
56206
  }
56146
56207
  };
56147
56208
  }
56209
+ function buildExpectedTokenResolver(input) {
56210
+ if (input.resolveExpectedToken) return input.resolveExpectedToken;
56211
+ return () => input.expectedToken;
56212
+ }
56148
56213
  async function buildResponse(input) {
56149
56214
  try {
56215
+ const expectedToken = await input.resolveExpectedToken();
56150
56216
  return await buildAuthenticatedControlPlaneResponse({
56151
56217
  context: await input.getContext(),
56152
- expectedToken: input.expectedToken,
56218
+ expectedToken,
56153
56219
  request: input.request
56154
56220
  });
56155
56221
  } catch (error) {
@@ -62491,52 +62557,28 @@ function shouldOfferDaemonStartDecision(runtimeStatus) {
62491
62557
  }
62492
62558
  function buildDaemonStartDeferredCard() {
62493
62559
  return {
62494
- title: "OpenMeld Service Is Off",
62495
- rows: [
62496
- {
62497
- label: " Status",
62498
- value: "off for now"
62499
- },
62500
- {
62501
- label: "📡 Local Service Link",
62502
- value: "Off — OpenMeld Service is not connected for local Wake work."
62503
- },
62504
- {
62505
- label: "🔧 Next",
62506
- value: `Start later with \`${formatOpenMeldCliCommand(DAEMON_START_RUN_COMMAND)}\`.`
62507
- }
62508
- ]
62560
+ title: "OpenMeld Service is off",
62561
+ rows: [{
62562
+ label: "What happened",
62563
+ value: "OpenMeld Service isn't running."
62564
+ }, {
62565
+ label: "Next",
62566
+ value: `Start later with \`${formatOpenMeldCliCommand(DAEMON_START_RUN_COMMAND)}\`.`
62567
+ }]
62509
62568
  };
62510
62569
  }
62511
62570
  function buildDaemonStartNeedsAttentionCard(input) {
62571
+ const summaryCopy = buildHumanErrorCopy(input.summary);
62572
+ const explicitNextStep = input.nextStep ? buildHumanErrorCopy(input.nextStep).summary : null;
62512
62573
  return {
62513
- title: "⚠️ OpenMeld Service Needs Attention",
62514
- rows: [
62515
- {
62516
- label: "❌ Status",
62517
- value: "not running"
62518
- },
62519
- ...input.autoRepairAttempted ? [{
62520
- label: "🩹 Automatic Repair",
62521
- value: "OpenMeld tried one automatic repair automatically, but the service still needs help."
62522
- }] : [],
62523
- {
62524
- label: "📝 Found",
62525
- value: input.summary
62526
- },
62527
- ...input.detail ? [{
62528
- label: "🧾 Last local detail",
62529
- value: input.detail
62530
- }] : [],
62531
- {
62532
- label: "📡 Local Service Link",
62533
- value: "Off — OpenMeld Service is not connected for local Wake work."
62534
- },
62535
- {
62536
- label: "🔧 Next",
62537
- value: input.nextStep ?? buildDaemonServiceRefreshNextStep()
62538
- }
62539
- ]
62574
+ title: "OpenMeld Service couldn't start",
62575
+ rows: [{
62576
+ label: "What happened",
62577
+ value: summaryCopy.summary
62578
+ }, {
62579
+ label: "Next",
62580
+ value: explicitNextStep ?? summaryCopy.nextStep ?? buildDaemonServiceRefreshNextStep()
62581
+ }]
62540
62582
  };
62541
62583
  }
62542
62584
  function getDaemonStartStartedTitle() {
@@ -62617,14 +62659,12 @@ function buildSystemServiceStartupFailureReport(input) {
62617
62659
  }
62618
62660
  function buildSystemServiceStartupFailureReportFromVerdict(verdict, options) {
62619
62661
  const autoRepairAttempted = options?.autoRepairAttempted;
62620
- const { message, detail, jobDiagnostics, localMachineIssue } = verdict;
62621
- const localLogPath = getDaemonSystemServiceLogPath();
62662
+ const { message, jobDiagnostics, localMachineIssue } = verdict;
62622
62663
  if (localMachineIssue) {
62623
62664
  const card = buildDaemonStartNeedsAttentionCard({
62624
62665
  summary: localMachineIssue.summary,
62625
62666
  nextStep: localMachineIssue.primaryAction ?? "Open diagnostics.",
62626
- autoRepairAttempted,
62627
- detail: detail ?? localMachineIssue.diagnostics.detail ?? (jobDiagnostics ? formatDaemonServiceJobDiagnosticsEvidence(jobDiagnostics) : void 0)
62667
+ autoRepairAttempted
62628
62668
  });
62629
62669
  return {
62630
62670
  title: card.title,
@@ -62633,12 +62673,11 @@ function buildSystemServiceStartupFailureReportFromVerdict(verdict, options) {
62633
62673
  };
62634
62674
  }
62635
62675
  if (jobDiagnostics && isDaemonServiceBackgroundExecutionBlocked(jobDiagnostics)) {
62636
- const summary = "macOS is blocking the OpenMeld Service background item, so OpenMeld Service never launched.";
62676
+ const summary = "macOS didn't start OpenMeld Service.";
62637
62677
  const card = buildDaemonStartNeedsAttentionCard({
62638
62678
  summary,
62639
- nextStep: formatInlineOpenMeldCliCommands("Path A (recommended): open System Settings > General > Login Items & Extensions, enable the OpenMeld background item, then run `openmeld service start` again. Power users can audit Background Task Management with `sfltool dumpbtm`. Path B: if you would rather not change System Settings, open a separate terminal window, run `openmeld service start --mode foreground`, and keep that window open — but note OpenMeld Service stops the moment you close that window or restart your Mac, so Wake will not be received."),
62640
- autoRepairAttempted,
62641
- detail: detail ?? formatDaemonServiceJobDiagnosticsEvidence(jobDiagnostics)
62679
+ nextStep: formatInlineOpenMeldCliCommands("Open System Settings > General > Login Items & Extensions, turn on OpenMeld, then run `openmeld service start` again."),
62680
+ autoRepairAttempted
62642
62681
  });
62643
62682
  return {
62644
62683
  title: card.title,
@@ -62648,12 +62687,11 @@ function buildSystemServiceStartupFailureReportFromVerdict(verdict, options) {
62648
62687
  }
62649
62688
  const crashExitCode = jobDiagnostics ? readDaemonServiceJobCrashExitCode(jobDiagnostics) : null;
62650
62689
  if (jobDiagnostics && crashExitCode !== null) {
62651
- const summary = `OpenMeld Service launched but keeps exiting (launchd reports ${jobDiagnostics.runs} runs, last exit code ${crashExitCode}).`;
62690
+ const summary = "OpenMeld Service keeps stopping after it starts.";
62652
62691
  const card = buildDaemonStartNeedsAttentionCard({
62653
62692
  summary,
62654
- nextStep: formatInlineOpenMeldCliCommands(`Run \`openmeld service start --mode foreground\` to see the live error. The latest local service log is at \`${localLogPath}\`. If it still fails, run \`openmeld service repair\`.`),
62655
- autoRepairAttempted,
62656
- detail: detail ?? formatDaemonServiceJobDiagnosticsEvidence(jobDiagnostics)
62693
+ nextStep: formatInlineOpenMeldCliCommands("Run `openmeld service start --mode foreground` to see what stopped it."),
62694
+ autoRepairAttempted
62657
62695
  });
62658
62696
  return {
62659
62697
  title: card.title,
@@ -62664,9 +62702,8 @@ function buildSystemServiceStartupFailureReportFromVerdict(verdict, options) {
62664
62702
  if (isLaunchdBootstrapIosError$1(message)) {
62665
62703
  const card = buildDaemonStartNeedsAttentionCard({
62666
62704
  summary: "OpenMeld could not finish starting OpenMeld Service on this Mac.",
62667
- nextStep: formatInlineOpenMeldCliCommands(`Run \`launchctl enable gui/$(id -u)/${getDaemonServiceLaunchdLabel()}\`, then retry with \`openmeld service start\`. The latest local service log is at \`${localLogPath}\`. If it still fails, run \`openmeld service repair\`.`),
62668
- autoRepairAttempted,
62669
- detail: detail ?? void 0
62705
+ nextStep: formatInlineOpenMeldCliCommands(`Run \`launchctl enable gui/$(id -u)/${getDaemonServiceLaunchdLabel()}\`, then run \`openmeld service start\` again.`),
62706
+ autoRepairAttempted
62670
62707
  });
62671
62708
  return {
62672
62709
  title: card.title,
@@ -62677,9 +62714,8 @@ function buildSystemServiceStartupFailureReportFromVerdict(verdict, options) {
62677
62714
  if (isPermissionOrAuthorizationError(message)) {
62678
62715
  const card = buildDaemonStartNeedsAttentionCard({
62679
62716
  summary: "OpenMeld needs local OS permission before it can start OpenMeld Service.",
62680
- nextStep: formatInlineOpenMeldCliCommands(`Approve the local permission prompt or OS setting, then run \`openmeld service start\` again. The latest local service log is at \`${localLogPath}\`.`),
62681
- autoRepairAttempted,
62682
- detail: detail ?? void 0
62717
+ nextStep: formatInlineOpenMeldCliCommands("Approve the local permission prompt, then run `openmeld service start` again."),
62718
+ autoRepairAttempted
62683
62719
  });
62684
62720
  return {
62685
62721
  title: card.title,
@@ -62689,9 +62725,8 @@ function buildSystemServiceStartupFailureReportFromVerdict(verdict, options) {
62689
62725
  }
62690
62726
  const card = buildDaemonStartNeedsAttentionCard({
62691
62727
  summary: "OpenMeld could not finish starting OpenMeld Service.",
62692
- nextStep: formatInlineOpenMeldCliCommands(`Run \`openmeld service start --mode foreground\` to see the live error. The latest local service log is at \`${localLogPath}\`. If it still fails, run \`openmeld service repair\`.`),
62693
- autoRepairAttempted,
62694
- detail: detail ?? void 0
62728
+ nextStep: formatInlineOpenMeldCliCommands("Run `openmeld service start --mode foreground` to see what stopped it."),
62729
+ autoRepairAttempted
62695
62730
  });
62696
62731
  return {
62697
62732
  title: card.title,
@@ -63119,11 +63154,11 @@ async function runDaemonServiceParticipationRefresh(input) {
63119
63154
  });
63120
63155
  if (!(refreshOutcome.ok && (refreshOutcome.result === "already_healthy" || refreshOutcome.result === "completed") && refreshOutcome.serviceState === "running")) throw new Error(`OpenMeld Service refresh did not complete: ${refreshOutcome.result}`);
63121
63156
  } catch (error) {
63122
- renderDaemonStartNeedsAttention({
63123
- presenter: input.input.presenter,
63157
+ renderRefreshFailureIfVisible({
63124
63158
  codePrefix: input.codePrefix,
63159
+ presenter: input.input.presenter,
63125
63160
  summary: "OpenMeld Service was repaired, but it is not running yet. Local Wake work will keep waiting until OpenMeld Service starts. Run `openmeld service start`.",
63126
- autoRepairAttempted: true
63161
+ suppressed: input.input.suppressRefreshHumanResultCard === true
63127
63162
  });
63128
63163
  return {
63129
63164
  errorMessage: toErrorMessage$31(error),
@@ -63145,6 +63180,15 @@ async function runDaemonServiceParticipationRefresh(input) {
63145
63180
  });
63146
63181
  return { status: "needs_attention" };
63147
63182
  }
63183
+ function renderRefreshFailureIfVisible(input) {
63184
+ if (input.suppressed) return;
63185
+ renderDaemonStartNeedsAttention({
63186
+ autoRepairAttempted: true,
63187
+ codePrefix: input.codePrefix,
63188
+ presenter: input.presenter,
63189
+ summary: input.summary
63190
+ });
63191
+ }
63148
63192
  function shouldForceDaemonServiceReinstall(input) {
63149
63193
  return input.accountIssue !== void 0 || input.forceRefresh === true;
63150
63194
  }
@@ -72893,10 +72937,9 @@ const runDaemonServiceLoop = async (input) => {
72893
72937
  }
72894
72938
  });
72895
72939
  const controlPlaneDaemonVersion = daemonServiceContract?.daemonVersion ?? "unknown";
72896
- const controlPlaneToken = await ensureDaemonControlPlaneToken();
72897
72940
  let requestAgentActivitySync = null;
72898
72941
  const controlPlaneServer = await startLocalDaemonControlPlaneServer({
72899
- expectedToken: controlPlaneToken,
72942
+ resolveExpectedToken: async () => await ensureDaemonControlPlaneToken(),
72900
72943
  getContext: async () => ({
72901
72944
  healthPayload: {
72902
72945
  checkedAt: nowIsoString(),
@@ -76072,18 +76115,9 @@ function buildDaemonReinstallFailureMessage(input) {
76072
76115
  const actionCommand = formatDaemonServiceMaintenanceCommand(input.action);
76073
76116
  const controlEndpointMissing = input.failureStage === "stop_or_drain" && input.errorCode === "daemon.control.endpoint_missing";
76074
76117
  if (input.resolvedView === "human" && input.includeDiagnosticDetails !== true) {
76075
- if (controlEndpointMissing) return formatInlineOpenMeldCliCommands([
76076
- `OpenMeld Service ${actionLabel} could not safely stop the existing Service because its control connection is missing.`,
76077
- "Run `openmeld service status` to check for local Agent work.",
76078
- `If none is running, run \`${actionCommand} --force\`.`,
76079
- "The force option stops the old Service process."
76080
- ].join(" "));
76081
- if (input.errorMessage.includes("test fixture identity")) return formatInlineOpenMeldCliCommands([
76082
- `OpenMeld Service ${actionLabel} failed because this production lane contains old test setup identity that cannot be reused.`,
76083
- "Rerun the setup command from OpenMeld Web so OpenMeld can write a fresh production service contract.",
76084
- "For diagnostics, run `openmeld service status --view agent`."
76085
- ].join(" "));
76086
- return formatInlineOpenMeldCliCommands(`OpenMeld Service ${actionLabel} failed. Run \`${actionCommand}\`. For diagnostics, run \`openmeld service status --view agent\`.`);
76118
+ if (controlEndpointMissing) return formatInlineOpenMeldCliCommands(`OpenMeld couldn't safely stop the running Service. After local Agent work finishes, run \`${actionCommand} --force\`.`);
76119
+ if (input.errorMessage.includes("test fixture identity")) return formatInlineOpenMeldCliCommands("OpenMeld couldn't use old setup data on this computer. Copy a new setup command from OpenMeld Web and run it.");
76120
+ return formatInlineOpenMeldCliCommands(`OpenMeld couldn't ${actionLabel} OpenMeld Service. Run \`${actionCommand}\` again.`);
76087
76121
  }
76088
76122
  const failureContext = formatDaemonFailureContextText({
76089
76123
  backupDataPath: input.backupDataPath,
@@ -76153,7 +76187,7 @@ function buildDaemonReinstallCurrentStateText(outcome, action) {
76153
76187
  switch (outcome.result) {
76154
76188
  case "already_healthy": return outcome.serviceState === "running" ? "OpenMeld Service is running in the background for this lane." : "OpenMeld Service is healthy and remains stopped because that is the saved state for this lane.";
76155
76189
  case "completed": return outcome.serviceState === "running" ? "OpenMeld Service is running in the background for this lane." : "OpenMeld Service is installed, but it is not running on this computer.";
76156
- case "stopped_safe": return formatInlineOpenMeldCliCommands("OpenMeld Service is installed at the current version and safely stopped for this lane. For diagnostics, run `openmeld service status --view agent`.");
76190
+ case "stopped_safe": return "OpenMeld Service is installed and stopped.";
76157
76191
  case "in_progress": {
76158
76192
  const details = [outcome.heldBy, outcome.startedAt].filter(Boolean);
76159
76193
  return details.length > 0 ? details.join(" • ") : `Another OpenMeld process is currently ${actionGerund} OpenMeld Service on this device.`;
@@ -76161,7 +76195,7 @@ function buildDaemonReinstallCurrentStateText(outcome, action) {
76161
76195
  case "downgrade_blocked": return `Installed OpenMeld Service: v${outcome.installedVersion}. This CLI requested: v${outcome.requestedVersion}.`;
76162
76196
  case "drain_timeout": return `The existing OpenMeld Service was left in place, and ${formatDaemonServiceMaintenanceActionLabel(action)} did not continue.`;
76163
76197
  case "start_blocked": return buildDaemonReinstallStartBlockedCurrentStateText(outcome);
76164
- case "start_failed": return formatInlineOpenMeldCliCommands("OpenMeld Service is installed, but it is not running for this lane. For diagnostics, run `openmeld service status --view agent`.");
76198
+ case "start_failed": return "OpenMeld Service is installed, but it isn't running.";
76165
76199
  default: throw new Error(`Unexpected daemon reinstall outcome while building current state: ${String(outcome)}`);
76166
76200
  }
76167
76201
  }
@@ -76345,11 +76379,8 @@ function summarizeDaemonReinstallJournalResult(outcome) {
76345
76379
  }
76346
76380
  };
76347
76381
  }
76348
- function buildDaemonReinstallUnexpectedStartSummary(error, action = "repair") {
76349
- const actionLabel = formatDaemonServiceMaintenanceActionLabel(action);
76350
- const detail = sanitizeSystemServiceErrorMessage$1(toErrorMessage$41(error));
76351
- if (!detail) return `OpenMeld hit a local start error right after service ${actionLabel}.`;
76352
- return `OpenMeld hit a local start error right after service ${actionLabel}: ${detail}`;
76382
+ function buildDaemonReinstallUnexpectedStartSummary(_error, action = "repair") {
76383
+ return `OpenMeld Service couldn't start after the ${formatDaemonServiceMaintenanceActionLabel(action)}.`;
76353
76384
  }
76354
76385
  function buildDaemonReinstallUnexpectedStartNextStep(action = "repair") {
76355
76386
  return formatInlineOpenMeldCliCommands(`Run \`openmeld service start --mode foreground\` to see the live error. The latest local service log is at \`${getDaemonSystemServiceLogPath()}\`. If it still fails, run \`${formatDaemonServiceMaintenanceCommand(action)}\` again.`);
@@ -88866,8 +88897,8 @@ function rethrowCanonicalMentionSnapshotLoadFailure(error) {
88866
88897
  throw new Error(buildMembersSnapshotLoadFailureMessage(error), { cause: error });
88867
88898
  }
88868
88899
  function buildMembersSnapshotLoadFailureMessage(error) {
88869
- const prefix = "Cannot validate mention targets right now because current space members could not be loaded.";
88870
- const plainTextHint = "If you meant to send @Name(wake) or @Name(reference) as literal text, rerun with --plain.";
88900
+ const prefix = "OpenMeld couldn't check who your mentions refer to.";
88901
+ const plainTextHint = "Use --plain if you want to send the text without mentioning anyone.";
88871
88902
  const failure = toStructuredApiClientFailure(error);
88872
88903
  const details = [];
88873
88904
  if (failure.message.trim().length > 0) details.push(failure.message.trim());
@@ -102476,49 +102507,25 @@ function maybeRenderHumanSpaceCreateFailureCard(input) {
102476
102507
  });
102477
102508
  const parsed = parseHttpErrorMessage$2(input.error);
102478
102509
  if (!parsed) return false;
102479
- const payload = safeJsonParse$3(parsed.body);
102480
102510
  const authenticationFailure = resolveSpaceCreateAuthenticationFailureFromHttpError({
102481
102511
  parsed,
102482
- payload,
102512
+ payload: safeJsonParse$3(parsed.body),
102483
102513
  gatewayUrl: input.baseUrl
102484
102514
  });
102485
102515
  if (authenticationFailure) return renderHumanSpaceCreatePreflightBlockedCard({
102486
102516
  presenter: input.presenter,
102487
102517
  error: authenticationFailure
102488
102518
  });
102489
- const requestId = readHttpRequestId(payload);
102490
102519
  const guidance = resolveSpaceFailureGuidance(input.error);
102491
- const rows = [{
102492
- label: "Reason",
102493
- value: resolveHumanSpaceCreateFailureReason(parsed)
102494
- }];
102495
- if (guidance) rows.push({
102496
- label: "Next Step",
102497
- value: guidance.summary
102498
- });
102499
- rows.push({
102500
- label: "HTTP Status",
102501
- value: String(parsed.status)
102502
- });
102503
- if (parsed.code.length > 0) rows.push({
102504
- label: "Error Code",
102505
- value: parsed.code
102506
- });
102507
- if (requestId.length > 0) rows.push({
102508
- label: "Request ID",
102509
- value: requestId
102510
- });
102511
- if (parsed.message.length > 0) rows.push({
102512
- label: "Details",
102513
- value: parsed.message
102514
- });
102515
- renderInfoCard({
102520
+ let nextStep = "Check the Space details, then try again.";
102521
+ if (parsed.status >= 500) nextStep = "Try again in a moment.";
102522
+ if (guidance?.steps[0]) nextStep = `Run ${guidance.steps[0]}.`;
102523
+ renderHumanErrorCard({
102524
+ message: resolveHumanSpaceCreateFailureReason(parsed),
102525
+ nextStep,
102516
102526
  presenter: input.presenter,
102517
- title: "🚫 Space Create Failed",
102518
- codePrefix: "space.create.error.card",
102519
- rows,
102520
- sanitize: true,
102521
- minContentWidth: 76
102527
+ title: "Space couldn't be created",
102528
+ codePrefix: "space.create.error.card"
102522
102529
  });
102523
102530
  return true;
102524
102531
  }
@@ -102559,54 +102566,15 @@ function renderHumanSpaceCreatePreflightBlockedCard(input) {
102559
102566
  });
102560
102567
  return true;
102561
102568
  }
102562
- const rows = [{
102563
- label: "Reason",
102564
- value: input.error.reasonText
102565
- }, {
102566
- label: "Next Step",
102567
- value: input.error.nextStep
102568
- }];
102569
- appendSpaceCreatePreflightContextRows(rows, input.error);
102570
- appendSpaceCreatePreflightTechnicalRows(rows, input.error);
102571
- renderInfoCard({
102569
+ renderHumanErrorCard({
102570
+ message: input.error.reasonText,
102571
+ nextStep: input.error.nextStep,
102572
102572
  presenter: input.presenter,
102573
- title: "🚫 Space Create Blocked",
102574
- codePrefix: "space.create.preflight.card",
102575
- rows,
102576
- sanitize: true,
102577
- minContentWidth: 76
102573
+ title: "Space couldn't be created",
102574
+ codePrefix: "space.create.preflight.card"
102578
102575
  });
102579
102576
  return true;
102580
102577
  }
102581
- function appendSpaceCreatePreflightContextRows(rows, error) {
102582
- if (error.blockReason !== "auth_mismatch") return;
102583
- if (error.authBaseUrl) rows.push({
102584
- label: "Signed-In Auth",
102585
- value: error.authBaseUrl
102586
- });
102587
- rows.push({
102588
- label: "Gateway",
102589
- value: error.gatewayUrl
102590
- });
102591
- }
102592
- function appendSpaceCreatePreflightTechnicalRows(rows, error) {
102593
- if (error.httpStatus !== null) rows.push({
102594
- label: "HTTP Status",
102595
- value: String(error.httpStatus)
102596
- });
102597
- if (error.errorCode) rows.push({
102598
- label: "Error Code",
102599
- value: error.errorCode
102600
- });
102601
- if (error.requestId) rows.push({
102602
- label: "Request ID",
102603
- value: error.requestId
102604
- });
102605
- if (error.detailMessage) rows.push({
102606
- label: "Details",
102607
- value: error.detailMessage
102608
- });
102609
- }
102610
102578
  function resolveSpaceServiceUnavailableSummary() {
102611
102579
  return resolveSpaceFailureGuidance("upstream_unreachable")?.summary ?? "OpenMeld Cloud service is temporarily unavailable. Try again after OpenMeld is reachable.";
102612
102580
  }
@@ -104658,34 +104626,12 @@ function renderSpaceDeleteBatchFailureSummary(input) {
104658
104626
  const reason = resolveDeleteBatchFailureReason(input.failures);
104659
104627
  const failedTargets = summarizeFailedDeleteTargets(input.failures);
104660
104628
  if (input.resolvedView === "human") {
104661
- renderInfoCard({
104629
+ renderHumanErrorCard({
104630
+ message: `OpenMeld deleted ${String(input.deletedCount)} of ${String(input.totalCount)} Spaces, but couldn't delete ${failedTargets}: ${reason}`,
104631
+ nextStep: input.deletedCount > 0 ? "Try deleting those Spaces again." : "Try again in a moment.",
104662
104632
  presenter: input.presenter,
104663
- title: input.deletedCount > 0 ? "⚠️ Delete Partially Completed" : "🚫 Delete Failed",
104664
- codePrefix: "space.delete.batch_result",
104665
- rows: [
104666
- {
104667
- label: "Deleted",
104668
- value: `${String(input.deletedCount)} / ${String(input.totalCount)} space(s)`
104669
- },
104670
- {
104671
- label: "Not deleted",
104672
- value: `${String(failedCount)} space(s)`
104673
- },
104674
- {
104675
- label: "Reason",
104676
- value: reason
104677
- },
104678
- {
104679
- label: "Failed targets",
104680
- value: failedTargets
104681
- },
104682
- {
104683
- label: "Action",
104684
- value: input.deletedCount > 0 ? "Retry only the spaces that were not deleted." : "Retry in a moment."
104685
- }
104686
- ],
104687
- sanitize: true,
104688
- minContentWidth: 72
104633
+ title: input.deletedCount > 0 ? "Some Spaces weren't deleted" : "Spaces couldn't be deleted",
104634
+ codePrefix: "space.delete.batch_result"
104689
104635
  });
104690
104636
  return;
104691
104637
  }
@@ -106346,6 +106292,13 @@ function emitSpaceNoticeFailure(input) {
106346
106292
  if (input.noticeKind === "join") noticeLabel = input.failureCount === 1 ? "join notice" : "join notices";
106347
106293
  else if (input.failureCount === 1) noticeLabel = "removal notice";
106348
106294
  const message = input.firstFailure?.message ?? "unknown";
106295
+ if (input.presenter.view === "human") {
106296
+ input.presenter.line({
106297
+ code: input.summaryCode,
106298
+ text: `OpenMeld updated the Space members, but couldn't post ${String(input.failureCount)} ${noticeLabel}. The membership change is already saved.`
106299
+ });
106300
+ return;
106301
+ }
106349
106302
  input.presenter.line({
106350
106303
  code: input.summaryCode,
106351
106304
  text: `warn: failed to broadcast ${String(input.failureCount)} ${noticeLabel}: ${message}`,
@@ -106879,31 +106832,12 @@ function isSpaceDeleteOwnerRestrictionError(input) {
106879
106832
  return code === "space.human_confirmation_required" || message.includes("owner human confirmation") || message.includes("only owner human can delete") || message.includes("only space creator can delete");
106880
106833
  }
106881
106834
  function renderHumanSpaceDeleteBlockedCard(input) {
106882
- const spaceName = normalizeDisplayValue(input.target.name, "untitled-space");
106883
- renderInfoCard({
106835
+ renderHumanErrorCard({
106836
+ message: "You can only delete a Space created by this profile or by one of your own agents.",
106837
+ nextStep: "Switch to the profile that created the Space, then try again.",
106884
106838
  presenter: input.presenter,
106885
- title: "🚫 Delete Blocked",
106886
- codePrefix: "space.delete.blocked",
106887
- rows: [
106888
- {
106889
- label: "Space",
106890
- value: spaceName
106891
- },
106892
- {
106893
- label: "Space ID",
106894
- value: input.target.space
106895
- },
106896
- {
106897
- label: "Reason",
106898
- value: "This human profile can only delete its own spaces or your owned agent-created spaces."
106899
- },
106900
- {
106901
- label: "Try",
106902
- value: "Switch to the human creator profile, or choose an agent-created space your user owns."
106903
- }
106904
- ],
106905
- sanitize: true,
106906
- minContentWidth: 64
106839
+ title: "Space couldn't be deleted",
106840
+ codePrefix: "space.delete.blocked"
106907
106841
  });
106908
106842
  }
106909
106843
  function normalizeDeleteConfirmationValue(value) {
@@ -106948,6 +106882,6 @@ function isHumanInteractiveSpaceRuntime(runtime) {
106948
106882
  return runtime.resolvedView === "human" && canUseInteractivePrompts(runtime);
106949
106883
  }
106950
106884
  //#endregion
106951
- export { formatTransportModeDisplay as $, formatOpenMeldCliCommands as $a, compareSemver as $i, canUseInteractivePrompts as $n, normalizeCustomProfileWorkspacePath as $r, readRecentDaemonDispatchJournalEvents as $t, prepareAuthenticatedSpaceCommandContext as A, buildHumanAuthenticationCard as Aa, listAgentControllerPermissionModeOptions as Ai, assertNoRemovedCcSpaceAddressingSyntax as An, renderTextInfoCard as Ao, formatDualViewGuideForDisplay as Ar, readDaemonStartFailureLogTailLines as At, runAgents as B, requestLocalAgentActivitySync as Ba, resetCurrentCommandCheckState as Bi, promptSearchSelect as Bn, cliJsonSkillsShowEnvelopeSchema as Bo, resolveServiceReadinessFromServiceStatus as Br, writeInstalledLocalComponentsSnapshot as Bt, buildFormalSignalReadPayload as C, resolveOpenMeldProfile as Ca, ensureDaemonRuntimePaths as Ci, submitRuntimeAgentControllerReports as Cn, runIfAgentActivityBindingGenerationIsCurrent as Co, registerSkillsTargetSelectionOptions as Cr, buildProfileWorkspacePresentation as Ct, isSpaceCommandOutputHandledError as D, getSelectedOpenMeldProfileId as Da, createAgentExecutionStatusDisplayRows as Di, resolveLocalAgentControllerReportDecision as Dn, enqueueControllerTaskLifecycleEventWhileLocked as Do, registerBuiltinAgentSelectionOptions as Dr, createDelayedSpinner as Dt, parseEnvelope as E, clearSelectedOpenMeldProfileId as Ea, buildAgentControllerRef as Ei, resolveLocalAgentControllerLaunchability as En, canonicalizeLocalProjectPath as Eo, registerAuthLoginRequestOptions as Er, emitDaemonAgentOverview as Et, prepareLocalAgentReadiness as F, getProfileDefaultView as Fa, resolveEvidenceSyncHealth as Fi, buildSpaceRoundReadProjection as Fn, outLine as Fo, areAllowedActionsEquivalent as Fr, readGatewayJsonResponse as Ft, runAgentsCustomUpdate as G, AGENT_ACTIVITY_INTEGRATION_OWNER as Ga, readCurrentObservedDaemonRuntimeStatus as Gi, assertDispatchOwnedRuntimePublicWriteAllowed as Gn, package_default as Go, formatHumanReplyReadinessReason as Gr, runSkillsCheck as Gt, runAgentsCustomAdd as H, registerAgentActivityRoute as Ha, inspectDaemonServiceInventory as Hi, runInteractivePrompt as Hn, organizationJoinLinkErrorResponseSchema as Ho, resolveCurrentReplyReadinessSnapshot as Hr, runDaemonServiceParticipationGate as Ht, buildReplyReadinessGuidance as I, setProfileDefaultView as Ia, resolveNativeAgentControllerPermissionModeForController as Ii, buildUpdatesReplyWorkflowProjection as In, cliBinaryDeltaPatchSchema as Io, buildAgentFacingPublicationModeGuideLines as Ir, readGatewayTextResponse as It, runAgentsEnable as J, readAgentActivityIntegrationStatus as Ja, readDaemonServiceJobCrashExitCode as Ji, writeDispatchSpaceActionRecord as Jn, resolveOpenClawLocalDiagnosticsValue as Jr, runSkillsUninstall as Jt, runAgentsDetect as K, defaultManagedIntegrationPaths as Ka, getDaemonSystemServiceLogPath as Ki, readDispatchOwnedRuntimeGuard as Kn, mapAgentReplyReadinessToLegacyAutoReply as Kr, runSkillsEnsure as Kt, resolveHumanControllerDisplayName as L, LocalProjectConnectionError as La, finishCurrentCommandCheckScope as Li, createSpaceMemberIdentityIndex as Ln, cliJsonOutputEnvelopeSchema as Lo, canonicalizeAllowedActions as Lr, toStructuredGatewayFailure as Lt, resolveSpaceAccessLabel as M, resolveAuthenticationGuidance as Ma, resolveAgentControllerPermissionModeForController as Mi, buildDispatchResultReplyWorkflowProjection as Mn, emitCliJsonEnvelope as Mo, formatAgentOverviewPayload as Mr, createCliSpaceApi as Mt, emitSpaceAgentOverview as N, resolveAuthenticationGuidanceFromError as Na, resolveAgentExecutionStatus as Ni, buildSignalIndex as Nn, errLine as No, OPENMELD_AGENT_MENTAL_MODEL_LINES as Nr, fetchSpaceMeta as Nt, assertFullSignalIdArgument as O, setSelectedOpenMeldProfileId as Oa, getAgentControllerPermissionModeDisplayMetadata as Oi, inspectSpaceCacheFile as On, readControllerTaskLifecycleOutboxHealth as Oo, buildAgentOverviewFromContract as Or, shouldEmitAgentOverview as Ot, emitSpaceCliAgentOverview as P, resolveAuthenticationGuidanceFromMessage as Pa, resolveAgentProfileEditCapabilities as Pi, buildSignalMessageReadProjection as Pn, outJsonLine as Po, SPACE_CONTRACT_ALLOWED_ACTION_ORDER as Pr, updateSpaceMeta as Pt, runAgentsShow as Q, formatOpenMeldCliCommand as Qa, buildNextVersionState as Qi, formatDaemonServiceMissingRecommendation as Qn, ensureOpenMeldManagedProfileWorkspace as Qr, readRuntimeReportingHealthState as Qt, persistAgentTransportSelection as R, validateLocalProjectConnectionPath as Ra, getCurrentCommandCheckState as Ri, formatRemovedCcRelationMessage as Rn, cliJsonSkillsListEnvelopeSchema as Ro, runDaemonServiceFullAlignment as Rr, parseJsonResponse$1 as Rt, buildFormalDispatchResultReadPayload as S, primeOpenMeldProfilesSessionCache as Sa, readRecentDaemonLifecycleEvents as Si, submitRuntimeAgentControllerReport as Sn, removeProjectConnection as So, SPACE_ADD_MEMBERS_PROGRESS_HEARTBEAT_MS as Sr, runDaemonUninstall as St, formatHumanReadTargetList as T, alignSelectedOpenMeldProfileStorage as Ta, resolveOpenMeldEnvironmentTarget as Ti, resolveLocalAgentControllerBlockerReasonCodes as Tn, unbindProject as To, registerDaemonControlTargetOptions as Tr, reconcileCliVersionView as Tt, runAgentsCustomList as U, resolveAgentActivityRouteForPath as Ua, resolveVersionChangeDirection as Ui, assessCliUpdate as Un, revokeOrganizationJoinLinkResponseSchema as Uo, formatAgentReplyReadinessLabel as Ur, runDaemonStartDecisionPrompt as Ut, runAgentsConfig as V, isAgentActivityRouteRegistered as Va, startCurrentCommandCheckScope as Vi, isReturnKeypress as Vn, getOrganizationJoinLinkResponseSchema as Vo, resolveDaemonServiceFreshnessWarning as Vr, resolveDaemonServiceParticipationStatus as Vt, runAgentsCustomRemove as W, unregisterAgentActivityRoute as Wa, readCurrentDaemonRuntimeContext as Wi, isCliUpdateCheckApplicable as Wn, compareAgentControllerRefsForDisplay as Wo, formatDeviceReplyReadinessLabel as Wr, collectSkillsReadinessSnapshot as Wt, runAgentsManage as X, uninstallAgentActivityIntegrations as Xa, buildInstallSelfJsonPayload as Xi, resolveElapsedTimeMs as Xn, createModelCatalogReadSession as Xr, ensureLocalSkills as Xt, runAgentsList as Y, resolveAgentActivityDispatcherCommand as Ya, resolveDaemonServiceManager as Yi, formatElapsedTime as Yn, syncProfileWorkspaceState as Yr, runSkillsUpdate as Yt, runAgentsRepair as Z, formatInlineOpenMeldCliCommands as Za, performManagedInstall as Zi, formatDaemonServiceDowngradeBlockedRecommendation as Zn, resolveProfileWorkspaceRuntime as Zr, readBundledOpenMeldCliSkillDocumentByPath as Zt, emitHumanReadSignalsTextProjection as _, resolveOpenMeldProfileOrNull as _a, getSetupFlowCopy as _i, formatServiceParticipationReadinessLabel as _n, removeProjectOutbox as _o, createStartAuthenticationGuideError as _r, runDaemonRunAfterEntryChecks as _t, runSpaceDelete as a, isBinaryDistribution as aa, describeProfileWorkspacePathValidationFailure as ai, runAuthLogin as an, syncLocalAgentActivity as ao, createSpaceAddMembersGuideError as ar, renderOpenMeldHeader as at, loadSpaceSignalIndexOrNull as b, deleteOpenMeldProfile as ba, classifyDaemonServiceRunStartability as bi, computeRetryDelayMs as bn, listProjectConnectionsWithStatus as bo, getCommandHintsFromContract as br, runDaemonStop as bt, runSpaceLeave as c, toStartBackgroundHelperExecutionCompatibility as ca, resolveAgentProfilePrimaryAgentControllerReport as ci, runAuthStatus as cn, readAgentActivityContextForPath as co, createSpaceLeaveGuideError as cr, resolveGatewayWebOrigin as ct, runSpaceRemoveMembers as d, formatMessage as da, listBuiltinAgentsRegistryEntries as di, formatActiveOrganizationLabel as dn, resolveObservedAgentActivityBinding as do, createSpaceRemoveMembersGuideError as dr, runDaemonAutostart as dt, ensureVersionStateReady as ea, readProfileWorkspaceConfig as ei, connectWebSocket as en, formatOpenMeldCliLine as eo, createDoctorFailedGuideError as er, postLocalParticipationMutationReconcile as et, runSpaceSend as f, parseCliViewMode as fa, notifyDaemonRouteCatalogChanged as fi, createProfileByKind as fn, normalizeSharedSessionTitle as fo, createSpaceResultGuideError as fr, runDaemonBackgroundStartForDecision as ft, buildHumanReadSignalsTranscriptItems as g, requireOpenMeldProfile as ga, buildOnboardingPlan as gi, ensureAgentProfileRuntimeBinding as gn, readAgentActivityOutboxHealth as go, createStartAgentIdentityGuideError as gr, runDaemonReinstall as gt, runSpaceWriteWithPasswordRetry as h, isSelectedOpenMeldProfileRequiredError as ha, buildDaemonRouteObservationPresentation as hi, promptTextEntry as hn, removeProjectInbox as ho, createSpaceUpdatesGuideError as hr, runDaemonInterrupt as ht, runSpaceCreate as i, writeVersionState as ia, validateCustomProfileWorkspacePath as ii, evaluateCommandAuthentication as in, resolveUserFacingCliEntryCommand as io, createResetConfirmationGuideError as ir, renderOpenMeldBrandBlockLines as it, resolveOpenMeldProfileForSpaceCommand as j, createAuthenticationError as ja, parseAgentControllerRef as ji, buildDispatchResultMessageReadProjection as jn, sanitizeTerminalDisplayText as jo, buildDualViewGuideMessage as jr, fetchSpaceUpdates as jt, assertValidSpaceIdTarget as k, buildAgentAuthenticationGuide as ka, getAgentControllerPermissionModeFieldLabel as ki, upsertSpaceConfig as kn, renderInfoCard as ko, DualViewGuideError as kr, runDaemonStartupPreflight as kt, runSpaceList as l, resolveCurrentDaemonExpectedVersion as la, listAgentTargetStates as li, buildAuthStatusRows as ln, removeAgentActivityContextCache as lo, createSpaceMenuGuideError as lr, resolveSpaceSendText as lt, runSpaceReadWithPasswordRetry as m, resolveViewProfileKey as ma, PREPARE_SESSION_RECONNECT_GRACE_MS as mi, resolveCreateProfileName as mn, enqueueAgentActivityHookEvent as mo, createSpaceTargetGuideError as mr, runDaemonInstall as mt, promptAndConfirmSpacePassword as n, fetchLatestPackageInfo as na, setCustomProfileWorkspace as ni, buildCommandAuthenticationPromptMessage as nn, formatProfileAwareOpenMeldCliCommands as no, createProfileCreateGuideError as nr, colorizeDisplayProfileLabel as nt, runSpaceHistory as o, resolveOpenMeldDistribution as oa, syncDeviceRuntimeStateProjection as oi, runAuthLogout as on, readDaemonServiceContract as oo, createSpaceAliasTargetGuideError as or, renderOpenMeldLogo as ot, runSpaceWatch as p, resolveRuntimeContext as pa, resolveLocalRegistryAgentIdFromAgentControllerRef as pi, resolveCreateProfileKind as pn, readCodexSessionTitles as po, createSpaceSubcommandTargetGuideError as pr, runDaemonCancel as pt, runAgentsDisable as q, installAgentActivityIntegrations as qa, isDaemonServiceJobNeverSpawned as qi, readDispatchSpaceActionContextFromEnv as qn, resolveGatewayChainReadiness as qr, runSkillsInstall as qt, runSpaceAddMembers as r, readVersionState as ra, setOpenMeldManagedProfileWorkspace as ri, ensureCommandAuthenticationOrCancel as rn, resolveSetupFollowUpCliEntryCommand as ro, createProfileMenuGuideError as rr, printOpenMeldBanner as rt, runSpaceJoin as s, resolveDaemonRuntimeContractCompatibility as sa, createPrimaryBindingReadSession as si, runAuthMenu as sn, upsertDaemonServiceContract as so, createSpaceContractSetGuideError as sr, renderOpenMeldTagline as st, buildCreateSpacePasswordPromptConfig as t, fetchLatestCliBinaryRelease as ta, resolveConfiguredProfileWorkspacePath as ti, assessServerRequiredVersion as tn, formatOpenMeldCliTextBlock as to, createProfileActionGuideError as tr, colorizeAgentLabel as tt, runSpacePassword as u, createPresenter as ua, reconcileNewRunnableBuiltinAgentsForSetup as ui, buildAuthStatusSnapshot as un, buildAgentActivityEvent as uo, createSpacePublicationSetGuideError as ur, runDaemon as ut, buildIdentityOnlyMembersSnapshotForReadProjection as v, createOpenMeldAgentProfile as va, buildDaemonServiceTargetSpec as vi, resolveServiceParticipationReadiness as vn, bindProject as vo, createUpgradeConfirmationGuideError as vr, runDaemonSnapshot as vt, buildHumanReplyContextSummary as w, updateOpenMeldProfile as wa, resolveDaemonDeviceId as wi, collectLocalAgentControllerInventory as wn, setDefaultProjectConnection as wo, getCliVersionInfo as wr, buildProfileWorkspaceRows as wt, toSpaceMetaUpsertInput as x, listOpenMeldProfiles as xa, classifyDaemonServiceWakeability as xi, submitProfileRuntimeAgentControllerReport as xn, migrateProjectBindingStore as xo, registerSpaceMemberSelectionOptions as xr, runDaemonTeardownStrict as xt, loadSpaceIdentityDirectoryOrNull as y, createOpenMeldHumanProfile as ya, resolveDaemonServiceAlignmentDecision as yi, assessActionParticipationCandidate as yn, listProjectBindings as yo, getCommandEntryContract as yr, runDaemonStatusFlow as yt, resolveAgentProfileSetup as z, LocalDaemonControlPlaneClientError as za, isCurrentCommandCheckScopeActive as zi, promptSearchMultiselect as zn, cliJsonSkillsLoadEnvelopeSchema as zo, formatDaemonFailureContextText as zr, resolveLocalComponentsStatus as zt };
106885
+ export { formatTransportModeDisplay as $, uninstallAgentActivityIntegrations as $a, compareSemver as $i, canUseInteractivePrompts as $n, normalizeCustomProfileWorkspacePath as $r, readRecentDaemonDispatchJournalEvents as $t, prepareAuthenticatedSpaceCommandContext as A, getSelectedOpenMeldProfileId as Aa, listAgentControllerPermissionModeOptions as Ai, assertNoRemovedCcSpaceAddressingSyntax as An, enqueueControllerTaskLifecycleEventWhileLocked as Ao, formatDualViewGuideForDisplay as Ar, readDaemonStartFailureLogTailLines as At, runAgents as B, LocalProjectConnectionError as Ba, resetCurrentCommandCheckState as Bi, promptSearchSelect as Bn, cliJsonOutputEnvelopeSchema as Bo, resolveServiceReadinessFromServiceStatus as Br, writeInstalledLocalComponentsSnapshot as Bt, buildFormalSignalReadPayload as C, deleteOpenMeldProfile as Ca, ensureDaemonRuntimePaths as Ci, submitRuntimeAgentControllerReports as Cn, listProjectConnectionsWithStatus as Co, registerSkillsTargetSelectionOptions as Cr, buildProfileWorkspacePresentation as Ct, isSpaceCommandOutputHandledError as D, updateOpenMeldProfile as Da, createAgentExecutionStatusDisplayRows as Di, resolveLocalAgentControllerReportDecision as Dn, setDefaultProjectConnection as Do, registerBuiltinAgentSelectionOptions as Dr, createDelayedSpinner as Dt, parseEnvelope as E, resolveOpenMeldProfile as Ea, buildAgentControllerRef as Ei, resolveLocalAgentControllerLaunchability as En, runIfAgentActivityBindingGenerationIsCurrent as Eo, registerAuthLoginRequestOptions as Er, emitDaemonAgentOverview as Et, prepareLocalAgentReadiness as F, resolveAuthenticationGuidance as Fa, resolveEvidenceSyncHealth as Fi, buildSpaceRoundReadProjection as Fn, emitCliJsonEnvelope as Fo, areAllowedActionsEquivalent as Fr, readGatewayJsonResponse as Ft, runAgentsCustomUpdate as G, registerAgentActivityRoute as Ga, readCurrentObservedDaemonRuntimeStatus as Gi, assertDispatchOwnedRuntimePublicWriteAllowed as Gn, organizationJoinLinkErrorResponseSchema as Go, formatHumanReplyReadinessReason as Gr, runSkillsCheck as Gt, runAgentsCustomAdd as H, LocalDaemonControlPlaneClientError as Ha, inspectDaemonServiceInventory as Hi, runInteractivePrompt as Hn, cliJsonSkillsLoadEnvelopeSchema as Ho, resolveCurrentReplyReadinessSnapshot as Hr, runDaemonServiceParticipationGate as Ht, buildReplyReadinessGuidance as I, resolveAuthenticationGuidanceFromError as Ia, resolveNativeAgentControllerPermissionModeForController as Ii, buildUpdatesReplyWorkflowProjection as In, errLine as Io, buildAgentFacingPublicationModeGuideLines as Ir, readGatewayTextResponse as It, runAgentsEnable as J, AGENT_ACTIVITY_INTEGRATION_OWNER as Ja, readDaemonServiceJobCrashExitCode as Ji, writeDispatchSpaceActionRecord as Jn, package_default as Jo, resolveOpenClawLocalDiagnosticsValue as Jr, runSkillsUninstall as Jt, runAgentsDetect as K, resolveAgentActivityRouteForPath as Ka, getDaemonSystemServiceLogPath as Ki, readDispatchOwnedRuntimeGuard as Kn, revokeOrganizationJoinLinkResponseSchema as Ko, mapAgentReplyReadinessToLegacyAutoReply as Kr, runSkillsEnsure as Kt, resolveHumanControllerDisplayName as L, resolveAuthenticationGuidanceFromMessage as La, finishCurrentCommandCheckScope as Li, createSpaceMemberIdentityIndex as Ln, outJsonLine as Lo, canonicalizeAllowedActions as Lr, toStructuredGatewayFailure as Lt, resolveSpaceAccessLabel as M, buildAgentAuthenticationGuide as Ma, resolveAgentControllerPermissionModeForController as Mi, buildDispatchResultReplyWorkflowProjection as Mn, renderInfoCard as Mo, formatAgentOverviewPayload as Mr, createCliSpaceApi as Mt, emitSpaceAgentOverview as N, buildHumanAuthenticationCard as Na, resolveAgentExecutionStatus as Ni, buildSignalIndex as Nn, renderTextInfoCard as No, OPENMELD_AGENT_MENTAL_MODEL_LINES as Nr, fetchSpaceMeta as Nt, assertFullSignalIdArgument as O, alignSelectedOpenMeldProfileStorage as Oa, getAgentControllerPermissionModeDisplayMetadata as Oi, inspectSpaceCacheFile as On, unbindProject as Oo, buildAgentOverviewFromContract as Or, shouldEmitAgentOverview as Ot, emitSpaceCliAgentOverview as P, createAuthenticationError as Pa, resolveAgentProfileEditCapabilities as Pi, buildSignalMessageReadProjection as Pn, sanitizeTerminalDisplayText as Po, SPACE_CONTRACT_ALLOWED_ACTION_ORDER as Pr, updateSpaceMeta as Pt, runAgentsShow as Q, resolveAgentActivityDispatcherCommand as Qa, buildNextVersionState as Qi, formatDaemonServiceMissingRecommendation as Qn, ensureOpenMeldManagedProfileWorkspace as Qr, readRuntimeReportingHealthState as Qt, persistAgentTransportSelection as R, getProfileDefaultView as Ra, getCurrentCommandCheckState as Ri, formatRemovedCcRelationMessage as Rn, outLine as Ro, runDaemonServiceFullAlignment as Rr, parseJsonResponse$1 as Rt, buildFormalDispatchResultReadPayload as S, createOpenMeldHumanProfile as Sa, readRecentDaemonLifecycleEvents as Si, submitRuntimeAgentControllerReport as Sn, listProjectBindings as So, SPACE_ADD_MEMBERS_PROGRESS_HEARTBEAT_MS as Sr, runDaemonUninstall as St, formatHumanReadTargetList as T, primeOpenMeldProfilesSessionCache as Ta, resolveOpenMeldEnvironmentTarget as Ti, resolveLocalAgentControllerBlockerReasonCodes as Tn, removeProjectConnection as To, registerDaemonControlTargetOptions as Tr, reconcileCliVersionView as Tt, runAgentsCustomList as U, requestLocalAgentActivitySync as Ua, resolveVersionChangeDirection as Ui, assessCliUpdate as Un, cliJsonSkillsShowEnvelopeSchema as Uo, formatAgentReplyReadinessLabel as Ur, runDaemonStartDecisionPrompt as Ut, runAgentsConfig as V, validateLocalProjectConnectionPath as Va, startCurrentCommandCheckScope as Vi, isReturnKeypress as Vn, cliJsonSkillsListEnvelopeSchema as Vo, resolveDaemonServiceFreshnessWarning as Vr, resolveDaemonServiceParticipationStatus as Vt, runAgentsCustomRemove as W, isAgentActivityRouteRegistered as Wa, readCurrentDaemonRuntimeContext as Wi, isCliUpdateCheckApplicable as Wn, getOrganizationJoinLinkResponseSchema as Wo, formatDeviceReplyReadinessLabel as Wr, collectSkillsReadinessSnapshot as Wt, runAgentsManage as X, installAgentActivityIntegrations as Xa, buildInstallSelfJsonPayload as Xi, resolveElapsedTimeMs as Xn, createModelCatalogReadSession as Xr, ensureLocalSkills as Xt, runAgentsList as Y, defaultManagedIntegrationPaths as Ya, resolveDaemonServiceManager as Yi, formatElapsedTime as Yn, syncProfileWorkspaceState as Yr, runSkillsUpdate as Yt, runAgentsRepair as Z, readAgentActivityIntegrationStatus as Za, performManagedInstall as Zi, formatDaemonServiceDowngradeBlockedRecommendation as Zn, resolveProfileWorkspaceRuntime as Zr, readBundledOpenMeldCliSkillDocumentByPath as Zt, emitHumanReadSignalsTextProjection as _, resolveViewProfileKey as _a, getSetupFlowCopy as _i, formatServiceParticipationReadinessLabel as _n, enqueueAgentActivityHookEvent as _o, createStartAuthenticationGuideError as _r, runDaemonRunAfterEntryChecks as _t, runSpaceDelete as a, isBinaryDistribution as aa, describeProfileWorkspacePathValidationFailure as ai, runAuthLogin as an, formatProfileAwareOpenMeldCliCommands as ao, createSpaceAddMembersGuideError as ar, renderOpenMeldHeader as at, loadSpaceSignalIndexOrNull as b, resolveOpenMeldProfileOrNull as ba, classifyDaemonServiceRunStartability as bi, computeRetryDelayMs as bn, removeProjectOutbox as bo, getCommandHintsFromContract as br, runDaemonStop as bt, runSpaceLeave as c, toStartBackgroundHelperExecutionCompatibility as ca, resolveAgentProfilePrimaryAgentControllerReport as ci, runAuthStatus as cn, syncLocalAgentActivity as co, createSpaceLeaveGuideError as cr, resolveGatewayWebOrigin as ct, runSpaceRemoveMembers as d, renderHumanErrorCard as da, listBuiltinAgentsRegistryEntries as di, formatActiveOrganizationLabel as dn, readAgentActivityContextForPath as do, createSpaceRemoveMembersGuideError as dr, runDaemonAutostart as dt, ensureVersionStateReady as ea, readProfileWorkspaceConfig as ei, connectWebSocket as en, formatInlineOpenMeldCliCommands as eo, createDoctorFailedGuideError as er, postLocalParticipationMutationReconcile as et, runSpaceSend as f, renderHumanTextErrorCard as fa, notifyDaemonRouteCatalogChanged as fi, createProfileByKind as fn, removeAgentActivityContextCache as fo, createSpaceResultGuideError as fr, runDaemonBackgroundStartForDecision as ft, buildHumanReadSignalsTranscriptItems as g, resolveRuntimeContext as ga, buildOnboardingPlan as gi, ensureAgentProfileRuntimeBinding as gn, readCodexSessionTitles as go, createStartAgentIdentityGuideError as gr, runDaemonReinstall as gt, runSpaceWriteWithPasswordRetry as h, parseCliViewMode as ha, buildDaemonRouteObservationPresentation as hi, promptTextEntry as hn, normalizeSharedSessionTitle as ho, createSpaceUpdatesGuideError as hr, runDaemonInterrupt as ht, runSpaceCreate as i, writeVersionState as ia, validateCustomProfileWorkspacePath as ii, evaluateCommandAuthentication as in, formatOpenMeldCliTextBlock as io, createResetConfirmationGuideError as ir, renderOpenMeldBrandBlockLines as it, resolveOpenMeldProfileForSpaceCommand as j, setSelectedOpenMeldProfileId as ja, parseAgentControllerRef as ji, buildDispatchResultMessageReadProjection as jn, readControllerTaskLifecycleOutboxHealth as jo, buildDualViewGuideMessage as jr, fetchSpaceUpdates as jt, assertValidSpaceIdTarget as k, clearSelectedOpenMeldProfileId as ka, getAgentControllerPermissionModeFieldLabel as ki, upsertSpaceConfig as kn, canonicalizeLocalProjectPath as ko, DualViewGuideError as kr, runDaemonStartupPreflight as kt, runSpaceList as l, resolveCurrentDaemonExpectedVersion as la, listAgentTargetStates as li, buildAuthStatusRows as ln, readDaemonServiceContract as lo, createSpaceMenuGuideError as lr, resolveSpaceSendText as lt, runSpaceReadWithPasswordRetry as m, formatMessage as ma, PREPARE_SESSION_RECONNECT_GRACE_MS as mi, resolveCreateProfileName as mn, resolveObservedAgentActivityBinding as mo, createSpaceTargetGuideError as mr, runDaemonInstall as mt, promptAndConfirmSpacePassword as n, fetchLatestPackageInfo as na, setCustomProfileWorkspace as ni, buildCommandAuthenticationPromptMessage as nn, formatOpenMeldCliCommands as no, createProfileCreateGuideError as nr, colorizeDisplayProfileLabel as nt, runSpaceHistory as o, resolveOpenMeldDistribution as oa, syncDeviceRuntimeStateProjection as oi, runAuthLogout as on, resolveSetupFollowUpCliEntryCommand as oo, createSpaceAliasTargetGuideError as or, renderOpenMeldLogo as ot, runSpaceWatch as p, createPresenter as pa, resolveLocalRegistryAgentIdFromAgentControllerRef as pi, resolveCreateProfileKind as pn, buildAgentActivityEvent as po, createSpaceSubcommandTargetGuideError as pr, runDaemonCancel as pt, runAgentsDisable as q, unregisterAgentActivityRoute as qa, isDaemonServiceJobNeverSpawned as qi, readDispatchSpaceActionContextFromEnv as qn, compareAgentControllerRefsForDisplay as qo, resolveGatewayChainReadiness as qr, runSkillsInstall as qt, runSpaceAddMembers as r, readVersionState as ra, setOpenMeldManagedProfileWorkspace as ri, ensureCommandAuthenticationOrCancel as rn, formatOpenMeldCliLine as ro, createProfileMenuGuideError as rr, printOpenMeldBanner as rt, runSpaceJoin as s, resolveDaemonRuntimeContractCompatibility as sa, createPrimaryBindingReadSession as si, runAuthMenu as sn, resolveUserFacingCliEntryCommand as so, createSpaceContractSetGuideError as sr, renderOpenMeldTagline as st, buildCreateSpacePasswordPromptConfig as t, fetchLatestCliBinaryRelease as ta, resolveConfiguredProfileWorkspacePath as ti, assessServerRequiredVersion as tn, formatOpenMeldCliCommand as to, createProfileActionGuideError as tr, colorizeAgentLabel as tt, runSpacePassword as u, buildHumanErrorCopy as ua, reconcileNewRunnableBuiltinAgentsForSetup as ui, buildAuthStatusSnapshot as un, upsertDaemonServiceContract as uo, createSpacePublicationSetGuideError as ur, runDaemon as ut, buildIdentityOnlyMembersSnapshotForReadProjection as v, isSelectedOpenMeldProfileRequiredError as va, buildDaemonServiceTargetSpec as vi, resolveServiceParticipationReadiness as vn, removeProjectInbox as vo, createUpgradeConfirmationGuideError as vr, runDaemonSnapshot as vt, buildHumanReplyContextSummary as w, listOpenMeldProfiles as wa, resolveDaemonDeviceId as wi, collectLocalAgentControllerInventory as wn, migrateProjectBindingStore as wo, getCliVersionInfo as wr, buildProfileWorkspaceRows as wt, toSpaceMetaUpsertInput as x, createOpenMeldAgentProfile as xa, classifyDaemonServiceWakeability as xi, submitProfileRuntimeAgentControllerReport as xn, bindProject as xo, registerSpaceMemberSelectionOptions as xr, runDaemonTeardownStrict as xt, loadSpaceIdentityDirectoryOrNull as y, requireOpenMeldProfile as ya, resolveDaemonServiceAlignmentDecision as yi, assessActionParticipationCandidate as yn, readAgentActivityOutboxHealth as yo, getCommandEntryContract as yr, runDaemonStatusFlow as yt, resolveAgentProfileSetup as z, setProfileDefaultView as za, isCurrentCommandCheckScopeActive as zi, promptSearchMultiselect as zn, cliBinaryDeltaPatchSchema as zo, formatDaemonFailureContextText as zr, resolveLocalComponentsStatus as zt };
106952
106886
 
106953
- //# sourceMappingURL=command-Ck9Kn6HO.js.map
106887
+ //# sourceMappingURL=command-22-KBBsD.js.map