@allbluecn/web-app 0.23.2 → 0.23.4

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 (57) hide show
  1. package/package.json +1 -1
  2. package/src/components/ai/global-harness-sidebar/__tests__/global-ai-prompts.test.ts +2 -0
  3. package/src/components/desktop/__tests__/desktop-state-listener.test.tsx +183 -0
  4. package/src/components/desktop/__tests__/sync-indicator.test.tsx +130 -0
  5. package/src/components/desktop/cloud-login.tsx +108 -6
  6. package/src/components/desktop/desktop-state-listener.tsx +76 -0
  7. package/src/components/desktop/shell-widgets.tsx +12 -5
  8. package/src/components/desktop/sync-indicator.tsx +62 -13
  9. package/src/components/desktop-agent/__tests__/agent-chat.test.tsx +194 -0
  10. package/src/components/desktop-agent/__tests__/agent-tool-card.test.tsx +138 -0
  11. package/src/components/desktop-agent/__tests__/agent-workspace-card.test.tsx +189 -0
  12. package/src/components/desktop-agent/agent-chat.tsx +221 -0
  13. package/src/components/desktop-agent/agent-tool-card.tsx +185 -0
  14. package/src/components/desktop-agent/agent-workspace-card.tsx +176 -0
  15. package/src/components/layout/sidebar-03/__tests__/user-menu-anonymous.test.tsx +4 -0
  16. package/src/components/layout/sidebar-03/app-sidebar.tsx +9 -2
  17. package/src/components/layout/sidebar-03/user-menu.tsx +63 -0
  18. package/src/config/sidebar-routes.tsx +14 -1
  19. package/src/lib/__tests__/session.test.ts +95 -0
  20. package/src/lib/auth/auth.config.ts +13 -0
  21. package/src/lib/changelog/sdk-versions.ts +1 -1
  22. package/src/lib/desktop-agent/__tests__/connection.test.ts +223 -0
  23. package/src/lib/desktop-agent/__tests__/errors.test.ts +43 -0
  24. package/src/lib/desktop-agent/__tests__/tool-result.test.ts +163 -0
  25. package/src/lib/desktop-agent/__tests__/use-desktop-agent-presence.test.tsx +181 -0
  26. package/src/lib/desktop-agent/availability.ts +39 -0
  27. package/src/lib/desktop-agent/connection.ts +72 -0
  28. package/src/lib/desktop-agent/errors.ts +21 -0
  29. package/src/lib/desktop-agent/tool-result.ts +170 -0
  30. package/src/lib/desktop-agent/use-desktop-agent-presence.ts +64 -0
  31. package/src/lib/desktop-bridge-types.ts +58 -1
  32. package/src/lib/hotkeys/__tests__/registry.test.ts +11 -4
  33. package/src/lib/hotkeys/registry.ts +9 -1
  34. package/src/lib/queries/README.md +1 -0
  35. package/src/lib/queries/__tests__/desktop-agent-queries.test.ts +80 -0
  36. package/src/lib/queries/desktop-agent.ts +25 -0
  37. package/src/lib/session.ts +15 -1
  38. package/src/paraglide/messages/_index.js +820 -0
  39. package/src/paraglide/messages/en.js +260 -0
  40. package/src/paraglide/messages/zh.js +260 -0
  41. package/src/routeTree.gen.ts +23 -0
  42. package/src/routes/-tests/agent-gate.test.ts +45 -0
  43. package/src/routes/_nav/agent/route.lazy.tsx +63 -0
  44. package/src/routes/_nav/agent/route.tsx +21 -0
  45. package/src/routes/api/sync/account-status.ts +5 -21
  46. package/src/server/__tests__/exchange-remote-token.test.ts +113 -0
  47. package/src/server/__tests__/remote-auth.test.ts +131 -1
  48. package/src/server/desktop-bootstrap.ts +19 -3
  49. package/src/server/desktop-session-merge.ts +51 -0
  50. package/src/server/remote-auth.ts +61 -3
  51. package/src/server/serverFns/auth/session.ts +28 -28
  52. package/src/server/serverFns/sync/transfer.ts +168 -0
  53. package/src/server/serverfn-public-allowlist.ts +4 -0
  54. package/src/server/sync/__tests__/ownership-transfer.test.ts +896 -0
  55. package/src/server/sync/account-status.ts +36 -0
  56. package/src/server/sync/ownership-transfer.ts +291 -0
  57. package/src/server/sync/saas-profile.ts +70 -0
@@ -15,6 +15,46 @@ import { getLocale, experimentalStaticLocale } from "../runtime.js"
15
15
  /** @typedef {{}} Agent_Createfailed1Inputs */
16
16
  /** @typedef {{}} Agent_Deleteconv1Inputs */
17
17
  /** @typedef {{}} Agent_Deleteconvfailed2Inputs */
18
+ /** @typedef {{ path: NonNullable<unknown> }} Agent_Desktop_Chatcwd1Inputs */
19
+ /** @typedef {{}} Agent_Desktop_Chatemptyhint2Inputs */
20
+ /** @typedef {{}} Agent_Desktop_Chatemptytitle2Inputs */
21
+ /** @typedef {{}} Agent_Desktop_Chatindependenthint2Inputs */
22
+ /** @typedef {{}} Agent_Desktop_Chatnoworkspace2Inputs */
23
+ /** @typedef {{}} Agent_Desktop_Chatplaceholder1Inputs */
24
+ /** @typedef {{}} Agent_Desktop_Chatsend1Inputs */
25
+ /** @typedef {{}} Agent_Desktop_Chatstop1Inputs */
26
+ /** @typedef {{}} Agent_Desktop_Chatthinking1Inputs */
27
+ /** @typedef {{}} Agent_Desktop_Errorconnection1Inputs */
28
+ /** @typedef {{}} Agent_Desktop_Errorforbidden1Inputs */
29
+ /** @typedef {{ message: NonNullable<unknown> }} Agent_Desktop_Errorgeneric1Inputs */
30
+ /** @typedef {{}} Agent_Desktop_Errorunauthorized1Inputs */
31
+ /** @typedef {{}} Agent_Desktop_Errorunavailable1Inputs */
32
+ /** @typedef {{}} Agent_Desktop_Pagedescription1Inputs */
33
+ /** @typedef {{}} Agent_Desktop_TitleInputs */
34
+ /** @typedef {{ count: NonNullable<unknown> }} Agent_Desktop_Toolcountfiles2Inputs */
35
+ /** @typedef {{ count: NonNullable<unknown> }} Agent_Desktop_Toolcounthits2Inputs */
36
+ /** @typedef {{ count: NonNullable<unknown> }} Agent_Desktop_Toolcountlines2Inputs */
37
+ /** @typedef {{}} Agent_Desktop_Toolemptydir2Inputs */
38
+ /** @typedef {{}} Agent_Desktop_Toolerror1Inputs */
39
+ /** @typedef {{ target: NonNullable<unknown> }} Agent_Desktop_Toolfind1Inputs */
40
+ /** @typedef {{ target: NonNullable<unknown> }} Agent_Desktop_Toolgrep1Inputs */
41
+ /** @typedef {{ target: NonNullable<unknown> }} Agent_Desktop_Toolls1Inputs */
42
+ /** @typedef {{ count: NonNullable<unknown> }} Agent_Desktop_Toolmore1Inputs */
43
+ /** @typedef {{}} Agent_Desktop_Toolnomatches2Inputs */
44
+ /** @typedef {{ name: NonNullable<unknown> }} Agent_Desktop_Toolother1Inputs */
45
+ /** @typedef {{ target: NonNullable<unknown> }} Agent_Desktop_Toolread1Inputs */
46
+ /** @typedef {{}} Agent_Desktop_Toolrunning1Inputs */
47
+ /** @typedef {{}} Agent_Desktop_Tooltruncated1Inputs */
48
+ /** @typedef {{}} Agent_Desktop_Workspaceadd1Inputs */
49
+ /** @typedef {{}} Agent_Desktop_Workspaceaddfailed2Inputs */
50
+ /** @typedef {{}} Agent_Desktop_Workspacedescription1Inputs */
51
+ /** @typedef {{}} Agent_Desktop_Workspaceempty1Inputs */
52
+ /** @typedef {{}} Agent_Desktop_Workspaceemptyhint2Inputs */
53
+ /** @typedef {{}} Agent_Desktop_Workspaceloadfailed2Inputs */
54
+ /** @typedef {{}} Agent_Desktop_Workspaceremove1Inputs */
55
+ /** @typedef {{}} Agent_Desktop_Workspaceremovefailed2Inputs */
56
+ /** @typedef {{}} Agent_Desktop_Workspacetitle1Inputs */
57
+ /** @typedef {{}} Agent_Desktop_Workspaceunsupported1Inputs */
18
58
  /** @typedef {{}} Agent_Emptyexample1Inputs */
19
59
  /** @typedef {{}} Agent_Emptyhint1Inputs */
20
60
  /** @typedef {{}} Agent_Generatefailed1Inputs */
@@ -1801,6 +1841,7 @@ import { getLocale, experimentalStaticLocale } from "../runtime.js"
1801
1841
  /** @typedef {{}} Common_Hotkey_Cat_EditInputs */
1802
1842
  /** @typedef {{}} Common_Hotkey_Cat_NavigationInputs */
1803
1843
  /** @typedef {{}} Common_Hotkey_Cat_ViewInputs */
1844
+ /** @typedef {{}} Common_Hotkey_Desc_Agentabort1Inputs */
1804
1845
  /** @typedef {{}} Common_Hotkey_Desc_Chatnext1Inputs */
1805
1846
  /** @typedef {{}} Common_Hotkey_Desc_Chatprev1Inputs */
1806
1847
  /** @typedef {{}} Common_Hotkey_Desc_Closepanel1Inputs */
@@ -1979,6 +2020,7 @@ import { getLocale, experimentalStaticLocale } from "../runtime.js"
1979
2020
  /** @typedef {{}} Dashboard_Stats_Completedtoday1Inputs */
1980
2021
  /** @typedef {{}} Dashboard_Stats_Prdtotal1Inputs */
1981
2022
  /** @typedef {{}} Dashboard_Stats_Unreadcomments1Inputs */
2023
+ /** @typedef {{}} Desktop_Cloud_Exchange_FailedInputs */
1982
2024
  /** @typedef {{}} Desktop_Connection_CancelInputs */
1983
2025
  /** @typedef {{}} Desktop_Connection_ConfirmInputs */
1984
2026
  /** @typedef {{}} Desktop_Connection_DescriptionInputs */
@@ -2016,6 +2058,9 @@ import { getLocale, experimentalStaticLocale } from "../runtime.js"
2016
2058
  /** @typedef {{}} Desktop_Onboarding_Selfhosted_Urllabel2Inputs */
2017
2059
  /** @typedef {{}} Desktop_Onboarding_SubtitleInputs */
2018
2060
  /** @typedef {{}} Desktop_Onboarding_TitleInputs */
2061
+ /** @typedef {{}} Desktop_State_CloudInputs */
2062
+ /** @typedef {{}} Desktop_State_GuestInputs */
2063
+ /** @typedef {{}} Desktop_State_TransferringInputs */
2019
2064
  /** @typedef {{}} Detail_Contentplaceholder1Inputs */
2020
2065
  /** @typedef {{}} Detail_Deletedescription1Inputs */
2021
2066
  /** @typedef {{}} Detail_Deletetitle1Inputs */
@@ -4909,6 +4954,13 @@ import { getLocale, experimentalStaticLocale } from "../runtime.js"
4909
4954
  /** @typedef {{}} Stylefield_Selectcolor2Inputs */
4910
4955
  /** @typedef {{}} Stylefield_Width1Inputs */
4911
4956
  /** @typedef {{}} Summary_MonthsInputs */
4957
+ /** @typedef {{}} Sync_Bind_FailedInputs */
4958
+ /** @typedef {{}} Sync_Bind_In_ProgressInputs */
4959
+ /** @typedef {{}} Sync_Bind_NonemptyInputs */
4960
+ /** @typedef {{}} Sync_Bind_Probe_UnreachableInputs */
4961
+ /** @typedef {{}} Sync_Bind_Shell_UnsupportedInputs */
4962
+ /** @typedef {{}} Sync_Logout_FailedInputs */
4963
+ /** @typedef {{}} Sync_Logout_In_ProgressInputs */
4912
4964
  /** @typedef {{}} Taginput_Add1Inputs */
4913
4965
  /** @typedef {{}} Taginput_Placeholder1Inputs */
4914
4966
  /** @typedef {{}} Taginput_Remove1Inputs */
@@ -5860,6 +5912,605 @@ export { agent_deleteconvfailed2 as "agent_deleteConvFailed" }
5860
5912
  /**
5861
5913
  * | output |
5862
5914
  * | --- |
5915
+ * | "Folder: {path}" |
5916
+ *
5917
+ * @param {Agent_Desktop_Chatcwd1Inputs} inputs
5918
+ * @param {{ locale?: "zh" | "en" }} options
5919
+ * @returns {LocalizedString}
5920
+ */
5921
+ const agent_desktop_chatcwd1 = /** @type {((inputs: Agent_Desktop_Chatcwd1Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Desktop_Chatcwd1Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs, options = {}) => {
5922
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
5923
+ if (locale === "en") return __en.agent_desktop_chatcwd1(inputs)
5924
+ return __zh.agent_desktop_chatcwd1(inputs)
5925
+ });
5926
+ export { agent_desktop_chatcwd1 as "agent_desktop_chatCwd" }
5927
+ /**
5928
+ * | output |
5929
+ * | --- |
5930
+ * | "For example: summarize this project's structure, or find all TODOs" |
5931
+ *
5932
+ * @param {Agent_Desktop_Chatemptyhint2Inputs} inputs
5933
+ * @param {{ locale?: "zh" | "en" }} options
5934
+ * @returns {LocalizedString}
5935
+ */
5936
+ const agent_desktop_chatemptyhint2 = /** @type {((inputs?: Agent_Desktop_Chatemptyhint2Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Desktop_Chatemptyhint2Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
5937
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
5938
+ if (locale === "en") return __en.agent_desktop_chatemptyhint2(inputs)
5939
+ return __zh.agent_desktop_chatemptyhint2(inputs)
5940
+ });
5941
+ export { agent_desktop_chatemptyhint2 as "agent_desktop_chatEmptyHint" }
5942
+ /**
5943
+ * | output |
5944
+ * | --- |
5945
+ * | "Ask about your local files" |
5946
+ *
5947
+ * @param {Agent_Desktop_Chatemptytitle2Inputs} inputs
5948
+ * @param {{ locale?: "zh" | "en" }} options
5949
+ * @returns {LocalizedString}
5950
+ */
5951
+ const agent_desktop_chatemptytitle2 = /** @type {((inputs?: Agent_Desktop_Chatemptytitle2Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Desktop_Chatemptytitle2Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
5952
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
5953
+ if (locale === "en") return __en.agent_desktop_chatemptytitle2(inputs)
5954
+ return __zh.agent_desktop_chatemptytitle2(inputs)
5955
+ });
5956
+ export { agent_desktop_chatemptytitle2 as "agent_desktop_chatEmptyTitle" }
5957
+ /**
5958
+ * | output |
5959
+ * | --- |
5960
+ * | "Each question runs independently; earlier turns are not remembered" |
5961
+ *
5962
+ * @param {Agent_Desktop_Chatindependenthint2Inputs} inputs
5963
+ * @param {{ locale?: "zh" | "en" }} options
5964
+ * @returns {LocalizedString}
5965
+ */
5966
+ const agent_desktop_chatindependenthint2 = /** @type {((inputs?: Agent_Desktop_Chatindependenthint2Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Desktop_Chatindependenthint2Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
5967
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
5968
+ if (locale === "en") return __en.agent_desktop_chatindependenthint2(inputs)
5969
+ return __zh.agent_desktop_chatindependenthint2(inputs)
5970
+ });
5971
+ export { agent_desktop_chatindependenthint2 as "agent_desktop_chatIndependentHint" }
5972
+ /**
5973
+ * | output |
5974
+ * | --- |
5975
+ * | "Add and select an authorized folder first" |
5976
+ *
5977
+ * @param {Agent_Desktop_Chatnoworkspace2Inputs} inputs
5978
+ * @param {{ locale?: "zh" | "en" }} options
5979
+ * @returns {LocalizedString}
5980
+ */
5981
+ const agent_desktop_chatnoworkspace2 = /** @type {((inputs?: Agent_Desktop_Chatnoworkspace2Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Desktop_Chatnoworkspace2Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
5982
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
5983
+ if (locale === "en") return __en.agent_desktop_chatnoworkspace2(inputs)
5984
+ return __zh.agent_desktop_chatnoworkspace2(inputs)
5985
+ });
5986
+ export { agent_desktop_chatnoworkspace2 as "agent_desktop_chatNoWorkspace" }
5987
+ /**
5988
+ * | output |
5989
+ * | --- |
5990
+ * | "Ask about files in this folder. Enter to send, Shift+Enter for a new line" |
5991
+ *
5992
+ * @param {Agent_Desktop_Chatplaceholder1Inputs} inputs
5993
+ * @param {{ locale?: "zh" | "en" }} options
5994
+ * @returns {LocalizedString}
5995
+ */
5996
+ const agent_desktop_chatplaceholder1 = /** @type {((inputs?: Agent_Desktop_Chatplaceholder1Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Desktop_Chatplaceholder1Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
5997
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
5998
+ if (locale === "en") return __en.agent_desktop_chatplaceholder1(inputs)
5999
+ return __zh.agent_desktop_chatplaceholder1(inputs)
6000
+ });
6001
+ export { agent_desktop_chatplaceholder1 as "agent_desktop_chatPlaceholder" }
6002
+ /**
6003
+ * | output |
6004
+ * | --- |
6005
+ * | "Send" |
6006
+ *
6007
+ * @param {Agent_Desktop_Chatsend1Inputs} inputs
6008
+ * @param {{ locale?: "zh" | "en" }} options
6009
+ * @returns {LocalizedString}
6010
+ */
6011
+ const agent_desktop_chatsend1 = /** @type {((inputs?: Agent_Desktop_Chatsend1Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Desktop_Chatsend1Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
6012
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
6013
+ if (locale === "en") return __en.agent_desktop_chatsend1(inputs)
6014
+ return __zh.agent_desktop_chatsend1(inputs)
6015
+ });
6016
+ export { agent_desktop_chatsend1 as "agent_desktop_chatSend" }
6017
+ /**
6018
+ * | output |
6019
+ * | --- |
6020
+ * | "Stop" |
6021
+ *
6022
+ * @param {Agent_Desktop_Chatstop1Inputs} inputs
6023
+ * @param {{ locale?: "zh" | "en" }} options
6024
+ * @returns {LocalizedString}
6025
+ */
6026
+ const agent_desktop_chatstop1 = /** @type {((inputs?: Agent_Desktop_Chatstop1Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Desktop_Chatstop1Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
6027
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
6028
+ if (locale === "en") return __en.agent_desktop_chatstop1(inputs)
6029
+ return __zh.agent_desktop_chatstop1(inputs)
6030
+ });
6031
+ export { agent_desktop_chatstop1 as "agent_desktop_chatStop" }
6032
+ /**
6033
+ * | output |
6034
+ * | --- |
6035
+ * | "Searching and thinking..." |
6036
+ *
6037
+ * @param {Agent_Desktop_Chatthinking1Inputs} inputs
6038
+ * @param {{ locale?: "zh" | "en" }} options
6039
+ * @returns {LocalizedString}
6040
+ */
6041
+ const agent_desktop_chatthinking1 = /** @type {((inputs?: Agent_Desktop_Chatthinking1Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Desktop_Chatthinking1Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
6042
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
6043
+ if (locale === "en") return __en.agent_desktop_chatthinking1(inputs)
6044
+ return __zh.agent_desktop_chatthinking1(inputs)
6045
+ });
6046
+ export { agent_desktop_chatthinking1 as "agent_desktop_chatThinking" }
6047
+ /**
6048
+ * | output |
6049
+ * | --- |
6050
+ * | "Cannot connect to the local agent service" |
6051
+ *
6052
+ * @param {Agent_Desktop_Errorconnection1Inputs} inputs
6053
+ * @param {{ locale?: "zh" | "en" }} options
6054
+ * @returns {LocalizedString}
6055
+ */
6056
+ const agent_desktop_errorconnection1 = /** @type {((inputs?: Agent_Desktop_Errorconnection1Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Desktop_Errorconnection1Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
6057
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
6058
+ if (locale === "en") return __en.agent_desktop_errorconnection1(inputs)
6059
+ return __zh.agent_desktop_errorconnection1(inputs)
6060
+ });
6061
+ export { agent_desktop_errorconnection1 as "agent_desktop_errorConnection" }
6062
+ /**
6063
+ * | output |
6064
+ * | --- |
6065
+ * | "Folder not authorized or request origin not allowed" |
6066
+ *
6067
+ * @param {Agent_Desktop_Errorforbidden1Inputs} inputs
6068
+ * @param {{ locale?: "zh" | "en" }} options
6069
+ * @returns {LocalizedString}
6070
+ */
6071
+ const agent_desktop_errorforbidden1 = /** @type {((inputs?: Agent_Desktop_Errorforbidden1Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Desktop_Errorforbidden1Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
6072
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
6073
+ if (locale === "en") return __en.agent_desktop_errorforbidden1(inputs)
6074
+ return __zh.agent_desktop_errorforbidden1(inputs)
6075
+ });
6076
+ export { agent_desktop_errorforbidden1 as "agent_desktop_errorForbidden" }
6077
+ /**
6078
+ * | output |
6079
+ * | --- |
6080
+ * | "Run failed: {message}" |
6081
+ *
6082
+ * @param {Agent_Desktop_Errorgeneric1Inputs} inputs
6083
+ * @param {{ locale?: "zh" | "en" }} options
6084
+ * @returns {LocalizedString}
6085
+ */
6086
+ const agent_desktop_errorgeneric1 = /** @type {((inputs: Agent_Desktop_Errorgeneric1Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Desktop_Errorgeneric1Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs, options = {}) => {
6087
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
6088
+ if (locale === "en") return __en.agent_desktop_errorgeneric1(inputs)
6089
+ return __zh.agent_desktop_errorgeneric1(inputs)
6090
+ });
6091
+ export { agent_desktop_errorgeneric1 as "agent_desktop_errorGeneric" }
6092
+ /**
6093
+ * | output |
6094
+ * | --- |
6095
+ * | "Agent access token expired (the service may have restarted). Please retry" |
6096
+ *
6097
+ * @param {Agent_Desktop_Errorunauthorized1Inputs} inputs
6098
+ * @param {{ locale?: "zh" | "en" }} options
6099
+ * @returns {LocalizedString}
6100
+ */
6101
+ const agent_desktop_errorunauthorized1 = /** @type {((inputs?: Agent_Desktop_Errorunauthorized1Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Desktop_Errorunauthorized1Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
6102
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
6103
+ if (locale === "en") return __en.agent_desktop_errorunauthorized1(inputs)
6104
+ return __zh.agent_desktop_errorunauthorized1(inputs)
6105
+ });
6106
+ export { agent_desktop_errorunauthorized1 as "agent_desktop_errorUnauthorized" }
6107
+ /**
6108
+ * | output |
6109
+ * | --- |
6110
+ * | "Local agent service is not ready. Try again later or restart the app" |
6111
+ *
6112
+ * @param {Agent_Desktop_Errorunavailable1Inputs} inputs
6113
+ * @param {{ locale?: "zh" | "en" }} options
6114
+ * @returns {LocalizedString}
6115
+ */
6116
+ const agent_desktop_errorunavailable1 = /** @type {((inputs?: Agent_Desktop_Errorunavailable1Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Desktop_Errorunavailable1Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
6117
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
6118
+ if (locale === "en") return __en.agent_desktop_errorunavailable1(inputs)
6119
+ return __zh.agent_desktop_errorunavailable1(inputs)
6120
+ });
6121
+ export { agent_desktop_errorunavailable1 as "agent_desktop_errorUnavailable" }
6122
+ /**
6123
+ * | output |
6124
+ * | --- |
6125
+ * | "Authorize a local folder and let AI search, read, and summarize its files (read-only)" |
6126
+ *
6127
+ * @param {Agent_Desktop_Pagedescription1Inputs} inputs
6128
+ * @param {{ locale?: "zh" | "en" }} options
6129
+ * @returns {LocalizedString}
6130
+ */
6131
+ const agent_desktop_pagedescription1 = /** @type {((inputs?: Agent_Desktop_Pagedescription1Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Desktop_Pagedescription1Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
6132
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
6133
+ if (locale === "en") return __en.agent_desktop_pagedescription1(inputs)
6134
+ return __zh.agent_desktop_pagedescription1(inputs)
6135
+ });
6136
+ export { agent_desktop_pagedescription1 as "agent_desktop_pageDescription" }
6137
+ /**
6138
+ * | output |
6139
+ * | --- |
6140
+ * | "Local File Assistant" |
6141
+ *
6142
+ * @param {Agent_Desktop_TitleInputs} inputs
6143
+ * @param {{ locale?: "zh" | "en" }} options
6144
+ * @returns {LocalizedString}
6145
+ */
6146
+ export const agent_desktop_title = /** @type {((inputs?: Agent_Desktop_TitleInputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Desktop_TitleInputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
6147
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
6148
+ if (locale === "en") return __en.agent_desktop_title(inputs)
6149
+ return __zh.agent_desktop_title(inputs)
6150
+ });
6151
+ /**
6152
+ * | output |
6153
+ * | --- |
6154
+ * | "{count} items" |
6155
+ *
6156
+ * @param {Agent_Desktop_Toolcountfiles2Inputs} inputs
6157
+ * @param {{ locale?: "zh" | "en" }} options
6158
+ * @returns {LocalizedString}
6159
+ */
6160
+ const agent_desktop_toolcountfiles2 = /** @type {((inputs: Agent_Desktop_Toolcountfiles2Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Desktop_Toolcountfiles2Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs, options = {}) => {
6161
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
6162
+ if (locale === "en") return __en.agent_desktop_toolcountfiles2(inputs)
6163
+ return __zh.agent_desktop_toolcountfiles2(inputs)
6164
+ });
6165
+ export { agent_desktop_toolcountfiles2 as "agent_desktop_toolCountFiles" }
6166
+ /**
6167
+ * | output |
6168
+ * | --- |
6169
+ * | "{count} matches" |
6170
+ *
6171
+ * @param {Agent_Desktop_Toolcounthits2Inputs} inputs
6172
+ * @param {{ locale?: "zh" | "en" }} options
6173
+ * @returns {LocalizedString}
6174
+ */
6175
+ const agent_desktop_toolcounthits2 = /** @type {((inputs: Agent_Desktop_Toolcounthits2Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Desktop_Toolcounthits2Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs, options = {}) => {
6176
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
6177
+ if (locale === "en") return __en.agent_desktop_toolcounthits2(inputs)
6178
+ return __zh.agent_desktop_toolcounthits2(inputs)
6179
+ });
6180
+ export { agent_desktop_toolcounthits2 as "agent_desktop_toolCountHits" }
6181
+ /**
6182
+ * | output |
6183
+ * | --- |
6184
+ * | "{count} lines" |
6185
+ *
6186
+ * @param {Agent_Desktop_Toolcountlines2Inputs} inputs
6187
+ * @param {{ locale?: "zh" | "en" }} options
6188
+ * @returns {LocalizedString}
6189
+ */
6190
+ const agent_desktop_toolcountlines2 = /** @type {((inputs: Agent_Desktop_Toolcountlines2Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Desktop_Toolcountlines2Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs, options = {}) => {
6191
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
6192
+ if (locale === "en") return __en.agent_desktop_toolcountlines2(inputs)
6193
+ return __zh.agent_desktop_toolcountlines2(inputs)
6194
+ });
6195
+ export { agent_desktop_toolcountlines2 as "agent_desktop_toolCountLines" }
6196
+ /**
6197
+ * | output |
6198
+ * | --- |
6199
+ * | "Empty folder" |
6200
+ *
6201
+ * @param {Agent_Desktop_Toolemptydir2Inputs} inputs
6202
+ * @param {{ locale?: "zh" | "en" }} options
6203
+ * @returns {LocalizedString}
6204
+ */
6205
+ const agent_desktop_toolemptydir2 = /** @type {((inputs?: Agent_Desktop_Toolemptydir2Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Desktop_Toolemptydir2Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
6206
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
6207
+ if (locale === "en") return __en.agent_desktop_toolemptydir2(inputs)
6208
+ return __zh.agent_desktop_toolemptydir2(inputs)
6209
+ });
6210
+ export { agent_desktop_toolemptydir2 as "agent_desktop_toolEmptyDir" }
6211
+ /**
6212
+ * | output |
6213
+ * | --- |
6214
+ * | "Failed" |
6215
+ *
6216
+ * @param {Agent_Desktop_Toolerror1Inputs} inputs
6217
+ * @param {{ locale?: "zh" | "en" }} options
6218
+ * @returns {LocalizedString}
6219
+ */
6220
+ const agent_desktop_toolerror1 = /** @type {((inputs?: Agent_Desktop_Toolerror1Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Desktop_Toolerror1Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
6221
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
6222
+ if (locale === "en") return __en.agent_desktop_toolerror1(inputs)
6223
+ return __zh.agent_desktop_toolerror1(inputs)
6224
+ });
6225
+ export { agent_desktop_toolerror1 as "agent_desktop_toolError" }
6226
+ /**
6227
+ * | output |
6228
+ * | --- |
6229
+ * | "Find {target}" |
6230
+ *
6231
+ * @param {Agent_Desktop_Toolfind1Inputs} inputs
6232
+ * @param {{ locale?: "zh" | "en" }} options
6233
+ * @returns {LocalizedString}
6234
+ */
6235
+ const agent_desktop_toolfind1 = /** @type {((inputs: Agent_Desktop_Toolfind1Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Desktop_Toolfind1Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs, options = {}) => {
6236
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
6237
+ if (locale === "en") return __en.agent_desktop_toolfind1(inputs)
6238
+ return __zh.agent_desktop_toolfind1(inputs)
6239
+ });
6240
+ export { agent_desktop_toolfind1 as "agent_desktop_toolFind" }
6241
+ /**
6242
+ * | output |
6243
+ * | --- |
6244
+ * | "Search {target}" |
6245
+ *
6246
+ * @param {Agent_Desktop_Toolgrep1Inputs} inputs
6247
+ * @param {{ locale?: "zh" | "en" }} options
6248
+ * @returns {LocalizedString}
6249
+ */
6250
+ const agent_desktop_toolgrep1 = /** @type {((inputs: Agent_Desktop_Toolgrep1Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Desktop_Toolgrep1Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs, options = {}) => {
6251
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
6252
+ if (locale === "en") return __en.agent_desktop_toolgrep1(inputs)
6253
+ return __zh.agent_desktop_toolgrep1(inputs)
6254
+ });
6255
+ export { agent_desktop_toolgrep1 as "agent_desktop_toolGrep" }
6256
+ /**
6257
+ * | output |
6258
+ * | --- |
6259
+ * | "List {target}" |
6260
+ *
6261
+ * @param {Agent_Desktop_Toolls1Inputs} inputs
6262
+ * @param {{ locale?: "zh" | "en" }} options
6263
+ * @returns {LocalizedString}
6264
+ */
6265
+ const agent_desktop_toolls1 = /** @type {((inputs: Agent_Desktop_Toolls1Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Desktop_Toolls1Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs, options = {}) => {
6266
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
6267
+ if (locale === "en") return __en.agent_desktop_toolls1(inputs)
6268
+ return __zh.agent_desktop_toolls1(inputs)
6269
+ });
6270
+ export { agent_desktop_toolls1 as "agent_desktop_toolLs" }
6271
+ /**
6272
+ * | output |
6273
+ * | --- |
6274
+ * | "{count} more not shown" |
6275
+ *
6276
+ * @param {Agent_Desktop_Toolmore1Inputs} inputs
6277
+ * @param {{ locale?: "zh" | "en" }} options
6278
+ * @returns {LocalizedString}
6279
+ */
6280
+ const agent_desktop_toolmore1 = /** @type {((inputs: Agent_Desktop_Toolmore1Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Desktop_Toolmore1Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs, options = {}) => {
6281
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
6282
+ if (locale === "en") return __en.agent_desktop_toolmore1(inputs)
6283
+ return __zh.agent_desktop_toolmore1(inputs)
6284
+ });
6285
+ export { agent_desktop_toolmore1 as "agent_desktop_toolMore" }
6286
+ /**
6287
+ * | output |
6288
+ * | --- |
6289
+ * | "No matches" |
6290
+ *
6291
+ * @param {Agent_Desktop_Toolnomatches2Inputs} inputs
6292
+ * @param {{ locale?: "zh" | "en" }} options
6293
+ * @returns {LocalizedString}
6294
+ */
6295
+ const agent_desktop_toolnomatches2 = /** @type {((inputs?: Agent_Desktop_Toolnomatches2Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Desktop_Toolnomatches2Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
6296
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
6297
+ if (locale === "en") return __en.agent_desktop_toolnomatches2(inputs)
6298
+ return __zh.agent_desktop_toolnomatches2(inputs)
6299
+ });
6300
+ export { agent_desktop_toolnomatches2 as "agent_desktop_toolNoMatches" }
6301
+ /**
6302
+ * | output |
6303
+ * | --- |
6304
+ * | "Call {name}" |
6305
+ *
6306
+ * @param {Agent_Desktop_Toolother1Inputs} inputs
6307
+ * @param {{ locale?: "zh" | "en" }} options
6308
+ * @returns {LocalizedString}
6309
+ */
6310
+ const agent_desktop_toolother1 = /** @type {((inputs: Agent_Desktop_Toolother1Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Desktop_Toolother1Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs, options = {}) => {
6311
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
6312
+ if (locale === "en") return __en.agent_desktop_toolother1(inputs)
6313
+ return __zh.agent_desktop_toolother1(inputs)
6314
+ });
6315
+ export { agent_desktop_toolother1 as "agent_desktop_toolOther" }
6316
+ /**
6317
+ * | output |
6318
+ * | --- |
6319
+ * | "Read {target}" |
6320
+ *
6321
+ * @param {Agent_Desktop_Toolread1Inputs} inputs
6322
+ * @param {{ locale?: "zh" | "en" }} options
6323
+ * @returns {LocalizedString}
6324
+ */
6325
+ const agent_desktop_toolread1 = /** @type {((inputs: Agent_Desktop_Toolread1Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Desktop_Toolread1Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs, options = {}) => {
6326
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
6327
+ if (locale === "en") return __en.agent_desktop_toolread1(inputs)
6328
+ return __zh.agent_desktop_toolread1(inputs)
6329
+ });
6330
+ export { agent_desktop_toolread1 as "agent_desktop_toolRead" }
6331
+ /**
6332
+ * | output |
6333
+ * | --- |
6334
+ * | "Running" |
6335
+ *
6336
+ * @param {Agent_Desktop_Toolrunning1Inputs} inputs
6337
+ * @param {{ locale?: "zh" | "en" }} options
6338
+ * @returns {LocalizedString}
6339
+ */
6340
+ const agent_desktop_toolrunning1 = /** @type {((inputs?: Agent_Desktop_Toolrunning1Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Desktop_Toolrunning1Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
6341
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
6342
+ if (locale === "en") return __en.agent_desktop_toolrunning1(inputs)
6343
+ return __zh.agent_desktop_toolrunning1(inputs)
6344
+ });
6345
+ export { agent_desktop_toolrunning1 as "agent_desktop_toolRunning" }
6346
+ /**
6347
+ * | output |
6348
+ * | --- |
6349
+ * | "Truncated" |
6350
+ *
6351
+ * @param {Agent_Desktop_Tooltruncated1Inputs} inputs
6352
+ * @param {{ locale?: "zh" | "en" }} options
6353
+ * @returns {LocalizedString}
6354
+ */
6355
+ const agent_desktop_tooltruncated1 = /** @type {((inputs?: Agent_Desktop_Tooltruncated1Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Desktop_Tooltruncated1Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
6356
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
6357
+ if (locale === "en") return __en.agent_desktop_tooltruncated1(inputs)
6358
+ return __zh.agent_desktop_tooltruncated1(inputs)
6359
+ });
6360
+ export { agent_desktop_tooltruncated1 as "agent_desktop_toolTruncated" }
6361
+ /**
6362
+ * | output |
6363
+ * | --- |
6364
+ * | "Add Folder" |
6365
+ *
6366
+ * @param {Agent_Desktop_Workspaceadd1Inputs} inputs
6367
+ * @param {{ locale?: "zh" | "en" }} options
6368
+ * @returns {LocalizedString}
6369
+ */
6370
+ const agent_desktop_workspaceadd1 = /** @type {((inputs?: Agent_Desktop_Workspaceadd1Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Desktop_Workspaceadd1Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
6371
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
6372
+ if (locale === "en") return __en.agent_desktop_workspaceadd1(inputs)
6373
+ return __zh.agent_desktop_workspaceadd1(inputs)
6374
+ });
6375
+ export { agent_desktop_workspaceadd1 as "agent_desktop_workspaceAdd" }
6376
+ /**
6377
+ * | output |
6378
+ * | --- |
6379
+ * | "Failed to add folder" |
6380
+ *
6381
+ * @param {Agent_Desktop_Workspaceaddfailed2Inputs} inputs
6382
+ * @param {{ locale?: "zh" | "en" }} options
6383
+ * @returns {LocalizedString}
6384
+ */
6385
+ const agent_desktop_workspaceaddfailed2 = /** @type {((inputs?: Agent_Desktop_Workspaceaddfailed2Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Desktop_Workspaceaddfailed2Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
6386
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
6387
+ if (locale === "en") return __en.agent_desktop_workspaceaddfailed2(inputs)
6388
+ return __zh.agent_desktop_workspaceaddfailed2(inputs)
6389
+ });
6390
+ export { agent_desktop_workspaceaddfailed2 as "agent_desktop_workspaceAddFailed" }
6391
+ /**
6392
+ * | output |
6393
+ * | --- |
6394
+ * | "The assistant can only read files inside authorized folders" |
6395
+ *
6396
+ * @param {Agent_Desktop_Workspacedescription1Inputs} inputs
6397
+ * @param {{ locale?: "zh" | "en" }} options
6398
+ * @returns {LocalizedString}
6399
+ */
6400
+ const agent_desktop_workspacedescription1 = /** @type {((inputs?: Agent_Desktop_Workspacedescription1Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Desktop_Workspacedescription1Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
6401
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
6402
+ if (locale === "en") return __en.agent_desktop_workspacedescription1(inputs)
6403
+ return __zh.agent_desktop_workspacedescription1(inputs)
6404
+ });
6405
+ export { agent_desktop_workspacedescription1 as "agent_desktop_workspaceDescription" }
6406
+ /**
6407
+ * | output |
6408
+ * | --- |
6409
+ * | "No folders authorized yet" |
6410
+ *
6411
+ * @param {Agent_Desktop_Workspaceempty1Inputs} inputs
6412
+ * @param {{ locale?: "zh" | "en" }} options
6413
+ * @returns {LocalizedString}
6414
+ */
6415
+ const agent_desktop_workspaceempty1 = /** @type {((inputs?: Agent_Desktop_Workspaceempty1Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Desktop_Workspaceempty1Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
6416
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
6417
+ if (locale === "en") return __en.agent_desktop_workspaceempty1(inputs)
6418
+ return __zh.agent_desktop_workspaceempty1(inputs)
6419
+ });
6420
+ export { agent_desktop_workspaceempty1 as "agent_desktop_workspaceEmpty" }
6421
+ /**
6422
+ * | output |
6423
+ * | --- |
6424
+ * | "Add a folder to start asking questions" |
6425
+ *
6426
+ * @param {Agent_Desktop_Workspaceemptyhint2Inputs} inputs
6427
+ * @param {{ locale?: "zh" | "en" }} options
6428
+ * @returns {LocalizedString}
6429
+ */
6430
+ const agent_desktop_workspaceemptyhint2 = /** @type {((inputs?: Agent_Desktop_Workspaceemptyhint2Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Desktop_Workspaceemptyhint2Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
6431
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
6432
+ if (locale === "en") return __en.agent_desktop_workspaceemptyhint2(inputs)
6433
+ return __zh.agent_desktop_workspaceemptyhint2(inputs)
6434
+ });
6435
+ export { agent_desktop_workspaceemptyhint2 as "agent_desktop_workspaceEmptyHint" }
6436
+ /**
6437
+ * | output |
6438
+ * | --- |
6439
+ * | "Failed to load authorized folders" |
6440
+ *
6441
+ * @param {Agent_Desktop_Workspaceloadfailed2Inputs} inputs
6442
+ * @param {{ locale?: "zh" | "en" }} options
6443
+ * @returns {LocalizedString}
6444
+ */
6445
+ const agent_desktop_workspaceloadfailed2 = /** @type {((inputs?: Agent_Desktop_Workspaceloadfailed2Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Desktop_Workspaceloadfailed2Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
6446
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
6447
+ if (locale === "en") return __en.agent_desktop_workspaceloadfailed2(inputs)
6448
+ return __zh.agent_desktop_workspaceloadfailed2(inputs)
6449
+ });
6450
+ export { agent_desktop_workspaceloadfailed2 as "agent_desktop_workspaceLoadFailed" }
6451
+ /**
6452
+ * | output |
6453
+ * | --- |
6454
+ * | "Revoke access" |
6455
+ *
6456
+ * @param {Agent_Desktop_Workspaceremove1Inputs} inputs
6457
+ * @param {{ locale?: "zh" | "en" }} options
6458
+ * @returns {LocalizedString}
6459
+ */
6460
+ const agent_desktop_workspaceremove1 = /** @type {((inputs?: Agent_Desktop_Workspaceremove1Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Desktop_Workspaceremove1Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
6461
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
6462
+ if (locale === "en") return __en.agent_desktop_workspaceremove1(inputs)
6463
+ return __zh.agent_desktop_workspaceremove1(inputs)
6464
+ });
6465
+ export { agent_desktop_workspaceremove1 as "agent_desktop_workspaceRemove" }
6466
+ /**
6467
+ * | output |
6468
+ * | --- |
6469
+ * | "Failed to revoke access" |
6470
+ *
6471
+ * @param {Agent_Desktop_Workspaceremovefailed2Inputs} inputs
6472
+ * @param {{ locale?: "zh" | "en" }} options
6473
+ * @returns {LocalizedString}
6474
+ */
6475
+ const agent_desktop_workspaceremovefailed2 = /** @type {((inputs?: Agent_Desktop_Workspaceremovefailed2Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Desktop_Workspaceremovefailed2Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
6476
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
6477
+ if (locale === "en") return __en.agent_desktop_workspaceremovefailed2(inputs)
6478
+ return __zh.agent_desktop_workspaceremovefailed2(inputs)
6479
+ });
6480
+ export { agent_desktop_workspaceremovefailed2 as "agent_desktop_workspaceRemoveFailed" }
6481
+ /**
6482
+ * | output |
6483
+ * | --- |
6484
+ * | "Authorized Folders" |
6485
+ *
6486
+ * @param {Agent_Desktop_Workspacetitle1Inputs} inputs
6487
+ * @param {{ locale?: "zh" | "en" }} options
6488
+ * @returns {LocalizedString}
6489
+ */
6490
+ const agent_desktop_workspacetitle1 = /** @type {((inputs?: Agent_Desktop_Workspacetitle1Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Desktop_Workspacetitle1Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
6491
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
6492
+ if (locale === "en") return __en.agent_desktop_workspacetitle1(inputs)
6493
+ return __zh.agent_desktop_workspacetitle1(inputs)
6494
+ });
6495
+ export { agent_desktop_workspacetitle1 as "agent_desktop_workspaceTitle" }
6496
+ /**
6497
+ * | output |
6498
+ * | --- |
6499
+ * | "This desktop version doesn't support folder authorization. Please update the app" |
6500
+ *
6501
+ * @param {Agent_Desktop_Workspaceunsupported1Inputs} inputs
6502
+ * @param {{ locale?: "zh" | "en" }} options
6503
+ * @returns {LocalizedString}
6504
+ */
6505
+ const agent_desktop_workspaceunsupported1 = /** @type {((inputs?: Agent_Desktop_Workspaceunsupported1Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Agent_Desktop_Workspaceunsupported1Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
6506
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
6507
+ if (locale === "en") return __en.agent_desktop_workspaceunsupported1(inputs)
6508
+ return __zh.agent_desktop_workspaceunsupported1(inputs)
6509
+ });
6510
+ export { agent_desktop_workspaceunsupported1 as "agent_desktop_workspaceUnsupported" }
6511
+ /**
6512
+ * | output |
6513
+ * | --- |
5863
6514
  * | "No examples" |
5864
6515
  *
5865
6516
  * @param {Agent_Emptyexample1Inputs} inputs
@@ -31928,6 +32579,21 @@ export const common_hotkey_cat_view = /** @type {((inputs?: Common_Hotkey_Cat_Vi
31928
32579
  /**
31929
32580
  * | output |
31930
32581
  * | --- |
32582
+ * | "Stop the local file assistant" |
32583
+ *
32584
+ * @param {Common_Hotkey_Desc_Agentabort1Inputs} inputs
32585
+ * @param {{ locale?: "zh" | "en" }} options
32586
+ * @returns {LocalizedString}
32587
+ */
32588
+ const common_hotkey_desc_agentabort1 = /** @type {((inputs?: Common_Hotkey_Desc_Agentabort1Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Common_Hotkey_Desc_Agentabort1Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
32589
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
32590
+ if (locale === "en") return __en.common_hotkey_desc_agentabort1(inputs)
32591
+ return __zh.common_hotkey_desc_agentabort1(inputs)
32592
+ });
32593
+ export { common_hotkey_desc_agentabort1 as "common_hotkey_desc_agentAbort" }
32594
+ /**
32595
+ * | output |
32596
+ * | --- |
31931
32597
  * | "Next conversation" |
31932
32598
  *
31933
32599
  * @param {Common_Hotkey_Desc_Chatnext1Inputs} inputs
@@ -34536,6 +35202,20 @@ export { dashboard_stats_unreadcomments1 as "dashboard_stats_unreadComments" }
34536
35202
  /**
34537
35203
  * | output |
34538
35204
  * | --- |
35205
+ * | "Cloud identity activation failed. Please retry." |
35206
+ *
35207
+ * @param {Desktop_Cloud_Exchange_FailedInputs} inputs
35208
+ * @param {{ locale?: "zh" | "en" }} options
35209
+ * @returns {LocalizedString}
35210
+ */
35211
+ export const desktop_cloud_exchange_failed = /** @type {((inputs?: Desktop_Cloud_Exchange_FailedInputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Desktop_Cloud_Exchange_FailedInputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
35212
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
35213
+ if (locale === "en") return __en.desktop_cloud_exchange_failed(inputs)
35214
+ return __zh.desktop_cloud_exchange_failed(inputs)
35215
+ });
35216
+ /**
35217
+ * | output |
35218
+ * | --- |
34539
35219
  * | "Cancel" |
34540
35220
  *
34541
35221
  * @param {Desktop_Connection_CancelInputs} inputs
@@ -35077,6 +35757,48 @@ export const desktop_onboarding_title = /** @type {((inputs?: Desktop_Onboarding
35077
35757
  /**
35078
35758
  * | output |
35079
35759
  * | --- |
35760
+ * | "Cloud synced" |
35761
+ *
35762
+ * @param {Desktop_State_CloudInputs} inputs
35763
+ * @param {{ locale?: "zh" | "en" }} options
35764
+ * @returns {LocalizedString}
35765
+ */
35766
+ export const desktop_state_cloud = /** @type {((inputs?: Desktop_State_CloudInputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Desktop_State_CloudInputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
35767
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
35768
+ if (locale === "en") return __en.desktop_state_cloud(inputs)
35769
+ return __zh.desktop_state_cloud(inputs)
35770
+ });
35771
+ /**
35772
+ * | output |
35773
+ * | --- |
35774
+ * | "Local mode" |
35775
+ *
35776
+ * @param {Desktop_State_GuestInputs} inputs
35777
+ * @param {{ locale?: "zh" | "en" }} options
35778
+ * @returns {LocalizedString}
35779
+ */
35780
+ export const desktop_state_guest = /** @type {((inputs?: Desktop_State_GuestInputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Desktop_State_GuestInputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
35781
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
35782
+ if (locale === "en") return __en.desktop_state_guest(inputs)
35783
+ return __zh.desktop_state_guest(inputs)
35784
+ });
35785
+ /**
35786
+ * | output |
35787
+ * | --- |
35788
+ * | "Transferring data…" |
35789
+ *
35790
+ * @param {Desktop_State_TransferringInputs} inputs
35791
+ * @param {{ locale?: "zh" | "en" }} options
35792
+ * @returns {LocalizedString}
35793
+ */
35794
+ export const desktop_state_transferring = /** @type {((inputs?: Desktop_State_TransferringInputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Desktop_State_TransferringInputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
35795
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
35796
+ if (locale === "en") return __en.desktop_state_transferring(inputs)
35797
+ return __zh.desktop_state_transferring(inputs)
35798
+ });
35799
+ /**
35800
+ * | output |
35801
+ * | --- |
35080
35802
  * | "Start writing content..." |
35081
35803
  *
35082
35804
  * @param {Detail_Contentplaceholder1Inputs} inputs
@@ -77458,6 +78180,104 @@ export const summary_months = /** @type {((inputs?: Summary_MonthsInputs, option
77458
78180
  /**
77459
78181
  * | output |
77460
78182
  * | --- |
78183
+ * | "Local data transfer failed. Local guest state restored and cloud sign-out applied. Please retry." |
78184
+ *
78185
+ * @param {Sync_Bind_FailedInputs} inputs
78186
+ * @param {{ locale?: "zh" | "en" }} options
78187
+ * @returns {LocalizedString}
78188
+ */
78189
+ export const sync_bind_failed = /** @type {((inputs?: Sync_Bind_FailedInputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Sync_Bind_FailedInputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
78190
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
78191
+ if (locale === "en") return __en.sync_bind_failed(inputs)
78192
+ return __zh.sync_bind_failed(inputs)
78193
+ });
78194
+ /**
78195
+ * | output |
78196
+ * | --- |
78197
+ * | "Transferring local data to your cloud account…" |
78198
+ *
78199
+ * @param {Sync_Bind_In_ProgressInputs} inputs
78200
+ * @param {{ locale?: "zh" | "en" }} options
78201
+ * @returns {LocalizedString}
78202
+ */
78203
+ export const sync_bind_in_progress = /** @type {((inputs?: Sync_Bind_In_ProgressInputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Sync_Bind_In_ProgressInputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
78204
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
78205
+ if (locale === "en") return __en.sync_bind_in_progress(inputs)
78206
+ return __zh.sync_bind_in_progress(inputs)
78207
+ });
78208
+ /**
78209
+ * | output |
78210
+ * | --- |
78211
+ * | "This cloud account already has data. Binding transfer is not supported yet (empty accounts only in phase one)." |
78212
+ *
78213
+ * @param {Sync_Bind_NonemptyInputs} inputs
78214
+ * @param {{ locale?: "zh" | "en" }} options
78215
+ * @returns {LocalizedString}
78216
+ */
78217
+ export const sync_bind_nonempty = /** @type {((inputs?: Sync_Bind_NonemptyInputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Sync_Bind_NonemptyInputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
78218
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
78219
+ if (locale === "en") return __en.sync_bind_nonempty(inputs)
78220
+ return __zh.sync_bind_nonempty(inputs)
78221
+ });
78222
+ /**
78223
+ * | output |
78224
+ * | --- |
78225
+ * | "Could not verify the cloud account status (network error). Local data was not transferred this time." |
78226
+ *
78227
+ * @param {Sync_Bind_Probe_UnreachableInputs} inputs
78228
+ * @param {{ locale?: "zh" | "en" }} options
78229
+ * @returns {LocalizedString}
78230
+ */
78231
+ export const sync_bind_probe_unreachable = /** @type {((inputs?: Sync_Bind_Probe_UnreachableInputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Sync_Bind_Probe_UnreachableInputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
78232
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
78233
+ if (locale === "en") return __en.sync_bind_probe_unreachable(inputs)
78234
+ return __zh.sync_bind_probe_unreachable(inputs)
78235
+ });
78236
+ /**
78237
+ * | output |
78238
+ * | --- |
78239
+ * | "This desktop shell version does not support binding transfer. Please upgrade the app." |
78240
+ *
78241
+ * @param {Sync_Bind_Shell_UnsupportedInputs} inputs
78242
+ * @param {{ locale?: "zh" | "en" }} options
78243
+ * @returns {LocalizedString}
78244
+ */
78245
+ export const sync_bind_shell_unsupported = /** @type {((inputs?: Sync_Bind_Shell_UnsupportedInputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Sync_Bind_Shell_UnsupportedInputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
78246
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
78247
+ if (locale === "en") return __en.sync_bind_shell_unsupported(inputs)
78248
+ return __zh.sync_bind_shell_unsupported(inputs)
78249
+ });
78250
+ /**
78251
+ * | output |
78252
+ * | --- |
78253
+ * | "Sign-out failed: cloud data transfer back to this device did not complete. Local data is untouched. Please retry." |
78254
+ *
78255
+ * @param {Sync_Logout_FailedInputs} inputs
78256
+ * @param {{ locale?: "zh" | "en" }} options
78257
+ * @returns {LocalizedString}
78258
+ */
78259
+ export const sync_logout_failed = /** @type {((inputs?: Sync_Logout_FailedInputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Sync_Logout_FailedInputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
78260
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
78261
+ if (locale === "en") return __en.sync_logout_failed(inputs)
78262
+ return __zh.sync_logout_failed(inputs)
78263
+ });
78264
+ /**
78265
+ * | output |
78266
+ * | --- |
78267
+ * | "Transferring cloud data back to this device…" |
78268
+ *
78269
+ * @param {Sync_Logout_In_ProgressInputs} inputs
78270
+ * @param {{ locale?: "zh" | "en" }} options
78271
+ * @returns {LocalizedString}
78272
+ */
78273
+ export const sync_logout_in_progress = /** @type {((inputs?: Sync_Logout_In_ProgressInputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Sync_Logout_In_ProgressInputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
78274
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
78275
+ if (locale === "en") return __en.sync_logout_in_progress(inputs)
78276
+ return __zh.sync_logout_in_progress(inputs)
78277
+ });
78278
+ /**
78279
+ * | output |
78280
+ * | --- |
77461
78281
  * | "Add Tag" |
77462
78282
  *
77463
78283
  * @param {Taginput_Add1Inputs} inputs