openfox 1.6.36 → 1.6.38
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/{auto-compaction-CQ66MD6K.js → auto-compaction-SCLHKKGA.js} +7 -7
- package/dist/{chat-handler-EJR4GKYO.js → chat-handler-7ARMDWRH.js} +11 -11
- package/dist/{chunk-26PIZX2A.js → chunk-5NJ5NQH5.js} +5 -5
- package/dist/{chunk-XKFPU2FA.js → chunk-7JPKRM6M.js} +2 -2
- package/dist/{chunk-AV45GQ7B.js → chunk-BHSTSA7U.js} +3 -3
- package/dist/{chunk-3EHGGBWE.js → chunk-BLNFJ22S.js} +7 -1
- package/dist/{chunk-TKL65AGO.js → chunk-CRSOJ2YA.js} +2 -2
- package/dist/{chunk-6JYCWE5P.js → chunk-DSI2ZSZQ.js} +31 -31
- package/dist/{chunk-EEPU4INU.js → chunk-LIMBYVO4.js} +192 -14
- package/dist/{chunk-ZGTXED6Q.js → chunk-NBBX64KC.js} +2 -2
- package/dist/{chunk-RN2O6JK7.js → chunk-O2BOWZKC.js} +2 -2
- package/dist/{chunk-VFHCB5MC.js → chunk-TBSTW3PW.js} +4 -4
- package/dist/{chunk-PMDJEJYY.js → chunk-YVQ6DP5Y.js} +107 -15
- package/dist/cli/dev.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/{events-LI4NAFRZ.js → events-FHPSSSE4.js} +4 -4
- package/dist/{folding-HRZMWP4H.js → folding-NEZWWL7K.js} +4 -2
- package/dist/{orchestrator-PCWZF3E5.js → orchestrator-FKVRAIIA.js} +8 -8
- package/dist/package.json +1 -1
- package/dist/{processor-7L64YPQC.js → processor-KR5GNW3S.js} +7 -7
- package/dist/{project-creator-HY32FPFV.js → project-creator-LASKNQPA.js} +3 -3
- package/dist/{projects-GSMMEVSO.js → projects-HEUOWNSR.js} +3 -3
- package/dist/{protocol-BYM6rZvW.d.ts → protocol-Ct6VfOIJ.d.ts} +1 -0
- package/dist/{serve-OM263UOA.js → serve-OGLLAEMY.js} +10 -10
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +9 -9
- package/dist/{settings-3K6P2JN6.js → settings-TWK27GYE.js} +3 -3
- package/dist/shared/index.d.ts +2 -2
- package/dist/{tools-25TQ5NQY.js → tools-6XOZHTF7.js} +7 -7
- package/dist/web/assets/{index-BOmvIO84.js → index-BCHSC7BY.js} +57 -57
- package/dist/web/assets/index-D0LRgk0o.css +32 -0
- package/dist/web/index.html +2 -2
- package/dist/web/sw.js +1 -1
- package/package.json +1 -1
- package/dist/web/assets/index-DTKU-xoU.css +0 -32
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
maybeAutoCompactContext,
|
|
3
3
|
performManualContextCompaction,
|
|
4
4
|
resolveCompactionStatsIdentity
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-5NJ5NQH5.js";
|
|
6
6
|
import "./chunk-NBU6KIOD.js";
|
|
7
7
|
import "./chunk-574HZVLE.js";
|
|
8
8
|
import "./chunk-D4ZLSV6P.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-YVQ6DP5Y.js";
|
|
10
|
+
import "./chunk-LIMBYVO4.js";
|
|
11
11
|
import "./chunk-DZHZ3UUR.js";
|
|
12
12
|
import "./chunk-22CTURMH.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-O2BOWZKC.js";
|
|
14
|
+
import "./chunk-7JPKRM6M.js";
|
|
15
|
+
import "./chunk-BLNFJ22S.js";
|
|
16
16
|
import "./chunk-Y6HBEACI.js";
|
|
17
17
|
import "./chunk-R4HADRYO.js";
|
|
18
18
|
import "./chunk-TVQOONDR.js";
|
|
@@ -23,4 +23,4 @@ export {
|
|
|
23
23
|
performManualContextCompaction,
|
|
24
24
|
resolveCompactionStatsIdentity
|
|
25
25
|
};
|
|
26
|
-
//# sourceMappingURL=auto-compaction-
|
|
26
|
+
//# sourceMappingURL=auto-compaction-SCLHKKGA.js.map
|
|
@@ -2,32 +2,32 @@ import {
|
|
|
2
2
|
buildRunChatTurnParams,
|
|
3
3
|
finalizeTurnCompletion,
|
|
4
4
|
getSessionMessageCount
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NBBX64KC.js";
|
|
6
6
|
import {
|
|
7
7
|
applyGeneratedSessionName,
|
|
8
8
|
generateSessionName,
|
|
9
9
|
needsNameGenerationCheck
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BHSTSA7U.js";
|
|
11
11
|
import {
|
|
12
12
|
runChatTurn
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-TBSTW3PW.js";
|
|
14
|
+
import "./chunk-5NJ5NQH5.js";
|
|
15
15
|
import "./chunk-NBU6KIOD.js";
|
|
16
16
|
import "./chunk-574HZVLE.js";
|
|
17
17
|
import "./chunk-D4ZLSV6P.js";
|
|
18
18
|
import {
|
|
19
19
|
getEventStore
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-YVQ6DP5Y.js";
|
|
21
|
+
import "./chunk-LIMBYVO4.js";
|
|
22
22
|
import {
|
|
23
23
|
createChatMessageMessage,
|
|
24
24
|
createPhaseChangedMessage,
|
|
25
25
|
createSessionRunningMessage
|
|
26
26
|
} from "./chunk-DZHZ3UUR.js";
|
|
27
27
|
import "./chunk-22CTURMH.js";
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-O2BOWZKC.js";
|
|
29
|
+
import "./chunk-7JPKRM6M.js";
|
|
30
|
+
import "./chunk-BLNFJ22S.js";
|
|
31
31
|
import "./chunk-Y6HBEACI.js";
|
|
32
32
|
import "./chunk-R4HADRYO.js";
|
|
33
33
|
import "./chunk-TVQOONDR.js";
|
|
@@ -62,7 +62,7 @@ async function startChatSession(sessionId, content, deps, options) {
|
|
|
62
62
|
sessionManager.setRunning(sessionId, true);
|
|
63
63
|
broadcastForSession(sessionId, createSessionRunningMessage(true));
|
|
64
64
|
try {
|
|
65
|
-
const { maybeAutoCompactContext } = await import("./auto-compaction-
|
|
65
|
+
const { maybeAutoCompactContext } = await import("./auto-compaction-SCLHKKGA.js");
|
|
66
66
|
await maybeAutoCompactContext({
|
|
67
67
|
sessionManager,
|
|
68
68
|
sessionId,
|
|
@@ -171,4 +171,4 @@ export {
|
|
|
171
171
|
startChatSession,
|
|
172
172
|
stopSessionExecution
|
|
173
173
|
};
|
|
174
|
-
//# sourceMappingURL=chat-handler-
|
|
174
|
+
//# sourceMappingURL=chat-handler-7ARMDWRH.js.map
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
getContextMessages,
|
|
22
22
|
getCurrentContextWindowId,
|
|
23
23
|
getEventStore
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-YVQ6DP5Y.js";
|
|
25
25
|
import {
|
|
26
26
|
createChatDoneMessage,
|
|
27
27
|
createChatMessageMessage,
|
|
@@ -40,10 +40,10 @@ import {
|
|
|
40
40
|
deleteSetting,
|
|
41
41
|
getSetting,
|
|
42
42
|
setSetting
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-O2BOWZKC.js";
|
|
44
44
|
import {
|
|
45
45
|
getProject
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-7JPKRM6M.js";
|
|
47
47
|
import {
|
|
48
48
|
getGlobalConfigDir
|
|
49
49
|
} from "./chunk-R4HADRYO.js";
|
|
@@ -3351,7 +3351,7 @@ var callSubAgentTool = {
|
|
|
3351
3351
|
};
|
|
3352
3352
|
}
|
|
3353
3353
|
try {
|
|
3354
|
-
const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-
|
|
3354
|
+
const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-6XOZHTF7.js");
|
|
3355
3355
|
const toolRegistry = getToolRegistryForAgent2(agentDef);
|
|
3356
3356
|
const turnMetrics = new TurnMetrics();
|
|
3357
3357
|
const result = await executeSubAgent({
|
|
@@ -4480,4 +4480,4 @@ export {
|
|
|
4480
4480
|
getToolRegistryForAgent,
|
|
4481
4481
|
createToolRegistry
|
|
4482
4482
|
};
|
|
4483
|
-
//# sourceMappingURL=chunk-
|
|
4483
|
+
//# sourceMappingURL=chunk-5NJ5NQH5.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getDatabase
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BLNFJ22S.js";
|
|
4
4
|
|
|
5
5
|
// src/server/db/projects.ts
|
|
6
6
|
function createProject(name, workdir) {
|
|
@@ -91,4 +91,4 @@ export {
|
|
|
91
91
|
updateProject,
|
|
92
92
|
deleteProject
|
|
93
93
|
};
|
|
94
|
-
//# sourceMappingURL=chunk-
|
|
94
|
+
//# sourceMappingURL=chunk-7JPKRM6M.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
updateSessionMetadata
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YVQ6DP5Y.js";
|
|
4
4
|
import {
|
|
5
5
|
buildMessagesFromStoredEvents,
|
|
6
6
|
foldPendingConfirmations
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-LIMBYVO4.js";
|
|
8
8
|
import {
|
|
9
9
|
createSessionStateMessage
|
|
10
10
|
} from "./chunk-DZHZ3UUR.js";
|
|
@@ -108,4 +108,4 @@ export {
|
|
|
108
108
|
needsNameGenerationCheck,
|
|
109
109
|
applyGeneratedSessionName
|
|
110
110
|
};
|
|
111
|
-
//# sourceMappingURL=chunk-
|
|
111
|
+
//# sourceMappingURL=chunk-BHSTSA7U.js.map
|
|
@@ -18,6 +18,12 @@ function initDatabase(config) {
|
|
|
18
18
|
if (result.changes > 0) {
|
|
19
19
|
logger.info("Reset stale running states", { count: result.changes });
|
|
20
20
|
}
|
|
21
|
+
const freelistCount = db.pragma("freelist_count", { simple: true });
|
|
22
|
+
if (freelistCount > 1e4) {
|
|
23
|
+
logger.info("Vacuuming database", { freelistCount });
|
|
24
|
+
db.exec("VACUUM");
|
|
25
|
+
logger.info("Database vacuumed");
|
|
26
|
+
}
|
|
21
27
|
return db;
|
|
22
28
|
}
|
|
23
29
|
function getDatabase() {
|
|
@@ -156,4 +162,4 @@ export {
|
|
|
156
162
|
initDatabase,
|
|
157
163
|
getDatabase
|
|
158
164
|
};
|
|
159
|
-
//# sourceMappingURL=chunk-
|
|
165
|
+
//# sourceMappingURL=chunk-BLNFJ22S.js.map
|
|
@@ -154,7 +154,7 @@ async function runCli(options) {
|
|
|
154
154
|
if (!configExists) {
|
|
155
155
|
await runNetworkSetup(mode);
|
|
156
156
|
}
|
|
157
|
-
const { runServe } = await import("./serve-
|
|
157
|
+
const { runServe } = await import("./serve-OGLLAEMY.js");
|
|
158
158
|
await runServe({
|
|
159
159
|
mode,
|
|
160
160
|
port: values.port ? parseInt(values.port) : void 0,
|
|
@@ -167,4 +167,4 @@ async function runCli(options) {
|
|
|
167
167
|
export {
|
|
168
168
|
runCli
|
|
169
169
|
};
|
|
170
|
-
//# sourceMappingURL=chunk-
|
|
170
|
+
//# sourceMappingURL=chunk-CRSOJ2YA.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generateSessionName,
|
|
3
3
|
needsNameGeneration
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BHSTSA7U.js";
|
|
5
5
|
import {
|
|
6
6
|
createVerifierNudgeConfig,
|
|
7
7
|
runBuilderTurn,
|
|
8
8
|
runChatTurn
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TBSTW3PW.js";
|
|
10
10
|
import {
|
|
11
11
|
TurnMetrics,
|
|
12
12
|
agentExists,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
setSkillEnabled,
|
|
48
48
|
skillExists,
|
|
49
49
|
spawnShellProcess
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-5NJ5NQH5.js";
|
|
51
51
|
import {
|
|
52
52
|
getPathSeparator,
|
|
53
53
|
getPlatformShell,
|
|
@@ -94,12 +94,12 @@ import {
|
|
|
94
94
|
updateSessionProvider,
|
|
95
95
|
updateSessionRunning,
|
|
96
96
|
updateSessionSummary
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-YVQ6DP5Y.js";
|
|
98
98
|
import {
|
|
99
99
|
buildContextMessagesFromEventHistory,
|
|
100
100
|
buildMessagesFromStoredEvents,
|
|
101
101
|
foldPendingConfirmations
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-LIMBYVO4.js";
|
|
103
103
|
import {
|
|
104
104
|
createChatErrorMessage,
|
|
105
105
|
createChatMessageMessage,
|
|
@@ -123,10 +123,10 @@ import {
|
|
|
123
123
|
} from "./chunk-22CTURMH.js";
|
|
124
124
|
import {
|
|
125
125
|
getProject
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-7JPKRM6M.js";
|
|
127
127
|
import {
|
|
128
128
|
initDatabase
|
|
129
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-BLNFJ22S.js";
|
|
130
130
|
import {
|
|
131
131
|
computeSessionStats
|
|
132
132
|
} from "./chunk-B7E3BICY.js";
|
|
@@ -5479,7 +5479,7 @@ function createTerminalRoutes() {
|
|
|
5479
5479
|
}
|
|
5480
5480
|
|
|
5481
5481
|
// src/constants.ts
|
|
5482
|
-
var VERSION = "1.6.
|
|
5482
|
+
var VERSION = "1.6.38";
|
|
5483
5483
|
|
|
5484
5484
|
// src/server/index.ts
|
|
5485
5485
|
var __dirname2 = dirname5(fileURLToPath4(import.meta.url));
|
|
@@ -5597,7 +5597,7 @@ async function createServerHandle(config) {
|
|
|
5597
5597
|
res.json({ tools });
|
|
5598
5598
|
});
|
|
5599
5599
|
app.get("/api/projects", async (_req, res) => {
|
|
5600
|
-
const { listProjects } = await import("./projects-
|
|
5600
|
+
const { listProjects } = await import("./projects-HEUOWNSR.js");
|
|
5601
5601
|
const projects = listProjects();
|
|
5602
5602
|
res.json({ projects });
|
|
5603
5603
|
});
|
|
@@ -5606,12 +5606,12 @@ async function createServerHandle(config) {
|
|
|
5606
5606
|
if (!name || !workdir) {
|
|
5607
5607
|
return res.status(400).json({ error: "name and workdir are required" });
|
|
5608
5608
|
}
|
|
5609
|
-
const { createDirectoryWithGit } = await import("./project-creator-
|
|
5609
|
+
const { createDirectoryWithGit } = await import("./project-creator-LASKNQPA.js");
|
|
5610
5610
|
const project = await createDirectoryWithGit(name, workdir);
|
|
5611
5611
|
res.status(201).json({ project });
|
|
5612
5612
|
});
|
|
5613
5613
|
app.get("/api/projects/:id", async (req, res) => {
|
|
5614
|
-
const { getProject: getProject2 } = await import("./projects-
|
|
5614
|
+
const { getProject: getProject2 } = await import("./projects-HEUOWNSR.js");
|
|
5615
5615
|
const project = getProject2(req.params.id);
|
|
5616
5616
|
if (!project) {
|
|
5617
5617
|
return res.status(404).json({ error: "Project not found" });
|
|
@@ -5619,7 +5619,7 @@ async function createServerHandle(config) {
|
|
|
5619
5619
|
res.json({ project });
|
|
5620
5620
|
});
|
|
5621
5621
|
app.put("/api/projects/:id", async (req, res) => {
|
|
5622
|
-
const { updateProject } = await import("./projects-
|
|
5622
|
+
const { updateProject } = await import("./projects-HEUOWNSR.js");
|
|
5623
5623
|
const { name, customInstructions } = req.body;
|
|
5624
5624
|
const updates = {};
|
|
5625
5625
|
if (name !== void 0) updates.name = name;
|
|
@@ -5631,7 +5631,7 @@ async function createServerHandle(config) {
|
|
|
5631
5631
|
res.json({ project: updated });
|
|
5632
5632
|
});
|
|
5633
5633
|
app.delete("/api/projects/:id", async (req, res) => {
|
|
5634
|
-
const { getProject: getProject2, deleteProject } = await import("./projects-
|
|
5634
|
+
const { getProject: getProject2, deleteProject } = await import("./projects-HEUOWNSR.js");
|
|
5635
5635
|
const project = getProject2(req.params.id);
|
|
5636
5636
|
if (!project) {
|
|
5637
5637
|
return res.status(404).json({ error: "Project not found" });
|
|
@@ -5640,7 +5640,7 @@ async function createServerHandle(config) {
|
|
|
5640
5640
|
res.json({ success: true });
|
|
5641
5641
|
});
|
|
5642
5642
|
app.get("/api/sessions", async (req, res) => {
|
|
5643
|
-
const { getRecentUserPromptsForSession } = await import("./events-
|
|
5643
|
+
const { getRecentUserPromptsForSession } = await import("./events-FHPSSSE4.js");
|
|
5644
5644
|
const projectId = req.query["projectId"];
|
|
5645
5645
|
const limit = Math.min(parseInt(req.query["limit"]) || 20, 100);
|
|
5646
5646
|
const offset = parseInt(req.query["offset"]) || 0;
|
|
@@ -5673,8 +5673,8 @@ async function createServerHandle(config) {
|
|
|
5673
5673
|
res.status(201).json({ session });
|
|
5674
5674
|
});
|
|
5675
5675
|
app.get("/api/sessions/:id", async (req, res) => {
|
|
5676
|
-
const { getEventStore: getEventStore2 } = await import("./events-
|
|
5677
|
-
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-
|
|
5676
|
+
const { getEventStore: getEventStore2 } = await import("./events-FHPSSSE4.js");
|
|
5677
|
+
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-NEZWWL7K.js");
|
|
5678
5678
|
const session = sessionManager.getSession(req.params.id);
|
|
5679
5679
|
if (!session) {
|
|
5680
5680
|
return res.status(404).json({ error: "Session not found" });
|
|
@@ -5704,8 +5704,8 @@ async function createServerHandle(config) {
|
|
|
5704
5704
|
res.json({ success: true });
|
|
5705
5705
|
});
|
|
5706
5706
|
app.post("/api/sessions/:id/provider", async (req, res) => {
|
|
5707
|
-
const { getEventStore: getEventStore2 } = await import("./events-
|
|
5708
|
-
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-
|
|
5707
|
+
const { getEventStore: getEventStore2 } = await import("./events-FHPSSSE4.js");
|
|
5708
|
+
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-NEZWWL7K.js");
|
|
5709
5709
|
const sessionId = req.params.id;
|
|
5710
5710
|
const session = sessionManager.getSession(sessionId);
|
|
5711
5711
|
if (!session) {
|
|
@@ -5742,8 +5742,8 @@ async function createServerHandle(config) {
|
|
|
5742
5742
|
res.json({ success: true });
|
|
5743
5743
|
});
|
|
5744
5744
|
app.put("/api/sessions/:id/mode", async (req, res) => {
|
|
5745
|
-
const { getEventStore: getEventStore2 } = await import("./events-
|
|
5746
|
-
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-
|
|
5745
|
+
const { getEventStore: getEventStore2 } = await import("./events-FHPSSSE4.js");
|
|
5746
|
+
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-NEZWWL7K.js");
|
|
5747
5747
|
const sessionId = req.params.id;
|
|
5748
5748
|
const session = sessionManager.getSession(sessionId);
|
|
5749
5749
|
if (!session) {
|
|
@@ -5781,13 +5781,13 @@ async function createServerHandle(config) {
|
|
|
5781
5781
|
if (!callId || approved === void 0) {
|
|
5782
5782
|
return res.status(400).json({ error: "callId and approved are required" });
|
|
5783
5783
|
}
|
|
5784
|
-
const { providePathConfirmation: providePathConfirmation2 } = await import("./tools-
|
|
5784
|
+
const { providePathConfirmation: providePathConfirmation2 } = await import("./tools-6XOZHTF7.js");
|
|
5785
5785
|
const result = providePathConfirmation2(callId, approved, alwaysAllow);
|
|
5786
5786
|
if (!result.found) {
|
|
5787
5787
|
return res.status(404).json({ error: "No pending path confirmation with that ID" });
|
|
5788
5788
|
}
|
|
5789
|
-
const { getEventStore: getEventStore2 } = await import("./events-
|
|
5790
|
-
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2, foldPendingConfirmations: foldPendingConfirmations2 } = await import("./folding-
|
|
5789
|
+
const { getEventStore: getEventStore2 } = await import("./events-FHPSSSE4.js");
|
|
5790
|
+
const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2, foldPendingConfirmations: foldPendingConfirmations2 } = await import("./folding-NEZWWL7K.js");
|
|
5791
5791
|
const { createSessionStateMessage: createSessionStateMessage2 } = await import("./protocol-YNVBDNL7.js");
|
|
5792
5792
|
const eventStore = getEventStore2();
|
|
5793
5793
|
const events = eventStore.getEvents(sessionId);
|
|
@@ -5806,7 +5806,7 @@ async function createServerHandle(config) {
|
|
|
5806
5806
|
if (!callId || !answer) {
|
|
5807
5807
|
return res.status(400).json({ error: "callId and answer are required" });
|
|
5808
5808
|
}
|
|
5809
|
-
const { provideAnswer: provideAnswer2 } = await import("./tools-
|
|
5809
|
+
const { provideAnswer: provideAnswer2 } = await import("./tools-6XOZHTF7.js");
|
|
5810
5810
|
const found = provideAnswer2(callId, answer);
|
|
5811
5811
|
if (!found) {
|
|
5812
5812
|
return res.status(404).json({ error: "No pending question with that ID" });
|
|
@@ -5842,14 +5842,14 @@ async function createServerHandle(config) {
|
|
|
5842
5842
|
if (!session) {
|
|
5843
5843
|
return res.status(404).json({ error: "Session not found" });
|
|
5844
5844
|
}
|
|
5845
|
-
const { stopSessionExecution } = await import("./chat-handler-
|
|
5846
|
-
const { cancelQuestionsForSession: cancelQuestionsForSession2, cancelPathConfirmationsForSession: cancelPathConfirmationsForSession2 } = await import("./tools-
|
|
5845
|
+
const { stopSessionExecution } = await import("./chat-handler-7ARMDWRH.js");
|
|
5846
|
+
const { cancelQuestionsForSession: cancelQuestionsForSession2, cancelPathConfirmationsForSession: cancelPathConfirmationsForSession2 } = await import("./tools-6XOZHTF7.js");
|
|
5847
5847
|
stopSessionExecution(sessionId, sessionManager);
|
|
5848
5848
|
abortSession(sessionId);
|
|
5849
5849
|
cancelQuestionsForSession2(sessionId, "Session stopped by user");
|
|
5850
5850
|
cancelPathConfirmationsForSession2(sessionId, "Session stopped by user");
|
|
5851
5851
|
sessionManager.clearMessageQueue(sessionId);
|
|
5852
|
-
const eventStore = (await import("./events-
|
|
5852
|
+
const eventStore = (await import("./events-FHPSSSE4.js")).getEventStore();
|
|
5853
5853
|
eventStore.append(sessionId, { type: "running.changed", data: { isRunning: false } });
|
|
5854
5854
|
res.json({ success: true });
|
|
5855
5855
|
});
|
|
@@ -5880,13 +5880,13 @@ async function createServerHandle(config) {
|
|
|
5880
5880
|
res.json({ accepted: true });
|
|
5881
5881
|
});
|
|
5882
5882
|
app.get("/api/settings/:key", async (req, res) => {
|
|
5883
|
-
const { getSetting, SETTINGS_DEFAULTS } = await import("./settings-
|
|
5883
|
+
const { getSetting, SETTINGS_DEFAULTS } = await import("./settings-TWK27GYE.js");
|
|
5884
5884
|
const key = req.params.key;
|
|
5885
5885
|
const value = getSetting(key) ?? SETTINGS_DEFAULTS[key] ?? null;
|
|
5886
5886
|
res.json({ key, value });
|
|
5887
5887
|
});
|
|
5888
5888
|
app.put("/api/settings/:key", async (req, res) => {
|
|
5889
|
-
const { setSetting } = await import("./settings-
|
|
5889
|
+
const { setSetting } = await import("./settings-TWK27GYE.js");
|
|
5890
5890
|
const key = req.params.key;
|
|
5891
5891
|
const { value } = req.body;
|
|
5892
5892
|
if (value === void 0) {
|
|
@@ -6302,7 +6302,7 @@ async function createServerHandle(config) {
|
|
|
6302
6302
|
providerManager
|
|
6303
6303
|
);
|
|
6304
6304
|
const wss = wssExports.wss;
|
|
6305
|
-
const { QueueProcessor } = await import("./processor-
|
|
6305
|
+
const { QueueProcessor } = await import("./processor-KR5GNW3S.js");
|
|
6306
6306
|
const queueProcessor = new QueueProcessor({
|
|
6307
6307
|
sessionManager,
|
|
6308
6308
|
providerManager,
|
|
@@ -6375,4 +6375,4 @@ export {
|
|
|
6375
6375
|
createServerHandle,
|
|
6376
6376
|
createServer
|
|
6377
6377
|
};
|
|
6378
|
-
//# sourceMappingURL=chunk-
|
|
6378
|
+
//# sourceMappingURL=chunk-DSI2ZSZQ.js.map
|