dsh-permission-rules 0.7.21 → 0.7.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/README.en.md +504 -0
- package/README.es.md +504 -0
- package/README.hi.md +504 -0
- package/README.md +309 -245
- package/README.pt.md +504 -0
- package/docs/assets/dsh-permission-rules-flow-dark.svg +58 -0
- package/docs/assets/dsh-permission-rules-flow-light.svg +58 -0
- package/docs/assets/dsh-permission-rules-flow-v5-dark.svg +103 -0
- package/docs/assets/dsh-permission-rules-flow-v5-light.svg +103 -0
- package/docs/assets/dsh-permission-rules-hero-en-dark.webp +0 -0
- package/docs/assets/dsh-permission-rules-hero-en-light.webp +0 -0
- package/docs/assets/dsh-permission-rules-hero-zh-dark.webp +0 -0
- package/docs/assets/dsh-permission-rules-hero-zh-light.webp +0 -0
- package/docs/rules-format.en.md +5 -4
- package/docs/rules-format.md +5 -4
- package/lib/index.js +230 -40
- package/lib/types/config.d.ts +9 -4
- package/lib/types/config.d.ts.map +1 -1
- package/lib/types/prose.d.ts +6 -0
- package/lib/types/prose.d.ts.map +1 -1
- package/lib/types/rules.d.ts +74 -15
- package/lib/types/rules.d.ts.map +1 -1
- package/lib/types/runtime.d.ts +59 -12
- package/lib/types/runtime.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/config.ts +9 -4
- package/src/prose.ts +21 -0
- package/src/rules.ts +131 -24
- package/src/runtime.ts +140 -24
- package/README-es.md +0 -443
- package/README-hi.md +0 -445
- package/README-pt.md +0 -443
- package/README-zh.md +0 -443
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## v0.7.22 - 2026-11-13
|
|
2
|
+
|
|
3
|
+
### Fixed
|
|
4
|
+
|
|
5
|
+
- **One bad rule no longer takes the whole policy (and the plugin's activation) down (issue #49).** `compileSourceRules` compiles a document rule by rule: a bad glob/regex, a backtracking-cap refusal, an unknown field/action, or a missing reason now disables ONLY that rule, keeps every other rule in the file and in the chain active, and reports the failure with the rule's 0-based position in the `rules` list and its source file. Before, the first bad rule aborted the whole load — an absolute `rulesFile` took the plugin's activation down before any session existed, so a typo silently removed every protection. FILE-level failures (invalid YAML, unknown top-level field, `rules` not a list, over `maxRules`) still follow `badFilePolicy`, and editor saves stay strict so a hand-written invalid rule is refused instead of dropped.
|
|
6
|
+
- **The degraded state is visible, not just a stderr line.** The plugin now checks the configured chain at mount (and each session's workspace at `session/created`) and emits a `STARTUP:` summary naming the disabled rules; `/rules` and `/rules reload` render the per-rule errors as an `error` result (red in the GUI) with one line per disabled rule. A fixed file clears the state through the normal watch reload or `/rules reload`.
|
|
7
|
+
|
|
1
8
|
## v0.7.21 - 2026-11-05
|
|
2
9
|
|
|
3
10
|
### Changed
|
package/README.en.md
ADDED
|
@@ -0,0 +1,504 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
<picture>
|
|
4
|
+
<source media="(prefers-color-scheme: dark)" srcset="docs/assets/dsh-permission-rules-hero-en-dark.webp">
|
|
5
|
+
<img src="docs/assets/dsh-permission-rules-hero-en-light.webp" width="100%" alt="The dsh-permission-rules decision ledger: the first match in an ordered rule chain, its deny verdict card, and the proxy strip of the shell-egress channel">
|
|
6
|
+
</picture>
|
|
7
|
+
|
|
8
|
+
# dsh-permission-rules
|
|
9
|
+
|
|
10
|
+
**Take back decision authority over tool calls — every allow / deny / ask lives in YAML, deterministic, instant, and auditable.**
|
|
11
|
+
|
|
12
|
+
A Claude Code-style declarative permission middleware for DeepSeek Harness: rules decide what is known, a reviewer model decides what is not; it also ships a Codex-style process-level network policy and a local proxy that govern shell-subprocess egress.
|
|
13
|
+
|
|
14
|
+
[Install](#three-step-setup) · [Configuration](#configuration) · [FAQ](#faq) · [简体中文](README.md) · [English](README.en.md) · [Español](README.es.md) · [Português](README.pt.md) · [हिन्दी](README.hi.md)
|
|
15
|
+
|
|
16
|
+
[](LICENSE)
|
|
17
|
+
[](#compatibility)
|
|
18
|
+
[](https://www.npmjs.com/package/dsh-permission-rules)
|
|
19
|
+
[](https://github.com/PerryLink/dsh-permission-rules/actions/workflows/ci.yml)
|
|
20
|
+
[](#compatibility)
|
|
21
|
+
|
|
22
|
+
[](https://github.com/PerryLink/dsh-permission-rules/stargazers)
|
|
23
|
+
[](https://www.npmjs.com/package/dsh-permission-rules)
|
|
24
|
+
[](https://dshfind.com/plugins/PerryLink/dsh-permission-rules?ref=badge)
|
|
25
|
+
[](https://securityscorecards.dev/viewer/?uri=github.com/PerryLink/dsh-permission-rules)
|
|
26
|
+
[](https://dsh.market/)
|
|
27
|
+
[](https://gitee.com/perrylink/dsh-permission-rules)
|
|
28
|
+
|
|
29
|
+
```sh
|
|
30
|
+
dsh plugin --profile <name> add dsh-permission-rules
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
</div>
|
|
34
|
+
|
|
35
|
+
<sub>Community plugin, not affiliated with DeepSeek. Canonical repository: <https://github.com/PerryLink/dsh-permission-rules> (Gitee is a mirror).</sub>
|
|
36
|
+
|
|
37
|
+
## What it is
|
|
38
|
+
|
|
39
|
+
`dsh-permission-rules` puts an ordered **`allow` / `deny` / `ask`** rule list in front of every tool call on the `tools/pre-execute` waterfall — deterministic, instant, auditable, and written by you in plain YAML. Rules decide the calls you know; the uncertain ones go to the official approval seam, answered by a reviewer model or a human. A second layer adds a Codex-style process-level network policy: shell-subprocess egress flows through a built-in local HTTP/CONNECT proxy, adjudicated by network rules or by three modes mapped onto the official sandbox presets.
|
|
40
|
+
|
|
41
|
+
<picture>
|
|
42
|
+
<source media="(prefers-color-scheme: dark)" srcset="docs/assets/dsh-permission-rules-flow-v5-dark.svg">
|
|
43
|
+
<img src="docs/assets/dsh-permission-rules-flow-v5-light.svg" width="100%" alt="dsh-permission-rules structure: tool calls and shell egress converge on one ordered rule chain, fork into tool-call and network-egress verdict banks, and close on two log-only audit events">
|
|
44
|
+
</picture>
|
|
45
|
+
|
|
46
|
+
*Structure: two channels (tool calls / shell egress) converge on one ordered rule chain — first match wins — then fork into tool-call and network-egress verdicts, closed by two log-only audit events.*
|
|
47
|
+
|
|
48
|
+
## Three-step setup
|
|
49
|
+
|
|
50
|
+
1. **Install** (pick one channel):
|
|
51
|
+
|
|
52
|
+
```sh
|
|
53
|
+
# git channel (latest main; the prepare script builds with production dependencies only)
|
|
54
|
+
dsh plugin --profile web add github:PerryLink/dsh-permission-rules
|
|
55
|
+
# npm channel (published releases)
|
|
56
|
+
dsh plugin --profile web add dsh-permission-rules
|
|
57
|
+
# tarball channel: pnpm pack in this repo, then
|
|
58
|
+
dsh plugin --profile web add ./dsh-permission-rules-<version>.tgz
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
2. **Write your first rule** (`.dsh/rules.yaml` at the project root; optional, the built-in high-risk baseline is on by default):
|
|
62
|
+
|
|
63
|
+
```yaml
|
|
64
|
+
# <project>/.dsh/rules.yaml
|
|
65
|
+
rules:
|
|
66
|
+
- match: { tools: [bash, pwsh], params: { command: "git push*" }, paths: ["**/secrets/**"] }
|
|
67
|
+
action: deny
|
|
68
|
+
reason: "No pushes from protected paths"
|
|
69
|
+
|
|
70
|
+
- match: { tools: [edit, write] }
|
|
71
|
+
action: ask
|
|
72
|
+
reason: "File writes need confirmation"
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
3. **Verify it mounts**:
|
|
76
|
+
|
|
77
|
+
```sh
|
|
78
|
+
# after restarting the profile, confirm the plugin row
|
|
79
|
+
dsh --profile web --dump-config | grep -A4 'id: permission-rules'
|
|
80
|
+
# dry-evaluate a hypothetical call on the real command surface; no tool runs
|
|
81
|
+
/rules test bash {"command":"git push origin main","cwd":"src/secrets/app"}
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
```text
|
|
85
|
+
"bash" matches rule 1 (deny): 禁止 push 到受保护路径
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
**Uninstall**: `dsh plugin --profile web remove dsh-permission-rules` (or remove the row from the profile patch).
|
|
89
|
+
|
|
90
|
+
<details>
|
|
91
|
+
<summary>Install from the DSH Desktop market</summary>
|
|
92
|
+
|
|
93
|
+
Every PerryLink plugin is listed in the built-in DSH Desktop market: **Market → Sources → Add source → paste** `https://perrylink-dsh-catalog.perrylink.workers.dev/catalog-source.json` **→ select**. Installation still requires the market's npm identity check and your confirmation.
|
|
94
|
+
|
|
95
|
+
</details>
|
|
96
|
+
|
|
97
|
+
## Core capabilities
|
|
98
|
+
|
|
99
|
+
`dsh-permission-rules` puts ordered rules in front of every tool call on `tools/pre-execute` — deterministic, instant, auditable:
|
|
100
|
+
|
|
101
|
+
- **`deny`** blocks the call; the rule's `reason` becomes the model-visible error.
|
|
102
|
+
- **`ask`** rides the official approval seam (mount `dsh-auto-review` for a second-model answerer, or a human answers; with neither, the harness fails closed).
|
|
103
|
+
- **`allow`** (and no-match) strictly delegates via `next()` — downstream listeners are never short-circuited.
|
|
104
|
+
|
|
105
|
+
Every hit **and** every passthrough is audit-logged as a `permissionRules/decision` session event (log-only — nothing extra is injected into the model context).
|
|
106
|
+
|
|
107
|
+
- **Rich matching** — tool-name globs (including `mcp__*`), agent-identity selectors (`main` / `subagent` / `preset:*`), argument key/value globs **or** regexes (with `!pattern` negation and an `absent` key dimension), workspace-relative path globs at **any nesting depth**, `when` host conditions (env vars, platform), and **shell command decomposition** (`argv`: command word, argument tokens, pipeline signature) for token-precise command matching.
|
|
108
|
+
- **Built-in high-risk baseline** — a shipped deny/ask ruleset (destructive commands, privilege escalation, download-and-execute, sensitive paths) enabled by default and appended after user rules so a nearer user rule can override it; toggle with `builtin.enabled`.
|
|
109
|
+
- **Hierarchical rule files** — optional `searchUp` merges every `.dsh/rules.yaml` from the session cwd to the filesystem root, nearest first.
|
|
110
|
+
- **Dry-run rollout** — `enforce: false` audits what the policy *would* do while passing every call through.
|
|
111
|
+
- **Hot reload** — Chokidar watch with debounce; a file-level broken edit keeps the previous rules and never crashes, while a single bad rule only disables itself. On a WSL host, or for a rule file under `/mnt/<drive>`, the watch switches to polling because native change events are unreliable there.
|
|
112
|
+
- **Loud, but bounded** — file-level errors (invalid YAML and friends) follow `badFilePolicy`; a single bad rule (bad glob/regex, unknown field/action) disables only itself and is surfaced at startup and in `/rules`, while every other rule keeps working (issue #49).
|
|
113
|
+
|
|
114
|
+
### Commands & tools surface
|
|
115
|
+
|
|
116
|
+
| Surface | Kind | Notes |
|
|
117
|
+
|---|---|---|
|
|
118
|
+
| `tools/pre-execute` | listener | First-match allow/deny/ask rules + network URL-candidate extraction |
|
|
119
|
+
| `/rules` | command | `list` · `reload` · `decisions [n]` · `test <tool> <json>` |
|
|
120
|
+
| `permissionRules/decision` | event | Log-only audit for every hit and passthrough |
|
|
121
|
+
| `permissionRules/network` | event | Proxy-layer audit for blocked connections |
|
|
122
|
+
| HTTP/CONNECT proxy | service | Built-in local proxy governing shell subprocess traffic |
|
|
123
|
+
| settings page | client | Network-mode editor, rule editor, block counters, recent interceptions with a per-block allow action |
|
|
124
|
+
|
|
125
|
+
```text
|
|
126
|
+
/rules list the active rules, their source files, and any last-reload error
|
|
127
|
+
/rules list explicit alias for the bare listing
|
|
128
|
+
/rules reload re-read the rule-file chain for this workspace
|
|
129
|
+
/rules decisions [n] show the last n permission decisions of this session (default 10)
|
|
130
|
+
/rules test <tool> <json> dry-evaluate the rules against a hypothetical call
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
`/rules test` also accepts leading flags: `--cwd <dir>`, `--env KEY=VALUE` (repeatable), `--agent <selector>` (repeatable), and `--platform <name>`. In multi-file chains (e.g. `searchUp`), every listed rule line is attributed to its own source file.
|
|
134
|
+
|
|
135
|
+
### Examples
|
|
136
|
+
|
|
137
|
+
These are the plugin's real entry points; install once, then call one.
|
|
138
|
+
|
|
139
|
+
**Detailed example** — command `/rules test bash {"command":"git push origin main","cwd":"src/secrets/app"}`, output:
|
|
140
|
+
|
|
141
|
+
```text
|
|
142
|
+
"bash" matches rule 1 (deny): 禁止 push 到受保护路径
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
*Observed from `test/command.spec.ts:204-219 (assertions at :209-213); src/prose.ts:121`*
|
|
146
|
+
|
|
147
|
+
**Failure branch** — input `/rules test bash {not json`, output:
|
|
148
|
+
|
|
149
|
+
```text
|
|
150
|
+
Invalid JSON arguments "{not json": the arguments must parse as JSON.
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
*Observed from `plugins/dsh-permission-rules/src/prose.ts:123; plugins/dsh-permission-rules/src/runtime.ts:1266-1272; plugins/dsh-permission-rules/test/command.spec.ts:221-228`*
|
|
154
|
+
|
|
155
|
+
**Brief examples**: `tools/pre-execute` · `/rules test <tool> <json>`
|
|
156
|
+
|
|
157
|
+
## Rule syntax
|
|
158
|
+
|
|
159
|
+
```yaml
|
|
160
|
+
# <project>/.dsh/rules.yaml
|
|
161
|
+
rules:
|
|
162
|
+
- match: { tools: [bash, pwsh], params: { command: "git push*" }, paths: ["**/secrets/**"] }
|
|
163
|
+
action: deny
|
|
164
|
+
reason: "No pushes from protected paths"
|
|
165
|
+
|
|
166
|
+
- match: { tools: [edit, write] }
|
|
167
|
+
action: ask
|
|
168
|
+
reason: "File writes need confirmation"
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
- **Match dimensions** — `tools` (globs, incl. `mcp__*`), `agents` (`main` / `subagent` / `preset:<name>`; unknown identity never matches — fail closed), `params` (key/value globs or regexes, `!pattern` negation, `absent` key dimension), `paths` (workspace-relative globs extracted at any nesting depth), `when` (`env` var globs/regexes + a closed `platform` list), and `network` (`domains` / `ips` / `ports` / `schemes` — globs, wildcards, CIDRs, port ranges).
|
|
172
|
+
- **Actions** — `allow` / `deny` / `ask`, evaluated in file order, first match wins.
|
|
173
|
+
- **Rule metadata** — `enabled: false` (visible but inert), `description`, `tags`; unknown fields fail the load.
|
|
174
|
+
- **Schema** — a JSON Schema ships at [docs/rules-format.schema.json](docs/rules-format.schema.json) (editor completion via `# yaml-language-server: $schema=...`); the full vocabulary and a 5-rule security baseline live in [docs/rules-format.en.md](docs/rules-format.en.md).
|
|
175
|
+
|
|
176
|
+
## Network policy
|
|
177
|
+
|
|
178
|
+
A Codex-style **process-level network policy**: shell subprocess traffic flows through a built-in local **HTTP/CONNECT proxy**, and every connection is decided by ordered network rules or by three modes mapped onto the official sandbox presets:
|
|
179
|
+
|
|
180
|
+
- **`deny-all`** — the read-only sandbox preset: block all outbound.
|
|
181
|
+
- **`whitelist`** — the workspace-write preset: allow listed targets, `unlisted: ask` (or `deny`) for the rest.
|
|
182
|
+
- **`allow-all`** — the danger-full-access preset: allow everything.
|
|
183
|
+
- **`auto`** (default) — follows the sandbox preset; on hosts without the sandbox-policy service it resolves to `autoFallback` (`allow-all`).
|
|
184
|
+
|
|
185
|
+
- **Matching** — `match.network` with `domains` / `ips` / `ports` / `schemes` (globs, wildcards, CIDRs, port ranges; numeric YAML ports are accepted). URL-candidate extraction on the `tools/pre-execute` hot path fires on web-tool arguments and URLs embedded in bash/pwsh command text; loopback targets can short-circuit rules per `loopback` policy. IPv4-mapped IPv6 literals are normalized to their IPv4 form before matching, and the proxy connects on the addresses the decision was made on — never a second DNS resolution — a connection whose adjudication resolved no address fails closed (502) instead of dialing the name.
|
|
186
|
+
- **Upstream chaining** — `network.upstreamProxy` (default `off`) sends the connections this proxy **allows** through an upstream proxy: CONNECT asks the upstream for a tunnel (`CONNECT host:port`) and plain-HTTP requests are forwarded to it in absolute form. A blocked target never reaches the upstream — it still gets this plugin's structured 403. Two cases never chain even when an upstream is configured: a **loopback** target (a proxy outside this host cannot route its loopback) and any decision produced by an **`ips`-scoped rule** (chaining hands the hostname to the upstream, so "the connection lands on an address the rules saw" — issue #21 — would stop holding exactly where the rules cared about the address; those decisions keep dialing the adjudicated address directly), plus a target whose scheme has no usable upstream. The upstream's own hostname is operator configuration, not agent input, and is not adjudicated by these rules. A URL carrying credentials is never emitted raw: warnings, `/rules network` and the settings snapshot mask the password (`http://user:***@host:port`). An unreachable upstream, a timeout (10 s), or a non-2xx answer yields **502** — there is deliberately no silent fallback to a direct dial, so a misconfiguration stays visible.
|
|
187
|
+
- **Audit** — denied connections append `permissionRules/network` to the owning session (same adaptive `ignorable` gate), with block counters and recent interceptions in `/rules network` and the settings page.
|
|
188
|
+
- **Diagnosis** — blocked connections carry a `[network: …]` message naming the blocked target, the mode or rule that decided, and the remediation.
|
|
189
|
+
- **Allow from the settings page** — every recent interception offers an **Allow** action. It writes ONE minimal `match: { network: { domains: [<host>] } }` / `action: allow` rule at the **top** (index 0) of the nearest rule file that actually judges that connection: the project file of the workspace the block was attributed to (the absolute `rulesFile` when one is configured), or, for a session-less host-level block, the file the host chain resolves (absolute `rulesFile` → existing `<processCwd>/<rulesFile>` → configured `fallbackPath` → `<processCwd>/<rulesFile>`, created) — and when several workspaces are loaded, the page first offers a picker, because any loaded workspace chain outranks the host chain. Index 0 because rules are first-match-wins: appended after an existing `deny` the rule would be dead text. `domains` only, because that dimension is subdomain-inclusive and port/scheme-agnostic, so the host is not re-blocked on its next port; existing comments and untouched rules survive, and the text goes through the same validation gate as a hand edit. The change takes effect immediately — the cached workspace chains AND the session-less host chain are re-read, so no restart and no `/rules reload` — and the decision is recomputed, so the notice reports the REAL outcome and never claims success while the connection is still blocked. It refuses, leaving the file untouched, an unknown workspace, a target outside the known rule sources, the read-only built-in baseline, and a file it cannot read or parse; an already-allowed connection writes nothing. `network.allowHostAction: false` hides the button and makes the RPC refuse.
|
|
190
|
+
|
|
191
|
+
## Configuration
|
|
192
|
+
|
|
193
|
+
All tunables are Schemastery `Config` fields (changeable from cordis.yml). An id-targeted override replaces the whole row — restate every key you need. On a `0.1.7-alpha` host every field is declared `.volatile()`, so it is ALSO editable in place from the Plugins settings page: the edit is committed into the running references without remounting the plugin, the runtime reads the new value on its next use, and a change to `network.proxyPort`, `proxyBind`, `injectEnv` or `noProxy` rebinds the local proxy immediately. The numeric bounds live in the schema, and the config editor resolves the merged config against that schema before persisting, so an out-of-range value is refused at write time. On a host whose Schemastery predates `volatile()` these fields stay cordis.yml-only.
|
|
194
|
+
|
|
195
|
+
Most-used keys:
|
|
196
|
+
|
|
197
|
+
| Key | Default | Meaning |
|
|
198
|
+
|---|---|---|
|
|
199
|
+
| `rulesFile` | `.dsh/rules.yaml` | Rule file location; relative = resolved against the calling session's cwd, absolute = global and validated at mount |
|
|
200
|
+
| `fallbackPath` | *(none)* | Rule file used when per-cwd discovery finds nothing; validated at mount |
|
|
201
|
+
| `badFilePolicy` | `fail` | File-level failures: `fail` errors the pending tool call loudly; `ignore-with-warning` warns and continues empty. A single bad rule is always isolated: that rule is disabled and reported at startup and in `/rules` |
|
|
202
|
+
| `maxRules` | `256` | Hard cap on rule count across the effective source chain |
|
|
203
|
+
| `patternMode` | `glob` | `params`/`paths`/`when.env` pattern flavor: `glob` or `regex` (tool names are always globs) |
|
|
204
|
+
| `watch` | `true` | Chokidar watch + reload on change |
|
|
205
|
+
| `enforce` | `true` | `false` = dry-run mode: deny/ask hits are audit-logged with a `dryRun` marker and every call passes through |
|
|
206
|
+
| `language` | `en` | `/rules` output language: `en`, `zh`, `es`, `pt`, `hi` |
|
|
207
|
+
|
|
208
|
+
<details>
|
|
209
|
+
<summary>Full configuration table (29 keys)</summary>
|
|
210
|
+
|
|
211
|
+
| Key | Default | Meaning |
|
|
212
|
+
|---|---|---|
|
|
213
|
+
| `rulesFile` | `.dsh/rules.yaml` | Rule file location; relative = resolved against the calling session's cwd, absolute = global and validated at mount |
|
|
214
|
+
| `fallbackPath` | *(none)* | Rule file used when per-cwd discovery finds nothing; validated at mount |
|
|
215
|
+
| `badFilePolicy` | `fail` | File-level failures: `fail` errors the pending tool call loudly; `ignore-with-warning` warns and continues empty. A single bad rule is always isolated: that rule is disabled and reported at startup and in `/rules` |
|
|
216
|
+
| `maxRules` | `256` | Hard cap on rule count across the effective source chain |
|
|
217
|
+
| `maxCachedWorkspaces` | `512` | Hard cap on cached per-workspace rule loads (LRU eviction) |
|
|
218
|
+
| `patternMode` | `glob` | `params`/`paths`/`when.env` pattern flavor: `glob` or `regex` (tool names are always globs) |
|
|
219
|
+
| `watch` | `true` | Chokidar watch + reload on change |
|
|
220
|
+
| `watchStabilityThresholdMs` | `200` | Reload debounce window (ms) |
|
|
221
|
+
| `language` | `en` | `/rules` output language: `en`, `zh`, `es`, `pt`, `hi` |
|
|
222
|
+
| `caseInsensitivePaths` | *(win32)* | `paths` patterns and workspace-root comparison ignore ASCII case; `true` on Windows |
|
|
223
|
+
| `audit` | `all` | Audit granularity: `all` logs every hit AND passthrough; `hits` skips passthrough events |
|
|
224
|
+
| `searchUp` | `false` | Walk parent directories from the session cwd and merge every found rule file, nearest first |
|
|
225
|
+
| `maxGlobStars` | `2` | Hard cap on unbounded `*`/`**` quantifiers per glob pattern |
|
|
226
|
+
| `enforce` | `true` | `false` = dry-run mode: deny/ask hits are audit-logged with a `dryRun` marker and every call passes through |
|
|
227
|
+
| `allowUnmarkedAudit` | `false` | Pre-marker hosts drop the `ignorable` marker; the plugin disables session-log audit with a warning. Set `true` to opt back in |
|
|
228
|
+
| `network.enabled` | `true` | Master switch for the proxy, env injection, and web-tool mode defaults |
|
|
229
|
+
| `network.mode` | `auto` | Policy mode: `auto` follows the sandbox preset, or `deny-all` / `whitelist` / `allow-all` |
|
|
230
|
+
| `network.autoFallback` | `allow-all` | Mode used when `auto` has no sandbox-policy service |
|
|
231
|
+
| `network.unlisted` | `ask` | Whitelist-mode handling of targets no rule matched: `ask` or `deny` |
|
|
232
|
+
| `network.proxyBind` | `127.0.0.1` | Local proxy bind address (loopback only) |
|
|
233
|
+
| `network.proxyPort` | `0` | Local proxy port; `0` picks a free ephemeral port |
|
|
234
|
+
| `network.proxyMaxRecent` | `100` | Cap on recent-block records kept for the settings page |
|
|
235
|
+
| `network.loopback` | `allow` | Loopback targets: `allow` (Codex parity) or `policy` |
|
|
236
|
+
| `network.injectEnv` | `true` | Whether proxy environment variables are injected for subprocesses |
|
|
237
|
+
| `network.noProxy` | `clear` | Subprocess NO_PROXY handling: `clear` enforces the policy or `preserve` |
|
|
238
|
+
| `network.upstreamProxy` | `off` | Upstream proxy for connections this plugin ALLOWS: `off` dials directly, `inherit` reuses the launch environment's proxy names, or an explicit `http(s)://` proxy URL |
|
|
239
|
+
| `network.allowHostAction` | `true` | Settings-page per-block "allow this host" action: `false` hides the Allow button and makes the `permissionRules/allowHost` RPC refuse (the rule editor is not affected) |
|
|
240
|
+
| `builtin.enabled` | `true` | Built-in high-risk baseline: `false` disables the shipped deny/ask ruleset entirely |
|
|
241
|
+
| `builtin.path` | *(shipped)* | Replacement baseline file (absolute, or relative to `process.cwd()`); validated at mount |
|
|
242
|
+
|
|
243
|
+
</details>
|
|
244
|
+
|
|
245
|
+
## FAQ
|
|
246
|
+
|
|
247
|
+
<details>
|
|
248
|
+
<summary>Where do rule files live? Will the plugin write to my files?</summary>
|
|
249
|
+
|
|
250
|
+
Rules are read from disk: `.dsh/rules.yaml` at the project root, or the configured `rulesFile` / `fallbackPath`, merged upwards under `searchUp`. The normal adjudication path writes no rule data. The only write surfaces are the settings-page rule editor and the "Allow" action — the latter writes one minimal allow rule at the top of a known rule source and re-runs the same parse/compile validation as a hand edit (see "Network policy").
|
|
251
|
+
|
|
252
|
+
</details>
|
|
253
|
+
|
|
254
|
+
<details>
|
|
255
|
+
<summary>What happens to ask without dsh-auto-review mounted?</summary>
|
|
256
|
+
|
|
257
|
+
`ask` rides the official approval seam: with `dsh-auto-review` mounted, a read-only second model answers; otherwise a human does; with neither, the harness fails closed and the call is never silently allowed. This plugin itself never spawns subagents or calls models — producing an `ask` decision is the end of its work.
|
|
258
|
+
|
|
259
|
+
</details>
|
|
260
|
+
|
|
261
|
+
<details>
|
|
262
|
+
<summary>Does this proxy intercept the host's own outbound requests?</summary>
|
|
263
|
+
|
|
264
|
+
No. The injected proxy environment covers **spawned shell children** and any consumer that reads the proxy names at request time. It does **not** cover the host process's own `fetch`-based traffic: the launcher installs undici's global dispatcher from the launch environment before the first plugin mounts, and that dispatcher routes by its policy rather than by the environment. Provider endpoints therefore need no allow rule, and `network.injectEnv: false` does not take the host process out of anything. Measured 2026-09-10 on Node 22; reproduce with `scripts/host-egress-probe.mjs`.
|
|
265
|
+
|
|
266
|
+
</details>
|
|
267
|
+
|
|
268
|
+
<details>
|
|
269
|
+
<summary>How much does it cost on the hot path?</summary>
|
|
270
|
+
|
|
271
|
+
Rule evaluation is an in-memory first-match walk — no model calls, no network requests; hits and passthroughs only append session audit. A failed watch warns and keeps the previous rules. For large rule sets, set `audit: hits` to skip passthrough events, or bound the load with `maxRules` / `maxCachedWorkspaces`.
|
|
272
|
+
|
|
273
|
+
</details>
|
|
274
|
+
|
|
275
|
+
<details>
|
|
276
|
+
<summary>Does it fight other plugins over events, command names, or slots?</summary>
|
|
277
|
+
|
|
278
|
+
No. Tool names are namespaced and no bare name is taken; the service keys `permissionRules` / `permissionRulesRuntime` are not a built-in seam and are provided by no surveyed high-star plugin; it registers no client slot and no `webServer` prefix, and its patch only `insert`s its own row; shared events always delegate through `next()`. The point-by-point argument is in "Interoperability with other DSH plugins".
|
|
279
|
+
|
|
280
|
+
</details>
|
|
281
|
+
|
|
282
|
+
## Security boundaries
|
|
283
|
+
|
|
284
|
+
- **Policy, not a kernel.** `paths` candidates come only from a documented set of argument keys (at any nesting depth, depth-capped), and only workspace-relative paths match.
|
|
285
|
+
- **No reviewer here.** The plugin never spawns subagents or calls models — producing an `ask` decision is the end of its work.
|
|
286
|
+
- **No sandbox changes.** OS-level sandbox policy belongs to the sandbox seam, not this plugin.
|
|
287
|
+
- **Loud misconfiguration.** Unknown YAML fields, unknown actions, and bad patterns are rejected at load.
|
|
288
|
+
- **Backtracking bounds.** Glob patterns are capped at `maxGlobStars` unbounded star expansions; regex-mode patterns reject nested unbounded quantifiers and quantified overlapping literal alternations.
|
|
289
|
+
- **Fail-closed dialing.** Plain-HTTP forwards and CONNECT tunnels connect only to adjudicated addresses; an allow whose adjudication resolved no address fails closed with 502 instead of dialing the name (issue #23).
|
|
290
|
+
|
|
291
|
+
## Permissions & data
|
|
292
|
+
|
|
293
|
+
- **Permissions**: declares `files:read`, `files:watch`, `files:write`, `session:append`, and `network:outbound` in its workshop manifest. `ask` decisions ride the official approval seam — nothing is re-implemented or bypassed.
|
|
294
|
+
- **Data**: rule files are read from disk; normal adjudication writes no rule data — the only write surfaces are the settings-page rule editor and the "Allow" action. No model calls, no reviewer subagents.
|
|
295
|
+
- **Session log**: `permissionRules/decision` is never injected into the model context and is appended with the envelope's `ignorable: true` marker so any harness build loads the log.
|
|
296
|
+
|
|
297
|
+
## Known limitations
|
|
298
|
+
|
|
299
|
+
- **Audit marker on pre-marker and refusing hosts.** `permissionRules/decision` is appended with `ignorable: true`; hosts whose `Session.append` predates the marker (the `0.1.0-rc.1`–`rc.7` and `0.1.1-rc.1`–`rc.7` lines) silently drop it, the `0.1.2-rc` line ships the alpha.5 surface (no append option writes the marker), the `0.1.2-alpha` line refuses plugin events on read even when marked, and the `0.1.3-alpha` and `0.1.5-alpha` lines keep the same surface-only append signature (verified on the published `0.1.3-alpha.1`/`0.1.5-alpha.1` packages) — the runtime pre-checks all of these before the first append and disables session-log audit with a one-time warning. Cross-generation migration refuses marked audit rows too: the `0.1.3-alpha` v1→v2 gate refuses unknown v1 events, and the `0.1.5-alpha` v2→v3 gate refuses every unclassified event (its inventory is frozen to the released v2 vocabulary), so `strip` v1 rows before a 0.1.3 host opens the log and v2 rows before upgrading to a 0.1.5 host. Native v3 logs accept marked plugin rows, so they only need `repair`. Set `allowUnmarkedAudit: true` to opt back in; repair already-written logs with `scripts/repair-session-logs.mjs` (its `strip` mode removes audit rows where the marker cannot help).
|
|
300
|
+
- **Path candidates are heuristic.** Only the documented argument keys feed path matching, and workspace-relative matching is ASCII-case-insensitive only when `caseInsensitivePaths` is on.
|
|
301
|
+
- **Globs are a conservative subset.** No brace expansion — write two patterns, or use regex mode.
|
|
302
|
+
- **The regex backtracking guard is structural, not exhaustive.** Prefer glob mode for untrusted files.
|
|
303
|
+
- **The host's own outbound requests do not go through this proxy.** The injected proxy environment covers **spawned shell children** — which is what the injection is for — and any consumer that reads the proxy names at request time. It does **not** cover the host process's own `fetch`-based traffic: the launcher installs undici's global dispatcher from the **launch environment** before the first plugin mounts, that dispatcher routes by its policy rather than by the environment, and Node samples the proxy environment at start — so a plugin mounting later cannot redirect it. Consequences: provider endpoints do **not** need an allow rule, and `network.injectEnv: false` does not take the host process out of anything. Measured 2026-09-10 on Node 22; reproduce with `scripts/host-egress-probe.mjs`.
|
|
304
|
+
- **Upstream chaining covers only what reaches this proxy.** On `dsh-v0.1.7-alpha.1` and later, the harness's own launch-time proxy policy and its subprocess environment overlay can take precedence over the proxy names this plugin injects, so `network.upstreamProxy` describes what happens to the connections this proxy handles — it is not a claim about every outbound path in the host process.
|
|
305
|
+
|
|
306
|
+
## Interoperability with other DSH plugins
|
|
307
|
+
|
|
308
|
+
Verified against **DSH `0.2.0-rc.2`** (the runtime this README ships for) and the high-star plugin set surveyed on 2026-10-05.
|
|
309
|
+
|
|
310
|
+
This plugin **does not interfere** with other plugins, including the widely installed high-star ones:
|
|
311
|
+
|
|
312
|
+
- **No tool-name collision.** Every tool is namespaced; no bare name owned by a shipped tool or another plugin is registered.
|
|
313
|
+
- **No service-key collision.** It provides `permissionRules`, `permissionRulesRuntime`; those keys are not a built-in seam and are not provided by any surveyed high-star plugin.
|
|
314
|
+
- **No slot collision.** It registers no client slot key, so it cannot contend for a `shadows-shipped-ui` seat.
|
|
315
|
+
- **No HTTP route collision.** It registers no `webServer` prefix.
|
|
316
|
+
- **No patch-layer collision.** The bundle patch only `insert`s its own row; it never overrides a built-in row's `config`.
|
|
317
|
+
- **No global mutation.** It does not patch prototypes, rewrite `process.env`, or replace the global fetch dispatcher.
|
|
318
|
+
|
|
319
|
+
**Shared event listeners are non-interfering by construction.** It observes the ordering-sensitive events `tools/post-execute`, `tools/pre-execute` with `ctx.on()` — Cordis's broadcast registration, where every listener runs and none can starve another. **Every listener here delegates through `next()`**, so the chain is never short-circuited, and a mutation is applied to the value `next()` produced rather than returned in its place:
|
|
320
|
+
|
|
321
|
+
- `tools/post-execute` — also used by `cc-safety-net` (1576★).
|
|
322
|
+
- `tools/pre-execute` — also used by `cc-safety-net` (1576★).
|
|
323
|
+
|
|
324
|
+
Static evidence: `dsh-plugin-doctor` K10–K13 report `pass` for every check on this repository.
|
|
325
|
+
|
|
326
|
+
## Collaborating with dsh-auto-review
|
|
327
|
+
|
|
328
|
+
- `dsh-permission-rules` produces `ask`; `dsh-auto-review` answers on the `approval/request` waterfall with a read-only second-model verdict (or delegates to humans). Mount both for the full closed loop.
|
|
329
|
+
- Integration-tested: `permissionRules/decision` → `approval/asked` → `autoReview/verdict` → `approval/decided`, with the reviewer replaced by a scripted mock.
|
|
330
|
+
- The `never` approval policy and every fail-closed guarantee of the official harness stay untouched.
|
|
331
|
+
|
|
332
|
+
## Session log repair
|
|
333
|
+
|
|
334
|
+
Session logs written before the `ignorable` marker existed can be refused by newer harness builds (`SessionFormatUnsupportedError`). The shipped `scripts/repair-session-logs.mjs` rewrites only the targeted audit rows to carry `ignorable: true`, frame-preserving, with backups:
|
|
335
|
+
|
|
336
|
+
```sh
|
|
337
|
+
node scripts/repair-session-logs.mjs scan [--home DIR] # report foreign rows, change nothing
|
|
338
|
+
node scripts/repair-session-logs.mjs repair [--home DIR] [--dry-run]
|
|
339
|
+
node scripts/repair-session-logs.mjs strip [--home DIR] [--dry-run]
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
`--home` defaults to `$DSH_HOME/sessions` (or `~/.dsh/sessions`). Every generation-addressed log is discovered by its canonical basename — `session.jsonl`, `session.v2.jsonl`, `session.v3.jsonl`, each optionally `.zstd`-compressed — so pick the mode by generation:
|
|
343
|
+
|
|
344
|
+
- **v3 (`session.v3.jsonl`, written natively by the `0.1.5-alpha` line)** — the read path accepts marked plugin rows, so `repair` is enough.
|
|
345
|
+
- **v2 (`session.v2.jsonl`, written by the `0.1.3-alpha` line)** — `repair` opens it on the host that wrote it, but the `0.1.5-alpha` v2→v3 migration refuses every unclassified event even when marked: run `strip` on v2 logs **before** upgrading to a `0.1.5-alpha` host.
|
|
346
|
+
- **v1 (`session.jsonl`)** — the `0.1.3-alpha` v1→v2 migration refuses unknown v1 events even when marked: run `strip` before a 0.1.3-or-later host first opens the log.
|
|
347
|
+
|
|
348
|
+
## Compatibility
|
|
349
|
+
|
|
350
|
+
| Surface | Status |
|
|
351
|
+
|---|---|
|
|
352
|
+
| Harness | DeepSeek Harness `dsh-v0.2.1-alpha.1` (adapted 2026-09-22, full gate chain): its plugin config is the live settings contract — every field is declared `.volatile()`, the Loader hands `apply` a live reference per field, and a saved edit is committed into the running references WITHOUT remounting the plugin, with out-of-range values refused by the schema before anything is written. A host whose Schemastery predates `volatile()` (before 3.18.3) still mounts and runs this plugin — the fields simply stay ordinary values and the live config form is unavailable — because the marker is applied through a capability probe rather than assumed. `Session.append` on this line still cannot stamp the `ignorable` marker (its third argument is the surface-intent bag, and the envelope field survives for stored-log reads only), so the whole `0.2-alpha` line is pre-checked as unmarked and session-log audit stays disabled by default — `append` reads only `sourceEventSeqs`/`surfaceOp` and freezes the envelope, so it has no code path that could stamp the marker; the earlier `0.1.7-alpha` (adapted 2026-09-22), `0.1.5-rc.2` (adapted 2026-09-09) and `0.1.3-alpha` lines keep the same surface-only append signature, and every `0.2` prerelease is classified with them (a STABLE `0.2.x` release is left to the append probe, so a restored marker surface is adopted without a new plugin release). Those lines' log migrations refuse unclassified plugin events even when marked, so `strip` v1 audit rows before a `0.1.3-alpha` host opens the log and v2 audit rows before a `0.1.5-alpha` host migrates it (native v3 logs only need `repair`). |
|
|
353
|
+
| Node | `^22.19.0 || >=24.9.0` |
|
|
354
|
+
| Platforms | All (host + web settings client) |
|
|
355
|
+
| Model | Any (deny/ask reasons surface through tool results) |
|
|
356
|
+
|
|
357
|
+
## Ecosystem & quality
|
|
358
|
+
|
|
359
|
+
- [Gitee mirror](https://gitee.com/perrylink/dsh-permission-rules) (sync mirror; GitHub is canonical)
|
|
360
|
+
- [dshfind plugin page](https://dshfind.com/plugins/PerryLink/dsh-permission-rules) (installs and ranking)
|
|
361
|
+
- [OpenSSF Scorecard report](https://securityscorecards.dev/viewer/?uri=github.com/PerryLink/dsh-permission-rules) (driven by [.github/workflows/scorecard.yml](.github/workflows/scorecard.yml))
|
|
362
|
+
- [dsh-plugin-doctor verification report](https://github.com/PerryLink/dsh-plugin-doctor#verified-徽章) (K10–K13 all `pass`)
|
|
363
|
+
- [DSH Market](https://dsh.market/) (listed)
|
|
364
|
+
- **1024 store channel**: `npm i -g dsh1024` once, then `dsh1024 plugin --profile web add dsh-permission-rules` (counts toward the [deepseek1024.com](https://deepseek1024.com) install ranking)
|
|
365
|
+
- [Ecosystem knowledge base](https://perrylink.github.io/dsh-plugin-guide/) — measured data, not marketing: plugin development guide · plugin-selection data · maintenance criteria
|
|
366
|
+
|
|
367
|
+
## Development
|
|
368
|
+
|
|
369
|
+
```sh
|
|
370
|
+
pnpm install # node ^22.19 || >=24.9
|
|
371
|
+
pnpm run typecheck # tsc, src + tests
|
|
372
|
+
pnpm run lint # eslint, src + tests + scripts
|
|
373
|
+
pnpm test # vitest: 24 spec files
|
|
374
|
+
pnpm run test:coverage # coverage gate (90/80/90/90)
|
|
375
|
+
pnpm run build # tsc declarations + tsdown bundles (lib/)
|
|
376
|
+
pnpm run pack:check # build + pack (the published artifact)
|
|
377
|
+
node scripts/check-readme-sync.mjs # five-language README sync gate (also in CI)
|
|
378
|
+
```
|
|
379
|
+
|
|
380
|
+
See [VERIFICATION.md](VERIFICATION.md) for the headless end-to-end verification record. README images are generated programmatically by [`scripts/gen-readme-assets.py`](scripts/gen-readme-assets.py) (Pillow draws the 1440×576 zh/en light/dark hero banners; a hand-written 1100×660 dual-channel SVG is the structure figure) and are safe to re-run.
|
|
381
|
+
|
|
382
|
+
Topics: `dsh`, `dsh-plugin`, `deepseek-harness`, `permission`, `policy`, `allow-deny-ask`, `approval`, `safety`, `network`, `network-policy`, `proxy`
|
|
383
|
+
|
|
384
|
+
## Family & thanks
|
|
385
|
+
|
|
386
|
+
This project is part of the DeepSeek Harness plugin family from [PerryLink](https://github.com/PerryLink) (all Apache-2.0). If it is useful, **a star helps the next person find it** — nothing is gated behind it.
|
|
387
|
+
|
|
388
|
+
- [@PerryLink](https://github.com/PerryLink) — creator and maintainer: rule vocabulary and evaluation, runtime, HMR watch, session-log audit, network policy + proxy, and the five-language docs.
|
|
389
|
+
- [@am-i-dead](https://github.com/am-i-dead) — split the client-safe allow-host helpers out of the host-only module (#24).
|
|
390
|
+
- [@22xuan](https://github.com/22xuan) — the detailed report on rc.6 hosts silently dropping the audit event's `ignorable` marker ([#2](https://github.com/PerryLink/dsh-permission-rules/issues/2)) and the upstream harness discussion; the v0.4.1 runtime host-capability detection and the documentation correction drew directly from that analysis.
|
|
391
|
+
- [@sjh9714](https://github.com/sjh9714) — proposed the shared rule-syntax test-vector corpus ([#4](https://github.com/PerryLink/dsh-permission-rules/issues/4), [#5](https://github.com/PerryLink/dsh-permission-rules/issues/5)), shipped in v0.5.1 as `docs/rule-test-vectors/`, and supplied the AST-decomposition boundary cases on the [design discussion](https://github.com/PerryLink/dsh-permission-rules/discussions/10).
|
|
392
|
+
- [@weipeng1999](https://github.com/weipeng1999) — the AST-based command-decomposition feature proposal ([#8](https://github.com/PerryLink/dsh-permission-rules/issues/8)) behind the design discussion.
|
|
393
|
+
- [@alexchenzl](https://github.com/alexchenzl) — the DSH Directory listing request ([#7](https://github.com/PerryLink/dsh-permission-rules/issues/7)).
|
|
394
|
+
- [@zl190](https://github.com/zl190) — reported and verified the `0.1.0-rc.7` harness compatibility gap ([PR #9](https://github.com/PerryLink/dsh-permission-rules/pulls/9)).
|
|
395
|
+
- [@cuohua](https://github.com/cuohua) — reported that the `0.1.1-rc` line still drops the `ignorable` marker even though the version gate covered only `0.1.0` ([#11](https://github.com/PerryLink/dsh-permission-rules/issues/11)); the widened gate drew directly from that analysis.
|
|
396
|
+
|
|
397
|
+
<details>
|
|
398
|
+
<summary>Expand all plugins</summary>
|
|
399
|
+
|
|
400
|
+
| Plugin | Status |
|
|
401
|
+
|---|---|
|
|
402
|
+
| **[dsh-aqua-input-check](https://github.com/PerryLink/dsh-aqua-input-check)** | |
|
|
403
|
+
| **[dsh-archive-check](https://github.com/PerryLink/dsh-archive-check)** | |
|
|
404
|
+
| **[dsh-auto-review](https://github.com/PerryLink/dsh-auto-review)** | |
|
|
405
|
+
| **[dsh-autotier](https://github.com/PerryLink/dsh-autotier)** | 🧊 FROZEN — see the repo README |
|
|
406
|
+
| **[dsh-bid-ca-precheck](https://github.com/PerryLink/dsh-bid-ca-precheck)** | |
|
|
407
|
+
| **[dsh-bid-qual-check](https://github.com/PerryLink/dsh-bid-qual-check)** | |
|
|
408
|
+
| **[dsh-cert-mcp](https://github.com/PerryLink/dsh-cert-mcp)** | 🧊 FROZEN — see the repo README |
|
|
409
|
+
| **[dsh-checkpoint-rewind](https://github.com/PerryLink/dsh-checkpoint-rewind)** | |
|
|
410
|
+
| **[dsh-click](https://github.com/PerryLink/dsh-click)** | |
|
|
411
|
+
| **[dsh-composer-history](https://github.com/PerryLink/dsh-composer-history)** | |
|
|
412
|
+
| **[dsh-contract-stance](https://github.com/PerryLink/dsh-contract-stance)** | |
|
|
413
|
+
| **[dsh-customs-doc-check](https://github.com/PerryLink/dsh-customs-doc-check)** | |
|
|
414
|
+
| **[dsh-data-quality](https://github.com/PerryLink/dsh-data-quality)** | 🧊 FROZEN — see the repo README |
|
|
415
|
+
| **[dsh-demurrage-ledger](https://github.com/PerryLink/dsh-demurrage-ledger)** | |
|
|
416
|
+
| **[dsh-doublecheck](https://github.com/PerryLink/dsh-doublecheck)** | |
|
|
417
|
+
| **[dsh-drill-script-check](https://github.com/PerryLink/dsh-drill-script-check)** | |
|
|
418
|
+
| **[dsh-eia-guide-check](https://github.com/PerryLink/dsh-eia-guide-check)** | |
|
|
419
|
+
| **[dsh-emergency-plan](https://github.com/PerryLink/dsh-emergency-plan)** | |
|
|
420
|
+
| **[dsh-essay-rubric-check](https://github.com/PerryLink/dsh-essay-rubric-check)** | |
|
|
421
|
+
| **[dsh-evidence-check](https://github.com/PerryLink/dsh-evidence-check)** | |
|
|
422
|
+
| **[dsh-export-ctl-check](https://github.com/PerryLink/dsh-export-ctl-check)** | |
|
|
423
|
+
| **[dsh-fast](https://github.com/PerryLink/dsh-fast)** | |
|
|
424
|
+
| **[dsh-fmea-table-check](https://github.com/PerryLink/dsh-fmea-table-check)** | |
|
|
425
|
+
| **[dsh-forecast-penalty](https://github.com/PerryLink/dsh-forecast-penalty)** | |
|
|
426
|
+
| **[dsh-fund-research](https://github.com/PerryLink/dsh-fund-research)** | |
|
|
427
|
+
| **[dsh-github](https://github.com/PerryLink/dsh-github)** | |
|
|
428
|
+
| **[dsh-gongwen-flow-check](https://github.com/PerryLink/dsh-gongwen-flow-check)** | |
|
|
429
|
+
| **[dsh-gongwen-word-check](https://github.com/PerryLink/dsh-gongwen-word-check)** | |
|
|
430
|
+
| **[dsh-guard-plan-qc](https://github.com/PerryLink/dsh-guard-plan-qc)** | |
|
|
431
|
+
| **[dsh-hazchem-check](https://github.com/PerryLink/dsh-hazchem-check)** | |
|
|
432
|
+
| **[dsh-hazplan-check](https://github.com/PerryLink/dsh-hazplan-check)** | |
|
|
433
|
+
| **[dsh-hidden-risk-map](https://github.com/PerryLink/dsh-hidden-risk-map)** | |
|
|
434
|
+
| **[dsh-hs-classify](https://github.com/PerryLink/dsh-hs-classify)** | |
|
|
435
|
+
| **[dsh-icd-rule-check](https://github.com/PerryLink/dsh-icd-rule-check)** | |
|
|
436
|
+
| **[dsh-industry-research](https://github.com/PerryLink/dsh-industry-research)** | |
|
|
437
|
+
| **[dsh-lawcite-adapter](https://github.com/PerryLink/dsh-lawcite-adapter)** | |
|
|
438
|
+
| **[dsh-laya](https://github.com/PerryLink/dsh-laya)** | |
|
|
439
|
+
| **[dsh-lc-doc-check](https://github.com/PerryLink/dsh-lc-doc-check)** | |
|
|
440
|
+
| **[dsh-learning-gap-check](https://github.com/PerryLink/dsh-learning-gap-check)** | |
|
|
441
|
+
| **[dsh-library](https://github.com/PerryLink/dsh-library)** | |
|
|
442
|
+
| **[dsh-local-ai](https://github.com/PerryLink/dsh-local-ai)** | |
|
|
443
|
+
| **[dsh-lsp-actions](https://github.com/PerryLink/dsh-lsp-actions)** | |
|
|
444
|
+
| **[dsh-mask](https://github.com/PerryLink/dsh-mask)** | |
|
|
445
|
+
| **[dsh-mcp-panel](https://github.com/PerryLink/dsh-mcp-panel)** | |
|
|
446
|
+
| **[dsh-medrec-qc](https://github.com/PerryLink/dsh-medrec-qc)** | |
|
|
447
|
+
| **[dsh-memento](https://github.com/PerryLink/dsh-memento)** | 🧊 FROZEN — see the repo README |
|
|
448
|
+
| **[dsh-nsfc-form-check](https://github.com/PerryLink/dsh-nsfc-form-check)** | |
|
|
449
|
+
| **[dsh-nurse-record-check](https://github.com/PerryLink/dsh-nurse-record-check)** | |
|
|
450
|
+
| **[dsh-observe](https://github.com/PerryLink/dsh-observe)** | |
|
|
451
|
+
| **[dsh-origin-rvc-check](https://github.com/PerryLink/dsh-origin-rvc-check)** | |
|
|
452
|
+
| **[dsh-ota-review-check](https://github.com/PerryLink/dsh-ota-review-check)** | |
|
|
453
|
+
| **[dsh-output-styles](https://github.com/PerryLink/dsh-output-styles)** | |
|
|
454
|
+
| **[dsh-paper-doc-adapter](https://github.com/PerryLink/dsh-paper-doc-adapter)** | |
|
|
455
|
+
| **[dsh-permission-rules](https://github.com/PerryLink/dsh-permission-rules)** | |
|
|
456
|
+
| **[dsh-permit-report-check](https://github.com/PerryLink/dsh-permit-report-check)** | |
|
|
457
|
+
| **[dsh-pipeline-check](https://github.com/PerryLink/dsh-pipeline-check)** | |
|
|
458
|
+
| **[dsh-pleading-draft](https://github.com/PerryLink/dsh-pleading-draft)** | |
|
|
459
|
+
| **[dsh-plugin-doctor](https://github.com/PerryLink/dsh-plugin-doctor)** | 🚫 RETIRED (repo archived) |
|
|
460
|
+
| **[dsh-plugin-guide](https://github.com/PerryLink/dsh-plugin-guide)** | |
|
|
461
|
+
| **[dsh-plugin-kit](https://github.com/PerryLink/dsh-plugin-kit)** | 🚫 RETIRED (repo archived) |
|
|
462
|
+
| **[dsh-plugin-upgrade](https://github.com/PerryLink/dsh-plugin-upgrade)** | 🚫 RETIRED (repo archived) |
|
|
463
|
+
| **[dsh-policy-brief-draft](https://github.com/PerryLink/dsh-policy-brief-draft)** | |
|
|
464
|
+
| **[dsh-power-loss-split](https://github.com/PerryLink/dsh-power-loss-split)** | |
|
|
465
|
+
| **[dsh-power-ticket-check](https://github.com/PerryLink/dsh-power-ticket-check)** | |
|
|
466
|
+
| **[dsh-ppap-check](https://github.com/PerryLink/dsh-ppap-check)** | |
|
|
467
|
+
| **[dsh-protest-deadline](https://github.com/PerryLink/dsh-protest-deadline)** | |
|
|
468
|
+
| **[dsh-railway-window](https://github.com/PerryLink/dsh-railway-window)** | |
|
|
469
|
+
| **[dsh-repair-order-qc](https://github.com/PerryLink/dsh-repair-order-qc)** | |
|
|
470
|
+
| **[dsh-research-report](https://github.com/PerryLink/dsh-research-report)** | |
|
|
471
|
+
| **[dsh-review-reply-check](https://github.com/PerryLink/dsh-review-reply-check)** | |
|
|
472
|
+
| **[dsh-rulefile-check](https://github.com/PerryLink/dsh-rulefile-check)** | |
|
|
473
|
+
| **[dsh-safety-brief-check](https://github.com/PerryLink/dsh-safety-brief-check)** | |
|
|
474
|
+
| **[dsh-score](https://github.com/PerryLink/dsh-score)** | 🧊 FROZEN — see the repo README |
|
|
475
|
+
| **[dsh-session-sync](https://github.com/PerryLink/dsh-session-sync)** | |
|
|
476
|
+
| **[dsh-site-log-check](https://github.com/PerryLink/dsh-site-log-check)** | |
|
|
477
|
+
| **[dsh-skill-pack-security](https://github.com/PerryLink/dsh-skill-pack-security)** | |
|
|
478
|
+
| **[dsh-soe-decision-check](https://github.com/PerryLink/dsh-soe-decision-check)** | |
|
|
479
|
+
| **[dsh-soilwater-check](https://github.com/PerryLink/dsh-soilwater-check)** | |
|
|
480
|
+
| **[dsh-sop-sync-check](https://github.com/PerryLink/dsh-sop-sync-check)** | |
|
|
481
|
+
| **[dsh-spc-gbt-adapter](https://github.com/PerryLink/dsh-spc-gbt-adapter)** | |
|
|
482
|
+
| **[dsh-talk](https://github.com/PerryLink/dsh-talk)** | |
|
|
483
|
+
| **[dsh-tender-extract](https://github.com/PerryLink/dsh-tender-extract)** | |
|
|
484
|
+
| **[dsh-tender-matrix](https://github.com/PerryLink/dsh-tender-matrix)** | |
|
|
485
|
+
| **[dsh-test-drive](https://github.com/PerryLink/dsh-test-drive)** | |
|
|
486
|
+
| **[dsh-ticktick](https://github.com/PerryLink/dsh-ticktick)** | 🚫 RETIRED (repo archived) |
|
|
487
|
+
| **[dsh-translate](https://github.com/PerryLink/dsh-translate)** | |
|
|
488
|
+
| **[dsh-warranty-calc](https://github.com/PerryLink/dsh-warranty-calc)** | |
|
|
489
|
+
| **[dsh-budget](https://github.com/PerryLink/dsh-budget)** | 🧊 FROZEN — see the repo README |
|
|
490
|
+
| **[dsh-claude-move](https://github.com/PerryLink/dsh-claude-move)** | 🧊 FROZEN — see the repo README |
|
|
491
|
+
| **[dsh-defend](https://github.com/PerryLink/dsh-defend)** | 🧊 FROZEN — see the repo README |
|
|
492
|
+
| **[dsh-draw](https://github.com/PerryLink/dsh-draw)** | 🧊 FROZEN — see the repo README |
|
|
493
|
+
| **[dsh-reach](https://github.com/PerryLink/dsh-reach)** | 🧊 FROZEN — see the repo README |
|
|
494
|
+
| **[dsh-background-agents](https://github.com/PerryLink/dsh-background-agents)** | 🚫 RETIRED (repo archived) |
|
|
495
|
+
| **[dsh-session-pin](https://github.com/PerryLink/dsh-session-pin)** | 🚫 RETIRED (repo archived) |
|
|
496
|
+
| **[dsh-team-rooms](https://github.com/PerryLink/dsh-team-rooms)** | 🚫 RETIRED (repo archived) |
|
|
497
|
+
|
|
498
|
+
</details>
|
|
499
|
+
|
|
500
|
+
## License
|
|
501
|
+
|
|
502
|
+
[LICENSE](LICENSE) (Apache License 2.0) © 2026 dsh-permission-rules contributors
|
|
503
|
+
|
|
504
|
+
<p align="center"><sub>Apache-2.0 · Community plugin, not affiliated with DeepSeek.</sub></p>
|