@mindstudio-ai/agent 0.1.184 → 0.1.185

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/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@ What changed in `@mindstudio-ai/agent`, newest first, each version under its own
4
4
 
5
5
  Versions before 0.1.163 aren't recorded here.
6
6
 
7
+ ## 0.1.185
8
+
9
+ ### New
10
+
11
+ - `@mindstudio-ai/agent/snippets` exports `monacoSnippets` and `blockTypeAliases` by themselves: plain data with no imports, for a code editor that runs in a browser. The main entry still exports both, but it's Node code, and a browser bundle of it has failed since 0.1.144, on its file imports. Check: browser code that imports either from `@mindstudio-ai/agent` imports it from `@mindstudio-ai/agent/snippets`.
12
+
7
13
  ## 0.1.184
8
14
 
9
15
  ### New
package/README.md CHANGED
@@ -675,10 +675,10 @@ import type {
675
675
 
676
676
  ## Snippets
677
677
 
678
- A `monacoSnippets` object is exported with field metadata and output keys for every method:
678
+ A `monacoSnippets` object is exported with field metadata and output keys for every method. It's for a code editor's completions, and an editor runs in a browser, so it has an entry of its own, `@mindstudio-ai/agent/snippets`: plain data with no imports, which any bundler can take. The main entry exports it too, but that entry is Node code and won't bundle for a browser.
679
679
 
680
680
  ```typescript
681
- import { monacoSnippets } from '@mindstudio-ai/agent';
681
+ import { monacoSnippets } from '@mindstudio-ai/agent/snippets';
682
682
 
683
683
  monacoSnippets.generateText;
684
684
  // {
@@ -690,7 +690,7 @@ monacoSnippets.generateText;
690
690
  For the 2 renamed step types, both the alias and original name appear as keys. A `blockTypeAliases` map is also exported for reverse-mapping:
691
691
 
692
692
  ```typescript
693
- import { blockTypeAliases } from '@mindstudio-ai/agent';
693
+ import { blockTypeAliases } from '@mindstudio-ai/agent/snippets';
694
694
  // { userMessage: "generateText", generatePdf: "generateAsset" }
695
695
  ```
696
696
 
package/dist/cli.js CHANGED
@@ -10258,7 +10258,7 @@ async function startMcpServer(options) {
10258
10258
  capabilities: { tools: {} },
10259
10259
  serverInfo: {
10260
10260
  name: "mindstudio-agent",
10261
- version: "0.1.184"
10261
+ version: "0.1.185"
10262
10262
  },
10263
10263
  instructions: 'Welcome to MindStudio \u2014 a platform with 200+ AI models, 850+ third-party integrations, and pre-built agents.\n\nGetting started:\n1. Call `ask` with any question about the SDK \u2014 it knows every action, model, and connector and returns working code with real model IDs and config options. Examples: ask("generate an image with FLUX"), ask("what models support vision?"), ask("how do I send a Slack message?").\n2. Call `changeName` to set your display name \u2014 use your name or whatever your user calls you. This is how you\'ll appear in MindStudio request logs.\n3. If you have a profile picture, pass its public image URL to `changeProfilePicture`.\n4. For manual browsing, call `listActions` to discover all available actions.\n\nThen use the tools to generate text, images, video, audio, search the web, work with data sources, run agents, and more.\n\nImportant:\n- AI-powered actions (text generation, image generation, video, audio, etc.) cost money. Before running these, call `estimateActionCost` and confirm with the user before proceeding \u2014 unless they\'ve explicitly told you to go ahead.\n- Not all agents from `listAgents` are configured for API use. Do not try to run an agent just because it appears in the list \u2014 it will likely fail. Only run agents the user specifically asks you to run.'
10264
10264
  });
@@ -11298,7 +11298,7 @@ function isNewerVersion(current, latest) {
11298
11298
  return false;
11299
11299
  }
11300
11300
  async function checkForUpdate() {
11301
- const currentVersion = "0.1.184";
11301
+ const currentVersion = "0.1.185";
11302
11302
  if (!currentVersion || process.env.MINDSTUDIO_NO_UPDATE_CHECK) {
11303
11303
  return null;
11304
11304
  }
@@ -11333,7 +11333,7 @@ async function checkForUpdate() {
11333
11333
  }
11334
11334
  }
11335
11335
  function printUpdateNotice(latestVersion) {
11336
- const currentVersion = "0.1.184";
11336
+ const currentVersion = "0.1.185";
11337
11337
  process.stderr.write(
11338
11338
  `
11339
11339
  ${ansi2.cyanBright("Update available")} ${ansi2.gray(currentVersion + " \u2192")} ${ansi2.cyanBold(latestVersion)}
@@ -11346,7 +11346,7 @@ function isStandaloneBinary() {
11346
11346
  return !argv1.includes("node_modules");
11347
11347
  }
11348
11348
  async function cmdUpdate() {
11349
- const currentVersion = "0.1.184";
11349
+ const currentVersion = "0.1.185";
11350
11350
  process.stderr.write(
11351
11351
  ` ${ansi2.gray("Current version:")} ${currentVersion}
11352
11352
  `
@@ -11487,7 +11487,7 @@ async function cmdLogin(options) {
11487
11487
  process.stderr.write("\n");
11488
11488
  printLogo();
11489
11489
  process.stderr.write("\n");
11490
- const ver = "0.1.184";
11490
+ const ver = "0.1.185";
11491
11491
  process.stderr.write(
11492
11492
  ` ${ansi2.bold("MindStudio Agent")} ${ver ? " " + ansi2.gray("v" + ver) : ""}
11493
11493
  `
@@ -11817,7 +11817,7 @@ async function main() {
11817
11817
  const updatePromise = command !== "mcp" && command !== "login" && command !== "update" ? checkForUpdate() : Promise.resolve(null);
11818
11818
  try {
11819
11819
  if (command === "version" || command === "-v") {
11820
- process.stdout.write("0.1.184\n");
11820
+ process.stdout.write("0.1.185\n");
11821
11821
  return;
11822
11822
  }
11823
11823
  if (command === "login") {
@@ -0,0 +1,173 @@
1
+ // src/generated/snippets.ts
2
+ var monacoSnippets = {
3
+ "activeCampaignAddNote": { fields: [["contactId", "string"], ["note", "string"]], outputKeys: [] },
4
+ "activeCampaignCreateContact": { fields: [["email", "string"], ["firstName", "string"], ["lastName", "string"], ["phone", "string"], ["accountId", "string"], ["customFields", "object"]], outputKeys: ["contactId"] },
5
+ "addSubtitlesToVideo": { fields: [["videoUrl", "string"], ["language", "string"], ["fontName", "string"], ["fontSize", "number"], ["fontWeight", ["normal", "bold", "black"]], ["fontColor", ["white", "black", "red", "green", "blue", "yellow", "orange", "purple", "pink", "brown", "gray", "cyan", "magenta"]], ["highlightColor", ["white", "black", "red", "green", "blue", "yellow", "orange", "purple", "pink", "brown", "gray", "cyan", "magenta"]], ["strokeWidth", "number"], ["strokeColor", ["black", "white", "red", "green", "blue", "yellow", "orange", "purple", "pink", "brown", "gray", "cyan", "magenta"]], ["backgroundColor", ["black", "white", "red", "green", "blue", "yellow", "orange", "purple", "pink", "brown", "gray", "cyan", "magenta", "none"]], ["backgroundOpacity", "number"], ["position", ["top", "center", "bottom"]], ["yOffset", "number"], ["wordsPerSubtitle", "number"], ["enableAnimation", "boolean"]], outputKeys: ["videoUrl"] },
6
+ "addThumbnailToVideo": { fields: [["videoUrl", "string"]], outputKeys: ["videoUrl", "thumbnailUrl"] },
7
+ "airtableCreateUpdateRecord": { fields: [["baseId", "string"], ["tableId", "string"], ["fields", "string"], ["recordData", "object"]], outputKeys: ["recordId"] },
8
+ "airtableDeleteRecord": { fields: [["baseId", "string"], ["tableId", "string"], ["recordId", "string"]], outputKeys: ["deleted"] },
9
+ "airtableGetRecord": { fields: [["baseId", "string"], ["tableId", "string"], ["recordId", "string"]], outputKeys: ["record"] },
10
+ "airtableGetTableRecords": { fields: [["baseId", "string"], ["tableId", "string"]], outputKeys: ["records"] },
11
+ "analyzeImage": { fields: [["prompt", "string"]], outputKeys: ["analysis"] },
12
+ "analyzeVideo": { fields: [["prompt", "string"], ["videoUrl", "string"]], outputKeys: ["analysis"] },
13
+ "captureThumbnail": { fields: [["videoUrl", "string"], ["at", "string"]], outputKeys: ["thumbnailUrl"] },
14
+ "checkAppRole": { fields: [["roleName", "string"]], outputKeys: ["hasRole", "userRoles"] },
15
+ "codaCreateUpdatePage": { fields: [["pageData", "object"]], outputKeys: ["pageId"] },
16
+ "codaCreateUpdateRow": { fields: [["docId", "string"], ["tableId", "string"], ["rowData", "object"]], outputKeys: ["rowId"] },
17
+ "codaFindRow": { fields: [["docId", "string"], ["tableId", "string"], ["rowData", "object"]], outputKeys: ["row"] },
18
+ "codaGetPage": { fields: [["docId", "string"], ["pageId", "string"]], outputKeys: ["content"] },
19
+ "codaGetTableRows": { fields: [["docId", "string"], ["tableId", "string"]], outputKeys: ["rows"] },
20
+ "convertPdfToImages": { fields: [["pdfUrl", "string"]], outputKeys: ["imageUrls"] },
21
+ "createDataSource": { fields: [["name", "string"]], outputKeys: ["dataSourceId", "name"] },
22
+ "createGmailDraft": { fields: [["to", "string"], ["subject", "string"], ["message", "string"], ["messageType", ["plain", "html", "markdown"]]], outputKeys: ["draftId"] },
23
+ "createGoogleCalendarEvent": { fields: [["summary", "string"], ["startDateTime", "string"], ["endDateTime", "string"]], outputKeys: ["eventId", "htmlLink"] },
24
+ "createGoogleDoc": { fields: [["title", "string"], ["text", "string"], ["textType", ["plain", "html", "markdown"]]], outputKeys: ["documentUrl"] },
25
+ "createGoogleSheet": { fields: [["title", "string"], ["text", "string"]], outputKeys: ["spreadsheetUrl"] },
26
+ "decomposeImage": { fields: [["image", "string"]], outputKeys: ["imageUrls"] },
27
+ "deleteDataSource": { fields: [["dataSourceId", "string"]], outputKeys: ["dataSourceId"] },
28
+ "deleteDataSourceDocument": { fields: [["dataSourceId", "string"], ["documentId", "string"]], outputKeys: ["dataSourceId", "documentId"] },
29
+ "deleteGmailEmail": { fields: [["messageId", "string"]], outputKeys: [] },
30
+ "deleteGoogleCalendarEvent": { fields: [["eventId", "string"]], outputKeys: [] },
31
+ "deleteGoogleSheetRows": { fields: [["documentId", "string"], ["startRow", "string"], ["endRow", "string"]], outputKeys: [] },
32
+ "describeExternalModel": { fields: [["replicate", "object"]], outputKeys: ["model", "url", "description", "inputSchema", "outputSchema", "pricePerSecond", "priceIsUpperBound"] },
33
+ "detectChanges": { fields: [["mode", ["ai", "comparison"]], ["input", "string"]], outputKeys: ["hasChanged", "currentValue", "previousValue", "isFirstRun"] },
34
+ "detectPII": { fields: [["input", "string"], ["language", "string"], ["entities", "array"]], outputKeys: ["detected", "detections"] },
35
+ "downloadVideo": { fields: [["videoUrl", "string"], ["format", ["mp4", "mp3"]]], outputKeys: ["videoUrl"] },
36
+ "enhanceImageGenerationPrompt": { fields: [["initialPrompt", "string"], ["includeNegativePrompt", "boolean"], ["systemPrompt", "string"]], outputKeys: ["prompt"] },
37
+ "enhanceVideoGenerationPrompt": { fields: [["initialPrompt", "string"], ["includeNegativePrompt", "boolean"], ["systemPrompt", "string"]], outputKeys: ["prompt"] },
38
+ "enrichPerson": { fields: [["params", "object"]], outputKeys: ["data"] },
39
+ "evaluateDecision": { fields: [["state", "string"], ["questions", "object"]], outputKeys: ["model", "answers", "usage"] },
40
+ "extractAudioFromVideo": { fields: [["videoUrl", "string"]], outputKeys: ["audioUrl"] },
41
+ "extractText": { fields: [["url", "string"]], outputKeys: ["text", "documents"] },
42
+ "fetchDataSourceDocument": { fields: [["dataSourceId", "string"], ["documentId", "string"]], outputKeys: ["documentId", "name", "content", "summary", "numWords"] },
43
+ "fetchGoogleDoc": { fields: [["documentId", "string"], ["exportType", ["html", "markdown", "json", "plain"]]], outputKeys: ["content"] },
44
+ "fetchGoogleSheet": { fields: [["spreadsheetId", "string"], ["range", "string"], ["exportType", ["csv", "json"]]], outputKeys: ["content"] },
45
+ "fetchSlackChannelHistory": { fields: [["channelId", "string"]], outputKeys: ["messages"] },
46
+ "fetchYoutubeCaptions": { fields: [["videoUrl", "string"], ["exportType", ["text", "json"]], ["language", "string"]], outputKeys: ["transcripts"] },
47
+ "fetchYoutubeChannel": { fields: [["channelUrl", "string"]], outputKeys: [] },
48
+ "fetchYoutubeComments": { fields: [["videoUrl", "string"], ["exportType", ["text", "json"]], ["limitPages", "string"]], outputKeys: ["comments"] },
49
+ "fetchYoutubeVideo": { fields: [["videoUrl", "string"]], outputKeys: [] },
50
+ "generate3dModel": { fields: [], outputKeys: ["glbUrl"] },
51
+ "generateAsset": { fields: [["source", "string"], ["sourceType", ["html", "markdown", "spa", "raw", "dynamic", "customInterface"]], ["outputFormat", ["pdf", "png", "html", "mp4", "openGraph"]], ["pageSize", ["full", "letter", "A4", "custom"]], ["testData", "object"]], outputKeys: ["url"] },
52
+ "generateImage": { fields: [["prompt", "string"]], outputKeys: ["imageUrl"] },
53
+ "generateLipsync": { fields: [], outputKeys: ["videoUrl"] },
54
+ "generateMusic": { fields: [["text", "string"]], outputKeys: ["audioUrl"] },
55
+ "generatePdf": { fields: [["source", "string"], ["sourceType", ["html", "markdown", "spa", "raw", "dynamic", "customInterface"]], ["outputFormat", ["pdf", "png", "html", "mp4", "openGraph"]], ["pageSize", ["full", "letter", "A4", "custom"]], ["testData", "object"]], outputKeys: ["url"] },
56
+ "generateSound": { fields: [["text", "string"]], outputKeys: ["audioUrl"] },
57
+ "generateStaticVideoFromImage": { fields: [["imageUrl", "string"], ["duration", "string"]], outputKeys: ["videoUrl"] },
58
+ "generateText": { fields: [["message", "string"]], outputKeys: ["content"] },
59
+ "generateVideo": { fields: [["prompt", "string"]], outputKeys: ["videoUrl"] },
60
+ "getGmailAttachments": { fields: [["messageId", "string"]], outputKeys: ["attachments"] },
61
+ "getGmailDraft": { fields: [["draftId", "string"]], outputKeys: ["draftId", "messageId", "subject", "to", "from", "body"] },
62
+ "getGmailEmail": { fields: [["messageId", "string"]], outputKeys: ["messageId", "subject", "from", "to", "date", "body", "labels"] },
63
+ "getGmailUnreadCount": { fields: [], outputKeys: ["unreadCount"] },
64
+ "getGoogleCalendarEvent": { fields: [["eventId", "string"], ["exportType", ["json", "text"]]], outputKeys: ["event"] },
65
+ "getGoogleDriveFile": { fields: [["fileId", "string"]], outputKeys: ["url", "name", "mimeType", "size"] },
66
+ "getGoogleSheetInfo": { fields: [["documentId", "string"]], outputKeys: ["title", "sheets"] },
67
+ "getMediaMetadata": { fields: [["mediaUrl", "string"]], outputKeys: ["metadata"] },
68
+ "hubspotCreateCompany": { fields: [["company", "object"], ["enabledProperties", "array"]], outputKeys: ["companyId"] },
69
+ "hubspotCreateContact": { fields: [["contact", "object"], ["enabledProperties", "array"], ["companyDomain", "string"]], outputKeys: ["contactId"] },
70
+ "hubspotGetCompany": { fields: [["searchBy", ["domain", "id"]], ["companyDomain", "string"], ["companyId", "string"], ["additionalProperties", "array"]], outputKeys: ["company"] },
71
+ "hubspotGetContact": { fields: [["searchBy", ["email", "id"]], ["contactEmail", "string"], ["contactId", "string"], ["additionalProperties", "array"]], outputKeys: ["contact"] },
72
+ "hunterApiCompanyEnrichment": { fields: [["domain", "string"]], outputKeys: ["data"] },
73
+ "hunterApiDomainSearch": { fields: [["domain", "string"]], outputKeys: ["data"] },
74
+ "hunterApiEmailFinder": { fields: [["domain", "string"], ["firstName", "string"], ["lastName", "string"]], outputKeys: ["data"] },
75
+ "hunterApiEmailVerification": { fields: [["email", "string"]], outputKeys: ["data"] },
76
+ "hunterApiPersonEnrichment": { fields: [["email", "string"]], outputKeys: ["data"] },
77
+ "imageFaceSwap": { fields: [["imageUrl", "string"], ["faceImageUrl", "string"], ["engine", "string"]], outputKeys: ["imageUrl"] },
78
+ "imageRemoveWatermark": { fields: [["imageUrl", "string"], ["engine", "string"]], outputKeys: ["imageUrl"] },
79
+ "importFromUrl": { fields: [["url", "string"]], outputKeys: ["fileUrl", "key", "size", "contentType"] },
80
+ "insertVideoClips": { fields: [["baseVideoUrl", "string"], ["overlayVideos", "array"]], outputKeys: ["videoUrl"] },
81
+ "listDataSources": { fields: [], outputKeys: ["dataSources"] },
82
+ "listGmailDrafts": { fields: [["exportType", ["json", "text"]]], outputKeys: ["drafts"] },
83
+ "listGmailLabels": { fields: [], outputKeys: ["labels"] },
84
+ "listGoogleCalendarEvents": { fields: [["limit", "number"], ["exportType", ["json", "text"]]], outputKeys: ["events"] },
85
+ "listGoogleDriveFiles": { fields: [["exportType", ["json", "text"]]], outputKeys: ["files"] },
86
+ "listRecentGmailEmails": { fields: [["exportType", ["json", "text"]], ["limit", "string"]], outputKeys: ["emails"] },
87
+ "logic": { fields: [["context", "string"], ["cases", "array"]], outputKeys: ["selectedCase"] },
88
+ "makeDotComRunScenario": { fields: [["webhookUrl", "string"], ["input", "object"]], outputKeys: ["data"] },
89
+ "mergeAudio": { fields: [["mp3Urls", "array"]], outputKeys: ["audioUrl"] },
90
+ "mergeVideos": { fields: [["videoUrls", "array"]], outputKeys: ["videoUrl"] },
91
+ "meshyAnimate": { fields: [["rigTaskId", "string"], ["actionId", "number"]], outputKeys: ["glbUrl"] },
92
+ "meshyImageTo3d": { fields: [["imageUrls", "array"]], outputKeys: ["glbUrl"] },
93
+ "meshyRemesh": { fields: [], outputKeys: ["glbUrl"] },
94
+ "meshyRig": { fields: [], outputKeys: ["glbUrl"] },
95
+ "meshyTextTo3d": { fields: [["prompt", "string"]], outputKeys: ["glbUrl"] },
96
+ "meshyTexture": { fields: [], outputKeys: ["glbUrl"] },
97
+ "mixAudioIntoVideo": { fields: [["videoUrl", "string"], ["audioUrl", "string"], ["options", "object"]], outputKeys: ["videoUrl"] },
98
+ "muteVideo": { fields: [["videoUrl", "string"]], outputKeys: ["videoUrl"] },
99
+ "n8nRunNode": { fields: [["method", "string"], ["authentication", ["none", "basic", "string"]], ["user", "string"], ["password", "string"], ["webhookUrl", "string"], ["input", "object"]], outputKeys: ["data"] },
100
+ "notionCreatePage": { fields: [["pageId", "string"], ["content", "string"], ["title", "string"]], outputKeys: ["pageId", "pageUrl"] },
101
+ "notionUpdatePage": { fields: [["pageId", "string"], ["content", "string"], ["mode", ["append", "overwrite"]]], outputKeys: ["pageId", "pageUrl"] },
102
+ "peopleSearch": { fields: [["smartQuery", "string"], ["enrichPeople", "boolean"], ["enrichOrganizations", "boolean"], ["limit", "string"], ["page", "string"], ["params", "object"]], outputKeys: ["results"] },
103
+ "postToLinkedIn": { fields: [["message", "string"], ["visibility", ["PUBLIC", "CONNECTIONS"]]], outputKeys: [] },
104
+ "postToSlackChannel": { fields: [["channelId", "string"], ["messageType", ["string", "blocks"]], ["message", "string"]], outputKeys: [] },
105
+ "postToX": { fields: [["text", "string"]], outputKeys: [] },
106
+ "postToZapier": { fields: [["webhookUrl", "string"], ["input", "object"]], outputKeys: ["data"] },
107
+ "queryDataSource": { fields: [["dataSourceId", "string"], ["query", "string"], ["maxResults", "number"]], outputKeys: ["text", "chunks", "query", "citations", "latencyMs"] },
108
+ "queryExternalDatabase": { fields: [["query", "string"], ["outputFormat", ["json", "csv"]]], outputKeys: ["data"] },
109
+ "quickbooksApiRequest": { fields: [["method", "string"], ["route", "string"], ["queryParams", "object"], ["body", "string"]], outputKeys: ["ok", "status", "body"] },
110
+ "redactPII": { fields: [["input", "string"], ["language", "string"], ["entities", "array"]], outputKeys: ["text"] },
111
+ "removeBackgroundFromImage": { fields: [["imageUrl", "string"]], outputKeys: ["imageUrl"] },
112
+ "renderVideoFromHtmlComposition": { fields: [], outputKeys: ["videoUrl", "durationSec", "frames"] },
113
+ "replyToGmailEmail": { fields: [["messageId", "string"], ["message", "string"], ["messageType", ["plain", "html", "markdown"]]], outputKeys: ["messageId"] },
114
+ "resizeVideo": { fields: [["videoUrl", "string"], ["mode", ["fit", "exact"]]], outputKeys: ["videoUrl"] },
115
+ "runExternalModel": { fields: [["replicate", "object"]], outputKeys: ["output", "runSeconds"] },
116
+ "runFfmpeg": { fields: [["inputs", "object"], ["args", "array"]], outputKeys: ["outputs"] },
117
+ "runFromConnectorRegistry": { fields: [["actionId", "string"], ["displayName", "string"], ["icon", "string"], ["configurationValues", "object"]], outputKeys: ["data"] },
118
+ "scrapeLinkedInCompany": { fields: [["url", "string"]], outputKeys: ["company"] },
119
+ "scrapeLinkedInProfile": { fields: [["url", "string"]], outputKeys: ["profile"] },
120
+ "scrapeUrl": { fields: [["url", "string"]], outputKeys: ["content"] },
121
+ "scrapeXPost": { fields: [["url", "string"]], outputKeys: ["post"] },
122
+ "scrapeXProfile": { fields: [["url", "string"]], outputKeys: ["profile"] },
123
+ "screenshotUrl": { fields: [["url", "string"]], outputKeys: ["screenshotUrl"] },
124
+ "searchGmailEmails": { fields: [["query", "string"], ["exportType", ["json", "text"]], ["limit", "string"]], outputKeys: ["emails"] },
125
+ "searchGoogle": { fields: [["query", "string"], ["exportType", ["text", "json"]]], outputKeys: ["results"] },
126
+ "searchGoogleCalendarEvents": { fields: [["exportType", ["json", "text"]]], outputKeys: ["events"] },
127
+ "searchGoogleDrive": { fields: [["query", "string"], ["exportType", ["json", "text"]]], outputKeys: ["files"] },
128
+ "searchGoogleImages": { fields: [["query", "string"], ["exportType", ["text", "json"]]], outputKeys: ["images"] },
129
+ "searchGoogleNews": { fields: [["text", "string"], ["exportType", ["text", "json"]]], outputKeys: ["articles"] },
130
+ "searchGoogleTrends": { fields: [["text", "string"], ["hl", "string"], ["geo", "string"], ["data_type", ["TIMESERIES", "GEO_MAP", "GEO_MAP_0", "RELATED_TOPICS", "RELATED_QUERIES"]], ["cat", "string"], ["date", "string"], ["ts", "string"]], outputKeys: ["trends"] },
131
+ "searchPerplexity": { fields: [["query", "string"], ["exportType", ["text", "json"]]], outputKeys: ["results"] },
132
+ "searchXPosts": { fields: [["query", "string"], ["scope", ["recent", "all"]], ["options", "object"]], outputKeys: ["posts"] },
133
+ "searchYoutube": { fields: [["query", "string"], ["limitPages", "string"], ["filter", "string"], ["filterType", "string"]], outputKeys: ["results"] },
134
+ "searchYoutubeTrends": { fields: [["bp", ["now", "music", "gaming", "films"]], ["hl", "string"], ["gl", "string"]], outputKeys: [] },
135
+ "sendEmail": { fields: [["subject", "string"], ["body", "string"]], outputKeys: ["recipients", "cc", "bcc", "from", "suppressed", "batchId"] },
136
+ "sendGmailDraft": { fields: [["draftId", "string"]], outputKeys: ["messageId"] },
137
+ "sendGmailMessage": { fields: [["to", "string"], ["subject", "string"], ["message", "string"], ["messageType", ["plain", "html", "markdown"]]], outputKeys: ["messageId"] },
138
+ "sendSlackDirectMessage": { fields: [["slackUserId", "string"], ["messageType", ["string", "blocks"]], ["message", "string"]], outputKeys: [] },
139
+ "sendSMS": { fields: [["body", "string"]], outputKeys: [] },
140
+ "setGmailReadStatus": { fields: [["messageIds", "string"], ["markAsRead", "boolean"]], outputKeys: ["messageIds"] },
141
+ "setRunTitle": { fields: [["title", "string"]], outputKeys: [] },
142
+ "setVariable": { fields: [["value", "string"]], outputKeys: [] },
143
+ "textToSpeech": { fields: [["text", "string"]], outputKeys: ["audioUrl"] },
144
+ "transcribeAudio": { fields: [["audioUrl", "string"], ["prompt", "string"]], outputKeys: ["text"] },
145
+ "trimMedia": { fields: [["inputUrl", "string"]], outputKeys: ["mediaUrl"] },
146
+ "typesafeEvaluate": { fields: [["state", "string"], ["questions", "object"]], outputKeys: ["model", "answers", "usage"] },
147
+ "updateGmailLabels": { fields: [["query", "string"], ["messageIds", "string"], ["addLabelIds", "string"], ["removeLabelIds", "string"]], outputKeys: ["updatedMessageIds"] },
148
+ "updateGoogleCalendarEvent": { fields: [["eventId", "string"]], outputKeys: ["eventId", "htmlLink"] },
149
+ "updateGoogleDoc": { fields: [["documentId", "string"], ["text", "string"], ["textType", ["plain", "html", "markdown"]], ["operationType", ["addToTop", "addToBottom", "overwrite"]]], outputKeys: ["documentUrl"] },
150
+ "updateGoogleSheet": { fields: [["text", "string"], ["spreadsheetId", "string"], ["range", "string"], ["operationType", ["addToBottom", "overwrite", "range"]]], outputKeys: ["spreadsheetUrl"] },
151
+ "uploadDataSourceDocument": { fields: [["dataSourceId", "string"], ["file", "string"], ["fileName", "string"]], outputKeys: ["documentId", "dataSourceId", "fileName"] },
152
+ "upscaleImage": { fields: [["imageUrl", "string"], ["targetResolution", ["2k", "4k", "8k"]], ["engine", ["standard", "pro"]]], outputKeys: ["imageUrl"] },
153
+ "upscaleVideo": { fields: [["videoUrl", "string"], ["targetResolution", ["720p", "1080p", "2K", "4K"]], ["engine", ["standard", "pro", "ultimate", "flashvsr", "seedance", "seedvr2", "runwayml/upscale-v1"]]], outputKeys: ["videoUrl"] },
154
+ "userMessage": { fields: [["message", "string"]], outputKeys: ["content"] },
155
+ "videoFaceSwap": { fields: [["videoUrl", "string"], ["faceImageUrl", "string"], ["targetIndex", "number"], ["engine", "string"]], outputKeys: ["videoUrl"] },
156
+ "videoRemoveBackground": { fields: [["videoUrl", "string"], ["newBackground", ["transparent", "image"]], ["engine", "string"]], outputKeys: ["videoUrl"] },
157
+ "videoRemoveWatermark": { fields: [["videoUrl", "string"], ["engine", "string"]], outputKeys: ["videoUrl"] },
158
+ "watermarkImage": { fields: [["imageUrl", "string"], ["watermarkImageUrl", "string"], ["corner", ["top-left", "top-right", "bottom-left", "bottom-right"]], ["paddingPx", "number"], ["widthPx", "number"]], outputKeys: ["imageUrl"] },
159
+ "watermarkVideo": { fields: [["videoUrl", "string"], ["imageUrl", "string"], ["corner", ["top-left", "top-right", "bottom-left", "bottom-right"]], ["paddingPx", "number"], ["widthPx", "number"]], outputKeys: ["videoUrl"] },
160
+ "youDotComFinanceResearch": { fields: [["input", "string"]], outputKeys: ["data"] },
161
+ "youDotComGetPageContent": { fields: [["urls", "array"]], outputKeys: ["data"] },
162
+ "youDotComLiveNews": { fields: [["query", "string"]], outputKeys: ["data"] },
163
+ "youDotComWebResearch": { fields: [["input", "string"]], outputKeys: ["data"] },
164
+ "youDotComWebSearch": { fields: [["query", "string"]], outputKeys: ["data"] }
165
+ };
166
+ var blockTypeAliases = {
167
+ "userMessage": "generateText",
168
+ "generatePdf": "generateAsset"
169
+ };
170
+ export {
171
+ blockTypeAliases,
172
+ monacoSnippets
173
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindstudio-ai/agent",
3
- "version": "0.1.184",
3
+ "version": "0.1.185",
4
4
  "description": "TypeScript SDK for MindStudio direct step execution",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -10,6 +10,11 @@
10
10
  "types": "./dist/index.d.ts",
11
11
  "import": "./dist/index.js",
12
12
  "default": "./dist/index.js"
13
+ },
14
+ "./snippets": {
15
+ "types": "./dist/generated/snippets.d.ts",
16
+ "import": "./dist/snippets.js",
17
+ "default": "./dist/snippets.js"
13
18
  }
14
19
  },
15
20
  "bin": {