@agent-watch-ai/edge 0.4.0 → 0.5.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 +29 -0
- package/README.md +3 -3
- package/SECURITY.md +1 -1
- package/dist/config/config-store.js +1 -1
- package/dist/config/repo-config.js +1 -1
- package/dist/config/schemas/config.schema.d.ts +93 -857
- package/dist/config/schemas/config.schema.js +5 -5
- package/dist/credentials/credentials.js +2 -2
- package/dist/credentials/schemas/device-api.schema.d.ts +4 -51
- package/dist/credentials/schemas/device-state.schema.d.ts +3 -38
- package/dist/git/code-state.d.ts +33 -0
- package/dist/git/code-state.js +44 -0
- package/dist/git/constants/git.constants.d.ts +6 -0
- package/dist/git/constants/git.constants.js +6 -0
- package/dist/git/index.d.ts +2 -1
- package/dist/git/index.js +1 -0
- package/dist/git/types/git.types.d.ts +6 -0
- package/dist/privacy/command-fingerprint.d.ts +42 -0
- package/dist/privacy/command-fingerprint.js +249 -0
- package/dist/privacy/constants/command-fingerprint.constants.d.ts +34 -0
- package/dist/privacy/constants/command-fingerprint.constants.js +38 -0
- package/dist/privacy/index.d.ts +3 -1
- package/dist/privacy/index.js +2 -0
- package/dist/privacy/product-capture.js +19 -1
- package/dist/privacy/types/privacy.types.d.ts +7 -0
- package/dist/providers/antigravity/antigravity.adapter.js +3 -0
- package/dist/providers/antigravity/schemas/antigravity.schema.d.ts +18 -492
- package/dist/providers/claude/claude.adapter.js +12 -1
- package/dist/providers/claude/constants/claude.constants.d.ts +6 -0
- package/dist/providers/claude/constants/claude.constants.js +6 -0
- package/dist/providers/claude/schemas/claude.schema.d.ts +1 -43
- package/dist/providers/codex/codex.adapter.js +14 -0
- package/dist/providers/codex/schemas/codex.schema.d.ts +1 -41
- package/dist/providers/cursor/cursor.adapter.js +5 -2
- package/dist/providers/cursor/schemas/cursor.schema.d.ts +5 -85
- package/dist/providers/gemini/constants/gemini.constants.d.ts +2 -0
- package/dist/providers/gemini/constants/gemini.constants.js +2 -0
- package/dist/providers/gemini/constants/gemini.otel.constants.d.ts +10 -1
- package/dist/providers/gemini/constants/gemini.otel.constants.js +11 -2
- package/dist/providers/gemini/gemini.detect.d.ts +11 -0
- package/dist/providers/gemini/gemini.detect.js +14 -1
- package/dist/providers/gemini/gemini.hooks.d.ts +3 -3
- package/dist/providers/gemini/gemini.hooks.js +5 -5
- package/dist/providers/gemini/gemini.otel.d.ts +6 -6
- package/dist/providers/gemini/gemini.otel.js +392 -121
- package/dist/providers/gemini/schemas/gemini.schema.d.ts +1 -49
- package/dist/providers/shared/event-builder.d.ts +17 -2
- package/dist/providers/shared/event-builder.js +43 -3
- package/dist/providers/shared/install-record.d.ts +2 -0
- package/dist/providers/shared/install-record.js +3 -2
- package/dist/providers/shared/tooling.d.ts +7 -0
- package/dist/providers/shared/tooling.js +10 -1
- package/dist/providers/shared/types/adapter.types.d.ts +18 -0
- package/dist/storage/schemas/storage.schema.d.ts +11 -175
- package/dist/storage/schemas/storage.schema.js +7 -1
- package/dist/transport/schemas/queue.schema.d.ts +1 -16
- package/dist/transport/schemas/queue.schema.js +1 -1
- package/dist/turns/constants/turns.constants.d.ts +17 -0
- package/dist/turns/constants/turns.constants.js +17 -0
- package/dist/turns/index.d.ts +3 -2
- package/dist/turns/index.js +1 -0
- package/dist/turns/tool-events.d.ts +15 -0
- package/dist/turns/tool-events.js +59 -0
- package/dist/turns/turn-state.js +2 -2
- package/dist/turns/turn-summary.d.ts +1 -1
- package/dist/turns/turn-summary.js +1 -0
- package/dist/turns/turn-tracker.js +138 -7
- package/dist/turns/types/turn-state.types.d.ts +28 -1
- package/dist/turns/types/turn-summary.types.d.ts +30 -0
- package/dist/turns/types/turn-tracker.types.d.ts +10 -0
- package/docs/AUDIT_PROMPT.md +11 -0
- package/docs/DATA_HANDLING.md +58 -10
- package/docs/ENTERPRISE_DEPLOYMENT.md +2 -1
- package/package.json +9 -8
|
@@ -29,51 +29,19 @@ export declare const captureSchema: z.ZodObject<{
|
|
|
29
29
|
promptText: z.ZodDefault<z.ZodBoolean>;
|
|
30
30
|
toolInput: z.ZodDefault<z.ZodBoolean>;
|
|
31
31
|
toolOutput: z.ZodDefault<z.ZodBoolean>;
|
|
32
|
-
/** The provider's native session name/title, scrubbed and bounded. A generated title can paraphrase the first prompt; the edge never derives one from the prompt. */
|
|
33
32
|
sessionTitle: z.ZodDefault<z.ZodBoolean>;
|
|
34
33
|
git: z.ZodDefault<z.ZodBoolean>;
|
|
35
34
|
files: z.ZodDefault<z.ZodBoolean>;
|
|
36
|
-
/** MCP server and tool names in `tools_used`; false folds them into `mcp`. Metadata, not content. */
|
|
37
35
|
mcpNames: z.ZodDefault<z.ZodBoolean>;
|
|
38
|
-
},
|
|
39
|
-
promptText: boolean;
|
|
40
|
-
toolInput: boolean;
|
|
41
|
-
toolOutput: boolean;
|
|
42
|
-
sessionTitle: boolean;
|
|
43
|
-
git: boolean;
|
|
44
|
-
files: boolean;
|
|
45
|
-
mcpNames: boolean;
|
|
46
|
-
}, {
|
|
47
|
-
promptText?: boolean | undefined;
|
|
48
|
-
toolInput?: boolean | undefined;
|
|
49
|
-
toolOutput?: boolean | undefined;
|
|
50
|
-
sessionTitle?: boolean | undefined;
|
|
51
|
-
git?: boolean | undefined;
|
|
52
|
-
files?: boolean | undefined;
|
|
53
|
-
mcpNames?: boolean | undefined;
|
|
54
|
-
}>;
|
|
36
|
+
}, z.core.$strip>;
|
|
55
37
|
/** Tuning for the in-hook send and the machine-global offline queue. */
|
|
56
38
|
export declare const deliverySchema: z.ZodObject<{
|
|
57
|
-
/** Shared network budget for direct send and backlog retries in one delivery pass. */
|
|
58
39
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
59
|
-
/** How many queued events one drain pass may send. */
|
|
60
40
|
drainBatchSize: z.ZodDefault<z.ZodNumber>;
|
|
61
41
|
maxQueueEvents: z.ZodDefault<z.ZodNumber>;
|
|
62
42
|
maxAttempts: z.ZodDefault<z.ZodNumber>;
|
|
63
43
|
maxEventAgeDays: z.ZodDefault<z.ZodNumber>;
|
|
64
|
-
},
|
|
65
|
-
timeoutMs: number;
|
|
66
|
-
drainBatchSize: number;
|
|
67
|
-
maxQueueEvents: number;
|
|
68
|
-
maxAttempts: number;
|
|
69
|
-
maxEventAgeDays: number;
|
|
70
|
-
}, {
|
|
71
|
-
timeoutMs?: number | undefined;
|
|
72
|
-
drainBatchSize?: number | undefined;
|
|
73
|
-
maxQueueEvents?: number | undefined;
|
|
74
|
-
maxAttempts?: number | undefined;
|
|
75
|
-
maxEventAgeDays?: number | undefined;
|
|
76
|
-
}>;
|
|
44
|
+
}, z.core.$strip>;
|
|
77
45
|
/**
|
|
78
46
|
* Which native OTLP signals agents export straight to the backend. Logs are
|
|
79
47
|
* the per-request usage/cost ledger the backend turns into llm.call — the
|
|
@@ -84,15 +52,7 @@ export declare const otelSchema: z.ZodObject<{
|
|
|
84
52
|
logs: z.ZodDefault<z.ZodBoolean>;
|
|
85
53
|
traces: z.ZodDefault<z.ZodBoolean>;
|
|
86
54
|
metrics: z.ZodDefault<z.ZodBoolean>;
|
|
87
|
-
},
|
|
88
|
-
logs: boolean;
|
|
89
|
-
traces: boolean;
|
|
90
|
-
metrics: boolean;
|
|
91
|
-
}, {
|
|
92
|
-
logs?: boolean | undefined;
|
|
93
|
-
traces?: boolean | undefined;
|
|
94
|
-
metrics?: boolean | undefined;
|
|
95
|
-
}>;
|
|
55
|
+
}, z.core.$strip>;
|
|
96
56
|
/**
|
|
97
57
|
* The pre-turn budget check.
|
|
98
58
|
*
|
|
@@ -104,36 +64,14 @@ export declare const otelSchema: z.ZodObject<{
|
|
|
104
64
|
*/
|
|
105
65
|
export declare const enforcementSchema: z.ZodObject<{
|
|
106
66
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
107
|
-
/** Hard ceiling for the check; it sits between enter and the agent's first call. */
|
|
108
67
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
109
|
-
/** Mirrors the platform's own cache TTL for the same decision. */
|
|
110
68
|
cacheTtlMs: z.ZodDefault<z.ZodNumber>;
|
|
111
|
-
},
|
|
112
|
-
timeoutMs: number;
|
|
113
|
-
enabled: boolean;
|
|
114
|
-
cacheTtlMs: number;
|
|
115
|
-
}, {
|
|
116
|
-
timeoutMs?: number | undefined;
|
|
117
|
-
enabled?: boolean | undefined;
|
|
118
|
-
cacheTtlMs?: number | undefined;
|
|
119
|
-
}>;
|
|
69
|
+
}, z.core.$strip>;
|
|
120
70
|
/** Which records the edge itself emits. */
|
|
121
71
|
export declare const emitSchema: z.ZodObject<{
|
|
122
|
-
/** One flat summary per prompt→response turn, emitted on Stop. */
|
|
123
72
|
turnSummaries: z.ZodDefault<z.ZodBoolean>;
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
* Accept a legacy `false` on input, but migrate that field to `true`
|
|
127
|
-
* instead of invalidating the entire global config.
|
|
128
|
-
*/
|
|
129
|
-
llmCalls: z.ZodEffects<z.ZodDefault<z.ZodBoolean>, true, boolean | undefined>;
|
|
130
|
-
}, "strip", z.ZodTypeAny, {
|
|
131
|
-
llmCalls: true;
|
|
132
|
-
turnSummaries: boolean;
|
|
133
|
-
}, {
|
|
134
|
-
llmCalls?: boolean | undefined;
|
|
135
|
-
turnSummaries?: boolean | undefined;
|
|
136
|
-
}>;
|
|
73
|
+
llmCalls: z.ZodPipe<z.ZodDefault<z.ZodBoolean>, z.ZodTransform<true, boolean>>;
|
|
74
|
+
}, z.core.$strip>;
|
|
137
75
|
/**
|
|
138
76
|
* Whether the edge may send a bearer and records to this URL. See `judgeUrl`.
|
|
139
77
|
*
|
|
@@ -218,99 +156,44 @@ export declare const rootOverrideSchema: z.ZodObject<{
|
|
|
218
156
|
token: z.ZodOptional<z.ZodString>;
|
|
219
157
|
device: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
220
158
|
id: z.ZodString;
|
|
221
|
-
store: z.ZodEnum<
|
|
159
|
+
store: z.ZodEnum<{
|
|
160
|
+
"macos-keychain": "macos-keychain";
|
|
161
|
+
libsecret: "libsecret";
|
|
162
|
+
"windows-dpapi": "windows-dpapi";
|
|
163
|
+
file: "file";
|
|
164
|
+
}>;
|
|
222
165
|
endpoint: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
223
166
|
source: z.ZodCatch<z.ZodOptional<z.ZodLiteral<"batch-code">>>;
|
|
224
167
|
codeId: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
225
|
-
},
|
|
226
|
-
id: string;
|
|
227
|
-
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
228
|
-
endpoint?: string | undefined;
|
|
229
|
-
source?: "batch-code" | undefined;
|
|
230
|
-
codeId?: string | undefined;
|
|
231
|
-
}, {
|
|
232
|
-
id: string;
|
|
233
|
-
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
234
|
-
endpoint?: unknown;
|
|
235
|
-
source?: unknown;
|
|
236
|
-
codeId?: unknown;
|
|
237
|
-
}>>>;
|
|
168
|
+
}, z.core.$strip>>>;
|
|
238
169
|
installationId: z.ZodOptional<z.ZodString>;
|
|
239
170
|
developerEmail: z.ZodOptional<z.ZodString>;
|
|
240
171
|
developerName: z.ZodOptional<z.ZodString>;
|
|
241
|
-
},
|
|
242
|
-
endpoint?: string | null | undefined;
|
|
243
|
-
token?: string | undefined;
|
|
244
|
-
eventsUrl?: string | null | undefined;
|
|
245
|
-
otlpUrl?: string | null | undefined;
|
|
246
|
-
device?: {
|
|
247
|
-
id: string;
|
|
248
|
-
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
249
|
-
endpoint?: string | undefined;
|
|
250
|
-
source?: "batch-code" | undefined;
|
|
251
|
-
codeId?: string | undefined;
|
|
252
|
-
} | undefined;
|
|
253
|
-
installationId?: string | undefined;
|
|
254
|
-
developerEmail?: string | undefined;
|
|
255
|
-
developerName?: string | undefined;
|
|
256
|
-
}, {
|
|
257
|
-
endpoint?: unknown;
|
|
258
|
-
token?: string | undefined;
|
|
259
|
-
eventsUrl?: unknown;
|
|
260
|
-
otlpUrl?: unknown;
|
|
261
|
-
device?: unknown;
|
|
262
|
-
installationId?: string | undefined;
|
|
263
|
-
developerEmail?: string | undefined;
|
|
264
|
-
developerName?: string | undefined;
|
|
265
|
-
}>;
|
|
172
|
+
}, z.core.$strip>;
|
|
266
173
|
/** The whole configuration file. Passthrough: forward compatibility. */
|
|
267
|
-
export declare const configSchema: z.
|
|
174
|
+
export declare const configSchema: z.ZodPipe<z.ZodObject<{
|
|
268
175
|
schemaVersion: z.ZodDefault<z.ZodLiteral<1>>;
|
|
269
|
-
/** Backend base URL, e.g. https://backend.example.com */
|
|
270
176
|
endpoint: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
271
|
-
/** Overrides; derived from endpoint when absent. */
|
|
272
177
|
eventsUrl: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
273
178
|
otlpUrl: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
274
179
|
enforcementUrl: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
275
|
-
/** The install key, until it is exchanged for `device` (AWT-356). */
|
|
276
180
|
token: z.ZodOptional<z.ZodString>;
|
|
277
181
|
device: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
278
182
|
id: z.ZodString;
|
|
279
|
-
store: z.ZodEnum<
|
|
183
|
+
store: z.ZodEnum<{
|
|
184
|
+
"macos-keychain": "macos-keychain";
|
|
185
|
+
libsecret: "libsecret";
|
|
186
|
+
"windows-dpapi": "windows-dpapi";
|
|
187
|
+
file: "file";
|
|
188
|
+
}>;
|
|
280
189
|
endpoint: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
281
190
|
source: z.ZodCatch<z.ZodOptional<z.ZodLiteral<"batch-code">>>;
|
|
282
191
|
codeId: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
283
|
-
},
|
|
284
|
-
id: string;
|
|
285
|
-
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
286
|
-
endpoint?: string | undefined;
|
|
287
|
-
source?: "batch-code" | undefined;
|
|
288
|
-
codeId?: string | undefined;
|
|
289
|
-
}, {
|
|
290
|
-
id: string;
|
|
291
|
-
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
292
|
-
endpoint?: unknown;
|
|
293
|
-
source?: unknown;
|
|
294
|
-
codeId?: unknown;
|
|
295
|
-
}>>>;
|
|
296
|
-
/**
|
|
297
|
-
* The organization an enrollment URL named. Beside no credential it marks an
|
|
298
|
-
* MDM install whose developer has not signed in yet: it sends nothing.
|
|
299
|
-
*/
|
|
192
|
+
}, z.core.$strip>>>;
|
|
300
193
|
organizationId: z.ZodOptional<z.ZodString>;
|
|
301
194
|
installationId: z.ZodOptional<z.ZodString>;
|
|
302
|
-
/** Developer identity attached to turn summaries; falls back to `git config user.email`. */
|
|
303
195
|
developerEmail: z.ZodOptional<z.ZodString>;
|
|
304
|
-
/**
|
|
305
|
-
* What to call this developer in the platform's views; falls back to
|
|
306
|
-
* `git config user.name`. Never an identity: nothing is keyed on it, and a
|
|
307
|
-
* turn is still reported under `developerEmail`.
|
|
308
|
-
*/
|
|
309
196
|
developerName: z.ZodOptional<z.ZodString>;
|
|
310
|
-
/**
|
|
311
|
-
* Absolute project root -> the identity to use beneath it. Longest match
|
|
312
|
-
* wins, so a nested checkout can override the workspace above it.
|
|
313
|
-
*/
|
|
314
197
|
roots: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
315
198
|
endpoint: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
316
199
|
eventsUrl: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -318,281 +201,57 @@ export declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
318
201
|
token: z.ZodOptional<z.ZodString>;
|
|
319
202
|
device: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
320
203
|
id: z.ZodString;
|
|
321
|
-
store: z.ZodEnum<
|
|
204
|
+
store: z.ZodEnum<{
|
|
205
|
+
"macos-keychain": "macos-keychain";
|
|
206
|
+
libsecret: "libsecret";
|
|
207
|
+
"windows-dpapi": "windows-dpapi";
|
|
208
|
+
file: "file";
|
|
209
|
+
}>;
|
|
322
210
|
endpoint: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
323
211
|
source: z.ZodCatch<z.ZodOptional<z.ZodLiteral<"batch-code">>>;
|
|
324
212
|
codeId: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
325
|
-
},
|
|
326
|
-
id: string;
|
|
327
|
-
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
328
|
-
endpoint?: string | undefined;
|
|
329
|
-
source?: "batch-code" | undefined;
|
|
330
|
-
codeId?: string | undefined;
|
|
331
|
-
}, {
|
|
332
|
-
id: string;
|
|
333
|
-
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
334
|
-
endpoint?: unknown;
|
|
335
|
-
source?: unknown;
|
|
336
|
-
codeId?: unknown;
|
|
337
|
-
}>>>;
|
|
213
|
+
}, z.core.$strip>>>;
|
|
338
214
|
installationId: z.ZodOptional<z.ZodString>;
|
|
339
215
|
developerEmail: z.ZodOptional<z.ZodString>;
|
|
340
216
|
developerName: z.ZodOptional<z.ZodString>;
|
|
341
|
-
},
|
|
342
|
-
endpoint?: string | null | undefined;
|
|
343
|
-
token?: string | undefined;
|
|
344
|
-
eventsUrl?: string | null | undefined;
|
|
345
|
-
otlpUrl?: string | null | undefined;
|
|
346
|
-
device?: {
|
|
347
|
-
id: string;
|
|
348
|
-
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
349
|
-
endpoint?: string | undefined;
|
|
350
|
-
source?: "batch-code" | undefined;
|
|
351
|
-
codeId?: string | undefined;
|
|
352
|
-
} | undefined;
|
|
353
|
-
installationId?: string | undefined;
|
|
354
|
-
developerEmail?: string | undefined;
|
|
355
|
-
developerName?: string | undefined;
|
|
356
|
-
}, {
|
|
357
|
-
endpoint?: unknown;
|
|
358
|
-
token?: string | undefined;
|
|
359
|
-
eventsUrl?: unknown;
|
|
360
|
-
otlpUrl?: unknown;
|
|
361
|
-
device?: unknown;
|
|
362
|
-
installationId?: string | undefined;
|
|
363
|
-
developerEmail?: string | undefined;
|
|
364
|
-
developerName?: string | undefined;
|
|
365
|
-
}>>>;
|
|
217
|
+
}, z.core.$strip>>>;
|
|
366
218
|
contentCaptureConsent: z.ZodDefault<z.ZodBoolean>;
|
|
367
|
-
|
|
368
|
-
* Origins this machine sends to outside the Agent Watch hosts. Written by
|
|
369
|
-
* `setup --allow-custom-endpoint` (exactly the origin that run named) or
|
|
370
|
-
* grandfathered from a file older than the allowlist; shown by `status` and
|
|
371
|
-
* `doctor`. A malformed value reads as no trust without failing the file.
|
|
372
|
-
*/
|
|
373
|
-
customEndpoints: z.ZodDefault<z.ZodCatch<z.ZodArray<z.ZodString, "many">>>;
|
|
374
|
-
/** Present on a file written after the allowlist; see `ALLOWLIST_VERSION_KEY`. */
|
|
219
|
+
customEndpoints: z.ZodDefault<z.ZodCatch<z.ZodArray<z.ZodString>>>;
|
|
375
220
|
allowlistVersion: z.ZodOptional<z.ZodNumber>;
|
|
376
|
-
/** Tell the developer, once per repository per session, that a run called an LLM with no tracing (AWT-310). */
|
|
377
221
|
untracedNotices: z.ZodDefault<z.ZodBoolean>;
|
|
378
|
-
/** At session start, say when npm has a newer release; checked at most once a day, in the background. */
|
|
379
222
|
updateNotices: z.ZodDefault<z.ZodBoolean>;
|
|
380
|
-
capture: z.
|
|
223
|
+
capture: z.ZodPrefault<z.ZodObject<{
|
|
381
224
|
promptText: z.ZodDefault<z.ZodBoolean>;
|
|
382
225
|
toolInput: z.ZodDefault<z.ZodBoolean>;
|
|
383
226
|
toolOutput: z.ZodDefault<z.ZodBoolean>;
|
|
384
|
-
/** The provider's native session name/title, scrubbed and bounded. A generated title can paraphrase the first prompt; the edge never derives one from the prompt. */
|
|
385
227
|
sessionTitle: z.ZodDefault<z.ZodBoolean>;
|
|
386
228
|
git: z.ZodDefault<z.ZodBoolean>;
|
|
387
229
|
files: z.ZodDefault<z.ZodBoolean>;
|
|
388
|
-
/** MCP server and tool names in `tools_used`; false folds them into `mcp`. Metadata, not content. */
|
|
389
230
|
mcpNames: z.ZodDefault<z.ZodBoolean>;
|
|
390
|
-
},
|
|
391
|
-
|
|
392
|
-
toolInput: boolean;
|
|
393
|
-
toolOutput: boolean;
|
|
394
|
-
sessionTitle: boolean;
|
|
395
|
-
git: boolean;
|
|
396
|
-
files: boolean;
|
|
397
|
-
mcpNames: boolean;
|
|
398
|
-
}, {
|
|
399
|
-
promptText?: boolean | undefined;
|
|
400
|
-
toolInput?: boolean | undefined;
|
|
401
|
-
toolOutput?: boolean | undefined;
|
|
402
|
-
sessionTitle?: boolean | undefined;
|
|
403
|
-
git?: boolean | undefined;
|
|
404
|
-
files?: boolean | undefined;
|
|
405
|
-
mcpNames?: boolean | undefined;
|
|
406
|
-
}>>;
|
|
407
|
-
emit: z.ZodDefault<z.ZodObject<{
|
|
408
|
-
/** One flat summary per prompt→response turn, emitted on Stop. */
|
|
231
|
+
}, z.core.$strip>>;
|
|
232
|
+
emit: z.ZodPrefault<z.ZodObject<{
|
|
409
233
|
turnSummaries: z.ZodDefault<z.ZodBoolean>;
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
* instead of invalidating the entire global config.
|
|
414
|
-
*/
|
|
415
|
-
llmCalls: z.ZodEffects<z.ZodDefault<z.ZodBoolean>, true, boolean | undefined>;
|
|
416
|
-
}, "strip", z.ZodTypeAny, {
|
|
417
|
-
llmCalls: true;
|
|
418
|
-
turnSummaries: boolean;
|
|
419
|
-
}, {
|
|
420
|
-
llmCalls?: boolean | undefined;
|
|
421
|
-
turnSummaries?: boolean | undefined;
|
|
422
|
-
}>>;
|
|
423
|
-
otel: z.ZodDefault<z.ZodObject<{
|
|
234
|
+
llmCalls: z.ZodPipe<z.ZodDefault<z.ZodBoolean>, z.ZodTransform<true, boolean>>;
|
|
235
|
+
}, z.core.$strip>>;
|
|
236
|
+
otel: z.ZodPrefault<z.ZodObject<{
|
|
424
237
|
logs: z.ZodDefault<z.ZodBoolean>;
|
|
425
238
|
traces: z.ZodDefault<z.ZodBoolean>;
|
|
426
239
|
metrics: z.ZodDefault<z.ZodBoolean>;
|
|
427
|
-
},
|
|
428
|
-
|
|
429
|
-
traces: boolean;
|
|
430
|
-
metrics: boolean;
|
|
431
|
-
}, {
|
|
432
|
-
logs?: boolean | undefined;
|
|
433
|
-
traces?: boolean | undefined;
|
|
434
|
-
metrics?: boolean | undefined;
|
|
435
|
-
}>>;
|
|
436
|
-
delivery: z.ZodDefault<z.ZodObject<{
|
|
437
|
-
/** Shared network budget for direct send and backlog retries in one delivery pass. */
|
|
240
|
+
}, z.core.$strip>>;
|
|
241
|
+
delivery: z.ZodPrefault<z.ZodObject<{
|
|
438
242
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
439
|
-
/** How many queued events one drain pass may send. */
|
|
440
243
|
drainBatchSize: z.ZodDefault<z.ZodNumber>;
|
|
441
244
|
maxQueueEvents: z.ZodDefault<z.ZodNumber>;
|
|
442
245
|
maxAttempts: z.ZodDefault<z.ZodNumber>;
|
|
443
246
|
maxEventAgeDays: z.ZodDefault<z.ZodNumber>;
|
|
444
|
-
},
|
|
445
|
-
|
|
446
|
-
drainBatchSize: number;
|
|
447
|
-
maxQueueEvents: number;
|
|
448
|
-
maxAttempts: number;
|
|
449
|
-
maxEventAgeDays: number;
|
|
450
|
-
}, {
|
|
451
|
-
timeoutMs?: number | undefined;
|
|
452
|
-
drainBatchSize?: number | undefined;
|
|
453
|
-
maxQueueEvents?: number | undefined;
|
|
454
|
-
maxAttempts?: number | undefined;
|
|
455
|
-
maxEventAgeDays?: number | undefined;
|
|
456
|
-
}>>;
|
|
457
|
-
enforcement: z.ZodDefault<z.ZodObject<{
|
|
247
|
+
}, z.core.$strip>>;
|
|
248
|
+
enforcement: z.ZodPrefault<z.ZodObject<{
|
|
458
249
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
459
|
-
/** Hard ceiling for the check; it sits between enter and the agent's first call. */
|
|
460
250
|
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
461
|
-
/** Mirrors the platform's own cache TTL for the same decision. */
|
|
462
251
|
cacheTtlMs: z.ZodDefault<z.ZodNumber>;
|
|
463
|
-
},
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
cacheTtlMs: number;
|
|
467
|
-
}, {
|
|
468
|
-
timeoutMs?: number | undefined;
|
|
469
|
-
enabled?: boolean | undefined;
|
|
470
|
-
cacheTtlMs?: number | undefined;
|
|
471
|
-
}>>;
|
|
472
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
473
|
-
schemaVersion: z.ZodDefault<z.ZodLiteral<1>>;
|
|
474
|
-
/** Backend base URL, e.g. https://backend.example.com */
|
|
475
|
-
endpoint: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
476
|
-
/** Overrides; derived from endpoint when absent. */
|
|
477
|
-
eventsUrl: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
478
|
-
otlpUrl: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
479
|
-
enforcementUrl: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
480
|
-
/** The install key, until it is exchanged for `device` (AWT-356). */
|
|
481
|
-
token: z.ZodOptional<z.ZodString>;
|
|
482
|
-
device: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
483
|
-
id: z.ZodString;
|
|
484
|
-
store: z.ZodEnum<["macos-keychain", "libsecret", "windows-dpapi", "file"]>;
|
|
485
|
-
endpoint: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
486
|
-
source: z.ZodCatch<z.ZodOptional<z.ZodLiteral<"batch-code">>>;
|
|
487
|
-
codeId: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
488
|
-
}, "strip", z.ZodTypeAny, {
|
|
489
|
-
id: string;
|
|
490
|
-
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
491
|
-
endpoint?: string | undefined;
|
|
492
|
-
source?: "batch-code" | undefined;
|
|
493
|
-
codeId?: string | undefined;
|
|
494
|
-
}, {
|
|
495
|
-
id: string;
|
|
496
|
-
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
497
|
-
endpoint?: unknown;
|
|
498
|
-
source?: unknown;
|
|
499
|
-
codeId?: unknown;
|
|
500
|
-
}>>>;
|
|
501
|
-
/**
|
|
502
|
-
* The organization an enrollment URL named. Beside no credential it marks an
|
|
503
|
-
* MDM install whose developer has not signed in yet: it sends nothing.
|
|
504
|
-
*/
|
|
505
|
-
organizationId: z.ZodOptional<z.ZodString>;
|
|
506
|
-
installationId: z.ZodOptional<z.ZodString>;
|
|
507
|
-
/** Developer identity attached to turn summaries; falls back to `git config user.email`. */
|
|
508
|
-
developerEmail: z.ZodOptional<z.ZodString>;
|
|
509
|
-
/**
|
|
510
|
-
* What to call this developer in the platform's views; falls back to
|
|
511
|
-
* `git config user.name`. Never an identity: nothing is keyed on it, and a
|
|
512
|
-
* turn is still reported under `developerEmail`.
|
|
513
|
-
*/
|
|
514
|
-
developerName: z.ZodOptional<z.ZodString>;
|
|
515
|
-
/**
|
|
516
|
-
* Absolute project root -> the identity to use beneath it. Longest match
|
|
517
|
-
* wins, so a nested checkout can override the workspace above it.
|
|
518
|
-
*/
|
|
519
|
-
roots: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
520
|
-
endpoint: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
521
|
-
eventsUrl: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
522
|
-
otlpUrl: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
523
|
-
token: z.ZodOptional<z.ZodString>;
|
|
524
|
-
device: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
525
|
-
id: z.ZodString;
|
|
526
|
-
store: z.ZodEnum<["macos-keychain", "libsecret", "windows-dpapi", "file"]>;
|
|
527
|
-
endpoint: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
528
|
-
source: z.ZodCatch<z.ZodOptional<z.ZodLiteral<"batch-code">>>;
|
|
529
|
-
codeId: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
530
|
-
}, "strip", z.ZodTypeAny, {
|
|
531
|
-
id: string;
|
|
532
|
-
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
533
|
-
endpoint?: string | undefined;
|
|
534
|
-
source?: "batch-code" | undefined;
|
|
535
|
-
codeId?: string | undefined;
|
|
536
|
-
}, {
|
|
537
|
-
id: string;
|
|
538
|
-
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
539
|
-
endpoint?: unknown;
|
|
540
|
-
source?: unknown;
|
|
541
|
-
codeId?: unknown;
|
|
542
|
-
}>>>;
|
|
543
|
-
installationId: z.ZodOptional<z.ZodString>;
|
|
544
|
-
developerEmail: z.ZodOptional<z.ZodString>;
|
|
545
|
-
developerName: z.ZodOptional<z.ZodString>;
|
|
546
|
-
}, "strip", z.ZodTypeAny, {
|
|
547
|
-
endpoint?: string | null | undefined;
|
|
548
|
-
token?: string | undefined;
|
|
549
|
-
eventsUrl?: string | null | undefined;
|
|
550
|
-
otlpUrl?: string | null | undefined;
|
|
551
|
-
device?: {
|
|
552
|
-
id: string;
|
|
553
|
-
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
554
|
-
endpoint?: string | undefined;
|
|
555
|
-
source?: "batch-code" | undefined;
|
|
556
|
-
codeId?: string | undefined;
|
|
557
|
-
} | undefined;
|
|
558
|
-
installationId?: string | undefined;
|
|
559
|
-
developerEmail?: string | undefined;
|
|
560
|
-
developerName?: string | undefined;
|
|
561
|
-
}, {
|
|
562
|
-
endpoint?: unknown;
|
|
563
|
-
token?: string | undefined;
|
|
564
|
-
eventsUrl?: unknown;
|
|
565
|
-
otlpUrl?: unknown;
|
|
566
|
-
device?: unknown;
|
|
567
|
-
installationId?: string | undefined;
|
|
568
|
-
developerEmail?: string | undefined;
|
|
569
|
-
developerName?: string | undefined;
|
|
570
|
-
}>>>;
|
|
571
|
-
contentCaptureConsent: z.ZodDefault<z.ZodBoolean>;
|
|
572
|
-
/**
|
|
573
|
-
* Origins this machine sends to outside the Agent Watch hosts. Written by
|
|
574
|
-
* `setup --allow-custom-endpoint` (exactly the origin that run named) or
|
|
575
|
-
* grandfathered from a file older than the allowlist; shown by `status` and
|
|
576
|
-
* `doctor`. A malformed value reads as no trust without failing the file.
|
|
577
|
-
*/
|
|
578
|
-
customEndpoints: z.ZodDefault<z.ZodCatch<z.ZodArray<z.ZodString, "many">>>;
|
|
579
|
-
/** Present on a file written after the allowlist; see `ALLOWLIST_VERSION_KEY`. */
|
|
580
|
-
allowlistVersion: z.ZodOptional<z.ZodNumber>;
|
|
581
|
-
/** Tell the developer, once per repository per session, that a run called an LLM with no tracing (AWT-310). */
|
|
582
|
-
untracedNotices: z.ZodDefault<z.ZodBoolean>;
|
|
583
|
-
/** At session start, say when npm has a newer release; checked at most once a day, in the background. */
|
|
584
|
-
updateNotices: z.ZodDefault<z.ZodBoolean>;
|
|
585
|
-
capture: z.ZodDefault<z.ZodObject<{
|
|
586
|
-
promptText: z.ZodDefault<z.ZodBoolean>;
|
|
587
|
-
toolInput: z.ZodDefault<z.ZodBoolean>;
|
|
588
|
-
toolOutput: z.ZodDefault<z.ZodBoolean>;
|
|
589
|
-
/** The provider's native session name/title, scrubbed and bounded. A generated title can paraphrase the first prompt; the edge never derives one from the prompt. */
|
|
590
|
-
sessionTitle: z.ZodDefault<z.ZodBoolean>;
|
|
591
|
-
git: z.ZodDefault<z.ZodBoolean>;
|
|
592
|
-
files: z.ZodDefault<z.ZodBoolean>;
|
|
593
|
-
/** MCP server and tool names in `tools_used`; false folds them into `mcp`. Metadata, not content. */
|
|
594
|
-
mcpNames: z.ZodDefault<z.ZodBoolean>;
|
|
595
|
-
}, "strip", z.ZodTypeAny, {
|
|
252
|
+
}, z.core.$strip>>;
|
|
253
|
+
}, z.core.$loose>, z.ZodTransform<{
|
|
254
|
+
capture: {
|
|
596
255
|
promptText: boolean;
|
|
597
256
|
toolInput: boolean;
|
|
598
257
|
toolOutput: boolean;
|
|
@@ -600,159 +259,54 @@ export declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
600
259
|
git: boolean;
|
|
601
260
|
files: boolean;
|
|
602
261
|
mcpNames: boolean;
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
mcpNames?: boolean | undefined;
|
|
611
|
-
}>>;
|
|
612
|
-
emit: z.ZodDefault<z.ZodObject<{
|
|
613
|
-
/** One flat summary per prompt→response turn, emitted on Stop. */
|
|
614
|
-
turnSummaries: z.ZodDefault<z.ZodBoolean>;
|
|
615
|
-
/**
|
|
616
|
-
* Every provider request is mandatory: it is the lossless usage ledger.
|
|
617
|
-
* Accept a legacy `false` on input, but migrate that field to `true`
|
|
618
|
-
* instead of invalidating the entire global config.
|
|
619
|
-
*/
|
|
620
|
-
llmCalls: z.ZodEffects<z.ZodDefault<z.ZodBoolean>, true, boolean | undefined>;
|
|
621
|
-
}, "strip", z.ZodTypeAny, {
|
|
622
|
-
llmCalls: true;
|
|
262
|
+
};
|
|
263
|
+
schemaVersion: 1;
|
|
264
|
+
contentCaptureConsent: boolean;
|
|
265
|
+
customEndpoints: string[];
|
|
266
|
+
untracedNotices: boolean;
|
|
267
|
+
updateNotices: boolean;
|
|
268
|
+
emit: {
|
|
623
269
|
turnSummaries: boolean;
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
}>>;
|
|
628
|
-
otel: z.ZodDefault<z.ZodObject<{
|
|
629
|
-
logs: z.ZodDefault<z.ZodBoolean>;
|
|
630
|
-
traces: z.ZodDefault<z.ZodBoolean>;
|
|
631
|
-
metrics: z.ZodDefault<z.ZodBoolean>;
|
|
632
|
-
}, "strip", z.ZodTypeAny, {
|
|
270
|
+
llmCalls: true;
|
|
271
|
+
};
|
|
272
|
+
otel: {
|
|
633
273
|
logs: boolean;
|
|
634
274
|
traces: boolean;
|
|
635
275
|
metrics: boolean;
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
traces?: boolean | undefined;
|
|
639
|
-
metrics?: boolean | undefined;
|
|
640
|
-
}>>;
|
|
641
|
-
delivery: z.ZodDefault<z.ZodObject<{
|
|
642
|
-
/** Shared network budget for direct send and backlog retries in one delivery pass. */
|
|
643
|
-
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
644
|
-
/** How many queued events one drain pass may send. */
|
|
645
|
-
drainBatchSize: z.ZodDefault<z.ZodNumber>;
|
|
646
|
-
maxQueueEvents: z.ZodDefault<z.ZodNumber>;
|
|
647
|
-
maxAttempts: z.ZodDefault<z.ZodNumber>;
|
|
648
|
-
maxEventAgeDays: z.ZodDefault<z.ZodNumber>;
|
|
649
|
-
}, "strip", z.ZodTypeAny, {
|
|
276
|
+
};
|
|
277
|
+
delivery: {
|
|
650
278
|
timeoutMs: number;
|
|
651
279
|
drainBatchSize: number;
|
|
652
280
|
maxQueueEvents: number;
|
|
653
281
|
maxAttempts: number;
|
|
654
282
|
maxEventAgeDays: number;
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
drainBatchSize?: number | undefined;
|
|
658
|
-
maxQueueEvents?: number | undefined;
|
|
659
|
-
maxAttempts?: number | undefined;
|
|
660
|
-
maxEventAgeDays?: number | undefined;
|
|
661
|
-
}>>;
|
|
662
|
-
enforcement: z.ZodDefault<z.ZodObject<{
|
|
663
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
664
|
-
/** Hard ceiling for the check; it sits between enter and the agent's first call. */
|
|
665
|
-
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
666
|
-
/** Mirrors the platform's own cache TTL for the same decision. */
|
|
667
|
-
cacheTtlMs: z.ZodDefault<z.ZodNumber>;
|
|
668
|
-
}, "strip", z.ZodTypeAny, {
|
|
669
|
-
timeoutMs: number;
|
|
283
|
+
};
|
|
284
|
+
enforcement: {
|
|
670
285
|
enabled: boolean;
|
|
286
|
+
timeoutMs: number;
|
|
671
287
|
cacheTtlMs: number;
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
/** Backend base URL, e.g. https://backend.example.com */
|
|
680
|
-
endpoint: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
681
|
-
/** Overrides; derived from endpoint when absent. */
|
|
682
|
-
eventsUrl: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
683
|
-
otlpUrl: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
684
|
-
enforcementUrl: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
685
|
-
/** The install key, until it is exchanged for `device` (AWT-356). */
|
|
686
|
-
token: z.ZodOptional<z.ZodString>;
|
|
687
|
-
device: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
688
|
-
id: z.ZodString;
|
|
689
|
-
store: z.ZodEnum<["macos-keychain", "libsecret", "windows-dpapi", "file"]>;
|
|
690
|
-
endpoint: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
691
|
-
source: z.ZodCatch<z.ZodOptional<z.ZodLiteral<"batch-code">>>;
|
|
692
|
-
codeId: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
693
|
-
}, "strip", z.ZodTypeAny, {
|
|
288
|
+
};
|
|
289
|
+
endpoint?: string | null | undefined;
|
|
290
|
+
eventsUrl?: string | null | undefined;
|
|
291
|
+
otlpUrl?: string | null | undefined;
|
|
292
|
+
enforcementUrl?: string | null | undefined;
|
|
293
|
+
token?: string | undefined;
|
|
294
|
+
device?: {
|
|
694
295
|
id: string;
|
|
695
296
|
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
696
297
|
endpoint?: string | undefined;
|
|
697
298
|
source?: "batch-code" | undefined;
|
|
698
299
|
codeId?: string | undefined;
|
|
699
|
-
}
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
}>>>;
|
|
706
|
-
/**
|
|
707
|
-
* The organization an enrollment URL named. Beside no credential it marks an
|
|
708
|
-
* MDM install whose developer has not signed in yet: it sends nothing.
|
|
709
|
-
*/
|
|
710
|
-
organizationId: z.ZodOptional<z.ZodString>;
|
|
711
|
-
installationId: z.ZodOptional<z.ZodString>;
|
|
712
|
-
/** Developer identity attached to turn summaries; falls back to `git config user.email`. */
|
|
713
|
-
developerEmail: z.ZodOptional<z.ZodString>;
|
|
714
|
-
/**
|
|
715
|
-
* What to call this developer in the platform's views; falls back to
|
|
716
|
-
* `git config user.name`. Never an identity: nothing is keyed on it, and a
|
|
717
|
-
* turn is still reported under `developerEmail`.
|
|
718
|
-
*/
|
|
719
|
-
developerName: z.ZodOptional<z.ZodString>;
|
|
720
|
-
/**
|
|
721
|
-
* Absolute project root -> the identity to use beneath it. Longest match
|
|
722
|
-
* wins, so a nested checkout can override the workspace above it.
|
|
723
|
-
*/
|
|
724
|
-
roots: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
725
|
-
endpoint: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
726
|
-
eventsUrl: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
727
|
-
otlpUrl: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
728
|
-
token: z.ZodOptional<z.ZodString>;
|
|
729
|
-
device: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
730
|
-
id: z.ZodString;
|
|
731
|
-
store: z.ZodEnum<["macos-keychain", "libsecret", "windows-dpapi", "file"]>;
|
|
732
|
-
endpoint: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
733
|
-
source: z.ZodCatch<z.ZodOptional<z.ZodLiteral<"batch-code">>>;
|
|
734
|
-
codeId: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
735
|
-
}, "strip", z.ZodTypeAny, {
|
|
736
|
-
id: string;
|
|
737
|
-
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
738
|
-
endpoint?: string | undefined;
|
|
739
|
-
source?: "batch-code" | undefined;
|
|
740
|
-
codeId?: string | undefined;
|
|
741
|
-
}, {
|
|
742
|
-
id: string;
|
|
743
|
-
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
744
|
-
endpoint?: unknown;
|
|
745
|
-
source?: unknown;
|
|
746
|
-
codeId?: unknown;
|
|
747
|
-
}>>>;
|
|
748
|
-
installationId: z.ZodOptional<z.ZodString>;
|
|
749
|
-
developerEmail: z.ZodOptional<z.ZodString>;
|
|
750
|
-
developerName: z.ZodOptional<z.ZodString>;
|
|
751
|
-
}, "strip", z.ZodTypeAny, {
|
|
300
|
+
} | undefined;
|
|
301
|
+
organizationId?: string | undefined;
|
|
302
|
+
installationId?: string | undefined;
|
|
303
|
+
developerEmail?: string | undefined;
|
|
304
|
+
developerName?: string | undefined;
|
|
305
|
+
roots?: Record<string, {
|
|
752
306
|
endpoint?: string | null | undefined;
|
|
753
|
-
token?: string | undefined;
|
|
754
307
|
eventsUrl?: string | null | undefined;
|
|
755
308
|
otlpUrl?: string | null | undefined;
|
|
309
|
+
token?: string | undefined;
|
|
756
310
|
device?: {
|
|
757
311
|
id: string;
|
|
758
312
|
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
@@ -763,123 +317,15 @@ export declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
763
317
|
installationId?: string | undefined;
|
|
764
318
|
developerEmail?: string | undefined;
|
|
765
319
|
developerName?: string | undefined;
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
}>>>;
|
|
776
|
-
contentCaptureConsent: z.ZodDefault<z.ZodBoolean>;
|
|
777
|
-
/**
|
|
778
|
-
* Origins this machine sends to outside the Agent Watch hosts. Written by
|
|
779
|
-
* `setup --allow-custom-endpoint` (exactly the origin that run named) or
|
|
780
|
-
* grandfathered from a file older than the allowlist; shown by `status` and
|
|
781
|
-
* `doctor`. A malformed value reads as no trust without failing the file.
|
|
782
|
-
*/
|
|
783
|
-
customEndpoints: z.ZodDefault<z.ZodCatch<z.ZodArray<z.ZodString, "many">>>;
|
|
784
|
-
/** Present on a file written after the allowlist; see `ALLOWLIST_VERSION_KEY`. */
|
|
785
|
-
allowlistVersion: z.ZodOptional<z.ZodNumber>;
|
|
786
|
-
/** Tell the developer, once per repository per session, that a run called an LLM with no tracing (AWT-310). */
|
|
787
|
-
untracedNotices: z.ZodDefault<z.ZodBoolean>;
|
|
788
|
-
/** At session start, say when npm has a newer release; checked at most once a day, in the background. */
|
|
789
|
-
updateNotices: z.ZodDefault<z.ZodBoolean>;
|
|
790
|
-
capture: z.ZodDefault<z.ZodObject<{
|
|
791
|
-
promptText: z.ZodDefault<z.ZodBoolean>;
|
|
792
|
-
toolInput: z.ZodDefault<z.ZodBoolean>;
|
|
793
|
-
toolOutput: z.ZodDefault<z.ZodBoolean>;
|
|
794
|
-
/** The provider's native session name/title, scrubbed and bounded. A generated title can paraphrase the first prompt; the edge never derives one from the prompt. */
|
|
795
|
-
sessionTitle: z.ZodDefault<z.ZodBoolean>;
|
|
796
|
-
git: z.ZodDefault<z.ZodBoolean>;
|
|
797
|
-
files: z.ZodDefault<z.ZodBoolean>;
|
|
798
|
-
/** MCP server and tool names in `tools_used`; false folds them into `mcp`. Metadata, not content. */
|
|
799
|
-
mcpNames: z.ZodDefault<z.ZodBoolean>;
|
|
800
|
-
}, "strip", z.ZodTypeAny, {
|
|
801
|
-
promptText: boolean;
|
|
802
|
-
toolInput: boolean;
|
|
803
|
-
toolOutput: boolean;
|
|
804
|
-
sessionTitle: boolean;
|
|
805
|
-
git: boolean;
|
|
806
|
-
files: boolean;
|
|
807
|
-
mcpNames: boolean;
|
|
808
|
-
}, {
|
|
809
|
-
promptText?: boolean | undefined;
|
|
810
|
-
toolInput?: boolean | undefined;
|
|
811
|
-
toolOutput?: boolean | undefined;
|
|
812
|
-
sessionTitle?: boolean | undefined;
|
|
813
|
-
git?: boolean | undefined;
|
|
814
|
-
files?: boolean | undefined;
|
|
815
|
-
mcpNames?: boolean | undefined;
|
|
816
|
-
}>>;
|
|
817
|
-
emit: z.ZodDefault<z.ZodObject<{
|
|
818
|
-
/** One flat summary per prompt→response turn, emitted on Stop. */
|
|
819
|
-
turnSummaries: z.ZodDefault<z.ZodBoolean>;
|
|
820
|
-
/**
|
|
821
|
-
* Every provider request is mandatory: it is the lossless usage ledger.
|
|
822
|
-
* Accept a legacy `false` on input, but migrate that field to `true`
|
|
823
|
-
* instead of invalidating the entire global config.
|
|
824
|
-
*/
|
|
825
|
-
llmCalls: z.ZodEffects<z.ZodDefault<z.ZodBoolean>, true, boolean | undefined>;
|
|
826
|
-
}, "strip", z.ZodTypeAny, {
|
|
827
|
-
llmCalls: true;
|
|
828
|
-
turnSummaries: boolean;
|
|
829
|
-
}, {
|
|
830
|
-
llmCalls?: boolean | undefined;
|
|
831
|
-
turnSummaries?: boolean | undefined;
|
|
832
|
-
}>>;
|
|
833
|
-
otel: z.ZodDefault<z.ZodObject<{
|
|
834
|
-
logs: z.ZodDefault<z.ZodBoolean>;
|
|
835
|
-
traces: z.ZodDefault<z.ZodBoolean>;
|
|
836
|
-
metrics: z.ZodDefault<z.ZodBoolean>;
|
|
837
|
-
}, "strip", z.ZodTypeAny, {
|
|
838
|
-
logs: boolean;
|
|
839
|
-
traces: boolean;
|
|
840
|
-
metrics: boolean;
|
|
841
|
-
}, {
|
|
842
|
-
logs?: boolean | undefined;
|
|
843
|
-
traces?: boolean | undefined;
|
|
844
|
-
metrics?: boolean | undefined;
|
|
845
|
-
}>>;
|
|
846
|
-
delivery: z.ZodDefault<z.ZodObject<{
|
|
847
|
-
/** Shared network budget for direct send and backlog retries in one delivery pass. */
|
|
848
|
-
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
849
|
-
/** How many queued events one drain pass may send. */
|
|
850
|
-
drainBatchSize: z.ZodDefault<z.ZodNumber>;
|
|
851
|
-
maxQueueEvents: z.ZodDefault<z.ZodNumber>;
|
|
852
|
-
maxAttempts: z.ZodDefault<z.ZodNumber>;
|
|
853
|
-
maxEventAgeDays: z.ZodDefault<z.ZodNumber>;
|
|
854
|
-
}, "strip", z.ZodTypeAny, {
|
|
855
|
-
timeoutMs: number;
|
|
856
|
-
drainBatchSize: number;
|
|
857
|
-
maxQueueEvents: number;
|
|
858
|
-
maxAttempts: number;
|
|
859
|
-
maxEventAgeDays: number;
|
|
860
|
-
}, {
|
|
861
|
-
timeoutMs?: number | undefined;
|
|
862
|
-
drainBatchSize?: number | undefined;
|
|
863
|
-
maxQueueEvents?: number | undefined;
|
|
864
|
-
maxAttempts?: number | undefined;
|
|
865
|
-
maxEventAgeDays?: number | undefined;
|
|
866
|
-
}>>;
|
|
867
|
-
enforcement: z.ZodDefault<z.ZodObject<{
|
|
868
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
869
|
-
/** Hard ceiling for the check; it sits between enter and the agent's first call. */
|
|
870
|
-
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
871
|
-
/** Mirrors the platform's own cache TTL for the same decision. */
|
|
872
|
-
cacheTtlMs: z.ZodDefault<z.ZodNumber>;
|
|
873
|
-
}, "strip", z.ZodTypeAny, {
|
|
874
|
-
timeoutMs: number;
|
|
875
|
-
enabled: boolean;
|
|
876
|
-
cacheTtlMs: number;
|
|
877
|
-
}, {
|
|
878
|
-
timeoutMs?: number | undefined;
|
|
879
|
-
enabled?: boolean | undefined;
|
|
880
|
-
cacheTtlMs?: number | undefined;
|
|
881
|
-
}>>;
|
|
882
|
-
}, z.ZodTypeAny, "passthrough">>, {
|
|
320
|
+
}> | undefined;
|
|
321
|
+
allowlistVersion?: number | undefined;
|
|
322
|
+
}, {
|
|
323
|
+
[x: string]: unknown;
|
|
324
|
+
schemaVersion: 1;
|
|
325
|
+
contentCaptureConsent: boolean;
|
|
326
|
+
customEndpoints: string[];
|
|
327
|
+
untracedNotices: boolean;
|
|
328
|
+
updateNotices: boolean;
|
|
883
329
|
capture: {
|
|
884
330
|
promptText: boolean;
|
|
885
331
|
toolInput: boolean;
|
|
@@ -889,15 +335,15 @@ export declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
889
335
|
files: boolean;
|
|
890
336
|
mcpNames: boolean;
|
|
891
337
|
};
|
|
338
|
+
emit: {
|
|
339
|
+
turnSummaries: boolean;
|
|
340
|
+
llmCalls: true;
|
|
341
|
+
};
|
|
892
342
|
otel: {
|
|
893
343
|
logs: boolean;
|
|
894
344
|
traces: boolean;
|
|
895
345
|
metrics: boolean;
|
|
896
346
|
};
|
|
897
|
-
customEndpoints: string[];
|
|
898
|
-
contentCaptureConsent: boolean;
|
|
899
|
-
untracedNotices: boolean;
|
|
900
|
-
updateNotices: boolean;
|
|
901
347
|
delivery: {
|
|
902
348
|
timeoutMs: number;
|
|
903
349
|
drainBatchSize: number;
|
|
@@ -906,37 +352,15 @@ export declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
906
352
|
maxEventAgeDays: number;
|
|
907
353
|
};
|
|
908
354
|
enforcement: {
|
|
909
|
-
timeoutMs: number;
|
|
910
355
|
enabled: boolean;
|
|
356
|
+
timeoutMs: number;
|
|
911
357
|
cacheTtlMs: number;
|
|
912
358
|
};
|
|
913
|
-
emit: {
|
|
914
|
-
llmCalls: true;
|
|
915
|
-
turnSummaries: boolean;
|
|
916
|
-
};
|
|
917
|
-
schemaVersion: 1;
|
|
918
359
|
endpoint?: string | null | undefined;
|
|
919
|
-
token?: string | undefined;
|
|
920
|
-
allowlistVersion?: number | undefined;
|
|
921
360
|
eventsUrl?: string | null | undefined;
|
|
922
361
|
otlpUrl?: string | null | undefined;
|
|
923
362
|
enforcementUrl?: string | null | undefined;
|
|
924
|
-
|
|
925
|
-
endpoint?: string | null | undefined;
|
|
926
|
-
token?: string | undefined;
|
|
927
|
-
eventsUrl?: string | null | undefined;
|
|
928
|
-
otlpUrl?: string | null | undefined;
|
|
929
|
-
device?: {
|
|
930
|
-
id: string;
|
|
931
|
-
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
932
|
-
endpoint?: string | undefined;
|
|
933
|
-
source?: "batch-code" | undefined;
|
|
934
|
-
codeId?: string | undefined;
|
|
935
|
-
} | undefined;
|
|
936
|
-
installationId?: string | undefined;
|
|
937
|
-
developerEmail?: string | undefined;
|
|
938
|
-
developerName?: string | undefined;
|
|
939
|
-
}> | undefined;
|
|
363
|
+
token?: string | undefined;
|
|
940
364
|
device?: {
|
|
941
365
|
id: string;
|
|
942
366
|
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
@@ -948,85 +372,11 @@ export declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
948
372
|
installationId?: string | undefined;
|
|
949
373
|
developerEmail?: string | undefined;
|
|
950
374
|
developerName?: string | undefined;
|
|
951
|
-
|
|
952
|
-
schemaVersion: z.ZodDefault<z.ZodLiteral<1>>;
|
|
953
|
-
/** Backend base URL, e.g. https://backend.example.com */
|
|
954
|
-
endpoint: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
955
|
-
/** Overrides; derived from endpoint when absent. */
|
|
956
|
-
eventsUrl: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
957
|
-
otlpUrl: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
958
|
-
enforcementUrl: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
959
|
-
/** The install key, until it is exchanged for `device` (AWT-356). */
|
|
960
|
-
token: z.ZodOptional<z.ZodString>;
|
|
961
|
-
device: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
962
|
-
id: z.ZodString;
|
|
963
|
-
store: z.ZodEnum<["macos-keychain", "libsecret", "windows-dpapi", "file"]>;
|
|
964
|
-
endpoint: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
965
|
-
source: z.ZodCatch<z.ZodOptional<z.ZodLiteral<"batch-code">>>;
|
|
966
|
-
codeId: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
967
|
-
}, "strip", z.ZodTypeAny, {
|
|
968
|
-
id: string;
|
|
969
|
-
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
970
|
-
endpoint?: string | undefined;
|
|
971
|
-
source?: "batch-code" | undefined;
|
|
972
|
-
codeId?: string | undefined;
|
|
973
|
-
}, {
|
|
974
|
-
id: string;
|
|
975
|
-
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
976
|
-
endpoint?: unknown;
|
|
977
|
-
source?: unknown;
|
|
978
|
-
codeId?: unknown;
|
|
979
|
-
}>>>;
|
|
980
|
-
/**
|
|
981
|
-
* The organization an enrollment URL named. Beside no credential it marks an
|
|
982
|
-
* MDM install whose developer has not signed in yet: it sends nothing.
|
|
983
|
-
*/
|
|
984
|
-
organizationId: z.ZodOptional<z.ZodString>;
|
|
985
|
-
installationId: z.ZodOptional<z.ZodString>;
|
|
986
|
-
/** Developer identity attached to turn summaries; falls back to `git config user.email`. */
|
|
987
|
-
developerEmail: z.ZodOptional<z.ZodString>;
|
|
988
|
-
/**
|
|
989
|
-
* What to call this developer in the platform's views; falls back to
|
|
990
|
-
* `git config user.name`. Never an identity: nothing is keyed on it, and a
|
|
991
|
-
* turn is still reported under `developerEmail`.
|
|
992
|
-
*/
|
|
993
|
-
developerName: z.ZodOptional<z.ZodString>;
|
|
994
|
-
/**
|
|
995
|
-
* Absolute project root -> the identity to use beneath it. Longest match
|
|
996
|
-
* wins, so a nested checkout can override the workspace above it.
|
|
997
|
-
*/
|
|
998
|
-
roots: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
999
|
-
endpoint: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1000
|
-
eventsUrl: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1001
|
-
otlpUrl: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1002
|
-
token: z.ZodOptional<z.ZodString>;
|
|
1003
|
-
device: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
1004
|
-
id: z.ZodString;
|
|
1005
|
-
store: z.ZodEnum<["macos-keychain", "libsecret", "windows-dpapi", "file"]>;
|
|
1006
|
-
endpoint: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
1007
|
-
source: z.ZodCatch<z.ZodOptional<z.ZodLiteral<"batch-code">>>;
|
|
1008
|
-
codeId: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
1009
|
-
}, "strip", z.ZodTypeAny, {
|
|
1010
|
-
id: string;
|
|
1011
|
-
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
1012
|
-
endpoint?: string | undefined;
|
|
1013
|
-
source?: "batch-code" | undefined;
|
|
1014
|
-
codeId?: string | undefined;
|
|
1015
|
-
}, {
|
|
1016
|
-
id: string;
|
|
1017
|
-
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
1018
|
-
endpoint?: unknown;
|
|
1019
|
-
source?: unknown;
|
|
1020
|
-
codeId?: unknown;
|
|
1021
|
-
}>>>;
|
|
1022
|
-
installationId: z.ZodOptional<z.ZodString>;
|
|
1023
|
-
developerEmail: z.ZodOptional<z.ZodString>;
|
|
1024
|
-
developerName: z.ZodOptional<z.ZodString>;
|
|
1025
|
-
}, "strip", z.ZodTypeAny, {
|
|
375
|
+
roots?: Record<string, {
|
|
1026
376
|
endpoint?: string | null | undefined;
|
|
1027
|
-
token?: string | undefined;
|
|
1028
377
|
eventsUrl?: string | null | undefined;
|
|
1029
378
|
otlpUrl?: string | null | undefined;
|
|
379
|
+
token?: string | undefined;
|
|
1030
380
|
device?: {
|
|
1031
381
|
id: string;
|
|
1032
382
|
store: "macos-keychain" | "libsecret" | "windows-dpapi" | "file";
|
|
@@ -1037,120 +387,6 @@ export declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1037
387
|
installationId?: string | undefined;
|
|
1038
388
|
developerEmail?: string | undefined;
|
|
1039
389
|
developerName?: string | undefined;
|
|
1040
|
-
}
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
eventsUrl?: unknown;
|
|
1044
|
-
otlpUrl?: unknown;
|
|
1045
|
-
device?: unknown;
|
|
1046
|
-
installationId?: string | undefined;
|
|
1047
|
-
developerEmail?: string | undefined;
|
|
1048
|
-
developerName?: string | undefined;
|
|
1049
|
-
}>>>;
|
|
1050
|
-
contentCaptureConsent: z.ZodDefault<z.ZodBoolean>;
|
|
1051
|
-
/**
|
|
1052
|
-
* Origins this machine sends to outside the Agent Watch hosts. Written by
|
|
1053
|
-
* `setup --allow-custom-endpoint` (exactly the origin that run named) or
|
|
1054
|
-
* grandfathered from a file older than the allowlist; shown by `status` and
|
|
1055
|
-
* `doctor`. A malformed value reads as no trust without failing the file.
|
|
1056
|
-
*/
|
|
1057
|
-
customEndpoints: z.ZodDefault<z.ZodCatch<z.ZodArray<z.ZodString, "many">>>;
|
|
1058
|
-
/** Present on a file written after the allowlist; see `ALLOWLIST_VERSION_KEY`. */
|
|
1059
|
-
allowlistVersion: z.ZodOptional<z.ZodNumber>;
|
|
1060
|
-
/** Tell the developer, once per repository per session, that a run called an LLM with no tracing (AWT-310). */
|
|
1061
|
-
untracedNotices: z.ZodDefault<z.ZodBoolean>;
|
|
1062
|
-
/** At session start, say when npm has a newer release; checked at most once a day, in the background. */
|
|
1063
|
-
updateNotices: z.ZodDefault<z.ZodBoolean>;
|
|
1064
|
-
capture: z.ZodDefault<z.ZodObject<{
|
|
1065
|
-
promptText: z.ZodDefault<z.ZodBoolean>;
|
|
1066
|
-
toolInput: z.ZodDefault<z.ZodBoolean>;
|
|
1067
|
-
toolOutput: z.ZodDefault<z.ZodBoolean>;
|
|
1068
|
-
/** The provider's native session name/title, scrubbed and bounded. A generated title can paraphrase the first prompt; the edge never derives one from the prompt. */
|
|
1069
|
-
sessionTitle: z.ZodDefault<z.ZodBoolean>;
|
|
1070
|
-
git: z.ZodDefault<z.ZodBoolean>;
|
|
1071
|
-
files: z.ZodDefault<z.ZodBoolean>;
|
|
1072
|
-
/** MCP server and tool names in `tools_used`; false folds them into `mcp`. Metadata, not content. */
|
|
1073
|
-
mcpNames: z.ZodDefault<z.ZodBoolean>;
|
|
1074
|
-
}, "strip", z.ZodTypeAny, {
|
|
1075
|
-
promptText: boolean;
|
|
1076
|
-
toolInput: boolean;
|
|
1077
|
-
toolOutput: boolean;
|
|
1078
|
-
sessionTitle: boolean;
|
|
1079
|
-
git: boolean;
|
|
1080
|
-
files: boolean;
|
|
1081
|
-
mcpNames: boolean;
|
|
1082
|
-
}, {
|
|
1083
|
-
promptText?: boolean | undefined;
|
|
1084
|
-
toolInput?: boolean | undefined;
|
|
1085
|
-
toolOutput?: boolean | undefined;
|
|
1086
|
-
sessionTitle?: boolean | undefined;
|
|
1087
|
-
git?: boolean | undefined;
|
|
1088
|
-
files?: boolean | undefined;
|
|
1089
|
-
mcpNames?: boolean | undefined;
|
|
1090
|
-
}>>;
|
|
1091
|
-
emit: z.ZodDefault<z.ZodObject<{
|
|
1092
|
-
/** One flat summary per prompt→response turn, emitted on Stop. */
|
|
1093
|
-
turnSummaries: z.ZodDefault<z.ZodBoolean>;
|
|
1094
|
-
/**
|
|
1095
|
-
* Every provider request is mandatory: it is the lossless usage ledger.
|
|
1096
|
-
* Accept a legacy `false` on input, but migrate that field to `true`
|
|
1097
|
-
* instead of invalidating the entire global config.
|
|
1098
|
-
*/
|
|
1099
|
-
llmCalls: z.ZodEffects<z.ZodDefault<z.ZodBoolean>, true, boolean | undefined>;
|
|
1100
|
-
}, "strip", z.ZodTypeAny, {
|
|
1101
|
-
llmCalls: true;
|
|
1102
|
-
turnSummaries: boolean;
|
|
1103
|
-
}, {
|
|
1104
|
-
llmCalls?: boolean | undefined;
|
|
1105
|
-
turnSummaries?: boolean | undefined;
|
|
1106
|
-
}>>;
|
|
1107
|
-
otel: z.ZodDefault<z.ZodObject<{
|
|
1108
|
-
logs: z.ZodDefault<z.ZodBoolean>;
|
|
1109
|
-
traces: z.ZodDefault<z.ZodBoolean>;
|
|
1110
|
-
metrics: z.ZodDefault<z.ZodBoolean>;
|
|
1111
|
-
}, "strip", z.ZodTypeAny, {
|
|
1112
|
-
logs: boolean;
|
|
1113
|
-
traces: boolean;
|
|
1114
|
-
metrics: boolean;
|
|
1115
|
-
}, {
|
|
1116
|
-
logs?: boolean | undefined;
|
|
1117
|
-
traces?: boolean | undefined;
|
|
1118
|
-
metrics?: boolean | undefined;
|
|
1119
|
-
}>>;
|
|
1120
|
-
delivery: z.ZodDefault<z.ZodObject<{
|
|
1121
|
-
/** Shared network budget for direct send and backlog retries in one delivery pass. */
|
|
1122
|
-
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
1123
|
-
/** How many queued events one drain pass may send. */
|
|
1124
|
-
drainBatchSize: z.ZodDefault<z.ZodNumber>;
|
|
1125
|
-
maxQueueEvents: z.ZodDefault<z.ZodNumber>;
|
|
1126
|
-
maxAttempts: z.ZodDefault<z.ZodNumber>;
|
|
1127
|
-
maxEventAgeDays: z.ZodDefault<z.ZodNumber>;
|
|
1128
|
-
}, "strip", z.ZodTypeAny, {
|
|
1129
|
-
timeoutMs: number;
|
|
1130
|
-
drainBatchSize: number;
|
|
1131
|
-
maxQueueEvents: number;
|
|
1132
|
-
maxAttempts: number;
|
|
1133
|
-
maxEventAgeDays: number;
|
|
1134
|
-
}, {
|
|
1135
|
-
timeoutMs?: number | undefined;
|
|
1136
|
-
drainBatchSize?: number | undefined;
|
|
1137
|
-
maxQueueEvents?: number | undefined;
|
|
1138
|
-
maxAttempts?: number | undefined;
|
|
1139
|
-
maxEventAgeDays?: number | undefined;
|
|
1140
|
-
}>>;
|
|
1141
|
-
enforcement: z.ZodDefault<z.ZodObject<{
|
|
1142
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1143
|
-
/** Hard ceiling for the check; it sits between enter and the agent's first call. */
|
|
1144
|
-
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
1145
|
-
/** Mirrors the platform's own cache TTL for the same decision. */
|
|
1146
|
-
cacheTtlMs: z.ZodDefault<z.ZodNumber>;
|
|
1147
|
-
}, "strip", z.ZodTypeAny, {
|
|
1148
|
-
timeoutMs: number;
|
|
1149
|
-
enabled: boolean;
|
|
1150
|
-
cacheTtlMs: number;
|
|
1151
|
-
}, {
|
|
1152
|
-
timeoutMs?: number | undefined;
|
|
1153
|
-
enabled?: boolean | undefined;
|
|
1154
|
-
cacheTtlMs?: number | undefined;
|
|
1155
|
-
}>>;
|
|
1156
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
390
|
+
}> | undefined;
|
|
391
|
+
allowlistVersion?: number | undefined;
|
|
392
|
+
}>>;
|