@mindstudio-ai/agent 0.0.17 → 0.0.18
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/cli.js +41 -7
- package/dist/index.d.ts +161 -8
- package/dist/index.js +40 -3
- package/dist/index.js.map +1 -1
- package/llms.txt +37 -5
- package/package.json +1 -1
package/llms.txt
CHANGED
|
@@ -251,6 +251,37 @@ Scan text for personally identifiable information using Microsoft Presidio.
|
|
|
251
251
|
- Input: `{ input: string, language: string, entities: string[], detectedStepId?: string, notDetectedStepId?: string, outputLogVariable?: string | null }`
|
|
252
252
|
- Output: `{ detected: boolean, detections: { entity_type: string, start: number, end: number, score: number }[] }`
|
|
253
253
|
|
|
254
|
+
#### discordEditMessage
|
|
255
|
+
Edit a previously sent Discord channel message. Use with the message ID returned by Send Discord Message.
|
|
256
|
+
- Only messages sent by the bot can be edited.
|
|
257
|
+
- The messageId is returned by the Send Discord Message step.
|
|
258
|
+
- Optionally attach a file by providing a URL to attachmentUrl. The file is downloaded and uploaded to Discord.
|
|
259
|
+
- When editing with an attachment, the new attachment replaces any previous attachments on the message.
|
|
260
|
+
- URLs in the text are automatically embedded by Discord (link previews for images, videos, etc.).
|
|
261
|
+
- Input: `{ botToken: string, channelId: string, messageId: string, text: string, attachmentUrl?: string }`
|
|
262
|
+
- Output: `unknown`
|
|
263
|
+
|
|
264
|
+
#### discordSendFollowUp
|
|
265
|
+
Send a follow-up message to a Discord slash command interaction.
|
|
266
|
+
- Requires the applicationId and interactionToken from the Discord trigger variables.
|
|
267
|
+
- Follow-up messages appear as new messages in the channel after the initial response.
|
|
268
|
+
- Returns the sent message ID.
|
|
269
|
+
- Interaction tokens expire after 15 minutes.
|
|
270
|
+
- Optionally attach a file by providing a URL to attachmentUrl. The file is downloaded and uploaded to Discord.
|
|
271
|
+
- URLs in the text are automatically embedded by Discord (link previews for images, videos, etc.).
|
|
272
|
+
- Input: `{ applicationId: string, interactionToken: string, text: string, attachmentUrl?: string }`
|
|
273
|
+
- Output: `{ messageId: string }`
|
|
274
|
+
|
|
275
|
+
#### discordSendMessage
|
|
276
|
+
Send a message to Discord — either edit the loading message or send a new channel message.
|
|
277
|
+
- mode "edit" replaces the loading message (interaction response) with the final result. Uses applicationId and interactionToken from trigger variables. No bot permissions required.
|
|
278
|
+
- mode "send" sends a new message to a channel. Uses botToken and channelId from trigger variables. Returns a messageId that can be used with Edit Discord Message.
|
|
279
|
+
- Optionally attach a file by providing a URL to attachmentUrl. The file is downloaded and uploaded to Discord.
|
|
280
|
+
- URLs in the text are automatically embedded by Discord (link previews for images, videos, etc.).
|
|
281
|
+
- Interaction tokens expire after 15 minutes.
|
|
282
|
+
- Input: `{ mode: "edit" | "send", text: string, applicationId?: string, interactionToken?: string, botToken?: string, channelId?: string, attachmentUrl?: string }`
|
|
283
|
+
- Output: `{ messageId?: string }`
|
|
284
|
+
|
|
254
285
|
#### downloadVideo
|
|
255
286
|
Download a video file
|
|
256
287
|
- Works with YouTube, TikTok, etc., by using ytdlp behind the scenes
|
|
@@ -405,12 +436,13 @@ List all data sources for the current app.
|
|
|
405
436
|
- Output: `unknown`
|
|
406
437
|
|
|
407
438
|
#### logic
|
|
408
|
-
|
|
409
|
-
-
|
|
410
|
-
-
|
|
439
|
+
Route execution to different branches based on AI evaluation, comparison operators, or workflow jumps.
|
|
440
|
+
- Supports two modes: "ai" (default) uses an AI model to pick the most accurate statement; "comparison" uses operator-based checks.
|
|
441
|
+
- In AI mode, the model picks the most accurate statement from the list. All possible cases must be specified.
|
|
442
|
+
- In comparison mode, the context is the left operand and each case's condition is the right operand. First matching case wins. Use operator "default" as a fallback.
|
|
411
443
|
- Requires at least two cases.
|
|
412
|
-
-
|
|
413
|
-
- Input: `{ context: string, cases: ({ id: string, condition: string, destinationStepId?: string } | string)[] }`
|
|
444
|
+
- Each case can transition to a step in the current workflow (destinationStepId) or jump to another workflow (destinationWorkflowId).
|
|
445
|
+
- Input: `{ mode?: "ai" | "comparison", context: string, cases: ({ id: string, condition: string, operator?: "eq" | "neq" | "gt" | "lt" | "gte" | "lte" | "exists" | "not_exists" | "contains" | "not_contains" | "default", destinationStepId?: string, destinationWorkflowId?: string } | string)[], modelOverride?: { model: string, temperature: number, maxResponseTokens: number, ignorePreamble?: boolean, userMessagePreprocessor?: { dataSource?: string, messageTemplate?: string, maxResults?: number, enabled?: boolean, shouldInherit?: boolean }, preamble?: string, multiModelEnabled?: boolean, editResponseEnabled?: boolean, config?: object } }`
|
|
414
446
|
- Output: `{ selectedCase: number }`
|
|
415
447
|
|
|
416
448
|
#### makeDotComRunScenario
|