openfox 2.0.41 → 2.0.42

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.
Files changed (48) hide show
  1. package/dist/{ask-4GZ334CO.js → ask-TOBEA6KD.js} +2 -1
  2. package/dist/{auth-56SIRACI.js → auth-YY5PJYSC.js} +2 -1
  3. package/dist/{auto-config-FZFXOEEG.js → auto-config-F5Y6KAQ6.js} +2 -1
  4. package/dist/{backend-AGXWAU7A.js → backend-4HGUPY6W.js} +2 -1
  5. package/dist/{branch.api-PWFW26KC.js → branch.api-5DMEAIBI.js} +2 -1
  6. package/dist/{chat-handler-H4O7TLGM.js → chat-handler-KW4CAXTH.js} +5 -4
  7. package/dist/chunk-5WRI5ZAA.js +31 -0
  8. package/dist/{chunk-X3L37IIK.js → chunk-6ZS7YQOO.js} +24 -18
  9. package/dist/{chunk-NX6O62MR.js → chunk-LS3FQ4UQ.js} +63 -63
  10. package/dist/{chunk-JGNAYJJZ.js → chunk-NVQFIZJI.js} +2 -2
  11. package/dist/{chunk-XFMN7OFO.js → chunk-TT6LDJU5.js} +8 -8
  12. package/dist/{chunk-6KFKVGPK.js → chunk-ULZORR3T.js} +3 -3
  13. package/dist/{chunk-X6PMP7XH.js → chunk-XIBT7GFC.js} +3 -3
  14. package/dist/chunk-XY3LESVZ.js +1000 -0
  15. package/dist/cli/dev.js +3 -1
  16. package/dist/cli/index.js +3 -1
  17. package/dist/{client-XTPAYYRH.js → client-ZUL4AR4J.js} +2 -1
  18. package/dist/{client-pure-N2MOIDQ6.js → client-pure-DO3S675T.js} +2 -1
  19. package/dist/{compactor-RZA5VSRT.js → compactor-TJEAAZL3.js} +2 -1
  20. package/dist/{config-XOXIIBUY.js → config-S5CF4QU4.js} +2 -1
  21. package/dist/{events-KZZPCW2Q.js → events-THW3MYXE.js} +2 -1
  22. package/dist/{folding-ENYH4LMG.js → folding-H5C6HS7O.js} +2 -1
  23. package/dist/{http-client-SIPAW7IM.js → http-client-3OLSDU63.js} +2 -1
  24. package/dist/{inspect-proxy-UT2LFGJ5.js → inspect-proxy-BV25JERQ.js} +2 -1
  25. package/dist/{manager-W7N3XQ4Q.js → manager-R3EMNOPR.js} +2 -1
  26. package/dist/{orchestrator-IZ6VSEZT.js → orchestrator-XIGRXAEC.js} +4 -3
  27. package/dist/package.json +1 -1
  28. package/dist/{paths-X46PPOI2.js → paths-F27V3S4I.js} +2 -1
  29. package/dist/{permissions-Z2IIV2V7.js → permissions-QLHZUEGW.js} +3 -1
  30. package/dist/{processor-WQYQUIPB.js → processor-VGEPABSY.js} +5 -4
  31. package/dist/{profiles-Q36ELWQF.js → profiles-5J7F4BML.js} +2 -1
  32. package/dist/{project-creator-W6Z7KCMZ.js → project-creator-7RBHP6K6.js} +2 -1
  33. package/dist/{projects-2XSGA7JG.js → projects-BY227WT2.js} +2 -1
  34. package/dist/{protocol-BKNLAEPJ.js → protocol-CTNE3ANP.js} +2 -1
  35. package/dist/{provider-JLLIB72V.js → provider-JDI3LVYF.js} +67 -57
  36. package/dist/{provider-manager-GTWFGTCV.js → provider-manager-5UZXYOZZ.js} +2 -1
  37. package/dist/{pwa-76XP2DY2.js → pwa-M6QZ52ZO.js} +37 -31
  38. package/dist/{serve-XP3S4QDS.js → serve-J5POPC5Z.js} +6 -5
  39. package/dist/server/index.js +5 -4
  40. package/dist/{server-DKCNTFA5.js → server-NJ56QOTU.js} +5 -4
  41. package/dist/{service-FJ4TW5L7.js → service-YYJ5Y7CN.js} +3 -1
  42. package/dist/{settings-MTGCEUS7.js → settings-L2V4ZUA2.js} +2 -1
  43. package/dist/shared/index.js +1 -0
  44. package/dist/{store-OQ45KONN.js → store-SF7CDOQT.js} +2 -1
  45. package/dist/{tool-adapter-B7QP6NLA.js → tool-adapter-MOGEI6TP.js} +2 -1
  46. package/dist/{tools-X3QW7SN7.js → tools-PS5CSPGS.js} +3 -2
  47. package/dist/{url-utils-QWAHP54Q.js → url-utils-SAJP7AEX.js} +2 -1
  48. package/package.json +1 -1
@@ -1,13 +1,19 @@
1
+ import {
2
+ Ct,
3
+ Nt,
4
+ R,
5
+ Rt
6
+ } from "./chunk-XY3LESVZ.js";
1
7
  import {
2
8
  getGlobalConfigDir
3
9
  } from "./chunk-CQGTEGKL.js";
10
+ import "./chunk-5WRI5ZAA.js";
4
11
 
5
12
  // src/cli/pwa.ts
6
13
  import { execSync, spawn } from "child_process";
7
14
  import { join } from "path";
8
15
  import { readFile, writeFile, access, mkdir } from "fs/promises";
9
16
  import { platform } from "os";
10
- import { confirm, isCancel, cancel, log } from "@clack/prompts";
11
17
  var PWA_CONFIG_FILE = "pwa.json";
12
18
  function execSyncSilent(cmd) {
13
19
  try {
@@ -152,7 +158,7 @@ async function pwaInstall(mode) {
152
158
  const manifestUrl = getManifestUrl(mode);
153
159
  if (!isFirefoxPwaAvailable()) {
154
160
  const hint = getFirefoxPwaInstallHint();
155
- log.error("firefoxpwa is not installed or not on your PATH.");
161
+ R.error("firefoxpwa is not installed or not on your PATH.");
156
162
  console.log(`
157
163
  Install it first:
158
164
 
@@ -162,30 +168,30 @@ See: https://pwasforfirefox.filips.si/installation/`);
162
168
  process.exit(1);
163
169
  }
164
170
  if (!isRuntimeInstalled()) {
165
- const install = await confirm({
171
+ const install = await Rt({
166
172
  message: "Firefox PWA runtime is not installed. Install it now?",
167
173
  initialValue: true
168
174
  });
169
- if (isCancel(install)) {
170
- cancel();
175
+ if (Ct(install)) {
176
+ Nt();
171
177
  process.exit(0);
172
178
  }
173
179
  if (install) {
174
- log.info("Running: firefoxpwa runtime install");
180
+ R.info("Running: firefoxpwa runtime install");
175
181
  try {
176
182
  spawn("firefoxpwa", ["runtime", "install"], { stdio: "inherit" });
177
183
  } catch {
178
- log.error("Failed to install runtime.");
184
+ R.error("Failed to install runtime.");
179
185
  process.exit(1);
180
186
  }
181
187
  } else {
182
- log.info("Skipping runtime install. The PWA cannot be used until the runtime is installed.");
188
+ R.info("Skipping runtime install. The PWA cannot be used until the runtime is installed.");
183
189
  process.exit(0);
184
190
  }
185
191
  }
186
192
  const port = mode === "development" ? 10469 : 10369;
187
193
  if (!isServerReachable(port)) {
188
- log.error(`OpenFox server is not reachable on port ${port}.`);
194
+ R.error(`OpenFox server is not reachable on port ${port}.`);
189
195
  console.log(`
190
196
  Start OpenFox first:
191
197
 
@@ -197,7 +203,7 @@ Start OpenFox first:
197
203
  if (existing) {
198
204
  const installed = probeInstalledApp(manifestUrl);
199
205
  if (installed) {
200
- log.info("OpenFox PWA is already installed.");
206
+ R.info("OpenFox PWA is already installed.");
201
207
  console.log(` App ID: ${installed.appId}`);
202
208
  console.log(` Profile: ${installed.profileId}`);
203
209
  console.log(` URL: ${manifestUrl}`);
@@ -209,7 +215,7 @@ Use "openfox pwa launch" to start it, or "openfox pwa uninstall" to remove it.`)
209
215
  if (existing) {
210
216
  await removePwaConfig(mode);
211
217
  }
212
- log.info("Installing OpenFox PWA...");
218
+ R.info("Installing OpenFox PWA...");
213
219
  let appId = "";
214
220
  let profileId = "00000000000000000000000000";
215
221
  try {
@@ -220,17 +226,17 @@ Use "openfox pwa launch" to start it, or "openfox pwa uninstall" to remove it.`)
220
226
  profileId = detected.profileId;
221
227
  }
222
228
  } catch {
223
- log.error("Failed to install PWA. Ensure OpenFox is running and try again.");
229
+ R.error("Failed to install PWA. Ensure OpenFox is running and try again.");
224
230
  process.exit(1);
225
231
  }
226
232
  if (!appId) {
227
- log.error("Could not detect installed app ID. The PWA may still be installed.");
233
+ R.error("Could not detect installed app ID. The PWA may still be installed.");
228
234
  console.log("Check with: firefoxpwa profile list");
229
235
  process.exit(1);
230
236
  }
231
237
  const pwaConfig = { appId, profileId, manifestUrl, installedAt: (/* @__PURE__ */ new Date()).toISOString() };
232
238
  await savePwaConfig(mode, pwaConfig);
233
- log.info("OpenFox PWA installed successfully!");
239
+ R.info("OpenFox PWA installed successfully!");
234
240
  console.log(`
235
241
  App ID: ${appId}`);
236
242
  console.log(` Profile: ${profileId}`);
@@ -239,7 +245,7 @@ Launch it with: openfox pwa launch`);
239
245
  }
240
246
  async function pwaUninstall(mode) {
241
247
  if (!isFirefoxPwaAvailable()) {
242
- log.error("firefoxpwa is not installed or not on your PATH.");
248
+ R.error("firefoxpwa is not installed or not on your PATH.");
243
249
  process.exit(1);
244
250
  }
245
251
  const manifestUrl = getManifestUrl(mode);
@@ -250,24 +256,24 @@ async function pwaUninstall(mode) {
250
256
  if (detected) appId = detected.appId;
251
257
  }
252
258
  if (!appId) {
253
- log.info("OpenFox PWA is not installed.");
259
+ R.info("OpenFox PWA is not installed.");
254
260
  return;
255
261
  }
256
- log.info("Removing OpenFox PWA...");
262
+ R.info("Removing OpenFox PWA...");
257
263
  try {
258
264
  execSync(`firefoxpwa site uninstall ${appId} --quiet`, { encoding: "utf-8" });
259
265
  } catch {
260
- log.error(`Failed to uninstall PWA (ID: ${appId}).`);
266
+ R.error(`Failed to uninstall PWA (ID: ${appId}).`);
261
267
  process.exit(1);
262
268
  }
263
269
  await removePwaConfig(mode);
264
- log.info("OpenFox PWA removed from your system.");
270
+ R.info("OpenFox PWA removed from your system.");
265
271
  console.log("\nNote: The Firefox PWA runtime is still installed.");
266
272
  console.log("To remove it: firefoxpwa runtime uninstall");
267
273
  }
268
274
  async function pwaLaunch(mode) {
269
275
  if (!isFirefoxPwaAvailable()) {
270
- log.error("firefoxpwa is not installed or not on your PATH.");
276
+ R.error("firefoxpwa is not installed or not on your PATH.");
271
277
  process.exit(1);
272
278
  }
273
279
  const manifestUrl = getManifestUrl(mode);
@@ -278,16 +284,16 @@ async function pwaLaunch(mode) {
278
284
  if (detected) appId = detected.appId;
279
285
  }
280
286
  if (!appId) {
281
- log.info("OpenFox PWA is not installed.");
287
+ R.info("OpenFox PWA is not installed.");
282
288
  console.log("\nInstall it first: openfox pwa install");
283
289
  return;
284
290
  }
285
- log.info("Launching OpenFox PWA...");
291
+ R.info("Launching OpenFox PWA...");
286
292
  spawn("firefoxpwa", ["site", "launch", appId], { stdio: "inherit" });
287
293
  }
288
294
  async function pwaUpdate(mode) {
289
295
  if (!isFirefoxPwaAvailable()) {
290
- log.error("firefoxpwa is not installed or not on your PATH.");
296
+ R.error("firefoxpwa is not installed or not on your PATH.");
291
297
  process.exit(1);
292
298
  }
293
299
  const manifestUrl = getManifestUrl(mode);
@@ -298,17 +304,17 @@ async function pwaUpdate(mode) {
298
304
  if (detected) appId = detected.appId;
299
305
  }
300
306
  if (!appId) {
301
- log.info("OpenFox PWA is not installed.");
307
+ R.info("OpenFox PWA is not installed.");
302
308
  console.log("\nInstall it first: openfox pwa install");
303
309
  return;
304
310
  }
305
311
  try {
306
312
  execSync(`firefoxpwa site update ${appId}`, { encoding: "utf-8" });
307
313
  } catch {
308
- log.error("Failed to update PWA metadata.");
314
+ R.error("Failed to update PWA metadata.");
309
315
  process.exit(1);
310
316
  }
311
- log.info("OpenFox PWA metadata updated.");
317
+ R.info("OpenFox PWA metadata updated.");
312
318
  console.log(`
313
319
  The manifest is re-fetched automatically on each launch.`);
314
320
  console.log(`Launch to pick up OpenFox changes:
@@ -317,12 +323,12 @@ The manifest is re-fetched automatically on each launch.`);
317
323
  }
318
324
  async function pwaStatus(mode) {
319
325
  if (!isFirefoxPwaAvailable()) {
320
- log.error("firefoxpwa is not installed or not on your PATH.");
326
+ R.error("firefoxpwa is not installed or not on your PATH.");
321
327
  console.log("\nInstall PWAsForFirefox: https://pwasforfirefox.filips.si/installation/");
322
328
  return;
323
329
  }
324
330
  if (!isRuntimeInstalled()) {
325
- log.warn("Firefox PWA runtime is not installed.");
331
+ R.warn("Firefox PWA runtime is not installed.");
326
332
  console.log(`
327
333
  Run: firefoxpwa runtime install`);
328
334
  return;
@@ -335,11 +341,11 @@ Run: firefoxpwa runtime install`);
335
341
  if (detected) appId = detected.appId;
336
342
  }
337
343
  if (!appId) {
338
- log.info("OpenFox PWA is not installed.");
344
+ R.info("OpenFox PWA is not installed.");
339
345
  console.log("\nInstall it: openfox pwa install");
340
346
  return;
341
347
  }
342
- log.info("OpenFox PWA is installed.");
348
+ R.info("OpenFox PWA is installed.");
343
349
  console.log(`
344
350
  App ID: ${appId}`);
345
351
  console.log(` Profile ID: ${existing?.profileId ?? "default"}`);
@@ -354,4 +360,4 @@ export {
354
360
  runPwaCommand,
355
361
  savePwaConfig
356
362
  };
357
- //# sourceMappingURL=pwa-76XP2DY2.js.map
363
+ //# sourceMappingURL=pwa-M6QZ52ZO.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  VERSION,
3
3
  createServer
4
- } from "./chunk-NX6O62MR.js";
5
- import "./chunk-X6PMP7XH.js";
6
- import "./chunk-6KFKVGPK.js";
7
- import "./chunk-XFMN7OFO.js";
4
+ } from "./chunk-LS3FQ4UQ.js";
5
+ import "./chunk-XIBT7GFC.js";
6
+ import "./chunk-ULZORR3T.js";
7
+ import "./chunk-TT6LDJU5.js";
8
8
  import "./chunk-LBGHZLLH.js";
9
9
  import "./chunk-PBGOZMVY.js";
10
10
  import "./chunk-VRGRAQDG.js";
@@ -44,6 +44,7 @@ import {
44
44
  getGlobalConfigPath
45
45
  } from "./chunk-CQGTEGKL.js";
46
46
  import "./chunk-V4IE7HJY.js";
47
+ import "./chunk-5WRI5ZAA.js";
47
48
 
48
49
  // src/server/utils/network.ts
49
50
  import os from "os";
@@ -199,4 +200,4 @@ async function runServe(options) {
199
200
  export {
200
201
  runServe
201
202
  };
202
- //# sourceMappingURL=serve-XP3S4QDS.js.map
203
+ //# sourceMappingURL=serve-J5POPC5Z.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  createServer,
3
3
  createServerHandle
4
- } from "../chunk-NX6O62MR.js";
5
- import "../chunk-X6PMP7XH.js";
6
- import "../chunk-6KFKVGPK.js";
7
- import "../chunk-XFMN7OFO.js";
4
+ } from "../chunk-LS3FQ4UQ.js";
5
+ import "../chunk-XIBT7GFC.js";
6
+ import "../chunk-ULZORR3T.js";
7
+ import "../chunk-TT6LDJU5.js";
8
8
  import "../chunk-LBGHZLLH.js";
9
9
  import "../chunk-PBGOZMVY.js";
10
10
  import "../chunk-VRGRAQDG.js";
@@ -32,6 +32,7 @@ import "../chunk-YD6NDTKF.js";
32
32
  import "../chunk-EZ3BPIUV.js";
33
33
  import "../chunk-CQGTEGKL.js";
34
34
  import "../chunk-V4IE7HJY.js";
35
+ import "../chunk-5WRI5ZAA.js";
35
36
  export {
36
37
  createServer,
37
38
  createServerHandle
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  createWebSocketServer,
3
3
  signalMcpReady
4
- } from "./chunk-X6PMP7XH.js";
5
- import "./chunk-6KFKVGPK.js";
6
- import "./chunk-XFMN7OFO.js";
4
+ } from "./chunk-XIBT7GFC.js";
5
+ import "./chunk-ULZORR3T.js";
6
+ import "./chunk-TT6LDJU5.js";
7
7
  import "./chunk-LBGHZLLH.js";
8
8
  import "./chunk-PBGOZMVY.js";
9
9
  import "./chunk-VRGRAQDG.js";
@@ -30,8 +30,9 @@ import "./chunk-YD6NDTKF.js";
30
30
  import "./chunk-EZ3BPIUV.js";
31
31
  import "./chunk-CQGTEGKL.js";
32
32
  import "./chunk-V4IE7HJY.js";
33
+ import "./chunk-5WRI5ZAA.js";
33
34
  export {
34
35
  createWebSocketServer,
35
36
  signalMcpReady
36
37
  };
37
- //# sourceMappingURL=server-DKCNTFA5.js.map
38
+ //# sourceMappingURL=server-NJ56QOTU.js.map
@@ -1,3 +1,5 @@
1
+ import "./chunk-5WRI5ZAA.js";
2
+
1
3
  // src/cli/service.ts
2
4
  import { spawn, spawnSync } from "child_process";
3
5
  import { mkdir, writeFile, rm, access, constants } from "fs/promises";
@@ -287,4 +289,4 @@ async function serviceUninstall() {
287
289
  export {
288
290
  runServiceCommand
289
291
  };
290
- //# sourceMappingURL=service-FJ4TW5L7.js.map
292
+ //# sourceMappingURL=service-YYJ5Y7CN.js.map
@@ -8,6 +8,7 @@ import {
8
8
  } from "./chunk-JNSSFTVD.js";
9
9
  import "./chunk-ZPIZLTWU.js";
10
10
  import "./chunk-K44MW7JJ.js";
11
+ import "./chunk-5WRI5ZAA.js";
11
12
  export {
12
13
  SETTINGS_DEFAULTS,
13
14
  SETTINGS_KEYS,
@@ -16,4 +17,4 @@ export {
16
17
  getSetting,
17
18
  setSetting
18
19
  };
19
- //# sourceMappingURL=settings-MTGCEUS7.js.map
20
+ //# sourceMappingURL=settings-L2V4ZUA2.js.map
@@ -7,6 +7,7 @@ import {
7
7
  isClientMessage,
8
8
  isServerMessage
9
9
  } from "../chunk-YD6NDTKF.js";
10
+ import "../chunk-5WRI5ZAA.js";
10
11
  export {
11
12
  computeSessionStats,
12
13
  createClientMessage,
@@ -14,6 +14,7 @@ import {
14
14
  startProcess,
15
15
  updateStatus
16
16
  } from "./chunk-VRGRAQDG.js";
17
+ import "./chunk-5WRI5ZAA.js";
17
18
  export {
18
19
  appendLog,
19
20
  cleanupAllProcesses,
@@ -30,4 +31,4 @@ export {
30
31
  startProcess,
31
32
  updateStatus
32
33
  };
33
- //# sourceMappingURL=store-OQ45KONN.js.map
34
+ //# sourceMappingURL=store-SF7CDOQT.js.map
@@ -1,7 +1,8 @@
1
1
  import {
2
2
  createMcpTools
3
3
  } from "./chunk-NWO6GRYE.js";
4
+ import "./chunk-5WRI5ZAA.js";
4
5
  export {
5
6
  createMcpTools
6
7
  };
7
- //# sourceMappingURL=tool-adapter-B7QP6NLA.js.map
8
+ //# sourceMappingURL=tool-adapter-MOGEI6TP.js.map
@@ -12,7 +12,7 @@ import {
12
12
  setMcpTools,
13
13
  stepDoneTool,
14
14
  validateToolAction
15
- } from "./chunk-XFMN7OFO.js";
15
+ } from "./chunk-TT6LDJU5.js";
16
16
  import "./chunk-LBGHZLLH.js";
17
17
  import "./chunk-PBGOZMVY.js";
18
18
  import "./chunk-VRGRAQDG.js";
@@ -38,6 +38,7 @@ import "./chunk-YD6NDTKF.js";
38
38
  import "./chunk-EZ3BPIUV.js";
39
39
  import "./chunk-CQGTEGKL.js";
40
40
  import "./chunk-V4IE7HJY.js";
41
+ import "./chunk-5WRI5ZAA.js";
41
42
  export {
42
43
  AskUserInterrupt,
43
44
  PathAccessDeniedError,
@@ -57,4 +58,4 @@ export {
57
58
  stepDoneTool,
58
59
  validateToolAction
59
60
  };
60
- //# sourceMappingURL=tools-X3QW7SN7.js.map
61
+ //# sourceMappingURL=tools-PS5CSPGS.js.map
@@ -5,6 +5,7 @@ import {
5
5
  hasVersionPrefix,
6
6
  stripVersionPrefix
7
7
  } from "./chunk-HNCM3D7Y.js";
8
+ import "./chunk-5WRI5ZAA.js";
8
9
  export {
9
10
  buildModelsUrl,
10
11
  ensureVersionPrefix,
@@ -12,4 +13,4 @@ export {
12
13
  hasVersionPrefix,
13
14
  stripVersionPrefix
14
15
  };
15
- //# sourceMappingURL=url-utils-QWAHP54Q.js.map
16
+ //# sourceMappingURL=url-utils-SAJP7AEX.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openfox",
3
- "version": "2.0.41",
3
+ "version": "2.0.42",
4
4
  "description": "Local-LLM-first agentic coding assistant",
5
5
  "type": "module",
6
6
  "bin": {