openmeld 0.3.71 → 0.3.73

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-KfrIdedc.js";
4
- import { $ as OPENMELD_RUNTIME_CAPABILITIES_HEADER, A as parseEnvelope$1, At as AGENT_ACTIVITY_PRESENCE_TTL_MAX_MS, B as toErrorMessage$40, Bt as archiveProjectResponseSchema, Ct as deleteCenterAgentRoutineResponseSchema, D as DAEMON_STREAM_KEEPALIVE_PING, Dt as resumeCenterAgentRoutineResponseSchema, E as toStructuredApiClientFailure, Et as pauseCenterAgentRoutineResponseSchema, Ft as agentActivitySnapshotResponseSchema, Gt as leaveSpaceResponseSchema, H as SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS, Ht as listProjectsResponseSchema, I as OPENMELD_HEADER_REQUEST_ID, It as centerAgentToolSpeakerSchema, Jt as spaceMemberDirectoryEntrySchema, Kt as postSpaceMembersResponseSchema, Lt as localProjectControlConnectionSchema, M as parseServerErrorFrame$1, N as resolveCustomMentionAliasOverride, Ot as updateCenterAgentRoutineResponseSchema, P as OPENMELD_HEADER_PROFILE_ID, Q as COMPUTER_FILE_ACCESS_RUNTIME_CAPABILITY, R as toErrorMessage$41, Rt as localProjectControlDaemonFrameSchema, S as createSpaceApi, St as createCenterAgentRoutineResponseSchema, T as resolveProfileSpaceHistoryGatewayHost, Tt as listCenterAgentRoutinesResponseSchema, Ut as projectSchema, V as getSpaceUpdatesResponseSchema, Vt as createProjectResponseSchema, Wt as updateProjectResponseSchema, X as submitAgentControllerTaskLifecycleEventItemSchema, Xt as openCodePermissionConfigSchema, Yt as spaceMemberDirectorySchema, Z as gatewayErrorEnvelopeSchema, _t as authProfileManagedRoleSchema, a as buildSpaceAttachmentDownloadPath, an as toLegacySpaceAddressingWireValue, at as spaceCreatorSchema, bt as submitFeedbackIssueRequestSchema, c as createAgentProfileBindingApi, ct as listOrganizationSkillsResponseSchema, dt as organizationSkillSummarySchema, et as computerFileAccessDaemonFrameSchema, f as createFetchTransport, h as createOrganizationApi, ht as ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE, i as buildProfileSpaceHistoryUpsertPath, in as agentControllerCollaborationModeSchema, it as organizationSpaceDirectoryWithMemberCountsResponseSchema, j as parseIncoming$1, jt as agentActivityEventSchema, k as MAX_TEXT_LENGTH, m as createOpenMeldApiClient, mt as ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE, n as OpenMeldApiClientInvalidResponseError, nt as computerFileAccessPolicySchema, o as createAccountSpaceIndexApi, ot as spaceMetaSchema, p as createLocalRuntimeExpectedRoutesApi, pt as organizationDirectoryResponseSchema, qt as removeSpaceMembersResponseSchema, r as buildProfileSpaceHistoryStatusPath, rn as agentControllerPermissionModeSchema, rt as modelCatalogSchema, s as createAgentActivityApi, st as getOrganizationSkillResponseSchema, t as OpenMeldApiClientHttpError, tt as computerFileAccessPolicyInputSchema, u as createCurrentDeviceApi, ut as organizationSkillReleaseSummarySchema, v as createProfileSpaceHistoryApi, vt as profileCapabilitiesResponseSchema, w as resolveAccountSpaceIndexGatewayHost, wt as listCenterAgentRoutineRunsResponseSchema, x as createRuntimeReportingApi, xt as submitFeedbackIssueResponseSchema, yt as profileErrorResponseSchema, z as sleep, zt as localProjectControlDiscoverProjectsResponseSchema } from "./dist-T_HVDqzT.js";
5
- import { A as runtimeTransportRouteCatalogChangedFramePayloadSchema, An as installedLocalComponentsSnapshotSchema, B as runtimeTransportSubmitTaskResultRequestSchema, C as runtimeTransportLocalAgentControlSetProfileWorkspaceFramePayloadSchema, Cn as agentInteractionRequestSchema, Cr as resolvePublicAgentAvailabilityCopy, D as runtimeTransportRejectedProfileRegistrationSchema, Dn as formatLocalComponentsSummaryLabel, Dt as SPACE_ATTACHMENT_MAX_SIZE_BYTES, E as runtimeTransportRegisterSessionResponseSchema, En as formatLocalComponentsSummaryDescription, Fn as localServiceComponentUpdateProjectionSchema, Gt as providerDispatchRuntimeContextSchema, H as openMeldDaemonTaskResultEnvelopeWriteSchema, Ht as openMeldDaemonControlPlaneResponseSchema, J as OPENMELD_LOCAL_FOLDER_PICKER_CAPABILITY_HEADER, K as openMeldSpaceEgressActionSchema, Kt as conversationExecutionStateSchema, Mt as spaceAttachmentFileNameSchema, O as runtimeTransportResumeControllerConversationFramePayloadSchema, On as formatLocalSetupActionDescription, Ot as detectSpaceAttachmentMimeType, S as runtimeTransportLocalAgentControlSetEnabledFramePayloadSchema, Sr as resolveMappedPublicAgentFailureReason, St as sanitizeSignalTextPreview, T as runtimeTransportRegisterSessionRequestSchema, Tr as shouldPreferMappedPublicAgentFailureReason, U as openMeldDaemonTaskResultOpenClawGatewayVisibilityStatusSchema, Un as runtimeCoordinatorExecutionTokenEnvelopeSchema, Vt as openMeldDaemonControlPlaneRequestSchema, W as openMeldDaemonTaskResultPayloadSchema, Wn as runtimeTransportDeliveryExecutionIdentitySchema, Wt as skippedDaemonProfileSchema, X as localFolderPickerHelperProtocolResultSchema, Xn as resolveSpaceMentionLabels, Y as localFolderPickerDaemonFrameSchema, Yn as resolveSingleSpaceMentionLabels, Z as localFolderPickerHelperResultSchema, _ as runtimeTransportHeartbeatResponseSchema, a as runtimeTransportCapabilitiesSchema, b as runtimeTransportLocalAgentControlManageInstallationFramePayloadSchema, br as MAX_TEXT_LENGTH$1, bt as SPACE_MENTION_REJECT_NOTICE_PURPOSE, c as runtimeTransportDispatchInteractionRequestSchema, cn as collectCanonicalMentionTextFragments, cr as agentProfileIdSchema, d as runtimeTransportDispatchPreviewEndRequestSchema, f as runtimeTransportDispatchPreviewRequestSchema, fn as normalizeMessageEnvelope, g as runtimeTransportHeartbeatRequestSchema, h as runtimeTransportErrorCodeSchema, i as localWakeRouteReportSchema, jn as localCliComponentUpdateProjectionSchema, k as runtimeTransportResumeControllerConversationResultFramePayloadSchema, kn as formatLocalSetupActionLabel, kr as resolveCommandAgentWorkActivity, kt as projectSpaceMessageAttachment, l as runtimeTransportDispatchInteractionResponseFramePayloadSchema, ln as formatCanonicalMentionLiteral, lr as normalizeOptionalWorkingDirectory, m as runtimeTransportDispatchToolActivityRequestSchema, mr as profileWorkspaceModeSchema, mt as CONVERSATION_CONTINUITY_WARNING_PURPOSE, n as daemonExecutionCompatibilitySchema, o as runtimeTransportDeliverDispatchRequestSchema, or as openMeldRequestContextSchema, p as runtimeTransportDispatchRuntimeEvidenceRequestSchema, pn as resolveMessageEnvelopeTargetField, q as LOCAL_FOLDER_PICKER_RUNTIME_CAPABILITY, qn as normalizeSpacePasswordText, r as daemonStreamFrameSchema, s as runtimeTransportDispatchInteractionDeliveredRequestSchema, sn as MESSAGE_MENTION_TYPE_VALUES, sr as MAX_PROFILE_WORKING_DIRECTORY_LENGTH, t as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, u as runtimeTransportDispatchLifecycleRequestSchema, un as getSpaceMessageAddressingRelationSupportForTargetKind, ur as openMeldRuntimeProfileIdSchema, v as runtimeTransportLocalAgentControlCancelFramePayloadSchema, vt as SPACE_MEMBER_JOIN_NOTICE_PURPOSE, w as runtimeTransportLookupRouteOwnerServiceEvidenceSchema, wn as agentInteractionResolutionSchema, wr as resolvePublicAgentFailureRecovery, x as runtimeTransportLocalAgentControlRefreshCatalogFramePayloadSchema, xn as AGENT_INTERACTION_DEFAULT_TIMEOUT_MS, xr as resolveDetailedPublicAgentFailureReason$1, y as runtimeTransportLocalAgentControlInterruptFramePayloadSchema, yr as trimmedStringFromUnknown, yt as SPACE_MEMBER_REMOVE_NOTICE_PURPOSE, zn as parseOptionalClientMessageId } from "./runtime-transport-CaAK1jo1.js";
4
+ import { $ as OPENMELD_RUNTIME_CAPABILITIES_HEADER, A as parseEnvelope$1, At as AGENT_ACTIVITY_PRESENCE_TTL_MAX_MS, B as toErrorMessage$40, Bt as archiveProjectResponseSchema, Ct as deleteCenterAgentRoutineResponseSchema, D as DAEMON_STREAM_KEEPALIVE_PING, Dt as resumeCenterAgentRoutineResponseSchema, E as toStructuredApiClientFailure, Et as pauseCenterAgentRoutineResponseSchema, Ft as agentActivitySnapshotResponseSchema, Gt as leaveSpaceResponseSchema, H as SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS, Ht as listProjectsResponseSchema, I as OPENMELD_HEADER_REQUEST_ID, It as centerAgentToolSpeakerSchema, Jt as spaceMemberDirectoryEntrySchema, Kt as postSpaceMembersResponseSchema, Lt as localProjectControlConnectionSchema, M as parseServerErrorFrame$1, N as resolveCustomMentionAliasOverride, Ot as updateCenterAgentRoutineResponseSchema, P as OPENMELD_HEADER_PROFILE_ID, Q as COMPUTER_FILE_ACCESS_RUNTIME_CAPABILITY, R as toErrorMessage$41, Rt as localProjectControlDaemonFrameSchema, S as createSpaceApi, St as createCenterAgentRoutineResponseSchema, T as resolveProfileSpaceHistoryGatewayHost, Tt as listCenterAgentRoutinesResponseSchema, Ut as projectSchema, V as getSpaceUpdatesResponseSchema, Vt as createProjectResponseSchema, Wt as updateProjectResponseSchema, X as submitAgentControllerTaskLifecycleEventItemSchema, Xt as openCodePermissionConfigSchema, Yt as spaceMemberDirectorySchema, Z as gatewayErrorEnvelopeSchema, _t as authProfileManagedRoleSchema, a as buildSpaceAttachmentDownloadPath, an as toLegacySpaceAddressingWireValue, at as spaceCreatorSchema, bt as submitFeedbackIssueRequestSchema, c as createAgentProfileBindingApi, ct as listOrganizationSkillsResponseSchema, dt as organizationSkillSummarySchema, et as computerFileAccessDaemonFrameSchema, f as createFetchTransport, h as createOrganizationApi, ht as ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE, i as buildProfileSpaceHistoryUpsertPath, in as agentControllerCollaborationModeSchema, it as organizationSpaceDirectoryWithMemberCountsResponseSchema, j as parseIncoming$1, jt as agentActivityEventSchema, k as MAX_TEXT_LENGTH, m as createOpenMeldApiClient, mt as ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE, n as OpenMeldApiClientInvalidResponseError, nt as computerFileAccessPolicySchema, o as createAccountSpaceIndexApi, ot as spaceMetaSchema, p as createLocalRuntimeExpectedRoutesApi, pt as organizationDirectoryResponseSchema, qt as removeSpaceMembersResponseSchema, r as buildProfileSpaceHistoryStatusPath, rn as agentControllerPermissionModeSchema, rt as modelCatalogSchema, s as createAgentActivityApi, st as getOrganizationSkillResponseSchema, t as OpenMeldApiClientHttpError, tt as computerFileAccessPolicyInputSchema, u as createCurrentDeviceApi, ut as organizationSkillReleaseSummarySchema, v as createProfileSpaceHistoryApi, vt as profileCapabilitiesResponseSchema, w as resolveAccountSpaceIndexGatewayHost, wt as listCenterAgentRoutineRunsResponseSchema, x as createRuntimeReportingApi, xt as submitFeedbackIssueResponseSchema, yt as profileErrorResponseSchema, z as sleep, zt as localProjectControlDiscoverProjectsResponseSchema } from "./dist-WHWyUs8I.js";
5
+ import { A as runtimeTransportRouteCatalogChangedFramePayloadSchema, An as installedLocalComponentsSnapshotSchema, B as runtimeTransportSubmitTaskResultRequestSchema, C as runtimeTransportLocalAgentControlSetProfileWorkspaceFramePayloadSchema, Cn as agentInteractionRequestSchema, Cr as resolvePublicAgentAvailabilityCopy, D as runtimeTransportRejectedProfileRegistrationSchema, Dn as formatLocalComponentsSummaryLabel, Dt as SPACE_ATTACHMENT_MAX_SIZE_BYTES, E as runtimeTransportRegisterSessionResponseSchema, En as formatLocalComponentsSummaryDescription, Fn as localServiceComponentUpdateProjectionSchema, Gt as providerDispatchRuntimeContextSchema, H as openMeldDaemonTaskResultEnvelopeWriteSchema, Ht as openMeldDaemonControlPlaneResponseSchema, J as OPENMELD_LOCAL_FOLDER_PICKER_CAPABILITY_HEADER, K as openMeldSpaceEgressActionSchema, Kt as conversationExecutionStateSchema, Mt as spaceAttachmentFileNameSchema, O as runtimeTransportResumeControllerConversationFramePayloadSchema, On as formatLocalSetupActionDescription, Ot as detectSpaceAttachmentMimeType, S as runtimeTransportLocalAgentControlSetEnabledFramePayloadSchema, Sr as resolveMappedPublicAgentFailureReason, St as sanitizeSignalTextPreview, T as runtimeTransportRegisterSessionRequestSchema, Tr as shouldPreferMappedPublicAgentFailureReason, U as openMeldDaemonTaskResultOpenClawGatewayVisibilityStatusSchema, Un as runtimeCoordinatorExecutionTokenEnvelopeSchema, Vt as openMeldDaemonControlPlaneRequestSchema, W as openMeldDaemonTaskResultPayloadSchema, Wn as runtimeTransportDeliveryExecutionIdentitySchema, Wt as skippedDaemonProfileSchema, X as localFolderPickerHelperProtocolResultSchema, Xn as resolveSpaceMentionLabels, Y as localFolderPickerDaemonFrameSchema, Yn as resolveSingleSpaceMentionLabels, Z as localFolderPickerHelperResultSchema, _ as runtimeTransportHeartbeatResponseSchema, a as runtimeTransportCapabilitiesSchema, b as runtimeTransportLocalAgentControlManageInstallationFramePayloadSchema, br as MAX_TEXT_LENGTH$1, bt as SPACE_MENTION_REJECT_NOTICE_PURPOSE, c as runtimeTransportDispatchInteractionRequestSchema, cn as collectCanonicalMentionTextFragments, cr as agentProfileIdSchema, d as runtimeTransportDispatchPreviewEndRequestSchema, f as runtimeTransportDispatchPreviewRequestSchema, fn as normalizeMessageEnvelope, g as runtimeTransportHeartbeatRequestSchema, h as runtimeTransportErrorCodeSchema, i as localWakeRouteReportSchema, jn as localCliComponentUpdateProjectionSchema, k as runtimeTransportResumeControllerConversationResultFramePayloadSchema, kn as formatLocalSetupActionLabel, kr as resolveCommandAgentWorkActivity, kt as projectSpaceMessageAttachment, l as runtimeTransportDispatchInteractionResponseFramePayloadSchema, ln as formatCanonicalMentionLiteral, lr as normalizeOptionalWorkingDirectory, m as runtimeTransportDispatchToolActivityRequestSchema, mr as profileWorkspaceModeSchema, mt as CONVERSATION_CONTINUITY_WARNING_PURPOSE, n as daemonExecutionCompatibilitySchema, o as runtimeTransportDeliverDispatchRequestSchema, or as openMeldRequestContextSchema, p as runtimeTransportDispatchRuntimeEvidenceRequestSchema, pn as resolveMessageEnvelopeTargetField, q as LOCAL_FOLDER_PICKER_RUNTIME_CAPABILITY, qn as normalizeSpacePasswordText, r as daemonStreamFrameSchema, s as runtimeTransportDispatchInteractionDeliveredRequestSchema, sn as MESSAGE_MENTION_TYPE_VALUES, sr as MAX_PROFILE_WORKING_DIRECTORY_LENGTH, t as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, u as runtimeTransportDispatchLifecycleRequestSchema, un as getSpaceMessageAddressingRelationSupportForTargetKind, ur as openMeldRuntimeProfileIdSchema, v as runtimeTransportLocalAgentControlCancelFramePayloadSchema, vt as SPACE_MEMBER_JOIN_NOTICE_PURPOSE, w as runtimeTransportLookupRouteOwnerServiceEvidenceSchema, wn as agentInteractionResolutionSchema, wr as resolvePublicAgentFailureRecovery, x as runtimeTransportLocalAgentControlRefreshCatalogFramePayloadSchema, xn as AGENT_INTERACTION_DEFAULT_TIMEOUT_MS, xr as resolveDetailedPublicAgentFailureReason$1, y as runtimeTransportLocalAgentControlInterruptFramePayloadSchema, yr as trimmedStringFromUnknown, yt as SPACE_MEMBER_REMOVE_NOTICE_PURPOSE, zn as parseOptionalClientMessageId } from "./runtime-transport-BxhzIxn4.js";
6
6
  import { r as daemonServiceLaneSchema, t as daemonServiceContractSchema } from "./service-contract-DZWQdPz5.js";
7
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-7AQYjp3h.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-C7ZQlX6v.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-Oxjet9nL.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-zqpRQEFv.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-26lWUTQ9.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,7 +34,7 @@ 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.71",
37
+ version: "0.3.73",
38
38
  openMeldReleaseDate: "2026-08-18",
39
39
  description: "OpenMeld CLI - https://openmeld.ai",
40
40
  license: "MIT",
@@ -5437,7 +5437,7 @@ function resolveOpenMeldAccountContext(input) {
5437
5437
  };
5438
5438
  }
5439
5439
  async function resolveCurrentOpenMeldAccountContext() {
5440
- const { getAuthSessionMetadata } = await import("./auth-session-C7ZQlX6v.js").then((n) => n.t);
5440
+ const { getAuthSessionMetadata } = await import("./auth-session-zqpRQEFv.js").then((n) => n.t);
5441
5441
  return resolveOpenMeldAccountContext({ session: await getAuthSessionMetadata().catch(() => null) });
5442
5442
  }
5443
5443
  function resolveHostKey(baseUrl) {
@@ -26609,9 +26609,9 @@ const WORKING_LANGUAGE_DEVELOPER_INSTRUCTIONS = `Working language:
26609
26609
 
26610
26610
  You decide the language for this response from full semantic context, not text classification.
26611
26611
  - The current user's explicit language request wins.
26612
- - A complete, self-contained request clearly in one language controls that response only; answer a complete request written fully in English in English.
26612
+ - A complete, self-contained request clearly in one language controls that response only; answer a complete request written fully in English in English. Referring to established task context does not make an otherwise complete request incomplete, and the earlier conversation language must not override it.
26613
26613
  - A single complete request in another language does not reset the conversation's established language. Change it only when the user explicitly asks to continue in that language or a sustained sequence of complete requests follows.
26614
- - A short fragment, proper name, identifier, @handle, URL, number, or answer to your follow-up question inherits the established language because it continues the current task. Fangyuan, Yes, OK8, @handle, a URL, or a number never switches language by itself.
26614
+ - An incomplete message that continues the current task inherits the established language. Judge its conversational role rather than treating the surface language of a name, value, or answer in isolation as a language switch.
26615
26615
  - The current conversation, Slack thread or channel, Space, intended audience, and requested artifact language outweigh an Organization preference when they clearly use another language.
26616
26616
  - For a new Web conversation without connected work context, follow the current request and do not treat that one message as an Organization-wide change.
26617
26617
  - A Local Agent also considers its owner's established working habits and the current work environment. For agent-to-agent work, an Organization preference is only a fallback when the task and audience provide no stronger signal.
@@ -35424,9 +35424,9 @@ function createModelCatalogReadSession(input) {
35424
35424
  async function readModelCatalogOnce(baseUrl) {
35425
35425
  try {
35426
35426
  const [apiClient, baseUrlModule, clientFoundationModule] = await Promise.all([
35427
- import("./dist-T_HVDqzT.js").then((n) => n.C),
35427
+ import("./dist-WHWyUs8I.js").then((n) => n.C),
35428
35428
  import("./base-url-KfrIdedc.js").then((n) => n.n),
35429
- import("./api-client-foundation-Oxjet9nL.js").then((n) => n.t)
35429
+ import("./api-client-foundation-26lWUTQ9.js").then((n) => n.t)
35430
35430
  ]);
35431
35431
  if (typeof apiClient.createConfigApi !== "function") throw new Error("config api client is unavailable");
35432
35432
  const resolvedBaseUrl = baseUrl ?? await baseUrlModule.resolveBaseUrl();
@@ -54720,6 +54720,7 @@ const ACK_PENDING_BACKOFF_MS = [
54720
54720
  6e4
54721
54721
  ];
54722
54722
  const acknowledgementWaiters = /* @__PURE__ */ new Map();
54723
+ const settlementWaiters = /* @__PURE__ */ new Map();
54723
54724
  function enqueueDispatchResultOutboxRecord(input) {
54724
54725
  const nowMs = Date.now();
54725
54726
  const record = {
@@ -54743,6 +54744,10 @@ function enqueueDispatchResultOutboxRecord(input) {
54743
54744
  updatedAtMs: nowMs
54744
54745
  };
54745
54746
  upsertOutboxRecord(input.ledgerPaths, record);
54747
+ const settlement = input.waitForSettlement ? registerDispatchResultOutboxSettlementWaiter({
54748
+ ledgerPaths: input.ledgerPaths,
54749
+ recordKey: buildRecordKey(record)
54750
+ }) : null;
54746
54751
  emitRunLine({
54747
54752
  presenter: input.presenter,
54748
54753
  code: "daemon.run.result_outbox_queued",
@@ -54758,12 +54763,15 @@ function enqueueDispatchResultOutboxRecord(input) {
54758
54763
  ledgerPaths: input.ledgerPaths,
54759
54764
  presenter: input.presenter
54760
54765
  });
54766
+ return settlement;
54761
54767
  }
54762
54768
  function acknowledgeDispatchResultOutboxRecord(input) {
54763
54769
  const acknowledgedAtMs = Date.now();
54764
- const nextRecords = readOutboxRecords(input.ledgerPaths).flatMap((record) => {
54770
+ const records = readOutboxRecords(input.ledgerPaths);
54771
+ const matchedRecordKeys = records.filter((record) => record.dispatchId === input.dispatchId && (!input.attemptId || record.attemptId === input.attemptId)).map(buildRecordKey);
54772
+ const nextRecords = records.flatMap((record) => {
54765
54773
  if (record.dispatchId !== input.dispatchId || input.attemptId && record.attemptId !== input.attemptId) return [record];
54766
- if (input.ok) return [];
54774
+ if (input.ok || input.status === "review_required") return [];
54767
54775
  if (input.status === "retry_later") {
54768
54776
  const attemptCount = Math.max(1, record.attemptCount);
54769
54777
  return [{
@@ -54781,6 +54789,8 @@ function acknowledgeDispatchResultOutboxRecord(input) {
54781
54789
  }];
54782
54790
  });
54783
54791
  writeOutboxRecords(input.ledgerPaths, nextRecords);
54792
+ const settlement = resolveDispatchResultOutboxSettlement(input);
54793
+ if (settlement) notifySettlementWaiters(input.ledgerPaths, matchedRecordKeys, settlement);
54784
54794
  const retryLater = !input.ok && input.status === "retry_later";
54785
54795
  let eventCode = "daemon.run.result_outbox_rejected";
54786
54796
  let eventText = `daemon result outbox rejected for dispatch ${input.dispatchId}: ${input.reasonCode ?? "unknown"}`;
@@ -54804,6 +54814,12 @@ function acknowledgeDispatchResultOutboxRecord(input) {
54804
54814
  }
54805
54815
  });
54806
54816
  }
54817
+ const registerDispatchResultOutboxSettlementWaiter = (input) => new Promise((resolve) => {
54818
+ const rootKey = input.ledgerPaths.rootDirPath;
54819
+ const waiters = settlementWaiters.get(rootKey) ?? /* @__PURE__ */ new Map();
54820
+ waiters.set(input.recordKey, resolve);
54821
+ settlementWaiters.set(rootKey, waiters);
54822
+ });
54807
54823
  function waitForDispatchResultOutboxAcknowledgement(input) {
54808
54824
  const recordKeys = new Set(input.recordKeys);
54809
54825
  if (recordKeys.size === 0 || !readOutboxRecords(input.ledgerPaths).some((record) => recordKeys.has(buildRecordKey(record)))) return Promise.resolve("acknowledged");
@@ -54960,6 +54976,30 @@ const notifyAcknowledgementWaiters = (ledgerPaths, records) => {
54960
54976
  }
54961
54977
  acknowledgementWaiters.set(rootKey, pendingWaiters);
54962
54978
  };
54979
+ const resolveDispatchResultOutboxSettlement = (input) => {
54980
+ if (input.ok) return { status: "accepted" };
54981
+ if (input.status === "review_required" && input.reasonCode === "space.agent_reply.context_changed") return {
54982
+ reasonCode: input.reasonCode,
54983
+ status: "review_required"
54984
+ };
54985
+ if (input.status === "rejected_terminal") return {
54986
+ reasonCode: input.reasonCode ?? "daemon.dispatch.result_rejected",
54987
+ status: "rejected_terminal"
54988
+ };
54989
+ return null;
54990
+ };
54991
+ const notifySettlementWaiters = (ledgerPaths, recordKeys, settlement) => {
54992
+ const rootKey = ledgerPaths.rootDirPath;
54993
+ const waiters = settlementWaiters.get(rootKey);
54994
+ if (!waiters) return;
54995
+ for (const recordKey of recordKeys) {
54996
+ const resolve = waiters.get(recordKey);
54997
+ if (!resolve) continue;
54998
+ waiters.delete(recordKey);
54999
+ resolve(settlement);
55000
+ }
55001
+ if (waiters.size === 0) settlementWaiters.delete(rootKey);
55002
+ };
54963
55003
  const isDispatchResultOutboxRecord = (value) => {
54964
55004
  const candidate = value;
54965
55005
  return candidate.schema === OUTBOX_RECORD_SCHEMA && typeof candidate.attemptId === "string" && typeof candidate.dispatchId === "string" && typeof candidate.daemonSessionId === "string" && typeof candidate.executionIdentityEcho === "object" && candidate.executionIdentityEcho !== null && typeof candidate.leaseEpoch === "number" && typeof candidate.connectionGeneration === "number" && typeof candidate.taskId === "string" && typeof candidate.taskResult === "object" && candidate.taskResult !== null && typeof candidate.createdAtMs === "number" && typeof candidate.updatedAtMs === "number" && typeof candidate.nextAttemptAtMs === "number" && typeof candidate.attemptCount === "number";
@@ -61679,6 +61719,7 @@ function normalizeOptionalString$4(value) {
61679
61719
  function resolveDaemonCapabilities(input) {
61680
61720
  const runtimeAdapters = input.localAdapterContainer.listAdapters().map((entry) => resolveRegistryRuntimeAdapterCapabilitySnapshot(entry.adapterId)).filter((entry) => entry !== null).sort((left, right) => left.adapterId.localeCompare(right.adapterId));
61681
61721
  return {
61722
+ agentReplyContextReview: true,
61682
61723
  informationProtectionPrompt: true,
61683
61724
  workingLanguagePrompt: true,
61684
61725
  localAgentInteraction: true,
@@ -63443,9 +63484,7 @@ async function fetchSpaceUpdates(input) {
63443
63484
  //#endregion
63444
63485
  //#region src/local-service/dispatch/dispatch-agent-reply-observation.ts
63445
63486
  const OBSERVATION_LIMIT = 20;
63446
- const MAX_REPLY_RECONSIDERATIONS = 2;
63447
63487
  const SIGNAL_TEXT_LIMIT = 2e3;
63448
- const UNSTABLE_SPACE_SILENCE_REASON = "The Space kept changing while this Agent reviewed concurrent replies, so OpenMeld did not publish a reply based on outdated context.";
63449
63488
  async function readDispatchAgentReplyObservation(input) {
63450
63489
  const baseUrl = await resolveBaseUrl();
63451
63490
  return resolveDispatchAgentReplyObservation({
@@ -63515,15 +63554,6 @@ async function coordinateDispatchAgentReply(input) {
63515
63554
  let reconsiderationCount = 0;
63516
63555
  let value = input.currentValue;
63517
63556
  while (observation.status === "changed") {
63518
- if (reconsiderationCount >= MAX_REPLY_RECONSIDERATIONS) return {
63519
- action: {
63520
- type: "stay_silent",
63521
- reason: UNSTABLE_SPACE_SILENCE_REASON
63522
- },
63523
- reconsiderationCount,
63524
- reconsidered: true,
63525
- value
63526
- };
63527
63557
  const reconsidered = await input.reconsider(buildAgentReplyReconsiderationPrompt({
63528
63558
  action,
63529
63559
  relevantSignals: observation.relevantSignals,
@@ -65027,6 +65057,7 @@ async function handleDispatchDeliverFrame(input) {
65027
65057
  let observedProviderConversation = null;
65028
65058
  let runtimePromptPlan = null;
65029
65059
  let runtimePromptTrace = null;
65060
+ let settledResultSummary = null;
65030
65061
  let stopRunningKeepalive = null;
65031
65062
  let firstOutputEvidenceSent = false;
65032
65063
  input.inflightTaskControlRegistry.registerTask({
@@ -65544,39 +65575,98 @@ async function handleDispatchDeliverFrame(input) {
65544
65575
  parsedTask,
65545
65576
  presenter: input.presenter
65546
65577
  });
65547
- const observedAgentControllerConversation = resolveObservedDispatchAgentControllerConversation({
65548
- plannedAgentControllerConversation,
65549
- contextDelta,
65550
- contextResolution: runtimeResult.contextResolution ?? null,
65551
- agentControllerConversationOverride
65552
- });
65553
- dispatchExecution = buildDispatchExecution({
65578
+ const { bootstrapPlan: completedBootstrapPlan, ledgerIo: completedLedgerIo, localRuntimeContextPlan: completedLocalRuntimeContextPlan, runtimePromptPlan: completedRuntimePromptPlan } = requireCompletedDispatchPlans({
65554
65579
  bootstrapPlan,
65555
- agentControllerConversationId: effectiveAgentControllerConversationId,
65580
+ ledgerIo,
65556
65581
  localRuntimeContextPlan,
65557
- observedAgentControllerConversation,
65558
- plannedAgentControllerConversation
65559
- });
65560
- resultPayload = resolveDispatchResultPayload({
65561
- attemptId: parsedTask.attemptId,
65562
- contextDelta,
65563
- contextResolution: runtimeResult.contextResolution ?? null,
65564
- basePayload: runtimeResult.resultPayload,
65565
- bootstrapTemplateFacts: bootstrapContext.bootstrapTemplateFacts,
65566
- agentControllerRef: parsedTask.agentControllerRef,
65567
- dispatchExecution,
65568
- existingContextId: contextIdForDispatch,
65569
- openClawBinding: runtimeOpenClawBinding,
65570
- openClawGatewayVisibility: runtimeOpenClawGatewayVisibility,
65571
- promptTrace: runtimePromptTrace,
65572
- agentControllerConversationForDispatch: observedAgentControllerConversation ?? plannedAgentControllerConversation,
65573
- workingDirectory: activeRuntimeContext.providerRuntimeWorkingDirectory,
65574
- spaceAction: resolvedSpaceAction,
65575
- spaceActionProvenance: resolvedSpaceActionProvenance,
65576
- sourceEventId: parsedTask.sourceEventId,
65577
- targetProfileId: parsedTask.targetProfileId,
65578
- taskId: parsedTask.taskId
65582
+ runtimePromptPlan
65583
+ });
65584
+ const completedAgentControllerConversationOverride = agentControllerConversationOverride ?? null;
65585
+ const buildCurrentResultPayload = () => {
65586
+ const currentContextDelta = resolveDispatchContextDeltaFromRuntimeResult(runtimeResult.dispatchResult);
65587
+ const observedAgentControllerConversation = resolveObservedDispatchAgentControllerConversation({
65588
+ plannedAgentControllerConversation,
65589
+ contextDelta: currentContextDelta,
65590
+ contextResolution: runtimeResult.contextResolution ?? null,
65591
+ agentControllerConversationOverride: completedAgentControllerConversationOverride
65592
+ });
65593
+ dispatchExecution = buildDispatchExecution({
65594
+ bootstrapPlan: completedBootstrapPlan,
65595
+ agentControllerConversationId: effectiveAgentControllerConversationId,
65596
+ localRuntimeContextPlan: completedLocalRuntimeContextPlan,
65597
+ observedAgentControllerConversation,
65598
+ plannedAgentControllerConversation
65599
+ });
65600
+ return resolveDispatchResultPayload({
65601
+ attemptId: parsedTask.attemptId,
65602
+ contextDelta: currentContextDelta,
65603
+ contextResolution: runtimeResult.contextResolution ?? null,
65604
+ basePayload: runtimeResult.resultPayload,
65605
+ bootstrapTemplateFacts: bootstrapContext.bootstrapTemplateFacts,
65606
+ agentControllerRef: parsedTask.agentControllerRef,
65607
+ dispatchExecution,
65608
+ existingContextId: contextIdForDispatch,
65609
+ openClawBinding: runtimeOpenClawBinding,
65610
+ openClawGatewayVisibility: runtimeOpenClawGatewayVisibility,
65611
+ promptTrace: runtimePromptTrace,
65612
+ agentControllerConversationForDispatch: observedAgentControllerConversation ?? plannedAgentControllerConversation,
65613
+ workingDirectory: activeRuntimeContext.providerRuntimeWorkingDirectory,
65614
+ spaceAction: resolvedSpaceAction,
65615
+ spaceActionProvenance: resolvedSpaceActionProvenance,
65616
+ sourceEventId: parsedTask.sourceEventId,
65617
+ targetProfileId: parsedTask.targetProfileId,
65618
+ taskId: parsedTask.taskId
65619
+ });
65620
+ };
65621
+ resultPayload = buildCurrentResultPayload();
65622
+ const replySettlement = await settleAgentReplyProposals({
65623
+ initialResultPayload: resultPayload,
65624
+ reconsider: async (agentReplyObservationCursor) => {
65625
+ const reconsidered = await resolveRuntimeResultStructuredSpaceAction({
65626
+ agentReplyObservationCursor,
65627
+ computerFileAccessBoundary,
65628
+ ledgerIo: completedLedgerIo,
65629
+ ledgerPaths: input.ledgerPaths,
65630
+ instructionPrompt: completedRuntimePromptPlan,
65631
+ parsedTask,
65632
+ profileOwnerName: input.profileOwnerName,
65633
+ profileOwnerUserId: input.profileOwnerUserId,
65634
+ presenter: input.presenter,
65635
+ routeConfig,
65636
+ cliEntry: bootstrapContext.cliEntry,
65637
+ dispatchSpaceActionContext,
65638
+ runtimeResult,
65639
+ sendTargetReference,
65640
+ runtimeContext: activeRuntimeContext,
65641
+ runtimeEnvOverrides,
65642
+ runtimeControllerSupport,
65643
+ agentControllerConversationOverride
65644
+ });
65645
+ runtimeResult = reconsidered.runtimeResult;
65646
+ resolvedSpaceAction = reconsidered.resolvedSpaceAction;
65647
+ resolvedSpaceActionProvenance = reconsidered.resolvedSpaceActionProvenance;
65648
+ return buildCurrentResultPayload();
65649
+ },
65650
+ submit: (payload) => sendResultAndSummarize({
65651
+ attemptId: parsedTask.attemptId,
65652
+ connectionGeneration: input.deliverRequest.connectionGeneration,
65653
+ currentSocketRef,
65654
+ daemonSessionId: input.daemonSessionId,
65655
+ dispatchId: parsedTask.dispatchId,
65656
+ emitCompletedLifecycle: false,
65657
+ executionIdentityEcho: toRuntimeTransportResultIdentityEcho(input.deliverRequest),
65658
+ executionTokenEcho: parsedTask.executionTokenEcho,
65659
+ leaseEpoch: input.deliverRequest.leaseEpoch,
65660
+ payload,
65661
+ presenter: input.presenter,
65662
+ runtimeCoordinatorExecutionId: parsedTask.runtimeCoordinatorExecutionId,
65663
+ ledgerPaths: input.ledgerPaths,
65664
+ taskId: parsedTask.taskId,
65665
+ waitForSettlement: true
65666
+ })
65579
65667
  });
65668
+ resultPayload = replySettlement.resultPayload;
65669
+ settledResultSummary = replySettlement.resultSummary;
65580
65670
  const runtimeObservationPayload = buildRuntimeObservationPayload({
65581
65671
  continuityObservation,
65582
65672
  dispatchId: parsedTask.dispatchId,
@@ -65669,7 +65759,7 @@ async function handleDispatchDeliverFrame(input) {
65669
65759
  presenter: input.presenter,
65670
65760
  reasonCode: resolveRuntimeEvidenceResultReasonCode(resultPayload)
65671
65761
  });
65672
- const resultSummary = sendResultAndSummarize({
65762
+ const resultSummary = settledResultSummary ?? sendResultAndSummarize({
65673
65763
  attemptId: parsedTask.attemptId,
65674
65764
  connectionGeneration: input.deliverRequest.connectionGeneration,
65675
65765
  currentSocketRef,
@@ -65683,7 +65773,7 @@ async function handleDispatchDeliverFrame(input) {
65683
65773
  runtimeCoordinatorExecutionId: parsedTask.runtimeCoordinatorExecutionId,
65684
65774
  ledgerPaths: input.ledgerPaths,
65685
65775
  taskId: parsedTask.taskId
65686
- });
65776
+ }).resultSummary;
65687
65777
  emitDispatchPreviewEndFrame({
65688
65778
  attemptId: parsedTask.attemptId,
65689
65779
  connectionGeneration: input.deliverRequest.connectionGeneration,
@@ -66645,7 +66735,7 @@ async function coordinateConcurrentAgentReply(input) {
66645
66735
  };
66646
66736
  }
66647
66737
  };
66648
- const observation = await readObservation(input.parsedTask.sourceEventId);
66738
+ const observation = await readObservation(normalizeOptionalText$71(input.agentReplyObservationCursor) ?? input.parsedTask.sourceEventId);
66649
66739
  const coordinated = await coordinateDispatchAgentReply({
66650
66740
  action: input.resolvedSpaceAction,
66651
66741
  currentValue: {
@@ -67356,7 +67446,7 @@ function sendDispatchRejectionResult(input) {
67356
67446
  presenter: input.presenter,
67357
67447
  runtimeCoordinatorExecutionId: input.deliverRequest.payload.runtimeCoordinatorExecutionId,
67358
67448
  taskId: input.payload.taskId
67359
- });
67449
+ }).resultSummary;
67360
67450
  }
67361
67451
  function buildDispatchExecution(input) {
67362
67452
  const effectiveObservedAgentControllerConversation = input.observedAgentControllerConversation ?? input.plannedAgentControllerConversation;
@@ -67380,8 +67470,9 @@ function buildDispatchExecution(input) {
67380
67470
  };
67381
67471
  }
67382
67472
  function sendResultAndSummarize(input) {
67473
+ let settlement = null;
67383
67474
  try {
67384
- emitDispatchLifecycleTransition({
67475
+ if (input.emitCompletedLifecycle !== false) emitDispatchLifecycleTransition({
67385
67476
  attemptId: input.attemptId,
67386
67477
  connectionGeneration: input.connectionGeneration,
67387
67478
  currentSocketRef: input.currentSocketRef,
@@ -67394,7 +67485,7 @@ function sendResultAndSummarize(input) {
67394
67485
  runtimeCoordinatorExecutionId: input.runtimeCoordinatorExecutionId,
67395
67486
  taskId: input.taskId
67396
67487
  });
67397
- enqueueDispatchResultOutboxRecord({
67488
+ settlement = enqueueDispatchResultOutboxRecord({
67398
67489
  attemptId: input.attemptId,
67399
67490
  connectionGeneration: input.connectionGeneration,
67400
67491
  currentSocketRef: input.currentSocketRef,
@@ -67407,7 +67498,8 @@ function sendResultAndSummarize(input) {
67407
67498
  payload: input.payload,
67408
67499
  presenter: input.presenter,
67409
67500
  runtimeCoordinatorExecutionId: input.runtimeCoordinatorExecutionId,
67410
- taskId: input.taskId
67501
+ taskId: input.taskId,
67502
+ waitForSettlement: input.waitForSettlement
67411
67503
  });
67412
67504
  emitDaemonDispatchJournalEvent({
67413
67505
  attemptId: input.attemptId,
@@ -67465,7 +67557,53 @@ function sendResultAndSummarize(input) {
67465
67557
  });
67466
67558
  throw error;
67467
67559
  }
67468
- return summarizeTaskResultPayload(input.payload);
67560
+ return {
67561
+ resultSummary: summarizeTaskResultPayload(input.payload),
67562
+ settlement
67563
+ };
67564
+ }
67565
+ function requireDispatchResultOutboxSettlement(input) {
67566
+ if (!input.settlement) throw new DaemonServiceRunError({
67567
+ code: "dispatch.result_settlement.not_registered",
67568
+ message: "OpenMeld could not wait for the Agent reply because result settlement was not registered."
67569
+ });
67570
+ return input.settlement;
67571
+ }
67572
+ function shouldAwaitAgentReplySettlement(payload) {
67573
+ return (payload.status === "success" || payload.status === "partial_success") && payload.spaceAction?.type === "post_message";
67574
+ }
67575
+ function requireCompletedDispatchPlans(input) {
67576
+ if (!(input.bootstrapPlan && input.ledgerIo && input.localRuntimeContextPlan && input.runtimePromptPlan)) throw new DaemonServiceRunError({
67577
+ code: "dispatch.runtime_context.incomplete",
67578
+ message: "OpenMeld could not settle the Agent reply because its runtime context is incomplete."
67579
+ });
67580
+ return {
67581
+ bootstrapPlan: input.bootstrapPlan,
67582
+ ledgerIo: input.ledgerIo,
67583
+ localRuntimeContextPlan: input.localRuntimeContextPlan,
67584
+ runtimePromptPlan: input.runtimePromptPlan
67585
+ };
67586
+ }
67587
+ async function settleAgentReplyProposals(input) {
67588
+ let resultPayload = input.initialResultPayload;
67589
+ while (shouldAwaitAgentReplySettlement(resultPayload)) {
67590
+ const proposal = input.submit(resultPayload);
67591
+ const settlement = await requireDispatchResultOutboxSettlement(proposal);
67592
+ if (settlement.status === "accepted") return {
67593
+ resultPayload,
67594
+ resultSummary: proposal.resultSummary
67595
+ };
67596
+ if (settlement.status === "rejected_terminal") throw new DaemonServiceRunError({
67597
+ code: settlement.reasonCode,
67598
+ message: `OpenMeld rejected the Agent reply proposal: ${settlement.reasonCode}`
67599
+ });
67600
+ const observedThroughSignalId = resultPayload.spaceAction?.type === "post_message" ? resultPayload.spaceAction.observedThroughSignalId : null;
67601
+ resultPayload = await input.reconsider(normalizeOptionalText$71(observedThroughSignalId) ?? resultPayload.sourceEventId);
67602
+ }
67603
+ return {
67604
+ resultPayload,
67605
+ resultSummary: null
67606
+ };
67469
67607
  }
67470
67608
  async function requestDispatchAgentInteraction(input) {
67471
67609
  const requestedAtMs = Date.now();
@@ -68289,7 +68427,7 @@ function normalizeOptionalFrameValue(value) {
68289
68427
  return normalized.length > 0 ? normalized : null;
68290
68428
  }
68291
68429
  function normalizeResultAckStatus(value) {
68292
- return value === "accepted" || value === "rejected_terminal" || value === "retry_later" ? value : null;
68430
+ return value === "accepted" || value === "rejected_terminal" || value === "review_required" || value === "retry_later" ? value : null;
68293
68431
  }
68294
68432
  //#endregion
68295
68433
  //#region src/local-service/carrier/heartbeat-loop.ts
@@ -104540,4 +104678,4 @@ function isHumanInteractiveSpaceRuntime(runtime) {
104540
104678
  //#endregion
104541
104679
  export { formatTransportModeDisplay as $, formatOpenMeldCliTextBlock 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, emitCliJsonEnvelope as Ao, formatDualViewGuideForDisplay as Ar, readDaemonStartFailureLogTailLines as At, runAgents as B, registerAgentActivityRoute as Ba, resetCurrentCommandCheckState as Bi, promptSearchSelect as Bn, organizationJoinLinkErrorResponseSchema as Bo, resolveServiceReadinessFromServiceStatus as Br, writeInstalledLocalComponentsSnapshot as Bt, buildFormalSignalReadPayload as C, resolveOpenMeldProfile as Ca, ensureDaemonRuntimePaths as Ci, submitRuntimeAgentControllerReports as Cn, unbindProject as Co, registerSkillsTargetSelectionOptions as Cr, buildProfileWorkspacePresentation as Ct, isSpaceCommandOutputHandledError as D, getSelectedOpenMeldProfileId as Da, createAgentExecutionStatusDisplayRows as Di, resolveLocalAgentControllerReportDecision as Dn, renderInfoCard as Do, registerBuiltinAgentSelectionOptions as Dr, createDelayedSpinner as Dt, parseEnvelope as E, clearSelectedOpenMeldProfileId as Ea, buildAgentControllerRef as Ei, resolveLocalAgentControllerLaunchability as En, readControllerTaskLifecycleOutboxHealth as Eo, registerAuthLoginRequestOptions as Er, emitDaemonAgentOverview as Et, prepareLocalAgentReadiness as F, getProfileDefaultView as Fa, resolveEvidenceSyncHealth as Fi, buildSpaceRoundReadProjection as Fn, cliJsonOutputEnvelopeSchema as Fo, areAllowedActionsEquivalent as Fr, readGatewayJsonResponse as Ft, runAgentsCustomUpdate as G, installAgentActivityIntegrations as Ga, readCurrentObservedDaemonRuntimeStatus as Gi, assertDispatchOwnedRuntimePublicWriteAllowed as Gn, formatHumanReplyReadinessReason as Gr, runSkillsCheck as Gt, runAgentsCustomAdd as H, unregisterAgentActivityRoute as Ha, inspectDaemonServiceInventory as Hi, runInteractivePrompt as Hn, compareAgentControllerRefsForDisplay as Ho, resolveCurrentReplyReadinessSnapshot as Hr, runDaemonServiceParticipationGate as Ht, buildReplyReadinessGuidance as I, setProfileDefaultView as Ia, resolveNativeAgentControllerPermissionModeForController as Ii, buildUpdatesReplyWorkflowProjection as In, cliJsonSkillsListEnvelopeSchema as Io, buildAgentFacingPublicationModeGuideLines as Ir, readGatewayTextResponse as It, runAgentsEnable as J, uninstallAgentActivityIntegrations as Ja, readDaemonServiceJobCrashExitCode as Ji, writeDispatchSpaceActionRecord as Jn, resolveOpenClawLocalDiagnosticsValue as Jr, runSkillsUninstall as Jt, runAgentsDetect as K, readAgentActivityIntegrationStatus 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, cliJsonSkillsLoadEnvelopeSchema as Lo, canonicalizeAllowedActions as Lr, toStructuredGatewayFailure as Lt, resolveSpaceAccessLabel as M, resolveAuthenticationGuidance as Ma, resolveAgentControllerPermissionModeForController as Mi, buildDispatchResultReplyWorkflowProjection as Mn, outJsonLine as Mo, formatAgentOverviewPayload as Mr, createCliSpaceApi as Mt, emitSpaceAgentOverview as N, resolveAuthenticationGuidanceFromError as Na, resolveAgentExecutionStatus as Ni, buildSignalIndex as Nn, outLine as No, OPENMELD_AGENT_MENTAL_MODEL_LINES as Nr, fetchSpaceMeta as Nt, assertFullSignalIdArgument as O, setSelectedOpenMeldProfileId as Oa, getAgentControllerPermissionModeDisplayMetadata as Oi, inspectSpaceCacheFile as On, renderTextInfoCard as Oo, buildAgentOverviewFromContract as Or, shouldEmitAgentOverview as Ot, emitSpaceCliAgentOverview as P, resolveAuthenticationGuidanceFromMessage as Pa, resolveAgentProfileEditCapabilities as Pi, buildSignalMessageReadProjection as Pn, cliBinaryDeltaPatchSchema as Po, SPACE_CONTRACT_ALLOWED_ACTION_ORDER as Pr, updateSpaceMeta as Pt, runAgentsShow as Q, formatOpenMeldCliLine 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, cliJsonSkillsShowEnvelopeSchema as Ro, runDaemonServiceFullAlignment as Rr, parseJsonResponse$1 as Rt, buildFormalDispatchResultReadPayload as S, primeOpenMeldProfilesSessionCache as Sa, readRecentDaemonLifecycleEvents as Si, submitRuntimeAgentControllerReport as Sn, setDefaultProjectConnection 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, enqueueControllerTaskLifecycleEventWhileLocked as To, registerDaemonControlTargetOptions as Tr, reconcileCliVersionView as Tt, runAgentsCustomList as U, AGENT_ACTIVITY_INTEGRATION_OWNER as Ua, resolveVersionChangeDirection as Ui, assessCliUpdate as Un, package_default as Uo, formatAgentReplyReadinessLabel as Ur, runDaemonStartDecisionPrompt as Ut, runAgentsConfig as V, resolveAgentActivityRouteForPath as Va, startCurrentCommandCheckScope as Vi, isReturnKeypress as Vn, revokeOrganizationJoinLinkResponseSchema as Vo, resolveDaemonServiceFreshnessWarning as Vr, resolveDaemonServiceParticipationStatus as Vt, runAgentsCustomRemove as W, defaultManagedIntegrationPaths as Wa, readCurrentDaemonRuntimeContext as Wi, isCliUpdateCheckApplicable as Wn, formatDeviceReplyReadinessLabel as Wr, collectSkillsReadinessSnapshot as Wt, runAgentsManage as X, formatOpenMeldCliCommand as Xa, buildInstallSelfJsonPayload as Xi, resolveElapsedTimeMs as Xn, createModelCatalogReadSession as Xr, ensureLocalSkills as Xt, runAgentsList as Y, formatInlineOpenMeldCliCommands as Ya, resolveDaemonServiceManager as Yi, formatElapsedTime as Yn, syncProfileWorkspaceState as Yr, runSkillsUpdate as Yt, runAgentsRepair as Z, formatOpenMeldCliCommands 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, listProjectBindings as _o, createStartAuthenticationGuideError as _r, runDaemonRunAfterEntryChecks as _t, runSpaceDelete as a, isBinaryDistribution as aa, describeProfileWorkspacePathValidationFailure as ai, runAuthLogin as an, upsertDaemonServiceContract as ao, createSpaceAddMembersGuideError as ar, renderOpenMeldHeader as at, loadSpaceSignalIndexOrNull as b, deleteOpenMeldProfile as ba, classifyDaemonServiceRunStartability as bi, computeRetryDelayMs as bn, removeProjectConnection as bo, getCommandHintsFromContract as br, runDaemonStop as bt, runSpaceLeave as c, toStartBackgroundHelperExecutionCompatibility as ca, resolveAgentProfilePrimaryAgentControllerReport as ci, runAuthStatus as cn, buildAgentActivityEvent as co, createSpaceLeaveGuideError as cr, resolveGatewayWebOrigin as ct, runSpaceRemoveMembers as d, formatMessage as da, listBuiltinAgentsRegistryEntries as di, formatActiveOrganizationLabel as dn, readCodexSessionTitles as do, createSpaceRemoveMembersGuideError as dr, runDaemonAutostart as dt, ensureVersionStateReady as ea, readProfileWorkspaceConfig as ei, connectWebSocket as en, formatProfileAwareOpenMeldCliCommands as eo, createDoctorFailedGuideError as er, postLocalParticipationMutationReconcile as et, runSpaceSend as f, parseCliViewMode as fa, notifyDaemonRouteCatalogChanged as fi, createProfileByKind as fn, enqueueAgentActivityHookEvent as fo, createSpaceResultGuideError as fr, runDaemonBackgroundStartForDecision as ft, buildHumanReadSignalsTranscriptItems as g, requireOpenMeldProfile as ga, buildOnboardingPlan as gi, ensureAgentProfileRuntimeBinding as gn, bindProject as go, createStartAgentIdentityGuideError as gr, runDaemonReinstall as gt, runSpaceWriteWithPasswordRetry as h, isSelectedOpenMeldProfileRequiredError as ha, buildDaemonRouteObservationPresentation as hi, promptTextEntry as hn, removeProjectOutbox as ho, createSpaceUpdatesGuideError as hr, runDaemonInterrupt as ht, runSpaceCreate as i, writeVersionState as ia, validateCustomProfileWorkspacePath as ii, evaluateCommandAuthentication as in, readDaemonServiceContract as io, createResetConfirmationGuideError as ir, renderOpenMeldBrandBlockLines as it, resolveOpenMeldProfileForSpaceCommand as j, createAuthenticationError as ja, parseAgentControllerRef as ji, buildDispatchResultMessageReadProjection as jn, errLine as jo, buildDualViewGuideMessage as jr, fetchSpaceUpdates as jt, assertValidSpaceIdTarget as k, buildAgentAuthenticationGuide as ka, getAgentControllerPermissionModeFieldLabel as ki, upsertSpaceConfig as kn, sanitizeTerminalDisplayText as ko, DualViewGuideError as kr, runDaemonStartupPreflight as kt, runSpaceList as l, resolveCurrentDaemonExpectedVersion as la, listAgentTargetStates as li, buildAuthStatusRows as ln, resolveObservedAgentActivityBinding as lo, createSpaceMenuGuideError as lr, resolveSpaceSendText as lt, runSpaceReadWithPasswordRetry as m, resolveViewProfileKey as ma, PREPARE_SESSION_RECONNECT_GRACE_MS as mi, resolveCreateProfileName as mn, readAgentActivityOutboxHealth as mo, createSpaceTargetGuideError as mr, runDaemonInstall as mt, promptAndConfirmSpacePassword as n, fetchLatestPackageInfo as na, setCustomProfileWorkspace as ni, buildCommandAuthenticationPromptMessage as nn, resolveUserFacingCliEntryCommand as no, createProfileCreateGuideError as nr, colorizeDisplayProfileLabel as nt, runSpaceHistory as o, resolveOpenMeldDistribution as oa, syncDeviceRuntimeStateProjection as oi, runAuthLogout as on, readAgentActivityContextForPath as oo, createSpaceAliasTargetGuideError as or, renderOpenMeldLogo as ot, runSpaceWatch as p, resolveRuntimeContext as pa, resolveLocalRegistryAgentIdFromAgentControllerRef as pi, resolveCreateProfileKind as pn, removeProjectInbox as po, createSpaceSubcommandTargetGuideError as pr, runDaemonCancel as pt, runAgentsDisable as q, resolveAgentActivityDispatcherCommand 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, syncLocalAgentActivity as ro, createProfileMenuGuideError as rr, printOpenMeldBanner as rt, runSpaceJoin as s, resolveDaemonRuntimeContractCompatibility as sa, createPrimaryBindingReadSession as si, runAuthMenu as sn, removeAgentActivityContextCache as so, createSpaceContractSetGuideError as sr, renderOpenMeldTagline as st, buildCreateSpacePasswordPromptConfig as t, fetchLatestCliBinaryRelease as ta, resolveConfiguredProfileWorkspacePath as ti, assessServerRequiredVersion as tn, resolveSetupFollowUpCliEntryCommand as to, createProfileActionGuideError as tr, colorizeAgentLabel as tt, runSpacePassword as u, createPresenter as ua, reconcileNewRunnableBuiltinAgentsForSetup as ui, buildAuthStatusSnapshot as un, normalizeSharedSessionTitle as uo, createSpacePublicationSetGuideError as ur, runDaemon as ut, buildIdentityOnlyMembersSnapshotForReadProjection as v, createOpenMeldAgentProfile as va, buildDaemonServiceTargetSpec as vi, resolveServiceParticipationReadiness as vn, listProjectConnectionsWithStatus as vo, createUpgradeConfirmationGuideError as vr, runDaemonSnapshot as vt, buildHumanReplyContextSummary as w, updateOpenMeldProfile as wa, resolveDaemonDeviceId as wi, collectLocalAgentControllerInventory as wn, canonicalizeLocalProjectPath as wo, getCliVersionInfo as wr, buildProfileWorkspaceRows as wt, toSpaceMetaUpsertInput as x, listOpenMeldProfiles as xa, classifyDaemonServiceWakeability as xi, submitProfileRuntimeAgentControllerReport as xn, runIfAgentActivityBindingGenerationIsCurrent as xo, registerSpaceMemberSelectionOptions as xr, runDaemonTeardownStrict as xt, loadSpaceIdentityDirectoryOrNull as y, createOpenMeldHumanProfile as ya, resolveDaemonServiceAlignmentDecision as yi, assessActionParticipationCandidate as yn, migrateProjectBindingStore as yo, getCommandEntryContract as yr, runDaemonStatusFlow as yt, resolveAgentProfileSetup as z, isAgentActivityRouteRegistered as za, isCurrentCommandCheckScopeActive as zi, promptSearchMultiselect as zn, getOrganizationJoinLinkResponseSchema as zo, formatDaemonFailureContextText as zr, resolveLocalComponentsStatus as zt };
104542
104680
 
104543
- //# sourceMappingURL=command-QtSLFcgW.js.map
104681
+ //# sourceMappingURL=command-Doy58YKi.js.map