dsh-subscriptions 0.2.3 → 0.3.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/README.md +7 -19
- package/lib/auth/rpc.d.ts +2 -20
- package/lib/auth/rpc.js +3 -49
- package/lib/client/ProviderAccountManager.d.ts +1 -1
- package/lib/client/ProviderAccountManager.js +86 -110
- package/lib/client/ProviderModelEditor.d.ts +1 -1
- package/lib/client/ProviderModelEditor.js +2 -6
- package/lib/client/SubscriptionUsageBadge.d.ts +1 -1
- package/lib/client/SubscriptionUsageBadge.js +1 -13
- package/lib/client/SubscriptionsSection.js +1 -2
- package/lib/client/locales.d.ts +0 -32
- package/lib/client/locales.js +0 -32
- package/lib/client/model-filter.js +1 -1
- package/lib/client/subscription-card-styles.d.ts +1 -1
- package/lib/client/subscription-card-styles.js +1 -1
- package/lib/client.js +175 -489
- package/lib/client.js.map +1 -1
- package/lib/index.js +165 -3275
- package/lib/providers/ollama-settings.d.ts +1 -1
- package/lib/providers/ollama-settings.js +1 -1
- package/package.json +1 -7
- package/lib/client/CursorCard.d.ts +0 -9
- package/lib/client/CursorCard.js +0 -151
- package/lib/providers/cursor-adapter.d.ts +0 -50
- package/lib/providers/cursor-adapter.js +0 -304
- package/lib/providers/cursor-auth.d.ts +0 -43
- package/lib/providers/cursor-auth.js +0 -221
- package/lib/providers/cursor-model-settings.d.ts +0 -15
- package/lib/providers/cursor-model-settings.js +0 -60
- package/lib/providers/cursor-usage.d.ts +0 -9
- package/lib/providers/cursor-usage.js +0 -131
- package/vendor/cursor/LICENSE +0 -21
- package/vendor/cursor/index.d.ts +0 -18
- package/vendor/cursor/index.js +0 -3574
- package/vendor/cursor/proto.js +0 -254
package/lib/client/locales.js
CHANGED
|
@@ -148,22 +148,6 @@ export const en = {
|
|
|
148
148
|
externalUsageApiKey: 'API key',
|
|
149
149
|
externalUsageConfigure: 'No API key found at {ref}. Add one in Settings → Models.',
|
|
150
150
|
externalUsageUnavailable: 'Usage status unavailable: {message}',
|
|
151
|
-
cursorTitle: 'Cursor',
|
|
152
|
-
cursorOpenLogin: 'Open Cursor sign-in',
|
|
153
|
-
cursorWaiting: 'Waiting for Cursor sign-in…',
|
|
154
|
-
cursorConnected: 'Connected',
|
|
155
|
-
cursorManageTitle: 'Manage Cursor',
|
|
156
|
-
cursorManageSignIn: 'Sign in to see the models available to this Cursor account.',
|
|
157
|
-
cursorAccountsHint: 'Cursor uses one connected account. Choose which of its models appear in the model picker.',
|
|
158
|
-
cursorManageHint: 'Choose model visibility here. Refresh fetches the current models from Cursor; Save changes updates the model picker.',
|
|
159
|
-
cursorFilterModels: 'Filter models',
|
|
160
|
-
cursorModelsLoading: 'Loading Cursor models…',
|
|
161
|
-
cursorModelsError: 'Could not load Cursor models: {message}',
|
|
162
|
-
cursorModelsCount: '{count} models available',
|
|
163
|
-
cursorIncluded: 'Included usage',
|
|
164
|
-
cursorModels: 'Cursor Models',
|
|
165
|
-
cursorOtherModels: 'Other Models',
|
|
166
|
-
cursorIncludedRequests: 'Included requests',
|
|
167
151
|
modelDefaultsTitle: 'Default reasoning effort',
|
|
168
152
|
modelDefaultsHint: 'The model picker preselects this level when you switch to the model; models without levels always follow the provider.',
|
|
169
153
|
modelDefaultsFollowProvider: 'Follow provider',
|
|
@@ -402,22 +386,6 @@ export const zh = {
|
|
|
402
386
|
externalUsageApiKey: 'API 密钥',
|
|
403
387
|
externalUsageConfigure: '未在 {ref} 找到 API 密钥。请在「设置 → 模型」中添加。',
|
|
404
388
|
externalUsageUnavailable: '无法获取用量状态:{message}',
|
|
405
|
-
cursorTitle: 'Cursor',
|
|
406
|
-
cursorOpenLogin: '打开 Cursor 登录页面',
|
|
407
|
-
cursorWaiting: '等待 Cursor 登录…',
|
|
408
|
-
cursorConnected: '已连接',
|
|
409
|
-
cursorManageTitle: '管理 Cursor',
|
|
410
|
-
cursorManageSignIn: '登录后可查看此 Cursor 账号可用的模型。',
|
|
411
|
-
cursorAccountsHint: 'Cursor 使用一个已连接账号。可在此选择模型选择器中显示的模型。',
|
|
412
|
-
cursorManageHint: '在此选择模型是否显示。刷新可从 Cursor 获取当前模型;保存更改后更新模型选择器。',
|
|
413
|
-
cursorFilterModels: '筛选模型',
|
|
414
|
-
cursorModelsLoading: '正在加载 Cursor 模型…',
|
|
415
|
-
cursorModelsError: '无法加载 Cursor 模型:{message}',
|
|
416
|
-
cursorModelsCount: '可用模型:{count} 个',
|
|
417
|
-
cursorIncluded: '套餐内用量',
|
|
418
|
-
cursorModels: 'Cursor 模型',
|
|
419
|
-
cursorOtherModels: '其他模型',
|
|
420
|
-
cursorIncludedRequests: '套餐内请求',
|
|
421
389
|
modelDefaultsTitle: '默认推理档',
|
|
422
390
|
modelDefaultsHint: '切换到该模型时,模型选择器会预选此档位;没有推理档的模型始终跟随服务商默认。',
|
|
423
391
|
modelDefaultsFollowProvider: '跟随服务商',
|
|
@@ -21,7 +21,7 @@ export function savedModelIds(visibleModels, subagentSpeeds) {
|
|
|
21
21
|
* accounts with failed discovery need a retry, not another login prompt.
|
|
22
22
|
*/
|
|
23
23
|
export function modelEditorNotice(accounts) {
|
|
24
|
-
//
|
|
24
|
+
// Missing account evidence uses the neutral empty-catalog copy.
|
|
25
25
|
if (accounts === undefined)
|
|
26
26
|
return 'noModels';
|
|
27
27
|
if (accounts.length === 0)
|