feat: logout, machines, agents --all, run agent@machine#52
Merged
Conversation
- Logout command: deregisters from hub, deletes auth.json, daemon continues standalone - Machines command: lists machines from hub with name, platform, status, last seen. --json flag. 401 when not logged in. - Agents --all: queries hub for aggregated agents across all machines, shows machine name + status columns - Run agent@machine: parses agent@machine syntax, resolves machine name to ID via hub, creates remote run, polls hub for events (MVP polling approach, ~1s latency) - Hub proxy routes: added GET /api/hub/runs/:id and GET /api/hub/runs/:id/events for remote run polling - Hub client: added getRun, getRunEvents methods - 131 tests passing
|
🎉 PR Validation ✅ PASSED Commit: Checks:
Ready to merge! ✨ 🔗 View workflow run |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Final CLI commands for hub integration — complete multi-machine experience.
agentage logout— deregisters from hub (best-effort), deletesauth.json, daemon continues standaloneagentage machines— lists machines from hub with name, platform, status, last seen.--jsonflag. Returns 401 when not logged in.agentage agents --all— queries hub for aggregated agents across all machines. Shows machine name + status columns. Falls back to local-only without--all.agentage run deploy@server-1 "deploy staging"— parsesagent@machinesyntax, resolves machine name to ID, creates remote run via hub, polls for events (~1s latency, MVP approach). Plainagentage run hello "hi"still runs locally.GET /api/hub/runs/:id,GET /api/hub/runs/:id/events?after=for remote run event pollinggetRun,getRunEventsmethodsUser experience after this PR
Test plan
npm run verifypasses (type-check + lint + format + 131 tests + build)