feat: submit file changes to the llm (#11)

This commit is contained in:
Dominic Elm
2024-07-25 17:28:23 +02:00
committed by GitHub
parent a5ed695cb3
commit 2cb3f09947
18 changed files with 415 additions and 57 deletions

15
packages/bolt/types/istextorbinary.d.ts vendored Normal file
View File

@@ -0,0 +1,15 @@
/**
* @note For some reason the types aren't picked up from node_modules so I declared the module here
* with only the function that we use.
*/
declare module 'istextorbinary' {
export interface EncodingOpts {
/** Defaults to 24 */
chunkLength?: number;
/** If not provided, will check the start, beginning, and end */
chunkBegin?: number;
}
export function getEncoding(buffer: Buffer | null, opts?: EncodingOpts): 'utf8' | 'binary' | null;
}