@weadmin/overseas-tool 0.1.30 → 0.1.31
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/dist/cli/main.js +1 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.js +1 -1
- package/dist/runtime-host/main.js +1 -1
- package/package.json +1 -1
- package/workers/applier/applier.js +1 -1
- package/workers/applier/meta.json +3 -3
- package/workers/glossary-translator/glossary-translator.js +1 -1
- package/workers/glossary-translator/meta.json +3 -3
- package/workers/image-scanner/image-scanner.js +1 -1
- package/workers/image-scanner/meta.json +3 -3
- package/workers/image-translator/image-translator.js +1 -1
- package/workers/image-translator/meta.json +3 -3
- package/workers/planner/meta.json +3 -3
- package/workers/planner/planner.js +1 -1
- package/workers/scan-aggregator/meta.json +3 -3
- package/workers/scan-aggregator/scan-aggregator.js +1 -1
- package/workers/text-scanner/meta.json +3 -3
- package/workers/text-scanner/text-scanner.js +1 -1
- package/workers/text-translator/meta.json +3 -3
- package/workers/text-translator/text-translator.js +1 -1
- package/workers/translation-aggregator/meta.json +3 -3
- package/workers/translation-aggregator/translation-aggregator.js +1 -1
- package/workers/verifier/meta.json +3 -3
- package/workers/verifier/verifier.js +1 -1
- package/workers/worker-launcher/meta.json +2 -2
- package/workers/worker-launcher/worker-launcher.js +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* overseas-tool | Type declarations | Generated 2026-08-
|
|
1
|
+
/* overseas-tool | Type declarations | Generated 2026-08-21T08:34:35.268Z */
|
|
2
2
|
import { AgentDefinition } from '@tencent-ai/agent-sdk';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
@@ -52,12 +52,15 @@ export interface CreateSessionOptions {
|
|
|
52
52
|
systemPrompt: string;
|
|
53
53
|
agents: Record<string, AgentDefinition>;
|
|
54
54
|
mcpServers: Record<string, McpServerSpec>;
|
|
55
|
+
/** 模型可见的完整内置工具面;不在此列表的工具不可调用。 */
|
|
56
|
+
tools: string[];
|
|
57
|
+
/** tools 中无需交互式权限提示、可直接执行的必要工具。 */
|
|
55
58
|
allowedTools: string[];
|
|
56
59
|
maxTurns: number;
|
|
57
60
|
/** 拦截 AskUserQuestion 等工具,默认全部 allow */
|
|
58
61
|
canUseTool?: ToolPolicy;
|
|
59
62
|
/**
|
|
60
|
-
* Deterministic guard that runs before
|
|
63
|
+
* Deterministic guard that runs before every executable localization tool even in
|
|
61
64
|
* bypassPermissions mode. Unlike canUseTool, this is not a permission
|
|
62
65
|
* prompt and therefore cannot be skipped by the SDK permission mode.
|
|
63
66
|
*/
|