openfox 2.0.135 → 2.0.137

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 (87) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/dist/CHANGELOG.md +33 -0
  3. package/dist/agent-defaults/builder.agent.md +1 -0
  4. package/dist/agent-defaults/planner.agent.md +1 -0
  5. package/dist/{ask-UBIRH3SO.js → ask-46J5WYRL.js} +2 -2
  6. package/dist/{auto-config-5VSNLVNI.js → auto-config-2A7Y2WOK.js} +25 -6
  7. package/dist/{backend-NDBY3DAQ.js → backend-24FTDSHF.js} +4 -2
  8. package/dist/{chat-handler-WGDFMOOD.js → chat-handler-ZCPFNHTE.js} +30 -26
  9. package/dist/{chunk-QZOV4OVN.js → chunk-2OO46UAW.js} +5 -5
  10. package/dist/{chunk-7QMWYNVF.js → chunk-4LLGI372.js} +2 -2
  11. package/dist/chunk-4SBVW4UH.js +24 -0
  12. package/dist/{chunk-ZMK4VX7V.js → chunk-64YDOCQR.js} +53 -21
  13. package/dist/{chunk-VHLD6PCZ.js → chunk-6TQNTFJW.js} +17 -11
  14. package/dist/{chunk-UV6IH6HK.js → chunk-AKWJMMEJ.js} +15 -1
  15. package/dist/{chunk-ORCQ3EXQ.js → chunk-BHVR2YS5.js} +2 -2
  16. package/dist/{chunk-S67WIWUG.js → chunk-DG2YSWMC.js} +40 -6
  17. package/dist/chunk-FG4G4EWB.js +7 -0
  18. package/dist/{chunk-NFEZATSN.js → chunk-FIQPKLDY.js} +8 -8
  19. package/dist/chunk-FSSUPWYO.js +336 -0
  20. package/dist/{chunk-5UQ4CKOA.js → chunk-G5GUQKLS.js} +27 -6
  21. package/dist/{chunk-7ET46SNE.js → chunk-HEYU7FAY.js} +3 -3
  22. package/dist/{chunk-4R5GV7RW.js → chunk-JIS6C6PA.js} +21 -21
  23. package/dist/{chunk-5H5NRWHA.js → chunk-LQPAM55V.js} +12 -10
  24. package/dist/{chunk-MEEUXRFL.js → chunk-MMGHIPBU.js} +72 -54
  25. package/dist/{chunk-O3RCSKUH.js → chunk-MOYWDP73.js} +2 -2
  26. package/dist/{chunk-J3NMNYGM.js → chunk-N5JKVNLH.js} +2 -2
  27. package/dist/{chunk-DWA4IE65.js → chunk-Q33DL67W.js} +2 -2
  28. package/dist/{chunk-OZWHRBDY.js → chunk-QBWJCO5K.js} +12 -29
  29. package/dist/{chunk-EUOWCVU6.js → chunk-QMU3ZY2C.js} +37 -341
  30. package/dist/{chunk-CTWZPN7G.js → chunk-QUAEH3MP.js} +29 -1
  31. package/dist/{chunk-BIZFY3QP.js → chunk-RS7I4W5A.js} +212 -148
  32. package/dist/{chunk-5UMXFLET.js → chunk-SAGDTQXD.js} +3 -3
  33. package/dist/{chunk-UKIUQAQZ.js → chunk-U7XCK7WL.js} +4 -4
  34. package/dist/{chunk-JURM3RPZ.js → chunk-V5AC2TV7.js} +8 -13
  35. package/dist/{chunk-JE7LW7Y6.js → chunk-VIJVLLPT.js} +12 -3
  36. package/dist/{chunk-2AI7VYPN.js → chunk-VKMPR25F.js} +9 -3
  37. package/dist/{chunk-IAT2LBIX.js → chunk-WOIQO7ZC.js} +4 -4
  38. package/dist/chunk-WQUCCHOY.js +1155 -0
  39. package/dist/{chunk-F2MOHHXB.js → chunk-X4PVR6AW.js} +2 -2
  40. package/dist/chunk-XG3AUMPI.js +72 -0
  41. package/dist/{chunk-I5ODJKYM.js → chunk-XWWRZSK7.js} +162 -6
  42. package/dist/{chunk-GP3CLMPQ.js → chunk-ZJ2IHOVN.js} +23 -23
  43. package/dist/{chunk-ESZQTFQP.js → chunk-ZQENKB7X.js} +86 -1010
  44. package/dist/cli/dev.js +1 -1
  45. package/dist/cli/index.js +1 -1
  46. package/dist/client-MVI3J7SN.js +18 -0
  47. package/dist/{client-pure-FLKP6PTI.js → client-pure-YZ4IGCU4.js} +4 -2
  48. package/dist/{compactor-454UEIEX.js → compactor-KDTY4ERE.js} +14 -12
  49. package/dist/describe-image-EFHMWGWI.js +30 -0
  50. package/dist/{dynamic-context-LKC6JYLQ.js → dynamic-context-HL4RGNHK.js} +12 -10
  51. package/dist/{events-335XAKFK.js → events-ADE2KEHI.js} +7 -9
  52. package/dist/{export-import-3WMRLO4A.js → export-import-6OUEANYH.js} +7 -7
  53. package/dist/{folding-H7JTX6KI.js → folding-CM63AVSB.js} +6 -6
  54. package/dist/{http-client-A445WYZU.js → http-client-C6UYWVWZ.js} +3 -3
  55. package/dist/launch-L5NSPAAX.js +58 -0
  56. package/dist/{manager-ZACEUL5P.js → manager-FSPRJCYT.js} +4 -4
  57. package/dist/{model-catalog-2PCKTYGW.js → model-catalog-Y5MA5OZP.js} +2 -2
  58. package/dist/{orchestrator-JGJWTRO5.js → orchestrator-FMWKMD54.js} +29 -25
  59. package/dist/package.json +1 -1
  60. package/dist/{path-security-4LROI7F4.js → path-security-DND2R3RP.js} +8 -8
  61. package/dist/{platform-XPMZKAUB.js → platform-KPKYBU54.js} +3 -3
  62. package/dist/{processor-MSQP63ML.js → processor-SB5X44PX.js} +29 -25
  63. package/dist/{provider-JWUNG2TD.js → provider-SOC6Z25R.js} +10 -8
  64. package/dist/{provider-manager-2KKZ37XJ.js → provider-manager-Y53SVVQ3.js} +10 -8
  65. package/dist/{registry-BEIR7Y5G.js → registry-FMDMGIUB.js} +3 -3
  66. package/dist/{serve-CW5C3CBZ.js → serve-VONTGJCK.js} +41 -32
  67. package/dist/server/index.d.ts +1 -0
  68. package/dist/server/index.js +34 -30
  69. package/dist/server-MI2LZK3W.js +61 -0
  70. package/dist/{service-XIUNS5XV.js → service-NKLQH647.js} +12 -9
  71. package/dist/{session-overrides-LYW5PJ3R.js → session-overrides-ANQBKV74.js} +11 -7
  72. package/dist/{sessions-AOK3AGHY.js → sessions-GLYACE5R.js} +4 -4
  73. package/dist/{settings-ZJPM6PQV.js → settings-WH6BVQCP.js} +4 -2
  74. package/dist/{tasks-3JJWJJ3X.js → tasks-GPM3JAE6.js} +14 -10
  75. package/dist/tool-adapter-ZY4FC4C4.js +9 -0
  76. package/dist/{tools-E63MOJBO.js → tools-WLJJ3ILO.js} +27 -23
  77. package/dist/{update-XVXNSSDK.js → update-6ZSQJQJB.js} +2 -2
  78. package/dist/web/assets/{index-wTFCxQAw.js → index-CfFwerN2.js} +84 -84
  79. package/dist/web/assets/{index-Bg_Z8i3F.css → index-ChJjYovg.css} +1 -1
  80. package/dist/web/index.html +2 -2
  81. package/dist/web/sw.js +1 -1
  82. package/package.json +1 -1
  83. package/dist/chunk-WY3PWHWY.js +0 -7
  84. package/dist/client-VVYOWXRR.js +0 -16
  85. package/dist/launch-GJ7EHQRI.js +0 -54
  86. package/dist/server-ZHEB7XS2.js +0 -57
  87. package/dist/tool-adapter-FJAFLDZA.js +0 -8
@@ -11,11 +11,11 @@ import {
11
11
  } from "./chunk-I72ACQ6R.js";
12
12
  import {
13
13
  getPlatformShell
14
- } from "./chunk-O3RCSKUH.js";
14
+ } from "./chunk-MOYWDP73.js";
15
15
  import {
16
16
  SETTINGS_KEYS,
17
17
  getSetting
18
- } from "./chunk-CTWZPN7G.js";
18
+ } from "./chunk-QUAEH3MP.js";
19
19
 
20
20
  // src/server/utils/shell.ts
21
21
  import { spawn } from "child_process";
@@ -214,4 +214,4 @@ export {
214
214
  getSessionProcesses2 as getSessionProcesses,
215
215
  getProcessLogs
216
216
  };
217
- //# sourceMappingURL=chunk-5UMXFLET.js.map
217
+ //# sourceMappingURL=chunk-SAGDTQXD.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  createMessageStartEvent
3
- } from "./chunk-7ET46SNE.js";
3
+ } from "./chunk-HEYU7FAY.js";
4
4
  import {
5
5
  COMPACTION_PROMPT
6
- } from "./chunk-7QMWYNVF.js";
6
+ } from "./chunk-4LLGI372.js";
7
7
  import {
8
8
  getCurrentWindowMessageOptions
9
- } from "./chunk-QZOV4OVN.js";
9
+ } from "./chunk-2OO46UAW.js";
10
10
 
11
11
  // src/server/context/compactor.ts
12
12
  function appendCompactionPrompt(sessionId, append) {
@@ -36,4 +36,4 @@ export {
36
36
  COMPACTION_MAX_RATIO,
37
37
  shouldCompact
38
38
  };
39
- //# sourceMappingURL=chunk-UKIUQAQZ.js.map
39
+ //# sourceMappingURL=chunk-U7XCK7WL.js.map
@@ -62,18 +62,13 @@ var askUserTool = {
62
62
  type: "array",
63
63
  description: "Options for choice-type questions. Each entry may be a plain string or an object {value, label, description?} (or legacy {label, description?}). The server normalizes everything to {value, label, description?}.",
64
64
  items: {
65
- oneOf: [
66
- { type: "string" },
67
- {
68
- type: "object",
69
- properties: {
70
- value: { type: "string" },
71
- label: { type: "string" },
72
- description: { type: "string" }
73
- },
74
- required: ["label"]
75
- }
76
- ]
65
+ type: "object",
66
+ properties: {
67
+ value: { type: "string" },
68
+ label: { type: "string" },
69
+ description: { type: "string" }
70
+ },
71
+ required: ["label"]
77
72
  }
78
73
  }
79
74
  },
@@ -173,4 +168,4 @@ export {
173
168
  awaitAnswer,
174
169
  getPendingQuestionsForSession
175
170
  };
176
- //# sourceMappingURL=chunk-JURM3RPZ.js.map
171
+ //# sourceMappingURL=chunk-V5AC2TV7.js.map
@@ -1,3 +1,7 @@
1
+ import {
2
+ sanitizeToolSchema
3
+ } from "./chunk-XG3AUMPI.js";
4
+
1
5
  // src/server/mcp/tool-adapter.ts
2
6
  function createMcpTools(mcpManager) {
3
7
  const tools = [];
@@ -10,7 +14,7 @@ function createMcpTools(mcpManager) {
10
14
  function: {
11
15
  name: prefixedName,
12
16
  description: mcpTool.description ?? "",
13
- parameters: mcpTool.inputSchema
17
+ parameters: sanitizeToolSchema(mcpTool.inputSchema)
14
18
  }
15
19
  };
16
20
  tools.push({
@@ -19,7 +23,12 @@ function createMcpTools(mcpManager) {
19
23
  mcpServer: server.name,
20
24
  execute: async (args, _context) => {
21
25
  const start = Date.now();
22
- const result = await mcpManager.callTool(server.name, mcpTool.name, args);
26
+ const normalizedArgs = { ...args };
27
+ if ("props" in normalizedArgs && !("properties" in normalizedArgs)) {
28
+ normalizedArgs["properties"] = normalizedArgs["props"];
29
+ delete normalizedArgs["props"];
30
+ }
31
+ const result = await mcpManager.callTool(server.name, mcpTool.name, normalizedArgs);
23
32
  return {
24
33
  success: result.success,
25
34
  ...result.output ? { output: result.output } : {},
@@ -37,4 +46,4 @@ function createMcpTools(mcpManager) {
37
46
  export {
38
47
  createMcpTools
39
48
  };
40
- //# sourceMappingURL=chunk-JE7LW7Y6.js.map
49
+ //# sourceMappingURL=chunk-VIJVLLPT.js.map
@@ -3,6 +3,13 @@ var REASONING_EFFORT_VALUES = ["none", "minimal", "low", "medium", "high", "xhig
3
3
  function isReasoningEffortValue(value) {
4
4
  return REASONING_EFFORT_VALUES.includes(value);
5
5
  }
6
+ function isReasoningEffortValidForModel(effort, model) {
7
+ if (!effort) return false;
8
+ if (isReasoningEffortValue(effort)) return true;
9
+ if (model?.modes?.some((m) => m.level === effort)) return true;
10
+ if (model?.reasoningEfforts?.includes(effort)) return true;
11
+ return false;
12
+ }
6
13
  function resolveEffortForModel({
7
14
  reasoningEfforts,
8
15
  candidate,
@@ -22,8 +29,6 @@ function resolveEffortForModel({
22
29
  if (override) return override;
23
30
  return defaultEffort && reasoningEfforts.includes(defaultEffort) ? defaultEffort : void 0;
24
31
  }
25
- var MODE_SUFFIXES = ["low", "medium", "high", "xhigh", "max"];
26
- var MODE_SUFFIX_REGEX = new RegExp(`-(${MODE_SUFFIXES.join("|")})$`);
27
32
  function resolveModeModelId(modes, effort, fallbackApiModelId, modelId) {
28
33
  const modeEntry = modes?.find((mode) => mode.level === effort);
29
34
  if (modeEntry) {
@@ -91,9 +96,10 @@ function getCatalogDefaultEffort(modelId) {
91
96
  export {
92
97
  REASONING_EFFORT_VALUES,
93
98
  isReasoningEffortValue,
99
+ isReasoningEffortValidForModel,
94
100
  resolveEffortForModel,
95
101
  resolveModeModelId,
96
102
  getCatalogEntry,
97
103
  getCatalogDefaultEffort
98
104
  };
99
- //# sourceMappingURL=chunk-2AI7VYPN.js.map
105
+ //# sourceMappingURL=chunk-VKMPR25F.js.map
@@ -207,7 +207,7 @@ async function runCli(options) {
207
207
  break;
208
208
  }
209
209
  case "provider": {
210
- const { runProviderCommand } = await import("./provider-JWUNG2TD.js");
210
+ const { runProviderCommand } = await import("./provider-SOC6Z25R.js");
211
211
  const [, subcommand] = positionals;
212
212
  await runProviderCommand(mode, subcommand);
213
213
  break;
@@ -252,7 +252,7 @@ async function runCli(options) {
252
252
  break;
253
253
  }
254
254
  case "update": {
255
- const { runUpdate } = await import("./update-XVXNSSDK.js");
255
+ const { runUpdate } = await import("./update-6ZSQJQJB.js");
256
256
  const code = await runUpdate();
257
257
  if (code !== 0) {
258
258
  process.exit(code);
@@ -265,7 +265,7 @@ async function runCli(options) {
265
265
  if (!configExists) {
266
266
  await runNetworkSetup(mode);
267
267
  }
268
- const { runServe } = await import("./serve-CW5C3CBZ.js");
268
+ const { runServe } = await import("./serve-VONTGJCK.js");
269
269
  const serveOptions = { mode };
270
270
  if (values.port) serveOptions.port = parseInt(values.port);
271
271
  if (values["no-browser"] === true) serveOptions.openBrowser = false;
@@ -277,4 +277,4 @@ async function runCli(options) {
277
277
  export {
278
278
  runCli
279
279
  };
280
- //# sourceMappingURL=chunk-IAT2LBIX.js.map
280
+ //# sourceMappingURL=chunk-WOIQO7ZC.js.map