@noxsoft/anima 3.0.0 → 3.0.1
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-4HFzweNO.js → accounts-ZMhj636e.js} +38 -38
- package/dist/{acp-cli-CHsShBeX.js → acp-cli-PhWp41mc.js} +2 -2
- package/dist/{agent-rY3gCqJE.js → agent-DvWSUuKy.js} +1 -1
- package/dist/{agent-events-BiKKV3wj.js → agent-events-iR_gRjZA.js} +2 -2
- package/dist/{agent-scope-BXuH9s05.js → agent-scope-DWKQJUUZ.js} +3 -3
- package/dist/{agents-GDJBET4Z.js → agents-DAg3VWr9.js} +1 -1
- package/dist/{audit-B_3ewOwt.js → audit-Cm50mcVm.js} +3 -3
- package/dist/{auth-choice-BTMheCDo.js → auth-choice-CPDNhDPT.js} +17 -4
- package/dist/{auth-profiles-xk_1uopf.js → auth-profiles-BqrAPweI.js} +9 -9
- package/dist/{auth-store-Bis9WSLR.js → auth-store-eNVxoq_h.js} +13 -13
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +22 -22
- package/dist/bundled/bootstrap-extra-files/handler.js +6 -6
- package/dist/bundled/command-logger/handler.js +1 -1
- package/dist/bundled/session-memory/handler.js +8 -8
- package/dist/{call-BBzfZU0_.js → call-C0Yk2qNb.js} +1 -1
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-web-BBctXTmi.js → channel-web-Co4IvTdB.js} +5 -5
- package/dist/{chrome-CVfcErE4.js → chrome-_87P03u5.js} +7 -7
- package/dist/{chrome-C1KpzLwu.js → chrome-s7nTgmbn.js} +12 -12
- package/dist/{chunk-Cguey_55.js → chunk-lDG_8LI5.js} +2 -2
- package/dist/{clack-prompter-S0pujJNH.js → clack-prompter-DXovYg0Q.js} +1 -1
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-B2StCcqh.js → cli-BkI8EYn3.js} +9 -9
- package/dist/{client-oEG5cM5Q.js → client-BM5PkIwQ.js} +3 -3
- package/dist/{command-registry-D5y3Nn9i.js → command-registry-Cl3Z-qsS.js} +7 -7
- package/dist/{common-DgcMt-pi.js → common-DbouukNi.js} +2 -2
- package/dist/{completion-cli-CDsbJ-p2.js → completion-cli-BB3_g8w5.js} +1 -1
- package/dist/{completion-cli-CqZwlvs2.js → completion-cli-DcTEhrAe.js} +2 -2
- package/dist/{config-CrQw7iqE.js → config-H_VHtPeY.js} +27 -27
- package/dist/{config-cli-Brwjz25Y.js → config-cli-DCNRWoyW.js} +1 -1
- package/dist/{config-cli-CaUpfkTl.js → config-cli-VB37XAkf.js} +1 -1
- package/dist/{configure-B_PLPDkP.js → configure-CkmVabju.js} +5 -5
- package/dist/{configure-QwZPOdBf.js → configure-Du07BFtQ.js} +1 -1
- package/dist/{control-service-DptjbgYI.js → control-service-BpEnt1xS.js} +3 -3
- package/dist/{cron-cli-CpzhiW5t.js → cron-cli-BT0i4_jA.js} +3 -3
- package/dist/{daemon-cli-CV9nly9k.js → daemon-cli-DlHFi5Gm.js} +2 -2
- package/dist/{deliver-Bri9Y1qG.js → deliver-DyQtnfXd.js} +14 -14
- package/dist/{deps-DcinYE4_.js → deps-DoPMG4GI.js} +1 -1
- package/dist/{dispatcher-CiJKNMU3.js → dispatcher-wmQlHNsm.js} +1 -1
- package/dist/{doctor-qFADypWz.js → doctor-BxzkshQH.js} +1 -1
- package/dist/{doctor-BDWGCEMG.js → doctor-C3foAiuj.js} +6 -6
- package/dist/{doctor-completion-DguJOZqA.js → doctor-completion-CZgNNZVd.js} +1 -1
- package/dist/{doctor-completion-BY4djQTY.js → doctor-completion-VtjYTwcS.js} +1 -1
- package/dist/entry.js +1 -1
- package/dist/{exec-DJTRaYS6.js → exec-CK8CHr7j.js} +7 -7
- package/dist/{exec-approvals-cli-ESNXHzjZ.js → exec-approvals-cli-CAwe3fFV.js} +3 -3
- package/dist/{frontmatter-DDYuWuK5.js → frontmatter-BBFYH_d2.js} +2 -2
- package/dist/{gateway-cli-B091bAD6.js → gateway-cli-BKmCrkp2.js} +26 -26
- package/dist/{gateway-cli-CUmQFMSU.js → gateway-cli-D0mD_UV8.js} +6 -6
- package/dist/{gateway-rpc-hgK9OB-O.js → gateway-rpc-elmeRwyu.js} +1 -1
- package/dist/{health-CH8yZB2L.js → health-Cb_2WS_Z.js} +3 -3
- package/dist/{hooks-cli-DBAcPJTk.js → hooks-cli-BkaD_Vnq.js} +10 -10
- package/dist/{image-ops-ZMEg1-kE.js → image-ops-DJjERl7d.js} +2 -2
- package/dist/index.js +17 -17
- package/dist/json-file-Dvrir7_o.js +25 -0
- package/dist/llm-slug-generator.js +5 -5
- package/dist/{login-Bdyk0es6.js → login-CBsXoiD_.js} +1 -1
- package/dist/{login-DP5hIYxG.js → login-CdRss5_H.js} +5 -5
- package/dist/{login-qr-DOt_1aAq.js → login-qr-DoNanonP.js} +10 -10
- package/dist/{login-qr-DQS-8_PV.js → login-qr-aHN20jEV.js} +1 -1
- package/dist/{logs-cli-VAcUvvxS.js → logs-cli-DbdMIph-.js} +3 -3
- package/dist/{manager-CHN3-66K.js → manager-BlXVqzLP.js} +14 -14
- package/dist/{model-auth-C4Jglp-Y.js → model-auth-ChSwMwh7.js} +3 -3
- package/dist/{model-selection-BsVvfxCt.js → model-selection-DPoLkg_t.js} +1 -1
- package/dist/{node-cli-BujxFy1-.js → node-cli-Bcrlhaq3.js} +6 -6
- package/dist/{onboard-B006xiEP.js → onboard-5GREpC8E.js} +5 -5
- package/dist/{onboard-BqpDno7i.js → onboard-D8Khq7CJ.js} +2 -2
- package/dist/{onboard-channels-BQ5lwRDU.js → onboard-channels-CuDv5j-L.js} +1 -1
- package/dist/{onboard-helpers-K7wUCSoE.js → onboard-helpers-CMW6MSXA.js} +1 -1
- package/dist/{onboarding-DXQ0Qtq6.js → onboarding-B_Gs5W53.js} +6 -6
- package/dist/{onboarding-BLFJufto.js → onboarding-CGG6jZ0y.js} +3 -3
- package/dist/{outbound-DdFghG1N.js → outbound-DK71dddk.js} +6 -6
- package/dist/{paths-OaazGgrn.js → paths-CmZenvlb.js} +2 -2
- package/dist/{paths-B-AkG5FD.js → paths-D2eokayo.js} +3 -3
- package/dist/{pi-auth-json-CYnJfuU-.js → pi-auth-json-BYN-DI5a.js} +7 -7
- package/dist/{pi-embedded-helpers-CeMv9QXO.js → pi-embedded-helpers-CvYnWzAn.js} +44 -44
- package/dist/{plugin-registry-BsdLXCVX.js → plugin-registry-CIluPn2C.js} +1 -1
- package/dist/{plugins-cli-OPa7o4qd.js → plugins-cli-CgSDRx-C.js} +10 -10
- package/dist/{program-CzWSwu9I.js → program-Dk1iylK1.js} +2 -2
- package/dist/{program-context-C8DYJdS-.js → program-context-r2WimvLs.js} +23 -23
- package/dist/{prompts-Cm8eJ-i3.js → prompts-BT5ztuUd.js} +17 -4
- package/dist/{pw-ai-DVQKx_ca.js → pw-ai-q5Enhcu7.js} +4 -4
- package/dist/{pw-ai-Rz1I4vvf.js → pw-ai-ycVS073z.js} +1 -1
- package/dist/{qmd-manager-lcdr9Faq.js → qmd-manager-D_lZFetA.js} +7 -7
- package/dist/{register.agent-DY1YeTsP.js → register.agent-BCbrZgZT.js} +15 -15
- package/dist/{register.agent-B_gLj3iW.js → register.agent-sq78vQTz.js} +2 -2
- package/dist/{register.configure-BHsLGGdB.js → register.configure-CM8ScF9N.js} +15 -15
- package/dist/{register.configure-De5ZyOFg.js → register.configure-w6Ptx3C9.js} +2 -2
- package/dist/{register.maintenance-DSQmEYe7.js → register.maintenance-B15nWIhc.js} +16 -16
- package/dist/{register.maintenance-Bcb2lf7H.js → register.maintenance-Chm2rk_s.js} +5 -5
- package/dist/{register.onboard-COEVeozO.js → register.onboard-B7Ozkx53.js} +7 -7
- package/dist/{register.onboard-DUWYMOX1.js → register.onboard-k9Rd9qzS.js} +19 -19
- package/dist/{register.setup-D__YdHzY.js → register.setup-BId1QGzk.js} +7 -7
- package/dist/{register.setup-fJdxj_9G.js → register.setup-CN1yxMOl.js} +19 -19
- package/dist/{register.status-health-sessions-BsGFhOsG.js → register.status-health-sessions-CNUs9w8v.js} +13 -13
- package/dist/{register.subclis-D2HE_7Rz.js → register.subclis-N7uAMRX_.js} +3 -3
- package/dist/{reply-B5IU75jY.js → reply-BJ3jrefM.js} +12 -12
- package/dist/{reply-prefix-B90kjTag.js → reply-prefix-DBJU0o4f.js} +2 -2
- package/dist/{routes-D7OuiEUz.js → routes-CNqS9gOj.js} +2 -2
- package/dist/{run-main-BTol0uPD.js → run-main-DA4rt9qc.js} +6 -6
- package/dist/{sandbox-cli-CRzBRQ9r.js → sandbox-cli-BsMjNBFN.js} +3 -3
- package/dist/{security-cli-CVkFh9a9.js → security-cli-pupt3tx1.js} +6 -6
- package/dist/{semantic-BTp-RtM8.js → semantic-BcioSN1d.js} +1 -1
- package/dist/{server-context-CHGGYs6i.js → server-context-CcPmRFx_.js} +4 -4
- package/dist/{server-node-events-DMEsGLU8.js → server-node-events-DNDwVJH_.js} +5 -5
- package/dist/{session-BpAyGjL3.js → session-D53RZP3i.js} +6 -6
- package/dist/{session-CzBccNiw.js → session-DTRcP2Sj.js} +1 -1
- package/dist/{shell-env-5vFwNQcz.js → shell-env-BBHdjHEl.js} +1 -1
- package/dist/{soul-D4rF0iXu.js → soul-CXGTzaKZ.js} +1 -1
- package/dist/{sqlite-B3u2TqVF.js → sqlite-B-dYyac7.js} +4 -4
- package/dist/{status-CHuLEuXT.js → status-DNUP2mgR.js} +5 -5
- package/dist/{status-CTYln2fY.js → status-DYGeQK4c.js} +1 -1
- package/dist/{subagent-registry-jwfG4kCT.js → subagent-registry-D4idxv3D.js} +1 -1
- package/dist/{subagent-registry-xUCd2ZX9.js → subagent-registry-DjB3VS5s.js} +28 -28
- package/dist/{subsystem-BlEuMJjX.js → subsystem-CJTCKTwb.js} +13 -13
- package/dist/{system-cli-C8kg1fwg.js → system-cli-BNhplLHn.js} +3 -3
- package/dist/{tool-images-2qKyjXUj.js → tool-images-DBOSl4NL.js} +2 -2
- package/dist/{tui-cli-CypnMid4.js → tui-cli-ByERfWnP.js} +6 -6
- package/dist/{tui-DBbVe-hW.js → tui-dHcni7fC.js} +2 -2
- package/dist/{update-cli-CATjbP1k.js → update-cli-CGVsahIi.js} +5 -5
- package/dist/{update-cli-C6zUK6ap.js → update-cli-D7SyNIoQ.js} +17 -17
- package/dist/{update-runner-B-JShOyr.js → update-runner-DeNUEGyr.js} +1 -1
- package/dist/{usage-kmpmqBES.js → usage-DSZ_juox.js} +20 -20
- package/dist/{web-CTS-vEIT.js → web-DY2TrPoD.js} +86 -86
- package/dist/{web-EevNfpKp.js → web-DyUoZrMO.js} +13 -13
- package/dist/{whatsapp-actions-qDftmVCc.js → whatsapp-actions-B_fglZZt.js} +13 -13
- package/dist/{workspace-CZlo4alz.js → workspace-xzxJwPTB.js} +5 -5
- package/package.json +2 -1
- package/dist/json-file-CZ3ssFR9.js +0 -25
- /package/dist/{config-Btt1rkoB.js → config-COtiNNtV.js} +0 -0
- /package/dist/{input-provenance-B0pwc6mp.js → input-provenance-MbkIKHHL.js} +0 -0
package/dist/index.js
CHANGED
|
@@ -3,8 +3,8 @@ import "./paths-zhVksOvm.js";
|
|
|
3
3
|
import { B as theme, P as setVerbose, g as CHAT_CHANNEL_ORDER, l as visibleWidth, r as enableConsoleCapture, u as defaultRuntime, z as isRich } from "./subsystem-BaJ-PqmA.js";
|
|
4
4
|
import { E as toWhatsappJid, h as normalizeE164, n as assertWebChannel } from "./utils-RdHkpqQp.js";
|
|
5
5
|
import "./pi-embedded-helpers-6Tb87sgU.js";
|
|
6
|
-
import "./subagent-registry-
|
|
7
|
-
import { Rt as applyTemplate, St as installUnhandledRejectionHandler, t as getReplyFromConfig, vt as resolveCommitHash } from "./reply-
|
|
6
|
+
import "./subagent-registry-D4idxv3D.js";
|
|
7
|
+
import { Rt as applyTemplate, St as installUnhandledRejectionHandler, t as getReplyFromConfig, vt as resolveCommitHash } from "./reply-BJ3jrefM.js";
|
|
8
8
|
import { n as runExec, t as runCommandWithTimeout } from "./exec-Bsq6vlwp.js";
|
|
9
9
|
import "./agent-scope-vpVhWds3.js";
|
|
10
10
|
import "./model-selection-C2dz3AhV.js";
|
|
@@ -25,11 +25,11 @@ import "./model-auth-DUHamQTz.js";
|
|
|
25
25
|
import "./cli-session-CIhvoVRb.js";
|
|
26
26
|
import "./tokens-BLOye_TP.js";
|
|
27
27
|
import "./sandbox-wL61f1WP.js";
|
|
28
|
-
import "./chrome-
|
|
28
|
+
import "./chrome-_87P03u5.js";
|
|
29
29
|
import { _ as promptYesNo, g as ensureBinary } from "./auth-B8ry4GB_.js";
|
|
30
|
-
import "./server-context-
|
|
30
|
+
import "./server-context-CcPmRFx_.js";
|
|
31
31
|
import "./skills-DsdcfeyV.js";
|
|
32
|
-
import "./routes-
|
|
32
|
+
import "./routes-CNqS9gOj.js";
|
|
33
33
|
import { i as handlePortError, n as describePortOwner, r as ensurePortAvailable, t as PortInUseError } from "./ports-CmAt9mb6.js";
|
|
34
34
|
import "./message-channel-BbkwF58_.js";
|
|
35
35
|
import { n as listChannelPlugins } from "./plugins-CFb1gJ4N.js";
|
|
@@ -39,8 +39,8 @@ import "./parse-timeout-qnHqZvCW.js";
|
|
|
39
39
|
import "./chunk-DprzQA5H.js";
|
|
40
40
|
import "./deliver-tQREYhAr.js";
|
|
41
41
|
import "./pi-tools.policy-BoWzLBtH.js";
|
|
42
|
-
import "./client-
|
|
43
|
-
import "./call-
|
|
42
|
+
import "./client-BM5PkIwQ.js";
|
|
43
|
+
import "./call-C0Yk2qNb.js";
|
|
44
44
|
import "./memory-cli-CDMb58Y3.js";
|
|
45
45
|
import "./manager-1ZMunRXe.js";
|
|
46
46
|
import "./sqlite-EkbWHNXu.js";
|
|
@@ -54,26 +54,26 @@ import { t as formatDocsLink } from "./links-NgE0SEVZ.js";
|
|
|
54
54
|
import "./progress-gdB4V88Q.js";
|
|
55
55
|
import "./logging-1vypRz8h.js";
|
|
56
56
|
import "./auth-store-DWgI4Vj8.js";
|
|
57
|
-
import "./control-service-
|
|
58
|
-
import "./dispatcher-
|
|
57
|
+
import "./control-service-BpEnt1xS.js";
|
|
58
|
+
import "./dispatcher-wmQlHNsm.js";
|
|
59
59
|
import "./pi-model-discovery-HH8RvApN.js";
|
|
60
60
|
import "./delivery-queue-CdUtwMZr.js";
|
|
61
61
|
import "./session-cost-usage-CYdqhmt6.js";
|
|
62
|
-
import { r as waitForever, t as monitorWebChannel } from "./channel-web-
|
|
62
|
+
import { r as waitForever, t as monitorWebChannel } from "./channel-web-Co4IvTdB.js";
|
|
63
63
|
import "./outbound-CwCRq4Cg.js";
|
|
64
|
-
import "./session-
|
|
65
|
-
import "./reply-prefix-
|
|
64
|
+
import "./session-D53RZP3i.js";
|
|
65
|
+
import "./reply-prefix-DBJU0o4f.js";
|
|
66
66
|
import "./accounts-C9dcy8Gp.js";
|
|
67
|
-
import "./login-
|
|
68
|
-
import { t as createDefaultDeps } from "./deps-
|
|
67
|
+
import "./login-CBsXoiD_.js";
|
|
68
|
+
import { t as createDefaultDeps } from "./deps-DoPMG4GI.js";
|
|
69
69
|
import { t as isMainModule } from "./is-main-cB3p7uob.js";
|
|
70
70
|
import { t as ensureAnimaCliOnPath } from "./path-env-BO3_pVlb.js";
|
|
71
71
|
import { t as assertSupportedRuntime } from "./runtime-guard-PndcQBdO.js";
|
|
72
72
|
import "./ports-DIRb7aJE.js";
|
|
73
73
|
import { a as hasHelpOrVersion, i as getVerboseFlag, n as getCommandPath } from "./argv-rPFINZ5Y.js";
|
|
74
|
-
import { a as registerProgramCommands, n as setProgramContext } from "./program-context-
|
|
74
|
+
import { a as registerProgramCommands, n as setProgramContext } from "./program-context-r2WimvLs.js";
|
|
75
75
|
import { r as listChannelPluginCatalogEntries } from "./catalog-VwQGLU6M.js";
|
|
76
|
-
import { t as ensurePluginRegistryLoaded } from "./plugin-registry-
|
|
76
|
+
import { t as ensurePluginRegistryLoaded } from "./plugin-registry-CIluPn2C.js";
|
|
77
77
|
import process$1 from "node:process";
|
|
78
78
|
import { fileURLToPath } from "node:url";
|
|
79
79
|
import { Command } from "commander";
|
|
@@ -443,7 +443,7 @@ function registerPreActionHooks(program, programVersion) {
|
|
|
443
443
|
commandPath
|
|
444
444
|
});
|
|
445
445
|
if (PLUGIN_REQUIRED_COMMANDS.has(commandPath[0])) {
|
|
446
|
-
const { ensurePluginRegistryLoaded } = await import("./plugin-registry-
|
|
446
|
+
const { ensurePluginRegistryLoaded } = await import("./plugin-registry-CIluPn2C.js").then((n) => n.n);
|
|
447
447
|
ensurePluginRegistryLoaded();
|
|
448
448
|
}
|
|
449
449
|
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import path from "node:path";
|
|
2
|
+
import fsSync from "node:fs";
|
|
3
|
+
|
|
4
|
+
//#region src/infra/json-file.ts
|
|
5
|
+
function loadJsonFile(pathname) {
|
|
6
|
+
try {
|
|
7
|
+
if (!fsSync.existsSync(pathname)) return;
|
|
8
|
+
const raw = fsSync.readFileSync(pathname, "utf8");
|
|
9
|
+
return JSON.parse(raw);
|
|
10
|
+
} catch {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
function saveJsonFile(pathname, data) {
|
|
15
|
+
const dir = path.dirname(pathname);
|
|
16
|
+
if (!fsSync.existsSync(dir)) fsSync.mkdirSync(dir, {
|
|
17
|
+
recursive: true,
|
|
18
|
+
mode: 448
|
|
19
|
+
});
|
|
20
|
+
fsSync.writeFileSync(pathname, `${JSON.stringify(data, null, 2)}\n`, "utf8");
|
|
21
|
+
fsSync.chmodSync(pathname, 384);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
export { saveJsonFile as n, loadJsonFile as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
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-
|
|
1
|
+
import "./paths-D2eokayo.js";
|
|
2
|
+
import "./workspace-xzxJwPTB.js";
|
|
3
|
+
import "./subsystem-CJTCKTwb.js";
|
|
4
|
+
import "./exec-CK8CHr7j.js";
|
|
5
|
+
import { c as resolveDefaultAgentId, r as resolveAgentDir, s as resolveAgentWorkspaceDir } from "./agent-scope-DWKQJUUZ.js";
|
|
6
6
|
import { s as runEmbeddedPiAgent } from "./pi-embedded-CVojjlMb.js";
|
|
7
7
|
import fs from "node:fs/promises";
|
|
8
8
|
import os from "node:os";
|
|
@@ -4,7 +4,7 @@ import { s as logInfo } from "./exec-Bsq6vlwp.js";
|
|
|
4
4
|
import { i as loadConfig } from "./config-9JRRXykP.js";
|
|
5
5
|
import { t as formatCliCommand } from "./command-format-B1WxXbeU.js";
|
|
6
6
|
import { a as logoutWeb } from "./auth-store-DWgI4Vj8.js";
|
|
7
|
-
import { i as waitForWaConnection, n as formatError, t as createWaSocket, u as DisconnectReason } from "./session-
|
|
7
|
+
import { i as waitForWaConnection, n as formatError, t as createWaSocket, u as DisconnectReason } from "./session-D53RZP3i.js";
|
|
8
8
|
import { n as resolveWhatsAppAccount } from "./accounts-C9dcy8Gp.js";
|
|
9
9
|
|
|
10
10
|
//#region src/web/login.ts
|
|
@@ -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-
|
|
2
|
+
import { S as success, _ as info, g as danger, n as defaultRuntime } from "./subsystem-CJTCKTwb.js";
|
|
3
|
+
import { s as logInfo } from "./exec-CK8CHr7j.js";
|
|
4
4
|
import { t as formatCliCommand } from "./command-format-CZk1W3UP.js";
|
|
5
|
-
import { i as logoutWeb } from "./auth-store-
|
|
6
|
-
import { n as loadConfig } from "./config-
|
|
7
|
-
import { a as waitForWaConnection, d as DisconnectReason, n as createWaSocket, r as formatError, t as resolveWhatsAppAccount } from "./accounts-
|
|
5
|
+
import { i as logoutWeb } from "./auth-store-eNVxoq_h.js";
|
|
6
|
+
import { n as loadConfig } from "./config-H_VHtPeY.js";
|
|
7
|
+
import { a as waitForWaConnection, d as DisconnectReason, n as createWaSocket, r as formatError, t as resolveWhatsAppAccount } from "./accounts-ZMhj636e.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 { d as webAuthExists, i as logoutWeb, s as readWebSelfId } from "./auth-store-
|
|
7
|
-
import "./model-selection-
|
|
8
|
-
import { n as loadConfig } from "./config-
|
|
1
|
+
import "./paths-D2eokayo.js";
|
|
2
|
+
import "./workspace-xzxJwPTB.js";
|
|
3
|
+
import { S as success, _ as info, g as danger, n as defaultRuntime } from "./subsystem-CJTCKTwb.js";
|
|
4
|
+
import { s as logInfo } from "./exec-CK8CHr7j.js";
|
|
5
|
+
import "./agent-scope-DWKQJUUZ.js";
|
|
6
|
+
import { d as webAuthExists, i as logoutWeb, s as readWebSelfId } from "./auth-store-eNVxoq_h.js";
|
|
7
|
+
import "./model-selection-DPoLkg_t.js";
|
|
8
|
+
import { n as loadConfig } from "./config-H_VHtPeY.js";
|
|
9
9
|
import "./boolean-BsqeuxE6.js";
|
|
10
|
-
import "./shell-env-
|
|
11
|
-
import { a as waitForWaConnection, d as DisconnectReason, i as getStatusCode, n as createWaSocket, r as formatError, t as resolveWhatsAppAccount } from "./accounts-
|
|
10
|
+
import "./shell-env-BBHdjHEl.js";
|
|
11
|
+
import { a as waitForWaConnection, d as DisconnectReason, i as getStatusCode, n as createWaSocket, r as formatError, t as resolveWhatsAppAccount } from "./accounts-ZMhj636e.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";
|
|
@@ -11,7 +11,7 @@ import "./shell-env-SbFYz02H.js";
|
|
|
11
11
|
import "./manifest-registry-DLouWVJe.js";
|
|
12
12
|
import "./logging-1vypRz8h.js";
|
|
13
13
|
import { a as logoutWeb, c as readWebSelfId, f as webAuthExists } from "./auth-store-DWgI4Vj8.js";
|
|
14
|
-
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket, u as DisconnectReason } from "./session-
|
|
14
|
+
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket, u as DisconnectReason } from "./session-D53RZP3i.js";
|
|
15
15
|
import { n as resolveWhatsAppAccount } from "./accounts-C9dcy8Gp.js";
|
|
16
16
|
import { randomUUID } from "node:crypto";
|
|
17
17
|
import QRCodeModule from "qrcode-terminal/vendor/QRCode/index.js";
|
|
@@ -11,11 +11,11 @@ import "./shell-env-SbFYz02H.js";
|
|
|
11
11
|
import "./manifest-registry-DLouWVJe.js";
|
|
12
12
|
import { t as formatCliCommand } from "./command-format-B1WxXbeU.js";
|
|
13
13
|
import "./message-channel-BbkwF58_.js";
|
|
14
|
-
import "./client-
|
|
15
|
-
import { t as buildGatewayConnectionDetails } from "./call-
|
|
14
|
+
import "./client-BM5PkIwQ.js";
|
|
15
|
+
import { t as buildGatewayConnectionDetails } from "./call-C0Yk2qNb.js";
|
|
16
16
|
import { t as formatDocsLink } from "./links-NgE0SEVZ.js";
|
|
17
17
|
import "./progress-gdB4V88Q.js";
|
|
18
|
-
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-
|
|
18
|
+
import { n as callGatewayFromCli, t as addGatewayClientOptions } from "./gateway-rpc-elmeRwyu.js";
|
|
19
19
|
import { setTimeout } from "node:timers/promises";
|
|
20
20
|
|
|
21
21
|
//#region src/logging/parse-log-line.ts
|
|
@@ -1,18 +1,18 @@
|
|
|
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 } from "./shell-env-
|
|
7
|
-
import { o as resolveSessionTranscriptsDirForAgent } from "./paths-
|
|
2
|
+
import { s as resolveStateDir } from "./paths-D2eokayo.js";
|
|
3
|
+
import { t as createSubsystemLogger } from "./subsystem-CJTCKTwb.js";
|
|
4
|
+
import { O as sleep, d as clampInt, f as clampNumber$1, j as truncateUtf16Safe, w as resolveUserPath } from "./exec-CK8CHr7j.js";
|
|
5
|
+
import { n as resolveAgentConfig, r as resolveAgentDir$1, s as resolveAgentWorkspaceDir } from "./agent-scope-DWKQJUUZ.js";
|
|
6
|
+
import { s as isTruthyEnvValue } from "./shell-env-BBHdjHEl.js";
|
|
7
|
+
import { o as resolveSessionTranscriptsDirForAgent } from "./paths-CmZenvlb.js";
|
|
8
8
|
import { n as onSessionTranscriptUpdate } from "./transcript-events-D0hT93vo.js";
|
|
9
9
|
import { n as formatErrorMessage } from "./errors-DzK5Mvu0.js";
|
|
10
|
-
import { i as resolveApiKeyForProvider, r as requireApiKey } from "./model-auth-
|
|
11
|
-
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-
|
|
10
|
+
import { i as resolveApiKeyForProvider, r as requireApiKey } from "./model-auth-ChSwMwh7.js";
|
|
11
|
+
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-B-dYyac7.js";
|
|
12
12
|
import fs from "node:fs/promises";
|
|
13
13
|
import os from "node:os";
|
|
14
14
|
import path from "node:path";
|
|
15
|
-
import
|
|
15
|
+
import fsSync from "node:fs";
|
|
16
16
|
import { randomUUID } from "node:crypto";
|
|
17
17
|
import chokidar from "chokidar";
|
|
18
18
|
import { createInterface } from "node:readline";
|
|
@@ -468,7 +468,7 @@ function canAutoSelectLocal(options) {
|
|
|
468
468
|
if (/^(hf:|https?:)/i.test(modelPath)) return false;
|
|
469
469
|
const resolved = resolveUserPath(modelPath);
|
|
470
470
|
try {
|
|
471
|
-
return
|
|
471
|
+
return fsSync.statSync(resolved).isFile();
|
|
472
472
|
} catch {
|
|
473
473
|
return false;
|
|
474
474
|
}
|
|
@@ -2320,7 +2320,7 @@ var MemoryManagerSyncOps = class {
|
|
|
2320
2320
|
]);
|
|
2321
2321
|
const additionalPaths = normalizeExtraMemoryPaths(this.workspaceDir, this.settings.extraPaths);
|
|
2322
2322
|
for (const entry of additionalPaths) try {
|
|
2323
|
-
const stat =
|
|
2323
|
+
const stat = fsSync.lstatSync(entry);
|
|
2324
2324
|
if (stat.isSymbolicLink()) continue;
|
|
2325
2325
|
if (stat.isDirectory()) {
|
|
2326
2326
|
watchPaths.add(path.join(entry, "**", "*.md"));
|
|
@@ -3212,9 +3212,9 @@ var MemoryIndexManager = class MemoryIndexManager {
|
|
|
3212
3212
|
async searchTiered(query, options) {
|
|
3213
3213
|
const { searchAllTiers } = await import("./cross-tier-search-Cyy2cNEk.js").then((n) => n.t);
|
|
3214
3214
|
const { ImmediateMemory } = await import("./immediate-rEMX-FGd.js").then((n) => n.t);
|
|
3215
|
-
const { SessionMemory } = await import("./session-
|
|
3216
|
-
const { SemanticMemoryTier } = await import("./semantic-
|
|
3217
|
-
const { SoulMemory } = await import("./soul-
|
|
3215
|
+
const { SessionMemory } = await import("./session-DTRcP2Sj.js").then((n) => n.t);
|
|
3216
|
+
const { SemanticMemoryTier } = await import("./semantic-BcioSN1d.js").then((n) => n.t);
|
|
3217
|
+
const { SoulMemory } = await import("./soul-CXGTzaKZ.js").then((n) => n.t);
|
|
3218
3218
|
return searchAllTiers(query, {
|
|
3219
3219
|
immediate: new ImmediateMemory(),
|
|
3220
3220
|
session: new SessionMemory(this.db),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as formatCliCommand } from "./command-format-CZk1W3UP.js";
|
|
2
|
-
import { a as listProfilesForProvider, d as normalizeSecretInput, i as resolveApiKeyForProfile, n as resolveAuthProfileOrder, o as ensureAuthProfileStore, s as resolveAuthStorePathForDisplay, u as normalizeOptionalSecretInput } from "./auth-profiles-
|
|
3
|
-
import { s as normalizeProviderId } from "./model-selection-
|
|
4
|
-
import { t as getShellEnvAppliedKeys } from "./shell-env-
|
|
2
|
+
import { a as listProfilesForProvider, d as normalizeSecretInput, i as resolveApiKeyForProfile, n as resolveAuthProfileOrder, o as ensureAuthProfileStore, s as resolveAuthStorePathForDisplay, u as normalizeOptionalSecretInput } from "./auth-profiles-BqrAPweI.js";
|
|
3
|
+
import { s as normalizeProviderId } from "./model-selection-DPoLkg_t.js";
|
|
4
|
+
import { t as getShellEnvAppliedKeys } from "./shell-env-BBHdjHEl.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { getEnvApiKey } from "@mariozechner/pi-ai";
|
|
7
7
|
|
|
@@ -11,18 +11,18 @@ import "./shell-env-SbFYz02H.js";
|
|
|
11
11
|
import "./manifest-registry-DLouWVJe.js";
|
|
12
12
|
import { o as detectMime } from "./image-ops-CVabMYiY.js";
|
|
13
13
|
import { t as formatCliCommand } from "./command-format-B1WxXbeU.js";
|
|
14
|
-
import "./chrome-
|
|
14
|
+
import "./chrome-_87P03u5.js";
|
|
15
15
|
import "./auth-B8ry4GB_.js";
|
|
16
|
-
import { a as resolveBrowserConfig } from "./server-context-
|
|
17
|
-
import "./routes-
|
|
16
|
+
import { a as resolveBrowserConfig } from "./server-context-CcPmRFx_.js";
|
|
17
|
+
import "./routes-CNqS9gOj.js";
|
|
18
18
|
import "./ports-CmAt9mb6.js";
|
|
19
19
|
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-BbkwF58_.js";
|
|
20
|
-
import { Ft as loadOrCreateDeviceIdentity, t as GatewayClient } from "./client-
|
|
20
|
+
import { Ft as loadOrCreateDeviceIdentity, t as GatewayClient } from "./client-BM5PkIwQ.js";
|
|
21
21
|
import { _ as analyzeArgvCommand, c as recordAllowlistUse, f as resolveExecApprovalsSocketPath, g as resolveSafeBins, h as evaluateShellAllowlist, l as requiresExecApproval, m as evaluateExecAllowlist, n as addAllowlistEntry, o as normalizeExecApprovals, p as saveExecApprovals, r as ensureExecApprovals, s as readExecApprovalsSnapshot, u as resolveExecApprovals } from "./exec-approvals-BTNqVQK0.js";
|
|
22
22
|
import { t as formatDocsLink } from "./links-NgE0SEVZ.js";
|
|
23
23
|
import "./logging-1vypRz8h.js";
|
|
24
|
-
import { n as createBrowserControlContext, r as startBrowserControlServiceFromConfig } from "./control-service-
|
|
25
|
-
import { t as createBrowserRouteDispatcher } from "./dispatcher-
|
|
24
|
+
import { n as createBrowserControlContext, r as startBrowserControlServiceFromConfig } from "./control-service-BpEnt1xS.js";
|
|
25
|
+
import { t as createBrowserRouteDispatcher } from "./dispatcher-wmQlHNsm.js";
|
|
26
26
|
import { c as formatNodeServiceDescription, g as resolveNodeWindowsTaskName, h as resolveNodeSystemdServiceName, m as resolveNodeLaunchAgentLabel } from "./constants-BCASNbxX.js";
|
|
27
27
|
import { t as ensureAnimaCliOnPath } from "./path-env-BO3_pVlb.js";
|
|
28
28
|
import { d as renderSystemNodeWarning, f as resolvePreferredNodePath, h as resolveNodeProgramArguments, o as resolveGatewayDevMode, p as resolveSystemNodeInfo, r as isGatewayDaemonRuntime, s as buildNodeServiceEnvironment, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-DOk9qM0y.js";
|
|
@@ -7,14 +7,14 @@ import { _ as normalizeOptionalSecretInput, a as resolveApiKeyForProfile, l as e
|
|
|
7
7
|
import { a as resolveEnvApiKey } from "./model-auth-DUHamQTz.js";
|
|
8
8
|
import { t as assertSupportedRuntime } from "./runtime-guard-PndcQBdO.js";
|
|
9
9
|
import { a as gatewayInstallErrorHint, i as buildGatewayInstallPlan, r as isGatewayDaemonRuntime, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-DOk9qM0y.js";
|
|
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-
|
|
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-CMW6MSXA.js";
|
|
11
11
|
import { r as isSystemdUserServiceAvailable } from "./systemd-IDjybnbO.js";
|
|
12
12
|
import { t as resolveGatewayService } from "./service-H_0E0nOX.js";
|
|
13
|
-
import { r as healthCommand } from "./health-
|
|
14
|
-
import { a as applyAuthProfileConfig, c as ensureAuthenticated, o as setAnthropicApiKey, t as WizardCancelledError } from "./prompts-
|
|
15
|
-
import { t as runOnboardingWizard } from "./onboarding-
|
|
13
|
+
import { r as healthCommand } from "./health-Cb_2WS_Z.js";
|
|
14
|
+
import { a as applyAuthProfileConfig, c as ensureAuthenticated, o as setAnthropicApiKey, t as WizardCancelledError } from "./prompts-BT5ztuUd.js";
|
|
15
|
+
import { t as runOnboardingWizard } from "./onboarding-B_Gs5W53.js";
|
|
16
16
|
import { n as logConfigUpdated } from "./logging-ClHj0gnP.js";
|
|
17
|
-
import { t as createClackPrompter } from "./clack-prompter-
|
|
17
|
+
import { t as createClackPrompter } from "./clack-prompter-DXovYg0Q.js";
|
|
18
18
|
import { n as ensureSystemdUserLingerNonInteractive } from "./systemd-linger-q1hyIpoI.js";
|
|
19
19
|
|
|
20
20
|
//#region src/commands/onboard-interactive.ts
|
|
@@ -10,9 +10,9 @@ import { a as ensureWorkspaceAndSessions, c as handleReset, h as resolveControlU
|
|
|
10
10
|
import { r as isSystemdUserServiceAvailable } from "./systemd-BEeuI9u0.js";
|
|
11
11
|
import { t as resolveGatewayService } from "./service-U3nMjKlR.js";
|
|
12
12
|
import { r as healthCommand } from "./health-27WiwNrh.js";
|
|
13
|
-
import { a as ensureAuthenticated } from "./auth-choice-
|
|
13
|
+
import { a as ensureAuthenticated } from "./auth-choice-CPDNhDPT.js";
|
|
14
14
|
import { n as applyAuthProfileConfig, r as setAnthropicApiKey, t as WizardCancelledError } from "./prompts-vr_Njtil.js";
|
|
15
|
-
import { t as runOnboardingWizard } from "./onboarding-
|
|
15
|
+
import { t as runOnboardingWizard } from "./onboarding-CGG6jZ0y.js";
|
|
16
16
|
import { n as logConfigUpdated } from "./logging-B05aEFEO.js";
|
|
17
17
|
import { t as createClackPrompter } from "./clack-prompter-1d_RjjVW.js";
|
|
18
18
|
import { n as ensureSystemdUserLingerNonInteractive } from "./systemd-linger-BXOkxYnH.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as createSubsystemLogger, v as formatChannelPrimerLine, x as listChatChannels, y as formatChannelSelectionLine } from "./subsystem-BaJ-PqmA.js";
|
|
2
|
-
import { K as loadAnimaPlugins } from "./reply-
|
|
2
|
+
import { K as loadAnimaPlugins } from "./reply-BJ3jrefM.js";
|
|
3
3
|
import { c as normalizeAccountId, t as DEFAULT_ACCOUNT_ID } from "./session-key-DxcgHezu.js";
|
|
4
4
|
import { c as resolveDefaultAgentId, s as resolveAgentWorkspaceDir } from "./agent-scope-vpVhWds3.js";
|
|
5
5
|
import { t as formatCliCommand } from "./command-format-B1WxXbeU.js";
|
|
@@ -7,7 +7,7 @@ import { t as pickPrimaryTailnetIPv4 } from "./tailnet-BuAkHZAk.js";
|
|
|
7
7
|
import { c as pickPrimaryLanIPv4, o as isValidIPv4 } from "./ws-ebl3urqL.js";
|
|
8
8
|
import { h as GATEWAY_CLIENT_NAMES, m as GATEWAY_CLIENT_MODES } from "./message-channel-BbkwF58_.js";
|
|
9
9
|
import { s as resolveSessionTranscriptsDirForAgent } from "./paths-CqMZNi-M.js";
|
|
10
|
-
import { n as callGateway } from "./call-
|
|
10
|
+
import { n as callGateway } from "./call-C0Yk2qNb.js";
|
|
11
11
|
import { t as isWSL } from "./wsl-cUQTlijg.js";
|
|
12
12
|
import { r as stylePromptTitle } from "./prompt-style-CXrnxWQG.js";
|
|
13
13
|
import path from "node:path";
|
|
@@ -6,19 +6,19 @@ import { l as writeConfigFile, o as readConfigFileSnapshot } from "./config-9JRR
|
|
|
6
6
|
import { r as resolveCliName, t as formatCliCommand } from "./command-format-B1WxXbeU.js";
|
|
7
7
|
import { l as ensureAuthProfileStore } from "./auth-profiles-DZS4PC_i.js";
|
|
8
8
|
import { p as findTailscaleBinary } from "./auth-B8ry4GB_.js";
|
|
9
|
-
import { r as installCompletion } from "./completion-cli-
|
|
9
|
+
import { r as installCompletion } from "./completion-cli-BB3_g8w5.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-DOk9qM0y.js";
|
|
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-
|
|
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-CMW6MSXA.js";
|
|
12
12
|
import { r as isSystemdUserServiceAvailable } from "./systemd-IDjybnbO.js";
|
|
13
13
|
import { t as resolveGatewayService } from "./service-H_0E0nOX.js";
|
|
14
|
-
import { r as healthCommand } from "./health-
|
|
14
|
+
import { r as healthCommand } from "./health-Cb_2WS_Z.js";
|
|
15
15
|
import { n as ensureControlUiAssetsBuilt, t as formatHealthCheckFailure } from "./health-format-BMwPAU53.js";
|
|
16
|
-
import { c as ensureAuthenticated, i as applyAuthChoice, n as resolvePreferredProviderForAuthChoice, r as warnIfModelConfigLooksOff, s as promptAuthChoiceGrouped, t as WizardCancelledError } from "./prompts-
|
|
16
|
+
import { c as ensureAuthenticated, i as applyAuthChoice, n as resolvePreferredProviderForAuthChoice, r as warnIfModelConfigLooksOff, s as promptAuthChoiceGrouped, t as WizardCancelledError } from "./prompts-BT5ztuUd.js";
|
|
17
17
|
import { a as promptDefaultModel, i as applyPrimaryModel, t as validateIPv4AddressInput } from "./ipv4-sll41DXC.js";
|
|
18
18
|
import { t as buildWorkspaceHookStatus } from "./hooks-status-BTVvcXJx.js";
|
|
19
19
|
import { n as logConfigUpdated } from "./logging-ClHj0gnP.js";
|
|
20
|
-
import { t as runTui } from "./tui-
|
|
21
|
-
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-
|
|
20
|
+
import { t as runTui } from "./tui-dHcni7fC.js";
|
|
21
|
+
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-VtjYTwcS.js";
|
|
22
22
|
import os from "node:os";
|
|
23
23
|
import path from "node:path";
|
|
24
24
|
import fs from "node:fs/promises";
|
|
@@ -5,20 +5,20 @@ import { h as pathExists, y as resolveUserPath } from "./utils-DwcweD55.js";
|
|
|
5
5
|
import { c as resolveDefaultAgentId, p as DEFAULT_BOOTSTRAP_FILENAME, s as resolveAgentWorkspaceDir } from "./agent-scope-M302b8FW.js";
|
|
6
6
|
import { l as writeConfigFile, o as readConfigFileSnapshot } from "./config-6zE4ZkSF.js";
|
|
7
7
|
import { p as findTailscaleBinary } from "./auth-CBxE4UNz.js";
|
|
8
|
-
import { r as installCompletion } from "./completion-cli-
|
|
8
|
+
import { r as installCompletion } from "./completion-cli-DcTEhrAe.js";
|
|
9
9
|
import { a as gatewayInstallErrorHint, i as buildGatewayInstallPlan, n as GATEWAY_DAEMON_RUNTIME_OPTIONS, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-Cbi2Ox6g.js";
|
|
10
10
|
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-DKu_2enh.js";
|
|
11
11
|
import { r as isSystemdUserServiceAvailable } from "./systemd-BEeuI9u0.js";
|
|
12
12
|
import { t as resolveGatewayService } from "./service-U3nMjKlR.js";
|
|
13
13
|
import { r as healthCommand } from "./health-27WiwNrh.js";
|
|
14
14
|
import { n as ensureControlUiAssetsBuilt, t as formatHealthCheckFailure } from "./health-format-Dug5Rbjg.js";
|
|
15
|
-
import { a as ensureAuthenticated, i as promptAuthChoiceGrouped, n as warnIfModelConfigLooksOff, r as applyAuthChoice, t as resolvePreferredProviderForAuthChoice } from "./auth-choice-
|
|
15
|
+
import { a as ensureAuthenticated, i as promptAuthChoiceGrouped, n as warnIfModelConfigLooksOff, r as applyAuthChoice, t as resolvePreferredProviderForAuthChoice } from "./auth-choice-CPDNhDPT.js";
|
|
16
16
|
import { t as WizardCancelledError } from "./prompts-vr_Njtil.js";
|
|
17
17
|
import { a as promptDefaultModel, i as applyPrimaryModel, t as validateIPv4AddressInput } from "./ipv4-yUiIU5CD.js";
|
|
18
18
|
import { t as buildWorkspaceHookStatus } from "./hooks-status-B53TbyZm.js";
|
|
19
19
|
import { n as logConfigUpdated } from "./logging-B05aEFEO.js";
|
|
20
20
|
import { t as runTui } from "./tui--uEeSnES.js";
|
|
21
|
-
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-
|
|
21
|
+
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-CZgNNZVd.js";
|
|
22
22
|
import os from "node:os";
|
|
23
23
|
import path from "node:path";
|
|
24
24
|
import fs from "node:fs/promises";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { n as __exportAll } from "./chunk-BXK9XSlF.js";
|
|
2
|
-
import { t as STATE_DIR } from "./paths-
|
|
3
|
-
import { C as normalizeAccountId, g as DEFAULT_ACCOUNT_ID } from "./workspace-
|
|
4
|
-
import { D as getChildLogger, t as createSubsystemLogger, v as logVerbose, x as shouldLogVerbose } from "./subsystem-
|
|
5
|
-
import { A as toWhatsappJid, c as logWarn, m as escapeRegExp, w as resolveUserPath } from "./exec-
|
|
2
|
+
import { t as STATE_DIR } from "./paths-D2eokayo.js";
|
|
3
|
+
import { C as normalizeAccountId, g as DEFAULT_ACCOUNT_ID } from "./workspace-xzxJwPTB.js";
|
|
4
|
+
import { D as getChildLogger, t as createSubsystemLogger, v as logVerbose, x as shouldLogVerbose } from "./subsystem-CJTCKTwb.js";
|
|
5
|
+
import { A as toWhatsappJid, c as logWarn, m as escapeRegExp, w as resolveUserPath } from "./exec-CK8CHr7j.js";
|
|
6
6
|
import { t as formatCliCommand } from "./command-format-CZk1W3UP.js";
|
|
7
|
-
import { C as normalizeChannelId, _ as createPinnedDispatcher, a as resizeToJpeg, b as resolvePinnedHostnameWithPolicy, g as closeDispatcher, h as SsrFBlockedError, i as optimizeImageToPng, m as mediaKindFromMime, o as detectMime, p as maxBytesForKind, r as hasAlphaChannel, s as extensionForMime, t as convertHeicToJpeg } from "./image-ops-
|
|
8
|
-
import { n as loadConfig } from "./config-
|
|
7
|
+
import { C as normalizeChannelId, _ as createPinnedDispatcher, a as resizeToJpeg, b as resolvePinnedHostnameWithPolicy, g as closeDispatcher, h as SsrFBlockedError, i as optimizeImageToPng, m as mediaKindFromMime, o as detectMime, p as maxBytesForKind, r as hasAlphaChannel, s as extensionForMime, t as convertHeicToJpeg } from "./image-ops-DJjERl7d.js";
|
|
8
|
+
import { n as loadConfig } from "./config-H_VHtPeY.js";
|
|
9
9
|
import fs from "node:fs/promises";
|
|
10
10
|
import os from "node:os";
|
|
11
11
|
import path from "node:path";
|
|
@@ -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-xzxJwPTB.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 { a as listProfilesForProvider, o as ensureAuthProfileStore } from "./auth-profiles-
|
|
7
|
-
import "./model-selection-
|
|
1
|
+
import "./paths-D2eokayo.js";
|
|
2
|
+
import "./workspace-xzxJwPTB.js";
|
|
3
|
+
import "./subsystem-CJTCKTwb.js";
|
|
4
|
+
import "./exec-CK8CHr7j.js";
|
|
5
|
+
import "./agent-scope-DWKQJUUZ.js";
|
|
6
|
+
import { a as listProfilesForProvider, o as ensureAuthProfileStore } from "./auth-profiles-BqrAPweI.js";
|
|
7
|
+
import "./model-selection-DPoLkg_t.js";
|
|
8
8
|
import fs from "node:fs/promises";
|
|
9
9
|
import path from "node:path";
|
|
10
10
|
|