@tencent-ai/agent-harness 0.2.0-beta.1 → 0.2.0-beta.2
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/CHANGELOG.md +20 -0
- package/README.md +1 -1
- package/cli/CHANGELOG.md +71 -0
- package/cli/dist-server/shared.cjs +318 -314
- package/cli/dist-server/types/node/acp/acp-protocol.d.ts +40 -12
- package/cli/dist-server/types/node/acp/usage-by-category-calculator.d.ts +21 -0
- package/cli/dist-server/types/node/cli/stream-json-protocol.d.ts +15 -1
- package/cli/dist-server/types/node/data-fs/index.d.ts +13 -1
- package/cli/dist-server/types/node/hooks/hook-protocol.d.ts +2 -2
- package/cli/dist-server/types/node/server/sessions.d.ts +24 -0
- package/cli/dist-server/types/node/server/types.d.ts +6 -0
- package/cli/dist-server/types/node/settings/settings-protocol.d.ts +5 -0
- package/cli/dist-server/types/node/tools/tool-protocol.d.ts +112 -2
- package/cli/dist-server/types/vendor/cbc-core/node/agent/agent-protocol.d.ts +29 -0
- package/cli/dist-server/types/vendor/cbc-core/node/agent/agent-service.d.ts +2 -0
- package/cli/dist-server/types/vendor/cbc-core/node/agent/index.d.ts +1 -0
- package/cli/dist-server/types/vendor/cbc-core/node/agent/interceptors/input-interceptors.d.ts +1 -6
- package/cli/dist-server/types/vendor/cbc-core/node/agent/runner-factory.d.ts +31 -11
- package/cli/dist-server/types/vendor/cbc-core/node/agent/speaker-label.d.ts +44 -0
- package/cli/dist-server/types/vendor/cbc-core/node/agent/tool-call-loop-detector-service.d.ts +5 -4
- package/cli/dist-server/types/vendor/cbc-core/node/agent/tool-call-loop-guard-protocol.d.ts +1 -1
- package/cli/dist-server/types/vendor/cbc-core/node/agent/tool-call-loop-pattern.d.ts +15 -4
- package/cli/dist-server/types/vendor/cbc-core/node/hooks/agent-trigger.d.ts +6 -22
- package/cli/dist-server/types/vendor/cbc-core/node/hooks/hook-protocol.d.ts +4 -1
- package/cli/dist-server/types/vendor/cbc-core/node/session/idle-queue-drain-service.d.ts +4 -56
- package/cli/dist-server/types/vendor/cbc-core/node/session/index.d.ts +3 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session/interruption-service.d.ts +55 -9
- package/cli/dist-server/types/vendor/cbc-core/node/session/model-response-interceptors.d.ts +18 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session/recovery-budget.d.ts +55 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-hook-manager.d.ts +15 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-manager.d.ts +10 -1
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-persistence-error.d.ts +43 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-protocol.d.ts +63 -4
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-run-state-machine-protocol.d.ts +1 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-runtime-lifecycle.d.ts +5 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-store.d.ts +150 -4
- package/cli/dist-server/types/vendor/cbc-core/node/session/stream-timeout-retry-budget.d.ts +13 -1
- package/cli/dist-server/types/vendor/cbc-core/node/utils/history-utils.d.ts +23 -0
- package/cli/dist-server/types/vendor/cbc-core/node/utils/index.d.ts +1 -0
- package/cli/dist-server/types/vendor/cbc-core/node/utils/message-utils.d.ts +12 -0
- package/cli/dist-server/types/vendor/cbc-core/node/utils/model-utils.d.ts +7 -0
- package/cli/dist-server/types/vendor/cbc-core/node/utils/queue-dispatch-utils.d.ts +24 -2
- package/cli/dist-server/types/vendor/cbc-core/node/utils/session-utils.d.ts +4 -1
- package/cli/dist-server/types/vendor/cbc-core/node/utils/string-retention-utils.d.ts +4 -0
- package/cli/dist-server/types/vendor/cbc-shared/node/hooks/hook-types.d.ts +7 -1
- package/cli/dist-server/types/vendor/cbc-shared/node/index.d.ts +2 -0
- package/cli/dist-server/types/vendor/cbc-shared/node/model/model-errors.d.ts +7 -3
- package/cli/dist-server/types/vendor/cbc-shared/node/tools/tool-names.d.ts +1 -0
- package/cli/dist-server/types/vendor/cbc-shared/node/utils/retry-backoff.d.ts +30 -0
- package/cli/dist-server/types/vendor/cbc-shared/node/utils/retry-policy.d.ts +26 -0
- package/cli/dist-server/types/workspace/authentication/lib/common/account-scoped-external-link-authentication-provider.d.ts +2 -2
- package/cli/dist-server/types/workspace/authentication/lib/common/account-utils.d.ts +25 -0
- package/cli/dist-server/types/workspace/authentication/lib/common/authentication-manager.d.ts +2 -2
- package/cli/dist-server/types/workspace/authentication/lib/common/authentication-protocol.d.ts +19 -2
- package/cli/dist-server/types/workspace/authentication/lib/common/external-link-authentication-provider.d.ts +2 -2
- package/cli/dist-server/types/workspace/authentication/lib/common/wx-authentication-provider.d.ts +2 -2
- package/cli/dist-server/types/workspace/cbc-core/lib/node/agent/agent-protocol.d.ts +29 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/agent/agent-service.d.ts +2 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/agent/index.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/agent/interceptors/input-interceptors.d.ts +1 -6
- package/cli/dist-server/types/workspace/cbc-core/lib/node/agent/runner-factory.d.ts +31 -11
- package/cli/dist-server/types/workspace/cbc-core/lib/node/agent/speaker-label.d.ts +44 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/agent/tool-call-loop-detector-service.d.ts +5 -4
- package/cli/dist-server/types/workspace/cbc-core/lib/node/agent/tool-call-loop-guard-protocol.d.ts +1 -1
- package/cli/dist-server/types/workspace/cbc-core/lib/node/agent/tool-call-loop-pattern.d.ts +15 -4
- package/cli/dist-server/types/workspace/cbc-core/lib/node/hooks/agent-trigger.d.ts +6 -22
- package/cli/dist-server/types/workspace/cbc-core/lib/node/hooks/hook-protocol.d.ts +4 -1
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/idle-queue-drain-service.d.ts +4 -56
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/index.d.ts +3 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/interruption-service.d.ts +55 -9
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/model-response-interceptors.d.ts +18 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/recovery-budget.d.ts +55 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-hook-manager.d.ts +15 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-manager.d.ts +10 -1
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-persistence-error.d.ts +43 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-protocol.d.ts +63 -4
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-run-state-machine-protocol.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-runtime-lifecycle.d.ts +5 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-store.d.ts +150 -4
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/stream-timeout-retry-budget.d.ts +13 -1
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/history-utils.d.ts +23 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/index.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/message-utils.d.ts +12 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/model-utils.d.ts +7 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/queue-dispatch-utils.d.ts +24 -2
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/session-utils.d.ts +4 -1
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/string-retention-utils.d.ts +4 -0
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/hooks/hook-types.d.ts +7 -1
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/index.d.ts +2 -0
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/model/model-errors.d.ts +7 -3
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/tools/tool-names.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/utils/retry-backoff.d.ts +30 -0
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/utils/retry-policy.d.ts +26 -0
- package/cli/dist-server/types/workspace/cbc-workflow/lib/node/workflow/workflow-execution.d.ts +14 -1
- package/cli/dist-server/types/workspace/cbc-workflow/lib/node/workflow/workflow-manager.d.ts +7 -0
- package/cli/dist-server/types/workspace/cbc-worktree/lib/node/worktree/worktree-session.d.ts +3 -0
- package/cli/dist-server/types/workspace/product/lib/common/cloud-product-provider.d.ts +9 -0
- package/cli/dist-server/types/workspace/product/lib/common/index.d.ts +1 -0
- package/cli/dist-server/types/workspace/product/lib/common/pick-market-skill-id.d.ts +13 -0
- package/cli/dist-server/types/workspace/product/lib/common/tool-control-catalog.d.ts +2 -2
- package/cli/dist-server/types/workspace/product/lib/common/types/features.d.ts +62 -2
- package/cli/dist-server/types/workspace/product/lib/common/types/language-model.d.ts +66 -0
- package/cli/dist-server/types/workspace/product/lib/common/types/product.d.ts +7 -1
- package/cli/dist-server/types/workspace/sandbox-cli/lib/common/backup-policy.d.ts +10 -1
- package/cli/dist-server/types/workspace/sandbox-cli/lib/common/center-protocol.generated.d.ts +370 -4
- package/cli/dist-server/types/workspace/sandbox-cli/lib/common/file-policy.d.ts +1 -1
- package/cli/dist-server/types/workspace/sandbox-cli/lib/node/sandbox-center-client.d.ts +216 -0
- package/cli/package.json +1 -1
- package/cli/product.cloudhosted.json +2 -2
- package/cli/product.internal.json +259 -40
- package/cli/product.ioa.json +333 -148
- package/cli/product.json +309 -351
- package/cli/product.selfhosted.json +2 -2
- package/docs/README.md +1 -0
- package/docs/in-process.md +16 -0
- package/lib/application/services.d.ts +3 -1
- package/lib/application/services.js +1 -1
- package/lib/components/sandbox-center.d.mts +2 -0
- package/lib/components/sandbox-center.mjs +1 -0
- package/lib/components/session-config.d.mts +2 -0
- package/lib/components/session-config.mjs +1 -1
- package/lib/harness/create-harness.js +1 -1
- package/lib/harness/runtime.js +1 -1
- package/lib/harness/types.d.ts +3 -0
- package/lib/integration/executor-supervisor.js +1 -1
- package/lib/public.d.ts +1 -0
- package/lib/runtime/sandbox-center.d.ts +21 -0
- package/lib/runtime/sandbox-center.js +1 -0
- package/lib/server/public.d.ts +1 -0
- package/lib/session/agent-backend.d.ts +2 -0
- package/lib/session/agent-backend.js +1 -1
- package/lib/session/local-fs.js +1 -1
- package/lib/session/server-config.js +1 -1
- package/lib/session/server-interactions.js +1 -1
- package/package.json +25 -15
- package/lib/session/local-options.d.ts +0 -50
- package/lib/session/local-options.js +0 -1
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { type ChildProcess } from 'child_process';
|
|
2
|
+
import { type RuleCategory, SANDBOX_RULES_COMMANDS, type SandboxCommand } from '../common/center-protocol.generated.js';
|
|
3
|
+
export { SANDBOX_BACKUP_COMMANDS, SANDBOX_CENTER_LIFECYCLE_COMMANDS, SANDBOX_RULES_COMMANDS, } from '../common/center-protocol.generated.js';
|
|
4
|
+
export type { BackupReason, CheckMaliciousDomainResponse, CommitModifyBackupResponse, DecideNetworkResponse, EnableModifyBackupRequest, EnableModifyBackupResponse, HttpInterceptConfig, HttpInterceptRuleItem, ModifyBackupCommitEntry, ModifyBackupFileEntry, ModifyBackupRequest, QueryModifyBackupCommitsResponse, RestoreModifyBackupResponse, SetHttpInterceptRequest, SetRulesConfigRequest, SetThreatDatabaseResponse, ShutdownCenterResponse, } from '../common/center-protocol.generated.js';
|
|
5
|
+
export interface SandboxCenterRuntimeContext {
|
|
6
|
+
appHome: string;
|
|
7
|
+
executablePath?: string;
|
|
8
|
+
socketPath: string;
|
|
9
|
+
uid: string;
|
|
10
|
+
}
|
|
11
|
+
export interface SandboxCenterRequestOptions {
|
|
12
|
+
messageId?: string;
|
|
13
|
+
sessionId?: string;
|
|
14
|
+
signal?: AbortSignal;
|
|
15
|
+
timeoutMs?: number;
|
|
16
|
+
}
|
|
17
|
+
export type SandboxRulesCommand = (typeof SANDBOX_RULES_COMMANDS)[keyof typeof SANDBOX_RULES_COMMANDS];
|
|
18
|
+
export type SandboxCenterCommand = SandboxCommand;
|
|
19
|
+
export interface SandboxCenterFileRule {
|
|
20
|
+
path: string;
|
|
21
|
+
action: string;
|
|
22
|
+
comment?: string;
|
|
23
|
+
isDirectory: boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface SandboxCenterNetworkRule {
|
|
26
|
+
endpoint: string;
|
|
27
|
+
action: string;
|
|
28
|
+
comment?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface SandboxCenterMachRule {
|
|
31
|
+
name: string;
|
|
32
|
+
action: string;
|
|
33
|
+
comment?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface SandboxCenterCmdRule {
|
|
36
|
+
cmd: string;
|
|
37
|
+
args: string[];
|
|
38
|
+
action: string;
|
|
39
|
+
comment?: string;
|
|
40
|
+
}
|
|
41
|
+
export interface SandboxCenterAddFileRulesRequest {
|
|
42
|
+
rules: SandboxCenterFileRule[];
|
|
43
|
+
category?: RuleCategory;
|
|
44
|
+
}
|
|
45
|
+
export interface SandboxCenterRemoveFileRulesRequest {
|
|
46
|
+
paths: string[];
|
|
47
|
+
category?: RuleCategory;
|
|
48
|
+
}
|
|
49
|
+
export interface SandboxCenterSetFileRulesRequest {
|
|
50
|
+
rules: SandboxCenterFileRule[];
|
|
51
|
+
category?: RuleCategory;
|
|
52
|
+
}
|
|
53
|
+
export interface SandboxCenterMatchFileRuleRequest {
|
|
54
|
+
path: string;
|
|
55
|
+
}
|
|
56
|
+
export interface SandboxCenterMatchFileRuleResponse {
|
|
57
|
+
matched: boolean;
|
|
58
|
+
path: string;
|
|
59
|
+
action: string;
|
|
60
|
+
category?: RuleCategory;
|
|
61
|
+
matchedPattern?: string;
|
|
62
|
+
}
|
|
63
|
+
export interface SandboxCenterSetNetworkRulesRequest {
|
|
64
|
+
rules: SandboxCenterNetworkRule[];
|
|
65
|
+
category?: RuleCategory;
|
|
66
|
+
}
|
|
67
|
+
export interface SandboxCenterAddNetworkRulesRequest {
|
|
68
|
+
rules: SandboxCenterNetworkRule[];
|
|
69
|
+
category?: RuleCategory;
|
|
70
|
+
}
|
|
71
|
+
export interface SandboxCenterRemoveNetworkRulesRequest {
|
|
72
|
+
endpoints: string[];
|
|
73
|
+
category?: RuleCategory;
|
|
74
|
+
}
|
|
75
|
+
export interface SandboxCenterAddMachRulesRequest {
|
|
76
|
+
rules: SandboxCenterMachRule[];
|
|
77
|
+
category?: RuleCategory;
|
|
78
|
+
}
|
|
79
|
+
export interface SandboxCenterRemoveMachRulesRequest {
|
|
80
|
+
names: string[];
|
|
81
|
+
category?: RuleCategory;
|
|
82
|
+
}
|
|
83
|
+
export interface SandboxCenterSetMachRulesRequest {
|
|
84
|
+
rules: SandboxCenterMachRule[];
|
|
85
|
+
category?: RuleCategory;
|
|
86
|
+
}
|
|
87
|
+
export interface SandboxCenterAddCmdRulesRequest {
|
|
88
|
+
rules: SandboxCenterCmdRule[];
|
|
89
|
+
category?: RuleCategory;
|
|
90
|
+
}
|
|
91
|
+
export interface SandboxCenterRemoveCmdRulesRequest {
|
|
92
|
+
cmds: string[];
|
|
93
|
+
category?: RuleCategory;
|
|
94
|
+
}
|
|
95
|
+
export interface SandboxCenterSetCmdRulesRequest {
|
|
96
|
+
rules: SandboxCenterCmdRule[];
|
|
97
|
+
category?: RuleCategory;
|
|
98
|
+
}
|
|
99
|
+
export interface SandboxCenterAddForbiddenProgramRequest {
|
|
100
|
+
program: string;
|
|
101
|
+
category?: RuleCategory;
|
|
102
|
+
}
|
|
103
|
+
export interface SandboxCenterRemoveForbiddenProgramRequest {
|
|
104
|
+
programs: string[];
|
|
105
|
+
category?: RuleCategory;
|
|
106
|
+
}
|
|
107
|
+
export interface SandboxCenterGetRulesResponse {
|
|
108
|
+
forbiddenProgramRules: Array<{
|
|
109
|
+
program: string;
|
|
110
|
+
comment?: string;
|
|
111
|
+
}>;
|
|
112
|
+
}
|
|
113
|
+
export interface SandboxCenterClient {
|
|
114
|
+
request<T>(command: SandboxCenterCommand, data: object, options?: SandboxCenterRequestOptions): Promise<T>;
|
|
115
|
+
close(): void;
|
|
116
|
+
getConnectionGeneration?(): number;
|
|
117
|
+
isConnected?(): boolean;
|
|
118
|
+
/**
|
|
119
|
+
* 订阅重连事件:每次成功建立**新连接**(此前无活连接——首连或断线重连)后触发。
|
|
120
|
+
* 返回取消订阅函数。
|
|
121
|
+
*
|
|
122
|
+
* 用途(#126618 规则空窗修复):center 重启(crash/升级/机器重启)后其内存态全部
|
|
123
|
+
* 丢失(运行时规则、会话授权),client 若只重连不重推,到下一轮全量下发前所有
|
|
124
|
+
* 判定都会 RuleMissing → fail-closed Ask(误弹确认框)。订阅方(如
|
|
125
|
+
* SandboxRuleSyncService)应在回调里立即重推全量规则。回调异常静默吞掉。
|
|
126
|
+
*/
|
|
127
|
+
onReconnect?(listener: () => void): () => void;
|
|
128
|
+
}
|
|
129
|
+
export interface SandboxCenterClientOptions {
|
|
130
|
+
clientRole?: string;
|
|
131
|
+
startMode?: 'connect-only' | 'spawn-if-missing';
|
|
132
|
+
resolveRuntimeContext(options?: SandboxCenterRequestOptions): SandboxCenterRuntimeContext | Promise<SandboxCenterRuntimeContext>;
|
|
133
|
+
}
|
|
134
|
+
type SandboxCenterClientBaseOptions = Omit<SandboxCenterClientOptions, 'resolveRuntimeContext'> & {
|
|
135
|
+
resolveRuntimeContext?: SandboxCenterClientOptions['resolveRuntimeContext'];
|
|
136
|
+
};
|
|
137
|
+
/** 纪元 IPC 地址环境变量名:拉起方(Desktop/standalone agent-cli)构造后注入,
|
|
138
|
+
* 经 spawn env 继承透传进程树内所有 center client(agent-cli/sandbox-cli)。 */
|
|
139
|
+
export declare const SANDBOX_CENTER_IPC_ADDRESS_ENV = "SANDBOX_CENTER_IPC_ADDRESS";
|
|
140
|
+
/** A host-owned center uses connect-only; standalone Agent CLI keeps its existing lazy spawn default. */
|
|
141
|
+
export declare const SANDBOX_CENTER_START_MODE_ENV = "CODEBUDDY_SANDBOX_CENTER_START_MODE";
|
|
142
|
+
/**
|
|
143
|
+
* 回退派生(FNV-1a 64-bit 哈希 appHome → 完整平台路径)——与 sandbox-center 侧
|
|
144
|
+
* `cipher::ipc_address` 逐字节对齐(未注入 env 的 e2e/dev 场景两侧行为一致)。
|
|
145
|
+
*/
|
|
146
|
+
export declare function resolveSandboxCenterSocketPath(appHome: string, platform?: NodeJS.Platform): string;
|
|
147
|
+
/**
|
|
148
|
+
* **纪元地址唯一构造函数**(按拉起方主进程 pid 派生):`<回退地址逻辑段>_<launcherPid>`。
|
|
149
|
+
*
|
|
150
|
+
* 纪元地址模型(2026-09):新主进程 = 新地址 = 新纪元——center 的 IPC 地址与纪元锁
|
|
151
|
+
* 都以该地址为键,crash 残留旧 center(持旧地址锁)不再阻塞新实例;同 uid 跨纪元的
|
|
152
|
+
* 存储单写者由 center 侧数据锁(security/<uid>/data.lock)守卫。
|
|
153
|
+
*
|
|
154
|
+
* **调用权规则**:只有「即将 spawn center 的拉起方」允许调用本函数并写
|
|
155
|
+
* `SANDBOX_CENTER_IPC_ADDRESS` env;树内其余 client 一律经
|
|
156
|
+
* {@link consumeEpochCenterAddress} 消费(env 优先,缺失回退旧派生)。
|
|
157
|
+
* 双入口:Desktop 主进程(workbuddy-desktop)与 standalone agent-cli
|
|
158
|
+
* (startMode='spawn-if-missing' 且 env 未注入时,以自身 pid 兜底构造)。
|
|
159
|
+
*/
|
|
160
|
+
export declare function buildEpochCenterAddress(appHome: string, launcherPid: number, platform?: NodeJS.Platform): string;
|
|
161
|
+
/**
|
|
162
|
+
* 消费纪元地址(树内 client 统一入口):env 已注入 → 忠实返回(不再派生,防双算法漂移);
|
|
163
|
+
* env 缺失/空白 → 回退 {@link resolveSandboxCenterSocketPath}(e2e/dev 兼容)。
|
|
164
|
+
*
|
|
165
|
+
* standalone agent-cli 的 spawn-if-missing 入口额外允许 `deriveIfMissing`:
|
|
166
|
+
* env 缺失且自己是拉起方时,以自身 pid 构造纪元地址并写回 env(供随后 spawn 的
|
|
167
|
+
* center 与更深的子进程继承)。Desktop 拓扑恒 connect-only,不走该分支。
|
|
168
|
+
*/
|
|
169
|
+
export declare function consumeEpochCenterAddress(appHome: string, options?: {
|
|
170
|
+
deriveIfMissing?: boolean;
|
|
171
|
+
platform?: NodeJS.Platform;
|
|
172
|
+
}): string;
|
|
173
|
+
/** Start a center with the same configuration used by the lazy CLI client.
|
|
174
|
+
* The caller owns the returned child and may shut it down through IPC.
|
|
175
|
+
* The address is passed in both config and env so all clients in its process tree
|
|
176
|
+
* use the same epoch. UID stays in the child env and never appears in argv.
|
|
177
|
+
*/
|
|
178
|
+
export declare function spawnSandboxCenter(runtime: SandboxCenterRuntimeContext): Promise<ChildProcess>;
|
|
179
|
+
export declare function createSandboxCenterClient(options: SandboxCenterClientOptions): SandboxCenterClient;
|
|
180
|
+
export declare class SandboxCenterClientBase implements SandboxCenterClient {
|
|
181
|
+
private readonly options;
|
|
182
|
+
private socket;
|
|
183
|
+
private connectedRuntimeKey;
|
|
184
|
+
private connectPromise;
|
|
185
|
+
private connectPromiseGeneration;
|
|
186
|
+
private connectionGeneration;
|
|
187
|
+
private decoder;
|
|
188
|
+
private lineBuffer;
|
|
189
|
+
private messageSequence;
|
|
190
|
+
private readonly pendingRequests;
|
|
191
|
+
/** 重连监听器(onReconnect 订阅)。 */
|
|
192
|
+
private readonly reconnectListeners;
|
|
193
|
+
constructor(options?: SandboxCenterClientBaseOptions);
|
|
194
|
+
getConnectionGeneration(): number;
|
|
195
|
+
isConnected(): boolean;
|
|
196
|
+
onReconnect(listener: () => void): () => void;
|
|
197
|
+
/** 通知所有重连监听器(边沿触发:新连接建立成功)。异常静默。 */
|
|
198
|
+
private notifyReconnect;
|
|
199
|
+
request<T>(command: SandboxCenterCommand, data: object, requestOptions?: SandboxCenterRequestOptions): Promise<T>;
|
|
200
|
+
close(): void;
|
|
201
|
+
protected spawnCenter(runtime: SandboxCenterRuntimeContext): Promise<void>;
|
|
202
|
+
protected resolveRuntimeContext(requestOptions?: SandboxCenterRequestOptions): SandboxCenterRuntimeContext | Promise<SandboxCenterRuntimeContext>;
|
|
203
|
+
private ensureConnected;
|
|
204
|
+
private connectWithStart;
|
|
205
|
+
private waitForConnection;
|
|
206
|
+
private openSocket;
|
|
207
|
+
private handleData;
|
|
208
|
+
private handleResponse;
|
|
209
|
+
private handleDisconnect;
|
|
210
|
+
private isCurrentConnection;
|
|
211
|
+
private finishPending;
|
|
212
|
+
private rejectAllPending;
|
|
213
|
+
private withClientMetadata;
|
|
214
|
+
private nextMessageId;
|
|
215
|
+
private isRetryableConnectionError;
|
|
216
|
+
}
|
package/cli/package.json
CHANGED
|
@@ -798,6 +798,6 @@
|
|
|
798
798
|
"SelectImage": true,
|
|
799
799
|
"SkipToolCallSupportCheck": true
|
|
800
800
|
},
|
|
801
|
-
"commit": "
|
|
802
|
-
"date": "2026-09-
|
|
801
|
+
"commit": "7c203b70e58175d4ef590d9ad8cdb355d2f1887c",
|
|
802
|
+
"date": "2026-09-24T06:35:18.929Z"
|
|
803
803
|
}
|
|
@@ -7,22 +7,23 @@
|
|
|
7
7
|
"instructions": "cli-agent-prompt",
|
|
8
8
|
"description": "cli agent",
|
|
9
9
|
"models": [
|
|
10
|
+
"hy4-preview",
|
|
10
11
|
"hy3",
|
|
12
|
+
"hy3-x",
|
|
13
|
+
"deepseek-v4.1-flash",
|
|
14
|
+
"glm-5.3",
|
|
15
|
+
"glm-5.3-flash",
|
|
16
|
+
"glm-5.3-flashx",
|
|
11
17
|
"glm-5.2",
|
|
12
18
|
"glm-5.1",
|
|
13
|
-
"glm-5.0",
|
|
14
|
-
"glm-5.0-turbo",
|
|
15
19
|
"glm-5v-turbo",
|
|
16
|
-
"
|
|
17
|
-
"minimax-m3",
|
|
20
|
+
"minimax-m3-pay",
|
|
18
21
|
"minimax-m2.7",
|
|
19
|
-
"kimi-k3-
|
|
22
|
+
"kimi-k3-2",
|
|
23
|
+
"kimi-k2.8-preview",
|
|
20
24
|
"kimi-k2.7",
|
|
21
25
|
"kimi-k2.6",
|
|
22
|
-
"
|
|
23
|
-
"deepseek-v4-pro",
|
|
24
|
-
"deepseek-v4-flash",
|
|
25
|
-
"deepseek-v3-2-volc"
|
|
26
|
+
"deepseek-v4-pro"
|
|
26
27
|
],
|
|
27
28
|
"modelTags": [
|
|
28
29
|
"craft"
|
|
@@ -67,6 +68,7 @@
|
|
|
67
68
|
"LSP",
|
|
68
69
|
"ImageGen",
|
|
69
70
|
"VideoGen",
|
|
71
|
+
"AudioTranscribe",
|
|
70
72
|
"Artifact",
|
|
71
73
|
"ArtifactControl",
|
|
72
74
|
"EnterWorktree",
|
|
@@ -131,6 +133,7 @@
|
|
|
131
133
|
"ImageGen",
|
|
132
134
|
"ImageEdit",
|
|
133
135
|
"VideoGen",
|
|
136
|
+
"AudioTranscribe",
|
|
134
137
|
"Artifact",
|
|
135
138
|
"ArtifactControl",
|
|
136
139
|
"ListMcpResources",
|
|
@@ -361,11 +364,11 @@
|
|
|
361
364
|
"maxAllowedSize": 56000
|
|
362
365
|
},
|
|
363
366
|
{
|
|
364
|
-
"credits": "x0.
|
|
367
|
+
"credits": "x0.51 credits",
|
|
365
368
|
"id": "deepseek-v4-pro",
|
|
366
369
|
"name": "Deepseek-V4-Pro",
|
|
367
370
|
"vendor": "f",
|
|
368
|
-
"maxOutputTokens":
|
|
371
|
+
"maxOutputTokens": 128000,
|
|
369
372
|
"maxInputTokens": 1000000,
|
|
370
373
|
"supportsToolCall": true,
|
|
371
374
|
"supportsImages": true,
|
|
@@ -377,15 +380,15 @@
|
|
|
377
380
|
"effort": "high",
|
|
378
381
|
"summary": "auto"
|
|
379
382
|
},
|
|
383
|
+
"descriptionEn": "DeepSeek flagship model, supporting 1M context window",
|
|
384
|
+
"descriptionZh": "DeepSeek 旗舰模型,支持 1M 上下文窗口",
|
|
380
385
|
"relatedModels": {
|
|
381
386
|
"lite": "deepseek-v4-pro",
|
|
382
387
|
"reasoning": "deepseek-v4-pro"
|
|
383
|
-
}
|
|
384
|
-
"descriptionEn": "DeepSeek flagship model, supporting 1M context window",
|
|
385
|
-
"descriptionZh": "DeepSeek 旗舰模型,支持 1M 上下文窗口"
|
|
388
|
+
}
|
|
386
389
|
},
|
|
387
390
|
{
|
|
388
|
-
"credits": "x0.
|
|
391
|
+
"credits": "x0.17 credits",
|
|
389
392
|
"id": "deepseek-v4-flash",
|
|
390
393
|
"name": "Deepseek-V4-Flash",
|
|
391
394
|
"vendor": "f",
|
|
@@ -401,12 +404,36 @@
|
|
|
401
404
|
"effort": "high",
|
|
402
405
|
"summary": "auto"
|
|
403
406
|
},
|
|
407
|
+
"descriptionEn": "DeepSeek flagship model, supporting 1M context window",
|
|
408
|
+
"descriptionZh": "DeepSeek 旗舰模型,支持 1M 上下文窗口",
|
|
404
409
|
"relatedModels": {
|
|
405
410
|
"lite": "deepseek-v4-flash",
|
|
406
411
|
"reasoning": "deepseek-v4-flash"
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"credits": "x0.03 credits",
|
|
416
|
+
"id": "deepseek-v4.1-flash",
|
|
417
|
+
"name": "Deepseek-V4.1-Flash",
|
|
418
|
+
"vendor": "f",
|
|
419
|
+
"maxOutputTokens": 128000,
|
|
420
|
+
"maxInputTokens": 1000000,
|
|
421
|
+
"supportsToolCall": true,
|
|
422
|
+
"supportsImages": true,
|
|
423
|
+
"maxAllowedSize": 1000000,
|
|
424
|
+
"supportsReasoning": true,
|
|
425
|
+
"onlyReasoning": true,
|
|
426
|
+
"temperature": 1,
|
|
427
|
+
"reasoning": {
|
|
428
|
+
"effort": "high",
|
|
429
|
+
"summary": "auto"
|
|
407
430
|
},
|
|
408
|
-
"descriptionEn": "DeepSeek flagship model, supporting 1M context window",
|
|
409
|
-
"descriptionZh": "DeepSeek 旗舰模型,支持 1M
|
|
431
|
+
"descriptionEn": "DeepSeek flagship model, supporting 1M context window, native multimodal model",
|
|
432
|
+
"descriptionZh": "DeepSeek 旗舰模型,支持 1M 上下文窗口,原生多模态",
|
|
433
|
+
"relatedModels": {
|
|
434
|
+
"lite": "deepseek-v4.1-flash",
|
|
435
|
+
"reasoning": "deepseek-v4.1-flash"
|
|
436
|
+
}
|
|
410
437
|
},
|
|
411
438
|
{
|
|
412
439
|
"credits": "x0.29 credits",
|
|
@@ -449,9 +476,27 @@
|
|
|
449
476
|
"summary": "auto"
|
|
450
477
|
}
|
|
451
478
|
},
|
|
479
|
+
{
|
|
480
|
+
"credits": "x0.26 credits",
|
|
481
|
+
"id": "minimax-m2.7",
|
|
482
|
+
"name": "MiniMax-M2.7",
|
|
483
|
+
"vendor": "f",
|
|
484
|
+
"maxOutputTokens": 48000,
|
|
485
|
+
"maxInputTokens": 200000,
|
|
486
|
+
"supportsToolCall": true,
|
|
487
|
+
"supportsImages": true,
|
|
488
|
+
"maxAllowedSize": 200000,
|
|
489
|
+
"supportsReasoning": true,
|
|
490
|
+
"onlyReasoning": true,
|
|
491
|
+
"temperature": 1,
|
|
492
|
+
"reasoning": {
|
|
493
|
+
"effort": "medium",
|
|
494
|
+
"summary": "auto"
|
|
495
|
+
}
|
|
496
|
+
},
|
|
452
497
|
{
|
|
453
498
|
"credits": "x0.25 credits",
|
|
454
|
-
"id": "minimax-m3",
|
|
499
|
+
"id": "minimax-m3-pay",
|
|
455
500
|
"name": "MiniMax-M3",
|
|
456
501
|
"vendor": "f",
|
|
457
502
|
"maxOutputTokens": 128000,
|
|
@@ -470,20 +515,20 @@
|
|
|
470
515
|
"descriptionEn": "Native multimodal model for coding and agents tasks",
|
|
471
516
|
"descriptionZh": "原生多模态,擅长代码、智能体任务",
|
|
472
517
|
"relatedModels": {
|
|
473
|
-
"lite": "minimax-m3",
|
|
474
|
-
"reasoning": "minimax-m3"
|
|
518
|
+
"lite": "minimax-m3-pay",
|
|
519
|
+
"reasoning": "minimax-m3-pay"
|
|
475
520
|
}
|
|
476
521
|
},
|
|
477
522
|
{
|
|
478
|
-
"credits": "x0.
|
|
479
|
-
"id": "
|
|
480
|
-
"name": "
|
|
481
|
-
"vendor": "
|
|
482
|
-
"maxOutputTokens":
|
|
483
|
-
"maxInputTokens":
|
|
523
|
+
"credits": "x0.79 credits",
|
|
524
|
+
"id": "glm-5.3",
|
|
525
|
+
"name": "GLM-5.3",
|
|
526
|
+
"vendor": "e",
|
|
527
|
+
"maxOutputTokens": 64000,
|
|
528
|
+
"maxInputTokens": 1000000,
|
|
484
529
|
"supportsToolCall": true,
|
|
485
530
|
"supportsImages": true,
|
|
486
|
-
"maxAllowedSize":
|
|
531
|
+
"maxAllowedSize": 1000000,
|
|
487
532
|
"supportsReasoning": true,
|
|
488
533
|
"onlyReasoning": true,
|
|
489
534
|
"temperature": 1,
|
|
@@ -492,8 +537,70 @@
|
|
|
492
537
|
"summary": "auto"
|
|
493
538
|
},
|
|
494
539
|
"relatedModels": {
|
|
495
|
-
"lite": "
|
|
496
|
-
"reasoning": "
|
|
540
|
+
"lite": "glm-5.3",
|
|
541
|
+
"reasoning": "glm-5.3"
|
|
542
|
+
},
|
|
543
|
+
"descriptionZh": "旗舰模型,擅长复杂软件工程与长程 Agent 任务",
|
|
544
|
+
"descriptionEn": "Flagship model, excelling at complex software engineering and long-horizon agent tasks"
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
"credits": "x0.06 credits",
|
|
548
|
+
"id": "glm-5.3-flash",
|
|
549
|
+
"name": "GLM-5.3-Flash",
|
|
550
|
+
"vendor": "f",
|
|
551
|
+
"maxOutputTokens": 131072,
|
|
552
|
+
"maxInputTokens": 1000000,
|
|
553
|
+
"supportsToolCall": true,
|
|
554
|
+
"supportsImages": true,
|
|
555
|
+
"supportsReasoning": true,
|
|
556
|
+
"temperature": 1,
|
|
557
|
+
"onlyReasoning": true,
|
|
558
|
+
"reasoning": {
|
|
559
|
+
"defaultEffort": "high",
|
|
560
|
+
"supportedEfforts": [
|
|
561
|
+
"low",
|
|
562
|
+
"high",
|
|
563
|
+
"max"
|
|
564
|
+
],
|
|
565
|
+
"canDisableThinking": true,
|
|
566
|
+
"summary": "auto"
|
|
567
|
+
},
|
|
568
|
+
"maxAllowedSize": 1000000,
|
|
569
|
+
"descriptionEn": "Native multimodal model, excelling at visual understanding and professional tasks",
|
|
570
|
+
"descriptionZh": "原生多模态模型,擅长视觉理解与专业任务",
|
|
571
|
+
"relatedModels": {
|
|
572
|
+
"lite": "glm-5.3-flash",
|
|
573
|
+
"reasoning": "glm-5.3-flash"
|
|
574
|
+
}
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
"credits": "x0.14 credits",
|
|
578
|
+
"id": "glm-5.3-flashx",
|
|
579
|
+
"name": "GLM-5.3-FlashX",
|
|
580
|
+
"vendor": "f",
|
|
581
|
+
"maxOutputTokens": 131072,
|
|
582
|
+
"maxInputTokens": 1000000,
|
|
583
|
+
"supportsToolCall": true,
|
|
584
|
+
"supportsImages": true,
|
|
585
|
+
"supportsReasoning": true,
|
|
586
|
+
"temperature": 1,
|
|
587
|
+
"onlyReasoning": true,
|
|
588
|
+
"reasoning": {
|
|
589
|
+
"defaultEffort": "high",
|
|
590
|
+
"supportedEfforts": [
|
|
591
|
+
"low",
|
|
592
|
+
"high",
|
|
593
|
+
"max"
|
|
594
|
+
],
|
|
595
|
+
"canDisableThinking": true,
|
|
596
|
+
"summary": "auto"
|
|
597
|
+
},
|
|
598
|
+
"maxAllowedSize": 1000000,
|
|
599
|
+
"descriptionEn": "Native multimodal model, excelling at visual understanding and professional tasks.",
|
|
600
|
+
"descriptionZh": "原生多模态模型,擅长视觉理解与专业任务",
|
|
601
|
+
"relatedModels": {
|
|
602
|
+
"lite": "glm-5.3-flashx",
|
|
603
|
+
"reasoning": "glm-5.3-flashx"
|
|
497
604
|
}
|
|
498
605
|
},
|
|
499
606
|
{
|
|
@@ -501,10 +608,10 @@
|
|
|
501
608
|
"id": "glm-5.2",
|
|
502
609
|
"name": "GLM-5.2",
|
|
503
610
|
"vendor": "e",
|
|
504
|
-
"maxOutputTokens":
|
|
611
|
+
"maxOutputTokens": 64000,
|
|
505
612
|
"maxInputTokens": 1000000,
|
|
506
613
|
"supportsToolCall": true,
|
|
507
|
-
"supportsImages":
|
|
614
|
+
"supportsImages": false,
|
|
508
615
|
"maxAllowedSize": 1000000,
|
|
509
616
|
"supportsReasoning": true,
|
|
510
617
|
"onlyReasoning": true,
|
|
@@ -526,7 +633,7 @@
|
|
|
526
633
|
"maxOutputTokens": 48000,
|
|
527
634
|
"maxInputTokens": 200000,
|
|
528
635
|
"supportsToolCall": true,
|
|
529
|
-
"supportsImages":
|
|
636
|
+
"supportsImages": false,
|
|
530
637
|
"maxAllowedSize": 200000,
|
|
531
638
|
"supportsReasoning": true,
|
|
532
639
|
"onlyReasoning": true,
|
|
@@ -581,7 +688,7 @@
|
|
|
581
688
|
}
|
|
582
689
|
},
|
|
583
690
|
{
|
|
584
|
-
"credits": "x0.
|
|
691
|
+
"credits": "x0.71 credits",
|
|
585
692
|
"id": "glm-5v-turbo",
|
|
586
693
|
"name": "GLM-5v-Turbo",
|
|
587
694
|
"vendor": "e",
|
|
@@ -649,7 +756,7 @@
|
|
|
649
756
|
},
|
|
650
757
|
{
|
|
651
758
|
"credits": "x1.62 credits",
|
|
652
|
-
"id": "kimi-k3-
|
|
759
|
+
"id": "kimi-k3-2",
|
|
653
760
|
"name": "Kimi-K3",
|
|
654
761
|
"vendor": "f",
|
|
655
762
|
"maxOutputTokens": 32000,
|
|
@@ -667,6 +774,38 @@
|
|
|
667
774
|
"descriptionEn": "Excels at complex, long-horizon autonomous tasks, with standout front-end skills and strong knowledge work and scientific reasoning",
|
|
668
775
|
"descriptionZh": "擅长处理复杂的长程自主任务,前端开发能力突出,同时在知识工作与科研推理上表现出色。"
|
|
669
776
|
},
|
|
777
|
+
{
|
|
778
|
+
"credits": "x0.77 credits",
|
|
779
|
+
"id": "kimi-k2.8-preview",
|
|
780
|
+
"name": "Kimi-K2.8-Preview",
|
|
781
|
+
"vendor": "f",
|
|
782
|
+
"maxOutputTokens": 64000,
|
|
783
|
+
"maxInputTokens": 1000000,
|
|
784
|
+
"supportsToolCall": true,
|
|
785
|
+
"supportsImages": true,
|
|
786
|
+
"supportsReasoning": true,
|
|
787
|
+
"temperature": 1,
|
|
788
|
+
"onlyReasoning": true,
|
|
789
|
+
"reasoning": {
|
|
790
|
+
"defaultEffort": "high",
|
|
791
|
+
"supportedEfforts": [
|
|
792
|
+
"low",
|
|
793
|
+
"high",
|
|
794
|
+
"max"
|
|
795
|
+
],
|
|
796
|
+
"canDisableThinking": true,
|
|
797
|
+
"summary": "auto"
|
|
798
|
+
},
|
|
799
|
+
"canDisableThinking": true,
|
|
800
|
+
"summary": "auto",
|
|
801
|
+
"maxAllowedSize": 1000000,
|
|
802
|
+
"descriptionEn": "Excels at complex, long-horizon autonomous tasks, with standout front-end skills and strong knowledge work and scientific reasoning",
|
|
803
|
+
"descriptionZh": "擅长处理复杂的长程自主任务,前端开发能力突出,同时在知识工作与科研推理上表现出色。",
|
|
804
|
+
"relatedModels": {
|
|
805
|
+
"lite": "kimi-k2.8-preview",
|
|
806
|
+
"reasoning": "kimi-k2.8-preview"
|
|
807
|
+
}
|
|
808
|
+
},
|
|
670
809
|
{
|
|
671
810
|
"credits": "x0.57 credits",
|
|
672
811
|
"id": "kimi-k2.7",
|
|
@@ -767,6 +906,80 @@
|
|
|
767
906
|
"summary": "auto"
|
|
768
907
|
}
|
|
769
908
|
},
|
|
909
|
+
{
|
|
910
|
+
"credits": "x0.05 credits",
|
|
911
|
+
"id": "hy3-x",
|
|
912
|
+
"name": "Hy3",
|
|
913
|
+
"vendor": "j",
|
|
914
|
+
"maxOutputTokens": 64000,
|
|
915
|
+
"maxInputTokens": 192000,
|
|
916
|
+
"maxAllowedSize": 192000,
|
|
917
|
+
"supportsToolCall": true,
|
|
918
|
+
"supportsImages": true,
|
|
919
|
+
"disabledMultimodal": false,
|
|
920
|
+
"supportsReasoning": true,
|
|
921
|
+
"temperature": 0.9,
|
|
922
|
+
"onlyReasoning": true,
|
|
923
|
+
"top_p": 1,
|
|
924
|
+
"reasoning": {
|
|
925
|
+
"effort": "high",
|
|
926
|
+
"summary": "auto"
|
|
927
|
+
},
|
|
928
|
+
"descriptionEn": "Hunyuan's thinking model with enhanced reasoning capabilities",
|
|
929
|
+
"descriptionZh": "混元思考模型,具有增强的推理能力"
|
|
930
|
+
},
|
|
931
|
+
{
|
|
932
|
+
"credits": "x0.29 credits",
|
|
933
|
+
"id": "hy4-preview",
|
|
934
|
+
"name": "Hy4 preview",
|
|
935
|
+
"vendor": "j",
|
|
936
|
+
"maxOutputTokens": 64000,
|
|
937
|
+
"maxInputTokens": 1000000,
|
|
938
|
+
"maxAllowedSize": 1000000,
|
|
939
|
+
"supportsToolCall": true,
|
|
940
|
+
"supportsImages": true,
|
|
941
|
+
"disabledMultimodal": false,
|
|
942
|
+
"supportsReasoning": true,
|
|
943
|
+
"temperature": 0.9,
|
|
944
|
+
"onlyReasoning": true,
|
|
945
|
+
"top_p": 1,
|
|
946
|
+
"reasoning": {
|
|
947
|
+
"canDisableThinking": false,
|
|
948
|
+
"defaultEffort": "high",
|
|
949
|
+
"supportedEfforts": [
|
|
950
|
+
"high"
|
|
951
|
+
],
|
|
952
|
+
"summary": "auto"
|
|
953
|
+
},
|
|
954
|
+
"descriptionEn": "Hunyuan's thinking model with enhanced reasoning capabilities",
|
|
955
|
+
"descriptionZh": "混元思考模型,具有增强的推理能力"
|
|
956
|
+
},
|
|
957
|
+
{
|
|
958
|
+
"credits": "x0.29 credits",
|
|
959
|
+
"id": "hy4-preview-x",
|
|
960
|
+
"name": "Hy4 preview",
|
|
961
|
+
"vendor": "j",
|
|
962
|
+
"maxOutputTokens": 64000,
|
|
963
|
+
"maxInputTokens": 1000000,
|
|
964
|
+
"maxAllowedSize": 1000000,
|
|
965
|
+
"supportsToolCall": true,
|
|
966
|
+
"supportsImages": true,
|
|
967
|
+
"disabledMultimodal": false,
|
|
968
|
+
"supportsReasoning": true,
|
|
969
|
+
"temperature": 0.9,
|
|
970
|
+
"onlyReasoning": true,
|
|
971
|
+
"top_p": 1,
|
|
972
|
+
"reasoning": {
|
|
973
|
+
"canDisableThinking": false,
|
|
974
|
+
"defaultEffort": "high",
|
|
975
|
+
"supportedEfforts": [
|
|
976
|
+
"high"
|
|
977
|
+
],
|
|
978
|
+
"summary": "auto"
|
|
979
|
+
},
|
|
980
|
+
"descriptionEn": "Hunyuan's thinking model with enhanced reasoning capabilities",
|
|
981
|
+
"descriptionZh": "混元思考模型,具有增强的推理能力"
|
|
982
|
+
},
|
|
770
983
|
{
|
|
771
984
|
"credits": "x0.10 credits",
|
|
772
985
|
"id": "hunyuan-chat",
|
|
@@ -779,11 +992,16 @@
|
|
|
779
992
|
"disabledMultimodal": true
|
|
780
993
|
},
|
|
781
994
|
{
|
|
782
|
-
"
|
|
783
|
-
"
|
|
784
|
-
"
|
|
995
|
+
"id": "hunyuan-image-alpha",
|
|
996
|
+
"name": "Hunyuan Image Alpha",
|
|
997
|
+
"tags": [
|
|
998
|
+
"text-to-image"
|
|
999
|
+
]
|
|
1000
|
+
},
|
|
1001
|
+
{
|
|
1002
|
+
"id": "hunyuan-image-alpha-edit",
|
|
1003
|
+
"name": "Hunyuan Image Alpha Edit",
|
|
785
1004
|
"tags": [
|
|
786
|
-
"text-to-image",
|
|
787
1005
|
"image-to-image"
|
|
788
1006
|
]
|
|
789
1007
|
}
|
|
@@ -807,6 +1025,7 @@
|
|
|
807
1025
|
"DeferToolLoading": true,
|
|
808
1026
|
"ImageGen": true,
|
|
809
1027
|
"VideoGen": true,
|
|
1028
|
+
"AudioTranscribe": false,
|
|
810
1029
|
"ShareLink": true,
|
|
811
1030
|
"Artifact": true,
|
|
812
1031
|
"RequestBodyGzip": true,
|
|
@@ -833,6 +1052,6 @@
|
|
|
833
1052
|
}
|
|
834
1053
|
}
|
|
835
1054
|
},
|
|
836
|
-
"commit": "
|
|
837
|
-
"date": "2026-09-
|
|
1055
|
+
"commit": "7c203b70e58175d4ef590d9ad8cdb355d2f1887c",
|
|
1056
|
+
"date": "2026-09-24T06:35:18.914Z"
|
|
838
1057
|
}
|