@ai-workbench/remote-agent 0.9.0-toolbridge.10 → 0.9.0-toolbridge.11

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/README.md CHANGED
@@ -1,8 +1,8 @@
1
- # AI Workbench 远程助手 · @ai-workbench/remote-agent@0.9.0-toolbridge.10 · 插件 → 添加插件
1
+ # AI Workbench 远程助手 · @ai-workbench/remote-agent@0.9.0-toolbridge.11 · 插件 → 添加插件
2
2
 
3
3
  ## 含工具桥预发布线
4
4
 
5
- 本包为 `0.9.0-toolbridge.10`,在独立 `release/x-mac-universal` 分支支持 Intel 与 Apple 芯片 Mac;稳定 main/0.8.x 和原总包保持原样。员工安装由连接组件提供的「AI 写作工作台(含工具桥)」总包,与不含工具桥的版本二选一。预发布渠道为 `mac-universal`,本轮仅提供本地固定包,不发布 npm。
5
+ 本包为 `0.9.0-toolbridge.11`,从 `v0.9.0-toolbridge.9` 派生,使用 `host-toolbridge` 发布渠道。员工安装由连接组件提供的「AI 写作工作台(含工具桥)」总包 `@ai-workbench/workbench-toolbridge@0.1.8`,与不含工具桥的版本二选一。
6
6
 
7
7
  选择本机文件夹后,Claude 和 Codex 可以把 DSH 已启用的 MCP、web、skill、ask_user、todo/present/goal 等工具交给 DSH 原生执行和审批。内置文件/命令、子代理/agent-team、run_code 不在桥接表;原有文件和命令执行方式保留。plan 不自动放行桥接权限;default 下 Claude 的桥接原生权限由插件单次应答,员工只在 DSH 审批实际工具。主机文件夹不开放工具桥。
8
8
 
@@ -47,7 +47,7 @@ Codex 员工端只使用随包提供的原生组件,通道等待本次组件
47
47
 
48
48
  | 参数 | 默认值 | 作用 |
49
49
  | --- | ---: | --- |
50
- | acpMaxMessageBytes | 4194304 | 会话消息容量 |
50
+ | acpMaxMessageBytes | 32000000 | 会话消息容量;默认32 MB(十进制),低于主机完整ACP行32 MiB上限以留出协议外壳余量 |
51
51
  | brokerMaxFrameBytes | 2097152 | 主机回传单段容量 |
52
52
  | brokerControlMaxBytes | 1048576 | 主机会话管理回复容量 |
53
53
  | employeeShellKillGraceMs | 1000 | 本机命令连接取消后的清理宽限毫秒 |
package/dist/client.js CHANGED
@@ -1,6 +1,6 @@
1
1
  window.__ModuleLoader__.load({id:'@ai-workbench/remote-agent',factory(require){
2
2
  const messages={"en":{"administratorNote":"Settings → Built-in plugins → 远程助手参数. Eight named settings with defaults, scope and effects.","providerName":"Codex (Remote Host)"},"zh":{"administratorNote":"管理员:设置 → 内置插件 → 远程助手参数。八项设置含默认值、范围、生效和后果说明。","providerName":"Codex(远程主机)"}};
3
- const settingsFields=[{"key":"acpMaxMessageBytes","name":"完整消息与工具输出容量(字节)","kind":"number","min":1,"max":9007199254740991,"range":"1~9007199254740991 的整数;0不能关闭上限","scope":"两位远程助手的完整会话消息;也用于模型目录、本机 MCP、员工执行 RPC 和工具输出容量。","when":"当轮快照不变;下一次独立目录查询读取新值;已有会话需新建后使用。","consequence":"调大可接收更大消息、占用更多内存;调小更早拒绝超限。超限明确停止,不截断、不自动重试;不能用0取消完整消息保护。","defaultValue":4194304},{"key":"brokerMaxFrameBytes","name":"主机会话回传单段容量(字节)","kind":"number","min":1,"max":9007199254740991,"range":"1~9007199254740991 的整数;0不能关闭上限","scope":"本插件接收主机会话单段输出的容量;不会替主机修改它自己的输出策略。","when":"当轮快照不变;更改后已有会话需新建。","consequence":"调大允许更大回传段、占用更多内存;调小可能拒绝主机合法输出。超限停止,不截断;不能关闭协议帧核验。","defaultValue":2097152},{"key":"brokerControlMaxBytes","name":"主机会话管理回复容量(字节)","kind":"number","min":1,"max":9007199254740991,"range":"1~9007199254740991 的整数;0不能关闭上限","scope":"主机会话管理命令的标准输出、标准错误各自容量;也用于本机执行桥的管理回复。","when":"当轮快照不变;更改后已有会话需新建。","consequence":"调大允许更长管理回复、占用更多内存;调小可能无法核实状态。超限明确停止,不能把不完整回复当成功;0不表示无限。","defaultValue":1048576},{"key":"employeeShellKillGraceMs","name":"本机命令外层连接清理宽限(毫秒)","kind":"number","min":0,"max":2147483647,"range":"0~2147483647 的整数","scope":"仅 Claude 本机 Bash 取消后,本插件自己的外层 SSH 进程清理;不控制员工命令或 Codex 执行器。","when":"当轮快照不变;更改后已有会话需新建。","consequence":"大于0时先请求外层连接退出,再等待所设毫秒后强制清理;0表示不留宽限、立即强制清理外层连接,不是关闭取消。没有员工端退出确认时结果仍未知,不能据此自动重放或声称命令已停止。","defaultValue":1000}];
3
+ const settingsFields=[{"key":"acpMaxMessageBytes","name":"完整消息与工具输出容量(字节)","kind":"number","min":1,"max":9007199254740991,"range":"1~9007199254740991 的整数;0不能关闭上限","scope":"两位远程助手的完整会话消息;默认32 MB(32000000字节)。也用于模型目录、本机 MCP、员工执行 RPC 和工具输出容量。","when":"当轮快照不变;下一次独立调用或目录查询读取新值。","consequence":"调大可接收更大消息、占用更多内存;调小更早拒绝超限。超限明确停止,不截断、不自动重试;不能用0取消完整消息保护。","defaultValue":32000000},{"key":"brokerMaxFrameBytes","name":"主机会话回传单段容量(字节)","kind":"number","min":1,"max":9007199254740991,"range":"1~9007199254740991 的整数;0不能关闭上限","scope":"本插件接收主机会话单段输出的容量;不会替主机修改它自己的输出策略。","when":"当轮快照不变;更改后已有会话需新建。","consequence":"调大允许更大回传段、占用更多内存;调小可能拒绝主机合法输出。超限停止,不截断;不能关闭协议帧核验。","defaultValue":2097152},{"key":"brokerControlMaxBytes","name":"主机会话管理回复容量(字节)","kind":"number","min":1,"max":9007199254740991,"range":"1~9007199254740991 的整数;0不能关闭上限","scope":"主机会话管理命令的标准输出、标准错误各自容量;也用于本机执行桥的管理回复。","when":"当轮快照不变;更改后已有会话需新建。","consequence":"调大允许更长管理回复、占用更多内存;调小可能无法核实状态。超限明确停止,不能把不完整回复当成功;0不表示无限。","defaultValue":1048576},{"key":"employeeShellKillGraceMs","name":"本机命令外层连接清理宽限(毫秒)","kind":"number","min":0,"max":2147483647,"range":"0~2147483647 的整数","scope":"仅 Claude 本机 Bash 取消后,本插件自己的外层 SSH 进程清理;不控制员工命令或 Codex 执行器。","when":"当轮快照不变;更改后已有会话需新建。","consequence":"大于0时先请求外层连接退出,再等待所设毫秒后强制清理;0表示不留宽限、立即强制清理外层连接,不是关闭取消。没有员工端退出确认时结果仍未知,不能据此自动重放或声称命令已停止。","defaultValue":1000}];
4
4
  /* Public settings.plugins.tab + shared ConfigForms. No private client services. */
5
5
  function mountRuntimeSettings(ctx,React,fields){
6
6
  const h=React.createElement;
@@ -1,20 +1,10 @@
1
1
  export declare const EMPLOYEE_NATIVE: Readonly<{
2
- arm64: Readonly<{
3
- version: "0.160.1";
4
- platform: "darwin";
5
- arch: "arm64";
6
- package: "@openai/codex-darwin-arm64";
7
- packageVersion: "0.160.1-darwin-arm64";
8
- triple: "aarch64-apple-darwin";
9
- }>;
10
- x64: Readonly<{
11
- version: "0.160.1";
12
- platform: "darwin";
13
- arch: "x64";
14
- package: "@openai/codex-darwin-x64";
15
- packageVersion: "0.160.1-darwin-x64";
16
- triple: "x86_64-apple-darwin";
17
- }>;
2
+ version: "0.160.1";
3
+ platform: "darwin";
4
+ arch: "arm64";
5
+ package: "@openai/codex-darwin-arm64";
6
+ packageVersion: "0.160.1-darwin-arm64";
7
+ triple: "aarch64-apple-darwin";
18
8
  }>;
19
9
  /** Resolve the installed executable; no per-turn hash or version probe. */
20
10
  export declare function resolveEmployeeNative(ports?: {
@@ -2,19 +2,14 @@ import { createRequire } from 'node:module';
2
2
  import { dirname, join } from 'node:path';
3
3
  import { NeedError } from "./remote.js";
4
4
  const require = createRequire(import.meta.url);
5
- export const EMPLOYEE_NATIVE = Object.freeze({
6
- arm64: Object.freeze({ version: '0.160.1', platform: 'darwin', arch: 'arm64', package: '@openai/codex-darwin-arm64', packageVersion: '0.160.1-darwin-arm64', triple: 'aarch64-apple-darwin' }),
7
- x64: Object.freeze({ version: '0.160.1', platform: 'darwin', arch: 'x64', package: '@openai/codex-darwin-x64', packageVersion: '0.160.1-darwin-x64', triple: 'x86_64-apple-darwin' }),
8
- });
5
+ export const EMPLOYEE_NATIVE = Object.freeze({ version: '0.160.1', platform: 'darwin', arch: 'arm64', package: '@openai/codex-darwin-arm64', packageVersion: '0.160.1-darwin-arm64', triple: 'aarch64-apple-darwin' });
9
6
  /** Resolve the installed executable; no per-turn hash or version probe. */
10
7
  export async function resolveEmployeeNative(ports = {}) {
11
- const arch = ports.arch ?? process.arch;
12
- if ((ports.platform ?? process.platform) !== 'darwin' || (arch !== 'arm64' && arch !== 'x64'))
8
+ if ((ports.platform ?? process.platform) !== EMPLOYEE_NATIVE.platform || (ports.arch ?? process.arch) !== EMPLOYEE_NATIVE.arch)
13
9
  throw new NeedError('EMPLOYEE_PLATFORM_UNSUPPORTED', '当前设备尚未支持本机执行。', '对应平台执行器');
14
- const native = EMPLOYEE_NATIVE[arch];
15
10
  try {
16
- const manifest = (ports.resolve ?? require.resolve)(native.package + '/package.json');
17
- return { path: join(dirname(manifest), 'vendor', native.triple, 'bin', 'codex') };
11
+ const manifest = (ports.resolve ?? require.resolve)(EMPLOYEE_NATIVE.package + '/package.json');
12
+ return { path: join(dirname(manifest), 'vendor', EMPLOYEE_NATIVE.triple, 'bin', 'codex') };
18
13
  }
19
14
  catch {
20
15
  throw new NeedError('AW_EMPLOYEE_BINARY_MISSING', '本机执行组件没有装齐,请重新安装插件。', '随插件安装的执行组件');
package/dist/index.d.ts CHANGED
@@ -15,7 +15,7 @@ export declare const settingsNamespace = "ai-workbench-codex";
15
15
  export declare const inject: string[];
16
16
  /** Owner-approved defaults; administrators may override through the existing settings. */
17
17
  export declare const DEFAULT_CONFIG: Readonly<{
18
- readonly acpMaxMessageBytes: 4194304;
18
+ readonly acpMaxMessageBytes: 32000000;
19
19
  readonly brokerMaxFrameBytes: 2097152;
20
20
  readonly brokerControlMaxBytes: 1048576;
21
21
  readonly employeeShellKillGraceMs: 1000;
package/dist/index.js CHANGED
@@ -39,9 +39,9 @@ export const settingsNamespace = 'ai-workbench-codex';
39
39
  // L can be installed/enabled after X; keeping X mounted lets it explain the prerequisite.
40
40
  export const inject = ['llm'];
41
41
  /** Owner-approved defaults; administrators may override through the existing settings. */
42
- export const DEFAULT_CONFIG = Object.freeze({ acpMaxMessageBytes: 4194304, brokerMaxFrameBytes: 2097152, brokerControlMaxBytes: 1048576, employeeShellKillGraceMs: 1000 });
42
+ export const DEFAULT_CONFIG = Object.freeze({ acpMaxMessageBytes: 32000000, brokerMaxFrameBytes: 2097152, brokerControlMaxBytes: 1048576, employeeShellKillGraceMs: 1000 });
43
43
  export const Config = Schema.object({
44
- acpMaxMessageBytes: Schema.number().min(1).step(1).i18n({ en: 'Session message limit; default 4 MiB, adjustable by administrators', zh: '会话消息容量;默认4 MiB,管理员可调整' }).default(DEFAULT_CONFIG.acpMaxMessageBytes).volatile(),
44
+ acpMaxMessageBytes: Schema.number().min(1).step(1).i18n({ en: 'Session message limit; default 32 MB, adjustable by administrators', zh: '会话消息容量;默认32 MB,管理员可调整' }).default(DEFAULT_CONFIG.acpMaxMessageBytes).volatile(),
45
45
  brokerMaxFrameBytes: Schema.number().min(1).step(1).i18n({ en: 'Host output chunk limit; default 2 MiB, adjustable by administrators', zh: '主机回传单段容量;默认2 MiB,管理员可调整' }).default(DEFAULT_CONFIG.brokerMaxFrameBytes).volatile(),
46
46
  brokerControlMaxBytes: Schema.number().min(1).step(1).i18n({ en: 'Host session control reply limit; default 1 MiB, adjustable by administrators', zh: '主机会话管理回复容量;默认1 MiB,管理员可调整' }).default(DEFAULT_CONFIG.brokerControlMaxBytes).volatile(),
47
47
  employeeShellKillGraceMs: Schema.number().min(0).max(2147483647).step(1).i18n({ en: 'Local command SSH cleanup grace in milliseconds; cancellation keeps the remote result unknown', zh: '本机命令SSH取消后的清理宽限毫秒;默认1000,取消仍保留员工端结果未知' }).default(DEFAULT_CONFIG.employeeShellKillGraceMs).volatile(),
@@ -80,7 +80,7 @@ export function employeeFailure(code, brand = 'codex', promptDispatched = true)
80
80
  if (code === 'AW_EMPLOYEE_CONFIG_DISCOVERY_OVERRIDE_UNSUPPORTED')
81
81
  return '当前助手的项目配置覆盖与本机执行不兼容,本轮没有执行,请联系管理员。';
82
82
  if (code === 'EMPLOYEE_PLATFORM_UNSUPPORTED')
83
- return brand === 'claude' ? '本机执行目前只支持Mac;当前设备尚不支持,本轮未执行。' : 'Codex本机执行目前只支持Intel或Apple芯片Mac;当前设备尚不支持,本轮未执行。';
83
+ return brand === 'claude' ? '本机执行目前只支持Mac;当前设备尚不支持,本轮未执行。' : '当前版本的Codex本机执行仅验证了Apple芯片Mac,本轮没有执行。';
84
84
  if (code === 'AW_EMPLOYEE_BINARY_MISSING')
85
85
  return '本机执行组件没有装齐,本轮没有执行,请重新安装插件。';
86
86
  if (code.startsWith('AW_EMPLOYEE_') || code.startsWith('EMPLOYEE_'))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-workbench/remote-agent",
3
- "version": "0.9.0-toolbridge.10",
3
+ "version": "0.9.0-toolbridge.11",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -67,7 +67,10 @@
67
67
  "typescript": "5.9.3",
68
68
  "zustand": "4.4.7",
69
69
  "@deepseek-ai/dsh-sandbox-policy": "0.2.0-rc.2",
70
- "@deepseek-ai/dsh-storage-domain": "0.2.0-rc.2"
70
+ "@deepseek-ai/dsh-storage-domain": "0.2.0-rc.2",
71
+ "@deepseek-ai/dsh-session-projection": "0.2.0-rc.2",
72
+ "@deepseek-ai/dsh-system-prompt": "0.2.0-rc.2",
73
+ "@deepseek-ai/dsh-tools": "0.2.0-rc.2"
71
74
  },
72
75
  "peerDependencies": {
73
76
  "@ai-workbench/connect": "~0.7.37",
@@ -109,7 +112,7 @@
109
112
  "publishConfig": {
110
113
  "access": "public",
111
114
  "registry": "https://registry.npmjs.org/",
112
- "tag": "mac-universal"
115
+ "tag": "toolbridge"
113
116
  },
114
117
  "keywords": [
115
118
  "dsh",