Skip to content

feat(desktop): the manifest says how Desktop signs beeline in, in its window - #41

Merged
leemour merged 1 commit into
mainfrom
feat/signin-methods
Nov 18, 2026
Merged

leemour merged 1 commit into
mainfrom
feat/signin-methods

Conversation

@leemour

@leemour leemour commented Nov 18, 2026

Copy link
Copy Markdown
Member

Task

WireCat Desktop should sign in to beeline (an own tool) inside the app window, not only at a terminal.

Why

cli-base 0.117.0 (WireCatLabs/cli-base#645) lets the manifest declare desktop.signIn.methods. Desktop runs such a method in its window (WireCatLabs/wirecat-desktop#422).

What

  • DESKTOP.signIn.methods: { id: "token", label: "API token", words: ["{profile}", "session", "start", "--json"], stdin: true }.
  • @wirecat/cli-base 0.104.0 → 0.117.0; contracts/wirecat.json regenerated (only signIn.methods changes).
  • Changelog fragment changes/feat-signin-methods.md.

Testing

  • Built CLI in a throwaway HOME, config and state folders, DBUS_SESSION_BUS_ADDRESS=disabled:, no sign-in: beeline work session start --json --credential-storage file </dev/null and with whitespace on stdin both answer {"error":{"code":"validation_error","reason":"input.invalid","message":"no token was given",...}}, exit 2, with no network call. So it reads the token from stdin under --json.
  • pnpm typecheck, lint, lint:commands, docs:check, standards:check, test:matrix:check, vitest (139 passed), pnpm generate.

Do not release yet: it needs the owner's live check, and Desktop 0.7.1 already reads signIn.methods but shows no token field for it, so the window sign-in only works with a Desktop that has #422.

🤖 Generated with Claude Code

… window

WireCat Desktop offered only "sign in in a terminal" for beeline. With cli-base
0.117.0 the manifest declares signIn.methods: the token method runs
`beeline <profile> session start --json` with the API token as its whole stdin,
which session start already reads (checked with the built CLI and empty stdin:
it answers validation_error "no token was given", without the network).

Bumps @wirecat/cli-base 0.104.0 → 0.117.0 and regenerates contracts/wirecat.json;
nothing else in it changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​wirecat/​cli-base@​0.117.0981001009670

View full report

@leemour
leemour merged commit a7174a6 into main Nov 18, 2026
16 checks passed
@leemour
leemour deleted the feat/signin-methods branch November 18, 2026 10:10
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.

1 participant