necigit/Coral-Memory--plugins-ui-balance ↗★ 0
@deepseek-ai/dsh-client-ui-balance
API balance capsule: bottom-right floating pill over shell.overlay, node half queries configured provider balance endpoints (zero model token cost), multi-API entries with add/remove
安装
此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗
说明文档
阅读完整 README ↗@deepseek-ai/dsh-client-ui-balance
鈿狅笍 **鏂扮増鏈畨瑁?娉ㄥ唽鏂瑰紡鏈夊彉鍖栵紝璇峰姟蹇呴槄璇绘湰鑺?*锛堝崌绾ц嚜 0.1.0-rc.4 鍙婃洿鏃╃増鏈椂锛夈€? API 浣欓鑳跺泭锛氬彸涓嬭鎮诞鑳跺泭锛宯ode 鍗婇儴鏌ヨ鍚?provider 鐨勪綑棰濈鐐癸紙闆舵ā鍨?token锛夛紝鏀寔澶?API 鏉$洰澧炲垹鏀广€?
瀹夎涓庢敞鍐岋紙鏂扮増鏈紝dsh 璧凤級
鏈彃浠舵槸 **dual-face 瀹㈡埛绔彃浠?*锛坄package.json 閲屽彧鏈?dsh.client锛?*娌℃湁** dsh.bundle`锛夈€傛柊鐗堟湰瀵规敞鍐屾柟寮忔敹绱э紝璇锋寜涓嬮潰鍋氾細
-
涓嶈鎶婂畠鏀捐繘
dsh.profile.bundles鈥斺€?鏂扮増鏈細鐩存帴鎶ラ敊profile bundle "@deepseek-ai/dsh-client-ui-balance" declares no dsh.bundle銆? 瀹㈡埛绔彃浠?*鍙兘**閫氳繃 profile 鐨?cordis.patch.yml鐢?insert娉ㄥ唽鎴?dsh.client琛岋細# ~/.dsh/profiles//cordis.patch.yml - insert: - id: ui-balance name: '@deepseek-ai/dsh-client-ui-balance' -
Remote 绔偣蹇呴』鏈?
./typert瀹夸富娓呭崟銆傚惁鍒?/api/balance/*浼氳繑鍥?HTTP 404銆? 鏈寘宸插鍑?./typert锛坄lib/typert.host.js锛夛紝鐢?typert-loader鑷姩娉ㄥ唽杩涚綉鍏筹紱 鏂板/淇敼@Remote鏂规硶鏃堕渶鍚屾鏇存柊璇ユ竻鍗曪紙鐢ㄧ敓鎴愬櫒typert.host.js閲嶇敓鎴愶紝 鎴栦繚鎸佷笌src/client/remote.ts鐨?TYPERT_REMOTE` 涓€鑷达級銆? -
profile 渚濊禆寤鸿鐢?
link:锛坰ymlink锛夎€屼笉鏄?file:锛堟嫹璐濓級锛?file:浼氬湪~/.dsh/profiles//node_modules閲岀暀涓€浠芥嫹璐濓紝婧愮爜鏀逛簡涓嶄細鑷姩鍚屾锛?link:鐩存帴鎸囧悜婧愮爜锛屾敼瀹屽嵆鏃剁敓鏁堛€?
// ~/.dsh/profiles//package.json
"dependencies": {
"@deepseek-ai/dsh-client-ui-balance": "link:/packages/client/ui-balance"
}
杩愯璇存槑
- node 鍗婇儴锛坄src/index.ts
锛夋敞鍐?BalanceService锛坄TypertRemoteService锛夛紝鎻愪緵list/query/add/remove/update5 涓?Remote 绔偣銆?- 娴忚鍣ㄥ崐閮紙src/client/锛夐€氳繃ctx.remote.balance.*鍙栨暟锛岄浂妯″瀷 token锛屼笉杩涘叆浼氳瘽鏃ュ織銆?
Model Experience
鏃?鈥斺€?鏈彃浠朵笉娉ㄥ唽浠讳綍妯″瀷鍙鐨?prompt/tool/浼氳瘽浜嬩欢锛涗綑棰濇暟鎹彧鍦?node 鍗婇儴鏌ヨ鍚庣粡 Remote 杈圭晫鍒拌揪娴忚鍣ㄣ€?