@mindstudio-ai/agent 0.0.5 → 0.0.7
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/index.d.ts +4 -11
- package/dist/index.js +246 -146
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2167,16 +2167,12 @@ interface ScrapeMetaThreadsProfileStepOutput {
|
|
|
2167
2167
|
interface ScrapeUrlStepInput {
|
|
2168
2168
|
/** URL(s) to scrape. Accepts a single URL, JSON array, or comma/newline-separated list */
|
|
2169
2169
|
url: string;
|
|
2170
|
-
/** Variable name to save the screenshot URL(s) into */
|
|
2171
|
-
screenshotVar?: string;
|
|
2172
2170
|
/** Scraping service to use */
|
|
2173
|
-
service
|
|
2171
|
+
service?: "default" | "firecrawl";
|
|
2174
2172
|
/** Whether to enable enhanced scraping for social media URLs (e.g. Twitter, LinkedIn) */
|
|
2175
|
-
autoEnhance
|
|
2176
|
-
/** Output format: text returns markdown, html returns raw HTML, json returns structured scraper data */
|
|
2177
|
-
outputFormat: "text" | "json" | "html";
|
|
2173
|
+
autoEnhance?: boolean;
|
|
2178
2174
|
/** Page-level scraping options (content filtering, screenshots, headers, etc.) */
|
|
2179
|
-
pageOptions
|
|
2175
|
+
pageOptions?: {
|
|
2180
2176
|
/** Whether to extract only the main content of the page, excluding navigation, footers, etc. */
|
|
2181
2177
|
onlyMainContent: boolean;
|
|
2182
2178
|
/** Whether to capture a screenshot of the page */
|
|
@@ -3548,8 +3544,6 @@ interface StepMethods {
|
|
|
3548
3544
|
* - Can also auto-generate HTML from a prompt (like a generate text block to generate HTML). In these cases, create a prompt with variables in the dynamicPrompt variable describing, in detail, the document to generate
|
|
3549
3545
|
* - Can either display output directly to user (foreground mode) or save the URL of the asset to a variable (background mode)
|
|
3550
3546
|
*/
|
|
3551
|
-
generatePdf(step: GeneratePdfStepInput, options?: StepExecutionOptions): Promise<StepExecutionResult<GeneratePdfStepOutput>>;
|
|
3552
|
-
/** Alias for {@link StepMethods.generatePdf}. */
|
|
3553
3547
|
generateAsset(step: GeneratePdfStepInput, options?: StepExecutionOptions): Promise<StepExecutionResult<GeneratePdfStepOutput>>;
|
|
3554
3548
|
/**
|
|
3555
3549
|
* Generate Static Video from Image
|
|
@@ -4329,8 +4323,6 @@ interface StepMethods {
|
|
|
4329
4323
|
* - Mode "background" saves the result to a variable. Mode "foreground" streams it to the user (not available in direct execution).
|
|
4330
4324
|
* - Structured output (JSON/CSV) can be enforced via structuredOutputType and structuredOutputExample.
|
|
4331
4325
|
*/
|
|
4332
|
-
userMessage(step: UserMessageStepInput, options?: StepExecutionOptions): Promise<StepExecutionResult<UserMessageStepOutput>>;
|
|
4333
|
-
/** Alias for {@link StepMethods.userMessage}. */
|
|
4334
4326
|
generateText(step: UserMessageStepInput, options?: StepExecutionOptions): Promise<StepExecutionResult<UserMessageStepOutput>>;
|
|
4335
4327
|
/**
|
|
4336
4328
|
* Video Face Swap
|
|
@@ -4461,6 +4453,7 @@ declare class MindStudioError extends Error {
|
|
|
4461
4453
|
interface StepSnippet {
|
|
4462
4454
|
method: string;
|
|
4463
4455
|
snippet: string;
|
|
4456
|
+
outputKeys: string[];
|
|
4464
4457
|
}
|
|
4465
4458
|
declare const stepSnippets: Record<string, StepSnippet>;
|
|
4466
4459
|
|