@agentdock/wire 0.0.93 → 0.0.95
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/dist/accountLanguage.d.ts +26 -0
- package/dist/accountLanguage.js +1 -0
- package/dist/activityPreferences.d.ts +0 -2
- package/dist/agentCapabilities.d.ts +20 -24
- package/dist/agentCapabilities.js +1 -1
- package/dist/agentCommonEnv.d.ts +0 -9
- package/dist/agentInstallGuide.d.ts +0 -7
- package/dist/agentRuntimeSettings.d.ts +139 -0
- package/dist/agentRuntimeSettings.js +1 -0
- package/dist/bgTask.d.ts +13 -24
- package/dist/checkpointSchemas.d.ts +1 -2
- package/dist/controlLevel.d.ts +1 -9
- package/dist/edition.d.ts +0 -1
- package/dist/enterpriseGateway.d.ts +214 -0
- package/dist/enterpriseGateway.js +1 -0
- package/dist/enterprisePolicy.d.ts +1599 -0
- package/dist/enterprisePolicy.js +1 -0
- package/dist/enterprisePolicyExports.d.ts +2 -0
- package/dist/enterprisePolicyExports.js +1 -0
- package/dist/enterpriseRuntime.d.ts +317 -0
- package/dist/enterpriseRuntime.js +1 -0
- package/dist/envelope.d.ts +63 -60
- package/dist/errorMessage.d.ts +0 -1
- package/dist/events.d.ts +73 -77
- package/dist/events.js +1 -1
- package/dist/features.d.ts +19 -30
- package/dist/features.js +1 -1
- package/dist/feedback.d.ts +21 -22
- package/dist/fileWhitelist.d.ts +7 -39
- package/dist/gateway.d.ts +1184 -0
- package/dist/gateway.js +1 -0
- package/dist/goals.d.ts +0 -1
- package/dist/handoffBrief.d.ts +13 -0
- package/dist/handoffBrief.js +52 -0
- package/dist/inboundEvents.d.ts +83 -56
- package/dist/inboundEvents.js +1 -1
- package/dist/index.d.ts +25 -16
- package/dist/index.js +1 -1
- package/dist/interactionEvents.d.ts +51 -59
- package/dist/legacyProtocol.d.ts +36 -42
- package/dist/license.d.ts +36 -37
- package/dist/machine.d.ts +54 -53
- package/dist/machine.js +1 -1
- package/dist/messageMeta.d.ts +20 -20
- package/dist/messageMeta.js +1 -1
- package/dist/messages.d.ts +338 -223
- package/dist/messages.js +1 -1
- package/dist/notification.d.ts +2 -3
- package/dist/ops.d.ts +9 -27
- package/dist/pairing.d.ts +9 -49
- package/dist/permissionSubject.d.ts +3 -26
- package/dist/protocol.d.ts +0 -6
- package/dist/rpc.d.ts +957 -196
- package/dist/rpc.js +1 -1
- package/dist/scheduledTasks.d.ts +59 -60
- package/dist/semver.d.ts +3 -22
- package/dist/sessionBtw.d.ts +152 -0
- package/dist/sessionBtw.js +1 -0
- package/dist/sessionResult.d.ts +21 -27
- package/dist/sessionTitle.d.ts +9 -0
- package/dist/sessionTitle.js +1 -0
- package/dist/socketEvents.d.ts +12 -4
- package/dist/socketEvents.js +1 -1
- package/dist/sourceMetadata.d.ts +3 -16
- package/dist/spawnError.d.ts +7 -14
- package/dist/stats.d.ts +99 -68
- package/dist/stats.js +1 -1
- package/dist/sync.d.ts +285 -51
- package/dist/sync.js +1 -1
- package/dist/taskResult.d.ts +3 -20
- package/dist/telemetry.d.ts +1 -11
- package/dist/utils.d.ts +0 -1
- package/dist/workItems.d.ts +321 -0
- package/dist/workItems.js +1 -0
- package/package.json +1 -1
package/dist/events.d.ts
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Session event schemas.
|
|
3
|
-
*
|
|
4
|
-
* Event types: text, service, tool-call-start, tool-call-end,
|
|
5
|
-
* file, turn-start, turn-end, start, stop.
|
|
6
|
-
*/
|
|
7
1
|
import { z } from 'zod';
|
|
8
2
|
export declare const SessionTextEventSchema: z.ZodObject<{
|
|
9
3
|
t: z.ZodLiteral<"text">;
|
|
@@ -83,23 +77,23 @@ export declare const SessionToolCallStartEventSchema: z.ZodObject<{
|
|
|
83
77
|
export declare const SessionToolCallEndEventSchema: z.ZodObject<{
|
|
84
78
|
t: z.ZodLiteral<"tool-call-end">;
|
|
85
79
|
call: z.ZodString;
|
|
86
|
-
|
|
80
|
+
|
|
87
81
|
result: z.ZodOptional<z.ZodString>;
|
|
88
|
-
|
|
82
|
+
|
|
89
83
|
error: z.ZodOptional<z.ZodBoolean>;
|
|
90
84
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
91
85
|
t: z.ZodLiteral<"tool-call-end">;
|
|
92
86
|
call: z.ZodString;
|
|
93
|
-
|
|
87
|
+
|
|
94
88
|
result: z.ZodOptional<z.ZodString>;
|
|
95
|
-
|
|
89
|
+
|
|
96
90
|
error: z.ZodOptional<z.ZodBoolean>;
|
|
97
91
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
98
92
|
t: z.ZodLiteral<"tool-call-end">;
|
|
99
93
|
call: z.ZodString;
|
|
100
|
-
|
|
94
|
+
|
|
101
95
|
result: z.ZodOptional<z.ZodString>;
|
|
102
|
-
|
|
96
|
+
|
|
103
97
|
error: z.ZodOptional<z.ZodBoolean>;
|
|
104
98
|
}, z.ZodTypeAny, "passthrough">>;
|
|
105
99
|
export declare const SessionFileEventSchema: z.ZodObject<{
|
|
@@ -166,7 +160,7 @@ export declare const SessionTurnStartEventSchema: z.ZodObject<{
|
|
|
166
160
|
}, z.ZodTypeAny, "passthrough">>;
|
|
167
161
|
export declare const SessionTurnEndStatusSchema: z.ZodEnum<["completed", "failed", "cancelled"]>;
|
|
168
162
|
export type SessionTurnEndStatus = z.infer<typeof SessionTurnEndStatusSchema>;
|
|
169
|
-
|
|
163
|
+
|
|
170
164
|
export declare const TurnUsageSchema: z.ZodObject<{
|
|
171
165
|
inputTokens: z.ZodNumber;
|
|
172
166
|
outputTokens: z.ZodNumber;
|
|
@@ -204,9 +198,9 @@ export declare const SessionTurnEndEventSchema: z.ZodObject<{
|
|
|
204
198
|
cacheWriteTokens: z.ZodOptional<z.ZodNumber>;
|
|
205
199
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
206
200
|
model: z.ZodOptional<z.ZodString>;
|
|
207
|
-
|
|
201
|
+
|
|
208
202
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
209
|
-
|
|
203
|
+
|
|
210
204
|
compact: z.ZodOptional<z.ZodBoolean>;
|
|
211
205
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
212
206
|
t: z.ZodLiteral<"turn-end">;
|
|
@@ -228,9 +222,9 @@ export declare const SessionTurnEndEventSchema: z.ZodObject<{
|
|
|
228
222
|
cacheWriteTokens: z.ZodOptional<z.ZodNumber>;
|
|
229
223
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
230
224
|
model: z.ZodOptional<z.ZodString>;
|
|
231
|
-
|
|
225
|
+
|
|
232
226
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
233
|
-
|
|
227
|
+
|
|
234
228
|
compact: z.ZodOptional<z.ZodBoolean>;
|
|
235
229
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
236
230
|
t: z.ZodLiteral<"turn-end">;
|
|
@@ -252,25 +246,25 @@ export declare const SessionTurnEndEventSchema: z.ZodObject<{
|
|
|
252
246
|
cacheWriteTokens: z.ZodOptional<z.ZodNumber>;
|
|
253
247
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
254
248
|
model: z.ZodOptional<z.ZodString>;
|
|
255
|
-
|
|
249
|
+
|
|
256
250
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
257
|
-
|
|
251
|
+
|
|
258
252
|
compact: z.ZodOptional<z.ZodBoolean>;
|
|
259
253
|
}, z.ZodTypeAny, "passthrough">>;
|
|
260
254
|
export declare const SessionStartEventSchema: z.ZodObject<{
|
|
261
255
|
t: z.ZodLiteral<"start">;
|
|
262
256
|
title: z.ZodOptional<z.ZodString>;
|
|
263
|
-
|
|
257
|
+
|
|
264
258
|
taskId: z.ZodOptional<z.ZodString>;
|
|
265
259
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
266
260
|
t: z.ZodLiteral<"start">;
|
|
267
261
|
title: z.ZodOptional<z.ZodString>;
|
|
268
|
-
|
|
262
|
+
|
|
269
263
|
taskId: z.ZodOptional<z.ZodString>;
|
|
270
264
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
271
265
|
t: z.ZodLiteral<"start">;
|
|
272
266
|
title: z.ZodOptional<z.ZodString>;
|
|
273
|
-
|
|
267
|
+
|
|
274
268
|
taskId: z.ZodOptional<z.ZodString>;
|
|
275
269
|
}, z.ZodTypeAny, "passthrough">>;
|
|
276
270
|
export declare const SessionStopEventSchema: z.ZodObject<{
|
|
@@ -280,27 +274,27 @@ export declare const SessionStopEventSchema: z.ZodObject<{
|
|
|
280
274
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
281
275
|
t: z.ZodLiteral<"stop">;
|
|
282
276
|
}, z.ZodTypeAny, "passthrough">>;
|
|
283
|
-
|
|
277
|
+
|
|
284
278
|
export declare const SessionImageEventSchema: z.ZodObject<{
|
|
285
279
|
t: z.ZodLiteral<"image">;
|
|
286
|
-
|
|
280
|
+
|
|
287
281
|
data: z.ZodString;
|
|
288
|
-
|
|
282
|
+
|
|
289
283
|
mediaType: z.ZodString;
|
|
290
284
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
291
285
|
t: z.ZodLiteral<"image">;
|
|
292
|
-
|
|
286
|
+
|
|
293
287
|
data: z.ZodString;
|
|
294
|
-
|
|
288
|
+
|
|
295
289
|
mediaType: z.ZodString;
|
|
296
290
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
297
291
|
t: z.ZodLiteral<"image">;
|
|
298
|
-
|
|
292
|
+
|
|
299
293
|
data: z.ZodString;
|
|
300
|
-
|
|
294
|
+
|
|
301
295
|
mediaType: z.ZodString;
|
|
302
296
|
}, z.ZodTypeAny, "passthrough">>;
|
|
303
|
-
|
|
297
|
+
|
|
304
298
|
export declare const SessionContextUsageEventSchema: z.ZodObject<{
|
|
305
299
|
t: z.ZodLiteral<"context-usage">;
|
|
306
300
|
categories: z.ZodArray<z.ZodObject<{
|
|
@@ -1067,25 +1061,31 @@ export declare const SessionContextUsageEventSchema: z.ZodObject<{
|
|
|
1067
1061
|
cache_read_input_tokens: z.ZodNumber;
|
|
1068
1062
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
1069
1063
|
}, z.ZodTypeAny, "passthrough">>;
|
|
1070
|
-
|
|
1064
|
+
|
|
1071
1065
|
export declare const SessionCompactBoundaryEventSchema: z.ZodObject<{
|
|
1072
1066
|
t: z.ZodLiteral<"compact-boundary">;
|
|
1073
|
-
trigger: z.ZodEnum<["manual", "auto"]>;
|
|
1074
|
-
preTokens: z.ZodNumber
|
|
1067
|
+
trigger: z.ZodEnum<["manual", "auto", "unknown"]>;
|
|
1068
|
+
preTokens: z.ZodOptional<z.ZodNumber>;
|
|
1075
1069
|
postTokens: z.ZodOptional<z.ZodNumber>;
|
|
1076
1070
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
1071
|
+
|
|
1072
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
1077
1073
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1078
1074
|
t: z.ZodLiteral<"compact-boundary">;
|
|
1079
|
-
trigger: z.ZodEnum<["manual", "auto"]>;
|
|
1080
|
-
preTokens: z.ZodNumber
|
|
1075
|
+
trigger: z.ZodEnum<["manual", "auto", "unknown"]>;
|
|
1076
|
+
preTokens: z.ZodOptional<z.ZodNumber>;
|
|
1081
1077
|
postTokens: z.ZodOptional<z.ZodNumber>;
|
|
1082
1078
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
1079
|
+
|
|
1080
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
1083
1081
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1084
1082
|
t: z.ZodLiteral<"compact-boundary">;
|
|
1085
|
-
trigger: z.ZodEnum<["manual", "auto"]>;
|
|
1086
|
-
preTokens: z.ZodNumber
|
|
1083
|
+
trigger: z.ZodEnum<["manual", "auto", "unknown"]>;
|
|
1084
|
+
preTokens: z.ZodOptional<z.ZodNumber>;
|
|
1087
1085
|
postTokens: z.ZodOptional<z.ZodNumber>;
|
|
1088
1086
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
1087
|
+
|
|
1088
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
1089
1089
|
}, z.ZodTypeAny, "passthrough">>;
|
|
1090
1090
|
export declare const SessionEventSchema: z.ZodDiscriminatedUnion<"t", [z.ZodObject<{
|
|
1091
1091
|
t: z.ZodLiteral<"text">;
|
|
@@ -1162,23 +1162,23 @@ export declare const SessionEventSchema: z.ZodDiscriminatedUnion<"t", [z.ZodObje
|
|
|
1162
1162
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
1163
1163
|
t: z.ZodLiteral<"tool-call-end">;
|
|
1164
1164
|
call: z.ZodString;
|
|
1165
|
-
|
|
1165
|
+
|
|
1166
1166
|
result: z.ZodOptional<z.ZodString>;
|
|
1167
|
-
|
|
1167
|
+
|
|
1168
1168
|
error: z.ZodOptional<z.ZodBoolean>;
|
|
1169
1169
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1170
1170
|
t: z.ZodLiteral<"tool-call-end">;
|
|
1171
1171
|
call: z.ZodString;
|
|
1172
|
-
|
|
1172
|
+
|
|
1173
1173
|
result: z.ZodOptional<z.ZodString>;
|
|
1174
|
-
|
|
1174
|
+
|
|
1175
1175
|
error: z.ZodOptional<z.ZodBoolean>;
|
|
1176
1176
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1177
1177
|
t: z.ZodLiteral<"tool-call-end">;
|
|
1178
1178
|
call: z.ZodString;
|
|
1179
|
-
|
|
1179
|
+
|
|
1180
1180
|
result: z.ZodOptional<z.ZodString>;
|
|
1181
|
-
|
|
1181
|
+
|
|
1182
1182
|
error: z.ZodOptional<z.ZodBoolean>;
|
|
1183
1183
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
1184
1184
|
t: z.ZodLiteral<"file">;
|
|
@@ -1260,9 +1260,9 @@ export declare const SessionEventSchema: z.ZodDiscriminatedUnion<"t", [z.ZodObje
|
|
|
1260
1260
|
cacheWriteTokens: z.ZodOptional<z.ZodNumber>;
|
|
1261
1261
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
1262
1262
|
model: z.ZodOptional<z.ZodString>;
|
|
1263
|
-
|
|
1263
|
+
|
|
1264
1264
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
1265
|
-
|
|
1265
|
+
|
|
1266
1266
|
compact: z.ZodOptional<z.ZodBoolean>;
|
|
1267
1267
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1268
1268
|
t: z.ZodLiteral<"turn-end">;
|
|
@@ -1284,9 +1284,9 @@ export declare const SessionEventSchema: z.ZodDiscriminatedUnion<"t", [z.ZodObje
|
|
|
1284
1284
|
cacheWriteTokens: z.ZodOptional<z.ZodNumber>;
|
|
1285
1285
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
1286
1286
|
model: z.ZodOptional<z.ZodString>;
|
|
1287
|
-
|
|
1287
|
+
|
|
1288
1288
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
1289
|
-
|
|
1289
|
+
|
|
1290
1290
|
compact: z.ZodOptional<z.ZodBoolean>;
|
|
1291
1291
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1292
1292
|
t: z.ZodLiteral<"turn-end">;
|
|
@@ -1308,24 +1308,24 @@ export declare const SessionEventSchema: z.ZodDiscriminatedUnion<"t", [z.ZodObje
|
|
|
1308
1308
|
cacheWriteTokens: z.ZodOptional<z.ZodNumber>;
|
|
1309
1309
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
1310
1310
|
model: z.ZodOptional<z.ZodString>;
|
|
1311
|
-
|
|
1311
|
+
|
|
1312
1312
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
1313
|
-
|
|
1313
|
+
|
|
1314
1314
|
compact: z.ZodOptional<z.ZodBoolean>;
|
|
1315
1315
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
1316
1316
|
t: z.ZodLiteral<"start">;
|
|
1317
1317
|
title: z.ZodOptional<z.ZodString>;
|
|
1318
|
-
|
|
1318
|
+
|
|
1319
1319
|
taskId: z.ZodOptional<z.ZodString>;
|
|
1320
1320
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1321
1321
|
t: z.ZodLiteral<"start">;
|
|
1322
1322
|
title: z.ZodOptional<z.ZodString>;
|
|
1323
|
-
|
|
1323
|
+
|
|
1324
1324
|
taskId: z.ZodOptional<z.ZodString>;
|
|
1325
1325
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1326
1326
|
t: z.ZodLiteral<"start">;
|
|
1327
1327
|
title: z.ZodOptional<z.ZodString>;
|
|
1328
|
-
|
|
1328
|
+
|
|
1329
1329
|
taskId: z.ZodOptional<z.ZodString>;
|
|
1330
1330
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
1331
1331
|
t: z.ZodLiteral<"stop">;
|
|
@@ -1437,21 +1437,21 @@ export declare const SessionEventSchema: z.ZodDiscriminatedUnion<"t", [z.ZodObje
|
|
|
1437
1437
|
allowTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1438
1438
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
1439
1439
|
t: z.ZodLiteral<"image">;
|
|
1440
|
-
|
|
1440
|
+
|
|
1441
1441
|
data: z.ZodString;
|
|
1442
|
-
|
|
1442
|
+
|
|
1443
1443
|
mediaType: z.ZodString;
|
|
1444
1444
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1445
1445
|
t: z.ZodLiteral<"image">;
|
|
1446
|
-
|
|
1446
|
+
|
|
1447
1447
|
data: z.ZodString;
|
|
1448
|
-
|
|
1448
|
+
|
|
1449
1449
|
mediaType: z.ZodString;
|
|
1450
1450
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1451
1451
|
t: z.ZodLiteral<"image">;
|
|
1452
|
-
|
|
1452
|
+
|
|
1453
1453
|
data: z.ZodString;
|
|
1454
|
-
|
|
1454
|
+
|
|
1455
1455
|
mediaType: z.ZodString;
|
|
1456
1456
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
1457
1457
|
t: z.ZodLiteral<"context-usage">;
|
|
@@ -2220,39 +2220,35 @@ export declare const SessionEventSchema: z.ZodDiscriminatedUnion<"t", [z.ZodObje
|
|
|
2220
2220
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
2221
2221
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
2222
2222
|
t: z.ZodLiteral<"compact-boundary">;
|
|
2223
|
-
trigger: z.ZodEnum<["manual", "auto"]>;
|
|
2224
|
-
preTokens: z.ZodNumber
|
|
2223
|
+
trigger: z.ZodEnum<["manual", "auto", "unknown"]>;
|
|
2224
|
+
preTokens: z.ZodOptional<z.ZodNumber>;
|
|
2225
2225
|
postTokens: z.ZodOptional<z.ZodNumber>;
|
|
2226
2226
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
2227
|
+
|
|
2228
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
2227
2229
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2228
2230
|
t: z.ZodLiteral<"compact-boundary">;
|
|
2229
|
-
trigger: z.ZodEnum<["manual", "auto"]>;
|
|
2230
|
-
preTokens: z.ZodNumber
|
|
2231
|
+
trigger: z.ZodEnum<["manual", "auto", "unknown"]>;
|
|
2232
|
+
preTokens: z.ZodOptional<z.ZodNumber>;
|
|
2231
2233
|
postTokens: z.ZodOptional<z.ZodNumber>;
|
|
2232
2234
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
2235
|
+
|
|
2236
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
2233
2237
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2234
2238
|
t: z.ZodLiteral<"compact-boundary">;
|
|
2235
|
-
trigger: z.ZodEnum<["manual", "auto"]>;
|
|
2236
|
-
preTokens: z.ZodNumber
|
|
2239
|
+
trigger: z.ZodEnum<["manual", "auto", "unknown"]>;
|
|
2240
|
+
preTokens: z.ZodOptional<z.ZodNumber>;
|
|
2237
2241
|
postTokens: z.ZodOptional<z.ZodNumber>;
|
|
2238
2242
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
2243
|
+
|
|
2244
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
2239
2245
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
2240
2246
|
export type SessionEvent = z.infer<typeof SessionEventSchema>;
|
|
2241
|
-
|
|
2247
|
+
|
|
2242
2248
|
export type SessionContextUsageEvent = z.infer<typeof SessionContextUsageEventSchema>;
|
|
2243
|
-
|
|
2244
|
-
* Build a zeroed-out context-usage snapshot.
|
|
2245
|
-
*
|
|
2246
|
-
* Sent by the daemon after `/clear`, which starts a brand-new Claude session
|
|
2247
|
-
* (empty conversation, usage reset to zero). Flowing this through the normal
|
|
2248
|
-
* context-usage channel overwrites the stored `Session.contextUsage` with zeros
|
|
2249
|
-
* and clears the frontend spinner — the cleared value survives a page refresh
|
|
2250
|
-
* instead of reverting to the pre-clear usage. `model`/`maxTokens` carry the
|
|
2251
|
-
* unchanged window so the bar renders "0% of <window>".
|
|
2252
|
-
*/
|
|
2249
|
+
|
|
2253
2250
|
export declare function emptyContextUsageSnapshot(model?: string, maxTokens?: number): SessionContextUsageEvent;
|
|
2254
|
-
|
|
2251
|
+
|
|
2255
2252
|
export type SessionCompactBoundaryEvent = z.infer<typeof SessionCompactBoundaryEventSchema>;
|
|
2256
2253
|
export { SessionQuestionEventSchema, SessionPermissionRequestEventSchema, SessionAnswerEventSchema, SessionPermissionResolvedEventSchema, PermissionActionSchema, ImageAttachmentSchema, } from './interactionEvents.js';
|
|
2257
2254
|
export type { SessionQuestionEvent, SessionPermissionRequestEvent, SessionAnswerEvent, SessionPermissionResolvedEvent, PermissionAction, ImageAttachment, } from './interactionEvents.js';
|
|
2258
|
-
//# sourceMappingURL=events.d.ts.map
|
package/dist/events.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{z as e}from"zod";import{SessionQuestionEventSchema as o,SessionPermissionRequestEventSchema as s,SessionAnswerEventSchema as r,SessionPermissionResolvedEventSchema as a}from"./interactionEvents.js";export const SessionTextEventSchema=e.object({t:e.literal("text"),text:e.string(),thinking:e.boolean().optional(),images:e.array(e.object({data:e.string(),mediaType:e.string()})).optional()}).passthrough(),SessionServiceEventSchema=e.object({t:e.literal("service"),text:e.string()}).passthrough(),SessionToolCallStartEventSchema=e.object({t:e.literal("tool-call-start"),call:e.string(),name:e.string(),title:e.string(),description:e.string(),args:e.record(e.string(),e.unknown())}).passthrough(),SessionToolCallEndEventSchema=e.object({t:e.literal("tool-call-end"),call:e.string(),result:e.string().optional(),error:e.boolean().optional()}).passthrough(),SessionFileEventSchema=e.object({t:e.literal("file"),ref:e.string(),name:e.string(),size:e.number(),image:e.object({width:e.number(),height:e.number(),thumbhash:e.string()}).optional()}).passthrough(),SessionTurnStartEventSchema=e.object({t:e.literal("turn-start")}).passthrough(),SessionTurnEndStatusSchema=e.enum(["completed","failed","cancelled"]),TurnUsageSchema=e.object({inputTokens:e.number().int().nonnegative(),outputTokens:e.number().int().nonnegative(),cacheReadTokens:e.number().int().nonnegative().optional(),cacheWriteTokens:e.number().int().nonnegative().optional()}).passthrough(),SessionTurnEndEventSchema=e.object({t:e.literal("turn-end"),status:SessionTurnEndStatusSchema,usage:TurnUsageSchema.optional(),model:e.string().optional(),durationMs:e.number().int().nonnegative().optional(),compact:e.boolean().optional()}).passthrough(),SessionStartEventSchema=e.object({t:e.literal("start"),title:e.string().optional(),taskId:e.string().optional()}).passthrough(),SessionStopEventSchema=e.object({t:e.literal("stop")}).passthrough(),SessionImageEventSchema=e.object({t:e.literal("image"),data:e.string(),mediaType:e.string()}).passthrough(),SessionContextUsageEventSchema=e.object({t:e.literal("context-usage"),categories:e.array(e.object({name:e.string(),tokens:e.number(),color:e.string()}).passthrough()),totalTokens:e.number(),maxTokens:e.number(),percentage:e.number(),gridRows:e.array(e.array(e.object({color:e.string(),isFilled:e.boolean(),categoryName:e.string(),tokens:e.number(),percentage:e.number(),squareFullness:e.number()}).passthrough())),model:e.string(),memoryFiles:e.array(e.object({path:e.string(),type:e.string(),tokens:e.number()}).passthrough()),mcpTools:e.array(e.object({name:e.string(),serverName:e.string(),tokens:e.number(),isLoaded:e.boolean().optional()}).passthrough()),deferredBuiltinTools:e.array(e.object({name:e.string(),tokens:e.number(),isLoaded:e.boolean()}).passthrough()).optional(),systemTools:e.array(e.object({name:e.string(),tokens:e.number()}).passthrough()).optional(),systemPromptSections:e.array(e.object({name:e.string(),tokens:e.number()}).passthrough()).optional(),agents:e.array(e.object({agentType:e.string(),source:e.string(),tokens:e.number()})),slashCommands:e.object({totalCommands:e.number(),includedCommands:e.number(),tokens:e.number()}).passthrough().optional(),skills:e.object({totalSkills:e.number(),includedSkills:e.number(),tokens:e.number(),skillFrontmatter:e.array(e.record(e.unknown()))}).passthrough().optional(),messageBreakdown:e.object({toolCallTokens:e.number(),toolResultTokens:e.number(),attachmentTokens:e.number(),assistantMessageTokens:e.number(),userMessageTokens:e.number(),redirectedContextTokens:e.number().optional(),unattributedTokens:e.number().optional(),toolCallsByType:e.array(e.object({name:e.string(),callTokens:e.number(),resultTokens:e.number()}).passthrough()).optional(),attachmentsByType:e.array(e.object({name:e.string(),tokens:e.number()}).passthrough()).optional()}).passthrough().optional(),apiUsage:e.object({input_tokens:e.number(),output_tokens:e.number(),cache_creation_input_tokens:e.number(),cache_read_input_tokens:e.number()}).passthrough().nullable()}).passthrough(),SessionCompactBoundaryEventSchema=e.object({t:e.literal("compact-boundary"),trigger:e.enum(["manual","auto"]),preTokens:e.number(),postTokens:e.number().optional(),durationMs:e.number().optional()}).passthrough(),SessionEventSchema=e.discriminatedUnion("t",[SessionTextEventSchema,SessionServiceEventSchema,SessionToolCallStartEventSchema,SessionToolCallEndEventSchema,SessionFileEventSchema,SessionTurnStartEventSchema,SessionTurnEndEventSchema,SessionStartEventSchema,SessionStopEventSchema,o,s,r,a,SessionImageEventSchema,SessionContextUsageEventSchema,SessionCompactBoundaryEventSchema]);export function emptyContextUsageSnapshot(t="",n=0){return{t:"context-usage",categories:[],totalTokens:0,maxTokens:n,percentage:0,gridRows:[],model:t,memoryFiles:[],mcpTools:[],agents:[],apiUsage:null}}export{SessionQuestionEventSchema,SessionPermissionRequestEventSchema,SessionAnswerEventSchema,SessionPermissionResolvedEventSchema,PermissionActionSchema,ImageAttachmentSchema}from"./interactionEvents.js";
|
|
1
|
+
"use strict";import{z as e}from"zod";import{SessionQuestionEventSchema as o,SessionPermissionRequestEventSchema as s,SessionAnswerEventSchema as r,SessionPermissionResolvedEventSchema as a}from"./interactionEvents.js";export const SessionTextEventSchema=e.object({t:e.literal("text"),text:e.string(),thinking:e.boolean().optional(),images:e.array(e.object({data:e.string(),mediaType:e.string()})).optional()}).passthrough(),SessionServiceEventSchema=e.object({t:e.literal("service"),text:e.string()}).passthrough(),SessionToolCallStartEventSchema=e.object({t:e.literal("tool-call-start"),call:e.string(),name:e.string(),title:e.string(),description:e.string(),args:e.record(e.string(),e.unknown())}).passthrough(),SessionToolCallEndEventSchema=e.object({t:e.literal("tool-call-end"),call:e.string(),result:e.string().optional(),error:e.boolean().optional()}).passthrough(),SessionFileEventSchema=e.object({t:e.literal("file"),ref:e.string(),name:e.string(),size:e.number(),image:e.object({width:e.number(),height:e.number(),thumbhash:e.string()}).optional()}).passthrough(),SessionTurnStartEventSchema=e.object({t:e.literal("turn-start")}).passthrough(),SessionTurnEndStatusSchema=e.enum(["completed","failed","cancelled"]),TurnUsageSchema=e.object({inputTokens:e.number().int().nonnegative(),outputTokens:e.number().int().nonnegative(),cacheReadTokens:e.number().int().nonnegative().optional(),cacheWriteTokens:e.number().int().nonnegative().optional()}).passthrough(),SessionTurnEndEventSchema=e.object({t:e.literal("turn-end"),status:SessionTurnEndStatusSchema,usage:TurnUsageSchema.optional(),model:e.string().optional(),durationMs:e.number().int().nonnegative().optional(),compact:e.boolean().optional()}).passthrough(),SessionStartEventSchema=e.object({t:e.literal("start"),title:e.string().optional(),taskId:e.string().optional()}).passthrough(),SessionStopEventSchema=e.object({t:e.literal("stop")}).passthrough(),SessionImageEventSchema=e.object({t:e.literal("image"),data:e.string(),mediaType:e.string()}).passthrough(),SessionContextUsageEventSchema=e.object({t:e.literal("context-usage"),categories:e.array(e.object({name:e.string(),tokens:e.number(),color:e.string()}).passthrough()),totalTokens:e.number(),maxTokens:e.number(),percentage:e.number(),gridRows:e.array(e.array(e.object({color:e.string(),isFilled:e.boolean(),categoryName:e.string(),tokens:e.number(),percentage:e.number(),squareFullness:e.number()}).passthrough())),model:e.string(),memoryFiles:e.array(e.object({path:e.string(),type:e.string(),tokens:e.number()}).passthrough()),mcpTools:e.array(e.object({name:e.string(),serverName:e.string(),tokens:e.number(),isLoaded:e.boolean().optional()}).passthrough()),deferredBuiltinTools:e.array(e.object({name:e.string(),tokens:e.number(),isLoaded:e.boolean()}).passthrough()).optional(),systemTools:e.array(e.object({name:e.string(),tokens:e.number()}).passthrough()).optional(),systemPromptSections:e.array(e.object({name:e.string(),tokens:e.number()}).passthrough()).optional(),agents:e.array(e.object({agentType:e.string(),source:e.string(),tokens:e.number()})),slashCommands:e.object({totalCommands:e.number(),includedCommands:e.number(),tokens:e.number()}).passthrough().optional(),skills:e.object({totalSkills:e.number(),includedSkills:e.number(),tokens:e.number(),skillFrontmatter:e.array(e.record(e.unknown()))}).passthrough().optional(),messageBreakdown:e.object({toolCallTokens:e.number(),toolResultTokens:e.number(),attachmentTokens:e.number(),assistantMessageTokens:e.number(),userMessageTokens:e.number(),redirectedContextTokens:e.number().optional(),unattributedTokens:e.number().optional(),toolCallsByType:e.array(e.object({name:e.string(),callTokens:e.number(),resultTokens:e.number()}).passthrough()).optional(),attachmentsByType:e.array(e.object({name:e.string(),tokens:e.number()}).passthrough()).optional()}).passthrough().optional(),apiUsage:e.object({input_tokens:e.number(),output_tokens:e.number(),cache_creation_input_tokens:e.number(),cache_read_input_tokens:e.number()}).passthrough().nullable()}).passthrough(),SessionCompactBoundaryEventSchema=e.object({t:e.literal("compact-boundary"),trigger:e.enum(["manual","auto","unknown"]),preTokens:e.number().optional(),postTokens:e.number().optional(),durationMs:e.number().optional(),summary:e.string().optional()}).passthrough(),SessionEventSchema=e.discriminatedUnion("t",[SessionTextEventSchema,SessionServiceEventSchema,SessionToolCallStartEventSchema,SessionToolCallEndEventSchema,SessionFileEventSchema,SessionTurnStartEventSchema,SessionTurnEndEventSchema,SessionStartEventSchema,SessionStopEventSchema,o,s,r,a,SessionImageEventSchema,SessionContextUsageEventSchema,SessionCompactBoundaryEventSchema]);export function emptyContextUsageSnapshot(t="",n=0){return{t:"context-usage",categories:[],totalTokens:0,maxTokens:n,percentage:0,gridRows:[],model:t,memoryFiles:[],mcpTools:[],agents:[],apiUsage:null}}export{SessionQuestionEventSchema,SessionPermissionRequestEventSchema,SessionAnswerEventSchema,SessionPermissionResolvedEventSchema,PermissionActionSchema,ImageAttachmentSchema}from"./interactionEvents.js";
|
package/dist/features.d.ts
CHANGED
|
@@ -1,48 +1,37 @@
|
|
|
1
|
-
/** A sub-feature that requires a minimum daemon version beyond the parent feature. */
|
|
2
1
|
export interface SubFeatureDefinition {
|
|
3
2
|
readonly id: string;
|
|
4
3
|
readonly sinceVersion: string;
|
|
5
4
|
readonly requiredMethods?: readonly string[];
|
|
6
5
|
}
|
|
7
|
-
|
|
6
|
+
|
|
8
7
|
export interface FeatureDefinition {
|
|
9
|
-
|
|
8
|
+
|
|
10
9
|
readonly id: string;
|
|
11
|
-
|
|
10
|
+
|
|
12
11
|
readonly requiredMethods: readonly string[];
|
|
13
|
-
|
|
12
|
+
|
|
13
|
+
readonly requiredCapabilities?: readonly string[];
|
|
14
|
+
|
|
14
15
|
readonly sinceVersion: string;
|
|
15
|
-
|
|
16
|
+
|
|
16
17
|
readonly availability?: 'methods' | 'daemon-version';
|
|
17
|
-
|
|
18
|
+
|
|
18
19
|
readonly edition?: 'personal' | 'enterprise';
|
|
19
|
-
|
|
20
|
+
|
|
20
21
|
readonly subFeatures?: readonly SubFeatureDefinition[];
|
|
21
22
|
}
|
|
22
|
-
|
|
23
|
-
* Registry of all known features and their RPC dependencies.
|
|
24
|
-
* Add new entries here when introducing features that require new daemon RPC methods.
|
|
25
|
-
*/
|
|
23
|
+
|
|
26
24
|
export declare const FEATURE_REGISTRY: readonly FeatureDefinition[];
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Check whether a sub-feature is available given supported methods and daemon version.
|
|
34
|
-
* Requires the parent feature to be available AND the daemon version to satisfy the sub-feature minimum.
|
|
35
|
-
*/
|
|
36
|
-
export declare function isSubFeatureAvailable(featureId: string, subFeatureId: string, supportedMethods: readonly string[], daemonVersion: string | undefined): boolean;
|
|
37
|
-
/** Look up the minimum version required for a sub-feature. */
|
|
25
|
+
|
|
26
|
+
export declare function isFeatureAvailable(featureId: string, supportedMethods: readonly string[], daemonVersion?: string, capabilities?: readonly string[]): boolean;
|
|
27
|
+
|
|
28
|
+
export declare function isSubFeatureAvailable(featureId: string, subFeatureId: string, supportedMethods: readonly string[], daemonVersion: string | undefined, capabilities?: readonly string[]): boolean;
|
|
29
|
+
|
|
38
30
|
export declare function getSubFeatureMinVersion(featureId: string, subFeatureId: string): string | undefined;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
*/
|
|
44
|
-
export declare function getUnavailableFeatures(supportedMethods: readonly string[], daemonVersion?: string): readonly {
|
|
31
|
+
|
|
32
|
+
export declare function getFeatureMinVersion(featureId: string): string | undefined;
|
|
33
|
+
|
|
34
|
+
export declare function getUnavailableFeatures(supportedMethods: readonly string[], daemonVersion?: string, capabilities?: readonly string[]): readonly {
|
|
45
35
|
id: string;
|
|
46
36
|
sinceVersion: string;
|
|
47
37
|
}[];
|
|
48
|
-
//# sourceMappingURL=features.d.ts.map
|
package/dist/features.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{satisfiesMin as a}from"./semver.js";export const FEATURE_REGISTRY=[{id:"agent-settings",requiredMethods:["get-agent-settings","set-agent-settings"],sinceVersion:"0.0.4",subFeatures:[{id:"startup-scripts",sinceVersion:"0.0.30"}]},{id:"labs-settings",requiredMethods:["get-labs-settings","set-labs-settings"],sinceVersion:"0.0.12"},{id:"history-sync",requiredMethods:["backfill-history-session"],sinceVersion:"0.0.12"},{id:"check-path",requiredMethods:["check-path"],sinceVersion:"0.0.7"},{id:"remote-upgrade",requiredMethods:["trigger-upgrade"],sinceVersion:"0.0.30"},{id:"checkpoint",requiredMethods:["checkpoint-list","checkpoint-diff","checkpoint-rollback"],sinceVersion:"0.0.30",subFeatures:[{id:"conversation-rollback",sinceVersion:"0.0.32"}]},{id:"scheduled-tasks",requiredMethods:["spawn-session"],sinceVersion:"0.0.35"},{id:"auto-upgrade-daemon",requiredMethods:["set-auto-upgrade-daemon"],sinceVersion:"0.0.31"},{id:"file-upload",requiredMethods:["file-relay-receive"],sinceVersion:"0.0.36",edition:"personal"},{id:"context-usage",requiredMethods:["get-context-usage"],sinceVersion:"0.0.91",availability:"daemon-version"}];export function isFeatureAvailable(o,
|
|
1
|
+
"use strict";import{satisfiesMin as a}from"./semver.js";import{SESSION_HANDOFF_CAPABILITY as f}from"./workItems.js";export const FEATURE_REGISTRY=[{id:"agent-settings",requiredMethods:["get-agent-settings","set-agent-settings"],sinceVersion:"0.0.4",subFeatures:[{id:"startup-scripts",sinceVersion:"0.0.30"}]},{id:"labs-settings",requiredMethods:["get-labs-settings","set-labs-settings"],sinceVersion:"0.0.12"},{id:"history-sync",requiredMethods:["backfill-history-session"],sinceVersion:"0.0.12"},{id:"check-path",requiredMethods:["check-path"],sinceVersion:"0.0.7"},{id:"remote-upgrade",requiredMethods:["trigger-upgrade"],sinceVersion:"0.0.30"},{id:"checkpoint",requiredMethods:["checkpoint-list","checkpoint-diff","checkpoint-rollback"],sinceVersion:"0.0.30",subFeatures:[{id:"conversation-rollback",sinceVersion:"0.0.32"}]},{id:"scheduled-tasks",requiredMethods:["spawn-session"],sinceVersion:"0.0.35"},{id:"auto-upgrade-daemon",requiredMethods:["set-auto-upgrade-daemon"],sinceVersion:"0.0.31"},{id:"file-upload",requiredMethods:["file-relay-receive"],sinceVersion:"0.0.36",edition:"personal"},{id:"context-usage",requiredMethods:["get-context-usage"],sinceVersion:"0.0.91",availability:"daemon-version"},{id:"ai-helper",requiredMethods:["ai-helper"],sinceVersion:"0.0.94"},{id:"session-handoff",requiredMethods:["spawn-session"],requiredCapabilities:[f],sinceVersion:"0.0.94"}];export function isFeatureAvailable(n,s,o,r){const t=FEATURE_REGISTRY.find(e=>e.id===n);if(!t)return!1;if(t.availability==="daemon-version")return o!=null&&a(o,t.sinceVersion);const i=new Set(s),u=new Set(r);return t.requiredMethods.every(e=>i.has(e))&&(t.requiredCapabilities?.every(e=>u.has(e))??!0)&&(o==null||a(o,t.sinceVersion))}export function isSubFeatureAvailable(n,s,o,r,t){const i=FEATURE_REGISTRY.find(e=>e.id===n);if(!i||!isFeatureAvailable(n,o,r,t))return!1;const u=i.subFeatures?.find(e=>e.id===s);if(!u||!r||!a(r,u.sinceVersion))return!1;if(u.requiredMethods){const e=new Set(o);return u.requiredMethods.every(d=>e.has(d))}return!0}export function getSubFeatureMinVersion(n,s){return FEATURE_REGISTRY.find(r=>r.id===n)?.subFeatures?.find(r=>r.id===s)?.sinceVersion}export function getFeatureMinVersion(n){return FEATURE_REGISTRY.find(s=>s.id===n)?.sinceVersion}export function getUnavailableFeatures(n,s,o){const r=[],t=new Set(n);for(const i of FEATURE_REGISTRY)if(!(i.availability==="daemon-version"?s!=null&&a(s,i.sinceVersion):i.requiredMethods.every(e=>t.has(e))&&(i.requiredCapabilities?.every(e=>o?.includes(e))??!0)&&(s==null||a(s,i.sinceVersion))))r.push({id:i.id,sinceVersion:i.sinceVersion});else if(i.subFeatures&&s)for(const e of i.subFeatures){const d=!a(s,e.sinceVersion),c=e.requiredMethods!=null&&!e.requiredMethods.every(l=>t.has(l));(d||c)&&r.push({id:`${i.id}/${e.id}`,sinceVersion:e.sinceVersion})}return r}
|
package/dist/feedback.d.ts
CHANGED
|
@@ -29,32 +29,32 @@ export declare const SettingsSnapshotSchema: z.ZodObject<{
|
|
|
29
29
|
viewport: z.ZodString;
|
|
30
30
|
language: z.ZodString;
|
|
31
31
|
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
language: string;
|
|
32
33
|
userAgent: string;
|
|
33
34
|
viewport: string;
|
|
34
|
-
language: string;
|
|
35
35
|
}, {
|
|
36
|
+
language: string;
|
|
36
37
|
userAgent: string;
|
|
37
38
|
viewport: string;
|
|
38
|
-
language: string;
|
|
39
39
|
}>>;
|
|
40
|
-
|
|
40
|
+
|
|
41
41
|
machines: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
42
42
|
preferences: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
43
43
|
labs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
44
44
|
}, "strip", z.ZodTypeAny, {
|
|
45
45
|
browser?: {
|
|
46
|
+
language: string;
|
|
46
47
|
userAgent: string;
|
|
47
48
|
viewport: string;
|
|
48
|
-
language: string;
|
|
49
49
|
} | undefined;
|
|
50
50
|
machines?: Record<string, Record<string, unknown>> | undefined;
|
|
51
51
|
preferences?: Record<string, unknown> | undefined;
|
|
52
52
|
labs?: Record<string, unknown> | undefined;
|
|
53
53
|
}, {
|
|
54
54
|
browser?: {
|
|
55
|
+
language: string;
|
|
55
56
|
userAgent: string;
|
|
56
57
|
viewport: string;
|
|
57
|
-
language: string;
|
|
58
58
|
} | undefined;
|
|
59
59
|
machines?: Record<string, Record<string, unknown>> | undefined;
|
|
60
60
|
preferences?: Record<string, unknown> | undefined;
|
|
@@ -126,32 +126,32 @@ export declare const DeviceInfoSchema: z.ZodObject<{
|
|
|
126
126
|
viewport: z.ZodString;
|
|
127
127
|
language: z.ZodString;
|
|
128
128
|
}, "strip", z.ZodTypeAny, {
|
|
129
|
+
language: string;
|
|
129
130
|
userAgent: string;
|
|
130
131
|
viewport: string;
|
|
131
|
-
language: string;
|
|
132
132
|
}, {
|
|
133
|
+
language: string;
|
|
133
134
|
userAgent: string;
|
|
134
135
|
viewport: string;
|
|
135
|
-
language: string;
|
|
136
136
|
}>>;
|
|
137
|
-
|
|
137
|
+
|
|
138
138
|
machines: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
139
139
|
preferences: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
140
140
|
labs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
141
141
|
}, "strip", z.ZodTypeAny, {
|
|
142
142
|
browser?: {
|
|
143
|
+
language: string;
|
|
143
144
|
userAgent: string;
|
|
144
145
|
viewport: string;
|
|
145
|
-
language: string;
|
|
146
146
|
} | undefined;
|
|
147
147
|
machines?: Record<string, Record<string, unknown>> | undefined;
|
|
148
148
|
preferences?: Record<string, unknown> | undefined;
|
|
149
149
|
labs?: Record<string, unknown> | undefined;
|
|
150
150
|
}, {
|
|
151
151
|
browser?: {
|
|
152
|
+
language: string;
|
|
152
153
|
userAgent: string;
|
|
153
154
|
viewport: string;
|
|
154
|
-
language: string;
|
|
155
155
|
} | undefined;
|
|
156
156
|
machines?: Record<string, Record<string, unknown>> | undefined;
|
|
157
157
|
preferences?: Record<string, unknown> | undefined;
|
|
@@ -171,9 +171,9 @@ export declare const DeviceInfoSchema: z.ZodObject<{
|
|
|
171
171
|
appVersion?: string | undefined;
|
|
172
172
|
settingsSnapshot?: {
|
|
173
173
|
browser?: {
|
|
174
|
+
language: string;
|
|
174
175
|
userAgent: string;
|
|
175
176
|
viewport: string;
|
|
176
|
-
language: string;
|
|
177
177
|
} | undefined;
|
|
178
178
|
machines?: Record<string, Record<string, unknown>> | undefined;
|
|
179
179
|
preferences?: Record<string, unknown> | undefined;
|
|
@@ -193,9 +193,9 @@ export declare const DeviceInfoSchema: z.ZodObject<{
|
|
|
193
193
|
appVersion?: string | undefined;
|
|
194
194
|
settingsSnapshot?: {
|
|
195
195
|
browser?: {
|
|
196
|
+
language: string;
|
|
196
197
|
userAgent: string;
|
|
197
198
|
viewport: string;
|
|
198
|
-
language: string;
|
|
199
199
|
} | undefined;
|
|
200
200
|
machines?: Record<string, Record<string, unknown>> | undefined;
|
|
201
201
|
preferences?: Record<string, unknown> | undefined;
|
|
@@ -243,32 +243,32 @@ export declare const CreateFeedbackSchema: z.ZodObject<{
|
|
|
243
243
|
viewport: z.ZodString;
|
|
244
244
|
language: z.ZodString;
|
|
245
245
|
}, "strip", z.ZodTypeAny, {
|
|
246
|
+
language: string;
|
|
246
247
|
userAgent: string;
|
|
247
248
|
viewport: string;
|
|
248
|
-
language: string;
|
|
249
249
|
}, {
|
|
250
|
+
language: string;
|
|
250
251
|
userAgent: string;
|
|
251
252
|
viewport: string;
|
|
252
|
-
language: string;
|
|
253
253
|
}>>;
|
|
254
|
-
|
|
254
|
+
|
|
255
255
|
machines: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
256
256
|
preferences: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
257
257
|
labs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
258
258
|
}, "strip", z.ZodTypeAny, {
|
|
259
259
|
browser?: {
|
|
260
|
+
language: string;
|
|
260
261
|
userAgent: string;
|
|
261
262
|
viewport: string;
|
|
262
|
-
language: string;
|
|
263
263
|
} | undefined;
|
|
264
264
|
machines?: Record<string, Record<string, unknown>> | undefined;
|
|
265
265
|
preferences?: Record<string, unknown> | undefined;
|
|
266
266
|
labs?: Record<string, unknown> | undefined;
|
|
267
267
|
}, {
|
|
268
268
|
browser?: {
|
|
269
|
+
language: string;
|
|
269
270
|
userAgent: string;
|
|
270
271
|
viewport: string;
|
|
271
|
-
language: string;
|
|
272
272
|
} | undefined;
|
|
273
273
|
machines?: Record<string, Record<string, unknown>> | undefined;
|
|
274
274
|
preferences?: Record<string, unknown> | undefined;
|
|
@@ -288,9 +288,9 @@ export declare const CreateFeedbackSchema: z.ZodObject<{
|
|
|
288
288
|
appVersion?: string | undefined;
|
|
289
289
|
settingsSnapshot?: {
|
|
290
290
|
browser?: {
|
|
291
|
+
language: string;
|
|
291
292
|
userAgent: string;
|
|
292
293
|
viewport: string;
|
|
293
|
-
language: string;
|
|
294
294
|
} | undefined;
|
|
295
295
|
machines?: Record<string, Record<string, unknown>> | undefined;
|
|
296
296
|
preferences?: Record<string, unknown> | undefined;
|
|
@@ -310,9 +310,9 @@ export declare const CreateFeedbackSchema: z.ZodObject<{
|
|
|
310
310
|
appVersion?: string | undefined;
|
|
311
311
|
settingsSnapshot?: {
|
|
312
312
|
browser?: {
|
|
313
|
+
language: string;
|
|
313
314
|
userAgent: string;
|
|
314
315
|
viewport: string;
|
|
315
|
-
language: string;
|
|
316
316
|
} | undefined;
|
|
317
317
|
machines?: Record<string, Record<string, unknown>> | undefined;
|
|
318
318
|
preferences?: Record<string, unknown> | undefined;
|
|
@@ -355,9 +355,9 @@ export declare const CreateFeedbackSchema: z.ZodObject<{
|
|
|
355
355
|
appVersion?: string | undefined;
|
|
356
356
|
settingsSnapshot?: {
|
|
357
357
|
browser?: {
|
|
358
|
+
language: string;
|
|
358
359
|
userAgent: string;
|
|
359
360
|
viewport: string;
|
|
360
|
-
language: string;
|
|
361
361
|
} | undefined;
|
|
362
362
|
machines?: Record<string, Record<string, unknown>> | undefined;
|
|
363
363
|
preferences?: Record<string, unknown> | undefined;
|
|
@@ -391,9 +391,9 @@ export declare const CreateFeedbackSchema: z.ZodObject<{
|
|
|
391
391
|
appVersion?: string | undefined;
|
|
392
392
|
settingsSnapshot?: {
|
|
393
393
|
browser?: {
|
|
394
|
+
language: string;
|
|
394
395
|
userAgent: string;
|
|
395
396
|
viewport: string;
|
|
396
|
-
language: string;
|
|
397
397
|
} | undefined;
|
|
398
398
|
machines?: Record<string, Record<string, unknown>> | undefined;
|
|
399
399
|
preferences?: Record<string, unknown> | undefined;
|
|
@@ -423,4 +423,3 @@ export declare const UpdateFeedbackSchema: z.ZodObject<{
|
|
|
423
423
|
reply?: string | undefined;
|
|
424
424
|
}>;
|
|
425
425
|
export type UpdateFeedback = z.infer<typeof UpdateFeedbackSchema>;
|
|
426
|
-
//# sourceMappingURL=feedback.d.ts.map
|