@linnlabs/linnkit 0.36.0 → 0.37.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 +12 -1
- package/dist/cli.cjs +51 -21
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +51 -21
- package/dist/cli.js.map +1 -1
- package/dist/context-manager.cjs.map +1 -1
- package/dist/context-manager.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 +1113 -1113
- package/dist/contracts/events.d.ts +1113 -1113
- 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 +897 -897
- package/dist/contracts/sse.d.ts +897 -897
- 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 +51 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +51 -21
- package/dist/index.js.map +1 -1
- package/dist/quickstart.cjs +51 -21
- package/dist/quickstart.cjs.map +1 -1
- package/dist/quickstart.js +51 -21
- 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/graph-engine/nodes/toolNode.d.cts +1 -0
- package/dist/runtime-kernel/graph-engine/nodes/toolNode.d.ts +1 -0
- package/dist/runtime-kernel/graph-engine/types.d.cts +2 -0
- package/dist/runtime-kernel/graph-engine/types.d.ts +2 -0
- package/dist/runtime-kernel.cjs +51 -21
- package/dist/runtime-kernel.cjs.map +1 -1
- package/dist/runtime-kernel.js +51 -21
- package/dist/runtime-kernel.js.map +1 -1
- package/dist/testkit.cjs +51 -21
- package/dist/testkit.cjs.map +1 -1
- package/dist/testkit.js +51 -21
- package/dist/testkit.js.map +1 -1
- package/docs/integration/persistence.md +9 -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: "system" | "user" | "tool" | "host" | "agent" | "model";
|
|
11
11
|
id?: string | undefined;
|
|
12
12
|
name?: string | undefined;
|
|
13
13
|
}, {
|
|
14
|
-
kind: "
|
|
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" | "
|
|
25
|
+
outcome: "requested" | "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "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" | "
|
|
30
|
+
outcome: "requested" | "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "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,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;
|
|
84
86
|
runId?: (string & z.BRAND<"RunId">) | undefined;
|
|
85
87
|
parentRunId?: (string & z.BRAND<"RunId">) | undefined;
|
|
86
|
-
conversationId?: string | undefined;
|
|
87
88
|
turnId?: string | undefined;
|
|
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;
|
|
97
|
+
conversationId?: string | undefined;
|
|
96
98
|
runId?: string | undefined;
|
|
97
99
|
parentRunId?: string | undefined;
|
|
98
|
-
conversationId?: string | undefined;
|
|
99
100
|
turnId?: string | undefined;
|
|
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: "
|
|
126
|
+
kind: "system" | "user" | "tool" | "host" | "agent" | "model";
|
|
127
127
|
id?: string | undefined;
|
|
128
128
|
name?: string | undefined;
|
|
129
129
|
}, {
|
|
130
|
-
kind: "
|
|
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" | "
|
|
141
|
+
outcome: "requested" | "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "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" | "
|
|
146
|
+
outcome: "requested" | "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "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,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;
|
|
197
199
|
runId?: (string & z.BRAND<"RunId">) | undefined;
|
|
198
200
|
parentRunId?: (string & z.BRAND<"RunId">) | undefined;
|
|
199
|
-
conversationId?: string | undefined;
|
|
200
201
|
turnId?: string | undefined;
|
|
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;
|
|
210
|
+
conversationId?: string | undefined;
|
|
209
211
|
runId?: string | undefined;
|
|
210
212
|
parentRunId?: string | undefined;
|
|
211
|
-
conversationId?: string | undefined;
|
|
212
213
|
turnId?: string | undefined;
|
|
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
|
}>>;
|
|
220
220
|
}, "strip", z.ZodTypeAny, {
|
|
221
|
-
envelopeId: string;
|
|
222
221
|
runId: string & z.BRAND<"RunId">;
|
|
222
|
+
envelopeId: string;
|
|
223
223
|
ts: number;
|
|
224
224
|
actor: {
|
|
225
|
-
kind: "
|
|
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" | "
|
|
232
|
+
outcome: "requested" | "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "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,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;
|
|
251
253
|
runId?: (string & z.BRAND<"RunId">) | undefined;
|
|
252
254
|
parentRunId?: (string & z.BRAND<"RunId">) | undefined;
|
|
253
|
-
conversationId?: string | undefined;
|
|
254
255
|
turnId?: string | undefined;
|
|
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;
|
|
262
262
|
}, {
|
|
263
|
-
envelopeId: string;
|
|
264
263
|
runId: string;
|
|
264
|
+
envelopeId: string;
|
|
265
265
|
ts: number;
|
|
266
266
|
actor: {
|
|
267
|
-
kind: "
|
|
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" | "
|
|
274
|
+
outcome: "requested" | "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "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,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;
|
|
293
295
|
runId?: string | undefined;
|
|
294
296
|
parentRunId?: string | undefined;
|
|
295
|
-
conversationId?: string | undefined;
|
|
296
297
|
turnId?: string | undefined;
|
|
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: "
|
|
10
|
+
kind: "system" | "user" | "tool" | "host" | "agent" | "model";
|
|
11
11
|
id?: string | undefined;
|
|
12
12
|
name?: string | undefined;
|
|
13
13
|
}, {
|
|
14
|
-
kind: "
|
|
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" | "
|
|
25
|
+
outcome: "requested" | "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "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" | "
|
|
30
|
+
outcome: "requested" | "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "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,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;
|
|
84
86
|
runId?: (string & z.BRAND<"RunId">) | undefined;
|
|
85
87
|
parentRunId?: (string & z.BRAND<"RunId">) | undefined;
|
|
86
|
-
conversationId?: string | undefined;
|
|
87
88
|
turnId?: string | undefined;
|
|
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;
|
|
97
|
+
conversationId?: string | undefined;
|
|
96
98
|
runId?: string | undefined;
|
|
97
99
|
parentRunId?: string | undefined;
|
|
98
|
-
conversationId?: string | undefined;
|
|
99
100
|
turnId?: string | undefined;
|
|
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: "
|
|
126
|
+
kind: "system" | "user" | "tool" | "host" | "agent" | "model";
|
|
127
127
|
id?: string | undefined;
|
|
128
128
|
name?: string | undefined;
|
|
129
129
|
}, {
|
|
130
|
-
kind: "
|
|
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" | "
|
|
141
|
+
outcome: "requested" | "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "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" | "
|
|
146
|
+
outcome: "requested" | "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "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,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;
|
|
197
199
|
runId?: (string & z.BRAND<"RunId">) | undefined;
|
|
198
200
|
parentRunId?: (string & z.BRAND<"RunId">) | undefined;
|
|
199
|
-
conversationId?: string | undefined;
|
|
200
201
|
turnId?: string | undefined;
|
|
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;
|
|
210
|
+
conversationId?: string | undefined;
|
|
209
211
|
runId?: string | undefined;
|
|
210
212
|
parentRunId?: string | undefined;
|
|
211
|
-
conversationId?: string | undefined;
|
|
212
213
|
turnId?: string | undefined;
|
|
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
|
}>>;
|
|
220
220
|
}, "strip", z.ZodTypeAny, {
|
|
221
|
-
envelopeId: string;
|
|
222
221
|
runId: string & z.BRAND<"RunId">;
|
|
222
|
+
envelopeId: string;
|
|
223
223
|
ts: number;
|
|
224
224
|
actor: {
|
|
225
|
-
kind: "
|
|
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" | "
|
|
232
|
+
outcome: "requested" | "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "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,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;
|
|
251
253
|
runId?: (string & z.BRAND<"RunId">) | undefined;
|
|
252
254
|
parentRunId?: (string & z.BRAND<"RunId">) | undefined;
|
|
253
|
-
conversationId?: string | undefined;
|
|
254
255
|
turnId?: string | undefined;
|
|
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;
|
|
262
262
|
}, {
|
|
263
|
-
envelopeId: string;
|
|
264
263
|
runId: string;
|
|
264
|
+
envelopeId: string;
|
|
265
265
|
ts: number;
|
|
266
266
|
actor: {
|
|
267
|
-
kind: "
|
|
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" | "
|
|
274
|
+
outcome: "requested" | "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "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,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;
|
|
293
295
|
runId?: string | undefined;
|
|
294
296
|
parentRunId?: string | undefined;
|
|
295
|
-
conversationId?: string | undefined;
|
|
296
297
|
turnId?: string | undefined;
|
|
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;
|