openfox 2.0.113 → 2.0.114

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 (94) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/CHANGELOG.md +22 -0
  3. package/dist/agent-defaults/builder.agent.md +1 -0
  4. package/dist/agent-defaults/planner.agent.md +1 -0
  5. package/dist/{backend-P3GHHLHJ.js → backend-LVYHLGQJ.js} +2 -2
  6. package/dist/{chat-handler-PEK5JDHO.js → chat-handler-KWXRSWXZ.js} +31 -25
  7. package/dist/{chunk-HKD4IMOE.js → chunk-2XD65L7M.js} +2 -2
  8. package/dist/{chunk-AZFZE36I.js → chunk-3O77NT4T.js} +17 -7
  9. package/dist/{chunk-HGOTZWON.js → chunk-7GWARYQC.js} +60 -1064
  10. package/dist/{chunk-YHEQTVFV.js → chunk-AZHWLLPP.js} +1 -1
  11. package/dist/{chunk-6UPBZ2ZR.js → chunk-BZVW77PI.js} +4 -4
  12. package/dist/{chunk-YGPPFVLJ.js → chunk-FW4NDUBL.js} +15 -15
  13. package/dist/{chunk-O2YSYW2F.js → chunk-GUHHUDNL.js} +6 -6
  14. package/dist/{chunk-WWTYWLDM.js → chunk-HP5CIB66.js} +2 -2
  15. package/dist/{chunk-ONONXV3N.js → chunk-HV6IALXF.js} +4 -4
  16. package/dist/{chunk-4NMGX5F2.js → chunk-I7FY2LTR.js} +2 -2
  17. package/dist/{chunk-Y64PEWKP.js → chunk-JP7NM545.js} +2 -2
  18. package/dist/{chunk-CP44U7BT.js → chunk-JXLRL5JR.js} +5 -5
  19. package/dist/{chunk-5VYSKVZT.js → chunk-K733B5T2.js} +254 -20
  20. package/dist/{chunk-SNLLOXCM.js → chunk-L63Q4JQJ.js} +3 -3
  21. package/dist/{chunk-43M7QZMX.js → chunk-LXYPMFTH.js} +3 -3
  22. package/dist/{chunk-TCGWZBTS.js → chunk-MUSPWEBB.js} +3 -3
  23. package/dist/chunk-NCZRWCJN.js +7 -0
  24. package/dist/{chunk-JR54MDZI.js → chunk-NLO64UE3.js} +2 -2
  25. package/dist/{chunk-3R43CMLS.js → chunk-NWJLWLKF.js} +8 -8
  26. package/dist/chunk-OSXPQSLW.js +128 -0
  27. package/dist/chunk-OTYAEEX3.js +1081 -0
  28. package/dist/{chunk-V4664YKR.js → chunk-OXSTNSCF.js} +2 -2
  29. package/dist/{chunk-R2MTWC7C.js → chunk-P5UANBBX.js} +6 -4
  30. package/dist/{chunk-PWXBIUEY.js → chunk-PBW3YC3G.js} +85 -1
  31. package/dist/{chunk-TEQEDOWI.js → chunk-QD7MRMCH.js} +245 -289
  32. package/dist/{chunk-BNFGDTEU.js → chunk-SA34STZ6.js} +2 -2
  33. package/dist/{chunk-VGRVPYZ5.js → chunk-SBSUDHL4.js} +2 -2
  34. package/dist/{chunk-XQR76MQ5.js → chunk-SFZGMB2G.js} +2 -2
  35. package/dist/{chunk-EC5T5A6O.js → chunk-TKKP56QK.js} +3 -3
  36. package/dist/{chunk-BYSUSSSC.js → chunk-UPBWEHIL.js} +30 -148
  37. package/dist/{chunk-YB6WYVNY.js → chunk-UTIQ7OO5.js} +2 -2
  38. package/dist/{chunk-EMI3YYLP.js → chunk-VPVLO436.js} +4 -4
  39. package/dist/chunk-W77NBJAZ.js +957 -0
  40. package/dist/{chunk-BKCW3JLL.js → chunk-X25Q6RAV.js} +1 -1
  41. package/dist/{chunk-FF2EKUQO.js → chunk-YGJIK3CG.js} +4 -4
  42. package/dist/cli/dev.js +1 -1
  43. package/dist/cli/index.js +1 -1
  44. package/dist/{client-3LJGD6KY.js → client-EM7ISGUP.js} +6 -6
  45. package/dist/{compactor-ZBNKANHV.js → compactor-V3LR7APW.js} +13 -12
  46. package/dist/{dynamic-context-F2XTQJR5.js → dynamic-context-MVGOF5V2.js} +10 -9
  47. package/dist/{events-224IO5NJ.js → events-PI7IMPHT.js} +8 -7
  48. package/dist/{folding-YTTTVS56.js → folding-FO57K4JM.js} +6 -5
  49. package/dist/http-client-33EZ3BLR.js +11 -0
  50. package/dist/{inspect-proxy-B7LGGTM7.js → inspect-proxy-NHKQQ2CD.js} +4 -4
  51. package/dist/launch-L5ROVNI3.js +52 -0
  52. package/dist/{manager-4QGXI6WZ.js → manager-66YAEO7K.js} +5 -5
  53. package/dist/{model-overrides-OY2YKUNV.js → model-overrides-L53PZNZA.js} +4 -4
  54. package/dist/orchestrator-XK5K3RPL.js +63 -0
  55. package/dist/package.json +3 -3
  56. package/dist/{path-security-PFMZY7IA.js → path-security-RSEI3YKB.js} +12 -11
  57. package/dist/{platform-QNGCKX4L.js → platform-WA4GK5BO.js} +4 -4
  58. package/dist/{processor-NYPJ5PFA.js → processor-WDZSFBVO.js} +30 -24
  59. package/dist/{project-creator-AWP2JUFS.js → project-creator-676WQXVI.js} +3 -3
  60. package/dist/{projects-C4353IQK.js → projects-SSBWIYL4.js} +3 -3
  61. package/dist/{protocol-CBT1d98i.d.ts → protocol-BzHs024-.d.ts} +21 -3
  62. package/dist/{protocol-LZZ7C4VQ.js → protocol-RKSWKNXI.js} +3 -3
  63. package/dist/provider/index.d.ts +4 -4
  64. package/dist/{provider-PIRPN2CC.js → provider-PLIWRBCF.js} +7 -7
  65. package/dist/{provider-manager-GNEPR6UN.js → provider-manager-2QSJTPWS.js} +7 -7
  66. package/dist/{registry-VCKDSVKA.js → registry-ZP4TN2IN.js} +5 -4
  67. package/dist/{serve-6DRHQLCG.js → serve-MZ3BCCWC.js} +35 -32
  68. package/dist/server/index.d.ts +4 -4
  69. package/dist/server/index.js +34 -31
  70. package/dist/server-EPXODFMB.js +55 -0
  71. package/dist/service-54PGIPDQ.js +25 -0
  72. package/dist/{session-overrides-RNKV35MU.js → session-overrides-LXN6W7SA.js} +7 -6
  73. package/dist/{sessions-D5CEPQGU.js → sessions-CHPVUG6H.js} +6 -5
  74. package/dist/{settings-BNRNX6IW.js → settings-NEBM3GQX.js} +3 -3
  75. package/dist/shared/index.d.ts +3 -3
  76. package/dist/shared/index.js +1 -1
  77. package/dist/skill-defaults/workflows/SKILL.md +24 -6
  78. package/dist/tasks-TJXG2V3U.js +217 -0
  79. package/dist/{tools-2B363F7L.js → tools-CIM26IFB.js} +30 -22
  80. package/dist/{types-BAxh20ZL.d.ts → types-CMtHpDWT.d.ts} +74 -1
  81. package/dist/{types-cVfqOj6M.d.ts → types-CbggXFvR.d.ts} +1 -1
  82. package/dist/{update-IQMRYN7J.js → update-UZBBO42X.js} +2 -2
  83. package/dist/web/assets/{index-CjWC6EQ4.css → index-BmILAZrT.css} +1 -1
  84. package/dist/web/assets/index-rZHXkfMq.js +324 -0
  85. package/dist/web/index.html +2 -2
  86. package/dist/web/sw.js +1 -1
  87. package/dist/workflow-defaults/default.workflow.json +5 -3
  88. package/dist/{workspace-YUNHV4WS.js → workspace-2XODU4YJ.js} +4 -4
  89. package/package.json +3 -3
  90. package/dist/chunk-B2PHPBFU.js +0 -7
  91. package/dist/http-client-YC3UA5OZ.js +0 -11
  92. package/dist/orchestrator-JKBY7B3P.js +0 -57
  93. package/dist/server-HUHFJW7U.js +0 -48
  94. package/dist/web/assets/index-DBUtUSHK.js +0 -323
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-V4IE7HJY.js";
4
4
  import {
5
5
  getBackendCapabilities
6
- } from "./chunk-YHEQTVFV.js";
6
+ } from "./chunk-AZHWLLPP.js";
7
7
  import {
8
8
  ensureVersionPrefix
9
9
  } from "./chunk-HNCM3D7Y.js";
@@ -17,7 +17,7 @@ import {
17
17
  import {
18
18
  LLMError,
19
19
  OpenAIHttpClient
20
- } from "./chunk-V4664YKR.js";
20
+ } from "./chunk-OXSTNSCF.js";
21
21
  import {
22
22
  logger
23
23
  } from "./chunk-K44MW7JJ.js";
@@ -310,4 +310,4 @@ function createLLMClient(config, initialBackend = "unknown") {
310
310
  export {
311
311
  createLLMClient
312
312
  };
313
- //# sourceMappingURL=chunk-43M7QZMX.js.map
313
+ //# sourceMappingURL=chunk-LXYPMFTH.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  createLLMClient
3
- } from "./chunk-43M7QZMX.js";
3
+ } from "./chunk-LXYPMFTH.js";
4
4
  import {
5
5
  getModelProfile
6
6
  } from "./chunk-V4IE7HJY.js";
7
7
  import {
8
8
  getBackendCapabilities
9
- } from "./chunk-YHEQTVFV.js";
9
+ } from "./chunk-AZHWLLPP.js";
10
10
  import {
11
11
  buildModelsUrl,
12
12
  ensureVersionPrefix,
@@ -803,4 +803,4 @@ export {
803
803
  parseDefaultModelSelection,
804
804
  createProviderManager
805
805
  };
806
- //# sourceMappingURL=chunk-TCGWZBTS.js.map
806
+ //# sourceMappingURL=chunk-MUSPWEBB.js.map
@@ -0,0 +1,7 @@
1
+ // src/constants.ts
2
+ var VERSION = "2.0.114";
3
+
4
+ export {
5
+ VERSION
6
+ };
7
+ //# sourceMappingURL=chunk-NCZRWCJN.js.map
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-V4IE7HJY.js";
7
7
  import {
8
8
  getBackendCapabilities
9
- } from "./chunk-YHEQTVFV.js";
9
+ } from "./chunk-AZHWLLPP.js";
10
10
  import {
11
11
  buildModelParams
12
12
  } from "./chunk-L737Y63F.js";
@@ -438,4 +438,4 @@ export {
438
438
  createChatDoneEvent,
439
439
  consumeStreamGenerator
440
440
  };
441
- //# sourceMappingURL=chunk-JR54MDZI.js.map
441
+ //# sourceMappingURL=chunk-NLO64UE3.js.map
@@ -1,27 +1,27 @@
1
1
  import {
2
2
  combineEventsWithSnapshot,
3
3
  getEventStore
4
- } from "./chunk-CP44U7BT.js";
4
+ } from "./chunk-JXLRL5JR.js";
5
5
  import {
6
6
  createContextStateMessage,
7
7
  createSessionStateMessage
8
- } from "./chunk-4NMGX5F2.js";
8
+ } from "./chunk-I7FY2LTR.js";
9
9
  import {
10
10
  getPendingQuestionsForSession
11
11
  } from "./chunk-JURM3RPZ.js";
12
12
  import {
13
13
  buildMessagesFromStoredEvents,
14
14
  foldPendingConfirmations
15
- } from "./chunk-YB6WYVNY.js";
15
+ } from "./chunk-UTIQ7OO5.js";
16
16
  import {
17
17
  updateSessionMetadata
18
- } from "./chunk-AZFZE36I.js";
18
+ } from "./chunk-3O77NT4T.js";
19
19
  import {
20
20
  getRuntimeConfig
21
- } from "./chunk-BYSUSSSC.js";
21
+ } from "./chunk-UPBWEHIL.js";
22
22
  import {
23
23
  getMaxVisibleItems
24
- } from "./chunk-WWTYWLDM.js";
24
+ } from "./chunk-HP5CIB66.js";
25
25
  import {
26
26
  logger
27
27
  } from "./chunk-K44MW7JJ.js";
@@ -153,7 +153,7 @@ async function generateSessionNameForSession(sessionId, userMessage, deps, signa
153
153
  client = deps.getLLMClient();
154
154
  client.setModel(providerConfig.model);
155
155
  } else if (providerConfig) {
156
- const { createLLMClient } = await import("./client-3LJGD6KY.js");
156
+ const { createLLMClient } = await import("./client-EM7ISGUP.js");
157
157
  client = createLLMClient({
158
158
  llm: {
159
159
  baseUrl: providerConfig.baseUrl,
@@ -204,4 +204,4 @@ export {
204
204
  needsNameGeneration,
205
205
  generateSessionNameForSession
206
206
  };
207
- //# sourceMappingURL=chunk-3R43CMLS.js.map
207
+ //# sourceMappingURL=chunk-NWJLWLKF.js.map
@@ -0,0 +1,128 @@
1
+ import {
2
+ logger
3
+ } from "./chunk-K44MW7JJ.js";
4
+
5
+ // src/server/shared/item-loader.ts
6
+ import { readdir, readFile, access, writeFile, mkdir, unlink } from "fs/promises";
7
+ import { join } from "path";
8
+ import { constants } from "fs";
9
+ import matter from "gray-matter";
10
+ async function pathExists(path) {
11
+ try {
12
+ await access(path, constants.R_OK);
13
+ return true;
14
+ } catch {
15
+ return false;
16
+ }
17
+ }
18
+ async function getDefaultIds(dir, extension) {
19
+ try {
20
+ const files = (await readdir(dir)).filter((f) => f.endsWith(extension));
21
+ return files.map((f) => f.replace(extension, ""));
22
+ } catch {
23
+ return [];
24
+ }
25
+ }
26
+ async function loadItemsFromDir(dir, options) {
27
+ if (!await pathExists(dir)) {
28
+ return [];
29
+ }
30
+ let files;
31
+ try {
32
+ files = (await readdir(dir)).filter((f) => f.endsWith(options.extension));
33
+ } catch {
34
+ return [];
35
+ }
36
+ const items = [];
37
+ for (const file of files) {
38
+ try {
39
+ const raw = await readFile(join(dir, file), "utf-8");
40
+ const { data, content } = matter(raw);
41
+ if (data.id && content.trim()) {
42
+ items.push({
43
+ metadata: data,
44
+ prompt: content.trim()
45
+ });
46
+ } else {
47
+ logger.warn(`Skipping invalid ${options.logName} file`, { file });
48
+ }
49
+ } catch (err) {
50
+ logger.warn(`Failed to parse ${options.logName} file`, {
51
+ file,
52
+ error: err instanceof Error ? err.message : String(err)
53
+ });
54
+ }
55
+ }
56
+ return items;
57
+ }
58
+ async function findFileByInternalId(dir, id, ext) {
59
+ if (!await pathExists(dir)) return null;
60
+ let files;
61
+ try {
62
+ files = await readdir(dir);
63
+ } catch {
64
+ return null;
65
+ }
66
+ for (const file of files) {
67
+ if (!file.endsWith(ext)) continue;
68
+ try {
69
+ const raw = await readFile(join(dir, file), "utf-8");
70
+ let parsedId;
71
+ if (ext === ".md" || ext === ".mdx") {
72
+ const { data } = matter(raw);
73
+ parsedId = data.id;
74
+ } else {
75
+ const parsed = JSON.parse(raw);
76
+ parsedId = parsed.metadata?.id ?? parsed.id;
77
+ }
78
+ if (parsedId === id) {
79
+ return join(dir, file);
80
+ }
81
+ } catch {
82
+ }
83
+ }
84
+ return null;
85
+ }
86
+ async function saveItemToDir(dir, item, ext, serialize) {
87
+ if (!await pathExists(dir)) {
88
+ await mkdir(dir, { recursive: true });
89
+ }
90
+ const meta = item.metadata;
91
+ const filePath = join(dir, `${meta.id}${ext}`);
92
+ const existing = await findFileByInternalId(dir, meta.id, ext);
93
+ if (existing && existing !== filePath) {
94
+ await unlink(existing).catch(() => {
95
+ });
96
+ }
97
+ await writeFile(filePath, serialize(item), "utf-8");
98
+ }
99
+ var jsonSerializer = (item) => JSON.stringify(item, null, 2) + "\n";
100
+ async function deleteItemFromDir(dir, id, ext) {
101
+ const fastPath = join(dir, `${id}${ext}`);
102
+ try {
103
+ await unlink(fastPath);
104
+ return { success: true };
105
+ } catch {
106
+ const found = await findFileByInternalId(dir, id, ext);
107
+ if (found) {
108
+ try {
109
+ await unlink(found);
110
+ return { success: true };
111
+ } catch {
112
+ return { success: false };
113
+ }
114
+ }
115
+ return { success: false };
116
+ }
117
+ }
118
+
119
+ export {
120
+ pathExists,
121
+ getDefaultIds,
122
+ loadItemsFromDir,
123
+ findFileByInternalId,
124
+ saveItemToDir,
125
+ jsonSerializer,
126
+ deleteItemFromDir
127
+ };
128
+ //# sourceMappingURL=chunk-OSXPQSLW.js.map