mirror of
https://github.com/cline/cline.git
synced 2026-09-21 05:10:09 +08:00
Feat/nturumel/proto-python (#7090)
* feat(proto-python): add script-generated Python gRPC stubs, Go-like client, docs, and PyPI publish workflow - add scripts/build-python-proto.mjs - invokes python -m grpc_tools.protoc over proto/**/*.proto - outputs to src/generated/grpc-python - mirrors Go layout under client/: connection.py, cline_client.py, services/_client.py - supports PYTHON env override (use a venv interpreter easily) - generates src/generated/grpc-python/pyproject.toml so output can be pip installed (pip install -e src/generated/grpc-python) - package.json - add protos-python script to run the generator - docs - add docs/exploring-clines-tools/python-protos.mdx with venv setup, generation steps, and import examples - emphasize: everything in src/generated is produced by scripts (do not commit manual edits) - CI: publish to PyPI only - add .github/workflows/publish-grpc-python.yml - workflow generates code via script, builds wheel/sdist from src/generated/grpc-python, and uploads to PyPI - requires repo secret: PYPI_API_TOKEN (TWINE_USERNAME=__token__) - optional version override input for workflow_dispatch Notes: - generation strictly produces all content under src/generated/grpc-python (including pyproject.toml) - default package name in generated pyproject is cline-grpc-python (adjustable in the script if needed) - recommended usage on macOS: PYTHON=/Users/nturumel/projects/oracle-github/cline/.venv-proto/bin/python npm run protos-python * Delete .github/workflows/publish-grpc-python.yml * Delete docs/exploring-clines-tools/python-protos.mdx * Update tired-banks-show.md --------- Co-authored-by: Andrei Eternal <206184+Garoth@users.noreply.github.com>
This commit is contained in:
co-authored by
Andrei Eternal
parent
826b2b1276
commit
5a3416ff09
@@ -310,6 +310,7 @@
|
||||
"package": "npm run check-types && npm run build:webview && npm run lint && node esbuild.mjs --production",
|
||||
"protos": "node scripts/build-proto.mjs",
|
||||
"protos-go": "node scripts/build-go-proto.mjs",
|
||||
"protos-python": "node scripts/build-python-proto.mjs",
|
||||
"cli-providers": "node scripts/cli-providers.mjs",
|
||||
"download-ripgrep": "node scripts/download-ripgrep.mjs",
|
||||
"postprotos": "biome format src/shared/proto src/core/controller src/hosts/ webview-ui/src/services src/generated --write --no-errors-on-unmatched",
|
||||
|
||||
Reference in New Issue
Block a user