openfox 2.0.83 → 2.0.85

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 (60) hide show
  1. package/dist/{chat-handler-6KBOE4YA.js → chat-handler-3CWMOIOR.js} +15 -14
  2. package/dist/{chunk-3D3N2PXI.js → chunk-2KKFOVK7.js} +2 -2
  3. package/dist/{chunk-JKZPMRH2.js → chunk-3JYPDZT2.js} +2 -2
  4. package/dist/{chunk-JXTHW3YX.js → chunk-7PZBCATU.js} +18 -4
  5. package/dist/chunk-7WAOMWR3.js +7 -0
  6. package/dist/{chunk-IIRXKSB5.js → chunk-ACL4YUJH.js} +10 -2
  7. package/dist/{chunk-7ROIY3QN.js → chunk-DLJYYWM2.js} +169 -111
  8. package/dist/{chunk-D324ULDG.js → chunk-FTJ7U3VN.js} +20 -17
  9. package/dist/chunk-FYYPQ27K.js +399 -0
  10. package/dist/{chunk-KMGVUOLT.js → chunk-GLRTJJOB.js} +23 -20
  11. package/dist/{chunk-FVY2JOTO.js → chunk-H765CIHN.js} +2 -2
  12. package/dist/{chunk-AANVMTYU.js → chunk-L4S5N3WV.js} +8 -3
  13. package/dist/{chunk-VB23QPW3.js → chunk-M6X72DYZ.js} +3 -3
  14. package/dist/{chunk-SBSQD7MG.js → chunk-MTZ3PC6K.js} +2 -2
  15. package/dist/{chunk-NH2PVB6R.js → chunk-N54PQSCH.js} +33 -24
  16. package/dist/{chunk-A2IZ4PWQ.js → chunk-OHKBGMLO.js} +15 -4
  17. package/dist/{chunk-OBQN5ATP.js → chunk-RSO2HKNH.js} +98 -365
  18. package/dist/{chunk-WL6AOKRD.js → chunk-SGFQWQCE.js} +10 -8
  19. package/dist/{chunk-CNJ63FXJ.js → chunk-STFIEU5F.js} +3 -2
  20. package/dist/{chunk-BUXIESO5.js → chunk-V5LOH363.js} +6 -74
  21. package/dist/{chunk-5ZHVQOI3.js → chunk-W23S3TU5.js} +2 -2
  22. package/dist/{chunk-DQP5HSDS.js → chunk-WVMOGE7U.js} +3 -3
  23. package/dist/{chunk-HLZUN7OR.js → chunk-XXII6DS3.js} +7 -7
  24. package/dist/cli/dev.js +1 -1
  25. package/dist/cli/index.js +1 -1
  26. package/dist/{client-TA2VD4LR.js → client-C2P67MA4.js} +4 -4
  27. package/dist/{compactor-YKESKGHL.js → compactor-2YT66FDZ.js} +10 -8
  28. package/dist/{config-EN3WEH4A.js → config-JN6MW5SL.js} +2 -2
  29. package/dist/{events-GF2WNELM.js → events-OEDAFNEI.js} +7 -4
  30. package/dist/{folding-UACKBHUZ.js → folding-FGTCP73N.js} +7 -2
  31. package/dist/{http-client-QZY7W36Q.js → http-client-I52X7GQB.js} +3 -3
  32. package/dist/{manager-WOUOQVLV.js → manager-TD2UT62O.js} +4 -4
  33. package/dist/{orchestrator-BO62JYFM.js → orchestrator-6RYJYR3T.js} +14 -13
  34. package/dist/package.json +1 -1
  35. package/dist/{path-security-AWDNKRZ4.js → path-security-7ZNIG3ZE.js} +8 -5
  36. package/dist/{platform-7AK5MB4K.js → platform-OYKGQ7Z3.js} +3 -3
  37. package/dist/{processor-BLGEVOPK.js → processor-IGRFA3KA.js} +15 -14
  38. package/dist/{protocol-9WP7lLec.d.ts → protocol-5NJx1N4c.d.ts} +1 -1
  39. package/dist/provider/index.d.ts +4 -4
  40. package/dist/{provider-QVVJ6XNZ.js → provider-YNYYAR6C.js} +7 -7
  41. package/dist/{provider-manager-7246YSJT.js → provider-manager-3DW3A2VC.js} +5 -5
  42. package/dist/{serve-HXV2RX3Q.js → serve-LFC7D5B7.js} +21 -20
  43. package/dist/server/index.d.ts +4 -4
  44. package/dist/server/index.js +20 -19
  45. package/dist/{server-V4VA4A2E.js → server-E5IA4SK7.js} +16 -15
  46. package/dist/{sessions-SFG42M4W.js → sessions-V3BF2OTU.js} +5 -2
  47. package/dist/{settings-6TJIHDVX.js → settings-AGNYWEIE.js} +2 -2
  48. package/dist/shared/index.d.ts +3 -3
  49. package/dist/{tools-X4YLRR2Y.js → tools-ZUTPBREL.js} +13 -12
  50. package/dist/{types-ulRvCqQX.d.ts → types-B4wa_vGm.d.ts} +2 -0
  51. package/dist/{types-BtY5XChg.d.ts → types-CrLD4iRS.d.ts} +1 -1
  52. package/dist/{update-MFOCAROI.js → update-KDMUVXXI.js} +2 -2
  53. package/dist/web/assets/{index-DfmXvFVe.css → index-CsWZt1m8.css} +1 -1
  54. package/dist/web/assets/index-mJ_RQ-yF.js +305 -0
  55. package/dist/web/index.html +2 -2
  56. package/dist/web/sw.js +1 -1
  57. package/dist/{workspace-N2PIBOJV.js → workspace-MMV6V5P4.js} +4 -2
  58. package/package.json +1 -1
  59. package/dist/chunk-2X3V4SQC.js +0 -7
  60. package/dist/web/assets/index-C9jXZWzN.js +0 -305
@@ -2,42 +2,43 @@ import {
2
2
  buildRunChatTurnParams,
3
3
  finalizeTurnCompletion,
4
4
  generateSessionNameForSession
5
- } from "./chunk-WL6AOKRD.js";
5
+ } from "./chunk-SGFQWQCE.js";
6
6
  import {
7
7
  runChatTurn
8
- } from "./chunk-D324ULDG.js";
9
- import "./chunk-OBQN5ATP.js";
10
- import "./chunk-JKZPMRH2.js";
8
+ } from "./chunk-FTJ7U3VN.js";
9
+ import "./chunk-RSO2HKNH.js";
10
+ import "./chunk-3JYPDZT2.js";
11
11
  import "./chunk-NWO6GRYE.js";
12
12
  import "./chunk-VPFUXGMM.js";
13
- import "./chunk-JXTHW3YX.js";
13
+ import "./chunk-7PZBCATU.js";
14
14
  import "./chunk-J7GAZGZT.js";
15
- import "./chunk-3D3N2PXI.js";
15
+ import "./chunk-2KKFOVK7.js";
16
16
  import {
17
17
  createChatMessageMessage,
18
18
  createPhaseChangedMessage,
19
19
  createSessionRunningMessage
20
20
  } from "./chunk-SJTG56CH.js";
21
21
  import "./chunk-EU3WWTFH.js";
22
- import "./chunk-FVY2JOTO.js";
23
- import "./chunk-5ZHVQOI3.js";
22
+ import "./chunk-H765CIHN.js";
23
+ import "./chunk-W23S3TU5.js";
24
24
  import "./chunk-EYIWUONA.js";
25
25
  import "./chunk-6AE3JPDJ.js";
26
26
  import "./chunk-I72ACQ6R.js";
27
27
  import {
28
28
  getEventStore
29
- } from "./chunk-BUXIESO5.js";
30
- import "./chunk-A2IZ4PWQ.js";
31
- import "./chunk-AANVMTYU.js";
29
+ } from "./chunk-V5LOH363.js";
30
+ import "./chunk-OHKBGMLO.js";
31
+ import "./chunk-L4S5N3WV.js";
32
+ import "./chunk-FYYPQ27K.js";
32
33
  import "./chunk-J2GP3J3X.js";
33
34
  import "./chunk-V4IE7HJY.js";
34
35
  import "./chunk-YHEQTVFV.js";
35
36
  import "./chunk-RMXPVQP4.js";
36
- import "./chunk-CNJ63FXJ.js";
37
+ import "./chunk-STFIEU5F.js";
37
38
  import "./chunk-RGUUZD5B.js";
38
39
  import "./chunk-K44MW7JJ.js";
39
40
  import "./chunk-X6BXZFO7.js";
40
- import "./chunk-NH2PVB6R.js";
41
+ import "./chunk-N54PQSCH.js";
41
42
  import "./chunk-CQGTEGKL.js";
42
43
  import "./chunk-5WRI5ZAA.js";
43
44
 
@@ -160,4 +161,4 @@ export {
160
161
  startChatSession,
161
162
  stopSessionExecution
162
163
  };
163
- //# sourceMappingURL=chat-handler-6KBOE4YA.js.map
164
+ //# sourceMappingURL=chat-handler-3CWMOIOR.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-SJTG56CH.js";
4
4
  import {
5
5
  getEventStore
6
- } from "./chunk-BUXIESO5.js";
6
+ } from "./chunk-V5LOH363.js";
7
7
 
8
8
  // src/server/tools/path-security.ts
9
9
  import { realpath } from "fs/promises";
@@ -494,4 +494,4 @@ export {
494
494
  getConfirmationSessionId,
495
495
  getPendingConfirmationsBySession
496
496
  };
497
- //# sourceMappingURL=chunk-3D3N2PXI.js.map
497
+ //# sourceMappingURL=chunk-2KKFOVK7.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getPlatformShell
3
- } from "./chunk-5ZHVQOI3.js";
3
+ } from "./chunk-W23S3TU5.js";
4
4
  import {
5
5
  appendLog,
6
6
  createProcess,
@@ -153,4 +153,4 @@ export {
153
153
  getSessionProcesses2 as getSessionProcesses,
154
154
  getProcessLogs
155
155
  };
156
- //# sourceMappingURL=chunk-JKZPMRH2.js.map
156
+ //# sourceMappingURL=chunk-3JYPDZT2.js.map
@@ -129,8 +129,11 @@ async function getDefaultBranch(projectDir) {
129
129
  const branch = originHead.trim().replace("refs/remotes/origin/", "");
130
130
  if (branch) return branch;
131
131
  }
132
- const current = await getGitBranch(projectDir);
133
- if (current) return current;
132
+ const remoteHead = await captureStdout(projectDir, ["ls-remote", "--symref", "origin", "HEAD"]);
133
+ if (remoteHead) {
134
+ const match = remoteHead.match(/^ref: refs\/heads\/(\S+)\tHEAD$/m);
135
+ if (match?.[1]) return match[1];
136
+ }
134
137
  return "main";
135
138
  }
136
139
  async function resolveAndValidateSourceBranch(cwd, sourceBranch, projectDir) {
@@ -256,6 +259,16 @@ async function deleteWorkspace(projectName, name, projectDir) {
256
259
  }
257
260
  logger.info("Deleted workspace", { projectName, name, path: wsPath });
258
261
  }
262
+ async function isGitRepository(cwd) {
263
+ const { stat } = await import("fs/promises");
264
+ try {
265
+ const st = await stat(join2(cwd, ".git"));
266
+ if (st.isDirectory()) return true;
267
+ } catch {
268
+ }
269
+ const result = await captureStdout(cwd, ["rev-parse", "--git-dir"]);
270
+ return result !== null;
271
+ }
259
272
  async function statSafe(p) {
260
273
  try {
261
274
  const { stat } = await import("fs/promises");
@@ -286,6 +299,7 @@ export {
286
299
  workspaceExists,
287
300
  listWorkspaces,
288
301
  ensureWorkspace,
289
- deleteWorkspace
302
+ deleteWorkspace,
303
+ isGitRepository
290
304
  };
291
- //# sourceMappingURL=chunk-JXTHW3YX.js.map
305
+ //# sourceMappingURL=chunk-7PZBCATU.js.map
@@ -0,0 +1,7 @@
1
+ // src/constants.ts
2
+ var VERSION = "2.0.85";
3
+
4
+ export {
5
+ VERSION
6
+ };
7
+ //# sourceMappingURL=chunk-7WAOMWR3.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  SETTINGS_KEYS,
3
3
  getSetting
4
- } from "./chunk-CNJ63FXJ.js";
4
+ } from "./chunk-STFIEU5F.js";
5
5
  import {
6
6
  logger
7
7
  } from "./chunk-K44MW7JJ.js";
@@ -27,6 +27,13 @@ var LLMError = class extends OpenFoxError {
27
27
  this.name = "LLMError";
28
28
  }
29
29
  };
30
+ var WorkspaceInUseError = class extends OpenFoxError {
31
+ constructor(message, conflictingSessionIds) {
32
+ super(message, "WORKSPACE_IN_USE");
33
+ this.conflictingSessionIds = conflictingSessionIds;
34
+ this.name = "WorkspaceInUseError";
35
+ }
36
+ };
30
37
 
31
38
  // src/server/llm/proxy.ts
32
39
  import { fetch as undiciFetch, ProxyAgent } from "undici";
@@ -160,7 +167,8 @@ var OpenAIHttpClient = class {
160
167
  export {
161
168
  SessionNotFoundError,
162
169
  LLMError,
170
+ WorkspaceInUseError,
163
171
  proxyFetch,
164
172
  OpenAIHttpClient
165
173
  };
166
- //# sourceMappingURL=chunk-IIRXKSB5.js.map
174
+ //# sourceMappingURL=chunk-ACL4YUJH.js.map