openfox 2.0.71 → 2.0.73

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 (58) hide show
  1. package/dist/agent-defaults/builder.agent.md +1 -1
  2. package/dist/agent-defaults/planner.agent.md +1 -1
  3. package/dist/{chat-handler-IKLQ3ZUN.js → chat-handler-LK5RUAGO.js} +15 -15
  4. package/dist/{chunk-NEL2REUM.js → chunk-2DCJERYX.js} +4 -4
  5. package/dist/{chunk-TFDK6VSG.js → chunk-6XKM25OT.js} +13 -13
  6. package/dist/{chunk-TQGGMWS6.js → chunk-CHPRGEY5.js} +3 -3
  7. package/dist/{chunk-C3VLGVSQ.js → chunk-DJASQ2ZB.js} +11 -2
  8. package/dist/{chunk-4QBDV6LX.js → chunk-E5LLEO3C.js} +2 -2
  9. package/dist/{chunk-OLXHRPAD.js → chunk-EYXDM2FY.js} +243 -285
  10. package/dist/{chunk-Y4YESMVA.js → chunk-GMF36EZ3.js} +81 -92
  11. package/dist/{chunk-GMXKJGJ2.js → chunk-I4RWK2L2.js} +8 -4
  12. package/dist/{chunk-6V7DU7ID.js → chunk-KKRLQH6F.js} +3 -3
  13. package/dist/chunk-NE7OWIIO.js +7 -0
  14. package/dist/{chunk-F4PMNP7S.js → chunk-NOU2QIL5.js} +3 -2
  15. package/dist/{chunk-X7OCC37J.js → chunk-O2BE7KVQ.js} +8 -8
  16. package/dist/{chunk-PVUBCGAT.js → chunk-PYB2UEC3.js} +10 -4
  17. package/dist/{chunk-XUPKS5FL.js → chunk-QNKXZH3Z.js} +2 -2
  18. package/dist/{chunk-X5DOUA3Z.js → chunk-S7O77CVO.js} +2 -2
  19. package/dist/{chunk-Z42YTK3O.js → chunk-TK4BZIXA.js} +34 -23
  20. package/dist/{chunk-KXVFHMSM.js → chunk-UV3EMWL4.js} +2 -2
  21. package/dist/chunk-X2Y3AJPP.js +216 -0
  22. package/dist/{chunk-RKD2FML3.js → chunk-XWBNYU2L.js} +2 -2
  23. package/dist/cli/dev.js +1 -1
  24. package/dist/cli/index.js +1 -1
  25. package/dist/{compactor-MXXF5WQR.js → compactor-4UKYWC5F.js} +8 -8
  26. package/dist/{events-CDQ4HASP.js → events-AEQ6GQXI.js} +4 -4
  27. package/dist/{folding-V2K34EGN.js → folding-ONH3D4OK.js} +2 -2
  28. package/dist/{inspect-proxy-OVEFBJ26.js → inspect-proxy-PHVZBZUO.js} +4 -4
  29. package/dist/{manager-EHIQCIUP.js → manager-24C2AXVF.js} +5 -5
  30. package/dist/{orchestrator-YGCZZNNV.js → orchestrator-RTZVMWQV.js} +14 -14
  31. package/dist/package.json +1 -1
  32. package/dist/{platform-AB3GIEGO.js → platform-XQ7BS3KQ.js} +4 -4
  33. package/dist/{processor-K6UPVMIP.js → processor-3O26I7DO.js} +15 -15
  34. package/dist/{project-creator-EMGRSPYS.js → project-creator-FQRBN3RG.js} +3 -3
  35. package/dist/{projects-7HSBZY2D.js → projects-LHRNCUGW.js} +3 -3
  36. package/dist/{protocol-CTNE3ANP.js → protocol-4QFU7WAI.js} +2 -2
  37. package/dist/{protocol-DIhV-tAc.d.ts → protocol-DGQWVFcP.d.ts} +1 -1
  38. package/dist/provider/index.d.ts +4 -4
  39. package/dist/{serve-5IOKFKGL.js → serve-I6K7A7RL.js} +18 -18
  40. package/dist/server/index.d.ts +12 -22
  41. package/dist/server/index.js +17 -17
  42. package/dist/{server-T5QDCUBN.js → server-G2J4RAXL.js} +16 -16
  43. package/dist/{settings-6ZPWOBWL.js → settings-PFXRYXZU.js} +3 -3
  44. package/dist/shared/index.d.ts +3 -3
  45. package/dist/{tools-K3SNGBI2.js → tools-X52DFUS6.js} +13 -13
  46. package/dist/{types-BsfYpEai.d.ts → types-C4cG9CtC.d.ts} +3 -2
  47. package/dist/{types-CBC6lLqc.d.ts → types-DSZhFA8O.d.ts} +1 -1
  48. package/dist/{update-734IDLKT.js → update-RJB4GPHE.js} +2 -2
  49. package/dist/web/assets/index-C7SW16F7.js +305 -0
  50. package/dist/web/assets/{index-BVTG7SRG.css → index-CmechlaK.css} +1 -1
  51. package/dist/web/index.html +2 -2
  52. package/dist/web/sw.js +1 -1
  53. package/dist/workspace-ET3FHZYN.js +32 -0
  54. package/package.json +1 -1
  55. package/dist/chunk-7NMOWPNY.js +0 -7
  56. package/dist/chunk-VLV3XWZS.js +0 -191
  57. package/dist/web/assets/index-HTzupfR0.js +0 -305
  58. package/dist/worktree-6U45P63P.js +0 -30
@@ -18,7 +18,7 @@ allowedTools:
18
18
  - dev_server
19
19
  - background_process
20
20
  - mcp_config
21
- - worktree
21
+ - workspace
22
22
  ---
23
23
 
24
24
  # Build Mode
@@ -16,7 +16,7 @@ allowedTools:
16
16
  - background_process
17
17
  - mcp_config
18
18
  - dev_server
19
- - worktree
19
+ - workspace
20
20
  ---
21
21
 
22
22
  # Plan Mode
@@ -2,33 +2,33 @@ import {
2
2
  buildRunChatTurnParams,
3
3
  finalizeTurnCompletion,
4
4
  generateSessionNameForSession
5
- } from "./chunk-NEL2REUM.js";
5
+ } from "./chunk-2DCJERYX.js";
6
6
  import {
7
7
  runChatTurn
8
- } from "./chunk-X7OCC37J.js";
9
- import "./chunk-Y4YESMVA.js";
10
- import "./chunk-VLV3XWZS.js";
8
+ } from "./chunk-O2BE7KVQ.js";
9
+ import "./chunk-GMF36EZ3.js";
10
+ import "./chunk-X2Y3AJPP.js";
11
11
  import "./chunk-WGMJCFCE.js";
12
12
  import "./chunk-EU3WWTFH.js";
13
- import "./chunk-RKD2FML3.js";
14
- import "./chunk-4QBDV6LX.js";
15
- import "./chunk-KXVFHMSM.js";
16
- import "./chunk-PVUBCGAT.js";
13
+ import "./chunk-XWBNYU2L.js";
14
+ import "./chunk-E5LLEO3C.js";
15
+ import "./chunk-UV3EMWL4.js";
16
+ import "./chunk-PYB2UEC3.js";
17
17
  import "./chunk-I72ACQ6R.js";
18
18
  import "./chunk-NWO6GRYE.js";
19
19
  import "./chunk-UN26GIQG.js";
20
20
  import {
21
21
  getEventStore
22
- } from "./chunk-TFDK6VSG.js";
23
- import "./chunk-C3VLGVSQ.js";
22
+ } from "./chunk-6XKM25OT.js";
23
+ import "./chunk-DJASQ2ZB.js";
24
24
  import {
25
25
  createChatMessageMessage,
26
26
  createPhaseChangedMessage,
27
27
  createSessionRunningMessage
28
- } from "./chunk-F4PMNP7S.js";
29
- import "./chunk-X5DOUA3Z.js";
30
- import "./chunk-XUPKS5FL.js";
31
- import "./chunk-GMXKJGJ2.js";
28
+ } from "./chunk-NOU2QIL5.js";
29
+ import "./chunk-S7O77CVO.js";
30
+ import "./chunk-QNKXZH3Z.js";
31
+ import "./chunk-I4RWK2L2.js";
32
32
  import "./chunk-J2GP3J3X.js";
33
33
  import "./chunk-V4IE7HJY.js";
34
34
  import "./chunk-YHEQTVFV.js";
@@ -158,4 +158,4 @@ export {
158
158
  startChatSession,
159
159
  stopSessionExecution
160
160
  };
161
- //# sourceMappingURL=chat-handler-IKLQ3ZUN.js.map
161
+ //# sourceMappingURL=chat-handler-LK5RUAGO.js.map
@@ -5,15 +5,15 @@ import {
5
5
  getEventStore,
6
6
  getRuntimeConfig,
7
7
  updateSessionMetadata
8
- } from "./chunk-TFDK6VSG.js";
8
+ } from "./chunk-6XKM25OT.js";
9
9
  import {
10
10
  buildMessagesFromStoredEvents,
11
11
  foldPendingConfirmations
12
- } from "./chunk-C3VLGVSQ.js";
12
+ } from "./chunk-DJASQ2ZB.js";
13
13
  import {
14
14
  createContextStateMessage,
15
15
  createSessionStateMessage
16
- } from "./chunk-F4PMNP7S.js";
16
+ } from "./chunk-NOU2QIL5.js";
17
17
  import {
18
18
  logger
19
19
  } from "./chunk-K44MW7JJ.js";
@@ -184,4 +184,4 @@ export {
184
184
  buildRunChatTurnParams,
185
185
  generateSessionNameForSession
186
186
  };
187
- //# sourceMappingURL=chunk-NEL2REUM.js.map
187
+ //# sourceMappingURL=chunk-2DCJERYX.js.map
@@ -5,10 +5,10 @@ import {
5
5
  foldContextState,
6
6
  foldSessionState,
7
7
  spreadOptionalMessageFields
8
- } from "./chunk-C3VLGVSQ.js";
8
+ } from "./chunk-DJASQ2ZB.js";
9
9
  import {
10
10
  getDatabase
11
- } from "./chunk-GMXKJGJ2.js";
11
+ } from "./chunk-I4RWK2L2.js";
12
12
  import {
13
13
  logger
14
14
  } from "./chunk-K44MW7JJ.js";
@@ -680,21 +680,21 @@ function getProjectDangerLevel(projectId) {
680
680
  return "normal";
681
681
  }
682
682
  }
683
- function createSession(projectId, workdir, title, providerId, providerModel, worktree) {
683
+ function createSession(projectId, workdir, title, providerId, providerModel, workspace) {
684
684
  const db = getDatabase();
685
685
  const now = (/* @__PURE__ */ new Date()).toISOString();
686
686
  const id = crypto.randomUUID();
687
687
  const dangerLevel = getProjectDangerLevel(projectId);
688
688
  db.prepare(
689
689
  `
690
- INSERT INTO sessions (id, project_id, workdir, worktree, phase, mode, workflow_phase, is_running, created_at, updated_at, title, provider_id, provider_model, danger_level)
690
+ INSERT INTO sessions (id, project_id, workdir, workspace, phase, mode, workflow_phase, is_running, created_at, updated_at, title, provider_id, provider_model, danger_level)
691
691
  VALUES (?, ?, ?, ?, 'idle', 'planner', 'plan', 0, ?, ?, ?, ?, ?, ?)
692
692
  `
693
693
  ).run(
694
694
  id,
695
695
  projectId,
696
696
  workdir,
697
- worktree ?? null,
697
+ workspace ?? null,
698
698
  now,
699
699
  now,
700
700
  title ?? null,
@@ -706,7 +706,7 @@ function createSession(projectId, workdir, title, providerId, providerModel, wor
706
706
  id,
707
707
  projectId,
708
708
  workdir,
709
- ...worktree ? { worktree } : {},
709
+ ...workspace ? { workspace } : {},
710
710
  mode: "planner",
711
711
  phase: "plan",
712
712
  isRunning: false,
@@ -855,7 +855,7 @@ function listSessions() {
855
855
  s.id,
856
856
  s.project_id,
857
857
  s.workdir,
858
- s.worktree,
858
+ s.workspace,
859
859
  s.mode,
860
860
  s.workflow_phase,
861
861
  s.is_running,
@@ -879,7 +879,7 @@ function listSessionsByProject(projectId, limit = 20, offset = 0) {
879
879
  s.id,
880
880
  s.project_id,
881
881
  s.workdir,
882
- s.worktree,
882
+ s.workspace,
883
883
  s.mode,
884
884
  s.workflow_phase,
885
885
  s.is_running,
@@ -899,12 +899,12 @@ function listSessionsByProject(projectId, limit = 20, offset = 0) {
899
899
  const sessions = rows.slice(0, limit).map(mapSessionSummaryRow);
900
900
  return { sessions, hasMore };
901
901
  }
902
- function updateSessionWorkdir(id, workdir, worktree) {
902
+ function updateSessionWorkdir(id, workdir, workspace) {
903
903
  const db = getDatabase();
904
904
  const now = (/* @__PURE__ */ new Date()).toISOString();
905
- db.prepare("UPDATE sessions SET workdir = ?, worktree = ?, updated_at = ? WHERE id = ?").run(
905
+ db.prepare("UPDATE sessions SET workdir = ?, workspace = ?, updated_at = ? WHERE id = ?").run(
906
906
  workdir,
907
- worktree,
907
+ workspace,
908
908
  now,
909
909
  id
910
910
  );
@@ -918,7 +918,7 @@ function mapSessionBase(row) {
918
918
  id: row.id,
919
919
  projectId: row.project_id,
920
920
  workdir: row.workdir,
921
- ...row.worktree ? { worktree: row.worktree } : {},
921
+ ...row.workspace ? { workspace: row.workspace } : {},
922
922
  mode: row.mode ?? "planner",
923
923
  phase: row.workflow_phase ?? "plan",
924
924
  isRunning: Boolean(row.is_running),
@@ -1460,4 +1460,4 @@ export {
1460
1460
  truncateSessionMessages,
1461
1461
  getRecentUserPromptsForSession
1462
1462
  };
1463
- //# sourceMappingURL=chunk-TFDK6VSG.js.map
1463
+ //# sourceMappingURL=chunk-6XKM25OT.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  COMPACTION_PROMPT,
3
3
  createMessageStartEvent
4
- } from "./chunk-RKD2FML3.js";
4
+ } from "./chunk-XWBNYU2L.js";
5
5
  import {
6
6
  getCurrentWindowMessageOptions
7
- } from "./chunk-TFDK6VSG.js";
7
+ } from "./chunk-6XKM25OT.js";
8
8
 
9
9
  // src/server/context/compactor.ts
10
10
  function appendCompactionPrompt(sessionId, append) {
@@ -31,4 +31,4 @@ export {
31
31
  shouldCompact,
32
32
  getCompactionTarget
33
33
  };
34
- //# sourceMappingURL=chunk-TQGGMWS6.js.map
34
+ //# sourceMappingURL=chunk-CHPRGEY5.js.map
@@ -409,7 +409,16 @@ Error: ${data.result.error}` : `Error: ${data.result.error}`
409
409
  }
410
410
  ];
411
411
  }
412
- messages.push(toolMsg);
412
+ const parentIdx = messages.findIndex((m) => m.id === data.messageId);
413
+ if (parentIdx >= 0) {
414
+ let insertIdx = parentIdx + 1;
415
+ while (insertIdx < messages.length && messages[insertIdx].role === "tool" && messages[insertIdx].toolCallId) {
416
+ insertIdx++;
417
+ }
418
+ messages.splice(insertIdx, 0, toolMsg);
419
+ } else {
420
+ messages.push(toolMsg);
421
+ }
413
422
  }
414
423
  }
415
424
  function stripOrphanedToolCalls(messages, fulfilledToolCallIds) {
@@ -867,4 +876,4 @@ export {
867
876
  buildSnapshot,
868
877
  buildSnapshotFromSessionState
869
878
  };
870
- //# sourceMappingURL=chunk-C3VLGVSQ.js.map
879
+ //# sourceMappingURL=chunk-DJASQ2ZB.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getProjectByWorkdir
3
- } from "./chunk-KXVFHMSM.js";
3
+ } from "./chunk-UV3EMWL4.js";
4
4
  import {
5
5
  logger
6
6
  } from "./chunk-K44MW7JJ.js";
@@ -343,4 +343,4 @@ export {
343
343
  startInspectProxy,
344
344
  stopAllInspectProxies
345
345
  };
346
- //# sourceMappingURL=chunk-4QBDV6LX.js.map
346
+ //# sourceMappingURL=chunk-E5LLEO3C.js.map