openmeld 0.3.259 → 0.3.262
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-CQeOTn8Y.js → add-me-membership-wBqBUZN7.js} +2 -2
- package/dist/{add-me-membership-CQeOTn8Y.js.map → add-me-membership-wBqBUZN7.js.map} +1 -1
- package/dist/{agents-CLlVC_zK.js → agents-DzQ6NTFH.js} +13 -13
- package/dist/{agents-CLlVC_zK.js.map → agents-DzQ6NTFH.js.map} +1 -1
- package/dist/{api-client-foundation-Dye8bbn0.js → api-client-foundation-C3A2-JkQ.js} +1 -1
- package/dist/{api-client-foundation-BDbeHD1i.js → api-client-foundation-Dqxsa_3V.js} +4 -4
- package/dist/{api-client-foundation-BDbeHD1i.js.map → api-client-foundation-Dqxsa_3V.js.map} +1 -1
- package/dist/auth-session-BbeGpa9b.js +4 -0
- package/dist/{auth-session-mNZMZihh.js → auth-session-VWQoz03f.js} +5 -5
- package/dist/{auth-session-mNZMZihh.js.map → auth-session-VWQoz03f.js.map} +1 -1
- package/dist/{auth-url-D5LMD4E8.js → auth-url-BVvdeI3F.js} +2 -2
- package/dist/{auth-url-D5LMD4E8.js.map → auth-url-BVvdeI3F.js.map} +1 -1
- package/dist/{base-url-BMrQwJW4.js → base-url-C0AOV6je.js} +3 -3
- package/dist/{base-url-BMrQwJW4.js.map → base-url-C0AOV6je.js.map} +1 -1
- package/dist/{base-url-uwbKIZtP.js → base-url-uaTFrave.js} +1 -1
- package/dist/{channel-48XSbUsz.js → channel-5TzyWtoj.js} +2 -2
- package/dist/{channel-48XSbUsz.js.map → channel-5TzyWtoj.js.map} +1 -1
- package/dist/{cloud-computer-Cymmmv7K.js → cloud-computer-DujgiSkS.js} +6 -6
- package/dist/{cloud-computer-Cymmmv7K.js.map → cloud-computer-DujgiSkS.js.map} +1 -1
- package/dist/{command-BmbIcCis.js → command-ZxD_qNik.js} +23 -19
- package/dist/{command-BmbIcCis.js.map → command-ZxD_qNik.js.map} +1 -1
- package/dist/{computer-connection-review-zgdekYjE.js → computer-connection-review-BoQqWowI.js} +6 -6
- package/dist/{computer-connection-review-zgdekYjE.js.map → computer-connection-review-BoQqWowI.js.map} +1 -1
- package/dist/{computer-disconnect-Bv4hrAWw.js → computer-disconnect-DSDiFVq_.js} +9 -9
- package/dist/{computer-disconnect-Bv4hrAWw.js.map → computer-disconnect-DSDiFVq_.js.map} +1 -1
- package/dist/{computer-setup-continuation-3oNkl1o1.js → computer-setup-continuation-D1rKfaKP.js} +3 -3
- package/dist/{computer-setup-continuation-3oNkl1o1.js.map → computer-setup-continuation-D1rKfaKP.js.map} +1 -1
- package/dist/{context-BT5P1qqr.js → context-nHpubzcZ.js} +7 -7
- package/dist/{context-BT5P1qqr.js.map → context-nHpubzcZ.js.map} +1 -1
- package/dist/{daemon-device-id-DrGRbKdb.js → daemon-device-id-CefXWPiF.js} +4 -4
- package/dist/{daemon-device-id-DrGRbKdb.js.map → daemon-device-id-CefXWPiF.js.map} +1 -1
- package/dist/{daemon-lifecycle-journal-oMoQyKEB.js → daemon-lifecycle-journal-DbRJ216n.js} +7 -6
- package/dist/{daemon-lifecycle-journal-oMoQyKEB.js.map → daemon-lifecycle-journal-DbRJ216n.js.map} +1 -1
- package/dist/{daemon-runtime-lease-wo_QM5jn.js → daemon-runtime-lease-7sd11Cv3.js} +1 -1
- package/dist/{daemon-runtime-lease-CB0ZCPMd.js → daemon-runtime-lease-y8RoGvTS.js} +3 -3
- package/dist/{daemon-runtime-lease-CB0ZCPMd.js.map → daemon-runtime-lease-y8RoGvTS.js.map} +1 -1
- package/dist/{daemon-service-contract-Dkgengx4.js → daemon-service-contract-Cik2oi9W.js} +3 -3
- package/dist/{daemon-service-contract-Dkgengx4.js.map → daemon-service-contract-Cik2oi9W.js.map} +1 -1
- package/dist/{daemon-service-manager-BjBYyE6i.js → daemon-service-manager-BnMEtAYp.js} +5 -5
- package/dist/{daemon-service-manager-BjBYyE6i.js.map → daemon-service-manager-BnMEtAYp.js.map} +1 -1
- package/dist/{daemon-service-manager-CblkceR7.js → daemon-service-manager-DWM3I_pP.js} +1 -1
- package/dist/{daemon-service-runtime-BSFTYU0n.js → daemon-service-runtime-BhIfwyN9.js} +14 -14
- package/dist/{daemon-service-runtime-BSFTYU0n.js.map → daemon-service-runtime-BhIfwyN9.js.map} +1 -1
- package/dist/{daemon-service-update-coordinator-BUAkAxqT.js → daemon-service-update-coordinator-DUsnRsrg.js} +22 -20
- package/dist/daemon-service-update-coordinator-DUsnRsrg.js.map +1 -0
- package/dist/{daemon-state-B8L0_xPT.js → daemon-state-DjfcQFlF.js} +3 -3
- package/dist/{daemon-state-B8L0_xPT.js.map → daemon-state-DjfcQFlF.js.map} +1 -1
- package/dist/{dispatch-owned-runtime-D5THLVZR.js → dispatch-owned-runtime-Bcz_DYAR.js} +10 -10
- package/dist/dispatch-owned-runtime-Bcz_DYAR.js.map +1 -0
- package/dist/{dist-BJy9X73H.js → dist-BnSaxfXN.js} +39 -2
- package/dist/dist-BnSaxfXN.js.map +1 -0
- package/dist/dist-CGGiwcMv.js +4 -0
- package/dist/{dist-Dx5paVZY.js → dist-DRUbg0Z2.js} +245 -56
- package/dist/dist-DRUbg0Z2.js.map +1 -0
- package/dist/{dist-BFz8AKxR.js → dist-DaKpDnJa.js} +1 -1
- package/dist/{dual-view-guide-catalog-D4rlZXO_.js → dual-view-guide-catalog-BOopzFeg.js} +3 -3
- package/dist/{dual-view-guide-catalog-D4rlZXO_.js.map → dual-view-guide-catalog-BOopzFeg.js.map} +1 -1
- package/dist/{elapsed-time-pHCf33Jh.js → elapsed-time-Dx4ZdxI7.js} +4 -4
- package/dist/{elapsed-time-pHCf33Jh.js.map → elapsed-time-Dx4ZdxI7.js.map} +1 -1
- package/dist/{entry-V6Tf_wMP.js → entry-B8GRBYAI.js} +12 -12
- package/dist/{entry-V6Tf_wMP.js.map → entry-B8GRBYAI.js.map} +1 -1
- package/dist/{installation-inventory-Cr8q27L_.js → installation-inventory-Ds2Q1XoG.js} +4 -4
- package/dist/{installation-inventory-Cr8q27L_.js.map → installation-inventory-Ds2Q1XoG.js.map} +1 -1
- package/dist/{installer-dx-JuhZZ.js → installer-CFubHwmq.js} +2 -2
- package/dist/{installer-dx-JuhZZ.js.map → installer-CFubHwmq.js.map} +1 -1
- package/dist/{lock-CDdQw0gQ.js → lock-tTXKrDmv.js} +3 -3
- package/dist/{lock-CDdQw0gQ.js.map → lock-tTXKrDmv.js.map} +1 -1
- package/dist/{meta-api-CkKS9A5_.js → meta-api-uKt0ERL5.js} +7 -7
- package/dist/{meta-api-CkKS9A5_.js.map → meta-api-uKt0ERL5.js.map} +1 -1
- package/dist/{openmeld-DVXOSt5S.js → openmeld-BORFxyod.js} +48 -42
- package/dist/{openmeld-DVXOSt5S.js.map → openmeld-BORFxyod.js.map} +1 -1
- package/dist/{openmeld-dev-environment-C82HhyXf.js → openmeld-dev-environment-IxwblJHw.js} +3 -3
- package/dist/{openmeld-dev-environment-C82HhyXf.js.map → openmeld-dev-environment-IxwblJHw.js.map} +1 -1
- package/dist/openmeld-dev.js +1 -1
- package/dist/{openmeld-environment-target-BftVniKn.js → openmeld-environment-target-BnzzM5fh.js} +3 -3
- package/dist/{openmeld-environment-target-BftVniKn.js.map → openmeld-environment-target-BnzzM5fh.js.map} +1 -1
- package/dist/{openmeld-maintenance-worker-eQqcq1LE.js → openmeld-maintenance-worker-CCvqxpZv.js} +14 -14
- package/dist/{openmeld-maintenance-worker-eQqcq1LE.js.map → openmeld-maintenance-worker-CCvqxpZv.js.map} +1 -1
- package/dist/{openmeld-tools-update-join-BKoMvawo.js → openmeld-tools-update-join-CCogwfR2.js} +4 -4
- package/dist/{openmeld-tools-update-join-BKoMvawo.js.map → openmeld-tools-update-join-CCogwfR2.js.map} +1 -1
- package/dist/{openmeld-tools-update-process-frame-Cl_LpsK-.js → openmeld-tools-update-process-frame-BARWpgIm.js} +2 -2
- package/dist/{openmeld-tools-update-process-frame-Cl_LpsK-.js.map → openmeld-tools-update-process-frame-BARWpgIm.js.map} +1 -1
- package/dist/{openmeld-tools-update-process-frame-Ct-7vlfE.js → openmeld-tools-update-process-frame-C5p9EEV0.js} +1 -1
- package/dist/openmeld.js +7 -7
- package/dist/{prepare-provider-runtime-BYKiQArk.js → prepare-provider-runtime-B0gBhnir.js} +618 -22
- package/dist/prepare-provider-runtime-B0gBhnir.js.map +1 -0
- package/dist/{prepare-session-executor-_0fWWVwP.js → prepare-session-executor-CgZTF3OV.js} +27 -27
- package/dist/{prepare-session-executor-_0fWWVwP.js.map → prepare-session-executor-CgZTF3OV.js.map} +1 -1
- package/dist/{process-channel-BYaPF16N.js → process-channel-ehx69w9I.js} +2 -2
- package/dist/{process-channel-BYaPF16N.js.map → process-channel-ehx69w9I.js.map} +1 -1
- package/dist/{process-identity-DtRa8niy.js → process-identity-BAAdyYwE.js} +2 -2
- package/dist/{process-identity-DtRa8niy.js.map → process-identity-BAAdyYwE.js.map} +1 -1
- package/dist/{runtime-CMSCzSI2.js → runtime-CJOlAkvc.js} +336 -23
- package/dist/runtime-CJOlAkvc.js.map +1 -0
- package/dist/{runtime-agent-controller-reporting-submission-NTqBffbr.js → runtime-agent-controller-reporting-submission-Gf49imkB.js} +37 -10
- package/dist/runtime-agent-controller-reporting-submission-Gf49imkB.js.map +1 -0
- package/dist/{service-Ciifmu6w.js → service-Dm_v88Dc.js} +130 -75
- package/dist/service-Dm_v88Dc.js.map +1 -0
- package/dist/{service-account-authorization-CYcUJnZy.js → service-account-authorization-CrbUG0-l.js} +5 -5
- package/dist/{service-account-authorization-CYcUJnZy.js.map → service-account-authorization-CrbUG0-l.js.map} +1 -1
- package/dist/{service-account-control-D6VGaquv.js → service-account-control-BbcqY1fg.js} +15 -15
- package/dist/{service-account-control-D6VGaquv.js.map → service-account-control-BbcqY1fg.js.map} +1 -1
- package/dist/{service-control-capabilities-h014PLa0.js → service-control-capabilities-B5p5Ut1j.js} +1 -1
- package/dist/{service-control-capabilities-BFS1cHMi.js → service-control-capabilities-B5x3VYZQ.js} +6 -6
- package/dist/{service-control-capabilities-BFS1cHMi.js.map → service-control-capabilities-B5x3VYZQ.js.map} +1 -1
- package/dist/{service-control-carrier-capability-nAOgdIbf.js → service-control-carrier-capability-QQBqqI65.js} +3 -3
- package/dist/{service-control-carrier-capability-nAOgdIbf.js.map → service-control-carrier-capability-QQBqqI65.js.map} +1 -1
- package/dist/{state-Defk8u-_.js → state-CIM8ibMZ.js} +3 -3
- package/dist/{state-Defk8u-_.js.map → state-CIM8ibMZ.js.map} +1 -1
- package/dist/{updates-api-D2Hox-6r.js → updates-api-Dol3lksp.js} +14 -14
- package/dist/{updates-api-D2Hox-6r.js.map → updates-api-Dol3lksp.js.map} +1 -1
- package/dist/{upgrade-BYlFNl6H.js → upgrade-BVBR7r1Z.js} +9 -9
- package/dist/{upgrade-BYlFNl6H.js.map → upgrade-BVBR7r1Z.js.map} +1 -1
- package/dist/upgrade-ChqQ_KDy.js +4 -0
- package/dist/windows/openmeld-windows-process.exe +0 -0
- package/dist/{windows-managed-install-BDtTogaf.js → windows-managed-install-BDPy9F0T.js} +2 -2
- package/dist/{windows-managed-install-BDtTogaf.js.map → windows-managed-install-BDPy9F0T.js.map} +1 -1
- package/dist/{windows-preview-channel-TEVn7puE.js → windows-preview-channel-Drg1mvkM.js} +3 -3
- package/dist/{windows-preview-channel-TEVn7puE.js.map → windows-preview-channel-Drg1mvkM.js.map} +1 -1
- package/dist/{windows-task-command-uUPXFssY.js → windows-task-command-2-jau1ni.js} +2 -2
- package/dist/{windows-task-command-uUPXFssY.js.map → windows-task-command-2-jau1ni.js.map} +1 -1
- package/dist/{windows-task-entry-1fvdlQ-1.js → windows-task-entry-C4eBoHXQ.js} +3 -3
- package/dist/{windows-task-entry-1fvdlQ-1.js.map → windows-task-entry-C4eBoHXQ.js.map} +1 -1
- package/dist/{windows-user-task-CpyMMEiK.js → windows-user-task-BYF03jMQ.js} +1 -1
- package/dist/{windows-user-task-Dfg4k6bI.js → windows-user-task-DzDWScE1.js} +6 -6
- package/dist/{windows-user-task-Dfg4k6bI.js.map → windows-user-task-DzDWScE1.js.map} +1 -1
- package/package.json +11 -10
- package/dist/auth-session-COkQp4Fr.js +0 -4
- package/dist/daemon-service-update-coordinator-BUAkAxqT.js.map +0 -1
- package/dist/dispatch-owned-runtime-D5THLVZR.js.map +0 -1
- package/dist/dist-BJy9X73H.js.map +0 -1
- package/dist/dist-Cbw4UtHs.js +0 -4
- package/dist/dist-Dx5paVZY.js.map +0 -1
- package/dist/prepare-provider-runtime-BYKiQArk.js.map +0 -1
- package/dist/runtime-CMSCzSI2.js.map +0 -1
- package/dist/runtime-agent-controller-reporting-submission-NTqBffbr.js.map +0 -1
- package/dist/service-Ciifmu6w.js.map +0 -1
- package/dist/upgrade-FcSJsBzm.js +0 -4
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { C as updateConfiguredDeviceRuntimeState, T as updateConfiguredSkillsConfig, a as resolveBaseUrl, d as createDefaultRuntimeAgentControllerSettings, g as getConfiguredSkillsConfig, p as getConfiguredDeviceRuntimeState, v as getRuntimeConfigReadHealth, y as resolveRuntimeSkillsCustomTargetId } from "./base-url-
|
|
3
|
+
import { C as updateConfiguredDeviceRuntimeState, T as updateConfiguredSkillsConfig, a as resolveBaseUrl, d as createDefaultRuntimeAgentControllerSettings, g as getConfiguredSkillsConfig, p as getConfiguredDeviceRuntimeState, v as getRuntimeConfigReadHealth, y as resolveRuntimeSkillsCustomTargetId } from "./base-url-C0AOV6je.js";
|
|
4
4
|
import { F as resolveOpenMeldRootDir, P as resolveOpenMeldEnvPreset, a as accountProfileWorkspacePath, b as normalizeOpenMeldProfileId, c as deviceOpenClawProfileBootstrapPath, h as isPublishedOpenMeldHome, l as deviceOpenClawProfileDir, n as accountProfileLocalMetaPath, u as deviceOpenClawProfileWorkspaceDir } from "./paths-De9xdA2h.js";
|
|
5
|
-
import { $
|
|
6
|
-
import { a as isOpenMeldOrphanedLockError, d as runWithHeldLock, i as isOpenMeldLockError, t as acquireLock } from "./lock-
|
|
5
|
+
import { $P as agentControllerCollaborationModeSchema, $a as daemonRouteCatalogCacheSchema, AI as buildAgentControllerRoutingKey, CM as daemonServiceLaneSchema, DE as resolveBuiltinAgentControllerConversationKind, DI as HOSTED_CENTER_AGENT_CONTROLLER_REF, DS as aiUsageObservationSchema, Dv as grokBotMessageReceiptSchema, Ev as grokBotEntriesSchema, FI as parseAgentControllerRef$1, JR as profileWorkspaceModeSchema, MI as canonicalizeBuiltinAgentControllerRef, Nb as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, OI as HOSTED_CENTER_AGENT_CONTROLLER_REF_ID, Ov as grokBotStoredCredentialSchema, Pa as windowsNativeProcessRequestSchema, QP as agentControllerPermissionModeSchema, Sv as agentExecutionSteerRequestSchema, TE as buildAgentControllerConversationRef, TO as agentInteractionResolutionSchema, Tv as grokBotConversationIdSchema, VR as normalizeOptionalWorkingDirectory, YR as profileWorkspaceOriginSchema, YT as providerDispatchRuntimeContextSchema, Za as DAEMON_ROUTE_CATALOG_CACHE_SCHEMA_NAME, aT as openMeldDaemonControlPlaneResponseSchema, dI as resolveCommandAgentWorkActivity, fS as openMeldDaemonTaskResultOpenClawGatewayVisibilityStatusSchema, gD as normalizeMessageEnvelope, iT as openMeldDaemonControlPlaneRequestSchema, jI as canonicalizeAgentControllerRef, jg as modelCatalogSchema, kI as HOSTED_REMOTE_AGENT_CONTROLLER_REF, nS as OPENMELD_ORIGINAL_ERROR_MAX_LENGTH, rE as conversationExecutionStateSchema, rS as isOriginalErrorSafeForMessageDetails, sS as openMeldDaemonProviderAccessEvidenceSchema, uD as formatCanonicalMentionLiteral, uS as openMeldDaemonTaskResultEnvelopeWriteSchema, wI as compareAgentControllerRefsForDisplay, wv as grokBotAccountSchema, xE as runtimeTransportModeSchema, zR as MAX_PROFILE_WORKING_DIRECTORY_LENGTH } from "./dist-DRUbg0Z2.js";
|
|
6
|
+
import { a as isOpenMeldOrphanedLockError, d as runWithHeldLock, i as isOpenMeldLockError, t as acquireLock } from "./lock-tTXKrDmv.js";
|
|
7
7
|
import { n as normalizeCommandEnvironment } from "./process-environment-BWSFeUu6.js";
|
|
8
|
-
import { c as readWindowsProcessStartFileTime, d as WINDOWS_NATIVE_PROCESS_REQUEST_ENV, f as resolveWindowsNativeProcessHelper, l as resolveWindowsPowerShellPath, o as powerShellEncodedArguments, r as isProcessIdentityAlive, t as CURRENT_PROCESS_START_IDENTITY } from "./process-identity-
|
|
9
|
-
import { Vt as createAgentProfileBindingApi, an as createLocalRuntimeExpectedRoutesApi, t as OpenMeldApiClientHttpError } from "./dist-
|
|
10
|
-
import { F as resolveCurrentOpenMeldAccountContext, _ as touchDaemonCatalogSyncSignal, d as listOpenMeldProfiles } from "./context-
|
|
11
|
-
import { Y as OPENCLAW_CLI_TIMEOUT_MS$1, d as getAuthSessionState } from "./auth-session-
|
|
8
|
+
import { c as readWindowsProcessStartFileTime, d as WINDOWS_NATIVE_PROCESS_REQUEST_ENV, f as resolveWindowsNativeProcessHelper, l as resolveWindowsPowerShellPath, o as powerShellEncodedArguments, r as isProcessIdentityAlive, t as CURRENT_PROCESS_START_IDENTITY } from "./process-identity-BAAdyYwE.js";
|
|
9
|
+
import { Vt as createAgentProfileBindingApi, an as createLocalRuntimeExpectedRoutesApi, t as OpenMeldApiClientHttpError } from "./dist-BnSaxfXN.js";
|
|
10
|
+
import { F as resolveCurrentOpenMeldAccountContext, _ as touchDaemonCatalogSyncSignal, d as listOpenMeldProfiles } from "./context-nHpubzcZ.js";
|
|
11
|
+
import { Y as OPENCLAW_CLI_TIMEOUT_MS$1, d as getAuthSessionState } from "./auth-session-VWQoz03f.js";
|
|
12
12
|
import { n as writeDaemonLocalStateFile, t as readDaemonLocalStateFile } from "./daemon-local-state-file-jOXuXrky.js";
|
|
13
|
-
import { m as daemonRuntimeDataPath } from "./daemon-state-
|
|
14
|
-
import { d as buildOpenMeldRequestContextFromProfile, t as createCliApiClientFoundation } from "./api-client-foundation-
|
|
15
|
-
import { i as readDaemonServiceContract } from "./daemon-service-contract-
|
|
16
|
-
import { C as requestLocalSyncRouteCatalog } from "./daemon-lifecycle-journal-
|
|
13
|
+
import { m as daemonRuntimeDataPath } from "./daemon-state-DjfcQFlF.js";
|
|
14
|
+
import { d as buildOpenMeldRequestContextFromProfile, t as createCliApiClientFoundation } from "./api-client-foundation-Dqxsa_3V.js";
|
|
15
|
+
import { i as readDaemonServiceContract } from "./daemon-service-contract-Cik2oi9W.js";
|
|
16
|
+
import { C as requestLocalSyncRouteCatalog } from "./daemon-lifecycle-journal-DbRJ216n.js";
|
|
17
17
|
import { i as resolveWindowsCommandPath, n as quoteWindowsProcessArgument, r as resolvePlatformCommand, t as execPlatformFile } from "./process-launch-B0pHlkV_.js";
|
|
18
|
-
import { _ as toErrorMessage$20, d as normalizeText$11, g as parseTransportMode$1, h as parseStreamingMode$1, m as parseRuntimeTransportMode, p as parseContextIdMappingSpec, s as emitRunLine, u as normalizeOptionalText$49 } from "./daemon-device-id-
|
|
18
|
+
import { _ as toErrorMessage$20, d as normalizeText$11, g as parseTransportMode$1, h as parseStreamingMode$1, m as parseRuntimeTransportMode, p as parseContextIdMappingSpec, s as emitRunLine, u as normalizeOptionalText$49 } from "./daemon-device-id-CefXWPiF.js";
|
|
19
19
|
import { createRequire } from "node:module";
|
|
20
20
|
import { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
21
21
|
import { homedir, loadavg, tmpdir } from "node:os";
|
|
22
22
|
import { basename, delimiter, dirname, extname, isAbsolute, join, normalize, parse, relative, resolve, sep, win32 } from "node:path";
|
|
23
|
-
import { access, chmod, copyFile, cp, mkdir, mkdtemp, open, readFile, readdir, realpath, rename, rm, stat, symlink, writeFile } from "node:fs/promises";
|
|
23
|
+
import { access, chmod, copyFile, cp, lstat, mkdir, mkdtemp, open, readFile, readdir, realpath, rename, rm, stat, symlink, writeFile } from "node:fs/promises";
|
|
24
24
|
import { toJSONSchema } from "zod/v4";
|
|
25
25
|
import { accessSync, constants, existsSync, readFileSync, realpathSync, statSync, watch } from "node:fs";
|
|
26
26
|
import { execFile, execFileSync, spawn } from "node:child_process";
|
|
@@ -1520,6 +1520,7 @@ const AGENT_CONTROLLER_USAGE_LIMIT_SUPPORT_MATRIX = {
|
|
|
1520
1520
|
codex: "native",
|
|
1521
1521
|
cursor: "observational",
|
|
1522
1522
|
"grok-build": "native",
|
|
1523
|
+
"grok-bot": "unsupported",
|
|
1523
1524
|
opencode: "provider_scoped",
|
|
1524
1525
|
openclaw: "not_evaluated"
|
|
1525
1526
|
};
|
|
@@ -3132,8 +3133,13 @@ var registry_default$1 = {
|
|
|
3132
3133
|
"adapters": [{
|
|
3133
3134
|
"adapterId": "grok-build",
|
|
3134
3135
|
"controllerRefMatcher": {
|
|
3135
|
-
"kind": "
|
|
3136
|
-
"values": [
|
|
3136
|
+
"kind": "equals",
|
|
3137
|
+
"values": [
|
|
3138
|
+
"grok",
|
|
3139
|
+
"builtin:grok",
|
|
3140
|
+
"grok-build",
|
|
3141
|
+
"builtin:grok-build"
|
|
3142
|
+
]
|
|
3137
3143
|
},
|
|
3138
3144
|
"transportModes": ["acp"],
|
|
3139
3145
|
"capabilityDeclaration": {
|
|
@@ -3480,6 +3486,43 @@ var registry_default$1 = {
|
|
|
3480
3486
|
"adapters": []
|
|
3481
3487
|
}
|
|
3482
3488
|
},
|
|
3489
|
+
{
|
|
3490
|
+
"id": "grok-bot",
|
|
3491
|
+
"displayName": "Grok Bot",
|
|
3492
|
+
"category": "builtin",
|
|
3493
|
+
"skillsDir": ".grok-bot/skills",
|
|
3494
|
+
"globalSkillsDir": "${HOME}/.config/agent-serve",
|
|
3495
|
+
"detection": {
|
|
3496
|
+
"mode": "any",
|
|
3497
|
+
"checks": [{
|
|
3498
|
+
"kind": "commandExists",
|
|
3499
|
+
"value": "bdk"
|
|
3500
|
+
}]
|
|
3501
|
+
},
|
|
3502
|
+
"service": { "skillsInstallable": false },
|
|
3503
|
+
"runtime": {
|
|
3504
|
+
"supported": true,
|
|
3505
|
+
"adapters": [{
|
|
3506
|
+
"adapterId": "grok-bot",
|
|
3507
|
+
"controllerRefMatcher": {
|
|
3508
|
+
"kind": "equals",
|
|
3509
|
+
"values": ["grok-bot", "builtin:grok-bot"]
|
|
3510
|
+
},
|
|
3511
|
+
"transportModes": ["local-cli"],
|
|
3512
|
+
"capabilityDeclaration": {
|
|
3513
|
+
"streamingCapability": "final_only",
|
|
3514
|
+
"runtimeWorkingDirectoryMode": "provider_workspace",
|
|
3515
|
+
"preparationRequirement": "none",
|
|
3516
|
+
"continuationCapability": "standard",
|
|
3517
|
+
"workspaceResumeBehavior": "transparent"
|
|
3518
|
+
}
|
|
3519
|
+
}]
|
|
3520
|
+
},
|
|
3521
|
+
"lifecycle": { "status": "active" },
|
|
3522
|
+
"transportModes": ["local-cli"],
|
|
3523
|
+
"defaultTransportMode": "local-cli",
|
|
3524
|
+
"defaultStreamingMode": "final"
|
|
3525
|
+
},
|
|
3483
3526
|
{
|
|
3484
3527
|
"id": "openclaw",
|
|
3485
3528
|
"displayName": "OpenClaw",
|
|
@@ -13082,6 +13125,48 @@ function toErrorMessage$16(error) {
|
|
|
13082
13125
|
return String(error);
|
|
13083
13126
|
}
|
|
13084
13127
|
//#endregion
|
|
13128
|
+
//#region ../../runtime/adapters/claude-code/dist/config/claude-native-update.js
|
|
13129
|
+
const execute = promisify(execFile);
|
|
13130
|
+
const VERSION = /^(\d+\.\d+\.\d+(?:-[\w.-]+)?)\s+\(Claude Code\)\s*$/u;
|
|
13131
|
+
async function resolveClaudeNativeUpdateCommand(contract) {
|
|
13132
|
+
if (process.platform === "win32" || contract.kind !== "executable" || contract.argsPrefix?.length) return null;
|
|
13133
|
+
const home = process.env.HOME?.trim() || homedir();
|
|
13134
|
+
const launcher = join(home, ".local/bin/claude");
|
|
13135
|
+
if (resolve(contract.commandPath) !== resolve(launcher)) return null;
|
|
13136
|
+
try {
|
|
13137
|
+
if (!(await lstat(launcher)).isSymbolicLink()) return null;
|
|
13138
|
+
const target = await realpath(launcher);
|
|
13139
|
+
const versions = await realpath(join(home, ".local/share/claude/versions"));
|
|
13140
|
+
return dirname(target) === versions && (await lstat(target)).isFile() ? launcher : null;
|
|
13141
|
+
} catch {
|
|
13142
|
+
return null;
|
|
13143
|
+
}
|
|
13144
|
+
}
|
|
13145
|
+
async function readClaudeNativeVersion(command) {
|
|
13146
|
+
const version = (await execute(command, ["--version"], {
|
|
13147
|
+
cwd: homedir(),
|
|
13148
|
+
timeout: 1e4,
|
|
13149
|
+
maxBuffer: 64 * 1024,
|
|
13150
|
+
encoding: "utf8"
|
|
13151
|
+
})).stdout.trim().match(VERSION)?.[1];
|
|
13152
|
+
if (!version) throw new Error("Could not verify the Claude Code version.");
|
|
13153
|
+
return version;
|
|
13154
|
+
}
|
|
13155
|
+
async function updateClaudeNativeInstallation(command) {
|
|
13156
|
+
await new Promise((resolve, reject) => {
|
|
13157
|
+
const child = spawn(command, ["update"], {
|
|
13158
|
+
cwd: homedir(),
|
|
13159
|
+
stdio: "ignore",
|
|
13160
|
+
shell: false
|
|
13161
|
+
});
|
|
13162
|
+
child.once("error", reject);
|
|
13163
|
+
child.once("close", (code, signal) => {
|
|
13164
|
+
if (code === 0) resolve();
|
|
13165
|
+
else reject(/* @__PURE__ */ new Error(`Claude Code updater exited with ${signal ?? code}.`));
|
|
13166
|
+
});
|
|
13167
|
+
});
|
|
13168
|
+
}
|
|
13169
|
+
//#endregion
|
|
13085
13170
|
//#region ../../runtime/adapters/claude-code/dist/usage/claude-code-usage-probe.js
|
|
13086
13171
|
async function probeClaudeCodeUsageLimits(input) {
|
|
13087
13172
|
const controller = new AbortController();
|
|
@@ -19773,6 +19858,451 @@ const installCursorAdapter = {
|
|
|
19773
19858
|
}
|
|
19774
19859
|
};
|
|
19775
19860
|
//#endregion
|
|
19861
|
+
//#region ../../runtime/adapters/grok-bot/dist/setup.js
|
|
19862
|
+
const NODE_VERSION = "24.14.0";
|
|
19863
|
+
const BDK_VERSION = "0.2.25";
|
|
19864
|
+
function grokBotSetupPaths(root) {
|
|
19865
|
+
const directory = join(root, "connection-tools", "grok-bot");
|
|
19866
|
+
const nodeDirectory = join(directory, `node-v${NODE_VERSION}-${process.platform}-${process.arch}`);
|
|
19867
|
+
return {
|
|
19868
|
+
directory,
|
|
19869
|
+
nodeDirectory,
|
|
19870
|
+
node: join(nodeDirectory, "bin", "node"),
|
|
19871
|
+
npm: join(nodeDirectory, "lib", "node_modules", "npm", "bin", "npm-cli.js"),
|
|
19872
|
+
script: join(directory, "bdk", "node_modules", "@cursor", "bdk", "dist", "bin", "agent-serve.js"),
|
|
19873
|
+
config: join(directory, "auth"),
|
|
19874
|
+
launcher: join(directory, "launcher.mjs")
|
|
19875
|
+
};
|
|
19876
|
+
}
|
|
19877
|
+
function supportsGrokBotSetup() {
|
|
19878
|
+
return ["darwin", "linux"].includes(process.platform) && ["arm64", "x64"].includes(process.arch);
|
|
19879
|
+
}
|
|
19880
|
+
function run(command, args, options) {
|
|
19881
|
+
return new Promise((resolve, reject) => {
|
|
19882
|
+
const child = spawn(command, args, {
|
|
19883
|
+
cwd: options.cwd,
|
|
19884
|
+
env: options.env,
|
|
19885
|
+
stdio: [
|
|
19886
|
+
"ignore",
|
|
19887
|
+
"pipe",
|
|
19888
|
+
"pipe"
|
|
19889
|
+
],
|
|
19890
|
+
shell: false
|
|
19891
|
+
});
|
|
19892
|
+
let output = "";
|
|
19893
|
+
let hardKill;
|
|
19894
|
+
const timer = setTimeout(() => {
|
|
19895
|
+
child.kill("SIGTERM");
|
|
19896
|
+
hardKill = setTimeout(() => child.kill("SIGKILL"), 5e3);
|
|
19897
|
+
}, options.timeout);
|
|
19898
|
+
child.stdout.on("data", (chunk) => {
|
|
19899
|
+
output = (output + String(chunk)).slice(-16384);
|
|
19900
|
+
});
|
|
19901
|
+
child.stderr.resume();
|
|
19902
|
+
child.on("error", (error) => {
|
|
19903
|
+
clearTimeout(timer);
|
|
19904
|
+
reject(error);
|
|
19905
|
+
});
|
|
19906
|
+
child.on("close", (code) => {
|
|
19907
|
+
clearTimeout(timer);
|
|
19908
|
+
clearTimeout(hardKill);
|
|
19909
|
+
if (code === 0) resolve(output);
|
|
19910
|
+
else reject(/* @__PURE__ */ new Error("The connection tool did not finish successfully. Try again or open the setup guide."));
|
|
19911
|
+
});
|
|
19912
|
+
});
|
|
19913
|
+
}
|
|
19914
|
+
async function readManagedGrokBotCandidate(root) {
|
|
19915
|
+
const paths = grokBotSetupPaths(root);
|
|
19916
|
+
try {
|
|
19917
|
+
await access(paths.node);
|
|
19918
|
+
await access(paths.script);
|
|
19919
|
+
await access(paths.launcher);
|
|
19920
|
+
} catch {
|
|
19921
|
+
return null;
|
|
19922
|
+
}
|
|
19923
|
+
return {
|
|
19924
|
+
installId: "openmeld-managed-grok-bot",
|
|
19925
|
+
label: "OpenMeld connection tools",
|
|
19926
|
+
detail: `BDK ${BDK_VERSION} · managed by OpenMeld`,
|
|
19927
|
+
commandPath: paths.launcher,
|
|
19928
|
+
launchContract: {
|
|
19929
|
+
kind: "node_script",
|
|
19930
|
+
nodePath: paths.node,
|
|
19931
|
+
scriptPath: paths.launcher
|
|
19932
|
+
}
|
|
19933
|
+
};
|
|
19934
|
+
}
|
|
19935
|
+
async function installGrokBotTools(root) {
|
|
19936
|
+
if (!supportsGrokBotSetup()) throw new Error("Install connection tools manually on this platform.");
|
|
19937
|
+
const paths = grokBotSetupPaths(root);
|
|
19938
|
+
await mkdir(paths.directory, {
|
|
19939
|
+
recursive: true,
|
|
19940
|
+
mode: 448
|
|
19941
|
+
});
|
|
19942
|
+
const archive = `node-v${NODE_VERSION}-${process.platform}-${process.arch}.tar.gz`;
|
|
19943
|
+
try {
|
|
19944
|
+
await access(paths.node);
|
|
19945
|
+
} catch {
|
|
19946
|
+
const base = `https://nodejs.org/dist/v${NODE_VERSION}/`;
|
|
19947
|
+
const [checksumResponse, archiveResponse] = await Promise.all([fetch(`${base}SHASUMS256.txt`, { signal: AbortSignal.timeout(6e4) }), fetch(`${base}${archive}`, { signal: AbortSignal.timeout(18e4) })]);
|
|
19948
|
+
if (!(checksumResponse.ok && archiveResponse.ok)) throw new Error("Could not download the connection runtime. Check the connection and retry.");
|
|
19949
|
+
const expected = (await checksumResponse.text()).split("\n").find((line) => line.endsWith(` ${archive}`))?.split(" ")[0];
|
|
19950
|
+
const bytes = Buffer.from(await archiveResponse.arrayBuffer());
|
|
19951
|
+
if (!expected || createHash("sha256").update(bytes).digest("hex") !== expected) throw new Error("Connection runtime verification failed.");
|
|
19952
|
+
const temporary = join(paths.directory, "download");
|
|
19953
|
+
await mkdir(temporary, {
|
|
19954
|
+
recursive: true,
|
|
19955
|
+
mode: 448
|
|
19956
|
+
});
|
|
19957
|
+
await writeFile(join(temporary, archive), bytes, { mode: 384 });
|
|
19958
|
+
await run("tar", [
|
|
19959
|
+
"-xzf",
|
|
19960
|
+
join(temporary, archive),
|
|
19961
|
+
"-C",
|
|
19962
|
+
temporary
|
|
19963
|
+
], {
|
|
19964
|
+
cwd: temporary,
|
|
19965
|
+
timeout: 6e4
|
|
19966
|
+
});
|
|
19967
|
+
await rename(join(temporary, archive.replace(".tar.gz", "")), paths.nodeDirectory);
|
|
19968
|
+
await rm(temporary, {
|
|
19969
|
+
recursive: true,
|
|
19970
|
+
force: true
|
|
19971
|
+
});
|
|
19972
|
+
}
|
|
19973
|
+
const bdk = join(paths.directory, "bdk");
|
|
19974
|
+
await mkdir(bdk, {
|
|
19975
|
+
recursive: true,
|
|
19976
|
+
mode: 448
|
|
19977
|
+
});
|
|
19978
|
+
await run(paths.node, [
|
|
19979
|
+
paths.npm,
|
|
19980
|
+
"install",
|
|
19981
|
+
"--prefix",
|
|
19982
|
+
bdk,
|
|
19983
|
+
"--no-audit",
|
|
19984
|
+
"--no-fund",
|
|
19985
|
+
"--ignore-scripts",
|
|
19986
|
+
"--registry=https://registry.npmjs.org",
|
|
19987
|
+
`@cursor/bdk@${BDK_VERSION}`
|
|
19988
|
+
], {
|
|
19989
|
+
cwd: paths.directory,
|
|
19990
|
+
env: {
|
|
19991
|
+
...process.env,
|
|
19992
|
+
PATH: `${join(paths.nodeDirectory, "bin")}:${process.env.PATH ?? ""}`
|
|
19993
|
+
},
|
|
19994
|
+
timeout: 3e5
|
|
19995
|
+
});
|
|
19996
|
+
await run(paths.node, [paths.script, "--version"], {
|
|
19997
|
+
cwd: paths.directory,
|
|
19998
|
+
timeout: 15e3
|
|
19999
|
+
});
|
|
20000
|
+
await writeFile(paths.launcher, `import { fileURLToPath } from 'node:url';\nprocess.env.AGENT_SERVE_CONFIG_DIR = fileURLToPath(new URL('./auth', import.meta.url));\nfor (const key of ['CURSOR_API_KEY','CURSOR_API_KEY_FILE','CURSOR_SERVICE_ACCOUNT_KEY','CURSOR_API_BASE_URL','CURSOR_WEBSITE_URL']) delete process.env[key];\nawait import('./bdk/node_modules/@cursor/bdk/dist/bin/agent-serve.js');\n`, { mode: 384 });
|
|
20001
|
+
}
|
|
20002
|
+
function managedGrokBotEnvironment(root) {
|
|
20003
|
+
const env = {
|
|
20004
|
+
...process.env,
|
|
20005
|
+
AGENT_SERVE_CONFIG_DIR: grokBotSetupPaths(root).config
|
|
20006
|
+
};
|
|
20007
|
+
for (const key of [
|
|
20008
|
+
"CURSOR_API_KEY",
|
|
20009
|
+
"CURSOR_API_KEY_FILE",
|
|
20010
|
+
"CURSOR_SERVICE_ACCOUNT_KEY",
|
|
20011
|
+
"CURSOR_API_BASE_URL",
|
|
20012
|
+
"CURSOR_WEBSITE_URL"
|
|
20013
|
+
]) delete env[key];
|
|
20014
|
+
return env;
|
|
20015
|
+
}
|
|
20016
|
+
async function isManagedGrokBotSignedIn(root) {
|
|
20017
|
+
const paths = grokBotSetupPaths(root);
|
|
20018
|
+
try {
|
|
20019
|
+
await access(join(paths.config, "credentials.json"));
|
|
20020
|
+
const output = await run(paths.node, [
|
|
20021
|
+
paths.script,
|
|
20022
|
+
"whoami",
|
|
20023
|
+
"--json"
|
|
20024
|
+
], {
|
|
20025
|
+
cwd: paths.directory,
|
|
20026
|
+
env: managedGrokBotEnvironment(root),
|
|
20027
|
+
timeout: 15e3
|
|
20028
|
+
});
|
|
20029
|
+
return grokBotAccountSchema.safeParse(JSON.parse(output)).success;
|
|
20030
|
+
} catch {
|
|
20031
|
+
return false;
|
|
20032
|
+
}
|
|
20033
|
+
}
|
|
20034
|
+
async function loginManagedGrokBot(root) {
|
|
20035
|
+
const paths = grokBotSetupPaths(root);
|
|
20036
|
+
await mkdir(paths.config, {
|
|
20037
|
+
recursive: true,
|
|
20038
|
+
mode: 448
|
|
20039
|
+
});
|
|
20040
|
+
await run(paths.node, [
|
|
20041
|
+
paths.script,
|
|
20042
|
+
"login",
|
|
20043
|
+
"--key-name",
|
|
20044
|
+
"OpenMeld Grok Bot"
|
|
20045
|
+
], {
|
|
20046
|
+
cwd: paths.directory,
|
|
20047
|
+
env: managedGrokBotEnvironment(root),
|
|
20048
|
+
timeout: 6e5
|
|
20049
|
+
});
|
|
20050
|
+
if (!await isManagedGrokBotSignedIn(root)) throw new Error("Sign-in could not be verified. Sign in again.");
|
|
20051
|
+
}
|
|
20052
|
+
async function readManagedGrokBotCredential(launcher) {
|
|
20053
|
+
try {
|
|
20054
|
+
return grokBotStoredCredentialSchema.parse(JSON.parse(await readFile(join(dirname(launcher), "auth", "credentials.json"), "utf8"))).apiKey;
|
|
20055
|
+
} catch {
|
|
20056
|
+
throw new Error("Could not read the managed Grok Bot sign-in.");
|
|
20057
|
+
}
|
|
20058
|
+
}
|
|
20059
|
+
//#endregion
|
|
20060
|
+
//#region ../../runtime/adapters/grok-bot/dist/client.js
|
|
20061
|
+
var GrokBotError = class extends Error {
|
|
20062
|
+
errorType = "runtime";
|
|
20063
|
+
code;
|
|
20064
|
+
constructor(code, message) {
|
|
20065
|
+
super(message);
|
|
20066
|
+
this.code = code;
|
|
20067
|
+
this.name = "GrokBotError";
|
|
20068
|
+
}
|
|
20069
|
+
};
|
|
20070
|
+
async function readGrokBotCredential(env = process.env) {
|
|
20071
|
+
const explicit = env.CURSOR_API_KEY;
|
|
20072
|
+
if (explicit?.trim()) return explicit.trim();
|
|
20073
|
+
if (env.CURSOR_API_KEY_FILE) return (await readFile(env.CURSOR_API_KEY_FILE, "utf8")).trim();
|
|
20074
|
+
if (env.CURSOR_SERVICE_ACCOUNT_KEY?.trim()) return env.CURSOR_SERVICE_ACCOUNT_KEY.trim();
|
|
20075
|
+
const config = env.AGENT_SERVE_CONFIG_DIR ?? join(env.XDG_CONFIG_HOME ?? join(homedir(), ".config"), "agent-serve");
|
|
20076
|
+
try {
|
|
20077
|
+
const result = grokBotStoredCredentialSchema.safeParse(JSON.parse(await readFile(join(config, "credentials.json"), "utf8")));
|
|
20078
|
+
if (result.success) return result.data.apiKey;
|
|
20079
|
+
} catch {}
|
|
20080
|
+
throw new GrokBotError("controller.auth.unauthenticated", "Sign in with bdk login on this computer, then check the connection again.");
|
|
20081
|
+
}
|
|
20082
|
+
/** Official BDK API. Deliberately has no get-or-create-by-name operation. */
|
|
20083
|
+
var GrokBotClient = class {
|
|
20084
|
+
apiKey;
|
|
20085
|
+
fetchImpl;
|
|
20086
|
+
constructor(apiKey, fetchImpl = fetch) {
|
|
20087
|
+
this.apiKey = apiKey;
|
|
20088
|
+
this.fetchImpl = fetchImpl;
|
|
20089
|
+
}
|
|
20090
|
+
async entries(sessionId, cursor) {
|
|
20091
|
+
const result = grokBotEntriesSchema.safeParse(await this.request(sessionId, `/entries?afterUpdatedSeq=${encodeURIComponent(cursor)}`));
|
|
20092
|
+
if (!result.success) throw new GrokBotError("grok-bot.invalid_response", "Grok Bot returned an invalid conversation response.");
|
|
20093
|
+
return result.data;
|
|
20094
|
+
}
|
|
20095
|
+
async send(sessionId, messageId, text) {
|
|
20096
|
+
const receipt = grokBotMessageReceiptSchema.safeParse(await this.request(sessionId, "/messages", {
|
|
20097
|
+
messageId,
|
|
20098
|
+
text
|
|
20099
|
+
}));
|
|
20100
|
+
if (!(receipt.success && receipt.data.messageId === messageId)) throw new GrokBotError("grok-bot.delivery_unconfirmed", "Grok Bot did not confirm this message. Do not resend it automatically.");
|
|
20101
|
+
}
|
|
20102
|
+
async interrupt(sessionId) {
|
|
20103
|
+
await this.request(sessionId, "/interrupt", { reason: "Stopped from OpenMeld's shared conversation." });
|
|
20104
|
+
}
|
|
20105
|
+
async request(sessionId, suffix, body) {
|
|
20106
|
+
if (!grokBotConversationIdSchema.safeParse(sessionId).success) throw new GrokBotError("grok-bot.connection_required", "Connect an existing Grok Bot conversation before sending work.");
|
|
20107
|
+
let response;
|
|
20108
|
+
try {
|
|
20109
|
+
response = await this.fetchImpl(`https://api.cursor.com/v0/grokbot/sessions/${sessionId}${suffix}`, {
|
|
20110
|
+
method: body ? "POST" : "GET",
|
|
20111
|
+
headers: {
|
|
20112
|
+
authorization: `Bearer ${this.apiKey}`,
|
|
20113
|
+
"content-type": "application/json",
|
|
20114
|
+
"x-cursor-client-type": "agent-serve"
|
|
20115
|
+
},
|
|
20116
|
+
...body ? { body: JSON.stringify(body) } : {},
|
|
20117
|
+
redirect: "error",
|
|
20118
|
+
signal: AbortSignal.timeout(3e4)
|
|
20119
|
+
});
|
|
20120
|
+
} catch {
|
|
20121
|
+
throw new GrokBotError("grok-bot.connection_lost", "The Grok Bot connection was lost. Its work may still be running; check Grok Bot before retrying.");
|
|
20122
|
+
}
|
|
20123
|
+
if (!response.ok) throw new GrokBotError(response.status === 401 ? "controller.auth.unauthenticated" : "grok-bot.request_failed", `Grok Bot rejected the request (HTTP ${response.status}). Check the connection and account access.`);
|
|
20124
|
+
if (suffix === "/interrupt") return null;
|
|
20125
|
+
try {
|
|
20126
|
+
return await response.json();
|
|
20127
|
+
} catch {
|
|
20128
|
+
throw new GrokBotError("grok-bot.invalid_response", "Grok Bot returned an invalid response.");
|
|
20129
|
+
}
|
|
20130
|
+
}
|
|
20131
|
+
};
|
|
20132
|
+
//#endregion
|
|
20133
|
+
//#region ../../runtime/adapters/grok-bot/dist/index.js
|
|
20134
|
+
async function verifyGrokBotLaunchContract(input) {
|
|
20135
|
+
return await verifyCliLaunchContract({
|
|
20136
|
+
...input,
|
|
20137
|
+
cwd: process.cwd(),
|
|
20138
|
+
displayName: "Grok Bot BDK",
|
|
20139
|
+
probeArgs: ["--version"],
|
|
20140
|
+
timeoutMs: input.timeoutMs ?? 8e3
|
|
20141
|
+
});
|
|
20142
|
+
}
|
|
20143
|
+
async function resolveInstalledGrokBotLaunchCandidates(input) {
|
|
20144
|
+
const managed = input?.managedRoot ? await readManagedGrokBotCandidate(input.managedRoot) : null;
|
|
20145
|
+
const result = await resolveInstalledNodeScriptLaunchCandidates({
|
|
20146
|
+
commandName: "bdk",
|
|
20147
|
+
configuredCommand: process.env.OPENMELD_DAEMON_RUNTIME_GROK_BOT_BIN ?? null,
|
|
20148
|
+
displayName: "Grok Bot BDK",
|
|
20149
|
+
preferredLaunchContract: input?.preferredLaunchContract
|
|
20150
|
+
});
|
|
20151
|
+
if (!(result.ok || managed)) return result;
|
|
20152
|
+
const candidates = await resolveLaunchCandidatesAfterVerification({
|
|
20153
|
+
candidates: [...managed ? [managed] : [], ...result.ok ? result.candidates : []],
|
|
20154
|
+
verify: (candidate) => verifyGrokBotLaunchContract({ launchContract: candidate.launchContract })
|
|
20155
|
+
});
|
|
20156
|
+
return candidates.length ? {
|
|
20157
|
+
ok: true,
|
|
20158
|
+
candidates
|
|
20159
|
+
} : {
|
|
20160
|
+
ok: false,
|
|
20161
|
+
reason: "not_launchable",
|
|
20162
|
+
errorMessage: "Install the official @cursor/bdk package and sign in with bdk login."
|
|
20163
|
+
};
|
|
20164
|
+
}
|
|
20165
|
+
async function readIdleCursor(client, sessionId) {
|
|
20166
|
+
let cursor = "-1";
|
|
20167
|
+
while (true) {
|
|
20168
|
+
const page = await client.entries(sessionId, cursor);
|
|
20169
|
+
if (!page.turn.idle || page.turn.inFlight || page.turn.queued) throw new GrokBotError("grok-bot.busy", "Grok Bot is handling other work. Nothing was sent; try again when it is idle.");
|
|
20170
|
+
if (!page.entries.length || cursor === page.latestUpdatedSeq) return page.latestUpdatedSeq;
|
|
20171
|
+
cursor = page.latestUpdatedSeq;
|
|
20172
|
+
}
|
|
20173
|
+
}
|
|
20174
|
+
async function collectReplies(client, sessionId, initialCursor, wait) {
|
|
20175
|
+
let cursor = initialCursor;
|
|
20176
|
+
const replies = /* @__PURE__ */ new Map();
|
|
20177
|
+
let idlePolls = 0;
|
|
20178
|
+
let sawBusy = false;
|
|
20179
|
+
while (true) {
|
|
20180
|
+
const page = await client.entries(sessionId, cursor);
|
|
20181
|
+
cursor = page.latestUpdatedSeq;
|
|
20182
|
+
for (const entry of page.entries) if (entry.kind === "send-message" && entry.text) replies.set(entry.seq, entry.text);
|
|
20183
|
+
const busy = page.turn.inFlight || page.turn.queued > 0 || !page.turn.idle;
|
|
20184
|
+
sawBusy ||= busy;
|
|
20185
|
+
idlePolls = busy || page.entries.length ? 0 : idlePolls + 1;
|
|
20186
|
+
if (idlePolls >= (sawBusy ? 1 : 4)) return [...replies.values()].join("\n\n");
|
|
20187
|
+
await wait();
|
|
20188
|
+
}
|
|
20189
|
+
}
|
|
20190
|
+
async function publishReply(request, output) {
|
|
20191
|
+
if (!output.trim()) throw new GrokBotError("grok-bot.reply_missing", "Grok Bot finished without delivering a reply.");
|
|
20192
|
+
if (!request.spaceActionTools) return;
|
|
20193
|
+
if ((await request.spaceActionTools.call("reply", { message: output })).isError) throw new GrokBotError("grok-bot.reply_rejected", "OpenMeld could not record the Bot reply. Check the task diagnostics before retrying.");
|
|
20194
|
+
}
|
|
20195
|
+
async function readDispatchCredential(request) {
|
|
20196
|
+
if (request.launchContract?.kind === "node_script" && request.launchContract.scriptPath.endsWith("/connection-tools/grok-bot/launcher.mjs")) return await readManagedGrokBotCredential(request.launchContract.scriptPath);
|
|
20197
|
+
return await readGrokBotCredential({
|
|
20198
|
+
...process.env,
|
|
20199
|
+
...request.env
|
|
20200
|
+
});
|
|
20201
|
+
}
|
|
20202
|
+
function createGrokBotAdapter(options = {}) {
|
|
20203
|
+
const active = /* @__PURE__ */ new Map();
|
|
20204
|
+
const conversations = /* @__PURE__ */ new Set();
|
|
20205
|
+
const wait = options.wait ?? (() => new Promise((resolve) => setTimeout(resolve, 1e3)));
|
|
20206
|
+
const stop = async (taskId) => {
|
|
20207
|
+
const turn = active.get(taskId);
|
|
20208
|
+
if (!turn) return {
|
|
20209
|
+
accepted: false,
|
|
20210
|
+
reasonCode: "task.not_running",
|
|
20211
|
+
signalDelivery: "not_sent",
|
|
20212
|
+
taskId
|
|
20213
|
+
};
|
|
20214
|
+
turn.stopRequested = true;
|
|
20215
|
+
try {
|
|
20216
|
+
if (turn.sent && turn.client) await turn.client.interrupt(turn.sessionId);
|
|
20217
|
+
return {
|
|
20218
|
+
accepted: true,
|
|
20219
|
+
reasonCode: "accepted",
|
|
20220
|
+
signalDelivery: "sent",
|
|
20221
|
+
taskId,
|
|
20222
|
+
localAttemptOutcome: turn.sent ? "stop_requested_after_start" : "withdrawn_before_start"
|
|
20223
|
+
};
|
|
20224
|
+
} catch (error) {
|
|
20225
|
+
return {
|
|
20226
|
+
accepted: false,
|
|
20227
|
+
reasonCode: "signal.send_failed",
|
|
20228
|
+
signalDelivery: "not_sent",
|
|
20229
|
+
taskId,
|
|
20230
|
+
reasonDetail: error instanceof Error ? error.message : "Grok Bot stop is unconfirmed."
|
|
20231
|
+
};
|
|
20232
|
+
}
|
|
20233
|
+
};
|
|
20234
|
+
const invoke = async (request) => {
|
|
20235
|
+
if (request.executionMode === "repair") throw new GrokBotError("grok-bot.repair_unsupported", "Check the shared Bot conversation before sending another task. Automatic resubmission is not supported.");
|
|
20236
|
+
if (request.executionContext || request.computerFileAccessBoundary) throw new GrokBotError("execution_context.controller_access_unsupported", "This Agent shares an existing provider conversation. Independent contexts and local file access are not supported.");
|
|
20237
|
+
const sessionId = request.agentControllerConversationId?.trim();
|
|
20238
|
+
if (!sessionId) throw new GrokBotError("grok-bot.connection_required", "Connect an existing Grok Bot conversation first. OpenMeld does not create Bots.");
|
|
20239
|
+
if (conversations.has(sessionId)) throw new GrokBotError("grok-bot.busy", "This shared Bot is already working. Wait for its current work to finish.");
|
|
20240
|
+
conversations.add(sessionId);
|
|
20241
|
+
const turn = {
|
|
20242
|
+
client: null,
|
|
20243
|
+
sessionId,
|
|
20244
|
+
sent: false,
|
|
20245
|
+
stopRequested: false
|
|
20246
|
+
};
|
|
20247
|
+
active.set(request.taskId, turn);
|
|
20248
|
+
try {
|
|
20249
|
+
const client = options.createClient ? await options.createClient(request) : new GrokBotClient(await readDispatchCredential(request));
|
|
20250
|
+
turn.client = client;
|
|
20251
|
+
const cursor = await readIdleCursor(client, sessionId);
|
|
20252
|
+
if (turn.stopRequested) throw new GrokBotError("runtime.turn.cancelled", "Stopped before the message was sent.");
|
|
20253
|
+
const digest = createHash("sha256").update(request.dispatchId ?? request.taskId).digest("hex");
|
|
20254
|
+
const messageId = `${digest.slice(0, 8)}-${digest.slice(8, 12)}-5${digest.slice(13, 16)}-a${digest.slice(17, 20)}-${digest.slice(20, 32)}`;
|
|
20255
|
+
turn.sent = true;
|
|
20256
|
+
await client.send(sessionId, messageId, [request.prompt, "OpenMeld shared-conversation delivery: send your public answer normally in this Bot conversation. OpenMeld collects delivered replies and submits them through its authorized reply writer. Do not run an OpenMeld CLI command or inspect local OpenMeld credentials. Your existing tools and permissions remain provider-managed."].join("\n\n"));
|
|
20257
|
+
if (turn.stopRequested) await client.interrupt(sessionId);
|
|
20258
|
+
const output = await collectReplies(client, sessionId, cursor, wait);
|
|
20259
|
+
if (turn.stopRequested) throw new GrokBotError("runtime.turn.cancelled", "Grok Bot's shared conversation stopped.");
|
|
20260
|
+
await publishReply(request, output);
|
|
20261
|
+
return {
|
|
20262
|
+
output,
|
|
20263
|
+
contextDelta: { agentControllerConversationId: sessionId }
|
|
20264
|
+
};
|
|
20265
|
+
} finally {
|
|
20266
|
+
active.delete(request.taskId);
|
|
20267
|
+
conversations.delete(sessionId);
|
|
20268
|
+
}
|
|
20269
|
+
};
|
|
20270
|
+
return {
|
|
20271
|
+
adapterId: "grok-bot",
|
|
20272
|
+
dispatch: createSharedDispatchShell({
|
|
20273
|
+
adapterId: "grok-bot",
|
|
20274
|
+
bridgeSpec: resolveBuiltinAdapterConversationBridgeSpec("grok-bot"),
|
|
20275
|
+
resolveDefaultInvoke: () => invoke,
|
|
20276
|
+
runtimeOptions: options
|
|
20277
|
+
}),
|
|
20278
|
+
cancel: ({ taskId }) => stop(taskId),
|
|
20279
|
+
interrupt: async (input) => ({
|
|
20280
|
+
...await stop(input.taskId),
|
|
20281
|
+
plan: { initial: {
|
|
20282
|
+
mode: input.mode ?? "graceful",
|
|
20283
|
+
reason: input.reason ?? "Stop shared Bot",
|
|
20284
|
+
taskId: input.taskId
|
|
20285
|
+
} }
|
|
20286
|
+
}),
|
|
20287
|
+
verifyComputerFileAccessBoundary: async () => ({
|
|
20288
|
+
supported: false,
|
|
20289
|
+
reasonCode: "computer.file_access.controller_unsupported"
|
|
20290
|
+
})
|
|
20291
|
+
};
|
|
20292
|
+
}
|
|
20293
|
+
//#endregion
|
|
20294
|
+
//#region ../../runtime/local-service/src/adapters/installers/install-grok-bot.ts
|
|
20295
|
+
const installGrokBotAdapter = {
|
|
20296
|
+
adapterId: "grok-bot",
|
|
20297
|
+
install() {
|
|
20298
|
+
return {
|
|
20299
|
+
adapter: createGrokBotAdapter(),
|
|
20300
|
+
adapterId: "grok-bot",
|
|
20301
|
+
transportModes: ["local-cli"]
|
|
20302
|
+
};
|
|
20303
|
+
}
|
|
20304
|
+
};
|
|
20305
|
+
//#endregion
|
|
19776
20306
|
//#region ../../runtime/adapters/grok-build/dist/config/grok-build-runtime-config.js
|
|
19777
20307
|
const DEFAULT_GROK_BUILD_COMMAND = "grok";
|
|
19778
20308
|
async function resolveInstalledGrokBuildLaunchCandidates(input) {
|
|
@@ -26180,6 +26710,7 @@ function listLocalAdapterInstallers() {
|
|
|
26180
26710
|
installCodexAdapter,
|
|
26181
26711
|
installCursorAdapter,
|
|
26182
26712
|
installGrokBuildAdapter,
|
|
26713
|
+
installGrokBotAdapter,
|
|
26183
26714
|
installOpenClawAdapter,
|
|
26184
26715
|
installOpenCodeAdapter
|
|
26185
26716
|
];
|
|
@@ -28568,8 +29099,13 @@ var registry_default = {
|
|
|
28568
29099
|
"adapters": [{
|
|
28569
29100
|
"adapterId": "grok-build",
|
|
28570
29101
|
"controllerRefMatcher": {
|
|
28571
|
-
"kind": "
|
|
28572
|
-
"values": [
|
|
29102
|
+
"kind": "equals",
|
|
29103
|
+
"values": [
|
|
29104
|
+
"grok",
|
|
29105
|
+
"builtin:grok",
|
|
29106
|
+
"grok-build",
|
|
29107
|
+
"builtin:grok-build"
|
|
29108
|
+
]
|
|
28573
29109
|
},
|
|
28574
29110
|
"transportModes": ["acp"],
|
|
28575
29111
|
"capabilityDeclaration": {
|
|
@@ -28916,6 +29452,43 @@ var registry_default = {
|
|
|
28916
29452
|
"adapters": []
|
|
28917
29453
|
}
|
|
28918
29454
|
},
|
|
29455
|
+
{
|
|
29456
|
+
"id": "grok-bot",
|
|
29457
|
+
"displayName": "Grok Bot",
|
|
29458
|
+
"category": "builtin",
|
|
29459
|
+
"skillsDir": ".grok-bot/skills",
|
|
29460
|
+
"globalSkillsDir": "${HOME}/.config/agent-serve",
|
|
29461
|
+
"detection": {
|
|
29462
|
+
"mode": "any",
|
|
29463
|
+
"checks": [{
|
|
29464
|
+
"kind": "commandExists",
|
|
29465
|
+
"value": "bdk"
|
|
29466
|
+
}]
|
|
29467
|
+
},
|
|
29468
|
+
"service": { "skillsInstallable": false },
|
|
29469
|
+
"runtime": {
|
|
29470
|
+
"supported": true,
|
|
29471
|
+
"adapters": [{
|
|
29472
|
+
"adapterId": "grok-bot",
|
|
29473
|
+
"controllerRefMatcher": {
|
|
29474
|
+
"kind": "equals",
|
|
29475
|
+
"values": ["grok-bot", "builtin:grok-bot"]
|
|
29476
|
+
},
|
|
29477
|
+
"transportModes": ["local-cli"],
|
|
29478
|
+
"capabilityDeclaration": {
|
|
29479
|
+
"streamingCapability": "final_only",
|
|
29480
|
+
"runtimeWorkingDirectoryMode": "provider_workspace",
|
|
29481
|
+
"preparationRequirement": "none",
|
|
29482
|
+
"continuationCapability": "standard",
|
|
29483
|
+
"workspaceResumeBehavior": "transparent"
|
|
29484
|
+
}
|
|
29485
|
+
}]
|
|
29486
|
+
},
|
|
29487
|
+
"lifecycle": { "status": "active" },
|
|
29488
|
+
"transportModes": ["local-cli"],
|
|
29489
|
+
"defaultTransportMode": "local-cli",
|
|
29490
|
+
"defaultStreamingMode": "final"
|
|
29491
|
+
},
|
|
28919
29492
|
{
|
|
28920
29493
|
"id": "openclaw",
|
|
28921
29494
|
"displayName": "OpenClaw",
|
|
@@ -31432,6 +32005,29 @@ const EMPTY_AGENT_CONTROLLER_INTERFACE_CAPABILITIES = {
|
|
|
31432
32005
|
structuredUserInput: false
|
|
31433
32006
|
};
|
|
31434
32007
|
const BUILTIN_AGENT_CONTROLLER_DEFINITIONS = [
|
|
32008
|
+
{
|
|
32009
|
+
adapterId: "grok-bot",
|
|
32010
|
+
agentId: "grok-bot",
|
|
32011
|
+
capabilities: {
|
|
32012
|
+
...EMPTY_AGENT_CONTROLLER_INTERFACE_CAPABILITIES,
|
|
32013
|
+
cancel: true,
|
|
32014
|
+
interrupt: true
|
|
32015
|
+
},
|
|
32016
|
+
conversationOccupancy: {
|
|
32017
|
+
contractVersion: 1,
|
|
32018
|
+
mode: "unsupported"
|
|
32019
|
+
},
|
|
32020
|
+
installResolver: {
|
|
32021
|
+
resolveInstalledLaunchCandidates: (input) => resolveInstalledGrokBotLaunchCandidates({
|
|
32022
|
+
...input,
|
|
32023
|
+
managedRoot: resolveOpenMeldRootDir()
|
|
32024
|
+
}),
|
|
32025
|
+
verifyLaunchContract: verifyGrokBotLaunchContract
|
|
32026
|
+
},
|
|
32027
|
+
nativeInterface: "local-cli",
|
|
32028
|
+
usageLimitSupport: "unsupported",
|
|
32029
|
+
versionMaintenance: { npmPackageName: "@cursor/bdk" }
|
|
32030
|
+
},
|
|
31435
32031
|
{
|
|
31436
32032
|
adapterId: "antigravity",
|
|
31437
32033
|
agentId: "antigravity",
|
|
@@ -33531,9 +34127,9 @@ function createModelCatalogReadSession(input) {
|
|
|
33531
34127
|
async function readModelCatalogOnce(baseUrl) {
|
|
33532
34128
|
try {
|
|
33533
34129
|
const [apiClient, baseUrlModule, clientFoundationModule] = await Promise.all([
|
|
33534
|
-
import("./dist-
|
|
33535
|
-
import("./base-url-
|
|
33536
|
-
import("./api-client-foundation-
|
|
34130
|
+
import("./dist-DaKpDnJa.js"),
|
|
34131
|
+
import("./base-url-uaTFrave.js"),
|
|
34132
|
+
import("./api-client-foundation-C3A2-JkQ.js")
|
|
33537
34133
|
]);
|
|
33538
34134
|
if (typeof apiClient.createConfigApi !== "function") throw new Error("config api client is unavailable");
|
|
33539
34135
|
const resolvedBaseUrl = baseUrl ?? await baseUrlModule.resolveBaseUrl();
|
|
@@ -35377,6 +35973,6 @@ async function prepareProviderRuntime(input, options = {}) {
|
|
|
35377
35973
|
return await preparer(input);
|
|
35378
35974
|
}
|
|
35379
35975
|
//#endregion
|
|
35380
|
-
export {
|
|
35976
|
+
export { canManageRegistryAgentSkillTargets as $, loadLedgerState as $n, applyAcceptedLeases as $r, buildDispatchReplyContextSummary as $t, createExpectedRoutesReadSession as A, resolveInstalledCodexLaunchCandidates as An, getAgentControllerPermissionModeFieldLabel as Ar, resolveRegistryRuntimeAdapterContractByAgentControllerRef as At, reconcileNewRunnableBuiltinAgentsForSetup as B, updateClaudeNativeInstallation as Bn, renderWorkingLanguagePrompt as Br, validateCustomProfileWorkspacePath as Bt, createModelCatalogReadSession as C, installGrokBotTools as Cn, buildInformationProtectionPromptPlan as Cr, canonicalizeLocalProjectPath as Ct, NO_LOCAL_AGENTS_NEED_OPENMELD_SERVICE_REASON as D, supportsGrokBotSetup as Dn, createAgentExecutionStatusDisplayRows as Dr, listBuiltinAgentsRegistryEntries as Dt, resolveProfileWorkspaceRuntime as E, readManagedGrokBotCandidate as En, createAgentControllerInterfaceDisplayRows as Er, withAgentActivityLocalStateLock as Et, listAgentRegistrations as F, projectCodexUsageObservation as Fn, parseAgentControllerRef as Fr, readSavedProfileWorkspaceForAccount as Ft, updateAgentRegistrations as G, emitReconcileCompletedEvidence as Gn, resolveNativeAgentControllerPermissionModeForController as Gr, summarizeSkippedDaemonProfiles as Gt, resolveAgentTargetState as H, checkAntigravityAcpAccount as Hn, resolveAgentExecutionStatus as Hr, createMutableRouteCatalogState as Ht, listAgentTargetStates as I, readCodexAccountUsageObservation as In, peopleComputerContainsDevice as Ir, resolveConfiguredProfileWorkspacePath as It, normalizeAgentIds as J, runRuntimeTask as Jn, supportsSpaceWorkHandoff as Jr, syncRuntimeEventToInflightTaskControlRegistry as Jt, notifyDaemonRouteCatalogChanged as K, emitReconcileStartedEvidence as Kn, resolveSelectableCandidates as Kr, syncDaemonRouteCatalogState as Kt, manageAgentRegistrationInstallation as L, probeClaudeCodeUsageLimits as Ln, projectPeopleComputersToLegacyLocalRuntimes as Lr, resolveConfiguredProfileWorkspacePathForAccount as Lt, addAgentCustomTarget as M, probeCodexAppServerAccount as Mn, isAgentControllerUsageRefreshUnavailable as Mr, normalizeCustomProfileWorkspacePath as Mt, createRegistrationFromCatalogTarget as N, resolveCodexAppServerCompletedTurn as Nn, isAgentExecutionReadyOrConnecting as Nr, readProfileWorkspaceConfig as Nt, syncDeviceRuntimeStateProjection as O, projectCursorUsageLimits as On, createAuthorityOpenMeldServiceRuntimeId as Or, resolveRegistryOriginLaunchCommand as Ot, listAgentCustomTargets as P, verifyCodexAppServerThread as Pn, listAgentControllerPermissionModeOptions as Pr, readProfileWorkspaceConfigForAccount as Pt, resolveLocalRegistryAgentIdFromAgentControllerRef as Q, commitResolvedAgentContext as Qn, MIN_HEARTBEAT_INTERVAL_MS as Qr, createSerialAgentInteractionCallback as Qt, readAgentRuntimeConfigHealth as R, readClaudeNativeVersion as Rn, renderInformationProtectionPrompt as Rr, setCustomProfileWorkspace as Rt, syncProfileWorkspaceState as S, resolveInstalledGrokBuildLaunchCandidates as Sn, buildAgentControllerRef as Sr, unbindProject as St, resolveEffectiveProfileWorkingFolderRuntime as T, loginManagedGrokBot as Tn, compareAgentControllerVersions as Tr, withAgentActivityDeliveryLock as Tt, setAgentRegistrationEnabled as U, isAntigravityAcpLaunchContract as Un, resolveAgentProfileEditCapabilities as Ur, createRouteCatalogFromMutableState as Ut, removeAgentCustomTarget as V, resolveInstalledClaudeCodeLaunchCandidates as Vn, resolveAgentControllerPermissionModeForController as Vr, describeProfileWorkspacePathValidationFailure as Vt, updateAgentCustomTarget as W, emitDriftDetectedEvidence as Wn, resolveEvidenceSyncHealth as Wr, replaceMutableRouteCatalogState as Wt, sortAgentRegistrations as X, buildTaskResultEnvelope as Xn, ADAPTIVE_HEARTBEAT_JITTER_RATIO as Xr, SPACE_ACTION_TARGET_GUIDANCE_LINES as Xt, parseAgentEnabledOption as Y, buildRuntimeWorkspaceFingerprint as Yn, resolveRouteRegistrationReconcileDecision as Yr, SPACE_ACTION_CONTEXT_GUIDANCE_LINES as Yt, repairBuiltinControllerInstall as Z, appendLedgerHistoryEntry as Zn, MAX_HEARTBEAT_INTERVAL_MS as Zr, isDaemonReconcileInProgressError as Zt, loadDaemonRouteCatalog as _, forkOpenCodeServerSession as _n, DISPATCH_SPACE_ACTION_DELIVERY_ONLY_ENV as _r, removeMissingProjectConnections as _t, buildOpenClawSpaceSessionKey as a, createLocalExecutionSlots as an, withLedgerStateTransaction as ar, isHomebrewCommandPath as at, resolveLocalController as b, GrokBuildAcpTransportError as bn, TASK_KNOWLEDGE_GUIDANCE as br, runIfAgentActivityBindingGenerationIsCurrent as bt, findOpenClawAgentById as c, resolveDispatchContinuityObservation as cn, buildAgentContextLookupKey as cr, ProjectBindingOperationError as ct, resolveOpenClawAuthStatus as d, resolveLatestScopedConversationExecutionState as dn, resolveDispatchSpaceActionMcpServer as dr, hasProjectBindingForPath as dt, applyIntervalJitterMs as ei, normalizeDispatchPostMessageAction as en, removeConversationExecutionState as er, detectInstalledSkillsAgents as et, resolveOpenClawProviderRuntimeWorkingDirectory as f, resolveCatalogSyncSkippedProfilesLogState as fn, buildCliLaunchInvocation as fr, isProjectBound as ft, writeDaemonRouteCatalogCache as g, parseOpenCodeGoUsageResponse as gn, createProviderOriginalError as gr, removeAgentActivityBindingsWhileDeliveryLocked as gt, readDaemonRouteCatalogCache as h, parseOpenRouterUsageResponse as hn, listAgentControllerSupervisedProcessIds as hr, migrateProjectBindingStore as ht, listOpenClawGatewayAgents as i, __toESM as ii, buildLocalServiceDiagnosticsPayload as in, upsertConversationExecutionState as ir, isBunGlobalCommandPath as it, resolveAgentProfilePrimaryAgentControllerReport as j, forkCodexAppServerThread as jn, isAgentControllerUsageAccountUnavailable as jr, ensureOpenMeldManagedProfileWorkspace as jt, createPrimaryBindingReadSession as k, resolveCodexTimeoutMs as kn, getAgentControllerPermissionModeDisplayMetadata as kr, resolveRegistryRuntimeAdapterCapabilitySnapshot as kt, findOpenClawAgentsByWorkspace as l, resolveCompatibleAgentContextMatch as ln, createUnavailableProviderUsageLimits as lr, ProjectBindingStoreUpdateRequiredError as lt, resolveOpenClawLocalBootstrapPaths as m, createLocalAdapterEntries as mn, resolveExecutablePathsOnPath as mr, listProjectConnectionsWithStatus as mt, fetchOpenClawGatewayHealth as n, resolveAdaptiveHeartbeatIntervalMs as ni, mergeOpenClawGatewayVisibility as nn, seedLegacyAgentContext as nr, EMPTY_AGENT_CONTROLLER_INTERFACE_CAPABILITIES as nt, normalizeOpenClawSpaceIdPrefix as o, createInflightTaskControlRegistry as on, buildAuthenticatedControlPlaneResponse as or, isNpmGlobalCommandPath as ot, readOpenClawLocalBootstrapState as p, createLocalAdapterContainer as pn, materializeCliLaunchCommand as pr, listProjectBindings as pt, normalizeAgentId as q, DaemonServiceRunError as qn, supportsExecutionContextSelection as qr, normalizeDispatchThreadAction as qt, listOpenClawAgents as r, resolveCatalogSyncIntervalMs as ri, createLocalTaskInterruptSender as rn, settleInflightTask as rr, resolveBuiltinAgentControllerDefinition as rt, slugifyOpenClawNamePart as s, resolveDispatchQueueLogMeta as sn, assertLegacyAgentContextAssociation as sr, isPnpmGlobalCommandPath as st, prepareProviderRuntime as t, pruneStaleLeases as ti, createPendingAgentInteractionRegistry as tn, resolveConversationExecutionStateByLookupKey as tr, resolveSkillsAgentRegistry as tt, matchesExpectedWorkspace as u, resolveCompatibleConversationExecutionState as un, createUnsupportedProviderUsageLimits as ur, bindProject as ut, buildRuntimeRouteTargets as v, readOpenCode2Inventory as vn, isDispatchSpaceActionDeliveryOnly as vr, removeProjectConnection as vt, resolveCurrentEffectiveProfileWorkingFolderRuntime as w, isManagedGrokBotSignedIn as wn, buildWorkingLanguagePromptPlan as wr, resolveLocalProjectConnectionForPath as wt, resolveLocalRuntimeControllerSupport as x, probeGrokBuildAcpInterface as xn, areAgentControllerInterfaceAccountsSame as xr, setDefaultProjectConnection as xt, readLocalEnabledControllers as y, resolveInstalledOpenCodeLaunchCandidates as yn, DEFAULT_TASK_LIFECYCLE_HEARTBEAT_INTERVAL_MS as yr, resolveProjectBindingForPath as yt, reconcileNewRunnableBuiltinAgentRegistrations as z, resolveClaudeNativeUpdateCommand as zn, renderTaskKnowledgeIndex as zr, setOpenMeldManagedProfileWorkspace as zt };
|
|
35381
35977
|
|
|
35382
|
-
//# sourceMappingURL=prepare-provider-runtime-
|
|
35978
|
+
//# sourceMappingURL=prepare-provider-runtime-B0gBhnir.js.map
|