openfox 2.0.0-beta.4 → 2.0.0-beta.6
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/{chat-handler-IUWEBZG7.js → chat-handler-27FY5TEH.js} +15 -29
- package/dist/{chunk-WBYS7AQN.js → chunk-3FFHHYWP.js} +178 -99
- package/dist/{chunk-HGAMIPFO.js → chunk-7FDY3EOH.js} +18 -176
- package/dist/{chunk-CEZNMLOO.js → chunk-7TTEGAO6.js} +12 -13
- package/dist/{chunk-FQLK5GL5.js → chunk-BVHFMAVN.js} +1 -1
- package/dist/{chunk-HW3U4XSZ.js → chunk-CDDMHSZF.js} +4 -4
- package/dist/{chunk-HHAJ3QF6.js → chunk-EMJGF3A7.js} +9 -24
- package/dist/{chunk-KEF4O3UM.js → chunk-FRCLNAE2.js} +2952 -3256
- package/dist/{chunk-RF2JGDSS.js → chunk-IGSZUXQP.js} +3 -3
- package/dist/{chunk-HLZV4S2I.js → chunk-NPHYEUYE.js} +127 -35
- package/dist/{chunk-NNEHZT3V.js → chunk-QUSUEN5R.js} +3 -3
- package/dist/{chunk-EYCCASW3.js → chunk-R3EK3ODJ.js} +6 -6
- package/dist/{chunk-7IKUIYFZ.js → chunk-RBJ25FIR.js} +135 -147
- package/dist/{chunk-PSJIT5LZ.js → chunk-RFNEDBVO.js} +4 -4
- package/dist/chunk-RI6GAMNP.js +13 -0
- package/dist/{chunk-26DZZZDC.js → chunk-XJEOP6XU.js} +5 -11
- package/dist/cli/dev.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/compactor-TDNRM3A7.js +9 -0
- package/dist/{config-YU7NYZYG.js → config-VBBMTXJZ.js} +5 -6
- package/dist/{events-YO52472Q.js → events-PQ3KTI5H.js} +8 -8
- package/dist/{folding-K5L6M4WK.js → folding-CXORTBAU.js} +2 -3
- package/dist/{orchestrator-F75DNQKQ.js → orchestrator-QDCVUBCL.js} +18 -23
- package/dist/package.json +1 -1
- package/dist/{processor-FTEASNGS.js → processor-K4B7QRO2.js} +8 -10
- package/dist/{protocol-K62EPEGS.js → protocol-CN24IKQN.js} +3 -5
- package/dist/{protocol-BQ12Aw5J.d.ts → protocol-De-Pzgry.d.ts} +12 -38
- package/dist/{provider-HTJEB3ON.js → provider-NRWSSO55.js} +9 -10
- package/dist/{serve-CEQ2QMM5.js → serve-J6EM3G6N.js} +25 -27
- package/dist/server/index.d.ts +1 -6
- package/dist/server/index.js +15 -17
- package/dist/{settings-VRAOAPLA.js → settings-6XX56F3F.js} +2 -2
- package/dist/shared/index.d.ts +2 -2
- package/dist/shared/index.js +1 -1
- package/dist/{tools-OPEU2E5M.js → tools-GCANYSB7.js} +12 -15
- package/dist/web/assets/{index-bDyDeCAz.css → index-aa3jRAZ9.css} +2 -2
- package/dist/web/assets/index-ntDiC8b_.js +299 -0
- package/dist/web/index.html +2 -2
- package/dist/web/sw.js +1 -1
- package/dist/workflow-defaults/default.workflow.json +3 -3
- package/package.json +1 -1
- package/dist/auto-compaction-A3PIMGLF.js +0 -28
- package/dist/chunk-CGZHLM3K.js +0 -70
- package/dist/chunk-MCPID4EJ.js +0 -28
- package/dist/chunk-SZKEGZIB.js +0 -140
- package/dist/optimize-storage-2N6BY5KZ.js +0 -7
- package/dist/runtime-config-NPSPMRDA.js +0 -9
- package/dist/vision-fallback-3MIZZ6NQ.js +0 -22
- package/dist/web/assets/index-ZTEHxmVW.js +0 -317
- /package/dist/web/{workbox-7fc22fbe.js → workbox-8c29f6e4.js} +0 -0
|
@@ -5,41 +5,38 @@ import {
|
|
|
5
5
|
generateSessionName,
|
|
6
6
|
getSessionMessageCount,
|
|
7
7
|
needsNameGenerationCheck
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-CDDMHSZF.js";
|
|
9
9
|
import {
|
|
10
10
|
runChatTurn
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-BJYPTN5S.js";
|
|
14
|
-
import "./chunk-PSJIT5LZ.js";
|
|
15
|
-
import "./chunk-XAMAYRDA.js";
|
|
11
|
+
} from "./chunk-RBJ25FIR.js";
|
|
12
|
+
import "./chunk-FRCLNAE2.js";
|
|
16
13
|
import "./chunk-DL6ZILAF.js";
|
|
17
14
|
import "./chunk-PBGOZMVY.js";
|
|
18
15
|
import "./chunk-VRGRAQDG.js";
|
|
19
|
-
import "./chunk-HGAMIPFO.js";
|
|
20
16
|
import {
|
|
21
17
|
getEventStore
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-26DZZZDC.js";
|
|
25
|
-
import "./chunk-MCPID4EJ.js";
|
|
18
|
+
} from "./chunk-NPHYEUYE.js";
|
|
19
|
+
import "./chunk-XJEOP6XU.js";
|
|
26
20
|
import {
|
|
27
21
|
createChatMessageMessage,
|
|
28
22
|
createPhaseChangedMessage,
|
|
29
23
|
createSessionRunningMessage
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-7TTEGAO6.js";
|
|
25
|
+
import "./chunk-BJYPTN5S.js";
|
|
26
|
+
import "./chunk-RFNEDBVO.js";
|
|
27
|
+
import "./chunk-XAMAYRDA.js";
|
|
28
|
+
import "./chunk-FBGWG4N6.js";
|
|
29
|
+
import "./chunk-BVHFMAVN.js";
|
|
30
|
+
import "./chunk-7FDY3EOH.js";
|
|
35
31
|
import {
|
|
36
32
|
logger
|
|
37
33
|
} from "./chunk-K44MW7JJ.js";
|
|
34
|
+
import "./chunk-CQGTEGKL.js";
|
|
38
35
|
|
|
39
36
|
// src/server/session/chat-handler.ts
|
|
40
37
|
var activeAgents = /* @__PURE__ */ new Map();
|
|
41
38
|
async function startChatSession(sessionId, content, deps, options) {
|
|
42
|
-
const { sessionManager, llmClient,
|
|
39
|
+
const { sessionManager, llmClient, broadcastForSession } = deps;
|
|
43
40
|
const session = sessionManager.getSession(sessionId);
|
|
44
41
|
if (!session) {
|
|
45
42
|
throw new Error("Session not found");
|
|
@@ -61,17 +58,6 @@ async function startChatSession(sessionId, content, deps, options) {
|
|
|
61
58
|
sessionManager.setRunning(sessionId, true);
|
|
62
59
|
broadcastForSession(sessionId, createSessionRunningMessage(true));
|
|
63
60
|
try {
|
|
64
|
-
const { maybeAutoCompactContext } = await import("./auto-compaction-A3PIMGLF.js");
|
|
65
|
-
await maybeAutoCompactContext({
|
|
66
|
-
sessionManager,
|
|
67
|
-
sessionId,
|
|
68
|
-
llmClient,
|
|
69
|
-
statsIdentity,
|
|
70
|
-
signal: controller.signal
|
|
71
|
-
});
|
|
72
|
-
if (controller.signal.aborted) {
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
61
|
const userMessage = sessionManager.addMessage(sessionId, {
|
|
76
62
|
role: "user",
|
|
77
63
|
content,
|
|
@@ -175,4 +161,4 @@ export {
|
|
|
175
161
|
startChatSession,
|
|
176
162
|
stopSessionExecution
|
|
177
163
|
};
|
|
178
|
-
//# sourceMappingURL=chat-handler-
|
|
164
|
+
//# sourceMappingURL=chat-handler-27FY5TEH.js.map
|