@visorcraft/idlehands 4.2.6 → 4.2.7
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-B8cGzkjD.js → accounts-BDVs8LTu.js} +1 -1
- package/dist/{accounts-D5tB_lO0.js → accounts-CIvVRRHb.js} +1 -1
- package/dist/{accounts-BQC_GRUB.js → accounts-Dk8mJIrQ.js} +6 -6
- package/dist/{agent-scope-Bxq1eWbA.js → agent-scope-DyP_tr7s.js} +4 -4
- package/dist/{agent-via-gateway-B_XqJoXa.js → agent-via-gateway-BMsMjnWe.js} +7 -7
- package/dist/{agent-via-gateway-BTaqOj5m.js → agent-via-gateway-CW7FhqaW.js} +60 -60
- package/dist/{anton-BvT9_aWG.js → anton-BDDjbZ5H.js} +1 -1
- package/dist/{anton-QvQ90n78.js → anton-C33_8bVg.js} +5 -5
- package/dist/{audio-preflight-qkU2lsDn.js → audio-preflight-BSlR2jEq.js} +35 -35
- package/dist/{audio-preflight-CSSlgO89.js → audio-preflight-vD3mDc6w.js} +4 -4
- package/dist/{auth-store-Bb4aajHu.js → auth-store-DXT-l7fO.js} +12 -12
- package/dist/{bindings-CLZIJ0Eo.js → bindings-D3b5Fmc9.js} +2 -2
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +60 -60
- package/dist/bundled/bootstrap-extra-files/handler.js +5 -5
- package/dist/bundled/command-logger/handler.js +3 -3
- package/dist/bundled/session-memory/handler.js +60 -60
- package/dist/{plugin-sdk/channel-activity-TcS_VfJk.js → channel-activity-D_TMOGQ0.js} +3 -3
- package/dist/{chrome-Do5potHV.js → chrome-DEnkfZ9p.js} +9 -9
- package/dist/{chrome-CT_a9OgI.js → chrome-_2tzVjVl.js} +26 -26
- package/dist/{chunk-Djk-9JeT.js → chunk-CMpX7Jaz.js} +1 -1
- package/dist/{commands-registry-_TBHHpvt.js → commands-registry-j4vAzcF2.js} +5 -5
- package/dist/{deliver-whAbSPLk.js → deliver-5FLCa6tB.js} +1 -1
- package/dist/{deliver-Db2xqgLg.js → deliver-CVTXl0Cv.js} +20 -20
- package/dist/{deps-BO1TSzg3.js → deps-Bp-zobQ9.js} +1 -1
- package/dist/{plugin-sdk/deps-DHns5FkJ.js → deps-k7zLO-No.js} +6 -6
- package/dist/{diagnostic-BvlZ0Sot.js → diagnostic-4owMk4vH.js} +1 -1
- package/dist/{dock-ejUetwTC.js → dock-BgOmHcbh.js} +6 -6
- package/dist/emergency-stop-Bqex5qoB.js +113 -0
- package/dist/{emergency-stop-C_7XuwW8.js → emergency-stop-CHHSptxF.js} +7 -7
- package/dist/{env-q-PhWbb_.js → env-B5G1qwGc.js} +1 -1
- package/dist/{plugin-sdk/errors-UqLewZJL.js → errors-C_0nm4TJ.js} +1 -1
- package/dist/extensionAPI.js +7 -7
- package/dist/{fetch-guard-CcfDZXe9.js → fetch-guard-iuQsIjqN.js} +1 -1
- package/dist/{frontmatter-pTUG4Sx_.js → frontmatter-BOudmHMS.js} +2 -2
- package/dist/{fs-safe-2l05hI1Y.js → fs-safe-CYUaAFO9.js} +2 -2
- package/dist/{gemini-auth-DLSGffQK.js → gemini-auth-CIyaa44H.js} +2 -2
- package/dist/{github-copilot-token-BjmEQcmi.js → github-copilot-token-Dgt6cnsM.js} +7 -7
- package/dist/{image-Dlu13Ebx.js → image-COw__ACq.js} +6 -6
- package/dist/{image-BAsQlUqT.js → image-C_aN5P6-.js} +1 -1
- package/dist/{image-ops-J8P5zOFm.js → image-ops-D1KtygWz.js} +1 -1
- package/dist/{plugin-sdk/ir-Bv0Zbp2E.js → ir-B7IBoKLy.js} +6 -6
- package/dist/llm-slug-generator.js +60 -60
- package/dist/{local-roots-d4y0lvs2.js → local-roots-KN4Hp1yZ.js} +5 -5
- package/dist/{login-C2X0In6m.js → login-CFr5vJmR.js} +6 -6
- package/dist/{login-qr-C17PY0rr.js → login-qr-CFFFOjOl.js} +11 -11
- package/dist/{manager-CgzA1hKo.js → manager-BE_76jWB.js} +15 -15
- package/dist/{markdown-tables-R8VTpfE9.js → markdown-tables-CzsockiZ.js} +1 -1
- package/dist/{message-channel-ZdI1-uUh.js → message-channel-C8QtrwEU.js} +1 -1
- package/dist/{model-selection-C5hI1dum.js → model-selection-1MMYqY6M.js} +41 -41
- package/dist/{outbound-CdY_AskB.js → outbound-BNh6PpQb.js} +6 -6
- package/dist/{outbound-attachment-IfeZJAKk.js → outbound-attachment-3I6GzwDe.js} +2 -2
- package/dist/{path-alias-guards-BZmt6hFb.js → path-alias-guards-Cu1nXNMM.js} +1 -1
- package/dist/{paths-DQpv9a3Q.js → paths-BYNVLNi_.js} +5 -5
- package/dist/{paths-D3p7ZvM6.js → paths-D_qUel1T.js} +3 -3
- package/dist/{pi-embedded-Cfe7sfXp.js → pi-embedded-BYtUxbhJ.js} +26 -26
- package/dist/{pi-embedded-CQoT3WaM.js → pi-embedded-CIJj8Clt.js} +184 -184
- package/dist/{pi-embedded-helpers-Ct2rwp-P.js → pi-embedded-helpers-C2j0LfJC.js} +4 -4
- package/dist/{pi-embedded-helpers-B3ceCcxm.js → pi-embedded-helpers-CyTpDKo5.js} +24 -24
- package/dist/{pi-model-discovery-Dlx4RLWo.js → pi-model-discovery-Bb__OY-j.js} +7 -7
- package/dist/plugin-sdk/{accounts-Kt6ygPsC.js → accounts-BLYMokxV.js} +2 -2
- package/dist/plugin-sdk/{accounts-mjFAny5F.js → accounts-C5tHm1UI.js} +1 -1
- package/dist/plugin-sdk/{accounts-B9nfRzyn.js → accounts-CBVAw5_G.js} +1 -1
- package/dist/plugin-sdk/{agent-scope-CU41EMlR.js → agent-scope-jl80I5G9.js} +2 -2
- package/dist/plugin-sdk/{agent-via-gateway-DgS1tFFD.js → agent-via-gateway-RUSmiQPF.js} +55 -55
- package/dist/plugin-sdk/{anton-CNaMAyWx.js → anton-BluQsLu2.js} +4 -4
- package/dist/plugin-sdk/{api-key-rotation-CZhCWd61.js → api-key-rotation-D6nK54XH.js} +2 -2
- package/dist/plugin-sdk/{audio-preflight-CRgDehfO.js → audio-preflight-CKqqN8ty.js} +30 -30
- package/dist/plugin-sdk/{auth-store-DycBvVqL.js → auth-store-DaPWgQTx.js} +1 -1
- package/dist/plugin-sdk/{bindings-BDKKHGv-.js → bindings-xXgmJGxj.js} +2 -2
- package/dist/{channel-activity-DdL3RAv_.js → plugin-sdk/channel-activity-loOg1DRw.js} +3 -3
- package/dist/plugin-sdk/{channel-web-DwpLcf95.js → channel-web-Dn0OzSFP.js} +24 -24
- package/dist/plugin-sdk/{chrome-BCTizrZD.js → chrome-Cb9FgiCI.js} +6 -6
- package/dist/plugin-sdk/{chunk-DZr5xuqv.js → chunk-PW4MBmaN.js} +1 -1
- package/dist/plugin-sdk/{commands-registry-BqJLwZYh.js → commands-registry-B5m2EsHz.js} +5 -5
- package/dist/plugin-sdk/{config-BzPMtEKA.js → config-CEgzwk0J.js} +10 -10
- package/dist/plugin-sdk/{deliver-Cfc1UCre.js → deliver-BNfMF0Nb.js} +10 -10
- package/dist/{deps-BQsD8-_C.js → plugin-sdk/deps-C8qACokW.js} +6 -6
- package/dist/plugin-sdk/{diagnostic-B8VzcqLf.js → diagnostic-ByA6zvzu.js} +1 -1
- package/dist/plugin-sdk/{dock-CMURqoee.js → dock-DKQYtT6-.js} +6 -6
- package/dist/plugin-sdk/{emergency-stop-BV2NiRit.js → emergency-stop-DylRK_E8.js} +55 -55
- package/dist/plugin-sdk/{env-qurSiOO2.js → env-5XecRTLs.js} +1 -1
- package/dist/{errors-C4SHjIZK.js → plugin-sdk/errors-CMcD8Lhh.js} +1 -1
- package/dist/plugin-sdk/{fetch-guard-C174s8ZV.js → fetch-guard-DwdUEdmT.js} +1 -1
- package/dist/plugin-sdk/{fs-safe-CCXTOK7j.js → fs-safe-qsx2_8-o.js} +2 -2
- package/dist/plugin-sdk/{image-DDuK8tyO.js → image-C_1tftC8.js} +6 -6
- package/dist/plugin-sdk/{image-ops-BRYGGDwL.js → image-ops-CXSUo-AM.js} +1 -1
- package/dist/plugin-sdk/index.js +60 -60
- package/dist/{ir-BT5aAdU9.js → plugin-sdk/ir-kdDGpPMq.js} +6 -6
- package/dist/plugin-sdk/{local-roots-bHCsSVt_.js → local-roots-DjB6DYeI.js} +4 -4
- package/dist/plugin-sdk/{login-CkQrnY2G.js → login-DIwO5D5Y.js} +6 -6
- package/dist/plugin-sdk/{login-qr-DAeHibH_.js → login-qr-CpCAJuvT.js} +8 -8
- package/dist/plugin-sdk/{manager-CTC1S_c9.js → manager-Dox9r7og.js} +10 -10
- package/dist/plugin-sdk/{markdown-tables-DfUQHRZY.js → markdown-tables-Drtwd4J5.js} +1 -1
- package/dist/plugin-sdk/{message-channel-DiMXmQeQ.js → message-channel-CQ0qkGHj.js} +1 -1
- package/dist/plugin-sdk/{outbound-B1twcfz5.js → outbound-Dx_q6JAI.js} +6 -6
- package/dist/plugin-sdk/{outbound-attachment-Bs7fNaqv.js → outbound-attachment-BisU5Vji.js} +2 -2
- package/dist/plugin-sdk/{path-alias-guards-yyy61qHh.js → path-alias-guards-C_uBEYb4.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-helpers-BAm9cWol.js → pi-embedded-helpers-B68z4sHq.js} +16 -16
- package/dist/plugin-sdk/{pi-model-discovery-Bt6JtUFr.js → pi-model-discovery-Dt6899be.js} +1 -1
- package/dist/plugin-sdk/{plugins-DRPlVBr_.js → plugins-NTjIvHYk.js} +5 -5
- package/dist/plugin-sdk/{pw-ai-CY0evCZ2.js → pw-ai-Dk2PTZzq.js} +10 -10
- package/dist/plugin-sdk/{qmd-manager-BckPBwZX.js → qmd-manager-juzrnopq.js} +5 -5
- package/dist/plugin-sdk/{query-expansion-CPqK-tTR.js → query-expansion-xBXvzdkL.js} +2 -2
- package/dist/plugin-sdk/{redact-Ub8sMBBC.js → redact-B6VQH3UQ.js} +1 -1
- package/dist/plugin-sdk/{replies-DwTNZJgi.js → replies-ZovJp-3F.js} +3 -3
- package/dist/plugin-sdk/{reply-B_cEB9MH.js → reply-DhycbFxW.js} +95 -95
- package/dist/plugin-sdk/{reply-prefix-BqV0o7_7.js → reply-prefix--mxmTL7A.js} +1 -1
- package/dist/plugin-sdk/{resolve-outbound-target-DAdNGEqG.js → resolve-outbound-target-CnUtsDch.js} +2 -2
- package/dist/plugin-sdk/{resolve-route-C5mAwY-o.js → resolve-route-BZABUE4J.js} +3 -3
- package/dist/plugin-sdk/{retry-2OVzZJMZ.js → retry-Bh7jveNm.js} +1 -1
- package/dist/plugin-sdk/{runner-Ck0w3rcz.js → runner-CZz1tOIR.js} +10 -10
- package/dist/plugin-sdk/{send-BBD-m-nM.js → send-0EVlThEG.js} +10 -10
- package/dist/plugin-sdk/{send-CaPoBwby.js → send-B26cNPqY.js} +6 -6
- package/dist/plugin-sdk/{send-CPeuqOlq.js → send-BCjVQhp3.js} +13 -13
- package/dist/plugin-sdk/{send-SsqudCMv.js → send-CHUGIZs9.js} +7 -7
- package/dist/plugin-sdk/{send-A4Lv5nrg.js → send-Cb5NIN8s.js} +7 -7
- package/dist/plugin-sdk/{session-DpL4uk1J.js → session-DdJj6_DW.js} +3 -3
- package/dist/plugin-sdk/{sessions-CQ5iD4Uq.js → sessions-DNx9c2O2.js} +6 -6
- package/dist/plugin-sdk/{skill-commands-C_O9I71g.js → skill-commands-DorIK8kn.js} +5 -5
- package/dist/plugin-sdk/{skills-DmiIiX4l.js → skills-Dh_Cf2PA.js} +8 -8
- package/dist/plugin-sdk/{store-BI3rLJdW.js → store-CCCXwngh.js} +2 -2
- package/dist/plugin-sdk/{subsystem-lJo9gqAK.js → subsystem-DWPzKeZ0.js} +1 -1
- package/dist/plugin-sdk/{tables-C4X_nAUQ.js → tables-CF9W23Rd.js} +1 -1
- package/dist/plugin-sdk/{target-errors-CXh6e9ZE.js → target-errors-DaH0qYtL.js} +2 -2
- package/dist/{tokens-DGajj8M9.js → plugin-sdk/tokens-Y97UKh4C.js} +1 -1
- package/dist/plugin-sdk/{tool-images-Cf9aWlVu.js → tool-images-BMRkn_yk.js} +2 -2
- package/dist/plugin-sdk/{tool-loop-detection-DuwkSqZL.js → tool-loop-detection-Cv8wyfAi.js} +2 -2
- package/dist/plugin-sdk/{utils-dP-FpIgu.js → utils-Dyj2wV4e.js} +2 -2
- package/dist/plugin-sdk/web-yryYzFPs.js +71 -0
- package/dist/plugin-sdk/{whatsapp-actions-Bcknq6EZ.js → whatsapp-actions-B5g-Rywy.js} +23 -23
- package/dist/{plugins-DYr-HHj0.js → plugins-CRB60mCJ.js} +10 -10
- package/dist/{pw-ai-DIV4PcIo.js → pw-ai-CowTfhOG.js} +13 -13
- package/dist/{pw-ai-yrIWfcWX.js → pw-ai-DjmrIQle.js} +1 -1
- package/dist/{qmd-manager-BRvg3Rx2.js → qmd-manager-B_GgyQQ0.js} +8 -8
- package/dist/{query-expansion-DHuNyU-_.js → query-expansion-DEq020GG.js} +5 -5
- package/dist/{redact-1Y0KPNtr.js → redact-Bvpf-ATQ.js} +1 -1
- package/dist/{replies-2C16fnBP.js → replies-6_GxvQYe.js} +3 -3
- package/dist/{reply-prefix-DCljZiIB.js → reply-prefix-BUgeSN2R.js} +1 -1
- package/dist/{resolve-route-ClcifpKn.js → resolve-route-DuttYY7A.js} +4 -4
- package/dist/{retry-CG6cMRDQ.js → retry-BeB9WenR.js} +1 -1
- package/dist/{runner-BkCU-kqs.js → runner-BzNdfqDz.js} +11 -11
- package/dist/{runner-Bv_BA3vd.js → runner-CZW_eyf2.js} +1 -1
- package/dist/{send-DZa8fWSm.js → send-BeIZJuy4.js} +7 -7
- package/dist/{send-Y1hD4tQ1.js → send-C1hvd3bt.js} +6 -6
- package/dist/{send-BOxJ4QXF.js → send-D4bMycQu.js} +7 -7
- package/dist/{send-FLdrx-oF.js → send-Dfa3sn6r.js} +24 -24
- package/dist/{send-IlPMLAH-.js → send-DmLC7aEF.js} +10 -10
- package/dist/{session-nUPBXeEa.js → session-F_YDS_1V.js} +7 -7
- package/dist/{sessions-DRA4oaxz.js → sessions-3ioSeOA1.js} +41 -41
- package/dist/{skill-commands-BHTBXXVn.js → skill-commands-Ck3flWX7.js} +9 -9
- package/dist/{skills-umlGvChF.js → skills-CnAPWfca.js} +22 -22
- package/dist/{store-D-ZicQeo.js → store-CvMgrKWx.js} +2 -2
- package/dist/{subsystem-D7ZepYT1.js → subsystem-tzu-rIAJ.js} +1 -1
- package/dist/{tables-Co_R_WKs.js → tables-5k-zOZ-s.js} +1 -1
- package/dist/{target-errors-B1mcM4WR.js → target-errors-BPfQrPim.js} +2 -2
- package/dist/{plugin-sdk/tokens-CU9S3S7t.js → tokens-BRLyURxW.js} +1 -1
- package/dist/{tool-images-Duuqr4bN.js → tool-images-CcGZpzmq.js} +2 -2
- package/dist/{tool-loop-detection-CjWRg_4q.js → tool-loop-detection-BNGetx3Z.js} +3 -3
- package/dist/{utils-D9wGoiU9.js → utils-CTFLl_ji.js} +18 -18
- package/dist/{web-D3gOCfby.js → web-BsIp9miY.js} +8 -8
- package/dist/{web-D7J5iB9K.js → web-JPsGpVZ5.js} +66 -66
- package/dist/{whatsapp-actions-BJ6kVDXi.js → whatsapp-actions-DbPcN6JQ.js} +25 -25
- package/dist/{workspace-tAtkoD_r.js → workspace-DBFSzT6O.js} +18 -18
- package/package.json +1 -1
- package/dist/emergency-stop-DVyGxgzf.js +0 -113
- package/dist/plugin-sdk/web-B-hYOnMb.js +0 -71
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as normalizeChatChannelId, l as getActivePluginRegistry, n as CHANNEL_IDS } from "./subsystem-
|
|
1
|
+
import { c as normalizeChatChannelId, l as getActivePluginRegistry, n as CHANNEL_IDS } from "./subsystem-tzu-rIAJ.js";
|
|
2
2
|
|
|
3
3
|
//#region src/gateway/protocol/client-info.ts
|
|
4
4
|
const GATEWAY_CLIENT_IDS = {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { a as resolveAgentEffectiveModelPrimary, c as resolveDefaultAgentId, g as toAgentModelListLike, h as resolveAgentModelPrimaryValue, r as resolveAgentConfig, s as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
3
|
-
import { a as resolveConfigPathCandidate, c as resolveIsNixMode, d as resolveStateDir, f as expandHomePrefix, i as resolveConfigPath, l as resolveOAuthDir, m as resolveRequiredHomeDir, n as STATE_DIR, o as resolveDefaultConfigCandidates, r as resolveCanonicalConfigPath, s as resolveGatewayPort, t as DEFAULT_GATEWAY_PORT, u as resolveOAuthPath } from "./paths-
|
|
4
|
-
import { c as normalizeChatChannelId, n as CHANNEL_IDS, t as createSubsystemLogger } from "./subsystem-
|
|
5
|
-
import { C as isPlainObject$2, c as isRecord$3, h as resolveUserPath, p as resolveConfigDir } from "./utils-
|
|
2
|
+
import { a as resolveAgentEffectiveModelPrimary, c as resolveDefaultAgentId, g as toAgentModelListLike, h as resolveAgentModelPrimaryValue, r as resolveAgentConfig, s as resolveAgentWorkspaceDir } from "./agent-scope-DyP_tr7s.js";
|
|
3
|
+
import { a as resolveConfigPathCandidate, c as resolveIsNixMode, d as resolveStateDir, f as expandHomePrefix, i as resolveConfigPath, l as resolveOAuthDir, m as resolveRequiredHomeDir, n as STATE_DIR, o as resolveDefaultConfigCandidates, r as resolveCanonicalConfigPath, s as resolveGatewayPort, t as DEFAULT_GATEWAY_PORT, u as resolveOAuthPath } from "./paths-BYNVLNi_.js";
|
|
4
|
+
import { c as normalizeChatChannelId, n as CHANNEL_IDS, t as createSubsystemLogger } from "./subsystem-tzu-rIAJ.js";
|
|
5
|
+
import { C as isPlainObject$2, c as isRecord$3, h as resolveUserPath, p as resolveConfigDir } from "./utils-CTFLl_ji.js";
|
|
6
6
|
import { h as isBlockedObjectKey, s as normalizeAgentId, t as DEFAULT_AGENT_ID } from "./session-key-CuLPSMu_.js";
|
|
7
|
-
import { C as canUseBoundaryFileOpen, T as openBoundaryFileSync, _ as runExec, j as isPathInside$2 } from "./workspace-
|
|
8
|
-
import { a as saveJsonFile, i as loadJsonFile, r as resolveCopilotApiToken, t as DEFAULT_COPILOT_API_BASE_URL } from "./github-copilot-token-
|
|
7
|
+
import { C as canUseBoundaryFileOpen, T as openBoundaryFileSync, _ as runExec, j as isPathInside$2 } from "./workspace-DBFSzT6O.js";
|
|
8
|
+
import { a as saveJsonFile, i as loadJsonFile, r as resolveCopilotApiToken, t as DEFAULT_COPILOT_API_BASE_URL } from "./github-copilot-token-Dgt6cnsM.js";
|
|
9
9
|
import { t as formatCliCommand } from "./command-format-BAxx4PW5.js";
|
|
10
|
-
import { t as isTruthyEnvValue } from "./env-
|
|
10
|
+
import { t as isTruthyEnvValue } from "./env-B5G1qwGc.js";
|
|
11
11
|
import { n as MANIFEST_KEY } from "./legacy-names-B4ZvHEmO.js";
|
|
12
|
-
import { d as TOOLS_BY_SENDER_KEY_TYPES, f as parseToolsBySenderTypedKey } from "./dock-
|
|
12
|
+
import { d as TOOLS_BY_SENDER_KEY_TYPES, f as parseToolsBySenderTypedKey } from "./dock-BgOmHcbh.js";
|
|
13
13
|
import { t as runTasksWithConcurrency } from "./run-with-concurrency-CEV6qf-x.js";
|
|
14
14
|
import { createRequire } from "node:module";
|
|
15
15
|
import fs from "node:fs/promises";
|
|
16
16
|
import os from "node:os";
|
|
17
17
|
import path from "node:path";
|
|
18
|
-
import
|
|
18
|
+
import syncFs from "node:fs";
|
|
19
19
|
import JSON5 from "json5";
|
|
20
20
|
import { isDeepStrictEqual } from "node:util";
|
|
21
21
|
import { execFileSync, execSync, spawn } from "node:child_process";
|
|
@@ -238,7 +238,7 @@ function resolveAuthProfileDisplayLabel(params) {
|
|
|
238
238
|
function isZombieProcess(pid) {
|
|
239
239
|
if (process.platform !== "linux") return false;
|
|
240
240
|
try {
|
|
241
|
-
return
|
|
241
|
+
return syncFs.readFileSync(`/proc/${pid}/status`, "utf8").match(/^State:\s+(\S)/m)?.[1] === "Z";
|
|
242
242
|
} catch {
|
|
243
243
|
return false;
|
|
244
244
|
}
|
|
@@ -512,7 +512,7 @@ function resolveAuthStorePathForDisplay(agentDir) {
|
|
|
512
512
|
return pathname.startsWith("~") ? pathname : resolveUserPath(pathname);
|
|
513
513
|
}
|
|
514
514
|
function ensureAuthStoreFile(pathname) {
|
|
515
|
-
if (
|
|
515
|
+
if (syncFs.existsSync(pathname)) return;
|
|
516
516
|
saveJsonFile(pathname, {
|
|
517
517
|
version: AUTH_STORE_VERSION,
|
|
518
518
|
profiles: {}
|
|
@@ -774,7 +774,7 @@ function loadAuthProfileStoreForAgent(agentDir, options) {
|
|
|
774
774
|
if (shouldWrite && legacy !== null) {
|
|
775
775
|
const legacyPath = resolveLegacyAuthStorePath(agentDir);
|
|
776
776
|
try {
|
|
777
|
-
|
|
777
|
+
syncFs.unlinkSync(legacyPath);
|
|
778
778
|
} catch (err) {
|
|
779
779
|
if (err?.code !== "ENOENT") log$6.warn("failed to delete legacy auth.json after migration", {
|
|
780
780
|
err,
|
|
@@ -962,7 +962,7 @@ function loadDotEnv(opts) {
|
|
|
962
962
|
const quiet = opts?.quiet ?? true;
|
|
963
963
|
dotenv.config({ quiet });
|
|
964
964
|
const globalEnvPath = path.join(resolveConfigDir(process.env), ".env");
|
|
965
|
-
if (!
|
|
965
|
+
if (!syncFs.existsSync(globalEnvPath)) return;
|
|
966
966
|
dotenv.config({
|
|
967
967
|
quiet,
|
|
968
968
|
path: globalEnvPath,
|
|
@@ -1085,7 +1085,7 @@ function resolveTimeoutMs(timeoutMs) {
|
|
|
1085
1085
|
function readEtcShells() {
|
|
1086
1086
|
if (cachedEtcShells !== void 0) return cachedEtcShells;
|
|
1087
1087
|
try {
|
|
1088
|
-
const entries =
|
|
1088
|
+
const entries = syncFs.readFileSync("/etc/shells", "utf8").split(/\r?\n/).map((line) => line.trim()).filter((line) => line.length > 0 && !line.startsWith("#") && path.isAbsolute(line));
|
|
1089
1089
|
cachedEtcShells = new Set(entries);
|
|
1090
1090
|
} catch {
|
|
1091
1091
|
cachedEtcShells = null;
|
|
@@ -1488,7 +1488,7 @@ function resolveActiveTalkProviderConfig(talk) {
|
|
|
1488
1488
|
};
|
|
1489
1489
|
}
|
|
1490
1490
|
function readTalkApiKeyFromProfile(deps = {}) {
|
|
1491
|
-
const fsImpl = deps.fs ??
|
|
1491
|
+
const fsImpl = deps.fs ?? syncFs;
|
|
1492
1492
|
const osImpl = deps.os ?? os;
|
|
1493
1493
|
const pathImpl = deps.path ?? path;
|
|
1494
1494
|
const home = osImpl.homedir();
|
|
@@ -2220,7 +2220,7 @@ var IncludeProcessor = class IncludeProcessor {
|
|
|
2220
2220
|
const normalized = path.normalize(resolved);
|
|
2221
2221
|
if (!isPathInside$1(this.rootDir, normalized)) throw new ConfigIncludeError(`Include path escapes config directory: ${includePath} (root: ${this.rootDir})`, includePath);
|
|
2222
2222
|
try {
|
|
2223
|
-
const real =
|
|
2223
|
+
const real = syncFs.realpathSync(normalized);
|
|
2224
2224
|
if (!isPathInside$1(this.rootRealDir, real)) throw new ConfigIncludeError(`Include path resolves outside config directory (symlink): ${includePath} (root: ${this.rootDir})`, includePath);
|
|
2225
2225
|
} catch (err) {
|
|
2226
2226
|
if (err instanceof ConfigIncludeError) throw err;
|
|
@@ -2262,13 +2262,13 @@ var IncludeProcessor = class IncludeProcessor {
|
|
|
2262
2262
|
};
|
|
2263
2263
|
function safeRealpath(target) {
|
|
2264
2264
|
try {
|
|
2265
|
-
return
|
|
2265
|
+
return syncFs.realpathSync(target);
|
|
2266
2266
|
} catch {
|
|
2267
2267
|
return target;
|
|
2268
2268
|
}
|
|
2269
2269
|
}
|
|
2270
2270
|
function readConfigIncludeFileWithGuards(params) {
|
|
2271
|
-
const ioFs = params.ioFs ??
|
|
2271
|
+
const ioFs = params.ioFs ?? syncFs;
|
|
2272
2272
|
const maxBytes = params.maxBytes ?? MAX_INCLUDE_FILE_BYTES;
|
|
2273
2273
|
if (!canUseBoundaryFileOpen(ioFs)) return ioFs.readFileSync(params.resolvedPath, "utf-8");
|
|
2274
2274
|
const opened = openBoundaryFileSync({
|
|
@@ -2291,7 +2291,7 @@ function readConfigIncludeFileWithGuards(params) {
|
|
|
2291
2291
|
}
|
|
2292
2292
|
}
|
|
2293
2293
|
const defaultResolver = {
|
|
2294
|
-
readFile: (p) =>
|
|
2294
|
+
readFile: (p) => syncFs.readFileSync(p, "utf-8"),
|
|
2295
2295
|
readFileWithGuards: ({ includePath, resolvedPath, rootRealDir }) => readConfigIncludeFileWithGuards({
|
|
2296
2296
|
includePath,
|
|
2297
2297
|
resolvedPath,
|
|
@@ -4238,8 +4238,8 @@ const DEFAULT_SAFE_BINS = [
|
|
|
4238
4238
|
];
|
|
4239
4239
|
function isExecutableFile(filePath) {
|
|
4240
4240
|
try {
|
|
4241
|
-
if (!
|
|
4242
|
-
if (process.platform !== "win32")
|
|
4241
|
+
if (!syncFs.statSync(filePath).isFile()) return false;
|
|
4242
|
+
if (process.platform !== "win32") syncFs.accessSync(filePath, syncFs.constants.X_OK);
|
|
4243
4243
|
return true;
|
|
4244
4244
|
} catch {
|
|
4245
4245
|
return false;
|
|
@@ -4283,7 +4283,7 @@ function normalizeMatchTarget(value) {
|
|
|
4283
4283
|
}
|
|
4284
4284
|
function tryRealpath(value) {
|
|
4285
4285
|
try {
|
|
4286
|
-
return
|
|
4286
|
+
return syncFs.realpathSync(value);
|
|
4287
4287
|
} catch {
|
|
4288
4288
|
return null;
|
|
4289
4289
|
}
|
|
@@ -5164,7 +5164,7 @@ function listWritableExplicitTrustedSafeBinDirs(entries) {
|
|
|
5164
5164
|
for (const dir of resolved) {
|
|
5165
5165
|
let stat;
|
|
5166
5166
|
try {
|
|
5167
|
-
stat =
|
|
5167
|
+
stat = syncFs.statSync(dir);
|
|
5168
5168
|
} catch {
|
|
5169
5169
|
continue;
|
|
5170
5170
|
}
|
|
@@ -5528,13 +5528,13 @@ function resolveBundledPluginsDir() {
|
|
|
5528
5528
|
try {
|
|
5529
5529
|
const execDir = path.dirname(process.execPath);
|
|
5530
5530
|
const sibling = path.join(execDir, "extensions");
|
|
5531
|
-
if (
|
|
5531
|
+
if (syncFs.existsSync(sibling)) return sibling;
|
|
5532
5532
|
} catch {}
|
|
5533
5533
|
try {
|
|
5534
5534
|
let cursor = path.dirname(fileURLToPath(import.meta.url));
|
|
5535
5535
|
for (let i = 0; i < 6; i += 1) {
|
|
5536
5536
|
const candidate = path.join(cursor, "extensions");
|
|
5537
|
-
if (
|
|
5537
|
+
if (syncFs.existsSync(candidate)) return candidate;
|
|
5538
5538
|
const parent = path.dirname(cursor);
|
|
5539
5539
|
if (parent === cursor) break;
|
|
5540
5540
|
cursor = parent;
|
|
@@ -5553,7 +5553,7 @@ function normalizeStringList(value) {
|
|
|
5553
5553
|
function resolvePluginManifestPath(rootDir) {
|
|
5554
5554
|
for (const filename of PLUGIN_MANIFEST_FILENAMES) {
|
|
5555
5555
|
const candidate = path.join(rootDir, filename);
|
|
5556
|
-
if (
|
|
5556
|
+
if (syncFs.existsSync(candidate)) return candidate;
|
|
5557
5557
|
}
|
|
5558
5558
|
return path.join(rootDir, PLUGIN_MANIFEST_FILENAME);
|
|
5559
5559
|
}
|
|
@@ -5578,7 +5578,7 @@ function loadPluginManifest(rootDir) {
|
|
|
5578
5578
|
}
|
|
5579
5579
|
let raw;
|
|
5580
5580
|
try {
|
|
5581
|
-
raw = JSON.parse(
|
|
5581
|
+
raw = JSON.parse(syncFs.readFileSync(opened.fd, "utf-8"));
|
|
5582
5582
|
} catch (err) {
|
|
5583
5583
|
return {
|
|
5584
5584
|
ok: false,
|
|
@@ -5586,7 +5586,7 @@ function loadPluginManifest(rootDir) {
|
|
|
5586
5586
|
manifestPath
|
|
5587
5587
|
};
|
|
5588
5588
|
} finally {
|
|
5589
|
-
|
|
5589
|
+
syncFs.closeSync(opened.fd);
|
|
5590
5590
|
}
|
|
5591
5591
|
if (!isRecord$3(raw)) return {
|
|
5592
5592
|
ok: false,
|
|
@@ -5645,7 +5645,7 @@ function safeRealpathSync(targetPath, cache) {
|
|
|
5645
5645
|
const cached = cache?.get(targetPath);
|
|
5646
5646
|
if (cached) return cached;
|
|
5647
5647
|
try {
|
|
5648
|
-
const resolved =
|
|
5648
|
+
const resolved = syncFs.realpathSync(targetPath);
|
|
5649
5649
|
cache?.set(targetPath, resolved);
|
|
5650
5650
|
return resolved;
|
|
5651
5651
|
} catch {
|
|
@@ -5654,7 +5654,7 @@ function safeRealpathSync(targetPath, cache) {
|
|
|
5654
5654
|
}
|
|
5655
5655
|
function safeStatSync(targetPath) {
|
|
5656
5656
|
try {
|
|
5657
|
-
return
|
|
5657
|
+
return syncFs.statSync(targetPath);
|
|
5658
5658
|
} catch {
|
|
5659
5659
|
return null;
|
|
5660
5660
|
}
|
|
@@ -5782,12 +5782,12 @@ function readPackageManifest(dir) {
|
|
|
5782
5782
|
});
|
|
5783
5783
|
if (!opened.ok) return null;
|
|
5784
5784
|
try {
|
|
5785
|
-
const raw =
|
|
5785
|
+
const raw = syncFs.readFileSync(opened.fd, "utf-8");
|
|
5786
5786
|
return JSON.parse(raw);
|
|
5787
5787
|
} catch {
|
|
5788
5788
|
return null;
|
|
5789
5789
|
} finally {
|
|
5790
|
-
|
|
5790
|
+
syncFs.closeSync(opened.fd);
|
|
5791
5791
|
}
|
|
5792
5792
|
}
|
|
5793
5793
|
function resolvePackageExtensions(manifest) {
|
|
@@ -5844,14 +5844,14 @@ function resolvePackageEntrySource(params) {
|
|
|
5844
5844
|
return null;
|
|
5845
5845
|
}
|
|
5846
5846
|
const safeSource = opened.path;
|
|
5847
|
-
|
|
5847
|
+
syncFs.closeSync(opened.fd);
|
|
5848
5848
|
return safeSource;
|
|
5849
5849
|
}
|
|
5850
5850
|
function discoverInDirectory(params) {
|
|
5851
|
-
if (!
|
|
5851
|
+
if (!syncFs.existsSync(params.dir)) return;
|
|
5852
5852
|
let entries = [];
|
|
5853
5853
|
try {
|
|
5854
|
-
entries =
|
|
5854
|
+
entries = syncFs.readdirSync(params.dir, { withFileTypes: true });
|
|
5855
5855
|
} catch (err) {
|
|
5856
5856
|
params.diagnostics.push({
|
|
5857
5857
|
level: "warn",
|
|
@@ -5914,7 +5914,7 @@ function discoverInDirectory(params) {
|
|
|
5914
5914
|
"index.js",
|
|
5915
5915
|
"index.mjs",
|
|
5916
5916
|
"index.cjs"
|
|
5917
|
-
].map((candidate) => path.join(fullPath, candidate)).find((candidate) =>
|
|
5917
|
+
].map((candidate) => path.join(fullPath, candidate)).find((candidate) => syncFs.existsSync(candidate));
|
|
5918
5918
|
if (indexFile && isExtensionFile(indexFile)) addCandidate({
|
|
5919
5919
|
candidates: params.candidates,
|
|
5920
5920
|
diagnostics: params.diagnostics,
|
|
@@ -5932,7 +5932,7 @@ function discoverInDirectory(params) {
|
|
|
5932
5932
|
}
|
|
5933
5933
|
function discoverFromPath(params) {
|
|
5934
5934
|
const resolved = resolveUserPath(params.rawPath);
|
|
5935
|
-
if (!
|
|
5935
|
+
if (!syncFs.existsSync(resolved)) {
|
|
5936
5936
|
params.diagnostics.push({
|
|
5937
5937
|
level: "error",
|
|
5938
5938
|
message: `plugin path not found: ${resolved}`,
|
|
@@ -5940,7 +5940,7 @@ function discoverFromPath(params) {
|
|
|
5940
5940
|
});
|
|
5941
5941
|
return;
|
|
5942
5942
|
}
|
|
5943
|
-
const stat =
|
|
5943
|
+
const stat = syncFs.statSync(resolved);
|
|
5944
5944
|
if (stat.isFile()) {
|
|
5945
5945
|
if (!isExtensionFile(resolved)) {
|
|
5946
5946
|
params.diagnostics.push({
|
|
@@ -6000,7 +6000,7 @@ function discoverFromPath(params) {
|
|
|
6000
6000
|
"index.js",
|
|
6001
6001
|
"index.mjs",
|
|
6002
6002
|
"index.cjs"
|
|
6003
|
-
].map((candidate) => path.join(resolved, candidate)).find((candidate) =>
|
|
6003
|
+
].map((candidate) => path.join(resolved, candidate)).find((candidate) => syncFs.existsSync(candidate));
|
|
6004
6004
|
if (indexFile && isExtensionFile(indexFile)) {
|
|
6005
6005
|
addCandidate({
|
|
6006
6006
|
candidates: params.candidates,
|
|
@@ -6114,7 +6114,7 @@ function buildCacheKey(params) {
|
|
|
6114
6114
|
}
|
|
6115
6115
|
function safeStatMtimeMs(filePath) {
|
|
6116
6116
|
try {
|
|
6117
|
-
return
|
|
6117
|
+
return syncFs.statSync(filePath).mtimeMs;
|
|
6118
6118
|
} catch {
|
|
6119
6119
|
return null;
|
|
6120
6120
|
}
|
|
@@ -10617,7 +10617,7 @@ function resolveConfigPathForDeps(deps) {
|
|
|
10617
10617
|
}
|
|
10618
10618
|
function normalizeDeps(overrides = {}) {
|
|
10619
10619
|
return {
|
|
10620
|
-
fs: overrides.fs ??
|
|
10620
|
+
fs: overrides.fs ?? syncFs,
|
|
10621
10621
|
json5: overrides.json5 ?? JSON5,
|
|
10622
10622
|
env: overrides.env ?? process.env,
|
|
10623
10623
|
homedir: overrides.homedir ?? (() => resolveRequiredHomeDir(overrides.env ?? process.env, os.homedir)),
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
3
|
-
import { I as getChildLogger, o as escapeRegExp, x as toWhatsappJid } from "./utils-
|
|
4
|
-
import { R as loadConfig } from "./model-selection-
|
|
2
|
+
import { t as createSubsystemLogger } from "./subsystem-tzu-rIAJ.js";
|
|
3
|
+
import { I as getChildLogger, o as escapeRegExp, x as toWhatsappJid } from "./utils-CTFLl_ji.js";
|
|
4
|
+
import { R as loadConfig } from "./model-selection-1MMYqY6M.js";
|
|
5
5
|
import { n as generateSecureUuid } from "./secure-random-B1N_MXT_.js";
|
|
6
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
7
|
-
import { a as loadWebMedia } from "./ir-
|
|
6
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-CzsockiZ.js";
|
|
7
|
+
import { a as loadWebMedia } from "./ir-B7IBoKLy.js";
|
|
8
8
|
import { n as normalizePollInput } from "./polls-DhMjjIGW.js";
|
|
9
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
9
|
+
import { t as convertMarkdownTables } from "./tables-5k-zOZ-s.js";
|
|
10
10
|
import { i as redactIdentifier, n as requireActiveWebListener } from "./active-listener-jilCMH1M.js";
|
|
11
11
|
|
|
12
12
|
//#region src/markdown/whatsapp.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as saveMediaBuffer } from "./store-
|
|
2
|
-
import { a as loadWebMedia } from "./ir-
|
|
1
|
+
import { r as saveMediaBuffer } from "./store-CvMgrKWx.js";
|
|
2
|
+
import { a as loadWebMedia } from "./ir-B7IBoKLy.js";
|
|
3
3
|
|
|
4
4
|
//#region src/media/outbound-attachment.ts
|
|
5
5
|
async function resolveOutboundAttachmentFromUrl(mediaUrl, maxBytes, options) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as isNotFoundPathError, D as BOUNDARY_PATH_ALIAS_POLICIES, O as resolveBoundaryPath } from "./workspace-
|
|
1
|
+
import { A as isNotFoundPathError, D as BOUNDARY_PATH_ALIAS_POLICIES, O as resolveBoundaryPath } from "./workspace-DBFSzT6O.js";
|
|
2
2
|
import fs from "node:fs/promises";
|
|
3
3
|
import os from "node:os";
|
|
4
4
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import os from "node:os";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
import
|
|
3
|
+
import syncFs from "node:fs";
|
|
4
4
|
|
|
5
5
|
//#region src/infra/home-dir.ts
|
|
6
6
|
function normalize(value) {
|
|
@@ -85,10 +85,10 @@ function resolveStateDir(env = process.env, homedir = envHomedir(env)) {
|
|
|
85
85
|
if (override) return resolveUserPath(override, env, effectiveHomedir);
|
|
86
86
|
const newDir = newStateDir(effectiveHomedir);
|
|
87
87
|
const legacyDirs = legacyStateDirs(effectiveHomedir);
|
|
88
|
-
if (
|
|
88
|
+
if (syncFs.existsSync(newDir)) return newDir;
|
|
89
89
|
const existingLegacy = legacyDirs.find((dir) => {
|
|
90
90
|
try {
|
|
91
|
-
return
|
|
91
|
+
return syncFs.existsSync(dir);
|
|
92
92
|
} catch {
|
|
93
93
|
return false;
|
|
94
94
|
}
|
|
@@ -127,7 +127,7 @@ function resolveCanonicalConfigPath(env = process.env, stateDir = resolveStateDi
|
|
|
127
127
|
function resolveConfigPathCandidate(env = process.env, homedir = envHomedir(env)) {
|
|
128
128
|
const existing = resolveDefaultConfigCandidates(env, homedir).find((candidate) => {
|
|
129
129
|
try {
|
|
130
|
-
return
|
|
130
|
+
return syncFs.existsSync(candidate);
|
|
131
131
|
} catch {
|
|
132
132
|
return false;
|
|
133
133
|
}
|
|
@@ -144,7 +144,7 @@ function resolveConfigPath(env = process.env, stateDir = resolveStateDir(env, en
|
|
|
144
144
|
const stateOverride = env.IDLEHANDS_STATE_DIR?.trim();
|
|
145
145
|
const existing = [path.join(stateDir, CONFIG_FILENAME), ...LEGACY_CONFIG_FILENAMES.map((name) => path.join(stateDir, name))].find((candidate) => {
|
|
146
146
|
try {
|
|
147
|
-
return
|
|
147
|
+
return syncFs.existsSync(candidate);
|
|
148
148
|
} catch {
|
|
149
149
|
return false;
|
|
150
150
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { d as resolveStateDir, f as expandHomePrefix, m as resolveRequiredHomeDir } from "./paths-
|
|
2
|
+
import { d as resolveStateDir, f as expandHomePrefix, m as resolveRequiredHomeDir } from "./paths-BYNVLNi_.js";
|
|
3
3
|
import { s as normalizeAgentId, t as DEFAULT_AGENT_ID } from "./session-key-CuLPSMu_.js";
|
|
4
4
|
import os from "node:os";
|
|
5
5
|
import path from "node:path";
|
|
6
|
-
import
|
|
6
|
+
import syncFs from "node:fs";
|
|
7
7
|
|
|
8
8
|
//#region src/config/sessions/paths.ts
|
|
9
9
|
var paths_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -95,7 +95,7 @@ function resolveStructuralSessionFallbackPath(candidateAbsPath, expectedAgentId)
|
|
|
95
95
|
}
|
|
96
96
|
function safeRealpathSync(filePath) {
|
|
97
97
|
try {
|
|
98
|
-
return
|
|
98
|
+
return syncFs.realpathSync(filePath);
|
|
99
99
|
} catch {
|
|
100
100
|
return;
|
|
101
101
|
}
|
|
@@ -22,7 +22,7 @@ import { a as logoutWeb, i as logWebSelfId, l as readWebSelfId, n as getWebAuthA
|
|
|
22
22
|
import { a as resolveSlackWebClientOptions, c as buildSlackBlocksFallbackText, i as createSlackWebClient, l as parseSlackTarget, o as parseSlackBlocksInput, s as validateSlackBlocksArray, t as sendMessageSlack, u as resolveSlackChannelId } from "./send-J10cQN4A.js";
|
|
23
23
|
import { $ as fetchChannelPermissionsDiscord, A as unpinMessageDiscord, B as listScheduledEventsDiscord, C as editMessageDiscord, Ct as resolveTimestampMs, D as pinMessageDiscord, Dt as normalizeChannelSlug, E as listThreadsDiscord, Et as buildChannelKeyCandidates, F as fetchMemberInfoDiscord, G as uploadStickerDiscord, H as timeoutMemberDiscord, I as fetchRoleInfoDiscord, J as editChannelDiscord, K as createChannelDiscord, L as fetchVoiceStatusDiscord, M as banMemberDiscord, N as createScheduledEventDiscord, O as readMessagesDiscord, Ot as resolveChannelEntryMatchWithFallback, P as fetchChannelInfoDiscord, Q as stripUndefinedFields, R as kickMemberDiscord, S as deleteMessageDiscord, St as resolveDiscordSystemLocation, T as listPinsDiscord, Tt as applyChannelMatchMeta, U as listGuildEmojisDiscord, V as removeRoleDiscord, W as uploadEmojiDiscord, X as removeChannelPermissionDiscord, Y as moveChannelDiscord, Z as setChannelPermissionDiscord, _ as sendPollDiscord, _t as resolveDiscordShouldRequireMention, a as removeReactionDiscord, at as resolveDiscordChannelId, b as sendWebhookMessageDiscord, bt as formatDiscordReactionEmoji, c as formatDiscordComponentEventText, ct as allowListMatches$1, d as parseDiscordModalCustomId, dt as normalizeDiscordSlug, et as hasAnyGuildPermissionDiscord, f as parseDiscordModalCustomIdForCarbon, ft as resolveDiscordAllowListMatch, g as sendMessageDiscord, gt as resolveDiscordOwnerAllowFrom, h as resolveDiscordModalEntry, ht as resolveDiscordMemberAccessState, i as removeOwnReactionsDiscord, it as parseDiscordTarget, j as addRoleDiscord, k as searchMessagesDiscord, l as parseDiscordComponentCustomId, lt as isDiscordGroupAllowedByPolicy, m as resolveDiscordComponentEntry, mt as resolveDiscordGuildEntry, n as fetchReactionsDiscord, nt as createDiscordClient, o as sendDiscordComponentMessage, ot as listDiscordDirectoryGroupsLive, p as readDiscordComponentSpec, pt as resolveDiscordChannelConfigWithFallback, q as deleteChannelDiscord, r as reactMessageDiscord, rt as createDiscordRestClient, s as createDiscordFormModal, st as listDiscordDirectoryPeersLive, tt as chunkDiscordTextWithMode, u as parseDiscordComponentCustomIdForCarbon, ut as normalizeDiscordAllowList, v as sendStickerDiscord, vt as resolveGroupDmAllow, w as fetchMessageDiscord, wt as fetchDiscord, x as createThreadDiscord, xt as formatDiscordUserTag, y as sendVoiceMessageDiscord, yt as shouldEmitDiscordReactionNotification, z as listGuildChannelsDiscord } from "./send-DLZt92Da.js";
|
|
24
24
|
import { n as generateSecureUuid, t as generateSecureToken } from "./secure-random-BvP4jdcV.js";
|
|
25
|
-
import { C as initializeGlobalHookRunner, S as getGlobalHookRunner, _ as createReplyToModeFilterForChannel, a as normalizeOutboundPayloadsForJson, b as normalizeChannelTargetInput, c as parseReplyDirectives, d as applyReplyThreading, f as filterMessagingToolDuplicates, g as shouldSuppressReasoningPayload, h as shouldSuppressMessagingToolReplies, i as normalizeOutboundPayloads, l as splitMediaFromOutput, m as isRenderablePayload, o as normalizeReplyPayloadsForDelivery, p as filterMessagingToolMediaDuplicates, r as formatOutboundPayloadLog, s as throwIfAborted, t as deliverOutboundPayloads, u as applyReplyTagsToPayload, v as resolveReplyToMode, x as normalizeTargetForProvider, y as buildTargetResolverSignature } from "./deliver-
|
|
25
|
+
import { C as initializeGlobalHookRunner, S as getGlobalHookRunner, _ as createReplyToModeFilterForChannel, a as normalizeOutboundPayloadsForJson, b as normalizeChannelTargetInput, c as parseReplyDirectives, d as applyReplyThreading, f as filterMessagingToolDuplicates, g as shouldSuppressReasoningPayload, h as shouldSuppressMessagingToolReplies, i as normalizeOutboundPayloads, l as splitMediaFromOutput, m as isRenderablePayload, o as normalizeReplyPayloadsForDelivery, p as filterMessagingToolMediaDuplicates, r as formatOutboundPayloadLog, s as throwIfAborted, t as deliverOutboundPayloads, u as applyReplyTagsToPayload, v as resolveReplyToMode, x as normalizeTargetForProvider, y as buildTargetResolverSignature } from "./deliver-5FLCa6tB.js";
|
|
26
26
|
import { a as logMessageProcessed, c as logWebhookError, d as startDiagnosticHeartbeat, f as stopDiagnosticHeartbeat, i as logLaneEnqueue, l as logWebhookProcessed, m as isDiagnosticsEnabled, o as logMessageQueued, p as emitDiagnosticEvent, r as logLaneDequeue, s as logSessionStateChange, t as diag, u as logWebhookReceived } from "./diagnostic-jHCdo9Am.js";
|
|
27
27
|
import { r as getDiagnosticSessionState } from "./diagnostic-session-state-Bx2Le86J.js";
|
|
28
28
|
import { n as resolveSignalAccount, t as listEnabledSignalAccounts } from "./accounts-BRVjft5i.js";
|
|
@@ -30,8 +30,8 @@ import { $ as readJsonFileWithFallback, A as extractTelegramLocation, B as norma
|
|
|
30
30
|
import { c as detectMime, d as imageMimeFromFormat, f as isAudioFileName, g as MAX_IMAGE_BYTES, i as getImageMetadata, l as extensionForMime, p as isGifMedia, s as resizeToJpeg, v as mediaKindFromMime } from "./image-ops-BDG-MYYV.js";
|
|
31
31
|
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-Dic-M5qw.js";
|
|
32
32
|
import { a as isMarkdownCapableMessageChannel, c as resolveGatewayMessageChannel, d as GATEWAY_CLIENT_MODES, f as GATEWAY_CLIENT_NAMES, i as isInternalMessageChannel, l as resolveMessageChannel, n as isDeliverableMessageChannel, o as listDeliverableMessageChannels, r as isGatewayMessageChannel, s as normalizeMessageChannel, t as INTERNAL_MESSAGE_CHANNEL, u as GATEWAY_CLIENT_IDS } from "./message-channel-DqqfOIdx.js";
|
|
33
|
-
import { $ as stripPluginOnlyAllowlist, A as isTimeoutErrorMessage, B as resolveBrowserConfig, C as isCompactionFailureError, D as isLikelyContextOverflowError, E as isFailoverErrorMessage, F as ensureSandboxWorkspaceForSession, G as resolveGatewayCredentialsFromConfig, H as getBridgeAuthForPort, I as resolveSandboxContext, J as applyOwnerOnlyToolPolicy, K as trimToUndefined$1, L as resolveSandboxRuntimeStatus, M as parseImageDimensionError, N as parseImageSizeError, O as isRateLimitAssistantError, P as sanitizeUserFacingText, Q as mergeAlsoAllowPolicy, R as createBrowserRouteContext, S as isCloudCodeAssistFormatError, T as isFailoverAssistantError, U as ensureBrowserControlAuth, V as resolveProfile, W as resolveBrowserControlAuth, X as collectExplicitAllowlist, Y as buildPluginToolGroups, Z as expandPolicyWithPluginGroups, _ as formatRawAssistantErrorForUi, a as isMessagingToolDuplicateNormalized, at as buildBootstrapContextFiles, b as isAuthPermanentErrorMessage, c as extractToolCallsFromAssistant, ct as resolveBootstrapTotalMaxChars, d as downgradeOpenAIReasoningBlocks, et as expandToolGroups, f as isGoogleModelApi, g as formatBillingErrorMessage, h as formatAssistantErrorText, it as matchesAnyGlobPattern, j as isTransientHttpError, k as isRawApiErrorPayload, l as extractToolResultId, lt as sanitizeGoogleTurnOrdering, m as classifyFailoverReason, n as validateGeminiTurns, nt as resolveToolProfilePolicy, o as normalizeTextForComparison, ot as ensureSessionHeader, p as BILLING_ERROR_USER_MESSAGE, q as resolveSandboxConfigForAgent, r as pickFallbackThinkingLevel, rt as compileGlobPatterns, s as sanitizeSessionMessagesImages, st as resolveBootstrapMaxChars, t as validateAnthropicTurns, tt as normalizeToolName, u as sanitizeToolCallIdsForCloudCodeAssist, v as getApiErrorPayloadFingerprint, w as isContextOverflowError, x as isBillingAssistantError, y as isAuthAssistantError, z as registerBrowserRoutes } from "./pi-embedded-helpers-
|
|
34
|
-
import { C as ensureChromeExtensionRelayServer, F as isSecureWebSocketUrl, O as DEFAULT_UPLOAD_DIR, P as isLoopbackHost, R as DEFAULT_AI_SNAPSHOT_MAX_CHARS, T as rawDataToString, k as resolveExistingPathsWithinRoot, s as resolveLsofCommandSync } from "./chrome-
|
|
33
|
+
import { $ as stripPluginOnlyAllowlist, A as isTimeoutErrorMessage, B as resolveBrowserConfig, C as isCompactionFailureError, D as isLikelyContextOverflowError, E as isFailoverErrorMessage, F as ensureSandboxWorkspaceForSession, G as resolveGatewayCredentialsFromConfig, H as getBridgeAuthForPort, I as resolveSandboxContext, J as applyOwnerOnlyToolPolicy, K as trimToUndefined$1, L as resolveSandboxRuntimeStatus, M as parseImageDimensionError, N as parseImageSizeError, O as isRateLimitAssistantError, P as sanitizeUserFacingText, Q as mergeAlsoAllowPolicy, R as createBrowserRouteContext, S as isCloudCodeAssistFormatError, T as isFailoverAssistantError, U as ensureBrowserControlAuth, V as resolveProfile, W as resolveBrowserControlAuth, X as collectExplicitAllowlist, Y as buildPluginToolGroups, Z as expandPolicyWithPluginGroups, _ as formatRawAssistantErrorForUi, a as isMessagingToolDuplicateNormalized, at as buildBootstrapContextFiles, b as isAuthPermanentErrorMessage, c as extractToolCallsFromAssistant, ct as resolveBootstrapTotalMaxChars, d as downgradeOpenAIReasoningBlocks, et as expandToolGroups, f as isGoogleModelApi, g as formatBillingErrorMessage, h as formatAssistantErrorText, it as matchesAnyGlobPattern, j as isTransientHttpError, k as isRawApiErrorPayload, l as extractToolResultId, lt as sanitizeGoogleTurnOrdering, m as classifyFailoverReason, n as validateGeminiTurns, nt as resolveToolProfilePolicy, o as normalizeTextForComparison, ot as ensureSessionHeader, p as BILLING_ERROR_USER_MESSAGE, q as resolveSandboxConfigForAgent, r as pickFallbackThinkingLevel, rt as compileGlobPatterns, s as sanitizeSessionMessagesImages, st as resolveBootstrapMaxChars, t as validateAnthropicTurns, tt as normalizeToolName, u as sanitizeToolCallIdsForCloudCodeAssist, v as getApiErrorPayloadFingerprint, w as isContextOverflowError, x as isBillingAssistantError, y as isAuthAssistantError, z as registerBrowserRoutes } from "./pi-embedded-helpers-C2j0LfJC.js";
|
|
34
|
+
import { C as ensureChromeExtensionRelayServer, F as isSecureWebSocketUrl, O as DEFAULT_UPLOAD_DIR, P as isLoopbackHost, R as DEFAULT_AI_SNAPSHOT_MAX_CHARS, T as rawDataToString, k as resolveExistingPathsWithinRoot, s as resolveLsofCommandSync } from "./chrome-DEnkfZ9p.js";
|
|
35
35
|
import { i as isBlockedHostnameOrIp, o as normalizeHostname, t as SsrFBlockedError } from "./ssrf-DappnhDp.js";
|
|
36
36
|
import { c as assertSandboxPath, d as resolveSandboxedMediaSource, f as applySkillEnvOverrides, i as resolveSkillsPromptForRun, l as resolveSandboxInputPath, n as buildWorkspaceSkillSnapshot, p as applySkillEnvOverridesFromSnapshot, r as loadWorkspaceSkillEntries, s as assertMediaNotDataUrl } from "./skills-nQcWk6Z6.js";
|
|
37
37
|
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-CGbCFqW8.js";
|
|
@@ -46,7 +46,7 @@ import { a as resolveSessionFilePathOptions, i as resolveSessionFilePath, l as r
|
|
|
46
46
|
import { t as emitSessionTranscriptUpdate } from "./transcript-events-BaUINxJH.js";
|
|
47
47
|
import { a as canonicalizeBase64, i as resolveImageSanitizationLimits, n as sanitizeImageBlocks, o as estimateBase64DecodedBytes, r as sanitizeToolResultImages } from "./tool-images-CpZSs-zE.js";
|
|
48
48
|
import { a as normalizeReasoningLevel, c as normalizeVerboseLevel, i as normalizeElevatedLevel, l as resolveResponseUsageMode, n as formatXHighModelHint, o as normalizeThinkLevel, s as normalizeUsageDisplay, t as formatThinkingLevels, u as supportsXHighThinking } from "./thinking-BFsWfunr.js";
|
|
49
|
-
import { C as extractTextFromChatContent, S as isInsideCode, _ as stripMinimaxToolCallXml, a as decodeDataUrl, b as stripReasoningTagsFromText, c as extractAssistantText$1, d as extractThinkingFromTaggedText, f as formatReasoningMessage, g as stripDowngradedToolCallText, h as promoteThinkingTagsToBlocks, i as coerceImageModelConfig, l as extractAssistantThinking, m as isAssistantMessage, o as resolveProviderVisionModelFromConfig, p as inferToolMetaFromArgs, r as coerceImageAssistantText, s as minimaxUnderstandImage, u as extractThinkingFromTaggedStream, v as stripThinkingTagsFromText, w as ensureIdleHandsModelsJson, x as findCodeRegions, y as resolveToolDisplay } from "./image-
|
|
49
|
+
import { C as extractTextFromChatContent, S as isInsideCode, _ as stripMinimaxToolCallXml, a as decodeDataUrl, b as stripReasoningTagsFromText, c as extractAssistantText$1, d as extractThinkingFromTaggedText, f as formatReasoningMessage, g as stripDowngradedToolCallText, h as promoteThinkingTagsToBlocks, i as coerceImageModelConfig, l as extractAssistantThinking, m as isAssistantMessage, o as resolveProviderVisionModelFromConfig, p as inferToolMetaFromArgs, r as coerceImageAssistantText, s as minimaxUnderstandImage, u as extractThinkingFromTaggedStream, v as stripThinkingTagsFromText, w as ensureIdleHandsModelsJson, x as findCodeRegions, y as resolveToolDisplay } from "./image-C_aN5P6-.js";
|
|
50
50
|
import { n as resolveMemorySearchConfig } from "./manager-DYOflU5p.js";
|
|
51
51
|
import { n as fetchWithTimeout, t as bindAbortRelay } from "./fetch-timeout-B7YMixjc.js";
|
|
52
52
|
import { t as fetchWithSsrFGuard } from "./fetch-guard-BdCPmLBP.js";
|
|
@@ -60,7 +60,7 @@ import { a as loadWebMedia, i as getDefaultLocalRoots } from "./ir-BwkcXPZC.js";
|
|
|
60
60
|
import { _ as isNativeCommandsExplicitlyDisabled, a as listChatCommands, b as resolveNativeSkillsEnabled, c as listNativeCommandSpecsForConfig, d as parseCommandArgs, f as resolveCommandArgChoices, g as isCommandFlagEnabled, h as shouldHandleTextCommands, i as isCommandEnabled, l as maybeResolveTextAlias, m as serializeCommandArgs, o as listChatCommandsForConfig, p as resolveCommandArgMenu, r as findCommandByNativeName, s as listNativeCommandSpecs, t as buildCommandTextFromArgs, u as normalizeCommandBody, v as isRestartEnabled, y as resolveNativeCommandsEnabled } from "./commands-registry-1-Rv2-IS.js";
|
|
61
61
|
import { c as getSkillsSnapshotVersion, d as createAsyncLock, f as readJsonFile, i as resolveSkillCommandInvocation, l as pruneExpiredPending, n as listSkillCommandsForAgents, o as getRemoteSkillEligibility, p as writeJsonAtomic, r as listSkillCommandsForWorkspace, s as ensureSkillsWatcher, t as listReservedChatSlashCommandNames, u as resolvePairingPaths } from "./skill-commands-CHpRgsOw.js";
|
|
62
62
|
import { r as normalizeInboundTextNewlines, t as finalizeInboundContext } from "./inbound-context-DZmR6jxY.js";
|
|
63
|
-
import { _ as resolveMediaUnderstandingScope, a as resolveMediaAttachmentLocalRoots, c as loadModelCatalog, d as resolveAttachmentKind, f as buildRandomTempFilePath, g as normalizeMediaUnderstandingChatType, h as resolveTimeoutMs$2, i as resolveAutoImageModel, l as modelSupportsVision, m as resolveConcurrency, n as createMediaAttachmentCache, o as runCapability, p as registerUnhandledRejectionHandler, r as normalizeMediaAttachments, s as findModelInCatalog, t as buildProviderRegistry, v as CLI_OUTPUT_MAX_BUFFER, y as applyTemplate } from "./runner-
|
|
63
|
+
import { _ as resolveMediaUnderstandingScope, a as resolveMediaAttachmentLocalRoots, c as loadModelCatalog, d as resolveAttachmentKind, f as buildRandomTempFilePath, g as normalizeMediaUnderstandingChatType, h as resolveTimeoutMs$2, i as resolveAutoImageModel, l as modelSupportsVision, m as resolveConcurrency, n as createMediaAttachmentCache, o as runCapability, p as registerUnhandledRejectionHandler, r as normalizeMediaAttachments, s as findModelInCatalog, t as buildProviderRegistry, v as CLI_OUTPUT_MAX_BUFFER, y as applyTemplate } from "./runner-CZW_eyf2.js";
|
|
64
64
|
import { n as wrapFetchWithAbortSignal, t as resolveFetch } from "./fetch-ChVgjTkv.js";
|
|
65
65
|
import { n as recordCommandPoll, r as resetCommandPollCount } from "./command-poll-backoff-DTHhQmHb.js";
|
|
66
66
|
import { n as recordChannelActivity, r as createDiscordRetryRunner, t as getChannelActivity } from "./channel-activity-C3LJmSjf.js";
|
|
@@ -72,7 +72,7 @@ import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-rou
|
|
|
72
72
|
import { i as redactIdentifier, t as getActiveWebListener } from "./active-listener-BnWIC6Jc.js";
|
|
73
73
|
import { t as makeProxyFetch } from "./proxy-CNZpb4NE.js";
|
|
74
74
|
import { a as createReplyReferencePlanner, i as resolveSlackThreadTs, n as deliverReplies$3, t as createSlackReplyDeliveryPlan } from "./replies-CqYEEgmA.js";
|
|
75
|
-
import { r as createOutboundSendDepsFromCliSource, t as createDefaultDeps } from "./deps-
|
|
75
|
+
import { r as createOutboundSendDepsFromCliSource, t as createDefaultDeps } from "./deps-Bp-zobQ9.js";
|
|
76
76
|
import { createRequire } from "node:module";
|
|
77
77
|
import * as path$1 from "node:path";
|
|
78
78
|
import path, { isAbsolute } from "node:path";
|
|
@@ -91,7 +91,7 @@ import { CURRENT_SESSION_VERSION, DefaultResourceLoader, SessionManager, Setting
|
|
|
91
91
|
import { EdgeTTS } from "node-edge-tts";
|
|
92
92
|
import { createServer } from "node:http";
|
|
93
93
|
import { ProxyAgent, fetch as fetch$1 } from "undici";
|
|
94
|
-
import WebSocket
|
|
94
|
+
import WebSocket, { WebSocket as WebSocket$1 } from "ws";
|
|
95
95
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
96
96
|
import { createJiti } from "jiti";
|
|
97
97
|
import { Type } from "@sinclair/typebox";
|
|
@@ -6372,7 +6372,7 @@ var GatewayClient = class {
|
|
|
6372
6372
|
if (fingerprint !== expected) return /* @__PURE__ */ new Error("gateway tls fingerprint mismatch");
|
|
6373
6373
|
});
|
|
6374
6374
|
}
|
|
6375
|
-
this.ws = new WebSocket(url, wsOptions);
|
|
6375
|
+
this.ws = new WebSocket$1(url, wsOptions);
|
|
6376
6376
|
this.ws.on("open", () => {
|
|
6377
6377
|
if (url.startsWith("wss://") && this.opts.tlsFingerprint) {
|
|
6378
6378
|
const tlsError = this.validateTlsFingerprint();
|
|
@@ -6568,7 +6568,7 @@ var GatewayClient = class {
|
|
|
6568
6568
|
const connectChallengeTimeoutMs = typeof rawConnectDelayMs === "number" && Number.isFinite(rawConnectDelayMs) ? Math.max(250, Math.min(1e4, rawConnectDelayMs)) : 2e3;
|
|
6569
6569
|
if (this.connectTimer) clearTimeout(this.connectTimer);
|
|
6570
6570
|
this.connectTimer = setTimeout(() => {
|
|
6571
|
-
if (this.connectSent || this.ws?.readyState !== WebSocket.OPEN) return;
|
|
6571
|
+
if (this.connectSent || this.ws?.readyState !== WebSocket$1.OPEN) return;
|
|
6572
6572
|
this.opts.onConnectError?.(/* @__PURE__ */ new Error("gateway connect challenge timeout"));
|
|
6573
6573
|
this.ws?.close(1008, "connect challenge timeout");
|
|
6574
6574
|
}, connectChallengeTimeoutMs);
|
|
@@ -6610,7 +6610,7 @@ var GatewayClient = class {
|
|
|
6610
6610
|
return null;
|
|
6611
6611
|
}
|
|
6612
6612
|
async request(method, params, opts) {
|
|
6613
|
-
if (!this.ws || this.ws.readyState !== WebSocket.OPEN) throw new Error("gateway not connected");
|
|
6613
|
+
if (!this.ws || this.ws.readyState !== WebSocket$1.OPEN) throw new Error("gateway not connected");
|
|
6614
6614
|
const id = randomUUID();
|
|
6615
6615
|
const frame = {
|
|
6616
6616
|
type: "req",
|
|
@@ -7934,7 +7934,7 @@ async function routeReply(params) {
|
|
|
7934
7934
|
const resolvedReplyToId = replyToId ?? (channelId === "slack" && threadId != null && threadId !== "" ? String(threadId) : void 0);
|
|
7935
7935
|
const resolvedThreadId = channelId === "slack" ? null : threadId ?? null;
|
|
7936
7936
|
try {
|
|
7937
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
7937
|
+
const { deliverOutboundPayloads } = await import("./deliver-5FLCa6tB.js").then((n) => n.n);
|
|
7938
7938
|
const outboundSession = buildOutboundSessionContext({
|
|
7939
7939
|
cfg,
|
|
7940
7940
|
agentId: resolvedAgentId,
|
|
@@ -23059,7 +23059,7 @@ const handleAntonCommand = async (params, _allowTextCommands) => {
|
|
|
23059
23059
|
};
|
|
23060
23060
|
const arg = body.slice(6).trim();
|
|
23061
23061
|
if (arg === "status" || arg === "") {
|
|
23062
|
-
const { antonStatus } = await import("./anton-
|
|
23062
|
+
const { antonStatus } = await import("./anton-BDDjbZ5H.js");
|
|
23063
23063
|
const lines = [];
|
|
23064
23064
|
await antonStatus({
|
|
23065
23065
|
log: (msg) => lines.push(msg),
|
|
@@ -23075,7 +23075,7 @@ const handleAntonCommand = async (params, _allowTextCommands) => {
|
|
|
23075
23075
|
return { shouldContinue: false };
|
|
23076
23076
|
}
|
|
23077
23077
|
if (arg === "stop") {
|
|
23078
|
-
const { antonStop } = await import("./anton-
|
|
23078
|
+
const { antonStop } = await import("./anton-BDDjbZ5H.js");
|
|
23079
23079
|
const lines = [];
|
|
23080
23080
|
await antonStop({
|
|
23081
23081
|
log: (msg) => lines.push(msg),
|
|
@@ -23113,8 +23113,8 @@ const handleAntonCommand = async (params, _allowTextCommands) => {
|
|
|
23113
23113
|
await sendProgress(replyCtx, text);
|
|
23114
23114
|
return { shouldContinue: false };
|
|
23115
23115
|
}
|
|
23116
|
-
const { runAnton, formatProgressMessage } = await import("./anton-
|
|
23117
|
-
const { createDefaultDeps } = await import("./deps-
|
|
23116
|
+
const { runAnton, formatProgressMessage } = await import("./anton-BDDjbZ5H.js");
|
|
23117
|
+
const { createDefaultDeps } = await import("./deps-Bp-zobQ9.js").then((n) => n.n);
|
|
23118
23118
|
const { createNonExitingRuntime } = await import("./runtime-8mi3mpYB.js").then((n) => n.r);
|
|
23119
23119
|
const runtime = createNonExitingRuntime();
|
|
23120
23120
|
const deps = createDefaultDeps();
|
|
@@ -47426,7 +47426,7 @@ async function deliverSessionMaintenanceWarning(params) {
|
|
|
47426
47426
|
return;
|
|
47427
47427
|
}
|
|
47428
47428
|
try {
|
|
47429
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
47429
|
+
const { deliverOutboundPayloads } = await import("./deliver-5FLCa6tB.js").then((n) => n.n);
|
|
47430
47430
|
const outboundSession = buildOutboundSessionContext({
|
|
47431
47431
|
cfg: params.cfg,
|
|
47432
47432
|
sessionKey: params.sessionKey
|
|
@@ -51862,7 +51862,7 @@ async function describeStickerImage(params) {
|
|
|
51862
51862
|
logVerbose(`telegram: describing sticker with ${provider}/${model}`);
|
|
51863
51863
|
try {
|
|
51864
51864
|
const buffer = await fs.readFile(imagePath);
|
|
51865
|
-
const { describeImageWithModel } = await import("./image-
|
|
51865
|
+
const { describeImageWithModel } = await import("./image-C_aN5P6-.js").then((n) => n.n);
|
|
51866
51866
|
return (await describeImageWithModel({
|
|
51867
51867
|
buffer,
|
|
51868
51868
|
fileName: "sticker.webp",
|
|
@@ -54790,7 +54790,7 @@ async function preflightDiscordMessage(params) {
|
|
|
54790
54790
|
let preflightTranscript;
|
|
54791
54791
|
const hasAudioAttachment = message.attachments?.some((att) => att.contentType?.startsWith("audio/"));
|
|
54792
54792
|
if (!isDirectMessage && shouldRequireMention && hasAudioAttachment && !baseText && mentionRegexes.length > 0) try {
|
|
54793
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
54793
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-vD3mDc6w.js");
|
|
54794
54794
|
const audioPaths = message.attachments?.filter((att) => att.contentType?.startsWith("audio/")).map((att) => att.url) ?? [];
|
|
54795
54795
|
if (audioPaths.length > 0) preflightTranscript = await transcribeFirstAudio({
|
|
54796
54796
|
ctx: {
|
|
@@ -57271,7 +57271,7 @@ function createDiscordMessageHandler(params) {
|
|
|
57271
57271
|
try {
|
|
57272
57272
|
const messageText = resolveDiscordMessageText(data.message)?.trim();
|
|
57273
57273
|
if (messageText) {
|
|
57274
|
-
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-
|
|
57274
|
+
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-CHHSptxF.js");
|
|
57275
57275
|
if (isAbortRequestText(messageText)) {
|
|
57276
57276
|
const { resolveAgentRoute } = await import("./resolve-route-BI3VjtwE.js").then((n) => n.r);
|
|
57277
57277
|
const channelId = resolveDiscordMessageChannelId({
|
|
@@ -62717,7 +62717,7 @@ function createDiscordGatewayPlugin(params) {
|
|
|
62717
62717
|
return super.registerClient(client);
|
|
62718
62718
|
}
|
|
62719
62719
|
createWebSocket(url) {
|
|
62720
|
-
return new WebSocket
|
|
62720
|
+
return new WebSocket(url, { agent: wsAgent });
|
|
62721
62721
|
}
|
|
62722
62722
|
}
|
|
62723
62723
|
return new ProxyGatewayPlugin();
|
|
@@ -64769,7 +64769,7 @@ async function monitorIMessageProvider(opts = {}) {
|
|
|
64769
64769
|
}
|
|
64770
64770
|
const msgText = (message.text ?? "").trim();
|
|
64771
64771
|
if (msgText) {
|
|
64772
|
-
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-
|
|
64772
|
+
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-CHHSptxF.js");
|
|
64773
64773
|
if (isAbortRequestText(msgText)) {
|
|
64774
64774
|
const { resolveAgentRoute } = await import("./resolve-route-BI3VjtwE.js").then((n) => n.r);
|
|
64775
64775
|
const route = resolveAgentRoute({
|
|
@@ -67380,7 +67380,7 @@ function createSignalEventHandler(deps) {
|
|
|
67380
67380
|
const senderName = envelope.sourceName ?? senderDisplay;
|
|
67381
67381
|
const messageId = typeof envelope.timestamp === "number" ? String(envelope.timestamp) : void 0;
|
|
67382
67382
|
if (bodyText) {
|
|
67383
|
-
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-
|
|
67383
|
+
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-CHHSptxF.js");
|
|
67384
67384
|
if (isAbortRequestText(bodyText)) {
|
|
67385
67385
|
const { resolveAgentRoute } = await import("./resolve-route-BI3VjtwE.js").then((n) => n.r);
|
|
67386
67386
|
const route = resolveAgentRoute({
|
|
@@ -70762,7 +70762,7 @@ function createSlackMessageHandler(params) {
|
|
|
70762
70762
|
if (ctx.markMessageSeen(message.channel, message.ts)) return;
|
|
70763
70763
|
const rawText = (message.text ?? "").trim();
|
|
70764
70764
|
if (rawText) {
|
|
70765
|
-
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-
|
|
70765
|
+
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-CHHSptxF.js");
|
|
70766
70766
|
if (isAbortRequestText(rawText)) {
|
|
70767
70767
|
const { resolveAgentRoute } = await import("./resolve-route-BI3VjtwE.js").then((n) => n.r);
|
|
70768
70768
|
const route = resolveAgentRoute({
|
|
@@ -72956,7 +72956,7 @@ const registerTelegramHandlers = ({ cfg, accountId, bot, opts, runtime, mediaMax
|
|
|
72956
72956
|
const { ctx, msg, chatId, resolvedThreadId, storeAllowFrom, sendOversizeWarning, oversizeLogMessage } = params;
|
|
72957
72957
|
const text = typeof msg.text === "string" ? msg.text : void 0;
|
|
72958
72958
|
if (text) {
|
|
72959
|
-
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-
|
|
72959
|
+
const { isAbortRequestText, emergencyStop, resolveSessionForEmergencyStop } = await import("./emergency-stop-CHHSptxF.js");
|
|
72960
72960
|
if (isAbortRequestText(text)) {
|
|
72961
72961
|
const senderId = msg.from?.id ? String(msg.from.id) : "";
|
|
72962
72962
|
if (!senderId || !allowFrom?.length || allowFrom.includes(senderId)) {
|
|
@@ -73843,7 +73843,7 @@ const buildTelegramMessageContext = async ({ primaryCtx, allMedia, replyMedia =
|
|
|
73843
73843
|
const hasAudio = allMedia.some((media) => media.contentType?.startsWith("audio/"));
|
|
73844
73844
|
let preflightTranscript;
|
|
73845
73845
|
if (isGroup && requireMention && hasAudio && !hasUserText && mentionRegexes.length > 0) try {
|
|
73846
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
73846
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-vD3mDc6w.js");
|
|
73847
73847
|
preflightTranscript = await transcribeFirstAudio({
|
|
73848
73848
|
ctx: {
|
|
73849
73849
|
MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
|
|
@@ -76441,7 +76441,7 @@ function loadWebLoginQr() {
|
|
|
76441
76441
|
return webLoginQrPromise;
|
|
76442
76442
|
}
|
|
76443
76443
|
function loadWebChannel() {
|
|
76444
|
-
webChannelPromise ??= import("./web-
|
|
76444
|
+
webChannelPromise ??= import("./web-BsIp9miY.js");
|
|
76445
76445
|
return webChannelPromise;
|
|
76446
76446
|
}
|
|
76447
76447
|
function loadWhatsAppActions() {
|