openfox 1.6.77 → 1.6.79
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/dist/{auto-compaction-GOHNI2R2.js → auto-compaction-KTA6H4HP.js} +5 -5
- package/dist/{chat-handler-K2RDXBO6.js → chat-handler-EKAO6CIB.js} +8 -8
- package/dist/{chunk-I7JVS7V5.js → chunk-2IZMUXMP.js} +3 -3
- package/dist/{chunk-XSUQDB6R.js → chunk-3JU4NOQD.js} +36 -22
- package/dist/{chunk-6SYNGMU4.js → chunk-BG7QCFGG.js} +4 -4
- package/dist/{chunk-XKIEDGQF.js → chunk-DL6ZILAF.js} +1 -2
- package/dist/{chunk-OJBFC6ER.js → chunk-HOD7GVQ5.js} +3 -3
- package/dist/{chunk-UVN6AKIO.js → chunk-RJRG2VER.js} +33 -2
- package/dist/{chunk-BBC46FN4.js → chunk-TS5XFQ2D.js} +88 -48
- package/dist/{chunk-EBQYRNNU.js → chunk-UCZSBKG7.js} +176 -92
- package/dist/cli/dev.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/{events-5RIXWI5Y.js → events-ND5GZBT2.js} +7 -5
- package/dist/{folding-JNOUTI5Z.js → folding-XIKR6AFM.js} +14 -4
- package/dist/{inspect-proxy-Y75AXMRX.js → inspect-proxy-42ZXL2R5.js} +2 -2
- package/dist/{orchestrator-TW5II347.js → orchestrator-5U4O4K7V.js} +6 -6
- package/dist/package.json +1 -1
- package/dist/{processor-MZ3QIUED.js → processor-O35Q3EZT.js} +5 -5
- package/dist/{serve-FTTLGRAO.js → serve-55GF3KJW.js} +7 -7
- package/dist/server/index.js +6 -6
- package/dist/{service-D6LC3CAM.js → service-TU4XSXYJ.js} +33 -2
- package/dist/{tools-QJ5K5IJP.js → tools-W6OPDFQV.js} +5 -5
- package/dist/web/assets/{index-FjLp1t6r.js → index-BJtUJYiT.js} +49 -49
- package/dist/web/index.html +1 -1
- package/dist/web/sw.js +1 -1
- package/package.json +1 -1
|
@@ -46,6 +46,35 @@ async function createWrapperScript() {
|
|
|
46
46
|
const scriptContent = `#!/bin/bash
|
|
47
47
|
source ~/.profile 2>/dev/null || true
|
|
48
48
|
source ~/.bashrc 2>/dev/null || true
|
|
49
|
+
|
|
50
|
+
if [ -z "$DISPLAY" ] || [ -z "$WAYLAND_DISPLAY" ]; then
|
|
51
|
+
for _ in 0 1 2 3 4; do
|
|
52
|
+
if [ -z "$DISPLAY" ]; then
|
|
53
|
+
xdisplay=$(
|
|
54
|
+
ps aux --no-headers 2>/dev/null \\
|
|
55
|
+
| grep -v grep \\
|
|
56
|
+
| grep "Xwayland" \\
|
|
57
|
+
| awk '{ for (i = 1; i <= NF; i++) if ($i ~ /^:[0-9]+$/) print $i }'
|
|
58
|
+
)
|
|
59
|
+
if [ -n "$xdisplay" ]; then
|
|
60
|
+
export DISPLAY="$xdisplay"
|
|
61
|
+
for f in "$HOME/.Xauthority" "\${XDG_RUNTIME_DIR}"/xauth_*; do
|
|
62
|
+
[ -f "$f" ] && export XAUTHORITY="$f" && break
|
|
63
|
+
done 2>/dev/null
|
|
64
|
+
fi
|
|
65
|
+
fi
|
|
66
|
+
|
|
67
|
+
if [ -z "$WAYLAND_DISPLAY" ]; then
|
|
68
|
+
socket="\${XDG_RUNTIME_DIR}/wayland-0"
|
|
69
|
+
[ -e "$socket" ] || socket="\${XDG_RUNTIME_DIR}/wayland-1"
|
|
70
|
+
[ -e "$socket" ] && export WAYLAND_DISPLAY="\${socket##*/}"
|
|
71
|
+
fi
|
|
72
|
+
|
|
73
|
+
[ -n "$DISPLAY" ] && [ -n "$WAYLAND_DISPLAY" ] && break
|
|
74
|
+
sleep 2
|
|
75
|
+
done
|
|
76
|
+
fi
|
|
77
|
+
|
|
49
78
|
exec openfox
|
|
50
79
|
`;
|
|
51
80
|
await writeFile(scriptPath, scriptContent, { encoding: "utf-8" });
|
|
@@ -58,6 +87,8 @@ async function createSystemdService() {
|
|
|
58
87
|
const servicePath = expandPath(SERVICE_PATH);
|
|
59
88
|
const serviceContent = `[Unit]
|
|
60
89
|
Description=OpenFox Agentic Coding Assistant
|
|
90
|
+
After=graphical-session.target
|
|
91
|
+
Wants=graphical-session.target
|
|
61
92
|
|
|
62
93
|
[Service]
|
|
63
94
|
Type=simple
|
|
@@ -66,7 +97,7 @@ Restart=always
|
|
|
66
97
|
RestartSec=5
|
|
67
98
|
|
|
68
99
|
[Install]
|
|
69
|
-
WantedBy=
|
|
100
|
+
WantedBy=graphical-session.target
|
|
70
101
|
`;
|
|
71
102
|
await writeFile(servicePath, serviceContent, "utf-8");
|
|
72
103
|
console.log(`Created: ${servicePath}`);
|
|
@@ -226,4 +257,4 @@ async function serviceUninstall() {
|
|
|
226
257
|
export {
|
|
227
258
|
runServiceCommand
|
|
228
259
|
};
|
|
229
|
-
//# sourceMappingURL=service-
|
|
260
|
+
//# sourceMappingURL=service-TU4XSXYJ.js.map
|
|
@@ -11,16 +11,16 @@ import {
|
|
|
11
11
|
requestPathAccess,
|
|
12
12
|
stepDoneTool,
|
|
13
13
|
validateToolAction
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-UCZSBKG7.js";
|
|
15
15
|
import "./chunk-OXI26S7U.js";
|
|
16
16
|
import "./chunk-CMQCO27Y.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-DL6ZILAF.js";
|
|
18
18
|
import "./chunk-PBGOZMVY.js";
|
|
19
19
|
import "./chunk-VRGRAQDG.js";
|
|
20
20
|
import "./chunk-CUDAT6SS.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-RJRG2VER.js";
|
|
22
22
|
import "./chunk-KIOUKC3Z.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-TS5XFQ2D.js";
|
|
24
24
|
import "./chunk-STYHKCG7.js";
|
|
25
25
|
import {
|
|
26
26
|
AskUserInterrupt,
|
|
@@ -49,4 +49,4 @@ export {
|
|
|
49
49
|
stepDoneTool,
|
|
50
50
|
validateToolAction
|
|
51
51
|
};
|
|
52
|
-
//# sourceMappingURL=tools-
|
|
52
|
+
//# sourceMappingURL=tools-W6OPDFQV.js.map
|