Repository navigation
feat: one-command onboarding (axl install, login, enrollment, status, service) - #7
Conversation
…ss ingress entries
…nt before userinfo
…k up replaced links, ignore relative PATH
…ping, narrow purge
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c6f55a5fea
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if port != DEFAULT_PORT { | ||
| cfg.port = Some(port); | ||
| cfg.server_url = Some(format!("http://127.0.0.1:{port}")); |
There was a problem hiding this comment.
Preserve remote server URLs when saving a local service port
If a machine is already logged in to a remote server, running axl service install --port 8000 unconditionally replaces its saved server_url with the local address while retaining the remote server's token. Subsequent bridges and hooks therefore connect to the local database with an invalid credential, breaking the existing remote setup. Preserve an explicitly configured remote URL here; only update the client URL when it is unset or points to the previous local service.
Useful? React with 👍 / 👎.
| Some(fix), | ||
| )); | ||
| } | ||
| Err(e) => lines.push(line("token", format!("could not check ({e})"), None)), |
There was a problem hiding this comment.
Mark failed token checks as an unsuccessful status
If /readyz succeeds but the subsequent /v1/whoami request times out or loses its connection, this branch reports that the token could not be checked without attaching a fix. Since status_with calculates success solely from whether any line has a fix, an otherwise configured machine then returns exit code 0 despite never establishing that its token works. Mark this outcome unsuccessful and provide a retry action so scripts and the onboarding installer do not treat an incomplete authentication check as success.
Useful? React with 👍 / 👎.
…timeout 10, redacting Debug
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6ed4522720
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if has_token && current == url { | ||
| if args.code.is_some() { |
There was a problem hiding this comment.
Validate the saved token before skipping enrollment
If the saved token has been revoked, or the server database has been replaced at the same URL, the UI's axl install --server URL --code CODE command cannot reconnect the machine: this branch treats the presence of any token file as proof of authentication and skips the new code, even with --force. Since check_server only calls the unauthenticated /readyz endpoint, installation can report success while every bridge remains unauthorized. Check the saved token with whoami before taking this shortcut, and allow enrollment when the server rejects it.
Useful? React with 👍 / 👎.
…en, revalidate saved token on install
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3f22cb163b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| let running = matches!(ctl.status(), Ok(ServiceState::Running)); | ||
| if !running && !port_free(spec.port) { |
There was a problem hiding this comment.
Check port availability when changing a running service's port
If Axle is already running on port 7420 and another process holds port 8000, axl service install --port 8000 skips this check merely because the existing service is running. Both service implementations then replace the configuration and restart Axle, which cannot bind the occupied port, taking a working server offline. Only bypass the availability check when the requested port is the one the running service currently uses; reject an occupied replacement port before modifying or restarting the service.
Useful? React with 👍 / 👎.
|
@codex review |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Getting a machine onto Axle used to mean minting a token on the server and hand-editing each harness's config. This makes it one command.
What's new
axl install: detects Claude Code, Codex and OpenCode and sets each one up (MCP bridge, hooks, instructions). It can be re-run safely, adopts hand-made setups from the old docs, keeps backups, and records everything in~/.axl/install-manifest.json. With no server configured it asks whether to run Axle locally (a launchd/systemd user service) or connect to a server, and logs in when needed.--dry-runshows the diff and writes nothing.~/.claude/skills/axle, with a user-scope fallback.[mcp_servers.axle], a hooks block between# >>> axle >>>markers, and an AGENTS.md block.axl hooknow understands Codex payloads (--harness codex).mcp.axle(JSONC comments preserved, otherwise a manual-step snippet) and an AGENTS.md block.curl -fsSL https://<server>/install.sh | sh -s -- <CODE>.axl login <url>: browser approval (device flow) at/ui/connect, or--code.axl logout [--revoke].axl status: one screen covering server, token, service and each harness, with the fix command for every problem.axl service: install/start/stop/restart/status/logs for the local server.axl uninstall [--service [--purge]] [--revoke]: removes exactly what install recorded./v1/enroll,/v1/login/{start,poll},/v1/whoami,/v1/token/revokeandGET /install.shAXL_PUBLIC_URL(HelmpublicUrl) andAXL_TRUSTED_PROXY_HEADER0003_enrollmentfor SQLite and Postgresdocs/cli.md, updated quickstart, harness guides, security, configuration, HTTP API and deploy docs.Design:
docs/superpowers/specs/2026-11-27-onboarding-design.md. Plan:docs/superpowers/plans/2026-11-27-onboarding.md.Testing
cargo test --features pg-tests: 496 passed, on SQLite and Postgres.install.shchecked with shellcheck and run under dash-D warnings, fmt andtests/helm.share clean.