Skip to content

feat: only proxy debug to the Restless CLI, now published as restless - #1199

Merged
erunion merged 1 commit into
mainfrom
migrate-to-restless
Aug 18, 2026
Merged

feat: only proxy debug to the Restless CLI, now published as restless#1199
erunion merged 1 commit into
mainfrom
migrate-to-restless

Conversation

@mjcuva

@mjcuva mjcuva commented Aug 18, 2026

Copy link
Copy Markdown
Member

Now that we own the restless name on npm we are going to use that instead for most of the commands! The only exception is the debug command which is end user facing. Since they won't know what restless is we will still use the api namespace for that.

This gets surfaced in API responses from restless like this:

{
  "error": {
    "code": "not_found",
    "message": "No project `test-api` you can access."
  },
  "debug": {
    "log": "https://ingress.restless.ai/logs/8874984b-51d6-44ed-9dfc-10de706a1511",
    "cli": "npx api debug 8874984b-51d6-44ed-9dfc-10de706a1511",
    "recovery": "For the accepted parameters and next steps, fetch https://ingress.restless.ai/p/8874984b-51d6-44ed-9dfc-10de706a1511/unknown.md"
  }
}

…ess`

The Restless CLI moved from `@restlessai/cli` to `restless` on npm, so
point the dispatcher at the new package.

Also invert the routing: instead of blindly proxying every unrecognized
invocation to Restless, only `debug` is dispatched so that `npx api debug`
works. Everything else falls through to our own Commander program, which
now reports unknown commands rather than shelling out.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Aug 18, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: aef7173

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
api Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@mjcuva
mjcuva marked this pull request as ready for review August 18, 2026 20:56
@mjcuva
mjcuva requested a review from erunion as a code owner August 18, 2026 20:56
@erunion
erunion merged commit 46f53e6 into main Aug 18, 2026
9 checks passed
@erunion
erunion deleted the migrate-to-restless branch August 18, 2026 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants