@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,13 +1,13 @@
|
|
|
1
1
|
import { i as __toESM, n as __exportAll, r as __require, t as __commonJSMin } from "./chunk-BXK9XSlF.js";
|
|
2
|
-
import { a as resolveOAuthDir } from "./paths-
|
|
3
|
-
import { C as normalizeAccountId, g as DEFAULT_ACCOUNT_ID } from "./workspace-
|
|
4
|
-
import { D as getChildLogger, S as success, g as danger, k as toPinoLikeLogger } from "./subsystem-
|
|
5
|
-
import { p as ensureDir, w as resolveUserPath } from "./exec-
|
|
6
|
-
import { w as VERSION } from "./config-
|
|
2
|
+
import { a as resolveOAuthDir } from "./paths-D2eokayo.js";
|
|
3
|
+
import { C as normalizeAccountId, g as DEFAULT_ACCOUNT_ID } from "./workspace-BQkffCaR.js";
|
|
4
|
+
import { D as getChildLogger, S as success, g as danger, k as toPinoLikeLogger } from "./subsystem-DA3Cno1i.js";
|
|
5
|
+
import { p as ensureDir, w as resolveUserPath } from "./exec-Bfd4ztFZ.js";
|
|
6
|
+
import { w as VERSION } from "./config-6FVC8hW0.js";
|
|
7
7
|
import { t as formatCliCommand } from "./command-format-GLYKXXl-.js";
|
|
8
|
-
import { a as maybeRestoreCredsFromBackup, c as resolveDefaultWebAuthDir, l as resolveWebCredsBackupPath, u as resolveWebCredsPath } from "./auth-store-
|
|
8
|
+
import { a as maybeRestoreCredsFromBackup, c as resolveDefaultWebAuthDir, l as resolveWebCredsBackupPath, u as resolveWebCredsPath } from "./auth-store-CnRrUELz.js";
|
|
9
9
|
import path from "node:path";
|
|
10
|
-
import
|
|
10
|
+
import fsSync from "node:fs";
|
|
11
11
|
import { randomUUID } from "node:crypto";
|
|
12
12
|
import WebSocket from "ws";
|
|
13
13
|
import { promisify } from "util";
|
|
@@ -91047,7 +91047,7 @@ var require_atomic_sleep = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
91047
91047
|
//#endregion
|
|
91048
91048
|
//#region node_modules/.pnpm/sonic-boom@4.2.1/node_modules/sonic-boom/index.js
|
|
91049
91049
|
var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
91050
|
-
const fs
|
|
91050
|
+
const fs = __require("fs");
|
|
91051
91051
|
const EventEmitter$4 = __require("events");
|
|
91052
91052
|
const inherits = __require("util").inherits;
|
|
91053
91053
|
const path$1 = __require("path");
|
|
@@ -91090,17 +91090,17 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
91090
91090
|
const flags = sonic.append ? "a" : "w";
|
|
91091
91091
|
const mode = sonic.mode;
|
|
91092
91092
|
if (sonic.sync) try {
|
|
91093
|
-
if (sonic.mkdir) fs
|
|
91094
|
-
fileOpened(null, fs
|
|
91093
|
+
if (sonic.mkdir) fs.mkdirSync(path$1.dirname(file), { recursive: true });
|
|
91094
|
+
fileOpened(null, fs.openSync(file, flags, mode));
|
|
91095
91095
|
} catch (err) {
|
|
91096
91096
|
fileOpened(err);
|
|
91097
91097
|
throw err;
|
|
91098
91098
|
}
|
|
91099
|
-
else if (sonic.mkdir) fs
|
|
91099
|
+
else if (sonic.mkdir) fs.mkdir(path$1.dirname(file), { recursive: true }, (err) => {
|
|
91100
91100
|
if (err) return fileOpened(err);
|
|
91101
|
-
fs
|
|
91101
|
+
fs.open(file, flags, mode, fileOpened);
|
|
91102
91102
|
});
|
|
91103
|
-
else fs
|
|
91103
|
+
else fs.open(file, flags, mode, fileOpened);
|
|
91104
91104
|
}
|
|
91105
91105
|
function SonicBoom(opts) {
|
|
91106
91106
|
if (!(this instanceof SonicBoom)) return new SonicBoom(opts);
|
|
@@ -91138,8 +91138,8 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
91138
91138
|
this.flush = flushBuffer;
|
|
91139
91139
|
this.flushSync = flushBufferSync;
|
|
91140
91140
|
this._actualWrite = actualWriteBuffer;
|
|
91141
|
-
fsWriteSync = () => fs
|
|
91142
|
-
fsWrite = () => fs
|
|
91141
|
+
fsWriteSync = () => fs.writeSync(this.fd, this._writingBuf);
|
|
91142
|
+
fsWrite = () => fs.write(this.fd, this._writingBuf, this.release);
|
|
91143
91143
|
} else if (contentMode === void 0 || contentMode === kContentModeUtf8) {
|
|
91144
91144
|
this._writingBuf = "";
|
|
91145
91145
|
this.write = write;
|
|
@@ -91147,12 +91147,12 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
91147
91147
|
this.flushSync = flushSync;
|
|
91148
91148
|
this._actualWrite = actualWrite;
|
|
91149
91149
|
fsWriteSync = () => {
|
|
91150
|
-
if (Buffer.isBuffer(this._writingBuf)) return fs
|
|
91151
|
-
return fs
|
|
91150
|
+
if (Buffer.isBuffer(this._writingBuf)) return fs.writeSync(this.fd, this._writingBuf);
|
|
91151
|
+
return fs.writeSync(this.fd, this._writingBuf, "utf8");
|
|
91152
91152
|
};
|
|
91153
91153
|
fsWrite = () => {
|
|
91154
|
-
if (Buffer.isBuffer(this._writingBuf)) return fs
|
|
91155
|
-
return fs
|
|
91154
|
+
if (Buffer.isBuffer(this._writingBuf)) return fs.write(this.fd, this._writingBuf, this.release);
|
|
91155
|
+
return fs.write(this.fd, this._writingBuf, "utf8", this.release);
|
|
91156
91156
|
};
|
|
91157
91157
|
} else throw new Error(`SonicBoom supports "${kContentModeUtf8}" and "${kContentModeBuffer}", but passed ${contentMode}`);
|
|
91158
91158
|
if (typeof fd === "number") {
|
|
@@ -91197,7 +91197,7 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
91197
91197
|
return;
|
|
91198
91198
|
}
|
|
91199
91199
|
}
|
|
91200
|
-
if (this._fsync) fs
|
|
91200
|
+
if (this._fsync) fs.fsyncSync(this.fd);
|
|
91201
91201
|
const len = this._len;
|
|
91202
91202
|
if (this._reopening) {
|
|
91203
91203
|
this._writing = false;
|
|
@@ -91294,7 +91294,7 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
91294
91294
|
this._flushPending = true;
|
|
91295
91295
|
const onDrain = () => {
|
|
91296
91296
|
if (!this._fsync) try {
|
|
91297
|
-
fs
|
|
91297
|
+
fs.fsync(this.fd, (err) => {
|
|
91298
91298
|
this._flushPending = false;
|
|
91299
91299
|
cb(err);
|
|
91300
91300
|
});
|
|
@@ -91371,7 +91371,7 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
91371
91371
|
if (this._writing) return;
|
|
91372
91372
|
const fd = this.fd;
|
|
91373
91373
|
this.once("ready", () => {
|
|
91374
|
-
if (fd !== this.fd) fs
|
|
91374
|
+
if (fd !== this.fd) fs.close(fd, (err) => {
|
|
91375
91375
|
if (err) return this.emit("error", err);
|
|
91376
91376
|
});
|
|
91377
91377
|
});
|
|
@@ -91402,7 +91402,7 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
91402
91402
|
while (this._bufs.length || buf.length) {
|
|
91403
91403
|
if (buf.length <= 0) buf = this._bufs[0];
|
|
91404
91404
|
try {
|
|
91405
|
-
const n = Buffer.isBuffer(buf) ? fs
|
|
91405
|
+
const n = Buffer.isBuffer(buf) ? fs.writeSync(this.fd, buf) : fs.writeSync(this.fd, buf, "utf8");
|
|
91406
91406
|
const releasedBufObj = releaseWritingBuf(buf, this._len, n);
|
|
91407
91407
|
buf = releasedBufObj.writingBuf;
|
|
91408
91408
|
this._len = releasedBufObj.len;
|
|
@@ -91413,7 +91413,7 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
91413
91413
|
}
|
|
91414
91414
|
}
|
|
91415
91415
|
try {
|
|
91416
|
-
fs
|
|
91416
|
+
fs.fsyncSync(this.fd);
|
|
91417
91417
|
} catch {}
|
|
91418
91418
|
}
|
|
91419
91419
|
function flushBufferSync() {
|
|
@@ -91427,7 +91427,7 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
91427
91427
|
while (this._bufs.length || buf.length) {
|
|
91428
91428
|
if (buf.length <= 0) buf = mergeBuf(this._bufs[0], this._lens[0]);
|
|
91429
91429
|
try {
|
|
91430
|
-
const n = fs
|
|
91430
|
+
const n = fs.writeSync(this.fd, buf);
|
|
91431
91431
|
buf = buf.subarray(n);
|
|
91432
91432
|
this._len = Math.max(this._len - n, 0);
|
|
91433
91433
|
if (buf.length <= 0) {
|
|
@@ -91449,24 +91449,24 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
91449
91449
|
this._writing = true;
|
|
91450
91450
|
this._writingBuf = this._writingBuf.length ? this._writingBuf : this._bufs.shift() || "";
|
|
91451
91451
|
if (this.sync) try {
|
|
91452
|
-
release(null, Buffer.isBuffer(this._writingBuf) ? fs
|
|
91452
|
+
release(null, Buffer.isBuffer(this._writingBuf) ? fs.writeSync(this.fd, this._writingBuf) : fs.writeSync(this.fd, this._writingBuf, "utf8"));
|
|
91453
91453
|
} catch (err) {
|
|
91454
91454
|
release(err);
|
|
91455
91455
|
}
|
|
91456
|
-
else fs
|
|
91456
|
+
else fs.write(this.fd, this._writingBuf, release);
|
|
91457
91457
|
}
|
|
91458
91458
|
function actualWriteBuffer() {
|
|
91459
91459
|
const release = this.release;
|
|
91460
91460
|
this._writing = true;
|
|
91461
91461
|
this._writingBuf = this._writingBuf.length ? this._writingBuf : mergeBuf(this._bufs.shift(), this._lens.shift());
|
|
91462
91462
|
if (this.sync) try {
|
|
91463
|
-
release(null, fs
|
|
91463
|
+
release(null, fs.writeSync(this.fd, this._writingBuf));
|
|
91464
91464
|
} catch (err) {
|
|
91465
91465
|
release(err);
|
|
91466
91466
|
}
|
|
91467
91467
|
else {
|
|
91468
91468
|
if (kCopyBuffer) this._writingBuf = Buffer.from(this._writingBuf);
|
|
91469
|
-
fs
|
|
91469
|
+
fs.write(this.fd, this._writingBuf, release);
|
|
91470
91470
|
}
|
|
91471
91471
|
}
|
|
91472
91472
|
function actualClose(sonic) {
|
|
@@ -91480,10 +91480,10 @@ var require_sonic_boom = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
91480
91480
|
sonic._lens = [];
|
|
91481
91481
|
assert$1(typeof sonic.fd === "number", `sonic.fd must be a number, got ${typeof sonic.fd}`);
|
|
91482
91482
|
try {
|
|
91483
|
-
fs
|
|
91483
|
+
fs.fsync(sonic.fd, closeWrapped);
|
|
91484
91484
|
} catch {}
|
|
91485
91485
|
function closeWrapped() {
|
|
91486
|
-
if (sonic.fd !== 1 && sonic.fd !== 2) fs
|
|
91486
|
+
if (sonic.fd !== 1 && sonic.fd !== 2) fs.close(sonic.fd, done);
|
|
91487
91487
|
else done();
|
|
91488
91488
|
}
|
|
91489
91489
|
function done(err) {
|
|
@@ -100407,10 +100407,10 @@ function enqueueSaveCreds(authDir, saveCreds, logger) {
|
|
|
100407
100407
|
}
|
|
100408
100408
|
function readCredsJsonRaw(filePath) {
|
|
100409
100409
|
try {
|
|
100410
|
-
if (!
|
|
100411
|
-
const stats =
|
|
100410
|
+
if (!fsSync.existsSync(filePath)) return null;
|
|
100411
|
+
const stats = fsSync.statSync(filePath);
|
|
100412
100412
|
if (!stats.isFile() || stats.size <= 1) return null;
|
|
100413
|
-
return
|
|
100413
|
+
return fsSync.readFileSync(filePath, "utf-8");
|
|
100414
100414
|
} catch {
|
|
100415
100415
|
return null;
|
|
100416
100416
|
}
|
|
@@ -100422,16 +100422,16 @@ async function safeSaveCreds(authDir, saveCreds, logger) {
|
|
|
100422
100422
|
const raw = readCredsJsonRaw(credsPath);
|
|
100423
100423
|
if (raw) try {
|
|
100424
100424
|
JSON.parse(raw);
|
|
100425
|
-
|
|
100425
|
+
fsSync.copyFileSync(credsPath, backupPath);
|
|
100426
100426
|
try {
|
|
100427
|
-
|
|
100427
|
+
fsSync.chmodSync(backupPath, 384);
|
|
100428
100428
|
} catch {}
|
|
100429
100429
|
} catch {}
|
|
100430
100430
|
} catch {}
|
|
100431
100431
|
try {
|
|
100432
100432
|
await Promise.resolve(saveCreds());
|
|
100433
100433
|
try {
|
|
100434
|
-
|
|
100434
|
+
fsSync.chmodSync(resolveWebCredsPath(authDir), 384);
|
|
100435
100435
|
} catch {}
|
|
100436
100436
|
} catch (err) {
|
|
100437
100437
|
logger.warn({ error: String(err) }, "failed saving WhatsApp creds");
|
|
@@ -100597,7 +100597,7 @@ function resolveLegacyAuthDir() {
|
|
|
100597
100597
|
}
|
|
100598
100598
|
function legacyAuthExists(authDir) {
|
|
100599
100599
|
try {
|
|
100600
|
-
return
|
|
100600
|
+
return fsSync.existsSync(path.join(authDir, "creds.json"));
|
|
100601
100601
|
} catch {
|
|
100602
100602
|
return false;
|
|
100603
100603
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as STATE_DIR } from "./paths-
|
|
2
|
-
import { C as normalizeAccountId, g as DEFAULT_ACCOUNT_ID } from "./workspace-
|
|
3
|
-
import { v as logVerbose, x as shouldLogVerbose } from "./subsystem-
|
|
4
|
-
import { c as logWarn, w as resolveUserPath } from "./exec-
|
|
1
|
+
import { t as STATE_DIR } from "./paths-D2eokayo.js";
|
|
2
|
+
import { C as normalizeAccountId, g as DEFAULT_ACCOUNT_ID } from "./workspace-BQkffCaR.js";
|
|
3
|
+
import { v as logVerbose, x as shouldLogVerbose } from "./subsystem-DA3Cno1i.js";
|
|
4
|
+
import { c as logWarn, w as resolveUserPath } from "./exec-Bfd4ztFZ.js";
|
|
5
5
|
import { t as formatCliCommand } from "./command-format-GLYKXXl-.js";
|
|
6
|
-
import { A as detectMime, B as closeDispatcher, D as hasAlphaChannel, L as maxBytesForKind, O as optimizeImageToPng, R as mediaKindFromMime, T as convertHeicToJpeg, V as createPinnedDispatcher, W as resolvePinnedHostnameWithPolicy, f as normalizeChannelId, j as extensionForMime, k as resizeToJpeg, z as SsrFBlockedError } from "./chunk-
|
|
6
|
+
import { A as detectMime, B as closeDispatcher, D as hasAlphaChannel, L as maxBytesForKind, O as optimizeImageToPng, R as mediaKindFromMime, T as convertHeicToJpeg, V as createPinnedDispatcher, W as resolvePinnedHostnameWithPolicy, f as normalizeChannelId, j as extensionForMime, k as resizeToJpeg, z as SsrFBlockedError } from "./chunk-CyT-_QsQ.js";
|
|
7
7
|
import fs from "node:fs/promises";
|
|
8
8
|
import os from "node:os";
|
|
9
9
|
import path from "node:path";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as defaultRuntime, v as DEFAULT_CHAT_CHANNEL } from "./subsystem-BMsbqSb4.js";
|
|
2
2
|
import { C as supportsXHighThinking, m as formatXHighModelHint, p as formatThinkingLevels, x as normalizeVerboseLevel, y as normalizeThinkLevel } from "./pi-embedded-helpers-B6wVA0hU.js";
|
|
3
|
-
import { $n as runCliAgent, Bn as AGENT_LANE_NESTED, Ct as resolveOutboundTarget, Dt as runWithModelFallback, Or as resolveAgentTimeoutMs, Un as clearAgentRunContext, V as runEmbeddedPiAgent, Vn as AGENT_LANE_SUBAGENT, Wn as emitAgentEvent, er as lookupContextTokens, i as setCliSessionId, j as getSkillsSnapshotVersion, l as resolveSendPolicy, lr as loadModelCatalog, nr as applyModelOverrideToSessionEntry, qn as registerAgentRunContext, r as getCliSessionId, rr as applyVerboseOverride, tr as clearSessionAuthProfileOverride, u as getRemoteSkillEligibility, wt as resolveSessionDeliveryTarget } from "./reply-
|
|
3
|
+
import { $n as runCliAgent, Bn as AGENT_LANE_NESTED, Ct as resolveOutboundTarget, Dt as runWithModelFallback, Or as resolveAgentTimeoutMs, Un as clearAgentRunContext, V as runEmbeddedPiAgent, Vn as AGENT_LANE_SUBAGENT, Wn as emitAgentEvent, er as lookupContextTokens, i as setCliSessionId, j as getSkillsSnapshotVersion, l as resolveSendPolicy, lr as loadModelCatalog, nr as applyModelOverrideToSessionEntry, qn as registerAgentRunContext, r as getCliSessionId, rr as applyVerboseOverride, tr as clearSessionAuthProfileOverride, u as getRemoteSkillEligibility, wt as resolveSessionDeliveryTarget } from "./reply-BgPvB-gR.js";
|
|
4
4
|
import { d as resolveAgentIdFromSessionKey, l as normalizeAgentId, u as normalizeMainKey } from "./session-key-DAZmp8ll.js";
|
|
5
5
|
import { a as resolveAgentModelPrimary, i as resolveAgentModelFallbacksOverride, o as resolveAgentSkillsFilter, r as resolveAgentDir, s as resolveAgentWorkspaceDir, t as listAgentIds, x as ensureAgentWorkspace } from "./agent-scope-D3HZp64M.js";
|
|
6
6
|
import { _ as DEFAULT_MODEL, a as isCliProvider, d as resolveConfiguredModelRef, g as DEFAULT_CONTEXT_TOKENS, h as resolveThinkingDefault, o as modelKey, s as normalizeModelRef, t as buildAllowedModelSet, v as DEFAULT_PROVIDER } from "./model-selection-wCaVeFbb.js";
|
|
@@ -14,7 +14,7 @@ import { c as resolveStorePath, n as resolveSessionFilePath } from "./paths-Dazi
|
|
|
14
14
|
import { l as ensureAuthProfileStore } from "./auth-profiles-DjCH4kWT.js";
|
|
15
15
|
import { a as normalizeOutboundPayloadsForJson, i as normalizeOutboundPayloads, r as formatOutboundPayloadLog, t as deliverOutboundPayloads } from "./deliver-ahx1N11n.js";
|
|
16
16
|
import { l as deriveSessionTotalTokens, u as hasNonzeroUsage } from "./session-cost-usage-BamtB1rn.js";
|
|
17
|
-
import { t as createDefaultDeps } from "./deps-
|
|
17
|
+
import { t as createDefaultDeps } from "./deps-CeyVMZf1.js";
|
|
18
18
|
import crypto from "node:crypto";
|
|
19
19
|
|
|
20
20
|
//#region src/cli/outbound-send-deps.ts
|
|
@@ -7,7 +7,7 @@ import { _ as DEFAULT_MODEL, a as isCliProvider, d as resolveConfiguredModelRef,
|
|
|
7
7
|
import { r as buildWorkspaceSkillSnapshot } from "./skills-DtoVe1dS.js";
|
|
8
8
|
import { i as loadConfig } from "./config-Ofh9gKvs.js";
|
|
9
9
|
import { a as isInternalMessageChannel, d as resolveMessageChannel, i as isGatewayMessageChannel, l as normalizeMessageChannel, n as isDeliverableMessageChannel, t as INTERNAL_MESSAGE_CHANNEL } from "./message-channel-DdOBO6Qm.js";
|
|
10
|
-
import { An as clearSessionAuthProfileOverride, Cr as runCliAgent, D as setCliSessionId, E as getCliSessionId, Er as emitAgentEvent, Mn as applyVerboseOverride, Nt as AGENT_LANE_NESTED, On as getSkillsSnapshotVersion, Pt as AGENT_LANE_SUBAGENT, Rn as loadModelCatalog, Tr as clearAgentRunContext, c as runEmbeddedPiAgent, jn as applyModelOverrideToSessionEntry, kr as registerAgentRunContext, nr as resolveAgentTimeoutMs, on as resolveSendPolicy, ot as resolveOutboundTarget, sn as getRemoteSkillEligibility, st as resolveSessionDeliveryTarget, ut as runWithModelFallback } from "./subagent-registry-
|
|
10
|
+
import { An as clearSessionAuthProfileOverride, Cr as runCliAgent, D as setCliSessionId, E as getCliSessionId, Er as emitAgentEvent, Mn as applyVerboseOverride, Nt as AGENT_LANE_NESTED, On as getSkillsSnapshotVersion, Pt as AGENT_LANE_SUBAGENT, Rn as loadModelCatalog, Tr as clearAgentRunContext, c as runEmbeddedPiAgent, jn as applyModelOverrideToSessionEntry, kr as registerAgentRunContext, nr as resolveAgentTimeoutMs, on as resolveSendPolicy, ot as resolveOutboundTarget, sn as getRemoteSkillEligibility, st as resolveSessionDeliveryTarget, ut as runWithModelFallback } from "./subagent-registry-MZIxVf8W.js";
|
|
11
11
|
import { L as normalizeAccountId, d as resolveSessionKey, f as evaluateSessionFreshness, h as resolveSessionResetType, i as loadSessionStore, l as updateSessionStore, m as resolveSessionResetPolicy, p as resolveChannelResetConfig, x as resolveExplicitAgentSessionKey } from "./sessions-1XK2mH6L.js";
|
|
12
12
|
import { d as supportsXHighThinking, l as normalizeVerboseLevel, n as formatXHighModelHint, s as normalizeThinkLevel, t as formatThinkingLevels } from "./pi-embedded-helpers-D2SLlgS4.js";
|
|
13
13
|
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-BOMS6J5A.js";
|
|
@@ -20,7 +20,7 @@ import crypto from "node:crypto";
|
|
|
20
20
|
//#region src/cli/deps.ts
|
|
21
21
|
function createDefaultDeps() {
|
|
22
22
|
return { sendMessageWhatsApp: async (...args) => {
|
|
23
|
-
const { sendMessageWhatsApp } = await import("./web-
|
|
23
|
+
const { sendMessageWhatsApp } = await import("./web-DDAkSrtZ.js");
|
|
24
24
|
return await sendMessageWhatsApp(...args);
|
|
25
25
|
} };
|
|
26
26
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { s as resolveStateDir } from "./paths-
|
|
2
|
-
import { M as parseAgentSessionKey, _ as DEFAULT_AGENT_ID, p as resolveDefaultAgentWorkspaceDir, w as normalizeAgentId } from "./workspace-
|
|
3
|
-
import { w as resolveUserPath } from "./exec-
|
|
1
|
+
import { s as resolveStateDir } from "./paths-D2eokayo.js";
|
|
2
|
+
import { M as parseAgentSessionKey, _ as DEFAULT_AGENT_ID, p as resolveDefaultAgentWorkspaceDir, w as normalizeAgentId } from "./workspace-BQkffCaR.js";
|
|
3
|
+
import { w as resolveUserPath } from "./exec-Bfd4ztFZ.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
|
|
6
6
|
//#region src/agents/agent-scope.ts
|
|
@@ -13,13 +13,13 @@ import { s as resolveSessionTranscriptsDirForAgent } from "./paths-DMk3Q7yD.js";
|
|
|
13
13
|
import { n as withProgress } from "./progress-Dj2aBWOI.js";
|
|
14
14
|
import { a as ensureWorkspaceAndSessions, l as moveToTrash } from "./onboard-helpers-IeOtcIME.js";
|
|
15
15
|
import { t as resolveChannelDefaultAccountId } from "./helpers-CVp8W9aa.js";
|
|
16
|
-
import { n as resolveSessionKeyForRequest, t as agentCommand } from "./agent-
|
|
17
|
-
import { l as promptAuthChoiceGrouped, n as warnIfModelConfigLooksOff, r as applyAuthChoice } from "./auth-choice-
|
|
16
|
+
import { n as resolveSessionKeyForRequest, t as agentCommand } from "./agent-DUAarfNl.js";
|
|
17
|
+
import { l as promptAuthChoiceGrouped, n as warnIfModelConfigLooksOff, r as applyAuthChoice } from "./auth-choice-DPWnLV_w.js";
|
|
18
18
|
import { t as WizardCancelledError } from "./prompts-D6b3zLVO.js";
|
|
19
19
|
import { n as logConfigUpdated } from "./logging-DcXIbpwk.js";
|
|
20
20
|
import { a as loadAgentIdentity, i as listAgentEntries, l as parseIdentityMarkdown, n as buildAgentSummaries, o as pruneAgentConfig, r as findAgentEntryIndex, s as identityHasValues, t as applyAgentConfig } from "./agents.config-DibGEnBs.js";
|
|
21
21
|
import { t as createClackPrompter } from "./clack-prompter-QbDK4ABC.js";
|
|
22
|
-
import { n as setupChannels } from "./onboard-channels-
|
|
22
|
+
import { n as setupChannels } from "./onboard-channels-D6Gt3CsX.js";
|
|
23
23
|
import path from "node:path";
|
|
24
24
|
import fs from "node:fs/promises";
|
|
25
25
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { g as readCodexCliCredentialsCached, l as ensureAuthProfileStore, s as listProfilesForProvider } from "./auth-profiles-BF5x9Ej0.js";
|
|
2
2
|
import { a as resolveAgentModelPrimary } from "./agent-scope-Dm8IL1Ks.js";
|
|
3
3
|
import { _ as DEFAULT_MODEL, c as normalizeProviderId, d as resolveConfiguredModelRef, o as modelKey, r as buildModelAliasIndex, t as buildAllowedModelSet, v as DEFAULT_PROVIDER } from "./model-selection-DFbDH9o2.js";
|
|
4
|
-
import { Rn as loadModelCatalog } from "./subagent-registry-
|
|
4
|
+
import { Rn as loadModelCatalog } from "./subagent-registry-MZIxVf8W.js";
|
|
5
5
|
import { n as getCustomProviderApiKey, o as resolveEnvApiKey } from "./model-auth-CxAB4iZ0.js";
|
|
6
6
|
import { r as ensureAuthenticated } from "./noxsoft-auth-DpwLJIW0.js";
|
|
7
7
|
import { c as setAnthropicApiKey, i as formatTokenK, l as setGeminiApiKey, s as applyAuthProfileConfig, u as writeOAuthCredentials } from "./prompts-D6b3zLVO.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { n as __exportAll } from "./chunk-BXK9XSlF.js";
|
|
2
|
-
import { o as resolveOAuthPath, s as resolveStateDir } from "./paths-
|
|
3
|
-
import { _ as DEFAULT_AGENT_ID } from "./workspace-
|
|
4
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
5
|
-
import { w as resolveUserPath } from "./exec-
|
|
6
|
-
import { s as normalizeProviderId } from "./model-selection-
|
|
2
|
+
import { o as resolveOAuthPath, s as resolveStateDir } from "./paths-D2eokayo.js";
|
|
3
|
+
import { _ as DEFAULT_AGENT_ID } from "./workspace-BQkffCaR.js";
|
|
4
|
+
import { t as createSubsystemLogger } from "./subsystem-DA3Cno1i.js";
|
|
5
|
+
import { w as resolveUserPath } from "./exec-Bfd4ztFZ.js";
|
|
6
|
+
import { s as normalizeProviderId } from "./model-selection-BI8CKPwQ.js";
|
|
7
7
|
import { t as formatCliCommand } from "./command-format-GLYKXXl-.js";
|
|
8
8
|
import fs from "node:fs/promises";
|
|
9
9
|
import path from "node:path";
|
|
10
|
-
import
|
|
10
|
+
import fsSync from "node:fs";
|
|
11
11
|
import { execFileSync, execSync } from "node:child_process";
|
|
12
12
|
import { getOAuthApiKey, getOAuthProviders } from "@mariozechner/pi-ai";
|
|
13
13
|
|
|
@@ -189,8 +189,8 @@ async function withFileLock(filePath, options, fn) {
|
|
|
189
189
|
//#region src/infra/json-file.ts
|
|
190
190
|
function loadJsonFile(pathname) {
|
|
191
191
|
try {
|
|
192
|
-
if (!
|
|
193
|
-
const raw =
|
|
192
|
+
if (!fsSync.existsSync(pathname)) return;
|
|
193
|
+
const raw = fsSync.readFileSync(pathname, "utf8");
|
|
194
194
|
return JSON.parse(raw);
|
|
195
195
|
} catch {
|
|
196
196
|
return;
|
|
@@ -198,12 +198,12 @@ function loadJsonFile(pathname) {
|
|
|
198
198
|
}
|
|
199
199
|
function saveJsonFile(pathname, data) {
|
|
200
200
|
const dir = path.dirname(pathname);
|
|
201
|
-
if (!
|
|
201
|
+
if (!fsSync.existsSync(dir)) fsSync.mkdirSync(dir, {
|
|
202
202
|
recursive: true,
|
|
203
203
|
mode: 448
|
|
204
204
|
});
|
|
205
|
-
|
|
206
|
-
|
|
205
|
+
fsSync.writeFileSync(pathname, `${JSON.stringify(data, null, 2)}\n`, "utf8");
|
|
206
|
+
fsSync.chmodSync(pathname, 384);
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
//#endregion
|
|
@@ -351,7 +351,7 @@ function resolveAuthStorePathForDisplay(agentDir) {
|
|
|
351
351
|
return pathname.startsWith("~") ? pathname : resolveUserPath(pathname);
|
|
352
352
|
}
|
|
353
353
|
function ensureAuthStoreFile(pathname) {
|
|
354
|
-
if (
|
|
354
|
+
if (fsSync.existsSync(pathname)) return;
|
|
355
355
|
saveJsonFile(pathname, {
|
|
356
356
|
version: AUTH_STORE_VERSION,
|
|
357
357
|
profiles: {}
|
|
@@ -531,7 +531,7 @@ function loadAuthProfileStoreForAgent(agentDir, _options) {
|
|
|
531
531
|
if (shouldWrite && legacy !== null) {
|
|
532
532
|
const legacyPath = resolveLegacyAuthStorePath(agentDir);
|
|
533
533
|
try {
|
|
534
|
-
|
|
534
|
+
fsSync.unlinkSync(legacyPath);
|
|
535
535
|
} catch (err) {
|
|
536
536
|
if (err?.code !== "ENOENT") log$1.warn("failed to delete legacy auth.json after migration", {
|
|
537
537
|
err,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as resolveOAuthDir } from "./paths-
|
|
2
|
-
import { g as DEFAULT_ACCOUNT_ID } from "./workspace-
|
|
3
|
-
import { D as getChildLogger, S as success, _ as info, n as defaultRuntime } from "./subsystem-
|
|
4
|
-
import { w as resolveUserPath, y as jidToE164 } from "./exec-
|
|
1
|
+
import { a as resolveOAuthDir } from "./paths-D2eokayo.js";
|
|
2
|
+
import { g as DEFAULT_ACCOUNT_ID } from "./workspace-BQkffCaR.js";
|
|
3
|
+
import { D as getChildLogger, S as success, _ as info, n as defaultRuntime } from "./subsystem-DA3Cno1i.js";
|
|
4
|
+
import { w as resolveUserPath, y as jidToE164 } from "./exec-Bfd4ztFZ.js";
|
|
5
5
|
import { t as formatCliCommand } from "./command-format-GLYKXXl-.js";
|
|
6
6
|
import fs from "node:fs/promises";
|
|
7
7
|
import path from "node:path";
|
|
8
|
-
import
|
|
8
|
+
import fsSync from "node:fs";
|
|
9
9
|
|
|
10
10
|
//#region src/web/auth-store.ts
|
|
11
11
|
function resolveDefaultWebAuthDir() {
|
|
@@ -20,10 +20,10 @@ function resolveWebCredsBackupPath(authDir) {
|
|
|
20
20
|
}
|
|
21
21
|
function readCredsJsonRaw(filePath) {
|
|
22
22
|
try {
|
|
23
|
-
if (!
|
|
24
|
-
const stats =
|
|
23
|
+
if (!fsSync.existsSync(filePath)) return null;
|
|
24
|
+
const stats = fsSync.statSync(filePath);
|
|
25
25
|
if (!stats.isFile() || stats.size <= 1) return null;
|
|
26
|
-
return
|
|
26
|
+
return fsSync.readFileSync(filePath, "utf-8");
|
|
27
27
|
} catch {
|
|
28
28
|
return null;
|
|
29
29
|
}
|
|
@@ -41,9 +41,9 @@ function maybeRestoreCredsFromBackup(authDir) {
|
|
|
41
41
|
const backupRaw = readCredsJsonRaw(backupPath);
|
|
42
42
|
if (!backupRaw) return;
|
|
43
43
|
JSON.parse(backupRaw);
|
|
44
|
-
|
|
44
|
+
fsSync.copyFileSync(backupPath, credsPath);
|
|
45
45
|
try {
|
|
46
|
-
|
|
46
|
+
fsSync.chmodSync(credsPath, 384);
|
|
47
47
|
} catch {}
|
|
48
48
|
logger.warn({ credsPath }, "restored corrupted WhatsApp creds.json from backup");
|
|
49
49
|
} catch {}
|
|
@@ -99,11 +99,11 @@ async function logoutWeb(params) {
|
|
|
99
99
|
function readWebSelfId(authDir = resolveDefaultWebAuthDir()) {
|
|
100
100
|
try {
|
|
101
101
|
const credsPath = resolveWebCredsPath(resolveUserPath(authDir));
|
|
102
|
-
if (!
|
|
102
|
+
if (!fsSync.existsSync(credsPath)) return {
|
|
103
103
|
e164: null,
|
|
104
104
|
jid: null
|
|
105
105
|
};
|
|
106
|
-
const raw =
|
|
106
|
+
const raw = fsSync.readFileSync(credsPath, "utf-8");
|
|
107
107
|
const jid = JSON.parse(raw)?.me?.id ?? null;
|
|
108
108
|
return {
|
|
109
109
|
e164: jid ? jidToE164(jid, { authDir }) : null,
|
|
@@ -122,7 +122,7 @@ function readWebSelfId(authDir = resolveDefaultWebAuthDir()) {
|
|
|
122
122
|
*/
|
|
123
123
|
function getWebAuthAgeMs(authDir = resolveDefaultWebAuthDir()) {
|
|
124
124
|
try {
|
|
125
|
-
const stats =
|
|
125
|
+
const stats = fsSync.statSync(resolveWebCredsPath(resolveUserPath(authDir)));
|
|
126
126
|
return Date.now() - stats.mtimeMs;
|
|
127
127
|
} catch {
|
|
128
128
|
return null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { M as isRich, N as theme, h as visibleWidth } from "./entry.js";
|
|
2
|
-
import { nn as resolveCommitHash } from "./subagent-registry-
|
|
2
|
+
import { nn as resolveCommitHash } from "./subagent-registry-MZIxVf8W.js";
|
|
3
3
|
|
|
4
4
|
//#region src/cli/tagline.ts
|
|
5
5
|
const DEFAULT_TAGLINE = "AI life system — persistent identity for sovereign minds";
|
package/dist/build-info.json
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import "../../paths-
|
|
2
|
-
import { E as resolveAgentIdFromSessionKey, T as normalizeMainKey, l as ensureAgentWorkspace, w as normalizeAgentId } from "../../workspace-
|
|
3
|
-
import { c as DEFAULT_CHAT_CHANNEL, n as defaultRuntime, t as createSubsystemLogger } from "../../subsystem-
|
|
4
|
-
import "../../exec-
|
|
5
|
-
import { a as resolveAgentModelPrimary, i as resolveAgentModelFallbacksOverride, o as resolveAgentSkillsFilter, r as resolveAgentDir, s as resolveAgentWorkspaceDir, t as listAgentIds } from "../../agent-scope-
|
|
6
|
-
import { $ as normalizeAccountId, A as supportsXHighThinking, Dt as buildWorkspaceSkillSnapshot, E as normalizeThinkLevel, H as loadSessionStore, K as updateSessionStore, O as normalizeVerboseLevel, S as formatXHighModelHint, Yt as SILENT_REPLY_TOKEN, a as normalizeOutboundPayloadsForJson, et as resolveSessionKey, i as normalizeOutboundPayloads, it as resolveSessionResetType, lt as resolveExplicitAgentSessionKey, nt as resolveChannelResetConfig, r as formatOutboundPayloadLog, rt as resolveSessionResetPolicy, t as deliverOutboundPayloads, tt as evaluateSessionFreshness, ut as resolveMainSessionKey, x as formatThinkingLevels } from "../../deliver-
|
|
7
|
-
import { A as applyVerboseOverride, D as lookupContextTokens, E as getSkillsSnapshotVersion, G as resolveAgentTimeoutMs, K as AGENT_LANE_NESTED, M as loadModelCatalog, O as clearSessionAuthProfileOverride, T as getRemoteSkillEligibility, X as emitAgentEvent, Y as clearAgentRunContext, Z as registerAgentRunContext, b as hasNonzeroUsage, d as setCliSessionId, g as runWithModelFallback, h as resolveSessionDeliveryTarget, k as applyModelOverrideToSessionEntry, m as resolveOutboundTarget, q as AGENT_LANE_SUBAGENT, rt as runCliAgent, t as runEmbeddedPiAgent, u as getCliSessionId, w as resolveSendPolicy, y as deriveSessionTotalTokens } from "../../pi-embedded-
|
|
8
|
-
import { n as loadConfig } from "../../config-
|
|
1
|
+
import "../../paths-D2eokayo.js";
|
|
2
|
+
import { E as resolveAgentIdFromSessionKey, T as normalizeMainKey, l as ensureAgentWorkspace, w as normalizeAgentId } from "../../workspace-BQkffCaR.js";
|
|
3
|
+
import { c as DEFAULT_CHAT_CHANNEL, n as defaultRuntime, t as createSubsystemLogger } from "../../subsystem-DA3Cno1i.js";
|
|
4
|
+
import "../../exec-Bfd4ztFZ.js";
|
|
5
|
+
import { a as resolveAgentModelPrimary, i as resolveAgentModelFallbacksOverride, o as resolveAgentSkillsFilter, r as resolveAgentDir, s as resolveAgentWorkspaceDir, t as listAgentIds } from "../../agent-scope-BZ8hjIt_.js";
|
|
6
|
+
import { $ as normalizeAccountId, A as supportsXHighThinking, Dt as buildWorkspaceSkillSnapshot, E as normalizeThinkLevel, H as loadSessionStore, K as updateSessionStore, O as normalizeVerboseLevel, S as formatXHighModelHint, Yt as SILENT_REPLY_TOKEN, a as normalizeOutboundPayloadsForJson, et as resolveSessionKey, i as normalizeOutboundPayloads, it as resolveSessionResetType, lt as resolveExplicitAgentSessionKey, nt as resolveChannelResetConfig, r as formatOutboundPayloadLog, rt as resolveSessionResetPolicy, t as deliverOutboundPayloads, tt as evaluateSessionFreshness, ut as resolveMainSessionKey, x as formatThinkingLevels } from "../../deliver-D2hQZ9X0.js";
|
|
7
|
+
import { A as applyVerboseOverride, D as lookupContextTokens, E as getSkillsSnapshotVersion, G as resolveAgentTimeoutMs, K as AGENT_LANE_NESTED, M as loadModelCatalog, O as clearSessionAuthProfileOverride, T as getRemoteSkillEligibility, X as emitAgentEvent, Y as clearAgentRunContext, Z as registerAgentRunContext, b as hasNonzeroUsage, d as setCliSessionId, g as runWithModelFallback, h as resolveSessionDeliveryTarget, k as applyModelOverrideToSessionEntry, m as resolveOutboundTarget, q as AGENT_LANE_SUBAGENT, rt as runCliAgent, t as runEmbeddedPiAgent, u as getCliSessionId, w as resolveSendPolicy, y as deriveSessionTotalTokens } from "../../pi-embedded-DifnZvKk.js";
|
|
8
|
+
import { n as loadConfig } from "../../config-6FVC8hW0.js";
|
|
9
9
|
import "../../boolean-Ce2-qkSB.js";
|
|
10
|
-
import "../../shell-env-
|
|
11
|
-
import { a as modelKey, f as resolveThinkingDefault, h as DEFAULT_PROVIDER, i as isCliProvider, l as resolveConfiguredModelRef, m as DEFAULT_MODEL, o as normalizeModelRef, p as DEFAULT_CONTEXT_TOKENS, t as buildAllowedModelSet } from "../../model-selection-
|
|
12
|
-
import "../../chrome-
|
|
10
|
+
import "../../shell-env-B4ae4lFh.js";
|
|
11
|
+
import { a as modelKey, f as resolveThinkingDefault, h as DEFAULT_PROVIDER, i as isCliProvider, l as resolveConfiguredModelRef, m as DEFAULT_MODEL, o as normalizeModelRef, p as DEFAULT_CONTEXT_TOKENS, t as buildAllowedModelSet } from "../../model-selection-BI8CKPwQ.js";
|
|
12
|
+
import "../../chrome-Cfak4A3i.js";
|
|
13
13
|
import { t as formatCliCommand } from "../../command-format-GLYKXXl-.js";
|
|
14
|
-
import "../../frontmatter-
|
|
15
|
-
import { f as normalizeChannelId, g as isInternalMessageChannel, h as isGatewayMessageChannel, m as isDeliverableMessageChannel, p as INTERNAL_MESSAGE_CHANNEL, u as getChannelPlugin, x as resolveMessageChannel, y as normalizeMessageChannel } from "../../chunk-
|
|
16
|
-
import { n as resolveSessionFilePath, s as resolveStorePath } from "../../paths-
|
|
17
|
-
import "../../tool-images-
|
|
18
|
-
import { o as ensureAuthProfileStore } from "../../auth-profiles-
|
|
19
|
-
import "../../manager-
|
|
20
|
-
import "../../sqlite-
|
|
21
|
-
import "../../session-
|
|
22
|
-
import "../../semantic-
|
|
23
|
-
import "../../soul-
|
|
24
|
-
import "../../common-
|
|
25
|
-
import "../../active-listener-
|
|
14
|
+
import "../../frontmatter-BP4GSt5L.js";
|
|
15
|
+
import { f as normalizeChannelId, g as isInternalMessageChannel, h as isGatewayMessageChannel, m as isDeliverableMessageChannel, p as INTERNAL_MESSAGE_CHANNEL, u as getChannelPlugin, x as resolveMessageChannel, y as normalizeMessageChannel } from "../../chunk-CyT-_QsQ.js";
|
|
16
|
+
import { n as resolveSessionFilePath, s as resolveStorePath } from "../../paths-Cwszsz1I.js";
|
|
17
|
+
import "../../tool-images-DK97edts.js";
|
|
18
|
+
import { o as ensureAuthProfileStore } from "../../auth-profiles-eZzmaeR3.js";
|
|
19
|
+
import "../../manager-A3pC-CW-.js";
|
|
20
|
+
import "../../sqlite-ClLAW1iQ.js";
|
|
21
|
+
import "../../session-3MLbl1-K.js";
|
|
22
|
+
import "../../semantic-CG6X3rBo.js";
|
|
23
|
+
import "../../soul-Bt57OdSx.js";
|
|
24
|
+
import "../../common-BzPvZcxT.js";
|
|
25
|
+
import "../../active-listener-GJR3nLhX.js";
|
|
26
26
|
import "../../pi-model-discovery-62lQTR6C.js";
|
|
27
|
-
import "../../auth-store-
|
|
27
|
+
import "../../auth-store-CnRrUELz.js";
|
|
28
28
|
import fs from "node:fs/promises";
|
|
29
29
|
import path from "node:path";
|
|
30
30
|
import crypto from "node:crypto";
|
|
@@ -32,7 +32,7 @@ import crypto from "node:crypto";
|
|
|
32
32
|
//#region src/cli/deps.ts
|
|
33
33
|
function createDefaultDeps() {
|
|
34
34
|
return { sendMessageWhatsApp: async (...args) => {
|
|
35
|
-
const { sendMessageWhatsApp } = await import("../../web-
|
|
35
|
+
const { sendMessageWhatsApp } = await import("../../web-DBQRQY6n.js");
|
|
36
36
|
return await sendMessageWhatsApp(...args);
|
|
37
37
|
} };
|
|
38
38
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "../../paths-
|
|
2
|
-
import { d as loadExtraBootstrapFiles, u as filterBootstrapFilesForSession } from "../../workspace-
|
|
3
|
-
import "../../subsystem-
|
|
4
|
-
import "../../exec-
|
|
1
|
+
import "../../paths-D2eokayo.js";
|
|
2
|
+
import { d as loadExtraBootstrapFiles, u as filterBootstrapFilesForSession } from "../../workspace-BQkffCaR.js";
|
|
3
|
+
import "../../subsystem-DA3Cno1i.js";
|
|
4
|
+
import "../../exec-Bfd4ztFZ.js";
|
|
5
5
|
import { n as isAgentBootstrapEvent } from "../../internal-hooks-CWw3Hgeu.js";
|
|
6
6
|
import "../../boolean-Ce2-qkSB.js";
|
|
7
|
-
import "../../frontmatter-
|
|
7
|
+
import "../../frontmatter-BP4GSt5L.js";
|
|
8
8
|
import { t as resolveHookConfig } from "../../config-ZwgPFgdN.js";
|
|
9
9
|
|
|
10
10
|
//#region src/hooks/bundled/bootstrap-extra-files/handler.ts
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { s as resolveStateDir } from "../../paths-
|
|
2
|
-
import { E as resolveAgentIdFromSessionKey } from "../../workspace-
|
|
3
|
-
import { t as createSubsystemLogger } from "../../subsystem-
|
|
4
|
-
import "../../exec-
|
|
5
|
-
import { s as resolveAgentWorkspaceDir } from "../../agent-scope-
|
|
6
|
-
import "../../deliver-
|
|
7
|
-
import { Q as hasInterSessionUserProvenance } from "../../pi-embedded-
|
|
8
|
-
import "../../config-
|
|
1
|
+
import { s as resolveStateDir } from "../../paths-D2eokayo.js";
|
|
2
|
+
import { E as resolveAgentIdFromSessionKey } from "../../workspace-BQkffCaR.js";
|
|
3
|
+
import { t as createSubsystemLogger } from "../../subsystem-DA3Cno1i.js";
|
|
4
|
+
import "../../exec-Bfd4ztFZ.js";
|
|
5
|
+
import { s as resolveAgentWorkspaceDir } from "../../agent-scope-BZ8hjIt_.js";
|
|
6
|
+
import "../../deliver-D2hQZ9X0.js";
|
|
7
|
+
import { Q as hasInterSessionUserProvenance } 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 { generateSlugViaLLM } from "../../llm-slug-generator.js";
|
|
28
28
|
import { t as resolveHookConfig } from "../../config-ZwgPFgdN.js";
|
|
29
29
|
import fs from "node:fs/promises";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
25166e70f0c0e4dc7c77d538436b45f380b22c694e04abe34c4702bf5c2edf89
|