Files
deepseek-harness/packages/web/web-search-deepseek/package.json
T
LegGasai a1d290d87b refactor(web-search-deepseek): take the search credential from ctx.deepseekAuth
Messages search asked `ctx.llm.providerCredential()` whether the conversation's route published an account credential, compared origins itself, and read and checked `DEEPSEEK_API_KEY` itself. It now asks `ctx.deepseekAuth` for the credential of the search endpoint: the account sign-in in a conversation on the account route, otherwise its referenced key, which stays its own and goes to the search endpoint. The provider's two credential options become one `authorize` option; the literal `apiKey` is unchanged.

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 base URL that embeds credentials makes the provider unavailable, as one that does not parse already did; `fetch` refused such a URL before.

The provider's cancellation helper now observes a credential read that began before its caller's cancellation was noticed. Such a read can reject after the cancellation it caused, and that rejection was unhandled.

The package no longer depends on `dsh-llm`.
2026-11-15 16:41:24 +08:00

62 lines
2.0 KiB
JSON

{
"name": "@deepseek-ai/dsh-web-search-deepseek",
"description": "DeepSeek-backed search provider (native web_search via the Anthropic-compatible API) 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-search-deepseek"
},
"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-launch-environment": "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-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-session": "workspace:*",
"@deepseek-ai/dsh-web": "workspace:*",
"@deepseek-ai/dsh-deepseek-auth": "workspace:*"
}
}