@rubytech/taskmaster 1.44.2 → 1.44.4
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/dist/agents/tools/message-tool.js +10 -0
- package/dist/build-info.json +3 -3
- package/dist/config/schema.js +2 -2
- package/dist/control-ui/assets/{index-QAV6uia0.js → index-Car9AOpb.js} +378 -345
- package/dist/control-ui/assets/index-Car9AOpb.js.map +1 -0
- package/dist/control-ui/index.html +1 -1
- package/dist/gateway/server-methods/channels.js +26 -1
- package/dist/gateway/server-methods/tailscale.js +5 -4
- package/dist/gateway/server-methods/tunnel.js +5 -4
- package/dist/infra/outbound/message-action-runner.js +22 -3
- package/package.json +1 -1
- package/dist/control-ui/assets/index-QAV6uia0.js.map +0 -1
|
@@ -208,6 +208,12 @@ function filterActionsForContext(params) {
|
|
|
208
208
|
* never fall through to the global list, which would leak actions from
|
|
209
209
|
* other channels (e.g. Discord "poll" appearing in webchat sessions).
|
|
210
210
|
*/
|
|
211
|
+
/**
|
|
212
|
+
* Channels where the "broadcast" action must never appear in the agent tool schema.
|
|
213
|
+
* WhatsApp prohibits automated bulk messaging — exposing the action to agents
|
|
214
|
+
* would encourage policy-violating behaviour.
|
|
215
|
+
*/
|
|
216
|
+
const BROADCAST_EXCLUDED_CHANNELS = new Set(["whatsapp"]);
|
|
211
217
|
function resolveMessageToolActions(options) {
|
|
212
218
|
if (options?.currentChannel) {
|
|
213
219
|
const channelActions = filterActionsForContext({
|
|
@@ -220,6 +226,10 @@ function resolveMessageToolActions(options) {
|
|
|
220
226
|
});
|
|
221
227
|
// Always include "send"; if the channel plugin reports nothing, send is all we need.
|
|
222
228
|
const allActions = new Set(["send", ...channelActions]);
|
|
229
|
+
// Never expose broadcast on channels that prohibit automated bulk messaging.
|
|
230
|
+
if (BROADCAST_EXCLUDED_CHANNELS.has(options.currentChannel.toLowerCase())) {
|
|
231
|
+
allActions.delete("broadcast");
|
|
232
|
+
}
|
|
223
233
|
return Array.from(allActions);
|
|
224
234
|
}
|
|
225
235
|
if (options?.config) {
|
package/dist/build-info.json
CHANGED
package/dist/config/schema.js
CHANGED
|
@@ -138,7 +138,7 @@ const FIELD_LABELS = {
|
|
|
138
138
|
"tools.message.crossContext.marker.enabled": "Cross-Context Marker",
|
|
139
139
|
"tools.message.crossContext.marker.prefix": "Cross-Context Marker Prefix",
|
|
140
140
|
"tools.message.crossContext.marker.suffix": "Cross-Context Marker Suffix",
|
|
141
|
-
"tools.message.broadcast.enabled": "Enable Message Broadcast",
|
|
141
|
+
"tools.message.broadcast.enabled": "Enable Message Broadcast (excludes WhatsApp)",
|
|
142
142
|
"tools.web.search.enabled": "Enable Web Search Tool",
|
|
143
143
|
"tools.web.search.provider": "Web Search Provider",
|
|
144
144
|
"tools.web.search.apiKey": "Brave Search API Key",
|
|
@@ -352,7 +352,7 @@ const FIELD_HELP = {
|
|
|
352
352
|
"tools.message.crossContext.marker.enabled": "Add a visible origin marker when sending cross-context (default: true).",
|
|
353
353
|
"tools.message.crossContext.marker.prefix": 'Text prefix for cross-context markers (supports "{channel}").',
|
|
354
354
|
"tools.message.crossContext.marker.suffix": 'Text suffix for cross-context markers (supports "{channel}").',
|
|
355
|
-
"tools.message.broadcast.enabled": "Enable broadcast action (default:
|
|
355
|
+
"tools.message.broadcast.enabled": "Enable broadcast action (default: false). WhatsApp is always excluded — automated broadcasts violate WhatsApp's Terms of Service.",
|
|
356
356
|
"tools.web.search.enabled": "Enable the web_search tool (requires a provider API key).",
|
|
357
357
|
"tools.web.search.provider": 'Search provider ("brave", "perplexity", or "tavily").',
|
|
358
358
|
"tools.web.search.apiKey": "Brave Search API key (fallback: BRAVE_API_KEY env var).",
|