create-walle 0.6.1 → 0.6.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-walle",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"description": "Wall-E — your personal digital twin. AI agent that learns from Slack, email & calendar. Includes dashboard, chat, and 7 bundled skills.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"create-walle": "bin/create-walle.js"
|
|
@@ -311,6 +311,8 @@ function handleApi(req, res, url) {
|
|
|
311
311
|
lines.push('', `WALLE_MODEL=${model}`);
|
|
312
312
|
fs.writeFileSync(envPath, lines.join('\n') + '\n', { mode: 0o600 });
|
|
313
313
|
process.env.WALLE_MODEL = model;
|
|
314
|
+
// Restart Wall-E so it picks up the new model
|
|
315
|
+
_restartWalleQuiet();
|
|
314
316
|
} catch {}
|
|
315
317
|
res.end(JSON.stringify({ ok: true, model }));
|
|
316
318
|
} else if (authError) {
|
|
@@ -501,8 +503,8 @@ function handleApi(req, res, url) {
|
|
|
501
503
|
}
|
|
502
504
|
fs.writeFileSync(envPath, lines.join('\n') + '\n', { mode: 0o600 });
|
|
503
505
|
setup.clearSetupCache(); // so next / request goes to dashboard
|
|
504
|
-
// Restart Wall-E so it picks up
|
|
505
|
-
if (apiKey || gw) {
|
|
506
|
+
// Restart Wall-E so it picks up new env vars (key, gateway, or model change)
|
|
507
|
+
if (apiKey || gw || walleModel) {
|
|
506
508
|
_restartWalleQuiet();
|
|
507
509
|
}
|
|
508
510
|
res.writeHead(200, { 'Content-Type': 'application/json' });
|