@40rty/ams-sdk 0.5.1 → 0.5.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.
@@ -52,7 +52,9 @@ export declare const TraceRecordSchema: z.ZodObject<{
52
52
  createdAt: z.ZodString;
53
53
  }, "strip", z.ZodTypeAny, {
54
54
  sessionId: string;
55
+ turnId: string | null;
55
56
  id: string;
57
+ createdAt: string;
56
58
  spaceId: string | null;
57
59
  visitorEmail: string | null;
58
60
  userPrompt: string;
@@ -69,13 +71,13 @@ export declare const TraceRecordSchema: z.ZodObject<{
69
71
  latencyFirstText: number | null;
70
72
  latencyFirstPatch: number | null;
71
73
  latencyTotal: number | null;
72
- turnId: string | null;
73
- createdAt: string;
74
74
  layout?: unknown;
75
75
  trackerState?: unknown;
76
76
  }, {
77
77
  sessionId: string;
78
+ turnId: string | null;
78
79
  id: string;
80
+ createdAt: string;
79
81
  spaceId: string | null;
80
82
  visitorEmail: string | null;
81
83
  userPrompt: string;
@@ -92,8 +94,6 @@ export declare const TraceRecordSchema: z.ZodObject<{
92
94
  latencyFirstText: number | null;
93
95
  latencyFirstPatch: number | null;
94
96
  latencyTotal: number | null;
95
- turnId: string | null;
96
- createdAt: string;
97
97
  layout?: unknown;
98
98
  trackerState?: unknown;
99
99
  }>;
@@ -144,6 +144,7 @@ export declare const CreateTraceInputSchema: z.ZodObject<{
144
144
  turnId: z.ZodNullable<z.ZodString>;
145
145
  }, "strip", z.ZodTypeAny, {
146
146
  sessionId: string;
147
+ turnId: string | null;
147
148
  spaceId: string | null;
148
149
  visitorEmail: string | null;
149
150
  userPrompt: string;
@@ -160,11 +161,11 @@ export declare const CreateTraceInputSchema: z.ZodObject<{
160
161
  latencyFirstText: number | null;
161
162
  latencyFirstPatch: number | null;
162
163
  latencyTotal: number | null;
163
- turnId: string | null;
164
164
  layout?: unknown;
165
165
  trackerState?: unknown;
166
166
  }, {
167
167
  sessionId: string;
168
+ turnId: string | null;
168
169
  spaceId: string | null;
169
170
  visitorEmail: string | null;
170
171
  userPrompt: string;
@@ -181,7 +182,6 @@ export declare const CreateTraceInputSchema: z.ZodObject<{
181
182
  latencyFirstText: number | null;
182
183
  latencyFirstPatch: number | null;
183
184
  latencyTotal: number | null;
184
- turnId: string | null;
185
185
  layout?: unknown;
186
186
  trackerState?: unknown;
187
187
  }>;
@@ -244,6 +244,7 @@ export declare const SessionTurnSchema: z.ZodObject<{
244
244
  diagnostics: z.ZodNullable<z.ZodArray<z.ZodUnknown, "many">>;
245
245
  }, "strip", z.ZodTypeAny, {
246
246
  id: string;
247
+ createdAt: string;
247
248
  userPrompt: string;
248
249
  responseText: string | null;
249
250
  phaseTimings: Record<string, number> | null;
@@ -254,10 +255,10 @@ export declare const SessionTurnSchema: z.ZodObject<{
254
255
  toolCalls: unknown[] | null;
255
256
  diagnostics: unknown[] | null;
256
257
  latencyTotal: number | null;
257
- createdAt: string;
258
258
  layout?: unknown;
259
259
  }, {
260
260
  id: string;
261
+ createdAt: string;
261
262
  userPrompt: string;
262
263
  responseText: string | null;
263
264
  phaseTimings: Record<string, number> | null;
@@ -268,7 +269,6 @@ export declare const SessionTurnSchema: z.ZodObject<{
268
269
  toolCalls: unknown[] | null;
269
270
  diagnostics: unknown[] | null;
270
271
  latencyTotal: number | null;
271
- createdAt: string;
272
272
  layout?: unknown;
273
273
  }>;
274
274
  export type SessionTurn = z.infer<typeof SessionTurnSchema>;
@@ -305,6 +305,7 @@ export declare const SessionReplaySchema: z.ZodObject<{
305
305
  diagnostics: z.ZodNullable<z.ZodArray<z.ZodUnknown, "many">>;
306
306
  }, "strip", z.ZodTypeAny, {
307
307
  id: string;
308
+ createdAt: string;
308
309
  userPrompt: string;
309
310
  responseText: string | null;
310
311
  phaseTimings: Record<string, number> | null;
@@ -315,10 +316,10 @@ export declare const SessionReplaySchema: z.ZodObject<{
315
316
  toolCalls: unknown[] | null;
316
317
  diagnostics: unknown[] | null;
317
318
  latencyTotal: number | null;
318
- createdAt: string;
319
319
  layout?: unknown;
320
320
  }, {
321
321
  id: string;
322
+ createdAt: string;
322
323
  userPrompt: string;
323
324
  responseText: string | null;
324
325
  phaseTimings: Record<string, number> | null;
@@ -329,7 +330,6 @@ export declare const SessionReplaySchema: z.ZodObject<{
329
330
  toolCalls: unknown[] | null;
330
331
  diagnostics: unknown[] | null;
331
332
  latencyTotal: number | null;
332
- createdAt: string;
333
333
  layout?: unknown;
334
334
  }>, "many">;
335
335
  /**
@@ -346,6 +346,7 @@ export declare const SessionReplaySchema: z.ZodObject<{
346
346
  }, "strip", z.ZodTypeAny, {
347
347
  turns: {
348
348
  id: string;
349
+ createdAt: string;
349
350
  userPrompt: string;
350
351
  responseText: string | null;
351
352
  phaseTimings: Record<string, number> | null;
@@ -356,13 +357,13 @@ export declare const SessionReplaySchema: z.ZodObject<{
356
357
  toolCalls: unknown[] | null;
357
358
  diagnostics: unknown[] | null;
358
359
  latencyTotal: number | null;
359
- createdAt: string;
360
360
  layout?: unknown;
361
361
  }[];
362
362
  sessionLayout: Record<string, unknown> | null;
363
363
  }, {
364
364
  turns: {
365
365
  id: string;
366
+ createdAt: string;
366
367
  userPrompt: string;
367
368
  responseText: string | null;
368
369
  phaseTimings: Record<string, number> | null;
@@ -373,7 +374,6 @@ export declare const SessionReplaySchema: z.ZodObject<{
373
374
  toolCalls: unknown[] | null;
374
375
  diagnostics: unknown[] | null;
375
376
  latencyTotal: number | null;
376
- createdAt: string;
377
377
  layout?: unknown;
378
378
  }[];
379
379
  sessionLayout: Record<string, unknown> | null;
@@ -72,6 +72,14 @@ export type TraceDiagnostic = {
72
72
  kind: 'signal_patch_malformed';
73
73
  stage: 'layout_generation';
74
74
  reason: string;
75
+ }
76
+ /** A `{`-line the model wrote that failed JSON.parse. `repaired` = completed
77
+ * with its missing closers and kept; otherwise the parser drops it. */
78
+ | {
79
+ kind: 'patch_line_malformed';
80
+ stage: 'layout_generation';
81
+ repaired: boolean;
82
+ sample: string;
75
83
  } | {
76
84
  kind: 'follow_up_absent';
77
85
  stage: 'layout_generation';
package/package.json CHANGED
@@ -26,7 +26,7 @@
26
26
  "react": "^18.3.0 || ^19.0.0",
27
27
  "react-dom": "^18.3.0 || ^19.0.0"
28
28
  },
29
- "version": "0.5.1",
29
+ "version": "0.5.2",
30
30
  "homepage": "https://docs.40rty.ai",
31
31
  "license": "UNLICENSED",
32
32
  "engines": {