first-agentic-csa 0.2.0__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 (47) hide show
  1. first_agentic_csa-0.2.0/.github/workflows/ci.yml +53 -0
  2. first_agentic_csa-0.2.0/.github/workflows/publish.yml +75 -0
  3. first_agentic_csa-0.2.0/.github/workflows/release.yml +137 -0
  4. first_agentic_csa-0.2.0/.gitignore +218 -0
  5. first_agentic_csa-0.2.0/LICENSE +28 -0
  6. first_agentic_csa-0.2.0/PKG-INFO +409 -0
  7. first_agentic_csa-0.2.0/README.md +385 -0
  8. first_agentic_csa-0.2.0/config.json +38 -0
  9. first_agentic_csa-0.2.0/copilot-instructions.md +97 -0
  10. first_agentic_csa-0.2.0/pyproject.toml +47 -0
  11. first_agentic_csa-0.2.0/scripts/build_index.py +116 -0
  12. first_agentic_csa-0.2.0/src/wpilib_mcp/__init__.py +7 -0
  13. first_agentic_csa-0.2.0/src/wpilib_mcp/plugin_loader.py +278 -0
  14. first_agentic_csa-0.2.0/src/wpilib_mcp/plugins/__init__.py +9 -0
  15. first_agentic_csa-0.2.0/src/wpilib_mcp/plugins/base.py +269 -0
  16. first_agentic_csa-0.2.0/src/wpilib_mcp/plugins/ctre/__init__.py +9 -0
  17. first_agentic_csa-0.2.0/src/wpilib_mcp/plugins/ctre/build_index.py +205 -0
  18. first_agentic_csa-0.2.0/src/wpilib_mcp/plugins/ctre/data/index.json +735 -0
  19. first_agentic_csa-0.2.0/src/wpilib_mcp/plugins/ctre/plugin.py +256 -0
  20. first_agentic_csa-0.2.0/src/wpilib_mcp/plugins/photonvision/__init__.py +6 -0
  21. first_agentic_csa-0.2.0/src/wpilib_mcp/plugins/photonvision/build_index.py +262 -0
  22. first_agentic_csa-0.2.0/src/wpilib_mcp/plugins/photonvision/data/index.json +639 -0
  23. first_agentic_csa-0.2.0/src/wpilib_mcp/plugins/photonvision/plugin.py +251 -0
  24. first_agentic_csa-0.2.0/src/wpilib_mcp/plugins/redux/__init__.py +9 -0
  25. first_agentic_csa-0.2.0/src/wpilib_mcp/plugins/redux/build_index.py +180 -0
  26. first_agentic_csa-0.2.0/src/wpilib_mcp/plugins/redux/data/index.json +231 -0
  27. first_agentic_csa-0.2.0/src/wpilib_mcp/plugins/redux/plugin.py +255 -0
  28. first_agentic_csa-0.2.0/src/wpilib_mcp/plugins/rev/__init__.py +9 -0
  29. first_agentic_csa-0.2.0/src/wpilib_mcp/plugins/rev/build_index.py +193 -0
  30. first_agentic_csa-0.2.0/src/wpilib_mcp/plugins/rev/data/index.json +527 -0
  31. first_agentic_csa-0.2.0/src/wpilib_mcp/plugins/rev/plugin.py +255 -0
  32. first_agentic_csa-0.2.0/src/wpilib_mcp/plugins/wpilib/__init__.py +9 -0
  33. first_agentic_csa-0.2.0/src/wpilib_mcp/plugins/wpilib/build_index.py +211 -0
  34. first_agentic_csa-0.2.0/src/wpilib_mcp/plugins/wpilib/data/index_2025.json +171 -0
  35. first_agentic_csa-0.2.0/src/wpilib_mcp/plugins/wpilib/data/index_stable.json +2143 -0
  36. first_agentic_csa-0.2.0/src/wpilib_mcp/plugins/wpilib/plugin.py +281 -0
  37. first_agentic_csa-0.2.0/src/wpilib_mcp/server.py +326 -0
  38. first_agentic_csa-0.2.0/src/wpilib_mcp/tool_router.py +318 -0
  39. first_agentic_csa-0.2.0/src/wpilib_mcp/utils/__init__.py +9 -0
  40. first_agentic_csa-0.2.0/src/wpilib_mcp/utils/fetch.py +155 -0
  41. first_agentic_csa-0.2.0/src/wpilib_mcp/utils/html.py +257 -0
  42. first_agentic_csa-0.2.0/src/wpilib_mcp/utils/indexer.py +333 -0
  43. first_agentic_csa-0.2.0/src/wpilib_mcp/utils/search.py +207 -0
  44. first_agentic_csa-0.2.0/tests/__init__.py +5 -0
  45. first_agentic_csa-0.2.0/tests/test_plugins.py +257 -0
  46. first_agentic_csa-0.2.0/tests/test_search.py +170 -0
  47. first_agentic_csa-0.2.0/uv.lock +982 -0
@@ -0,0 +1,53 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [master, main]
6
+ pull_request:
7
+ branches: [master, main]
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ matrix:
14
+ python-version: ["3.11", "3.12"]
15
+
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+
19
+ - name: Install uv
20
+ uses: astral-sh/setup-uv@v4
21
+ with:
22
+ version: "latest"
23
+
24
+ - name: Set up Python ${{ matrix.python-version }}
25
+ run: uv python install ${{ matrix.python-version }}
26
+
27
+ - name: Install dependencies
28
+ run: uv sync --all-extras
29
+
30
+ - name: Run tests
31
+ run: uv run pytest tests/ -v
32
+
33
+ build:
34
+ runs-on: ubuntu-latest
35
+ needs: test
36
+
37
+ steps:
38
+ - uses: actions/checkout@v4
39
+
40
+ - name: Install uv
41
+ uses: astral-sh/setup-uv@v4
42
+ with:
43
+ version: "latest"
44
+
45
+ - name: Build package
46
+ run: uv build
47
+
48
+ - name: Upload build artifacts
49
+ uses: actions/upload-artifact@v4
50
+ with:
51
+ name: dist
52
+ path: dist/
53
+
@@ -0,0 +1,75 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+ workflow_dispatch:
7
+ inputs:
8
+ publish_target:
9
+ description: 'Publish target'
10
+ required: true
11
+ default: 'testpypi'
12
+ type: choice
13
+ options:
14
+ - testpypi
15
+ - pypi
16
+
17
+ jobs:
18
+ build:
19
+ runs-on: ubuntu-latest
20
+
21
+ steps:
22
+ - uses: actions/checkout@v4
23
+
24
+ - name: Install uv
25
+ uses: astral-sh/setup-uv@v4
26
+ with:
27
+ version: "latest"
28
+
29
+ - name: Build package
30
+ run: uv build
31
+
32
+ - name: Upload build artifacts
33
+ uses: actions/upload-artifact@v4
34
+ with:
35
+ name: dist
36
+ path: dist/
37
+
38
+ publish-testpypi:
39
+ runs-on: ubuntu-latest
40
+ needs: build
41
+ if: github.event_name == 'workflow_dispatch' && github.event.inputs.publish_target == 'testpypi'
42
+ environment: testpypi
43
+ permissions:
44
+ id-token: write
45
+
46
+ steps:
47
+ - name: Download build artifacts
48
+ uses: actions/download-artifact@v4
49
+ with:
50
+ name: dist
51
+ path: dist/
52
+
53
+ - name: Publish to TestPyPI
54
+ uses: pypa/gh-action-pypi-publish@release/v1
55
+ with:
56
+ repository-url: https://test.pypi.org/legacy/
57
+
58
+ publish-pypi:
59
+ runs-on: ubuntu-latest
60
+ needs: build
61
+ if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish_target == 'pypi')
62
+ environment: pypi
63
+ permissions:
64
+ id-token: write
65
+
66
+ steps:
67
+ - name: Download build artifacts
68
+ uses: actions/download-artifact@v4
69
+ with:
70
+ name: dist
71
+ path: dist/
72
+
73
+ - name: Publish to PyPI
74
+ uses: pypa/gh-action-pypi-publish@release/v1
75
+
@@ -0,0 +1,137 @@
1
+ name: Release
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ bump_type:
7
+ description: 'Version bump type'
8
+ required: true
9
+ default: 'patch'
10
+ type: choice
11
+ options:
12
+ - patch
13
+ - minor
14
+ - major
15
+
16
+ jobs:
17
+ release:
18
+ runs-on: ubuntu-latest
19
+ permissions:
20
+ contents: write
21
+
22
+ steps:
23
+ - uses: actions/checkout@v4
24
+ with:
25
+ fetch-depth: 0
26
+ token: ${{ secrets.GITHUB_TOKEN }}
27
+
28
+ - name: Configure Git
29
+ run: |
30
+ git config user.name "github-actions[bot]"
31
+ git config user.email "github-actions[bot]@users.noreply.github.com"
32
+
33
+ - name: Install uv
34
+ uses: astral-sh/setup-uv@v4
35
+ with:
36
+ version: "latest"
37
+
38
+ - name: Get current version
39
+ id: current_version
40
+ run: |
41
+ CURRENT_VERSION=$(grep -oP 'version = "\K[^"]+' pyproject.toml)
42
+ echo "version=$CURRENT_VERSION" >> $GITHUB_OUTPUT
43
+ echo "Current version: $CURRENT_VERSION"
44
+
45
+ - name: Calculate new version
46
+ id: new_version
47
+ run: |
48
+ CURRENT="${{ steps.current_version.outputs.version }}"
49
+ IFS='.' read -r MAJOR MINOR PATCH <<< "$CURRENT"
50
+
51
+ case "${{ github.event.inputs.bump_type }}" in
52
+ major)
53
+ MAJOR=$((MAJOR + 1))
54
+ MINOR=0
55
+ PATCH=0
56
+ ;;
57
+ minor)
58
+ MINOR=$((MINOR + 1))
59
+ PATCH=0
60
+ ;;
61
+ patch)
62
+ PATCH=$((PATCH + 1))
63
+ ;;
64
+ esac
65
+
66
+ NEW_VERSION="${MAJOR}.${MINOR}.${PATCH}"
67
+ echo "version=$NEW_VERSION" >> $GITHUB_OUTPUT
68
+ echo "New version: $NEW_VERSION"
69
+
70
+ - name: Update version in pyproject.toml
71
+ run: |
72
+ sed -i 's/version = "${{ steps.current_version.outputs.version }}"/version = "${{ steps.new_version.outputs.version }}"/' pyproject.toml
73
+ cat pyproject.toml | grep version
74
+
75
+ - name: Commit version bump
76
+ run: |
77
+ git add pyproject.toml
78
+ git commit -m "chore: bump version to ${{ steps.new_version.outputs.version }}"
79
+ git push
80
+
81
+ - name: Create and push tag
82
+ run: |
83
+ git tag "v${{ steps.new_version.outputs.version }}"
84
+ git push origin "v${{ steps.new_version.outputs.version }}"
85
+
86
+ - name: Generate release notes
87
+ id: release_notes
88
+ run: |
89
+ # Get commits since last tag
90
+ LAST_TAG=$(git describe --tags --abbrev=0 HEAD^ 2>/dev/null || echo "")
91
+ if [ -n "$LAST_TAG" ]; then
92
+ COMMITS=$(git log --pretty=format:"- %s" $LAST_TAG..HEAD~1)
93
+ else
94
+ COMMITS=$(git log --pretty=format:"- %s" HEAD~10..HEAD~1)
95
+ fi
96
+
97
+ # Create release notes
98
+ cat << EOF > release_notes.md
99
+ ## What's Changed
100
+
101
+ $COMMITS
102
+
103
+ ## Installation
104
+
105
+ \`\`\`bash
106
+ # Using uvx (recommended)
107
+ uvx first-agentic-csa
108
+
109
+ # Or with pip
110
+ pip install first-agentic-csa==${{ steps.new_version.outputs.version }}
111
+ \`\`\`
112
+
113
+ ## MCP Configuration
114
+
115
+ \`\`\`json
116
+ {
117
+ "mcpServers": {
118
+ "frc-docs": {
119
+ "command": "uvx",
120
+ "args": ["first-agentic-csa"]
121
+ }
122
+ }
123
+ }
124
+ \`\`\`
125
+ EOF
126
+
127
+ - name: Create GitHub Release
128
+ uses: softprops/action-gh-release@v2
129
+ with:
130
+ tag_name: v${{ steps.new_version.outputs.version }}
131
+ name: v${{ steps.new_version.outputs.version }}
132
+ body_path: release_notes.md
133
+ draft: false
134
+ prerelease: false
135
+ env:
136
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
137
+
@@ -0,0 +1,218 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
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
+ # UV
98
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ # uv.lock
102
+
103
+ # poetry
104
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
106
+ # commonly ignored for libraries.
107
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108
+ # poetry.lock
109
+ # poetry.toml
110
+
111
+ # pdm
112
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
113
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
114
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
115
+ # pdm.lock
116
+ # pdm.toml
117
+ .pdm-python
118
+ .pdm-build/
119
+
120
+ # pixi
121
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
122
+ # pixi.lock
123
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
124
+ # in the .venv directory. It is recommended not to include this directory in version control.
125
+ .pixi
126
+
127
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
128
+ __pypackages__/
129
+
130
+ # Celery stuff
131
+ celerybeat-schedule
132
+ celerybeat.pid
133
+
134
+ # Redis
135
+ *.rdb
136
+ *.aof
137
+ *.pid
138
+
139
+ # RabbitMQ
140
+ mnesia/
141
+ rabbitmq/
142
+ rabbitmq-data/
143
+
144
+ # ActiveMQ
145
+ activemq-data/
146
+
147
+ # SageMath parsed files
148
+ *.sage.py
149
+
150
+ # Environments
151
+ .env
152
+ .envrc
153
+ .venv
154
+ env/
155
+ venv/
156
+ ENV/
157
+ env.bak/
158
+ venv.bak/
159
+
160
+ # Spyder project settings
161
+ .spyderproject
162
+ .spyproject
163
+
164
+ # Rope project settings
165
+ .ropeproject
166
+
167
+ # mkdocs documentation
168
+ /site
169
+
170
+ # mypy
171
+ .mypy_cache/
172
+ .dmypy.json
173
+ dmypy.json
174
+
175
+ # Pyre type checker
176
+ .pyre/
177
+
178
+ # pytype static type analyzer
179
+ .pytype/
180
+
181
+ # Cython debug symbols
182
+ cython_debug/
183
+
184
+ # PyCharm
185
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
186
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
187
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
188
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
189
+ # .idea/
190
+
191
+ # Abstra
192
+ # Abstra is an AI-powered process automation framework.
193
+ # Ignore directories containing user credentials, local state, and settings.
194
+ # Learn more at https://abstra.io/docs
195
+ .abstra/
196
+
197
+ # Visual Studio Code
198
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
199
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
200
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
201
+ # you could uncomment the following to ignore the entire vscode folder
202
+ # .vscode/
203
+
204
+ # Ruff stuff:
205
+ .ruff_cache/
206
+
207
+ # PyPI configuration file
208
+ .pypirc
209
+
210
+ # Marimo
211
+ marimo/_static/
212
+ marimo/_lsp/
213
+ __marimo__/
214
+
215
+ # Streamlit
216
+ .streamlit/secrets.toml
217
+
218
+ *.pyc
@@ -0,0 +1,28 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2025, Rami Mouro
4
+
5
+ Redistribution and use in source and binary forms, with or without
6
+ modification, are permitted provided that the following conditions are met:
7
+
8
+ 1. Redistributions of source code must retain the above copyright notice, this
9
+ list of conditions and the following disclaimer.
10
+
11
+ 2. Redistributions in binary form must reproduce the above copyright notice,
12
+ this list of conditions and the following disclaimer in the documentation
13
+ and/or other materials provided with the distribution.
14
+
15
+ 3. Neither the name of the copyright holder nor the names of its
16
+ contributors may be used to endorse or promote products derived from
17
+ this software without specific prior written permission.
18
+
19
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.