@mindstudio-ai/agent 0.1.148 → 0.1.149
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 +121 -109
- package/dist/index.d.ts +150 -27
- package/dist/index.js +128 -116
- package/dist/index.js.map +1 -1
- package/dist/postinstall.js +121 -109
- package/llms.txt +21 -20
- package/package.json +1 -1
package/llms.txt
CHANGED
|
@@ -320,7 +320,7 @@ Legacy v1 data sources. v2 apps should use `dataSources.defineDataSource()` from
|
|
|
320
320
|
- The data source is created empty — use the "Upload Data Source Document" block to add documents.
|
|
321
321
|
- Returns the new data source ID which can be used in subsequent blocks.
|
|
322
322
|
- Input: `{ name: string }`
|
|
323
|
-
- Output: `
|
|
323
|
+
- Output: `{ dataSourceId: string, name: string }`
|
|
324
324
|
|
|
325
325
|
#### createGmailDraft
|
|
326
326
|
Create a draft email in the connected Gmail account.
|
|
@@ -344,7 +344,7 @@ Legacy v1 data sources. v2 apps should use `dataSources.defineDataSource()` from
|
|
|
344
344
|
- The Milvus partition is cleaned up asynchronously by a background cron job.
|
|
345
345
|
- The data source must belong to the current app version.
|
|
346
346
|
- Input: `{ dataSourceId: string }`
|
|
347
|
-
- Output: `
|
|
347
|
+
- Output: `{ dataSourceId: string }`
|
|
348
348
|
|
|
349
349
|
#### deleteDataSourceDocument
|
|
350
350
|
Legacy v1 data sources. v2 apps should use `dataSources.defineDataSource()` from @mindstudio-ai/agent instead, which owns parsing, chunking, embedding and citations. Delete a single document from a data source.
|
|
@@ -352,7 +352,7 @@ Legacy v1 data sources. v2 apps should use `dataSources.defineDataSource()` from
|
|
|
352
352
|
- Requires both the data source ID and document ID.
|
|
353
353
|
- After deletion, reloads vectors into Milvus so the data source reflects the change immediately.
|
|
354
354
|
- Input: `{ dataSourceId: string, documentId: string }`
|
|
355
|
-
- Output: `
|
|
355
|
+
- Output: `{ dataSourceId: string, documentId: string }`
|
|
356
356
|
|
|
357
357
|
#### detectChanges
|
|
358
358
|
Detect changes between runs by comparing current input against previously stored state. Routes execution based on whether a change occurred.
|
|
@@ -417,7 +417,7 @@ Legacy v1 data sources. v2 apps should use `dataSources.defineDataSource()` from
|
|
|
417
417
|
- The document must have been successfully processed (status "done").
|
|
418
418
|
- Also returns document metadata (name, summary, word count).
|
|
419
419
|
- Input: `{ dataSourceId: string, documentId: string }`
|
|
420
|
-
- Output: `
|
|
420
|
+
- Output: `{ documentId: string, name: string, content: string, summary: string, numWords: number }`
|
|
421
421
|
|
|
422
422
|
#### fetchSlackChannelHistory
|
|
423
423
|
Fetch recent message history from a Slack channel.
|
|
@@ -454,17 +454,17 @@ Generate an image from a text prompt using an AI model.
|
|
|
454
454
|
- Output: `{ imageUrl: string | string[] }`
|
|
455
455
|
|
|
456
456
|
#### generateLipsync
|
|
457
|
-
Generate a lip sync video from
|
|
457
|
+
Generate a lip sync video from audio and an image or video.
|
|
458
458
|
- In foreground mode, the video is displayed to the user. In background mode, the URL is saved to a variable.
|
|
459
459
|
- Input: `{ intermediateAsset?: boolean, addWatermark?: boolean, lipsyncModelOverride?: { model: string, config?: object } }`
|
|
460
|
-
- Output: `
|
|
460
|
+
- Output: `{ videoUrl: string }`
|
|
461
461
|
|
|
462
462
|
#### generateMusic
|
|
463
463
|
Generate an audio file from provided instructions (text) using a music model.
|
|
464
464
|
- The text field contains the instructions (prompt) for the music generation.
|
|
465
465
|
- In foreground mode, the audio is displayed to the user. In background mode, the URL is saved to a variable.
|
|
466
466
|
- Input: `{ text: string, intermediateAsset?: boolean, musicModelOverride?: { model: string, config?: object } }`
|
|
467
|
-
- Output: `
|
|
467
|
+
- Output: `{ audioUrl: string }`
|
|
468
468
|
|
|
469
469
|
#### generateSound
|
|
470
470
|
Generate a sound effect from a text description using a sound model.
|
|
@@ -513,7 +513,7 @@ Download attachments from a Gmail email and store them on the app's own storage.
|
|
|
513
513
|
- Attachments larger than 25MB are skipped.
|
|
514
514
|
- Use the message ID from Search Gmail Emails, List Recent Gmail Emails, or Get Gmail Email steps.
|
|
515
515
|
- Input: `{ messageId: string, connectionId?: string }`
|
|
516
|
-
- Output: `
|
|
516
|
+
- Output: `{ attachments: { filename: string, mimeType: string, size: number, url: string }[] }`
|
|
517
517
|
|
|
518
518
|
#### getGmailUnreadCount
|
|
519
519
|
Get the number of unread emails in the connected Gmail inbox.
|
|
@@ -521,7 +521,7 @@ Get the number of unread emails in the connected Gmail inbox.
|
|
|
521
521
|
- Returns the unread message count for the inbox label.
|
|
522
522
|
- This is a lightweight call that does not fetch any email content.
|
|
523
523
|
- Input: `{ connectionId?: string }`
|
|
524
|
-
- Output: `
|
|
524
|
+
- Output: `{ unreadCount: number }`
|
|
525
525
|
|
|
526
526
|
#### getMediaMetadata
|
|
527
527
|
Get info about a media file
|
|
@@ -559,7 +559,7 @@ Legacy v1 data sources. v2 apps should use `dataSources.defineDataSource()` from
|
|
|
559
559
|
- Returns metadata for every data source associated with the current app version.
|
|
560
560
|
- Each entry includes the data source ID, name, description, status, and document list.
|
|
561
561
|
- Input: `object`
|
|
562
|
-
- Output: `
|
|
562
|
+
- Output: `{ dataSources: ({ id: string, name: string, description: string, status: "loaded" | "hibernating", dateCreated: string, documents: ({ id: string, name: string, status: "processing" | "done" | "error", numWords?: number, dateUploaded: string })[] })[] }`
|
|
563
563
|
|
|
564
564
|
#### listGmailLabels
|
|
565
565
|
List all labels in the connected Gmail account. Use these label IDs or names with the Update Gmail Labels step.
|
|
@@ -567,7 +567,7 @@ List all labels in the connected Gmail account. Use these label IDs or names wit
|
|
|
567
567
|
- Returns both system labels (INBOX, SENT, TRASH, etc.) and user-created labels.
|
|
568
568
|
- Label type is "system" for built-in labels or "user" for custom labels.
|
|
569
569
|
- Input: `{ connectionId?: string }`
|
|
570
|
-
- Output: `
|
|
570
|
+
- Output: `{ labels: { id: string, name: string, type: string }[] }`
|
|
571
571
|
|
|
572
572
|
#### listRecentGmailEmails
|
|
573
573
|
List recent emails from the connected Gmail inbox.
|
|
@@ -575,7 +575,7 @@ List recent emails from the connected Gmail inbox.
|
|
|
575
575
|
- Returns up to 100 emails (default 5), ordered by most recent first.
|
|
576
576
|
- Functionally equivalent to Search Gmail Emails with an "in:inbox" query.
|
|
577
577
|
- Input: `{ connectionId?: string, exportType: "json" | "text", limit: string }`
|
|
578
|
-
- Output: `
|
|
578
|
+
- Output: `{ emails: { id: string, subject: string, from: string, to: string, date: string, plainBody: string, htmlBody: string, labels: string }[] }`
|
|
579
579
|
|
|
580
580
|
#### logic
|
|
581
581
|
Route execution to different branches based on AI evaluation, comparison operators, or workflow jumps.
|
|
@@ -839,7 +839,7 @@ Send an existing draft from the connected Gmail account.
|
|
|
839
839
|
- The draft is sent and removed from the Drafts folder.
|
|
840
840
|
- Use the draft ID returned by the Create Gmail Draft or List Gmail Drafts steps.
|
|
841
841
|
- Input: `{ draftId: string, connectionId?: string }`
|
|
842
|
-
- Output: `
|
|
842
|
+
- Output: `{ messageId: string }`
|
|
843
843
|
|
|
844
844
|
#### sendGmailMessage
|
|
845
845
|
Send an email from the connected Gmail account.
|
|
@@ -872,7 +872,7 @@ Mark one or more Gmail emails as read or unread.
|
|
|
872
872
|
- Accepts one or more message IDs as a comma-separated string or array.
|
|
873
873
|
- Set markAsRead to true to mark as read, false to mark as unread.
|
|
874
874
|
- Input: `{ messageIds: string, markAsRead: boolean, connectionId?: string }`
|
|
875
|
-
- Output: `
|
|
875
|
+
- Output: `{ messageIds: string[] }`
|
|
876
876
|
|
|
877
877
|
#### setRunTitle
|
|
878
878
|
Set the title of the agent run for the user's history
|
|
@@ -927,7 +927,7 @@ Legacy v1 data sources. v2 apps should use `dataSources.defineDataSource()` from
|
|
|
927
927
|
- Once processing finishes, vectors are loaded into Milvus so the data source is immediately queryable.
|
|
928
928
|
- Supported file types (when using a URL) are the same as the data source upload UI (PDF, DOCX, TXT, etc.).
|
|
929
929
|
- Input: `{ dataSourceId: string, file: string, fileName: string }`
|
|
930
|
-
- Output: `
|
|
930
|
+
- Output: `{ documentId: string, dataSourceId: string, fileName: string }`
|
|
931
931
|
|
|
932
932
|
#### upscaleImage
|
|
933
933
|
Increase the resolution of an image using AI upscaling.
|
|
@@ -1420,17 +1420,18 @@ Call any QuickBooks Online Accounting API route using a connected company.
|
|
|
1420
1420
|
### TypeSafe
|
|
1421
1421
|
|
|
1422
1422
|
#### typesafeEvaluate
|
|
1423
|
-
Ask
|
|
1424
|
-
- state is the content to judge: a string, or a JSON object or array (a record, a chat log, application state).
|
|
1423
|
+
Ask structured questions about text, JSON, or images and get calibrated answers. The model returns a probability, a selected option, or a score. It does not write a reply. Each question is a noul (yes or no, as a probability from 0 to 1), a choice (one option from a set you define, with a probability for each), or a score (a rating against ordered levels). Put every question in the same call. The question id is yours: answers come back under the same ids. The model defaults to Jev (jev-latest). Pass clef or clef-flash to run Cloudflare Clef with the same questions and answers. Clef and Clef Flash can also read up to 4 images.
|
|
1424
|
+
- state is the content to judge: a string, or a JSON object or array (a record, a chat log, application state).
|
|
1425
|
+
- images is for Clef and Clef Flash. Pass up to 4 PNG, JPEG, or WebP images as URLs. Each file is at most 4 MiB, and 8 MiB together. A call on Jev that includes images is rejected.
|
|
1425
1426
|
- questions is a map. The key is an id you choose. It is not shown to the model. The answer comes back under the same id.
|
|
1426
1427
|
- A noul asks a yes/no question and returns noul, a probability from 0 (no) to 1 (yes). Optional criteria.true and criteria.false say what a yes and a no mean.
|
|
1427
1428
|
- A choice picks one option. criteria is a map of option id to a short description (or null). At most 255 options. The answer includes the winning choice, a probability for every option, and confidence.
|
|
1428
1429
|
- A score rates the state on an ordered rubric. criteria is 2 to 10 level descriptions, low to high. The answer's score can land between levels, and includes a probability per level plus confidence.
|
|
1429
1430
|
- instructions may be a string, or an object that keeps the question in one field and reference data in the others. Refer to those fields by name in backticks.
|
|
1430
1431
|
- Send every question you need in one call. The model reads the state once and answers them together.
|
|
1431
|
-
- model defaults to jev-latest, the current stable release. jev-preview tracks the newest release. Pin a version such as jev-1.13.0 when a threshold was tuned against that version. The response model field is the version that answered.
|
|
1432
|
-
- Billed per input token. Output tokens are free.
|
|
1433
|
-
- Input: `{ state: string | object | unknown[], questions: object, model?: string }`
|
|
1432
|
+
- model defaults to jev-latest, the current stable TypeSafe release. jev-preview tracks the newest TypeSafe release. Pin a version such as jev-1.13.0 when a threshold was tuned against that version. clef and clef-flash run Cloudflare Clef on the same questions and answers. clef is the larger model. clef-flash is the faster one. @cf/cloudflare/clef and @cf/cloudflare/clef-flash name the same two. Clef accepts at most 64 questions, and a question id may use only letters, digits, underscore, dot, and hyphen, up to 100 characters. The response model field is the version that answered.
|
|
1433
|
+
- Billed per input token. Output tokens are free. Clef and Clef-flash have their own rates.
|
|
1434
|
+
- Input: `{ state: string | object | unknown[], questions: object, model?: string, images?: string[] }`
|
|
1434
1435
|
- Output: `{ model: string, answers: object, usage: { input_tokens: number, output_tokens: number } }`
|
|
1435
1436
|
|
|
1436
1437
|
### X
|