@ai-workbench/remote-agent 0.9.0-toolbridge.17 → 0.9.0-toolbridge.19

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.17 · 插件 → 添加插件
1
+ # AI Workbench 远程助手 · @ai-workbench/remote-agent@0.9.0-toolbridge.19 · 插件 → 添加插件
2
2
 
3
3
  ## 含工具桥预发布线
4
4
 
5
- 本包为 `0.9.0-toolbridge.17`,从 `v0.9.0-toolbridge.14` 派生,使用 `host-toolbridge` 发布渠道。员工安装由连接组件提供的「AI 写作工作台(含工具桥)」总包 `@ai-workbench/workbench-toolbridge@0.1.14`,与不含工具桥的版本二选一。
5
+ 本包为 `0.9.0-toolbridge.19`,从 `v0.9.0-toolbridge.14` 派生,使用 `host-toolbridge` 发布渠道。员工安装由连接组件提供的「AI 写作工作台(含工具桥)」总包 `@ai-workbench/workbench-toolbridge@0.1.16`,与不含工具桥的版本二选一。
6
6
 
7
7
  本轮增加两家运行中插话(DSH 原生 nextStep),保留官方队列和原话;明确 followup 仍排下一轮。Codex 含桥组件需 `2.2.2-aw.12`,Claude 仍为官方 `0.94.0`。插件确定消息未发出时保留排队资格;送达未确认时明确报错且不重放。已注入旧正文不能撤回,编辑版下一步骤交付。
8
8
 
@@ -10,8 +10,12 @@ host `0.8.11` 的新 broker 支持同一客户端/SDK 在切网后按输出游
10
10
 
11
11
  原轮正常完成(或冷接回已交付原结果)后结束该轮主机 broker,原生线程写锁随之释放,同一 DSH 会话下一轮不再因旧轮保留 10 分钟而报“原会话仍被占用”;结果未定(插件退出、断开、失败)时仍保留原轮待接回。旧 X.14–.16 发出的结束请求在主机上始终不生效,只有升级本包才消除;只升主机不够。
12
12
 
13
+ 本机文件夹下的主机 Claude 可以开自己的子代理(原生 Agent 与 TaskStop),子代理还能再开子代理,插件不加层数或次数限制。子代理继承同一工具表:原生 Read/Write/Edit/Glob/Grep/Bash 仍关闭,文件和命令只走员工本机工具并按原审批;工具桥的 DSH 工具同样可用。子代理的工具事件进技术详情,结论由主 Claude 在原回复里给出;取消本轮会一并结束子代理。Claude 原生的 SendMessage/ListAgents 不开放(DSH 同名的 send_message/list_agents 见下段),因为它们能触及主机账号的其他本地和云端会话;子代理完成后结果仍自动交回主 Claude。主机文件夹本就允许,行为不变。Codex 自身的多代理功能本线没有关闭(层数和线程数是 Codex 上游默认值,插件不改)。
13
14
 
14
- 选择本机文件夹后,Claude 和 Codex 可以把 DSH 已启用的 MCP、web、skill、ask_user、todo/present/goal 等工具交给 DSH 原生执行和审批。内置文件/命令、子代理/agent-team、run_code 不在桥接表;原有文件和命令执行方式保留。plan 不自动放行桥接权限;default 下 Claude 的桥接原生权限由插件单次应答,员工只在 DSH 审批实际工具。主机文件夹不开放工具桥。
15
+ 任何 agent 都可以调用其他 agent:本机文件夹下的主机 Claude/Codex 经工具桥使用 DSH 自带的子代理工具(subagent、subagent_fork、list_subagent_models、send_message、interrupt_agent、list_agents、wait_agent、spawn_teammate、team_task_*、workflow 及后台任务 job_output/job_list/job_kill),由 DSH 执行、审批、显示子代理卡片和交回结果。被调方可以是主机 Claude 新会话、主机 Codex 新会话或员工在 DSH 配好的模型;跨品牌路由需员工在 DSH 子代理设置里允许。DSH 的子会话不是工作区成员,插件沿 live 的 parentSession 找到最近一个登记在工作区里的祖先会话,按它的工作区执行(子会话 cwd 仍须等于该工作区,本机/主机文件夹同样适用);子会话有自己的主机原生会话、broker、冷接回记录,文件和命令照常走员工本机或所选主机目录。层数、并发由 DSH 自己的用户设置决定,插件不加任何层数、并发、次数或预算限制,也不改 DSH 设置。主机文件夹不开放工具桥,所以主机文件夹下的主机 Claude/Codex 只能用自己的原生子代理,作为被调方时由 DSH 子代理派出。
16
+
17
+
18
+ 选择本机文件夹后,Claude 和 Codex 可以把 DSH 已启用的 MCP、web、skill、ask_user、todo/present/goal 等工具交给 DSH 原生执行和审批。DSH 内置文件/命令、终端、run_code 不经工具桥转交;DSH 子代理/agent-team/workflow/后台任务工具经工具桥交给 DSH;原有文件和命令执行方式保留。plan 不自动放行桥接权限;default 下 Claude 的桥接原生权限由插件单次应答,员工只在 DSH 审批实际工具。主机文件夹不开放工具桥。
15
19
 
16
20
  工具表按每次主机连接生成快照,新增/移除在下一次连接生效;不承诺 Codex 当前 MCP 会话热刷新。审批期间的插话等当前主机 prompt 结束后再发,停泊中切换助手会停止原轮次并明确提示。工具主动结束DSH轮次时,已提交结果仍交回原agent;确认原生工具收到后结束原prompt,下一条沿原线程继续,不在已关闭步骤追加模型回复。取消和主机结束等待后的结果不重放;工具已执行的副作用不能因取消而撤销,请按说明核对。图片结果由官方附件组件读取后交回。
17
21
 
package/dist/acp.js CHANGED
@@ -7,7 +7,9 @@ import { employeeFailure } from "./presentation.js";
7
7
  import { isolateRpcIds } from "./rpc-namespace.js";
8
8
  import { sanitizeObservation, sanitizeDisplayLabel } from "./conversation-details.js";
9
9
  import { ModelConfiguration, ModelConfigurationError } from "./model-configuration.js";
10
- function employeeClaudeOptions(routing) { return { tools: [], disallowedTools: ['Read', 'Write', 'Edit', 'Glob', 'Grep', 'Bash', 'Agent', 'Task', 'TaskOutput', 'TaskStop'], toolAliases: structuredClone(routing.toolAliases) }; }
10
+ // Native subagents stay on (Agent/TaskStop): children inherit this tool pool, deny rules and the employee MCP aliases, so their files/commands also run on the employee device.
11
+ // SendMessage/ListAgents stay off: they also reach other local and cloud sessions of the host account.
12
+ function employeeClaudeOptions(routing) { return { tools: ['Agent', 'TaskStop'], disallowedTools: ['Read', 'Write', 'Edit', 'Glob', 'Grep', 'Bash'], toolAliases: structuredClone(routing.toolAliases) }; }
11
13
  const permissionRanks = { claude: { plan: 0, default: 1, acceptEdits: 1, bypassPermissions: 2 }, codex: { 'read-only': 0, 'workspace-write': 1, agent: 1, 'agent-full-access': 2 } };
12
14
  /** ACP v1 with explicitly negotiated SDK 2.0 lifecycle/context extensions. */
13
15
  export class AcpSession {
@@ -155,7 +155,7 @@ export function createClaudeLocalProvider(options) {
155
155
  });
156
156
  };
157
157
  const executionSignal = modelLifetime.signal;
158
- row.runtime = { ...underlying, localDirectory: { ...workspace.directory }, closeDiagnostics, cwd: workspace.directory.path, details, connection: { ...connection }, binding: { bindingId: item.bindingId, workspaceId: workspace.workspaceId, revision: state.revision }, execution: { hostCwd: target.session.root, routing: mcp.routing, notice: NOTICE, signal: executionSignal, scope: { source: 'local', cwd: workspace.directory.path, hostCwd: target.session.root, uid: lease.target.endpoint.remoteUid, claudeAcpVersion: '0.94.0', sdkVersion: '0.3.303', unsupported: ['subagents', 'internal-direct-calls', 'binary-read', 'background-shell'] }, validate: async (signal) => { signal?.throwIfAborted(); lease.signal.throwIfAborted(); executionSignal.throwIfAborted(); }, beginTurn: async (signal) => { signal?.throwIfAborted(); lease.signal.throwIfAborted(); executionSignal.throwIfAborted(); if (row.closing || row.active)
158
+ row.runtime = { ...underlying, localDirectory: { ...workspace.directory }, closeDiagnostics, cwd: workspace.directory.path, details, connection: { ...connection }, binding: { bindingId: item.bindingId, workspaceId: workspace.workspaceId, revision: state.revision }, execution: { hostCwd: target.session.root, routing: mcp.routing, notice: NOTICE, signal: executionSignal, scope: { source: 'local', cwd: workspace.directory.path, hostCwd: target.session.root, uid: lease.target.endpoint.remoteUid, claudeAcpVersion: '0.94.0', sdkVersion: '0.3.303', unsupported: ['internal-direct-calls', 'binary-read', 'background-shell'] }, validate: async (signal) => { signal?.throwIfAborted(); lease.signal.throwIfAborted(); executionSignal.throwIfAborted(); }, beginTurn: async (signal) => { signal?.throwIfAborted(); lease.signal.throwIfAborted(); executionSignal.throwIfAborted(); if (row.closing || row.active)
159
159
  throw failure('TURN_BUSY'); row.active = { signal, details: row.details }; }, endTurn: () => { row.active = undefined; } }, dispose: cause => close(false, cause), detach: cause => close(true, cause) };
160
160
  entries.set(request.sessionId, row);
161
161
  const endpointAborted = () => {
@@ -4,6 +4,25 @@ interface Services {
4
4
  get(name: string): unknown;
5
5
  inject: Context['inject'];
6
6
  }
7
+ interface LiveSessions {
8
+ get(id: string): {
9
+ header: {
10
+ id: string;
11
+ cwd?: string;
12
+ parentSession?: string;
13
+ };
14
+ } | undefined;
15
+ }
16
+ /**
17
+ * DSH subagent/workflow child sessions are never workspaceRegistry members; they work in the
18
+ * workspace of their nearest registered ancestor along the live parentSession chain. The
19
+ * child's own header.cwd still has to equal that workspace path at each caller.
20
+ */
21
+ export declare function registeredSessionId(sessionId: string, registry: {
22
+ list(): readonly {
23
+ sessionIds: readonly string[];
24
+ }[];
25
+ }, sessions: LiveSessions | undefined): string;
7
26
  /** Session headers do not have workspaceId. Resolve only the official registry relationship. */
8
27
  export declare function readEmployeeWorkspace(ctx: Services, sessionId: string): Promise<EmployeeWorkspace>;
9
28
  interface RegisteredWorkspace {
@@ -16,10 +35,7 @@ interface OfficialRegistry {
16
35
  get(id: string): RegisteredWorkspace | undefined;
17
36
  }
18
37
  /** Same official membership/header boundary as L. No basename or first-workspace inference. */
19
- export declare function officialEmployeeWorkspace(sessionId: string, registry: OfficialRegistry | undefined, header: {
20
- id: string;
21
- cwd?: string;
22
- } | undefined): {
38
+ export declare function officialEmployeeWorkspace(sessionId: string, registry: OfficialRegistry | undefined, sessions: LiveSessions | undefined): {
23
39
  id: string;
24
40
  path: string;
25
41
  };
@@ -1,6 +1,24 @@
1
1
  import { lstat, realpath } from 'node:fs/promises';
2
2
  import { isAbsolute } from 'node:path';
3
3
  import { NeedError } from "./remote.js";
4
+ /**
5
+ * DSH subagent/workflow child sessions are never workspaceRegistry members; they work in the
6
+ * workspace of their nearest registered ancestor along the live parentSession chain. The
7
+ * child's own header.cwd still has to equal that workspace path at each caller.
8
+ */
9
+ export function registeredSessionId(sessionId, registry, sessions) {
10
+ const member = (id) => registry.list().some(row => Array.isArray(row.sessionIds) && row.sessionIds.includes(id));
11
+ const seen = new Set();
12
+ let id = sessionId;
13
+ while (!member(id)) {
14
+ seen.add(id);
15
+ const parent = sessions?.get(id)?.header.parentSession;
16
+ if (!parent || seen.has(parent) || !sessions?.get(parent))
17
+ return sessionId;
18
+ id = parent;
19
+ }
20
+ return id;
21
+ }
4
22
  const invalid = () => new NeedError('EMPLOYEE_WORKSPACE_INVALID', '无法核对当前会话的本机文件夹,本轮未执行。', '官方工作区唯一会话关系与当前原生cwd');
5
23
  /** Session headers do not have workspaceId. Resolve only the official registry relationship. */
6
24
  export async function readEmployeeWorkspace(ctx, sessionId) {
@@ -32,11 +50,12 @@ async function readWorkspace(ctx, sessionId, fence) {
32
50
  // Service proxies are caller-scoped; injection owns the lifecycle fence.
33
51
  if (!currentRegistry || ctx.get('sessions')?.get(sessionId) !== live)
34
52
  throw invalid();
35
- const matches = currentRegistry.list().filter(row => Array.isArray(row.sessionIds) && row.sessionIds.includes(sessionId));
53
+ const member = registeredSessionId(sessionId, currentRegistry, sessions);
54
+ const matches = currentRegistry.list().filter(row => Array.isArray(row.sessionIds) && row.sessionIds.includes(member));
36
55
  if (matches.length !== 1)
37
56
  throw invalid();
38
57
  const row = matches[0], entry = currentRegistry.get(row.id), header = sessions.get(sessionId)?.header;
39
- if (!entry || row.id !== entry.id || row.path !== entry.path || !entry.sessionIds.includes(sessionId) || !isAbsolute(row.path) || !header || header.id !== sessionId || !isAbsolute(header.cwd))
58
+ if (!entry || row.id !== entry.id || row.path !== entry.path || !entry.sessionIds.includes(member) || !isAbsolute(row.path) || !header || header.id !== sessionId || !isAbsolute(header.cwd))
40
59
  throw invalid();
41
60
  return { workspaceId: row.id, path: row.path, cwd: header.cwd };
42
61
  };
@@ -47,15 +66,17 @@ async function readWorkspace(ctx, sessionId, fence) {
47
66
  return { workspaceId: first.workspaceId, directory: { path, device: info.dev, inode: info.ino } };
48
67
  }
49
68
  /** Same official membership/header boundary as L. No basename or first-workspace inference. */
50
- export function officialEmployeeWorkspace(sessionId, registry, header) {
69
+ export function officialEmployeeWorkspace(sessionId, registry, sessions) {
51
70
  const fail = () => new NeedError('EMPLOYEE_WORKSPACE_UNAVAILABLE', '无法确认这次会话的本机工作区,本轮没有执行;请从原生工作区打开会话。', '官方workspaceRegistry成员关系与会话header.cwd');
71
+ const header = sessionId ? sessions?.get(sessionId)?.header : undefined;
52
72
  if (!sessionId || !registry || !header || header.id !== sessionId || typeof header.cwd !== 'string')
53
73
  throw fail();
54
- const matches = registry.list().filter(w => Array.isArray(w.sessionIds) && w.sessionIds.includes(sessionId));
74
+ const member = registeredSessionId(sessionId, registry, sessions);
75
+ const matches = registry.list().filter(w => Array.isArray(w.sessionIds) && w.sessionIds.includes(member));
55
76
  if (matches.length !== 1)
56
77
  throw fail();
57
78
  const item = matches[0], current = registry.get(item.id);
58
- if (!current || current.id !== item.id || current.path !== item.path || !current.sessionIds.includes(sessionId) || !item.path.startsWith('/') || item.path.includes('\0') || header.cwd !== item.path)
79
+ if (!current || current.id !== item.id || current.path !== item.path || !current.sessionIds.includes(member) || !item.path.startsWith('/') || item.path.includes('\0') || header.cwd !== item.path)
59
80
  throw fail();
60
81
  return { id: item.id, path: item.path };
61
82
  }
package/dist/index.js CHANGED
@@ -540,7 +540,7 @@ export class CodexRemoteAdapter extends LlmAdapter {
540
540
  }
541
541
  }
542
542
  if (execution) {
543
- if (toolName && ['Agent', 'Task', 'TaskOutput', 'TaskStop', 'Read', 'Write', 'Edit', 'Glob', 'Grep', 'Bash'].includes(toolName)) {
543
+ if (toolName && ['Read', 'Write', 'Edit', 'Glob', 'Grep', 'Bash'].includes(toolName)) {
544
544
  details.record({ kind: 'need', severity: 'warning', code: 'CLAUDE_HOST_TOOL_UNSUPPORTED', summary: '这类原生调用没有经过员工端别名,本机来源不支持;本次审批已取消', payload: { operation: toolName } });
545
545
  renderNotice('\n这类操作尚不支持在本机执行,已取消本次审批,没有在主机代跑。\n');
546
546
  return 'cancelled';
@@ -892,8 +892,7 @@ export function apply(ctx, live) {
892
892
  const workspace = async (request) => {
893
893
  const services = ctx;
894
894
  const registry = services.get('workspaceRegistry');
895
- const sessions = services.get('sessions');
896
- return officialEmployeeWorkspace(request.sessionId, registry, sessions?.get(request.sessionId)?.header);
895
+ return officialEmployeeWorkspace(request.sessionId, registry, services.get('sessions'));
897
896
  };
898
897
  const provider = connectProvider(get, { agent, workspace, source: sessionSources, ...(agent.loginProvider === 'codex' ? { employee: {
899
898
  getNetwork: () => ctx.get('aiWorkbenchNetwork'),
@@ -37,7 +37,7 @@ export function createPreflightDiagnostics(options) {
37
37
  if (sessionId && session) {
38
38
  let workspace;
39
39
  try {
40
- workspace = officialEmployeeWorkspace(sessionId, options.ctx.get('workspaceRegistry'), session.header);
40
+ workspace = officialEmployeeWorkspace(sessionId, options.ctx.get('workspaceRegistry'), options.ctx.get('sessions'));
41
41
  }
42
42
  catch (error) {
43
43
  if (!(error instanceof NeedError && error.code === 'EMPLOYEE_WORKSPACE_UNAVAILABLE'))
@@ -1,7 +1,7 @@
1
1
  import type { ToolSchema, GenerateOptions } from '@deepseek-ai/dsh-llm';
2
2
  import type { Tool } from '@modelcontextprotocol/sdk/types.js';
3
3
  /** Fixed official tool names; no description heuristics or plugin-name branches. */
4
- export declare const TOOLBRIDGE_EXCLUDED: readonly ["read", "write", "edit", "read_image", "glob", "grep", "bash", "pwsh", "str_replace_editor", "job_output", "job_list", "job_kill", "load_workspace_dependencies", "terminal_open", "terminal_send", "terminal_read", "terminal_signal", "terminal_close", "terminal_list", "subagent", "list_subagent_models", "send_message", "interrupt_agent", "spawn_teammate", "list_agents", "wait_agent", "team_task_create", "team_task_list", "team_task_get", "team_task_update", "run_code"];
4
+ export declare const TOOLBRIDGE_EXCLUDED: readonly ["read", "write", "edit", "read_image", "glob", "grep", "bash", "pwsh", "str_replace_editor", "load_workspace_dependencies", "terminal_open", "terminal_send", "terminal_read", "terminal_signal", "terminal_close", "terminal_list", "run_code"];
5
5
  export interface BridgeTool {
6
6
  alias: string;
7
7
  schema: ToolSchema;
@@ -3,10 +3,9 @@ import { NeedError } from "./remote.js";
3
3
  /** Fixed official tool names; no description heuristics or plugin-name branches. */
4
4
  export const TOOLBRIDGE_EXCLUDED = Object.freeze([
5
5
  'read', 'write', 'edit', 'read_image', 'glob', 'grep', 'bash', 'pwsh', 'str_replace_editor',
6
- 'job_output', 'job_list', 'job_kill', 'load_workspace_dependencies',
6
+ 'load_workspace_dependencies',
7
7
  'terminal_open', 'terminal_send', 'terminal_read', 'terminal_signal', 'terminal_close', 'terminal_list',
8
- 'subagent', 'list_subagent_models', 'send_message', 'interrupt_agent', 'spawn_teammate', 'list_agents', 'wait_agent',
9
- 'team_task_create', 'team_task_list', 'team_task_get', 'team_task_update', 'run_code',
8
+ 'run_code',
10
9
  ]);
11
10
  const excluded = new Set(TOOLBRIDGE_EXCLUDED);
12
11
  export function dshSkillCatalog(messages = []) {
@@ -5,7 +5,7 @@ import { type BridgeTool } from './toolbridge-table.ts';
5
5
  import type { ImageReader } from './input.ts';
6
6
  import type { DetailObservation } from './conversation-details.ts';
7
7
  export declare const TOOLBRIDGE_TIMEOUT_SECONDS = 1800;
8
- export declare const TOOLBRIDGE_NOTICE = "\u542B\u5DE5\u5177\u6865\uFF1A\u672C\u673A\u6587\u4EF6\u5939\u7684\u6269\u5C55\u5DE5\u5177\u7531DSH\u6267\u884C\u5E76\u6309\u5F53\u524D\u6743\u9650\u5BA1\u6279\uFF1B\u6587\u4EF6\u548C\u547D\u4EE4\u4FDD\u6301\u539F\u6267\u884C\u65B9\u5F0F\u3002\u5DE5\u5177\u8868\u5728\u65B0\u4E00\u8F6E\u4E3B\u673A\u8FDE\u63A5\u65F6\u66F4\u65B0\u3002";
8
+ export declare const TOOLBRIDGE_NOTICE = "\u542B\u5DE5\u5177\u6865\uFF1A\u672C\u673A\u6587\u4EF6\u5939\u7684\u6269\u5C55\u5DE5\u5177\uFF08\u542BDSH\u5B50\u4EE3\u7406\u3001workflow\u548C\u540E\u53F0\u4EFB\u52A1\u5DE5\u5177\uFF09\u7531DSH\u6267\u884C\u5E76\u6309\u5F53\u524D\u6743\u9650\u5BA1\u6279\uFF1B\u6587\u4EF6\u548C\u547D\u4EE4\u4FDD\u6301\u539F\u6267\u884C\u65B9\u5F0F\u3002\u5DE5\u5177\u8868\u5728\u65B0\u4E00\u8F6E\u4E3B\u673A\u8FDE\u63A5\u65F6\u66F4\u65B0\u3002";
9
9
  export declare const TOOLBRIDGE_ENDED = "\u4E3B\u673A\u5DF2\u7ED3\u675F\u8FD9\u6B21\u5DE5\u5177\u7B49\u5F85\uFF1B\u672C\u8F6E\u5DF2\u505C\u6B62\uFF0C\u8FDF\u5230\u7ED3\u679C\u4E0D\u4F1A\u4EA4\u56DE\uFF0C\u4E5F\u4E0D\u4F1A\u91CD\u65B0\u6267\u884C\u3002\u8BF7\u6838\u5BF9\u5DF2\u53D1\u751F\u7684\u64CD\u4F5C\u3002";
10
10
  interface Pending {
11
11
  block: ToolCallBlock;
@@ -7,7 +7,7 @@ import { EmployeeSocketTransport } from "./employee-mcp.js";
7
7
  import { bridgeTable, dshSkillCatalog } from "./toolbridge-table.js";
8
8
  import { NeedError } from "./remote.js";
9
9
  export const TOOLBRIDGE_TIMEOUT_SECONDS = 1800;
10
- export const TOOLBRIDGE_NOTICE = '含工具桥:本机文件夹的扩展工具由DSH执行并按当前权限审批;文件和命令保持原执行方式。工具表在新一轮主机连接时更新。';
10
+ export const TOOLBRIDGE_NOTICE = '含工具桥:本机文件夹的扩展工具(含DSH子代理、workflow和后台任务工具)由DSH执行并按当前权限审批;文件和命令保持原执行方式。工具表在新一轮主机连接时更新。';
11
11
  export const TOOLBRIDGE_ENDED = '主机已结束这次工具等待;本轮已停止,迟到结果不会交回,也不会重新执行。请核对已发生的操作。';
12
12
  const errorResult = (text) => ({ isError: true, content: [{ type: 'text', text }] });
13
13
  /** Only a protocol queue. Tool execution and authorization belong to DSH. */
@@ -41,7 +41,7 @@ export class ToolBridge {
41
41
  this.readImage = readImage;
42
42
  }
43
43
  enable(record) { if (!this.table.size)
44
- return; this.enabled = true; this.record = record; record({ kind: 'session', severity: 'info', code: 'TOOLBRIDGE_SELECTED', summary: TOOLBRIDGE_NOTICE, payload: { toolCount: this.table.size, toolTimeoutSec: TOOLBRIDGE_TIMEOUT_SECONDS, timeoutSource: 'owner-2026-10-26', snapshot: 'native-session-open', excluded: 'official-file-command-subagent-team-run_code' } }); }
44
+ return; this.enabled = true; this.record = record; record({ kind: 'session', severity: 'info', code: 'TOOLBRIDGE_SELECTED', summary: TOOLBRIDGE_NOTICE, payload: { toolCount: this.table.size, toolTimeoutSec: TOOLBRIDGE_TIMEOUT_SECONDS, timeoutSource: 'owner-2026-10-26', snapshot: 'native-session-open', excluded: 'official-file-command-terminal-run_code' } }); }
45
45
  get tools() { return [...this.table.values()].map(t => t.wire); }
46
46
  isBridge(name) { return typeof name === 'string' && this.table.has(name.replace(/^mcp__employee__/, '')); }
47
47
  async call(alias, args, signal) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-workbench/remote-agent",
3
- "version": "0.9.0-toolbridge.17",
3
+ "version": "0.9.0-toolbridge.19",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",