MCPcopy Create free account

hub / github.com/Stevenic/codepilot / functions

Functions96 in github.com/Stevenic/codepilot

↓ 19 callersMethodoutput
* Renders the given text as general output text. * @param output Text to render. * @param quote Optional. Quote to use for strings. Defaults
lib/internals/Colorize.js:42
↓ 19 callersMethodoutput
* Renders the given text as general output text. * @param output Text to render. * @param quote Optional. Quote to use for strings. Defaults
src/internals/Colorize.ts:42
↓ 11 callersMethodisCreated
* Returns true if the index has been created.
lib/CodeIndex.js:175
↓ 11 callersMethodisCreated
* Returns true if the index has been created.
src/CodeIndex.ts:224
↓ 7 callersMethodhasKeys
* Returns whether a `vectra.keys` file exists for the index.
lib/CodeIndex.js:167
↓ 7 callersMethodhasKeys
* Returns whether a `vectra.keys` file exists for the index.
src/CodeIndex.ts:217
↓ 5 callersMethodload
* Loads the current code index.
lib/CodeIndex.js:184
↓ 5 callersMethodload
* Loads the current code index.
src/CodeIndex.ts:233
↓ 4 callersMethodtitle
* Renders the given text as a title. * @param title Title text to render.
lib/internals/Colorize.js:80
↓ 4 callersMethodtitle
* Renders the given text as a title. * @param title Title text to render.
src/internals/Colorize.ts:79
↓ 3 callersMethoderror
* Renders the given text as error text. * @param error Error text to render.
lib/internals/Colorize.js:21
↓ 3 callersMethoderror
* Renders the given text as error text. * @param error Error text to render.
src/internals/Colorize.ts:20
↓ 3 callersFunctionstep
(result)
lib/CodeIndex.js:30
↓ 3 callersFunctionstep
(result)
lib/SourceCodeSection.js:7
↓ 3 callersFunctionstep
(result)
lib/Codepilot.js:30
↓ 3 callersFunctionstep
(result)
lib/codepilot-cli.js:7
↓ 3 callersFunctionstep
(result)
lib/functions/createFile.js:30
↓ 2 callersFunctiongetOptimalConfig
(model, sources, extensions)
lib/codepilot-cli.js:271
↓ 2 callersFunctiongetOptimalConfig
(model: string, sources: string[], extensions: string[])
src/codepilot-cli.ts:265
↓ 2 callersMethodrebuild
* Rebuilds the code index.
lib/CodeIndex.js:229
↓ 2 callersMethodrebuild
* Rebuilds the code index.
src/CodeIndex.ts:282
↓ 2 callersMethodupsertDocument
* Adds a document to the index. * @param path Path to the document to add.
lib/CodeIndex.js:348
↓ 2 callersMethodupsertDocument
* Adds a document to the index. * @param path Path to the document to add.
src/CodeIndex.ts:413
↓ 1 callersMethodadd
* Adds sources and extensions to the index. * @param config The configuration containing the sources and extensions to add.
lib/CodeIndex.js:80
↓ 1 callersMethodadd
* Adds sources and extensions to the index. * @param config The configuration containing the sources and extensions to add.
src/CodeIndex.ts:121
↓ 1 callersFunctionaddCreateFile
(codepilot: Codepilot)
src/functions/createFile.ts:32
↓ 1 callersMethodaddFunction
* Registers a new function to be used in the chat completion. * @remarks * This is used to add new capabilities to Codepilot's chat feature
lib/Codepilot.js:67
↓ 1 callersMethodaddFunction
* Registers a new function to be used in the chat completion. * @remarks * This is used to add new capabilities to Codepilot's chat feature
src/Codepilot.ts:38
↓ 1 callersFunctionadopt
(value)
lib/CodeIndex.js:26
↓ 1 callersFunctionadopt
(value)
lib/SourceCodeSection.js:3
↓ 1 callersFunctionadopt
(value)
lib/Codepilot.js:26
↓ 1 callersFunctionadopt
(value)
lib/codepilot-cli.js:3
↓ 1 callersFunctionadopt
(value)
lib/functions/createFile.js:26
↓ 1 callersMethodchat
* Starts the chat session and listens for user input.
lib/Codepilot.js:74
↓ 1 callersMethodchat
* Starts the chat session and listens for user input.
src/Codepilot.ts:46
↓ 1 callersMethodcreate
* Creates a new code index. * @param keys OpenAI keys to use. * @param config Source code index configuration.
lib/CodeIndex.js:122
↓ 1 callersMethodcreate
* Creates a new code index. * @param keys OpenAI keys to use. * @param config Source code index configuration.
src/CodeIndex.ts:168
↓ 1 callersMethodcreateModel
()
lib/Codepilot.js:157
↓ 1 callersMethodcreateModel
()
src/Codepilot.ts:126
↓ 1 callersMethoddelete
* Deletes the current code index.
lib/CodeIndex.js:155
↓ 1 callersMethoddelete
* Deletes the current code index.
src/CodeIndex.ts:205
↓ 1 callersMethodgetSectionOptions
(maxTokens)
lib/SourceCodeSection.js:68
↓ 1 callersMethodgetSectionOptions
(maxTokens: number)
src/SourceCodeSection.ts:65
↓ 1 callersMethodhighlight
* Renders the given text with a highlight to call attention. * @param message Text to highlight.
lib/internals/Colorize.js:33
↓ 1 callersMethodhighlight
* Renders the given text with a highlight to call attention. * @param message Text to highlight.
src/internals/Colorize.ts:32
↓ 1 callersMethodprogress
* Renders the given text as progress text. * @param message Progress text to render.
lib/internals/Colorize.js:73
↓ 1 callersMethodprogress
* Renders the given text as progress text. * @param message Progress text to render.
src/internals/Colorize.ts:71
↓ 1 callersMethodquery
* Queries the code index. * @param query Text to query the index with. * @param options Optional. Options to use when querying the index.
lib/CodeIndex.js:212
↓ 1 callersMethodquery
* Queries the code index. * @param query Text to query the index with. * @param options Optional. Options to use when querying the index.
src/CodeIndex.ts:264
↓ 1 callersFunctionregisterFunctions
(codepilot: Codepilot)
src/functions/index.ts:7
↓ 1 callersMethodremove
* Removes sources and extensions from the index. * @param config The configuration containing the sources and extensions to remove.
lib/CodeIndex.js:268
↓ 1 callersMethodremove
* Removes sources and extensions from the index. * @param config The configuration containing the sources and extensions to remove.
src/CodeIndex.ts:325
↓ 1 callersMethodsetConfig
* Updates the code index configuration. * @param config Settings to update.
lib/CodeIndex.js:313
↓ 1 callersMethodsetConfig
* Updates the code index configuration. * @param config Settings to update.
src/CodeIndex.ts:374
↓ 1 callersMethodsetKeys
* Updates the OpenAI keys for the index. * @param keys Keys to use.
lib/CodeIndex.js:299
↓ 1 callersMethodsetKeys
* Updates the OpenAI keys for the index. * @param keys Keys to use.
src/CodeIndex.ts:360
FunctionaddCreateFile
* Adds the createFile function to the codepilot instance.
lib/functions/createFile.js:63
MethodcompletePrompt
(input)
lib/Codepilot.js:99
MethodcompletePrompt
(input: string)
src/Codepilot.ts:71
Methodconfig
* Gets the current code index configuration.
lib/CodeIndex.js:60
Methodconfig
* Gets the current code index configuration.
src/CodeIndex.ts:97
Methodconstructor
* Creates a new 'CodeIndex' instance. * @param folderPath Optional. The path to the folder containing the index. Defaults to '.codepilot'.
lib/CodeIndex.js:54
Methodconstructor
* Creates a new 'SourceCodeSection' instance. * @param index Code index to use. * @param tokens Optional. Sizing strategy for this section.
lib/SourceCodeSection.js:24
Methodconstructor
* Creates a new `Codepilot` instance. * @param index The code index to use.
lib/Codepilot.js:49
Methodconstructor
* Creates a new `Codepilot` instance. * @param index The code index to use.
src/Codepilot.ts:19
Methodconstructor
* Creates a new 'SourceCodeSection' instance. * @param index Code index to use. * @param tokens Optional. Sizing strategy for this section.
src/SourceCodeSection.ts:16
Methodconstructor
* Creates a new 'CodeIndex' instance. * @param folderPath Optional. The path to the folder containing the index. Defaults to '.codepilot'.
src/CodeIndex.ts:90
MethodfolderPath
* Gets the path to the folder containing the index.
lib/CodeIndex.js:66
MethodfolderPath
* Gets the path to the folder containing the index.
src/CodeIndex.ts:104
Functionfulfilled
(value)
lib/CodeIndex.js:28
Functionfulfilled
(value)
lib/SourceCodeSection.js:5
Functionfulfilled
(value)
lib/Codepilot.js:28
Functionfulfilled
(value)
lib/codepilot-cli.js:5
Functionfulfilled
(value)
lib/functions/createFile.js:28
Methodindex
* Gets the code index.
lib/Codepilot.js:56
Methodindex
* Gets the code index.
src/Codepilot.ts:26
Methodkeys
* Gets the current OpenAI keys.
lib/CodeIndex.js:72
Methodkeys
* Gets the current OpenAI keys.
src/CodeIndex.ts:111
FunctionregisterFunctions
* Registers all functions with the codepilot instance.
lib/functions/index.js:8
Functionrejected
(value)
lib/CodeIndex.js:29
Functionrejected
(value)
lib/SourceCodeSection.js:6
Functionrejected
(value)
lib/Codepilot.js:29
Functionrejected
(value)
lib/codepilot-cli.js:6
Functionrejected
(value)
lib/functions/createFile.js:29
MethodrenderAsMessages
(memory, functions, tokenizer, maxTokens)
lib/SourceCodeSection.js:28
MethodrenderAsMessages
(memory: PromptMemory, functions: PromptFunctions, tokenizer: Tokenizer, maxTokens: number)
src/SourceCodeSection.ts:21
MethodreplaceLine
* Replaces the current line with the given text. * @param text The text to replace the current line with.
lib/internals/Colorize.js:14
MethodreplaceLine
* Replaces the current line with the given text. * @param text The text to replace the current line with.
src/internals/Colorize.ts:12
Methodrespond
(botMessage)
lib/Codepilot.js:97
Methodrespond
(botMessage: string)
src/Codepilot.ts:70
Functionrun
* Defines the commands supported by the Codepilot CLI.
lib/codepilot-cli.js:25
Functionrun
()
src/codepilot-cli.ts:12
Methodvalue
* Renders the given text as a value. * @param field Field name to render. * @param value Value to render. * @param units Optional. Unit
lib/internals/Colorize.js:89
Methodvalue
* Renders the given text as a value. * @param field Field name to render. * @param value Value to render. * @param units Optional. Unit
src/internals/Colorize.ts:89
Methodwarning
* Renders the given text as a warning. * @param warning Warning text to render.
lib/internals/Colorize.js:96
Methodwarning
* Renders the given text as a warning. * @param warning Warning text to render.
src/internals/Colorize.ts:97