dsh-subscription-qoder 0.0.0-stage → 0.6.6
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.en.md +40 -0
- package/README.md +43 -2
- package/UPSTREAM.md +11 -0
- package/assets/icon.png +0 -0
- package/cordis.patch.yml +6 -0
- package/docs/wiki/configuration.md +61 -0
- package/docs/wiki/configuration_CN.md +63 -0
- package/lib/client.js +3984 -0
- package/lib/index.d.ts +291 -0
- package/lib/index.js +8463 -0
- package/lib/invariant.d.ts +15 -0
- package/lib/invariant.js +15 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +136 -4
- package/src/client/assets/qoder.svg +19 -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-subscription-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/locale/en.json
ADDED
package/locale/zh.json
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,138 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-subscription-qoder",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"description": "在 DeepSeek Harness 中使用 Qoder 订阅。",
|
|
4
|
+
"version": "0.6.6",
|
|
5
|
+
"author": "youxia",
|
|
6
|
+
"packageManager": "pnpm@11.21.0",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"access": "public"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/fujingzhai/youxia-dsh-plugins.git",
|
|
13
|
+
"directory": "dsh-subscription-qoder"
|
|
14
|
+
},
|
|
15
|
+
"homepage": "https://github.com/fujingzhai/youxia-dsh-plugins/tree/main/dsh-subscription-qoder#readme",
|
|
16
|
+
"bugs": "https://github.com/fujingzhai/youxia-dsh-plugins/issues",
|
|
17
|
+
"icon": "./assets/icon.png",
|
|
18
|
+
"keywords": [
|
|
19
|
+
"deepseek",
|
|
20
|
+
"deepseek-harness",
|
|
21
|
+
"dsh",
|
|
22
|
+
"dsh-plugin",
|
|
23
|
+
"qoder"
|
|
24
|
+
],
|
|
25
|
+
"type": "module",
|
|
26
|
+
"engines": {
|
|
27
|
+
"dsh": "^0.2.3-alpha.3",
|
|
28
|
+
"node": "^22.19.0 || >=24.0.0"
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"dev": "tsdown --config tsdown.config.mjs --watch",
|
|
32
|
+
"typecheck": "tsc --noEmit",
|
|
33
|
+
"typecheck:src": "tsc -p tsconfig.src.json",
|
|
34
|
+
"test": "node --test --test-isolation=none --experimental-strip-types --import ./tests/helpers/offline.ts tests/*.test.ts",
|
|
35
|
+
"build": "tsdown --config tsdown.config.mjs",
|
|
36
|
+
"verify": "pnpm run build && pnpm run typecheck && pnpm run typecheck:src && pnpm test",
|
|
37
|
+
"check": "pnpm run verify && npm pack --dry-run --ignore-scripts",
|
|
38
|
+
"prepare": "npm run build",
|
|
39
|
+
"prepublishOnly": "pnpm run verify"
|
|
40
|
+
},
|
|
41
|
+
"main": "lib/index.js",
|
|
42
|
+
"types": "lib/index.d.ts",
|
|
43
|
+
"exports": {
|
|
44
|
+
".": {
|
|
45
|
+
"types": "./lib/index.d.ts",
|
|
46
|
+
"default": "./lib/index.js"
|
|
47
|
+
},
|
|
48
|
+
"./invariant": {
|
|
49
|
+
"types": "./lib/invariant.d.ts",
|
|
50
|
+
"default": "./lib/invariant.js"
|
|
51
|
+
},
|
|
52
|
+
"./client": "./lib/client.js",
|
|
53
|
+
"./icon": "./src/client/assets/qoder.svg",
|
|
54
|
+
"./locale/*.json": "./locale/*.json",
|
|
55
|
+
"./cordis.patch.yml": "./cordis.patch.yml",
|
|
56
|
+
"./package.json": "./package.json"
|
|
57
|
+
},
|
|
58
|
+
"files": [
|
|
59
|
+
"assets/icon.png",
|
|
60
|
+
"src/client/assets/qoder.svg",
|
|
61
|
+
"lib/**/*.js",
|
|
62
|
+
"lib/**/*.d.ts",
|
|
63
|
+
"cordis.patch.yml",
|
|
64
|
+
"locale/*.json",
|
|
65
|
+
"LICENSE",
|
|
66
|
+
"README.md",
|
|
67
|
+
"README.en.md",
|
|
68
|
+
"UPSTREAM.md",
|
|
69
|
+
"docs/wiki"
|
|
70
|
+
],
|
|
71
|
+
"dsh": {
|
|
72
|
+
"bundle": {
|
|
73
|
+
"patch": "./cordis.patch.yml"
|
|
74
|
+
},
|
|
75
|
+
"client": {
|
|
76
|
+
"inject": [
|
|
77
|
+
"@deepseek-ai/dsh-api-remotes",
|
|
78
|
+
"@deepseek-ai/dsh-client-locale",
|
|
79
|
+
"@deepseek-ai/dsh-client-ui-settings"
|
|
80
|
+
],
|
|
81
|
+
"platform": "web"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"license": "MIT",
|
|
85
|
+
"peerDependencies": {
|
|
86
|
+
"@deepseek-ai/cordis": ">=4.0.4",
|
|
87
|
+
"@deepseek-ai/dsh-api-remotes": ">=0.2.0-rc.2",
|
|
88
|
+
"@deepseek-ai/dsh-attachment": ">=0.2.3-alpha.3",
|
|
89
|
+
"@deepseek-ai/dsh-client-connection": ">=0.2.0-rc.2",
|
|
90
|
+
"@deepseek-ai/dsh-client-locale": ">=0.2.0-rc.2",
|
|
91
|
+
"@deepseek-ai/dsh-client-ui-primitives": ">=0.2.0-rc.2",
|
|
92
|
+
"@deepseek-ai/dsh-client-ui-settings": ">=0.2.0-rc.2",
|
|
93
|
+
"@deepseek-ai/dsh-client-ui-slots": ">=0.2.0-rc.2",
|
|
94
|
+
"@deepseek-ai/dsh-credentials": ">=0.2.0-rc.2",
|
|
95
|
+
"@deepseek-ai/dsh-invariants": ">=0.2.0-rc.2",
|
|
96
|
+
"@deepseek-ai/dsh-llm": ">=0.2.0-rc.2",
|
|
97
|
+
"@deepseek-ai/dsh-settings": ">=0.2.0-rc.2",
|
|
98
|
+
"@deepseek-ai/dsh-tools": ">=0.2.0-rc.2",
|
|
99
|
+
"@deepseek-ai/dsh-web": ">=0.2.0-rc.2",
|
|
100
|
+
"@deepseek-ai/schemastery": ">=3.18.4",
|
|
101
|
+
"react": "^18.2.0 || ^19.0.0"
|
|
102
|
+
},
|
|
103
|
+
"devDependencies": {
|
|
104
|
+
"@deepseek-ai/cordis": "4.0.4",
|
|
105
|
+
"@deepseek-ai/cordis-plugin-loader": "1.0.5",
|
|
106
|
+
"@deepseek-ai/dsh-agent": "0.2.0-rc.2",
|
|
107
|
+
"@deepseek-ai/dsh-agent-default-model": "0.2.0-rc.2",
|
|
108
|
+
"@deepseek-ai/dsh-api-remotes": "0.2.0-rc.2",
|
|
109
|
+
"@deepseek-ai/dsh-api-session-controller": "0.2.0-rc.2",
|
|
110
|
+
"@deepseek-ai/dsh-api-settings-controller": "0.2.0-rc.2",
|
|
111
|
+
"@deepseek-ai/dsh-app-boot": "0.2.0-rc.2",
|
|
112
|
+
"@deepseek-ai/dsh-attachment": "0.2.3-alpha.3",
|
|
113
|
+
"@deepseek-ai/dsh-client-connection": "0.2.0-rc.2",
|
|
114
|
+
"@deepseek-ai/dsh-client-locale": "0.2.0-rc.2",
|
|
115
|
+
"@deepseek-ai/dsh-client-ui-conversation": "0.2.0-rc.2",
|
|
116
|
+
"@deepseek-ai/dsh-client-ui-model-selection": "0.2.0-rc.2",
|
|
117
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.2.0-rc.2",
|
|
118
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.0-rc.2",
|
|
119
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.2.0-rc.2",
|
|
120
|
+
"@deepseek-ai/dsh-client-ui-settings-models": "0.2.0-rc.2",
|
|
121
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.0-rc.2",
|
|
122
|
+
"@deepseek-ai/dsh-credentials": "0.2.0-rc.2",
|
|
123
|
+
"@deepseek-ai/dsh-fs": "0.2.0-rc.2",
|
|
124
|
+
"@deepseek-ai/dsh-invariants": "0.2.0-rc.2",
|
|
125
|
+
"@deepseek-ai/dsh-llm": "0.2.0-rc.2",
|
|
126
|
+
"@deepseek-ai/dsh-session": "0.2.0-rc.2",
|
|
127
|
+
"@deepseek-ai/dsh-settings": "0.2.0-rc.2",
|
|
128
|
+
"@deepseek-ai/dsh-tools": "0.2.0-rc.2",
|
|
129
|
+
"@deepseek-ai/dsh-web": "0.2.0-rc.2",
|
|
130
|
+
"@deepseek-ai/schemastery": "3.18.4",
|
|
131
|
+
"@types/node": "24.3.0",
|
|
132
|
+
"@types/react": "18.3.1",
|
|
133
|
+
"lightningcss": "^1.33.0",
|
|
134
|
+
"react": "18.3.1",
|
|
135
|
+
"tsdown": "0.22.2",
|
|
136
|
+
"typescript": "5.9.2"
|
|
137
|
+
}
|
|
138
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" ?>
|
|
2
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
3
|
+
<svg width="304pt" height="304pt" viewBox="0 0 304 304" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
|
4
|
+
<defs>
|
|
5
|
+
<!-- Reduce each edge by 0.13px at the navigation's 16px display size. -->
|
|
6
|
+
<filter id="qoder-nav-weight" x="0" y="0" width="304" height="304" filterUnits="userSpaceOnUse">
|
|
7
|
+
<feMorphology in="SourceGraphic" operator="erode" radius="2.5" />
|
|
8
|
+
</filter>
|
|
9
|
+
</defs>
|
|
10
|
+
<g filter="url(#qoder-nav-weight)">
|
|
11
|
+
<path fill="#0f0d0c" opacity="1.00" d=" M 191.00 129.00 L 190.22 128.71 L 190.00 101.00 C 190.00 99.14 189.06 93.72 191.00 93.00 C 198.51 89.58 206.37 86.77 214.61 85.73 C 227.25 83.09 240.44 86.25 250.42 94.49 C 260.39 102.74 266.18 115.04 265.97 128.01 L 266.00 179.00 L 266.78 179.29 L 266.78 260.71 L 266.00 261.00 C 265.84 265.35 261.11 267.15 257.41 265.77 L 233.62 255.16 L 228.13 254.92 L 202.82 266.71 L 186.09 270.92 C 172.95 273.84 159.24 270.32 149.04 261.58 C 138.84 252.84 133.44 239.79 134.31 226.41 L 148.01 215.98 L 158.59 205.60 L 168.83 192.82 L 177.90 177.92 L 185.11 160.95 L 189.04 145.90 L 191.00 129.00 Z M 164.00 111.00 C 165.57 111.58 165.57 126.42 164.00 127.00 C 162.89 151.76 152.07 175.06 134.00 192.00 C 132.43 191.42 132.43 175.58 134.00 175.00 C 135.72 150.69 146.34 127.83 164.00 111.00 Z M 34.00 171.00 L 33.22 170.71 L 33.00 134.00 C 33.00 132.02 32.31 124.63 34.00 124.00 C 34.18 113.18 36.33 102.46 40.61 92.50 L 46.84 79.83 L 54.47 68.50 L 63.46 58.46 L 73.08 50.05 L 84.00 43.00 L 95.84 37.76 C 109.61 31.29 125.26 31.06 139.57 35.62 L 192.90 63.26 L 178.56 68.44 L 164.95 75.88 L 153.81 83.81 L 139.92 96.96 L 129.29 110.40 L 120.97 124.15 L 115.53 135.73 L 111.11 148.28 L 107.94 163.12 C 106.82 176.38 106.26 189.70 107.00 203.00 C 105.87 215.92 106.91 228.88 108.95 241.64 L 53.16 211.86 C 40.47 202.23 33.10 187.01 34.00 171.00 Z M 175.00 298.00 L 180.00 298.00 C 197.66 296.83 215.08 292.43 230.65 283.82 C 233.63 283.12 248.26 291.38 252.73 292.52 C 261.63 294.51 270.94 292.74 278.51 287.65 C 286.07 282.56 291.19 274.58 292.69 265.60 L 293.00 139.00 L 292.33 122.84 L 289.71 109.35 L 284.66 96.34 L 277.79 85.22 L 269.74 76.26 L 260.10 68.84 L 150.72 11.21 C 137.22 5.68 122.39 4.08 108.03 6.84 L 90.38 11.26 L 76.68 16.64 L 66.41 22.31 L 54.62 30.57 L 44.50 39.50 C 23.50 60.02 10.56 87.29 7.28 116.39 L 7.41 179.45 C 8.85 202.65 21.53 223.63 41.24 235.88 L 148.01 292.19 C 156.42 296.30 165.71 298.01 175.00 298.00 Z" />
|
|
12
|
+
<path fill="#100e0d" opacity="1.00" d=" M 266.00 261.00 L 266.78 260.71 L 266.78 179.29 L 266.00 179.00 L 266.00 261.00 Z" />
|
|
13
|
+
<path fill="#100d0c" opacity="1.00" d=" M 34.00 171.00 L 34.00 124.00 C 32.31 124.63 33.00 132.02 33.00 134.00 L 33.22 170.71 L 34.00 171.00 Z" />
|
|
14
|
+
<path fill="#0f0d0d" opacity="1.00" d=" M 191.00 129.00 L 191.00 93.00 C 189.06 93.72 190.00 99.14 190.00 101.00 L 190.22 128.71 L 191.00 129.00 Z" />
|
|
15
|
+
<path fill="#100d0c" opacity="1.00" d=" M 134.00 192.00 L 134.00 175.00 C 132.43 175.58 132.43 191.42 134.00 192.00 Z" />
|
|
16
|
+
<path fill="#100e0d" opacity="1.00" d=" M 164.00 127.00 C 165.57 126.42 165.57 111.58 164.00 111.00 L 164.00 127.00 Z" />
|
|
17
|
+
<path fill="#100e0c" opacity="1.00" d=" M 180.00 298.00 L 175.00 298.00 C 176.14 298.89 178.86 298.89 180.00 298.00 Z" />
|
|
18
|
+
</g>
|
|
19
|
+
</svg>
|