retrace-sdk 0.16.9 → 0.16.11
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/recorder.js +2 -0
- package/dist/resume.d.ts +3 -0
- package/dist/resume.js +2 -0
- package/package.json +4 -4
package/dist/recorder.js
CHANGED
|
@@ -228,6 +228,7 @@ export class TraceRecorder {
|
|
|
228
228
|
if (span.ended_at) {
|
|
229
229
|
this.transport.send("span_ended", {
|
|
230
230
|
id: span.id,
|
|
231
|
+
trace_id: span.trace_id,
|
|
231
232
|
ended_at: span.ended_at,
|
|
232
233
|
output: span.output,
|
|
233
234
|
output_tokens: span.output_tokens,
|
|
@@ -270,6 +271,7 @@ export class TraceRecorder {
|
|
|
270
271
|
this.builder.addSpan(span);
|
|
271
272
|
this.transport.send("span_ended", {
|
|
272
273
|
id: span.id,
|
|
274
|
+
trace_id: span.trace_id,
|
|
273
275
|
ended_at: span.ended_at,
|
|
274
276
|
output: span.output,
|
|
275
277
|
output_tokens: span.output_tokens,
|
package/dist/resume.d.ts
CHANGED
|
@@ -17,6 +17,9 @@ export interface ResumeCommand {
|
|
|
17
17
|
forkPointIndex?: number;
|
|
18
18
|
modifiedInput: unknown;
|
|
19
19
|
originalArgs?: unknown[];
|
|
20
|
+
/** Server replay-lease generation token; echoed back on the result trace so the server can reject
|
|
21
|
+
* a superseded (stale) generation and release the correct lease. */
|
|
22
|
+
executionId?: string;
|
|
20
23
|
}
|
|
21
24
|
export declare function registerResumable(name: string, fn: (...args: unknown[]) => unknown): void;
|
|
22
25
|
export declare function getResumable(name: string): ((...args: unknown[]) => unknown) | undefined;
|
package/dist/resume.js
CHANGED
|
@@ -29,6 +29,7 @@ export async function handleResume(command) {
|
|
|
29
29
|
_fork_id: command.forkId,
|
|
30
30
|
_fork_of: command.traceId,
|
|
31
31
|
_fork_point: command.forkPointSpanId,
|
|
32
|
+
_fork_execution_id: command.executionId,
|
|
32
33
|
_cascade_replay: true,
|
|
33
34
|
},
|
|
34
35
|
forkPointSpanId: command.forkPointSpanId,
|
|
@@ -63,5 +64,6 @@ export function parseResumeMessage(msg) {
|
|
|
63
64
|
forkPointIndex: msg.data.forkPointIndex,
|
|
64
65
|
modifiedInput: msg.data.modifiedInput,
|
|
65
66
|
originalArgs: msg.data.originalArgs,
|
|
67
|
+
executionId: msg.data.executionId,
|
|
66
68
|
};
|
|
67
69
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "retrace-sdk",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.11",
|
|
4
4
|
"description": "The execution replay engine for AI agents. Record, replay, fork, and share agent executions.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -77,11 +77,11 @@
|
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
|
-
"@anthropic-ai/sdk": "^0.
|
|
81
|
-
"@google/genai": "^2.
|
|
80
|
+
"@anthropic-ai/sdk": "^0.111.0",
|
|
81
|
+
"@google/genai": "^2.11.0",
|
|
82
82
|
"@types/node": "24.13.2",
|
|
83
83
|
"@types/ws": "8.18.1",
|
|
84
|
-
"openai": "^6.
|
|
84
|
+
"openai": "^6.46.0",
|
|
85
85
|
"typescript": "6.0.3"
|
|
86
86
|
}
|
|
87
87
|
}
|