Skip to content

floatboat: add the Floatboat provider package - #1462

Open
cat-clash wants to merge 1 commit into
magpie-community:mainfrom
cat-clash:packages/floatboat
Open

cat-clash wants to merge 1 commit into
magpie-community:mainfrom
cat-clash:packages/floatboat

Conversation

@cat-clash

Copy link
Copy Markdown

Adds @magpie-community/opencode-floatboat-auth (folder packages/floatboat) and its registry.json entry, so Floatboat shows up in magpie's Discover as a provider.

Why this package exists: the upstream plugin baijiu666//magpie-Floatboat is installed from GitHub — there is no npm package, and its own README documents that magpie plugin add xxx.tgz is broken, so it ships a manual folder install. A registry.json entry has to name an npm package, so the registry had nothing to point at.

What it is: the upstream index.mjs and src/ vendored byte-for-byte from v0.1.5 (MIT, Copyright (c) 2026 baijiu, LICENSE carried over), with only package.json metadata and a new README changed. That README says so, and says how to pull an upstream update (copy index.mjs and src/, bump the version).

What the plugin does: signs in to a Floatboat account the way the desktop app does (a one-off Chromium profile catches the aoe://…?code=… deep link, POST /api/desktop/auth/exchange, then POST /api/desktop/newapi/key for the gateway sk- key), and forwards chat through newapi.aoe.chat. 13 model ids, the account's credit balance as a wallet window, and the two signup bonuses claimed automatically. It injects no system prompt.

Checked:

  • bun scripts/check.mjs floatboat → ✓ registry.json, ✓ floatboat (OpenCode 1.x and 2.x loading; opencode.mjs / opencode2.mjs follow the package pattern, opencode2.mjs is the byte-identical shared copy)
  • bun test ./packages/floatboat → 2 pass (hooks shape and the 13-model table, offline)
  • manually on Windows, magpie 0.1.4676: magpie plugin add github:baijiu666/magpie-Floatboat + magpie plugin login floatboat against a real account → floatboat (Floatboat, 13 models) signed in, GET /v1/models lists the 13 floatboat/* ids

Not upstream-compatible on purpose: this is a vendor copy, not a fork; bug reports about the plugin's behaviour belong upstream.

There is also #1460, a skill for the same provider. The two are independent — say if you'd rather have only one of them.

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