@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.
- package/package.json +3 -3
- package/src/components/ai/global-harness-sidebar/__tests__/global-ai-prompts.test.ts +2 -0
- package/src/components/desktop/__tests__/cloud-login-rollback.test.tsx +161 -0
- package/src/components/desktop/cloud-login.tsx +29 -26
- package/src/components/desktop-agent/__tests__/agent-chat.test.tsx +194 -0
- package/src/components/desktop-agent/__tests__/agent-tool-card.test.tsx +138 -0
- package/src/components/desktop-agent/__tests__/agent-workspace-card.test.tsx +189 -0
- package/src/components/desktop-agent/agent-chat.tsx +221 -0
- package/src/components/desktop-agent/agent-tool-card.tsx +185 -0
- package/src/components/desktop-agent/agent-workspace-card.tsx +176 -0
- package/src/components/layout/sidebar-03/app-sidebar.tsx +9 -2
- package/src/config/sidebar-routes.tsx +14 -1
- package/src/lib/changelog/sdk-versions.ts +1 -1
- package/src/lib/desktop-agent/__tests__/connection.test.ts +223 -0
- package/src/lib/desktop-agent/__tests__/errors.test.ts +43 -0
- package/src/lib/desktop-agent/__tests__/tool-result.test.ts +163 -0
- package/src/lib/desktop-agent/__tests__/use-desktop-agent-presence.test.tsx +181 -0
- package/src/lib/desktop-agent/availability.ts +39 -0
- package/src/lib/desktop-agent/connection.ts +72 -0
- package/src/lib/desktop-agent/errors.ts +21 -0
- package/src/lib/desktop-agent/tool-result.ts +170 -0
- package/src/lib/desktop-agent/use-desktop-agent-presence.ts +64 -0
- package/src/lib/desktop-bridge-types.ts +22 -1
- package/src/lib/hotkeys/__tests__/registry.test.ts +11 -4
- package/src/lib/hotkeys/registry.ts +9 -1
- package/src/lib/queries/README.md +1 -0
- package/src/lib/queries/__tests__/desktop-agent-queries.test.ts +80 -0
- package/src/lib/queries/desktop-agent.ts +25 -0
- package/src/paraglide/messages/_index.d.ts +42 -0
- package/src/paraglide/messages/_index.js +42 -0
- package/src/paraglide/messages/agent_desktop_chatcwd1.d.ts +19 -0
- package/src/paraglide/messages/agent_desktop_chatcwd1.js +30 -0
- package/src/paraglide/messages/agent_desktop_chatemptyhint2.d.ts +17 -0
- package/src/paraglide/messages/agent_desktop_chatemptyhint2.js +30 -0
- package/src/paraglide/messages/agent_desktop_chatemptytitle2.d.ts +17 -0
- package/src/paraglide/messages/agent_desktop_chatemptytitle2.js +30 -0
- package/src/paraglide/messages/agent_desktop_chatindependenthint2.d.ts +17 -0
- package/src/paraglide/messages/agent_desktop_chatindependenthint2.js +30 -0
- package/src/paraglide/messages/agent_desktop_chatnoworkspace2.d.ts +17 -0
- package/src/paraglide/messages/agent_desktop_chatnoworkspace2.js +30 -0
- package/src/paraglide/messages/agent_desktop_chatplaceholder1.d.ts +17 -0
- package/src/paraglide/messages/agent_desktop_chatplaceholder1.js +30 -0
- package/src/paraglide/messages/agent_desktop_chatsend1.d.ts +17 -0
- package/src/paraglide/messages/agent_desktop_chatsend1.js +30 -0
- package/src/paraglide/messages/agent_desktop_chatstop1.d.ts +17 -0
- package/src/paraglide/messages/agent_desktop_chatstop1.js +30 -0
- package/src/paraglide/messages/agent_desktop_chatthinking1.d.ts +17 -0
- package/src/paraglide/messages/agent_desktop_chatthinking1.js +30 -0
- package/src/paraglide/messages/agent_desktop_errorconnection1.d.ts +17 -0
- package/src/paraglide/messages/agent_desktop_errorconnection1.js +30 -0
- package/src/paraglide/messages/agent_desktop_errorforbidden1.d.ts +17 -0
- package/src/paraglide/messages/agent_desktop_errorforbidden1.js +30 -0
- package/src/paraglide/messages/agent_desktop_errorgeneric1.d.ts +19 -0
- package/src/paraglide/messages/agent_desktop_errorgeneric1.js +30 -0
- package/src/paraglide/messages/agent_desktop_errorunauthorized1.d.ts +17 -0
- package/src/paraglide/messages/agent_desktop_errorunauthorized1.js +30 -0
- package/src/paraglide/messages/agent_desktop_errorunavailable1.d.ts +17 -0
- package/src/paraglide/messages/agent_desktop_errorunavailable1.js +30 -0
- package/src/paraglide/messages/agent_desktop_pagedescription1.d.ts +17 -0
- package/src/paraglide/messages/agent_desktop_pagedescription1.js +30 -0
- package/src/paraglide/messages/agent_desktop_title.d.ts +16 -0
- package/src/paraglide/messages/agent_desktop_title.js +29 -0
- package/src/paraglide/messages/agent_desktop_toolcountfiles2.d.ts +19 -0
- package/src/paraglide/messages/agent_desktop_toolcountfiles2.js +30 -0
- package/src/paraglide/messages/agent_desktop_toolcounthits2.d.ts +19 -0
- package/src/paraglide/messages/agent_desktop_toolcounthits2.js +30 -0
- package/src/paraglide/messages/agent_desktop_toolcountlines2.d.ts +19 -0
- package/src/paraglide/messages/agent_desktop_toolcountlines2.js +30 -0
- package/src/paraglide/messages/agent_desktop_toolemptydir2.d.ts +17 -0
- package/src/paraglide/messages/agent_desktop_toolemptydir2.js +30 -0
- package/src/paraglide/messages/agent_desktop_toolerror1.d.ts +17 -0
- package/src/paraglide/messages/agent_desktop_toolerror1.js +30 -0
- package/src/paraglide/messages/agent_desktop_toolfind1.d.ts +19 -0
- package/src/paraglide/messages/agent_desktop_toolfind1.js +30 -0
- package/src/paraglide/messages/agent_desktop_toolgrep1.d.ts +19 -0
- package/src/paraglide/messages/agent_desktop_toolgrep1.js +30 -0
- package/src/paraglide/messages/agent_desktop_toolls1.d.ts +19 -0
- package/src/paraglide/messages/agent_desktop_toolls1.js +30 -0
- package/src/paraglide/messages/agent_desktop_toolmore1.d.ts +19 -0
- package/src/paraglide/messages/agent_desktop_toolmore1.js +30 -0
- package/src/paraglide/messages/agent_desktop_toolnomatches2.d.ts +17 -0
- package/src/paraglide/messages/agent_desktop_toolnomatches2.js +30 -0
- package/src/paraglide/messages/agent_desktop_toolother1.d.ts +19 -0
- package/src/paraglide/messages/agent_desktop_toolother1.js +30 -0
- package/src/paraglide/messages/agent_desktop_toolread1.d.ts +19 -0
- package/src/paraglide/messages/agent_desktop_toolread1.js +30 -0
- package/src/paraglide/messages/agent_desktop_toolrunning1.d.ts +17 -0
- package/src/paraglide/messages/agent_desktop_toolrunning1.js +30 -0
- package/src/paraglide/messages/agent_desktop_tooltruncated1.d.ts +17 -0
- package/src/paraglide/messages/agent_desktop_tooltruncated1.js +30 -0
- package/src/paraglide/messages/agent_desktop_workspaceadd1.d.ts +17 -0
- package/src/paraglide/messages/agent_desktop_workspaceadd1.js +30 -0
- package/src/paraglide/messages/agent_desktop_workspaceaddfailed2.d.ts +17 -0
- package/src/paraglide/messages/agent_desktop_workspaceaddfailed2.js +30 -0
- package/src/paraglide/messages/agent_desktop_workspacedescription1.d.ts +17 -0
- package/src/paraglide/messages/agent_desktop_workspacedescription1.js +30 -0
- package/src/paraglide/messages/agent_desktop_workspaceempty1.d.ts +17 -0
- package/src/paraglide/messages/agent_desktop_workspaceempty1.js +30 -0
- package/src/paraglide/messages/agent_desktop_workspaceemptyhint2.d.ts +17 -0
- package/src/paraglide/messages/agent_desktop_workspaceemptyhint2.js +30 -0
- package/src/paraglide/messages/agent_desktop_workspaceloadfailed2.d.ts +17 -0
- package/src/paraglide/messages/agent_desktop_workspaceloadfailed2.js +30 -0
- package/src/paraglide/messages/agent_desktop_workspaceremove1.d.ts +17 -0
- package/src/paraglide/messages/agent_desktop_workspaceremove1.js +30 -0
- package/src/paraglide/messages/agent_desktop_workspaceremovefailed2.d.ts +17 -0
- package/src/paraglide/messages/agent_desktop_workspaceremovefailed2.js +30 -0
- package/src/paraglide/messages/agent_desktop_workspacetitle1.d.ts +17 -0
- package/src/paraglide/messages/agent_desktop_workspacetitle1.js +30 -0
- package/src/paraglide/messages/agent_desktop_workspaceunsupported1.d.ts +17 -0
- package/src/paraglide/messages/agent_desktop_workspaceunsupported1.js +30 -0
- package/src/paraglide/messages/common_hotkey_desc_agentabort1.d.ts +17 -0
- package/src/paraglide/messages/common_hotkey_desc_agentabort1.js +30 -0
- package/src/paraglide/messages/sync_bind_rolled_back.d.ts +16 -0
- package/src/paraglide/messages/sync_bind_rolled_back.js +29 -0
- package/src/routeTree.gen.ts +23 -0
- package/src/routes/-tests/agent-gate.test.ts +45 -0
- package/src/routes/_nav/agent/route.lazy.tsx +63 -0
- package/src/routes/_nav/agent/route.tsx +21 -0
- package/src/routes/api/sync/account-status.ts +4 -2
- package/src/routes/api/sync/push.ts +11 -3
- package/src/server/__tests__/desktop-cloud-identity.test.ts +331 -0
- package/src/server/__tests__/desktop-session-merge.test.ts +42 -0
- package/src/server/__tests__/exchange-remote-token.test.ts +92 -10
- package/src/server/__tests__/remote-auth.test.ts +39 -0
- package/src/server/desktop-bootstrap.ts +16 -5
- package/src/server/desktop-cloud-identity.ts +247 -0
- package/src/server/remote-auth.ts +33 -1
- package/src/server/serverFns/auth/session.ts +27 -2
- package/src/server/serverFns/sync/transfer.ts +28 -27
- package/src/server/serverFns/workspace-kb.ts +10 -0
- package/src/server/sync/__tests__/ownership-transfer.test.ts +261 -48
- package/src/server/sync/__tests__/sync-first-push.e2e.test.ts +349 -0
- package/src/server/sync/account-status-cloud.ts +41 -0
- package/src/server/sync/ownership-transfer.ts +88 -49
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export { agent_desktop_toolcounthits2 as "agent_desktop_toolCountHits" };
|
|
2
|
+
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
3
|
+
export type Agent_Desktop_Toolcounthits2Inputs = {
|
|
4
|
+
count: NonNullable<unknown>;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* | output |
|
|
8
|
+
* | --- |
|
|
9
|
+
* | "{count} matches" |
|
|
10
|
+
*
|
|
11
|
+
* @param {Agent_Desktop_Toolcounthits2Inputs} inputs
|
|
12
|
+
* @param {{ locale?: "zh" | "en" }} options
|
|
13
|
+
* @returns {LocalizedString}
|
|
14
|
+
*/
|
|
15
|
+
declare const agent_desktop_toolcounthits2: ((inputs: Agent_Desktop_Toolcounthits2Inputs, options?: {
|
|
16
|
+
locale?: "zh" | "en";
|
|
17
|
+
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Desktop_Toolcounthits2Inputs, {
|
|
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_Toolcounthits2Inputs */
|
|
7
|
+
|
|
8
|
+
const zh_agent_desktop_toolcounthits2 = /** @type {(inputs: Agent_Desktop_Toolcounthits2Inputs) => LocalizedString} */ (i) => {
|
|
9
|
+
return /** @type {LocalizedString} */ (`${i?.count} 处命中`)
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const en_agent_desktop_toolcounthits2 = /** @type {(inputs: Agent_Desktop_Toolcounthits2Inputs) => LocalizedString} */ (i) => {
|
|
13
|
+
return /** @type {LocalizedString} */ (`${i?.count} matches`)
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* | output |
|
|
18
|
+
* | --- |
|
|
19
|
+
* | "{count} matches" |
|
|
20
|
+
*
|
|
21
|
+
* @param {Agent_Desktop_Toolcounthits2Inputs} inputs
|
|
22
|
+
* @param {{ locale?: "zh" | "en" }} options
|
|
23
|
+
* @returns {LocalizedString}
|
|
24
|
+
*/
|
|
25
|
+
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 = {}) => {
|
|
26
|
+
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
+
if (locale === "en") return en_agent_desktop_toolcounthits2(inputs)
|
|
28
|
+
return zh_agent_desktop_toolcounthits2(inputs)
|
|
29
|
+
});
|
|
30
|
+
export { agent_desktop_toolcounthits2 as "agent_desktop_toolCountHits" }
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export { agent_desktop_toolcountlines2 as "agent_desktop_toolCountLines" };
|
|
2
|
+
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
3
|
+
export type Agent_Desktop_Toolcountlines2Inputs = {
|
|
4
|
+
count: NonNullable<unknown>;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* | output |
|
|
8
|
+
* | --- |
|
|
9
|
+
* | "{count} lines" |
|
|
10
|
+
*
|
|
11
|
+
* @param {Agent_Desktop_Toolcountlines2Inputs} inputs
|
|
12
|
+
* @param {{ locale?: "zh" | "en" }} options
|
|
13
|
+
* @returns {LocalizedString}
|
|
14
|
+
*/
|
|
15
|
+
declare const agent_desktop_toolcountlines2: ((inputs: Agent_Desktop_Toolcountlines2Inputs, options?: {
|
|
16
|
+
locale?: "zh" | "en";
|
|
17
|
+
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Desktop_Toolcountlines2Inputs, {
|
|
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_Toolcountlines2Inputs */
|
|
7
|
+
|
|
8
|
+
const zh_agent_desktop_toolcountlines2 = /** @type {(inputs: Agent_Desktop_Toolcountlines2Inputs) => LocalizedString} */ (i) => {
|
|
9
|
+
return /** @type {LocalizedString} */ (`${i?.count} 行`)
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const en_agent_desktop_toolcountlines2 = /** @type {(inputs: Agent_Desktop_Toolcountlines2Inputs) => LocalizedString} */ (i) => {
|
|
13
|
+
return /** @type {LocalizedString} */ (`${i?.count} lines`)
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* | output |
|
|
18
|
+
* | --- |
|
|
19
|
+
* | "{count} lines" |
|
|
20
|
+
*
|
|
21
|
+
* @param {Agent_Desktop_Toolcountlines2Inputs} inputs
|
|
22
|
+
* @param {{ locale?: "zh" | "en" }} options
|
|
23
|
+
* @returns {LocalizedString}
|
|
24
|
+
*/
|
|
25
|
+
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 = {}) => {
|
|
26
|
+
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
+
if (locale === "en") return en_agent_desktop_toolcountlines2(inputs)
|
|
28
|
+
return zh_agent_desktop_toolcountlines2(inputs)
|
|
29
|
+
});
|
|
30
|
+
export { agent_desktop_toolcountlines2 as "agent_desktop_toolCountLines" }
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export { agent_desktop_toolemptydir2 as "agent_desktop_toolEmptyDir" };
|
|
2
|
+
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
3
|
+
export type Agent_Desktop_Toolemptydir2Inputs = {};
|
|
4
|
+
/**
|
|
5
|
+
* | output |
|
|
6
|
+
* | --- |
|
|
7
|
+
* | "Empty folder" |
|
|
8
|
+
*
|
|
9
|
+
* @param {Agent_Desktop_Toolemptydir2Inputs} inputs
|
|
10
|
+
* @param {{ locale?: "zh" | "en" }} options
|
|
11
|
+
* @returns {LocalizedString}
|
|
12
|
+
*/
|
|
13
|
+
declare const agent_desktop_toolemptydir2: ((inputs?: Agent_Desktop_Toolemptydir2Inputs, options?: {
|
|
14
|
+
locale?: "zh" | "en";
|
|
15
|
+
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Desktop_Toolemptydir2Inputs, {
|
|
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_Toolemptydir2Inputs */
|
|
7
|
+
|
|
8
|
+
const zh_agent_desktop_toolemptydir2 = /** @type {(inputs: Agent_Desktop_Toolemptydir2Inputs) => LocalizedString} */ () => {
|
|
9
|
+
return /** @type {LocalizedString} */ (`空目录`)
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const en_agent_desktop_toolemptydir2 = /** @type {(inputs: Agent_Desktop_Toolemptydir2Inputs) => LocalizedString} */ () => {
|
|
13
|
+
return /** @type {LocalizedString} */ (`Empty folder`)
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* | output |
|
|
18
|
+
* | --- |
|
|
19
|
+
* | "Empty folder" |
|
|
20
|
+
*
|
|
21
|
+
* @param {Agent_Desktop_Toolemptydir2Inputs} inputs
|
|
22
|
+
* @param {{ locale?: "zh" | "en" }} options
|
|
23
|
+
* @returns {LocalizedString}
|
|
24
|
+
*/
|
|
25
|
+
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 = {}) => {
|
|
26
|
+
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
+
if (locale === "en") return en_agent_desktop_toolemptydir2(inputs)
|
|
28
|
+
return zh_agent_desktop_toolemptydir2(inputs)
|
|
29
|
+
});
|
|
30
|
+
export { agent_desktop_toolemptydir2 as "agent_desktop_toolEmptyDir" }
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export { agent_desktop_toolerror1 as "agent_desktop_toolError" };
|
|
2
|
+
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
3
|
+
export type Agent_Desktop_Toolerror1Inputs = {};
|
|
4
|
+
/**
|
|
5
|
+
* | output |
|
|
6
|
+
* | --- |
|
|
7
|
+
* | "Failed" |
|
|
8
|
+
*
|
|
9
|
+
* @param {Agent_Desktop_Toolerror1Inputs} inputs
|
|
10
|
+
* @param {{ locale?: "zh" | "en" }} options
|
|
11
|
+
* @returns {LocalizedString}
|
|
12
|
+
*/
|
|
13
|
+
declare const agent_desktop_toolerror1: ((inputs?: Agent_Desktop_Toolerror1Inputs, options?: {
|
|
14
|
+
locale?: "zh" | "en";
|
|
15
|
+
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Desktop_Toolerror1Inputs, {
|
|
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_Toolerror1Inputs */
|
|
7
|
+
|
|
8
|
+
const zh_agent_desktop_toolerror1 = /** @type {(inputs: Agent_Desktop_Toolerror1Inputs) => LocalizedString} */ () => {
|
|
9
|
+
return /** @type {LocalizedString} */ (`执行失败`)
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const en_agent_desktop_toolerror1 = /** @type {(inputs: Agent_Desktop_Toolerror1Inputs) => LocalizedString} */ () => {
|
|
13
|
+
return /** @type {LocalizedString} */ (`Failed`)
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* | output |
|
|
18
|
+
* | --- |
|
|
19
|
+
* | "Failed" |
|
|
20
|
+
*
|
|
21
|
+
* @param {Agent_Desktop_Toolerror1Inputs} inputs
|
|
22
|
+
* @param {{ locale?: "zh" | "en" }} options
|
|
23
|
+
* @returns {LocalizedString}
|
|
24
|
+
*/
|
|
25
|
+
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 = {}) => {
|
|
26
|
+
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
+
if (locale === "en") return en_agent_desktop_toolerror1(inputs)
|
|
28
|
+
return zh_agent_desktop_toolerror1(inputs)
|
|
29
|
+
});
|
|
30
|
+
export { agent_desktop_toolerror1 as "agent_desktop_toolError" }
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export { agent_desktop_toolfind1 as "agent_desktop_toolFind" };
|
|
2
|
+
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
3
|
+
export type Agent_Desktop_Toolfind1Inputs = {
|
|
4
|
+
target: NonNullable<unknown>;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* | output |
|
|
8
|
+
* | --- |
|
|
9
|
+
* | "Find {target}" |
|
|
10
|
+
*
|
|
11
|
+
* @param {Agent_Desktop_Toolfind1Inputs} inputs
|
|
12
|
+
* @param {{ locale?: "zh" | "en" }} options
|
|
13
|
+
* @returns {LocalizedString}
|
|
14
|
+
*/
|
|
15
|
+
declare const agent_desktop_toolfind1: ((inputs: Agent_Desktop_Toolfind1Inputs, options?: {
|
|
16
|
+
locale?: "zh" | "en";
|
|
17
|
+
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Desktop_Toolfind1Inputs, {
|
|
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 {{ target: NonNullable<unknown> }} Agent_Desktop_Toolfind1Inputs */
|
|
7
|
+
|
|
8
|
+
const zh_agent_desktop_toolfind1 = /** @type {(inputs: Agent_Desktop_Toolfind1Inputs) => LocalizedString} */ (i) => {
|
|
9
|
+
return /** @type {LocalizedString} */ (`查找 ${i?.target}`)
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const en_agent_desktop_toolfind1 = /** @type {(inputs: Agent_Desktop_Toolfind1Inputs) => LocalizedString} */ (i) => {
|
|
13
|
+
return /** @type {LocalizedString} */ (`Find ${i?.target}`)
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* | output |
|
|
18
|
+
* | --- |
|
|
19
|
+
* | "Find {target}" |
|
|
20
|
+
*
|
|
21
|
+
* @param {Agent_Desktop_Toolfind1Inputs} inputs
|
|
22
|
+
* @param {{ locale?: "zh" | "en" }} options
|
|
23
|
+
* @returns {LocalizedString}
|
|
24
|
+
*/
|
|
25
|
+
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 = {}) => {
|
|
26
|
+
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
+
if (locale === "en") return en_agent_desktop_toolfind1(inputs)
|
|
28
|
+
return zh_agent_desktop_toolfind1(inputs)
|
|
29
|
+
});
|
|
30
|
+
export { agent_desktop_toolfind1 as "agent_desktop_toolFind" }
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export { agent_desktop_toolgrep1 as "agent_desktop_toolGrep" };
|
|
2
|
+
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
3
|
+
export type Agent_Desktop_Toolgrep1Inputs = {
|
|
4
|
+
target: NonNullable<unknown>;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* | output |
|
|
8
|
+
* | --- |
|
|
9
|
+
* | "Search {target}" |
|
|
10
|
+
*
|
|
11
|
+
* @param {Agent_Desktop_Toolgrep1Inputs} inputs
|
|
12
|
+
* @param {{ locale?: "zh" | "en" }} options
|
|
13
|
+
* @returns {LocalizedString}
|
|
14
|
+
*/
|
|
15
|
+
declare const agent_desktop_toolgrep1: ((inputs: Agent_Desktop_Toolgrep1Inputs, options?: {
|
|
16
|
+
locale?: "zh" | "en";
|
|
17
|
+
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Desktop_Toolgrep1Inputs, {
|
|
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 {{ target: NonNullable<unknown> }} Agent_Desktop_Toolgrep1Inputs */
|
|
7
|
+
|
|
8
|
+
const zh_agent_desktop_toolgrep1 = /** @type {(inputs: Agent_Desktop_Toolgrep1Inputs) => LocalizedString} */ (i) => {
|
|
9
|
+
return /** @type {LocalizedString} */ (`搜索 ${i?.target}`)
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const en_agent_desktop_toolgrep1 = /** @type {(inputs: Agent_Desktop_Toolgrep1Inputs) => LocalizedString} */ (i) => {
|
|
13
|
+
return /** @type {LocalizedString} */ (`Search ${i?.target}`)
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* | output |
|
|
18
|
+
* | --- |
|
|
19
|
+
* | "Search {target}" |
|
|
20
|
+
*
|
|
21
|
+
* @param {Agent_Desktop_Toolgrep1Inputs} inputs
|
|
22
|
+
* @param {{ locale?: "zh" | "en" }} options
|
|
23
|
+
* @returns {LocalizedString}
|
|
24
|
+
*/
|
|
25
|
+
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 = {}) => {
|
|
26
|
+
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
+
if (locale === "en") return en_agent_desktop_toolgrep1(inputs)
|
|
28
|
+
return zh_agent_desktop_toolgrep1(inputs)
|
|
29
|
+
});
|
|
30
|
+
export { agent_desktop_toolgrep1 as "agent_desktop_toolGrep" }
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export { agent_desktop_toolls1 as "agent_desktop_toolLs" };
|
|
2
|
+
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
3
|
+
export type Agent_Desktop_Toolls1Inputs = {
|
|
4
|
+
target: NonNullable<unknown>;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* | output |
|
|
8
|
+
* | --- |
|
|
9
|
+
* | "List {target}" |
|
|
10
|
+
*
|
|
11
|
+
* @param {Agent_Desktop_Toolls1Inputs} inputs
|
|
12
|
+
* @param {{ locale?: "zh" | "en" }} options
|
|
13
|
+
* @returns {LocalizedString}
|
|
14
|
+
*/
|
|
15
|
+
declare const agent_desktop_toolls1: ((inputs: Agent_Desktop_Toolls1Inputs, options?: {
|
|
16
|
+
locale?: "zh" | "en";
|
|
17
|
+
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Desktop_Toolls1Inputs, {
|
|
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 {{ target: NonNullable<unknown> }} Agent_Desktop_Toolls1Inputs */
|
|
7
|
+
|
|
8
|
+
const zh_agent_desktop_toolls1 = /** @type {(inputs: Agent_Desktop_Toolls1Inputs) => LocalizedString} */ (i) => {
|
|
9
|
+
return /** @type {LocalizedString} */ (`列出 ${i?.target}`)
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const en_agent_desktop_toolls1 = /** @type {(inputs: Agent_Desktop_Toolls1Inputs) => LocalizedString} */ (i) => {
|
|
13
|
+
return /** @type {LocalizedString} */ (`List ${i?.target}`)
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* | output |
|
|
18
|
+
* | --- |
|
|
19
|
+
* | "List {target}" |
|
|
20
|
+
*
|
|
21
|
+
* @param {Agent_Desktop_Toolls1Inputs} inputs
|
|
22
|
+
* @param {{ locale?: "zh" | "en" }} options
|
|
23
|
+
* @returns {LocalizedString}
|
|
24
|
+
*/
|
|
25
|
+
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 = {}) => {
|
|
26
|
+
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
+
if (locale === "en") return en_agent_desktop_toolls1(inputs)
|
|
28
|
+
return zh_agent_desktop_toolls1(inputs)
|
|
29
|
+
});
|
|
30
|
+
export { agent_desktop_toolls1 as "agent_desktop_toolLs" }
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export { agent_desktop_toolmore1 as "agent_desktop_toolMore" };
|
|
2
|
+
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
3
|
+
export type Agent_Desktop_Toolmore1Inputs = {
|
|
4
|
+
count: NonNullable<unknown>;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* | output |
|
|
8
|
+
* | --- |
|
|
9
|
+
* | "{count} more not shown" |
|
|
10
|
+
*
|
|
11
|
+
* @param {Agent_Desktop_Toolmore1Inputs} inputs
|
|
12
|
+
* @param {{ locale?: "zh" | "en" }} options
|
|
13
|
+
* @returns {LocalizedString}
|
|
14
|
+
*/
|
|
15
|
+
declare const agent_desktop_toolmore1: ((inputs: Agent_Desktop_Toolmore1Inputs, options?: {
|
|
16
|
+
locale?: "zh" | "en";
|
|
17
|
+
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Desktop_Toolmore1Inputs, {
|
|
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_Toolmore1Inputs */
|
|
7
|
+
|
|
8
|
+
const zh_agent_desktop_toolmore1 = /** @type {(inputs: Agent_Desktop_Toolmore1Inputs) => LocalizedString} */ (i) => {
|
|
9
|
+
return /** @type {LocalizedString} */ (`还有 ${i?.count} 项未显示`)
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const en_agent_desktop_toolmore1 = /** @type {(inputs: Agent_Desktop_Toolmore1Inputs) => LocalizedString} */ (i) => {
|
|
13
|
+
return /** @type {LocalizedString} */ (`${i?.count} more not shown`)
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* | output |
|
|
18
|
+
* | --- |
|
|
19
|
+
* | "{count} more not shown" |
|
|
20
|
+
*
|
|
21
|
+
* @param {Agent_Desktop_Toolmore1Inputs} inputs
|
|
22
|
+
* @param {{ locale?: "zh" | "en" }} options
|
|
23
|
+
* @returns {LocalizedString}
|
|
24
|
+
*/
|
|
25
|
+
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 = {}) => {
|
|
26
|
+
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
+
if (locale === "en") return en_agent_desktop_toolmore1(inputs)
|
|
28
|
+
return zh_agent_desktop_toolmore1(inputs)
|
|
29
|
+
});
|
|
30
|
+
export { agent_desktop_toolmore1 as "agent_desktop_toolMore" }
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export { agent_desktop_toolnomatches2 as "agent_desktop_toolNoMatches" };
|
|
2
|
+
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
3
|
+
export type Agent_Desktop_Toolnomatches2Inputs = {};
|
|
4
|
+
/**
|
|
5
|
+
* | output |
|
|
6
|
+
* | --- |
|
|
7
|
+
* | "No matches" |
|
|
8
|
+
*
|
|
9
|
+
* @param {Agent_Desktop_Toolnomatches2Inputs} inputs
|
|
10
|
+
* @param {{ locale?: "zh" | "en" }} options
|
|
11
|
+
* @returns {LocalizedString}
|
|
12
|
+
*/
|
|
13
|
+
declare const agent_desktop_toolnomatches2: ((inputs?: Agent_Desktop_Toolnomatches2Inputs, options?: {
|
|
14
|
+
locale?: "zh" | "en";
|
|
15
|
+
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Desktop_Toolnomatches2Inputs, {
|
|
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_Toolnomatches2Inputs */
|
|
7
|
+
|
|
8
|
+
const zh_agent_desktop_toolnomatches2 = /** @type {(inputs: Agent_Desktop_Toolnomatches2Inputs) => LocalizedString} */ () => {
|
|
9
|
+
return /** @type {LocalizedString} */ (`无匹配结果`)
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const en_agent_desktop_toolnomatches2 = /** @type {(inputs: Agent_Desktop_Toolnomatches2Inputs) => LocalizedString} */ () => {
|
|
13
|
+
return /** @type {LocalizedString} */ (`No matches`)
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* | output |
|
|
18
|
+
* | --- |
|
|
19
|
+
* | "No matches" |
|
|
20
|
+
*
|
|
21
|
+
* @param {Agent_Desktop_Toolnomatches2Inputs} inputs
|
|
22
|
+
* @param {{ locale?: "zh" | "en" }} options
|
|
23
|
+
* @returns {LocalizedString}
|
|
24
|
+
*/
|
|
25
|
+
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 = {}) => {
|
|
26
|
+
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
+
if (locale === "en") return en_agent_desktop_toolnomatches2(inputs)
|
|
28
|
+
return zh_agent_desktop_toolnomatches2(inputs)
|
|
29
|
+
});
|
|
30
|
+
export { agent_desktop_toolnomatches2 as "agent_desktop_toolNoMatches" }
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export { agent_desktop_toolother1 as "agent_desktop_toolOther" };
|
|
2
|
+
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
3
|
+
export type Agent_Desktop_Toolother1Inputs = {
|
|
4
|
+
name: NonNullable<unknown>;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* | output |
|
|
8
|
+
* | --- |
|
|
9
|
+
* | "Call {name}" |
|
|
10
|
+
*
|
|
11
|
+
* @param {Agent_Desktop_Toolother1Inputs} inputs
|
|
12
|
+
* @param {{ locale?: "zh" | "en" }} options
|
|
13
|
+
* @returns {LocalizedString}
|
|
14
|
+
*/
|
|
15
|
+
declare const agent_desktop_toolother1: ((inputs: Agent_Desktop_Toolother1Inputs, options?: {
|
|
16
|
+
locale?: "zh" | "en";
|
|
17
|
+
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Desktop_Toolother1Inputs, {
|
|
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 {{ name: NonNullable<unknown> }} Agent_Desktop_Toolother1Inputs */
|
|
7
|
+
|
|
8
|
+
const zh_agent_desktop_toolother1 = /** @type {(inputs: Agent_Desktop_Toolother1Inputs) => LocalizedString} */ (i) => {
|
|
9
|
+
return /** @type {LocalizedString} */ (`调用 ${i?.name}`)
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const en_agent_desktop_toolother1 = /** @type {(inputs: Agent_Desktop_Toolother1Inputs) => LocalizedString} */ (i) => {
|
|
13
|
+
return /** @type {LocalizedString} */ (`Call ${i?.name}`)
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* | output |
|
|
18
|
+
* | --- |
|
|
19
|
+
* | "Call {name}" |
|
|
20
|
+
*
|
|
21
|
+
* @param {Agent_Desktop_Toolother1Inputs} inputs
|
|
22
|
+
* @param {{ locale?: "zh" | "en" }} options
|
|
23
|
+
* @returns {LocalizedString}
|
|
24
|
+
*/
|
|
25
|
+
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 = {}) => {
|
|
26
|
+
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
+
if (locale === "en") return en_agent_desktop_toolother1(inputs)
|
|
28
|
+
return zh_agent_desktop_toolother1(inputs)
|
|
29
|
+
});
|
|
30
|
+
export { agent_desktop_toolother1 as "agent_desktop_toolOther" }
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export { agent_desktop_toolread1 as "agent_desktop_toolRead" };
|
|
2
|
+
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
3
|
+
export type Agent_Desktop_Toolread1Inputs = {
|
|
4
|
+
target: NonNullable<unknown>;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* | output |
|
|
8
|
+
* | --- |
|
|
9
|
+
* | "Read {target}" |
|
|
10
|
+
*
|
|
11
|
+
* @param {Agent_Desktop_Toolread1Inputs} inputs
|
|
12
|
+
* @param {{ locale?: "zh" | "en" }} options
|
|
13
|
+
* @returns {LocalizedString}
|
|
14
|
+
*/
|
|
15
|
+
declare const agent_desktop_toolread1: ((inputs: Agent_Desktop_Toolread1Inputs, options?: {
|
|
16
|
+
locale?: "zh" | "en";
|
|
17
|
+
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Desktop_Toolread1Inputs, {
|
|
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 {{ target: NonNullable<unknown> }} Agent_Desktop_Toolread1Inputs */
|
|
7
|
+
|
|
8
|
+
const zh_agent_desktop_toolread1 = /** @type {(inputs: Agent_Desktop_Toolread1Inputs) => LocalizedString} */ (i) => {
|
|
9
|
+
return /** @type {LocalizedString} */ (`读取 ${i?.target}`)
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const en_agent_desktop_toolread1 = /** @type {(inputs: Agent_Desktop_Toolread1Inputs) => LocalizedString} */ (i) => {
|
|
13
|
+
return /** @type {LocalizedString} */ (`Read ${i?.target}`)
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* | output |
|
|
18
|
+
* | --- |
|
|
19
|
+
* | "Read {target}" |
|
|
20
|
+
*
|
|
21
|
+
* @param {Agent_Desktop_Toolread1Inputs} inputs
|
|
22
|
+
* @param {{ locale?: "zh" | "en" }} options
|
|
23
|
+
* @returns {LocalizedString}
|
|
24
|
+
*/
|
|
25
|
+
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 = {}) => {
|
|
26
|
+
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
+
if (locale === "en") return en_agent_desktop_toolread1(inputs)
|
|
28
|
+
return zh_agent_desktop_toolread1(inputs)
|
|
29
|
+
});
|
|
30
|
+
export { agent_desktop_toolread1 as "agent_desktop_toolRead" }
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export { agent_desktop_toolrunning1 as "agent_desktop_toolRunning" };
|
|
2
|
+
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
3
|
+
export type Agent_Desktop_Toolrunning1Inputs = {};
|
|
4
|
+
/**
|
|
5
|
+
* | output |
|
|
6
|
+
* | --- |
|
|
7
|
+
* | "Running" |
|
|
8
|
+
*
|
|
9
|
+
* @param {Agent_Desktop_Toolrunning1Inputs} inputs
|
|
10
|
+
* @param {{ locale?: "zh" | "en" }} options
|
|
11
|
+
* @returns {LocalizedString}
|
|
12
|
+
*/
|
|
13
|
+
declare const agent_desktop_toolrunning1: ((inputs?: Agent_Desktop_Toolrunning1Inputs, options?: {
|
|
14
|
+
locale?: "zh" | "en";
|
|
15
|
+
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Desktop_Toolrunning1Inputs, {
|
|
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_Toolrunning1Inputs */
|
|
7
|
+
|
|
8
|
+
const zh_agent_desktop_toolrunning1 = /** @type {(inputs: Agent_Desktop_Toolrunning1Inputs) => LocalizedString} */ () => {
|
|
9
|
+
return /** @type {LocalizedString} */ (`执行中`)
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const en_agent_desktop_toolrunning1 = /** @type {(inputs: Agent_Desktop_Toolrunning1Inputs) => LocalizedString} */ () => {
|
|
13
|
+
return /** @type {LocalizedString} */ (`Running`)
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* | output |
|
|
18
|
+
* | --- |
|
|
19
|
+
* | "Running" |
|
|
20
|
+
*
|
|
21
|
+
* @param {Agent_Desktop_Toolrunning1Inputs} inputs
|
|
22
|
+
* @param {{ locale?: "zh" | "en" }} options
|
|
23
|
+
* @returns {LocalizedString}
|
|
24
|
+
*/
|
|
25
|
+
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 = {}) => {
|
|
26
|
+
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
+
if (locale === "en") return en_agent_desktop_toolrunning1(inputs)
|
|
28
|
+
return zh_agent_desktop_toolrunning1(inputs)
|
|
29
|
+
});
|
|
30
|
+
export { agent_desktop_toolrunning1 as "agent_desktop_toolRunning" }
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export { agent_desktop_tooltruncated1 as "agent_desktop_toolTruncated" };
|
|
2
|
+
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
3
|
+
export type Agent_Desktop_Tooltruncated1Inputs = {};
|
|
4
|
+
/**
|
|
5
|
+
* | output |
|
|
6
|
+
* | --- |
|
|
7
|
+
* | "Truncated" |
|
|
8
|
+
*
|
|
9
|
+
* @param {Agent_Desktop_Tooltruncated1Inputs} inputs
|
|
10
|
+
* @param {{ locale?: "zh" | "en" }} options
|
|
11
|
+
* @returns {LocalizedString}
|
|
12
|
+
*/
|
|
13
|
+
declare const agent_desktop_tooltruncated1: ((inputs?: Agent_Desktop_Tooltruncated1Inputs, options?: {
|
|
14
|
+
locale?: "zh" | "en";
|
|
15
|
+
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Agent_Desktop_Tooltruncated1Inputs, {
|
|
16
|
+
locale?: "zh" | "en";
|
|
17
|
+
}, {}>;
|