{ "name": "dsh-write-protect", "version": "0.1.1", "description": "DSH sandbox extension: protect declared workspace subpaths (e.g. .git) from writes, and optionally grant extra writable roots under workspace-write, enforced for sandboxed CLI commands and the write/edit tools. 为 DSH 沙箱增加工作区子路径只读保护, 并支持在 workspace-write 下声明额外可写根.", "type": "module", "main": "./lib/policy.mjs", "exports": { ".": "./lib/policy.mjs", "./fs": "./lib/fs.mjs", "./provider": "./lib/provider.mjs", "./client": "./lib/client.js", "./package.json": "./package.json" }, "files": [ "lib", "cordis.patch.yml", "README.md", "LICENSE" ], "scripts": { "typecheck": "tsc --noEmit", "build": "tsdown --config tsdown.host.config.ts && tsdown --config tsdown.client.config.ts", "test": "vitest run" }, "dsh": { "bundle": { "patch": "./cordis.patch.yml" }, "client": { "platform": "web", "inject": [ "@deepseek-ai/dsh-api-session-controller", "@deepseek-ai/dsh-client-ui-settings", "@deepseek-ai/dsh-client-ui-slots" ] } }, "keywords": [ "deepseek-harness", "dsh", "dsh-plugin", "sandbox", "write-protect", "read-only" ], "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/azazo1/dsh-write-protect.git" }, "homepage": "https://github.com/azazo1/dsh-write-protect#readme", "bugs": { "url": "https://github.com/azazo1/dsh-write-protect/issues" }, "publishConfig": { "access": "public" }, "engines": { "node": ">=20.11" }, "packageManager": "pnpm@11.24.0", "peerDependencies": { "@deepseek-ai/cordis": "^4.0.1", "@deepseek-ai/dsh-fs": "^0.1.2-rc.1", "@deepseek-ai/dsh-fs-local": "^0.1.2-rc.1", "@deepseek-ai/dsh-fs-sandbox": "^0.1.2-rc.1", "@deepseek-ai/dsh-sandbox": "^0.1.2-rc.1", "@deepseek-ai/dsh-sandbox-local": "^0.1.2-rc.1", "@deepseek-ai/dsh-sandbox-policy": "^0.1.2-rc.1", "@deepseek-ai/dsh-settings": "^0.1.2-rc.1", "@deepseek-ai/dsh-system-prompt": "^0.1.2-rc.1", "@deepseek-ai/schemastery": "^3.18.2", "react": ">=18" }, "devDependencies": { "@deepseek-ai/cordis": "^4.0.1", "@deepseek-ai/dsh-client-ui-settings": "^0.1.2-rc.1", "@deepseek-ai/dsh-client-ui-slots": "^0.1.2-rc.1", "@deepseek-ai/dsh-client-ui-renderer": "^0.1.2-rc.1", "@deepseek-ai/dsh-fs": "^0.1.2-rc.1", "@deepseek-ai/dsh-fs-local": "^0.1.2-rc.1", "@deepseek-ai/dsh-fs-sandbox": "^0.1.2-rc.1", "@deepseek-ai/dsh-sandbox": "^0.1.2-rc.1", "@deepseek-ai/dsh-sandbox-local": "^0.1.2-rc.1", "@deepseek-ai/dsh-sandbox-policy": "^0.1.2-rc.1", "@deepseek-ai/dsh-session-projection": "^0.1.2-rc.1", "@deepseek-ai/dsh-settings": "^0.1.2-rc.1", "@deepseek-ai/dsh-system-prompt": "^0.1.2-rc.1", "@deepseek-ai/schemastery": "^3.18.2", "@types/node": "^22.0.0", "@types/react": "^18.2.0", "react": "^18.2.0", "tsdown": "^0.23.0", "typescript": "^5.9.0", "vitest": "^3.0.0" } }