@coder/ai-sdk-agent 0.11.9 → 0.12.1

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.
@@ -126,6 +126,14 @@ waiting. It attributes nothing of the live run's output to itself — its window
126
126
  opens only when its own queued prompt materializes. If it times out first, it
127
127
  withdraws its queued prompt rather than leaving it to run unattended.
128
128
 
129
+ Recognizing "its own queued prompt" is exact on servers that record the link:
130
+ Coder stamps each message promoted from the queue with its queue entry's id
131
+ (`queued_message_id`, added in coder/coder#29859), so even two jobs queuing
132
+ byte‑identical prompts each get their own run. Older servers send no stamp, and
133
+ the SDK falls back to matching the prompt's content in queue order. There, two
134
+ byte‑identical prompts queued concurrently can be swapped if one stream
135
+ reconnect spans both promotions.
136
+
129
137
  The live run's turn is guarded symmetrically. The server starts the queued
130
138
  prompt's run **without ever emitting a terminal settle for the finished one**,
131
139
  so the SDK settles the finishing turn the moment the promoted prompt appears on
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coder/ai-sdk-agent",
3
- "version": "0.11.9",
3
+ "version": "0.12.1",
4
4
  "description": "A Vercel AI SDK-compliant agent backed by Coder Agents, Coder's server-side agent runtime. `new CoderAgent()` returns a real AI SDK Agent (generate/stream).",
5
5
  "keywords": [
6
6
  "agent",
@@ -47,10 +47,10 @@
47
47
  "ws": "^8.21.3"
48
48
  },
49
49
  "devDependencies": {
50
- "@ai-sdk/react": "4.0.116",
50
+ "@ai-sdk/react": "4.0.117",
51
51
  "@types/node": "^26.6.2",
52
52
  "@types/ws": "^8.18.1",
53
- "ai": "^7.0.113",
53
+ "ai": "^7.0.114",
54
54
  "tsup": "^8.5.1",
55
55
  "tsx": "^4.23.15",
56
56
  "typescript": "^6.0.3",