@syengup/friday-channel-next 0.0.23 → 0.0.24
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/install.js +17 -0
- package/package.json +1 -1
package/install.js
CHANGED
|
@@ -230,6 +230,23 @@ if (config.gateway.bind !== "lan") {
|
|
|
230
230
|
config.gateway.bind = "lan";
|
|
231
231
|
console.log(" + Set gateway.bind to lan");
|
|
232
232
|
}
|
|
233
|
+
if (!config.gateway.nodes) config.gateway.nodes = {};
|
|
234
|
+
if (!Array.isArray(config.gateway.nodes.allowCommands)) config.gateway.nodes.allowCommands = [];
|
|
235
|
+
for (const cmd of [
|
|
236
|
+
"canvas.navigate",
|
|
237
|
+
"canvas.present",
|
|
238
|
+
"canvas.hide",
|
|
239
|
+
"canvas.eval",
|
|
240
|
+
"canvas.snapshot",
|
|
241
|
+
"canvas.a2ui.push",
|
|
242
|
+
"canvas.a2ui.reset",
|
|
243
|
+
"canvas.a2ui.pushJSONL",
|
|
244
|
+
]) {
|
|
245
|
+
if (!config.gateway.nodes.allowCommands.includes(cmd)) {
|
|
246
|
+
config.gateway.nodes.allowCommands.push(cmd);
|
|
247
|
+
console.log(" + Added " + cmd + " to gateway.nodes.allowCommands");
|
|
248
|
+
}
|
|
249
|
+
}
|
|
233
250
|
|
|
234
251
|
// Ensure canvas and nodes are in the main agent's tools.alsoAllow (not deny)
|
|
235
252
|
if (!config.agents) config.agents = {};
|