@linnlabs/linnkit 0.32.3 → 0.34.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 +40 -0
- package/dist/cli.cjs +458 -70
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +458 -70
- package/dist/cli.js.map +1 -1
- package/dist/context-manager.cjs +55 -0
- package/dist/context-manager.cjs.map +1 -1
- package/dist/context-manager.js +55 -0
- 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 +24 -24
- package/dist/contracts/audit.d.ts +24 -24
- package/dist/contracts/contextPolicy.d.cts +36 -36
- package/dist/contracts/contextPolicy.d.ts +36 -36
- package/dist/contracts/events.d.cts +1083 -1083
- package/dist/contracts/events.d.ts +1083 -1083
- 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 +30 -30
- package/dist/contracts/token-accounting.d.ts +30 -30
- package/dist/index.cjs +538 -94
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +538 -94
- package/dist/index.js.map +1 -1
- package/dist/quickstart/toolRuntime.d.cts +1 -1
- package/dist/quickstart/toolRuntime.d.ts +1 -1
- package/dist/quickstart/types.d.cts +1 -1
- package/dist/quickstart/types.d.ts +1 -1
- package/dist/quickstart.cjs +458 -70
- package/dist/quickstart.cjs.map +1 -1
- package/dist/quickstart.js +458 -70
- package/dist/quickstart.js.map +1 -1
- package/dist/runtime-kernel/child-runs/childRunInvoker.d.cts +11 -0
- package/dist/runtime-kernel/child-runs/childRunInvoker.d.ts +11 -0
- package/dist/runtime-kernel/events/agentEvents.d.cts +172 -172
- package/dist/runtime-kernel/events/agentEvents.d.ts +172 -172
- package/dist/runtime-kernel/execution/eventBusEventPersistence.d.cts +15 -1
- package/dist/runtime-kernel/execution/eventBusEventPersistence.d.ts +15 -1
- package/dist/runtime-kernel/graph-engine/definitions/runContinuation.d.cts +34 -0
- package/dist/runtime-kernel/graph-engine/definitions/runContinuation.d.ts +34 -0
- package/dist/runtime-kernel/graph-engine/engine.d.cts +13 -2
- package/dist/runtime-kernel/graph-engine/engine.d.ts +13 -2
- package/dist/runtime-kernel/graph-engine/functions/parseEngineCheckpoint.d.cts +6 -0
- package/dist/runtime-kernel/graph-engine/functions/parseEngineCheckpoint.d.ts +6 -0
- package/dist/runtime-kernel/graph-engine/index.d.cts +3 -1
- package/dist/runtime-kernel/graph-engine/index.d.ts +3 -1
- package/dist/runtime-kernel/graph-engine/types.d.cts +8 -0
- package/dist/runtime-kernel/graph-engine/types.d.ts +8 -0
- package/dist/runtime-kernel/run-supervisor/definitions/runSupervisorContracts.d.cts +35 -6
- package/dist/runtime-kernel/run-supervisor/definitions/runSupervisorContracts.d.ts +35 -6
- package/dist/runtime-kernel/run-supervisor/index.d.cts +1 -1
- package/dist/runtime-kernel/run-supervisor/index.d.ts +1 -1
- package/dist/runtime-kernel/run-supervisor/memoryRunRegistryStore.d.cts +1 -0
- package/dist/runtime-kernel/run-supervisor/memoryRunRegistryStore.d.ts +1 -0
- package/dist/runtime-kernel/run-supervisor/runHandle.d.cts +9 -5
- package/dist/runtime-kernel/run-supervisor/runHandle.d.ts +9 -5
- package/dist/runtime-kernel/run-supervisor/runRegistryStorePort.d.cts +2 -0
- package/dist/runtime-kernel/run-supervisor/runRegistryStorePort.d.ts +2 -0
- package/dist/runtime-kernel/run-supervisor/runSupervisor.d.cts +9 -2
- package/dist/runtime-kernel/run-supervisor/runSupervisor.d.ts +9 -2
- package/dist/runtime-kernel.cjs +535 -91
- package/dist/runtime-kernel.cjs.map +1 -1
- package/dist/runtime-kernel.d.cts +3 -1
- package/dist/runtime-kernel.d.ts +3 -1
- package/dist/runtime-kernel.js +532 -92
- package/dist/runtime-kernel.js.map +1 -1
- package/dist/testkit.cjs +535 -91
- package/dist/testkit.cjs.map +1 -1
- package/dist/testkit.js +535 -91
- package/dist/testkit.js.map +1 -1
- package/docs/integration/child-runs.md +12 -0
- package/docs/integration/persistence.md +24 -0
- package/docs/integration/run-supervisor.md +15 -2
- 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,7 +81,6 @@ 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
84
|
runId?: (string & z.BRAND<"RunId">) | undefined;
|
|
86
85
|
parentRunId?: (string & z.BRAND<"RunId">) | undefined;
|
|
87
86
|
conversationId?: string | undefined;
|
|
@@ -89,11 +88,11 @@ declare const AuditScope: z.ZodObject<{
|
|
|
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
96
|
runId?: string | undefined;
|
|
98
97
|
parentRunId?: string | undefined;
|
|
99
98
|
conversationId?: string | undefined;
|
|
@@ -101,6 +100,7 @@ declare const AuditScope: z.ZodObject<{
|
|
|
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,7 +194,6 @@ 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
197
|
runId?: (string & z.BRAND<"RunId">) | undefined;
|
|
199
198
|
parentRunId?: (string & z.BRAND<"RunId">) | undefined;
|
|
200
199
|
conversationId?: string | undefined;
|
|
@@ -202,11 +201,11 @@ declare const AuditEnvelope: z.ZodObject<{
|
|
|
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
209
|
runId?: string | undefined;
|
|
211
210
|
parentRunId?: string | undefined;
|
|
212
211
|
conversationId?: string | undefined;
|
|
@@ -214,6 +213,7 @@ declare const AuditEnvelope: z.ZodObject<{
|
|
|
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
|
}>>;
|
|
@@ -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: "
|
|
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,7 +248,6 @@ declare const AuditEnvelope: z.ZodObject<{
|
|
|
248
248
|
} | undefined;
|
|
249
249
|
scope?: {
|
|
250
250
|
metadata?: Record<string, unknown> | undefined;
|
|
251
|
-
toolName?: string | undefined;
|
|
252
251
|
runId?: (string & z.BRAND<"RunId">) | undefined;
|
|
253
252
|
parentRunId?: (string & z.BRAND<"RunId">) | undefined;
|
|
254
253
|
conversationId?: string | undefined;
|
|
@@ -256,6 +255,7 @@ declare const AuditEnvelope: z.ZodObject<{
|
|
|
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;
|
|
@@ -264,23 +264,23 @@ declare const AuditEnvelope: z.ZodObject<{
|
|
|
264
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,7 +290,6 @@ declare const AuditEnvelope: z.ZodObject<{
|
|
|
290
290
|
} | undefined;
|
|
291
291
|
scope?: {
|
|
292
292
|
metadata?: Record<string, unknown> | undefined;
|
|
293
|
-
toolName?: string | undefined;
|
|
294
293
|
runId?: string | undefined;
|
|
295
294
|
parentRunId?: string | undefined;
|
|
296
295
|
conversationId?: string | undefined;
|
|
@@ -298,6 +297,7 @@ declare const AuditEnvelope: z.ZodObject<{
|
|
|
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,7 +81,6 @@ 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
84
|
runId?: (string & z.BRAND<"RunId">) | undefined;
|
|
86
85
|
parentRunId?: (string & z.BRAND<"RunId">) | undefined;
|
|
87
86
|
conversationId?: string | undefined;
|
|
@@ -89,11 +88,11 @@ declare const AuditScope: z.ZodObject<{
|
|
|
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
96
|
runId?: string | undefined;
|
|
98
97
|
parentRunId?: string | undefined;
|
|
99
98
|
conversationId?: string | undefined;
|
|
@@ -101,6 +100,7 @@ declare const AuditScope: z.ZodObject<{
|
|
|
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,7 +194,6 @@ 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
197
|
runId?: (string & z.BRAND<"RunId">) | undefined;
|
|
199
198
|
parentRunId?: (string & z.BRAND<"RunId">) | undefined;
|
|
200
199
|
conversationId?: string | undefined;
|
|
@@ -202,11 +201,11 @@ declare const AuditEnvelope: z.ZodObject<{
|
|
|
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
209
|
runId?: string | undefined;
|
|
211
210
|
parentRunId?: string | undefined;
|
|
212
211
|
conversationId?: string | undefined;
|
|
@@ -214,6 +213,7 @@ declare const AuditEnvelope: z.ZodObject<{
|
|
|
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
|
}>>;
|
|
@@ -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: "
|
|
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,7 +248,6 @@ declare const AuditEnvelope: z.ZodObject<{
|
|
|
248
248
|
} | undefined;
|
|
249
249
|
scope?: {
|
|
250
250
|
metadata?: Record<string, unknown> | undefined;
|
|
251
|
-
toolName?: string | undefined;
|
|
252
251
|
runId?: (string & z.BRAND<"RunId">) | undefined;
|
|
253
252
|
parentRunId?: (string & z.BRAND<"RunId">) | undefined;
|
|
254
253
|
conversationId?: string | undefined;
|
|
@@ -256,6 +255,7 @@ declare const AuditEnvelope: z.ZodObject<{
|
|
|
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;
|
|
@@ -264,23 +264,23 @@ declare const AuditEnvelope: z.ZodObject<{
|
|
|
264
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,7 +290,6 @@ declare const AuditEnvelope: z.ZodObject<{
|
|
|
290
290
|
} | undefined;
|
|
291
291
|
scope?: {
|
|
292
292
|
metadata?: Record<string, unknown> | undefined;
|
|
293
|
-
toolName?: string | undefined;
|
|
294
293
|
runId?: string | undefined;
|
|
295
294
|
parentRunId?: string | undefined;
|
|
296
295
|
conversationId?: string | undefined;
|
|
@@ -298,6 +297,7 @@ declare const AuditEnvelope: z.ZodObject<{
|
|
|
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;
|