@mastra/agentfs 0.2.1-alpha.0 → 0.2.1-alpha.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.
- package/README.md +10 -31
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -10,36 +10,6 @@ npm install @mastra/agentfs
|
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
13
|
-
```typescript
|
|
14
|
-
import { Agent } from '@mastra/core/agent';
|
|
15
|
-
import { Workspace } from '@mastra/core/workspace';
|
|
16
|
-
import { AgentFSFilesystem } from '@mastra/agentfs';
|
|
17
|
-
|
|
18
|
-
const workspace = new Workspace({
|
|
19
|
-
filesystem: new AgentFSFilesystem({
|
|
20
|
-
agentId: 'my-agent', // stores at .agentfs/my-agent.db
|
|
21
|
-
}),
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
const agent = new Agent({
|
|
25
|
-
name: 'my-agent',
|
|
26
|
-
model: 'anthropic/claude-opus-4-5',
|
|
27
|
-
workspace,
|
|
28
|
-
});
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
### Using an explicit database path
|
|
32
|
-
|
|
33
|
-
```typescript
|
|
34
|
-
const workspace = new Workspace({
|
|
35
|
-
filesystem: new AgentFSFilesystem({
|
|
36
|
-
path: '/data/my-agent.db',
|
|
37
|
-
}),
|
|
38
|
-
});
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
### Using a pre-opened AgentFS instance
|
|
42
|
-
|
|
43
13
|
```typescript
|
|
44
14
|
import { AgentFS } from 'agentfs-sdk';
|
|
45
15
|
import { AgentFSFilesystem } from '@mastra/agentfs';
|
|
@@ -55,4 +25,13 @@ const workspace = new Workspace({
|
|
|
55
25
|
|
|
56
26
|
## Documentation
|
|
57
27
|
|
|
58
|
-
|
|
28
|
+
- [AgentFS integration guide](https://mastra.ai/integrations/file-storage/agentfs)
|
|
29
|
+
- [Workspace documentation](https://mastra.ai/docs/mastra-platform/workspaces)
|
|
30
|
+
|
|
31
|
+
## Changelog
|
|
32
|
+
|
|
33
|
+
See the [package changelog](https://github.com/mastra-ai/mastra/blob/main/workspaces/agentfs/CHANGELOG.md) for version history and release notes.
|
|
34
|
+
|
|
35
|
+
## Support
|
|
36
|
+
|
|
37
|
+
We have an [open community Discord](https://discord.gg/mastra-ai). Come and say hello and let us know if you have any questions or need any help getting things running.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/agentfs",
|
|
3
|
-
"version": "0.2.1-alpha.
|
|
3
|
+
"version": "0.2.1-alpha.1",
|
|
4
4
|
"description": "AgentFS (Turso/SQLite-backed) filesystem provider for Mastra workspaces",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"typescript": "^7.0.2",
|
|
33
33
|
"vitest": "4.1.10",
|
|
34
34
|
"@internal/types-builder": "0.0.104",
|
|
35
|
-
"@internal/lint": "0.0.129",
|
|
36
35
|
"@internal/workspace-test-utils": "0.0.73",
|
|
37
|
-
"@
|
|
36
|
+
"@internal/lint": "0.0.129",
|
|
37
|
+
"@mastra/core": "1.64.0-alpha.7"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"@mastra/core": ">=1.12.0-0 <2.0.0-0"
|