dsh-mesh-node 0.0.4 → 0.0.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-mesh-node",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Mesh server for dsh-mesh: expose a machine to peer DSH nodes over MCP/HTTPS, with delegation and optional desktop-control tools.",
5
5
  "type": "module",
6
6
  "private": false,
package/src/core/roles.js CHANGED
@@ -51,6 +51,8 @@ const CONTROLLER = [
51
51
  'delegate',
52
52
  'delegate_reply',
53
53
  'delegate_gc',
54
+ 'host_session_create',
55
+ 'host_session_prompt',
54
56
  'pc_action',
55
57
  'pc_app',
56
58
  'pc_window',
package/src/selftest.js CHANGED
@@ -854,6 +854,7 @@ export async function runSelftest({ log = console } = {}) {
854
854
  const allow = roleAllow('controller')
855
855
  assert(allow.includes('delegate') && allow.includes('delegate_status'), 'controller must be able to delegate')
856
856
  assert(allow.includes('pc_action') && allow.includes('fs_read'), 'controller must keep pc_* + read tools')
857
+ assert(allow.includes('host_session_create') && allow.includes('host_session_prompt'), 'controller must allow the CLI delegation path (session create/prompt)')
857
858
  for (const dangerous of ['host_call', 'service_restart', 'mesh_config_patch', 'fs_write', 'shell_run']) {
858
859
  assert(!allow.includes(dangerous), `controller must not include ${dangerous}`)
859
860
  }