@mindstudio-ai/agent 0.1.84 → 0.1.85
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 +7 -7
- package/dist/index.d.ts +4 -2
- package/dist/index.js.map +1 -1
- package/dist/postinstall.js +7 -7
- package/llms.txt +1 -1
- package/package.json +1 -1
package/llms.txt
CHANGED
|
@@ -1805,7 +1805,7 @@ const { url } = await mindstudio.uploadFile(readFileSync('photo.png'), { extensi
|
|
|
1805
1805
|
Output: `{ url: string }` — The permanent public CDN URL.
|
|
1806
1806
|
|
|
1807
1807
|
#### `files` — per-app file storage (private by default)
|
|
1808
|
-
Typed file storage
|
|
1808
|
+
Typed per-app file storage: user uploads, generated documents, images, marketing assets. Think of a store as a CDN-backed bucket the app talks to — NOT app-defined state like a `db` table. The API is *shaped* like the `db` namespace (define a store at module scope, then read/write), but its contents aren't modeled by code, and one store is shared across dev and prod (a file uploaded in the dev editor is already live in prod at the same URL). Creates are safe by default because keys default to unique (UUID, or a content-addressed hash); the operations to treat with care are `delete(key)` and overwriting a fixed key. Files are served on the app's own domain: private stores (the default) are signed / session-authorized; public stores are world-readable, CDN-served, and images resize via query params (e.g. `?w=400&h=300&fit=cover`). Prefer this over the deprecated `uploadFile()` for app storage.
|
|
1809
1809
|
|
|
1810
1810
|
```typescript
|
|
1811
1811
|
import { files } from '@mindstudio-ai/agent';
|