openfox 2.0.72 → 2.0.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.
Files changed (28) 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-LK5RUAGO.js → chat-handler-ETKFIHUO.js} +4 -4
  4. package/dist/{chunk-GMF36EZ3.js → chunk-2VBETAU2.js} +4 -4
  5. package/dist/chunk-3OZBPWHP.js +7 -0
  6. package/dist/{chunk-X2Y3AJPP.js → chunk-MF3UW36X.js} +10 -2
  7. package/dist/{chunk-FILRB5QX.js → chunk-QFR6JF32.js} +266 -84
  8. package/dist/{chunk-4LBSC4R3.js → chunk-R6L2QXQ5.js} +5 -5
  9. package/dist/{chunk-TK4BZIXA.js → chunk-TMRFTWXP.js} +11 -4
  10. package/dist/{chunk-O2BE7KVQ.js → chunk-ZRQDCQ7R.js} +4 -4
  11. package/dist/cli/dev.js +1 -1
  12. package/dist/cli/index.js +1 -1
  13. package/dist/{orchestrator-RTZVMWQV.js → orchestrator-O2YAAZ3U.js} +4 -4
  14. package/dist/package.json +1 -1
  15. package/dist/{processor-3O26I7DO.js → processor-FKAS3K4L.js} +4 -4
  16. package/dist/{serve-6PSAQ2YH.js → serve-T5U6SLB7.js} +7 -7
  17. package/dist/server/index.d.ts +4 -0
  18. package/dist/server/index.js +6 -6
  19. package/dist/{server-G2J4RAXL.js → server-T2YP3VT2.js} +5 -5
  20. package/dist/{tools-X52DFUS6.js → tools-APW7MY4E.js} +3 -3
  21. package/dist/{update-I2M2RG4Q.js → update-FWO365SV.js} +2 -2
  22. package/dist/web/assets/{index-CmechlaK.css → index-DZRcUhoE.css} +1 -1
  23. package/dist/web/assets/{index-C7SW16F7.js → index-Xh2VHbZe.js} +69 -69
  24. package/dist/web/index.html +2 -2
  25. package/dist/web/sw.js +1 -1
  26. package/dist/{workspace-ET3FHZYN.js → workspace-6QTTUMMW.js} +4 -2
  27. package/package.json +1 -1
  28. package/dist/chunk-2M6JM7OR.js +0 -7
@@ -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
@@ -5,9 +5,9 @@ import {
5
5
  } from "./chunk-2DCJERYX.js";
6
6
  import {
7
7
  runChatTurn
8
- } from "./chunk-O2BE7KVQ.js";
9
- import "./chunk-GMF36EZ3.js";
10
- import "./chunk-X2Y3AJPP.js";
8
+ } from "./chunk-ZRQDCQ7R.js";
9
+ import "./chunk-2VBETAU2.js";
10
+ import "./chunk-MF3UW36X.js";
11
11
  import "./chunk-WGMJCFCE.js";
12
12
  import "./chunk-EU3WWTFH.js";
13
13
  import "./chunk-XWBNYU2L.js";
@@ -158,4 +158,4 @@ export {
158
158
  startChatSession,
159
159
  stopSessionExecution
160
160
  };
161
- //# sourceMappingURL=chat-handler-LK5RUAGO.js.map
161
+ //# sourceMappingURL=chat-handler-ETKFIHUO.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getGitBranch,
3
3
  listWorkspaces
4
- } from "./chunk-X2Y3AJPP.js";
4
+ } from "./chunk-MF3UW36X.js";
5
5
  import {
6
6
  AskUserInterrupt,
7
7
  askUserTool
@@ -3814,7 +3814,7 @@ var callSubAgentTool = {
3814
3814
  };
3815
3815
  }
3816
3816
  try {
3817
- const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-X52DFUS6.js");
3817
+ const { getToolRegistryForAgent: getToolRegistryForAgent2 } = await import("./tools-APW7MY4E.js");
3818
3818
  const toolRegistry = getToolRegistryForAgent2(agentDef);
3819
3819
  const turnMetrics = new TurnMetrics();
3820
3820
  const result = await executeSubAgent({
@@ -4813,7 +4813,7 @@ var mcpConfigTool = createTool(
4813
4813
  mcpNotifyChanged?.(sessionId);
4814
4814
  }
4815
4815
  async function rebuildTools() {
4816
- const { setMcpTools: setMcpTools2 } = await import("./tools-X52DFUS6.js");
4816
+ const { setMcpTools: setMcpTools2 } = await import("./tools-APW7MY4E.js");
4817
4817
  const mcpTools = createMcpTools(mcpManagerForTools);
4818
4818
  setMcpTools2(mcpTools);
4819
4819
  }
@@ -5493,4 +5493,4 @@ export {
5493
5493
  getToolRegistryForAgent,
5494
5494
  createToolRegistry
5495
5495
  };
5496
- //# sourceMappingURL=chunk-GMF36EZ3.js.map
5496
+ //# sourceMappingURL=chunk-2VBETAU2.js.map
@@ -0,0 +1,7 @@
1
+ // src/constants.ts
2
+ var VERSION = "2.0.74";
3
+
4
+ export {
5
+ VERSION
6
+ };
7
+ //# sourceMappingURL=chunk-3OZBPWHP.js.map
@@ -8,7 +8,7 @@ import {
8
8
  // src/server/git/workspace.ts
9
9
  import { spawn, execSync } from "child_process";
10
10
  import { mkdir as mkdir2 } from "fs/promises";
11
- import { resolve as resolve2, join as join2 } from "path";
11
+ import { resolve as resolve2, join as join2, isAbsolute } from "path";
12
12
  import { homedir, platform } from "os";
13
13
 
14
14
  // src/server/git/workspace-config.ts
@@ -106,6 +106,13 @@ async function getCommitsBehind(cwd, branch) {
106
106
  function validateRef(cwd, name) {
107
107
  return runGit(cwd, ["check-ref-format", `refs/heads/${name}`]);
108
108
  }
109
+ function validateWorkspaceName(name) {
110
+ if (!name || typeof name !== "string") throw new Error("Workspace name is required");
111
+ if (name.includes("/") || name.includes("\\")) throw new Error("Workspace name cannot contain path separators");
112
+ if (name === "." || name === "..") throw new Error('Workspace name cannot be "." or ".."');
113
+ if (isAbsolute(name)) throw new Error("Workspace name cannot be an absolute path");
114
+ if (name.length > 255) throw new Error("Workspace name is too long");
115
+ }
109
116
  function checkoutBranch(cwd, name) {
110
117
  return runGit(cwd, ["checkout", name]);
111
118
  }
@@ -206,6 +213,7 @@ export {
206
213
  listBranches,
207
214
  getCommitsBehind,
208
215
  validateRef,
216
+ validateWorkspaceName,
209
217
  checkoutBranch,
210
218
  createBranch,
211
219
  workspaceExists,
@@ -213,4 +221,4 @@ export {
213
221
  ensureWorkspace,
214
222
  deleteWorkspace
215
223
  };
216
- //# sourceMappingURL=chunk-X2Y3AJPP.js.map
224
+ //# sourceMappingURL=chunk-MF3UW36X.js.map