@coder/ai-sdk-agent 0.11.9 → 0.12.0
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/dist/index.d.ts +9 -1
- package/dist/index.js +21 -1
- package/dist/index.js.map +1 -1
- package/docs/durable-workflows.md +8 -0
- package/package.json +1 -1
|
@@ -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.
|
|
3
|
+
"version": "0.12.0",
|
|
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",
|