@allbluecn/web-app 0.23.6 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/package.json +2 -2
  2. package/src/components/ai/global-harness-sidebar/__tests__/global-ai-prompts.test.ts +0 -2
  3. package/src/components/harness/ai-chat-history/components/conversation-item.tsx +6 -0
  4. package/src/components/harness/ai-chat-history/types.ts +4 -0
  5. package/src/components/harness/chat-ui.tsx +20 -0
  6. package/src/components/harness/composer/harness-composer.tsx +43 -10
  7. package/src/components/harness/composer/harness-engine-control.tsx +129 -0
  8. package/src/components/harness/harness-workbench-page.tsx +129 -17
  9. package/src/components/layout/sidebar-03/__tests__/user-menu-cloud-logout.test.tsx +185 -0
  10. package/src/components/layout/sidebar-03/app-sidebar.tsx +2 -9
  11. package/src/components/layout/sidebar-03/user-menu.tsx +27 -50
  12. package/src/components/shared-kit/auth/auth-client.ts +4 -0
  13. package/src/config/sidebar-routes.tsx +0 -13
  14. package/src/lib/__tests__/desktop-logout.test.ts +239 -0
  15. package/src/lib/__tests__/session.test.ts +85 -2
  16. package/src/lib/auth/__tests__/page-gate.test.ts +37 -1
  17. package/src/lib/auth/anonymous-safe.ts +5 -0
  18. package/src/lib/auth/page-gate.ts +11 -1
  19. package/src/lib/changelog/sdk-versions.ts +1 -1
  20. package/src/lib/desktop-env.ts +25 -0
  21. package/src/lib/desktop-logout.ts +117 -0
  22. package/src/lib/hotkeys/__tests__/registry.test.ts +4 -11
  23. package/src/lib/hotkeys/registry.ts +0 -8
  24. package/src/lib/session.ts +70 -0
  25. package/src/paraglide/README.md +1 -1
  26. package/src/paraglide/messages/_index.d.ts +12 -2
  27. package/src/paraglide/messages/_index.js +12 -2
  28. package/src/paraglide/messages/{agent_desktop_title.d.ts → harness_engine_cloud.d.ts} +5 -5
  29. package/src/paraglide/messages/harness_engine_cloud.js +29 -0
  30. package/src/paraglide/messages/harness_engine_label.d.ts +16 -0
  31. package/src/paraglide/messages/harness_engine_label.js +29 -0
  32. package/src/paraglide/messages/harness_engine_local.d.ts +16 -0
  33. package/src/paraglide/messages/harness_engine_local.js +29 -0
  34. package/src/paraglide/messages/harness_engine_localbadge1.d.ts +17 -0
  35. package/src/paraglide/messages/harness_engine_localbadge1.js +30 -0
  36. package/src/paraglide/messages/harness_engine_localhint1.d.ts +17 -0
  37. package/src/paraglide/messages/harness_engine_localhint1.js +30 -0
  38. package/src/paraglide/messages/harness_engine_localnoattachments2.d.ts +17 -0
  39. package/src/paraglide/messages/harness_engine_localnoattachments2.js +30 -0
  40. package/src/paraglide/messages/harness_engine_switchlocked1.d.ts +17 -0
  41. package/src/paraglide/messages/harness_engine_switchlocked1.js +30 -0
  42. package/src/paraglide/messages/harness_localworkspace_choose1.d.ts +17 -0
  43. package/src/paraglide/messages/harness_localworkspace_choose1.js +30 -0
  44. package/src/paraglide/messages/harness_localworkspace_dialogdescription2.d.ts +17 -0
  45. package/src/paraglide/messages/harness_localworkspace_dialogdescription2.js +30 -0
  46. package/src/paraglide/messages/harness_localworkspace_dialogtitle2.d.ts +17 -0
  47. package/src/paraglide/messages/harness_localworkspace_dialogtitle2.js +30 -0
  48. package/src/paraglide/messages/harness_localworkspace_manage1.d.ts +17 -0
  49. package/src/paraglide/messages/harness_localworkspace_manage1.js +30 -0
  50. package/src/paraglide/messages/harness_localworkspace_required1.d.ts +17 -0
  51. package/src/paraglide/messages/harness_localworkspace_required1.js +30 -0
  52. package/src/routeTree.gen.ts +0 -23
  53. package/src/routes/__tests__/-edition-routing.test.tsx +48 -7
  54. package/src/routes/__tests__/-login-admin-redirect.test.ts +99 -0
  55. package/src/routes/_login/login/route.tsx +18 -3
  56. package/src/routes/_nav/design/canvas/$id/route.tsx +5 -0
  57. package/src/routes/_nav/harness/$threadId.lazy.tsx +19 -2
  58. package/src/routes/_nav/harness/$threadId.tsx +8 -2
  59. package/src/routes/_nav/knowledge/$kbId/route.tsx +6 -2
  60. package/src/routes/_nav/route.tsx +5 -1
  61. package/src/routes/_nav/settings/account/route.tsx +5 -0
  62. package/src/routes/_nav/settings/team/route.tsx +5 -0
  63. package/src/routes/api/auth/$.ts +87 -2
  64. package/src/routes/api/auth/__tests__/auth-session-desktop.test.ts +194 -0
  65. package/src/server/__tests__/chat-conversations.test.ts +13 -3
  66. package/src/server/__tests__/desktop-bootstrap.test.ts +0 -1
  67. package/src/server/ai-gateway/__tests__/local-agent-adapter.test.ts +110 -0
  68. package/src/server/ai-gateway/__tests__/unified-router-local-agent.test.ts +63 -0
  69. package/src/server/ai-gateway/chat-handler.ts +68 -2
  70. package/src/server/ai-gateway/chat-stream-builder.ts +52 -0
  71. package/src/server/ai-gateway/local-agent-adapter.ts +232 -0
  72. package/src/server/ai-gateway/unified-router.ts +49 -6
  73. package/src/server/desktop-guest.ts +5 -1
  74. package/src/server/serverFns/auth/session.ts +19 -10
  75. package/src/server/serverFns/chat/conversations.ts +122 -1
  76. package/src/components/desktop-agent/__tests__/agent-chat.test.tsx +0 -194
  77. package/src/components/desktop-agent/agent-chat.tsx +0 -222
  78. package/src/lib/desktop-agent/__tests__/connection.test.ts +0 -310
  79. package/src/lib/desktop-agent/__tests__/errors.test.ts +0 -43
  80. package/src/lib/desktop-agent/connection.ts +0 -93
  81. package/src/lib/desktop-agent/errors.ts +0 -21
  82. package/src/paraglide/messages/agent_desktop_title.js +0 -29
  83. package/src/paraglide/messages/common_hotkey_desc_agentabort1.d.ts +0 -17
  84. package/src/paraglide/messages/common_hotkey_desc_agentabort1.js +0 -30
  85. package/src/routes/-tests/agent-gate.test.ts +0 -45
  86. package/src/routes/_nav/agent/route.lazy.tsx +0 -63
  87. package/src/routes/_nav/agent/route.tsx +0 -21
  88. /package/src/components/{desktop-agent → harness/local-agent}/__tests__/agent-tool-card.test.tsx +0 -0
  89. /package/src/components/{desktop-agent → harness/local-agent}/__tests__/agent-workspace-card.test.tsx +0 -0
  90. /package/src/components/{desktop-agent → harness/local-agent}/agent-tool-card.tsx +0 -0
  91. /package/src/components/{desktop-agent → harness/local-agent}/agent-workspace-card.tsx +0 -0
@@ -0,0 +1,16 @@
1
+ /**
2
+ * | output |
3
+ * | --- |
4
+ * | "Engine" |
5
+ *
6
+ * @param {Harness_Engine_LabelInputs} inputs
7
+ * @param {{ locale?: "zh" | "en" }} options
8
+ * @returns {LocalizedString}
9
+ */
10
+ export const harness_engine_label: ((inputs?: Harness_Engine_LabelInputs, options?: {
11
+ locale?: "zh" | "en";
12
+ }) => LocalizedString) & import("../runtime.js").MessageMetadata<Harness_Engine_LabelInputs, {
13
+ locale?: "zh" | "en";
14
+ }, {}>;
15
+ export type LocalizedString = import("../runtime.js").LocalizedString;
16
+ export type Harness_Engine_LabelInputs = {};
@@ -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 {{}} Harness_Engine_LabelInputs */
7
+
8
+ const zh_harness_engine_label = /** @type {(inputs: Harness_Engine_LabelInputs) => LocalizedString} */ () => {
9
+ return /** @type {LocalizedString} */ (`执行引擎`)
10
+ };
11
+
12
+ const en_harness_engine_label = /** @type {(inputs: Harness_Engine_LabelInputs) => LocalizedString} */ () => {
13
+ return /** @type {LocalizedString} */ (`Engine`)
14
+ };
15
+
16
+ /**
17
+ * | output |
18
+ * | --- |
19
+ * | "Engine" |
20
+ *
21
+ * @param {Harness_Engine_LabelInputs} inputs
22
+ * @param {{ locale?: "zh" | "en" }} options
23
+ * @returns {LocalizedString}
24
+ */
25
+ export const harness_engine_label = /** @type {((inputs?: Harness_Engine_LabelInputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Harness_Engine_LabelInputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
26
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
27
+ if (locale === "en") return en_harness_engine_label(inputs)
28
+ return zh_harness_engine_label(inputs)
29
+ });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * | output |
3
+ * | --- |
4
+ * | "Local workspace" |
5
+ *
6
+ * @param {Harness_Engine_LocalInputs} inputs
7
+ * @param {{ locale?: "zh" | "en" }} options
8
+ * @returns {LocalizedString}
9
+ */
10
+ export const harness_engine_local: ((inputs?: Harness_Engine_LocalInputs, options?: {
11
+ locale?: "zh" | "en";
12
+ }) => LocalizedString) & import("../runtime.js").MessageMetadata<Harness_Engine_LocalInputs, {
13
+ locale?: "zh" | "en";
14
+ }, {}>;
15
+ export type LocalizedString = import("../runtime.js").LocalizedString;
16
+ export type Harness_Engine_LocalInputs = {};
@@ -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 {{}} Harness_Engine_LocalInputs */
7
+
8
+ const zh_harness_engine_local = /** @type {(inputs: Harness_Engine_LocalInputs) => LocalizedString} */ () => {
9
+ return /** @type {LocalizedString} */ (`本地工作区`)
10
+ };
11
+
12
+ const en_harness_engine_local = /** @type {(inputs: Harness_Engine_LocalInputs) => LocalizedString} */ () => {
13
+ return /** @type {LocalizedString} */ (`Local workspace`)
14
+ };
15
+
16
+ /**
17
+ * | output |
18
+ * | --- |
19
+ * | "Local workspace" |
20
+ *
21
+ * @param {Harness_Engine_LocalInputs} inputs
22
+ * @param {{ locale?: "zh" | "en" }} options
23
+ * @returns {LocalizedString}
24
+ */
25
+ export const harness_engine_local = /** @type {((inputs?: Harness_Engine_LocalInputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Harness_Engine_LocalInputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
26
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
27
+ if (locale === "en") return en_harness_engine_local(inputs)
28
+ return zh_harness_engine_local(inputs)
29
+ });
@@ -0,0 +1,17 @@
1
+ export { harness_engine_localbadge1 as "harness_engine_localBadge" };
2
+ export type LocalizedString = import("../runtime.js").LocalizedString;
3
+ export type Harness_Engine_Localbadge1Inputs = {};
4
+ /**
5
+ * | output |
6
+ * | --- |
7
+ * | "Local read-only" |
8
+ *
9
+ * @param {Harness_Engine_Localbadge1Inputs} inputs
10
+ * @param {{ locale?: "zh" | "en" }} options
11
+ * @returns {LocalizedString}
12
+ */
13
+ declare const harness_engine_localbadge1: ((inputs?: Harness_Engine_Localbadge1Inputs, options?: {
14
+ locale?: "zh" | "en";
15
+ }) => LocalizedString) & import("../runtime.js").MessageMetadata<Harness_Engine_Localbadge1Inputs, {
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 {{}} Harness_Engine_Localbadge1Inputs */
7
+
8
+ const zh_harness_engine_localbadge1 = /** @type {(inputs: Harness_Engine_Localbadge1Inputs) => LocalizedString} */ () => {
9
+ return /** @type {LocalizedString} */ (`本地只读`)
10
+ };
11
+
12
+ const en_harness_engine_localbadge1 = /** @type {(inputs: Harness_Engine_Localbadge1Inputs) => LocalizedString} */ () => {
13
+ return /** @type {LocalizedString} */ (`Local read-only`)
14
+ };
15
+
16
+ /**
17
+ * | output |
18
+ * | --- |
19
+ * | "Local read-only" |
20
+ *
21
+ * @param {Harness_Engine_Localbadge1Inputs} inputs
22
+ * @param {{ locale?: "zh" | "en" }} options
23
+ * @returns {LocalizedString}
24
+ */
25
+ const harness_engine_localbadge1 = /** @type {((inputs?: Harness_Engine_Localbadge1Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Harness_Engine_Localbadge1Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
26
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
27
+ if (locale === "en") return en_harness_engine_localbadge1(inputs)
28
+ return zh_harness_engine_localbadge1(inputs)
29
+ });
30
+ export { harness_engine_localbadge1 as "harness_engine_localBadge" }
@@ -0,0 +1,17 @@
1
+ export { harness_engine_localhint1 as "harness_engine_localHint" };
2
+ export type LocalizedString = import("../runtime.js").LocalizedString;
3
+ export type Harness_Engine_Localhint1Inputs = {};
4
+ /**
5
+ * | output |
6
+ * | --- |
7
+ * | "pi only reads authorized folders; files are never uploaded" |
8
+ *
9
+ * @param {Harness_Engine_Localhint1Inputs} inputs
10
+ * @param {{ locale?: "zh" | "en" }} options
11
+ * @returns {LocalizedString}
12
+ */
13
+ declare const harness_engine_localhint1: ((inputs?: Harness_Engine_Localhint1Inputs, options?: {
14
+ locale?: "zh" | "en";
15
+ }) => LocalizedString) & import("../runtime.js").MessageMetadata<Harness_Engine_Localhint1Inputs, {
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 {{}} Harness_Engine_Localhint1Inputs */
7
+
8
+ const zh_harness_engine_localhint1 = /** @type {(inputs: Harness_Engine_Localhint1Inputs) => LocalizedString} */ () => {
9
+ return /** @type {LocalizedString} */ (`pi 只读取授权目录,不上传文件`)
10
+ };
11
+
12
+ const en_harness_engine_localhint1 = /** @type {(inputs: Harness_Engine_Localhint1Inputs) => LocalizedString} */ () => {
13
+ return /** @type {LocalizedString} */ (`pi only reads authorized folders; files are never uploaded`)
14
+ };
15
+
16
+ /**
17
+ * | output |
18
+ * | --- |
19
+ * | "pi only reads authorized folders; files are never uploaded" |
20
+ *
21
+ * @param {Harness_Engine_Localhint1Inputs} inputs
22
+ * @param {{ locale?: "zh" | "en" }} options
23
+ * @returns {LocalizedString}
24
+ */
25
+ const harness_engine_localhint1 = /** @type {((inputs?: Harness_Engine_Localhint1Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Harness_Engine_Localhint1Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
26
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
27
+ if (locale === "en") return en_harness_engine_localhint1(inputs)
28
+ return zh_harness_engine_localhint1(inputs)
29
+ });
30
+ export { harness_engine_localhint1 as "harness_engine_localHint" }
@@ -0,0 +1,17 @@
1
+ export { harness_engine_localnoattachments2 as "harness_engine_localNoAttachments" };
2
+ export type LocalizedString = import("../runtime.js").LocalizedString;
3
+ export type Harness_Engine_Localnoattachments2Inputs = {};
4
+ /**
5
+ * | output |
6
+ * | --- |
7
+ * | "Local Agent does not support attachments yet" |
8
+ *
9
+ * @param {Harness_Engine_Localnoattachments2Inputs} inputs
10
+ * @param {{ locale?: "zh" | "en" }} options
11
+ * @returns {LocalizedString}
12
+ */
13
+ declare const harness_engine_localnoattachments2: ((inputs?: Harness_Engine_Localnoattachments2Inputs, options?: {
14
+ locale?: "zh" | "en";
15
+ }) => LocalizedString) & import("../runtime.js").MessageMetadata<Harness_Engine_Localnoattachments2Inputs, {
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 {{}} Harness_Engine_Localnoattachments2Inputs */
7
+
8
+ const zh_harness_engine_localnoattachments2 = /** @type {(inputs: Harness_Engine_Localnoattachments2Inputs) => LocalizedString} */ () => {
9
+ return /** @type {LocalizedString} */ (`本地 Agent 暂不支持附件`)
10
+ };
11
+
12
+ const en_harness_engine_localnoattachments2 = /** @type {(inputs: Harness_Engine_Localnoattachments2Inputs) => LocalizedString} */ () => {
13
+ return /** @type {LocalizedString} */ (`Local Agent does not support attachments yet`)
14
+ };
15
+
16
+ /**
17
+ * | output |
18
+ * | --- |
19
+ * | "Local Agent does not support attachments yet" |
20
+ *
21
+ * @param {Harness_Engine_Localnoattachments2Inputs} inputs
22
+ * @param {{ locale?: "zh" | "en" }} options
23
+ * @returns {LocalizedString}
24
+ */
25
+ const harness_engine_localnoattachments2 = /** @type {((inputs?: Harness_Engine_Localnoattachments2Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Harness_Engine_Localnoattachments2Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
26
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
27
+ if (locale === "en") return en_harness_engine_localnoattachments2(inputs)
28
+ return zh_harness_engine_localnoattachments2(inputs)
29
+ });
30
+ export { harness_engine_localnoattachments2 as "harness_engine_localNoAttachments" }
@@ -0,0 +1,17 @@
1
+ export { harness_engine_switchlocked1 as "harness_engine_switchLocked" };
2
+ export type LocalizedString = import("../runtime.js").LocalizedString;
3
+ export type Harness_Engine_Switchlocked1Inputs = {};
4
+ /**
5
+ * | output |
6
+ * | --- |
7
+ * | "This thread already has messages; start a new thread to switch engines" |
8
+ *
9
+ * @param {Harness_Engine_Switchlocked1Inputs} inputs
10
+ * @param {{ locale?: "zh" | "en" }} options
11
+ * @returns {LocalizedString}
12
+ */
13
+ declare const harness_engine_switchlocked1: ((inputs?: Harness_Engine_Switchlocked1Inputs, options?: {
14
+ locale?: "zh" | "en";
15
+ }) => LocalizedString) & import("../runtime.js").MessageMetadata<Harness_Engine_Switchlocked1Inputs, {
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 {{}} Harness_Engine_Switchlocked1Inputs */
7
+
8
+ const zh_harness_engine_switchlocked1 = /** @type {(inputs: Harness_Engine_Switchlocked1Inputs) => LocalizedString} */ () => {
9
+ return /** @type {LocalizedString} */ (`该会话已有消息,切换引擎请新建会话`)
10
+ };
11
+
12
+ const en_harness_engine_switchlocked1 = /** @type {(inputs: Harness_Engine_Switchlocked1Inputs) => LocalizedString} */ () => {
13
+ return /** @type {LocalizedString} */ (`This thread already has messages; start a new thread to switch engines`)
14
+ };
15
+
16
+ /**
17
+ * | output |
18
+ * | --- |
19
+ * | "This thread already has messages; start a new thread to switch engines" |
20
+ *
21
+ * @param {Harness_Engine_Switchlocked1Inputs} inputs
22
+ * @param {{ locale?: "zh" | "en" }} options
23
+ * @returns {LocalizedString}
24
+ */
25
+ const harness_engine_switchlocked1 = /** @type {((inputs?: Harness_Engine_Switchlocked1Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Harness_Engine_Switchlocked1Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
26
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
27
+ if (locale === "en") return en_harness_engine_switchlocked1(inputs)
28
+ return zh_harness_engine_switchlocked1(inputs)
29
+ });
30
+ export { harness_engine_switchlocked1 as "harness_engine_switchLocked" }
@@ -0,0 +1,17 @@
1
+ export { harness_localworkspace_choose1 as "harness_localWorkspace_choose" };
2
+ export type LocalizedString = import("../runtime.js").LocalizedString;
3
+ export type Harness_Localworkspace_Choose1Inputs = {};
4
+ /**
5
+ * | output |
6
+ * | --- |
7
+ * | "Choose folder" |
8
+ *
9
+ * @param {Harness_Localworkspace_Choose1Inputs} inputs
10
+ * @param {{ locale?: "zh" | "en" }} options
11
+ * @returns {LocalizedString}
12
+ */
13
+ declare const harness_localworkspace_choose1: ((inputs?: Harness_Localworkspace_Choose1Inputs, options?: {
14
+ locale?: "zh" | "en";
15
+ }) => LocalizedString) & import("../runtime.js").MessageMetadata<Harness_Localworkspace_Choose1Inputs, {
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 {{}} Harness_Localworkspace_Choose1Inputs */
7
+
8
+ const zh_harness_localworkspace_choose1 = /** @type {(inputs: Harness_Localworkspace_Choose1Inputs) => LocalizedString} */ () => {
9
+ return /** @type {LocalizedString} */ (`选择目录`)
10
+ };
11
+
12
+ const en_harness_localworkspace_choose1 = /** @type {(inputs: Harness_Localworkspace_Choose1Inputs) => LocalizedString} */ () => {
13
+ return /** @type {LocalizedString} */ (`Choose folder`)
14
+ };
15
+
16
+ /**
17
+ * | output |
18
+ * | --- |
19
+ * | "Choose folder" |
20
+ *
21
+ * @param {Harness_Localworkspace_Choose1Inputs} inputs
22
+ * @param {{ locale?: "zh" | "en" }} options
23
+ * @returns {LocalizedString}
24
+ */
25
+ const harness_localworkspace_choose1 = /** @type {((inputs?: Harness_Localworkspace_Choose1Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Harness_Localworkspace_Choose1Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
26
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
27
+ if (locale === "en") return en_harness_localworkspace_choose1(inputs)
28
+ return zh_harness_localworkspace_choose1(inputs)
29
+ });
30
+ export { harness_localworkspace_choose1 as "harness_localWorkspace_choose" }
@@ -0,0 +1,17 @@
1
+ export { harness_localworkspace_dialogdescription2 as "harness_localWorkspace_dialogDescription" };
2
+ export type LocalizedString = import("../runtime.js").LocalizedString;
3
+ export type Harness_Localworkspace_Dialogdescription2Inputs = {};
4
+ /**
5
+ * | output |
6
+ * | --- |
7
+ * | "pi can only read the folders listed below; revoke access at any time." |
8
+ *
9
+ * @param {Harness_Localworkspace_Dialogdescription2Inputs} inputs
10
+ * @param {{ locale?: "zh" | "en" }} options
11
+ * @returns {LocalizedString}
12
+ */
13
+ declare const harness_localworkspace_dialogdescription2: ((inputs?: Harness_Localworkspace_Dialogdescription2Inputs, options?: {
14
+ locale?: "zh" | "en";
15
+ }) => LocalizedString) & import("../runtime.js").MessageMetadata<Harness_Localworkspace_Dialogdescription2Inputs, {
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 {{}} Harness_Localworkspace_Dialogdescription2Inputs */
7
+
8
+ const zh_harness_localworkspace_dialogdescription2 = /** @type {(inputs: Harness_Localworkspace_Dialogdescription2Inputs) => LocalizedString} */ () => {
9
+ return /** @type {LocalizedString} */ (`pi 只能读取下方列出的目录;可随时撤销授权。`)
10
+ };
11
+
12
+ const en_harness_localworkspace_dialogdescription2 = /** @type {(inputs: Harness_Localworkspace_Dialogdescription2Inputs) => LocalizedString} */ () => {
13
+ return /** @type {LocalizedString} */ (`pi can only read the folders listed below; revoke access at any time.`)
14
+ };
15
+
16
+ /**
17
+ * | output |
18
+ * | --- |
19
+ * | "pi can only read the folders listed below; revoke access at any time." |
20
+ *
21
+ * @param {Harness_Localworkspace_Dialogdescription2Inputs} inputs
22
+ * @param {{ locale?: "zh" | "en" }} options
23
+ * @returns {LocalizedString}
24
+ */
25
+ const harness_localworkspace_dialogdescription2 = /** @type {((inputs?: Harness_Localworkspace_Dialogdescription2Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Harness_Localworkspace_Dialogdescription2Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
26
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
27
+ if (locale === "en") return en_harness_localworkspace_dialogdescription2(inputs)
28
+ return zh_harness_localworkspace_dialogdescription2(inputs)
29
+ });
30
+ export { harness_localworkspace_dialogdescription2 as "harness_localWorkspace_dialogDescription" }
@@ -0,0 +1,17 @@
1
+ export { harness_localworkspace_dialogtitle2 as "harness_localWorkspace_dialogTitle" };
2
+ export type LocalizedString = import("../runtime.js").LocalizedString;
3
+ export type Harness_Localworkspace_Dialogtitle2Inputs = {};
4
+ /**
5
+ * | output |
6
+ * | --- |
7
+ * | "Local workspace" |
8
+ *
9
+ * @param {Harness_Localworkspace_Dialogtitle2Inputs} inputs
10
+ * @param {{ locale?: "zh" | "en" }} options
11
+ * @returns {LocalizedString}
12
+ */
13
+ declare const harness_localworkspace_dialogtitle2: ((inputs?: Harness_Localworkspace_Dialogtitle2Inputs, options?: {
14
+ locale?: "zh" | "en";
15
+ }) => LocalizedString) & import("../runtime.js").MessageMetadata<Harness_Localworkspace_Dialogtitle2Inputs, {
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 {{}} Harness_Localworkspace_Dialogtitle2Inputs */
7
+
8
+ const zh_harness_localworkspace_dialogtitle2 = /** @type {(inputs: Harness_Localworkspace_Dialogtitle2Inputs) => LocalizedString} */ () => {
9
+ return /** @type {LocalizedString} */ (`本地工作区`)
10
+ };
11
+
12
+ const en_harness_localworkspace_dialogtitle2 = /** @type {(inputs: Harness_Localworkspace_Dialogtitle2Inputs) => LocalizedString} */ () => {
13
+ return /** @type {LocalizedString} */ (`Local workspace`)
14
+ };
15
+
16
+ /**
17
+ * | output |
18
+ * | --- |
19
+ * | "Local workspace" |
20
+ *
21
+ * @param {Harness_Localworkspace_Dialogtitle2Inputs} inputs
22
+ * @param {{ locale?: "zh" | "en" }} options
23
+ * @returns {LocalizedString}
24
+ */
25
+ const harness_localworkspace_dialogtitle2 = /** @type {((inputs?: Harness_Localworkspace_Dialogtitle2Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Harness_Localworkspace_Dialogtitle2Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
26
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
27
+ if (locale === "en") return en_harness_localworkspace_dialogtitle2(inputs)
28
+ return zh_harness_localworkspace_dialogtitle2(inputs)
29
+ });
30
+ export { harness_localworkspace_dialogtitle2 as "harness_localWorkspace_dialogTitle" }
@@ -0,0 +1,17 @@
1
+ export { harness_localworkspace_manage1 as "harness_localWorkspace_manage" };
2
+ export type LocalizedString = import("../runtime.js").LocalizedString;
3
+ export type Harness_Localworkspace_Manage1Inputs = {};
4
+ /**
5
+ * | output |
6
+ * | --- |
7
+ * | "Manage authorized folders" |
8
+ *
9
+ * @param {Harness_Localworkspace_Manage1Inputs} inputs
10
+ * @param {{ locale?: "zh" | "en" }} options
11
+ * @returns {LocalizedString}
12
+ */
13
+ declare const harness_localworkspace_manage1: ((inputs?: Harness_Localworkspace_Manage1Inputs, options?: {
14
+ locale?: "zh" | "en";
15
+ }) => LocalizedString) & import("../runtime.js").MessageMetadata<Harness_Localworkspace_Manage1Inputs, {
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 {{}} Harness_Localworkspace_Manage1Inputs */
7
+
8
+ const zh_harness_localworkspace_manage1 = /** @type {(inputs: Harness_Localworkspace_Manage1Inputs) => LocalizedString} */ () => {
9
+ return /** @type {LocalizedString} */ (`管理授权目录`)
10
+ };
11
+
12
+ const en_harness_localworkspace_manage1 = /** @type {(inputs: Harness_Localworkspace_Manage1Inputs) => LocalizedString} */ () => {
13
+ return /** @type {LocalizedString} */ (`Manage authorized folders`)
14
+ };
15
+
16
+ /**
17
+ * | output |
18
+ * | --- |
19
+ * | "Manage authorized folders" |
20
+ *
21
+ * @param {Harness_Localworkspace_Manage1Inputs} inputs
22
+ * @param {{ locale?: "zh" | "en" }} options
23
+ * @returns {LocalizedString}
24
+ */
25
+ const harness_localworkspace_manage1 = /** @type {((inputs?: Harness_Localworkspace_Manage1Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Harness_Localworkspace_Manage1Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
26
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
27
+ if (locale === "en") return en_harness_localworkspace_manage1(inputs)
28
+ return zh_harness_localworkspace_manage1(inputs)
29
+ });
30
+ export { harness_localworkspace_manage1 as "harness_localWorkspace_manage" }
@@ -0,0 +1,17 @@
1
+ export { harness_localworkspace_required1 as "harness_localWorkspace_required" };
2
+ export type LocalizedString = import("../runtime.js").LocalizedString;
3
+ export type Harness_Localworkspace_Required1Inputs = {};
4
+ /**
5
+ * | output |
6
+ * | --- |
7
+ * | "Choose a local workspace first" |
8
+ *
9
+ * @param {Harness_Localworkspace_Required1Inputs} inputs
10
+ * @param {{ locale?: "zh" | "en" }} options
11
+ * @returns {LocalizedString}
12
+ */
13
+ declare const harness_localworkspace_required1: ((inputs?: Harness_Localworkspace_Required1Inputs, options?: {
14
+ locale?: "zh" | "en";
15
+ }) => LocalizedString) & import("../runtime.js").MessageMetadata<Harness_Localworkspace_Required1Inputs, {
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 {{}} Harness_Localworkspace_Required1Inputs */
7
+
8
+ const zh_harness_localworkspace_required1 = /** @type {(inputs: Harness_Localworkspace_Required1Inputs) => LocalizedString} */ () => {
9
+ return /** @type {LocalizedString} */ (`请先选择本地工作目录`)
10
+ };
11
+
12
+ const en_harness_localworkspace_required1 = /** @type {(inputs: Harness_Localworkspace_Required1Inputs) => LocalizedString} */ () => {
13
+ return /** @type {LocalizedString} */ (`Choose a local workspace first`)
14
+ };
15
+
16
+ /**
17
+ * | output |
18
+ * | --- |
19
+ * | "Choose a local workspace first" |
20
+ *
21
+ * @param {Harness_Localworkspace_Required1Inputs} inputs
22
+ * @param {{ locale?: "zh" | "en" }} options
23
+ * @returns {LocalizedString}
24
+ */
25
+ const harness_localworkspace_required1 = /** @type {((inputs?: Harness_Localworkspace_Required1Inputs, options?: { locale?: "zh" | "en" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Harness_Localworkspace_Required1Inputs, { locale?: "zh" | "en" }, {}>} */ ((inputs = {}, options = {}) => {
26
+ const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
27
+ if (locale === "en") return en_harness_localworkspace_required1(inputs)
28
+ return zh_harness_localworkspace_required1(inputs)
29
+ });
30
+ export { harness_localworkspace_required1 as "harness_localWorkspace_required" }
@@ -23,7 +23,6 @@ import { Route as LoginLoginRouteRouteImport } from './routes/_login/login/route
23
23
  import { Route as LoginRegisterRouteRouteImport } from './routes/_login/register/route'
24
24
  import { Route as LoginResetPasswordRouteRouteImport } from './routes/_login/reset-password/route'
25
25
  import { Route as LoginVerifyEmailRouteRouteImport } from './routes/_login/verify-email/route'
26
- import { Route as NavAgentRouteRouteImport } from './routes/_nav/agent/route'
27
26
  import { Route as NavAppsRouteRouteImport } from './routes/_nav/apps/route'
28
27
  import { Route as NavBugsRouteRouteImport } from './routes/_nav/bugs/route'
29
28
  import { Route as NavChangelogRouteRouteImport } from './routes/_nav/changelog/route'
@@ -252,13 +251,6 @@ const LoginVerifyEmailRouteRoute = LoginVerifyEmailRouteRouteImport.update({
252
251
  } as any).lazy(() =>
253
252
  import('./routes/_login/verify-email/route.lazy').then((d) => d.Route),
254
253
  )
255
- const NavAgentRouteRoute = NavAgentRouteRouteImport.update({
256
- id: '/agent',
257
- path: '/agent',
258
- getParentRoute: () => NavRouteRoute,
259
- } as any).lazy(() =>
260
- import('./routes/_nav/agent/route.lazy').then((d) => d.Route),
261
- )
262
254
  const NavAppsRouteRoute = NavAppsRouteRouteImport.update({
263
255
  id: '/apps',
264
256
  path: '/apps',
@@ -1131,7 +1123,6 @@ export interface FileRoutesByFullPath {
1131
1123
  '/register': typeof LoginRegisterRouteRoute
1132
1124
  '/reset-password': typeof LoginResetPasswordRouteRoute
1133
1125
  '/verify-email': typeof LoginVerifyEmailRouteRoute
1134
- '/agent': typeof NavAgentRouteRoute
1135
1126
  '/apps': typeof NavAppsRouteRouteWithChildren
1136
1127
  '/bugs': typeof NavBugsRouteRouteWithChildren
1137
1128
  '/changelog': typeof NavChangelogRouteRoute
@@ -1271,7 +1262,6 @@ export interface FileRoutesByTo {
1271
1262
  '/register': typeof LoginRegisterRouteRoute
1272
1263
  '/reset-password': typeof LoginResetPasswordRouteRoute
1273
1264
  '/verify-email': typeof LoginVerifyEmailRouteRoute
1274
- '/agent': typeof NavAgentRouteRoute
1275
1265
  '/apps': typeof NavAppsRouteRouteWithChildren
1276
1266
  '/changelog': typeof NavChangelogRouteRoute
1277
1267
  '/dashboard': typeof NavDashboardRouteRoute
@@ -1400,7 +1390,6 @@ export interface FileRoutesById {
1400
1390
  '/_login/register': typeof LoginRegisterRouteRoute
1401
1391
  '/_login/reset-password': typeof LoginResetPasswordRouteRoute
1402
1392
  '/_login/verify-email': typeof LoginVerifyEmailRouteRoute
1403
- '/_nav/agent': typeof NavAgentRouteRoute
1404
1393
  '/_nav/apps': typeof NavAppsRouteRouteWithChildren
1405
1394
  '/_nav/bugs': typeof NavBugsRouteRouteWithChildren
1406
1395
  '/_nav/changelog': typeof NavChangelogRouteRoute
@@ -1542,7 +1531,6 @@ export interface FileRouteTypes {
1542
1531
  | '/register'
1543
1532
  | '/reset-password'
1544
1533
  | '/verify-email'
1545
- | '/agent'
1546
1534
  | '/apps'
1547
1535
  | '/bugs'
1548
1536
  | '/changelog'
@@ -1682,7 +1670,6 @@ export interface FileRouteTypes {
1682
1670
  | '/register'
1683
1671
  | '/reset-password'
1684
1672
  | '/verify-email'
1685
- | '/agent'
1686
1673
  | '/apps'
1687
1674
  | '/changelog'
1688
1675
  | '/dashboard'
@@ -1810,7 +1797,6 @@ export interface FileRouteTypes {
1810
1797
  | '/_login/register'
1811
1798
  | '/_login/reset-password'
1812
1799
  | '/_login/verify-email'
1813
- | '/_nav/agent'
1814
1800
  | '/_nav/apps'
1815
1801
  | '/_nav/bugs'
1816
1802
  | '/_nav/changelog'
@@ -2073,13 +2059,6 @@ declare module '@tanstack/react-router' {
2073
2059
  preLoaderRoute: typeof LoginVerifyEmailRouteRouteImport
2074
2060
  parentRoute: typeof LoginRouteRoute
2075
2061
  }
2076
- '/_nav/agent': {
2077
- id: '/_nav/agent'
2078
- path: '/agent'
2079
- fullPath: '/agent'
2080
- preLoaderRoute: typeof NavAgentRouteRouteImport
2081
- parentRoute: typeof NavRouteRoute
2082
- }
2083
2062
  '/_nav/apps': {
2084
2063
  id: '/_nav/apps'
2085
2064
  path: '/apps'
@@ -3372,7 +3351,6 @@ const NavChatRouteWithChildren =
3372
3351
  NavChatRoute._addFileChildren(NavChatRouteChildren)
3373
3352
 
3374
3353
  interface NavRouteRouteChildren {
3375
- NavAgentRouteRoute: typeof NavAgentRouteRoute
3376
3354
  NavAppsRouteRoute: typeof NavAppsRouteRouteWithChildren
3377
3355
  NavBugsRouteRoute: typeof NavBugsRouteRouteWithChildren
3378
3356
  NavChangelogRouteRoute: typeof NavChangelogRouteRoute
@@ -3394,7 +3372,6 @@ interface NavRouteRouteChildren {
3394
3372
  }
3395
3373
 
3396
3374
  const NavRouteRouteChildren: NavRouteRouteChildren = {
3397
- NavAgentRouteRoute: NavAgentRouteRoute,
3398
3375
  NavAppsRouteRoute: NavAppsRouteRouteWithChildren,
3399
3376
  NavBugsRouteRoute: NavBugsRouteRouteWithChildren,
3400
3377
  NavChangelogRouteRoute: NavChangelogRouteRoute,