agentgui 1.0.275 → 1.0.276
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/agentgui.ico +0 -0
- package/build-portable.js +11 -1
- package/lib/ipfs-downloader.js +1 -1
- package/lib/speech.js +9 -2
- package/package.json +1 -1
package/agentgui.ico
ADDED
|
Binary file
|
package/build-portable.js
CHANGED
|
@@ -50,8 +50,18 @@ rmrf(out);
|
|
|
50
50
|
fs.mkdirSync(out, { recursive: true });
|
|
51
51
|
|
|
52
52
|
log('Compiling Windows executable...');
|
|
53
|
+
const onWindows = process.platform === 'win32';
|
|
54
|
+
const icoPath = path.join(src, 'agentgui.ico');
|
|
55
|
+
const winFlags = onWindows ? [
|
|
56
|
+
'--windows-hide-console',
|
|
57
|
+
'--windows-title=AgentGUI',
|
|
58
|
+
'--windows-description=Multi-agent GUI client for AI coding agents',
|
|
59
|
+
'--windows-version=1.0.0.0',
|
|
60
|
+
...(fs.existsSync(icoPath) ? [`--windows-icon=${icoPath}`] : []),
|
|
61
|
+
] : [];
|
|
53
62
|
execSync(
|
|
54
|
-
`~/.bun/bin/bun build --compile --target=bun-windows-x64
|
|
63
|
+
[`~/.bun/bin/bun build --compile --target=bun-windows-x64`, ...winFlags,
|
|
64
|
+
`--outfile=${path.join(out, 'agentgui.exe')}`, path.join(src, 'portable-entry.js')].join(' '),
|
|
55
65
|
{ stdio: 'inherit', cwd: src }
|
|
56
66
|
);
|
|
57
67
|
|
package/lib/ipfs-downloader.js
CHANGED
|
@@ -19,7 +19,7 @@ const CONFIG = {
|
|
|
19
19
|
TIMEOUT_MS: 30000,
|
|
20
20
|
INITIAL_BACKOFF_MS: 1000,
|
|
21
21
|
BACKOFF_MULTIPLIER: 2,
|
|
22
|
-
DOWNLOADS_DIR
|
|
22
|
+
get DOWNLOADS_DIR() { return path.join(process.env.PORTABLE_DATA_DIR || path.join(os.homedir(), '.gmgui'), 'downloads'); },
|
|
23
23
|
RESUME_THRESHOLD: 0.5
|
|
24
24
|
};
|
|
25
25
|
|
package/lib/speech.js
CHANGED
|
@@ -78,12 +78,19 @@ function synthesizeDirect(text, voiceId) {
|
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
+
function getSttOptions() {
|
|
82
|
+
if (process.env.PORTABLE_DATA_DIR) {
|
|
83
|
+
return { cacheDir: path.join(process.env.PORTABLE_DATA_DIR, 'models') };
|
|
84
|
+
}
|
|
85
|
+
return {};
|
|
86
|
+
}
|
|
87
|
+
|
|
81
88
|
function transcribe(audioBuffer) {
|
|
82
|
-
return serverSTT.transcribe(audioBuffer);
|
|
89
|
+
return serverSTT.transcribe(audioBuffer, getSttOptions());
|
|
83
90
|
}
|
|
84
91
|
|
|
85
92
|
function getSTT() {
|
|
86
|
-
return serverSTT.getSTT();
|
|
93
|
+
return serverSTT.getSTT(getSttOptions());
|
|
87
94
|
}
|
|
88
95
|
|
|
89
96
|
function synthesize(text, voiceId) {
|