-
Notifications
You must be signed in to change notification settings - Fork 3
refactor: replace WithRemotePaths with WithSearchPaths in coding context #126
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
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
8fdfd79
refactor: replace WithRemotePaths with WithSearchPaths in coding context
alexec ba3aba7
refactor: rename remotePaths to searchPaths and update main function
alexec eac6681
ok
alexec f537a72
feat: add CLAUDE.local.md path to rulePaths and format code with gofmt
alexec 11c5e5a
feat: add manifest URL support for dynamic search paths
alexec cd41d10
Apply suggestion from @Copilot
alexec c679ce4
Update pkg/codingcontext/context.go
alexec 79252e8
Update pkg/codingcontext/context.go
alexec 8659ec4
Update Makefile
alexec ad9535e
Update pkg/codingcontext/paths.go
alexec b24bfb8
Update pkg/codingcontext/context.go
alexec File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -24,17 +24,19 @@ func main() { | |||||
| var agent codingcontext.Agent | ||||||
| params := make(codingcontext.Params) | ||||||
| includes := make(codingcontext.Selectors) | ||||||
| var remotePaths []string | ||||||
| var searchPaths []string | ||||||
| var manifestURL string | ||||||
|
|
||||||
| flag.StringVar(&workDir, "C", ".", "Change to directory before doing anything.") | ||||||
| flag.BoolVar(&resume, "r", false, "Resume mode: skip outputting rules and select task with 'resume: true' in frontmatter.") | ||||||
| flag.Var(&agent, "a", "Target agent to use (excludes rules from other agents). Supported agents: cursor, opencode, copilot, claude, gemini, augment, windsurf, codex.") | ||||||
| flag.Var(¶ms, "p", "Parameter to substitute in the prompt. Can be specified multiple times as key=value.") | ||||||
| flag.Var(&includes, "s", "Include rules with matching frontmatter. Can be specified multiple times as key=value.") | ||||||
| flag.Func("d", "Remote directory containing rules and tasks. Can be specified multiple times. Supports various protocols via go-getter (http://, https://, git::, s3::, etc.).", func(s string) error { | ||||||
| remotePaths = append(remotePaths, s) | ||||||
| flag.Func("d", "Directory containing rules and tasks. Can be specified multiple times. Supports various protocols via go-getter (http://, https://, git::, s3::, file:// etc.).", func(s string) error { | ||||||
|
alexec marked this conversation as resolved.
|
||||||
| searchPaths = append(searchPaths, s) | ||||||
| return nil | ||||||
| }) | ||||||
| flag.StringVar(&manifestURL, "m", "", "Go Getter URL to a manifest file containing search paths (one per line). Every line is included as-is.") | ||||||
|
||||||
| flag.StringVar(&manifestURL, "m", "", "Go Getter URL to a manifest file containing search paths (one per line). Every line is included as-is.") | |
| flag.StringVar(&manifestURL, "m", "", "Go Getter URL to a manifest file containing search paths (one per line). Lines are trimmed of whitespace.") |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.