@nettee/beacon 0.1.10 → 0.1.11

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.
@@ -113,7 +113,7 @@ export class RunOrchestrator {
113
113
  else {
114
114
  const current = await this.record(triggerKey);
115
115
  if (current[field]?.state !== "pending") {
116
- throw new Error(`Cannot resume non-pending ${field} for Trigger ${triggerKey}`);
116
+ return;
117
117
  }
118
118
  }
119
119
  await this.options.store.update(triggerKey, (current) => ({
@@ -329,7 +329,9 @@ export class RunOrchestrator {
329
329
  (latest.run.state === "succeeded" || latest.run.state === "failed")) {
330
330
  const outcome = latest.finalOutcome.content;
331
331
  const missingReply = outcome.reply.kind === "text" && !latest.delivery;
332
- const missingNotify = Boolean(outcome.notify) && !latest.notifyDelivery;
332
+ const missingNotify = Boolean(outcome.notify) &&
333
+ Boolean(latest.notifyTarget) &&
334
+ !latest.notifyDelivery;
333
335
  if (missingReply || missingNotify) {
334
336
  await this.deliverOutcome(latest.triggerKey);
335
337
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nettee/beacon",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "A single-host bridge from messaging and schedules to isolated agent runs",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {