feat!: reboot CLI as the agentage Memory client (setup + status)#197
Merged
Conversation
BREAKING CHANGE: all agent-runtime commands and the local daemon are removed. - setup: OAuth 2.1 sign-in (DCR + PKCE, localhost callback); --disconnect, --reauth, --no-browser - status: target, sign-in state (introspection), endpoint health; --json - stateless CLI: ~/.agentage holds credentials only (auth.json, 0600) - deps reduced to chalk + commander + open; package guard test keeps it that way - 50 unit tests, coverage 92/83/85/93
Contributor
|
🎉 PR Validation ✅ PASSED Commit: Checks:
Ready to merge! ✨ 🔗 View workflow run |
- e2e/: helpers (CLI machine, throwaway-account session, authorize-URL poll), @smoke status/version, @p0 full headless sign-in round trip vs live dev - self-contained: E2E_AUTH_* secrets optional, signs up a throwaway user otherwise - e2e.yml runs it on every PR/master push; verify now type-checks e2e/ - verified live: 4/4 green vs dev
Member
Author
|
Moved the e2e suite INTO this repo per review direction: |
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.
What
v0.25.0 - the CLI is now the agentage Memory client. Foundation release: two commands, zero daemons, e2e in-repo.
agentage setup- OAuth 2.1 sign-in: fresh DCR public client per run + PKCE + one-shot localhost callback; tokens in~/.agentage/auth.json(0600). Flags:--disconnect(revoke + remove),--reauth,--no-browser(prints the URL; also the lever the e2e uses).agentage status- one line per fact: version, target, sign-in state (validated via OAuth introspection, auto refresh-once), endpoint health.--jsonsupported.e2e/(Playwright) -@smokeversion + degraded status;@p0full headless sign-in round trip against live dev (the test plays "the browser": session cookie -> authorize 302 -> the CLI's localhost callback). Self-contained - signs up a throwaway dev account whenE2E_AUTH_*secrets are absent. Runs on every PR viae2e.yml.Removed (BREAKING): every agent-runtime command (run/agents/runs/machines/schedules/projects/vault/daemon/logs/create/config/whoami/completions/update), the local daemon, hub sync, discovery - ~18k LOC. Runtime deps reduced to
chalk + commander + open;src/package-guard.test.tskeeps it that way in CI.Why
The CLI is rebooting around agentage Memory (vault feature
memory-cli, v0.1 foundation).whoamifolded intostatus.connect/clonecome next as 0.2/0.3.Notes for review
setuprun because the registered redirect URI binds the ephemeral callback port (one per run - far under the DCR rate cap).Verified (live against dev)
Full headless round trip - run by hand AND as the in-repo e2e suite:
npm run verifygreen: 49 unit tests, coverage 92/83/85/93 (thresholds 65/70/70/70). Thee2e.ymlcheck on this PR runs the same suite from CI.Follow-ups (separate PRs)
agentage/web: OAuth-bearer bridge in backendrequireAuthso status can show email/plan/memoriesnpm deprecatethe 0.24.x agent-runtime line