@sleep2agi/commhub-server 0.9.0-preview.108 → 0.9.0-preview.109
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/tools.ts +8 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sleep2agi/commhub-server",
|
|
3
|
-
"version": "0.9.0-preview.
|
|
3
|
+
"version": "0.9.0-preview.109",
|
|
4
4
|
"description": "CommHub Server — AI Agent communication hub with MCP protocol, multi-network isolation, user auth, and MCP tools (17 collaboration-core + node/provider ops tools; authoritative list: docs-site/docs/api/mcp-tools.md).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.ts",
|
package/src/tools.ts
CHANGED
|
@@ -3879,6 +3879,14 @@ export function registerTools(server: McpServer, clientIP?: string, enforceNetwo
|
|
|
3879
3879
|
if (!sec1Ok) {
|
|
3880
3880
|
return { content: [{ type: "text" as const, text: JSON.stringify({ ok: false, error: "cross_network_node" }) }] };
|
|
3881
3881
|
}
|
|
3882
|
+
// board #627: a binding proves stop/start authority, not an exit-75
|
|
3883
|
+
// supervisor. No verified adopted-wrapper capability exists in this
|
|
3884
|
+
// protocol; a self-reported config_update_capable flag is not proof.
|
|
3885
|
+
// Created authority retains its existing restart behavior unchanged.
|
|
3886
|
+
if (!createdDaemon(nodeId) && activeBinding(nodeId)) {
|
|
3887
|
+
return { content: [{ type: "text" as const, text: JSON.stringify({ ok: false,
|
|
3888
|
+
error: "adopted_restart_requires_daemon", message: "Use Stop, then Start for this adopted node." }) }] };
|
|
3889
|
+
}
|
|
3882
3890
|
// F-B reaper: same stale-supersede semantics as update_node_config,
|
|
3883
3891
|
// with same acked_at-anchored liveness clock (see update_node_config
|
|
3884
3892
|
// for the 通信龙 polish reasoning).
|