@lotics/app-sdk 0.42.0 → 0.42.1

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.
Files changed (2) hide show
  1. package/AGENTS.md +4 -1
  2. package/package.json +1 -1
package/AGENTS.md CHANGED
@@ -55,7 +55,10 @@ Pick by intent. (→ open the `.d.ts` for the exact signature.)
55
55
  to a `DisplayFile` (snake → camel — `mime_type`→`mimeType`, `preview_url`→`url` — the app owns this
56
56
  data→UI adapter; the SDK never imports `@lotics/ui`) for
57
57
  `<FileThumbnail file={{ id, filename, mimeType, url }} uploading={f.status === "uploading"} />`;
58
- `sendDisabled` gates on `uploading` and the send payload is `fileIds`. Don't hand-roll
58
+ `sendDisabled` gates on `uploading` and the send payload is `fileIds`. To persist several files into ONE
59
+ record, declare the workflow input `{ type: "file", multi: true }` — the body receives `fileIds` as
60
+ `ReadonlyArray<FileId>` and writes it straight to a `files` field (a single `file` input is one id → wrap `[id]`).
61
+ Don't hand-roll
59
62
  `createObjectURL`/upload/revoke per app. For a full add-files SCREEN (not the composer pill), map
60
63
  each `AttachedFile` to a `FileUpload` (ready → `{ status: "complete", id, file }`, else
61
64
  `{ status, id, filename, mimeType: mime_type, previewUrl: preview_url }`) and feed `@lotics/ui`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lotics/app-sdk",
3
- "version": "0.42.0",
3
+ "version": "0.42.1",
4
4
  "description": "Runtime SDK for Lotics custom-code apps — typed hooks, postMessage bridge, mount entry point",
5
5
  "type": "module",
6
6
  "exports": {