@symerian/symi 2.6.11 → 2.6.13
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-dRUMQQrB.js → accounts-3dCrO3oZ.js} +1 -1
- package/dist/{accounts-D1r2dq1t.js → accounts-BRw8yhIW.js} +21 -21
- package/dist/{accounts-wSphH5gv.js → accounts-BuZxOb3B.js} +1 -1
- package/dist/{active-listener-DFUTUjxt.js → active-listener-CfHHV2SU.js} +1 -1
- package/dist/{agent-scope-D68_xfTL.js → agent-scope-CpEJ0B88.js} +3 -3
- package/dist/{agents-DRRBdgqz.js → agents-CrSpoNsS.js} +4 -4
- package/dist/{agents.config-GCucbcBy.js → agents.config-B3GILTs5.js} +1 -1
- package/dist/{agents.config-BO1N5Z_6.js → agents.config-Co1CO8fA.js} +1 -1
- package/dist/{audio-preflight-CjV36MUe.js → audio-preflight-BVaaZWkg.js} +29 -29
- package/dist/{auth-choice-C1sul2-I.js → auth-choice-BBmXnDnK.js} +1 -1
- package/dist/{auth-choice-i7tTgbDd.js → auth-choice-BHWxDJh7.js} +1 -1
- package/dist/{auth-profiles-Bl9aU7fc.js → auth-profiles-DdK1Hxaa.js} +17 -17
- package/dist/{banner-VbhMdl-b.js → banner-RLiOIu-3.js} +1 -1
- package/dist/{bindings-Bat2RnAR.js → bindings-BsHoBLIE.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-DK0AV-r9.js → channel-activity-B6G1jnQT.js} +1 -1
- package/dist/{channel-options-CsXOvqAc.js → channel-options-BCK41AON.js} +1 -1
- package/dist/{channel-options-Esf0QB4M.js → channel-options-PDf46S-K.js} +1 -1
- package/dist/{channel-web-DDC84nZg.js → channel-web-C3XZ7c2q.js} +1 -1
- package/dist/{channels-cli-DomEe8uI.js → channels-cli-723vy6L6.js} +4 -4
- package/dist/{channels-cli-C989dAD4.js → channels-cli-CUWuD7qf.js} +4 -4
- package/dist/{chrome-DRHvMBbb.js → chrome-DkaXoP36.js} +14 -14
- package/dist/{chunk-DR8ukp6r.js → chunk-09egQapi.js} +1 -1
- package/dist/{cli-CPRCkEdK.js → cli-CAzmrOs0.js} +1 -1
- package/dist/{cli-RXswESw1.js → cli-DYdRSi_j.js} +1 -1
- package/dist/{command-registry-DwBw5-nh.js → command-registry-B2aO0Q7_.js} +9 -9
- package/dist/{commands-registry-DIakZUZb.js → commands-registry-Bfc7Uz0o.js} +4 -4
- package/dist/{completion-cli-Cwx8MtF9.js → completion-cli-BKm12loU.js} +1 -1
- package/dist/{completion-cli-C43sjF75.js → completion-cli-BsKD_vBb.js} +2 -2
- package/dist/{config-CvmE3Yx1.js → config-5SdHIcHU.js} +12 -12
- package/dist/{config-cli-DG0xBZhs.js → config-cli-Bynmd81Q.js} +1 -1
- package/dist/{config-cli-CkkIU7AY.js → config-cli-D47lU7kU.js} +1 -1
- package/dist/{configure-DlVtomYJ.js → configure-B3vS2Iz5.js} +3 -3
- package/dist/{configure-nxnXIUVI.js → configure-Df6GmKAR.js} +3 -3
- package/dist/{deliver-UMgfGLxW.js → deliver-C46-vyqg.js} +20 -20
- package/dist/{diagnostic-spWOtH_g.js → diagnostic-rPhsBoZz.js} +1 -1
- package/dist/{doctor-completion-Dd5P0i9L.js → doctor-completion-DyiRkYT4.js} +1 -1
- package/dist/{doctor-completion-CWr51Q4O.js → doctor-completion-SEerte2S.js} +1 -1
- package/dist/entry.js +1 -1
- package/dist/{env-xmBFQPBP.js → env-BDXYbTKj.js} +1 -1
- package/dist/extensionAPI.js +1 -1
- package/dist/{frontmatter-CV0YkjoY.js → frontmatter-CTR5f_Ez.js} +2 -2
- package/dist/{gateway-cli-BBJjWKyu.js → gateway-cli-PjmG0pFo.js} +9 -9
- package/dist/{gateway-cli-B1h1FhD-.js → gateway-cli-k19iT2vJ.js} +9 -9
- package/dist/{gemini-auth-C6Z-2T42.js → gemini-auth-Dy12ZAH3.js} +1 -1
- package/dist/{github-copilot-token-B8B2pmph.js → github-copilot-token-cCYzSU9h.js} +7 -7
- package/dist/{glass-ui-ws-UewDPjVh.js → glass-ui-ws-D0Yv090T.js} +7 -7
- package/dist/{glass-ui-ws-Bk01KSVI.js → glass-ui-ws-iCEtluQU.js} +7 -7
- package/dist/{health-Dzi6letr.js → health-B32Q-KYM.js} +1 -1
- package/dist/{health-BiipZUOd.js → health-CXjAtn1-.js} +1 -1
- package/dist/{hooks-cli-BdelOAPH.js → hooks-cli-DA6zOGNz.js} +2 -2
- package/dist/{hooks-cli-DxRXaSHR.js → hooks-cli-DfRmFenH.js} +2 -2
- package/dist/{image-CK4oZUJJ.js → image-CuzFLQWC.js} +4 -4
- package/dist/{image-ops-M5agStZn.js → image-ops-C7CauEK8.js} +16 -16
- package/dist/index.js +6 -6
- package/dist/{ir-B-XXcYFe.js → ir-CTiz95Vb.js} +4 -4
- package/dist/llm-slug-generator.js +53 -53
- package/dist/{local-roots-CdXg5-Cx.js → local-roots-DhZz0Ybs.js} +5 -5
- package/dist/{login-qr-BKIOHn1V.js → login-qr-AP9agO-i.js} +12 -12
- package/dist/{login-BHUrERYo.js → login-ul8zaw_S.js} +7 -7
- package/dist/{manager-DW3JqFpY.js → manager-PprhCvO_.js} +22 -22
- package/dist/{manifest-registry-0J48biqr.js → manifest-registry-yb7sAlu4.js} +19 -19
- package/dist/{markdown-tables-tW9bGjLM.js → markdown-tables-C-BmIap8.js} +1 -1
- package/dist/{message-channel-DwDSKGn4.js → message-channel-OlFBYAw8.js} +1 -1
- package/dist/{models-cli-CF0KZtK4.js → models-cli-BgCUViRO.js} +2 -2
- package/dist/{models-cli-D5KE-evn.js → models-cli-CbJUD_L1.js} +3 -3
- package/dist/{models-DUrbBEOU.js → models-zowe4LXa.js} +2 -2
- package/dist/{onboard-DK-oOqRl.js → onboard-CYvIpUXQ.js} +2 -2
- package/dist/{onboard-Bizq_LAS.js → onboard-DsKgcThj.js} +2 -2
- package/dist/{onboard-channels-B6yLPqH5.js → onboard-channels-DLiV4Y0t.js} +1 -1
- package/dist/{onboard-channels-DSZzjOo1.js → onboard-channels-DxCGWgB0.js} +1 -1
- package/dist/{onboarding-CkWWIQA7.js → onboarding-BA5v1JEG.js} +3 -3
- package/dist/{onboarding-DGSCNnGY.js → onboarding-DioGtMFo.js} +3 -3
- package/dist/{onboarding.finalize-Dj0noUgo.js → onboarding.finalize-CAbRXb0h.js} +5 -5
- package/dist/{onboarding.finalize-BMGwhjIR.js → onboarding.finalize-DMXCA49f.js} +6 -6
- package/dist/{outbound-CIVsLpJK.js → outbound-CtMCmwxR.js} +7 -7
- package/dist/{outbound-attachment-CHcmlip8.js → outbound-attachment-DJldbweZ.js} +2 -2
- package/dist/{paths-DEuVuViW.js → paths-CbQV9WEg.js} +1 -1
- package/dist/{pi-auth-json-BYuCWAs0.js → pi-auth-json-Bk8ERadJ.js} +8 -8
- package/dist/{pi-embedded-DLma-HLn.js → pi-embedded-CFFnZEcA.js} +14 -4
- package/dist/{pi-embedded-helpers-BU8EZuwx.js → pi-embedded-helpers-CfqDGQ9J.js} +73 -73
- package/dist/{plugin-registry-D8PAS3Sx.js → plugin-registry-Bt5YCgFq.js} +1 -1
- package/dist/{plugin-registry-BcgpVdtC.js → plugin-registry-HFOrv3KN.js} +1 -1
- package/dist/plugin-sdk/{channel-web-DgNOPxkV.js → channel-web-C2w1HotM.js} +1 -1
- package/dist/plugin-sdk/index.js +2 -2
- package/dist/plugin-sdk/{reply-DJN8Xcq2.js → reply-D5CxbzCs.js} +14 -4
- package/dist/plugin-sdk/{web-HkDBSFef.js → web-ClsKdqx-.js} +2 -2
- package/dist/{plugins-Bkr5ZdYs.js → plugins-BzmbgY7s.js} +9 -9
- package/dist/{plugins-cli-Bcmq1fs1.js → plugins-cli-C7xTf9NV.js} +2 -2
- package/dist/{plugins-cli-B_ln22KG.js → plugins-cli-CXz_UApK.js} +2 -2
- package/dist/{program-C_rxRb1M.js → program-8hWr4qGZ.js} +7 -7
- package/dist/{program-context-BqH8IVSK.js → program-context-BBtSJunF.js} +17 -17
- package/dist/{prompt-select-styled-DMRbQO0q.js → prompt-select-styled-CwfroEHp.js} +4 -4
- package/dist/{prompt-select-styled-D8WAeDQY.js → prompt-select-styled-DUXeA9Zp.js} +4 -4
- package/dist/{provider-auth-helpers-DstpUAya.js → provider-auth-helpers-Dc7jBEOA.js} +1 -1
- package/dist/{provider-auth-helpers-DiuVmtmQ.js → provider-auth-helpers-DhLHWjNU.js} +1 -1
- package/dist/{push-apns-be2xWY22.js → push-apns-CVZe5WVN.js} +1 -1
- package/dist/{push-apns-DKU4DgbI.js → push-apns-CflJh75N.js} +1 -1
- package/dist/{pw-ai-BTgmcNVp.js → pw-ai-m0mj2KWK.js} +11 -11
- package/dist/{qmd-manager-BKu9rOuB.js → qmd-manager-iDLSiI4Z.js} +7 -7
- package/dist/{register.agent-Dcd_oFsG.js → register.agent-BnuJQ5lg.js} +6 -6
- package/dist/{register.agent-k7WxtPOd.js → register.agent-DV7IR1rI.js} +5 -5
- package/dist/{register.configure-BOgCp-h4.js → register.configure-BhncI0ij.js} +6 -6
- package/dist/{register.configure-DMHVPA-T.js → register.configure-DaIrJXWo.js} +6 -6
- package/dist/{register.maintenance-Bsbgpe-Z.js → register.maintenance-BO1XWhVb.js} +7 -7
- package/dist/{register.maintenance-BdBlQQ6G.js → register.maintenance-DK_p-7so.js} +8 -8
- package/dist/{register.message-BE0gDUQZ.js → register.message-B194ue2R.js} +2 -2
- package/dist/{register.message-DAyubW1M.js → register.message-B4CGCAn_.js} +2 -2
- package/dist/{register.onboard-CqavyaNa.js → register.onboard-DidMCka8.js} +4 -4
- package/dist/{register.onboard-CTKa4O9W.js → register.onboard-Dt53qGB5.js} +4 -4
- package/dist/{register.setup-DpkI2F6r.js → register.setup-CLV1kk2-.js} +4 -4
- package/dist/{register.setup-BO3CD8Pz.js → register.setup-DgUxMRZR.js} +4 -4
- package/dist/{register.status-health-sessions-C5Qa-DmU.js → register.status-health-sessions-CB10JLY6.js} +3 -3
- package/dist/{register.status-health-sessions-ClDUpT3j.js → register.status-health-sessions-TvGuwVoR.js} +3 -3
- package/dist/{register.subclis-Bvil7KuO.js → register.subclis-elNdyQio.js} +9 -9
- package/dist/{registry-UkL38jvt.js → registry-DYq1AYOv.js} +17 -17
- package/dist/{replies-mfnbLu2p.js → replies-LSmuwOhA.js} +3 -3
- package/dist/{reply-4ilKYVzu.js → reply-DUZvOCsG.js} +14 -4
- package/dist/{reply-prefix-DkGsdyBm.js → reply-prefix-DpqZu44Z.js} +1 -1
- package/dist/{resolve-route-q8AFnU5c.js → resolve-route-C4_I4GFI.js} +4 -4
- package/dist/{retry-CqMeDhyp.js → retry-BBVXkKBV.js} +1 -1
- package/dist/{run-main-D1n_tgGX.js → run-main-gBPGqO8r.js} +14 -14
- package/dist/{runner-CKYly94z.js → runner-CU9l0uJh.js} +22 -22
- package/dist/{send-Cd81AY_Z.js → send-CQAKg_12.js} +7 -7
- package/dist/{send-qItpAHcI.js → send-CVMyYPQw.js} +6 -6
- package/dist/{send-D3zDmQim.js → send-CvhXrdgS.js} +10 -10
- package/dist/{send-XRUYukww.js → send-DAN9hA5h.js} +6 -6
- package/dist/{send-B7z8CDbr.js → send-DYj_o4_F.js} +18 -18
- package/dist/{server-methods-BRdl4pcP.js → server-methods-BG0N79yY.js} +7 -7
- package/dist/{server-methods-VC0ahxUh.js → server-methods-dgW-8gC7.js} +7 -7
- package/dist/{server-node-events-Y5xFGvsj.js → server-node-events-B_hsQw_N.js} +2 -2
- package/dist/{server-node-events-Bq2fr8Z3.js → server-node-events-ZtQKBPo3.js} +2 -2
- package/dist/{session-Dh2wWQkD.js → session-DSU1vxxi.js} +8 -8
- package/dist/{skill-commands-B_f8uGi7.js → skill-commands-DcVwOafC.js} +16 -16
- package/dist/{skills-CGHRETGF.js → skills-Bs0AW1g3.js} +24 -24
- package/dist/{sqlite-Bv87EXeg.js → sqlite-D_mz1_-y.js} +16 -16
- package/dist/{status-BxNHXm7T.js → status-BqhJ-HsW.js} +1 -1
- package/dist/{status-DOCg6R55.js → status-Cd9-xWsZ.js} +2 -2
- package/dist/{status-CRCD2RpZ.js → status-D-IvYfjk.js} +2 -2
- package/dist/{status-DNJBoKuu.js → status-D4Lr90yH.js} +1 -1
- package/dist/{store-Ea3zM6xK.js → store-01F_JM7O.js} +6 -6
- package/dist/{subagent-registry-7wPEZQKK.js → subagent-registry-J2pIBQF7.js} +14 -4
- package/dist/{subsystem-DN75fnEF.js → subsystem-BjyjJF-d.js} +1 -1
- package/dist/{tables-BX7_aBvN.js → tables-qMwbq29u.js} +1 -1
- package/dist/{target-errors-7KhTCTdS.js → target-errors-Bbr9rlzN.js} +2 -2
- package/dist/{thinking-C9-JAUzD.js → thinking-BprCy23Z.js} +5 -5
- package/dist/{tokens-BZGy4v--.js → tokens-Bux9Y_xD.js} +1 -1
- package/dist/{tool-images-B1qVCntj.js → tool-images-SqqWIT22.js} +2 -2
- package/dist/{tool-loop-detection-C8FBZVVx.js → tool-loop-detection-DR_rrIA1.js} +3 -3
- package/dist/{unified-runner-quomT1T-.js → unified-runner-oH9Pt-cO.js} +232 -222
- package/dist/{update-cli-CcyCWvCB.js → update-cli-B7TLu25J.js} +8 -8
- package/dist/{update-cli-FOE23Lo4.js → update-cli-D8nA6U7C.js} +7 -7
- package/dist/{update-runner-CJg-OANA.js → update-runner-D8AFB8Oi.js} +1 -1
- package/dist/{update-runner-Dcjlf0aY.js → update-runner-DvZOsoQs.js} +1 -1
- package/dist/{web-DcHxbz2H.js → web-0xZpP0WA.js} +57 -57
- package/dist/{web-CuNZExQK.js → web-CAy-xQv2.js} +1 -1
- package/dist/{web-BTmqdXgt.js → web-DDiOPIdv.js} +2 -2
- package/dist/{web-DPBfrIzo.js → web-mQInjWbW.js} +1 -1
- package/dist/{whatsapp-actions-SXenaJIn.js → whatsapp-actions-BIeSWsCF.js} +23 -23
- package/dist/{workspace-DqJ5h-ZB.js → workspace-DscDraUb.js} +27 -27
- package/package.json +1 -1
- package/dist/paths-CYmyCDsE.js +0 -212
|
@@ -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-BRw8yhIW.js";
|
|
3
3
|
|
|
4
4
|
//#region src/imessage/accounts.ts
|
|
5
5
|
const { listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("imessage");
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as resolveOAuthDir } from "./paths-
|
|
1
|
+
import { a as resolveOAuthDir } from "./paths-CE7eVGHg.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-DYq1AYOv.js";
|
|
4
|
+
import { r as defaultRuntime } from "./subsystem-BjyjJF-d.js";
|
|
5
|
+
import { n as formatCliCommand } from "./env-BDXYbTKj.js";
|
|
6
6
|
import path from "node:path";
|
|
7
|
-
import
|
|
8
|
-
import fs from "node:fs/promises";
|
|
7
|
+
import fs from "node:fs";
|
|
8
|
+
import fs$1 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 (!fs.existsSync(filePath)) return null;
|
|
49
|
+
const stats = fs.statSync(filePath);
|
|
50
50
|
if (!stats.isFile() || stats.size <= 1) return null;
|
|
51
|
-
return
|
|
51
|
+
return fs.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
|
+
fs.copyFileSync(backupPath, credsPath);
|
|
70
70
|
try {
|
|
71
|
-
|
|
71
|
+
fs.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.access(resolvedAuthDir);
|
|
81
|
+
await fs$1.access(resolvedAuthDir);
|
|
82
82
|
} catch {
|
|
83
83
|
return false;
|
|
84
84
|
}
|
|
85
85
|
try {
|
|
86
|
-
const stats = await fs.stat(credsPath);
|
|
86
|
+
const stats = await fs$1.stat(credsPath);
|
|
87
87
|
if (!stats.isFile() || stats.size <= 1) return false;
|
|
88
|
-
const raw = await fs.readFile(credsPath, "utf-8");
|
|
88
|
+
const raw = await fs$1.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.readdir(authDir, { withFileTypes: true });
|
|
96
|
+
const entries = await fs$1.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.rm(path.join(authDir, entry.name), { force: true });
|
|
106
|
+
await fs$1.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.rm(resolvedAuthDir, {
|
|
117
|
+
else await fs$1.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 (!fs.existsSync(credsPath)) return {
|
|
128
128
|
e164: null,
|
|
129
129
|
jid: null
|
|
130
130
|
};
|
|
131
|
-
const raw =
|
|
131
|
+
const raw = fs.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 = fs.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 fs.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-BRw8yhIW.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-BDXYbTKj.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-CE7eVGHg.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-DYq1AYOv.js";
|
|
4
|
+
import { p as resolveDefaultAgentWorkspaceDir } from "./workspace-DscDraUb.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-J2pIBQF7.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-DLiV4Y0t.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-Co1CO8fA.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-BBmXnDnK.js";
|
|
21
21
|
import path from "node:path";
|
|
22
22
|
import fs from "node:fs/promises";
|
|
23
23
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Qt as loadAgentIdentityFromWorkspace, Zt as identityHasValues } from "./reply-
|
|
1
|
+
import { Qt as loadAgentIdentityFromWorkspace, Zt as identityHasValues } from "./reply-DUZvOCsG.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
|
|
|
@@ -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-J2pIBQF7.js";
|
|
4
4
|
|
|
5
5
|
//#region src/commands/agents.config.ts
|
|
6
6
|
function findAgentEntryIndex(list, agentId) {
|
|
@@ -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-CE7eVGHg.js";
|
|
2
|
+
import { J as logVerbose, Z as shouldLogVerbose } from "./registry-DYq1AYOv.js";
|
|
3
|
+
import "./agent-scope-CpEJ0B88.js";
|
|
4
|
+
import "./subsystem-BjyjJF-d.js";
|
|
5
|
+
import "./workspace-DscDraUb.js";
|
|
6
|
+
import "./paths-CbQV9WEg.js";
|
|
7
|
+
import "./auth-profiles-DdK1Hxaa.js";
|
|
8
|
+
import "./env-BDXYbTKj.js";
|
|
9
|
+
import "./github-copilot-token-cCYzSU9h.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-CfqDGQ9J.js";
|
|
12
|
+
import "./config-5SdHIcHU.js";
|
|
13
|
+
import "./manifest-registry-yb7sAlu4.js";
|
|
14
|
+
import "./chrome-DkaXoP36.js";
|
|
15
|
+
import "./frontmatter-CTR5f_Ez.js";
|
|
16
|
+
import "./skills-Bs0AW1g3.js";
|
|
17
17
|
import "./redact-BDMXB06K.js";
|
|
18
18
|
import "./errors-XIsvXeC-.js";
|
|
19
|
-
import "./image-ops-
|
|
19
|
+
import "./image-ops-C7CauEK8.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-01F_JM7O.js";
|
|
22
|
+
import "./thinking-BprCy23Z.js";
|
|
23
|
+
import "./message-channel-OlFBYAw8.js";
|
|
24
|
+
import "./plugins-BzmbgY7s.js";
|
|
25
|
+
import "./accounts-BRw8yhIW.js";
|
|
26
|
+
import "./accounts-3dCrO3oZ.js";
|
|
27
|
+
import "./accounts-BuZxOb3B.js";
|
|
28
|
+
import "./bindings-BsHoBLIE.js";
|
|
29
|
+
import "./tool-images-SqqWIT22.js";
|
|
30
|
+
import "./image-CuzFLQWC.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-Dy12ZAH3.js";
|
|
33
|
+
import "./local-roots-DhZz0Ybs.js";
|
|
34
|
+
import { a as resolveMediaAttachmentLocalRoots, n as createMediaAttachmentCache, o as runCapability, r as normalizeMediaAttachments, t as buildProviderRegistry, u as isAudioAttachment } from "./runner-CU9l0uJh.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-Dc7jBEOA.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-DhLHWjNU.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-CE7eVGHg.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-DYq1AYOv.js";
|
|
5
|
+
import { a as resolveAgentModelPrimary, n as resolveAgentConfig } from "./agent-scope-CpEJ0B88.js";
|
|
6
|
+
import { t as createSubsystemLogger } from "./subsystem-BjyjJF-d.js";
|
|
7
|
+
import { n as formatCliCommand, t as isTruthyEnvValue } from "./env-BDXYbTKj.js";
|
|
8
|
+
import { a as saveJsonFile, i as loadJsonFile, r as resolveCopilotApiToken, t as DEFAULT_COPILOT_API_BASE_URL } from "./github-copilot-token-cCYzSU9h.js";
|
|
9
9
|
import path from "node:path";
|
|
10
|
-
import
|
|
11
|
-
import fs from "node:fs/promises";
|
|
10
|
+
import fs from "node:fs";
|
|
11
|
+
import fs$1 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.readFile(lockPath, "utf8");
|
|
2960
|
+
const raw = await fs$1.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.mkdir(dir, { recursive: true });
|
|
2974
|
+
await fs$1.mkdir(dir, { recursive: true });
|
|
2975
2975
|
try {
|
|
2976
|
-
const realDir = await fs.realpath(dir);
|
|
2976
|
+
const realDir = await fs$1.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.stat(lockPath);
|
|
2990
|
+
const stat = await fs$1.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.rm(current.lockPath, { force: true }).catch(() => void 0);
|
|
3003
|
+
await fs$1.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.open(lockPath, "wx");
|
|
3018
|
+
const handle = await fs$1.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.rm(lockPath, { force: true }).catch(() => void 0);
|
|
3035
|
+
await fs$1.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 (fs.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
|
+
fs.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-J2pIBQF7.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-DYq1AYOv.js";
|
|
3
|
+
import { c as resolveDefaultAgentId } from "./agent-scope-CpEJ0B88.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-CE7eVGHg.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-DYq1AYOv.js";
|
|
4
|
+
import { s as resolveAgentWorkspaceDir, t as listAgentIds } from "../../agent-scope-CpEJ0B88.js";
|
|
5
|
+
import { r as defaultRuntime, t as createSubsystemLogger } from "../../subsystem-BjyjJF-d.js";
|
|
6
|
+
import "../../workspace-DscDraUb.js";
|
|
7
|
+
import { a as createDefaultDeps, i as agentCommand } from "../../unified-runner-oH9Pt-cO.js";
|
|
8
|
+
import { s as resolveStorePath } from "../../paths-CbQV9WEg.js";
|
|
9
|
+
import "../../auth-profiles-DdK1Hxaa.js";
|
|
10
|
+
import "../../env-BDXYbTKj.js";
|
|
11
|
+
import "../../github-copilot-token-cCYzSU9h.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-CfqDGQ9J.js";
|
|
14
|
+
import "../../config-5SdHIcHU.js";
|
|
15
|
+
import "../../manifest-registry-yb7sAlu4.js";
|
|
16
|
+
import "../../chrome-DkaXoP36.js";
|
|
17
|
+
import "../../frontmatter-CTR5f_Ez.js";
|
|
18
|
+
import "../../skills-Bs0AW1g3.js";
|
|
19
19
|
import "../../redact-BDMXB06K.js";
|
|
20
20
|
import "../../errors-XIsvXeC-.js";
|
|
21
|
-
import "../../image-ops-
|
|
21
|
+
import "../../image-ops-C7CauEK8.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-01F_JM7O.js";
|
|
24
|
+
import "../../thinking-BprCy23Z.js";
|
|
25
|
+
import "../../message-channel-OlFBYAw8.js";
|
|
26
|
+
import "../../plugins-BzmbgY7s.js";
|
|
27
|
+
import "../../accounts-BRw8yhIW.js";
|
|
28
|
+
import "../../accounts-3dCrO3oZ.js";
|
|
29
|
+
import "../../accounts-BuZxOb3B.js";
|
|
30
|
+
import "../../bindings-BsHoBLIE.js";
|
|
31
|
+
import "../../send-CVMyYPQw.js";
|
|
32
|
+
import "../../send-CvhXrdgS.js";
|
|
33
|
+
import "../../tool-images-SqqWIT22.js";
|
|
34
|
+
import "../../deliver-C46-vyqg.js";
|
|
35
|
+
import "../../diagnostic-rPhsBoZz.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-CuzFLQWC.js";
|
|
38
|
+
import { n as SILENT_REPLY_TOKEN } from "../../tokens-Bux9Y_xD.js";
|
|
39
|
+
import "../../send-DYj_o4_F.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-DpqZu44Z.js";
|
|
42
|
+
import "../../manager-PprhCvO_.js";
|
|
43
|
+
import "../../gemini-auth-Dy12ZAH3.js";
|
|
44
|
+
import "../../sqlite-D_mz1_-y.js";
|
|
45
|
+
import "../../retry-BBVXkKBV.js";
|
|
46
|
+
import "../../target-errors-Bbr9rlzN.js";
|
|
47
|
+
import "../../chunk-09egQapi.js";
|
|
48
|
+
import "../../markdown-tables-C-BmIap8.js";
|
|
49
|
+
import "../../local-roots-DhZz0Ybs.js";
|
|
50
|
+
import "../../ir-CTiz95Vb.js";
|
|
51
51
|
import "../../render-CDCvpfhh.js";
|
|
52
|
-
import "../../commands-registry-
|
|
53
|
-
import "../../runner-
|
|
54
|
-
import "../../skill-commands-
|
|
52
|
+
import "../../commands-registry-Bfc7Uz0o.js";
|
|
53
|
+
import "../../runner-CU9l0uJh.js";
|
|
54
|
+
import "../../skill-commands-DcVwOafC.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-B6G1jnQT.js";
|
|
57
|
+
import "../../tables-qMwbq29u.js";
|
|
58
|
+
import "../../send-DAN9hA5h.js";
|
|
59
|
+
import "../../outbound-attachment-DJldbweZ.js";
|
|
60
|
+
import "../../send-CQAKg_12.js";
|
|
61
|
+
import "../../resolve-route-C4_I4GFI.js";
|
|
62
62
|
import "../../proxy-CBJ1upuz.js";
|
|
63
|
-
import "../../replies-
|
|
63
|
+
import "../../replies-LSmuwOhA.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-CE7eVGHg.js";
|
|
2
|
+
import { y as isAgentBootstrapEvent } from "../../registry-DYq1AYOv.js";
|
|
3
|
+
import "../../subsystem-BjyjJF-d.js";
|
|
4
|
+
import { d as loadExtraBootstrapFiles, u as filterBootstrapFilesForSession } from "../../workspace-DscDraUb.js";
|
|
5
5
|
import "../../boolean-CE7i9tBR.js";
|
|
6
|
-
import "../../frontmatter-
|
|
6
|
+
import "../../frontmatter-CTR5f_Ez.js";
|
|
7
7
|
import { t as resolveHookConfig } from "../../config-ClSsetRi.js";
|
|
8
8
|
|
|
9
9
|
//#region src/hooks/bundled/bootstrap-extra-files/handler.ts
|