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.
Files changed (144) hide show
  1. package/CHANGELOG.md +280 -255
  2. package/CONTRIBUTING.md +138 -129
  3. package/INSTALL.md +256 -255
  4. package/LICENSE +19 -19
  5. package/NOTICE +11 -11
  6. package/README.de.md +303 -303
  7. package/README.es.md +304 -304
  8. package/README.fr.md +304 -304
  9. package/README.ja.md +304 -304
  10. package/README.ko.md +304 -304
  11. package/README.md +320 -320
  12. package/README.pt-BR.md +304 -304
  13. package/README.ru.md +304 -304
  14. package/README.zh-CN.md +318 -318
  15. package/compatibility/dsh-bom.json +30 -30
  16. package/cordis.patch.yml +13 -13
  17. package/docs/00-project-rules.md +212 -212
  18. package/docs/02-architecture.md +141 -137
  19. package/docs/02-architecture.zh-CN.md +141 -137
  20. package/lib/bin.js.map +1 -1
  21. package/lib/client.js +1 -1
  22. package/lib/client.js.map +1 -1
  23. package/lib/gateway-protocol.d.ts +3 -46
  24. package/lib/gateway-protocol.d.ts.map +1 -1
  25. package/lib/gateway-routes.d.ts.map +1 -1
  26. package/lib/grok-errors.d.ts +2 -12
  27. package/lib/grok-errors.d.ts.map +1 -1
  28. package/lib/grok-imagine/client.d.ts +73 -0
  29. package/lib/grok-imagine/client.d.ts.map +1 -0
  30. package/lib/grok-imagine/index.d.ts +8 -0
  31. package/lib/grok-imagine/index.d.ts.map +1 -0
  32. package/lib/grok-imagine/net.d.ts +10 -0
  33. package/lib/grok-imagine/net.d.ts.map +1 -0
  34. package/lib/grok-imagine/parse.d.ts +20 -0
  35. package/lib/grok-imagine/parse.d.ts.map +1 -0
  36. package/lib/grok-imagine/types.d.ts +191 -0
  37. package/lib/grok-imagine/types.d.ts.map +1 -0
  38. package/lib/grok-imagine.d.ts +3 -263
  39. package/lib/grok-imagine.d.ts.map +1 -1
  40. package/lib/http-json.d.ts +2 -9
  41. package/lib/http-json.d.ts.map +1 -1
  42. package/lib/index.js +57 -37
  43. package/lib/index.js.map +4 -4
  44. package/lib/invariant.js.map +1 -1
  45. package/lib/kimi-errors.d.ts +2 -12
  46. package/lib/kimi-errors.d.ts.map +1 -1
  47. package/lib/runtime/gateway-protocol.d.ts +47 -0
  48. package/lib/runtime/gateway-protocol.d.ts.map +1 -0
  49. package/lib/runtime/grok-errors.d.ts +13 -0
  50. package/lib/runtime/grok-errors.d.ts.map +1 -0
  51. package/lib/runtime/http-json.d.ts +10 -0
  52. package/lib/runtime/http-json.d.ts.map +1 -0
  53. package/lib/runtime/kimi-errors.d.ts +13 -0
  54. package/lib/runtime/kimi-errors.d.ts.map +1 -0
  55. package/media/en/settings_accounts.png +0 -0
  56. package/media/en/settings_capabilities.png +0 -0
  57. package/media/en/settings_gateway.png +0 -0
  58. package/media/settings_accounts.png +0 -0
  59. package/media/settings_capabilities.png +0 -0
  60. package/media/settings_gateway.png +0 -0
  61. package/media/settings_overview.png +0 -0
  62. package/media/zh-CN/settings_accounts.png +0 -0
  63. package/media/zh-CN/settings_capabilities.png +0 -0
  64. package/media/zh-CN/settings_gateway.png +0 -0
  65. package/package.json +225 -220
  66. package/patches/dsh-agy@0.1.2.patch +25 -25
  67. package/scripts/release.mjs +187 -186
  68. package/scripts/smoke-deployed-routes.mjs +146 -146
  69. package/scripts/verify-deployed-catalog.mjs +87 -87
  70. package/src/adapter.ts +0 -348
  71. package/src/alias-adapter.ts +0 -147
  72. package/src/auth-routes.ts +0 -921
  73. package/src/auth.ts +0 -67
  74. package/src/bin.ts +0 -350
  75. package/src/capability-routes.ts +0 -279
  76. package/src/capability-runtime.ts +0 -314
  77. package/src/capability-settings.ts +0 -671
  78. package/src/capability-tools.ts +0 -685
  79. package/src/catalog.ts +0 -271
  80. package/src/client/GrokBuildSettings.tsx +0 -771
  81. package/src/client/api.ts +0 -88
  82. package/src/client/components/AboutTab.tsx +0 -30
  83. package/src/client/components/AccountsTab.tsx +0 -241
  84. package/src/client/components/Badge.tsx +0 -33
  85. package/src/client/components/CapabilitiesTab.tsx +0 -265
  86. package/src/client/components/CliPullPreview.tsx +0 -116
  87. package/src/client/components/CopyButton.tsx +0 -57
  88. package/src/client/components/GatewayTab.tsx +0 -469
  89. package/src/client/components/NoticeBanner.tsx +0 -46
  90. package/src/client/components/ProgressBar.tsx +0 -53
  91. package/src/client/components/ProviderCard.tsx +0 -606
  92. package/src/client/components/SettingsTabs.tsx +0 -75
  93. package/src/client/components/ToggleSwitch.tsx +0 -71
  94. package/src/client/constants.ts +0 -230
  95. package/src/client/display.ts +0 -61
  96. package/src/client/dshClientAdapter.ts +0 -127
  97. package/src/client/gatewaySnippets.ts +0 -37
  98. package/src/client/index.tsx +0 -156
  99. package/src/client/locales.ts +0 -540
  100. package/src/client/microStyles.ts +0 -52
  101. package/src/client/parsers.ts +0 -398
  102. package/src/client/styles.ts +0 -325
  103. package/src/client/types.ts +0 -199
  104. package/src/codex-http.ts +0 -447
  105. package/src/codex-images.ts +0 -503
  106. package/src/codex-model-capabilities.ts +0 -320
  107. package/src/codex-search.ts +0 -245
  108. package/src/codex-usage.ts +0 -263
  109. package/src/compatibility.ts +0 -55
  110. package/src/dsh-host-adapter.ts +0 -173
  111. package/src/gateway-anthropic-messages.ts +0 -84
  112. package/src/gateway-auth.ts +0 -102
  113. package/src/gateway-backend.ts +0 -274
  114. package/src/gateway-body.ts +0 -49
  115. package/src/gateway-config.ts +0 -76
  116. package/src/gateway-http.ts +0 -104
  117. package/src/gateway-openai-chat.ts +0 -124
  118. package/src/gateway-openai-responses.ts +0 -53
  119. package/src/gateway-parse.ts +0 -224
  120. package/src/gateway-protocol.ts +0 -52
  121. package/src/gateway-routes.ts +0 -158
  122. package/src/gateway.ts +0 -258
  123. package/src/grok-errors.ts +0 -24
  124. package/src/grok-imagine.ts +0 -1627
  125. package/src/grok-import.ts +0 -151
  126. package/src/http-json.ts +0 -82
  127. package/src/ids.ts +0 -59
  128. package/src/imagine-routes.ts +0 -463
  129. package/src/index.ts +0 -735
  130. package/src/invariant.ts +0 -17
  131. package/src/kimi-errors.ts +0 -26
  132. package/src/media-store.ts +0 -927
  133. package/src/oauth-import-routes.ts +0 -324
  134. package/src/oauth-providers.ts +0 -152
  135. package/src/oauth-session.ts +0 -183
  136. package/src/oauth-sources.ts +0 -1104
  137. package/src/oauth.ts +0 -620
  138. package/src/provider.ts +0 -128
  139. package/src/proxy.ts +0 -11
  140. package/src/redact.ts +0 -72
  141. package/src/session.ts +0 -218
  142. package/src/store.ts +0 -217
  143. package/src/web-origin.ts +0 -296
  144. package/src/web-routes.ts +0 -38
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/invariant.ts"],
4
- "sourcesContent": ["/**\r\n * Package-owned invariant companion for `dsh-coding-subscription-oauth`.\r\n * @module dsh-coding-subscription-oauth/invariant\r\n */\r\n\r\nimport type { Context } from \"@deepseek-ai/cordis\";\r\nimport type { InvariantInstaller } from \"@deepseek-ai/dsh-invariants\";\r\n\r\nconst PACKAGE_NAME = \"dsh-coding-subscription-oauth\";\r\n\r\nexport const name = \"grok-build-invariant\";\r\nexport const inject = [\"invariants\"];\r\n\r\nconst install: InvariantInstaller = () => {};\r\n\r\nexport const apply = (ctx: Context): Promise<() => void> =>\r\n\tPromise.resolve(ctx.invariants.register(PACKAGE_NAME, install));\r\n"],
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
  }
@@ -1,13 +1,3 @@
1
- /**
2
- * Kimi Code error remapping.
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
@@ -1 +1 @@
1
- {"version":3,"file":"kimi-errors.d.ts","sourceRoot":"","sources":["../../src/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"}
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.4",
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
- "clean": "node build/clean.mjs",
45
- "typecheck": "tsc -b tsconfig.host.json tsconfig.client.json",
46
- "build:server": "tsc -p tsconfig.build.json && tsc -p tsconfig.dts-bin.json && node build/build-server.mjs",
47
- "build:client": "node build/build-client.mjs",
48
- "build:artifacts": "pnpm run check:bom && pnpm run clean && pnpm run typecheck && pnpm run build:server && pnpm run build:client",
49
- "build": "pnpm run release:build",
50
- "test": "vitest run",
51
- "test:watch": "vitest",
52
- "lint": "biome check",
53
- "check:next": "pnpm run check:bom && pnpm run lint && pnpm run typecheck && pnpm run test",
54
- "check": "pnpm run lint && pnpm run release:build && pnpm run test",
55
- "release:promote": "node build/promote-release.mjs",
56
- "release:verify": "node build/verify-release.mjs",
57
- "release:build": "pnpm run build:artifacts && pnpm run release:promote",
58
- "release:dry": "node scripts/release.mjs --dry-run",
59
- "release:pack": "node scripts/release.mjs --pack",
60
- "verify:deployed": "node scripts/verify-deployed-catalog.mjs",
61
- "smoke:deployed": "node scripts/smoke-deployed-routes.mjs",
62
- "prepack": "pnpm run release:build"
63
- },
64
- "exports": {
65
- ".": {
66
- "types": "./lib/index.d.ts",
67
- "default": "./lib/index.js"
68
- },
69
- "./invariant": {
70
- "types": "./lib/invariant.d.ts",
71
- "default": "./lib/invariant.js"
72
- },
73
- "./client": "./lib/client.js",
74
- "./cordis.patch.yml": "./cordis.patch.yml",
75
- "./package.json": "./package.json"
76
- },
77
- "files": [
78
- "lib",
79
- "src",
80
- "media",
81
- "cordis.patch.yml",
82
- "INSTALL.md",
83
- "CHANGELOG.md",
84
- "CONTRIBUTING.md",
85
- "docs/00-project-rules.md",
86
- "docs/02-architecture.md",
87
- "docs/02-architecture.zh-CN.md",
88
- "compatibility/dsh-bom.json",
89
- "README.zh-CN.md",
90
- "README.ja.md",
91
- "README.ko.md",
92
- "README.pt-BR.md",
93
- "README.es.md",
94
- "README.fr.md",
95
- "README.de.md",
96
- "README.ru.md",
97
- "patches/dsh-agy@0.1.2.patch",
98
- "scripts/verify-deployed-catalog.mjs",
99
- "scripts/smoke-deployed-routes.mjs",
100
- "scripts/release.mjs",
101
- "LICENSE",
102
- "NOTICE"
103
- ],
104
- "license": "Apache-2.0",
105
- "dsh": {
106
- "compatibility": {
107
- "coreAbi": "dsh-coding-oauth-core/v1",
108
- "verifiedBom": "./compatibility/dsh-bom.json",
109
- "participant": "coding-subscription-oauth",
110
- "diagnostics": "standalone",
111
- "bom": {
112
- "@deepseek-ai/cordis": "4.0.1",
113
- "@deepseek-ai/dsh-atomic-write": "0.1.1-rc.2",
114
- "@deepseek-ai/dsh-attachment": "0.1.1-rc.2",
115
- "@deepseek-ai/dsh-client-locale": "0.1.1-rc.2",
116
- "@deepseek-ai/dsh-client-runtime": "0.1.1-rc.2",
117
- "@deepseek-ai/dsh-client-ui-settings": "0.1.1-rc.2",
118
- "@deepseek-ai/dsh-client-ui-slots": "0.1.1-rc.2",
119
- "@deepseek-ai/dsh-client-web": "0.1.1-rc.2",
120
- "@deepseek-ai/dsh-credentials": "0.1.1-rc.2",
121
- "@deepseek-ai/dsh-home-paths": "0.1.1-rc.2",
122
- "@deepseek-ai/dsh-host-webserver": "0.1.1-rc.2",
123
- "@deepseek-ai/dsh-invariants": "0.1.1-rc.2",
124
- "@deepseek-ai/dsh-llm": "0.1.1-rc.2",
125
- "@deepseek-ai/dsh-llm-pi-ai": "0.1.1-rc.2",
126
- "@deepseek-ai/dsh-tools": "0.1.1-rc.2",
127
- "@deepseek-ai/schemastery": "3.18.1",
128
- "@earendil-works/pi-ai": "0.84.2",
129
- "react": "18.3.1",
130
- "react-dom": "18.3.1"
131
- }
132
- },
133
- "bundle": {
134
- "patch": "./cordis.patch.yml"
135
- },
136
- "client": {
137
- "inject": [
138
- "@deepseek-ai/dsh-client-runtime",
139
- "@deepseek-ai/dsh-client-ui-settings",
140
- "@deepseek-ai/dsh-client-locale"
141
- ],
142
- "platform": "web"
143
- }
144
- },
145
- "dependencies": {
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
- "esbuild": "^0.28.2",
214
- "react": "18.3.1",
215
- "react-dom": "18.3.1",
216
- "typescript": "^6.0.3",
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
+ }