The plugin asked `ctx.llm.providerCredential()` for each route's credential, read `DEEPSEEK_API_KEY` and the account service itself when a route was not mounted, ordered those sources by billing, and rendered the request headers in its transport. It now names the kinds the two APIs accept and the capability's billing, and `ctx.deepseekAuth` returns the ordered credentials, each bound to its endpoint. The plugin keeps the wording of its failures; the transport sends the headers it is given. Behavior is unchanged except in two places. A key that is blank or cannot travel in an HTTP header is reported with the error name `DeepSeekAuthError` where it named `LlmError`. A capability's own base URL that embeds credentials now leaves the provider unavailable, as one that does not parse already did; `fetch` refused such a URL before. The package no longer depends on `dsh-llm`, `dsh-launch-environment`, or the account service. The transport's `apiKeyHeaders` request option, which only tests set, is gone, and the tests of adapters that publish the other credential kind under a DeepSeek route id went with that publication.
64 lines
2.0 KiB
JSON
64 lines
2.0 KiB
JSON
{
|
|
"name": "@deepseek-ai/dsh-web-deepseek-api",
|
|
"description": "DeepSeek Search and Fetch API providers for the DeepSeek Harness web capability seam (ctx.web)",
|
|
"version": "0.2.2-rc.3",
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/deepseek-ai/deepseek-harness.git",
|
|
"directory": "packages/web/web-deepseek-api"
|
|
},
|
|
"type": "module",
|
|
"main": "lib/index.js",
|
|
"types": "lib/types/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./lib/types/index.d.ts",
|
|
"default": "./lib/index.js"
|
|
},
|
|
"./src/*": "./src/*",
|
|
"./package.json": "./package.json",
|
|
"./locale/*.json": "./locale/*.json"
|
|
},
|
|
"files": [
|
|
"locale/*.json",
|
|
"lib/index.js",
|
|
"lib/types/**/*.d.ts",
|
|
"lib/types/**/*.d.ts.map",
|
|
"lib/**/*.js.map",
|
|
"src"
|
|
],
|
|
"license": "MIT",
|
|
"peerDependencies": {
|
|
"@deepseek-ai/cordis": "workspace:~",
|
|
"@deepseek-ai/dsh-agent": "workspace:*",
|
|
"@deepseek-ai/dsh-credentials": "workspace:*",
|
|
"@deepseek-ai/dsh-session": "workspace:*",
|
|
"@deepseek-ai/dsh-web": "workspace:*",
|
|
"@deepseek-ai/dsh-deepseek-auth": "workspace:*"
|
|
},
|
|
"dependencies": {
|
|
"@deepseek-ai/schemastery": "workspace:~"
|
|
},
|
|
"devDependencies": {
|
|
"@deepseek-ai/cordis": "workspace:~",
|
|
"@deepseek-ai/dsh-agent": "workspace:*",
|
|
"@deepseek-ai/dsh-app-boot": "workspace:*",
|
|
"@deepseek-ai/dsh-brand": "workspace:*",
|
|
"@deepseek-ai/dsh-credentials": "workspace:*",
|
|
"@deepseek-ai/dsh-credentials-local": "workspace:*",
|
|
"@deepseek-ai/dsh-deepseek-account": "workspace:*",
|
|
"@deepseek-ai/dsh-http-proxy": "workspace:*",
|
|
"@deepseek-ai/dsh-launch-environment": "workspace:*",
|
|
"@deepseek-ai/dsh-llm": "workspace:*",
|
|
"@deepseek-ai/dsh-llm-deepseek-account": "workspace:*",
|
|
"@deepseek-ai/dsh-llm-deepseek-api-key": "workspace:*",
|
|
"@deepseek-ai/dsh-session": "workspace:*",
|
|
"@deepseek-ai/dsh-session-projection": "workspace:*",
|
|
"@deepseek-ai/dsh-web": "workspace:*",
|
|
"@deepseek-ai/dsh-deepseek-auth": "workspace:*"
|
|
}
|
|
}
|