Repository navigation
Releases
v0.1.3 - installable npm release
Installable npm release for dsh-plugin-safe-route.
- Adds an automatic pre-pack build so a clean checkout produces the complete runtime.
- Refreshes the install command to
dsh plugin --profile web add dsh-plugin-safe-route.
Commit: d7c74cf
v0.1.2 - lifecycle fix
Fix: /route-check registration is now tied to the Cordis lifecycle via ctx.effect(), so disabling or reloading the plugin disposes the command instead of leaving a duplicate.
Install (once npm credentials are restored): dsh plugin --profile web add dsh-plugin-safe-route@0.1.2
Known limitations
- npm publication is pending a 2FA one-time code in this environment; the package is not yet installable via dsh plugin --profile web add from the public registry.
- Source install from this repository is supported; see README for details.
- The plugin is read-only and does not modify DSH configuration.
v0.1.1 - config fix
Fix: the configured allowlist is now read from DSH's apply(ctx, config) second argument.
Previously the bundle row's config.policy was ignored, so a custom allowlist silently fell back to the default free routes. A regression test now covers the patched-config path.
Install (once npm credentials are restored): dsh plugin add dsh-plugin-safe-route@0.1.1
v0.1.0 - route allowlist guard
Install (once npm credentials are restored): dsh plugin add dsh-plugin-safe-route
Changes:
- Adds the read-only /route-check command: audits provider/model routes used in the current session against a configurable allowlist.
- Configurable deny rules (deny wins over allow), glob wildcards, JSON output via /route-check --json.
- Default allowlist: opencode-go/hy4-flash-free and opencode-go/longcat-2.5-free.
- Ships bilingual README, TypeScript build with declarations, and 15 offline tests.
Known limitations:
- npm publish is pending a valid npm token; until then install from source with npm install && npm test.
- Only routes recorded in request/header and request/context events are audited.
- This plugin does not block calls - it reports and scores them.