codebuff 1.0.118 → 1.0.120
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/cli.d.ts +5 -1
- package/dist/cli.js +19 -3
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +5 -3
- package/dist/client.js +4 -1
- package/dist/client.js.map +1 -1
- package/dist/common/actions.d.ts +203 -92
- package/dist/common/actions.js +2 -0
- package/dist/common/actions.js.map +1 -1
- package/dist/common/constants.d.ts +7 -0
- package/dist/common/constants.js +23 -5
- package/dist/common/constants.js.map +1 -1
- package/dist/common/db/schema.d.ts +17 -0
- package/dist/common/db/schema.js +10 -13
- package/dist/common/db/schema.js.map +1 -1
- package/dist/common/util/file.d.ts +38 -0
- package/dist/common/util/file.js +8 -0
- package/dist/common/util/file.js.map +1 -1
- package/dist/common/util/string.d.ts +5 -0
- package/dist/common/util/string.js +10 -1
- package/dist/common/util/string.js.map +1 -1
- package/dist/common/websockets/websocket-schema.d.ts +486 -196
- package/dist/index.js +23 -3
- package/dist/index.js.map +1 -1
- package/dist/menu.js +2 -1
- package/dist/menu.js.map +1 -1
- package/dist/project-files.d.ts +16 -0
- package/dist/project-files.js +10 -0
- package/dist/project-files.js.map +1 -1
- package/dist/update-codebuff.js +3 -1
- package/dist/update-codebuff.js.map +1 -1
- package/package.json +1 -1
|
@@ -95,16 +95,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
95
95
|
}>>;
|
|
96
96
|
}, "strip", z.ZodTypeAny, {
|
|
97
97
|
type: "tool_use";
|
|
98
|
-
name: string;
|
|
99
98
|
id: string;
|
|
99
|
+
name: string;
|
|
100
100
|
input: Record<string, any>;
|
|
101
101
|
cache_control?: {
|
|
102
102
|
type: "ephemeral";
|
|
103
103
|
} | undefined;
|
|
104
104
|
}, {
|
|
105
105
|
type: "tool_use";
|
|
106
|
-
name: string;
|
|
107
106
|
id: string;
|
|
107
|
+
name: string;
|
|
108
108
|
input: Record<string, any>;
|
|
109
109
|
cache_control?: {
|
|
110
110
|
type: "ephemeral";
|
|
@@ -121,16 +121,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
121
121
|
type: "ephemeral";
|
|
122
122
|
}>>;
|
|
123
123
|
}, "strip", z.ZodTypeAny, {
|
|
124
|
-
content: string;
|
|
125
124
|
type: "tool_result";
|
|
126
125
|
tool_use_id: string;
|
|
126
|
+
content: string;
|
|
127
127
|
cache_control?: {
|
|
128
128
|
type: "ephemeral";
|
|
129
129
|
} | undefined;
|
|
130
130
|
}, {
|
|
131
|
-
content: string;
|
|
132
131
|
type: "tool_result";
|
|
133
132
|
tool_use_id: string;
|
|
133
|
+
content: string;
|
|
134
134
|
cache_control?: {
|
|
135
135
|
type: "ephemeral";
|
|
136
136
|
} | undefined;
|
|
@@ -144,16 +144,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
144
144
|
} | undefined;
|
|
145
145
|
} | {
|
|
146
146
|
type: "tool_use";
|
|
147
|
-
name: string;
|
|
148
147
|
id: string;
|
|
148
|
+
name: string;
|
|
149
149
|
input: Record<string, any>;
|
|
150
150
|
cache_control?: {
|
|
151
151
|
type: "ephemeral";
|
|
152
152
|
} | undefined;
|
|
153
153
|
} | {
|
|
154
|
-
content: string;
|
|
155
154
|
type: "tool_result";
|
|
156
155
|
tool_use_id: string;
|
|
156
|
+
content: string;
|
|
157
157
|
cache_control?: {
|
|
158
158
|
type: "ephemeral";
|
|
159
159
|
} | undefined;
|
|
@@ -168,16 +168,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
168
168
|
} | undefined;
|
|
169
169
|
} | {
|
|
170
170
|
type: "tool_use";
|
|
171
|
-
name: string;
|
|
172
171
|
id: string;
|
|
172
|
+
name: string;
|
|
173
173
|
input: Record<string, any>;
|
|
174
174
|
cache_control?: {
|
|
175
175
|
type: "ephemeral";
|
|
176
176
|
} | undefined;
|
|
177
177
|
} | {
|
|
178
|
-
content: string;
|
|
179
178
|
type: "tool_result";
|
|
180
179
|
tool_use_id: string;
|
|
180
|
+
content: string;
|
|
181
181
|
cache_control?: {
|
|
182
182
|
type: "ephemeral";
|
|
183
183
|
} | undefined;
|
|
@@ -195,18 +195,40 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
195
195
|
diffCached: z.ZodString;
|
|
196
196
|
lastCommitMessages: z.ZodString;
|
|
197
197
|
}, "strip", z.ZodTypeAny, {
|
|
198
|
-
status: string;
|
|
199
198
|
diff: string;
|
|
199
|
+
status: string;
|
|
200
200
|
diffCached: string;
|
|
201
201
|
lastCommitMessages: string;
|
|
202
202
|
}, {
|
|
203
|
-
status: string;
|
|
204
203
|
diff: string;
|
|
204
|
+
status: string;
|
|
205
205
|
diffCached: string;
|
|
206
206
|
lastCommitMessages: string;
|
|
207
207
|
}>;
|
|
208
208
|
changesSinceLastChat: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
209
209
|
shellConfigFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
210
|
+
systemInfo: z.ZodObject<{
|
|
211
|
+
platform: z.ZodString;
|
|
212
|
+
shell: z.ZodString;
|
|
213
|
+
nodeVersion: z.ZodString;
|
|
214
|
+
arch: z.ZodString;
|
|
215
|
+
homedir: z.ZodString;
|
|
216
|
+
cpus: z.ZodNumber;
|
|
217
|
+
}, "strip", z.ZodTypeAny, {
|
|
218
|
+
platform: string;
|
|
219
|
+
shell: string;
|
|
220
|
+
nodeVersion: string;
|
|
221
|
+
arch: string;
|
|
222
|
+
homedir: string;
|
|
223
|
+
cpus: number;
|
|
224
|
+
}, {
|
|
225
|
+
platform: string;
|
|
226
|
+
shell: string;
|
|
227
|
+
nodeVersion: string;
|
|
228
|
+
arch: string;
|
|
229
|
+
homedir: string;
|
|
230
|
+
cpus: number;
|
|
231
|
+
}>;
|
|
210
232
|
fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
211
233
|
path: z.ZodString;
|
|
212
234
|
content: z.ZodString;
|
|
@@ -223,13 +245,21 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
223
245
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
224
246
|
knowledgeFiles: Record<string, string>;
|
|
225
247
|
gitChanges: {
|
|
226
|
-
status: string;
|
|
227
248
|
diff: string;
|
|
249
|
+
status: string;
|
|
228
250
|
diffCached: string;
|
|
229
251
|
lastCommitMessages: string;
|
|
230
252
|
};
|
|
231
253
|
changesSinceLastChat: Record<string, string>;
|
|
232
254
|
shellConfigFiles: Record<string, string>;
|
|
255
|
+
systemInfo: {
|
|
256
|
+
platform: string;
|
|
257
|
+
shell: string;
|
|
258
|
+
nodeVersion: string;
|
|
259
|
+
arch: string;
|
|
260
|
+
homedir: string;
|
|
261
|
+
cpus: number;
|
|
262
|
+
};
|
|
233
263
|
fileVersions: {
|
|
234
264
|
path: string;
|
|
235
265
|
content: string;
|
|
@@ -240,13 +270,21 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
240
270
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
241
271
|
knowledgeFiles: Record<string, string>;
|
|
242
272
|
gitChanges: {
|
|
243
|
-
status: string;
|
|
244
273
|
diff: string;
|
|
274
|
+
status: string;
|
|
245
275
|
diffCached: string;
|
|
246
276
|
lastCommitMessages: string;
|
|
247
277
|
};
|
|
248
278
|
changesSinceLastChat: Record<string, string>;
|
|
249
279
|
shellConfigFiles: Record<string, string>;
|
|
280
|
+
systemInfo: {
|
|
281
|
+
platform: string;
|
|
282
|
+
shell: string;
|
|
283
|
+
nodeVersion: string;
|
|
284
|
+
arch: string;
|
|
285
|
+
homedir: string;
|
|
286
|
+
cpus: number;
|
|
287
|
+
};
|
|
250
288
|
fileVersions: {
|
|
251
289
|
path: string;
|
|
252
290
|
content: string;
|
|
@@ -257,14 +295,15 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
257
295
|
filePath: z.ZodString;
|
|
258
296
|
content: z.ZodString;
|
|
259
297
|
}, "strip", z.ZodTypeAny, {
|
|
298
|
+
type: "patch" | "file";
|
|
260
299
|
content: string;
|
|
261
|
-
type: "file" | "patch";
|
|
262
300
|
filePath: string;
|
|
263
301
|
}, {
|
|
302
|
+
type: "patch" | "file";
|
|
264
303
|
content: string;
|
|
265
|
-
type: "file" | "patch";
|
|
266
304
|
filePath: string;
|
|
267
305
|
}>, "many">;
|
|
306
|
+
costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "pro"]>>>;
|
|
268
307
|
}, "strip", z.ZodTypeAny, {
|
|
269
308
|
type: "user-input";
|
|
270
309
|
fingerprintId: string;
|
|
@@ -278,16 +317,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
278
317
|
} | undefined;
|
|
279
318
|
} | {
|
|
280
319
|
type: "tool_use";
|
|
281
|
-
name: string;
|
|
282
320
|
id: string;
|
|
321
|
+
name: string;
|
|
283
322
|
input: Record<string, any>;
|
|
284
323
|
cache_control?: {
|
|
285
324
|
type: "ephemeral";
|
|
286
325
|
} | undefined;
|
|
287
326
|
} | {
|
|
288
|
-
content: string;
|
|
289
327
|
type: "tool_result";
|
|
290
328
|
tool_use_id: string;
|
|
329
|
+
content: string;
|
|
291
330
|
cache_control?: {
|
|
292
331
|
type: "ephemeral";
|
|
293
332
|
} | undefined;
|
|
@@ -300,23 +339,32 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
300
339
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
301
340
|
knowledgeFiles: Record<string, string>;
|
|
302
341
|
gitChanges: {
|
|
303
|
-
status: string;
|
|
304
342
|
diff: string;
|
|
343
|
+
status: string;
|
|
305
344
|
diffCached: string;
|
|
306
345
|
lastCommitMessages: string;
|
|
307
346
|
};
|
|
308
347
|
changesSinceLastChat: Record<string, string>;
|
|
309
348
|
shellConfigFiles: Record<string, string>;
|
|
349
|
+
systemInfo: {
|
|
350
|
+
platform: string;
|
|
351
|
+
shell: string;
|
|
352
|
+
nodeVersion: string;
|
|
353
|
+
arch: string;
|
|
354
|
+
homedir: string;
|
|
355
|
+
cpus: number;
|
|
356
|
+
};
|
|
310
357
|
fileVersions: {
|
|
311
358
|
path: string;
|
|
312
359
|
content: string;
|
|
313
360
|
}[][];
|
|
314
361
|
};
|
|
315
362
|
changesAlreadyApplied: {
|
|
363
|
+
type: "patch" | "file";
|
|
316
364
|
content: string;
|
|
317
|
-
type: "file" | "patch";
|
|
318
365
|
filePath: string;
|
|
319
366
|
}[];
|
|
367
|
+
costMode: "lite" | "normal" | "pro";
|
|
320
368
|
authToken?: string | undefined;
|
|
321
369
|
}, {
|
|
322
370
|
type: "user-input";
|
|
@@ -331,16 +379,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
331
379
|
} | undefined;
|
|
332
380
|
} | {
|
|
333
381
|
type: "tool_use";
|
|
334
|
-
name: string;
|
|
335
382
|
id: string;
|
|
383
|
+
name: string;
|
|
336
384
|
input: Record<string, any>;
|
|
337
385
|
cache_control?: {
|
|
338
386
|
type: "ephemeral";
|
|
339
387
|
} | undefined;
|
|
340
388
|
} | {
|
|
341
|
-
content: string;
|
|
342
389
|
type: "tool_result";
|
|
343
390
|
tool_use_id: string;
|
|
391
|
+
content: string;
|
|
344
392
|
cache_control?: {
|
|
345
393
|
type: "ephemeral";
|
|
346
394
|
} | undefined;
|
|
@@ -353,24 +401,33 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
353
401
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
354
402
|
knowledgeFiles: Record<string, string>;
|
|
355
403
|
gitChanges: {
|
|
356
|
-
status: string;
|
|
357
404
|
diff: string;
|
|
405
|
+
status: string;
|
|
358
406
|
diffCached: string;
|
|
359
407
|
lastCommitMessages: string;
|
|
360
408
|
};
|
|
361
409
|
changesSinceLastChat: Record<string, string>;
|
|
362
410
|
shellConfigFiles: Record<string, string>;
|
|
411
|
+
systemInfo: {
|
|
412
|
+
platform: string;
|
|
413
|
+
shell: string;
|
|
414
|
+
nodeVersion: string;
|
|
415
|
+
arch: string;
|
|
416
|
+
homedir: string;
|
|
417
|
+
cpus: number;
|
|
418
|
+
};
|
|
363
419
|
fileVersions: {
|
|
364
420
|
path: string;
|
|
365
421
|
content: string;
|
|
366
422
|
}[][];
|
|
367
423
|
};
|
|
368
424
|
changesAlreadyApplied: {
|
|
425
|
+
type: "patch" | "file";
|
|
369
426
|
content: string;
|
|
370
|
-
type: "file" | "patch";
|
|
371
427
|
filePath: string;
|
|
372
428
|
}[];
|
|
373
429
|
authToken?: string | undefined;
|
|
430
|
+
costMode?: "lite" | "normal" | "pro" | undefined;
|
|
374
431
|
}>, z.ZodObject<{
|
|
375
432
|
type: z.ZodLiteral<"read-files-response">;
|
|
376
433
|
files: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
@@ -395,18 +452,40 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
395
452
|
diffCached: z.ZodString;
|
|
396
453
|
lastCommitMessages: z.ZodString;
|
|
397
454
|
}, "strip", z.ZodTypeAny, {
|
|
398
|
-
status: string;
|
|
399
455
|
diff: string;
|
|
456
|
+
status: string;
|
|
400
457
|
diffCached: string;
|
|
401
458
|
lastCommitMessages: string;
|
|
402
459
|
}, {
|
|
403
|
-
status: string;
|
|
404
460
|
diff: string;
|
|
461
|
+
status: string;
|
|
405
462
|
diffCached: string;
|
|
406
463
|
lastCommitMessages: string;
|
|
407
464
|
}>;
|
|
408
465
|
changesSinceLastChat: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
409
466
|
shellConfigFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
467
|
+
systemInfo: z.ZodObject<{
|
|
468
|
+
platform: z.ZodString;
|
|
469
|
+
shell: z.ZodString;
|
|
470
|
+
nodeVersion: z.ZodString;
|
|
471
|
+
arch: z.ZodString;
|
|
472
|
+
homedir: z.ZodString;
|
|
473
|
+
cpus: z.ZodNumber;
|
|
474
|
+
}, "strip", z.ZodTypeAny, {
|
|
475
|
+
platform: string;
|
|
476
|
+
shell: string;
|
|
477
|
+
nodeVersion: string;
|
|
478
|
+
arch: string;
|
|
479
|
+
homedir: string;
|
|
480
|
+
cpus: number;
|
|
481
|
+
}, {
|
|
482
|
+
platform: string;
|
|
483
|
+
shell: string;
|
|
484
|
+
nodeVersion: string;
|
|
485
|
+
arch: string;
|
|
486
|
+
homedir: string;
|
|
487
|
+
cpus: number;
|
|
488
|
+
}>;
|
|
410
489
|
fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
411
490
|
path: z.ZodString;
|
|
412
491
|
content: z.ZodString;
|
|
@@ -423,13 +502,21 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
423
502
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
424
503
|
knowledgeFiles: Record<string, string>;
|
|
425
504
|
gitChanges: {
|
|
426
|
-
status: string;
|
|
427
505
|
diff: string;
|
|
506
|
+
status: string;
|
|
428
507
|
diffCached: string;
|
|
429
508
|
lastCommitMessages: string;
|
|
430
509
|
};
|
|
431
510
|
changesSinceLastChat: Record<string, string>;
|
|
432
511
|
shellConfigFiles: Record<string, string>;
|
|
512
|
+
systemInfo: {
|
|
513
|
+
platform: string;
|
|
514
|
+
shell: string;
|
|
515
|
+
nodeVersion: string;
|
|
516
|
+
arch: string;
|
|
517
|
+
homedir: string;
|
|
518
|
+
cpus: number;
|
|
519
|
+
};
|
|
433
520
|
fileVersions: {
|
|
434
521
|
path: string;
|
|
435
522
|
content: string;
|
|
@@ -440,13 +527,21 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
440
527
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
441
528
|
knowledgeFiles: Record<string, string>;
|
|
442
529
|
gitChanges: {
|
|
443
|
-
status: string;
|
|
444
530
|
diff: string;
|
|
531
|
+
status: string;
|
|
445
532
|
diffCached: string;
|
|
446
533
|
lastCommitMessages: string;
|
|
447
534
|
};
|
|
448
535
|
changesSinceLastChat: Record<string, string>;
|
|
449
536
|
shellConfigFiles: Record<string, string>;
|
|
537
|
+
systemInfo: {
|
|
538
|
+
platform: string;
|
|
539
|
+
shell: string;
|
|
540
|
+
nodeVersion: string;
|
|
541
|
+
arch: string;
|
|
542
|
+
homedir: string;
|
|
543
|
+
cpus: number;
|
|
544
|
+
};
|
|
450
545
|
fileVersions: {
|
|
451
546
|
path: string;
|
|
452
547
|
content: string;
|
|
@@ -461,13 +556,21 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
461
556
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
462
557
|
knowledgeFiles: Record<string, string>;
|
|
463
558
|
gitChanges: {
|
|
464
|
-
status: string;
|
|
465
559
|
diff: string;
|
|
560
|
+
status: string;
|
|
466
561
|
diffCached: string;
|
|
467
562
|
lastCommitMessages: string;
|
|
468
563
|
};
|
|
469
564
|
changesSinceLastChat: Record<string, string>;
|
|
470
565
|
shellConfigFiles: Record<string, string>;
|
|
566
|
+
systemInfo: {
|
|
567
|
+
platform: string;
|
|
568
|
+
shell: string;
|
|
569
|
+
nodeVersion: string;
|
|
570
|
+
arch: string;
|
|
571
|
+
homedir: string;
|
|
572
|
+
cpus: number;
|
|
573
|
+
};
|
|
471
574
|
fileVersions: {
|
|
472
575
|
path: string;
|
|
473
576
|
content: string;
|
|
@@ -483,13 +586,21 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
483
586
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
484
587
|
knowledgeFiles: Record<string, string>;
|
|
485
588
|
gitChanges: {
|
|
486
|
-
status: string;
|
|
487
589
|
diff: string;
|
|
590
|
+
status: string;
|
|
488
591
|
diffCached: string;
|
|
489
592
|
lastCommitMessages: string;
|
|
490
593
|
};
|
|
491
594
|
changesSinceLastChat: Record<string, string>;
|
|
492
595
|
shellConfigFiles: Record<string, string>;
|
|
596
|
+
systemInfo: {
|
|
597
|
+
platform: string;
|
|
598
|
+
shell: string;
|
|
599
|
+
nodeVersion: string;
|
|
600
|
+
arch: string;
|
|
601
|
+
homedir: string;
|
|
602
|
+
cpus: number;
|
|
603
|
+
};
|
|
493
604
|
fileVersions: {
|
|
494
605
|
path: string;
|
|
495
606
|
content: string;
|
|
@@ -540,14 +651,14 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
540
651
|
fingerprintHash: z.ZodString;
|
|
541
652
|
}, "strip", z.ZodTypeAny, {
|
|
542
653
|
type: "clear-auth-token";
|
|
543
|
-
authToken: string;
|
|
544
654
|
fingerprintId: string;
|
|
655
|
+
authToken: string;
|
|
545
656
|
fingerprintHash: string;
|
|
546
657
|
userId: string;
|
|
547
658
|
}, {
|
|
548
659
|
type: "clear-auth-token";
|
|
549
|
-
authToken: string;
|
|
550
660
|
fingerprintId: string;
|
|
661
|
+
authToken: string;
|
|
551
662
|
fingerprintHash: string;
|
|
552
663
|
userId: string;
|
|
553
664
|
}>, z.ZodObject<{
|
|
@@ -581,16 +692,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
581
692
|
} | undefined;
|
|
582
693
|
} | {
|
|
583
694
|
type: "tool_use";
|
|
584
|
-
name: string;
|
|
585
695
|
id: string;
|
|
696
|
+
name: string;
|
|
586
697
|
input: Record<string, any>;
|
|
587
698
|
cache_control?: {
|
|
588
699
|
type: "ephemeral";
|
|
589
700
|
} | undefined;
|
|
590
701
|
} | {
|
|
591
|
-
content: string;
|
|
592
702
|
type: "tool_result";
|
|
593
703
|
tool_use_id: string;
|
|
704
|
+
content: string;
|
|
594
705
|
cache_control?: {
|
|
595
706
|
type: "ephemeral";
|
|
596
707
|
} | undefined;
|
|
@@ -603,23 +714,32 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
603
714
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
604
715
|
knowledgeFiles: Record<string, string>;
|
|
605
716
|
gitChanges: {
|
|
606
|
-
status: string;
|
|
607
717
|
diff: string;
|
|
718
|
+
status: string;
|
|
608
719
|
diffCached: string;
|
|
609
720
|
lastCommitMessages: string;
|
|
610
721
|
};
|
|
611
722
|
changesSinceLastChat: Record<string, string>;
|
|
612
723
|
shellConfigFiles: Record<string, string>;
|
|
724
|
+
systemInfo: {
|
|
725
|
+
platform: string;
|
|
726
|
+
shell: string;
|
|
727
|
+
nodeVersion: string;
|
|
728
|
+
arch: string;
|
|
729
|
+
homedir: string;
|
|
730
|
+
cpus: number;
|
|
731
|
+
};
|
|
613
732
|
fileVersions: {
|
|
614
733
|
path: string;
|
|
615
734
|
content: string;
|
|
616
735
|
}[][];
|
|
617
736
|
};
|
|
618
737
|
changesAlreadyApplied: {
|
|
738
|
+
type: "patch" | "file";
|
|
619
739
|
content: string;
|
|
620
|
-
type: "file" | "patch";
|
|
621
740
|
filePath: string;
|
|
622
741
|
}[];
|
|
742
|
+
costMode: "lite" | "normal" | "pro";
|
|
623
743
|
authToken?: string | undefined;
|
|
624
744
|
} | {
|
|
625
745
|
type: "read-files-response";
|
|
@@ -633,13 +753,21 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
633
753
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
634
754
|
knowledgeFiles: Record<string, string>;
|
|
635
755
|
gitChanges: {
|
|
636
|
-
status: string;
|
|
637
756
|
diff: string;
|
|
757
|
+
status: string;
|
|
638
758
|
diffCached: string;
|
|
639
759
|
lastCommitMessages: string;
|
|
640
760
|
};
|
|
641
761
|
changesSinceLastChat: Record<string, string>;
|
|
642
762
|
shellConfigFiles: Record<string, string>;
|
|
763
|
+
systemInfo: {
|
|
764
|
+
platform: string;
|
|
765
|
+
shell: string;
|
|
766
|
+
nodeVersion: string;
|
|
767
|
+
arch: string;
|
|
768
|
+
homedir: string;
|
|
769
|
+
cpus: number;
|
|
770
|
+
};
|
|
643
771
|
fileVersions: {
|
|
644
772
|
path: string;
|
|
645
773
|
content: string;
|
|
@@ -660,8 +788,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
660
788
|
fingerprintHash: string;
|
|
661
789
|
} | {
|
|
662
790
|
type: "clear-auth-token";
|
|
663
|
-
authToken: string;
|
|
664
791
|
fingerprintId: string;
|
|
792
|
+
authToken: string;
|
|
665
793
|
fingerprintHash: string;
|
|
666
794
|
userId: string;
|
|
667
795
|
} | {
|
|
@@ -686,16 +814,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
686
814
|
} | undefined;
|
|
687
815
|
} | {
|
|
688
816
|
type: "tool_use";
|
|
689
|
-
name: string;
|
|
690
817
|
id: string;
|
|
818
|
+
name: string;
|
|
691
819
|
input: Record<string, any>;
|
|
692
820
|
cache_control?: {
|
|
693
821
|
type: "ephemeral";
|
|
694
822
|
} | undefined;
|
|
695
823
|
} | {
|
|
696
|
-
content: string;
|
|
697
824
|
type: "tool_result";
|
|
698
825
|
tool_use_id: string;
|
|
826
|
+
content: string;
|
|
699
827
|
cache_control?: {
|
|
700
828
|
type: "ephemeral";
|
|
701
829
|
} | undefined;
|
|
@@ -708,24 +836,33 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
708
836
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
709
837
|
knowledgeFiles: Record<string, string>;
|
|
710
838
|
gitChanges: {
|
|
711
|
-
status: string;
|
|
712
839
|
diff: string;
|
|
840
|
+
status: string;
|
|
713
841
|
diffCached: string;
|
|
714
842
|
lastCommitMessages: string;
|
|
715
843
|
};
|
|
716
844
|
changesSinceLastChat: Record<string, string>;
|
|
717
845
|
shellConfigFiles: Record<string, string>;
|
|
846
|
+
systemInfo: {
|
|
847
|
+
platform: string;
|
|
848
|
+
shell: string;
|
|
849
|
+
nodeVersion: string;
|
|
850
|
+
arch: string;
|
|
851
|
+
homedir: string;
|
|
852
|
+
cpus: number;
|
|
853
|
+
};
|
|
718
854
|
fileVersions: {
|
|
719
855
|
path: string;
|
|
720
856
|
content: string;
|
|
721
857
|
}[][];
|
|
722
858
|
};
|
|
723
859
|
changesAlreadyApplied: {
|
|
860
|
+
type: "patch" | "file";
|
|
724
861
|
content: string;
|
|
725
|
-
type: "file" | "patch";
|
|
726
862
|
filePath: string;
|
|
727
863
|
}[];
|
|
728
864
|
authToken?: string | undefined;
|
|
865
|
+
costMode?: "lite" | "normal" | "pro" | undefined;
|
|
729
866
|
} | {
|
|
730
867
|
type: "read-files-response";
|
|
731
868
|
files: Record<string, string | null>;
|
|
@@ -738,13 +875,21 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
738
875
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
739
876
|
knowledgeFiles: Record<string, string>;
|
|
740
877
|
gitChanges: {
|
|
741
|
-
status: string;
|
|
742
878
|
diff: string;
|
|
879
|
+
status: string;
|
|
743
880
|
diffCached: string;
|
|
744
881
|
lastCommitMessages: string;
|
|
745
882
|
};
|
|
746
883
|
changesSinceLastChat: Record<string, string>;
|
|
747
884
|
shellConfigFiles: Record<string, string>;
|
|
885
|
+
systemInfo: {
|
|
886
|
+
platform: string;
|
|
887
|
+
shell: string;
|
|
888
|
+
nodeVersion: string;
|
|
889
|
+
arch: string;
|
|
890
|
+
homedir: string;
|
|
891
|
+
cpus: number;
|
|
892
|
+
};
|
|
748
893
|
fileVersions: {
|
|
749
894
|
path: string;
|
|
750
895
|
content: string;
|
|
@@ -765,8 +910,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
765
910
|
fingerprintHash: string;
|
|
766
911
|
} | {
|
|
767
912
|
type: "clear-auth-token";
|
|
768
|
-
authToken: string;
|
|
769
913
|
fingerprintId: string;
|
|
914
|
+
authToken: string;
|
|
770
915
|
fingerprintHash: string;
|
|
771
916
|
userId: string;
|
|
772
917
|
} | {
|
|
@@ -869,16 +1014,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
869
1014
|
}>>;
|
|
870
1015
|
}, "strip", z.ZodTypeAny, {
|
|
871
1016
|
type: "tool_use";
|
|
872
|
-
name: string;
|
|
873
1017
|
id: string;
|
|
1018
|
+
name: string;
|
|
874
1019
|
input: Record<string, any>;
|
|
875
1020
|
cache_control?: {
|
|
876
1021
|
type: "ephemeral";
|
|
877
1022
|
} | undefined;
|
|
878
1023
|
}, {
|
|
879
1024
|
type: "tool_use";
|
|
880
|
-
name: string;
|
|
881
1025
|
id: string;
|
|
1026
|
+
name: string;
|
|
882
1027
|
input: Record<string, any>;
|
|
883
1028
|
cache_control?: {
|
|
884
1029
|
type: "ephemeral";
|
|
@@ -895,16 +1040,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
895
1040
|
type: "ephemeral";
|
|
896
1041
|
}>>;
|
|
897
1042
|
}, "strip", z.ZodTypeAny, {
|
|
898
|
-
content: string;
|
|
899
1043
|
type: "tool_result";
|
|
900
1044
|
tool_use_id: string;
|
|
1045
|
+
content: string;
|
|
901
1046
|
cache_control?: {
|
|
902
1047
|
type: "ephemeral";
|
|
903
1048
|
} | undefined;
|
|
904
1049
|
}, {
|
|
905
|
-
content: string;
|
|
906
1050
|
type: "tool_result";
|
|
907
1051
|
tool_use_id: string;
|
|
1052
|
+
content: string;
|
|
908
1053
|
cache_control?: {
|
|
909
1054
|
type: "ephemeral";
|
|
910
1055
|
} | undefined;
|
|
@@ -918,16 +1063,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
918
1063
|
} | undefined;
|
|
919
1064
|
} | {
|
|
920
1065
|
type: "tool_use";
|
|
921
|
-
name: string;
|
|
922
1066
|
id: string;
|
|
1067
|
+
name: string;
|
|
923
1068
|
input: Record<string, any>;
|
|
924
1069
|
cache_control?: {
|
|
925
1070
|
type: "ephemeral";
|
|
926
1071
|
} | undefined;
|
|
927
1072
|
} | {
|
|
928
|
-
content: string;
|
|
929
1073
|
type: "tool_result";
|
|
930
1074
|
tool_use_id: string;
|
|
1075
|
+
content: string;
|
|
931
1076
|
cache_control?: {
|
|
932
1077
|
type: "ephemeral";
|
|
933
1078
|
} | undefined;
|
|
@@ -942,16 +1087,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
942
1087
|
} | undefined;
|
|
943
1088
|
} | {
|
|
944
1089
|
type: "tool_use";
|
|
945
|
-
name: string;
|
|
946
1090
|
id: string;
|
|
1091
|
+
name: string;
|
|
947
1092
|
input: Record<string, any>;
|
|
948
1093
|
cache_control?: {
|
|
949
1094
|
type: "ephemeral";
|
|
950
1095
|
} | undefined;
|
|
951
1096
|
} | {
|
|
952
|
-
content: string;
|
|
953
1097
|
type: "tool_result";
|
|
954
1098
|
tool_use_id: string;
|
|
1099
|
+
content: string;
|
|
955
1100
|
cache_control?: {
|
|
956
1101
|
type: "ephemeral";
|
|
957
1102
|
} | undefined;
|
|
@@ -969,18 +1114,40 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
969
1114
|
diffCached: z.ZodString;
|
|
970
1115
|
lastCommitMessages: z.ZodString;
|
|
971
1116
|
}, "strip", z.ZodTypeAny, {
|
|
972
|
-
status: string;
|
|
973
1117
|
diff: string;
|
|
1118
|
+
status: string;
|
|
974
1119
|
diffCached: string;
|
|
975
1120
|
lastCommitMessages: string;
|
|
976
1121
|
}, {
|
|
977
|
-
status: string;
|
|
978
1122
|
diff: string;
|
|
1123
|
+
status: string;
|
|
979
1124
|
diffCached: string;
|
|
980
1125
|
lastCommitMessages: string;
|
|
981
1126
|
}>;
|
|
982
1127
|
changesSinceLastChat: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
983
1128
|
shellConfigFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1129
|
+
systemInfo: z.ZodObject<{
|
|
1130
|
+
platform: z.ZodString;
|
|
1131
|
+
shell: z.ZodString;
|
|
1132
|
+
nodeVersion: z.ZodString;
|
|
1133
|
+
arch: z.ZodString;
|
|
1134
|
+
homedir: z.ZodString;
|
|
1135
|
+
cpus: z.ZodNumber;
|
|
1136
|
+
}, "strip", z.ZodTypeAny, {
|
|
1137
|
+
platform: string;
|
|
1138
|
+
shell: string;
|
|
1139
|
+
nodeVersion: string;
|
|
1140
|
+
arch: string;
|
|
1141
|
+
homedir: string;
|
|
1142
|
+
cpus: number;
|
|
1143
|
+
}, {
|
|
1144
|
+
platform: string;
|
|
1145
|
+
shell: string;
|
|
1146
|
+
nodeVersion: string;
|
|
1147
|
+
arch: string;
|
|
1148
|
+
homedir: string;
|
|
1149
|
+
cpus: number;
|
|
1150
|
+
}>;
|
|
984
1151
|
fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
985
1152
|
path: z.ZodString;
|
|
986
1153
|
content: z.ZodString;
|
|
@@ -997,13 +1164,21 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
997
1164
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
998
1165
|
knowledgeFiles: Record<string, string>;
|
|
999
1166
|
gitChanges: {
|
|
1000
|
-
status: string;
|
|
1001
1167
|
diff: string;
|
|
1168
|
+
status: string;
|
|
1002
1169
|
diffCached: string;
|
|
1003
1170
|
lastCommitMessages: string;
|
|
1004
1171
|
};
|
|
1005
1172
|
changesSinceLastChat: Record<string, string>;
|
|
1006
1173
|
shellConfigFiles: Record<string, string>;
|
|
1174
|
+
systemInfo: {
|
|
1175
|
+
platform: string;
|
|
1176
|
+
shell: string;
|
|
1177
|
+
nodeVersion: string;
|
|
1178
|
+
arch: string;
|
|
1179
|
+
homedir: string;
|
|
1180
|
+
cpus: number;
|
|
1181
|
+
};
|
|
1007
1182
|
fileVersions: {
|
|
1008
1183
|
path: string;
|
|
1009
1184
|
content: string;
|
|
@@ -1014,13 +1189,21 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1014
1189
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1015
1190
|
knowledgeFiles: Record<string, string>;
|
|
1016
1191
|
gitChanges: {
|
|
1017
|
-
status: string;
|
|
1018
1192
|
diff: string;
|
|
1193
|
+
status: string;
|
|
1019
1194
|
diffCached: string;
|
|
1020
1195
|
lastCommitMessages: string;
|
|
1021
1196
|
};
|
|
1022
1197
|
changesSinceLastChat: Record<string, string>;
|
|
1023
1198
|
shellConfigFiles: Record<string, string>;
|
|
1199
|
+
systemInfo: {
|
|
1200
|
+
platform: string;
|
|
1201
|
+
shell: string;
|
|
1202
|
+
nodeVersion: string;
|
|
1203
|
+
arch: string;
|
|
1204
|
+
homedir: string;
|
|
1205
|
+
cpus: number;
|
|
1206
|
+
};
|
|
1024
1207
|
fileVersions: {
|
|
1025
1208
|
path: string;
|
|
1026
1209
|
content: string;
|
|
@@ -1031,14 +1214,15 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1031
1214
|
filePath: z.ZodString;
|
|
1032
1215
|
content: z.ZodString;
|
|
1033
1216
|
}, "strip", z.ZodTypeAny, {
|
|
1217
|
+
type: "patch" | "file";
|
|
1034
1218
|
content: string;
|
|
1035
|
-
type: "file" | "patch";
|
|
1036
1219
|
filePath: string;
|
|
1037
1220
|
}, {
|
|
1221
|
+
type: "patch" | "file";
|
|
1038
1222
|
content: string;
|
|
1039
|
-
type: "file" | "patch";
|
|
1040
1223
|
filePath: string;
|
|
1041
1224
|
}>, "many">;
|
|
1225
|
+
costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "pro"]>>>;
|
|
1042
1226
|
}, "strip", z.ZodTypeAny, {
|
|
1043
1227
|
type: "user-input";
|
|
1044
1228
|
fingerprintId: string;
|
|
@@ -1052,16 +1236,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1052
1236
|
} | undefined;
|
|
1053
1237
|
} | {
|
|
1054
1238
|
type: "tool_use";
|
|
1055
|
-
name: string;
|
|
1056
1239
|
id: string;
|
|
1240
|
+
name: string;
|
|
1057
1241
|
input: Record<string, any>;
|
|
1058
1242
|
cache_control?: {
|
|
1059
1243
|
type: "ephemeral";
|
|
1060
1244
|
} | undefined;
|
|
1061
1245
|
} | {
|
|
1062
|
-
content: string;
|
|
1063
1246
|
type: "tool_result";
|
|
1064
1247
|
tool_use_id: string;
|
|
1248
|
+
content: string;
|
|
1065
1249
|
cache_control?: {
|
|
1066
1250
|
type: "ephemeral";
|
|
1067
1251
|
} | undefined;
|
|
@@ -1074,23 +1258,32 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1074
1258
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1075
1259
|
knowledgeFiles: Record<string, string>;
|
|
1076
1260
|
gitChanges: {
|
|
1077
|
-
status: string;
|
|
1078
1261
|
diff: string;
|
|
1262
|
+
status: string;
|
|
1079
1263
|
diffCached: string;
|
|
1080
1264
|
lastCommitMessages: string;
|
|
1081
1265
|
};
|
|
1082
1266
|
changesSinceLastChat: Record<string, string>;
|
|
1083
1267
|
shellConfigFiles: Record<string, string>;
|
|
1268
|
+
systemInfo: {
|
|
1269
|
+
platform: string;
|
|
1270
|
+
shell: string;
|
|
1271
|
+
nodeVersion: string;
|
|
1272
|
+
arch: string;
|
|
1273
|
+
homedir: string;
|
|
1274
|
+
cpus: number;
|
|
1275
|
+
};
|
|
1084
1276
|
fileVersions: {
|
|
1085
1277
|
path: string;
|
|
1086
1278
|
content: string;
|
|
1087
1279
|
}[][];
|
|
1088
1280
|
};
|
|
1089
1281
|
changesAlreadyApplied: {
|
|
1282
|
+
type: "patch" | "file";
|
|
1090
1283
|
content: string;
|
|
1091
|
-
type: "file" | "patch";
|
|
1092
1284
|
filePath: string;
|
|
1093
1285
|
}[];
|
|
1286
|
+
costMode: "lite" | "normal" | "pro";
|
|
1094
1287
|
authToken?: string | undefined;
|
|
1095
1288
|
}, {
|
|
1096
1289
|
type: "user-input";
|
|
@@ -1105,16 +1298,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1105
1298
|
} | undefined;
|
|
1106
1299
|
} | {
|
|
1107
1300
|
type: "tool_use";
|
|
1108
|
-
name: string;
|
|
1109
1301
|
id: string;
|
|
1302
|
+
name: string;
|
|
1110
1303
|
input: Record<string, any>;
|
|
1111
1304
|
cache_control?: {
|
|
1112
1305
|
type: "ephemeral";
|
|
1113
1306
|
} | undefined;
|
|
1114
1307
|
} | {
|
|
1115
|
-
content: string;
|
|
1116
1308
|
type: "tool_result";
|
|
1117
1309
|
tool_use_id: string;
|
|
1310
|
+
content: string;
|
|
1118
1311
|
cache_control?: {
|
|
1119
1312
|
type: "ephemeral";
|
|
1120
1313
|
} | undefined;
|
|
@@ -1127,24 +1320,33 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1127
1320
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1128
1321
|
knowledgeFiles: Record<string, string>;
|
|
1129
1322
|
gitChanges: {
|
|
1130
|
-
status: string;
|
|
1131
1323
|
diff: string;
|
|
1324
|
+
status: string;
|
|
1132
1325
|
diffCached: string;
|
|
1133
1326
|
lastCommitMessages: string;
|
|
1134
1327
|
};
|
|
1135
1328
|
changesSinceLastChat: Record<string, string>;
|
|
1136
1329
|
shellConfigFiles: Record<string, string>;
|
|
1330
|
+
systemInfo: {
|
|
1331
|
+
platform: string;
|
|
1332
|
+
shell: string;
|
|
1333
|
+
nodeVersion: string;
|
|
1334
|
+
arch: string;
|
|
1335
|
+
homedir: string;
|
|
1336
|
+
cpus: number;
|
|
1337
|
+
};
|
|
1137
1338
|
fileVersions: {
|
|
1138
1339
|
path: string;
|
|
1139
1340
|
content: string;
|
|
1140
1341
|
}[][];
|
|
1141
1342
|
};
|
|
1142
1343
|
changesAlreadyApplied: {
|
|
1344
|
+
type: "patch" | "file";
|
|
1143
1345
|
content: string;
|
|
1144
|
-
type: "file" | "patch";
|
|
1145
1346
|
filePath: string;
|
|
1146
1347
|
}[];
|
|
1147
1348
|
authToken?: string | undefined;
|
|
1349
|
+
costMode?: "lite" | "normal" | "pro" | undefined;
|
|
1148
1350
|
}>, z.ZodObject<{
|
|
1149
1351
|
type: z.ZodLiteral<"read-files-response">;
|
|
1150
1352
|
files: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
@@ -1169,18 +1371,40 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1169
1371
|
diffCached: z.ZodString;
|
|
1170
1372
|
lastCommitMessages: z.ZodString;
|
|
1171
1373
|
}, "strip", z.ZodTypeAny, {
|
|
1172
|
-
status: string;
|
|
1173
1374
|
diff: string;
|
|
1375
|
+
status: string;
|
|
1174
1376
|
diffCached: string;
|
|
1175
1377
|
lastCommitMessages: string;
|
|
1176
1378
|
}, {
|
|
1177
|
-
status: string;
|
|
1178
1379
|
diff: string;
|
|
1380
|
+
status: string;
|
|
1179
1381
|
diffCached: string;
|
|
1180
1382
|
lastCommitMessages: string;
|
|
1181
1383
|
}>;
|
|
1182
1384
|
changesSinceLastChat: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1183
1385
|
shellConfigFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1386
|
+
systemInfo: z.ZodObject<{
|
|
1387
|
+
platform: z.ZodString;
|
|
1388
|
+
shell: z.ZodString;
|
|
1389
|
+
nodeVersion: z.ZodString;
|
|
1390
|
+
arch: z.ZodString;
|
|
1391
|
+
homedir: z.ZodString;
|
|
1392
|
+
cpus: z.ZodNumber;
|
|
1393
|
+
}, "strip", z.ZodTypeAny, {
|
|
1394
|
+
platform: string;
|
|
1395
|
+
shell: string;
|
|
1396
|
+
nodeVersion: string;
|
|
1397
|
+
arch: string;
|
|
1398
|
+
homedir: string;
|
|
1399
|
+
cpus: number;
|
|
1400
|
+
}, {
|
|
1401
|
+
platform: string;
|
|
1402
|
+
shell: string;
|
|
1403
|
+
nodeVersion: string;
|
|
1404
|
+
arch: string;
|
|
1405
|
+
homedir: string;
|
|
1406
|
+
cpus: number;
|
|
1407
|
+
}>;
|
|
1184
1408
|
fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
1185
1409
|
path: z.ZodString;
|
|
1186
1410
|
content: z.ZodString;
|
|
@@ -1197,13 +1421,21 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1197
1421
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1198
1422
|
knowledgeFiles: Record<string, string>;
|
|
1199
1423
|
gitChanges: {
|
|
1200
|
-
status: string;
|
|
1201
1424
|
diff: string;
|
|
1425
|
+
status: string;
|
|
1202
1426
|
diffCached: string;
|
|
1203
1427
|
lastCommitMessages: string;
|
|
1204
1428
|
};
|
|
1205
1429
|
changesSinceLastChat: Record<string, string>;
|
|
1206
1430
|
shellConfigFiles: Record<string, string>;
|
|
1431
|
+
systemInfo: {
|
|
1432
|
+
platform: string;
|
|
1433
|
+
shell: string;
|
|
1434
|
+
nodeVersion: string;
|
|
1435
|
+
arch: string;
|
|
1436
|
+
homedir: string;
|
|
1437
|
+
cpus: number;
|
|
1438
|
+
};
|
|
1207
1439
|
fileVersions: {
|
|
1208
1440
|
path: string;
|
|
1209
1441
|
content: string;
|
|
@@ -1214,13 +1446,21 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1214
1446
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1215
1447
|
knowledgeFiles: Record<string, string>;
|
|
1216
1448
|
gitChanges: {
|
|
1217
|
-
status: string;
|
|
1218
1449
|
diff: string;
|
|
1450
|
+
status: string;
|
|
1219
1451
|
diffCached: string;
|
|
1220
1452
|
lastCommitMessages: string;
|
|
1221
1453
|
};
|
|
1222
1454
|
changesSinceLastChat: Record<string, string>;
|
|
1223
1455
|
shellConfigFiles: Record<string, string>;
|
|
1456
|
+
systemInfo: {
|
|
1457
|
+
platform: string;
|
|
1458
|
+
shell: string;
|
|
1459
|
+
nodeVersion: string;
|
|
1460
|
+
arch: string;
|
|
1461
|
+
homedir: string;
|
|
1462
|
+
cpus: number;
|
|
1463
|
+
};
|
|
1224
1464
|
fileVersions: {
|
|
1225
1465
|
path: string;
|
|
1226
1466
|
content: string;
|
|
@@ -1235,13 +1475,21 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1235
1475
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1236
1476
|
knowledgeFiles: Record<string, string>;
|
|
1237
1477
|
gitChanges: {
|
|
1238
|
-
status: string;
|
|
1239
1478
|
diff: string;
|
|
1479
|
+
status: string;
|
|
1240
1480
|
diffCached: string;
|
|
1241
1481
|
lastCommitMessages: string;
|
|
1242
1482
|
};
|
|
1243
1483
|
changesSinceLastChat: Record<string, string>;
|
|
1244
1484
|
shellConfigFiles: Record<string, string>;
|
|
1485
|
+
systemInfo: {
|
|
1486
|
+
platform: string;
|
|
1487
|
+
shell: string;
|
|
1488
|
+
nodeVersion: string;
|
|
1489
|
+
arch: string;
|
|
1490
|
+
homedir: string;
|
|
1491
|
+
cpus: number;
|
|
1492
|
+
};
|
|
1245
1493
|
fileVersions: {
|
|
1246
1494
|
path: string;
|
|
1247
1495
|
content: string;
|
|
@@ -1257,13 +1505,21 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1257
1505
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1258
1506
|
knowledgeFiles: Record<string, string>;
|
|
1259
1507
|
gitChanges: {
|
|
1260
|
-
status: string;
|
|
1261
1508
|
diff: string;
|
|
1509
|
+
status: string;
|
|
1262
1510
|
diffCached: string;
|
|
1263
1511
|
lastCommitMessages: string;
|
|
1264
1512
|
};
|
|
1265
1513
|
changesSinceLastChat: Record<string, string>;
|
|
1266
1514
|
shellConfigFiles: Record<string, string>;
|
|
1515
|
+
systemInfo: {
|
|
1516
|
+
platform: string;
|
|
1517
|
+
shell: string;
|
|
1518
|
+
nodeVersion: string;
|
|
1519
|
+
arch: string;
|
|
1520
|
+
homedir: string;
|
|
1521
|
+
cpus: number;
|
|
1522
|
+
};
|
|
1267
1523
|
fileVersions: {
|
|
1268
1524
|
path: string;
|
|
1269
1525
|
content: string;
|
|
@@ -1314,14 +1570,14 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1314
1570
|
fingerprintHash: z.ZodString;
|
|
1315
1571
|
}, "strip", z.ZodTypeAny, {
|
|
1316
1572
|
type: "clear-auth-token";
|
|
1317
|
-
authToken: string;
|
|
1318
1573
|
fingerprintId: string;
|
|
1574
|
+
authToken: string;
|
|
1319
1575
|
fingerprintHash: string;
|
|
1320
1576
|
userId: string;
|
|
1321
1577
|
}, {
|
|
1322
1578
|
type: "clear-auth-token";
|
|
1323
|
-
authToken: string;
|
|
1324
1579
|
fingerprintId: string;
|
|
1580
|
+
authToken: string;
|
|
1325
1581
|
fingerprintHash: string;
|
|
1326
1582
|
userId: string;
|
|
1327
1583
|
}>, z.ZodObject<{
|
|
@@ -1355,16 +1611,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1355
1611
|
} | undefined;
|
|
1356
1612
|
} | {
|
|
1357
1613
|
type: "tool_use";
|
|
1358
|
-
name: string;
|
|
1359
1614
|
id: string;
|
|
1615
|
+
name: string;
|
|
1360
1616
|
input: Record<string, any>;
|
|
1361
1617
|
cache_control?: {
|
|
1362
1618
|
type: "ephemeral";
|
|
1363
1619
|
} | undefined;
|
|
1364
1620
|
} | {
|
|
1365
|
-
content: string;
|
|
1366
1621
|
type: "tool_result";
|
|
1367
1622
|
tool_use_id: string;
|
|
1623
|
+
content: string;
|
|
1368
1624
|
cache_control?: {
|
|
1369
1625
|
type: "ephemeral";
|
|
1370
1626
|
} | undefined;
|
|
@@ -1377,23 +1633,32 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1377
1633
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1378
1634
|
knowledgeFiles: Record<string, string>;
|
|
1379
1635
|
gitChanges: {
|
|
1380
|
-
status: string;
|
|
1381
1636
|
diff: string;
|
|
1637
|
+
status: string;
|
|
1382
1638
|
diffCached: string;
|
|
1383
1639
|
lastCommitMessages: string;
|
|
1384
1640
|
};
|
|
1385
1641
|
changesSinceLastChat: Record<string, string>;
|
|
1386
1642
|
shellConfigFiles: Record<string, string>;
|
|
1643
|
+
systemInfo: {
|
|
1644
|
+
platform: string;
|
|
1645
|
+
shell: string;
|
|
1646
|
+
nodeVersion: string;
|
|
1647
|
+
arch: string;
|
|
1648
|
+
homedir: string;
|
|
1649
|
+
cpus: number;
|
|
1650
|
+
};
|
|
1387
1651
|
fileVersions: {
|
|
1388
1652
|
path: string;
|
|
1389
1653
|
content: string;
|
|
1390
1654
|
}[][];
|
|
1391
1655
|
};
|
|
1392
1656
|
changesAlreadyApplied: {
|
|
1657
|
+
type: "patch" | "file";
|
|
1393
1658
|
content: string;
|
|
1394
|
-
type: "file" | "patch";
|
|
1395
1659
|
filePath: string;
|
|
1396
1660
|
}[];
|
|
1661
|
+
costMode: "lite" | "normal" | "pro";
|
|
1397
1662
|
authToken?: string | undefined;
|
|
1398
1663
|
} | {
|
|
1399
1664
|
type: "read-files-response";
|
|
@@ -1407,13 +1672,21 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1407
1672
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1408
1673
|
knowledgeFiles: Record<string, string>;
|
|
1409
1674
|
gitChanges: {
|
|
1410
|
-
status: string;
|
|
1411
1675
|
diff: string;
|
|
1676
|
+
status: string;
|
|
1412
1677
|
diffCached: string;
|
|
1413
1678
|
lastCommitMessages: string;
|
|
1414
1679
|
};
|
|
1415
1680
|
changesSinceLastChat: Record<string, string>;
|
|
1416
1681
|
shellConfigFiles: Record<string, string>;
|
|
1682
|
+
systemInfo: {
|
|
1683
|
+
platform: string;
|
|
1684
|
+
shell: string;
|
|
1685
|
+
nodeVersion: string;
|
|
1686
|
+
arch: string;
|
|
1687
|
+
homedir: string;
|
|
1688
|
+
cpus: number;
|
|
1689
|
+
};
|
|
1417
1690
|
fileVersions: {
|
|
1418
1691
|
path: string;
|
|
1419
1692
|
content: string;
|
|
@@ -1434,8 +1707,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1434
1707
|
fingerprintHash: string;
|
|
1435
1708
|
} | {
|
|
1436
1709
|
type: "clear-auth-token";
|
|
1437
|
-
authToken: string;
|
|
1438
1710
|
fingerprintId: string;
|
|
1711
|
+
authToken: string;
|
|
1439
1712
|
fingerprintHash: string;
|
|
1440
1713
|
userId: string;
|
|
1441
1714
|
} | {
|
|
@@ -1460,16 +1733,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1460
1733
|
} | undefined;
|
|
1461
1734
|
} | {
|
|
1462
1735
|
type: "tool_use";
|
|
1463
|
-
name: string;
|
|
1464
1736
|
id: string;
|
|
1737
|
+
name: string;
|
|
1465
1738
|
input: Record<string, any>;
|
|
1466
1739
|
cache_control?: {
|
|
1467
1740
|
type: "ephemeral";
|
|
1468
1741
|
} | undefined;
|
|
1469
1742
|
} | {
|
|
1470
|
-
content: string;
|
|
1471
1743
|
type: "tool_result";
|
|
1472
1744
|
tool_use_id: string;
|
|
1745
|
+
content: string;
|
|
1473
1746
|
cache_control?: {
|
|
1474
1747
|
type: "ephemeral";
|
|
1475
1748
|
} | undefined;
|
|
@@ -1482,24 +1755,33 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1482
1755
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1483
1756
|
knowledgeFiles: Record<string, string>;
|
|
1484
1757
|
gitChanges: {
|
|
1485
|
-
status: string;
|
|
1486
1758
|
diff: string;
|
|
1759
|
+
status: string;
|
|
1487
1760
|
diffCached: string;
|
|
1488
1761
|
lastCommitMessages: string;
|
|
1489
1762
|
};
|
|
1490
1763
|
changesSinceLastChat: Record<string, string>;
|
|
1491
1764
|
shellConfigFiles: Record<string, string>;
|
|
1765
|
+
systemInfo: {
|
|
1766
|
+
platform: string;
|
|
1767
|
+
shell: string;
|
|
1768
|
+
nodeVersion: string;
|
|
1769
|
+
arch: string;
|
|
1770
|
+
homedir: string;
|
|
1771
|
+
cpus: number;
|
|
1772
|
+
};
|
|
1492
1773
|
fileVersions: {
|
|
1493
1774
|
path: string;
|
|
1494
1775
|
content: string;
|
|
1495
1776
|
}[][];
|
|
1496
1777
|
};
|
|
1497
1778
|
changesAlreadyApplied: {
|
|
1779
|
+
type: "patch" | "file";
|
|
1498
1780
|
content: string;
|
|
1499
|
-
type: "file" | "patch";
|
|
1500
1781
|
filePath: string;
|
|
1501
1782
|
}[];
|
|
1502
1783
|
authToken?: string | undefined;
|
|
1784
|
+
costMode?: "lite" | "normal" | "pro" | undefined;
|
|
1503
1785
|
} | {
|
|
1504
1786
|
type: "read-files-response";
|
|
1505
1787
|
files: Record<string, string | null>;
|
|
@@ -1512,13 +1794,21 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1512
1794
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
1513
1795
|
knowledgeFiles: Record<string, string>;
|
|
1514
1796
|
gitChanges: {
|
|
1515
|
-
status: string;
|
|
1516
1797
|
diff: string;
|
|
1798
|
+
status: string;
|
|
1517
1799
|
diffCached: string;
|
|
1518
1800
|
lastCommitMessages: string;
|
|
1519
1801
|
};
|
|
1520
1802
|
changesSinceLastChat: Record<string, string>;
|
|
1521
1803
|
shellConfigFiles: Record<string, string>;
|
|
1804
|
+
systemInfo: {
|
|
1805
|
+
platform: string;
|
|
1806
|
+
shell: string;
|
|
1807
|
+
nodeVersion: string;
|
|
1808
|
+
arch: string;
|
|
1809
|
+
homedir: string;
|
|
1810
|
+
cpus: number;
|
|
1811
|
+
};
|
|
1522
1812
|
fileVersions: {
|
|
1523
1813
|
path: string;
|
|
1524
1814
|
content: string;
|
|
@@ -1539,8 +1829,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1539
1829
|
fingerprintHash: string;
|
|
1540
1830
|
} | {
|
|
1541
1831
|
type: "clear-auth-token";
|
|
1542
|
-
authToken: string;
|
|
1543
1832
|
fingerprintId: string;
|
|
1833
|
+
authToken: string;
|
|
1544
1834
|
fingerprintHash: string;
|
|
1545
1835
|
userId: string;
|
|
1546
1836
|
} | {
|
|
@@ -1593,12 +1883,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1593
1883
|
filePath: z.ZodString;
|
|
1594
1884
|
content: z.ZodString;
|
|
1595
1885
|
}, "strip", z.ZodTypeAny, {
|
|
1886
|
+
type: "patch" | "file";
|
|
1596
1887
|
content: string;
|
|
1597
|
-
type: "file" | "patch";
|
|
1598
1888
|
filePath: string;
|
|
1599
1889
|
}, {
|
|
1890
|
+
type: "patch" | "file";
|
|
1600
1891
|
content: string;
|
|
1601
|
-
type: "file" | "patch";
|
|
1602
1892
|
filePath: string;
|
|
1603
1893
|
}>, "many">;
|
|
1604
1894
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -1606,12 +1896,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1606
1896
|
filePath: z.ZodString;
|
|
1607
1897
|
content: z.ZodString;
|
|
1608
1898
|
}, "strip", z.ZodTypeAny, {
|
|
1899
|
+
type: "patch" | "file";
|
|
1609
1900
|
content: string;
|
|
1610
|
-
type: "file" | "patch";
|
|
1611
1901
|
filePath: string;
|
|
1612
1902
|
}, {
|
|
1903
|
+
type: "patch" | "file";
|
|
1613
1904
|
content: string;
|
|
1614
|
-
type: "file" | "patch";
|
|
1615
1905
|
filePath: string;
|
|
1616
1906
|
}>, "many">;
|
|
1617
1907
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -1636,14 +1926,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1636
1926
|
type: "response-complete";
|
|
1637
1927
|
userInputId: string;
|
|
1638
1928
|
changesAlreadyApplied: {
|
|
1929
|
+
type: "patch" | "file";
|
|
1639
1930
|
content: string;
|
|
1640
|
-
type: "file" | "patch";
|
|
1641
1931
|
filePath: string;
|
|
1642
1932
|
}[];
|
|
1643
1933
|
response: string;
|
|
1644
1934
|
changes: {
|
|
1935
|
+
type: "patch" | "file";
|
|
1645
1936
|
content: string;
|
|
1646
|
-
type: "file" | "patch";
|
|
1647
1937
|
filePath: string;
|
|
1648
1938
|
}[];
|
|
1649
1939
|
addedFileVersions: {
|
|
@@ -1661,14 +1951,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1661
1951
|
type: "response-complete";
|
|
1662
1952
|
userInputId: string;
|
|
1663
1953
|
changesAlreadyApplied: {
|
|
1954
|
+
type: "patch" | "file";
|
|
1664
1955
|
content: string;
|
|
1665
|
-
type: "file" | "patch";
|
|
1666
1956
|
filePath: string;
|
|
1667
1957
|
}[];
|
|
1668
1958
|
response: string;
|
|
1669
1959
|
changes: {
|
|
1960
|
+
type: "patch" | "file";
|
|
1670
1961
|
content: string;
|
|
1671
|
-
type: "file" | "patch";
|
|
1672
1962
|
filePath: string;
|
|
1673
1963
|
}[];
|
|
1674
1964
|
addedFileVersions: {
|
|
@@ -1700,12 +1990,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1700
1990
|
id: z.ZodString;
|
|
1701
1991
|
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
1702
1992
|
}, "strip", z.ZodTypeAny, {
|
|
1703
|
-
name: string;
|
|
1704
1993
|
id: string;
|
|
1994
|
+
name: string;
|
|
1705
1995
|
input: Record<string, any>;
|
|
1706
1996
|
}, {
|
|
1707
|
-
name: string;
|
|
1708
1997
|
id: string;
|
|
1998
|
+
name: string;
|
|
1709
1999
|
input: Record<string, any>;
|
|
1710
2000
|
}>;
|
|
1711
2001
|
changes: z.ZodArray<z.ZodObject<{
|
|
@@ -1713,12 +2003,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1713
2003
|
filePath: z.ZodString;
|
|
1714
2004
|
content: z.ZodString;
|
|
1715
2005
|
}, "strip", z.ZodTypeAny, {
|
|
2006
|
+
type: "patch" | "file";
|
|
1716
2007
|
content: string;
|
|
1717
|
-
type: "file" | "patch";
|
|
1718
2008
|
filePath: string;
|
|
1719
2009
|
}, {
|
|
2010
|
+
type: "patch" | "file";
|
|
1720
2011
|
content: string;
|
|
1721
|
-
type: "file" | "patch";
|
|
1722
2012
|
filePath: string;
|
|
1723
2013
|
}>, "many">;
|
|
1724
2014
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -1726,12 +2016,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1726
2016
|
filePath: z.ZodString;
|
|
1727
2017
|
content: z.ZodString;
|
|
1728
2018
|
}, "strip", z.ZodTypeAny, {
|
|
2019
|
+
type: "patch" | "file";
|
|
1729
2020
|
content: string;
|
|
1730
|
-
type: "file" | "patch";
|
|
1731
2021
|
filePath: string;
|
|
1732
2022
|
}, {
|
|
2023
|
+
type: "patch" | "file";
|
|
1733
2024
|
content: string;
|
|
1734
|
-
type: "file" | "patch";
|
|
1735
2025
|
filePath: string;
|
|
1736
2026
|
}>, "many">;
|
|
1737
2027
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -1749,14 +2039,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1749
2039
|
type: "tool-call";
|
|
1750
2040
|
userInputId: string;
|
|
1751
2041
|
changesAlreadyApplied: {
|
|
2042
|
+
type: "patch" | "file";
|
|
1752
2043
|
content: string;
|
|
1753
|
-
type: "file" | "patch";
|
|
1754
2044
|
filePath: string;
|
|
1755
2045
|
}[];
|
|
1756
2046
|
response: string;
|
|
1757
2047
|
changes: {
|
|
2048
|
+
type: "patch" | "file";
|
|
1758
2049
|
content: string;
|
|
1759
|
-
type: "file" | "patch";
|
|
1760
2050
|
filePath: string;
|
|
1761
2051
|
}[];
|
|
1762
2052
|
addedFileVersions: {
|
|
@@ -1765,22 +2055,22 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1765
2055
|
}[];
|
|
1766
2056
|
resetFileVersions: boolean;
|
|
1767
2057
|
data: {
|
|
1768
|
-
name: string;
|
|
1769
2058
|
id: string;
|
|
2059
|
+
name: string;
|
|
1770
2060
|
input: Record<string, any>;
|
|
1771
2061
|
};
|
|
1772
2062
|
}, {
|
|
1773
2063
|
type: "tool-call";
|
|
1774
2064
|
userInputId: string;
|
|
1775
2065
|
changesAlreadyApplied: {
|
|
2066
|
+
type: "patch" | "file";
|
|
1776
2067
|
content: string;
|
|
1777
|
-
type: "file" | "patch";
|
|
1778
2068
|
filePath: string;
|
|
1779
2069
|
}[];
|
|
1780
2070
|
response: string;
|
|
1781
2071
|
changes: {
|
|
2072
|
+
type: "patch" | "file";
|
|
1782
2073
|
content: string;
|
|
1783
|
-
type: "file" | "patch";
|
|
1784
2074
|
filePath: string;
|
|
1785
2075
|
}[];
|
|
1786
2076
|
addedFileVersions: {
|
|
@@ -1789,8 +2079,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1789
2079
|
}[];
|
|
1790
2080
|
resetFileVersions: boolean;
|
|
1791
2081
|
data: {
|
|
1792
|
-
name: string;
|
|
1793
2082
|
id: string;
|
|
2083
|
+
name: string;
|
|
1794
2084
|
input: Record<string, any>;
|
|
1795
2085
|
};
|
|
1796
2086
|
}>, z.ZodObject<{
|
|
@@ -1853,41 +2143,41 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1853
2143
|
fingerprintId: z.ZodString;
|
|
1854
2144
|
fingerprintHash: z.ZodString;
|
|
1855
2145
|
}, "strip", z.ZodTypeAny, {
|
|
1856
|
-
email: string;
|
|
1857
|
-
name: string | null;
|
|
1858
2146
|
id: string;
|
|
1859
|
-
|
|
2147
|
+
name: string | null;
|
|
1860
2148
|
fingerprintId: string;
|
|
2149
|
+
authToken: string;
|
|
2150
|
+
email: string;
|
|
1861
2151
|
fingerprintHash: string;
|
|
1862
2152
|
}, {
|
|
1863
|
-
email: string;
|
|
1864
|
-
name: string | null;
|
|
1865
2153
|
id: string;
|
|
1866
|
-
|
|
2154
|
+
name: string | null;
|
|
1867
2155
|
fingerprintId: string;
|
|
2156
|
+
authToken: string;
|
|
2157
|
+
email: string;
|
|
1868
2158
|
fingerprintHash: string;
|
|
1869
2159
|
}>>;
|
|
1870
2160
|
message: z.ZodString;
|
|
1871
2161
|
}, "strip", z.ZodTypeAny, {
|
|
1872
|
-
message: string;
|
|
1873
2162
|
type: "auth-result";
|
|
2163
|
+
message: string;
|
|
1874
2164
|
user?: {
|
|
1875
|
-
email: string;
|
|
1876
|
-
name: string | null;
|
|
1877
2165
|
id: string;
|
|
1878
|
-
|
|
2166
|
+
name: string | null;
|
|
1879
2167
|
fingerprintId: string;
|
|
2168
|
+
authToken: string;
|
|
2169
|
+
email: string;
|
|
1880
2170
|
fingerprintHash: string;
|
|
1881
2171
|
} | undefined;
|
|
1882
2172
|
}, {
|
|
1883
|
-
message: string;
|
|
1884
2173
|
type: "auth-result";
|
|
2174
|
+
message: string;
|
|
1885
2175
|
user?: {
|
|
1886
|
-
email: string;
|
|
1887
|
-
name: string | null;
|
|
1888
2176
|
id: string;
|
|
1889
|
-
|
|
2177
|
+
name: string | null;
|
|
1890
2178
|
fingerprintId: string;
|
|
2179
|
+
authToken: string;
|
|
2180
|
+
email: string;
|
|
1891
2181
|
fingerprintHash: string;
|
|
1892
2182
|
} | undefined;
|
|
1893
2183
|
}>, z.ZodObject<{
|
|
@@ -1933,11 +2223,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1933
2223
|
type: z.ZodLiteral<"action-error">;
|
|
1934
2224
|
message: z.ZodString;
|
|
1935
2225
|
}, "strip", z.ZodTypeAny, {
|
|
1936
|
-
message: string;
|
|
1937
2226
|
type: "action-error";
|
|
1938
|
-
}, {
|
|
1939
2227
|
message: string;
|
|
2228
|
+
}, {
|
|
1940
2229
|
type: "action-error";
|
|
2230
|
+
message: string;
|
|
1941
2231
|
}>, z.ZodObject<{
|
|
1942
2232
|
type: z.ZodLiteral<"commit-message-response">;
|
|
1943
2233
|
commitMessage: z.ZodString;
|
|
@@ -1970,14 +2260,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1970
2260
|
type: "response-complete";
|
|
1971
2261
|
userInputId: string;
|
|
1972
2262
|
changesAlreadyApplied: {
|
|
2263
|
+
type: "patch" | "file";
|
|
1973
2264
|
content: string;
|
|
1974
|
-
type: "file" | "patch";
|
|
1975
2265
|
filePath: string;
|
|
1976
2266
|
}[];
|
|
1977
2267
|
response: string;
|
|
1978
2268
|
changes: {
|
|
2269
|
+
type: "patch" | "file";
|
|
1979
2270
|
content: string;
|
|
1980
|
-
type: "file" | "patch";
|
|
1981
2271
|
filePath: string;
|
|
1982
2272
|
}[];
|
|
1983
2273
|
addedFileVersions: {
|
|
@@ -2002,14 +2292,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2002
2292
|
type: "tool-call";
|
|
2003
2293
|
userInputId: string;
|
|
2004
2294
|
changesAlreadyApplied: {
|
|
2295
|
+
type: "patch" | "file";
|
|
2005
2296
|
content: string;
|
|
2006
|
-
type: "file" | "patch";
|
|
2007
2297
|
filePath: string;
|
|
2008
2298
|
}[];
|
|
2009
2299
|
response: string;
|
|
2010
2300
|
changes: {
|
|
2301
|
+
type: "patch" | "file";
|
|
2011
2302
|
content: string;
|
|
2012
|
-
type: "file" | "patch";
|
|
2013
2303
|
filePath: string;
|
|
2014
2304
|
}[];
|
|
2015
2305
|
addedFileVersions: {
|
|
@@ -2018,8 +2308,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2018
2308
|
}[];
|
|
2019
2309
|
resetFileVersions: boolean;
|
|
2020
2310
|
data: {
|
|
2021
|
-
name: string;
|
|
2022
2311
|
id: string;
|
|
2312
|
+
name: string;
|
|
2023
2313
|
input: Record<string, any>;
|
|
2024
2314
|
};
|
|
2025
2315
|
} | {
|
|
@@ -2031,14 +2321,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2031
2321
|
isUpToDate: boolean;
|
|
2032
2322
|
latestVersion: string;
|
|
2033
2323
|
} | {
|
|
2034
|
-
message: string;
|
|
2035
2324
|
type: "auth-result";
|
|
2325
|
+
message: string;
|
|
2036
2326
|
user?: {
|
|
2037
|
-
email: string;
|
|
2038
|
-
name: string | null;
|
|
2039
2327
|
id: string;
|
|
2040
|
-
|
|
2328
|
+
name: string | null;
|
|
2041
2329
|
fingerprintId: string;
|
|
2330
|
+
authToken: string;
|
|
2331
|
+
email: string;
|
|
2042
2332
|
fingerprintHash: string;
|
|
2043
2333
|
} | undefined;
|
|
2044
2334
|
} | {
|
|
@@ -2047,8 +2337,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2047
2337
|
fingerprintHash: string;
|
|
2048
2338
|
loginUrl: string;
|
|
2049
2339
|
} | {
|
|
2050
|
-
message: string;
|
|
2051
2340
|
type: "action-error";
|
|
2341
|
+
message: string;
|
|
2052
2342
|
} | {
|
|
2053
2343
|
type: "commit-message-response";
|
|
2054
2344
|
commitMessage: string;
|
|
@@ -2075,14 +2365,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2075
2365
|
type: "response-complete";
|
|
2076
2366
|
userInputId: string;
|
|
2077
2367
|
changesAlreadyApplied: {
|
|
2368
|
+
type: "patch" | "file";
|
|
2078
2369
|
content: string;
|
|
2079
|
-
type: "file" | "patch";
|
|
2080
2370
|
filePath: string;
|
|
2081
2371
|
}[];
|
|
2082
2372
|
response: string;
|
|
2083
2373
|
changes: {
|
|
2374
|
+
type: "patch" | "file";
|
|
2084
2375
|
content: string;
|
|
2085
|
-
type: "file" | "patch";
|
|
2086
2376
|
filePath: string;
|
|
2087
2377
|
}[];
|
|
2088
2378
|
addedFileVersions: {
|
|
@@ -2107,14 +2397,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2107
2397
|
type: "tool-call";
|
|
2108
2398
|
userInputId: string;
|
|
2109
2399
|
changesAlreadyApplied: {
|
|
2400
|
+
type: "patch" | "file";
|
|
2110
2401
|
content: string;
|
|
2111
|
-
type: "file" | "patch";
|
|
2112
2402
|
filePath: string;
|
|
2113
2403
|
}[];
|
|
2114
2404
|
response: string;
|
|
2115
2405
|
changes: {
|
|
2406
|
+
type: "patch" | "file";
|
|
2116
2407
|
content: string;
|
|
2117
|
-
type: "file" | "patch";
|
|
2118
2408
|
filePath: string;
|
|
2119
2409
|
}[];
|
|
2120
2410
|
addedFileVersions: {
|
|
@@ -2123,8 +2413,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2123
2413
|
}[];
|
|
2124
2414
|
resetFileVersions: boolean;
|
|
2125
2415
|
data: {
|
|
2126
|
-
name: string;
|
|
2127
2416
|
id: string;
|
|
2417
|
+
name: string;
|
|
2128
2418
|
input: Record<string, any>;
|
|
2129
2419
|
};
|
|
2130
2420
|
} | {
|
|
@@ -2136,14 +2426,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2136
2426
|
isUpToDate: boolean;
|
|
2137
2427
|
latestVersion: string;
|
|
2138
2428
|
} | {
|
|
2139
|
-
message: string;
|
|
2140
2429
|
type: "auth-result";
|
|
2430
|
+
message: string;
|
|
2141
2431
|
user?: {
|
|
2142
|
-
email: string;
|
|
2143
|
-
name: string | null;
|
|
2144
2432
|
id: string;
|
|
2145
|
-
|
|
2433
|
+
name: string | null;
|
|
2146
2434
|
fingerprintId: string;
|
|
2435
|
+
authToken: string;
|
|
2436
|
+
email: string;
|
|
2147
2437
|
fingerprintHash: string;
|
|
2148
2438
|
} | undefined;
|
|
2149
2439
|
} | {
|
|
@@ -2152,8 +2442,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2152
2442
|
fingerprintHash: string;
|
|
2153
2443
|
loginUrl: string;
|
|
2154
2444
|
} | {
|
|
2155
|
-
message: string;
|
|
2156
2445
|
type: "action-error";
|
|
2446
|
+
message: string;
|
|
2157
2447
|
} | {
|
|
2158
2448
|
type: "commit-message-response";
|
|
2159
2449
|
commitMessage: string;
|
|
@@ -2198,12 +2488,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2198
2488
|
filePath: z.ZodString;
|
|
2199
2489
|
content: z.ZodString;
|
|
2200
2490
|
}, "strip", z.ZodTypeAny, {
|
|
2491
|
+
type: "patch" | "file";
|
|
2201
2492
|
content: string;
|
|
2202
|
-
type: "file" | "patch";
|
|
2203
2493
|
filePath: string;
|
|
2204
2494
|
}, {
|
|
2495
|
+
type: "patch" | "file";
|
|
2205
2496
|
content: string;
|
|
2206
|
-
type: "file" | "patch";
|
|
2207
2497
|
filePath: string;
|
|
2208
2498
|
}>, "many">;
|
|
2209
2499
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -2211,12 +2501,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2211
2501
|
filePath: z.ZodString;
|
|
2212
2502
|
content: z.ZodString;
|
|
2213
2503
|
}, "strip", z.ZodTypeAny, {
|
|
2504
|
+
type: "patch" | "file";
|
|
2214
2505
|
content: string;
|
|
2215
|
-
type: "file" | "patch";
|
|
2216
2506
|
filePath: string;
|
|
2217
2507
|
}, {
|
|
2508
|
+
type: "patch" | "file";
|
|
2218
2509
|
content: string;
|
|
2219
|
-
type: "file" | "patch";
|
|
2220
2510
|
filePath: string;
|
|
2221
2511
|
}>, "many">;
|
|
2222
2512
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -2241,14 +2531,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2241
2531
|
type: "response-complete";
|
|
2242
2532
|
userInputId: string;
|
|
2243
2533
|
changesAlreadyApplied: {
|
|
2534
|
+
type: "patch" | "file";
|
|
2244
2535
|
content: string;
|
|
2245
|
-
type: "file" | "patch";
|
|
2246
2536
|
filePath: string;
|
|
2247
2537
|
}[];
|
|
2248
2538
|
response: string;
|
|
2249
2539
|
changes: {
|
|
2540
|
+
type: "patch" | "file";
|
|
2250
2541
|
content: string;
|
|
2251
|
-
type: "file" | "patch";
|
|
2252
2542
|
filePath: string;
|
|
2253
2543
|
}[];
|
|
2254
2544
|
addedFileVersions: {
|
|
@@ -2266,14 +2556,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2266
2556
|
type: "response-complete";
|
|
2267
2557
|
userInputId: string;
|
|
2268
2558
|
changesAlreadyApplied: {
|
|
2559
|
+
type: "patch" | "file";
|
|
2269
2560
|
content: string;
|
|
2270
|
-
type: "file" | "patch";
|
|
2271
2561
|
filePath: string;
|
|
2272
2562
|
}[];
|
|
2273
2563
|
response: string;
|
|
2274
2564
|
changes: {
|
|
2565
|
+
type: "patch" | "file";
|
|
2275
2566
|
content: string;
|
|
2276
|
-
type: "file" | "patch";
|
|
2277
2567
|
filePath: string;
|
|
2278
2568
|
}[];
|
|
2279
2569
|
addedFileVersions: {
|
|
@@ -2305,12 +2595,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2305
2595
|
id: z.ZodString;
|
|
2306
2596
|
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
2307
2597
|
}, "strip", z.ZodTypeAny, {
|
|
2308
|
-
name: string;
|
|
2309
2598
|
id: string;
|
|
2599
|
+
name: string;
|
|
2310
2600
|
input: Record<string, any>;
|
|
2311
2601
|
}, {
|
|
2312
|
-
name: string;
|
|
2313
2602
|
id: string;
|
|
2603
|
+
name: string;
|
|
2314
2604
|
input: Record<string, any>;
|
|
2315
2605
|
}>;
|
|
2316
2606
|
changes: z.ZodArray<z.ZodObject<{
|
|
@@ -2318,12 +2608,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2318
2608
|
filePath: z.ZodString;
|
|
2319
2609
|
content: z.ZodString;
|
|
2320
2610
|
}, "strip", z.ZodTypeAny, {
|
|
2611
|
+
type: "patch" | "file";
|
|
2321
2612
|
content: string;
|
|
2322
|
-
type: "file" | "patch";
|
|
2323
2613
|
filePath: string;
|
|
2324
2614
|
}, {
|
|
2615
|
+
type: "patch" | "file";
|
|
2325
2616
|
content: string;
|
|
2326
|
-
type: "file" | "patch";
|
|
2327
2617
|
filePath: string;
|
|
2328
2618
|
}>, "many">;
|
|
2329
2619
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -2331,12 +2621,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2331
2621
|
filePath: z.ZodString;
|
|
2332
2622
|
content: z.ZodString;
|
|
2333
2623
|
}, "strip", z.ZodTypeAny, {
|
|
2624
|
+
type: "patch" | "file";
|
|
2334
2625
|
content: string;
|
|
2335
|
-
type: "file" | "patch";
|
|
2336
2626
|
filePath: string;
|
|
2337
2627
|
}, {
|
|
2628
|
+
type: "patch" | "file";
|
|
2338
2629
|
content: string;
|
|
2339
|
-
type: "file" | "patch";
|
|
2340
2630
|
filePath: string;
|
|
2341
2631
|
}>, "many">;
|
|
2342
2632
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -2354,14 +2644,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2354
2644
|
type: "tool-call";
|
|
2355
2645
|
userInputId: string;
|
|
2356
2646
|
changesAlreadyApplied: {
|
|
2647
|
+
type: "patch" | "file";
|
|
2357
2648
|
content: string;
|
|
2358
|
-
type: "file" | "patch";
|
|
2359
2649
|
filePath: string;
|
|
2360
2650
|
}[];
|
|
2361
2651
|
response: string;
|
|
2362
2652
|
changes: {
|
|
2653
|
+
type: "patch" | "file";
|
|
2363
2654
|
content: string;
|
|
2364
|
-
type: "file" | "patch";
|
|
2365
2655
|
filePath: string;
|
|
2366
2656
|
}[];
|
|
2367
2657
|
addedFileVersions: {
|
|
@@ -2370,22 +2660,22 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2370
2660
|
}[];
|
|
2371
2661
|
resetFileVersions: boolean;
|
|
2372
2662
|
data: {
|
|
2373
|
-
name: string;
|
|
2374
2663
|
id: string;
|
|
2664
|
+
name: string;
|
|
2375
2665
|
input: Record<string, any>;
|
|
2376
2666
|
};
|
|
2377
2667
|
}, {
|
|
2378
2668
|
type: "tool-call";
|
|
2379
2669
|
userInputId: string;
|
|
2380
2670
|
changesAlreadyApplied: {
|
|
2671
|
+
type: "patch" | "file";
|
|
2381
2672
|
content: string;
|
|
2382
|
-
type: "file" | "patch";
|
|
2383
2673
|
filePath: string;
|
|
2384
2674
|
}[];
|
|
2385
2675
|
response: string;
|
|
2386
2676
|
changes: {
|
|
2677
|
+
type: "patch" | "file";
|
|
2387
2678
|
content: string;
|
|
2388
|
-
type: "file" | "patch";
|
|
2389
2679
|
filePath: string;
|
|
2390
2680
|
}[];
|
|
2391
2681
|
addedFileVersions: {
|
|
@@ -2394,8 +2684,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2394
2684
|
}[];
|
|
2395
2685
|
resetFileVersions: boolean;
|
|
2396
2686
|
data: {
|
|
2397
|
-
name: string;
|
|
2398
2687
|
id: string;
|
|
2688
|
+
name: string;
|
|
2399
2689
|
input: Record<string, any>;
|
|
2400
2690
|
};
|
|
2401
2691
|
}>, z.ZodObject<{
|
|
@@ -2458,41 +2748,41 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2458
2748
|
fingerprintId: z.ZodString;
|
|
2459
2749
|
fingerprintHash: z.ZodString;
|
|
2460
2750
|
}, "strip", z.ZodTypeAny, {
|
|
2461
|
-
email: string;
|
|
2462
|
-
name: string | null;
|
|
2463
2751
|
id: string;
|
|
2464
|
-
|
|
2752
|
+
name: string | null;
|
|
2465
2753
|
fingerprintId: string;
|
|
2754
|
+
authToken: string;
|
|
2755
|
+
email: string;
|
|
2466
2756
|
fingerprintHash: string;
|
|
2467
2757
|
}, {
|
|
2468
|
-
email: string;
|
|
2469
|
-
name: string | null;
|
|
2470
2758
|
id: string;
|
|
2471
|
-
|
|
2759
|
+
name: string | null;
|
|
2472
2760
|
fingerprintId: string;
|
|
2761
|
+
authToken: string;
|
|
2762
|
+
email: string;
|
|
2473
2763
|
fingerprintHash: string;
|
|
2474
2764
|
}>>;
|
|
2475
2765
|
message: z.ZodString;
|
|
2476
2766
|
}, "strip", z.ZodTypeAny, {
|
|
2477
|
-
message: string;
|
|
2478
2767
|
type: "auth-result";
|
|
2768
|
+
message: string;
|
|
2479
2769
|
user?: {
|
|
2480
|
-
email: string;
|
|
2481
|
-
name: string | null;
|
|
2482
2770
|
id: string;
|
|
2483
|
-
|
|
2771
|
+
name: string | null;
|
|
2484
2772
|
fingerprintId: string;
|
|
2773
|
+
authToken: string;
|
|
2774
|
+
email: string;
|
|
2485
2775
|
fingerprintHash: string;
|
|
2486
2776
|
} | undefined;
|
|
2487
2777
|
}, {
|
|
2488
|
-
message: string;
|
|
2489
2778
|
type: "auth-result";
|
|
2779
|
+
message: string;
|
|
2490
2780
|
user?: {
|
|
2491
|
-
email: string;
|
|
2492
|
-
name: string | null;
|
|
2493
2781
|
id: string;
|
|
2494
|
-
|
|
2782
|
+
name: string | null;
|
|
2495
2783
|
fingerprintId: string;
|
|
2784
|
+
authToken: string;
|
|
2785
|
+
email: string;
|
|
2496
2786
|
fingerprintHash: string;
|
|
2497
2787
|
} | undefined;
|
|
2498
2788
|
}>, z.ZodObject<{
|
|
@@ -2538,11 +2828,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2538
2828
|
type: z.ZodLiteral<"action-error">;
|
|
2539
2829
|
message: z.ZodString;
|
|
2540
2830
|
}, "strip", z.ZodTypeAny, {
|
|
2541
|
-
message: string;
|
|
2542
2831
|
type: "action-error";
|
|
2543
|
-
}, {
|
|
2544
2832
|
message: string;
|
|
2833
|
+
}, {
|
|
2545
2834
|
type: "action-error";
|
|
2835
|
+
message: string;
|
|
2546
2836
|
}>, z.ZodObject<{
|
|
2547
2837
|
type: z.ZodLiteral<"commit-message-response">;
|
|
2548
2838
|
commitMessage: z.ZodString;
|
|
@@ -2575,14 +2865,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2575
2865
|
type: "response-complete";
|
|
2576
2866
|
userInputId: string;
|
|
2577
2867
|
changesAlreadyApplied: {
|
|
2868
|
+
type: "patch" | "file";
|
|
2578
2869
|
content: string;
|
|
2579
|
-
type: "file" | "patch";
|
|
2580
2870
|
filePath: string;
|
|
2581
2871
|
}[];
|
|
2582
2872
|
response: string;
|
|
2583
2873
|
changes: {
|
|
2874
|
+
type: "patch" | "file";
|
|
2584
2875
|
content: string;
|
|
2585
|
-
type: "file" | "patch";
|
|
2586
2876
|
filePath: string;
|
|
2587
2877
|
}[];
|
|
2588
2878
|
addedFileVersions: {
|
|
@@ -2607,14 +2897,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2607
2897
|
type: "tool-call";
|
|
2608
2898
|
userInputId: string;
|
|
2609
2899
|
changesAlreadyApplied: {
|
|
2900
|
+
type: "patch" | "file";
|
|
2610
2901
|
content: string;
|
|
2611
|
-
type: "file" | "patch";
|
|
2612
2902
|
filePath: string;
|
|
2613
2903
|
}[];
|
|
2614
2904
|
response: string;
|
|
2615
2905
|
changes: {
|
|
2906
|
+
type: "patch" | "file";
|
|
2616
2907
|
content: string;
|
|
2617
|
-
type: "file" | "patch";
|
|
2618
2908
|
filePath: string;
|
|
2619
2909
|
}[];
|
|
2620
2910
|
addedFileVersions: {
|
|
@@ -2623,8 +2913,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2623
2913
|
}[];
|
|
2624
2914
|
resetFileVersions: boolean;
|
|
2625
2915
|
data: {
|
|
2626
|
-
name: string;
|
|
2627
2916
|
id: string;
|
|
2917
|
+
name: string;
|
|
2628
2918
|
input: Record<string, any>;
|
|
2629
2919
|
};
|
|
2630
2920
|
} | {
|
|
@@ -2636,14 +2926,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2636
2926
|
isUpToDate: boolean;
|
|
2637
2927
|
latestVersion: string;
|
|
2638
2928
|
} | {
|
|
2639
|
-
message: string;
|
|
2640
2929
|
type: "auth-result";
|
|
2930
|
+
message: string;
|
|
2641
2931
|
user?: {
|
|
2642
|
-
email: string;
|
|
2643
|
-
name: string | null;
|
|
2644
2932
|
id: string;
|
|
2645
|
-
|
|
2933
|
+
name: string | null;
|
|
2646
2934
|
fingerprintId: string;
|
|
2935
|
+
authToken: string;
|
|
2936
|
+
email: string;
|
|
2647
2937
|
fingerprintHash: string;
|
|
2648
2938
|
} | undefined;
|
|
2649
2939
|
} | {
|
|
@@ -2652,8 +2942,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2652
2942
|
fingerprintHash: string;
|
|
2653
2943
|
loginUrl: string;
|
|
2654
2944
|
} | {
|
|
2655
|
-
message: string;
|
|
2656
2945
|
type: "action-error";
|
|
2946
|
+
message: string;
|
|
2657
2947
|
} | {
|
|
2658
2948
|
type: "commit-message-response";
|
|
2659
2949
|
commitMessage: string;
|
|
@@ -2680,14 +2970,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2680
2970
|
type: "response-complete";
|
|
2681
2971
|
userInputId: string;
|
|
2682
2972
|
changesAlreadyApplied: {
|
|
2973
|
+
type: "patch" | "file";
|
|
2683
2974
|
content: string;
|
|
2684
|
-
type: "file" | "patch";
|
|
2685
2975
|
filePath: string;
|
|
2686
2976
|
}[];
|
|
2687
2977
|
response: string;
|
|
2688
2978
|
changes: {
|
|
2979
|
+
type: "patch" | "file";
|
|
2689
2980
|
content: string;
|
|
2690
|
-
type: "file" | "patch";
|
|
2691
2981
|
filePath: string;
|
|
2692
2982
|
}[];
|
|
2693
2983
|
addedFileVersions: {
|
|
@@ -2712,14 +3002,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2712
3002
|
type: "tool-call";
|
|
2713
3003
|
userInputId: string;
|
|
2714
3004
|
changesAlreadyApplied: {
|
|
3005
|
+
type: "patch" | "file";
|
|
2715
3006
|
content: string;
|
|
2716
|
-
type: "file" | "patch";
|
|
2717
3007
|
filePath: string;
|
|
2718
3008
|
}[];
|
|
2719
3009
|
response: string;
|
|
2720
3010
|
changes: {
|
|
3011
|
+
type: "patch" | "file";
|
|
2721
3012
|
content: string;
|
|
2722
|
-
type: "file" | "patch";
|
|
2723
3013
|
filePath: string;
|
|
2724
3014
|
}[];
|
|
2725
3015
|
addedFileVersions: {
|
|
@@ -2728,8 +3018,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2728
3018
|
}[];
|
|
2729
3019
|
resetFileVersions: boolean;
|
|
2730
3020
|
data: {
|
|
2731
|
-
name: string;
|
|
2732
3021
|
id: string;
|
|
3022
|
+
name: string;
|
|
2733
3023
|
input: Record<string, any>;
|
|
2734
3024
|
};
|
|
2735
3025
|
} | {
|
|
@@ -2741,14 +3031,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2741
3031
|
isUpToDate: boolean;
|
|
2742
3032
|
latestVersion: string;
|
|
2743
3033
|
} | {
|
|
2744
|
-
message: string;
|
|
2745
3034
|
type: "auth-result";
|
|
3035
|
+
message: string;
|
|
2746
3036
|
user?: {
|
|
2747
|
-
email: string;
|
|
2748
|
-
name: string | null;
|
|
2749
3037
|
id: string;
|
|
2750
|
-
|
|
3038
|
+
name: string | null;
|
|
2751
3039
|
fingerprintId: string;
|
|
3040
|
+
authToken: string;
|
|
3041
|
+
email: string;
|
|
2752
3042
|
fingerprintHash: string;
|
|
2753
3043
|
} | undefined;
|
|
2754
3044
|
} | {
|
|
@@ -2757,8 +3047,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2757
3047
|
fingerprintHash: string;
|
|
2758
3048
|
loginUrl: string;
|
|
2759
3049
|
} | {
|
|
2760
|
-
message: string;
|
|
2761
3050
|
type: "action-error";
|
|
3051
|
+
message: string;
|
|
2762
3052
|
} | {
|
|
2763
3053
|
type: "commit-message-response";
|
|
2764
3054
|
commitMessage: string;
|