continue-custom/core
2023-12-08 15:01:13 -08:00
..
.vscode 🚧 basic chat working with free trial 2023-12-07 00:06:19 -08:00
config 🚧 context providers 2023-12-08 12:00:39 -08:00
context 🚧 context providers 2023-12-08 15:01:13 -08:00
ide 🚧 context providers 2023-12-08 15:01:13 -08:00
llm 🚧 context providers 2023-12-08 15:01:13 -08:00
jest.config.js 🚧 basic chat working with free trial 2023-12-07 00:06:19 -08:00
package-lock.json 🚧 context providers 2023-12-08 15:01:13 -08:00
package.json 🚧 context providers 2023-12-08 15:01:13 -08:00
README.md ⚡️ refactoring redux store 2023-12-06 10:43:03 -08:00
tsconfig.json 🚧 context providers 2023-12-08 15:01:13 -08:00

Continue Core

The Continue Core contains functionality that can be shared across web, VS Code, or Node.js server. It is written in TypeScript and contains much of the functionality that was previously inside of the legacy Continue Python Server.

  • LLM class
  • Token counting and pruning
  • Prompt templates
  • Prompts
  • Loading config file

Since it's written in Typescript, it can be placed directly in the React app without needing to communicate with a server.

Reasons to avoid Python

  • Circular imports
  • No real type checking
  • Fake async
  • snake_case
  • Doesn't run in browser

TODO:

Little stuff:

  • create_client_session -> createAxiosConfig from requestOptions

Imports

  • tiktoken
  • posthog
  • chevron

Repetitive

  • LLM subclasses
  • Slash commands
  • Context providers

The important thing is to build backward. Your goal should be to add functionality, not to rebuild what you previously had.

  1. Get text streaming from an LLM. One LLM class. FreeTrial.
    • After: complete rest of LLM classes
  2. /test slash command is a good one to start with
    • Then the others. but don't need all of them. keep it simple
  3. Diff context provider
    • Subgoal: set up IDEProtocol to work over message passing
  4. File context provider
    • Need to figure out how to do search
  5. History and other storage of state. Do it through the IDE protocol probably? Still want local files.