@linnlabs/linnkit 0.35.1 → 0.36.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/CHANGELOG.md +9 -0
- package/dist/cli.cjs +13 -3
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +13 -3
- package/dist/cli.js.map +1 -1
- package/dist/contracts/agentSpec.d.cts +30 -30
- package/dist/contracts/agentSpec.d.ts +30 -30
- package/dist/contracts/audit.d.cts +32 -32
- package/dist/contracts/audit.d.ts +32 -32
- package/dist/contracts/contextPolicy.d.cts +36 -36
- package/dist/contracts/contextPolicy.d.ts +36 -36
- package/dist/contracts/events.d.cts +1114 -1114
- package/dist/contracts/events.d.ts +1114 -1114
- package/dist/contracts/execution.d.cts +8 -8
- package/dist/contracts/execution.d.ts +8 -8
- package/dist/contracts/messages.d.cts +1178 -1178
- package/dist/contracts/messages.d.ts +1178 -1178
- package/dist/contracts/provider-continuation.d.cts +28 -28
- package/dist/contracts/provider-continuation.d.ts +28 -28
- package/dist/contracts/sse.d.cts +899 -899
- package/dist/contracts/sse.d.ts +899 -899
- package/dist/contracts/sub-run-trace-payload.d.cts +26 -26
- package/dist/contracts/sub-run-trace-payload.d.ts +26 -26
- package/dist/contracts/token-accounting.d.cts +46 -46
- package/dist/contracts/token-accounting.d.ts +46 -46
- package/dist/index.cjs +13 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +13 -3
- package/dist/index.js.map +1 -1
- package/dist/quickstart.cjs +13 -3
- package/dist/quickstart.cjs.map +1 -1
- package/dist/quickstart.js +13 -3
- package/dist/quickstart.js.map +1 -1
- package/dist/runtime-kernel/events/agentEvents.d.cts +172 -172
- package/dist/runtime-kernel/events/agentEvents.d.ts +172 -172
- package/dist/runtime-kernel/run-supervisor/definitions/runSupervisorContracts.d.cts +3 -1
- package/dist/runtime-kernel/run-supervisor/definitions/runSupervisorContracts.d.ts +3 -1
- package/dist/runtime-kernel/run-supervisor/runSupervisor.d.cts +2 -2
- package/dist/runtime-kernel/run-supervisor/runSupervisor.d.ts +2 -2
- package/dist/runtime-kernel.cjs +13 -3
- package/dist/runtime-kernel.cjs.map +1 -1
- package/dist/runtime-kernel.js +13 -3
- package/dist/runtime-kernel.js.map +1 -1
- package/dist/testkit.cjs +13 -3
- package/dist/testkit.cjs.map +1 -1
- package/dist/testkit.js +13 -3
- package/dist/testkit.js.map +1 -1
- package/docs/integration/run-supervisor.md +2 -0
- package/package.json +2 -2
|
@@ -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: "
|
|
10
|
+
kind: "user" | "system" | "host" | "agent" | "model" | "tool";
|
|
11
11
|
id?: string | undefined;
|
|
12
12
|
name?: string | undefined;
|
|
13
13
|
}, {
|
|
14
|
-
kind: "
|
|
14
|
+
kind: "user" | "system" | "host" | "agent" | "model" | "tool";
|
|
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: "
|
|
25
|
+
outcome: "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "requested" | "recorded";
|
|
26
26
|
metadata?: Record<string, unknown> | undefined;
|
|
27
27
|
reason?: string | undefined;
|
|
28
28
|
policy?: string | undefined;
|
|
29
29
|
}, {
|
|
30
|
-
outcome: "
|
|
30
|
+
outcome: "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "requested" | "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;
|
|
44
43
|
metadata?: Record<string, unknown> | undefined;
|
|
45
44
|
ref?: string | undefined;
|
|
45
|
+
summary?: string | undefined;
|
|
46
46
|
}, {
|
|
47
47
|
kind: string;
|
|
48
|
-
summary?: string | undefined;
|
|
49
48
|
metadata?: Record<string, unknown> | undefined;
|
|
50
49
|
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,26 +81,26 @@ 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;
|
|
85
|
-
conversationId?: string | undefined;
|
|
86
84
|
runId?: (string & z.BRAND<"RunId">) | undefined;
|
|
87
85
|
parentRunId?: (string & z.BRAND<"RunId">) | undefined;
|
|
86
|
+
conversationId?: string | undefined;
|
|
88
87
|
turnId?: string | undefined;
|
|
89
88
|
traceId?: string | undefined;
|
|
90
89
|
agentSpecId?: string | undefined;
|
|
91
90
|
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;
|
|
97
|
-
conversationId?: string | undefined;
|
|
98
96
|
runId?: string | undefined;
|
|
99
97
|
parentRunId?: string | undefined;
|
|
98
|
+
conversationId?: string | undefined;
|
|
100
99
|
turnId?: string | undefined;
|
|
101
100
|
traceId?: string | undefined;
|
|
102
101
|
agentSpecId?: string | undefined;
|
|
103
102
|
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: "
|
|
126
|
+
kind: "user" | "system" | "host" | "agent" | "model" | "tool";
|
|
127
127
|
id?: string | undefined;
|
|
128
128
|
name?: string | undefined;
|
|
129
129
|
}, {
|
|
130
|
-
kind: "
|
|
130
|
+
kind: "user" | "system" | "host" | "agent" | "model" | "tool";
|
|
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: "
|
|
141
|
+
outcome: "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "requested" | "recorded";
|
|
142
142
|
metadata?: Record<string, unknown> | undefined;
|
|
143
143
|
reason?: string | undefined;
|
|
144
144
|
policy?: string | undefined;
|
|
145
145
|
}, {
|
|
146
|
-
outcome: "
|
|
146
|
+
outcome: "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "requested" | "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;
|
|
159
158
|
metadata?: Record<string, unknown> | undefined;
|
|
160
159
|
ref?: string | undefined;
|
|
160
|
+
summary?: string | undefined;
|
|
161
161
|
}, {
|
|
162
162
|
kind: string;
|
|
163
|
-
summary?: string | undefined;
|
|
164
163
|
metadata?: Record<string, unknown> | undefined;
|
|
165
164
|
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,51 +194,51 @@ 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;
|
|
198
|
-
conversationId?: string | undefined;
|
|
199
197
|
runId?: (string & z.BRAND<"RunId">) | undefined;
|
|
200
198
|
parentRunId?: (string & z.BRAND<"RunId">) | undefined;
|
|
199
|
+
conversationId?: string | undefined;
|
|
201
200
|
turnId?: string | undefined;
|
|
202
201
|
traceId?: string | undefined;
|
|
203
202
|
agentSpecId?: string | undefined;
|
|
204
203
|
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;
|
|
210
|
-
conversationId?: string | undefined;
|
|
211
209
|
runId?: string | undefined;
|
|
212
210
|
parentRunId?: string | undefined;
|
|
211
|
+
conversationId?: string | undefined;
|
|
213
212
|
turnId?: string | undefined;
|
|
214
213
|
traceId?: string | undefined;
|
|
215
214
|
agentSpecId?: string | undefined;
|
|
216
215
|
toolCallId?: string | undefined;
|
|
216
|
+
toolName?: string | undefined;
|
|
217
217
|
modelId?: string | undefined;
|
|
218
218
|
nodeId?: string | undefined;
|
|
219
219
|
}>>;
|
|
220
220
|
}, "strip", z.ZodTypeAny, {
|
|
221
|
-
runId: string & z.BRAND<"RunId">;
|
|
222
221
|
envelopeId: string;
|
|
222
|
+
runId: string & z.BRAND<"RunId">;
|
|
223
223
|
ts: number;
|
|
224
224
|
actor: {
|
|
225
|
-
kind: "
|
|
225
|
+
kind: "user" | "system" | "host" | "agent" | "model" | "tool";
|
|
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: "
|
|
232
|
+
outcome: "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "requested" | "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;
|
|
240
239
|
metadata?: Record<string, unknown> | undefined;
|
|
241
240
|
ref?: string | undefined;
|
|
241
|
+
summary?: string | undefined;
|
|
242
242
|
}[] | undefined;
|
|
243
243
|
costDelta?: {
|
|
244
244
|
tokensInput?: number | undefined;
|
|
@@ -248,39 +248,39 @@ declare const AuditEnvelope: z.ZodObject<{
|
|
|
248
248
|
} | undefined;
|
|
249
249
|
scope?: {
|
|
250
250
|
metadata?: Record<string, unknown> | undefined;
|
|
251
|
-
toolName?: string | undefined;
|
|
252
|
-
conversationId?: string | undefined;
|
|
253
251
|
runId?: (string & z.BRAND<"RunId">) | undefined;
|
|
254
252
|
parentRunId?: (string & z.BRAND<"RunId">) | undefined;
|
|
253
|
+
conversationId?: string | undefined;
|
|
255
254
|
turnId?: string | undefined;
|
|
256
255
|
traceId?: string | undefined;
|
|
257
256
|
agentSpecId?: string | undefined;
|
|
258
257
|
toolCallId?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
258
|
+
toolName?: string | undefined;
|
|
259
259
|
modelId?: string | undefined;
|
|
260
260
|
nodeId?: string | undefined;
|
|
261
261
|
} | undefined;
|
|
262
262
|
}, {
|
|
263
|
-
runId: string;
|
|
264
263
|
envelopeId: string;
|
|
264
|
+
runId: string;
|
|
265
265
|
ts: number;
|
|
266
266
|
actor: {
|
|
267
|
-
kind: "
|
|
267
|
+
kind: "user" | "system" | "host" | "agent" | "model" | "tool";
|
|
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: "
|
|
274
|
+
outcome: "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "requested" | "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;
|
|
282
281
|
metadata?: Record<string, unknown> | undefined;
|
|
283
282
|
ref?: string | undefined;
|
|
283
|
+
summary?: string | undefined;
|
|
284
284
|
}[] | undefined;
|
|
285
285
|
costDelta?: {
|
|
286
286
|
tokensInput?: number | undefined;
|
|
@@ -290,14 +290,14 @@ declare const AuditEnvelope: z.ZodObject<{
|
|
|
290
290
|
} | undefined;
|
|
291
291
|
scope?: {
|
|
292
292
|
metadata?: Record<string, unknown> | undefined;
|
|
293
|
-
toolName?: string | undefined;
|
|
294
|
-
conversationId?: string | undefined;
|
|
295
293
|
runId?: string | undefined;
|
|
296
294
|
parentRunId?: string | undefined;
|
|
295
|
+
conversationId?: string | undefined;
|
|
297
296
|
turnId?: string | undefined;
|
|
298
297
|
traceId?: string | undefined;
|
|
299
298
|
agentSpecId?: string | undefined;
|
|
300
299
|
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: "
|
|
10
|
+
kind: "user" | "system" | "host" | "agent" | "model" | "tool";
|
|
11
11
|
id?: string | undefined;
|
|
12
12
|
name?: string | undefined;
|
|
13
13
|
}, {
|
|
14
|
-
kind: "
|
|
14
|
+
kind: "user" | "system" | "host" | "agent" | "model" | "tool";
|
|
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: "
|
|
25
|
+
outcome: "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "requested" | "recorded";
|
|
26
26
|
metadata?: Record<string, unknown> | undefined;
|
|
27
27
|
reason?: string | undefined;
|
|
28
28
|
policy?: string | undefined;
|
|
29
29
|
}, {
|
|
30
|
-
outcome: "
|
|
30
|
+
outcome: "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "requested" | "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;
|
|
44
43
|
metadata?: Record<string, unknown> | undefined;
|
|
45
44
|
ref?: string | undefined;
|
|
45
|
+
summary?: string | undefined;
|
|
46
46
|
}, {
|
|
47
47
|
kind: string;
|
|
48
|
-
summary?: string | undefined;
|
|
49
48
|
metadata?: Record<string, unknown> | undefined;
|
|
50
49
|
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,26 +81,26 @@ 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;
|
|
85
|
-
conversationId?: string | undefined;
|
|
86
84
|
runId?: (string & z.BRAND<"RunId">) | undefined;
|
|
87
85
|
parentRunId?: (string & z.BRAND<"RunId">) | undefined;
|
|
86
|
+
conversationId?: string | undefined;
|
|
88
87
|
turnId?: string | undefined;
|
|
89
88
|
traceId?: string | undefined;
|
|
90
89
|
agentSpecId?: string | undefined;
|
|
91
90
|
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;
|
|
97
|
-
conversationId?: string | undefined;
|
|
98
96
|
runId?: string | undefined;
|
|
99
97
|
parentRunId?: string | undefined;
|
|
98
|
+
conversationId?: string | undefined;
|
|
100
99
|
turnId?: string | undefined;
|
|
101
100
|
traceId?: string | undefined;
|
|
102
101
|
agentSpecId?: string | undefined;
|
|
103
102
|
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: "
|
|
126
|
+
kind: "user" | "system" | "host" | "agent" | "model" | "tool";
|
|
127
127
|
id?: string | undefined;
|
|
128
128
|
name?: string | undefined;
|
|
129
129
|
}, {
|
|
130
|
-
kind: "
|
|
130
|
+
kind: "user" | "system" | "host" | "agent" | "model" | "tool";
|
|
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: "
|
|
141
|
+
outcome: "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "requested" | "recorded";
|
|
142
142
|
metadata?: Record<string, unknown> | undefined;
|
|
143
143
|
reason?: string | undefined;
|
|
144
144
|
policy?: string | undefined;
|
|
145
145
|
}, {
|
|
146
|
-
outcome: "
|
|
146
|
+
outcome: "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "requested" | "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;
|
|
159
158
|
metadata?: Record<string, unknown> | undefined;
|
|
160
159
|
ref?: string | undefined;
|
|
160
|
+
summary?: string | undefined;
|
|
161
161
|
}, {
|
|
162
162
|
kind: string;
|
|
163
|
-
summary?: string | undefined;
|
|
164
163
|
metadata?: Record<string, unknown> | undefined;
|
|
165
164
|
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,51 +194,51 @@ 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;
|
|
198
|
-
conversationId?: string | undefined;
|
|
199
197
|
runId?: (string & z.BRAND<"RunId">) | undefined;
|
|
200
198
|
parentRunId?: (string & z.BRAND<"RunId">) | undefined;
|
|
199
|
+
conversationId?: string | undefined;
|
|
201
200
|
turnId?: string | undefined;
|
|
202
201
|
traceId?: string | undefined;
|
|
203
202
|
agentSpecId?: string | undefined;
|
|
204
203
|
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;
|
|
210
|
-
conversationId?: string | undefined;
|
|
211
209
|
runId?: string | undefined;
|
|
212
210
|
parentRunId?: string | undefined;
|
|
211
|
+
conversationId?: string | undefined;
|
|
213
212
|
turnId?: string | undefined;
|
|
214
213
|
traceId?: string | undefined;
|
|
215
214
|
agentSpecId?: string | undefined;
|
|
216
215
|
toolCallId?: string | undefined;
|
|
216
|
+
toolName?: string | undefined;
|
|
217
217
|
modelId?: string | undefined;
|
|
218
218
|
nodeId?: string | undefined;
|
|
219
219
|
}>>;
|
|
220
220
|
}, "strip", z.ZodTypeAny, {
|
|
221
|
-
runId: string & z.BRAND<"RunId">;
|
|
222
221
|
envelopeId: string;
|
|
222
|
+
runId: string & z.BRAND<"RunId">;
|
|
223
223
|
ts: number;
|
|
224
224
|
actor: {
|
|
225
|
-
kind: "
|
|
225
|
+
kind: "user" | "system" | "host" | "agent" | "model" | "tool";
|
|
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: "
|
|
232
|
+
outcome: "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "requested" | "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;
|
|
240
239
|
metadata?: Record<string, unknown> | undefined;
|
|
241
240
|
ref?: string | undefined;
|
|
241
|
+
summary?: string | undefined;
|
|
242
242
|
}[] | undefined;
|
|
243
243
|
costDelta?: {
|
|
244
244
|
tokensInput?: number | undefined;
|
|
@@ -248,39 +248,39 @@ declare const AuditEnvelope: z.ZodObject<{
|
|
|
248
248
|
} | undefined;
|
|
249
249
|
scope?: {
|
|
250
250
|
metadata?: Record<string, unknown> | undefined;
|
|
251
|
-
toolName?: string | undefined;
|
|
252
|
-
conversationId?: string | undefined;
|
|
253
251
|
runId?: (string & z.BRAND<"RunId">) | undefined;
|
|
254
252
|
parentRunId?: (string & z.BRAND<"RunId">) | undefined;
|
|
253
|
+
conversationId?: string | undefined;
|
|
255
254
|
turnId?: string | undefined;
|
|
256
255
|
traceId?: string | undefined;
|
|
257
256
|
agentSpecId?: string | undefined;
|
|
258
257
|
toolCallId?: (string & z.BRAND<"ToolCallId">) | undefined;
|
|
258
|
+
toolName?: string | undefined;
|
|
259
259
|
modelId?: string | undefined;
|
|
260
260
|
nodeId?: string | undefined;
|
|
261
261
|
} | undefined;
|
|
262
262
|
}, {
|
|
263
|
-
runId: string;
|
|
264
263
|
envelopeId: string;
|
|
264
|
+
runId: string;
|
|
265
265
|
ts: number;
|
|
266
266
|
actor: {
|
|
267
|
-
kind: "
|
|
267
|
+
kind: "user" | "system" | "host" | "agent" | "model" | "tool";
|
|
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: "
|
|
274
|
+
outcome: "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "requested" | "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;
|
|
282
281
|
metadata?: Record<string, unknown> | undefined;
|
|
283
282
|
ref?: string | undefined;
|
|
283
|
+
summary?: string | undefined;
|
|
284
284
|
}[] | undefined;
|
|
285
285
|
costDelta?: {
|
|
286
286
|
tokensInput?: number | undefined;
|
|
@@ -290,14 +290,14 @@ declare const AuditEnvelope: z.ZodObject<{
|
|
|
290
290
|
} | undefined;
|
|
291
291
|
scope?: {
|
|
292
292
|
metadata?: Record<string, unknown> | undefined;
|
|
293
|
-
toolName?: string | undefined;
|
|
294
|
-
conversationId?: string | undefined;
|
|
295
293
|
runId?: string | undefined;
|
|
296
294
|
parentRunId?: string | undefined;
|
|
295
|
+
conversationId?: string | undefined;
|
|
297
296
|
turnId?: string | undefined;
|
|
298
297
|
traceId?: string | undefined;
|
|
299
298
|
agentSpecId?: string | undefined;
|
|
300
299
|
toolCallId?: string | undefined;
|
|
300
|
+
toolName?: string | undefined;
|
|
301
301
|
modelId?: string | undefined;
|
|
302
302
|
nodeId?: string | undefined;
|
|
303
303
|
} | undefined;
|