New package @magpie-community/opencode-inkstone-auth 0.1.0 for Intern InkStone (书生·端砚, Shanghai AI Lab) Token Plan, provider id `intern-inkstone`. Community package by yunwang2442-creator. What it does: - Browser sign-in (Edge/Chrome, its own profile under $XDG_CONFIG_HOME or ~/.config/magpie/inkstone-browser, or %LOCALAPPDATA%\magpie\inkstone-browser). The login window has no debugging port. A headless CDP read takes the uaa-token cookie, and the same read renews it silently later. - Usage card: ink-credit balance, 5-hour and 7-day windows, credit packs. - Chat: a pasted ink-* API key, or one the sign-in creates, named ink-<host4>-<acct4>-<rand4> (18 of the console's 20 characters). An idempotency clash (-15109) retries with a fresh name, up to three times. Pruning is on by default. It only touches this machine's and account's prefix, keeps the newest two and the key this sign-in created, and never deletes manual keys or keys of unknown age. - Closing on Unix: SIGTERM, then SIGKILL only after a 15s grace. Leftover browsers are matched by --user-data-dir=<escaped profile>, and Windows uses .Contains(). - The login wait comes from an injected waitForLogin in tests. No env hook is left in production code. - Hosts: discovery.intern-ai.org.cn, discovery-api.intern-ai.org.cn, 127.0.0.1 (CDP). Outside the package: scripts/opencode2.mjs lets a prompt with `required: false` stay optional (`p.required !== false`). Every package's copy is synced byte for byte, so all 39 copies in the merged tree are blobafe074cb. No other package sets `required: false` on a prompt, so this changes nothing for them. Also a root README row and a registry entry. Review at 36412a15, on mote, HOME=$(mktemp -d), Bun 1.4.2: - bun test packages/inkstone: 68 pass, 0 fail in Asia/Shanghai, UTC, America/Los_Angeles and Pacific/Kiritimati. - bun scripts/check.mjs inkstone and bun scripts/check.mjs: ok. - bun test (repo), on 36412a15 merged with origin/maine7cb9dc5: 6743 pass, 20 skip, 0 fail. main has since moved by cline 0.1.14 and zcode 0.1.55 only, and none of the adapter copies changed. - Broken by hand, each red: no protectName protection; prune_keys default off; no post-sign-in prune; no SIGTERM on close; the -15109 retry keeping its name. Not tried: a real InkStone account sign-in on macOS, Linux or Windows (no account here); a live chat request; magpie end to end with the plugin.
1 line
4.3 KiB
JSON
1 line
4.3 KiB
JSON
{"code":0,"msg":"success","trace_id":"e252aae144dd81d9188683cbe08f2810","data":{"page":1,"page_size":50,"total":10,"models":[{"id":"Agents-A1","display_name":"Agents-A1","display_name_en":"Agents-A1","model_type":"multimodal","input_types":["text","image"],"input_types_en":["Text","Image"],"context_length":262144,"capabilities":["工具调用","科学推理"],"capabilities_en":["Tool calling","Scientific reasoning"],"input_uncached_price":0,"output_price":0,"marketing_label":"Hot","marketing_label_en":"Hot","marketing_label_color":"#C03030","supported_protocols":["openai_chat","anthropic_messages","openai_responses"]},{"id":"Atria-Dawn","display_name":"Atria-Dawn","display_name_en":"Atria-Dawn","model_type":"chat","input_types":["text"],"input_types_en":["Text"],"context_length":524288,"capabilities":["科学推理"],"capabilities_en":["Scientific reasoning"],"input_uncached_price":0,"output_price":0,"marketing_label":"Hot","marketing_label_en":"Hot","marketing_label_color":"#C03030","supported_protocols":["openai_chat","anthropic_messages","openai_responses"]},{"id":"Sage-A1.5","display_name":"Sage-A1.5","display_name_en":"Sage-A1.5","model_type":"multimodal","input_types":["text","image"],"input_types_en":["Text","Image"],"context_length":524288,"capabilities":["工具调用","科学推理"],"capabilities_en":["Tool calling","Scientific reasoning"],"input_uncached_price":0,"output_price":0,"marketing_label":"New","marketing_label_en":"New","marketing_label_color":"#1554A8","supported_protocols":["openai_chat","anthropic_messages","openai_responses"]},{"id":"deepseek-v4.1-flash-1017","display_name":"DeepSeek-V4.1-Flash-1017","display_name_en":"DeepSeek-V4.1-Flash-1017","model_type":"multimodal","input_types":["text","image"],"input_types_en":["Text","Image"],"context_length":1048576,"capabilities":["工具调用","深度思考"],"capabilities_en":["Tool calling","Reasoning"],"input_uncached_price":1000,"output_price":4000,"supported_protocols":["openai_chat","anthropic_messages","openai_responses"]},{"id":"glm-5.3","display_name":"GLM-5.3","display_name_en":"GLM-5.3","model_type":"chat","input_types":["text"],"input_types_en":["Text"],"context_length":1048576,"capabilities":["工具调用","深度思考"],"capabilities_en":["Tool calling","Reasoning"],"input_uncached_price":8000,"output_price":28000,"supported_protocols":["openai_chat","anthropic_messages","openai_responses"]},{"id":"intern-decision-4b","display_name":"书生-Decision-4B","display_name_en":"书生-Decision-4B","model_type":"decision","input_types":["text"],"input_types_en":["Text"],"context_length":8192,"capabilities":["结构化决策"],"capabilities_en":["结构化决策"],"input_uncached_price":200,"output_price":0,"supported_protocols":["systemone"]},{"id":"intern-s2","display_name":"书生-S2","display_name_en":"书生-S2","model_type":"multimodal","input_types":["text","image"],"input_types_en":["Text","Image"],"context_length":262144,"capabilities":["工具调用","科学推理"],"capabilities_en":["Tool calling","Scientific reasoning"],"input_uncached_price":0,"output_price":0,"supported_protocols":["openai_chat","anthropic_messages"]},{"id":"kimi-k2.6","display_name":"Kimi-K2.6","display_name_en":"Kimi-K2.6","model_type":"multimodal","input_types":["text","image"],"input_types_en":["Text","Image"],"context_length":262144,"capabilities":["工具调用","深度思考"],"capabilities_en":["Tool calling","Reasoning"],"input_uncached_price":6500,"output_price":27000,"supported_protocols":["openai_chat","anthropic_messages","openai_responses"]},{"id":"minimax-m3","display_name":"MiniMax-M3","display_name_en":"MiniMax-M3","model_type":"chat","input_types":["text"],"input_types_en":["Text"],"context_length":1048576,"capabilities":["工具调用","深度思考"],"capabilities_en":["Tool calling","Reasoning"],"input_uncached_price":2100,"output_price":8400,"supported_protocols":["openai_chat","anthropic_messages","openai_responses"]},{"id":"qwen3.8-27b","display_name":"Qwen3.8-27B","display_name_en":"Qwen3.8-27B","model_type":"multimodal","input_types":["text","image"],"input_types_en":["Text","Image"],"context_length":262144,"capabilities":["工具调用","深度思考"],"capabilities_en":["Tool calling","Reasoning"],"input_uncached_price":800,"output_price":2700,"supported_protocols":["openai_chat","anthropic_messages"]}]}} |