squidclaw 3.0.24 → 3.0.25
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/{accounts-DwGoZKGm.js → accounts-B6F_XCgS.js} +17 -17
- package/dist/{accounts-DjhBQg_8.js → accounts-Bkb-J8V6.js} +2 -2
- package/dist/{accounts-C7pGQPcS.js → accounts-s5e9zidf.js} +2 -2
- package/dist/{active-listener-DPc_PGsA.js → active-listener-6-Svu8Dx.js} +2 -2
- package/dist/{api-key-rotation-DVyYtQxC.js → api-key-rotation-TRwuCWbu.js} +2 -2
- package/dist/{audio-preflight-BUCBED7N.js → audio-preflight-1KULThhV.js} +32 -32
- package/dist/{audio-transcription-runner-Cv0Q47cM.js → audio-transcription-runner-C3N9eAGM.js} +12 -12
- package/dist/{audit-membership-runtime-DyLj-uhz.js → audit-membership-runtime-w23FnNAN.js} +4 -4
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +51 -51
- package/dist/bundled/bootstrap-extra-files/handler.js +6 -6
- package/dist/bundled/command-logger/handler.js +2 -2
- package/dist/bundled/session-memory/handler.js +99 -55
- package/dist/{channel-activity-CPpt4XaL.js → channel-activity-CxJbx4sD.js} +3 -3
- package/dist/{chrome-OgCChbC_.js → chrome-Qbvnl6so.js} +18 -18
- package/dist/{commands-registry-BJjv8_oR.js → commands-registry-B44COZFz.js} +4 -4
- package/dist/{deliver-DMTUTpTM.js → deliver-BC5egJvm.js} +21 -21
- package/dist/deliver-runtime-B6NtHUuv.js +36 -0
- package/dist/deps-send-discord.runtime-CUTAK2hy.js +26 -0
- package/dist/deps-send-imessage.runtime-CQOiEIuA.js +25 -0
- package/dist/deps-send-signal.runtime-wN7MkzLw.js +24 -0
- package/dist/deps-send-slack.runtime-HEEwW4uU.js +22 -0
- package/dist/deps-send-telegram.runtime-DHlcnjQO.js +27 -0
- package/dist/deps-send-whatsapp.runtime-C2x2R2Ow.js +60 -0
- package/dist/{diagnostic-CnVwZNbm.js → diagnostic-C2lklhkn.js} +2 -2
- package/dist/{errors-kkRuS2Cs.js → errors-DfgAh2Ml.js} +1 -1
- package/dist/{fetch-DP-JjB6Z.js → fetch-b8tSR7_e.js} +5 -5
- package/dist/{fetch-guard-BDy975wP.js → fetch-guard-D16tjNsZ.js} +2 -2
- package/dist/{frontmatter-Cq1TcIQ2.js → frontmatter-CjKtFduT.js} +3 -3
- package/dist/{fs-safe-BoB4X3GD.js → fs-safe-CwHbZdFH.js} +4 -4
- package/dist/{github-copilot-token-B5cPlwaz.js → github-copilot-token-Cw3tAXM9.js} +7 -7
- package/dist/{image-kKMG59st.js → image-ByqExb8z.js} +6 -6
- package/dist/{image-ops-Dg8iraUV.js → image-ops-BoN1E_WZ.js} +2 -2
- package/dist/image-runtime-BSVF52oe.js +29 -0
- package/dist/{ir-CKK03mBV.js → ir-Dut0zXyS.js} +8 -8
- package/dist/{legacy-names-aGJJuzM_.js → legacy-names-B0wgIP0Q.js} +1 -1
- package/dist/llm-slug-generator.js +51 -51
- package/dist/{logger-CnTSBL7T.js → logger-oGKcCLZ5.js} +7 -7
- package/dist/{login-CeKDrz6_.js → login-DJ357UQV.js} +5 -5
- package/dist/{login-qr-KbOpR0GQ.js → login-qr-C0fDBnpM.js} +10 -10
- package/dist/{manager-DINhLnMi.js → manager-BPGhs30n.js} +13 -13
- package/dist/manager-runtime-BB9lcoFR.js +18 -0
- package/dist/{model-selection-DuNLFQPR.js → model-selection-CHnojCCK.js} +43 -43
- package/dist/{outbound-attachment-DwupUxYF.js → outbound-attachment-rlW7G5df.js} +2 -2
- package/dist/{outbound-C9svt6RH.js → outbound-qTioiTJg.js} +6 -6
- package/dist/{path-alias-guards-DORgbZ1w.js → path-alias-guards-Cpsiv2KL.js} +1 -1
- package/dist/{paths-DA5srn0U.js → paths-CSdAWKDO.js} +5 -5
- package/dist/{paths-DSd911Oe.js → paths-CXClY8zC.js} +4 -4
- package/dist/{pi-embedded-BiC4tIJ8.js → pi-embedded-DUtpCH0X.js} +162 -162
- package/dist/{pi-embedded-helpers-Di58J7Eh.js → pi-embedded-helpers-CYR1UemI.js} +52 -52
- package/dist/{plugin-sdk/pi-model-discovery-DdctvBeX.js → pi-model-discovery-o-WX5w2t.js} +2 -2
- package/dist/pi-model-discovery-runtime-DBkQoIJw.js +11 -0
- package/dist/{pi-tools.before-tool-call.runtime-Bpk4qTgV.js → pi-tools.before-tool-call.runtime-B_LUttg1.js} +9 -9
- package/dist/plugin-sdk/discord.js +6 -6
- package/dist/plugin-sdk/index.js +50 -50
- package/dist/plugin-sdk/signal.js +2 -2
- package/dist/{plugins-DvejjZnJ.js → plugins-AqsVZZk3.js} +11 -11
- package/dist/{proxy-env-D-fike7s.js → proxy-env-DXXfs2WL.js} +1 -1
- package/dist/{plugin-sdk/proxy-fetch-ZPEvp58f.js → proxy-fetch-C2v-Utgg.js} +1 -1
- package/dist/{pw-ai-B8ymIYub.js → pw-ai-1NQPuno2.js} +14 -14
- package/dist/{qmd-manager-BN0siR2Z.js → qmd-manager-CO-shcLU.js} +10 -10
- package/dist/{query-expansion-Dzxt6kXo.js → query-expansion-DlQOkf-g.js} +6 -6
- package/dist/{plugin-sdk/redact-BoNEjbpF.js → redact-NmPEVjIo.js} +1 -1
- package/dist/{run-with-concurrency-BFR3ReeF.js → run-with-concurrency-FczpX8ng.js} +4 -4
- package/dist/runtime-whatsapp-login.runtime-DumUjKRz.js +13 -0
- package/dist/runtime-whatsapp-outbound.runtime-Cgu2MfqR.js +22 -0
- package/dist/{send-dTQd-IyJ.js → send-B5QEmMJ4.js} +5 -5
- package/dist/{send-DdBbRpTP.js → send-B9H0BkfO.js} +6 -6
- package/dist/{send-4nRsZJXH.js → send-Bx9CqcZr.js} +7 -7
- package/dist/{send-BGlcHjUD.js → send-D5D0ZGht.js} +26 -26
- package/dist/{send-BTUU1jWM.js → send-DtHQ7_6Z.js} +8 -8
- package/dist/{session-CnCwDJke.js → session-DLTCuoUD.js} +8 -8
- package/dist/{skill-commands-Cz45_nme.js → skill-commands-BwTLQRR8.js} +9 -9
- package/dist/{skills-CdCS1HeL.js → skills-B9N2bqKU.js} +22 -22
- package/dist/slash-commands.runtime-CjBXruwG.js +16 -0
- package/dist/slash-dispatch.runtime-CGd3HarH.js +56 -0
- package/dist/slash-skill-commands.runtime-DYK20Lxf.js +20 -0
- package/dist/{store-D9z0dn7D.js → store-CvQ41zCV.js} +2 -2
- package/dist/subagent-registry-runtime-m9bFJFix.js +56 -0
- package/dist/{subsystem-6v7sWnAD.js → subsystem-BaLYRf7D.js} +14 -14
- package/dist/{tables-BTFiZyRU.js → tables-BRYYxYs7.js} +1 -1
- package/dist/{plugin-sdk/target-errors-jlLHihbX.js → target-errors-D0ZJUbbf.js} +2 -2
- package/dist/{thinking-B75CXkTT.js → thinking-B-A99X3F.js} +7 -7
- package/dist/{tokens-DfbMVF9y.js → tokens-D2XhLqIz.js} +1 -1
- package/dist/{tool-images-Dp5OiXeA.js → tool-images-Zn6jVmkX.js} +2 -2
- package/dist/{web-QsxgXbNK.js → web-CEdWU_u3.js} +55 -55
- package/dist/{whatsapp-actions-CzqsuSGx.js → whatsapp-actions-Cuy0qeQK.js} +21 -21
- package/dist/{workspace-kVMIaBrV.js → workspace-TqfVSQuO.js} +20 -20
- package/package.json +1 -1
- package/dist/deliver-runtime-B80olQwJ.js +0 -36
- package/dist/deps-send-discord.runtime-GIuvX7Xw.js +0 -26
- package/dist/deps-send-imessage.runtime-B3TC7G80.js +0 -25
- package/dist/deps-send-signal.runtime-CuVJyw7n.js +0 -24
- package/dist/deps-send-slack.runtime-cbfFoLZ4.js +0 -22
- package/dist/deps-send-telegram.runtime-CRyP-xDQ.js +0 -27
- package/dist/deps-send-whatsapp.runtime-4aOUBP2J.js +0 -60
- package/dist/image-runtime-BqIv7p_K.js +0 -29
- package/dist/manager-runtime-D6ckUNSs.js +0 -18
- package/dist/pi-model-discovery-V-InbjOM.js +0 -134
- package/dist/pi-model-discovery-runtime--t6tAlar.js +0 -11
- package/dist/plugin-sdk/accounts-CUEuUR3C.js +0 -46
- package/dist/plugin-sdk/accounts-D0W2pELU.js +0 -288
- package/dist/plugin-sdk/accounts-ucj0odJq.js +0 -35
- package/dist/plugin-sdk/active-listener-BO7eBEG_.js +0 -50
- package/dist/plugin-sdk/api-key-rotation-C4C_mDsg.js +0 -181
- package/dist/plugin-sdk/audio-preflight-Cqdo0JKm.js +0 -69
- package/dist/plugin-sdk/audio-transcription-runner-DnEooIyE.js +0 -2176
- package/dist/plugin-sdk/audit-membership-runtime-B9b-zRwg.js +0 -58
- package/dist/plugin-sdk/channel-activity-BMWLw4o2.js +0 -94
- package/dist/plugin-sdk/channel-web-B8bj7MB9.js +0 -2256
- package/dist/plugin-sdk/chrome-CV-q0Lmc.js +0 -2415
- package/dist/plugin-sdk/commands-registry-e7YoqrbP.js +0 -1125
- package/dist/plugin-sdk/config-B2B64aX0.js +0 -17911
- package/dist/plugin-sdk/deliver-BkyBtcLR.js +0 -1694
- package/dist/plugin-sdk/deliver-runtime-O4lwAWMw.js +0 -32
- package/dist/plugin-sdk/deps-send-discord.runtime-BAeeBldY.js +0 -23
- package/dist/plugin-sdk/deps-send-imessage.runtime-EL-CfikZ.js +0 -22
- package/dist/plugin-sdk/deps-send-signal.runtime-BeemHeUu.js +0 -21
- package/dist/plugin-sdk/deps-send-slack.runtime-DTttkC0N.js +0 -19
- package/dist/plugin-sdk/deps-send-telegram.runtime-Dsf9Cnka.js +0 -24
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-DvdFo6lj.js +0 -57
- package/dist/plugin-sdk/diagnostic-DPRVoKTk.js +0 -319
- package/dist/plugin-sdk/errors-B8oJXuCF.js +0 -54
- package/dist/plugin-sdk/fetch-guard-F0Fnqisy.js +0 -156
- package/dist/plugin-sdk/fs-safe-Dqmpk-Fr.js +0 -352
- package/dist/plugin-sdk/image-cBW8L8pp.js +0 -2310
- package/dist/plugin-sdk/image-ops-BP8ix1GC.js +0 -584
- package/dist/plugin-sdk/image-runtime-9xkgSlNz.js +0 -25
- package/dist/plugin-sdk/ir-DWEc6zOp.js +0 -1296
- package/dist/plugin-sdk/local-roots-BIPT8uAO.js +0 -186
- package/dist/plugin-sdk/logger-DDdrdbDu.js +0 -1163
- package/dist/plugin-sdk/login-BMTiGutN.js +0 -57
- package/dist/plugin-sdk/login-qr-BFxqYUkc.js +0 -320
- package/dist/plugin-sdk/manager-BD-aYaZ8.js +0 -3917
- package/dist/plugin-sdk/manager-runtime-C5bRwUlz.js +0 -15
- package/dist/plugin-sdk/outbound-Bm07xvO6.js +0 -212
- package/dist/plugin-sdk/outbound-attachment-DLsaxDsc.js +0 -19
- package/dist/plugin-sdk/path-alias-guards-gBhrAn14.js +0 -43
- package/dist/plugin-sdk/paths-C6W4VHoa.js +0 -166
- package/dist/plugin-sdk/pi-embedded-helpers-BExwPvTh.js +0 -9627
- package/dist/plugin-sdk/pi-model-discovery-runtime-DrtpLJjk.js +0 -8
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-rgTz3FBl.js +0 -354
- package/dist/plugin-sdk/plugins-BN64HHZA.js +0 -864
- package/dist/plugin-sdk/pw-ai-DBm3RdBK.js +0 -1938
- package/dist/plugin-sdk/qmd-manager-6bozlfFg.js +0 -1448
- package/dist/plugin-sdk/query-expansion-eeVz_aEm.js +0 -1011
- package/dist/plugin-sdk/reply-Bp49JV3f.js +0 -98828
- package/dist/plugin-sdk/resolve-outbound-target-DXfjGlZQ.js +0 -40
- package/dist/plugin-sdk/run-with-concurrency-5DMu9szx.js +0 -1994
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-D2hkJBa-.js +0 -10
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-C06I4adi.js +0 -19
- package/dist/plugin-sdk/send-B9xnwtQ-.js +0 -540
- package/dist/plugin-sdk/send-BxySs-Cu.js +0 -2587
- package/dist/plugin-sdk/send-D9THKp_J.js +0 -414
- package/dist/plugin-sdk/send-DCuaaP2w.js +0 -503
- package/dist/plugin-sdk/send-Dm_-_xje.js +0 -3135
- package/dist/plugin-sdk/session-DDzIZHxt.js +0 -169
- package/dist/plugin-sdk/skill-commands-DRvqtuFC.js +0 -342
- package/dist/plugin-sdk/skills-BWwlfbVj.js +0 -1428
- package/dist/plugin-sdk/slash-commands.runtime-BzYsaTST.js +0 -13
- package/dist/plugin-sdk/slash-dispatch.runtime-Cty8EAD9.js +0 -52
- package/dist/plugin-sdk/slash-skill-commands.runtime-sg98L8BK.js +0 -16
- package/dist/plugin-sdk/ssrf-DOBwjFow.js +0 -202
- package/dist/plugin-sdk/store-BKDR_-Qk.js +0 -81
- package/dist/plugin-sdk/subagent-registry-runtime-Dz50ieim.js +0 -52
- package/dist/plugin-sdk/tables-GIj79us5.js +0 -55
- package/dist/plugin-sdk/thinking-BgdUnMZ2.js +0 -1206
- package/dist/plugin-sdk/tokens-CTIYTLWu.js +0 -52
- package/dist/plugin-sdk/tool-images-GSlvf6RP.js +0 -274
- package/dist/plugin-sdk/web-BK9mCTAc.js +0 -56
- package/dist/plugin-sdk/whatsapp-actions-DQpK_5Ds.js +0 -80
- package/dist/proxy-fetch-lH6RsRTE.js +0 -38
- package/dist/redact-DvzicBMu.js +0 -319
- package/dist/runtime-whatsapp-login.runtime-DxV9iv6l.js +0 -13
- package/dist/runtime-whatsapp-outbound.runtime-DQqIlwhS.js +0 -22
- package/dist/slash-commands.runtime-CZz6v6b3.js +0 -16
- package/dist/slash-dispatch.runtime-SO7HOe8q.js +0 -56
- package/dist/slash-skill-commands.runtime-Bawt7j0r.js +0 -20
- package/dist/subagent-registry-runtime-D2rUxU5J.js +0 -56
- package/dist/target-errors-DgNRx3Nr.js +0 -195
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { f as resolveSessionAgentId, i as resolveAgentConfig } from "./run-with-concurrency-
|
|
2
|
-
import { a as resolveGatewayPort, d as resolveRequiredHomeDir, n as STATE_DIR } from "./paths-
|
|
3
|
-
import { i as defaultRuntime, t as createSubsystemLogger } from "./subsystem-
|
|
4
|
-
import { B as resolveAgentIdFromSessionKey, K as normalizeOptionalAccountId, N as buildAgentMainSessionKey, R as normalizeAgentId, T as resolvePathViaExistingAncestorSync, _ as runExec, a as DEFAULT_IDENTITY_FILENAME, b as openBoundaryFile, c as DEFAULT_USER_FILENAME, i as DEFAULT_HEARTBEAT_FILENAME, j as DEFAULT_AGENT_ID, l as ensureAgentWorkspace, n as DEFAULT_AGENT_WORKSPACE_DIR, o as DEFAULT_SOUL_FILENAME, r as DEFAULT_BOOTSTRAP_FILENAME, s as DEFAULT_TOOLS_FILENAME, t as DEFAULT_AGENTS_FILENAME, z as normalizeMainKey } from "./workspace-
|
|
5
|
-
import { E as truncateUtf16Safe, h as normalizeE164, y as resolveUserPath } from "./logger-
|
|
6
|
-
import { Vt as CHANNEL_IDS, W as resolveSecretRefValues, X as loadConfig, Y as createConfigIO, _r as resolveSecretInputRef, cr as isPidAlive, et as writeConfigFile, ft as secretRefKey, ht as parseByteSize, lr as formatCliCommand, mt as parseDurationMs, or as resolveProcessScopedMap, pt as getBlockedNetworkModeReason, sr as getProcessStartTime } from "./model-selection-
|
|
7
|
-
import { c as parseBooleanValue } from "./legacy-names-
|
|
8
|
-
import { d as getChannelDock, o as normalizeThinkLevel, v as normalizeHyphenSlug } from "./thinking-
|
|
9
|
-
import { _ as normalizeChatType, r as normalizeChannelId } from "./plugins-
|
|
1
|
+
import { f as resolveSessionAgentId, i as resolveAgentConfig } from "./run-with-concurrency-FczpX8ng.js";
|
|
2
|
+
import { a as resolveGatewayPort, d as resolveRequiredHomeDir, n as STATE_DIR } from "./paths-CSdAWKDO.js";
|
|
3
|
+
import { i as defaultRuntime, t as createSubsystemLogger } from "./subsystem-BaLYRf7D.js";
|
|
4
|
+
import { B as resolveAgentIdFromSessionKey, K as normalizeOptionalAccountId, N as buildAgentMainSessionKey, R as normalizeAgentId, T as resolvePathViaExistingAncestorSync, _ as runExec, a as DEFAULT_IDENTITY_FILENAME, b as openBoundaryFile, c as DEFAULT_USER_FILENAME, i as DEFAULT_HEARTBEAT_FILENAME, j as DEFAULT_AGENT_ID, l as ensureAgentWorkspace, n as DEFAULT_AGENT_WORKSPACE_DIR, o as DEFAULT_SOUL_FILENAME, r as DEFAULT_BOOTSTRAP_FILENAME, s as DEFAULT_TOOLS_FILENAME, t as DEFAULT_AGENTS_FILENAME, z as normalizeMainKey } from "./workspace-TqfVSQuO.js";
|
|
5
|
+
import { E as truncateUtf16Safe, h as normalizeE164, y as resolveUserPath } from "./logger-oGKcCLZ5.js";
|
|
6
|
+
import { Vt as CHANNEL_IDS, W as resolveSecretRefValues, X as loadConfig, Y as createConfigIO, _r as resolveSecretInputRef, cr as isPidAlive, et as writeConfigFile, ft as secretRefKey, ht as parseByteSize, lr as formatCliCommand, mt as parseDurationMs, or as resolveProcessScopedMap, pt as getBlockedNetworkModeReason, sr as getProcessStartTime } from "./model-selection-CHnojCCK.js";
|
|
7
|
+
import { c as parseBooleanValue } from "./legacy-names-B0wgIP0Q.js";
|
|
8
|
+
import { d as getChannelDock, o as normalizeThinkLevel, v as normalizeHyphenSlug } from "./thinking-B-A99X3F.js";
|
|
9
|
+
import { _ as normalizeChatType, r as normalizeChannelId } from "./plugins-AqsVZZk3.js";
|
|
10
10
|
import { t as generateSecureToken } from "./secure-random-CXrBi7Jq.js";
|
|
11
|
-
import { i as getImageMetadata, m as normalizeMessageChannel, n as buildImageResizeSideGrid, p as listDeliverableMessageChannels, s as resizeToJpeg, t as IMAGE_REDUCE_QUALITY_STEPS } from "./image-ops-
|
|
12
|
-
import { C as ensureChromeExtensionRelayServer, D as PROFILE_POST_RESTART_WS_TIMEOUT_MS, E as PROFILE_ATTACH_RETRY_TIMEOUT_MS, G as DEFAULT_BROWSER_EVALUATE_ENABLED, H as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, I as resolveWritablePathWithinRoot, J as DEFAULT_SQUIDCLAW_BROWSER_PROFILE_NAME, K as DEFAULT_SQUIDCLAW_BROWSER_COLOR, M as DEFAULT_TRACE_DIR, N as DEFAULT_UPLOAD_DIR, O as resolveCdpReachabilityTimeouts, P as resolveExistingPathsWithinRoot, R as normalizeBrowserFormField, T as CDP_JSON_NEW_TIMEOUT_MS, U as DEFAULT_AI_SNAPSHOT_MAX_CHARS, V as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, W as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, _ as withBrowserNavigationPolicy, a as resolveSquidClawUserDataDir, b as fetchOk, c as resolveBrowserExecutableForPlatform, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, i as launchSquidClawChrome, j as DEFAULT_DOWNLOAD_DIR, l as captureScreenshot, m as InvalidBrowserNavigationUrlError, n as isChromeCdpReady, o as stopSquidClawChrome, p as snapshotAria, q as DEFAULT_SQUIDCLAW_BROWSER_ENABLED, r as isChromeReachable, u as createTargetViaCdp, v as appendCdpPath, w as stopChromeExtensionRelayServer, y as fetchJson, z as isLoopbackHost } from "./chrome-
|
|
13
|
-
import { a as syncSkillsToWorkspace, l as resolveSandboxInputPath, m as sanitizeEnvVars, u as resolveSandboxPath } from "./skills-
|
|
14
|
-
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-
|
|
15
|
-
import { n as extractErrorCode, r as formatErrorMessage } from "./errors-
|
|
16
|
-
import { n as SsrFBlockedError } from "./proxy-env-
|
|
17
|
-
import { i as saveMediaBuffer, n as ensureMediaDir } from "./store-
|
|
11
|
+
import { i as getImageMetadata, m as normalizeMessageChannel, n as buildImageResizeSideGrid, p as listDeliverableMessageChannels, s as resizeToJpeg, t as IMAGE_REDUCE_QUALITY_STEPS } from "./image-ops-BoN1E_WZ.js";
|
|
12
|
+
import { C as ensureChromeExtensionRelayServer, D as PROFILE_POST_RESTART_WS_TIMEOUT_MS, E as PROFILE_ATTACH_RETRY_TIMEOUT_MS, G as DEFAULT_BROWSER_EVALUATE_ENABLED, H as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, I as resolveWritablePathWithinRoot, J as DEFAULT_SQUIDCLAW_BROWSER_PROFILE_NAME, K as DEFAULT_SQUIDCLAW_BROWSER_COLOR, M as DEFAULT_TRACE_DIR, N as DEFAULT_UPLOAD_DIR, O as resolveCdpReachabilityTimeouts, P as resolveExistingPathsWithinRoot, R as normalizeBrowserFormField, T as CDP_JSON_NEW_TIMEOUT_MS, U as DEFAULT_AI_SNAPSHOT_MAX_CHARS, V as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, W as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, _ as withBrowserNavigationPolicy, a as resolveSquidClawUserDataDir, b as fetchOk, c as resolveBrowserExecutableForPlatform, f as normalizeCdpWsUrl, g as assertBrowserNavigationResultAllowed, h as assertBrowserNavigationAllowed, i as launchSquidClawChrome, j as DEFAULT_DOWNLOAD_DIR, l as captureScreenshot, m as InvalidBrowserNavigationUrlError, n as isChromeCdpReady, o as stopSquidClawChrome, p as snapshotAria, q as DEFAULT_SQUIDCLAW_BROWSER_ENABLED, r as isChromeReachable, u as createTargetViaCdp, v as appendCdpPath, w as stopChromeExtensionRelayServer, y as fetchJson, z as isLoopbackHost } from "./chrome-Qbvnl6so.js";
|
|
13
|
+
import { a as syncSkillsToWorkspace, l as resolveSandboxInputPath, m as sanitizeEnvVars, u as resolveSandboxPath } from "./skills-B9N2bqKU.js";
|
|
14
|
+
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-Cpsiv2KL.js";
|
|
15
|
+
import { n as extractErrorCode, r as formatErrorMessage } from "./errors-DfgAh2Ml.js";
|
|
16
|
+
import { n as SsrFBlockedError } from "./proxy-env-DXXfs2WL.js";
|
|
17
|
+
import { i as saveMediaBuffer, n as ensureMediaDir } from "./store-CvQ41zCV.js";
|
|
18
18
|
import { n as resolveWindowsSpawnProgram, t as materializeWindowsSpawnProgram } from "./windows-spawn-B89VigUN.js";
|
|
19
19
|
import { i as writeTextAtomic, r as writeJsonAtomic } from "./json-files-D7-rxoSr.js";
|
|
20
|
-
import { a as resolveSessionTranscriptPathInDir, i as resolveSessionTranscriptPath, n as resolveSessionFilePath, s as resolveStorePath, t as resolveDefaultSessionStorePath } from "./paths-
|
|
20
|
+
import { a as resolveSessionTranscriptPathInDir, i as resolveSessionTranscriptPath, n as resolveSessionFilePath, s as resolveStorePath, t as resolveDefaultSessionStorePath } from "./paths-CXClY8zC.js";
|
|
21
21
|
import { t as emitSessionTranscriptUpdate } from "./transcript-events-uYL2gEou.js";
|
|
22
|
-
import { t as sanitizeContentBlocksImages } from "./tool-images-
|
|
22
|
+
import { t as sanitizeContentBlocksImages } from "./tool-images-Zn6jVmkX.js";
|
|
23
23
|
import fs from "node:fs/promises";
|
|
24
24
|
import os from "node:os";
|
|
25
25
|
import path, { posix } from "node:path";
|
|
26
|
-
import
|
|
26
|
+
import fs$1, { existsSync } from "node:fs";
|
|
27
27
|
import { spawn } from "node:child_process";
|
|
28
28
|
import crypto, { createHash, timingSafeEqual } from "node:crypto";
|
|
29
29
|
import { CURRENT_SESSION_VERSION, SessionManager } from "@mariozechner/pi-coding-agent";
|
|
@@ -1278,7 +1278,7 @@ function isModuleNotFoundError(err) {
|
|
|
1278
1278
|
}
|
|
1279
1279
|
async function loadPwAiModule(mode) {
|
|
1280
1280
|
try {
|
|
1281
|
-
return await import("./pw-ai-
|
|
1281
|
+
return await import("./pw-ai-1NQPuno2.js");
|
|
1282
1282
|
} catch (err) {
|
|
1283
1283
|
if (mode === "soft") return null;
|
|
1284
1284
|
if (isModuleNotFoundError(err)) return null;
|
|
@@ -3055,11 +3055,11 @@ async function movePathToTrash(targetPath) {
|
|
|
3055
3055
|
return targetPath;
|
|
3056
3056
|
} catch {
|
|
3057
3057
|
const trashDir = path.join(os.homedir(), ".Trash");
|
|
3058
|
-
|
|
3058
|
+
fs$1.mkdirSync(trashDir, { recursive: true });
|
|
3059
3059
|
const base = path.basename(targetPath);
|
|
3060
3060
|
let dest = path.join(trashDir, `${base}-${Date.now()}`);
|
|
3061
|
-
if (
|
|
3062
|
-
|
|
3061
|
+
if (fs$1.existsSync(dest)) dest = path.join(trashDir, `${base}-${Date.now()}-${generateSecureToken(6)}`);
|
|
3062
|
+
fs$1.renameSync(targetPath, dest);
|
|
3063
3063
|
return dest;
|
|
3064
3064
|
}
|
|
3065
3065
|
}
|
|
@@ -3146,7 +3146,7 @@ function createBrowserProfilesService(ctx) {
|
|
|
3146
3146
|
} catch {}
|
|
3147
3147
|
const userDataDir = resolveSquidClawUserDataDir(name);
|
|
3148
3148
|
const profileDir = path.dirname(userDataDir);
|
|
3149
|
-
if (
|
|
3149
|
+
if (fs$1.existsSync(profileDir)) {
|
|
3150
3150
|
await movePathToTrash(profileDir);
|
|
3151
3151
|
deleted = true;
|
|
3152
3152
|
}
|
|
@@ -3644,7 +3644,7 @@ function createProfileAvailability({ opts, profile, state, getProfileState, setP
|
|
|
3644
3644
|
//#region src/browser/server-context.reset.ts
|
|
3645
3645
|
async function closePlaywrightBrowserConnection() {
|
|
3646
3646
|
try {
|
|
3647
|
-
await (await import("./pw-ai-
|
|
3647
|
+
await (await import("./pw-ai-1NQPuno2.js")).closePlaywrightBrowserConnection();
|
|
3648
3648
|
} catch {}
|
|
3649
3649
|
}
|
|
3650
3650
|
function createProfileResetOps({ profile, getProfileState, stopRunningBrowser, isHttpReachable, resolveSquidClawUserDataDir }) {
|
|
@@ -3662,7 +3662,7 @@ function createProfileResetOps({ profile, getProfileState, stopRunningBrowser, i
|
|
|
3662
3662
|
if (await isHttpReachable(300) && !profileState.running) await closePlaywrightBrowserConnection();
|
|
3663
3663
|
if (profileState.running) await stopRunningBrowser();
|
|
3664
3664
|
await closePlaywrightBrowserConnection();
|
|
3665
|
-
if (!
|
|
3665
|
+
if (!fs$1.existsSync(userDataDir)) return {
|
|
3666
3666
|
moved: false,
|
|
3667
3667
|
from: userDataDir
|
|
3668
3668
|
};
|
|
@@ -4410,7 +4410,7 @@ function releaseAllLocksSync() {
|
|
|
4410
4410
|
if (typeof held.handle.close === "function") held.handle.close().catch(() => {});
|
|
4411
4411
|
} catch {}
|
|
4412
4412
|
try {
|
|
4413
|
-
|
|
4413
|
+
fs$1.rmSync(held.lockPath, { force: true });
|
|
4414
4414
|
} catch {}
|
|
4415
4415
|
HELD_LOCKS.delete(sessionFile);
|
|
4416
4416
|
}
|
|
@@ -6008,7 +6008,7 @@ var SandboxFsBridgeImpl = class {
|
|
|
6008
6008
|
if (guarded.reason !== "path") {
|
|
6009
6009
|
if (!(options.allowedType === "directory" && this.pathIsExistingDirectory(target.hostPath))) throw guarded.error instanceof Error ? guarded.error : /* @__PURE__ */ new Error(`Sandbox boundary checks failed; cannot ${options.action}: ${target.containerPath}`);
|
|
6010
6010
|
}
|
|
6011
|
-
} else
|
|
6011
|
+
} else fs$1.closeSync(guarded.fd);
|
|
6012
6012
|
const canonicalContainerPath = await this.resolveCanonicalContainerPath({
|
|
6013
6013
|
containerPath: target.containerPath,
|
|
6014
6014
|
allowFinalSymlinkForUnlink: options.aliasPolicy?.allowFinalSymlinkForUnlink === true
|
|
@@ -6019,7 +6019,7 @@ var SandboxFsBridgeImpl = class {
|
|
|
6019
6019
|
}
|
|
6020
6020
|
pathIsExistingDirectory(hostPath) {
|
|
6021
6021
|
try {
|
|
6022
|
-
return
|
|
6022
|
+
return fs$1.statSync(hostPath).isDirectory();
|
|
6023
6023
|
} catch {
|
|
6024
6024
|
return false;
|
|
6025
6025
|
}
|
|
@@ -6820,14 +6820,14 @@ function resolveSessionTranscriptCandidates(sessionId, storePath, sessionFile, a
|
|
|
6820
6820
|
function canonicalizePathForComparison$1(filePath) {
|
|
6821
6821
|
const resolved = path.resolve(filePath);
|
|
6822
6822
|
try {
|
|
6823
|
-
return
|
|
6823
|
+
return fs$1.realpathSync(resolved);
|
|
6824
6824
|
} catch {
|
|
6825
6825
|
return resolved;
|
|
6826
6826
|
}
|
|
6827
6827
|
}
|
|
6828
6828
|
function archiveFileOnDisk(filePath, reason) {
|
|
6829
6829
|
const archived = `${filePath}.${reason}.${formatSessionArchiveTimestamp()}`;
|
|
6830
|
-
|
|
6830
|
+
fs$1.renameSync(filePath, archived);
|
|
6831
6831
|
return archived;
|
|
6832
6832
|
}
|
|
6833
6833
|
/**
|
|
@@ -6843,7 +6843,7 @@ function archiveSessionTranscripts(opts) {
|
|
|
6843
6843
|
const relative = path.relative(storeDir, candidatePath);
|
|
6844
6844
|
if (!relative || relative.startsWith("..") || path.isAbsolute(relative)) continue;
|
|
6845
6845
|
}
|
|
6846
|
-
if (!
|
|
6846
|
+
if (!fs$1.existsSync(candidatePath)) continue;
|
|
6847
6847
|
try {
|
|
6848
6848
|
archived.push(archiveFileOnDisk(candidatePath, opts.reason));
|
|
6849
6849
|
} catch {}
|
|
@@ -6861,15 +6861,15 @@ async function cleanupArchivedSessionTranscripts(opts) {
|
|
|
6861
6861
|
let removed = 0;
|
|
6862
6862
|
let scanned = 0;
|
|
6863
6863
|
for (const dir of directories) {
|
|
6864
|
-
const entries = await
|
|
6864
|
+
const entries = await fs$1.promises.readdir(dir).catch(() => []);
|
|
6865
6865
|
for (const entry of entries) {
|
|
6866
6866
|
const timestamp = parseSessionArchiveTimestamp(entry, reason);
|
|
6867
6867
|
if (timestamp == null) continue;
|
|
6868
6868
|
scanned += 1;
|
|
6869
6869
|
if (now - timestamp <= opts.olderThanMs) continue;
|
|
6870
6870
|
const fullPath = path.join(dir, entry);
|
|
6871
|
-
if (!(await
|
|
6872
|
-
await
|
|
6871
|
+
if (!(await fs$1.promises.stat(fullPath).catch(() => null))?.isFile()) continue;
|
|
6872
|
+
await fs$1.promises.rm(fullPath).catch(() => void 0);
|
|
6873
6873
|
removed += 1;
|
|
6874
6874
|
}
|
|
6875
6875
|
}
|
|
@@ -6999,7 +6999,7 @@ function isCacheEnabled(ttlMs) {
|
|
|
6999
6999
|
}
|
|
7000
7000
|
function getFileStatSnapshot(filePath) {
|
|
7001
7001
|
try {
|
|
7002
|
-
const stats =
|
|
7002
|
+
const stats = fs$1.statSync(filePath);
|
|
7003
7003
|
return {
|
|
7004
7004
|
mtimeMs: stats.mtimeMs,
|
|
7005
7005
|
sizeBytes: stats.size
|
|
@@ -7018,7 +7018,7 @@ const NOOP_LOGGER = {
|
|
|
7018
7018
|
function canonicalizePathForComparison(filePath) {
|
|
7019
7019
|
const resolved = path.resolve(filePath);
|
|
7020
7020
|
try {
|
|
7021
|
-
return
|
|
7021
|
+
return fs$1.realpathSync(resolved);
|
|
7022
7022
|
} catch {
|
|
7023
7023
|
return resolved;
|
|
7024
7024
|
}
|
|
@@ -7076,12 +7076,12 @@ function resolveReferencedSessionTranscriptPaths(params) {
|
|
|
7076
7076
|
return referenced;
|
|
7077
7077
|
}
|
|
7078
7078
|
async function readSessionsDirFiles(sessionsDir) {
|
|
7079
|
-
const dirEntries = await
|
|
7079
|
+
const dirEntries = await fs$1.promises.readdir(sessionsDir, { withFileTypes: true }).catch(() => []);
|
|
7080
7080
|
const files = [];
|
|
7081
7081
|
for (const dirent of dirEntries) {
|
|
7082
7082
|
if (!dirent.isFile()) continue;
|
|
7083
7083
|
const filePath = path.join(sessionsDir, dirent.name);
|
|
7084
|
-
const stat = await
|
|
7084
|
+
const stat = await fs$1.promises.stat(filePath).catch(() => null);
|
|
7085
7085
|
if (!stat?.isFile()) continue;
|
|
7086
7086
|
files.push({
|
|
7087
7087
|
path: filePath,
|
|
@@ -7094,9 +7094,9 @@ async function readSessionsDirFiles(sessionsDir) {
|
|
|
7094
7094
|
return files;
|
|
7095
7095
|
}
|
|
7096
7096
|
async function removeFileIfExists(filePath) {
|
|
7097
|
-
const stat = await
|
|
7097
|
+
const stat = await fs$1.promises.stat(filePath).catch(() => null);
|
|
7098
7098
|
if (!stat?.isFile()) return 0;
|
|
7099
|
-
await
|
|
7099
|
+
await fs$1.promises.rm(filePath, { force: true }).catch(() => void 0);
|
|
7100
7100
|
return stat.size;
|
|
7101
7101
|
}
|
|
7102
7102
|
async function removeFileForBudget(params) {
|
|
@@ -7455,7 +7455,7 @@ function capEntryCount(store, overrideMax, opts = {}) {
|
|
|
7455
7455
|
}
|
|
7456
7456
|
async function getSessionFileSize(storePath) {
|
|
7457
7457
|
try {
|
|
7458
|
-
return (await
|
|
7458
|
+
return (await fs$1.promises.stat(storePath)).size;
|
|
7459
7459
|
} catch {
|
|
7460
7460
|
return null;
|
|
7461
7461
|
}
|
|
@@ -7472,7 +7472,7 @@ async function rotateSessionFile(storePath, overrideBytes) {
|
|
|
7472
7472
|
if (fileSize <= maxBytes) return false;
|
|
7473
7473
|
const backupPath = `${storePath}.bak.${Date.now()}`;
|
|
7474
7474
|
try {
|
|
7475
|
-
await
|
|
7475
|
+
await fs$1.promises.rename(storePath, backupPath);
|
|
7476
7476
|
log$2.info("rotated session store file", {
|
|
7477
7477
|
backupPath: path.basename(backupPath),
|
|
7478
7478
|
sizeBytes: fileSize
|
|
@@ -7483,11 +7483,11 @@ async function rotateSessionFile(storePath, overrideBytes) {
|
|
|
7483
7483
|
try {
|
|
7484
7484
|
const dir = path.dirname(storePath);
|
|
7485
7485
|
const baseName = path.basename(storePath);
|
|
7486
|
-
const backups = (await
|
|
7486
|
+
const backups = (await fs$1.promises.readdir(dir)).filter((f) => f.startsWith(`${baseName}.bak.`)).toSorted().toReversed();
|
|
7487
7487
|
const maxBackups = 3;
|
|
7488
7488
|
if (backups.length > maxBackups) {
|
|
7489
7489
|
const toDelete = backups.slice(maxBackups);
|
|
7490
|
-
for (const old of toDelete) await
|
|
7490
|
+
for (const old of toDelete) await fs$1.promises.unlink(path.join(dir, old)).catch(() => void 0);
|
|
7491
7491
|
log$2.info("cleaned up old session store backups", { deleted: toDelete.length });
|
|
7492
7492
|
}
|
|
7493
7493
|
} catch {}
|
|
@@ -7610,7 +7610,7 @@ function loadSessionStore(storePath, opts = {}) {
|
|
|
7610
7610
|
const maxReadAttempts = process.platform === "win32" ? 3 : 1;
|
|
7611
7611
|
const retryBuf = maxReadAttempts > 1 ? new Int32Array(new SharedArrayBuffer(4)) : void 0;
|
|
7612
7612
|
for (let attempt = 0; attempt < maxReadAttempts; attempt++) try {
|
|
7613
|
-
const raw =
|
|
7613
|
+
const raw = fs$1.readFileSync(storePath, "utf-8");
|
|
7614
7614
|
if (raw.length === 0 && attempt < maxReadAttempts - 1) {
|
|
7615
7615
|
Atomics.wait(retryBuf, 0, 0, 50);
|
|
7616
7616
|
continue;
|
|
@@ -7764,7 +7764,7 @@ async function saveSessionStoreUnlocked(storePath, store, opts) {
|
|
|
7764
7764
|
});
|
|
7765
7765
|
}
|
|
7766
7766
|
}
|
|
7767
|
-
await
|
|
7767
|
+
await fs$1.promises.mkdir(path.dirname(storePath), { recursive: true });
|
|
7768
7768
|
const json = JSON.stringify(store, null, 2);
|
|
7769
7769
|
if (getSerializedSessionStore(storePath) === json) {
|
|
7770
7770
|
updateSessionStoreWriteCaches({
|
|
@@ -8101,8 +8101,8 @@ function resolveMirroredTranscriptText(params) {
|
|
|
8101
8101
|
return trimmed ? trimmed : null;
|
|
8102
8102
|
}
|
|
8103
8103
|
async function ensureSessionHeader(params) {
|
|
8104
|
-
if (
|
|
8105
|
-
await
|
|
8104
|
+
if (fs$1.existsSync(params.sessionFile)) return;
|
|
8105
|
+
await fs$1.promises.mkdir(path.dirname(params.sessionFile), { recursive: true });
|
|
8106
8106
|
const header = {
|
|
8107
8107
|
type: "session",
|
|
8108
8108
|
version: CURRENT_SESSION_VERSION,
|
|
@@ -8110,7 +8110,7 @@ async function ensureSessionHeader(params) {
|
|
|
8110
8110
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
8111
8111
|
cwd: process.cwd()
|
|
8112
8112
|
};
|
|
8113
|
-
await
|
|
8113
|
+
await fs$1.promises.writeFile(params.sessionFile, `${JSON.stringify(header)}\n`, {
|
|
8114
8114
|
encoding: "utf-8",
|
|
8115
8115
|
mode: 384
|
|
8116
8116
|
});
|
|
@@ -8345,13 +8345,13 @@ async function ensureSandboxWorkspace(workspaceDir, seedFrom, skipBootstrap) {
|
|
|
8345
8345
|
});
|
|
8346
8346
|
if (!opened.ok) continue;
|
|
8347
8347
|
try {
|
|
8348
|
-
const content =
|
|
8348
|
+
const content = fs$1.readFileSync(opened.fd, "utf-8");
|
|
8349
8349
|
await fs.writeFile(dest, content, {
|
|
8350
8350
|
encoding: "utf-8",
|
|
8351
8351
|
flag: "wx"
|
|
8352
8352
|
});
|
|
8353
8353
|
} finally {
|
|
8354
|
-
|
|
8354
|
+
fs$1.closeSync(opened.fd);
|
|
8355
8355
|
}
|
|
8356
8356
|
} catch {}
|
|
8357
8357
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import {
|
|
3
|
-
import fs from "node:fs";
|
|
2
|
+
import { c as normalizeProviderId, nr as ensureAuthProfileStore } from "./model-selection-CHnojCCK.js";
|
|
4
3
|
import path from "node:path";
|
|
4
|
+
import fs from "node:fs";
|
|
5
5
|
import * as PiCodingAgent from "@mariozechner/pi-coding-agent";
|
|
6
6
|
|
|
7
7
|
//#region src/agents/pi-auth-credentials.ts
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "./run-with-concurrency-FczpX8ng.js";
|
|
2
|
+
import "./paths-CSdAWKDO.js";
|
|
3
|
+
import "./subsystem-BaLYRf7D.js";
|
|
4
|
+
import "./workspace-TqfVSQuO.js";
|
|
5
|
+
import "./logger-oGKcCLZ5.js";
|
|
6
|
+
import "./model-selection-CHnojCCK.js";
|
|
7
|
+
import "./github-copilot-token-Cw3tAXM9.js";
|
|
8
|
+
import "./legacy-names-B0wgIP0Q.js";
|
|
9
|
+
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-o-WX5w2t.js";
|
|
10
|
+
|
|
11
|
+
export { discoverAuthStorage, discoverModels };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./run-with-concurrency-
|
|
2
|
-
import "./paths-
|
|
3
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
4
|
-
import "./workspace-
|
|
5
|
-
import { D as isPlainObject } from "./logger-
|
|
6
|
-
import "./model-selection-
|
|
7
|
-
import "./github-copilot-token-
|
|
8
|
-
import "./legacy-names-
|
|
9
|
-
import { p as getDiagnosticSessionState, s as logToolLoopAction } from "./diagnostic-
|
|
1
|
+
import "./run-with-concurrency-FczpX8ng.js";
|
|
2
|
+
import "./paths-CSdAWKDO.js";
|
|
3
|
+
import { t as createSubsystemLogger } from "./subsystem-BaLYRf7D.js";
|
|
4
|
+
import "./workspace-TqfVSQuO.js";
|
|
5
|
+
import { D as isPlainObject } from "./logger-oGKcCLZ5.js";
|
|
6
|
+
import "./model-selection-CHnojCCK.js";
|
|
7
|
+
import "./github-copilot-token-Cw3tAXM9.js";
|
|
8
|
+
import "./legacy-names-B0wgIP0Q.js";
|
|
9
|
+
import { p as getDiagnosticSessionState, s as logToolLoopAction } from "./diagnostic-C2lklhkn.js";
|
|
10
10
|
import { createHash } from "node:crypto";
|
|
11
11
|
|
|
12
12
|
//#region src/agents/tool-loop-detection.ts
|
|
@@ -4,7 +4,7 @@ import chalk, { Chalk } from "chalk";
|
|
|
4
4
|
import fs, { constants } from "node:fs";
|
|
5
5
|
import { Logger } from "tslog";
|
|
6
6
|
import os from "node:os";
|
|
7
|
-
import
|
|
7
|
+
import JSON5 from "json5";
|
|
8
8
|
import { isDeepStrictEqual, promisify } from "node:util";
|
|
9
9
|
import fs$1 from "node:fs/promises";
|
|
10
10
|
import { execFile, execFileSync, spawn } from "node:child_process";
|
|
@@ -802,7 +802,7 @@ function readLoggingConfig() {
|
|
|
802
802
|
try {
|
|
803
803
|
if (!fs.existsSync(configPath)) return;
|
|
804
804
|
const raw = fs.readFileSync(configPath, "utf-8");
|
|
805
|
-
const logging =
|
|
805
|
+
const logging = JSON5.parse(raw)?.logging;
|
|
806
806
|
if (!logging || typeof logging !== "object" || Array.isArray(logging)) return;
|
|
807
807
|
return logging;
|
|
808
808
|
} catch {
|
|
@@ -5861,7 +5861,7 @@ const defaultResolver = {
|
|
|
5861
5861
|
resolvedPath,
|
|
5862
5862
|
rootRealDir
|
|
5863
5863
|
}),
|
|
5864
|
-
parseJson: (raw) =>
|
|
5864
|
+
parseJson: (raw) => JSON5.parse(raw)
|
|
5865
5865
|
};
|
|
5866
5866
|
/**
|
|
5867
5867
|
* Resolves all $include directives in a parsed config object.
|
|
@@ -13216,7 +13216,7 @@ function resolveConfigPathForDeps(deps) {
|
|
|
13216
13216
|
function normalizeDeps(overrides = {}) {
|
|
13217
13217
|
return {
|
|
13218
13218
|
fs: overrides.fs ?? fs,
|
|
13219
|
-
json5: overrides.json5 ??
|
|
13219
|
+
json5: overrides.json5 ?? JSON5,
|
|
13220
13220
|
env: overrides.env ?? process.env,
|
|
13221
13221
|
homedir: overrides.homedir ?? (() => resolveRequiredHomeDir(overrides.env ?? process.env, os.homedir)),
|
|
13222
13222
|
configPath: overrides.configPath ?? "",
|
|
@@ -13227,11 +13227,11 @@ function maybeLoadDotEnvForConfig(env) {
|
|
|
13227
13227
|
if (env !== process.env) return;
|
|
13228
13228
|
loadDotEnv({ quiet: true });
|
|
13229
13229
|
}
|
|
13230
|
-
function parseConfigJson5(raw, json5
|
|
13230
|
+
function parseConfigJson5(raw, json5 = JSON5) {
|
|
13231
13231
|
try {
|
|
13232
13232
|
return {
|
|
13233
13233
|
ok: true,
|
|
13234
|
-
parsed: json5
|
|
13234
|
+
parsed: json5.parse(raw)
|
|
13235
13235
|
};
|
|
13236
13236
|
} catch (err) {
|
|
13237
13237
|
return {
|
package/dist/plugin-sdk/index.js
CHANGED
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
import { $ as normalizeAgentId, D as runCommandWithTimeout, R as isNotFoundPathError, at as DEFAULT_ACCOUNT_ID, nt as resolveThreadSessionKeys, ot as normalizeAccountId, z as isPathInside } from "./run-with-concurrency-
|
|
2
|
-
import { a as resolveWhatsAppAuthDir, i as resolveWhatsAppAccount, n as listWhatsAppAccountIds, r as resolveDefaultWhatsAppAccountId, y as createAccountListHelpers } from "./accounts-
|
|
3
|
-
import { $ as shouldAckReaction, $t as isRequestBodyLimitError, A as attachFooterText, At as issuePairingChallenge, B as resolveDiscordChannelAllowlist, Bt as resolveControlCommandGate, Ct as resolveTimezone, D as processLineMessage, Dt as readBooleanParam, E as hasMarkdownToConvert, F as parseTelegramThreadId, Ft as resolveDmGroupAccessDecision, G as recordInboundSession, Gt as resolveOpenProviderRuntimeGroupPolicy, H as formatDocsLink, Ht as resetMissingProviderGroupPolicyFallbackWarningsForTesting, I as resolveSlackUserAllowlist, It as resolveDmGroupAccessWithCommandGate, J as logTypingFailure, Jt as pruneMapToMaxSize, K as logAckFailure, Kt as resolveRuntimeGroupPolicy, L as resolveSlackChannelAllowlist, Lt as resolveDmGroupAccessWithLists, Mt as DM_GROUP_ACCESS_REASON, Nt as readStoreAllowFromForDmPolicy, O as stripMarkdown, Ot as buildMediaPayload, P as parseTelegramReplyToMessageId, Pt as resolveDmAllowState, Q as removeAckReactionAfterReply, Qt as installRequestBodyLimitGuard, R as detectBinary, Rt as resolveEffectiveAllowFromLists, Sn as CHANNEL_MESSAGE_ACTION_NAMES, St as formatZonedTimestamp, U as optionalStringEnum, Ut as resolveAllowlistProviderRuntimeGroupPolicy, V as collectDiscordAuditChannelIds, Vt as GROUP_POLICY_BLOCKED_LABEL, W as stringEnum, Wt as resolveDefaultGroupPolicy, X as createReplyPrefixOptions, Xt as DEFAULT_WEBHOOK_MAX_BODY_BYTES, Y as createReplyPrefixContext, Yt as DEFAULT_WEBHOOK_BODY_TIMEOUT_MS, Z as createTypingCallbacks, Zt as RequestBodyLimitError, _n as resolveAllowlistMatchByCandidates, _t as listDevicePairing, an as isDangerousNameMatchingEnabled, at as DEFAULT_GROUP_HISTORY_LIMIT, bn as BLUEBUBBLES_ACTION_NAMES, bt as formatInboundFromLabel, c as normalizeAccountId$1, cn as registerAcpRuntimeBackend, ct as clearHistoryEntries, dn as ACP_ERROR_CODES, dt as recordPendingHistoryEntry, en as readJsonBodyWithLimit, et as shouldAckReactionForWhatsApp, fn as AcpRuntimeError, ft as recordPendingHistoryEntryIfEnabled, gn as formatAllowlistMatchMeta, gt as approveDevicePairing, hn as unbindThreadBindingsBySessionKey, ht as createDedupeCache, in as enqueueKeyedTask, it as summarizeMapping, k as createReceiptCard, kt as extractToolSend, l as resolveDefaultLineAccountId, ln as requireAcpRuntimeBackend, lt as clearHistoryEntriesIfEnabled, mn as listThreadBindingsBySessionKey, nn as requestBodyErrorToText, nt as resolveMentionGatingWithBypass, on as registerPluginHttpRoute, pn as autoBindSpawnedDiscordSubagent, q as logInboundDrop, qt as warnMissingProviderGroupPolicyFallbackOnce, rn as KeyedAsyncQueue, rt as mergeAllowlist, s as listLineAccountIds, sn as getAcpRuntimeBackend, st as buildPendingHistoryContextFromMap, tn as readRequestBodyWithLimit, tt as resolveMentionGating, u as resolveLineAccount, un as unregisterAcpRuntimeBackend, ut as evictOldHistoryKeys, vn as resolveAllowlistMatchSimple, vt as rejectDevicePairing, wt as resolveAckReaction, xn as BLUEBUBBLES_GROUP_ACTIONS, xt as formatUtcTimestamp, yn as BLUEBUBBLES_ACTIONS, z as resolveDiscordUserAllowlist } from "./reply-
|
|
1
|
+
import { $ as normalizeAgentId, D as runCommandWithTimeout, R as isNotFoundPathError, at as DEFAULT_ACCOUNT_ID, nt as resolveThreadSessionKeys, ot as normalizeAccountId, z as isPathInside } from "./run-with-concurrency-BvgevDAl.js";
|
|
2
|
+
import { a as resolveWhatsAppAuthDir, i as resolveWhatsAppAccount, n as listWhatsAppAccountIds, r as resolveDefaultWhatsAppAccountId, y as createAccountListHelpers } from "./accounts-Ba9Wgzzz.js";
|
|
3
|
+
import { $ as shouldAckReaction, $t as isRequestBodyLimitError, A as attachFooterText, At as issuePairingChallenge, B as resolveDiscordChannelAllowlist, Bt as resolveControlCommandGate, Ct as resolveTimezone, D as processLineMessage, Dt as readBooleanParam, E as hasMarkdownToConvert, F as parseTelegramThreadId, Ft as resolveDmGroupAccessDecision, G as recordInboundSession, Gt as resolveOpenProviderRuntimeGroupPolicy, H as formatDocsLink, Ht as resetMissingProviderGroupPolicyFallbackWarningsForTesting, I as resolveSlackUserAllowlist, It as resolveDmGroupAccessWithCommandGate, J as logTypingFailure, Jt as pruneMapToMaxSize, K as logAckFailure, Kt as resolveRuntimeGroupPolicy, L as resolveSlackChannelAllowlist, Lt as resolveDmGroupAccessWithLists, Mt as DM_GROUP_ACCESS_REASON, Nt as readStoreAllowFromForDmPolicy, O as stripMarkdown, Ot as buildMediaPayload, P as parseTelegramReplyToMessageId, Pt as resolveDmAllowState, Q as removeAckReactionAfterReply, Qt as installRequestBodyLimitGuard, R as detectBinary, Rt as resolveEffectiveAllowFromLists, Sn as CHANNEL_MESSAGE_ACTION_NAMES, St as formatZonedTimestamp, U as optionalStringEnum, Ut as resolveAllowlistProviderRuntimeGroupPolicy, V as collectDiscordAuditChannelIds, Vt as GROUP_POLICY_BLOCKED_LABEL, W as stringEnum, Wt as resolveDefaultGroupPolicy, X as createReplyPrefixOptions, Xt as DEFAULT_WEBHOOK_MAX_BODY_BYTES, Y as createReplyPrefixContext, Yt as DEFAULT_WEBHOOK_BODY_TIMEOUT_MS, Z as createTypingCallbacks, Zt as RequestBodyLimitError, _n as resolveAllowlistMatchByCandidates, _t as listDevicePairing, an as isDangerousNameMatchingEnabled, at as DEFAULT_GROUP_HISTORY_LIMIT, bn as BLUEBUBBLES_ACTION_NAMES, bt as formatInboundFromLabel, c as normalizeAccountId$1, cn as registerAcpRuntimeBackend, ct as clearHistoryEntries, dn as ACP_ERROR_CODES, dt as recordPendingHistoryEntry, en as readJsonBodyWithLimit, et as shouldAckReactionForWhatsApp, fn as AcpRuntimeError, ft as recordPendingHistoryEntryIfEnabled, gn as formatAllowlistMatchMeta, gt as approveDevicePairing, hn as unbindThreadBindingsBySessionKey, ht as createDedupeCache, in as enqueueKeyedTask, it as summarizeMapping, k as createReceiptCard, kt as extractToolSend, l as resolveDefaultLineAccountId, ln as requireAcpRuntimeBackend, lt as clearHistoryEntriesIfEnabled, mn as listThreadBindingsBySessionKey, nn as requestBodyErrorToText, nt as resolveMentionGatingWithBypass, on as registerPluginHttpRoute, pn as autoBindSpawnedDiscordSubagent, q as logInboundDrop, qt as warnMissingProviderGroupPolicyFallbackOnce, rn as KeyedAsyncQueue, rt as mergeAllowlist, s as listLineAccountIds, sn as getAcpRuntimeBackend, st as buildPendingHistoryContextFromMap, tn as readRequestBodyWithLimit, tt as resolveMentionGating, u as resolveLineAccount, un as unregisterAcpRuntimeBackend, ut as evictOldHistoryKeys, vn as resolveAllowlistMatchSimple, vt as rejectDevicePairing, wt as resolveAckReaction, xn as BLUEBUBBLES_GROUP_ACTIONS, xt as formatUtcTimestamp, yn as BLUEBUBBLES_ACTIONS, z as resolveDiscordUserAllowlist } from "./reply-BczXGzC_.js";
|
|
4
4
|
import "./paths-8xF5kDne.js";
|
|
5
5
|
import "./github-copilot-token-Dy-0-Kh3.js";
|
|
6
|
-
import { A as GroupPolicySchema, Ar as withFileLock, At as normalizePluginHttpPath, B as requireOpenAllowFrom, D as BlockStreamingCoalesceSchema, E as ToolPolicySchema, F as TtsAutoSchema, Hr as isSecretRef, I as TtsConfigSchema, L as TtsModeSchema, M as MarkdownTableModeSchema, N as ReplyRuntimeConfigSchemaShape, O as DmConfigSchema, P as SecretInputSchema, Pr as formatCliCommand, R as TtsProviderSchema, Ur as normalizeResolvedSecretInputString, Vr as hasConfiguredSecretInput, Wr as normalizeSecretInputString, c as WhatsAppConfigSchema, d as IMessageConfigSchema, ei as isTruthyEnvValue, f as MSTeamsConfigSchema, fr as resolveSecretRefString, h as TelegramConfigSchema, j as MarkdownConfigSchema, k as DmPolicySchema, kr as acquireFileLock, l as DiscordConfigSchema, m as SlackConfigSchema, p as SignalConfigSchema, u as GoogleChatConfigSchema, vr as isValidFileSecretRefId, xr as encodeJsonPointerToken, yr as resolveDefaultSecretProviderAlias, yt as getChatChannelMeta, z as normalizeAllowFrom, zr as assertSecretInputResolved } from "./config-
|
|
7
|
-
import { A as sleep, C as pathExists, D as safeParseJson, K as registerLogTransport, S as normalizeE164, X as resolvePreferredSquidClawTmpDir, _ as escapeRegExp, f as CONFIG_DIR, o as stripAnsi, p as clamp, y as isRecord } from "./logger-
|
|
8
|
-
import { A as resolveWhatsAppGroupToolPolicy, B as normalizeWhatsAppMessagingTarget, C as resolveIMessageGroupRequireMention, D as resolveTelegramGroupRequireMention, E as resolveSlackGroupToolPolicy, F as resolveIMessageConfigDefaultTo, H as trimMessagingTarget, I as resolveWhatsAppConfigAllowFrom, K as resolveToolsBySender, L as resolveWhatsAppConfigDefaultTo, M as formatTrimmedAllowFromEntries, N as formatWhatsAppConfigAllowFromEntries, O as resolveTelegramGroupToolPolicy, P as resolveIMessageConfigAllowFrom, R as looksLikeWhatsAppTargetId, S as resolveGoogleChatGroupToolPolicy, T as resolveSlackGroupRequireMention, V as looksLikeHandleOrPhoneTarget, _ as resolveBlueBubblesGroupRequireMention, b as resolveDiscordGroupToolPolicy, g as normalizeSignalMessagingTarget, h as looksLikeSignalTargetId, j as buildSlackThreadingToolContext, k as resolveWhatsAppGroupRequireMention, m as resolveWhatsAppMentionStripPatterns, p as resolveWhatsAppGroupIntroHint, v as resolveBlueBubblesGroupToolPolicy, w as resolveIMessageGroupToolPolicy, x as resolveGoogleChatGroupRequireMention, y as resolveDiscordGroupRequireMention, z as normalizeWhatsAppAllowFromEntries } from "./thinking-
|
|
9
|
-
import { c as detectMime, l as extensionForMime, u as getFileExtension } from "./image-ops-
|
|
10
|
-
import "./pi-embedded-helpers-
|
|
11
|
-
import { A as listSlackAccountIds, C as resolveTelegramAccount, D as listConfiguredAccountIds, H as resolveDiscordAccount, I as isWhatsAppGroupJid, L as normalizeWhatsAppTarget, M as resolveSlackAccount, N as resolveSlackReplyToMode, O as resolveAccountWithDefaultFallback, S as resolveDefaultTelegramAccountId, V as resolveDefaultDiscordAccountId, a as listDiscordDirectoryPeersFromConfig, c as listTelegramDirectoryGroupsFromConfig, d as listWhatsAppDirectoryPeersFromConfig, f as looksLikeSlackTargetId, i as listDiscordDirectoryGroupsFromConfig, j as resolveDefaultSlackAccountId, k as listEnabledSlackAccounts, l as listTelegramDirectoryPeersFromConfig, o as listSlackDirectoryGroupsFromConfig, p as normalizeSlackMessagingTarget, s as listSlackDirectoryPeersFromConfig, u as listWhatsAppDirectoryGroupsFromConfig, x as listTelegramAccountIds, z as listDiscordAccountIds } from "./plugins-
|
|
12
|
-
import { n as resolveDefaultIMessageAccountId, r as resolveIMessageAccount, t as listIMessageAccountIds } from "./accounts-
|
|
13
|
-
import { i as resolveSignalAccount, n as listSignalAccountIds, r as resolveDefaultSignalAccountId } from "./accounts-
|
|
14
|
-
import { At as resolveChannelEntryMatch, Mt as resolveNestedAllowlistDecision, Ot as buildChannelKeyCandidates, at as parseDiscordTarget, dt as normalizeDiscordSlug, jt as resolveChannelEntryMatchWithFallback, kt as normalizeChannelSlug } from "./send-
|
|
15
|
-
import "./paths-
|
|
6
|
+
import { A as GroupPolicySchema, Ar as withFileLock, At as normalizePluginHttpPath, B as requireOpenAllowFrom, D as BlockStreamingCoalesceSchema, E as ToolPolicySchema, F as TtsAutoSchema, Hr as isSecretRef, I as TtsConfigSchema, L as TtsModeSchema, M as MarkdownTableModeSchema, N as ReplyRuntimeConfigSchemaShape, O as DmConfigSchema, P as SecretInputSchema, Pr as formatCliCommand, R as TtsProviderSchema, Ur as normalizeResolvedSecretInputString, Vr as hasConfiguredSecretInput, Wr as normalizeSecretInputString, c as WhatsAppConfigSchema, d as IMessageConfigSchema, ei as isTruthyEnvValue, f as MSTeamsConfigSchema, fr as resolveSecretRefString, h as TelegramConfigSchema, j as MarkdownConfigSchema, k as DmPolicySchema, kr as acquireFileLock, l as DiscordConfigSchema, m as SlackConfigSchema, p as SignalConfigSchema, u as GoogleChatConfigSchema, vr as isValidFileSecretRefId, xr as encodeJsonPointerToken, yr as resolveDefaultSecretProviderAlias, yt as getChatChannelMeta, z as normalizeAllowFrom, zr as assertSecretInputResolved } from "./config-k8lexny8.js";
|
|
7
|
+
import { A as sleep, C as pathExists, D as safeParseJson, K as registerLogTransport, S as normalizeE164, X as resolvePreferredSquidClawTmpDir, _ as escapeRegExp, f as CONFIG_DIR, o as stripAnsi, p as clamp, y as isRecord } from "./logger-D0ST0Irn.js";
|
|
8
|
+
import { A as resolveWhatsAppGroupToolPolicy, B as normalizeWhatsAppMessagingTarget, C as resolveIMessageGroupRequireMention, D as resolveTelegramGroupRequireMention, E as resolveSlackGroupToolPolicy, F as resolveIMessageConfigDefaultTo, H as trimMessagingTarget, I as resolveWhatsAppConfigAllowFrom, K as resolveToolsBySender, L as resolveWhatsAppConfigDefaultTo, M as formatTrimmedAllowFromEntries, N as formatWhatsAppConfigAllowFromEntries, O as resolveTelegramGroupToolPolicy, P as resolveIMessageConfigAllowFrom, R as looksLikeWhatsAppTargetId, S as resolveGoogleChatGroupToolPolicy, T as resolveSlackGroupRequireMention, V as looksLikeHandleOrPhoneTarget, _ as resolveBlueBubblesGroupRequireMention, b as resolveDiscordGroupToolPolicy, g as normalizeSignalMessagingTarget, h as looksLikeSignalTargetId, j as buildSlackThreadingToolContext, k as resolveWhatsAppGroupRequireMention, m as resolveWhatsAppMentionStripPatterns, p as resolveWhatsAppGroupIntroHint, v as resolveBlueBubblesGroupToolPolicy, w as resolveIMessageGroupToolPolicy, x as resolveGoogleChatGroupRequireMention, y as resolveDiscordGroupRequireMention, z as normalizeWhatsAppAllowFromEntries } from "./thinking-DgMA62hm.js";
|
|
9
|
+
import { c as detectMime, l as extensionForMime, u as getFileExtension } from "./image-ops-BHYex-G5.js";
|
|
10
|
+
import "./pi-embedded-helpers-hNwB4xIN.js";
|
|
11
|
+
import { A as listSlackAccountIds, C as resolveTelegramAccount, D as listConfiguredAccountIds, H as resolveDiscordAccount, I as isWhatsAppGroupJid, L as normalizeWhatsAppTarget, M as resolveSlackAccount, N as resolveSlackReplyToMode, O as resolveAccountWithDefaultFallback, S as resolveDefaultTelegramAccountId, V as resolveDefaultDiscordAccountId, a as listDiscordDirectoryPeersFromConfig, c as listTelegramDirectoryGroupsFromConfig, d as listWhatsAppDirectoryPeersFromConfig, f as looksLikeSlackTargetId, i as listDiscordDirectoryGroupsFromConfig, j as resolveDefaultSlackAccountId, k as listEnabledSlackAccounts, l as listTelegramDirectoryPeersFromConfig, o as listSlackDirectoryGroupsFromConfig, p as normalizeSlackMessagingTarget, s as listSlackDirectoryPeersFromConfig, u as listWhatsAppDirectoryGroupsFromConfig, x as listTelegramAccountIds, z as listDiscordAccountIds } from "./plugins-B2KnqFEY.js";
|
|
12
|
+
import { n as resolveDefaultIMessageAccountId, r as resolveIMessageAccount, t as listIMessageAccountIds } from "./accounts-BI3JxRDk.js";
|
|
13
|
+
import { i as resolveSignalAccount, n as listSignalAccountIds, r as resolveDefaultSignalAccountId } from "./accounts-D6llzjV7.js";
|
|
14
|
+
import { At as resolveChannelEntryMatch, Mt as resolveNestedAllowlistDecision, Ot as buildChannelKeyCandidates, at as parseDiscordTarget, dt as normalizeDiscordSlug, jt as resolveChannelEntryMatchWithFallback, kt as normalizeChannelSlug } from "./send-BR9OYFM9.js";
|
|
15
|
+
import "./paths-BLzXuEeT.js";
|
|
16
16
|
import "./fetch-B_RcOnt9.js";
|
|
17
|
-
import { t as redactSensitiveText } from "./redact-
|
|
18
|
-
import { r as formatErrorMessage } from "./errors-
|
|
19
|
-
import "./channel-activity-
|
|
20
|
-
import "./path-alias-guards-
|
|
21
|
-
import { a as openWritableFileWithinRoot, t as SafeOpenError } from "./fs-safe-
|
|
22
|
-
import { a as isBlockedHostnameOrIp, i as isBlockedHostname, o as isPrivateIpAddress, t as SsrFBlockedError } from "./ssrf-
|
|
23
|
-
import { t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
24
|
-
import "./local-roots-
|
|
25
|
-
import { p as chunkTextByBreakResolver, v as loadWebMedia } from "./ir-
|
|
17
|
+
import { t as redactSensitiveText } from "./redact-Bns9Du30.js";
|
|
18
|
+
import { r as formatErrorMessage } from "./errors-s9jrwzSl.js";
|
|
19
|
+
import "./channel-activity-C_Wffpe_.js";
|
|
20
|
+
import "./path-alias-guards-DrvsHTvG.js";
|
|
21
|
+
import { a as openWritableFileWithinRoot, t as SafeOpenError } from "./fs-safe-Dm1GaYts.js";
|
|
22
|
+
import { a as isBlockedHostnameOrIp, i as isBlockedHostname, o as isPrivateIpAddress, t as SsrFBlockedError } from "./ssrf-Bbnu-pU4.js";
|
|
23
|
+
import { t as fetchWithSsrFGuard } from "./fetch-guard-BT_ZMjdu.js";
|
|
24
|
+
import "./local-roots-DJz6gaSe.js";
|
|
25
|
+
import { p as chunkTextByBreakResolver, v as loadWebMedia } from "./ir-grefkWwy.js";
|
|
26
26
|
import "./render-HmipMDlP.js";
|
|
27
|
-
import "./tables-
|
|
28
|
-
import { c as parseChatAllowTargetPrefixes, d as resolveServicePrefixedTarget, f as formatAllowFromLowercase, l as parseChatTargetPrefixesOrThrow, m as isNormalizedSenderAllowed, o as normalizeIMessageHandle, p as isAllowedParsedChatSender, u as resolveServicePrefixedAllowTarget } from "./send-
|
|
29
|
-
import { J as isWSL2Sync, K as formatLocationText, X as isWSLSync, Y as isWSLEnv, nt as readJsonFileWithFallback, q as toLocationContext, rt as writeJsonFileAtomically } from "./send-
|
|
30
|
-
import "./tool-images-
|
|
31
|
-
import { d as readNumberParam, f as readReactionParams, h as readStringParam, l as jsonResult, n as missingTargetError, o as createActionGate } from "./target-errors-
|
|
32
|
-
import { s as parseSlackBlocksInput } from "./send-
|
|
33
|
-
import { b as buildRandomTempFilePath, x as withTempDownloadPath } from "./audio-transcription-runner-
|
|
27
|
+
import "./tables-CKzCoCfJ.js";
|
|
28
|
+
import { c as parseChatAllowTargetPrefixes, d as resolveServicePrefixedTarget, f as formatAllowFromLowercase, l as parseChatTargetPrefixesOrThrow, m as isNormalizedSenderAllowed, o as normalizeIMessageHandle, p as isAllowedParsedChatSender, u as resolveServicePrefixedAllowTarget } from "./send-tOMa3o8b.js";
|
|
29
|
+
import { J as isWSL2Sync, K as formatLocationText, X as isWSLSync, Y as isWSLEnv, nt as readJsonFileWithFallback, q as toLocationContext, rt as writeJsonFileAtomically } from "./send-02Mm2rGf.js";
|
|
30
|
+
import "./tool-images-Be6dL_YS.js";
|
|
31
|
+
import { d as readNumberParam, f as readReactionParams, h as readStringParam, l as jsonResult, n as missingTargetError, o as createActionGate } from "./target-errors-CIj_xeW1.js";
|
|
32
|
+
import { s as parseSlackBlocksInput } from "./send-dLA19uZA.js";
|
|
33
|
+
import { b as buildRandomTempFilePath, x as withTempDownloadPath } from "./audio-transcription-runner-CGc_CDhx.js";
|
|
34
34
|
import { a as resolveWindowsSpawnProgramCandidate, i as resolveWindowsSpawnProgram, n as materializeWindowsSpawnProgram, r as resolveWindowsExecutablePath, t as applyWindowsSpawnProgramPolicy } from "./windows-spawn-E2JqbJ-S.js";
|
|
35
|
-
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-
|
|
36
|
-
import { n as listSkillCommandsForAgents } from "./skill-commands-
|
|
37
|
-
import "./skills-
|
|
38
|
-
import { J as rawDataToString } from "./chrome-
|
|
39
|
-
import { A as resolveChannelMediaMaxBytes } from "./deliver-
|
|
40
|
-
import { g as onDiagnosticEvent, h as isDiagnosticsEnabled, m as emitDiagnosticEvent } from "./diagnostic-
|
|
41
|
-
import { r as extractOriginalFilename } from "./store-
|
|
42
|
-
import "./commands-registry-
|
|
35
|
+
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-C-B2SvJW.js";
|
|
36
|
+
import { n as listSkillCommandsForAgents } from "./skill-commands-BaRUjatG.js";
|
|
37
|
+
import "./skills-DTXauvrv.js";
|
|
38
|
+
import { J as rawDataToString } from "./chrome-B7s1nq2S.js";
|
|
39
|
+
import { A as resolveChannelMediaMaxBytes } from "./deliver-BXcGPR-z.js";
|
|
40
|
+
import { g as onDiagnosticEvent, h as isDiagnosticsEnabled, m as emitDiagnosticEvent } from "./diagnostic-BODCjkFr.js";
|
|
41
|
+
import { r as extractOriginalFilename } from "./store-mpQn5APQ.js";
|
|
42
|
+
import "./commands-registry-_yYiP-uB.js";
|
|
43
43
|
import { n as normalizeTelegramLookupTarget, r as parseTelegramTarget } from "./targets-D46Aqz9j.js";
|
|
44
|
-
import { t as resolveWhatsAppOutboundTarget } from "./resolve-outbound-target-
|
|
45
|
-
import { r as resolveWhatsAppHeartbeatRecipients } from "./channel-web-
|
|
46
|
-
import "./image-
|
|
47
|
-
import "./api-key-rotation-
|
|
48
|
-
import "./proxy-fetch-
|
|
49
|
-
import "./pi-model-discovery-
|
|
50
|
-
import "./send-
|
|
51
|
-
import "./outbound-attachment-
|
|
44
|
+
import { t as resolveWhatsAppOutboundTarget } from "./resolve-outbound-target-BrK5UCnq.js";
|
|
45
|
+
import { r as resolveWhatsAppHeartbeatRecipients } from "./channel-web-CqiSEc52.js";
|
|
46
|
+
import "./image-CU8oj8pT.js";
|
|
47
|
+
import "./api-key-rotation-T3PKdBeS.js";
|
|
48
|
+
import "./proxy-fetch-tPMv_1eB.js";
|
|
49
|
+
import "./pi-model-discovery-CCYmQWtY.js";
|
|
50
|
+
import "./send-CvoPKol0.js";
|
|
51
|
+
import "./outbound-attachment-BgfY6Svh.js";
|
|
52
52
|
import "./proxy-BKdNrmWL.js";
|
|
53
|
-
import "./manager-
|
|
54
|
-
import "./query-expansion-
|
|
55
|
-
import "./outbound-
|
|
56
|
-
import "./session-
|
|
57
|
-
import { t as loginWeb } from "./login-
|
|
53
|
+
import "./manager-CNAIUm4_.js";
|
|
54
|
+
import "./query-expansion-BPZueaGF.js";
|
|
55
|
+
import "./outbound-B_X7s6WE.js";
|
|
56
|
+
import "./session-7o8Q5UqP.js";
|
|
57
|
+
import { t as loginWeb } from "./login-THm-lWu1.js";
|
|
58
58
|
import fs, { createWriteStream } from "node:fs";
|
|
59
59
|
import path from "node:path";
|
|
60
60
|
import os from "node:os";
|
|
@@ -4,7 +4,7 @@ import chalk, { Chalk } from "chalk";
|
|
|
4
4
|
import fs, { constants, createWriteStream } from "node:fs";
|
|
5
5
|
import { Logger } from "tslog";
|
|
6
6
|
import os from "node:os";
|
|
7
|
-
import
|
|
7
|
+
import json5 from "json5";
|
|
8
8
|
import { promisify } from "node:util";
|
|
9
9
|
import fs$1 from "node:fs/promises";
|
|
10
10
|
import "@clack/prompts";
|
|
@@ -766,7 +766,7 @@ function readLoggingConfig() {
|
|
|
766
766
|
try {
|
|
767
767
|
if (!fs.existsSync(configPath)) return;
|
|
768
768
|
const raw = fs.readFileSync(configPath, "utf-8");
|
|
769
|
-
const logging =
|
|
769
|
+
const logging = json5.parse(raw)?.logging;
|
|
770
770
|
if (!logging || typeof logging !== "object" || Array.isArray(logging)) return;
|
|
771
771
|
return logging;
|
|
772
772
|
} catch {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { l as resolveDefaultAgentId } from "./run-with-concurrency-
|
|
2
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
3
|
-
import { G as normalizeAccountId, K as normalizeOptionalAccountId, R as normalizeAgentId, W as DEFAULT_ACCOUNT_ID } from "./workspace-
|
|
4
|
-
import { h as normalizeE164 } from "./logger-
|
|
5
|
-
import { Gt as normalizeAnyChannelId, Ht as CHAT_CHANNEL_ORDER, Xt as getActivePluginRegistryVersion, Zn as isTruthyEnvValue, Zt as requireActivePluginRegistry, gr as normalizeResolvedSecretInputString, qt as normalizeChatChannelId } from "./model-selection-
|
|
6
|
-
import { g as createAccountListHelpers, h as resolveAccountEntry } from "./accounts-
|
|
7
|
-
import
|
|
1
|
+
import { l as resolveDefaultAgentId } from "./run-with-concurrency-FczpX8ng.js";
|
|
2
|
+
import { t as createSubsystemLogger } from "./subsystem-BaLYRf7D.js";
|
|
3
|
+
import { G as normalizeAccountId, K as normalizeOptionalAccountId, R as normalizeAgentId, W as DEFAULT_ACCOUNT_ID } from "./workspace-TqfVSQuO.js";
|
|
4
|
+
import { h as normalizeE164 } from "./logger-oGKcCLZ5.js";
|
|
5
|
+
import { Gt as normalizeAnyChannelId, Ht as CHAT_CHANNEL_ORDER, Xt as getActivePluginRegistryVersion, Zn as isTruthyEnvValue, Zt as requireActivePluginRegistry, gr as normalizeResolvedSecretInputString, qt as normalizeChatChannelId } from "./model-selection-CHnojCCK.js";
|
|
6
|
+
import { g as createAccountListHelpers, h as resolveAccountEntry } from "./accounts-B6F_XCgS.js";
|
|
7
|
+
import fs from "node:fs";
|
|
8
8
|
import util from "node:util";
|
|
9
9
|
|
|
10
10
|
//#region src/channels/plugins/account-action-gate.ts
|
|
@@ -317,7 +317,7 @@ function resolveTelegramToken(cfg, opts = {}) {
|
|
|
317
317
|
const accountCfg = resolveAccountCfg(accountId !== DEFAULT_ACCOUNT_ID ? accountId : DEFAULT_ACCOUNT_ID);
|
|
318
318
|
const accountTokenFile = accountCfg?.tokenFile?.trim();
|
|
319
319
|
if (accountTokenFile) {
|
|
320
|
-
if (!
|
|
320
|
+
if (!fs.existsSync(accountTokenFile)) {
|
|
321
321
|
opts.logMissingFile?.(`channels.telegram.accounts.${accountId}.tokenFile not found: ${accountTokenFile}`);
|
|
322
322
|
return {
|
|
323
323
|
token: "",
|
|
@@ -325,7 +325,7 @@ function resolveTelegramToken(cfg, opts = {}) {
|
|
|
325
325
|
};
|
|
326
326
|
}
|
|
327
327
|
try {
|
|
328
|
-
const token =
|
|
328
|
+
const token = fs.readFileSync(accountTokenFile, "utf-8").trim();
|
|
329
329
|
if (token) return {
|
|
330
330
|
token,
|
|
331
331
|
source: "tokenFile"
|
|
@@ -353,7 +353,7 @@ function resolveTelegramToken(cfg, opts = {}) {
|
|
|
353
353
|
const allowEnv = accountId === DEFAULT_ACCOUNT_ID;
|
|
354
354
|
const tokenFile = telegramCfg?.tokenFile?.trim();
|
|
355
355
|
if (tokenFile) {
|
|
356
|
-
if (!
|
|
356
|
+
if (!fs.existsSync(tokenFile)) {
|
|
357
357
|
opts.logMissingFile?.(`channels.telegram.tokenFile not found: ${tokenFile}`);
|
|
358
358
|
return {
|
|
359
359
|
token: "",
|
|
@@ -361,7 +361,7 @@ function resolveTelegramToken(cfg, opts = {}) {
|
|
|
361
361
|
};
|
|
362
362
|
}
|
|
363
363
|
try {
|
|
364
|
-
const token =
|
|
364
|
+
const token = fs.readFileSync(tokenFile, "utf-8").trim();
|
|
365
365
|
if (token) return {
|
|
366
366
|
token,
|
|
367
367
|
source: "tokenFile"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Et as parseLooseIpAddress, Tt as parseCanonicalIpAddress, _t as isBlockedSpecialUseIpv4Address, bt as isIpv4Address, gt as extractEmbeddedIpv4FromIpv6, vt as isBlockedSpecialUseIpv6Address, xt as isLegacyIpv4Literal, yt as isCanonicalDottedDecimalIPv4 } from "./model-selection-
|
|
1
|
+
import { Et as parseLooseIpAddress, Tt as parseCanonicalIpAddress, _t as isBlockedSpecialUseIpv4Address, bt as isIpv4Address, gt as extractEmbeddedIpv4FromIpv6, vt as isBlockedSpecialUseIpv6Address, xt as isLegacyIpv4Literal, yt as isCanonicalDottedDecimalIPv4 } from "./model-selection-CHnojCCK.js";
|
|
2
2
|
import { lookup } from "node:dns";
|
|
3
3
|
import { lookup as lookup$1 } from "node:dns/promises";
|
|
4
4
|
import { Agent } from "undici";
|