openfox 1.6.71 → 1.6.73
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/{auth-JF2HDJ6P.js → auth-LZZX63KI.js} +1 -1
- package/dist/{auto-compaction-FJ2LGJSA.js → auto-compaction-HQHEK75L.js} +9 -9
- package/dist/{chat-handler-KSF2CR5H.js → chat-handler-NNDQSDFI.js} +12 -12
- package/dist/{chunk-ENAZTRCR.js → chunk-4CQ7CUQ6.js} +2 -2
- package/dist/{chunk-F2VWCCMC.js → chunk-55Z3DJ7G.js} +5 -5
- package/dist/{chunk-LRXDM2PJ.js → chunk-5UTTLO4D.js} +5 -5
- package/dist/{chunk-TVQOONDR.js → chunk-AFATQ5LJ.js} +1 -6
- package/dist/{chunk-VCALN543.js → chunk-DLINTLB7.js} +3 -3
- package/dist/{chunk-K6NHXJM3.js → chunk-EGIJKK4U.js} +7 -5
- package/dist/{chunk-WNZIUQ2L.js → chunk-J5DV33SS.js} +2 -2
- package/dist/{chunk-HYIQFRYJ.js → chunk-JQBTYHUR.js} +21 -10
- package/dist/{chunk-KVZIYCT4.js → chunk-ODUSHSK2.js} +20 -22
- package/dist/{chunk-YNWDWIX2.js → chunk-PPSXSDMY.js} +18 -7
- package/dist/{chunk-WNDXRFVQ.js → chunk-RTOWT3GF.js} +42 -87
- package/dist/{chunk-4DNPYFL4.js → chunk-TYUNDOX2.js} +4 -4
- package/dist/cli/dev.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/{config-3TU54V4X.js → config-6T4EHAP2.js} +5 -5
- package/dist/{events-2NH6YMVZ.js → events-LKEZ3YCW.js} +4 -4
- package/dist/{orchestrator-KBUCDCWE.js → orchestrator-T2EQZJS5.js} +10 -10
- package/dist/package.json +3 -1
- package/dist/{processor-TUK3TJ3N.js → processor-HF5SS6CR.js} +6 -6
- package/dist/{protocol-D8pu3Njm.d.ts → protocol-DRBnujwe.d.ts} +4 -0
- package/dist/{provider-J4G7XBDP.js → provider-AKN355YH.js} +8 -9
- package/dist/pwa-GHQCMCIU.js +357 -0
- package/dist/{runtime-config-2XJJIMSC.js → runtime-config-ZCK74XKM.js} +2 -2
- package/dist/{serve-Y7CERCIH.js → serve-YCFUOOGT.js} +14 -14
- package/dist/server/index.d.ts +2 -2
- package/dist/server/index.js +12 -12
- package/dist/shared/index.d.ts +2 -2
- package/dist/{tools-J23MXDY6.js → tools-5MCH72FH.js} +9 -9
- package/dist/{vision-fallback-HXPTLQHN.js → vision-fallback-AXH3BGJC.js} +2 -2
- package/dist/web/assets/{index-o22LDSSr.js → index-9GgVgB7B.js} +47 -47
- package/dist/web/assets/{index-Da8AupAk.css → index-D4Si0Pmc.css} +1 -1
- package/dist/web/index.html +2 -2
- package/dist/web/sw.js +1 -1
- package/package.json +3 -1
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getGlobalConfigDir
|
|
3
|
+
} from "./chunk-R4HADRYO.js";
|
|
4
|
+
|
|
5
|
+
// src/cli/pwa.ts
|
|
6
|
+
import { execSync, spawn } from "child_process";
|
|
7
|
+
import { join } from "path";
|
|
8
|
+
import { readFile, writeFile, access, mkdir } from "fs/promises";
|
|
9
|
+
import { platform } from "os";
|
|
10
|
+
import { confirm, isCancel, cancel, log } from "@clack/prompts";
|
|
11
|
+
var PWA_CONFIG_FILE = "pwa.json";
|
|
12
|
+
function execSyncSilent(cmd) {
|
|
13
|
+
try {
|
|
14
|
+
return execSync(cmd, { encoding: "utf-8", stdio: ["pipe", "pipe", "pipe"] });
|
|
15
|
+
} catch {
|
|
16
|
+
return "";
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
function execSyncOk(cmd) {
|
|
20
|
+
try {
|
|
21
|
+
execSync(cmd, { encoding: "utf-8", stdio: ["pipe", "pipe", "pipe"] });
|
|
22
|
+
return true;
|
|
23
|
+
} catch {
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
function isFirefoxPwaAvailable() {
|
|
28
|
+
if (platform() === "win32") {
|
|
29
|
+
return execSyncOk("where firefoxpwa");
|
|
30
|
+
}
|
|
31
|
+
return execSyncOk("which firefoxpwa");
|
|
32
|
+
}
|
|
33
|
+
function isRuntimeInstalled() {
|
|
34
|
+
const out = execSyncSilent("firefoxpwa runtime --help");
|
|
35
|
+
return out.includes("uninstall");
|
|
36
|
+
}
|
|
37
|
+
function getManifestUrl(mode) {
|
|
38
|
+
const port = mode === "development" ? 10469 : 10369;
|
|
39
|
+
return `http://127.0.0.1:${port}/manifest.webmanifest`;
|
|
40
|
+
}
|
|
41
|
+
function getPwaConfigPath(mode) {
|
|
42
|
+
return join(getGlobalConfigDir(mode), PWA_CONFIG_FILE);
|
|
43
|
+
}
|
|
44
|
+
async function loadPwaConfig(mode) {
|
|
45
|
+
try {
|
|
46
|
+
const content = await readFile(getPwaConfigPath(mode), "utf-8");
|
|
47
|
+
return JSON.parse(content);
|
|
48
|
+
} catch {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
async function savePwaConfig(mode, config) {
|
|
53
|
+
await mkdir(getGlobalConfigDir(mode), { recursive: true });
|
|
54
|
+
await writeFile(getPwaConfigPath(mode), JSON.stringify(config, null, 2));
|
|
55
|
+
}
|
|
56
|
+
async function removePwaConfig(mode) {
|
|
57
|
+
try {
|
|
58
|
+
await access(getPwaConfigPath(mode));
|
|
59
|
+
} catch {
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
const { unlink } = await import("fs/promises");
|
|
63
|
+
await unlink(getPwaConfigPath(mode));
|
|
64
|
+
}
|
|
65
|
+
function getFirefoxPwaInstallHint() {
|
|
66
|
+
const plat = platform();
|
|
67
|
+
switch (plat) {
|
|
68
|
+
case "darwin":
|
|
69
|
+
return "brew install firefoxpwa";
|
|
70
|
+
case "win32":
|
|
71
|
+
return "scoop install extras/firefoxpwa # or: choco install firefoxpwa # or: winget install filips.FirefoxPWA";
|
|
72
|
+
case "linux":
|
|
73
|
+
if (execSyncOk("which apt-get")) return "apt install firefoxpwa # Debian/Ubuntu";
|
|
74
|
+
if (execSyncOk("which dnf")) return "dnf install firefoxpwa # Fedora/RHEL";
|
|
75
|
+
if (execSyncOk("which pacman")) return "pacman -S firefoxpwa # Arch";
|
|
76
|
+
return "See: https://pwasforfirefox.filips.si/installation/";
|
|
77
|
+
default:
|
|
78
|
+
return "See: https://pwasforfirefox.filips.si/installation/";
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
function probeInstalledApp(manifestUrl) {
|
|
82
|
+
try {
|
|
83
|
+
const out = execSync("firefoxpwa profile list", { encoding: "utf-8" });
|
|
84
|
+
const lines = out.split("\n");
|
|
85
|
+
let currentProfile = "";
|
|
86
|
+
for (const line of lines) {
|
|
87
|
+
const idMatch = line.match(/^ID:\s+(\S+)/);
|
|
88
|
+
if (idMatch) {
|
|
89
|
+
currentProfile = idMatch[1];
|
|
90
|
+
continue;
|
|
91
|
+
}
|
|
92
|
+
const appMatch = line.match(/-\s+\S+:\s+(\S+)\s+\((\S+)\)/);
|
|
93
|
+
if (appMatch && currentProfile) {
|
|
94
|
+
if (appMatch[1] === manifestUrl) {
|
|
95
|
+
return { appId: appMatch[2], profileId: currentProfile };
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
} catch {
|
|
100
|
+
}
|
|
101
|
+
return null;
|
|
102
|
+
}
|
|
103
|
+
function isServerReachable(port) {
|
|
104
|
+
try {
|
|
105
|
+
const result = execSync(`curl -s -o /dev/null -w '%{http_code}' http://127.0.0.1:${port}/manifest.webmanifest`, {
|
|
106
|
+
encoding: "utf-8",
|
|
107
|
+
timeout: 5e3
|
|
108
|
+
});
|
|
109
|
+
return result.trim() === "200";
|
|
110
|
+
} catch {
|
|
111
|
+
return false;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
function printPwaHelp() {
|
|
115
|
+
console.log(`
|
|
116
|
+
PWA Commands (via Firefox PWAsForFirefox):
|
|
117
|
+
|
|
118
|
+
openfox pwa Start the PWA install walkthrough
|
|
119
|
+
openfox pwa install Install OpenFox as a desktop PWA
|
|
120
|
+
openfox pwa uninstall Remove the OpenFox PWA from your system
|
|
121
|
+
openfox pwa launch Launch the OpenFox PWA
|
|
122
|
+
openfox pwa update Re-register the PWA (use after upgrading OpenFox)
|
|
123
|
+
openfox pwa status Check if the PWA is installed
|
|
124
|
+
|
|
125
|
+
Requirements:
|
|
126
|
+
Install PWAsForFirefox first: https://pwasforfirefox.filips.si/installation/
|
|
127
|
+
`);
|
|
128
|
+
}
|
|
129
|
+
async function runPwaCommand(mode, subcommand) {
|
|
130
|
+
switch (subcommand) {
|
|
131
|
+
case "install":
|
|
132
|
+
case void 0:
|
|
133
|
+
await pwaInstall(mode);
|
|
134
|
+
break;
|
|
135
|
+
case "uninstall":
|
|
136
|
+
await pwaUninstall(mode);
|
|
137
|
+
break;
|
|
138
|
+
case "launch":
|
|
139
|
+
await pwaLaunch(mode);
|
|
140
|
+
break;
|
|
141
|
+
case "update":
|
|
142
|
+
await pwaUpdate(mode);
|
|
143
|
+
break;
|
|
144
|
+
case "status":
|
|
145
|
+
await pwaStatus(mode);
|
|
146
|
+
break;
|
|
147
|
+
default:
|
|
148
|
+
printPwaHelp();
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
async function pwaInstall(mode) {
|
|
152
|
+
const manifestUrl = getManifestUrl(mode);
|
|
153
|
+
if (!isFirefoxPwaAvailable()) {
|
|
154
|
+
const hint = getFirefoxPwaInstallHint();
|
|
155
|
+
log.error("firefoxpwa is not installed or not on your PATH.");
|
|
156
|
+
console.log(`
|
|
157
|
+
Install it first:
|
|
158
|
+
|
|
159
|
+
${hint}
|
|
160
|
+
|
|
161
|
+
See: https://pwasforfirefox.filips.si/installation/`);
|
|
162
|
+
process.exit(1);
|
|
163
|
+
}
|
|
164
|
+
if (!isRuntimeInstalled()) {
|
|
165
|
+
const install = await confirm({
|
|
166
|
+
message: "Firefox PWA runtime is not installed. Install it now?",
|
|
167
|
+
initialValue: true
|
|
168
|
+
});
|
|
169
|
+
if (isCancel(install)) {
|
|
170
|
+
cancel();
|
|
171
|
+
process.exit(0);
|
|
172
|
+
}
|
|
173
|
+
if (install) {
|
|
174
|
+
log.info("Running: firefoxpwa runtime install");
|
|
175
|
+
try {
|
|
176
|
+
spawn("firefoxpwa", ["runtime", "install"], { stdio: "inherit" });
|
|
177
|
+
} catch {
|
|
178
|
+
log.error("Failed to install runtime.");
|
|
179
|
+
process.exit(1);
|
|
180
|
+
}
|
|
181
|
+
} else {
|
|
182
|
+
log.info("Skipping runtime install. The PWA cannot be used until the runtime is installed.");
|
|
183
|
+
process.exit(0);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
const port = mode === "development" ? 10469 : 10369;
|
|
187
|
+
if (!isServerReachable(port)) {
|
|
188
|
+
log.error(`OpenFox server is not reachable on port ${port}.`);
|
|
189
|
+
console.log(`
|
|
190
|
+
Start OpenFox first:
|
|
191
|
+
|
|
192
|
+
openfox
|
|
193
|
+
`);
|
|
194
|
+
process.exit(1);
|
|
195
|
+
}
|
|
196
|
+
const existing = await loadPwaConfig(mode);
|
|
197
|
+
if (existing) {
|
|
198
|
+
const installed = probeInstalledApp(manifestUrl);
|
|
199
|
+
if (installed) {
|
|
200
|
+
log.info("OpenFox PWA is already installed.");
|
|
201
|
+
console.log(` App ID: ${installed.appId}`);
|
|
202
|
+
console.log(` Profile: ${installed.profileId}`);
|
|
203
|
+
console.log(` URL: ${manifestUrl}`);
|
|
204
|
+
console.log(`
|
|
205
|
+
Use "openfox pwa launch" to start it, or "openfox pwa uninstall" to remove it.`);
|
|
206
|
+
return;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
if (existing) {
|
|
210
|
+
await removePwaConfig(mode);
|
|
211
|
+
}
|
|
212
|
+
log.info("Installing OpenFox PWA...");
|
|
213
|
+
let appId = "";
|
|
214
|
+
let profileId = "00000000000000000000000000";
|
|
215
|
+
try {
|
|
216
|
+
execSync(`firefoxpwa site install ${manifestUrl}`, { encoding: "utf-8" });
|
|
217
|
+
const detected = probeInstalledApp(manifestUrl);
|
|
218
|
+
if (detected) {
|
|
219
|
+
appId = detected.appId;
|
|
220
|
+
profileId = detected.profileId;
|
|
221
|
+
}
|
|
222
|
+
} catch {
|
|
223
|
+
log.error("Failed to install PWA. Ensure OpenFox is running and try again.");
|
|
224
|
+
process.exit(1);
|
|
225
|
+
}
|
|
226
|
+
if (!appId) {
|
|
227
|
+
log.error("Could not detect installed app ID. The PWA may still be installed.");
|
|
228
|
+
console.log("Check with: firefoxpwa profile list");
|
|
229
|
+
process.exit(1);
|
|
230
|
+
}
|
|
231
|
+
const pwaConfig = { appId, profileId, manifestUrl, installedAt: (/* @__PURE__ */ new Date()).toISOString() };
|
|
232
|
+
await savePwaConfig(mode, pwaConfig);
|
|
233
|
+
log.info("OpenFox PWA installed successfully!");
|
|
234
|
+
console.log(`
|
|
235
|
+
App ID: ${appId}`);
|
|
236
|
+
console.log(` Profile: ${profileId}`);
|
|
237
|
+
console.log(`
|
|
238
|
+
Launch it with: openfox pwa launch`);
|
|
239
|
+
}
|
|
240
|
+
async function pwaUninstall(mode) {
|
|
241
|
+
if (!isFirefoxPwaAvailable()) {
|
|
242
|
+
log.error("firefoxpwa is not installed or not on your PATH.");
|
|
243
|
+
process.exit(1);
|
|
244
|
+
}
|
|
245
|
+
const manifestUrl = getManifestUrl(mode);
|
|
246
|
+
const existing = await loadPwaConfig(mode);
|
|
247
|
+
let appId = existing?.appId ?? "";
|
|
248
|
+
if (!appId) {
|
|
249
|
+
const detected = probeInstalledApp(manifestUrl);
|
|
250
|
+
if (detected) appId = detected.appId;
|
|
251
|
+
}
|
|
252
|
+
if (!appId) {
|
|
253
|
+
log.info("OpenFox PWA is not installed.");
|
|
254
|
+
return;
|
|
255
|
+
}
|
|
256
|
+
log.info("Removing OpenFox PWA...");
|
|
257
|
+
try {
|
|
258
|
+
execSync(`firefoxpwa site uninstall ${appId} --quiet`, { encoding: "utf-8" });
|
|
259
|
+
} catch {
|
|
260
|
+
log.error(`Failed to uninstall PWA (ID: ${appId}).`);
|
|
261
|
+
process.exit(1);
|
|
262
|
+
}
|
|
263
|
+
await removePwaConfig(mode);
|
|
264
|
+
log.info("OpenFox PWA removed from your system.");
|
|
265
|
+
console.log("\nNote: The Firefox PWA runtime is still installed.");
|
|
266
|
+
console.log("To remove it: firefoxpwa runtime uninstall");
|
|
267
|
+
}
|
|
268
|
+
async function pwaLaunch(mode) {
|
|
269
|
+
if (!isFirefoxPwaAvailable()) {
|
|
270
|
+
log.error("firefoxpwa is not installed or not on your PATH.");
|
|
271
|
+
process.exit(1);
|
|
272
|
+
}
|
|
273
|
+
const manifestUrl = getManifestUrl(mode);
|
|
274
|
+
const existing = await loadPwaConfig(mode);
|
|
275
|
+
let appId = existing?.appId ?? "";
|
|
276
|
+
if (!appId) {
|
|
277
|
+
const detected = probeInstalledApp(manifestUrl);
|
|
278
|
+
if (detected) appId = detected.appId;
|
|
279
|
+
}
|
|
280
|
+
if (!appId) {
|
|
281
|
+
log.info("OpenFox PWA is not installed.");
|
|
282
|
+
console.log("\nInstall it first: openfox pwa install");
|
|
283
|
+
return;
|
|
284
|
+
}
|
|
285
|
+
log.info("Launching OpenFox PWA...");
|
|
286
|
+
spawn("firefoxpwa", ["site", "launch", appId], { stdio: "inherit" });
|
|
287
|
+
}
|
|
288
|
+
async function pwaUpdate(mode) {
|
|
289
|
+
if (!isFirefoxPwaAvailable()) {
|
|
290
|
+
log.error("firefoxpwa is not installed or not on your PATH.");
|
|
291
|
+
process.exit(1);
|
|
292
|
+
}
|
|
293
|
+
const manifestUrl = getManifestUrl(mode);
|
|
294
|
+
const existing = await loadPwaConfig(mode);
|
|
295
|
+
let appId = existing?.appId ?? "";
|
|
296
|
+
if (!appId) {
|
|
297
|
+
const detected = probeInstalledApp(manifestUrl);
|
|
298
|
+
if (detected) appId = detected.appId;
|
|
299
|
+
}
|
|
300
|
+
if (!appId) {
|
|
301
|
+
log.info("OpenFox PWA is not installed.");
|
|
302
|
+
console.log("\nInstall it first: openfox pwa install");
|
|
303
|
+
return;
|
|
304
|
+
}
|
|
305
|
+
try {
|
|
306
|
+
execSync(`firefoxpwa site update ${appId}`, { encoding: "utf-8" });
|
|
307
|
+
} catch {
|
|
308
|
+
log.error("Failed to update PWA metadata.");
|
|
309
|
+
process.exit(1);
|
|
310
|
+
}
|
|
311
|
+
log.info("OpenFox PWA metadata updated.");
|
|
312
|
+
console.log(`
|
|
313
|
+
The manifest is re-fetched automatically on each launch.`);
|
|
314
|
+
console.log(`Launch to pick up OpenFox changes:
|
|
315
|
+
|
|
316
|
+
openfox pwa launch`);
|
|
317
|
+
}
|
|
318
|
+
async function pwaStatus(mode) {
|
|
319
|
+
if (!isFirefoxPwaAvailable()) {
|
|
320
|
+
log.error("firefoxpwa is not installed or not on your PATH.");
|
|
321
|
+
console.log("\nInstall PWAsForFirefox: https://pwasforfirefox.filips.si/installation/");
|
|
322
|
+
return;
|
|
323
|
+
}
|
|
324
|
+
if (!isRuntimeInstalled()) {
|
|
325
|
+
log.warn("Firefox PWA runtime is not installed.");
|
|
326
|
+
console.log(`
|
|
327
|
+
Run: firefoxpwa runtime install`);
|
|
328
|
+
return;
|
|
329
|
+
}
|
|
330
|
+
const manifestUrl = getManifestUrl(mode);
|
|
331
|
+
const existing = await loadPwaConfig(mode);
|
|
332
|
+
let appId = existing?.appId ?? "";
|
|
333
|
+
if (!appId) {
|
|
334
|
+
const detected = probeInstalledApp(manifestUrl);
|
|
335
|
+
if (detected) appId = detected.appId;
|
|
336
|
+
}
|
|
337
|
+
if (!appId) {
|
|
338
|
+
log.info("OpenFox PWA is not installed.");
|
|
339
|
+
console.log("\nInstall it: openfox pwa install");
|
|
340
|
+
return;
|
|
341
|
+
}
|
|
342
|
+
log.info("OpenFox PWA is installed.");
|
|
343
|
+
console.log(`
|
|
344
|
+
App ID: ${appId}`);
|
|
345
|
+
console.log(` Profile ID: ${existing?.profileId ?? "default"}`);
|
|
346
|
+
console.log(` Manifest: ${manifestUrl}`);
|
|
347
|
+
console.log(` Installed: ${existing?.installedAt ? new Date(existing.installedAt).toLocaleString() : "unknown"}`);
|
|
348
|
+
}
|
|
349
|
+
export {
|
|
350
|
+
getManifestUrl,
|
|
351
|
+
loadPwaConfig,
|
|
352
|
+
printPwaHelp,
|
|
353
|
+
removePwaConfig,
|
|
354
|
+
runPwaCommand,
|
|
355
|
+
savePwaConfig
|
|
356
|
+
};
|
|
357
|
+
//# sourceMappingURL=pwa-GHQCMCIU.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getRuntimeConfig,
|
|
3
3
|
setRuntimeConfig
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-AFATQ5LJ.js";
|
|
5
5
|
export {
|
|
6
6
|
getRuntimeConfig,
|
|
7
7
|
setRuntimeConfig
|
|
8
8
|
};
|
|
9
|
-
//# sourceMappingURL=runtime-config-
|
|
9
|
+
//# sourceMappingURL=runtime-config-ZCK74XKM.js.map
|
|
@@ -2,26 +2,26 @@ import {
|
|
|
2
2
|
getActiveProvider,
|
|
3
3
|
getDefaultModel,
|
|
4
4
|
loadGlobalConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TYUNDOX2.js";
|
|
6
6
|
import {
|
|
7
7
|
VERSION,
|
|
8
8
|
createServer
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-RTOWT3GF.js";
|
|
10
|
+
import "./chunk-EGIJKK4U.js";
|
|
11
|
+
import "./chunk-ODUSHSK2.js";
|
|
12
|
+
import "./chunk-GQZGIMJO.js";
|
|
13
|
+
import "./chunk-7JPKRM6M.js";
|
|
12
14
|
import "./chunk-RBPOAAIZ.js";
|
|
13
15
|
import "./chunk-NBU6KIOD.js";
|
|
14
16
|
import "./chunk-574HZVLE.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-JQBTYHUR.js";
|
|
18
|
+
import "./chunk-55Z3DJ7G.js";
|
|
19
|
+
import "./chunk-J5DV33SS.js";
|
|
20
|
+
import "./chunk-5UTTLO4D.js";
|
|
21
|
+
import "./chunk-BLNFJ22S.js";
|
|
20
22
|
import "./chunk-PFRQO5Z3.js";
|
|
21
23
|
import "./chunk-KFBIHS3S.js";
|
|
22
24
|
import "./chunk-22CTURMH.js";
|
|
23
|
-
import "./chunk-GQZGIMJO.js";
|
|
24
|
-
import "./chunk-BLNFJ22S.js";
|
|
25
25
|
import "./chunk-B7E3BICY.js";
|
|
26
26
|
import "./chunk-CTAIXOZJ.js";
|
|
27
27
|
import {
|
|
@@ -31,8 +31,8 @@ import {
|
|
|
31
31
|
} from "./chunk-R4HADRYO.js";
|
|
32
32
|
import {
|
|
33
33
|
loadConfig
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import "./chunk-
|
|
34
|
+
} from "./chunk-AFATQ5LJ.js";
|
|
35
|
+
import "./chunk-DLINTLB7.js";
|
|
36
36
|
import {
|
|
37
37
|
logger
|
|
38
38
|
} from "./chunk-PNBH3RAX.js";
|
|
@@ -188,4 +188,4 @@ async function runServe(options) {
|
|
|
188
188
|
export {
|
|
189
189
|
runServe
|
|
190
190
|
};
|
|
191
|
-
//# sourceMappingURL=serve-
|
|
191
|
+
//# sourceMappingURL=serve-YCFUOOGT.js.map
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aO as ToolCall, c as Attachment, T as Diagnostic, an as Provider, a8 as ModelConfig, aA as Session, aJ as SessionSummary, af as Project, aE as SessionMode, aG as SessionPhase, M as Message, K as Criterion, N as CriterionStatus, aw as QueuedMessage, G as ContextState, P as DangerLevel$1, ay as ServerMessage, aL as StatsIdentity, aR as ToolResult, E as Config } from '../protocol-
|
|
1
|
+
import { aO as ToolCall, c as Attachment, T as Diagnostic, an as Provider, a8 as ModelConfig, aA as Session, aJ as SessionSummary, af as Project, aE as SessionMode, aG as SessionPhase, M as Message, K as Criterion, N as CriterionStatus, aw as QueuedMessage, G as ContextState, P as DangerLevel$1, ay as ServerMessage, aL as StatsIdentity, aR as ToolResult, E as Config } from '../protocol-DRBnujwe.js';
|
|
2
2
|
import { Server } from 'node:http';
|
|
3
3
|
|
|
4
4
|
interface LLMMessage {
|
|
@@ -375,7 +375,7 @@ declare class SessionManager {
|
|
|
375
375
|
/**
|
|
376
376
|
* Update message stats. Delegates to EventStore (emits message.done if needed).
|
|
377
377
|
*/
|
|
378
|
-
updateMessageStats(sessionId: string, messageId: string,
|
|
378
|
+
updateMessageStats(sessionId: string, messageId: string, _stats: Message['stats']): void;
|
|
379
379
|
/**
|
|
380
380
|
* Update a message. Delegates to EventStore.
|
|
381
381
|
*/
|
package/dist/server/index.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createServer,
|
|
3
3
|
createServerHandle
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-RTOWT3GF.js";
|
|
5
|
+
import "../chunk-EGIJKK4U.js";
|
|
6
|
+
import "../chunk-ODUSHSK2.js";
|
|
7
|
+
import "../chunk-GQZGIMJO.js";
|
|
8
|
+
import "../chunk-7JPKRM6M.js";
|
|
7
9
|
import "../chunk-RBPOAAIZ.js";
|
|
8
10
|
import "../chunk-NBU6KIOD.js";
|
|
9
11
|
import "../chunk-574HZVLE.js";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-JQBTYHUR.js";
|
|
13
|
+
import "../chunk-55Z3DJ7G.js";
|
|
14
|
+
import "../chunk-J5DV33SS.js";
|
|
15
|
+
import "../chunk-5UTTLO4D.js";
|
|
16
|
+
import "../chunk-BLNFJ22S.js";
|
|
15
17
|
import "../chunk-PFRQO5Z3.js";
|
|
16
18
|
import "../chunk-KFBIHS3S.js";
|
|
17
19
|
import "../chunk-22CTURMH.js";
|
|
18
|
-
import "../chunk-GQZGIMJO.js";
|
|
19
|
-
import "../chunk-BLNFJ22S.js";
|
|
20
20
|
import "../chunk-B7E3BICY.js";
|
|
21
21
|
import "../chunk-CTAIXOZJ.js";
|
|
22
22
|
import "../chunk-R4HADRYO.js";
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-AFATQ5LJ.js";
|
|
24
|
+
import "../chunk-DLINTLB7.js";
|
|
25
25
|
import "../chunk-PNBH3RAX.js";
|
|
26
26
|
export {
|
|
27
27
|
createServer,
|
package/dist/shared/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as Message, S as SessionStats } from '../protocol-
|
|
2
|
-
export { A as AgentEvent, a as AskAnswerPayload, b as AskUserEvent, c as Attachment, B as BackgroundProcess, d as BackgroundProcessExitedPayload, e as BackgroundProcessOutputPayload, f as BackgroundProcessRemovedPayload, g as BackgroundProcessStartedPayload, h as BackgroundProcessStatus, C as CallStatsDataPoint, i as ChatAskUserPayload, j as ChatDeltaPayload, k as ChatDonePayload, l as ChatErrorPayload, m as ChatFormatRetryPayload, n as ChatMessagePayload, o as ChatMessageUpdatedPayload, p as ChatPathConfirmationPayload, q as ChatProgressPayload, r as ChatSummaryPayload, s as ChatThinkingPayload, t as ChatTodoPayload, u as ChatToolCallPayload, v as ChatToolOutputPayload, w as ChatToolPreparingPayload, x as ChatToolResultPayload, y as ChatVisionFallbackPayload, z as ClientMessage, D as ClientMessageType, E as Config, F as ContextCompactionEvent, G as ContextState, H as ContextStatePayload, I as ContextWindow, J as CriteriaUpdatedPayload, K as Criterion, L as CriterionAttempt, N as CriterionStatus, O as CriterionValidation, P as DangerLevel, Q as DevServerOutputPayload, R as DevServerStatePayload, T as Diagnostic, U as EditContextEdit, V as EditContextLine, W as EditContextRegion, X as ElementData, Y as ErrorPayload, Z as ExecutionState, _ as FileReadEntry, $ as InjectedFile, a0 as LLMCallStats, a1 as LlmBackend, a2 as LogLine, a3 as LspDiagnosticsPayload, a4 as MessageRole, a5 as MessageSegment, a6 as MessageStats, a7 as ModeChangedPayload, a8 as ModelConfig, a9 as ModelSessionStats, aa as PathConfirmPayload, ab as PathConfirmationReason, ac as PendingPathConfirmationPayload, ad as PhaseChangedPayload, ae as PreparingToolCall, af as Project, ag as ProjectDeletedPayload, ah as ProjectListPayload, ai as ProjectStatePayload, aj as PromptContext, ak as PromptContextMessage, al as PromptContextTool, am as PromptRequestOptions, an as Provider, ao as ProviderBackend, ap as ProviderChangedPayload, aq as QueueAddedEvent, ar as QueueCancelledEvent, as as QueueDrainedEvent, at as QueueEvent, au as QueueEventType, av as QueueStatePayload, aw as QueuedMessage, ax as RecentUserPrompt, ay as ServerMessage, az as ServerMessageType, aA as Session, aB as SessionListPayload, aC as SessionLoadPayload, aD as SessionMetadata, aE as SessionMode, aF as SessionNameGeneratedPayload, aG as SessionPhase, aH as SessionRunningPayload, aI as SessionStatePayload, aJ as SessionSummary, aK as StatsDataPoint, aL as StatsIdentity, aM as TaskCompletedPayload, aN as Todo, aO as ToolCall, aP as ToolMode, aQ as ToolName, aR as ToolResult, aS as ValidationResult, aT as createClientMessage, aU as createServerMessage, aV as isClientMessage, aW as isServerMessage } from '../protocol-
|
|
1
|
+
import { M as Message, S as SessionStats } from '../protocol-DRBnujwe.js';
|
|
2
|
+
export { A as AgentEvent, a as AskAnswerPayload, b as AskUserEvent, c as Attachment, B as BackgroundProcess, d as BackgroundProcessExitedPayload, e as BackgroundProcessOutputPayload, f as BackgroundProcessRemovedPayload, g as BackgroundProcessStartedPayload, h as BackgroundProcessStatus, C as CallStatsDataPoint, i as ChatAskUserPayload, j as ChatDeltaPayload, k as ChatDonePayload, l as ChatErrorPayload, m as ChatFormatRetryPayload, n as ChatMessagePayload, o as ChatMessageUpdatedPayload, p as ChatPathConfirmationPayload, q as ChatProgressPayload, r as ChatSummaryPayload, s as ChatThinkingPayload, t as ChatTodoPayload, u as ChatToolCallPayload, v as ChatToolOutputPayload, w as ChatToolPreparingPayload, x as ChatToolResultPayload, y as ChatVisionFallbackPayload, z as ClientMessage, D as ClientMessageType, E as Config, F as ContextCompactionEvent, G as ContextState, H as ContextStatePayload, I as ContextWindow, J as CriteriaUpdatedPayload, K as Criterion, L as CriterionAttempt, N as CriterionStatus, O as CriterionValidation, P as DangerLevel, Q as DevServerOutputPayload, R as DevServerStatePayload, T as Diagnostic, U as EditContextEdit, V as EditContextLine, W as EditContextRegion, X as ElementData, Y as ErrorPayload, Z as ExecutionState, _ as FileReadEntry, $ as InjectedFile, a0 as LLMCallStats, a1 as LlmBackend, a2 as LogLine, a3 as LspDiagnosticsPayload, a4 as MessageRole, a5 as MessageSegment, a6 as MessageStats, a7 as ModeChangedPayload, a8 as ModelConfig, a9 as ModelSessionStats, aa as PathConfirmPayload, ab as PathConfirmationReason, ac as PendingPathConfirmationPayload, ad as PhaseChangedPayload, ae as PreparingToolCall, af as Project, ag as ProjectDeletedPayload, ah as ProjectListPayload, ai as ProjectStatePayload, aj as PromptContext, ak as PromptContextMessage, al as PromptContextTool, am as PromptRequestOptions, an as Provider, ao as ProviderBackend, ap as ProviderChangedPayload, aq as QueueAddedEvent, ar as QueueCancelledEvent, as as QueueDrainedEvent, at as QueueEvent, au as QueueEventType, av as QueueStatePayload, aw as QueuedMessage, ax as RecentUserPrompt, ay as ServerMessage, az as ServerMessageType, aA as Session, aB as SessionListPayload, aC as SessionLoadPayload, aD as SessionMetadata, aE as SessionMode, aF as SessionNameGeneratedPayload, aG as SessionPhase, aH as SessionRunningPayload, aI as SessionStatePayload, aJ as SessionSummary, aK as StatsDataPoint, aL as StatsIdentity, aM as TaskCompletedPayload, aN as Todo, aO as ToolCall, aP as ToolMode, aQ as ToolName, aR as ToolResult, aS as ValidationResult, aT as createClientMessage, aU as createServerMessage, aV as isClientMessage, aW as isServerMessage } from '../protocol-DRBnujwe.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Session stats computation - aggregates response-level MessageStats from
|
|
@@ -11,13 +11,15 @@ import {
|
|
|
11
11
|
requestPathAccess,
|
|
12
12
|
stepDoneTool,
|
|
13
13
|
validateToolAction
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ODUSHSK2.js";
|
|
15
|
+
import "./chunk-GQZGIMJO.js";
|
|
16
|
+
import "./chunk-7JPKRM6M.js";
|
|
15
17
|
import "./chunk-RBPOAAIZ.js";
|
|
16
18
|
import "./chunk-NBU6KIOD.js";
|
|
17
19
|
import "./chunk-574HZVLE.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-J5DV33SS.js";
|
|
21
|
+
import "./chunk-5UTTLO4D.js";
|
|
22
|
+
import "./chunk-BLNFJ22S.js";
|
|
21
23
|
import "./chunk-PFRQO5Z3.js";
|
|
22
24
|
import "./chunk-KFBIHS3S.js";
|
|
23
25
|
import {
|
|
@@ -25,12 +27,10 @@ import {
|
|
|
25
27
|
cancelQuestionsForSession,
|
|
26
28
|
provideAnswer
|
|
27
29
|
} from "./chunk-22CTURMH.js";
|
|
28
|
-
import "./chunk-GQZGIMJO.js";
|
|
29
|
-
import "./chunk-BLNFJ22S.js";
|
|
30
30
|
import "./chunk-CTAIXOZJ.js";
|
|
31
31
|
import "./chunk-R4HADRYO.js";
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-AFATQ5LJ.js";
|
|
33
|
+
import "./chunk-DLINTLB7.js";
|
|
34
34
|
import "./chunk-PNBH3RAX.js";
|
|
35
35
|
export {
|
|
36
36
|
AskUserInterrupt,
|
|
@@ -49,4 +49,4 @@ export {
|
|
|
49
49
|
stepDoneTool,
|
|
50
50
|
validateToolAction
|
|
51
51
|
};
|
|
52
|
-
//# sourceMappingURL=tools-
|
|
52
|
+
//# sourceMappingURL=tools-5MCH72FH.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
getVisionFallbackConfig,
|
|
8
8
|
isVisionFallbackEnabled,
|
|
9
9
|
setVisionFallbackConfig
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-DLINTLB7.js";
|
|
11
11
|
import "./chunk-PNBH3RAX.js";
|
|
12
12
|
export {
|
|
13
13
|
clearDescriptionCache,
|
|
@@ -19,4 +19,4 @@ export {
|
|
|
19
19
|
isVisionFallbackEnabled,
|
|
20
20
|
setVisionFallbackConfig
|
|
21
21
|
};
|
|
22
|
-
//# sourceMappingURL=vision-fallback-
|
|
22
|
+
//# sourceMappingURL=vision-fallback-AXH3BGJC.js.map
|