Skip to content

Commit

Permalink
Experimental features for compressing project context window size
Browse files Browse the repository at this point in the history
  • Loading branch information
jahwag authored and pressdarling committed Dec 1, 2024
1 parent 7c163f6 commit 3469aff
Show file tree
Hide file tree
Showing 5 changed files with 160 additions and 106 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --max-complexity=10 --max-line-length=127 --statistics
flake8 . --count --max-complexity=10 --extend-ignore=E203,E701 --max-line-length=127 --statistics
- name: Format with Black
run: |
black --check --diff .
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "claudesync"
version = "0.5.4"
version = "0.5.5"
authors = [
{name = "Jahziah Wagner", email = "[email protected]"},
]
Expand All @@ -25,7 +25,8 @@ dependencies = [
"pytest-cov>=5.0.0",
"claudesync>=0.5.4",
"crontab>=1.0.1",
"python-crontab>=3.2.0"
"python-crontab>=3.2.0",
"Brotli>=1.1.0"
]
keywords = [
"sync",
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ tqdm>=4.66.5
pytest-cov>=5.0.0
claudesync>=0.5.4
crontab>=1.0.1
python-crontab>=3.2.0
python-crontab>=3.2.0
Brotli>=1.1.0
57 changes: 42 additions & 15 deletions src/claudesync/configmanager/base_config_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ def _get_default_config(self):
"upload_delay": 0.5,
"max_file_size": 32 * 1024,
"two_way_sync": False,
"curl_use_file_input": False,
"prune_remote_files": True,
"claude_api_url": "https://api.claude.ai/api",
"compression_algorithm": "none",
"submodule_detect_filenames": [
"pom.xml",
"build.gradle",
Expand Down Expand Up @@ -71,32 +71,59 @@ def _get_default_config(self):
"production_code": {
"description": "Production source code",
"patterns": [
"src/**/*.java",
"src/**/*.py",
"src/**/*.js",
"src/**/*.ts",
"**/src/**/*.java",
"**/*.py",
"**/*.js",
"**/*.ts",
"**/*.vue",
],
},
"test_code": {
"description": "Test source code",
"patterns": [
"test/**/*.java",
"tests/**/*.py",
"**/test/**/*.java",
"**/tests/**/*.py",
"**/test_*.py",
"**/*Test.java",
],
},
"build_config": {
"description": "Build configuration files",
"patterns": [
"pom.xml",
"build.gradle",
"package.json",
"setup.py",
"Cargo.toml",
"go.mod",
"pyproject.toml",
"requirements.txt",
"**/pom.xml",
"**/build.gradle",
"**/package.json",
"**/setup.py",
"**/Cargo.toml",
"**/go.mod",
"**/pyproject.toml",
"**/requirements.txt",
"**/*.tf",
"**/*.yaml",
"**/*.yml",
"**/*.properties",
],
},
"uberproject_java": {
"description": "Uberproject Java + Javascript",
"patterns": [
"**/src/**/*.java",
"**/*.py",
"**/*.js",
"**/*.ts",
"**/*.vue",
"**/pom.xml",
"**/build.gradle",
"**/package.json",
"**/setup.py",
"**/Cargo.toml",
"**/go.mod",
"**/pyproject.toml",
"**/requirements.txt",
"**/*.tf",
"**/*.yaml",
"**/*.yml",
"**/*.properties",
],
},
},
Expand Down
Loading

0 comments on commit 3469aff

Please sign in to comment.