@agent-commons/sdk 0.2.3 → 0.3.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.mts CHANGED
@@ -188,9 +188,13 @@ interface ChatMessage {
188
188
  tool_call_id?: string;
189
189
  name?: string;
190
190
  }
191
- type StreamEventType = 'token' | 'tool' | 'toolProgress' | 'toolStart' | 'toolEnd' | 'agent_step' | 'final' | 'completed' | 'failed' | 'cancelled' | 'status' | 'keepalive' | 'cli_tool_request' | 'error';
191
+ type StreamEventType = 'token' | 'tool' | 'toolProgress' | 'toolStart' | 'toolEnd' | 'agent_step' | 'run_started' | 'final' | 'completed' | 'failed' | 'cancelled' | 'status' | 'keepalive' | 'cli_tool_request' | 'error';
192
192
  interface StreamEvent {
193
193
  type: StreamEventType;
194
+ /** Identifies the run; pass to POST /v1/agents/runs/:runId/stream to resume a dropped stream. */
195
+ runId?: string;
196
+ /** Monotonic per-run sequence number; resume with `after: <last seen seq>` to avoid duplicates. */
197
+ seq?: number;
194
198
  phase?: 'commentary' | 'final_answer' | string;
195
199
  role?: string;
196
200
  content?: string;
package/dist/index.d.ts CHANGED
@@ -188,9 +188,13 @@ interface ChatMessage {
188
188
  tool_call_id?: string;
189
189
  name?: string;
190
190
  }
191
- type StreamEventType = 'token' | 'tool' | 'toolProgress' | 'toolStart' | 'toolEnd' | 'agent_step' | 'final' | 'completed' | 'failed' | 'cancelled' | 'status' | 'keepalive' | 'cli_tool_request' | 'error';
191
+ type StreamEventType = 'token' | 'tool' | 'toolProgress' | 'toolStart' | 'toolEnd' | 'agent_step' | 'run_started' | 'final' | 'completed' | 'failed' | 'cancelled' | 'status' | 'keepalive' | 'cli_tool_request' | 'error';
192
192
  interface StreamEvent {
193
193
  type: StreamEventType;
194
+ /** Identifies the run; pass to POST /v1/agents/runs/:runId/stream to resume a dropped stream. */
195
+ runId?: string;
196
+ /** Monotonic per-run sequence number; resume with `after: <last seen seq>` to avoid duplicates. */
197
+ seq?: number;
194
198
  phase?: 'commentary' | 'final_answer' | string;
195
199
  role?: string;
196
200
  content?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-commons/sdk",
3
- "version": "0.2.3",
3
+ "version": "0.3.0",
4
4
  "description": "Typed client SDK for the Agent Commons API",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",