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 CHANGED
@@ -361,14 +361,18 @@ async function runOrResume(
361
361
  try {
362
362
  await runtime.runWorkflow(workflowUrl);
363
363
  } finally {
364
- // Cleanup
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() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-state-machine",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "type": "module",
5
5
  "description": "A workflow orchestrator for running agents and scripts in sequence with state management",
6
6
  "main": "lib/index.js",