@rivus/agent 0.12.6 → 0.12.7

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3638,14 +3638,10 @@ function createCoalescingFeishuPublisher(options) {
3638
3638
  pendingTextByRun.set(action.runId, action.text);
3639
3639
  });
3640
3640
  case "handoff": return options.publisher.publish(action);
3641
- case "finish": return Effect.gen(function* () {
3642
- pendingTextByRun.set(action.runId, action.text);
3643
- yield* flushRun(action.runId);
3644
- yield* options.publisher.publish(action);
3645
- });
3641
+ case "finish":
3646
3642
  case "fail":
3647
3643
  case "cancel": return Effect.gen(function* () {
3648
- yield* flushRun(action.runId);
3644
+ yield* Effect.sync(() => pendingTextByRun.delete(action.runId));
3649
3645
  yield* options.publisher.publish(action);
3650
3646
  });
3651
3647
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rivus/agent",
3
- "version": "0.12.6",
3
+ "version": "0.12.7",
4
4
  "description": "A local agent daemon core built around a usable agent harness and domain events.",
5
5
  "type": "module",
6
6
  "license": "MIT",