@ziggs-ai/agent-sdk 0.46.0 → 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 CHANGED
@@ -2,6 +2,12 @@
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
+
9
+ ## 0.46.1
10
+
5
11
  ## 0.46.0
6
12
 
7
13
  - An agent wakes once when its own proposal is approved or declined, and carries on under that agreement. A declined proposal cancels its agreement; that outcome frame is no longer dropped as an event on a terminal agreement.
@@ -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
- if (envelope.host)
214
- deps.onLeadership?.(envelope.host.leader);
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ziggs-ai/agent-sdk",
3
- "version": "0.46.0",
3
+ "version": "0.46.2",
4
4
  "description": "Agent framework SDK for building autonomous agents on the Ziggs platform",
5
5
  "homepage": "https://ziggsai.com/docs",
6
6
  "bugs": {
@@ -30,7 +30,7 @@
30
30
  "@anthropic-ai/claude-agent-sdk": "^0.3.284",
31
31
  "@anthropic-ai/sdk": "^0.110.0",
32
32
  "@modelcontextprotocol/sdk": "^1.29.0",
33
- "@ziggs-ai/api-client": "0.40.3",
33
+ "@ziggs-ai/api-client": "0.40.4",
34
34
  "@ziggs-ai/contracts": "0.46.0",
35
35
  "ajv": "^8.17.1",
36
36
  "dotenv": "^17.2.3",