@noxsoft/anima 3.0.1 → 3.0.2
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/{acp-cli-PhWp41mc.js → acp-cli-CHsShBeX.js} +2 -2
- package/dist/{agent-DvWSUuKy.js → agent-rY3gCqJE.js} +1 -1
- package/dist/{audit-Cm50mcVm.js → audit-B_3ewOwt.js} +3 -3
- package/dist/build-info.json +3 -3
- package/dist/{call-C0Yk2qNb.js → call-BBzfZU0_.js} +1 -1
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-web-Co4IvTdB.js → channel-web-BBctXTmi.js} +5 -5
- package/dist/{chrome-_87P03u5.js → chrome-CVfcErE4.js} +7 -7
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-BkI8EYn3.js → cli-B2StCcqh.js} +9 -9
- package/dist/{client-BM5PkIwQ.js → client-oEG5cM5Q.js} +3 -3
- package/dist/{completion-cli-BB3_g8w5.js → completion-cli-D3yIDiMz.js} +1 -1
- package/dist/{config-cli-DCNRWoyW.js → config-cli-DgXOXMb_.js} +1 -1
- package/dist/{configure-CkmVabju.js → configure-8QclXvjE.js} +3 -3
- package/dist/{control-service-BpEnt1xS.js → control-service-DptjbgYI.js} +3 -3
- package/dist/{cron-cli-BT0i4_jA.js → cron-cli-CpzhiW5t.js} +3 -3
- package/dist/{daemon-cli-DlHFi5Gm.js → daemon-cli-CV9nly9k.js} +2 -2
- package/dist/{deps-DoPMG4GI.js → deps-DcinYE4_.js} +1 -1
- package/dist/{dispatcher-wmQlHNsm.js → dispatcher-CiJKNMU3.js} +1 -1
- package/dist/{doctor-C3foAiuj.js → doctor-DR7CLoAy.js} +6 -6
- package/dist/{doctor-completion-VtjYTwcS.js → doctor-completion-Dend-SU1.js} +1 -1
- package/dist/{exec-approvals-cli-CAwe3fFV.js → exec-approvals-cli-ESNXHzjZ.js} +3 -3
- package/dist/{gateway-cli-BKmCrkp2.js → gateway-cli-BMOKBWwi.js} +25 -25
- package/dist/{gateway-rpc-elmeRwyu.js → gateway-rpc-hgK9OB-O.js} +1 -1
- package/dist/{health-Cb_2WS_Z.js → health-CH8yZB2L.js} +3 -3
- package/dist/{hooks-cli-BkaD_Vnq.js → hooks-cli-DBAcPJTk.js} +10 -10
- package/dist/index.js +17 -17
- package/dist/{login-CBsXoiD_.js → login-Bdyk0es6.js} +1 -1
- package/dist/{login-qr-aHN20jEV.js → login-qr-DQS-8_PV.js} +1 -1
- package/dist/{logs-cli-DbdMIph-.js → logs-cli-VAcUvvxS.js} +3 -3
- package/dist/{node-cli-Bcrlhaq3.js → node-cli-BujxFy1-.js} +6 -6
- package/dist/{onboard-5GREpC8E.js → onboard-DHlStqHP.js} +3 -3
- package/dist/{onboard-channels-CuDv5j-L.js → onboard-channels-BQ5lwRDU.js} +1 -1
- package/dist/{onboard-helpers-CMW6MSXA.js → onboard-helpers-K7wUCSoE.js} +1 -1
- package/dist/{onboarding-B_Gs5W53.js → onboarding-BappVKxE.js} +5 -5
- package/dist/{plugin-registry-CIluPn2C.js → plugin-registry-BsdLXCVX.js} +1 -1
- package/dist/{plugins-cli-CgSDRx-C.js → plugins-cli-OPa7o4qd.js} +10 -10
- package/dist/{program-context-r2WimvLs.js → program-context-DYdCPzyt.js} +23 -23
- package/dist/{pw-ai-ycVS073z.js → pw-ai-Rz1I4vvf.js} +1 -1
- package/dist/{register.agent-BCbrZgZT.js → register.agent-CzQfwzdi.js} +13 -13
- package/dist/{register.configure-CM8ScF9N.js → register.configure-ChWH2Kph.js} +13 -13
- package/dist/{register.maintenance-B15nWIhc.js → register.maintenance-Da29S58I.js} +16 -16
- package/dist/{register.onboard-k9Rd9qzS.js → register.onboard-BBqM-ETs.js} +17 -17
- package/dist/{register.setup-CN1yxMOl.js → register.setup-Bc3Xk--Q.js} +17 -17
- package/dist/{register.status-health-sessions-CNUs9w8v.js → register.status-health-sessions-BsGFhOsG.js} +13 -13
- package/dist/{reply-BJ3jrefM.js → reply-B5IU75jY.js} +12 -12
- package/dist/{reply-prefix-DBJU0o4f.js → reply-prefix-B90kjTag.js} +2 -2
- package/dist/{routes-CNqS9gOj.js → routes-D7OuiEUz.js} +2 -2
- package/dist/{sandbox-cli-BsMjNBFN.js → sandbox-cli-CRzBRQ9r.js} +3 -3
- package/dist/{security-cli-pupt3tx1.js → security-cli-CVkFh9a9.js} +6 -6
- package/dist/{server-context-CcPmRFx_.js → server-context-CHGGYs6i.js} +4 -4
- package/dist/{server-node-events-DNDwVJH_.js → server-node-events-DMEsGLU8.js} +5 -5
- package/dist/{session-D53RZP3i.js → session-BpAyGjL3.js} +6 -6
- package/dist/{status-DNUP2mgR.js → status-CHuLEuXT.js} +5 -5
- package/dist/{status-DYGeQK4c.js → status-CTYln2fY.js} +1 -1
- package/dist/{subagent-registry-D4idxv3D.js → subagent-registry-jwfG4kCT.js} +1 -1
- package/dist/{system-cli-BNhplLHn.js → system-cli-C8kg1fwg.js} +3 -3
- package/dist/{tui-dHcni7fC.js → tui-DBbVe-hW.js} +2 -2
- package/dist/{tui-cli-ByERfWnP.js → tui-cli-CypnMid4.js} +6 -6
- package/dist/{update-cli-D7SyNIoQ.js → update-cli-D-QvSeu0.js} +17 -17
- package/dist/{update-runner-DeNUEGyr.js → update-runner-B-JShOyr.js} +1 -1
- package/dist/{web-DyUoZrMO.js → web-EevNfpKp.js} +13 -13
- package/package.json +1 -1
|
@@ -11,8 +11,8 @@ import "./shell-env-SbFYz02H.js";
|
|
|
11
11
|
import "./manifest-registry-DLouWVJe.js";
|
|
12
12
|
import { i as resolveGatewayAuth } from "./auth-B8ry4GB_.js";
|
|
13
13
|
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-BbkwF58_.js";
|
|
14
|
-
import { t as GatewayClient } from "./client-
|
|
15
|
-
import { t as buildGatewayConnectionDetails } from "./call-
|
|
14
|
+
import { t as GatewayClient } from "./client-oEG5cM5Q.js";
|
|
15
|
+
import { t as buildGatewayConnectionDetails } from "./call-BBzfZU0_.js";
|
|
16
16
|
import { t as formatDocsLink } from "./links-NgE0SEVZ.js";
|
|
17
17
|
import { t as isMainModule } from "./is-main-cB3p7uob.js";
|
|
18
18
|
import { t as ensureAnimaCliOnPath } from "./path-env-BO3_pVlb.js";
|
|
@@ -15,7 +15,7 @@ import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-CFb1gJ
|
|
|
15
15
|
import { c as resolveStorePath, n as resolveSessionFilePath } from "./paths-CqMZNi-M.js";
|
|
16
16
|
import { a as normalizeOutboundPayloadsForJson, i as normalizeOutboundPayloads, r as formatOutboundPayloadLog, t as deliverOutboundPayloads } from "./deliver-tQREYhAr.js";
|
|
17
17
|
import { a as deriveSessionTotalTokens, o as hasNonzeroUsage } from "./transcript-tools-CE-YeWdO.js";
|
|
18
|
-
import { t as createDefaultDeps } from "./deps-
|
|
18
|
+
import { t as createDefaultDeps } from "./deps-DcinYE4_.js";
|
|
19
19
|
import crypto from "node:crypto";
|
|
20
20
|
|
|
21
21
|
//#region src/cli/outbound-send-deps.ts
|
|
@@ -8,13 +8,13 @@ import { n as formatErrorMessage } from "./errors-DjZBTJJ3.js";
|
|
|
8
8
|
import { t as formatCliCommand } from "./command-format-B1WxXbeU.js";
|
|
9
9
|
import { _ as resolveToolProfilePolicy, c as resolveSandboxConfigForAgent, u as resolveSandboxToolPolicyForAgent } from "./sandbox-wL61f1WP.js";
|
|
10
10
|
import { i as resolveGatewayAuth } from "./auth-B8ry4GB_.js";
|
|
11
|
-
import { a as resolveBrowserConfig, h as resolveBrowserControlAuth, o as resolveProfile } from "./server-context-
|
|
11
|
+
import { a as resolveBrowserConfig, h as resolveBrowserControlAuth, o as resolveProfile } from "./server-context-CHGGYs6i.js";
|
|
12
12
|
import { i as loadWorkspaceSkillEntries } from "./skills-DsdcfeyV.js";
|
|
13
13
|
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-BbkwF58_.js";
|
|
14
14
|
import { n as listChannelPlugins, r as normalizeChannelId } from "./plugins-CFb1gJ4N.js";
|
|
15
15
|
import { l as readChannelAllowFromStore, n as isToolAllowedByPolicies } from "./pi-tools.policy-BoWzLBtH.js";
|
|
16
|
-
import { t as GatewayClient } from "./client-
|
|
17
|
-
import { t as buildGatewayConnectionDetails } from "./call-
|
|
16
|
+
import { t as GatewayClient } from "./client-oEG5cM5Q.js";
|
|
17
|
+
import { t as buildGatewayConnectionDetails } from "./call-BBzfZU0_.js";
|
|
18
18
|
import { n as DEFAULT_GATEWAY_HTTP_TOOL_DENY } from "./dangerous-tools-C7Q_csTW.js";
|
|
19
19
|
import { t as resolveChannelDefaultAccountId } from "./helpers-13ojLRv8.js";
|
|
20
20
|
import { n as extensionUsesSkippedScannerPath, r as isPathInside, t as scanDirectoryWithSummary } from "./skill-scanner-BA9Rv4AE.js";
|
package/dist/build-info.json
CHANGED
|
@@ -4,7 +4,7 @@ import { i as loadConfig } from "./config-9JRRXykP.js";
|
|
|
4
4
|
import { t as pickPrimaryTailnetIPv4 } from "./tailnet-BuAkHZAk.js";
|
|
5
5
|
import { c as pickPrimaryLanIPv4 } from "./ws-ebl3urqL.js";
|
|
6
6
|
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-BbkwF58_.js";
|
|
7
|
-
import { Dt as PROTOCOL_VERSION, Ft as loadOrCreateDeviceIdentity, Nt as normalizeFingerprint, t as GatewayClient } from "./client-
|
|
7
|
+
import { Dt as PROTOCOL_VERSION, Ft as loadOrCreateDeviceIdentity, Nt as normalizeFingerprint, t as GatewayClient } from "./client-oEG5cM5Q.js";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import fs from "node:fs/promises";
|
|
10
10
|
import { execFile } from "node:child_process";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
9ed09ad1664dc1fe854523f41eff090ca7bb829a59145a38e0cd3af0c07dda73
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { F as shouldLogVerbose, M as logVerbose, V as getChildLogger, t as createSubsystemLogger, u as defaultRuntime } from "./subsystem-BaJ-PqmA.js";
|
|
2
2
|
import { E as toWhatsappJid, h as normalizeE164, m as jidToE164, p as isSelfChatMode, r as clamp, w as sleep, y as resolveJidToE164 } from "./utils-RdHkpqQp.js";
|
|
3
|
-
import { H as resolveMessagePrefix, V as resolveIdentityNamePrefix } from "./subagent-registry-
|
|
4
|
-
import { $ as recordChannelActivity, Ct as registerUnhandledRejectionHandler, J as resolveAgentRoute, Z as buildPairingReply, at as createDedupeCache, bt as buildMentionRegexes, ct as formatInboundEnvelope, d as parseActivationCommand, dt as shouldComputeCommandAuthorized, et as shouldAckReactionForWhatsApp, lt as resolveEnvelopeFormatOptions, ot as createInboundDebouncer, q as buildAgentSessionKey, st as resolveInboundDebounceMs, t as getReplyFromConfig, tt as dispatchReplyWithBufferedBlockDispatcher, u as normalizeGroupActivation, ut as hasControlCommand, xt as normalizeMentionText, zt as finalizeInboundContext } from "./reply-
|
|
3
|
+
import { H as resolveMessagePrefix, V as resolveIdentityNamePrefix } from "./subagent-registry-jwfG4kCT.js";
|
|
4
|
+
import { $ as recordChannelActivity, Ct as registerUnhandledRejectionHandler, J as resolveAgentRoute, Z as buildPairingReply, at as createDedupeCache, bt as buildMentionRegexes, ct as formatInboundEnvelope, d as parseActivationCommand, dt as shouldComputeCommandAuthorized, et as shouldAckReactionForWhatsApp, lt as resolveEnvelopeFormatOptions, ot as createInboundDebouncer, q as buildAgentSessionKey, st as resolveInboundDebounceMs, t as getReplyFromConfig, tt as dispatchReplyWithBufferedBlockDispatcher, u as normalizeGroupActivation, ut as hasControlCommand, xt as normalizeMentionText, zt as finalizeInboundContext } from "./reply-B5IU75jY.js";
|
|
5
5
|
import { i as buildAgentMainSessionKey, l as normalizeAgentId, o as buildGroupHistoryKey, r as DEFAULT_MAIN_KEY } from "./session-key-DxcgHezu.js";
|
|
6
6
|
import { i as loadConfig } from "./config-9JRRXykP.js";
|
|
7
7
|
import { P as resolveGroupSessionKey, a as readSessionUpdatedAt, c as updateLastRoute, i as loadSessionStore, o as recordSessionMetaFromInbound } from "./sessions-0J_pFd44.js";
|
|
8
8
|
import { c as resolveMarkdownTableMode, o as setActiveWebListener, r as loadWebMedia, s as convertMarkdownTables } from "./polls-vAdf9owY.js";
|
|
9
9
|
import { t as formatCliCommand } from "./command-format-B1WxXbeU.js";
|
|
10
10
|
import { Kt as enqueueSystemEvent } from "./cli-session-CIhvoVRb.js";
|
|
11
|
-
import { r as saveMediaBuffer } from "./routes-
|
|
11
|
+
import { r as saveMediaBuffer } from "./routes-D7OuiEUz.js";
|
|
12
12
|
import { c as resolveStorePath } from "./paths-CqMZNi-M.js";
|
|
13
13
|
import { c as resolveTextChunkLimit, i as chunkMarkdownTextWithMode, s as resolveChunkMode } from "./chunk-DprzQA5H.js";
|
|
14
14
|
import { d as upsertChannelPairingRequest, l as readChannelAllowFromStore, o as resolveChannelGroupPolicy, s as resolveChannelGroupRequireMention } from "./pi-tools.policy-BoWzLBtH.js";
|
|
15
15
|
import { r as formatDurationPrecise } from "./format-duration-DduItW4_.js";
|
|
16
16
|
import { c as readWebSelfId, n as getWebAuthAgeMs } from "./auth-store-DWgI4Vj8.js";
|
|
17
17
|
import { i as markdownToWhatsApp, r as sendReactionWhatsApp } from "./outbound-CwCRq4Cg.js";
|
|
18
|
-
import { a as downloadMediaMessage, c as normalizeMessageContent, i as waitForWaConnection, l as isJidGroup, n as formatError, o as extractMessageContent, r as getStatusCode, s as getContentType, t as createWaSocket, u as DisconnectReason } from "./session-
|
|
19
|
-
import { i as recordPendingHistoryEntryIfEnabled, n as DEFAULT_GROUP_HISTORY_LIMIT, r as buildHistoryContextFromEntries, t as createReplyPrefixOptions } from "./reply-prefix-
|
|
18
|
+
import { a as downloadMediaMessage, c as normalizeMessageContent, i as waitForWaConnection, l as isJidGroup, n as formatError, o as extractMessageContent, r as getStatusCode, s as getContentType, t as createWaSocket, u as DisconnectReason } from "./session-BpAyGjL3.js";
|
|
19
|
+
import { i as recordPendingHistoryEntryIfEnabled, n as DEFAULT_GROUP_HISTORY_LIMIT, r as buildHistoryContextFromEntries, t as createReplyPrefixOptions } from "./reply-prefix-B90kjTag.js";
|
|
20
20
|
import { n as resolveWhatsAppAccount } from "./accounts-C9dcy8Gp.js";
|
|
21
21
|
import { randomUUID } from "node:crypto";
|
|
22
22
|
import { setTimeout } from "node:timers/promises";
|
|
@@ -8,7 +8,7 @@ import path from "node:path";
|
|
|
8
8
|
import { execFileSync, spawn } from "node:child_process";
|
|
9
9
|
import { randomBytes } from "node:crypto";
|
|
10
10
|
import { createServer } from "node:http";
|
|
11
|
-
import WebSocket
|
|
11
|
+
import WebSocket, { WebSocketServer } from "ws";
|
|
12
12
|
|
|
13
13
|
//#region src/browser/constants.ts
|
|
14
14
|
const DEFAULT_ANIMA_BROWSER_ENABLED = true;
|
|
@@ -88,7 +88,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
88
88
|
let nextExtensionId = 1;
|
|
89
89
|
const sendToExtension = async (payload) => {
|
|
90
90
|
const ws = extensionWs;
|
|
91
|
-
if (!ws || ws.readyState !== WebSocket
|
|
91
|
+
if (!ws || ws.readyState !== WebSocket.OPEN) throw new Error("Chrome extension not connected");
|
|
92
92
|
ws.send(JSON.stringify(payload));
|
|
93
93
|
return await new Promise((resolve, reject) => {
|
|
94
94
|
const timer = setTimeout(() => {
|
|
@@ -105,12 +105,12 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
105
105
|
const broadcastToCdpClients = (evt) => {
|
|
106
106
|
const msg = JSON.stringify(evt);
|
|
107
107
|
for (const ws of cdpClients) {
|
|
108
|
-
if (ws.readyState !== WebSocket
|
|
108
|
+
if (ws.readyState !== WebSocket.OPEN) continue;
|
|
109
109
|
ws.send(msg);
|
|
110
110
|
}
|
|
111
111
|
};
|
|
112
112
|
const sendResponseToCdp = (ws, res) => {
|
|
113
|
-
if (ws.readyState !== WebSocket
|
|
113
|
+
if (ws.readyState !== WebSocket.OPEN) return;
|
|
114
114
|
ws.send(JSON.stringify(res));
|
|
115
115
|
};
|
|
116
116
|
const ensureTargetEventsForClient = (ws, mode) => {
|
|
@@ -330,7 +330,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
330
330
|
wssExtension.on("connection", (ws) => {
|
|
331
331
|
extensionWs = ws;
|
|
332
332
|
const ping = setInterval(() => {
|
|
333
|
-
if (ws.readyState !== WebSocket
|
|
333
|
+
if (ws.readyState !== WebSocket.OPEN) return;
|
|
334
334
|
ws.send(JSON.stringify({ method: "ping" }));
|
|
335
335
|
}, 5e3);
|
|
336
336
|
ws.on("message", (data) => {
|
|
@@ -627,7 +627,7 @@ async function fetchJson(url, timeoutMs = 1500, init) {
|
|
|
627
627
|
}
|
|
628
628
|
async function withCdpSocket(wsUrl, fn, opts) {
|
|
629
629
|
const headers = getHeadersWithAuth(wsUrl, opts?.headers ?? {});
|
|
630
|
-
const ws = new WebSocket
|
|
630
|
+
const ws = new WebSocket(wsUrl, {
|
|
631
631
|
handshakeTimeout: typeof opts?.handshakeTimeoutMs === "number" && Number.isFinite(opts.handshakeTimeoutMs) ? Math.max(1, Math.floor(opts.handshakeTimeoutMs)) : 5e3,
|
|
632
632
|
...Object.keys(headers).length ? { headers } : {}
|
|
633
633
|
});
|
|
@@ -1455,7 +1455,7 @@ async function getChromeWebSocketUrl(cdpUrl, timeoutMs = 500) {
|
|
|
1455
1455
|
async function canOpenWebSocket(wsUrl, timeoutMs = 800) {
|
|
1456
1456
|
return await new Promise((resolve) => {
|
|
1457
1457
|
const headers = getHeadersWithAuth(wsUrl);
|
|
1458
|
-
const ws = new WebSocket
|
|
1458
|
+
const ws = new WebSocket(wsUrl, {
|
|
1459
1459
|
handshakeTimeout: timeoutMs,
|
|
1460
1460
|
...Object.keys(headers).length ? { headers } : {}
|
|
1461
1461
|
});
|
package/dist/cli/daemon-cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Legacy shim for pre-tsdown update-cli imports.
|
|
2
|
-
import * as daemonCli from "../daemon-cli-
|
|
2
|
+
import * as daemonCli from "../daemon-cli-CV9nly9k.js";
|
|
3
3
|
export const registerDaemonCli = daemonCli.t.registerDaemonCli;
|
|
4
4
|
export const runDaemonInstall = async () => { throw new Error("Legacy daemon CLI export \"runDaemonInstall\" is unavailable in this build. Please upgrade Anima."); };
|
|
5
5
|
export const runDaemonRestart = daemonCli.r;
|
|
@@ -2,8 +2,8 @@ import "./paths-zhVksOvm.js";
|
|
|
2
2
|
import { t as createSubsystemLogger } from "./subsystem-BaJ-PqmA.js";
|
|
3
3
|
import "./utils-RdHkpqQp.js";
|
|
4
4
|
import "./pi-embedded-helpers-6Tb87sgU.js";
|
|
5
|
-
import "./subagent-registry-
|
|
6
|
-
import { K as loadAnimaPlugins } from "./reply-
|
|
5
|
+
import "./subagent-registry-jwfG4kCT.js";
|
|
6
|
+
import { K as loadAnimaPlugins } from "./reply-B5IU75jY.js";
|
|
7
7
|
import "./exec-Bsq6vlwp.js";
|
|
8
8
|
import { c as resolveDefaultAgentId, s as resolveAgentWorkspaceDir } from "./agent-scope-vpVhWds3.js";
|
|
9
9
|
import "./model-selection-C2dz3AhV.js";
|
|
@@ -22,11 +22,11 @@ import "./model-auth-DUHamQTz.js";
|
|
|
22
22
|
import "./cli-session-CIhvoVRb.js";
|
|
23
23
|
import "./tokens-BLOye_TP.js";
|
|
24
24
|
import "./sandbox-wL61f1WP.js";
|
|
25
|
-
import "./chrome-
|
|
25
|
+
import "./chrome-CVfcErE4.js";
|
|
26
26
|
import "./auth-B8ry4GB_.js";
|
|
27
|
-
import "./server-context-
|
|
27
|
+
import "./server-context-CHGGYs6i.js";
|
|
28
28
|
import "./skills-DsdcfeyV.js";
|
|
29
|
-
import "./routes-
|
|
29
|
+
import "./routes-D7OuiEUz.js";
|
|
30
30
|
import "./ports-CmAt9mb6.js";
|
|
31
31
|
import "./message-channel-BbkwF58_.js";
|
|
32
32
|
import "./plugins-CFb1gJ4N.js";
|
|
@@ -36,8 +36,8 @@ import "./parse-timeout-qnHqZvCW.js";
|
|
|
36
36
|
import "./chunk-DprzQA5H.js";
|
|
37
37
|
import "./deliver-tQREYhAr.js";
|
|
38
38
|
import "./pi-tools.policy-BoWzLBtH.js";
|
|
39
|
-
import "./client-
|
|
40
|
-
import "./call-
|
|
39
|
+
import "./client-oEG5cM5Q.js";
|
|
40
|
+
import "./call-BBzfZU0_.js";
|
|
41
41
|
import "./memory-cli-CDMb58Y3.js";
|
|
42
42
|
import "./manager-1ZMunRXe.js";
|
|
43
43
|
import "./sqlite-EkbWHNXu.js";
|
|
@@ -51,8 +51,8 @@ import "./links-NgE0SEVZ.js";
|
|
|
51
51
|
import "./progress-gdB4V88Q.js";
|
|
52
52
|
import "./logging-1vypRz8h.js";
|
|
53
53
|
import "./auth-store-DWgI4Vj8.js";
|
|
54
|
-
import "./control-service-
|
|
55
|
-
import "./dispatcher-
|
|
54
|
+
import "./control-service-DptjbgYI.js";
|
|
55
|
+
import "./dispatcher-CiJKNMU3.js";
|
|
56
56
|
import "./pi-model-discovery-HH8RvApN.js";
|
|
57
57
|
import "./delivery-queue-CdUtwMZr.js";
|
|
58
58
|
import "./session-cost-usage-CYdqhmt6.js";
|
|
@@ -7,7 +7,7 @@ import fs from "node:fs";
|
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import crypto, { randomUUID } from "node:crypto";
|
|
9
9
|
import AjvPkg from "ajv";
|
|
10
|
-
import { WebSocket } from "ws";
|
|
10
|
+
import { WebSocket as WebSocket$1 } from "ws";
|
|
11
11
|
import { Type } from "@sinclair/typebox";
|
|
12
12
|
|
|
13
13
|
//#region src/infra/device-identity.ts
|
|
@@ -1463,7 +1463,7 @@ var GatewayClient = class {
|
|
|
1463
1463
|
if (fingerprint !== expected) return /* @__PURE__ */ new Error("ANIMA Gateway TLS fingerprint mismatch");
|
|
1464
1464
|
});
|
|
1465
1465
|
}
|
|
1466
|
-
this.ws = new WebSocket(url, wsOptions);
|
|
1466
|
+
this.ws = new WebSocket$1(url, wsOptions);
|
|
1467
1467
|
this.ws.on("open", () => {
|
|
1468
1468
|
if (url.startsWith("wss://") && this.opts.tlsFingerprint) {
|
|
1469
1469
|
const tlsError = this.validateTlsFingerprint();
|
|
@@ -1666,7 +1666,7 @@ var GatewayClient = class {
|
|
|
1666
1666
|
return null;
|
|
1667
1667
|
}
|
|
1668
1668
|
async request(method, params, opts) {
|
|
1669
|
-
if (!this.ws || this.ws.readyState !== WebSocket.OPEN) throw new Error("ANIMA Gateway not connected");
|
|
1669
|
+
if (!this.ws || this.ws.readyState !== WebSocket$1.OPEN) throw new Error("ANIMA Gateway not connected");
|
|
1670
1670
|
const id = randomUUID();
|
|
1671
1671
|
const frame = {
|
|
1672
1672
|
type: "req",
|
|
@@ -2,7 +2,7 @@ import { n as __exportAll } from "./chunk-BXK9XSlF.js";
|
|
|
2
2
|
import { m as resolveStateDir } from "./paths-zhVksOvm.js";
|
|
3
3
|
import { i as routeLogsToStderr } from "./subsystem-BaJ-PqmA.js";
|
|
4
4
|
import { g as pathExists } from "./utils-RdHkpqQp.js";
|
|
5
|
-
import { i as registerCoreCliByName, o as getSubCliEntries, r as getCoreCliCommandNames, s as registerSubCliByName, t as getProgramContext } from "./program-context-
|
|
5
|
+
import { i as registerCoreCliByName, o as getSubCliEntries, r as getCoreCliCommandNames, s as registerSubCliByName, t as getProgramContext } from "./program-context-DYdCPzyt.js";
|
|
6
6
|
import os from "node:os";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import fs from "node:fs/promises";
|
|
@@ -205,7 +205,7 @@ async function runConfigUnset(opts) {
|
|
|
205
205
|
}
|
|
206
206
|
function registerConfigCli(program) {
|
|
207
207
|
const cmd = program.command("config").description("Read, write, and manage ANIMA configuration").addHelpText("after", () => `\n${theme.muted("Docs:")} ${formatDocsLink("/cli/config", "docs.noxsoft.net/anima/cli/config")}\n`).option("--section <section>", "Configure wizard sections (repeatable). Use with no subcommand.", (value, previous) => [...previous, value], []).action(async (opts) => {
|
|
208
|
-
const { CONFIGURE_WIZARD_SECTIONS, configureCommand, configureCommandWithSections, parseConfigureWizardSections } = await import("./configure-
|
|
208
|
+
const { CONFIGURE_WIZARD_SECTIONS, configureCommand, configureCommandWithSections, parseConfigureWizardSections } = await import("./configure-8QclXvjE.js").then((n) => n.t);
|
|
209
209
|
const { sections, invalid } = parseConfigureWizardSections(opts.section);
|
|
210
210
|
if (sections.length === 0) {
|
|
211
211
|
await configureCommand(defaultRuntime);
|
|
@@ -10,19 +10,19 @@ import { n as listChannelPlugins, t as getChannelPlugin } from "./plugins-CFb1gJ
|
|
|
10
10
|
import { n as withProgress } from "./progress-gdB4V88Q.js";
|
|
11
11
|
import { t as buildWorkspaceSkillStatus } from "./skills-status-DeW3dXom.js";
|
|
12
12
|
import { a as gatewayInstallErrorHint, i as buildGatewayInstallPlan, n as GATEWAY_DAEMON_RUNTIME_OPTIONS, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-DOk9qM0y.js";
|
|
13
|
-
import { _ as summarizeExistingConfig, a as ensureWorkspaceAndSessions, f as printWizardHeader, g as resolveNodeManagerOptions, h as resolveControlUiLinks, m as randomToken, n as applyWizardMetadata, p as probeGatewayReachable, r as detectBinary, s as guardCancel, t as DEFAULT_WORKSPACE, u as normalizeGatewayTokenInput, v as validateGatewayPasswordInput, y as waitForGatewayReachable } from "./onboard-helpers-
|
|
13
|
+
import { _ as summarizeExistingConfig, a as ensureWorkspaceAndSessions, f as printWizardHeader, g as resolveNodeManagerOptions, h as resolveControlUiLinks, m as randomToken, n as applyWizardMetadata, p as probeGatewayReachable, r as detectBinary, s as guardCancel, t as DEFAULT_WORKSPACE, u as normalizeGatewayTokenInput, v as validateGatewayPasswordInput, y as waitForGatewayReachable } from "./onboard-helpers-K7wUCSoE.js";
|
|
14
14
|
import { n as stylePromptMessage, r as stylePromptTitle, t as stylePromptHint } from "./prompt-style-CXrnxWQG.js";
|
|
15
15
|
import { t as resolveGatewayService } from "./service-H_0E0nOX.js";
|
|
16
16
|
import { n as resolveWideAreaDiscoveryDomain } from "./widearea-dns-Cr39lZhK.js";
|
|
17
17
|
import { n as discoverGatewayBeacons, t as installSkill } from "./skills-install-BVlnMRDh.js";
|
|
18
|
-
import { r as healthCommand } from "./health-
|
|
18
|
+
import { r as healthCommand } from "./health-CH8yZB2L.js";
|
|
19
19
|
import { n as ensureControlUiAssetsBuilt, t as formatHealthCheckFailure } from "./health-format-BMwPAU53.js";
|
|
20
20
|
import { i as applyAuthChoice, n as resolvePreferredProviderForAuthChoice, s as promptAuthChoiceGrouped, t as WizardCancelledError } from "./prompts-BT5ztuUd.js";
|
|
21
21
|
import { a as promptDefaultModel, i as applyPrimaryModel, n as applyModelAllowlist, o as promptModelAllowlist, r as applyModelFallbacksFromSelection, t as validateIPv4AddressInput } from "./ipv4-sll41DXC.js";
|
|
22
22
|
import { n as logConfigUpdated } from "./logging-ClHj0gnP.js";
|
|
23
23
|
import { t as note$1 } from "./note-CLRVmCnr.js";
|
|
24
24
|
import { t as createClackPrompter } from "./clack-prompter-DXovYg0Q.js";
|
|
25
|
-
import { n as setupChannels, t as noteChannelStatus } from "./onboard-channels-
|
|
25
|
+
import { n as setupChannels, t as noteChannelStatus } from "./onboard-channels-BQ5lwRDU.js";
|
|
26
26
|
import { t as ensureSystemdUserLingerInteractive } from "./systemd-linger-q1hyIpoI.js";
|
|
27
27
|
import { confirm, intro, outro, select, text } from "@clack/prompts";
|
|
28
28
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as __exportAll } from "./chunk-BXK9XSlF.js";
|
|
2
2
|
import { t as createSubsystemLogger } from "./subsystem-BaJ-PqmA.js";
|
|
3
3
|
import { i as loadConfig } from "./config-9JRRXykP.js";
|
|
4
|
-
import { _ as ensureChromeExtensionRelayServer } from "./chrome-
|
|
5
|
-
import { a as resolveBrowserConfig, m as ensureBrowserControlAuth, n as listKnownProfileNames, o as resolveProfile, t as createBrowserRouteContext } from "./server-context-
|
|
4
|
+
import { _ as ensureChromeExtensionRelayServer } from "./chrome-CVfcErE4.js";
|
|
5
|
+
import { a as resolveBrowserConfig, m as ensureBrowserControlAuth, n as listKnownProfileNames, o as resolveProfile, t as createBrowserRouteContext } from "./server-context-CHGGYs6i.js";
|
|
6
6
|
|
|
7
7
|
//#region src/browser/control-service.ts
|
|
8
8
|
var control_service_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -64,7 +64,7 @@ async function stopBrowserControlService() {
|
|
|
64
64
|
}
|
|
65
65
|
state = null;
|
|
66
66
|
try {
|
|
67
|
-
await (await import("./pw-ai-
|
|
67
|
+
await (await import("./pw-ai-Rz1I4vvf.js")).closePlaywrightBrowserConnection();
|
|
68
68
|
} catch {}
|
|
69
69
|
}
|
|
70
70
|
|
|
@@ -12,14 +12,14 @@ import "./shell-env-SbFYz02H.js";
|
|
|
12
12
|
import "./manifest-registry-DLouWVJe.js";
|
|
13
13
|
import "./message-channel-BbkwF58_.js";
|
|
14
14
|
import { n as listChannelPlugins } from "./plugins-CFb1gJ4N.js";
|
|
15
|
-
import "./client-
|
|
16
|
-
import "./call-
|
|
15
|
+
import "./client-oEG5cM5Q.js";
|
|
16
|
+
import "./call-BBzfZU0_.js";
|
|
17
17
|
import { n as formatDurationHuman } from "./format-duration-DduItW4_.js";
|
|
18
18
|
import { t as formatDocsLink } from "./links-NgE0SEVZ.js";
|
|
19
19
|
import "./progress-gdB4V88Q.js";
|
|
20
20
|
import { t as parseAbsoluteTimeMs } from "./parse-CY6yxdSO.js";
|
|
21
21
|
import { n as parsePositiveIntOrUndefined } from "./helpers-9N2Q5aZj.js";
|
|
22
|
-
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-
|
|
22
|
+
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-hgK9OB-O.js";
|
|
23
23
|
|
|
24
24
|
//#region src/cli/cron-cli/shared.ts
|
|
25
25
|
const getCronChannelOptions = () => ["last", ...listChannelPlugins().map((plugin) => plugin.id)].join("|");
|
|
@@ -9,12 +9,12 @@ import { t as pickPrimaryTailnetIPv4 } from "./tailnet-BuAkHZAk.js";
|
|
|
9
9
|
import { l as resolveGatewayBindHost } from "./ws-ebl3urqL.js";
|
|
10
10
|
import { a as inspectPortUsage, s as formatPortDiagnostics } from "./ports-CmAt9mb6.js";
|
|
11
11
|
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-BbkwF58_.js";
|
|
12
|
-
import { n as callGateway } from "./call-
|
|
12
|
+
import { n as callGateway } from "./call-BBzfZU0_.js";
|
|
13
13
|
import { t as formatDocsLink } from "./links-NgE0SEVZ.js";
|
|
14
14
|
import { n as withProgress } from "./progress-gdB4V88Q.js";
|
|
15
15
|
import { d as resolveGatewaySystemdServiceName, l as resolveGatewayLaunchAgentLabel } from "./constants-BCASNbxX.js";
|
|
16
16
|
import { i as buildGatewayInstallPlan, r as isGatewayDaemonRuntime, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-DOk9qM0y.js";
|
|
17
|
-
import { h as resolveControlUiLinks, m as randomToken } from "./onboard-helpers-
|
|
17
|
+
import { h as resolveControlUiLinks, m as randomToken } from "./onboard-helpers-K7wUCSoE.js";
|
|
18
18
|
import { n as isWSLEnv } from "./wsl-cUQTlijg.js";
|
|
19
19
|
import { s as resolveGatewayLogPaths, t as resolveGatewayService } from "./service-H_0E0nOX.js";
|
|
20
20
|
import { a as filterDaemonEnv, c as pickProbeHostForBind, d as safeDaemonEnv, f as buildDaemonServiceSnapshot, i as runServiceUninstall, l as renderGatewayServiceStartHints, n as runServiceStart, o as normalizeListenerAddress, p as createDaemonActionContext, r as runServiceStop, s as parsePortFromArgs, t as runServiceRestart, u as renderRuntimeHints } from "./lifecycle-core-BBpNy0vb.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//#region src/cli/deps.ts
|
|
2
2
|
function createDefaultDeps() {
|
|
3
3
|
return { sendMessageWhatsApp: async (...args) => {
|
|
4
|
-
const { sendMessageWhatsApp } = await import("./web-
|
|
4
|
+
const { sendMessageWhatsApp } = await import("./web-EevNfpKp.js");
|
|
5
5
|
return await sendMessageWhatsApp(...args);
|
|
6
6
|
} };
|
|
7
7
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as escapeRegExp } from "./utils-RdHkpqQp.js";
|
|
2
|
-
import { t as registerBrowserRoutes } from "./routes-
|
|
2
|
+
import { t as registerBrowserRoutes } from "./routes-D7OuiEUz.js";
|
|
3
3
|
|
|
4
4
|
//#region src/browser/routes/dispatcher.ts
|
|
5
5
|
function compileRoute(path) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as resolveRequiredHomeDir, d as resolveIsNixMode, f as resolveOAuthDir, m as resolveStateDir, t as CONFIG_PATH, u as resolveGatewayPort } from "./paths-zhVksOvm.js";
|
|
2
2
|
import { U as getResolvedLoggerSettings, u as defaultRuntime } from "./subsystem-BaJ-PqmA.js";
|
|
3
3
|
import { C as shortenHomePath, b as resolveUserPath, w as sleep } from "./utils-RdHkpqQp.js";
|
|
4
|
-
import { K as loadAnimaPlugins } from "./reply-
|
|
4
|
+
import { K as loadAnimaPlugins } from "./reply-B5IU75jY.js";
|
|
5
5
|
import { n as runExec, t as runCommandWithTimeout } from "./exec-Bsq6vlwp.js";
|
|
6
6
|
import { t as resolveAnimaPackageRoot } from "./anima-root-C5zoPibI.js";
|
|
7
7
|
import { c as resolveDefaultAgentId, d as DEFAULT_AGENTS_FILENAME, r as resolveAgentDir, s as resolveAgentWorkspaceDir } from "./agent-scope-vpVhWds3.js";
|
|
@@ -20,12 +20,12 @@ import { a as inspectPortUsage, s as formatPortDiagnostics } from "./ports-CmAt9
|
|
|
20
20
|
import { n as listChannelPlugins } from "./plugins-CFb1gJ4N.js";
|
|
21
21
|
import { c as resolveStorePath, n as resolveSessionFilePath, s as resolveSessionTranscriptsDirForAgent } from "./paths-CqMZNi-M.js";
|
|
22
22
|
import { l as readChannelAllowFromStore } from "./pi-tools.policy-BoWzLBtH.js";
|
|
23
|
-
import { n as callGateway, t as buildGatewayConnectionDetails } from "./call-
|
|
23
|
+
import { n as callGateway, t as buildGatewayConnectionDetails } from "./call-BBzfZU0_.js";
|
|
24
24
|
import { n as resolveMemorySearchConfig } from "./manager-1ZMunRXe.js";
|
|
25
25
|
import { d as resolveGatewaySystemdServiceName, f as resolveGatewayWindowsTaskName, l as resolveGatewayLaunchAgentLabel, m as resolveNodeLaunchAgentLabel } from "./constants-BCASNbxX.js";
|
|
26
26
|
import { t as buildWorkspaceSkillStatus } from "./skills-status-DeW3dXom.js";
|
|
27
27
|
import { a as gatewayInstallErrorHint, d as renderSystemNodeWarning, i as buildGatewayInstallPlan, n as GATEWAY_DAEMON_RUNTIME_OPTIONS, p as resolveSystemNodeInfo, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-DOk9qM0y.js";
|
|
28
|
-
import { f as printWizardHeader, m as randomToken, n as applyWizardMetadata, s as guardCancel } from "./onboard-helpers-
|
|
28
|
+
import { f as printWizardHeader, m as randomToken, n as applyWizardMetadata, s as guardCancel } from "./onboard-helpers-K7wUCSoE.js";
|
|
29
29
|
import { n as isWSLEnv, t as isWSL } from "./wsl-cUQTlijg.js";
|
|
30
30
|
import { n as stylePromptMessage, r as stylePromptTitle, t as stylePromptHint } from "./prompt-style-CXrnxWQG.js";
|
|
31
31
|
import { r as isSystemdUserServiceAvailable } from "./systemd-IDjybnbO.js";
|
|
@@ -34,13 +34,13 @@ import { n as renderSystemdUnavailableHints, r as formatRuntimeStatus, t as isSy
|
|
|
34
34
|
import { t as readLastGatewayErrorLine } from "./diagnostics-zpQTQwXE.js";
|
|
35
35
|
import { a as renderGatewayServiceCleanupHints, i as findExtraGatewayServices, n as auditGatewayServiceConfig, r as needsNodeRuntimeMigration, t as SERVICE_AUDIT_CODES } from "./service-audit-DLV93I95.js";
|
|
36
36
|
import { t as resolveChannelDefaultAccountId } from "./helpers-13ojLRv8.js";
|
|
37
|
-
import { r as healthCommand } from "./health-
|
|
37
|
+
import { r as healthCommand } from "./health-CH8yZB2L.js";
|
|
38
38
|
import { i as resolveControlUiDistIndexPathForRoot, r as resolveControlUiDistIndexHealth, t as formatHealthCheckFailure } from "./health-format-BMwPAU53.js";
|
|
39
39
|
import { t as collectChannelStatusIssues } from "./channels-status-issues-BCuAG8zm.js";
|
|
40
40
|
import { n as logConfigUpdated } from "./logging-ClHj0gnP.js";
|
|
41
41
|
import { t as note$1 } from "./note-CLRVmCnr.js";
|
|
42
|
-
import { n as doctorShellCompletion } from "./doctor-completion-
|
|
43
|
-
import { t as runGatewayUpdate } from "./update-runner-
|
|
42
|
+
import { n as doctorShellCompletion } from "./doctor-completion-Dend-SU1.js";
|
|
43
|
+
import { t as runGatewayUpdate } from "./update-runner-B-JShOyr.js";
|
|
44
44
|
import { n as detectLegacyStateMigrations, r as runLegacyStateMigrations, t as loadAndMaybeMigrateDoctorConfig } from "./doctor-config-flow-d6ocIX0r.js";
|
|
45
45
|
import { t as ensureSystemdUserLingerInteractive } from "./systemd-linger-q1hyIpoI.js";
|
|
46
46
|
import fs from "node:fs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as resolveAnimaPackageRoot } from "./anima-root-C5zoPibI.js";
|
|
2
2
|
import { r as resolveCliName } from "./command-format-B1WxXbeU.js";
|
|
3
|
-
import { a as resolveCompletionCachePath, i as isCompletionInstalled, o as resolveShellFromEnv, r as installCompletion, s as usesSlowDynamicCompletion, t as completionCacheExists } from "./completion-cli-
|
|
3
|
+
import { a as resolveCompletionCachePath, i as isCompletionInstalled, o as resolveShellFromEnv, r as installCompletion, s as usesSlowDynamicCompletion, t as completionCacheExists } from "./completion-cli-D3yIDiMz.js";
|
|
4
4
|
import { t as note } from "./note-CLRVmCnr.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { spawnSync } from "node:child_process";
|
|
@@ -10,14 +10,14 @@ import "./env-CYcXAarB.js";
|
|
|
10
10
|
import "./shell-env-SbFYz02H.js";
|
|
11
11
|
import "./manifest-registry-DLouWVJe.js";
|
|
12
12
|
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-BbkwF58_.js";
|
|
13
|
-
import "./client-
|
|
14
|
-
import { n as callGateway } from "./call-
|
|
13
|
+
import "./client-oEG5cM5Q.js";
|
|
14
|
+
import { n as callGateway } from "./call-BBzfZU0_.js";
|
|
15
15
|
import { p as saveExecApprovals, s as readExecApprovalsSnapshot } from "./exec-approvals-BTNqVQK0.js";
|
|
16
16
|
import { t as resolveNodeIdFromCandidates } from "./node-match-DzFfQgQe.js";
|
|
17
17
|
import { n as formatTimeAgo } from "./format-relative-C57Jb4Zw.js";
|
|
18
18
|
import { t as formatDocsLink } from "./links-NgE0SEVZ.js";
|
|
19
19
|
import { n as withProgress } from "./progress-gdB4V88Q.js";
|
|
20
|
-
import { n as callGatewayFromCli } from "./gateway-rpc-
|
|
20
|
+
import { n as callGatewayFromCli } from "./gateway-rpc-hgK9OB-O.js";
|
|
21
21
|
import "./systemd-IDjybnbO.js";
|
|
22
22
|
import "./service-H_0E0nOX.js";
|
|
23
23
|
import { t as renderTable } from "./table-BDer4ZEZ.js";
|
|
@@ -2,8 +2,8 @@ import { h as expandHomePrefix, i as isNixMode, l as resolveGatewayLockDir, m as
|
|
|
2
2
|
import { B as theme, H as getLogger, P as setVerbose, R as colorize, T as getActivePluginRegistry, U as getResolvedLoggerSettings, V as getChildLogger, _ as DEFAULT_CHAT_CHANNEL, a as setConsoleSubsystemFilter, h as CHANNEL_IDS, n as runtimeForLogger, o as setConsoleTimestampPrefix, t as createSubsystemLogger, u as defaultRuntime, z as isRich } from "./subsystem-BaJ-PqmA.js";
|
|
3
3
|
import { C as shortenHomePath, D as truncateUtf16Safe, b as resolveUserPath, c as ensureDir, d as isPlainObject, r as clamp, t as CONFIG_DIR } from "./utils-RdHkpqQp.js";
|
|
4
4
|
import { C as supportsXHighThinking, _ as normalizeElevatedLevel, b as normalizeUsageDisplay, m as formatXHighModelHint, p as formatThinkingLevels, v as normalizeReasoningLevel, x as normalizeVerboseLevel, y as normalizeThinkLevel } from "./pi-embedded-helpers-6Tb87sgU.js";
|
|
5
|
-
import { G as getActiveTaskCount, J as resetAllLanes, L as resolveAgentIdentity, U as clearSessionQueues, X as waitForActiveTasks, Y as setCommandLaneConcurrency, a as listDescendantRunsForRequester, et as startDiagnosticHeartbeat, i as initSubagentRegistry, m as readLatestAssistantReply, n as countActiveDescendantRuns, p as runSubagentAnnounceFlow, q as getTotalQueueSize, rt as isDiagnosticsEnabled, tt as stopDiagnosticHeartbeat } from "./subagent-registry-
|
|
6
|
-
import { A as writeRestartSentinel, At as DEFAULT_INPUT_PDF_MAX_PAGES, B as detectSuspiciousPatterns, C as setPreRestartDeferralCheck, Ct as registerUnhandledRejectionHandler, Dt as DEFAULT_INPUT_IMAGE_MAX_BYTES, E as formatRestartSentinelMessage, Et as DEFAULT_INPUT_FILE_MIMES, F as normalizeOptionalText, Ft as extractImageContentFromSource, G as getPluginToolMeta, H as isExternalHookSession, I as normalizePayloadToSystemText, It as normalizeMimeList, K as loadAnimaPlugins, L as normalizeRequiredName, Lt as estimateBase64DecodedBytes, M as normalizeCronJobPatch, Mt as DEFAULT_INPUT_PDF_MIN_TEXT_CHARS, N as inferLegacyName, Nt as DEFAULT_INPUT_TIMEOUT_MS, O as summarizeRestartSentinel, Ot as DEFAULT_INPUT_IMAGE_MIMES, P as normalizeOptionalAgentId, Pt as extractFileContentFromSource, Q as getChannelActivity, R as migrateLegacyCronPayload, S as setGatewaySigusr1RestartPolicy, T as formatDoctorNonInteractiveHint, Tt as DEFAULT_INPUT_FILE_MAX_CHARS, U as applyBrowserProxyPaths, V as getHookType, W as persistBrowserProxyFiles, _ as deferGatewayRestartUntilIdle, a as sniffMimeFromBase64, b as markGatewaySigusr1RestartHandled, c as loadProviderUsageSummary, f as ensureOutboundSessionEntry, ft as isAbortTrigger, g as consumeGatewaySigusr1RestartAuthorization, h as resolveMessageChannelSelection, i as buildDefaultToolPolicyPipelineSteps, it as getTotalPendingReplies, j as normalizeCronJobCreate, jt as DEFAULT_INPUT_PDF_MAX_PIXELS, kt as DEFAULT_INPUT_MAX_REDIRECTS, m as resetDirectoryCache, mt as formatZonedTimestamp, n as BARE_SESSION_RESET_PROMPT, nt as dispatchInboundMessage, o as createAnimaTools, p as resolveOutboundSessionRoute, pt as stopSubagentsForRequester, r as applyToolPolicyPipeline, rt as createReplyDispatcher, s as resolveAnnounceTargetFromKey, u as normalizeGroupActivation, v as emitGatewayRestart, w as consumeRestartSentinel, wt as DEFAULT_INPUT_FILE_MAX_BYTES, x as scheduleGatewaySigusr1Restart, y as isGatewaySigusr1RestartExternallyAllowed, z as buildSafeExternalPrompt } from "./reply-
|
|
5
|
+
import { G as getActiveTaskCount, J as resetAllLanes, L as resolveAgentIdentity, U as clearSessionQueues, X as waitForActiveTasks, Y as setCommandLaneConcurrency, a as listDescendantRunsForRequester, et as startDiagnosticHeartbeat, i as initSubagentRegistry, m as readLatestAssistantReply, n as countActiveDescendantRuns, p as runSubagentAnnounceFlow, q as getTotalQueueSize, rt as isDiagnosticsEnabled, tt as stopDiagnosticHeartbeat } from "./subagent-registry-jwfG4kCT.js";
|
|
6
|
+
import { A as writeRestartSentinel, At as DEFAULT_INPUT_PDF_MAX_PAGES, B as detectSuspiciousPatterns, C as setPreRestartDeferralCheck, Ct as registerUnhandledRejectionHandler, Dt as DEFAULT_INPUT_IMAGE_MAX_BYTES, E as formatRestartSentinelMessage, Et as DEFAULT_INPUT_FILE_MIMES, F as normalizeOptionalText, Ft as extractImageContentFromSource, G as getPluginToolMeta, H as isExternalHookSession, I as normalizePayloadToSystemText, It as normalizeMimeList, K as loadAnimaPlugins, L as normalizeRequiredName, Lt as estimateBase64DecodedBytes, M as normalizeCronJobPatch, Mt as DEFAULT_INPUT_PDF_MIN_TEXT_CHARS, N as inferLegacyName, Nt as DEFAULT_INPUT_TIMEOUT_MS, O as summarizeRestartSentinel, Ot as DEFAULT_INPUT_IMAGE_MIMES, P as normalizeOptionalAgentId, Pt as extractFileContentFromSource, Q as getChannelActivity, R as migrateLegacyCronPayload, S as setGatewaySigusr1RestartPolicy, T as formatDoctorNonInteractiveHint, Tt as DEFAULT_INPUT_FILE_MAX_CHARS, U as applyBrowserProxyPaths, V as getHookType, W as persistBrowserProxyFiles, _ as deferGatewayRestartUntilIdle, a as sniffMimeFromBase64, b as markGatewaySigusr1RestartHandled, c as loadProviderUsageSummary, f as ensureOutboundSessionEntry, ft as isAbortTrigger, g as consumeGatewaySigusr1RestartAuthorization, h as resolveMessageChannelSelection, i as buildDefaultToolPolicyPipelineSteps, it as getTotalPendingReplies, j as normalizeCronJobCreate, jt as DEFAULT_INPUT_PDF_MAX_PIXELS, kt as DEFAULT_INPUT_MAX_REDIRECTS, m as resetDirectoryCache, mt as formatZonedTimestamp, n as BARE_SESSION_RESET_PROMPT, nt as dispatchInboundMessage, o as createAnimaTools, p as resolveOutboundSessionRoute, pt as stopSubagentsForRequester, r as applyToolPolicyPipeline, rt as createReplyDispatcher, s as resolveAnnounceTargetFromKey, u as normalizeGroupActivation, v as emitGatewayRestart, w as consumeRestartSentinel, wt as DEFAULT_INPUT_FILE_MAX_BYTES, x as scheduleGatewaySigusr1Restart, y as isGatewaySigusr1RestartExternallyAllowed, z as buildSafeExternalPrompt } from "./reply-B5IU75jY.js";
|
|
7
7
|
import { b as isSubagentSessionKey, d as resolveAgentIdFromSessionKey, i as buildAgentMainSessionKey, l as normalizeAgentId, m as toAgentRequestSessionKey, n as DEFAULT_AGENT_ID, t as DEFAULT_ACCOUNT_ID, u as normalizeMainKey, v as isCronRunSessionKey, x as parseAgentSessionKey } from "./session-key-DxcgHezu.js";
|
|
8
8
|
import { a as logDebug, c as logWarn, n as runExec, t as runCommandWithTimeout } from "./exec-Bsq6vlwp.js";
|
|
9
9
|
import { t as resolveAnimaPackageRoot } from "./anima-root-C5zoPibI.js";
|
|
@@ -26,13 +26,13 @@ import "./model-auth-DUHamQTz.js";
|
|
|
26
26
|
import { $ as textToSpeech, At as verifyPairingToken, B as isTtsProviderConfigured, Ct as listNodePairing, Dt as updatePairedNodeMetadata, Et as requestNodePairing, Ft as writeJsonAtomic, G as resolveTtsConfig, Ht as applyModelOverrideToSessionEntry, K as resolveTtsPrefsPath, Kt as enqueueSystemEvent, L as getTtsProvider, Lt as getSkillsSnapshotVersion, Mt as pruneExpiredPending, N as resolveUserTimezone, Nt as readJsonFile, Ot as verifyNodeToken, Pt as resolvePairingPaths, Q as setTtsProvider, Rt as registerSkillsChangeListener, St as approveNodePairing, T as resolveSessionDeliveryTarget, Tt as renamePairedNode, U as resolveTtsApiKey, Ut as applyVerboseOverride, W as resolveTtsAutoMode, Wt as parseVerboseOverride, X as setTtsEnabled, Zt as loadModelCatalog, _ as capArrayByJsonBytes, _t as recordRemoteNodeInfo, b as resolveSessionTranscriptCandidates, bt as removeRemoteNodeInfo, c as listAgentsForGateway, d as loadSessionEntry, dt as clearInternalHooks, f as pruneLegacyStoreKeys, ft as createInternalHookEvent, g as archiveSessionTranscripts, gt as primeRemoteSkillsCache, h as archiveFileOnDisk, ht as getRemoteSkillEligibility, jt as createAsyncLock, k as runWithModelFallback, kt as generatePairingToken, l as listSessionsFromStore, lt as normalizeSendPolicy, m as resolveSessionModelRef, mt as triggerInternalHook, n as setCliSessionId, nt as OPENAI_TTS_VOICES, p as resolveGatewaySessionStoreTarget, pt as registerInternalHook, q as resolveTtsProviderOrder, qt as isSystemEventContextChanged, r as runCliAgent, s as canonicalizeSpawnedByForAgent, st as requestHeartbeatNow, t as getCliSessionId, tt as OPENAI_TTS_MODELS, u as loadCombinedSessionStoreForGateway, ut as resolveSendPolicy, v as readSessionMessages, vt as refreshRemoteBinsForConnectedNodes, w as resolveOutboundTarget, wt as rejectNodePairing, x as stripEnvelopeFromMessages, xt as setSkillsRemoteRegistry, y as readSessionPreviewItemsFromTranscript, yt as refreshRemoteNodeBins, z as isTtsEnabled, zt as lookupContextTokens } from "./cli-session-CIhvoVRb.js";
|
|
27
27
|
import { n as SILENT_REPLY_TOKEN, r as isSilentReplyText } from "./tokens-BLOye_TP.js";
|
|
28
28
|
import { _ as resolveToolProfilePolicy, p as collectExplicitAllowlist } from "./sandbox-wL61f1WP.js";
|
|
29
|
-
import "./chrome-
|
|
29
|
+
import "./chrome-CVfcErE4.js";
|
|
30
30
|
import { a as AUTH_RATE_LIMIT_SCOPE_DEVICE_TOKEN, c as safeEqualSecret, d as enableTailscaleFunnel, f as enableTailscaleServe, i as resolveGatewayAuth, l as disableTailscaleFunnel, m as getTailnetHostname, n as authorizeGatewayConnect, o as AUTH_RATE_LIMIT_SCOPE_SHARED_SECRET, r as isLocalDirectRequest, s as createAuthRateLimiter, t as assertGatewayAuthConfigured, u as disableTailscaleServe } from "./auth-B8ry4GB_.js";
|
|
31
31
|
import { n as pickPrimaryTailnetIPv6, t as pickPrimaryTailnetIPv4 } from "./tailnet-BuAkHZAk.js";
|
|
32
32
|
import { a as isTrustedProxyAddress, c as pickPrimaryLanIPv4, d as resolveGatewayListenHosts, i as isPrivateOrLoopbackAddress, l as resolveGatewayBindHost, n as isLoopbackAddress, r as isLoopbackHost, t as rawDataToString, u as resolveGatewayClientIp } from "./ws-ebl3urqL.js";
|
|
33
|
-
import { r as movePathToTrash } from "./server-context-
|
|
33
|
+
import { r as movePathToTrash } from "./server-context-CHGGYs6i.js";
|
|
34
34
|
import { i as loadWorkspaceSkillEntries, r as buildWorkspaceSkillSnapshot, x as hasBinary } from "./skills-DsdcfeyV.js";
|
|
35
|
-
import "./routes-
|
|
35
|
+
import "./routes-D7OuiEUz.js";
|
|
36
36
|
import { a as inspectPortUsage, r as ensurePortAvailable, s as formatPortDiagnostics } from "./ports-CmAt9mb6.js";
|
|
37
37
|
import { f as GATEWAY_CLIENT_CAPS, g as hasGatewayClientCap, h as GATEWAY_CLIENT_NAMES, i as isGatewayMessageChannel, l as normalizeMessageChannel, m as GATEWAY_CLIENT_MODES, n as isDeliverableMessageChannel, p as GATEWAY_CLIENT_IDS, r as isGatewayCliClient, s as isWebchatClient, t as INTERNAL_MESSAGE_CHANNEL } from "./message-channel-BbkwF58_.js";
|
|
38
38
|
import { n as listChannelPlugins, r as normalizeChannelId, t as getChannelPlugin } from "./plugins-CFb1gJ4N.js";
|
|
@@ -42,8 +42,8 @@ import "./parse-timeout-qnHqZvCW.js";
|
|
|
42
42
|
import "./chunk-DprzQA5H.js";
|
|
43
43
|
import { o as normalizeReplyPayloadsForDelivery, t as deliverOutboundPayloads, x as runGlobalGatewayStopSafely, y as getGlobalHookRunner } from "./deliver-tQREYhAr.js";
|
|
44
44
|
import { a as resolveSubagentToolPolicy, i as resolveGroupToolPolicy, r as resolveEffectiveToolPolicy } from "./pi-tools.policy-BoWzLBtH.js";
|
|
45
|
-
import { $ as validateNodePairRequestParams, A as validateCronStatusParams, B as validateExecApprovalsNodeGetParams, C as validateConfigSetParams, Ct as validateWizardCancelParams, D as validateCronRemoveParams, Dt as PROTOCOL_VERSION, E as validateCronListParams, Et as validateWizardStatusParams, F as validateDeviceTokenRevokeParams, G as validateNodeDescribeParams, H as validateExecApprovalsSetParams, I as validateDeviceTokenRotateParams, It as normalizeDevicePublicKeyBase64Url, J as validateNodeInvokeResultParams, K as validateNodeEventParams, L as validateExecApprovalRequestParams, Lt as verifyDeviceSignature, M as validateDevicePairApproveParams, Mt as buildDeviceAuthPayload, N as validateDevicePairListParams, O as validateCronRunParams, Ot as ErrorCodes, P as validateDevicePairRejectParams, Pt as deriveDeviceIdFromPublicKey, Q as validateNodePairRejectParams, R as validateExecApprovalResolveParams, S as validateConfigSchemaParams, St as validateWebLoginWaitParams, T as validateCronAddParams, Tt as validateWizardStartParams, U as validateLogsTailParams, V as validateExecApprovalsNodeSetParams, W as validateModelsListParams, X as validateNodePairApproveParams, Y as validateNodeListParams, Z as validateNodePairListParams, _ as validateChatInjectParams, _t as validateTalkConfigParams, a as validateAgentWaitParams, at as validateSessionsCompactParams, b as validateConfigGetParams, bt as validateWakeParams, c as validateAgentsFilesGetParams, ct as validateSessionsPatchParams, d as validateAgentsListParams, dt as validateSessionsResolveParams, et as validateNodePairVerifyParams, f as validateAgentsUpdateParams, ft as validateSessionsUsageParams, g as validateChatHistoryParams, gt as validateSkillsUpdateParams, h as validateChatAbortParams, ht as validateSkillsStatusParams, i as validateAgentParams, it as validateSendParams, j as validateCronUpdateParams, jt as parseSessionLabel, k as validateCronRunsParams, kt as errorShape, l as validateAgentsFilesListParams, lt as validateSessionsPreviewParams, m as validateChannelsStatusParams, mt as validateSkillsInstallParams, n as formatValidationErrors, nt as validatePollParams, o as validateAgentsCreateParams, ot as validateSessionsDeleteParams, p as validateChannelsLogoutParams, pt as validateSkillsBinsParams, q as validateNodeInvokeParams, r as validateAgentIdentityParams, rt as validateRequestFrame, s as validateAgentsDeleteParams, st as validateSessionsListParams, tt as validateNodeRenameParams, u as validateAgentsFilesSetParams, ut as validateSessionsResetParams, v as validateChatSendParams, vt as validateTalkModeParams, w as validateConnectParams, wt as validateWizardNextParams, x as validateConfigPatchParams, xt as validateWebLoginStartParams, y as validateConfigApplyParams, yt as validateUpdateRunParams, z as validateExecApprovalsGetParams } from "./client-
|
|
46
|
-
import { n as callGateway, o as loadGatewayTlsRuntime$1 } from "./call-
|
|
45
|
+
import { $ as validateNodePairRequestParams, A as validateCronStatusParams, B as validateExecApprovalsNodeGetParams, C as validateConfigSetParams, Ct as validateWizardCancelParams, D as validateCronRemoveParams, Dt as PROTOCOL_VERSION, E as validateCronListParams, Et as validateWizardStatusParams, F as validateDeviceTokenRevokeParams, G as validateNodeDescribeParams, H as validateExecApprovalsSetParams, I as validateDeviceTokenRotateParams, It as normalizeDevicePublicKeyBase64Url, J as validateNodeInvokeResultParams, K as validateNodeEventParams, L as validateExecApprovalRequestParams, Lt as verifyDeviceSignature, M as validateDevicePairApproveParams, Mt as buildDeviceAuthPayload, N as validateDevicePairListParams, O as validateCronRunParams, Ot as ErrorCodes, P as validateDevicePairRejectParams, Pt as deriveDeviceIdFromPublicKey, Q as validateNodePairRejectParams, R as validateExecApprovalResolveParams, S as validateConfigSchemaParams, St as validateWebLoginWaitParams, T as validateCronAddParams, Tt as validateWizardStartParams, U as validateLogsTailParams, V as validateExecApprovalsNodeSetParams, W as validateModelsListParams, X as validateNodePairApproveParams, Y as validateNodeListParams, Z as validateNodePairListParams, _ as validateChatInjectParams, _t as validateTalkConfigParams, a as validateAgentWaitParams, at as validateSessionsCompactParams, b as validateConfigGetParams, bt as validateWakeParams, c as validateAgentsFilesGetParams, ct as validateSessionsPatchParams, d as validateAgentsListParams, dt as validateSessionsResolveParams, et as validateNodePairVerifyParams, f as validateAgentsUpdateParams, ft as validateSessionsUsageParams, g as validateChatHistoryParams, gt as validateSkillsUpdateParams, h as validateChatAbortParams, ht as validateSkillsStatusParams, i as validateAgentParams, it as validateSendParams, j as validateCronUpdateParams, jt as parseSessionLabel, k as validateCronRunsParams, kt as errorShape, l as validateAgentsFilesListParams, lt as validateSessionsPreviewParams, m as validateChannelsStatusParams, mt as validateSkillsInstallParams, n as formatValidationErrors, nt as validatePollParams, o as validateAgentsCreateParams, ot as validateSessionsDeleteParams, p as validateChannelsLogoutParams, pt as validateSkillsBinsParams, q as validateNodeInvokeParams, r as validateAgentIdentityParams, rt as validateRequestFrame, s as validateAgentsDeleteParams, st as validateSessionsListParams, tt as validateNodeRenameParams, u as validateAgentsFilesSetParams, ut as validateSessionsResetParams, v as validateChatSendParams, vt as validateTalkModeParams, w as validateConnectParams, wt as validateWizardNextParams, x as validateConfigPatchParams, xt as validateWebLoginStartParams, y as validateConfigApplyParams, yt as validateUpdateRunParams, z as validateExecApprovalsGetParams } from "./client-oEG5cM5Q.js";
|
|
46
|
+
import { n as callGateway, o as loadGatewayTlsRuntime$1 } from "./call-BBzfZU0_.js";
|
|
47
47
|
import { r as normalizeInputProvenance } from "./input-provenance-E74Jb_sM.js";
|
|
48
48
|
import { f as resolveExecApprovalsSocketPath, o as normalizeExecApprovals, p as saveExecApprovals, r as ensureExecApprovals, s as readExecApprovalsSnapshot, t as DEFAULT_EXEC_APPROVAL_TIMEOUT_MS } from "./exec-approvals-BTNqVQK0.js";
|
|
49
49
|
import { a as deriveSessionTotalTokens, o as hasNonzeroUsage } from "./transcript-tools-CE-YeWdO.js";
|
|
@@ -62,41 +62,41 @@ import { t as runCommandWithRuntime } from "./cli-utils-C2Dtl4o_.js";
|
|
|
62
62
|
import { n as withProgress } from "./progress-gdB4V88Q.js";
|
|
63
63
|
import "./logging-1vypRz8h.js";
|
|
64
64
|
import "./auth-store-DWgI4Vj8.js";
|
|
65
|
-
import { n as createBrowserControlContext, r as startBrowserControlServiceFromConfig } from "./control-service-
|
|
66
|
-
import { t as createBrowserRouteDispatcher } from "./dispatcher-
|
|
65
|
+
import { n as createBrowserControlContext, r as startBrowserControlServiceFromConfig } from "./control-service-DptjbgYI.js";
|
|
66
|
+
import { t as createBrowserRouteDispatcher } from "./dispatcher-CiJKNMU3.js";
|
|
67
67
|
import { t as parseAbsoluteTimeMs } from "./parse-CY6yxdSO.js";
|
|
68
68
|
import "./pi-model-discovery-HH8RvApN.js";
|
|
69
69
|
import "./delivery-queue-CdUtwMZr.js";
|
|
70
70
|
import { i as loadSessionUsageTimeSeries, n as loadCostUsageSummary, r as loadSessionCostSummary, t as discoverAllSessions } from "./session-cost-usage-CYdqhmt6.js";
|
|
71
71
|
import { c as resolveCronStyleNow, i as onHeartbeatEvent, r as getLastHeartbeatEvent, t as resolveHeartbeatVisibility } from "./heartbeat-visibility-Blrqxom1.js";
|
|
72
|
-
import { r as buildHistoryContextFromEntries, t as createReplyPrefixOptions } from "./reply-prefix-
|
|
72
|
+
import { r as buildHistoryContextFromEntries, t as createReplyPrefixOptions } from "./reply-prefix-B90kjTag.js";
|
|
73
73
|
import "./accounts-C9dcy8Gp.js";
|
|
74
|
-
import { n as createOutboundSendDeps, t as createDefaultDeps } from "./deps-
|
|
74
|
+
import { n as createOutboundSendDeps, t as createDefaultDeps } from "./deps-DcinYE4_.js";
|
|
75
75
|
import { t as ensureAnimaCliOnPath } from "./path-env-BO3_pVlb.js";
|
|
76
76
|
import { t as forceFreePortAndWait } from "./ports-DIRb7aJE.js";
|
|
77
|
-
import "./program-context-
|
|
77
|
+
import "./program-context-DYdCPzyt.js";
|
|
78
78
|
import { t as buildChannelUiCatalog } from "./catalog-VwQGLU6M.js";
|
|
79
79
|
import { t as buildWorkspaceSkillStatus } from "./skills-status-DeW3dXom.js";
|
|
80
80
|
import { n as DEFAULT_GATEWAY_HTTP_TOOL_DENY } from "./dangerous-tools-C7Q_csTW.js";
|
|
81
|
-
import "./completion-cli-
|
|
81
|
+
import "./completion-cli-D3yIDiMz.js";
|
|
82
82
|
import "./daemon-runtime-DOk9qM0y.js";
|
|
83
|
-
import { C as resolveAssistantAvatarUrl, S as normalizeControlUiBasePath, b as CONTROL_UI_AVATAR_PREFIX, c as handleReset, x as buildControlUiAvatarUrl } from "./onboard-helpers-
|
|
83
|
+
import { C as resolveAssistantAvatarUrl, S as normalizeControlUiBasePath, b as CONTROL_UI_AVATAR_PREFIX, c as handleReset, x as buildControlUiAvatarUrl } from "./onboard-helpers-K7wUCSoE.js";
|
|
84
84
|
import "./prompt-style-CXrnxWQG.js";
|
|
85
85
|
import "./systemd-IDjybnbO.js";
|
|
86
86
|
import "./service-H_0E0nOX.js";
|
|
87
87
|
import "./lifecycle-core-BBpNy0vb.js";
|
|
88
88
|
import { t as parsePort$1 } from "./parse-port-C4jZ8XQW.js";
|
|
89
|
-
import { n as addGatewayServiceCommands } from "./daemon-cli-
|
|
89
|
+
import { n as addGatewayServiceCommands } from "./daemon-cli-CV9nly9k.js";
|
|
90
90
|
import "./diagnostics-zpQTQwXE.js";
|
|
91
91
|
import "./service-audit-DLV93I95.js";
|
|
92
92
|
import { n as resolveWideAreaDiscoveryDomain, r as writeWideAreaGatewayZone } from "./widearea-dns-Cr39lZhK.js";
|
|
93
93
|
import "./table-BDer4ZEZ.js";
|
|
94
94
|
import { i as toOptionString, n as extractGatewayMiskeys, r as maybeExplainGatewayServiceStop, t as describeUnknownError } from "./shared-B2fGg4mW.js";
|
|
95
|
-
import { c as probeGateway, o as isNodeCommandAllowed, s as resolveNodeCommandAllowlist } from "./audit-
|
|
95
|
+
import { c as probeGateway, o as isNodeCommandAllowed, s as resolveNodeCommandAllowlist } from "./audit-B_3ewOwt.js";
|
|
96
96
|
import { n as discoverGatewayBeacons, t as installSkill } from "./skills-install-BVlnMRDh.js";
|
|
97
|
-
import { n as getStatusSummary, r as pickGatewaySelfPresence } from "./status-
|
|
97
|
+
import { n as getStatusSummary, r as pickGatewaySelfPresence } from "./status-CHuLEuXT.js";
|
|
98
98
|
import { t as resolveChannelDefaultAccountId } from "./helpers-13ojLRv8.js";
|
|
99
|
-
import { c as startHeartbeatRunner, i as styleHealthChannelLine, n as getHealthSnapshot, o as runHeartbeatOnce, s as setHeartbeatsEnabled, t as formatHealthChannelLines } from "./health-
|
|
99
|
+
import { c as startHeartbeatRunner, i as styleHealthChannelLine, n as getHealthSnapshot, o as runHeartbeatOnce, s as setHeartbeatsEnabled, t as formatHealthChannelLines } from "./health-CH8yZB2L.js";
|
|
100
100
|
import { t as applyPluginAutoEnable } from "./plugin-auto-enable-BlyqT33k.js";
|
|
101
101
|
import { a as resolveControlUiRootOverrideSync, n as ensureControlUiAssetsBuilt, o as resolveControlUiRootSync } from "./health-format-BMwPAU53.js";
|
|
102
102
|
import { n as validateSystemRunCommandConsistency, r as getMachineDisplayName, t as formatExecCommand } from "./system-run-command-CBYonA1r.js";
|
|
@@ -104,20 +104,20 @@ import { h as normalizeUpdateChannel, l as DEFAULT_PACKAGE_CHANNEL, n as checkUp
|
|
|
104
104
|
import { t as WizardCancelledError } from "./prompts-BT5ztuUd.js";
|
|
105
105
|
import "./ipv4-sll41DXC.js";
|
|
106
106
|
import { i as shouldIncludeHook, n as loadWorkspaceHookEntries, r as resolveHookConfig } from "./hooks-status-BTVvcXJx.js";
|
|
107
|
-
import { t as runOnboardingWizard } from "./onboarding-
|
|
107
|
+
import { t as runOnboardingWizard } from "./onboarding-BappVKxE.js";
|
|
108
108
|
import "./logging-ClHj0gnP.js";
|
|
109
|
-
import "./tui-
|
|
109
|
+
import "./tui-DBbVe-hW.js";
|
|
110
110
|
import "./note-CLRVmCnr.js";
|
|
111
|
-
import "./doctor-completion-
|
|
111
|
+
import "./doctor-completion-Dend-SU1.js";
|
|
112
112
|
import { a as setGatewayWsLogStyle, i as summarizeAgentEventForWsLog, n as logWs, r as shouldLogWs, t as formatForLog } from "./ws-log-D4JiZwbk.js";
|
|
113
113
|
import { T as resolveGmailHookRuntimeConfig, _ as buildGogWatchServeArgs, i as ensureTailscaleEndpoint, v as buildGogWatchStartArgs } from "./gmail-setup-utils-B4YpqI4r.js";
|
|
114
|
-
import { a as createOutboundSendDeps$1, i as resolveAgentOutboundTarget, r as resolveAgentDeliveryPlan, t as agentCommand } from "./agent-
|
|
114
|
+
import { a as createOutboundSendDeps$1, i as resolveAgentOutboundTarget, r as resolveAgentDeliveryPlan, t as agentCommand } from "./agent-rY3gCqJE.js";
|
|
115
115
|
import { a as loadAgentIdentity, c as loadAgentIdentityFromWorkspace, i as listAgentEntries, o as pruneAgentConfig, r as findAgentEntryIndex, t as applyAgentConfig } from "./agents.config-M3p4E9Vk.js";
|
|
116
116
|
import "./skill-scanner-BA9Rv4AE.js";
|
|
117
117
|
import "./node-service-CCMaTNEM.js";
|
|
118
118
|
import "./status.update-s92nCoGl.js";
|
|
119
119
|
import "./archive-BZANtsGY.js";
|
|
120
|
-
import { t as runGatewayUpdate } from "./update-runner-
|
|
120
|
+
import { t as runGatewayUpdate } from "./update-runner-B-JShOyr.js";
|
|
121
121
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
122
122
|
import * as fsSync from "node:fs";
|
|
123
123
|
import fs, { constants } from "node:fs";
|
|
@@ -11305,7 +11305,7 @@ const nodeHandlers = {
|
|
|
11305
11305
|
const p = params;
|
|
11306
11306
|
const payloadJSON = typeof p.payloadJSON === "string" ? p.payloadJSON : p.payload !== void 0 ? JSON.stringify(p.payload) : null;
|
|
11307
11307
|
await respondUnavailableOnThrow(respond, async () => {
|
|
11308
|
-
const { handleNodeEvent } = await import("./server-node-events-
|
|
11308
|
+
const { handleNodeEvent } = await import("./server-node-events-DMEsGLU8.js");
|
|
11309
11309
|
const nodeId = client?.connect?.device?.id ?? client?.connect?.client?.id ?? "node";
|
|
11310
11310
|
await handleNodeEvent({
|
|
11311
11311
|
deps: context.deps,
|
|
@@ -14099,7 +14099,7 @@ function normalizeAgentPayload(payload) {
|
|
|
14099
14099
|
async function startBrowserControlServerIfEnabled() {
|
|
14100
14100
|
if (isTruthyEnvValue(process.env.ANIMA_SKIP_BROWSER_CONTROL_SERVER)) return null;
|
|
14101
14101
|
const override = process.env.ANIMA_BROWSER_CONTROL_MODULE?.trim();
|
|
14102
|
-
const mod = override ? await import(override) : await import("./control-service-
|
|
14102
|
+
const mod = override ? await import(override) : await import("./control-service-DptjbgYI.js").then((n) => n.t);
|
|
14103
14103
|
const start = typeof mod.startBrowserControlServiceFromConfig === "function" ? mod.startBrowserControlServiceFromConfig : mod.startBrowserControlServerFromConfig;
|
|
14104
14104
|
const stop = typeof mod.stopBrowserControlService === "function" ? mod.stopBrowserControlService : mod.stopBrowserControlServer;
|
|
14105
14105
|
if (!start) return null;
|