nuwa-skill
alchaincyf
你想蒸馏的下一个员工,何必是同事。蒸馏任何人的思维方式——心智模型、决策启发式、表达DNA。Distill how anyone thinks.
joao-paulo-santos/dsh-bouncing-squares-example
Example plugin for dsh-granular-settings: three bouncing squares, one per settings scope (session, workspace, global). Switch sessions and workspaces to watch each scope behave differently
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:joao-paulo-santos/dsh-bouncing-squares-example
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A DeepSeek Harness (DSH) plugin, and the example plugin for dsh-granular-settings: three bouncing squares share your screen, each driven by one settings scope.
| square | scope | what changing it teaches |
|---|---|---|
| blue | session |
one value per session: two sessions can show two colors at once |
| amber | workspace |
one value per workspace: every session in the workspace shows the same |
| green | global |
one plugin-wide value: the same in every workspace, and it keeps bouncing with no session open at all |
Every scope registers the same four keys, show, color, text, speed,
so the scope axis is easy to see, plus one or two types the others do not
have:
| scope | keys | types exercised |
|---|---|---|
session |
show, color, text, speed | toggle, color, text, slider |
workspace |
show, color, text, speed, prefix, suffixes | toggle, color, text, slider, enum, multiselect |
global |
show, color, text, speed, size | toggle, color, text, slider, number |
lib/index.js, host half: one gs.register call per setting, nothing
else.lib/client.js, browser half: each square is a handful of
gs.useSetting(NS, scope, key) calls plus physics. The platform hook
owns the session context, subscriptions, default fallback, and writes;
module-scope flight state survives context switches. The global square
reads the sessionless context, which is why it bounces with no session
open.Requires a DeepSeek Harness checkout and a profile, here web. Clone the
dependencies and this plugin into a plugins folder:
mkdir -p ~/dsh-plugins && cd ~/dsh-plugins
git clone https://github.com/joao-paulo-santos/dsh-event-relay.git
git clone https://github.com/joao-paulo-santos/dsh-granular-settings.git
git clone https://github.com/joao-paulo-santos/dsh-bouncing-squares-example.git
# from the harness checkout
pnpm dsh plugin --profile web add ~/dsh-plugins/dsh-event-relay
pnpm dsh plugin --profile web add ~/dsh-plugins/dsh-granular-settings
pnpm dsh plugin --profile web add ~/dsh-plugins/dsh-bouncing-squares-example
# verify the profile still composes
pnpm dsh --profile web --dump-config
Then restart the harness. The squares appear immediately; their controls live in the settings dialog under Granular Settings.
(none, this is the end of the line: an example, not a platform)
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: session、sessions。