vivream 0.1.1 → 0.1.3
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 +12 -4
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -16,7 +16,8 @@ const VERSION = PKG_JSON.version;
|
|
|
16
16
|
// so the standalone server is shipped as a tarball and extracted here on first run.
|
|
17
17
|
const BUNDLE_PATH = path.join(PKG_ROOT, 'vivream-server.tar.gz');
|
|
18
18
|
const CACHE_DIR = path.join(os.homedir(), '.vivream', 'cache', VERSION);
|
|
19
|
-
|
|
19
|
+
// pnpm monorepo standalone 구조: server.js 는 apps/web/ 하위에 위치
|
|
20
|
+
const SERVER_PATH = path.join(CACHE_DIR, 'apps', 'web', 'server.js');
|
|
20
21
|
|
|
21
22
|
const DEFAULT_PORT = 3001;
|
|
22
23
|
|
|
@@ -108,14 +109,21 @@ async function main() {
|
|
|
108
109
|
};
|
|
109
110
|
|
|
110
111
|
server.stdout.on('data', (d) => {
|
|
111
|
-
|
|
112
|
+
const s = d.toString();
|
|
113
|
+
if (/ready|started|listening/i.test(s)) handleReady();
|
|
112
114
|
});
|
|
113
115
|
|
|
116
|
+
// Forward server errors to console so user can see what went wrong
|
|
117
|
+
server.stderr.on('data', (d) => process.stderr.write(d));
|
|
118
|
+
|
|
114
119
|
// Fallback: open browser after 3s regardless
|
|
115
120
|
setTimeout(handleReady, 3000);
|
|
116
121
|
|
|
117
|
-
server.on('error', () => { process.stderr.write(
|
|
118
|
-
server.on('exit', (code) => {
|
|
122
|
+
server.on('error', (e) => { process.stderr.write(e.message + '\n'); process.exit(1); });
|
|
123
|
+
server.on('exit', (code) => {
|
|
124
|
+
if (!ready) process.stderr.write(MSG.error + '\n');
|
|
125
|
+
if (code && code !== 0) process.exit(code);
|
|
126
|
+
});
|
|
119
127
|
|
|
120
128
|
const shutdown = () => { server.kill('SIGTERM'); setTimeout(() => process.exit(0), 500); };
|
|
121
129
|
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.3",
|
|
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",
|