openfox 2.0.103 → 2.0.105
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/CHANGELOG.md +32 -0
- package/dist/CHANGELOG.md +32 -0
- package/dist/{ask-TOBEA6KD.js → ask-CJMU6EW7.js} +2 -2
- package/dist/{chat-handler-IBFSBSGV.js → chat-handler-CQIDZUR7.js} +20 -20
- package/dist/chunk-4H427UBV.js +1298 -0
- package/dist/{chunk-5ZJYEINJ.js → chunk-5M45NHQ2.js} +2 -2
- package/dist/{chunk-W5FTCTGY.js → chunk-5VKT34HE.js} +2 -2
- package/dist/{chunk-W5RC44R6.js → chunk-6IXRISXA.js} +8 -8
- package/dist/{chunk-FQS7A5M4.js → chunk-6SIX7P6O.js} +2 -2
- package/dist/{chunk-REQIAJTV.js → chunk-6XDKVVYS.js} +75 -70
- package/dist/{chunk-DPRJYQ5U.js → chunk-AKUTOOSV.js} +25 -25
- package/dist/{chunk-MGKS2NG2.js → chunk-B76OP3OE.js} +3 -3
- package/dist/{chunk-WPCYFH6X.js → chunk-DMI2BXHA.js} +4 -4
- package/dist/{chunk-KKEBXFB3.js → chunk-EF7KGWF6.js} +2 -2
- package/dist/{chunk-Z753S3X7.js → chunk-EIJFYENT.js} +22 -15
- package/dist/{chunk-MR7ZEGOF.js → chunk-ERKPMNC7.js} +5 -2
- package/dist/{chunk-ZLCPNTRT.js → chunk-ERTTKKCE.js} +6 -2
- package/dist/{chunk-73EV6QYX.js → chunk-FGYOSQUR.js} +4 -4
- package/dist/{chunk-4Z2ARCY3.js → chunk-J27BLIPY.js} +2 -2
- package/dist/{chunk-EU3WWTFH.js → chunk-JAX5OEMM.js} +5 -1
- package/dist/{chunk-QL2G5UWE.js → chunk-KDJZGHSZ.js} +23 -13
- package/dist/{chunk-JL657X72.js → chunk-LG57PZYL.js} +16 -16
- package/dist/{chunk-RZC6DAT2.js → chunk-OUMHR7LR.js} +2 -2
- package/dist/{chunk-BJDQPILB.js → chunk-PP3WNUA6.js} +3 -3
- package/dist/{chunk-2EYTYXWN.js → chunk-S5HDT5RQ.js} +2 -2
- package/dist/{chunk-K6VVTE6C.js → chunk-SGGFVTMP.js} +30 -20
- package/dist/{chunk-YZSBJUGC.js → chunk-SPA7PQPJ.js} +3 -1
- package/dist/{chunk-KLK5N4OX.js → chunk-TFQSCHVU.js} +3 -3
- package/dist/{chunk-7HIJP4PC.js → chunk-UADZ2LZJ.js} +2 -2
- package/dist/chunk-UBF62JJI.js +7 -0
- package/dist/{chunk-AI27N57J.js → chunk-UUMJ5PAW.js} +4 -8
- package/dist/{chunk-KCED2X4H.js → chunk-WDJOSRIB.js} +12 -5
- package/dist/cli/dev.js +2 -2
- package/dist/cli/index.js +2 -2
- package/dist/{client-Q7BHKOCD.js → client-XT4VHS7E.js} +5 -5
- package/dist/{client-pure-ONSVWEG5.js → client-pure-USVHN4WG.js} +2 -2
- package/dist/{compactor-43P3LGDU.js → compactor-JMO7FHYA.js} +11 -11
- package/dist/{dynamic-context-AMPVZXUU.js → dynamic-context-UJE6F7XT.js} +7 -7
- package/dist/{events-RCC32JOA.js → events-BGVLDGLK.js} +6 -6
- package/dist/{folding-ZNUXPQUD.js → folding-AJMZBHNR.js} +4 -4
- package/dist/{http-client-WGNBG7PC.js → http-client-A7A4XWNK.js} +3 -3
- package/dist/{manager-HFGJLW7Q.js → manager-GGIIENDX.js} +4 -4
- package/dist/{model-overrides-DQDT5Y7R.js → model-overrides-BLEFI7FQ.js} +3 -3
- package/dist/{orchestrator-QDXKDLOW.js → orchestrator-Y2MBWVOB.js} +19 -19
- package/dist/package.json +1 -1
- package/dist/{path-security-SUFEIBTC.js → path-security-JCDBLFIE.js} +7 -7
- package/dist/{platform-2RLL7RAE.js → platform-GZ2WIDS5.js} +3 -3
- package/dist/{processor-YWNLWAZW.js → processor-3IURFW2N.js} +19 -19
- package/dist/{protocol-BXgdUKgZ.d.ts → protocol-rfiBDoXm.d.ts} +1 -1
- package/dist/provider/index.d.ts +4 -4
- package/dist/{provider-FX3QCGAF.js → provider-ZXYITGFU.js} +69 -69
- package/dist/{provider-manager-GLG6BA32.js → provider-manager-QH5IIGHB.js} +6 -6
- package/dist/{pwa-SEWCVKZX.js → pwa-XPHP3PY2.js} +35 -35
- package/dist/{registry-GBNLVWYQ.js → registry-M2QVGRNK.js} +3 -3
- package/dist/{serve-FE4UAXGE.js → serve-OYLEY3HD.js} +27 -27
- package/dist/server/index.d.ts +3 -3
- package/dist/server/index.js +26 -26
- package/dist/server-L6YS6A6J.js +47 -0
- package/dist/{session-overrides-MBGBX6TM.js → session-overrides-HA5IQYLI.js} +5 -5
- package/dist/{sessions-FEIFYGH7.js → sessions-ZV2WRC6K.js} +4 -4
- package/dist/{settings-FT7HF7ZB.js → settings-TGCITCVA.js} +2 -2
- package/dist/shared/index.d.ts +3 -3
- package/dist/skill-defaults/browser/SKILL.md +36 -22
- package/dist/{tools-M5DKWCJJ.js → tools-BG44DIYU.js} +17 -17
- package/dist/{types-DBftgbfl.d.ts → types-o-YQ3Bfq.d.ts} +1 -1
- package/dist/{types-7idXD8Bq.d.ts → types-o0v5xVxu.d.ts} +1 -1
- package/dist/{update-KMPQUPQT.js → update-SOCIS7KO.js} +2 -2
- package/dist/web/assets/index-B7wjVPjL.css +40 -0
- package/dist/web/assets/index-BHIT-lGU.js +323 -0
- package/dist/web/index.html +2 -2
- package/dist/web/sw.js +1 -1
- package/dist/web/workbox-9c191d2f.js +1 -0
- package/package.json +1 -1
- package/dist/chunk-SQYMFWY7.js +0 -7
- package/dist/chunk-XY3LESVZ.js +0 -1000
- package/dist/server-QGQGSHW6.js +0 -47
- package/dist/web/assets/index-B0CNNl1k.css +0 -32
- package/dist/web/assets/index-FWViKQkM.js +0 -324
- package/dist/web/workbox-8c29f6e4.js +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
} from "./chunk-
|
|
2
|
+
cancel,
|
|
3
|
+
confirm,
|
|
4
|
+
isCancel,
|
|
5
|
+
log
|
|
6
|
+
} from "./chunk-4H427UBV.js";
|
|
7
7
|
import {
|
|
8
8
|
getGlobalConfigDir
|
|
9
9
|
} from "./chunk-CQGTEGKL.js";
|
|
@@ -157,7 +157,7 @@ async function pwaInstall(mode) {
|
|
|
157
157
|
const manifestUrl = getManifestUrl(mode);
|
|
158
158
|
if (!isFirefoxPwaAvailable()) {
|
|
159
159
|
const hint = getFirefoxPwaInstallHint();
|
|
160
|
-
|
|
160
|
+
log.error("firefoxpwa is not installed or not on your PATH.");
|
|
161
161
|
console.log(`
|
|
162
162
|
Install it first:
|
|
163
163
|
|
|
@@ -167,30 +167,30 @@ See: https://pwasforfirefox.filips.si/installation/`);
|
|
|
167
167
|
process.exit(1);
|
|
168
168
|
}
|
|
169
169
|
if (!isRuntimeInstalled()) {
|
|
170
|
-
const install = await
|
|
170
|
+
const install = await confirm({
|
|
171
171
|
message: "Firefox PWA runtime is not installed. Install it now?",
|
|
172
172
|
initialValue: true
|
|
173
173
|
});
|
|
174
|
-
if (
|
|
175
|
-
|
|
174
|
+
if (isCancel(install)) {
|
|
175
|
+
cancel();
|
|
176
176
|
process.exit(0);
|
|
177
177
|
}
|
|
178
178
|
if (install) {
|
|
179
|
-
|
|
179
|
+
log.info("Running: firefoxpwa runtime install");
|
|
180
180
|
try {
|
|
181
181
|
spawn("firefoxpwa", ["runtime", "install"], { stdio: "inherit", windowsHide: true });
|
|
182
182
|
} catch {
|
|
183
|
-
|
|
183
|
+
log.error("Failed to install runtime.");
|
|
184
184
|
process.exit(1);
|
|
185
185
|
}
|
|
186
186
|
} else {
|
|
187
|
-
|
|
187
|
+
log.info("Skipping runtime install. The PWA cannot be used until the runtime is installed.");
|
|
188
188
|
process.exit(0);
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
const port = mode === "development" ? 10469 : 10369;
|
|
192
192
|
if (!await isServerReachable(port)) {
|
|
193
|
-
|
|
193
|
+
log.error(`OpenFox server is not reachable on port ${port}.`);
|
|
194
194
|
console.log(`
|
|
195
195
|
Start OpenFox first:
|
|
196
196
|
|
|
@@ -202,7 +202,7 @@ Start OpenFox first:
|
|
|
202
202
|
if (existing) {
|
|
203
203
|
const installed = probeInstalledApp(manifestUrl);
|
|
204
204
|
if (installed) {
|
|
205
|
-
|
|
205
|
+
log.info("OpenFox PWA is already installed.");
|
|
206
206
|
console.log(` App ID: ${installed.appId}`);
|
|
207
207
|
console.log(` Profile: ${installed.profileId}`);
|
|
208
208
|
console.log(` URL: ${manifestUrl}`);
|
|
@@ -214,7 +214,7 @@ Use "openfox pwa launch" to start it, or "openfox pwa uninstall" to remove it.`)
|
|
|
214
214
|
if (existing) {
|
|
215
215
|
await removePwaConfig(mode);
|
|
216
216
|
}
|
|
217
|
-
|
|
217
|
+
log.info("Installing OpenFox PWA...");
|
|
218
218
|
let appId = "";
|
|
219
219
|
let profileId = "00000000000000000000000000";
|
|
220
220
|
try {
|
|
@@ -225,17 +225,17 @@ Use "openfox pwa launch" to start it, or "openfox pwa uninstall" to remove it.`)
|
|
|
225
225
|
profileId = detected.profileId;
|
|
226
226
|
}
|
|
227
227
|
} catch {
|
|
228
|
-
|
|
228
|
+
log.error("Failed to install PWA. Ensure OpenFox is running and try again.");
|
|
229
229
|
process.exit(1);
|
|
230
230
|
}
|
|
231
231
|
if (!appId) {
|
|
232
|
-
|
|
232
|
+
log.error("Could not detect installed app ID. The PWA may still be installed.");
|
|
233
233
|
console.log("Check with: firefoxpwa profile list");
|
|
234
234
|
process.exit(1);
|
|
235
235
|
}
|
|
236
236
|
const pwaConfig = { appId, profileId, manifestUrl, installedAt: (/* @__PURE__ */ new Date()).toISOString() };
|
|
237
237
|
await savePwaConfig(mode, pwaConfig);
|
|
238
|
-
|
|
238
|
+
log.info("OpenFox PWA installed successfully!");
|
|
239
239
|
console.log(`
|
|
240
240
|
App ID: ${appId}`);
|
|
241
241
|
console.log(` Profile: ${profileId}`);
|
|
@@ -244,7 +244,7 @@ Launch it with: openfox pwa launch`);
|
|
|
244
244
|
}
|
|
245
245
|
async function pwaUninstall(mode) {
|
|
246
246
|
if (!isFirefoxPwaAvailable()) {
|
|
247
|
-
|
|
247
|
+
log.error("firefoxpwa is not installed or not on your PATH.");
|
|
248
248
|
process.exit(1);
|
|
249
249
|
}
|
|
250
250
|
const manifestUrl = getManifestUrl(mode);
|
|
@@ -255,24 +255,24 @@ async function pwaUninstall(mode) {
|
|
|
255
255
|
if (detected) appId = detected.appId;
|
|
256
256
|
}
|
|
257
257
|
if (!appId) {
|
|
258
|
-
|
|
258
|
+
log.info("OpenFox PWA is not installed.");
|
|
259
259
|
return;
|
|
260
260
|
}
|
|
261
|
-
|
|
261
|
+
log.info("Removing OpenFox PWA...");
|
|
262
262
|
try {
|
|
263
263
|
execSync(`firefoxpwa site uninstall ${appId} --quiet`, { encoding: "utf-8", windowsHide: true });
|
|
264
264
|
} catch {
|
|
265
|
-
|
|
265
|
+
log.error(`Failed to uninstall PWA (ID: ${appId}).`);
|
|
266
266
|
process.exit(1);
|
|
267
267
|
}
|
|
268
268
|
await removePwaConfig(mode);
|
|
269
|
-
|
|
269
|
+
log.info("OpenFox PWA removed from your system.");
|
|
270
270
|
console.log("\nNote: The Firefox PWA runtime is still installed.");
|
|
271
271
|
console.log("To remove it: firefoxpwa runtime uninstall");
|
|
272
272
|
}
|
|
273
273
|
async function pwaLaunch(mode) {
|
|
274
274
|
if (!isFirefoxPwaAvailable()) {
|
|
275
|
-
|
|
275
|
+
log.error("firefoxpwa is not installed or not on your PATH.");
|
|
276
276
|
process.exit(1);
|
|
277
277
|
}
|
|
278
278
|
const manifestUrl = getManifestUrl(mode);
|
|
@@ -283,16 +283,16 @@ async function pwaLaunch(mode) {
|
|
|
283
283
|
if (detected) appId = detected.appId;
|
|
284
284
|
}
|
|
285
285
|
if (!appId) {
|
|
286
|
-
|
|
286
|
+
log.info("OpenFox PWA is not installed.");
|
|
287
287
|
console.log("\nInstall it first: openfox pwa install");
|
|
288
288
|
return;
|
|
289
289
|
}
|
|
290
|
-
|
|
290
|
+
log.info("Launching OpenFox PWA...");
|
|
291
291
|
spawn("firefoxpwa", ["site", "launch", appId], { stdio: "inherit", windowsHide: true });
|
|
292
292
|
}
|
|
293
293
|
async function pwaUpdate(mode) {
|
|
294
294
|
if (!isFirefoxPwaAvailable()) {
|
|
295
|
-
|
|
295
|
+
log.error("firefoxpwa is not installed or not on your PATH.");
|
|
296
296
|
process.exit(1);
|
|
297
297
|
}
|
|
298
298
|
const manifestUrl = getManifestUrl(mode);
|
|
@@ -303,17 +303,17 @@ async function pwaUpdate(mode) {
|
|
|
303
303
|
if (detected) appId = detected.appId;
|
|
304
304
|
}
|
|
305
305
|
if (!appId) {
|
|
306
|
-
|
|
306
|
+
log.info("OpenFox PWA is not installed.");
|
|
307
307
|
console.log("\nInstall it first: openfox pwa install");
|
|
308
308
|
return;
|
|
309
309
|
}
|
|
310
310
|
try {
|
|
311
311
|
execSync(`firefoxpwa site update ${appId}`, { encoding: "utf-8", windowsHide: true });
|
|
312
312
|
} catch {
|
|
313
|
-
|
|
313
|
+
log.error("Failed to update PWA metadata.");
|
|
314
314
|
process.exit(1);
|
|
315
315
|
}
|
|
316
|
-
|
|
316
|
+
log.info("OpenFox PWA metadata updated.");
|
|
317
317
|
console.log(`
|
|
318
318
|
The manifest is re-fetched automatically on each launch.`);
|
|
319
319
|
console.log(`Launch to pick up OpenFox changes:
|
|
@@ -322,12 +322,12 @@ The manifest is re-fetched automatically on each launch.`);
|
|
|
322
322
|
}
|
|
323
323
|
async function pwaStatus(mode) {
|
|
324
324
|
if (!isFirefoxPwaAvailable()) {
|
|
325
|
-
|
|
325
|
+
log.error("firefoxpwa is not installed or not on your PATH.");
|
|
326
326
|
console.log("\nInstall PWAsForFirefox: https://pwasforfirefox.filips.si/installation/");
|
|
327
327
|
return;
|
|
328
328
|
}
|
|
329
329
|
if (!isRuntimeInstalled()) {
|
|
330
|
-
|
|
330
|
+
log.warn("Firefox PWA runtime is not installed.");
|
|
331
331
|
console.log(`
|
|
332
332
|
Run: firefoxpwa runtime install`);
|
|
333
333
|
return;
|
|
@@ -340,11 +340,11 @@ Run: firefoxpwa runtime install`);
|
|
|
340
340
|
if (detected) appId = detected.appId;
|
|
341
341
|
}
|
|
342
342
|
if (!appId) {
|
|
343
|
-
|
|
343
|
+
log.info("OpenFox PWA is not installed.");
|
|
344
344
|
console.log("\nInstall it: openfox pwa install");
|
|
345
345
|
return;
|
|
346
346
|
}
|
|
347
|
-
|
|
347
|
+
log.info("OpenFox PWA is installed.");
|
|
348
348
|
console.log(`
|
|
349
349
|
App ID: ${appId}`);
|
|
350
350
|
console.log(` Profile ID: ${existing?.profileId ?? "default"}`);
|
|
@@ -360,4 +360,4 @@ export {
|
|
|
360
360
|
runPwaCommand,
|
|
361
361
|
savePwaConfig
|
|
362
362
|
};
|
|
363
|
-
//# sourceMappingURL=pwa-
|
|
363
|
+
//# sourceMappingURL=pwa-XPHP3PY2.js.map
|
|
@@ -17,8 +17,8 @@ import {
|
|
|
17
17
|
resolveDefaultAgentId,
|
|
18
18
|
saveAgent,
|
|
19
19
|
saveAgentToProject
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-6SIX7P6O.js";
|
|
21
|
+
import "./chunk-SPA7PQPJ.js";
|
|
22
22
|
import "./chunk-GLF65XDS.js";
|
|
23
23
|
import "./chunk-K44MW7JJ.js";
|
|
24
24
|
import "./chunk-CQGTEGKL.js";
|
|
@@ -43,4 +43,4 @@ export {
|
|
|
43
43
|
saveAgent,
|
|
44
44
|
saveAgentToProject
|
|
45
45
|
};
|
|
46
|
-
//# sourceMappingURL=registry-
|
|
46
|
+
//# sourceMappingURL=registry-M2QVGRNK.js.map
|
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createServer
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-6XDKVVYS.js";
|
|
4
|
+
import "./chunk-SGGFVTMP.js";
|
|
5
5
|
import "./chunk-62QCBNPE.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-6IXRISXA.js";
|
|
7
|
+
import "./chunk-KDJZGHSZ.js";
|
|
8
|
+
import "./chunk-EIJFYENT.js";
|
|
9
|
+
import "./chunk-FGYOSQUR.js";
|
|
10
|
+
import "./chunk-AKUTOOSV.js";
|
|
11
|
+
import "./chunk-B76OP3OE.js";
|
|
12
|
+
import "./chunk-5M45NHQ2.js";
|
|
13
|
+
import "./chunk-J27BLIPY.js";
|
|
14
14
|
import "./chunk-ZASSAZ73.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-TFQSCHVU.js";
|
|
16
16
|
import "./chunk-I72ACQ6R.js";
|
|
17
17
|
import "./chunk-JE7LW7Y6.js";
|
|
18
18
|
import "./chunk-VKWVPQJ5.js";
|
|
19
19
|
import "./chunk-D3SXT3BL.js";
|
|
20
20
|
import "./chunk-J7GAZGZT.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-UADZ2LZJ.js";
|
|
22
|
+
import "./chunk-ERTTKKCE.js";
|
|
23
|
+
import "./chunk-DMI2BXHA.js";
|
|
24
24
|
import "./chunk-27SDWNKL.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-JAX5OEMM.js";
|
|
26
|
+
import "./chunk-EF7KGWF6.js";
|
|
27
|
+
import "./chunk-5VKT34HE.js";
|
|
28
28
|
import "./chunk-WWFH5GAR.js";
|
|
29
29
|
import {
|
|
30
30
|
VERSION
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-UBF62JJI.js";
|
|
32
|
+
import "./chunk-S5HDT5RQ.js";
|
|
33
|
+
import "./chunk-OUMHR7LR.js";
|
|
34
34
|
import {
|
|
35
35
|
loadConfig
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
36
|
+
} from "./chunk-6SIX7P6O.js";
|
|
37
|
+
import "./chunk-UUMJ5PAW.js";
|
|
38
38
|
import "./chunk-J2GP3J3X.js";
|
|
39
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-PP3WNUA6.js";
|
|
40
40
|
import "./chunk-V4IE7HJY.js";
|
|
41
41
|
import "./chunk-YHEQTVFV.js";
|
|
42
42
|
import "./chunk-HNCM3D7Y.js";
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-WDJOSRIB.js";
|
|
44
|
+
import "./chunk-ERKPMNC7.js";
|
|
45
|
+
import "./chunk-SPA7PQPJ.js";
|
|
46
46
|
import "./chunk-GLF65XDS.js";
|
|
47
47
|
import {
|
|
48
48
|
logger
|
|
@@ -220,4 +220,4 @@ async function runServe(options) {
|
|
|
220
220
|
export {
|
|
221
221
|
runServe
|
|
222
222
|
};
|
|
223
|
-
//# sourceMappingURL=serve-
|
|
223
|
+
//# sourceMappingURL=serve-OYLEY3HD.js.map
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as Diagnostic, u as Provider, M as ModelConfig, w as Session, B as SessionSummary, t as Project, y as SessionMode, z as SessionPhase, W as WorkflowExecution, a as Message, e as Criterion, g as CriterionStatus, r as MetadataEntry, A as Attachment, c as ContextState, D as DangerLevel$1, H as StatsIdentity, O as ToolResult, b as Config } from '../types-o0v5xVxu.js';
|
|
2
2
|
import { Server } from 'node:http';
|
|
3
|
-
import { e as LLMClient, d as LLMToolDefinition } from '../types-
|
|
4
|
-
import { a2 as QueuedMessage, a3 as ServerMessage } from '../protocol-
|
|
3
|
+
import { e as LLMClient, d as LLMToolDefinition } from '../types-o-YQ3Bfq.js';
|
|
4
|
+
import { a2 as QueuedMessage, a3 as ServerMessage } from '../protocol-rfiBDoXm.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Model-specific configuration profiles.
|
package/dist/server/index.js
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createServer,
|
|
3
3
|
createServerHandle
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-6XDKVVYS.js";
|
|
5
|
+
import "../chunk-SGGFVTMP.js";
|
|
6
6
|
import "../chunk-62QCBNPE.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-6IXRISXA.js";
|
|
8
|
+
import "../chunk-KDJZGHSZ.js";
|
|
9
|
+
import "../chunk-EIJFYENT.js";
|
|
10
|
+
import "../chunk-FGYOSQUR.js";
|
|
11
|
+
import "../chunk-AKUTOOSV.js";
|
|
12
|
+
import "../chunk-B76OP3OE.js";
|
|
13
|
+
import "../chunk-5M45NHQ2.js";
|
|
14
|
+
import "../chunk-J27BLIPY.js";
|
|
15
15
|
import "../chunk-ZASSAZ73.js";
|
|
16
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-TFQSCHVU.js";
|
|
17
17
|
import "../chunk-I72ACQ6R.js";
|
|
18
18
|
import "../chunk-JE7LW7Y6.js";
|
|
19
19
|
import "../chunk-VKWVPQJ5.js";
|
|
20
20
|
import "../chunk-D3SXT3BL.js";
|
|
21
21
|
import "../chunk-J7GAZGZT.js";
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
24
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-UADZ2LZJ.js";
|
|
23
|
+
import "../chunk-ERTTKKCE.js";
|
|
24
|
+
import "../chunk-DMI2BXHA.js";
|
|
25
25
|
import "../chunk-27SDWNKL.js";
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-JAX5OEMM.js";
|
|
27
|
+
import "../chunk-EF7KGWF6.js";
|
|
28
|
+
import "../chunk-5VKT34HE.js";
|
|
29
29
|
import "../chunk-WWFH5GAR.js";
|
|
30
|
-
import "../chunk-
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-
|
|
33
|
-
import "../chunk-
|
|
34
|
-
import "../chunk-
|
|
30
|
+
import "../chunk-UBF62JJI.js";
|
|
31
|
+
import "../chunk-S5HDT5RQ.js";
|
|
32
|
+
import "../chunk-OUMHR7LR.js";
|
|
33
|
+
import "../chunk-6SIX7P6O.js";
|
|
34
|
+
import "../chunk-UUMJ5PAW.js";
|
|
35
35
|
import "../chunk-J2GP3J3X.js";
|
|
36
|
-
import "../chunk-
|
|
36
|
+
import "../chunk-PP3WNUA6.js";
|
|
37
37
|
import "../chunk-V4IE7HJY.js";
|
|
38
38
|
import "../chunk-YHEQTVFV.js";
|
|
39
39
|
import "../chunk-HNCM3D7Y.js";
|
|
40
|
-
import "../chunk-
|
|
41
|
-
import "../chunk-
|
|
42
|
-
import "../chunk-
|
|
40
|
+
import "../chunk-WDJOSRIB.js";
|
|
41
|
+
import "../chunk-ERKPMNC7.js";
|
|
42
|
+
import "../chunk-SPA7PQPJ.js";
|
|
43
43
|
import "../chunk-GLF65XDS.js";
|
|
44
44
|
import "../chunk-K44MW7JJ.js";
|
|
45
45
|
import "../chunk-VUQCQXXJ.js";
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createWebSocketServer,
|
|
3
|
+
signalMcpReady
|
|
4
|
+
} from "./chunk-SGGFVTMP.js";
|
|
5
|
+
import "./chunk-6IXRISXA.js";
|
|
6
|
+
import "./chunk-KDJZGHSZ.js";
|
|
7
|
+
import "./chunk-EIJFYENT.js";
|
|
8
|
+
import "./chunk-FGYOSQUR.js";
|
|
9
|
+
import "./chunk-AKUTOOSV.js";
|
|
10
|
+
import "./chunk-B76OP3OE.js";
|
|
11
|
+
import "./chunk-5M45NHQ2.js";
|
|
12
|
+
import "./chunk-J27BLIPY.js";
|
|
13
|
+
import "./chunk-ZASSAZ73.js";
|
|
14
|
+
import "./chunk-TFQSCHVU.js";
|
|
15
|
+
import "./chunk-I72ACQ6R.js";
|
|
16
|
+
import "./chunk-JE7LW7Y6.js";
|
|
17
|
+
import "./chunk-VKWVPQJ5.js";
|
|
18
|
+
import "./chunk-D3SXT3BL.js";
|
|
19
|
+
import "./chunk-J7GAZGZT.js";
|
|
20
|
+
import "./chunk-UADZ2LZJ.js";
|
|
21
|
+
import "./chunk-ERTTKKCE.js";
|
|
22
|
+
import "./chunk-DMI2BXHA.js";
|
|
23
|
+
import "./chunk-27SDWNKL.js";
|
|
24
|
+
import "./chunk-JAX5OEMM.js";
|
|
25
|
+
import "./chunk-EF7KGWF6.js";
|
|
26
|
+
import "./chunk-5VKT34HE.js";
|
|
27
|
+
import "./chunk-WWFH5GAR.js";
|
|
28
|
+
import "./chunk-S5HDT5RQ.js";
|
|
29
|
+
import "./chunk-OUMHR7LR.js";
|
|
30
|
+
import "./chunk-6SIX7P6O.js";
|
|
31
|
+
import "./chunk-J2GP3J3X.js";
|
|
32
|
+
import "./chunk-V4IE7HJY.js";
|
|
33
|
+
import "./chunk-YHEQTVFV.js";
|
|
34
|
+
import "./chunk-WDJOSRIB.js";
|
|
35
|
+
import "./chunk-SPA7PQPJ.js";
|
|
36
|
+
import "./chunk-GLF65XDS.js";
|
|
37
|
+
import "./chunk-K44MW7JJ.js";
|
|
38
|
+
import "./chunk-VUQCQXXJ.js";
|
|
39
|
+
import "./chunk-4R7G5JB6.js";
|
|
40
|
+
import "./chunk-B56G5OEF.js";
|
|
41
|
+
import "./chunk-CQGTEGKL.js";
|
|
42
|
+
import "./chunk-5WRI5ZAA.js";
|
|
43
|
+
export {
|
|
44
|
+
createWebSocketServer,
|
|
45
|
+
signalMcpReady
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=server-L6YS6A6J.js.map
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
getAllSessionOverrides,
|
|
4
4
|
getSessionDisabledServers,
|
|
5
5
|
setSessionDisabledServers
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-UADZ2LZJ.js";
|
|
7
|
+
import "./chunk-OUMHR7LR.js";
|
|
8
|
+
import "./chunk-6SIX7P6O.js";
|
|
9
|
+
import "./chunk-SPA7PQPJ.js";
|
|
10
10
|
import "./chunk-GLF65XDS.js";
|
|
11
11
|
import "./chunk-K44MW7JJ.js";
|
|
12
12
|
import "./chunk-CQGTEGKL.js";
|
|
@@ -17,4 +17,4 @@ export {
|
|
|
17
17
|
getSessionDisabledServers,
|
|
18
18
|
setSessionDisabledServers
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=session-overrides-
|
|
20
|
+
//# sourceMappingURL=session-overrides-HA5IQYLI.js.map
|
|
@@ -21,9 +21,9 @@ import {
|
|
|
21
21
|
updateSessionRunning,
|
|
22
22
|
updateSessionWorkdir,
|
|
23
23
|
updateWorkflowExecutionStatus
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-OUMHR7LR.js";
|
|
25
|
+
import "./chunk-6SIX7P6O.js";
|
|
26
|
+
import "./chunk-SPA7PQPJ.js";
|
|
27
27
|
import "./chunk-GLF65XDS.js";
|
|
28
28
|
import "./chunk-K44MW7JJ.js";
|
|
29
29
|
import "./chunk-CQGTEGKL.js";
|
|
@@ -52,4 +52,4 @@ export {
|
|
|
52
52
|
updateSessionWorkdir,
|
|
53
53
|
updateWorkflowExecutionStatus
|
|
54
54
|
};
|
|
55
|
-
//# sourceMappingURL=sessions-
|
|
55
|
+
//# sourceMappingURL=sessions-ZV2WRC6K.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
getMaxVisibleItems,
|
|
7
7
|
getSetting,
|
|
8
8
|
setSetting
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SPA7PQPJ.js";
|
|
10
10
|
import "./chunk-GLF65XDS.js";
|
|
11
11
|
import "./chunk-K44MW7JJ.js";
|
|
12
12
|
import "./chunk-5WRI5ZAA.js";
|
|
@@ -19,4 +19,4 @@ export {
|
|
|
19
19
|
getSetting,
|
|
20
20
|
setSetting
|
|
21
21
|
};
|
|
22
|
-
//# sourceMappingURL=settings-
|
|
22
|
+
//# sourceMappingURL=settings-TGCITCVA.js.map
|
package/dist/shared/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as Attachment, C as CallStatsDataPoint,
|
|
3
|
-
export { A as AgentEvent, a as AskAnswerPayload, b as AskUserEvent, B as BackgroundProcess, c as BackgroundProcessExitedPayload, d as BackgroundProcessOutputPayload, e as BackgroundProcessRemovedPayload, f as BackgroundProcessStartedPayload, g as BackgroundProcessStatus, C as ChatAskUserPayload, h as ChatDeltaPayload, i as ChatDonePayload, j as ChatErrorPayload, k as ChatFormatRetryPayload, l as ChatMessagePayload, m as ChatMessageUpdatedPayload, n as ChatPathConfirmationPayload, o as ChatProgressPayload, p as ChatThinkingPayload, q as ChatTodoPayload, r as ChatToolCallPayload, s as ChatToolOutputPayload, t as ChatToolPreparingPayload, u as ChatToolResultPayload, v as ChatVisionFallbackPayload, w as ClientMessage, x as ClientMessageType, y as ContextCompactionEvent, z as ContextPreviewPayload, D as ContextStatePayload, E as CriteriaUpdatedPayload, F as DevServerOutputPayload, G as DevServerStatePayload, H as DiffLine, I as ErrorPayload, J as GitDiffFile, K as GitStatusPayload, L as LogLine, M as LspDiagnosticsPayload, N as MetadataUpdatedPayload, O as ModeChangedPayload, P as PathConfirmPayload, Q as PathConfirmationReason, R as PendingPathConfirmationPayload, S as PendingQuestionPayload, T as PhaseChangedPayload, U as ProjectDeletedPayload, V as ProjectListPayload, W as ProjectStatePayload, X as ProviderChangedPayload, Y as QueueAddedEvent, Z as QueueCancelledEvent, _ as QueueDrainedEvent, $ as QueueEvent, a0 as QueueEventType, a1 as QueueStatePayload, a2 as QueuedMessage, a3 as ServerMessage, a4 as ServerMessageType, a5 as SessionCreatedPayload, a6 as SessionListPayload, a7 as SessionLoadPayload, a8 as SessionNameGeneratedPayload, a9 as SessionRunningPayload, aa as SessionStatePayload, ab as TaskCompletedPayload, ac as WorkflowWaitingPayload, ad as createClientMessage, ae as createServerMessage, af as isClientMessage, ag as isServerMessage } from '../protocol-
|
|
1
|
+
import { a as Message, S as SessionStats } from '../types-o0v5xVxu.js';
|
|
2
|
+
export { A as Attachment, C as CallStatsDataPoint, b as Config, c as ContextState, d as ContextWindow, e as Criterion, f as CriterionAttempt, g as CriterionStatus, h as CriterionValidation, D as DangerLevel, i as Diagnostic, E as EditContextEdit, j as EditContextLine, k as EditContextRegion, l as ElementData, m as ExecutionState, F as FileReadEntry, I as InjectedFile, L as LLMCallStats, n as LlmBackend, o as MessageRole, p as MessageSegment, q as MessageStats, r as MetadataEntry, M as ModelConfig, s as ModelSessionStats, P as PreparingToolCall, t as Project, u as Provider, v as ProviderBackend, R as RecentUserPrompt, w as Session, x as SessionMetadata, y as SessionMode, z as SessionPhase, B as SessionSummary, G as StatsDataPoint, H as StatsIdentity, J as Todo, T as ToolCall, K as ToolMode, N as ToolName, O as ToolResult, V as ValidationResult, W as WorkflowExecution, Q as WorkflowExecutionStatus, U as WorkflowParameter } from '../types-o0v5xVxu.js';
|
|
3
|
+
export { A as AgentEvent, a as AskAnswerPayload, b as AskUserEvent, B as BackgroundProcess, c as BackgroundProcessExitedPayload, d as BackgroundProcessOutputPayload, e as BackgroundProcessRemovedPayload, f as BackgroundProcessStartedPayload, g as BackgroundProcessStatus, C as ChatAskUserPayload, h as ChatDeltaPayload, i as ChatDonePayload, j as ChatErrorPayload, k as ChatFormatRetryPayload, l as ChatMessagePayload, m as ChatMessageUpdatedPayload, n as ChatPathConfirmationPayload, o as ChatProgressPayload, p as ChatThinkingPayload, q as ChatTodoPayload, r as ChatToolCallPayload, s as ChatToolOutputPayload, t as ChatToolPreparingPayload, u as ChatToolResultPayload, v as ChatVisionFallbackPayload, w as ClientMessage, x as ClientMessageType, y as ContextCompactionEvent, z as ContextPreviewPayload, D as ContextStatePayload, E as CriteriaUpdatedPayload, F as DevServerOutputPayload, G as DevServerStatePayload, H as DiffLine, I as ErrorPayload, J as GitDiffFile, K as GitStatusPayload, L as LogLine, M as LspDiagnosticsPayload, N as MetadataUpdatedPayload, O as ModeChangedPayload, P as PathConfirmPayload, Q as PathConfirmationReason, R as PendingPathConfirmationPayload, S as PendingQuestionPayload, T as PhaseChangedPayload, U as ProjectDeletedPayload, V as ProjectListPayload, W as ProjectStatePayload, X as ProviderChangedPayload, Y as QueueAddedEvent, Z as QueueCancelledEvent, _ as QueueDrainedEvent, $ as QueueEvent, a0 as QueueEventType, a1 as QueueStatePayload, a2 as QueuedMessage, a3 as ServerMessage, a4 as ServerMessageType, a5 as SessionCreatedPayload, a6 as SessionListPayload, a7 as SessionLoadPayload, a8 as SessionNameGeneratedPayload, a9 as SessionRunningPayload, aa as SessionStatePayload, ab as TaskCompletedPayload, ac as WorkflowWaitingPayload, ad as createClientMessage, ae as createServerMessage, af as isClientMessage, ag as isServerMessage } from '../protocol-rfiBDoXm.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Session stats computation - aggregates response-level MessageStats from
|
|
@@ -7,41 +7,55 @@ metadata:
|
|
|
7
7
|
displayName: Browser
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
-
# playwright
|
|
10
|
+
# @playwright/cli
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
Interactive browser automation via the official Microsoft [`@playwright/cli`](https://github.com/microsoft/playwright-cli) package.
|
|
13
13
|
Use `run_command` to execute these commands.
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
>
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
Invoke it through npx — works on any machine with Node, no global or project-local install required:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npx -y @playwright/cli <command>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
> `-y` auto-confirms npx's one-time package download (cached afterwards). If you already installed it globally (`npm install -g @playwright/cli@latest`), the plain `playwright-cli` command works the same.
|
|
21
22
|
|
|
22
23
|
## Core Workflow
|
|
23
24
|
|
|
24
|
-
|
|
25
|
+
open a page -> snapshot to get element refs -> interact using refs -> snapshot again. Every command echoes the latest snapshot.
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
# Open a URL (headless by default; add --headed to show a window)
|
|
29
|
+
npx -y @playwright/cli open https://example.com
|
|
30
|
+
# Interact using refs from the snapshot
|
|
31
|
+
npx -y @playwright/cli click e42
|
|
32
|
+
npx -y @playwright/cli fill e15 "hello world"
|
|
33
|
+
# Re-snapshot to see the result
|
|
34
|
+
npx -y @playwright/cli snapshot
|
|
35
|
+
# Screenshot (only when a visual is needed — snapshots are the norm)
|
|
36
|
+
npx -y @playwright/cli screenshot
|
|
37
|
+
# Close the browser when done — leaving it open leaks CPU
|
|
38
|
+
npx -y @playwright/cli close
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Cleaning up
|
|
42
|
+
|
|
43
|
+
Closing the browser is part of the workflow, not an afterthought: Chromium can leave orphaned processes behind (a known upstream quirk) that keep burning CPU. If you suspect a leftover browser, reclaim it:
|
|
25
44
|
|
|
26
45
|
```bash
|
|
27
|
-
#
|
|
28
|
-
npx playwright
|
|
29
|
-
#
|
|
30
|
-
npx playwright
|
|
31
|
-
#
|
|
32
|
-
npx playwright
|
|
33
|
-
# Fill a form field by ref
|
|
34
|
-
npx playwright-cli fill e15 "hello world"
|
|
35
|
-
# Take a screenshot
|
|
36
|
-
npx playwright-cli screenshot
|
|
46
|
+
# See what's still running
|
|
47
|
+
npx -y @playwright/cli list
|
|
48
|
+
# Close every browser session
|
|
49
|
+
npx -y @playwright/cli close-all
|
|
50
|
+
# Force-kill stale/zombie browser processes
|
|
51
|
+
npx -y @playwright/cli kill-all
|
|
37
52
|
```
|
|
38
53
|
|
|
39
54
|
## Screenshot workflow
|
|
40
55
|
|
|
41
|
-
After
|
|
42
|
-
This allows you to see the image, and for the user to see it as well.
|
|
56
|
+
After `npx -y @playwright/cli screenshot`, always use the `read_file` tool on the path of the image returned by playwright-cli — so you can see it, and the user can see it too.
|
|
43
57
|
|
|
44
58
|
## All Commands
|
|
45
59
|
|
|
46
60
|
- `open [url]` -- open the browser (optionally to a URL)
|
|
47
|
-
- use `npx playwright
|
|
61
|
+
- use `npx -y @playwright/cli --help` to get all available commands
|