feat(context): Add Prompt Caching to Code Context (CODY-4807) #26172
Annotations
8 errors
Run pnpm build:
vscode/src/prompt-builder/utils.ts#L64
Property 'cache_control' is missing in type '{ speaker: "human"; text: PromptString; file: ContextItem; }' but required in type 'ContextMessage'.
|
Run pnpm build:
vscode/src/edit/prompt/context.ts#L66
Property 'cache_control' is missing in type '{ speaker: "human"; text: PromptString; file: { type: "file"; uri: vscode.Uri; source: ContextItemSource.Editor; range: vscode.Range; }; }' but required in type 'ContextMessage'.
|
Run pnpm build:
vscode/src/edit/prompt/context.ts#L95
Argument of type '{ speaker: "human"; text: PromptString; file: { type: "file"; uri: vscode.Uri; source: ContextItemSource.Editor; range: vscode.Range; }; }' is not assignable to parameter of type 'ContextMessage'.
|
Run pnpm build:
vscode/src/edit/prompt/context.ts#L102
Argument of type '{ speaker: "human"; text: PromptString; file: { type: "file"; uri: vscode.Uri; source: ContextItemSource.Editor; range: vscode.Range; }; }' is not assignable to parameter of type 'ContextMessage'.
|
Run pnpm build:
vscode/src/edit/prompt/context.ts#L121
Type '{ speaker: "human"; text: PromptString; file: { type: "file"; uri: Uri; source: ContextItemSource.Editor; }; }[]' is not assignable to type 'ContextMessage[]'.
|
Run pnpm build:
vscode/src/edit/prompt/context.ts#L128
Type '{ speaker: "human"; text: PromptString; file: { type: "file"; uri: vscode.Uri; source: ContextItemSource.Editor; }; }' does not satisfy the expected type 'ContextMessage'.
|
Run pnpm build:
vscode/src/edit/prompt/context.ts#L138
Type '{ speaker: "human"; text: PromptString; file: { type: "file"; uri: vscode.Uri; source: ContextItemSource.Editor; }; }' does not satisfy the expected type 'ContextMessage'.
|
Run pnpm build
Process completed with exit code 1.
|
Loading