dsh-plugin-subscriptions 0.5.2 → 0.5.3
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/README.md +36 -1
- package/README.zh.md +36 -1
- package/lib/auth/rpc.d.ts +29 -12
- package/lib/auth/rpc.js +29 -6
- package/lib/auth/store.d.ts +75 -17
- package/lib/auth/store.js +148 -27
- package/lib/client/SubscriptionsSection.d.ts +9 -3
- package/lib/client/SubscriptionsSection.js +93 -65
- package/lib/client/locales.d.ts +18 -10
- package/lib/client/locales.js +18 -10
- package/lib/client.js +250 -127
- package/lib/client.js.map +1 -1
- package/lib/index.d.ts +21 -0
- package/lib/index.js +1482 -168
- package/lib/providers/accounts.d.ts +102 -0
- package/lib/providers/accounts.js +123 -0
- package/lib/providers/claude.d.ts +22 -4
- package/lib/providers/claude.js +91 -11
- package/lib/providers/codex.d.ts +24 -3
- package/lib/providers/codex.js +116 -17
- package/lib/providers/common.d.ts +17 -0
- package/lib/providers/common.js +67 -3
- package/lib/providers/copilot.d.ts +22 -3
- package/lib/providers/copilot.js +91 -12
- package/lib/providers/grok.d.ts +24 -4
- package/lib/providers/grok.js +100 -14
- package/lib/providers/pool-family.d.ts +56 -0
- package/lib/providers/pool-family.js +45 -0
- package/lib/providers/pool-health.d.ts +74 -0
- package/lib/providers/pool-health.js +148 -0
- package/lib/providers/pool-usage.d.ts +57 -0
- package/lib/providers/pool-usage.js +130 -0
- package/lib/providers/pool.d.ts +107 -0
- package/lib/providers/pool.js +371 -0
- package/lib/tools/image-generate.d.ts +3 -3
- package/lib/tools/image-generate.js +2 -1
- package/lib/tools/video-generate.d.ts +2 -2
- package/lib/tools/video-generate.js +2 -1
- package/lib/tools/x-search.d.ts +2 -2
- package/lib/tools/x-search.js +2 -1
- package/package.json +1 -1
package/lib/tools/x-search.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import type { ToolDefinition } from '@deepseek-ai/dsh-tools';
|
|
8
8
|
import type { GrokSession } from '../auth/store.js';
|
|
9
|
-
import {
|
|
9
|
+
import { AccountTokenManager } from '../providers/accounts.js';
|
|
10
10
|
import type { FetchFn } from '../providers/common.js';
|
|
11
11
|
/** Endpoint the search request is posted to. */
|
|
12
12
|
export declare const X_SEARCH_URL = "https://api.x.ai/v1/responses";
|
|
@@ -15,7 +15,7 @@ export declare const X_SEARCH_MODEL = "grok-4";
|
|
|
15
15
|
/** Dependencies of the `x_search` tool. */
|
|
16
16
|
export interface XSearchToolOptions {
|
|
17
17
|
/** Grok session source; a missing session throws the log-in hint. */
|
|
18
|
-
tokens:
|
|
18
|
+
tokens: AccountTokenManager<GrokSession>;
|
|
19
19
|
/** Fetch implementation (injectable for tests). */
|
|
20
20
|
fetchFn?: FetchFn;
|
|
21
21
|
}
|
package/lib/tools/x-search.js
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
* output is `{ answer, citations }`.
|
|
6
6
|
*/
|
|
7
7
|
import { defineTool } from '@deepseek-ai/dsh-tools';
|
|
8
|
-
import { httpLlmError
|
|
8
|
+
import { httpLlmError } from '../providers/common.js';
|
|
9
|
+
import { AccountTokenManager } from '../providers/accounts.js';
|
|
9
10
|
import { proxiedFetch } from '../http.js';
|
|
10
11
|
/** Endpoint the search request is posted to. */
|
|
11
12
|
export const X_SEARCH_URL = 'https://api.x.ai/v1/responses';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-plugin-subscriptions",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"description": "Use ChatGPT (Codex), Claude, Grok (X Premium), and GitHub Copilot subscriptions as DeepSeek Harness LLM providers, with OAuth login from the web Settings page",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|