dsh-bili-scroll
c1overzz
DSH 插件:每天替你刷一轮 B站,读字幕挑出值得的、写一份日报,值得的 @ 你
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:ARCJ137442/dsh-plugin-custom-provider-raw-key
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Use an opaque API key with a hand-declared custom provider in DeepSeek Harness, without modifying the Harness source checkout.
This is an independent DSH bundle. It replaces the official Models runtime and browser settings section together, so the key policy is consistent when a provider is edited, saved, discovered, and used.
Release 0.1.1 also implements the prepareCall(provider, model, signal) adapter contract used by DSH 0.1.1-rc.2; installing an older archive against that host produces registration.adapter.prepareCall is not a function.
sk- or printable-ASCII format check.This plugin does not bypass transport rules. HTTP headers, fetch, gateways, and the upstream provider may still reject bytes that cannot be transported safely.
The public repository currently contains the source and a reproducible bundle build. Build the bundle with Node.js + pnpm, then install the generated archive into the formal DSH Web profile:
git clone https://github.com/ARCJ137442/dsh-plugin-custom-provider-raw-key.git
Set-Location dsh-plugin-custom-provider-raw-key
pnpm run build
pnpm run test
Set-Location packages\bundle
pnpm pack --pack-destination .
Install the generated dsh-plugin-custom-provider-raw-key-0.1.1.tgz into the target Web profile:
$env:DSH_HOME = '<dsh-home>'
Set-Location '<dsh-root>'
dsh plugin --profile web add '<plugin-checkout>\packages\bundle\dsh-plugin-custom-provider-raw-key-0.1.1.tgz'
The DSH plugin command preserves the formal profile and delegates dependency work to pnpm. Restart the Web profile after installation:
Set-Location '<dsh-root>'
dsh web --no-open
If a custom key contains Unicode format characters, line breaks, or other bytes that the selected protocol puts into an HTTP header, the provider client may reject it at request time. That is a transport limitation, not the plugin's custom-provider format policy; the plugin does not silently rewrite the stored secret.
Settings → Models.Custom settings.The plugin has no additional configuration section. Its behavior is determined by whether the provider is a hand-declared route or a provider present in the pi-ai catalog.
| Provider | Key policy | Request behavior |
|---|---|---|
| Hand-declared custom provider | Opaque, non-empty value; no generic format rule | Passed to the custom route unchanged |
| pi-ai catalog provider | Official validator and normalization | Uses the official provider adapter behavior |
“Unchanged” applies to the plugin policy. It is not a promise that an HTTP client, gateway, or upstream API accepts every possible byte sequence.
Models settings page
│ edit / validate / save
▼
raw-key client bundle ── credentials reference ──► raw-key runtime
│
catalog lookup ──────────────┤
custom route: opaque key │
catalog route: official key policy
▼
pi-ai adapter
Both halves are required. Replacing only the browser client leaves runtime validation in place; replacing only the runtime leaves the settings page rejecting the key before save.
Validate the profile that users actually run, not only an isolated test profile:
--dump-config shows the official llm-pi-ai and ui-settings-models rows disabled and both raw-key rows inserted.node.exe, remains alive, and reports no plugin loader error./plugins/dsh-plugin-custom-provider-raw-key/client.js is reachable.An upstream discovery or model request should be tested separately with the target provider. A successful settings save does not prove that the upstream endpoint accepts the route.
The repository has three package surfaces:
packages/llm-pi-ai-raw-key/ runtime fork and key policy
packages/client-ui-settings-models-raw-key/ browser Models settings fork
packages/bundle/ single profile installation entry
Use Node.js + pnpm for installation, build, test, and packaging:
pnpm run build
pnpm run test
Set-Location packages\bundle
pnpm pack --dry-run
The client build reuses the published Models manifest only as dependency metadata for the host preset. It rewrites the generated loader/style identity inside the plugin checkout and never creates a temporary manifest or copies a package into deepseek-harness.
More detail:
The bundle declares its DSH peer ranges in packages/bundle/package.json. Test the bundle against the actual release installed in the target profile, not only against a newer local checkout.
Credential values and credential references must not be logged or committed. The repository ignores profile material, environment files, dependency trees, build maps outside the release bundle, and generated archives.
This project and its packages are released under the MIT License.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。