OpenViking
volcengine
Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:zhuran305-web/dsh-cet-vocab
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A CET-4 / CET-6 vocabulary trainer for the DeepSeek Harness (dsh) Web UI: a draggable, minimizable floating word-card window you can open any time — including while the model is thinking.
一个 DeepSeek Harness(dsh)Web 界面的四六级背单词悬浮窗:可拖动、可最小化,随时点开背单词——包括模型思考的空档期。
speechSynthesis as the offline fallback — no Windows voice pack or admin rights needed. 每个词实时取有道词典的真人美式/英式发音(口音可选:自动/美式/英式),断网时自动回落到系统语音合成——不需要安装任何 Windows 语音包,也不需要管理员权限。Alt+Q show/hide the floating window (works even while typing), Alt+1 / Alt+2 switch card vs. quiz mode, Alt+R review the words due later, Alt+P practise 10 new words, Alt+X exit practice, Alt+S speak the current word; Space + 1/2/3 grade in card mode, 1-4 answer in quiz mode, → move to the next word after answering (a wrong answer stays on screen until you press it). Bare keys only fire while the window is open and no text field has focus, and any key the host already handled is left alone — the full list is in Settings. Alt+Q 展开/收起悬浮窗(输入框里也能用),Alt+1/Alt+2 切换卡片/选择题模式,Alt+R 复习稍后到期的词,Alt+P 加练 10 个生词,Alt+X 退出加练,Alt+S 朗读当前词;Space 翻面、1/2/3 评分、选择题 1-4 作答、答完按 → 进入下一个词(答错会停留,读完释义再按)。单键只在窗口展开且光标不在输入框时生效,宿主已处理的按键一律让路——设置里有完整键位指南。Progress is stored in localStorage (per browser profile). 进度存于浏览器 localStorage。
From any DSH plugin marketplace that mirrors the awesome-dsh-plugin catalog (e.g. dshmarket, dsh-plugin-mall), or directly / 或直接:
dsh plugin add dsh-cet-vocab # from npm
dsh plugin add "https://github.com/zhuran305-web/dsh-cet-vocab/releases/latest/download/dsh-cet-vocab.tgz" # from GitHub Releases
The package ships prebuilt client.js — no build step, no telemetry. Pronunciation streams one small mp3 per word from Youdao's dictionary audio on demand (cached by the browser); everything else works offline. 包内自带构建好的 client.js,无构建步骤、无遥测。发音按需流式加载有道词典音频(浏览器自带缓存),其余功能完全离线。
node scripts/build_client.mjs # embeds data/words.json into client.js
data/words.json is generated from ECDICT (scripts/build_words.py filters the cet4/cet6 tags); download the ECDICT release CSV to data/ecdict.csv to regenerate it.
node scripts/release.mjs 0.2.2 --dry-run # 彩排:构建/冒烟/打包/解包复核/临时 profile 安装验证,然后自动还原
node scripts/release.mjs 0.2.2 # 正式发版:提交推送 → tag → GitHub Release → npm publish → 核验
One command runs the whole chain: sync the three i18n places, bump the version, rebuild client.js, smoke-test the working copy, pack, unpack the tarball and smoke-test it again (byte-comparing client.js against the build), install the tarball into a throwaway DSH profile through the real CLI, then commit, tag, publish a GitHub Release and publish to npm — verifying both channels afterwards. 一条命令跑完整条发版链路,失败时会还原 dry-run 产生的临时改动。
| script | what it does |
|---|---|
scripts/release.mjs |
the one-command release above (--dry-run, --no-npm, --no-github, --skip-smoke, …) |
scripts/build_client.mjs |
embeds data/words.json into client.js and syntax-checks the result |
scripts/sync_locale.mjs [--check] |
keeps locale/zh.json + locale/en.json identical to the inline dictionaries in client.src.js |
scripts/smoke_release_install.mjs [dir] [reference client.js] |
56–57 structural checks: package fields, shell.overlay registration, locale wiring, embedded word list |
Requirements: an authenticated gh, and an npm granular access token with “Bypass 2FA” enabled (npm requires 2FA, or such a token, to publish) supplied via --token-file or NPM_TOKEN_FILE. GitHub traffic uses the proxy from --proxy (default http://127.0.0.1:7897); npm is deliberately called without a proxy. The npm credential is written to a temporary userconfig and deleted afterwards — ~/.npmrc is never touched. 需要已登录的 gh,以及开启 Bypass 2FA 的 npm granular token;GitHub 走代理、npm 不走代理,凭据只落在临时配置里且用完即删。
384 × 缩放 的真实视觉宽度自动内收,不再溢出右边界;不改动已保存的位置,收起后仍在原处;DSH 侧栏或窗口尺寸变化时实时重算。The expanded card now fits itself inside the viewport by its real scaled width, without moving the saved pill position, and re-fits on viewport resize.prefers-reduced-motion 守卫;保留朗读开关的声波环并修复其定位漂移。Design tokens, fewer borders, consistent focus/press feedback, reduced-motion guard, and the sound-wave ring anchored correctly to the reader toggle.Alt+Q shows or hides the window (works even while typing), Alt+1 / Alt+2 switch card vs. quiz, Alt+R review, Alt+P extra practice, Alt+X exit practice, Alt+S speak the word; Space flips, 1/2/3 grade, 1–4 answer, → moves to the next word. Bare keys stay inert while a text field has focus or the window is closed, and any key the host already handled is left alone. The full list is in Settings. 全套快捷键,设置页附键位指南。→ or the new 「下一个」 button to continue. 释义不再截断;答错会停留,按 → 或「下一个」继续。Publishable npm package (dropped private, declared engines.dsh); locale/*.json aligned with the inline dictionaries.
Online human US/UK pronunciation fetched per word, with speechSynthesis as the offline fallback — no Windows voice pack or admin rights needed. 在线真人美式/英式发音,无需语音包与管理员权限。
The word list is extracted from ECDICT (MIT License, © skywind3000). Everything else is MIT — see LICENSE.
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: rag。