@eddyskywalker/dsh-chatgpt-subscription 0.8.1 → 0.8.2
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 +39 -0
- package/README.md +65 -0
- package/lib/client.js +1510 -303
- package/lib/client.js.map +1 -1
- package/lib/index.js +4723 -1640
- package/lib/types/client/ProviderHubSection.d.ts.map +1 -1
- package/lib/types/client/antigravity/locales.d.ts +2 -2
- package/lib/types/client/command-code/locales.d.ts +2 -2
- package/lib/types/client/index.d.ts +1 -0
- package/lib/types/client/index.d.ts.map +1 -1
- package/lib/types/client/kimi-code/locales.d.ts +2 -2
- package/lib/types/client/locales.d.ts +1 -1
- package/lib/types/client/workbuddy/WorkBuddySection.d.ts.map +1 -1
- package/lib/types/client/workbuddy/locales.d.ts +60 -0
- package/lib/types/client/workbuddy/locales.d.ts.map +1 -1
- package/lib/types/client/zhipu/ZhipuComposerQuota.d.ts +26 -0
- package/lib/types/client/zhipu/ZhipuComposerQuota.d.ts.map +1 -0
- package/lib/types/client/zhipu/ZhipuSection.d.ts +11 -0
- package/lib/types/client/zhipu/ZhipuSection.d.ts.map +1 -0
- package/lib/types/client/zhipu/locales.d.ts +275 -0
- package/lib/types/client/zhipu/locales.d.ts.map +1 -0
- package/lib/types/client/zhipu/styles.d.ts +12 -0
- package/lib/types/client/zhipu/styles.d.ts.map +1 -0
- package/lib/types/host/workbuddy/checkin.d.ts +134 -0
- package/lib/types/host/workbuddy/checkin.d.ts.map +1 -0
- package/lib/types/host/workbuddy/routes.d.ts +3 -0
- package/lib/types/host/workbuddy/routes.d.ts.map +1 -1
- package/lib/types/host/workbuddy/token-store.d.ts +24 -1
- package/lib/types/host/workbuddy/token-store.d.ts.map +1 -1
- package/lib/types/host/zhipu/account-pool.d.ts +43 -0
- package/lib/types/host/zhipu/account-pool.d.ts.map +1 -0
- package/lib/types/host/zhipu/adapter.d.ts +93 -0
- package/lib/types/host/zhipu/adapter.d.ts.map +1 -0
- package/lib/types/host/zhipu/client.d.ts +153 -0
- package/lib/types/host/zhipu/client.d.ts.map +1 -0
- package/lib/types/host/zhipu/mapper.d.ts +111 -0
- package/lib/types/host/zhipu/mapper.d.ts.map +1 -0
- package/lib/types/host/zhipu/model-catalog.d.ts +73 -0
- package/lib/types/host/zhipu/model-catalog.d.ts.map +1 -0
- package/lib/types/host/zhipu/routes.d.ts +33 -0
- package/lib/types/host/zhipu/routes.d.ts.map +1 -0
- package/lib/types/host/zhipu/token-store.d.ts +112 -0
- package/lib/types/host/zhipu/token-store.d.ts.map +1 -0
- package/lib/types/host/zhipu/types.d.ts +125 -0
- package/lib/types/host/zhipu/types.d.ts.map +1 -0
- package/lib/types/index.d.ts +8 -0
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/shared/workbuddy-contracts.d.ts +40 -0
- package/lib/types/shared/workbuddy-contracts.d.ts.map +1 -1
- package/lib/types/shared/zhipu-contracts.d.ts +156 -0
- package/lib/types/shared/zhipu-contracts.d.ts.map +1 -0
- package/package.json +31 -31
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Static facts about the Zhipu / Z.ai GLM Coding Plan.
|
|
3
|
+
*
|
|
4
|
+
* The GLM Coding Plan is a subscription (智谱 GLM Coding Plan / Z.ai GLM Coding
|
|
5
|
+
* Plan) whose coding models are served by a **separate** OpenAI-compatible
|
|
6
|
+
* surface from the pay-as-you-go open platform. The plan's chat base URL is
|
|
7
|
+
* `/api/coding/paas/v4`, and a general-API key or the general base URL
|
|
8
|
+
* (`/api/paas/v4`) fails here — the two are distinct products that bill
|
|
9
|
+
* different balances.
|
|
10
|
+
*
|
|
11
|
+
* Two deployments exist and are independent: the international one (`api.z.ai`)
|
|
12
|
+
* and the China one (`open.bigmodel.cn`). A key minted in one console is
|
|
13
|
+
* rejected by the other, so the region belongs to the credential.
|
|
14
|
+
*
|
|
15
|
+
* Everything asserted here was checked against Z.ai's published documentation
|
|
16
|
+
* and against the live hosts (see the notes on each constant).
|
|
17
|
+
*
|
|
18
|
+
* @see https://docs.z.ai/devpack/overview
|
|
19
|
+
* @see https://docs.z.ai/guides/llm/glm-5.3
|
|
20
|
+
* @see https://docs.z.ai/api-reference/llm/chat-completion
|
|
21
|
+
*/
|
|
22
|
+
import type { ZhipuRegion } from '../../shared/zhipu-contracts.ts';
|
|
23
|
+
export declare const PROVIDER_ID = "zhipu-coding-plan";
|
|
24
|
+
export declare const PROVIDER_NAME = "GLM\uFF08\u667A\u8C31 Coding Plan\uFF09";
|
|
25
|
+
/** International deployment: Z.ai. */
|
|
26
|
+
export declare const INTL_BASE_URL = "https://api.z.ai";
|
|
27
|
+
/** China deployment: 智谱开放平台 (BigModel). */
|
|
28
|
+
export declare const CN_BASE_URL = "https://open.bigmodel.cn";
|
|
29
|
+
/**
|
|
30
|
+
* Hosts that identify the deployment a key belongs to.
|
|
31
|
+
*
|
|
32
|
+
* A pasted key states no region, so it is detected from the console the user
|
|
33
|
+
* names, and an unknown value falls back to the international deployment.
|
|
34
|
+
*/
|
|
35
|
+
export declare const REGION_BASE_URLS: Record<ZhipuRegion, string>;
|
|
36
|
+
/** Chat surface of the Coding Plan, appended to a region base URL. */
|
|
37
|
+
export declare const CHAT_PATH = "/api/coding/paas/v4/chat/completions";
|
|
38
|
+
/** Model listing on the same Coding Plan surface. */
|
|
39
|
+
export declare const MODELS_PATH = "/api/coding/paas/v4/models";
|
|
40
|
+
/**
|
|
41
|
+
* Undocumented monitor endpoints the plan's own usage page reads.
|
|
42
|
+
*
|
|
43
|
+
* They are the only source of the plan's credit windows, and both deployments
|
|
44
|
+
* expose them on the same path. Measured live on both hosts: a request with no
|
|
45
|
+
* credential answers the platform's envelope (`code 1001`, "Authentication
|
|
46
|
+
* parameter not received in Header") and one with a wrong credential answers
|
|
47
|
+
* `code 401`, so the routes exist and are authenticated.
|
|
48
|
+
*
|
|
49
|
+
* The `Authorization` header carries the raw key with **no `Bearer` prefix** on
|
|
50
|
+
* these two — that is the scheme the plan's own page uses, and the documented
|
|
51
|
+
* `Bearer` form belongs to the model API instead.
|
|
52
|
+
*/
|
|
53
|
+
export declare const QUOTA_PATH = "/api/monitor/usage/quota/limit";
|
|
54
|
+
export declare const SUBSCRIPTION_PATH = "/api/biz/subscription/list";
|
|
55
|
+
/** Timeouts and cache lifetimes. */
|
|
56
|
+
export declare const DISCOVERY_TIMEOUT_MS = 20000;
|
|
57
|
+
export declare const CHAT_TIMEOUT_MS = 300000;
|
|
58
|
+
export declare const QUOTA_CACHE_TTL_MS: number;
|
|
59
|
+
export declare const CATALOG_CACHE_TTL_MS: number;
|
|
60
|
+
export declare const STREAM_IDLE_TIMEOUT_MS = 300000;
|
|
61
|
+
export declare const STREAM_IDLE_TIMEOUT_CODE = "LLM_STREAM_IDLE_TIMEOUT";
|
|
62
|
+
export declare const DEFAULT_MAX_TOKENS = 32768;
|
|
63
|
+
export declare const DEFAULT_CONTEXT_WINDOW = 128000;
|
|
64
|
+
/**
|
|
65
|
+
* Product identity for the `User-Agent`.
|
|
66
|
+
*
|
|
67
|
+
* The base URL and the header vocabulary are the provider's own public
|
|
68
|
+
* contract, so this route identifies itself honestly as this plugin rather than
|
|
69
|
+
* impersonating a client it is not.
|
|
70
|
+
*/
|
|
71
|
+
export declare const PLUGIN_USER_AGENT = "dsh-chatgpt-subscription (+https://github.com/Aa728848/dsh-chatgpt-subscription)";
|
|
72
|
+
/** Reasoning levels the Coding Plan accepts for its GLM-5.x models. */
|
|
73
|
+
export declare const CODING_EFFORTS: readonly ["low", "high", "max"];
|
|
74
|
+
/**
|
|
75
|
+
* Platform-level business codes this route classifies.
|
|
76
|
+
*
|
|
77
|
+
* Documented in the provider's own error table; the HTTP status stays generic
|
|
78
|
+
* while the body names the real condition, so the body is what the adapter
|
|
79
|
+
* reads. Several entries share a status with an unrelated condition, which is
|
|
80
|
+
* exactly why classification cannot stop at the status line.
|
|
81
|
+
*
|
|
82
|
+
* @see https://docs.z.ai/api-reference/api-code
|
|
83
|
+
*/
|
|
84
|
+
export declare const ERROR_CODE: {
|
|
85
|
+
/** 401 — the credential is absent from the header. */
|
|
86
|
+
readonly AUTH_MISSING: 1001;
|
|
87
|
+
/** 401 — token expired or wrong; signing in again is what fixes it. */
|
|
88
|
+
readonly AUTH_INVALID: 1000;
|
|
89
|
+
readonly AUTH_EXPIRED: 1003;
|
|
90
|
+
/** 429 — no balance and no usable resource package. */
|
|
91
|
+
readonly NO_BALANCE: 1113;
|
|
92
|
+
/** 400 — unknown model id. */
|
|
93
|
+
readonly UNKNOWN_MODEL: 1211;
|
|
94
|
+
/** 400 — the model does not serve this call method. */
|
|
95
|
+
readonly WRONG_METHOD: 1212;
|
|
96
|
+
/** 400 — a required parameter was missing. */
|
|
97
|
+
readonly MISSING_PARAM: 1213;
|
|
98
|
+
/** 400 — a parameter value was rejected, e.g. an unsupported reasoning level. */
|
|
99
|
+
readonly INVALID_PARAM: 1214;
|
|
100
|
+
/** 403 — the account's plan does not grant this API. */
|
|
101
|
+
readonly NO_PERMISSION: 1220;
|
|
102
|
+
/** 400 — prompt exceeds the model's window. */
|
|
103
|
+
readonly PROMPT_TOO_LONG: 1261;
|
|
104
|
+
/** 400 — the provider's own content filter refused the input. */
|
|
105
|
+
readonly CONTENT_FILTERED: 1301;
|
|
106
|
+
/** 429 — request-rate limit. */
|
|
107
|
+
readonly RATE_LIMITED: 1302;
|
|
108
|
+
/** 429 — transient service overload. */
|
|
109
|
+
readonly OVERLOADED: 1305;
|
|
110
|
+
/** 429 — a named usage window is spent; the body carries the reset instant. */
|
|
111
|
+
readonly USAGE_LIMIT: 1308;
|
|
112
|
+
/** 429 — the Coding Plan package has lapsed. */
|
|
113
|
+
readonly PLAN_EXPIRED: 1309;
|
|
114
|
+
/** 429 — weekly/monthly allowance spent; the body carries the reset instant. */
|
|
115
|
+
readonly PLAN_LIMIT: 1310;
|
|
116
|
+
/** 429 — the current plan does not include this model. */
|
|
117
|
+
readonly MODEL_NOT_IN_PLAN: 1311;
|
|
118
|
+
};
|
|
119
|
+
/** Whether a free-form region belongs to the China deployment. */
|
|
120
|
+
export declare function regionForBaseUrl(baseUrl: string | undefined): ZhipuRegion;
|
|
121
|
+
/** Chat base URL one region resolves to. */
|
|
122
|
+
export declare function apiBaseForRegion(region: ZhipuRegion): string;
|
|
123
|
+
/** Normalize a free-form region name onto a supported deployment. */
|
|
124
|
+
export declare function normalizeRegion(value: unknown): ZhipuRegion | undefined;
|
|
125
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/host/zhipu/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAA;AAKlE,eAAO,MAAM,WAAW,sBAAsB,CAAA;AAC9C,eAAO,MAAM,aAAa,4CAAwB,CAAA;AAElD,sCAAsC;AACtC,eAAO,MAAM,aAAa,qBAAqB,CAAA;AAC/C,2CAA2C;AAC3C,eAAO,MAAM,WAAW,6BAA6B,CAAA;AAErD;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAGxD,CAAA;AAED,sEAAsE;AACtE,eAAO,MAAM,SAAS,yCAAyC,CAAA;AAC/D,qDAAqD;AACrD,eAAO,MAAM,WAAW,+BAA+B,CAAA;AAEvD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,UAAU,mCAAmC,CAAA;AAC1D,eAAO,MAAM,iBAAiB,+BAA+B,CAAA;AAE7D,oCAAoC;AACpC,eAAO,MAAM,oBAAoB,QAAS,CAAA;AAC1C,eAAO,MAAM,eAAe,SAAU,CAAA;AACtC,eAAO,MAAM,kBAAkB,QAAgB,CAAA;AAC/C,eAAO,MAAM,oBAAoB,QAAiB,CAAA;AAClD,eAAO,MAAM,sBAAsB,SAAU,CAAA;AAC7C,eAAO,MAAM,wBAAwB,4BAA4B,CAAA;AAEjE,eAAO,MAAM,kBAAkB,QAAS,CAAA;AACxC,eAAO,MAAM,sBAAsB,SAAU,CAAA;AAE7C;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,qFAAqF,CAAA;AAEnH,uEAAuE;AACvE,eAAO,MAAM,cAAc,iCAAkC,CAAA;AAE7D;;;;;;;;;GASG;AACH,eAAO,MAAM,UAAU;IACrB,sDAAsD;;IAEtD,uEAAuE;;;IAGvE,uDAAuD;;IAEvD,8BAA8B;;IAE9B,uDAAuD;;IAEvD,8CAA8C;;IAE9C,iFAAiF;;IAEjF,wDAAwD;;IAExD,+CAA+C;;IAE/C,iEAAiE;;IAEjE,gCAAgC;;IAEhC,wCAAwC;;IAExC,+EAA+E;;IAE/E,gDAAgD;;IAEhD,gFAAgF;;IAEhF,0DAA0D;;CAElD,CAAA;AAEV,kEAAkE;AAClE,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,WAAW,CAGzE;AAED,4CAA4C;AAC5C,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,CAE5D;AAED,qEAAqE;AACrE,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,WAAW,GAAG,SAAS,CAQvE"}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -74,7 +74,15 @@ export { WorkBuddyAdapter, classifyFailure as classifyWorkBuddyFailure } from '.
|
|
|
74
74
|
export { FileCredentialStore as WorkBuddyCredentialStore, FileModelSettingsStore as WorkBuddyModelSettingsStore, codeBuddyAuthDir, modelSettingsPath as workBuddyModelSettingsPath, parseCredentialFile as parseWorkBuddyCredential, registerWorkBuddyPreferenceStore, scanCredentials as scanWorkBuddyCredentials, } from './host/workbuddy/token-store.ts';
|
|
75
75
|
export { fetchAccountQuota as fetchWorkBuddyQuota, clearCachedQuota as clearWorkBuddyQuota, getCachedQuota as getWorkBuddyQuota, clearCachedCatalog as clearWorkBuddyCatalog, loadConfigCatalog as loadWorkBuddyModels, parseConfigModels as parseWorkBuddyConfigModels, refreshCredentials as refreshWorkBuddyCredentials, parseBilling as parseWorkBuddyBilling, } from './host/workbuddy/client.ts';
|
|
76
76
|
export { getWorkBuddyWebStatus, registerWorkBuddyRoutes } from './host/workbuddy/routes.ts';
|
|
77
|
+
export { WorkBuddyCheckinService } from './host/workbuddy/checkin.ts';
|
|
77
78
|
export { FALLBACK_MODELS as WORKBUDDY_MODELS, WORKBUDDY_MODEL_IDS, resolveWorkBuddyModel, modelsForRegion as workBuddyModelsForRegion, } from './host/workbuddy/model-catalog.ts';
|
|
79
|
+
export { ZhipuAdapter, classifyFailure as classifyZhipuFailure, resolveDefaultReasoningEffort as resolveZhipuDefaultEffort } from './host/zhipu/adapter.ts';
|
|
80
|
+
export { ZhipuAccountPool, zhipuPoolPath, parseZhipuPoolData, type ZhipuPoolAccount, } from './host/zhipu/account-pool.ts';
|
|
81
|
+
export { FileCredentialStore as ZhipuCredentialStore, FileModelSettingsStore as ZhipuModelSettingsStore, credentialPath as zhipuCredentialPath, modelSettingsPath as zhipuModelSettingsPath, parseZhipuCredentials, registerZhipuPreferenceStore, zhipuAccountKey, zhipuKeyHint, type ZhipuCredentials, type ZhipuModelSettings, type ZhipuPreferenceStore, } from './host/zhipu/token-store.ts';
|
|
82
|
+
export { accountFromCredentials as zhipuAccountFromCredentials, clearCachedCatalog as clearZhipuCatalog, clearCachedQuota as clearZhipuQuota, fetchAccountQuota as fetchZhipuQuota, getCachedQuota as getZhipuQuota, loadCatalog as loadZhipuCatalog, parseCatalogModels as parseZhipuCatalogModels, parsePlan as parseZhipuPlan, parseQuotaLimits as parseZhipuQuotaLimits, quotaMeters as zhipuQuotaMeters, quotaWindows as zhipuQuotaWindows, verifyApiKey as verifyZhipuApiKey, windowLabel as zhipuWindowLabel, windowMinutesOf as zhipuWindowMinutes, } from './host/zhipu/client.ts';
|
|
83
|
+
export { getZhipuWebStatus, registerZhipuRoutes, resolveEnabledModelIds as resolveZhipuEnabledModelIds, buildModelOptions as buildZhipuModelOptions, } from './host/zhipu/routes.ts';
|
|
84
|
+
export { FALLBACK_MODELS as ZHIPU_MODELS, ZHIPU_MODELS as ZHIPU_MODEL_TABLE, DEFAULT_VISIBLE_MODEL_IDS as ZHIPU_DEFAULT_VISIBLE_MODELS, defaultContextWindowFor as zhipuDefaultContextWindow, maxOutputTokensFor as zhipuMaxOutputTokens, modelsForRegion as zhipuModelsForRegion, resolveZhipuModel, zhipuModelSupportsImage, zhipuReasoningEfforts, type ZhipuModelEntry, } from './host/zhipu/model-catalog.ts';
|
|
85
|
+
export { CHAT_PATH as ZHIPU_CHAT_PATH, MODELS_PATH as ZHIPU_MODELS_PATH, PROVIDER_ID as ZHIPU_PROVIDER_ID, PROVIDER_NAME as ZHIPU_PROVIDER_NAME, QUOTA_PATH as ZHIPU_QUOTA_PATH, REGION_BASE_URLS as ZHIPU_REGION_BASE_URLS, SUBSCRIPTION_PATH as ZHIPU_SUBSCRIPTION_PATH, apiBaseForRegion as zhipuApiBaseForRegion, normalizeRegion as normalizeZhipuRegion, regionForBaseUrl as zhipuRegionForBaseUrl, } from './host/zhipu/types.ts';
|
|
78
86
|
export { KimiCodeAccountPool, kimiCodePoolPath, parseKimiCodePoolData, type KimiCodePoolAccount, } from './host/kimi-code/account-pool.ts';
|
|
79
87
|
export { KIMI_CODE_MODELS, kimiCodeModelDef, } from './host/kimi-code/model-catalog.ts';
|
|
80
88
|
export { FileCredentialStore, FileModelSettingsStore, credentialPath, modelSettingsPath, } from './host/antigravity/token-store.ts';
|
package/lib/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,CAAC,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot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5B,WAAW,IAAI,iBAAiB,EAChC,WAAW,IAAI,iBAAiB,EAChC,aAAa,IAAI,mBAAmB,EACpC,UAAU,IAAI,gBAAgB,EAC9B,gBAAgB,IAAI,sBAAsB,EAC1C,iBAAiB,IAAI,uBAAuB,EAC5C,gBAAgB,IAAI,qBAAqB,EACzC,eAAe,IAAI,oBAAoB,EACvC,gBAAgB,IAAI,qBAAqB,GAC1C,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,qBAAqB,EACrB,KAAK,mBAAmB,GACzB,MAAM,kCAAkC,CAAA;AACzC,OAAO,EACL,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EACL,mBAAmB,EACnB,sBAAsB,EACtB,cAAc,EACd,iBAAiB,GAClB,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAA;AACrE,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAA;AAClG,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA"}
|
|
@@ -72,6 +72,42 @@ export interface WorkBuddyModelOption {
|
|
|
72
72
|
/** One-line description shown beside the model in the settings card. */
|
|
73
73
|
description?: string;
|
|
74
74
|
}
|
|
75
|
+
/**
|
|
76
|
+
* Daily check-in preference for the CN-region billing activity.
|
|
77
|
+
*
|
|
78
|
+
* The activity is CN-only: the international deployment answers no check-in
|
|
79
|
+
* surface, so the scheduler skips those accounts outright. There is no window
|
|
80
|
+
* to configure: the first tick after the host starts is the daily run.
|
|
81
|
+
*/
|
|
82
|
+
export interface WorkBuddyCheckinSettings {
|
|
83
|
+
/** Whether the in-process scheduler signs eligible accounts in. */
|
|
84
|
+
enabled: boolean;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Aggregate check-in state the settings card renders.
|
|
88
|
+
*
|
|
89
|
+
* Deliberately account-less: the card shows one line ("checked in x/y today"),
|
|
90
|
+
* not a per-account breakdown, so no account identity crosses here either.
|
|
91
|
+
*/
|
|
92
|
+
export interface WorkBuddyCheckinSummary {
|
|
93
|
+
enabled: boolean;
|
|
94
|
+
/** CN-region accounts eligible for the check-in activity. */
|
|
95
|
+
totalAccounts: number;
|
|
96
|
+
/** Accounts confirmed signed in today (already signed, or signed by a run). */
|
|
97
|
+
doneToday: number;
|
|
98
|
+
/**
|
|
99
|
+
* Accounts whose activity reported no entitlement today.
|
|
100
|
+
*
|
|
101
|
+
* Kept apart from {@link doneToday} because "the activity is inactive" is not
|
|
102
|
+
* "you are checked in": counting them together let the card claim a sign-in
|
|
103
|
+
* that never happened.
|
|
104
|
+
*/
|
|
105
|
+
skippedToday: number;
|
|
106
|
+
/** Accounts that exhausted today's retry cap without signing in. */
|
|
107
|
+
failedToday: number;
|
|
108
|
+
/** Unix milliseconds the scheduler last ran, automatic or manual. */
|
|
109
|
+
lastRunAt: number | null;
|
|
110
|
+
}
|
|
75
111
|
/** One credit allowance reported by the billing service. */
|
|
76
112
|
export interface WorkBuddyMeter {
|
|
77
113
|
id: string;
|
|
@@ -188,6 +224,8 @@ export interface WorkBuddyWebStatus extends Partial<AccountPoolStatusDto> {
|
|
|
188
224
|
conflict: string | null;
|
|
189
225
|
/** Pool summaries the shared account card renders; empty without a pool. */
|
|
190
226
|
accounts?: WorkBuddyAccountSummaryDto[];
|
|
227
|
+
/** Aggregate daily check-in state; absent when the host predates check-in. */
|
|
228
|
+
checkin?: WorkBuddyCheckinSummary | null;
|
|
191
229
|
}
|
|
192
230
|
/** Patch accepted by the models/settings route. */
|
|
193
231
|
export interface WorkBuddySettingsUpdateDto {
|
|
@@ -197,6 +235,8 @@ export interface WorkBuddySettingsUpdateDto {
|
|
|
197
235
|
contextWindowOverrides?: Record<string, number | null>;
|
|
198
236
|
defaultReasoningEffort?: WorkBuddyReasoningEffort | null;
|
|
199
237
|
selectedAccountId?: string | null;
|
|
238
|
+
/** Partial check-in update; omitted fields keep their stored value. */
|
|
239
|
+
checkin?: Partial<WorkBuddyCheckinSettings>;
|
|
200
240
|
}
|
|
201
241
|
/** Result of a connection test against the upstream chat endpoint. */
|
|
202
242
|
export interface WorkBuddyConnectionDto {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workbuddy-contracts.d.ts","sourceRoot":"","sources":["../../../src/shared/workbuddy-contracts.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AAE9F;;;;;;;GAOG;AACH,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,MAAM,CAAA;AAE3C;;;;;;GAMG;AACH,MAAM,MAAM,wBAAwB,GAAG,SAAS,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAA;AAE9F,kFAAkF;AAClF,eAAO,MAAM,2BAA2B,EAAE,SAAS,wBAAwB,EACrB,CAAA;AAEtD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,0BAA0B,EAAE,SAAS,wBAAwB,EAClD,CAAA;AAExB;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,SAAS,MAAM,EAAE,GACxB,wBAAwB,GAAG,IAAI,CAoBjC;AAED,uDAAuD;AACvD,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,+EAA+E;IAC/E,OAAO,EAAE,OAAO,CAAA;IAChB,2EAA2E;IAC3E,oBAAoB,EAAE,MAAM,CAAA;IAC5B,kFAAkF;IAClF,aAAa,EAAE,MAAM,CAAA;IACrB,yEAAyE;IACzE,gBAAgB,EAAE,MAAM,CAAA;IACxB,4EAA4E;IAC5E,gBAAgB,CAAC,EAAE,MAAM,E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B,iCAAiC;IACjC,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAA;CAClB"}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wire contracts between the Zhipu (GLM Coding Plan) host routes and the
|
|
3
|
+
* browser settings card. Everything here is public: no credential ever crosses
|
|
4
|
+
* this boundary, only the non-secret facts the card renders.
|
|
5
|
+
*/
|
|
6
|
+
import type { AccountPoolStatusDto, PoolAccountSummaryDto } from './account-pool-contracts.ts';
|
|
7
|
+
/**
|
|
8
|
+
* Which deployment an account belongs to.
|
|
9
|
+
*
|
|
10
|
+
* The two deployments are separate hosts with separate console-issued keys, and
|
|
11
|
+
* a key minted on one is rejected by the other. The region is therefore a
|
|
12
|
+
* property of the credential, not of the request.
|
|
13
|
+
*/
|
|
14
|
+
export type ZhipuRegion = 'cn' | 'intl';
|
|
15
|
+
/**
|
|
16
|
+
* Reasoning levels this route can put on the wire.
|
|
17
|
+
*
|
|
18
|
+
* Deliberately the narrow set the Coding Plan accepts. Upstream documents
|
|
19
|
+
* exactly these three for the GLM-5.x family and answers an error for anything
|
|
20
|
+
* else, so the card offers only them and any other value a caller names is
|
|
21
|
+
* converged onto the nearest rung before the request is built.
|
|
22
|
+
*/
|
|
23
|
+
export type ZhipuReasoningEffort = 'low' | 'high' | 'max';
|
|
24
|
+
/** Every level this route can name, in escalating order (the card's sort key). */
|
|
25
|
+
export declare const ZHIPU_REASONING_EFFORTS: readonly ZhipuReasoningEffort[];
|
|
26
|
+
export declare function convergeZhipuEffort(effort: string, ladder: readonly string[]): ZhipuReasoningEffort | null;
|
|
27
|
+
/** One model offered by the GLM Coding Plan. */
|
|
28
|
+
export interface ZhipuModelOption {
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
/** Enabled models are the ones DSH offers in the conversation model picker. */
|
|
32
|
+
enabled: boolean;
|
|
33
|
+
/** Context window this route assumes when the caller saves no override. */
|
|
34
|
+
defaultContextWindow: number;
|
|
35
|
+
/** Effective context window: the override when one is saved, else the default. */
|
|
36
|
+
contextWindow: number;
|
|
37
|
+
/** Maximum output tokens this route requests when a caller omits one. */
|
|
38
|
+
defaultMaxTokens: number;
|
|
39
|
+
/** Reasoning levels this model exposes; empty for a model that takes none. */
|
|
40
|
+
reasoningEfforts: string[];
|
|
41
|
+
/** Whether the model accepts image input on this route. */
|
|
42
|
+
supportsImage: boolean;
|
|
43
|
+
/** Deployments that serve this model; the account's own region must be listed. */
|
|
44
|
+
regions: ZhipuRegion[];
|
|
45
|
+
/** One-line description shown beside the model in the settings card. */
|
|
46
|
+
description?: string;
|
|
47
|
+
}
|
|
48
|
+
/** One allowance window the monitor service reports. */
|
|
49
|
+
export interface ZhipuQuotaWindow {
|
|
50
|
+
id: string;
|
|
51
|
+
label: string;
|
|
52
|
+
/** Used fraction in [0, 1] when the service reports a bounded allowance. */
|
|
53
|
+
usedFraction: number | null;
|
|
54
|
+
/** Remaining fraction in [0, 1], when the service reports one. */
|
|
55
|
+
remainingFraction: number | null;
|
|
56
|
+
/** Consumed amount as the service reports it, e.g. `12,500,000`. */
|
|
57
|
+
used: string | null;
|
|
58
|
+
/** Window allowance as the service reports it. */
|
|
59
|
+
limit: string | null;
|
|
60
|
+
/** Unix milliseconds the window resets, when reported. */
|
|
61
|
+
resetsAt: number | null;
|
|
62
|
+
/** Length of the window in minutes, when the service names one. */
|
|
63
|
+
windowMinutes: number | null;
|
|
64
|
+
description: string | null;
|
|
65
|
+
}
|
|
66
|
+
/** One credit / token / tool-call meter the monitor service reports. */
|
|
67
|
+
export interface ZhipuMeter {
|
|
68
|
+
id: string;
|
|
69
|
+
label: string;
|
|
70
|
+
usedFraction: number | null;
|
|
71
|
+
remainingFraction: number | null;
|
|
72
|
+
used: string | null;
|
|
73
|
+
limit: string | null;
|
|
74
|
+
resetsAt: number | null;
|
|
75
|
+
description: string | null;
|
|
76
|
+
}
|
|
77
|
+
/** Account identity as the settings card renders it. Never carries the key. */
|
|
78
|
+
export interface ZhipuAccount {
|
|
79
|
+
/** Stable, non-secret selection key derived from region + key digest. */
|
|
80
|
+
id: string;
|
|
81
|
+
/** Last four characters of the key, so a user can tell two keys apart. */
|
|
82
|
+
keyHint: string;
|
|
83
|
+
email: string | null;
|
|
84
|
+
planLabel: string | null;
|
|
85
|
+
region: ZhipuRegion;
|
|
86
|
+
/** Chat base URL this account's region resolves to. */
|
|
87
|
+
apiBase: string;
|
|
88
|
+
/** Unix milliseconds the key was saved. */
|
|
89
|
+
authenticatedAt: number | null;
|
|
90
|
+
}
|
|
91
|
+
/** One Zhipu account as the shared pool card renders it. Never carries a key. */
|
|
92
|
+
export interface ZhipuAccountSummaryDto extends PoolAccountSummaryDto {
|
|
93
|
+
region: ZhipuRegion;
|
|
94
|
+
/** Last four characters of the key. */
|
|
95
|
+
keyHint?: string;
|
|
96
|
+
/** Chat base URL the account's region resolves to. */
|
|
97
|
+
apiBase?: string;
|
|
98
|
+
}
|
|
99
|
+
/** One point-in-time quota snapshot for the selected account. */
|
|
100
|
+
export interface ZhipuAccountQuota {
|
|
101
|
+
account: ZhipuAccount;
|
|
102
|
+
/** Plan name the subscription service reports, e.g. `GLM Coding Pro`. */
|
|
103
|
+
planName: string | null;
|
|
104
|
+
/** Machine plan level, e.g. `pro` / `lite` / `max`. */
|
|
105
|
+
planLevel: string | null;
|
|
106
|
+
/** Unix milliseconds the plan renews, when reported. */
|
|
107
|
+
renewsAt: number | null;
|
|
108
|
+
meters: ZhipuMeter[];
|
|
109
|
+
windows: ZhipuQuotaWindow[];
|
|
110
|
+
/** When this snapshot was read. */
|
|
111
|
+
fetchedAt: number;
|
|
112
|
+
/** Monitor routes that answered, for diagnostics in the settings card. */
|
|
113
|
+
sources: string[];
|
|
114
|
+
}
|
|
115
|
+
/** Everything the settings card and the composer badge render. */
|
|
116
|
+
export interface ZhipuWebStatus extends Partial<AccountPoolStatusDto> {
|
|
117
|
+
enabled?: boolean;
|
|
118
|
+
authenticated: boolean;
|
|
119
|
+
hasCredentials: boolean;
|
|
120
|
+
/** Storage description for the plugin's encrypted credential store. */
|
|
121
|
+
storagePath: string;
|
|
122
|
+
account: ZhipuAccount | null;
|
|
123
|
+
quota: ZhipuAccountQuota | null;
|
|
124
|
+
lastFetchedAt: number | null;
|
|
125
|
+
models: ZhipuModelOption[];
|
|
126
|
+
contextWindowOverrides: Record<string, number>;
|
|
127
|
+
defaultReasoningEffort: ZhipuReasoningEffort | null;
|
|
128
|
+
/** Account selected for model discovery and all requests; null means automatic. */
|
|
129
|
+
selectedAccountId: string | null;
|
|
130
|
+
/** Route the plugin currently serves; false when another plugin owns it. */
|
|
131
|
+
serving: boolean;
|
|
132
|
+
/** Diagnostic when the route is owned by a different adapter family. */
|
|
133
|
+
conflict: string | null;
|
|
134
|
+
/** Diagnostic when the monitor endpoints refused the last read. */
|
|
135
|
+
quotaError: string | null;
|
|
136
|
+
}
|
|
137
|
+
/** Patch accepted by the models/settings route. */
|
|
138
|
+
export interface ZhipuSettingsUpdateDto {
|
|
139
|
+
enabled?: boolean;
|
|
140
|
+
enabledModelIds?: string[];
|
|
141
|
+
/** A number sets an override for that model; `null` restores the catalog default. */
|
|
142
|
+
contextWindowOverrides?: Record<string, number | null>;
|
|
143
|
+
defaultReasoningEffort?: ZhipuReasoningEffort | null;
|
|
144
|
+
selectedAccountId?: string | null;
|
|
145
|
+
}
|
|
146
|
+
/** Result of a connection test against the upstream chat endpoint. */
|
|
147
|
+
export interface ZhipuConnectionDto {
|
|
148
|
+
connected: boolean;
|
|
149
|
+
account: ZhipuAccount | null;
|
|
150
|
+
/** Round-trip time of the probe request. */
|
|
151
|
+
latencyMs: number;
|
|
152
|
+
/** Model the probe asked for. */
|
|
153
|
+
model: string;
|
|
154
|
+
checkedAt: number;
|
|
155
|
+
}
|
|
156
|
+
//# sourceMappingURL=zhipu-contracts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zhipu-contracts.d.ts","sourceRoot":"","sources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EAAE,MAAM,GAAG,IAAI,CAAC,CAAA;IACtD,sBAAsB,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAA;IACpD,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAClC;AAED,sEAAsE;AACtE,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,OAAO,CAAA;IAClB,OAAO,EAAE,YAAY,GAAG,IAAI,CAAA;IAC5B,4CAA4C;IAC5C,SAAS,EAAE,MAAM,CAAA;IACjB,iCAAiC;IACjC,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAA;CAClB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eddyskywalker/dsh-chatgpt-subscription",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"description": "DSH provider plugin for Codex access through a ChatGPT subscription.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "eddyskywalker",
|
|
@@ -61,42 +61,42 @@
|
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"@deepseek-ai/cordis": "^4.0.2",
|
|
63
63
|
"@deepseek-ai/cordis-plugin-loader": "^1.0.3",
|
|
64
|
-
"@deepseek-ai/dsh-attachment": "^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1 || ^0.1.6-alpha.1 || ^0.1.7-alpha.1",
|
|
65
|
-
"@deepseek-ai/dsh-client-connection": "^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1 || ^0.1.6-alpha.1 || ^0.1.7-alpha.1",
|
|
66
|
-
"@deepseek-ai/dsh-client-locale": "^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1 || ^0.1.6-alpha.1 || ^0.1.7-alpha.1",
|
|
67
|
-
"@deepseek-ai/dsh-client-ui-conversation": "^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1 || ^0.1.6-alpha.1 || ^0.1.7-alpha.1",
|
|
68
|
-
"@deepseek-ai/dsh-client-ui-model-selection": "^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1 || ^0.1.6-alpha.1 || ^0.1.7-alpha.1",
|
|
69
|
-
"@deepseek-ai/dsh-client-ui-renderer": "^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1 || ^0.1.6-alpha.1 || ^0.1.7-alpha.1",
|
|
70
|
-
"@deepseek-ai/dsh-client-ui-settings": "^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1 || ^0.1.6-alpha.1 || ^0.1.7-alpha.1",
|
|
71
|
-
"@deepseek-ai/dsh-client-ui-slots": "^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1 || ^0.1.6-alpha.1 || ^0.1.7-alpha.1",
|
|
72
|
-
"@deepseek-ai/dsh-client-ui-tool": "^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1 || ^0.1.6-alpha.1 || ^0.1.7-alpha.1",
|
|
73
|
-
"@deepseek-ai/dsh-host-webserver": "^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1 || ^0.1.6-alpha.1 || ^0.1.7-alpha.1",
|
|
74
|
-
"@deepseek-ai/dsh-llm": "^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1 || ^0.1.6-alpha.1 || ^0.1.7-alpha.1",
|
|
75
|
-
"@deepseek-ai/dsh-settings": "^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1 || ^0.1.6-alpha.1 || ^0.1.7-alpha.1",
|
|
76
|
-
"@deepseek-ai/dsh-timeout": "^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1 || ^0.1.6-alpha.1 || ^0.1.7-alpha.1",
|
|
77
|
-
"@deepseek-ai/dsh-tools": "^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1 || ^0.1.6-alpha.1 || ^0.1.7-alpha.1",
|
|
78
|
-
"@deepseek-ai/dsh-web": "^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1 || ^0.1.6-alpha.1 || ^0.1.7-alpha.1",
|
|
64
|
+
"@deepseek-ai/dsh-attachment": "^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1 || ^0.1.6-alpha.1 || ^0.1.7-alpha.1 || ^0.1.7-rc.1",
|
|
65
|
+
"@deepseek-ai/dsh-client-connection": "^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1 || ^0.1.6-alpha.1 || ^0.1.7-alpha.1 || ^0.1.7-rc.1",
|
|
66
|
+
"@deepseek-ai/dsh-client-locale": "^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1 || ^0.1.6-alpha.1 || ^0.1.7-alpha.1 || ^0.1.7-rc.1",
|
|
67
|
+
"@deepseek-ai/dsh-client-ui-conversation": "^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1 || ^0.1.6-alpha.1 || ^0.1.7-alpha.1 || ^0.1.7-rc.1",
|
|
68
|
+
"@deepseek-ai/dsh-client-ui-model-selection": "^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1 || ^0.1.6-alpha.1 || ^0.1.7-alpha.1 || ^0.1.7-rc.1",
|
|
69
|
+
"@deepseek-ai/dsh-client-ui-renderer": "^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1 || ^0.1.6-alpha.1 || ^0.1.7-alpha.1 || ^0.1.7-rc.1",
|
|
70
|
+
"@deepseek-ai/dsh-client-ui-settings": "^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1 || ^0.1.6-alpha.1 || ^0.1.7-alpha.1 || ^0.1.7-rc.1",
|
|
71
|
+
"@deepseek-ai/dsh-client-ui-slots": "^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1 || ^0.1.6-alpha.1 || ^0.1.7-alpha.1 || ^0.1.7-rc.1",
|
|
72
|
+
"@deepseek-ai/dsh-client-ui-tool": "^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1 || ^0.1.6-alpha.1 || ^0.1.7-alpha.1 || ^0.1.7-rc.1",
|
|
73
|
+
"@deepseek-ai/dsh-host-webserver": "^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1 || ^0.1.6-alpha.1 || ^0.1.7-alpha.1 || ^0.1.7-rc.1",
|
|
74
|
+
"@deepseek-ai/dsh-llm": "^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1 || ^0.1.6-alpha.1 || ^0.1.7-alpha.1 || ^0.1.7-rc.1",
|
|
75
|
+
"@deepseek-ai/dsh-settings": "^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1 || ^0.1.6-alpha.1 || ^0.1.7-alpha.1 || ^0.1.7-rc.1",
|
|
76
|
+
"@deepseek-ai/dsh-timeout": "^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1 || ^0.1.6-alpha.1 || ^0.1.7-alpha.1 || ^0.1.7-rc.1",
|
|
77
|
+
"@deepseek-ai/dsh-tools": "^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1 || ^0.1.6-alpha.1 || ^0.1.7-alpha.1 || ^0.1.7-rc.1",
|
|
78
|
+
"@deepseek-ai/dsh-web": "^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.2 || ^0.1.3 || ^0.1.4 || ^0.1.5-rc.1 || ^0.1.6-alpha.1 || ^0.1.7-alpha.1 || ^0.1.7-rc.1",
|
|
79
79
|
"@deepseek-ai/schemastery": "^3.18.2",
|
|
80
80
|
"react": "^18.2.0"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
83
|
"@deepseek-ai/cordis": "^4.0.2",
|
|
84
84
|
"@deepseek-ai/cordis-plugin-loader": "^1.0.3",
|
|
85
|
-
"@deepseek-ai/dsh-attachment": "^0.1.7-
|
|
86
|
-
"@deepseek-ai/dsh-client-connection": "^0.1.7-
|
|
87
|
-
"@deepseek-ai/dsh-client-locale": "^0.1.7-
|
|
88
|
-
"@deepseek-ai/dsh-client-ui-conversation": "^0.1.7-
|
|
89
|
-
"@deepseek-ai/dsh-client-ui-model-selection": "^0.1.7-
|
|
90
|
-
"@deepseek-ai/dsh-client-ui-renderer": "^0.1.7-
|
|
91
|
-
"@deepseek-ai/dsh-client-ui-settings": "^0.1.7-
|
|
92
|
-
"@deepseek-ai/dsh-client-ui-slots": "^0.1.7-
|
|
93
|
-
"@deepseek-ai/dsh-client-ui-tool": "^0.1.7-
|
|
94
|
-
"@deepseek-ai/dsh-host-webserver": "^0.1.7-
|
|
95
|
-
"@deepseek-ai/dsh-llm": "^0.1.7-
|
|
96
|
-
"@deepseek-ai/dsh-settings": "^0.1.7-
|
|
97
|
-
"@deepseek-ai/dsh-timeout": "^0.1.7-
|
|
98
|
-
"@deepseek-ai/dsh-tools": "^0.1.7-
|
|
99
|
-
"@deepseek-ai/dsh-web": "^0.1.7-
|
|
85
|
+
"@deepseek-ai/dsh-attachment": "^0.1.7-rc.1",
|
|
86
|
+
"@deepseek-ai/dsh-client-connection": "^0.1.7-rc.1",
|
|
87
|
+
"@deepseek-ai/dsh-client-locale": "^0.1.7-rc.1",
|
|
88
|
+
"@deepseek-ai/dsh-client-ui-conversation": "^0.1.7-rc.1",
|
|
89
|
+
"@deepseek-ai/dsh-client-ui-model-selection": "^0.1.7-rc.1",
|
|
90
|
+
"@deepseek-ai/dsh-client-ui-renderer": "^0.1.7-rc.1",
|
|
91
|
+
"@deepseek-ai/dsh-client-ui-settings": "^0.1.7-rc.1",
|
|
92
|
+
"@deepseek-ai/dsh-client-ui-slots": "^0.1.7-rc.1",
|
|
93
|
+
"@deepseek-ai/dsh-client-ui-tool": "^0.1.7-rc.1",
|
|
94
|
+
"@deepseek-ai/dsh-host-webserver": "^0.1.7-rc.1",
|
|
95
|
+
"@deepseek-ai/dsh-llm": "^0.1.7-rc.1",
|
|
96
|
+
"@deepseek-ai/dsh-settings": "^0.1.7-rc.1",
|
|
97
|
+
"@deepseek-ai/dsh-timeout": "^0.1.7-rc.1",
|
|
98
|
+
"@deepseek-ai/dsh-tools": "^0.1.7-rc.1",
|
|
99
|
+
"@deepseek-ai/dsh-web": "^0.1.7-rc.1",
|
|
100
100
|
"@deepseek-ai/schemastery": "^3.18.2",
|
|
101
101
|
"@types/node": "^22.20.0",
|
|
102
102
|
"@types/react": "~18.3.1",
|