openfox 1.6.73 → 1.6.74

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,7 +2,7 @@ import {
2
2
  maybeAutoCompactContext,
3
3
  performManualContextCompaction,
4
4
  resolveCompactionStatsIdentity
5
- } from "./chunk-ODUSHSK2.js";
5
+ } from "./chunk-ETIXH35K.js";
6
6
  import "./chunk-GQZGIMJO.js";
7
7
  import "./chunk-7JPKRM6M.js";
8
8
  import "./chunk-RBPOAAIZ.js";
@@ -24,4 +24,4 @@ export {
24
24
  performManualContextCompaction,
25
25
  resolveCompactionStatsIdentity
26
26
  };
27
- //# sourceMappingURL=auto-compaction-HQHEK75L.js.map
27
+ //# sourceMappingURL=auto-compaction-OW4P2QWQ.js.map
@@ -8,8 +8,8 @@ import {
8
8
  } from "./chunk-4CQ7CUQ6.js";
9
9
  import {
10
10
  runChatTurn
11
- } from "./chunk-EGIJKK4U.js";
12
- import "./chunk-ODUSHSK2.js";
11
+ } from "./chunk-IA4O65CR.js";
12
+ import "./chunk-ETIXH35K.js";
13
13
  import "./chunk-GQZGIMJO.js";
14
14
  import "./chunk-7JPKRM6M.js";
15
15
  import "./chunk-RBPOAAIZ.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-HQHEK75L.js");
64
+ const { maybeAutoCompactContext } = await import("./auto-compaction-OW4P2QWQ.js");
65
65
  await maybeAutoCompactContext({
66
66
  sessionManager,
67
67
  sessionId,
@@ -170,4 +170,4 @@ export {
170
170
  startChatSession,
171
171
  stopSessionExecution
172
172
  };
173
- //# sourceMappingURL=chat-handler-NNDQSDFI.js.map
173
+ //# sourceMappingURL=chat-handler-KYMMXPP6.js.map
@@ -190,7 +190,7 @@ async function runCli(options) {
190
190
  if (!configExists) {
191
191
  await runNetworkSetup(mode);
192
192
  }
193
- const { runServe } = await import("./serve-YCFUOOGT.js");
193
+ const { runServe } = await import("./serve-W6CHNSRO.js");
194
194
  await runServe({
195
195
  mode,
196
196
  port: values.port ? parseInt(values.port) : void 0,
@@ -203,4 +203,4 @@ async function runCli(options) {
203
203
  export {
204
204
  runCli
205
205
  };
206
- //# sourceMappingURL=chunk-PPSXSDMY.js.map
206
+ //# sourceMappingURL=chunk-CLBUWGUB.js.map
@@ -2075,7 +2075,17 @@ Make sure whitespace and indentation match exactly.`
2075
2075
  newContent: edit.newContent
2076
2076
  }))
2077
2077
  }));
2078
- const replacedContent = replaceAll ? normalizedContent.replaceAll(normalizedOldString, args.new_string) : normalizedContent.replace(normalizedOldString, args.new_string);
2078
+ const normalizedNewString = normalizeToLF(args.new_string);
2079
+ let replacedContent;
2080
+ if (replaceAll) {
2081
+ replacedContent = normalizedContent.replaceAll(normalizedOldString, normalizedNewString);
2082
+ } else {
2083
+ const index = normalizedContent.indexOf(normalizedOldString);
2084
+ if (index === -1) {
2085
+ return helpers.error("old_string not found in file (unexpected)");
2086
+ }
2087
+ replacedContent = normalizedContent.slice(0, index) + normalizedNewString + normalizedContent.slice(index + normalizedOldString.length);
2088
+ }
2079
2089
  const newContent = replacedContent.replace(/\n/g, fileLineEnding === "crlf" ? "\r\n" : fileLineEnding === "cr" ? "\r" : "\n");
2080
2090
  await writeFile3(fullPath, newContent, "utf-8");
2081
2091
  let output = `Successfully replaced ${replaceAll ? occurrences : 1} occurrence(s) in ${args.path}`;
@@ -3381,7 +3391,7 @@ var callSubAgentTool = {
3381
3391
  };
3382
3392
  }
3383
3393
  try {
3384
- const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-5MCH72FH.js");
3394
+ const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-RUAY6EVI.js");
3385
3395
  const toolRegistry = getToolRegistryForAgent2(agentDef);
3386
3396
  const turnMetrics = new TurnMetrics();
3387
3397
  const result = await executeSubAgent({
@@ -4535,4 +4545,4 @@ export {
4535
4545
  getToolRegistryForAgent,
4536
4546
  createToolRegistry
4537
4547
  };
4538
- //# sourceMappingURL=chunk-ODUSHSK2.js.map
4548
+ //# sourceMappingURL=chunk-ETIXH35K.js.map
@@ -13,7 +13,7 @@ import {
13
13
  getToolRegistryForAgent,
14
14
  loadAllAgentsDefault,
15
15
  runTopLevelAgentLoop
16
- } from "./chunk-ODUSHSK2.js";
16
+ } from "./chunk-ETIXH35K.js";
17
17
  import {
18
18
  getCurrentContextWindowId,
19
19
  getEventStore
@@ -295,4 +295,4 @@ export {
295
295
  runBuilderTurn,
296
296
  runVerifierTurn
297
297
  };
298
- //# sourceMappingURL=chunk-EGIJKK4U.js.map
298
+ //# sourceMappingURL=chunk-IA4O65CR.js.map
@@ -2,7 +2,7 @@ import {
2
2
  createVerifierNudgeConfig,
3
3
  runBuilderTurn,
4
4
  runChatTurn
5
- } from "./chunk-EGIJKK4U.js";
5
+ } from "./chunk-IA4O65CR.js";
6
6
  import {
7
7
  TurnMetrics,
8
8
  agentExists,
@@ -37,7 +37,7 @@ import {
37
37
  setSkillEnabled,
38
38
  skillExists,
39
39
  spawnShellProcess
40
- } from "./chunk-ODUSHSK2.js";
40
+ } from "./chunk-ETIXH35K.js";
41
41
  import {
42
42
  getProject
43
43
  } from "./chunk-7JPKRM6M.js";
@@ -5014,7 +5014,7 @@ function createTerminalRoutes() {
5014
5014
  }
5015
5015
 
5016
5016
  // src/constants.ts
5017
- var VERSION = "1.6.73";
5017
+ var VERSION = "1.6.74";
5018
5018
 
5019
5019
  // src/server/index.ts
5020
5020
  var __dirname2 = dirname5(fileURLToPath4(import.meta.url));
@@ -5317,7 +5317,7 @@ async function createServerHandle(config) {
5317
5317
  if (!callId || approved === void 0) {
5318
5318
  return res.status(400).json({ error: "callId and approved are required" });
5319
5319
  }
5320
- const { providePathConfirmation } = await import("./tools-5MCH72FH.js");
5320
+ const { providePathConfirmation } = await import("./tools-RUAY6EVI.js");
5321
5321
  const result = providePathConfirmation(callId, approved, alwaysAllow);
5322
5322
  if (!result.found) {
5323
5323
  return res.status(404).json({ error: "No pending path confirmation with that ID" });
@@ -5341,7 +5341,7 @@ async function createServerHandle(config) {
5341
5341
  if (!callId || !answer) {
5342
5342
  return res.status(400).json({ error: "callId and answer are required" });
5343
5343
  }
5344
- const { provideAnswer: provideAnswer2 } = await import("./tools-5MCH72FH.js");
5344
+ const { provideAnswer: provideAnswer2 } = await import("./tools-RUAY6EVI.js");
5345
5345
  const found = provideAnswer2(callId, answer);
5346
5346
  if (!found) {
5347
5347
  return res.status(404).json({ error: "No pending question with that ID" });
@@ -5377,8 +5377,8 @@ async function createServerHandle(config) {
5377
5377
  if (!session) {
5378
5378
  return res.status(404).json({ error: "Session not found" });
5379
5379
  }
5380
- const { stopSessionExecution } = await import("./chat-handler-NNDQSDFI.js");
5381
- const { cancelQuestionsForSession, cancelPathConfirmationsForSession } = await import("./tools-5MCH72FH.js");
5380
+ const { stopSessionExecution } = await import("./chat-handler-KYMMXPP6.js");
5381
+ const { cancelQuestionsForSession, cancelPathConfirmationsForSession } = await import("./tools-RUAY6EVI.js");
5382
5382
  stopSessionExecution(sessionId, sessionManager);
5383
5383
  abortSession(sessionId);
5384
5384
  cancelQuestionsForSession(sessionId, "Session stopped by user");
@@ -5852,7 +5852,7 @@ async function createServerHandle(config) {
5852
5852
  providerManager
5853
5853
  );
5854
5854
  const wss = wssExports.wss;
5855
- const { QueueProcessor } = await import("./processor-HF5SS6CR.js");
5855
+ const { QueueProcessor } = await import("./processor-23O4HPSS.js");
5856
5856
  const queueProcessor = new QueueProcessor({
5857
5857
  sessionManager,
5858
5858
  providerManager,
@@ -5927,4 +5927,4 @@ export {
5927
5927
  createServerHandle,
5928
5928
  createServer
5929
5929
  };
5930
- //# sourceMappingURL=chunk-RTOWT3GF.js.map
5930
+ //# sourceMappingURL=chunk-ODOA4RNN.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-PPSXSDMY.js";
4
+ } from "../chunk-CLBUWGUB.js";
5
5
  import {
6
6
  logger
7
7
  } from "../chunk-PNBH3RAX.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-PPSXSDMY.js";
4
+ } from "../chunk-CLBUWGUB.js";
5
5
  import {
6
6
  logger
7
7
  } from "../chunk-PNBH3RAX.js";
@@ -3,7 +3,7 @@ import {
3
3
  runBuilderTurn,
4
4
  runChatTurn,
5
5
  runVerifierTurn
6
- } from "./chunk-EGIJKK4U.js";
6
+ } from "./chunk-IA4O65CR.js";
7
7
  import {
8
8
  TurnMetrics,
9
9
  createChatDoneEvent,
@@ -11,7 +11,7 @@ import {
11
11
  createMessageStartEvent,
12
12
  createToolCallEvent,
13
13
  createToolResultEvent
14
- } from "./chunk-ODUSHSK2.js";
14
+ } from "./chunk-ETIXH35K.js";
15
15
  import "./chunk-GQZGIMJO.js";
16
16
  import "./chunk-7JPKRM6M.js";
17
17
  import "./chunk-RBPOAAIZ.js";
@@ -40,4 +40,4 @@ export {
40
40
  runChatTurn,
41
41
  runVerifierTurn
42
42
  };
43
- //# sourceMappingURL=orchestrator-T2EQZJS5.js.map
43
+ //# sourceMappingURL=orchestrator-QP4O7MUM.js.map
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openfox",
3
- "version": "1.6.73",
3
+ "version": "1.6.74",
4
4
  "description": "Local-LLM-first agentic coding assistant",
5
5
  "type": "module",
6
6
  "bin": {
@@ -173,7 +173,7 @@ var QueueProcessor = class {
173
173
  backend: provider?.backend ?? llmClient.getBackend(),
174
174
  model: llmClient.getModel()
175
175
  };
176
- const { runChatTurn } = await import("./orchestrator-T2EQZJS5.js");
176
+ const { runChatTurn } = await import("./orchestrator-QP4O7MUM.js");
177
177
  const runChatTurnParams = buildRunChatTurnParams({
178
178
  sessionManager,
179
179
  sessionId,
@@ -210,4 +210,4 @@ var QueueProcessor = class {
210
210
  export {
211
211
  QueueProcessor
212
212
  };
213
- //# sourceMappingURL=processor-HF5SS6CR.js.map
213
+ //# sourceMappingURL=processor-23O4HPSS.js.map
@@ -6,9 +6,9 @@ import {
6
6
  import {
7
7
  VERSION,
8
8
  createServer
9
- } from "./chunk-RTOWT3GF.js";
10
- import "./chunk-EGIJKK4U.js";
11
- import "./chunk-ODUSHSK2.js";
9
+ } from "./chunk-ODOA4RNN.js";
10
+ import "./chunk-IA4O65CR.js";
11
+ import "./chunk-ETIXH35K.js";
12
12
  import "./chunk-GQZGIMJO.js";
13
13
  import "./chunk-7JPKRM6M.js";
14
14
  import "./chunk-RBPOAAIZ.js";
@@ -188,4 +188,4 @@ async function runServe(options) {
188
188
  export {
189
189
  runServe
190
190
  };
191
- //# sourceMappingURL=serve-YCFUOOGT.js.map
191
+ //# sourceMappingURL=serve-W6CHNSRO.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  createServer,
3
3
  createServerHandle
4
- } from "../chunk-RTOWT3GF.js";
5
- import "../chunk-EGIJKK4U.js";
6
- import "../chunk-ODUSHSK2.js";
4
+ } from "../chunk-ODOA4RNN.js";
5
+ import "../chunk-IA4O65CR.js";
6
+ import "../chunk-ETIXH35K.js";
7
7
  import "../chunk-GQZGIMJO.js";
8
8
  import "../chunk-7JPKRM6M.js";
9
9
  import "../chunk-RBPOAAIZ.js";
@@ -11,7 +11,7 @@ import {
11
11
  requestPathAccess,
12
12
  stepDoneTool,
13
13
  validateToolAction
14
- } from "./chunk-ODUSHSK2.js";
14
+ } from "./chunk-ETIXH35K.js";
15
15
  import "./chunk-GQZGIMJO.js";
16
16
  import "./chunk-7JPKRM6M.js";
17
17
  import "./chunk-RBPOAAIZ.js";
@@ -49,4 +49,4 @@ export {
49
49
  stepDoneTool,
50
50
  validateToolAction
51
51
  };
52
- //# sourceMappingURL=tools-5MCH72FH.js.map
52
+ //# sourceMappingURL=tools-RUAY6EVI.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openfox",
3
- "version": "1.6.73",
3
+ "version": "1.6.74",
4
4
  "description": "Local-LLM-first agentic coding assistant",
5
5
  "type": "module",
6
6
  "bin": {