openmeld 0.3.155 → 0.3.157
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{add-me-membership-X4ybgoL6.js → add-me-membership-TdfL6bv0.js} +2 -2
- package/dist/{add-me-membership-X4ybgoL6.js.map → add-me-membership-TdfL6bv0.js.map} +1 -1
- package/dist/{api-client-foundation-BoHvMp-l.js → api-client-foundation-CW0S-K-m.js} +2 -2
- package/dist/{api-client-foundation-BoHvMp-l.js.map → api-client-foundation-CW0S-K-m.js.map} +1 -1
- package/dist/{command-DXNpV3oZ.js → command-DOkt_9l0.js} +198 -161
- package/dist/{command-DXNpV3oZ.js.map → command-DOkt_9l0.js.map} +1 -1
- package/dist/{dist-CUeqTNJi.js → dist-D9pWrVPX.js} +93 -7
- package/dist/dist-D9pWrVPX.js.map +1 -0
- package/dist/openmeld.js +342 -41
- package/dist/openmeld.js.map +1 -1
- package/package.json +2 -2
- package/skills/openmeld-cli/SKILL.md +7 -2
- package/skills/openmeld-cli/playbooks/space-reads.md +30 -6
- package/skills/openmeld-cli/references/commands.md +28 -0
- package/dist/dist-CUeqTNJi.js.map +0 -1
|
@@ -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 { $
|
|
4
|
+
import { $t as spaceMemberAgentWakeAvailabilitySchema, A as MAX_TEXT_LENGTH, At as organizationComputersResponseSchema, B as toErrorMessage$44, C as createSpaceApi, Cn as agentControllerPermissionModeSchema, Ct as organizationDirectoryResponseSchema, D as toStructuredApiClientFailure, Dt as authProfileManagedRoleSchema, E as resolveProfileSpaceHistoryGatewayHost, F as OPENMELD_HEADER_PROFILE_ID, Ft as listCenterAgentRoutineRunsResponseSchema, G as SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS, H as toErrorMessage$43, Ht as agentActivityEventSchema, It as listCenterAgentRoutinesResponseSchema, Jt as localProjectControlDaemonFrameSchema, Kt as agentActivitySnapshotResponseSchema, L as OPENMELD_HEADER_REQUEST_ID, Lt as pauseCenterAgentRoutineResponseSchema, M as parseIncoming$1, Mt as submitFeedbackIssueResponseSchema, N as parseServerErrorFrame$1, Nt as createCenterAgentRoutineResponseSchema, O as DAEMON_STREAM_KEEPALIVE_PING, Ot as profileCapabilitiesResponseSchema, P as resolveCustomMentionAliasOverride, Pt as deleteCenterAgentRoutineResponseSchema, Qt as removeSpaceMembersResponseSchema, R as OPENMELD_HEADER_SPACE_ADDRESSING_VERSION, Rt as resumeCenterAgentRoutineResponseSchema, S as createRuntimeReportingApi, T as resolveAccountSpaceIndexGatewayHost, Tn as toCompatibleSpaceAddressingRequestWireValue, Tt as ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE, U as getSpaceUpdatesResponseSchema, V as sleep, Vt as AGENT_ACTIVITY_PRESENCE_TTL_MAX_MS, W as spaceEntryTargetSchema, Xt as leaveSpaceResponseSchema, Yt as localProjectControlDiscoverProjectsResponseSchema, Zt as postSpaceMembersResponseSchema, _t as getOrganizationSkillResponseSchema, a as buildSpaceAttachmentDownloadPath, bt as organizationSkillReleaseSummarySchema, c as createAgentProfileBindingApi, ct as OPENMELD_RUNTIME_CAPABILITIES_HEADER, d as createCurrentDeviceApi, dn as createProjectResponseSchema, dt as computerFileAccessPolicySchema, en as spaceMemberDirectoryAllowedRelationsSchema, et as submitAgentControllerTaskLifecycleEventItemSchema, fn as listProjectsResponseSchema, ft as modelCatalogSchema, g as createOrganizationApi, gn as openCodePermissionConfigSchema, gt as spaceMetaSchema, h as createOpenMeldApiClient, hn as centerAgentToolSpeakerSchema, ht as spaceCreatorSchema, i as buildProfileSpaceHistoryUpsertPath, j as parseEnvelope$1, jt as submitFeedbackIssueRequestSchema, kt as profileErrorResponseSchema, ln as observedLocalAgentSessionSchema, lt as computerFileAccessDaemonFrameSchema, m as createLocalRuntimeExpectedRoutesApi, mn as updateProjectResponseSchema, mt as resolveInitialSpaceAccessMode, n as OpenMeldApiClientInvalidResponseError, nn as spaceMemberDirectorySchema, o as createAccountSpaceIndexApi, ot as gatewayErrorEnvelopeSchema, p as createFetchTransport, pn as projectSchema, pt as organizationSpaceDirectoryWithMemberCountsResponseSchema, qt as localProjectControlConnectionSchema, r as buildProfileSpaceHistoryStatusPath, rn as spaceMemberKindSchema, s as createAgentActivityApi, sn as agentActivitySessionInventoryResponseSchema, st as COMPUTER_FILE_ACCESS_RUNTIME_CAPABILITY, t as OpenMeldApiClientHttpError, tn as spaceMemberDirectoryEntrySchema, un as archiveProjectResponseSchema, ut as computerFileAccessPolicyInputSchema, vt as listOrganizationSkillsResponseSchema, wn as agentControllerCollaborationModeSchema, wt as ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE, xt as organizationSkillSummarySchema, y as createProfileSpaceHistoryApi, zt as updateCenterAgentRoutineResponseSchema } from "./dist-D9pWrVPX.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-
|
|
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-CW0S-K-m.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,8 +20165,8 @@ 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.
|
|
20169
|
-
openMeldReleaseDate: "2026-09-
|
|
20168
|
+
version: "0.3.157",
|
|
20169
|
+
openMeldReleaseDate: "2026-09-05",
|
|
20170
20170
|
description: "OpenMeld CLI - https://openmeld.ai",
|
|
20171
20171
|
license: "MIT",
|
|
20172
20172
|
type: "module",
|
|
@@ -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-
|
|
39754
|
+
import("./dist-D9pWrVPX.js").then((n) => n.w),
|
|
39734
39755
|
import("./base-url-CY_j4bLH.js").then((n) => n.n),
|
|
39735
|
-
import("./api-client-foundation-
|
|
39756
|
+
import("./api-client-foundation-CW0S-K-m.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
|
|
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
|
-
|
|
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
|
-
|
|
45717
|
-
if (
|
|
45718
|
-
|
|
45719
|
-
|
|
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
|
|
47117
|
+
const pending = await readPendingJob();
|
|
47048
47118
|
if (pending === null || pending.jobId !== job.jobId || pending.urgency === "required") return;
|
|
47049
47119
|
try {
|
|
47050
|
-
if ((await
|
|
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
|
|
47124
|
+
await wait(2e3);
|
|
47057
47125
|
}
|
|
47058
47126
|
}
|
|
47059
47127
|
async function resolveCurrentDaemonDesiredState() {
|
|
@@ -48999,6 +49067,8 @@ 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>] link <space-id> [--signal <signal-id>] [--thread-root-signal <signal-id>] --view agent",
|
|
49071
|
+
"openmeld space [--gateway-url <url>] access [--profile <profile-id>] <space-url-or-id> [--json] [--password <value>]",
|
|
49002
49072
|
"openmeld space [--gateway-url <url>] send [--profile <profile-id>] <space-id> [<text...>|--stdin|--text-file <path>] [--file <path>...] [--plain] [--password <value>]",
|
|
49003
49073
|
SPACE_HISTORY_USAGE,
|
|
49004
49074
|
"openmeld space [--gateway-url <url>] contract [--profile <profile-id>] <space-id> [--json] [--password <value>]",
|
|
@@ -49161,6 +49231,12 @@ function createSpaceLeaveGuideError(summary) {
|
|
|
49161
49231
|
}
|
|
49162
49232
|
function createSpaceTargetGuideError(command) {
|
|
49163
49233
|
const optionalArgsByCommand = {
|
|
49234
|
+
access: [
|
|
49235
|
+
"--json",
|
|
49236
|
+
"--password <value>",
|
|
49237
|
+
SPACE_GATEWAY_PARENT_OPTION_TEXT,
|
|
49238
|
+
"--profile <profile-id>"
|
|
49239
|
+
],
|
|
49164
49240
|
join: [
|
|
49165
49241
|
"--password <value>",
|
|
49166
49242
|
"--local-echo|--no-local-echo",
|
|
@@ -49210,6 +49286,7 @@ function createSpaceTargetGuideError(command) {
|
|
|
49210
49286
|
agentRequiredArgs: [`<space-id> (required positional argument for openmeld space ${command})`],
|
|
49211
49287
|
agentOptionalArgs: optionalArgsByCommand[command],
|
|
49212
49288
|
agentCommands: {
|
|
49289
|
+
access: ["openmeld space [--gateway-url <url>] access [--profile <profile-id>] <space-url-or-id> [--json] [--password <value>]"],
|
|
49213
49290
|
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
49291
|
watch: ["openmeld space [--gateway-url <url>] watch [--profile <profile-id>] <space-id> [--password <value>] [--history-limit <n>] [--output text|ndjson]"],
|
|
49215
49292
|
contract: ["openmeld space [--gateway-url <url>] contract [--profile <profile-id>] <space-id> [--json] [--password <value>]"],
|
|
@@ -51309,6 +51386,19 @@ function createSpaceAccessProof(password) {
|
|
|
51309
51386
|
function assertNever$2(value) {
|
|
51310
51387
|
throw new Error(`Unhandled Space access variant: ${String(value)}`);
|
|
51311
51388
|
}
|
|
51389
|
+
const SPACE_ENTRY_PLACEHOLDER_ORIGIN = "https://openmeld.invalid";
|
|
51390
|
+
function buildPublicSpaceEntryPath(target) {
|
|
51391
|
+
const parsedTarget = spaceEntryTargetSchema.parse(target);
|
|
51392
|
+
const url = new URL(`/spaces/${encodeURIComponent(parsedTarget.spaceId)}`, SPACE_ENTRY_PLACEHOLDER_ORIGIN);
|
|
51393
|
+
if (parsedTarget.signalId) url.searchParams.set("signalId", parsedTarget.signalId);
|
|
51394
|
+
if (parsedTarget.threadRootSignalId) url.searchParams.set("threadRootSignalId", parsedTarget.threadRootSignalId);
|
|
51395
|
+
return `${url.pathname}${url.search}`;
|
|
51396
|
+
}
|
|
51397
|
+
function buildPublicSpaceEntryUrl(input) {
|
|
51398
|
+
const path = buildPublicSpaceEntryPath(input.target);
|
|
51399
|
+
if (!input.origin) return path;
|
|
51400
|
+
return new URL(path, input.origin).toString();
|
|
51401
|
+
}
|
|
51312
51402
|
function resolveSpaceMemberAgentPublicCollaborationView(member) {
|
|
51313
51403
|
return { agentWakeAvailability: member.agentWakeAvailability ?? null };
|
|
51314
51404
|
}
|
|
@@ -66795,21 +66885,6 @@ const DAEMON_STARTUP_BLOCKING_ANOMALIES = /* @__PURE__ */ new Set([
|
|
|
66795
66885
|
"runtime_bundle_mismatch",
|
|
66796
66886
|
"runtime_contract_mismatch"
|
|
66797
66887
|
]);
|
|
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
66888
|
function resolveStartupLocalMachineIssue(input) {
|
|
66814
66889
|
if (input.jobDiagnostics && isDaemonServiceBackgroundExecutionBlocked(input.jobDiagnostics)) return createBackgroundExecutionBlockedIssue({ detail: formatDaemonServiceJobDiagnosticsEvidence(input.jobDiagnostics) });
|
|
66815
66890
|
if (input.assessedIssue.code === "local_machine.failure.unknown") return null;
|
|
@@ -66942,14 +67017,6 @@ function buildSystemServiceStartupFailureDiagnostics(input) {
|
|
|
66942
67017
|
serviceLogPath: getDaemonSystemServiceLogPath()
|
|
66943
67018
|
};
|
|
66944
67019
|
}
|
|
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
67020
|
function formatSystemServiceFailureRow(row) {
|
|
66954
67021
|
const label = row.label.trim();
|
|
66955
67022
|
const value = formatOpenMeldCliTextBlock(row.value).trim();
|
|
@@ -66967,40 +67034,12 @@ function isPermissionOrAuthorizationError(message) {
|
|
|
66967
67034
|
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
67035
|
}
|
|
66969
67036
|
function isDaemonInventoryRunningAndStartReady(inventory) {
|
|
66970
|
-
|
|
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));
|
|
67037
|
+
return isDaemonInventoryRunningAndStartReady$1(inventory, DAEMON_STARTUP_BLOCKING_ANOMALIES);
|
|
66974
67038
|
}
|
|
66975
67039
|
async function waitForSystemServiceStartup(input) {
|
|
66976
|
-
|
|
66977
|
-
|
|
66978
|
-
|
|
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
|
|
67040
|
+
return await waitForSystemServiceStartup$1({
|
|
67041
|
+
...input,
|
|
67042
|
+
isReady: isDaemonInventoryRunningAndStartReady
|
|
67004
67043
|
});
|
|
67005
67044
|
}
|
|
67006
67045
|
//#endregion
|
|
@@ -67375,7 +67414,10 @@ function emitServiceAccountRefreshNotice(input) {
|
|
|
67375
67414
|
});
|
|
67376
67415
|
}
|
|
67377
67416
|
function resolveScheduledServiceRefreshResult(outcome) {
|
|
67378
|
-
return outcome.ok && outcome.result === "scheduled" ? {
|
|
67417
|
+
return outcome.ok && outcome.result === "scheduled" ? {
|
|
67418
|
+
errorMessage: "OpenMeld Service update started in the background. Run `openmeld setup` again after it finishes.",
|
|
67419
|
+
status: "needs_attention"
|
|
67420
|
+
} : null;
|
|
67379
67421
|
}
|
|
67380
67422
|
function renderRefreshFailureIfVisible(input) {
|
|
67381
67423
|
if (input.suppressed) return;
|
|
@@ -80804,7 +80846,7 @@ function buildDaemonReinstallResultTitle(outcome, action) {
|
|
|
80804
80846
|
const actionPastTitle = formatDaemonServiceMaintenanceActionPastTitle(action);
|
|
80805
80847
|
switch (outcome.result) {
|
|
80806
80848
|
case "already_healthy": return "✅ OpenMeld Service Is Already Healthy";
|
|
80807
|
-
case "scheduled": return "
|
|
80849
|
+
case "scheduled": return "⏳ OpenMeld Service Update Started";
|
|
80808
80850
|
case "completed": return outcome.serviceState === "running" ? `✅ OpenMeld Service ${actionPastTitle}` : `⚠️ OpenMeld Service ${actionPastTitle} But Not Running`;
|
|
80809
80851
|
case "stopped_safe": return "✅ OpenMeld Service Safely Stopped";
|
|
80810
80852
|
case "in_progress": return `⏳ OpenMeld Service ${actionTitle} In Progress`;
|
|
@@ -81810,7 +81852,6 @@ const DAEMON_RUN_MODE_CHOICES = {
|
|
|
81810
81852
|
};
|
|
81811
81853
|
const DEFAULT_DAEMON_RUN_MODE = DAEMON_RUN_MODE_CHOICES.background;
|
|
81812
81854
|
const SERVICE_STARTUP_CHECK_MS = 5e3;
|
|
81813
|
-
const LAUNCHD_SERVICE_STARTUP_CHECK_MS = 9e4;
|
|
81814
81855
|
const SERVICE_STARTUP_POLL_MS = 120;
|
|
81815
81856
|
const REINSTALL_DRAIN_WAIT_MS = 2e4;
|
|
81816
81857
|
const REINSTALL_VERIFY_WAIT_MS = 2e4;
|
|
@@ -84469,7 +84510,7 @@ async function resolveSystemBootstrapDaemonContract(input) {
|
|
|
84469
84510
|
const currentContract = await readDaemonServiceContract().catch(() => null);
|
|
84470
84511
|
const explicitGatewayUrl = await resolveExplicitGatewayUrlOrThrow(input.gatewayUrl);
|
|
84471
84512
|
const currentContractGatewayUrl = currentContract && !explicitGatewayUrl ? resolvePersistedDaemonServiceContractGatewayUrl(currentContract.gatewayUrl) : null;
|
|
84472
|
-
if (currentContract && isDaemonServiceContractIdentityReusable(currentContract) && currentContractGatewayUrl
|
|
84513
|
+
if (currentContract && isDaemonServiceContractIdentityReusable(currentContract) && currentContractGatewayUrl) return currentContract;
|
|
84473
84514
|
const systemManager = await resolveDaemonServiceManager().catch(() => null);
|
|
84474
84515
|
return await maybeWriteDaemonServiceContract({
|
|
84475
84516
|
runtime: input.runtime,
|
|
@@ -84492,10 +84533,6 @@ function resolvePersistedDaemonServiceContractGatewayUrl(gatewayUrl) {
|
|
|
84492
84533
|
throw new Error(`Invalid persisted OpenMeld Service contract gateway URL "${gatewayUrl}": ${toErrorMessage$43(error)}`);
|
|
84493
84534
|
}
|
|
84494
84535
|
}
|
|
84495
|
-
function resolveSystemServiceStartupWaitMs(controller) {
|
|
84496
|
-
if (controller === "launchd") return LAUNCHD_SERVICE_STARTUP_CHECK_MS;
|
|
84497
|
-
return SERVICE_STARTUP_CHECK_MS;
|
|
84498
|
-
}
|
|
84499
84536
|
function emitSystemServiceBackgroundStarted(input) {
|
|
84500
84537
|
if (input.runtime.resolvedView === "human") {
|
|
84501
84538
|
renderServiceActionCard({
|
|
@@ -111716,6 +111753,6 @@ function isHumanInteractiveSpaceRuntime(runtime) {
|
|
|
111716
111753
|
return runtime.resolvedView === "human" && canUseInteractivePrompts(runtime);
|
|
111717
111754
|
}
|
|
111718
111755
|
//#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 };
|
|
111756
|
+
export { runAgentsManage as $, createAuthenticationError as $a, resolveAuthBaseUrl as $i, isReturnKeypress as $n, sanitizeTerminalDisplayText as $o, scheduleDaemonServiceUpdate as $r, runSkillsUninstall as $t, parseEnvelope as A, renderHumanErrorCard as Aa, resolveLocalRegistryAgentIdFromAgentControllerRef as Ai, assessActionParticipationCandidate as An, readAgentActivityContextForPath as Ao, createUpgradeConfirmationGuideError as Ar, reconcileCliVersionView as At, resolveHumanControllerDisplayName as B, createOpenMeldAgentProfile as Ba, resolveEvidenceSyncHealth as Bi, upsertSpaceConfig as Bn, bindProject as Bo, buildAgentOverviewFromContract as Br, readGatewayJsonResponse as Bt, toSpaceMetaUpsertInput as C, readVersionState as Ca, syncDeviceRuntimeStateProjection as Ci, createProfileByKind as Cn, formatOpenMeldCliTextBlock as Co, createSpaceRemoveMembersGuideError as Cr, runDaemonSnapshot as Ct, formatHumanReadTargetList as D, resolveCurrentDaemonExpectedVersion as Da, reconcileNewRunnableBuiltinAgentsForSetup as Di, ensureAgentProfileRuntimeBinding as Dn, syncLocalAgentActivity as Do, createSpaceUpdatesGuideError as Dr, runDaemonUninstall as Dt, buildHumanReplyContextSummary as E, toStartBackgroundHelperExecutionCompatibility as Ea, listAgentTargetStates as Ei, promptTextEntry as En, resolveUserFacingCliEntryCommand as Eo, createSpaceTargetGuideError as Er, runDaemonTeardownStrict as Et, resolveOpenMeldProfileForSpaceCommand as F, resolveRuntimeContext as Fa, listAgentControllerPermissionModeOptions as Fi, collectLocalAgentControllerInventory as Fn, readCodexSessionTitles as Fo, registerSkillsTargetSelectionOptions as Fr, readDaemonStartFailureLogTailLines as Ft, runAgentsCustomAdd as G, resolveOpenMeldProfile as Ga, getSetupFlowCopy as Gi, buildSignalIndex as Gn, runIfAgentActivityBindingGenerationIsCurrent as Go, OPENMELD_AGENT_MENTAL_MODEL_LINES as Gr, writeInstalledLocalComponentsSnapshot as Gt, resolveAgentProfileSetup as H, deleteOpenMeldProfile as Ha, PREPARE_SESSION_RECONNECT_GRACE_MS as Hi, buildDispatchResultMessageReadProjection as Hn, listProjectConnectionsWithStatus as Ho, formatDualViewGuideForDisplay as Hr, toStructuredGatewayFailure as Ht, emitSpaceAgentOverview as I, resolveViewProfileKey as Ia, parseAgentControllerRef as Ii, resolveLocalAgentControllerBlockerReasonCodes as In, enqueueAgentActivityHookEvent as Io, getCliVersionInfo as Ir, fetchSpaceUpdates as It, runAgentsCustomUpdate as J, clearSelectedOpenMeldProfileId as Ja, classifyDaemonServiceRunStartability as Ji, buildUpdatesReplyWorkflowProjection as Jn, canonicalizeLocalProjectPath as Jo, buildAgentFacingPublicationModeGuideLines as Jr, runDaemonStartDecisionPrompt as Jt, runAgentsCustomList as K, updateOpenMeldProfile as Ka, buildDaemonServiceTargetSpec as Ki, buildSignalMessageReadProjection as Kn, setDefaultProjectConnection as Ko, SPACE_CONTRACT_ALLOWED_ACTION_ORDER as Kr, resolveDaemonServiceParticipationStatus as Kt, emitSpaceCliAgentOverview as L, isSelectedOpenMeldProfileRequiredError as La, resolveAgentControllerPermissionModeForController as Li, resolveLocalAgentControllerLaunchability as Ln, removeProjectInbox as Lo, registerDaemonControlTargetOptions as Lr, createCliSpaceApi as Lt, assertFullSignalIdArgument as M, createPresenter as Ma, createAgentExecutionStatusDisplayRows as Mi, submitProfileRuntimeAgentControllerReport as Mn, buildAgentActivityEvent as Mo, getCommandHintsFromContract as Mr, createDelayedSpinner as Mt, assertValidSpaceIdTarget as N, formatMessage as Na, getAgentControllerPermissionModeDisplayMetadata as Ni, submitRuntimeAgentControllerReport as Nn, resolveObservedAgentActivityBinding as No, registerSpaceMemberSelectionOptions as Nr, shouldEmitAgentOverview as Nt, resolveLinkAccessLabel as O, OPENMELD_VERSION as Oa, listBuiltinAgentsRegistryEntries as Oi, formatServiceParticipationReadinessLabel as On, readDaemonServiceContract as Oo, createStartAgentIdentityGuideError as Or, buildProfileWorkspacePresentation as Ot, prepareAuthenticatedSpaceCommandContext as P, parseCliViewMode as Pa, getAgentControllerPermissionModeFieldLabel as Pi, submitRuntimeAgentControllerReports as Pn, normalizeSharedSessionTitle as Po, SPACE_ADD_MEMBERS_PROGRESS_HEARTBEAT_MS as Pr, runDaemonStartupPreflight as Pt, runAgentsList as Q, buildHumanAuthenticationCard as Qa, resolveOpenMeldEnvironmentTarget as Qi, promptSearchSelect as Qn, renderTextInfoCard as Qo, runPendingDaemonServiceUpdate as Qr, runSkillsInstall as Qt, prepareLocalAgentReadiness as R, requireOpenMeldProfile as Ra, resolveAgentExecutionStatus as Ri, resolveLocalAgentControllerReportDecision as Rn, readAgentActivityOutboxHealth as Ro, registerAuthLoginRequestOptions as Rr, fetchSpaceMeta as Rt, loadSpaceSignalIndexOrNull as S, fetchLatestPackageInfo as Sa, describeProfileWorkspacePathValidationFailure as Si, revokeAuthAccessToken as Sn, formatOpenMeldCliLine as So, createSpacePublicationSetGuideError as Sr, runDaemonRunAfterEntryChecks as St, buildFormalSignalReadPayload as T, resolveDaemonRuntimeContractCompatibility as Ta, resolveAgentProfilePrimaryAgentControllerReport as Ti, resolveCreateProfileName as Tn, resolveSetupFollowUpCliEntryCommand as To, createSpaceSubcommandTargetGuideError as Tr, runDaemonStop as Tt, runAgents as U, listOpenMeldProfiles as Ua, buildDaemonRouteObservationPresentation as Ui, buildDispatchResultReplyWorkflowProjection as Un, migrateProjectBindingStore as Uo, buildDualViewGuideMessage as Ur, parseJsonResponse$1 as Ut, persistAgentTransportSelection as V, createOpenMeldHumanProfile as Va, resolveNativeAgentControllerPermissionModeForController as Vi, assertNoRemovedCcSpaceAddressingSyntax as Vn, listProjectBindings as Vo, DualViewGuideError as Vr, readGatewayTextResponse as Vt, runAgentsConfig as W, primeOpenMeldProfilesSessionCache as Wa, buildOnboardingPlan as Wi, buildPublicSpaceEntryUrl as Wn, removeProjectConnection as Wo, formatAgentOverviewPayload as Wr, resolveLocalComponentsStatus as Wt, runAgentsDisable as X, setSelectedOpenMeldProfileId as Xa, resolveServiceUpdateUrgency as Xi, formatRemovedCcRelationMessage as Xn, readControllerTaskLifecycleOutboxHealth as Xo, readPendingOpenMeldToolsUpdateAttempt as Xr, runSkillsCheck as Xt, runAgentsDetect as Y, getSelectedOpenMeldProfileId as Ya, classifyDaemonServiceWakeability as Yi, createSpaceMemberIdentityIndex as Yn, enqueueControllerTaskLifecycleEventWhileLocked as Yo, canonicalizeAllowedActions as Yr, collectSkillsReadinessSnapshot as Yt, runAgentsEnable as Z, buildAgentAuthenticationGuide as Za, assessServerRequiredVersion as Zi, promptSearchMultiselect as Zn, renderInfoCard as Zo, readOpenMeldToolsUpdateContextFromEnv as Zr, runSkillsEnsure as Zt, runSpaceWriteWithPasswordRetry as _, resolveDaemonServiceUpdateOperation as _a, readProfileWorkspaceConfig as _i, extractAuthApiErrorMessage as _n, resolveAgentActivityDispatcherCommand as _o, createSpaceAddMembersGuideError as _r, runDaemonBackgroundStartForDecision as _t, runSpaceDelete as a, inspectDaemonServiceInventory as aa, resolveCurrentReplyReadinessSnapshot as ai, connectWebSocket as an, LocalProjectConnectionError as ao, readDispatchSpaceActionContextFromEnv as ar, cliJsonOutputEnvelopeSchema as as, printOpenMeldBanner as at, buildIdentityOnlyMembersSnapshotForReadProjection as b, ensureVersionStateReady as ba, setOpenMeldManagedProfileWorkspace as bi, resolveDeviceAuthClientId as bn, formatOpenMeldCliCommand as bo, createSpaceLeaveGuideError as br, runDaemonInterrupt as bt, runSpaceLeave as c, readCurrentObservedDaemonRuntimeStatus as ca, formatHumanReplyReadinessReason as ci, evaluateCommandAuthentication as cn, requestLocalAgentActivitySync as co, resolveElapsedTimeMs as cr, cliJsonSkillsShowEnvelopeSchema as cs, renderOpenMeldLogo as ct, runSpaceRemoveMembers as d, readDaemonServiceJobCrashExitCode as da, resolveOpenClawLocalDiagnosticsValue as di, runAuthMenu as dn, resolveAgentActivityRouteForPath as do, canUseInteractivePrompts as dr, revokeOrganizationJoinLinkResponseSchema as ds, resolveSpaceWebGatewayOrigin as dt, finishCurrentCommandCheckScope as ea, ensureDaemonRuntimePaths as ei, runSkillsUpdate as en, resolveAuthenticationGuidance as eo, runInteractivePrompt as er, emitCliJsonEnvelope as es, runAgentsRepair as et, runSpaceSend as f, resolveDaemonServiceManager as fa, syncProfileWorkspaceState as fi, runAuthStatus as fn, unregisterAgentActivityRoute as fo, createDoctorFailedGuideError as fr, compareAgentControllerRefsForDisplay as fs, resolveSpaceSendText as ft, runSpaceReadWithPasswordRetry as g, readPendingDaemonServiceUpdate as ga, normalizeCustomProfileWorkspacePath as gi, formatActiveOrganizationLabel as gn, readAgentActivityIntegrationStatus as go, createResetConfirmationGuideError as gr, runDaemonAutostart as gt, uploadPreparedSpaceFiles as h, performManagedInstall as ha, ensureOpenMeldManagedProfileWorkspace as hi, buildAuthStatusSnapshot as hn, installAgentActivityIntegrations as ho, createProfileMenuGuideError as hr, runDaemon as ht, runSpaceCreate as i, startCurrentCommandCheckScope as ia, resolveDaemonServiceFreshnessWarning as ii, readRecentDaemonDispatchJournalEvents as in, setProfileDefaultView as io, readDispatchOwnedRuntimeGuard as ir, cliBinaryDeltaPatchSchema as is, colorizeDisplayProfileLabel as it, isSpaceCommandOutputHandledError as j, renderHumanTextErrorCard as ja, buildAgentControllerRef as ji, computeRetryDelayMs as jn, removeAgentActivityContextCache as jo, getCommandEntryContract as jr, emitDaemonAgentOverview as jt, resolveOrganizationVisibilityLabel as k, buildHumanErrorCopy as ka, notifyDaemonRouteCatalogChanged as ki, resolveServiceParticipationReadiness as kn, upsertDaemonServiceContract as ko, createStartAuthenticationGuideError as kr, buildProfileWorkspaceRows as kt, runSpaceList as l, getDaemonSystemServiceLogPath as la, mapAgentReplyReadinessToLegacyAutoReply as li, runAuthLogin as ln, isAgentActivityRouteRegistered as lo, formatDaemonServiceDowngradeBlockedRecommendation as lr, getOrganizationJoinLinkResponseSchema as ls, renderOpenMeldTagline as lt, prepareRequestedSpaceSendFiles as m, buildInstallSelfJsonPayload as ma, resolveProfileWorkspaceRuntime as mi, buildAuthStatusRows as mn, defaultManagedIntegrationPaths as mo, createProfileCreateGuideError as mr, isManagedSystemServiceBootstrapRun as mt, promptAndConfirmSpacePassword as n, isCurrentCommandCheckScopeActive as na, formatDaemonFailureContextText as ni, readBundledOpenMeldCliSkillDocumentByPath as nn, resolveAuthenticationGuidanceFromMessage as no, isCliUpdateCheckApplicable as nr, outJsonLine as ns, formatTransportModeDisplay as nt, runSpaceHistory as o, resolveVersionChangeDirection as oa, formatAgentReplyReadinessLabel as oi, buildCommandAuthenticationPromptMessage as on, validateLocalProjectConnectionPath as oo, writeDispatchSpaceActionRecord as or, cliJsonSkillsListEnvelopeSchema as os, renderOpenMeldBrandBlockLines as ot, runSpaceWatch as p, readRecentDaemonLifecycleEvents as pa, createModelCatalogReadSession as pi, exchangeOneTimeTokenAuthSession as pn, AGENT_ACTIVITY_INTEGRATION_OWNER as po, createProfileActionGuideError as pr, bestEffortStopCurrentLaneDaemonService as pt, runAgentsCustomRemove as q, alignSelectedOpenMeldProfileStorage as qa, resolveDaemonServiceAlignmentDecision as qi, buildSpaceRoundReadProjection as qn, unbindProject as qo, areAllowedActionsEquivalent as qr, runDaemonServiceParticipationGate as qt, runSpaceAddMembers as r, resetCurrentCommandCheckState as ra, resolveServiceReadinessFromServiceStatus as ri, readRuntimeReportingHealthState as rn, getProfileDefaultView as ro, assertDispatchOwnedRuntimePublicWriteAllowed as rr, outLine as rs, colorizeAgentLabel as rt, runSpaceJoin as s, readCurrentDaemonRuntimeContext as sa, formatDeviceReplyReadinessLabel as si, ensureCommandAuthenticationOrCancel as sn, LocalDaemonControlPlaneClientError as so, formatElapsedTime as sr, cliJsonSkillsLoadEnvelopeSchema as ss, renderOpenMeldHeader as st, buildCreateSpacePasswordPromptConfig as t, getCurrentCommandCheckState as ta, resolveDaemonDeviceId as ti, ensureLocalSkills as tn, resolveAuthenticationGuidanceFromError as to, assessCliUpdate as tr, errLine as ts, runAgentsShow as tt, runSpacePassword as u, isDaemonServiceJobNeverSpawned as ua, resolveGatewayChainReadiness as ui, runAuthLogout as un, registerAgentActivityRoute as uo, formatDaemonServiceMissingRecommendation as ur, organizationJoinLinkErrorResponseSchema as us, resolveGatewayWebOrigin as ut, buildHumanReadSignalsTranscriptItems as v, buildNextVersionState as va, resolveConfiguredProfileWorkspacePath as vi, fetchAuthUserSnapshot as vn, uninstallAgentActivityIntegrations as vo, createSpaceAliasTargetGuideError as vr, runDaemonCancel as vt, buildFormalDispatchResultReadPayload as w, writeVersionState as wa, createPrimaryBindingReadSession as wi, resolveCreateProfileKind as wn, formatProfileAwareOpenMeldCliCommands as wo, createSpaceResultGuideError as wr, runDaemonStatusFlow as wt, loadSpaceIdentityDirectoryOrNull as x, fetchLatestCliBinaryRelease as xa, validateCustomProfileWorkspacePath as xi, resolveDeviceTokenExpiresAt as xn, formatOpenMeldCliCommands as xo, createSpaceMenuGuideError as xr, runDaemonReinstall as xt, emitHumanReadSignalsTextProjection as y, compareSemver as ya, setCustomProfileWorkspace as yi, requestDeviceToken as yn, formatInlineOpenMeldCliCommands as yo, createSpaceContractSetGuideError as yr, runDaemonInstall as yt, buildReplyReadinessGuidance as z, resolveOpenMeldProfileOrNull as za, resolveAgentProfileEditCapabilities as zi, inspectSpaceCacheFile as zn, removeProjectOutbox as zo, registerBuiltinAgentSelectionOptions as zr, updateSpaceMeta as zt };
|
|
111720
111757
|
|
|
111721
|
-
//# sourceMappingURL=command-
|
|
111758
|
+
//# sourceMappingURL=command-DOkt_9l0.js.map
|