Repository navigation
CodeRouter handoff with cmux authentication #18953
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
559a4f6
feat: add native CodeRouter handoff with cmux auth
azooz2003-bit 71ece96
fix: complete CodeRouter handoff translations
azooz2003-bit 7eb23be
fix: allow tagged release handoff verification
azooz2003-bit b9352c8
Merge origin/main into CodeRouter handoff
azooz2003-bit File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| name: coderouter CLI | ||
|
|
||
| on: | ||
| pull_request: | ||
| paths: | ||
| - "coderouter/**" | ||
| - ".github/workflows/coderouter-*.yml" | ||
| push: | ||
| branches: [main] | ||
| paths: | ||
| - "coderouter/**" | ||
| - ".github/workflows/coderouter-*.yml" | ||
|
|
||
| permissions: {} | ||
|
|
||
| concurrency: | ||
| group: coderouter-ci-${{ github.event.pull_request.number || github.ref }} | ||
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | ||
|
|
||
| jobs: | ||
| test: | ||
| runs-on: ${{ github.repository_owner != 'manaflow-ai' && 'ubuntu-24.04' || github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository && 'blacksmith-4vcpu-ubuntu-2404' || vars.LINUX_RUNNER || 'blacksmith-4vcpu-ubuntu-2404' }} | ||
| permissions: | ||
| contents: read | ||
| defaults: | ||
| run: | ||
| working-directory: coderouter | ||
| steps: | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: dtolnay/rust-toolchain@4360b52568e2003a75bf9bc1d59f33a8e3fc893c | ||
| with: | ||
| toolchain: 1.94.0 | ||
| components: clippy,rustfmt | ||
| - uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.2 | ||
| with: | ||
| workspaces: coderouter | ||
| - run: cargo fmt --all -- --check | ||
| - run: cargo clippy --locked --all-targets -- -D warnings | ||
| - run: cargo test --locked --all-targets | ||
| - run: node scripts/check-version.mjs | ||
| - run: npm pack --dry-run | ||
| working-directory: coderouter/npm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| name: coderouter publish npm | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| version: | ||
| description: Stable X.Y.Z CodeRouter release version | ||
| required: true | ||
| type: string | ||
|
|
||
| permissions: {} | ||
|
|
||
| concurrency: | ||
| group: coderouter-publish-npm-${{ inputs.version }} | ||
| cancel-in-progress: false | ||
|
|
||
| jobs: | ||
| publish: | ||
| runs-on: ubuntu-latest # github-hosted-required: npm provenance needs a GitHub-hosted runner | ||
| environment: | ||
| name: npm-coderouter | ||
| url: https://www.npmjs.com/package/coderouter | ||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
| steps: | ||
| - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | ||
| with: | ||
| node-version: "22.14.0" | ||
| registry-url: https://registry.npmjs.org | ||
| - name: Download verified npm package | ||
| env: | ||
| GH_TOKEN: ${{ github.token }} | ||
| VERSION: ${{ inputs.version }} | ||
| run: | | ||
| set -euo pipefail | ||
| [[ "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] | ||
| mkdir dist | ||
| gh release download "coderouter-v$VERSION" \ | ||
| --pattern coderouter-npm-launcher.tgz \ | ||
| --pattern SHA256SUMS \ | ||
| --dir dist | ||
| ( | ||
| cd dist | ||
| grep 'coderouter-npm-launcher.tgz$' SHA256SUMS \ | ||
| | sha256sum --check | ||
| ) | ||
| package_json="$(tar -xOf \ | ||
| dist/coderouter-npm-launcher.tgz \ | ||
| package/package.json)" | ||
| [[ "$(jq -r .version <<<"$package_json")" == "$VERSION" ]] | ||
| [[ "$(jq -r .license <<<"$package_json")" == "GPL-3.0-or-later" ]] | ||
| - run: npm install -g npm@11.5.1 | ||
| - name: Publish through npm trusted publishing | ||
| run: npm publish --provenance ./dist/coderouter-npm-launcher.tgz | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| name: coderouter publish pypi | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| version: | ||
| description: Stable X.Y.Z CodeRouter release version | ||
| required: true | ||
| type: string | ||
|
|
||
| permissions: {} | ||
|
|
||
| concurrency: | ||
| group: coderouter-publish-pypi-${{ inputs.version }} | ||
| cancel-in-progress: false | ||
|
|
||
| jobs: | ||
| publish: | ||
| runs-on: ubuntu-latest # github-hosted-required: PyPI trusted publishing needs a GitHub-hosted runner | ||
| environment: | ||
| name: pypi-coderouter | ||
| url: https://pypi.org/project/coderouter/ | ||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
| steps: | ||
| - name: Download verified wheels | ||
| env: | ||
| GH_TOKEN: ${{ github.token }} | ||
| VERSION: ${{ inputs.version }} | ||
| run: | | ||
| set -euo pipefail | ||
| [[ "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] | ||
| mkdir dist | ||
| gh release download "coderouter-v$VERSION" \ | ||
| --pattern 'coderouter-*.whl' \ | ||
| --pattern SHA256SUMS \ | ||
| --dir dist | ||
| ( | ||
| cd dist | ||
| grep 'coderouter-.*\.whl$' SHA256SUMS | sha256sum --check | ||
| ) | ||
| [[ "$(find dist -name 'coderouter-*.whl' | wc -l)" -eq 5 ]] | ||
| rm dist/SHA256SUMS | ||
| - name: Publish through PyPI trusted publishing | ||
| uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # release/v1 | ||
| with: | ||
| packages-dir: dist | ||
| attestations: true |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📐 Maintainability & Code Quality | 🟠 Major | ⚡ Quick win
Make the guard accept the trusted-publishing runner exceptions. CI is blocked because
tests/test_ci_self_hosted_guard.shrejectsruns-on: ubuntu-latest, and thegithub-hosted-requiredcomment does not satisfy it. Both jobs need GitHub-hosted runners for OIDC trusted publishing and provenance..github/workflows/coderouter-publish-npm.yml#L19-L19: use the exception form that the guard accepts, or allowlist this job in the guard..github/workflows/coderouter-publish-pypi.yml#L19-L19: apply the same exception form or allowlist entry.🧰 Tools
🪛 GitHub Actions: v1;sha=559a4f640ea9f0d528d03c9fdd00ab8a24f379df;ref=codex/coderouter-handoff-replacement-v2;cache=r2;release=arm64;coverage=compile-only / 8_guards _ workflow-guard-tests _ preflight.txt
[error] 19-19: Command './tests/test_ci_self_hosted_guard.sh' failed: the GitHub-hosted runner label 'ubuntu-latest' violates the self-hosted runner guard. Use a Blacksmith label with the fork branch, a runner variable with a Blacksmith fallback, or the CI_TRUSTED_RUNNER selector.
🪛 GitHub Actions: v1;sha=559a4f640ea9f0d528d03c9fdd00ab8a24f379df;ref=codex/coderouter-handoff-replacement-v2;cache=r2;release=arm64;coverage=compile-only / guards _ workflow-guard-tests _ preflight
[error] 19-19: GitHub-hosted runner label guard failed in
./tests/test_ci_self_hosted_guard.sh:runs-on: ubuntu-latestrequires an exception or a Blacksmith-compatible runner configuration.📍 Affects 2 files
.github/workflows/coderouter-publish-npm.yml#L19-L19(this comment).github/workflows/coderouter-publish-pypi.yml#L19-L19🤖 Prompt for AI Agents
Source: Pipeline failures