@agentdock/wire 0.0.50 → 0.0.51
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/feedback.d.ts +229 -0
- package/dist/feedback.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/rpc.d.ts +4 -0
- package/dist/rpc.js +1 -1
- package/dist/stats.d.ts +44 -44
- package/dist/telemetry.js +1 -1
- package/package.json +1 -1
package/dist/feedback.d.ts
CHANGED
|
@@ -3,6 +3,64 @@ export declare const FeedbackTypeSchema: z.ZodEnum<["BUG", "FEATURE", "OTHER"]>;
|
|
|
3
3
|
export type FeedbackType = z.infer<typeof FeedbackTypeSchema>;
|
|
4
4
|
export declare const FeedbackStatusSchema: z.ZodEnum<["UNREAD", "READ", "ARCHIVED"]>;
|
|
5
5
|
export type FeedbackStatus = z.infer<typeof FeedbackStatusSchema>;
|
|
6
|
+
export declare const RunModeSchema: z.ZodEnum<["web-session", "cli-spawn", "cli-run", "scheduled", "unknown"]>;
|
|
7
|
+
export type RunMode = z.infer<typeof RunModeSchema>;
|
|
8
|
+
export declare const RunModesSchema: z.ZodArray<z.ZodEnum<["web-session", "cli-spawn", "cli-run", "scheduled", "unknown"]>, "many">;
|
|
9
|
+
export declare const BugFieldsSchema: z.ZodObject<{
|
|
10
|
+
reproSteps: z.ZodOptional<z.ZodString>;
|
|
11
|
+
expectedBehavior: z.ZodOptional<z.ZodString>;
|
|
12
|
+
actualBehavior: z.ZodOptional<z.ZodString>;
|
|
13
|
+
errorMessages: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
reproSteps?: string | undefined;
|
|
16
|
+
expectedBehavior?: string | undefined;
|
|
17
|
+
actualBehavior?: string | undefined;
|
|
18
|
+
errorMessages?: string | undefined;
|
|
19
|
+
}, {
|
|
20
|
+
reproSteps?: string | undefined;
|
|
21
|
+
expectedBehavior?: string | undefined;
|
|
22
|
+
actualBehavior?: string | undefined;
|
|
23
|
+
errorMessages?: string | undefined;
|
|
24
|
+
}>;
|
|
25
|
+
export type BugFields = z.infer<typeof BugFieldsSchema>;
|
|
26
|
+
export declare const SettingsSnapshotSchema: z.ZodObject<{
|
|
27
|
+
browser: z.ZodOptional<z.ZodObject<{
|
|
28
|
+
userAgent: z.ZodString;
|
|
29
|
+
viewport: z.ZodString;
|
|
30
|
+
language: z.ZodString;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
userAgent: string;
|
|
33
|
+
viewport: string;
|
|
34
|
+
language: string;
|
|
35
|
+
}, {
|
|
36
|
+
userAgent: string;
|
|
37
|
+
viewport: string;
|
|
38
|
+
language: string;
|
|
39
|
+
}>>;
|
|
40
|
+
/** Per-machine diagnostics: platform, arch, daemonVersion, availableAgents, agentCliPaths */
|
|
41
|
+
machines: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
42
|
+
preferences: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
43
|
+
labs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
44
|
+
}, "strip", z.ZodTypeAny, {
|
|
45
|
+
browser?: {
|
|
46
|
+
userAgent: string;
|
|
47
|
+
viewport: string;
|
|
48
|
+
language: string;
|
|
49
|
+
} | undefined;
|
|
50
|
+
machines?: Record<string, Record<string, unknown>> | undefined;
|
|
51
|
+
preferences?: Record<string, unknown> | undefined;
|
|
52
|
+
labs?: Record<string, unknown> | undefined;
|
|
53
|
+
}, {
|
|
54
|
+
browser?: {
|
|
55
|
+
userAgent: string;
|
|
56
|
+
viewport: string;
|
|
57
|
+
language: string;
|
|
58
|
+
} | undefined;
|
|
59
|
+
machines?: Record<string, Record<string, unknown>> | undefined;
|
|
60
|
+
preferences?: Record<string, unknown> | undefined;
|
|
61
|
+
labs?: Record<string, unknown> | undefined;
|
|
62
|
+
}>;
|
|
63
|
+
export type SettingsSnapshot = z.infer<typeof SettingsSnapshotSchema>;
|
|
6
64
|
export declare const MachineSnapshotSchema: z.ZodObject<{
|
|
7
65
|
machineId: z.ZodString;
|
|
8
66
|
platform: z.ZodOptional<z.ZodString>;
|
|
@@ -62,6 +120,43 @@ export declare const DeviceInfoSchema: z.ZodObject<{
|
|
|
62
120
|
nodeVersion?: string | undefined;
|
|
63
121
|
}>, "many">>;
|
|
64
122
|
appVersion: z.ZodOptional<z.ZodString>;
|
|
123
|
+
settingsSnapshot: z.ZodOptional<z.ZodObject<{
|
|
124
|
+
browser: z.ZodOptional<z.ZodObject<{
|
|
125
|
+
userAgent: z.ZodString;
|
|
126
|
+
viewport: z.ZodString;
|
|
127
|
+
language: z.ZodString;
|
|
128
|
+
}, "strip", z.ZodTypeAny, {
|
|
129
|
+
userAgent: string;
|
|
130
|
+
viewport: string;
|
|
131
|
+
language: string;
|
|
132
|
+
}, {
|
|
133
|
+
userAgent: string;
|
|
134
|
+
viewport: string;
|
|
135
|
+
language: string;
|
|
136
|
+
}>>;
|
|
137
|
+
/** Per-machine diagnostics: platform, arch, daemonVersion, availableAgents, agentCliPaths */
|
|
138
|
+
machines: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
139
|
+
preferences: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
140
|
+
labs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
141
|
+
}, "strip", z.ZodTypeAny, {
|
|
142
|
+
browser?: {
|
|
143
|
+
userAgent: string;
|
|
144
|
+
viewport: string;
|
|
145
|
+
language: string;
|
|
146
|
+
} | undefined;
|
|
147
|
+
machines?: Record<string, Record<string, unknown>> | undefined;
|
|
148
|
+
preferences?: Record<string, unknown> | undefined;
|
|
149
|
+
labs?: Record<string, unknown> | undefined;
|
|
150
|
+
}, {
|
|
151
|
+
browser?: {
|
|
152
|
+
userAgent: string;
|
|
153
|
+
viewport: string;
|
|
154
|
+
language: string;
|
|
155
|
+
} | undefined;
|
|
156
|
+
machines?: Record<string, Record<string, unknown>> | undefined;
|
|
157
|
+
preferences?: Record<string, unknown> | undefined;
|
|
158
|
+
labs?: Record<string, unknown> | undefined;
|
|
159
|
+
}>>;
|
|
65
160
|
}, "strip", z.ZodTypeAny, {
|
|
66
161
|
machines?: {
|
|
67
162
|
machineId: string;
|
|
@@ -74,6 +169,16 @@ export declare const DeviceInfoSchema: z.ZodObject<{
|
|
|
74
169
|
nodeVersion?: string | undefined;
|
|
75
170
|
}[] | undefined;
|
|
76
171
|
appVersion?: string | undefined;
|
|
172
|
+
settingsSnapshot?: {
|
|
173
|
+
browser?: {
|
|
174
|
+
userAgent: string;
|
|
175
|
+
viewport: string;
|
|
176
|
+
language: string;
|
|
177
|
+
} | undefined;
|
|
178
|
+
machines?: Record<string, Record<string, unknown>> | undefined;
|
|
179
|
+
preferences?: Record<string, unknown> | undefined;
|
|
180
|
+
labs?: Record<string, unknown> | undefined;
|
|
181
|
+
} | undefined;
|
|
77
182
|
}, {
|
|
78
183
|
machines?: {
|
|
79
184
|
machineId: string;
|
|
@@ -86,6 +191,16 @@ export declare const DeviceInfoSchema: z.ZodObject<{
|
|
|
86
191
|
nodeVersion?: string | undefined;
|
|
87
192
|
}[] | undefined;
|
|
88
193
|
appVersion?: string | undefined;
|
|
194
|
+
settingsSnapshot?: {
|
|
195
|
+
browser?: {
|
|
196
|
+
userAgent: string;
|
|
197
|
+
viewport: string;
|
|
198
|
+
language: string;
|
|
199
|
+
} | undefined;
|
|
200
|
+
machines?: Record<string, Record<string, unknown>> | undefined;
|
|
201
|
+
preferences?: Record<string, unknown> | undefined;
|
|
202
|
+
labs?: Record<string, unknown> | undefined;
|
|
203
|
+
} | undefined;
|
|
89
204
|
}>;
|
|
90
205
|
export type DeviceInfo = z.infer<typeof DeviceInfoSchema>;
|
|
91
206
|
export declare const CreateFeedbackSchema: z.ZodObject<{
|
|
@@ -122,6 +237,43 @@ export declare const CreateFeedbackSchema: z.ZodObject<{
|
|
|
122
237
|
nodeVersion?: string | undefined;
|
|
123
238
|
}>, "many">>;
|
|
124
239
|
appVersion: z.ZodOptional<z.ZodString>;
|
|
240
|
+
settingsSnapshot: z.ZodOptional<z.ZodObject<{
|
|
241
|
+
browser: z.ZodOptional<z.ZodObject<{
|
|
242
|
+
userAgent: z.ZodString;
|
|
243
|
+
viewport: z.ZodString;
|
|
244
|
+
language: z.ZodString;
|
|
245
|
+
}, "strip", z.ZodTypeAny, {
|
|
246
|
+
userAgent: string;
|
|
247
|
+
viewport: string;
|
|
248
|
+
language: string;
|
|
249
|
+
}, {
|
|
250
|
+
userAgent: string;
|
|
251
|
+
viewport: string;
|
|
252
|
+
language: string;
|
|
253
|
+
}>>;
|
|
254
|
+
/** Per-machine diagnostics: platform, arch, daemonVersion, availableAgents, agentCliPaths */
|
|
255
|
+
machines: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
256
|
+
preferences: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
257
|
+
labs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
258
|
+
}, "strip", z.ZodTypeAny, {
|
|
259
|
+
browser?: {
|
|
260
|
+
userAgent: string;
|
|
261
|
+
viewport: string;
|
|
262
|
+
language: string;
|
|
263
|
+
} | undefined;
|
|
264
|
+
machines?: Record<string, Record<string, unknown>> | undefined;
|
|
265
|
+
preferences?: Record<string, unknown> | undefined;
|
|
266
|
+
labs?: Record<string, unknown> | undefined;
|
|
267
|
+
}, {
|
|
268
|
+
browser?: {
|
|
269
|
+
userAgent: string;
|
|
270
|
+
viewport: string;
|
|
271
|
+
language: string;
|
|
272
|
+
} | undefined;
|
|
273
|
+
machines?: Record<string, Record<string, unknown>> | undefined;
|
|
274
|
+
preferences?: Record<string, unknown> | undefined;
|
|
275
|
+
labs?: Record<string, unknown> | undefined;
|
|
276
|
+
}>>;
|
|
125
277
|
}, "strip", z.ZodTypeAny, {
|
|
126
278
|
machines?: {
|
|
127
279
|
machineId: string;
|
|
@@ -134,6 +286,16 @@ export declare const CreateFeedbackSchema: z.ZodObject<{
|
|
|
134
286
|
nodeVersion?: string | undefined;
|
|
135
287
|
}[] | undefined;
|
|
136
288
|
appVersion?: string | undefined;
|
|
289
|
+
settingsSnapshot?: {
|
|
290
|
+
browser?: {
|
|
291
|
+
userAgent: string;
|
|
292
|
+
viewport: string;
|
|
293
|
+
language: string;
|
|
294
|
+
} | undefined;
|
|
295
|
+
machines?: Record<string, Record<string, unknown>> | undefined;
|
|
296
|
+
preferences?: Record<string, unknown> | undefined;
|
|
297
|
+
labs?: Record<string, unknown> | undefined;
|
|
298
|
+
} | undefined;
|
|
137
299
|
}, {
|
|
138
300
|
machines?: {
|
|
139
301
|
machineId: string;
|
|
@@ -146,7 +308,36 @@ export declare const CreateFeedbackSchema: z.ZodObject<{
|
|
|
146
308
|
nodeVersion?: string | undefined;
|
|
147
309
|
}[] | undefined;
|
|
148
310
|
appVersion?: string | undefined;
|
|
311
|
+
settingsSnapshot?: {
|
|
312
|
+
browser?: {
|
|
313
|
+
userAgent: string;
|
|
314
|
+
viewport: string;
|
|
315
|
+
language: string;
|
|
316
|
+
} | undefined;
|
|
317
|
+
machines?: Record<string, Record<string, unknown>> | undefined;
|
|
318
|
+
preferences?: Record<string, unknown> | undefined;
|
|
319
|
+
labs?: Record<string, unknown> | undefined;
|
|
320
|
+
} | undefined;
|
|
149
321
|
}>;
|
|
322
|
+
affectedMachineIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
323
|
+
affectedAgents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
324
|
+
runModes: z.ZodOptional<z.ZodArray<z.ZodEnum<["web-session", "cli-spawn", "cli-run", "scheduled", "unknown"]>, "many">>;
|
|
325
|
+
bugFields: z.ZodOptional<z.ZodObject<{
|
|
326
|
+
reproSteps: z.ZodOptional<z.ZodString>;
|
|
327
|
+
expectedBehavior: z.ZodOptional<z.ZodString>;
|
|
328
|
+
actualBehavior: z.ZodOptional<z.ZodString>;
|
|
329
|
+
errorMessages: z.ZodOptional<z.ZodString>;
|
|
330
|
+
}, "strip", z.ZodTypeAny, {
|
|
331
|
+
reproSteps?: string | undefined;
|
|
332
|
+
expectedBehavior?: string | undefined;
|
|
333
|
+
actualBehavior?: string | undefined;
|
|
334
|
+
errorMessages?: string | undefined;
|
|
335
|
+
}, {
|
|
336
|
+
reproSteps?: string | undefined;
|
|
337
|
+
expectedBehavior?: string | undefined;
|
|
338
|
+
actualBehavior?: string | undefined;
|
|
339
|
+
errorMessages?: string | undefined;
|
|
340
|
+
}>>;
|
|
150
341
|
}, "strip", z.ZodTypeAny, {
|
|
151
342
|
type: "BUG" | "FEATURE" | "OTHER";
|
|
152
343
|
description: string;
|
|
@@ -162,8 +353,27 @@ export declare const CreateFeedbackSchema: z.ZodObject<{
|
|
|
162
353
|
nodeVersion?: string | undefined;
|
|
163
354
|
}[] | undefined;
|
|
164
355
|
appVersion?: string | undefined;
|
|
356
|
+
settingsSnapshot?: {
|
|
357
|
+
browser?: {
|
|
358
|
+
userAgent: string;
|
|
359
|
+
viewport: string;
|
|
360
|
+
language: string;
|
|
361
|
+
} | undefined;
|
|
362
|
+
machines?: Record<string, Record<string, unknown>> | undefined;
|
|
363
|
+
preferences?: Record<string, unknown> | undefined;
|
|
364
|
+
labs?: Record<string, unknown> | undefined;
|
|
365
|
+
} | undefined;
|
|
165
366
|
};
|
|
166
367
|
screenshots?: string[] | undefined;
|
|
368
|
+
affectedMachineIds?: string[] | undefined;
|
|
369
|
+
affectedAgents?: string[] | undefined;
|
|
370
|
+
runModes?: ("unknown" | "scheduled" | "web-session" | "cli-spawn" | "cli-run")[] | undefined;
|
|
371
|
+
bugFields?: {
|
|
372
|
+
reproSteps?: string | undefined;
|
|
373
|
+
expectedBehavior?: string | undefined;
|
|
374
|
+
actualBehavior?: string | undefined;
|
|
375
|
+
errorMessages?: string | undefined;
|
|
376
|
+
} | undefined;
|
|
167
377
|
}, {
|
|
168
378
|
type: "BUG" | "FEATURE" | "OTHER";
|
|
169
379
|
description: string;
|
|
@@ -179,8 +389,27 @@ export declare const CreateFeedbackSchema: z.ZodObject<{
|
|
|
179
389
|
nodeVersion?: string | undefined;
|
|
180
390
|
}[] | undefined;
|
|
181
391
|
appVersion?: string | undefined;
|
|
392
|
+
settingsSnapshot?: {
|
|
393
|
+
browser?: {
|
|
394
|
+
userAgent: string;
|
|
395
|
+
viewport: string;
|
|
396
|
+
language: string;
|
|
397
|
+
} | undefined;
|
|
398
|
+
machines?: Record<string, Record<string, unknown>> | undefined;
|
|
399
|
+
preferences?: Record<string, unknown> | undefined;
|
|
400
|
+
labs?: Record<string, unknown> | undefined;
|
|
401
|
+
} | undefined;
|
|
182
402
|
};
|
|
183
403
|
screenshots?: string[] | undefined;
|
|
404
|
+
affectedMachineIds?: string[] | undefined;
|
|
405
|
+
affectedAgents?: string[] | undefined;
|
|
406
|
+
runModes?: ("unknown" | "scheduled" | "web-session" | "cli-spawn" | "cli-run")[] | undefined;
|
|
407
|
+
bugFields?: {
|
|
408
|
+
reproSteps?: string | undefined;
|
|
409
|
+
expectedBehavior?: string | undefined;
|
|
410
|
+
actualBehavior?: string | undefined;
|
|
411
|
+
errorMessages?: string | undefined;
|
|
412
|
+
} | undefined;
|
|
184
413
|
}>;
|
|
185
414
|
export type CreateFeedback = z.infer<typeof CreateFeedbackSchema>;
|
|
186
415
|
export declare const UpdateFeedbackSchema: z.ZodObject<{
|
package/dist/feedback.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{z as o}from"zod";export const FeedbackTypeSchema=o.enum(["BUG","FEATURE","OTHER"]),FeedbackStatusSchema=o.enum(["UNREAD","READ","ARCHIVED"]),MachineSnapshotSchema=o.object({machineId:o.string(),platform:o.string().optional(),arch:o.string().optional(),hostname:o.string().optional(),daemonVersion:o.string().optional(),availableAgents:o.array(o.string()).optional(),agentVersions:o.record(o.string()).optional(),nodeVersion:o.string().optional()}),DeviceInfoSchema=o.object({machines:o.array(MachineSnapshotSchema).optional(),appVersion:o.string().optional()}),CreateFeedbackSchema=o.object({type:FeedbackTypeSchema,description:o.string().min(
|
|
1
|
+
"use strict";import{z as o}from"zod";export const FeedbackTypeSchema=o.enum(["BUG","FEATURE","OTHER"]),FeedbackStatusSchema=o.enum(["UNREAD","READ","ARCHIVED"]),RunModeSchema=o.enum(["web-session","cli-spawn","cli-run","scheduled","unknown"]),RunModesSchema=o.array(RunModeSchema).max(5),BugFieldsSchema=o.object({reproSteps:o.string().max(2e3).optional(),expectedBehavior:o.string().max(1e3).optional(),actualBehavior:o.string().max(1e3).optional(),errorMessages:o.string().max(2e3).optional()}),SettingsSnapshotSchema=o.object({browser:o.object({userAgent:o.string(),viewport:o.string(),language:o.string()}).optional(),machines:o.record(o.string(),o.record(o.unknown())).optional(),preferences:o.record(o.unknown()).optional(),labs:o.record(o.unknown()).optional()}),MachineSnapshotSchema=o.object({machineId:o.string(),platform:o.string().optional(),arch:o.string().optional(),hostname:o.string().optional(),daemonVersion:o.string().optional(),availableAgents:o.array(o.string()).optional(),agentVersions:o.record(o.string()).optional(),nodeVersion:o.string().optional()}),DeviceInfoSchema=o.object({machines:o.array(MachineSnapshotSchema).optional(),appVersion:o.string().optional(),settingsSnapshot:SettingsSnapshotSchema.optional()}),CreateFeedbackSchema=o.object({type:FeedbackTypeSchema,description:o.string().min(0).max(5e3),screenshots:o.array(o.string().max(7e5)).max(3).optional(),deviceInfo:DeviceInfoSchema,affectedMachineIds:o.array(o.string()).max(20).optional(),affectedAgents:o.array(o.string()).max(10).optional(),runModes:RunModesSchema.optional(),bugFields:BugFieldsSchema.optional()}),UpdateFeedbackSchema=o.object({status:o.enum(["READ","ARCHIVED"]).optional(),reply:o.string().min(1).max(5e3).optional()});
|
package/dist/index.d.ts
CHANGED
|
@@ -50,8 +50,8 @@ export { OpsRpcMessageSchema, OpsMethodSchema, OpsRpcTypeSchema, FileEntrySchema
|
|
|
50
50
|
export * from './edition.js';
|
|
51
51
|
export { LicensePayloadSchema, LicenseFileSchema, EnterpriseLicenseSchema, PrivateLicenseSchema, } from './license.js';
|
|
52
52
|
export type { LicensePayload, LicenseFile, EnterpriseLicensePayload, PrivateLicensePayload, } from './license.js';
|
|
53
|
-
export { FeedbackTypeSchema, FeedbackStatusSchema, DeviceInfoSchema, MachineSnapshotSchema, CreateFeedbackSchema, UpdateFeedbackSchema, } from './feedback.js';
|
|
54
|
-
export type { FeedbackType, FeedbackStatus, DeviceInfo, MachineSnapshot, CreateFeedback, UpdateFeedback, } from './feedback.js';
|
|
53
|
+
export { FeedbackTypeSchema, FeedbackStatusSchema, DeviceInfoSchema, MachineSnapshotSchema, CreateFeedbackSchema, UpdateFeedbackSchema, RunModeSchema, RunModesSchema, BugFieldsSchema, SettingsSnapshotSchema, } from './feedback.js';
|
|
54
|
+
export type { FeedbackType, FeedbackStatus, DeviceInfo, MachineSnapshot, CreateFeedback, UpdateFeedback, RunMode, BugFields, SettingsSnapshot, } from './feedback.js';
|
|
55
55
|
export interface SetupProgress {
|
|
56
56
|
readonly provider: boolean;
|
|
57
57
|
readonly credential: boolean;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";export{SessionTextEventSchema,SessionServiceEventSchema,SessionToolCallStartEventSchema,SessionToolCallEndEventSchema,SessionFileEventSchema,SessionTurnStartEventSchema,SessionTurnEndEventSchema,SessionTurnEndStatusSchema,TurnUsageSchema,SessionStartEventSchema,SessionStopEventSchema,SessionEventSchema,SessionPermissionResolvedEventSchema,PermissionActionSchema,SessionImageEventSchema,ImageAttachmentSchema}from"./events.js";export{QuestionOptionSchema,SessionQuestionEventSchema,SessionPermissionRequestEventSchema,SessionAnswerEventSchema,AnswerQuestionParamsSchema,ApprovePermissionParamsSchema,DenyPermissionParamsSchema,PermissionModeSchema}from"./interactionEvents.js";export{SessionRoleSchema,SessionEnvelopeSchema,createEnvelope}from"./envelope.js";export{AgentTypeSchema,MessageMetaSchema,AGENT_TYPES,SPAWNABLE_AGENTS,CLI_AGENT_TYPES}from"./messageMeta.js";export{AGENT_SUPPORTS_IMAGES}from"./messageMeta.js";export{SessionMessageContentSchema,SessionMessageSchema,SessionProtocolMessageSchema,MessageContentSchema}from"./messages.js";export{UserMessageSchema,AgentMessageSchema,LegacyMessageContentSchema}from"./legacyProtocol.js";export{VersionedEncryptedValueSchema,VersionedNullableEncryptedValueSchema,VersionedMachineEncryptedValueSchema,UpdateNewMessageBodySchema,UpdateSessionBodySchema,UpdateMachineBodySchema,UpdateSessionResetBodySchema,CoreUpdateBodySchema,CoreUpdateContainerSchema}from"./sync.js";export{RpcMethod,SESSION_RPC_METHODS,MACHINE_RPC_METHODS,DAEMON_REQUIRED_RPC_METHODS,RpcCallSchema,RpcResultSchema,SpawnSessionParamsSchema,GetMessagesParamsSchema,GetMessagesResponseSchema,MachineInfoResponseSchema,CheckPathParamsSchema,AGENT_ENV_NONE,AgentEnvConfigSchema,AgentSettingsSchema,LabsSettingsSchema,CustomModelSchema,SkillDefinitionSchema}from"./rpc.js";export{AGENT_CAPABILITIES,getAgentCapability,updateDynamicModes,getDynamicModes,normalizeModelId}from"./agentCapabilities.js";export{ModelUsageEntrySchema,DailyActivitySchema,DailyModelTokensSchema,LongestSessionSchema,ClaudeStatsDataSchema,ProjectSummarySchema,StatsOverviewSchema,AgentTypeUsageSchema,ActivityUploadSchema,UsageReportSchema,TokenTrendPointSchema,ModelBreakdownEntrySchema,QuotaConfigSchema}from"./stats.js";export{ControlLevel}from"./controlLevel.js";export{PairingState,PairingRequestSchema,PairingResponseSchema,PairingExchangeSchema,PairingDeliverSchema,PairingStatusSchema,parseVersionByte}from"./pairing.js";export{PlatformSchema,SessionStatusSchema,MachineSummarySchema,MachineRegisterResultSchema}from"./machine.js";export{FEATURE_REGISTRY,isFeatureAvailable,getUnavailableFeatures,isSubFeatureAvailable,getSubFeatureMinVersion}from"./features.js";export{SessionResultSchema}from"./sessionResult.js";export{SpawnErrorCodeSchema,SpawnErrorSchema,createSpawnError}from"./spawnError.js";export{AGENT_INSTALL_GUIDE}from"./agentInstallGuide.js";export{AGENT_COMMON_ENV_VARS}from"./agentCommonEnv.js";export{RetryPolicySchema,MissedRunPolicySchema,ScheduledSpawnParamsSchema,TaskExecutionStatusSchema,TaskExecutionTriggerSchema,CreateScheduledTaskSchema,UpdateScheduledTaskSchema,ScheduledTaskSummarySchema,TaskExecutionSchema,CRON_RE}from"./scheduledTasks.js";export{PROTOCOL_VERSION}from"./protocol.js";export{parseSemver,compareVersions,satisfiesMin}from"./semver.js";export{createId}from"./utils.js";export{errorMessage}from"./errorMessage.js";export{SOCKET_EVENTS}from"./socketEvents.js";export{TelemetryEventTypeSchema,TelemetryEventSchema,TelemetryReportPayloadSchema,sanitizeContext}from"./telemetry.js";export*from"./checkpointSchemas.js";export{OpsRpcMessageSchema,OpsMethodSchema,OpsRpcTypeSchema,FileEntrySchema,FileStatSchema,StorageUsageSchema,SyncUserSchema,SyncFullPayloadSchema,SyncUserCreatedPayloadSchema,SyncContainerStatusPayloadSchema,SyncUserPairedPayloadSchema}from"./ops.js";export*from"./edition.js";export{LicensePayloadSchema,LicenseFileSchema,EnterpriseLicenseSchema,PrivateLicenseSchema}from"./license.js";export{FeedbackTypeSchema,FeedbackStatusSchema,DeviceInfoSchema,MachineSnapshotSchema,CreateFeedbackSchema,UpdateFeedbackSchema}from"./feedback.js";
|
|
1
|
+
"use strict";export{SessionTextEventSchema,SessionServiceEventSchema,SessionToolCallStartEventSchema,SessionToolCallEndEventSchema,SessionFileEventSchema,SessionTurnStartEventSchema,SessionTurnEndEventSchema,SessionTurnEndStatusSchema,TurnUsageSchema,SessionStartEventSchema,SessionStopEventSchema,SessionEventSchema,SessionPermissionResolvedEventSchema,PermissionActionSchema,SessionImageEventSchema,ImageAttachmentSchema}from"./events.js";export{QuestionOptionSchema,SessionQuestionEventSchema,SessionPermissionRequestEventSchema,SessionAnswerEventSchema,AnswerQuestionParamsSchema,ApprovePermissionParamsSchema,DenyPermissionParamsSchema,PermissionModeSchema}from"./interactionEvents.js";export{SessionRoleSchema,SessionEnvelopeSchema,createEnvelope}from"./envelope.js";export{AgentTypeSchema,MessageMetaSchema,AGENT_TYPES,SPAWNABLE_AGENTS,CLI_AGENT_TYPES}from"./messageMeta.js";export{AGENT_SUPPORTS_IMAGES}from"./messageMeta.js";export{SessionMessageContentSchema,SessionMessageSchema,SessionProtocolMessageSchema,MessageContentSchema}from"./messages.js";export{UserMessageSchema,AgentMessageSchema,LegacyMessageContentSchema}from"./legacyProtocol.js";export{VersionedEncryptedValueSchema,VersionedNullableEncryptedValueSchema,VersionedMachineEncryptedValueSchema,UpdateNewMessageBodySchema,UpdateSessionBodySchema,UpdateMachineBodySchema,UpdateSessionResetBodySchema,CoreUpdateBodySchema,CoreUpdateContainerSchema}from"./sync.js";export{RpcMethod,SESSION_RPC_METHODS,MACHINE_RPC_METHODS,DAEMON_REQUIRED_RPC_METHODS,RpcCallSchema,RpcResultSchema,SpawnSessionParamsSchema,GetMessagesParamsSchema,GetMessagesResponseSchema,MachineInfoResponseSchema,CheckPathParamsSchema,AGENT_ENV_NONE,AgentEnvConfigSchema,AgentSettingsSchema,LabsSettingsSchema,CustomModelSchema,SkillDefinitionSchema}from"./rpc.js";export{AGENT_CAPABILITIES,getAgentCapability,updateDynamicModes,getDynamicModes,normalizeModelId}from"./agentCapabilities.js";export{ModelUsageEntrySchema,DailyActivitySchema,DailyModelTokensSchema,LongestSessionSchema,ClaudeStatsDataSchema,ProjectSummarySchema,StatsOverviewSchema,AgentTypeUsageSchema,ActivityUploadSchema,UsageReportSchema,TokenTrendPointSchema,ModelBreakdownEntrySchema,QuotaConfigSchema}from"./stats.js";export{ControlLevel}from"./controlLevel.js";export{PairingState,PairingRequestSchema,PairingResponseSchema,PairingExchangeSchema,PairingDeliverSchema,PairingStatusSchema,parseVersionByte}from"./pairing.js";export{PlatformSchema,SessionStatusSchema,MachineSummarySchema,MachineRegisterResultSchema}from"./machine.js";export{FEATURE_REGISTRY,isFeatureAvailable,getUnavailableFeatures,isSubFeatureAvailable,getSubFeatureMinVersion}from"./features.js";export{SessionResultSchema}from"./sessionResult.js";export{SpawnErrorCodeSchema,SpawnErrorSchema,createSpawnError}from"./spawnError.js";export{AGENT_INSTALL_GUIDE}from"./agentInstallGuide.js";export{AGENT_COMMON_ENV_VARS}from"./agentCommonEnv.js";export{RetryPolicySchema,MissedRunPolicySchema,ScheduledSpawnParamsSchema,TaskExecutionStatusSchema,TaskExecutionTriggerSchema,CreateScheduledTaskSchema,UpdateScheduledTaskSchema,ScheduledTaskSummarySchema,TaskExecutionSchema,CRON_RE}from"./scheduledTasks.js";export{PROTOCOL_VERSION}from"./protocol.js";export{parseSemver,compareVersions,satisfiesMin}from"./semver.js";export{createId}from"./utils.js";export{errorMessage}from"./errorMessage.js";export{SOCKET_EVENTS}from"./socketEvents.js";export{TelemetryEventTypeSchema,TelemetryEventSchema,TelemetryReportPayloadSchema,sanitizeContext}from"./telemetry.js";export*from"./checkpointSchemas.js";export{OpsRpcMessageSchema,OpsMethodSchema,OpsRpcTypeSchema,FileEntrySchema,FileStatSchema,StorageUsageSchema,SyncUserSchema,SyncFullPayloadSchema,SyncUserCreatedPayloadSchema,SyncContainerStatusPayloadSchema,SyncUserPairedPayloadSchema}from"./ops.js";export*from"./edition.js";export{LicensePayloadSchema,LicenseFileSchema,EnterpriseLicenseSchema,PrivateLicenseSchema}from"./license.js";export{FeedbackTypeSchema,FeedbackStatusSchema,DeviceInfoSchema,MachineSnapshotSchema,CreateFeedbackSchema,UpdateFeedbackSchema,RunModeSchema,RunModesSchema,BugFieldsSchema,SettingsSnapshotSchema}from"./feedback.js";
|
package/dist/rpc.d.ts
CHANGED
|
@@ -832,6 +832,8 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
|
|
|
832
832
|
label: string;
|
|
833
833
|
id: string;
|
|
834
834
|
}>, "many">>>;
|
|
835
|
+
/** Per-agent CLI binary paths from agent cache (non-private diagnostics). */
|
|
836
|
+
agentCliPaths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
835
837
|
agentSettings: z.ZodOptional<z.ZodObject<{
|
|
836
838
|
defaults: z.ZodOptional<z.ZodObject<{
|
|
837
839
|
httpProxy: z.ZodOptional<z.ZodString>;
|
|
@@ -1276,6 +1278,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
|
|
|
1276
1278
|
label: string;
|
|
1277
1279
|
id: string;
|
|
1278
1280
|
}[]> | undefined;
|
|
1281
|
+
agentCliPaths?: Record<string, string> | undefined;
|
|
1279
1282
|
agentSettings?: {
|
|
1280
1283
|
claude?: {
|
|
1281
1284
|
httpProxy?: string | undefined;
|
|
@@ -1376,6 +1379,7 @@ export declare const MachineInfoResponseSchema: z.ZodObject<{
|
|
|
1376
1379
|
label: string;
|
|
1377
1380
|
id: string;
|
|
1378
1381
|
}[]> | undefined;
|
|
1382
|
+
agentCliPaths?: Record<string, string> | undefined;
|
|
1379
1383
|
agentSettings?: {
|
|
1380
1384
|
claude?: {
|
|
1381
1385
|
httpProxy?: string | undefined;
|
package/dist/rpc.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{z as o}from"zod";import{SessionMessageSchema as e}from"./messages.js";import{CLI_AGENT_TYPES as n,SPAWNABLE_AGENTS as s}from"./messageMeta.js";import{PermissionModeSchema as i}from"./interactionEvents.js";export const RpcMethod=o.enum(["spawn-session","stop-session","list-sessions","abort","switch-mode","approve-permission","deny-permission","answer-question","shutdown-daemon","get-messages","get-stats","get-team-stats","start-invite","get-machine-info","get-agent-settings","set-agent-settings","get-labs-settings","set-labs-settings","check-path","backfill-history-session","trigger-upgrade","checkpoint-list","checkpoint-diff","checkpoint-rollback","refresh-enterprise-models"]),SESSION_RPC_METHODS=["answer-question","approve-permission","deny-permission","abort","stop-session"],MACHINE_RPC_METHODS=["start-invite","get-machine-info","get-agent-settings","set-agent-settings","get-labs-settings","set-labs-settings","check-path","backfill-history-session","trigger-upgrade","checkpoint-list","checkpoint-diff","checkpoint-rollback","refresh-enterprise-models"],DAEMON_REQUIRED_RPC_METHODS=[...SESSION_RPC_METHODS,...MACHINE_RPC_METHODS],RpcCallSchema=o.object({method:o.string().min(1),params:o.unknown(),timeout:o.number().int().positive().default(3e4)}),RpcResultSchema=o.discriminatedUnion("ok",[o.object({ok:o.literal(!0),result:o.unknown()}),o.object({ok:o.literal(!1),error:o.string()})]),SpawnSessionParamsSchema=o.object({agentType:o.enum(n),cwd:o.string().min(1),prompt:o.string().optional(),permissionMode:i.default("default"),env:o.record(o.string()).optional(),model:o.string().optional(),baseUrl:o.string().url().optional(),appendSystemPrompt:o.string().optional(),allowedTools:o.array(o.string()).optional(),disallowedTools:o.array(o.string()).optional(),mcpConfig:o.string().optional(),resumeSessionId:o.string().optional(),serverSessionId:o.string().optional(),maxTurns:o.number().int().positive().optional(),machineId:o.string().min(1).optional(),spawnToken:o.string().optional(),systemPrompt:o.string().optional(),systemPromptFile:o.string().optional(),appendSystemPromptFile:o.string().optional(),fallbackModel:o.string().optional(),maxBudgetUsd:o.number().positive().optional(),tools:o.array(o.string()).optional(),effort:o.enum(["low","medium","high","xhigh","max"]).optional(),addDirs:o.array(o.string()).optional(),agent:o.string().optional(),agents:o.string().optional(),jsonSchema:o.string().optional(),strictMcpConfig:o.boolean().optional(),chrome:o.boolean().optional(),worktree:o.union([o.boolean(),o.string()]).optional(),forkSession:o.boolean().optional(),sessionId:o.string().uuid().optional(),settings:o.string().optional(),betas:o.array(o.string()).optional(),brief:o.boolean().optional(),noSessionPersistence:o.boolean().optional(),includePartialMessages:o.boolean().optional(),replayUserMessages:o.boolean().optional(),settingSources:o.string().optional(),disableSlashCommands:o.boolean().optional(),files:o.array(o.string()).optional(),pluginDirs:o.array(o.string()).optional(),dangerouslySkipPermissions:o.boolean().optional(),allowDangerouslySkipPermissions:o.boolean().optional(),startupScripts:o.array(o.string()).optional(),source:o.enum(["managed","history","scheduled"]).default("managed"),background:o.boolean().default(!1),useWindowsTerminal:o.boolean().optional()}),GetMessagesParamsSchema=o.object({sessionId:o.string().min(1),fromSeq:o.number().int().nonnegative().optional(),limit:o.number().int().positive().default(100)}),GetMessagesResponseSchema=o.object({messages:o.array(e),total:o.number(),hasMore:o.boolean()}),CustomModelSchema=o.object({id:o.string().min(1),label:o.string().min(1)}),SkillDefinitionSchema=o.object({name:o.string().min(1),description:o.string(),userInvocable:o.boolean().default(!0),source:o.enum(["project","user"]).default("project"),projectPath:o.string().optional()}),AGENT_ENV_NONE="none",AgentEnvConfigSchema=o.object({httpProxy:o.string().optional(),httpsProxy:o.string().optional(),customEnv:o.record(o.string()).optional(),customModels:o.array(CustomModelSchema).optional()}),AgentSettingsSchema=o.object({defaults:AgentEnvConfigSchema.optional(),startupScripts:o.array(o.string()).optional(),telemetryEnabled:o.boolean().optional()}).merge(o.object(Object.fromEntries(s.map(t=>[t,AgentEnvConfigSchema.optional()])))),MachineInfoResponseSchema=o.object({homedir:o.string(),defaultCwd:o.string().optional(),recentCwds:o.array(o.string()),projectPaths:o.array(o.string()).optional().default([]),availableAgents:o.array(o.string()),agentModels:o.record(o.string(),o.array(o.object({id:o.string(),displayName:o.string(),isDefault:o.boolean(),hidden:o.boolean(),source:o.enum(["builtin","acp","env","custom"]).optional().default("acp")}))).optional(),agentModes:o.record(o.string(),o.array(o.object({id:o.string(),label:o.string()}))).optional(),agentSettings:AgentSettingsSchema.optional(),agentSkills:o.record(o.string(),o.array(SkillDefinitionSchema)).optional()}),CheckPathParamsSchema=o.object({cwd:o.string().min(1),machineId:o.string().min(1).optional()}),LabsSettingsSchema=o.object({historySessionSync:o.boolean().default(!1)});
|
|
1
|
+
"use strict";import{z as o}from"zod";import{SessionMessageSchema as e}from"./messages.js";import{CLI_AGENT_TYPES as n,SPAWNABLE_AGENTS as s}from"./messageMeta.js";import{PermissionModeSchema as i}from"./interactionEvents.js";export const RpcMethod=o.enum(["spawn-session","stop-session","list-sessions","abort","switch-mode","approve-permission","deny-permission","answer-question","shutdown-daemon","get-messages","get-stats","get-team-stats","start-invite","get-machine-info","get-agent-settings","set-agent-settings","get-labs-settings","set-labs-settings","check-path","backfill-history-session","trigger-upgrade","checkpoint-list","checkpoint-diff","checkpoint-rollback","refresh-enterprise-models"]),SESSION_RPC_METHODS=["answer-question","approve-permission","deny-permission","abort","stop-session"],MACHINE_RPC_METHODS=["start-invite","get-machine-info","get-agent-settings","set-agent-settings","get-labs-settings","set-labs-settings","check-path","backfill-history-session","trigger-upgrade","checkpoint-list","checkpoint-diff","checkpoint-rollback","refresh-enterprise-models"],DAEMON_REQUIRED_RPC_METHODS=[...SESSION_RPC_METHODS,...MACHINE_RPC_METHODS],RpcCallSchema=o.object({method:o.string().min(1),params:o.unknown(),timeout:o.number().int().positive().default(3e4)}),RpcResultSchema=o.discriminatedUnion("ok",[o.object({ok:o.literal(!0),result:o.unknown()}),o.object({ok:o.literal(!1),error:o.string()})]),SpawnSessionParamsSchema=o.object({agentType:o.enum(n),cwd:o.string().min(1),prompt:o.string().optional(),permissionMode:i.default("default"),env:o.record(o.string()).optional(),model:o.string().optional(),baseUrl:o.string().url().optional(),appendSystemPrompt:o.string().optional(),allowedTools:o.array(o.string()).optional(),disallowedTools:o.array(o.string()).optional(),mcpConfig:o.string().optional(),resumeSessionId:o.string().optional(),serverSessionId:o.string().optional(),maxTurns:o.number().int().positive().optional(),machineId:o.string().min(1).optional(),spawnToken:o.string().optional(),systemPrompt:o.string().optional(),systemPromptFile:o.string().optional(),appendSystemPromptFile:o.string().optional(),fallbackModel:o.string().optional(),maxBudgetUsd:o.number().positive().optional(),tools:o.array(o.string()).optional(),effort:o.enum(["low","medium","high","xhigh","max"]).optional(),addDirs:o.array(o.string()).optional(),agent:o.string().optional(),agents:o.string().optional(),jsonSchema:o.string().optional(),strictMcpConfig:o.boolean().optional(),chrome:o.boolean().optional(),worktree:o.union([o.boolean(),o.string()]).optional(),forkSession:o.boolean().optional(),sessionId:o.string().uuid().optional(),settings:o.string().optional(),betas:o.array(o.string()).optional(),brief:o.boolean().optional(),noSessionPersistence:o.boolean().optional(),includePartialMessages:o.boolean().optional(),replayUserMessages:o.boolean().optional(),settingSources:o.string().optional(),disableSlashCommands:o.boolean().optional(),files:o.array(o.string()).optional(),pluginDirs:o.array(o.string()).optional(),dangerouslySkipPermissions:o.boolean().optional(),allowDangerouslySkipPermissions:o.boolean().optional(),startupScripts:o.array(o.string()).optional(),source:o.enum(["managed","history","scheduled"]).default("managed"),background:o.boolean().default(!1),useWindowsTerminal:o.boolean().optional()}),GetMessagesParamsSchema=o.object({sessionId:o.string().min(1),fromSeq:o.number().int().nonnegative().optional(),limit:o.number().int().positive().default(100)}),GetMessagesResponseSchema=o.object({messages:o.array(e),total:o.number(),hasMore:o.boolean()}),CustomModelSchema=o.object({id:o.string().min(1),label:o.string().min(1)}),SkillDefinitionSchema=o.object({name:o.string().min(1),description:o.string(),userInvocable:o.boolean().default(!0),source:o.enum(["project","user"]).default("project"),projectPath:o.string().optional()}),AGENT_ENV_NONE="none",AgentEnvConfigSchema=o.object({httpProxy:o.string().optional(),httpsProxy:o.string().optional(),customEnv:o.record(o.string()).optional(),customModels:o.array(CustomModelSchema).optional()}),AgentSettingsSchema=o.object({defaults:AgentEnvConfigSchema.optional(),startupScripts:o.array(o.string()).optional(),telemetryEnabled:o.boolean().optional()}).merge(o.object(Object.fromEntries(s.map(t=>[t,AgentEnvConfigSchema.optional()])))),MachineInfoResponseSchema=o.object({homedir:o.string(),defaultCwd:o.string().optional(),recentCwds:o.array(o.string()),projectPaths:o.array(o.string()).optional().default([]),availableAgents:o.array(o.string()),agentModels:o.record(o.string(),o.array(o.object({id:o.string(),displayName:o.string(),isDefault:o.boolean(),hidden:o.boolean(),source:o.enum(["builtin","acp","env","custom"]).optional().default("acp")}))).optional(),agentModes:o.record(o.string(),o.array(o.object({id:o.string(),label:o.string()}))).optional(),agentCliPaths:o.record(o.string(),o.string()).optional(),agentSettings:AgentSettingsSchema.optional(),agentSkills:o.record(o.string(),o.array(SkillDefinitionSchema)).optional()}),CheckPathParamsSchema=o.object({cwd:o.string().min(1),machineId:o.string().min(1).optional()}),LabsSettingsSchema=o.object({historySessionSync:o.boolean().default(!1)});
|
package/dist/stats.d.ts
CHANGED
|
@@ -54,14 +54,14 @@ export declare const LongestSessionSchema: z.ZodObject<{
|
|
|
54
54
|
timestamp: z.ZodString;
|
|
55
55
|
}, "strip", z.ZodTypeAny, {
|
|
56
56
|
sessionId: string;
|
|
57
|
+
duration: number;
|
|
57
58
|
timestamp: string;
|
|
58
59
|
messageCount: number;
|
|
59
|
-
duration: number;
|
|
60
60
|
}, {
|
|
61
61
|
sessionId: string;
|
|
62
|
+
duration: number;
|
|
62
63
|
timestamp: string;
|
|
63
64
|
messageCount: number;
|
|
64
|
-
duration: number;
|
|
65
65
|
}>;
|
|
66
66
|
export declare const ClaudeStatsDataSchema: z.ZodObject<{
|
|
67
67
|
version: z.ZodNumber;
|
|
@@ -116,14 +116,14 @@ export declare const ClaudeStatsDataSchema: z.ZodObject<{
|
|
|
116
116
|
timestamp: z.ZodString;
|
|
117
117
|
}, "strip", z.ZodTypeAny, {
|
|
118
118
|
sessionId: string;
|
|
119
|
+
duration: number;
|
|
119
120
|
timestamp: string;
|
|
120
121
|
messageCount: number;
|
|
121
|
-
duration: number;
|
|
122
122
|
}, {
|
|
123
123
|
sessionId: string;
|
|
124
|
+
duration: number;
|
|
124
125
|
timestamp: string;
|
|
125
126
|
messageCount: number;
|
|
126
|
-
duration: number;
|
|
127
127
|
}>>;
|
|
128
128
|
firstSessionDate: z.ZodNullable<z.ZodString>;
|
|
129
129
|
hourCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
@@ -149,9 +149,9 @@ export declare const ClaudeStatsDataSchema: z.ZodObject<{
|
|
|
149
149
|
}>;
|
|
150
150
|
longestSession: {
|
|
151
151
|
sessionId: string;
|
|
152
|
+
duration: number;
|
|
152
153
|
timestamp: string;
|
|
153
154
|
messageCount: number;
|
|
154
|
-
duration: number;
|
|
155
155
|
} | null;
|
|
156
156
|
firstSessionDate: string | null;
|
|
157
157
|
hourCounts: Record<string, number>;
|
|
@@ -177,9 +177,9 @@ export declare const ClaudeStatsDataSchema: z.ZodObject<{
|
|
|
177
177
|
}>;
|
|
178
178
|
longestSession: {
|
|
179
179
|
sessionId: string;
|
|
180
|
+
duration: number;
|
|
180
181
|
timestamp: string;
|
|
181
182
|
messageCount: number;
|
|
182
|
-
duration: number;
|
|
183
183
|
} | null;
|
|
184
184
|
firstSessionDate: string | null;
|
|
185
185
|
hourCounts: Record<string, number>;
|
|
@@ -262,14 +262,14 @@ export declare const AgentTypeUsageSchema: z.ZodObject<{
|
|
|
262
262
|
timestamp: z.ZodString;
|
|
263
263
|
}, "strip", z.ZodTypeAny, {
|
|
264
264
|
sessionId: string;
|
|
265
|
+
duration: number;
|
|
265
266
|
timestamp: string;
|
|
266
267
|
messageCount: number;
|
|
267
|
-
duration: number;
|
|
268
268
|
}, {
|
|
269
269
|
sessionId: string;
|
|
270
|
+
duration: number;
|
|
270
271
|
timestamp: string;
|
|
271
272
|
messageCount: number;
|
|
272
|
-
duration: number;
|
|
273
273
|
}>>;
|
|
274
274
|
firstSessionDate: z.ZodNullable<z.ZodString>;
|
|
275
275
|
hourCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
@@ -295,9 +295,9 @@ export declare const AgentTypeUsageSchema: z.ZodObject<{
|
|
|
295
295
|
}>;
|
|
296
296
|
longestSession: {
|
|
297
297
|
sessionId: string;
|
|
298
|
+
duration: number;
|
|
298
299
|
timestamp: string;
|
|
299
300
|
messageCount: number;
|
|
300
|
-
duration: number;
|
|
301
301
|
} | null;
|
|
302
302
|
firstSessionDate: string | null;
|
|
303
303
|
hourCounts: Record<string, number>;
|
|
@@ -323,9 +323,9 @@ export declare const AgentTypeUsageSchema: z.ZodObject<{
|
|
|
323
323
|
}>;
|
|
324
324
|
longestSession: {
|
|
325
325
|
sessionId: string;
|
|
326
|
+
duration: number;
|
|
326
327
|
timestamp: string;
|
|
327
328
|
messageCount: number;
|
|
328
|
-
duration: number;
|
|
329
329
|
} | null;
|
|
330
330
|
firstSessionDate: string | null;
|
|
331
331
|
hourCounts: Record<string, number>;
|
|
@@ -381,9 +381,9 @@ export declare const AgentTypeUsageSchema: z.ZodObject<{
|
|
|
381
381
|
}>;
|
|
382
382
|
longestSession: {
|
|
383
383
|
sessionId: string;
|
|
384
|
+
duration: number;
|
|
384
385
|
timestamp: string;
|
|
385
386
|
messageCount: number;
|
|
386
|
-
duration: number;
|
|
387
387
|
} | null;
|
|
388
388
|
firstSessionDate: string | null;
|
|
389
389
|
hourCounts: Record<string, number>;
|
|
@@ -416,9 +416,9 @@ export declare const AgentTypeUsageSchema: z.ZodObject<{
|
|
|
416
416
|
}>;
|
|
417
417
|
longestSession: {
|
|
418
418
|
sessionId: string;
|
|
419
|
+
duration: number;
|
|
419
420
|
timestamp: string;
|
|
420
421
|
messageCount: number;
|
|
421
|
-
duration: number;
|
|
422
422
|
} | null;
|
|
423
423
|
firstSessionDate: string | null;
|
|
424
424
|
hourCounts: Record<string, number>;
|
|
@@ -484,14 +484,14 @@ export declare const StatsOverviewSchema: z.ZodObject<{
|
|
|
484
484
|
timestamp: z.ZodString;
|
|
485
485
|
}, "strip", z.ZodTypeAny, {
|
|
486
486
|
sessionId: string;
|
|
487
|
+
duration: number;
|
|
487
488
|
timestamp: string;
|
|
488
489
|
messageCount: number;
|
|
489
|
-
duration: number;
|
|
490
490
|
}, {
|
|
491
491
|
sessionId: string;
|
|
492
|
+
duration: number;
|
|
492
493
|
timestamp: string;
|
|
493
494
|
messageCount: number;
|
|
494
|
-
duration: number;
|
|
495
495
|
}>>;
|
|
496
496
|
firstSessionDate: z.ZodNullable<z.ZodString>;
|
|
497
497
|
hourCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
@@ -517,9 +517,9 @@ export declare const StatsOverviewSchema: z.ZodObject<{
|
|
|
517
517
|
}>;
|
|
518
518
|
longestSession: {
|
|
519
519
|
sessionId: string;
|
|
520
|
+
duration: number;
|
|
520
521
|
timestamp: string;
|
|
521
522
|
messageCount: number;
|
|
522
|
-
duration: number;
|
|
523
523
|
} | null;
|
|
524
524
|
firstSessionDate: string | null;
|
|
525
525
|
hourCounts: Record<string, number>;
|
|
@@ -545,9 +545,9 @@ export declare const StatsOverviewSchema: z.ZodObject<{
|
|
|
545
545
|
}>;
|
|
546
546
|
longestSession: {
|
|
547
547
|
sessionId: string;
|
|
548
|
+
duration: number;
|
|
548
549
|
timestamp: string;
|
|
549
550
|
messageCount: number;
|
|
550
|
-
duration: number;
|
|
551
551
|
} | null;
|
|
552
552
|
firstSessionDate: string | null;
|
|
553
553
|
hourCounts: Record<string, number>;
|
|
@@ -633,14 +633,14 @@ export declare const StatsOverviewSchema: z.ZodObject<{
|
|
|
633
633
|
timestamp: z.ZodString;
|
|
634
634
|
}, "strip", z.ZodTypeAny, {
|
|
635
635
|
sessionId: string;
|
|
636
|
+
duration: number;
|
|
636
637
|
timestamp: string;
|
|
637
638
|
messageCount: number;
|
|
638
|
-
duration: number;
|
|
639
639
|
}, {
|
|
640
640
|
sessionId: string;
|
|
641
|
+
duration: number;
|
|
641
642
|
timestamp: string;
|
|
642
643
|
messageCount: number;
|
|
643
|
-
duration: number;
|
|
644
644
|
}>>;
|
|
645
645
|
firstSessionDate: z.ZodNullable<z.ZodString>;
|
|
646
646
|
hourCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
@@ -666,9 +666,9 @@ export declare const StatsOverviewSchema: z.ZodObject<{
|
|
|
666
666
|
}>;
|
|
667
667
|
longestSession: {
|
|
668
668
|
sessionId: string;
|
|
669
|
+
duration: number;
|
|
669
670
|
timestamp: string;
|
|
670
671
|
messageCount: number;
|
|
671
|
-
duration: number;
|
|
672
672
|
} | null;
|
|
673
673
|
firstSessionDate: string | null;
|
|
674
674
|
hourCounts: Record<string, number>;
|
|
@@ -694,9 +694,9 @@ export declare const StatsOverviewSchema: z.ZodObject<{
|
|
|
694
694
|
}>;
|
|
695
695
|
longestSession: {
|
|
696
696
|
sessionId: string;
|
|
697
|
+
duration: number;
|
|
697
698
|
timestamp: string;
|
|
698
699
|
messageCount: number;
|
|
699
|
-
duration: number;
|
|
700
700
|
} | null;
|
|
701
701
|
firstSessionDate: string | null;
|
|
702
702
|
hourCounts: Record<string, number>;
|
|
@@ -752,9 +752,9 @@ export declare const StatsOverviewSchema: z.ZodObject<{
|
|
|
752
752
|
}>;
|
|
753
753
|
longestSession: {
|
|
754
754
|
sessionId: string;
|
|
755
|
+
duration: number;
|
|
755
756
|
timestamp: string;
|
|
756
757
|
messageCount: number;
|
|
757
|
-
duration: number;
|
|
758
758
|
} | null;
|
|
759
759
|
firstSessionDate: string | null;
|
|
760
760
|
hourCounts: Record<string, number>;
|
|
@@ -787,9 +787,9 @@ export declare const StatsOverviewSchema: z.ZodObject<{
|
|
|
787
787
|
}>;
|
|
788
788
|
longestSession: {
|
|
789
789
|
sessionId: string;
|
|
790
|
+
duration: number;
|
|
790
791
|
timestamp: string;
|
|
791
792
|
messageCount: number;
|
|
792
|
-
duration: number;
|
|
793
793
|
} | null;
|
|
794
794
|
firstSessionDate: string | null;
|
|
795
795
|
hourCounts: Record<string, number>;
|
|
@@ -825,9 +825,9 @@ export declare const StatsOverviewSchema: z.ZodObject<{
|
|
|
825
825
|
}>;
|
|
826
826
|
longestSession: {
|
|
827
827
|
sessionId: string;
|
|
828
|
+
duration: number;
|
|
828
829
|
timestamp: string;
|
|
829
830
|
messageCount: number;
|
|
830
|
-
duration: number;
|
|
831
831
|
} | null;
|
|
832
832
|
firstSessionDate: string | null;
|
|
833
833
|
hourCounts: Record<string, number>;
|
|
@@ -874,9 +874,9 @@ export declare const StatsOverviewSchema: z.ZodObject<{
|
|
|
874
874
|
}>;
|
|
875
875
|
longestSession: {
|
|
876
876
|
sessionId: string;
|
|
877
|
+
duration: number;
|
|
877
878
|
timestamp: string;
|
|
878
879
|
messageCount: number;
|
|
879
|
-
duration: number;
|
|
880
880
|
} | null;
|
|
881
881
|
firstSessionDate: string | null;
|
|
882
882
|
hourCounts: Record<string, number>;
|
|
@@ -905,9 +905,9 @@ export declare const StatsOverviewSchema: z.ZodObject<{
|
|
|
905
905
|
}>;
|
|
906
906
|
longestSession: {
|
|
907
907
|
sessionId: string;
|
|
908
|
+
duration: number;
|
|
908
909
|
timestamp: string;
|
|
909
910
|
messageCount: number;
|
|
910
|
-
duration: number;
|
|
911
911
|
} | null;
|
|
912
912
|
firstSessionDate: string | null;
|
|
913
913
|
hourCounts: Record<string, number>;
|
|
@@ -949,9 +949,9 @@ export declare const StatsOverviewSchema: z.ZodObject<{
|
|
|
949
949
|
}>;
|
|
950
950
|
longestSession: {
|
|
951
951
|
sessionId: string;
|
|
952
|
+
duration: number;
|
|
952
953
|
timestamp: string;
|
|
953
954
|
messageCount: number;
|
|
954
|
-
duration: number;
|
|
955
955
|
} | null;
|
|
956
956
|
firstSessionDate: string | null;
|
|
957
957
|
hourCounts: Record<string, number>;
|
|
@@ -1027,14 +1027,14 @@ export declare const ActivityUploadSchema: z.ZodObject<{
|
|
|
1027
1027
|
timestamp: z.ZodString;
|
|
1028
1028
|
}, "strip", z.ZodTypeAny, {
|
|
1029
1029
|
sessionId: string;
|
|
1030
|
+
duration: number;
|
|
1030
1031
|
timestamp: string;
|
|
1031
1032
|
messageCount: number;
|
|
1032
|
-
duration: number;
|
|
1033
1033
|
}, {
|
|
1034
1034
|
sessionId: string;
|
|
1035
|
+
duration: number;
|
|
1035
1036
|
timestamp: string;
|
|
1036
1037
|
messageCount: number;
|
|
1037
|
-
duration: number;
|
|
1038
1038
|
}>>;
|
|
1039
1039
|
firstSessionDate: z.ZodNullable<z.ZodString>;
|
|
1040
1040
|
hourCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
@@ -1060,9 +1060,9 @@ export declare const ActivityUploadSchema: z.ZodObject<{
|
|
|
1060
1060
|
}>;
|
|
1061
1061
|
longestSession: {
|
|
1062
1062
|
sessionId: string;
|
|
1063
|
+
duration: number;
|
|
1063
1064
|
timestamp: string;
|
|
1064
1065
|
messageCount: number;
|
|
1065
|
-
duration: number;
|
|
1066
1066
|
} | null;
|
|
1067
1067
|
firstSessionDate: string | null;
|
|
1068
1068
|
hourCounts: Record<string, number>;
|
|
@@ -1088,9 +1088,9 @@ export declare const ActivityUploadSchema: z.ZodObject<{
|
|
|
1088
1088
|
}>;
|
|
1089
1089
|
longestSession: {
|
|
1090
1090
|
sessionId: string;
|
|
1091
|
+
duration: number;
|
|
1091
1092
|
timestamp: string;
|
|
1092
1093
|
messageCount: number;
|
|
1093
|
-
duration: number;
|
|
1094
1094
|
} | null;
|
|
1095
1095
|
firstSessionDate: string | null;
|
|
1096
1096
|
hourCounts: Record<string, number>;
|
|
@@ -1176,14 +1176,14 @@ export declare const ActivityUploadSchema: z.ZodObject<{
|
|
|
1176
1176
|
timestamp: z.ZodString;
|
|
1177
1177
|
}, "strip", z.ZodTypeAny, {
|
|
1178
1178
|
sessionId: string;
|
|
1179
|
+
duration: number;
|
|
1179
1180
|
timestamp: string;
|
|
1180
1181
|
messageCount: number;
|
|
1181
|
-
duration: number;
|
|
1182
1182
|
}, {
|
|
1183
1183
|
sessionId: string;
|
|
1184
|
+
duration: number;
|
|
1184
1185
|
timestamp: string;
|
|
1185
1186
|
messageCount: number;
|
|
1186
|
-
duration: number;
|
|
1187
1187
|
}>>;
|
|
1188
1188
|
firstSessionDate: z.ZodNullable<z.ZodString>;
|
|
1189
1189
|
hourCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
@@ -1209,9 +1209,9 @@ export declare const ActivityUploadSchema: z.ZodObject<{
|
|
|
1209
1209
|
}>;
|
|
1210
1210
|
longestSession: {
|
|
1211
1211
|
sessionId: string;
|
|
1212
|
+
duration: number;
|
|
1212
1213
|
timestamp: string;
|
|
1213
1214
|
messageCount: number;
|
|
1214
|
-
duration: number;
|
|
1215
1215
|
} | null;
|
|
1216
1216
|
firstSessionDate: string | null;
|
|
1217
1217
|
hourCounts: Record<string, number>;
|
|
@@ -1237,9 +1237,9 @@ export declare const ActivityUploadSchema: z.ZodObject<{
|
|
|
1237
1237
|
}>;
|
|
1238
1238
|
longestSession: {
|
|
1239
1239
|
sessionId: string;
|
|
1240
|
+
duration: number;
|
|
1240
1241
|
timestamp: string;
|
|
1241
1242
|
messageCount: number;
|
|
1242
|
-
duration: number;
|
|
1243
1243
|
} | null;
|
|
1244
1244
|
firstSessionDate: string | null;
|
|
1245
1245
|
hourCounts: Record<string, number>;
|
|
@@ -1295,9 +1295,9 @@ export declare const ActivityUploadSchema: z.ZodObject<{
|
|
|
1295
1295
|
}>;
|
|
1296
1296
|
longestSession: {
|
|
1297
1297
|
sessionId: string;
|
|
1298
|
+
duration: number;
|
|
1298
1299
|
timestamp: string;
|
|
1299
1300
|
messageCount: number;
|
|
1300
|
-
duration: number;
|
|
1301
1301
|
} | null;
|
|
1302
1302
|
firstSessionDate: string | null;
|
|
1303
1303
|
hourCounts: Record<string, number>;
|
|
@@ -1330,9 +1330,9 @@ export declare const ActivityUploadSchema: z.ZodObject<{
|
|
|
1330
1330
|
}>;
|
|
1331
1331
|
longestSession: {
|
|
1332
1332
|
sessionId: string;
|
|
1333
|
+
duration: number;
|
|
1333
1334
|
timestamp: string;
|
|
1334
1335
|
messageCount: number;
|
|
1335
|
-
duration: number;
|
|
1336
1336
|
} | null;
|
|
1337
1337
|
firstSessionDate: string | null;
|
|
1338
1338
|
hourCounts: Record<string, number>;
|
|
@@ -1368,9 +1368,9 @@ export declare const ActivityUploadSchema: z.ZodObject<{
|
|
|
1368
1368
|
}>;
|
|
1369
1369
|
longestSession: {
|
|
1370
1370
|
sessionId: string;
|
|
1371
|
+
duration: number;
|
|
1371
1372
|
timestamp: string;
|
|
1372
1373
|
messageCount: number;
|
|
1373
|
-
duration: number;
|
|
1374
1374
|
} | null;
|
|
1375
1375
|
firstSessionDate: string | null;
|
|
1376
1376
|
hourCounts: Record<string, number>;
|
|
@@ -1417,9 +1417,9 @@ export declare const ActivityUploadSchema: z.ZodObject<{
|
|
|
1417
1417
|
}>;
|
|
1418
1418
|
longestSession: {
|
|
1419
1419
|
sessionId: string;
|
|
1420
|
+
duration: number;
|
|
1420
1421
|
timestamp: string;
|
|
1421
1422
|
messageCount: number;
|
|
1422
|
-
duration: number;
|
|
1423
1423
|
} | null;
|
|
1424
1424
|
firstSessionDate: string | null;
|
|
1425
1425
|
hourCounts: Record<string, number>;
|
|
@@ -1448,9 +1448,9 @@ export declare const ActivityUploadSchema: z.ZodObject<{
|
|
|
1448
1448
|
}>;
|
|
1449
1449
|
longestSession: {
|
|
1450
1450
|
sessionId: string;
|
|
1451
|
+
duration: number;
|
|
1451
1452
|
timestamp: string;
|
|
1452
1453
|
messageCount: number;
|
|
1453
|
-
duration: number;
|
|
1454
1454
|
} | null;
|
|
1455
1455
|
firstSessionDate: string | null;
|
|
1456
1456
|
hourCounts: Record<string, number>;
|
|
@@ -1492,9 +1492,9 @@ export declare const ActivityUploadSchema: z.ZodObject<{
|
|
|
1492
1492
|
}>;
|
|
1493
1493
|
longestSession: {
|
|
1494
1494
|
sessionId: string;
|
|
1495
|
+
duration: number;
|
|
1495
1496
|
timestamp: string;
|
|
1496
1497
|
messageCount: number;
|
|
1497
|
-
duration: number;
|
|
1498
1498
|
} | null;
|
|
1499
1499
|
firstSessionDate: string | null;
|
|
1500
1500
|
hourCounts: Record<string, number>;
|
|
@@ -1534,9 +1534,9 @@ export declare const ActivityUploadSchema: z.ZodObject<{
|
|
|
1534
1534
|
}>;
|
|
1535
1535
|
longestSession: {
|
|
1536
1536
|
sessionId: string;
|
|
1537
|
+
duration: number;
|
|
1537
1538
|
timestamp: string;
|
|
1538
1539
|
messageCount: number;
|
|
1539
|
-
duration: number;
|
|
1540
1540
|
} | null;
|
|
1541
1541
|
firstSessionDate: string | null;
|
|
1542
1542
|
hourCounts: Record<string, number>;
|
|
@@ -1583,9 +1583,9 @@ export declare const ActivityUploadSchema: z.ZodObject<{
|
|
|
1583
1583
|
}>;
|
|
1584
1584
|
longestSession: {
|
|
1585
1585
|
sessionId: string;
|
|
1586
|
+
duration: number;
|
|
1586
1587
|
timestamp: string;
|
|
1587
1588
|
messageCount: number;
|
|
1588
|
-
duration: number;
|
|
1589
1589
|
} | null;
|
|
1590
1590
|
firstSessionDate: string | null;
|
|
1591
1591
|
hourCounts: Record<string, number>;
|
|
@@ -1618,9 +1618,9 @@ export declare const ActivityUploadSchema: z.ZodObject<{
|
|
|
1618
1618
|
}>;
|
|
1619
1619
|
longestSession: {
|
|
1620
1620
|
sessionId: string;
|
|
1621
|
+
duration: number;
|
|
1621
1622
|
timestamp: string;
|
|
1622
1623
|
messageCount: number;
|
|
1623
|
-
duration: number;
|
|
1624
1624
|
} | null;
|
|
1625
1625
|
firstSessionDate: string | null;
|
|
1626
1626
|
hourCounts: Record<string, number>;
|
|
@@ -1662,9 +1662,9 @@ export declare const ActivityUploadSchema: z.ZodObject<{
|
|
|
1662
1662
|
}>;
|
|
1663
1663
|
longestSession: {
|
|
1664
1664
|
sessionId: string;
|
|
1665
|
+
duration: number;
|
|
1665
1666
|
timestamp: string;
|
|
1666
1667
|
messageCount: number;
|
|
1667
|
-
duration: number;
|
|
1668
1668
|
} | null;
|
|
1669
1669
|
firstSessionDate: string | null;
|
|
1670
1670
|
hourCounts: Record<string, number>;
|
package/dist/telemetry.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{z as e}from"zod";export const TelemetryEventTypeSchema=e.enum(["scanner.format_mismatch","scanner.parse_error","scanner.version_unknown","session.start_failed","session.crash","rpc.call_failed","upgrade.failed","protocol.incompatible","daemon.log","daemon.crash"]);const
|
|
1
|
+
"use strict";import{z as e}from"zod";export const TelemetryEventTypeSchema=e.enum(["scanner.format_mismatch","scanner.parse_error","scanner.version_unknown","session.start_failed","session.crash","rpc.call_failed","upgrade.failed","protocol.incompatible","daemon.log","daemon.crash"]);const c={"scanner.format_mismatch":["filePath","totalLines","parsedLines","errorCount","unknownLines","samples"],"scanner.parse_error":["filePath","totalLines","errorCount","error","lineNumber"],"scanner.version_unknown":["detectedVersion","supportedRange"],"session.start_failed":["cwd","agentBinary","exitCode","stderr"],"session.crash":["exitCode","signal","stderr","agentType","sessionId","pid","durationMs","platform","arch","nodeVersion","totalMemoryMB","freeMemoryMB","cpuCores","shell","concurrentSessions"],"rpc.call_failed":["method","error"],"upgrade.failed":["fromVersion","toVersion","stage","error"],"protocol.incompatible":["clientVersion","serverVersion","minRequired"],"daemon.log":["module","hostname","platform","arch","stack"],"daemon.crash":["crashType","hostname","platform","arch","stack"]},d=/\b(?:\d{1,3}\.){3}\d{1,3}\b|[\w.+-]+@[\w.-]+\.\w+|\b(?:Bearer|token|sk-|api[_-]?key)\s*[:=]?\s*\S+/gi;function a(r){if(typeof r=="string")return r.replace(d,"[REDACTED]");if(Array.isArray(r))return r.map(a);if(typeof r=="number"||typeof r=="boolean"||r===null)return r}export function sanitizeContext(r,t){if(!t)return;const s=c[r];if(!s)return;const n={};for(const o of s)if(o in t){const i=a(t[o]);i!==void 0&&(n[o]=i)}return typeof n.stderr=="string"&&n.stderr.length>500&&(n.stderr=n.stderr.slice(0,500)),Object.keys(n).length>0?n:void 0}export const TelemetryEventSchema=e.object({type:TelemetryEventTypeSchema,timestamp:e.string(),agentType:e.string().optional(),agentVersion:e.string().optional(),daemonVersion:e.string(),code:e.string(),message:e.string(),context:e.record(e.unknown()).optional()}),TelemetryReportPayloadSchema=e.object({machineId:e.string(),events:e.array(TelemetryEventSchema).max(100)});
|