devorch 0.1.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. devorch-0.1.2/.github/workflows/ci.yml +60 -0
  2. devorch-0.1.2/.github/workflows/publish.yml +80 -0
  3. devorch-0.1.2/.gitignore +175 -0
  4. devorch-0.1.2/PKG-INFO +528 -0
  5. devorch-0.1.2/README.md +488 -0
  6. devorch-0.1.2/cli/commands/ask.py +0 -0
  7. devorch-0.1.2/cli/commands/edit.py +0 -0
  8. devorch-0.1.2/cli/commands/run.py +0 -0
  9. devorch-0.1.2/cli/main.py +1527 -0
  10. devorch-0.1.2/config/permissions.py +285 -0
  11. devorch-0.1.2/config/profiles.py +0 -0
  12. devorch-0.1.2/config/settings.py +185 -0
  13. devorch-0.1.2/core/agent.py +433 -0
  14. devorch-0.1.2/core/context.py +0 -0
  15. devorch-0.1.2/core/executor.py +213 -0
  16. devorch-0.1.2/core/modes.py +141 -0
  17. devorch-0.1.2/core/planner.py +16 -0
  18. devorch-0.1.2/core/sessions.py +271 -0
  19. devorch-0.1.2/core/tasks.py +142 -0
  20. devorch-0.1.2/providers/__init__.py +130 -0
  21. devorch-0.1.2/providers/anthropic.py +127 -0
  22. devorch-0.1.2/providers/base.py +51 -0
  23. devorch-0.1.2/providers/custom.py +186 -0
  24. devorch-0.1.2/providers/deepseek.py +170 -0
  25. devorch-0.1.2/providers/gemini.py +192 -0
  26. devorch-0.1.2/providers/github_copilot.py +196 -0
  27. devorch-0.1.2/providers/groq.py +158 -0
  28. devorch-0.1.2/providers/kimi.py +181 -0
  29. devorch-0.1.2/providers/lmstudio.py +147 -0
  30. devorch-0.1.2/providers/local.py +214 -0
  31. devorch-0.1.2/providers/mistral.py +161 -0
  32. devorch-0.1.2/providers/openai.py +114 -0
  33. devorch-0.1.2/providers/openrouter.py +195 -0
  34. devorch-0.1.2/providers/together.py +159 -0
  35. devorch-0.1.2/pyproject.toml +98 -0
  36. devorch-0.1.2/schemas/message.py +32 -0
  37. devorch-0.1.2/schemas/task.py +115 -0
  38. devorch-0.1.2/schemas/tool.py +0 -0
  39. devorch-0.1.2/tests/__init__.py +1 -0
  40. devorch-0.1.2/tests/test_core.py +494 -0
  41. devorch-0.1.2/tests/test_integration.py +473 -0
  42. devorch-0.1.2/tests/test_permissions.py +250 -0
  43. devorch-0.1.2/tests/test_schemas.py +289 -0
  44. devorch-0.1.2/tests/test_tools.py +542 -0
  45. devorch-0.1.2/tools/__init__.py +30 -0
  46. devorch-0.1.2/tools/base.py +40 -0
  47. devorch-0.1.2/tools/edit.py +236 -0
  48. devorch-0.1.2/tools/filesystem.py +224 -0
  49. devorch-0.1.2/tools/git.py +0 -0
  50. devorch-0.1.2/tools/grep.py +280 -0
  51. devorch-0.1.2/tools/search.py +150 -0
  52. devorch-0.1.2/tools/shell.py +55 -0
  53. devorch-0.1.2/tools/task.py +91 -0
  54. devorch-0.1.2/tools/terminal.py +123 -0
  55. devorch-0.1.2/tools/terminal_session.py +298 -0
  56. devorch-0.1.2/tools/tests.py +0 -0
  57. devorch-0.1.2/tools/websearch.py +166 -0
  58. devorch-0.1.2/utils/logger.py +52 -0
@@ -0,0 +1,60 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ jobs:
10
+ lint:
11
+ name: Lint
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+
16
+ - name: Set up Python
17
+ uses: actions/setup-python@v5
18
+ with:
19
+ python-version: "3.10"
20
+
21
+ - name: Install dependencies
22
+ run: |
23
+ python -m pip install --upgrade pip
24
+ pip install ruff
25
+
26
+ - name: Run Ruff linter
27
+ run: ruff check .
28
+
29
+ - name: Run Ruff formatter check
30
+ run: ruff format --check .
31
+
32
+ test:
33
+ name: Test
34
+ runs-on: ${{ matrix.os }}
35
+ strategy:
36
+ matrix:
37
+ os: [ubuntu-latest, windows-latest, macos-latest]
38
+ python-version: ["3.10", "3.11", "3.12"]
39
+ steps:
40
+ - uses: actions/checkout@v4
41
+
42
+ - name: Set up Python ${{ matrix.python-version }}
43
+ uses: actions/setup-python@v5
44
+ with:
45
+ python-version: ${{ matrix.python-version }}
46
+
47
+ - name: Install dependencies
48
+ run: |
49
+ python -m pip install --upgrade pip
50
+ pip install -e ".[dev]"
51
+
52
+ - name: Run tests
53
+ run: pytest --cov=. --cov-report=xml
54
+
55
+ - name: Upload coverage
56
+ uses: codecov/codecov-action@v4
57
+ if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10'
58
+ with:
59
+ files: ./coverage.xml
60
+ fail_ci_if_error: false
@@ -0,0 +1,80 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - 'v*' # Trigger on version tags like v0.1.0, v1.0.0
7
+ workflow_dispatch: # Allow manual trigger
8
+
9
+ jobs:
10
+ build:
11
+ name: Build distribution
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+
16
+ - name: Set up Python
17
+ uses: actions/setup-python@v5
18
+ with:
19
+ python-version: "3.10"
20
+
21
+ - name: Install build tools
22
+ run: |
23
+ python -m pip install --upgrade pip
24
+ pip install build
25
+
26
+ - name: Build package
27
+ run: python -m build
28
+
29
+ - name: Upload distribution artifacts
30
+ uses: actions/upload-artifact@v4
31
+ with:
32
+ name: python-package-distributions
33
+ path: dist/
34
+
35
+ publish-pypi:
36
+ name: Publish to PyPI
37
+ needs: build
38
+ runs-on: ubuntu-latest
39
+ environment:
40
+ name: pypi
41
+ url: https://pypi.org/p/devorch
42
+ steps:
43
+ - name: Download distribution artifacts
44
+ uses: actions/download-artifact@v4
45
+ with:
46
+ name: python-package-distributions
47
+ path: dist/
48
+
49
+ - name: Publish to PyPI
50
+ uses: pypa/gh-action-pypi-publish@release/v1
51
+ with:
52
+ password: ${{ secrets.PYPI_API_TOKEN }}
53
+
54
+ create-github-release:
55
+ name: Create GitHub Release
56
+ needs: publish-pypi
57
+ runs-on: ubuntu-latest
58
+ permissions:
59
+ contents: write
60
+ steps:
61
+ - uses: actions/checkout@v4
62
+
63
+ - name: Download distribution artifacts
64
+ uses: actions/download-artifact@v4
65
+ with:
66
+ name: python-package-distributions
67
+ path: dist/
68
+
69
+ - name: Extract version from tag
70
+ id: get_version
71
+ run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
72
+
73
+ - name: Create GitHub Release
74
+ env:
75
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
76
+ run: |
77
+ gh release create ${{ github.ref_name }} \
78
+ --title "DevOrch v${{ steps.get_version.outputs.VERSION }}" \
79
+ --generate-notes \
80
+ dist/*
@@ -0,0 +1,175 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py,cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # poetry
98
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
102
+ #poetry.lock
103
+
104
+ # pdm
105
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
106
+ #pdm.lock
107
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
108
+ # in version control.
109
+ # https://pdm.fming.dev/#use-with-ide
110
+ .pdm.toml
111
+
112
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
113
+ __pypackages__/
114
+
115
+ # Celery stuff
116
+ celerybeat-schedule
117
+ celerybeat.pid
118
+
119
+ # SageMath parsed files
120
+ *.sage.py
121
+
122
+ # Environments
123
+ .env
124
+ .venv
125
+ env/
126
+ venv/
127
+ ENV/
128
+ env.bak/
129
+ venv.bak/
130
+
131
+ # uv
132
+ uv.lock
133
+
134
+ # Spyder project settings
135
+ .spyderproject
136
+ .spyproject
137
+
138
+ # Rope project settings
139
+ .ropeproject
140
+
141
+ # mkdocs documentation
142
+ /site
143
+
144
+ # mypy
145
+ .mypy_cache/
146
+ .dmypy.json
147
+ dmypy.json
148
+
149
+ # Pyre type checker
150
+ .pyre/
151
+
152
+ # pytype static type analyzer
153
+ .pytype/
154
+
155
+ # Cython debug symbols
156
+ cython_debug/
157
+
158
+ # PyCharm
159
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
160
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
161
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
162
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
163
+ .idea/
164
+
165
+ # VS Code
166
+ .vscode/
167
+
168
+ # OS generated files
169
+ .DS_Store
170
+ .DS_Store?
171
+ ._*
172
+ .Spotlight-V100
173
+ .Trashes
174
+ ehthumbs.db
175
+ Thumbs.db