@fased/fased 0.1.30 → 0.1.32
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/CHANGELOG.md +13 -0
- package/dist/{agents-BU4NqZkn.js → agents-C9M0l-z1.js} +8 -8
- package/dist/{attachment-normalize-D3LvGnxE.js → attachment-normalize-3SG3lsyA.js} +1 -1
- package/dist/{attachment-normalize-3_V1yb6a.js → attachment-normalize-B9DOGvsN.js} +1 -1
- package/dist/{audio-preflight-B4hZi0X5.js → audio-preflight-1Adp2U4P.js} +1 -1
- package/dist/{audio-preflight-MUfVeIPT.js → audio-preflight-BJWtQuva.js} +1 -1
- package/dist/{audio-preflight-r8PHFHTe.js → audio-preflight-CBCOUaBS.js} +2 -2
- package/dist/{audio-preflight-DcQrkXYr.js → audio-preflight-Sv6kC6zq.js} +2 -2
- package/dist/{audio-preflight-YPQKo93v.js → audio-preflight-Yh7ePF_K.js} +2 -2
- package/dist/{audit-BNmzld5I.js → audit--bs_HZI7.js} +1 -1
- package/dist/{audit-ChF16w3M.js → audit-BxY0dXjF.js} +1 -1
- package/dist/{auth-DGXGqcN7.js → auth-CVGoBFRu.js} +5 -5
- package/dist/{auth-choice-UvbBnRhr.js → auth-choice-DJCkgrZf.js} +1 -1
- package/dist/{auth-choice-BJGGTOYU.js → auth-choice-hqc8badr.js} +1 -1
- package/dist/{auth-choice-prompt-CPoTg_-G.js → auth-choice-prompt-CgKsstJp.js} +1 -1
- package/dist/{auth-choice-prompt-9uH2hSjM.js → auth-choice-prompt-ClC1AQ5S.js} +1 -1
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +1 -1
- package/dist/bundled/session-memory/handler.js +1 -1
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-web-0wKGD4yD.js → channel-web-9RWLChjo.js} +1 -1
- package/dist/{channel-web-DLD1undh.js → channel-web-KMOLb33A.js} +1 -1
- package/dist/{channels-CBT56Ap7.js → channels-Bi578Scw.js} +6 -6
- package/dist/{channels-B9bvlD7y.js → channels-DG-P9Wz_.js} +6 -6
- package/dist/{channels-cli-CK1qojpR.js → channels-cli-3nP8aA1E.js} +5 -5
- package/dist/{channels-cli-D6ioLe8o.js → channels-cli-CeXjvyug.js} +5 -5
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-DgHb9Vld.js → cli-BHwta9zB.js} +2 -2
- package/dist/{cli-ByaZFcQl.js → cli-DttJMqPU.js} +2 -2
- package/dist/{command-registry-mptWJW8S.js → command-registry-BIpl_FuJ.js} +9 -9
- package/dist/{completion-cli-DyJbXhbh.js → completion-cli-Brs6d9Ck.js} +1 -1
- package/dist/{completion-cli-BRvgVQzN.js → completion-cli-Py4BkrSJ.js} +2 -2
- package/dist/{config-cli-R0TQZDi7.js → config-cli-BP4JMXEu.js} +1 -1
- package/dist/{config-cli-BrzPOli4.js → config-cli-RTgToPyL.js} +1 -1
- package/dist/{configure-Bt3nH-_I.js → configure-BPYADl2J.js} +12 -12
- package/dist/{configure-pREf12zB.js → configure-BpyrX7AX.js} +12 -12
- package/dist/control-ui/assets/app-DXYMrRJ9.js.map +1 -1
- package/dist/{cron-cli-zdoRLQ0m.js → cron-cli-Bqnyia9D.js} +2 -2
- package/dist/{cron-cli-BIYfBpRP.js → cron-cli-DG6UhqGh.js} +2 -2
- package/dist/{daemon-cli-LLGP6g2r.js → daemon-cli-DRZAW920.js} +77 -38
- package/dist/{daemon-cli-Cj4_RgEM.js → daemon-cli-DvUDSwZ6.js} +77 -38
- package/dist/daemon-cli.js +76 -37
- package/dist/{deps-QnUngXA3.js → deps-BXD31H9r.js} +1 -1
- package/dist/{deps-sd-SQKYn.js → deps-Dt_C-sk6.js} +1 -1
- package/dist/entry.js +1 -1
- package/dist/extensionAPI.js +2 -2
- package/dist/{gateway-cli-yfNsUzH6.js → gateway-cli-B3ZBpI5b.js} +27 -27
- package/dist/{gateway-cli-Cn3STpYX.js → gateway-cli-B9Jega1W.js} +27 -27
- package/dist/{health-DcurJYny.js → health-B6CuVELf.js} +2 -2
- package/dist/{health-BfGnSyOV.js → health-Cpjz51iq.js} +2 -2
- package/dist/{heartbeat-runner-CJZStXhx.js → heartbeat-runner-CFHCjrD6.js} +1 -1
- package/dist/{heartbeat-runner-CY41VFZE.js → heartbeat-runner-DlGg8a6p.js} +1 -1
- package/dist/{hooks-cli-DpkFISKR.js → hooks-cli-BoS2R5LX.js} +3 -3
- package/dist/{hooks-cli-WtC65axA.js → hooks-cli-C4M9e4gp.js} +3 -3
- package/dist/index.js +7 -7
- package/dist/{ipv4-BkY__Z0A.js → ipv4-Kk3Gdn9X.js} +2 -2
- package/dist/{ipv4-CdRPraPM.js → ipv4-yW-iu9Dm.js} +2 -2
- package/dist/{lifecycle-Dd-6tFQk.js → lifecycle-BEBEHpWI.js} +1 -1
- package/dist/{lifecycle-DUPuKIvd.js → lifecycle-Bi6-UGGr.js} +1 -1
- package/dist/{list.auth-overview-DcdJySBi.js → list.auth-overview-C3kBef3h.js} +1 -1
- package/dist/{list.auth-overview-CE2_GQ-8.js → list.auth-overview-DC6xetIm.js} +1 -1
- package/dist/llm-slug-generator.js +1 -1
- package/dist/{model-catalog-DOuyqwFa.js → model-catalog-DLnvfoWK.js} +6 -6
- package/dist/{models-ItVo4_FF.js → models-CQ58ONbA.js} +4 -4
- package/dist/{models-cli-DKEzhF9X.js → models-cli-CsRw9XQ1.js} +4 -4
- package/dist/{models-cli-YznPWFUE.js → models-cli-DvfsgPZn.js} +5 -5
- package/dist/{node-cli-qkHTKDmW.js → node-cli-DCSFpsVH.js} +2 -2
- package/dist/{node-cli-CZaJUGYu.js → node-cli-DPJxGekE.js} +2 -2
- package/dist/{onboard-Cpw2fP2S.js → onboard-C_qD227j.js} +6 -6
- package/dist/{onboard--COJdfXc.js → onboard-M91tr58T.js} +6 -6
- package/dist/{onboard-channels-CbQgdo3k.js → onboard-channels-BRP2FtwH.js} +2 -2
- package/dist/{onboard-channels-BH6atgy1.js → onboard-channels-DVVeTmrM.js} +2 -2
- package/dist/{onboard-search-Bg8qvHBV.js → onboard-search-D78hzR7X.js} +5 -5
- package/dist/{onboard-search-BxaAdq5U.js → onboard-search-DDXa6Rib.js} +5 -5
- package/dist/{onboarding-B-_4gKpN.js → onboarding-DnFHAoNE.js} +7 -7
- package/dist/{onboarding-DiuUZg9l.js → onboarding-pZ1Jf-8h.js} +7 -7
- package/dist/{openresponses-http-DhBER2sI.js → openresponses-http-BS1_d3jR.js} +2 -2
- package/dist/{openresponses-http-svQwMBaq.js → openresponses-http-CrUE4VRC.js} +1 -1
- package/dist/{openresponses-http-BNIAyGrH.js → openresponses-http-DXlow5DU.js} +1 -1
- package/dist/{openresponses-http-DGAqU5K9.js → openresponses-http-ERMucVeO.js} +2 -2
- package/dist/{openresponses-http-BVdja8Nj.js → openresponses-http-xQEkEQ6X.js} +2 -2
- package/dist/{parent-default-help-DUqMyqko.js → parent-default-help-DAqwrXLF.js} +1 -1
- package/dist/{parent-default-help-B2mCEhav.js → parent-default-help-DcHwWRVG.js} +1 -1
- package/dist/{paths-DGN5lNb7.js → paths-6Y-iET7k.js} +9 -9
- package/dist/{pi-embedded-DPl5Aqw4.js → pi-embedded-D48hcJCt.js} +14 -14
- package/dist/{pi-embedded-CrKlYvWM.js → pi-embedded-DI_Xhl4J.js} +5 -5
- package/dist/{plugin-registry-CIiRwpQv.js → plugin-registry-DfMTZHnU.js} +1 -1
- package/dist/{plugin-registry-BBzitaxQ.js → plugin-registry-UQgZaIGL.js} +1 -1
- package/dist/plugin-sdk/{audio-preflight-B-__-RfZ.js → audio-preflight-BgMMXymt.js} +1 -1
- package/dist/plugin-sdk/{audio-preflight-DcJUk03P.js → audio-preflight-CV14wEHo.js} +1 -1
- package/dist/plugin-sdk/channel-plugin-common.js +1 -1
- package/dist/plugin-sdk/{channel-web-DoGtD0PQ.js → channel-web-CH4KDsdG.js} +1 -1
- package/dist/plugin-sdk/command-status.js +1 -1
- package/dist/plugin-sdk/index.js +2 -2
- package/dist/plugin-sdk/{openresponses-http-VFgg_bR4.js → openresponses-http-Czb4I2s-.js} +1 -1
- package/dist/plugin-sdk/{openresponses-http-DQWJE95u.js → openresponses-http-hm0xMbb1.js} +1 -1
- package/dist/plugin-sdk/{pi-model-discovery-runtime-CwXjrUIM.js → pi-model-discovery-runtime-DaiqegxK.js} +1 -1
- package/dist/plugin-sdk/{registry-C90cYLNB.js → registry-D1bAj51G.js} +8 -8
- package/dist/plugin-sdk/{reply-D4WNXysa.js → reply-39uSimjr.js} +5 -5
- package/dist/plugin-sdk/src/brand.d.ts +2 -2
- package/dist/plugin-sdk/{status-BlX9jStp.js → status-CYUhk0OD.js} +5 -5
- package/dist/plugin-sdk/{web-CEucw6Dl.js → web-DfmRaZxe.js} +1 -1
- package/dist/plugin-sdk/{web-Cr8AJx43.js → web-yZlgHxrL.js} +2 -2
- package/dist/{plugins-cli-B9w9SKYa.js → plugins-cli-Cqv8gBQ_.js} +5 -5
- package/dist/{plugins-cli-CdRa6xYi.js → plugins-cli-Cxz8wBrW.js} +5 -5
- package/dist/{program-C9wZbb_-.js → program-DDIesooR.js} +7 -7
- package/dist/{program-context-Dc8hoANx.js → program-context-CKYkefXE.js} +24 -24
- package/dist/{prompt-select-styled-9E7HlPjk.js → prompt-select-styled-D93sCpQh.js} +4 -4
- package/dist/{prompt-select-styled-oUCALY2N.js → prompt-select-styled-Dd9UMH0Y.js} +4 -4
- package/dist/{pw-ai-BaQ88hEN.js → pw-ai-DuNzIjgi.js} +1 -1
- package/dist/{register.agent-Dty2GQos.js → register.agent-4-it81L8.js} +9 -9
- package/dist/{register.agent-BhoMAqJe.js → register.agent-DIhN_kWa.js} +8 -8
- package/dist/{register.configure-CjQhBudl.js → register.configure-DZxKoDN3.js} +12 -12
- package/dist/{register.configure-DZl7w5Se.js → register.configure-qhI-P_oT.js} +12 -12
- package/dist/{register.maintenance-CGFQEESj.js → register.maintenance-BBQxyCpV.js} +9 -9
- package/dist/{register.maintenance-C9_UzTyI.js → register.maintenance-CLxGWk1C.js} +8 -8
- package/dist/{register.message-DnrC31ZC.js → register.message-Ch9NwFdM.js} +3 -3
- package/dist/{register.message-C3BTjmhg.js → register.message-DzMOXDgp.js} +3 -3
- package/dist/{register.onboard-DIxJ1bFs.js → register.onboard-BLBtWu3F.js} +14 -14
- package/dist/{register.onboard-DzO2dNpB.js → register.onboard-RgmG_vgu.js} +14 -14
- package/dist/{register.setup-B5Ji_Smo.js → register.setup-BVF84fkF.js} +14 -14
- package/dist/{register.setup-Cd8rXata.js → register.setup-CN1g2RMt.js} +14 -14
- package/dist/{register.status-health-sessions-CUw6awJ6.js → register.status-health-sessions-BU39-o9s.js} +6 -6
- package/dist/{register.status-health-sessions-CYpKmq3y.js → register.status-health-sessions-DQ-6ktbI.js} +6 -6
- package/dist/{register.subclis-DEnba1hq.js → register.subclis-CjN7kBwT.js} +16 -16
- package/dist/{reply-DVGmtLPq.js → reply-CScH11Id.js} +6 -6
- package/dist/{run-main-BqiU1shU.js → run-main-BNanbHOO.js} +14 -14
- package/dist/{runtime-helper-grants-BQl2Y_KJ.js → runtime-helper-grants-C79-aB7A.js} +1 -1
- package/dist/{runtime-helper-grants-CHz5azhO.js → runtime-helper-grants-DuYqyaEM.js} +1 -1
- package/dist/{sandbox-cli-BLWfhZh2.js → sandbox-cli-B4TQGwK3.js} +2 -2
- package/dist/{sandbox-cli-C7tRjHGl.js → sandbox-cli-wb8XfktJ.js} +2 -2
- package/dist/{security-cli-DGCfCHzM.js → security-cli-B0ixaJVQ.js} +3 -3
- package/dist/{security-cli-0-5Vgk1A.js → security-cli-DDqvUdxu.js} +3 -3
- package/dist/{server-BMZYE37o.js → server-DDClE1d0.js} +2 -2
- package/dist/{server-cron-BUWyjpTV.js → server-cron-BS1jgNEy.js} +2 -2
- package/dist/{server-cron-DC9t05LU.js → server-cron-CHqqCpAF.js} +2 -2
- package/dist/{server-node-events-cusaGrcY.js → server-node-events-CGz55vsP.js} +3 -3
- package/dist/{server-node-events-C3IOxSF_.js → server-node-events-DfodVK1X.js} +3 -3
- package/dist/{server-DamsmTjm.js → server-pdfJmWak.js} +2 -2
- package/dist/{status-Dlt3xwcf.js → status-6cMXaS3e.js} +4 -4
- package/dist/{status-B39ZJFhD.js → status-B5Csdh6E.js} +1 -1
- package/dist/{status-CrL7Hp3R.js → status-D_s8CjtO.js} +4 -4
- package/dist/{status-Doqt5wXN.js → status-DxDA2XqP.js} +1 -1
- package/dist/{tui-R-P_OV8J.js → tui-BgAtpZvX.js} +1 -1
- package/dist/{tui-DdPEVWjR.js → tui-BtBJfsoD.js} +1 -1
- package/dist/{tui-cli-BgihXvs7.js → tui-cli-B2uAW1Tv.js} +3 -3
- package/dist/{tui-cli-ChpP9FsL.js → tui-cli-Be08Tr3T.js} +3 -3
- package/dist/{update-cli-DVCjSLYw.js → update-cli-BI1HyhJx.js} +10 -10
- package/dist/{update-cli-DPdSuHZT.js → update-cli-ess-i7v6.js} +9 -9
- package/dist/{update-runner-COs-YDhT.js → update-runner-B7b7XcMo.js} +1 -1
- package/dist/{update-runner-DNPfs265.js → update-runner-CKHb5ESG.js} +1 -1
- package/dist/{web-DQuQBwMr.js → web-B2eQm9c2.js} +1 -1
- package/dist/{web-B2SWpLdC.js → web-BwUlZfNk.js} +3 -3
- package/dist/{web-D8bq1XRX.js → web-ChCVQYdV.js} +3 -3
- package/dist/{web-BHp_2XHP.js → web-CrHcxt5v.js} +1 -1
- package/dist/{web-vGE7qeF-.js → web-DklUb8i3.js} +2 -2
- package/dist/{web-search-providers.runtime-BD9Vp8eD.js → web-search-providers.runtime-_BRMKUlp.js} +1 -1
- package/dist/{web-search-providers.runtime-CiOoq6G3.js → web-search-providers.runtime-xPoF2gKl.js} +1 -1
- package/extensions/acpx/package.json +1 -1
- package/extensions/bluebubbles/package.json +1 -1
- package/extensions/copilot-proxy/package.json +1 -1
- package/extensions/diagnostics-otel/package.json +1 -1
- package/extensions/discord/package.json +1 -1
- package/extensions/fased-federation/package.json +1 -1
- package/extensions/feishu/package.json +1 -1
- package/extensions/google-gemini-cli-auth/package.json +1 -1
- package/extensions/googlechat/package.json +1 -1
- package/extensions/imessage/package.json +1 -1
- package/extensions/irc/package.json +1 -1
- package/extensions/line/package.json +1 -1
- package/extensions/llm-task/package.json +1 -1
- package/extensions/lobster/package.json +1 -1
- package/extensions/matrix/CHANGELOG.md +12 -0
- package/extensions/matrix/package.json +1 -1
- package/extensions/mattermost/package.json +1 -1
- package/extensions/memory-core/package.json +1 -1
- package/extensions/memory-lancedb/package.json +1 -1
- package/extensions/minimax-portal-auth/package.json +1 -1
- package/extensions/msteams/CHANGELOG.md +12 -0
- package/extensions/msteams/package.json +1 -1
- package/extensions/nextcloud-talk/package.json +1 -1
- package/extensions/nostr/CHANGELOG.md +12 -0
- package/extensions/nostr/package.json +1 -1
- package/extensions/open-prose/package.json +1 -1
- package/extensions/sat-mining/package.json +1 -1
- package/extensions/signal/package.json +1 -1
- package/extensions/slack/package.json +1 -1
- package/extensions/synology-chat/package.json +1 -1
- package/extensions/telegram/package.json +1 -1
- package/extensions/tlon/package.json +1 -1
- package/extensions/twitch/CHANGELOG.md +12 -0
- package/extensions/twitch/package.json +1 -1
- package/extensions/voice-call/CHANGELOG.md +12 -0
- package/extensions/voice-call/package.json +1 -1
- package/extensions/whatsapp/package.json +1 -1
- package/extensions/zalo/CHANGELOG.md +12 -0
- package/extensions/zalo/package.json +1 -1
- package/extensions/zalouser/CHANGELOG.md +12 -0
- package/extensions/zalouser/package.json +1 -1
- package/package.json +1 -1
- package/src/brand.ts +1 -1
- package/src/canvas-host/a2ui/.bundle.hash +1 -1
- package/src/cli/daemon-cli/lifecycle.ts +23 -0
- package/src/cli/daemon-cli/probe.ts +2 -2
- package/src/cli/daemon-cli/restart-health.ts +37 -1
- package/src/cli/daemon-cli/status.gather.ts +37 -3
|
@@ -9,7 +9,7 @@ import { createHmac } from "node:crypto";
|
|
|
9
9
|
import { execFileSync, spawn } from "node:child_process";
|
|
10
10
|
import { createServer } from "node:http";
|
|
11
11
|
import net from "node:net";
|
|
12
|
-
import WebSocket
|
|
12
|
+
import WebSocket, { WebSocketServer } from "ws";
|
|
13
13
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
14
14
|
|
|
15
15
|
//#region src/browser/constants.ts
|
|
@@ -270,7 +270,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
270
270
|
let extensionWs = null;
|
|
271
271
|
const cdpClients = /* @__PURE__ */ new Set();
|
|
272
272
|
const connectedTargets = /* @__PURE__ */ new Map();
|
|
273
|
-
const extensionConnected = () => extensionWs?.readyState === WebSocket
|
|
273
|
+
const extensionConnected = () => extensionWs?.readyState === WebSocket.OPEN;
|
|
274
274
|
let extensionDisconnectCleanupTimer = null;
|
|
275
275
|
const extensionReconnectWaiters = /* @__PURE__ */ new Set();
|
|
276
276
|
const flushExtensionReconnectWaiters = (connected) => {
|
|
@@ -321,7 +321,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
321
321
|
let nextExtensionId = 1;
|
|
322
322
|
const sendToExtension = async (payload) => {
|
|
323
323
|
const ws = extensionWs;
|
|
324
|
-
if (!ws || ws.readyState !== WebSocket
|
|
324
|
+
if (!ws || ws.readyState !== WebSocket.OPEN) throw new Error("Chrome extension not connected");
|
|
325
325
|
ws.send(JSON.stringify(payload));
|
|
326
326
|
return await new Promise((resolve, reject) => {
|
|
327
327
|
const timer = setTimeout(() => {
|
|
@@ -338,12 +338,12 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
338
338
|
const broadcastToCdpClients = (evt) => {
|
|
339
339
|
const msg = JSON.stringify(evt);
|
|
340
340
|
for (const ws of cdpClients) {
|
|
341
|
-
if (ws.readyState !== WebSocket
|
|
341
|
+
if (ws.readyState !== WebSocket.OPEN) continue;
|
|
342
342
|
ws.send(msg);
|
|
343
343
|
}
|
|
344
344
|
};
|
|
345
345
|
const sendResponseToCdp = (ws, res) => {
|
|
346
|
-
if (ws.readyState !== WebSocket
|
|
346
|
+
if (ws.readyState !== WebSocket.OPEN) return;
|
|
347
347
|
ws.send(JSON.stringify(res));
|
|
348
348
|
};
|
|
349
349
|
const ensureTargetEventsForClient = (ws, mode) => {
|
|
@@ -553,7 +553,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
553
553
|
rejectUpgrade(socket, 401, "Unauthorized");
|
|
554
554
|
return;
|
|
555
555
|
}
|
|
556
|
-
if (extensionWs && extensionWs.readyState !== WebSocket
|
|
556
|
+
if (extensionWs && extensionWs.readyState !== WebSocket.OPEN) {
|
|
557
557
|
try {
|
|
558
558
|
extensionWs.terminate();
|
|
559
559
|
} catch {}
|
|
@@ -590,7 +590,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
590
590
|
clearExtensionDisconnectCleanupTimer();
|
|
591
591
|
flushExtensionReconnectWaiters(true);
|
|
592
592
|
const ping = setInterval(() => {
|
|
593
|
-
if (ws.readyState !== WebSocket
|
|
593
|
+
if (ws.readyState !== WebSocket.OPEN) return;
|
|
594
594
|
ws.send(JSON.stringify({ method: "ping" }));
|
|
595
595
|
}, 5e3);
|
|
596
596
|
ws.on("message", (data) => {
|
|
@@ -932,7 +932,7 @@ async function fetchOk(url, timeoutMs = 1500, init) {
|
|
|
932
932
|
}
|
|
933
933
|
async function withCdpSocket(wsUrl, fn, opts) {
|
|
934
934
|
const headers = getHeadersWithAuth(wsUrl, opts?.headers ?? {});
|
|
935
|
-
const ws = new WebSocket
|
|
935
|
+
const ws = new WebSocket(wsUrl, {
|
|
936
936
|
handshakeTimeout: typeof opts?.handshakeTimeoutMs === "number" && Number.isFinite(opts.handshakeTimeoutMs) ? Math.max(1, Math.floor(opts.handshakeTimeoutMs)) : 5e3,
|
|
937
937
|
...Object.keys(headers).length ? { headers } : {}
|
|
938
938
|
});
|
|
@@ -1858,7 +1858,7 @@ async function getChromeWebSocketUrl(cdpUrl, timeoutMs = 500) {
|
|
|
1858
1858
|
async function canOpenWebSocket(wsUrl, timeoutMs = 800) {
|
|
1859
1859
|
return await new Promise((resolve) => {
|
|
1860
1860
|
const headers = getHeadersWithAuth(wsUrl);
|
|
1861
|
-
const ws = new WebSocket
|
|
1861
|
+
const ws = new WebSocket(wsUrl, {
|
|
1862
1862
|
handshakeTimeout: timeoutMs,
|
|
1863
1863
|
...Object.keys(headers).length ? { headers } : {}
|
|
1864
1864
|
});
|
|
@@ -12,7 +12,7 @@ import { t as redactIdentifier } from "./redact-identifier-CA9VAhZA.js";
|
|
|
12
12
|
import { $ as readChannelAllowFromStore, A as extractTelegramLocation, B as normalizeAllowFrom$2, C as buildTelegramGroupFrom, D as buildTypingThreadParams, E as buildTelegramThreadParams, F as resolveTelegramMediaPlaceholder, G as mergeDmAllowFromSources, H as resolveSenderAllowMatch, I as resolveTelegramReplyId, J as toLocationContext, K as resolveGroupAllowFromSources, L as resolveTelegramStreamMode, M as normalizeForwardedContext, N as resolveTelegramForumThreadId, O as describeReplyTarget, P as resolveTelegramGroupAllowFromContext, Q as addChannelAllowFromStoreEntry, R as resolveTelegramThreadSpec, S as buildSenderName, T as buildTelegramParentPeer, U as firstDefined$2, V as normalizeDmAllowFromWithStore$1, W as isSenderIdAllowed, X as resolveCronStorePath, Y as loadCronStore, Z as saveCronStore, _ as resolveTelegramFetch, a as reactMessageTelegram, at as listPairingChannels, b as buildGroupLabel, c as sendStickerTelegram, ct as resolveTelegramTargetChatType, d as wasSentByBot, et as removeChannelAllowFromStoreEntry, f as isRecoverableTelegramNetworkError, g as wrapFileReferencesInHtml, h as renderTelegramHtmlText, i as editMessageTelegram, it as getPairingAdapter, j as hasBotMention, k as expandTextLinks, m as markdownToTelegramHtml, n as createForumTopicTelegram, nt as readJsonFileWithFallback, o as sendMessageTelegram, ot as isVoiceCompatibleAudio, p as markdownToTelegramChunks, q as formatLocationText, r as deleteMessageTelegram, rt as writeJsonFileAtomically, s as sendPollTelegram, st as parseTelegramTarget, t as buildInlineKeyboard, tt as upsertChannelPairingRequest, u as resolveTelegramVoiceSend, v as splitTelegramCaption, w as buildTelegramGroupPeerId, x as buildSenderLabel, y as withTelegramApiErrorLogging, z as isSenderAllowed$1 } from "./send-CRPZnP3g.js";
|
|
13
13
|
import { E as mediaKindFromMime, S as kindFromMime, _ as extensionForMime, a as buildImageResizeSideGrid, b as isAudioFileName, c as MediaFetchError, g as detectMime, h as getDefaultMediaLocalRoots, i as IMAGE_REDUCE_QUALITY_STEPS, l as fetchRemoteMedia, m as getAgentScopedMediaLocalRoots, n as loadWebMedia, o as getImageMetadata, s as resizeToJpeg, t as getDefaultLocalRoots, u as readResponseWithLimit, v as getFileExtension, w as MAX_IMAGE_BYTES, x as isGifMedia, y as imageMimeFromFormat } from "./media-Byi2a0IF.js";
|
|
14
14
|
import { i as discoverModels, r as discoverAuthStorage } from "./pi-model-discovery-CoOUKWxg.js";
|
|
15
|
-
import { B as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, C as assertBrowserNavigationAllowed, D as fetchJson$1, E as appendCdpPath, F as isLoopbackHost, G as DEFAULT_FASED_BROWSER_COLOR, H as DEFAULT_AI_SNAPSHOT_MAX_CHARS, I as isSecureWebSocketUrl, K as DEFAULT_FASED_BROWSER_ENABLED, L as isTrustedProxyAddress, M as stopChromeExtensionRelayServer, N as rawDataToString, O as fetchOk, P as isLoopbackAddress, R as resolveClientIp, S as InvalidBrowserNavigationUrlError, T as withBrowserNavigationPolicy, U as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, V as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, W as DEFAULT_BROWSER_EVALUATE_ENABLED, _ as captureScreenshot, b as normalizeCdpWsUrl, c as normalizeBrowserFormField, d as isChromeReachable, f as launchFasedAgentChrome, g as resolveLsofCommandSync, h as resolveBrowserExecutableForPlatform, i as resolveExistingPathsWithinRoot, j as ensureChromeExtensionRelayServer, m as stopFasedAgentChrome, n as DEFAULT_TRACE_DIR, o as resolveWritablePathWithinRoot, p as resolveFasedAgentUserDataDir, q as DEFAULT_FASED_BROWSER_PROFILE_NAME, r as DEFAULT_UPLOAD_DIR, t as DEFAULT_DOWNLOAD_DIR, u as isChromeCdpReady, v as createTargetViaCdp, w as assertBrowserNavigationResultAllowed, x as snapshotAria, z as resolveForwardedClientIp } from "./paths-
|
|
15
|
+
import { B as DEFAULT_AI_SNAPSHOT_EFFICIENT_DEPTH, C as assertBrowserNavigationAllowed, D as fetchJson$1, E as appendCdpPath, F as isLoopbackHost, G as DEFAULT_FASED_BROWSER_COLOR, H as DEFAULT_AI_SNAPSHOT_MAX_CHARS, I as isSecureWebSocketUrl, K as DEFAULT_FASED_BROWSER_ENABLED, L as isTrustedProxyAddress, M as stopChromeExtensionRelayServer, N as rawDataToString, O as fetchOk, P as isLoopbackAddress, R as resolveClientIp, S as InvalidBrowserNavigationUrlError, T as withBrowserNavigationPolicy, U as DEFAULT_BROWSER_DEFAULT_PROFILE_NAME, V as DEFAULT_AI_SNAPSHOT_EFFICIENT_MAX_CHARS, W as DEFAULT_BROWSER_EVALUATE_ENABLED, _ as captureScreenshot, b as normalizeCdpWsUrl, c as normalizeBrowserFormField, d as isChromeReachable, f as launchFasedAgentChrome, g as resolveLsofCommandSync, h as resolveBrowserExecutableForPlatform, i as resolveExistingPathsWithinRoot, j as ensureChromeExtensionRelayServer, m as stopFasedAgentChrome, n as DEFAULT_TRACE_DIR, o as resolveWritablePathWithinRoot, p as resolveFasedAgentUserDataDir, q as DEFAULT_FASED_BROWSER_PROFILE_NAME, r as DEFAULT_UPLOAD_DIR, t as DEFAULT_DOWNLOAD_DIR, u as isChromeCdpReady, v as createTargetViaCdp, w as assertBrowserNavigationResultAllowed, x as snapshotAria, z as resolveForwardedClientIp } from "./paths-6Y-iET7k.js";
|
|
16
16
|
import { i as isBlockedHostnameOrIp, o as normalizeHostname, t as SsrFBlockedError } from "./ssrf-9SwDSKOO.js";
|
|
17
17
|
import { n as redactSensitiveUrlLikeString, t as redactSensitiveUrl } from "./redact-sensitive-url-DAsCH1Zm.js";
|
|
18
18
|
import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-DrlQyXxM.js";
|
|
@@ -64,7 +64,7 @@ import { AddressLookupTableAccount, PublicKey, VersionedTransaction } from "@sol
|
|
|
64
64
|
import { Type } from "@sinclair/typebox";
|
|
65
65
|
import { Value } from "@sinclair/typebox/value";
|
|
66
66
|
import { setTimeout as setTimeout$1 } from "node:timers/promises";
|
|
67
|
-
import WebSocket
|
|
67
|
+
import WebSocket, { WebSocket as WebSocket$1 } from "ws";
|
|
68
68
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
69
69
|
import { ProxyAgent, fetch as fetch$1 } from "undici";
|
|
70
70
|
import "@fedify/fedify";
|
|
@@ -16317,7 +16317,7 @@ var GatewayClient = class {
|
|
|
16317
16317
|
if (fingerprint !== expected) return /* @__PURE__ */ new Error("gateway tls fingerprint mismatch");
|
|
16318
16318
|
});
|
|
16319
16319
|
}
|
|
16320
|
-
this.ws = new WebSocket(url, wsOptions);
|
|
16320
|
+
this.ws = new WebSocket$1(url, wsOptions);
|
|
16321
16321
|
this.ws.on("open", () => {
|
|
16322
16322
|
if (url.startsWith("wss://") && this.opts.tlsFingerprint) {
|
|
16323
16323
|
const tlsError = this.validateTlsFingerprint();
|
|
@@ -16513,7 +16513,7 @@ var GatewayClient = class {
|
|
|
16513
16513
|
const connectChallengeTimeoutMs = typeof rawConnectDelayMs === "number" && Number.isFinite(rawConnectDelayMs) ? Math.max(250, Math.min(1e4, rawConnectDelayMs)) : 2e3;
|
|
16514
16514
|
if (this.connectTimer) clearTimeout(this.connectTimer);
|
|
16515
16515
|
this.connectTimer = setTimeout(() => {
|
|
16516
|
-
if (this.connectSent || this.ws?.readyState !== WebSocket.OPEN) return;
|
|
16516
|
+
if (this.connectSent || this.ws?.readyState !== WebSocket$1.OPEN) return;
|
|
16517
16517
|
this.opts.onConnectError?.(/* @__PURE__ */ new Error("gateway connect challenge timeout"));
|
|
16518
16518
|
this.ws?.close(1008, "connect challenge timeout");
|
|
16519
16519
|
}, connectChallengeTimeoutMs);
|
|
@@ -16555,7 +16555,7 @@ var GatewayClient = class {
|
|
|
16555
16555
|
return null;
|
|
16556
16556
|
}
|
|
16557
16557
|
async request(method, params, opts) {
|
|
16558
|
-
if (!this.ws || this.ws.readyState !== WebSocket.OPEN) throw new Error("gateway not connected");
|
|
16558
|
+
if (!this.ws || this.ws.readyState !== WebSocket$1.OPEN) throw new Error("gateway not connected");
|
|
16559
16559
|
const id = randomUUID();
|
|
16560
16560
|
const frame = {
|
|
16561
16561
|
type: "req",
|
|
@@ -19121,7 +19121,7 @@ function createOutboundSendDepsFromCliSource(deps) {
|
|
|
19121
19121
|
function createDefaultDeps() {
|
|
19122
19122
|
return {
|
|
19123
19123
|
sendMessageWhatsApp: async (...args) => {
|
|
19124
|
-
const { sendMessageWhatsApp } = await import("./web-
|
|
19124
|
+
const { sendMessageWhatsApp } = await import("./web-DklUb8i3.js");
|
|
19125
19125
|
return await sendMessageWhatsApp(...args);
|
|
19126
19126
|
},
|
|
19127
19127
|
sendMessageTelegram: async (...args) => {
|
|
@@ -53589,7 +53589,7 @@ function isModuleNotFoundError(err) {
|
|
|
53589
53589
|
}
|
|
53590
53590
|
async function loadPwAiModule(mode) {
|
|
53591
53591
|
try {
|
|
53592
|
-
return await import("./pw-ai-
|
|
53592
|
+
return await import("./pw-ai-DuNzIjgi.js");
|
|
53593
53593
|
} catch (err) {
|
|
53594
53594
|
if (mode === "soft") return null;
|
|
53595
53595
|
if (isModuleNotFoundError(err)) return null;
|
|
@@ -53983,11 +53983,11 @@ function createProfileContext(opts, profile) {
|
|
|
53983
53983
|
const userDataDir = resolveFasedAgentUserDataDir(profile.name);
|
|
53984
53984
|
const profileState = getProfileState();
|
|
53985
53985
|
if (await isHttpReachable(300) && !profileState.running) try {
|
|
53986
|
-
await (await import("./pw-ai-
|
|
53986
|
+
await (await import("./pw-ai-DuNzIjgi.js")).closePlaywrightBrowserConnection();
|
|
53987
53987
|
} catch {}
|
|
53988
53988
|
if (profileState.running) await stopRunningBrowser();
|
|
53989
53989
|
try {
|
|
53990
|
-
await (await import("./pw-ai-
|
|
53990
|
+
await (await import("./pw-ai-DuNzIjgi.js")).closePlaywrightBrowserConnection();
|
|
53991
53991
|
} catch {}
|
|
53992
53992
|
if (!fs.existsSync(userDataDir)) return {
|
|
53993
53993
|
moved: false,
|
|
@@ -91767,7 +91767,7 @@ async function preflightDiscordMessage(params) {
|
|
|
91767
91767
|
let preflightTranscript;
|
|
91768
91768
|
const hasAudioAttachment = message.attachments?.some((att) => att.contentType?.startsWith("audio/"));
|
|
91769
91769
|
if (!isDirectMessage && shouldRequireMention && hasAudioAttachment && !baseText && mentionRegexes.length > 0) try {
|
|
91770
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
91770
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-Yh7ePF_K.js");
|
|
91771
91771
|
const audioPaths = message.attachments?.filter((att) => att.contentType?.startsWith("audio/")).map((att) => att.url) ?? [];
|
|
91772
91772
|
if (audioPaths.length > 0) preflightTranscript = await transcribeFirstAudio({
|
|
91773
91773
|
ctx: {
|
|
@@ -97857,7 +97857,7 @@ function createDiscordGatewayPlugin(params) {
|
|
|
97857
97857
|
return super.registerClient(client);
|
|
97858
97858
|
}
|
|
97859
97859
|
createWebSocket(url) {
|
|
97860
|
-
return new WebSocket
|
|
97860
|
+
return new WebSocket(url, { agent: wsAgent });
|
|
97861
97861
|
}
|
|
97862
97862
|
}
|
|
97863
97863
|
return new ProxyGatewayPlugin();
|
|
@@ -99064,7 +99064,7 @@ async function waitForTransportReady(params) {
|
|
|
99064
99064
|
|
|
99065
99065
|
//#endregion
|
|
99066
99066
|
//#region src/brand.ts
|
|
99067
|
-
const FASED_PRODUCT_VERSION = "0.1.
|
|
99067
|
+
const FASED_PRODUCT_VERSION = "0.1.32";
|
|
99068
99068
|
const FASED_DISPLAY_VERSION = `v${FASED_PRODUCT_VERSION}`;
|
|
99069
99069
|
|
|
99070
99070
|
//#endregion
|
|
@@ -108687,7 +108687,7 @@ const buildTelegramMessageContext = async ({ primaryCtx, allMedia, replyMedia =
|
|
|
108687
108687
|
const hasAudio = allMedia.some((media) => media.contentType?.startsWith("audio/"));
|
|
108688
108688
|
let preflightTranscript;
|
|
108689
108689
|
if (isGroup && requireMention && hasAudio && !hasUserText && mentionRegexes.length > 0) try {
|
|
108690
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
108690
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-Yh7ePF_K.js");
|
|
108691
108691
|
preflightTranscript = await transcribeFirstAudio({
|
|
108692
108692
|
ctx: {
|
|
108693
108693
|
MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
|
|
@@ -111313,7 +111313,7 @@ function loadWebLoginQr() {
|
|
|
111313
111313
|
return webLoginQrPromise;
|
|
111314
111314
|
}
|
|
111315
111315
|
function loadWebChannel() {
|
|
111316
|
-
webChannelPromise ??= import("./web-
|
|
111316
|
+
webChannelPromise ??= import("./web-DklUb8i3.js");
|
|
111317
111317
|
return webChannelPromise;
|
|
111318
111318
|
}
|
|
111319
111319
|
function loadWhatsAppActions() {
|
|
@@ -19122,7 +19122,7 @@ function createOutboundSendDepsFromCliSource(deps) {
|
|
|
19122
19122
|
function createDefaultDeps() {
|
|
19123
19123
|
return {
|
|
19124
19124
|
sendMessageWhatsApp: async (...args) => {
|
|
19125
|
-
const { sendMessageWhatsApp } = await import("./web-
|
|
19125
|
+
const { sendMessageWhatsApp } = await import("./web-B2eQm9c2.js");
|
|
19126
19126
|
return await sendMessageWhatsApp(...args);
|
|
19127
19127
|
},
|
|
19128
19128
|
sendMessageTelegram: async (...args) => {
|
|
@@ -91758,7 +91758,7 @@ async function preflightDiscordMessage(params) {
|
|
|
91758
91758
|
let preflightTranscript;
|
|
91759
91759
|
const hasAudioAttachment = message.attachments?.some((att) => att.contentType?.startsWith("audio/"));
|
|
91760
91760
|
if (!isDirectMessage && shouldRequireMention && hasAudioAttachment && !baseText && mentionRegexes.length > 0) try {
|
|
91761
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
91761
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-BJWtQuva.js");
|
|
91762
91762
|
const audioPaths = message.attachments?.filter((att) => att.contentType?.startsWith("audio/")).map((att) => att.url) ?? [];
|
|
91763
91763
|
if (audioPaths.length > 0) preflightTranscript = await transcribeFirstAudio({
|
|
91764
91764
|
ctx: {
|
|
@@ -99055,7 +99055,7 @@ async function waitForTransportReady(params) {
|
|
|
99055
99055
|
|
|
99056
99056
|
//#endregion
|
|
99057
99057
|
//#region src/brand.ts
|
|
99058
|
-
const FASED_PRODUCT_VERSION = "0.1.
|
|
99058
|
+
const FASED_PRODUCT_VERSION = "0.1.32";
|
|
99059
99059
|
const FASED_DISPLAY_VERSION = `v${FASED_PRODUCT_VERSION}`;
|
|
99060
99060
|
|
|
99061
99061
|
//#endregion
|
|
@@ -108678,7 +108678,7 @@ const buildTelegramMessageContext = async ({ primaryCtx, allMedia, replyMedia =
|
|
|
108678
108678
|
const hasAudio = allMedia.some((media) => media.contentType?.startsWith("audio/"));
|
|
108679
108679
|
let preflightTranscript;
|
|
108680
108680
|
if (isGroup && requireMention && hasAudio && !hasUserText && mentionRegexes.length > 0) try {
|
|
108681
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
108681
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-BJWtQuva.js");
|
|
108682
108682
|
preflightTranscript = await transcribeFirstAudio({
|
|
108683
108683
|
ctx: {
|
|
108684
108684
|
MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
|
|
@@ -111304,7 +111304,7 @@ function loadWebLoginQr() {
|
|
|
111304
111304
|
return webLoginQrPromise;
|
|
111305
111305
|
}
|
|
111306
111306
|
function loadWebChannel() {
|
|
111307
|
-
webChannelPromise ??= import("./web-
|
|
111307
|
+
webChannelPromise ??= import("./web-B2eQm9c2.js");
|
|
111308
111308
|
return webChannelPromise;
|
|
111309
111309
|
}
|
|
111310
111310
|
function loadWhatsAppActions() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { Gu as resolveDefaultAgentId, Wu as resolveAgentWorkspaceDir, Xt as loadConfig, a as createSubsystemLogger, p as getActivePluginRegistry } from "./env-BegRUDBP.js";
|
|
3
|
-
import { c as loadFasedAgentPlugins } from "./model-catalog-
|
|
3
|
+
import { c as loadFasedAgentPlugins } from "./model-catalog-DLnvfoWK.js";
|
|
4
4
|
|
|
5
5
|
//#region src/cli/plugin-registry.ts
|
|
6
6
|
var plugin_registry_exports = /* @__PURE__ */ __exportAll({ ensurePluginRegistryLoaded: () => ensurePluginRegistryLoaded });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { Dn as loadConfig, F as createSubsystemLogger, U as getActivePluginRegistry, d as resolveDefaultAgentId, u as resolveAgentWorkspaceDir } from "./agent-scope-CrCe9L5D.js";
|
|
3
|
-
import { Nt as loadFasedAgentPlugins } from "./reply-
|
|
3
|
+
import { Nt as loadFasedAgentPlugins } from "./reply-CScH11Id.js";
|
|
4
4
|
|
|
5
5
|
//#region src/cli/plugin-registry.ts
|
|
6
6
|
var plugin_registry_exports = /* @__PURE__ */ __exportAll({ ensurePluginRegistryLoaded: () => ensurePluginRegistryLoaded });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as normalizeMediaAttachments, E as isAudioAttachment, S as createMediaAttachmentCache, T as runCapability, w as resolveMediaAttachmentLocalRoots, x as buildProviderRegistry } from "./reply-
|
|
1
|
+
import { C as normalizeMediaAttachments, E as isAudioAttachment, S as createMediaAttachmentCache, T as runCapability, w as resolveMediaAttachmentLocalRoots, x as buildProviderRegistry } from "./reply-39uSimjr.js";
|
|
2
2
|
import { Gc as logVerbose, qc as shouldLogVerbose } from "./runtime-Dxpfvz83.js";
|
|
3
3
|
import "./github-copilot-token-CVC_19vl.js";
|
|
4
4
|
import "./send-Des0LL0Y.js";
|
|
@@ -2,7 +2,7 @@ import { Ds as shouldLogVerbose, Ts as logVerbose } from "./context-CffBTBRN.js"
|
|
|
2
2
|
import "./github-copilot-token-BMocqO3v.js";
|
|
3
3
|
import "./send-Bv5OWFno.js";
|
|
4
4
|
import "./send-DQBK5dsc.js";
|
|
5
|
-
import { A as buildProviderRegistry, F as isAudioAttachment, M as normalizeMediaAttachments, N as resolveMediaAttachmentLocalRoots, P as runCapability, j as createMediaAttachmentCache } from "./status-
|
|
5
|
+
import { A as buildProviderRegistry, F as isAudioAttachment, M as normalizeMediaAttachments, N as resolveMediaAttachmentLocalRoots, P as runCapability, j as createMediaAttachmentCache } from "./status-CYUhk0OD.js";
|
|
6
6
|
import "./paths-aRRIE-2q.js";
|
|
7
7
|
import "./ssrf-CZsNT0Hn.js";
|
|
8
8
|
import "./reply-prefix-BGKgK2hT.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as DEFAULT_ACCOUNT_ID, i as formatCliCommand, o as normalizeAccountId, t as getChatChannelMeta } from "./registry-
|
|
1
|
+
import { a as DEFAULT_ACCOUNT_ID, i as formatCliCommand, o as normalizeAccountId, t as getChatChannelMeta } from "./registry-D1bAj51G.js";
|
|
2
2
|
|
|
3
3
|
//#region src/plugins/config-schema.ts
|
|
4
4
|
function error(message) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as resolveInboundDebounceMs, B as enqueueSystemEvent, D as dispatchReplyWithBufferedBlockDispatcher, Dt as resolveMentionGating, Et as shouldAckReactionForWhatsApp, Ft as buildHistoryContextFromEntries, Ht as buildMentionRegexes, L as normalizeGroupActivation, M as shouldComputeCommandAuthorized, N as registerUnhandledRejectionHandler, Nt as resolveEnvelopeFormatOptions, Pt as DEFAULT_GROUP_HISTORY_LIMIT, R as parseActivationCommand, Ut as normalizeMentionText, Vt as recordPendingHistoryEntryIfEnabled, an as readStoreAllowFromForDmPolicy, b as sleepWithAbort, fn as resolveDefaultGroupPolicy, j as hasControlCommand, jt as formatInboundEnvelope, k as createInboundDebouncer, mn as warnMissingProviderGroupPolicyFallbackOnce, on as resolveDmGroupAccessWithCommandGate, pn as resolveOpenProviderRuntimeGroupPolicy, sn as resolveDmGroupAccessWithLists, t as getReplyFromConfig, tn as createDedupeCache, ut as buildPairingReply, y as computeBackoff, z as formatDurationPrecise } from "./reply-
|
|
1
|
+
import { A as resolveInboundDebounceMs, B as enqueueSystemEvent, D as dispatchReplyWithBufferedBlockDispatcher, Dt as resolveMentionGating, Et as shouldAckReactionForWhatsApp, Ft as buildHistoryContextFromEntries, Ht as buildMentionRegexes, L as normalizeGroupActivation, M as shouldComputeCommandAuthorized, N as registerUnhandledRejectionHandler, Nt as resolveEnvelopeFormatOptions, Pt as DEFAULT_GROUP_HISTORY_LIMIT, R as parseActivationCommand, Ut as normalizeMentionText, Vt as recordPendingHistoryEntryIfEnabled, an as readStoreAllowFromForDmPolicy, b as sleepWithAbort, fn as resolveDefaultGroupPolicy, j as hasControlCommand, jt as formatInboundEnvelope, k as createInboundDebouncer, mn as warnMissingProviderGroupPolicyFallbackOnce, on as resolveDmGroupAccessWithCommandGate, pn as resolveOpenProviderRuntimeGroupPolicy, sn as resolveDmGroupAccessWithLists, t as getReplyFromConfig, tn as createDedupeCache, ut as buildPairingReply, y as computeBackoff, z as formatDurationPrecise } from "./reply-39uSimjr.js";
|
|
2
2
|
import { $c as getChildLogger, C as updateLastRoute, Ca as resolveWhatsAppAccount, Ea as getWebAuthAgeMs, Gc as logVerbose, Ic as createSubsystemLogger, Is as resolveGroupSessionKey, La as formatCliCommand, Ma as readWebSelfId, S as recordSessionMetaFromInbound, _s as buildGroupHistoryKey, b as loadSessionStore, bc as jidToE164, fc as clamp, ft as loadConfig, hs as buildAgentMainSessionKey, jc as toWhatsappJid, kc as sleep, ls as resolveChannelGroupPolicy, ms as DEFAULT_MAIN_KEY, ot as resolveStorePath, qc as shouldLogVerbose, ul as normalizeChatChannelId, us as resolveChannelGroupRequireMention, wc as resolveJidToE164, ws as DEFAULT_ACCOUNT_ID, x as readSessionUpdatedAt, xc as normalizeE164, yc as isSelfChatMode, ys as normalizeAgentId, zc as defaultRuntime } from "./runtime-Dxpfvz83.js";
|
|
3
3
|
import { n as redactSensitiveUrlLikeString } from "./redact-sensitive-url-C_6JDrWW.js";
|
|
4
4
|
import { X as formatLocationText, Z as toLocationContext, at as upsertChannelPairingRequest, rt as readChannelAllowFromStoreSync } from "./send-5VxqNtsW.js";
|
|
@@ -2,7 +2,7 @@ import "./context-CffBTBRN.js";
|
|
|
2
2
|
import "./github-copilot-token-BMocqO3v.js";
|
|
3
3
|
import "./send-Bv5OWFno.js";
|
|
4
4
|
import "./send-DQBK5dsc.js";
|
|
5
|
-
import { n as buildCommandsMessagePaginated, r as buildHelpMessage, t as buildCommandsMessage } from "./status-
|
|
5
|
+
import { n as buildCommandsMessagePaginated, r as buildHelpMessage, t as buildCommandsMessage } from "./status-CYUhk0OD.js";
|
|
6
6
|
import "./paths-aRRIE-2q.js";
|
|
7
7
|
import "./ssrf-CZsNT0Hn.js";
|
|
8
8
|
import "./reply-prefix-BGKgK2hT.js";
|
package/dist/plugin-sdk/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as resolveSlackUserAllowlist, $t as listDevicePairing, At as summarizeMapping, Bt as recordPendingHistoryEntry, Ct as createTypingCallbacks, Dt as resolveMentionGating, Et as shouldAckReactionForWhatsApp, G as attachFooterText, Gt as DEFAULT_WEBHOOK_MAX_BODY_BYTES, H as processLineMessage, It as buildPendingHistoryContextFromMap, Jt as isRequestBodyLimitError, Kt as RequestBodyLimitError, Lt as clearHistoryEntries, Mt as formatInboundFromLabel, Ot as resolveMentionGatingWithBypass, Pt as DEFAULT_GROUP_HISTORY_LIMIT, Qt as approveDevicePairing, Rt as clearHistoryEntriesIfEnabled, Sn as CHANNEL_MESSAGE_ACTION_NAMES, St as logTypingFailure, Tt as shouldAckReaction, U as stripMarkdown, V as hasMarkdownToConvert, Vt as recordPendingHistoryEntryIfEnabled, W as createReceiptCard, Wt as DEFAULT_WEBHOOK_BODY_TIMEOUT_MS, Xt as readRequestBodyWithLimit, Yt as readJsonBodyWithLimit, Zt as requestBodyErrorToText, _ as resolveDefaultLineAccountId, _n as formatAllowlistMatchMeta, _t as stringEnum, an as readStoreAllowFromForDmPolicy, at as autoBindSpawnedDiscordSubagent, bn as BLUEBUBBLES_ACTION_NAMES, bt as logAckFailure, cn as resolveEffectiveAllowFromLists, ct as isDangerousNameMatchingEnabled, dn as resolveAllowlistProviderRuntimeGroupPolicy, dt as formatDocsLink, en as rejectDevicePairing, et as resolveSlackChannelAllowlist, fn as resolveDefaultGroupPolicy, ft as registerAcpRuntimeBackend, g as normalizeAccountId$1, gn as registerPluginHttpRoute, gt as optionalStringEnum, h as listLineAccountIds, hn as assertOkOrThrowHttpError, ht as buildMediaPayload, in as DM_GROUP_ACCESS_REASON, it as collectDiscordAuditChannelIds, kt as mergeAllowlist, ln as resolveControlCommandGate, lt as issuePairingChallenge, mn as warnMissingProviderGroupPolicyFallbackOnce, mt as AcpRuntimeError, nn as extractToolSend, nt as resolveDiscordUserAllowlist, on as resolveDmGroupAccessWithCommandGate, ot as listThreadBindingsBySessionKey, pn as resolveOpenProviderRuntimeGroupPolicy, pt as unregisterAcpRuntimeBackend, qt as installRequestBodyLimitGuard, rn as withTempDownloadPath, rt as resolveDiscordChannelAllowlist, sn as resolveDmGroupAccessWithLists, st as unbindThreadBindingsBySessionKey, tn as createDedupeCache, tt as detectBinary, un as GROUP_POLICY_BLOCKED_LABEL, v as resolveLineAccount, vn as resolveAllowlistMatchSimple, vt as recordInboundSession, wt as removeAckReactionAfterReply, xn as BLUEBUBBLES_GROUP_ACTIONS, xt as logInboundDrop, yn as BLUEBUBBLES_ACTIONS, yt as resolveChannelMediaMaxBytes, zt as evictOldHistoryKeys } from "./reply-
|
|
1
|
+
import { $ as resolveSlackUserAllowlist, $t as listDevicePairing, At as summarizeMapping, Bt as recordPendingHistoryEntry, Ct as createTypingCallbacks, Dt as resolveMentionGating, Et as shouldAckReactionForWhatsApp, G as attachFooterText, Gt as DEFAULT_WEBHOOK_MAX_BODY_BYTES, H as processLineMessage, It as buildPendingHistoryContextFromMap, Jt as isRequestBodyLimitError, Kt as RequestBodyLimitError, Lt as clearHistoryEntries, Mt as formatInboundFromLabel, Ot as resolveMentionGatingWithBypass, Pt as DEFAULT_GROUP_HISTORY_LIMIT, Qt as approveDevicePairing, Rt as clearHistoryEntriesIfEnabled, Sn as CHANNEL_MESSAGE_ACTION_NAMES, St as logTypingFailure, Tt as shouldAckReaction, U as stripMarkdown, V as hasMarkdownToConvert, Vt as recordPendingHistoryEntryIfEnabled, W as createReceiptCard, Wt as DEFAULT_WEBHOOK_BODY_TIMEOUT_MS, Xt as readRequestBodyWithLimit, Yt as readJsonBodyWithLimit, Zt as requestBodyErrorToText, _ as resolveDefaultLineAccountId, _n as formatAllowlistMatchMeta, _t as stringEnum, an as readStoreAllowFromForDmPolicy, at as autoBindSpawnedDiscordSubagent, bn as BLUEBUBBLES_ACTION_NAMES, bt as logAckFailure, cn as resolveEffectiveAllowFromLists, ct as isDangerousNameMatchingEnabled, dn as resolveAllowlistProviderRuntimeGroupPolicy, dt as formatDocsLink, en as rejectDevicePairing, et as resolveSlackChannelAllowlist, fn as resolveDefaultGroupPolicy, ft as registerAcpRuntimeBackend, g as normalizeAccountId$1, gn as registerPluginHttpRoute, gt as optionalStringEnum, h as listLineAccountIds, hn as assertOkOrThrowHttpError, ht as buildMediaPayload, in as DM_GROUP_ACCESS_REASON, it as collectDiscordAuditChannelIds, kt as mergeAllowlist, ln as resolveControlCommandGate, lt as issuePairingChallenge, mn as warnMissingProviderGroupPolicyFallbackOnce, mt as AcpRuntimeError, nn as extractToolSend, nt as resolveDiscordUserAllowlist, on as resolveDmGroupAccessWithCommandGate, ot as listThreadBindingsBySessionKey, pn as resolveOpenProviderRuntimeGroupPolicy, pt as unregisterAcpRuntimeBackend, qt as installRequestBodyLimitGuard, rn as withTempDownloadPath, rt as resolveDiscordChannelAllowlist, sn as resolveDmGroupAccessWithLists, st as unbindThreadBindingsBySessionKey, tn as createDedupeCache, tt as detectBinary, un as GROUP_POLICY_BLOCKED_LABEL, v as resolveLineAccount, vn as resolveAllowlistMatchSimple, vt as recordInboundSession, wt as removeAckReactionAfterReply, xn as BLUEBUBBLES_GROUP_ACTIONS, xt as logInboundDrop, yn as BLUEBUBBLES_ACTIONS, yt as resolveChannelMediaMaxBytes, zt as evictOldHistoryKeys } from "./reply-39uSimjr.js";
|
|
2
2
|
import { $i as normalizeWhatsAppMessagingTarget, $o as resolveSignalAccount, Ai as listDiscordDirectoryGroupsFromConfig, Bo as isTruthyEnvValue, Bt as GroupPolicySchema, Ca as resolveWhatsAppAccount, Ct as MSTeamsConfigSchema, Ec as safeParseJson, Et as TelegramConfigSchema, Fi as listTelegramDirectoryPeersFromConfig, Go as resolveDefaultSlackAccountId, Gt as TtsConfigSchema, Ha as resolveDefaultTelegramAccountId, Ho as buildSlackThreadingToolContext, Ht as MarkdownTableModeSchema, Ii as listWhatsAppDirectoryGroupsFromConfig, It as ToolPolicySchema, Jt as normalizeAllowFrom, Ko as resolveSlackAccount, Kt as TtsModeSchema, La as formatCliCommand, Lc as stripAnsi, Li as listWhatsAppDirectoryPeersFromConfig, Lr as acquireFileLock, Lt as BlockStreamingCoalesceSchema, Mi as listSlackDirectoryGroupsFromConfig, Ni as listSlackDirectoryPeersFromConfig, Pi as listTelegramDirectoryGroupsFromConfig, Qi as normalizeWhatsAppAllowFromEntries, Qo as resolveDefaultSignalAccountId, Ri as looksLikeSlackTargetId, Rr as withFileLock, Rt as DmConfigSchema, Sa as resolveDefaultWhatsAppAccountId, Sc as pathExists, Ss as resolveThreadSessionKeys, St as IMessageConfigSchema, Ts as normalizeAccountId, Tt as SlackConfigSchema, Ua as resolveTelegramAccount, Uo as listEnabledSlackAccounts, Ut as ReplyRuntimeConfigSchemaShape, Va as listTelegramAccountIds, Vt as MarkdownConfigSchema, Wo as listSlackAccountIds, Wt as TtsAutoSchema, Xi as resolveWhatsAppMentionStripPatterns, Yi as resolveWhatsAppGroupIntroHint, Yt as requireOpenAllowFrom, Zi as looksLikeWhatsAppTargetId, Zo as listSignalAccountIds, _a as resolveTelegramGroupToolPolicy, aa as normalizeSignalMessagingTarget, bt as DiscordConfigSchema, ca as resolveDiscordGroupRequireMention, da as resolveGoogleChatGroupToolPolicy, dc as CONFIG_DIR, dl as normalizePluginHttpPath, ea as looksLikeHandleOrPhoneTarget, el as registerLogTransport, es as listIMessageAccountIds, fa as resolveIMessageGroupRequireMention, fc as clamp, fi as formatErrorMessage, fs as resolveToolsBySender, ga as resolveTelegramGroupRequireMention, gc as escapeRegExp, ha as resolveSlackGroupToolPolicy, hi as redactSensitiveText, ia as looksLikeSignalTargetId, il as getChatChannelMeta, is as listDiscordAccountIds, ji as listDiscordDirectoryPeersFromConfig, kc as sleep, la as resolveDiscordGroupToolPolicy, ma as resolveSlackGroupRequireMention, na as isWhatsAppGroupJid, ns as resolveIMessageAccount, oa as resolveBlueBubblesGroupRequireMention, os as resolveDefaultDiscordAccountId, pa as resolveIMessageGroupToolPolicy, qo as resolveSlackReplyToMode, qt as TtsProviderSchema, ra as normalizeWhatsAppTarget, rl as resolvePreferredFasedAgentTmpDir, sa as resolveBlueBubblesGroupToolPolicy, ss as resolveDiscordAccount, t as getActivePluginRegistry, ta as trimMessagingTarget, ts as resolveDefaultIMessageAccountId, ua as resolveGoogleChatGroupRequireMention, va as resolveWhatsAppGroupRequireMention, vc as isRecord, vi as extractArchive, wa as resolveWhatsAppAuthDir, ws as DEFAULT_ACCOUNT_ID, wt as SignalConfigSchema, xa as listWhatsAppAccountIds, xc as normalizeE164, xt as GoogleChatConfigSchema, ya as resolveWhatsAppGroupToolPolicy, yo as runCommandWithTimeout, yt as WhatsAppConfigSchema, zi as normalizeSlackMessagingTarget, zt as DmPolicySchema } from "./runtime-Dxpfvz83.js";
|
|
3
3
|
import "./github-copilot-token-CVC_19vl.js";
|
|
4
4
|
import { At as resolveNestedAllowlistDecision, Dt as normalizeChannelSlug, Et as buildChannelKeyCandidates, Ot as resolveChannelEntryMatch, dt as normalizeDiscordSlug, it as parseDiscordTarget, kt as resolveChannelEntryMatchWithFallback } from "./send-Des0LL0Y.js";
|
|
@@ -25,7 +25,7 @@ import "./markdown-tables-trVxBCrI.js";
|
|
|
25
25
|
import "./render-DzUFCfck.js";
|
|
26
26
|
import "./tables-DjSNh4Qx.js";
|
|
27
27
|
import { t as resolveWhatsAppOutboundTarget } from "./resolve-outbound-target-DyNIwkzd.js";
|
|
28
|
-
import { r as resolveWhatsAppHeartbeatRecipients } from "./channel-web-
|
|
28
|
+
import { r as resolveWhatsAppHeartbeatRecipients } from "./channel-web-CH4KDsdG.js";
|
|
29
29
|
import "./commands-registry-D-wBX44P.js";
|
|
30
30
|
import "./pi-model-discovery-DMqhr7U_.js";
|
|
31
31
|
import "./send-Bf5cNKV-.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as emitAgentEvent, I as onAgentEvent, J as resolveSessionKey, K as createDefaultDeps, X as setSseHeaders, Y as sendJson, Z as writeDone, a as DEFAULT_INPUT_TIMEOUT_MS, c as normalizeMimeList, d as handleGatewayPostJsonEndpoint, f as buildAgentMessageFromConversationEntries, i as DEFAULT_INPUT_MAX_REDIRECTS, l as resolveInputFileLimits, m as agentCommand, n as DEFAULT_INPUT_IMAGE_MAX_BYTES, o as extractFileContentFromSource, p as resolveAssistantStreamDeltaText, q as resolveAgentIdForRequest, r as DEFAULT_INPUT_IMAGE_MIMES, s as extractImageContentFromSource } from "./reply-
|
|
1
|
+
import { F as emitAgentEvent, I as onAgentEvent, J as resolveSessionKey, K as createDefaultDeps, X as setSseHeaders, Y as sendJson, Z as writeDone, a as DEFAULT_INPUT_TIMEOUT_MS, c as normalizeMimeList, d as handleGatewayPostJsonEndpoint, f as buildAgentMessageFromConversationEntries, i as DEFAULT_INPUT_MAX_REDIRECTS, l as resolveInputFileLimits, m as agentCommand, n as DEFAULT_INPUT_IMAGE_MAX_BYTES, o as extractFileContentFromSource, p as resolveAssistantStreamDeltaText, q as resolveAgentIdForRequest, r as DEFAULT_INPUT_IMAGE_MIMES, s as extractImageContentFromSource } from "./reply-39uSimjr.js";
|
|
2
2
|
import { To as logWarn, zc as defaultRuntime } from "./runtime-Dxpfvz83.js";
|
|
3
3
|
import "./github-copilot-token-CVC_19vl.js";
|
|
4
4
|
import "./send-Des0LL0Y.js";
|
|
@@ -2,7 +2,7 @@ import { ga as defaultRuntime, ma as logWarn } from "./context-CffBTBRN.js";
|
|
|
2
2
|
import "./github-copilot-token-BMocqO3v.js";
|
|
3
3
|
import "./send-Bv5OWFno.js";
|
|
4
4
|
import "./send-DQBK5dsc.js";
|
|
5
|
-
import { B as extractFileContentFromSource, H as normalizeMimeList, I as DEFAULT_INPUT_IMAGE_MAX_BYTES, L as DEFAULT_INPUT_IMAGE_MIMES, Q as onAgentEvent, R as DEFAULT_INPUT_MAX_REDIRECTS, U as resolveInputFileLimits, V as extractImageContentFromSource, Z as emitAgentEvent, a as buildAgentMessageFromConversationEntries, at as resolveSessionKey, ct as writeDone, i as handleGatewayPostJsonEndpoint, it as resolveAgentIdForRequest, o as resolveAssistantStreamDeltaText, ot as sendJson, rt as createDefaultDeps, s as agentCommand, st as setSseHeaders, z as DEFAULT_INPUT_TIMEOUT_MS } from "./status-
|
|
5
|
+
import { B as extractFileContentFromSource, H as normalizeMimeList, I as DEFAULT_INPUT_IMAGE_MAX_BYTES, L as DEFAULT_INPUT_IMAGE_MIMES, Q as onAgentEvent, R as DEFAULT_INPUT_MAX_REDIRECTS, U as resolveInputFileLimits, V as extractImageContentFromSource, Z as emitAgentEvent, a as buildAgentMessageFromConversationEntries, at as resolveSessionKey, ct as writeDone, i as handleGatewayPostJsonEndpoint, it as resolveAgentIdForRequest, o as resolveAssistantStreamDeltaText, ot as sendJson, rt as createDefaultDeps, s as agentCommand, st as setSseHeaders, z as DEFAULT_INPUT_TIMEOUT_MS } from "./status-CYUhk0OD.js";
|
|
6
6
|
import "./paths-aRRIE-2q.js";
|
|
7
7
|
import "./ssrf-CZsNT0Hn.js";
|
|
8
8
|
import "./reply-prefix-BGKgK2hT.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as normalizeProviderId, r as ensureAuthProfileStore } from "./registry-
|
|
1
|
+
import { n as normalizeProviderId, r as ensureAuthProfileStore } from "./registry-D1bAj51G.js";
|
|
2
2
|
import fs from "node:fs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import * as PiCodingAgent from "@mariozechner/pi-coding-agent";
|
|
@@ -4,7 +4,7 @@ import path from "node:path";
|
|
|
4
4
|
import chalk, { Chalk } from "chalk";
|
|
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 } from "node:child_process";
|
|
@@ -404,7 +404,7 @@ function readLoggingConfig() {
|
|
|
404
404
|
try {
|
|
405
405
|
if (!fs.existsSync(configPath)) return;
|
|
406
406
|
const raw = fs.readFileSync(configPath, "utf-8");
|
|
407
|
-
const logging =
|
|
407
|
+
const logging = json5.parse(raw)?.logging;
|
|
408
408
|
if (!logging || typeof logging !== "object" || Array.isArray(logging)) return;
|
|
409
409
|
return logging;
|
|
410
410
|
} catch {
|
|
@@ -3118,7 +3118,7 @@ function loadPluginManifest(rootDir) {
|
|
|
3118
3118
|
}
|
|
3119
3119
|
let raw;
|
|
3120
3120
|
try {
|
|
3121
|
-
raw =
|
|
3121
|
+
raw = json5.parse(fs.readFileSync(opened.fd, "utf-8"));
|
|
3122
3122
|
} catch (err) {
|
|
3123
3123
|
return {
|
|
3124
3124
|
ok: false,
|
|
@@ -13558,7 +13558,7 @@ const defaultResolver = {
|
|
|
13558
13558
|
resolvedPath,
|
|
13559
13559
|
rootRealDir
|
|
13560
13560
|
}),
|
|
13561
|
-
parseJson: (raw) =>
|
|
13561
|
+
parseJson: (raw) => json5.parse(raw)
|
|
13562
13562
|
};
|
|
13563
13563
|
/**
|
|
13564
13564
|
* Resolves all $include directives in a parsed config object.
|
|
@@ -20171,7 +20171,7 @@ function resolveConfigPathForDeps(deps) {
|
|
|
20171
20171
|
function normalizeDeps(overrides = {}) {
|
|
20172
20172
|
return {
|
|
20173
20173
|
fs: overrides.fs ?? fs,
|
|
20174
|
-
json5: overrides.json5 ??
|
|
20174
|
+
json5: overrides.json5 ?? json5,
|
|
20175
20175
|
env: overrides.env ?? process.env,
|
|
20176
20176
|
homedir: overrides.homedir ?? (() => resolveRequiredHomeDir(overrides.env ?? process.env, os.homedir)),
|
|
20177
20177
|
configPath: overrides.configPath ?? "",
|
|
@@ -20182,11 +20182,11 @@ function maybeLoadDotEnvForConfig(env) {
|
|
|
20182
20182
|
if (env !== process.env) return;
|
|
20183
20183
|
loadDotEnv({ quiet: true });
|
|
20184
20184
|
}
|
|
20185
|
-
function parseConfigJson5(raw, json5 =
|
|
20185
|
+
function parseConfigJson5(raw, json5$1 = json5) {
|
|
20186
20186
|
try {
|
|
20187
20187
|
return {
|
|
20188
20188
|
ok: true,
|
|
20189
|
-
parsed: json5.parse(raw)
|
|
20189
|
+
parsed: json5$1.parse(raw)
|
|
20190
20190
|
};
|
|
20191
20191
|
} catch (err) {
|
|
20192
20192
|
return {
|
|
@@ -21057,7 +21057,7 @@ async function loadContextCache() {
|
|
|
21057
21057
|
await ensureFasedModelsJson(cfg);
|
|
21058
21058
|
} catch {}
|
|
21059
21059
|
try {
|
|
21060
|
-
const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-runtime-
|
|
21060
|
+
const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-runtime-DaiqegxK.js");
|
|
21061
21061
|
const agentDir = resolveFasedAgentDir();
|
|
21062
21062
|
const modelRegistry = discoverModels(discoverAuthStorage(agentDir), agentDir);
|
|
21063
21063
|
applyDiscoveredContextWindows({
|
|
@@ -4078,7 +4078,7 @@ async function resolveDiscordUserAllowlist(params) {
|
|
|
4078
4078
|
|
|
4079
4079
|
//#endregion
|
|
4080
4080
|
//#region src/brand.ts
|
|
4081
|
-
const FASED_PRODUCT_VERSION = "0.1.
|
|
4081
|
+
const FASED_PRODUCT_VERSION = "0.1.32";
|
|
4082
4082
|
const FASED_DISPLAY_VERSION = `v${FASED_PRODUCT_VERSION}`;
|
|
4083
4083
|
|
|
4084
4084
|
//#endregion
|
|
@@ -20549,7 +20549,7 @@ function createOutboundSendDepsFromCliSource(deps) {
|
|
|
20549
20549
|
function createDefaultDeps() {
|
|
20550
20550
|
return {
|
|
20551
20551
|
sendMessageWhatsApp: async (...args) => {
|
|
20552
|
-
const { sendMessageWhatsApp } = await import("./web-
|
|
20552
|
+
const { sendMessageWhatsApp } = await import("./web-yZlgHxrL.js");
|
|
20553
20553
|
return await sendMessageWhatsApp(...args);
|
|
20554
20554
|
},
|
|
20555
20555
|
sendMessageTelegram: async (...args) => {
|
|
@@ -82837,7 +82837,7 @@ async function preflightDiscordMessage(params) {
|
|
|
82837
82837
|
let preflightTranscript;
|
|
82838
82838
|
const hasAudioAttachment = message.attachments?.some((att) => att.contentType?.startsWith("audio/"));
|
|
82839
82839
|
if (!isDirectMessage && shouldRequireMention && hasAudioAttachment && !baseText && mentionRegexes.length > 0) try {
|
|
82840
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
82840
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-BgMMXymt.js");
|
|
82841
82841
|
const audioPaths = message.attachments?.filter((att) => att.contentType?.startsWith("audio/")).map((att) => att.url) ?? [];
|
|
82842
82842
|
if (audioPaths.length > 0) preflightTranscript = await transcribeFirstAudio({
|
|
82843
82843
|
ctx: {
|
|
@@ -100666,7 +100666,7 @@ const buildTelegramMessageContext = async ({ primaryCtx, allMedia, replyMedia =
|
|
|
100666
100666
|
const hasAudio = allMedia.some((media) => media.contentType?.startsWith("audio/"));
|
|
100667
100667
|
let preflightTranscript;
|
|
100668
100668
|
if (isGroup && requireMention && hasAudio && !hasUserText && mentionRegexes.length > 0) try {
|
|
100669
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
100669
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-BgMMXymt.js");
|
|
100670
100670
|
preflightTranscript = await transcribeFirstAudio({
|
|
100671
100671
|
ctx: {
|
|
100672
100672
|
MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
|
|
@@ -103292,7 +103292,7 @@ function loadWebLoginQr() {
|
|
|
103292
103292
|
return webLoginQrPromise;
|
|
103293
103293
|
}
|
|
103294
103294
|
function loadWebChannel() {
|
|
103295
|
-
webChannelPromise ??= import("./web-
|
|
103295
|
+
webChannelPromise ??= import("./web-yZlgHxrL.js");
|
|
103296
103296
|
return webChannelPromise;
|
|
103297
103297
|
}
|
|
103298
103298
|
function loadWhatsAppActions() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const FASED_BRAND_NAME = "Fased";
|
|
2
2
|
export declare const FASED_AGENT_NAME = "Fased Agent";
|
|
3
3
|
export declare const FASED_CONTROL_NAME = "Fased Control";
|
|
4
|
-
export declare const FASED_PRODUCT_VERSION = "0.1.
|
|
5
|
-
export declare const FASED_DISPLAY_VERSION = "v0.1.
|
|
4
|
+
export declare const FASED_PRODUCT_VERSION = "0.1.32";
|
|
5
|
+
export declare const FASED_DISPLAY_VERSION = "v0.1.32";
|
|
6
6
|
export declare function formatFasedDisplayLine(): string;
|
|
@@ -17007,7 +17007,7 @@ function createOutboundSendDepsFromCliSource(deps) {
|
|
|
17007
17007
|
function createDefaultDeps() {
|
|
17008
17008
|
return {
|
|
17009
17009
|
sendMessageWhatsApp: async (...args) => {
|
|
17010
|
-
const { sendMessageWhatsApp } = await import("./web-
|
|
17010
|
+
const { sendMessageWhatsApp } = await import("./web-DfmRaZxe.js");
|
|
17011
17011
|
return await sendMessageWhatsApp(...args);
|
|
17012
17012
|
},
|
|
17013
17013
|
sendMessageTelegram: async (...args) => {
|
|
@@ -101684,7 +101684,7 @@ async function preflightDiscordMessage(params) {
|
|
|
101684
101684
|
let preflightTranscript;
|
|
101685
101685
|
const hasAudioAttachment = message.attachments?.some((att) => att.contentType?.startsWith("audio/"));
|
|
101686
101686
|
if (!isDirectMessage && shouldRequireMention && hasAudioAttachment && !baseText && mentionRegexes.length > 0) try {
|
|
101687
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
101687
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-CV14wEHo.js");
|
|
101688
101688
|
const audioPaths = message.attachments?.filter((att) => att.contentType?.startsWith("audio/")).map((att) => att.url) ?? [];
|
|
101689
101689
|
if (audioPaths.length > 0) preflightTranscript = await transcribeFirstAudio({
|
|
101690
101690
|
ctx: {
|
|
@@ -108981,7 +108981,7 @@ async function waitForTransportReady(params) {
|
|
|
108981
108981
|
|
|
108982
108982
|
//#endregion
|
|
108983
108983
|
//#region src/brand.ts
|
|
108984
|
-
const FASED_PRODUCT_VERSION = "0.1.
|
|
108984
|
+
const FASED_PRODUCT_VERSION = "0.1.32";
|
|
108985
108985
|
const FASED_DISPLAY_VERSION = `v${FASED_PRODUCT_VERSION}`;
|
|
108986
108986
|
|
|
108987
108987
|
//#endregion
|
|
@@ -118604,7 +118604,7 @@ const buildTelegramMessageContext = async ({ primaryCtx, allMedia, replyMedia =
|
|
|
118604
118604
|
const hasAudio = allMedia.some((media) => media.contentType?.startsWith("audio/"));
|
|
118605
118605
|
let preflightTranscript;
|
|
118606
118606
|
if (isGroup && requireMention && hasAudio && !hasUserText && mentionRegexes.length > 0) try {
|
|
118607
|
-
const { transcribeFirstAudio } = await import("./audio-preflight-
|
|
118607
|
+
const { transcribeFirstAudio } = await import("./audio-preflight-CV14wEHo.js");
|
|
118608
118608
|
preflightTranscript = await transcribeFirstAudio({
|
|
118609
118609
|
ctx: {
|
|
118610
118610
|
MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
|
|
@@ -121230,7 +121230,7 @@ function loadWebLoginQr() {
|
|
|
121230
121230
|
return webLoginQrPromise;
|
|
121231
121231
|
}
|
|
121232
121232
|
function loadWebChannel() {
|
|
121233
|
-
webChannelPromise ??= import("./web-
|
|
121233
|
+
webChannelPromise ??= import("./web-DfmRaZxe.js");
|
|
121234
121234
|
return webChannelPromise;
|
|
121235
121235
|
}
|
|
121236
121236
|
function loadWhatsAppActions() {
|
|
@@ -2,7 +2,7 @@ import { $a as normalizeAgentId, $r as resolveStorePath, Di as formatCliCommand,
|
|
|
2
2
|
import "./github-copilot-token-BMocqO3v.js";
|
|
3
3
|
import "./send-Bv5OWFno.js";
|
|
4
4
|
import "./send-DQBK5dsc.js";
|
|
5
|
-
import { $ as normalizeGroupActivation, D as resolveEnvelopeFormatOptions, E as formatInboundEnvelope, G as hasControlCommand, J as normalizeMentionText, K as shouldComputeCommandAuthorized, O as createDedupeCache, S as dispatchReplyWithBufferedBlockDispatcher, T as resolveInboundDebounceMs, Y as registerUnhandledRejectionHandler, _ as warnMissingProviderGroupPolicyFallbackOnce, b as resolveDmGroupAccessWithLists, c as computeBackoff, d as resolveMentionGating, et as parseActivationCommand, f as DEFAULT_GROUP_HISTORY_LIMIT, g as resolveOpenProviderRuntimeGroupPolicy, h as resolveDefaultGroupPolicy, k as getReplyFromConfig, l as sleepWithAbort, m as recordPendingHistoryEntryIfEnabled, nt as enqueueSystemEvent, p as buildHistoryContextFromEntries, q as buildMentionRegexes, tt as formatDurationPrecise, u as buildPairingReply, v as readStoreAllowFromForDmPolicy, w as createInboundDebouncer, x as shouldAckReactionForWhatsApp, y as resolveDmGroupAccessWithCommandGate } from "./status-
|
|
5
|
+
import { $ as normalizeGroupActivation, D as resolveEnvelopeFormatOptions, E as formatInboundEnvelope, G as hasControlCommand, J as normalizeMentionText, K as shouldComputeCommandAuthorized, O as createDedupeCache, S as dispatchReplyWithBufferedBlockDispatcher, T as resolveInboundDebounceMs, Y as registerUnhandledRejectionHandler, _ as warnMissingProviderGroupPolicyFallbackOnce, b as resolveDmGroupAccessWithLists, c as computeBackoff, d as resolveMentionGating, et as parseActivationCommand, f as DEFAULT_GROUP_HISTORY_LIMIT, g as resolveOpenProviderRuntimeGroupPolicy, h as resolveDefaultGroupPolicy, k as getReplyFromConfig, l as sleepWithAbort, m as recordPendingHistoryEntryIfEnabled, nt as enqueueSystemEvent, p as buildHistoryContextFromEntries, q as buildMentionRegexes, tt as formatDurationPrecise, u as buildPairingReply, v as readStoreAllowFromForDmPolicy, w as createInboundDebouncer, x as shouldAckReactionForWhatsApp, y as resolveDmGroupAccessWithCommandGate } from "./status-CYUhk0OD.js";
|
|
6
6
|
import "./paths-aRRIE-2q.js";
|
|
7
7
|
import "./ssrf-CZsNT0Hn.js";
|
|
8
8
|
import { n as redactSensitiveUrlLikeString } from "./redact-sensitive-url-C_6JDrWW.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./reply-
|
|
1
|
+
import "./reply-39uSimjr.js";
|
|
2
2
|
import { Aa as pickWebChannel, Da as logWebSelfId, Ia as webAuthExists, Ta as WA_WEB_AUTH_DIR } from "./runtime-Dxpfvz83.js";
|
|
3
3
|
import "./github-copilot-token-CVC_19vl.js";
|
|
4
4
|
import "./send-Des0LL0Y.js";
|
|
@@ -22,7 +22,7 @@ import "./channel-activity-NWX3LiLh.js";
|
|
|
22
22
|
import "./markdown-tables-trVxBCrI.js";
|
|
23
23
|
import "./render-DzUFCfck.js";
|
|
24
24
|
import "./tables-DjSNh4Qx.js";
|
|
25
|
-
import { n as monitorWebInbox, t as monitorWebChannel } from "./channel-web-
|
|
25
|
+
import { n as monitorWebInbox, t as monitorWebChannel } from "./channel-web-CH4KDsdG.js";
|
|
26
26
|
import "./commands-registry-D-wBX44P.js";
|
|
27
27
|
import "./pi-model-discovery-DMqhr7U_.js";
|
|
28
28
|
import "./send-Bf5cNKV-.js";
|
|
@@ -2,7 +2,7 @@ import { _ as resolveStateDir } from "./paths-C9FmTW1x.js";
|
|
|
2
2
|
import { S as resolveUserPath, T as shortenHomePath, U as theme, w as shortenHomeInString, y as resolveConfigDir } from "./agent-paths-DmOVZE7g.js";
|
|
3
3
|
import { Dn as loadConfig, Mn as writeConfigFile, Tl as installPluginFromPath, fo as resolveBundledPluginsDir, lu as resolveArchiveKind, wl as installPluginFromNpmSpec } from "./agent-scope-CrCe9L5D.js";
|
|
4
4
|
import "./commands-registry-yEHQnayd.js";
|
|
5
|
-
import { rs as promptYesNo } from "./reply-
|
|
5
|
+
import { rs as promptYesNo } from "./reply-CScH11Id.js";
|
|
6
6
|
import { d as defaultRuntime } from "./errors-Dx3S3Nrp.js";
|
|
7
7
|
import "./send-Dbz4ciHO.js";
|
|
8
8
|
import "./send-BdbzQtpU.js";
|
|
@@ -37,7 +37,7 @@ import "./ssrf-Blf4NrHS.js";
|
|
|
37
37
|
import "./outbound-attachment-CWs_0-GB.js";
|
|
38
38
|
import "./fetch-C7U6zkCW.js";
|
|
39
39
|
import "./delivery-queue-D3PC9MW-.js";
|
|
40
|
-
import "./deps-
|
|
40
|
+
import "./deps-Dt_C-sk6.js";
|
|
41
41
|
import "./memory-_djkFopW.js";
|
|
42
42
|
import "./memory-search-DooAj6Eu.js";
|
|
43
43
|
import "./manager-bJh9XOLh.js";
|
|
@@ -79,10 +79,10 @@ import "./pairing-labels-v1JixmOK.js";
|
|
|
79
79
|
import { t as renderTable } from "./table-BMmOL0ek.js";
|
|
80
80
|
import { n as setPluginEnabledInConfig, t as enablePluginInConfig } from "./enable-BkfuwL4G.js";
|
|
81
81
|
import "./installs-8bxu3Tg4.js";
|
|
82
|
-
import { t as buildPluginStatusReport } from "./status-
|
|
82
|
+
import { t as buildPluginStatusReport } from "./status-B5Csdh6E.js";
|
|
83
83
|
import { r as findBundledPluginByNpmSpec } from "./update-DSvuG3PT.js";
|
|
84
|
-
import { a as executePluginUpdateLifecycle, i as executePluginUninstallLifecycle, n as buildPluginLifecycleReport, o as finalizeInstalledPluginConfig, r as buildPluginUninstallPreview, s as resolvePluginLifecycleEntry, t as applySlotSelectionForPlugin } from "./lifecycle-
|
|
85
|
-
import { i as buildPluginMarketplaceReport, o as buildPluginMarketplaceUpdateReview, r as setPluginRuntimeSessionReadGrant, s as formatPluginMarketplaceUpdateReviewWarnings, t as getPluginRuntimeSessionReadGrant } from "./runtime-helper-grants-
|
|
84
|
+
import { a as executePluginUpdateLifecycle, i as executePluginUninstallLifecycle, n as buildPluginLifecycleReport, o as finalizeInstalledPluginConfig, r as buildPluginUninstallPreview, s as resolvePluginLifecycleEntry, t as applySlotSelectionForPlugin } from "./lifecycle-Bi6-UGGr.js";
|
|
85
|
+
import { i as buildPluginMarketplaceReport, o as buildPluginMarketplaceUpdateReview, r as setPluginRuntimeSessionReadGrant, s as formatPluginMarketplaceUpdateReviewWarnings, t as getPluginRuntimeSessionReadGrant } from "./runtime-helper-grants-DuYqyaEM.js";
|
|
86
86
|
import { n as resolvePinnedNpmInstallRecordForCli } from "./npm-resolution-BrUQDWLg.js";
|
|
87
87
|
import fs from "node:fs";
|
|
88
88
|
import os from "node:os";
|