wednesdayai 0.6.1-dev.27 → 0.6.1-dev.28
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/{agent-CQhgyAis.js → agent-BDuI5Zvc.js} +26 -26
- package/dist/{agent-Y_2aRBZH.js → agent-BW-Yan08.js} +11 -11
- package/dist/{agent-turn-runner-faZvyYiv.js → agent-turn-runner-BfXiXNe2.js} +6 -6
- package/dist/{agent-turn-runner-ClBJoKQQ.js → agent-turn-runner-CHm-I95T.js} +5 -5
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +32 -32
- package/dist/bundled/bootstrap-extra-files/handler.js +4 -4
- package/dist/bundled/command-logger/handler.js +2 -2
- package/dist/bundled/session-journal/handler.js +31 -31
- package/dist/bundled/session-memory/handler.js +31 -31
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{chrome-B3nEcesV.js → chrome-CKy31bWh.js} +32 -32
- package/dist/{chrome-DLbFTDQE.js → chrome-Ct9vb6SC.js} +12 -12
- package/dist/{command-queue-BSbitNdP.js → command-queue-AIWqKnVD.js} +1 -1
- package/dist/{command-queue-BijpV9rd.js → command-queue-CNStMA4Y.js} +1 -1
- package/dist/control-ui-v2/assets/{AgentsView-DVvw6PTU.js → AgentsView-3Qsr3xnf.js} +1 -1
- package/dist/control-ui-v2/assets/{AutomationsView-CxjmPRdI.js → AutomationsView-DkBzPKKQ.js} +1 -1
- package/dist/control-ui-v2/assets/Badge-CB5TWfdz.js +1 -0
- package/dist/control-ui-v2/assets/{Button-DL76WqX4.js → Button-CGdLofSY.js} +1 -1
- package/dist/control-ui-v2/assets/{ChannelsView-BDcVzQIM.js → ChannelsView-BRb8eYyh.js} +1 -1
- package/dist/control-ui-v2/assets/{ConfigForm-CbvOdyOA.js → ConfigForm-D8_bqW8x.js} +1 -1
- package/dist/control-ui-v2/assets/{ConfirmDialog-DGHQXUr5.js → ConfirmDialog-B7aotBjN.js} +1 -1
- package/dist/control-ui-v2/assets/{DataTable-lEkd1R85.js → DataTable-CSi930kO.js} +1 -1
- package/dist/control-ui-v2/assets/{DebugView-CHHmLv3x.js → DebugView-8cZqh6FQ.js} +1 -1
- package/dist/control-ui-v2/assets/{Dialog-rIrrCPSu.js → Dialog-CQE8Pvh6.js} +1 -1
- package/dist/control-ui-v2/assets/{DreamsView-uQSpm1S4.js → DreamsView-B0KzP2OM.js} +1 -1
- package/dist/control-ui-v2/assets/{EntityLink-AEBgCNQX.js → EntityLink-BO2oG3y8.js} +1 -1
- package/dist/control-ui-v2/assets/{FilterPills-HxAXXDO8.js → FilterPills-9pNaAyrL.js} +1 -1
- package/dist/control-ui-v2/assets/{InstancesView-Svk7C7AX.js → InstancesView-BbunCxYg.js} +1 -1
- package/dist/control-ui-v2/assets/{LearningView-CWqWycCM.js → LearningView-CEqD48Ll.js} +1 -1
- package/dist/control-ui-v2/assets/{LogsView-D7kaR6es.js → LogsView-fcI0vxkz.js} +1 -1
- package/dist/control-ui-v2/assets/{NodesView-CqKA1XAX.js → NodesView-BONHE7EP.js} +1 -1
- package/dist/control-ui-v2/assets/{OverviewView-Dz3YnxWP.js → OverviewView-BpynJnjy.js} +1 -1
- package/dist/control-ui-v2/assets/{Panel-CyfpswdJ.js → Panel-9wOynsWc.js} +1 -1
- package/dist/control-ui-v2/assets/{PluginMount-C1HeSpS9.js → PluginMount-6N20-nhI.js} +1 -1
- package/dist/control-ui-v2/assets/{PluginPageView-Dap5OwAt.js → PluginPageView-DZ3bh805.js} +1 -1
- package/dist/control-ui-v2/assets/{PluginPanels-DdDZQ_Dn.js → PluginPanels-DulRlgcm.js} +1 -1
- package/dist/control-ui-v2/assets/{RunsView-CQXkKsIZ.js → RunsView-dcBTwtFX.js} +1 -1
- package/dist/control-ui-v2/assets/{SessionsView-Bs9UqOQr.js → SessionsView-CZuTvckb.js} +1 -1
- package/dist/control-ui-v2/assets/{SettingsView-BhorzAw5.js → SettingsView-BTcubWvr.js} +1 -1
- package/dist/control-ui-v2/assets/{SkillsView-ClzUjPU-.js → SkillsView-Bj7lvW23.js} +1 -1
- package/dist/control-ui-v2/assets/{Stat-BruDi6qc.js → Stat-BZwg1PGE.js} +1 -1
- package/dist/control-ui-v2/assets/{StatusDot-Cij-6nH8.js → StatusDot-DHhJ1VpB.js} +1 -1
- package/dist/control-ui-v2/assets/{StorageView-BYgvfNcg.js → StorageView-B5cF1lld.js} +1 -1
- package/dist/control-ui-v2/assets/{UpdatedAgo-DWSnE4WG.js → UpdatedAgo-Dw3kxb2x.js} +1 -1
- package/dist/control-ui-v2/assets/{UsageView-C_ezU9jy.js → UsageView-DBZ1WkEI.js} +1 -1
- package/dist/control-ui-v2/assets/{config-store-27hOx1yp.js → config-store-XvvVJ8Fq.js} +1 -1
- package/dist/control-ui-v2/assets/{format-dlOOV12I.js → format-CGs6a1G6.js} +1 -1
- package/dist/control-ui-v2/assets/gateway-features-BZH74_Oc.js +1 -0
- package/dist/control-ui-v2/assets/{index-OijNknZs.js → index-BvXiY83i.js} +1 -1
- package/dist/control-ui-v2/assets/{links-C1sAzVEH.js → links-DlVrQOFC.js} +2 -2
- package/dist/control-ui-v2/assets/{run-rows-BYCIH1Sn.js → run-rows-Au2UUkD7.js} +1 -1
- package/dist/control-ui-v2/assets/{runs-store-DLIlHRM6.js → runs-store-DXgNPFWM.js} +1 -1
- package/dist/control-ui-v2/assets/{use-gateway-query-CF94JYnM.js → use-gateway-query-D25QZANO.js} +1 -1
- package/dist/control-ui-v2/index.html +7 -7
- package/dist/{deliver-CY4Fs4RX.js → deliver-DsuMPE0S.js} +28 -28
- package/dist/{deliver-xfGDp6XD.js → deliver-DxVojbH7.js} +6 -6
- package/dist/{diagnostic-S8OX1Eq2.js → diagnostic-C4pLNG6a.js} +1 -1
- package/dist/{diagnostic-BZYYYnMx.js → diagnostic-DJ11ZJIJ.js} +3 -3
- package/dist/{errors-BRYMqzPb.js → errors-0-at0aYV.js} +1 -1
- package/dist/extensionAPI.js +24 -24
- package/dist/{fences-Dtk43Q2a.js → fences-Z8d1dj8p.js} +16 -16
- package/dist/{fences-DbKcVN_n.js → fences-j5vzXLXf.js} +1 -1
- package/dist/{fetch-guard-UCuiKQ5E.js → fetch-guard-BQ-NMG7L.js} +2 -2
- package/dist/{fetch-guard-DuBGo4VE.js → fetch-guard-BaBd9ZVm.js} +2 -2
- package/dist/{frontmatter-DHBTRDiB.js → frontmatter-CzhUc9Ri.js} +5 -5
- package/dist/{fs-safe-Bk4Thq7a.js → fs-safe-Bd1xxVwv.js} +1 -1
- package/dist/{fs-safe-CyG0wflg.js → fs-safe-DMWtsz4J.js} +26 -26
- package/dist/{legacy-names-6uH6aLhq.js → legacy-names-chsmo2vs.js} +26 -26
- package/dist/llm-slug-generator.js +31 -31
- package/dist/{manager-BvLLls5L.js → manager-B4xc1xN6.js} +16 -16
- package/dist/{manager-Cf3W8LKj.js → manager-CD-sBxdS.js} +3 -3
- package/dist/{model-selection-Ca4WCV4n.js → model-selection-CYS--Nqz.js} +1 -1
- package/dist/{model-selection-CbMZx9fR.js → model-selection-Ds5bEVQ2.js} +82 -82
- package/dist/{nudge-DelcKR7z.js → nudge-CKFTN2YI.js} +9 -9
- package/dist/{nudge-Dd9wU1K5.js → nudge-DZuNGDE_.js} +32 -32
- package/dist/{outbound-attachment-CKATrxgO.js → outbound-attachment-BsEApkFu.js} +9 -9
- package/dist/{outbound-attachment-Btl5f-Lu.js → outbound-attachment-DHLTkCuI.js} +4 -4
- package/dist/{pi-embedded-ApthdT0k.js → pi-embedded-C8SqFziv.js} +40 -40
- package/dist/{pi-embedded-D-4wht-f.js → pi-embedded-yXKiYEGf.js} +229 -229
- package/dist/{pi-model-discovery-Dgbp4zjx.js → pi-model-discovery-CtfGh_up.js} +7 -7
- package/dist/{pi-model-discovery-D-D_mngz.js → pi-model-discovery-De5Z6lro.js} +1 -1
- package/dist/{proxy-env-v_oj7Urd.js → proxy-env-D4WYaw6X.js} +1 -1
- package/dist/{proxy-env-BRG1LWK1.js → proxy-env-DPCNy_X3.js} +1 -1
- package/dist/{pw-ai-BH-MmrGa.js → pw-ai-BmuDO1HM.js} +5 -5
- package/dist/{pw-ai-DK4N7_nV.js → pw-ai-ohfJZ9jX.js} +11 -11
- package/dist/{qmd-manager-Cdz2xlNp.js → qmd-manager-2dro3Ccn.js} +9 -9
- package/dist/{qmd-manager-NT_CKYQG.js → qmd-manager-CgZ9ng9u.js} +4 -4
- package/dist/{qmd-scope-CyWbQgiS.js → qmd-scope-DMUA3Vq9.js} +1 -1
- package/dist/{qmd-scope-hzI66flw.js → qmd-scope-RFd-g5Qi.js} +1 -1
- package/dist/{query-expansion-CPkdZdty.js → query-expansion-DQ8zm-TE.js} +1 -1
- package/dist/{query-expansion-feTsk3WF.js → query-expansion-GZKwviqQ.js} +13 -13
- package/dist/{recorder-DCGoPaKG.js → recorder-DA5NY6nl.js} +1 -1
- package/dist/{recorder-C3f7IlHZ.js → recorder-dKE74HOC.js} +2 -2
- package/dist/{redact-C4XKILzo.js → redact-LOuk7TRy.js} +1 -1
- package/dist/{reply-directives-BjV2MFIq.js → reply-directives-8FtYI79u.js} +9 -9
- package/dist/{reply-directives-ToqsETSh.js → reply-directives-CE9WoRyW.js} +49 -49
- package/dist/{runs-CPjMwHXQ.js → runs-BIabbRe5.js} +8 -8
- package/dist/{runs-D7qs08K3.js → runs-Dw8BeXyu.js} +5 -5
- package/dist/{send-BnVk7V-5.js → send-BQzswQlt.js} +5 -5
- package/dist/{send-DDBl5H1k.js → send-BTp_lz-m.js} +4 -4
- package/dist/{send-B9huC0Lk.js → send-CWcFiq7U.js} +3 -3
- package/dist/{send-Cj5zKV3M.js → send-DW_8PsC0.js} +4 -4
- package/dist/{sessions-zel35iDK.js → sessions-Bz8mUwgo.js} +5 -5
- package/dist/{sessions-CXuFR_IY.js → sessions-DKv9bCbi.js} +1 -1
- package/dist/{subsystem-DoQFckDJ.js → subsystem-cFv2jJm-.js} +71 -71
- package/dist/{tool-loop-detection-CtOkwPJY.js → tool-loop-detection-9fAxiikd.js} +2 -2
- package/dist/{user-run-recording-BVpLQDqe.js → user-run-recording-C1LRU5Lb.js} +2 -2
- package/dist/{user-run-recording-C10wwXyW.js → user-run-recording-CWRiZJsh.js} +1 -1
- package/dist/web-client/assets/{hast-util-from-dom-CvePVP6E.js → hast-util-from-dom-BoP9fB2c.js} +1 -1
- package/dist/web-client/assets/{hast-util-to-mdast-CwugKdbc.js → hast-util-to-mdast-Bo07nYTv.js} +1 -1
- package/dist/web-client/assets/{index-CFHLAWrp.js → index-CwqOe0fG.js} +2 -2
- package/dist/web-client/index.html +1 -1
- package/dist/{ws-2U5gNvRt.js → ws-Do6yaRWR.js} +1 -1
- package/dist/{ws-DrXm3NWZ.js → ws-Dt2EocLN.js} +1 -1
- package/extensions/a2a/package.json +1 -1
- package/extensions/acpx/package.json +1 -1
- package/extensions/anthropic/package.json +1 -1
- package/extensions/bifrost/package.json +1 -1
- package/extensions/bluebubbles/package.json +1 -1
- package/extensions/copilot-proxy/package.json +1 -1
- package/extensions/deepgram/package.json +1 -1
- package/extensions/deepinfra/package.json +1 -1
- package/extensions/diagnostics-otel/package.json +1 -1
- package/extensions/diffs/package.json +1 -1
- package/extensions/discord/package.json +1 -1
- package/extensions/dream-cycle/package.json +1 -1
- package/extensions/elevenlabs/package.json +1 -1
- package/extensions/feishu/package.json +1 -1
- package/extensions/gemini-search/package.json +1 -1
- package/extensions/google/package.json +1 -1
- package/extensions/google-gemini-cli-auth/package.json +1 -1
- package/extensions/googlechat/package.json +1 -1
- package/extensions/grok-search/package.json +1 -1
- package/extensions/groq/package.json +1 -1
- package/extensions/identity-oidc/package.json +1 -1
- package/extensions/imessage/package.json +1 -1
- package/extensions/irc/package.json +1 -1
- package/extensions/kimi-search/package.json +1 -1
- package/extensions/kokoro/package.json +1 -1
- package/extensions/learning-core/package.json +1 -1
- package/extensions/line/package.json +1 -1
- package/extensions/llm-task/package.json +1 -1
- package/extensions/lobster/package.json +1 -1
- package/extensions/matrix/CHANGELOG.md +1 -1
- package/extensions/matrix/package.json +1 -1
- package/extensions/mattermost/package.json +1 -1
- package/extensions/memory-core/package.json +1 -1
- package/extensions/memory-lancedb/package.json +1 -1
- package/extensions/minimax/package.json +1 -1
- package/extensions/minimax-portal-auth/package.json +1 -1
- package/extensions/mistral/package.json +1 -1
- package/extensions/moonshot/package.json +1 -1
- package/extensions/msteams/CHANGELOG.md +1 -1
- package/extensions/msteams/package.json +1 -1
- package/extensions/nextcloud-talk/package.json +1 -1
- package/extensions/nostr/CHANGELOG.md +1 -1
- package/extensions/nostr/package.json +1 -1
- package/extensions/open-prose/package.json +1 -1
- package/extensions/openai/package.json +1 -1
- package/extensions/openai-realtime/package.json +1 -1
- package/extensions/openrouter/package.json +1 -1
- package/extensions/perplexity-search/package.json +1 -1
- package/extensions/searxng-search/package.json +1 -1
- package/extensions/signal/package.json +1 -1
- package/extensions/slack/package.json +1 -1
- package/extensions/synology-chat/package.json +1 -1
- package/extensions/telegram/package.json +1 -1
- package/extensions/tlon/package.json +1 -1
- package/extensions/twitch/CHANGELOG.md +1 -1
- package/extensions/twitch/package.json +1 -1
- package/extensions/ui-surfaces/package.json +1 -1
- package/extensions/voice-call/CHANGELOG.md +1 -1
- package/extensions/voice-call/package.json +1 -1
- package/extensions/whatsapp/package.json +1 -1
- package/extensions/zai/package.json +1 -1
- package/extensions/zalo/CHANGELOG.md +1 -1
- package/extensions/zalo/package.json +1 -1
- package/extensions/zalouser/CHANGELOG.md +1 -1
- package/extensions/zalouser/package.json +1 -1
- package/package.json +1 -1
- package/dist/control-ui-v2/assets/Badge-4n2tRQ02.js +0 -1
- package/dist/control-ui-v2/assets/gateway-features-BIj6-KTX.js +0 -1
- package/dist/github-copilot-token-Bm6yG6tw.js +0 -106
- package/dist/paths-BIDPYPVC.js +0 -233
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { Ai as resolveSecretRefValues, Br as GATEWAY_CLIENT_MODES, Fi as secretRefKey, Ot as docsSiteUrl, Qr as stringEnum, V as loadConfig, Vr as GATEWAY_CLIENT_NAMES, Zr as optionalStringEnum, _a as listAgentIds, aa as hasConfiguredSecretInput, ct as ASSISTANT_IDENTITY_COLORS, sa as resolveSecretInputRef, wa as resolveDefaultAgentId, zr as GATEWAY_CLIENT_IDS } from "./model-selection-
|
|
3
|
-
import { l as resolveStateDir, o as resolveGatewayPort, r as resolveConfigPath } from "./paths-
|
|
4
|
-
import { Z as CONFIG_DIR, et as ensureDir$1, lt as shortenHomeInString, st as resolveUserPath, t as createSubsystemLogger } from "./subsystem-
|
|
5
|
-
import { D as logError, E as logDebug, G as resolveAgentIdFromSessionKey, H as normalizeAgentId, U as normalizeMainKey, X as sessionKeyAgentMatches, at as isAcpSessionKey, ct as isSubagentSessionKey } from "./legacy-names-
|
|
2
|
+
import { Ai as resolveSecretRefValues, Br as GATEWAY_CLIENT_MODES, Fi as secretRefKey, Ot as docsSiteUrl, Qr as stringEnum, V as loadConfig, Vr as GATEWAY_CLIENT_NAMES, Zr as optionalStringEnum, _a as listAgentIds, aa as hasConfiguredSecretInput, ct as ASSISTANT_IDENTITY_COLORS, sa as resolveSecretInputRef, wa as resolveDefaultAgentId, zr as GATEWAY_CLIENT_IDS } from "./model-selection-Ds5bEVQ2.js";
|
|
3
|
+
import { l as resolveStateDir, o as resolveGatewayPort, r as resolveConfigPath } from "./paths-B_gs59ga.js";
|
|
4
|
+
import { Z as CONFIG_DIR, et as ensureDir$1, lt as shortenHomeInString, st as resolveUserPath, t as createSubsystemLogger } from "./subsystem-cFv2jJm-.js";
|
|
5
|
+
import { D as logError, E as logDebug, G as resolveAgentIdFromSessionKey, H as normalizeAgentId, U as normalizeMainKey, X as sessionKeyAgentMatches, at as isAcpSessionKey, ct as isSubagentSessionKey } from "./legacy-names-chsmo2vs.js";
|
|
6
6
|
import { t as emitDiagnosticEvent } from "./diagnostic-events-RfJYFlJM.js";
|
|
7
|
-
import { B as createAsyncLock, D as SESSION_RUN_STATUSES, F as resolveAgentMainSessionKey, H as writeJsonAtomic, It as INPUT_PROVENANCE_KIND_VALUES, U as resolveGatewayCredentialsFromConfig, V as readJsonFile, f as TASK_RUN_MODES, p as TASK_RUN_STATUSES } from "./sessions-
|
|
7
|
+
import { B as createAsyncLock, D as SESSION_RUN_STATUSES, F as resolveAgentMainSessionKey, H as writeJsonAtomic, It as INPUT_PROVENANCE_KIND_VALUES, U as resolveGatewayCredentialsFromConfig, V as readJsonFile, f as TASK_RUN_MODES, p as TASK_RUN_STATUSES } from "./sessions-Bz8mUwgo.js";
|
|
8
8
|
import { t as redactIdentifier } from "./redact-identifier-bNChjxxW.js";
|
|
9
|
-
import { i as isSecureWebSocketUrl, t as rawDataToString } from "./ws-
|
|
10
|
-
import { a as agentTurnIdempotencyKey, c as enqueueAgentTurn, i as AGENT_TURN_TOPIC, l as isClaimableAgentTurnWorkId, n as getAgentTurnRuntime, o as buildAgentTurnWork } from "./agent-turn-runner-
|
|
9
|
+
import { i as isSecureWebSocketUrl, t as rawDataToString } from "./ws-Do6yaRWR.js";
|
|
10
|
+
import { a as agentTurnIdempotencyKey, c as enqueueAgentTurn, i as AGENT_TURN_TOPIC, l as isClaimableAgentTurnWorkId, n as getAgentTurnRuntime, o as buildAgentTurnWork } from "./agent-turn-runner-BfXiXNe2.js";
|
|
11
11
|
import path from "node:path";
|
|
12
|
-
import
|
|
13
|
-
import fs
|
|
12
|
+
import syncFs from "node:fs";
|
|
13
|
+
import fs from "node:fs/promises";
|
|
14
14
|
import { promisify } from "node:util";
|
|
15
15
|
import { execFile } from "node:child_process";
|
|
16
16
|
import crypto, { X509Certificate, createHash, randomBytes, randomUUID } from "node:crypto";
|
|
17
17
|
import { Type } from "@sinclair/typebox";
|
|
18
|
-
import { WebSocket } from "ws";
|
|
18
|
+
import { WebSocket as WebSocket$1 } from "ws";
|
|
19
19
|
import AjvPkg from "ajv";
|
|
20
20
|
|
|
21
21
|
//#region src/shared/device-auth.ts
|
|
@@ -135,7 +135,7 @@ function resolveDefaultIdentityPath() {
|
|
|
135
135
|
return path.join(resolveStateDir(), "identity", "device.json");
|
|
136
136
|
}
|
|
137
137
|
function ensureDir(filePath) {
|
|
138
|
-
|
|
138
|
+
syncFs.mkdirSync(path.dirname(filePath), { recursive: true });
|
|
139
139
|
}
|
|
140
140
|
const ED25519_SPKI_PREFIX = Buffer.from("302a300506032b6570032100", "hex");
|
|
141
141
|
function base64UrlEncode(buf) {
|
|
@@ -171,8 +171,8 @@ function generateIdentity() {
|
|
|
171
171
|
}
|
|
172
172
|
function loadOrCreateDeviceIdentity(filePath = resolveDefaultIdentityPath()) {
|
|
173
173
|
try {
|
|
174
|
-
if (
|
|
175
|
-
const raw =
|
|
174
|
+
if (syncFs.existsSync(filePath)) {
|
|
175
|
+
const raw = syncFs.readFileSync(filePath, "utf8");
|
|
176
176
|
const parsed = JSON.parse(raw);
|
|
177
177
|
if (parsed?.version === 1 && typeof parsed.deviceId === "string" && typeof parsed.publicKeyPem === "string" && typeof parsed.privateKeyPem === "string") {
|
|
178
178
|
const derivedId = fingerprintPublicKey(parsed.publicKeyPem);
|
|
@@ -181,9 +181,9 @@ function loadOrCreateDeviceIdentity(filePath = resolveDefaultIdentityPath()) {
|
|
|
181
181
|
...parsed,
|
|
182
182
|
deviceId: derivedId
|
|
183
183
|
};
|
|
184
|
-
|
|
184
|
+
syncFs.writeFileSync(filePath, `${JSON.stringify(updated, null, 2)}\n`, { mode: 384 });
|
|
185
185
|
try {
|
|
186
|
-
|
|
186
|
+
syncFs.chmodSync(filePath, 384);
|
|
187
187
|
} catch {}
|
|
188
188
|
return {
|
|
189
189
|
deviceId: derivedId,
|
|
@@ -208,9 +208,9 @@ function loadOrCreateDeviceIdentity(filePath = resolveDefaultIdentityPath()) {
|
|
|
208
208
|
privateKeyPem: identity.privateKeyPem,
|
|
209
209
|
createdAtMs: Date.now()
|
|
210
210
|
};
|
|
211
|
-
|
|
211
|
+
syncFs.writeFileSync(filePath, `${JSON.stringify(stored, null, 2)}\n`, { mode: 384 });
|
|
212
212
|
try {
|
|
213
|
-
|
|
213
|
+
syncFs.chmodSync(filePath, 384);
|
|
214
214
|
} catch {}
|
|
215
215
|
return identity;
|
|
216
216
|
}
|
|
@@ -233,7 +233,7 @@ function normalizeFingerprint(input) {
|
|
|
233
233
|
const execFileAsync = promisify(execFile);
|
|
234
234
|
async function fileExists(filePath) {
|
|
235
235
|
try {
|
|
236
|
-
await fs
|
|
236
|
+
await fs.access(filePath);
|
|
237
237
|
return true;
|
|
238
238
|
} catch {
|
|
239
239
|
return false;
|
|
@@ -260,8 +260,8 @@ async function generateSelfSignedCert(params) {
|
|
|
260
260
|
"-subj",
|
|
261
261
|
"/CN=openclaw-gateway"
|
|
262
262
|
]);
|
|
263
|
-
await fs
|
|
264
|
-
await fs
|
|
263
|
+
await fs.chmod(params.keyPath, 384).catch(() => {});
|
|
264
|
+
await fs.chmod(params.certPath, 384).catch(() => {});
|
|
265
265
|
params.log?.info?.(`gateway tls: generated self-signed cert at ${shortenHomeInString(params.certPath)}`);
|
|
266
266
|
}
|
|
267
267
|
async function loadGatewayTlsRuntime(cfg, log) {
|
|
@@ -299,9 +299,9 @@ async function loadGatewayTlsRuntime(cfg, log) {
|
|
|
299
299
|
error: "gateway tls: cert/key missing"
|
|
300
300
|
};
|
|
301
301
|
try {
|
|
302
|
-
const cert = await fs
|
|
303
|
-
const key = await fs
|
|
304
|
-
const ca = caPath ? await fs
|
|
302
|
+
const cert = await fs.readFile(certPath, "utf8");
|
|
303
|
+
const key = await fs.readFile(keyPath, "utf8");
|
|
304
|
+
const ca = caPath ? await fs.readFile(caPath, "utf8") : void 0;
|
|
305
305
|
const fingerprintSha256 = normalizeFingerprint(new X509Certificate(cert).fingerprint256 ?? "");
|
|
306
306
|
if (!fingerprintSha256) return {
|
|
307
307
|
enabled: false,
|
|
@@ -387,8 +387,8 @@ function resolveDeviceAuthPath(env = process.env) {
|
|
|
387
387
|
}
|
|
388
388
|
function readStore(filePath) {
|
|
389
389
|
try {
|
|
390
|
-
if (!
|
|
391
|
-
const raw =
|
|
390
|
+
if (!syncFs.existsSync(filePath)) return null;
|
|
391
|
+
const raw = syncFs.readFileSync(filePath, "utf8");
|
|
392
392
|
const parsed = JSON.parse(raw);
|
|
393
393
|
if (parsed?.version !== 1 || typeof parsed.deviceId !== "string") return null;
|
|
394
394
|
if (!parsed.tokens || typeof parsed.tokens !== "object") return null;
|
|
@@ -398,10 +398,10 @@ function readStore(filePath) {
|
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
function writeStore(filePath, store) {
|
|
401
|
-
|
|
402
|
-
|
|
401
|
+
syncFs.mkdirSync(path.dirname(filePath), { recursive: true });
|
|
402
|
+
syncFs.writeFileSync(filePath, `${JSON.stringify(store, null, 2)}\n`, { mode: 384 });
|
|
403
403
|
try {
|
|
404
|
-
|
|
404
|
+
syncFs.chmodSync(filePath, 384);
|
|
405
405
|
} catch {}
|
|
406
406
|
}
|
|
407
407
|
function loadDeviceAuthToken(params) {
|
|
@@ -2991,7 +2991,7 @@ var GatewayClient = class {
|
|
|
2991
2991
|
if (fingerprint !== expected) return /* @__PURE__ */ new Error("gateway tls fingerprint mismatch");
|
|
2992
2992
|
});
|
|
2993
2993
|
}
|
|
2994
|
-
this.ws = new WebSocket(url, wsOptions);
|
|
2994
|
+
this.ws = new WebSocket$1(url, wsOptions);
|
|
2995
2995
|
this.ws.on("open", () => {
|
|
2996
2996
|
if (url.startsWith("wss://") && this.opts.tlsFingerprint) {
|
|
2997
2997
|
const tlsError = this.validateTlsFingerprint();
|
|
@@ -3187,7 +3187,7 @@ var GatewayClient = class {
|
|
|
3187
3187
|
const connectChallengeTimeoutMs = typeof rawConnectDelayMs === "number" && Number.isFinite(rawConnectDelayMs) ? Math.max(250, Math.min(1e4, rawConnectDelayMs)) : 2e3;
|
|
3188
3188
|
if (this.connectTimer) clearTimeout(this.connectTimer);
|
|
3189
3189
|
this.connectTimer = setTimeout(() => {
|
|
3190
|
-
if (this.connectSent || this.ws?.readyState !== WebSocket.OPEN) return;
|
|
3190
|
+
if (this.connectSent || this.ws?.readyState !== WebSocket$1.OPEN) return;
|
|
3191
3191
|
this.opts.onConnectError?.(/* @__PURE__ */ new Error("gateway connect challenge timeout"));
|
|
3192
3192
|
this.ws?.close(1008, "connect challenge timeout");
|
|
3193
3193
|
}, connectChallengeTimeoutMs);
|
|
@@ -3229,7 +3229,7 @@ var GatewayClient = class {
|
|
|
3229
3229
|
return null;
|
|
3230
3230
|
}
|
|
3231
3231
|
async request(method, params, opts) {
|
|
3232
|
-
if (!this.ws || this.ws.readyState !== WebSocket.OPEN) throw new Error("gateway not connected");
|
|
3232
|
+
if (!this.ws || this.ws.readyState !== WebSocket$1.OPEN) throw new Error("gateway not connected");
|
|
3233
3233
|
const id = randomUUID();
|
|
3234
3234
|
const frame = {
|
|
3235
3235
|
type: "req",
|
|
@@ -4588,7 +4588,7 @@ function indentUntrustedBody(body) {
|
|
|
4588
4588
|
}
|
|
4589
4589
|
function trackNudgeClaimChain(runner, id, sessionKey) {
|
|
4590
4590
|
const tracked = (async () => {
|
|
4591
|
-
const { runMainAgentTurn } = await import("./pi-embedded-
|
|
4591
|
+
const { runMainAgentTurn } = await import("./pi-embedded-yXKiYEGf.js").then((n) => n.a);
|
|
4592
4592
|
await runner.claimAndExecute({
|
|
4593
4593
|
workId: id,
|
|
4594
4594
|
execute: (claim) => runMainAgentTurn(claim.message.payload)
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Ar as INTERNAL_MESSAGE_CHANNEL, Ca as resolveAgentWorkspaceDir, Sr as resolveAccountEntry, V as loadConfig, lr as normalizeChannelId } from "./model-selection-
|
|
2
|
-
import { l as resolveStateDir } from "./paths-
|
|
3
|
-
import { f as logVerbose, h as shouldLogVerbose, i as chunkTextByBreakResolver, mt as resolvePreferredOpenClawTmpDir, r as avoidTrailingHighSurrogateBreak, st as resolveUserPath, t as createSubsystemLogger } from "./subsystem-
|
|
1
|
+
import { Ar as INTERNAL_MESSAGE_CHANNEL, Ca as resolveAgentWorkspaceDir, Sr as resolveAccountEntry, V as loadConfig, lr as normalizeChannelId } from "./model-selection-Ds5bEVQ2.js";
|
|
2
|
+
import { l as resolveStateDir } from "./paths-B_gs59ga.js";
|
|
3
|
+
import { f as logVerbose, h as shouldLogVerbose, i as chunkTextByBreakResolver, mt as resolvePreferredOpenClawTmpDir, r as avoidTrailingHighSurrogateBreak, st as resolveUserPath, t as createSubsystemLogger } from "./subsystem-cFv2jJm-.js";
|
|
4
4
|
import { n as resolveProcessScopedMap } from "./plain-object-Doc_YkH1.js";
|
|
5
|
-
import { $ as normalizeAccountId } from "./legacy-names-
|
|
6
|
-
import { t as redactSensitiveText } from "./redact-
|
|
7
|
-
import { C as maxBytesForKind, b as kindFromMime, c as hasAlphaChannel, g as extensionForMime, h as detectMime, l as optimizeImageToPng, m as saveMediaBuffer, n as isSafeFenceBreak, o as convertHeicToJpeg, r as parseFenceSpans, t as findFenceSpanAt, u as resizeToJpeg } from "./fences-
|
|
8
|
-
import { o as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-
|
|
9
|
-
import { n as formatErrorChainMessage } from "./errors-
|
|
5
|
+
import { $ as normalizeAccountId } from "./legacy-names-chsmo2vs.js";
|
|
6
|
+
import { t as redactSensitiveText } from "./redact-LOuk7TRy.js";
|
|
7
|
+
import { C as maxBytesForKind, b as kindFromMime, c as hasAlphaChannel, g as extensionForMime, h as detectMime, l as optimizeImageToPng, m as saveMediaBuffer, n as isSafeFenceBreak, o as convertHeicToJpeg, r as parseFenceSpans, t as findFenceSpanAt, u as resizeToJpeg } from "./fences-Z8d1dj8p.js";
|
|
8
|
+
import { o as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-DMWtsz4J.js";
|
|
9
|
+
import { n as formatErrorChainMessage } from "./errors-0-at0aYV.js";
|
|
10
10
|
import { t as resolveNetworkSsrFPolicy } from "./ssrf-config-CIKAlvUL.js";
|
|
11
|
-
import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
11
|
+
import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-BaBd9ZVm.js";
|
|
12
12
|
import path from "node:path";
|
|
13
13
|
import fs from "node:fs/promises";
|
|
14
14
|
import { fileURLToPath } from "node:url";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Ea as resolveAgentWorkspaceDir, Er as resolveAccountEntry, Pr as INTERNAL_MESSAGE_CHANNEL, V as loadConfig, pr as normalizeChannelId, xo as normalizeAccountId } from "./model-selection-
|
|
1
|
+
import { Ea as resolveAgentWorkspaceDir, Er as resolveAccountEntry, Pr as INTERNAL_MESSAGE_CHANNEL, V as loadConfig, pr as normalizeChannelId, xo as normalizeAccountId } from "./model-selection-CYS--Nqz.js";
|
|
2
2
|
import { l as resolveStateDir } from "./paths-B_gs59ga.js";
|
|
3
3
|
import { f as logVerbose, h as shouldLogVerbose, i as chunkTextByBreakResolver, mt as resolvePreferredOpenClawTmpDir, r as avoidTrailingHighSurrogateBreak, st as resolveUserPath, t as createSubsystemLogger } from "./subsystem-DynBFcQj.js";
|
|
4
4
|
import { n as resolveProcessScopedMap } from "./plain-object-Doc_YkH1.js";
|
|
5
5
|
import { t as redactSensitiveText } from "./redact-CEFvBGJg.js";
|
|
6
|
-
import { C as maxBytesForKind, b as kindFromMime, c as hasAlphaChannel, g as extensionForMime, h as detectMime, l as optimizeImageToPng, m as saveMediaBuffer, n as isSafeFenceBreak, o as convertHeicToJpeg, r as parseFenceSpans, t as findFenceSpanAt, u as resizeToJpeg } from "./fences-
|
|
7
|
-
import { o as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-
|
|
6
|
+
import { C as maxBytesForKind, b as kindFromMime, c as hasAlphaChannel, g as extensionForMime, h as detectMime, l as optimizeImageToPng, m as saveMediaBuffer, n as isSafeFenceBreak, o as convertHeicToJpeg, r as parseFenceSpans, t as findFenceSpanAt, u as resizeToJpeg } from "./fences-j5vzXLXf.js";
|
|
7
|
+
import { o as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-Bd1xxVwv.js";
|
|
8
8
|
import { n as formatErrorChainMessage } from "./errors-yyPKpoXR.js";
|
|
9
9
|
import { t as resolveNetworkSsrFPolicy } from "./ssrf-config-DYF6dHGu.js";
|
|
10
|
-
import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
10
|
+
import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-BQ-NMG7L.js";
|
|
11
11
|
import path from "node:path";
|
|
12
12
|
import fs from "node:fs/promises";
|
|
13
13
|
import { fileURLToPath } from "node:url";
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { $ as unsetConfigValueAtPath, $a as DEFAULT_AGENT_ID, $i as markAuthProfileGood, $n as DEFAULT_RESET_TRIGGERS, $r as channelTargetSchema, $t as addRegisteredPluginApi, A as resolveApiKeyForProvider, Aa as resolveSessionAgentId, Ai as SAFE_BIN_PROFILES, An as prepareConfiguredSessionStorageRuntimeActivation, Ao as isSubagentSessionKey, Ar as deliveryContextKey, At as applyTestPluginDefaults, B as resolveApiKeyForProfile, Ba as ensureAgentWorkspace, Bi as runTasksWithConcurrency, Br as normalizeMessageChannel, Bt as CHAT_CHANNEL_ORDER, C as buildAssistantMessage, Ca as resolveAgentConfig, Ci as resolveCommandResolutionFromArgv, Cr as resolveChannelGroupPolicy, Ct as buildChannelAccountBindings, D as getApiKeyForModel, Da as resolveDefaultAgentId, Di as unwrapKnownDispatchWrapperInvocation, Dn as closeConfiguredSessionStorageRuntime, Do as isAcpSessionKey, Dr as resolveConversationLabel, Dt as DOCS_SITE_URL, E as buildUsageWithNoCost, Ea as resolveAgentWorkspaceDir, Ei as isShellWrapperExecutable, En as updateSessionStoreEntry, Eo as getSubagentDepth, Er as resolveAccountEntry, Et as loadPluginManifestRegistry, F as getSoonestCooldownExpiry, Fa as DEFAULT_HEARTBEAT_FILENAME, Fi as describeUnknownError$1, Fn as parseDurationMs, Fo as resolveAgentModelPrimaryValue, Fr as isDeliverableMessageChannel, Ft as discoverOpenClawPlugins, G as createConfigIO, Ga as runCommandWithTimeout, Gi as isTruthyEnvValue, Gn as resolveSessionFilePath, Gr as GATEWAY_CLIENT_NAMES, Gt as normalizeChatChannelId, H as readConfigFileSnapshot, Ha as loadWorkspaceBootstrapFiles, Hi as VERSION, Hn as SAFE_SESSION_ID_RE, Hr as resolveMessageChannel, Ht as listChatChannels, I as isProfileInCooldown, Ii as isNonEmptyString, In as getConfiguredSessionStorageRuntime, Io as toAgentModelListLike, It as isPathInside, J as setConfigOverride, Ja as logDebug, Ji as advanceRuntimeConfigSnapshot, Jr as readTaskWorkStates, Jt as getActivePluginRegistry, K as getConfigOverrides, Ka as runExec, Ki as parseBooleanValue$1, Kn as resolveSessionFilePathOptions, Kt as resolveChannelConfigId, L as markAuthProfileFailure, Li as isRecord$1, Lr as isInternalMessageChannel, Lt as safeStatSync, M as resolveModelAuthMode, Mi as resolveSafeBinProfiles, Mn as loadSessionStore, Mo as resolveThreadParentSessionKey, Mr as normalizeDeliveryContext, Mt as normalizePluginsConfig, Na as DEFAULT_AGENT_WORKSPACE_DIR, Ni as isSafeExecutableValue, Nn as loadSessionStoreFromDisk, No as stripAgentSessionKeyPrefix, Nr as normalizeSessionDeliveryFields, Nt as resolveEffectiveEnableState, O as getCustomProviderApiKey, Oi as unwrapKnownShellMultiplexerInvocation, On as closeReplacedConfiguredSessionStorageRuntime, Oo as isCronSessionKey, Or as normalizeChatType, Ot as docsSiteUrl, P as resolveAuthProfileOrder, Pa as DEFAULT_BOOTSTRAP_FILENAME, Pi as resolveSecretRefValues, Pn as readSessionUpdatedAt, Po as resolveAgentModelFallbackValues, Pr as INTERNAL_MESSAGE_CHANNEL, Pt as resolveMemorySlotDecision, Q as setConfigValueAtPath, Qi as listProfilesForProvider, Qt as setActivePluginRegistry, R as markAuthProfileUsed, Ri as parseDotPath, Rn as parseSessionIndexRecordKey, Rr as isMarkdownCapableMessageChannel, Rt as readManifestNamespace, S as createOllamaStreamFn, Sa as listAgentIds, Si as resolveAllowlistCandidatePath, Sn as recordSessionMetaFromInbound, So as normalizeOptionalAccountId, Sr as resolveIMessageAccount, T as buildStreamErrorAssistantMessage, Ta as resolveAgentSkillsFilter, Ti as isDispatchWrapperExecutable, Tn as updateSessionStore, To as WAKE_GATE_SESSION_KEY_SEGMENT, Tr as resolveChannelGroupToolsPolicy, Tt as validateJsonSchemaValue, U as readConfigFileSnapshotForWrite, Ua as resolveOpenClawPackageRoot, Ui as getShellPathFromLoginShell, Un as SESSION_RUN_STORE_FILE_NAME, Ur as GATEWAY_CLIENT_IDS, Ut as normalizeAnyChannelId, V as loadConfig, Va as filterBootstrapFilesForSession, Vi as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, Vr as resolveGatewayMessageChannel, Vt as getChatChannelMeta, W as writeConfigFile, Wi as resolveShellEnvFallbackTimeoutMs, Wr as GATEWAY_CLIENT_MODES, Wt as normalizeChannelId$2, X as getConfigValueAtPath, Xa as logInfo, Xi as applyMergePatch, Xn as acquireSessionWriteLock, Y as unsetConfigOverride, Ya as logError, Yi as getRuntimeConfigSnapshot, Yn as resolveStorePath, Yt as getActivePluginRegistryKey, Z as parseConfigPath, Za as logWarn, Zi as dedupeProfileIds, Zn as resolveSessionLockMaxHoldFromTimeout, Zt as requireActivePluginRegistry, _a as acceptsInheritedIdentity, _i as buildEnforcedShellCommand, _n as StorageReadAccessError, _o as sanitizeAgentId, _r as normalizeWhatsAppTarget, a as isCliProvider, aa as readProcessElapsedSeconds, ai as actionRequiresTarget, an as executePluginCommand, ao as classifySessionKeyShape, ar as resolveParentSessionGroupId, at as resolveIMessageRemoteAttachmentRoots, b as retryAsync, ba as isInternalAgentSessionKey, bi as DEFAULT_SAFE_BINS, bo as DEFAULT_ACCOUNT_ID, br as formatCliCommand, c as normalizeProviderId, ca as normalizeSecretInput, ci as listBufferedPluginTaskPasses, cn as registerPluginCommand, co as isKnownAgentMainSessionKey, cr as getChannelDock, d as resolveDefaultModelForAgent, da as normalizeResolvedSecretInputString, di as getTrustedSafeBinDirs, dn as getSpeechProvider, do as normalizeMainKey, dr as getChannelPlugin, ea as ensureAuthProfileStore, ei as channelTargetsSchema, en as clearRegisteredPluginApis, eo as DEFAULT_MAIN_KEY, er as mergeSessionEntry, et as validateConfigObjectWithPlugins, f as resolveModelRefFromString, fa as resolveSecretInputRef, fi as isTrustedSafeBinPath, fn as isBuiltinTtsProvider, fo as normalizeToken$1, fr as listChannelPlugins, ga as DEFAULT_PROVIDER, gi as analyzeShellCommand, gn as triggerInternalHook, go as resolveThreadSessionKeys, gr as isWhatsAppGroupJid, h as resolveThinkingDefault, ha as DEFAULT_MODEL, hi as validateSafeBinArgv, hn as createInternalHookEvent, ho as resolveConfiguredCanonicalIdentity, hr as resolveSignalAccount, i as findNormalizedProviderValue, ia as isPidAlive, ii as actionHasTarget, in as clearPluginCommands, io as buildAgentPeerSessionKey, ir as resolveGroupSessionKey, it as resolveIMessageAttachmentRoots, j as resolveEnvApiKey, ja as resolveSessionAgentIds, ji as normalizeSafeBinProfileFixtures, jn as refreshConfiguredSessionBindingEntry, jo as parseAgentSessionKey, jr as mergeDeliveryContext, jt as isBundledChannelEnabledByChannelConfig, k as requireApiKey, ka as resolveRunModelFallbacksOverride, ki as splitShellArgs, kn as commitPreparedConfiguredSessionStorageRuntimeActivation, kr as deliveryContextFromSession, kt as BUNDLED_ENABLED_BY_DEFAULT, l as parseModelRef, la as coerceSecretRef, li as replaceBufferedPluginTaskPasses, ln as BUILTIN_TTS_PROVIDER_IDS, lo as isValidAgentId, lr as listChannelDocks, lt as resolveExecPolicyPreset, m as resolveSubagentSpawnModelSelection, ma as DEFAULT_CONTEXT_TOKENS, mi as normalizeTrustedSafeBinDirs, mn as normalizeProviderId$1, mo as resolveCanonicalIdentity, mr as listEnabledSignalAccounts, n as buildConfiguredAllowlistKeys, na as resolveOpenClawAgentDir, ni as stringEnum, nn as normalizePluginHttpPath, nt as isInboundPathAllowed, o as modelKey, oa as resolveAuthProfileDisplayLabel, on as listPluginCommands, or as normalizeAtHashSlug, ot as normalizeScpRemoteHost, p as resolveReasoningDefault, pa as splitTrailingAuthProfile, pi as listWritableExplicitTrustedSafeBinDirs, pn as replaceSpeechProviders, po as resolveAgentIdFromSessionKey, pr as normalizeChannelId$1, q as resetConfigOverrides, qa as spawnWithFallback, qi as resolveOwnerDisplaySetting, qn as resolveSessionTranscriptPath, qr as CtxProjectionCorruptionError, qt as getActiveGatewayPluginRegistry, r as buildModelAliasIndex, ra as withFileLock$1, ri as applyTargetToParams, rn as buildPluginHealthReport, ro as buildAgentMainSessionKey, rr as deriveSessionMetaPatch, rt as mergeInboundPathRoots, s as normalizeModelRef$1, si as discardBufferedPluginTaskPasses, sn as matchPluginCommand, sr as normalizeStringEntries, st as parseNonNegativeByteSize, t as buildAllowedModelSet, ta as resolveAuthStorePathForDisplay, ti as optionalStringEnum, tn as createPluginRegistry, to as DEVICE_SENDER_PREFIX, tr as resolveFreshSessionTotalTokens, tt as DEFAULT_IMESSAGE_ATTACHMENT_ROOTS, u as resolveConfiguredModelRef, ua as hasConfiguredSecretInput, ui as RecoveryAdmissionError, un as getRegisteredSpeechProviders, uo as normalizeAgentId, ur as normalizeSignalMessagingTarget, va as hasConfiguredModelFallbacks, vi as isWindowsPlatform, vn as createConversationReadQuery, vo as sessionKeyAgentMatches, vr as hasAnyWhatsAppAuth, w as buildAssistantMessageWithZeroUsage, wa as resolveAgentDir, wi as extractShellWrapperInlineCommand, wn as updateLastRoute, wr as resolveChannelGroupRequireMention, wt as listBindings, x as OLLAMA_NATIVE_BASE_URL, xi as matchAllowlist, xn as requireSessionStorageRuntime, xo as normalizeAccountId$1, xr as resolveCliName, ya as isAgentUserFacing, yi as splitCommandChain, yn as getConversationReadQuery, yo as toAgentStoreSessionKey, yr as resolveWhatsAppAccount, z as resolveProfilesUnavailableReason, zi as secretRefKey, zr as listDeliverableMessageChannels } from "./model-selection-
|
|
2
|
+
import { $ as unsetConfigValueAtPath, $a as DEFAULT_AGENT_ID, $i as markAuthProfileGood, $n as DEFAULT_RESET_TRIGGERS, $r as channelTargetSchema, $t as addRegisteredPluginApi, A as resolveApiKeyForProvider, Aa as resolveSessionAgentId, Ai as SAFE_BIN_PROFILES, An as prepareConfiguredSessionStorageRuntimeActivation, Ao as isSubagentSessionKey, Ar as deliveryContextKey, At as applyTestPluginDefaults, B as resolveApiKeyForProfile, Ba as ensureAgentWorkspace, Bi as runTasksWithConcurrency, Br as normalizeMessageChannel, Bt as CHAT_CHANNEL_ORDER, C as buildAssistantMessage, Ca as resolveAgentConfig, Ci as resolveCommandResolutionFromArgv, Cr as resolveChannelGroupPolicy, Ct as buildChannelAccountBindings, D as getApiKeyForModel, Da as resolveDefaultAgentId, Di as unwrapKnownDispatchWrapperInvocation, Dn as closeConfiguredSessionStorageRuntime, Do as isAcpSessionKey, Dr as resolveConversationLabel, Dt as DOCS_SITE_URL, E as buildUsageWithNoCost, Ea as resolveAgentWorkspaceDir, Ei as isShellWrapperExecutable, En as updateSessionStoreEntry, Eo as getSubagentDepth, Er as resolveAccountEntry, Et as loadPluginManifestRegistry, F as getSoonestCooldownExpiry, Fa as DEFAULT_HEARTBEAT_FILENAME, Fi as describeUnknownError$1, Fn as parseDurationMs, Fo as resolveAgentModelPrimaryValue, Fr as isDeliverableMessageChannel, Ft as discoverOpenClawPlugins, G as createConfigIO, Ga as runCommandWithTimeout, Gi as isTruthyEnvValue, Gn as resolveSessionFilePath, Gr as GATEWAY_CLIENT_NAMES, Gt as normalizeChatChannelId, H as readConfigFileSnapshot, Ha as loadWorkspaceBootstrapFiles, Hi as VERSION, Hn as SAFE_SESSION_ID_RE, Hr as resolveMessageChannel, Ht as listChatChannels, I as isProfileInCooldown, Ii as isNonEmptyString, In as getConfiguredSessionStorageRuntime, Io as toAgentModelListLike, It as isPathInside, J as setConfigOverride, Ja as logDebug, Ji as advanceRuntimeConfigSnapshot, Jr as readTaskWorkStates, Jt as getActivePluginRegistry, K as getConfigOverrides, Ka as runExec, Ki as parseBooleanValue$1, Kn as resolveSessionFilePathOptions, Kt as resolveChannelConfigId, L as markAuthProfileFailure, Li as isRecord$1, Lr as isInternalMessageChannel, Lt as safeStatSync, M as resolveModelAuthMode, Mi as resolveSafeBinProfiles, Mn as loadSessionStore, Mo as resolveThreadParentSessionKey, Mr as normalizeDeliveryContext, Mt as normalizePluginsConfig, Na as DEFAULT_AGENT_WORKSPACE_DIR, Ni as isSafeExecutableValue, Nn as loadSessionStoreFromDisk, No as stripAgentSessionKeyPrefix, Nr as normalizeSessionDeliveryFields, Nt as resolveEffectiveEnableState, O as getCustomProviderApiKey, Oi as unwrapKnownShellMultiplexerInvocation, On as closeReplacedConfiguredSessionStorageRuntime, Oo as isCronSessionKey, Or as normalizeChatType, Ot as docsSiteUrl, P as resolveAuthProfileOrder, Pa as DEFAULT_BOOTSTRAP_FILENAME, Pi as resolveSecretRefValues, Pn as readSessionUpdatedAt, Po as resolveAgentModelFallbackValues, Pr as INTERNAL_MESSAGE_CHANNEL, Pt as resolveMemorySlotDecision, Q as setConfigValueAtPath, Qi as listProfilesForProvider, Qt as setActivePluginRegistry, R as markAuthProfileUsed, Ri as parseDotPath, Rn as parseSessionIndexRecordKey, Rr as isMarkdownCapableMessageChannel, Rt as readManifestNamespace, S as createOllamaStreamFn, Sa as listAgentIds, Si as resolveAllowlistCandidatePath, Sn as recordSessionMetaFromInbound, So as normalizeOptionalAccountId, Sr as resolveIMessageAccount, T as buildStreamErrorAssistantMessage, Ta as resolveAgentSkillsFilter, Ti as isDispatchWrapperExecutable, Tn as updateSessionStore, To as WAKE_GATE_SESSION_KEY_SEGMENT, Tr as resolveChannelGroupToolsPolicy, Tt as validateJsonSchemaValue, U as readConfigFileSnapshotForWrite, Ua as resolveOpenClawPackageRoot, Ui as getShellPathFromLoginShell, Un as SESSION_RUN_STORE_FILE_NAME, Ur as GATEWAY_CLIENT_IDS, Ut as normalizeAnyChannelId, V as loadConfig, Va as filterBootstrapFilesForSession, Vi as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, Vr as resolveGatewayMessageChannel, Vt as getChatChannelMeta, W as writeConfigFile, Wi as resolveShellEnvFallbackTimeoutMs, Wr as GATEWAY_CLIENT_MODES, Wt as normalizeChannelId$2, X as getConfigValueAtPath, Xa as logInfo, Xi as applyMergePatch, Xn as acquireSessionWriteLock, Y as unsetConfigOverride, Ya as logError, Yi as getRuntimeConfigSnapshot, Yn as resolveStorePath, Yt as getActivePluginRegistryKey, Z as parseConfigPath, Za as logWarn, Zi as dedupeProfileIds, Zn as resolveSessionLockMaxHoldFromTimeout, Zt as requireActivePluginRegistry, _a as acceptsInheritedIdentity, _i as buildEnforcedShellCommand, _n as StorageReadAccessError, _o as sanitizeAgentId, _r as normalizeWhatsAppTarget, a as isCliProvider, aa as readProcessElapsedSeconds, ai as actionRequiresTarget, an as executePluginCommand, ao as classifySessionKeyShape, ar as resolveParentSessionGroupId, at as resolveIMessageRemoteAttachmentRoots, b as retryAsync, ba as isInternalAgentSessionKey, bi as DEFAULT_SAFE_BINS, bo as DEFAULT_ACCOUNT_ID, br as formatCliCommand, c as normalizeProviderId, ca as normalizeSecretInput, ci as listBufferedPluginTaskPasses, cn as registerPluginCommand, co as isKnownAgentMainSessionKey, cr as getChannelDock, d as resolveDefaultModelForAgent, da as normalizeResolvedSecretInputString, di as getTrustedSafeBinDirs, dn as getSpeechProvider, do as normalizeMainKey, dr as getChannelPlugin, ea as ensureAuthProfileStore, ei as channelTargetsSchema, en as clearRegisteredPluginApis, eo as DEFAULT_MAIN_KEY, er as mergeSessionEntry, et as validateConfigObjectWithPlugins, f as resolveModelRefFromString, fa as resolveSecretInputRef, fi as isTrustedSafeBinPath, fn as isBuiltinTtsProvider, fo as normalizeToken$1, fr as listChannelPlugins, ga as DEFAULT_PROVIDER, gi as analyzeShellCommand, gn as triggerInternalHook, go as resolveThreadSessionKeys, gr as isWhatsAppGroupJid, h as resolveThinkingDefault, ha as DEFAULT_MODEL, hi as validateSafeBinArgv, hn as createInternalHookEvent, ho as resolveConfiguredCanonicalIdentity, hr as resolveSignalAccount, i as findNormalizedProviderValue, ia as isPidAlive, ii as actionHasTarget, in as clearPluginCommands, io as buildAgentPeerSessionKey, ir as resolveGroupSessionKey, it as resolveIMessageAttachmentRoots, j as resolveEnvApiKey, ja as resolveSessionAgentIds, ji as normalizeSafeBinProfileFixtures, jn as refreshConfiguredSessionBindingEntry, jo as parseAgentSessionKey, jr as mergeDeliveryContext, jt as isBundledChannelEnabledByChannelConfig, k as requireApiKey, ka as resolveRunModelFallbacksOverride, ki as splitShellArgs, kn as commitPreparedConfiguredSessionStorageRuntimeActivation, kr as deliveryContextFromSession, kt as BUNDLED_ENABLED_BY_DEFAULT, l as parseModelRef, la as coerceSecretRef, li as replaceBufferedPluginTaskPasses, ln as BUILTIN_TTS_PROVIDER_IDS, lo as isValidAgentId, lr as listChannelDocks, lt as resolveExecPolicyPreset, m as resolveSubagentSpawnModelSelection, ma as DEFAULT_CONTEXT_TOKENS, mi as normalizeTrustedSafeBinDirs, mn as normalizeProviderId$1, mo as resolveCanonicalIdentity, mr as listEnabledSignalAccounts, n as buildConfiguredAllowlistKeys, na as resolveOpenClawAgentDir, ni as stringEnum, nn as normalizePluginHttpPath, nt as isInboundPathAllowed, o as modelKey, oa as resolveAuthProfileDisplayLabel, on as listPluginCommands, or as normalizeAtHashSlug, ot as normalizeScpRemoteHost, p as resolveReasoningDefault, pa as splitTrailingAuthProfile, pi as listWritableExplicitTrustedSafeBinDirs, pn as replaceSpeechProviders, po as resolveAgentIdFromSessionKey, pr as normalizeChannelId$1, q as resetConfigOverrides, qa as spawnWithFallback, qi as resolveOwnerDisplaySetting, qn as resolveSessionTranscriptPath, qr as CtxProjectionCorruptionError, qt as getActiveGatewayPluginRegistry, r as buildModelAliasIndex, ra as withFileLock$1, ri as applyTargetToParams, rn as buildPluginHealthReport, ro as buildAgentMainSessionKey, rr as deriveSessionMetaPatch, rt as mergeInboundPathRoots, s as normalizeModelRef$1, si as discardBufferedPluginTaskPasses, sn as matchPluginCommand, sr as normalizeStringEntries, st as parseNonNegativeByteSize, t as buildAllowedModelSet, ta as resolveAuthStorePathForDisplay, ti as optionalStringEnum, tn as createPluginRegistry, to as DEVICE_SENDER_PREFIX, tr as resolveFreshSessionTotalTokens, tt as DEFAULT_IMESSAGE_ATTACHMENT_ROOTS, u as resolveConfiguredModelRef, ua as hasConfiguredSecretInput, ui as RecoveryAdmissionError, un as getRegisteredSpeechProviders, uo as normalizeAgentId, ur as normalizeSignalMessagingTarget, va as hasConfiguredModelFallbacks, vi as isWindowsPlatform, vn as createConversationReadQuery, vo as sessionKeyAgentMatches, vr as hasAnyWhatsAppAuth, w as buildAssistantMessageWithZeroUsage, wa as resolveAgentDir, wi as extractShellWrapperInlineCommand, wn as updateLastRoute, wr as resolveChannelGroupRequireMention, wt as listBindings, x as OLLAMA_NATIVE_BASE_URL, xi as matchAllowlist, xn as requireSessionStorageRuntime, xo as normalizeAccountId$1, xr as resolveCliName, ya as isAgentUserFacing, yi as splitCommandChain, yn as getConversationReadQuery, yo as toAgentStoreSessionKey, yr as resolveWhatsAppAccount, z as resolveProfilesUnavailableReason, zi as secretRefKey, zr as listDeliverableMessageChannels } from "./model-selection-CYS--Nqz.js";
|
|
3
3
|
import { a as resolveGatewayLockDir, f as resolveRequiredHomeDir, l as resolveStateDir, o as resolveGatewayPort, r as resolveConfigPath, s as resolveOAuthDir, u as expandHomePrefix } from "./paths-B_gs59ga.js";
|
|
4
4
|
import { C as appendFileLog, F as openBoundaryFileSync, K as isDangerousHostEnvVarName, O as INCLUDE_KEY, P as openBoundaryFile, Q as clampInt, T as normalizeLogLevel, U as isSymlinkOpenError, V as isNotFoundPathError, W as normalizeWindowsPathForComparison, Z as CONFIG_DIR, _ as colorize, a as createNonExitingRuntime, b as getChildLogger, c as registerActiveProgressLine, ct as safeParseJson, dt as sleep$2, f as logVerbose, ft as sliceUtf16Safe, g as warn, h as shouldLogVerbose, it as normalizeE164, j as isBlockedObjectKey, l as unregisterActiveProgressLine, lt as shortenHomeInString, m as setVerbose, mt as resolvePreferredOpenClawTmpDir, nt as formatTerminalLink, o as defaultRuntime, pt as truncateUtf16Safe, rt as isRecord$2, s as clearActiveProgressLine, st as resolveUserPath, t as createSubsystemLogger, tt as escapeRegExp, u as danger, ut as shortenHomePath, v as isRich, y as theme } from "./subsystem-DynBFcQj.js";
|
|
5
5
|
import { n as resolveProcessScopedMap, t as isPlainObject } from "./plain-object-Doc_YkH1.js";
|
|
6
6
|
import { a as saveJsonFile, i as loadJsonFile, r as resolveCopilotApiToken } from "./github-copilot-token-C-29TbW-.js";
|
|
7
|
-
import { $ as resolveSandboxRuntimeStatus, A as classifyFailoverReason, At as compileGlobPatterns, B as isFailoverAssistantError, Bt as stripSilentToken, C as resolveImageSanitizationLimits, Ct as expandPolicyWithPluginGroups, D as downgradeOpenAIReasoningBlocks, Dt as normalizeToolName, E as downgradeOpenAIFunctionCallReasoningPairs, Et as expandToolGroups, F as isAuthAssistantError, Ft as sanitizeGoogleTurnOrdering, G as isTransientHttpError, H as isLikelyContextOverflowError, I as isBillingAssistantError, It as HEARTBEAT_TOKEN, J as sanitizeUserFacingText, K as parseImageDimensionError, L as isCloudCodeAssistFormatError, Lt as SILENT_REPLY_TOKEN, M as formatBillingErrorMessage, Mt as buildBootstrapContextFiles, N as formatRawAssistantErrorForUi, Nt as resolveBootstrapMaxChars, O as isGoogleModelApi, Ot as resolveToolProfilePolicy, P as getApiErrorPayloadFingerprint, Pt as resolveBootstrapTotalMaxChars, Q as resolveSandboxContext, R as isCompactionFailureError, Rt as isSilentReplyPrefixText, S as sanitizeToolResultImages, St as collectExplicitAllowlist, T as estimateBase64DecodedBytes, Tt as stripPluginOnlyAllowlist, U as isRateLimitAssistantError, V as isFailoverErrorMessage, W as isRawApiErrorPayload, X as isTimeoutErrorMessage, Y as isAuthPermanentErrorMessage, Z as ensureSandboxWorkspaceForSession, _t as ensureBrowserControlAuth, a as validateGeminiTurns, at as buildWorkspaceSkillCommandSpecs, b as sanitizeSessionMessagesImages, bt as applyOwnerOnlyToolPolicy, c as formatXHighModelHint, ct as resolveSkillsPromptForRun, d as normalizeReasoningLevel, dt as assertMediaNotDataUrl, et as createBrowserRouteContext, f as normalizeThinkLevel, ft as assertSandboxPath, g as supportsXHighThinking, gt as applySkillEnvOverridesFromSnapshot, h as resolveResponseUsageMode, ht as applySkillEnvOverrides, i as validateAnthropicTurns, it as getBridgeAuthForPort, j as formatAssistantErrorText, jt as matchesAnyGlobPattern, k as BILLING_ERROR_USER_MESSAGE, kt as listCoreToolIds, l as listThinkingLevels, lt as skillsSnapshotSourceDiffers, m as normalizeVerboseLevel, mt as resolveSandboxedMediaSource, n as splitMediaFromOutput, nt as resolveBrowserConfig, o as pickFallbackThinkingLevel, ot as buildWorkspaceSkillSnapshot, p as normalizeUsageDisplay, pt as resolveSandboxInputPath, q as parseImageSizeError, r as extractTextFromChatContent, rt as resolveProfile, s as formatThinkingLevels, st as loadWorkspaceSkillEntries, t as parseReplyDirectives, tt as registerBrowserRoutes, u as normalizeElevatedLevel, ut as resolvePluginSkillDirs, v as isMessagingToolDuplicateNormalized, vt as resolveBrowserControlAuth, w as canonicalizeBase64, wt as mergeAlsoAllowPolicy, x as sanitizeImageBlocks, xt as buildPluginToolGroups, y as normalizeTextForComparison, yt as resolveSandboxConfigForAgent, z as isContextOverflowError, zt as isSilentReplyText } from "./reply-directives-
|
|
7
|
+
import { $ as resolveSandboxRuntimeStatus, A as classifyFailoverReason, At as compileGlobPatterns, B as isFailoverAssistantError, Bt as stripSilentToken, C as resolveImageSanitizationLimits, Ct as expandPolicyWithPluginGroups, D as downgradeOpenAIReasoningBlocks, Dt as normalizeToolName, E as downgradeOpenAIFunctionCallReasoningPairs, Et as expandToolGroups, F as isAuthAssistantError, Ft as sanitizeGoogleTurnOrdering, G as isTransientHttpError, H as isLikelyContextOverflowError, I as isBillingAssistantError, It as HEARTBEAT_TOKEN, J as sanitizeUserFacingText, K as parseImageDimensionError, L as isCloudCodeAssistFormatError, Lt as SILENT_REPLY_TOKEN, M as formatBillingErrorMessage, Mt as buildBootstrapContextFiles, N as formatRawAssistantErrorForUi, Nt as resolveBootstrapMaxChars, O as isGoogleModelApi, Ot as resolveToolProfilePolicy, P as getApiErrorPayloadFingerprint, Pt as resolveBootstrapTotalMaxChars, Q as resolveSandboxContext, R as isCompactionFailureError, Rt as isSilentReplyPrefixText, S as sanitizeToolResultImages, St as collectExplicitAllowlist, T as estimateBase64DecodedBytes, Tt as stripPluginOnlyAllowlist, U as isRateLimitAssistantError, V as isFailoverErrorMessage, W as isRawApiErrorPayload, X as isTimeoutErrorMessage, Y as isAuthPermanentErrorMessage, Z as ensureSandboxWorkspaceForSession, _t as ensureBrowserControlAuth, a as validateGeminiTurns, at as buildWorkspaceSkillCommandSpecs, b as sanitizeSessionMessagesImages, bt as applyOwnerOnlyToolPolicy, c as formatXHighModelHint, ct as resolveSkillsPromptForRun, d as normalizeReasoningLevel, dt as assertMediaNotDataUrl, et as createBrowserRouteContext, f as normalizeThinkLevel, ft as assertSandboxPath, g as supportsXHighThinking, gt as applySkillEnvOverridesFromSnapshot, h as resolveResponseUsageMode, ht as applySkillEnvOverrides, i as validateAnthropicTurns, it as getBridgeAuthForPort, j as formatAssistantErrorText, jt as matchesAnyGlobPattern, k as BILLING_ERROR_USER_MESSAGE, kt as listCoreToolIds, l as listThinkingLevels, lt as skillsSnapshotSourceDiffers, m as normalizeVerboseLevel, mt as resolveSandboxedMediaSource, n as splitMediaFromOutput, nt as resolveBrowserConfig, o as pickFallbackThinkingLevel, ot as buildWorkspaceSkillSnapshot, p as normalizeUsageDisplay, pt as resolveSandboxInputPath, q as parseImageSizeError, r as extractTextFromChatContent, rt as resolveProfile, s as formatThinkingLevels, st as loadWorkspaceSkillEntries, t as parseReplyDirectives, tt as registerBrowserRoutes, u as normalizeElevatedLevel, ut as resolvePluginSkillDirs, v as isMessagingToolDuplicateNormalized, vt as resolveBrowserControlAuth, w as canonicalizeBase64, wt as mergeAlsoAllowPolicy, x as sanitizeImageBlocks, xt as buildPluginToolGroups, y as normalizeTextForComparison, yt as resolveSandboxConfigForAgent, z as isContextOverflowError, zt as isSilentReplyText } from "./reply-directives-8FtYI79u.js";
|
|
8
8
|
import { n as isDiagnosticsEnabled, t as emitDiagnosticEvent } from "./diagnostic-events-q1w77c25.js";
|
|
9
|
-
import { $ as collectInboundUserContext, A as resolveChannelResetConfig, At as repairToolUseResultPairing, B as createAsyncLock, Bt as getGlobalPluginRegistry, C as normalizeHttpWebhookUrl, Ct as createMessageCharEstimateCache, Dt as isToolResultMessage, E as parseAbsoluteTimeMs, Et as getToolResultText$1, F as resolveAgentMainSessionKey, Ft as sanitizeToolCallIdsForCloudCodeAssist, G as trimToUndefined, Gt as mergePromptContributions, H as writeJsonAtomic, Ht as hasHookForPlugin, J as drainPendingPrimaryWrites, Jt as buildPluginTurnIdentity, K as openDbSessionManager, Kt as toJsonValue$1, L as resolveMainSessionKey, Lt as hasInterSessionUserProvenance, M as resolveSessionResetType, Mt as sanitizeToolUseResultPairing, N as resolveThreadFlag, Nt as stripToolResultDetails, O as resolveSessionKey, Ot as guardSessionManager, P as canonicalizeMainSessionAlias, Pt as canonicalToolCallIdBase, Q as buildInboundMetaSystemPrompt, R as isPrimarySessionTranscriptFileName, Rt as normalizeInputProvenance, S as inferLegacyName, St as TOOL_RESULT_CHARS_PER_TOKEN_ESTIMATE, T as resolveDefaultCronStaggerMs, Tt as estimateMessageCharsCached, U as resolveGatewayCredentialsFromConfig, Ut as promptBuildResultToContribution, Vt as initializeGlobalHookRunner, Wt as createCurrentUserPromptEnvelope, X as sanitizeJsonb, Xt as resolveProviderRuntimeIdentity, Y as extractLegacyTranscriptEntryFields, Yt as resolveProviderPromptCacheKey, Z as sha256, _ as derivePromptTokens, _t as PREEMPTIVE_TOOL_RESULT_COMPACTION_PLACEHOLDER, a as resolveMirroredTranscriptText, at as stripMessageCarriers, b as makeZeroUsageSnapshot, bt as truncateToolResultToChars, c as createSessionStorageRuntimeFromConfig, ct as resolveTimezone, d as buildEqualityProjection, dt as eventOrder, et as renderInboundUserContext, ft as pickLeaf, g as sanitizeAppendEntry, gt as sessionLikelyHasOversizedToolResults, h as CREATE_CTX_STORAGE_OWNER_SQL, ht as HARD_MAX_TOOL_RESULT_CHARS, i as appendAssistantMessageToSessionTranscript, it as messageTime, j as resolveSessionResetPolicy, jt as sanitizeToolCallInputs, k as evaluateSessionFreshness, kt as openRawToolResultStash, l as resolveSessionStorageConfig, lt as resolveSenderLabel, m as deriveLegacyActorIdentity, mt as capToolResultContent, n as parseSessionThreadInfo, nt as getMessageIngress, o as parseInlineDirectives$1, ot as formatMessageStamp, pt as HIDDEN_HEARTBEAT_CUSTOM_TYPE, q as runSerializedBySession, qt as buildPluginRuntimeIdentity, r as resolveAndPersistSessionFile, rt as isRepresentableEpochMs, s as attachPgPoolErrorListeners, st as formatZonedTimestamp, t as extractDeliveryInfo, tt as attachMessageIngress, u as validateCtxStorage, ut as DB_SESSION_HYDRATION_LIMIT, v as deriveSessionTotalTokens, vt as TOOL_RESULT_TEXT_WEIGHT, w as normalizeCronStaggerMs, wt as estimateContextChars$1, x as normalizeUsage, xt as CHARS_PER_TOKEN_ESTIMATE$2, y as hasNonzeroUsage, yt as truncateTextHeadTail, z as isSessionArchiveArtifactName, zt as getGlobalHookRunner } from "./sessions-
|
|
9
|
+
import { $ as collectInboundUserContext, A as resolveChannelResetConfig, At as repairToolUseResultPairing, B as createAsyncLock, Bt as getGlobalPluginRegistry, C as normalizeHttpWebhookUrl, Ct as createMessageCharEstimateCache, Dt as isToolResultMessage, E as parseAbsoluteTimeMs, Et as getToolResultText$1, F as resolveAgentMainSessionKey, Ft as sanitizeToolCallIdsForCloudCodeAssist, G as trimToUndefined, Gt as mergePromptContributions, H as writeJsonAtomic, Ht as hasHookForPlugin, J as drainPendingPrimaryWrites, Jt as buildPluginTurnIdentity, K as openDbSessionManager, Kt as toJsonValue$1, L as resolveMainSessionKey, Lt as hasInterSessionUserProvenance, M as resolveSessionResetType, Mt as sanitizeToolUseResultPairing, N as resolveThreadFlag, Nt as stripToolResultDetails, O as resolveSessionKey, Ot as guardSessionManager, P as canonicalizeMainSessionAlias, Pt as canonicalToolCallIdBase, Q as buildInboundMetaSystemPrompt, R as isPrimarySessionTranscriptFileName, Rt as normalizeInputProvenance, S as inferLegacyName, St as TOOL_RESULT_CHARS_PER_TOKEN_ESTIMATE, T as resolveDefaultCronStaggerMs, Tt as estimateMessageCharsCached, U as resolveGatewayCredentialsFromConfig, Ut as promptBuildResultToContribution, Vt as initializeGlobalHookRunner, Wt as createCurrentUserPromptEnvelope, X as sanitizeJsonb, Xt as resolveProviderRuntimeIdentity, Y as extractLegacyTranscriptEntryFields, Yt as resolveProviderPromptCacheKey, Z as sha256, _ as derivePromptTokens, _t as PREEMPTIVE_TOOL_RESULT_COMPACTION_PLACEHOLDER, a as resolveMirroredTranscriptText, at as stripMessageCarriers, b as makeZeroUsageSnapshot, bt as truncateToolResultToChars, c as createSessionStorageRuntimeFromConfig, ct as resolveTimezone, d as buildEqualityProjection, dt as eventOrder, et as renderInboundUserContext, ft as pickLeaf, g as sanitizeAppendEntry, gt as sessionLikelyHasOversizedToolResults, h as CREATE_CTX_STORAGE_OWNER_SQL, ht as HARD_MAX_TOOL_RESULT_CHARS, i as appendAssistantMessageToSessionTranscript, it as messageTime, j as resolveSessionResetPolicy, jt as sanitizeToolCallInputs, k as evaluateSessionFreshness, kt as openRawToolResultStash, l as resolveSessionStorageConfig, lt as resolveSenderLabel, m as deriveLegacyActorIdentity, mt as capToolResultContent, n as parseSessionThreadInfo, nt as getMessageIngress, o as parseInlineDirectives$1, ot as formatMessageStamp, pt as HIDDEN_HEARTBEAT_CUSTOM_TYPE, q as runSerializedBySession, qt as buildPluginRuntimeIdentity, r as resolveAndPersistSessionFile, rt as isRepresentableEpochMs, s as attachPgPoolErrorListeners, st as formatZonedTimestamp, t as extractDeliveryInfo, tt as attachMessageIngress, u as validateCtxStorage, ut as DB_SESSION_HYDRATION_LIMIT, v as deriveSessionTotalTokens, vt as TOOL_RESULT_TEXT_WEIGHT, w as normalizeCronStaggerMs, wt as estimateContextChars$1, x as normalizeUsage, xt as CHARS_PER_TOKEN_ESTIMATE$2, y as hasNonzeroUsage, yt as truncateTextHeadTail, z as isSessionArchiveArtifactName, zt as getGlobalHookRunner } from "./sessions-DKv9bCbi.js";
|
|
10
10
|
import { n as onSessionTranscriptUpdate } from "./transcript-events-DGL7W2cG.js";
|
|
11
11
|
import { n as generateSecureUuid, t as generateSecureToken } from "./secure-random-gljjQeWv.js";
|
|
12
|
-
import { _ as recordSystemPromptHashComparison, b as recordCommandPoll, d as logRunCompleted, f as logRunStarted, g as logToolExecutionStarted, h as logToolExecutionCompleted, l as logModelCallError, m as logToolExecutionBlocked, o as logMessageProcessed, p as logSessionStateChange, s as logMessageQueued, v as refreshRunProgress, x as resetCommandPollCount, y as boundDiagnosticContent } from "./diagnostic-
|
|
12
|
+
import { _ as recordSystemPromptHashComparison, b as recordCommandPoll, d as logRunCompleted, f as logRunStarted, g as logToolExecutionStarted, h as logToolExecutionCompleted, l as logModelCallError, m as logToolExecutionBlocked, o as logMessageProcessed, p as logSessionStateChange, s as logMessageQueued, v as refreshRunProgress, x as resetCommandPollCount, y as boundDiagnosticContent } from "./diagnostic-C4pLNG6a.js";
|
|
13
13
|
import { o as redactChannelCorrelation, r as getDiagnosticSessionState } from "./diagnostic-session-state-jW46P4IL.js";
|
|
14
14
|
import { t as redactIdentifier } from "./redact-identifier-DLySVyKh.js";
|
|
15
15
|
import { t as redactSensitiveText } from "./redact-CEFvBGJg.js";
|
|
16
16
|
import { t as CommandLane } from "./lanes-DWpYhh13.js";
|
|
17
|
-
import { a as getCommandLaneSnapshots, c as isQueuedCommandCancellation, i as enqueueCommandInLane, n as clearCommandLane, o as getQueueSize, s as isGatewayDraining, t as CommandLaneAbortedError } from "./command-queue-
|
|
18
|
-
import { S as MAX_IMAGE_BYTES, _ as getFileExtension, b as kindFromMime, d as MEDIA_MAX_BYTES, g as extensionForMime, h as detectMime, m as saveMediaBuffer, n as isSafeFenceBreak, p as getMediaDir, r as parseFenceSpans, s as getImageMetadata, t as findFenceSpanAt, u as resizeToJpeg, v as imageMimeFromFormat, w as mediaKindFromMime, x as normalizeMimeType$1, y as isAudioFileName } from "./fences-
|
|
19
|
-
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-
|
|
20
|
-
import { A as stripLeadingInboundMetadata, B as buildTargetResolverSignature, C as extractToolCallNames, D as sleepWithAbort, E as computeBackoff, F as isRenderablePayload, G as ensureOpenClawModelsJson, H as normalizeTargetForProvider, I as shouldSuppressMessagingToolReplies, K as resolveLedTeam, L as shouldSuppressReasoningPayload, M as applyReplyThreading, N as filterMessagingToolDuplicates, O as readFullTranscriptEntriesFromBackend, P as filterMessagingToolMediaDuplicates, R as createReplyToModeFilterForChannel, S as countToolResults, T as resolveContextTokensForModel, U as buildOutboundSessionContext, V as normalizeChannelTargetInput, W as resolveOutboundSessionId, _ as loadCombinedSessionStoreForGateway, b as throwIfAborted$1, c as createMessageSentEmitter, d as toInternalMessageReceivedContext, f as toInternalMessageTranscribedContext, g as stampReplyActivity, h as fireAndForgetHook, j as applyReplyTagsToPayload, k as transcriptEntriesToMessages, l as deriveInboundMessageHookContext, m as toPluginMessageReceivedEvent, o as normalizeReplyPayloadsForDelivery, p as toPluginMessageContext, q as resolveTeamRoster, s as applyMessageSendingHook, t as deliverOutboundPayloads, u as toInternalMessagePreprocessedContext, v as capArrayByJsonBytes, w as lookupContextTokens, x as loadChannelOutboundAdapter, y as jsonUtf8Bytes, z as resolveReplyToMode } from "./deliver-
|
|
21
|
-
import { B as DEFAULT_AI_SNAPSHOT_MAX_CHARS, C as ensureChromeExtensionRelayServer, M as DEFAULT_UPLOAD_DIR, N as resolveExistingPathsWithinRoot, s as resolveLsofCommandSync } from "./chrome-
|
|
22
|
-
import { r as isLoopbackHost } from "./ws-
|
|
23
|
-
import { a as readFileWithinRoot, c as writeFileWithinRoot, i as openFileWithinRoot, l as PATH_ALIAS_POLICIES, n as copyFileWithinRoot, r as createRootScopedReadFile, t as SafeOpenError } from "./fs-safe-
|
|
17
|
+
import { a as getCommandLaneSnapshots, c as isQueuedCommandCancellation, i as enqueueCommandInLane, n as clearCommandLane, o as getQueueSize, s as isGatewayDraining, t as CommandLaneAbortedError } from "./command-queue-CNStMA4Y.js";
|
|
18
|
+
import { S as MAX_IMAGE_BYTES, _ as getFileExtension, b as kindFromMime, d as MEDIA_MAX_BYTES, g as extensionForMime, h as detectMime, m as saveMediaBuffer, n as isSafeFenceBreak, p as getMediaDir, r as parseFenceSpans, s as getImageMetadata, t as findFenceSpanAt, u as resizeToJpeg, v as imageMimeFromFormat, w as mediaKindFromMime, x as normalizeMimeType$1, y as isAudioFileName } from "./fences-j5vzXLXf.js";
|
|
19
|
+
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-De5Z6lro.js";
|
|
20
|
+
import { A as stripLeadingInboundMetadata, B as buildTargetResolverSignature, C as extractToolCallNames, D as sleepWithAbort, E as computeBackoff, F as isRenderablePayload, G as ensureOpenClawModelsJson, H as normalizeTargetForProvider, I as shouldSuppressMessagingToolReplies, K as resolveLedTeam, L as shouldSuppressReasoningPayload, M as applyReplyThreading, N as filterMessagingToolDuplicates, O as readFullTranscriptEntriesFromBackend, P as filterMessagingToolMediaDuplicates, R as createReplyToModeFilterForChannel, S as countToolResults, T as resolveContextTokensForModel, U as buildOutboundSessionContext, V as normalizeChannelTargetInput, W as resolveOutboundSessionId, _ as loadCombinedSessionStoreForGateway, b as throwIfAborted$1, c as createMessageSentEmitter, d as toInternalMessageReceivedContext, f as toInternalMessageTranscribedContext, g as stampReplyActivity, h as fireAndForgetHook, j as applyReplyTagsToPayload, k as transcriptEntriesToMessages, l as deriveInboundMessageHookContext, m as toPluginMessageReceivedEvent, o as normalizeReplyPayloadsForDelivery, p as toPluginMessageContext, q as resolveTeamRoster, s as applyMessageSendingHook, t as deliverOutboundPayloads, u as toInternalMessagePreprocessedContext, v as capArrayByJsonBytes, w as lookupContextTokens, x as loadChannelOutboundAdapter, y as jsonUtf8Bytes, z as resolveReplyToMode } from "./deliver-DxVojbH7.js";
|
|
21
|
+
import { B as DEFAULT_AI_SNAPSHOT_MAX_CHARS, C as ensureChromeExtensionRelayServer, M as DEFAULT_UPLOAD_DIR, N as resolveExistingPathsWithinRoot, s as resolveLsofCommandSync } from "./chrome-Ct9vb6SC.js";
|
|
22
|
+
import { r as isLoopbackHost } from "./ws-Dt2EocLN.js";
|
|
23
|
+
import { a as readFileWithinRoot, c as writeFileWithinRoot, i as openFileWithinRoot, l as PATH_ALIAS_POLICIES, n as copyFileWithinRoot, r as createRootScopedReadFile, t as SafeOpenError } from "./fs-safe-Bd1xxVwv.js";
|
|
24
24
|
import { i as hasErrnoCode, o as readErrorName, r as formatErrorMessage } from "./errors-yyPKpoXR.js";
|
|
25
|
-
import { a as isBlockedHostnameOrIp, l as normalizeHostname, n as SsrFBlockedError } from "./proxy-env-
|
|
25
|
+
import { a as isBlockedHostnameOrIp, l as normalizeHostname, n as SsrFBlockedError } from "./proxy-env-DPCNy_X3.js";
|
|
26
26
|
import { t as resolveNetworkSsrFPolicy } from "./ssrf-config-DYF6dHGu.js";
|
|
27
|
-
import { A as issueDeviceBootstrapToken, C as callGatewayLeastPrivilege, D as gatewayErrorShapeOf, E as gatewayErrorReason, O as validateSecretsResolveResult, S as callGateway, T as resolveLeastPrivilegeOperatorScopesForMethod, _ as resolveSessionReference, a as buildAgentToAgentReplyContext, b as clearActiveCoordinationDepth, c as resolvePingPongTurns, d as createSessionVisibilityGuard, f as resolveEffectiveSessionToolsVisibility, g as resolveMainSessionAlias, h as resolveInternalSessionKey, i as buildAgentToAgentMessageContext, k as SESSION_LABEL_MAX_LENGTH, l as AuthorizationError, m as resolveDisplaySessionKey, n as requestAuthorizedNudge, o as isAnnounceSkip, p as resolveSandboxedSessionToolContext, r as buildAgentToAgentAnnounceContext, s as isReplySkip, u as createAgentToAgentPolicy, v as resolveVisibleSessionReference, w as randomIdempotencyKey, x as setActiveCoordinationDepth, y as shouldResolveSessionIdInput } from "./nudge-
|
|
28
|
-
import { A as formatToolSummary, C as extractAssistantThinking, D as stripDowngradedToolCallText, E as isAssistantMessage, M as stripReasoningTagsFromText, O as stripMinimaxToolCallXml, S as extractAssistantText$1, T as inferToolMetaFromArgs, _ as createInlineCodeState, a as isEmbeddedPiRunActive, b as onAgentEvent, d as handleMessageEnd, f as handleMessageStart, g as buildCodeSpanIndex, h as emitEmbeddedAgentEvent, i as endInFlightEmbeddedAttempt, j as resolveToolDisplay, k as stripThinkingTagsFromText, l as setActiveEmbeddedRun, m as endModelCall, n as beginInFlightEmbeddedAttempt, o as isEmbeddedPiRunStreaming, p as handleMessageUpdate, r as clearActiveEmbeddedRun, s as queueEmbeddedPiMessage, t as abortEmbeddedPiRun, u as waitForEmbeddedPiRunEnd, w as formatReasoningMessage, x as registerAgentRunContext, y as emitAgentEvent } from "./runs-
|
|
29
|
-
import { C as getDefaultMediaLocalRoots, S as getAgentScopedMediaLocalRoots, _ as resolveChunkNewlinePacking, a as resolveMarkdownTableMode, b as fetchRemoteMedia, c as loadWebMediaRaw, d as chunkMarkdownText, f as chunkMarkdownTextWithMode, g as resolveChunkMode, h as resolveChunkDelivery, l as chunkByNewline, m as chunkTextWithMode, o as getDefaultLocalRoots, p as chunkText, s as loadWebMedia, v as resolveTextChunkLimit, x as readResponseWithLimit, y as MediaFetchError } from "./outbound-attachment-
|
|
30
|
-
import { a as bindAbortRelay, i as resolveProxyFetchFromEnv, n as withStrictGuardedFetchMode, o as fetchWithTimeout, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
31
|
-
import { i as executeWithApiKeyRotation, n as resolveMemorySearchConfig, r as collectProviderApiKeysForExecution } from "./manager-
|
|
32
|
-
import { i as AGENT_LANE_SUBAGENT, r as AGENT_LANE_NESTED, t as startUserSessionRun } from "./user-run-recording-
|
|
33
|
-
import { a as getGatewayInstanceId, n as deriveSessionRunId, o as resolveSessionRunStore, r as inferSessionRunKind, t as createSessionRunRecorder } from "./recorder-
|
|
34
|
-
import { c as enqueueAgentTurn, d as peekDelayedAgentTurn, f as setDelayedReleaseHold, i as AGENT_TURN_TOPIC, l as isClaimableAgentTurnWorkId, m as KeyedAsyncQueue, p as WORKSPACE_LANE_DENIED_REASON, r as tryGetAgentTurnRuntime, s as clearDelayedReleaseHold, u as mergeDelayedAgentTurn } from "./agent-turn-runner-
|
|
35
|
-
import { a as resolveSignalRpcContext, c as streamSignalEvents, n as sendReadReceiptSignal, o as signalCheck, r as sendTypingSignal, s as signalRpcRequest, t as sendMessageSignal, u as resolveFetch } from "./send-
|
|
36
|
-
import { a as DEFAULT_IMESSAGE_PROBE_TIMEOUT_MS, c as normalizeIMessageHandle, i as createIMessageRpcClient, l as parseIMessageTarget, o as formatIMessageChatTarget, r as convertMarkdownTables, s as isAllowedIMessageSender, t as sendMessageIMessage } from "./send-
|
|
37
|
-
import { m as normalizeExtraMemoryPaths, p as listMemoryFiles } from "./query-expansion-
|
|
38
|
-
import { t as isQmdScopeAllowed } from "./qmd-scope-
|
|
27
|
+
import { A as issueDeviceBootstrapToken, C as callGatewayLeastPrivilege, D as gatewayErrorShapeOf, E as gatewayErrorReason, O as validateSecretsResolveResult, S as callGateway, T as resolveLeastPrivilegeOperatorScopesForMethod, _ as resolveSessionReference, a as buildAgentToAgentReplyContext, b as clearActiveCoordinationDepth, c as resolvePingPongTurns, d as createSessionVisibilityGuard, f as resolveEffectiveSessionToolsVisibility, g as resolveMainSessionAlias, h as resolveInternalSessionKey, i as buildAgentToAgentMessageContext, k as SESSION_LABEL_MAX_LENGTH, l as AuthorizationError, m as resolveDisplaySessionKey, n as requestAuthorizedNudge, o as isAnnounceSkip, p as resolveSandboxedSessionToolContext, r as buildAgentToAgentAnnounceContext, s as isReplySkip, u as createAgentToAgentPolicy, v as resolveVisibleSessionReference, w as randomIdempotencyKey, x as setActiveCoordinationDepth, y as shouldResolveSessionIdInput } from "./nudge-CKFTN2YI.js";
|
|
28
|
+
import { A as formatToolSummary, C as extractAssistantThinking, D as stripDowngradedToolCallText, E as isAssistantMessage, M as stripReasoningTagsFromText, O as stripMinimaxToolCallXml, S as extractAssistantText$1, T as inferToolMetaFromArgs, _ as createInlineCodeState, a as isEmbeddedPiRunActive, b as onAgentEvent, d as handleMessageEnd, f as handleMessageStart, g as buildCodeSpanIndex, h as emitEmbeddedAgentEvent, i as endInFlightEmbeddedAttempt, j as resolveToolDisplay, k as stripThinkingTagsFromText, l as setActiveEmbeddedRun, m as endModelCall, n as beginInFlightEmbeddedAttempt, o as isEmbeddedPiRunStreaming, p as handleMessageUpdate, r as clearActiveEmbeddedRun, s as queueEmbeddedPiMessage, t as abortEmbeddedPiRun, u as waitForEmbeddedPiRunEnd, w as formatReasoningMessage, x as registerAgentRunContext, y as emitAgentEvent } from "./runs-Dw8BeXyu.js";
|
|
29
|
+
import { C as getDefaultMediaLocalRoots, S as getAgentScopedMediaLocalRoots, _ as resolveChunkNewlinePacking, a as resolveMarkdownTableMode, b as fetchRemoteMedia, c as loadWebMediaRaw, d as chunkMarkdownText, f as chunkMarkdownTextWithMode, g as resolveChunkMode, h as resolveChunkDelivery, l as chunkByNewline, m as chunkTextWithMode, o as getDefaultLocalRoots, p as chunkText, s as loadWebMedia, v as resolveTextChunkLimit, x as readResponseWithLimit, y as MediaFetchError } from "./outbound-attachment-DHLTkCuI.js";
|
|
30
|
+
import { a as bindAbortRelay, i as resolveProxyFetchFromEnv, n as withStrictGuardedFetchMode, o as fetchWithTimeout, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-BQ-NMG7L.js";
|
|
31
|
+
import { i as executeWithApiKeyRotation, n as resolveMemorySearchConfig, r as collectProviderApiKeysForExecution } from "./manager-CD-sBxdS.js";
|
|
32
|
+
import { i as AGENT_LANE_SUBAGENT, r as AGENT_LANE_NESTED, t as startUserSessionRun } from "./user-run-recording-CWRiZJsh.js";
|
|
33
|
+
import { a as getGatewayInstanceId, n as deriveSessionRunId, o as resolveSessionRunStore, r as inferSessionRunKind, t as createSessionRunRecorder } from "./recorder-DA5NY6nl.js";
|
|
34
|
+
import { c as enqueueAgentTurn, d as peekDelayedAgentTurn, f as setDelayedReleaseHold, i as AGENT_TURN_TOPIC, l as isClaimableAgentTurnWorkId, m as KeyedAsyncQueue, p as WORKSPACE_LANE_DENIED_REASON, r as tryGetAgentTurnRuntime, s as clearDelayedReleaseHold, u as mergeDelayedAgentTurn } from "./agent-turn-runner-CHm-I95T.js";
|
|
35
|
+
import { a as resolveSignalRpcContext, c as streamSignalEvents, n as sendReadReceiptSignal, o as signalCheck, r as sendTypingSignal, s as signalRpcRequest, t as sendMessageSignal, u as resolveFetch } from "./send-DW_8PsC0.js";
|
|
36
|
+
import { a as DEFAULT_IMESSAGE_PROBE_TIMEOUT_MS, c as normalizeIMessageHandle, i as createIMessageRpcClient, l as parseIMessageTarget, o as formatIMessageChatTarget, r as convertMarkdownTables, s as isAllowedIMessageSender, t as sendMessageIMessage } from "./send-CWcFiq7U.js";
|
|
37
|
+
import { m as normalizeExtraMemoryPaths, p as listMemoryFiles } from "./query-expansion-DQ8zm-TE.js";
|
|
38
|
+
import { t as isQmdScopeAllowed } from "./qmd-scope-RFd-g5Qi.js";
|
|
39
39
|
import { createRequire } from "node:module";
|
|
40
40
|
import * as path$1 from "node:path";
|
|
41
41
|
import path, { basename, isAbsolute, join } from "node:path";
|
|
@@ -56,7 +56,7 @@ import { DefaultResourceLoader, SessionManager, SettingsManager, convertToLlm, c
|
|
|
56
56
|
import { EdgeTTS } from "node-edge-tts";
|
|
57
57
|
import MarkdownIt from "markdown-it";
|
|
58
58
|
import net from "node:net";
|
|
59
|
-
import WebSocket
|
|
59
|
+
import WebSocket from "ws";
|
|
60
60
|
import { Worker } from "node:worker_threads";
|
|
61
61
|
import { createJiti } from "jiti";
|
|
62
62
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
@@ -4482,7 +4482,7 @@ async function linkIdentity(params) {
|
|
|
4482
4482
|
const log$69 = createSubsystemLogger("model-catalog");
|
|
4483
4483
|
const modelCatalogPromiseState = resolveProcessScopedMap(Symbol.for("openclaw.agents.model-catalog.modelCatalogPromise"));
|
|
4484
4484
|
const hasLoggedModelCatalogErrorState = resolveProcessScopedMap(Symbol.for("openclaw.agents.model-catalog.hasLoggedModelCatalogError"));
|
|
4485
|
-
const defaultImportPiSdk = () => import("./pi-model-discovery-
|
|
4485
|
+
const defaultImportPiSdk = () => import("./pi-model-discovery-De5Z6lro.js").then((n) => n.r);
|
|
4486
4486
|
let importPiSdk = defaultImportPiSdk;
|
|
4487
4487
|
function getModelCatalogPromise() {
|
|
4488
4488
|
return modelCatalogPromiseState.get("value") ?? null;
|
|
@@ -12741,7 +12741,7 @@ async function routeReply(params) {
|
|
|
12741
12741
|
const resolvedReplyToId = replyToId ?? (channelId === "slack" && threadId != null && threadId !== "" ? String(threadId) : void 0);
|
|
12742
12742
|
const resolvedThreadId = channelId === "slack" ? null : threadId ?? null;
|
|
12743
12743
|
try {
|
|
12744
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
12744
|
+
const { deliverOutboundPayloads } = await import("./deliver-DxVojbH7.js").then((n) => n.n);
|
|
12745
12745
|
const outboundSession = buildOutboundSessionContext({
|
|
12746
12746
|
cfg,
|
|
12747
12747
|
agentId: resolvedAgentId,
|
|
@@ -14786,7 +14786,7 @@ async function sendTranscriptEcho(params) {
|
|
|
14786
14786
|
}
|
|
14787
14787
|
const text = formatEchoTranscript(transcript, params.format ?? DEFAULT_ECHO_TRANSCRIPT_FORMAT);
|
|
14788
14788
|
try {
|
|
14789
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
14789
|
+
const { deliverOutboundPayloads } = await import("./deliver-DxVojbH7.js").then((n) => n.n);
|
|
14790
14790
|
await deliverOutboundPayloads({
|
|
14791
14791
|
cfg,
|
|
14792
14792
|
channel: normalizedChannel,
|
|
@@ -34464,7 +34464,7 @@ async function createModelSelectionState(params) {
|
|
|
34464
34464
|
}
|
|
34465
34465
|
}
|
|
34466
34466
|
if (sessionEntry && sessionStore && sessionKey && sessionEntry.authProfileOverride) {
|
|
34467
|
-
const { ensureAuthProfileStore } = await import("./model-selection-
|
|
34467
|
+
const { ensureAuthProfileStore } = await import("./model-selection-CYS--Nqz.js").then((n) => n.N);
|
|
34468
34468
|
const profile = ensureAuthProfileStore(void 0, { allowKeychainPrompt: false }).profiles[sessionEntry.authProfileOverride];
|
|
34469
34469
|
const providerKey = normalizeProviderId(provider);
|
|
34470
34470
|
if (!profile || normalizeProviderId(profile.provider) !== providerKey) await clearSessionAuthProfileOverride({
|
|
@@ -54245,7 +54245,7 @@ async function deliverSessionMaintenanceWarning(params) {
|
|
|
54245
54245
|
return;
|
|
54246
54246
|
}
|
|
54247
54247
|
try {
|
|
54248
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
54248
|
+
const { deliverOutboundPayloads } = await import("./deliver-DxVojbH7.js").then((n) => n.n);
|
|
54249
54249
|
const outboundSession = buildOutboundSessionContext({
|
|
54250
54250
|
cfg: params.cfg,
|
|
54251
54251
|
sessionKey: params.sessionKey
|
|
@@ -67520,7 +67520,7 @@ function createRuntimeChannel() {
|
|
|
67520
67520
|
reply: {
|
|
67521
67521
|
dispatchReplyWithBufferedBlockDispatcher,
|
|
67522
67522
|
dispatchInboundMessage,
|
|
67523
|
-
agentCommandFromIngress: async (...args) => (await import("./agent-
|
|
67523
|
+
agentCommandFromIngress: async (...args) => (await import("./agent-BDuI5Zvc.js")).agentCommandFromIngress(...args),
|
|
67524
67524
|
dispatchReplyWithDispatcher,
|
|
67525
67525
|
createReplyDispatcherWithTyping,
|
|
67526
67526
|
resolveEffectiveMessagesConfig,
|
|
@@ -67949,7 +67949,7 @@ async function getMemorySearchManager(params) {
|
|
|
67949
67949
|
if (cached) return { manager: cached };
|
|
67950
67950
|
}
|
|
67951
67951
|
try {
|
|
67952
|
-
const { QmdMemoryManager } = await import("./qmd-manager-
|
|
67952
|
+
const { QmdMemoryManager } = await import("./qmd-manager-CgZ9ng9u.js");
|
|
67953
67953
|
const primary = await QmdMemoryManager.create({
|
|
67954
67954
|
cfg: params.cfg,
|
|
67955
67955
|
agentId: params.agentId,
|
|
@@ -67961,7 +67961,7 @@ async function getMemorySearchManager(params) {
|
|
|
67961
67961
|
const wrapper = new FallbackMemoryManager({
|
|
67962
67962
|
primary,
|
|
67963
67963
|
fallbackFactory: async () => {
|
|
67964
|
-
const { MemoryIndexManager } = await import("./manager-
|
|
67964
|
+
const { MemoryIndexManager } = await import("./manager-CD-sBxdS.js").then((n) => n.t);
|
|
67965
67965
|
return await MemoryIndexManager.get(params);
|
|
67966
67966
|
}
|
|
67967
67967
|
}, () => {
|
|
@@ -67976,7 +67976,7 @@ async function getMemorySearchManager(params) {
|
|
|
67976
67976
|
}
|
|
67977
67977
|
}
|
|
67978
67978
|
try {
|
|
67979
|
-
const { MemoryIndexManager } = await import("./manager-
|
|
67979
|
+
const { MemoryIndexManager } = await import("./manager-CD-sBxdS.js").then((n) => n.t);
|
|
67980
67980
|
return { manager: await MemoryIndexManager.get(params) };
|
|
67981
67981
|
} catch (err) {
|
|
67982
67982
|
return {
|
|
@@ -75754,7 +75754,7 @@ function createPluginRuntime(options = {}) {
|
|
|
75754
75754
|
workStates: readTaskWorkStates
|
|
75755
75755
|
},
|
|
75756
75756
|
resolveLearningWorkspaceDir: (agentId) => resolveLearningWorkspaceDir(loadConfig(), agentId),
|
|
75757
|
-
sessions: { startUserRun: async (params) => (await import("./user-run-recording-
|
|
75757
|
+
sessions: { startUserRun: async (params) => (await import("./user-run-recording-CWRiZJsh.js").then((n) => n.n)).startUserSessionRun(params) }
|
|
75758
75758
|
};
|
|
75759
75759
|
Object.defineProperty(runtime, "analysis", {
|
|
75760
75760
|
enumerable: true,
|
|
@@ -77309,7 +77309,7 @@ async function runBeforeToolCallHook(args) {
|
|
|
77309
77309
|
const params = args.params;
|
|
77310
77310
|
if (args.ctx?.sessionKey) {
|
|
77311
77311
|
const { getDiagnosticSessionState } = await import("./diagnostic-session-state-jW46P4IL.js").then((n) => n.n);
|
|
77312
|
-
const { logToolLoopAction } = await import("./diagnostic-
|
|
77312
|
+
const { logToolLoopAction } = await import("./diagnostic-C4pLNG6a.js").then((n) => n.n);
|
|
77313
77313
|
const { detectToolCallLoop, recordToolCall } = await import("./tool-loop-detection-B-v0TDX5.js");
|
|
77314
77314
|
const sessionState = getDiagnosticSessionState({
|
|
77315
77315
|
sessionKey: args.ctx.sessionKey,
|
|
@@ -82140,7 +82140,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
82140
82140
|
* Throws if the connection is not open.
|
|
82141
82141
|
*/
|
|
82142
82142
|
send(event) {
|
|
82143
|
-
if (!this.ws || this.ws.readyState !== WebSocket
|
|
82143
|
+
if (!this.ws || this.ws.readyState !== WebSocket.OPEN) throw new Error(`OpenAIWebSocketManager: cannot send — connection is not open (readyState=${this.ws?.readyState ?? "no socket"})`);
|
|
82144
82144
|
this.ws.send(JSON.stringify(event));
|
|
82145
82145
|
}
|
|
82146
82146
|
/**
|
|
@@ -82157,7 +82157,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
82157
82157
|
* Returns true if the WebSocket is currently open and ready to send.
|
|
82158
82158
|
*/
|
|
82159
82159
|
isConnected() {
|
|
82160
|
-
return this.ws !== null && this.ws.readyState === WebSocket
|
|
82160
|
+
return this.ws !== null && this.ws.readyState === WebSocket.OPEN;
|
|
82161
82161
|
}
|
|
82162
82162
|
/**
|
|
82163
82163
|
* Permanently closes the WebSocket connection and disables auto-reconnect.
|
|
@@ -82167,7 +82167,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
82167
82167
|
this._cancelRetryTimer();
|
|
82168
82168
|
if (this.ws) {
|
|
82169
82169
|
this.ws.removeAllListeners();
|
|
82170
|
-
if (this.ws.readyState === WebSocket
|
|
82170
|
+
if (this.ws.readyState === WebSocket.OPEN || this.ws.readyState === WebSocket.CONNECTING) this.ws.close(1e3, "Client closed");
|
|
82171
82171
|
this.ws = null;
|
|
82172
82172
|
}
|
|
82173
82173
|
}
|
|
@@ -82177,7 +82177,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
|
|
|
82177
82177
|
reject(/* @__PURE__ */ new Error("OpenAIWebSocketManager: apiKey is required before connecting."));
|
|
82178
82178
|
return;
|
|
82179
82179
|
}
|
|
82180
|
-
const socket = new WebSocket
|
|
82180
|
+
const socket = new WebSocket(this.wsUrl, { headers: {
|
|
82181
82181
|
Authorization: `Bearer ${this.apiKey}`,
|
|
82182
82182
|
"OpenAI-Beta": "responses-websocket=v1"
|
|
82183
82183
|
} });
|