@allbluecn/web-app 0.23.3 → 0.23.5

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 (134) hide show
  1. package/package.json +3 -3
  2. package/src/components/ai/global-harness-sidebar/__tests__/global-ai-prompts.test.ts +2 -0
  3. package/src/components/desktop/__tests__/cloud-login-rollback.test.tsx +161 -0
  4. package/src/components/desktop/cloud-login.tsx +29 -26
  5. package/src/components/desktop-agent/__tests__/agent-chat.test.tsx +194 -0
  6. package/src/components/desktop-agent/__tests__/agent-tool-card.test.tsx +138 -0
  7. package/src/components/desktop-agent/__tests__/agent-workspace-card.test.tsx +189 -0
  8. package/src/components/desktop-agent/agent-chat.tsx +221 -0
  9. package/src/components/desktop-agent/agent-tool-card.tsx +185 -0
  10. package/src/components/desktop-agent/agent-workspace-card.tsx +176 -0
  11. package/src/components/layout/sidebar-03/app-sidebar.tsx +9 -2
  12. package/src/config/sidebar-routes.tsx +14 -1
  13. package/src/lib/changelog/sdk-versions.ts +1 -1
  14. package/src/lib/desktop-agent/__tests__/connection.test.ts +223 -0
  15. package/src/lib/desktop-agent/__tests__/errors.test.ts +43 -0
  16. package/src/lib/desktop-agent/__tests__/tool-result.test.ts +163 -0
  17. package/src/lib/desktop-agent/__tests__/use-desktop-agent-presence.test.tsx +181 -0
  18. package/src/lib/desktop-agent/availability.ts +39 -0
  19. package/src/lib/desktop-agent/connection.ts +72 -0
  20. package/src/lib/desktop-agent/errors.ts +21 -0
  21. package/src/lib/desktop-agent/tool-result.ts +170 -0
  22. package/src/lib/desktop-agent/use-desktop-agent-presence.ts +64 -0
  23. package/src/lib/desktop-bridge-types.ts +22 -1
  24. package/src/lib/hotkeys/__tests__/registry.test.ts +11 -4
  25. package/src/lib/hotkeys/registry.ts +9 -1
  26. package/src/lib/queries/README.md +1 -0
  27. package/src/lib/queries/__tests__/desktop-agent-queries.test.ts +80 -0
  28. package/src/lib/queries/desktop-agent.ts +25 -0
  29. package/src/paraglide/messages/_index.d.ts +42 -0
  30. package/src/paraglide/messages/_index.js +42 -0
  31. package/src/paraglide/messages/agent_desktop_chatcwd1.d.ts +19 -0
  32. package/src/paraglide/messages/agent_desktop_chatcwd1.js +30 -0
  33. package/src/paraglide/messages/agent_desktop_chatemptyhint2.d.ts +17 -0
  34. package/src/paraglide/messages/agent_desktop_chatemptyhint2.js +30 -0
  35. package/src/paraglide/messages/agent_desktop_chatemptytitle2.d.ts +17 -0
  36. package/src/paraglide/messages/agent_desktop_chatemptytitle2.js +30 -0
  37. package/src/paraglide/messages/agent_desktop_chatindependenthint2.d.ts +17 -0
  38. package/src/paraglide/messages/agent_desktop_chatindependenthint2.js +30 -0
  39. package/src/paraglide/messages/agent_desktop_chatnoworkspace2.d.ts +17 -0
  40. package/src/paraglide/messages/agent_desktop_chatnoworkspace2.js +30 -0
  41. package/src/paraglide/messages/agent_desktop_chatplaceholder1.d.ts +17 -0
  42. package/src/paraglide/messages/agent_desktop_chatplaceholder1.js +30 -0
  43. package/src/paraglide/messages/agent_desktop_chatsend1.d.ts +17 -0
  44. package/src/paraglide/messages/agent_desktop_chatsend1.js +30 -0
  45. package/src/paraglide/messages/agent_desktop_chatstop1.d.ts +17 -0
  46. package/src/paraglide/messages/agent_desktop_chatstop1.js +30 -0
  47. package/src/paraglide/messages/agent_desktop_chatthinking1.d.ts +17 -0
  48. package/src/paraglide/messages/agent_desktop_chatthinking1.js +30 -0
  49. package/src/paraglide/messages/agent_desktop_errorconnection1.d.ts +17 -0
  50. package/src/paraglide/messages/agent_desktop_errorconnection1.js +30 -0
  51. package/src/paraglide/messages/agent_desktop_errorforbidden1.d.ts +17 -0
  52. package/src/paraglide/messages/agent_desktop_errorforbidden1.js +30 -0
  53. package/src/paraglide/messages/agent_desktop_errorgeneric1.d.ts +19 -0
  54. package/src/paraglide/messages/agent_desktop_errorgeneric1.js +30 -0
  55. package/src/paraglide/messages/agent_desktop_errorunauthorized1.d.ts +17 -0
  56. package/src/paraglide/messages/agent_desktop_errorunauthorized1.js +30 -0
  57. package/src/paraglide/messages/agent_desktop_errorunavailable1.d.ts +17 -0
  58. package/src/paraglide/messages/agent_desktop_errorunavailable1.js +30 -0
  59. package/src/paraglide/messages/agent_desktop_pagedescription1.d.ts +17 -0
  60. package/src/paraglide/messages/agent_desktop_pagedescription1.js +30 -0
  61. package/src/paraglide/messages/agent_desktop_title.d.ts +16 -0
  62. package/src/paraglide/messages/agent_desktop_title.js +29 -0
  63. package/src/paraglide/messages/agent_desktop_toolcountfiles2.d.ts +19 -0
  64. package/src/paraglide/messages/agent_desktop_toolcountfiles2.js +30 -0
  65. package/src/paraglide/messages/agent_desktop_toolcounthits2.d.ts +19 -0
  66. package/src/paraglide/messages/agent_desktop_toolcounthits2.js +30 -0
  67. package/src/paraglide/messages/agent_desktop_toolcountlines2.d.ts +19 -0
  68. package/src/paraglide/messages/agent_desktop_toolcountlines2.js +30 -0
  69. package/src/paraglide/messages/agent_desktop_toolemptydir2.d.ts +17 -0
  70. package/src/paraglide/messages/agent_desktop_toolemptydir2.js +30 -0
  71. package/src/paraglide/messages/agent_desktop_toolerror1.d.ts +17 -0
  72. package/src/paraglide/messages/agent_desktop_toolerror1.js +30 -0
  73. package/src/paraglide/messages/agent_desktop_toolfind1.d.ts +19 -0
  74. package/src/paraglide/messages/agent_desktop_toolfind1.js +30 -0
  75. package/src/paraglide/messages/agent_desktop_toolgrep1.d.ts +19 -0
  76. package/src/paraglide/messages/agent_desktop_toolgrep1.js +30 -0
  77. package/src/paraglide/messages/agent_desktop_toolls1.d.ts +19 -0
  78. package/src/paraglide/messages/agent_desktop_toolls1.js +30 -0
  79. package/src/paraglide/messages/agent_desktop_toolmore1.d.ts +19 -0
  80. package/src/paraglide/messages/agent_desktop_toolmore1.js +30 -0
  81. package/src/paraglide/messages/agent_desktop_toolnomatches2.d.ts +17 -0
  82. package/src/paraglide/messages/agent_desktop_toolnomatches2.js +30 -0
  83. package/src/paraglide/messages/agent_desktop_toolother1.d.ts +19 -0
  84. package/src/paraglide/messages/agent_desktop_toolother1.js +30 -0
  85. package/src/paraglide/messages/agent_desktop_toolread1.d.ts +19 -0
  86. package/src/paraglide/messages/agent_desktop_toolread1.js +30 -0
  87. package/src/paraglide/messages/agent_desktop_toolrunning1.d.ts +17 -0
  88. package/src/paraglide/messages/agent_desktop_toolrunning1.js +30 -0
  89. package/src/paraglide/messages/agent_desktop_tooltruncated1.d.ts +17 -0
  90. package/src/paraglide/messages/agent_desktop_tooltruncated1.js +30 -0
  91. package/src/paraglide/messages/agent_desktop_workspaceadd1.d.ts +17 -0
  92. package/src/paraglide/messages/agent_desktop_workspaceadd1.js +30 -0
  93. package/src/paraglide/messages/agent_desktop_workspaceaddfailed2.d.ts +17 -0
  94. package/src/paraglide/messages/agent_desktop_workspaceaddfailed2.js +30 -0
  95. package/src/paraglide/messages/agent_desktop_workspacedescription1.d.ts +17 -0
  96. package/src/paraglide/messages/agent_desktop_workspacedescription1.js +30 -0
  97. package/src/paraglide/messages/agent_desktop_workspaceempty1.d.ts +17 -0
  98. package/src/paraglide/messages/agent_desktop_workspaceempty1.js +30 -0
  99. package/src/paraglide/messages/agent_desktop_workspaceemptyhint2.d.ts +17 -0
  100. package/src/paraglide/messages/agent_desktop_workspaceemptyhint2.js +30 -0
  101. package/src/paraglide/messages/agent_desktop_workspaceloadfailed2.d.ts +17 -0
  102. package/src/paraglide/messages/agent_desktop_workspaceloadfailed2.js +30 -0
  103. package/src/paraglide/messages/agent_desktop_workspaceremove1.d.ts +17 -0
  104. package/src/paraglide/messages/agent_desktop_workspaceremove1.js +30 -0
  105. package/src/paraglide/messages/agent_desktop_workspaceremovefailed2.d.ts +17 -0
  106. package/src/paraglide/messages/agent_desktop_workspaceremovefailed2.js +30 -0
  107. package/src/paraglide/messages/agent_desktop_workspacetitle1.d.ts +17 -0
  108. package/src/paraglide/messages/agent_desktop_workspacetitle1.js +30 -0
  109. package/src/paraglide/messages/agent_desktop_workspaceunsupported1.d.ts +17 -0
  110. package/src/paraglide/messages/agent_desktop_workspaceunsupported1.js +30 -0
  111. package/src/paraglide/messages/common_hotkey_desc_agentabort1.d.ts +17 -0
  112. package/src/paraglide/messages/common_hotkey_desc_agentabort1.js +30 -0
  113. package/src/paraglide/messages/sync_bind_rolled_back.d.ts +16 -0
  114. package/src/paraglide/messages/sync_bind_rolled_back.js +29 -0
  115. package/src/routeTree.gen.ts +23 -0
  116. package/src/routes/-tests/agent-gate.test.ts +45 -0
  117. package/src/routes/_nav/agent/route.lazy.tsx +63 -0
  118. package/src/routes/_nav/agent/route.tsx +21 -0
  119. package/src/routes/api/sync/account-status.ts +4 -2
  120. package/src/routes/api/sync/push.ts +11 -3
  121. package/src/server/__tests__/desktop-cloud-identity.test.ts +331 -0
  122. package/src/server/__tests__/desktop-session-merge.test.ts +42 -0
  123. package/src/server/__tests__/exchange-remote-token.test.ts +92 -10
  124. package/src/server/__tests__/remote-auth.test.ts +39 -0
  125. package/src/server/desktop-bootstrap.ts +16 -5
  126. package/src/server/desktop-cloud-identity.ts +247 -0
  127. package/src/server/remote-auth.ts +33 -1
  128. package/src/server/serverFns/auth/session.ts +27 -2
  129. package/src/server/serverFns/sync/transfer.ts +28 -27
  130. package/src/server/serverFns/workspace-kb.ts +10 -0
  131. package/src/server/sync/__tests__/ownership-transfer.test.ts +261 -48
  132. package/src/server/sync/__tests__/sync-first-push.e2e.test.ts +349 -0
  133. package/src/server/sync/account-status-cloud.ts +41 -0
  134. package/src/server/sync/ownership-transfer.ts +88 -49
@@ -0,0 +1,30 @@
1
+ /* eslint-disable */
2
+ import { getLocale, experimentalStaticLocale } from '../runtime.js';
3
+
4
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
5
+
6
+ /** @typedef {{}} Agent_Desktop_Chatnoworkspace2Inputs */
7
+
8
+ const zh_agent_desktop_chatnoworkspace2 = /** @type {(inputs: Agent_Desktop_Chatnoworkspace2Inputs) => LocalizedString} */ () => {
9
+ return /** @type {LocalizedString} */ (`请先添加并选择一个授权目录`)
10
+ };
11
+
12
+ const en_agent_desktop_chatnoworkspace2 = /** @type {(inputs: Agent_Desktop_Chatnoworkspace2Inputs) => LocalizedString} */ () => {
13
+ return /** @type {LocalizedString} */ (`Add and select an authorized folder first`)
14
+ };
15
+
16
+ /**
17
+ * | output |
18
+ * | --- |
19
+ * | "Add and select an authorized folder first" |
20
+ *
21
+ * @param {Agent_Desktop_Chatnoworkspace2Inputs} inputs
22
+ * @param {{ locale?: "zh" | "en" }} options
23
+ * @returns {LocalizedString}
24
+ */
25
+ 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 = {}) => {
26
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
27
+ if (locale === "en") return en_agent_desktop_chatnoworkspace2(inputs)
28
+ return zh_agent_desktop_chatnoworkspace2(inputs)
29
+ });
30
+ export { agent_desktop_chatnoworkspace2 as "agent_desktop_chatNoWorkspace" }
@@ -0,0 +1,17 @@
1
+ export { agent_desktop_chatplaceholder1 as "agent_desktop_chatPlaceholder" };
2
+ export type LocalizedString = import("../runtime.js").LocalizedString;
3
+ export type Agent_Desktop_Chatplaceholder1Inputs = {};
4
+ /**
5
+ * | output |
6
+ * | --- |
7
+ * | "Ask about files in this folder. Enter to send, Shift+Enter for a new line" |
8
+ *
9
+ * @param {Agent_Desktop_Chatplaceholder1Inputs} inputs
10
+ * @param {{ locale?: "zh" | "en" }} options
11
+ * @returns {LocalizedString}
12
+ */
13
+ declare const agent_desktop_chatplaceholder1: ((inputs?: Agent_Desktop_Chatplaceholder1Inputs, options?: {
14
+ locale?: "zh" | "en";
15
+ }) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Desktop_Chatplaceholder1Inputs, {
16
+ locale?: "zh" | "en";
17
+ }, {}>;
@@ -0,0 +1,30 @@
1
+ /* eslint-disable */
2
+ import { getLocale, experimentalStaticLocale } from '../runtime.js';
3
+
4
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
5
+
6
+ /** @typedef {{}} Agent_Desktop_Chatplaceholder1Inputs */
7
+
8
+ const zh_agent_desktop_chatplaceholder1 = /** @type {(inputs: Agent_Desktop_Chatplaceholder1Inputs) => LocalizedString} */ () => {
9
+ return /** @type {LocalizedString} */ (`询问该目录中的文件,Enter 发送,Shift+Enter 换行`)
10
+ };
11
+
12
+ const en_agent_desktop_chatplaceholder1 = /** @type {(inputs: Agent_Desktop_Chatplaceholder1Inputs) => LocalizedString} */ () => {
13
+ return /** @type {LocalizedString} */ (`Ask about files in this folder. Enter to send, Shift+Enter for a new line`)
14
+ };
15
+
16
+ /**
17
+ * | output |
18
+ * | --- |
19
+ * | "Ask about files in this folder. Enter to send, Shift+Enter for a new line" |
20
+ *
21
+ * @param {Agent_Desktop_Chatplaceholder1Inputs} inputs
22
+ * @param {{ locale?: "zh" | "en" }} options
23
+ * @returns {LocalizedString}
24
+ */
25
+ 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 = {}) => {
26
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
27
+ if (locale === "en") return en_agent_desktop_chatplaceholder1(inputs)
28
+ return zh_agent_desktop_chatplaceholder1(inputs)
29
+ });
30
+ export { agent_desktop_chatplaceholder1 as "agent_desktop_chatPlaceholder" }
@@ -0,0 +1,17 @@
1
+ export { agent_desktop_chatsend1 as "agent_desktop_chatSend" };
2
+ export type LocalizedString = import("../runtime.js").LocalizedString;
3
+ export type Agent_Desktop_Chatsend1Inputs = {};
4
+ /**
5
+ * | output |
6
+ * | --- |
7
+ * | "Send" |
8
+ *
9
+ * @param {Agent_Desktop_Chatsend1Inputs} inputs
10
+ * @param {{ locale?: "zh" | "en" }} options
11
+ * @returns {LocalizedString}
12
+ */
13
+ declare const agent_desktop_chatsend1: ((inputs?: Agent_Desktop_Chatsend1Inputs, options?: {
14
+ locale?: "zh" | "en";
15
+ }) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Desktop_Chatsend1Inputs, {
16
+ locale?: "zh" | "en";
17
+ }, {}>;
@@ -0,0 +1,30 @@
1
+ /* eslint-disable */
2
+ import { getLocale, experimentalStaticLocale } from '../runtime.js';
3
+
4
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
5
+
6
+ /** @typedef {{}} Agent_Desktop_Chatsend1Inputs */
7
+
8
+ const zh_agent_desktop_chatsend1 = /** @type {(inputs: Agent_Desktop_Chatsend1Inputs) => LocalizedString} */ () => {
9
+ return /** @type {LocalizedString} */ (`发送`)
10
+ };
11
+
12
+ const en_agent_desktop_chatsend1 = /** @type {(inputs: Agent_Desktop_Chatsend1Inputs) => LocalizedString} */ () => {
13
+ return /** @type {LocalizedString} */ (`Send`)
14
+ };
15
+
16
+ /**
17
+ * | output |
18
+ * | --- |
19
+ * | "Send" |
20
+ *
21
+ * @param {Agent_Desktop_Chatsend1Inputs} inputs
22
+ * @param {{ locale?: "zh" | "en" }} options
23
+ * @returns {LocalizedString}
24
+ */
25
+ 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 = {}) => {
26
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
27
+ if (locale === "en") return en_agent_desktop_chatsend1(inputs)
28
+ return zh_agent_desktop_chatsend1(inputs)
29
+ });
30
+ export { agent_desktop_chatsend1 as "agent_desktop_chatSend" }
@@ -0,0 +1,17 @@
1
+ export { agent_desktop_chatstop1 as "agent_desktop_chatStop" };
2
+ export type LocalizedString = import("../runtime.js").LocalizedString;
3
+ export type Agent_Desktop_Chatstop1Inputs = {};
4
+ /**
5
+ * | output |
6
+ * | --- |
7
+ * | "Stop" |
8
+ *
9
+ * @param {Agent_Desktop_Chatstop1Inputs} inputs
10
+ * @param {{ locale?: "zh" | "en" }} options
11
+ * @returns {LocalizedString}
12
+ */
13
+ declare const agent_desktop_chatstop1: ((inputs?: Agent_Desktop_Chatstop1Inputs, options?: {
14
+ locale?: "zh" | "en";
15
+ }) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Desktop_Chatstop1Inputs, {
16
+ locale?: "zh" | "en";
17
+ }, {}>;
@@ -0,0 +1,30 @@
1
+ /* eslint-disable */
2
+ import { getLocale, experimentalStaticLocale } from '../runtime.js';
3
+
4
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
5
+
6
+ /** @typedef {{}} Agent_Desktop_Chatstop1Inputs */
7
+
8
+ const zh_agent_desktop_chatstop1 = /** @type {(inputs: Agent_Desktop_Chatstop1Inputs) => LocalizedString} */ () => {
9
+ return /** @type {LocalizedString} */ (`中止`)
10
+ };
11
+
12
+ const en_agent_desktop_chatstop1 = /** @type {(inputs: Agent_Desktop_Chatstop1Inputs) => LocalizedString} */ () => {
13
+ return /** @type {LocalizedString} */ (`Stop`)
14
+ };
15
+
16
+ /**
17
+ * | output |
18
+ * | --- |
19
+ * | "Stop" |
20
+ *
21
+ * @param {Agent_Desktop_Chatstop1Inputs} inputs
22
+ * @param {{ locale?: "zh" | "en" }} options
23
+ * @returns {LocalizedString}
24
+ */
25
+ 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 = {}) => {
26
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
27
+ if (locale === "en") return en_agent_desktop_chatstop1(inputs)
28
+ return zh_agent_desktop_chatstop1(inputs)
29
+ });
30
+ export { agent_desktop_chatstop1 as "agent_desktop_chatStop" }
@@ -0,0 +1,17 @@
1
+ export { agent_desktop_chatthinking1 as "agent_desktop_chatThinking" };
2
+ export type LocalizedString = import("../runtime.js").LocalizedString;
3
+ export type Agent_Desktop_Chatthinking1Inputs = {};
4
+ /**
5
+ * | output |
6
+ * | --- |
7
+ * | "Searching and thinking..." |
8
+ *
9
+ * @param {Agent_Desktop_Chatthinking1Inputs} inputs
10
+ * @param {{ locale?: "zh" | "en" }} options
11
+ * @returns {LocalizedString}
12
+ */
13
+ declare const agent_desktop_chatthinking1: ((inputs?: Agent_Desktop_Chatthinking1Inputs, options?: {
14
+ locale?: "zh" | "en";
15
+ }) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Desktop_Chatthinking1Inputs, {
16
+ locale?: "zh" | "en";
17
+ }, {}>;
@@ -0,0 +1,30 @@
1
+ /* eslint-disable */
2
+ import { getLocale, experimentalStaticLocale } from '../runtime.js';
3
+
4
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
5
+
6
+ /** @typedef {{}} Agent_Desktop_Chatthinking1Inputs */
7
+
8
+ const zh_agent_desktop_chatthinking1 = /** @type {(inputs: Agent_Desktop_Chatthinking1Inputs) => LocalizedString} */ () => {
9
+ return /** @type {LocalizedString} */ (`正在检索与思考...`)
10
+ };
11
+
12
+ const en_agent_desktop_chatthinking1 = /** @type {(inputs: Agent_Desktop_Chatthinking1Inputs) => LocalizedString} */ () => {
13
+ return /** @type {LocalizedString} */ (`Searching and thinking...`)
14
+ };
15
+
16
+ /**
17
+ * | output |
18
+ * | --- |
19
+ * | "Searching and thinking..." |
20
+ *
21
+ * @param {Agent_Desktop_Chatthinking1Inputs} inputs
22
+ * @param {{ locale?: "zh" | "en" }} options
23
+ * @returns {LocalizedString}
24
+ */
25
+ 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 = {}) => {
26
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
27
+ if (locale === "en") return en_agent_desktop_chatthinking1(inputs)
28
+ return zh_agent_desktop_chatthinking1(inputs)
29
+ });
30
+ export { agent_desktop_chatthinking1 as "agent_desktop_chatThinking" }
@@ -0,0 +1,17 @@
1
+ export { agent_desktop_errorconnection1 as "agent_desktop_errorConnection" };
2
+ export type LocalizedString = import("../runtime.js").LocalizedString;
3
+ export type Agent_Desktop_Errorconnection1Inputs = {};
4
+ /**
5
+ * | output |
6
+ * | --- |
7
+ * | "Cannot connect to the local agent service" |
8
+ *
9
+ * @param {Agent_Desktop_Errorconnection1Inputs} inputs
10
+ * @param {{ locale?: "zh" | "en" }} options
11
+ * @returns {LocalizedString}
12
+ */
13
+ declare const agent_desktop_errorconnection1: ((inputs?: Agent_Desktop_Errorconnection1Inputs, options?: {
14
+ locale?: "zh" | "en";
15
+ }) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Desktop_Errorconnection1Inputs, {
16
+ locale?: "zh" | "en";
17
+ }, {}>;
@@ -0,0 +1,30 @@
1
+ /* eslint-disable */
2
+ import { getLocale, experimentalStaticLocale } from '../runtime.js';
3
+
4
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
5
+
6
+ /** @typedef {{}} Agent_Desktop_Errorconnection1Inputs */
7
+
8
+ const zh_agent_desktop_errorconnection1 = /** @type {(inputs: Agent_Desktop_Errorconnection1Inputs) => LocalizedString} */ () => {
9
+ return /** @type {LocalizedString} */ (`无法连接本地 agent 服务`)
10
+ };
11
+
12
+ const en_agent_desktop_errorconnection1 = /** @type {(inputs: Agent_Desktop_Errorconnection1Inputs) => LocalizedString} */ () => {
13
+ return /** @type {LocalizedString} */ (`Cannot connect to the local agent service`)
14
+ };
15
+
16
+ /**
17
+ * | output |
18
+ * | --- |
19
+ * | "Cannot connect to the local agent service" |
20
+ *
21
+ * @param {Agent_Desktop_Errorconnection1Inputs} inputs
22
+ * @param {{ locale?: "zh" | "en" }} options
23
+ * @returns {LocalizedString}
24
+ */
25
+ 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 = {}) => {
26
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
27
+ if (locale === "en") return en_agent_desktop_errorconnection1(inputs)
28
+ return zh_agent_desktop_errorconnection1(inputs)
29
+ });
30
+ export { agent_desktop_errorconnection1 as "agent_desktop_errorConnection" }
@@ -0,0 +1,17 @@
1
+ export { agent_desktop_errorforbidden1 as "agent_desktop_errorForbidden" };
2
+ export type LocalizedString = import("../runtime.js").LocalizedString;
3
+ export type Agent_Desktop_Errorforbidden1Inputs = {};
4
+ /**
5
+ * | output |
6
+ * | --- |
7
+ * | "Folder not authorized or request origin not allowed" |
8
+ *
9
+ * @param {Agent_Desktop_Errorforbidden1Inputs} inputs
10
+ * @param {{ locale?: "zh" | "en" }} options
11
+ * @returns {LocalizedString}
12
+ */
13
+ declare const agent_desktop_errorforbidden1: ((inputs?: Agent_Desktop_Errorforbidden1Inputs, options?: {
14
+ locale?: "zh" | "en";
15
+ }) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Desktop_Errorforbidden1Inputs, {
16
+ locale?: "zh" | "en";
17
+ }, {}>;
@@ -0,0 +1,30 @@
1
+ /* eslint-disable */
2
+ import { getLocale, experimentalStaticLocale } from '../runtime.js';
3
+
4
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
5
+
6
+ /** @typedef {{}} Agent_Desktop_Errorforbidden1Inputs */
7
+
8
+ const zh_agent_desktop_errorforbidden1 = /** @type {(inputs: Agent_Desktop_Errorforbidden1Inputs) => LocalizedString} */ () => {
9
+ return /** @type {LocalizedString} */ (`目录未授权或请求来源不被允许`)
10
+ };
11
+
12
+ const en_agent_desktop_errorforbidden1 = /** @type {(inputs: Agent_Desktop_Errorforbidden1Inputs) => LocalizedString} */ () => {
13
+ return /** @type {LocalizedString} */ (`Folder not authorized or request origin not allowed`)
14
+ };
15
+
16
+ /**
17
+ * | output |
18
+ * | --- |
19
+ * | "Folder not authorized or request origin not allowed" |
20
+ *
21
+ * @param {Agent_Desktop_Errorforbidden1Inputs} inputs
22
+ * @param {{ locale?: "zh" | "en" }} options
23
+ * @returns {LocalizedString}
24
+ */
25
+ 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 = {}) => {
26
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
27
+ if (locale === "en") return en_agent_desktop_errorforbidden1(inputs)
28
+ return zh_agent_desktop_errorforbidden1(inputs)
29
+ });
30
+ export { agent_desktop_errorforbidden1 as "agent_desktop_errorForbidden" }
@@ -0,0 +1,19 @@
1
+ export { agent_desktop_errorgeneric1 as "agent_desktop_errorGeneric" };
2
+ export type LocalizedString = import("../runtime.js").LocalizedString;
3
+ export type Agent_Desktop_Errorgeneric1Inputs = {
4
+ message: NonNullable<unknown>;
5
+ };
6
+ /**
7
+ * | output |
8
+ * | --- |
9
+ * | "Run failed: {message}" |
10
+ *
11
+ * @param {Agent_Desktop_Errorgeneric1Inputs} inputs
12
+ * @param {{ locale?: "zh" | "en" }} options
13
+ * @returns {LocalizedString}
14
+ */
15
+ declare const agent_desktop_errorgeneric1: ((inputs: Agent_Desktop_Errorgeneric1Inputs, options?: {
16
+ locale?: "zh" | "en";
17
+ }) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Desktop_Errorgeneric1Inputs, {
18
+ locale?: "zh" | "en";
19
+ }, {}>;
@@ -0,0 +1,30 @@
1
+ /* eslint-disable */
2
+ import { getLocale, experimentalStaticLocale } from '../runtime.js';
3
+
4
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
5
+
6
+ /** @typedef {{ message: NonNullable<unknown> }} Agent_Desktop_Errorgeneric1Inputs */
7
+
8
+ const zh_agent_desktop_errorgeneric1 = /** @type {(inputs: Agent_Desktop_Errorgeneric1Inputs) => LocalizedString} */ (i) => {
9
+ return /** @type {LocalizedString} */ (`运行失败:${i?.message}`)
10
+ };
11
+
12
+ const en_agent_desktop_errorgeneric1 = /** @type {(inputs: Agent_Desktop_Errorgeneric1Inputs) => LocalizedString} */ (i) => {
13
+ return /** @type {LocalizedString} */ (`Run failed: ${i?.message}`)
14
+ };
15
+
16
+ /**
17
+ * | output |
18
+ * | --- |
19
+ * | "Run failed: {message}" |
20
+ *
21
+ * @param {Agent_Desktop_Errorgeneric1Inputs} inputs
22
+ * @param {{ locale?: "zh" | "en" }} options
23
+ * @returns {LocalizedString}
24
+ */
25
+ 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 = {}) => {
26
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
27
+ if (locale === "en") return en_agent_desktop_errorgeneric1(inputs)
28
+ return zh_agent_desktop_errorgeneric1(inputs)
29
+ });
30
+ export { agent_desktop_errorgeneric1 as "agent_desktop_errorGeneric" }
@@ -0,0 +1,17 @@
1
+ export { agent_desktop_errorunauthorized1 as "agent_desktop_errorUnauthorized" };
2
+ export type LocalizedString = import("../runtime.js").LocalizedString;
3
+ export type Agent_Desktop_Errorunauthorized1Inputs = {};
4
+ /**
5
+ * | output |
6
+ * | --- |
7
+ * | "Agent access token expired (the service may have restarted). Please retry" |
8
+ *
9
+ * @param {Agent_Desktop_Errorunauthorized1Inputs} inputs
10
+ * @param {{ locale?: "zh" | "en" }} options
11
+ * @returns {LocalizedString}
12
+ */
13
+ declare const agent_desktop_errorunauthorized1: ((inputs?: Agent_Desktop_Errorunauthorized1Inputs, options?: {
14
+ locale?: "zh" | "en";
15
+ }) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Desktop_Errorunauthorized1Inputs, {
16
+ locale?: "zh" | "en";
17
+ }, {}>;
@@ -0,0 +1,30 @@
1
+ /* eslint-disable */
2
+ import { getLocale, experimentalStaticLocale } from '../runtime.js';
3
+
4
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
5
+
6
+ /** @typedef {{}} Agent_Desktop_Errorunauthorized1Inputs */
7
+
8
+ const zh_agent_desktop_errorunauthorized1 = /** @type {(inputs: Agent_Desktop_Errorunauthorized1Inputs) => LocalizedString} */ () => {
9
+ return /** @type {LocalizedString} */ (`agent 访问令牌已失效(服务可能已重启),请重试`)
10
+ };
11
+
12
+ const en_agent_desktop_errorunauthorized1 = /** @type {(inputs: Agent_Desktop_Errorunauthorized1Inputs) => LocalizedString} */ () => {
13
+ return /** @type {LocalizedString} */ (`Agent access token expired (the service may have restarted). Please retry`)
14
+ };
15
+
16
+ /**
17
+ * | output |
18
+ * | --- |
19
+ * | "Agent access token expired (the service may have restarted). Please retry" |
20
+ *
21
+ * @param {Agent_Desktop_Errorunauthorized1Inputs} inputs
22
+ * @param {{ locale?: "zh" | "en" }} options
23
+ * @returns {LocalizedString}
24
+ */
25
+ 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 = {}) => {
26
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
27
+ if (locale === "en") return en_agent_desktop_errorunauthorized1(inputs)
28
+ return zh_agent_desktop_errorunauthorized1(inputs)
29
+ });
30
+ export { agent_desktop_errorunauthorized1 as "agent_desktop_errorUnauthorized" }
@@ -0,0 +1,17 @@
1
+ export { agent_desktop_errorunavailable1 as "agent_desktop_errorUnavailable" };
2
+ export type LocalizedString = import("../runtime.js").LocalizedString;
3
+ export type Agent_Desktop_Errorunavailable1Inputs = {};
4
+ /**
5
+ * | output |
6
+ * | --- |
7
+ * | "Local agent service is not ready. Try again later or restart the app" |
8
+ *
9
+ * @param {Agent_Desktop_Errorunavailable1Inputs} inputs
10
+ * @param {{ locale?: "zh" | "en" }} options
11
+ * @returns {LocalizedString}
12
+ */
13
+ declare const agent_desktop_errorunavailable1: ((inputs?: Agent_Desktop_Errorunavailable1Inputs, options?: {
14
+ locale?: "zh" | "en";
15
+ }) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Desktop_Errorunavailable1Inputs, {
16
+ locale?: "zh" | "en";
17
+ }, {}>;
@@ -0,0 +1,30 @@
1
+ /* eslint-disable */
2
+ import { getLocale, experimentalStaticLocale } from '../runtime.js';
3
+
4
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
5
+
6
+ /** @typedef {{}} Agent_Desktop_Errorunavailable1Inputs */
7
+
8
+ const zh_agent_desktop_errorunavailable1 = /** @type {(inputs: Agent_Desktop_Errorunavailable1Inputs) => LocalizedString} */ () => {
9
+ return /** @type {LocalizedString} */ (`本地 agent 服务未就绪,请稍后重试或重启客户端`)
10
+ };
11
+
12
+ const en_agent_desktop_errorunavailable1 = /** @type {(inputs: Agent_Desktop_Errorunavailable1Inputs) => LocalizedString} */ () => {
13
+ return /** @type {LocalizedString} */ (`Local agent service is not ready. Try again later or restart the app`)
14
+ };
15
+
16
+ /**
17
+ * | output |
18
+ * | --- |
19
+ * | "Local agent service is not ready. Try again later or restart the app" |
20
+ *
21
+ * @param {Agent_Desktop_Errorunavailable1Inputs} inputs
22
+ * @param {{ locale?: "zh" | "en" }} options
23
+ * @returns {LocalizedString}
24
+ */
25
+ 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 = {}) => {
26
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
27
+ if (locale === "en") return en_agent_desktop_errorunavailable1(inputs)
28
+ return zh_agent_desktop_errorunavailable1(inputs)
29
+ });
30
+ export { agent_desktop_errorunavailable1 as "agent_desktop_errorUnavailable" }
@@ -0,0 +1,17 @@
1
+ export { agent_desktop_pagedescription1 as "agent_desktop_pageDescription" };
2
+ export type LocalizedString = import("../runtime.js").LocalizedString;
3
+ export type Agent_Desktop_Pagedescription1Inputs = {};
4
+ /**
5
+ * | output |
6
+ * | --- |
7
+ * | "Authorize a local folder and let AI search, read, and summarize its files (read-only)" |
8
+ *
9
+ * @param {Agent_Desktop_Pagedescription1Inputs} inputs
10
+ * @param {{ locale?: "zh" | "en" }} options
11
+ * @returns {LocalizedString}
12
+ */
13
+ declare const agent_desktop_pagedescription1: ((inputs?: Agent_Desktop_Pagedescription1Inputs, options?: {
14
+ locale?: "zh" | "en";
15
+ }) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Desktop_Pagedescription1Inputs, {
16
+ locale?: "zh" | "en";
17
+ }, {}>;
@@ -0,0 +1,30 @@
1
+ /* eslint-disable */
2
+ import { getLocale, experimentalStaticLocale } from '../runtime.js';
3
+
4
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
5
+
6
+ /** @typedef {{}} Agent_Desktop_Pagedescription1Inputs */
7
+
8
+ const zh_agent_desktop_pagedescription1 = /** @type {(inputs: Agent_Desktop_Pagedescription1Inputs) => LocalizedString} */ () => {
9
+ return /** @type {LocalizedString} */ (`授权本机目录后,AI 可只读检索、阅读并总结其中的文件`)
10
+ };
11
+
12
+ const en_agent_desktop_pagedescription1 = /** @type {(inputs: Agent_Desktop_Pagedescription1Inputs) => LocalizedString} */ () => {
13
+ return /** @type {LocalizedString} */ (`Authorize a local folder and let AI search, read, and summarize its files (read-only)`)
14
+ };
15
+
16
+ /**
17
+ * | output |
18
+ * | --- |
19
+ * | "Authorize a local folder and let AI search, read, and summarize its files (read-only)" |
20
+ *
21
+ * @param {Agent_Desktop_Pagedescription1Inputs} inputs
22
+ * @param {{ locale?: "zh" | "en" }} options
23
+ * @returns {LocalizedString}
24
+ */
25
+ 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 = {}) => {
26
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
27
+ if (locale === "en") return en_agent_desktop_pagedescription1(inputs)
28
+ return zh_agent_desktop_pagedescription1(inputs)
29
+ });
30
+ export { agent_desktop_pagedescription1 as "agent_desktop_pageDescription" }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * | output |
3
+ * | --- |
4
+ * | "Local File Assistant" |
5
+ *
6
+ * @param {Agent_Desktop_TitleInputs} inputs
7
+ * @param {{ locale?: "zh" | "en" }} options
8
+ * @returns {LocalizedString}
9
+ */
10
+ export const agent_desktop_title: ((inputs?: Agent_Desktop_TitleInputs, options?: {
11
+ locale?: "zh" | "en";
12
+ }) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Desktop_TitleInputs, {
13
+ locale?: "zh" | "en";
14
+ }, {}>;
15
+ export type LocalizedString = import("../runtime.js").LocalizedString;
16
+ export type Agent_Desktop_TitleInputs = {};
@@ -0,0 +1,29 @@
1
+ /* eslint-disable */
2
+ import { getLocale, experimentalStaticLocale } from '../runtime.js';
3
+
4
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
5
+
6
+ /** @typedef {{}} Agent_Desktop_TitleInputs */
7
+
8
+ const zh_agent_desktop_title = /** @type {(inputs: Agent_Desktop_TitleInputs) => LocalizedString} */ () => {
9
+ return /** @type {LocalizedString} */ (`本地文件助手`)
10
+ };
11
+
12
+ const en_agent_desktop_title = /** @type {(inputs: Agent_Desktop_TitleInputs) => LocalizedString} */ () => {
13
+ return /** @type {LocalizedString} */ (`Local File Assistant`)
14
+ };
15
+
16
+ /**
17
+ * | output |
18
+ * | --- |
19
+ * | "Local File Assistant" |
20
+ *
21
+ * @param {Agent_Desktop_TitleInputs} inputs
22
+ * @param {{ locale?: "zh" | "en" }} options
23
+ * @returns {LocalizedString}
24
+ */
25
+ 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 = {}) => {
26
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
27
+ if (locale === "en") return en_agent_desktop_title(inputs)
28
+ return zh_agent_desktop_title(inputs)
29
+ });
@@ -0,0 +1,19 @@
1
+ export { agent_desktop_toolcountfiles2 as "agent_desktop_toolCountFiles" };
2
+ export type LocalizedString = import("../runtime.js").LocalizedString;
3
+ export type Agent_Desktop_Toolcountfiles2Inputs = {
4
+ count: NonNullable<unknown>;
5
+ };
6
+ /**
7
+ * | output |
8
+ * | --- |
9
+ * | "{count} items" |
10
+ *
11
+ * @param {Agent_Desktop_Toolcountfiles2Inputs} inputs
12
+ * @param {{ locale?: "zh" | "en" }} options
13
+ * @returns {LocalizedString}
14
+ */
15
+ declare const agent_desktop_toolcountfiles2: ((inputs: Agent_Desktop_Toolcountfiles2Inputs, options?: {
16
+ locale?: "zh" | "en";
17
+ }) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Desktop_Toolcountfiles2Inputs, {
18
+ locale?: "zh" | "en";
19
+ }, {}>;
@@ -0,0 +1,30 @@
1
+ /* eslint-disable */
2
+ import { getLocale, experimentalStaticLocale } from '../runtime.js';
3
+
4
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
5
+
6
+ /** @typedef {{ count: NonNullable<unknown> }} Agent_Desktop_Toolcountfiles2Inputs */
7
+
8
+ const zh_agent_desktop_toolcountfiles2 = /** @type {(inputs: Agent_Desktop_Toolcountfiles2Inputs) => LocalizedString} */ (i) => {
9
+ return /** @type {LocalizedString} */ (`${i?.count} 项`)
10
+ };
11
+
12
+ const en_agent_desktop_toolcountfiles2 = /** @type {(inputs: Agent_Desktop_Toolcountfiles2Inputs) => LocalizedString} */ (i) => {
13
+ return /** @type {LocalizedString} */ (`${i?.count} items`)
14
+ };
15
+
16
+ /**
17
+ * | output |
18
+ * | --- |
19
+ * | "{count} items" |
20
+ *
21
+ * @param {Agent_Desktop_Toolcountfiles2Inputs} inputs
22
+ * @param {{ locale?: "zh" | "en" }} options
23
+ * @returns {LocalizedString}
24
+ */
25
+ 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 = {}) => {
26
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
27
+ if (locale === "en") return en_agent_desktop_toolcountfiles2(inputs)
28
+ return zh_agent_desktop_toolcountfiles2(inputs)
29
+ });
30
+ export { agent_desktop_toolcountfiles2 as "agent_desktop_toolCountFiles" }