From c54769dac127cfdb7684d29780e103b208dc3355 Mon Sep 17 00:00:00 2001 From: wangjinding Date: Mon, 9 Nov 2026 15:05:45 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=94=B9=E4=B8=BA=20dsh-opencode-usag?= =?UTF-8?q?e-go=EF=BC=88=E5=8E=9F=E5=90=8D=E5=B7=B2=E8=A2=AB=E5=8D=A0?= =?UTF-8?q?=E7=94=A8=EF=BC=89+=20=E5=8A=A0=E5=B8=82=E5=9C=BA=E7=B4=A2?= =?UTF-8?q?=E5=BC=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - npm 上 dsh-opencode-usage / dsh-opencode-go-usage 均已被他人占用 - 补 author / homepage / repository / bugs 字段 - 新增 market-index.json(format 1,git source) --- market-index.json | 56 +++++++++++++++++++++++++++++++++++++++++++++++ package.json | 13 +++++++++-- 2 files changed, 67 insertions(+), 2 deletions(-) create mode 100644 market-index.json diff --git a/market-index.json b/market-index.json new file mode 100644 index 0000000..52fde55 --- /dev/null +++ b/market-index.json @@ -0,0 +1,56 @@ +{ + "format": 1, + "title": { + "zh-CN": "wangjinding 的 DSH 插件", + "en": "wangjinding's DSH Plugins" + }, + "description": { + "zh-CN": "自建插件市场源", + "en": "Self-hosted DSH plugin market" + }, + "metadata": { + "categories": { + "monitor": { + "title": { "zh-CN": "监控与用量", "en": "Monitoring & Usage" } + } + }, + "labels": {}, + "sortKeys": {} + }, + "plugins": [ + { + "name": "dsh-opencode-usage-go", + "title": { + "zh-CN": "OpenCode Go 用量", + "en": "OpenCode Go Usage" + }, + "description": { + "zh-CN": "在 DSH 左侧栏底部看 OpenCode Go 套餐用量:滚动/本周/本月三条配额的已用百分比与重置倒计时,标题旁显示本月重置日,带 SVG 刷新按钮与 60 秒自动刷新。另提供 opencode_usage 工具。直连 opencode.ai,API Key 不经过浏览器。", + "en": "OpenCode Go quota usage in the DSH left sidebar: rolling/weekly/monthly percentages with reset countdowns, a month reset date, an SVG refresh button, and 60s auto-refresh. Also ships an opencode_usage tool. Talks to opencode.ai directly; the API key never reaches the browser." + }, + "author": "wangjinding", + "homepage": "https://git.wangjinding.com/Jidekin/dsh-opencode-usage", + "repository": { + "url": "https://git.wangjinding.com/Jidekin/dsh-opencode-usage" + }, + "metadata": { + "category": "monitor", + "keywords": ["dsh", "opencode", "usage", "quota", "sidebar"], + "labels": [], + "sortKeys": {} + }, + "versions": [ + { + "version": "1.0.0", + "publishTimestamp": 1794207945, + "source": { + "type": "git", + "url": "https://git.wangjinding.com/Jidekin/dsh-opencode-usage.git", + "commit": "2994a20bb077e0179505bdda228c2665efe22a52" + }, + "engines": { "dsh": ">=0.2.1" } + } + ] + } + ] +} diff --git a/package.json b/package.json index 9772fdd..c594773 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "dsh-opencode-usage", + "name": "dsh-opencode-usage-go", "version": "1.0.0", "description": "OpenCode Go 套餐用量查看:DSH 左侧栏卡片(滚动/本周/本月三条配额进度条 + 重置倒计时 + 刷新按钮),并提供 opencode_usage 工具与 /plugin/opencode-usage 接口。直连 opencode.ai,API Key 不经过浏览器。", "type": "module", @@ -39,5 +39,14 @@ ], "platform": "web" } + }, + "author": "wangjinding", + "homepage": "https://git.wangjinding.com/Jidekin/dsh-opencode-usage", + "repository": { + "type": "git", + "url": "https://git.wangjinding.com/Jidekin/dsh-opencode-usage.git" + }, + "bugs": { + "url": "https://git.wangjinding.com/Jidekin/dsh-opencode-usage/issues" } -} +} \ No newline at end of file