openmeld 0.3.149 → 0.3.151
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-C0gF4T3y.js → add-me-membership-BySE_Kwp.js} +2 -2
- package/dist/{add-me-membership-C0gF4T3y.js.map → add-me-membership-BySE_Kwp.js.map} +1 -1
- package/dist/{api-client-foundation-CKK6mXwO.js → api-client-foundation-CEvMG6WB.js} +2 -2
- package/dist/{api-client-foundation-CKK6mXwO.js.map → api-client-foundation-CEvMG6WB.js.map} +1 -1
- package/dist/{command-SObtdaNw.js → command-VQZQ1SIT.js} +283 -128
- package/dist/{command-SObtdaNw.js.map → command-VQZQ1SIT.js.map} +1 -1
- package/dist/{dist-uIlo_qlW.js → dist-BPsknNZJ.js} +27 -216
- package/dist/dist-BPsknNZJ.js.map +1 -0
- package/dist/openmeld.js +32 -7
- package/dist/openmeld.js.map +1 -1
- package/package.json +1 -1
- package/skills/openmeld-cli/SKILL.md +7 -0
- package/skills/openmeld-cli/playbooks/space-reads.md +13 -2
- package/skills/openmeld-cli/references/commands.md +8 -1
- package/dist/dist-uIlo_qlW.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 { $ 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-
|
|
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-BPsknNZJ.js";
|
|
5
5
|
import { $r as MAX_PROFILE_WORKING_DIRECTORY_LENGTH, A as runtimeTransportRegisterSessionResponseSchema, Bn as agentInteractionResolutionSchema, C as runtimeTransportLocalAgentControlRefreshCatalogFramePayloadSchema, Cn as MESSAGE_MENTION_TYPE_VALUES, D as runtimeTransportOpenMeldToolsControlFramePayloadSchema, Dr as url, E as runtimeTransportLookupRouteOwnerServiceEvidenceSchema, En as getSpaceMessageAddressingRelationSupportForTargetKind, Fr as runtimeCoordinatorExecutionTokenEnvelopeSchema, Gn as formatLocalSetupActionLabel, H as openMeldDaemonTaskResultEnvelopeWriteSchema, Hn as formatLocalComponentsSummaryDescription, Hr as resolveSpaceMentionLabels, I as runtimeTransportSubmitTaskResultRequestSchema, Ir as runtimeTransportDeliveryExecutionIdentitySchema, J as OPENMELD_LOCAL_FOLDER_PICKER_CAPABILITY_HEADER, K as openMeldSpaceEgressActionSchema, Kn as installedLocalComponentsSnapshotSchema, Kt as resolveSpaceFileMimeType, L as OPENMELD_ORIGINAL_ERROR_MAX_LENGTH, Ln as AGENT_INTERACTION_DEFAULT_TIMEOUT_MS, M as runtimeTransportResumeControllerConversationFramePayloadSchema, N as runtimeTransportResumeControllerConversationResultFramePayloadSchema, O as runtimeTransportOpenMeldToolsControlResultFramePayloadSchema, On as normalizeMessageEnvelope, P as runtimeTransportRouteCatalogChangedFramePayloadSchema, Qr as openMeldRequestContextSchema, R as isOriginalErrorSafeForMessageDetails, Rt as SPACE_FILE_MAX_SIZE_BYTES, S as runtimeTransportLocalAgentControlManageInstallationFramePayloadSchema, Si as resolveCommandAgentWorkActivity, Sr as string, St as sanitizeSignalTextPreview, T as runtimeTransportLocalAgentControlSetProfileWorkspaceFramePayloadSchema, Tn as formatCanonicalMentionLiteral, U as openMeldDaemonTaskResultOpenClawGatewayVisibilityStatusSchema, Un as formatLocalComponentsSummaryLabel, V as openMeldDaemonProviderAccessEvidenceSchema, Vr as resolveSingleSpaceMentionLabels, W as openMeldDaemonTaskResultPayloadSchema, Wn as formatLocalSetupActionDescription, X as localFolderPickerHelperProtocolResultSchema, Xt as spaceFileNameSchema, Y as localFolderPickerDaemonFrameSchema, Z as localFolderPickerHelperResultSchema, Zn as localServiceComponentUpdateProjectionSchema, Zr as openMeldProfileIdSchema, _ as runtimeTransportHeartbeatRequestSchema, _i as sanitizeDispatchErrorSummary, a as runtimeTransportCapabilitiesSchema, b as runtimeTransportLocalAgentControlForkSessionFramePayloadSchema, bt as SPACE_MENTION_REJECT_NOTICE_PURPOSE, c as runtimeTransportDispatchInteractionRequestSchema, cn as conversationExecutionStateSchema, d as runtimeTransportDispatchPreviewEndRequestSchema, di as trimmedStringFromUnknown, dr as enumFactory, ei as agentProfileIdSchema, er as openMeldToolsUpdateAttemptSchema, f as runtimeTransportDispatchPreviewRequestSchema, fi as MAX_TEXT_LENGTH$1, g as runtimeTransportForkAgentSessionResultSchema, gi as resolvePublicAgentFailureRecovery, h as runtimeTransportErrorCodeSchema, hi as resolvePublicAgentAvailabilityCopy, i as localWakeRouteReportSchema, in as openMeldDaemonControlPlaneResponseSchema, ir as openMeldToolsUpdateRequestSourceSchema, j as runtimeTransportRejectedProfileRegistrationSchema, jr as parseOptionalClientMessageId, k as runtimeTransportRegisterSessionRequestSchema, kn as resolveMessageEnvelopeTargetField, l as runtimeTransportDispatchInteractionResponseFramePayloadSchema, lr as discriminatedUnion, m as runtimeTransportDispatchToolActivityRequestSchema, mi as resolveMappedPublicAgentFailureReason, mr as literal, mt as CONVERSATION_CONTINUITY_WARNING_PURPOSE, n as daemonExecutionCompatibilitySchema, ni as openMeldRuntimeProfileIdSchema, o as runtimeTransportDeliverDispatchRequestSchema, oi as profileWorkspaceModeSchema, on as skippedDaemonProfileSchema, p as runtimeTransportDispatchRuntimeEvidenceRequestSchema, pr as iso, q as LOCAL_FOLDER_PICKER_RUNTIME_CAPABILITY, qn as localCliComponentUpdateProjectionSchema, r as daemonStreamFrameSchema, rn as openMeldDaemonControlPlaneRequestSchema, s as runtimeTransportDispatchInteractionDeliveredRequestSchema, sn as providerDispatchRuntimeContextSchema, sr as boolean, t as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, ti as normalizeOptionalWorkingDirectory, tr as openMeldToolsUpdateOperationPhaseSchema, u as runtimeTransportDispatchLifecycleRequestSchema, v as runtimeTransportHeartbeatResponseSchema, vi as shouldPreferMappedPublicAgentFailureReason, vt as SPACE_MEMBER_JOIN_NOTICE_PURPOSE, w as runtimeTransportLocalAgentControlSetEnabledFramePayloadSchema, wn as collectCanonicalMentionTextFragments, x as runtimeTransportLocalAgentControlInterruptFramePayloadSchema, xr as strictObject, y as runtimeTransportLocalAgentControlCancelFramePayloadSchema, yt as SPACE_MEMBER_REMOVE_NOTICE_PURPOSE, zn as agentInteractionRequestSchema, zr as normalizeSpacePasswordText } from "./runtime-transport-CpOPxSfO.js";
|
|
6
6
|
import { r as daemonServiceLaneSchema, t as daemonServiceContractSchema } from "./service-contract-CRyDcIIf.js";
|
|
7
7
|
import { A as getDaemonRuntimeStatus, B as resolveDaemonServiceRuntimeMetadata, C as daemonServiceRepairJournalPath, D as daemonServiceUpdateWorkerBinaryExecutablePath, E as daemonServiceStableLauncherPath, F as readDaemonServiceLifecycleLockMeta, G as withDaemonServiceReconcileLock, H as rotateDaemonControlPlaneTokenIfExpired, I as readDaemonServiceLifecycleLockMetaWithCleanup, J as withDaemonServiceStopLock, K as withDaemonServiceRegistrationMutationLock, L as readDaemonServiceRuntimeSnapshot, M as installDaemon, N as isDaemonServiceRuntimeHeartbeatStale, O as daemonStatePath, P as readDaemonControlPlaneToken, R as releaseDaemonServiceLifecycleLock, S as daemonServiceRecognizedExecutablePaths$1, T as daemonServiceStableExecutableWrapperPath, U as setDaemonServiceRuntimeState, V as restoreDaemonInstallStateSnapshot, W as uninstallDaemon, X as writeDaemonLocalStateFile, Y as readDaemonLocalStateFile, _ as daemonRuntimeServiceManagerPath, a as DAEMON_SERVICE_RUNTIME_CONTROLLER_ENV, b as daemonServiceExecutableWrapperPaths$1, c as DAEMON_SERVICE_RUNTIME_STATE_SCHEMA, d as clearDaemonServiceRuntimeState, f as daemonDispatchJournalPath, g as daemonRuntimeRootPath, h as daemonRuntimeDataPath, i as DAEMON_SERVICE_RUNTIME_AUTO_START_ENV, j as getDaemonStatus, k as ensureDaemonControlPlaneToken, l as DAEMON_SERVICE_RUNTIME_SYSTEM_SERVICE_ENV, m as daemonRuntimeBundlesPath, n as writeDaemonRuntimeLease, o as DAEMON_SERVICE_RUNTIME_DETACHED_ENV, p as daemonLifecycleJournalPath, q as withDaemonServiceRunLock, r as DAEMON_HEARTBEAT_STALE_MS, s as DAEMON_SERVICE_RUNTIME_MODE_ENV, t as readDaemonRuntimeLease, u as acquireDaemonServiceLifecycleLock, v as daemonRuntimeStateRootPath, w as daemonServiceStableBinaryExecutablePath, x as daemonServiceLegacyExecutableWrapperPath, y as daemonServiceActiveBundleStatePath, z as resolveDaemonControlPlaneEndpoint } from "./daemon-runtime-lease-6DIprlJy.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-DritlM-R.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-CEvMG6WB.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";
|
|
@@ -18,8 +18,8 @@ import stringWidth from "string-width";
|
|
|
18
18
|
import { promisify, stripVTControlCharacters } from "node:util";
|
|
19
19
|
import { createHash, randomUUID } from "node:crypto";
|
|
20
20
|
import { access, appendFile, chmod, copyFile, cp, link, lstat, mkdir, mkdtemp, open, readFile, readdir, readlink, realpath, rename, rm, stat, symlink, unlink, writeFile } from "node:fs/promises";
|
|
21
|
-
import { execFile,
|
|
22
|
-
import { accessSync, appendFileSync, chmodSync, constants, createReadStream, existsSync, mkdirSync, readFileSync, readSync,
|
|
21
|
+
import { execFile, spawn } from "node:child_process";
|
|
22
|
+
import { accessSync, appendFileSync, chmodSync, constants, createReadStream, existsSync, mkdirSync, readFileSync, readSync, realpathSync, renameSync, statSync, watch, writeFileSync } from "node:fs";
|
|
23
23
|
import { setTimeout as setTimeout$1 } from "node:timers/promises";
|
|
24
24
|
import { fileURLToPath } from "node:url";
|
|
25
25
|
import { Worker } from "node:worker_threads";
|
|
@@ -3959,37 +3959,91 @@ const PROCESS_SUPERVISION_ENV_KEY = "OPENMELD_PROCESS_SUPERVISION_ID";
|
|
|
3959
3959
|
const PROCESS_SUPERVISION_DISCOVERY_RETRY_DELAY_MS = 100;
|
|
3960
3960
|
const PROCESS_SUPERVISION_DISCOVERY_MAX_ATTEMPTS = 2;
|
|
3961
3961
|
const PROCESS_TABLE_STOP_PHASE_SNAPSHOT_MAX_AGE_MS = 75;
|
|
3962
|
+
const PROCESS_DISCOVERY_DIAGNOSTIC_WINDOW_MS = 6e4;
|
|
3962
3963
|
function createAgentControllerProcessTableSnapshotReader(input) {
|
|
3963
3964
|
if (!(Number.isFinite(input.maxAgeMs) && input.maxAgeMs > 0)) throw new Error("process table snapshot max age must be positive");
|
|
3964
3965
|
const now = input.now ?? Date.now;
|
|
3965
3966
|
let snapshot = null;
|
|
3966
|
-
return () => {
|
|
3967
|
+
return async () => {
|
|
3967
3968
|
const readAtMs = now();
|
|
3968
3969
|
if (snapshot) {
|
|
3969
3970
|
const ageMs = readAtMs - snapshot.capturedAtMs;
|
|
3970
|
-
if (ageMs >= 0 && ageMs < input.maxAgeMs)
|
|
3971
|
-
if (!snapshot.ok) throw snapshot.error;
|
|
3972
|
-
return snapshot.processTable;
|
|
3973
|
-
}
|
|
3971
|
+
if (ageMs >= 0 && ageMs < input.maxAgeMs) return await snapshot.processTable;
|
|
3974
3972
|
}
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3973
|
+
const processTable = input.readProcessTable();
|
|
3974
|
+
snapshot = {
|
|
3975
|
+
capturedAtMs: readAtMs,
|
|
3976
|
+
processTable
|
|
3977
|
+
};
|
|
3978
|
+
return await processTable;
|
|
3979
|
+
};
|
|
3980
|
+
}
|
|
3981
|
+
function createAgentControllerProcessDiscoveryDiagnosticAggregator(input) {
|
|
3982
|
+
const now = input?.now ?? Date.now;
|
|
3983
|
+
const windowMs = input?.windowMs ?? PROCESS_DISCOVERY_DIAGNOSTIC_WINDOW_MS;
|
|
3984
|
+
const write = input?.write ?? ((level, event, payload) => console[level](event, payload));
|
|
3985
|
+
const aggregates = /* @__PURE__ */ new Map();
|
|
3986
|
+
return {
|
|
3987
|
+
failure: (failure) => {
|
|
3988
|
+
const observedAtMs = now();
|
|
3989
|
+
const error = normalizeErrorForDiagnostic(failure.error);
|
|
3990
|
+
const reasonCode = isProcessDiscoveryTimeoutError(failure.error) ? "process_discovery_timeout" : "process_discovery_failed";
|
|
3991
|
+
const key = `${failure.source}:${reasonCode}:${error.name}`;
|
|
3992
|
+
const aggregate = aggregates.get(key) ?? {
|
|
3993
|
+
affectedProcessIds: /* @__PURE__ */ new Set(),
|
|
3986
3994
|
error,
|
|
3987
|
-
|
|
3995
|
+
firstAtMs: observedAtMs,
|
|
3996
|
+
lastAtMs: observedAtMs,
|
|
3997
|
+
lastReportedAtMs: Number.NEGATIVE_INFINITY,
|
|
3998
|
+
occurrenceCount: 0,
|
|
3999
|
+
reporterError: failure.reporterError ? normalizeErrorForDiagnostic(failure.reporterError) : null,
|
|
4000
|
+
source: failure.source
|
|
3988
4001
|
};
|
|
3989
|
-
|
|
4002
|
+
aggregate.affectedProcessIds.add(failure.processId);
|
|
4003
|
+
aggregate.error = error;
|
|
4004
|
+
aggregate.lastAtMs = observedAtMs;
|
|
4005
|
+
aggregate.occurrenceCount += 1;
|
|
4006
|
+
aggregates.set(key, aggregate);
|
|
4007
|
+
if (observedAtMs - aggregate.lastReportedAtMs < windowMs) return;
|
|
4008
|
+
aggregate.lastReportedAtMs = observedAtMs;
|
|
4009
|
+
write("warn", "[openmeld.agent_controller.process_discovery_failed]", {
|
|
4010
|
+
affectedProcessIds: [...aggregate.affectedProcessIds].slice(0, 20),
|
|
4011
|
+
durationMs: observedAtMs - aggregate.firstAtMs,
|
|
4012
|
+
errorCode: error.code,
|
|
4013
|
+
errorMessage: error.message,
|
|
4014
|
+
errorName: error.name,
|
|
4015
|
+
occurrenceCount: aggregate.occurrenceCount,
|
|
4016
|
+
reasonCode,
|
|
4017
|
+
...aggregate.reporterError ? {
|
|
4018
|
+
reporterErrorMessage: aggregate.reporterError.message,
|
|
4019
|
+
reporterErrorName: aggregate.reporterError.name
|
|
4020
|
+
} : {},
|
|
4021
|
+
signal: failure.signal,
|
|
4022
|
+
source: failure.source
|
|
4023
|
+
});
|
|
4024
|
+
},
|
|
4025
|
+
recovered: (source) => {
|
|
4026
|
+
const recoveredAtMs = now();
|
|
4027
|
+
for (const [key, aggregate] of aggregates) {
|
|
4028
|
+
if (aggregate.source !== source) continue;
|
|
4029
|
+
write("info", "[openmeld.agent_controller.process_discovery_recovered]", {
|
|
4030
|
+
affectedProcessIds: [...aggregate.affectedProcessIds].slice(0, 20),
|
|
4031
|
+
durationMs: recoveredAtMs - aggregate.firstAtMs,
|
|
4032
|
+
occurrenceCount: aggregate.occurrenceCount,
|
|
4033
|
+
reasonCode: "process_discovery_recovered",
|
|
4034
|
+
source
|
|
4035
|
+
});
|
|
4036
|
+
aggregates.delete(key);
|
|
4037
|
+
}
|
|
3990
4038
|
}
|
|
3991
4039
|
};
|
|
3992
4040
|
}
|
|
4041
|
+
function isProcessDiscoveryTimeoutError(error) {
|
|
4042
|
+
if (!(error instanceof Error)) return false;
|
|
4043
|
+
const processError = error;
|
|
4044
|
+
return processError.code === "ETIMEDOUT" || processError.killed === true;
|
|
4045
|
+
}
|
|
4046
|
+
const processDiscoveryDiagnostics = createAgentControllerProcessDiscoveryDiagnosticAggregator();
|
|
3993
4047
|
function spawnAgentControllerProcess(input) {
|
|
3994
4048
|
const signalTarget = resolveAgentControllerProcessSignalTarget();
|
|
3995
4049
|
const supervisionId = randomUUID();
|
|
@@ -4018,7 +4072,6 @@ function spawnAgentControllerProcess(input) {
|
|
|
4018
4072
|
processId,
|
|
4019
4073
|
signal,
|
|
4020
4074
|
signalTarget,
|
|
4021
|
-
supervisionId,
|
|
4022
4075
|
trackedDescendantProcessIds
|
|
4023
4076
|
}),
|
|
4024
4077
|
terminateRemainingDescendants: () => terminateRemainingAgentControllerProcesses({
|
|
@@ -4043,35 +4096,6 @@ function signalAgentControllerProcessTree(input) {
|
|
|
4043
4096
|
signal: input.signal
|
|
4044
4097
|
});
|
|
4045
4098
|
const trackedDescendantProcessIds = input.trackedDescendantProcessIds ?? /* @__PURE__ */ new Set();
|
|
4046
|
-
const discoveryFailures = [];
|
|
4047
|
-
if (input.supervisionId) {
|
|
4048
|
-
const listSupervisedProcessIds = input.listSupervisedProcessIds ?? listAgentControllerSupervisedProcessIds;
|
|
4049
|
-
try {
|
|
4050
|
-
for (const descendantProcessId of listSupervisedProcessIds({
|
|
4051
|
-
processId: input.processId,
|
|
4052
|
-
supervisionId: input.supervisionId
|
|
4053
|
-
})) trackedDescendantProcessIds.add(descendantProcessId);
|
|
4054
|
-
} catch (error) {
|
|
4055
|
-
discoveryFailures.push({
|
|
4056
|
-
error,
|
|
4057
|
-
processId: input.processId,
|
|
4058
|
-
signal: input.signal,
|
|
4059
|
-
source: "supervision_marker"
|
|
4060
|
-
});
|
|
4061
|
-
}
|
|
4062
|
-
} else {
|
|
4063
|
-
const listDescendantProcessIds = input.listDescendantProcessIds ?? listAgentControllerDescendantProcessIds;
|
|
4064
|
-
try {
|
|
4065
|
-
for (const descendantProcessId of listDescendantProcessIds(input.processId)) trackedDescendantProcessIds.add(descendantProcessId);
|
|
4066
|
-
} catch (error) {
|
|
4067
|
-
discoveryFailures.push({
|
|
4068
|
-
error,
|
|
4069
|
-
processId: input.processId,
|
|
4070
|
-
signal: input.signal,
|
|
4071
|
-
source: "descendant_tree"
|
|
4072
|
-
});
|
|
4073
|
-
}
|
|
4074
|
-
}
|
|
4075
4099
|
let sent = false;
|
|
4076
4100
|
const signalFailures = [];
|
|
4077
4101
|
const attemptSignal = (processId) => {
|
|
@@ -4090,10 +4114,6 @@ function signalAgentControllerProcessTree(input) {
|
|
|
4090
4114
|
signalTarget: input.signalTarget
|
|
4091
4115
|
}));
|
|
4092
4116
|
for (const descendantProcessId of trackedDescendantProcessIds) attemptSignal(descendantProcessId);
|
|
4093
|
-
for (const discoveryFailure of discoveryFailures) reportAgentControllerProcessDiscoveryFailure({
|
|
4094
|
-
failure: discoveryFailure,
|
|
4095
|
-
reporter: input.reportDiscoveryFailure
|
|
4096
|
-
});
|
|
4097
4117
|
if (signalFailures.length > 0) throw signalFailures[0];
|
|
4098
4118
|
return sent;
|
|
4099
4119
|
}
|
|
@@ -4105,22 +4125,20 @@ async function runRemainingAgentControllerProcessCleanup(input) {
|
|
|
4105
4125
|
const trackedDescendantProcessIds = input.trackedDescendantProcessIds ?? /* @__PURE__ */ new Set();
|
|
4106
4126
|
for (let attempt = 1; attempt <= PROCESS_SUPERVISION_DISCOVERY_MAX_ATTEMPTS; attempt += 1) {
|
|
4107
4127
|
let cleanupError = null;
|
|
4108
|
-
|
|
4128
|
+
const discoveryError = await collectSupervisedProcessIds({
|
|
4129
|
+
listSupervisedProcessIds: input.listSupervisedProcessIds,
|
|
4130
|
+
processId: input.processId,
|
|
4131
|
+
reportDiscoveryFailure: input.reportDiscoveryFailure,
|
|
4132
|
+
signalTarget: input.signalTarget,
|
|
4133
|
+
supervisionId: input.supervisionId,
|
|
4134
|
+
trackedDescendantProcessIds
|
|
4135
|
+
});
|
|
4109
4136
|
try {
|
|
4110
4137
|
sent = signalAgentControllerProcessTree({
|
|
4111
4138
|
killProcess: input.killProcess,
|
|
4112
|
-
listSupervisedProcessIds: input.listSupervisedProcessIds,
|
|
4113
4139
|
processId: input.processId,
|
|
4114
|
-
reportDiscoveryFailure: (failure) => {
|
|
4115
|
-
discoveryError = failure.error;
|
|
4116
|
-
reportAgentControllerProcessDiscoveryFailure({
|
|
4117
|
-
failure,
|
|
4118
|
-
reporter: input.reportDiscoveryFailure
|
|
4119
|
-
});
|
|
4120
|
-
},
|
|
4121
4140
|
signal: "SIGKILL",
|
|
4122
4141
|
signalTarget: input.signalTarget,
|
|
4123
|
-
supervisionId: input.supervisionId,
|
|
4124
4142
|
trackedDescendantProcessIds
|
|
4125
4143
|
}) || sent;
|
|
4126
4144
|
} catch (error) {
|
|
@@ -4150,51 +4168,66 @@ async function runRemainingAgentControllerProcessCleanup(input) {
|
|
|
4150
4168
|
signalSent: sent
|
|
4151
4169
|
};
|
|
4152
4170
|
}
|
|
4171
|
+
async function collectSupervisedProcessIds(input) {
|
|
4172
|
+
if (input.signalTarget !== "process_group" || input.processId === null) return null;
|
|
4173
|
+
const listSupervisedProcessIds = input.listSupervisedProcessIds ?? listAgentControllerSupervisedProcessIds;
|
|
4174
|
+
try {
|
|
4175
|
+
const supervisedProcessIds = await listSupervisedProcessIds({
|
|
4176
|
+
processId: input.processId,
|
|
4177
|
+
supervisionId: input.supervisionId
|
|
4178
|
+
});
|
|
4179
|
+
for (const descendantProcessId of supervisedProcessIds) input.trackedDescendantProcessIds.add(descendantProcessId);
|
|
4180
|
+
return null;
|
|
4181
|
+
} catch (error) {
|
|
4182
|
+
reportAgentControllerProcessDiscoveryFailure({
|
|
4183
|
+
failure: {
|
|
4184
|
+
error,
|
|
4185
|
+
processId: input.processId,
|
|
4186
|
+
signal: "SIGKILL",
|
|
4187
|
+
source: "supervision_marker"
|
|
4188
|
+
},
|
|
4189
|
+
reporter: input.reportDiscoveryFailure
|
|
4190
|
+
});
|
|
4191
|
+
return error;
|
|
4192
|
+
}
|
|
4193
|
+
}
|
|
4153
4194
|
function waitForAgentControllerProcessDiscoveryRetry() {
|
|
4154
4195
|
return new Promise((resolve) => {
|
|
4155
4196
|
setTimeout(resolve, PROCESS_SUPERVISION_DISCOVERY_RETRY_DELAY_MS);
|
|
4156
4197
|
});
|
|
4157
4198
|
}
|
|
4158
|
-
const listAgentControllerDescendantProcessIds = (processId) => {
|
|
4199
|
+
const listAgentControllerDescendantProcessIds = async (processId) => {
|
|
4200
|
+
const processTable = await readProcessTable(["-axo", "pid=,ppid=,pgid="], { maxBuffer: 4 * 1024 * 1024 });
|
|
4201
|
+
processDiscoveryDiagnostics.recovered("descendant_tree");
|
|
4159
4202
|
return resolveAgentControllerDescendantProcessIds({
|
|
4160
4203
|
processId,
|
|
4161
|
-
processTable
|
|
4162
|
-
encoding: "utf8",
|
|
4163
|
-
maxBuffer: 4 * 1024 * 1024,
|
|
4164
|
-
timeout: 2e3
|
|
4165
|
-
})
|
|
4204
|
+
processTable
|
|
4166
4205
|
});
|
|
4167
4206
|
};
|
|
4168
4207
|
const readMacOsSupervisedProcessTable = createAgentControllerProcessTableSnapshotReader({
|
|
4169
4208
|
maxAgeMs: PROCESS_TABLE_STOP_PHASE_SNAPSHOT_MAX_AGE_MS,
|
|
4170
|
-
readProcessTable: () =>
|
|
4209
|
+
readProcessTable: async () => await readProcessTable([
|
|
4171
4210
|
"eww",
|
|
4172
4211
|
"-axo",
|
|
4173
4212
|
"pid=,ppid=,pgid=,command="
|
|
4174
|
-
], {
|
|
4175
|
-
encoding: "utf8",
|
|
4176
|
-
maxBuffer: 32 * 1024 * 1024,
|
|
4177
|
-
timeout: 2e3
|
|
4178
|
-
})
|
|
4213
|
+
], { maxBuffer: 32 * 1024 * 1024 })
|
|
4179
4214
|
});
|
|
4180
|
-
const listAgentControllerSupervisedProcessIds = (input) => {
|
|
4215
|
+
const listAgentControllerSupervisedProcessIds = async (input) => {
|
|
4181
4216
|
if (process.platform === "linux") {
|
|
4182
|
-
const processTable =
|
|
4217
|
+
const processTable = await readProcessTable([
|
|
4183
4218
|
"-e",
|
|
4184
4219
|
"-o",
|
|
4185
4220
|
"pid=,ppid=,pgid="
|
|
4186
|
-
], {
|
|
4187
|
-
|
|
4188
|
-
maxBuffer: 4 * 1024 * 1024,
|
|
4189
|
-
timeout: 2e3
|
|
4190
|
-
});
|
|
4221
|
+
], { maxBuffer: 4 * 1024 * 1024 });
|
|
4222
|
+
processDiscoveryDiagnostics.recovered("supervision_marker");
|
|
4191
4223
|
return resolveAgentControllerSupervisedProcessIds({
|
|
4192
4224
|
...input,
|
|
4193
|
-
markedProcessIds: listLinuxSupervisedProcessIds(input.supervisionId),
|
|
4225
|
+
markedProcessIds: await listLinuxSupervisedProcessIds(input.supervisionId),
|
|
4194
4226
|
processTable
|
|
4195
4227
|
});
|
|
4196
4228
|
}
|
|
4197
|
-
const processTable = readMacOsSupervisedProcessTable();
|
|
4229
|
+
const processTable = await readMacOsSupervisedProcessTable();
|
|
4230
|
+
processDiscoveryDiagnostics.recovered("supervision_marker");
|
|
4198
4231
|
return resolveAgentControllerSupervisedProcessIds({
|
|
4199
4232
|
...input,
|
|
4200
4233
|
processTable
|
|
@@ -4224,21 +4257,36 @@ function resolveAgentControllerSupervisedProcessIds(input) {
|
|
|
4224
4257
|
processId: input.processId
|
|
4225
4258
|
});
|
|
4226
4259
|
}
|
|
4227
|
-
function listLinuxSupervisedProcessIds(supervisionId) {
|
|
4260
|
+
async function listLinuxSupervisedProcessIds(supervisionId) {
|
|
4228
4261
|
const supervisionMarker = `${PROCESS_SUPERVISION_ENV_KEY}=${supervisionId}`;
|
|
4229
4262
|
const processIds = [];
|
|
4230
|
-
for (const entry of
|
|
4263
|
+
for (const entry of await readdir("/proc", { withFileTypes: true })) {
|
|
4231
4264
|
if (!entry.isDirectory()) continue;
|
|
4232
4265
|
const processId = Number.parseInt(entry.name, 10);
|
|
4233
4266
|
if (!(Number.isInteger(processId) && String(processId) === entry.name)) continue;
|
|
4234
4267
|
try {
|
|
4235
|
-
if (
|
|
4268
|
+
if ((await readFile(`/proc/${entry.name}/environ`, "utf8")).split("\0").includes(supervisionMarker)) processIds.push(processId);
|
|
4236
4269
|
} catch (error) {
|
|
4237
4270
|
if (!isExpectedLinuxProcessInspectionError(error)) throw error;
|
|
4238
4271
|
}
|
|
4239
4272
|
}
|
|
4240
4273
|
return processIds;
|
|
4241
4274
|
}
|
|
4275
|
+
function readProcessTable(args, input) {
|
|
4276
|
+
return new Promise((resolve, reject) => {
|
|
4277
|
+
execFile("ps", [...args], {
|
|
4278
|
+
encoding: "utf8",
|
|
4279
|
+
maxBuffer: input.maxBuffer,
|
|
4280
|
+
timeout: 2e3
|
|
4281
|
+
}, (error, stdout) => {
|
|
4282
|
+
if (error) {
|
|
4283
|
+
reject(error);
|
|
4284
|
+
return;
|
|
4285
|
+
}
|
|
4286
|
+
resolve(stdout);
|
|
4287
|
+
});
|
|
4288
|
+
});
|
|
4289
|
+
}
|
|
4242
4290
|
function isExpectedLinuxProcessInspectionError(error) {
|
|
4243
4291
|
if (!(error instanceof Error && "code" in error)) return false;
|
|
4244
4292
|
const code = String(error.code);
|
|
@@ -4342,20 +4390,7 @@ function reportAgentControllerProcessCleanupFailureToConsole(input) {
|
|
|
4342
4390
|
});
|
|
4343
4391
|
}
|
|
4344
4392
|
function reportAgentControllerProcessDiscoveryFailureToConsole(input) {
|
|
4345
|
-
|
|
4346
|
-
const reporterError = input.reporterError ? normalizeErrorForDiagnostic(input.reporterError) : null;
|
|
4347
|
-
console.warn("[openmeld.agent_controller.process_discovery_failed]", {
|
|
4348
|
-
errorCode: error.code,
|
|
4349
|
-
errorMessage: error.message,
|
|
4350
|
-
errorName: error.name,
|
|
4351
|
-
processId: input.processId,
|
|
4352
|
-
...reporterError ? {
|
|
4353
|
-
reporterErrorMessage: reporterError.message,
|
|
4354
|
-
reporterErrorName: reporterError.name
|
|
4355
|
-
} : {},
|
|
4356
|
-
signal: input.signal,
|
|
4357
|
-
source: input.source
|
|
4358
|
-
});
|
|
4393
|
+
processDiscoveryDiagnostics.failure(input);
|
|
4359
4394
|
}
|
|
4360
4395
|
function normalizeErrorForDiagnostic(error) {
|
|
4361
4396
|
if (error instanceof Error) return {
|
|
@@ -4553,8 +4588,8 @@ async function runCliDriver(input) {
|
|
|
4553
4588
|
stderrLineBuffer = lineEmission.buffer;
|
|
4554
4589
|
if (lineEmission.completionDecision) completeFromProviderTerminalOutput(lineEmission.completionDecision);
|
|
4555
4590
|
});
|
|
4556
|
-
child.on("close", (exitCode, signal) => {
|
|
4557
|
-
runtimeProcess.terminateRemainingDescendants();
|
|
4591
|
+
child.on("close", async (exitCode, signal) => {
|
|
4592
|
+
await runtimeProcess.terminateRemainingDescendants();
|
|
4558
4593
|
clearTimers();
|
|
4559
4594
|
const exitObservedAtMs = Date.now();
|
|
4560
4595
|
lifecycle.exitCode = exitCode;
|
|
@@ -20116,7 +20151,7 @@ function splitSentences(message) {
|
|
|
20116
20151
|
var package_default = {
|
|
20117
20152
|
$schema: "https://www.schemastore.org/package.json",
|
|
20118
20153
|
name: "openmeld",
|
|
20119
|
-
version: "0.3.
|
|
20154
|
+
version: "0.3.151",
|
|
20120
20155
|
openMeldReleaseDate: "2026-09-03",
|
|
20121
20156
|
description: "OpenMeld CLI - https://openmeld.ai",
|
|
20122
20157
|
license: "MIT",
|
|
@@ -20235,6 +20270,9 @@ const RUNTIME_AGENT_CONTROLLER_REPORT_SYNC_RETRY_INTERVAL_MS = RUNTIME_AGENT_CON
|
|
|
20235
20270
|
const RUNTIME_STATE_PERSIST_MIN_INTERVAL_MS = RUNTIME_STATE_PERSIST_MIN_INTERVAL_MS$1;
|
|
20236
20271
|
const DEFAULT_RECONNECT_DELAY_MS = 1e3;
|
|
20237
20272
|
const MAX_RECONNECT_DELAY_MS = 1e4;
|
|
20273
|
+
const CONTROLLED_SHUTDOWN_RESULT_ACK_TIMEOUT_MS = 5e3;
|
|
20274
|
+
const CONTROLLED_SHUTDOWN_SOCKET_CLOSE_TIMEOUT_MS = 5e3;
|
|
20275
|
+
const CONTROLLED_SHUTDOWN_REQUEST_TIMEOUT_MS = 15e3;
|
|
20238
20276
|
const DAEMON_DEVICE_ID_FILE = "daemon-device-id.txt";
|
|
20239
20277
|
const CONTEXT_STORE_FILE = "daemon-context-map.json";
|
|
20240
20278
|
const LEDGER_DIR_NAME = "openMeldDaemon-ledger";
|
|
@@ -28861,7 +28899,7 @@ function formatAgentControllerVersionAdvisory(snapshot) {
|
|
|
28861
28899
|
return advisory.message ?? "Could not check latest version";
|
|
28862
28900
|
}
|
|
28863
28901
|
function formatAgentControllerStatus(snapshot) {
|
|
28864
|
-
if (snapshot.check?.status === "failed") return "
|
|
28902
|
+
if (snapshot.check?.status === "failed") return "Check delayed";
|
|
28865
28903
|
switch (snapshot.status) {
|
|
28866
28904
|
case "ready": return "Enabled";
|
|
28867
28905
|
case "warning": return "Needs attention";
|
|
@@ -34140,11 +34178,12 @@ function buildLocalServiceDiagnosticsPayload(input) {
|
|
|
34140
34178
|
}
|
|
34141
34179
|
//#endregion
|
|
34142
34180
|
//#region ../../runtime/local-service/src/local-task-signal-sender.ts
|
|
34181
|
+
const localTaskSignalDiscoveryDiagnostics = createAgentControllerProcessDiscoveryDiagnosticAggregator();
|
|
34143
34182
|
function createLocalTaskInterruptSender(input) {
|
|
34144
34183
|
const killProcess = input.killProcess ?? process.kill;
|
|
34145
34184
|
const listDescendantProcessIds = input.listDescendantProcessIds ?? listAgentControllerDescendantProcessIds;
|
|
34146
34185
|
const trackedProcessTreeByTaskId = /* @__PURE__ */ new Map();
|
|
34147
|
-
return (signal) => {
|
|
34186
|
+
return async (signal) => {
|
|
34148
34187
|
const resolved = resolveProcessTree({
|
|
34149
34188
|
killProcess,
|
|
34150
34189
|
mode: signal.mode,
|
|
@@ -34153,7 +34192,7 @@ function createLocalTaskInterruptSender(input) {
|
|
|
34153
34192
|
trackedProcessTreeByTaskId
|
|
34154
34193
|
});
|
|
34155
34194
|
const unixSignal = resolveUnixSignalForInterruptMode(signal.mode);
|
|
34156
|
-
sendProcessTreeSignal({
|
|
34195
|
+
await sendProcessTreeSignal({
|
|
34157
34196
|
killProcess,
|
|
34158
34197
|
listDescendantProcessIds,
|
|
34159
34198
|
mode: signal.mode,
|
|
@@ -34163,13 +34202,13 @@ function createLocalTaskInterruptSender(input) {
|
|
|
34163
34202
|
trackedProcessTreeByTaskId,
|
|
34164
34203
|
unixSignal
|
|
34165
34204
|
});
|
|
34166
|
-
return
|
|
34205
|
+
return {
|
|
34167
34206
|
dispatchId: resolved.dispatchId,
|
|
34168
34207
|
processId: resolved.processId,
|
|
34169
34208
|
signalTarget: resolved.signalTarget,
|
|
34170
34209
|
taskId: signal.taskId,
|
|
34171
34210
|
unixSignal
|
|
34172
|
-
}
|
|
34211
|
+
};
|
|
34173
34212
|
};
|
|
34174
34213
|
}
|
|
34175
34214
|
function resolveProcessTree(input) {
|
|
@@ -34205,24 +34244,57 @@ function resolveProcessTree(input) {
|
|
|
34205
34244
|
trackedProcessTree: nextTrackedProcessTree
|
|
34206
34245
|
};
|
|
34207
34246
|
}
|
|
34208
|
-
function sendProcessTreeSignal(input) {
|
|
34247
|
+
async function sendProcessTreeSignal(input) {
|
|
34248
|
+
const descendantDiscovery = input.resolved.processIsAlive && input.resolved.signalTarget === "process_group" ? input.listDescendantProcessIds(input.resolved.processId) : Promise.resolve([]);
|
|
34209
34249
|
try {
|
|
34210
34250
|
signalAgentControllerProcessTree({
|
|
34211
34251
|
killProcess: input.killProcess,
|
|
34212
|
-
listDescendantProcessIds: input.resolved.processIsAlive ? input.listDescendantProcessIds : () => [],
|
|
34213
34252
|
processId: input.resolved.processId,
|
|
34214
34253
|
signal: input.unixSignal,
|
|
34215
34254
|
signalTarget: input.resolved.signalTarget,
|
|
34216
34255
|
trackedDescendantProcessIds: input.resolved.trackedProcessTree.descendantProcessIds
|
|
34217
34256
|
});
|
|
34218
|
-
if (input.mode === "force") input.trackedProcessTreeByTaskId.delete(input.taskId);
|
|
34219
34257
|
} catch (error) {
|
|
34258
|
+
descendantDiscovery.catch((discoveryError) => {
|
|
34259
|
+
localTaskSignalDiscoveryDiagnostics.failure({
|
|
34260
|
+
error: discoveryError,
|
|
34261
|
+
processId: input.resolved.processId,
|
|
34262
|
+
signal: input.unixSignal,
|
|
34263
|
+
source: "descendant_tree"
|
|
34264
|
+
});
|
|
34265
|
+
});
|
|
34220
34266
|
if (isNoSuchProcessError(error)) {
|
|
34221
34267
|
clearDeadRegistryProcess(input.registry, input.resolved.record, input.taskId);
|
|
34222
34268
|
throw createLocalTaskInterruptError("task.not_running", `task '${input.taskId}' runtime process is no longer running`);
|
|
34223
34269
|
}
|
|
34224
34270
|
throw createLocalTaskInterruptError("signal.send_failed", error instanceof Error ? error.message : "failed to send local signal");
|
|
34225
34271
|
}
|
|
34272
|
+
let discoveredProcessIds = [];
|
|
34273
|
+
try {
|
|
34274
|
+
discoveredProcessIds = await descendantDiscovery;
|
|
34275
|
+
localTaskSignalDiscoveryDiagnostics.recovered("descendant_tree");
|
|
34276
|
+
} catch (error) {
|
|
34277
|
+
localTaskSignalDiscoveryDiagnostics.failure({
|
|
34278
|
+
error,
|
|
34279
|
+
processId: input.resolved.processId,
|
|
34280
|
+
signal: input.unixSignal,
|
|
34281
|
+
source: "descendant_tree"
|
|
34282
|
+
});
|
|
34283
|
+
}
|
|
34284
|
+
try {
|
|
34285
|
+
for (const discoveredProcessId of discoveredProcessIds) {
|
|
34286
|
+
input.resolved.trackedProcessTree.descendantProcessIds.add(discoveredProcessId);
|
|
34287
|
+
signalAgentControllerProcessTree({
|
|
34288
|
+
killProcess: input.killProcess,
|
|
34289
|
+
processId: discoveredProcessId,
|
|
34290
|
+
signal: input.unixSignal,
|
|
34291
|
+
signalTarget: "process"
|
|
34292
|
+
});
|
|
34293
|
+
}
|
|
34294
|
+
} catch (error) {
|
|
34295
|
+
throw createLocalTaskInterruptError("signal.send_failed", error instanceof Error ? error.message : "failed to send local signal");
|
|
34296
|
+
}
|
|
34297
|
+
if (input.mode === "force") input.trackedProcessTreeByTaskId.delete(input.taskId);
|
|
34226
34298
|
}
|
|
34227
34299
|
function clearDeadRegistryProcess(registry, record, taskId) {
|
|
34228
34300
|
if (!record) return;
|
|
@@ -39528,9 +39600,9 @@ function createModelCatalogReadSession(input) {
|
|
|
39528
39600
|
async function readModelCatalogOnce(baseUrl) {
|
|
39529
39601
|
try {
|
|
39530
39602
|
const [apiClient, baseUrlModule, clientFoundationModule] = await Promise.all([
|
|
39531
|
-
import("./dist-
|
|
39603
|
+
import("./dist-BPsknNZJ.js").then((n) => n.w),
|
|
39532
39604
|
import("./base-url-CY_j4bLH.js").then((n) => n.n),
|
|
39533
|
-
import("./api-client-foundation-
|
|
39605
|
+
import("./api-client-foundation-CEvMG6WB.js").then((n) => n.t)
|
|
39534
39606
|
]);
|
|
39535
39607
|
if (typeof apiClient.createConfigApi !== "function") throw new Error("config api client is unavailable");
|
|
39536
39608
|
const resolvedBaseUrl = baseUrl ?? await baseUrlModule.resolveBaseUrl();
|
|
@@ -45629,7 +45701,7 @@ async function requestControlledSystemServiceDrain(input) {
|
|
|
45629
45701
|
gracePeriodMs: input.drainWaitMs,
|
|
45630
45702
|
mode: "graceful"
|
|
45631
45703
|
},
|
|
45632
|
-
timeoutMs:
|
|
45704
|
+
timeoutMs: CONTROLLED_SHUTDOWN_REQUEST_TIMEOUT_MS
|
|
45633
45705
|
});
|
|
45634
45706
|
await emitDaemonLifecycleEvent({
|
|
45635
45707
|
command: `openmeld service ${input.operation.replaceAll("_", "-")}`,
|
|
@@ -45651,8 +45723,12 @@ async function requestControlledSystemServiceDrain(input) {
|
|
|
45651
45723
|
error,
|
|
45652
45724
|
inventory: input.inventory
|
|
45653
45725
|
});
|
|
45654
|
-
const
|
|
45655
|
-
|
|
45726
|
+
const isLegacyControlledShutdownTimeout = isOlderServiceControlledShutdownTimeout({
|
|
45727
|
+
error,
|
|
45728
|
+
inventory: input.inventory
|
|
45729
|
+
});
|
|
45730
|
+
const isCompatibilityFallback = isLegacyShutdownContract || isLegacyMissingCloseReason || isLegacyControlledShutdownTimeout || isManagerRunningWithoutRuntime;
|
|
45731
|
+
const observedDaemonVersion = isLegacyMissingCloseReason || isLegacyControlledShutdownTimeout ? resolveObservedDaemonVersion(input.inventory) : null;
|
|
45656
45732
|
await emitDaemonLifecycleEvent({
|
|
45657
45733
|
command: `openmeld service ${input.operation.replaceAll("_", "-")}`,
|
|
45658
45734
|
intent: input.lifecycleIntent,
|
|
@@ -45662,6 +45738,11 @@ async function requestControlledSystemServiceDrain(input) {
|
|
|
45662
45738
|
compatibilityReason: "legacy_missing_close_reason",
|
|
45663
45739
|
observedDaemonVersion
|
|
45664
45740
|
} : {},
|
|
45741
|
+
...isLegacyControlledShutdownTimeout ? {
|
|
45742
|
+
compatibilityReason: "legacy_controlled_shutdown_timeout",
|
|
45743
|
+
observedDaemonVersion,
|
|
45744
|
+
reasonCode: "socket_close_timeout"
|
|
45745
|
+
} : {},
|
|
45665
45746
|
...isManagerRunningWithoutRuntime ? { compatibilityReason: "manager_running_without_runtime" } : {},
|
|
45666
45747
|
errorMessage: toErrorMessage$43(error)
|
|
45667
45748
|
},
|
|
@@ -45673,6 +45754,19 @@ async function requestControlledSystemServiceDrain(input) {
|
|
|
45673
45754
|
throw new DaemonServiceLifecycleControlledDrainError(error);
|
|
45674
45755
|
}
|
|
45675
45756
|
}
|
|
45757
|
+
function isOlderServiceControlledShutdownTimeout(input) {
|
|
45758
|
+
if (!(input.error instanceof LocalDaemonControlPlaneClientError) || input.error.code !== "daemon.control.timeout") return false;
|
|
45759
|
+
const observedDaemonVersion = resolveObservedDaemonVersion(input.inventory);
|
|
45760
|
+
if (!observedDaemonVersion) return false;
|
|
45761
|
+
try {
|
|
45762
|
+
return resolveVersionChangeDirection({
|
|
45763
|
+
fromVersion: observedDaemonVersion,
|
|
45764
|
+
toVersion: input.inventory.expectedVersion
|
|
45765
|
+
}) === "upgrade";
|
|
45766
|
+
} catch {
|
|
45767
|
+
return false;
|
|
45768
|
+
}
|
|
45769
|
+
}
|
|
45676
45770
|
function isLegacyMissingControlledShutdownCloseReason(input) {
|
|
45677
45771
|
if (!(input.error instanceof LocalDaemonControlPlaneClientError) || input.error.code !== "daemon.run.socket_closed" || input.error.message !== "daemon stream closed (code=1000, reason=closed)") return false;
|
|
45678
45772
|
const observedDaemonVersion = resolveObservedDaemonVersion(input.inventory);
|
|
@@ -54934,7 +55028,8 @@ async function resolveAgentControllerInterfaceSnapshot(input) {
|
|
|
54934
55028
|
controllerId: input.state.agentId,
|
|
54935
55029
|
errorMessage: outcome.snapshot.message,
|
|
54936
55030
|
lastSucceededAt: preservedLastSuccessfulCheckAt,
|
|
54937
|
-
probePolicy
|
|
55031
|
+
probePolicy,
|
|
55032
|
+
reasonCode: isControllerInterfaceProbeTimeout(outcome.snapshot.message) ? "controller_check_timeout" : "controller_check_failed"
|
|
54938
55033
|
});
|
|
54939
55034
|
return withUsageLimits({
|
|
54940
55035
|
...outcome.snapshot,
|
|
@@ -54945,6 +55040,10 @@ async function resolveAgentControllerInterfaceSnapshot(input) {
|
|
|
54945
55040
|
status: "unknown"
|
|
54946
55041
|
}, usageLimits);
|
|
54947
55042
|
}
|
|
55043
|
+
function isControllerInterfaceProbeTimeout(message) {
|
|
55044
|
+
const normalized = message?.toLowerCase() ?? "";
|
|
55045
|
+
return normalized.includes("timed out") || normalized.includes("timeout");
|
|
55046
|
+
}
|
|
54948
55047
|
function withUsageLimits(snapshot, usageLimits) {
|
|
54949
55048
|
return usageLimits ? {
|
|
54950
55049
|
...snapshot,
|
|
@@ -76482,16 +76581,53 @@ async function runDaemonSocketSession(input) {
|
|
|
76482
76581
|
});
|
|
76483
76582
|
if (!closed) {
|
|
76484
76583
|
const acknowledgementAbortController = new AbortController();
|
|
76485
|
-
|
|
76486
|
-
|
|
76584
|
+
let socketClosedBeforeAcknowledgement = false;
|
|
76585
|
+
waitForClose.then(() => {
|
|
76586
|
+
socketClosedBeforeAcknowledgement = true;
|
|
76587
|
+
acknowledgementAbortController.abort();
|
|
76588
|
+
});
|
|
76589
|
+
const acknowledgementTimeout = setTimeout(() => {
|
|
76590
|
+
acknowledgementAbortController.abort();
|
|
76591
|
+
}, CONTROLLED_SHUTDOWN_RESULT_ACK_TIMEOUT_MS);
|
|
76592
|
+
acknowledgementTimeout.unref?.();
|
|
76593
|
+
const acknowledgement = await waitForDispatchResultOutboxAcknowledgement({
|
|
76487
76594
|
abortSignal: acknowledgementAbortController.signal,
|
|
76488
76595
|
ledgerPaths: input.ledgerPaths,
|
|
76489
76596
|
recordKeys: listDispatchResultOutboxPendingAcknowledgementKeys({ ledgerPaths: input.ledgerPaths })
|
|
76490
|
-
})
|
|
76597
|
+
});
|
|
76598
|
+
clearTimeout(acknowledgementTimeout);
|
|
76599
|
+
if (acknowledgement === "aborted") {
|
|
76600
|
+
if (socketClosedBeforeAcknowledgement) return false;
|
|
76601
|
+
emitRunLine({
|
|
76602
|
+
presenter: input.presenter,
|
|
76603
|
+
code: "daemon.run.controlled_shutdown_result_ack_timeout",
|
|
76604
|
+
text: "controlled shutdown preserved unacknowledged durable results for replay after the receipt deadline",
|
|
76605
|
+
payload: {
|
|
76606
|
+
daemonSessionId: input.daemonSessionId,
|
|
76607
|
+
reasonCode: "result_ack_timeout",
|
|
76608
|
+
timeoutMs: CONTROLLED_SHUTDOWN_RESULT_ACK_TIMEOUT_MS
|
|
76609
|
+
}
|
|
76610
|
+
});
|
|
76611
|
+
}
|
|
76491
76612
|
}
|
|
76492
76613
|
if (!closed) {
|
|
76493
76614
|
input.socket.close(1e3, "shutdown");
|
|
76494
|
-
await
|
|
76615
|
+
if (!await waitForPromiseDeadline({
|
|
76616
|
+
operation: waitForClose,
|
|
76617
|
+
timeoutMs: 5e3
|
|
76618
|
+
})) {
|
|
76619
|
+
emitRunLine({
|
|
76620
|
+
presenter: input.presenter,
|
|
76621
|
+
code: "daemon.run.controlled_shutdown_socket_close_timeout",
|
|
76622
|
+
text: "controlled shutdown terminated a half-open daemon stream after the close deadline",
|
|
76623
|
+
payload: {
|
|
76624
|
+
daemonSessionId: input.daemonSessionId,
|
|
76625
|
+
reasonCode: "socket_close_timeout",
|
|
76626
|
+
timeoutMs: CONTROLLED_SHUTDOWN_SOCKET_CLOSE_TIMEOUT_MS
|
|
76627
|
+
}
|
|
76628
|
+
});
|
|
76629
|
+
input.socket.terminate();
|
|
76630
|
+
}
|
|
76495
76631
|
}
|
|
76496
76632
|
return true;
|
|
76497
76633
|
}
|
|
@@ -76551,6 +76687,17 @@ async function withDaemonRunTimeout(input) {
|
|
|
76551
76687
|
if (timeout) clearTimeout(timeout);
|
|
76552
76688
|
}
|
|
76553
76689
|
}
|
|
76690
|
+
async function waitForPromiseDeadline(input) {
|
|
76691
|
+
let timeout = null;
|
|
76692
|
+
try {
|
|
76693
|
+
return await Promise.race([input.operation.then(() => true), new Promise((resolve) => {
|
|
76694
|
+
timeout = setTimeout(() => resolve(false), input.timeoutMs);
|
|
76695
|
+
timeout.unref?.();
|
|
76696
|
+
})]);
|
|
76697
|
+
} finally {
|
|
76698
|
+
if (timeout) clearTimeout(timeout);
|
|
76699
|
+
}
|
|
76700
|
+
}
|
|
76554
76701
|
function observeDispatchFrame(input) {
|
|
76555
76702
|
switch (input.parsedFrame.code) {
|
|
76556
76703
|
case "daemon.dispatch.deliver":
|
|
@@ -77725,9 +77872,17 @@ function noteRunLoopReconnectScheduled(input) {
|
|
|
77725
77872
|
authState,
|
|
77726
77873
|
backoffMs,
|
|
77727
77874
|
error: errorMessage,
|
|
77728
|
-
reason: failureReason
|
|
77875
|
+
reason: failureReason,
|
|
77876
|
+
reasonCode: input.reconnectAttempt >= 2 ? "service_reconnect_exhausted" : null
|
|
77729
77877
|
}
|
|
77730
77878
|
});
|
|
77879
|
+
if (input.reconnectAttempt === 2) warnDaemonEvent("[openmeld.daemon.stream_reconnect_exhausted]", {
|
|
77880
|
+
automaticRetryContinues: true,
|
|
77881
|
+
error: errorMessage,
|
|
77882
|
+
reason: failureReason,
|
|
77883
|
+
reasonCode: "service_reconnect_exhausted",
|
|
77884
|
+
retryAfterMs: backoffMs
|
|
77885
|
+
});
|
|
77731
77886
|
return backoffMs;
|
|
77732
77887
|
}
|
|
77733
77888
|
function noteReconnectFailureState(input) {
|
|
@@ -80885,7 +81040,7 @@ async function prepareManagedDaemonServiceForStop(input) {
|
|
|
80885
81040
|
gracePeriodMs: STOP_WAIT_MS,
|
|
80886
81041
|
mode: "graceful"
|
|
80887
81042
|
},
|
|
80888
|
-
timeoutMs:
|
|
81043
|
+
timeoutMs: CONTROLLED_SHUTDOWN_REQUEST_TIMEOUT_MS
|
|
80889
81044
|
});
|
|
80890
81045
|
await emitDaemonLifecycleEvent({
|
|
80891
81046
|
command: "openmeld service stop",
|
|
@@ -111333,4 +111488,4 @@ function isHumanInteractiveSpaceRuntime(runtime) {
|
|
|
111333
111488
|
//#endregion
|
|
111334
111489
|
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 };
|
|
111335
111490
|
|
|
111336
|
-
//# sourceMappingURL=command-
|
|
111491
|
+
//# sourceMappingURL=command-VQZQ1SIT.js.map
|