From a3299852e43511d587a7d525ea308592ab6dc1ba Mon Sep 17 00:00:00 2001 From: Steve-Mcl Date: Mon, 19 Oct 2026 18:33:02 +0100 Subject: [PATCH] Rename AI Flow Deploy to AI Flow Deploy and Inject --- docs/user/mcp.md | 10 ++++++---- frontend/src/data/audit-events.json | 4 ++-- frontend/src/pages/team/Settings/Danger.vue | 14 +++++++------- 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/docs/user/mcp.md b/docs/user/mcp.md index 14450c0b38..d892f43654 100644 --- a/docs/user/mcp.md +++ b/docs/user/mcp.md @@ -55,14 +55,16 @@ Flow work runs in a live editor session, not as a file to import. Point the agen | Config nodes | List config nodes | Create and update config nodes | Delete config nodes | | Import | None | Import a flow onto the canvas | None | | Palette | Read the installed palette, list node types, describe node type properties | Install FlowFuse and certified nodes directly, open the palette manager to install any other package, see [Node installs](#node-installs) | None | -| Canvas | Read the full flow, read debug output, search and select nodes, navigate to a tab or subflow | Align and distribute nodes, set the deploy mode | Deploy changes, see [Agent deploy](#agent-deploy) | +| Canvas | Read the full flow, read debug output, search and select nodes, navigate to a tab or subflow | Align and distribute nodes, set the deploy mode | Deploy changes, inject test messages into deployed nodes, see [Agent deploy and inject](#agent-deploy-and-inject) | | FlowFuse Tables | Query table data | Build a [Query Node](/docs/user/ff-tables/#query-nodes) flow that reads and writes tables | None | -By default nothing goes live until you deploy from Node-RED. A team owner can let agents deploy their own changes, see [Agent deploy](#agent-deploy). +By default nothing goes live until you deploy from Node-RED. A team owner can let agents deploy their own changes and test them, see [Agent deploy and inject](#agent-deploy-and-inject). -## Agent deploy +## Agent deploy and inject -A team owner turns this on from **Team Settings > Danger > AI Flow Deploy**. It is off by default and needs AI Features enabled for the team. +A team owner turns this on from **Team Settings > Danger > AI Flow Deploy and Inject**. It is off by default and needs AI Features enabled for the team. + +With it on, an agent can deploy its changes and inject test messages into deployed nodes, then read the results from the debug sidebar. An injected message runs the real flow, so downstream nodes act on it as usual. Each inject is recorded in the instance audit log. Available from FlowFuse 3.1 with `@flowfuse/nr-assistant` 0.20.0 or later. diff --git a/frontend/src/data/audit-events.json b/frontend/src/data/audit-events.json index 798d3c4350..a099400840 100644 --- a/frontend/src/data/audit-events.json +++ b/frontend/src/data/audit-events.json @@ -10,8 +10,8 @@ "team.user.invite.rejected": "User Invite Rejected", "team.user.role-changed": "User Role Modified", "team.settings.updated": "Team Settings Updated", - "team.agent-auto-deploy.enabled": "AI Flow Deploy Enabled", - "team.agent-auto-deploy.disabled": "AI Flow Deploy Disabled", + "team.agent-auto-deploy.enabled": "AI Flow Deploy and Inject Enabled", + "team.agent-auto-deploy.disabled": "AI Flow Deploy and Inject Disabled", "team.type.changed": "Team Type Changed", "team.device.created": "New Device Created", "team.device.deleted": "Device Deleted", diff --git a/frontend/src/pages/team/Settings/Danger.vue b/frontend/src/pages/team/Settings/Danger.vue index 26984615fb..3952582edf 100644 --- a/frontend/src/pages/team/Settings/Danger.vue +++ b/frontend/src/pages/team/Settings/Danger.vue @@ -56,10 +56,10 @@ - AI Flow Deploy + AI Flow Deploy and Inject
-
Allow AI agents to deploy flow changes they make on this team's instances, without waiting for a person to click Deploy.
+
Allow AI agents to deploy flow changes they make on this team's instances without waiting for a person to click Deploy, and to inject test messages into deployed flows to check their work. Injected messages run the real flow, so downstream nodes act on them as usual.
Enable AI Features above to use this.
@@ -226,19 +226,19 @@ export default { showConfirmAgentAutoDeployToggleDialog () { const enabling = this.agentAutoDeploy Dialog.show({ - header: enabling ? 'Enable AI Flow Deploy' : 'Disable AI Flow Deploy', + header: enabling ? 'Enable AI Flow Deploy and Inject' : 'Disable AI Flow Deploy and Inject', kind: enabling ? 'danger' : 'primary', text: enabling - ? 'Are you sure you want to allow AI agents to deploy flows on this team\'s instances?' - : 'Are you sure you want to disable AI agents deploying flow changes automatically?', + ? 'Are you sure you want to allow AI agents to deploy flows and inject messages into running flows on this team\'s instances?' + : 'Are you sure you want to stop AI agents from deploying flow changes and injecting messages?', confirmLabel: enabling ? 'Enable' : 'Disable' }, () => { teamApi.updateTeam(this.team.id, { features: { agentAutoDeploy: enabling } }).then(() => { - alerts.emit(`AI Flow Deploy ${enabling ? 'enabled' : 'disabled'}`, 'confirmation') + alerts.emit(`AI Flow Deploy and Inject ${enabling ? 'enabled' : 'disabled'}`, 'confirmation') this.agentAutoDeployOverride = null useContextStore().refreshTeam() }).catch(err => { - alerts.emit('Problem updating AI Flow Deploy settings', 'warning') + alerts.emit('Problem updating AI Flow Deploy and Inject settings', 'warning') this.agentAutoDeployOverride = null console.warn(err) })