vivream 0.1.1 → 0.1.2
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/bin/cli.js +10 -3
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -108,14 +108,21 @@ async function main() {
|
|
|
108
108
|
};
|
|
109
109
|
|
|
110
110
|
server.stdout.on('data', (d) => {
|
|
111
|
-
|
|
111
|
+
const s = d.toString();
|
|
112
|
+
if (/ready|started|listening/i.test(s)) handleReady();
|
|
112
113
|
});
|
|
113
114
|
|
|
115
|
+
// Forward server errors to console so user can see what went wrong
|
|
116
|
+
server.stderr.on('data', (d) => process.stderr.write(d));
|
|
117
|
+
|
|
114
118
|
// Fallback: open browser after 3s regardless
|
|
115
119
|
setTimeout(handleReady, 3000);
|
|
116
120
|
|
|
117
|
-
server.on('error', () => { process.stderr.write(
|
|
118
|
-
server.on('exit', (code) => {
|
|
121
|
+
server.on('error', (e) => { process.stderr.write(e.message + '\n'); process.exit(1); });
|
|
122
|
+
server.on('exit', (code) => {
|
|
123
|
+
if (!ready) process.stderr.write(MSG.error + '\n');
|
|
124
|
+
if (code && code !== 0) process.exit(code);
|
|
125
|
+
});
|
|
119
126
|
|
|
120
127
|
const shutdown = () => { server.kill('SIGTERM'); setTimeout(() => process.exit(0), 500); };
|
|
121
128
|
process.on('SIGINT', shutdown);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vivream",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Brain-dump in. Blueprint out. — Local AI workbench powered by your own Claude / Codex / Agy CLI",
|
|
5
5
|
"keywords": ["ai", "claude", "brain-dump", "workbench", "local-first", "mindmap", "prompt"],
|
|
6
6
|
"homepage": "https://github.com/AppSoApp/Vivream",
|