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