operon-managed-agents 0.1.0-alpha.32 → 0.1.0-alpha.33
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.
|
@@ -367,8 +367,18 @@ class SessionDriver {
|
|
|
367
367
|
// The final look: clear the wake first, so a send landing after this read wakes the
|
|
368
368
|
// row for the next claim instead of being stranded by our release.
|
|
369
369
|
await this.lease.clearWake();
|
|
370
|
-
if (!(await this.actionable(await this.work.pending(session.id))))
|
|
370
|
+
if (!(await this.actionable(await this.work.pending(session.id)))) {
|
|
371
|
+
// A settle can land during that final look: its notice is queued and its wake run is
|
|
372
|
+
// starting. Release now and the run speaks to an unsubscribed session — its answer is
|
|
373
|
+
// journaled but never told. Hold while a run is in flight or a notice waits for one;
|
|
374
|
+
// an interrupted session still releases, its answer comes through the table.
|
|
375
|
+
const status = session.status;
|
|
376
|
+
if (status.state === "running" || (status.state === "idle" && status.hasQueuedMessages)) {
|
|
377
|
+
await this.wake.wait();
|
|
378
|
+
continue;
|
|
379
|
+
}
|
|
371
380
|
return;
|
|
381
|
+
}
|
|
372
382
|
}
|
|
373
383
|
}
|
|
374
384
|
finally {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "operon-managed-agents",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.33",
|
|
4
4
|
"description": "Managed server and TypeScript client for operon-agents.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -44,12 +44,12 @@
|
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"zod": "^4.0.0",
|
|
47
|
-
"operon-agents": "0.1.0-alpha.
|
|
47
|
+
"operon-agents": "0.1.0-alpha.33"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@earendil-works/pi-ai": "1.5.0",
|
|
51
51
|
"pg": "^8.21.0",
|
|
52
|
-
"operon-agents-core": "0.1.0-alpha.
|
|
52
|
+
"operon-agents-core": "0.1.0-alpha.33"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"clean": "rm -rf dist *.tsbuildinfo",
|