openfox 2.0.65 → 2.0.67
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.
- package/README.md +1 -0
- package/dist/agent-defaults/builder.agent.md +1 -1
- package/dist/agent-defaults/code-reviewer.agent.md +0 -1
- package/dist/agent-defaults/explorer.agent.md +0 -1
- package/dist/agent-defaults/planner.agent.md +1 -1
- package/dist/{branch.api-LAN42BA5.js → branch.api-3YJSWOZG.js} +5 -1
- package/dist/{chat-handler-MC3XZ3OV.js → chat-handler-72DFHK5K.js} +16 -13
- package/dist/{chunk-Z6H7SFQR.js → chunk-2GRUQN2B.js} +435 -170
- package/dist/{chunk-LBGHZLLH.js → chunk-4QBDV6LX.js} +17 -14
- package/dist/{chunk-RYIREJAW.js → chunk-5EO6SEGV.js} +2 -2
- package/dist/{chunk-N4K3PNOS.js → chunk-B6JUWVTK.js} +95 -29
- package/dist/{chunk-QBYQ7KDX.js → chunk-B7WGOK7G.js} +16 -15
- package/dist/{chunk-Z6W4YHJB.js → chunk-BL5LOLVA.js} +17 -1
- package/dist/{chunk-TMUBLQFC.js → chunk-C3VLGVSQ.js} +3 -3
- package/dist/{chunk-ZPIZLTWU.js → chunk-GMXKJGJ2.js} +5 -1
- package/dist/{chunk-YQ3SOPBI.js → chunk-KXVFHMSM.js} +2 -2
- package/dist/{chunk-4UYKN6JU.js → chunk-MQHMT5WF.js} +3 -3
- package/dist/{chunk-VWPY2KWH.js → chunk-PYRH4G2J.js} +9 -35
- package/dist/{chunk-BGTEIA2S.js → chunk-TFCHWMOJ.js} +23 -30
- package/dist/{chunk-AIJE3RYH.js → chunk-TFDK6VSG.js} +33 -7
- package/dist/{chunk-X5YCWKNS.js → chunk-TJO4QFDQ.js} +59 -86
- package/dist/{chunk-QJ5FH5DP.js → chunk-TMHWQYWE.js} +4 -4
- package/dist/chunk-VLV3XWZS.js +191 -0
- package/dist/chunk-WGMJCFCE.js +14 -0
- package/dist/chunk-X5DOUA3Z.js +66 -0
- package/dist/{chunk-PXJ4NOP4.js → chunk-XUPKS5FL.js} +6 -4
- package/dist/{chunk-UEIQKG5P.js → chunk-YU6DZAVA.js} +303 -360
- package/dist/{chunk-OESYKZCM.js → chunk-ZLON3JTI.js} +3 -3
- package/dist/cli/dev.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/{client-LAKW7TA5.js → client-BUX62J2K.js} +3 -3
- package/dist/{client-pure-DO3S675T.js → client-pure-U6ZYUPJQ.js} +6 -4
- package/dist/{compactor-I3N56PSJ.js → compactor-74CZVUWI.js} +9 -7
- package/dist/{events-52XADT6Y.js → events-CDQ4HASP.js} +4 -4
- package/dist/{folding-2BGFLV5J.js → folding-V2K34EGN.js} +2 -2
- package/dist/{inspect-proxy-BV25JERQ.js → inspect-proxy-OVEFBJ26.js} +4 -4
- package/dist/{manager-344C5JLZ.js → manager-JXYRGR6B.js} +6 -2
- package/dist/{orchestrator-IYJRQQKB.js → orchestrator-FEMPJOZD.js} +15 -14
- package/dist/package.json +2 -1
- package/dist/platform-AB3GIEGO.js +21 -0
- package/dist/{processor-LUXKVIED.js → processor-QB3NMRMO.js} +16 -13
- package/dist/{project-creator-IDW7RACH.js → project-creator-EMGRSPYS.js} +18 -5
- package/dist/{projects-BY227WT2.js → projects-7HSBZY2D.js} +3 -3
- package/dist/{protocol-Cq66hdDX.d.ts → protocol-42f_Png6.d.ts} +1 -1
- package/dist/provider/index.d.ts +4 -4
- package/dist/{provider-GYOW4OWQ.js → provider-BDH6JGZB.js} +4 -4
- package/dist/{provider-manager-HRHNF73A.js → provider-manager-D3KIOD5E.js} +4 -4
- package/dist/{serve-ZRTWVOL2.js → serve-32FAA4FX.js} +20 -17
- package/dist/server/index.d.ts +26 -8
- package/dist/server/index.js +19 -16
- package/dist/server-OYE7GERR.js +37 -0
- package/dist/{settings-JA4XUR3W.js → settings-6ZPWOBWL.js} +3 -3
- package/dist/shared/index.d.ts +3 -3
- package/dist/{tools-ZZM36DAZ.js → tools-INWP6FGV.js} +14 -11
- package/dist/{types-CDZakn7f.d.ts → types-apiMd7Df.d.ts} +1 -1
- package/dist/{types-akHmgvBk.d.ts → types-vezAEt_y.d.ts} +3 -1
- package/dist/web/assets/{index-Dc05znz4.css → index-BELeAs12.css} +1 -1
- package/dist/web/assets/index-C3n65CNu.js +303 -0
- package/dist/web/index.html +2 -2
- package/dist/web/sw.js +1 -1
- package/dist/worktree-6U45P63P.js +30 -0
- package/package.json +2 -1
- package/dist/server-PXXGMFBT.js +0 -34
- package/dist/web/assets/index-Bsi_le80.js +0 -303
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SETTINGS_KEYS,
|
|
3
|
+
getSetting
|
|
4
|
+
} from "./chunk-XUPKS5FL.js";
|
|
5
|
+
|
|
6
|
+
// src/server/utils/platform.ts
|
|
7
|
+
import os from "os";
|
|
8
|
+
import { existsSync } from "fs";
|
|
9
|
+
import { join } from "path";
|
|
10
|
+
function findGitBash() {
|
|
11
|
+
const candidates = [
|
|
12
|
+
process.env["ProgramFiles"] && join(process.env["ProgramFiles"], "Git", "bin", "bash.exe"),
|
|
13
|
+
process.env["ProgramFiles(x86)"] && join(process.env["ProgramFiles(x86)"], "Git", "bin", "bash.exe"),
|
|
14
|
+
process.env["LocalAppData"] && join(process.env["LocalAppData"], "Programs", "Git", "bin", "bash.exe")
|
|
15
|
+
].filter((p) => !!p);
|
|
16
|
+
return candidates.find((p) => existsSync(p)) ?? null;
|
|
17
|
+
}
|
|
18
|
+
var CMD_SHELL = { command: "cmd.exe", args: ["/c"] };
|
|
19
|
+
var WINDOWS_SHELLS = {
|
|
20
|
+
cmd: () => CMD_SHELL,
|
|
21
|
+
powershell: () => ({ command: "powershell.exe", args: ["-NoProfile", "-Command"] }),
|
|
22
|
+
gitbash: () => {
|
|
23
|
+
const bash = findGitBash();
|
|
24
|
+
return bash ? { command: bash, args: ["-c"] } : null;
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
function listAvailableShells() {
|
|
28
|
+
if (process.platform !== "win32") {
|
|
29
|
+
return [];
|
|
30
|
+
}
|
|
31
|
+
return [
|
|
32
|
+
{ id: "cmd", label: "cmd.exe", available: true },
|
|
33
|
+
{ id: "powershell", label: "PowerShell", available: true },
|
|
34
|
+
{ id: "gitbash", label: "Git Bash", available: findGitBash() !== null }
|
|
35
|
+
];
|
|
36
|
+
}
|
|
37
|
+
function getPlatformShell() {
|
|
38
|
+
if (process.platform === "win32") {
|
|
39
|
+
const choice = getSetting(SETTINGS_KEYS.TOOLS_SHELL) ?? "cmd";
|
|
40
|
+
return WINDOWS_SHELLS[choice]?.() ?? CMD_SHELL;
|
|
41
|
+
}
|
|
42
|
+
const userShell = os.userInfo().shell;
|
|
43
|
+
if (userShell) {
|
|
44
|
+
return { command: userShell, args: ["-c"] };
|
|
45
|
+
}
|
|
46
|
+
return { command: "sh", args: ["-c"] };
|
|
47
|
+
}
|
|
48
|
+
function getPathSeparator() {
|
|
49
|
+
return process.platform === "win32" ? ";" : ":";
|
|
50
|
+
}
|
|
51
|
+
function isWindowsPath(path) {
|
|
52
|
+
return /^[A-Za-z]:[/\\]/.test(path);
|
|
53
|
+
}
|
|
54
|
+
function isAbsolutePath(path) {
|
|
55
|
+
return path.startsWith("/") || isWindowsPath(path);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export {
|
|
59
|
+
findGitBash,
|
|
60
|
+
listAvailableShells,
|
|
61
|
+
getPlatformShell,
|
|
62
|
+
getPathSeparator,
|
|
63
|
+
isWindowsPath,
|
|
64
|
+
isAbsolutePath
|
|
65
|
+
};
|
|
66
|
+
//# sourceMappingURL=chunk-X5DOUA3Z.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getDatabase
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GMXKJGJ2.js";
|
|
4
4
|
|
|
5
5
|
// src/server/db/settings.ts
|
|
6
6
|
var SETTINGS_KEYS = {
|
|
@@ -25,7 +25,8 @@ var SETTINGS_KEYS = {
|
|
|
25
25
|
SEARCH_TAVILY_API_KEY: "search.tavilyApiKey",
|
|
26
26
|
SEARCH_SEARXNG_URL: "search.searxngUrl",
|
|
27
27
|
SEARCH_SEARXNG_API_KEY: "search.searxngApiKey",
|
|
28
|
-
TOOLS_USE_RTK: "tools.useRtk"
|
|
28
|
+
TOOLS_USE_RTK: "tools.useRtk",
|
|
29
|
+
TOOLS_SHELL: "tools.shell"
|
|
29
30
|
};
|
|
30
31
|
var SETTINGS_DEFAULTS = {
|
|
31
32
|
[SETTINGS_KEYS.DISPLAY_SHOW_THINKING]: "true",
|
|
@@ -51,7 +52,8 @@ var SETTINGS_DEFAULTS = {
|
|
|
51
52
|
{ type: "chord", key: "4", modifiers: ["ctrl"] }
|
|
52
53
|
]
|
|
53
54
|
}),
|
|
54
|
-
[SETTINGS_KEYS.TOOLS_USE_RTK]: "false"
|
|
55
|
+
[SETTINGS_KEYS.TOOLS_USE_RTK]: "false",
|
|
56
|
+
[SETTINGS_KEYS.TOOLS_SHELL]: "cmd"
|
|
55
57
|
};
|
|
56
58
|
function getSetting(key) {
|
|
57
59
|
try {
|
|
@@ -99,4 +101,4 @@ export {
|
|
|
99
101
|
deleteSetting,
|
|
100
102
|
getAllSettings
|
|
101
103
|
};
|
|
102
|
-
//# sourceMappingURL=chunk-
|
|
104
|
+
//# sourceMappingURL=chunk-XUPKS5FL.js.map
|