@deepseek-ai/dsh-client-ui-settings-account 0.2.0-rc.1 → 0.2.0-rc.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/README.i18n.yaml +2 -2
- package/README.md +1 -1
- package/README.zh.md +1 -1
- package/lib/client.js +11 -15
- package/lib/types/client/locales/onboarding.d.ts +2 -2
- package/lib/types/client/locales.d.ts +0 -1
- package/package.json +17 -17
package/README.i18n.yaml
CHANGED
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
en: 6b3ad3b6860100cf
|
|
25
25
|
zh: aeced4fb37642f15
|
|
26
26
|
/deepseek-ai-dsh-client-ui-settings-account/further-exploration:
|
|
27
|
-
en:
|
|
28
|
-
zh:
|
|
27
|
+
en: a28acdef21b1643a
|
|
28
|
+
zh: 5e2e357a6b716274
|
|
29
29
|
/deepseek-ai-dsh-client-ui-settings-account/model-experience:
|
|
30
30
|
en: ee1df7ca3467ee3f
|
|
31
31
|
zh: 84904a5148da3862
|
package/README.md
CHANGED
|
@@ -77,7 +77,7 @@ Account login uses a dismissible dialog before the model onboarding credential e
|
|
|
77
77
|
|
|
78
78
|
A terminal account-state stream failure appears in the sign-in dialog or Account settings. Plugin unload suppresses late failure reports.
|
|
79
79
|
|
|
80
|
-
The balance card shows recharge funds and bonus credit in separate rows.
|
|
80
|
+
The balance card shows recharge funds and bonus credit in separate rows. While signed in, the bonus row appears during loading, after a failed wallet read, and when a wallet holds positive bonus credit; a successful read without positive bonus credit omits the row. A failed wallet read shows the existing unavailable copy as a link to Platform — the same destination and behavior as the Usage action, so the embedded page opens on Desktop and a new tab elsewhere — while the loading state stays plain text. Currencies retain their own amounts, and a notice date is rendered only inside the server’s own message.
|
|
81
81
|
|
|
82
82
|
|
|
83
83
|
A successful login selects the first available `deepseek-account` model as the default when no other provider has a configured API key, even if a previous default was saved. Configured keys preserve the existing default even when their provider has no available models. Session-specific selections remain unchanged.
|
package/README.zh.md
CHANGED
|
@@ -77,7 +77,7 @@ Desktop preload 标记在账号凭证已存储后启用引导。进度属于本
|
|
|
77
77
|
|
|
78
78
|
账户状态流的终止错误会显示在登录对话框或账户设置中。插件卸载后不再报告延迟到达的错误。
|
|
79
79
|
|
|
80
|
-
|
|
80
|
+
余额卡片分行展示充值余额与赠金余额。登录态下,赠金行在加载中、余额读取失败以及存在正额赠金时显示;读取成功但没有正额赠金时不显示该行。余额或赠金读取失败时,沿用既有的不可用文案并改为指向 Platform 的链接,目标与行为同“查询用量”一致:Desktop 打开内嵌页面,其它环境新开标签页;加载中仍为纯文本。不同币种分别显示;日期只在服务端自己的消息中出现。
|
|
81
81
|
|
|
82
82
|
|
|
83
83
|
登录成功时,若其他提供方均未配置 API key,则将 `deepseek-account` 的第一个可用模型设为默认值,即使此前保存过默认选择。其他提供方只要配置了 key,就保留原默认值,即使其没有可用模型。会话内的显式选择保持不变。
|
package/lib/client.js
CHANGED
|
@@ -2316,6 +2316,7 @@ window.__ModuleLoader__.load({
|
|
|
2316
2316
|
const profile = details?.profile?.status === "ready" ? details.profile.value : void 0;
|
|
2317
2317
|
const wallets = details?.balance?.status === "ready" ? details.balance.value : void 0;
|
|
2318
2318
|
const bonusWallets = details?.balance?.status === "ready" ? details.balance.bonusWallets.filter((wallet) => new Big(wallet.balance).gt(0)) : [];
|
|
2319
|
+
const showBonusRow = details?.balance?.status !== "ready" || bonusWallets.length > 0;
|
|
2319
2320
|
const attempt = state?.attempt;
|
|
2320
2321
|
const active = attempt !== null && attempt !== void 0 && [
|
|
2321
2322
|
"initializing",
|
|
@@ -2465,7 +2466,7 @@ window.__ModuleLoader__.load({
|
|
|
2465
2466
|
children: t(!signedIn ? "balanceSignedOut" : "loading")
|
|
2466
2467
|
}) : platformLink(t("balanceUnavailable"), AccountSection_module_css_default.unavailableLink)]
|
|
2467
2468
|
}),
|
|
2468
|
-
signedIn && (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [(0, react_jsx_runtime.jsx)("div", { className: AccountSection_module_css_default.divider }), (0, react_jsx_runtime.jsxs)("div", {
|
|
2469
|
+
signedIn && showBonusRow && (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [(0, react_jsx_runtime.jsx)("div", { className: AccountSection_module_css_default.divider }), (0, react_jsx_runtime.jsxs)("div", {
|
|
2469
2470
|
className: AccountSection_module_css_default.row,
|
|
2470
2471
|
children: [(0, react_jsx_runtime.jsx)("span", { children: t("bonusBalance") }), (0, react_jsx_runtime.jsx)("span", {
|
|
2471
2472
|
className: AccountSection_module_css_default.bonusValue,
|
|
@@ -2475,10 +2476,7 @@ window.__ModuleLoader__.load({
|
|
|
2475
2476
|
}) : details?.balance === void 0 ? (0, react_jsx_runtime.jsx)("span", {
|
|
2476
2477
|
className: AccountSection_module_css_default.unavailable,
|
|
2477
2478
|
children: t("loading")
|
|
2478
|
-
}) :
|
|
2479
|
-
className: AccountSection_module_css_default.unavailable,
|
|
2480
|
-
children: t("bonusEmpty")
|
|
2481
|
-
})
|
|
2479
|
+
}) : platformLink(t("balanceUnavailable"), AccountSection_module_css_default.unavailableLink)
|
|
2482
2480
|
})]
|
|
2483
2481
|
})] }),
|
|
2484
2482
|
(0, react_jsx_runtime.jsx)("div", { className: AccountSection_module_css_default.divider }),
|
|
@@ -2742,10 +2740,10 @@ window.__ModuleLoader__.load({
|
|
|
2742
2740
|
onboardingBack: "上一步",
|
|
2743
2741
|
onboardingSkip: "跳过",
|
|
2744
2742
|
onboardingSkipTitle: "跳过设置?",
|
|
2745
|
-
onboardingSkipDescription: "你可以随时前往
|
|
2743
|
+
onboardingSkipDescription: "你可以随时前往 设置 → 通用设置 中调整工作过程、性能与用量展示方式或开启代码工作工具。",
|
|
2746
2744
|
onboardingKeepSetting: "继续设置",
|
|
2747
2745
|
onboardingNoCreditTitle: "暂时跳过充值?",
|
|
2748
|
-
onboardingNoCreditDescription: "没有可用额度时,DeepSeek Harness 将无法开始新的任务。你可以稍后前往
|
|
2746
|
+
onboardingNoCreditDescription: "没有可用额度时,DeepSeek Harness 将无法开始新的任务。你可以稍后前往 设置 → 账号与余额 进行充值。",
|
|
2749
2747
|
onboardingUnderstood: "我知道了",
|
|
2750
2748
|
onboardingGoTopUp: "前往充值",
|
|
2751
2749
|
onboardingSaveFailed: "未能保存设置,请重试。",
|
|
@@ -2789,10 +2787,10 @@ window.__ModuleLoader__.load({
|
|
|
2789
2787
|
onboardingBack: "Back",
|
|
2790
2788
|
onboardingSkip: "Skip",
|
|
2791
2789
|
onboardingSkipTitle: "Skip setup?",
|
|
2792
|
-
onboardingSkipDescription: "You can change how progress, performance, and usage are displayed, or enable Coding Tools, anytime in
|
|
2790
|
+
onboardingSkipDescription: "You can change how progress, performance, and usage are displayed, or enable Coding Tools, anytime in Settings → General.",
|
|
2793
2791
|
onboardingKeepSetting: "Continue setup",
|
|
2794
2792
|
onboardingNoCreditTitle: "Skip adding credits?",
|
|
2795
|
-
onboardingNoCreditDescription: "DeepSeek Harness can’t start new tasks without credits. You can add them later in
|
|
2793
|
+
onboardingNoCreditDescription: "DeepSeek Harness can’t start new tasks without credits. You can add them later in Settings → Account.",
|
|
2796
2794
|
onboardingUnderstood: "Got it",
|
|
2797
2795
|
onboardingGoTopUp: "Add credits",
|
|
2798
2796
|
onboardingSaveFailed: "Could not save settings. Try again.",
|
|
@@ -2849,8 +2847,7 @@ window.__ModuleLoader__.load({
|
|
|
2849
2847
|
quotaTitle: "No balance available",
|
|
2850
2848
|
quotaDescription: "DeepSeek Harness cannot start a new task with this account when no balance is available. Would you like to top up? You can also top up later in Settings → Account.",
|
|
2851
2849
|
quotaTopUp: "Top up",
|
|
2852
|
-
bonusNoticeTitle: "Bonus credited"
|
|
2853
|
-
bonusEmpty: "No bonus available"
|
|
2850
|
+
bonusNoticeTitle: "Bonus credited"
|
|
2854
2851
|
};
|
|
2855
2852
|
/** Chinese account settings copy. */
|
|
2856
2853
|
const zh = {
|
|
@@ -2908,8 +2905,7 @@ window.__ModuleLoader__.load({
|
|
|
2908
2905
|
quotaTitle: "当前无可用余额",
|
|
2909
2906
|
quotaDescription: "没有可用额度时,DeepSeek Harness 无法开始新的任务,是否前往充值?或者可以稍后前往 设置 → 账号与余额 进行充值。",
|
|
2910
2907
|
quotaTopUp: "去充值",
|
|
2911
|
-
bonusNoticeTitle: "赠金已到账"
|
|
2912
|
-
bonusEmpty: "暂无可用赠金"
|
|
2908
|
+
bonusNoticeTitle: "赠金已到账"
|
|
2913
2909
|
};
|
|
2914
2910
|
//#endregion
|
|
2915
2911
|
//#region lib/types/client/AccountQuotaNotice.js
|
|
@@ -4213,7 +4209,7 @@ window.__ModuleLoader__.load({
|
|
|
4213
4209
|
for (const listener of listeners) listener();
|
|
4214
4210
|
};
|
|
4215
4211
|
/** @returns the client identity for one account call, read at call time so it carries the language and zone in effect then. */
|
|
4216
|
-
const client = () => accountClientMetadata(ctx.locale.getSnapshot().active, "0.2.0-rc.
|
|
4212
|
+
const client = () => accountClientMetadata(ctx.locale.getSnapshot().active, "0.2.0-rc.2");
|
|
4217
4213
|
const notices = createBonusNoticeController({
|
|
4218
4214
|
ackRetryDelayMs: config.bonusAckRetryDelayMs,
|
|
4219
4215
|
ackRetryMaxDelayMs: config.bonusAckRetryMaxDelayMs,
|
|
@@ -4346,7 +4342,7 @@ window.__ModuleLoader__.load({
|
|
|
4346
4342
|
const profile = snapshot.details?.profile;
|
|
4347
4343
|
const context = {
|
|
4348
4344
|
uid: profile?.status === "ready" ? profile.value.id : null,
|
|
4349
|
-
version: "0.2.0-rc.
|
|
4345
|
+
version: "0.2.0-rc.2",
|
|
4350
4346
|
locale: ctx.locale.getSnapshot().active === "zh" ? "zh-CN" : "en",
|
|
4351
4347
|
width: window.screen.width,
|
|
4352
4348
|
height: window.screen.height,
|
|
@@ -30,10 +30,10 @@ export declare const onboardingCopy: {
|
|
|
30
30
|
readonly onboardingBack: "上一步";
|
|
31
31
|
readonly onboardingSkip: "跳过";
|
|
32
32
|
readonly onboardingSkipTitle: "跳过设置?";
|
|
33
|
-
readonly onboardingSkipDescription: "你可以随时前往
|
|
33
|
+
readonly onboardingSkipDescription: "你可以随时前往 设置 → 通用设置 中调整工作过程、性能与用量展示方式或开启代码工作工具。";
|
|
34
34
|
readonly onboardingKeepSetting: "继续设置";
|
|
35
35
|
readonly onboardingNoCreditTitle: "暂时跳过充值?";
|
|
36
|
-
readonly onboardingNoCreditDescription: "没有可用额度时,DeepSeek Harness 将无法开始新的任务。你可以稍后前往
|
|
36
|
+
readonly onboardingNoCreditDescription: "没有可用额度时,DeepSeek Harness 将无法开始新的任务。你可以稍后前往 设置 → 账号与余额 进行充值。";
|
|
37
37
|
readonly onboardingUnderstood: "我知道了";
|
|
38
38
|
readonly onboardingGoTopUp: "前往充值";
|
|
39
39
|
readonly onboardingSaveFailed: "未能保存设置,请重试。";
|
|
@@ -52,7 +52,6 @@ export declare const en: {
|
|
|
52
52
|
readonly quotaDescription: "DeepSeek Harness cannot start a new task with this account when no balance is available. Would you like to top up? You can also top up later in Settings → Account.";
|
|
53
53
|
readonly quotaTopUp: "Top up";
|
|
54
54
|
readonly bonusNoticeTitle: "Bonus credited";
|
|
55
|
-
readonly bonusEmpty: "No bonus available";
|
|
56
55
|
readonly onboardingLater: string;
|
|
57
56
|
readonly onboardingArtworkLocale: string;
|
|
58
57
|
readonly onboardingWelcome: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-client-ui-settings-account",
|
|
3
3
|
"description": "Manage DeepSeek login and open Platform billing pages",
|
|
4
|
-
"version": "0.2.0-rc.
|
|
4
|
+
"version": "0.2.0-rc.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -51,22 +51,22 @@
|
|
|
51
51
|
"@types/react-dom": "~18.3.0",
|
|
52
52
|
"big.js": "^7.0.1",
|
|
53
53
|
"@deepseek-ai/cordis": "~4.0.4",
|
|
54
|
-
"@deepseek-ai/dsh-
|
|
55
|
-
"@deepseek-ai/dsh-client-
|
|
56
|
-
"@deepseek-ai/dsh-client-
|
|
57
|
-
"@deepseek-ai/dsh-
|
|
58
|
-
"@deepseek-ai/dsh-client-ui-
|
|
59
|
-
"@deepseek-ai/dsh-client-ui-primitives": "0.2.0-rc.
|
|
60
|
-
"@deepseek-ai/dsh-client-ui-
|
|
61
|
-
"@deepseek-ai/dsh-client-ui-
|
|
62
|
-
"@deepseek-ai/dsh-client-ui-
|
|
63
|
-
"@deepseek-ai/dsh-
|
|
64
|
-
"@deepseek-ai/dsh-
|
|
65
|
-
"@deepseek-ai/dsh-
|
|
66
|
-
"@deepseek-ai/dsh-
|
|
67
|
-
"@deepseek-ai/dsh-client-ui-
|
|
68
|
-
"@deepseek-ai/dsh-
|
|
69
|
-
"@deepseek-ai/dsh-client-
|
|
54
|
+
"@deepseek-ai/dsh-api-remotes": "0.2.0-rc.2",
|
|
55
|
+
"@deepseek-ai/dsh-client-locale": "0.2.0-rc.2",
|
|
56
|
+
"@deepseek-ai/dsh-client-store": "0.2.0-rc.2",
|
|
57
|
+
"@deepseek-ai/dsh-client-test-runtime": "0.2.0-rc.2",
|
|
58
|
+
"@deepseek-ai/dsh-client-ui-layout": "0.2.0-rc.2",
|
|
59
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.2.0-rc.2",
|
|
60
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.0-rc.2",
|
|
61
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.2.0-rc.2",
|
|
62
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.0-rc.2",
|
|
63
|
+
"@deepseek-ai/dsh-client-ui-theme": "0.2.0-rc.2",
|
|
64
|
+
"@deepseek-ai/dsh-deepseek-account": "0.2.0-rc.2",
|
|
65
|
+
"@deepseek-ai/dsh-client-ui-chat": "0.2.0-rc.2",
|
|
66
|
+
"@deepseek-ai/dsh-settings": "0.2.0-rc.2",
|
|
67
|
+
"@deepseek-ai/dsh-client-ui-settings-models": "0.2.0-rc.2",
|
|
68
|
+
"@deepseek-ai/dsh-host-webserver": "0.2.0-rc.2",
|
|
69
|
+
"@deepseek-ai/dsh-client-product-analytics": "0.2.0-rc.2"
|
|
70
70
|
},
|
|
71
71
|
"files": [
|
|
72
72
|
"lib/index.js",
|