@ziggs-ai/agent-sdk 0.46.1 → 0.46.2
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/CHANGELOG.md +4 -0
- package/dist/platform/inboxLoop.js +5 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 0.46.2
|
|
6
|
+
|
|
7
|
+
- A host running with `sharedInbox` against a server that does not know shared hosts now leads, so the agent's declared polls start and its saved wake-ups are restored. It used to wait for a leadership report that server never sends.
|
|
8
|
+
|
|
5
9
|
## 0.46.1
|
|
6
10
|
|
|
7
11
|
## 0.46.0
|
|
@@ -210,8 +210,11 @@ export async function pollInboxOnce(deps, waitSeconds = 0, opts = {}) {
|
|
|
210
210
|
// A response may race shutdown. Do not enqueue another wake after stopping;
|
|
211
211
|
// an already-running pass keeps its lease through its final acknowledgement.
|
|
212
212
|
opts.signal?.throwIfAborted();
|
|
213
|
-
|
|
214
|
-
|
|
213
|
+
// A server that does not know shared hosts sends no `host` and applies the
|
|
214
|
+
// one-host rule: this process holds the lease and is the only host, so it
|
|
215
|
+
// leads. Without this, polls and saved wake-ups would never start against it.
|
|
216
|
+
if (shared)
|
|
217
|
+
deps.onLeadership?.(envelope.host ? envelope.host.leader : true);
|
|
215
218
|
let messagesDelivered = 0;
|
|
216
219
|
let resourceEvents = 0;
|
|
217
220
|
let tasksDelivered = 0;
|