dsh-coding-subscription-oauth 0.6.4 → 0.6.5
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/CHANGELOG.md +280 -255
- package/CONTRIBUTING.md +138 -129
- package/INSTALL.md +256 -255
- package/LICENSE +19 -19
- package/NOTICE +11 -11
- package/README.de.md +303 -303
- package/README.es.md +304 -304
- package/README.fr.md +304 -304
- package/README.ja.md +304 -304
- package/README.ko.md +304 -304
- package/README.md +320 -320
- package/README.pt-BR.md +304 -304
- package/README.ru.md +304 -304
- package/README.zh-CN.md +318 -318
- package/compatibility/dsh-bom.json +30 -30
- package/cordis.patch.yml +13 -13
- package/docs/00-project-rules.md +212 -212
- package/docs/02-architecture.md +141 -137
- package/docs/02-architecture.zh-CN.md +141 -137
- package/lib/bin.js.map +1 -1
- package/lib/client.js +1 -1
- package/lib/client.js.map +1 -1
- package/lib/gateway-protocol.d.ts +3 -46
- package/lib/gateway-protocol.d.ts.map +1 -1
- package/lib/gateway-routes.d.ts.map +1 -1
- package/lib/grok-errors.d.ts +2 -12
- package/lib/grok-errors.d.ts.map +1 -1
- package/lib/grok-imagine/client.d.ts +73 -0
- package/lib/grok-imagine/client.d.ts.map +1 -0
- package/lib/grok-imagine/index.d.ts +8 -0
- package/lib/grok-imagine/index.d.ts.map +1 -0
- package/lib/grok-imagine/net.d.ts +10 -0
- package/lib/grok-imagine/net.d.ts.map +1 -0
- package/lib/grok-imagine/parse.d.ts +20 -0
- package/lib/grok-imagine/parse.d.ts.map +1 -0
- package/lib/grok-imagine/types.d.ts +191 -0
- package/lib/grok-imagine/types.d.ts.map +1 -0
- package/lib/grok-imagine.d.ts +3 -263
- package/lib/grok-imagine.d.ts.map +1 -1
- package/lib/http-json.d.ts +2 -9
- package/lib/http-json.d.ts.map +1 -1
- package/lib/index.js +57 -37
- package/lib/index.js.map +4 -4
- package/lib/invariant.js.map +1 -1
- package/lib/kimi-errors.d.ts +2 -12
- package/lib/kimi-errors.d.ts.map +1 -1
- package/lib/runtime/gateway-protocol.d.ts +47 -0
- package/lib/runtime/gateway-protocol.d.ts.map +1 -0
- package/lib/runtime/grok-errors.d.ts +13 -0
- package/lib/runtime/grok-errors.d.ts.map +1 -0
- package/lib/runtime/http-json.d.ts +10 -0
- package/lib/runtime/http-json.d.ts.map +1 -0
- package/lib/runtime/kimi-errors.d.ts +13 -0
- package/lib/runtime/kimi-errors.d.ts.map +1 -0
- package/media/en/settings_accounts.png +0 -0
- package/media/en/settings_capabilities.png +0 -0
- package/media/en/settings_gateway.png +0 -0
- package/media/settings_accounts.png +0 -0
- package/media/settings_capabilities.png +0 -0
- package/media/settings_gateway.png +0 -0
- package/media/settings_overview.png +0 -0
- package/media/zh-CN/settings_accounts.png +0 -0
- package/media/zh-CN/settings_capabilities.png +0 -0
- package/media/zh-CN/settings_gateway.png +0 -0
- package/package.json +225 -220
- package/patches/dsh-agy@0.1.2.patch +25 -25
- package/scripts/release.mjs +187 -186
- package/scripts/smoke-deployed-routes.mjs +146 -146
- package/scripts/verify-deployed-catalog.mjs +87 -87
- package/src/adapter.ts +0 -348
- package/src/alias-adapter.ts +0 -147
- package/src/auth-routes.ts +0 -921
- package/src/auth.ts +0 -67
- package/src/bin.ts +0 -350
- package/src/capability-routes.ts +0 -279
- package/src/capability-runtime.ts +0 -314
- package/src/capability-settings.ts +0 -671
- package/src/capability-tools.ts +0 -685
- package/src/catalog.ts +0 -271
- package/src/client/GrokBuildSettings.tsx +0 -771
- package/src/client/api.ts +0 -88
- package/src/client/components/AboutTab.tsx +0 -30
- package/src/client/components/AccountsTab.tsx +0 -241
- package/src/client/components/Badge.tsx +0 -33
- package/src/client/components/CapabilitiesTab.tsx +0 -265
- package/src/client/components/CliPullPreview.tsx +0 -116
- package/src/client/components/CopyButton.tsx +0 -57
- package/src/client/components/GatewayTab.tsx +0 -469
- package/src/client/components/NoticeBanner.tsx +0 -46
- package/src/client/components/ProgressBar.tsx +0 -53
- package/src/client/components/ProviderCard.tsx +0 -606
- package/src/client/components/SettingsTabs.tsx +0 -75
- package/src/client/components/ToggleSwitch.tsx +0 -71
- package/src/client/constants.ts +0 -230
- package/src/client/display.ts +0 -61
- package/src/client/dshClientAdapter.ts +0 -127
- package/src/client/gatewaySnippets.ts +0 -37
- package/src/client/index.tsx +0 -156
- package/src/client/locales.ts +0 -540
- package/src/client/microStyles.ts +0 -52
- package/src/client/parsers.ts +0 -398
- package/src/client/styles.ts +0 -325
- package/src/client/types.ts +0 -199
- package/src/codex-http.ts +0 -447
- package/src/codex-images.ts +0 -503
- package/src/codex-model-capabilities.ts +0 -320
- package/src/codex-search.ts +0 -245
- package/src/codex-usage.ts +0 -263
- package/src/compatibility.ts +0 -55
- package/src/dsh-host-adapter.ts +0 -173
- package/src/gateway-anthropic-messages.ts +0 -84
- package/src/gateway-auth.ts +0 -102
- package/src/gateway-backend.ts +0 -274
- package/src/gateway-body.ts +0 -49
- package/src/gateway-config.ts +0 -76
- package/src/gateway-http.ts +0 -104
- package/src/gateway-openai-chat.ts +0 -124
- package/src/gateway-openai-responses.ts +0 -53
- package/src/gateway-parse.ts +0 -224
- package/src/gateway-protocol.ts +0 -52
- package/src/gateway-routes.ts +0 -158
- package/src/gateway.ts +0 -258
- package/src/grok-errors.ts +0 -24
- package/src/grok-imagine.ts +0 -1627
- package/src/grok-import.ts +0 -151
- package/src/http-json.ts +0 -82
- package/src/ids.ts +0 -59
- package/src/imagine-routes.ts +0 -463
- package/src/index.ts +0 -735
- package/src/invariant.ts +0 -17
- package/src/kimi-errors.ts +0 -26
- package/src/media-store.ts +0 -927
- package/src/oauth-import-routes.ts +0 -324
- package/src/oauth-providers.ts +0 -152
- package/src/oauth-session.ts +0 -183
- package/src/oauth-sources.ts +0 -1104
- package/src/oauth.ts +0 -620
- package/src/provider.ts +0 -128
- package/src/proxy.ts +0 -11
- package/src/redact.ts +0 -72
- package/src/session.ts +0 -218
- package/src/store.ts +0 -217
- package/src/web-origin.ts +0 -296
- package/src/web-routes.ts +0 -38
package/lib/invariant.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/invariant.ts"],
|
|
4
|
-
"sourcesContent": ["/**\
|
|
4
|
+
"sourcesContent": ["/**\n * Package-owned invariant companion for `dsh-coding-subscription-oauth`.\n * @module dsh-coding-subscription-oauth/invariant\n */\n\nimport type { Context } from \"@deepseek-ai/cordis\";\nimport type { InvariantInstaller } from \"@deepseek-ai/dsh-invariants\";\n\nconst PACKAGE_NAME = \"dsh-coding-subscription-oauth\";\n\nexport const name = \"grok-build-invariant\";\nexport const inject = [\"invariants\"];\n\nconst install: InvariantInstaller = () => {};\n\nexport const apply = (ctx: Context): Promise<() => void> =>\n\tPromise.resolve(ctx.invariants.register(PACKAGE_NAME, install));\n"],
|
|
5
5
|
"mappings": ";;;AAQA,IAAM,eAAe;AAEd,IAAM,OAAO;AACb,IAAM,SAAS,CAAC,YAAY;AAEnC,IAAM,UAA8B,MAAM;AAAC;AAEpC,IAAM,QAAQ,CAAC,QACrB,QAAQ,QAAQ,IAAI,WAAW,SAAS,cAAc,OAAO,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/lib/kimi-errors.d.ts
CHANGED
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
|
|
3
|
-
* @module dsh-coding-subscription-oauth/kimi-errors
|
|
4
|
-
*/
|
|
5
|
-
export declare function isMisclassifiedContextWindowError(detail: string): boolean;
|
|
6
|
-
export declare function remapAuthFailureIfContextOverflow(failure: {
|
|
7
|
-
message: string;
|
|
8
|
-
code: string;
|
|
9
|
-
}): {
|
|
10
|
-
message: string;
|
|
11
|
-
code: string;
|
|
12
|
-
};
|
|
1
|
+
/** Compatibility facade — implementation lives in `src/runtime/` (mirrored from Hub vendor core). */
|
|
2
|
+
export { isMisclassifiedContextWindowError, remapAuthFailureIfContextOverflow, } from "./runtime/kimi-errors.js";
|
|
13
3
|
//# sourceMappingURL=kimi-errors.d.ts.map
|
package/lib/kimi-errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kimi-errors.d.ts","sourceRoot":"","sources":["../../src/kimi-errors.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"kimi-errors.d.ts","sourceRoot":"","sources":["../../src/kimi-errors.ts"],"names":[],"mappings":"AAAA,qGAAqG;AAErG,OAAO,EACN,iCAAiC,EACjC,iCAAiC,GACjC,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared request/stream types for the local coding-subscription gateway.
|
|
3
|
+
* @module dsh-coding-oauth-core/gateway-protocol
|
|
4
|
+
*/
|
|
5
|
+
export interface GatewayToolCall {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
arguments: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GatewayTool {
|
|
11
|
+
name: string;
|
|
12
|
+
description: string;
|
|
13
|
+
parameters: Record<string, unknown>;
|
|
14
|
+
}
|
|
15
|
+
export interface GatewayChatMessage {
|
|
16
|
+
role: string;
|
|
17
|
+
content: string;
|
|
18
|
+
tool_calls?: readonly GatewayToolCall[];
|
|
19
|
+
reasoning_content?: string;
|
|
20
|
+
tool_call_id?: string;
|
|
21
|
+
tool_name?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface GatewayCompletionRequest {
|
|
24
|
+
model: string;
|
|
25
|
+
messages: readonly GatewayChatMessage[];
|
|
26
|
+
tools?: readonly GatewayTool[];
|
|
27
|
+
reasoning?: string;
|
|
28
|
+
}
|
|
29
|
+
export type GatewayStreamPart = {
|
|
30
|
+
type: "text";
|
|
31
|
+
text: string;
|
|
32
|
+
} | {
|
|
33
|
+
type: "thinking";
|
|
34
|
+
text: string;
|
|
35
|
+
} | {
|
|
36
|
+
type: "tool_call";
|
|
37
|
+
index: number;
|
|
38
|
+
id: string;
|
|
39
|
+
name: string;
|
|
40
|
+
arguments: string;
|
|
41
|
+
} | {
|
|
42
|
+
type: "done";
|
|
43
|
+
finish: "stop" | "tool_calls" | "length";
|
|
44
|
+
};
|
|
45
|
+
export type GatewayThinkingLevel = "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
|
|
46
|
+
export declare function isThinkingLevel(value: string): value is GatewayThinkingLevel;
|
|
47
|
+
//# sourceMappingURL=gateway-protocol.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gateway-protocol.d.ts","sourceRoot":"","sources":["../../../src/runtime/gateway-protocol.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,eAAe;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,WAAW;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAED,MAAM,WAAW,kBAAkB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,SAAS,eAAe,EAAE,CAAC;IACxC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,wBAAwB;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,SAAS,kBAAkB,EAAE,CAAC;IACxC,KAAK,CAAC,EAAE,SAAS,WAAW,EAAE,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,MAAM,iBAAiB,GAC1B;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC9B;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAClC;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GACjF;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,GAAG,YAAY,GAAG,QAAQ,CAAA;CAAE,CAAC;AAE9D,MAAM,MAAM,oBAAoB,GAAG,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;AAEnG,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,oBAAoB,CAU5E"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* xAI / Grok Build error remapping shared by Hub and Subscription.
|
|
3
|
+
* @module dsh-coding-oauth-core/grok-errors
|
|
4
|
+
*/
|
|
5
|
+
export declare function isXaiCapacityError(detail: string): boolean;
|
|
6
|
+
export declare function remapXaiCapacityFailure(failure: {
|
|
7
|
+
message: string;
|
|
8
|
+
code: string;
|
|
9
|
+
}): {
|
|
10
|
+
message: string;
|
|
11
|
+
code: string;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=grok-errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grok-errors.d.ts","sourceRoot":"","sources":["../../../src/runtime/grok-errors.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAUH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAE1D;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG;IACpF,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACb,CAGA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IncomingMessage } from "node:http";
|
|
2
|
+
export declare const JSON_BODY_LIMIT_BYTES: number;
|
|
3
|
+
export declare class JsonRequestError extends Error {
|
|
4
|
+
readonly statusCode: 400 | 413;
|
|
5
|
+
constructor(statusCode: 400 | 413, message: string);
|
|
6
|
+
}
|
|
7
|
+
/** Read one JSON request body with a strict in-memory ceiling. */
|
|
8
|
+
export declare function readJsonRequest(request: IncomingMessage, limit?: number): Promise<unknown>;
|
|
9
|
+
export declare function requestErrorStatus(error: unknown, fallback: number): number;
|
|
10
|
+
//# sourceMappingURL=http-json.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-json.d.ts","sourceRoot":"","sources":["../../../src/runtime/http-json.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAEjD,eAAO,MAAM,qBAAqB,QAAY,CAAC;AAE/C,qBAAa,gBAAiB,SAAQ,KAAK;IAC1C,QAAQ,CAAC,UAAU,EAAE,GAAG,GAAG,GAAG,CAAC;gBAEnB,UAAU,EAAE,GAAG,GAAG,GAAG,EAAE,OAAO,EAAE,MAAM;CAKlD;AASD,kEAAkE;AAClE,wBAAgB,eAAe,CAAC,OAAO,EAAE,eAAe,EAAE,KAAK,SAAwB,GAAG,OAAO,CAAC,OAAO,CAAC,CAuDzG;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAE3E"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Kimi Code error remapping shared by Hub and Subscription.
|
|
3
|
+
* @module dsh-coding-oauth-core/kimi-errors
|
|
4
|
+
*/
|
|
5
|
+
export declare function isMisclassifiedContextWindowError(detail: string): boolean;
|
|
6
|
+
export declare function remapAuthFailureIfContextOverflow(failure: {
|
|
7
|
+
message: string;
|
|
8
|
+
code: string;
|
|
9
|
+
}): {
|
|
10
|
+
message: string;
|
|
11
|
+
code: string;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=kimi-errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kimi-errors.d.ts","sourceRoot":"","sources":["../../../src/runtime/kimi-errors.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAYH,wBAAgB,iCAAiC,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAEzE;AAED,wBAAgB,iCAAiC,CAAC,OAAO,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG;IAC9F,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACb,CAGA"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,223 +1,228 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "dsh-coding-subscription-oauth",
|
|
3
|
-
"description": "DeepSeek Harness coding-subscription OAuth: SuperGrok/Grok Build, ChatGPT Plus Codex, Kimi Code, Claude Code. Fixes AUTH API key is invalid, INVALID_REPLAY_STATE, grok-4.6 xhigh, Kimi Bearer vs x-api-key.",
|
|
4
|
-
"version": "0.6.
|
|
5
|
-
"publishConfig": {
|
|
6
|
-
"access": "public",
|
|
7
|
-
"registry": "https://registry.npmjs.org/"
|
|
8
|
-
},
|
|
9
|
-
"repository": {
|
|
10
|
-
"type": "git",
|
|
11
|
-
"url": "git+https://github.com/lninghaha/dsh-coding-subscription-oauth.git"
|
|
12
|
-
},
|
|
13
|
-
"bugs": "https://github.com/lninghaha/dsh-coding-subscription-oauth/issues",
|
|
14
|
-
"homepage": "https://github.com/lninghaha/dsh-coding-subscription-oauth#readme",
|
|
15
|
-
"keywords": [
|
|
16
|
-
"deepseek-harness",
|
|
17
|
-
"dsh-plugin",
|
|
18
|
-
"oauth",
|
|
19
|
-
"grok-build",
|
|
20
|
-
"super-grok",
|
|
21
|
-
"grok-4.6",
|
|
22
|
-
"cli-chat-proxy",
|
|
23
|
-
"openai-codex",
|
|
24
|
-
"chatgpt-plus",
|
|
25
|
-
"kimi-code",
|
|
26
|
-
"claude-code",
|
|
27
|
-
"google-antigravity",
|
|
28
|
-
"xhigh",
|
|
29
|
-
"device-code"
|
|
30
|
-
],
|
|
31
|
-
"type": "module",
|
|
32
|
-
"packageManager": "pnpm@11.21.0",
|
|
33
|
-
"engines": {
|
|
34
|
-
"node": "^22.19.0 || >=24.0.0"
|
|
35
|
-
},
|
|
36
|
-
"main": "lib/index.js",
|
|
37
|
-
"types": "lib/index.d.ts",
|
|
38
|
-
"bin": {
|
|
39
|
-
"dsh-coding-oauth": "lib/bin.js",
|
|
40
|
-
"dsh-grok-build": "lib/bin.js"
|
|
41
|
-
},
|
|
42
|
-
"scripts": {
|
|
43
|
-
"check:bom": "node build/verify-dsh-bom.mjs",
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"build:
|
|
49
|
-
"build": "
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"release:
|
|
59
|
-
"release:
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
"
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
"
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
"./
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
"lib",
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"README.
|
|
94
|
-
"README.
|
|
95
|
-
"README.
|
|
96
|
-
"README.
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
"
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
"
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
"@deepseek-ai/
|
|
117
|
-
"@deepseek-ai/dsh-
|
|
118
|
-
"@deepseek-ai/dsh-
|
|
119
|
-
"@deepseek-ai/dsh-client-
|
|
120
|
-
"@deepseek-ai/dsh-
|
|
121
|
-
"@deepseek-ai/dsh-
|
|
122
|
-
"@deepseek-ai/dsh-
|
|
123
|
-
"@deepseek-ai/dsh-
|
|
124
|
-
"@deepseek-ai/dsh-
|
|
125
|
-
"@deepseek-ai/dsh-
|
|
126
|
-
"@deepseek-ai/dsh-
|
|
127
|
-
"@deepseek-ai/
|
|
128
|
-
"@
|
|
129
|
-
"
|
|
130
|
-
"
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "dsh-coding-subscription-oauth",
|
|
3
|
+
"description": "DeepSeek Harness coding-subscription OAuth: SuperGrok/Grok Build, ChatGPT Plus Codex, Kimi Code, Claude Code. Fixes AUTH API key is invalid, INVALID_REPLAY_STATE, grok-4.6 xhigh, Kimi Bearer vs x-api-key.",
|
|
4
|
+
"version": "0.6.5",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public",
|
|
7
|
+
"registry": "https://registry.npmjs.org/"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/lninghaha/dsh-coding-subscription-oauth.git"
|
|
12
|
+
},
|
|
13
|
+
"bugs": "https://github.com/lninghaha/dsh-coding-subscription-oauth/issues",
|
|
14
|
+
"homepage": "https://github.com/lninghaha/dsh-coding-subscription-oauth#readme",
|
|
15
|
+
"keywords": [
|
|
16
|
+
"deepseek-harness",
|
|
17
|
+
"dsh-plugin",
|
|
18
|
+
"oauth",
|
|
19
|
+
"grok-build",
|
|
20
|
+
"super-grok",
|
|
21
|
+
"grok-4.6",
|
|
22
|
+
"cli-chat-proxy",
|
|
23
|
+
"openai-codex",
|
|
24
|
+
"chatgpt-plus",
|
|
25
|
+
"kimi-code",
|
|
26
|
+
"claude-code",
|
|
27
|
+
"google-antigravity",
|
|
28
|
+
"xhigh",
|
|
29
|
+
"device-code"
|
|
30
|
+
],
|
|
31
|
+
"type": "module",
|
|
32
|
+
"packageManager": "pnpm@11.21.0",
|
|
33
|
+
"engines": {
|
|
34
|
+
"node": "^22.19.0 || >=24.0.0"
|
|
35
|
+
},
|
|
36
|
+
"main": "lib/index.js",
|
|
37
|
+
"types": "lib/index.d.ts",
|
|
38
|
+
"bin": {
|
|
39
|
+
"dsh-coding-oauth": "lib/bin.js",
|
|
40
|
+
"dsh-grok-build": "lib/bin.js"
|
|
41
|
+
},
|
|
42
|
+
"scripts": {
|
|
43
|
+
"check:bom": "node build/verify-dsh-bom.mjs",
|
|
44
|
+
"assert:node": "node scripts/assert-node.mjs",
|
|
45
|
+
"assert:runtime-slice": "node scripts/assert-runtime-slice-sync.mjs",
|
|
46
|
+
"clean": "node build/clean.mjs",
|
|
47
|
+
"typecheck": "tsc -b tsconfig.host.json tsconfig.client.json",
|
|
48
|
+
"build:server": "tsc -p tsconfig.build.json && tsc -p tsconfig.dts-bin.json && node build/build-server.mjs",
|
|
49
|
+
"build:client": "node build/build-client.mjs",
|
|
50
|
+
"build:artifacts": "pnpm run check:bom && pnpm run clean && pnpm run typecheck && pnpm run build:server && pnpm run build:client",
|
|
51
|
+
"build": "pnpm run release:build",
|
|
52
|
+
"test": "vitest run",
|
|
53
|
+
"test:watch": "vitest",
|
|
54
|
+
"test:coverage": "vitest run --coverage",
|
|
55
|
+
"lint": "biome check",
|
|
56
|
+
"check:next": "pnpm run assert:node && pnpm run assert:runtime-slice && pnpm run check:bom && pnpm run lint && pnpm run typecheck && pnpm run test",
|
|
57
|
+
"check": "pnpm run assert:node && pnpm run assert:runtime-slice && pnpm run lint && pnpm run release:build && pnpm run test",
|
|
58
|
+
"release:promote": "node build/promote-release.mjs",
|
|
59
|
+
"release:verify": "node build/verify-release.mjs",
|
|
60
|
+
"release:build": "pnpm run build:artifacts && pnpm run release:promote",
|
|
61
|
+
"release:dry": "node scripts/release.mjs --dry-run",
|
|
62
|
+
"release:inspect": "pnpm run assert:node && node scripts/release.mjs --dry-run",
|
|
63
|
+
"release:pack": "node scripts/release.mjs --pack",
|
|
64
|
+
"release:publish": "node scripts/release-publish.mjs",
|
|
65
|
+
"verify:deployed": "node scripts/verify-deployed-catalog.mjs",
|
|
66
|
+
"smoke:deployed": "node scripts/smoke-deployed-routes.mjs",
|
|
67
|
+
"prepack": "pnpm run release:build"
|
|
68
|
+
},
|
|
69
|
+
"exports": {
|
|
70
|
+
".": {
|
|
71
|
+
"types": "./lib/index.d.ts",
|
|
72
|
+
"default": "./lib/index.js"
|
|
73
|
+
},
|
|
74
|
+
"./invariant": {
|
|
75
|
+
"types": "./lib/invariant.d.ts",
|
|
76
|
+
"default": "./lib/invariant.js"
|
|
77
|
+
},
|
|
78
|
+
"./client": "./lib/client.js",
|
|
79
|
+
"./cordis.patch.yml": "./cordis.patch.yml",
|
|
80
|
+
"./package.json": "./package.json"
|
|
81
|
+
},
|
|
82
|
+
"files": [
|
|
83
|
+
"lib",
|
|
84
|
+
"media",
|
|
85
|
+
"cordis.patch.yml",
|
|
86
|
+
"INSTALL.md",
|
|
87
|
+
"CHANGELOG.md",
|
|
88
|
+
"CONTRIBUTING.md",
|
|
89
|
+
"docs/00-project-rules.md",
|
|
90
|
+
"docs/02-architecture.md",
|
|
91
|
+
"docs/02-architecture.zh-CN.md",
|
|
92
|
+
"compatibility/dsh-bom.json",
|
|
93
|
+
"README.zh-CN.md",
|
|
94
|
+
"README.ja.md",
|
|
95
|
+
"README.ko.md",
|
|
96
|
+
"README.pt-BR.md",
|
|
97
|
+
"README.es.md",
|
|
98
|
+
"README.fr.md",
|
|
99
|
+
"README.de.md",
|
|
100
|
+
"README.ru.md",
|
|
101
|
+
"patches/dsh-agy@0.1.2.patch",
|
|
102
|
+
"scripts/verify-deployed-catalog.mjs",
|
|
103
|
+
"scripts/smoke-deployed-routes.mjs",
|
|
104
|
+
"scripts/release.mjs",
|
|
105
|
+
"LICENSE",
|
|
106
|
+
"NOTICE"
|
|
107
|
+
],
|
|
108
|
+
"license": "Apache-2.0",
|
|
109
|
+
"dsh": {
|
|
110
|
+
"compatibility": {
|
|
111
|
+
"coreAbi": "dsh-coding-oauth-core/v1",
|
|
112
|
+
"verifiedBom": "./compatibility/dsh-bom.json",
|
|
113
|
+
"participant": "coding-subscription-oauth",
|
|
114
|
+
"diagnostics": "standalone",
|
|
115
|
+
"bom": {
|
|
116
|
+
"@deepseek-ai/cordis": "4.0.1",
|
|
117
|
+
"@deepseek-ai/dsh-atomic-write": "0.1.1-rc.2",
|
|
118
|
+
"@deepseek-ai/dsh-attachment": "0.1.1-rc.2",
|
|
119
|
+
"@deepseek-ai/dsh-client-locale": "0.1.1-rc.2",
|
|
120
|
+
"@deepseek-ai/dsh-client-runtime": "0.1.1-rc.2",
|
|
121
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.1.1-rc.2",
|
|
122
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.1.1-rc.2",
|
|
123
|
+
"@deepseek-ai/dsh-client-web": "0.1.1-rc.2",
|
|
124
|
+
"@deepseek-ai/dsh-credentials": "0.1.1-rc.2",
|
|
125
|
+
"@deepseek-ai/dsh-home-paths": "0.1.1-rc.2",
|
|
126
|
+
"@deepseek-ai/dsh-host-webserver": "0.1.1-rc.2",
|
|
127
|
+
"@deepseek-ai/dsh-invariants": "0.1.1-rc.2",
|
|
128
|
+
"@deepseek-ai/dsh-llm": "0.1.1-rc.2",
|
|
129
|
+
"@deepseek-ai/dsh-llm-pi-ai": "0.1.1-rc.2",
|
|
130
|
+
"@deepseek-ai/dsh-tools": "0.1.1-rc.2",
|
|
131
|
+
"@deepseek-ai/schemastery": "3.18.1",
|
|
132
|
+
"@earendil-works/pi-ai": "0.84.2",
|
|
133
|
+
"react": "18.3.1",
|
|
134
|
+
"react-dom": "18.3.1"
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"bundle": {
|
|
138
|
+
"patch": "./cordis.patch.yml"
|
|
139
|
+
},
|
|
140
|
+
"client": {
|
|
141
|
+
"inject": [
|
|
142
|
+
"@deepseek-ai/dsh-client-runtime",
|
|
143
|
+
"@deepseek-ai/dsh-client-ui-settings",
|
|
144
|
+
"@deepseek-ai/dsh-client-locale"
|
|
145
|
+
],
|
|
146
|
+
"platform": "web"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"dependencies": {
|
|
146
150
|
"dsh-coding-oauth-core": "0.1.1",
|
|
147
151
|
"undici": "7.29.0"
|
|
148
|
-
},
|
|
149
|
-
"peerDependencies": {
|
|
150
|
-
"@deepseek-ai/cordis": "4.0.1",
|
|
151
|
-
"@deepseek-ai/dsh-atomic-write": "0.1.1-rc.2",
|
|
152
|
-
"@deepseek-ai/dsh-attachment": "0.1.1-rc.2",
|
|
153
|
-
"@deepseek-ai/dsh-credentials": "0.1.1-rc.2",
|
|
154
|
-
"@deepseek-ai/dsh-home-paths": "0.1.1-rc.2",
|
|
155
|
-
"@deepseek-ai/dsh-host-webserver": "0.1.1-rc.2",
|
|
156
|
-
"@deepseek-ai/dsh-invariants": "0.1.1-rc.2",
|
|
157
|
-
"@deepseek-ai/dsh-llm": "0.1.1-rc.2",
|
|
158
|
-
"@deepseek-ai/dsh-llm-pi-ai": "0.1.1-rc.2",
|
|
159
|
-
"@deepseek-ai/dsh-tools": "0.1.1-rc.2",
|
|
160
|
-
"@deepseek-ai/schemastery": "3.18.1",
|
|
161
|
-
"@earendil-works/pi-ai": "0.84.2",
|
|
162
|
-
"react": "18.3.1",
|
|
163
|
-
"react-dom": "18.3.1"
|
|
164
|
-
},
|
|
165
|
-
"peerDependenciesMeta": {
|
|
166
|
-
"@deepseek-ai/cordis": {
|
|
167
|
-
"optional": true
|
|
168
|
-
},
|
|
169
|
-
"@deepseek-ai/dsh-attachment": {
|
|
170
|
-
"optional": true
|
|
171
|
-
},
|
|
172
|
-
"@deepseek-ai/dsh-credentials": {
|
|
173
|
-
"optional": true
|
|
174
|
-
},
|
|
175
|
-
"@deepseek-ai/dsh-host-webserver": {
|
|
176
|
-
"optional": true
|
|
177
|
-
},
|
|
178
|
-
"@deepseek-ai/dsh-invariants": {
|
|
179
|
-
"optional": true
|
|
180
|
-
},
|
|
181
|
-
"@deepseek-ai/dsh-tools": {
|
|
182
|
-
"optional": true
|
|
183
|
-
},
|
|
184
|
-
"react": {
|
|
185
|
-
"optional": true
|
|
186
|
-
},
|
|
187
|
-
"react-dom": {
|
|
188
|
-
"optional": true
|
|
189
|
-
}
|
|
190
|
-
},
|
|
191
|
-
"devDependencies": {
|
|
192
|
-
"@biomejs/biome": "^2.5.8",
|
|
193
|
-
"@deepseek-ai/cordis": "4.0.1",
|
|
194
|
-
"@deepseek-ai/dsh-atomic-write": "0.1.1-rc.2",
|
|
195
|
-
"@deepseek-ai/dsh-attachment": "0.1.1-rc.2",
|
|
196
|
-
"@deepseek-ai/dsh-client-locale": "0.1.1-rc.2",
|
|
197
|
-
"@deepseek-ai/dsh-client-runtime": "0.1.1-rc.2",
|
|
198
|
-
"@deepseek-ai/dsh-client-ui-settings": "0.1.1-rc.2",
|
|
199
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.1.1-rc.2",
|
|
200
|
-
"@deepseek-ai/dsh-client-web": "0.1.1-rc.2",
|
|
201
|
-
"@deepseek-ai/dsh-credentials": "0.1.1-rc.2",
|
|
202
|
-
"@deepseek-ai/dsh-home-paths": "0.1.1-rc.2",
|
|
203
|
-
"@deepseek-ai/dsh-host-webserver": "0.1.1-rc.2",
|
|
204
|
-
"@deepseek-ai/dsh-invariants": "0.1.1-rc.2",
|
|
205
|
-
"@deepseek-ai/dsh-llm": "0.1.1-rc.2",
|
|
206
|
-
"@deepseek-ai/dsh-llm-pi-ai": "0.1.1-rc.2",
|
|
207
|
-
"@deepseek-ai/dsh-tools": "0.1.1-rc.2",
|
|
208
|
-
"@deepseek-ai/schemastery": "3.18.1",
|
|
209
|
-
"@earendil-works/pi-ai": "0.84.2",
|
|
210
|
-
"@types/node": "^22.20.0",
|
|
211
|
-
"@types/react": "~18.3.1",
|
|
212
|
-
"@types/react-dom": "18.3.7",
|
|
213
|
-
"
|
|
214
|
-
"
|
|
215
|
-
"react
|
|
216
|
-
"
|
|
152
|
+
},
|
|
153
|
+
"peerDependencies": {
|
|
154
|
+
"@deepseek-ai/cordis": "4.0.1",
|
|
155
|
+
"@deepseek-ai/dsh-atomic-write": "0.1.1-rc.2",
|
|
156
|
+
"@deepseek-ai/dsh-attachment": "0.1.1-rc.2",
|
|
157
|
+
"@deepseek-ai/dsh-credentials": "0.1.1-rc.2",
|
|
158
|
+
"@deepseek-ai/dsh-home-paths": "0.1.1-rc.2",
|
|
159
|
+
"@deepseek-ai/dsh-host-webserver": "0.1.1-rc.2",
|
|
160
|
+
"@deepseek-ai/dsh-invariants": "0.1.1-rc.2",
|
|
161
|
+
"@deepseek-ai/dsh-llm": "0.1.1-rc.2",
|
|
162
|
+
"@deepseek-ai/dsh-llm-pi-ai": "0.1.1-rc.2",
|
|
163
|
+
"@deepseek-ai/dsh-tools": "0.1.1-rc.2",
|
|
164
|
+
"@deepseek-ai/schemastery": "3.18.1",
|
|
165
|
+
"@earendil-works/pi-ai": "0.84.2",
|
|
166
|
+
"react": "18.3.1",
|
|
167
|
+
"react-dom": "18.3.1"
|
|
168
|
+
},
|
|
169
|
+
"peerDependenciesMeta": {
|
|
170
|
+
"@deepseek-ai/cordis": {
|
|
171
|
+
"optional": true
|
|
172
|
+
},
|
|
173
|
+
"@deepseek-ai/dsh-attachment": {
|
|
174
|
+
"optional": true
|
|
175
|
+
},
|
|
176
|
+
"@deepseek-ai/dsh-credentials": {
|
|
177
|
+
"optional": true
|
|
178
|
+
},
|
|
179
|
+
"@deepseek-ai/dsh-host-webserver": {
|
|
180
|
+
"optional": true
|
|
181
|
+
},
|
|
182
|
+
"@deepseek-ai/dsh-invariants": {
|
|
183
|
+
"optional": true
|
|
184
|
+
},
|
|
185
|
+
"@deepseek-ai/dsh-tools": {
|
|
186
|
+
"optional": true
|
|
187
|
+
},
|
|
188
|
+
"react": {
|
|
189
|
+
"optional": true
|
|
190
|
+
},
|
|
191
|
+
"react-dom": {
|
|
192
|
+
"optional": true
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
"devDependencies": {
|
|
196
|
+
"@biomejs/biome": "^2.5.8",
|
|
197
|
+
"@deepseek-ai/cordis": "4.0.1",
|
|
198
|
+
"@deepseek-ai/dsh-atomic-write": "0.1.1-rc.2",
|
|
199
|
+
"@deepseek-ai/dsh-attachment": "0.1.1-rc.2",
|
|
200
|
+
"@deepseek-ai/dsh-client-locale": "0.1.1-rc.2",
|
|
201
|
+
"@deepseek-ai/dsh-client-runtime": "0.1.1-rc.2",
|
|
202
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.1.1-rc.2",
|
|
203
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.1.1-rc.2",
|
|
204
|
+
"@deepseek-ai/dsh-client-web": "0.1.1-rc.2",
|
|
205
|
+
"@deepseek-ai/dsh-credentials": "0.1.1-rc.2",
|
|
206
|
+
"@deepseek-ai/dsh-home-paths": "0.1.1-rc.2",
|
|
207
|
+
"@deepseek-ai/dsh-host-webserver": "0.1.1-rc.2",
|
|
208
|
+
"@deepseek-ai/dsh-invariants": "0.1.1-rc.2",
|
|
209
|
+
"@deepseek-ai/dsh-llm": "0.1.1-rc.2",
|
|
210
|
+
"@deepseek-ai/dsh-llm-pi-ai": "0.1.1-rc.2",
|
|
211
|
+
"@deepseek-ai/dsh-tools": "0.1.1-rc.2",
|
|
212
|
+
"@deepseek-ai/schemastery": "3.18.1",
|
|
213
|
+
"@earendil-works/pi-ai": "0.84.2",
|
|
214
|
+
"@types/node": "^22.20.0",
|
|
215
|
+
"@types/react": "~18.3.1",
|
|
216
|
+
"@types/react-dom": "18.3.7",
|
|
217
|
+
"@vitest/coverage-v8": "4.1.10",
|
|
218
|
+
"esbuild": "^0.28.2",
|
|
219
|
+
"react": "18.3.1",
|
|
220
|
+
"react-dom": "18.3.1",
|
|
221
|
+
"typescript": "^6.0.3",
|
|
217
222
|
"undici": "7.29.0",
|
|
218
|
-
"vitest": "^4.1.8"
|
|
219
|
-
},
|
|
220
|
-
"overrides": {
|
|
221
|
-
"@earendil-works/pi-ai": "0.84.2"
|
|
222
|
-
}
|
|
223
|
-
}
|
|
223
|
+
"vitest": "^4.1.8"
|
|
224
|
+
},
|
|
225
|
+
"overrides": {
|
|
226
|
+
"@earendil-works/pi-ai": "0.84.2"
|
|
227
|
+
}
|
|
228
|
+
}
|