@ai-workbench/remote-agent 0.9.0-toolbridge.3 → 0.9.0-toolbridge.30

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.
Files changed (53) hide show
  1. package/README.md +32 -7
  2. package/dist/acp.d.ts +23 -3
  3. package/dist/acp.js +106 -21
  4. package/dist/broker-runtime.d.ts +2 -0
  5. package/dist/broker-runtime.js +60 -3
  6. package/dist/broker.d.ts +56 -1
  7. package/dist/broker.js +310 -11
  8. package/dist/claude-local.js +26 -5
  9. package/dist/client.js +1 -1
  10. package/dist/close-diagnostics.d.ts +1 -1
  11. package/dist/close-diagnostics.js +1 -1
  12. package/dist/cold-protocol.d.ts +17 -0
  13. package/dist/cold-protocol.js +399 -0
  14. package/dist/cold-recovery.d.ts +62 -0
  15. package/dist/cold-recovery.js +595 -0
  16. package/dist/cold-store.d.ts +99 -0
  17. package/dist/cold-store.js +29 -0
  18. package/dist/conversation-details.js +21 -8
  19. package/dist/employee-endpoint.js +15 -1
  20. package/dist/employee-mcp.js +1 -1
  21. package/dist/employee-native.js +7 -1
  22. package/dist/employee-provider.js +46 -11
  23. package/dist/employee-relay.js +148 -1
  24. package/dist/employee-shell.d.ts +2 -0
  25. package/dist/employee-shell.js +22 -19
  26. package/dist/employee-tools.js +2 -2
  27. package/dist/employee-workspace.d.ts +20 -4
  28. package/dist/employee-workspace.js +26 -5
  29. package/dist/index.d.ts +12 -3
  30. package/dist/index.js +221 -51
  31. package/dist/input.js +4 -1
  32. package/dist/live-steering.d.ts +46 -0
  33. package/dist/live-steering.js +45 -0
  34. package/dist/mapping.d.ts +4 -24
  35. package/dist/mapping.js +11 -65
  36. package/dist/model-catalog.d.ts +2 -0
  37. package/dist/model-catalog.js +5 -1
  38. package/dist/preflight-diagnostic.js +1 -1
  39. package/dist/presentation.js +1 -0
  40. package/dist/provider.d.ts +15 -0
  41. package/dist/provider.js +3 -2
  42. package/dist/rpc-namespace.js +16 -2
  43. package/dist/session-source.d.ts +3 -1
  44. package/dist/session-source.js +2 -1
  45. package/dist/startup-timing.d.ts +14 -0
  46. package/dist/startup-timing.js +34 -0
  47. package/dist/toolbridge-loop.d.ts +3 -2
  48. package/dist/toolbridge-loop.js +4 -2
  49. package/dist/toolbridge-table.d.ts +4 -3
  50. package/dist/toolbridge-table.js +14 -5
  51. package/dist/toolbridge.d.ts +1 -1
  52. package/dist/toolbridge.js +4 -4
  53. package/package.json +23 -16
@@ -4,10 +4,10 @@ import { mkdtemp, lstat, rm } from 'node:fs/promises';
4
4
  import { Server } from '@modelcontextprotocol/sdk/server/index.js';
5
5
  import { ListToolsRequestSchema, CallToolRequestSchema } from '@modelcontextprotocol/sdk/types.js';
6
6
  import { EmployeeSocketTransport } from "./employee-mcp.js";
7
- import { bridgeTable } from "./toolbridge-table.js";
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. */
@@ -16,7 +16,7 @@ export class ToolBridge {
16
16
  readImage;
17
17
  controller = new AbortController();
18
18
  snapshot;
19
- get table() { return this.snapshot ??= bridgeTable(this.options.tools); }
19
+ get table() { return this.snapshot ??= bridgeTable(this.options.tools, dshSkillCatalog(this.options.messages)); }
20
20
  calls = new Map();
21
21
  enabled = false;
22
22
  ended = false;
@@ -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.3",
3
+ "version": "0.9.0-toolbridge.30",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -27,7 +27,8 @@
27
27
  "pack:artifact": "node tools/pack-artifact.mjs"
28
28
  },
29
29
  "engines": {
30
- "node": ">=24.13.1"
30
+ "node": ">=24.13.1",
31
+ "dsh": ">=0.2.0-rc.2 <0.3.0-0"
31
32
  },
32
33
  "dependencies": {
33
34
  "@agentclientprotocol/sdk": "2.0.0",
@@ -50,8 +51,16 @@
50
51
  "@deepseek-ai/dsh-client-connection": "0.2.0-rc.2",
51
52
  "@deepseek-ai/dsh-client-store": "0.2.0-rc.2",
52
53
  "@deepseek-ai/dsh-client-ui-settings": "0.2.0-rc.2",
54
+ "@deepseek-ai/dsh-compaction-basic": "0.2.0-rc.2",
53
55
  "@deepseek-ai/dsh-llm": "0.2.0-rc.2",
56
+ "@deepseek-ai/dsh-sandbox-policy": "0.2.0-rc.2",
54
57
  "@deepseek-ai/dsh-session": "0.2.0-rc.2",
58
+ "@deepseek-ai/dsh-session-persistence-jsonl": "0.2.0-rc.2",
59
+ "@deepseek-ai/dsh-session-projection": "0.2.0-rc.2",
60
+ "@deepseek-ai/dsh-storage-domain": "0.2.0-rc.2",
61
+ "@deepseek-ai/dsh-system-prompt": "0.2.0-rc.2",
62
+ "@deepseek-ai/dsh-token-meter": "0.2.0-rc.2",
63
+ "@deepseek-ai/dsh-tools": "0.2.0-rc.2",
55
64
  "@deepseek-ai/dsh-typert-protocol": "0.2.0-rc.2",
56
65
  "@deepseek-ai/dsh-typert-registry": "0.2.0-rc.2",
57
66
  "@deepseek-ai/dsh-user-approval": "0.2.0-rc.2",
@@ -62,23 +71,21 @@
62
71
  "react": "18.3.1",
63
72
  "react-dom": "18.3.1",
64
73
  "typescript": "5.9.3",
65
- "zustand": "4.4.7",
66
- "@deepseek-ai/dsh-sandbox-policy": "0.2.0-rc.2",
67
- "@deepseek-ai/dsh-storage-domain": "0.2.0-rc.2"
74
+ "zustand": "4.4.7"
68
75
  },
69
76
  "peerDependencies": {
70
77
  "@ai-workbench/connect": "~0.7.37",
71
78
  "@ai-workbench/network": "~0.4.9",
72
- "@deepseek-ai/cordis": "4.0.4",
73
- "@deepseek-ai/dsh-agent": "0.2.0-rc.2",
74
- "@deepseek-ai/dsh-attachment": "0.2.0-rc.2",
75
- "@deepseek-ai/dsh-llm": "0.2.0-rc.2",
76
- "@deepseek-ai/dsh-session": "0.2.0-rc.2",
77
- "@deepseek-ai/dsh-typert-protocol": "0.2.0-rc.2",
78
- "@deepseek-ai/dsh-user-approval": "0.2.0-rc.2",
79
- "@deepseek-ai/schemastery": "3.18.4",
80
- "@deepseek-ai/dsh-sandbox-policy": "0.2.0-rc.2",
81
- "@deepseek-ai/dsh-storage-domain": "0.2.0-rc.2"
79
+ "@deepseek-ai/cordis": "^4.0.4",
80
+ "@deepseek-ai/dsh-agent": ">=0.2.0-rc.2 <0.3.0-0",
81
+ "@deepseek-ai/dsh-attachment": ">=0.2.0-rc.2 <0.3.0-0",
82
+ "@deepseek-ai/dsh-llm": ">=0.2.0-rc.2 <0.3.0-0",
83
+ "@deepseek-ai/dsh-sandbox-policy": ">=0.2.0-rc.2 <0.3.0-0",
84
+ "@deepseek-ai/dsh-session": ">=0.2.0-rc.2 <0.3.0-0",
85
+ "@deepseek-ai/dsh-storage-domain": ">=0.2.0-rc.2 <0.3.0-0",
86
+ "@deepseek-ai/dsh-typert-protocol": ">=0.2.0-rc.2 <0.3.0-0",
87
+ "@deepseek-ai/dsh-user-approval": ">=0.2.0-rc.2 <0.3.0-0",
88
+ "@deepseek-ai/schemastery": "^3.18.4"
82
89
  },
83
90
  "dsh": {
84
91
  "bundle": {
@@ -106,7 +113,7 @@
106
113
  "publishConfig": {
107
114
  "access": "public",
108
115
  "registry": "https://registry.npmjs.org/",
109
- "tag": "toolbridge"
116
+ "tag": "host-toolbridge"
110
117
  },
111
118
  "keywords": [
112
119
  "dsh",