agent-state-machine 2.0.2 → 2.0.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 +7 -3
- package/package.json +1 -1
- package/vercel-server/ui/index.html +677 -426
package/bin/cli.js
CHANGED
|
@@ -361,14 +361,18 @@ async function runOrResume(
|
|
|
361
361
|
try {
|
|
362
362
|
await runtime.runWorkflow(workflowUrl);
|
|
363
363
|
} finally {
|
|
364
|
-
//
|
|
365
|
-
if (remoteUrl) {
|
|
364
|
+
// Keep local server alive after run so the session remains accessible.
|
|
365
|
+
if (!useLocalServer && remoteUrl) {
|
|
366
366
|
await runtime.disableRemote();
|
|
367
367
|
}
|
|
368
|
-
if (localServer) {
|
|
368
|
+
if (!useLocalServer && localServer) {
|
|
369
369
|
localServer.close();
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
|
+
|
|
373
|
+
if (useLocalServer) {
|
|
374
|
+
console.log('Local server still running for follow session. Press Ctrl+C to stop.');
|
|
375
|
+
}
|
|
372
376
|
}
|
|
373
377
|
|
|
374
378
|
async function main() {
|