dsh-provider-qoder 0.1.0
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/LICENSE +21 -0
- package/README.md +115 -0
- package/README_CN.md +115 -0
- package/cordis.patch.yml +4 -0
- package/lib/client.js +944 -0
- package/lib/index.d.ts +398 -0
- package/lib/index.js +1778 -0
- package/lib/invariant.d.ts +15 -0
- package/lib/invariant.js +15 -0
- package/package.json +103 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Context } from "@deepseek-ai/cordis";
|
|
2
|
+
|
|
3
|
+
//#region src/invariant.d.ts
|
|
4
|
+
/** Cordis companion plugin name. */
|
|
5
|
+
declare const name = "provider-qoder-invariant";
|
|
6
|
+
/** Service required before the companion can reserve package ownership. */
|
|
7
|
+
declare const inject: string[];
|
|
8
|
+
/**
|
|
9
|
+
* Register this package's invariant companion.
|
|
10
|
+
* @param ctx - Cordis context carrying the invariant service.
|
|
11
|
+
* @returns the installed registration's disposer after setup succeeds.
|
|
12
|
+
*/
|
|
13
|
+
declare const apply: (ctx: Context) => Promise<() => void>;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { apply, inject, name };
|
package/lib/invariant.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/invariant.ts
|
|
2
|
+
const packageName = "dsh-provider-qoder";
|
|
3
|
+
/** Cordis companion plugin name. */
|
|
4
|
+
const name = "provider-qoder-invariant";
|
|
5
|
+
/** Service required before the companion can reserve package ownership. */
|
|
6
|
+
const inject = ["invariants"];
|
|
7
|
+
const install = () => {};
|
|
8
|
+
/**
|
|
9
|
+
* Register this package's invariant companion.
|
|
10
|
+
* @param ctx - Cordis context carrying the invariant service.
|
|
11
|
+
* @returns the installed registration's disposer after setup succeeds.
|
|
12
|
+
*/
|
|
13
|
+
const apply = (ctx) => Promise.resolve(ctx.invariants.register(packageName, install));
|
|
14
|
+
//#endregion
|
|
15
|
+
export { apply, inject, name };
|
package/package.json
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "dsh-provider-qoder",
|
|
3
|
+
"description": "Global Qoder subscription adapter for the DeepSeek Harness LLM seam",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/mo-n/dsh-provider-qoder"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://github.com/mo-n/dsh-provider-qoder#readme",
|
|
13
|
+
"keywords": [
|
|
14
|
+
"deepseek",
|
|
15
|
+
"deepseek-harness",
|
|
16
|
+
"dsh",
|
|
17
|
+
"dsh-plugin",
|
|
18
|
+
"qoder"
|
|
19
|
+
],
|
|
20
|
+
"type": "module",
|
|
21
|
+
"scripts": {
|
|
22
|
+
"dev": "tsdown --config tsdown.config.mjs --watch",
|
|
23
|
+
"typecheck": "tsc --noEmit",
|
|
24
|
+
"test": "node --test --test-isolation=none --experimental-strip-types tests/*.test.ts",
|
|
25
|
+
"build": "tsdown --config tsdown.config.mjs",
|
|
26
|
+
"verify": "pnpm run build && pnpm run typecheck && pnpm test",
|
|
27
|
+
"check": "pnpm run verify && pnpm pack --dry-run",
|
|
28
|
+
"prepublishOnly": "pnpm run verify"
|
|
29
|
+
},
|
|
30
|
+
"main": "lib/index.js",
|
|
31
|
+
"types": "lib/index.d.ts",
|
|
32
|
+
"exports": {
|
|
33
|
+
".": {
|
|
34
|
+
"types": "./lib/index.d.ts",
|
|
35
|
+
"default": "./lib/index.js"
|
|
36
|
+
},
|
|
37
|
+
"./invariant": {
|
|
38
|
+
"types": "./lib/invariant.d.ts",
|
|
39
|
+
"default": "./lib/invariant.js"
|
|
40
|
+
},
|
|
41
|
+
"./client": "./lib/client.js",
|
|
42
|
+
"./cordis.patch.yml": "./cordis.patch.yml",
|
|
43
|
+
"./package.json": "./package.json"
|
|
44
|
+
},
|
|
45
|
+
"files": [
|
|
46
|
+
"lib/**/*.js",
|
|
47
|
+
"lib/**/*.d.ts",
|
|
48
|
+
"cordis.patch.yml",
|
|
49
|
+
"LICENSE",
|
|
50
|
+
"README.md",
|
|
51
|
+
"README_CN.md"
|
|
52
|
+
],
|
|
53
|
+
"dsh": {
|
|
54
|
+
"bundle": {
|
|
55
|
+
"patch": "./cordis.patch.yml"
|
|
56
|
+
},
|
|
57
|
+
"client": {
|
|
58
|
+
"inject": [
|
|
59
|
+
"@deepseek-ai/dsh-api-remotes",
|
|
60
|
+
"@deepseek-ai/dsh-client-connection",
|
|
61
|
+
"@deepseek-ai/dsh-client-locale",
|
|
62
|
+
"@deepseek-ai/dsh-client-ui-settings"
|
|
63
|
+
],
|
|
64
|
+
"platform": "web"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"license": "MIT",
|
|
68
|
+
"peerDependencies": {
|
|
69
|
+
"@deepseek-ai/cordis": ">=4.0.2 <5",
|
|
70
|
+
"@deepseek-ai/dsh-api-remotes": ">=0.1.2-rc.1 <0.2",
|
|
71
|
+
"@deepseek-ai/dsh-client-connection": ">=0.1.2-rc.1 <0.2",
|
|
72
|
+
"@deepseek-ai/dsh-client-locale": ">=0.1.2-rc.1 <0.2",
|
|
73
|
+
"@deepseek-ai/dsh-client-ui-settings": ">=0.1.2-rc.1 <0.2",
|
|
74
|
+
"@deepseek-ai/dsh-client-ui-slots": ">=0.1.2-rc.1 <0.2",
|
|
75
|
+
"@deepseek-ai/dsh-credentials": ">=0.1.2-rc.1 <0.2",
|
|
76
|
+
"@deepseek-ai/dsh-invariants": ">=0.1.2-rc.1 <0.2",
|
|
77
|
+
"@deepseek-ai/dsh-llm": ">=0.1.2-rc.1 <0.2",
|
|
78
|
+
"@deepseek-ai/dsh-settings": ">=0.1.2-rc.1 <0.2",
|
|
79
|
+
"react": "^18.2.0"
|
|
80
|
+
},
|
|
81
|
+
"dependencies": {
|
|
82
|
+
"@deepseek-ai/schemastery": "3.18.1"
|
|
83
|
+
},
|
|
84
|
+
"devDependencies": {
|
|
85
|
+
"@deepseek-ai/cordis": "4.0.2",
|
|
86
|
+
"@deepseek-ai/dsh-api-remotes": "0.1.2-rc.1",
|
|
87
|
+
"@deepseek-ai/dsh-client-connection": "0.1.2-rc.1",
|
|
88
|
+
"@deepseek-ai/dsh-client-locale": "0.1.2-rc.1",
|
|
89
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.1.2-rc.1",
|
|
90
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.1.2-rc.1",
|
|
91
|
+
"@deepseek-ai/dsh-credentials": "0.1.2-rc.1",
|
|
92
|
+
"@deepseek-ai/dsh-invariants": "0.1.2-rc.1",
|
|
93
|
+
"@deepseek-ai/dsh-llm": "0.1.2-rc.1",
|
|
94
|
+
"@deepseek-ai/dsh-settings": "0.1.2-rc.1",
|
|
95
|
+
"@deepseek-ai/schemastery": "3.18.1",
|
|
96
|
+
"@types/node": "24.3.0",
|
|
97
|
+
"@types/react": "18.3.1",
|
|
98
|
+
"lightningcss": "^1.33.0",
|
|
99
|
+
"react": "18.3.1",
|
|
100
|
+
"tsdown": "0.22.2",
|
|
101
|
+
"typescript": "5.9.2"
|
|
102
|
+
}
|
|
103
|
+
}
|