@mayurajs/filestorage-agentfs 1.1.0 → 1.2.0

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/README.md +3 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -9,10 +9,11 @@ npm install mayura agentfs-sdk @mayurajs/filestorage-agentfs
9
9
  ```ts
10
10
  import { AgentFS } from 'agentfs-sdk';
11
11
  import { createFileStore } from 'mayura/files';
12
- import { agentFsFiles } from '@mayurajs/filestorage-agentfs';
12
+ import { agentFsFiles, type AgentFsLike } from '@mayurajs/filestorage-agentfs';
13
13
 
14
14
  const agent = await AgentFS.open({ id: 'support-agent' });
15
- const files = createFileStore(agentFsFiles({ fs: agent.fs, singleWriter: true }), { maxFileBytes: 10 * 1024 * 1024 });
15
+ // agentfs-sdk 0.6.4 types writeFile with Node's Buffer; the package passes Uint8Array, which it accepts.
16
+ const files = createFileStore(agentFsFiles({ fs: agent.fs as AgentFsLike, singleWriter: true }), { maxFileBytes: 10 * 1024 * 1024 });
16
17
  ```
17
18
 
18
19
  - Each key is a path under `root` (`/files` by default). A file's etag is the SHA-256 of its content; its media type and
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mayurajs/filestorage-agentfs",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "AgentFS (Turso's filesystem for agents) for Mayura's file stores.",
5
5
  "author": {
6
6
  "name": "Aryabh",
@@ -36,7 +36,7 @@
36
36
  ],
37
37
  "dependencies": {},
38
38
  "peerDependencies": {
39
- "mayura": "^1.1.0"
39
+ "mayura": "^1.2.0"
40
40
  },
41
41
  "publishConfig": {
42
42
  "access": "public",