agentgui 1.0.615 → 1.0.616
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 +0 -1
- package/docs/index.html +0 -1
- package/lib/ws-handlers-util.js +1 -12
- package/package.json +1 -1
- package/scripts/take-screenshots.sh +14 -1
- package/server.js +0 -12
package/README.md
CHANGED
|
@@ -87,7 +87,6 @@ Server starts on `http://localhost:3000/gm/`
|
|
|
87
87
|
- SQLite 3
|
|
88
88
|
- Modern browser (Chrome, Firefox, Safari, Edge)
|
|
89
89
|
- At least one supported AI coding agent installed (see table above)
|
|
90
|
-
- Optional: Python 3.9+ for text-to-speech on Windows
|
|
91
90
|
|
|
92
91
|
## Architecture
|
|
93
92
|
|
package/docs/index.html
CHANGED
|
@@ -594,7 +594,6 @@ npm run dev</code></pre>
|
|
|
594
594
|
<li style="padding: 0.5rem 0; color: #4b5563;">✓ Node.js 18+ (LTS recommended)</li>
|
|
595
595
|
<li style="padding: 0.5rem 0; color: #4b5563;">✓ npm or bun package manager</li>
|
|
596
596
|
<li style="padding: 0.5rem 0; color: #4b5563;">✓ At least one AI coding agent (Claude Code, Gemini CLI, etc.)</li>
|
|
597
|
-
<li style="padding: 0.5rem 0; color: #4b5563;">✓ Optional: Python 3.9+ for TTS on Windows</li>
|
|
598
597
|
</ul>
|
|
599
598
|
</div>
|
|
600
599
|
</div>
|
package/lib/ws-handlers-util.js
CHANGED
|
@@ -79,19 +79,8 @@ export function register(router, deps) {
|
|
|
79
79
|
try {
|
|
80
80
|
const { getStatus } = await getSpeech();
|
|
81
81
|
const base = getStatus();
|
|
82
|
-
let pythonDetected = false, pythonVersion = null;
|
|
83
|
-
try {
|
|
84
|
-
const { createRequire } = await import('module');
|
|
85
|
-
const r = createRequire(import.meta.url);
|
|
86
|
-
const serverTTS = r('webtalk/server-tts');
|
|
87
|
-
if (typeof serverTTS.detectPython === 'function') {
|
|
88
|
-
const py = serverTTS.detectPython();
|
|
89
|
-
pythonDetected = py.found;
|
|
90
|
-
pythonVersion = py.version || null;
|
|
91
|
-
}
|
|
92
|
-
} catch {}
|
|
93
82
|
return {
|
|
94
|
-
...base,
|
|
83
|
+
...base,
|
|
95
84
|
setupMessage: base.ttsReady ? 'pocket-tts ready' : 'Will setup on first TTS request',
|
|
96
85
|
modelsDownloading: modelDownloadState.downloading,
|
|
97
86
|
modelsComplete: modelDownloadState.complete,
|
package/package.json
CHANGED
|
@@ -30,8 +30,17 @@ ab screenshot --full "$DOCS_DIR/screenshot-main.png"
|
|
|
30
30
|
echo "Saved screenshot-main.png"
|
|
31
31
|
|
|
32
32
|
ab eval 'document.querySelector(".conversation-item")?.click()'
|
|
33
|
-
sleep
|
|
33
|
+
sleep 3
|
|
34
34
|
ab wait --load networkidle
|
|
35
|
+
sleep 2
|
|
36
|
+
|
|
37
|
+
# Wait for conversation content to render
|
|
38
|
+
ab eval '(async()=>{for(let i=0;i<20;i++){if(document.querySelector("#output .event-block, #output .message-block")){return"ready"}await new Promise(r=>setTimeout(r,500))}return"timeout"})()'
|
|
39
|
+
sleep 1
|
|
40
|
+
|
|
41
|
+
# Scroll down to show action content
|
|
42
|
+
ab eval 'var s=document.getElementById("output-scroll")||document.getElementById("output");if(s){s.scrollTop=Math.min(s.scrollHeight*0.4,800)}'
|
|
43
|
+
sleep 1
|
|
35
44
|
|
|
36
45
|
ab screenshot --full "$DOCS_DIR/screenshot-chat.png"
|
|
37
46
|
echo "Saved screenshot-chat.png"
|
|
@@ -56,6 +65,10 @@ ab screenshot --full "$DOCS_DIR/screenshot-files.png"
|
|
|
56
65
|
echo "Saved screenshot-files.png"
|
|
57
66
|
|
|
58
67
|
ab eval 'document.querySelector(".view-toggle-btn[data-view=\"terminal\"]")?.click()'
|
|
68
|
+
sleep 3
|
|
69
|
+
|
|
70
|
+
# Wait for terminal to have content
|
|
71
|
+
ab eval '(async()=>{for(let i=0;i<10;i++){var t=document.querySelector("#terminalOutput .xterm-screen");if(t&&t.textContent.trim().length>5)return"ready";await new Promise(r=>setTimeout(r,500))}return"timeout"})()'
|
|
59
72
|
sleep 1
|
|
60
73
|
|
|
61
74
|
ab screenshot --full "$DOCS_DIR/screenshot-terminal.png"
|
package/server.js
CHANGED
|
@@ -2938,20 +2938,8 @@ const server = http.createServer(async (req, res) => {
|
|
|
2938
2938
|
try {
|
|
2939
2939
|
const { getStatus } = await getSpeech();
|
|
2940
2940
|
const baseStatus = getStatus();
|
|
2941
|
-
let pythonDetected = false, pythonVersion = null;
|
|
2942
|
-
try {
|
|
2943
|
-
const r = createRequire(import.meta.url);
|
|
2944
|
-
const serverTTS = r('webtalk/server-tts');
|
|
2945
|
-
if (typeof serverTTS.detectPython === 'function') {
|
|
2946
|
-
const pyInfo = serverTTS.detectPython();
|
|
2947
|
-
pythonDetected = pyInfo.found;
|
|
2948
|
-
pythonVersion = pyInfo.version || null;
|
|
2949
|
-
}
|
|
2950
|
-
} catch(e) {}
|
|
2951
2941
|
sendJSON(req, res, 200, {
|
|
2952
2942
|
...baseStatus,
|
|
2953
|
-
pythonDetected,
|
|
2954
|
-
pythonVersion,
|
|
2955
2943
|
setupMessage: baseStatus.ttsReady ? 'pocket-tts ready' : 'Will setup on first TTS request',
|
|
2956
2944
|
modelsDownloading: modelDownloadState.downloading,
|
|
2957
2945
|
modelsComplete: modelDownloadState.complete,
|