codecane 1.0.182 → 1.0.184
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/browser-runner.js +7 -17
- package/dist/browser-runner.js.map +1 -1
- package/dist/chat-storage.js +7 -17
- package/dist/chat-storage.js.map +1 -1
- package/dist/checkpoint-file-manager.d.ts +25 -3
- package/dist/checkpoint-file-manager.js +71 -60
- package/dist/checkpoint-file-manager.js.map +1 -1
- package/dist/checkpoints.d.ts +3 -1
- package/dist/checkpoints.js +25 -37
- package/dist/checkpoints.js.map +1 -1
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +14 -19
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +2 -2
- package/dist/client.js +11 -22
- package/dist/client.js.map +1 -1
- package/dist/code-map/languages.js +7 -17
- package/dist/code-map/languages.js.map +1 -1
- package/dist/code-map/parse.js +7 -17
- package/dist/code-map/parse.js.map +1 -1
- package/dist/code-map/tsconfig.tsbuildinfo +1 -1
- package/dist/common/actions.d.ts +40 -40
- package/dist/common/browser-actions.d.ts +28 -28
- package/dist/common/constants.d.ts +3 -3
- package/dist/common/constants.js +2 -9
- package/dist/common/constants.js.map +1 -1
- package/dist/common/types/agent-state.d.ts +20 -20
- package/dist/common/types/message.d.ts +16 -16
- package/dist/common/util/credentials.d.ts +2 -2
- package/dist/common/util/file.d.ts +4 -4
- package/dist/common/websockets/websocket-schema.d.ts +80 -80
- package/dist/config.js +1 -1
- package/dist/config.js.map +1 -1
- package/dist/create-template-project.js +7 -17
- package/dist/create-template-project.js.map +1 -1
- package/dist/index.js +3 -5
- package/dist/index.js.map +1 -1
- package/dist/menu.js +7 -17
- package/dist/menu.js.map +1 -1
- package/dist/project-files.d.ts +2 -2
- package/dist/project-files.js +7 -17
- package/dist/project-files.js.map +1 -1
- package/dist/tool-handlers.js +7 -17
- package/dist/tool-handlers.js.map +1 -1
- package/dist/update-codebuff.js +26 -26
- package/dist/utils/spinner.js +7 -17
- package/dist/utils/spinner.js.map +1 -1
- package/dist/utils/terminal.js +7 -17
- package/dist/utils/terminal.js.map +1 -1
- package/dist/web-scraper.js +4 -8
- package/dist/web-scraper.js.map +1 -1
- package/dist/worker-script-project-context.js +4 -0
- package/dist/worker-script-project-context.js.map +1 -1
- package/package.json +2 -2
- package/dist/common/logger.d.ts +0 -1
- package/dist/common/logger.js +0 -7
- package/dist/common/logger.js.map +0 -1
- package/dist/common/util/constants.d.ts +0 -1
- package/dist/common/util/constants.js +0 -7
- package/dist/common/util/constants.js.map +0 -1
- package/dist/common/util/helpers.d.ts +0 -1
- package/dist/common/util/helpers.js +0 -6
- package/dist/common/util/helpers.js.map +0 -1
- package/dist/common/util/token-counter.d.ts +0 -3
- package/dist/common/util/token-counter.js +0 -27
- package/dist/common/util/token-counter.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG,GAAG,GAAG,MAAM,CAAA;AAC1B,QAAA,iBAAiB,GAAG,GAAG,GAAG,oBAAoB,CAAA;AAC9C,QAAA,oBAAoB,GAAG,oCAAoC,CAAA;AAE3D,QAAA,qBAAqB,GAAG;IACnC,MAAM;IACN,MAAM;IACN,QAAQ;IACR,KAAK;IACL,KAAK;IACL,SAAS;IACT,cAAc;IACd,MAAM;IACN,YAAY;IACZ,OAAO;IACP,aAAa;IACb,aAAa;IACb,aAAa;IACb,OAAO;IACP,WAAW;IACX,eAAe;IACf,aAAa;IACb,aAAa;IACb,OAAO;IACP,mBAAmB;IACnB,WAAW;CACZ,CAAA;AAEY,QAAA,yBAAyB,GAAG;IACvC,UAAU;IACV,MAAM;IACN,MAAM;IACN,SAAS;IACT,IAAI;IACJ,MAAM;IACN,MAAM;IACN,KAAK;IACL,MAAM;IACN,MAAM;IACN,MAAM;IACN,KAAK;IACL,MAAM;IACN,OAAO;IACP,MAAM;IACN,MAAM;IACN,MAAM;IACN,KAAK;IACL,OAAO;IACP,MAAM;IACN,OAAO;IACP,MAAM;IACN,OAAO;IACP,OAAO;IACP,KAAK;IACL,OAAO;IACP,KAAK;IACL,MAAM;IACN,MAAM;IACN,KAAK;IACL,KAAK;IACL,MAAM;IACN,MAAM;IACN,QAAQ;IACR,OAAO;IACP,MAAM;IACN,IAAI;IACJ,OAAO;IACP,SAAS;IACT,OAAO;IACP,IAAI;CACL,CAAA;AAEY,QAAA,6BAA6B,GAAG,CAAC,CAAA;AACjC,QAAA,QAAQ,GAAG,IAAI,IAAI,CAAC,cAAc,CAAC,CAAA;AACnC,QAAA,mBAAmB,GAAG,EAAE,CAAA;AACxB,QAAA,gBAAgB,GAAG,IAAI,CAAA;AACvB,QAAA,qBAAqB,GAAG,GAAG,CAAA;AAC3B,QAAA,sBAAsB,GAAG,GAAG,CAAA;
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG,GAAG,GAAG,MAAM,CAAA;AAC1B,QAAA,iBAAiB,GAAG,GAAG,GAAG,oBAAoB,CAAA;AAC9C,QAAA,oBAAoB,GAAG,oCAAoC,CAAA;AAE3D,QAAA,qBAAqB,GAAG;IACnC,MAAM;IACN,MAAM;IACN,QAAQ;IACR,KAAK;IACL,KAAK;IACL,SAAS;IACT,cAAc;IACd,MAAM;IACN,YAAY;IACZ,OAAO;IACP,aAAa;IACb,aAAa;IACb,aAAa;IACb,OAAO;IACP,WAAW;IACX,eAAe;IACf,aAAa;IACb,aAAa;IACb,OAAO;IACP,mBAAmB;IACnB,WAAW;CACZ,CAAA;AAEY,QAAA,yBAAyB,GAAG;IACvC,UAAU;IACV,MAAM;IACN,MAAM;IACN,SAAS;IACT,IAAI;IACJ,MAAM;IACN,MAAM;IACN,KAAK;IACL,MAAM;IACN,MAAM;IACN,MAAM;IACN,KAAK;IACL,MAAM;IACN,OAAO;IACP,MAAM;IACN,MAAM;IACN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Schema: z.ZodObject<{
|
|
|
42
42
|
diffCached: z.ZodString;
|
|
43
43
|
lastCommitMessages: z.ZodString;
|
|
44
44
|
}, "strip", z.ZodTypeAny, {
|
|
45
|
-
status: string;
|
|
46
45
|
diff: string;
|
|
46
|
+
status: string;
|
|
47
47
|
diffCached: string;
|
|
48
48
|
lastCommitMessages: string;
|
|
49
49
|
}, {
|
|
50
|
-
status: string;
|
|
51
50
|
diff: string;
|
|
51
|
+
status: string;
|
|
52
52
|
diffCached: string;
|
|
53
53
|
lastCommitMessages: string;
|
|
54
54
|
}>;
|
|
@@ -92,8 +92,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
92
92
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
93
93
|
knowledgeFiles: Record<string, string>;
|
|
94
94
|
gitChanges: {
|
|
95
|
-
status: string;
|
|
96
95
|
diff: string;
|
|
96
|
+
status: string;
|
|
97
97
|
diffCached: string;
|
|
98
98
|
lastCommitMessages: string;
|
|
99
99
|
};
|
|
@@ -118,8 +118,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
118
118
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
119
119
|
knowledgeFiles: Record<string, string>;
|
|
120
120
|
gitChanges: {
|
|
121
|
-
status: string;
|
|
122
121
|
diff: string;
|
|
122
|
+
status: string;
|
|
123
123
|
diffCached: string;
|
|
124
124
|
lastCommitMessages: string;
|
|
125
125
|
};
|
|
@@ -203,15 +203,15 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
203
203
|
type: "ephemeral";
|
|
204
204
|
}>>;
|
|
205
205
|
}, "strip", z.ZodTypeAny, {
|
|
206
|
-
content: string;
|
|
207
206
|
type: "tool_result";
|
|
207
|
+
content: string;
|
|
208
208
|
tool_use_id: string;
|
|
209
209
|
cache_control?: {
|
|
210
210
|
type: "ephemeral";
|
|
211
211
|
} | undefined;
|
|
212
212
|
}, {
|
|
213
|
-
content: string;
|
|
214
213
|
type: "tool_result";
|
|
214
|
+
content: string;
|
|
215
215
|
tool_use_id: string;
|
|
216
216
|
cache_control?: {
|
|
217
217
|
type: "ephemeral";
|
|
@@ -224,12 +224,12 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
224
224
|
data: z.ZodString;
|
|
225
225
|
}, "strip", z.ZodTypeAny, {
|
|
226
226
|
type: "base64";
|
|
227
|
-
media_type: "image/jpeg";
|
|
228
227
|
data: string;
|
|
228
|
+
media_type: "image/jpeg";
|
|
229
229
|
}, {
|
|
230
230
|
type: "base64";
|
|
231
|
-
media_type: "image/jpeg";
|
|
232
231
|
data: string;
|
|
232
|
+
media_type: "image/jpeg";
|
|
233
233
|
}>;
|
|
234
234
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
235
235
|
type: z.ZodLiteral<"ephemeral">;
|
|
@@ -242,8 +242,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
242
242
|
type: "image";
|
|
243
243
|
source: {
|
|
244
244
|
type: "base64";
|
|
245
|
-
media_type: "image/jpeg";
|
|
246
245
|
data: string;
|
|
246
|
+
media_type: "image/jpeg";
|
|
247
247
|
};
|
|
248
248
|
cache_control?: {
|
|
249
249
|
type: "ephemeral";
|
|
@@ -252,8 +252,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
252
252
|
type: "image";
|
|
253
253
|
source: {
|
|
254
254
|
type: "base64";
|
|
255
|
-
media_type: "image/jpeg";
|
|
256
255
|
data: string;
|
|
256
|
+
media_type: "image/jpeg";
|
|
257
257
|
};
|
|
258
258
|
cache_control?: {
|
|
259
259
|
type: "ephemeral";
|
|
@@ -275,8 +275,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
275
275
|
type: "ephemeral";
|
|
276
276
|
} | undefined;
|
|
277
277
|
} | {
|
|
278
|
-
content: string;
|
|
279
278
|
type: "tool_result";
|
|
279
|
+
content: string;
|
|
280
280
|
tool_use_id: string;
|
|
281
281
|
cache_control?: {
|
|
282
282
|
type: "ephemeral";
|
|
@@ -285,8 +285,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
285
285
|
type: "image";
|
|
286
286
|
source: {
|
|
287
287
|
type: "base64";
|
|
288
|
-
media_type: "image/jpeg";
|
|
289
288
|
data: string;
|
|
289
|
+
media_type: "image/jpeg";
|
|
290
290
|
};
|
|
291
291
|
cache_control?: {
|
|
292
292
|
type: "ephemeral";
|
|
@@ -309,8 +309,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
309
309
|
type: "ephemeral";
|
|
310
310
|
} | undefined;
|
|
311
311
|
} | {
|
|
312
|
-
content: string;
|
|
313
312
|
type: "tool_result";
|
|
313
|
+
content: string;
|
|
314
314
|
tool_use_id: string;
|
|
315
315
|
cache_control?: {
|
|
316
316
|
type: "ephemeral";
|
|
@@ -319,8 +319,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
319
319
|
type: "image";
|
|
320
320
|
source: {
|
|
321
321
|
type: "base64";
|
|
322
|
-
media_type: "image/jpeg";
|
|
323
322
|
data: string;
|
|
323
|
+
media_type: "image/jpeg";
|
|
324
324
|
};
|
|
325
325
|
cache_control?: {
|
|
326
326
|
type: "ephemeral";
|
|
@@ -336,8 +336,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
336
336
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
337
337
|
knowledgeFiles: Record<string, string>;
|
|
338
338
|
gitChanges: {
|
|
339
|
-
status: string;
|
|
340
339
|
diff: string;
|
|
340
|
+
status: string;
|
|
341
341
|
diffCached: string;
|
|
342
342
|
lastCommitMessages: string;
|
|
343
343
|
};
|
|
@@ -373,8 +373,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
373
373
|
type: "ephemeral";
|
|
374
374
|
} | undefined;
|
|
375
375
|
} | {
|
|
376
|
-
content: string;
|
|
377
376
|
type: "tool_result";
|
|
377
|
+
content: string;
|
|
378
378
|
tool_use_id: string;
|
|
379
379
|
cache_control?: {
|
|
380
380
|
type: "ephemeral";
|
|
@@ -383,8 +383,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
383
383
|
type: "image";
|
|
384
384
|
source: {
|
|
385
385
|
type: "base64";
|
|
386
|
-
media_type: "image/jpeg";
|
|
387
386
|
data: string;
|
|
387
|
+
media_type: "image/jpeg";
|
|
388
388
|
};
|
|
389
389
|
cache_control?: {
|
|
390
390
|
type: "ephemeral";
|
|
@@ -400,8 +400,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
400
400
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
401
401
|
knowledgeFiles: Record<string, string>;
|
|
402
402
|
gitChanges: {
|
|
403
|
-
status: string;
|
|
404
403
|
diff: string;
|
|
404
|
+
status: string;
|
|
405
405
|
diffCached: string;
|
|
406
406
|
lastCommitMessages: string;
|
|
407
407
|
};
|
|
@@ -437,8 +437,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
437
437
|
type: "ephemeral";
|
|
438
438
|
} | undefined;
|
|
439
439
|
} | {
|
|
440
|
-
content: string;
|
|
441
440
|
type: "tool_result";
|
|
441
|
+
content: string;
|
|
442
442
|
tool_use_id: string;
|
|
443
443
|
cache_control?: {
|
|
444
444
|
type: "ephemeral";
|
|
@@ -447,8 +447,8 @@ export declare const AgentStateSchema: z.ZodObject<{
|
|
|
447
447
|
type: "image";
|
|
448
448
|
source: {
|
|
449
449
|
type: "base64";
|
|
450
|
-
media_type: "image/jpeg";
|
|
451
450
|
data: string;
|
|
451
|
+
media_type: "image/jpeg";
|
|
452
452
|
};
|
|
453
453
|
cache_control?: {
|
|
454
454
|
type: "ephemeral";
|
|
@@ -61,15 +61,15 @@ declare const MessageContentObjectSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
61
61
|
type: "ephemeral";
|
|
62
62
|
}>>;
|
|
63
63
|
}, "strip", z.ZodTypeAny, {
|
|
64
|
-
content: string;
|
|
65
64
|
type: "tool_result";
|
|
65
|
+
content: string;
|
|
66
66
|
tool_use_id: string;
|
|
67
67
|
cache_control?: {
|
|
68
68
|
type: "ephemeral";
|
|
69
69
|
} | undefined;
|
|
70
70
|
}, {
|
|
71
|
-
content: string;
|
|
72
71
|
type: "tool_result";
|
|
72
|
+
content: string;
|
|
73
73
|
tool_use_id: string;
|
|
74
74
|
cache_control?: {
|
|
75
75
|
type: "ephemeral";
|
|
@@ -82,12 +82,12 @@ declare const MessageContentObjectSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
82
82
|
data: z.ZodString;
|
|
83
83
|
}, "strip", z.ZodTypeAny, {
|
|
84
84
|
type: "base64";
|
|
85
|
-
media_type: "image/jpeg";
|
|
86
85
|
data: string;
|
|
86
|
+
media_type: "image/jpeg";
|
|
87
87
|
}, {
|
|
88
88
|
type: "base64";
|
|
89
|
-
media_type: "image/jpeg";
|
|
90
89
|
data: string;
|
|
90
|
+
media_type: "image/jpeg";
|
|
91
91
|
}>;
|
|
92
92
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
93
93
|
type: z.ZodLiteral<"ephemeral">;
|
|
@@ -100,8 +100,8 @@ declare const MessageContentObjectSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
100
100
|
type: "image";
|
|
101
101
|
source: {
|
|
102
102
|
type: "base64";
|
|
103
|
-
media_type: "image/jpeg";
|
|
104
103
|
data: string;
|
|
104
|
+
media_type: "image/jpeg";
|
|
105
105
|
};
|
|
106
106
|
cache_control?: {
|
|
107
107
|
type: "ephemeral";
|
|
@@ -110,8 +110,8 @@ declare const MessageContentObjectSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
110
110
|
type: "image";
|
|
111
111
|
source: {
|
|
112
112
|
type: "base64";
|
|
113
|
-
media_type: "image/jpeg";
|
|
114
113
|
data: string;
|
|
114
|
+
media_type: "image/jpeg";
|
|
115
115
|
};
|
|
116
116
|
cache_control?: {
|
|
117
117
|
type: "ephemeral";
|
|
@@ -181,15 +181,15 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
181
181
|
type: "ephemeral";
|
|
182
182
|
}>>;
|
|
183
183
|
}, "strip", z.ZodTypeAny, {
|
|
184
|
-
content: string;
|
|
185
184
|
type: "tool_result";
|
|
185
|
+
content: string;
|
|
186
186
|
tool_use_id: string;
|
|
187
187
|
cache_control?: {
|
|
188
188
|
type: "ephemeral";
|
|
189
189
|
} | undefined;
|
|
190
190
|
}, {
|
|
191
|
-
content: string;
|
|
192
191
|
type: "tool_result";
|
|
192
|
+
content: string;
|
|
193
193
|
tool_use_id: string;
|
|
194
194
|
cache_control?: {
|
|
195
195
|
type: "ephemeral";
|
|
@@ -202,12 +202,12 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
202
202
|
data: z.ZodString;
|
|
203
203
|
}, "strip", z.ZodTypeAny, {
|
|
204
204
|
type: "base64";
|
|
205
|
-
media_type: "image/jpeg";
|
|
206
205
|
data: string;
|
|
206
|
+
media_type: "image/jpeg";
|
|
207
207
|
}, {
|
|
208
208
|
type: "base64";
|
|
209
|
-
media_type: "image/jpeg";
|
|
210
209
|
data: string;
|
|
210
|
+
media_type: "image/jpeg";
|
|
211
211
|
}>;
|
|
212
212
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
213
213
|
type: z.ZodLiteral<"ephemeral">;
|
|
@@ -220,8 +220,8 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
220
220
|
type: "image";
|
|
221
221
|
source: {
|
|
222
222
|
type: "base64";
|
|
223
|
-
media_type: "image/jpeg";
|
|
224
223
|
data: string;
|
|
224
|
+
media_type: "image/jpeg";
|
|
225
225
|
};
|
|
226
226
|
cache_control?: {
|
|
227
227
|
type: "ephemeral";
|
|
@@ -230,8 +230,8 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
230
230
|
type: "image";
|
|
231
231
|
source: {
|
|
232
232
|
type: "base64";
|
|
233
|
-
media_type: "image/jpeg";
|
|
234
233
|
data: string;
|
|
234
|
+
media_type: "image/jpeg";
|
|
235
235
|
};
|
|
236
236
|
cache_control?: {
|
|
237
237
|
type: "ephemeral";
|
|
@@ -253,8 +253,8 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
253
253
|
type: "ephemeral";
|
|
254
254
|
} | undefined;
|
|
255
255
|
} | {
|
|
256
|
-
content: string;
|
|
257
256
|
type: "tool_result";
|
|
257
|
+
content: string;
|
|
258
258
|
tool_use_id: string;
|
|
259
259
|
cache_control?: {
|
|
260
260
|
type: "ephemeral";
|
|
@@ -263,8 +263,8 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
263
263
|
type: "image";
|
|
264
264
|
source: {
|
|
265
265
|
type: "base64";
|
|
266
|
-
media_type: "image/jpeg";
|
|
267
266
|
data: string;
|
|
267
|
+
media_type: "image/jpeg";
|
|
268
268
|
};
|
|
269
269
|
cache_control?: {
|
|
270
270
|
type: "ephemeral";
|
|
@@ -287,8 +287,8 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
287
287
|
type: "ephemeral";
|
|
288
288
|
} | undefined;
|
|
289
289
|
} | {
|
|
290
|
-
content: string;
|
|
291
290
|
type: "tool_result";
|
|
291
|
+
content: string;
|
|
292
292
|
tool_use_id: string;
|
|
293
293
|
cache_control?: {
|
|
294
294
|
type: "ephemeral";
|
|
@@ -297,8 +297,8 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
297
297
|
type: "image";
|
|
298
298
|
source: {
|
|
299
299
|
type: "base64";
|
|
300
|
-
media_type: "image/jpeg";
|
|
301
300
|
data: string;
|
|
301
|
+
media_type: "image/jpeg";
|
|
302
302
|
};
|
|
303
303
|
cache_control?: {
|
|
304
304
|
type: "ephemeral";
|
|
@@ -7,15 +7,15 @@ export declare const userSchema: z.ZodObject<{
|
|
|
7
7
|
fingerprintId: z.ZodString;
|
|
8
8
|
fingerprintHash: z.ZodString;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
email: string;
|
|
11
10
|
name: string | null;
|
|
11
|
+
email: string;
|
|
12
12
|
id: string;
|
|
13
13
|
fingerprintId: string;
|
|
14
14
|
authToken: string;
|
|
15
15
|
fingerprintHash: string;
|
|
16
16
|
}, {
|
|
17
|
-
email: string;
|
|
18
17
|
name: string | null;
|
|
18
|
+
email: string;
|
|
19
19
|
id: string;
|
|
20
20
|
fingerprintId: string;
|
|
21
21
|
authToken: string;
|
|
@@ -38,13 +38,13 @@ export declare const ProjectFileContextSchema: z.ZodObject<{
|
|
|
38
38
|
diffCached: z.ZodString;
|
|
39
39
|
lastCommitMessages: z.ZodString;
|
|
40
40
|
}, "strip", z.ZodTypeAny, {
|
|
41
|
-
status: string;
|
|
42
41
|
diff: string;
|
|
42
|
+
status: string;
|
|
43
43
|
diffCached: string;
|
|
44
44
|
lastCommitMessages: string;
|
|
45
45
|
}, {
|
|
46
|
-
status: string;
|
|
47
46
|
diff: string;
|
|
47
|
+
status: string;
|
|
48
48
|
diffCached: string;
|
|
49
49
|
lastCommitMessages: string;
|
|
50
50
|
}>;
|
|
@@ -88,8 +88,8 @@ export declare const ProjectFileContextSchema: z.ZodObject<{
|
|
|
88
88
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
89
89
|
knowledgeFiles: Record<string, string>;
|
|
90
90
|
gitChanges: {
|
|
91
|
-
status: string;
|
|
92
91
|
diff: string;
|
|
92
|
+
status: string;
|
|
93
93
|
diffCached: string;
|
|
94
94
|
lastCommitMessages: string;
|
|
95
95
|
};
|
|
@@ -114,8 +114,8 @@ export declare const ProjectFileContextSchema: z.ZodObject<{
|
|
|
114
114
|
fileTokenScores: Record<string, Record<string, number>>;
|
|
115
115
|
knowledgeFiles: Record<string, string>;
|
|
116
116
|
gitChanges: {
|
|
117
|
-
status: string;
|
|
118
117
|
diff: string;
|
|
118
|
+
status: string;
|
|
119
119
|
diffCached: string;
|
|
120
120
|
lastCommitMessages: string;
|
|
121
121
|
};
|