Files
plugins/packages/nous/package.json
T
yetone b46bcfcf9f nous 0.1.1: a null or string expires_in beside a valid JWT exp takes the exp, so the sign-in stays usable (#328)
token() counted any present non-number expires_in as a malformed bound
and set expires = 1 even when the access token's JWT exp was valid, so a
renewal recorded unusable_inference_jwt and every request failed. Like
Hermes's _remaining_ttl, a null or non-numeric expires_in is now ignored
when the JWT carries a finite exp. With no valid exp it is still a
malformed bound (expires = 1), and a numeric expires_in <= 0 or
non-finite still is too.

Run: TMPDIR/HOME under the scratch dir, bun test packages/nous, 56 pass;
the new test is red on 0.1.0. bun scripts/check.mjs nous ok. Not tried
against the real Nous Portal.
2026-10-25 14:26:39 +08:00

13 lines
530 B
JSON

{
"name": "@magpie-community/opencode-nous-auth",
"version": "0.1.1",
"description": "Nous Portal OAuth with device sign-in and automatic token renewal in OpenCode and magpie",
"type": "module",
"main": "./index.mjs",
"exports": "./index.mjs",
"files": ["index.mjs", "oauth.mjs", "README.md"],
"keywords": ["opencode", "opencode-plugin", "magpie", "nous", "oauth"],
"license": "MIT",
"repository": { "type": "git", "url": "git+https://github.com/magpie-community/plugins.git", "directory": "packages/nous" }
}