graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs
Python
sdk: release as @codegraff/sdk 0.3.0 and codegraff 0.2.0
Rach Pradhan64fc8ef93eea
diff --git a/.github/workflows/sdk.yml b/.github/workflows/sdk.ymlindex b7be0269..d689db1c 100644--- a/.github/workflows/sdk.yml+++ b/.github/workflows/sdk.yml@@ -6,7 +6,7 @@ name: sdk# build artifacts.on:push:- tags: ["v*"]+ tags: ["sdk-v*"]workflow_dispatch: {}jobs:@@ -25,7 +25,7 @@ jobs:- name: Generate SDKs from --schemarun: |- ./zig-out/bin/harness --schema > schema.json+ ./zig-out/bin/graff --schema > schema.jsonpython3 sdk/generate.py --schema schema.json- name: Verify nothing drifted (generated == committed)@@ -46,12 +46,12 @@ jobs:node-version: "20"registry-url: "https://registry.npmjs.org"- name: Publish TS SDK to npm- if: ${{ secrets.NPM_TOKEN != '' }}+ if: ${{ secrets.NPM_TOKEN != '' && startsWith(github.ref, 'refs/tags/sdk-v') }}working-directory: sdk/tsenv:NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}run: |- npm version "${GITHUB_REF_NAME#v}" --no-git-tag-version --allow-same-version+ npm version "${GITHUB_REF_NAME#sdk-v}" --no-git-tag-version --allow-same-versionnpm publish --access public- uses: actions/setup-python@v5@@ -59,13 +59,13 @@ jobs:with:python-version: "3.12"- name: Publish Python SDK to PyPI- if: ${{ secrets.PYPI_TOKEN != '' }}+ if: ${{ secrets.PYPI_TOKEN != '' && startsWith(github.ref, 'refs/tags/sdk-v') }}working-directory: sdk/pyenv:TWINE_USERNAME: __token__TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}run: |python3 -m pip install build twine- sed -i "s/^version = .*/version = \"${GITHUB_REF_NAME#v}\"/" pyproject.toml+ sed -i "s/^version = .*/version = \"${GITHUB_REF_NAME#sdk-v}\"/" pyproject.tomlpython3 -m buildpython3 -m twine upload dist/*diff --git a/sdk/py/pyproject.toml b/sdk/py/pyproject.tomlindex dfa4a3fa..99732fcf 100644--- a/sdk/py/pyproject.toml+++ b/sdk/py/pyproject.toml@@ -3,11 +3,16 @@ requires = ["setuptools>=61"]build-backend = "setuptools.build_meta"[project]-name = "simple-harness-sdk"-version = "0.1.0"-description = "Python client for the simple-harness agent (drives `harness --json`). Constants auto-generated from `harness --schema`."+name = "codegraff"+version = "0.2.0"+description = "Python client for the codegraff agent — drives `graff --json` over stdio. Constants auto-generated from `graff --schema`."requires-python = ">=3.8"license = { text = "BSD-3-Clause" }+keywords = ["codegraff", "graff", "agent", "llm", "harness", "sdk"]++[project.urls]+Homepage = "https://codegraff.com"+Repository = "https://github.com/justrach/codegraff"[tool.setuptools]py-modules = ["harness_sdk"]diff --git a/sdk/ts/package.json b/sdk/ts/package.jsonindex b4f800bd..8f8bc6d1 100644--- a/sdk/ts/package.json+++ b/sdk/ts/package.json@@ -1,7 +1,7 @@{- "name": "@graff-new/sdk",- "version": "0.1.0",- "description": "TypeScript / Node SDK for the simple-harness agent (drives `harness --json`). API mirrors @codegraff/sdk; types auto-generated from `harness --schema`.",+ "name": "@codegraff/sdk",+ "version": "0.3.0",+ "description": "TypeScript / Node SDK for the codegraff agent — drives `graff --json` over stdio. Types auto-generated from `graff --schema`.","type": "module","main": "harness.ts","types": "harness.ts",@@ -20,9 +20,11 @@},"repository": {"type": "git",- "url": "https://github.com/justrach/graff-new.git",+ "url": "git+https://github.com/justrach/codegraff.git","directory": "sdk/ts"},+ "homepage": "https://codegraff.com",+ "keywords": ["codegraff", "graff", "agent", "llm", "harness", "sdk"],"files": ["harness.ts", "remote.ts"],"engines": { "node": ">=18" },"license": "BSD-3-Clause"