zuke 1.2.0__tar.gz → 1.3.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.
- {zuke-1.2.0 → zuke-1.3.0}/.github/workflows/ai-review.yml +2 -2
- zuke-1.3.0/.github/workflows/sync.yml +32 -0
- zuke-1.3.0/.release-please-manifest.json +3 -0
- {zuke-1.2.0 → zuke-1.3.0}/AGENTS.md +37 -18
- {zuke-1.2.0 → zuke-1.3.0}/CHANGELOG.md +13 -0
- {zuke-1.2.0 → zuke-1.3.0}/PKG-INFO +34 -20
- {zuke-1.2.0 → zuke-1.3.0}/README.md +33 -19
- {zuke-1.2.0 → zuke-1.3.0}/SECURITY.md +7 -8
- {zuke-1.2.0 → zuke-1.3.0}/build.py +314 -97
- {zuke-1.2.0 → zuke-1.3.0}/spec/engine.json +2 -1
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/__init__.py +1 -1
- zuke-1.3.0/tests/protocol/cases/VERSION +1 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/protocol/test_conformance.py +2 -1
- {zuke-1.2.0 → zuke-1.3.0}/tests/test_build_file.py +277 -80
- {zuke-1.2.0 → zuke-1.3.0}/tests/test_twins.py +6 -2
- zuke-1.3.0/zuke +131 -0
- zuke-1.3.0/zuke.json +11 -0
- zuke-1.3.0/zuke.ps1 +110 -0
- zuke-1.2.0/.release-please-manifest.json +0 -3
- zuke-1.2.0/deno.lock +0 -508
- zuke-1.2.0/tests/protocol/cases/VERSION +0 -1
- zuke-1.2.0/zuke +0 -211
- zuke-1.2.0/zuke.json +0 -5
- zuke-1.2.0/zuke.ps1 +0 -181
- {zuke-1.2.0 → zuke-1.3.0}/.github/FUNDING.yml +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/.github/ISSUE_TEMPLATE/chore.yml +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/.github/dependabot.yml +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/.github/pull_request_template.md +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/.github/workflows/ci.yml +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/.github/workflows/release.yml +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/.gitignore +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/.release-please-config.json +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/CLAUDE.md +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/CODE_OF_CONDUCT.md +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/CONTRIBUTING.md +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/GOVERNANCE.md +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/LICENSE +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/pyproject.toml +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/spec/tools.json +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/_awaited.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/_build.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/_ci.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/_context.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/_dsl.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/_duration.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/_facade.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/_field.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/_generate.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/_guard.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/_reference.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/_rpc.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/_run.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/_settings.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/_worker.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/py.typed +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/__init__.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/_tooling.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/ai.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/apple.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/argo_rollouts.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/aws.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/az.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/biome.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/bun.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/chocolatey.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/claude.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/cmd.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/codecov.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/codex.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/console.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/cspell.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/cypress.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/dart.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/deno.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/docker.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/docker_compose.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/docs.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/dpdm.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/dprint.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/eslint.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/flutter.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/gcloud.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/gemini.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/gh.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/git.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/google.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/helm.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/homebrew.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/husky.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/jest.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/jsr.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/knip.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/kubectl.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/kustomize.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/lint_staged.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/nest.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/node.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/npm.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/npx.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/nx.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/openapi_ts.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/orval.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/oxlint.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/playwright.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/pnpm.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/prometheus.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/qr.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/redocly.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/release_please.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/security.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/shellcheck.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/signpath.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/storybook.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/terraform.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/tofu.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/tsc.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/tsc_alias.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/tsdown.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/tsup.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/tsx.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/turbo.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/vite.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/vitest.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/src/zuke/tools/yarn.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/conftest.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/fixtures/facades/__init__.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/fixtures/facades/_tooling.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/fixtures/facades/tally.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/fixtures/facades/widget.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/fixtures/spec.json +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/protocol/cases/cachekey.json +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/protocol/cases/ci.json +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/protocol/cases/compensation.json +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/protocol/cases/condition.json +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/protocol/cases/context.json +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/protocol/cases/engine_death.json +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/protocol/cases/failure.json +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/protocol/cases/graph.json +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/protocol/cases/hooks.json +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/protocol/cases/lock.json +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/protocol/cases/ordering.json +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/protocol/cases/parameters.json +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/protocol/cases/recheck.json +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/protocol/cases/respawn.json +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/protocol/cases/retry.json +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/protocol/cases/service.json +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/protocol/cases/suspend.json +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/protocol/cases/tool_call.json +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/protocol/cases/tool_cancel.json +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/protocol/cases/tool_dryrun.json +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/protocol/cases/tool_env.json +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/protocol/cases/tool_setter.json +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/protocol/cases/triggers.json +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/protocol/worker.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/test_build.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/test_ci.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/test_context.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/test_dsl.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/test_facade.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/test_gates.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/test_generate.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/test_hooks.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/test_license_headers.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/test_package.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/test_reference.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/test_rpc.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/test_run.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/test_services.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/test_tools.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/test_worker.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/tests/twins.py +0 -0
- {zuke-1.2.0 → zuke-1.3.0}/uv.lock +0 -0
|
@@ -24,7 +24,7 @@ jobs:
|
|
|
24
24
|
with:
|
|
25
25
|
egress-policy: block
|
|
26
26
|
persist-credentials: "false"
|
|
27
|
-
allowed-endpoints: "
|
|
27
|
+
allowed-endpoints: "github.com:443 api.github.com:443 codeload.github.com:443 objects.githubusercontent.com:443 release-assets.githubusercontent.com:443 pypi.org:443 files.pythonhosted.org:443 api.openai.com:443"
|
|
28
28
|
- name: Install uv
|
|
29
29
|
shell: bash
|
|
30
30
|
run: pipx install uv
|
|
@@ -52,7 +52,7 @@ jobs:
|
|
|
52
52
|
with:
|
|
53
53
|
egress-policy: block
|
|
54
54
|
persist-credentials: "false"
|
|
55
|
-
allowed-endpoints: "
|
|
55
|
+
allowed-endpoints: "github.com:443 api.github.com:443 codeload.github.com:443 objects.githubusercontent.com:443 release-assets.githubusercontent.com:443 pypi.org:443 files.pythonhosted.org:443 api.openai.com:443"
|
|
56
56
|
- name: Install uv
|
|
57
57
|
shell: bash
|
|
58
58
|
run: pipx install uv
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
name: Engine sync
|
|
2
|
+
"on":
|
|
3
|
+
workflow_dispatch: {}
|
|
4
|
+
permissions:
|
|
5
|
+
contents: read
|
|
6
|
+
concurrency:
|
|
7
|
+
group: engine-sync
|
|
8
|
+
cancel-in-progress: false
|
|
9
|
+
jobs:
|
|
10
|
+
sync_engine:
|
|
11
|
+
name: "Sync with the engine's newest release"
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
permissions:
|
|
14
|
+
contents: read
|
|
15
|
+
timeout-minutes: 15
|
|
16
|
+
steps:
|
|
17
|
+
- name: Harden and check out with Zuke
|
|
18
|
+
uses: zuke-build/zuke@b0832247daa16321be405a10b71c022317d2c5a4 # v1.0.8
|
|
19
|
+
with:
|
|
20
|
+
egress-policy: audit
|
|
21
|
+
persist-credentials: "false"
|
|
22
|
+
- name: Install uv
|
|
23
|
+
shell: bash
|
|
24
|
+
run: pipx install uv
|
|
25
|
+
- name: Sync the locked environment
|
|
26
|
+
shell: bash
|
|
27
|
+
run: uv sync --locked
|
|
28
|
+
- name: Sync with Zuke
|
|
29
|
+
run: ./zuke sync_engine
|
|
30
|
+
env:
|
|
31
|
+
ZUKE_BUILD_APP_ID: "${{ secrets.ZUKE_BUILD_APP_ID }}"
|
|
32
|
+
ZUKE_BUILD_APP_KEY: "${{ secrets.ZUKE_BUILD_APP_KEY }}"
|
|
@@ -76,7 +76,9 @@ generated by `_generate.py` from the engine's tool spec, vendored under
|
|
|
76
76
|
[pyright](https://github.com/microsoft/pyright) in strict mode for types,
|
|
77
77
|
[pytest](https://docs.pytest.org/) with coverage and pytest-asyncio. The
|
|
78
78
|
gate's targets are `build.py`, a Zuke build the engine runs through the
|
|
79
|
-
`./zuke` launchers, which
|
|
79
|
+
`./zuke` launchers, which download the pinned `zuke` binary themselves. No
|
|
80
|
+
Deno is needed anywhere: the binary carries the engine and every wrapper,
|
|
81
|
+
and a Python build never reaches into another language's stack.
|
|
80
82
|
- **Distribution:** `zuke` on PyPI, versioned by release-please from the
|
|
81
83
|
squash-merged PR titles, as in the main repository. The `release` workflow,
|
|
82
84
|
generated from `build.py`'s `release_workflow` field, runs on every push to
|
|
@@ -174,37 +176,53 @@ Name every test module `test_*.py`; pytest discovers nothing else.
|
|
|
174
176
|
| Vendor the tool spec | `./zuke vendor_spec --engine-repo <checkout> --engine-tag <tag>` |
|
|
175
177
|
| Regenerate the facades | `./zuke facades` (`facades_check` verifies they are current) |
|
|
176
178
|
| Regenerate `uv.lock` | `uv lock` |
|
|
177
|
-
|
|
|
179
|
+
| Move to another `zuke` | `zuke upgrade --engine [<version>]` (rewrites the launchers and `zuke.json`'s pin; `sync_engine` runs it) |
|
|
178
180
|
| Publish a cut release | `./zuke publish` (the `release` workflow runs it on `main`) |
|
|
181
|
+
| Sync with the engine | `./zuke sync_engine` (the `sync` workflow runs it when the engine repository publishes a CLI release; the pull request needs the App credentials) |
|
|
179
182
|
| Generate the API reference | `./zuke api_reference` (writes `.zuke/api.json`) |
|
|
180
183
|
| Sync it to the website | `./zuke sync_website` (the `release` workflow runs it after `publish`; skipped without the App credentials or `WEBSITE_SYNC_TOKEN`) |
|
|
181
184
|
|
|
182
|
-
`./zuke` (`./zuke.ps1` on Windows) runs
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
`
|
|
188
|
-
the
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
does not name, then run `./zuke lock`. `lock_check` fails the gate when the lock
|
|
193
|
-
is absent, misses a release, or differs from the commit. `.github/workflows/ci.yml` is
|
|
185
|
+
`./zuke` (`./zuke.ps1` on Windows) runs the `zuke` release it pins, downloaded
|
|
186
|
+
and checksum-verified into `~/.zuke` on first use; its built-in
|
|
187
|
+
`@zuke/engine`, the release `zuke.json` pins, starts `build.py` as its worker,
|
|
188
|
+
and every command a target runs goes through the engine. The lock is part of
|
|
189
|
+
the gate: CI runs `uv sync --locked`, so a change to `pyproject.toml` must come
|
|
190
|
+
with a regenerated `uv.lock` in the same commit. The engine side needs no lock:
|
|
191
|
+
the binary carries the exact engine and wrapper releases of the commit it is
|
|
192
|
+
compiled from, and the launchers verify it against the SHA-256 they pin. Never
|
|
193
|
+
hand-edit the launchers or the pin; `zuke upgrade --engine` moves both.
|
|
194
|
+
`.github/workflows/ci.yml` is
|
|
194
195
|
generated from `build.py`'s `ci_workflow` field: edit the field, run
|
|
195
196
|
`./zuke generate-ci`, and commit both; `.github/workflows/ai-review.yml` is
|
|
196
|
-
generated the same way from its `ai_review` field,
|
|
197
|
-
`.github/workflows/release.yml` from its `release_workflow` field
|
|
197
|
+
generated the same way from its `ai_review` field,
|
|
198
|
+
`.github/workflows/release.yml` from its `release_workflow` field, and
|
|
199
|
+
`.github/workflows/sync.yml` from its `sync_workflow` field.
|
|
200
|
+
|
|
201
|
+
**Following the engine.** `sync_engine` runs when the engine repository
|
|
202
|
+
publishes a CLI release: that repository's release pipeline dispatches the
|
|
203
|
+
`sync` workflow, with a `zuke-build` App token scoped to this repository's
|
|
204
|
+
actions, and it can be started by hand from the Actions tab. It finds the
|
|
205
|
+
engine repository's newest `cli-v*` tag, the commit the `zuke` binary of that
|
|
206
|
+
release is compiled from, and does nothing when `spec/engine.json` and the
|
|
207
|
+
cases' `VERSION` already name it. Otherwise it vendors that tag's cases, tool
|
|
208
|
+
spec and wrapper versions, regenerates the facades, runs
|
|
209
|
+
`./zuke upgrade --engine <release>` to move the launchers and `zuke.json`'s
|
|
210
|
+
engine pin to that release, and, with the `zuke-build` App's
|
|
211
|
+
credentials, force-pushes the result to the one `sync/engine` branch: it
|
|
212
|
+
opens an issue and a pull request closing it, or retitles the open one. The
|
|
213
|
+
title is `feat:` when the facades changed and `fix:` otherwise. That tag, not
|
|
214
|
+
a newer engine tag, because the binary embeds exactly its releases: a facade
|
|
215
|
+
must never ask the binary for a wrapper release it lacks. A red gate on the
|
|
216
|
+
sync pull request is the SDK work the release needs.
|
|
198
217
|
|
|
199
218
|
## Repository layout
|
|
200
219
|
|
|
201
220
|
```
|
|
202
221
|
build.py # this repository's Zuke build: the gate, the vendoring, the facades, the CI workflow
|
|
203
222
|
zuke.json # names the worker command and the @zuke/engine version the launchers run
|
|
204
|
-
zuke, zuke.ps1 # the
|
|
223
|
+
zuke, zuke.ps1 # the launchers, which download the pinned zuke binary; zuke upgrade --engine writes them
|
|
205
224
|
pyproject.toml # package metadata, the dev tools, tool config
|
|
206
225
|
uv.lock # the locked development environment
|
|
207
|
-
deno.lock # the engine, the wrappers and @zuke/core, frozen; ./zuke lock rewrites it
|
|
208
226
|
src/zuke/ # the package (src layout): the peer, the worker loop, the authoring surface, the contexts
|
|
209
227
|
src/zuke/tools/ # the generated facades, one module per engine wrapper; never edited by hand
|
|
210
228
|
spec/ # the engine's tool spec and the wrappers' versions, vendored at a tag
|
|
@@ -212,6 +230,7 @@ tests/ # pytest suite; protocol/ replays the engine's conform
|
|
|
212
230
|
.github/workflows/ci.yml # the gate on ubuntu, macOS and Windows, generated from build.py
|
|
213
231
|
.github/workflows/ai-review.yml # the AI review on pull requests and on command, generated from build.py
|
|
214
232
|
.github/workflows/release.yml # release-please and the PyPI publish on main, generated from build.py
|
|
233
|
+
.github/workflows/sync.yml # the engine sync the engine's CLI release dispatches, generated from build.py
|
|
215
234
|
.release-please-config.json, .release-please-manifest.json # the release configuration and the last released version
|
|
216
235
|
.github/ISSUE_TEMPLATE/ # feature, bug and chore templates; blank issues are off
|
|
217
236
|
AGENTS.md # this file; CLAUDE.md points here
|
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.3.0](https://github.com/zuke-build/zuke-python/compare/zuke-v1.2.0...zuke-v1.3.0) (2026-11-04)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* follow the engine's releases automatically, with one standing sync pull request ([#42](https://github.com/zuke-build/zuke-python/issues/42)) ([9a01434](https://github.com/zuke-build/zuke-python/commit/9a01434d40f6f410e6ff399f05f42bed7971e37f))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* sync with the engine at cli-v2.3.0 ([#45](https://github.com/zuke-build/zuke-python/issues/45)) ([de726e1](https://github.com/zuke-build/zuke-python/commit/de726e1b541417d7df7a82abaa5b0ef180c0e118))
|
|
14
|
+
* sync with the engine at cli-v2.4.0 ([#49](https://github.com/zuke-build/zuke-python/issues/49)) ([d9b3371](https://github.com/zuke-build/zuke-python/commit/d9b3371b4800c7e9cdacbcfb14d442a065dcfe04))
|
|
15
|
+
|
|
3
16
|
## [1.2.0](https://github.com/zuke-build/zuke-python/compare/zuke-v1.1.0...zuke-v1.2.0) (2026-11-03)
|
|
4
17
|
|
|
5
18
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: zuke
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.3.0
|
|
4
4
|
Summary: Zuke for Python: author your build as typed Python, run it on the Zuke engine.
|
|
5
5
|
Project-URL: Homepage, https://zuke.build
|
|
6
6
|
Project-URL: Repository, https://github.com/zuke-build/zuke-python
|
|
@@ -62,15 +62,20 @@ describes your build to the engine and runs your target bodies when asked.
|
|
|
62
62
|
main repository's [install guide](https://github.com/zuke-build/zuke/blob/master/docs/install.md).
|
|
63
63
|
|
|
64
64
|
```sh
|
|
65
|
-
deno install -A -g -n zuke jsr:@zuke/cli # any OS, with Deno
|
|
66
65
|
brew install zuke-build/tap/zuke # macOS, Linux
|
|
67
66
|
choco install zuke # Windows
|
|
68
67
|
```
|
|
69
68
|
|
|
69
|
+
`zuke` is a standalone binary that carries the engine and every tool wrapper
|
|
70
|
+
inside it, so a Python build needs **no Deno, anywhere**: only Python and uv,
|
|
71
|
+
on a laptop or a CI runner. Without either package manager, a project's own
|
|
72
|
+
`./zuke` launcher downloads the binary (see below), or take it from the
|
|
73
|
+
[releases](https://github.com/zuke-build/zuke/releases).
|
|
74
|
+
|
|
70
75
|
**2. Scaffold a Python project and run it**:
|
|
71
76
|
|
|
72
77
|
```sh
|
|
73
|
-
zuke setup --sdk python # build.py, zuke.json pinning
|
|
78
|
+
zuke setup --sdk python # build.py, zuke.json, and launchers pinning this zuke
|
|
74
79
|
zuke # run the build
|
|
75
80
|
zuke --list # every target, with its description and dependencies
|
|
76
81
|
```
|
|
@@ -137,24 +142,26 @@ build to an agent as typed tools.
|
|
|
137
142
|
|
|
138
143
|
| What | How |
|
|
139
144
|
| -------------------------------------- | ----------------------------------------------------------------------------------------- |
|
|
140
|
-
| The `zuke` CLI | `
|
|
145
|
+
| The `zuke` CLI | `brew install zuke-build/tap/zuke`, `choco install zuke`, or a project's launcher |
|
|
141
146
|
| This package, into an existing project | `uv add --dev zuke`, or `pip install zuke` |
|
|
142
147
|
| A new project | `zuke setup --sdk python`, which writes `build.py`, `zuke.json` and the launchers |
|
|
143
148
|
|
|
144
|
-
Python 3.12 or newer. The
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
it.
|
|
149
|
+
Python 3.12 or newer. The `zuke` binary runs the build on the engine compiled
|
|
150
|
+
into it whenever that engine serves the `@zuke/engine` release `zuke.json` pins
|
|
151
|
+
(the same major version, at the pin or newer); `zuke --version` names it. A pin
|
|
152
|
+
it cannot serve goes to the project's launcher; it never needs Deno.
|
|
149
153
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
154
|
+
The committed `./zuke` and `zuke.ps1` launchers pin one `zuke` release and the
|
|
155
|
+
SHA-256 of each platform's archive. On first use they download that release
|
|
156
|
+
from GitHub, verify it and keep it in `~/.zuke`, so a machine without the CLI,
|
|
157
|
+
such as a CI runner, runs the build the same way: `./zuke ci`, or
|
|
158
|
+
`./zuke.ps1 ci` on Windows. The generated workflows call them.
|
|
159
|
+
`zuke upgrade --engine` moves the launchers and the pin to a newer release.
|
|
153
160
|
|
|
154
161
|
## How it works
|
|
155
162
|
|
|
156
163
|
```
|
|
157
|
-
zuke <target> ─▶ @zuke/engine (
|
|
164
|
+
zuke <target> ─▶ @zuke/engine (built into the zuke binary)
|
|
158
165
|
│ starts the worker zuke.json names: uv run build.py
|
|
159
166
|
▼
|
|
160
167
|
build.py ◀── JSON-RPC 2.0 over loopback ──▶ engine
|
|
@@ -206,9 +213,10 @@ token exists. From 1.0.1, each file also carries a
|
|
|
206
213
|
[PEP 740](https://peps.python.org/pep-0740/) provenance attestation, signed from
|
|
207
214
|
the release job's identity, which PyPI verifies back to
|
|
208
215
|
`zuke-build/zuke-python`'s `release.yml`; see the **Security** tab of a release
|
|
209
|
-
on [PyPI](https://pypi.org/project/zuke/). Actions are pinned by commit SHA,
|
|
210
|
-
|
|
211
|
-
and `uv.lock` locks the development
|
|
216
|
+
on [PyPI](https://pypi.org/project/zuke/). Actions are pinned by commit SHA,
|
|
217
|
+
the launchers verify the `zuke` binary, which carries the engine and every
|
|
218
|
+
wrapper, against the SHA-256 they pin, and `uv.lock` locks the development
|
|
219
|
+
environment. See
|
|
212
220
|
[`SECURITY.md`](https://github.com/zuke-build/zuke-python/blob/main/SECURITY.md).
|
|
213
221
|
|
|
214
222
|
## Documentation
|
|
@@ -250,11 +258,16 @@ The gate is itself a Zuke build, `build.py`, run by `@zuke/engine` at the
|
|
|
250
258
|
version `zuke.json` pins; `./zuke ci` runs the same gate without the CLI, and
|
|
251
259
|
CI runs it on Ubuntu, macOS and Windows. The tool facades are generated from the
|
|
252
260
|
engine's tool spec, vendored under `spec/`, and `facades_check` fails the gate
|
|
253
|
-
when they drift. The engine
|
|
254
|
-
|
|
261
|
+
when they drift. The engine and every wrapper run from the `zuke` binary the
|
|
262
|
+
launchers pin, checksum-verified. The same AI reviewers
|
|
255
263
|
the main repository runs review this repository's pull requests, from
|
|
256
264
|
`build.py`'s `review` target through `zuke.tools.ai`: the SDK's build is
|
|
257
|
-
reviewed by the SDK.
|
|
265
|
+
reviewed by the SDK. An engine sync, `build.py`'s `sync_engine`, runs whenever
|
|
266
|
+
the engine repository publishes a CLI release, which is what the binary
|
|
267
|
+
carries: it vendors
|
|
268
|
+
that commit's tool spec, wrapper versions and conformance cases, pins its
|
|
269
|
+
engine, regenerates the facades and the lock, and opens one standing pull
|
|
270
|
+
request, with an issue, whose gate shows whether the SDK needs work for it.
|
|
258
271
|
|
|
259
272
|
## Contributing
|
|
260
273
|
|
|
@@ -287,7 +300,8 @@ MIT — see [`LICENSE`](https://github.com/zuke-build/zuke-python/blob/main/LICE
|
|
|
287
300
|
and **[pyright](https://github.com/microsoft/pyright)** — the toolchain this
|
|
288
301
|
package is built, linted and type-checked with.
|
|
289
302
|
- **[Deno](https://deno.com/)** and **[JSR](https://jsr.io/)**, which the engine
|
|
290
|
-
|
|
303
|
+
is written for and compiled with into the `zuke` binary, and
|
|
304
|
+
**[PyPI](https://pypi.org/)** and the
|
|
291
305
|
[PyPA](https://www.pypa.io/), whose trusted publishing and attestations sign
|
|
292
306
|
this package.
|
|
293
307
|
|
|
@@ -43,15 +43,20 @@ describes your build to the engine and runs your target bodies when asked.
|
|
|
43
43
|
main repository's [install guide](https://github.com/zuke-build/zuke/blob/master/docs/install.md).
|
|
44
44
|
|
|
45
45
|
```sh
|
|
46
|
-
deno install -A -g -n zuke jsr:@zuke/cli # any OS, with Deno
|
|
47
46
|
brew install zuke-build/tap/zuke # macOS, Linux
|
|
48
47
|
choco install zuke # Windows
|
|
49
48
|
```
|
|
50
49
|
|
|
50
|
+
`zuke` is a standalone binary that carries the engine and every tool wrapper
|
|
51
|
+
inside it, so a Python build needs **no Deno, anywhere**: only Python and uv,
|
|
52
|
+
on a laptop or a CI runner. Without either package manager, a project's own
|
|
53
|
+
`./zuke` launcher downloads the binary (see below), or take it from the
|
|
54
|
+
[releases](https://github.com/zuke-build/zuke/releases).
|
|
55
|
+
|
|
51
56
|
**2. Scaffold a Python project and run it**:
|
|
52
57
|
|
|
53
58
|
```sh
|
|
54
|
-
zuke setup --sdk python # build.py, zuke.json pinning
|
|
59
|
+
zuke setup --sdk python # build.py, zuke.json, and launchers pinning this zuke
|
|
55
60
|
zuke # run the build
|
|
56
61
|
zuke --list # every target, with its description and dependencies
|
|
57
62
|
```
|
|
@@ -118,24 +123,26 @@ build to an agent as typed tools.
|
|
|
118
123
|
|
|
119
124
|
| What | How |
|
|
120
125
|
| -------------------------------------- | ----------------------------------------------------------------------------------------- |
|
|
121
|
-
| The `zuke` CLI | `
|
|
126
|
+
| The `zuke` CLI | `brew install zuke-build/tap/zuke`, `choco install zuke`, or a project's launcher |
|
|
122
127
|
| This package, into an existing project | `uv add --dev zuke`, or `pip install zuke` |
|
|
123
128
|
| A new project | `zuke setup --sdk python`, which writes `build.py`, `zuke.json` and the launchers |
|
|
124
129
|
|
|
125
|
-
Python 3.12 or newer. The
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
it.
|
|
130
|
+
Python 3.12 or newer. The `zuke` binary runs the build on the engine compiled
|
|
131
|
+
into it whenever that engine serves the `@zuke/engine` release `zuke.json` pins
|
|
132
|
+
(the same major version, at the pin or newer); `zuke --version` names it. A pin
|
|
133
|
+
it cannot serve goes to the project's launcher; it never needs Deno.
|
|
130
134
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
135
|
+
The committed `./zuke` and `zuke.ps1` launchers pin one `zuke` release and the
|
|
136
|
+
SHA-256 of each platform's archive. On first use they download that release
|
|
137
|
+
from GitHub, verify it and keep it in `~/.zuke`, so a machine without the CLI,
|
|
138
|
+
such as a CI runner, runs the build the same way: `./zuke ci`, or
|
|
139
|
+
`./zuke.ps1 ci` on Windows. The generated workflows call them.
|
|
140
|
+
`zuke upgrade --engine` moves the launchers and the pin to a newer release.
|
|
134
141
|
|
|
135
142
|
## How it works
|
|
136
143
|
|
|
137
144
|
```
|
|
138
|
-
zuke <target> ─▶ @zuke/engine (
|
|
145
|
+
zuke <target> ─▶ @zuke/engine (built into the zuke binary)
|
|
139
146
|
│ starts the worker zuke.json names: uv run build.py
|
|
140
147
|
▼
|
|
141
148
|
build.py ◀── JSON-RPC 2.0 over loopback ──▶ engine
|
|
@@ -187,9 +194,10 @@ token exists. From 1.0.1, each file also carries a
|
|
|
187
194
|
[PEP 740](https://peps.python.org/pep-0740/) provenance attestation, signed from
|
|
188
195
|
the release job's identity, which PyPI verifies back to
|
|
189
196
|
`zuke-build/zuke-python`'s `release.yml`; see the **Security** tab of a release
|
|
190
|
-
on [PyPI](https://pypi.org/project/zuke/). Actions are pinned by commit SHA,
|
|
191
|
-
|
|
192
|
-
and `uv.lock` locks the development
|
|
197
|
+
on [PyPI](https://pypi.org/project/zuke/). Actions are pinned by commit SHA,
|
|
198
|
+
the launchers verify the `zuke` binary, which carries the engine and every
|
|
199
|
+
wrapper, against the SHA-256 they pin, and `uv.lock` locks the development
|
|
200
|
+
environment. See
|
|
193
201
|
[`SECURITY.md`](https://github.com/zuke-build/zuke-python/blob/main/SECURITY.md).
|
|
194
202
|
|
|
195
203
|
## Documentation
|
|
@@ -231,11 +239,16 @@ The gate is itself a Zuke build, `build.py`, run by `@zuke/engine` at the
|
|
|
231
239
|
version `zuke.json` pins; `./zuke ci` runs the same gate without the CLI, and
|
|
232
240
|
CI runs it on Ubuntu, macOS and Windows. The tool facades are generated from the
|
|
233
241
|
engine's tool spec, vendored under `spec/`, and `facades_check` fails the gate
|
|
234
|
-
when they drift. The engine
|
|
235
|
-
|
|
242
|
+
when they drift. The engine and every wrapper run from the `zuke` binary the
|
|
243
|
+
launchers pin, checksum-verified. The same AI reviewers
|
|
236
244
|
the main repository runs review this repository's pull requests, from
|
|
237
245
|
`build.py`'s `review` target through `zuke.tools.ai`: the SDK's build is
|
|
238
|
-
reviewed by the SDK.
|
|
246
|
+
reviewed by the SDK. An engine sync, `build.py`'s `sync_engine`, runs whenever
|
|
247
|
+
the engine repository publishes a CLI release, which is what the binary
|
|
248
|
+
carries: it vendors
|
|
249
|
+
that commit's tool spec, wrapper versions and conformance cases, pins its
|
|
250
|
+
engine, regenerates the facades and the lock, and opens one standing pull
|
|
251
|
+
request, with an issue, whose gate shows whether the SDK needs work for it.
|
|
239
252
|
|
|
240
253
|
## Contributing
|
|
241
254
|
|
|
@@ -268,7 +281,8 @@ MIT — see [`LICENSE`](https://github.com/zuke-build/zuke-python/blob/main/LICE
|
|
|
268
281
|
and **[pyright](https://github.com/microsoft/pyright)** — the toolchain this
|
|
269
282
|
package is built, linted and type-checked with.
|
|
270
283
|
- **[Deno](https://deno.com/)** and **[JSR](https://jsr.io/)**, which the engine
|
|
271
|
-
|
|
284
|
+
is written for and compiled with into the `zuke` binary, and
|
|
285
|
+
**[PyPI](https://pypi.org/)** and the
|
|
272
286
|
[PyPA](https://www.pypa.io/), whose trusted publishing and attestations sign
|
|
273
287
|
this package.
|
|
274
288
|
|
|
@@ -40,14 +40,13 @@ fixes.
|
|
|
40
40
|
- **Locked development environment.** The tools that build, lint and test the
|
|
41
41
|
package are pinned in `uv.lock`, and CI installs them with `uv sync --locked`,
|
|
42
42
|
which refuses a lock that disagrees with `pyproject.toml`.
|
|
43
|
-
- **
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
differs
|
|
49
|
-
|
|
50
|
-
from the commit.
|
|
43
|
+
- **Pinned, verified engine and wrappers.** The engine and every tool wrapper
|
|
44
|
+
run from the standalone `zuke` binary, which carries them at the exact
|
|
45
|
+
releases of the commit it is compiled from. The `./zuke` and `zuke.ps1`
|
|
46
|
+
launchers pin one `zuke` release and the SHA-256 of each platform's archive,
|
|
47
|
+
read from that release's own `SHA256SUMS`, and refuse a download whose digest
|
|
48
|
+
differs; a GitHub release is immutable once published. `zuke upgrade --engine`
|
|
49
|
+
is the one thing that moves the pin.
|
|
51
50
|
- **No shell strings.** Every subprocess a build runs goes through the engine as
|
|
52
51
|
a discrete argv array; the SDK never builds a shell command line.
|
|
53
52
|
- **Loopback only, per-run token.** The worker connects to the engine on
|