squidclaw 3.0.10 → 3.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{accounts-CkF7YwoF.js → accounts-CL_NXliB.js} +17 -17
- package/dist/{accounts-DbloMfwT.js → accounts-F7tGwezI.js} +2 -2
- package/dist/{accounts-CK_sHUyT.js → accounts-LA308FHj.js} +2 -2
- package/dist/{active-listener-AepfNSUY.js → active-listener-DJv1FZqf.js} +2 -2
- package/dist/{api-key-rotation-BHFJiYbw.js → api-key-rotation-Dzvqp3Dc.js} +2 -2
- package/dist/{audio-preflight-BKgdc7dS.js → audio-preflight-BsA6JZmW.js} +32 -32
- package/dist/{audio-transcription-runner-BnbdYMDl.js → audio-transcription-runner-Dsbi9d9O.js} +12 -12
- package/dist/{audit-membership-runtime-DyLj-uhz.js → audit-membership-runtime-w23FnNAN.js} +4 -4
- package/dist/build-info.json +2 -2
- package/dist/bundled/boot-md/handler.js +51 -51
- package/dist/bundled/bootstrap-extra-files/handler.js +6 -6
- package/dist/bundled/command-logger/handler.js +2 -2
- package/dist/bundled/session-memory/handler.js +51 -51
- package/dist/{channel-activity-C5kTj83_.js → channel-activity-DPrXawu4.js} +3 -3
- package/dist/{chrome-CjxCwFA9.js → chrome-DUgIvuXI.js} +26 -26
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{command-registry-DUCyOBd1.js → command-registry-DzmQY97S.js} +7 -7
- package/dist/{commands-registry-D6ZOTo1C.js → commands-registry-C2t2bcZ6.js} +4 -4
- package/dist/{completion-cli-BvLg6TUR.js → completion-cli-Dnoy1zfN.js} +1 -1
- package/dist/{completion-cli-CSUrTCzX.js → completion-cli-sBQ83fat.js} +2 -2
- package/dist/{config-cli-Cd-bBJEj.js → config-cli-Ch9dY_hF.js} +1 -1
- package/dist/{config-cli-Dr_JIBrw.js → config-cli-H7r8kpLv.js} +1 -1
- package/dist/{configure-BZ6ItDDb.js → configure-C6-GTzTG.js} +2 -2
- package/dist/{configure-SygAFeSR.js → configure-DB07e__W.js} +2 -2
- package/dist/{daemon-cli-DFPaz9xP.js → daemon-cli-Cei6iOpb.js} +5 -5
- package/dist/{daemon-cli-DJZIKYzT.js → daemon-cli-D8Kz0WGa.js} +5 -5
- package/dist/daemon-cli.js +1 -1
- package/dist/{daemon-install-DJoF2Wz3.js → daemon-install-CXDWHEEO.js} +3 -3
- package/dist/{daemon-install-CCOOGwxT.js → daemon-install-Chxlu9Kv.js} +3 -3
- package/dist/{deliver-D-f6Wa3i.js → deliver-BTBMhYBV.js} +21 -21
- package/dist/deliver-runtime-CQymQibt.js +36 -0
- package/dist/deps-send-discord.runtime-R8jUd_2I.js +26 -0
- package/dist/deps-send-imessage.runtime-Die0aWtU.js +25 -0
- package/dist/deps-send-signal.runtime-Biux_4v4.js +24 -0
- package/dist/deps-send-slack.runtime-CkUST2Ky.js +22 -0
- package/dist/deps-send-telegram.runtime-CIN5ILBe.js +27 -0
- package/dist/deps-send-whatsapp.runtime-Dg8_hcLc.js +60 -0
- package/dist/{diagnostic-ySwZga6c.js → diagnostic-DoguEiWW.js} +2 -2
- package/dist/{diagnostics-0TAnpHSE.js → diagnostics--O6mo6KH.js} +1 -1
- package/dist/{diagnostics-DG2Lz77X.js → diagnostics-DZ99A0EW.js} +1 -1
- package/dist/{doctor-completion-DGug3-Aj.js → doctor-completion-DnoZYjZc.js} +1 -1
- package/dist/{doctor-completion-BnZn8alS.js → doctor-completion-kgo-PdGx.js} +1 -1
- package/dist/entry.js +2 -2
- package/dist/{errors-kkRuS2Cs.js → errors-DfgAh2Ml.js} +1 -1
- package/dist/{exec-approvals-cli-CxXVtJrI.js → exec-approvals-cli-BUKCarRX.js} +3 -3
- package/dist/{exec-approvals-cli-CDDgHzpg.js → exec-approvals-cli-STte5gqQ.js} +3 -3
- package/dist/{fetch-BLS7EMnx.js → fetch-DdiB5_OX.js} +5 -5
- package/dist/{fetch-guard-D0fXNJls.js → fetch-guard-CEV5qBHc.js} +2 -2
- package/dist/{frontmatter-Cq1TcIQ2.js → frontmatter-CjKtFduT.js} +3 -3
- package/dist/{fs-safe-BoB4X3GD.js → fs-safe-CwHbZdFH.js} +4 -4
- package/dist/{gateway-cli-CM0ztAq4.js → gateway-cli-CeNR5GmQ.js} +10 -10
- package/dist/{gateway-cli-BAp-DLjN.js → gateway-cli-Crbpi5dx.js} +10 -10
- package/dist/{github-copilot-token-B5cPlwaz.js → github-copilot-token-Cw3tAXM9.js} +7 -7
- package/dist/{image-C-C7hQ26.js → image-BCf4KJPy.js} +6 -6
- package/dist/{image-ops-CdgypS_g.js → image-ops-bdrMTILs.js} +2 -2
- package/dist/image-runtime-Bzx4Pvws.js +29 -0
- package/dist/index.js +1 -1
- package/dist/{inspect-DLik2FMq.js → inspect-4c1uL0x5.js} +1 -1
- package/dist/{inspect-FnsCebWG.js → inspect-C3PHuODr.js} +1 -1
- package/dist/{ir-BvisJWXv.js → ir-D_GD01cg.js} +8 -8
- package/dist/{legacy-names-aGJJuzM_.js → legacy-names-B0wgIP0Q.js} +1 -1
- package/dist/{lifecycle-core-DtY6w3ub.js → lifecycle-core-DHOdNE6w.js} +3 -3
- package/dist/{lifecycle-core-DMMLEqYN.js → lifecycle-core-DohWpW3N.js} +3 -3
- package/dist/llm-slug-generator.js +51 -51
- package/dist/{logger-CnTSBL7T.js → logger-oGKcCLZ5.js} +7 -7
- package/dist/{login-BMeLPUiO.js → login-gJWPqN66.js} +5 -5
- package/dist/{login-qr-B2B67qqQ.js → login-qr-CgmlF7zK.js} +10 -10
- package/dist/{manager-DdxMYEDd.js → manager-CD69uguS.js} +13 -13
- package/dist/manager-runtime-BISxj7HK.js +18 -0
- package/dist/{model-selection-ag9BmVct.js → model-selection-DMjtmGZP.js} +43 -43
- package/dist/{node-cli-zyRorl51.js → node-cli-JghnBnrI.js} +5 -5
- package/dist/{node-cli-CfwK794P.js → node-cli-ym7zUo1F.js} +5 -5
- package/dist/{node-service-BB2b76l8.js → node-service-Z0JprJda.js} +1 -1
- package/dist/{node-service-DjfbZKKZ.js → node-service-xGYkt3vb.js} +1 -1
- package/dist/{onboard-WMgKYIrD.js → onboard-D9vjDp-e.js} +2 -2
- package/dist/{onboard-Ce20Oyng.js → onboard-N0--2t6V.js} +2 -2
- package/dist/{onboarding-Ct4Rx7wJ.js → onboarding-DyJFftTP.js} +1 -1
- package/dist/{onboarding-DgsOXxxB.js → onboarding-twcL4mkC.js} +1 -1
- package/dist/{onboarding.finalize-DxhWHf4_.js → onboarding.finalize-Br9dbVel.js} +7 -7
- package/dist/{onboarding.finalize-DS68yQZn.js → onboarding.finalize-CBefd6_G.js} +6 -6
- package/dist/{outbound-DHDBvGLA.js → outbound-Cboz5UyH.js} +6 -6
- package/dist/{outbound-attachment-CqXiWbKN.js → outbound-attachment-PwEbEhAL.js} +2 -2
- package/dist/{path-alias-guards-DORgbZ1w.js → path-alias-guards-Cpsiv2KL.js} +1 -1
- package/dist/{paths-DA5srn0U.js → paths-CSdAWKDO.js} +5 -5
- package/dist/{paths-DSd911Oe.js → paths-CXClY8zC.js} +4 -4
- package/dist/{pi-embedded-CHzwPt6X.js → pi-embedded-Dmz84uZN.js} +171 -171
- package/dist/{pi-embedded-helpers-Bse_QhEf.js → pi-embedded-helpers-D2Oonz_1.js} +52 -52
- package/dist/{pi-model-discovery-DAzuqPoG.js → pi-model-discovery-DEps5Exd.js} +7 -7
- package/dist/pi-model-discovery-runtime-bzJViQLK.js +11 -0
- package/dist/{pi-tools.before-tool-call.runtime-2Sp1jmlg.js → pi-tools.before-tool-call.runtime-4wPdP7Br.js} +9 -9
- package/dist/plugin-sdk/imessage.js +2 -2
- package/dist/plugin-sdk/mattermost.js +3 -3
- package/dist/plugin-sdk/signal.js +2 -2
- package/dist/{plugins-DXkm70nK.js → plugins-CmdmAU0K.js} +11 -11
- package/dist/{program-CGnpqaIZ.js → program-BwNuppz0.js} +2 -2
- package/dist/{program-context-YzgE3bAD.js → program-context-BCtljZU1.js} +12 -12
- package/dist/{prompt-select-styled-D0pkL6H_.js → prompt-select-styled-D2M_WqEQ.js} +7 -7
- package/dist/{prompt-select-styled-DiMjgSXS.js → prompt-select-styled-DZVvUzrT.js} +7 -7
- package/dist/{proxy-env-D75CWSOo.js → proxy-env-QUJz9VEJ.js} +1 -1
- package/dist/{proxy-fetch-lH6RsRTE.js → proxy-fetch-C2v-Utgg.js} +1 -1
- package/dist/{pw-ai-BwRP3TWc.js → pw-ai-Bfv4sy9S.js} +14 -14
- package/dist/{qmd-manager-BN0siR2Z.js → qmd-manager-CO-shcLU.js} +10 -10
- package/dist/{query-expansion-Dzxt6kXo.js → query-expansion-DlQOkf-g.js} +6 -6
- package/dist/{redact-DvzicBMu.js → redact-NmPEVjIo.js} +1 -1
- package/dist/{register.configure-CXK0g5TX.js → register.configure-BzHcmwsR.js} +4 -4
- package/dist/{register.configure-JuX1GlLT.js → register.configure-CjUMPkcI.js} +4 -4
- package/dist/{register.maintenance-DyUX79UM.js → register.maintenance-C_-vIL06.js} +9 -9
- package/dist/{register.maintenance-CKOdhzP0.js → register.maintenance-QqPonMiO.js} +10 -10
- package/dist/{register.onboard-B1V4Jit6.js → register.onboard-B4V9T5wP.js} +2 -2
- package/dist/{register.onboard-D8yAudVg.js → register.onboard-BOtH_xPO.js} +2 -2
- package/dist/{register.setup-BQA072ul.js → register.setup-BFTYtdMo.js} +2 -2
- package/dist/{register.setup-DMP-58qd.js → register.setup-Cb4UN7u8.js} +2 -2
- package/dist/{register.status-health-sessions-Dn9Vgyzt.js → register.status-health-sessions-Ch8Agak6.js} +5 -5
- package/dist/{register.status-health-sessions-BKbPZSFr.js → register.status-health-sessions-DeqEd2hV.js} +5 -5
- package/dist/{register.subclis-CdhuSeWY.js → register.subclis-ByA800z9.js} +6 -6
- package/dist/{run-main-C5BiexaH.js → run-main-BI2OLp65.js} +6 -6
- package/dist/{run-with-concurrency-BFR3ReeF.js → run-with-concurrency-FczpX8ng.js} +4 -4
- package/dist/runtime-whatsapp-login.runtime-BqOsE5As.js +13 -0
- package/dist/runtime-whatsapp-outbound.runtime-D5S6mxFT.js +22 -0
- package/dist/{send-DjL7KlMV.js → send-BNsV-D2Y.js} +8 -8
- package/dist/{send-Do7hKDL9.js → send-C-jb8X9I.js} +7 -7
- package/dist/{send-bW7jDv8D.js → send-D-Rnbdzz.js} +26 -26
- package/dist/{send-Co5Bqwuo.js → send-DX_O1OHH.js} +6 -6
- package/dist/{send-C98RfcAb.js → send-oS3t6gE6.js} +5 -5
- package/dist/{service-Dzjv6Q-l.js → service-D4y0_Q5Z.js} +1 -1
- package/dist/{service-C7cnow9v.js → service-DSqxS6_D.js} +1 -1
- package/dist/{session-QSn69XeJ.js → session-DRyURckG.js} +8 -8
- package/dist/{shared-DHo531sq.js → shared-D5DTxBPH.js} +1 -1
- package/dist/{shared-DICsiPXv.js → shared-DwNtcoQg.js} +1 -1
- package/dist/{skill-commands-Bi_jchJn.js → skill-commands-BrlAf_CG.js} +9 -9
- package/dist/{skills-CTV78w4q.js → skills-DWrRJwa-.js} +22 -22
- package/dist/slash-commands.runtime-JqCsKeu2.js +16 -0
- package/dist/slash-dispatch.runtime-CJQATn_-.js +56 -0
- package/dist/slash-skill-commands.runtime-C0QZlkpu.js +20 -0
- package/dist/{status-Dylkp0Eb.js → status-CVLt8rgG.js} +3 -3
- package/dist/{status-BRABC_jk.js → status-Yd0v86bV.js} +3 -3
- package/dist/{store-B89Hj8Ub.js → store-BFNH5fXG.js} +2 -2
- package/dist/subagent-registry-runtime-Qba1Avmv.js +56 -0
- package/dist/{subsystem-6v7sWnAD.js → subsystem-BaLYRf7D.js} +14 -14
- package/dist/{systemd-BqXjET4w.js → systemd-Cj2cX_ZP.js} +1 -1
- package/dist/{systemd-DgeSm0Fg.js → systemd-fP8tz4aL.js} +1 -1
- package/dist/{systemd-hints-F4o_ziad.js → systemd-hints-46PqJfaq.js} +2 -2
- package/dist/{systemd-hints-DDOoq1Ph.js → systemd-hints-BG_t__ZD.js} +2 -2
- package/dist/{systemd-linger-iIqcMjee.js → systemd-linger-6Jd9K5p2.js} +1 -1
- package/dist/{systemd-linger-B7J3aXhx.js → systemd-linger-DgK8uuKY.js} +1 -1
- package/dist/{tables-DGHzaXQz.js → tables-CnlmCLb3.js} +1 -1
- package/dist/{target-errors-CweAa7L9.js → target-errors-Df1wB-I7.js} +2 -2
- package/dist/{thinking-SdNGqtJE.js → thinking-CTpcVnlx.js} +7 -7
- package/dist/{tokens-DfbMVF9y.js → tokens-D2XhLqIz.js} +1 -1
- package/dist/{tool-images-8BKrL7Bn.js → tool-images-CElPu2en.js} +2 -2
- package/dist/{update-cli-BlSVu-pH.js → update-cli-DzneVbap.js} +12 -12
- package/dist/{update-cli-CUACfIGf.js → update-cli-n-0tDOOf.js} +11 -11
- package/dist/{web-DyCuTR9b.js → web-B1Hy4Zzy.js} +55 -55
- package/dist/{whatsapp-actions-BDkbnZVH.js → whatsapp-actions-DPszRJ8b.js} +21 -21
- package/dist/{workspace-kVMIaBrV.js → workspace-TqfVSQuO.js} +20 -20
- package/package.json +1 -1
- package/dist/deliver-runtime-_egya0QZ.js +0 -36
- package/dist/deps-send-discord.runtime-BRE0s2nz.js +0 -26
- package/dist/deps-send-imessage.runtime-DbIRBnmD.js +0 -25
- package/dist/deps-send-signal.runtime-B4h6X3o4.js +0 -24
- package/dist/deps-send-slack.runtime-BWXOnOxS.js +0 -22
- package/dist/deps-send-telegram.runtime-YvauJtgv.js +0 -27
- package/dist/deps-send-whatsapp.runtime-CiG6xd2e.js +0 -60
- package/dist/image-runtime-D7n4dID4.js +0 -29
- package/dist/manager-runtime-BMygJEz3.js +0 -18
- package/dist/pi-model-discovery-runtime-Dpu7Jm2L.js +0 -11
- package/dist/runtime-whatsapp-login.runtime-DSR-m0FW.js +0 -13
- package/dist/runtime-whatsapp-outbound.runtime-Blywd_bv.js +0 -22
- package/dist/slash-commands.runtime-63MUmCBt.js +0 -16
- package/dist/slash-dispatch.runtime-DuJRl-LD.js +0 -56
- package/dist/slash-skill-commands.runtime-B3MSSAQ-.js +0 -20
- package/dist/subagent-registry-runtime-COygB9b1.js +0 -56
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { t as createSubsystemLogger, w as resolvePreferredSquidClawTmpDir } from "./subsystem-
|
|
2
|
-
import { D as isNotFoundPathError, O as isPathInside } from "./workspace-
|
|
3
|
-
import { a as CONFIG_DIR } from "./logger-
|
|
4
|
-
import { Ct as isPrivateOrLoopbackIpAddress, St as isLoopbackIpAddress, X as loadConfig, wt as normalizeIpAddress } from "./model-selection-
|
|
5
|
-
import { a as isErrno } from "./errors-
|
|
6
|
-
import { i as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-
|
|
7
|
-
import { o as isPrivateNetworkAllowedByPolicy, s as resolvePinnedHostnameWithPolicy, t as hasProxyEnvConfigured } from "./proxy-env-
|
|
1
|
+
import { t as createSubsystemLogger, w as resolvePreferredSquidClawTmpDir } from "./subsystem-BaLYRf7D.js";
|
|
2
|
+
import { D as isNotFoundPathError, O as isPathInside } from "./workspace-TqfVSQuO.js";
|
|
3
|
+
import { a as CONFIG_DIR } from "./logger-oGKcCLZ5.js";
|
|
4
|
+
import { Ct as isPrivateOrLoopbackIpAddress, St as isLoopbackIpAddress, X as loadConfig, wt as normalizeIpAddress } from "./model-selection-DMjtmGZP.js";
|
|
5
|
+
import { a as isErrno } from "./errors-DfgAh2Ml.js";
|
|
6
|
+
import { i as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-CwHbZdFH.js";
|
|
7
|
+
import { o as isPrivateNetworkAllowedByPolicy, s as resolvePinnedHostnameWithPolicy, t as hasProxyEnvConfigured } from "./proxy-env-QUJz9VEJ.js";
|
|
8
8
|
import fs from "node:fs/promises";
|
|
9
9
|
import os from "node:os";
|
|
10
10
|
import path from "node:path";
|
|
11
|
-
import
|
|
11
|
+
import fs$1 from "node:fs";
|
|
12
12
|
import { execFileSync, spawn } from "node:child_process";
|
|
13
13
|
import { createHmac } from "node:crypto";
|
|
14
14
|
import net from "node:net";
|
|
15
15
|
import http, { createServer } from "node:http";
|
|
16
16
|
import https from "node:https";
|
|
17
|
-
import WebSocket
|
|
17
|
+
import WebSocket, { WebSocketServer } from "ws";
|
|
18
18
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
19
19
|
|
|
20
20
|
//#region src/browser/constants.ts
|
|
@@ -593,7 +593,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
593
593
|
let extensionWs = null;
|
|
594
594
|
const cdpClients = /* @__PURE__ */ new Set();
|
|
595
595
|
const connectedTargets = /* @__PURE__ */ new Map();
|
|
596
|
-
const extensionConnected = () => extensionWs?.readyState === WebSocket
|
|
596
|
+
const extensionConnected = () => extensionWs?.readyState === WebSocket.OPEN;
|
|
597
597
|
const hasConnectedTargets = () => connectedTargets.size > 0;
|
|
598
598
|
let extensionDisconnectCleanupTimer = null;
|
|
599
599
|
const extensionReconnectWaiters = /* @__PURE__ */ new Set();
|
|
@@ -645,7 +645,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
645
645
|
let nextExtensionId = 1;
|
|
646
646
|
const sendToExtension = async (payload) => {
|
|
647
647
|
const ws = extensionWs;
|
|
648
|
-
if (!ws || ws.readyState !== WebSocket
|
|
648
|
+
if (!ws || ws.readyState !== WebSocket.OPEN) throw new Error("Chrome extension not connected");
|
|
649
649
|
ws.send(JSON.stringify(payload));
|
|
650
650
|
return await new Promise((resolve, reject) => {
|
|
651
651
|
const timer = setTimeout(() => {
|
|
@@ -662,12 +662,12 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
662
662
|
const broadcastToCdpClients = (evt) => {
|
|
663
663
|
const msg = JSON.stringify(evt);
|
|
664
664
|
for (const ws of cdpClients) {
|
|
665
|
-
if (ws.readyState !== WebSocket
|
|
665
|
+
if (ws.readyState !== WebSocket.OPEN) continue;
|
|
666
666
|
ws.send(msg);
|
|
667
667
|
}
|
|
668
668
|
};
|
|
669
669
|
const sendResponseToCdp = (ws, res) => {
|
|
670
|
-
if (ws.readyState !== WebSocket
|
|
670
|
+
if (ws.readyState !== WebSocket.OPEN) return;
|
|
671
671
|
ws.send(JSON.stringify(res));
|
|
672
672
|
};
|
|
673
673
|
const dropConnectedTargetSession = (sessionId) => {
|
|
@@ -921,7 +921,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
921
921
|
rejectUpgrade(socket, 401, "Unauthorized");
|
|
922
922
|
return;
|
|
923
923
|
}
|
|
924
|
-
if (extensionWs && extensionWs.readyState !== WebSocket
|
|
924
|
+
if (extensionWs && extensionWs.readyState !== WebSocket.OPEN) {
|
|
925
925
|
try {
|
|
926
926
|
extensionWs.terminate();
|
|
927
927
|
} catch {}
|
|
@@ -954,7 +954,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
954
954
|
clearExtensionDisconnectCleanupTimer();
|
|
955
955
|
flushExtensionReconnectWaiters(true);
|
|
956
956
|
const ping = setInterval(() => {
|
|
957
|
-
if (ws.readyState !== WebSocket
|
|
957
|
+
if (ws.readyState !== WebSocket.OPEN) return;
|
|
958
958
|
ws.send(JSON.stringify({ method: "ping" }));
|
|
959
959
|
}, 5e3);
|
|
960
960
|
ws.on("message", (data) => {
|
|
@@ -1310,7 +1310,7 @@ function openCdpWebSocket(wsUrl, opts) {
|
|
|
1310
1310
|
const headers = getHeadersWithAuth(wsUrl, opts?.headers ?? {});
|
|
1311
1311
|
const handshakeTimeoutMs = typeof opts?.handshakeTimeoutMs === "number" && Number.isFinite(opts.handshakeTimeoutMs) ? Math.max(1, Math.floor(opts.handshakeTimeoutMs)) : CDP_WS_HANDSHAKE_TIMEOUT_MS;
|
|
1312
1312
|
const agent = getDirectAgentForCdp(wsUrl);
|
|
1313
|
-
return new WebSocket
|
|
1313
|
+
return new WebSocket(wsUrl, {
|
|
1314
1314
|
handshakeTimeout: handshakeTimeoutMs,
|
|
1315
1315
|
...Object.keys(headers).length ? { headers } : {},
|
|
1316
1316
|
...agent ? { agent } : {}
|
|
@@ -1595,7 +1595,7 @@ const CHROMIUM_EXE_NAMES = new Set([
|
|
|
1595
1595
|
]);
|
|
1596
1596
|
function exists$1(filePath) {
|
|
1597
1597
|
try {
|
|
1598
|
-
return
|
|
1598
|
+
return fs$1.existsSync(filePath);
|
|
1599
1599
|
} catch {
|
|
1600
1600
|
return false;
|
|
1601
1601
|
}
|
|
@@ -1738,7 +1738,7 @@ function findDesktopFilePath(desktopId) {
|
|
|
1738
1738
|
}
|
|
1739
1739
|
function readDesktopExecLine(desktopPath) {
|
|
1740
1740
|
try {
|
|
1741
|
-
const lines =
|
|
1741
|
+
const lines = fs$1.readFileSync(desktopPath, "utf8").split(/\r?\n/);
|
|
1742
1742
|
for (const line of lines) if (line.startsWith("Exec=")) return line.slice(5).trim();
|
|
1743
1743
|
} catch {}
|
|
1744
1744
|
return null;
|
|
@@ -1996,7 +1996,7 @@ function resolveBrowserExecutableForPlatform(resolved, platform) {
|
|
|
1996
1996
|
const LSOF_CANDIDATES = process.platform === "darwin" ? ["/usr/sbin/lsof", "/usr/bin/lsof"] : ["/usr/bin/lsof", "/usr/sbin/lsof"];
|
|
1997
1997
|
function resolveLsofCommandSync() {
|
|
1998
1998
|
for (const candidate of LSOF_CANDIDATES) try {
|
|
1999
|
-
|
|
1999
|
+
fs$1.accessSync(candidate, fs$1.constants.X_OK);
|
|
2000
2000
|
return candidate;
|
|
2001
2001
|
} catch {}
|
|
2002
2002
|
return "lsof";
|
|
@@ -2041,8 +2041,8 @@ function decoratedMarkerPath(userDataDir) {
|
|
|
2041
2041
|
}
|
|
2042
2042
|
function safeReadJson(filePath) {
|
|
2043
2043
|
try {
|
|
2044
|
-
if (!
|
|
2045
|
-
const raw =
|
|
2044
|
+
if (!fs$1.existsSync(filePath)) return null;
|
|
2045
|
+
const raw = fs$1.readFileSync(filePath, "utf-8");
|
|
2046
2046
|
const parsed = JSON.parse(raw);
|
|
2047
2047
|
if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) return null;
|
|
2048
2048
|
return parsed;
|
|
@@ -2051,8 +2051,8 @@ function safeReadJson(filePath) {
|
|
|
2051
2051
|
}
|
|
2052
2052
|
}
|
|
2053
2053
|
function safeWriteJson(filePath, data) {
|
|
2054
|
-
|
|
2055
|
-
|
|
2054
|
+
fs$1.mkdirSync(path.dirname(filePath), { recursive: true });
|
|
2055
|
+
fs$1.writeFileSync(filePath, JSON.stringify(data, null, 2));
|
|
2056
2056
|
}
|
|
2057
2057
|
function setDeep(obj, keys, value) {
|
|
2058
2058
|
let node = obj;
|
|
@@ -2179,7 +2179,7 @@ function decorateSquidClawProfile(userDataDir, opts) {
|
|
|
2179
2179
|
}
|
|
2180
2180
|
safeWriteJson(preferencesPath, prefs);
|
|
2181
2181
|
try {
|
|
2182
|
-
|
|
2182
|
+
fs$1.writeFileSync(decoratedMarkerPath(userDataDir), `${Date.now()}\n`, "utf-8");
|
|
2183
2183
|
} catch {}
|
|
2184
2184
|
}
|
|
2185
2185
|
function ensureProfileCleanExit(userDataDir) {
|
|
@@ -2195,7 +2195,7 @@ function ensureProfileCleanExit(userDataDir) {
|
|
|
2195
2195
|
const log = createSubsystemLogger("browser").child("chrome");
|
|
2196
2196
|
function exists(filePath) {
|
|
2197
2197
|
try {
|
|
2198
|
-
return
|
|
2198
|
+
return fs$1.existsSync(filePath);
|
|
2199
2199
|
} catch {
|
|
2200
2200
|
return false;
|
|
2201
2201
|
}
|
|
@@ -2293,7 +2293,7 @@ async function launchSquidClawChrome(resolved, profile) {
|
|
|
2293
2293
|
const exe = resolveBrowserExecutable(resolved);
|
|
2294
2294
|
if (!exe) throw new Error("No supported browser found (Chrome/Brave/Edge/Chromium on macOS, Linux, or Windows).");
|
|
2295
2295
|
const userDataDir = resolveSquidClawUserDataDir(profile.name);
|
|
2296
|
-
|
|
2296
|
+
fs$1.mkdirSync(userDataDir, { recursive: true });
|
|
2297
2297
|
const needsDecorate = !isProfileDecorated(userDataDir, profile.name, (profile.color ?? DEFAULT_SQUIDCLAW_BROWSER_COLOR).toUpperCase());
|
|
2298
2298
|
const spawnOnce = () => {
|
|
2299
2299
|
const args = [
|
package/dist/cli/daemon-cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Legacy shim for pre-tsdown update-cli imports.
|
|
2
|
-
import * as daemonCli from "../daemon-cli-
|
|
2
|
+
import * as daemonCli from "../daemon-cli-Cei6iOpb.js";
|
|
3
3
|
export const registerDaemonCli = daemonCli.t.registerDaemonCli;
|
|
4
4
|
export const runDaemonInstall = daemonCli.s;
|
|
5
5
|
export const runDaemonRestart = daemonCli.r;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { F as getPrimaryCommand, R as hasHelpOrVersion } from "./globals-BrhVUl-N.js";
|
|
3
|
-
import { i as registerSubCliCommands, o as removeCommandByName, s as reparseProgramFromActionArgs } from "./register.subclis-
|
|
3
|
+
import { i as registerSubCliCommands, o as removeCommandByName, s as reparseProgramFromActionArgs } from "./register.subclis-ByA800z9.js";
|
|
4
4
|
|
|
5
5
|
//#region src/cli/program/command-registry.ts
|
|
6
6
|
var command_registry_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -22,7 +22,7 @@ const coreEntries = [
|
|
|
22
22
|
hasSubcommands: false
|
|
23
23
|
}],
|
|
24
24
|
register: async ({ program }) => {
|
|
25
|
-
(await import("./register.setup-
|
|
25
|
+
(await import("./register.setup-BFTYtdMo.js")).registerSetupCommand(program);
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
{
|
|
@@ -32,7 +32,7 @@ const coreEntries = [
|
|
|
32
32
|
hasSubcommands: false
|
|
33
33
|
}],
|
|
34
34
|
register: async ({ program }) => {
|
|
35
|
-
(await import("./register.onboard-
|
|
35
|
+
(await import("./register.onboard-B4V9T5wP.js")).registerOnboardCommand(program);
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
{
|
|
@@ -42,7 +42,7 @@ const coreEntries = [
|
|
|
42
42
|
hasSubcommands: false
|
|
43
43
|
}],
|
|
44
44
|
register: async ({ program }) => {
|
|
45
|
-
(await import("./register.configure-
|
|
45
|
+
(await import("./register.configure-BzHcmwsR.js")).registerConfigureCommand(program);
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
{
|
|
@@ -52,7 +52,7 @@ const coreEntries = [
|
|
|
52
52
|
hasSubcommands: true
|
|
53
53
|
}],
|
|
54
54
|
register: async ({ program }) => {
|
|
55
|
-
(await import("./config-cli-
|
|
55
|
+
(await import("./config-cli-H7r8kpLv.js")).registerConfigCli(program);
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
{
|
|
@@ -79,7 +79,7 @@ const coreEntries = [
|
|
|
79
79
|
}
|
|
80
80
|
],
|
|
81
81
|
register: async ({ program }) => {
|
|
82
|
-
(await import("./register.maintenance-
|
|
82
|
+
(await import("./register.maintenance-QqPonMiO.js")).registerMaintenanceCommands(program);
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
85
|
{
|
|
@@ -135,7 +135,7 @@ const coreEntries = [
|
|
|
135
135
|
}
|
|
136
136
|
],
|
|
137
137
|
register: async ({ program }) => {
|
|
138
|
-
(await import("./register.status-health-sessions-
|
|
138
|
+
(await import("./register.status-health-sessions-DeqEd2hV.js")).registerStatusHealthSessionsCommands(program);
|
|
139
139
|
}
|
|
140
140
|
},
|
|
141
141
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { D as isPlainObject, u as escapeRegExp } from "./logger-
|
|
2
|
-
import { Jt as getActivePluginRegistry, br as DEFAULT_MODEL, u as resolveConfiguredModelRef, xr as DEFAULT_PROVIDER } from "./model-selection-
|
|
3
|
-
import { f as listChannelDocks, r as listThinkingLevels } from "./thinking-
|
|
4
|
-
import { r as normalizeChannelId } from "./plugins-
|
|
1
|
+
import { D as isPlainObject, u as escapeRegExp } from "./logger-oGKcCLZ5.js";
|
|
2
|
+
import { Jt as getActivePluginRegistry, br as DEFAULT_MODEL, u as resolveConfiguredModelRef, xr as DEFAULT_PROVIDER } from "./model-selection-DMjtmGZP.js";
|
|
3
|
+
import { f as listChannelDocks, r as listThinkingLevels } from "./thinking-CTpcVnlx.js";
|
|
4
|
+
import { r as normalizeChannelId } from "./plugins-CmdmAU0K.js";
|
|
5
5
|
|
|
6
6
|
//#region src/config/commands.ts
|
|
7
7
|
function resolveAutoDefault(providerId) {
|
|
@@ -4,7 +4,7 @@ import { p as theme } from "./globals-xfUIfxbE.js";
|
|
|
4
4
|
import { h as pathExists } from "./utils-DMGXr25O.js";
|
|
5
5
|
import { i as routeLogsToStderr } from "./subsystem-DC87CPVS.js";
|
|
6
6
|
import { t as formatDocsLink } from "./links-De9M3AmU.js";
|
|
7
|
-
import { a as registerCoreCliByName, c as getSubCliEntries, l as registerSubCliByName, r as getCoreCliCommandNames, t as getProgramContext } from "./program-context-
|
|
7
|
+
import { a as registerCoreCliByName, c as getSubCliEntries, l as registerSubCliByName, r as getCoreCliCommandNames, t as getProgramContext } from "./program-context-BCtljZU1.js";
|
|
8
8
|
import os from "node:os";
|
|
9
9
|
import path from "node:path";
|
|
10
10
|
import fs from "node:fs/promises";
|
|
@@ -4,8 +4,8 @@ import { g as resolveStateDir } from "./paths-CHIu6D1E.js";
|
|
|
4
4
|
import { i as routeLogsToStderr } from "./subsystem-Bw5n50gj.js";
|
|
5
5
|
import { m as pathExists } from "./utils-D6vohX1h.js";
|
|
6
6
|
import { t as formatDocsLink } from "./links-Dye6HsRG.js";
|
|
7
|
-
import { n as getSubCliEntries, r as registerSubCliByName } from "./register.subclis-
|
|
8
|
-
import { i as registerCoreCliByName, n as getCoreCliCommandNames } from "./command-registry-
|
|
7
|
+
import { n as getSubCliEntries, r as registerSubCliByName } from "./register.subclis-ByA800z9.js";
|
|
8
|
+
import { i as registerCoreCliByName, n as getCoreCliCommandNames } from "./command-registry-DzmQY97S.js";
|
|
9
9
|
import { t as getProgramContext } from "./program-context-DKVuITe2.js";
|
|
10
10
|
import os from "node:os";
|
|
11
11
|
import path from "node:path";
|
|
@@ -305,7 +305,7 @@ async function runConfigValidate(opts = {}) {
|
|
|
305
305
|
}
|
|
306
306
|
function registerConfigCli(program) {
|
|
307
307
|
const cmd = program.command("config").description("Non-interactive config helpers (get/set/unset/file/validate). Run without subcommand for the setup wizard.").addHelpText("after", () => `\n${theme.muted("Docs:")} ${formatDocsLink("/cli/config", "docs.squidclaw.dev/cli/config")}\n`).option("--section <section>", "Configure wizard sections (repeatable). Use with no subcommand.", (value, previous) => [...previous, value], []).action(async (opts) => {
|
|
308
|
-
const { configureCommandFromSectionsArg } = await import("./configure-
|
|
308
|
+
const { configureCommandFromSectionsArg } = await import("./configure-DB07e__W.js").then((n) => n.t);
|
|
309
309
|
await configureCommandFromSectionsArg(opts.section, defaultRuntime);
|
|
310
310
|
});
|
|
311
311
|
cmd.command("get").description("Get a config value by dot path").argument("<path>", "Config path (dot or bracket notation)").option("--json", "Output JSON", false).action(async (path, opts) => {
|
|
@@ -305,7 +305,7 @@ async function runConfigValidate(opts = {}) {
|
|
|
305
305
|
}
|
|
306
306
|
function registerConfigCli(program) {
|
|
307
307
|
const cmd = program.command("config").description("Non-interactive config helpers (get/set/unset/file/validate). Run without subcommand for the setup wizard.").addHelpText("after", () => `\n${theme.muted("Docs:")} ${formatDocsLink("/cli/config", "docs.squidclaw.dev/cli/config")}\n`).option("--section <section>", "Configure wizard sections (repeatable). Use with no subcommand.", (value, previous) => [...previous, value], []).action(async (opts) => {
|
|
308
|
-
const { configureCommandFromSectionsArg } = await import("./configure-
|
|
308
|
+
const { configureCommandFromSectionsArg } = await import("./configure-C6-GTzTG.js").then((n) => n.t);
|
|
309
309
|
await configureCommandFromSectionsArg(opts.section, defaultRuntime);
|
|
310
310
|
});
|
|
311
311
|
cmd.command("get").description("Get a config value by dot path").argument("<path>", "Config path (dot or bracket notation)").option("--json", "Output JSON", false).action(async (path, opts) => {
|
|
@@ -16,14 +16,14 @@ import { t as createClackPrompter } from "./clack-prompter-DU01bRlk.js";
|
|
|
16
16
|
import { r as setupChannels, t as noteChannelStatus } from "./onboard-channels-Dt3KBZ1w.js";
|
|
17
17
|
import { n as gatewayInstallErrorHint, t as buildGatewayInstallPlan } from "./daemon-install-helpers-CJtiW2RE.js";
|
|
18
18
|
import { n as GATEWAY_DAEMON_RUNTIME_OPTIONS, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-Dgg-ogyc.js";
|
|
19
|
-
import { t as resolveGatewayService } from "./service-
|
|
19
|
+
import { t as resolveGatewayService } from "./service-DSqxS6_D.js";
|
|
20
20
|
import { r as healthCommand } from "./health-xBOt7lp3.js";
|
|
21
21
|
import { t as ensureControlUiAssetsBuilt } from "./control-ui-assets-BYEy341x.js";
|
|
22
22
|
import { n as logConfigUpdated } from "./logging-ZAeFsd9K.js";
|
|
23
23
|
import { n as promptAuthChoiceGrouped } from "./auth-choice-prompt-4mupmvzh.js";
|
|
24
24
|
import { i as applyAuthChoice, n as resolvePreferredProviderForAuthChoice } from "./auth-choice-DLlZ8SJr.js";
|
|
25
25
|
import { a as promptDefaultModel, n as applyModelFallbacksFromSelection, o as promptModelAllowlist, r as applyPrimaryModel, t as applyModelAllowlist } from "./model-picker-CeqG7aGB.js";
|
|
26
|
-
import { t as ensureSystemdUserLingerInteractive } from "./systemd-linger-
|
|
26
|
+
import { t as ensureSystemdUserLingerInteractive } from "./systemd-linger-6Jd9K5p2.js";
|
|
27
27
|
import { a as promptCustomApiConfig } from "./onboard-custom-DvQCIxyh.js";
|
|
28
28
|
import { a as maybeAddTailnetOriginToControlUiAllowedOrigins, i as TAILSCALE_MISSING_BIN_NOTE_LINES, n as TAILSCALE_DOCS_LINES, r as TAILSCALE_EXPOSURE_OPTIONS, t as validateIPv4AddressInput } from "./ipv4-Cl0LHiMy.js";
|
|
29
29
|
import { t as formatHealthCheckFailure } from "./health-format-eNDYxTNS.js";
|
|
@@ -16,14 +16,14 @@ import { t as createClackPrompter } from "./clack-prompter-Bx0vssUh.js";
|
|
|
16
16
|
import { r as setupChannels, t as noteChannelStatus } from "./onboard-channels-BB39kGye.js";
|
|
17
17
|
import { n as gatewayInstallErrorHint, t as buildGatewayInstallPlan } from "./daemon-install-helpers-a4pGEsbA.js";
|
|
18
18
|
import { n as GATEWAY_DAEMON_RUNTIME_OPTIONS, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-Di8BSZyD.js";
|
|
19
|
-
import { t as resolveGatewayService } from "./service-
|
|
19
|
+
import { t as resolveGatewayService } from "./service-D4y0_Q5Z.js";
|
|
20
20
|
import { r as healthCommand } from "./health-CrEBegrW.js";
|
|
21
21
|
import { t as ensureControlUiAssetsBuilt } from "./control-ui-assets-Bz7TCLpb.js";
|
|
22
22
|
import { n as logConfigUpdated } from "./logging-AGpu_2Pc.js";
|
|
23
23
|
import { n as promptAuthChoiceGrouped } from "./auth-choice-prompt-D8RKb8oM.js";
|
|
24
24
|
import { i as applyAuthChoice, n as resolvePreferredProviderForAuthChoice } from "./auth-choice-Qh2aWSu3.js";
|
|
25
25
|
import { a as promptDefaultModel, n as applyModelFallbacksFromSelection, o as promptModelAllowlist, r as applyPrimaryModel, t as applyModelAllowlist } from "./model-picker-DVY4bpQj.js";
|
|
26
|
-
import { t as ensureSystemdUserLingerInteractive } from "./systemd-linger-
|
|
26
|
+
import { t as ensureSystemdUserLingerInteractive } from "./systemd-linger-DgK8uuKY.js";
|
|
27
27
|
import { a as promptCustomApiConfig } from "./onboard-custom-Cq4RYUaZ.js";
|
|
28
28
|
import { a as maybeAddTailnetOriginToControlUiAllowedOrigins, i as TAILSCALE_MISSING_BIN_NOTE_LINES, n as TAILSCALE_DOCS_LINES, r as TAILSCALE_EXPOSURE_OPTIONS, t as validateIPv4AddressInput } from "./ipv4-BLo8Kwlg.js";
|
|
29
29
|
import { t as formatHealthCheckFailure } from "./health-format-B3bJdIC6.js";
|
|
@@ -22,12 +22,12 @@ import { n as inheritOptionFromParent } from "./command-options-D0bXi5Pl.js";
|
|
|
22
22
|
import { t as formatConfigIssueLine } from "./issue-format-CJF4zrPW.js";
|
|
23
23
|
import { t as buildGatewayInstallPlan } from "./daemon-install-helpers-a4pGEsbA.js";
|
|
24
24
|
import { r as isGatewayDaemonRuntime, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-Di8BSZyD.js";
|
|
25
|
-
import { s as resolveGatewayLogPaths, t as resolveGatewayService } from "./service-
|
|
26
|
-
import { a as createCliStatusTextStyles, c as parsePortFromArgs, d as renderRuntimeHints, f as resolveRuntimeStatusColor, g as installDaemonServiceAndEmit, h as createDaemonActionContext, i as runServiceUninstall, l as pickProbeHostForBind, m as buildDaemonServiceSnapshot, n as runServiceStart, o as filterDaemonEnv, p as safeDaemonEnv, r as runServiceStop, s as normalizeListenerAddress, t as runServiceRestart, u as renderGatewayServiceStartHints } from "./lifecycle-core-
|
|
27
|
-
import { i as auditGatewayServiceConfig, n as renderSystemdUnavailableHints, s as formatRuntimeStatus, t as isSystemdUnavailableDetail } from "./systemd-hints-
|
|
25
|
+
import { s as resolveGatewayLogPaths, t as resolveGatewayService } from "./service-D4y0_Q5Z.js";
|
|
26
|
+
import { a as createCliStatusTextStyles, c as parsePortFromArgs, d as renderRuntimeHints, f as resolveRuntimeStatusColor, g as installDaemonServiceAndEmit, h as createDaemonActionContext, i as runServiceUninstall, l as pickProbeHostForBind, m as buildDaemonServiceSnapshot, n as runServiceStart, o as filterDaemonEnv, p as safeDaemonEnv, r as runServiceStop, s as normalizeListenerAddress, t as runServiceRestart, u as renderGatewayServiceStartHints } from "./lifecycle-core-DohWpW3N.js";
|
|
27
|
+
import { i as auditGatewayServiceConfig, n as renderSystemdUnavailableHints, s as formatRuntimeStatus, t as isSystemdUnavailableDetail } from "./systemd-hints-BG_t__ZD.js";
|
|
28
28
|
import { t as parsePort } from "./parse-port-OBGBQwYB.js";
|
|
29
|
-
import { t as readLastGatewayErrorLine } from "./diagnostics-
|
|
30
|
-
import { n as renderGatewayServiceCleanupHints, t as findExtraGatewayServices } from "./inspect-
|
|
29
|
+
import { t as readLastGatewayErrorLine } from "./diagnostics-DZ99A0EW.js";
|
|
30
|
+
import { n as renderGatewayServiceCleanupHints, t as findExtraGatewayServices } from "./inspect-C3PHuODr.js";
|
|
31
31
|
|
|
32
32
|
//#region src/cli/daemon-cli/install.ts
|
|
33
33
|
async function runDaemonInstall(opts) {
|
|
@@ -22,12 +22,12 @@ import { n as inheritOptionFromParent } from "./command-options-DVCpMofi.js";
|
|
|
22
22
|
import { t as formatConfigIssueLine } from "./issue-format-CVVBG2XC.js";
|
|
23
23
|
import { t as buildGatewayInstallPlan } from "./daemon-install-helpers-CJtiW2RE.js";
|
|
24
24
|
import { r as isGatewayDaemonRuntime, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-Dgg-ogyc.js";
|
|
25
|
-
import { s as resolveGatewayLogPaths, t as resolveGatewayService } from "./service-
|
|
26
|
-
import { a as createCliStatusTextStyles, c as parsePortFromArgs, d as renderRuntimeHints, f as resolveRuntimeStatusColor, g as installDaemonServiceAndEmit, h as createDaemonActionContext, i as runServiceUninstall, l as pickProbeHostForBind, m as buildDaemonServiceSnapshot, n as runServiceStart, o as filterDaemonEnv, p as safeDaemonEnv, r as runServiceStop, s as normalizeListenerAddress, t as runServiceRestart, u as renderGatewayServiceStartHints } from "./lifecycle-core-
|
|
27
|
-
import { i as auditGatewayServiceConfig, n as renderSystemdUnavailableHints, s as formatRuntimeStatus, t as isSystemdUnavailableDetail } from "./systemd-hints-
|
|
25
|
+
import { s as resolveGatewayLogPaths, t as resolveGatewayService } from "./service-DSqxS6_D.js";
|
|
26
|
+
import { a as createCliStatusTextStyles, c as parsePortFromArgs, d as renderRuntimeHints, f as resolveRuntimeStatusColor, g as installDaemonServiceAndEmit, h as createDaemonActionContext, i as runServiceUninstall, l as pickProbeHostForBind, m as buildDaemonServiceSnapshot, n as runServiceStart, o as filterDaemonEnv, p as safeDaemonEnv, r as runServiceStop, s as normalizeListenerAddress, t as runServiceRestart, u as renderGatewayServiceStartHints } from "./lifecycle-core-DHOdNE6w.js";
|
|
27
|
+
import { i as auditGatewayServiceConfig, n as renderSystemdUnavailableHints, s as formatRuntimeStatus, t as isSystemdUnavailableDetail } from "./systemd-hints-46PqJfaq.js";
|
|
28
28
|
import { t as parsePort } from "./parse-port-CboE2EQm.js";
|
|
29
|
-
import { t as readLastGatewayErrorLine } from "./diagnostics
|
|
30
|
-
import { n as renderGatewayServiceCleanupHints, t as findExtraGatewayServices } from "./inspect-
|
|
29
|
+
import { t as readLastGatewayErrorLine } from "./diagnostics--O6mo6KH.js";
|
|
30
|
+
import { n as renderGatewayServiceCleanupHints, t as findExtraGatewayServices } from "./inspect-4c1uL0x5.js";
|
|
31
31
|
|
|
32
32
|
//#region src/cli/daemon-cli/install.ts
|
|
33
33
|
async function runDaemonInstall(opts) {
|
package/dist/daemon-cli.js
CHANGED
|
@@ -17943,7 +17943,7 @@ async function isSystemdServiceEnabled(args) {
|
|
|
17943
17943
|
if (res.code === 0) return true;
|
|
17944
17944
|
const detail = readSystemctlDetail(res);
|
|
17945
17945
|
if (isSystemctlMissing(detail) || isSystemdUnitNotEnabled(detail)) return false;
|
|
17946
|
-
|
|
17946
|
+
return false;
|
|
17947
17947
|
}
|
|
17948
17948
|
async function readSystemdServiceRuntime(env = process.env) {
|
|
17949
17949
|
try {
|
|
@@ -10,9 +10,9 @@ import "./runtime-guard-pMNmDPEU.js";
|
|
|
10
10
|
import "./note-CBt9wSWa.js";
|
|
11
11
|
import { n as gatewayInstallErrorHint, t as buildGatewayInstallPlan } from "./daemon-install-helpers-a4pGEsbA.js";
|
|
12
12
|
import { r as isGatewayDaemonRuntime, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-Di8BSZyD.js";
|
|
13
|
-
import { r as isSystemdUserServiceAvailable } from "./systemd-
|
|
14
|
-
import { t as resolveGatewayService } from "./service-
|
|
15
|
-
import { n as ensureSystemdUserLingerNonInteractive } from "./systemd-linger-
|
|
13
|
+
import { r as isSystemdUserServiceAvailable } from "./systemd-fP8tz4aL.js";
|
|
14
|
+
import { t as resolveGatewayService } from "./service-D4y0_Q5Z.js";
|
|
15
|
+
import { n as ensureSystemdUserLingerNonInteractive } from "./systemd-linger-DgK8uuKY.js";
|
|
16
16
|
|
|
17
17
|
//#region src/commands/onboard-non-interactive/local/daemon-install.ts
|
|
18
18
|
async function installGatewayDaemonNonInteractive(params) {
|
|
@@ -11,9 +11,9 @@ import "./note-IoQo8Ol0.js";
|
|
|
11
11
|
import { n as gatewayInstallErrorHint, t as buildGatewayInstallPlan } from "./daemon-install-helpers-CJtiW2RE.js";
|
|
12
12
|
import "./runtime-guard-BPoq8vFM.js";
|
|
13
13
|
import { r as isGatewayDaemonRuntime, t as DEFAULT_GATEWAY_DAEMON_RUNTIME } from "./daemon-runtime-Dgg-ogyc.js";
|
|
14
|
-
import { r as isSystemdUserServiceAvailable } from "./systemd-
|
|
15
|
-
import { t as resolveGatewayService } from "./service-
|
|
16
|
-
import { n as ensureSystemdUserLingerNonInteractive } from "./systemd-linger-
|
|
14
|
+
import { r as isSystemdUserServiceAvailable } from "./systemd-Cj2cX_ZP.js";
|
|
15
|
+
import { t as resolveGatewayService } from "./service-DSqxS6_D.js";
|
|
16
|
+
import { n as ensureSystemdUserLingerNonInteractive } from "./systemd-linger-6Jd9K5p2.js";
|
|
17
17
|
|
|
18
18
|
//#region src/commands/onboard-non-interactive/local/daemon-install.ts
|
|
19
19
|
async function installGatewayDaemonNonInteractive(params) {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { c as resolveStateDir } from "./paths-
|
|
2
|
-
import { t as createSubsystemLogger, u as logVerbose } from "./subsystem-
|
|
3
|
-
import { G as normalizeAccountId, K as normalizeOptionalAccountId } from "./workspace-
|
|
4
|
-
import { Jt as getActivePluginRegistry, Xt as getActivePluginRegistryVersion } from "./model-selection-
|
|
5
|
-
import { r as createInternalHookEvent, s as triggerInternalHook } from "./legacy-names-
|
|
6
|
-
import { d as getChannelDock } from "./thinking-
|
|
7
|
-
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-
|
|
8
|
-
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-
|
|
1
|
+
import { c as resolveStateDir } from "./paths-CSdAWKDO.js";
|
|
2
|
+
import { t as createSubsystemLogger, u as logVerbose } from "./subsystem-BaLYRf7D.js";
|
|
3
|
+
import { G as normalizeAccountId, K as normalizeOptionalAccountId } from "./workspace-TqfVSQuO.js";
|
|
4
|
+
import { Jt as getActivePluginRegistry, Xt as getActivePluginRegistryVersion } from "./model-selection-DMjtmGZP.js";
|
|
5
|
+
import { r as createInternalHookEvent, s as triggerInternalHook } from "./legacy-names-B0wgIP0Q.js";
|
|
6
|
+
import { d as getChannelDock } from "./thinking-CTpcVnlx.js";
|
|
7
|
+
import { i as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-D2XhLqIz.js";
|
|
8
|
+
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-CmdmAU0K.js";
|
|
9
9
|
import { n as generateSecureUuid } from "./secure-random-CXrBi7Jq.js";
|
|
10
10
|
import { r as parseTelegramTarget } from "./targets-BiE9e9-P.js";
|
|
11
|
-
import { H as resolveMirroredTranscriptText, V as appendAssistantMessageToSessionTranscript, ct as parseInlineDirectives, i as isMessagingToolDuplicate } from "./pi-embedded-helpers-
|
|
12
|
-
import { i as getAgentScopedMediaLocalRoots } from "./fetch-
|
|
13
|
-
import { d as chunkMarkdownTextWithMode, h as resolveTextChunkLimit, l as chunkByParagraph, m as resolveChunkMode, s as resolveMarkdownTableMode, v as parseFenceSpans } from "./ir-
|
|
14
|
-
import { c as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-
|
|
11
|
+
import { H as resolveMirroredTranscriptText, V as appendAssistantMessageToSessionTranscript, ct as parseInlineDirectives, i as isMessagingToolDuplicate } from "./pi-embedded-helpers-D2Oonz_1.js";
|
|
12
|
+
import { i as getAgentScopedMediaLocalRoots } from "./fetch-DdiB5_OX.js";
|
|
13
|
+
import { d as chunkMarkdownTextWithMode, h as resolveTextChunkLimit, l as chunkByParagraph, m as resolveChunkMode, s as resolveMarkdownTableMode, v as parseFenceSpans } from "./ir-D_GD01cg.js";
|
|
14
|
+
import { c as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-oS3t6gE6.js";
|
|
15
15
|
import path from "node:path";
|
|
16
|
-
import
|
|
16
|
+
import fs from "node:fs";
|
|
17
17
|
|
|
18
18
|
//#region src/plugins/hooks.ts
|
|
19
19
|
/**
|
|
@@ -1081,11 +1081,11 @@ function resolveFailedDir(stateDir) {
|
|
|
1081
1081
|
/** Ensure the queue directory (and failed/ subdirectory) exist. */
|
|
1082
1082
|
async function ensureQueueDir(stateDir) {
|
|
1083
1083
|
const queueDir = resolveQueueDir(stateDir);
|
|
1084
|
-
await
|
|
1084
|
+
await fs.promises.mkdir(queueDir, {
|
|
1085
1085
|
recursive: true,
|
|
1086
1086
|
mode: 448
|
|
1087
1087
|
});
|
|
1088
|
-
await
|
|
1088
|
+
await fs.promises.mkdir(resolveFailedDir(stateDir), {
|
|
1089
1089
|
recursive: true,
|
|
1090
1090
|
mode: 448
|
|
1091
1091
|
});
|
|
@@ -1112,18 +1112,18 @@ async function enqueueDelivery(params, stateDir) {
|
|
|
1112
1112
|
const filePath = path.join(queueDir, `${id}.json`);
|
|
1113
1113
|
const tmp = `${filePath}.${process.pid}.tmp`;
|
|
1114
1114
|
const json = JSON.stringify(entry, null, 2);
|
|
1115
|
-
await
|
|
1115
|
+
await fs.promises.writeFile(tmp, json, {
|
|
1116
1116
|
encoding: "utf-8",
|
|
1117
1117
|
mode: 384
|
|
1118
1118
|
});
|
|
1119
|
-
await
|
|
1119
|
+
await fs.promises.rename(tmp, filePath);
|
|
1120
1120
|
return id;
|
|
1121
1121
|
}
|
|
1122
1122
|
/** Remove a successfully delivered entry from the queue. */
|
|
1123
1123
|
async function ackDelivery(id, stateDir) {
|
|
1124
1124
|
const filePath = path.join(resolveQueueDir(stateDir), `${id}.json`);
|
|
1125
1125
|
try {
|
|
1126
|
-
await
|
|
1126
|
+
await fs.promises.unlink(filePath);
|
|
1127
1127
|
} catch (err) {
|
|
1128
1128
|
if ((err && typeof err === "object" && "code" in err ? String(err.code) : null) !== "ENOENT") throw err;
|
|
1129
1129
|
}
|
|
@@ -1131,17 +1131,17 @@ async function ackDelivery(id, stateDir) {
|
|
|
1131
1131
|
/** Update a queue entry after a failed delivery attempt. */
|
|
1132
1132
|
async function failDelivery(id, error, stateDir) {
|
|
1133
1133
|
const filePath = path.join(resolveQueueDir(stateDir), `${id}.json`);
|
|
1134
|
-
const raw = await
|
|
1134
|
+
const raw = await fs.promises.readFile(filePath, "utf-8");
|
|
1135
1135
|
const entry = JSON.parse(raw);
|
|
1136
1136
|
entry.retryCount += 1;
|
|
1137
1137
|
entry.lastAttemptAt = Date.now();
|
|
1138
1138
|
entry.lastError = error;
|
|
1139
1139
|
const tmp = `${filePath}.${process.pid}.tmp`;
|
|
1140
|
-
await
|
|
1140
|
+
await fs.promises.writeFile(tmp, JSON.stringify(entry, null, 2), {
|
|
1141
1141
|
encoding: "utf-8",
|
|
1142
1142
|
mode: 384
|
|
1143
1143
|
});
|
|
1144
|
-
await
|
|
1144
|
+
await fs.promises.rename(tmp, filePath);
|
|
1145
1145
|
}
|
|
1146
1146
|
|
|
1147
1147
|
//#endregion
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import "./run-with-concurrency-FczpX8ng.js";
|
|
2
|
+
import "./paths-CSdAWKDO.js";
|
|
3
|
+
import "./subsystem-BaLYRf7D.js";
|
|
4
|
+
import "./workspace-TqfVSQuO.js";
|
|
5
|
+
import "./logger-oGKcCLZ5.js";
|
|
6
|
+
import "./model-selection-DMjtmGZP.js";
|
|
7
|
+
import "./github-copilot-token-Cw3tAXM9.js";
|
|
8
|
+
import "./legacy-names-B0wgIP0Q.js";
|
|
9
|
+
import "./thinking-CTpcVnlx.js";
|
|
10
|
+
import "./tokens-D2XhLqIz.js";
|
|
11
|
+
import "./plugins-CmdmAU0K.js";
|
|
12
|
+
import "./accounts-CL_NXliB.js";
|
|
13
|
+
import { t as deliverOutboundPayloads } from "./deliver-BTBMhYBV.js";
|
|
14
|
+
import "./accounts-F7tGwezI.js";
|
|
15
|
+
import "./image-ops-bdrMTILs.js";
|
|
16
|
+
import "./pi-embedded-helpers-D2Oonz_1.js";
|
|
17
|
+
import "./chrome-DUgIvuXI.js";
|
|
18
|
+
import "./frontmatter-CjKtFduT.js";
|
|
19
|
+
import "./skills-DWrRJwa-.js";
|
|
20
|
+
import "./path-alias-guards-Cpsiv2KL.js";
|
|
21
|
+
import "./redact-NmPEVjIo.js";
|
|
22
|
+
import "./errors-DfgAh2Ml.js";
|
|
23
|
+
import "./fs-safe-CwHbZdFH.js";
|
|
24
|
+
import "./proxy-env-QUJz9VEJ.js";
|
|
25
|
+
import "./store-BFNH5fXG.js";
|
|
26
|
+
import "./accounts-LA308FHj.js";
|
|
27
|
+
import "./paths-CXClY8zC.js";
|
|
28
|
+
import "./tool-images-CElPu2en.js";
|
|
29
|
+
import "./fetch-DdiB5_OX.js";
|
|
30
|
+
import "./fetch-guard-CEV5qBHc.js";
|
|
31
|
+
import "./ir-D_GD01cg.js";
|
|
32
|
+
import "./fetch-tZXOZ9FV.js";
|
|
33
|
+
import "./send-oS3t6gE6.js";
|
|
34
|
+
import "./outbound-attachment-PwEbEhAL.js";
|
|
35
|
+
|
|
36
|
+
export { deliverOutboundPayloads };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import "./run-with-concurrency-FczpX8ng.js";
|
|
2
|
+
import "./paths-CSdAWKDO.js";
|
|
3
|
+
import "./subsystem-BaLYRf7D.js";
|
|
4
|
+
import "./workspace-TqfVSQuO.js";
|
|
5
|
+
import "./logger-oGKcCLZ5.js";
|
|
6
|
+
import "./model-selection-DMjtmGZP.js";
|
|
7
|
+
import "./github-copilot-token-Cw3tAXM9.js";
|
|
8
|
+
import "./legacy-names-B0wgIP0Q.js";
|
|
9
|
+
import "./plugins-CmdmAU0K.js";
|
|
10
|
+
import "./accounts-CL_NXliB.js";
|
|
11
|
+
import { h as sendMessageDiscord } from "./send-BNsV-D2Y.js";
|
|
12
|
+
import "./image-ops-bdrMTILs.js";
|
|
13
|
+
import "./path-alias-guards-Cpsiv2KL.js";
|
|
14
|
+
import "./redact-NmPEVjIo.js";
|
|
15
|
+
import "./errors-DfgAh2Ml.js";
|
|
16
|
+
import "./fs-safe-CwHbZdFH.js";
|
|
17
|
+
import "./proxy-env-QUJz9VEJ.js";
|
|
18
|
+
import "./fetch-DdiB5_OX.js";
|
|
19
|
+
import "./fetch-guard-CEV5qBHc.js";
|
|
20
|
+
import "./ir-D_GD01cg.js";
|
|
21
|
+
import "./render-DW7AcFdD.js";
|
|
22
|
+
import "./fetch-tZXOZ9FV.js";
|
|
23
|
+
import "./channel-activity-DPrXawu4.js";
|
|
24
|
+
import "./tables-CnlmCLb3.js";
|
|
25
|
+
|
|
26
|
+
export { sendMessageDiscord };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import "./run-with-concurrency-FczpX8ng.js";
|
|
2
|
+
import "./paths-CSdAWKDO.js";
|
|
3
|
+
import "./subsystem-BaLYRf7D.js";
|
|
4
|
+
import "./workspace-TqfVSQuO.js";
|
|
5
|
+
import "./logger-oGKcCLZ5.js";
|
|
6
|
+
import "./model-selection-DMjtmGZP.js";
|
|
7
|
+
import "./github-copilot-token-Cw3tAXM9.js";
|
|
8
|
+
import "./legacy-names-B0wgIP0Q.js";
|
|
9
|
+
import "./plugins-CmdmAU0K.js";
|
|
10
|
+
import "./accounts-CL_NXliB.js";
|
|
11
|
+
import "./image-ops-bdrMTILs.js";
|
|
12
|
+
import "./path-alias-guards-Cpsiv2KL.js";
|
|
13
|
+
import "./fs-safe-CwHbZdFH.js";
|
|
14
|
+
import "./proxy-env-QUJz9VEJ.js";
|
|
15
|
+
import "./store-BFNH5fXG.js";
|
|
16
|
+
import "./accounts-LA308FHj.js";
|
|
17
|
+
import "./fetch-DdiB5_OX.js";
|
|
18
|
+
import "./fetch-guard-CEV5qBHc.js";
|
|
19
|
+
import "./ir-D_GD01cg.js";
|
|
20
|
+
import "./render-DW7AcFdD.js";
|
|
21
|
+
import "./tables-CnlmCLb3.js";
|
|
22
|
+
import "./outbound-attachment-PwEbEhAL.js";
|
|
23
|
+
import { t as sendMessageIMessage } from "./send-C-jb8X9I.js";
|
|
24
|
+
|
|
25
|
+
export { sendMessageIMessage };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import "./run-with-concurrency-FczpX8ng.js";
|
|
2
|
+
import "./paths-CSdAWKDO.js";
|
|
3
|
+
import "./subsystem-BaLYRf7D.js";
|
|
4
|
+
import "./workspace-TqfVSQuO.js";
|
|
5
|
+
import "./logger-oGKcCLZ5.js";
|
|
6
|
+
import "./model-selection-DMjtmGZP.js";
|
|
7
|
+
import "./github-copilot-token-Cw3tAXM9.js";
|
|
8
|
+
import "./legacy-names-B0wgIP0Q.js";
|
|
9
|
+
import "./plugins-CmdmAU0K.js";
|
|
10
|
+
import "./accounts-CL_NXliB.js";
|
|
11
|
+
import "./accounts-F7tGwezI.js";
|
|
12
|
+
import "./image-ops-bdrMTILs.js";
|
|
13
|
+
import "./path-alias-guards-Cpsiv2KL.js";
|
|
14
|
+
import "./fs-safe-CwHbZdFH.js";
|
|
15
|
+
import "./proxy-env-QUJz9VEJ.js";
|
|
16
|
+
import "./store-BFNH5fXG.js";
|
|
17
|
+
import "./fetch-DdiB5_OX.js";
|
|
18
|
+
import "./fetch-guard-CEV5qBHc.js";
|
|
19
|
+
import "./ir-D_GD01cg.js";
|
|
20
|
+
import "./fetch-tZXOZ9FV.js";
|
|
21
|
+
import { t as sendMessageSignal } from "./send-oS3t6gE6.js";
|
|
22
|
+
import "./outbound-attachment-PwEbEhAL.js";
|
|
23
|
+
|
|
24
|
+
export { sendMessageSignal };
|