@linnlabs/linnkit 0.32.1 → 0.32.3

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.
Files changed (45) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cli.cjs +35 -14
  3. package/dist/cli.cjs.map +1 -1
  4. package/dist/cli.js +35 -14
  5. package/dist/cli.js.map +1 -1
  6. package/dist/contracts/agentSpec.d.cts +30 -30
  7. package/dist/contracts/agentSpec.d.ts +30 -30
  8. package/dist/contracts/audit.d.cts +24 -24
  9. package/dist/contracts/audit.d.ts +24 -24
  10. package/dist/contracts/contextPolicy.d.cts +36 -36
  11. package/dist/contracts/contextPolicy.d.ts +36 -36
  12. package/dist/contracts/events.d.cts +1080 -1080
  13. package/dist/contracts/events.d.ts +1080 -1080
  14. package/dist/contracts/execution.d.cts +8 -8
  15. package/dist/contracts/execution.d.ts +8 -8
  16. package/dist/contracts/messages.d.cts +1178 -1178
  17. package/dist/contracts/messages.d.ts +1178 -1178
  18. package/dist/contracts/provider-continuation.d.cts +28 -28
  19. package/dist/contracts/provider-continuation.d.ts +28 -28
  20. package/dist/contracts/sse.d.cts +897 -897
  21. package/dist/contracts/sse.d.ts +897 -897
  22. package/dist/contracts/sub-run-trace-payload.d.cts +26 -26
  23. package/dist/contracts/sub-run-trace-payload.d.ts +26 -26
  24. package/dist/contracts/token-accounting.d.cts +30 -30
  25. package/dist/contracts/token-accounting.d.ts +30 -30
  26. package/dist/index.cjs +35 -14
  27. package/dist/index.cjs.map +1 -1
  28. package/dist/index.js +35 -14
  29. package/dist/index.js.map +1 -1
  30. package/dist/quickstart.cjs +35 -14
  31. package/dist/quickstart.cjs.map +1 -1
  32. package/dist/quickstart.js +35 -14
  33. package/dist/quickstart.js.map +1 -1
  34. package/dist/runtime-kernel/events/agentEvents.d.cts +172 -172
  35. package/dist/runtime-kernel/events/agentEvents.d.ts +172 -172
  36. package/dist/runtime-kernel.cjs +35 -14
  37. package/dist/runtime-kernel.cjs.map +1 -1
  38. package/dist/runtime-kernel.js +35 -14
  39. package/dist/runtime-kernel.js.map +1 -1
  40. package/dist/testkit.cjs +35 -14
  41. package/dist/testkit.cjs.map +1 -1
  42. package/dist/testkit.js +35 -14
  43. package/dist/testkit.js.map +1 -1
  44. package/docs/integration/01-installation.md +1 -1
  45. package/package.json +4 -4
@@ -7,11 +7,11 @@ declare const AuditActor: z.ZodObject<{
7
7
  id: z.ZodOptional<z.ZodString>;
8
8
  name: z.ZodOptional<z.ZodString>;
9
9
  }, "strip", z.ZodTypeAny, {
10
- kind: "user" | "system" | "host" | "agent" | "model" | "tool";
10
+ kind: "system" | "user" | "tool" | "host" | "agent" | "model";
11
11
  id?: string | undefined;
12
12
  name?: string | undefined;
13
13
  }, {
14
- kind: "user" | "system" | "host" | "agent" | "model" | "tool";
14
+ kind: "system" | "user" | "tool" | "host" | "agent" | "model";
15
15
  id?: string | undefined;
16
16
  name?: string | undefined;
17
17
  }>;
@@ -22,12 +22,12 @@ declare const AuditDecision: z.ZodObject<{
22
22
  policy: z.ZodOptional<z.ZodString>;
23
23
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
24
24
  }, "strip", z.ZodTypeAny, {
25
- outcome: "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "requested" | "recorded";
25
+ outcome: "requested" | "paused" | "cancelled" | "allowed" | "denied" | "fallback" | "retry" | "resumed" | "recorded";
26
26
  metadata?: Record<string, unknown> | undefined;
27
27
  reason?: string | undefined;
28
28
  policy?: string | undefined;
29
29
  }, {
30
- outcome: "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "requested" | "recorded";
30
+ outcome: "requested" | "paused" | "cancelled" | "allowed" | "denied" | "fallback" | "retry" | "resumed" | "recorded";
31
31
  metadata?: Record<string, unknown> | undefined;
32
32
  reason?: string | undefined;
33
33
  policy?: string | undefined;
@@ -40,14 +40,14 @@ declare const AuditEvidence: z.ZodObject<{
40
40
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
41
41
  }, "strip", z.ZodTypeAny, {
42
42
  kind: string;
43
+ summary?: string | undefined;
43
44
  metadata?: Record<string, unknown> | undefined;
44
45
  ref?: string | undefined;
45
- summary?: string | undefined;
46
46
  }, {
47
47
  kind: string;
48
+ summary?: string | undefined;
48
49
  metadata?: Record<string, unknown> | undefined;
49
50
  ref?: string | undefined;
50
- summary?: string | undefined;
51
51
  }>;
52
52
  type AuditEvidence = z.infer<typeof AuditEvidence>;
53
53
  declare const AuditCostDelta: z.ZodObject<{
@@ -81,6 +81,7 @@ declare const AuditScope: z.ZodObject<{
81
81
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
82
82
  }, "strip", z.ZodTypeAny, {
83
83
  metadata?: Record<string, unknown> | undefined;
84
+ toolName?: string | undefined;
84
85
  runId?: (string & z.BRAND<"RunId">) | undefined;
85
86
  parentRunId?: (string & z.BRAND<"RunId">) | undefined;
86
87
  conversationId?: string | undefined;
@@ -88,11 +89,11 @@ declare const AuditScope: z.ZodObject<{
88
89
  traceId?: string | undefined;
89
90
  agentSpecId?: string | undefined;
90
91
  toolCallId?: (string & z.BRAND<"ToolCallId">) | undefined;
91
- toolName?: string | undefined;
92
92
  modelId?: string | undefined;
93
93
  nodeId?: string | undefined;
94
94
  }, {
95
95
  metadata?: Record<string, unknown> | undefined;
96
+ toolName?: string | undefined;
96
97
  runId?: string | undefined;
97
98
  parentRunId?: string | undefined;
98
99
  conversationId?: string | undefined;
@@ -100,7 +101,6 @@ declare const AuditScope: z.ZodObject<{
100
101
  traceId?: string | undefined;
101
102
  agentSpecId?: string | undefined;
102
103
  toolCallId?: string | undefined;
103
- toolName?: string | undefined;
104
104
  modelId?: string | undefined;
105
105
  nodeId?: string | undefined;
106
106
  }>;
@@ -123,11 +123,11 @@ declare const AuditEnvelope: z.ZodObject<{
123
123
  id: z.ZodOptional<z.ZodString>;
124
124
  name: z.ZodOptional<z.ZodString>;
125
125
  }, "strip", z.ZodTypeAny, {
126
- kind: "user" | "system" | "host" | "agent" | "model" | "tool";
126
+ kind: "system" | "user" | "tool" | "host" | "agent" | "model";
127
127
  id?: string | undefined;
128
128
  name?: string | undefined;
129
129
  }, {
130
- kind: "user" | "system" | "host" | "agent" | "model" | "tool";
130
+ kind: "system" | "user" | "tool" | "host" | "agent" | "model";
131
131
  id?: string | undefined;
132
132
  name?: string | undefined;
133
133
  }>;
@@ -138,12 +138,12 @@ declare const AuditEnvelope: z.ZodObject<{
138
138
  policy: z.ZodOptional<z.ZodString>;
139
139
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
140
140
  }, "strip", z.ZodTypeAny, {
141
- outcome: "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "requested" | "recorded";
141
+ outcome: "requested" | "paused" | "cancelled" | "allowed" | "denied" | "fallback" | "retry" | "resumed" | "recorded";
142
142
  metadata?: Record<string, unknown> | undefined;
143
143
  reason?: string | undefined;
144
144
  policy?: string | undefined;
145
145
  }, {
146
- outcome: "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "requested" | "recorded";
146
+ outcome: "requested" | "paused" | "cancelled" | "allowed" | "denied" | "fallback" | "retry" | "resumed" | "recorded";
147
147
  metadata?: Record<string, unknown> | undefined;
148
148
  reason?: string | undefined;
149
149
  policy?: string | undefined;
@@ -155,14 +155,14 @@ declare const AuditEnvelope: z.ZodObject<{
155
155
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
156
156
  }, "strip", z.ZodTypeAny, {
157
157
  kind: string;
158
+ summary?: string | undefined;
158
159
  metadata?: Record<string, unknown> | undefined;
159
160
  ref?: string | undefined;
160
- summary?: string | undefined;
161
161
  }, {
162
162
  kind: string;
163
+ summary?: string | undefined;
163
164
  metadata?: Record<string, unknown> | undefined;
164
165
  ref?: string | undefined;
165
- summary?: string | undefined;
166
166
  }>, "many">>;
167
167
  costDelta: z.ZodOptional<z.ZodObject<{
168
168
  tokensInput: z.ZodOptional<z.ZodNumber>;
@@ -194,6 +194,7 @@ declare const AuditEnvelope: z.ZodObject<{
194
194
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
195
195
  }, "strip", z.ZodTypeAny, {
196
196
  metadata?: Record<string, unknown> | undefined;
197
+ toolName?: string | undefined;
197
198
  runId?: (string & z.BRAND<"RunId">) | undefined;
198
199
  parentRunId?: (string & z.BRAND<"RunId">) | undefined;
199
200
  conversationId?: string | undefined;
@@ -201,11 +202,11 @@ declare const AuditEnvelope: z.ZodObject<{
201
202
  traceId?: string | undefined;
202
203
  agentSpecId?: string | undefined;
203
204
  toolCallId?: (string & z.BRAND<"ToolCallId">) | undefined;
204
- toolName?: string | undefined;
205
205
  modelId?: string | undefined;
206
206
  nodeId?: string | undefined;
207
207
  }, {
208
208
  metadata?: Record<string, unknown> | undefined;
209
+ toolName?: string | undefined;
209
210
  runId?: string | undefined;
210
211
  parentRunId?: string | undefined;
211
212
  conversationId?: string | undefined;
@@ -213,7 +214,6 @@ declare const AuditEnvelope: z.ZodObject<{
213
214
  traceId?: string | undefined;
214
215
  agentSpecId?: string | undefined;
215
216
  toolCallId?: string | undefined;
216
- toolName?: string | undefined;
217
217
  modelId?: string | undefined;
218
218
  nodeId?: string | undefined;
219
219
  }>>;
@@ -222,23 +222,23 @@ declare const AuditEnvelope: z.ZodObject<{
222
222
  runId: string & z.BRAND<"RunId">;
223
223
  ts: number;
224
224
  actor: {
225
- kind: "user" | "system" | "host" | "agent" | "model" | "tool";
225
+ kind: "system" | "user" | "tool" | "host" | "agent" | "model";
226
226
  id?: string | undefined;
227
227
  name?: string | undefined;
228
228
  };
229
229
  action: string;
230
230
  parentRunId?: (string & z.BRAND<"RunId">) | undefined;
231
231
  decision?: {
232
- outcome: "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "requested" | "recorded";
232
+ outcome: "requested" | "paused" | "cancelled" | "allowed" | "denied" | "fallback" | "retry" | "resumed" | "recorded";
233
233
  metadata?: Record<string, unknown> | undefined;
234
234
  reason?: string | undefined;
235
235
  policy?: string | undefined;
236
236
  } | undefined;
237
237
  evidence?: {
238
238
  kind: string;
239
+ summary?: string | undefined;
239
240
  metadata?: Record<string, unknown> | undefined;
240
241
  ref?: string | undefined;
241
- summary?: string | undefined;
242
242
  }[] | undefined;
243
243
  costDelta?: {
244
244
  tokensInput?: number | undefined;
@@ -248,6 +248,7 @@ declare const AuditEnvelope: z.ZodObject<{
248
248
  } | undefined;
249
249
  scope?: {
250
250
  metadata?: Record<string, unknown> | undefined;
251
+ toolName?: string | undefined;
251
252
  runId?: (string & z.BRAND<"RunId">) | undefined;
252
253
  parentRunId?: (string & z.BRAND<"RunId">) | undefined;
253
254
  conversationId?: string | undefined;
@@ -255,7 +256,6 @@ declare const AuditEnvelope: z.ZodObject<{
255
256
  traceId?: string | undefined;
256
257
  agentSpecId?: string | undefined;
257
258
  toolCallId?: (string & z.BRAND<"ToolCallId">) | undefined;
258
- toolName?: string | undefined;
259
259
  modelId?: string | undefined;
260
260
  nodeId?: string | undefined;
261
261
  } | undefined;
@@ -264,23 +264,23 @@ declare const AuditEnvelope: z.ZodObject<{
264
264
  runId: string;
265
265
  ts: number;
266
266
  actor: {
267
- kind: "user" | "system" | "host" | "agent" | "model" | "tool";
267
+ kind: "system" | "user" | "tool" | "host" | "agent" | "model";
268
268
  id?: string | undefined;
269
269
  name?: string | undefined;
270
270
  };
271
271
  action: string;
272
272
  parentRunId?: string | undefined;
273
273
  decision?: {
274
- outcome: "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "requested" | "recorded";
274
+ outcome: "requested" | "paused" | "cancelled" | "allowed" | "denied" | "fallback" | "retry" | "resumed" | "recorded";
275
275
  metadata?: Record<string, unknown> | undefined;
276
276
  reason?: string | undefined;
277
277
  policy?: string | undefined;
278
278
  } | undefined;
279
279
  evidence?: {
280
280
  kind: string;
281
+ summary?: string | undefined;
281
282
  metadata?: Record<string, unknown> | undefined;
282
283
  ref?: string | undefined;
283
- summary?: string | undefined;
284
284
  }[] | undefined;
285
285
  costDelta?: {
286
286
  tokensInput?: number | undefined;
@@ -290,6 +290,7 @@ declare const AuditEnvelope: z.ZodObject<{
290
290
  } | undefined;
291
291
  scope?: {
292
292
  metadata?: Record<string, unknown> | undefined;
293
+ toolName?: string | undefined;
293
294
  runId?: string | undefined;
294
295
  parentRunId?: string | undefined;
295
296
  conversationId?: string | undefined;
@@ -297,7 +298,6 @@ declare const AuditEnvelope: z.ZodObject<{
297
298
  traceId?: string | undefined;
298
299
  agentSpecId?: string | undefined;
299
300
  toolCallId?: string | undefined;
300
- toolName?: string | undefined;
301
301
  modelId?: string | undefined;
302
302
  nodeId?: string | undefined;
303
303
  } | undefined;
@@ -7,11 +7,11 @@ declare const AuditActor: z.ZodObject<{
7
7
  id: z.ZodOptional<z.ZodString>;
8
8
  name: z.ZodOptional<z.ZodString>;
9
9
  }, "strip", z.ZodTypeAny, {
10
- kind: "user" | "system" | "host" | "agent" | "model" | "tool";
10
+ kind: "system" | "user" | "tool" | "host" | "agent" | "model";
11
11
  id?: string | undefined;
12
12
  name?: string | undefined;
13
13
  }, {
14
- kind: "user" | "system" | "host" | "agent" | "model" | "tool";
14
+ kind: "system" | "user" | "tool" | "host" | "agent" | "model";
15
15
  id?: string | undefined;
16
16
  name?: string | undefined;
17
17
  }>;
@@ -22,12 +22,12 @@ declare const AuditDecision: z.ZodObject<{
22
22
  policy: z.ZodOptional<z.ZodString>;
23
23
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
24
24
  }, "strip", z.ZodTypeAny, {
25
- outcome: "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "requested" | "recorded";
25
+ outcome: "requested" | "paused" | "cancelled" | "allowed" | "denied" | "fallback" | "retry" | "resumed" | "recorded";
26
26
  metadata?: Record<string, unknown> | undefined;
27
27
  reason?: string | undefined;
28
28
  policy?: string | undefined;
29
29
  }, {
30
- outcome: "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "requested" | "recorded";
30
+ outcome: "requested" | "paused" | "cancelled" | "allowed" | "denied" | "fallback" | "retry" | "resumed" | "recorded";
31
31
  metadata?: Record<string, unknown> | undefined;
32
32
  reason?: string | undefined;
33
33
  policy?: string | undefined;
@@ -40,14 +40,14 @@ declare const AuditEvidence: z.ZodObject<{
40
40
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
41
41
  }, "strip", z.ZodTypeAny, {
42
42
  kind: string;
43
+ summary?: string | undefined;
43
44
  metadata?: Record<string, unknown> | undefined;
44
45
  ref?: string | undefined;
45
- summary?: string | undefined;
46
46
  }, {
47
47
  kind: string;
48
+ summary?: string | undefined;
48
49
  metadata?: Record<string, unknown> | undefined;
49
50
  ref?: string | undefined;
50
- summary?: string | undefined;
51
51
  }>;
52
52
  type AuditEvidence = z.infer<typeof AuditEvidence>;
53
53
  declare const AuditCostDelta: z.ZodObject<{
@@ -81,6 +81,7 @@ declare const AuditScope: z.ZodObject<{
81
81
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
82
82
  }, "strip", z.ZodTypeAny, {
83
83
  metadata?: Record<string, unknown> | undefined;
84
+ toolName?: string | undefined;
84
85
  runId?: (string & z.BRAND<"RunId">) | undefined;
85
86
  parentRunId?: (string & z.BRAND<"RunId">) | undefined;
86
87
  conversationId?: string | undefined;
@@ -88,11 +89,11 @@ declare const AuditScope: z.ZodObject<{
88
89
  traceId?: string | undefined;
89
90
  agentSpecId?: string | undefined;
90
91
  toolCallId?: (string & z.BRAND<"ToolCallId">) | undefined;
91
- toolName?: string | undefined;
92
92
  modelId?: string | undefined;
93
93
  nodeId?: string | undefined;
94
94
  }, {
95
95
  metadata?: Record<string, unknown> | undefined;
96
+ toolName?: string | undefined;
96
97
  runId?: string | undefined;
97
98
  parentRunId?: string | undefined;
98
99
  conversationId?: string | undefined;
@@ -100,7 +101,6 @@ declare const AuditScope: z.ZodObject<{
100
101
  traceId?: string | undefined;
101
102
  agentSpecId?: string | undefined;
102
103
  toolCallId?: string | undefined;
103
- toolName?: string | undefined;
104
104
  modelId?: string | undefined;
105
105
  nodeId?: string | undefined;
106
106
  }>;
@@ -123,11 +123,11 @@ declare const AuditEnvelope: z.ZodObject<{
123
123
  id: z.ZodOptional<z.ZodString>;
124
124
  name: z.ZodOptional<z.ZodString>;
125
125
  }, "strip", z.ZodTypeAny, {
126
- kind: "user" | "system" | "host" | "agent" | "model" | "tool";
126
+ kind: "system" | "user" | "tool" | "host" | "agent" | "model";
127
127
  id?: string | undefined;
128
128
  name?: string | undefined;
129
129
  }, {
130
- kind: "user" | "system" | "host" | "agent" | "model" | "tool";
130
+ kind: "system" | "user" | "tool" | "host" | "agent" | "model";
131
131
  id?: string | undefined;
132
132
  name?: string | undefined;
133
133
  }>;
@@ -138,12 +138,12 @@ declare const AuditEnvelope: z.ZodObject<{
138
138
  policy: z.ZodOptional<z.ZodString>;
139
139
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
140
140
  }, "strip", z.ZodTypeAny, {
141
- outcome: "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "requested" | "recorded";
141
+ outcome: "requested" | "paused" | "cancelled" | "allowed" | "denied" | "fallback" | "retry" | "resumed" | "recorded";
142
142
  metadata?: Record<string, unknown> | undefined;
143
143
  reason?: string | undefined;
144
144
  policy?: string | undefined;
145
145
  }, {
146
- outcome: "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "requested" | "recorded";
146
+ outcome: "requested" | "paused" | "cancelled" | "allowed" | "denied" | "fallback" | "retry" | "resumed" | "recorded";
147
147
  metadata?: Record<string, unknown> | undefined;
148
148
  reason?: string | undefined;
149
149
  policy?: string | undefined;
@@ -155,14 +155,14 @@ declare const AuditEnvelope: z.ZodObject<{
155
155
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
156
156
  }, "strip", z.ZodTypeAny, {
157
157
  kind: string;
158
+ summary?: string | undefined;
158
159
  metadata?: Record<string, unknown> | undefined;
159
160
  ref?: string | undefined;
160
- summary?: string | undefined;
161
161
  }, {
162
162
  kind: string;
163
+ summary?: string | undefined;
163
164
  metadata?: Record<string, unknown> | undefined;
164
165
  ref?: string | undefined;
165
- summary?: string | undefined;
166
166
  }>, "many">>;
167
167
  costDelta: z.ZodOptional<z.ZodObject<{
168
168
  tokensInput: z.ZodOptional<z.ZodNumber>;
@@ -194,6 +194,7 @@ declare const AuditEnvelope: z.ZodObject<{
194
194
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
195
195
  }, "strip", z.ZodTypeAny, {
196
196
  metadata?: Record<string, unknown> | undefined;
197
+ toolName?: string | undefined;
197
198
  runId?: (string & z.BRAND<"RunId">) | undefined;
198
199
  parentRunId?: (string & z.BRAND<"RunId">) | undefined;
199
200
  conversationId?: string | undefined;
@@ -201,11 +202,11 @@ declare const AuditEnvelope: z.ZodObject<{
201
202
  traceId?: string | undefined;
202
203
  agentSpecId?: string | undefined;
203
204
  toolCallId?: (string & z.BRAND<"ToolCallId">) | undefined;
204
- toolName?: string | undefined;
205
205
  modelId?: string | undefined;
206
206
  nodeId?: string | undefined;
207
207
  }, {
208
208
  metadata?: Record<string, unknown> | undefined;
209
+ toolName?: string | undefined;
209
210
  runId?: string | undefined;
210
211
  parentRunId?: string | undefined;
211
212
  conversationId?: string | undefined;
@@ -213,7 +214,6 @@ declare const AuditEnvelope: z.ZodObject<{
213
214
  traceId?: string | undefined;
214
215
  agentSpecId?: string | undefined;
215
216
  toolCallId?: string | undefined;
216
- toolName?: string | undefined;
217
217
  modelId?: string | undefined;
218
218
  nodeId?: string | undefined;
219
219
  }>>;
@@ -222,23 +222,23 @@ declare const AuditEnvelope: z.ZodObject<{
222
222
  runId: string & z.BRAND<"RunId">;
223
223
  ts: number;
224
224
  actor: {
225
- kind: "user" | "system" | "host" | "agent" | "model" | "tool";
225
+ kind: "system" | "user" | "tool" | "host" | "agent" | "model";
226
226
  id?: string | undefined;
227
227
  name?: string | undefined;
228
228
  };
229
229
  action: string;
230
230
  parentRunId?: (string & z.BRAND<"RunId">) | undefined;
231
231
  decision?: {
232
- outcome: "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "requested" | "recorded";
232
+ outcome: "requested" | "paused" | "cancelled" | "allowed" | "denied" | "fallback" | "retry" | "resumed" | "recorded";
233
233
  metadata?: Record<string, unknown> | undefined;
234
234
  reason?: string | undefined;
235
235
  policy?: string | undefined;
236
236
  } | undefined;
237
237
  evidence?: {
238
238
  kind: string;
239
+ summary?: string | undefined;
239
240
  metadata?: Record<string, unknown> | undefined;
240
241
  ref?: string | undefined;
241
- summary?: string | undefined;
242
242
  }[] | undefined;
243
243
  costDelta?: {
244
244
  tokensInput?: number | undefined;
@@ -248,6 +248,7 @@ declare const AuditEnvelope: z.ZodObject<{
248
248
  } | undefined;
249
249
  scope?: {
250
250
  metadata?: Record<string, unknown> | undefined;
251
+ toolName?: string | undefined;
251
252
  runId?: (string & z.BRAND<"RunId">) | undefined;
252
253
  parentRunId?: (string & z.BRAND<"RunId">) | undefined;
253
254
  conversationId?: string | undefined;
@@ -255,7 +256,6 @@ declare const AuditEnvelope: z.ZodObject<{
255
256
  traceId?: string | undefined;
256
257
  agentSpecId?: string | undefined;
257
258
  toolCallId?: (string & z.BRAND<"ToolCallId">) | undefined;
258
- toolName?: string | undefined;
259
259
  modelId?: string | undefined;
260
260
  nodeId?: string | undefined;
261
261
  } | undefined;
@@ -264,23 +264,23 @@ declare const AuditEnvelope: z.ZodObject<{
264
264
  runId: string;
265
265
  ts: number;
266
266
  actor: {
267
- kind: "user" | "system" | "host" | "agent" | "model" | "tool";
267
+ kind: "system" | "user" | "tool" | "host" | "agent" | "model";
268
268
  id?: string | undefined;
269
269
  name?: string | undefined;
270
270
  };
271
271
  action: string;
272
272
  parentRunId?: string | undefined;
273
273
  decision?: {
274
- outcome: "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "requested" | "recorded";
274
+ outcome: "requested" | "paused" | "cancelled" | "allowed" | "denied" | "fallback" | "retry" | "resumed" | "recorded";
275
275
  metadata?: Record<string, unknown> | undefined;
276
276
  reason?: string | undefined;
277
277
  policy?: string | undefined;
278
278
  } | undefined;
279
279
  evidence?: {
280
280
  kind: string;
281
+ summary?: string | undefined;
281
282
  metadata?: Record<string, unknown> | undefined;
282
283
  ref?: string | undefined;
283
- summary?: string | undefined;
284
284
  }[] | undefined;
285
285
  costDelta?: {
286
286
  tokensInput?: number | undefined;
@@ -290,6 +290,7 @@ declare const AuditEnvelope: z.ZodObject<{
290
290
  } | undefined;
291
291
  scope?: {
292
292
  metadata?: Record<string, unknown> | undefined;
293
+ toolName?: string | undefined;
293
294
  runId?: string | undefined;
294
295
  parentRunId?: string | undefined;
295
296
  conversationId?: string | undefined;
@@ -297,7 +298,6 @@ declare const AuditEnvelope: z.ZodObject<{
297
298
  traceId?: string | undefined;
298
299
  agentSpecId?: string | undefined;
299
300
  toolCallId?: string | undefined;
300
- toolName?: string | undefined;
301
301
  modelId?: string | undefined;
302
302
  nodeId?: string | undefined;
303
303
  } | undefined;