openmeld 0.3.155 → 0.3.156

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 { $ as resolveOpenMeldOrphanedLockIssue, $t as systemDir, At as legacyAccountProfileSpacesDir, B as toSpaceRemoveMembersUrl, C as updateConfiguredDeviceRuntimeState, Ct as accountProfileViewPath, D as normalizeBaseUrl, Dt as deviceOpenClawProfileDir, Et as deviceOpenClawProfileBootstrapPath, Ft as openMeldManagedBinaryPath, G as acquireLock, H as toSpaceUpdatesUrl, I as toSpaceLeaveUrl, It as openMeldManagedVersionBinaryPath, J as isOpenMeldOrphanedLockError, Jt as resolveOpenMeldRootDir, Kt as resolveOpenMeldEnvPreset, L as toSpaceMembersUrl, Lt as openMeldManagedVersionDir, M as toSpaceCursorUrl, Mt as normalizeOpenMeldProfileId, N as toSpaceDeleteUrl, Nt as openMeldBackupsDir, O as toDaemonRouteObservationUrl, Ot as deviceOpenClawProfileWorkspaceDir, Pt as openMeldBinDir, R as toSpaceMetaUrl, Rt as openMeldRootDir, S as setConfiguredSkillsConfig, St as accountProfileSpaceCacheDir, T as updateConfiguredSkillsConfig, Tt as accountsDir, U as toSpaceWsUrl, Ut as resolveDefaultOpenMeldHomeDirname, W as isLoopbackHostname, Wt as resolveExplicitOpenMeldEnvPreset, Xt as runtimeLogsDir, Yt as runtimeDir, Zt as skillsDir, _ as getConfiguredViewCustomization, _n as normalizeBuiltinAgentControllerId, a as resolveBaseUrl, an as runtimeStreamingModeSchema, at as readCliContextState, bt as OPENMELD_HOME_ENV_KEY, c as resolveExplicitGatewayUrlOrThrow, cn as buildAgentControllerConversationRef, ct as writeCliContextState, d as createDefaultRuntimeAgentControllerSettings, dn as HOSTED_CENTER_AGENT_CONTROLLER_REF, en as formatLocalMachineIssueMessage, et as runWithHeldLock, f as getConfiguredDaemonDispatchLimits, fn as HOSTED_CENTER_AGENT_CONTROLLER_REF_ID, ft as assessLocalMachineFailure, g as getConfiguredSkillsConfig, gn as canonicalizeBuiltinAgentControllerRef, h as getConfiguredOpenMeldToolsMaintenance, hn as canonicalizeAgentControllerRef, i as normalizeGatewayBaseUrlOrNull, it as listCliContextStates, j as toSpaceCreateUrl, jt as normalizeAccountKey, kt as isPublishedOpenMeldHome, l as DEFAULT_RUNTIME_AGENT_TRANSPORT_MODE, ln as conversationPolicySchema, mn as buildAgentControllerRoutingKey, mt as createBackgroundExecutionBlockedIssue, nn as runtimeAgentControllerConversationIdMappingSpecSchema, o as resolveBaseUrlOrNull, on as runtimeTransportModeSchema, ot as resolveCliContext, p as getConfiguredDeviceRuntimeState, q as isOpenMeldLockError, qt as resolveOpenMeldPresetOwnedPathInput, r as normalizeGatewayBaseUrl, rn as runtimeAgentControllerLaunchContractSchema, s as resolveDefaultGatewayBaseUrl, st as resolveCliContextId, un as resolveBuiltinAgentControllerConversationKind, ut as resolveOpenMeldLaneDescriptor, v as getRuntimeConfigReadHealth, vn as normalizeKnownBuiltinAgentControllerId, vt as CURRENT_PROCESS_START_IDENTITY, wt as accountProfileWorkspacePath, x as setConfiguredOpenMeldToolsMaintenance, xt as accountProfileLocalMetaPath, y as resolveRuntimeSkillsCustomTargetId, yn as parseAgentControllerRef$1, yt as isProcessIdentityAlive, z as toSpacePasswordUrl, zt as openMeldVersionsDir } from "./base-url-CY_j4bLH.js";
4
- import { $ as submitAgentControllerTaskLifecycleEventItemSchema, $t as spaceMemberDirectoryAllowedRelationsSchema, A as MAX_TEXT_LENGTH, At as submitFeedbackIssueRequestSchema, B as toErrorMessage$44, Bt as AGENT_ACTIVITY_PRESENCE_TTL_MAX_MS, C as createSpaceApi, Cn as agentControllerCollaborationModeSchema, Ct as ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE, D as toStructuredApiClientFailure, Dt as profileCapabilitiesResponseSchema, E as resolveProfileSpaceHistoryGatewayHost, Et as authProfileManagedRoleSchema, F as OPENMELD_HEADER_PROFILE_ID, Ft as listCenterAgentRoutinesResponseSchema, Gt as agentActivitySnapshotResponseSchema, H as toErrorMessage$43, It as pauseCenterAgentRoutineResponseSchema, Jt as localProjectControlDiscoverProjectsResponseSchema, Kt as localProjectControlConnectionSchema, L as OPENMELD_HEADER_REQUEST_ID, Lt as resumeCenterAgentRoutineResponseSchema, M as parseIncoming$1, Mt as createCenterAgentRoutineResponseSchema, N as parseServerErrorFrame$1, Nt as deleteCenterAgentRoutineResponseSchema, O as DAEMON_STREAM_KEEPALIVE_PING, Ot as profileErrorResponseSchema, P as resolveCustomMentionAliasOverride, Pt as listCenterAgentRoutineRunsResponseSchema, Qt as spaceMemberAgentWakeAvailabilitySchema, R as OPENMELD_HEADER_SPACE_ADDRESSING_VERSION, Rt as updateCenterAgentRoutineResponseSchema, S as createRuntimeReportingApi, Sn as agentControllerPermissionModeSchema, St as organizationDirectoryResponseSchema, T as resolveAccountSpaceIndexGatewayHost, U as getSpaceUpdatesResponseSchema, V as sleep, Vt as agentActivityEventSchema, W as SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS, Xt as postSpaceMembersResponseSchema, Yt as leaveSpaceResponseSchema, Zt as removeSpaceMembersResponseSchema, _t as listOrganizationSkillsResponseSchema, a as buildSpaceAttachmentDownloadPath, at as gatewayErrorEnvelopeSchema, bt as organizationSkillSummarySchema, c as createAgentProfileBindingApi, cn as observedLocalAgentSessionSchema, ct as computerFileAccessDaemonFrameSchema, d as createCurrentDeviceApi, dn as listProjectsResponseSchema, dt as modelCatalogSchema, en as spaceMemberDirectoryEntrySchema, fn as projectSchema, ft as organizationSpaceDirectoryWithMemberCountsResponseSchema, g as createOrganizationApi, gt as getOrganizationSkillResponseSchema, h as createOpenMeldApiClient, hn as openCodePermissionConfigSchema, ht as spaceMetaSchema, i as buildProfileSpaceHistoryUpsertPath, j as parseEnvelope$1, jt as submitFeedbackIssueResponseSchema, kt as organizationComputersResponseSchema, ln as archiveProjectResponseSchema, lt as computerFileAccessPolicyInputSchema, m as createLocalRuntimeExpectedRoutesApi, mn as centerAgentToolSpeakerSchema, mt as spaceCreatorSchema, n as OpenMeldApiClientInvalidResponseError, nn as spaceMemberKindSchema, o as createAccountSpaceIndexApi, on as agentActivitySessionInventoryResponseSchema, ot as COMPUTER_FILE_ACCESS_RUNTIME_CAPABILITY, p as createFetchTransport, pn as updateProjectResponseSchema, pt as resolveInitialSpaceAccessMode, qt as localProjectControlDaemonFrameSchema, r as buildProfileSpaceHistoryStatusPath, s as createAgentActivityApi, st as OPENMELD_RUNTIME_CAPABILITIES_HEADER, t as OpenMeldApiClientHttpError, tn as spaceMemberDirectorySchema, un as createProjectResponseSchema, ut as computerFileAccessPolicySchema, wn as toCompatibleSpaceAddressingRequestWireValue, wt as ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE, y as createProfileSpaceHistoryApi, yt as organizationSkillReleaseSummarySchema } from "./dist-CUeqTNJi.js";
4
+ import { $ as submitAgentControllerTaskLifecycleEventItemSchema, $t as spaceMemberDirectoryAllowedRelationsSchema, A as MAX_TEXT_LENGTH, At as submitFeedbackIssueRequestSchema, B as toErrorMessage$44, Bt as AGENT_ACTIVITY_PRESENCE_TTL_MAX_MS, C as createSpaceApi, Cn as agentControllerCollaborationModeSchema, Ct as ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE, D as toStructuredApiClientFailure, Dt as profileCapabilitiesResponseSchema, E as resolveProfileSpaceHistoryGatewayHost, Et as authProfileManagedRoleSchema, F as OPENMELD_HEADER_PROFILE_ID, Ft as listCenterAgentRoutinesResponseSchema, Gt as agentActivitySnapshotResponseSchema, H as toErrorMessage$43, It as pauseCenterAgentRoutineResponseSchema, Jt as localProjectControlDiscoverProjectsResponseSchema, Kt as localProjectControlConnectionSchema, L as OPENMELD_HEADER_REQUEST_ID, Lt as resumeCenterAgentRoutineResponseSchema, M as parseIncoming$1, Mt as createCenterAgentRoutineResponseSchema, N as parseServerErrorFrame$1, Nt as deleteCenterAgentRoutineResponseSchema, O as DAEMON_STREAM_KEEPALIVE_PING, Ot as profileErrorResponseSchema, P as resolveCustomMentionAliasOverride, Pt as listCenterAgentRoutineRunsResponseSchema, Qt as spaceMemberAgentWakeAvailabilitySchema, R as OPENMELD_HEADER_SPACE_ADDRESSING_VERSION, Rt as updateCenterAgentRoutineResponseSchema, S as createRuntimeReportingApi, Sn as agentControllerPermissionModeSchema, St as organizationDirectoryResponseSchema, T as resolveAccountSpaceIndexGatewayHost, U as getSpaceUpdatesResponseSchema, V as sleep, Vt as agentActivityEventSchema, W as SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS, Xt as postSpaceMembersResponseSchema, Yt as leaveSpaceResponseSchema, Zt as removeSpaceMembersResponseSchema, _t as listOrganizationSkillsResponseSchema, a as buildSpaceAttachmentDownloadPath, at as gatewayErrorEnvelopeSchema, bt as organizationSkillSummarySchema, c as createAgentProfileBindingApi, cn as observedLocalAgentSessionSchema, ct as computerFileAccessDaemonFrameSchema, d as createCurrentDeviceApi, dn as listProjectsResponseSchema, dt as modelCatalogSchema, en as spaceMemberDirectoryEntrySchema, fn as projectSchema, ft as organizationSpaceDirectoryWithMemberCountsResponseSchema, g as createOrganizationApi, gt as getOrganizationSkillResponseSchema, h as createOpenMeldApiClient, hn as openCodePermissionConfigSchema, ht as spaceMetaSchema, i as buildProfileSpaceHistoryUpsertPath, j as parseEnvelope$1, jt as submitFeedbackIssueResponseSchema, kt as organizationComputersResponseSchema, ln as archiveProjectResponseSchema, lt as computerFileAccessPolicyInputSchema, m as createLocalRuntimeExpectedRoutesApi, mn as centerAgentToolSpeakerSchema, mt as spaceCreatorSchema, n as OpenMeldApiClientInvalidResponseError, nn as spaceMemberKindSchema, o as createAccountSpaceIndexApi, on as agentActivitySessionInventoryResponseSchema, ot as COMPUTER_FILE_ACCESS_RUNTIME_CAPABILITY, p as createFetchTransport, pn as updateProjectResponseSchema, pt as resolveInitialSpaceAccessMode, qt as localProjectControlDaemonFrameSchema, r as buildProfileSpaceHistoryStatusPath, s as createAgentActivityApi, st as OPENMELD_RUNTIME_CAPABILITIES_HEADER, t as OpenMeldApiClientHttpError, tn as spaceMemberDirectorySchema, un as createProjectResponseSchema, ut as computerFileAccessPolicySchema, wn as toCompatibleSpaceAddressingRequestWireValue, wt as ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE, y as createProfileSpaceHistoryApi, yt as organizationSkillReleaseSummarySchema } from "./dist-BkbTq1JP.js";
5
5
  import { $r as openMeldRequestContextSchema, A as runtimeTransportRegisterSessionRequestSchema, An as resolveMessageEnvelopeTargetField, Bn as agentInteractionRequestSchema, Br as normalizeSpacePasswordText, C as runtimeTransportLocalAgentControlManageInstallationFramePayloadSchema, Ci as resolveCommandAgentWorkActivity, Cr as string, Ct as sanitizeSignalTextPreview, D as runtimeTransportLookupRouteOwnerServiceEvidenceSchema, Dn as getSpaceMessageAddressingRelationSupportForTargetKind, E as runtimeTransportLocalAgentControlSetProfileWorkspaceFramePayloadSchema, En as formatCanonicalMentionLiteral, F as runtimeTransportRouteCatalogChangedFramePayloadSchema, G as openMeldDaemonTaskResultPayloadSchema, Gn as formatLocalSetupActionDescription, H as openMeldDaemonProviderAccessEvidenceSchema, Hr as resolveSingleSpaceMentionLabels, Ir as runtimeCoordinatorExecutionTokenEnvelopeSchema, J as LOCAL_FOLDER_PICKER_RUNTIME_CAPABILITY, Jn as localCliComponentUpdateProjectionSchema, Kn as formatLocalSetupActionLabel, L as runtimeTransportSubmitTaskResultRequestSchema, Lr as runtimeTransportDeliveryExecutionIdentitySchema, M as runtimeTransportRejectedProfileRegistrationSchema, Mr as parseOptionalClientMessageId, N as runtimeTransportResumeControllerConversationFramePayloadSchema, O as runtimeTransportOpenMeldToolsControlFramePayloadSchema, Or as url, P as runtimeTransportResumeControllerConversationResultFramePayloadSchema, Q as localFolderPickerHelperResultSchema, Qn as localServiceComponentUpdateProjectionSchema, Qr as openMeldProfileIdSchema, R as OPENMELD_ORIGINAL_ERROR_MAX_LENGTH, Rn as AGENT_INTERACTION_DEFAULT_TIMEOUT_MS, S as runtimeTransportLocalAgentControlInterruptFramePayloadSchema, Sr as strictObject, T as runtimeTransportLocalAgentControlSetEnabledFramePayloadSchema, Tn as collectCanonicalMentionTextFragments, U as openMeldDaemonTaskResultEnvelopeWriteSchema, Un as formatLocalComponentsSummaryDescription, Ur as resolveSpaceMentionLabels, Vn as agentInteractionResolutionSchema, W as openMeldDaemonTaskResultOpenClawGatewayVisibilityStatusSchema, Wn as formatLocalComponentsSummaryLabel, X as localFolderPickerDaemonFrameSchema, Y as OPENMELD_LOCAL_FOLDER_PICKER_CAPABILITY_HEADER, Z as localFolderPickerHelperProtocolResultSchema, Zt as spaceFileNameSchema, _ as runtimeTransportForkAgentSessionResultSchema, _i as resolvePublicAgentFailureRecovery, a as localWakeRouteWorkingFolderObservationSchema, an as openMeldDaemonControlPlaneResponseSchema, ar as openMeldToolsUpdateRequestSourceSchema, b as runtimeTransportLocalAgentControlCancelFramePayloadSchema, bt as SPACE_MEMBER_REMOVE_NOTICE_PURPOSE, c as runtimeTransportDispatchInteractionDeliveredRequestSchema, cn as providerDispatchRuntimeContextSchema, cr as boolean, d as runtimeTransportDispatchLifecycleRequestSchema, ei as MAX_PROFILE_WORKING_DIRECTORY_LENGTH, f as runtimeTransportDispatchPreviewEndRequestSchema, fi as trimmedStringFromUnknown, fr as enumFactory, g as runtimeTransportErrorCodeSchema, gi as resolvePublicAgentAvailabilityCopy, h as runtimeTransportDispatchToolActivityRequestSchema, hi as resolveMappedPublicAgentFailureReason, hr as literal, ht as CONVERSATION_CONTINUITY_WARNING_PURPOSE, i as localWakeRouteReportSchema, in as openMeldDaemonControlPlaneRequestSchema, j as runtimeTransportRegisterSessionResponseSchema, k as runtimeTransportOpenMeldToolsControlResultFramePayloadSchema, kn as normalizeMessageEnvelope, l as runtimeTransportDispatchInteractionRequestSchema, ln as conversationExecutionStateSchema, m as runtimeTransportDispatchRuntimeEvidenceRequestSchema, mr as iso, n as daemonExecutionCompatibilitySchema, ni as normalizeOptionalWorkingDirectory, nr as openMeldToolsUpdateOperationPhaseSchema, o as runtimeTransportCapabilitiesSchema, p as runtimeTransportDispatchPreviewRequestSchema, pi as MAX_TEXT_LENGTH$1, q as openMeldSpaceEgressActionSchema, qn as installedLocalComponentsSnapshotSchema, qt as resolveSpaceFileMimeType, r as daemonStreamFrameSchema, ri as openMeldRuntimeProfileIdSchema, s as runtimeTransportDeliverDispatchRequestSchema, si as profileWorkspaceModeSchema, sn as skippedDaemonProfileSchema, t as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, ti as agentProfileIdSchema, tr as openMeldToolsUpdateAttemptSchema, u as runtimeTransportDispatchInteractionResponseFramePayloadSchema, ur as discriminatedUnion, v as runtimeTransportHeartbeatRequestSchema, vi as sanitizeDispatchErrorSummary, w as runtimeTransportLocalAgentControlRefreshCatalogFramePayloadSchema, wn as MESSAGE_MENTION_TYPE_VALUES, x as runtimeTransportLocalAgentControlForkSessionFramePayloadSchema, xt as SPACE_MENTION_REJECT_NOTICE_PURPOSE, y as runtimeTransportHeartbeatResponseSchema, yi as shouldPreferMappedPublicAgentFailureReason, yt as SPACE_MEMBER_JOIN_NOTICE_PURPOSE, z as isOriginalErrorSafeForMessageDetails, zt as SPACE_FILE_MAX_SIZE_BYTES } from "./runtime-transport-21JL5nu5.js";
6
6
  import { r as daemonServiceLaneSchema, t as daemonServiceContractSchema } from "./service-contract-CRyDcIIf.js";
7
7
  import { A as daemonStatePath, B as releaseDaemonServiceLifecycleLock, C as daemonServiceLegacyExecutableWrapperPath, D as daemonServiceStableExecutableWrapperPath, E as daemonServiceStableBinaryExecutablePath, F as isDaemonServiceRuntimeHeartbeatStale, G as setDaemonServiceRuntimeState, H as resolveDaemonServiceRuntimeMetadata, I as readDaemonControlPlaneToken, J as withDaemonServiceRegistrationMutationLock, K as uninstallDaemon, L as readDaemonServiceLifecycleLockMeta, M as getDaemonRuntimeStatus, N as getDaemonStatus, O as daemonServiceStableLauncherPath, P as installDaemon, R as readDaemonServiceLifecycleLockMetaWithCleanup, S as daemonServiceExecutableWrapperPaths$1, T as daemonServiceRepairJournalPath, U as restoreDaemonInstallStateSnapshot, V as resolveDaemonControlPlaneEndpoint, W as rotateDaemonControlPlaneTokenIfExpired, X as withDaemonServiceStopLock, Y as withDaemonServiceRunLock, _ as daemonRuntimeDataPath, a as DAEMON_HEARTBEAT_STALE_MS, b as daemonRuntimeStateRootPath, c as DAEMON_SERVICE_RUNTIME_DETACHED_ENV, d as DAEMON_SERVICE_RUNTIME_SYSTEM_SERVICE_ENV, f as acquireDaemonServiceLifecycleLock, g as daemonRuntimeBundlesPath, h as daemonLifecycleJournalPath, i as writeDaemonLocalStateFile, j as ensureDaemonControlPlaneToken, k as daemonServiceUpdateWorkerBinaryExecutablePath, l as DAEMON_SERVICE_RUNTIME_MODE_ENV, m as daemonDispatchJournalPath, n as writeDaemonRuntimeLease, o as DAEMON_SERVICE_RUNTIME_AUTO_START_ENV, p as clearDaemonServiceRuntimeState, q as withDaemonServiceReconcileLock, r as readDaemonLocalStateFile, s as DAEMON_SERVICE_RUNTIME_CONTROLLER_ENV, t as readDaemonRuntimeLease, u as DAEMON_SERVICE_RUNTIME_STATE_SCHEMA, v as daemonRuntimeRootPath, w as daemonServiceRecognizedExecutablePaths$1, x as daemonServiceActiveBundleStatePath, y as daemonRuntimeServiceManagerPath, z as readDaemonServiceRuntimeSnapshot } from "./daemon-runtime-lease-Dqmxqrzi.js";
8
8
  import { A as HEARTBEAT_RESPONSE_TIMEOUT_MS$1, B as RUNTIME_AGENT_CONTROLLER_REPORT_SYNC_INTERVAL_MS$1, C as DAEMON_RUNTIME_CONTRACT_EPOCH$1, D as DEFAULT_GATEWAY_CHAIN_TIMEOUT_MS$1, E as DAEMON_STREAM_KEEPALIVE_PONG_TIMEOUT_MS$1, F as OPENCLAW_CLI_TIMEOUT_MS$1, H as RUNTIME_STATE_PERSIST_MIN_INTERVAL_MS$1, I as PROVIDER_CONVERSATION_PROOF_SYNC_INTERVAL_MS$1, L as PROVIDER_CONVERSATION_PROOF_SYNC_RETRY_INTERVAL_MS$1, N as MIN_HEARTBEAT_INTERVAL_MS$2, O as DEFAULT_HEARTBEAT_INTERVAL_MS$1, R as REGISTER_RESPONSE_TIMEOUT_MS$1, S as CATALOG_SYNC_SIGNAL_POLL_INTERVAL_MS$1, T as DAEMON_STREAM_KEEPALIVE_INTERVAL_MS$1, V as RUNTIME_AGENT_CONTROLLER_REPORT_SYNC_RETRY_INTERVAL_MS$1, a as beginAuthSessionTransition, h as setAuthSession, j as MAX_HEARTBEAT_INTERVAL_MS$2, l as getAuthSessionState, o as clearAuthSession, r as assertAuthSessionMutationAvailable, v as isBinaryDistribution, w as DAEMON_STREAM_CONNECT_TIMEOUT_MS$1, x as CATALOG_SYNC_RETRY_INTERVAL_MS$1, y as resolveOpenMeldDistribution } from "./auth-session-Bg4ATgGF.js";
9
- import { a as AuthRequestCredentialError, c as buildOpenMeldRequestContextHeadersWithAuth, d as buildOpenMeldRequestContextFromProfile, f as buildOpenMeldRequestContextFromProfileIdentity, i as resolveSpaceRequestTimeoutMsForDiagnostics, l as buildRequestAuthHeaders, m as resolveAuthRequestCompatibility, n as createCliApiClientFoundation, o as buildOpenMeldProfileIdentityRequestHeadersWithAuth, p as deriveAuthBaseUrlFromGatewayUrl, r as fetchSpaceRequestWithTimeout, s as buildOpenMeldProfileRequestHeadersWithAuth, u as canAttachAuthTokenToRequest } from "./api-client-foundation-BoHvMp-l.js";
9
+ import { a as AuthRequestCredentialError, c as buildOpenMeldRequestContextHeadersWithAuth, d as buildOpenMeldRequestContextFromProfile, f as buildOpenMeldRequestContextFromProfileIdentity, i as resolveSpaceRequestTimeoutMsForDiagnostics, l as buildRequestAuthHeaders, m as resolveAuthRequestCompatibility, n as createCliApiClientFoundation, o as buildOpenMeldProfileIdentityRequestHeadersWithAuth, p as deriveAuthBaseUrlFromGatewayUrl, r as fetchSpaceRequestWithTimeout, s as buildOpenMeldProfileRequestHeadersWithAuth, u as canAttachAuthTokenToRequest } from "./api-client-foundation-CAFY5MwU.js";
10
10
  import { createRequire } from "node:module";
11
11
  import { homedir, tmpdir, userInfo } from "node:os";
12
12
  import * as z$1 from "zod/v4";
@@ -20165,7 +20165,7 @@ function splitSentences(message) {
20165
20165
  var package_default = {
20166
20166
  $schema: "https://www.schemastore.org/package.json",
20167
20167
  name: "openmeld",
20168
- version: "0.3.155",
20168
+ version: "0.3.156",
20169
20169
  openMeldReleaseDate: "2026-09-04",
20170
20170
  description: "OpenMeld CLI - https://openmeld.ai",
20171
20171
  license: "MIT",
@@ -21016,6 +21016,7 @@ function toErrorMessage$31(error) {
21016
21016
  }
21017
21017
  //#endregion
21018
21018
  //#region src/local-service/lifecycle/daemon-service-update-state.ts
21019
+ const TERMINAL_UPDATE_VISIBILITY_MS = 1440 * 60 * 1e3;
21019
21020
  const DAEMON_SERVICE_UPDATE_JOB_SCHEMA = OPENMELD_DAEMON_SERVICE_UPDATE_JOB_SCHEMA;
21020
21021
  function daemonServicePendingUpdatePath(pathInput = {}) {
21021
21022
  return join(daemonRuntimeStateRootPath(pathInput), "service-update.json");
@@ -21042,6 +21043,29 @@ async function completePendingDaemonServiceUpdate(job, pathInput = {}) {
21042
21043
  });
21043
21044
  await rm(daemonServicePendingUpdatePath(pathInput), { force: true });
21044
21045
  }
21046
+ async function resolveDaemonServiceUpdateOperation(pathInput = {}, nowMs = Date.now()) {
21047
+ const pending = await readPendingDaemonServiceUpdate(pathInput);
21048
+ if (pending) return projectUpdateOperation(pending);
21049
+ const last = await readLastDaemonServiceUpdate(pathInput);
21050
+ if (!(last && isRecentTerminalUpdate(last, nowMs))) return null;
21051
+ return projectUpdateOperation(last);
21052
+ }
21053
+ function isRecentTerminalUpdate(job, nowMs) {
21054
+ if (job.phase !== "updated" && job.phase !== "restored" && job.phase !== "needs_help") return false;
21055
+ const updatedAtMs = Date.parse(job.updatedAt);
21056
+ return Number.isFinite(updatedAtMs) && nowMs >= updatedAtMs && nowMs - updatedAtMs <= TERMINAL_UPDATE_VISIBILITY_MS;
21057
+ }
21058
+ function projectUpdateOperation(job) {
21059
+ return {
21060
+ operationId: job.jobId,
21061
+ phase: job.phase,
21062
+ requestSource: job.requestSource,
21063
+ requestedAt: job.requestedAt,
21064
+ targetVersion: job.targetVersion,
21065
+ updatedAt: job.updatedAt,
21066
+ urgency: job.urgency
21067
+ };
21068
+ }
21045
21069
  async function readDaemonServiceUpdateJob(path) {
21046
21070
  const raw = await readFile(path, "utf8").catch((error) => {
21047
21071
  if (error.code === "ENOENT") return null;
@@ -23034,9 +23058,6 @@ var DaemonServiceWaitTimeoutError = class extends Error {
23034
23058
  this.jobDiagnostics = input.jobDiagnostics ?? null;
23035
23059
  }
23036
23060
  };
23037
- function isDaemonServiceWaitTimeoutError(error) {
23038
- return error instanceof DaemonServiceWaitTimeoutError;
23039
- }
23040
23061
  function buildSystemServiceWaitTimeoutError(input) {
23041
23062
  const detailSuffix = input.details && input.details.trim().length > 0 ? ` Last observed state: ${input.details.trim()}` : "";
23042
23063
  return new DaemonServiceWaitTimeoutError({
@@ -39730,9 +39751,9 @@ function createModelCatalogReadSession(input) {
39730
39751
  async function readModelCatalogOnce(baseUrl) {
39731
39752
  try {
39732
39753
  const [apiClient, baseUrlModule, clientFoundationModule] = await Promise.all([
39733
- import("./dist-CUeqTNJi.js").then((n) => n.w),
39754
+ import("./dist-BkbTq1JP.js").then((n) => n.w),
39734
39755
  import("./base-url-CY_j4bLH.js").then((n) => n.n),
39735
- import("./api-client-foundation-BoHvMp-l.js").then((n) => n.t)
39756
+ import("./api-client-foundation-CAFY5MwU.js").then((n) => n.t)
39736
39757
  ]);
39737
39758
  if (typeof apiClient.createConfigApi !== "function") throw new Error("config api client is unavailable");
39738
39759
  const resolvedBaseUrl = baseUrl ?? await baseUrlModule.resolveBaseUrl();
@@ -45123,6 +45144,82 @@ function isPidAlive$4(pid) {
45123
45144
  }
45124
45145
  }
45125
45146
  //#endregion
45147
+ //#region src/local-service/lifecycle/daemon-service-startup-wait.ts
45148
+ const DEFAULT_SERVICE_STARTUP_WAIT_MS = 5e3;
45149
+ const LAUNCHD_SERVICE_STARTUP_WAIT_MS = 9e4;
45150
+ var SystemServiceStartupTimeoutError = class extends Error {
45151
+ code = "openmeld.service.startup_timeout";
45152
+ inventory;
45153
+ managerStatus;
45154
+ runtimeStatus;
45155
+ jobDiagnostics;
45156
+ constructor(input) {
45157
+ super(buildSystemServiceStartupTimeoutMessage(input));
45158
+ this.name = "SystemServiceStartupTimeoutError";
45159
+ this.inventory = input.inventory;
45160
+ this.managerStatus = input.managerStatus;
45161
+ this.runtimeStatus = input.runtimeStatus;
45162
+ this.jobDiagnostics = input.jobDiagnostics ?? null;
45163
+ }
45164
+ };
45165
+ function resolveSystemServiceStartupWaitMs(controller) {
45166
+ return controller === "launchd" ? LAUNCHD_SERVICE_STARTUP_WAIT_MS : DEFAULT_SERVICE_STARTUP_WAIT_MS;
45167
+ }
45168
+ function isDaemonInventoryRunningAndStartReady$1(inventory, blockingAnomalies) {
45169
+ return inventory.runtimeStatus.status === "running" && inventory.runtimeStatus.mode === "background" && inventory.runtimeStatus.managedBySystemService === true && inventory.serviceManagerStatus?.running === true && !inventory.anomalies.some((anomaly) => blockingAnomalies.has(anomaly.code));
45170
+ }
45171
+ async function waitForSystemServiceStartup$1(input) {
45172
+ const waitMs = input.waitMs ?? resolveSystemServiceStartupWaitMs(input.manager.controller);
45173
+ const deadlineMs = Date.now() + waitMs;
45174
+ let lastInventory = null;
45175
+ while (Date.now() < deadlineMs) {
45176
+ const inventory = await inspectDaemonServiceInventory({
45177
+ expectedVersion: input.expectedVersion,
45178
+ intendedMode: "background",
45179
+ intent: input.intent ?? "run_background"
45180
+ }).catch(() => null);
45181
+ if (inventory) {
45182
+ lastInventory = inventory;
45183
+ if (input.isReady(inventory)) return {
45184
+ inventory,
45185
+ state: "running",
45186
+ runtimeStatus: inventory.runtimeStatus
45187
+ };
45188
+ }
45189
+ await sleep(input.pollMs);
45190
+ }
45191
+ const finalInventory = await inspectDaemonServiceInventory({
45192
+ expectedVersion: input.expectedVersion,
45193
+ intendedMode: "background",
45194
+ intent: input.intent ?? "run_background"
45195
+ }).catch(() => null);
45196
+ if (finalInventory) {
45197
+ lastInventory = finalInventory;
45198
+ if (input.isReady(finalInventory)) return {
45199
+ inventory: finalInventory,
45200
+ state: "running",
45201
+ runtimeStatus: finalInventory.runtimeStatus
45202
+ };
45203
+ }
45204
+ const finalRuntimeStatus = await readCurrentObservedDaemonRuntimeStatus().catch(() => null);
45205
+ const finalManagerStatus = await input.manager.status().catch(() => null);
45206
+ const finalJobDiagnostics = await input.manager.readJobDiagnostics?.().catch(() => null) ?? null;
45207
+ throw new SystemServiceStartupTimeoutError({
45208
+ inventory: lastInventory,
45209
+ managerStatus: finalManagerStatus,
45210
+ runtimeStatus: finalRuntimeStatus,
45211
+ jobDiagnostics: finalJobDiagnostics
45212
+ });
45213
+ }
45214
+ function buildSystemServiceStartupTimeoutMessage(input) {
45215
+ const base = `OpenMeld Service failed to reach a running local service state in time. runtime=${input.runtimeStatus?.status ?? "unknown"}, reason=${input.runtimeStatus?.reason || "unknown"}, managerRunning=${String(input.managerStatus?.running ?? false)}, anomalies=${input.inventory?.anomalies.map((anomaly) => anomaly.code).join(",") || "unknown"}`;
45216
+ if (!input.jobDiagnostics) return base;
45217
+ return `${base}; ${formatDaemonServiceJobDiagnosticsEvidence(input.jobDiagnostics)}`;
45218
+ }
45219
+ function isSystemServiceStartupTimeoutError(error) {
45220
+ return error instanceof SystemServiceStartupTimeoutError || typeof error === "object" && error !== null && "code" in error && error.code === "openmeld.service.startup_timeout";
45221
+ }
45222
+ //#endregion
45126
45223
  //#region src/local-service/lifecycle/daemon-service-lifecycle.ts
45127
45224
  const STRICT_TEARDOWN_VERIFY_WAIT_MS$1 = 15e3;
45128
45225
  const STRICT_TEARDOWN_VERIFY_POLL_MS$1 = 200;
@@ -45460,25 +45557,27 @@ async function executeDaemonServiceLifecycle(input) {
45460
45557
  });
45461
45558
  input.state.failureStage = "wait_running";
45462
45559
  await input.emitPhase("wait_running");
45463
- await runDaemonServiceManagerAction({
45464
- action: "wait_running",
45465
- controller: input.context.serviceManager.controller,
45466
- intent: toLifecycleIntent(input.operation),
45467
- resolveErrorMetadata: (error) => isDaemonServiceWaitTimeoutError(error) && error.jobDiagnostics ? { jobDiagnostics: error.jobDiagnostics } : null,
45468
- run: async () => {
45469
- await input.context.serviceManager.waitUntilRunning();
45470
- }
45471
- });
45472
45560
  }
45473
45561
  input.state.failureStage = "verify_final_inventory";
45474
45562
  await input.emitPhase("verify_final_inventory");
45475
- const inventoryAfter = await waitForVerifiedLifecycleInventory({
45563
+ const verifyFinalInventory = async () => await waitForVerifiedLifecycleInventory({
45476
45564
  desiredState: input.context.desiredState,
45477
45565
  expectedVersion: input.expectedVersion,
45478
45566
  operation: input.operation,
45567
+ serviceManager: input.context.serviceManager,
45479
45568
  shouldStartAfterLifecycle: input.context.shouldStartAfterLifecycle,
45480
45569
  target: input.target
45481
45570
  });
45571
+ const inventoryAfter = input.context.shouldStartAfterLifecycle ? await runDaemonServiceManagerAction({
45572
+ action: "wait_running",
45573
+ controller: input.context.serviceManager.controller,
45574
+ intent: toLifecycleIntent(input.operation),
45575
+ resolveErrorMetadata: (error) => {
45576
+ const startupError = readLifecycleStartupTimeoutError(error);
45577
+ return startupError?.jobDiagnostics ? { jobDiagnostics: startupError.jobDiagnostics } : null;
45578
+ },
45579
+ run: verifyFinalInventory
45580
+ }) : await verifyFinalInventory();
45482
45581
  await cleanupStaleDaemonRuntimeDataBackupsAfterHealthyLifecycle(input.operation);
45483
45582
  return {
45484
45583
  status: "aligned",
@@ -45523,28 +45622,6 @@ async function recoverLifecycleFailure(input) {
45523
45622
  const originalErrorCode = resolveLifecycleFailureErrorCode(input.error);
45524
45623
  const originalFailureStage = resolveLifecycleFailureStage(input.error, input.state.failureStage);
45525
45624
  const originalReasonCodes = resolveLifecycleFailureReasonCodes(input.error);
45526
- const restartedCurrentVersion = await recoverBackgroundLifecycleVerificationFailure({
45527
- commandOptions: input.commandOptions,
45528
- error: input.error,
45529
- expectedVersion: input.expectedVersion,
45530
- failureStage: originalFailureStage,
45531
- operation: input.operation,
45532
- restorePoint: input.restorePoint,
45533
- serviceManager: input.serviceManager,
45534
- target: input.target
45535
- }).catch(() => null);
45536
- if (restartedCurrentVersion) return {
45537
- status: "aligned",
45538
- targetVersion: input.expectedVersion,
45539
- inventoryBefore: input.inventoryBefore,
45540
- inventoryAfter: restartedCurrentVersion,
45541
- reasonCodes: [],
45542
- completedPhases: input.state.completedPhases,
45543
- desiredState: input.restorePoint.desiredState,
45544
- shouldStartAfterLifecycle: input.restorePoint.shouldStartAfterLifecycle,
45545
- backupDataPath: null,
45546
- errorMessage: null
45547
- };
45548
45625
  let verifiedRollbackError = null;
45549
45626
  if (input.restorePoint.trusted && isVerifiedRollbackEligibleFailureStage(originalFailureStage)) {
45550
45627
  const restoredPrevious = await restoreVerifiedPreviousState({
@@ -45654,14 +45731,13 @@ async function restoreVerifiedPreviousState(input) {
45654
45731
  }),
45655
45732
  serviceManager: input.serviceManager
45656
45733
  });
45657
- if (input.restorePoint.shouldStartAfterLifecycle) {
45658
- await input.serviceManager.start();
45659
- await input.serviceManager.waitUntilRunning();
45660
- } else await input.serviceManager.waitUntilStopped();
45734
+ if (input.restorePoint.shouldStartAfterLifecycle) await input.serviceManager.start();
45735
+ else await input.serviceManager.waitUntilStopped();
45661
45736
  return await waitForVerifiedLifecycleInventory({
45662
45737
  desiredState: input.restorePoint.desiredState,
45663
45738
  expectedVersion: previousVersion,
45664
45739
  operation: "upgrade_reconcile",
45740
+ serviceManager: input.serviceManager,
45665
45741
  shouldStartAfterLifecycle: input.restorePoint.shouldStartAfterLifecycle,
45666
45742
  target: buildDaemonServiceTargetSpec({
45667
45743
  daemonVersion: previousVersion,
@@ -45709,53 +45785,15 @@ async function transitionLifecycleToStoppedSafeCurrentVersion(input) {
45709
45785
  desiredState: "stopped",
45710
45786
  expectedVersion: input.expectedVersion,
45711
45787
  operation: input.operation,
45788
+ serviceManager: input.serviceManager,
45712
45789
  shouldStartAfterLifecycle: false,
45713
45790
  target: buildDaemonServiceTargetSpec({ daemonVersion: input.expectedVersion })
45714
45791
  });
45715
45792
  }
45716
- async function recoverBackgroundLifecycleVerificationFailure(input) {
45717
- if (!shouldRecoverBackgroundLifecycleVerificationFailure({
45718
- failureInventory: readLifecycleFailureInventory(input.error),
45719
- failureStage: input.failureStage,
45720
- restorePoint: input.restorePoint
45721
- })) return null;
45722
- await input.serviceManager.stop();
45723
- await input.serviceManager.waitUntilStopped();
45724
- await ensureNoOwnedProcessesRemain();
45725
- const serviceCommandSpec = buildDaemonSystemServiceCommandSpec({
45726
- controller: input.serviceManager.controller,
45727
- distribution: input.target.bundleFormat === "binary_v1" ? "binary" : "npm",
45728
- environmentTarget: input.commandOptions.environmentTarget
45729
- });
45730
- await startLifecycleServiceWithRetry({
45731
- distribution: input.target.bundleFormat === "binary_v1" ? "binary" : "npm",
45732
- serviceCommandSpec,
45733
- serviceManager: input.serviceManager
45734
- });
45735
- await input.serviceManager.waitUntilRunning();
45736
- return await waitForVerifiedLifecycleInventory({
45737
- desiredState: "background",
45738
- expectedVersion: input.expectedVersion,
45739
- operation: input.operation,
45740
- shouldStartAfterLifecycle: true,
45741
- target: input.target
45742
- });
45743
- }
45744
- function shouldRecoverBackgroundLifecycleVerificationFailure(input) {
45745
- if (input.failureStage !== "verify_final_inventory" || input.restorePoint.desiredState !== "background" || input.restorePoint.shouldStartAfterLifecycle !== true || !input.failureInventory) return false;
45746
- const anomalyCodes = input.failureInventory.anomalies.map((anomaly) => anomaly.code);
45747
- if (anomalyCodes.length === 0) return false;
45748
- const recoverableCodes = /* @__PURE__ */ new Set(["manager_running_without_runtime", "runtime_stale"]);
45749
- return anomalyCodes.every((code) => recoverableCodes.has(code));
45750
- }
45751
- function readLifecycleFailureInventory(error) {
45752
- if (!(error instanceof DaemonServiceLifecycleStageError)) return null;
45753
- return isDaemonServiceInventory(error.cause) ? error.cause : null;
45754
- }
45755
- function isDaemonServiceInventory(value) {
45756
- if (!(value && typeof value === "object")) return false;
45757
- const candidate = value;
45758
- return Array.isArray(candidate.anomalies) && !!candidate.runtimeStatus;
45793
+ function readLifecycleStartupTimeoutError(error) {
45794
+ if (isSystemServiceStartupTimeoutError(error)) return error;
45795
+ if (error instanceof DaemonServiceLifecycleStageError && isSystemServiceStartupTimeoutError(error.cause)) return error.cause;
45796
+ return null;
45759
45797
  }
45760
45798
  async function createLifecycleRestorePoint(input) {
45761
45799
  const previousActiveBundle = input.inventoryBefore.activeBundle ?? null;
@@ -46033,7 +46071,6 @@ async function waitForLegacySharedServiceCleanup(input) {
46033
46071
  while (Date.now() < deadline) {
46034
46072
  const inventory = await inspectDaemonServiceInventory({
46035
46073
  expectedVersion: input.expectedVersion,
46036
- intendedMode: input.shouldStartAfterLifecycle === true ? "background" : void 0,
46037
46074
  intent: toLifecycleIntent(input.operation)
46038
46075
  });
46039
46076
  lastInventory = inventory;
@@ -46235,14 +46272,44 @@ async function restoreLifecycleServiceContractSnapshot(snapshot) {
46235
46272
  lane: snapshot.lane
46236
46273
  });
46237
46274
  }
46275
+ async function waitForStartedLifecycleInventory(input) {
46276
+ try {
46277
+ return (await waitForSystemServiceStartup$1({
46278
+ expectedVersion: input.expectedVersion,
46279
+ manager: input.serviceManager,
46280
+ pollMs: STRICT_TEARDOWN_VERIFY_POLL_MS$1,
46281
+ intent: toLifecycleIntent(input.operation),
46282
+ isReady: (inventory) => verifyLifecycleInventory({
46283
+ desiredState: input.desiredState,
46284
+ inventory,
46285
+ shouldStartAfterLifecycle: true,
46286
+ target: input.target
46287
+ }) === null
46288
+ })).inventory;
46289
+ } catch (error) {
46290
+ if (!isSystemServiceStartupTimeoutError(error)) throw error;
46291
+ const inventory = error.inventory;
46292
+ throw new DaemonServiceLifecycleStageError({
46293
+ cause: error,
46294
+ message: (inventory ? verifyLifecycleInventory({
46295
+ desiredState: input.desiredState,
46296
+ inventory,
46297
+ shouldStartAfterLifecycle: true,
46298
+ target: input.target
46299
+ }) : null) ?? error.message,
46300
+ reasonCodes: inventory ? readDaemonServiceInventoryAnomalyCodes(inventory) : [],
46301
+ stage: "verify_final_inventory"
46302
+ });
46303
+ }
46304
+ }
46238
46305
  async function waitForVerifiedLifecycleInventory(input) {
46306
+ if (input.shouldStartAfterLifecycle) return await waitForStartedLifecycleInventory(input);
46239
46307
  const deadline = Date.now() + STRICT_TEARDOWN_VERIFY_WAIT_MS$1;
46240
46308
  let lastInventory = null;
46241
46309
  let lastError = null;
46242
46310
  while (Date.now() < deadline) {
46243
46311
  const inventory = await inspectDaemonServiceInventory({
46244
46312
  expectedVersion: input.expectedVersion,
46245
- intendedMode: input.shouldStartAfterLifecycle === true ? "background" : void 0,
46246
46313
  intent: toLifecycleIntent(input.operation)
46247
46314
  });
46248
46315
  const verificationError = verifyLifecycleInventory({
@@ -47042,18 +47109,19 @@ async function withDaemonServiceUpdateWorkerLock(run) {
47042
47109
  async function runWithoutReconcileLock(run) {
47043
47110
  return await run();
47044
47111
  }
47045
- async function waitUntilDaemonServiceSafeSwitch(job) {
47112
+ async function waitUntilDaemonServiceSafeSwitch(job, overrides = {}) {
47113
+ const readPendingJob = overrides.readPendingJob ?? readPendingDaemonServiceUpdate;
47114
+ const requestReadiness = overrides.requestReadiness ?? requestLocalDaemonServiceUpdateReadiness;
47115
+ const wait = overrides.sleep ?? sleep;
47046
47116
  while (true) {
47047
- const pending = await readPendingDaemonServiceUpdate();
47117
+ const pending = await readPendingJob();
47048
47118
  if (pending === null || pending.jobId !== job.jobId || pending.urgency === "required") return;
47049
47119
  try {
47050
- if ((await requestLocalDaemonServiceUpdateReadiness()).safeToSwitch) return;
47120
+ if ((await requestReadiness()).safeToSwitch) return;
47051
47121
  } catch (error) {
47052
47122
  if (error instanceof LocalDaemonControlPlaneClientError && error.code === "daemon.control.contract_mismatch") return;
47053
- const runtime = await readCurrentObservedDaemonRuntimeStatus().catch(() => null);
47054
- if (!runtime || runtime.status !== "running") return;
47055
47123
  }
47056
- await sleep(2e3);
47124
+ await wait(2e3);
47057
47125
  }
47058
47126
  }
47059
47127
  async function resolveCurrentDaemonDesiredState() {
@@ -48999,6 +49067,7 @@ function createSpaceMenuGuideError() {
48999
49067
  "openmeld space [--gateway-url <url>] create [--profile <profile-id>] --name <name> --visibility <public|private> [--guide <text>] [--password <value>] [--join|--no-join] [--output text|ndjson]",
49000
49068
  "openmeld space [--gateway-url <url>] join [--profile <profile-id>] <space-id> [--password <value>] [--local-echo|--no-local-echo] [--history-limit <n>] [--role <text>] [--mention-alias <token>] [--output text|ndjson]",
49001
49069
  "openmeld space [--gateway-url <url>] watch [--profile <profile-id>] <space-id> [--password <value>] [--history-limit <n>] [--output text|ndjson]",
49070
+ "openmeld space [--gateway-url <url>] access [--profile <profile-id>] <space-url-or-id> [--json] [--password <value>]",
49002
49071
  "openmeld space [--gateway-url <url>] send [--profile <profile-id>] <space-id> [<text...>|--stdin|--text-file <path>] [--file <path>...] [--plain] [--password <value>]",
49003
49072
  SPACE_HISTORY_USAGE,
49004
49073
  "openmeld space [--gateway-url <url>] contract [--profile <profile-id>] <space-id> [--json] [--password <value>]",
@@ -49161,6 +49230,12 @@ function createSpaceLeaveGuideError(summary) {
49161
49230
  }
49162
49231
  function createSpaceTargetGuideError(command) {
49163
49232
  const optionalArgsByCommand = {
49233
+ access: [
49234
+ "--json",
49235
+ "--password <value>",
49236
+ SPACE_GATEWAY_PARENT_OPTION_TEXT,
49237
+ "--profile <profile-id>"
49238
+ ],
49164
49239
  join: [
49165
49240
  "--password <value>",
49166
49241
  "--local-echo|--no-local-echo",
@@ -49210,6 +49285,7 @@ function createSpaceTargetGuideError(command) {
49210
49285
  agentRequiredArgs: [`<space-id> (required positional argument for openmeld space ${command})`],
49211
49286
  agentOptionalArgs: optionalArgsByCommand[command],
49212
49287
  agentCommands: {
49288
+ access: ["openmeld space [--gateway-url <url>] access [--profile <profile-id>] <space-url-or-id> [--json] [--password <value>]"],
49213
49289
  join: ["openmeld space [--gateway-url <url>] join [--profile <profile-id>] <space-id> [--password <value>] [--local-echo|--no-local-echo] [--history-limit <n>] [--role <text>] [--mention-alias <token>] [--output text|ndjson]"],
49214
49290
  watch: ["openmeld space [--gateway-url <url>] watch [--profile <profile-id>] <space-id> [--password <value>] [--history-limit <n>] [--output text|ndjson]"],
49215
49291
  contract: ["openmeld space [--gateway-url <url>] contract [--profile <profile-id>] <space-id> [--json] [--password <value>]"],
@@ -66795,21 +66871,6 @@ const DAEMON_STARTUP_BLOCKING_ANOMALIES = /* @__PURE__ */ new Set([
66795
66871
  "runtime_bundle_mismatch",
66796
66872
  "runtime_contract_mismatch"
66797
66873
  ]);
66798
- var SystemServiceStartupTimeoutError = class extends Error {
66799
- code = "openmeld.service.startup_timeout";
66800
- inventory;
66801
- managerStatus;
66802
- runtimeStatus;
66803
- jobDiagnostics;
66804
- constructor(input) {
66805
- super(buildSystemServiceStartupTimeoutMessage(input));
66806
- this.name = "SystemServiceStartupTimeoutError";
66807
- this.inventory = input.inventory;
66808
- this.managerStatus = input.managerStatus;
66809
- this.runtimeStatus = input.runtimeStatus;
66810
- this.jobDiagnostics = input.jobDiagnostics ?? null;
66811
- }
66812
- };
66813
66874
  function resolveStartupLocalMachineIssue(input) {
66814
66875
  if (input.jobDiagnostics && isDaemonServiceBackgroundExecutionBlocked(input.jobDiagnostics)) return createBackgroundExecutionBlockedIssue({ detail: formatDaemonServiceJobDiagnosticsEvidence(input.jobDiagnostics) });
66815
66876
  if (input.assessedIssue.code === "local_machine.failure.unknown") return null;
@@ -66942,14 +67003,6 @@ function buildSystemServiceStartupFailureDiagnostics(input) {
66942
67003
  serviceLogPath: getDaemonSystemServiceLogPath()
66943
67004
  };
66944
67005
  }
66945
- function buildSystemServiceStartupTimeoutMessage(input) {
66946
- const base = `OpenMeld Service failed to reach a running local service state in time. runtime=${input.runtimeStatus?.status ?? "unknown"}, reason=${input.runtimeStatus?.reason || "unknown"}, managerRunning=${String(input.managerStatus?.running ?? false)}, anomalies=${input.inventory?.anomalies.map((anomaly) => anomaly.code).join(",") || "unknown"}`;
66947
- if (!input.jobDiagnostics) return base;
66948
- return `${base}; ${formatDaemonServiceJobDiagnosticsEvidence(input.jobDiagnostics)}`;
66949
- }
66950
- function isSystemServiceStartupTimeoutError(error) {
66951
- return error instanceof SystemServiceStartupTimeoutError || typeof error === "object" && error !== null && "code" in error && error.code === "openmeld.service.startup_timeout";
66952
- }
66953
67006
  function formatSystemServiceFailureRow(row) {
66954
67007
  const label = row.label.trim();
66955
67008
  const value = formatOpenMeldCliTextBlock(row.value).trim();
@@ -66967,40 +67020,12 @@ function isPermissionOrAuthorizationError(message) {
66967
67020
  return normalized.includes("permission") || normalized.includes("operation not permitted") || normalized.includes("access is denied") || normalized.includes("requires admin") || normalized.includes("elevation") || normalized.includes("access denied") || normalized.includes("not authorized");
66968
67021
  }
66969
67022
  function isDaemonInventoryRunningAndStartReady(inventory) {
66970
- if (inventory.runtimeStatus.status !== "running") return false;
66971
- if (inventory.runtimeStatus.mode !== "background") return false;
66972
- if (inventory.runtimeStatus.managedBySystemService !== true) return false;
66973
- return !inventory.anomalies.some((anomaly) => DAEMON_STARTUP_BLOCKING_ANOMALIES.has(anomaly.code));
67023
+ return isDaemonInventoryRunningAndStartReady$1(inventory, DAEMON_STARTUP_BLOCKING_ANOMALIES);
66974
67024
  }
66975
67025
  async function waitForSystemServiceStartup(input) {
66976
- const deadlineMs = Date.now() + input.waitMs;
66977
- while (Date.now() < deadlineMs) {
66978
- const inventory = await inspectDaemonServiceInventory({
66979
- expectedVersion: input.expectedVersion,
66980
- intendedMode: "background",
66981
- intent: "run_background"
66982
- }).catch(() => null);
66983
- if (inventory && isDaemonInventoryRunningAndStartReady(inventory)) return {
66984
- state: "running",
66985
- runtimeStatus: inventory.runtimeStatus
66986
- };
66987
- await sleep(input.pollMs);
66988
- }
66989
- const finalInventory = await inspectDaemonServiceInventory({
66990
- expectedVersion: input.expectedVersion,
66991
- intendedMode: "background",
66992
- intent: "run_background"
66993
- }).catch(() => null);
66994
- if (finalInventory && isDaemonInventoryRunningAndStartReady(finalInventory)) return {
66995
- state: "running",
66996
- runtimeStatus: finalInventory.runtimeStatus
66997
- };
66998
- const finalRuntimeStatus = await readCurrentObservedDaemonRuntimeStatus().catch(() => null);
66999
- throw new SystemServiceStartupTimeoutError({
67000
- inventory: finalInventory,
67001
- managerStatus: await input.manager.status().catch(() => null),
67002
- runtimeStatus: finalRuntimeStatus,
67003
- jobDiagnostics: await input.manager.readJobDiagnostics?.().catch(() => null) ?? null
67026
+ return await waitForSystemServiceStartup$1({
67027
+ ...input,
67028
+ isReady: isDaemonInventoryRunningAndStartReady
67004
67029
  });
67005
67030
  }
67006
67031
  //#endregion
@@ -67375,7 +67400,10 @@ function emitServiceAccountRefreshNotice(input) {
67375
67400
  });
67376
67401
  }
67377
67402
  function resolveScheduledServiceRefreshResult(outcome) {
67378
- return outcome.ok && outcome.result === "scheduled" ? { status: "aligned" } : null;
67403
+ return outcome.ok && outcome.result === "scheduled" ? {
67404
+ errorMessage: "OpenMeld Service update started in the background. Run `openmeld setup` again after it finishes.",
67405
+ status: "needs_attention"
67406
+ } : null;
67379
67407
  }
67380
67408
  function renderRefreshFailureIfVisible(input) {
67381
67409
  if (input.suppressed) return;
@@ -80804,7 +80832,7 @@ function buildDaemonReinstallResultTitle(outcome, action) {
80804
80832
  const actionPastTitle = formatDaemonServiceMaintenanceActionPastTitle(action);
80805
80833
  switch (outcome.result) {
80806
80834
  case "already_healthy": return "✅ OpenMeld Service Is Already Healthy";
80807
- case "scheduled": return "✅ OpenMeld Service Update Is Ready";
80835
+ case "scheduled": return "⏳ OpenMeld Service Update Started";
80808
80836
  case "completed": return outcome.serviceState === "running" ? `✅ OpenMeld Service ${actionPastTitle}` : `⚠️ OpenMeld Service ${actionPastTitle} But Not Running`;
80809
80837
  case "stopped_safe": return "✅ OpenMeld Service Safely Stopped";
80810
80838
  case "in_progress": return `⏳ OpenMeld Service ${actionTitle} In Progress`;
@@ -81810,7 +81838,6 @@ const DAEMON_RUN_MODE_CHOICES = {
81810
81838
  };
81811
81839
  const DEFAULT_DAEMON_RUN_MODE = DAEMON_RUN_MODE_CHOICES.background;
81812
81840
  const SERVICE_STARTUP_CHECK_MS = 5e3;
81813
- const LAUNCHD_SERVICE_STARTUP_CHECK_MS = 9e4;
81814
81841
  const SERVICE_STARTUP_POLL_MS = 120;
81815
81842
  const REINSTALL_DRAIN_WAIT_MS = 2e4;
81816
81843
  const REINSTALL_VERIFY_WAIT_MS = 2e4;
@@ -84469,7 +84496,7 @@ async function resolveSystemBootstrapDaemonContract(input) {
84469
84496
  const currentContract = await readDaemonServiceContract().catch(() => null);
84470
84497
  const explicitGatewayUrl = await resolveExplicitGatewayUrlOrThrow(input.gatewayUrl);
84471
84498
  const currentContractGatewayUrl = currentContract && !explicitGatewayUrl ? resolvePersistedDaemonServiceContractGatewayUrl(currentContract.gatewayUrl) : null;
84472
- if (currentContract && isDaemonServiceContractIdentityReusable(currentContract) && currentContractGatewayUrl && !currentContract.profileId) return currentContract;
84499
+ if (currentContract && isDaemonServiceContractIdentityReusable(currentContract) && currentContractGatewayUrl) return currentContract;
84473
84500
  const systemManager = await resolveDaemonServiceManager().catch(() => null);
84474
84501
  return await maybeWriteDaemonServiceContract({
84475
84502
  runtime: input.runtime,
@@ -84492,10 +84519,6 @@ function resolvePersistedDaemonServiceContractGatewayUrl(gatewayUrl) {
84492
84519
  throw new Error(`Invalid persisted OpenMeld Service contract gateway URL "${gatewayUrl}": ${toErrorMessage$43(error)}`);
84493
84520
  }
84494
84521
  }
84495
- function resolveSystemServiceStartupWaitMs(controller) {
84496
- if (controller === "launchd") return LAUNCHD_SERVICE_STARTUP_CHECK_MS;
84497
- return SERVICE_STARTUP_CHECK_MS;
84498
- }
84499
84522
  function emitSystemServiceBackgroundStarted(input) {
84500
84523
  if (input.runtime.resolvedView === "human") {
84501
84524
  renderServiceActionCard({
@@ -111716,6 +111739,6 @@ function isHumanInteractiveSpaceRuntime(runtime) {
111716
111739
  return runtime.resolvedView === "human" && canUseInteractivePrompts(runtime);
111717
111740
  }
111718
111741
  //#endregion
111719
- export { runAgentsManage as $, resolveAuthenticationGuidanceFromMessage as $a, getCurrentCommandCheckState as $i, assessCliUpdate as $n, outJsonLine as $o, resolveDaemonDeviceId as $r, runSkillsUpdate as $t, parseEnvelope as A, formatMessage as Aa, createAgentExecutionStatusDisplayRows as Ai, computeRetryDelayMs as An, resolveObservedAgentActivityBinding as Ao, getCommandHintsFromContract as Ar, emitDaemonAgentOverview as At, resolveHumanControllerDisplayName as B, listOpenMeldProfiles as Ba, PREPARE_SESSION_RECONNECT_GRACE_MS as Bi, assertNoRemovedCcSpaceAddressingSyntax as Bn, migrateProjectBindingStore as Bo, formatDualViewGuideForDisplay as Br, readGatewayTextResponse as Bt, toSpaceMetaUpsertInput as C, toStartBackgroundHelperExecutionCompatibility as Ca, resolveAgentProfilePrimaryAgentControllerReport as Ci, resolveCreateProfileKind as Cn, resolveUserFacingCliEntryCommand as Co, createSpaceSubcommandTargetGuideError as Cr, runDaemonStatusFlow as Ct, formatHumanReadTargetList as D, renderHumanErrorCard as Da, notifyDaemonRouteCatalogChanged as Di, formatServiceParticipationReadinessLabel as Dn, readAgentActivityContextForPath as Do, createStartAuthenticationGuideError as Dr, buildProfileWorkspacePresentation as Dt, buildHumanReplyContextSummary as E, buildHumanErrorCopy as Ea, listBuiltinAgentsRegistryEntries as Ei, ensureAgentProfileRuntimeBinding as En, upsertDaemonServiceContract as Eo, createStartAgentIdentityGuideError as Er, runDaemonUninstall as Et, resolveOpenMeldProfileForSpaceCommand as F, requireOpenMeldProfile as Fa, resolveAgentControllerPermissionModeForController as Fi, resolveLocalAgentControllerBlockerReasonCodes as Fn, readAgentActivityOutboxHealth as Fo, registerDaemonControlTargetOptions as Fr, fetchSpaceUpdates as Ft, runAgentsCustomAdd as G, clearSelectedOpenMeldProfileId as Ga, resolveDaemonServiceAlignmentDecision as Gi, buildSpaceRoundReadProjection as Gn, canonicalizeLocalProjectPath as Go, areAllowedActionsEquivalent as Gr, resolveDaemonServiceParticipationStatus as Gt, resolveAgentProfileSetup as H, resolveOpenMeldProfile as Ha, buildOnboardingPlan as Hi, buildDispatchResultReplyWorkflowProjection as Hn, runIfAgentActivityBindingGenerationIsCurrent as Ho, formatAgentOverviewPayload as Hr, parseJsonResponse$1 as Ht, emitSpaceAgentOverview as I, resolveOpenMeldProfileOrNull as Ia, resolveAgentExecutionStatus as Ii, resolveLocalAgentControllerLaunchability as In, removeProjectOutbox as Io, registerAuthLoginRequestOptions as Ir, createCliSpaceApi as It, runAgentsCustomUpdate as J, buildAgentAuthenticationGuide as Ja, resolveServiceUpdateUrgency as Ji, formatRemovedCcRelationMessage as Jn, renderInfoCard as Jo, readPendingOpenMeldToolsUpdateAttempt as Jr, collectSkillsReadinessSnapshot as Jt, runAgentsCustomList as K, getSelectedOpenMeldProfileId as Ka, classifyDaemonServiceRunStartability as Ki, buildUpdatesReplyWorkflowProjection as Kn, enqueueControllerTaskLifecycleEventWhileLocked as Ko, buildAgentFacingPublicationModeGuideLines as Kr, runDaemonServiceParticipationGate as Kt, emitSpaceCliAgentOverview as L, createOpenMeldAgentProfile as La, resolveAgentProfileEditCapabilities as Li, resolveLocalAgentControllerReportDecision as Ln, bindProject as Lo, registerBuiltinAgentSelectionOptions as Lr, fetchSpaceMeta as Lt, assertFullSignalIdArgument as M, resolveRuntimeContext as Ma, getAgentControllerPermissionModeFieldLabel as Mi, submitRuntimeAgentControllerReport as Mn, readCodexSessionTitles as Mo, SPACE_ADD_MEMBERS_PROGRESS_HEARTBEAT_MS as Mr, shouldEmitAgentOverview as Mt, assertValidSpaceIdTarget as N, resolveViewProfileKey as Na, listAgentControllerPermissionModeOptions as Ni, submitRuntimeAgentControllerReports as Nn, enqueueAgentActivityHookEvent as No, registerSkillsTargetSelectionOptions as Nr, runDaemonStartupPreflight as Nt, resolveLinkAccessLabel as O, renderHumanTextErrorCard as Oa, resolveLocalRegistryAgentIdFromAgentControllerRef as Oi, resolveServiceParticipationReadiness as On, removeAgentActivityContextCache as Oo, createUpgradeConfirmationGuideError as Or, buildProfileWorkspaceRows as Ot, prepareAuthenticatedSpaceCommandContext as P, isSelectedOpenMeldProfileRequiredError as Pa, parseAgentControllerRef as Pi, collectLocalAgentControllerInventory as Pn, removeProjectInbox as Po, getCliVersionInfo as Pr, readDaemonStartFailureLogTailLines as Pt, runAgentsList as Q, resolveAuthenticationGuidanceFromError as Qa, finishCurrentCommandCheckScope as Qi, runInteractivePrompt as Qn, errLine as Qo, ensureDaemonRuntimePaths as Qr, runSkillsUninstall as Qt, prepareLocalAgentReadiness as R, createOpenMeldHumanProfile as Ra, resolveEvidenceSyncHealth as Ri, inspectSpaceCacheFile as Rn, listProjectBindings as Ro, buildAgentOverviewFromContract as Rr, updateSpaceMeta as Rt, loadSpaceSignalIndexOrNull as S, resolveDaemonRuntimeContractCompatibility as Sa, createPrimaryBindingReadSession as Si, createProfileByKind as Sn, resolveSetupFollowUpCliEntryCommand as So, createSpaceResultGuideError as Sr, runDaemonSnapshot as St, buildFormalSignalReadPayload as T, OPENMELD_VERSION as Ta, reconcileNewRunnableBuiltinAgentsForSetup as Ti, promptTextEntry as Tn, readDaemonServiceContract as To, createSpaceUpdatesGuideError as Tr, runDaemonTeardownStrict as Tt, runAgents as U, updateOpenMeldProfile as Ua, getSetupFlowCopy as Ui, buildSignalIndex as Un, setDefaultProjectConnection as Uo, OPENMELD_AGENT_MENTAL_MODEL_LINES as Ur, resolveLocalComponentsStatus as Ut, persistAgentTransportSelection as V, primeOpenMeldProfilesSessionCache as Va, buildDaemonRouteObservationPresentation as Vi, buildDispatchResultMessageReadProjection as Vn, removeProjectConnection as Vo, buildDualViewGuideMessage as Vr, toStructuredGatewayFailure as Vt, runAgentsConfig as W, alignSelectedOpenMeldProfileStorage as Wa, buildDaemonServiceTargetSpec as Wi, buildSignalMessageReadProjection as Wn, unbindProject as Wo, SPACE_CONTRACT_ALLOWED_ACTION_ORDER as Wr, writeInstalledLocalComponentsSnapshot as Wt, runAgentsDisable as X, createAuthenticationError as Xa, resolveOpenMeldEnvironmentTarget as Xi, promptSearchSelect as Xn, sanitizeTerminalDisplayText as Xo, runPendingDaemonServiceUpdate as Xr, runSkillsEnsure as Xt, runAgentsDetect as Y, buildHumanAuthenticationCard as Ya, assessServerRequiredVersion as Yi, promptSearchMultiselect as Yn, renderTextInfoCard as Yo, readOpenMeldToolsUpdateContextFromEnv as Yr, runSkillsCheck as Yt, runAgentsEnable as Z, resolveAuthenticationGuidance as Za, resolveAuthBaseUrl as Zi, isReturnKeypress as Zn, emitCliJsonEnvelope as Zo, scheduleDaemonServiceUpdate as Zr, runSkillsInstall as Zt, runSpaceWriteWithPasswordRetry as _, ensureVersionStateReady as _a, setCustomProfileWorkspace as _i, fetchAuthUserSnapshot as _n, formatOpenMeldCliCommand as _o, createSpaceContractSetGuideError as _r, runDaemonCancel as _t, runSpaceDelete as a, readCurrentDaemonRuntimeContext as aa, formatDeviceReplyReadinessLabel as ai, buildCommandAuthenticationPromptMessage as an, requestLocalAgentActivitySync as ao, formatElapsedTime as ar, cliJsonSkillsShowEnvelopeSchema as as, printOpenMeldBanner as at, buildIdentityOnlyMembersSnapshotForReadProjection as b, readVersionState as ba, describeProfileWorkspacePathValidationFailure as bi, resolveDeviceTokenExpiresAt as bn, formatOpenMeldCliTextBlock as bo, createSpacePublicationSetGuideError as br, runDaemonReinstall as bt, runSpaceLeave as c, isDaemonServiceJobNeverSpawned as ca, resolveGatewayChainReadiness as ci, runAuthLogin as cn, resolveAgentActivityRouteForPath as co, formatDaemonServiceMissingRecommendation as cr, revokeOrganizationJoinLinkResponseSchema as cs, renderOpenMeldLogo as ct, runSpaceRemoveMembers as d, readRecentDaemonLifecycleEvents as da, createModelCatalogReadSession as di, runAuthStatus as dn, defaultManagedIntegrationPaths as do, createProfileActionGuideError as dr, resolveSpaceWebGatewayOrigin as dt, isCurrentCommandCheckScopeActive as ea, formatDaemonFailureContextText as ei, ensureLocalSkills as en, getProfileDefaultView as eo, isCliUpdateCheckApplicable as er, outLine as es, runAgentsRepair as et, runSpaceSend as f, buildInstallSelfJsonPayload as fa, resolveProfileWorkspaceRuntime as fi, exchangeOneTimeTokenAuthSession as fn, installAgentActivityIntegrations as fo, createProfileCreateGuideError as fr, resolveSpaceSendText as ft, runSpaceReadWithPasswordRetry as g, compareSemver as ga, resolveConfiguredProfileWorkspacePath as gi, extractAuthApiErrorMessage as gn, formatInlineOpenMeldCliCommands as go, createSpaceAliasTargetGuideError as gr, runDaemonBackgroundStartForDecision as gt, uploadPreparedSpaceFiles as h, buildNextVersionState as ha, readProfileWorkspaceConfig as hi, formatActiveOrganizationLabel as hn, uninstallAgentActivityIntegrations as ho, createSpaceAddMembersGuideError as hr, runDaemonAutostart as ht, runSpaceCreate as i, resolveVersionChangeDirection as ia, formatAgentReplyReadinessLabel as ii, connectWebSocket as in, LocalDaemonControlPlaneClientError as io, writeDispatchSpaceActionRecord as ir, cliJsonSkillsLoadEnvelopeSchema as is, colorizeDisplayProfileLabel as it, isSpaceCommandOutputHandledError as j, parseCliViewMode as ja, getAgentControllerPermissionModeDisplayMetadata as ji, submitProfileRuntimeAgentControllerReport as jn, normalizeSharedSessionTitle as jo, registerSpaceMemberSelectionOptions as jr, createDelayedSpinner as jt, resolveOrganizationVisibilityLabel as k, createPresenter as ka, buildAgentControllerRef as ki, assessActionParticipationCandidate as kn, buildAgentActivityEvent as ko, getCommandEntryContract as kr, reconcileCliVersionView as kt, runSpaceList as l, readDaemonServiceJobCrashExitCode as la, resolveOpenClawLocalDiagnosticsValue as li, runAuthLogout as ln, unregisterAgentActivityRoute as lo, canUseInteractivePrompts as lr, compareAgentControllerRefsForDisplay as ls, renderOpenMeldTagline as lt, prepareRequestedSpaceSendFiles as m, readPendingDaemonServiceUpdate as ma, normalizeCustomProfileWorkspacePath as mi, buildAuthStatusSnapshot as mn, resolveAgentActivityDispatcherCommand as mo, createResetConfirmationGuideError as mr, runDaemon as mt, promptAndConfirmSpacePassword as n, startCurrentCommandCheckScope as na, resolveDaemonServiceFreshnessWarning as ni, readRuntimeReportingHealthState as nn, LocalProjectConnectionError as no, readDispatchOwnedRuntimeGuard as nr, cliJsonOutputEnvelopeSchema as ns, formatTransportModeDisplay as nt, runSpaceHistory as o, readCurrentObservedDaemonRuntimeStatus as oa, formatHumanReplyReadinessReason as oi, ensureCommandAuthenticationOrCancel as on, isAgentActivityRouteRegistered as oo, resolveElapsedTimeMs as or, getOrganizationJoinLinkResponseSchema as os, renderOpenMeldBrandBlockLines as ot, runSpaceWatch as p, performManagedInstall as pa, ensureOpenMeldManagedProfileWorkspace as pi, buildAuthStatusRows as pn, readAgentActivityIntegrationStatus as po, createProfileMenuGuideError as pr, bestEffortStopCurrentLaneDaemonService as pt, runAgentsCustomRemove as q, setSelectedOpenMeldProfileId as qa, classifyDaemonServiceWakeability as qi, createSpaceMemberIdentityIndex as qn, readControllerTaskLifecycleOutboxHealth as qo, canonicalizeAllowedActions as qr, runDaemonStartDecisionPrompt as qt, runSpaceAddMembers as r, inspectDaemonServiceInventory as ra, resolveCurrentReplyReadinessSnapshot as ri, readRecentDaemonDispatchJournalEvents as rn, validateLocalProjectConnectionPath as ro, readDispatchSpaceActionContextFromEnv as rr, cliJsonSkillsListEnvelopeSchema as rs, colorizeAgentLabel as rt, runSpaceJoin as s, getDaemonSystemServiceLogPath as sa, mapAgentReplyReadinessToLegacyAutoReply as si, evaluateCommandAuthentication as sn, registerAgentActivityRoute as so, formatDaemonServiceDowngradeBlockedRecommendation as sr, organizationJoinLinkErrorResponseSchema as ss, renderOpenMeldHeader as st, buildCreateSpacePasswordPromptConfig as t, resetCurrentCommandCheckState as ta, resolveServiceReadinessFromServiceStatus as ti, readBundledOpenMeldCliSkillDocumentByPath as tn, setProfileDefaultView as to, assertDispatchOwnedRuntimePublicWriteAllowed as tr, cliBinaryDeltaPatchSchema as ts, runAgentsShow as tt, runSpacePassword as u, resolveDaemonServiceManager as ua, syncProfileWorkspaceState as ui, runAuthMenu as un, AGENT_ACTIVITY_INTEGRATION_OWNER as uo, createDoctorFailedGuideError as ur, resolveGatewayWebOrigin as ut, buildHumanReadSignalsTranscriptItems as v, fetchLatestCliBinaryRelease as va, setOpenMeldManagedProfileWorkspace as vi, requestDeviceToken as vn, formatOpenMeldCliCommands as vo, createSpaceLeaveGuideError as vr, runDaemonInstall as vt, buildFormalDispatchResultReadPayload as w, resolveCurrentDaemonExpectedVersion as wa, listAgentTargetStates as wi, resolveCreateProfileName as wn, syncLocalAgentActivity as wo, createSpaceTargetGuideError as wr, runDaemonStop as wt, loadSpaceIdentityDirectoryOrNull as x, writeVersionState as xa, syncDeviceRuntimeStateProjection as xi, revokeAuthAccessToken as xn, formatProfileAwareOpenMeldCliCommands as xo, createSpaceRemoveMembersGuideError as xr, runDaemonRunAfterEntryChecks as xt, emitHumanReadSignalsTextProjection as y, fetchLatestPackageInfo as ya, validateCustomProfileWorkspacePath as yi, resolveDeviceAuthClientId as yn, formatOpenMeldCliLine as yo, createSpaceMenuGuideError as yr, runDaemonInterrupt as yt, buildReplyReadinessGuidance as z, deleteOpenMeldProfile as za, resolveNativeAgentControllerPermissionModeForController as zi, upsertSpaceConfig as zn, listProjectConnectionsWithStatus as zo, DualViewGuideError as zr, readGatewayJsonResponse as zt };
111742
+ export { runAgentsManage as $, resolveAuthenticationGuidance as $a, finishCurrentCommandCheckScope as $i, runInteractivePrompt as $n, emitCliJsonEnvelope as $o, ensureDaemonRuntimePaths as $r, runSkillsUninstall as $t, parseEnvelope as A, renderHumanTextErrorCard as Aa, buildAgentControllerRef as Ai, assessActionParticipationCandidate as An, removeAgentActivityContextCache as Ao, getCommandEntryContract as Ar, reconcileCliVersionView as At, resolveHumanControllerDisplayName as B, createOpenMeldHumanProfile as Ba, resolveNativeAgentControllerPermissionModeForController as Bi, upsertSpaceConfig as Bn, listProjectBindings as Bo, DualViewGuideError as Br, readGatewayJsonResponse as Bt, toSpaceMetaUpsertInput as C, writeVersionState as Ca, createPrimaryBindingReadSession as Ci, createProfileByKind as Cn, formatProfileAwareOpenMeldCliCommands as Co, createSpaceResultGuideError as Cr, runDaemonSnapshot as Ct, formatHumanReadTargetList as D, OPENMELD_VERSION as Da, listBuiltinAgentsRegistryEntries as Di, ensureAgentProfileRuntimeBinding as Dn, readDaemonServiceContract as Do, createStartAgentIdentityGuideError as Dr, runDaemonUninstall as Dt, buildHumanReplyContextSummary as E, resolveCurrentDaemonExpectedVersion as Ea, reconcileNewRunnableBuiltinAgentsForSetup as Ei, promptTextEntry as En, syncLocalAgentActivity as Eo, createSpaceUpdatesGuideError as Er, runDaemonTeardownStrict as Et, resolveOpenMeldProfileForSpaceCommand as F, resolveViewProfileKey as Fa, parseAgentControllerRef as Fi, collectLocalAgentControllerInventory as Fn, enqueueAgentActivityHookEvent as Fo, getCliVersionInfo as Fr, readDaemonStartFailureLogTailLines as Ft, runAgentsCustomAdd as G, updateOpenMeldProfile as Ga, buildDaemonServiceTargetSpec as Gi, buildSignalMessageReadProjection as Gn, setDefaultProjectConnection as Go, SPACE_CONTRACT_ALLOWED_ACTION_ORDER as Gr, writeInstalledLocalComponentsSnapshot as Gt, resolveAgentProfileSetup as H, listOpenMeldProfiles as Ha, buildDaemonRouteObservationPresentation as Hi, buildDispatchResultMessageReadProjection as Hn, migrateProjectBindingStore as Ho, buildDualViewGuideMessage as Hr, toStructuredGatewayFailure as Ht, emitSpaceAgentOverview as I, isSelectedOpenMeldProfileRequiredError as Ia, resolveAgentControllerPermissionModeForController as Ii, resolveLocalAgentControllerBlockerReasonCodes as In, removeProjectInbox as Io, registerDaemonControlTargetOptions as Ir, fetchSpaceUpdates as It, runAgentsCustomUpdate as J, getSelectedOpenMeldProfileId as Ja, classifyDaemonServiceWakeability as Ji, createSpaceMemberIdentityIndex as Jn, enqueueControllerTaskLifecycleEventWhileLocked as Jo, canonicalizeAllowedActions as Jr, runDaemonStartDecisionPrompt as Jt, runAgentsCustomList as K, alignSelectedOpenMeldProfileStorage as Ka, resolveDaemonServiceAlignmentDecision as Ki, buildSpaceRoundReadProjection as Kn, unbindProject as Ko, areAllowedActionsEquivalent as Kr, resolveDaemonServiceParticipationStatus as Kt, emitSpaceCliAgentOverview as L, requireOpenMeldProfile as La, resolveAgentExecutionStatus as Li, resolveLocalAgentControllerLaunchability as Ln, readAgentActivityOutboxHealth as Lo, registerAuthLoginRequestOptions as Lr, createCliSpaceApi as Lt, assertFullSignalIdArgument as M, formatMessage as Ma, getAgentControllerPermissionModeDisplayMetadata as Mi, submitProfileRuntimeAgentControllerReport as Mn, resolveObservedAgentActivityBinding as Mo, registerSpaceMemberSelectionOptions as Mr, createDelayedSpinner as Mt, assertValidSpaceIdTarget as N, parseCliViewMode as Na, getAgentControllerPermissionModeFieldLabel as Ni, submitRuntimeAgentControllerReport as Nn, normalizeSharedSessionTitle as No, SPACE_ADD_MEMBERS_PROGRESS_HEARTBEAT_MS as Nr, shouldEmitAgentOverview as Nt, resolveLinkAccessLabel as O, buildHumanErrorCopy as Oa, notifyDaemonRouteCatalogChanged as Oi, formatServiceParticipationReadinessLabel as On, upsertDaemonServiceContract as Oo, createStartAuthenticationGuideError as Or, buildProfileWorkspacePresentation as Ot, prepareAuthenticatedSpaceCommandContext as P, resolveRuntimeContext as Pa, listAgentControllerPermissionModeOptions as Pi, submitRuntimeAgentControllerReports as Pn, readCodexSessionTitles as Po, registerSkillsTargetSelectionOptions as Pr, runDaemonStartupPreflight as Pt, runAgentsList as Q, createAuthenticationError as Qa, resolveAuthBaseUrl as Qi, isReturnKeypress as Qn, sanitizeTerminalDisplayText as Qo, scheduleDaemonServiceUpdate as Qr, runSkillsInstall as Qt, prepareLocalAgentReadiness as R, resolveOpenMeldProfileOrNull as Ra, resolveAgentProfileEditCapabilities as Ri, resolveLocalAgentControllerReportDecision as Rn, removeProjectOutbox as Ro, registerBuiltinAgentSelectionOptions as Rr, fetchSpaceMeta as Rt, loadSpaceSignalIndexOrNull as S, readVersionState as Sa, syncDeviceRuntimeStateProjection as Si, revokeAuthAccessToken as Sn, formatOpenMeldCliTextBlock as So, createSpaceRemoveMembersGuideError as Sr, runDaemonRunAfterEntryChecks as St, buildFormalSignalReadPayload as T, toStartBackgroundHelperExecutionCompatibility as Ta, listAgentTargetStates as Ti, resolveCreateProfileName as Tn, resolveUserFacingCliEntryCommand as To, createSpaceTargetGuideError as Tr, runDaemonStop as Tt, runAgents as U, primeOpenMeldProfilesSessionCache as Ua, buildOnboardingPlan as Ui, buildDispatchResultReplyWorkflowProjection as Un, removeProjectConnection as Uo, formatAgentOverviewPayload as Ur, parseJsonResponse$1 as Ut, persistAgentTransportSelection as V, deleteOpenMeldProfile as Va, PREPARE_SESSION_RECONNECT_GRACE_MS as Vi, assertNoRemovedCcSpaceAddressingSyntax as Vn, listProjectConnectionsWithStatus as Vo, formatDualViewGuideForDisplay as Vr, readGatewayTextResponse as Vt, runAgentsConfig as W, resolveOpenMeldProfile as Wa, getSetupFlowCopy as Wi, buildSignalIndex as Wn, runIfAgentActivityBindingGenerationIsCurrent as Wo, OPENMELD_AGENT_MENTAL_MODEL_LINES as Wr, resolveLocalComponentsStatus as Wt, runAgentsDisable as X, buildAgentAuthenticationGuide as Xa, assessServerRequiredVersion as Xi, promptSearchMultiselect as Xn, renderInfoCard as Xo, readOpenMeldToolsUpdateContextFromEnv as Xr, runSkillsCheck as Xt, runAgentsDetect as Y, setSelectedOpenMeldProfileId as Ya, resolveServiceUpdateUrgency as Yi, formatRemovedCcRelationMessage as Yn, readControllerTaskLifecycleOutboxHealth as Yo, readPendingOpenMeldToolsUpdateAttempt as Yr, collectSkillsReadinessSnapshot as Yt, runAgentsEnable as Z, buildHumanAuthenticationCard as Za, resolveOpenMeldEnvironmentTarget as Zi, promptSearchSelect as Zn, renderTextInfoCard as Zo, runPendingDaemonServiceUpdate as Zr, runSkillsEnsure as Zt, runSpaceWriteWithPasswordRetry as _, buildNextVersionState as _a, resolveConfiguredProfileWorkspacePath as _i, extractAuthApiErrorMessage as _n, uninstallAgentActivityIntegrations as _o, createSpaceAliasTargetGuideError as _r, runDaemonBackgroundStartForDecision as _t, runSpaceDelete as a, resolveVersionChangeDirection as aa, formatAgentReplyReadinessLabel as ai, connectWebSocket as an, validateLocalProjectConnectionPath as ao, writeDispatchSpaceActionRecord as ar, cliJsonSkillsListEnvelopeSchema as as, printOpenMeldBanner as at, buildIdentityOnlyMembersSnapshotForReadProjection as b, fetchLatestCliBinaryRelease as ba, validateCustomProfileWorkspacePath as bi, resolveDeviceAuthClientId as bn, formatOpenMeldCliCommands as bo, createSpaceMenuGuideError as br, runDaemonInterrupt as bt, runSpaceLeave as c, getDaemonSystemServiceLogPath as ca, mapAgentReplyReadinessToLegacyAutoReply as ci, evaluateCommandAuthentication as cn, isAgentActivityRouteRegistered as co, formatDaemonServiceDowngradeBlockedRecommendation as cr, getOrganizationJoinLinkResponseSchema as cs, renderOpenMeldLogo as ct, runSpaceRemoveMembers as d, resolveDaemonServiceManager as da, syncProfileWorkspaceState as di, runAuthMenu as dn, unregisterAgentActivityRoute as do, createDoctorFailedGuideError as dr, compareAgentControllerRefsForDisplay as ds, resolveSpaceWebGatewayOrigin as dt, getCurrentCommandCheckState as ea, resolveDaemonDeviceId as ei, runSkillsUpdate as en, resolveAuthenticationGuidanceFromError as eo, assessCliUpdate as er, errLine as es, runAgentsRepair as et, runSpaceSend as f, readRecentDaemonLifecycleEvents as fa, createModelCatalogReadSession as fi, runAuthStatus as fn, AGENT_ACTIVITY_INTEGRATION_OWNER as fo, createProfileActionGuideError as fr, resolveSpaceSendText as ft, runSpaceReadWithPasswordRetry as g, resolveDaemonServiceUpdateOperation as ga, readProfileWorkspaceConfig as gi, formatActiveOrganizationLabel as gn, resolveAgentActivityDispatcherCommand as go, createSpaceAddMembersGuideError as gr, runDaemonAutostart as gt, uploadPreparedSpaceFiles as h, readPendingDaemonServiceUpdate as ha, normalizeCustomProfileWorkspacePath as hi, buildAuthStatusSnapshot as hn, readAgentActivityIntegrationStatus as ho, createResetConfirmationGuideError as hr, runDaemon as ht, runSpaceCreate as i, inspectDaemonServiceInventory as ia, resolveCurrentReplyReadinessSnapshot as ii, readRecentDaemonDispatchJournalEvents as in, LocalProjectConnectionError as io, readDispatchSpaceActionContextFromEnv as ir, cliJsonOutputEnvelopeSchema as is, colorizeDisplayProfileLabel as it, isSpaceCommandOutputHandledError as j, createPresenter as ja, createAgentExecutionStatusDisplayRows as ji, computeRetryDelayMs as jn, buildAgentActivityEvent as jo, getCommandHintsFromContract as jr, emitDaemonAgentOverview as jt, resolveOrganizationVisibilityLabel as k, renderHumanErrorCard as ka, resolveLocalRegistryAgentIdFromAgentControllerRef as ki, resolveServiceParticipationReadiness as kn, readAgentActivityContextForPath as ko, createUpgradeConfirmationGuideError as kr, buildProfileWorkspaceRows as kt, runSpaceList as l, isDaemonServiceJobNeverSpawned as la, resolveGatewayChainReadiness as li, runAuthLogin as ln, registerAgentActivityRoute as lo, formatDaemonServiceMissingRecommendation as lr, organizationJoinLinkErrorResponseSchema as ls, renderOpenMeldTagline as lt, prepareRequestedSpaceSendFiles as m, performManagedInstall as ma, ensureOpenMeldManagedProfileWorkspace as mi, buildAuthStatusRows as mn, installAgentActivityIntegrations as mo, createProfileMenuGuideError as mr, isManagedSystemServiceBootstrapRun as mt, promptAndConfirmSpacePassword as n, resetCurrentCommandCheckState as na, resolveServiceReadinessFromServiceStatus as ni, readBundledOpenMeldCliSkillDocumentByPath as nn, getProfileDefaultView as no, assertDispatchOwnedRuntimePublicWriteAllowed as nr, outLine as ns, formatTransportModeDisplay as nt, runSpaceHistory as o, readCurrentDaemonRuntimeContext as oa, formatDeviceReplyReadinessLabel as oi, buildCommandAuthenticationPromptMessage as on, LocalDaemonControlPlaneClientError as oo, formatElapsedTime as or, cliJsonSkillsLoadEnvelopeSchema as os, renderOpenMeldBrandBlockLines as ot, runSpaceWatch as p, buildInstallSelfJsonPayload as pa, resolveProfileWorkspaceRuntime as pi, exchangeOneTimeTokenAuthSession as pn, defaultManagedIntegrationPaths as po, createProfileCreateGuideError as pr, bestEffortStopCurrentLaneDaemonService as pt, runAgentsCustomRemove as q, clearSelectedOpenMeldProfileId as qa, classifyDaemonServiceRunStartability as qi, buildUpdatesReplyWorkflowProjection as qn, canonicalizeLocalProjectPath as qo, buildAgentFacingPublicationModeGuideLines as qr, runDaemonServiceParticipationGate as qt, runSpaceAddMembers as r, startCurrentCommandCheckScope as ra, resolveDaemonServiceFreshnessWarning as ri, readRuntimeReportingHealthState as rn, setProfileDefaultView as ro, readDispatchOwnedRuntimeGuard as rr, cliBinaryDeltaPatchSchema as rs, colorizeAgentLabel as rt, runSpaceJoin as s, readCurrentObservedDaemonRuntimeStatus as sa, formatHumanReplyReadinessReason as si, ensureCommandAuthenticationOrCancel as sn, requestLocalAgentActivitySync as so, resolveElapsedTimeMs as sr, cliJsonSkillsShowEnvelopeSchema as ss, renderOpenMeldHeader as st, buildCreateSpacePasswordPromptConfig as t, isCurrentCommandCheckScopeActive as ta, formatDaemonFailureContextText as ti, ensureLocalSkills as tn, resolveAuthenticationGuidanceFromMessage as to, isCliUpdateCheckApplicable as tr, outJsonLine as ts, runAgentsShow as tt, runSpacePassword as u, readDaemonServiceJobCrashExitCode as ua, resolveOpenClawLocalDiagnosticsValue as ui, runAuthLogout as un, resolveAgentActivityRouteForPath as uo, canUseInteractivePrompts as ur, revokeOrganizationJoinLinkResponseSchema as us, resolveGatewayWebOrigin as ut, buildHumanReadSignalsTranscriptItems as v, compareSemver as va, setCustomProfileWorkspace as vi, fetchAuthUserSnapshot as vn, formatInlineOpenMeldCliCommands as vo, createSpaceContractSetGuideError as vr, runDaemonCancel as vt, buildFormalDispatchResultReadPayload as w, resolveDaemonRuntimeContractCompatibility as wa, resolveAgentProfilePrimaryAgentControllerReport as wi, resolveCreateProfileKind as wn, resolveSetupFollowUpCliEntryCommand as wo, createSpaceSubcommandTargetGuideError as wr, runDaemonStatusFlow as wt, loadSpaceIdentityDirectoryOrNull as x, fetchLatestPackageInfo as xa, describeProfileWorkspacePathValidationFailure as xi, resolveDeviceTokenExpiresAt as xn, formatOpenMeldCliLine as xo, createSpacePublicationSetGuideError as xr, runDaemonReinstall as xt, emitHumanReadSignalsTextProjection as y, ensureVersionStateReady as ya, setOpenMeldManagedProfileWorkspace as yi, requestDeviceToken as yn, formatOpenMeldCliCommand as yo, createSpaceLeaveGuideError as yr, runDaemonInstall as yt, buildReplyReadinessGuidance as z, createOpenMeldAgentProfile as za, resolveEvidenceSyncHealth as zi, inspectSpaceCacheFile as zn, bindProject as zo, buildAgentOverviewFromContract as zr, updateSpaceMeta as zt };
111720
111743
 
111721
- //# sourceMappingURL=command-DXNpV3oZ.js.map
111744
+ //# sourceMappingURL=command-B2C7G1YC.js.map