[pull] main from regenrek:main#1
Merged
pull[bot] merged 20 commits intoadmariner:mainfrom Jan 20, 2025
Merged
Conversation
…nfiguration, and improve help documentation. Add modeldb.json to .codefetchignore and refactor argument parsing for better prompt handling.
Reviewer's Guide by SourceryThis pull request introduces several new dependencies and updates existing ones in the pnpm-lock.yaml file. It also includes changes to the markdown.ts file to improve token handling and file processing. Sequence diagram for the new file processing flowsequenceDiagram
participant User
participant CLI
participant Config
participant FileCollector
participant TokenHandler
participant MarkdownGen
User->>CLI: Run command
CLI->>Config: Load configuration
Config->>Config: Merge CLI args
Config->>FileCollector: Initialize with config
FileCollector->>FileCollector: Apply ignore patterns
FileCollector->>TokenHandler: Process files
TokenHandler->>TokenHandler: Count tokens
TokenHandler->>MarkdownGen: Generate content
MarkdownGen->>CLI: Return markdown
CLI->>User: Output result
Class diagram showing the updated configuration structureclassDiagram
class CodefetchConfig {
+string outputFile
+string outputPath
+number maxTokens
+string[] includeFiles
+string[] excludeFiles
+string[] includeDirs
+string[] excludeDirs
+number verbose
+string[] extensions
+boolean defaultIgnore
+boolean gitignore
+number projectTree
+TokenEncoder tokenEncoder
+TokenLimiter tokenLimiter
+string[] trackedModels
+boolean dryRun
+boolean disableLineNumbers
+string defaultPromptFile
+string defaultChat
+Record~string,string~ templateVars
}
class TokenEncoder {
<<enumeration>>
simple
p50k
o200k
cl100k
}
class TokenLimiter {
<<enumeration>>
sequential
truncated
}
CodefetchConfig --> TokenEncoder
CodefetchConfig --> TokenLimiter
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.1)
Can you help keep this open source service alive? 💖 Please sponsor : )
Summary by Sourcery
Update dependencies and add prompt support.
New Features:
--max-tokens.Tests: