@archildata/mastra 0.0.29 → 0.0.30-next.20261201221409

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 +17 -18
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -1,39 +1,38 @@
1
1
  # @archildata/mastra
2
2
 
3
- Archil integration for [Mastra](https://mastra.ai/).
3
+ [Archil](https://archil.com) for [Mastra](https://mastra.ai/): filesystem tools over
4
+ Archil disks.
5
+
6
+ Full documentation is at [docs.archil.com](https://docs.archil.com/integrations/mastra).
4
7
 
5
8
  ## Install
6
9
 
7
10
  ```sh
8
- npm install disk @archildata/mastra
11
+ npm install @mastra/core disk @archildata/mastra
9
12
  ```
10
13
 
11
- `disk` is a peer dependency. The Archil client reads standard Archil environment
12
- configuration, including `ARCHIL_API_KEY` and `ARCHIL_REGION`, unless you pass an existing `Archil`
13
- client.
14
+ Set `ARCHIL_API_KEY` and `ARCHIL_REGION` so `disk` can reach your Archil account.
14
15
 
15
- ## Disk Tools
16
+ ## Disk tools
16
17
 
17
- Use `createDiskTools` from an `src/mastra/agents/*.ts` file when the agent should
18
- have direct tools for an Archil disk or multi-disk workspace:
18
+ `createDiskTools` gives an agent tools to read, write, list, search, and run commands
19
+ against a disk:
19
20
 
20
21
  ```ts
21
22
  import { Agent } from "@mastra/core/agent";
22
23
  import * as archil from "disk";
23
24
  import { createDiskTools } from "@archildata/mastra";
24
-
25
+
25
26
  const disk = await archil.getDisk(process.env.ARCHIL_DISK_ID!);
26
- // or mount multiple disks as a workspace...
27
- const disk = archil.workspace({
28
- source: { disk: await archil.getDisk(process.env.SOURCE_DISK_ID!), readOnly: true },
29
- reports: await archil.getDisk(process.env.REPORTS_DISK_ID!),
30
- });
31
-
27
+
32
28
  export const agent = new Agent({
33
- id: "agent",
34
- name: "Agent",
35
- instructions: "Analyze source/sales/**/*.csv, find regional revenue trends, and write a concise report to reports/q2-revenue.md.",
29
+ id: "analyst",
30
+ name: "Analyst",
31
+ instructions: "Summarize the CSV files under sales/ and write the summary to reports/sales.md.",
36
32
  model: "anthropic/claude-sonnet-5",
37
33
  tools: createDiskTools(disk),
38
34
  });
39
35
  ```
36
+
37
+ Pass a workspace from `archil.workspace({ ... })` instead of a disk to give the agent
38
+ several disks at once.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archildata/mastra",
3
- "version": "0.0.29",
3
+ "version": "0.0.30-next.20261201221409",
4
4
  "description": "Archil filesystem adapter for Mastra",
5
5
  "keywords": [
6
6
  "archil",
@@ -31,7 +31,7 @@
31
31
  ],
32
32
  "peerDependencies": {
33
33
  "@mastra/core": ">=1.0.0",
34
- "disk": "1.16.0"
34
+ "disk": "1.16.1-next.20261201221409"
35
35
  },
36
36
  "dependencies": {
37
37
  "zod": "^4.4.3"
@@ -40,7 +40,7 @@
40
40
  "@archildata/mock": "0.0.0",
41
41
  "@mastra/core": "^1.49.0",
42
42
  "@types/node": "^20.19.33",
43
- "disk": "1.16.0",
43
+ "disk": "1.16.1-next.20261201221409",
44
44
  "tsdown": "^0.22.3",
45
45
  "typescript": "^6.0.3",
46
46
  "vitest": "^4.1.9"