openfox 2.0.1 → 2.0.2

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.
@@ -5832,7 +5832,7 @@ import { Router as Router6 } from "express";
5832
5832
  import { spawn as spawn5 } from "child_process";
5833
5833
 
5834
5834
  // src/constants.ts
5835
- var VERSION = "2.0.0";
5835
+ var VERSION = "2.0.2";
5836
5836
 
5837
5837
  // src/server/routes/auto-update.ts
5838
5838
  var updateInProgress = false;
@@ -6351,14 +6351,15 @@ async function createServerHandle(config4) {
6351
6351
  }
6352
6352
  const { stopSessionExecution } = await import("./chat-handler-LJMW4OK3.js");
6353
6353
  const { cancelQuestionsForSession, cancelPathConfirmationsForSession } = await import("./tools-BOE5T3KC.js");
6354
+ const queuedMessages = sessionManager.getQueueState(sessionId);
6355
+ sessionManager.clearMessageQueue(sessionId);
6354
6356
  stopSessionExecution(sessionId, sessionManager);
6355
6357
  abortSession(sessionId);
6356
6358
  cancelQuestionsForSession(sessionId, "Session stopped by user");
6357
6359
  cancelPathConfirmationsForSession(sessionId, "Session stopped by user");
6358
- sessionManager.clearMessageQueue(sessionId);
6359
6360
  const eventStore = (await import("./events-ZKWAKWI7.js")).getEventStore();
6360
6361
  eventStore.append(sessionId, { type: "running.changed", data: { isRunning: false } });
6361
- res.json({ success: true });
6362
+ res.json({ success: true, queuedMessages });
6362
6363
  });
6363
6364
  app.post("/api/sessions/:id/truncate", async (req, res) => {
6364
6365
  const sessionId = req.params.id;
@@ -7018,7 +7019,9 @@ async function createServerHandle(config4) {
7018
7019
  });
7019
7020
  queueProcessor.start();
7020
7021
  const abortSession = (sessionId) => {
7021
- const aborted = wssExports.abortSession(sessionId) || queueProcessor.abortSession(sessionId);
7022
+ const wsAborted = wssExports.abortSession(sessionId);
7023
+ const qpAborted = queueProcessor.abortSession(sessionId);
7024
+ const aborted = wsAborted || qpAborted;
7022
7025
  if (aborted) {
7023
7026
  sessionManager.setRunning(sessionId, false);
7024
7027
  wssExports.broadcastForSession(sessionId, { type: "session.running", payload: { isRunning: false } });
@@ -7080,4 +7083,4 @@ export {
7080
7083
  createServerHandle,
7081
7084
  createServer
7082
7085
  };
7083
- //# sourceMappingURL=chunk-ZDY4WMZJ.js.map
7086
+ //# sourceMappingURL=chunk-72GTKFVG.js.map
@@ -193,7 +193,7 @@ async function runCli(options) {
193
193
  if (!configExists) {
194
194
  await runNetworkSetup(mode);
195
195
  }
196
- const { runServe } = await import("./serve-SGNL43UL.js");
196
+ const { runServe } = await import("./serve-DMWEPTU5.js");
197
197
  const serveOptions = { mode };
198
198
  if (values.port) serveOptions.port = parseInt(values.port);
199
199
  if (values["no-browser"] === true) serveOptions.openBrowser = false;
@@ -205,4 +205,4 @@ async function runCli(options) {
205
205
  export {
206
206
  runCli
207
207
  };
208
- //# sourceMappingURL=chunk-MFUPS6UE.js.map
208
+ //# sourceMappingURL=chunk-MWHH6UZB.js.map
package/dist/cli/dev.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  runCli
4
- } from "../chunk-MFUPS6UE.js";
4
+ } from "../chunk-MWHH6UZB.js";
5
5
  import {
6
6
  logger
7
7
  } from "../chunk-K44MW7JJ.js";
package/dist/cli/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  runCli
4
- } from "../chunk-MFUPS6UE.js";
4
+ } from "../chunk-MWHH6UZB.js";
5
5
  import {
6
6
  logger
7
7
  } from "../chunk-K44MW7JJ.js";
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openfox",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "Local-LLM-first agentic coding assistant",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  VERSION,
3
3
  createServer
4
- } from "./chunk-ZDY4WMZJ.js";
4
+ } from "./chunk-72GTKFVG.js";
5
5
  import "./chunk-RI6GAMNP.js";
6
6
  import "./chunk-LEDG5WAN.js";
7
7
  import "./chunk-32GQUDLN.js";
@@ -188,4 +188,4 @@ async function runServe(options) {
188
188
  export {
189
189
  runServe
190
190
  };
191
- //# sourceMappingURL=serve-SGNL43UL.js.map
191
+ //# sourceMappingURL=serve-DMWEPTU5.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createServer,
3
3
  createServerHandle
4
- } from "../chunk-ZDY4WMZJ.js";
4
+ } from "../chunk-72GTKFVG.js";
5
5
  import "../chunk-RI6GAMNP.js";
6
6
  import "../chunk-LEDG5WAN.js";
7
7
  import "../chunk-32GQUDLN.js";