@symerian/symi 2.6.27 → 2.6.28
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/{audio-preflight-DHTaS5U1.js → audio-preflight-BVaaZWkg.js} +4 -4
- package/dist/{audio-preflight-CPBOQV4I.js → audio-preflight-C40mKAp7.js} +4 -4
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +6 -6
- package/dist/bundled/session-memory/handler.js +6 -6
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{chrome-D2SKJnR7.js → chrome-CDJYxX5a.js} +7 -7
- package/dist/{chrome-DYZwl5Gv.js → chrome-DkaXoP36.js} +7 -7
- package/dist/{command-registry-Bx1yhamU.js → command-registry--BVAkymo.js} +4 -4
- package/dist/{completion-cli-D_AYz2S4.js → completion-cli-CMPF-UWB.js} +2 -2
- package/dist/{completion-cli-B2PZ15YR.js → completion-cli-LSZGfNYt.js} +1 -1
- package/dist/control-ui/js/app.js +78 -0
- package/dist/{deliver-C-37cZUe.js → deliver-BH0l3UKW.js} +1 -1
- package/dist/{deliver-dODxSv3b.js → deliver-C46-vyqg.js} +1 -1
- package/dist/{doctor-completion-D_FSTWSR.js → doctor-completion-3JibMuKJ.js} +1 -1
- package/dist/{doctor-completion-CUGQv1G-.js → doctor-completion-C8TRMeH9.js} +1 -1
- package/dist/entry.js +1 -1
- package/dist/extensionAPI.js +6 -6
- package/dist/{gateway-cli-DzEFTrPz.js → gateway-cli-CRAuYms0.js} +2 -2
- package/dist/{gateway-cli-CWfKNNk2.js → gateway-cli-CcBKPe7-.js} +2 -2
- package/dist/{glass-ui-ws-CPt2oeSt.js → glass-ui-ws-B2LHyjWF.js} +5 -3
- package/dist/{glass-ui-ws-D9wi6j9C.js → glass-ui-ws-odUDh4Ax.js} +5 -3
- package/dist/{image-DcpMiprB.js → image-CHzdaNJ4.js} +1 -1
- package/dist/{image-CXu8W39c.js → image-CuzFLQWC.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/llm-slug-generator.js +6 -6
- package/dist/{onboard-BWuONGKs.js → onboard-D8IHkR2A.js} +1 -1
- package/dist/{onboard-CouoVfyr.js → onboard-dIjmiymZ.js} +1 -1
- package/dist/{onboarding-BPhZezG9.js → onboarding-B-J8KGlq.js} +1 -1
- package/dist/{onboarding-nZw8yfGE.js → onboarding-DCPTymIi.js} +1 -1
- package/dist/{onboarding.finalize-N3ddj34N.js → onboarding.finalize-CqnM29uP.js} +3 -3
- package/dist/{onboarding.finalize-sHIXNhkY.js → onboarding.finalize-DYrKwuL6.js} +4 -4
- package/dist/{pi-embedded-DP-vnBs6.js → pi-embedded-BpqY8Naf.js} +16 -16
- package/dist/{pi-embedded-helpers-pubKo8HQ.js → pi-embedded-helpers-CfqDGQ9J.js} +4 -4
- package/dist/{pi-embedded-helpers-B8kqLWns.js → pi-embedded-helpers-lgx_U5KS.js} +4 -4
- package/dist/{program-CJ9D3r8a.js → program-Cs6SC0Y3.js} +2 -2
- package/dist/{program-context-BP0z1bB_.js → program-context-9l2VE3gk.js} +6 -6
- package/dist/{prompt-select-styled-qUtAFeh5.js → prompt-select-styled-0rN-Bjc0.js} +1 -1
- package/dist/{prompt-select-styled-MuV_Htwc.js → prompt-select-styled-BEblj71P.js} +1 -1
- package/dist/{pw-ai-1htA-NnS.js → pw-ai-De-KR9_s.js} +1 -1
- package/dist/{pw-ai-B5asscAD.js → pw-ai-m0mj2KWK.js} +1 -1
- package/dist/{register.maintenance-CCvczO1p.js → register.maintenance-BpLQ73q6.js} +4 -4
- package/dist/{register.maintenance-dUY38WsW.js → register.maintenance-DnLb4_pC.js} +5 -5
- package/dist/{register.onboard-DS_iALwV.js → register.onboard-Bbu2o5v-.js} +2 -2
- package/dist/{register.onboard-DeWHXqdA.js → register.onboard-XELS-V90.js} +2 -2
- package/dist/{register.setup-Ci6RYm4Q.js → register.setup-BbBvDDru.js} +2 -2
- package/dist/{register.setup-CihRuW92.js → register.setup-CLE7PdHv.js} +2 -2
- package/dist/{register.subclis-CzGxxkJP.js → register.subclis-DovpQkAb.js} +3 -3
- package/dist/{run-main-DZqGGaEj.js → run-main-BPf5aLAC.js} +3 -3
- package/dist/{runner-WAG0M5s9.js → runner-CU9l0uJh.js} +1 -1
- package/dist/{runner-BcQ0sF9T.js → runner-DUBExAb5.js} +1 -1
- package/dist/{unified-runner-DY-ifZuJ.js → unified-runner-BzcXoZmB.js} +16 -16
- package/dist/{update-cli-BpJEHJsD.js → update-cli-CCo0jjlD.js} +5 -5
- package/dist/{update-cli-CRZKpmLV.js → update-cli-JXIAh9-v.js} +4 -4
- package/dist/{web-CTVIYGL-.js → web-Bhv2j2Bf.js} +6 -6
- package/dist/{web-C2vJmG44.js → web-PvQddZps.js} +6 -6
- package/package.json +1 -1
|
@@ -8,10 +8,10 @@ import "./auth-profiles-DdK1Hxaa.js";
|
|
|
8
8
|
import "./env-BDXYbTKj.js";
|
|
9
9
|
import "./github-copilot-token-cCYzSU9h.js";
|
|
10
10
|
import "./boolean-CE7i9tBR.js";
|
|
11
|
-
import "./pi-embedded-helpers-
|
|
11
|
+
import "./pi-embedded-helpers-CfqDGQ9J.js";
|
|
12
12
|
import "./config-5SdHIcHU.js";
|
|
13
13
|
import "./manifest-registry-yb7sAlu4.js";
|
|
14
|
-
import "./chrome-
|
|
14
|
+
import "./chrome-DkaXoP36.js";
|
|
15
15
|
import "./frontmatter-CTR5f_Ez.js";
|
|
16
16
|
import "./skills-Bs0AW1g3.js";
|
|
17
17
|
import "./redact-BDMXB06K.js";
|
|
@@ -27,11 +27,11 @@ import "./accounts-3dCrO3oZ.js";
|
|
|
27
27
|
import "./accounts-BuZxOb3B.js";
|
|
28
28
|
import "./bindings-BsHoBLIE.js";
|
|
29
29
|
import "./tool-images-SqqWIT22.js";
|
|
30
|
-
import "./image-
|
|
30
|
+
import "./image-CuzFLQWC.js";
|
|
31
31
|
import "./pi-model-discovery-Bv5YDJc8.js";
|
|
32
32
|
import "./gemini-auth-Dy12ZAH3.js";
|
|
33
33
|
import "./local-roots-DhZz0Ybs.js";
|
|
34
|
-
import { a as resolveMediaAttachmentLocalRoots, n as createMediaAttachmentCache, o as runCapability, r as normalizeMediaAttachments, t as buildProviderRegistry, u as isAudioAttachment } from "./runner-
|
|
34
|
+
import { a as resolveMediaAttachmentLocalRoots, n as createMediaAttachmentCache, o as runCapability, r as normalizeMediaAttachments, t as buildProviderRegistry, u as isAudioAttachment } from "./runner-CU9l0uJh.js";
|
|
35
35
|
|
|
36
36
|
//#region src/media-understanding/audio-preflight.ts
|
|
37
37
|
/**
|
|
@@ -12,10 +12,10 @@ import "./accounts-8zZqL37v.js";
|
|
|
12
12
|
import "./image-ops-ByaQt43P.js";
|
|
13
13
|
import "./pi-model-discovery-j5tVLINv.js";
|
|
14
14
|
import "./message-channel-BQINJQIT.js";
|
|
15
|
-
import "./pi-embedded-helpers-
|
|
15
|
+
import "./pi-embedded-helpers-lgx_U5KS.js";
|
|
16
16
|
import "./config-BmV60pPT.js";
|
|
17
17
|
import "./manifest-registry-D-mTF1cj.js";
|
|
18
|
-
import "./chrome-
|
|
18
|
+
import "./chrome-CDJYxX5a.js";
|
|
19
19
|
import "./skills-BNpGMnp-.js";
|
|
20
20
|
import "./redact-1NGYV_8p.js";
|
|
21
21
|
import "./errors-CPfngF0S.js";
|
|
@@ -25,10 +25,10 @@ import "./thinking-W85Rb32m.js";
|
|
|
25
25
|
import "./accounts-DImOt9jX.js";
|
|
26
26
|
import "./paths-DkMamAQ-.js";
|
|
27
27
|
import "./tool-images-ChC2CXaN.js";
|
|
28
|
-
import "./image-
|
|
28
|
+
import "./image-CHzdaNJ4.js";
|
|
29
29
|
import "./gemini-auth-CSlZZ1Pw.js";
|
|
30
30
|
import "./local-roots-CC8jiKDk.js";
|
|
31
|
-
import { a as resolveMediaAttachmentLocalRoots, n as createMediaAttachmentCache, o as runCapability, r as normalizeMediaAttachments, t as buildProviderRegistry, u as isAudioAttachment } from "./runner-
|
|
31
|
+
import { a as resolveMediaAttachmentLocalRoots, n as createMediaAttachmentCache, o as runCapability, r as normalizeMediaAttachments, t as buildProviderRegistry, u as isAudioAttachment } from "./runner-DUBExAb5.js";
|
|
32
32
|
|
|
33
33
|
//#region src/media-understanding/audio-preflight.ts
|
|
34
34
|
/**
|
package/dist/build-info.json
CHANGED
|
@@ -4,16 +4,16 @@ import { b as isGatewayStartupEvent } from "../../registry-DYq1AYOv.js";
|
|
|
4
4
|
import { s as resolveAgentWorkspaceDir, t as listAgentIds } from "../../agent-scope-CpEJ0B88.js";
|
|
5
5
|
import { r as defaultRuntime, t as createSubsystemLogger } from "../../subsystem-BjyjJF-d.js";
|
|
6
6
|
import "../../workspace-DscDraUb.js";
|
|
7
|
-
import { a as createDefaultDeps, i as agentCommand } from "../../unified-runner-
|
|
7
|
+
import { a as createDefaultDeps, i as agentCommand } from "../../unified-runner-BzcXoZmB.js";
|
|
8
8
|
import { s as resolveStorePath } from "../../paths-CbQV9WEg.js";
|
|
9
9
|
import "../../auth-profiles-DdK1Hxaa.js";
|
|
10
10
|
import "../../env-BDXYbTKj.js";
|
|
11
11
|
import "../../github-copilot-token-cCYzSU9h.js";
|
|
12
12
|
import "../../boolean-CE7i9tBR.js";
|
|
13
|
-
import { H as loadSessionStore, K as updateSessionStore, xt as resolveMainSessionKey, yt as resolveAgentMainSessionKey } from "../../pi-embedded-helpers-
|
|
13
|
+
import { H as loadSessionStore, K as updateSessionStore, xt as resolveMainSessionKey, yt as resolveAgentMainSessionKey } from "../../pi-embedded-helpers-CfqDGQ9J.js";
|
|
14
14
|
import "../../config-5SdHIcHU.js";
|
|
15
15
|
import "../../manifest-registry-yb7sAlu4.js";
|
|
16
|
-
import "../../chrome-
|
|
16
|
+
import "../../chrome-DkaXoP36.js";
|
|
17
17
|
import "../../frontmatter-CTR5f_Ez.js";
|
|
18
18
|
import "../../skills-Bs0AW1g3.js";
|
|
19
19
|
import "../../redact-BDMXB06K.js";
|
|
@@ -31,10 +31,10 @@ import "../../bindings-BsHoBLIE.js";
|
|
|
31
31
|
import "../../send-CVMyYPQw.js";
|
|
32
32
|
import "../../send-CvhXrdgS.js";
|
|
33
33
|
import "../../tool-images-SqqWIT22.js";
|
|
34
|
-
import "../../deliver-
|
|
34
|
+
import "../../deliver-C46-vyqg.js";
|
|
35
35
|
import "../../diagnostic-rPhsBoZz.js";
|
|
36
36
|
import "../../diagnostic-session-state-Zw87xFym.js";
|
|
37
|
-
import "../../image-
|
|
37
|
+
import "../../image-CuzFLQWC.js";
|
|
38
38
|
import { n as SILENT_REPLY_TOKEN } from "../../tokens-Bux9Y_xD.js";
|
|
39
39
|
import "../../send-DYj_o4_F.js";
|
|
40
40
|
import "../../pi-model-discovery-Bv5YDJc8.js";
|
|
@@ -50,7 +50,7 @@ import "../../local-roots-DhZz0Ybs.js";
|
|
|
50
50
|
import "../../ir-CTiz95Vb.js";
|
|
51
51
|
import "../../render-CDCvpfhh.js";
|
|
52
52
|
import "../../commands-registry-Bfc7Uz0o.js";
|
|
53
|
-
import "../../runner-
|
|
53
|
+
import "../../runner-CU9l0uJh.js";
|
|
54
54
|
import "../../skill-commands-DcVwOafC.js";
|
|
55
55
|
import "../../fetch-Bso4i15F.js";
|
|
56
56
|
import "../../channel-activity-B6G1jnQT.js";
|
|
@@ -4,16 +4,16 @@ import "../../registry-DYq1AYOv.js";
|
|
|
4
4
|
import { s as resolveAgentWorkspaceDir } from "../../agent-scope-CpEJ0B88.js";
|
|
5
5
|
import { t as createSubsystemLogger } from "../../subsystem-BjyjJF-d.js";
|
|
6
6
|
import "../../workspace-DscDraUb.js";
|
|
7
|
-
import "../../unified-runner-
|
|
7
|
+
import "../../unified-runner-BzcXoZmB.js";
|
|
8
8
|
import "../../paths-CbQV9WEg.js";
|
|
9
9
|
import "../../auth-profiles-DdK1Hxaa.js";
|
|
10
10
|
import "../../env-BDXYbTKj.js";
|
|
11
11
|
import "../../github-copilot-token-cCYzSU9h.js";
|
|
12
12
|
import "../../boolean-CE7i9tBR.js";
|
|
13
|
-
import { ct as hasInterSessionUserProvenance } from "../../pi-embedded-helpers-
|
|
13
|
+
import { ct as hasInterSessionUserProvenance } from "../../pi-embedded-helpers-CfqDGQ9J.js";
|
|
14
14
|
import "../../config-5SdHIcHU.js";
|
|
15
15
|
import "../../manifest-registry-yb7sAlu4.js";
|
|
16
|
-
import "../../chrome-
|
|
16
|
+
import "../../chrome-DkaXoP36.js";
|
|
17
17
|
import "../../frontmatter-CTR5f_Ez.js";
|
|
18
18
|
import "../../skills-Bs0AW1g3.js";
|
|
19
19
|
import "../../redact-BDMXB06K.js";
|
|
@@ -31,10 +31,10 @@ import "../../bindings-BsHoBLIE.js";
|
|
|
31
31
|
import "../../send-CVMyYPQw.js";
|
|
32
32
|
import "../../send-CvhXrdgS.js";
|
|
33
33
|
import "../../tool-images-SqqWIT22.js";
|
|
34
|
-
import "../../deliver-
|
|
34
|
+
import "../../deliver-C46-vyqg.js";
|
|
35
35
|
import "../../diagnostic-rPhsBoZz.js";
|
|
36
36
|
import "../../diagnostic-session-state-Zw87xFym.js";
|
|
37
|
-
import "../../image-
|
|
37
|
+
import "../../image-CuzFLQWC.js";
|
|
38
38
|
import "../../tokens-Bux9Y_xD.js";
|
|
39
39
|
import "../../send-DYj_o4_F.js";
|
|
40
40
|
import "../../pi-model-discovery-Bv5YDJc8.js";
|
|
@@ -50,7 +50,7 @@ import "../../local-roots-DhZz0Ybs.js";
|
|
|
50
50
|
import "../../ir-CTiz95Vb.js";
|
|
51
51
|
import "../../render-CDCvpfhh.js";
|
|
52
52
|
import "../../commands-registry-Bfc7Uz0o.js";
|
|
53
|
-
import "../../runner-
|
|
53
|
+
import "../../runner-CU9l0uJh.js";
|
|
54
54
|
import "../../skill-commands-DcVwOafC.js";
|
|
55
55
|
import "../../fetch-Bso4i15F.js";
|
|
56
56
|
import "../../channel-activity-B6G1jnQT.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
bc73fabd0e6fd8c6a56c6af6e8e5393a5c6587fd2ed29a9d02e1ee18fca19f79
|
|
@@ -10,7 +10,7 @@ import fs$1 from "node:fs/promises";
|
|
|
10
10
|
import { execFileSync, spawn } from "node:child_process";
|
|
11
11
|
import net from "node:net";
|
|
12
12
|
import { createServer } from "node:http";
|
|
13
|
-
import WebSocket, { WebSocketServer } from "ws";
|
|
13
|
+
import WebSocket$1, { WebSocketServer } from "ws";
|
|
14
14
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
15
15
|
|
|
16
16
|
//#region src/browser/constants.ts
|
|
@@ -178,7 +178,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
178
178
|
let nextExtensionId = 1;
|
|
179
179
|
const sendToExtension = async (payload) => {
|
|
180
180
|
const ws = extensionWs;
|
|
181
|
-
if (!ws || ws.readyState !== WebSocket.OPEN) throw new Error("Chrome extension not connected");
|
|
181
|
+
if (!ws || ws.readyState !== WebSocket$1.OPEN) throw new Error("Chrome extension not connected");
|
|
182
182
|
ws.send(JSON.stringify(payload));
|
|
183
183
|
return await new Promise((resolve, reject) => {
|
|
184
184
|
const timer = setTimeout(() => {
|
|
@@ -195,12 +195,12 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
195
195
|
const broadcastToCdpClients = (evt) => {
|
|
196
196
|
const msg = JSON.stringify(evt);
|
|
197
197
|
for (const ws of cdpClients) {
|
|
198
|
-
if (ws.readyState !== WebSocket.OPEN) continue;
|
|
198
|
+
if (ws.readyState !== WebSocket$1.OPEN) continue;
|
|
199
199
|
ws.send(msg);
|
|
200
200
|
}
|
|
201
201
|
};
|
|
202
202
|
const sendResponseToCdp = (ws, res) => {
|
|
203
|
-
if (ws.readyState !== WebSocket.OPEN) return;
|
|
203
|
+
if (ws.readyState !== WebSocket$1.OPEN) return;
|
|
204
204
|
ws.send(JSON.stringify(res));
|
|
205
205
|
};
|
|
206
206
|
const ensureTargetEventsForClient = (ws, mode) => {
|
|
@@ -425,7 +425,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
425
425
|
wssExtension.on("connection", (ws) => {
|
|
426
426
|
extensionWs = ws;
|
|
427
427
|
const ping = setInterval(() => {
|
|
428
|
-
if (ws.readyState !== WebSocket.OPEN) return;
|
|
428
|
+
if (ws.readyState !== WebSocket$1.OPEN) return;
|
|
429
429
|
ws.send(JSON.stringify({ method: "ping" }));
|
|
430
430
|
}, 5e3);
|
|
431
431
|
ws.on("message", (data) => {
|
|
@@ -743,7 +743,7 @@ async function fetchOk(url, timeoutMs = 1500, init) {
|
|
|
743
743
|
}
|
|
744
744
|
async function withCdpSocket(wsUrl, fn, opts) {
|
|
745
745
|
const headers = getHeadersWithAuth(wsUrl, opts?.headers ?? {});
|
|
746
|
-
const ws = new WebSocket(wsUrl, {
|
|
746
|
+
const ws = new WebSocket$1(wsUrl, {
|
|
747
747
|
handshakeTimeout: typeof opts?.handshakeTimeoutMs === "number" && Number.isFinite(opts.handshakeTimeoutMs) ? Math.max(1, Math.floor(opts.handshakeTimeoutMs)) : 5e3,
|
|
748
748
|
...Object.keys(headers).length ? { headers } : {}
|
|
749
749
|
});
|
|
@@ -1637,7 +1637,7 @@ async function getChromeWebSocketUrl(cdpUrl, timeoutMs = 500) {
|
|
|
1637
1637
|
async function canOpenWebSocket(wsUrl, timeoutMs = 800) {
|
|
1638
1638
|
return await new Promise((resolve) => {
|
|
1639
1639
|
const headers = getHeadersWithAuth(wsUrl);
|
|
1640
|
-
const ws = new WebSocket(wsUrl, {
|
|
1640
|
+
const ws = new WebSocket$1(wsUrl, {
|
|
1641
1641
|
handshakeTimeout: timeoutMs,
|
|
1642
1642
|
...Object.keys(headers).length ? { headers } : {}
|
|
1643
1643
|
});
|
|
@@ -10,7 +10,7 @@ import fs$1 from "node:fs/promises";
|
|
|
10
10
|
import { execFileSync, spawn } from "node:child_process";
|
|
11
11
|
import net from "node:net";
|
|
12
12
|
import { createServer } from "node:http";
|
|
13
|
-
import WebSocket, { WebSocketServer } from "ws";
|
|
13
|
+
import WebSocket$1, { WebSocketServer } from "ws";
|
|
14
14
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
15
15
|
|
|
16
16
|
//#region src/browser/constants.ts
|
|
@@ -178,7 +178,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
178
178
|
let nextExtensionId = 1;
|
|
179
179
|
const sendToExtension = async (payload) => {
|
|
180
180
|
const ws = extensionWs;
|
|
181
|
-
if (!ws || ws.readyState !== WebSocket.OPEN) throw new Error("Chrome extension not connected");
|
|
181
|
+
if (!ws || ws.readyState !== WebSocket$1.OPEN) throw new Error("Chrome extension not connected");
|
|
182
182
|
ws.send(JSON.stringify(payload));
|
|
183
183
|
return await new Promise((resolve, reject) => {
|
|
184
184
|
const timer = setTimeout(() => {
|
|
@@ -195,12 +195,12 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
195
195
|
const broadcastToCdpClients = (evt) => {
|
|
196
196
|
const msg = JSON.stringify(evt);
|
|
197
197
|
for (const ws of cdpClients) {
|
|
198
|
-
if (ws.readyState !== WebSocket.OPEN) continue;
|
|
198
|
+
if (ws.readyState !== WebSocket$1.OPEN) continue;
|
|
199
199
|
ws.send(msg);
|
|
200
200
|
}
|
|
201
201
|
};
|
|
202
202
|
const sendResponseToCdp = (ws, res) => {
|
|
203
|
-
if (ws.readyState !== WebSocket.OPEN) return;
|
|
203
|
+
if (ws.readyState !== WebSocket$1.OPEN) return;
|
|
204
204
|
ws.send(JSON.stringify(res));
|
|
205
205
|
};
|
|
206
206
|
const ensureTargetEventsForClient = (ws, mode) => {
|
|
@@ -425,7 +425,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
425
425
|
wssExtension.on("connection", (ws) => {
|
|
426
426
|
extensionWs = ws;
|
|
427
427
|
const ping = setInterval(() => {
|
|
428
|
-
if (ws.readyState !== WebSocket.OPEN) return;
|
|
428
|
+
if (ws.readyState !== WebSocket$1.OPEN) return;
|
|
429
429
|
ws.send(JSON.stringify({ method: "ping" }));
|
|
430
430
|
}, 5e3);
|
|
431
431
|
ws.on("message", (data) => {
|
|
@@ -743,7 +743,7 @@ async function fetchOk(url, timeoutMs = 1500, init) {
|
|
|
743
743
|
}
|
|
744
744
|
async function withCdpSocket(wsUrl, fn, opts) {
|
|
745
745
|
const headers = getHeadersWithAuth(wsUrl, opts?.headers ?? {});
|
|
746
|
-
const ws = new WebSocket(wsUrl, {
|
|
746
|
+
const ws = new WebSocket$1(wsUrl, {
|
|
747
747
|
handshakeTimeout: typeof opts?.handshakeTimeoutMs === "number" && Number.isFinite(opts.handshakeTimeoutMs) ? Math.max(1, Math.floor(opts.handshakeTimeoutMs)) : 5e3,
|
|
748
748
|
...Object.keys(headers).length ? { headers } : {}
|
|
749
749
|
});
|
|
@@ -1637,7 +1637,7 @@ async function getChromeWebSocketUrl(cdpUrl, timeoutMs = 500) {
|
|
|
1637
1637
|
async function canOpenWebSocket(wsUrl, timeoutMs = 800) {
|
|
1638
1638
|
return await new Promise((resolve) => {
|
|
1639
1639
|
const headers = getHeadersWithAuth(wsUrl);
|
|
1640
|
-
const ws = new WebSocket(wsUrl, {
|
|
1640
|
+
const ws = new WebSocket$1(wsUrl, {
|
|
1641
1641
|
handshakeTimeout: timeoutMs,
|
|
1642
1642
|
...Object.keys(headers).length ? { headers } : {}
|
|
1643
1643
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { an as getPrimaryCommand, cn as hasHelpOrVersion } from "./entry.js";
|
|
3
|
-
import { i as registerSubCliCommands, o as reparseProgramFromActionArgs } from "./register.subclis-
|
|
3
|
+
import { i as registerSubCliCommands, o as reparseProgramFromActionArgs } from "./register.subclis-DovpQkAb.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-BbBvDDru.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-XELS-V90.js")).registerOnboardCommand(program);
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
{
|
|
@@ -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-DnLb4_pC.js")).registerMaintenanceCommands(program);
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
85
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { Yt as resolveStateDir, l as routeLogsToStderr, nt as pathExists } from "./entry.js";
|
|
3
|
-
import { n as getSubCliEntries, r as registerSubCliByName } from "./register.subclis-
|
|
4
|
-
import { i as registerCoreCliByName, n as getCoreCliCommandNames } from "./command-registry
|
|
3
|
+
import { n as getSubCliEntries, r as registerSubCliByName } from "./register.subclis-DovpQkAb.js";
|
|
4
|
+
import { i as registerCoreCliByName, n as getCoreCliCommandNames } from "./command-registry--BVAkymo.js";
|
|
5
5
|
import { t as getProgramContext } from "./program-context-CqzR_m-7.js";
|
|
6
6
|
import os from "node:os";
|
|
7
7
|
import path from "node:path";
|
|
@@ -2,7 +2,7 @@ import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
|
2
2
|
import { g as resolveStateDir } from "./paths-Cqn-zk3M.js";
|
|
3
3
|
import { h as pathExists } from "./utils-B-0b9bGM.js";
|
|
4
4
|
import { i as routeLogsToStderr } from "./subsystem-D9vIQve0.js";
|
|
5
|
-
import { a as registerCoreCliByName, c as getSubCliEntries, l as registerSubCliByName, r as getCoreCliCommandNames, t as getProgramContext } from "./program-context-
|
|
5
|
+
import { a as registerCoreCliByName, c as getSubCliEntries, l as registerSubCliByName, r as getCoreCliCommandNames, t as getProgramContext } from "./program-context-9l2VE3gk.js";
|
|
6
6
|
import os from "node:os";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import fs from "node:fs/promises";
|
|
@@ -14,6 +14,45 @@ let streamBubble = null;
|
|
|
14
14
|
let streamContent = null;
|
|
15
15
|
let streamStart = 0;
|
|
16
16
|
|
|
17
|
+
// ── Feed cache (localStorage fallback) ──────────────────────────
|
|
18
|
+
const FEED_CACHE_KEY = "symi:feed-cache";
|
|
19
|
+
const FEED_CACHE_MAX = 200; // max messages to cache
|
|
20
|
+
|
|
21
|
+
const feedCache = {
|
|
22
|
+
save(messages) {
|
|
23
|
+
try {
|
|
24
|
+
const trimmed = Array.isArray(messages) ? messages.slice(-FEED_CACHE_MAX) : [];
|
|
25
|
+
localStorage.setItem(FEED_CACHE_KEY, JSON.stringify(trimmed));
|
|
26
|
+
} catch {
|
|
27
|
+
// localStorage full or unavailable — ignore
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
load() {
|
|
31
|
+
try {
|
|
32
|
+
const raw = localStorage.getItem(FEED_CACHE_KEY);
|
|
33
|
+
return raw ? JSON.parse(raw) : [];
|
|
34
|
+
} catch {
|
|
35
|
+
return [];
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
append(message) {
|
|
39
|
+
try {
|
|
40
|
+
const cached = this.load();
|
|
41
|
+
cached.push(message);
|
|
42
|
+
this.save(cached);
|
|
43
|
+
} catch {
|
|
44
|
+
// ignore
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
clear() {
|
|
48
|
+
try {
|
|
49
|
+
localStorage.removeItem(FEED_CACHE_KEY);
|
|
50
|
+
} catch {
|
|
51
|
+
// ignore
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
|
|
17
56
|
// ── Lazy-loading pagination state ────────────────────────────────
|
|
18
57
|
let historyStartIndex = 0; // index of first loaded message in full transcript
|
|
19
58
|
let historyHasMore = false; // server says there are older messages
|
|
@@ -259,6 +298,28 @@ function handleRunFailure(reason) {
|
|
|
259
298
|
|
|
260
299
|
// ── Render history (on first connect) ─────────────────────────────
|
|
261
300
|
function renderHistory(messages) {
|
|
301
|
+
const isEmpty = !messages || messages.length === 0;
|
|
302
|
+
const hasExistingContent = responseArea.querySelectorAll(".message").length > 0;
|
|
303
|
+
|
|
304
|
+
// Guard: if server sends empty history but the DOM already has messages,
|
|
305
|
+
// keep the existing feed — prevents blank screen on transient failures.
|
|
306
|
+
if (isEmpty && hasExistingContent) {
|
|
307
|
+
return;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
// Fallback: server is empty and DOM is empty — try localStorage cache
|
|
311
|
+
if (isEmpty) {
|
|
312
|
+
const cached = feedCache.load();
|
|
313
|
+
if (cached.length > 0) {
|
|
314
|
+
messages = cached;
|
|
315
|
+
} else {
|
|
316
|
+
return; // nothing to render anywhere
|
|
317
|
+
}
|
|
318
|
+
} else {
|
|
319
|
+
// Server sent real history — cache it for future fallback
|
|
320
|
+
feedCache.save(messages);
|
|
321
|
+
}
|
|
322
|
+
|
|
262
323
|
// Clear reasoning + symipulse panels in sync with the feed — prevents double-entries on reconnect
|
|
263
324
|
if (typeof window.clearReasoningPanel === "function") {
|
|
264
325
|
window.clearReasoningPanel();
|
|
@@ -680,6 +741,17 @@ function handleGatewayEvent(event) {
|
|
|
680
741
|
} else {
|
|
681
742
|
closeStreamBubble(window.activeModelId || "unknown model");
|
|
682
743
|
}
|
|
744
|
+
// Cache the completed assistant message for feed persistence
|
|
745
|
+
if (p.message) {
|
|
746
|
+
const finalText = extractText(p.message?.content ?? p.message);
|
|
747
|
+
if (finalText && finalText.trim()) {
|
|
748
|
+
feedCache.append({
|
|
749
|
+
role: "assistant",
|
|
750
|
+
content: p.message.content ?? [{ type: "text", text: finalText }],
|
|
751
|
+
timestamp: p.message.timestamp ?? Date.now(),
|
|
752
|
+
});
|
|
753
|
+
}
|
|
754
|
+
}
|
|
683
755
|
setAgentStatus("done");
|
|
684
756
|
// Sync sub-agent count from server and conditionally hide working indicator
|
|
685
757
|
if (typeof p.activeSubagentCount === "number") {
|
|
@@ -902,6 +974,11 @@ async function sendText(text) {
|
|
|
902
974
|
updateQueueBtn();
|
|
903
975
|
|
|
904
976
|
addUserMessage(text);
|
|
977
|
+
feedCache.append({
|
|
978
|
+
role: "user",
|
|
979
|
+
content: [{ type: "text", text }],
|
|
980
|
+
timestamp: Date.now(),
|
|
981
|
+
});
|
|
905
982
|
await sleep(200);
|
|
906
983
|
|
|
907
984
|
// Mark the start of this run in the Reasoning Panel
|
|
@@ -968,6 +1045,7 @@ async function handleNewSession() {
|
|
|
968
1045
|
responseArea.style.opacity = "1";
|
|
969
1046
|
historyStartIndex = 0;
|
|
970
1047
|
historyHasMore = false;
|
|
1048
|
+
feedCache.clear(); // clear cached feed — new session starts fresh
|
|
971
1049
|
updateLoadMoreSentinel();
|
|
972
1050
|
if (typeof window.clearReasoningPanel === "function") {
|
|
973
1051
|
window.clearReasoningPanel();
|
|
@@ -5,7 +5,7 @@ import { c as getActivePluginRegistry, v as createInternalHookEvent, y as trigge
|
|
|
5
5
|
import { t as createSubsystemLogger } from "./subsystem-CZixfwU8.js";
|
|
6
6
|
import { a as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-Cn6drXx2.js";
|
|
7
7
|
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-71oIavrF.js";
|
|
8
|
-
import { B as resolveMirroredTranscriptText, i as isMessagingToolDuplicate, z as appendAssistantMessageToSessionTranscript } from "./pi-embedded-helpers-
|
|
8
|
+
import { B as resolveMirroredTranscriptText, i as isMessagingToolDuplicate, z as appendAssistantMessageToSessionTranscript } from "./pi-embedded-helpers-lgx_U5KS.js";
|
|
9
9
|
import { d as getChannelDock } from "./thinking-W85Rb32m.js";
|
|
10
10
|
import { c as resolveChunkMode, f as parseFenceSpans, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit, n as chunkByParagraph } from "./chunk-DTMTDXwE.js";
|
|
11
11
|
import { n as resolveMarkdownTableMode } from "./markdown-tables-DawaaZEe.js";
|
|
@@ -3,7 +3,7 @@ import { s as resolveStateDir } from "./paths-CE7eVGHg.js";
|
|
|
3
3
|
import { m as normalizeOptionalAccountId, p as normalizeAccountId } from "./session-key-BCzIW1Y2.js";
|
|
4
4
|
import { c as getActivePluginRegistry, v as createInternalHookEvent, x as triggerInternalHook } from "./registry-DYq1AYOv.js";
|
|
5
5
|
import { t as createSubsystemLogger } from "./subsystem-BjyjJF-d.js";
|
|
6
|
-
import { B as resolveMirroredTranscriptText, i as isMessagingToolDuplicate, z as appendAssistantMessageToSessionTranscript } from "./pi-embedded-helpers-
|
|
6
|
+
import { B as resolveMirroredTranscriptText, i as isMessagingToolDuplicate, z as appendAssistantMessageToSessionTranscript } from "./pi-embedded-helpers-CfqDGQ9J.js";
|
|
7
7
|
import { d as getChannelDock } from "./thinking-BprCy23Z.js";
|
|
8
8
|
import { r as normalizeChannelId, t as getChannelPlugin } from "./plugins-BzmbgY7s.js";
|
|
9
9
|
import { a as isSilentReplyText, n as SILENT_REPLY_TOKEN } from "./tokens-Bux9Y_xD.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as resolveSymiPackageRoot } from "./symi-root-CrGJbkzf.js";
|
|
2
2
|
import { r as resolveCliName } from "./command-format-COaS-S7B.js";
|
|
3
3
|
import { t as note } from "./note-DeHoW7xO.js";
|
|
4
|
-
import { a as resolveCompletionCachePath, i as isCompletionInstalled, o as resolveShellFromEnv, r as installCompletion, s as usesSlowDynamicCompletion, t as completionCacheExists } from "./completion-cli-
|
|
4
|
+
import { a as resolveCompletionCachePath, i as isCompletionInstalled, o as resolveShellFromEnv, r as installCompletion, s as usesSlowDynamicCompletion, t as completionCacheExists } from "./completion-cli-LSZGfNYt.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { spawnSync } from "node:child_process";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as resolveCliName } from "./command-format-BtYOfWxC.js";
|
|
2
2
|
import { t as resolveSymiPackageRoot } from "./symi-root-BNuQ4lAT.js";
|
|
3
3
|
import { t as note } from "./note-DDecZomM.js";
|
|
4
|
-
import { a as resolveCompletionCachePath, i as isCompletionInstalled, o as resolveShellFromEnv, r as installCompletion, s as usesSlowDynamicCompletion, t as completionCacheExists } from "./completion-cli-
|
|
4
|
+
import { a as resolveCompletionCachePath, i as isCompletionInstalled, o as resolveShellFromEnv, r as installCompletion, s as usesSlowDynamicCompletion, t as completionCacheExists } from "./completion-cli-CMPF-UWB.js";
|
|
5
5
|
import { spawnSync } from "node:child_process";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
|
package/dist/entry.js
CHANGED
|
@@ -2500,7 +2500,7 @@ if (!ensureExperimentalWarningSuppressed()) {
|
|
|
2500
2500
|
applyCliProfileEnv({ profile: parsed.profile });
|
|
2501
2501
|
process$1.argv = parsed.argv;
|
|
2502
2502
|
}
|
|
2503
|
-
import("./run-main-
|
|
2503
|
+
import("./run-main-BPf5aLAC.js").then(({ runCli }) => runCli(process$1.argv)).catch((error) => {
|
|
2504
2504
|
console.error("[symi] Failed to start CLI:", error instanceof Error ? error.stack ?? error.message : error);
|
|
2505
2505
|
process$1.exitCode = 1;
|
|
2506
2506
|
});
|
package/dist/extensionAPI.js
CHANGED
|
@@ -7,13 +7,13 @@ import { a as resolveAgentIdentity } from "./reply-prefix-K_J_nfgx.js";
|
|
|
7
7
|
import "./github-copilot-token-BbsJ0Qbo.js";
|
|
8
8
|
import "./env-CQ_DQOwT.js";
|
|
9
9
|
import "./tokens-Cn6drXx2.js";
|
|
10
|
-
import { D as resolveAgentTimeoutMs, p as runEmbeddedPiAgent } from "./pi-embedded-
|
|
10
|
+
import { D as resolveAgentTimeoutMs, p as runEmbeddedPiAgent } from "./pi-embedded-BpqY8Naf.js";
|
|
11
11
|
import "./plugins-71oIavrF.js";
|
|
12
12
|
import "./accounts-DDEyGwby.js";
|
|
13
13
|
import "./bindings-DYVakimr.js";
|
|
14
14
|
import "./send-D-hWrHoH.js";
|
|
15
15
|
import "./send-C1IYd3g7.js";
|
|
16
|
-
import "./deliver-
|
|
16
|
+
import "./deliver-BH0l3UKW.js";
|
|
17
17
|
import "./diagnostic-D0xmLpej.js";
|
|
18
18
|
import "./diagnostic-session-state-C1vRJs5w.js";
|
|
19
19
|
import "./accounts-8zZqL37v.js";
|
|
@@ -21,10 +21,10 @@ import "./send-C4Ucr8ep.js";
|
|
|
21
21
|
import "./image-ops-ByaQt43P.js";
|
|
22
22
|
import "./pi-model-discovery-j5tVLINv.js";
|
|
23
23
|
import "./message-channel-BQINJQIT.js";
|
|
24
|
-
import { G as saveSessionStore, H as loadSessionStore } from "./pi-embedded-helpers-
|
|
24
|
+
import { G as saveSessionStore, H as loadSessionStore } from "./pi-embedded-helpers-lgx_U5KS.js";
|
|
25
25
|
import "./config-BmV60pPT.js";
|
|
26
26
|
import "./manifest-registry-D-mTF1cj.js";
|
|
27
|
-
import "./chrome-
|
|
27
|
+
import "./chrome-CDJYxX5a.js";
|
|
28
28
|
import "./skills-BNpGMnp-.js";
|
|
29
29
|
import "./redact-1NGYV_8p.js";
|
|
30
30
|
import "./errors-CPfngF0S.js";
|
|
@@ -34,7 +34,7 @@ import "./thinking-W85Rb32m.js";
|
|
|
34
34
|
import "./accounts-DImOt9jX.js";
|
|
35
35
|
import { n as resolveSessionFilePath, s as resolveStorePath } from "./paths-DkMamAQ-.js";
|
|
36
36
|
import "./tool-images-ChC2CXaN.js";
|
|
37
|
-
import "./image-
|
|
37
|
+
import "./image-CHzdaNJ4.js";
|
|
38
38
|
import "./manager-jpn5vRTY.js";
|
|
39
39
|
import "./gemini-auth-CSlZZ1Pw.js";
|
|
40
40
|
import "./sqlite-BNh23mUR.js";
|
|
@@ -47,7 +47,7 @@ import "./ir-F0moAwIl.js";
|
|
|
47
47
|
import "./render-B1VqYyvo.js";
|
|
48
48
|
import "./commands-registry-C_aYUwpl.js";
|
|
49
49
|
import "./skill-commands-DklY7Cj7.js";
|
|
50
|
-
import "./runner-
|
|
50
|
+
import "./runner-DUBExAb5.js";
|
|
51
51
|
import "./fetch-DtLn7YU3.js";
|
|
52
52
|
import "./channel-activity-D9q-fIPB.js";
|
|
53
53
|
import "./tables-COnZ169v.js";
|
|
@@ -134,7 +134,7 @@ import { i as pickGatewaySelfPresence } from "./status-QRydo-7w.js";
|
|
|
134
134
|
import { a as styleHealthChannelLine, l as startHeartbeatRunner, n as getHealthSnapshot, s as runHeartbeatOnce, t as formatHealthChannelLines } from "./health-DU1f-Ruq.js";
|
|
135
135
|
import { a as resolveControlUiRootSync, i as resolveControlUiRootOverrideSync, t as ensureControlUiAssetsBuilt } from "./control-ui-assets-BseSWee1.js";
|
|
136
136
|
import { a as resolveNpmChannelTag, c as DEFAULT_PACKAGE_CHANNEL, m as normalizeUpdateChannel, n as compareSemverStrings, t as checkUpdateStatus } from "./update-check-ZdimP1aU.js";
|
|
137
|
-
import { t as runOnboardingWizard } from "./onboarding-
|
|
137
|
+
import { t as runOnboardingWizard } from "./onboarding-DCPTymIi.js";
|
|
138
138
|
import { _ as getHandshakeTimeoutMs, a as DEFAULT_ASSISTANT_IDENTITY, b as resolveCronRunLogPath, c as upsertPresence, d as DEDUPE_MAX, f as DEDUPE_TTL_MS, g as TICK_INTERVAL_MS, h as MAX_PAYLOAD_BYTES, i as safeParseJson, l as formatError, m as MAX_BUFFERED_BYTES, n as handleGatewayRequest, o as resolveAssistantIdentity, p as HEALTH_REFRESH_INTERVAL_MS, r as broadcastPresenceSnapshot, s as listSystemPresence, t as coreGatewayHandlers, u as loadVoiceWakeConfig, v as abortChatRunById, x as startGatewayConfigReloader, y as appendCronRunLog } from "./server-methods-DFuRwfyn.js";
|
|
139
139
|
import { d as shouldLogWs, f as summarizeAgentEventForWsLog, l as formatForLog, p as setGatewayWsLogStyle, u as logWs } from "./push-apns-DkYs830G.js";
|
|
140
140
|
import { T as resolveGmailHookRuntimeConfig, _ as buildGogWatchServeArgs, i as ensureTailscaleEndpoint, v as buildGogWatchStartArgs } from "./gmail-setup-utils-CzWeiE-Y.js";
|
|
@@ -11835,7 +11835,7 @@ async function startGatewayServer(port = 18789, opts = {}) {
|
|
|
11835
11835
|
});
|
|
11836
11836
|
let glassUiBridgeCleanup = null;
|
|
11837
11837
|
if (!minimalTestGateway) {
|
|
11838
|
-
const { createGlassUiBridge } = await import("./glass-ui-ws-
|
|
11838
|
+
const { createGlassUiBridge } = await import("./glass-ui-ws-B2LHyjWF.js");
|
|
11839
11839
|
glassUiBridgeCleanup = createGlassUiBridge({
|
|
11840
11840
|
wss: glassUiWss,
|
|
11841
11841
|
context: gatewayRequestContext,
|
|
@@ -139,7 +139,7 @@ import { r as pickGatewaySelfPresence } from "./status-v1fz4XO0.js";
|
|
|
139
139
|
import { c as startHeartbeatRunner, i as styleHealthChannelLine, n as getHealthSnapshot, o as runHeartbeatOnce, t as formatHealthChannelLines } from "./health-cAOv8KHf.js";
|
|
140
140
|
import { a as resolveControlUiRootSync, i as resolveControlUiRootOverrideSync, t as ensureControlUiAssetsBuilt } from "./control-ui-assets-Z947tKLt.js";
|
|
141
141
|
import { a as resolveNpmChannelTag, c as DEFAULT_PACKAGE_CHANNEL, m as normalizeUpdateChannel, n as compareSemverStrings, t as checkUpdateStatus } from "./update-check-CtckACbb.js";
|
|
142
|
-
import { t as runOnboardingWizard } from "./onboarding-
|
|
142
|
+
import { t as runOnboardingWizard } from "./onboarding-B-J8KGlq.js";
|
|
143
143
|
import { _ as getHandshakeTimeoutMs, a as DEFAULT_ASSISTANT_IDENTITY, b as resolveCronRunLogPath, c as upsertPresence, d as DEDUPE_MAX, f as DEDUPE_TTL_MS, g as TICK_INTERVAL_MS, h as MAX_PAYLOAD_BYTES, i as safeParseJson, l as formatError, m as MAX_BUFFERED_BYTES, n as handleGatewayRequest, o as resolveAssistantIdentity, p as HEALTH_REFRESH_INTERVAL_MS, r as broadcastPresenceSnapshot, s as listSystemPresence, t as coreGatewayHandlers, u as loadVoiceWakeConfig, v as abortChatRunById, x as startGatewayConfigReloader, y as appendCronRunLog } from "./server-methods-DAkx0Jqj.js";
|
|
144
144
|
import { d as shouldLogWs, f as summarizeAgentEventForWsLog, l as formatForLog, p as setGatewayWsLogStyle, u as logWs } from "./push-apns-c1qXclcv.js";
|
|
145
145
|
import { T as resolveGmailHookRuntimeConfig, _ as buildGogWatchServeArgs, i as ensureTailscaleEndpoint, v as buildGogWatchStartArgs } from "./gmail-setup-utils-Bv0M7ka7.js";
|
|
@@ -11839,7 +11839,7 @@ async function startGatewayServer(port = 18789, opts = {}) {
|
|
|
11839
11839
|
});
|
|
11840
11840
|
let glassUiBridgeCleanup = null;
|
|
11841
11841
|
if (!minimalTestGateway) {
|
|
11842
|
-
const { createGlassUiBridge } = await import("./glass-ui-ws-
|
|
11842
|
+
const { createGlassUiBridge } = await import("./glass-ui-ws-odUDh4Ax.js");
|
|
11843
11843
|
glassUiBridgeCleanup = createGlassUiBridge({
|
|
11844
11844
|
wss: glassUiWss,
|
|
11845
11845
|
context: gatewayRequestContext,
|
|
@@ -209,7 +209,7 @@ function createGlassUiBridge(opts) {
|
|
|
209
209
|
});
|
|
210
210
|
});
|
|
211
211
|
}
|
|
212
|
-
async function loadAndSendHistory(ws) {
|
|
212
|
+
async function loadAndSendHistory(ws, attempt = 1) {
|
|
213
213
|
try {
|
|
214
214
|
const result = await dispatchRpc("chat.history", { sessionKey: SESSION_KEY });
|
|
215
215
|
if (result.ok) {
|
|
@@ -221,8 +221,10 @@ function createGlassUiBridge(opts) {
|
|
|
221
221
|
hasMore: payload.hasMore ?? false,
|
|
222
222
|
startIndex: payload.startIndex ?? 0
|
|
223
223
|
});
|
|
224
|
-
}
|
|
225
|
-
} catch {
|
|
224
|
+
} else if (attempt < 3) setTimeout(() => void loadAndSendHistory(ws, attempt + 1), 1500 * attempt);
|
|
225
|
+
} catch {
|
|
226
|
+
if (attempt < 3) setTimeout(() => void loadAndSendHistory(ws, attempt + 1), 1500 * attempt);
|
|
227
|
+
}
|
|
226
228
|
}
|
|
227
229
|
wss.on("connection", (ws) => {
|
|
228
230
|
browserClients.set(ws, {
|
|
@@ -214,7 +214,7 @@ function createGlassUiBridge(opts) {
|
|
|
214
214
|
});
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
|
-
async function loadAndSendHistory(ws) {
|
|
217
|
+
async function loadAndSendHistory(ws, attempt = 1) {
|
|
218
218
|
try {
|
|
219
219
|
const result = await dispatchRpc("chat.history", { sessionKey: SESSION_KEY });
|
|
220
220
|
if (result.ok) {
|
|
@@ -226,8 +226,10 @@ function createGlassUiBridge(opts) {
|
|
|
226
226
|
hasMore: payload.hasMore ?? false,
|
|
227
227
|
startIndex: payload.startIndex ?? 0
|
|
228
228
|
});
|
|
229
|
-
}
|
|
230
|
-
} catch {
|
|
229
|
+
} else if (attempt < 3) setTimeout(() => void loadAndSendHistory(ws, attempt + 1), 1500 * attempt);
|
|
230
|
+
} catch {
|
|
231
|
+
if (attempt < 3) setTimeout(() => void loadAndSendHistory(ws, attempt + 1), 1500 * attempt);
|
|
232
|
+
}
|
|
231
233
|
}
|
|
232
234
|
wss.on("connection", (ws) => {
|
|
233
235
|
browserClients.set(ws, {
|
|
@@ -2,7 +2,7 @@ import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
|
2
2
|
import { D as isRecord, I as shortenHomeInString } from "./registry-BhoUuugi.js";
|
|
3
3
|
import { G as resolveSymiAgentDir, S as getApiKeyForModel, Y as normalizeSecretInput, _ as resolveImplicitBedrockProvider, g as normalizeProviders, v as resolveImplicitCopilotProvider, w as requireApiKey, y as resolveImplicitProviders } from "./model-selection-BQCG9ah0.js";
|
|
4
4
|
import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-j5tVLINv.js";
|
|
5
|
-
import { N as sanitizeUserFacingText } from "./pi-embedded-helpers-
|
|
5
|
+
import { N as sanitizeUserFacingText } from "./pi-embedded-helpers-lgx_U5KS.js";
|
|
6
6
|
import { n as loadConfig } from "./config-BmV60pPT.js";
|
|
7
7
|
import { n as redactToolDetail } from "./redact-1NGYV_8p.js";
|
|
8
8
|
import path from "node:path";
|