@noxsoft/anima 5.1.1 → 5.1.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/{accounts-Dyb3ijJm.js → accounts-DZsqyow2.js} +38 -38
- package/dist/{active-listener-B7OcwSxK.js → active-listener-GJR3nLhX.js} +5 -5
- package/dist/{agent-B8ciDTm6.js → agent-CaaEZsXl.js} +2 -2
- package/dist/{agent-DImD77Te.js → agent-DUAarfNl.js} +2 -2
- package/dist/{agent-scope-BHR6uOLT.js → agent-scope-BZ8hjIt_.js} +3 -3
- package/dist/{agents-DvkZi7oF.js → agents-t54YcbvK.js} +3 -3
- package/dist/{auth-choice-i9Z_cli_.js → auth-choice-DPWnLV_w.js} +1 -1
- package/dist/{auth-profiles-Da39zGOD.js → auth-profiles-eZzmaeR3.js} +13 -13
- package/dist/{auth-store-Bl6rpC4E.js → auth-store-CnRrUELz.js} +13 -13
- package/dist/{banner-CjrhpA68.js → banner-D9JyV5SF.js} +1 -1
- package/dist/build-info.json +2 -2
- package/dist/bundled/boot-md/handler.js +25 -25
- package/dist/bundled/bootstrap-extra-files/handler.js +5 -5
- package/dist/bundled/command-logger/handler.js +1 -1
- package/dist/bundled/session-memory/handler.js +24 -24
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-web-9ikdY9RK.js → channel-web-CQIbtfme.js} +2 -2
- package/dist/{chrome-CkSIMI7j.js → chrome-Cfak4A3i.js} +12 -12
- package/dist/{chunk-5llVa3wc.js → chunk-CyT-_QsQ.js} +3 -3
- package/dist/{clack-prompter-DlmPIB0y.js → clack-prompter-rXuqdPbx.js} +1 -1
- package/dist/{cli-PD3ygS3H.js → cli--Gal7v4I.js} +1 -1
- package/dist/{cli-d0H0Bpz9.js → cli-kT9Mb3dT.js} +1 -1
- package/dist/{command-registry-Dv064HDc.js → command-registry-vEVxxxzI.js} +10 -10
- package/dist/{common-CKoFTq83.js → common-BzPvZcxT.js} +2 -2
- package/dist/{completion-cli-Blp8bILB.js → completion-cli-BBKG6buM.js} +1 -1
- package/dist/{completion-cli-C-fu_7Kd.js → completion-cli-C84I5l8a.js} +2 -2
- package/dist/{config-BfhpauV9.js → config-6FVC8hW0.js} +27 -27
- package/dist/{config-cli-BFQDt_5i.js → config-cli-CQzq5yWB.js} +1 -1
- package/dist/{config-cli-CgG6CaWK.js → config-cli-cyvL43DG.js} +1 -1
- package/dist/{configure-fHta2Meh.js → configure-B-dfdPKX.js} +4 -4
- package/dist/{configure-DLPHJ8nv.js → configure-Bv6mqD0j.js} +7 -7
- package/dist/{configure-Bbx4y0lr.js → configure-DxQqSUJs.js} +6 -6
- package/dist/{configure-CJYocuSp.js → configure-G6h2Ppk0.js} +3 -3
- package/dist/{deliver-CoQP7nSu.js → deliver-D2hQZ9X0.js} +52 -52
- package/dist/{deps-CMFpRoYp.js → deps-CeyVMZf1.js} +1 -1
- package/dist/{doctor-2O2knHXJ.js → doctor-DumyG85t.js} +4 -4
- package/dist/{doctor-completion-jbYrRr0H.js → doctor-completion-C8JSWfqN.js} +1 -1
- package/dist/{doctor-completion-CaC89XwQ.js → doctor-completion-lAyxyd7X.js} +1 -1
- package/dist/{doctor-qayl5A-F.js → doctor-vXt5qjNJ.js} +4 -4
- package/dist/entry.js +1 -1
- package/dist/{exec-CEFTijVj.js → exec-Bfd4ztFZ.js} +7 -7
- package/dist/extensionAPI.js +1 -1
- package/dist/{frontmatter-Dsa7N963.js → frontmatter-BP4GSt5L.js} +2 -2
- package/dist/{gateway-cli-CDg1qmsU.js → gateway-cli-B60L2z4a.js} +13 -13
- package/dist/{gateway-cli-DAPK-NMP.js → gateway-cli-CHhTweWb.js} +13 -13
- package/dist/{health-BNasz7nv.js → health-BttJ1Qeh.js} +1 -1
- package/dist/{health-2sA2ziYt.js → health-D8fJ6U_k.js} +1 -1
- package/dist/{hooks-cli-Cwe9oz1p.js → hooks-cli-BMZF6RF3.js} +2 -2
- package/dist/{hooks-cli-D8SvsiGN.js → hooks-cli-DRUryj5H.js} +2 -2
- package/dist/index.js +7 -7
- package/dist/llm-slug-generator.js +24 -24
- package/dist/{login-7Yj2TvMd.js → login-C4mptULi.js} +5 -5
- package/dist/{login-qr-CuwWMetN.js → login-qr-BxNKHxcf.js} +10 -10
- package/dist/{manager-kdmVqWxk.js → manager-A3pC-CW-.js} +15 -15
- package/dist/{model-selection-BuMFehML.js → model-selection-BI8CKPwQ.js} +1 -1
- package/dist/{models-2GYW4-6h.js → models-ByeH7ZKb.js} +1 -1
- package/dist/{onboard-channels-Cqeff8-v.js → onboard-channels-D6Gt3CsX.js} +1 -1
- package/dist/{onboard-channels-CWMuM-3k.js → onboard-channels-RsbA6EaD.js} +1 -1
- package/dist/{onboard-DbzYS52G.js → onboard-i4CJtSb9.js} +3 -3
- package/dist/{onboard-DJ4ON8sf.js → onboard-xSPFmM29.js} +4 -4
- package/dist/{onboarding-SrNptVqc.js → onboarding-CZBVMwFn.js} +4 -4
- package/dist/{onboarding-GIx1Wpw0.js → onboarding-Cao0a_Z1.js} +4 -4
- package/dist/{outbound-CovlPIFx.js → outbound-DWfSyfZC.js} +4 -4
- package/dist/{paths-CLxC7m0Z.js → paths-Cwszsz1I.js} +2 -2
- package/dist/{paths-B-AkG5FD.js → paths-D2eokayo.js} +3 -3
- package/dist/{pi-auth-json-BLCyhR5p.js → pi-auth-json-smxh_Xud.js} +7 -7
- package/dist/{pi-embedded-BL-Js-lp.js → pi-embedded-D4eEfxIU.js} +31 -23
- package/dist/{pi-embedded-fZ1QlJ9C.js → pi-embedded-DifnZvKk.js} +126 -118
- package/dist/{plugin-registry-X7L3BrUu.js → plugin-registry-CkZnT8Fb.js} +1 -1
- package/dist/{plugin-registry-DboWDOrG.js → plugin-registry-CpXm8ADp.js} +1 -1
- package/dist/plugin-sdk/agents/cli-backends.d.ts +4 -1
- package/dist/{plugins-cli-C-PA_T5k.js → plugins-cli-CrrkMAYM.js} +2 -2
- package/dist/{plugins-cli-BraLLKDO.js → plugins-cli-D4VxQKaJ.js} +2 -2
- package/dist/{program-BriwVW7P.js → program-CTDFmZNx.js} +6 -6
- package/dist/{program-context-oXX-h-yI.js → program-context-Hl6bnPfB.js} +15 -15
- package/dist/{prompts-C9IyM74_.js → prompts-CneQ6SeF.js} +1 -1
- package/dist/{pw-ai-BJfL9dGV.js → pw-ai-CY-VcqJp.js} +4 -4
- package/dist/{qmd-manager-DHQgWjsV.js → qmd-manager-CwbYv6nJ.js} +7 -7
- package/dist/{register.agent-BMKeVZeq.js → register.agent-BKINbWbs.js} +6 -6
- package/dist/{register.agent-BO5BCkbO.js → register.agent-CMoYTJqj.js} +5 -5
- package/dist/{register.anima-BS8nsOpD.js → register.anima-BHrZ90Sv.js} +1 -1
- package/dist/{register.anima-DPurDgXW.js → register.anima-CnEy5VFQ.js} +1 -1
- package/dist/{register.configure-Dvg0Vi23.js → register.configure-3GfqcGLK.js} +6 -6
- package/dist/{register.configure-Di8agIXW.js → register.configure-Cv5NkGH2.js} +5 -5
- package/dist/{register.maintenance-DjXwK16H.js → register.maintenance-DtAw8E_a.js} +8 -8
- package/dist/{register.maintenance-CKE15LXK.js → register.maintenance-YZDsMymb.js} +7 -7
- package/dist/{register.onboard-Du-u1lcX.js → register.onboard-Dswys-iV.js} +9 -9
- package/dist/{register.onboard-BkUxrYi2.js → register.onboard-U3lIfaw_.js} +9 -9
- package/dist/{register.setup-DyqOWQ2D.js → register.setup-CLkGhR-e.js} +9 -9
- package/dist/{register.setup-DEtz71o0.js → register.setup-Dyp5L_GQ.js} +9 -9
- package/dist/{register.status-health-sessions-CXMn5NfF.js → register.status-health-sessions-Cc2Y5gSj.js} +3 -3
- package/dist/{register.status-health-sessions-DjsEuYmp.js → register.status-health-sessions-Dx-qZMol.js} +3 -3
- package/dist/{register.subclis-CMlPDwE5.js → register.subclis-L55mGheS.js} +6 -6
- package/dist/{reply-DWdVFSBB.js → reply-BgPvB-gR.js} +31 -23
- package/dist/{reply-prefix-CRGxza-M.js → reply-prefix-37W_P4kH.js} +1 -1
- package/dist/{reply-prefix-_gr2uQ1Z.js → reply-prefix-DBRqtDEq.js} +1 -1
- package/dist/{run-CXLRGLdR.js → run-BFPM6M2S.js} +8 -8
- package/dist/{run-GZnwhuUG.js → run-DEHnKm2x.js} +10 -10
- package/dist/{run-main-Coy6Vx7R.js → run-main-Cxmjk1SF.js} +14 -14
- package/dist/{semantic-BZw2SVoG.js → semantic-CG6X3rBo.js} +1 -1
- package/dist/{server-node-events-BMO931Md.js → server-node-events-CmZXzWcd.js} +2 -2
- package/dist/{server-node-events-yZM_OBSZ.js → server-node-events-DBOg36in.js} +3 -3
- package/dist/{session-CB9OL4Ml.js → session-3MLbl1-K.js} +1 -1
- package/dist/{settings-cli-_DoMmFH9.js → settings-cli-CCtkuc1r.js} +7 -7
- package/dist/{settings-cli-BVBFgDUd.js → settings-cli-Ccizggz2.js} +6 -6
- package/dist/{shell-env-DaSbgZYX.js → shell-env-B4ae4lFh.js} +1 -1
- package/dist/{soul-B7vtVbSs.js → soul-Bt57OdSx.js} +1 -1
- package/dist/{sqlite-D_h-b5t2.js → sqlite-ClLAW1iQ.js} +4 -4
- package/dist/{start-C0Uw_pIA.js → start-BPye9w5U.js} +13 -13
- package/dist/{start-C6a18wc7.js → start-DfC7PlAH.js} +13 -13
- package/dist/{status-CUyIggna.js → status-BU6h4wUP.js} +1 -1
- package/dist/{status-DyD7gtoK.js → status-BVAoIQ0V.js} +2 -2
- package/dist/{status-DmsznVj5.js → status-BaEcHPtc.js} +1 -1
- package/dist/{status-CWgHkLTE.js → status-C9B6cEM0.js} +2 -2
- package/dist/{subagent-registry-BVrDlKmm.js → subagent-registry-MZIxVf8W.js} +31 -23
- package/dist/{subsystem-BP2l3SHn.js → subsystem-DA3Cno1i.js} +20 -20
- package/dist/{tool-images-CUx-9B7B.js → tool-images-DK97edts.js} +2 -2
- package/dist/{update-cli-4VAEZsrR.js → update-cli-D1e-DsWy.js} +8 -8
- package/dist/{update-cli-JPLB8AtM.js → update-cli-QMVW2eiR.js} +7 -7
- package/dist/{update-runner-BxdLd4Q8.js → update-runner-DPmSGXS3.js} +1 -1
- package/dist/{update-runner-pmlbxeZ-.js → update-runner-iLJQF6VA.js} +1 -1
- package/dist/{web-B3O004_b.js → web-DBQRQY6n.js} +27 -27
- package/dist/{web-D8EsFSet.js → web-DDAkSrtZ.js} +2 -2
- package/dist/{web-B9-C6C1i.js → web-DE-hmqXy.js} +3 -3
- package/dist/{web-cpPr1Em8.js → web-DJRRkHG8.js} +1 -1
- package/dist/{whatsapp-actions-9PCfw-Zh.js → whatsapp-actions-CMEP8v3k.js} +13 -13
- package/dist/{workspace-Cvio8QlZ.js → workspace-BQkffCaR.js} +5 -5
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as info, B as isRich, V as theme, d as defaultRuntime, t as createSubsystemLogger } from "./subsystem-BMsbqSb4.js";
|
|
2
|
-
import { F as getQueueSize, Hn as CommandLane, K as requestHeartbeatNow, St as resolveHeartbeatSenderContext, Yn as resolveEffectiveMessagesConfig, cn as resolvePreferredAccountId, q as setHeartbeatWakeHandler, sn as buildChannelAccountBindings, sr as peekSystemEventEntries, t as getReplyFromConfig, xt as resolveHeartbeatDeliveryTarget } from "./reply-
|
|
2
|
+
import { F as getQueueSize, Hn as CommandLane, K as requestHeartbeatNow, St as resolveHeartbeatSenderContext, Yn as resolveEffectiveMessagesConfig, cn as resolvePreferredAccountId, q as setHeartbeatWakeHandler, sn as buildChannelAccountBindings, sr as peekSystemEventEntries, t as getReplyFromConfig, xt as resolveHeartbeatDeliveryTarget } from "./reply-BgPvB-gR.js";
|
|
3
3
|
import { d as resolveAgentIdFromSessionKey, h as toAgentStoreSessionKey, l as normalizeAgentId } from "./session-key-DAZmp8ll.js";
|
|
4
4
|
import { c as resolveDefaultAgentId, m as DEFAULT_HEARTBEAT_FILENAME, n as resolveAgentConfig, s as resolveAgentWorkspaceDir } from "./agent-scope-D3HZp64M.js";
|
|
5
5
|
import { i as loadConfig, m as parseDurationMs } from "./config-DqwH4y-D.js";
|
|
@@ -2,7 +2,7 @@ import "./paths-zhVksOvm.js";
|
|
|
2
2
|
import { V as theme, d as defaultRuntime } from "./subsystem-BMsbqSb4.js";
|
|
3
3
|
import { C as shortenHomePath, b as resolveUserPath, t as CONFIG_DIR } from "./utils-B60lF9Wq.js";
|
|
4
4
|
import "./pi-embedded-helpers-B6wVA0hU.js";
|
|
5
|
-
import "./reply-
|
|
5
|
+
import "./reply-BgPvB-gR.js";
|
|
6
6
|
import { t as runCommandWithTimeout } from "./exec-cazBMA02.js";
|
|
7
7
|
import { c as resolveDefaultAgentId, s as resolveAgentWorkspaceDir } from "./agent-scope-D3HZp64M.js";
|
|
8
8
|
import "./model-selection-wCaVeFbb.js";
|
|
@@ -59,7 +59,7 @@ import { t as renderTable } from "./table-CdHBo5d1.js";
|
|
|
59
59
|
import { a as parseFrontmatter, n as loadWorkspaceHookEntries, t as buildWorkspaceHookStatus } from "./hooks-status-VvwKn90L.js";
|
|
60
60
|
import { a as resolvePackedRootDir, i as resolveArchiveKind, n as fileExists, r as readJsonFile, t as extractArchive } from "./archive-5e-Ytlq-.js";
|
|
61
61
|
import { a as installPackageDir, i as unscopedPackageName, n as resolveSafeInstallDir, t as validateRegistryNpmSpec } from "./npm-registry-spec-CFp4OEe4.js";
|
|
62
|
-
import { t as buildPluginStatusReport } from "./status-
|
|
62
|
+
import { t as buildPluginStatusReport } from "./status-BaEcHPtc.js";
|
|
63
63
|
import fs from "node:fs";
|
|
64
64
|
import os from "node:os";
|
|
65
65
|
import path from "node:path";
|
|
@@ -15,7 +15,7 @@ import "./shell-env-2QqHvBMl.js";
|
|
|
15
15
|
import "./client-DzIcZx4J.js";
|
|
16
16
|
import "./call-DHZ76BNg.js";
|
|
17
17
|
import "./message-channel-DdOBO6Qm.js";
|
|
18
|
-
import "./subagent-registry-
|
|
18
|
+
import "./subagent-registry-MZIxVf8W.js";
|
|
19
19
|
import "./sessions-1XK2mH6L.js";
|
|
20
20
|
import "./tokens-CmlI2hSz.js";
|
|
21
21
|
import "./anthropic-direct-runner-CzQb7QkD.js";
|
|
@@ -58,7 +58,7 @@ import { t as renderTable } from "./table-Bt7rSYC6.js";
|
|
|
58
58
|
import { a as parseFrontmatter, n as loadWorkspaceHookEntries, t as buildWorkspaceHookStatus } from "./hooks-status-DiqubDlK.js";
|
|
59
59
|
import { a as resolvePackedRootDir, i as resolveArchiveKind, n as fileExists, r as readJsonFile, t as extractArchive } from "./archive-BIKRyvqD.js";
|
|
60
60
|
import { a as installPackageDir, i as unscopedPackageName, n as resolveSafeInstallDir, t as validateRegistryNpmSpec } from "./npm-registry-spec-DVDcgWxm.js";
|
|
61
|
-
import { t as buildPluginStatusReport } from "./status-
|
|
61
|
+
import { t as buildPluginStatusReport } from "./status-BU6h4wUP.js";
|
|
62
62
|
import os from "node:os";
|
|
63
63
|
import path from "node:path";
|
|
64
64
|
import fs from "node:fs";
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import "./paths-zhVksOvm.js";
|
|
|
3
3
|
import { B as isRich, F as setVerbose, V as theme, _ as CHAT_CHANNEL_ORDER, d as defaultRuntime, r as enableConsoleCapture, u as visibleWidth } from "./subsystem-BMsbqSb4.js";
|
|
4
4
|
import { E as toWhatsappJid, h as normalizeE164, n as assertWebChannel } from "./utils-B60lF9Wq.js";
|
|
5
5
|
import "./pi-embedded-helpers-B6wVA0hU.js";
|
|
6
|
-
import { Er as applyTemplate, gt as resolveCommitHash, t as getReplyFromConfig, ur as installUnhandledRejectionHandler } from "./reply-
|
|
6
|
+
import { Er as applyTemplate, gt as resolveCommitHash, t as getReplyFromConfig, ur as installUnhandledRejectionHandler } from "./reply-BgPvB-gR.js";
|
|
7
7
|
import { n as runExec, t as runCommandWithTimeout } from "./exec-cazBMA02.js";
|
|
8
8
|
import "./agent-scope-D3HZp64M.js";
|
|
9
9
|
import "./model-selection-wCaVeFbb.js";
|
|
@@ -57,21 +57,21 @@ import "./dispatcher-DzT6jltc.js";
|
|
|
57
57
|
import "./pi-model-discovery-ClWISQ3j.js";
|
|
58
58
|
import "./delivery-queue-DZ_ibFDu.js";
|
|
59
59
|
import "./session-cost-usage-BamtB1rn.js";
|
|
60
|
-
import { r as waitForever, t as monitorWebChannel } from "./channel-web-
|
|
60
|
+
import { r as waitForever, t as monitorWebChannel } from "./channel-web-CQIbtfme.js";
|
|
61
61
|
import "./outbound-uxBpmALx.js";
|
|
62
62
|
import "./session-CqKJvPTq.js";
|
|
63
|
-
import "./reply-prefix-
|
|
63
|
+
import "./reply-prefix-37W_P4kH.js";
|
|
64
64
|
import "./accounts-CL0JV_xk.js";
|
|
65
65
|
import "./login-BovU8kno.js";
|
|
66
|
-
import { t as createDefaultDeps } from "./deps-
|
|
66
|
+
import { t as createDefaultDeps } from "./deps-CeyVMZf1.js";
|
|
67
67
|
import { t as isMainModule } from "./is-main-BnikY3ud.js";
|
|
68
68
|
import { t as ensureAnimaCliOnPath } from "./path-env-CjpH-KWH.js";
|
|
69
69
|
import { t as assertSupportedRuntime } from "./runtime-guard-cBL2D5J8.js";
|
|
70
70
|
import "./ports-B1b1r9Dz.js";
|
|
71
71
|
import { a as hasHelpOrVersion, i as getVerboseFlag, n as getCommandPath } from "./argv-B6vsXQtF.js";
|
|
72
|
-
import { a as registerProgramCommands, n as setProgramContext } from "./program-context-
|
|
72
|
+
import { a as registerProgramCommands, n as setProgramContext } from "./program-context-Hl6bnPfB.js";
|
|
73
73
|
import { r as listChannelPluginCatalogEntries } from "./catalog-AZNRamJ4.js";
|
|
74
|
-
import { t as ensurePluginRegistryLoaded } from "./plugin-registry-
|
|
74
|
+
import { t as ensurePluginRegistryLoaded } from "./plugin-registry-CpXm8ADp.js";
|
|
75
75
|
import process$1 from "node:process";
|
|
76
76
|
import { fileURLToPath } from "node:url";
|
|
77
77
|
import { Command } from "commander";
|
|
@@ -468,7 +468,7 @@ function registerPreActionHooks(program, programVersion) {
|
|
|
468
468
|
commandPath
|
|
469
469
|
});
|
|
470
470
|
if (PLUGIN_REQUIRED_COMMANDS.has(commandPath[0])) {
|
|
471
|
-
const { ensurePluginRegistryLoaded } = await import("./plugin-registry-
|
|
471
|
+
const { ensurePluginRegistryLoaded } = await import("./plugin-registry-CpXm8ADp.js").then((n) => n.n);
|
|
472
472
|
ensurePluginRegistryLoaded();
|
|
473
473
|
}
|
|
474
474
|
});
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import "./paths-
|
|
2
|
-
import "./workspace-
|
|
3
|
-
import "./subsystem-
|
|
4
|
-
import "./exec-
|
|
5
|
-
import { c as resolveDefaultAgentId, r as resolveAgentDir, s as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
6
|
-
import "./deliver-
|
|
7
|
-
import { t as runEmbeddedPiAgent } from "./pi-embedded-
|
|
8
|
-
import "./config-
|
|
1
|
+
import "./paths-D2eokayo.js";
|
|
2
|
+
import "./workspace-BQkffCaR.js";
|
|
3
|
+
import "./subsystem-DA3Cno1i.js";
|
|
4
|
+
import "./exec-Bfd4ztFZ.js";
|
|
5
|
+
import { c as resolveDefaultAgentId, r as resolveAgentDir, s as resolveAgentWorkspaceDir } from "./agent-scope-BZ8hjIt_.js";
|
|
6
|
+
import "./deliver-D2hQZ9X0.js";
|
|
7
|
+
import { t as runEmbeddedPiAgent } from "./pi-embedded-DifnZvKk.js";
|
|
8
|
+
import "./config-6FVC8hW0.js";
|
|
9
9
|
import "./boolean-Ce2-qkSB.js";
|
|
10
|
-
import "./shell-env-
|
|
11
|
-
import "./model-selection-
|
|
12
|
-
import "./chrome-
|
|
13
|
-
import "./frontmatter-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./paths-
|
|
16
|
-
import "./tool-images-
|
|
17
|
-
import "./auth-profiles-
|
|
18
|
-
import "./manager-
|
|
19
|
-
import "./sqlite-
|
|
20
|
-
import "./session-
|
|
21
|
-
import "./semantic-
|
|
22
|
-
import "./soul-
|
|
23
|
-
import "./common-
|
|
24
|
-
import "./active-listener-
|
|
10
|
+
import "./shell-env-B4ae4lFh.js";
|
|
11
|
+
import "./model-selection-BI8CKPwQ.js";
|
|
12
|
+
import "./chrome-Cfak4A3i.js";
|
|
13
|
+
import "./frontmatter-BP4GSt5L.js";
|
|
14
|
+
import "./chunk-CyT-_QsQ.js";
|
|
15
|
+
import "./paths-Cwszsz1I.js";
|
|
16
|
+
import "./tool-images-DK97edts.js";
|
|
17
|
+
import "./auth-profiles-eZzmaeR3.js";
|
|
18
|
+
import "./manager-A3pC-CW-.js";
|
|
19
|
+
import "./sqlite-ClLAW1iQ.js";
|
|
20
|
+
import "./session-3MLbl1-K.js";
|
|
21
|
+
import "./semantic-CG6X3rBo.js";
|
|
22
|
+
import "./soul-Bt57OdSx.js";
|
|
23
|
+
import "./common-BzPvZcxT.js";
|
|
24
|
+
import "./active-listener-GJR3nLhX.js";
|
|
25
25
|
import "./pi-model-discovery-62lQTR6C.js";
|
|
26
|
-
import "./auth-store-
|
|
26
|
+
import "./auth-store-CnRrUELz.js";
|
|
27
27
|
import fs from "node:fs/promises";
|
|
28
28
|
import os from "node:os";
|
|
29
29
|
import path from "node:path";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { n as __exportAll } from "./chunk-BXK9XSlF.js";
|
|
2
|
-
import { S as success, _ as info, g as danger, n as defaultRuntime } from "./subsystem-
|
|
3
|
-
import { s as logInfo } from "./exec-
|
|
4
|
-
import { n as loadConfig } from "./config-
|
|
2
|
+
import { S as success, _ as info, g as danger, n as defaultRuntime } from "./subsystem-DA3Cno1i.js";
|
|
3
|
+
import { s as logInfo } from "./exec-Bfd4ztFZ.js";
|
|
4
|
+
import { n as loadConfig } from "./config-6FVC8hW0.js";
|
|
5
5
|
import { t as formatCliCommand } from "./command-format-GLYKXXl-.js";
|
|
6
|
-
import { i as logoutWeb } from "./auth-store-
|
|
7
|
-
import { a as waitForWaConnection, d as DisconnectReason, n as createWaSocket, r as formatError, t as resolveWhatsAppAccount } from "./accounts-
|
|
6
|
+
import { i as logoutWeb } from "./auth-store-CnRrUELz.js";
|
|
7
|
+
import { a as waitForWaConnection, d as DisconnectReason, n as createWaSocket, r as formatError, t as resolveWhatsAppAccount } from "./accounts-DZsqyow2.js";
|
|
8
8
|
|
|
9
9
|
//#region src/web/login.ts
|
|
10
10
|
var login_exports = /* @__PURE__ */ __exportAll({ loginWeb: () => loginWeb });
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import "./paths-
|
|
2
|
-
import "./workspace-
|
|
3
|
-
import { S as success, _ as info, g as danger, n as defaultRuntime } from "./subsystem-
|
|
4
|
-
import { s as logInfo } from "./exec-
|
|
5
|
-
import "./agent-scope-
|
|
6
|
-
import { n as loadConfig } from "./config-
|
|
1
|
+
import "./paths-D2eokayo.js";
|
|
2
|
+
import "./workspace-BQkffCaR.js";
|
|
3
|
+
import { S as success, _ as info, g as danger, n as defaultRuntime } from "./subsystem-DA3Cno1i.js";
|
|
4
|
+
import { s as logInfo } from "./exec-Bfd4ztFZ.js";
|
|
5
|
+
import "./agent-scope-BZ8hjIt_.js";
|
|
6
|
+
import { n as loadConfig } from "./config-6FVC8hW0.js";
|
|
7
7
|
import "./boolean-Ce2-qkSB.js";
|
|
8
|
-
import "./shell-env-
|
|
9
|
-
import "./model-selection-
|
|
10
|
-
import { d as webAuthExists, i as logoutWeb, s as readWebSelfId } from "./auth-store-
|
|
11
|
-
import { a as waitForWaConnection, d as DisconnectReason, i as getStatusCode, n as createWaSocket, r as formatError, t as resolveWhatsAppAccount } from "./accounts-
|
|
8
|
+
import "./shell-env-B4ae4lFh.js";
|
|
9
|
+
import "./model-selection-BI8CKPwQ.js";
|
|
10
|
+
import { d as webAuthExists, i as logoutWeb, s as readWebSelfId } from "./auth-store-CnRrUELz.js";
|
|
11
|
+
import { a as waitForWaConnection, d as DisconnectReason, i as getStatusCode, n as createWaSocket, r as formatError, t as resolveWhatsAppAccount } from "./accounts-DZsqyow2.js";
|
|
12
12
|
import { randomUUID } from "node:crypto";
|
|
13
13
|
import QRCodeModule from "qrcode-terminal/vendor/QRCode/index.js";
|
|
14
14
|
import QRErrorCorrectLevelModule from "qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { n as __exportAll } from "./chunk-BXK9XSlF.js";
|
|
2
|
-
import { s as resolveStateDir } from "./paths-
|
|
3
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
4
|
-
import { O as sleep, d as clampInt, f as clampNumber$1, j as truncateUtf16Safe, w as resolveUserPath } from "./exec-
|
|
5
|
-
import { n as resolveAgentConfig, r as resolveAgentDir$1, s as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
6
|
-
import { s as isTruthyEnvValue, t as getShellEnvAppliedKeys } from "./shell-env-
|
|
7
|
-
import { s as normalizeProviderId } from "./model-selection-
|
|
2
|
+
import { s as resolveStateDir } from "./paths-D2eokayo.js";
|
|
3
|
+
import { t as createSubsystemLogger } from "./subsystem-DA3Cno1i.js";
|
|
4
|
+
import { O as sleep, d as clampInt, f as clampNumber$1, j as truncateUtf16Safe, w as resolveUserPath } from "./exec-Bfd4ztFZ.js";
|
|
5
|
+
import { n as resolveAgentConfig, r as resolveAgentDir$1, s as resolveAgentWorkspaceDir } from "./agent-scope-BZ8hjIt_.js";
|
|
6
|
+
import { s as isTruthyEnvValue, t as getShellEnvAppliedKeys } from "./shell-env-B4ae4lFh.js";
|
|
7
|
+
import { s as normalizeProviderId } from "./model-selection-BI8CKPwQ.js";
|
|
8
8
|
import { t as formatCliCommand } from "./command-format-GLYKXXl-.js";
|
|
9
9
|
import { n as formatErrorMessage } from "./errors-UbDRvfEx.js";
|
|
10
|
-
import { o as resolveSessionTranscriptsDirForAgent } from "./paths-
|
|
10
|
+
import { o as resolveSessionTranscriptsDirForAgent } from "./paths-Cwszsz1I.js";
|
|
11
11
|
import { n as onSessionTranscriptUpdate } from "./transcript-events-D0hT93vo.js";
|
|
12
|
-
import { a as listProfilesForProvider, c as resolveAuthStorePathForDisplay, h as normalizeSecretInput, i as resolveApiKeyForProfile, m as normalizeOptionalSecretInput, n as resolveAuthProfileOrder, o as ensureAuthProfileStore } from "./auth-profiles-
|
|
13
|
-
import { a as buildFileEntry, c as ensureDir, d as listMemoryFiles, f as normalizeExtraMemoryPaths, h as runWithConcurrency, i as sessionPathForFile, l as hashText, m as remapChunkLines, n as buildSessionEntry, o as chunkMarkdown, p as parseEmbedding, r as listSessionFilesForAgent, s as cosineSimilarity, t as requireNodeSqlite, u as isMemoryPath } from "./sqlite-
|
|
12
|
+
import { a as listProfilesForProvider, c as resolveAuthStorePathForDisplay, h as normalizeSecretInput, i as resolveApiKeyForProfile, m as normalizeOptionalSecretInput, n as resolveAuthProfileOrder, o as ensureAuthProfileStore } from "./auth-profiles-eZzmaeR3.js";
|
|
13
|
+
import { a as buildFileEntry, c as ensureDir, d as listMemoryFiles, f as normalizeExtraMemoryPaths, h as runWithConcurrency, i as sessionPathForFile, l as hashText, m as remapChunkLines, n as buildSessionEntry, o as chunkMarkdown, p as parseEmbedding, r as listSessionFilesForAgent, s as cosineSimilarity, t as requireNodeSqlite, u as isMemoryPath } from "./sqlite-ClLAW1iQ.js";
|
|
14
14
|
import fs from "node:fs/promises";
|
|
15
15
|
import os from "node:os";
|
|
16
16
|
import path from "node:path";
|
|
17
|
-
import
|
|
17
|
+
import fsSync from "node:fs";
|
|
18
18
|
import { randomUUID } from "node:crypto";
|
|
19
19
|
import { getEnvApiKey } from "@mariozechner/pi-ai";
|
|
20
20
|
import { Readable } from "node:stream";
|
|
@@ -691,7 +691,7 @@ function canAutoSelectLocal(options) {
|
|
|
691
691
|
if (/^(hf:|https?:)/i.test(modelPath)) return false;
|
|
692
692
|
const resolved = resolveUserPath(modelPath);
|
|
693
693
|
try {
|
|
694
|
-
return
|
|
694
|
+
return fsSync.statSync(resolved).isFile();
|
|
695
695
|
} catch {
|
|
696
696
|
return false;
|
|
697
697
|
}
|
|
@@ -2552,7 +2552,7 @@ var MemoryManagerSyncOps = class {
|
|
|
2552
2552
|
]);
|
|
2553
2553
|
const additionalPaths = normalizeExtraMemoryPaths(this.workspaceDir, this.settings.extraPaths);
|
|
2554
2554
|
for (const entry of additionalPaths) try {
|
|
2555
|
-
const stat =
|
|
2555
|
+
const stat = fsSync.lstatSync(entry);
|
|
2556
2556
|
if (stat.isSymbolicLink()) continue;
|
|
2557
2557
|
if (stat.isDirectory()) {
|
|
2558
2558
|
watchPaths.add(path.join(entry, "**", "*.md"));
|
|
@@ -3444,9 +3444,9 @@ var MemoryIndexManager = class MemoryIndexManager {
|
|
|
3444
3444
|
async searchTiered(query, options) {
|
|
3445
3445
|
const { searchAllTiers } = await import("./cross-tier-search-FV-l2Pud.js").then((n) => n.t);
|
|
3446
3446
|
const { ImmediateMemory } = await import("./immediate-GXgklza5.js").then((n) => n.t);
|
|
3447
|
-
const { SessionMemory } = await import("./session-
|
|
3448
|
-
const { SemanticMemoryTier } = await import("./semantic-
|
|
3449
|
-
const { SoulMemory } = await import("./soul-
|
|
3447
|
+
const { SessionMemory } = await import("./session-3MLbl1-K.js").then((n) => n.t);
|
|
3448
|
+
const { SemanticMemoryTier } = await import("./semantic-CG6X3rBo.js").then((n) => n.t);
|
|
3449
|
+
const { SoulMemory } = await import("./soul-Bt57OdSx.js").then((n) => n.t);
|
|
3450
3450
|
return searchAllTiers(query, {
|
|
3451
3451
|
immediate: new ImmediateMemory(),
|
|
3452
3452
|
session: new SessionMemory(this.db),
|
|
@@ -15,7 +15,7 @@ import { o as shouldEnableShellEnvFallback, t as getShellEnvAppliedKeys } from "
|
|
|
15
15
|
import "./client-DzIcZx4J.js";
|
|
16
16
|
import "./call-DHZ76BNg.js";
|
|
17
17
|
import "./message-channel-DdOBO6Qm.js";
|
|
18
|
-
import { Kt as loadProviderUsageSummary, Qt as resolveUsageProviderId, Rn as loadModelCatalog, Zt as formatUsageWindowSummary, c as runEmbeddedPiAgent, wr as describeFailoverError } from "./subagent-registry-
|
|
18
|
+
import { Kt as loadProviderUsageSummary, Qt as resolveUsageProviderId, Rn as loadModelCatalog, Zt as formatUsageWindowSummary, c as runEmbeddedPiAgent, wr as describeFailoverError } from "./subagent-registry-MZIxVf8W.js";
|
|
19
19
|
import "./sessions-1XK2mH6L.js";
|
|
20
20
|
import "./tokens-CmlI2hSz.js";
|
|
21
21
|
import { Z as resolveModel } from "./anthropic-direct-runner-CzQb7QkD.js";
|
|
@@ -2,7 +2,7 @@ import { at as formatChannelSelectionLine, it as formatChannelPrimerLine, o as c
|
|
|
2
2
|
import { t as formatCliCommand } from "./command-format-kLw3YIIu.js";
|
|
3
3
|
import { c as normalizeAccountId, t as DEFAULT_ACCOUNT_ID } from "./session-key-DP2WHl90.js";
|
|
4
4
|
import { c as resolveDefaultAgentId, s as resolveAgentWorkspaceDir } from "./agent-scope-Dm8IL1Ks.js";
|
|
5
|
-
import { m as loadAnimaPlugins } from "./subagent-registry-
|
|
5
|
+
import { m as loadAnimaPlugins } from "./subagent-registry-MZIxVf8W.js";
|
|
6
6
|
import { n as listChannelPlugins, t as getChannelPlugin } from "./plugins-BOMS6J5A.js";
|
|
7
7
|
import { t as formatDocsLink } from "./links-3c7gzW-G.js";
|
|
8
8
|
import { t as resolveChannelDefaultAccountId } from "./helpers-CVp8W9aa.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as listChatChannels, b as formatChannelSelectionLine, t as createSubsystemLogger, y as formatChannelPrimerLine } from "./subsystem-BMsbqSb4.js";
|
|
2
|
-
import { in as loadAnimaPlugins } from "./reply-
|
|
2
|
+
import { in as loadAnimaPlugins } from "./reply-BgPvB-gR.js";
|
|
3
3
|
import { c as normalizeAccountId, t as DEFAULT_ACCOUNT_ID } from "./session-key-DAZmp8ll.js";
|
|
4
4
|
import { c as resolveDefaultAgentId, s as resolveAgentWorkspaceDir } from "./agent-scope-D3HZp64M.js";
|
|
5
5
|
import { t as formatCliCommand } from "./command-format-BCtkuvqF.js";
|
|
@@ -10,10 +10,10 @@ import { t as assertSupportedRuntime } from "./runtime-guard-DdP10b7Q.js";
|
|
|
10
10
|
import { a as ensureWorkspaceAndSessions, c as handleReset, h as resolveControlUiLinks, m as randomToken, n as applyWizardMetadata, t as DEFAULT_WORKSPACE, y as waitForGatewayReachable } from "./onboard-helpers-IeOtcIME.js";
|
|
11
11
|
import { r as isSystemdUserServiceAvailable } from "./systemd-6iLWJxQQ.js";
|
|
12
12
|
import { t as resolveGatewayService } from "./service-4VfZwSv1.js";
|
|
13
|
-
import { r as healthCommand } from "./health-
|
|
14
|
-
import { o as applyPrimaryModel } from "./auth-choice-
|
|
13
|
+
import { r as healthCommand } from "./health-BttJ1Qeh.js";
|
|
14
|
+
import { o as applyPrimaryModel } from "./auth-choice-DPWnLV_w.js";
|
|
15
15
|
import { c as setAnthropicApiKey, s as applyAuthProfileConfig, t as WizardCancelledError, u as writeOAuthCredentials } from "./prompts-D6b3zLVO.js";
|
|
16
|
-
import { t as runOnboardingWizard } from "./onboarding-
|
|
16
|
+
import { t as runOnboardingWizard } from "./onboarding-CZBVMwFn.js";
|
|
17
17
|
import { n as logConfigUpdated } from "./logging-DcXIbpwk.js";
|
|
18
18
|
import { t as createClackPrompter } from "./clack-prompter-QbDK4ABC.js";
|
|
19
19
|
import { n as ensureSystemdUserLingerNonInteractive } from "./systemd-linger-CS_pA1-a.js";
|
|
@@ -11,11 +11,11 @@ import { a as gatewayInstallErrorHint, i as buildGatewayInstallPlan, r as isGate
|
|
|
11
11
|
import { a as ensureWorkspaceAndSessions, c as handleReset, h as resolveControlUiLinks, m as randomToken, n as applyWizardMetadata, t as DEFAULT_WORKSPACE, y as waitForGatewayReachable } from "./onboard-helpers-DPqXrhma.js";
|
|
12
12
|
import { r as isSystemdUserServiceAvailable } from "./systemd-5KGZ3NHE.js";
|
|
13
13
|
import { t as resolveGatewayService } from "./service-QlHhVsQf.js";
|
|
14
|
-
import { r as healthCommand } from "./health-
|
|
15
|
-
import { d as setAnthropicApiKey, f as writeOAuthCredentials, s as applyPrimaryModel, t as WizardCancelledError, u as applyAuthProfileConfig } from "./prompts-
|
|
16
|
-
import { t as runOnboardingWizard } from "./onboarding-
|
|
14
|
+
import { r as healthCommand } from "./health-D8fJ6U_k.js";
|
|
15
|
+
import { d as setAnthropicApiKey, f as writeOAuthCredentials, s as applyPrimaryModel, t as WizardCancelledError, u as applyAuthProfileConfig } from "./prompts-CneQ6SeF.js";
|
|
16
|
+
import { t as runOnboardingWizard } from "./onboarding-Cao0a_Z1.js";
|
|
17
17
|
import { n as logConfigUpdated } from "./logging-DhXRGHWg.js";
|
|
18
|
-
import { t as createClackPrompter } from "./clack-prompter-
|
|
18
|
+
import { t as createClackPrompter } from "./clack-prompter-rXuqdPbx.js";
|
|
19
19
|
import { n as ensureSystemdUserLingerNonInteractive } from "./systemd-linger-B-uyzDap.js";
|
|
20
20
|
|
|
21
21
|
//#region src/commands/onboard-interactive.ts
|
|
@@ -6,19 +6,19 @@ import { c as resolveDefaultAgentId, p as DEFAULT_BOOTSTRAP_FILENAME, s as resol
|
|
|
6
6
|
import { l as writeConfigFile, o as readConfigFileSnapshot } from "./config-Ofh9gKvs.js";
|
|
7
7
|
import { p as findTailscaleBinary } from "./auth-Cp__MMeO.js";
|
|
8
8
|
import { r as ensureAuthenticated } from "./noxsoft-auth-DpwLJIW0.js";
|
|
9
|
-
import { r as installCompletion } from "./completion-cli-
|
|
9
|
+
import { r as installCompletion } from "./completion-cli-C84I5l8a.js";
|
|
10
10
|
import { a as gatewayInstallErrorHint, i as buildGatewayInstallPlan, n as GATEWAY_DAEMON_RUNTIME_OPTIONS, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-BfgstLVI.js";
|
|
11
11
|
import { _ as summarizeExistingConfig, a as ensureWorkspaceAndSessions, d as openUrl, f as printWizardHeader, h as resolveControlUiLinks, i as detectBrowserOpenSupport, m as randomToken, n as applyWizardMetadata, o as formatControlUiSshHint, p as probeGatewayReachable, t as DEFAULT_WORKSPACE, u as normalizeGatewayTokenInput, v as validateGatewayPasswordInput, y as waitForGatewayReachable } from "./onboard-helpers-IeOtcIME.js";
|
|
12
12
|
import { r as isSystemdUserServiceAvailable } from "./systemd-6iLWJxQQ.js";
|
|
13
13
|
import { t as resolveGatewayService } from "./service-4VfZwSv1.js";
|
|
14
|
-
import { r as healthCommand } from "./health-
|
|
14
|
+
import { r as healthCommand } from "./health-BttJ1Qeh.js";
|
|
15
15
|
import { n as ensureControlUiAssetsBuilt, t as formatHealthCheckFailure } from "./health-format-BLnFZCH_.js";
|
|
16
|
-
import { l as promptAuthChoiceGrouped, n as warnIfModelConfigLooksOff, o as applyPrimaryModel, r as applyAuthChoice, s as promptDefaultModel, t as resolvePreferredProviderForAuthChoice } from "./auth-choice-
|
|
16
|
+
import { l as promptAuthChoiceGrouped, n as warnIfModelConfigLooksOff, o as applyPrimaryModel, r as applyAuthChoice, s as promptDefaultModel, t as resolvePreferredProviderForAuthChoice } from "./auth-choice-DPWnLV_w.js";
|
|
17
17
|
import { t as WizardCancelledError } from "./prompts-D6b3zLVO.js";
|
|
18
18
|
import { t as buildWorkspaceHookStatus } from "./hooks-status-DiqubDlK.js";
|
|
19
19
|
import { n as logConfigUpdated } from "./logging-DcXIbpwk.js";
|
|
20
20
|
import { t as runTui } from "./tui-Bm8FEW0b.js";
|
|
21
|
-
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-
|
|
21
|
+
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-lAyxyd7X.js";
|
|
22
22
|
import { t as validateIPv4AddressInput } from "./ipv4-BYbwrpG-.js";
|
|
23
23
|
import os from "node:os";
|
|
24
24
|
import path from "node:path";
|
|
@@ -7,18 +7,18 @@ import { r as resolveCliName, t as formatCliCommand } from "./command-format-BCt
|
|
|
7
7
|
import { p as findTailscaleBinary } from "./auth-DXrALxdm.js";
|
|
8
8
|
import { g as readClaudeCliCredentials, l as ensureAuthProfileStore } from "./auth-profiles-DjCH4kWT.js";
|
|
9
9
|
import { r as ensureAuthenticated } from "./noxsoft-auth-Bmict45b.js";
|
|
10
|
-
import { r as installCompletion } from "./completion-cli-
|
|
10
|
+
import { r as installCompletion } from "./completion-cli-BBKG6buM.js";
|
|
11
11
|
import { a as gatewayInstallErrorHint, i as buildGatewayInstallPlan, n as GATEWAY_DAEMON_RUNTIME_OPTIONS, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-CIE27usH.js";
|
|
12
12
|
import { _ as summarizeExistingConfig, a as ensureWorkspaceAndSessions, d as openUrl, f as printWizardHeader, h as resolveControlUiLinks, i as detectBrowserOpenSupport, m as randomToken, n as applyWizardMetadata, o as formatControlUiSshHint, p as probeGatewayReachable, t as DEFAULT_WORKSPACE, u as normalizeGatewayTokenInput, v as validateGatewayPasswordInput, y as waitForGatewayReachable } from "./onboard-helpers-DPqXrhma.js";
|
|
13
13
|
import { r as isSystemdUserServiceAvailable } from "./systemd-5KGZ3NHE.js";
|
|
14
14
|
import { t as resolveGatewayService } from "./service-QlHhVsQf.js";
|
|
15
|
-
import { r as healthCommand } from "./health-
|
|
15
|
+
import { r as healthCommand } from "./health-D8fJ6U_k.js";
|
|
16
16
|
import { n as ensureControlUiAssetsBuilt, t as formatHealthCheckFailure } from "./health-format-CH6JWH45.js";
|
|
17
|
-
import { c as promptDefaultModel, i as applyAuthChoice, n as resolvePreferredProviderForAuthChoice, p as promptAuthChoiceGrouped, r as warnIfModelConfigLooksOff, s as applyPrimaryModel, t as WizardCancelledError } from "./prompts-
|
|
17
|
+
import { c as promptDefaultModel, i as applyAuthChoice, n as resolvePreferredProviderForAuthChoice, p as promptAuthChoiceGrouped, r as warnIfModelConfigLooksOff, s as applyPrimaryModel, t as WizardCancelledError } from "./prompts-CneQ6SeF.js";
|
|
18
18
|
import { t as buildWorkspaceHookStatus } from "./hooks-status-VvwKn90L.js";
|
|
19
19
|
import { n as logConfigUpdated } from "./logging-DhXRGHWg.js";
|
|
20
20
|
import { t as runTui } from "./tui-DtGKiHUr.js";
|
|
21
|
-
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-
|
|
21
|
+
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-C8JSWfqN.js";
|
|
22
22
|
import { t as validateIPv4AddressInput } from "./ipv4-BYbwrpG-.js";
|
|
23
23
|
import os from "node:os";
|
|
24
24
|
import path from "node:path";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as __exportAll } from "./chunk-BXK9XSlF.js";
|
|
2
|
-
import { D as getChildLogger, t as createSubsystemLogger } from "./subsystem-
|
|
3
|
-
import { A as toWhatsappJid, m as escapeRegExp } from "./exec-
|
|
4
|
-
import { n as loadConfig } from "./config-
|
|
5
|
-
import { a as resolveMarkdownTableMode, c as loadWebMedia, i as convertMarkdownTables, n as requireActiveWebListener, o as normalizePollInput } from "./active-listener-
|
|
2
|
+
import { D as getChildLogger, t as createSubsystemLogger } from "./subsystem-DA3Cno1i.js";
|
|
3
|
+
import { A as toWhatsappJid, m as escapeRegExp } from "./exec-Bfd4ztFZ.js";
|
|
4
|
+
import { n as loadConfig } from "./config-6FVC8hW0.js";
|
|
5
|
+
import { a as resolveMarkdownTableMode, c as loadWebMedia, i as convertMarkdownTables, n as requireActiveWebListener, o as normalizePollInput } from "./active-listener-GJR3nLhX.js";
|
|
6
6
|
import { randomUUID } from "node:crypto";
|
|
7
7
|
|
|
8
8
|
//#region src/markdown/whatsapp.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as expandHomePrefix, s as resolveStateDir, u as resolveRequiredHomeDir } from "./paths-
|
|
2
|
-
import { _ as DEFAULT_AGENT_ID, w as normalizeAgentId } from "./workspace-
|
|
1
|
+
import { c as expandHomePrefix, s as resolveStateDir, u as resolveRequiredHomeDir } from "./paths-D2eokayo.js";
|
|
2
|
+
import { _ as DEFAULT_AGENT_ID, w as normalizeAgentId } from "./workspace-BQkffCaR.js";
|
|
3
3
|
import os from "node:os";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import os from "node:os";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
import
|
|
3
|
+
import fsSync from "node:fs";
|
|
4
4
|
|
|
5
5
|
//#region src/infra/home-dir.ts
|
|
6
6
|
function normalize(value) {
|
|
@@ -111,7 +111,7 @@ function resolveCanonicalConfigPath(env = process.env, stateDir = resolveStateDi
|
|
|
111
111
|
function resolveConfigPathCandidate(env = process.env, homedir = envHomedir(env)) {
|
|
112
112
|
const existing = resolveDefaultConfigCandidates(env, homedir).find((candidate) => {
|
|
113
113
|
try {
|
|
114
|
-
return
|
|
114
|
+
return fsSync.existsSync(candidate);
|
|
115
115
|
} catch {
|
|
116
116
|
return false;
|
|
117
117
|
}
|
|
@@ -128,7 +128,7 @@ function resolveConfigPath(env = process.env, stateDir = resolveStateDir(env, en
|
|
|
128
128
|
const stateOverride = env.ANIMA_STATE_DIR?.trim();
|
|
129
129
|
const configPath = path.join(stateDir, CONFIG_FILENAME);
|
|
130
130
|
try {
|
|
131
|
-
if (
|
|
131
|
+
if (fsSync.existsSync(configPath)) return configPath;
|
|
132
132
|
} catch {}
|
|
133
133
|
if (stateOverride) return configPath;
|
|
134
134
|
const defaultStateDir = resolveStateDir(env, homedir);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./paths-
|
|
2
|
-
import "./workspace-
|
|
3
|
-
import "./subsystem-
|
|
4
|
-
import "./exec-
|
|
5
|
-
import "./agent-scope-
|
|
6
|
-
import "./model-selection-
|
|
7
|
-
import { a as listProfilesForProvider, o as ensureAuthProfileStore } from "./auth-profiles-
|
|
1
|
+
import "./paths-D2eokayo.js";
|
|
2
|
+
import "./workspace-BQkffCaR.js";
|
|
3
|
+
import "./subsystem-DA3Cno1i.js";
|
|
4
|
+
import "./exec-Bfd4ztFZ.js";
|
|
5
|
+
import "./agent-scope-BZ8hjIt_.js";
|
|
6
|
+
import "./model-selection-BI8CKPwQ.js";
|
|
7
|
+
import { a as listProfilesForProvider, o as ensureAuthProfileStore } from "./auth-profiles-eZzmaeR3.js";
|
|
8
8
|
import fs from "node:fs/promises";
|
|
9
9
|
import path from "node:path";
|
|
10
10
|
|
|
@@ -2911,8 +2911,7 @@ const DEFAULT_CODEX_BACKEND = {
|
|
|
2911
2911
|
"--json",
|
|
2912
2912
|
"--color",
|
|
2913
2913
|
"never",
|
|
2914
|
-
"--sandbox",
|
|
2915
|
-
"danger-full-access",
|
|
2914
|
+
"--dangerously-bypass-approvals-and-sandbox",
|
|
2916
2915
|
"--skip-git-repo-check"
|
|
2917
2916
|
],
|
|
2918
2917
|
resumeArgs: [
|
|
@@ -2990,6 +2989,7 @@ const LEGACY_CODEX_RESUME_ARGS = [
|
|
|
2990
2989
|
"read-only",
|
|
2991
2990
|
"--skip-git-repo-check"
|
|
2992
2991
|
];
|
|
2992
|
+
const CODEX_BYPASS_FLAG = "--dangerously-bypass-approvals-and-sandbox";
|
|
2993
2993
|
function normalizeBackendKey(key) {
|
|
2994
2994
|
return normalizeProviderId(key);
|
|
2995
2995
|
}
|
|
@@ -3026,27 +3026,34 @@ function argsEqual(left, right) {
|
|
|
3026
3026
|
if (!left || !right || left.length !== right.length) return false;
|
|
3027
3027
|
return left.every((entry, index) => entry === right[index]);
|
|
3028
3028
|
}
|
|
3029
|
-
function
|
|
3029
|
+
function resolveCodexExecModeArg(args) {
|
|
3030
3030
|
if (!args) return;
|
|
3031
|
+
if (args.includes(CODEX_BYPASS_FLAG)) return CODEX_BYPASS_FLAG;
|
|
3031
3032
|
const index = args.indexOf("--sandbox");
|
|
3032
3033
|
const value = index >= 0 ? args[index + 1] : void 0;
|
|
3033
|
-
return
|
|
3034
|
-
}
|
|
3035
|
-
function
|
|
3036
|
-
const nextArgs = [
|
|
3037
|
-
const
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3034
|
+
return value === "workspace-write" || value === "read-only" ? value : void 0;
|
|
3035
|
+
}
|
|
3036
|
+
function setCodexExecModeArgs(args, mode) {
|
|
3037
|
+
const nextArgs = [];
|
|
3038
|
+
const source = args ?? [];
|
|
3039
|
+
for (let i = 0; i < source.length; i += 1) {
|
|
3040
|
+
const entry = source[i];
|
|
3041
|
+
if (entry === CODEX_BYPASS_FLAG) continue;
|
|
3042
|
+
if (entry === "--sandbox") {
|
|
3043
|
+
i += 1;
|
|
3044
|
+
continue;
|
|
3045
|
+
}
|
|
3046
|
+
nextArgs.push(entry);
|
|
3041
3047
|
}
|
|
3042
|
-
nextArgs.push(
|
|
3048
|
+
if (mode === CODEX_BYPASS_FLAG) nextArgs.push(CODEX_BYPASS_FLAG);
|
|
3049
|
+
else nextArgs.push("--sandbox", mode);
|
|
3043
3050
|
return nextArgs;
|
|
3044
3051
|
}
|
|
3045
|
-
function
|
|
3052
|
+
function resolveManagedCodexExecMode(cfg) {
|
|
3046
3053
|
const workspaceAccess = cfg?.agents?.defaults?.sandbox?.workspaceAccess;
|
|
3047
3054
|
if (workspaceAccess === "ro") return "read-only";
|
|
3048
3055
|
if (workspaceAccess === "rw") return "workspace-write";
|
|
3049
|
-
return
|
|
3056
|
+
return CODEX_BYPASS_FLAG;
|
|
3050
3057
|
}
|
|
3051
3058
|
function resolveCliBackendConfig(provider, cfg) {
|
|
3052
3059
|
const normalized = normalizeBackendKey(provider);
|
|
@@ -3074,9 +3081,9 @@ function resolveCliBackendConfig(provider, cfg) {
|
|
|
3074
3081
|
...merged,
|
|
3075
3082
|
resumeArgs: DEFAULT_CODEX_BACKEND.resumeArgs
|
|
3076
3083
|
};
|
|
3077
|
-
if (!
|
|
3084
|
+
if (!resolveCodexExecModeArg(override?.args) || (override?.args ? argsEqual(override.args, LEGACY_CODEX_ARGS) : false)) merged = {
|
|
3078
3085
|
...merged,
|
|
3079
|
-
args:
|
|
3086
|
+
args: setCodexExecModeArgs(merged.args, resolveManagedCodexExecMode(cfg))
|
|
3080
3087
|
};
|
|
3081
3088
|
const command = merged.command?.trim();
|
|
3082
3089
|
if (!command) return null;
|
|
@@ -3258,7 +3265,7 @@ async function runCliAgent(params) {
|
|
|
3258
3265
|
const backendResolved = resolveCliBackendConfig(params.provider, params.config);
|
|
3259
3266
|
if (!backendResolved) throw new Error(`Unknown CLI backend: ${params.provider}`);
|
|
3260
3267
|
const backend = backendResolved.config;
|
|
3261
|
-
const
|
|
3268
|
+
const effectiveCodexExecMode = resolveCodexExecModeArg(backend.args);
|
|
3262
3269
|
const modelId = (params.model ?? "default").trim() || "default";
|
|
3263
3270
|
const normalizedModel = normalizeCliModel(modelId, backend);
|
|
3264
3271
|
const modelDisplay = `${params.provider}/${modelId}`;
|
|
@@ -3309,10 +3316,11 @@ async function runCliAgent(params) {
|
|
|
3309
3316
|
const lines = (await readFile(params.sessionFile, "utf-8")).trim().split("\n");
|
|
3310
3317
|
const lastLine = lines[lines.length - 1];
|
|
3311
3318
|
if (lastLine) {
|
|
3312
|
-
const
|
|
3313
|
-
const
|
|
3314
|
-
|
|
3315
|
-
|
|
3319
|
+
const parsed = JSON.parse(lastLine);
|
|
3320
|
+
const previousMode = parsed.metadata?.effectiveCodexExecMode ?? parsed.metadata?.effectiveSandbox;
|
|
3321
|
+
const currentMode = effectiveCodexExecMode;
|
|
3322
|
+
if (previousMode && previousMode !== currentMode) {
|
|
3323
|
+
log$8.info(`Codex execution mode changed (${previousMode} -> ${currentMode}); forcing session restart.`);
|
|
3316
3324
|
useResume = false;
|
|
3317
3325
|
isNew = true;
|
|
3318
3326
|
}
|
|
@@ -3461,7 +3469,7 @@ async function runCliAgent(params) {
|
|
|
3461
3469
|
provider: params.provider,
|
|
3462
3470
|
model: modelId,
|
|
3463
3471
|
usage: output.usage,
|
|
3464
|
-
...
|
|
3472
|
+
...effectiveCodexExecMode ? { metadata: { effectiveCodexExecMode } } : {}
|
|
3465
3473
|
}
|
|
3466
3474
|
}
|
|
3467
3475
|
};
|
|
@@ -40326,7 +40334,7 @@ function loadWebLoginQr() {
|
|
|
40326
40334
|
return webLoginQrPromise;
|
|
40327
40335
|
}
|
|
40328
40336
|
function loadWebChannel() {
|
|
40329
|
-
webChannelPromise ??= import("./web-
|
|
40337
|
+
webChannelPromise ??= import("./web-DJRRkHG8.js");
|
|
40330
40338
|
return webChannelPromise;
|
|
40331
40339
|
}
|
|
40332
40340
|
function loadWhatsAppActions() {
|