@symerian/symi 2.6.30 → 2.6.32
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-F62kqpkn.js → agents-BIAaMNSb.js} +4 -4
- package/dist/{agents.config-CQ90zDyI.js → agents.config-BDtgUDFp.js} +1 -1
- package/dist/{agents.config-Bra6UznM.js → agents.config-BKjYekzK.js} +1 -1
- package/dist/{audio-preflight-CPBOQV4I.js → audio-preflight-C40mKAp7.js} +4 -4
- package/dist/{audio-preflight-Bdbm4htn.js → audio-preflight-DHTaS5U1.js} +29 -29
- package/dist/{auth-choice-X1P4E-3Z.js → auth-choice-C7BrC95t.js} +1 -1
- package/dist/{auth-choice-D1uIw27C.js → auth-choice-Cw2rldnf.js} +1 -1
- package/dist/{auth-profiles-Bl9aU7fc.js → auth-profiles-DdK1Hxaa.js} +17 -17
- package/dist/{banner-BabW0wLs.js → banner-DCF8IifK.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-CX-LE2dk.js → channel-options-BaC3G5sc.js} +1 -1
- package/dist/{channel-options-C64unDdQ.js → channel-options-DHSRuD2s.js} +1 -1
- package/dist/{channel-web-GzdyP40j.js → channel-web-YXrZZHRE.js} +1 -1
- package/dist/{channels-cli-CQrhnixR.js → channels-cli-CfMJGgBp.js} +4 -4
- package/dist/{channels-cli-OymBYTkK.js → channels-cli-DODlfOu4.js} +4 -4
- package/dist/{chrome-BdQhP7bg.js → chrome-CDJYxX5a.js} +23 -23
- package/dist/{chrome-D2SKJnR7.js → chrome-DYZwl5Gv.js} +5 -5
- package/dist/{chunk-DR8ukp6r.js → chunk-09egQapi.js} +1 -1
- package/dist/{cli-zchCoTxI.js → cli-CSlDsUKl.js} +1 -1
- package/dist/{cli-C1RjRVMT.js → cli-CVqXnzze.js} +1 -1
- package/dist/{command-registry-D9xmmn9v.js → command-registry-ajP42kpE.js} +9 -9
- package/dist/{commands-registry-DIakZUZb.js → commands-registry-Bfc7Uz0o.js} +4 -4
- package/dist/{completion-cli-CfhJhArh.js → completion-cli-Dui7LK9s.js} +1 -1
- package/dist/{completion-cli-CdMbiAwX.js → completion-cli-zokW-yVf.js} +2 -2
- package/dist/{config-CvmE3Yx1.js → config-5SdHIcHU.js} +12 -12
- package/dist/{config-cli-BWhToRSW.js → config-cli-BjXnB1c7.js} +1 -1
- package/dist/{config-cli-De0w9QFu.js → config-cli-BxSBpwuL.js} +1 -1
- package/dist/{configure-iCtE2gdv.js → configure-CIFt3G-c.js} +3 -3
- package/dist/{configure-DBPxwVXT.js → configure-De-0b4bB.js} +3 -3
- package/dist/control-ui/js/models.js +2 -2
- package/dist/{deliver-C-37cZUe.js → deliver-BH0l3UKW.js} +1 -1
- package/dist/{deliver-BD6kFk6p.js → deliver-dODxSv3b.js} +20 -20
- package/dist/{diagnostic-spWOtH_g.js → diagnostic-rPhsBoZz.js} +1 -1
- package/dist/{doctor-completion-Cuy1NwzL.js → doctor-completion-DaGKVo6p.js} +1 -1
- package/dist/{doctor-completion-htc4kMhg.js → doctor-completion-kr-VbXG-.js} +1 -1
- package/dist/entry.js +1 -1
- package/dist/{env-xmBFQPBP.js → env-BDXYbTKj.js} +1 -1
- package/dist/extensionAPI.js +6 -6
- package/dist/{frontmatter-CV0YkjoY.js → frontmatter-CTR5f_Ez.js} +2 -2
- package/dist/{gateway-cli-DxSUgxx3.js → gateway-cli-7pMi8rn1.js} +9 -9
- package/dist/{gateway-cli-pIBNUJhN.js → gateway-cli-DdbomLMt.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-B5Iw-tYt.js → glass-ui-ws-vx0iMfPn.js} +7 -7
- package/dist/{glass-ui-ws-BVcaUJ4x.js → glass-ui-ws-z-ryIbt7.js} +7 -7
- package/dist/{health-qWkLoxz7.js → health-BNxdveY8.js} +1 -1
- package/dist/{health-DK1EhshZ.js → health-pFcca1cU.js} +1 -1
- package/dist/{hooks-cli-QmJBRt0j.js → hooks-cli-DefzmbZl.js} +2 -2
- package/dist/{hooks-cli-Bt_pfMq8.js → hooks-cli-Dqe7WVzD.js} +2 -2
- package/dist/{image-DcpMiprB.js → image-CHzdaNJ4.js} +1 -1
- package/dist/{image-CE0mENPo.js → image-CXu8W39c.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-CBAKijCe.js → models-c9cOxxrP.js} +2 -2
- package/dist/{models-cli-CtWHHvR0.js → models-cli-BhOA86hd.js} +3 -3
- package/dist/{models-cli-DkNjxGZ8.js → models-cli-Cosjljgg.js} +2 -2
- package/dist/{onboard-BmK2-tfb.js → onboard-C4DXGi07.js} +2 -2
- package/dist/{onboard-wJCi24zf.js → onboard-Dadg5mWZ.js} +2 -2
- package/dist/{onboard-channels-CnNA3U8_.js → onboard-channels-BAEFSSqU.js} +1 -1
- package/dist/{onboard-channels-CcoMVcOs.js → onboard-channels-BjUx6cZ7.js} +1 -1
- package/dist/{onboarding-GGE9UgcE.js → onboarding-Be8-Muma.js} +3 -3
- package/dist/{onboarding-Cs7XncoX.js → onboarding-BesMJD5M.js} +3 -3
- package/dist/{onboarding.finalize-BEMefoBu.js → onboarding.finalize-BdFKvepX.js} +6 -6
- package/dist/{onboarding.finalize-CawqY9YT.js → onboarding.finalize-Cbo7t2w6.js} +5 -5
- 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-eCY-k0yS.js → pi-embedded-CziuxRtW.js} +19 -19
- package/dist/{pi-embedded-helpers-B8kqLWns.js → pi-embedded-helpers-lgx_U5KS.js} +4 -4
- package/dist/{pi-embedded-helpers-Pnxzi8V5.js → pi-embedded-helpers-pubKo8HQ.js} +73 -73
- package/dist/{plugin-registry-C-RHl6z7.js → plugin-registry-BkFixq63.js} +1 -1
- package/dist/{plugin-registry-BqSezGzv.js → plugin-registry-Ls_YGsWz.js} +1 -1
- package/dist/plugin-sdk/{channel-web-BOFr3AaP.js → channel-web-D4P9MkFu.js} +1 -1
- package/dist/plugin-sdk/index.js +2 -2
- package/dist/plugin-sdk/{reply-B7rSYofo.js → reply-BVs4oalQ.js} +5 -5
- package/dist/plugin-sdk/{web-iaHlqNQD.js → web-DiQTcviv.js} +2 -2
- package/dist/{plugins-Bkr5ZdYs.js → plugins-BzmbgY7s.js} +9 -9
- package/dist/{plugins-cli-D5l8DCUo.js → plugins-cli-CJLJsr_L.js} +2 -2
- package/dist/{plugins-cli-DIKVN1j-.js → plugins-cli-DXiakDnC.js} +2 -2
- package/dist/{program-DKp_gWvH.js → program-CqxmOFY5.js} +7 -7
- package/dist/{program-context-CJO5zWl7.js → program-context-CWoc-4O6.js} +17 -17
- package/dist/{prompt-select-styled-Drbf4MLf.js → prompt-select-styled-C5YCowXp.js} +4 -4
- package/dist/{prompt-select-styled-CuDVrio_.js → prompt-select-styled-DKTE77Rw.js} +4 -4
- package/dist/{provider-auth-helpers-ku70HLId.js → provider-auth-helpers-B_Rtgt-w.js} +1 -1
- package/dist/{provider-auth-helpers-D0JrH_QE.js → provider-auth-helpers-Bi5oeREh.js} +1 -1
- package/dist/{push-apns-DZvXSHuB.js → push-apns-Bmd6SdxC.js} +1 -1
- package/dist/{push-apns-DWLiMsGQ.js → push-apns-BzIW-JHE.js} +1 -1
- package/dist/{pw-ai-BA-fJnJc.js → pw-ai-B5asscAD.js} +11 -11
- package/dist/{pw-ai-1htA-NnS.js → pw-ai-De-KR9_s.js} +1 -1
- package/dist/{qmd-manager-BKu9rOuB.js → qmd-manager-iDLSiI4Z.js} +7 -7
- package/dist/{register.agent-CW-Jt26a.js → register.agent-Vc2Bu3J4.js} +5 -5
- package/dist/{register.agent-Dr-AvNVj.js → register.agent-kKtKgmcO.js} +6 -6
- package/dist/{register.configure-D3_5DZTq.js → register.configure-BnNPTLBI.js} +6 -6
- package/dist/{register.configure-CPykN4LB.js → register.configure-D-o-geWg.js} +6 -6
- package/dist/{register.maintenance-BOxfAudK.js → register.maintenance-BhhUMTAr.js} +7 -7
- package/dist/{register.maintenance-BValTiSe.js → register.maintenance-Ea70NNls.js} +8 -8
- package/dist/{register.message-lbfcALgz.js → register.message-C9zVQOWl.js} +2 -2
- package/dist/{register.message-BzVaP85q.js → register.message-CdCHhVND.js} +2 -2
- package/dist/{register.onboard-B_CORRMq.js → register.onboard-1HGg8A_B.js} +4 -4
- package/dist/{register.onboard-CxhJjGFr.js → register.onboard-CbGEztLT.js} +4 -4
- package/dist/{register.setup-DeT-WyJj.js → register.setup-8LYTLZMG.js} +4 -4
- package/dist/{register.setup-CYeKu0ru.js → register.setup-BRKstpuL.js} +4 -4
- package/dist/{register.status-health-sessions-BrNEfd3r.js → register.status-health-sessions-BLA4yUC4.js} +3 -3
- package/dist/{register.status-health-sessions-CYwrV6QO.js → register.status-health-sessions-BtGRpngz.js} +3 -3
- package/dist/{register.subclis-BCcY1GJC.js → register.subclis-FAdASegj.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-BNLTgD0A.js → reply-C68F3IMq.js} +5 -5
- 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-BVSVpxZ3.js → run-main-DqKSUzps.js} +14 -14
- package/dist/{runner-BcQ0sF9T.js → runner-DUBExAb5.js} +1 -1
- package/dist/{runner-BnAUcMiq.js → runner-WAG0M5s9.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-BhRjuKEM.js → server-methods-B4IR7jcD.js} +7 -7
- package/dist/{server-methods-BYcfPp30.js → server-methods-n5oCz2e0.js} +7 -7
- package/dist/{server-node-events-BEzZn2VI.js → server-node-events---jWWBKN.js} +2 -2
- package/dist/{server-node-events-BsPi-QDx.js → server-node-events-C3hHerD3.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-BZgA_AUW.js → status-8CbQSAEF.js} +1 -1
- package/dist/{status-C7VswIJF.js → status-ClvXAaHZ.js} +1 -1
- package/dist/{status-BB7l5YGy.js → status-CwhHbhUv.js} +2 -2
- package/dist/{status-D9MVzUtM.js → status-ITRlj7e_.js} +2 -2
- package/dist/{store-Ea3zM6xK.js → store-01F_JM7O.js} +6 -6
- package/dist/{subagent-registry-CT87UyVy.js → subagent-registry-BXI3DyAX.js} +5 -5
- 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-LSPKHmvx.js → unified-runner-Dy2eq7ZO.js} +223 -223
- package/dist/{update-cli-DEbsukOW.js → update-cli-0aSAmmmj.js} +8 -8
- package/dist/{update-cli-Dyg_WetV.js → update-cli-CfKfjAnO.js} +7 -7
- package/dist/{update-runner-3-pTGczW.js → update-runner-C17bqGvO.js} +1 -1
- package/dist/{update-runner-DYuIPErv.js → update-runner-e_ChofHM.js} +1 -1
- package/dist/{web-Bu_faeV-.js → web-BTiGD3po.js} +6 -6
- package/dist/{web-DyvSF1Pu.js → web-CP9nUIj0.js} +57 -57
- package/dist/{web-Q47zU0qb.js → web-Cih6rPbV.js} +2 -2
- package/dist/{web-CB7FYstW.js → web-Dr9gUjHz.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-BXI3DyAX.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-BjUx6cZ7.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-BDtgUDFp.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-C7BrC95t.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-BXI3DyAX.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-C68F3IMq.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-lgx_U5KS.js";
|
|
16
16
|
import "./config-BmV60pPT.js";
|
|
17
17
|
import "./manifest-registry-D-mTF1cj.js";
|
|
18
|
-
import "./chrome-
|
|
18
|
+
import "./chrome-CDJYxX5a.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-CHzdaNJ4.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-DUBExAb5.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-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-pubKo8HQ.js";
|
|
12
|
+
import "./config-5SdHIcHU.js";
|
|
13
|
+
import "./manifest-registry-yb7sAlu4.js";
|
|
14
|
+
import "./chrome-DYZwl5Gv.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-CXu8W39c.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-WAG0M5s9.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-Bi5oeREh.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-B_Rtgt-w.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-BXI3DyAX.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-Dy2eq7ZO.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-pubKo8HQ.js";
|
|
14
|
+
import "../../config-5SdHIcHU.js";
|
|
15
|
+
import "../../manifest-registry-yb7sAlu4.js";
|
|
16
|
+
import "../../chrome-DYZwl5Gv.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-dODxSv3b.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-CXu8W39c.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-WAG0M5s9.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
|