@mindstudio-ai/agent 0.0.18 → 0.0.19
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 +16 -52
- package/dist/index.d.ts +8 -161
- package/dist/index.js +8 -43
- package/dist/index.js.map +1 -1
- package/llms.txt +5 -37
- package/package.json +9 -1
package/llms.txt
CHANGED
|
@@ -251,37 +251,6 @@ 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
|
-
|
|
285
254
|
#### downloadVideo
|
|
286
255
|
Download a video file
|
|
287
256
|
- Works with YouTube, TikTok, etc., by using ytdlp behind the scenes
|
|
@@ -436,13 +405,12 @@ List all data sources for the current app.
|
|
|
436
405
|
- Output: `unknown`
|
|
437
406
|
|
|
438
407
|
#### logic
|
|
439
|
-
|
|
440
|
-
-
|
|
441
|
-
-
|
|
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.
|
|
408
|
+
Use an AI model to evaluate which condition from a list is most true, given a context prompt.
|
|
409
|
+
- This is "fuzzy" logic evaluated by an AI model, not computational logic. The model picks the most accurate statement.
|
|
410
|
+
- All possible cases must be specified — there is no default/fallback case.
|
|
443
411
|
- Requires at least two cases.
|
|
444
|
-
-
|
|
445
|
-
- Input: `{
|
|
412
|
+
- In workflow mode, transitions to the destinationStepId of the winning case. In direct execution, returns the winning case ID and condition.
|
|
413
|
+
- Input: `{ context: string, cases: ({ id: string, condition: string, destinationStepId?: string } | string)[] }`
|
|
446
414
|
- Output: `{ selectedCase: number }`
|
|
447
415
|
|
|
448
416
|
#### makeDotComRunScenario
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mindstudio-ai/agent",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.19",
|
|
4
4
|
"description": "TypeScript SDK for MindStudio direct step execution",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -51,6 +51,14 @@
|
|
|
51
51
|
},
|
|
52
52
|
"author": "MindStudio <support@mindstudio.ai> (https://mindstudio.ai)",
|
|
53
53
|
"license": "MIT",
|
|
54
|
+
"browser": {
|
|
55
|
+
"fs": false,
|
|
56
|
+
"path": false,
|
|
57
|
+
"os": false,
|
|
58
|
+
"node:fs": false,
|
|
59
|
+
"node:path": false,
|
|
60
|
+
"node:os": false
|
|
61
|
+
},
|
|
54
62
|
"sideEffects": false,
|
|
55
63
|
"devDependencies": {
|
|
56
64
|
"@eslint/js": "^10.0.1",
|