rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:WuWei-Peng/dsh-od-quota
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 中文
Unofficial plugin: not affiliated with Open Design / Powerformer. It only reads your own account's allowance through the public control-plane endpoints.
OpenDesign subscription quota inside DSH. Three surfaces read the same reading:
| Surface | Where | What it does |
|---|---|---|
| Quota page | Left sidebar "OpenDesign Quota" icon → full center page | 5-hour / 7-day windows, wallet, sign-in and approval |
| Settings summary | Settings sidebar "OpenDesign Quota" | Status, two mini bars, refresh / open page, auto-refresh and header toggles |
| Header meter | Session title bar, right of the title (left of the "Open in app" arrow) | Plan + two remaining bars; degrades when the row is tight; click to open the page |
The bars are coloured by remaining percentage (green = plenty, amber = watch, red = nearly dry); stale data is dimmed and explained in the tooltip.
OpenDesign cloud has two planes; quota lives on the control plane:
| Plane | Host | Key | Use |
|---|---|---|---|
| Control | amr-api.open-design.ai |
vela_ctrl_… |
plan, wallet, 5h/7d windows, workspace |
| Model | amr-link.open-design.ai/v1 |
sk-amr_… |
inference |
sk-amr_… cannot read quota (the control plane refuses it), so the plugin uses the control plane. vela_ctrl_… is not printed on any page; it is issued by the CLI device-authorization flow (the same flow as vela login) — the plugin runs that flow for you.
# npm (recommended; also the path the plugin market uses)
dsh plugin --profile web add dsh-od-quota
# or straight from the repository
dsh plugin --profile web add github:WuWei-Peng/dsh-od-quota
# or the prebuilt package from the GitHub Release (no npm; for restricted networks/mirrors)
dsh plugin --profile web add https://github.com/WuWei-Peng/dsh-od-quota/releases/latest/download/dsh-od-quota.tgz
Restart dsh web once after installing. The left sidebar then shows an "OpenDesign Quota" icon, and Settings gets a summary entry.
POST /api/v1/cli/device-authorizations and gets an approval link plus a 6-character code; the page shows the code, a countdown, and a copyable link.controlKey and stores it in the DSH credential service (reference name OPENDESIGN_CONTROL_KEY by default; change it with keyRef).billing/preflight + billing/summary once every 60 seconds and writes the result into this plugin's quotaJson; the page, the settings summary and the header meter all parse only that document.refreshNonce (a timestamp plus a sequence number, so two clicks never collide); the Host notices the change and reads immediately. A refused write is reported with a retry hint instead of a button that appears to do nothing.Device authorization is the primary path; pasting vela_ctrl_… directly also works. Pasting sk-amr_… is rejected by the UI with an explanation.
powered by dsh badge. Countdowns tick every 30 seconds.autoRefresh (read every 60 s) and enabled (reading + header meter).--dsw-alias-* / --dsw-radius-* / --dsw-focus-ring-* host tokens; light/dark follow automatically.COPY table in client.js; other language packs fall back to English.status: "stale"; the page shows "Data is stale" plus the reason and the meter is dimmed. A network blip is never reported as "you are signed out".enabled: false: no polling; the header meter does not render; the quota page shows a disabled notice and an Enable button.AbortSignal, so one hang costs at most one round; a reading still pending after two timeouts is abandoned and restarted, and later refreshes never join a promise that will never resolve.503 database_unavailable on 15–25 % of requests while billing/summary stayed at 20/20; the failures carry Cloudflare headers and curl reproduces them, so they are the vendor's origin, not this machine. Sign-in is the surface that suffered most, because starting a device authorization is a single POST with no second chance: 15/20 successes before the retry, 20/20 after.发起登录失败(HTTP 520), and a 40-sample follow-up returned 29 successes, 10 × 503 and 1 × 520 (a Cloudflare error page, not JSON). Codes drawn from the visible failures alone would have missed it, so 520–524 are retried too.return each time, so while the profile kept refusing writes the numbers stopped updating even though the network was fine. After three passes it now falls through to the read instead of blocking it forever.loginNonce), rather than refreshing a quota read and leaving a dead code and a refused link on screen.unconfigured at once, the page returns to the sign-in state, and the header meter disappears — no stale numbers are left behind.dsh web to recover. Settings writes themselves have an 8-second deadline, so one wedged write can no longer freeze polling forever.| File | Purpose |
|---|---|
index.js |
Host: device authorization, quota reads, polling, writing back config |
client.js |
Client: quota page (main), sidebar icon (sidebar.panellist), settings summary (settings.section), header meter (conversation.session.header.utilities) |
cordis.patch.yml |
Inserts the od-quota row and its defaults |
locale/*.json |
Plugin-manager title and description |
icon.svg |
Plugin icon |
| Field | Default | Description |
|---|---|---|
enabled |
true |
When off: no polling, no meter, no page |
keyRef |
OPENDESIGN_CONTROL_KEY |
Credential reference holding the control-plane key |
workspaceId |
'' |
Empty resolves via /workspaces/current |
autoRefresh |
true |
Read once every 60 seconds |
refreshNonce |
'' |
Written by the page's refresh button |
quotaJson / loginJson |
'' |
Plugin-written cache; the page only reads |
container-type plus the title cluster / utilities boxes). If the host changes that structure, the meter falls back to the full layout — it will not crash, but it may be less compact than intended.creditsPerUsd; when the API omits the rate, 10,000 credits = $1; amounts below one cent show < $0.01.COPY table in client.js and is bilingual following the host language; it is not registered in the Client locale namespace, so third-party language packs fall back to English.keyRef to become a list.dsh-badge.png (121×20, data URI) so it renders offline.CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness、deepseek-harness-plugin。