@noxsoft/anima 3.0.4 → 3.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{accounts-0-iS_1ON.js → accounts-MCFGsqbc.js} +6 -6
- package/dist/{acp-cli-DR2eCnHa.js → acp-cli-Cc4hge8F.js} +3 -3
- package/dist/{agent-events-DpLOd9j3.js → agent-events-k0oEWcJi.js} +1 -1
- package/dist/{agent-D67QJfSA.js → agent-kw6IKi2M.js} +7 -7
- package/dist/{agents-CC7YooRa.js → agents-CRHhdnpS.js} +4 -4
- package/dist/{audit-DTa_eoCX.js → audit-Bmlx4ME3.js} +8 -8
- package/dist/{auth-choice-uTkXmBsF.js → auth-choice-DmJpz3dy.js} +1 -1
- package/dist/{banner-7w2BYzBm.js → banner-CMa8sLDM.js} +1 -1
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +6 -6
- package/dist/{call-CdAIguFD.js → call-CtVjogkV.js} +1 -1
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{chrome-dggtj3Lb.js → chrome-DZ7VChHP.js} +7 -7
- package/dist/{cli-qFdAHCu_.js → cli-BxZOVbN0.js} +18 -18
- package/dist/{cli-session-CfTs7I9q.js → cli-session-C_Pb_tJG.js} +4 -4
- package/dist/{command-registry-BOtCwS6q.js → command-registry-CNfXgZ7o.js} +11 -11
- package/dist/{completion-cli-DXr9R51W.js → completion-cli-BkFQCDYI.js} +2 -2
- package/dist/{config-BqjdiIqb.js → config-CW3mWEFv.js} +1 -1
- package/dist/{config-cli-AUXa07PR.js → config-cli-Ls75E1u6.js} +3 -3
- package/dist/{config-guard-CLE9lMNz.js → config-guard-CXr4ahlE.js} +2 -2
- package/dist/{configure-BHdbhvvf.js → configure-DsCZMKY0.js} +30 -30
- package/dist/{configure-DeN_4KMQ.js → configure-SEpZ5Jbz.js} +8 -8
- package/dist/{context-D3iu8n-R.js → context-C-EeDlhY.js} +1 -1
- package/dist/{control-service-BZzmO7c_.js → control-service-C1xo0dfl.js} +2 -2
- package/dist/control-ui/assets/{index-D8YC8Sgw.js → index-Cof-3KpT.js} +15 -13
- package/dist/control-ui/assets/{index-D8YC8Sgw.js.map → index-Cof-3KpT.js.map} +1 -1
- package/dist/control-ui/index.html +1 -1
- package/dist/{cron-cli-CyzK6gZC.js → cron-cli-C0yeWgUd.js} +4 -4
- package/dist/{daemon-cli-BJbm--Cv.js → daemon-cli-YXtw9DJy.js} +5 -5
- package/dist/{daemon-runtime-RjPFjiQt.js → daemon-runtime-D5KhD82Y.js} +1 -1
- package/dist/{deliver-JdSpxDGI.js → deliver-COTg5qFH.js} +1 -1
- package/dist/{deliver-BAvC6OQB.js → deliver-D9gk6vPm.js} +1 -1
- package/dist/{dispatcher-B8eU53gY.js → dispatcher-DQsImjGf.js} +1 -1
- package/dist/{dns-cli-DL2BM6hq.js → dns-cli-CQYWiaMa.js} +2 -2
- package/dist/{docs-cli-CKSiSdnb.js → docs-cli-DehEwN7Q.js} +1 -1
- package/dist/{doctor-pLYoBJMk.js → doctor-Bby-UShx.js} +15 -15
- package/dist/{doctor-completion-DmQMefih.js → doctor-completion-CZj6kSxM.js} +1 -1
- package/dist/{doctor-config-flow-D-6JwPG8.js → doctor-config-flow-BKTWsoKo.js} +5 -5
- package/dist/entry.js +3 -3
- package/dist/{exec-approvals-cli-BZVoSyyq.js → exec-approvals-cli-D9pfvckh.js} +6 -6
- package/dist/{gateway-cli-BdOVgRop.js → gateway-cli-DtO8TW8i.js} +46 -46
- package/dist/{gateway-rpc-UUEXPkWC.js → gateway-rpc-D7Nplm8G.js} +1 -1
- package/dist/{gmail-setup-utils-DjQ4vBw0.js → gmail-setup-utils-Du3JjS1M.js} +1 -1
- package/dist/{health-DHDWvsfA.js → health-btYQz_wA.js} +8 -8
- package/dist/{heartbeat-visibility-Cmb6Uty9.js → heartbeat-visibility-Czw1aXJ9.js} +1 -1
- package/dist/{hooks-cli-CKrriqp_.js → hooks-cli-BnYhHSTh.js} +20 -20
- package/dist/{hooks-status-C02SnWNJ.js → hooks-status-DnB6ZK0J.js} +1 -1
- package/dist/{io-iWIjWIkl.js → io-CHeqqEl4.js} +5 -5
- package/dist/{login-BdEL76u1.js → login-C25KYCCB.js} +1 -1
- package/dist/{login-yr3VtZqb.js → login-DlQyFFdq.js} +2 -2
- package/dist/{login-qr-YcClTis-.js → login-qr-Beuo6oxw.js} +1 -1
- package/dist/{login-qr-hjfbYYQE.js → login-qr-lzEKpHxZ.js} +3 -3
- package/dist/{logs-cli-Dl8iaTM8.js → logs-cli-CEX1x2UC.js} +4 -4
- package/dist/{memory-cli-BIi9M09T.js → memory-cli-B3CyQMHl.js} +1 -1
- package/dist/{models-B-eLP2W_.js → models-By2DCCb_.js} +19 -19
- package/dist/{node-cli-o5qdBDXv.js → node-cli-BzroW-6N.js} +7 -7
- package/dist/{onboard-D8heZS4W.js → onboard-C3IoqClv.js} +6 -6
- package/dist/{onboard-channels-CvE0fndb.js → onboard-channels-zGd24jDH.js} +1 -1
- package/dist/{onboard-helpers-C8-npM73.js → onboard-helpers-BnB7o14v.js} +2 -2
- package/dist/{onboarding-GTIvnear.js → onboarding-DrIg7AOV.js} +9 -9
- package/dist/{outbound-DbFD3d8r.js → outbound-CttO4U0C.js} +1 -1
- package/dist/{parse-timeout-BVEX2Lz1.js → parse-timeout-CZ6_B_Wu.js} +1 -1
- package/dist/{pi-embedded-helpers-g9om0xJ7.js → pi-embedded-helpers-sqsbN-zA.js} +4 -4
- package/dist/{pi-tools.policy-B4I325aj.js → pi-tools.policy-DksWz3BP.js} +2 -2
- package/dist/{plugin-registry-SWpB3D-5.js → plugin-registry-ssaLz5G3.js} +2 -2
- package/dist/{plugins-cli-Bj60hoG3.js → plugins-cli-49bp8GOB.js} +19 -19
- package/dist/{program-ufvQ9_i3.js → program-Cl1iECHu.js} +24 -24
- package/dist/{pw-ai-CBmRQ9aU.js → pw-ai-W08ktaHA.js} +1 -1
- package/dist/{register.agent-DlRL0gZs.js → register.agent-CMcR6wn3.js} +23 -23
- package/dist/{register.anima-BGcCs9zl.js → register.anima-CT63Jw6G.js} +3 -3
- package/dist/{register.configure-mvmlHvKz.js → register.configure-C5hYdZNC.js} +26 -26
- package/dist/{register.maintenance-D2stmLYe.js → register.maintenance-DR8HDTM1.js} +30 -30
- package/dist/{register.onboard-BvMT5000.js → register.onboard-c3wKMzVQ.js} +30 -30
- package/dist/{register.setup-BTn79YSi.js → register.setup-CsdtvJfr.js} +32 -32
- package/dist/{register.status-health-sessions-DTfOz28I.js → register.status-health-sessions-1BNEGniX.js} +25 -25
- package/dist/{register.subclis-Cb-XMz3t.js → register.subclis-APOnK1oY.js} +21 -21
- package/dist/{reply-CDFwIHRO.js → reply-DiXFAQ6Y.js} +23 -23
- package/dist/{reply-prefix-RmDHulxO.js → reply-prefix-BJ6vG158.js} +2 -2
- package/dist/{routes-Cmc5ZQhi.js → routes-BC-Mvhwy.js} +2 -2
- package/dist/{run-main-5ODo8rXB.js → run-main-DSmCSQvU.js} +36 -36
- package/dist/{sandbox-gSH3_12R.js → sandbox-C9Ow3VqW.js} +3 -3
- package/dist/{sandbox-cli-C_W6JLJ8.js → sandbox-cli-DEmOMuhf.js} +7 -7
- package/dist/{security-cli-C347Qhcz.js → security-cli-CJ_CU3Lv.js} +10 -10
- package/dist/{server-context-B0zBRUkt.js → server-context-B7l8uLo0.js} +1 -1
- package/dist/{server-node-events-DORX1Ogk.js → server-node-events-nClUCOTS.js} +11 -11
- package/dist/{service-audit-BwLKMovx.js → service-audit-BCC0aFGF.js} +1 -1
- package/dist/{session-BxRbDXzF.js → session-CeToKqd8.js} +1 -1
- package/dist/{sessions-Bm1ebRIk.js → sessions-7zgD7x8B.js} +3 -3
- package/dist/{sessions-B090A8HC.js → sessions-CO93wesA.js} +1 -1
- package/dist/{settings-cli-BfG2LeHS.js → settings-cli-Sq63XV_Z.js} +27 -27
- package/dist/{skills-C4C8s_X9.js → skills-CG8iI6v6.js} +2 -2
- package/dist/{skills-cli-BGRR3n2i.js → skills-cli-BcqCAYEs.js} +6 -6
- package/dist/{skills-install-1LM_zHZp.js → skills-install-_5laUMxp.js} +1 -1
- package/dist/{skills-status-H7e--DXr.js → skills-status-CNEd8Dm9.js} +1 -1
- package/dist/{start-Dx14-Dv4.js → start-BsO9TOE5.js} +1 -1
- package/dist/{status-CUx95WWH.js → status-DsBDigvs.js} +2 -2
- package/dist/{status-BrCv8UvC.js → status-L2HZk3ud.js} +12 -12
- package/dist/{status.update-BeqJtF19.js → status.update-DREm9Pli.js} +1 -1
- package/dist/{subagent-registry-Dc6tpkgu.js → subagent-registry-BfTldsNb.js} +6 -6
- package/dist/{subagent-registry-B9LkM5jI.js → subagent-registry-CAKZ3Y17.js} +7 -7
- package/dist/{system-cli-CMuR4lX6.js → system-cli-DzSUCwFN.js} +4 -4
- package/dist/{tui-D-VaXawe.js → tui-C2XIQ9jV.js} +3 -3
- package/dist/{tui-cli-CrNpDqdm.js → tui-cli-piy12AAM.js} +10 -10
- package/dist/{update-cli-BbW_TUAN.js → update-cli-DxE9ARmb.js} +32 -32
- package/dist/{update-runner-B1Y2OBKb.js → update-runner-DfXRVjBp.js} +1 -1
- package/dist/{usage-CdVLaB19.js → usage-ClDzxVdl.js} +2 -2
- package/dist/{web-DjsezaZk.js → web-DBI1ImUV.js} +13 -13
- package/dist/{web-CXb6AGwW.js → web-nlpa6AmG.js} +22 -22
- package/dist/{webhooks-cli-C5yo-utx.js → webhooks-cli--V32JTnS.js} +4 -4
- package/dist/{whatsapp-actions-D5Kl_XTd.js → whatsapp-actions-DZgyP_1e.js} +3 -3
- package/package.json +1 -1
|
@@ -6,32 +6,32 @@ import { n as runExec } from "./exec-Dmz2Tr6K.js";
|
|
|
6
6
|
import { t as resolveAnimaPackageRoot } from "./anima-root-DBcJL1ZM.js";
|
|
7
7
|
import { s as resolveAgentWorkspaceDir } from "./agent-scope-QT1urvJx.js";
|
|
8
8
|
import { _ as DEFAULT_MODEL, d as resolveConfiguredModelRef, g as DEFAULT_CONTEXT_TOKENS, v as DEFAULT_PROVIDER } from "./model-selection-01zouBRC.js";
|
|
9
|
-
import { t as buildWorkspaceSkillStatus } from "./skills-status-
|
|
10
|
-
import { i as readConfigFileSnapshot, j as VERSION, n as loadConfig } from "./io-
|
|
11
|
-
import { n as callGateway, t as buildGatewayConnectionDetails } from "./call-
|
|
12
|
-
import { S as resolveMainSessionKey, i as loadSessionStore, v as resolveFreshSessionTotalTokens } from "./sessions-
|
|
9
|
+
import { t as buildWorkspaceSkillStatus } from "./skills-status-CNEd8Dm9.js";
|
|
10
|
+
import { i as readConfigFileSnapshot, j as VERSION, n as loadConfig } from "./io-CHeqqEl4.js";
|
|
11
|
+
import { n as callGateway, t as buildGatewayConnectionDetails } from "./call-CtVjogkV.js";
|
|
12
|
+
import { S as resolveMainSessionKey, i as loadSessionStore, v as resolveFreshSessionTotalTokens } from "./sessions-CO93wesA.js";
|
|
13
13
|
import { n as listChannelPlugins } from "./plugins-zFmidMaf.js";
|
|
14
14
|
import { h as readTailscaleStatusJson, m as getTailnetHostname } from "./auth-FzNxH03k.js";
|
|
15
15
|
import { i as formatPortDiagnostics, n as inspectPortUsage } from "./ports-D7xIe6xi.js";
|
|
16
16
|
import { c as resolveStorePath } from "./paths-BEkHcryg.js";
|
|
17
|
-
import { c as listAgentsForGateway, i as sha256HexPrefix, mt as getRemoteSkillEligibility, qt as peekSystemEvents } from "./cli-session-
|
|
18
|
-
import { A as summarizeRestartSentinel, _t as buildChannelSummary, c as loadProviderUsageSummary, k as readRestartSentinel, l as formatUsageReportLines, vt as buildChannelAccountSnapshot, yt as formatChannelAllowFrom } from "./reply-
|
|
19
|
-
import { t as lookupContextTokens } from "./context-
|
|
17
|
+
import { c as listAgentsForGateway, i as sha256HexPrefix, mt as getRemoteSkillEligibility, qt as peekSystemEvents } from "./cli-session-C_Pb_tJG.js";
|
|
18
|
+
import { A as summarizeRestartSentinel, _t as buildChannelSummary, c as loadProviderUsageSummary, k as readRestartSentinel, l as formatUsageReportLines, vt as buildChannelAccountSnapshot, yt as formatChannelAllowFrom } from "./reply-DiXFAQ6Y.js";
|
|
19
|
+
import { t as lookupContextTokens } from "./context-C-EeDlhY.js";
|
|
20
20
|
import { r as formatDurationPrecise } from "./format-duration-RY4rhz_Z.js";
|
|
21
21
|
import { n as formatTimeAgo } from "./format-relative-D4GQsWlP.js";
|
|
22
|
-
import { r as getMemorySearchManager } from "./memory-cli-
|
|
22
|
+
import { r as getMemorySearchManager } from "./memory-cli-B3CyQMHl.js";
|
|
23
23
|
import { n as withProgress } from "./progress-IbQIsvcD.js";
|
|
24
|
-
import { S as normalizeControlUiBasePath, h as resolveControlUiLinks } from "./onboard-helpers-
|
|
24
|
+
import { S as normalizeControlUiBasePath, h as resolveControlUiLinks } from "./onboard-helpers-BnB7o14v.js";
|
|
25
25
|
import { s as resolveGatewayLogPaths, t as resolveGatewayService } from "./service-Df_H0-VH.js";
|
|
26
26
|
import { t as readLastGatewayErrorLine } from "./diagnostics-DUEfwTso.js";
|
|
27
27
|
import { t as renderTable } from "./table-C2NJJLb2.js";
|
|
28
|
-
import { a as resolveGatewayProbeAuth$1, c as probeGateway, t as runSecurityAudit } from "./audit-
|
|
28
|
+
import { a as resolveGatewayProbeAuth$1, c as probeGateway, t as runSecurityAudit } from "./audit-Bmlx4ME3.js";
|
|
29
29
|
import { t as resolveChannelDefaultAccountId } from "./helpers-BUW2xtvb.js";
|
|
30
|
-
import { o as resolveHeartbeatSummaryForAgent, t as formatHealthChannelLines } from "./health-
|
|
30
|
+
import { o as resolveHeartbeatSummaryForAgent, t as formatHealthChannelLines } from "./health-btYQz_wA.js";
|
|
31
31
|
import { a as formatGitInstallLabel, f as formatUpdateChannelLabel, g as resolveEffectiveUpdateChannel, h as normalizeUpdateChannel, n as checkUpdateStatus, r as compareSemverStrings, t as collectChannelStatusIssues } from "./channels-status-issues-Brky9enJ.js";
|
|
32
32
|
import { t as resolveNodeService } from "./node-service-CSjH-x4O.js";
|
|
33
33
|
import { n as redactSecrets, t as formatGatewayAuthUsed } from "./format-BCAtE7cT.js";
|
|
34
|
-
import { i as resolveUpdateAvailability, n as formatUpdateOneLiner, r as getUpdateCheckResult, t as formatUpdateAvailableHint } from "./status.update-
|
|
34
|
+
import { i as resolveUpdateAvailability, n as formatUpdateOneLiner, r as getUpdateCheckResult, t as formatUpdateAvailableHint } from "./status.update-DREm9Pli.js";
|
|
35
35
|
import { spawnSync } from "node:child_process";
|
|
36
36
|
import os from "node:os";
|
|
37
37
|
import path from "node:path";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as formatCliCommand } from "./command-format-B9HGdNTg.js";
|
|
2
2
|
import { t as resolveAnimaPackageRoot } from "./anima-root-DBcJL1ZM.js";
|
|
3
|
-
import { j as VERSION } from "./io-
|
|
3
|
+
import { j as VERSION } from "./io-CHeqqEl4.js";
|
|
4
4
|
import { n as checkUpdateStatus, r as compareSemverStrings } from "./channels-status-issues-Brky9enJ.js";
|
|
5
5
|
|
|
6
6
|
//#region src/commands/status.update.ts
|
|
@@ -3,11 +3,11 @@ import { Z as resolveStateDir, h as defaultRuntime, o as createSubsystemLogger }
|
|
|
3
3
|
import { _ as isAcpSessionKey, d as resolveAgentIdFromSessionKey, g as getSubagentDepth, u as normalizeMainKey, x as parseAgentSessionKey } from "./session-key-DP2WHl90.js";
|
|
4
4
|
import { c as resolveDefaultAgentId, l as resolveSessionAgentId } from "./agent-scope-QT1urvJx.js";
|
|
5
5
|
import { n as saveJsonFile, t as loadJsonFile } from "./json-file-CB2TLjwS.js";
|
|
6
|
-
import { f as parseDurationMs, n as loadConfig } from "./io-
|
|
7
|
-
import { n as callGateway } from "./call-
|
|
6
|
+
import { f as parseDurationMs, n as loadConfig } from "./io-CHeqqEl4.js";
|
|
7
|
+
import { n as callGateway } from "./call-CtVjogkV.js";
|
|
8
8
|
import { l as normalizeMessageChannel, t as INTERNAL_MESSAGE_CHANNEL } from "./message-channel-BiajZfgz.js";
|
|
9
9
|
import { _ as waitForEmbeddedPiRunEnd, c as stripHeartbeatToken, f as isEmbeddedPiRunActive, h as resolveEmbeddedSessionLane, l as CommandLane, m as queueEmbeddedPiMessage, n as AGENT_LANE_NESTED, t as resolveAgentTimeoutMs, x as onAgentEvent } from "./timeout-CXND7zJu.js";
|
|
10
|
-
import { F as normalizeDeliveryContext, M as deliveryContextFromSession, N as deliveryContextKey, P as mergeDeliveryContext, S as resolveMainSessionKey, i as loadSessionStore } from "./sessions-
|
|
10
|
+
import { F as normalizeDeliveryContext, M as deliveryContextFromSession, N as deliveryContextKey, P as mergeDeliveryContext, S as resolveMainSessionKey, i as loadSessionStore } from "./sessions-CO93wesA.js";
|
|
11
11
|
import { n as resolveEffectiveMessagesConfig } from "./identity-CflMRbky.js";
|
|
12
12
|
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-zFmidMaf.js";
|
|
13
13
|
import { b as sanitizeUserFacingText } from "./pi-embedded-helpers-DzLrWN23.js";
|
|
@@ -16,7 +16,7 @@ import { n as SILENT_REPLY_TOKEN, r as isSilentReplyText, t as HEARTBEAT_TOKEN }
|
|
|
16
16
|
import os from "node:os";
|
|
17
17
|
import path from "node:path";
|
|
18
18
|
import fs from "node:fs";
|
|
19
|
-
import
|
|
19
|
+
import JSON5 from "json5";
|
|
20
20
|
import crypto from "node:crypto";
|
|
21
21
|
|
|
22
22
|
//#region src/utils/queue-helpers.ts
|
|
@@ -1000,7 +1000,7 @@ async function routeReply(params) {
|
|
|
1000
1000
|
const resolvedReplyToId = replyToId ?? (channelId === "slack" && threadId != null && threadId !== "" ? String(threadId) : void 0);
|
|
1001
1001
|
const resolvedThreadId = channelId === "slack" ? null : threadId ?? null;
|
|
1002
1002
|
try {
|
|
1003
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
1003
|
+
const { deliverOutboundPayloads } = await import("./deliver-COTg5qFH.js").then((n) => n.n);
|
|
1004
1004
|
return {
|
|
1005
1005
|
ok: true,
|
|
1006
1006
|
messageId: (await deliverOutboundPayloads({
|
|
@@ -1235,7 +1235,7 @@ function normalizeSessionKey(value) {
|
|
|
1235
1235
|
function readSessionStore(storePath) {
|
|
1236
1236
|
try {
|
|
1237
1237
|
const raw = fs.readFileSync(storePath, "utf-8");
|
|
1238
|
-
const parsed =
|
|
1238
|
+
const parsed = JSON5.parse(raw);
|
|
1239
1239
|
if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) return parsed;
|
|
1240
1240
|
} catch {}
|
|
1241
1241
|
return {};
|
|
@@ -5,13 +5,13 @@ import { n as defaultRuntime, t as createSubsystemLogger } from "./subsystem-BlE
|
|
|
5
5
|
import { E as shortenHomeInString, a as logDebug, l as CONFIG_DIR, o as logError, p as ensureDir$1, w as resolveUserPath } from "./exec-BedOwP7n.js";
|
|
6
6
|
import { c as resolveDefaultAgentId, l as resolveSessionAgentId, n as resolveAgentConfig } from "./agent-scope-bF9QUUNB.js";
|
|
7
7
|
import { a as queueEmbeddedPiMessage, c as waitForEmbeddedPiRunEnd, o as resolveEmbeddedSessionLane, r as isEmbeddedPiRunActive } from "./pi-embedded-CVojjlMb.js";
|
|
8
|
-
import { At as HEARTBEAT_TOKEN, Ct as resolveMainSessionKey, Mt as isSilentReplyText, ct as deliveryContextKey, jt as SILENT_REPLY_TOKEN, lt as mergeDeliveryContext, st as deliveryContextFromSession, tt as loadSessionStore, ut as normalizeDeliveryContext, v as sanitizeUserFacingText } from "./pi-embedded-helpers-
|
|
8
|
+
import { At as HEARTBEAT_TOKEN, Ct as resolveMainSessionKey, Mt as isSilentReplyText, ct as deliveryContextKey, jt as SILENT_REPLY_TOKEN, lt as mergeDeliveryContext, st as deliveryContextFromSession, tt as loadSessionStore, ut as normalizeDeliveryContext, v as sanitizeUserFacingText } from "./pi-embedded-helpers-sqsbN-zA.js";
|
|
9
9
|
import { n as saveJsonFile, t as loadJsonFile } from "./json-file-CZ3ssFR9.js";
|
|
10
10
|
import { A as normalizeMessageChannel, C as normalizeChannelId, F as GATEWAY_CLIENT_NAMES, N as GATEWAY_CLIENT_IDS, P as GATEWAY_CLIENT_MODES, w as INTERNAL_MESSAGE_CHANNEL, x as getChannelPlugin } from "./image-ops-B9l57jLE.js";
|
|
11
11
|
import { c as parseDurationMs, n as loadConfig } from "./config-DlcnfxIz.js";
|
|
12
12
|
import { s as resolveStorePath } from "./paths-BGnstOq4.js";
|
|
13
|
-
import { a as resolveAgentTimeoutMs, c as CommandLane, o as AGENT_LANE_NESTED, r as onAgentEvent, u as stripHeartbeatToken } from "./agent-events-
|
|
14
|
-
import { S as pickPrimaryTailnetIPv4, x as pickPrimaryLanIPv4, y as rawDataToString } from "./chrome-
|
|
13
|
+
import { a as resolveAgentTimeoutMs, c as CommandLane, o as AGENT_LANE_NESTED, r as onAgentEvent, u as stripHeartbeatToken } from "./agent-events-k0oEWcJi.js";
|
|
14
|
+
import { S as pickPrimaryTailnetIPv4, x as pickPrimaryLanIPv4, y as rawDataToString } from "./chrome-DZ7VChHP.js";
|
|
15
15
|
import { t as INPUT_PROVENANCE_KIND_VALUES } from "./input-provenance-MbkIKHHL.js";
|
|
16
16
|
import fs from "node:fs/promises";
|
|
17
17
|
import os from "node:os";
|
|
@@ -22,7 +22,7 @@ import { execFile } from "node:child_process";
|
|
|
22
22
|
import { promisify } from "node:util";
|
|
23
23
|
import crypto, { X509Certificate, randomUUID } from "node:crypto";
|
|
24
24
|
import AjvPkg from "ajv";
|
|
25
|
-
import { WebSocket } from "ws";
|
|
25
|
+
import { WebSocket as WebSocket$1 } from "ws";
|
|
26
26
|
import { Type } from "@sinclair/typebox";
|
|
27
27
|
|
|
28
28
|
//#region src/infra/device-identity.ts
|
|
@@ -1489,7 +1489,7 @@ var GatewayClient = class {
|
|
|
1489
1489
|
if (fingerprint !== expected) return /* @__PURE__ */ new Error("ANIMA Gateway TLS fingerprint mismatch");
|
|
1490
1490
|
});
|
|
1491
1491
|
}
|
|
1492
|
-
this.ws = new WebSocket(url, wsOptions);
|
|
1492
|
+
this.ws = new WebSocket$1(url, wsOptions);
|
|
1493
1493
|
this.ws.on("open", () => {
|
|
1494
1494
|
if (url.startsWith("wss://") && this.opts.tlsFingerprint) {
|
|
1495
1495
|
const tlsError = this.validateTlsFingerprint();
|
|
@@ -1692,7 +1692,7 @@ var GatewayClient = class {
|
|
|
1692
1692
|
return null;
|
|
1693
1693
|
}
|
|
1694
1694
|
async request(method, params, opts) {
|
|
1695
|
-
if (!this.ws || this.ws.readyState !== WebSocket.OPEN) throw new Error("ANIMA Gateway not connected");
|
|
1695
|
+
if (!this.ws || this.ws.readyState !== WebSocket$1.OPEN) throw new Error("ANIMA Gateway not connected");
|
|
1696
1696
|
const id = randomUUID();
|
|
1697
1697
|
const frame = {
|
|
1698
1698
|
type: "req",
|
|
@@ -2713,7 +2713,7 @@ async function routeReply(params) {
|
|
|
2713
2713
|
const resolvedReplyToId = replyToId ?? (channelId === "slack" && threadId != null && threadId !== "" ? String(threadId) : void 0);
|
|
2714
2714
|
const resolvedThreadId = channelId === "slack" ? null : threadId ?? null;
|
|
2715
2715
|
try {
|
|
2716
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
2716
|
+
const { deliverOutboundPayloads } = await import("./deliver-D9gk6vPm.js").then((n) => n.n);
|
|
2717
2717
|
return {
|
|
2718
2718
|
ok: true,
|
|
2719
2719
|
messageId: (await deliverOutboundPayloads({
|
|
@@ -4,15 +4,15 @@ import "./exec-Dmz2Tr6K.js";
|
|
|
4
4
|
import "./agent-scope-QT1urvJx.js";
|
|
5
5
|
import "./model-selection-01zouBRC.js";
|
|
6
6
|
import "./manifest-registry-BHcAJo9u.js";
|
|
7
|
-
import "./io-
|
|
7
|
+
import "./io-CHeqqEl4.js";
|
|
8
8
|
import "./shell-env-DAw9qXji.js";
|
|
9
|
-
import "./config-
|
|
9
|
+
import "./config-CW3mWEFv.js";
|
|
10
10
|
import "./client-Dz6cszHd.js";
|
|
11
|
-
import "./call-
|
|
11
|
+
import "./call-CtVjogkV.js";
|
|
12
12
|
import "./message-channel-BiajZfgz.js";
|
|
13
13
|
import { t as formatDocsLink } from "./links-DtaFNkkY.js";
|
|
14
14
|
import "./progress-IbQIsvcD.js";
|
|
15
|
-
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-
|
|
15
|
+
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-D7Nplm8G.js";
|
|
16
16
|
|
|
17
17
|
//#region src/cli/system-cli.ts
|
|
18
18
|
const normalizeWakeMode = (raw) => {
|
|
@@ -2,12 +2,12 @@ import { m as visibleWidth, p as stripAnsi } from "./entry.js";
|
|
|
2
2
|
import { i as buildAgentMainSessionKey, l as normalizeAgentId, u as normalizeMainKey, x as parseAgentSessionKey } from "./session-key-DP2WHl90.js";
|
|
3
3
|
import { x as shortenHomeInString } from "./utils-DwcweD55.js";
|
|
4
4
|
import { c as resolveDefaultAgentId } from "./agent-scope-QT1urvJx.js";
|
|
5
|
-
import { j as VERSION, n as loadConfig } from "./io-
|
|
5
|
+
import { j as VERSION, n as loadConfig } from "./io-CHeqqEl4.js";
|
|
6
6
|
import { Dt as PROTOCOL_VERSION, t as GatewayClient } from "./client-Dz6cszHd.js";
|
|
7
|
-
import { i as ensureExplicitGatewayAuth, o as resolveExplicitGatewayAuth, t as buildGatewayConnectionDetails } from "./call-
|
|
7
|
+
import { i as ensureExplicitGatewayAuth, o as resolveExplicitGatewayAuth, t as buildGatewayConnectionDetails } from "./call-CtVjogkV.js";
|
|
8
8
|
import { f as GATEWAY_CLIENT_CAPS, h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-BiajZfgz.js";
|
|
9
9
|
import { c as normalizeUsageDisplay, m as formatRawAssistantErrorForUi, r as listThinkingLevelLabels, t as formatThinkingLevels, u as resolveResponseUsageMode } from "./pi-embedded-helpers-DzLrWN23.js";
|
|
10
|
-
import { n as listChatCommands, r as listChatCommandsForConfig } from "./parse-timeout-
|
|
10
|
+
import { n as listChatCommands, r as listChatCommandsForConfig } from "./parse-timeout-CZ6_B_Wu.js";
|
|
11
11
|
import { n as formatTimeAgo, t as formatRelativeTimestamp } from "./format-relative-D4GQsWlP.js";
|
|
12
12
|
import { n as formatTokenCount } from "./usage-format-D5snHLet.js";
|
|
13
13
|
import { r as redactToolDetail } from "./redact-Bk0VS_m7.js";
|
|
@@ -3,30 +3,30 @@ import "./utils-DwcweD55.js";
|
|
|
3
3
|
import "./exec-Dmz2Tr6K.js";
|
|
4
4
|
import "./agent-scope-QT1urvJx.js";
|
|
5
5
|
import "./model-selection-01zouBRC.js";
|
|
6
|
-
import "./skills-
|
|
6
|
+
import "./skills-CG8iI6v6.js";
|
|
7
7
|
import "./manifest-registry-BHcAJo9u.js";
|
|
8
|
-
import "./io-
|
|
8
|
+
import "./io-CHeqqEl4.js";
|
|
9
9
|
import "./shell-env-DAw9qXji.js";
|
|
10
|
-
import "./config-
|
|
10
|
+
import "./config-CW3mWEFv.js";
|
|
11
11
|
import "./client-Dz6cszHd.js";
|
|
12
|
-
import "./call-
|
|
12
|
+
import "./call-CtVjogkV.js";
|
|
13
13
|
import "./message-channel-BiajZfgz.js";
|
|
14
|
-
import "./sessions-
|
|
14
|
+
import "./sessions-CO93wesA.js";
|
|
15
15
|
import "./plugins-zFmidMaf.js";
|
|
16
16
|
import "./pi-embedded-helpers-DzLrWN23.js";
|
|
17
|
-
import "./sandbox-
|
|
17
|
+
import "./sandbox-C9Ow3VqW.js";
|
|
18
18
|
import "./chrome-ghYAPiTX.js";
|
|
19
19
|
import "./auth-FzNxH03k.js";
|
|
20
|
-
import "./server-context-
|
|
21
|
-
import "./routes-
|
|
20
|
+
import "./server-context-B7l8uLo0.js";
|
|
21
|
+
import "./routes-BC-Mvhwy.js";
|
|
22
22
|
import "./image-ops-O-_KYHXN.js";
|
|
23
23
|
import "./ports-D7xIe6xi.js";
|
|
24
24
|
import "./paths-BEkHcryg.js";
|
|
25
25
|
import "./tool-images-Dny5tC-K.js";
|
|
26
|
-
import { t as parseTimeoutMs } from "./parse-timeout-
|
|
26
|
+
import { t as parseTimeoutMs } from "./parse-timeout-CZ6_B_Wu.js";
|
|
27
27
|
import "./redact-Bk0VS_m7.js";
|
|
28
28
|
import { t as formatDocsLink } from "./links-DtaFNkkY.js";
|
|
29
|
-
import { t as runTui } from "./tui-
|
|
29
|
+
import { t as runTui } from "./tui-C2XIQ9jV.js";
|
|
30
30
|
|
|
31
31
|
//#region src/cli/tui-cli.ts
|
|
32
32
|
function registerTuiCli(program) {
|
|
@@ -9,26 +9,26 @@ import "./model-selection-01zouBRC.js";
|
|
|
9
9
|
import "./file-lock-CxXn285m.js";
|
|
10
10
|
import "./agent-paths-CrZhIsTW.js";
|
|
11
11
|
import "./pi-model-discovery-DgwvfEmd.js";
|
|
12
|
-
import "./skills-
|
|
12
|
+
import "./skills-CG8iI6v6.js";
|
|
13
13
|
import "./manifest-registry-BHcAJo9u.js";
|
|
14
|
-
import "./skills-status-
|
|
15
|
-
import { i as readConfigFileSnapshot, s as writeConfigFile } from "./io-
|
|
14
|
+
import "./skills-status-CNEd8Dm9.js";
|
|
15
|
+
import { i as readConfigFileSnapshot, s as writeConfigFile } from "./io-CHeqqEl4.js";
|
|
16
16
|
import "./shell-env-DAw9qXji.js";
|
|
17
|
-
import "./config-
|
|
17
|
+
import "./config-CW3mWEFv.js";
|
|
18
18
|
import "./client-Dz6cszHd.js";
|
|
19
|
-
import "./call-
|
|
19
|
+
import "./call-CtVjogkV.js";
|
|
20
20
|
import "./message-channel-BiajZfgz.js";
|
|
21
21
|
import "./timeout-CXND7zJu.js";
|
|
22
|
-
import "./sessions-
|
|
23
|
-
import "./subagent-registry-
|
|
22
|
+
import "./sessions-CO93wesA.js";
|
|
23
|
+
import "./subagent-registry-BfTldsNb.js";
|
|
24
24
|
import "./identity-CflMRbky.js";
|
|
25
25
|
import "./plugins-zFmidMaf.js";
|
|
26
26
|
import "./pi-embedded-helpers-DzLrWN23.js";
|
|
27
|
-
import "./sandbox-
|
|
27
|
+
import "./sandbox-C9Ow3VqW.js";
|
|
28
28
|
import "./chrome-ghYAPiTX.js";
|
|
29
29
|
import "./auth-FzNxH03k.js";
|
|
30
|
-
import "./server-context-
|
|
31
|
-
import "./routes-
|
|
30
|
+
import "./server-context-B7l8uLo0.js";
|
|
31
|
+
import "./routes-BC-Mvhwy.js";
|
|
32
32
|
import "./image-ops-O-_KYHXN.js";
|
|
33
33
|
import "./ports-D7xIe6xi.js";
|
|
34
34
|
import "./paths-BEkHcryg.js";
|
|
@@ -37,16 +37,16 @@ import "./tokens-DCf522am.js";
|
|
|
37
37
|
import "./media-BrtQHQhO.js";
|
|
38
38
|
import "./chunk-ChJt8EsD.js";
|
|
39
39
|
import "./common-BGjkU4kk.js";
|
|
40
|
-
import "./control-service-
|
|
41
|
-
import "./cli-session-
|
|
42
|
-
import { j as trimLogTail } from "./reply-
|
|
40
|
+
import "./control-service-C1xo0dfl.js";
|
|
41
|
+
import "./cli-session-C_Pb_tJG.js";
|
|
42
|
+
import { j as trimLogTail } from "./reply-DiXFAQ6Y.js";
|
|
43
43
|
import "./model-auth-ajey777y.js";
|
|
44
|
-
import "./context-
|
|
45
|
-
import "./parse-timeout-
|
|
46
|
-
import "./deliver-
|
|
47
|
-
import "./pi-tools.policy-
|
|
44
|
+
import "./context-C-EeDlhY.js";
|
|
45
|
+
import "./parse-timeout-CZ6_B_Wu.js";
|
|
46
|
+
import "./deliver-COTg5qFH.js";
|
|
47
|
+
import "./pi-tools.policy-DksWz3BP.js";
|
|
48
48
|
import { r as formatDurationPrecise } from "./format-duration-RY4rhz_Z.js";
|
|
49
|
-
import "./memory-cli-
|
|
49
|
+
import "./memory-cli-B3CyQMHl.js";
|
|
50
50
|
import "./manager-z25H5SAC.js";
|
|
51
51
|
import "./sqlite-B5LCMIbh.js";
|
|
52
52
|
import "./redact-Bk0VS_m7.js";
|
|
@@ -58,45 +58,45 @@ import { t as formatDocsLink } from "./links-DtaFNkkY.js";
|
|
|
58
58
|
import "./progress-IbQIsvcD.js";
|
|
59
59
|
import "./logging-DhWghNIK.js";
|
|
60
60
|
import "./auth-store-6mqMhd96.js";
|
|
61
|
-
import "./dispatcher-
|
|
61
|
+
import "./dispatcher-DQsImjGf.js";
|
|
62
62
|
import "./delivery-queue-bafdRh4B.js";
|
|
63
63
|
import "./session-cost-usage-D2RKVFwJ.js";
|
|
64
64
|
import "./accounts-D_Or1tM0.js";
|
|
65
|
-
import "./register.subclis-
|
|
66
|
-
import "./command-registry-
|
|
65
|
+
import "./register.subclis-APOnK1oY.js";
|
|
66
|
+
import "./command-registry-CNfXgZ7o.js";
|
|
67
67
|
import "./program-context-KVifve7K.js";
|
|
68
|
-
import { r as installCompletion } from "./completion-cli-
|
|
69
|
-
import "./daemon-runtime-
|
|
68
|
+
import { r as installCompletion } from "./completion-cli-BkFQCDYI.js";
|
|
69
|
+
import "./daemon-runtime-D5KhD82Y.js";
|
|
70
70
|
import { r as parseSemver } from "./runtime-guard-CPcNpD_J.js";
|
|
71
|
-
import "./onboard-helpers-
|
|
71
|
+
import "./onboard-helpers-BnB7o14v.js";
|
|
72
72
|
import { n as stylePromptMessage, t as stylePromptHint } from "./prompt-style-CtqNME6o.js";
|
|
73
73
|
import "./systemd-DMnpU3vJ.js";
|
|
74
74
|
import "./service-Df_H0-VH.js";
|
|
75
75
|
import "./lifecycle-core-BAgYqtjQ.js";
|
|
76
|
-
import { r as runDaemonRestart } from "./daemon-cli-
|
|
76
|
+
import { r as runDaemonRestart } from "./daemon-cli-YXtw9DJy.js";
|
|
77
77
|
import "./diagnostics-DUEfwTso.js";
|
|
78
|
-
import "./service-audit-
|
|
78
|
+
import "./service-audit-BCC0aFGF.js";
|
|
79
79
|
import { t as renderTable } from "./table-C2NJJLb2.js";
|
|
80
|
-
import "./health-
|
|
80
|
+
import "./health-btYQz_wA.js";
|
|
81
81
|
import "./catalog-BLrEgoPa.js";
|
|
82
82
|
import "./plugin-auto-enable-BTi8mF_C.js";
|
|
83
83
|
import "./health-format-DikxNm9W.js";
|
|
84
84
|
import { c as DEFAULT_GIT_CHANNEL, d as channelToNpmTag, f as formatUpdateChannelLabel, g as resolveEffectiveUpdateChannel, h as normalizeUpdateChannel, i as fetchNpmTagVersion, l as DEFAULT_PACKAGE_CHANNEL, n as checkUpdateStatus, o as resolveNpmChannelTag, r as compareSemverStrings } from "./channels-status-issues-Brky9enJ.js";
|
|
85
85
|
import "./logging-DMCxh6UT.js";
|
|
86
86
|
import "./note-BwhOxUoJ.js";
|
|
87
|
-
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-
|
|
87
|
+
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-CZj6kSxM.js";
|
|
88
88
|
import "./skill-scanner-CPBwCQc4.js";
|
|
89
|
-
import { i as resolveUpdateAvailability, n as formatUpdateOneLiner, t as formatUpdateAvailableHint } from "./status.update-
|
|
89
|
+
import { i as resolveUpdateAvailability, n as formatUpdateOneLiner, t as formatUpdateAvailableHint } from "./status.update-DREm9Pli.js";
|
|
90
90
|
import "./archive-CNqghdwQ.js";
|
|
91
|
-
import { a as globalInstallArgs, i as detectGlobalInstallManagerForRoot, n as cleanupGlobalRenameDirs, o as resolveGlobalPackageRoot, r as detectGlobalInstallManagerByPresence, t as runGatewayUpdate } from "./update-runner-
|
|
91
|
+
import { a as globalInstallArgs, i as detectGlobalInstallManagerForRoot, n as cleanupGlobalRenameDirs, o as resolveGlobalPackageRoot, r as detectGlobalInstallManagerByPresence, t as runGatewayUpdate } from "./update-runner-DfXRVjBp.js";
|
|
92
92
|
import "./npm-registry-spec-CzobuF_v.js";
|
|
93
93
|
import "./installs-CdufPfQa.js";
|
|
94
94
|
import { n as updateNpmInstalledPlugins, t as syncPluginsForUpdateChannel } from "./update-ClJ6Zq2b.js";
|
|
95
|
-
import "./doctor-config-flow-
|
|
95
|
+
import "./doctor-config-flow-BKTWsoKo.js";
|
|
96
96
|
import { t as formatHelpExamples } from "./help-format-COStKSFI.js";
|
|
97
97
|
import "./systemd-linger-BV9rUksz.js";
|
|
98
98
|
import "./auth-health-B_3wexOu.js";
|
|
99
|
-
import { t as doctorCommand } from "./doctor-
|
|
99
|
+
import { t as doctorCommand } from "./doctor-Bby-UShx.js";
|
|
100
100
|
import { spawnSync } from "node:child_process";
|
|
101
101
|
import os from "node:os";
|
|
102
102
|
import path from "node:path";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h as pathExists } from "./utils-DwcweD55.js";
|
|
2
2
|
import { t as runCommandWithTimeout } from "./exec-Dmz2Tr6K.js";
|
|
3
|
-
import { j as trimLogTail } from "./reply-
|
|
3
|
+
import { j as trimLogTail } from "./reply-DiXFAQ6Y.js";
|
|
4
4
|
import { i as resolveControlUiDistIndexPathForRoot, r as resolveControlUiDistIndexHealth } from "./health-format-DikxNm9W.js";
|
|
5
5
|
import { d as channelToNpmTag, l as DEFAULT_PACKAGE_CHANNEL, m as isStableTag, p as isBetaTag, r as compareSemverStrings, s as detectPackageManager$1, u as DEV_BRANCH } from "./channels-status-issues-Brky9enJ.js";
|
|
6
6
|
import os from "node:os";
|
|
@@ -3,13 +3,13 @@ import { t as createSubsystemLogger, v as logVerbose, x as shouldLogVerbose } fr
|
|
|
3
3
|
import { _ as isRecord, l as CONFIG_DIR, m as escapeRegExp, n as runExec, t as runCommandWithTimeout, w as resolveUserPath } from "./exec-BedOwP7n.js";
|
|
4
4
|
import { c as resolveDefaultAgentId, s as resolveAgentWorkspaceDir, u as resolveSessionAgentIds } from "./agent-scope-bF9QUUNB.js";
|
|
5
5
|
import { t as formatCliCommand } from "./command-format-CZk1W3UP.js";
|
|
6
|
-
import { M as resolvePluginSkillDirs, Ot as normalizeChatType, X as resolveBootstrapMaxChars, Y as buildBootstrapContextFiles, Z as resolveBootstrapTotalMaxChars, at as updateSessionStore, f as classifyFailoverReason, g as isLikelyContextOverflowError, h as isFailoverErrorMessage, jt as SILENT_REPLY_TOKEN, st as deliveryContextFromSession } from "./pi-embedded-helpers-
|
|
6
|
+
import { M as resolvePluginSkillDirs, Ot as normalizeChatType, X as resolveBootstrapMaxChars, Y as buildBootstrapContextFiles, Z as resolveBootstrapTotalMaxChars, at as updateSessionStore, f as classifyFailoverReason, g as isLikelyContextOverflowError, h as isFailoverErrorMessage, jt as SILENT_REPLY_TOKEN, st as deliveryContextFromSession } from "./pi-embedded-helpers-sqsbN-zA.js";
|
|
7
7
|
import { c as resolveAnimaAgentDir, n as resolveAuthProfileOrder, o as ensureAuthProfileStore, r as isProfileInCooldown } from "./auth-profiles-B_mkty1M.js";
|
|
8
8
|
import { a as modelKey, d as resolveModelRefFromString, h as DEFAULT_PROVIDER, l as resolveConfiguredModelRef, m as DEFAULT_MODEL, n as buildConfiguredAllowlistKeys, o as normalizeModelRef, r as buildModelAliasIndex, s as normalizeProviderId, u as resolveDefaultModelForAgent } from "./model-selection-B66y1XA8.js";
|
|
9
9
|
import { A as normalizeMessageChannel, C as normalizeChannelId, T as isDeliverableMessageChannel, c as getFileExtension, f as normalizeMimeType, k as listDeliverableMessageChannels, w as INTERNAL_MESSAGE_CHANNEL, x as getChannelPlugin } from "./image-ops-B9l57jLE.js";
|
|
10
10
|
import { n as loadConfig } from "./config-DlcnfxIz.js";
|
|
11
11
|
import { s as isTruthyEnvValue } from "./shell-env-5vFwNQcz.js";
|
|
12
|
-
import { l as resolveHeartbeatPrompt } from "./agent-events-
|
|
12
|
+
import { l as resolveHeartbeatPrompt } from "./agent-events-k0oEWcJi.js";
|
|
13
13
|
import { i as triggerInternalHook, t as createInternalHookEvent } from "./internal-hooks-CmG29WRF.js";
|
|
14
14
|
import { r as requireApiKey, t as getApiKeyForModel } from "./model-auth-C3AmsTxg.js";
|
|
15
15
|
import fs from "node:fs/promises";
|
|
@@ -6,7 +6,7 @@ import { c as resolveDefaultAgentId, i as resolveAgentModelFallbacksOverride, l
|
|
|
6
6
|
import { a as queueEmbeddedPiMessage, c as waitForEmbeddedPiRunEnd, i as isEmbeddedPiRunStreaming, n as compactEmbeddedPiSession, o as resolveEmbeddedSessionLane, r as isEmbeddedPiRunActive, s as runEmbeddedPiAgent, t as abortEmbeddedPiRun } from "./pi-embedded-CVojjlMb.js";
|
|
7
7
|
import { n as resolveCliName, t as formatCliCommand } from "./command-format-CZk1W3UP.js";
|
|
8
8
|
import { d as webAuthExists, i as logoutWeb, n as getWebAuthAgeMs, o as pickWebChannel, r as logWebSelfId, s as readWebSelfId, t as WA_WEB_AUTH_DIR } from "./auth-store-BKkCxlfA.js";
|
|
9
|
-
import { $ as appendAssistantMessageToSessionTranscript, A as buildWorkspaceSkillCommandSpecs, B as buildPluginToolGroups, C as resolveBrowserConfig, Ct as resolveMainSessionKey, D as DEFAULT_UPLOAD_DIR, Dt as resolveConversationLabel, E as saveMediaBuffer, Et as listChannelDocks, F as resolveSandboxedMediaSource, G as resolveToolProfilePolicy, H as expandPolicyWithPluginGroups, I as ensureBrowserControlAuth, J as matchesAnyGlobPattern, K as stripPluginOnlyAllowlist, L as resolveBrowserControlAuth, Mt as isSilentReplyText, N as assertMediaNotDataUrl, O as resolvePathsWithinRoot, Ot as normalizeChatType, P as assertSandboxPath, Q as extractDeliveryInfo, R as resolveSandboxConfigForAgent, S as registerBrowserRoutes, T as getMediaDir, Tt as getChannelDock, U as expandToolGroups, V as collectExplicitAllowlist, W as normalizeToolName, X as resolveBootstrapMaxChars, _ as isTransientHttpError, _t as resolveSessionResetType, a as normalizeReasoningLevel, at as updateSessionStore, b as resolveSandboxRuntimeStatus, bt as resolveFreshSessionTotalTokens, c as normalizeVerboseLevel, dt as normalizeSessionDeliveryFields, g as isLikelyContextOverflowError, gt as resolveSessionResetPolicy, ht as resolveChannelResetConfig, i as normalizeElevatedLevel, it as updateLastRoute, j as buildWorkspaceSkillSnapshot, jt as SILENT_REPLY_TOKEN, k as getBridgeAuthForPort, kt as resolveGroupSessionKey, l as resolveResponseUsageMode, m as isContextOverflowError, mt as evaluateSessionFreshness, n as formatXHighModelHint, nt as readSessionUpdatedAt, o as normalizeThinkLevel, ot as updateSessionStoreEntry, p as isCompactionFailureError, pt as resolveSessionKey, q as compileGlobPatterns, r as listThinkingLevels, rt as recordSessionMetaFromInbound, s as normalizeUsageDisplay, t as formatThinkingLevels, tt as loadSessionStore, u as supportsXHighThinking, ut as normalizeDeliveryContext, v as sanitizeUserFacingText, vt as resolveThreadFlag, w as resolveProfile, wt as deriveSessionMetaPatch, x as createBrowserRouteContext, xt as canonicalizeMainSessionAlias, y as ensureSandboxWorkspaceForSession, yt as DEFAULT_RESET_TRIGGERS, z as applyOwnerOnlyToolPolicy } from "./pi-embedded-helpers-
|
|
9
|
+
import { $ as appendAssistantMessageToSessionTranscript, A as buildWorkspaceSkillCommandSpecs, B as buildPluginToolGroups, C as resolveBrowserConfig, Ct as resolveMainSessionKey, D as DEFAULT_UPLOAD_DIR, Dt as resolveConversationLabel, E as saveMediaBuffer, Et as listChannelDocks, F as resolveSandboxedMediaSource, G as resolveToolProfilePolicy, H as expandPolicyWithPluginGroups, I as ensureBrowserControlAuth, J as matchesAnyGlobPattern, K as stripPluginOnlyAllowlist, L as resolveBrowserControlAuth, Mt as isSilentReplyText, N as assertMediaNotDataUrl, O as resolvePathsWithinRoot, Ot as normalizeChatType, P as assertSandboxPath, Q as extractDeliveryInfo, R as resolveSandboxConfigForAgent, S as registerBrowserRoutes, T as getMediaDir, Tt as getChannelDock, U as expandToolGroups, V as collectExplicitAllowlist, W as normalizeToolName, X as resolveBootstrapMaxChars, _ as isTransientHttpError, _t as resolveSessionResetType, a as normalizeReasoningLevel, at as updateSessionStore, b as resolveSandboxRuntimeStatus, bt as resolveFreshSessionTotalTokens, c as normalizeVerboseLevel, dt as normalizeSessionDeliveryFields, g as isLikelyContextOverflowError, gt as resolveSessionResetPolicy, ht as resolveChannelResetConfig, i as normalizeElevatedLevel, it as updateLastRoute, j as buildWorkspaceSkillSnapshot, jt as SILENT_REPLY_TOKEN, k as getBridgeAuthForPort, kt as resolveGroupSessionKey, l as resolveResponseUsageMode, m as isContextOverflowError, mt as evaluateSessionFreshness, n as formatXHighModelHint, nt as readSessionUpdatedAt, o as normalizeThinkLevel, ot as updateSessionStoreEntry, p as isCompactionFailureError, pt as resolveSessionKey, q as compileGlobPatterns, r as listThinkingLevels, rt as recordSessionMetaFromInbound, s as normalizeUsageDisplay, t as formatThinkingLevels, tt as loadSessionStore, u as supportsXHighThinking, ut as normalizeDeliveryContext, v as sanitizeUserFacingText, vt as resolveThreadFlag, w as resolveProfile, wt as deriveSessionMetaPatch, x as createBrowserRouteContext, xt as canonicalizeMainSessionAlias, y as ensureSandboxWorkspaceForSession, yt as DEFAULT_RESET_TRIGGERS, z as applyOwnerOnlyToolPolicy } from "./pi-embedded-helpers-sqsbN-zA.js";
|
|
10
10
|
import { a as listProfilesForProvider, d as normalizeSecretInput, f as resolveAuthProfileDisplayLabel, i as resolveApiKeyForProfile, l as withFileLock$1, n as resolveAuthProfileOrder, o as ensureAuthProfileStore, r as isProfileInCooldown, s as resolveAuthStorePathForDisplay } from "./auth-profiles-B_mkty1M.js";
|
|
11
11
|
import { a as modelKey, d as resolveModelRefFromString, f as resolveThinkingDefault, h as DEFAULT_PROVIDER, i as isCliProvider, l as resolveConfiguredModelRef, m as DEFAULT_MODEL, p as DEFAULT_CONTEXT_TOKENS, r as buildModelAliasIndex, s as normalizeProviderId, t as buildAllowedModelSet, u as resolveDefaultModelForAgent } from "./model-selection-B66y1XA8.js";
|
|
12
12
|
import { A as normalizeMessageChannel, C as normalizeChannelId$1, D as isInternalMessageChannel, F as GATEWAY_CLIENT_NAMES, M as resolveMessageChannel, N as GATEWAY_CLIENT_IDS, O as isMarkdownCapableMessageChannel, P as GATEWAY_CLIENT_MODES, S as listChannelPlugins, T as isDeliverableMessageChannel, a as resizeToJpeg, c as getFileExtension, d as kindFromMime, h as SsrFBlockedError, j as resolveGatewayMessageChannel, k as listDeliverableMessageChannels, l as imageMimeFromFormat, m as mediaKindFromMime, n as getImageMetadata, o as detectMime, s as extensionForMime, u as isAudioFileName, v as isBlockedHostname, w as INTERNAL_MESSAGE_CHANNEL, x as getChannelPlugin, y as isPrivateIpAddress } from "./image-ops-B9l57jLE.js";
|
|
@@ -14,18 +14,18 @@ import { C as unsetConfigValueAtPath, S as setConfigValueAtPath, _ as resetConfi
|
|
|
14
14
|
import "./boolean-BsqeuxE6.js";
|
|
15
15
|
import { i as resolveShellEnvFallbackTimeoutMs, n as getShellPathFromLoginShell } from "./shell-env-5vFwNQcz.js";
|
|
16
16
|
import { a as resolveSessionTranscriptPathInDir, i as resolveSessionTranscriptPath, n as resolveSessionFilePath, o as resolveSessionTranscriptsDirForAgent, r as resolveSessionFilePathOptions, s as resolveStorePath } from "./paths-BGnstOq4.js";
|
|
17
|
-
import { $ as isVoiceCompatibleAudio, A as getShellConfig, B as maybeApplyTtsToPayload, C as setCliSessionId, D as formatUserTime, E as buildSystemPromptParams, F as getTtsMaxLength, G as resolveTtsPrefsPath, H as resolveTtsApiKey, I as getTtsProvider, J as setTtsEnabled, K as setLastTtsAttempt, L as isSummarizationEnabled, M as sanitizeBinaryOutput, N as buildTtsSystemPromptHint, O as resolveUserTimeFormat, P as getLastTtsAttempt, Q as textToSpeechTelephony, R as isTtsEnabled, S as getCliSessionId, T as buildAgentSystemPrompt, U as resolveTtsAutoMode, V as normalizeTtsAutoMode, W as resolveTtsConfig, X as setTtsProvider, Y as setTtsMaxLength, Z as textToSpeech, _ as runWithModelFallback, a as lookupContextTokens, b as modelSupportsVision, c as ambiguousTargetError, d as applyModelOverrideToSessionEntry, et as resolveBootstrapContextForRun, f as applyVerboseOverride, g as runWithImageModelFallback, h as getSkillsSnapshotVersion, i as normalizeUsage, j as killProcessTree, k as resolveUserTimezone, l as unknownTargetError, m as ensureSkillsWatcher, n as deriveSessionTotalTokens, nt as resolveSessionAuthProfileOverride, o as resolveOutboundTarget, p as getRemoteSkillEligibility, q as setSummarizationEnabled, r as hasNonzeroUsage, s as resolveSessionDeliveryTarget, t as derivePromptTokens, tt as clearSessionAuthProfileOverride, u as resolveSendPolicy, v as findModelInCatalog, w as runCliAgent, x as ensureAnimaModelsJson, y as loadModelCatalog, z as isTtsProviderConfigured } from "./usage-
|
|
18
|
-
import { a as resolveAgentTimeoutMs, i as registerAgentRunContext, n as emitAgentEvent, o as AGENT_LANE_NESTED, s as AGENT_LANE_SUBAGENT, u as stripHeartbeatToken } from "./agent-events-
|
|
17
|
+
import { $ as isVoiceCompatibleAudio, A as getShellConfig, B as maybeApplyTtsToPayload, C as setCliSessionId, D as formatUserTime, E as buildSystemPromptParams, F as getTtsMaxLength, G as resolveTtsPrefsPath, H as resolveTtsApiKey, I as getTtsProvider, J as setTtsEnabled, K as setLastTtsAttempt, L as isSummarizationEnabled, M as sanitizeBinaryOutput, N as buildTtsSystemPromptHint, O as resolveUserTimeFormat, P as getLastTtsAttempt, Q as textToSpeechTelephony, R as isTtsEnabled, S as getCliSessionId, T as buildAgentSystemPrompt, U as resolveTtsAutoMode, V as normalizeTtsAutoMode, W as resolveTtsConfig, X as setTtsProvider, Y as setTtsMaxLength, Z as textToSpeech, _ as runWithModelFallback, a as lookupContextTokens, b as modelSupportsVision, c as ambiguousTargetError, d as applyModelOverrideToSessionEntry, et as resolveBootstrapContextForRun, f as applyVerboseOverride, g as runWithImageModelFallback, h as getSkillsSnapshotVersion, i as normalizeUsage, j as killProcessTree, k as resolveUserTimezone, l as unknownTargetError, m as ensureSkillsWatcher, n as deriveSessionTotalTokens, nt as resolveSessionAuthProfileOverride, o as resolveOutboundTarget, p as getRemoteSkillEligibility, q as setSummarizationEnabled, r as hasNonzeroUsage, s as resolveSessionDeliveryTarget, t as derivePromptTokens, tt as clearSessionAuthProfileOverride, u as resolveSendPolicy, v as findModelInCatalog, w as runCliAgent, x as ensureAnimaModelsJson, y as loadModelCatalog, z as isTtsProviderConfigured } from "./usage-ClDzxVdl.js";
|
|
18
|
+
import { a as resolveAgentTimeoutMs, i as registerAgentRunContext, n as emitAgentEvent, o as AGENT_LANE_NESTED, s as AGENT_LANE_SUBAGENT, u as stripHeartbeatToken } from "./agent-events-k0oEWcJi.js";
|
|
19
19
|
import { i as triggerInternalHook, r as registerInternalHook, t as createInternalHookEvent } from "./internal-hooks-CmG29WRF.js";
|
|
20
|
-
import { T as DEFAULT_AI_SNAPSHOT_MAX_CHARS, _ as ensureChromeExtensionRelayServer } from "./chrome-
|
|
20
|
+
import { T as DEFAULT_AI_SNAPSHOT_MAX_CHARS, _ as ensureChromeExtensionRelayServer } from "./chrome-DZ7VChHP.js";
|
|
21
21
|
import "./frontmatter-DDYuWuK5.js";
|
|
22
22
|
import { n as formatErrorMessage } from "./errors-DzK5Mvu0.js";
|
|
23
23
|
import { t as sanitizeToolResultImages } from "./tool-images-O4Gn9LXF.js";
|
|
24
24
|
import { a as resolveEnvApiKey, i as resolveApiKeyForProvider, n as getCustomProviderApiKey, o as resolveModelAuthMode, r as requireApiKey, t as getApiKeyForModel } from "./model-auth-C3AmsTxg.js";
|
|
25
25
|
import { a as chunkText, c as resolveTextChunkLimit, i as chunkMarkdownTextWithMode, o as chunkTextWithMode, r as chunkMarkdownText, s as resolveChunkMode, t as chunkByNewline } from "./chunk-uuju6yOD.js";
|
|
26
|
-
import { _ as parseReplyDirectives, b as initializeGlobalHookRunner, c as applyReplyThreading, d as shouldSuppressMessagingToolReplies, f as createReplyToModeFilterForChannel, g as normalizeTargetForProvider, h as normalizeChannelTargetInput, l as filterMessagingToolDuplicates, m as buildTargetResolverSignature, o as normalizeReplyPayloadsForDelivery, p as resolveReplyToMode, s as applyReplyTagsToPayload, t as deliverOutboundPayloads, u as isRenderablePayload, v as throwIfAborted, y as getGlobalHookRunner } from "./deliver-
|
|
26
|
+
import { _ as parseReplyDirectives, b as initializeGlobalHookRunner, c as applyReplyThreading, d as shouldSuppressMessagingToolReplies, f as createReplyToModeFilterForChannel, g as normalizeTargetForProvider, h as normalizeChannelTargetInput, l as filterMessagingToolDuplicates, m as buildTargetResolverSignature, o as normalizeReplyPayloadsForDelivery, p as resolveReplyToMode, s as applyReplyTagsToPayload, t as deliverOutboundPayloads, u as isRenderablePayload, v as throwIfAborted, y as getGlobalHookRunner } from "./deliver-D9gk6vPm.js";
|
|
27
27
|
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-C0F42S0T.js";
|
|
28
|
-
import { A as routeReply, B as getQueueSize, C as extractAssistantText, D as getFollowupQueueDepth, E as enqueueFollowupRun, F as resolveIdentityName, G as isDiagnosticsEnabled, H as logMessageQueued, I as resolveIdentityNamePrefix, J as takeDirectiveToken, K as extractQueueDirective, L as resolveMessagePrefix, M as extractShortModelName, N as resolveEffectiveMessagesConfig, O as scheduleFollowupDrain, P as resolveHumanDelayConfig, R as clearSessionQueues, S as stripToolMessages, T as resolveQueueSettings, U as logSessionStateChange, V as logMessageProcessed, W as emitDiagnosticEvent, X as randomIdempotencyKey, Y as callGateway, Z as SESSION_LABEL_MAX_LENGTH, _ as resolveInternalSessionKey, a as markSubagentRunTerminated, b as sanitizeTextContent, d as runAgentStep, f as classifySessionKind, g as resolveDisplaySessionKey, h as extractAssistantText$1, i as markSubagentRunForSteerRestart, j as normalizeReplyPayload, k as isRoutableChannel, l as buildSubagentSystemPrompt, m as deriveChannel, n as countActiveRunsForSession, o as registerSubagentRun, p as createAgentToAgentPolicy, q as skipDirectiveArgPrefix, r as listSubagentRunsForRequester, s as replaceSubagentRunAfterSteer, t as clearSubagentRunSteerRestart, u as readLatestAssistantReply, v as resolveMainSessionAlias, w as getSubagentDepthFromSessionStore, x as shouldResolveSessionIdInput, y as resolveSessionReference, z as clearCommandLane } from "./subagent-registry-
|
|
28
|
+
import { A as routeReply, B as getQueueSize, C as extractAssistantText, D as getFollowupQueueDepth, E as enqueueFollowupRun, F as resolveIdentityName, G as isDiagnosticsEnabled, H as logMessageQueued, I as resolveIdentityNamePrefix, J as takeDirectiveToken, K as extractQueueDirective, L as resolveMessagePrefix, M as extractShortModelName, N as resolveEffectiveMessagesConfig, O as scheduleFollowupDrain, P as resolveHumanDelayConfig, R as clearSessionQueues, S as stripToolMessages, T as resolveQueueSettings, U as logSessionStateChange, V as logMessageProcessed, W as emitDiagnosticEvent, X as randomIdempotencyKey, Y as callGateway, Z as SESSION_LABEL_MAX_LENGTH, _ as resolveInternalSessionKey, a as markSubagentRunTerminated, b as sanitizeTextContent, d as runAgentStep, f as classifySessionKind, g as resolveDisplaySessionKey, h as extractAssistantText$1, i as markSubagentRunForSteerRestart, j as normalizeReplyPayload, k as isRoutableChannel, l as buildSubagentSystemPrompt, m as deriveChannel, n as countActiveRunsForSession, o as registerSubagentRun, p as createAgentToAgentPolicy, q as skipDirectiveArgPrefix, r as listSubagentRunsForRequester, s as replaceSubagentRunAfterSteer, t as clearSubagentRunSteerRestart, u as readLatestAssistantReply, v as resolveMainSessionAlias, w as getSubagentDepthFromSessionStore, x as shouldResolveSessionIdInput, y as resolveSessionReference, z as clearCommandLane } from "./subagent-registry-CAKZ3Y17.js";
|
|
29
29
|
import { _ as resolveMarkdownTableMode, a as loadWebMedia, c as readResponseWithLimit, d as fetchWithTimeout, f as getActiveWebListener, g as convertMarkdownTables, h as markdownToWhatsApp, i as getDefaultLocalRoots, l as fetchWithSsrFGuard, m as normalizePollInput, n as sendMessageWhatsApp, o as MediaFetchError, p as setActiveWebListener, r as sendReactionWhatsApp, s as fetchRemoteMedia, u as bindAbortRelay } from "./outbound-CowR1H3T.js";
|
|
30
30
|
import { a as readNumberParam, c as readStringParam, i as jsonResult, n as imageResult, r as imageResultFromFile, s as readStringArrayParam } from "./common-XKgc0z3b.js";
|
|
31
31
|
import { n as resolveMemorySearchConfig } from "./manager-VYcbXpUc.js";
|
|
@@ -33,8 +33,8 @@ import { d as listMemoryFiles, f as normalizeExtraMemoryPaths } from "./sqlite-D
|
|
|
33
33
|
import "./session-CzBccNiw.js";
|
|
34
34
|
import "./semantic-BTp-RtM8.js";
|
|
35
35
|
import "./soul-CK8v0W4u.js";
|
|
36
|
-
import { a as waitForWaConnection, c as getContentType, d as DisconnectReason, i as getStatusCode, l as normalizeMessageContent, n as createWaSocket, o as downloadMediaMessage, r as formatError, s as extractMessageContent, t as resolveWhatsAppAccount, u as isJidGroup } from "./accounts-
|
|
37
|
-
import { t as loginWeb } from "./login-
|
|
36
|
+
import { a as waitForWaConnection, c as getContentType, d as DisconnectReason, i as getStatusCode, l as normalizeMessageContent, n as createWaSocket, o as downloadMediaMessage, r as formatError, s as extractMessageContent, t as resolveWhatsAppAccount, u as isJidGroup } from "./accounts-MCFGsqbc.js";
|
|
37
|
+
import { t as loginWeb } from "./login-C25KYCCB.js";
|
|
38
38
|
import { createRequire } from "node:module";
|
|
39
39
|
import * as fs$2 from "node:fs/promises";
|
|
40
40
|
import fs from "node:fs/promises";
|
|
@@ -13434,7 +13434,7 @@ function createWhatsAppLoginTool() {
|
|
|
13434
13434
|
force: Type.Optional(Type.Boolean())
|
|
13435
13435
|
}),
|
|
13436
13436
|
execute: async (_toolCallId, args) => {
|
|
13437
|
-
const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-
|
|
13437
|
+
const { startWebLoginWithQr, waitForWebLogin } = await import("./login-qr-Beuo6oxw.js");
|
|
13438
13438
|
if ((args?.action ?? "start") === "wait") {
|
|
13439
13439
|
const result = await waitForWebLogin({ timeoutMs: typeof args.timeoutMs === "number" ? args.timeoutMs : void 0 });
|
|
13440
13440
|
return {
|
|
@@ -14610,15 +14610,15 @@ function loadWebOutbound() {
|
|
|
14610
14610
|
return webOutboundPromise;
|
|
14611
14611
|
}
|
|
14612
14612
|
function loadWebLogin() {
|
|
14613
|
-
webLoginPromise ??= import("./login-
|
|
14613
|
+
webLoginPromise ??= import("./login-C25KYCCB.js").then((n) => n.n);
|
|
14614
14614
|
return webLoginPromise;
|
|
14615
14615
|
}
|
|
14616
14616
|
function loadWebLoginQr() {
|
|
14617
|
-
webLoginQrPromise ??= import("./login-qr-
|
|
14617
|
+
webLoginQrPromise ??= import("./login-qr-Beuo6oxw.js");
|
|
14618
14618
|
return webLoginQrPromise;
|
|
14619
14619
|
}
|
|
14620
14620
|
function loadWebChannel() {
|
|
14621
|
-
webChannelPromise ??= import("./web-
|
|
14621
|
+
webChannelPromise ??= import("./web-DBI1ImUV.js");
|
|
14622
14622
|
return webChannelPromise;
|
|
14623
14623
|
}
|
|
14624
14624
|
function loadWhatsAppActions() {
|
|
@@ -33014,7 +33014,7 @@ async function deliverSessionMaintenanceWarning(params) {
|
|
|
33014
33014
|
return;
|
|
33015
33015
|
}
|
|
33016
33016
|
try {
|
|
33017
|
-
const { deliverOutboundPayloads } = await import("./deliver-
|
|
33017
|
+
const { deliverOutboundPayloads } = await import("./deliver-D9gk6vPm.js").then((n) => n.n);
|
|
33018
33018
|
await deliverOutboundPayloads({
|
|
33019
33019
|
cfg: params.cfg,
|
|
33020
33020
|
channel,
|
|
@@ -9,25 +9,25 @@ import "./model-selection-01zouBRC.js";
|
|
|
9
9
|
import "./file-lock-CxXn285m.js";
|
|
10
10
|
import "./agent-paths-CrZhIsTW.js";
|
|
11
11
|
import "./pi-model-discovery-DgwvfEmd.js";
|
|
12
|
-
import "./skills-
|
|
12
|
+
import "./skills-CG8iI6v6.js";
|
|
13
13
|
import "./manifest-registry-BHcAJo9u.js";
|
|
14
|
-
import { n as loadConfig } from "./io-
|
|
14
|
+
import { n as loadConfig } from "./io-CHeqqEl4.js";
|
|
15
15
|
import "./shell-env-DAw9qXji.js";
|
|
16
|
-
import "./config-
|
|
16
|
+
import "./config-CW3mWEFv.js";
|
|
17
17
|
import "./client-Dz6cszHd.js";
|
|
18
|
-
import "./call-
|
|
18
|
+
import "./call-CtVjogkV.js";
|
|
19
19
|
import "./message-channel-BiajZfgz.js";
|
|
20
20
|
import "./timeout-CXND7zJu.js";
|
|
21
|
-
import { a as readSessionUpdatedAt, c as updateLastRoute, i as loadSessionStore, j as resolveGroupSessionKey, o as recordSessionMetaFromInbound } from "./sessions-
|
|
22
|
-
import "./subagent-registry-
|
|
21
|
+
import { a as readSessionUpdatedAt, c as updateLastRoute, i as loadSessionStore, j as resolveGroupSessionKey, o as recordSessionMetaFromInbound } from "./sessions-CO93wesA.js";
|
|
22
|
+
import "./subagent-registry-BfTldsNb.js";
|
|
23
23
|
import { a as resolveIdentityNamePrefix, o as resolveMessagePrefix } from "./identity-CflMRbky.js";
|
|
24
24
|
import "./plugins-zFmidMaf.js";
|
|
25
25
|
import "./pi-embedded-helpers-DzLrWN23.js";
|
|
26
|
-
import "./sandbox-
|
|
26
|
+
import "./sandbox-C9Ow3VqW.js";
|
|
27
27
|
import "./chrome-ghYAPiTX.js";
|
|
28
28
|
import "./auth-FzNxH03k.js";
|
|
29
|
-
import "./server-context-
|
|
30
|
-
import { r as saveMediaBuffer } from "./routes-
|
|
29
|
+
import "./server-context-B7l8uLo0.js";
|
|
30
|
+
import { r as saveMediaBuffer } from "./routes-BC-Mvhwy.js";
|
|
31
31
|
import "./image-ops-O-_KYHXN.js";
|
|
32
32
|
import "./ports-D7xIe6xi.js";
|
|
33
33
|
import { c as resolveStorePath } from "./paths-BEkHcryg.js";
|
|
@@ -35,18 +35,18 @@ import "./tool-images-Dny5tC-K.js";
|
|
|
35
35
|
import "./tokens-DCf522am.js";
|
|
36
36
|
import { d as setActiveWebListener, m as resolveMarkdownTableMode, n as loadWebMedia, p as convertMarkdownTables } from "./media-BrtQHQhO.js";
|
|
37
37
|
import { c as resolveTextChunkLimit, i as chunkMarkdownTextWithMode, s as resolveChunkMode } from "./chunk-ChJt8EsD.js";
|
|
38
|
-
import { i as markdownToWhatsApp, n as sendMessageWhatsApp, r as sendReactionWhatsApp } from "./outbound-
|
|
38
|
+
import { i as markdownToWhatsApp, n as sendMessageWhatsApp, r as sendReactionWhatsApp } from "./outbound-CttO4U0C.js";
|
|
39
39
|
import "./common-BGjkU4kk.js";
|
|
40
|
-
import "./control-service-
|
|
41
|
-
import { Wt as enqueueSystemEvent } from "./cli-session-
|
|
42
|
-
import { $ as buildPairingReply, Bt as finalizeInboundContext, Ct as normalizeMentionText, St as buildMentionRegexes, Tt as registerUnhandledRejectionHandler, X as resolveAgentRoute, Y as buildAgentSessionKey, ct as createInboundDebouncer, dt as resolveEnvelopeFormatOptions, f as normalizeGroupActivation, ft as hasControlCommand, lt as resolveInboundDebounceMs, nt as shouldAckReactionForWhatsApp, p as parseActivationCommand, pt as shouldComputeCommandAuthorized, rt as dispatchReplyWithBufferedBlockDispatcher, st as createDedupeCache, t as getReplyFromConfig, tt as recordChannelActivity, ut as formatInboundEnvelope } from "./reply-
|
|
40
|
+
import "./control-service-C1xo0dfl.js";
|
|
41
|
+
import { Wt as enqueueSystemEvent } from "./cli-session-C_Pb_tJG.js";
|
|
42
|
+
import { $ as buildPairingReply, Bt as finalizeInboundContext, Ct as normalizeMentionText, St as buildMentionRegexes, Tt as registerUnhandledRejectionHandler, X as resolveAgentRoute, Y as buildAgentSessionKey, ct as createInboundDebouncer, dt as resolveEnvelopeFormatOptions, f as normalizeGroupActivation, ft as hasControlCommand, lt as resolveInboundDebounceMs, nt as shouldAckReactionForWhatsApp, p as parseActivationCommand, pt as shouldComputeCommandAuthorized, rt as dispatchReplyWithBufferedBlockDispatcher, st as createDedupeCache, t as getReplyFromConfig, tt as recordChannelActivity, ut as formatInboundEnvelope } from "./reply-DiXFAQ6Y.js";
|
|
43
43
|
import "./model-auth-ajey777y.js";
|
|
44
|
-
import "./context-
|
|
45
|
-
import "./parse-timeout-
|
|
46
|
-
import "./deliver-
|
|
47
|
-
import { d as upsertChannelPairingRequest, l as readChannelAllowFromStore, o as resolveChannelGroupPolicy, s as resolveChannelGroupRequireMention } from "./pi-tools.policy-
|
|
44
|
+
import "./context-C-EeDlhY.js";
|
|
45
|
+
import "./parse-timeout-CZ6_B_Wu.js";
|
|
46
|
+
import "./deliver-COTg5qFH.js";
|
|
47
|
+
import { d as upsertChannelPairingRequest, l as readChannelAllowFromStore, o as resolveChannelGroupPolicy, s as resolveChannelGroupRequireMention } from "./pi-tools.policy-DksWz3BP.js";
|
|
48
48
|
import { r as formatDurationPrecise } from "./format-duration-RY4rhz_Z.js";
|
|
49
|
-
import "./memory-cli-
|
|
49
|
+
import "./memory-cli-B3CyQMHl.js";
|
|
50
50
|
import "./manager-z25H5SAC.js";
|
|
51
51
|
import "./sqlite-B5LCMIbh.js";
|
|
52
52
|
import "./redact-Bk0VS_m7.js";
|
|
@@ -58,13 +58,13 @@ import "./links-DtaFNkkY.js";
|
|
|
58
58
|
import "./progress-IbQIsvcD.js";
|
|
59
59
|
import "./logging-DhWghNIK.js";
|
|
60
60
|
import { c as readWebSelfId, f as webAuthExists, i as logWebSelfId, n as getWebAuthAgeMs, s as pickWebChannel, t as WA_WEB_AUTH_DIR } from "./auth-store-6mqMhd96.js";
|
|
61
|
-
import "./dispatcher-
|
|
61
|
+
import "./dispatcher-DQsImjGf.js";
|
|
62
62
|
import "./delivery-queue-bafdRh4B.js";
|
|
63
63
|
import "./session-cost-usage-D2RKVFwJ.js";
|
|
64
|
-
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-
|
|
65
|
-
import { i as recordPendingHistoryEntryIfEnabled, n as DEFAULT_GROUP_HISTORY_LIMIT, r as buildHistoryContextFromEntries, t as createReplyPrefixOptions } from "./reply-prefix-
|
|
64
|
+
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-CeToKqd8.js";
|
|
65
|
+
import { i as recordPendingHistoryEntryIfEnabled, n as DEFAULT_GROUP_HISTORY_LIMIT, r as buildHistoryContextFromEntries, t as createReplyPrefixOptions } from "./reply-prefix-BJ6vG158.js";
|
|
66
66
|
import { n as resolveWhatsAppAccount } from "./accounts-D_Or1tM0.js";
|
|
67
|
-
import { t as loginWeb } from "./login-
|
|
67
|
+
import { t as loginWeb } from "./login-DlQyFFdq.js";
|
|
68
68
|
import { randomUUID } from "node:crypto";
|
|
69
69
|
import { setTimeout } from "node:timers/promises";
|
|
70
70
|
|
|
@@ -4,13 +4,13 @@ import { a as displayPath } from "./utils-DwcweD55.js";
|
|
|
4
4
|
import { t as runCommandWithTimeout } from "./exec-Dmz2Tr6K.js";
|
|
5
5
|
import "./agent-scope-QT1urvJx.js";
|
|
6
6
|
import "./model-selection-01zouBRC.js";
|
|
7
|
-
import "./skills-
|
|
7
|
+
import "./skills-CG8iI6v6.js";
|
|
8
8
|
import "./manifest-registry-BHcAJo9u.js";
|
|
9
|
-
import { c as validateConfigObjectWithPlugins, i as readConfigFileSnapshot, n as loadConfig, s as writeConfigFile } from "./io-
|
|
9
|
+
import { c as validateConfigObjectWithPlugins, i as readConfigFileSnapshot, n as loadConfig, s as writeConfigFile } from "./io-CHeqqEl4.js";
|
|
10
10
|
import "./shell-env-DAw9qXji.js";
|
|
11
|
-
import "./config-
|
|
11
|
+
import "./config-CW3mWEFv.js";
|
|
12
12
|
import { t as formatDocsLink } from "./links-DtaFNkkY.js";
|
|
13
|
-
import { C as normalizeServePath, S as normalizeHooksPath, T as resolveGmailHookRuntimeConfig, _ as buildGogWatchServeArgs, a as ensureTopic, b as generateHookToken, c as DEFAULT_GMAIL_LABEL, d as DEFAULT_GMAIL_SERVE_BIND, f as DEFAULT_GMAIL_SERVE_PATH, g as buildDefaultHookUrl, h as DEFAULT_GMAIL_TOPIC, i as ensureTailscaleEndpoint, l as DEFAULT_GMAIL_MAX_BYTES, m as DEFAULT_GMAIL_SUBSCRIPTION, n as ensureGcloudAuth, o as resolveProjectIdFromGogCredentials, p as DEFAULT_GMAIL_SERVE_PORT, r as ensureSubscription, s as runGcloud, t as ensureDependency, u as DEFAULT_GMAIL_RENEW_MINUTES, v as buildGogWatchStartArgs, w as parseTopicPath, x as mergeHookPresets, y as buildTopicPath } from "./gmail-setup-utils-
|
|
13
|
+
import { C as normalizeServePath, S as normalizeHooksPath, T as resolveGmailHookRuntimeConfig, _ as buildGogWatchServeArgs, a as ensureTopic, b as generateHookToken, c as DEFAULT_GMAIL_LABEL, d as DEFAULT_GMAIL_SERVE_BIND, f as DEFAULT_GMAIL_SERVE_PATH, g as buildDefaultHookUrl, h as DEFAULT_GMAIL_TOPIC, i as ensureTailscaleEndpoint, l as DEFAULT_GMAIL_MAX_BYTES, m as DEFAULT_GMAIL_SUBSCRIPTION, n as ensureGcloudAuth, o as resolveProjectIdFromGogCredentials, p as DEFAULT_GMAIL_SERVE_PORT, r as ensureSubscription, s as runGcloud, t as ensureDependency, u as DEFAULT_GMAIL_RENEW_MINUTES, v as buildGogWatchStartArgs, w as parseTopicPath, x as mergeHookPresets, y as buildTopicPath } from "./gmail-setup-utils-Du3JjS1M.js";
|
|
14
14
|
import { spawn } from "node:child_process";
|
|
15
15
|
|
|
16
16
|
//#region src/hooks/gmail-ops.ts
|