-
Notifications
You must be signed in to change notification settings - Fork 2
Ft Add Sym Link Following #7
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
Ft Add Sym Link Following #7
Conversation
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.21.0 to 0.31.0. - [Commits](golang/crypto@v0.21.0...v0.31.0) --- updated-dependencies: - dependency-name: golang.org/x/crypto dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
When Claude is under heavy load, it starts 403'ing request unless a **very**
specific Accept-Encoding header is set:
Accept-Encoding: gzip;q=1.0, identity;q=0.3
Not entirely sure why this is the case but this was discovered as a difference
in behavior between the sandworm-rb and sandworm-go projects (the ruby client
sets this value by default whereas golang client sets "gzip" only)
First argument of input was always being interpreted as a subcommand, which would lead to unknown command errors; e.g.: ``` > sandworm src/ Error: unknown command "src/" for "sandworm" ``` Adding `Args: cobra.ArbitraryArgs,` disables the "always interpret first arg as subcommand" behavior, fixing the issue.
* feat: global configuration support Sandworm now uses `$XDG_CONFIG_HOME` when storing global configuration keys. At the moment this is only one key (the user's Anthropic session key), but this may expand to include default ignores, default includes, etc. * chore: documentation updates * fix: maps are reference types, baby * chore: updated documentation
archives.format is now archives.formats
…olonoms#3) Bumps [github.com/go-git/go-git/v5](https://github.com/go-git/go-git) from 5.12.0 to 5.13.0. - [Release notes](https://github.com/go-git/go-git/releases) - [Commits](go-git/go-git@v5.12.0...v5.13.0) --- updated-dependencies: - dependency-name: github.com/go-git/go-git/v5 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.33.0 to 0.38.0. - [Commits](golang/net@v0.33.0...v0.38.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-version: 0.38.0 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Avoids conflict with homebrew installed sandworm, allowing both to co-exist.
Only compatible updates.
Required with golangci lint update
api.claude.ai no longer in use
Not necessarily the same; best rely on mise's setup.
Cleanup main to make it easier to add new commands.
feat: add config command & support printing line numbers All credit for the config logic to https://github.com/TWDickson as most of it was copied over from https://github.com/holonoms/sandworm/pull/7/files#diff-00ec3b6d2da88d3b4a63adb857d975afe5c186d6aed1bc8aa365890a6106f261
|
Hey @TWDickson just a heads up that most of your config logic has already made it to the main branch. I needed to add the option to print line numbers and I really like what you did with the config command here so I ended up rolling it in. The commit in which I made the change references this PR for attribution. I've also moved pretty much all the CLI logic to a CLI package as I can imagine the |
|
Hey thanks! Sorry I haven’t had a chance to update this in a bit, things got busy for me with my job job. I'll rebase and update, I think I'll have some time today! |
- Normalize paths using filepath.ToSlash() in processor for cross-platform gitignore matching - Add defensive path normalization to filetree package using strings.FieldsFunc - Add comprehensive tests for mixed path separators and edge cases
…handling, update writes to handle FileInfo Structs
Needs unix testing
a4d203e to
c2bea0a
Compare
Config File was created before the rebase on master where the config was already implemented
|
Updated! I also added the ProcessorOptions struct to centralize all processor-related settings, making option handling explicit and extensible. This should help make extensions and future cli args more maintainable. All tests are passing: |
Hopefully these are right!
biasedbit
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for contributing! 🙌 🚢
| "testing" | ||
| ) | ||
|
|
||
| func TestGenerateCmd_Flags(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌
|
Release 0.3.0 is out with your changes 🚀 |
|
Awesome work to you both! |
I wanted Claude to analyze subsections of my project in relation to other projects. Adding symlink handling allows me to create a new project with symlinked directories to the originals while still keeping contents the same.
--follow-symlinks(-L) CLI flag andprocessor.follow_symlinksproject config optiongodirwalklibrary for better symlink handling, cycle detection, and performance