@mindstudio-ai/agent 0.1.88 → 0.1.90
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 +74 -25
- package/dist/index.d.ts +218 -161
- package/dist/index.js +49 -12
- package/dist/index.js.map +1 -1
- package/dist/postinstall.js +74 -25
- package/llms.txt +8 -1
- package/package.json +1 -1
package/llms.txt
CHANGED
|
@@ -417,8 +417,9 @@ Download a file from a URL and extract its text content. Supports PDFs (includin
|
|
|
417
417
|
- Handles both text-layer PDFs and image-based/scanned PDFs (e.g. Figma/Canva exports, scanned documents). Image-based PDFs are processed with OCR automatically — there is no need to convert PDF pages to images first.
|
|
418
418
|
- Accepts a single URL, a comma-separated list of URLs, or a JSON array of URLs.
|
|
419
419
|
- Files are rehosted on the MindStudio CDN before extraction.
|
|
420
|
+
- Optionally set `model` to a specific document-extraction model (`mistral-ocr-latest`, `llamaparse`, `google-document-ai`); omit to use the platform default.
|
|
420
421
|
- Maximum file size is 50MB per URL.
|
|
421
|
-
- Input: `{ url: string | string[] }`
|
|
422
|
+
- Input: `{ url: string | string[], model?: string }`
|
|
422
423
|
- Output: `{ text: string | string[] }`
|
|
423
424
|
|
|
424
425
|
#### fetchDataSourceDocument
|
|
@@ -1841,6 +1842,12 @@ import { platform } from '@mindstudio-ai/interface';
|
|
|
1841
1842
|
const { url } = await platform.upload(token, file, { onProgress });
|
|
1842
1843
|
```
|
|
1843
1844
|
|
|
1845
|
+
Generated assets: any action that produces a file (`generateImage`, `generateVideo`, `generateSpeech`, `generatePdf`, `upscaleImage`, …) can put its output straight into one of these stores — pass the store handle as `store` in the OPTIONS object (second argument). Optional: omit it and the asset goes to the shared MindStudio CDN as before. Reach for it when the asset belongs to the app — private to a user, or listed alongside its other files.
|
|
1846
|
+
|
|
1847
|
+
```typescript
|
|
1848
|
+
const { imageUrl } = await mindstudio.generateImage({ prompt: 'a red sneaker' }, { store: Assets });
|
|
1849
|
+
```
|
|
1850
|
+
|
|
1844
1851
|
#### `dataSources` — searchable document corpora (RAG)
|
|
1845
1852
|
|
|
1846
1853
|
Declare a data source at module scope and import the handle. The platform owns parsing, chunking, embedding, storage and tenant isolation; every hit returns a citation.
|