Files
plugins/packages/tabbit/package.json
T
Binyu Wang 7d84184c32 tabbit 0.1.2: send a fresh unique-uuid on every call, so web.tabbit.ai's sign-in gate lets chat turns through (#837)
web.tabbit.ai answers a chat turn's runs call with 429, code 492 ("Welcome
to Tabbit Browser...") unless the request carries a unique-uuid header.
Tabbit Browser sends a fresh uuid on every API call (a net-export capture
showed four different values across runs, two joins and usage), and the
gate accepts any well-formed one. headersFor now adds
crypto.randomUUID() as unique-uuid to every request, on both sites.
Version 0.1.2; the README's international-site note describes the gate
instead of saying turns are refused (#834).

Test: tests/unique-uuid.test.mjs posts two runs on each site through a
mocked fetch and asserts a v4 uuid that differs per call. No network.

Run at 1bffccd6 merged onto main d34785ae (mote, Bun 1.4.2 / Node 22,
temp HOME): packages/tabbit node --test 72 pass / 0 fail, bun test 72 / 0;
bun scripts/check.mjs tabbit and whole repo ok; repo-root bun test 6827 pass / 0 fail (6847 run, 314s).
Broken by hand: main's api.mjs under the head's tests turns both new tests
red (0 pass / 2 fail). CI run 42380909152 green.
0.1.2 is not on dist (0.1.0, 0.1.1) or npm.
Not tried: any real call to web.tabbit.ai or web.tabbit.com.
2026-11-07 22:36:48 +08:00

52 lines
1.2 KiB
JSON

{
"name": "@magpie-community/opencode-tabbit-auth",
"version": "0.1.2",
"description": "Tabbit (web.tabbit.com and web.tabbit.ai) as a magpie / OpenCode provider: live model catalog, cookie sign-in, chat completions, cycle usage and the daily check-in",
"type": "module",
"main": "./opencode.mjs",
"exports": {
".": "./opencode2.mjs"
},
"files": [
"index.mjs",
"opencode.mjs",
"opencode2.mjs",
"src/",
"README.md",
"LICENSE"
],
"keywords": [
"magpie",
"magpie-plugin",
"opencode",
"opencode-plugin",
"tabbit",
"provider",
"llm-gateway"
],
"license": "MIT",
"engines": {
"node": ">=22"
},
"scripts": {
"test": "node --test tests/*.test.mjs"
},
"magpie": {
"icon": "https://web.tabbit.com/favicon.ico",
"maxConcurrency": 1
},
"homepage": "https://github.com/magpie-community/plugins/tree/main/packages/tabbit#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/magpie-community/plugins.git",
"directory": "packages/tabbit"
},
"bugs": {
"url": "https://github.com/magpie-community/plugins/issues"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
}
}