Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow adding header and footer, autoconfirm, add js-tiktoken, add faster check for going to file-only mode #343

Open
wants to merge 10 commits into
base: dev
Choose a base branch
from

Commits on May 16, 2024

  1. chore: update .gitignore to include Makefile

    refactor: remove unused fs operations from esbuild.config.js
    chore: update dependencies and add overrides in package.json
    docs: update commit message guidelines in prompts.ts
    refactor: switch to js-tiktoken for token encoding in tokenCount.ts
    elee1766 committed May 16, 2024
    Configuration menu
    Copy the full SHA
    dc13ee3 View commit details
    Browse the repository at this point in the history
  2. style: reformat code for better readability and consistency

    chore(config): add new config keys for prompt header and footer
    
    style: reformat code for better readability and consistency across files
    
    refactor(prompts.ts): restructure prompt generation for clarity and maintainability
    
    chore: update dependencies and improve environment variable handling
    
    style(server.ts): rename port variable to uppercase for consistency and clarity
    
    chore(server.ts): add support for configurable port via process.env.PORT
    
    style(engine.ts, tokenCount.ts, version.ts): standardize import quotes to single quotes for consistency
    elee1766 committed May 16, 2024
    Configuration menu
    Copy the full SHA
    3ff4103 View commit details
    Browse the repository at this point in the history
  3. build(esbuild.config.js): add step to copy tiktoken_bg.wasm to output…

    … directory
    
    chore(package.json): add tiktoken dependency
    
    style(config.ts, prompts.ts): fix formatting and indentation issues
    
    refactor(tokenCount.ts): add native token counting using Tiktoken and conditional export based on environment variable
    elee1766 committed May 16, 2024
    Configuration menu
    Copy the full SHA
    53f4080 View commit details
    Browse the repository at this point in the history
  4. build(esbuild.config.js): add wasm plugin to handle WebAssembly files

    chore(commit.ts): add check for empty remotes array before selecting remote
    
    perf(tokenCount.ts): move encoding initialization inside function to reduce memory usage
    elee1766 committed May 16, 2024
    Configuration menu
    Copy the full SHA
    4e941d9 View commit details
    Browse the repository at this point in the history
  5. fix(commit.ts): change condition to prompt remote selection only if m…

    …ore than one remote is available
    elee1766 committed May 16, 2024
    Configuration menu
    Copy the full SHA
    d240409 View commit details
    Browse the repository at this point in the history
  6. feat(commit): add config option to always stage all files before commit

    Introduce OCO_GIT_STAGE_ALWAYS config key to bypass user confirmation
    for staging all files. This enhances automation and streamlines the
    commit process when the config is set to true.
    elee1766 committed May 16, 2024
    Configuration menu
    Copy the full SHA
    bf0c275 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f0cfdf1 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    ea42081 View commit details
    Browse the repository at this point in the history
  9. chore(package.json): include out/tiktoken_bg.wasm in files array

    refactor(commit.ts): add auto-confirmation for commit and stage actions
    
    refactor(config.ts): rename OCO_GIT_STAGE_ALWAYS to OCO_AUTOCONFIRM_STAGE and add OCO_AUTOCONFIRM_COMMIT
    
    fix(openAi.ts): handle undefined message content in token count
    
    style(prompts.ts): move OCO_PROMPT_FOOTER to the end of the prompt
    
    style(mergeDiffs.ts): adjust import statement and spacing in token count check
    elee1766 committed May 16, 2024
    Configuration menu
    Copy the full SHA
    aa6b7e6 View commit details
    Browse the repository at this point in the history

Commits on May 17, 2024

  1. Configuration menu
    Copy the full SHA
    7a69cce View commit details
    Browse the repository at this point in the history