mirror of
https://github.com/yexi-by/dsh-unrestricted.git
synced 2026-11-28 02:30:22 +08:00
dsh-unrestricted: toggleable unrestricted-mode prompt fusion plugin
Fuses the unrestricted execution mode into each preset's original system prompt at assembly time (standard/code/cordis via the system-prompt/assemble waterfall, minimal via an agent-scoped complete persona shadow), covering subagents, plan state, code-mode transport and structured-output delivery. Anchored rewrites verify the installed DSH prompts before every fusion; mismatches fall back to the stock prompt per mode and surface in the settings card. Toggle persists in the unrestricted settings namespace. Baseline: DSH 0.1.1-rc.1 (528c682e). docs/diff-rc.1.md itemizes every kept/extended/inserted rule; tests replay fixtures captured from the installed harness (tools/dump-prompts.mjs); tools/verify-live.mjs and tools/verify-server.mjs carry the acceptance runs.
This commit is contained in:
commit
aceb93ccd4
48 files changed
+9847
No files matched your search
@@ -0,0 +1,50 @@
|
||||
{
|
||||
"name": "dsh-unrestricted",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"description": "Toggleable unrestricted mode for DSH Web: fuses the unrestricted execution mode into each preset's original system prompt (standard/code/cordis/minimal + subagents), with per-mode anchor verification and automatic fallback to the stock prompt",
|
||||
"type": "module",
|
||||
"main": "src/node.js",
|
||||
"exports": {
|
||||
".": "./src/node.js",
|
||||
"./client": "./lib/client.js",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"files": [
|
||||
"src",
|
||||
"lib",
|
||||
"cordis.patch.yml",
|
||||
"README.md"
|
||||
],
|
||||
"dsh": {
|
||||
"bundle": {
|
||||
"patch": "./cordis.patch.yml"
|
||||
},
|
||||
"client": {
|
||||
"platform": "web",
|
||||
"inject": [
|
||||
"@deepseek-ai/dsh-client-connection",
|
||||
"@deepseek-ai/dsh-client-locale",
|
||||
"@deepseek-ai/dsh-api-remotes",
|
||||
"@deepseek-ai/dsh-client-runtime",
|
||||
"@deepseek-ai/dsh-client-ui-settings",
|
||||
"@deepseek-ai/dsh-client-ui-settings-plugins"
|
||||
]
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsdown",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"test": "node --test tests/",
|
||||
"dump-prompts": "node tools/dump-prompts.mjs --repo ../../deepseek-harness --out tests/fixtures"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^22.20.1",
|
||||
"@types/react": "~18.3.1",
|
||||
"@types/react-dom": "^18.3.0",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"tsdown": "^0.22.2",
|
||||
"typescript": "^5.6.0"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user