dsh-auth-remote 0.1.7 → 0.1.9

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 (48) hide show
  1. package/CHANGELOG.md +12 -1
  2. package/CHANGELOG.zh-CN.md +12 -1
  3. package/CONTRIBUTING.md +1 -1
  4. package/CONTRIBUTING.zh-CN.md +1 -1
  5. package/README.md +30 -12
  6. package/README.zh-CN.md +30 -12
  7. package/dist/cli.js +50 -0
  8. package/dist/cli.js.map +2 -2
  9. package/dist/client.js +457 -1
  10. package/dist/client.js.map +4 -4
  11. package/dist/index.js +366 -26
  12. package/dist/index.js.map +3 -3
  13. package/dist/login.js +50 -0
  14. package/dist/login.js.map +2 -2
  15. package/dist/types/adapters/dsh/account-callback.d.ts +12 -0
  16. package/dist/types/adapters/dsh/account-callback.d.ts.map +1 -0
  17. package/dist/types/adapters/dsh/browser-capability.d.ts +1 -1
  18. package/dist/types/adapters/dsh/browser-capability.d.ts.map +1 -1
  19. package/dist/types/adapters/dsh/webserver.d.ts +3 -0
  20. package/dist/types/adapters/dsh/webserver.d.ts.map +1 -1
  21. package/dist/types/http/account-login.d.ts +43 -0
  22. package/dist/types/http/account-login.d.ts.map +1 -0
  23. package/dist/types/http/gate.d.ts.map +1 -1
  24. package/dist/types/http/origin-policy.d.ts.map +1 -1
  25. package/dist/types/http/public-assets.d.ts +3 -0
  26. package/dist/types/http/public-assets.d.ts.map +1 -0
  27. package/dist/types/http/routes.d.ts +16 -1
  28. package/dist/types/http/routes.d.ts.map +1 -1
  29. package/dist/types/index.d.ts.map +1 -1
  30. package/dist/types/shared/account-login.d.ts +21 -0
  31. package/dist/types/shared/account-login.d.ts.map +1 -0
  32. package/dist/types/shared/i18n.d.ts +50 -0
  33. package/dist/types/shared/i18n.d.ts.map +1 -1
  34. package/dist/types/shared/locales/en.d.ts +25 -0
  35. package/dist/types/shared/locales/en.d.ts.map +1 -1
  36. package/dist/types/shared/locales/zh.d.ts +25 -0
  37. package/dist/types/shared/locales/zh.d.ts.map +1 -1
  38. package/docs/deployment.md +21 -15
  39. package/docs/deployment.zh-CN.md +21 -15
  40. package/docs/development.md +16 -6
  41. package/docs/development.zh-CN.md +16 -6
  42. package/docs/legacy-compatibility.md +170 -117
  43. package/docs/legacy-compatibility.zh-CN.md +170 -0
  44. package/docs/releasing.md +6 -6
  45. package/docs/releasing.zh-CN.md +6 -6
  46. package/docs/reverse-proxy.md +2 -2
  47. package/docs/reverse-proxy.zh-CN.md +2 -2
  48. package/package.json +25 -11
package/dist/login.js CHANGED
@@ -2146,6 +2146,31 @@
2146
2146
  errorUnauthorized: "Your session has expired. Sign in again.",
2147
2147
  errorServiceUnavailable: "The service is temporarily unavailable. Try again later.",
2148
2148
  errorGeneric: "The operation could not be completed. Try again.",
2149
+ accountLoginTitle: "Sign in to your DeepSeek account",
2150
+ accountLoginDescription: "Complete authorization in a new tab, then return here to finish signing in.",
2151
+ accountLoginStepOpen: "Click \u201COpen DeepSeek sign-in\u201D below and sign in on the official page.",
2152
+ accountLoginStepCopy: "After authorization, the new tab may show a connection error or 404. Copy its full address from the address bar.",
2153
+ accountLoginStepSubmit: "Return to this dialog, paste the address below and click \u201CConfirm sign-in\u201D.",
2154
+ accountLoginCallbackLabel: "Full callback address",
2155
+ accountLoginCallbackHint: "Include both code and state. The page does not need to load. Submit before this authorization expires.",
2156
+ accountLoginOpen: "Open DeepSeek sign-in",
2157
+ accountLoginConfirm: "Confirm sign-in",
2158
+ accountLoginCancel: "Cancel",
2159
+ accountLoginUseApiKey: "Use API key",
2160
+ accountLoginClose: "Close",
2161
+ accountLoginRetry: "Start again",
2162
+ accountLoginReopen: "Reopen authorization page",
2163
+ accountLoginPopupBlocked: "The new tab was blocked.",
2164
+ accountLoginInitializing: "Preparing authorization\u2026",
2165
+ accountLoginWaiting: "Waiting for the callback address. This authorization lasts at most 10 minutes.",
2166
+ accountLoginExchanging: "Completing sign-in\u2026",
2167
+ accountLoginInvalidCallback: "This callback address does not match the current authorization. Copy the full address, including code and state, from the latest authorization tab.",
2168
+ accountLoginExpired: "This authorization has expired. Start again.",
2169
+ accountLoginMismatch: "This authorization is no longer available in this session. Close this dialog and start again.",
2170
+ accountLoginBusy: "Another authorization is in progress. Finish or cancel it before starting again.",
2171
+ accountLoginUnavailable: "This DSH version does not provide compatible account sign-in.",
2172
+ accountLoginFailed: "Authorization could not be completed. Start again and submit the address from the new tab.",
2173
+ accountLoginNoResponse: "The DeepSeek platform did not respond. Check the DSH server\u2019s network connection and start again.",
2149
2174
  loginInitialTitle: "Sign in to DSH",
2150
2175
  loginInitialLoading: "Checking sign-in status\u2026",
2151
2176
  loginLanguageLabel: "Language",
@@ -2315,6 +2340,31 @@ The command uses the profile selected by dsh plugin exec and the caller's DSH_HO
2315
2340
  errorUnauthorized: "\u4F1A\u8BDD\u5DF2\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u3002",
2316
2341
  errorServiceUnavailable: "\u670D\u52A1\u6682\u65F6\u4E0D\u53EF\u7528\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002",
2317
2342
  errorGeneric: "\u64CD\u4F5C\u672A\u5B8C\u6210\uFF0C\u8BF7\u91CD\u8BD5\u3002",
2343
+ accountLoginTitle: "\u767B\u5F55 DeepSeek \u5B98\u65B9\u8D26\u53F7",
2344
+ accountLoginDescription: "\u5728\u65B0\u6807\u7B7E\u9875\u5B8C\u6210\u5B98\u65B9\u6388\u6743\u540E\uFF0C\u8FD4\u56DE\u6B64\u5904\u7EE7\u7EED\u767B\u5F55\u3002",
2345
+ accountLoginStepOpen: "\u70B9\u51FB\u4E0B\u65B9\u201C\u6253\u5F00 DeepSeek \u767B\u5F55\u9875\u201D\uFF0C\u5728\u5B98\u65B9\u9875\u9762\u767B\u5F55\u8D26\u53F7\u3002",
2346
+ accountLoginStepCopy: "\u6388\u6743\u540E\uFF0C\u65B0\u6807\u7B7E\u9875\u53EF\u80FD\u663E\u793A\u8FDE\u63A5\u5931\u8D25\u6216 404\u3002\u8BF7\u590D\u5236\u8BE5\u6807\u7B7E\u9875\u5730\u5740\u680F\u4E2D\u7684\u5B8C\u6574\u5730\u5740\u3002",
2347
+ accountLoginStepSubmit: "\u8FD4\u56DE\u6B64\u5F39\u7A97\uFF0C\u5C06\u5730\u5740\u7C98\u8D34\u5230\u4E0B\u65B9\u8F93\u5165\u6846\uFF0C\u518D\u70B9\u51FB\u201C\u786E\u8BA4\u767B\u5F55\u201D\u3002",
2348
+ accountLoginCallbackLabel: "\u5B8C\u6574\u56DE\u8C03\u5730\u5740",
2349
+ accountLoginCallbackHint: "\u5730\u5740\u987B\u5305\u542B code \u548C state\uFF1B\u8BE5\u9875\u9762\u65E0\u9700\u80FD\u6B63\u5E38\u6253\u5F00\u3002\u8BF7\u5728\u672C\u6B21\u6388\u6743\u5230\u671F\u524D\u63D0\u4EA4\u3002",
2350
+ accountLoginOpen: "\u6253\u5F00 DeepSeek \u767B\u5F55\u9875",
2351
+ accountLoginConfirm: "\u786E\u8BA4\u767B\u5F55",
2352
+ accountLoginCancel: "\u53D6\u6D88",
2353
+ accountLoginUseApiKey: "\u4F7F\u7528 API Key",
2354
+ accountLoginClose: "\u5173\u95ED",
2355
+ accountLoginRetry: "\u91CD\u65B0\u5F00\u59CB",
2356
+ accountLoginReopen: "\u91CD\u65B0\u6253\u5F00\u6388\u6743\u9875",
2357
+ accountLoginPopupBlocked: "\u65B0\u6807\u7B7E\u9875\u88AB\u6D4F\u89C8\u5668\u62E6\u622A\u3002",
2358
+ accountLoginInitializing: "\u6B63\u5728\u51C6\u5907\u6388\u6743\u2026",
2359
+ accountLoginWaiting: "\u7B49\u5F85\u586B\u5199\u56DE\u8C03\u5730\u5740\u3002\u672C\u6B21\u6388\u6743\u6700\u957F\u6709\u6548\u671F\u4E3A 10 \u5206\u949F\u3002",
2360
+ accountLoginExchanging: "\u6B63\u5728\u5B8C\u6210\u767B\u5F55\u2026",
2361
+ accountLoginInvalidCallback: "\u56DE\u8C03\u5730\u5740\u4E0E\u5F53\u524D\u6388\u6743\u4E0D\u5339\u914D\uFF0C\u8BF7\u4ECE\u6700\u8FD1\u4E00\u6B21\u6388\u6743\u6807\u7B7E\u9875\u590D\u5236\u5305\u542B code \u548C state \u7684\u5B8C\u6574\u5730\u5740\u3002",
2362
+ accountLoginExpired: "\u672C\u6B21\u6388\u6743\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u5F00\u59CB\u3002",
2363
+ accountLoginMismatch: "\u5F53\u524D\u4F1A\u8BDD\u5DF2\u65E0\u6CD5\u7EE7\u7EED\u6B64\u6388\u6743\uFF0C\u8BF7\u5173\u95ED\u5F39\u7A97\u540E\u91CD\u65B0\u5F00\u59CB\u3002",
2364
+ accountLoginBusy: "\u5DF2\u6709\u6388\u6743\u6B63\u5728\u8FDB\u884C\uFF0C\u8BF7\u5148\u5B8C\u6210\u6216\u53D6\u6D88\u540E\u518D\u5F00\u59CB\u3002",
2365
+ accountLoginUnavailable: "\u5F53\u524D DSH \u7248\u672C\u672A\u63D0\u4F9B\u517C\u5BB9\u7684\u8D26\u53F7\u767B\u5F55\u529F\u80FD\u3002",
2366
+ accountLoginFailed: "\u672A\u80FD\u5B8C\u6210\u6388\u6743\uFF0C\u8BF7\u91CD\u65B0\u5F00\u59CB\uFF0C\u5E76\u63D0\u4EA4\u65B0\u6807\u7B7E\u9875\u4E2D\u7684\u56DE\u8C03\u5730\u5740\u3002",
2367
+ accountLoginNoResponse: "DeepSeek \u5E73\u53F0\u672A\u54CD\u5E94\uFF0C\u8BF7\u68C0\u67E5 DSH \u670D\u52A1\u5668\u7684\u7F51\u7EDC\u8FDE\u63A5\u540E\u91CD\u65B0\u5F00\u59CB\u3002",
2318
2368
  loginInitialTitle: "\u767B\u5F55 DSH",
2319
2369
  loginInitialLoading: "\u6B63\u5728\u68C0\u67E5\u767B\u5F55\u72B6\u6001\u2026",
2320
2370
  loginLanguageLabel: "\u8BED\u8A00",