openmeld 0.3.95 → 0.3.97
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-DGXnp5Cm.js → add-me-membership-TYETVUMZ.js} +2 -2
- package/dist/{add-me-membership-DGXnp5Cm.js.map → add-me-membership-TYETVUMZ.js.map} +1 -1
- package/dist/{api-client-foundation-OXokafyL.js → api-client-foundation-BCbhO6xe.js} +3 -3
- package/dist/{api-client-foundation-OXokafyL.js.map → api-client-foundation-BCbhO6xe.js.map} +1 -1
- package/dist/{auth-session-yymO5FGR.js → auth-session-BcT7IOfJ.js} +28 -88
- package/dist/auth-session-BcT7IOfJ.js.map +1 -0
- package/dist/{command-D5gVrWiz.js → command-DgODFDCr.js} +178 -31
- package/dist/{command-D5gVrWiz.js.map → command-DgODFDCr.js.map} +1 -1
- package/dist/{dist-DXBncfSC.js → dist-BH4D3j09.js} +21 -8
- package/dist/dist-BH4D3j09.js.map +1 -0
- package/dist/native/openmeld-keychain.node +0 -0
- package/dist/openmeld.js +5 -5
- package/dist/runtime-transport-J50KvRbm.js.map +1 -1
- package/package.json +1 -1
- package/dist/auth-session-yymO5FGR.js.map +0 -1
- package/dist/dist-DXBncfSC.js.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { A as toSpaceCursorUrl, At as openMeldManagedBinaryPath, B as toSpaceUpdatesUrl, C as updateConfiguredSkillsConfig, Ct as deviceOpenClawProfileWorkspaceDir, Dt as normalizeOpenMeldProfileId, E as toDaemonRouteObservationUrl, Et as normalizeAccountKey, F as toSpaceMembersUrl, G as isOpenMeldOrphanedLockError, Gt as runtimeLogsDir, H as acquireLock, Ht as resolveOpenMeldPresetOwnedPathInput, I as toSpaceMetaUrl, Jt as systemDir, Kt as skillsDir, L as toSpacePasswordUrl, Mt as openMeldManagedVersionDir, Nt as openMeldRootDir, Ot as openMeldBackupsDir, P as toSpaceLeaveUrl, Pt as openMeldVersionsDir, Qt as runtimeAgentControllerLaunchContractSchema, R as toSpaceRemoveMembersUrl, Rt as resolveDefaultOpenMeldHomeDirname, St as deviceOpenClawProfileDir, T as normalizeBaseUrl, Tt as legacyAccountProfileSpacesDir, Ut as resolveOpenMeldRootDir, V as toSpaceWsUrl, Vt as resolveOpenMeldEnvPreset, W as isOpenMeldLockError, Wt as runtimeDir, X as resolveOpenMeldOrphanedLockIssue, Yt as formatLocalMachineIssueMessage, Z as runWithHeldLock, Zt as runtimeAgentControllerConversationIdMappingSpecSchema, _ as getRuntimeConfigReadHealth, _t as accountProfileSpaceCacheDir, a as resolveBaseUrl, an as resolveBuiltinAgentControllerConversationKind, at as writeCliContextState, b as setConfiguredSkillsConfig, bt as accountsDir, c as resolveExplicitGatewayUrlOrThrow, d as createDefaultRuntimeAgentControllerSettings, dn as canonicalizeBuiltinAgentControllerRef, dt as createBackgroundExecutionBlockedIssue, en as runtimeStreamingModeSchema, f as getConfiguredDaemonDispatchLimits, fn as normalizeBuiltinAgentControllerId, g as getConfiguredViewCustomization, gt as accountProfileLocalMetaPath, h as getConfiguredSkillsConfig, ht as OPENMELD_HOME_ENV_KEY, i as normalizeGatewayBaseUrlOrNull, in as conversationPolicySchema, it as resolveCliContextId, j as toSpaceDeleteUrl, jt as openMeldManagedVersionBinaryPath, k as toSpaceCreateUrl, kt as openMeldBinDir, l as DEFAULT_RUNTIME_AGENT_TRANSPORT_MODE, ln as buildAgentControllerRoutingKey, lt as assessLocalMachineFailure, mn as parseAgentControllerRef$1, nt as readCliContextState, o as resolveBaseUrlOrNull, on as HOSTED_CENTER_AGENT_CONTROLLER_REF, p as getConfiguredDeviceRuntimeState, pn as normalizeKnownBuiltinAgentControllerId, r as normalizeGatewayBaseUrl, rn as buildAgentControllerConversationRef, rt as resolveCliContext, s as resolveDefaultGatewayBaseUrl, sn as HOSTED_CENTER_AGENT_CONTROLLER_REF_ID, st as resolveOpenMeldLaneDescriptor, tn as runtimeTransportModeSchema, tt as listCliContextStates, un as canonicalizeAgentControllerRef, v as resolveRuntimeSkillsCustomTargetId, vt as accountProfileViewPath, wt as isPublishedOpenMeldHome, x as updateConfiguredDeviceRuntimeState, xt as deviceOpenClawProfileBootstrapPath, yt as accountProfileWorkspacePath, zt as resolveExplicitOpenMeldEnvPreset } from "./base-url-Cv9x5Es9.js";
|
|
4
|
-
import { A as MAX_TEXT_LENGTH, At as createCenterAgentRoutineResponseSchema, B as sleep, C as createSpaceApi, D as toStructuredApiClientFailure, Dt as organizationComputersResponseSchema, E as resolveProfileSpaceHistoryGatewayHost, Et as profileErrorResponseSchema, F as OPENMELD_HEADER_PROFILE_ID, Ft as resumeCenterAgentRoutineResponseSchema, Gt as localProjectControlDaemonFrameSchema, H as getSpaceUpdatesResponseSchema, It as updateCenterAgentRoutineResponseSchema, Jt as postSpaceMembersResponseSchema, Kt as localProjectControlDiscoverProjectsResponseSchema, L as OPENMELD_HEADER_REQUEST_ID, M as parseIncoming$1, Mt as listCenterAgentRoutineRunsResponseSchema, N as parseServerErrorFrame$1, Nt as listCenterAgentRoutinesResponseSchema, O as DAEMON_STREAM_KEEPALIVE_PING, Ot as submitFeedbackIssueRequestSchema, P as resolveCustomMentionAliasOverride, Pt as pauseCenterAgentRoutineResponseSchema, Q as submitAgentControllerTaskLifecycleEventItemSchema, Rt as AGENT_ACTIVITY_PRESENCE_TTL_MAX_MS, S as createRuntimeReportingApi, St as ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE, T as resolveAccountSpaceIndexGatewayHost, Tt as profileCapabilitiesResponseSchema, U as SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS, Ut as agentActivitySnapshotResponseSchema, V as toErrorMessage$41, Wt as localProjectControlConnectionSchema, Xt as spaceMemberDirectoryEntrySchema, Yt as removeSpaceMembersResponseSchema, Zt as spaceMemberDirectorySchema, _n as agentControllerPermissionModeSchema, _t as organizationSkillReleaseSummarySchema, a as buildSpaceAttachmentDownloadPath, an as createProjectResponseSchema, at as COMPUTER_FILE_ACCESS_RUNTIME_CAPABILITY, bt as organizationDirectoryResponseSchema, c as createAgentProfileBindingApi, cn as updateProjectResponseSchema, ct as computerFileAccessPolicyInputSchema, d as createCurrentDeviceApi, dt as organizationSpaceDirectoryWithMemberCountsResponseSchema, ft as spaceCreatorSchema, g as createOrganizationApi, h as createOpenMeldApiClient, ht as listOrganizationSkillsResponseSchema, i as buildProfileSpaceHistoryUpsertPath, in as archiveProjectResponseSchema, it as gatewayErrorEnvelopeSchema, j as parseEnvelope$1, jt as deleteCenterAgentRoutineResponseSchema, kt as submitFeedbackIssueResponseSchema, ln as centerAgentToolSpeakerSchema, lt as computerFileAccessPolicySchema, m as createLocalRuntimeExpectedRoutesApi, mt as getOrganizationSkillResponseSchema, n as OpenMeldApiClientInvalidResponseError, o as createAccountSpaceIndexApi, on as listProjectsResponseSchema, ot as OPENMELD_RUNTIME_CAPABILITIES_HEADER, p as createFetchTransport, pt as spaceMetaSchema, qt as leaveSpaceResponseSchema, r as buildProfileSpaceHistoryStatusPath, rn as observedLocalAgentSessionSchema, s as createAgentActivityApi, sn as projectSchema, st as computerFileAccessDaemonFrameSchema, t as OpenMeldApiClientHttpError, tn as agentActivitySessionInventoryResponseSchema, un as openCodePermissionConfigSchema, ut as modelCatalogSchema, vn as agentControllerCollaborationModeSchema, vt as organizationSkillSummarySchema, wt as authProfileManagedRoleSchema, xt as ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE, y as createProfileSpaceHistoryApi, yn as toLegacySpaceAddressingWireValue, z as toErrorMessage$42, zt as agentActivityEventSchema } from "./dist-
|
|
4
|
+
import { A as MAX_TEXT_LENGTH, At as createCenterAgentRoutineResponseSchema, B as sleep, C as createSpaceApi, D as toStructuredApiClientFailure, Dt as organizationComputersResponseSchema, E as resolveProfileSpaceHistoryGatewayHost, Et as profileErrorResponseSchema, F as OPENMELD_HEADER_PROFILE_ID, Ft as resumeCenterAgentRoutineResponseSchema, Gt as localProjectControlDaemonFrameSchema, H as getSpaceUpdatesResponseSchema, It as updateCenterAgentRoutineResponseSchema, Jt as postSpaceMembersResponseSchema, Kt as localProjectControlDiscoverProjectsResponseSchema, L as OPENMELD_HEADER_REQUEST_ID, M as parseIncoming$1, Mt as listCenterAgentRoutineRunsResponseSchema, N as parseServerErrorFrame$1, Nt as listCenterAgentRoutinesResponseSchema, O as DAEMON_STREAM_KEEPALIVE_PING, Ot as submitFeedbackIssueRequestSchema, P as resolveCustomMentionAliasOverride, Pt as pauseCenterAgentRoutineResponseSchema, Q as submitAgentControllerTaskLifecycleEventItemSchema, Rt as AGENT_ACTIVITY_PRESENCE_TTL_MAX_MS, S as createRuntimeReportingApi, St as ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_MESSAGE, T as resolveAccountSpaceIndexGatewayHost, Tt as profileCapabilitiesResponseSchema, U as SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS, Ut as agentActivitySnapshotResponseSchema, V as toErrorMessage$41, Wt as localProjectControlConnectionSchema, Xt as spaceMemberDirectoryEntrySchema, Yt as removeSpaceMembersResponseSchema, Zt as spaceMemberDirectorySchema, _n as agentControllerPermissionModeSchema, _t as organizationSkillReleaseSummarySchema, a as buildSpaceAttachmentDownloadPath, an as createProjectResponseSchema, at as COMPUTER_FILE_ACCESS_RUNTIME_CAPABILITY, bt as organizationDirectoryResponseSchema, c as createAgentProfileBindingApi, cn as updateProjectResponseSchema, ct as computerFileAccessPolicyInputSchema, d as createCurrentDeviceApi, dt as organizationSpaceDirectoryWithMemberCountsResponseSchema, ft as spaceCreatorSchema, g as createOrganizationApi, h as createOpenMeldApiClient, ht as listOrganizationSkillsResponseSchema, i as buildProfileSpaceHistoryUpsertPath, in as archiveProjectResponseSchema, it as gatewayErrorEnvelopeSchema, j as parseEnvelope$1, jt as deleteCenterAgentRoutineResponseSchema, kt as submitFeedbackIssueResponseSchema, ln as centerAgentToolSpeakerSchema, lt as computerFileAccessPolicySchema, m as createLocalRuntimeExpectedRoutesApi, mt as getOrganizationSkillResponseSchema, n as OpenMeldApiClientInvalidResponseError, o as createAccountSpaceIndexApi, on as listProjectsResponseSchema, ot as OPENMELD_RUNTIME_CAPABILITIES_HEADER, p as createFetchTransport, pt as spaceMetaSchema, qt as leaveSpaceResponseSchema, r as buildProfileSpaceHistoryStatusPath, rn as observedLocalAgentSessionSchema, s as createAgentActivityApi, sn as projectSchema, st as computerFileAccessDaemonFrameSchema, t as OpenMeldApiClientHttpError, tn as agentActivitySessionInventoryResponseSchema, un as openCodePermissionConfigSchema, ut as modelCatalogSchema, vn as agentControllerCollaborationModeSchema, vt as organizationSkillSummarySchema, wt as authProfileManagedRoleSchema, xt as ADDITIONAL_HUMAN_PROFILE_CREATION_DISABLED_CODE, y as createProfileSpaceHistoryApi, yn as toLegacySpaceAddressingWireValue, z as toErrorMessage$42, zt as agentActivityEventSchema } from "./dist-BH4D3j09.js";
|
|
5
5
|
import { $t as conversationExecutionStateSchema, A as runtimeTransportResumeControllerConversationFramePayloadSchema, An as agentInteractionRequestSchema, Ar as resolvePublicAgentAvailabilityCopy, B as openMeldSpaceEgressActionSchema, C as runtimeTransportLocalAgentControlRefreshCatalogFramePayloadSchema, D as runtimeTransportRegisterSessionRequestSchema, Dr as MAX_TEXT_LENGTH$1, E as runtimeTransportLookupRouteOwnerServiceEvidenceSchema, Er as trimmedStringFromUnknown, Fn as formatLocalSetupActionDescription, G as localFolderPickerHelperResultSchema, H as OPENMELD_LOCAL_FOLDER_PICKER_CAPABILITY_HEADER, Hn as localServiceComponentUpdateProjectionSchema, Ht as spaceFileNameSchema, I as openMeldDaemonTaskResultEnvelopeWriteSchema, In as formatLocalSetupActionLabel, Ir as resolveCommandAgentWorkActivity, Jt as openMeldDaemonControlPlaneRequestSchema, Kn as parseOptionalClientMessageId, L as openMeldDaemonTaskResultOpenClawGatewayVisibilityStatusSchema, Ln as installedLocalComponentsSnapshotSchema, M as runtimeTransportRouteCatalogChangedFramePayloadSchema, Mr as shouldPreferMappedPublicAgentFailureReason, Mt as SPACE_FILE_MAX_SIZE_BYTES, Nn as formatLocalComponentsSummaryDescription, O as runtimeTransportRegisterSessionResponseSchema, On as AGENT_INTERACTION_DEFAULT_TIMEOUT_MS, Or as resolveDetailedPublicAgentFailureReason$1, P as runtimeTransportSubmitTaskResultRequestSchema, Pn as formatLocalComponentsSummaryLabel, Qt as providerDispatchRuntimeContextSchema, R as openMeldDaemonTaskResultPayloadSchema, Rn as localCliComponentUpdateProjectionSchema, Rt as resolveSpaceFileMimeType, S as runtimeTransportLocalAgentControlManageInstallationFramePayloadSchema, T as runtimeTransportLocalAgentControlSetProfileWorkspaceFramePayloadSchema, U as localFolderPickerDaemonFrameSchema, V as LOCAL_FOLDER_PICKER_RUNTIME_CAPABILITY, W as localFolderPickerHelperProtocolResultSchema, Xn as runtimeCoordinatorExecutionTokenEnvelopeSchema, Yt as openMeldDaemonControlPlaneResponseSchema, Zn as runtimeTransportDeliveryExecutionIdentitySchema, Zt as skippedDaemonProfileSchema, _ as runtimeTransportHeartbeatRequestSchema, _n as getSpaceMessageAddressingRelationSupportForTargetKind, _r as openMeldRuntimeProfileIdSchema, a as runtimeTransportCapabilitiesSchema, b as runtimeTransportLocalAgentControlForkSessionFramePayloadSchema, bn as resolveMessageEnvelopeTargetField, c as runtimeTransportDispatchInteractionRequestSchema, ct as CONVERSATION_CONTINUITY_WARNING_PURPOSE, d as runtimeTransportDispatchPreviewEndRequestSchema, er as normalizeSpacePasswordText, f as runtimeTransportDispatchPreviewRequestSchema, ft as SPACE_MEMBER_JOIN_NOTICE_PURPOSE, g as runtimeTransportForkAgentSessionResultSchema, gn as formatCanonicalMentionLiteral, gr as normalizeOptionalWorkingDirectory, gt as sanitizeSignalTextPreview, h as runtimeTransportErrorCodeSchema, hn as collectCanonicalMentionTextFragments, hr as agentProfileIdSchema, i as localWakeRouteReportSchema, j as runtimeTransportResumeControllerConversationResultFramePayloadSchema, jn as agentInteractionResolutionSchema, jr as resolvePublicAgentFailureRecovery, k as runtimeTransportRejectedProfileRegistrationSchema, kr as resolveMappedPublicAgentFailureReason, l as runtimeTransportDispatchInteractionResponseFramePayloadSchema, m as runtimeTransportDispatchToolActivityRequestSchema, mn as MESSAGE_MENTION_TYPE_VALUES, mr as MAX_PROFILE_WORKING_DIRECTORY_LENGTH, mt as SPACE_MENTION_REJECT_NOTICE_PURPOSE, n as daemonExecutionCompatibilitySchema, nr as resolveSingleSpaceMentionLabels, o as runtimeTransportDeliverDispatchRequestSchema, p as runtimeTransportDispatchRuntimeEvidenceRequestSchema, pr as openMeldRequestContextSchema, pt as SPACE_MEMBER_REMOVE_NOTICE_PURPOSE, r as daemonStreamFrameSchema, rr as resolveSpaceMentionLabels, s as runtimeTransportDispatchInteractionDeliveredRequestSchema, t as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, u as runtimeTransportDispatchLifecycleRequestSchema, v as runtimeTransportHeartbeatResponseSchema, w as runtimeTransportLocalAgentControlSetEnabledFramePayloadSchema, x as runtimeTransportLocalAgentControlInterruptFramePayloadSchema, xr as profileWorkspaceModeSchema, y as runtimeTransportLocalAgentControlCancelFramePayloadSchema, yn as normalizeMessageEnvelope } from "./runtime-transport-J50KvRbm.js";
|
|
6
6
|
import { r as daemonServiceLaneSchema, t as daemonServiceContractSchema } from "./service-contract-DZWQdPz5.js";
|
|
7
7
|
import { A as isDaemonServiceRuntimeHeartbeatStale, B as setDaemonServiceRuntimeState, C as daemonServiceStableExecutableWrapperPath, D as getDaemonRuntimeStatus, E as ensureDaemonControlPlaneToken, F as releaseDaemonServiceLifecycleLock, G as withDaemonServiceStopLock, H as withDaemonServiceReconcileLock, I as resolveDaemonControlPlaneEndpoint, K as readDaemonLocalStateFile, L as resolveDaemonServiceRuntimeMetadata, M as readDaemonServiceLifecycleLockMeta, N as readDaemonServiceLifecycleLockMetaWithCleanup, O as getDaemonStatus, P as readDaemonServiceRuntimeSnapshot, R as restoreDaemonInstallStateSnapshot, S as daemonServiceRepairJournalPath, T as daemonStatePath, U as withDaemonServiceRegistrationMutationLock, V as uninstallDaemon, W as withDaemonServiceRunLock, _ as daemonRuntimeServiceManagerPath, a as DAEMON_SERVICE_RUNTIME_CONTROLLER_ENV, b as daemonServiceLegacyExecutableWrapperPath, c as DAEMON_SERVICE_RUNTIME_STATE_SCHEMA, d as clearDaemonServiceRuntimeState, f as daemonDispatchJournalPath, g as daemonRuntimeRootPath, h as daemonRuntimeDataPath, i as DAEMON_SERVICE_RUNTIME_AUTO_START_ENV, j as readDaemonControlPlaneToken, k as installDaemon, l as DAEMON_SERVICE_RUNTIME_SYSTEM_SERVICE_ENV, m as daemonRuntimeBundlesPath, n as writeDaemonRuntimeLease, o as DAEMON_SERVICE_RUNTIME_DETACHED_ENV, p as daemonLifecycleJournalPath, q as writeDaemonLocalStateFile, r as DAEMON_HEARTBEAT_STALE_MS, s as DAEMON_SERVICE_RUNTIME_MODE_ENV, t as readDaemonRuntimeLease, u as acquireDaemonServiceLifecycleLock, v as daemonRuntimeStateRootPath, w as daemonServiceStableLauncherPath, x as daemonServiceRecognizedExecutableWrapperPaths, y as daemonServiceActiveBundleStatePath, z as rotateDaemonControlPlaneTokenIfExpired } from "./daemon-runtime-lease-DiRoGxhm.js";
|
|
8
|
-
import { A as REGISTER_RESPONSE_TIMEOUT_MS$1, C as MAX_HEARTBEAT_INTERVAL_MS$2, D as OPENCLAW_CLI_TIMEOUT_MS$1, M as RUNTIME_AGENT_CONTROLLER_REPORT_SYNC_INTERVAL_MS$1, N as RUNTIME_AGENT_CONTROLLER_REPORT_SYNC_RETRY_INTERVAL_MS$1, O as PROVIDER_CONVERSATION_PROOF_SYNC_INTERVAL_MS$1, P as RUNTIME_STATE_PERSIST_MIN_INTERVAL_MS$1, S as HEARTBEAT_RESPONSE_TIMEOUT_MS$1, T as MIN_HEARTBEAT_INTERVAL_MS$2, _ as DAEMON_STREAM_KEEPALIVE_INTERVAL_MS$1, a as getAuthSessionState, b as DEFAULT_HEARTBEAT_INTERVAL_MS$1, c as setAuthSession, d as isBinaryDistribution, f as resolveOpenMeldDistribution, g as DAEMON_STREAM_CONNECT_TIMEOUT_MS$1, h as DAEMON_RUNTIME_CONTRACT_EPOCH$1, k as PROVIDER_CONVERSATION_PROOF_SYNC_RETRY_INTERVAL_MS$1, m as CATALOG_SYNC_SIGNAL_POLL_INTERVAL_MS$1, n as clearAuthSession, p as CATALOG_SYNC_RETRY_INTERVAL_MS$1, r as getAuthSession, v as DAEMON_STREAM_KEEPALIVE_PONG_TIMEOUT_MS$1, y as DEFAULT_GATEWAY_CHAIN_TIMEOUT_MS$1 } from "./auth-session-
|
|
9
|
-
import { a as buildOpenMeldProfileIdentityRequestHeadersWithAuth, c as buildRequestAuthHeaders, d as buildOpenMeldRequestContextFromProfile, f as buildOpenMeldRequestContextFromProfileIdentity, i as resolveSpaceRequestTimeoutMsForDiagnostics, l as canAttachAuthTokenToRequest, m as resolveAuthRequestCompatibility, n as createCliApiClientFoundation, o as buildOpenMeldProfileRequestHeadersWithAuth, p as deriveAuthBaseUrlFromGatewayUrl, r as fetchSpaceRequestWithTimeout, s as buildOpenMeldRequestContextHeadersWithAuth, u as resolveAuthTokenAttachment } from "./api-client-foundation-
|
|
8
|
+
import { A as REGISTER_RESPONSE_TIMEOUT_MS$1, C as MAX_HEARTBEAT_INTERVAL_MS$2, D as OPENCLAW_CLI_TIMEOUT_MS$1, M as RUNTIME_AGENT_CONTROLLER_REPORT_SYNC_INTERVAL_MS$1, N as RUNTIME_AGENT_CONTROLLER_REPORT_SYNC_RETRY_INTERVAL_MS$1, O as PROVIDER_CONVERSATION_PROOF_SYNC_INTERVAL_MS$1, P as RUNTIME_STATE_PERSIST_MIN_INTERVAL_MS$1, S as HEARTBEAT_RESPONSE_TIMEOUT_MS$1, T as MIN_HEARTBEAT_INTERVAL_MS$2, _ as DAEMON_STREAM_KEEPALIVE_INTERVAL_MS$1, a as getAuthSessionState, b as DEFAULT_HEARTBEAT_INTERVAL_MS$1, c as setAuthSession, d as isBinaryDistribution, f as resolveOpenMeldDistribution, g as DAEMON_STREAM_CONNECT_TIMEOUT_MS$1, h as DAEMON_RUNTIME_CONTRACT_EPOCH$1, k as PROVIDER_CONVERSATION_PROOF_SYNC_RETRY_INTERVAL_MS$1, m as CATALOG_SYNC_SIGNAL_POLL_INTERVAL_MS$1, n as clearAuthSession, p as CATALOG_SYNC_RETRY_INTERVAL_MS$1, r as getAuthSession, v as DAEMON_STREAM_KEEPALIVE_PONG_TIMEOUT_MS$1, y as DEFAULT_GATEWAY_CHAIN_TIMEOUT_MS$1 } from "./auth-session-BcT7IOfJ.js";
|
|
9
|
+
import { a as buildOpenMeldProfileIdentityRequestHeadersWithAuth, c as buildRequestAuthHeaders, d as buildOpenMeldRequestContextFromProfile, f as buildOpenMeldRequestContextFromProfileIdentity, i as resolveSpaceRequestTimeoutMsForDiagnostics, l as canAttachAuthTokenToRequest, m as resolveAuthRequestCompatibility, n as createCliApiClientFoundation, o as buildOpenMeldProfileRequestHeadersWithAuth, p as deriveAuthBaseUrlFromGatewayUrl, r as fetchSpaceRequestWithTimeout, s as buildOpenMeldRequestContextHeadersWithAuth, u as resolveAuthTokenAttachment } from "./api-client-foundation-BCbhO6xe.js";
|
|
10
10
|
import { createRequire } from "node:module";
|
|
11
11
|
import { homedir, tmpdir, userInfo } from "node:os";
|
|
12
12
|
import { z } from "zod/v4";
|
|
@@ -34,7 +34,7 @@ import { Box, Container, Editor, Key, ProcessTerminal, TUI, Text, getEditorKeybi
|
|
|
34
34
|
var package_default = {
|
|
35
35
|
$schema: "https://www.schemastore.org/package.json",
|
|
36
36
|
name: "openmeld",
|
|
37
|
-
version: "0.3.
|
|
37
|
+
version: "0.3.97",
|
|
38
38
|
openMeldReleaseDate: "2026-08-24",
|
|
39
39
|
description: "OpenMeld CLI - https://openmeld.ai",
|
|
40
40
|
license: "MIT",
|
|
@@ -11953,7 +11953,6 @@ const MAX_MODEL_DIAGNOSTIC_IDS$1 = 100;
|
|
|
11953
11953
|
const MAX_MODEL_DIAGNOSTIC_ID_CHARS$1 = 512;
|
|
11954
11954
|
const CONTEXT_NOT_FOUND_RE = /(?:path not found|unknown session|session.+not found|no such session)/iu;
|
|
11955
11955
|
const AUTH_FAILURE_RE = /(?:unauthenticated|authentication|sign[ -]?in|required.+login|token.+expired|invalid.+token)/iu;
|
|
11956
|
-
const QUOTA_FAILURE_RE = /(?:quota|rate.?limit|usage limit|credits?|entitlement|upgrade.+plan)/iu;
|
|
11957
11956
|
var GrokBuildAcpTransportError = class extends Error {
|
|
11958
11957
|
code;
|
|
11959
11958
|
diagnostics;
|
|
@@ -12016,13 +12015,17 @@ async function invokeGrokBuildAcpTransport(input) {
|
|
|
12016
12015
|
session.beginTurn();
|
|
12017
12016
|
let promptResult;
|
|
12018
12017
|
try {
|
|
12019
|
-
|
|
12020
|
-
prompt
|
|
12021
|
-
|
|
12022
|
-
|
|
12023
|
-
|
|
12024
|
-
|
|
12025
|
-
|
|
12018
|
+
try {
|
|
12019
|
+
promptResult = await session.request("session/prompt", {
|
|
12020
|
+
prompt: [{
|
|
12021
|
+
text: prompt,
|
|
12022
|
+
type: "text"
|
|
12023
|
+
}],
|
|
12024
|
+
sessionId: descriptor.sessionId
|
|
12025
|
+
});
|
|
12026
|
+
} catch (error) {
|
|
12027
|
+
throw await toPromptWakeFailureError(error, session);
|
|
12028
|
+
}
|
|
12026
12029
|
} finally {
|
|
12027
12030
|
session.endTurn();
|
|
12028
12031
|
unregisterActiveTurn?.();
|
|
@@ -12054,6 +12057,27 @@ async function invokeGrokBuildAcpTransport(input) {
|
|
|
12054
12057
|
await session.closeProcess();
|
|
12055
12058
|
}
|
|
12056
12059
|
}
|
|
12060
|
+
const PROVIDER_USAGE_EXHAUSTED_ERROR_CODE = "grok-build.quota_or_entitlement";
|
|
12061
|
+
/**
|
|
12062
|
+
* A provider rejection without a self-describing message surfaces as
|
|
12063
|
+
* protocol.request_failed. When the usage projection shows credits are
|
|
12064
|
+
* exhausted, the quota failure code is far more accurate than a generic
|
|
12065
|
+
* protocol error.
|
|
12066
|
+
*/
|
|
12067
|
+
function upgradePromptProtocolFailureWithExhaustedUsage(classified, usageLimits) {
|
|
12068
|
+
if (classified.code !== "protocol.request_failed" || !usageLimits.some((limit) => limit.status === "exhausted")) return classified;
|
|
12069
|
+
return new GrokBuildAcpTransportError({
|
|
12070
|
+
cause: classified,
|
|
12071
|
+
code: PROVIDER_USAGE_EXHAUSTED_ERROR_CODE,
|
|
12072
|
+
errorType: "auth",
|
|
12073
|
+
message: "grok-build.quota_or_entitlement: the provider account has used all of its included credits for this period"
|
|
12074
|
+
});
|
|
12075
|
+
}
|
|
12076
|
+
async function toPromptWakeFailureError(error, session) {
|
|
12077
|
+
const classified = toGrokBuildTransportError(error, session.readStderr(), session.readDiagnostics());
|
|
12078
|
+
if (classified.code !== "protocol.request_failed" || isContextNotFoundError(classified)) return classified;
|
|
12079
|
+
return upgradePromptProtocolFailureWithExhaustedUsage(classified, await session.readUsageLimitsSafe());
|
|
12080
|
+
}
|
|
12057
12081
|
var GrokBuildAcpSession = class {
|
|
12058
12082
|
#input;
|
|
12059
12083
|
#process;
|
|
@@ -12146,6 +12170,13 @@ var GrokBuildAcpSession = class {
|
|
|
12146
12170
|
response
|
|
12147
12171
|
}), () => createUnavailableProviderUsageLimits((/* @__PURE__ */ new Date()).toISOString()));
|
|
12148
12172
|
}
|
|
12173
|
+
async readUsageLimitsSafe() {
|
|
12174
|
+
try {
|
|
12175
|
+
return await this.readUsageLimits();
|
|
12176
|
+
} catch {
|
|
12177
|
+
return createUnavailableProviderUsageLimits((/* @__PURE__ */ new Date()).toISOString());
|
|
12178
|
+
}
|
|
12179
|
+
}
|
|
12149
12180
|
async openSession(input) {
|
|
12150
12181
|
const operation = input.sessionId ? "resume" : "new";
|
|
12151
12182
|
let result;
|
|
@@ -12542,11 +12573,6 @@ function classifyGrokBuildProviderFailure(message) {
|
|
|
12542
12573
|
errorType: "auth",
|
|
12543
12574
|
message: `auth.failed: ${normalized}`
|
|
12544
12575
|
});
|
|
12545
|
-
if (QUOTA_FAILURE_RE.test(normalized)) return new GrokBuildAcpTransportError({
|
|
12546
|
-
code: "grok-build.quota_or_entitlement",
|
|
12547
|
-
errorType: "auth",
|
|
12548
|
-
message: `grok-build.quota_or_entitlement: ${normalized}`
|
|
12549
|
-
});
|
|
12550
12576
|
return null;
|
|
12551
12577
|
}
|
|
12552
12578
|
function isContextNotFoundError(error) {
|
|
@@ -17603,7 +17629,7 @@ function resolveOpenMeldAccountContext(input) {
|
|
|
17603
17629
|
};
|
|
17604
17630
|
}
|
|
17605
17631
|
async function resolveCurrentOpenMeldAccountContext() {
|
|
17606
|
-
const { getAuthSessionMetadata } = await import("./auth-session-
|
|
17632
|
+
const { getAuthSessionMetadata } = await import("./auth-session-BcT7IOfJ.js").then((n) => n.t);
|
|
17607
17633
|
return resolveOpenMeldAccountContext({ session: await getAuthSessionMetadata().catch(() => null) });
|
|
17608
17634
|
}
|
|
17609
17635
|
function resolveHostKey(baseUrl) {
|
|
@@ -21108,6 +21134,9 @@ const LAUNCHD_ENABLED_PATTERN = /enabled\s*=\s*(true|false)/i;
|
|
|
21108
21134
|
const LAUNCHD_STATE_PATTERN = /state\s*=\s*running/i;
|
|
21109
21135
|
const LAUNCHD_DISABLED_SERVICES_ENTRY_PATTERN = /"([^"]+)"\s*=>\s*(enabled|disabled)/i;
|
|
21110
21136
|
const LAUNCHD_STRING_PATTERN = /<string>([^<]+)<\/string>/g;
|
|
21137
|
+
const LAUNCHD_ENVIRONMENT_BLOCK_PATTERN = /<key>EnvironmentVariables<\/key>\s*<dict>([\s\S]*?)<\/dict>/;
|
|
21138
|
+
const WINDOWS_LINE_SEPARATOR_PATTERN = /\r?\n/;
|
|
21139
|
+
const WINDOWS_ENVIRONMENT_ASSIGNMENT_PATTERN = /^set "([^=]+)=(.*)"$/i;
|
|
21111
21140
|
const WINDOWS_STATE_PATTERN = /STATE\s*:\s*\d+\s+([A-Za-z_]+)/;
|
|
21112
21141
|
const WINDOWS_AUTO_START_PATTERN = /auto|auto_start/i;
|
|
21113
21142
|
const WINDOWS_SERVICE_DOES_NOT_EXIST_CODE_PATTERN = /(?:^|\D)1060(?:\D|$)/u;
|
|
@@ -21667,7 +21696,11 @@ function buildSystemdManager(pathInput = {}) {
|
|
|
21667
21696
|
running: readSystemdServiceActiveProbe(activeResult),
|
|
21668
21697
|
enabled: readSystemdServiceEnabledProbe(enabledResult),
|
|
21669
21698
|
definitionPath: installed ? unitPath : null,
|
|
21670
|
-
commandSummary: installed ? await readSystemServiceCommandSummary(unitPath, "ExecStart=") : null
|
|
21699
|
+
commandSummary: installed ? await readSystemServiceCommandSummary(unitPath, "ExecStart=") : null,
|
|
21700
|
+
environmentTarget: installed ? await readDaemonServiceEnvironmentTargetFromDefinition({
|
|
21701
|
+
controller: SYSTEMD_CONTROLLER,
|
|
21702
|
+
path: unitPath
|
|
21703
|
+
}) : null
|
|
21671
21704
|
};
|
|
21672
21705
|
},
|
|
21673
21706
|
readJobDiagnostics: async () => null,
|
|
@@ -21848,7 +21881,11 @@ function buildLaunchdManager(pathInput = {}) {
|
|
|
21848
21881
|
running: LAUNCHD_STATE_PATTERN.test(output),
|
|
21849
21882
|
enabled: enabledFromDisabledServices ?? parseLaunchdEnabled(output),
|
|
21850
21883
|
definitionPath: installed ? plistPath : null,
|
|
21851
|
-
commandSummary: installed ? await readLaunchdProgramArguments(plistPath) : null
|
|
21884
|
+
commandSummary: installed ? await readLaunchdProgramArguments(plistPath) : null,
|
|
21885
|
+
environmentTarget: installed ? await readDaemonServiceEnvironmentTargetFromDefinition({
|
|
21886
|
+
controller: LAUNCHD_CONTROLLER,
|
|
21887
|
+
path: plistPath
|
|
21888
|
+
}) : null
|
|
21852
21889
|
};
|
|
21853
21890
|
},
|
|
21854
21891
|
readJobDiagnostics: async () => {
|
|
@@ -22134,7 +22171,11 @@ function buildWindowsManager(pathInput = {}) {
|
|
|
22134
22171
|
running: state?.toUpperCase() === "RUNNING",
|
|
22135
22172
|
enabled: parseWindowsEnabled(startType),
|
|
22136
22173
|
definitionPath: scriptPath,
|
|
22137
|
-
commandSummary: await readWindowsRunnerCommandSummary(scriptPath) ?? parseRegexGroup(qc.stdout, WINDOWS_BINARY_PATH_PATTERN) ?? null
|
|
22174
|
+
commandSummary: await readWindowsRunnerCommandSummary(scriptPath) ?? parseRegexGroup(qc.stdout, WINDOWS_BINARY_PATH_PATTERN) ?? null,
|
|
22175
|
+
environmentTarget: await readDaemonServiceEnvironmentTargetFromDefinition({
|
|
22176
|
+
controller: WINDOWS_CONTROLLER,
|
|
22177
|
+
path: scriptPath
|
|
22178
|
+
})
|
|
22138
22179
|
};
|
|
22139
22180
|
},
|
|
22140
22181
|
readJobDiagnostics: async () => null,
|
|
@@ -22208,6 +22249,75 @@ async function readLaunchdProgramArguments(path) {
|
|
|
22208
22249
|
if (matches.length === 0) return null;
|
|
22209
22250
|
return matches.join(" ");
|
|
22210
22251
|
}
|
|
22252
|
+
const SERVICE_ENVIRONMENT_TARGET_KEYS = {
|
|
22253
|
+
preset: "OPENMELD_ENV_PRESET",
|
|
22254
|
+
gatewayUrl: "OPENMELD_GATEWAY_URL",
|
|
22255
|
+
authBaseUrl: "OPENMELD_AUTH_URL",
|
|
22256
|
+
userFacingCommand: "OPENMELD_USER_FACING_CLI_COMMAND"
|
|
22257
|
+
};
|
|
22258
|
+
function parseDaemonServiceEnvironmentTargetFromDefinition(input) {
|
|
22259
|
+
let environment;
|
|
22260
|
+
if (input.controller === SYSTEMD_CONTROLLER) environment = parseSystemdEnvironment(input.definition);
|
|
22261
|
+
else if (input.controller === LAUNCHD_CONTROLLER) environment = parseLaunchdEnvironment(input.definition);
|
|
22262
|
+
else environment = parseWindowsEnvironment(input.definition);
|
|
22263
|
+
const preset = environment[SERVICE_ENVIRONMENT_TARGET_KEYS.preset];
|
|
22264
|
+
const gatewayUrl = environment[SERVICE_ENVIRONMENT_TARGET_KEYS.gatewayUrl];
|
|
22265
|
+
const authBaseUrl = environment[SERVICE_ENVIRONMENT_TARGET_KEYS.authBaseUrl];
|
|
22266
|
+
const userFacingCommand = environment[SERVICE_ENVIRONMENT_TARGET_KEYS.userFacingCommand];
|
|
22267
|
+
if (!((preset === "prod" || preset === "canary" || preset === "dev-local") && gatewayUrl && authBaseUrl && userFacingCommand)) return null;
|
|
22268
|
+
return {
|
|
22269
|
+
preset,
|
|
22270
|
+
gatewayUrl,
|
|
22271
|
+
authBaseUrl,
|
|
22272
|
+
userFacingCommand
|
|
22273
|
+
};
|
|
22274
|
+
}
|
|
22275
|
+
async function readDaemonServiceEnvironmentTargetFromDefinition(input) {
|
|
22276
|
+
const definition = await readFile(input.path, "utf8").catch(() => null);
|
|
22277
|
+
if (!definition) return null;
|
|
22278
|
+
return parseDaemonServiceEnvironmentTargetFromDefinition({
|
|
22279
|
+
controller: input.controller,
|
|
22280
|
+
definition
|
|
22281
|
+
});
|
|
22282
|
+
}
|
|
22283
|
+
function parseSystemdEnvironment(definition) {
|
|
22284
|
+
const environment = {};
|
|
22285
|
+
for (const rawLine of definition.split("\n")) {
|
|
22286
|
+
const line = rawLine.trim();
|
|
22287
|
+
if (!line.startsWith("Environment=")) continue;
|
|
22288
|
+
const assignment = line.slice(12);
|
|
22289
|
+
const separatorIndex = assignment.indexOf("=");
|
|
22290
|
+
if (separatorIndex <= 0) continue;
|
|
22291
|
+
const key = assignment.slice(0, separatorIndex);
|
|
22292
|
+
let value = assignment.slice(separatorIndex + 1);
|
|
22293
|
+
if (value.startsWith("\"") && value.endsWith("\"")) value = value.slice(1, -1).replace(/\\"/g, "\"").replace(/\\\\/g, "\\");
|
|
22294
|
+
environment[key] = value;
|
|
22295
|
+
}
|
|
22296
|
+
return environment;
|
|
22297
|
+
}
|
|
22298
|
+
function parseLaunchdEnvironment(definition) {
|
|
22299
|
+
const environmentBlock = definition.match(LAUNCHD_ENVIRONMENT_BLOCK_PATTERN)?.[1];
|
|
22300
|
+
if (!environmentBlock) return {};
|
|
22301
|
+
const environment = {};
|
|
22302
|
+
for (const match of environmentBlock.matchAll(/<key>([^<]+)<\/key>\s*<string>([^<]*)<\/string>/g)) {
|
|
22303
|
+
const key = decodeXmlText(match[1] ?? "");
|
|
22304
|
+
if (!key) continue;
|
|
22305
|
+
environment[key] = decodeXmlText(match[2] ?? "");
|
|
22306
|
+
}
|
|
22307
|
+
return environment;
|
|
22308
|
+
}
|
|
22309
|
+
function parseWindowsEnvironment(definition) {
|
|
22310
|
+
const environment = {};
|
|
22311
|
+
for (const rawLine of definition.split(WINDOWS_LINE_SEPARATOR_PATTERN)) {
|
|
22312
|
+
const match = rawLine.trim().match(WINDOWS_ENVIRONMENT_ASSIGNMENT_PATTERN);
|
|
22313
|
+
if (!(match?.[1] && match[2] !== void 0)) continue;
|
|
22314
|
+
environment[match[1]] = match[2].replace(/\\"/g, "\"");
|
|
22315
|
+
}
|
|
22316
|
+
return environment;
|
|
22317
|
+
}
|
|
22318
|
+
function decodeXmlText(value) {
|
|
22319
|
+
return value.replace(/'/g, "'").replace(/"/g, "\"").replace(/>/g, ">").replace(/</g, "<").replace(/&/g, "&");
|
|
22320
|
+
}
|
|
22211
22321
|
function isSystemdAvailable() {
|
|
22212
22322
|
return runCommand$3({
|
|
22213
22323
|
command: "systemctl",
|
|
@@ -32112,7 +32222,8 @@ const DAEMON_SERVICE_FULL_ALIGNMENT_ANOMALIES = /* @__PURE__ */ new Set([
|
|
|
32112
32222
|
"bundle_strategy_legacy",
|
|
32113
32223
|
"bundle_provenance_drift",
|
|
32114
32224
|
"bundle_path_invalid",
|
|
32115
|
-
"duplicate_owned_processes"
|
|
32225
|
+
"duplicate_owned_processes",
|
|
32226
|
+
"service_manager_environment_drift"
|
|
32116
32227
|
]);
|
|
32117
32228
|
const DAEMON_SERVICE_AUTO_HEAL_ANOMALIES = /* @__PURE__ */ new Set([
|
|
32118
32229
|
"runtime_stale",
|
|
@@ -32137,6 +32248,7 @@ const DAEMON_SERVICE_REPAIR_ANOMALIES = /* @__PURE__ */ new Set([
|
|
|
32137
32248
|
"bundle_provenance_drift",
|
|
32138
32249
|
"bundle_path_invalid",
|
|
32139
32250
|
"service_manager_path_drift",
|
|
32251
|
+
"service_manager_environment_drift",
|
|
32140
32252
|
"duplicate_owned_processes"
|
|
32141
32253
|
]);
|
|
32142
32254
|
const DAEMON_SERVICE_RUN_BLOCKING_ANOMALIES = /* @__PURE__ */ new Set([
|
|
@@ -32157,6 +32269,7 @@ const DAEMON_SERVICE_RUN_BLOCKING_ANOMALIES = /* @__PURE__ */ new Set([
|
|
|
32157
32269
|
"runtime_contract_unavailable",
|
|
32158
32270
|
"runtime_stale",
|
|
32159
32271
|
"service_manager_path_drift",
|
|
32272
|
+
"service_manager_environment_drift",
|
|
32160
32273
|
"version_outdated"
|
|
32161
32274
|
])].filter((code) => code !== "runtime_stale" && code !== "version_outdated" && code !== "bundle_version_drift"),
|
|
32162
32275
|
"duplicate_owned_processes",
|
|
@@ -32261,7 +32374,8 @@ function buildDaemonServiceTargetSpec(input) {
|
|
|
32261
32374
|
const distribution = input.distribution ?? resolveOpenMeldDistribution();
|
|
32262
32375
|
return {
|
|
32263
32376
|
daemonVersion: input.daemonVersion,
|
|
32264
|
-
bundleFormat: distribution === "binary" ? "binary_v1" : "self_contained_v1"
|
|
32377
|
+
bundleFormat: distribution === "binary" ? "binary_v1" : "self_contained_v1",
|
|
32378
|
+
environmentTarget: input.environmentTarget ?? resolveOpenMeldEnvironmentTargetFromEnv({ gatewayUrl: input.gatewayUrl })
|
|
32265
32379
|
};
|
|
32266
32380
|
}
|
|
32267
32381
|
function resolveDaemonServiceAlignmentDecision(input) {
|
|
@@ -32318,8 +32432,16 @@ function collectFullAlignmentReasonCodes(input) {
|
|
|
32318
32432
|
});
|
|
32319
32433
|
if (input.versionDecision === "already_aligned" && input.inventory.activeBundle && input.inventory.activeBundle.daemonVersion !== resolveExpectedArtifactVersion(input.inventory) && !reasonCodes.includes("bundle_version_drift")) reasonCodes.push("bundle_version_drift");
|
|
32320
32434
|
if (input.inventory.activeBundle && input.inventory.activeBundle.bundleFormat !== input.target.bundleFormat && !reasonCodes.includes("bundle_strategy_legacy")) reasonCodes.push("bundle_strategy_legacy");
|
|
32435
|
+
if (hasServiceManagerEnvironmentDrift(input) && !reasonCodes.includes("service_manager_environment_drift")) reasonCodes.push("service_manager_environment_drift");
|
|
32321
32436
|
return reasonCodes;
|
|
32322
32437
|
}
|
|
32438
|
+
function hasServiceManagerEnvironmentDrift(input) {
|
|
32439
|
+
const status = input.inventory.serviceManagerStatus;
|
|
32440
|
+
if (!(status?.installed && status.environmentTarget !== void 0)) return false;
|
|
32441
|
+
const observed = status.environmentTarget;
|
|
32442
|
+
const expected = input.target.environmentTarget;
|
|
32443
|
+
return observed === null || observed.preset !== expected.preset || observed.gatewayUrl !== expected.gatewayUrl || observed.authBaseUrl !== expected.authBaseUrl || observed.userFacingCommand !== expected.userFacingCommand;
|
|
32444
|
+
}
|
|
32323
32445
|
function resolveVersionDecision(input) {
|
|
32324
32446
|
const configuredVersion = resolveExpectedArtifactVersion(input.inventory);
|
|
32325
32447
|
if (!configuredVersion) return "already_aligned";
|
|
@@ -35412,7 +35534,19 @@ function canManageRegistryAgentSkillTargets() {
|
|
|
35412
35534
|
}
|
|
35413
35535
|
async function detectInstalledSkillsAgents(registry) {
|
|
35414
35536
|
const allowRegistryDefaults = canManageRegistryAgentSkillTargets();
|
|
35415
|
-
return
|
|
35537
|
+
return await detectInstalledRegistryAgents({ entries: Object.entries(registry).filter(([, config]) => allowRegistryDefaults || config.globalSkillsDirSource === "config-override") });
|
|
35538
|
+
}
|
|
35539
|
+
/**
|
|
35540
|
+
* Detects local Agent Controllers without granting a lane permission to manage
|
|
35541
|
+
* their shared skills directories. Runtime discovery is read-only machine
|
|
35542
|
+
* evidence and must remain available in isolated dev and canary lanes.
|
|
35543
|
+
*/
|
|
35544
|
+
async function detectInstalledRuntimeAgents(registry) {
|
|
35545
|
+
const allowRegistryDefaults = canManageRegistryAgentSkillTargets();
|
|
35546
|
+
return await detectInstalledRegistryAgents({ entries: Object.entries(registry).filter(([, config]) => config.runtimeSupported || allowRegistryDefaults || config.globalSkillsDirSource === "config-override") });
|
|
35547
|
+
}
|
|
35548
|
+
async function detectInstalledRegistryAgents(input) {
|
|
35549
|
+
return (await mapWithConcurrency(input.entries, MAX_CONCURRENT_AGENT_DETECTIONS, async ([agentName, config]) => ({
|
|
35416
35550
|
agentName,
|
|
35417
35551
|
installed: await config.detectInstalled()
|
|
35418
35552
|
}))).filter((entry) => entry.installed).map((entry) => entry.agentName).sort((a, b) => a.localeCompare(b));
|
|
@@ -35505,7 +35639,7 @@ async function loadAgentCatalog() {
|
|
|
35505
35639
|
throw wrapConfigError(error, "agents.config_read_failed");
|
|
35506
35640
|
});
|
|
35507
35641
|
const builtins = resolveSkillsAgentRegistry(skillsConfig);
|
|
35508
|
-
const detectedIds = new Set(await
|
|
35642
|
+
const detectedIds = new Set(await detectInstalledRuntimeAgents(builtins));
|
|
35509
35643
|
const builtinsById = /* @__PURE__ */ new Map();
|
|
35510
35644
|
for (const [agentId, entry] of Object.entries(builtins)) builtinsById.set(agentId, {
|
|
35511
35645
|
agentId,
|
|
@@ -37239,9 +37373,9 @@ function createModelCatalogReadSession(input) {
|
|
|
37239
37373
|
async function readModelCatalogOnce(baseUrl) {
|
|
37240
37374
|
try {
|
|
37241
37375
|
const [apiClient, baseUrlModule, clientFoundationModule] = await Promise.all([
|
|
37242
|
-
import("./dist-
|
|
37376
|
+
import("./dist-BH4D3j09.js").then((n) => n.w),
|
|
37243
37377
|
import("./base-url-Cv9x5Es9.js").then((n) => n.n),
|
|
37244
|
-
import("./api-client-foundation-
|
|
37378
|
+
import("./api-client-foundation-BCbhO6xe.js").then((n) => n.t)
|
|
37245
37379
|
]);
|
|
37246
37380
|
if (typeof apiClient.createConfigApi !== "function") throw new Error("config api client is unavailable");
|
|
37247
37381
|
const resolvedBaseUrl = baseUrl ?? await baseUrlModule.resolveBaseUrl();
|
|
@@ -42443,7 +42577,10 @@ async function runDaemonServiceLifecycle(input) {
|
|
|
42443
42577
|
evidencePath: null,
|
|
42444
42578
|
failureStage: null
|
|
42445
42579
|
};
|
|
42446
|
-
const target = buildDaemonServiceTargetSpec({
|
|
42580
|
+
const target = buildDaemonServiceTargetSpec({
|
|
42581
|
+
daemonVersion: input.expectedVersion,
|
|
42582
|
+
gatewayUrl: input.gatewayUrl
|
|
42583
|
+
});
|
|
42447
42584
|
const emitPhase = async (phase) => {
|
|
42448
42585
|
state.completedPhases.push(phase);
|
|
42449
42586
|
await input.onPhase?.(phase);
|
|
@@ -53948,6 +54085,8 @@ function buildAuthStatusSnapshot(input) {
|
|
|
53948
54085
|
if (!session) return {
|
|
53949
54086
|
signedIn: false,
|
|
53950
54087
|
state: input.state,
|
|
54088
|
+
...input.reasonCode ? { reasonCode: input.reasonCode } : {},
|
|
54089
|
+
...input.errorMessage ? { errorMessage: input.errorMessage } : {},
|
|
53951
54090
|
userId: null,
|
|
53952
54091
|
userEmail: null,
|
|
53953
54092
|
userName: null,
|
|
@@ -53969,6 +54108,8 @@ function buildAuthStatusSnapshot(input) {
|
|
|
53969
54108
|
return {
|
|
53970
54109
|
signedIn: input.state === "valid",
|
|
53971
54110
|
state: input.state,
|
|
54111
|
+
...input.reasonCode ? { reasonCode: input.reasonCode } : {},
|
|
54112
|
+
...input.errorMessage ? { errorMessage: input.errorMessage } : {},
|
|
53972
54113
|
userId: normalizeOptionalString$8(session.user?.id),
|
|
53973
54114
|
userEmail: normalizeOptionalString$8(session.user?.email),
|
|
53974
54115
|
userName: normalizeOptionalString$8(session.user?.name),
|
|
@@ -54705,6 +54846,8 @@ function buildAuthStatusPayload(input) {
|
|
|
54705
54846
|
return {
|
|
54706
54847
|
signedIn: input.signedIn,
|
|
54707
54848
|
state: input.state,
|
|
54849
|
+
...input.reasonCode ? { reasonCode: input.reasonCode } : {},
|
|
54850
|
+
...input.errorMessage ? { errorMessage: input.errorMessage } : {},
|
|
54708
54851
|
authBaseUrl: input.authBaseUrl,
|
|
54709
54852
|
clientId: input.clientId,
|
|
54710
54853
|
tokenType: input.tokenType,
|
|
@@ -77142,7 +77285,8 @@ async function performDaemonReinstall(input) {
|
|
|
77142
77285
|
if (!input.resolved.forceReinstall) {
|
|
77143
77286
|
const alreadyHealthy = await input.resolved.withReconcileLock(async () => await resolveAlreadyHealthyDaemonRepair({
|
|
77144
77287
|
expectedVersion: input.resolved.daemonVersion,
|
|
77145
|
-
cliScriptPath: input.resolved.cliScriptPath
|
|
77288
|
+
cliScriptPath: input.resolved.cliScriptPath,
|
|
77289
|
+
gatewayUrl: input.gatewayUrl
|
|
77146
77290
|
}));
|
|
77147
77291
|
if (alreadyHealthy) return alreadyHealthy;
|
|
77148
77292
|
}
|
|
@@ -77414,7 +77558,10 @@ async function resolveAlreadyHealthyDaemonRepair(input) {
|
|
|
77414
77558
|
});
|
|
77415
77559
|
if (resolveDaemonServiceAlignmentDecision({
|
|
77416
77560
|
inventory,
|
|
77417
|
-
target: buildDaemonServiceTargetSpec({
|
|
77561
|
+
target: buildDaemonServiceTargetSpec({
|
|
77562
|
+
daemonVersion: input.expectedVersion,
|
|
77563
|
+
gatewayUrl: input.gatewayUrl
|
|
77564
|
+
})
|
|
77418
77565
|
}).status !== "already_aligned") return null;
|
|
77419
77566
|
if (!inventory.serviceContract) return null;
|
|
77420
77567
|
const desiredState = inventory.serviceContract.desiredState;
|
|
@@ -106480,4 +106627,4 @@ function isHumanInteractiveSpaceRuntime(runtime) {
|
|
|
106480
106627
|
//#endregion
|
|
106481
106628
|
export { runAgentsRepair as $, uninstallAgentActivityIntegrations as $a, performManagedInstall as $i, formatDaemonServiceDowngradeBlockedRecommendation as $n, resolveProfileWorkspaceRuntime as $r, readBundledOpenMeldCliSkillDocumentByPath as $t, assertFullSignalIdArgument as A, getSelectedOpenMeldProfileId as Aa, getAgentControllerPermissionModeDisplayMetadata as Ai, inspectSpaceCacheFile as An, enqueueControllerTaskLifecycleEventWhileLocked as Ao, buildAgentOverviewFromContract as Ar, shouldEmitAgentOverview as At, persistAgentTransportSelection as B, LocalProjectConnectionError as Ba, getCurrentCommandCheckState as Bi, formatRemovedCcRelationMessage as Bn, cliJsonOutputEnvelopeSchema as Bo, runDaemonServiceFullAlignment as Br, parseJsonResponse$1 as Bt, toSpaceMetaUpsertInput as C, deleteOpenMeldProfile as Ca, classifyDaemonServiceWakeability as Ci, submitProfileRuntimeAgentControllerReport as Cn, listProjectConnectionsWithStatus as Co, registerSpaceMemberSelectionOptions as Cr, runDaemonTeardownStrict as Ct, formatHumanReadTargetList as D, updateOpenMeldProfile as Da, resolveOpenMeldEnvironmentTarget as Di, resolveLocalAgentControllerBlockerReasonCodes as Dn, setDefaultProjectConnection as Do, registerDaemonControlTargetOptions as Dr, reconcileCliVersionView as Dt, buildHumanReplyContextSummary as E, resolveOpenMeldProfile as Ea, resolveDaemonDeviceId as Ei, collectLocalAgentControllerInventory as En, runIfAgentActivityBindingGenerationIsCurrent as Eo, getCliVersionInfo as Er, buildProfileWorkspaceRows as Et, emitSpaceAgentOverview as F, resolveAuthenticationGuidance as Fa, resolveAgentExecutionStatus as Fi, buildSignalIndex as Fn, emitCliJsonEnvelope as Fo, OPENMELD_AGENT_MENTAL_MODEL_LINES as Fr, fetchSpaceMeta as Ft, runAgentsCustomList as G, registerAgentActivityRoute as Ga, resolveVersionChangeDirection as Gi, assessCliUpdate as Gn, organizationJoinLinkErrorResponseSchema as Go, formatAgentReplyReadinessLabel as Gr, runDaemonStartDecisionPrompt as Gt, runAgents as H, LocalDaemonControlPlaneClientError as Ha, resetCurrentCommandCheckState as Hi, promptSearchSelect as Hn, cliJsonSkillsLoadEnvelopeSchema as Ho, resolveServiceReadinessFromServiceStatus as Hr, writeInstalledLocalComponentsSnapshot as Ht, emitSpaceCliAgentOverview as I, resolveAuthenticationGuidanceFromError as Ia, resolveAgentProfileEditCapabilities as Ii, buildSignalMessageReadProjection as In, errLine as Io, SPACE_CONTRACT_ALLOWED_ACTION_ORDER as Ir, updateSpaceMeta as It, runAgentsDetect as J, AGENT_ACTIVITY_INTEGRATION_OWNER as Ja, getDaemonSystemServiceLogPath as Ji, readDispatchOwnedRuntimeGuard as Jn, package_default as Jo, mapAgentReplyReadinessToLegacyAutoReply as Jr, runSkillsEnsure as Jt, runAgentsCustomRemove as K, resolveAgentActivityRouteForPath as Ka, readCurrentDaemonRuntimeContext as Ki, isCliUpdateCheckApplicable as Kn, revokeOrganizationJoinLinkResponseSchema as Ko, formatDeviceReplyReadinessLabel as Kr, collectSkillsReadinessSnapshot as Kt, prepareLocalAgentReadiness as L, resolveAuthenticationGuidanceFromMessage as La, resolveEvidenceSyncHealth as Li, buildSpaceRoundReadProjection as Ln, outJsonLine as Lo, areAllowedActionsEquivalent as Lr, readGatewayJsonResponse as Lt, prepareAuthenticatedSpaceCommandContext as M, buildAgentAuthenticationGuide as Ma, listAgentControllerPermissionModeOptions as Mi, assertNoRemovedCcSpaceAddressingSyntax as Mn, renderInfoCard as Mo, formatDualViewGuideForDisplay as Mr, readDaemonStartFailureLogTailLines as Mt, resolveOpenMeldProfileForSpaceCommand as N, buildHumanAuthenticationCard as Na, parseAgentControllerRef as Ni, buildDispatchResultMessageReadProjection as Nn, renderTextInfoCard as No, buildDualViewGuideMessage as Nr, fetchSpaceUpdates as Nt, parseEnvelope as O, alignSelectedOpenMeldProfileStorage as Oa, buildAgentControllerRef as Oi, resolveLocalAgentControllerLaunchability as On, unbindProject as Oo, registerAuthLoginRequestOptions as Or, emitDaemonAgentOverview as Ot, resolveSpaceAccessLabel as P, createAuthenticationError as Pa, resolveAgentControllerPermissionModeForController as Pi, buildDispatchResultReplyWorkflowProjection as Pn, sanitizeTerminalDisplayText as Po, formatAgentOverviewPayload as Pr, createCliSpaceApi as Pt, runAgentsManage as Q, resolveAgentActivityDispatcherCommand as Qa, buildInstallSelfJsonPayload as Qi, resolveElapsedTimeMs as Qn, createModelCatalogReadSession as Qr, ensureLocalSkills as Qt, buildReplyReadinessGuidance as R, getProfileDefaultView as Ra, resolveNativeAgentControllerPermissionModeForController as Ri, buildUpdatesReplyWorkflowProjection as Rn, outLine as Ro, buildAgentFacingPublicationModeGuideLines as Rr, readGatewayTextResponse as Rt, loadSpaceSignalIndexOrNull as S, createOpenMeldHumanProfile as Sa, classifyDaemonServiceRunStartability as Si, computeRetryDelayMs as Sn, listProjectBindings as So, getCommandHintsFromContract as Sr, runDaemonStop as St, buildFormalSignalReadPayload as T, primeOpenMeldProfilesSessionCache as Ta, ensureDaemonRuntimePaths as Ti, submitRuntimeAgentControllerReports as Tn, removeProjectConnection as To, registerSkillsTargetSelectionOptions as Tr, buildProfileWorkspacePresentation as Tt, runAgentsConfig as U, requestLocalAgentActivitySync as Ua, startCurrentCommandCheckScope as Ui, isReturnKeypress as Un, cliJsonSkillsShowEnvelopeSchema as Uo, resolveDaemonServiceFreshnessWarning as Ur, resolveDaemonServiceParticipationStatus as Ut, resolveAgentProfileSetup as V, validateLocalProjectConnectionPath as Va, isCurrentCommandCheckScopeActive as Vi, promptSearchMultiselect as Vn, cliJsonSkillsListEnvelopeSchema as Vo, formatDaemonFailureContextText as Vr, resolveLocalComponentsStatus as Vt, runAgentsCustomAdd as W, isAgentActivityRouteRegistered as Wa, inspectDaemonServiceInventory as Wi, runInteractivePrompt as Wn, getOrganizationJoinLinkResponseSchema as Wo, resolveCurrentReplyReadinessSnapshot as Wr, runDaemonServiceParticipationGate as Wt, runAgentsEnable as X, installAgentActivityIntegrations as Xa, readDaemonServiceJobCrashExitCode as Xi, writeDispatchSpaceActionRecord as Xn, resolveOpenClawLocalDiagnosticsValue as Xr, runSkillsUninstall as Xt, runAgentsDisable as Y, defaultManagedIntegrationPaths as Ya, isDaemonServiceJobNeverSpawned as Yi, readDispatchSpaceActionContextFromEnv as Yn, resolveGatewayChainReadiness as Yr, runSkillsInstall as Yt, runAgentsList as Z, readAgentActivityIntegrationStatus as Za, resolveDaemonServiceManager as Zi, formatElapsedTime as Zn, syncProfileWorkspaceState as Zr, runSkillsUpdate as Zt, runSpaceWriteWithPasswordRetry as _, resolveViewProfileKey as _a, buildDaemonRouteObservationPresentation as _i, promptTextEntry as _n, enqueueAgentActivityHookEvent as _o, createSpaceUpdatesGuideError as _r, runDaemonInterrupt as _t, runSpaceDelete as a, readVersionState as aa, setOpenMeldManagedProfileWorkspace as ai, ensureCommandAuthenticationOrCancel as an, formatProfileAwareOpenMeldCliCommands as ao, createProfileMenuGuideError as ar, printOpenMeldBanner as at, buildIdentityOnlyMembersSnapshotForReadProjection as b, resolveOpenMeldProfileOrNull as ba, buildDaemonServiceTargetSpec as bi, resolveServiceParticipationReadiness as bn, removeProjectOutbox as bo, createUpgradeConfirmationGuideError as br, runDaemonSnapshot as bt, runSpaceLeave as c, toStartBackgroundHelperExecutionCompatibility as ca, syncDeviceRuntimeStateProjection as ci, runAuthLogout as cn, syncLocalAgentActivity as co, createSpaceAliasTargetGuideError as cr, renderOpenMeldLogo as ct, runSpaceRemoveMembers as d, renderHumanErrorCard as da, listAgentTargetStates as di, buildAuthStatusRows as dn, readAgentActivityContextForPath as do, createSpaceMenuGuideError as dr, resolveSpaceSendText as dt, buildNextVersionState as ea, ensureOpenMeldManagedProfileWorkspace as ei, readRuntimeReportingHealthState as en, formatInlineOpenMeldCliCommands as eo, formatDaemonServiceMissingRecommendation as er, runAgentsShow as et, runSpaceSend as f, renderHumanTextErrorCard as fa, reconcileNewRunnableBuiltinAgentsForSetup as fi, buildAuthStatusSnapshot as fn, removeAgentActivityContextCache as fo, createSpacePublicationSetGuideError as fr, runDaemon as ft, runSpaceReadWithPasswordRetry as g, resolveRuntimeContext as ga, PREPARE_SESSION_RECONNECT_GRACE_MS as gi, resolveCreateProfileName as gn, readCodexSessionTitles as go, createSpaceTargetGuideError as gr, runDaemonInstall as gt, uploadPreparedSpaceFiles as h, parseCliViewMode as ha, resolveLocalRegistryAgentIdFromAgentControllerRef as hi, resolveCreateProfileKind as hn, normalizeSharedSessionTitle as ho, createSpaceSubcommandTargetGuideError as hr, runDaemonCancel as ht, runSpaceCreate as i, fetchLatestPackageInfo as ia, setCustomProfileWorkspace as ii, buildCommandAuthenticationPromptMessage as in, formatOpenMeldCliTextBlock as io, createProfileCreateGuideError as ir, colorizeDisplayProfileLabel as it, assertValidSpaceIdTarget as j, setSelectedOpenMeldProfileId as ja, getAgentControllerPermissionModeFieldLabel as ji, upsertSpaceConfig as jn, readControllerTaskLifecycleOutboxHealth as jo, DualViewGuideError as jr, runDaemonStartupPreflight as jt, isSpaceCommandOutputHandledError as k, clearSelectedOpenMeldProfileId as ka, createAgentExecutionStatusDisplayRows as ki, resolveLocalAgentControllerReportDecision as kn, canonicalizeLocalProjectPath as ko, registerBuiltinAgentSelectionOptions as kr, createDelayedSpinner as kt, runSpaceList as l, resolveCurrentDaemonExpectedVersion as la, createPrimaryBindingReadSession as li, runAuthMenu as ln, readDaemonServiceContract as lo, createSpaceContractSetGuideError as lr, renderOpenMeldTagline as lt, prepareRequestedSpaceSendFiles as m, formatMessage as ma, notifyDaemonRouteCatalogChanged as mi, createProfileByKind as mn, resolveObservedAgentActivityBinding as mo, createSpaceResultGuideError as mr, runDaemonBackgroundStartForDecision as mt, promptAndConfirmSpacePassword as n, ensureVersionStateReady as na, readProfileWorkspaceConfig as ni, connectWebSocket as nn, formatOpenMeldCliCommands as no, createDoctorFailedGuideError as nr, postLocalParticipationMutationReconcile as nt, runSpaceHistory as o, writeVersionState as oa, validateCustomProfileWorkspacePath as oi, evaluateCommandAuthentication as on, resolveSetupFollowUpCliEntryCommand as oo, createResetConfirmationGuideError as or, renderOpenMeldBrandBlockLines as ot, runSpaceWatch as p, createPresenter as pa, listBuiltinAgentsRegistryEntries as pi, formatActiveOrganizationLabel as pn, buildAgentActivityEvent as po, createSpaceRemoveMembersGuideError as pr, runDaemonAutostart as pt, runAgentsCustomUpdate as q, unregisterAgentActivityRoute as qa, readCurrentObservedDaemonRuntimeStatus as qi, assertDispatchOwnedRuntimePublicWriteAllowed as qn, compareAgentControllerRefsForDisplay as qo, formatHumanReplyReadinessReason as qr, runSkillsCheck as qt, runSpaceAddMembers as r, fetchLatestCliBinaryRelease as ra, resolveConfiguredProfileWorkspacePath as ri, assessServerRequiredVersion as rn, formatOpenMeldCliLine as ro, createProfileActionGuideError as rr, colorizeAgentLabel as rt, runSpaceJoin as s, resolveDaemonRuntimeContractCompatibility as sa, describeProfileWorkspacePathValidationFailure as si, runAuthLogin as sn, resolveUserFacingCliEntryCommand as so, createSpaceAddMembersGuideError as sr, renderOpenMeldHeader as st, buildCreateSpacePasswordPromptConfig as t, compareSemver as ta, normalizeCustomProfileWorkspacePath as ti, readRecentDaemonDispatchJournalEvents as tn, formatOpenMeldCliCommand as to, canUseInteractivePrompts as tr, formatTransportModeDisplay as tt, runSpacePassword as u, buildHumanErrorCopy as ua, resolveAgentProfilePrimaryAgentControllerReport as ui, runAuthStatus as un, upsertDaemonServiceContract as uo, createSpaceLeaveGuideError as ur, resolveGatewayWebOrigin as ut, buildHumanReadSignalsTranscriptItems as v, isSelectedOpenMeldProfileRequiredError as va, buildOnboardingPlan as vi, ensureAgentProfileRuntimeBinding as vn, removeProjectInbox as vo, createStartAgentIdentityGuideError as vr, runDaemonReinstall as vt, buildFormalDispatchResultReadPayload as w, listOpenMeldProfiles as wa, readRecentDaemonLifecycleEvents as wi, submitRuntimeAgentControllerReport as wn, migrateProjectBindingStore as wo, SPACE_ADD_MEMBERS_PROGRESS_HEARTBEAT_MS as wr, runDaemonUninstall as wt, loadSpaceIdentityDirectoryOrNull as x, createOpenMeldAgentProfile as xa, resolveDaemonServiceAlignmentDecision as xi, assessActionParticipationCandidate as xn, bindProject as xo, getCommandEntryContract as xr, runDaemonStatusFlow as xt, emitHumanReadSignalsTextProjection as y, requireOpenMeldProfile as ya, getSetupFlowCopy as yi, formatServiceParticipationReadinessLabel as yn, readAgentActivityOutboxHealth as yo, createStartAuthenticationGuideError as yr, runDaemonRunAfterEntryChecks as yt, resolveHumanControllerDisplayName as z, setProfileDefaultView as za, finishCurrentCommandCheckScope as zi, createSpaceMemberIdentityIndex as zn, cliBinaryDeltaPatchSchema as zo, canonicalizeAllowedActions as zr, toStructuredGatewayFailure as zt };
|
|
106482
106629
|
|
|
106483
|
-
//# sourceMappingURL=command-
|
|
106630
|
+
//# sourceMappingURL=command-DgODFDCr.js.map
|