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
@@ -8,6 +8,7 @@ import {
8
8
  hasPendingQuestion,
9
9
  provideAnswer
10
10
  } from "./chunk-EU3WWTFH.js";
11
+ import "./chunk-5WRI5ZAA.js";
11
12
  export {
12
13
  AskUserInterrupt,
13
14
  askUserTool,
@@ -18,4 +19,4 @@ export {
18
19
  hasPendingQuestion,
19
20
  provideAnswer
20
21
  };
21
- //# sourceMappingURL=ask-4GZ334CO.js.map
22
+ //# sourceMappingURL=ask-TOBEA6KD.js.map
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  getAuthConfigPath
3
3
  } from "./chunk-CQGTEGKL.js";
4
+ import "./chunk-5WRI5ZAA.js";
4
5
 
5
6
  // src/cli/auth.ts
6
7
  import { readFile, writeFile, mkdir, access } from "fs/promises";
@@ -47,4 +48,4 @@ export {
47
48
  saveAuthConfig,
48
49
  verifyPassword
49
50
  };
50
- //# sourceMappingURL=auth-56SIRACI.js.map
51
+ //# sourceMappingURL=auth-YY5PJYSC.js.map
@@ -4,6 +4,7 @@ import {
4
4
  import {
5
5
  logger
6
6
  } from "./chunk-K44MW7JJ.js";
7
+ import "./chunk-5WRI5ZAA.js";
7
8
 
8
9
  // src/server/providers/auto-config.ts
9
10
  var NON_THINKING_COMBOS = [
@@ -166,4 +167,4 @@ async function autoConfig(input) {
166
167
  export {
167
168
  autoConfig
168
169
  };
169
- //# sourceMappingURL=auto-config-FZFXOEEG.js.map
170
+ //# sourceMappingURL=auto-config-F5Y6KAQ6.js.map
@@ -2,8 +2,9 @@ import {
2
2
  getBackendCapabilities,
3
3
  getBackendDisplayName
4
4
  } from "./chunk-Z4FMBCJO.js";
5
+ import "./chunk-5WRI5ZAA.js";
5
6
  export {
6
7
  getBackendCapabilities,
7
8
  getBackendDisplayName
8
9
  };
9
- //# sourceMappingURL=backend-AGXWAU7A.js.map
10
+ //# sourceMappingURL=backend-4HGUPY6W.js.map
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  logger
3
3
  } from "./chunk-K44MW7JJ.js";
4
+ import "./chunk-5WRI5ZAA.js";
4
5
 
5
6
  // src/server/branch.api.ts
6
7
  import { spawn } from "child_process";
@@ -45,4 +46,4 @@ function getGitBranch(cwd) {
45
46
  export {
46
47
  getCurrentBranch
47
48
  };
48
- //# sourceMappingURL=branch.api-PWFW26KC.js.map
49
+ //# sourceMappingURL=branch.api-5DMEAIBI.js.map
@@ -2,11 +2,11 @@ import {
2
2
  buildRunChatTurnParams,
3
3
  finalizeTurnCompletion,
4
4
  generateSessionNameForSession
5
- } from "./chunk-JGNAYJJZ.js";
5
+ } from "./chunk-NVQFIZJI.js";
6
6
  import {
7
7
  runChatTurn
8
- } from "./chunk-6KFKVGPK.js";
9
- import "./chunk-XFMN7OFO.js";
8
+ } from "./chunk-ULZORR3T.js";
9
+ import "./chunk-TT6LDJU5.js";
10
10
  import "./chunk-LBGHZLLH.js";
11
11
  import "./chunk-PBGOZMVY.js";
12
12
  import "./chunk-VRGRAQDG.js";
@@ -33,6 +33,7 @@ import "./chunk-YD6NDTKF.js";
33
33
  import "./chunk-EZ3BPIUV.js";
34
34
  import "./chunk-CQGTEGKL.js";
35
35
  import "./chunk-V4IE7HJY.js";
36
+ import "./chunk-5WRI5ZAA.js";
36
37
 
37
38
  // src/server/session/chat-handler.ts
38
39
  var activeAgents = /* @__PURE__ */ new Map();
@@ -145,4 +146,4 @@ export {
145
146
  startChatSession,
146
147
  stopSessionExecution
147
148
  };
148
- //# sourceMappingURL=chat-handler-H4O7TLGM.js.map
149
+ //# sourceMappingURL=chat-handler-KW4CAXTH.js.map
@@ -0,0 +1,31 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __commonJS = (cb, mod) => function __require() {
8
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
19
+ // If the importer is in node compatibility mode or this is not an ESM
20
+ // file that has been converted to a CommonJS file using a Babel-
21
+ // compatible transform (i.e. "__esModule" has not been set), then set
22
+ // "default" to the CommonJS "module.exports" for node compatibility.
23
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
24
+ mod
25
+ ));
26
+
27
+ export {
28
+ __commonJS,
29
+ __toESM
30
+ };
31
+ //# sourceMappingURL=chunk-5WRI5ZAA.js.map
@@ -1,9 +1,15 @@
1
+ import {
2
+ Ct,
3
+ Ht,
4
+ Jt,
5
+ Nt
6
+ } from "./chunk-XY3LESVZ.js";
7
+
1
8
  // src/cli/main.ts
2
9
  import { parseArgs } from "util";
3
10
  import { spawnSync } from "child_process";
4
11
  import { fileURLToPath } from "url";
5
12
  import { dirname, join } from "path";
6
- import { select, password, isCancel, cancel } from "@clack/prompts";
7
13
  import { generateKeyPairSync } from "crypto";
8
14
  import { writeFile } from "fs/promises";
9
15
  function printHelp() {
@@ -32,34 +38,34 @@ Options:
32
38
  `);
33
39
  }
34
40
  async function runNetworkSetup(mode) {
35
- const { loadAuthConfig, saveAuthConfig, encryptPassword } = await import("./auth-56SIRACI.js");
36
- const { saveGlobalConfig } = await import("./config-XOXIIBUY.js");
37
- const { getAuthKeyPath } = await import("./paths-X46PPOI2.js");
41
+ const { loadAuthConfig, saveAuthConfig, encryptPassword } = await import("./auth-YY5PJYSC.js");
42
+ const { saveGlobalConfig } = await import("./config-S5CF4QU4.js");
43
+ const { getAuthKeyPath } = await import("./paths-F27V3S4I.js");
38
44
  const existingAuth = await loadAuthConfig(mode);
39
45
  if (existingAuth) {
40
46
  return;
41
47
  }
42
48
  console.log("\nOpenFox Setup\n");
43
- const networkChoice = await select({
49
+ const networkChoice = await Jt({
44
50
  message: "How should OpenFox be accessible?",
45
51
  options: [
46
52
  { value: "localhost", label: "Secure (localhost only)" },
47
53
  { value: "network", label: "Accessible from local network" }
48
54
  ]
49
55
  });
50
- if (isCancel(networkChoice)) {
51
- cancel();
56
+ if (Ct(networkChoice)) {
57
+ Nt();
52
58
  process.exit(1);
53
59
  }
54
60
  const isNetwork = networkChoice === "network";
55
61
  const host = isNetwork ? "0.0.0.0" : "127.0.0.1";
56
62
  let passwordValue;
57
63
  if (isNetwork) {
58
- const pwd = await password({
64
+ const pwd = await Ht({
59
65
  message: "Set a password? (optional, press Enter to skip)"
60
66
  });
61
- if (isCancel(pwd)) {
62
- cancel();
67
+ if (Ct(pwd)) {
68
+ Nt();
63
69
  process.exit(1);
64
70
  }
65
71
  passwordValue = typeof pwd === "string" ? pwd : void 0;
@@ -100,8 +106,8 @@ async function runNetworkSetup(mode) {
100
106
  console.log("\u2713 Configuration saved!\n");
101
107
  }
102
108
  async function runConfig(mode) {
103
- const { loadGlobalConfig, getActiveProvider, getDefaultModel } = await import("./config-XOXIIBUY.js");
104
- const { getGlobalConfigPath } = await import("./paths-X46PPOI2.js");
109
+ const { loadGlobalConfig, getActiveProvider, getDefaultModel } = await import("./config-S5CF4QU4.js");
110
+ const { getGlobalConfigPath } = await import("./paths-F27V3S4I.js");
105
111
  const config = await loadGlobalConfig(mode);
106
112
  const configPath = getGlobalConfigPath(mode);
107
113
  const activeProvider = getActiveProvider(config);
@@ -158,13 +164,13 @@ async function runCli(options) {
158
164
  break;
159
165
  }
160
166
  case "provider": {
161
- const { runProviderCommand } = await import("./provider-JLLIB72V.js");
167
+ const { runProviderCommand } = await import("./provider-JDI3LVYF.js");
162
168
  const [, subcommand] = positionals;
163
169
  await runProviderCommand(mode, subcommand);
164
170
  break;
165
171
  }
166
172
  case "service": {
167
- const { runServiceCommand } = await import("./service-FJ4TW5L7.js");
173
+ const { runServiceCommand } = await import("./service-YYJ5Y7CN.js");
168
174
  const [, subcommand, ...serviceArgs] = positionals;
169
175
  if (values.follow) {
170
176
  serviceArgs.push("-f");
@@ -177,7 +183,7 @@ async function runCli(options) {
177
183
  break;
178
184
  }
179
185
  case "pwa": {
180
- const { runPwaCommand, printPwaHelp } = await import("./pwa-76XP2DY2.js");
186
+ const { runPwaCommand, printPwaHelp } = await import("./pwa-M6QZ52ZO.js");
181
187
  const [, subcommand] = positionals;
182
188
  if (subcommand === "--help" || subcommand === "-h" || values.help) {
183
189
  printPwaHelp();
@@ -197,12 +203,12 @@ async function runCli(options) {
197
203
  break;
198
204
  }
199
205
  default: {
200
- const { configFileExists } = await import("./config-XOXIIBUY.js");
206
+ const { configFileExists } = await import("./config-S5CF4QU4.js");
201
207
  const configExists = await configFileExists(mode);
202
208
  if (!configExists) {
203
209
  await runNetworkSetup(mode);
204
210
  }
205
- const { runServe } = await import("./serve-XP3S4QDS.js");
211
+ const { runServe } = await import("./serve-J5POPC5Z.js");
206
212
  const serveOptions = { mode };
207
213
  if (values.port) serveOptions.port = parseInt(values.port);
208
214
  if (values["no-browser"] === true) serveOptions.openBrowser = false;
@@ -214,4 +220,4 @@ async function runCli(options) {
214
220
  export {
215
221
  runCli
216
222
  };
217
- //# sourceMappingURL=chunk-X3L37IIK.js.map
223
+ //# sourceMappingURL=chunk-6ZS7YQOO.js.map