rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:QICci/dsh-fnos-control
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 中文
A DeepSeek Harness plugin for fnOS (飞牛 OS). It adds one sidebar entry — Service Control — with a single panel offering the two operations the fnOS application already ships, without the keyboard shortcut hunt:
| Action | What it really does |
|---|---|
| Reload page | location.reload() — the same thing as the app's F5 / Ctrl+R. The process is untouched. |
| Restart DSH Web | Asks the fnOS gateway to stop and start the supervised dsh web child process, then waits for recovery and reloads the page. |
The project page is published at https://dsh.likkas.cn/.
The fnOS application (fn-deepseek-harness) runs dsh web as a child of its gateway (gateway-proxy.mjs). The gateway already publishes a control API on its unix socket:
GET /app/fn-deepseek-harness/__fnos-gateway/control/web/status
POST /app/fn-deepseek-harness/__fnos-gateway/control/web/restart
restart stops the child, starts it again with the original arguments, waits for the port to pass its health check, then refreshes app.pid and the launch token. That is the correct supervisor to ask — restarting "yourself" from inside a supervised process loses the supervisor's handshake. This plugin wraps that path in a UI, and keeps a standalone detached-helper fallback for hosts with no fnOS gateway (for example a plain dsh web started by hand).
A built tarball is attached to release v0.1.0;
the project site (site/index.html) exposes it behind a slide-to-download control so a stray click never
starts a transfer. The published file is dsh-fnos-control-0.1.0.tgz
(SHA-256 ebd31664752bba3139e12c02e5d31283ac7ce3d31cae87b71912958f20d7fb2a).
Verify a download with node package/scripts/smoke.mjs before installing.
>= 0.2.1-rc.2 (verified on 0.2.1-rc.3)>= 20fn-deepseek-harness for the gateway restart path. Without it the panel still renders and the helper fallback is used.dsh plugin --profile web add /path/to/dsh-fnos-control
Then make sure the bundle is applied — adding it through the plugin manager does this automatically:
# Or via the DSH UI: Plugins → install bundle → pick the directory
tar -xzf dsh-fnos-control-0.1.0.tar.gz
dsh plugin --profile web add ./package
dsh plugin add appends the bundle name to dsh.profile.bundles in the profile's package.json. If you install by hand, add dsh-fnos-control there yourself:
{ "dsh": { "profile": { "bundles": ["...", "dsh-fnos-control"] } } }
Do not also insert the same row into the profile's cordis.patch.yml: one row, one mount, otherwise boot fails with a duplicate loader entry id.
Sidebar entry — sidebar.panellist id fnos-control, order 60, label from the plugin's locale (服务控制 / Service Control).
Main panel — main slot keyed fnos-control, so the sidebar button opens it.
Host routes (both require the x-dsh-control: 1 header and answer loopback peers only):
| Route | Method | Purpose |
|---|---|---|
/dsh-fnos-control/api/status |
GET |
Serving PID, port, origin, argv, gateway socket reachability and state, PID recorded by the gateway, detected supervisor. |
/dsh-fnos-control/api/restart |
POST |
Schedules the restart: gateway path when the fnOS socket exists, detached-helper path otherwise. Refuses under systemd and under a debugger. |
POST only, loopback only, with the package's own header — a cross-site form or image cannot send it./__fnos-gateway/control/web/status until running; direct mode probes the page URL. Timeout is 90 seconds, after which the panel tells you to reload manually.node --check index.js && node --check client.js
curl -s -H 'x-dsh-control: 1' http://127.0.0.1:3080/dsh-fnos-control/api/status
The status route answering with your PID and the gateway state means the Host half is mounted. The sidebar entry appears after the page loads the plugin's client bundle.
MIT — see LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。