@symerian/symi 2.6.11 → 2.6.12
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-Cz2na8n6.js} +4 -4
- package/dist/{agents.config-GCucbcBy.js → agents.config-BeOO73lT.js} +1 -1
- package/dist/{agents.config-BO1N5Z_6.js → agents.config-BoP9QtHX.js} +1 -1
- package/dist/{audio-preflight-CjV36MUe.js → audio-preflight-DHTaS5U1.js} +29 -29
- package/dist/{auth-choice-i7tTgbDd.js → auth-choice-D-czhFdL.js} +1 -1
- package/dist/{auth-choice-C1sul2-I.js → auth-choice-DTe3UF8T.js} +1 -1
- package/dist/{auth-profiles-Bl9aU7fc.js → auth-profiles-DdK1Hxaa.js} +17 -17
- package/dist/{banner-VbhMdl-b.js → banner-CSZ39UAE.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-Esf0QB4M.js → channel-options-CySdnaWJ.js} +1 -1
- package/dist/{channel-options-CsXOvqAc.js → channel-options-FlKM6QP8.js} +1 -1
- package/dist/{channel-web-DDC84nZg.js → channel-web-BEFE-0qE.js} +1 -1
- package/dist/{channels-cli-DomEe8uI.js → channels-cli-D6zAPAP3.js} +4 -4
- package/dist/{channels-cli-C989dAD4.js → channels-cli-RkhiaITs.js} +4 -4
- package/dist/{chrome-DRHvMBbb.js → chrome-DYZwl5Gv.js} +21 -21
- package/dist/{chunk-DR8ukp6r.js → chunk-09egQapi.js} +1 -1
- package/dist/{cli-RXswESw1.js → cli-Bjw4Mr_t.js} +1 -1
- package/dist/{cli-CPRCkEdK.js → cli-v8nSF61Z.js} +1 -1
- package/dist/{command-registry-DwBw5-nh.js → command-registry-CojVJ8At.js} +9 -9
- package/dist/{commands-registry-DIakZUZb.js → commands-registry-Bfc7Uz0o.js} +4 -4
- package/dist/{completion-cli-C43sjF75.js → completion-cli-D3N7Bpqe.js} +2 -2
- package/dist/{completion-cli-Cwx8MtF9.js → completion-cli-rD9RSIqQ.js} +1 -1
- package/dist/{config-CvmE3Yx1.js → config-5SdHIcHU.js} +12 -12
- package/dist/{config-cli-DG0xBZhs.js → config-cli-CCG1Hizl.js} +1 -1
- package/dist/{config-cli-CkkIU7AY.js → config-cli-DFYbGvDQ.js} +1 -1
- package/dist/{configure-DlVtomYJ.js → configure-DdWNM_S-.js} +3 -3
- package/dist/{configure-nxnXIUVI.js → configure-v2ocSUJ3.js} +3 -3
- package/dist/{deliver-UMgfGLxW.js → deliver-dODxSv3b.js} +20 -20
- package/dist/{diagnostic-spWOtH_g.js → diagnostic-rPhsBoZz.js} +1 -1
- package/dist/{doctor-completion-Dd5P0i9L.js → doctor-completion-F_AI3hun.js} +1 -1
- package/dist/{doctor-completion-CWr51Q4O.js → doctor-completion-vTHV1Opp.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-B1h1FhD-.js → gateway-cli-DLaTC2ps.js} +9 -9
- package/dist/{gateway-cli-BBJjWKyu.js → gateway-cli-Di1ExMCg.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-Bk01KSVI.js → glass-ui-ws-Bfn56Lok.js} +7 -7
- package/dist/{glass-ui-ws-UewDPjVh.js → glass-ui-ws-CbaWZjN3.js} +7 -7
- package/dist/{health-BiipZUOd.js → health-CqQIZeIm.js} +1 -1
- package/dist/{health-Dzi6letr.js → health-DbJOe12X.js} +1 -1
- package/dist/{hooks-cli-DxRXaSHR.js → hooks-cli-B9pOqbW_.js} +2 -2
- package/dist/{hooks-cli-BdelOAPH.js → hooks-cli-D60an6P1.js} +2 -2
- package/dist/{image-CK4oZUJJ.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-cli-CF0KZtK4.js → models-cli-4EwiSo4p.js} +2 -2
- package/dist/{models-cli-D5KE-evn.js → models-cli-Du60Ivll.js} +3 -3
- package/dist/{models-DUrbBEOU.js → models-hMbDU9ot.js} +2 -2
- package/dist/{onboard-DK-oOqRl.js → onboard-5yW9nvG6.js} +2 -2
- package/dist/{onboard-Bizq_LAS.js → onboard-DJqYAPxi.js} +2 -2
- package/dist/{onboard-channels-B6yLPqH5.js → onboard-channels-B39Hvc_L.js} +1 -1
- package/dist/{onboard-channels-DSZzjOo1.js → onboard-channels-BSzHnDcL.js} +1 -1
- package/dist/{onboarding-DGSCNnGY.js → onboarding-C7g_ZvRW.js} +3 -3
- package/dist/{onboarding-CkWWIQA7.js → onboarding-D7Y_e4zX.js} +3 -3
- package/dist/{onboarding.finalize-Dj0noUgo.js → onboarding.finalize-C3rqwVvV.js} +5 -5
- package/dist/{onboarding.finalize-BMGwhjIR.js → onboarding.finalize-OYNmD4ly.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-Bp_9g-wj.js} +14 -4
- package/dist/{pi-embedded-helpers-BU8EZuwx.js → pi-embedded-helpers-pubKo8HQ.js} +73 -73
- package/dist/{plugin-registry-BcgpVdtC.js → plugin-registry-C4lpIiGz.js} +1 -1
- package/dist/{plugin-registry-D8PAS3Sx.js → plugin-registry-CUjBEHAz.js} +1 -1
- package/dist/plugin-sdk/{channel-web-DgNOPxkV.js → channel-web-CQNBQiKF.js} +1 -1
- package/dist/plugin-sdk/index.js +2 -2
- package/dist/plugin-sdk/{reply-DJN8Xcq2.js → reply-S1JHdV1Y.js} +14 -4
- package/dist/plugin-sdk/{web-HkDBSFef.js → web-GZFVijBY.js} +2 -2
- package/dist/{plugins-Bkr5ZdYs.js → plugins-BzmbgY7s.js} +9 -9
- package/dist/{plugins-cli-B_ln22KG.js → plugins-cli-1pbqkgc2.js} +2 -2
- package/dist/{plugins-cli-Bcmq1fs1.js → plugins-cli-NpSGD1FH.js} +2 -2
- package/dist/{program-C_rxRb1M.js → program-CvHqOriK.js} +7 -7
- package/dist/{program-context-BqH8IVSK.js → program-context-gkaZBN4U.js} +17 -17
- package/dist/{prompt-select-styled-D8WAeDQY.js → prompt-select-styled-DNaDChFa.js} +4 -4
- package/dist/{prompt-select-styled-DMRbQO0q.js → prompt-select-styled-We9EmwdJ.js} +4 -4
- package/dist/{provider-auth-helpers-DiuVmtmQ.js → provider-auth-helpers-BD1qo8xm.js} +1 -1
- package/dist/{provider-auth-helpers-DstpUAya.js → provider-auth-helpers-aA2Nm1dz.js} +1 -1
- package/dist/{push-apns-DKU4DgbI.js → push-apns-Cp9F-674.js} +1 -1
- package/dist/{push-apns-be2xWY22.js → push-apns-DseyExUl.js} +1 -1
- package/dist/{pw-ai-BTgmcNVp.js → pw-ai-B5asscAD.js} +11 -11
- package/dist/{qmd-manager-BKu9rOuB.js → qmd-manager-iDLSiI4Z.js} +7 -7
- package/dist/{register.agent-Dcd_oFsG.js → register.agent-BQ2_6Nm3.js} +6 -6
- package/dist/{register.agent-k7WxtPOd.js → register.agent-CBYb5PmK.js} +5 -5
- package/dist/{register.configure-DMHVPA-T.js → register.configure-CjLPSjMa.js} +6 -6
- package/dist/{register.configure-BOgCp-h4.js → register.configure-o-37DMn9.js} +6 -6
- package/dist/{register.maintenance-Bsbgpe-Z.js → register.maintenance-B119maJ4.js} +7 -7
- package/dist/{register.maintenance-BdBlQQ6G.js → register.maintenance-B5VGGPfr.js} +8 -8
- package/dist/{register.message-DAyubW1M.js → register.message-C0vKP2cl.js} +2 -2
- package/dist/{register.message-BE0gDUQZ.js → register.message-Dqit98AR.js} +2 -2
- package/dist/{register.onboard-CqavyaNa.js → register.onboard-BHj8YY-f.js} +4 -4
- package/dist/{register.onboard-CTKa4O9W.js → register.onboard-DfCy6ZXS.js} +4 -4
- package/dist/{register.setup-DpkI2F6r.js → register.setup-BO4Kdk1x.js} +4 -4
- package/dist/{register.setup-BO3CD8Pz.js → register.setup-CUK-FwzD.js} +4 -4
- package/dist/{register.status-health-sessions-C5Qa-DmU.js → register.status-health-sessions-BIXO_68y.js} +3 -3
- package/dist/{register.status-health-sessions-ClDUpT3j.js → register.status-health-sessions-CvcX-h97.js} +3 -3
- package/dist/{register.subclis-Bvil7KuO.js → register.subclis-B0T9tMmL.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-DPaH7oQp.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-DLFhMwmE.js} +14 -14
- package/dist/{runner-CKYly94z.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-VC0ahxUh.js → server-methods-CCAxdyvF.js} +7 -7
- package/dist/{server-methods-BRdl4pcP.js → server-methods-DMIR4YTm.js} +7 -7
- package/dist/{server-node-events-Bq2fr8Z3.js → server-node-events-BQ7wsfbY.js} +2 -2
- package/dist/{server-node-events-Y5xFGvsj.js → server-node-events-BvOiDPkg.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-DOCg6R55.js → status-BPGU6b1g.js} +2 -2
- package/dist/{status-DNJBoKuu.js → status-CpCo3PvK.js} +1 -1
- package/dist/{status-CRCD2RpZ.js → status-D4RE4eR4.js} +2 -2
- package/dist/{status-BxNHXm7T.js → status-gpmp_Ca5.js} +1 -1
- package/dist/{store-Ea3zM6xK.js → store-01F_JM7O.js} +6 -6
- package/dist/{subagent-registry-7wPEZQKK.js → subagent-registry-CzBf7A_o.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-CnKhgGr-.js} +236 -226
- package/dist/{update-cli-CcyCWvCB.js → update-cli-16QmlAYc.js} +8 -8
- package/dist/{update-cli-FOE23Lo4.js → update-cli-B8lzwxOj.js} +7 -7
- package/dist/{update-runner-CJg-OANA.js → update-runner-CEjq0Uxs.js} +1 -1
- package/dist/{update-runner-Dcjlf0aY.js → update-runner-DLCpL3Pj.js} +1 -1
- package/dist/{web-BTmqdXgt.js → web-BPQuKyCM.js} +2 -2
- package/dist/{web-CuNZExQK.js → web-BiZqjSRz.js} +1 -1
- package/dist/{web-DcHxbz2H.js → web-CQ7OlTVM.js} +57 -57
- package/dist/{web-DPBfrIzo.js → web-D7tHOzz3.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
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "./paths-Cqn-zk3M.js";
|
|
3
3
|
import { B as theme, P as setVerbose, T as toWhatsappJid, l as escapeRegExp, m as normalizeE164, n as assertWebChannel, z as isRich } from "./utils-B-0b9bGM.js";
|
|
4
4
|
import "./thinking-EAliFiVK.js";
|
|
5
|
-
import { Lt as createDefaultDeps, bt as resolveCommitHash, t as getReplyFromConfig } from "./reply-
|
|
5
|
+
import { Lt as createDefaultDeps, bt as resolveCommitHash, t as getReplyFromConfig } from "./reply-DPaH7oQp.js";
|
|
6
6
|
import "./registry-Cja8eT7G.js";
|
|
7
7
|
import { f as defaultRuntime, r as enableConsoleCapture, u as visibleWidth } from "./subsystem-D9vIQve0.js";
|
|
8
8
|
import { n as runExec, t as runCommandWithTimeout } from "./exec-CWkblSrI.js";
|
|
@@ -103,7 +103,7 @@ import "./pi-tools.policy-CIDBbw6x.js";
|
|
|
103
103
|
import "./control-service-Bz7rxLWq.js";
|
|
104
104
|
import "./stagger-BUClb97_.js";
|
|
105
105
|
import "./channel-selection-DuWs0Aak.js";
|
|
106
|
-
import { r as waitForever, t as monitorWebChannel } from "./channel-web-
|
|
106
|
+
import { r as waitForever, t as monitorWebChannel } from "./channel-web-BEFE-0qE.js";
|
|
107
107
|
import "./outbound-DB5Zus0-.js";
|
|
108
108
|
import "./session-DIBTkyvE.js";
|
|
109
109
|
import "./login-dIlDkG4X.js";
|
|
@@ -112,10 +112,10 @@ import { t as ensureSymiCliOnPath } from "./path-env-MnzRq6nD.js";
|
|
|
112
112
|
import { t as assertSupportedRuntime } from "./runtime-guard-B37eizu-.js";
|
|
113
113
|
import "./ports-BX0kKI0g.js";
|
|
114
114
|
import { a as hasFlag, i as getVerboseFlag, n as getCommandPath, o as hasHelpOrVersion, s as hasRootVersionAlias } from "./argv-C6ovOie2.js";
|
|
115
|
-
import { i as getCoreCliCommandsWithSubcommands, n as setProgramContext, o as registerProgramCommands, s as getSubCliCommandsWithSubcommands } from "./program-context-
|
|
115
|
+
import { i as getCoreCliCommandsWithSubcommands, n as setProgramContext, o as registerProgramCommands, s as getSubCliCommandsWithSubcommands } from "./program-context-gkaZBN4U.js";
|
|
116
116
|
import "./catalog-RiADx7MA.js";
|
|
117
|
-
import "./plugin-registry-
|
|
118
|
-
import { n as resolveCliChannelOptions } from "./channel-options-
|
|
117
|
+
import "./plugin-registry-C4lpIiGz.js";
|
|
118
|
+
import { n as resolveCliChannelOptions } from "./channel-options-CySdnaWJ.js";
|
|
119
119
|
import process$1 from "node:process";
|
|
120
120
|
import { fileURLToPath } from "node:url";
|
|
121
121
|
import { Command } from "commander";
|
|
@@ -515,7 +515,7 @@ function registerPreActionHooks(program, programVersion) {
|
|
|
515
515
|
commandPath
|
|
516
516
|
});
|
|
517
517
|
if (PLUGIN_REQUIRED_COMMANDS.has(commandPath[0])) {
|
|
518
|
-
const { ensurePluginRegistryLoaded } = await import("./plugin-registry-
|
|
518
|
+
const { ensurePluginRegistryLoaded } = await import("./plugin-registry-C4lpIiGz.js").then((n) => n.n);
|
|
519
519
|
ensurePluginRegistryLoaded();
|
|
520
520
|
}
|
|
521
521
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { I as resolveUserPath, J as logVerbose, Z as shouldLogVerbose } from "./registry-
|
|
2
|
-
import { _ as maxBytesForKind, a as hasAlphaChannel, c as detectMime, l as extensionForMime, o as optimizeImageToPng, r as convertHeicToJpeg, s as resizeToJpeg, v as mediaKindFromMime, x as readLocalFileSafely, y as SafeOpenError } from "./image-ops-
|
|
3
|
-
import { a as chunkText } from "./chunk-
|
|
4
|
-
import { i as fetchRemoteMedia, n as getDefaultMediaLocalRoots } from "./local-roots-
|
|
1
|
+
import { I as resolveUserPath, J as logVerbose, Z as shouldLogVerbose } from "./registry-DYq1AYOv.js";
|
|
2
|
+
import { _ as maxBytesForKind, a as hasAlphaChannel, c as detectMime, l as extensionForMime, o as optimizeImageToPng, r as convertHeicToJpeg, s as resizeToJpeg, v as mediaKindFromMime, x as readLocalFileSafely, y as SafeOpenError } from "./image-ops-C7CauEK8.js";
|
|
3
|
+
import { a as chunkText } from "./chunk-09egQapi.js";
|
|
4
|
+
import { i as fetchRemoteMedia, n as getDefaultMediaLocalRoots } from "./local-roots-DhZz0Ybs.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import fs from "node:fs/promises";
|
|
7
7
|
import { fileURLToPath } from "node:url";
|
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
import "./paths-
|
|
2
|
-
import "./registry-
|
|
3
|
-
import { c as resolveDefaultAgentId, s as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
4
|
-
import "./subsystem-
|
|
5
|
-
import "./workspace-
|
|
6
|
-
import { t as runAgentTurn } from "./unified-runner-
|
|
7
|
-
import "./paths-
|
|
8
|
-
import "./auth-profiles-
|
|
9
|
-
import "./env-
|
|
10
|
-
import "./github-copilot-token-
|
|
1
|
+
import "./paths-CE7eVGHg.js";
|
|
2
|
+
import "./registry-DYq1AYOv.js";
|
|
3
|
+
import { c as resolveDefaultAgentId, s as resolveAgentWorkspaceDir } from "./agent-scope-CpEJ0B88.js";
|
|
4
|
+
import "./subsystem-BjyjJF-d.js";
|
|
5
|
+
import "./workspace-DscDraUb.js";
|
|
6
|
+
import { t as runAgentTurn } from "./unified-runner-CnKhgGr-.js";
|
|
7
|
+
import "./paths-CbQV9WEg.js";
|
|
8
|
+
import "./auth-profiles-DdK1Hxaa.js";
|
|
9
|
+
import "./env-BDXYbTKj.js";
|
|
10
|
+
import "./github-copilot-token-cCYzSU9h.js";
|
|
11
11
|
import "./boolean-CE7i9tBR.js";
|
|
12
|
-
import "./pi-embedded-helpers-
|
|
13
|
-
import "./config-
|
|
14
|
-
import "./manifest-registry-
|
|
15
|
-
import "./chrome-
|
|
16
|
-
import "./frontmatter-
|
|
17
|
-
import "./skills-
|
|
12
|
+
import "./pi-embedded-helpers-pubKo8HQ.js";
|
|
13
|
+
import "./config-5SdHIcHU.js";
|
|
14
|
+
import "./manifest-registry-yb7sAlu4.js";
|
|
15
|
+
import "./chrome-DYZwl5Gv.js";
|
|
16
|
+
import "./frontmatter-CTR5f_Ez.js";
|
|
17
|
+
import "./skills-Bs0AW1g3.js";
|
|
18
18
|
import "./redact-BDMXB06K.js";
|
|
19
19
|
import "./errors-XIsvXeC-.js";
|
|
20
|
-
import "./image-ops-
|
|
20
|
+
import "./image-ops-C7CauEK8.js";
|
|
21
21
|
import "./ssrf-DpUUUgkK.js";
|
|
22
|
-
import "./store-
|
|
23
|
-
import "./thinking-
|
|
24
|
-
import "./message-channel-
|
|
25
|
-
import "./plugins-
|
|
26
|
-
import "./accounts-
|
|
27
|
-
import "./accounts-
|
|
28
|
-
import "./accounts-
|
|
29
|
-
import "./bindings-
|
|
30
|
-
import "./send-
|
|
31
|
-
import "./send-
|
|
32
|
-
import "./tool-images-
|
|
33
|
-
import "./deliver-
|
|
34
|
-
import "./diagnostic-
|
|
22
|
+
import "./store-01F_JM7O.js";
|
|
23
|
+
import "./thinking-BprCy23Z.js";
|
|
24
|
+
import "./message-channel-OlFBYAw8.js";
|
|
25
|
+
import "./plugins-BzmbgY7s.js";
|
|
26
|
+
import "./accounts-BRw8yhIW.js";
|
|
27
|
+
import "./accounts-3dCrO3oZ.js";
|
|
28
|
+
import "./accounts-BuZxOb3B.js";
|
|
29
|
+
import "./bindings-BsHoBLIE.js";
|
|
30
|
+
import "./send-CVMyYPQw.js";
|
|
31
|
+
import "./send-CvhXrdgS.js";
|
|
32
|
+
import "./tool-images-SqqWIT22.js";
|
|
33
|
+
import "./deliver-dODxSv3b.js";
|
|
34
|
+
import "./diagnostic-rPhsBoZz.js";
|
|
35
35
|
import "./diagnostic-session-state-Zw87xFym.js";
|
|
36
|
-
import "./image-
|
|
37
|
-
import "./tokens-
|
|
38
|
-
import "./send-
|
|
36
|
+
import "./image-CXu8W39c.js";
|
|
37
|
+
import "./tokens-Bux9Y_xD.js";
|
|
38
|
+
import "./send-DYj_o4_F.js";
|
|
39
39
|
import "./pi-model-discovery-Bv5YDJc8.js";
|
|
40
|
-
import "./reply-prefix-
|
|
41
|
-
import "./manager-
|
|
42
|
-
import "./gemini-auth-
|
|
43
|
-
import "./sqlite-
|
|
44
|
-
import "./retry-
|
|
45
|
-
import "./target-errors-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./markdown-tables-
|
|
48
|
-
import "./local-roots-
|
|
49
|
-
import "./ir-
|
|
40
|
+
import "./reply-prefix-DpqZu44Z.js";
|
|
41
|
+
import "./manager-PprhCvO_.js";
|
|
42
|
+
import "./gemini-auth-Dy12ZAH3.js";
|
|
43
|
+
import "./sqlite-D_mz1_-y.js";
|
|
44
|
+
import "./retry-BBVXkKBV.js";
|
|
45
|
+
import "./target-errors-Bbr9rlzN.js";
|
|
46
|
+
import "./chunk-09egQapi.js";
|
|
47
|
+
import "./markdown-tables-C-BmIap8.js";
|
|
48
|
+
import "./local-roots-DhZz0Ybs.js";
|
|
49
|
+
import "./ir-CTiz95Vb.js";
|
|
50
50
|
import "./render-CDCvpfhh.js";
|
|
51
|
-
import "./commands-registry-
|
|
52
|
-
import "./runner-
|
|
53
|
-
import "./skill-commands-
|
|
51
|
+
import "./commands-registry-Bfc7Uz0o.js";
|
|
52
|
+
import "./runner-WAG0M5s9.js";
|
|
53
|
+
import "./skill-commands-DcVwOafC.js";
|
|
54
54
|
import "./fetch-Bso4i15F.js";
|
|
55
|
-
import "./channel-activity-
|
|
56
|
-
import "./tables-
|
|
57
|
-
import "./send-
|
|
58
|
-
import "./outbound-attachment-
|
|
59
|
-
import "./send-
|
|
60
|
-
import "./resolve-route-
|
|
55
|
+
import "./channel-activity-B6G1jnQT.js";
|
|
56
|
+
import "./tables-qMwbq29u.js";
|
|
57
|
+
import "./send-DAN9hA5h.js";
|
|
58
|
+
import "./outbound-attachment-DJldbweZ.js";
|
|
59
|
+
import "./send-CQAKg_12.js";
|
|
60
|
+
import "./resolve-route-C4_I4GFI.js";
|
|
61
61
|
import "./proxy-CBJ1upuz.js";
|
|
62
|
-
import "./replies-
|
|
62
|
+
import "./replies-LSmuwOhA.js";
|
|
63
63
|
|
|
64
64
|
//#region src/hooks/llm-slug-generator.ts
|
|
65
65
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { s as resolveStateDir } from "./paths-
|
|
2
|
-
import { dt as resolvePreferredSymiTmpDir } from "./registry-
|
|
3
|
-
import { s as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
4
|
-
import { S as logWarn } from "./workspace-
|
|
5
|
-
import { c as detectMime, l as extensionForMime } from "./image-ops-
|
|
1
|
+
import { s as resolveStateDir } from "./paths-CE7eVGHg.js";
|
|
2
|
+
import { dt as resolvePreferredSymiTmpDir } from "./registry-DYq1AYOv.js";
|
|
3
|
+
import { s as resolveAgentWorkspaceDir } from "./agent-scope-CpEJ0B88.js";
|
|
4
|
+
import { S as logWarn } from "./workspace-DscDraUb.js";
|
|
5
|
+
import { c as detectMime, l as extensionForMime } from "./image-ops-C7CauEK8.js";
|
|
6
6
|
import { a as resolvePinnedHostnameWithPolicy, n as closeDispatcher, r as createPinnedDispatcher, t as SsrFBlockedError } from "./ssrf-DpUUUgkK.js";
|
|
7
7
|
import { t as bindAbortRelay } from "./fetch-timeout-DL3f_O53.js";
|
|
8
8
|
import path from "node:path";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import "./paths-
|
|
2
|
-
import { G as danger, K as info, Q as success } from "./registry-
|
|
3
|
-
import "./agent-scope-
|
|
4
|
-
import { r as defaultRuntime } from "./subsystem-
|
|
5
|
-
import { x as logInfo } from "./workspace-
|
|
6
|
-
import "./auth-profiles-
|
|
7
|
-
import "./env-
|
|
8
|
-
import "./github-copilot-token-
|
|
1
|
+
import "./paths-CE7eVGHg.js";
|
|
2
|
+
import { G as danger, K as info, Q as success } from "./registry-DYq1AYOv.js";
|
|
3
|
+
import "./agent-scope-CpEJ0B88.js";
|
|
4
|
+
import { r as defaultRuntime } from "./subsystem-BjyjJF-d.js";
|
|
5
|
+
import { x as logInfo } from "./workspace-DscDraUb.js";
|
|
6
|
+
import "./auth-profiles-DdK1Hxaa.js";
|
|
7
|
+
import "./env-BDXYbTKj.js";
|
|
8
|
+
import "./github-copilot-token-cCYzSU9h.js";
|
|
9
9
|
import "./boolean-CE7i9tBR.js";
|
|
10
|
-
import { n as loadConfig } from "./config-
|
|
11
|
-
import "./manifest-registry-
|
|
12
|
-
import { a as logoutWeb, l as readWebSelfId, p as webAuthExists, t as resolveWhatsAppAccount } from "./accounts-
|
|
13
|
-
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-
|
|
10
|
+
import { n as loadConfig } from "./config-5SdHIcHU.js";
|
|
11
|
+
import "./manifest-registry-yb7sAlu4.js";
|
|
12
|
+
import { a as logoutWeb, l as readWebSelfId, p as webAuthExists, t as resolveWhatsAppAccount } from "./accounts-BRw8yhIW.js";
|
|
13
|
+
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-DSU1vxxi.js";
|
|
14
14
|
import { randomUUID } from "node:crypto";
|
|
15
15
|
import { DisconnectReason } from "@whiskeysockets/baileys";
|
|
16
16
|
import QRCodeModule from "qrcode-terminal/vendor/QRCode/index.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { G as danger, K as info, Q as success } from "./registry-
|
|
3
|
-
import { r as defaultRuntime } from "./subsystem-
|
|
4
|
-
import { x as logInfo } from "./workspace-
|
|
5
|
-
import { n as formatCliCommand } from "./env-
|
|
6
|
-
import { n as loadConfig } from "./config-
|
|
7
|
-
import { a as logoutWeb, t as resolveWhatsAppAccount } from "./accounts-
|
|
8
|
-
import { i as waitForWaConnection, n as formatError, t as createWaSocket } from "./session-
|
|
2
|
+
import { G as danger, K as info, Q as success } from "./registry-DYq1AYOv.js";
|
|
3
|
+
import { r as defaultRuntime } from "./subsystem-BjyjJF-d.js";
|
|
4
|
+
import { x as logInfo } from "./workspace-DscDraUb.js";
|
|
5
|
+
import { n as formatCliCommand } from "./env-BDXYbTKj.js";
|
|
6
|
+
import { n as loadConfig } from "./config-5SdHIcHU.js";
|
|
7
|
+
import { a as logoutWeb, t as resolveWhatsAppAccount } from "./accounts-BRw8yhIW.js";
|
|
8
|
+
import { i as waitForWaConnection, n as formatError, t as createWaSocket } from "./session-DSU1vxxi.js";
|
|
9
9
|
import { DisconnectReason } from "@whiskeysockets/baileys";
|
|
10
10
|
|
|
11
11
|
//#region src/web/login.ts
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
|
-
import { s as resolveStateDir } from "./paths-
|
|
3
|
-
import { I as resolveUserPath, T as clampNumber, U as truncateUtf16Safe, w as clampInt } from "./registry-
|
|
4
|
-
import { n as resolveAgentConfig, r as resolveAgentDir, s as resolveAgentWorkspaceDir } from "./agent-scope-
|
|
5
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
6
|
-
import { o as resolveSessionTranscriptsDirForAgent } from "./paths-
|
|
7
|
-
import { B as resolveApiKeyForProvider, z as requireApiKey } from "./auth-profiles-
|
|
8
|
-
import { t as isTruthyEnvValue } from "./env-
|
|
2
|
+
import { s as resolveStateDir } from "./paths-CE7eVGHg.js";
|
|
3
|
+
import { I as resolveUserPath, T as clampNumber, U as truncateUtf16Safe, w as clampInt } from "./registry-DYq1AYOv.js";
|
|
4
|
+
import { n as resolveAgentConfig, r as resolveAgentDir, s as resolveAgentWorkspaceDir } from "./agent-scope-CpEJ0B88.js";
|
|
5
|
+
import { t as createSubsystemLogger } from "./subsystem-BjyjJF-d.js";
|
|
6
|
+
import { o as resolveSessionTranscriptsDirForAgent } from "./paths-CbQV9WEg.js";
|
|
7
|
+
import { B as resolveApiKeyForProvider, z as requireApiKey } from "./auth-profiles-DdK1Hxaa.js";
|
|
8
|
+
import { t as isTruthyEnvValue } from "./env-BDXYbTKj.js";
|
|
9
9
|
import { n as formatErrorMessage } from "./errors-XIsvXeC-.js";
|
|
10
10
|
import { n as onSessionTranscriptUpdate } from "./transcript-events-BBh3Gsrx.js";
|
|
11
|
-
import { n as collectProviderApiKeysForExecution, r as executeWithApiKeyRotation, t as parseGeminiAuth } from "./gemini-auth-
|
|
12
|
-
import { _ as isFileMissingError, a as buildFileEntry, c as ensureDir, d as listMemoryFiles, f as normalizeExtraMemoryPaths, h as runWithConcurrency, i as sessionPathForFile, l as hashText, m as remapChunkLines, n as buildSessionEntry, o as chunkMarkdown, p as parseEmbedding, r as listSessionFilesForAgent, s as cosineSimilarity, t as requireNodeSqlite, u as isMemoryPath, v as statRegularFile } from "./sqlite-
|
|
13
|
-
import { n as retryAsync } from "./retry-
|
|
11
|
+
import { n as collectProviderApiKeysForExecution, r as executeWithApiKeyRotation, t as parseGeminiAuth } from "./gemini-auth-Dy12ZAH3.js";
|
|
12
|
+
import { _ as isFileMissingError, a as buildFileEntry, c as ensureDir, d as listMemoryFiles, f as normalizeExtraMemoryPaths, h as runWithConcurrency, i as sessionPathForFile, l as hashText, m as remapChunkLines, n as buildSessionEntry, o as chunkMarkdown, p as parseEmbedding, r as listSessionFilesForAgent, s as cosineSimilarity, t as requireNodeSqlite, u as isMemoryPath, v as statRegularFile } from "./sqlite-D_mz1_-y.js";
|
|
13
|
+
import { n as retryAsync } from "./retry-BBVXkKBV.js";
|
|
14
14
|
import path from "node:path";
|
|
15
|
-
import
|
|
15
|
+
import fs from "node:fs";
|
|
16
16
|
import os from "node:os";
|
|
17
|
-
import fs from "node:fs/promises";
|
|
17
|
+
import fs$1 from "node:fs/promises";
|
|
18
18
|
import { randomUUID } from "node:crypto";
|
|
19
19
|
import { createInterface } from "node:readline";
|
|
20
20
|
import { Readable } from "node:stream";
|
|
@@ -614,7 +614,7 @@ function canAutoSelectLocal(options) {
|
|
|
614
614
|
if (/^(hf:|https?:)/i.test(modelPath)) return false;
|
|
615
615
|
const resolved = resolveUserPath(modelPath);
|
|
616
616
|
try {
|
|
617
|
-
return
|
|
617
|
+
return fs.statSync(resolved).isFile();
|
|
618
618
|
} catch {
|
|
619
619
|
return false;
|
|
620
620
|
}
|
|
@@ -936,7 +936,7 @@ async function extractTimestamp(params) {
|
|
|
936
936
|
if (!params.workspaceDir) return null;
|
|
937
937
|
const absolutePath = path.isAbsolute(params.filePath) ? params.filePath : path.resolve(params.workspaceDir, params.filePath);
|
|
938
938
|
try {
|
|
939
|
-
const stat = await fs.stat(absolutePath);
|
|
939
|
+
const stat = await fs$1.stat(absolutePath);
|
|
940
940
|
if (!Number.isFinite(stat.mtimeMs)) return null;
|
|
941
941
|
return new Date(stat.mtimeMs);
|
|
942
942
|
} catch {
|
|
@@ -2038,7 +2038,7 @@ var MemoryManagerSyncOps = class {
|
|
|
2038
2038
|
const source = `${sourceBase}${suffix}`;
|
|
2039
2039
|
const target = `${targetBase}${suffix}`;
|
|
2040
2040
|
try {
|
|
2041
|
-
await fs.rename(source, target);
|
|
2041
|
+
await fs$1.rename(source, target);
|
|
2042
2042
|
} catch (err) {
|
|
2043
2043
|
if (err.code !== "ENOENT") throw err;
|
|
2044
2044
|
}
|
|
@@ -2049,7 +2049,7 @@ var MemoryManagerSyncOps = class {
|
|
|
2049
2049
|
"",
|
|
2050
2050
|
"-wal",
|
|
2051
2051
|
"-shm"
|
|
2052
|
-
].map((suffix) => fs.rm(`${basePath}${suffix}`, { force: true })));
|
|
2052
|
+
].map((suffix) => fs$1.rm(`${basePath}${suffix}`, { force: true })));
|
|
2053
2053
|
}
|
|
2054
2054
|
ensureSchema() {
|
|
2055
2055
|
const result = ensureMemoryIndexSchema({
|
|
@@ -2073,7 +2073,7 @@ var MemoryManagerSyncOps = class {
|
|
|
2073
2073
|
]);
|
|
2074
2074
|
const additionalPaths = normalizeExtraMemoryPaths(this.workspaceDir, this.settings.extraPaths);
|
|
2075
2075
|
for (const entry of additionalPaths) try {
|
|
2076
|
-
const stat =
|
|
2076
|
+
const stat = fs.lstatSync(entry);
|
|
2077
2077
|
if (stat.isSymbolicLink()) continue;
|
|
2078
2078
|
if (stat.isDirectory()) {
|
|
2079
2079
|
watchPaths.add(path.join(entry, "**", "*.md"));
|
|
@@ -2144,7 +2144,7 @@ var MemoryManagerSyncOps = class {
|
|
|
2144
2144
|
if (!thresholds) return null;
|
|
2145
2145
|
let stat;
|
|
2146
2146
|
try {
|
|
2147
|
-
stat = await fs.stat(sessionFile);
|
|
2147
|
+
stat = await fs$1.stat(sessionFile);
|
|
2148
2148
|
} catch {
|
|
2149
2149
|
return null;
|
|
2150
2150
|
}
|
|
@@ -2186,7 +2186,7 @@ var MemoryManagerSyncOps = class {
|
|
|
2186
2186
|
if (end <= start) return 0;
|
|
2187
2187
|
let handle;
|
|
2188
2188
|
try {
|
|
2189
|
-
handle = await fs.open(absPath, "r");
|
|
2189
|
+
handle = await fs$1.open(absPath, "r");
|
|
2190
2190
|
} catch (err) {
|
|
2191
2191
|
if (isFileMissingError(err)) return 0;
|
|
2192
2192
|
throw err;
|
|
@@ -3118,7 +3118,7 @@ var MemoryManagerEmbeddingOps = class extends MemoryManagerSyncOps {
|
|
|
3118
3118
|
});
|
|
3119
3119
|
return;
|
|
3120
3120
|
}
|
|
3121
|
-
const content = options.content ?? await fs.readFile(entry.absPath, "utf-8");
|
|
3121
|
+
const content = options.content ?? await fs$1.readFile(entry.absPath, "utf-8");
|
|
3122
3122
|
const chunks = enforceEmbeddingMaxInputTokens(this.provider, chunkMarkdown(content, this.settings.chunking).filter((chunk) => chunk.text.trim().length > 0));
|
|
3123
3123
|
if (options.source === "sessions" && "lineMap" in entry) remapChunkLines(chunks, entry.lineMap);
|
|
3124
3124
|
const embeddings = this.batch.enabled ? await this.embedChunksWithBatch(chunks, entry, options.source) : await this.embedChunksInBatches(chunks);
|
|
@@ -3732,7 +3732,7 @@ var MemoryIndexManager = class MemoryIndexManager extends MemoryManagerEmbedding
|
|
|
3732
3732
|
if (!allowedWorkspace && this.settings.extraPaths.length > 0) {
|
|
3733
3733
|
const additionalPaths = normalizeExtraMemoryPaths(this.workspaceDir, this.settings.extraPaths);
|
|
3734
3734
|
for (const additionalPath of additionalPaths) try {
|
|
3735
|
-
const stat = await fs.lstat(additionalPath);
|
|
3735
|
+
const stat = await fs$1.lstat(additionalPath);
|
|
3736
3736
|
if (stat.isSymbolicLink()) continue;
|
|
3737
3737
|
if (stat.isDirectory()) {
|
|
3738
3738
|
if (absPath === additionalPath || absPath.startsWith(`${additionalPath}${path.sep}`)) {
|
|
@@ -3757,7 +3757,7 @@ var MemoryIndexManager = class MemoryIndexManager extends MemoryManagerEmbedding
|
|
|
3757
3757
|
};
|
|
3758
3758
|
let content;
|
|
3759
3759
|
try {
|
|
3760
|
-
content = await fs.readFile(absPath, "utf-8");
|
|
3760
|
+
content = await fs$1.readFile(absPath, "utf-8");
|
|
3761
3761
|
} catch (err) {
|
|
3762
3762
|
if (isFileMissingError(err)) return {
|
|
3763
3763
|
text: "",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { I as resolveUserPath, P as resolveConfigDir, k as isRecord } from "./registry-
|
|
1
|
+
import { I as resolveUserPath, P as resolveConfigDir, k as isRecord } from "./registry-DYq1AYOv.js";
|
|
2
2
|
import { n as MANIFEST_KEY } from "./legacy-names-CePMUvus.js";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import fs from "node:fs";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
6
6
|
|
|
7
7
|
//#region src/infra/host-env-security-policy.json
|
|
@@ -59,7 +59,7 @@ function isPathInside$1(basePath, candidatePath) {
|
|
|
59
59
|
}
|
|
60
60
|
function safeRealpathSync$1(filePath) {
|
|
61
61
|
try {
|
|
62
|
-
return
|
|
62
|
+
return fs.realpathSync(filePath);
|
|
63
63
|
} catch {
|
|
64
64
|
return null;
|
|
65
65
|
}
|
|
@@ -226,13 +226,13 @@ function resolveBundledPluginsDir() {
|
|
|
226
226
|
try {
|
|
227
227
|
const execDir = path.dirname(process.execPath);
|
|
228
228
|
const sibling = path.join(execDir, "extensions");
|
|
229
|
-
if (
|
|
229
|
+
if (fs.existsSync(sibling)) return sibling;
|
|
230
230
|
} catch {}
|
|
231
231
|
try {
|
|
232
232
|
let cursor = path.dirname(fileURLToPath(import.meta.url));
|
|
233
233
|
for (let i = 0; i < 6; i += 1) {
|
|
234
234
|
const candidate = path.join(cursor, "extensions");
|
|
235
|
-
if (
|
|
235
|
+
if (fs.existsSync(candidate)) return candidate;
|
|
236
236
|
const parent = path.dirname(cursor);
|
|
237
237
|
if (parent === cursor) break;
|
|
238
238
|
cursor = parent;
|
|
@@ -251,20 +251,20 @@ function normalizeStringList(value) {
|
|
|
251
251
|
function resolvePluginManifestPath(rootDir) {
|
|
252
252
|
for (const filename of PLUGIN_MANIFEST_FILENAMES) {
|
|
253
253
|
const candidate = path.join(rootDir, filename);
|
|
254
|
-
if (
|
|
254
|
+
if (fs.existsSync(candidate)) return candidate;
|
|
255
255
|
}
|
|
256
256
|
return path.join(rootDir, PLUGIN_MANIFEST_FILENAME);
|
|
257
257
|
}
|
|
258
258
|
function loadPluginManifest(rootDir) {
|
|
259
259
|
const manifestPath = resolvePluginManifestPath(rootDir);
|
|
260
|
-
if (!
|
|
260
|
+
if (!fs.existsSync(manifestPath)) return {
|
|
261
261
|
ok: false,
|
|
262
262
|
error: `plugin manifest not found: ${manifestPath}`,
|
|
263
263
|
manifestPath
|
|
264
264
|
};
|
|
265
265
|
let raw;
|
|
266
266
|
try {
|
|
267
|
-
raw = JSON.parse(
|
|
267
|
+
raw = JSON.parse(fs.readFileSync(manifestPath, "utf-8"));
|
|
268
268
|
} catch (err) {
|
|
269
269
|
return {
|
|
270
270
|
ok: false,
|
|
@@ -331,7 +331,7 @@ function safeRealpathSync(targetPath, cache) {
|
|
|
331
331
|
const cached = cache?.get(targetPath);
|
|
332
332
|
if (cached) return cached;
|
|
333
333
|
try {
|
|
334
|
-
const resolved =
|
|
334
|
+
const resolved = fs.realpathSync(targetPath);
|
|
335
335
|
cache?.set(targetPath, resolved);
|
|
336
336
|
return resolved;
|
|
337
337
|
} catch {
|
|
@@ -340,7 +340,7 @@ function safeRealpathSync(targetPath, cache) {
|
|
|
340
340
|
}
|
|
341
341
|
function safeStatSync(targetPath) {
|
|
342
342
|
try {
|
|
343
|
-
return
|
|
343
|
+
return fs.statSync(targetPath);
|
|
344
344
|
} catch {
|
|
345
345
|
return null;
|
|
346
346
|
}
|
|
@@ -454,9 +454,9 @@ function isExtensionFile(filePath) {
|
|
|
454
454
|
}
|
|
455
455
|
function readPackageManifest(dir) {
|
|
456
456
|
const manifestPath = path.join(dir, "package.json");
|
|
457
|
-
if (!
|
|
457
|
+
if (!fs.existsSync(manifestPath)) return null;
|
|
458
458
|
try {
|
|
459
|
-
const raw =
|
|
459
|
+
const raw = fs.readFileSync(manifestPath, "utf-8");
|
|
460
460
|
return JSON.parse(raw);
|
|
461
461
|
} catch {
|
|
462
462
|
return null;
|
|
@@ -514,10 +514,10 @@ function resolvePackageEntrySource(params) {
|
|
|
514
514
|
return source;
|
|
515
515
|
}
|
|
516
516
|
function discoverInDirectory(params) {
|
|
517
|
-
if (!
|
|
517
|
+
if (!fs.existsSync(params.dir)) return;
|
|
518
518
|
let entries = [];
|
|
519
519
|
try {
|
|
520
|
-
entries =
|
|
520
|
+
entries = fs.readdirSync(params.dir, { withFileTypes: true });
|
|
521
521
|
} catch (err) {
|
|
522
522
|
params.diagnostics.push({
|
|
523
523
|
level: "warn",
|
|
@@ -579,7 +579,7 @@ function discoverInDirectory(params) {
|
|
|
579
579
|
"index.js",
|
|
580
580
|
"index.mjs",
|
|
581
581
|
"index.cjs"
|
|
582
|
-
].map((candidate) => path.join(fullPath, candidate)).find((candidate) =>
|
|
582
|
+
].map((candidate) => path.join(fullPath, candidate)).find((candidate) => fs.existsSync(candidate));
|
|
583
583
|
if (indexFile && isExtensionFile(indexFile)) addCandidate({
|
|
584
584
|
candidates: params.candidates,
|
|
585
585
|
diagnostics: params.diagnostics,
|
|
@@ -597,7 +597,7 @@ function discoverInDirectory(params) {
|
|
|
597
597
|
}
|
|
598
598
|
function discoverFromPath(params) {
|
|
599
599
|
const resolved = resolveUserPath(params.rawPath);
|
|
600
|
-
if (!
|
|
600
|
+
if (!fs.existsSync(resolved)) {
|
|
601
601
|
params.diagnostics.push({
|
|
602
602
|
level: "error",
|
|
603
603
|
message: `plugin path not found: ${resolved}`,
|
|
@@ -605,7 +605,7 @@ function discoverFromPath(params) {
|
|
|
605
605
|
});
|
|
606
606
|
return;
|
|
607
607
|
}
|
|
608
|
-
const stat =
|
|
608
|
+
const stat = fs.statSync(resolved);
|
|
609
609
|
if (stat.isFile()) {
|
|
610
610
|
if (!isExtensionFile(resolved)) {
|
|
611
611
|
params.diagnostics.push({
|
|
@@ -665,7 +665,7 @@ function discoverFromPath(params) {
|
|
|
665
665
|
"index.js",
|
|
666
666
|
"index.mjs",
|
|
667
667
|
"index.cjs"
|
|
668
|
-
].map((candidate) => path.join(resolved, candidate)).find((candidate) =>
|
|
668
|
+
].map((candidate) => path.join(resolved, candidate)).find((candidate) => fs.existsSync(candidate));
|
|
669
669
|
if (indexFile && isExtensionFile(indexFile)) {
|
|
670
670
|
addCandidate({
|
|
671
671
|
candidates: params.candidates,
|
|
@@ -779,7 +779,7 @@ function buildCacheKey(params) {
|
|
|
779
779
|
}
|
|
780
780
|
function safeStatMtimeMs(filePath) {
|
|
781
781
|
try {
|
|
782
|
-
return
|
|
782
|
+
return fs.statSync(filePath).mtimeMs;
|
|
783
783
|
} catch {
|
|
784
784
|
return null;
|
|
785
785
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { p as normalizeAccountId } from "./session-key-BCzIW1Y2.js";
|
|
3
|
-
import { r as normalizeChannelId } from "./plugins-
|
|
3
|
+
import { r as normalizeChannelId } from "./plugins-BzmbgY7s.js";
|
|
4
4
|
|
|
5
5
|
//#region src/config/markdown-tables.ts
|
|
6
6
|
var markdown_tables_exports = /* @__PURE__ */ __exportAll({ resolveMarkdownTableMode: () => resolveMarkdownTableMode });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as getActivePluginRegistry, s as normalizeChatChannelId, t as CHANNEL_IDS } from "./registry-
|
|
1
|
+
import { c as getActivePluginRegistry, s as normalizeChatChannelId, t as CHANNEL_IDS } from "./registry-DYq1AYOv.js";
|
|
2
2
|
|
|
3
3
|
//#region src/gateway/protocol/client-info.ts
|
|
4
4
|
const GATEWAY_CLIENT_IDS = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as CONFIG_PATH } from "./paths-Cqn-zk3M.js";
|
|
2
2
|
import { B as theme, R as colorize, S as shortenHomePath, z as isRich$1 } from "./utils-B-0b9bGM.js";
|
|
3
3
|
import "./thinking-EAliFiVK.js";
|
|
4
|
-
import { Yt as describeFailoverError, _r as formatRemainingShort, gr as buildAuthHealthSummary, gt as loadProviderUsageSummary, hr as DEFAULT_OAUTH_WARN_MS, mr as maskApiKey, vt as formatUsageWindowSummary, yt as resolveUsageProviderId, zt as runAgentTurn } from "./reply-
|
|
4
|
+
import { Yt as describeFailoverError, _r as formatRemainingShort, gr as buildAuthHealthSummary, gt as loadProviderUsageSummary, hr as DEFAULT_OAUTH_WARN_MS, mr as maskApiKey, vt as formatUsageWindowSummary, yt as resolveUsageProviderId, zt as runAgentTurn } from "./reply-DPaH7oQp.js";
|
|
5
5
|
import "./registry-Cja8eT7G.js";
|
|
6
6
|
import { f as defaultRuntime } from "./subsystem-D9vIQve0.js";
|
|
7
7
|
import "./exec-CWkblSrI.js";
|
|
@@ -110,7 +110,7 @@ import { n as redactSecrets } from "./format-yQZNwAF2.js";
|
|
|
110
110
|
import { a as isLocalBaseUrl, c as normalizeAlias, d as resolveModelTarget, f as updateConfig, i as formatTokenK, l as resolveKnownAgentId, n as ensureFlagCompatibility, o as loadValidConfigOrThrow, r as formatMs, s as mergePrimaryFallbackConfig, t as applyDefaultModelPrimaryUpdate, u as resolveModelKeysFromEntries } from "./shared-Knv1hy6h.js";
|
|
111
111
|
import { d as applyAuthProfileConfig, n as validateAnthropicSetupToken } from "./auth-token-BnOynwk4.js";
|
|
112
112
|
import { n as logConfigUpdated } from "./logging-BzzwiKjv.js";
|
|
113
|
-
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-
|
|
113
|
+
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-BD1qo8xm.js";
|
|
114
114
|
import { t as ensurePiAuthJsonFromAuthProfiles } from "./system-cli-UMsMEurS.js";
|
|
115
115
|
import path from "node:path";
|
|
116
116
|
import fs from "node:fs/promises";
|
|
@@ -14,7 +14,7 @@ import "./client-DMBZpU6X.js";
|
|
|
14
14
|
import "./call-BcE47FtD.js";
|
|
15
15
|
import "./message-channel-C9dERklz.js";
|
|
16
16
|
import "./pairing-token-Byh6drgn.js";
|
|
17
|
-
import "./subagent-registry-
|
|
17
|
+
import "./subagent-registry-CzBf7A_o.js";
|
|
18
18
|
import "./sessions-CJXnZVjR.js";
|
|
19
19
|
import "./tokens-Csntmwwn.js";
|
|
20
20
|
import "./plugins-CwSlLxM8.js";
|
|
@@ -104,8 +104,8 @@ import "./table-D01d2GuY.js";
|
|
|
104
104
|
import "./shared-D8K9MkWg.js";
|
|
105
105
|
import "./auth-token-Cmrk2TPo.js";
|
|
106
106
|
import "./logging-BGewRZy0.js";
|
|
107
|
-
import { c as githubCopilotLoginCommand } from "./provider-auth-helpers-
|
|
108
|
-
import { C as modelsAliasesListCommand, S as modelsAliasesAddCommand, _ as modelsAuthOrderSetCommand, a as modelsStatusCommand, b as modelsAuthPasteTokenCommand, c as modelsImageFallbacksClearCommand, d as modelsFallbacksAddCommand, f as modelsFallbacksClearCommand, g as modelsAuthOrderGetCommand, h as modelsAuthOrderClearCommand, i as modelsScanCommand, l as modelsImageFallbacksListCommand, m as modelsFallbacksRemoveCommand, n as modelsSetImageCommand, o as modelsListCommand, p as modelsFallbacksListCommand, r as modelsSetCommand, s as modelsImageFallbacksAddCommand, u as modelsImageFallbacksRemoveCommand, v as modelsAuthAddCommand, w as modelsAliasesRemoveCommand, x as modelsAuthSetupTokenCommand, y as modelsAuthLoginCommand } from "./models-
|
|
107
|
+
import { c as githubCopilotLoginCommand } from "./provider-auth-helpers-aA2Nm1dz.js";
|
|
108
|
+
import { C as modelsAliasesListCommand, S as modelsAliasesAddCommand, _ as modelsAuthOrderSetCommand, a as modelsStatusCommand, b as modelsAuthPasteTokenCommand, c as modelsImageFallbacksClearCommand, d as modelsFallbacksAddCommand, f as modelsFallbacksClearCommand, g as modelsAuthOrderGetCommand, h as modelsAuthOrderClearCommand, i as modelsScanCommand, l as modelsImageFallbacksListCommand, m as modelsFallbacksRemoveCommand, n as modelsSetImageCommand, o as modelsListCommand, p as modelsFallbacksListCommand, r as modelsSetCommand, s as modelsImageFallbacksAddCommand, u as modelsImageFallbacksRemoveCommand, v as modelsAuthAddCommand, w as modelsAliasesRemoveCommand, x as modelsAuthSetupTokenCommand, y as modelsAuthLoginCommand } from "./models-hMbDU9ot.js";
|
|
109
109
|
|
|
110
110
|
//#region src/cli/models-cli.ts
|
|
111
111
|
function runModelsCommand(action) {
|
|
@@ -7,7 +7,7 @@ import { t as ensurePiAuthJsonFromAuthProfiles } from "./pi-auth-json-CaX_1WHk.j
|
|
|
7
7
|
import { i as resolveForwardCompatModel, r as ANTIGRAVITY_OPUS_46_FORWARD_COMPAT_CANDIDATES } from "./model-DiCH8rkE.js";
|
|
8
8
|
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-Do3xMEtM.js";
|
|
9
9
|
import { C as parseDurationMs, i as loadConfig } from "./config-DHBLS1Hl.js";
|
|
10
|
-
import { J as runAgentTurn, _n as DEFAULT_OAUTH_WARN_MS, _t as describeFailoverError, an as formatUsageWindowSummary, gn as maskApiKey, on as resolveUsageProviderId, rn as loadProviderUsageSummary, vn as buildAuthHealthSummary, yn as formatRemainingShort } from "./subagent-registry-
|
|
10
|
+
import { J as runAgentTurn, _n as DEFAULT_OAUTH_WARN_MS, _t as describeFailoverError, an as formatUsageWindowSummary, gn as maskApiKey, on as resolveUsageProviderId, rn as loadProviderUsageSummary, vn as buildAuthHealthSummary, yn as formatRemainingShort } from "./subagent-registry-CzBf7A_o.js";
|
|
11
11
|
import { s as resolveSessionTranscriptsDirForAgent } from "./paths-DNdWAq7b.js";
|
|
12
12
|
import { t as ensureSymiModelsJson } from "./models-config-CCMpqFyr.js";
|
|
13
13
|
import { n as loadModelCatalog } from "./model-catalog-CqCsARJX.js";
|
|
@@ -21,7 +21,7 @@ import { n as redactSecrets } from "./format-DVLB9DNB.js";
|
|
|
21
21
|
import { a as isLocalBaseUrl, c as normalizeAlias, d as resolveModelTarget, f as updateConfig, i as formatTokenK, l as resolveKnownAgentId, n as ensureFlagCompatibility, o as loadValidConfigOrThrow, r as formatMs, s as mergePrimaryFallbackConfig, t as applyDefaultModelPrimaryUpdate, u as resolveModelKeysFromEntries } from "./shared-D8K9MkWg.js";
|
|
22
22
|
import { d as applyAuthProfileConfig, n as validateAnthropicSetupToken } from "./auth-token-Cmrk2TPo.js";
|
|
23
23
|
import { n as logConfigUpdated } from "./logging-BGewRZy0.js";
|
|
24
|
-
import { a as createVpsAwareOAuthHandlers, i as resolveProviderMatch, n as mergeConfigPatch, o as isRemoteEnvironment, r as pickAuthMethod, s as resolvePluginProviders, t as applyDefaultModel } from "./provider-auth-helpers-
|
|
24
|
+
import { a as createVpsAwareOAuthHandlers, i as resolveProviderMatch, n as mergeConfigPatch, o as isRemoteEnvironment, r as pickAuthMethod, s as resolvePluginProviders, t as applyDefaultModel } from "./provider-auth-helpers-aA2Nm1dz.js";
|
|
25
25
|
import path from "node:path";
|
|
26
26
|
import fs from "node:fs/promises";
|
|
27
27
|
import { complete, getEnvApiKey, getModel } from "@mariozechner/pi-ai";
|
|
@@ -9,8 +9,8 @@ import { a as gatewayInstallErrorHint, i as buildGatewayInstallPlan, r as isGate
|
|
|
9
9
|
import { t as assertSupportedRuntime } from "./runtime-guard-D7waq_Ho.js";
|
|
10
10
|
import { r as isSystemdUserServiceAvailable } from "./systemd-DlMdyFDY.js";
|
|
11
11
|
import { t as resolveGatewayService } from "./service-Cm9j9WzQ.js";
|
|
12
|
-
import { r as healthCommand } from "./health-
|
|
13
|
-
import { t as runOnboardingWizard } from "./onboarding-
|
|
12
|
+
import { r as healthCommand } from "./health-CqQIZeIm.js";
|
|
13
|
+
import { t as runOnboardingWizard } from "./onboarding-D7Y_e4zX.js";
|
|
14
14
|
import { $ as setHuggingfaceApiKey, A as applyXaiConfig, B as applyVercelAiGatewayConfig, E as applyTogetherConfig, I as applyLitellmConfig, M as applyXiaomiConfig, O as applyVeniceConfig, P as applyZaiConfig, Q as setGeminiApiKey, R as applyCloudflareAiGatewayConfig, S as applyQianfanConfig, X as setAnthropicApiKey, Z as setCloudflareAiGatewayConfig, _ as applyMoonshotConfigCn, a as applyMinimaxApiConfig, at as setOpenrouterApiKey, b as applyOpenrouterConfig, ct as setTogetherApiKey, d as applyAuthProfileConfig, dt as setXaiApiKey, et as setKimiCodingApiKey, f as applyHuggingfaceConfig, ft as setXiaomiApiKey, g as applyMoonshotConfig, it as setOpencodeZenApiKey, l as applyMinimaxConfig, lt as setVeniceApiKey, m as applyKimiCodeConfig, n as validateAnthropicSetupToken, nt as setMinimaxApiKey, o as applyMinimaxApiConfigCn, ot as setQianfanApiKey, pt as setZaiApiKey, r as applyOpencodeZenConfig, rt as setMoonshotApiKey, st as setSyntheticApiKey, t as buildTokenProfileId, tt as setLitellmApiKey, ut as setVercelAiGatewayApiKey, w as applySyntheticConfig } from "./auth-token-Cmrk2TPo.js";
|
|
15
15
|
import { n as logConfigUpdated } from "./logging-BGewRZy0.js";
|
|
16
16
|
import { n as isDeprecatedAuthChoice, r as normalizeLegacyOnboardAuthChoice } from "./auth-choice-legacy-BKXTgyr4.js";
|
|
@@ -11,8 +11,8 @@ import { t as createClackPrompter } from "./clack-prompter-B7pN13HV.js";
|
|
|
11
11
|
import { a as gatewayInstallErrorHint, i as buildGatewayInstallPlan, r as isGatewayDaemonRuntime, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-2mwX-jqj.js";
|
|
12
12
|
import { r as isSystemdUserServiceAvailable } from "./systemd-riq8uNJQ.js";
|
|
13
13
|
import { t as resolveGatewayService } from "./service-Cl74hx8J.js";
|
|
14
|
-
import { r as healthCommand } from "./health-
|
|
15
|
-
import { t as runOnboardingWizard } from "./onboarding-
|
|
14
|
+
import { r as healthCommand } from "./health-DbJOe12X.js";
|
|
15
|
+
import { t as runOnboardingWizard } from "./onboarding-C7g_ZvRW.js";
|
|
16
16
|
import { $ as setHuggingfaceApiKey, A as applyXaiConfig, B as applyVercelAiGatewayConfig, E as applyTogetherConfig, I as applyLitellmConfig, M as applyXiaomiConfig, O as applyVeniceConfig, P as applyZaiConfig, Q as setGeminiApiKey, R as applyCloudflareAiGatewayConfig, S as applyQianfanConfig, X as setAnthropicApiKey, Z as setCloudflareAiGatewayConfig, _ as applyMoonshotConfigCn, a as applyMinimaxApiConfig, at as setOpenrouterApiKey, b as applyOpenrouterConfig, ct as setTogetherApiKey, d as applyAuthProfileConfig, dt as setXaiApiKey, et as setKimiCodingApiKey, f as applyHuggingfaceConfig, ft as setXiaomiApiKey, g as applyMoonshotConfig, it as setOpencodeZenApiKey, l as applyMinimaxConfig, lt as setVeniceApiKey, m as applyKimiCodeConfig, n as validateAnthropicSetupToken, nt as setMinimaxApiKey, o as applyMinimaxApiConfigCn, ot as setQianfanApiKey, pt as setZaiApiKey, r as applyOpencodeZenConfig, rt as setMoonshotApiKey, st as setSyntheticApiKey, t as buildTokenProfileId, tt as setLitellmApiKey, ut as setVercelAiGatewayApiKey, w as applySyntheticConfig } from "./auth-token-BnOynwk4.js";
|
|
17
17
|
import { n as logConfigUpdated } from "./logging-BzzwiKjv.js";
|
|
18
18
|
import { n as isDeprecatedAuthChoice, r as normalizeLegacyOnboardAuthChoice } from "./auth-choice-legacy-Ch38-Kbr.js";
|
|
@@ -3,7 +3,7 @@ import { E as formatChannelSelectionLine, O as listChatChannels, T as formatChan
|
|
|
3
3
|
import { t as formatCliCommand } from "./command-format-BtYOfWxC.js";
|
|
4
4
|
import { h as normalizeAccountId, m as DEFAULT_ACCOUNT_ID } from "./session-key-DjZ7Z1hW.js";
|
|
5
5
|
import { c as resolveAgentWorkspaceDir, l as resolveDefaultAgentId } from "./agent-scope-D-jRCY0d.js";
|
|
6
|
-
import { m as loadSymiPlugins, p as createPluginLoaderLogger } from "./subagent-registry-
|
|
6
|
+
import { m as loadSymiPlugins, p as createPluginLoaderLogger } from "./subagent-registry-CzBf7A_o.js";
|
|
7
7
|
import { n as listChannelPlugins, t as getChannelPlugin } from "./plugins-CwSlLxM8.js";
|
|
8
8
|
import { t as formatDocsLink } from "./links-DlWpl9Yv.js";
|
|
9
9
|
import { r as listChannelPluginCatalogEntries } from "./catalog-DLQFKucJ.js";
|