dsh-metaontic-newapi-lite 0.0.1

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 (49) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +55 -0
  3. package/cordis.patch.yml +4 -0
  4. package/dist/client.js +2134 -0
  5. package/dist/client.js.map +7 -0
  6. package/dist/host/api-keys.d.ts +48 -0
  7. package/dist/host/api-keys.js +182 -0
  8. package/dist/host/api-keys.js.map +1 -0
  9. package/dist/host/constants.d.ts +16 -0
  10. package/dist/host/constants.js +17 -0
  11. package/dist/host/constants.js.map +1 -0
  12. package/dist/host/errors.d.ts +9 -0
  13. package/dist/host/errors.js +17 -0
  14. package/dist/host/errors.js.map +1 -0
  15. package/dist/host/handlers.d.ts +55 -0
  16. package/dist/host/handlers.js +242 -0
  17. package/dist/host/handlers.js.map +1 -0
  18. package/dist/host/http.d.ts +17 -0
  19. package/dist/host/http.js +156 -0
  20. package/dist/host/http.js.map +1 -0
  21. package/dist/host/login-store.d.ts +2 -0
  22. package/dist/host/login-store.js +141 -0
  23. package/dist/host/login-store.js.map +1 -0
  24. package/dist/host/models.d.ts +17 -0
  25. package/dist/host/models.js +80 -0
  26. package/dist/host/models.js.map +1 -0
  27. package/dist/host/payments.d.ts +14 -0
  28. package/dist/host/payments.js +92 -0
  29. package/dist/host/payments.js.map +1 -0
  30. package/dist/host/platform.d.ts +16 -0
  31. package/dist/host/platform.js +54 -0
  32. package/dist/host/platform.js.map +1 -0
  33. package/dist/host/subscription.d.ts +55 -0
  34. package/dist/host/subscription.js +129 -0
  35. package/dist/host/subscription.js.map +1 -0
  36. package/dist/host/topup.d.ts +22 -0
  37. package/dist/host/topup.js +64 -0
  38. package/dist/host/topup.js.map +1 -0
  39. package/dist/host/types.d.ts +50 -0
  40. package/dist/host/types.js +2 -0
  41. package/dist/host/types.js.map +1 -0
  42. package/dist/index.d.ts +19 -0
  43. package/dist/index.js +68 -0
  44. package/dist/index.js.map +1 -0
  45. package/icon.svg +4 -0
  46. package/llms.txt +106 -0
  47. package/locale/en.json +6 -0
  48. package/locale/zh.json +6 -0
  49. package/package.json +106 -0
package/package.json ADDED
@@ -0,0 +1,106 @@
1
+ {
2
+ "name": "dsh-metaontic-newapi-lite",
3
+ "version": "0.0.1",
4
+ "description": "MetaOntic模型中转助手:DeepSeek Harness 的 New API / OpenAI 兼容模型中转插件,支持模型广场、API Key 分组管理、订阅充值、余额与用量查询。",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "license": "MIT",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/wxsimon2022/dsh-metaontic-newapi-lite.git"
12
+ },
13
+ "homepage": "https://github.com/wxsimon2022/dsh-metaontic-newapi-lite#readme",
14
+ "bugs": {
15
+ "url": "https://github.com/wxsimon2022/dsh-metaontic-newapi-lite/issues"
16
+ },
17
+ "publishConfig": {
18
+ "access": "public",
19
+ "registry": "https://registry.npmjs.org/"
20
+ },
21
+ "keywords": [
22
+ "deepseek-harness",
23
+ "dsh",
24
+ "dsh-plugin",
25
+ "deepseek",
26
+ "metaontic-ai",
27
+ "metaontic",
28
+ "new-api",
29
+ "newapi",
30
+ "model-aggregation",
31
+ "model-gateway",
32
+ "openai-compatible",
33
+ "llm-gateway",
34
+ "model-relay",
35
+ "model-plaza",
36
+ "model-catalog",
37
+ "access-token-login",
38
+ "api-key-management",
39
+ "api-key-group",
40
+ "subscription-management",
41
+ "recharge-payment",
42
+ "account-dashboard",
43
+ "balance-query",
44
+ "usage-query",
45
+ "ai-management",
46
+ "plugin-market",
47
+ "gitee"
48
+ ],
49
+ "exports": {
50
+ ".": {
51
+ "types": "./dist/index.d.ts",
52
+ "import": "./dist/index.js"
53
+ },
54
+ "./client": "./dist/client.js",
55
+ "./locale/*.json": "./locale/*.json",
56
+ "./icon": "./icon.svg",
57
+ "./package.json": "./package.json"
58
+ },
59
+ "files": [
60
+ "dist/index.js",
61
+ "dist/index.d.ts",
62
+ "dist/index.js.map",
63
+ "dist/host/**/*.js",
64
+ "dist/host/**/*.d.ts",
65
+ "dist/host/**/*.js.map",
66
+ "dist/client.js",
67
+ "dist/client.js.map",
68
+ "cordis.patch.yml",
69
+ "locale/*.json",
70
+ "icon.svg",
71
+ "LICENSE",
72
+ "llms.txt"
73
+ ],
74
+ "engines": {
75
+ "node": ">=20"
76
+ },
77
+ "dsh": {
78
+ "bundle": {
79
+ "patch": "./cordis.patch.yml"
80
+ },
81
+ "client": {
82
+ "platform": "web",
83
+ "inject": [
84
+ "@deepseek-ai/dsh-api-remotes",
85
+ "@deepseek-ai/dsh-client-locale"
86
+ ]
87
+ }
88
+ },
89
+ "scripts": {
90
+ "build": "npm run build:host && npm run build:client",
91
+ "build:host": "tsc -p tsconfig.build.json",
92
+ "build:client": "esbuild src/client.ts --bundle --format=iife --platform=browser --target=es2022 --outfile=dist/client.js --sourcemap --log-level=warning",
93
+ "typecheck": "tsc -p tsconfig.json --noEmit",
94
+ "check": "npm run typecheck && node --check tests/query.test.mjs",
95
+ "test": "npm run build && node --test tests/*.test.mjs",
96
+ "pack:check": "npm pack --dry-run",
97
+ "pack:plugin": "node scripts/pack-plugin.mjs",
98
+ "release:gitee": "node scripts/publish-gitee.mjs",
99
+ "prepack": "npm run build"
100
+ },
101
+ "devDependencies": {
102
+ "@types/node": "^20.19.43",
103
+ "esbuild": "^0.28.2",
104
+ "typescript": "^5.9.3"
105
+ }
106
+ }