rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:RaulLazaro/dsh-pwa-plugin
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
[!WARNING] DEPRECATED — no longer maintained. This repository is archived and kept only as a historical reference. It is not updated, not supported, and not compatible with current DeepSeek Harness releases. Please do not open issues or pull requests.
OBSOLETO — sin mantenimiento. Este repositorio está archivado y se conserva solo como referencia histórica. No se actualiza, no recibe soporte y no es compatible con las versiones actuales de DeepSeek Harness.
PWA plugin for DeepSeek Harness that adds offline support and install-as-app capability.
From npm (once published):
npm install dsh-pwa-plugin
Or, for a local checkout, in your DSH web profile's package.json:
{
"dependencies": {
"dsh-pwa-plugin": "file:~/workspace/dsh-pwa-plugin"
}
}
In your profile's cordis.patch.yml:
- insert:
- id: dsh-pwa
name: 'dsh-pwa-plugin'
dsh web
The plugin ships pre-built PNG icons. To regenerate (requires sharp):
cd dsh-pwa-plugin
node scripts/generate-icons.js
This reads the official public/favicon.svg and produces:
| File | Size | Purpose |
|---|---|---|
icon-192.png |
192×192 | Regular (any) |
icon-192-maskable.png |
192×192 | Maskable (20% safe zone) |
icon-512.png |
512×512 | Regular (any) |
icon-512-maskable.png |
512×512 | Maskable (20% safe zone) |
/sw.js (stamped with the package version), /manifest.webmanifest, and icon files/favicon.svg is used as-is (not overridden)| Resource Type | Strategy | Description |
|---|---|---|
| HTML | Network-first | Always fetches the latest version; only storable 200 responses become the offline fallback |
| JS/CSS/Fonts/Images | Cache-first | Kept in a cache named after the package version, so an upgrade invalidates it without a manual version bump |
| Dynamic DSH routes | Not intercepted | /api, /auth-api, /oauth, /open-in-app, /plugins, /ws, /hooks and /dsh-pwa always reach the network |
Cache-Control: no-store |
Never cached | The server's directive wins over the service worker |
| API/WebSocket | Not cached | Always goes to the network |
dsh-pwa-plugin/
├── src/
│ ├── host/
│ │ └── index.js # Host plugin (Node.js)
│ └── sw.js # Service Worker
├── public/
│ ├── manifest.webmanifest # PWA Manifest
│ ├── favicon.svg # DSH whale icon (same as upstream)
│ └── icons/ # PWA icons (maskable + regular)
├── scripts/
│ ├── generate-icons.js # Icon generator (sharp)
│ ├── install.js # Verification script
│ └── verify.js # Verification
├── cordis.patch.yml # Plugin registration
├── LICENSE
└── package.json
npm test
Zero-dependency suite on Node's built-in runner (node --test):
test/manifest.test.mjs — manifest required fields, icon densities (regular +
maskable at 192/512) and that every icon file exists on disk.test/sw.test.mjs — the service worker evaluated against a fake self:
install/activate cache lifecycle (per-URL resilient pre-cache, versioned
cache names, orphan cleanup), the bypass rules (non-GET, non-HTTP schemes,
/api, /auth-api, /oauth, /open-in-app, /plugins, /ws, /hooks,
/dsh-pwa, websocket upgrades), network-first HTML with its offline
fallbacks, cache-first statics with the store guard (200/basic/
no-store), and the GET_VERSION / SKIP_WAITING messages.test/host.test.mjs — route registration (sw, manifest, 4 icons, version),
response headers, the package-version stamping of /sw.js, the
index-HTML script injection, the registration script's reload guard
(executed in a sandboxed VM), and the effect cleanup used on HMR unmounts.MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek。