openfox 1.6.96 → 1.6.98

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.
@@ -2,14 +2,14 @@ import {
2
2
  maybeAutoCompactContext,
3
3
  performManualContextCompaction,
4
4
  resolveCompactionStatsIdentity
5
- } from "./chunk-BK7QEUQF.js";
6
- import "./chunk-QWGO6DE3.js";
5
+ } from "./chunk-KR7N2ONG.js";
6
+ import "./chunk-ROWFVGB6.js";
7
7
  import "./chunk-ZHBL5G5X.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-RREZKLOD.js";
12
+ import "./chunk-7Y3HFCTD.js";
13
13
  import "./chunk-5GVCNVKV.js";
14
14
  import "./chunk-XVWVAWSG.js";
15
15
  import "./chunk-T67WWSM7.js";
@@ -24,4 +24,4 @@ export {
24
24
  performManualContextCompaction,
25
25
  resolveCompactionStatsIdentity
26
26
  };
27
- //# sourceMappingURL=auto-compaction-M2LTRUXL.js.map
27
+ //# sourceMappingURL=auto-compaction-ZYKJQPGM.js.map
@@ -5,12 +5,12 @@ import {
5
5
  generateSessionName,
6
6
  getSessionMessageCount,
7
7
  needsNameGenerationCheck
8
- } from "./chunk-QAN42RJQ.js";
8
+ } from "./chunk-NVVKBL4S.js";
9
9
  import {
10
10
  runChatTurn
11
- } from "./chunk-OBJE2622.js";
12
- import "./chunk-BK7QEUQF.js";
13
- import "./chunk-QWGO6DE3.js";
11
+ } from "./chunk-K7F73QLL.js";
12
+ import "./chunk-KR7N2ONG.js";
13
+ import "./chunk-ROWFVGB6.js";
14
14
  import "./chunk-ZHBL5G5X.js";
15
15
  import "./chunk-DL6ZILAF.js";
16
16
  import "./chunk-PBGOZMVY.js";
@@ -18,7 +18,7 @@ import "./chunk-VRGRAQDG.js";
18
18
  import "./chunk-HGAMIPFO.js";
19
19
  import {
20
20
  getEventStore
21
- } from "./chunk-RREZKLOD.js";
21
+ } from "./chunk-7Y3HFCTD.js";
22
22
  import "./chunk-5GVCNVKV.js";
23
23
  import "./chunk-XVWVAWSG.js";
24
24
  import {
@@ -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-M2LTRUXL.js");
64
+ const { maybeAutoCompactContext } = await import("./auto-compaction-ZYKJQPGM.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-WEG7W3OY.js.map
178
+ //# sourceMappingURL=chat-handler-N3FYFHYQ.js.map
@@ -1140,14 +1140,14 @@ function truncateSessionMessages(sessionId, messageIndex) {
1140
1140
  const snapshot = snapshotEvent.data;
1141
1141
  const messages = snapshot.messages;
1142
1142
  const lastKept = messageIndex + 1;
1143
- if (lastKept < 1 || lastKept >= messages.length) return;
1143
+ if (lastKept < 0 || lastKept >= messages.length) return;
1144
1144
  snapshot.messages = messages.slice(0, lastKept);
1145
1145
  eventStore.deleteEventsAfterSeq(sessionId, snapshotEvent.seq);
1146
1146
  eventStore.append(sessionId, {
1147
1147
  type: "turn.snapshot",
1148
1148
  data: snapshot
1149
1149
  });
1150
- const removed = messages.length - messageIndex;
1150
+ const removed = messages.length - lastKept;
1151
1151
  updateSessionMessageCount(sessionId, -removed);
1152
1152
  }
1153
1153
  function compactContext(sessionId, summary, beforeTokens) {
@@ -1283,4 +1283,4 @@ export {
1283
1283
  compactContext,
1284
1284
  getRecentUserPromptsForSession
1285
1285
  };
1286
- //# sourceMappingURL=chunk-RREZKLOD.js.map
1286
+ //# sourceMappingURL=chunk-7Y3HFCTD.js.map
@@ -191,7 +191,7 @@ async function runCli(options) {
191
191
  if (!configExists) {
192
192
  await runNetworkSetup(mode);
193
193
  }
194
- const { runServe } = await import("./serve-O5JK3PNM.js");
194
+ const { runServe } = await import("./serve-FD3A43KR.js");
195
195
  const serveOptions = { mode };
196
196
  if (values.port) serveOptions.port = parseInt(values.port);
197
197
  if (values["no-browser"] === true) serveOptions.openBrowser = false;
@@ -203,4 +203,4 @@ async function runCli(options) {
203
203
  export {
204
204
  runCli
205
205
  };
206
- //# sourceMappingURL=chunk-2BEPXMWB.js.map
206
+ //# sourceMappingURL=chunk-I2EVVAG4.js.map
@@ -13,11 +13,11 @@ import {
13
13
  getToolRegistryForAgent,
14
14
  loadAllAgentsDefault,
15
15
  runTopLevelAgentLoop
16
- } from "./chunk-BK7QEUQF.js";
16
+ } from "./chunk-KR7N2ONG.js";
17
17
  import {
18
18
  getCurrentContextWindowId,
19
19
  getEventStore
20
- } from "./chunk-RREZKLOD.js";
20
+ } from "./chunk-7Y3HFCTD.js";
21
21
  import {
22
22
  buildSnapshotFromSessionState
23
23
  } from "./chunk-XVWVAWSG.js";
@@ -327,4 +327,4 @@ export {
327
327
  runBuilderTurn,
328
328
  runVerifierTurn
329
329
  };
330
- //# sourceMappingURL=chunk-OBJE2622.js.map
330
+ //# sourceMappingURL=chunk-K7F73QLL.js.map
@@ -2,7 +2,7 @@ import {
2
2
  SETTINGS_KEYS,
3
3
  deleteSetting,
4
4
  getSetting
5
- } from "./chunk-QWGO6DE3.js";
5
+ } from "./chunk-ROWFVGB6.js";
6
6
  import {
7
7
  getProject
8
8
  } from "./chunk-ZHBL5G5X.js";
@@ -31,7 +31,7 @@ import {
31
31
  import {
32
32
  getCurrentContextWindowId,
33
33
  getEventStore
34
- } from "./chunk-RREZKLOD.js";
34
+ } from "./chunk-7Y3HFCTD.js";
35
35
  import {
36
36
  buildContextMessagesFromEventHistory,
37
37
  foldContextState,
@@ -3880,7 +3880,7 @@ var callSubAgentTool = {
3880
3880
  };
3881
3881
  }
3882
3882
  try {
3883
- const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-UFAPVX45.js");
3883
+ const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-ASM4FNUG.js");
3884
3884
  const toolRegistry = getToolRegistryForAgent2(agentDef);
3885
3885
  const turnMetrics = new TurnMetrics();
3886
3886
  const result = await executeSubAgent({
@@ -5078,4 +5078,4 @@ export {
5078
5078
  getToolRegistryForAgent,
5079
5079
  createToolRegistry
5080
5080
  };
5081
- //# sourceMappingURL=chunk-BK7QEUQF.js.map
5081
+ //# sourceMappingURL=chunk-KR7N2ONG.js.map