Repository navigation
feat(ready-for-agent): package pinned npm release as a Nix derivation + register deploy target (#12909) - #12984
Conversation
…tion + register the deploy target (#12909) ready-for-agent was the one #12768 service with no derivation to point a deploy definition at: an npm-pinned 1.1.0 install into ~/.local by pm-stack/ready-for-agent/install.sh. This slice packages it and registers it; the pm-apps unit's ExecStart cutover stays with the bundled #12768/#1752 slice. - pkgs/ready-for-agent/package.nix: the pinned 1.1.0 launcher + linux-x64 platform tarballs with fixed hashes. The launcher is a thin JS script that resolves the platform package through node's module resolution and spawns its Bun-compiled ELF, so the npm layout (platform package nested in the launcher's node_modules) is reproduced verbatim and the launcher runs unmodified; autoPatchelfHook patches the ELF (pkgs/claude-code shape). versionCheckHook asserts --version reports 1.1.0 in the build. - lib/default.nix: ready-for-agent package + app in make-pm-stack; the deploy-list check now greps for it. - pkgs/deploy/default.nix + services.nix: the ready-for-agent definition (bin/ready-for-agent, start --no-open, port 6056, health http://127.0.0.1:6056/, laptop/systemd) replacing the #12768 deferral comment. Verification (laptop worktree off origin/main): - nix build .#ready-for-agent succeeds; the result runs --version -> "ready-for-agent v1.1.0". - nix eval .#deployTargets.x86_64-linux: 19 targets including ready-for-agent with the definition fields above.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 27 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
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: 58e0754449
ℹ️ 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".
| pmTunnel = cloudflared; | ||
| # Issue #12909: ready-for-agent, packaged from its pinned npm | ||
| # tarballs — the last of the four #12768 services to register. | ||
| readyForAgent = callPackage ../ready-for-agent/package.nix { }; |
There was a problem hiding this comment.
Restrict the x86-only deploy target to supported systems
On aarch64-linux, this unconditional dependency prevents the entire deploy CLI from evaluating, including for unrelated services. make-deploy exports the CLI through eachDefaultSystem, and jsonDefinitions coerces every registered package to its store path, forcing evaluation of ready-for-agent despite its meta.platforms = [ "x86_64-linux" ]. The existing registry dependencies support ARM Linux, so this introduces a platform regression. Filter this registration to supported systems or provide an ARM payload, and adjust the corresponding list check if filtering.
Useful? React with 👍 / 👎.
Summary
Packages ready-for-agent 1.1.0 as a Nix derivation and registers it as a deploy target — the #12909 slice split from #12768, where ready-for-agent was the one service of the four with no derivation to point a registry definition at.
pkgs/ready-for-agent/package.nix— the pinned 1.1.0 launcher + linux-x64 platform tarballs with fixed hashes. The launcher is a thin JS script that resolves the platform package through node's module resolution and spawns its Bun-compiled ELF, so the npm layout (platform package nested in the launcher'snode_modules) is reproduced verbatim and the launcher runs unmodified;autoPatchelfHookpatches the ELF (the pkgs/claude-code shape).versionCheckHookasserts--versionin the build.lib/default.nix—ready-for-agentpackage + app in make-pm-stack; the deploy-list check now greps for it.pkgs/deploy/default.nix+services.nix— theready-for-agentdefinition (entryPointbin/ready-for-agent, argsstart --no-open, ports [6056], healthCheckhttp://127.0.0.1:6056/, useruser, targets [laptop], classsystemd) replacing the deploy: register the PM-stack services (aggregator, projector, tunnel, ready-for-agent) as deploy targets #12768 deferral comment.Out of scope, per the issue: the pm-apps unit switching its ExecStart to the store binary — that's the bundled cutover on #12768/#1752.
Evidence
nix build .#ready-for-agentsucceeds (install check included); the result runs--version→ready-for-agent v1.1.0.nix eval .#deployTargets.x86_64-linux— 19 targets includingready-for-agent, definition fields as specified.deploy listrun against the built CLI: see the completion record on package ready-for-agent as a Nix derivation for deploy-target registration (#12768 remainder) #12909 (the registry JSON build compiles the fleet package; result recorded there).Merge danger
Two-way door; additive package + registry definition. Nothing activates the new target — registration only, like the other three pm-stack targets (#12768). Blast radius: the deploy registry gains one row; the running service still runs the imperative ~/.local install under the pm-apps module.
Closes #12909.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.