openfox 1.6.98 → 1.6.100

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 (40) hide show
  1. package/dist/{auto-compaction-ZYKJQPGM.js → auto-compaction-NLUAT562.js} +9 -9
  2. package/dist/{chat-handler-N3FYFHYQ.js → chat-handler-5KT442LF.js} +12 -12
  3. package/dist/{chunk-7Y3HFCTD.js → chunk-BZBT5VJL.js} +12 -28
  4. package/dist/{chunk-XVWVAWSG.js → chunk-DCYDTDWO.js} +7 -9
  5. package/dist/{chunk-5GVCNVKV.js → chunk-FBGWG4N6.js} +1 -5
  6. package/dist/{chunk-NVVKBL4S.js → chunk-IB3TCZF7.js} +4 -4
  7. package/dist/{chunk-LC6HW727.js → chunk-KOQOPNE5.js} +40 -53
  8. package/dist/{chunk-T67WWSM7.js → chunk-MEOKWBXX.js} +2 -6
  9. package/dist/{chunk-KR7N2ONG.js → chunk-PFSOVCEN.js} +78 -26
  10. package/dist/{chunk-ROWFVGB6.js → chunk-TYIHIHJF.js} +2 -2
  11. package/dist/{chunk-I2EVVAG4.js → chunk-VMRDLSNP.js} +4 -4
  12. package/dist/{chunk-RGRBWDZP.js → chunk-VUQCQXXJ.js} +5 -2
  13. package/dist/{chunk-ERFRUQQR.js → chunk-X3GA33UG.js} +1 -1
  14. package/dist/{chunk-ZHBL5G5X.js → chunk-XAMAYRDA.js} +2 -2
  15. package/dist/{chunk-K7F73QLL.js → chunk-Y532ULQ2.js} +4 -4
  16. package/dist/cli/dev.js +1 -1
  17. package/dist/cli/index.js +1 -1
  18. package/dist/{events-Z2SXIOUX.js → events-QBKF32WS.js} +4 -4
  19. package/dist/{folding-4VHGQE6Y.js → folding-EQPDQKQS.js} +2 -2
  20. package/dist/{orchestrator-2A6RG6ZR.js → orchestrator-4GHZFEGT.js} +10 -10
  21. package/dist/package.json +1 -1
  22. package/dist/{processor-V34TTHI2.js → processor-I3WKCUAE.js} +8 -8
  23. package/dist/{project-creator-25F7KUPX.js → project-creator-6DU7E75S.js} +3 -3
  24. package/dist/{projects-55F45PH3.js → projects-2HYIZC4Y.js} +3 -3
  25. package/dist/{protocol-FZUIA4BS.js → protocol-GKGDN64O.js} +3 -5
  26. package/dist/{protocol-BFKDuZ7J.d.ts → protocol-eKAFeMXn.d.ts} +2 -6
  27. package/dist/{serve-FD3A43KR.js → serve-CJEAHPPU.js} +12 -12
  28. package/dist/server/index.d.ts +1 -5
  29. package/dist/server/index.js +11 -11
  30. package/dist/{service-3CLVG2HV.js → service-EUOBAATS.js} +2 -1
  31. package/dist/{settings-TTYCUHWU.js → settings-4334IX63.js} +3 -3
  32. package/dist/shared/index.d.ts +2 -2
  33. package/dist/shared/index.js +2 -2
  34. package/dist/{tools-ASM4FNUG.js → tools-UBURWNND.js} +9 -9
  35. package/dist/web/assets/index-DzlTckHS.js +299 -0
  36. package/dist/web/assets/{index-D3nUB0zb.css → index-aAebFDVk.css} +1 -1
  37. package/dist/web/index.html +2 -2
  38. package/dist/web/sw.js +1 -1
  39. package/package.json +1 -1
  40. package/dist/web/assets/index-BhmZRmbE.js +0 -299
@@ -2,19 +2,19 @@ import {
2
2
  maybeAutoCompactContext,
3
3
  performManualContextCompaction,
4
4
  resolveCompactionStatsIdentity
5
- } from "./chunk-KR7N2ONG.js";
6
- import "./chunk-ROWFVGB6.js";
7
- import "./chunk-ZHBL5G5X.js";
5
+ } from "./chunk-PFSOVCEN.js";
6
+ import "./chunk-TYIHIHJF.js";
7
+ import "./chunk-XAMAYRDA.js";
8
8
  import "./chunk-DL6ZILAF.js";
9
9
  import "./chunk-PBGOZMVY.js";
10
10
  import "./chunk-VRGRAQDG.js";
11
11
  import "./chunk-HGAMIPFO.js";
12
- import "./chunk-7Y3HFCTD.js";
13
- import "./chunk-5GVCNVKV.js";
14
- import "./chunk-XVWVAWSG.js";
15
- import "./chunk-T67WWSM7.js";
12
+ import "./chunk-BZBT5VJL.js";
13
+ import "./chunk-FBGWG4N6.js";
14
+ import "./chunk-DCYDTDWO.js";
15
+ import "./chunk-MEOKWBXX.js";
16
16
  import "./chunk-BJYPTN5S.js";
17
- import "./chunk-ERFRUQQR.js";
17
+ import "./chunk-X3GA33UG.js";
18
18
  import "./chunk-CQGTEGKL.js";
19
19
  import "./chunk-CGZHLM3K.js";
20
20
  import "./chunk-SZKEGZIB.js";
@@ -24,4 +24,4 @@ export {
24
24
  performManualContextCompaction,
25
25
  resolveCompactionStatsIdentity
26
26
  };
27
- //# sourceMappingURL=auto-compaction-ZYKJQPGM.js.map
27
+ //# sourceMappingURL=auto-compaction-NLUAT562.js.map
@@ -5,29 +5,29 @@ import {
5
5
  generateSessionName,
6
6
  getSessionMessageCount,
7
7
  needsNameGenerationCheck
8
- } from "./chunk-NVVKBL4S.js";
8
+ } from "./chunk-IB3TCZF7.js";
9
9
  import {
10
10
  runChatTurn
11
- } from "./chunk-K7F73QLL.js";
12
- import "./chunk-KR7N2ONG.js";
13
- import "./chunk-ROWFVGB6.js";
14
- import "./chunk-ZHBL5G5X.js";
11
+ } from "./chunk-Y532ULQ2.js";
12
+ import "./chunk-PFSOVCEN.js";
13
+ import "./chunk-TYIHIHJF.js";
14
+ import "./chunk-XAMAYRDA.js";
15
15
  import "./chunk-DL6ZILAF.js";
16
16
  import "./chunk-PBGOZMVY.js";
17
17
  import "./chunk-VRGRAQDG.js";
18
18
  import "./chunk-HGAMIPFO.js";
19
19
  import {
20
20
  getEventStore
21
- } from "./chunk-7Y3HFCTD.js";
22
- import "./chunk-5GVCNVKV.js";
23
- import "./chunk-XVWVAWSG.js";
21
+ } from "./chunk-BZBT5VJL.js";
22
+ import "./chunk-FBGWG4N6.js";
23
+ import "./chunk-DCYDTDWO.js";
24
24
  import {
25
25
  createChatMessageMessage,
26
26
  createPhaseChangedMessage,
27
27
  createSessionRunningMessage
28
- } from "./chunk-T67WWSM7.js";
28
+ } from "./chunk-MEOKWBXX.js";
29
29
  import "./chunk-BJYPTN5S.js";
30
- import "./chunk-ERFRUQQR.js";
30
+ import "./chunk-X3GA33UG.js";
31
31
  import "./chunk-CQGTEGKL.js";
32
32
  import "./chunk-CGZHLM3K.js";
33
33
  import "./chunk-SZKEGZIB.js";
@@ -61,7 +61,7 @@ async function startChatSession(sessionId, content, deps, options) {
61
61
  sessionManager.setRunning(sessionId, true);
62
62
  broadcastForSession(sessionId, createSessionRunningMessage(true));
63
63
  try {
64
- const { maybeAutoCompactContext } = await import("./auto-compaction-ZYKJQPGM.js");
64
+ const { maybeAutoCompactContext } = await import("./auto-compaction-NLUAT562.js");
65
65
  await maybeAutoCompactContext({
66
66
  sessionManager,
67
67
  sessionId,
@@ -175,4 +175,4 @@ export {
175
175
  startChatSession,
176
176
  stopSessionExecution
177
177
  };
178
- //# sourceMappingURL=chat-handler-N3FYFHYQ.js.map
178
+ //# sourceMappingURL=chat-handler-5KT442LF.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getDatabase
3
- } from "./chunk-5GVCNVKV.js";
3
+ } from "./chunk-FBGWG4N6.js";
4
4
  import {
5
5
  buildContextMessagesFromEventHistory,
6
6
  buildMessagesFromStoredEvents,
@@ -9,7 +9,7 @@ import {
9
9
  foldSessionState,
10
10
  spreadOptionalMessageFields,
11
11
  stripPromptContextMessages
12
- } from "./chunk-XVWVAWSG.js";
12
+ } from "./chunk-DCYDTDWO.js";
13
13
  import {
14
14
  getRuntimeConfig
15
15
  } from "./chunk-CGZHLM3K.js";
@@ -618,7 +618,6 @@ function createSession(projectId, workdir, title, providerId, providerModel) {
618
618
  mode: "planner",
619
619
  phase: "plan",
620
620
  isRunning: false,
621
- summary: null,
622
621
  providerId: providerId ?? null,
623
622
  providerModel: providerModel ?? null,
624
623
  createdAt: now,
@@ -647,17 +646,7 @@ function getSession(id) {
647
646
  return null;
648
647
  }
649
648
  return {
650
- id: row.id,
651
- projectId: row.project_id,
652
- workdir: row.workdir,
653
- mode: row.mode ?? "planner",
654
- phase: row.workflow_phase ?? "plan",
655
- isRunning: Boolean(row.is_running),
656
- summary: row.summary ?? null,
657
- providerId: row.provider_id ?? null,
658
- providerModel: row.provider_model ?? null,
659
- createdAt: row.created_at,
660
- updatedAt: row.updated_at,
649
+ ...mapSessionBase(row),
661
650
  messages: [],
662
651
  criteria: [],
663
652
  contextWindows: [],
@@ -698,15 +687,6 @@ function updateSessionRunning(id, isRunning) {
698
687
  `
699
688
  ).run(isRunning ? 1 : 0, now, id);
700
689
  }
701
- function updateSessionSummary(id, summary) {
702
- const db = getDatabase();
703
- const now = (/* @__PURE__ */ new Date()).toISOString();
704
- db.prepare(
705
- `
706
- UPDATE sessions SET summary = ?, updated_at = ? WHERE id = ?
707
- `
708
- ).run(summary, now, id);
709
- }
710
690
  function updateSessionMetadata(id, metadata) {
711
691
  const db = getDatabase();
712
692
  const now = (/* @__PURE__ */ new Date()).toISOString();
@@ -801,11 +781,10 @@ function deleteSession(id) {
801
781
  const db = getDatabase();
802
782
  db.prepare("DELETE FROM sessions WHERE id = ?").run(id);
803
783
  }
804
- function mapSessionSummaryRow(row) {
784
+ function mapSessionBase(row) {
805
785
  return {
806
786
  id: row.id,
807
787
  projectId: row.project_id,
808
- ...row.title ? { title: row.title } : {},
809
788
  workdir: row.workdir,
810
789
  mode: row.mode ?? "planner",
811
790
  phase: row.workflow_phase ?? "plan",
@@ -813,7 +792,13 @@ function mapSessionSummaryRow(row) {
813
792
  providerId: row.provider_id ?? null,
814
793
  providerModel: row.provider_model ?? null,
815
794
  createdAt: row.created_at,
816
- updatedAt: row.updated_at,
795
+ updatedAt: row.updated_at
796
+ };
797
+ }
798
+ function mapSessionSummaryRow(row) {
799
+ return {
800
+ ...mapSessionBase(row),
801
+ ...row.title ? { title: row.title } : {},
817
802
  criteriaCount: 0,
818
803
  criteriaCompleted: 0,
819
804
  messageCount: row.message_count
@@ -1245,7 +1230,6 @@ export {
1245
1230
  updateSessionProvider,
1246
1231
  updateSessionDangerLevel,
1247
1232
  updateSessionRunning,
1248
- updateSessionSummary,
1249
1233
  updateSessionMetadata,
1250
1234
  listSessions,
1251
1235
  listSessionsByProject,
@@ -1283,4 +1267,4 @@ export {
1283
1267
  compactContext,
1284
1268
  getRecentUserPromptsForSession
1285
1269
  };
1286
- //# sourceMappingURL=chunk-7Y3HFCTD.js.map
1270
+ //# sourceMappingURL=chunk-BZBT5VJL.js.map
@@ -1,4 +1,8 @@
1
1
  // src/server/events/apply-events.ts
2
+ function markComplete(msg, reason) {
3
+ msg.isComplete = true;
4
+ msg.completeReason = reason;
5
+ }
2
6
  function extractMessageOptionalFields(data) {
3
7
  return {
4
8
  ...data.tokenCount !== void 0 && { tokenCount: data.tokenCount },
@@ -144,20 +148,14 @@ function applyEvents(initialMessages, events, options) {
144
148
  const data = event.data;
145
149
  const msg = messages.get(data.messageId);
146
150
  if (msg) {
147
- ;
148
- msg.isComplete = true;
149
- msg.completeReason = data.reason;
151
+ markComplete(msg, data.reason);
150
152
  }
151
153
  break;
152
154
  }
153
155
  case "chat.error": {
154
- const data = event.data;
155
156
  for (const msg of messages.values()) {
156
157
  if (msg.role === "assistant" && !("isComplete" in msg)) {
157
- ;
158
- msg.isComplete = true;
159
- msg.completeReason = "error";
160
- msg.stats = { error: data.error };
158
+ markComplete(msg, "error");
161
159
  }
162
160
  }
163
161
  break;
@@ -880,4 +878,4 @@ export {
880
878
  getMessagesForWindow,
881
879
  buildContextMessagesFromMessages
882
880
  };
883
- //# sourceMappingURL=chunk-XVWVAWSG.js.map
881
+ //# sourceMappingURL=chunk-DCYDTDWO.js.map
@@ -81,10 +81,6 @@ function runMigrations(db2) {
81
81
  logger.info("Migrating sessions table: adding is_running column");
82
82
  db2.exec(`ALTER TABLE sessions ADD COLUMN is_running INTEGER NOT NULL DEFAULT 0`);
83
83
  }
84
- if (!columnNames.includes("summary")) {
85
- logger.info("Migrating sessions table: adding summary column");
86
- db2.exec(`ALTER TABLE sessions ADD COLUMN summary TEXT`);
87
- }
88
84
  if (!columnNames.includes("workflow_phase")) {
89
85
  logger.info("Migrating sessions table: adding workflow_phase column");
90
86
  db2.exec(`ALTER TABLE sessions ADD COLUMN workflow_phase TEXT NOT NULL DEFAULT 'plan'`);
@@ -172,4 +168,4 @@ export {
172
168
  initDatabase,
173
169
  getDatabase
174
170
  };
175
- //# sourceMappingURL=chunk-5GVCNVKV.js.map
171
+ //# sourceMappingURL=chunk-FBGWG4N6.js.map
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  getEventStore,
3
3
  updateSessionMetadata
4
- } from "./chunk-7Y3HFCTD.js";
4
+ } from "./chunk-BZBT5VJL.js";
5
5
  import {
6
6
  buildMessagesFromStoredEvents,
7
7
  foldPendingConfirmations
8
- } from "./chunk-XVWVAWSG.js";
8
+ } from "./chunk-DCYDTDWO.js";
9
9
  import {
10
10
  createContextStateMessage,
11
11
  createSessionStateMessage
12
- } from "./chunk-T67WWSM7.js";
12
+ } from "./chunk-MEOKWBXX.js";
13
13
  import {
14
14
  logger
15
15
  } from "./chunk-K44MW7JJ.js";
@@ -143,4 +143,4 @@ export {
143
143
  needsNameGenerationCheck,
144
144
  applyGeneratedSessionName
145
145
  };
146
- //# sourceMappingURL=chunk-NVVKBL4S.js.map
146
+ //# sourceMappingURL=chunk-IB3TCZF7.js.map
@@ -2,7 +2,7 @@ import {
2
2
  createVerifierNudgeConfig,
3
3
  runBuilderTurn,
4
4
  runChatTurn
5
- } from "./chunk-K7F73QLL.js";
5
+ } from "./chunk-Y532ULQ2.js";
6
6
  import {
7
7
  TurnMetrics,
8
8
  agentExists,
@@ -46,10 +46,10 @@ import {
46
46
  saveSkillToProject,
47
47
  skillExists,
48
48
  spawnShellProcess
49
- } from "./chunk-KR7N2ONG.js";
49
+ } from "./chunk-PFSOVCEN.js";
50
50
  import {
51
51
  getProject
52
- } from "./chunk-ZHBL5G5X.js";
52
+ } from "./chunk-XAMAYRDA.js";
53
53
  import {
54
54
  getPathSeparator,
55
55
  getPlatformShell,
@@ -94,16 +94,15 @@ import {
94
94
  updateSessionDangerLevel,
95
95
  updateSessionMetadata,
96
96
  updateSessionProvider,
97
- updateSessionRunning,
98
- updateSessionSummary
99
- } from "./chunk-7Y3HFCTD.js";
97
+ updateSessionRunning
98
+ } from "./chunk-BZBT5VJL.js";
100
99
  import {
101
100
  initDatabase
102
- } from "./chunk-5GVCNVKV.js";
101
+ } from "./chunk-FBGWG4N6.js";
103
102
  import {
104
103
  buildMessagesFromStoredEvents,
105
104
  foldPendingConfirmations
106
- } from "./chunk-XVWVAWSG.js";
105
+ } from "./chunk-DCYDTDWO.js";
107
106
  import {
108
107
  createChatErrorMessage,
109
108
  createChatMessageMessage,
@@ -118,17 +117,17 @@ import {
118
117
  parseClientMessage,
119
118
  serializeServerMessage,
120
119
  storedEventToServerMessage
121
- } from "./chunk-T67WWSM7.js";
120
+ } from "./chunk-MEOKWBXX.js";
122
121
  import {
123
122
  EventEmitter,
124
123
  provideAnswer
125
124
  } from "./chunk-BJYPTN5S.js";
126
125
  import {
127
126
  computeSessionStats
128
- } from "./chunk-RGRBWDZP.js";
127
+ } from "./chunk-VUQCQXXJ.js";
129
128
  import {
130
129
  createServerMessage
131
- } from "./chunk-ERFRUQQR.js";
130
+ } from "./chunk-X3GA33UG.js";
132
131
  import {
133
132
  getGlobalConfigDir
134
133
  } from "./chunk-CQGTEGKL.js";
@@ -1733,7 +1732,6 @@ var TEMPLATE_VARIABLES = [
1733
1732
  },
1734
1733
  { name: "criteriaCount", description: "Total number of criteria" },
1735
1734
  { name: "pendingCount", description: "Number of pending/failed criteria" },
1736
- { name: "summary", description: "Session summary generated by planner" },
1737
1735
  { name: "criteriaList", description: "Formatted list of all criteria with status" },
1738
1736
  { name: "modifiedFiles", description: "List of modified files" }
1739
1737
  ];
@@ -1905,7 +1903,6 @@ async function executeWorkflow(workflow, options) {
1905
1903
  previousStepOutput: lastStepOutput["stdout"] ?? "",
1906
1904
  criteriaCount: criteria.length,
1907
1905
  pendingCount: criteria.filter((c) => c.status.type !== "passed").length,
1908
- summary: session.summary ?? "No summary available",
1909
1906
  criteriaList: formatCriteriaList(criteria),
1910
1907
  modifiedFiles: formatModifiedFiles(session),
1911
1908
  stepOutput: lastStepOutput
@@ -4296,16 +4293,6 @@ var SessionManager = class {
4296
4293
  this.emit({ type: "running_changed", sessionId, isRunning });
4297
4294
  return updatedSession;
4298
4295
  }
4299
- /**
4300
- * Set session summary. Updates DB directly (metadata, not event).
4301
- */
4302
- setSummary(sessionId, summary) {
4303
- logger.debug("Setting session summary", { sessionId, summaryLength: summary.length });
4304
- updateSessionSummary(sessionId, summary);
4305
- const updatedSession = this.requireSession(sessionId);
4306
- this.emit({ type: "session_updated", session: updatedSession });
4307
- return updatedSession;
4308
- }
4309
4296
  /**
4310
4297
  * Set session provider/model. Updates DB directly.
4311
4298
  */
@@ -5384,7 +5371,7 @@ import { Router as Router6 } from "express";
5384
5371
  import { spawn as spawn4 } from "child_process";
5385
5372
 
5386
5373
  // src/constants.ts
5387
- var VERSION = "1.6.98";
5374
+ var VERSION = "1.6.100";
5388
5375
 
5389
5376
  // src/server/routes/auto-update.ts
5390
5377
  var updateInProgress = false;
@@ -5585,7 +5572,7 @@ async function createServerHandle(config4) {
5585
5572
  res.json({ tools });
5586
5573
  });
5587
5574
  app.get("/api/projects", async (_req, res) => {
5588
- const { listProjects } = await import("./projects-55F45PH3.js");
5575
+ const { listProjects } = await import("./projects-2HYIZC4Y.js");
5589
5576
  const projects = listProjects();
5590
5577
  res.json({ projects });
5591
5578
  });
@@ -5594,7 +5581,7 @@ async function createServerHandle(config4) {
5594
5581
  if (!name || !workdir) {
5595
5582
  return res.status(400).json({ error: "name and workdir are required" });
5596
5583
  }
5597
- const { createDirectoryWithGit } = await import("./project-creator-25F7KUPX.js");
5584
+ const { createDirectoryWithGit } = await import("./project-creator-6DU7E75S.js");
5598
5585
  try {
5599
5586
  const project = await createDirectoryWithGit(name, workdir);
5600
5587
  res.status(201).json({ project });
@@ -5639,7 +5626,7 @@ async function createServerHandle(config4) {
5639
5626
  }
5640
5627
  });
5641
5628
  app.get("/api/projects/:id", async (req, res) => {
5642
- const { getProject: getProject2 } = await import("./projects-55F45PH3.js");
5629
+ const { getProject: getProject2 } = await import("./projects-2HYIZC4Y.js");
5643
5630
  const project = getProject2(req.params.id);
5644
5631
  if (!project) {
5645
5632
  return res.status(404).json({ error: "Project not found" });
@@ -5647,7 +5634,7 @@ async function createServerHandle(config4) {
5647
5634
  res.json({ project });
5648
5635
  });
5649
5636
  app.put("/api/projects/:id", async (req, res) => {
5650
- const { updateProject } = await import("./projects-55F45PH3.js");
5637
+ const { updateProject } = await import("./projects-2HYIZC4Y.js");
5651
5638
  const { name, customInstructions, dangerLevel } = req.body;
5652
5639
  const updates = {};
5653
5640
  if (name !== void 0) updates.name = name;
@@ -5660,7 +5647,7 @@ async function createServerHandle(config4) {
5660
5647
  res.json({ project: updated });
5661
5648
  });
5662
5649
  app.delete("/api/projects/:id", async (req, res) => {
5663
- const { getProject: getProject2, deleteProject } = await import("./projects-55F45PH3.js");
5650
+ const { getProject: getProject2, deleteProject } = await import("./projects-2HYIZC4Y.js");
5664
5651
  const project = getProject2(req.params.id);
5665
5652
  if (!project) {
5666
5653
  return res.status(404).json({ error: "Project not found" });
@@ -5669,7 +5656,7 @@ async function createServerHandle(config4) {
5669
5656
  res.json({ success: true });
5670
5657
  });
5671
5658
  app.put("/api/projects/:id/star", async (req, res) => {
5672
- const { toggleStar } = await import("./projects-55F45PH3.js");
5659
+ const { toggleStar } = await import("./projects-2HYIZC4Y.js");
5673
5660
  const { isStarred } = req.body;
5674
5661
  if (typeof isStarred !== "boolean") {
5675
5662
  return res.status(400).json({ error: "isStarred is required and must be a boolean" });
@@ -5681,7 +5668,7 @@ async function createServerHandle(config4) {
5681
5668
  res.json({ project });
5682
5669
  });
5683
5670
  app.get("/api/sessions", async (req, res) => {
5684
- const { getRecentUserPromptsForSession } = await import("./events-Z2SXIOUX.js");
5671
+ const { getRecentUserPromptsForSession } = await import("./events-QBKF32WS.js");
5685
5672
  const projectId = req.query["projectId"];
5686
5673
  const limit = Math.min(parseInt(req.query["limit"]) || 20, 100);
5687
5674
  const offset = parseInt(req.query["offset"]) || 0;
@@ -5714,8 +5701,8 @@ async function createServerHandle(config4) {
5714
5701
  res.status(201).json({ session });
5715
5702
  });
5716
5703
  app.get("/api/sessions/:id", async (req, res) => {
5717
- const { getEventStore: getEventStore2 } = await import("./events-Z2SXIOUX.js");
5718
- const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-4VHGQE6Y.js");
5704
+ const { getEventStore: getEventStore2 } = await import("./events-QBKF32WS.js");
5705
+ const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-EQPDQKQS.js");
5719
5706
  const session = sessionManager.getSession(req.params.id);
5720
5707
  if (!session) {
5721
5708
  return res.status(404).json({ error: "Session not found" });
@@ -5745,8 +5732,8 @@ async function createServerHandle(config4) {
5745
5732
  res.json({ success: true });
5746
5733
  });
5747
5734
  app.post("/api/sessions/:id/provider", async (req, res) => {
5748
- const { getEventStore: getEventStore2 } = await import("./events-Z2SXIOUX.js");
5749
- const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-4VHGQE6Y.js");
5735
+ const { getEventStore: getEventStore2 } = await import("./events-QBKF32WS.js");
5736
+ const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-EQPDQKQS.js");
5750
5737
  const sessionId = req.params.id;
5751
5738
  const session = sessionManager.getSession(sessionId);
5752
5739
  if (!session) {
@@ -5783,8 +5770,8 @@ async function createServerHandle(config4) {
5783
5770
  res.json({ success: true });
5784
5771
  });
5785
5772
  app.put("/api/sessions/:id/mode", async (req, res) => {
5786
- const { getEventStore: getEventStore2 } = await import("./events-Z2SXIOUX.js");
5787
- const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-4VHGQE6Y.js");
5773
+ const { getEventStore: getEventStore2 } = await import("./events-QBKF32WS.js");
5774
+ const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2 } = await import("./folding-EQPDQKQS.js");
5788
5775
  const sessionId = req.params.id;
5789
5776
  const session = sessionManager.getSession(sessionId);
5790
5777
  if (!session) {
@@ -5840,14 +5827,14 @@ async function createServerHandle(config4) {
5840
5827
  if (!callId || approved === void 0) {
5841
5828
  return res.status(400).json({ error: "callId and approved are required" });
5842
5829
  }
5843
- const { providePathConfirmation } = await import("./tools-ASM4FNUG.js");
5830
+ const { providePathConfirmation } = await import("./tools-UBURWNND.js");
5844
5831
  const result = providePathConfirmation(callId, approved, alwaysAllow);
5845
5832
  if (!result.found) {
5846
5833
  return res.status(404).json({ error: "No pending path confirmation with that ID" });
5847
5834
  }
5848
- const { getEventStore: getEventStore2 } = await import("./events-Z2SXIOUX.js");
5849
- const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2, foldPendingConfirmations: foldPendingConfirmations2 } = await import("./folding-4VHGQE6Y.js");
5850
- const { createSessionStateMessage: createSessionStateMessage2 } = await import("./protocol-FZUIA4BS.js");
5835
+ const { getEventStore: getEventStore2 } = await import("./events-QBKF32WS.js");
5836
+ const { buildMessagesFromStoredEvents: buildMessagesFromStoredEvents2, foldPendingConfirmations: foldPendingConfirmations2 } = await import("./folding-EQPDQKQS.js");
5837
+ const { createSessionStateMessage: createSessionStateMessage2 } = await import("./protocol-GKGDN64O.js");
5851
5838
  const eventStore = getEventStore2();
5852
5839
  const events = eventStore.getEvents(sessionId);
5853
5840
  const messages = buildMessagesFromStoredEvents2(events);
@@ -5864,7 +5851,7 @@ async function createServerHandle(config4) {
5864
5851
  if (!callId || !answer) {
5865
5852
  return res.status(400).json({ error: "callId and answer are required" });
5866
5853
  }
5867
- const { provideAnswer: provideAnswer2 } = await import("./tools-ASM4FNUG.js");
5854
+ const { provideAnswer: provideAnswer2 } = await import("./tools-UBURWNND.js");
5868
5855
  const found = provideAnswer2(callId, answer);
5869
5856
  if (!found) {
5870
5857
  return res.status(404).json({ error: "No pending question with that ID" });
@@ -5900,14 +5887,14 @@ async function createServerHandle(config4) {
5900
5887
  if (!session) {
5901
5888
  return res.status(404).json({ error: "Session not found" });
5902
5889
  }
5903
- const { stopSessionExecution } = await import("./chat-handler-N3FYFHYQ.js");
5904
- const { cancelQuestionsForSession, cancelPathConfirmationsForSession } = await import("./tools-ASM4FNUG.js");
5890
+ const { stopSessionExecution } = await import("./chat-handler-5KT442LF.js");
5891
+ const { cancelQuestionsForSession, cancelPathConfirmationsForSession } = await import("./tools-UBURWNND.js");
5905
5892
  stopSessionExecution(sessionId, sessionManager);
5906
5893
  abortSession(sessionId);
5907
5894
  cancelQuestionsForSession(sessionId, "Session stopped by user");
5908
5895
  cancelPathConfirmationsForSession(sessionId, "Session stopped by user");
5909
5896
  sessionManager.clearMessageQueue(sessionId);
5910
- const eventStore = (await import("./events-Z2SXIOUX.js")).getEventStore();
5897
+ const eventStore = (await import("./events-QBKF32WS.js")).getEventStore();
5911
5898
  eventStore.append(sessionId, { type: "running.changed", data: { isRunning: false } });
5912
5899
  res.json({ success: true });
5913
5900
  });
@@ -5921,7 +5908,7 @@ async function createServerHandle(config4) {
5921
5908
  if (typeof messageIndex !== "number" || messageIndex < 0) {
5922
5909
  return res.status(400).json({ error: "messageIndex must be a non-negative number" });
5923
5910
  }
5924
- const { truncateSessionMessages } = await import("./events-Z2SXIOUX.js");
5911
+ const { truncateSessionMessages } = await import("./events-QBKF32WS.js");
5925
5912
  truncateSessionMessages(sessionId, messageIndex);
5926
5913
  res.json({ success: true });
5927
5914
  });
@@ -5939,7 +5926,7 @@ async function createServerHandle(config4) {
5939
5926
  if (!msg) {
5940
5927
  return res.status(400).json({ error: "Message not found at this index" });
5941
5928
  }
5942
- const { truncateSessionMessages } = await import("./events-Z2SXIOUX.js");
5929
+ const { truncateSessionMessages } = await import("./events-QBKF32WS.js");
5943
5930
  truncateSessionMessages(sessionId, messageIndex - 1);
5944
5931
  sessionManager.queueMessage(sessionId, "asap", msg.content, msg.attachments, msg.messageKind);
5945
5932
  res.json({ success: true });
@@ -5971,7 +5958,7 @@ async function createServerHandle(config4) {
5971
5958
  res.json({ accepted: true });
5972
5959
  });
5973
5960
  app.get("/api/settings", async (req, res) => {
5974
- const { getSetting, SETTINGS_DEFAULTS } = await import("./settings-TTYCUHWU.js");
5961
+ const { getSetting, SETTINGS_DEFAULTS } = await import("./settings-4334IX63.js");
5975
5962
  const keysParam = req.query["keys"];
5976
5963
  if (!keysParam) {
5977
5964
  return res.status(400).json({ error: "keys query parameter is required" });
@@ -5984,19 +5971,19 @@ async function createServerHandle(config4) {
5984
5971
  res.json(result);
5985
5972
  });
5986
5973
  app.get("/api/settings/:key", async (req, res) => {
5987
- const { getSetting, SETTINGS_DEFAULTS } = await import("./settings-TTYCUHWU.js");
5974
+ const { getSetting, SETTINGS_DEFAULTS } = await import("./settings-4334IX63.js");
5988
5975
  const key = req.params.key;
5989
5976
  const value = getSetting(key) ?? SETTINGS_DEFAULTS[key] ?? null;
5990
5977
  res.json({ key, value });
5991
5978
  });
5992
5979
  app.get("/api/settings/:key", async (req, res) => {
5993
- const { getSetting, SETTINGS_DEFAULTS } = await import("./settings-TTYCUHWU.js");
5980
+ const { getSetting, SETTINGS_DEFAULTS } = await import("./settings-4334IX63.js");
5994
5981
  const key = req.params.key;
5995
5982
  const value = getSetting(key) ?? SETTINGS_DEFAULTS[key] ?? null;
5996
5983
  res.json({ key, value });
5997
5984
  });
5998
5985
  app.put("/api/settings/:key", async (req, res) => {
5999
- const { setSetting } = await import("./settings-TTYCUHWU.js");
5986
+ const { setSetting } = await import("./settings-4334IX63.js");
6000
5987
  const key = req.params.key;
6001
5988
  const { value } = req.body;
6002
5989
  if (value === void 0) {
@@ -6416,7 +6403,7 @@ async function createServerHandle(config4) {
6416
6403
  providerManager
6417
6404
  );
6418
6405
  const wss = wssExports.wss;
6419
- const { QueueProcessor } = await import("./processor-V34TTHI2.js");
6406
+ const { QueueProcessor } = await import("./processor-I3WKCUAE.js");
6420
6407
  const queueProcessor = new QueueProcessor({
6421
6408
  sessionManager,
6422
6409
  providerManager,
@@ -6488,4 +6475,4 @@ export {
6488
6475
  createServerHandle,
6489
6476
  createServer
6490
6477
  };
6491
- //# sourceMappingURL=chunk-LC6HW727.js.map
6478
+ //# sourceMappingURL=chunk-KOQOPNE5.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createServerMessage,
3
3
  isClientMessage
4
- } from "./chunk-ERFRUQQR.js";
4
+ } from "./chunk-X3GA33UG.js";
5
5
 
6
6
  // src/server/ws/protocol.ts
7
7
  function enrichMessagesWithToolResults(messages) {
@@ -87,9 +87,6 @@ function createChatToolOutputMessage(messageId, callId, output, stream) {
87
87
  function createChatTodoMessage(todos) {
88
88
  return createServerMessage("chat.todo", { todos });
89
89
  }
90
- function createChatSummaryMessage(summary) {
91
- return createServerMessage("chat.summary", { summary });
92
- }
93
90
  function createChatProgressMessage(message, phase) {
94
91
  return createServerMessage("chat.progress", { message, ...phase ? { phase } : {} });
95
92
  }
@@ -304,7 +301,6 @@ export {
304
301
  createChatToolResultMessage,
305
302
  createChatToolOutputMessage,
306
303
  createChatTodoMessage,
307
- createChatSummaryMessage,
308
304
  createChatProgressMessage,
309
305
  createChatFormatRetryMessage,
310
306
  createChatMessageMessage,
@@ -326,4 +322,4 @@ export {
326
322
  createQueueStateMessage,
327
323
  storedEventToServerMessage
328
324
  };
329
- //# sourceMappingURL=chunk-T67WWSM7.js.map
325
+ //# sourceMappingURL=chunk-MEOKWBXX.js.map