@perstack/runtime 0.0.91 → 0.0.93

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/dist/bin/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { package_default, findLockfile, loadLockfile, run } from '../chunk-KU4MWRAC.js';
2
+ import { package_default, findLockfile, loadLockfile, run } from '../chunk-AA5Y27XU.js';
3
3
  import '../chunk-RG4QHAGG.js';
4
4
  import { parseWithFriendlyError, runCommandInputSchema, validateEventFilter, createFilteredEventListener, perstackConfigSchema } from '@perstack/core';
5
5
  import { Command } from 'commander';
@@ -21,7 +21,7 @@ import { APICallError, generateText, streamText } from 'ai';
21
21
  // package.json
22
22
  var package_default = {
23
23
  name: "@perstack/runtime",
24
- version: "0.0.91",
24
+ version: "0.0.93",
25
25
  description: "Perstack Runtime",
26
26
  author: "Wintermute Technologies, Inc.",
27
27
  license: "Apache-2.0",
@@ -2035,7 +2035,11 @@ var StateMachineCoordinator = class {
2035
2035
  if (!shouldContinue) {
2036
2036
  this.actor?.stop();
2037
2037
  await this.closeManagers(runState.context.skillManagers);
2038
- this.resolvePromise?.(runState.context.checkpoint);
2038
+ const cancelledCheckpoint = {
2039
+ ...runState.context.checkpoint,
2040
+ status: "stoppedByCancellation"
2041
+ };
2042
+ this.resolvePromise?.(cancelledCheckpoint);
2039
2043
  return;
2040
2044
  }
2041
2045
  }
@@ -3762,6 +3766,10 @@ async function run(runInput, options) {
3762
3766
  storeJob({ ...job, status: "stoppedByError", finishedAt: Date.now() });
3763
3767
  return resultCheckpoint;
3764
3768
  }
3769
+ case "stoppedByCancellation": {
3770
+ storeJob({ ...job, status: "stoppedByCancellation", finishedAt: Date.now() });
3771
+ return resultCheckpoint;
3772
+ }
3765
3773
  default:
3766
3774
  throw new Error("Run stopped by unknown reason");
3767
3775
  }
@@ -3769,5 +3777,5 @@ async function run(runInput, options) {
3769
3777
  }
3770
3778
 
3771
3779
  export { findLockfile, getLockfileExpertToolDefinitions, getModel, loadLockfile, package_default, run, runtimeStateMachine };
3772
- //# sourceMappingURL=chunk-KU4MWRAC.js.map
3773
- //# sourceMappingURL=chunk-KU4MWRAC.js.map
3780
+ //# sourceMappingURL=chunk-AA5Y27XU.js.map
3781
+ //# sourceMappingURL=chunk-AA5Y27XU.js.map