@symerian/symi 2.6.9 → 2.6.11
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-BRw8yhIW.js → accounts-D1r2dq1t.js} +21 -21
- package/dist/{accounts-3dCrO3oZ.js → accounts-dRUMQQrB.js} +1 -1
- package/dist/{accounts-BuZxOb3B.js → accounts-wSphH5gv.js} +1 -1
- package/dist/{active-listener-CfHHV2SU.js → active-listener-DFUTUjxt.js} +1 -1
- package/dist/{agent-scope-CpEJ0B88.js → agent-scope-D68_xfTL.js} +3 -3
- package/dist/{agents-yeSooTtP.js → agents-DRRBdgqz.js} +4 -4
- package/dist/{agents.config-DoTRueo1.js → agents.config-BO1N5Z_6.js} +1 -1
- package/dist/{agents.config-XOcM83Bx.js → agents.config-GCucbcBy.js} +1 -1
- package/dist/{audio-preflight-C40mKAp7.js → audio-preflight-CPBOQV4I.js} +4 -4
- package/dist/{audio-preflight-DHTaS5U1.js → audio-preflight-CjV36MUe.js} +29 -29
- package/dist/{auth-choice-CSfG00oW.js → auth-choice-C1sul2-I.js} +1 -1
- package/dist/{auth-choice-6h5vk1cG.js → auth-choice-i7tTgbDd.js} +1 -1
- package/dist/{auth-profiles-DdK1Hxaa.js → auth-profiles-Bl9aU7fc.js} +17 -17
- package/dist/{banner-C2tjwP2M.js → banner-VbhMdl-b.js} +1 -1
- package/dist/{bindings-BsHoBLIE.js → bindings-Bat2RnAR.js} +2 -2
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +53 -53
- 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 +53 -53
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-activity-B6G1jnQT.js → channel-activity-DK0AV-r9.js} +1 -1
- package/dist/{channel-options-CHyjRl0C.js → channel-options-CsXOvqAc.js} +1 -1
- package/dist/{channel-options-5wdTOBFJ.js → channel-options-Esf0QB4M.js} +1 -1
- package/dist/{channel-web-VYYpZqcw.js → channel-web-DDC84nZg.js} +1 -1
- package/dist/{channels-cli-Dm1d93Oy.js → channels-cli-C989dAD4.js} +4 -4
- package/dist/{channels-cli-CNS4BcpR.js → channels-cli-DomEe8uI.js} +4 -4
- package/dist/{chrome-DYZwl5Gv.js → chrome-D2SKJnR7.js} +5 -5
- package/dist/{chrome-CDJYxX5a.js → chrome-DRHvMBbb.js} +16 -16
- package/dist/{chunk-09egQapi.js → chunk-DR8ukp6r.js} +1 -1
- package/dist/{cli-D4MEJZ7W.js → cli-CPRCkEdK.js} +1 -1
- package/dist/{cli-DqQ3teJy.js → cli-RXswESw1.js} +1 -1
- package/dist/{command-registry-yzABgrim.js → command-registry-DwBw5-nh.js} +9 -9
- package/dist/{commands-registry-Bfc7Uz0o.js → commands-registry-DIakZUZb.js} +4 -4
- package/dist/{completion-cli-DDCDJyTb.js → completion-cli-C43sjF75.js} +2 -2
- package/dist/{completion-cli-zI_h8pr3.js → completion-cli-Cwx8MtF9.js} +1 -1
- package/dist/{config-5SdHIcHU.js → config-CvmE3Yx1.js} +12 -12
- package/dist/{config-cli-vqQE9gkx.js → config-cli-CkkIU7AY.js} +1 -1
- package/dist/{config-cli-Bth4qEO1.js → config-cli-DG0xBZhs.js} +1 -1
- package/dist/{configure-DyeOg2hp.js → configure-DlVtomYJ.js} +3 -3
- package/dist/{configure-DU1IcIoq.js → configure-nxnXIUVI.js} +3 -3
- package/dist/{deliver-BH0l3UKW.js → deliver-C-37cZUe.js} +1 -1
- package/dist/{deliver-dODxSv3b.js → deliver-UMgfGLxW.js} +20 -20
- package/dist/{diagnostic-rPhsBoZz.js → diagnostic-spWOtH_g.js} +1 -1
- package/dist/{doctor-completion-R-1oda1v.js → doctor-completion-CWr51Q4O.js} +1 -1
- package/dist/{doctor-completion-BbWijhz0.js → doctor-completion-Dd5P0i9L.js} +1 -1
- package/dist/entry.js +1 -1
- package/dist/{env-BDXYbTKj.js → env-xmBFQPBP.js} +1 -1
- package/dist/extensionAPI.js +6 -6
- package/dist/{frontmatter-CTR5f_Ez.js → frontmatter-CV0YkjoY.js} +2 -2
- package/dist/{gateway-cli-BFWLsB3b.js → gateway-cli-B1h1FhD-.js} +9 -9
- package/dist/{gateway-cli-DGKFkUrv.js → gateway-cli-BBJjWKyu.js} +9 -9
- package/dist/{gemini-auth-Dy12ZAH3.js → gemini-auth-C6Z-2T42.js} +1 -1
- package/dist/{github-copilot-token-cCYzSU9h.js → github-copilot-token-B8B2pmph.js} +7 -7
- package/dist/{glass-ui-ws-DDgLRQXa.js → glass-ui-ws-Bk01KSVI.js} +7 -7
- package/dist/{glass-ui-ws-DFRu8a15.js → glass-ui-ws-UewDPjVh.js} +7 -7
- package/dist/{health-BxPSqsO6.js → health-BiipZUOd.js} +1 -1
- package/dist/{health-CJ7Y6Rln.js → health-Dzi6letr.js} +1 -1
- package/dist/{hooks-cli-elIqdnzb.js → hooks-cli-BdelOAPH.js} +2 -2
- package/dist/{hooks-cli-BAVmPXDl.js → hooks-cli-DxRXaSHR.js} +2 -2
- package/dist/{image-CXu8W39c.js → image-CK4oZUJJ.js} +4 -4
- package/dist/{image-CHzdaNJ4.js → image-DcpMiprB.js} +1 -1
- package/dist/{image-ops-C7CauEK8.js → image-ops-M5agStZn.js} +16 -16
- package/dist/index.js +6 -6
- package/dist/{ir-CTiz95Vb.js → ir-B-XXcYFe.js} +4 -4
- package/dist/llm-slug-generator.js +53 -53
- package/dist/{local-roots-DhZz0Ybs.js → local-roots-CdXg5-Cx.js} +5 -5
- package/dist/{login-ul8zaw_S.js → login-BHUrERYo.js} +7 -7
- package/dist/{login-qr-AP9agO-i.js → login-qr-BKIOHn1V.js} +12 -12
- package/dist/{manager-PprhCvO_.js → manager-DW3JqFpY.js} +22 -22
- package/dist/{manifest-registry-yb7sAlu4.js → manifest-registry-0J48biqr.js} +19 -19
- package/dist/{markdown-tables-C-BmIap8.js → markdown-tables-tW9bGjLM.js} +1 -1
- package/dist/{message-channel-OlFBYAw8.js → message-channel-DwDSKGn4.js} +1 -1
- package/dist/{models-CIUYv1__.js → models-DUrbBEOU.js} +2 -2
- package/dist/{models-cli-DmffFgOZ.js → models-cli-CF0KZtK4.js} +2 -2
- package/dist/{models-cli-ydxkD2B-.js → models-cli-D5KE-evn.js} +3 -3
- package/dist/{onboard-DhJBvsPB.js → onboard-Bizq_LAS.js} +2 -2
- package/dist/{onboard-BBZMfGdo.js → onboard-DK-oOqRl.js} +2 -2
- package/dist/{onboard-channels-LCDTtAGK.js → onboard-channels-B6yLPqH5.js} +1 -1
- package/dist/{onboard-channels-0wtc-NTC.js → onboard-channels-DSZzjOo1.js} +1 -1
- package/dist/{onboarding-Bm11jSTl.js → onboarding-CkWWIQA7.js} +3 -3
- package/dist/{onboarding-Bs7a2RIn.js → onboarding-DGSCNnGY.js} +3 -3
- package/dist/{onboarding.finalize-fdahnZvf.js → onboarding.finalize-BMGwhjIR.js} +6 -6
- package/dist/{onboarding.finalize-DOpAnwny.js → onboarding.finalize-Dj0noUgo.js} +5 -5
- package/dist/{outbound-CtMCmwxR.js → outbound-CIVsLpJK.js} +7 -7
- package/dist/{outbound-attachment-DJldbweZ.js → outbound-attachment-CHcmlip8.js} +2 -2
- package/dist/paths-CYmyCDsE.js +212 -0
- package/dist/{paths-CbQV9WEg.js → paths-DEuVuViW.js} +1 -1
- package/dist/{pi-auth-json-Bk8ERadJ.js → pi-auth-json-BYuCWAs0.js} +8 -8
- package/dist/{pi-embedded-BwQa2XMa.js → pi-embedded-DLma-HLn.js} +60 -17
- package/dist/{pi-embedded-helpers-lgx_U5KS.js → pi-embedded-helpers-B8kqLWns.js} +4 -4
- package/dist/{pi-embedded-helpers-pubKo8HQ.js → pi-embedded-helpers-BU8EZuwx.js} +73 -73
- package/dist/{plugin-registry-CQCjMWVC.js → plugin-registry-BcgpVdtC.js} +1 -1
- package/dist/{plugin-registry-D3CP_n5q.js → plugin-registry-D8PAS3Sx.js} +1 -1
- package/dist/plugin-sdk/{channel-web-B76ttiD9.js → channel-web-DgNOPxkV.js} +1 -1
- package/dist/plugin-sdk/index.js +2 -2
- package/dist/plugin-sdk/{reply-CQPVXorK.js → reply-DJN8Xcq2.js} +46 -3
- package/dist/plugin-sdk/{web-DtkJFFr4.js → web-HkDBSFef.js} +2 -2
- package/dist/{plugins-BzmbgY7s.js → plugins-Bkr5ZdYs.js} +9 -9
- package/dist/{plugins-cli-FUQHZ6tU.js → plugins-cli-B_ln22KG.js} +2 -2
- package/dist/{plugins-cli-D_r2gFIY.js → plugins-cli-Bcmq1fs1.js} +2 -2
- package/dist/{program-DwrSPQU4.js → program-C_rxRb1M.js} +7 -7
- package/dist/{program-context-CN4mNmYa.js → program-context-BqH8IVSK.js} +17 -17
- package/dist/{prompt-select-styled-CK3VsV2a.js → prompt-select-styled-D8WAeDQY.js} +4 -4
- package/dist/{prompt-select-styled-BQW1Ropv.js → prompt-select-styled-DMRbQO0q.js} +4 -4
- package/dist/{provider-auth-helpers-CY8preuC.js → provider-auth-helpers-DiuVmtmQ.js} +1 -1
- package/dist/{provider-auth-helpers-Bg07iIOF.js → provider-auth-helpers-DstpUAya.js} +1 -1
- package/dist/{push-apns-D2hExRgY.js → push-apns-DKU4DgbI.js} +1 -1
- package/dist/{push-apns-6u2NUzOH.js → push-apns-be2xWY22.js} +1 -1
- package/dist/{pw-ai-De-KR9_s.js → pw-ai-1htA-NnS.js} +1 -1
- package/dist/{pw-ai-B5asscAD.js → pw-ai-BTgmcNVp.js} +11 -11
- package/dist/{qmd-manager-iDLSiI4Z.js → qmd-manager-BKu9rOuB.js} +7 -7
- package/dist/{register.agent-BqRVkePg.js → register.agent-Dcd_oFsG.js} +6 -6
- package/dist/{register.agent-BhM4QQqa.js → register.agent-k7WxtPOd.js} +5 -5
- package/dist/{register.configure-0qzVn1Z5.js → register.configure-BOgCp-h4.js} +6 -6
- package/dist/{register.configure-BtnhfP3M.js → register.configure-DMHVPA-T.js} +6 -6
- package/dist/{register.maintenance-DrijKQoQ.js → register.maintenance-BdBlQQ6G.js} +8 -8
- package/dist/{register.maintenance-BNqMCfLm.js → register.maintenance-Bsbgpe-Z.js} +7 -7
- package/dist/{register.message-2iSjsSI-.js → register.message-BE0gDUQZ.js} +2 -2
- package/dist/{register.message-CGexab2Y.js → register.message-DAyubW1M.js} +2 -2
- package/dist/{register.onboard-D1b3xhDD.js → register.onboard-CTKa4O9W.js} +4 -4
- package/dist/{register.onboard-DIAkE9FI.js → register.onboard-CqavyaNa.js} +4 -4
- package/dist/{register.setup-Bvv5sUpg.js → register.setup-BO3CD8Pz.js} +4 -4
- package/dist/{register.setup-Clq3FwZo.js → register.setup-DpkI2F6r.js} +4 -4
- package/dist/{register.status-health-sessions-IPxdVhoD.js → register.status-health-sessions-C5Qa-DmU.js} +3 -3
- package/dist/{register.status-health-sessions-JHfNAhk3.js → register.status-health-sessions-ClDUpT3j.js} +3 -3
- package/dist/{register.subclis-C5wTDVDa.js → register.subclis-Bvil7KuO.js} +9 -9
- package/dist/{registry-DYq1AYOv.js → registry-UkL38jvt.js} +17 -17
- package/dist/{replies-LSmuwOhA.js → replies-mfnbLu2p.js} +3 -3
- package/dist/{reply-dzRBlsmK.js → reply-4ilKYVzu.js} +46 -3
- package/dist/{reply-prefix-DpqZu44Z.js → reply-prefix-DkGsdyBm.js} +1 -1
- package/dist/{resolve-route-C4_I4GFI.js → resolve-route-q8AFnU5c.js} +4 -4
- package/dist/{retry-BBVXkKBV.js → retry-CqMeDhyp.js} +1 -1
- package/dist/{run-main-jPbs3Gm5.js → run-main-D1n_tgGX.js} +14 -14
- package/dist/{runner-DUBExAb5.js → runner-BcQ0sF9T.js} +1 -1
- package/dist/{runner-WAG0M5s9.js → runner-CKYly94z.js} +22 -22
- package/dist/{send-DYj_o4_F.js → send-B7z8CDbr.js} +18 -18
- package/dist/{send-CQAKg_12.js → send-Cd81AY_Z.js} +7 -7
- package/dist/{send-CvhXrdgS.js → send-D3zDmQim.js} +10 -10
- package/dist/{send-DAN9hA5h.js → send-XRUYukww.js} +6 -6
- package/dist/{send-CVMyYPQw.js → send-qItpAHcI.js} +6 -6
- package/dist/{server-methods-DuaVOb2k.js → server-methods-BRdl4pcP.js} +7 -7
- package/dist/{server-methods-CJbZTdch.js → server-methods-VC0ahxUh.js} +7 -7
- package/dist/{server-node-events-BgFWyVCV.js → server-node-events-Bq2fr8Z3.js} +2 -2
- package/dist/{server-node-events-DesNIafd.js → server-node-events-Y5xFGvsj.js} +2 -2
- package/dist/{session-DSU1vxxi.js → session-Dh2wWQkD.js} +8 -8
- package/dist/{skill-commands-DcVwOafC.js → skill-commands-B_f8uGi7.js} +16 -16
- package/dist/{skills-Bs0AW1g3.js → skills-CGHRETGF.js} +24 -24
- package/dist/{sqlite-D_mz1_-y.js → sqlite-Bv87EXeg.js} +16 -16
- package/dist/{status-BV22IA25.js → status-BxNHXm7T.js} +1 -1
- package/dist/{status-DOB2UmDg.js → status-CRCD2RpZ.js} +2 -2
- package/dist/{status-Bxkdy4Dq.js → status-DNJBoKuu.js} +1 -1
- package/dist/{status-BxfE61b4.js → status-DOCg6R55.js} +2 -2
- package/dist/{store-01F_JM7O.js → store-Ea3zM6xK.js} +6 -6
- package/dist/{subagent-registry-DEdqc42m.js → subagent-registry-7wPEZQKK.js} +46 -3
- package/dist/{subsystem-BjyjJF-d.js → subsystem-DN75fnEF.js} +1 -1
- package/dist/{tables-qMwbq29u.js → tables-BX7_aBvN.js} +1 -1
- package/dist/{target-errors-Bbr9rlzN.js → target-errors-7KhTCTdS.js} +2 -2
- package/dist/{thinking-BprCy23Z.js → thinking-C9-JAUzD.js} +5 -5
- package/dist/{tokens-Bux9Y_xD.js → tokens-BZGy4v--.js} +1 -1
- package/dist/{tool-images-SqqWIT22.js → tool-images-B1qVCntj.js} +2 -2
- package/dist/{tool-loop-detection-DR_rrIA1.js → tool-loop-detection-C8FBZVVx.js} +3 -3
- package/dist/{unified-runner-BIj2b1Y-.js → unified-runner-quomT1T-.js} +268 -225
- package/dist/{update-cli-CNlljdlx.js → update-cli-CcyCWvCB.js} +8 -8
- package/dist/{update-cli-D4OgWd1l.js → update-cli-FOE23Lo4.js} +7 -7
- package/dist/{update-runner-CZd6ajL6.js → update-runner-CJg-OANA.js} +1 -1
- package/dist/{update-runner-Dtay-1lf.js → update-runner-Dcjlf0aY.js} +1 -1
- package/dist/{web-qJRZWEaD.js → web-BTmqdXgt.js} +2 -2
- package/dist/{web-DUi3cu-p.js → web-CuNZExQK.js} +1 -1
- package/dist/{web-B-E-mzTK.js → web-DPBfrIzo.js} +6 -6
- package/dist/{web-DP9s1zzp.js → web-DcHxbz2H.js} +57 -57
- package/dist/{whatsapp-actions-BIeSWsCF.js → whatsapp-actions-SXenaJIn.js} +23 -23
- package/dist/{workspace-DscDraUb.js → workspace-DqJ5h-ZB.js} +27 -27
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as resolveOAuthDir } from "./paths-
|
|
1
|
+
import { a as resolveOAuthDir } from "./paths-CYmyCDsE.js";
|
|
2
2
|
import { f as DEFAULT_ACCOUNT_ID, p as normalizeAccountId } from "./session-key-BCzIW1Y2.js";
|
|
3
|
-
import { I as resolveUserPath, K as info, Q as success, j as jidToE164, rt as getChildLogger } from "./registry-
|
|
4
|
-
import { r as defaultRuntime } from "./subsystem-
|
|
5
|
-
import { n as formatCliCommand } from "./env-
|
|
3
|
+
import { I as resolveUserPath, K as info, Q as success, j as jidToE164, rt as getChildLogger } from "./registry-UkL38jvt.js";
|
|
4
|
+
import { r as defaultRuntime } from "./subsystem-DN75fnEF.js";
|
|
5
|
+
import { n as formatCliCommand } from "./env-xmBFQPBP.js";
|
|
6
6
|
import path from "node:path";
|
|
7
|
-
import
|
|
8
|
-
import fs
|
|
7
|
+
import fsSync from "node:fs";
|
|
8
|
+
import fs from "node:fs/promises";
|
|
9
9
|
|
|
10
10
|
//#region src/channels/plugins/account-helpers.ts
|
|
11
11
|
function createAccountListHelpers(channelKey) {
|
|
@@ -45,10 +45,10 @@ function resolveWebCredsBackupPath(authDir) {
|
|
|
45
45
|
}
|
|
46
46
|
function readCredsJsonRaw(filePath) {
|
|
47
47
|
try {
|
|
48
|
-
if (!
|
|
49
|
-
const stats =
|
|
48
|
+
if (!fsSync.existsSync(filePath)) return null;
|
|
49
|
+
const stats = fsSync.statSync(filePath);
|
|
50
50
|
if (!stats.isFile() || stats.size <= 1) return null;
|
|
51
|
-
return
|
|
51
|
+
return fsSync.readFileSync(filePath, "utf-8");
|
|
52
52
|
} catch {
|
|
53
53
|
return null;
|
|
54
54
|
}
|
|
@@ -66,9 +66,9 @@ function maybeRestoreCredsFromBackup(authDir) {
|
|
|
66
66
|
const backupRaw = readCredsJsonRaw(backupPath);
|
|
67
67
|
if (!backupRaw) return;
|
|
68
68
|
JSON.parse(backupRaw);
|
|
69
|
-
|
|
69
|
+
fsSync.copyFileSync(backupPath, credsPath);
|
|
70
70
|
try {
|
|
71
|
-
|
|
71
|
+
fsSync.chmodSync(credsPath, 384);
|
|
72
72
|
} catch {}
|
|
73
73
|
logger.warn({ credsPath }, "restored corrupted WhatsApp creds.json from backup");
|
|
74
74
|
} catch {}
|
|
@@ -78,14 +78,14 @@ async function webAuthExists(authDir = resolveDefaultWebAuthDir()) {
|
|
|
78
78
|
maybeRestoreCredsFromBackup(resolvedAuthDir);
|
|
79
79
|
const credsPath = resolveWebCredsPath(resolvedAuthDir);
|
|
80
80
|
try {
|
|
81
|
-
await fs
|
|
81
|
+
await fs.access(resolvedAuthDir);
|
|
82
82
|
} catch {
|
|
83
83
|
return false;
|
|
84
84
|
}
|
|
85
85
|
try {
|
|
86
|
-
const stats = await fs
|
|
86
|
+
const stats = await fs.stat(credsPath);
|
|
87
87
|
if (!stats.isFile() || stats.size <= 1) return false;
|
|
88
|
-
const raw = await fs
|
|
88
|
+
const raw = await fs.readFile(credsPath, "utf-8");
|
|
89
89
|
JSON.parse(raw);
|
|
90
90
|
return true;
|
|
91
91
|
} catch {
|
|
@@ -93,7 +93,7 @@ async function webAuthExists(authDir = resolveDefaultWebAuthDir()) {
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
async function clearLegacyBaileysAuthState(authDir) {
|
|
96
|
-
const entries = await fs
|
|
96
|
+
const entries = await fs.readdir(authDir, { withFileTypes: true });
|
|
97
97
|
const shouldDelete = (name) => {
|
|
98
98
|
if (name === "oauth.json") return false;
|
|
99
99
|
if (name === "creds.json" || name === "creds.json.bak") return true;
|
|
@@ -103,7 +103,7 @@ async function clearLegacyBaileysAuthState(authDir) {
|
|
|
103
103
|
await Promise.all(entries.map(async (entry) => {
|
|
104
104
|
if (!entry.isFile()) return;
|
|
105
105
|
if (!shouldDelete(entry.name)) return;
|
|
106
|
-
await fs
|
|
106
|
+
await fs.rm(path.join(authDir, entry.name), { force: true });
|
|
107
107
|
}));
|
|
108
108
|
}
|
|
109
109
|
async function logoutWeb(params) {
|
|
@@ -114,7 +114,7 @@ async function logoutWeb(params) {
|
|
|
114
114
|
return false;
|
|
115
115
|
}
|
|
116
116
|
if (params.isLegacyAuthDir) await clearLegacyBaileysAuthState(resolvedAuthDir);
|
|
117
|
-
else await fs
|
|
117
|
+
else await fs.rm(resolvedAuthDir, {
|
|
118
118
|
recursive: true,
|
|
119
119
|
force: true
|
|
120
120
|
});
|
|
@@ -124,11 +124,11 @@ async function logoutWeb(params) {
|
|
|
124
124
|
function readWebSelfId(authDir = resolveDefaultWebAuthDir()) {
|
|
125
125
|
try {
|
|
126
126
|
const credsPath = resolveWebCredsPath(resolveUserPath(authDir));
|
|
127
|
-
if (!
|
|
127
|
+
if (!fsSync.existsSync(credsPath)) return {
|
|
128
128
|
e164: null,
|
|
129
129
|
jid: null
|
|
130
130
|
};
|
|
131
|
-
const raw =
|
|
131
|
+
const raw = fsSync.readFileSync(credsPath, "utf-8");
|
|
132
132
|
const jid = JSON.parse(raw)?.me?.id ?? null;
|
|
133
133
|
return {
|
|
134
134
|
e164: jid ? jidToE164(jid, { authDir }) : null,
|
|
@@ -147,7 +147,7 @@ function readWebSelfId(authDir = resolveDefaultWebAuthDir()) {
|
|
|
147
147
|
*/
|
|
148
148
|
function getWebAuthAgeMs(authDir = resolveDefaultWebAuthDir()) {
|
|
149
149
|
try {
|
|
150
|
-
const stats =
|
|
150
|
+
const stats = fsSync.statSync(resolveWebCredsPath(resolveUserPath(authDir)));
|
|
151
151
|
return Date.now() - stats.mtimeMs;
|
|
152
152
|
} catch {
|
|
153
153
|
return null;
|
|
@@ -182,7 +182,7 @@ function resolveLegacyAuthDir() {
|
|
|
182
182
|
}
|
|
183
183
|
function legacyAuthExists(authDir) {
|
|
184
184
|
try {
|
|
185
|
-
return
|
|
185
|
+
return fsSync.existsSync(path.join(authDir, "creds.json"));
|
|
186
186
|
} catch {
|
|
187
187
|
return false;
|
|
188
188
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as normalizeAccountId } from "./session-key-BCzIW1Y2.js";
|
|
2
|
-
import { m as createAccountListHelpers } from "./accounts-
|
|
2
|
+
import { m as createAccountListHelpers } from "./accounts-D1r2dq1t.js";
|
|
3
3
|
|
|
4
4
|
//#region src/imessage/accounts.ts
|
|
5
5
|
const { listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("imessage");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as normalizeAccountId } from "./session-key-BCzIW1Y2.js";
|
|
2
|
-
import { m as createAccountListHelpers } from "./accounts-
|
|
2
|
+
import { m as createAccountListHelpers } from "./accounts-D1r2dq1t.js";
|
|
3
3
|
|
|
4
4
|
//#region src/signal/accounts.ts
|
|
5
5
|
const { listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("signal");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { f as DEFAULT_ACCOUNT_ID } from "./session-key-BCzIW1Y2.js";
|
|
2
|
-
import { n as formatCliCommand } from "./env-
|
|
2
|
+
import { n as formatCliCommand } from "./env-xmBFQPBP.js";
|
|
3
3
|
|
|
4
4
|
//#region src/web/active-listener.ts
|
|
5
5
|
const listeners = /* @__PURE__ */ new Map();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { s as resolveStateDir } from "./paths-
|
|
1
|
+
import { s as resolveStateDir } from "./paths-CYmyCDsE.js";
|
|
2
2
|
import { s as normalizeAgentId, t as DEFAULT_AGENT_ID, y as parseAgentSessionKey } from "./session-key-BCzIW1Y2.js";
|
|
3
|
-
import { I as resolveUserPath } from "./registry-
|
|
4
|
-
import { p as resolveDefaultAgentWorkspaceDir } from "./workspace-
|
|
3
|
+
import { I as resolveUserPath } from "./registry-UkL38jvt.js";
|
|
4
|
+
import { p as resolveDefaultAgentWorkspaceDir } from "./workspace-DqJ5h-ZB.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
|
|
7
7
|
//#region src/agents/skills/filter.ts
|
|
@@ -5,19 +5,19 @@ import { t as formatCliCommand } from "./command-format-BtYOfWxC.js";
|
|
|
5
5
|
import { m as DEFAULT_ACCOUNT_ID, s as normalizeAgentId, t as DEFAULT_AGENT_ID } from "./session-key-DjZ7Z1hW.js";
|
|
6
6
|
import { c as resolveAgentWorkspaceDir, g as DEFAULT_IDENTITY_FILENAME, i as resolveAgentDir, l as resolveDefaultAgentId, t as listAgentEntries } from "./agent-scope-D-jRCY0d.js";
|
|
7
7
|
import { l as writeConfigFile } from "./config-DHBLS1Hl.js";
|
|
8
|
-
import { j as parseIdentityMarkdown, k as identityHasValues } from "./subagent-registry-
|
|
8
|
+
import { j as parseIdentityMarkdown, k as identityHasValues } from "./subagent-registry-7wPEZQKK.js";
|
|
9
9
|
import { n as listChannelPlugins, r as normalizeChannelId, t as getChannelPlugin } from "./plugins-CwSlLxM8.js";
|
|
10
10
|
import { s as resolveSessionTranscriptsDirForAgent } from "./paths-DNdWAq7b.js";
|
|
11
11
|
import { a as ensureWorkspaceAndSessions, l as moveToTrash } from "./onboard-helpers-_pit1NZW.js";
|
|
12
12
|
import { t as WizardCancelledError } from "./prompts-m1IJwIAx.js";
|
|
13
13
|
import { t as createClackPrompter } from "./clack-prompter-B1aVoXd5.js";
|
|
14
14
|
import { t as resolveChannelDefaultAccountId } from "./helpers-cLP5YLeQ.js";
|
|
15
|
-
import { r as setupChannels } from "./onboard-channels-
|
|
15
|
+
import { r as setupChannels } from "./onboard-channels-B6yLPqH5.js";
|
|
16
16
|
import { t as requireValidConfigSnapshot } from "./config-validation-BITwrsxY.js";
|
|
17
|
-
import { a as pruneAgentConfig, i as loadAgentIdentity, n as buildAgentSummaries, r as findAgentEntryIndex, t as applyAgentConfig } from "./agents.config-
|
|
17
|
+
import { a as pruneAgentConfig, i as loadAgentIdentity, n as buildAgentSummaries, r as findAgentEntryIndex, t as applyAgentConfig } from "./agents.config-BO1N5Z_6.js";
|
|
18
18
|
import { n as logConfigUpdated } from "./logging-BGewRZy0.js";
|
|
19
19
|
import { n as promptAuthChoiceGrouped } from "./auth-choice-prompt-DVcYPG2v.js";
|
|
20
|
-
import { i as applyAuthChoice, r as warnIfModelConfigLooksOff } from "./auth-choice-
|
|
20
|
+
import { i as applyAuthChoice, r as warnIfModelConfigLooksOff } from "./auth-choice-C1sul2-I.js";
|
|
21
21
|
import path from "node:path";
|
|
22
22
|
import fs from "node:fs/promises";
|
|
23
23
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { s as normalizeAgentId } from "./session-key-DjZ7Z1hW.js";
|
|
2
2
|
import { c as resolveAgentWorkspaceDir, i as resolveAgentDir, l as resolveDefaultAgentId, t as listAgentEntries } from "./agent-scope-D-jRCY0d.js";
|
|
3
|
-
import { A as loadAgentIdentityFromWorkspace, k as identityHasValues } from "./subagent-registry-
|
|
3
|
+
import { A as loadAgentIdentityFromWorkspace, k as identityHasValues } from "./subagent-registry-7wPEZQKK.js";
|
|
4
4
|
|
|
5
5
|
//#region src/commands/agents.config.ts
|
|
6
6
|
function findAgentEntryIndex(list, agentId) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Qt as loadAgentIdentityFromWorkspace, Zt as identityHasValues } from "./reply-
|
|
1
|
+
import { Qt as loadAgentIdentityFromWorkspace, Zt as identityHasValues } from "./reply-4ilKYVzu.js";
|
|
2
2
|
import { s as normalizeAgentId } from "./session-key-DCt45XZa.js";
|
|
3
3
|
import { c as resolveAgentWorkspaceDir, i as resolveAgentDir, l as resolveDefaultAgentId, t as listAgentEntries } from "./agent-scope-CgUHAtCo.js";
|
|
4
4
|
|
|
@@ -12,10 +12,10 @@ import "./accounts-8zZqL37v.js";
|
|
|
12
12
|
import "./image-ops-ByaQt43P.js";
|
|
13
13
|
import "./pi-model-discovery-j5tVLINv.js";
|
|
14
14
|
import "./message-channel-BQINJQIT.js";
|
|
15
|
-
import "./pi-embedded-helpers-
|
|
15
|
+
import "./pi-embedded-helpers-B8kqLWns.js";
|
|
16
16
|
import "./config-BmV60pPT.js";
|
|
17
17
|
import "./manifest-registry-D-mTF1cj.js";
|
|
18
|
-
import "./chrome-
|
|
18
|
+
import "./chrome-D2SKJnR7.js";
|
|
19
19
|
import "./skills-BNpGMnp-.js";
|
|
20
20
|
import "./redact-1NGYV_8p.js";
|
|
21
21
|
import "./errors-CPfngF0S.js";
|
|
@@ -25,10 +25,10 @@ import "./thinking-W85Rb32m.js";
|
|
|
25
25
|
import "./accounts-DImOt9jX.js";
|
|
26
26
|
import "./paths-DkMamAQ-.js";
|
|
27
27
|
import "./tool-images-ChC2CXaN.js";
|
|
28
|
-
import "./image-
|
|
28
|
+
import "./image-DcpMiprB.js";
|
|
29
29
|
import "./gemini-auth-CSlZZ1Pw.js";
|
|
30
30
|
import "./local-roots-CC8jiKDk.js";
|
|
31
|
-
import { a as resolveMediaAttachmentLocalRoots, n as createMediaAttachmentCache, o as runCapability, r as normalizeMediaAttachments, t as buildProviderRegistry, u as isAudioAttachment } from "./runner-
|
|
31
|
+
import { a as resolveMediaAttachmentLocalRoots, n as createMediaAttachmentCache, o as runCapability, r as normalizeMediaAttachments, t as buildProviderRegistry, u as isAudioAttachment } from "./runner-BcQ0sF9T.js";
|
|
32
32
|
|
|
33
33
|
//#region src/media-understanding/audio-preflight.ts
|
|
34
34
|
/**
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import "./paths-
|
|
2
|
-
import { J as logVerbose, Z as shouldLogVerbose } from "./registry-
|
|
3
|
-
import "./agent-scope-
|
|
4
|
-
import "./subsystem-
|
|
5
|
-
import "./workspace-
|
|
6
|
-
import "./paths-
|
|
7
|
-
import "./auth-profiles-
|
|
8
|
-
import "./env-
|
|
9
|
-
import "./github-copilot-token-
|
|
1
|
+
import "./paths-CYmyCDsE.js";
|
|
2
|
+
import { J as logVerbose, Z as shouldLogVerbose } from "./registry-UkL38jvt.js";
|
|
3
|
+
import "./agent-scope-D68_xfTL.js";
|
|
4
|
+
import "./subsystem-DN75fnEF.js";
|
|
5
|
+
import "./workspace-DqJ5h-ZB.js";
|
|
6
|
+
import "./paths-DEuVuViW.js";
|
|
7
|
+
import "./auth-profiles-Bl9aU7fc.js";
|
|
8
|
+
import "./env-xmBFQPBP.js";
|
|
9
|
+
import "./github-copilot-token-B8B2pmph.js";
|
|
10
10
|
import "./boolean-CE7i9tBR.js";
|
|
11
|
-
import "./pi-embedded-helpers-
|
|
12
|
-
import "./config-
|
|
13
|
-
import "./manifest-registry-
|
|
14
|
-
import "./chrome-
|
|
15
|
-
import "./frontmatter-
|
|
16
|
-
import "./skills-
|
|
11
|
+
import "./pi-embedded-helpers-BU8EZuwx.js";
|
|
12
|
+
import "./config-CvmE3Yx1.js";
|
|
13
|
+
import "./manifest-registry-0J48biqr.js";
|
|
14
|
+
import "./chrome-DRHvMBbb.js";
|
|
15
|
+
import "./frontmatter-CV0YkjoY.js";
|
|
16
|
+
import "./skills-CGHRETGF.js";
|
|
17
17
|
import "./redact-BDMXB06K.js";
|
|
18
18
|
import "./errors-XIsvXeC-.js";
|
|
19
|
-
import "./image-ops-
|
|
19
|
+
import "./image-ops-M5agStZn.js";
|
|
20
20
|
import "./ssrf-DpUUUgkK.js";
|
|
21
|
-
import "./store-
|
|
22
|
-
import "./thinking-
|
|
23
|
-
import "./message-channel-
|
|
24
|
-
import "./plugins-
|
|
25
|
-
import "./accounts-
|
|
26
|
-
import "./accounts-
|
|
27
|
-
import "./accounts-
|
|
28
|
-
import "./bindings-
|
|
29
|
-
import "./tool-images-
|
|
30
|
-
import "./image-
|
|
21
|
+
import "./store-Ea3zM6xK.js";
|
|
22
|
+
import "./thinking-C9-JAUzD.js";
|
|
23
|
+
import "./message-channel-DwDSKGn4.js";
|
|
24
|
+
import "./plugins-Bkr5ZdYs.js";
|
|
25
|
+
import "./accounts-D1r2dq1t.js";
|
|
26
|
+
import "./accounts-dRUMQQrB.js";
|
|
27
|
+
import "./accounts-wSphH5gv.js";
|
|
28
|
+
import "./bindings-Bat2RnAR.js";
|
|
29
|
+
import "./tool-images-B1qVCntj.js";
|
|
30
|
+
import "./image-CK4oZUJJ.js";
|
|
31
31
|
import "./pi-model-discovery-Bv5YDJc8.js";
|
|
32
|
-
import "./gemini-auth-
|
|
33
|
-
import "./local-roots-
|
|
34
|
-
import { a as resolveMediaAttachmentLocalRoots, n as createMediaAttachmentCache, o as runCapability, r as normalizeMediaAttachments, t as buildProviderRegistry, u as isAudioAttachment } from "./runner-
|
|
32
|
+
import "./gemini-auth-C6Z-2T42.js";
|
|
33
|
+
import "./local-roots-CdXg5-Cx.js";
|
|
34
|
+
import { a as resolveMediaAttachmentLocalRoots, n as createMediaAttachmentCache, o as runCapability, r as normalizeMediaAttachments, t as buildProviderRegistry, u as isAudioAttachment } from "./runner-CKYly94z.js";
|
|
35
35
|
|
|
36
36
|
//#region src/media-understanding/audio-preflight.ts
|
|
37
37
|
/**
|
|
@@ -6,7 +6,7 @@ import { n as loadModelCatalog } from "./model-catalog-CqCsARJX.js";
|
|
|
6
6
|
import { f as openUrl } from "./onboard-helpers-_pit1NZW.js";
|
|
7
7
|
import { t as enablePluginInConfig } from "./enable-CknE1f0w.js";
|
|
8
8
|
import { $ as setHuggingfaceApiKey, A as applyXaiConfig, B as applyVercelAiGatewayConfig, C as applyQianfanProviderConfig, D as applyTogetherProviderConfig, E as applyTogetherConfig, F as applyZaiProviderConfig, G as OPENROUTER_DEFAULT_MODEL_REF, H as applyAgentDefaultModelPrimary, I as applyLitellmConfig, J as XIAOMI_DEFAULT_MODEL_REF, K as TOGETHER_DEFAULT_MODEL_REF, L as applyLitellmProviderConfig, M as applyXiaomiConfig, N as applyXiaomiProviderConfig, O as applyVeniceConfig, P as applyZaiConfig, Q as setGeminiApiKey, R as applyCloudflareAiGatewayConfig, S as applyQianfanConfig, T as applySyntheticProviderConfig, U as HUGGINGFACE_DEFAULT_MODEL_REF, V as applyVercelAiGatewayProviderConfig, W as LITELLM_DEFAULT_MODEL_REF, X as setAnthropicApiKey, Y as ZAI_DEFAULT_MODEL_REF, Z as setCloudflareAiGatewayConfig, _ as applyMoonshotConfigCn, _t as QIANFAN_DEFAULT_MODEL_REF, a as applyMinimaxApiConfig, at as setOpenrouterApiKey, b as applyOpenrouterConfig, c as applyMinimaxApiProviderConfigCn, ct as setTogetherApiKey, d as applyAuthProfileConfig, dt as setXaiApiKey, et as setKimiCodingApiKey, ft as setXiaomiApiKey, g as applyMoonshotConfig, gt as MOONSHOT_DEFAULT_MODEL_REF, h as applyKimiCodeProviderConfig, ht as KIMI_CODING_MODEL_REF, i as applyOpencodeZenProviderConfig, it as setOpencodeZenApiKey, j as applyXaiProviderConfig, k as applyVeniceProviderConfig, l as applyMinimaxConfig, lt as setVeniceApiKey, m as applyKimiCodeConfig, mt as writeOAuthCredentials, n as validateAnthropicSetupToken, nt as setMinimaxApiKey, o as applyMinimaxApiConfigCn, ot as setQianfanApiKey, p as applyHuggingfaceProviderConfig, pt as setZaiApiKey, q as VERCEL_AI_GATEWAY_DEFAULT_MODEL_REF, r as applyOpencodeZenConfig, rt as setMoonshotApiKey, s as applyMinimaxApiProviderConfig, st as setSyntheticApiKey, t as buildTokenProfileId, tt as setLitellmApiKey, u as applyMinimaxProviderConfig, ut as setVercelAiGatewayApiKey, v as applyMoonshotProviderConfig, vt as XAI_DEFAULT_MODEL_REF, w as applySyntheticConfig, x as applyOpenrouterProviderConfig, y as applyMoonshotProviderConfigCn, z as applyCloudflareAiGatewayProviderConfig } from "./auth-token-Cmrk2TPo.js";
|
|
9
|
-
import { a as createVpsAwareOAuthHandlers, c as githubCopilotLoginCommand, i as resolveProviderMatch, n as mergeConfigPatch, o as isRemoteEnvironment, r as pickAuthMethod, s as resolvePluginProviders, t as applyDefaultModel } from "./provider-auth-helpers-
|
|
9
|
+
import { a as createVpsAwareOAuthHandlers, c as githubCopilotLoginCommand, i as resolveProviderMatch, n as mergeConfigPatch, o as isRemoteEnvironment, r as pickAuthMethod, s as resolvePluginProviders, t as applyDefaultModel } from "./provider-auth-helpers-DstpUAya.js";
|
|
10
10
|
import { a as detectZaiEndpoint, c as ensureModelAllowlistEntry, i as upsertSharedEnvVar, n as applyOpenAIConfig, o as GOOGLE_GEMINI_DEFAULT_MODEL, r as applyOpenAIProviderConfig, s as applyGoogleGeminiModelDefault, t as OPENAI_DEFAULT_MODEL } from "./openai-model-default-DAwnTUcK.js";
|
|
11
11
|
import { c as OPENAI_CODEX_DEFAULT_MODEL, l as applyOpenAICodexModelDefault, r as applyPrimaryModel, s as promptAndConfigureVllm } from "./model-picker-D5nCutGW.js";
|
|
12
12
|
import { loginOpenAICodex } from "@mariozechner/pi-ai";
|
|
@@ -6,7 +6,7 @@ import { n as loadModelCatalog } from "./model-catalog-DvBJ8pMD.js";
|
|
|
6
6
|
import { f as openUrl } from "./onboard-helpers-ZmZYzlq3.js";
|
|
7
7
|
import { t as enablePluginInConfig } from "./enable-HSYin9n7.js";
|
|
8
8
|
import { $ as setHuggingfaceApiKey, A as applyXaiConfig, B as applyVercelAiGatewayConfig, C as applyQianfanProviderConfig, D as applyTogetherProviderConfig, E as applyTogetherConfig, F as applyZaiProviderConfig, G as OPENROUTER_DEFAULT_MODEL_REF, H as applyAgentDefaultModelPrimary, I as applyLitellmConfig, J as XIAOMI_DEFAULT_MODEL_REF, K as TOGETHER_DEFAULT_MODEL_REF, L as applyLitellmProviderConfig, M as applyXiaomiConfig, N as applyXiaomiProviderConfig, O as applyVeniceConfig, P as applyZaiConfig, Q as setGeminiApiKey, R as applyCloudflareAiGatewayConfig, S as applyQianfanConfig, T as applySyntheticProviderConfig, U as HUGGINGFACE_DEFAULT_MODEL_REF, V as applyVercelAiGatewayProviderConfig, W as LITELLM_DEFAULT_MODEL_REF, X as setAnthropicApiKey, Y as ZAI_DEFAULT_MODEL_REF, Z as setCloudflareAiGatewayConfig, _ as applyMoonshotConfigCn, _t as QIANFAN_DEFAULT_MODEL_REF, a as applyMinimaxApiConfig, at as setOpenrouterApiKey, b as applyOpenrouterConfig, c as applyMinimaxApiProviderConfigCn, ct as setTogetherApiKey, d as applyAuthProfileConfig, dt as setXaiApiKey, et as setKimiCodingApiKey, ft as setXiaomiApiKey, g as applyMoonshotConfig, gt as MOONSHOT_DEFAULT_MODEL_REF, h as applyKimiCodeProviderConfig, ht as KIMI_CODING_MODEL_REF, i as applyOpencodeZenProviderConfig, it as setOpencodeZenApiKey, j as applyXaiProviderConfig, k as applyVeniceProviderConfig, l as applyMinimaxConfig, lt as setVeniceApiKey, m as applyKimiCodeConfig, mt as writeOAuthCredentials, n as validateAnthropicSetupToken, nt as setMinimaxApiKey, o as applyMinimaxApiConfigCn, ot as setQianfanApiKey, p as applyHuggingfaceProviderConfig, pt as setZaiApiKey, q as VERCEL_AI_GATEWAY_DEFAULT_MODEL_REF, r as applyOpencodeZenConfig, rt as setMoonshotApiKey, s as applyMinimaxApiProviderConfig, st as setSyntheticApiKey, t as buildTokenProfileId, tt as setLitellmApiKey, u as applyMinimaxProviderConfig, ut as setVercelAiGatewayApiKey, v as applyMoonshotProviderConfig, vt as XAI_DEFAULT_MODEL_REF, w as applySyntheticConfig, x as applyOpenrouterProviderConfig, y as applyMoonshotProviderConfigCn, z as applyCloudflareAiGatewayProviderConfig } from "./auth-token-BnOynwk4.js";
|
|
9
|
-
import { a as createVpsAwareOAuthHandlers, c as githubCopilotLoginCommand, i as resolveProviderMatch, n as mergeConfigPatch, o as isRemoteEnvironment, r as pickAuthMethod, s as resolvePluginProviders, t as applyDefaultModel } from "./provider-auth-helpers-
|
|
9
|
+
import { a as createVpsAwareOAuthHandlers, c as githubCopilotLoginCommand, i as resolveProviderMatch, n as mergeConfigPatch, o as isRemoteEnvironment, r as pickAuthMethod, s as resolvePluginProviders, t as applyDefaultModel } from "./provider-auth-helpers-DiuVmtmQ.js";
|
|
10
10
|
import { a as detectZaiEndpoint, c as ensureModelAllowlistEntry, i as upsertSharedEnvVar, n as applyOpenAIConfig, o as GOOGLE_GEMINI_DEFAULT_MODEL, r as applyOpenAIProviderConfig, s as applyGoogleGeminiModelDefault, t as OPENAI_DEFAULT_MODEL } from "./openai-model-default-DMjQRsb1.js";
|
|
11
11
|
import { c as OPENAI_CODEX_DEFAULT_MODEL, l as applyOpenAICodexModelDefault, r as applyPrimaryModel, s as promptAndConfigureVllm } from "./model-picker-Ddo3jHe-.js";
|
|
12
12
|
import { randomBytes } from "node:crypto";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { o as resolveOAuthPath, s as resolveStateDir } from "./paths-
|
|
2
|
+
import { o as resolveOAuthPath, s as resolveStateDir } from "./paths-CYmyCDsE.js";
|
|
3
3
|
import { t as DEFAULT_AGENT_ID } from "./session-key-BCzIW1Y2.js";
|
|
4
|
-
import { I as resolveUserPath } from "./registry-
|
|
5
|
-
import { a as resolveAgentModelPrimary, n as resolveAgentConfig } from "./agent-scope-
|
|
6
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
7
|
-
import { n as formatCliCommand, t as isTruthyEnvValue } from "./env-
|
|
8
|
-
import { a as saveJsonFile, i as loadJsonFile, r as resolveCopilotApiToken, t as DEFAULT_COPILOT_API_BASE_URL } from "./github-copilot-token-
|
|
4
|
+
import { I as resolveUserPath } from "./registry-UkL38jvt.js";
|
|
5
|
+
import { a as resolveAgentModelPrimary, n as resolveAgentConfig } from "./agent-scope-D68_xfTL.js";
|
|
6
|
+
import { t as createSubsystemLogger } from "./subsystem-DN75fnEF.js";
|
|
7
|
+
import { n as formatCliCommand, t as isTruthyEnvValue } from "./env-xmBFQPBP.js";
|
|
8
|
+
import { a as saveJsonFile, i as loadJsonFile, r as resolveCopilotApiToken, t as DEFAULT_COPILOT_API_BASE_URL } from "./github-copilot-token-B8B2pmph.js";
|
|
9
9
|
import path from "node:path";
|
|
10
|
-
import
|
|
11
|
-
import fs
|
|
10
|
+
import fsSync from "node:fs";
|
|
11
|
+
import fs from "node:fs/promises";
|
|
12
12
|
import { execFileSync } from "node:child_process";
|
|
13
13
|
import { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
14
14
|
import { BedrockClient, ListFoundationModelsCommand } from "@aws-sdk/client-bedrock";
|
|
@@ -2957,7 +2957,7 @@ function computeDelayMs(retries, attempt) {
|
|
|
2957
2957
|
}
|
|
2958
2958
|
async function readLockPayload(lockPath) {
|
|
2959
2959
|
try {
|
|
2960
|
-
const raw = await fs
|
|
2960
|
+
const raw = await fs.readFile(lockPath, "utf8");
|
|
2961
2961
|
const parsed = JSON.parse(raw);
|
|
2962
2962
|
if (typeof parsed.pid !== "number" || typeof parsed.createdAt !== "string") return null;
|
|
2963
2963
|
return {
|
|
@@ -2971,9 +2971,9 @@ async function readLockPayload(lockPath) {
|
|
|
2971
2971
|
async function resolveNormalizedFilePath(filePath) {
|
|
2972
2972
|
const resolved = path.resolve(filePath);
|
|
2973
2973
|
const dir = path.dirname(resolved);
|
|
2974
|
-
await fs
|
|
2974
|
+
await fs.mkdir(dir, { recursive: true });
|
|
2975
2975
|
try {
|
|
2976
|
-
const realDir = await fs
|
|
2976
|
+
const realDir = await fs.realpath(dir);
|
|
2977
2977
|
return path.join(realDir, path.basename(resolved));
|
|
2978
2978
|
} catch {
|
|
2979
2979
|
return resolved;
|
|
@@ -2987,7 +2987,7 @@ async function isStaleLock(lockPath, staleMs) {
|
|
|
2987
2987
|
if (!Number.isFinite(createdAt) || Date.now() - createdAt > staleMs) return true;
|
|
2988
2988
|
}
|
|
2989
2989
|
try {
|
|
2990
|
-
const stat = await fs
|
|
2990
|
+
const stat = await fs.stat(lockPath);
|
|
2991
2991
|
return Date.now() - stat.mtimeMs > staleMs;
|
|
2992
2992
|
} catch {
|
|
2993
2993
|
return true;
|
|
@@ -3000,7 +3000,7 @@ async function releaseHeldLock(normalizedFile) {
|
|
|
3000
3000
|
if (current.count > 0) return;
|
|
3001
3001
|
HELD_LOCKS.delete(normalizedFile);
|
|
3002
3002
|
await current.handle.close().catch(() => void 0);
|
|
3003
|
-
await fs
|
|
3003
|
+
await fs.rm(current.lockPath, { force: true }).catch(() => void 0);
|
|
3004
3004
|
}
|
|
3005
3005
|
async function acquireFileLock(filePath, options) {
|
|
3006
3006
|
const normalizedFile = await resolveNormalizedFilePath(filePath);
|
|
@@ -3015,7 +3015,7 @@ async function acquireFileLock(filePath, options) {
|
|
|
3015
3015
|
}
|
|
3016
3016
|
const attempts = Math.max(1, options.retries.retries + 1);
|
|
3017
3017
|
for (let attempt = 0; attempt < attempts; attempt += 1) try {
|
|
3018
|
-
const handle = await fs
|
|
3018
|
+
const handle = await fs.open(lockPath, "wx");
|
|
3019
3019
|
await handle.writeFile(JSON.stringify({
|
|
3020
3020
|
pid: process.pid,
|
|
3021
3021
|
createdAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
@@ -3032,7 +3032,7 @@ async function acquireFileLock(filePath, options) {
|
|
|
3032
3032
|
} catch (err) {
|
|
3033
3033
|
if (err.code !== "EEXIST") throw err;
|
|
3034
3034
|
if (await isStaleLock(lockPath, options.stale)) {
|
|
3035
|
-
await fs
|
|
3035
|
+
await fs.rm(lockPath, { force: true }).catch(() => void 0);
|
|
3036
3036
|
continue;
|
|
3037
3037
|
}
|
|
3038
3038
|
if (attempt >= attempts - 1) break;
|
|
@@ -3186,7 +3186,7 @@ function resolveAuthStorePathForDisplay(agentDir) {
|
|
|
3186
3186
|
return pathname.startsWith("~") ? pathname : resolveUserPath(pathname);
|
|
3187
3187
|
}
|
|
3188
3188
|
function ensureAuthStoreFile(pathname) {
|
|
3189
|
-
if (
|
|
3189
|
+
if (fsSync.existsSync(pathname)) return;
|
|
3190
3190
|
saveJsonFile(pathname, {
|
|
3191
3191
|
version: AUTH_STORE_VERSION,
|
|
3192
3192
|
profiles: {}
|
|
@@ -3355,7 +3355,7 @@ function loadAuthProfileStoreForAgent(agentDir, _options) {
|
|
|
3355
3355
|
if (shouldWrite && legacy !== null) {
|
|
3356
3356
|
const legacyPath = resolveLegacyAuthStorePath(agentDir);
|
|
3357
3357
|
try {
|
|
3358
|
-
|
|
3358
|
+
fsSync.unlinkSync(legacyPath);
|
|
3359
3359
|
} catch (err) {
|
|
3360
3360
|
if (err?.code !== "ENOENT") log$1.warn("failed to delete legacy auth.json after migration", {
|
|
3361
3361
|
err,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Dt as theme, Et as isRich, h as visibleWidth, ln as hasRootVersionAlias } from "./entry.js";
|
|
2
|
-
import { un as resolveCommitHash } from "./subagent-registry-
|
|
2
|
+
import { un as resolveCommitHash } from "./subagent-registry-7wPEZQKK.js";
|
|
3
3
|
|
|
4
4
|
//#region src/cli/tagline.ts
|
|
5
5
|
const DEFAULT_TAGLINE = "All your chats, one Symi.";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as normalizeAccountId, s as normalizeAgentId } from "./session-key-BCzIW1Y2.js";
|
|
2
|
-
import { s as normalizeChatChannelId } from "./registry-
|
|
3
|
-
import { c as resolveDefaultAgentId } from "./agent-scope-
|
|
2
|
+
import { s as normalizeChatChannelId } from "./registry-UkL38jvt.js";
|
|
3
|
+
import { c as resolveDefaultAgentId } from "./agent-scope-D68_xfTL.js";
|
|
4
4
|
|
|
5
5
|
//#region src/routing/bindings.ts
|
|
6
6
|
function normalizeBindingChannelId(raw) {
|
package/dist/build-info.json
CHANGED
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
import "../../paths-
|
|
1
|
+
import "../../paths-CYmyCDsE.js";
|
|
2
2
|
import { l as resolveAgentIdFromSessionKey } from "../../session-key-BCzIW1Y2.js";
|
|
3
|
-
import { b as isGatewayStartupEvent } from "../../registry-
|
|
4
|
-
import { s as resolveAgentWorkspaceDir, t as listAgentIds } from "../../agent-scope-
|
|
5
|
-
import { r as defaultRuntime, t as createSubsystemLogger } from "../../subsystem-
|
|
6
|
-
import "../../workspace-
|
|
7
|
-
import { a as createDefaultDeps, i as agentCommand } from "../../unified-runner-
|
|
8
|
-
import { s as resolveStorePath } from "../../paths-
|
|
9
|
-
import "../../auth-profiles-
|
|
10
|
-
import "../../env-
|
|
11
|
-
import "../../github-copilot-token-
|
|
3
|
+
import { b as isGatewayStartupEvent } from "../../registry-UkL38jvt.js";
|
|
4
|
+
import { s as resolveAgentWorkspaceDir, t as listAgentIds } from "../../agent-scope-D68_xfTL.js";
|
|
5
|
+
import { r as defaultRuntime, t as createSubsystemLogger } from "../../subsystem-DN75fnEF.js";
|
|
6
|
+
import "../../workspace-DqJ5h-ZB.js";
|
|
7
|
+
import { a as createDefaultDeps, i as agentCommand } from "../../unified-runner-quomT1T-.js";
|
|
8
|
+
import { s as resolveStorePath } from "../../paths-DEuVuViW.js";
|
|
9
|
+
import "../../auth-profiles-Bl9aU7fc.js";
|
|
10
|
+
import "../../env-xmBFQPBP.js";
|
|
11
|
+
import "../../github-copilot-token-B8B2pmph.js";
|
|
12
12
|
import "../../boolean-CE7i9tBR.js";
|
|
13
|
-
import { H as loadSessionStore, K as updateSessionStore, xt as resolveMainSessionKey, yt as resolveAgentMainSessionKey } from "../../pi-embedded-helpers-
|
|
14
|
-
import "../../config-
|
|
15
|
-
import "../../manifest-registry-
|
|
16
|
-
import "../../chrome-
|
|
17
|
-
import "../../frontmatter-
|
|
18
|
-
import "../../skills-
|
|
13
|
+
import { H as loadSessionStore, K as updateSessionStore, xt as resolveMainSessionKey, yt as resolveAgentMainSessionKey } from "../../pi-embedded-helpers-BU8EZuwx.js";
|
|
14
|
+
import "../../config-CvmE3Yx1.js";
|
|
15
|
+
import "../../manifest-registry-0J48biqr.js";
|
|
16
|
+
import "../../chrome-DRHvMBbb.js";
|
|
17
|
+
import "../../frontmatter-CV0YkjoY.js";
|
|
18
|
+
import "../../skills-CGHRETGF.js";
|
|
19
19
|
import "../../redact-BDMXB06K.js";
|
|
20
20
|
import "../../errors-XIsvXeC-.js";
|
|
21
|
-
import "../../image-ops-
|
|
21
|
+
import "../../image-ops-M5agStZn.js";
|
|
22
22
|
import "../../ssrf-DpUUUgkK.js";
|
|
23
|
-
import "../../store-
|
|
24
|
-
import "../../thinking-
|
|
25
|
-
import "../../message-channel-
|
|
26
|
-
import "../../plugins-
|
|
27
|
-
import "../../accounts-
|
|
28
|
-
import "../../accounts-
|
|
29
|
-
import "../../accounts-
|
|
30
|
-
import "../../bindings-
|
|
31
|
-
import "../../send-
|
|
32
|
-
import "../../send-
|
|
33
|
-
import "../../tool-images-
|
|
34
|
-
import "../../deliver-
|
|
35
|
-
import "../../diagnostic-
|
|
23
|
+
import "../../store-Ea3zM6xK.js";
|
|
24
|
+
import "../../thinking-C9-JAUzD.js";
|
|
25
|
+
import "../../message-channel-DwDSKGn4.js";
|
|
26
|
+
import "../../plugins-Bkr5ZdYs.js";
|
|
27
|
+
import "../../accounts-D1r2dq1t.js";
|
|
28
|
+
import "../../accounts-dRUMQQrB.js";
|
|
29
|
+
import "../../accounts-wSphH5gv.js";
|
|
30
|
+
import "../../bindings-Bat2RnAR.js";
|
|
31
|
+
import "../../send-qItpAHcI.js";
|
|
32
|
+
import "../../send-D3zDmQim.js";
|
|
33
|
+
import "../../tool-images-B1qVCntj.js";
|
|
34
|
+
import "../../deliver-UMgfGLxW.js";
|
|
35
|
+
import "../../diagnostic-spWOtH_g.js";
|
|
36
36
|
import "../../diagnostic-session-state-Zw87xFym.js";
|
|
37
|
-
import "../../image-
|
|
38
|
-
import { n as SILENT_REPLY_TOKEN } from "../../tokens-
|
|
39
|
-
import "../../send-
|
|
37
|
+
import "../../image-CK4oZUJJ.js";
|
|
38
|
+
import { n as SILENT_REPLY_TOKEN } from "../../tokens-BZGy4v--.js";
|
|
39
|
+
import "../../send-B7z8CDbr.js";
|
|
40
40
|
import "../../pi-model-discovery-Bv5YDJc8.js";
|
|
41
|
-
import "../../reply-prefix-
|
|
42
|
-
import "../../manager-
|
|
43
|
-
import "../../gemini-auth-
|
|
44
|
-
import "../../sqlite-
|
|
45
|
-
import "../../retry-
|
|
46
|
-
import "../../target-errors-
|
|
47
|
-
import "../../chunk-
|
|
48
|
-
import "../../markdown-tables-
|
|
49
|
-
import "../../local-roots-
|
|
50
|
-
import "../../ir-
|
|
41
|
+
import "../../reply-prefix-DkGsdyBm.js";
|
|
42
|
+
import "../../manager-DW3JqFpY.js";
|
|
43
|
+
import "../../gemini-auth-C6Z-2T42.js";
|
|
44
|
+
import "../../sqlite-Bv87EXeg.js";
|
|
45
|
+
import "../../retry-CqMeDhyp.js";
|
|
46
|
+
import "../../target-errors-7KhTCTdS.js";
|
|
47
|
+
import "../../chunk-DR8ukp6r.js";
|
|
48
|
+
import "../../markdown-tables-tW9bGjLM.js";
|
|
49
|
+
import "../../local-roots-CdXg5-Cx.js";
|
|
50
|
+
import "../../ir-B-XXcYFe.js";
|
|
51
51
|
import "../../render-CDCvpfhh.js";
|
|
52
|
-
import "../../commands-registry-
|
|
53
|
-
import "../../runner-
|
|
54
|
-
import "../../skill-commands-
|
|
52
|
+
import "../../commands-registry-DIakZUZb.js";
|
|
53
|
+
import "../../runner-CKYly94z.js";
|
|
54
|
+
import "../../skill-commands-B_f8uGi7.js";
|
|
55
55
|
import "../../fetch-Bso4i15F.js";
|
|
56
|
-
import "../../channel-activity-
|
|
57
|
-
import "../../tables-
|
|
58
|
-
import "../../send-
|
|
59
|
-
import "../../outbound-attachment-
|
|
60
|
-
import "../../send-
|
|
61
|
-
import "../../resolve-route-
|
|
56
|
+
import "../../channel-activity-DK0AV-r9.js";
|
|
57
|
+
import "../../tables-BX7_aBvN.js";
|
|
58
|
+
import "../../send-XRUYukww.js";
|
|
59
|
+
import "../../outbound-attachment-CHcmlip8.js";
|
|
60
|
+
import "../../send-Cd81AY_Z.js";
|
|
61
|
+
import "../../resolve-route-q8AFnU5c.js";
|
|
62
62
|
import "../../proxy-CBJ1upuz.js";
|
|
63
|
-
import "../../replies-
|
|
63
|
+
import "../../replies-mfnbLu2p.js";
|
|
64
64
|
import path from "node:path";
|
|
65
65
|
import fs from "node:fs/promises";
|
|
66
66
|
import crypto from "node:crypto";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "../../paths-
|
|
2
|
-
import { y as isAgentBootstrapEvent } from "../../registry-
|
|
3
|
-
import "../../subsystem-
|
|
4
|
-
import { d as loadExtraBootstrapFiles, u as filterBootstrapFilesForSession } from "../../workspace-
|
|
1
|
+
import "../../paths-CYmyCDsE.js";
|
|
2
|
+
import { y as isAgentBootstrapEvent } from "../../registry-UkL38jvt.js";
|
|
3
|
+
import "../../subsystem-DN75fnEF.js";
|
|
4
|
+
import { d as loadExtraBootstrapFiles, u as filterBootstrapFilesForSession } from "../../workspace-DqJ5h-ZB.js";
|
|
5
5
|
import "../../boolean-CE7i9tBR.js";
|
|
6
|
-
import "../../frontmatter-
|
|
6
|
+
import "../../frontmatter-CV0YkjoY.js";
|
|
7
7
|
import { t as resolveHookConfig } from "../../config-ClSsetRi.js";
|
|
8
8
|
|
|
9
9
|
//#region src/hooks/bundled/bootstrap-extra-files/handler.ts
|