feat: axon list with pagination and api-client upgrade#184
Merged
Conversation
Migrate devbox tunnel creation from removed createTunnel to enableTunnel and build the V2 tunnel URL from tunnel_key and port.
Add axonService and rli axon list with --limit and --starting-after, following the paginated GET /v1/axons contract (has_more + starting_after).
dines-rl
reviewed
Apr 2, 2026
dines-rl
reviewed
Apr 2, 2026
dines-rl
reviewed
Apr 2, 2026
dines-rl
reviewed
Apr 2, 2026
- Reuse formatTimeAgo from ResourceListView like other list commands - Inline multi-page fetch loop; drop fetchAllAxons helper - Centralize tunnel hostname and URL pattern in utils/url (dev vs prod)
- Mock useViewportHeight with a stable factory (restoreMocks cleared jest.fn impls, leaving PAGE_SIZE undefined so fetches never ran) - Replace fixed 50ms delays with waitForFrame polling up to 10s - Apply same viewport mock pattern in setup.ts and setup-router.ts
- Align axon list with cursor page type and pass AxonListParams to list() - Skip benchmark outcome rows with missing scenario_run_id for Map keys
dines-rl
approved these changes
Apr 2, 2026
tode-rl
pushed a commit
that referenced
this pull request
Apr 3, 2026
🤖 I have created a release *beep* *boop* --- ## [1.15.0](v1.14.0...v1.15.0) (2026-04-03) ### Features * axon list with pagination and api-client upgrade ([#184](#184)) ([dc9743e](dc9743e)) * **cli:** add some (hidden) agent handling commands ([#187](#187)) ([1a92f5f](1a92f5f)) ### Bug Fixes * clean stdout for --config-only when appending SSH config ([#192](#192)) ([4428295](4428295)) * **cli:** account for pending scenarios in rli display ([#185](#185)) ([c82d528](c82d528)) * widen VERSION column in agent list to prevent truncation ([#190](#190)) ([c7eba09](c7eba09)) ### Performance Improvements * fetch total count in the background, not foreground ([#189](#189)) ([0903d89](0903d89)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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
Adds CLI support for listing active axons with cursor-style pagination (
limit,starting_after,has_more), matching the updated backend contract.Changes
@runloop/api-clientto1.14.1(includesclient.axonsand other API updates).createTunnelwithenableTunneland construct the V2 tunnel URL fromtunnel_keyand port (required for the upgraded client to compile).rli axon listwith--limit,--starting-after, and-o/--output(text default; json/yaml supported). Default--limit 0means fetch all pages when not using--starting-after.listActiveAxonspasses query params via requestqueryand reads optionalhas_morefrom the JSON response (forward-compatible until the published client types catch up).docs:commands.Usage
Testing
pnpm run build— passpnpm test— unit/router tests pass; e2e fails without a validRUNLOOP_API_KEY(pre-existing environment constraint)Slack Thread