@bitseek/claw 1.3.8-beta.3 → 1.3.8-beta.5
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/build-info.json +2 -2
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{command-registry-Ciq2wbUi.js → command-registry-KXGyogjq.js} +5 -5
- package/dist/{completion-cli-JABAzgO6.js → completion-cli-BGeFk-i7.js} +1 -1
- package/dist/{completion-cli-BtWS51xD.js → completion-cli-BH3R1r0d.js} +2 -2
- package/dist/{doctor-completion-BEtcv-8P.js → doctor-completion-CQ-V4ern.js} +1 -1
- package/dist/{doctor-completion-YtQqTVcr.js → doctor-completion-CQQTAFrB.js} +1 -1
- package/dist/entry.js +2 -2
- package/dist/{gateway-cli-D1e4MuAA.js → gateway-cli-BoghZX5v.js} +1 -1
- package/dist/{gateway-cli-hP7_aftQ.js → gateway-cli-Bz5rdgHj.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{onboard-Ch8Y1L6r.js → onboard-CCy8vS5I.js} +1 -1
- package/dist/{onboard-CqSuI-jq.js → onboard-DRDZmQ7G.js} +1 -1
- package/dist/{onboarding-Dp4X7ISI.js → onboarding-CYRsk4iI.js} +1 -1
- package/dist/{onboarding-BM2AMtOF.js → onboarding-K3WUGDqA.js} +1 -1
- package/dist/{onboarding.finalize-8dcfbjPv.js → onboarding.finalize-DCXnhpBY.js} +3 -3
- package/dist/{onboarding.finalize-DyQnfLTz.js → onboarding.finalize-DWNKIT8w.js} +4 -4
- package/dist/plugin-sdk/{accounts-DFIfXHdI.js → accounts-B_Sil4df.js} +3 -3
- package/dist/plugin-sdk/{accounts-BME088co.js → accounts-CqgyHS8h.js} +1 -1
- package/dist/plugin-sdk/{accounts-CxgIc7BC.js → accounts-kIersDAH.js} +1 -1
- package/dist/plugin-sdk/{active-listener-Dx4YdW0B.js → active-listener-B1c6rQRy.js} +1 -1
- package/dist/plugin-sdk/{agent-scope-BL5NPpGJ.js → agent-scope-DS0HILk_.js} +3 -3
- package/dist/plugin-sdk/{api-key-rotation-DZ1mvKN0.js → api-key-rotation-C2Z5xB6w.js} +2 -2
- package/dist/plugin-sdk/{audio-preflight-B8r8qUhZ.js → audio-preflight-Byc0yvPV.js} +33 -33
- package/dist/plugin-sdk/{audio-transcription-runner-B8gQ16hV.js → audio-transcription-runner-DHcTy4Wb.js} +10 -10
- package/dist/plugin-sdk/{bindings-YKerL1Tc.js → bindings-D8UvbNti.js} +2 -2
- package/dist/plugin-sdk/{channel-activity-Dzyx86FD.js → channel-activity-CMtaqeTg.js} +3 -3
- package/dist/plugin-sdk/{channel-web-dQSyVWDp.js → channel-web-D3N-Ttls.js} +23 -23
- package/dist/plugin-sdk/{chrome-Hte84S6l.js → chrome-DoDlUT7F.js} +7 -7
- package/dist/plugin-sdk/{chunk-4pLJcTE-.js → chunk-BuHZrtLn.js} +1 -1
- package/dist/plugin-sdk/{command-format-TmcJI6nP.js → command-format-9ttCUvaP.js} +1 -1
- package/dist/plugin-sdk/{commands-registry-D1UwEKAH.js → commands-registry-ydkoxruZ.js} +5 -5
- package/dist/plugin-sdk/{config-kqUrcUGI.js → config-BkeO1N4t.js} +10 -10
- package/dist/plugin-sdk/{deliver-DymnzypV.js → deliver-BcAT1l6Y.js} +11 -11
- package/dist/plugin-sdk/{diagnostic-1MgpiorV.js → diagnostic-BefhWusS.js} +2 -2
- package/dist/plugin-sdk/{dock-Csf-65jq.js → dock-yYEdNzbx.js} +6 -6
- package/dist/plugin-sdk/{errors-BRahpZsP.js → errors-D2KyTKs6.js} +1 -1
- package/dist/plugin-sdk/{fetch-guard-cD2GBmNp.js → fetch-guard-BC92RxgN.js} +2 -2
- package/dist/plugin-sdk/{fs-safe-DgdRzasF.js → fs-safe-CC4mG_Hc.js} +3 -3
- package/dist/plugin-sdk/{image-m9sEMr_K.js → image-Cjm_y1ht.js} +6 -6
- package/dist/plugin-sdk/{image-ops-DhVTERkS.js → image-ops-CfQjZch5.js} +1 -1
- package/dist/plugin-sdk/index.js +64 -64
- package/dist/plugin-sdk/{ir-DyMWDxUp.js → ir-CLKvSg7X.js} +6 -6
- package/dist/plugin-sdk/{local-roots-ChmGReXd.js → local-roots-DYmtEf6P.js} +4 -4
- package/dist/plugin-sdk/{logger-BwzMchOl.js → logger-Dqmpx59X.js} +1 -1
- package/dist/plugin-sdk/{login-DIgrxuIQ.js → login-DYEbRdfH.js} +6 -6
- package/dist/plugin-sdk/{login-qr-DeAbaqfx.js → login-qr-0YUEfC35.js} +9 -9
- package/dist/plugin-sdk/{manager-Bic1h3Nu.js → manager-J_9hr0Yu.js} +10 -10
- package/dist/plugin-sdk/{markdown-tables-BEWLluuz.js → markdown-tables-BA_MdGIq.js} +1 -1
- package/dist/plugin-sdk/{message-channel-Be6xIObc.js → message-channel-CeYrurhu.js} +1 -1
- package/dist/plugin-sdk/{outbound-D7OdBk5M.js → outbound-B386FQiU.js} +7 -7
- package/dist/plugin-sdk/{outbound-attachment-Y-wO2Csk.js → outbound-attachment-DgC7KgEZ.js} +2 -2
- package/dist/plugin-sdk/{path-alias-guards-CsekuFRi.js → path-alias-guards-KB1li1UU.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-helpers-BWFPgWTA.js → pi-embedded-helpers-CbevdnHV.js} +17 -17
- package/dist/plugin-sdk/{pi-model-discovery-DRomJojM.js → pi-model-discovery-Blr1NdM4.js} +1 -1
- package/dist/plugin-sdk/{plugins-DKZ5hSLA.js → plugins-Dupyelyu.js} +6 -6
- package/dist/plugin-sdk/{proxy-DIYzaAvh.js → proxy-CnPaiSZ0.js} +1 -1
- package/dist/plugin-sdk/{proxy-fetch-X6Ja_eZx.js → proxy-fetch-BY4mmpys.js} +1 -1
- package/dist/plugin-sdk/{pw-ai-MuLgIL01.js → pw-ai-C1rLCgeF.js} +13 -13
- package/dist/plugin-sdk/{qmd-manager-D3p7PB5n.js → qmd-manager-BtfjLkaZ.js} +8 -8
- package/dist/plugin-sdk/{query-expansion-C90Jc5uo.js → query-expansion-DgHoeKXG.js} +2 -2
- package/dist/plugin-sdk/{redact-DEfi9F2o.js → redact-Civ2olvH.js} +1 -1
- package/dist/plugin-sdk/{registry-BfD4IdFK.js → registry-Cq-TQPU8.js} +2 -2
- package/dist/plugin-sdk/{replies-GRjUBMUL.js → replies-a2WeMkU6.js} +3 -3
- package/dist/plugin-sdk/{reply-BlPlf4OC.js → reply-C2XVty9G.js} +93 -93
- package/dist/plugin-sdk/{reply-prefix-CobEDhG_.js → reply-prefix-BRomwQau.js} +1 -1
- package/dist/plugin-sdk/{resolve-outbound-target-DkNri48r.js → resolve-outbound-target-B_xKgqWe.js} +2 -2
- package/dist/plugin-sdk/{resolve-route-fu19EHnm.js → resolve-route-yLtq9xkG.js} +4 -4
- package/dist/plugin-sdk/{retry-Agt7ZiSn.js → retry-D9aKv766.js} +1 -1
- package/dist/plugin-sdk/{send-BUpepCol.js → send-Bs-YbYdN.js} +6 -6
- package/dist/plugin-sdk/{send-BB06ROuk.js → send-Ct2mLh8U.js} +15 -15
- package/dist/plugin-sdk/{send-C5ymrC3h.js → send-WwwzoTNW.js} +7 -7
- package/dist/plugin-sdk/{send-DwXcBQYC.js → send-_MTxUi5p.js} +8 -8
- package/dist/plugin-sdk/{send-CvC0d45Z.js → send-kJXSgFcu.js} +10 -10
- package/dist/plugin-sdk/{session-D8BNggg2.js → session-Bfpm71Tg.js} +5 -5
- package/dist/plugin-sdk/{session-meta-DYb6KCvG.js → session-meta-CM4K7B00.js} +1 -1
- package/dist/plugin-sdk/{sessions-BtJmhzev.js → sessions-DFx8MKSO.js} +6 -6
- package/dist/plugin-sdk/{skill-commands-C3OZ4W61.js → skill-commands-CakvOluN.js} +5 -5
- package/dist/plugin-sdk/{skills-CIvz2coj.js → skills-CZFBOkwT.js} +8 -8
- package/dist/plugin-sdk/{ssrf-EGzUkeVq.js → ssrf-BjVCUeM7.js} +1 -1
- package/dist/plugin-sdk/{store-Dij_2k2X.js → store-DALs5PIC.js} +2 -2
- package/dist/plugin-sdk/{subsystem-C84uWxqx.js → subsystem-DQdKZm8Z.js} +2 -2
- package/dist/plugin-sdk/{tables-CTWsNiUf.js → tables-BQwHnOX0.js} +1 -1
- package/dist/plugin-sdk/{target-errors-Bgd_Uo0g.js → target-errors-DqlHqAmV.js} +2 -2
- package/dist/plugin-sdk/{tokens-B9E-mnf_.js → tokens-C_Ieeb03.js} +1 -1
- package/dist/plugin-sdk/{tool-images-0gnewwTL.js → tool-images-RhD8geto.js} +2 -2
- package/dist/plugin-sdk/{tool-loop-detection-Bsh07kcw.js → tool-loop-detection-CKnmaEeR.js} +2 -2
- package/dist/plugin-sdk/{utils-BA7Xm0uM.js → utils-hxOwZduA.js} +1 -1
- package/dist/plugin-sdk/web-DLrSMEN4.js +72 -0
- package/dist/plugin-sdk/{whatsapp-actions-BLoPRR5B.js → whatsapp-actions-CudQXAzF.js} +25 -25
- package/dist/{program-5vm1a5f-.js → program-Cieni7Xt.js} +2 -2
- package/dist/{program-context-uwFKpk8g.js → program-context-CSoqzjKP.js} +7 -7
- package/dist/{prompt-select-styled-ByCoxIUa.js → prompt-select-styled-D6jmAM3G.js} +1 -1
- package/dist/{prompt-select-styled-D5N-DZSk.js → prompt-select-styled-fHxgdWKw.js} +1 -1
- package/dist/{register.init-B26Ry-q0.js → register.init-ChyHcEAX.js} +9 -19
- package/dist/{register.init-BzRts3RZ.js → register.init-EOlDrQTS.js} +9 -19
- package/dist/{register.maintenance-DZZc7WGW.js → register.maintenance-BDzDWfcQ.js} +5 -5
- package/dist/{register.maintenance-BTwdTZnP.js → register.maintenance-oeU7LZwS.js} +4 -4
- package/dist/{register.onboard-ps-7r0Bx.js → register.onboard-CVQf1v2L.js} +2 -2
- package/dist/{register.onboard-kzLJdF35.js → register.onboard-hEHn_6vK.js} +2 -2
- package/dist/{register.setup-DFniVrQp.js → register.setup-AO3Q_A2R.js} +2 -2
- package/dist/{register.setup-C5qExQuD.js → register.setup-C10I-vNI.js} +2 -2
- package/dist/{register.subclis-o8k-y9CC.js → register.subclis-Bhh6lzn8.js} +3 -3
- package/dist/{run-main-CEEV_P4Y.js → run-main-CxvcpDfm.js} +3 -3
- package/dist/{update-cli-D2pd7IJi.js → update-cli-BRcY8YqE.js} +5 -5
- package/dist/{update-cli-CO3mOkqg.js → update-cli-Bygcs5wC.js} +4 -4
- package/package.json +1 -1
- package/dist/plugin-sdk/web-D48I7g5u.js +0 -72
|
@@ -2,12 +2,12 @@ import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
|
2
2
|
import { c as normalizeAgentId, g as isBlockedObjectKey, t as DEFAULT_AGENT_ID } from "./session-key-CVIXEtLx.js";
|
|
3
3
|
import { c as resolveStateDir, d as resolveRequiredHomeDir, i as resolveDefaultConfigCandidates, l as expandHomePrefix, r as resolveConfigPath, s as resolveOAuthPath, t as DEFAULT_GATEWAY_PORT } from "./paths-STHPF-Vp.js";
|
|
4
4
|
import { a as saveJsonFile, i as loadJsonFile, r as resolveCopilotApiToken, t as DEFAULT_COPILOT_API_BASE_URL } from "./github-copilot-token-OlEJk9vh.js";
|
|
5
|
-
import { n as stripAnsi, t as createSubsystemLogger } from "./subsystem-
|
|
6
|
-
import { C as isPlainObject$2, c as isRecord$3, h as resolveUserPath, p as resolveConfigDir } from "./utils-
|
|
7
|
-
import { n as isTruthyEnvValue, t as formatCliCommand } from "./command-format-
|
|
8
|
-
import { B as isPathInside$2, G as resolveAgentModelPrimaryValue, K as toAgentModelListLike, N as openBoundaryFileSync, T as resolveWorkspaceExtensionsDir, a as resolveAgentEffectiveModelPrimary, c as resolveDefaultAgentId, j as canUseBoundaryFileOpen, k as runExec, r as resolveAgentConfig, s as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
5
|
+
import { n as stripAnsi, t as createSubsystemLogger } from "./subsystem-DQdKZm8Z.js";
|
|
6
|
+
import { C as isPlainObject$2, c as isRecord$3, h as resolveUserPath, p as resolveConfigDir } from "./utils-hxOwZduA.js";
|
|
7
|
+
import { n as isTruthyEnvValue, t as formatCliCommand } from "./command-format-9ttCUvaP.js";
|
|
8
|
+
import { B as isPathInside$2, G as resolveAgentModelPrimaryValue, K as toAgentModelListLike, N as openBoundaryFileSync, T as resolveWorkspaceExtensionsDir, a as resolveAgentEffectiveModelPrimary, c as resolveDefaultAgentId, j as canUseBoundaryFileOpen, k as runExec, r as resolveAgentConfig, s as resolveAgentWorkspaceDir } from "./agent-scope-DS0HILk_.js";
|
|
9
9
|
import { t as runTasksWithConcurrency } from "./run-with-concurrency-Ckp-v-FK.js";
|
|
10
|
-
import { s as normalizeChatChannelId, t as CHANNEL_IDS } from "./registry-
|
|
10
|
+
import { s as normalizeChatChannelId, t as CHANNEL_IDS } from "./registry-Cq-TQPU8.js";
|
|
11
11
|
import { createRequire } from "node:module";
|
|
12
12
|
import fs from "node:fs";
|
|
13
13
|
import path from "node:path";
|
|
@@ -15,7 +15,7 @@ import os from "node:os";
|
|
|
15
15
|
import fs$1 from "node:fs/promises";
|
|
16
16
|
import crypto, { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
17
17
|
import { isDeepStrictEqual } from "node:util";
|
|
18
|
-
import
|
|
18
|
+
import JSON5 from "json5";
|
|
19
19
|
import dotenv from "dotenv";
|
|
20
20
|
import { execFileSync, spawn } from "node:child_process";
|
|
21
21
|
import { fileURLToPath } from "node:url";
|
|
@@ -6828,7 +6828,7 @@ const defaultResolver = {
|
|
|
6828
6828
|
resolvedPath,
|
|
6829
6829
|
rootRealDir
|
|
6830
6830
|
}),
|
|
6831
|
-
parseJson: (raw) =>
|
|
6831
|
+
parseJson: (raw) => JSON5.parse(raw)
|
|
6832
6832
|
};
|
|
6833
6833
|
/**
|
|
6834
6834
|
* Resolves all $include directives in a parsed config object.
|
|
@@ -15875,7 +15875,7 @@ function resolveConfigPathForDeps(deps) {
|
|
|
15875
15875
|
function normalizeDeps(overrides = {}) {
|
|
15876
15876
|
return {
|
|
15877
15877
|
fs: overrides.fs ?? fs,
|
|
15878
|
-
json5: overrides.json5 ??
|
|
15878
|
+
json5: overrides.json5 ?? JSON5,
|
|
15879
15879
|
env: overrides.env ?? process.env,
|
|
15880
15880
|
homedir: overrides.homedir ?? (() => resolveRequiredHomeDir(overrides.env ?? process.env, os.homedir)),
|
|
15881
15881
|
configPath: overrides.configPath ?? "",
|
|
@@ -15886,11 +15886,11 @@ function maybeLoadDotEnvForConfig(env) {
|
|
|
15886
15886
|
if (env !== process.env) return;
|
|
15887
15887
|
loadDotEnv({ quiet: true });
|
|
15888
15888
|
}
|
|
15889
|
-
function parseConfigJson5(raw, json5
|
|
15889
|
+
function parseConfigJson5(raw, json5 = JSON5) {
|
|
15890
15890
|
try {
|
|
15891
15891
|
return {
|
|
15892
15892
|
ok: true,
|
|
15893
|
-
parsed: json5
|
|
15893
|
+
parsed: json5.parse(raw)
|
|
15894
15894
|
};
|
|
15895
15895
|
} catch (err) {
|
|
15896
15896
|
return {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { h as normalizeOptionalAccountId, m as normalizeAccountId } from "./session-key-CVIXEtLx.js";
|
|
3
3
|
import { c as resolveStateDir } from "./paths-STHPF-Vp.js";
|
|
4
|
-
import { t as createSubsystemLogger, u as logVerbose } from "./subsystem-
|
|
5
|
-
import { b as createInternalHookEvent, c as getActivePluginRegistry, u as getActivePluginRegistryVersion, x as triggerInternalHook } from "./registry-
|
|
6
|
-
import { t as getChannelDock } from "./dock-
|
|
7
|
-
import { i as resolveMirroredTranscriptText, r as appendAssistantMessageToSessionTranscript, w as parseInlineDirectives } from "./sessions-
|
|
8
|
-
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-
|
|
9
|
-
import { t as getAgentScopedMediaLocalRoots } from "./local-roots-
|
|
10
|
-
import { c as resolveChunkMode, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit, n as chunkByParagraph, p as parseFenceSpans } from "./chunk-
|
|
11
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
12
|
-
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-
|
|
13
|
-
import { i as isMessagingToolDuplicate } from "./pi-embedded-helpers-
|
|
4
|
+
import { t as createSubsystemLogger, u as logVerbose } from "./subsystem-DQdKZm8Z.js";
|
|
5
|
+
import { b as createInternalHookEvent, c as getActivePluginRegistry, u as getActivePluginRegistryVersion, x as triggerInternalHook } from "./registry-Cq-TQPU8.js";
|
|
6
|
+
import { t as getChannelDock } from "./dock-yYEdNzbx.js";
|
|
7
|
+
import { i as resolveMirroredTranscriptText, r as appendAssistantMessageToSessionTranscript, w as parseInlineDirectives } from "./sessions-DFx8MKSO.js";
|
|
8
|
+
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-Dupyelyu.js";
|
|
9
|
+
import { t as getAgentScopedMediaLocalRoots } from "./local-roots-DYmtEf6P.js";
|
|
10
|
+
import { c as resolveChunkMode, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit, n as chunkByParagraph, p as parseFenceSpans } from "./chunk-BuHZrtLn.js";
|
|
11
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-BA_MdGIq.js";
|
|
12
|
+
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-C_Ieeb03.js";
|
|
13
|
+
import { i as isMessagingToolDuplicate } from "./pi-embedded-helpers-CbevdnHV.js";
|
|
14
14
|
import { n as generateSecureUuid } from "./secure-random-C5PtFEje.js";
|
|
15
|
-
import { l as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-
|
|
15
|
+
import { l as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-Bs-YbYdN.js";
|
|
16
16
|
import fs from "node:fs";
|
|
17
17
|
import path from "node:path";
|
|
18
18
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { n as loadConfig } from "./config-
|
|
3
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
2
|
+
import { n as loadConfig } from "./config-BkeO1N4t.js";
|
|
3
|
+
import { t as createSubsystemLogger } from "./subsystem-DQdKZm8Z.js";
|
|
4
4
|
import { i as pruneDiagnosticSessionStates, r as getDiagnosticSessionState, t as diagnosticSessionStates } from "./diagnostic-session-state-Wd5tNeQG.js";
|
|
5
5
|
|
|
6
6
|
//#region src/infra/diagnostic-events.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { m as normalizeAccountId } from "./session-key-CVIXEtLx.js";
|
|
2
|
-
import { i as resolveWhatsAppAccount } from "./accounts-
|
|
3
|
-
import { d as normalizeE164, o as escapeRegExp } from "./utils-
|
|
4
|
-
import { d as requireActivePluginRegistry, n as CHAT_CHANNEL_ORDER, r as getChatChannelMeta } from "./registry-
|
|
2
|
+
import { i as resolveWhatsAppAccount } from "./accounts-B_Sil4df.js";
|
|
3
|
+
import { d as normalizeE164, o as escapeRegExp } from "./utils-hxOwZduA.js";
|
|
4
|
+
import { d as requireActivePluginRegistry, n as CHAT_CHANNEL_ORDER, r as getChatChannelMeta } from "./registry-Cq-TQPU8.js";
|
|
5
5
|
import { t as resolveAccountEntry } from "./account-lookup-BCxEEOS8.js";
|
|
6
|
-
import { A as resolveSlackAccount, B as resolveDiscordAccount, C as resolveTelegramAccount, F as normalizeWhatsAppTarget, j as resolveSlackReplyToMode } from "./plugins-
|
|
7
|
-
import { r as resolveIMessageAccount } from "./accounts-
|
|
8
|
-
import { i as resolveSignalAccount } from "./accounts-
|
|
6
|
+
import { A as resolveSlackAccount, B as resolveDiscordAccount, C as resolveTelegramAccount, F as normalizeWhatsAppTarget, j as resolveSlackReplyToMode } from "./plugins-Dupyelyu.js";
|
|
7
|
+
import { r as resolveIMessageAccount } from "./accounts-kIersDAH.js";
|
|
8
|
+
import { i as resolveSignalAccount } from "./accounts-CqgyHS8h.js";
|
|
9
9
|
|
|
10
10
|
//#region src/config/types.tools.ts
|
|
11
11
|
const TOOLS_BY_SENDER_KEY_TYPES = [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as logWarn } from "./logger-
|
|
1
|
+
import { i as logWarn } from "./logger-Dqmpx59X.js";
|
|
2
2
|
import { t as bindAbortRelay } from "./fetch-timeout-C-qHqfzG.js";
|
|
3
|
-
import { c as resolvePinnedHostnameWithPolicy, n as closeDispatcher, r as createPinnedDispatcher, t as SsrFBlockedError, u as hasProxyEnvConfigured } from "./ssrf-
|
|
3
|
+
import { c as resolvePinnedHostnameWithPolicy, n as closeDispatcher, r as createPinnedDispatcher, t as SsrFBlockedError, u as hasProxyEnvConfigured } from "./ssrf-BjVCUeM7.js";
|
|
4
4
|
import { EnvHttpProxyAgent } from "undici";
|
|
5
5
|
|
|
6
6
|
//#region src/infra/net/fetch-guard.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { l as expandHomePrefix } from "./paths-STHPF-Vp.js";
|
|
2
|
-
import { B as isPathInside, P as sameFileIdentity, R as hasNodeErrorCode, V as isSymlinkOpenError, z as isNotFoundPathError } from "./agent-scope-
|
|
3
|
-
import { i as logWarn } from "./logger-
|
|
4
|
-
import { n as assertNoPathAliasEscape } from "./path-alias-guards-
|
|
2
|
+
import { B as isPathInside, P as sameFileIdentity, R as hasNodeErrorCode, V as isSymlinkOpenError, z as isNotFoundPathError } from "./agent-scope-DS0HILk_.js";
|
|
3
|
+
import { i as logWarn } from "./logger-Dqmpx59X.js";
|
|
4
|
+
import { n as assertNoPathAliasEscape } from "./path-alias-guards-KB1li1UU.js";
|
|
5
5
|
import { constants } from "node:fs";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import os from "node:os";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { $t as applyConfigEnvVars, Dn as getApiKeyForModel, _n as normalizeProviders, bn as resolveImplicitProviders, kn as requireApiKey, n as loadConfig, qn as resolveOpenClawAgentDir, tr as normalizeSecretInput, vn as resolveImplicitBedrockProvider, yn as resolveImplicitCopilotProvider } from "./config-
|
|
3
|
-
import { _ as shortenHomeInString, c as isRecord } from "./utils-
|
|
4
|
-
import { G as resolveAgentModelPrimaryValue, W as resolveAgentModelFallbackValues } from "./agent-scope-
|
|
5
|
-
import { n as redactToolDetail } from "./redact-
|
|
6
|
-
import { F as sanitizeUserFacingText } from "./pi-embedded-helpers-
|
|
7
|
-
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-
|
|
2
|
+
import { $t as applyConfigEnvVars, Dn as getApiKeyForModel, _n as normalizeProviders, bn as resolveImplicitProviders, kn as requireApiKey, n as loadConfig, qn as resolveOpenClawAgentDir, tr as normalizeSecretInput, vn as resolveImplicitBedrockProvider, yn as resolveImplicitCopilotProvider } from "./config-BkeO1N4t.js";
|
|
3
|
+
import { _ as shortenHomeInString, c as isRecord } from "./utils-hxOwZduA.js";
|
|
4
|
+
import { G as resolveAgentModelPrimaryValue, W as resolveAgentModelFallbackValues } from "./agent-scope-DS0HILk_.js";
|
|
5
|
+
import { n as redactToolDetail } from "./redact-Civ2olvH.js";
|
|
6
|
+
import { F as sanitizeUserFacingText } from "./pi-embedded-helpers-CbevdnHV.js";
|
|
7
|
+
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-Blr1NdM4.js";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import fs from "node:fs/promises";
|
|
10
10
|
import { complete } from "@mariozechner/pi-ai";
|
package/dist/plugin-sdk/index.js
CHANGED
|
@@ -1,76 +1,76 @@
|
|
|
1
1
|
import { d as resolveThreadSessionKeys, m as normalizeAccountId, p as DEFAULT_ACCOUNT_ID } from "./session-key-CVIXEtLx.js";
|
|
2
|
-
import { a as resolveWhatsAppAuthDir, i as resolveWhatsAppAccount, n as listWhatsAppAccountIds, r as resolveDefaultWhatsAppAccountId, v as createAccountListHelpers } from "./accounts-
|
|
3
|
-
import { $ as evictOldHistoryKeys, $t as autoBindSpawnedDiscordSubagent, A as resolveDiscordUserAllowlist, At as resolveDefaultGroupPolicy, B as createTypingCallbacks, Bt as readJsonBodyWithLimit, Ct as resolveDmGroupAccessWithLists, D as resolveSlackUserAllowlist, Dt as GROUP_POLICY_BLOCKED_LABEL, E as parseTelegramThreadId, Et as resolveControlCommandGate, F as stringEnum, Ft as DEFAULT_WEBHOOK_BODY_TIMEOUT_MS, G as resolveMentionGatingWithBypass, Gt as isDangerousNameMatchingEnabled, H as shouldAckReaction, Ht as requestBodyErrorToText, I as recordInboundSession, It as DEFAULT_WEBHOOK_MAX_BODY_BYTES, J as DEFAULT_GROUP_HISTORY_LIMIT, Jt as registerAcpRuntimeBackend, K as mergeAllowlist, Kt as registerPluginHttpRoute, L as logAckFailure, Lt as RequestBodyLimitError, M as collectDiscordAuditChannelIds, Mt as resolveRuntimeGroupPolicy, N as formatDocsLink, Nt as warnMissingProviderGroupPolicyFallbackOnce, O as resolveSlackChannelAllowlist, Ot as resetMissingProviderGroupPolicyFallbackWarningsForTesting, P as optionalStringEnum, Pt as pruneMapToMaxSize, Q as clearHistoryEntriesIfEnabled, Qt as AcpRuntimeError, R as logInboundDrop, Rt as installRequestBodyLimitGuard, S as attachFooterText, St as resolveDmGroupAccessWithCommandGate, T as parseTelegramReplyToMessageId, U as shouldAckReactionForWhatsApp, Ut as KeyedAsyncQueue, V as removeAckReactionAfterReply, Vt as readRequestBodyWithLimit, W as resolveMentionGating, Wt as enqueueKeyedTask, X as buildPendingHistoryContextFromMap, Xt as unregisterAcpRuntimeBackend, Yt as requireAcpRuntimeBackend, Z as clearHistoryEntries, Zt as ACP_ERROR_CODES, a as listLineAccountIds, an as BLUEBUBBLES_ACTIONS, at as approveDevicePairing, b as stripMarkdown, bt as resolveDmAllowState, c as resolveLineAccount, cn as CHANNEL_MESSAGE_ACTION_NAMES, dt as formatZonedTimestamp, en as listThreadBindingsBySessionKey, et as recordPendingHistoryEntry, ft as resolveTimezone, gt as issuePairingChallenge, ht as extractToolSend, in as resolveAllowlistMatchSimple, it as createDedupeCache, j as resolveDiscordChannelAllowlist, jt as resolveOpenProviderRuntimeGroupPolicy, k as detectBinary, kt as resolveAllowlistProviderRuntimeGroupPolicy, lt as formatInboundFromLabel, mt as buildMediaPayload, nn as formatAllowlistMatchMeta, o as normalizeAccountId$1, on as BLUEBUBBLES_ACTION_NAMES, ot as listDevicePairing, pt as readBooleanParam, q as summarizeMapping, qt as getAcpRuntimeBackend, rn as resolveAllowlistMatchByCandidates, s as resolveDefaultLineAccountId, sn as BLUEBUBBLES_GROUP_ACTIONS, st as rejectDevicePairing, tn as unbindThreadBindingsBySessionKey, tt as recordPendingHistoryEntryIfEnabled, ut as formatUtcTimestamp, v as hasMarkdownToConvert, vt as DM_GROUP_ACCESS_REASON, wt as resolveEffectiveAllowFromLists, x as createReceiptCard, xt as resolveDmGroupAccessDecision, y as processLineMessage, yt as readStoreAllowFromForDmPolicy, z as logTypingFailure, zt as isRequestBodyLimitError } from "./reply-
|
|
2
|
+
import { a as resolveWhatsAppAuthDir, i as resolveWhatsAppAccount, n as listWhatsAppAccountIds, r as resolveDefaultWhatsAppAccountId, v as createAccountListHelpers } from "./accounts-B_Sil4df.js";
|
|
3
|
+
import { $ as evictOldHistoryKeys, $t as autoBindSpawnedDiscordSubagent, A as resolveDiscordUserAllowlist, At as resolveDefaultGroupPolicy, B as createTypingCallbacks, Bt as readJsonBodyWithLimit, Ct as resolveDmGroupAccessWithLists, D as resolveSlackUserAllowlist, Dt as GROUP_POLICY_BLOCKED_LABEL, E as parseTelegramThreadId, Et as resolveControlCommandGate, F as stringEnum, Ft as DEFAULT_WEBHOOK_BODY_TIMEOUT_MS, G as resolveMentionGatingWithBypass, Gt as isDangerousNameMatchingEnabled, H as shouldAckReaction, Ht as requestBodyErrorToText, I as recordInboundSession, It as DEFAULT_WEBHOOK_MAX_BODY_BYTES, J as DEFAULT_GROUP_HISTORY_LIMIT, Jt as registerAcpRuntimeBackend, K as mergeAllowlist, Kt as registerPluginHttpRoute, L as logAckFailure, Lt as RequestBodyLimitError, M as collectDiscordAuditChannelIds, Mt as resolveRuntimeGroupPolicy, N as formatDocsLink, Nt as warnMissingProviderGroupPolicyFallbackOnce, O as resolveSlackChannelAllowlist, Ot as resetMissingProviderGroupPolicyFallbackWarningsForTesting, P as optionalStringEnum, Pt as pruneMapToMaxSize, Q as clearHistoryEntriesIfEnabled, Qt as AcpRuntimeError, R as logInboundDrop, Rt as installRequestBodyLimitGuard, S as attachFooterText, St as resolveDmGroupAccessWithCommandGate, T as parseTelegramReplyToMessageId, U as shouldAckReactionForWhatsApp, Ut as KeyedAsyncQueue, V as removeAckReactionAfterReply, Vt as readRequestBodyWithLimit, W as resolveMentionGating, Wt as enqueueKeyedTask, X as buildPendingHistoryContextFromMap, Xt as unregisterAcpRuntimeBackend, Yt as requireAcpRuntimeBackend, Z as clearHistoryEntries, Zt as ACP_ERROR_CODES, a as listLineAccountIds, an as BLUEBUBBLES_ACTIONS, at as approveDevicePairing, b as stripMarkdown, bt as resolveDmAllowState, c as resolveLineAccount, cn as CHANNEL_MESSAGE_ACTION_NAMES, dt as formatZonedTimestamp, en as listThreadBindingsBySessionKey, et as recordPendingHistoryEntry, ft as resolveTimezone, gt as issuePairingChallenge, ht as extractToolSend, in as resolveAllowlistMatchSimple, it as createDedupeCache, j as resolveDiscordChannelAllowlist, jt as resolveOpenProviderRuntimeGroupPolicy, k as detectBinary, kt as resolveAllowlistProviderRuntimeGroupPolicy, lt as formatInboundFromLabel, mt as buildMediaPayload, nn as formatAllowlistMatchMeta, o as normalizeAccountId$1, on as BLUEBUBBLES_ACTION_NAMES, ot as listDevicePairing, pt as readBooleanParam, q as summarizeMapping, qt as getAcpRuntimeBackend, rn as resolveAllowlistMatchByCandidates, s as resolveDefaultLineAccountId, sn as BLUEBUBBLES_GROUP_ACTIONS, st as rejectDevicePairing, tn as unbindThreadBindingsBySessionKey, tt as recordPendingHistoryEntryIfEnabled, ut as formatUtcTimestamp, v as hasMarkdownToConvert, vt as DM_GROUP_ACCESS_REASON, wt as resolveEffectiveAllowFromLists, x as createReceiptCard, xt as resolveDmGroupAccessDecision, y as processLineMessage, yt as readStoreAllowFromForDmPolicy, z as logTypingFailure, zt as isRequestBodyLimitError } from "./reply-C2XVty9G.js";
|
|
4
4
|
import "./paths-STHPF-Vp.js";
|
|
5
5
|
import "./github-copilot-token-OlEJk9vh.js";
|
|
6
|
-
import { A as GroupPolicySchema, D as BlockStreamingCoalesceSchema, E as ToolPolicySchema, F as TtsConfigSchema, I as TtsModeSchema, Jn as acquireFileLock, L as TtsProviderSchema, M as MarkdownTableModeSchema, N as ReplyRuntimeConfigSchemaShape, O as DmConfigSchema, P as TtsAutoSchema, R as normalizeAllowFrom, Yn as withFileLock, c as WhatsAppConfigSchema, d as IMessageConfigSchema, f as MSTeamsConfigSchema, h as TelegramConfigSchema, j as MarkdownConfigSchema, k as DmPolicySchema, l as DiscordConfigSchema, m as SlackConfigSchema, p as SignalConfigSchema, u as GoogleChatConfigSchema, z as requireOpenAllowFrom } from "./config-
|
|
7
|
-
import { T as resolvePreferredOpenClawTmpDir, n as stripAnsi, x as registerLogTransport } from "./subsystem-
|
|
8
|
-
import { c as isRecord, d as normalizeE164, f as pathExists, g as safeParseJson, n as clamp, o as escapeRegExp, t as CONFIG_DIR, y as sleep } from "./utils-
|
|
9
|
-
import { n as isTruthyEnvValue, t as formatCliCommand } from "./command-format-
|
|
10
|
-
import { B as isPathInside, O as runCommandWithTimeout, z as isNotFoundPathError } from "./agent-scope-
|
|
11
|
-
import "./logger-
|
|
12
|
-
import { m as normalizePluginHttpPath, r as getChatChannelMeta } from "./registry-
|
|
13
|
-
import { A as normalizeWhatsAppMessagingTarget, C as formatWhatsAppConfigAllowFromEntries, D as resolveWhatsAppConfigDefaultTo, E as resolveWhatsAppConfigAllowFrom, I as resolveToolsBySender, M as trimMessagingTarget, O as looksLikeWhatsAppTargetId, S as formatTrimmedAllowFromEntries, T as resolveIMessageConfigDefaultTo, _ as resolveTelegramGroupRequireMention, a as looksLikeSignalTargetId, b as resolveWhatsAppGroupToolPolicy, c as resolveBlueBubblesGroupToolPolicy, d as resolveGoogleChatGroupRequireMention, f as resolveGoogleChatGroupToolPolicy, g as resolveSlackGroupToolPolicy, h as resolveSlackGroupRequireMention, i as resolveWhatsAppMentionStripPatterns, j as looksLikeHandleOrPhoneTarget, k as normalizeWhatsAppAllowFromEntries, l as resolveDiscordGroupRequireMention, m as resolveIMessageGroupToolPolicy, o as normalizeSignalMessagingTarget, p as resolveIMessageGroupRequireMention, r as resolveWhatsAppGroupIntroHint, s as resolveBlueBubblesGroupRequireMention, u as resolveDiscordGroupToolPolicy, v as resolveTelegramGroupToolPolicy, w as resolveIMessageConfigAllowFrom, x as buildSlackThreadingToolContext, y as resolveWhatsAppGroupRequireMention } from "./dock-
|
|
14
|
-
import "./message-channel-
|
|
15
|
-
import "./sessions-
|
|
16
|
-
import { A as resolveSlackAccount, B as resolveDiscordAccount, C as resolveTelegramAccount, D as listEnabledSlackAccounts, E as resolveAccountWithDefaultFallback, F as normalizeWhatsAppTarget, L as listDiscordAccountIds, O as listSlackAccountIds, P as isWhatsAppGroupJid, S as resolveDefaultTelegramAccountId, T as listConfiguredAccountIds, a as listDiscordDirectoryPeersFromConfig, c as listTelegramDirectoryGroupsFromConfig, d as listWhatsAppDirectoryPeersFromConfig, f as looksLikeSlackTargetId, i as listDiscordDirectoryGroupsFromConfig, j as resolveSlackReplyToMode, k as resolveDefaultSlackAccountId, l as listTelegramDirectoryPeersFromConfig, o as listSlackDirectoryGroupsFromConfig, p as normalizeSlackMessagingTarget, s as listSlackDirectoryPeersFromConfig, u as listWhatsAppDirectoryGroupsFromConfig, x as listTelegramAccountIds, z as resolveDefaultDiscordAccountId } from "./plugins-
|
|
17
|
-
import { n as resolveDefaultIMessageAccountId, r as resolveIMessageAccount, t as listIMessageAccountIds } from "./accounts-
|
|
18
|
-
import { i as resolveSignalAccount, n as listSignalAccountIds, r as resolveDefaultSignalAccountId } from "./accounts-
|
|
19
|
-
import "./bindings-
|
|
20
|
-
import { At as resolveNestedAllowlistDecision, Dt as normalizeChannelSlug, Et as buildChannelKeyCandidates, Ot as resolveChannelEntryMatch, it as parseDiscordTarget, kt as resolveChannelEntryMatchWithFallback, ut as normalizeDiscordSlug } from "./send-
|
|
6
|
+
import { A as GroupPolicySchema, D as BlockStreamingCoalesceSchema, E as ToolPolicySchema, F as TtsConfigSchema, I as TtsModeSchema, Jn as acquireFileLock, L as TtsProviderSchema, M as MarkdownTableModeSchema, N as ReplyRuntimeConfigSchemaShape, O as DmConfigSchema, P as TtsAutoSchema, R as normalizeAllowFrom, Yn as withFileLock, c as WhatsAppConfigSchema, d as IMessageConfigSchema, f as MSTeamsConfigSchema, h as TelegramConfigSchema, j as MarkdownConfigSchema, k as DmPolicySchema, l as DiscordConfigSchema, m as SlackConfigSchema, p as SignalConfigSchema, u as GoogleChatConfigSchema, z as requireOpenAllowFrom } from "./config-BkeO1N4t.js";
|
|
7
|
+
import { T as resolvePreferredOpenClawTmpDir, n as stripAnsi, x as registerLogTransport } from "./subsystem-DQdKZm8Z.js";
|
|
8
|
+
import { c as isRecord, d as normalizeE164, f as pathExists, g as safeParseJson, n as clamp, o as escapeRegExp, t as CONFIG_DIR, y as sleep } from "./utils-hxOwZduA.js";
|
|
9
|
+
import { n as isTruthyEnvValue, t as formatCliCommand } from "./command-format-9ttCUvaP.js";
|
|
10
|
+
import { B as isPathInside, O as runCommandWithTimeout, z as isNotFoundPathError } from "./agent-scope-DS0HILk_.js";
|
|
11
|
+
import "./logger-Dqmpx59X.js";
|
|
12
|
+
import { m as normalizePluginHttpPath, r as getChatChannelMeta } from "./registry-Cq-TQPU8.js";
|
|
13
|
+
import { A as normalizeWhatsAppMessagingTarget, C as formatWhatsAppConfigAllowFromEntries, D as resolveWhatsAppConfigDefaultTo, E as resolveWhatsAppConfigAllowFrom, I as resolveToolsBySender, M as trimMessagingTarget, O as looksLikeWhatsAppTargetId, S as formatTrimmedAllowFromEntries, T as resolveIMessageConfigDefaultTo, _ as resolveTelegramGroupRequireMention, a as looksLikeSignalTargetId, b as resolveWhatsAppGroupToolPolicy, c as resolveBlueBubblesGroupToolPolicy, d as resolveGoogleChatGroupRequireMention, f as resolveGoogleChatGroupToolPolicy, g as resolveSlackGroupToolPolicy, h as resolveSlackGroupRequireMention, i as resolveWhatsAppMentionStripPatterns, j as looksLikeHandleOrPhoneTarget, k as normalizeWhatsAppAllowFromEntries, l as resolveDiscordGroupRequireMention, m as resolveIMessageGroupToolPolicy, o as normalizeSignalMessagingTarget, p as resolveIMessageGroupRequireMention, r as resolveWhatsAppGroupIntroHint, s as resolveBlueBubblesGroupRequireMention, u as resolveDiscordGroupToolPolicy, v as resolveTelegramGroupToolPolicy, w as resolveIMessageConfigAllowFrom, x as buildSlackThreadingToolContext, y as resolveWhatsAppGroupRequireMention } from "./dock-yYEdNzbx.js";
|
|
14
|
+
import "./message-channel-CeYrurhu.js";
|
|
15
|
+
import "./sessions-DFx8MKSO.js";
|
|
16
|
+
import { A as resolveSlackAccount, B as resolveDiscordAccount, C as resolveTelegramAccount, D as listEnabledSlackAccounts, E as resolveAccountWithDefaultFallback, F as normalizeWhatsAppTarget, L as listDiscordAccountIds, O as listSlackAccountIds, P as isWhatsAppGroupJid, S as resolveDefaultTelegramAccountId, T as listConfiguredAccountIds, a as listDiscordDirectoryPeersFromConfig, c as listTelegramDirectoryGroupsFromConfig, d as listWhatsAppDirectoryPeersFromConfig, f as looksLikeSlackTargetId, i as listDiscordDirectoryGroupsFromConfig, j as resolveSlackReplyToMode, k as resolveDefaultSlackAccountId, l as listTelegramDirectoryPeersFromConfig, o as listSlackDirectoryGroupsFromConfig, p as normalizeSlackMessagingTarget, s as listSlackDirectoryPeersFromConfig, u as listWhatsAppDirectoryGroupsFromConfig, x as listTelegramAccountIds, z as resolveDefaultDiscordAccountId } from "./plugins-Dupyelyu.js";
|
|
17
|
+
import { n as resolveDefaultIMessageAccountId, r as resolveIMessageAccount, t as listIMessageAccountIds } from "./accounts-kIersDAH.js";
|
|
18
|
+
import { i as resolveSignalAccount, n as listSignalAccountIds, r as resolveDefaultSignalAccountId } from "./accounts-CqgyHS8h.js";
|
|
19
|
+
import "./bindings-D8UvbNti.js";
|
|
20
|
+
import { At as resolveNestedAllowlistDecision, Dt as normalizeChannelSlug, Et as buildChannelKeyCandidates, Ot as resolveChannelEntryMatch, it as parseDiscordTarget, kt as resolveChannelEntryMatchWithFallback, ut as normalizeDiscordSlug } from "./send-kJXSgFcu.js";
|
|
21
21
|
import "./paths-B3rYtuY3.js";
|
|
22
22
|
import "./fetch-BEtAimXS.js";
|
|
23
|
-
import "./retry-
|
|
24
|
-
import { t as redactSensitiveText } from "./redact-
|
|
25
|
-
import { r as formatErrorMessage } from "./errors-
|
|
26
|
-
import "./channel-activity-
|
|
27
|
-
import "./path-alias-guards-
|
|
28
|
-
import { a as openWritableFileWithinRoot, t as SafeOpenError } from "./fs-safe-
|
|
29
|
-
import { c as detectMime, l as extensionForMime, u as getFileExtension } from "./image-ops-
|
|
30
|
-
import { a as isBlockedHostnameOrIp, i as isBlockedHostname, o as isPrivateIpAddress, t as SsrFBlockedError } from "./ssrf-
|
|
31
|
-
import { t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
32
|
-
import "./local-roots-
|
|
33
|
-
import { a as loadWebMedia } from "./ir-
|
|
34
|
-
import { u as chunkTextByBreakResolver } from "./chunk-
|
|
35
|
-
import "./markdown-tables-
|
|
23
|
+
import "./retry-D9aKv766.js";
|
|
24
|
+
import { t as redactSensitiveText } from "./redact-Civ2olvH.js";
|
|
25
|
+
import { r as formatErrorMessage } from "./errors-D2KyTKs6.js";
|
|
26
|
+
import "./channel-activity-CMtaqeTg.js";
|
|
27
|
+
import "./path-alias-guards-KB1li1UU.js";
|
|
28
|
+
import { a as openWritableFileWithinRoot, t as SafeOpenError } from "./fs-safe-CC4mG_Hc.js";
|
|
29
|
+
import { c as detectMime, l as extensionForMime, u as getFileExtension } from "./image-ops-CfQjZch5.js";
|
|
30
|
+
import { a as isBlockedHostnameOrIp, i as isBlockedHostname, o as isPrivateIpAddress, t as SsrFBlockedError } from "./ssrf-BjVCUeM7.js";
|
|
31
|
+
import { t as fetchWithSsrFGuard } from "./fetch-guard-BC92RxgN.js";
|
|
32
|
+
import "./local-roots-DYmtEf6P.js";
|
|
33
|
+
import { a as loadWebMedia } from "./ir-CLKvSg7X.js";
|
|
34
|
+
import { u as chunkTextByBreakResolver } from "./chunk-BuHZrtLn.js";
|
|
35
|
+
import "./markdown-tables-BA_MdGIq.js";
|
|
36
36
|
import "./render-BDQg502o.js";
|
|
37
|
-
import "./tables-
|
|
38
|
-
import { d as resolveServicePrefixedAllowTarget, f as resolveServicePrefixedTarget, h as isNormalizedSenderAllowed, l as parseChatAllowTargetPrefixes, m as isAllowedParsedChatSender, p as formatAllowFromLowercase, s as normalizeIMessageHandle, u as parseChatTargetPrefixesOrThrow } from "./send-
|
|
39
|
-
import { $ as isWSLEnv, J as parseTelegramTarget, Q as isWSL2Sync, X as formatLocationText, Z as toLocationContext, et as isWSLSync, ot as readJsonFileWithFallback, q as normalizeTelegramLookupTarget, st as writeJsonFileAtomically } from "./send-
|
|
40
|
-
import "./tool-images-
|
|
41
|
-
import { d as readNumberParam, f as readReactionParams, h as readStringParam, l as jsonResult, n as missingTargetError, o as createActionGate } from "./target-errors-
|
|
42
|
-
import { c as parseSlackBlocksInput } from "./send-
|
|
43
|
-
import { S as withTempDownloadPath, x as buildRandomTempFilePath } from "./audio-transcription-runner-
|
|
37
|
+
import "./tables-BQwHnOX0.js";
|
|
38
|
+
import { d as resolveServicePrefixedAllowTarget, f as resolveServicePrefixedTarget, h as isNormalizedSenderAllowed, l as parseChatAllowTargetPrefixes, m as isAllowedParsedChatSender, p as formatAllowFromLowercase, s as normalizeIMessageHandle, u as parseChatTargetPrefixesOrThrow } from "./send-WwwzoTNW.js";
|
|
39
|
+
import { $ as isWSLEnv, J as parseTelegramTarget, Q as isWSL2Sync, X as formatLocationText, Z as toLocationContext, et as isWSLSync, ot as readJsonFileWithFallback, q as normalizeTelegramLookupTarget, st as writeJsonFileAtomically } from "./send-Ct2mLh8U.js";
|
|
40
|
+
import "./tool-images-RhD8geto.js";
|
|
41
|
+
import { d as readNumberParam, f as readReactionParams, h as readStringParam, l as jsonResult, n as missingTargetError, o as createActionGate } from "./target-errors-DqlHqAmV.js";
|
|
42
|
+
import { c as parseSlackBlocksInput } from "./send-_MTxUi5p.js";
|
|
43
|
+
import { S as withTempDownloadPath, x as buildRandomTempFilePath } from "./audio-transcription-runner-DHcTy4Wb.js";
|
|
44
44
|
import { a as resolveWindowsSpawnProgramCandidate, i as resolveWindowsSpawnProgram, n as materializeWindowsSpawnProgram, r as resolveWindowsExecutablePath, t as applyWindowsSpawnProgramPolicy } from "./windows-spawn-CH7H4rha.js";
|
|
45
|
-
import { a as resolveAckReaction, n as createReplyPrefixOptions, t as createReplyPrefixContext } from "./reply-prefix-
|
|
46
|
-
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-
|
|
47
|
-
import "./skill-commands-
|
|
48
|
-
import "./skills-
|
|
49
|
-
import { J as rawDataToString } from "./chrome-
|
|
50
|
-
import { j as resolveChannelMediaMaxBytes } from "./deliver-
|
|
51
|
-
import { h as onDiagnosticEvent, m as isDiagnosticsEnabled, p as emitDiagnosticEvent } from "./diagnostic-
|
|
52
|
-
import { r as extractOriginalFilename } from "./store-
|
|
53
|
-
import "./pi-embedded-helpers-
|
|
54
|
-
import { t as resolveWhatsAppOutboundTarget } from "./resolve-outbound-target-
|
|
55
|
-
import { r as resolveWhatsAppHeartbeatRecipients } from "./channel-web-
|
|
45
|
+
import { a as resolveAckReaction, n as createReplyPrefixOptions, t as createReplyPrefixContext } from "./reply-prefix-BRomwQau.js";
|
|
46
|
+
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-C_Ieeb03.js";
|
|
47
|
+
import "./skill-commands-CakvOluN.js";
|
|
48
|
+
import "./skills-CZFBOkwT.js";
|
|
49
|
+
import { J as rawDataToString } from "./chrome-DoDlUT7F.js";
|
|
50
|
+
import { j as resolveChannelMediaMaxBytes } from "./deliver-BcAT1l6Y.js";
|
|
51
|
+
import { h as onDiagnosticEvent, m as isDiagnosticsEnabled, p as emitDiagnosticEvent } from "./diagnostic-BefhWusS.js";
|
|
52
|
+
import { r as extractOriginalFilename } from "./store-DALs5PIC.js";
|
|
53
|
+
import "./pi-embedded-helpers-CbevdnHV.js";
|
|
54
|
+
import { t as resolveWhatsAppOutboundTarget } from "./resolve-outbound-target-B_xKgqWe.js";
|
|
55
|
+
import { r as resolveWhatsAppHeartbeatRecipients } from "./channel-web-D3N-Ttls.js";
|
|
56
56
|
import "./thinking-DGaZRXAR.js";
|
|
57
|
-
import "./image-
|
|
58
|
-
import "./pi-model-discovery-
|
|
59
|
-
import "./api-key-rotation-
|
|
60
|
-
import "./proxy-fetch-
|
|
61
|
-
import "./commands-registry-
|
|
57
|
+
import "./image-Cjm_y1ht.js";
|
|
58
|
+
import "./pi-model-discovery-Blr1NdM4.js";
|
|
59
|
+
import "./api-key-rotation-C2Z5xB6w.js";
|
|
60
|
+
import "./proxy-fetch-BY4mmpys.js";
|
|
61
|
+
import "./commands-registry-ydkoxruZ.js";
|
|
62
62
|
import "./diagnostic-session-state-Wd5tNeQG.js";
|
|
63
|
-
import "./send-
|
|
64
|
-
import "./outbound-attachment-
|
|
65
|
-
import "./resolve-route-
|
|
66
|
-
import "./proxy-
|
|
67
|
-
import "./replies-
|
|
68
|
-
import "./session-meta-
|
|
69
|
-
import "./manager-
|
|
70
|
-
import "./query-expansion-
|
|
71
|
-
import "./outbound-
|
|
72
|
-
import "./session-
|
|
73
|
-
import { t as loginWeb } from "./login-
|
|
63
|
+
import "./send-Bs-YbYdN.js";
|
|
64
|
+
import "./outbound-attachment-DgC7KgEZ.js";
|
|
65
|
+
import "./resolve-route-yLtq9xkG.js";
|
|
66
|
+
import "./proxy-CnPaiSZ0.js";
|
|
67
|
+
import "./replies-a2WeMkU6.js";
|
|
68
|
+
import "./session-meta-CM4K7B00.js";
|
|
69
|
+
import "./manager-J_9hr0Yu.js";
|
|
70
|
+
import "./query-expansion-DgHoeKXG.js";
|
|
71
|
+
import "./outbound-B386FQiU.js";
|
|
72
|
+
import "./session-Bfpm71Tg.js";
|
|
73
|
+
import { t as loginWeb } from "./login-DYEbRdfH.js";
|
|
74
74
|
import fs, { createWriteStream } from "node:fs";
|
|
75
75
|
import path from "node:path";
|
|
76
76
|
import os from "node:os";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as shouldLogVerbose, u as logVerbose } from "./subsystem-
|
|
2
|
-
import { h as resolveUserPath } from "./utils-
|
|
3
|
-
import { s as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-
|
|
4
|
-
import { _ as maxBytesForKind, a as hasAlphaChannel, c as detectMime, l as extensionForMime, m as kindFromMime, o as optimizeImageToPng, r as convertHeicToJpeg, s as resizeToJpeg } from "./image-ops-
|
|
5
|
-
import { i as fetchRemoteMedia, n as getDefaultMediaLocalRoots } from "./local-roots-
|
|
6
|
-
import { a as chunkText } from "./chunk-
|
|
1
|
+
import { p as shouldLogVerbose, u as logVerbose } from "./subsystem-DQdKZm8Z.js";
|
|
2
|
+
import { h as resolveUserPath } from "./utils-hxOwZduA.js";
|
|
3
|
+
import { s as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-CC4mG_Hc.js";
|
|
4
|
+
import { _ as maxBytesForKind, a as hasAlphaChannel, c as detectMime, l as extensionForMime, m as kindFromMime, o as optimizeImageToPng, r as convertHeicToJpeg, s as resizeToJpeg } from "./image-ops-CfQjZch5.js";
|
|
5
|
+
import { i as fetchRemoteMedia, n as getDefaultMediaLocalRoots } from "./local-roots-DYmtEf6P.js";
|
|
6
|
+
import { a as chunkText } from "./chunk-BuHZrtLn.js";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import fs from "node:fs/promises";
|
|
9
9
|
import { fileURLToPath } from "node:url";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { c as resolveStateDir } from "./paths-STHPF-Vp.js";
|
|
2
|
-
import { T as resolvePreferredOpenClawTmpDir } from "./subsystem-
|
|
3
|
-
import { s as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
4
|
-
import { c as detectMime, l as extensionForMime } from "./image-ops-
|
|
5
|
-
import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
2
|
+
import { T as resolvePreferredOpenClawTmpDir } from "./subsystem-DQdKZm8Z.js";
|
|
3
|
+
import { s as resolveAgentWorkspaceDir } from "./agent-scope-DS0HILk_.js";
|
|
4
|
+
import { c as detectMime, l as extensionForMime } from "./image-ops-CfQjZch5.js";
|
|
5
|
+
import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-BC92RxgN.js";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
|
|
8
8
|
//#region src/media/read-response-with-limit.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as getLogger, c as danger, d as logVerboseConsole, h as warn, i as defaultRuntime, l as info, t as createSubsystemLogger } from "./subsystem-
|
|
1
|
+
import { b as getLogger, c as danger, d as logVerboseConsole, h as warn, i as defaultRuntime, l as info, t as createSubsystemLogger } from "./subsystem-DQdKZm8Z.js";
|
|
2
2
|
|
|
3
3
|
//#region src/logger.ts
|
|
4
4
|
const subsystemPrefixRe = /^([a-z][a-z0-9-]{1,20}):\s+(.*)$/i;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { i as resolveWhatsAppAccount, l as logoutWeb } from "./accounts-
|
|
3
|
-
import { n as loadConfig } from "./config-
|
|
4
|
-
import { c as danger, i as defaultRuntime, l as info, m as success } from "./subsystem-
|
|
5
|
-
import { t as formatCliCommand } from "./command-format-
|
|
6
|
-
import { r as logInfo } from "./logger-
|
|
7
|
-
import { i as waitForWaConnection, n as formatError, t as createWaSocket } from "./session-
|
|
2
|
+
import { i as resolveWhatsAppAccount, l as logoutWeb } from "./accounts-B_Sil4df.js";
|
|
3
|
+
import { n as loadConfig } from "./config-BkeO1N4t.js";
|
|
4
|
+
import { c as danger, i as defaultRuntime, l as info, m as success } from "./subsystem-DQdKZm8Z.js";
|
|
5
|
+
import { t as formatCliCommand } from "./command-format-9ttCUvaP.js";
|
|
6
|
+
import { r as logInfo } from "./logger-Dqmpx59X.js";
|
|
7
|
+
import { i as waitForWaConnection, n as formatError, t as createWaSocket } from "./session-Bfpm71Tg.js";
|
|
8
8
|
import { DisconnectReason } from "@whiskeysockets/baileys";
|
|
9
9
|
|
|
10
10
|
//#region src/web/login.ts
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { _ as webAuthExists, i as resolveWhatsAppAccount, l as logoutWeb, p as readWebSelfId } from "./accounts-
|
|
1
|
+
import { _ as webAuthExists, i as resolveWhatsAppAccount, l as logoutWeb, p as readWebSelfId } from "./accounts-B_Sil4df.js";
|
|
2
2
|
import "./paths-STHPF-Vp.js";
|
|
3
3
|
import "./github-copilot-token-OlEJk9vh.js";
|
|
4
|
-
import { n as loadConfig } from "./config-
|
|
5
|
-
import { c as danger, i as defaultRuntime, l as info, m as success } from "./subsystem-
|
|
6
|
-
import "./utils-
|
|
7
|
-
import "./command-format-
|
|
8
|
-
import "./agent-scope-
|
|
9
|
-
import { r as logInfo } from "./logger-
|
|
10
|
-
import "./registry-
|
|
11
|
-
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-
|
|
4
|
+
import { n as loadConfig } from "./config-BkeO1N4t.js";
|
|
5
|
+
import { c as danger, i as defaultRuntime, l as info, m as success } from "./subsystem-DQdKZm8Z.js";
|
|
6
|
+
import "./utils-hxOwZduA.js";
|
|
7
|
+
import "./command-format-9ttCUvaP.js";
|
|
8
|
+
import "./agent-scope-DS0HILk_.js";
|
|
9
|
+
import { r as logInfo } from "./logger-Dqmpx59X.js";
|
|
10
|
+
import "./registry-Cq-TQPU8.js";
|
|
11
|
+
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-Bfpm71Tg.js";
|
|
12
12
|
import { randomUUID } from "node:crypto";
|
|
13
13
|
import { DisconnectReason } from "@whiskeysockets/baileys";
|
|
14
14
|
import QRCodeModule from "qrcode-terminal/vendor/QRCode/index.js";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { c as resolveStateDir } from "./paths-STHPF-Vp.js";
|
|
3
|
-
import { An as resolveApiKeyForProvider, er as normalizeOptionalSecretInput, jn as resolveEnvApiKey, kn as requireApiKey } from "./config-
|
|
4
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
5
|
-
import { S as truncateUtf16Safe, h as resolveUserPath, i as clampNumber, r as clampInt } from "./utils-
|
|
6
|
-
import { n as isTruthyEnvValue } from "./command-format-
|
|
7
|
-
import { i as resolveAgentDir, r as resolveAgentConfig, s as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
3
|
+
import { An as resolveApiKeyForProvider, er as normalizeOptionalSecretInput, jn as resolveEnvApiKey, kn as requireApiKey } from "./config-BkeO1N4t.js";
|
|
4
|
+
import { t as createSubsystemLogger } from "./subsystem-DQdKZm8Z.js";
|
|
5
|
+
import { S as truncateUtf16Safe, h as resolveUserPath, i as clampNumber, r as clampInt } from "./utils-hxOwZduA.js";
|
|
6
|
+
import { n as isTruthyEnvValue } from "./command-format-9ttCUvaP.js";
|
|
7
|
+
import { i as resolveAgentDir, r as resolveAgentConfig, s as resolveAgentWorkspaceDir } from "./agent-scope-DS0HILk_.js";
|
|
8
8
|
import { o as resolveSessionTranscriptsDirForAgent } from "./paths-B3rYtuY3.js";
|
|
9
9
|
import { n as onSessionTranscriptUpdate } from "./transcript-events-Bitiknz-.js";
|
|
10
|
-
import { n as retryAsync } from "./retry-
|
|
11
|
-
import { r as formatErrorMessage } from "./errors-
|
|
12
|
-
import { t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
13
|
-
import { n as executeWithApiKeyRotation, r as parseGeminiAuth, t as collectProviderApiKeysForExecution } from "./api-key-rotation-
|
|
14
|
-
import { _ as isFileMissingError, a as sessionPathForFile, c as cosineSimilarity, d as isMemoryPath, f as listMemoryFiles, g as runWithConcurrency, h as remapChunkLines, i as listSessionFilesForAgent, l as ensureDir, m as parseEmbedding, n as requireNodeSqlite, o as buildFileEntry, p as normalizeExtraMemoryPaths, r as buildSessionEntry, s as chunkMarkdown, t as extractKeywords, u as hashText, v as statRegularFile } from "./query-expansion-
|
|
10
|
+
import { n as retryAsync } from "./retry-D9aKv766.js";
|
|
11
|
+
import { r as formatErrorMessage } from "./errors-D2KyTKs6.js";
|
|
12
|
+
import { t as fetchWithSsrFGuard } from "./fetch-guard-BC92RxgN.js";
|
|
13
|
+
import { n as executeWithApiKeyRotation, r as parseGeminiAuth, t as collectProviderApiKeysForExecution } from "./api-key-rotation-C2Z5xB6w.js";
|
|
14
|
+
import { _ as isFileMissingError, a as sessionPathForFile, c as cosineSimilarity, d as isMemoryPath, f as listMemoryFiles, g as runWithConcurrency, h as remapChunkLines, i as listSessionFilesForAgent, l as ensureDir, m as parseEmbedding, n as requireNodeSqlite, o as buildFileEntry, p as normalizeExtraMemoryPaths, r as buildSessionEntry, s as chunkMarkdown, t as extractKeywords, u as hashText, v as statRegularFile } from "./query-expansion-DgHoeKXG.js";
|
|
15
15
|
import fs from "node:fs";
|
|
16
16
|
import path from "node:path";
|
|
17
17
|
import os from "node:os";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { m as normalizeAccountId } from "./session-key-CVIXEtLx.js";
|
|
3
3
|
import { t as resolveAccountEntry } from "./account-lookup-BCxEEOS8.js";
|
|
4
|
-
import { r as normalizeChannelId } from "./plugins-
|
|
4
|
+
import { r as normalizeChannelId } from "./plugins-Dupyelyu.js";
|
|
5
5
|
|
|
6
6
|
//#region src/config/markdown-tables.ts
|
|
7
7
|
var markdown_tables_exports = /* @__PURE__ */ __exportAll({ resolveMarkdownTableMode: () => resolveMarkdownTableMode });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as getActivePluginRegistry, s as normalizeChatChannelId, t as CHANNEL_IDS } from "./registry-
|
|
1
|
+
import { c as getActivePluginRegistry, s as normalizeChatChannelId, t as CHANNEL_IDS } from "./registry-Cq-TQPU8.js";
|
|
2
2
|
|
|
3
3
|
//#region src/gateway/protocol/client-info.ts
|
|
4
4
|
const GATEWAY_CLIENT_IDS = {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { n as loadConfig } from "./config-
|
|
3
|
-
import { t as createSubsystemLogger, y as getChildLogger } from "./subsystem-
|
|
4
|
-
import { o as escapeRegExp, x as toWhatsappJid } from "./utils-
|
|
2
|
+
import { n as loadConfig } from "./config-BkeO1N4t.js";
|
|
3
|
+
import { t as createSubsystemLogger, y as getChildLogger } from "./subsystem-DQdKZm8Z.js";
|
|
4
|
+
import { o as escapeRegExp, x as toWhatsappJid } from "./utils-hxOwZduA.js";
|
|
5
5
|
import { n as normalizePollInput } from "./polls-DN23oxyB.js";
|
|
6
|
-
import { a as loadWebMedia } from "./ir-
|
|
7
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
8
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
6
|
+
import { a as loadWebMedia } from "./ir-CLKvSg7X.js";
|
|
7
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-BA_MdGIq.js";
|
|
8
|
+
import { t as convertMarkdownTables } from "./tables-BQwHnOX0.js";
|
|
9
9
|
import { n as generateSecureUuid } from "./secure-random-C5PtFEje.js";
|
|
10
|
-
import { i as redactIdentifier, n as requireActiveWebListener } from "./active-listener-
|
|
10
|
+
import { i as redactIdentifier, n as requireActiveWebListener } from "./active-listener-B1c6rQRy.js";
|
|
11
11
|
|
|
12
12
|
//#region src/markdown/whatsapp.ts
|
|
13
13
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as buildOutboundMediaLoadOptions } from "./load-options-TTlmt77_.js";
|
|
2
|
-
import { a as loadWebMedia } from "./ir-
|
|
3
|
-
import { a as saveMediaBuffer } from "./store-
|
|
2
|
+
import { a as loadWebMedia } from "./ir-CLKvSg7X.js";
|
|
3
|
+
import { a as saveMediaBuffer } from "./store-DALs5PIC.js";
|
|
4
4
|
|
|
5
5
|
//#region src/media/outbound-attachment.ts
|
|
6
6
|
async function resolveOutboundAttachmentFromUrl(mediaUrl, maxBytes, options) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as BOUNDARY_PATH_ALIAS_POLICIES, I as resolveBoundaryPath, z as isNotFoundPathError } from "./agent-scope-
|
|
1
|
+
import { F as BOUNDARY_PATH_ALIAS_POLICIES, I as resolveBoundaryPath, z as isNotFoundPathError } from "./agent-scope-DS0HILk_.js";
|
|
2
2
|
import os from "node:os";
|
|
3
3
|
import fs from "node:fs/promises";
|
|
4
4
|
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { c as normalizeAgentId, u as resolveAgentIdFromSessionKey } from "./session-key-CVIXEtLx.js";
|
|
2
2
|
import { a as resolveGatewayPort, n as STATE_DIR } from "./paths-STHPF-Vp.js";
|
|
3
|
-
import { B as getBlockedNetworkModeReason, n as loadConfig, o as writeConfigFile, t as createConfigIO } from "./config-
|
|
4
|
-
import { i as defaultRuntime, t as createSubsystemLogger } from "./subsystem-
|
|
5
|
-
import { S as truncateUtf16Safe, h as resolveUserPath } from "./utils-
|
|
6
|
-
import { r as parseBooleanValue, t as formatCliCommand } from "./command-format-
|
|
7
|
-
import { L as resolvePathViaExistingAncestorSync, M as openBoundaryFile, _ as DEFAULT_IDENTITY_FILENAME, b as DEFAULT_USER_FILENAME, d as resolveSessionAgentId, g as DEFAULT_HEARTBEAT_FILENAME, h as DEFAULT_BOOTSTRAP_FILENAME, k as runExec, m as DEFAULT_AGENT_WORKSPACE_DIR, p as DEFAULT_AGENTS_FILENAME, r as resolveAgentConfig, v as DEFAULT_SOUL_FILENAME, x as ensureAgentWorkspace, y as DEFAULT_TOOLS_FILENAME } from "./agent-scope-
|
|
8
|
-
import { t as CHANNEL_IDS } from "./registry-
|
|
9
|
-
import { A as acquireSessionWriteLock, H as canonicalizeMainSessionAlias, U as resolveAgentMainSessionKey } from "./sessions-
|
|
3
|
+
import { B as getBlockedNetworkModeReason, n as loadConfig, o as writeConfigFile, t as createConfigIO } from "./config-BkeO1N4t.js";
|
|
4
|
+
import { i as defaultRuntime, t as createSubsystemLogger } from "./subsystem-DQdKZm8Z.js";
|
|
5
|
+
import { S as truncateUtf16Safe, h as resolveUserPath } from "./utils-hxOwZduA.js";
|
|
6
|
+
import { r as parseBooleanValue, t as formatCliCommand } from "./command-format-9ttCUvaP.js";
|
|
7
|
+
import { L as resolvePathViaExistingAncestorSync, M as openBoundaryFile, _ as DEFAULT_IDENTITY_FILENAME, b as DEFAULT_USER_FILENAME, d as resolveSessionAgentId, g as DEFAULT_HEARTBEAT_FILENAME, h as DEFAULT_BOOTSTRAP_FILENAME, k as runExec, m as DEFAULT_AGENT_WORKSPACE_DIR, p as DEFAULT_AGENTS_FILENAME, r as resolveAgentConfig, v as DEFAULT_SOUL_FILENAME, x as ensureAgentWorkspace, y as DEFAULT_TOOLS_FILENAME } from "./agent-scope-DS0HILk_.js";
|
|
8
|
+
import { t as CHANNEL_IDS } from "./registry-Cq-TQPU8.js";
|
|
9
|
+
import { A as acquireSessionWriteLock, H as canonicalizeMainSessionAlias, U as resolveAgentMainSessionKey } from "./sessions-DFx8MKSO.js";
|
|
10
10
|
import { r as writeJsonAtomic } from "./json-files-BLPb80aT.js";
|
|
11
|
-
import { n as extractErrorCode, r as formatErrorMessage } from "./errors-
|
|
12
|
-
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-
|
|
13
|
-
import { i as getImageMetadata, n as buildImageResizeSideGrid, s as resizeToJpeg, t as IMAGE_REDUCE_QUALITY_STEPS } from "./image-ops-
|
|
14
|
-
import { t as SsrFBlockedError } from "./ssrf-
|
|
15
|
-
import { t as sanitizeContentBlocksImages } from "./tool-images-
|
|
11
|
+
import { n as extractErrorCode, r as formatErrorMessage } from "./errors-D2KyTKs6.js";
|
|
12
|
+
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-KB1li1UU.js";
|
|
13
|
+
import { i as getImageMetadata, n as buildImageResizeSideGrid, s as resizeToJpeg, t as IMAGE_REDUCE_QUALITY_STEPS } from "./image-ops-CfQjZch5.js";
|
|
14
|
+
import { t as SsrFBlockedError } from "./ssrf-BjVCUeM7.js";
|
|
15
|
+
import { t as sanitizeContentBlocksImages } from "./tool-images-RhD8geto.js";
|
|
16
16
|
import { i as resolveWindowsSpawnProgram, n as materializeWindowsSpawnProgram } from "./windows-spawn-CH7H4rha.js";
|
|
17
|
-
import { a as syncSkillsToWorkspace, h as safeEqualSecret, l as resolveSandboxInputPath, m as sanitizeEnvVars, u as resolveSandboxPath } from "./skills-
|
|
18
|
-
import { A as DEFAULT_DOWNLOAD_DIR, B as DEFAULT_AI_SNAPSHOT_MAX_CHARS, C as ensureChromeExtensionRelayServer, D as PROFILE_POST_RESTART_WS_TIMEOUT_MS, E as PROFILE_ATTACH_RETRY_TIMEOUT_MS, F as resolveWritablePathWithinRoot, G as DEFAULT_OPENCLAW_BROWSER_PROFILE_NAME, H as DEFAULT_BROWSER_EVALUATE_ENABLED, K as isLoopbackHost, L as normalizeBrowserFormField, M as DEFAULT_UPLOAD_DIR, N as resolveExistingPathsWithinRoot, O as resolveCdpReachabilityTimeouts, R as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, T as CDP_JSON_NEW_TIMEOUT_MS, U as DEFAULT_OPENCLAW_BROWSER_COLOR, V as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, W as DEFAULT_OPENCLAW_BROWSER_ENABLED, _ as withBrowserNavigationPolicy, a as resolveOpenClawUserDataDir, b as fetchOk, c as resolveBrowserExecutableForPlatform, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, i as launchOpenClawChrome, j as DEFAULT_TRACE_DIR, l as captureScreenshot, m as InvalidBrowserNavigationUrlError, n as isChromeCdpReady, o as stopOpenClawChrome, p as snapshotAria, r as isChromeReachable, u as createTargetViaCdp, v as appendCdpPath, w as stopChromeExtensionRelayServer, y as fetchJson, z as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS } from "./chrome-
|
|
19
|
-
import { a as saveMediaBuffer, n as ensureMediaDir } from "./store-
|
|
17
|
+
import { a as syncSkillsToWorkspace, h as safeEqualSecret, l as resolveSandboxInputPath, m as sanitizeEnvVars, u as resolveSandboxPath } from "./skills-CZFBOkwT.js";
|
|
18
|
+
import { A as DEFAULT_DOWNLOAD_DIR, B as DEFAULT_AI_SNAPSHOT_MAX_CHARS, C as ensureChromeExtensionRelayServer, D as PROFILE_POST_RESTART_WS_TIMEOUT_MS, E as PROFILE_ATTACH_RETRY_TIMEOUT_MS, F as resolveWritablePathWithinRoot, G as DEFAULT_OPENCLAW_BROWSER_PROFILE_NAME, H as DEFAULT_BROWSER_EVALUATE_ENABLED, K as isLoopbackHost, L as normalizeBrowserFormField, M as DEFAULT_UPLOAD_DIR, N as resolveExistingPathsWithinRoot, O as resolveCdpReachabilityTimeouts, R as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, T as CDP_JSON_NEW_TIMEOUT_MS, U as DEFAULT_OPENCLAW_BROWSER_COLOR, V as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, W as DEFAULT_OPENCLAW_BROWSER_ENABLED, _ as withBrowserNavigationPolicy, a as resolveOpenClawUserDataDir, b as fetchOk, c as resolveBrowserExecutableForPlatform, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, i as launchOpenClawChrome, j as DEFAULT_TRACE_DIR, l as captureScreenshot, m as InvalidBrowserNavigationUrlError, n as isChromeCdpReady, o as stopOpenClawChrome, p as snapshotAria, r as isChromeReachable, u as createTargetViaCdp, v as appendCdpPath, w as stopChromeExtensionRelayServer, y as fetchJson, z as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS } from "./chrome-DoDlUT7F.js";
|
|
19
|
+
import { a as saveMediaBuffer, n as ensureMediaDir } from "./store-DALs5PIC.js";
|
|
20
20
|
import { o as normalizeThinkLevel } from "./thinking-DGaZRXAR.js";
|
|
21
21
|
import { t as generateSecureToken } from "./secure-random-C5PtFEje.js";
|
|
22
22
|
import fs, { existsSync } from "node:fs";
|
|
@@ -1182,7 +1182,7 @@ function isModuleNotFoundError(err) {
|
|
|
1182
1182
|
}
|
|
1183
1183
|
async function loadPwAiModule(mode) {
|
|
1184
1184
|
try {
|
|
1185
|
-
return await import("./pw-ai-
|
|
1185
|
+
return await import("./pw-ai-C1rLCgeF.js");
|
|
1186
1186
|
} catch (err) {
|
|
1187
1187
|
if (mode === "soft") return null;
|
|
1188
1188
|
if (isModuleNotFoundError(err)) return null;
|
|
@@ -3548,7 +3548,7 @@ function createProfileAvailability({ opts, profile, state, getProfileState, setP
|
|
|
3548
3548
|
//#region src/browser/server-context.reset.ts
|
|
3549
3549
|
async function closePlaywrightBrowserConnection() {
|
|
3550
3550
|
try {
|
|
3551
|
-
await (await import("./pw-ai-
|
|
3551
|
+
await (await import("./pw-ai-C1rLCgeF.js")).closePlaywrightBrowserConnection();
|
|
3552
3552
|
} catch {}
|
|
3553
3553
|
}
|
|
3554
3554
|
function createProfileResetOps({ profile, getProfileState, stopRunningBrowser, isHttpReachable, resolveOpenClawUserDataDir }) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { Gn as ensureAuthProfileStore, ln as normalizeProviderId } from "./config-
|
|
2
|
+
import { Gn as ensureAuthProfileStore, ln as normalizeProviderId } from "./config-BkeO1N4t.js";
|
|
3
3
|
import fs from "node:fs";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import * as PiCodingAgent from "@mariozechner/pi-coding-agent";
|