openfox 2.0.41 → 2.0.43
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/{ask-4GZ334CO.js → ask-TOBEA6KD.js} +2 -1
- package/dist/{auth-56SIRACI.js → auth-YY5PJYSC.js} +2 -1
- package/dist/{auto-config-FZFXOEEG.js → auto-config-F5Y6KAQ6.js} +2 -1
- package/dist/{backend-AGXWAU7A.js → backend-4HGUPY6W.js} +2 -1
- package/dist/{branch.api-PWFW26KC.js → branch.api-5DMEAIBI.js} +2 -1
- package/dist/{chat-handler-H4O7TLGM.js → chat-handler-233L35BD.js} +13 -4
- package/dist/chunk-5WRI5ZAA.js +31 -0
- package/dist/{chunk-X3L37IIK.js → chunk-FQ6UFNTT.js} +24 -18
- package/dist/{chunk-NX6O62MR.js → chunk-FZ5LNBZS.js} +63 -63
- package/dist/{chunk-JGNAYJJZ.js → chunk-NVQFIZJI.js} +2 -2
- package/dist/{chunk-XFMN7OFO.js → chunk-TT6LDJU5.js} +8 -8
- package/dist/{chunk-6KFKVGPK.js → chunk-ULZORR3T.js} +3 -3
- package/dist/{chunk-X6PMP7XH.js → chunk-V234MYXB.js} +12 -3
- package/dist/chunk-XY3LESVZ.js +1000 -0
- package/dist/cli/dev.js +3 -1
- package/dist/cli/index.js +3 -1
- package/dist/{client-XTPAYYRH.js → client-ZUL4AR4J.js} +2 -1
- package/dist/{client-pure-N2MOIDQ6.js → client-pure-DO3S675T.js} +2 -1
- package/dist/{compactor-RZA5VSRT.js → compactor-TJEAAZL3.js} +2 -1
- package/dist/{config-XOXIIBUY.js → config-S5CF4QU4.js} +2 -1
- package/dist/{events-KZZPCW2Q.js → events-THW3MYXE.js} +2 -1
- package/dist/{folding-ENYH4LMG.js → folding-H5C6HS7O.js} +2 -1
- package/dist/{http-client-SIPAW7IM.js → http-client-3OLSDU63.js} +2 -1
- package/dist/{inspect-proxy-UT2LFGJ5.js → inspect-proxy-BV25JERQ.js} +2 -1
- package/dist/{manager-W7N3XQ4Q.js → manager-R3EMNOPR.js} +2 -1
- package/dist/{orchestrator-IZ6VSEZT.js → orchestrator-XIGRXAEC.js} +4 -3
- package/dist/package.json +1 -1
- package/dist/{paths-X46PPOI2.js → paths-F27V3S4I.js} +2 -1
- package/dist/{permissions-Z2IIV2V7.js → permissions-QLHZUEGW.js} +3 -1
- package/dist/{processor-WQYQUIPB.js → processor-T6FX54JU.js} +12 -4
- package/dist/{profiles-Q36ELWQF.js → profiles-5J7F4BML.js} +2 -1
- package/dist/{project-creator-W6Z7KCMZ.js → project-creator-7RBHP6K6.js} +2 -1
- package/dist/{projects-2XSGA7JG.js → projects-BY227WT2.js} +2 -1
- package/dist/{protocol-BKNLAEPJ.js → protocol-CTNE3ANP.js} +2 -1
- package/dist/{provider-JLLIB72V.js → provider-JDI3LVYF.js} +67 -57
- package/dist/{provider-manager-GTWFGTCV.js → provider-manager-5UZXYOZZ.js} +2 -1
- package/dist/{pwa-76XP2DY2.js → pwa-M6QZ52ZO.js} +37 -31
- package/dist/{serve-XP3S4QDS.js → serve-LAAYCXXI.js} +6 -5
- package/dist/server/index.js +5 -4
- package/dist/{server-DKCNTFA5.js → server-GVQNOHX3.js} +5 -4
- package/dist/{service-FJ4TW5L7.js → service-YYJ5Y7CN.js} +3 -1
- package/dist/{settings-MTGCEUS7.js → settings-L2V4ZUA2.js} +2 -1
- package/dist/shared/index.js +1 -0
- package/dist/{store-OQ45KONN.js → store-SF7CDOQT.js} +2 -1
- package/dist/{tool-adapter-B7QP6NLA.js → tool-adapter-MOGEI6TP.js} +2 -1
- package/dist/{tools-X3QW7SN7.js → tools-PS5CSPGS.js} +3 -2
- package/dist/{url-utils-QWAHP54Q.js → url-utils-SAJP7AEX.js} +2 -1
- 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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
49
|
+
//# sourceMappingURL=branch.api-5DMEAIBI.js.map
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
buildRunChatTurnParams,
|
|
3
3
|
finalizeTurnCompletion,
|
|
4
4
|
generateSessionNameForSession
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NVQFIZJI.js";
|
|
6
6
|
import {
|
|
7
7
|
runChatTurn
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
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,9 +33,11 @@ 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();
|
|
40
|
+
var abortedSessions = /* @__PURE__ */ new Set();
|
|
39
41
|
async function startChatSession(sessionId, content, deps, options) {
|
|
40
42
|
const { sessionManager, broadcastForSession } = deps;
|
|
41
43
|
const session = sessionManager.getSession(sessionId);
|
|
@@ -112,6 +114,12 @@ function startTurnWithCompletionChain(sessionId, controller, deps) {
|
|
|
112
114
|
return;
|
|
113
115
|
}
|
|
114
116
|
activeAgents.delete(sessionId);
|
|
117
|
+
if (abortedSessions.has(sessionId)) {
|
|
118
|
+
abortedSessions.delete(sessionId);
|
|
119
|
+
sessionManager.clearMessageQueue(sessionId);
|
|
120
|
+
finalizeTurnCompletion(sessionId, sessionManager, broadcastForSession);
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
115
123
|
const completionMsgs = sessionManager.drainCompletionMessages(sessionId);
|
|
116
124
|
const next = completionMsgs[0];
|
|
117
125
|
if (next) {
|
|
@@ -134,6 +142,7 @@ function startTurnWithCompletionChain(sessionId, controller, deps) {
|
|
|
134
142
|
});
|
|
135
143
|
}
|
|
136
144
|
function stopSessionExecution(sessionId, sessionManager) {
|
|
145
|
+
abortedSessions.add(sessionId);
|
|
137
146
|
const controller = activeAgents.get(sessionId);
|
|
138
147
|
if (controller) {
|
|
139
148
|
activeAgents.delete(sessionId);
|
|
@@ -145,4 +154,4 @@ export {
|
|
|
145
154
|
startChatSession,
|
|
146
155
|
stopSessionExecution
|
|
147
156
|
};
|
|
148
|
-
//# sourceMappingURL=chat-handler-
|
|
157
|
+
//# sourceMappingURL=chat-handler-233L35BD.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-
|
|
36
|
-
const { saveGlobalConfig } = await import("./config-
|
|
37
|
-
const { getAuthKeyPath } = await import("./paths-
|
|
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
|
|
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 (
|
|
51
|
-
|
|
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
|
|
64
|
+
const pwd = await Ht({
|
|
59
65
|
message: "Set a password? (optional, press Enter to skip)"
|
|
60
66
|
});
|
|
61
|
-
if (
|
|
62
|
-
|
|
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-
|
|
104
|
-
const { getGlobalConfigPath } = await import("./paths-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
211
|
+
const { runServe } = await import("./serve-LAAYCXXI.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-
|
|
223
|
+
//# sourceMappingURL=chunk-FQ6UFNTT.js.map
|