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 +1 -1
- package/src/core/roles.js +2 -0
- package/src/selftest.js +1 -0
package/package.json
CHANGED
package/src/core/roles.js
CHANGED
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
|
}
|