Files
plugins/packages/sensenova/package.json
T
我是一条没有名字的区andyunwang2442-creator 29a36b1ecf sensenova 0.2.1: localized labels for the provider options (#738)
The two provider options (`create_key`, `prune_old_keys`) carry `labels`, `descriptions` and `confirms` in zh, zh-TW, ja and de, which magpie's host passes through (`optionsOf` → `inLanguages`) and the GUI picks by locale (`optionWords`). The English `prune_old_keys` description now also says a key whose creation time can't be read is never deleted, as `pruneKeys` does, so all five languages say the same thing. Version 0.2.1.

Run at 77a164b25 on mote (macOS, Bun 1.4.2):
- `bun test packages/sensenova`: 57 pass, 0 fail. `bun scripts/check.mjs`: exit 0.
- A probe loading `SenseNovaAuthPlugin` and passing every option string through host.js's caps (label 60, description/confirm 300): all 20 localized strings come through whole (longest: de prune description, 257).
- No `{{` in the file. Each translation read against the English.

Co-authored-by: yunwang2442-creator <yunwang2442-creator@users.noreply.github.com>
2026-11-05 17:11:03 +08:00

39 lines
878 B
JSON

{
"name": "@magpie-community/opencode-sensenova-auth",
"version": "0.2.1",
"description": "SenseNova (SenseTime 日日新) Token Plan in OpenCode and magpie: browser or password sign-in for the credit pools, windows and grants, plus the plan's models through a Token Plan API key",
"type": "module",
"main": "./opencode.mjs",
"exports": {
".": "./opencode2.mjs"
},
"files": [
"index.mjs",
"opencode.mjs",
"opencode2.mjs",
"lib/",
"README.md"
],
"keywords": [
"opencode",
"opencode-plugin",
"magpie",
"sensenova",
"sensetime",
"日日新",
"token-plan",
"credits",
"quota",
"glm"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/magpie-community/plugins.git",
"directory": "packages/sensenova"
},
"magpie": {
"maxConcurrency": 1
}
}