@mastra/dane 0.0.2-alpha.111 → 0.0.2-alpha.114

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.
@@ -1 +1 @@
1
- {"version":3,"file":"package-publisher.d.ts","sourceRoot":"","sources":["../../../src/mastra/agents/package-publisher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAgD3C,eAAO,MAAM,oBAAoB,iwBAa5B,CAAC;AAEN,eAAO,MAAM,qBAAqB,aAAc,MAAM,EAAE,WAoDvD,CAAC;AAEF,eAAO,MAAM,uBAAuB,u2BAwBnC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDA+B/B,CAAC"}
1
+ {"version":3,"file":"package-publisher.d.ts","sourceRoot":"","sources":["../../../src/mastra/agents/package-publisher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAqD3C,eAAO,MAAM,oBAAoB,iwBAa5B,CAAC;AAEN,eAAO,MAAM,qBAAqB,aAAc,MAAM,EAAE,WAyDvD,CAAC;AAEF,eAAO,MAAM,uBAAuB,u2BAwBnC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDA+B/B,CAAC"}
@@ -26,11 +26,16 @@ const packages_llm_text = `
26
26
  - Format: @mastra/vector-{name} -> vector-stores/{name}
27
27
  - Special case: @mastra/vector-astra -> vector-stores/astra
28
28
 
29
- ## 4. Speech packages - STRICT RULES:
29
+ ## 4. Storage packages - STRICT RULES:
30
+ - ALL storage packages must be directly under storage/
31
+ - Format: @mastra/store-{name} -> storage/{name}
32
+ - Example: @mastra/store-pg -> storage/pg
33
+
34
+ ## 5. Speech packages - STRICT RULES:
30
35
  - ALL speech packages must be directly under speech/
31
36
  - Format: @mastra/speech-{name} -> speech/{name}
32
37
 
33
- ## 5. Integrations - STRICT RULES:
38
+ ## 6. Integrations - STRICT RULES:
34
39
  - ALL integration packages are under integrations/
35
40
  @mastra/composio -> integrations/composio
36
41
  @mastra/github -> integrations/github
@@ -94,6 +99,11 @@ export const BUILD_PACKAGES_PROMPT = (packages) => `
94
99
  <description>Build vector-stores/ directory packages</description>
95
100
  <action>Use pnpmBuild for each @mastra/vector-* package</action>
96
101
  </parallel_phase>
102
+
103
+ <parallel_phase name="storage">
104
+ <description>Build storage/ directory packages</description>
105
+ <action>Use pnpmBuild for each @mastra/store-* package</action>
106
+ </parallel_phase>
97
107
  </phase>
98
108
  </execution_plan>
99
109
 
@@ -13,6 +13,7 @@ const outputSchema = z.object({
13
13
  integrations: z.array(z.string()),
14
14
  deployers: z.array(z.string()),
15
15
  vector_stores: z.array(z.string()),
16
+ stores: z.array(z.string()),
16
17
  speech: z.array(z.string()),
17
18
  });
18
19
  const defaultSet = {
@@ -20,6 +21,7 @@ const defaultSet = {
20
21
  deployers: [],
21
22
  integrations: [],
22
23
  vector_stores: [],
24
+ stores: [],
23
25
  speech: [],
24
26
  };
25
27
  const getPacakgesToPublish = new Step({
@@ -43,7 +45,7 @@ const getPacakgesToPublish = new Step({
43
45
  - Group parallel builds by directory type
44
46
 
45
47
  2. Output Format:
46
- - Group into: packages[], integrations[], deployers[], vector_stores[]
48
+ - Group into: packages[], integrations[], deployers[], vector_stores[], stores[]
47
49
  - Place create-mastra in packages[] array
48
50
  - Maintain correct order within each group
49
51
 
@@ -57,6 +59,7 @@ const getPacakgesToPublish = new Step({
57
59
  integrations: z.array(z.string()),
58
60
  deployers: z.array(z.string()),
59
61
  vector_stores: z.array(z.string()),
62
+ stores: z.array(z.string()),
60
63
  speech: z.array(z.string()),
61
64
  }),
62
65
  });
@@ -65,6 +68,7 @@ const getPacakgesToPublish = new Step({
65
68
  integrations: resultObj?.object?.integrations,
66
69
  deployers: resultObj?.object?.deployers,
67
70
  vector_stores: resultObj?.object?.vector_stores,
71
+ stores: resultObj?.object?.stores,
68
72
  speech: resultObj?.object?.speech,
69
73
  };
70
74
  },
@@ -79,6 +83,7 @@ const assemblePackages = new Step({
79
83
  integrations: [],
80
84
  deployers: [],
81
85
  vector_stores: [],
86
+ stores: [],
82
87
  speech: [],
83
88
  };
84
89
  }
@@ -87,6 +92,7 @@ const assemblePackages = new Step({
87
92
  const deployersToBuild = new Set();
88
93
  const integrationsToBuild = new Set();
89
94
  const vector_storesToBuild = new Set();
95
+ const storesToBuild = new Set();
90
96
  const speechToBuild = new Set();
91
97
  if (payload?.packages) {
92
98
  payload.packages.forEach((pkg) => {
@@ -115,6 +121,13 @@ const assemblePackages = new Step({
115
121
  vector_storesToBuild.add(pkgPath);
116
122
  });
117
123
  }
124
+ if (payload?.stores) {
125
+ payload.stores.forEach((pkg) => {
126
+ let pkgName = pkg.replace('@mastra/store-', '');
127
+ const pkgPath = path.join(process.cwd(), 'storage', pkgName);
128
+ storesToBuild.add(pkgPath);
129
+ });
130
+ }
118
131
  if (payload?.integrations) {
119
132
  const integrations = payload.integrations;
120
133
  integrations.forEach((integration) => {
@@ -135,8 +148,13 @@ const assemblePackages = new Step({
135
148
  const deploySet = Array.from(deployersToBuild.keys());
136
149
  const integrationSet = Array.from(integrationsToBuild.keys());
137
150
  const vectorStoreSet = Array.from(vector_storesToBuild.keys());
151
+ const storeSet = Array.from(storesToBuild.keys());
138
152
  const speechSet = Array.from(speechToBuild.keys());
139
- if (!packagesToBuild.size && !deployersToBuild.size && !integrationsToBuild.size && !vector_storesToBuild.size) {
153
+ if (!packagesToBuild.size &&
154
+ !deployersToBuild.size &&
155
+ !integrationsToBuild.size &&
156
+ !vector_storesToBuild.size &&
157
+ !storesToBuild.size) {
140
158
  console.error(chalk.red('No packages to build.'));
141
159
  return defaultSet;
142
160
  }
@@ -162,6 +180,12 @@ const assemblePackages = new Step({
162
180
  console.log(chalk.green(pkg));
163
181
  });
164
182
  }
183
+ if (storeSet.length > 0) {
184
+ console.log(chalk.green(`\nBuilding storage packages:\n`));
185
+ storeSet.forEach((pkg) => {
186
+ console.log(chalk.green(pkg));
187
+ });
188
+ }
165
189
  if (speechSet.length > 0) {
166
190
  console.log(chalk.green(`\nBuilding speech:\n`));
167
191
  speechSet.forEach((pkg) => {
@@ -173,6 +197,7 @@ const assemblePackages = new Step({
173
197
  deployers: deploySet,
174
198
  integrations: integrationSet,
175
199
  vector_stores: vectorStoreSet,
200
+ stores: storeSet,
176
201
  speech: speechSet,
177
202
  };
178
203
  },
@@ -188,12 +213,14 @@ const buildPackages = new Step({
188
213
  const deploySet = context.machineContext.stepResults.assemblePackages.payload.deployers;
189
214
  const integrationSet = context.machineContext.stepResults.assemblePackages.payload.integrations;
190
215
  const vectorStoreSet = context.machineContext.stepResults.assemblePackages.payload.vector_stores;
216
+ const storeSet = context.machineContext.stepResults.assemblePackages.payload.stores;
191
217
  const speechSet = context.machineContext.stepResults.assemblePackages.payload.speech;
192
218
  console.log({
193
219
  pkgSet,
194
220
  deploySet,
195
221
  integrationSet,
196
222
  vectorStoreSet,
223
+ storeSet,
197
224
  speechSet,
198
225
  });
199
226
  const agent = mastra?.agents?.['danePackagePublisher'];
@@ -241,6 +268,7 @@ const buildPackages = new Step({
241
268
  deployers: deploySet,
242
269
  integrations: integrationSet,
243
270
  vector_stores: vectorStoreSet,
271
+ stores: storeSet,
244
272
  speech: speechSet,
245
273
  };
246
274
  },
@@ -260,8 +288,9 @@ const verifyBuild = new Step({
260
288
  const deploySet = context.machineContext.stepResults.buildPackages.payload.deployers;
261
289
  const integrationSet = context.machineContext.stepResults.buildPackages.payload.integrations;
262
290
  const vectorStoreSet = context.machineContext.stepResults.buildPackages.payload.vector_stores;
291
+ const storeSet = context.machineContext.stepResults.buildPackages.payload.stores;
263
292
  const speechSet = context.machineContext.stepResults.buildPackages.payload.speech;
264
- const allPackages = [...pkgSet, ...deploySet, ...integrationSet, ...vectorStoreSet, ...speechSet];
293
+ const allPackages = [...pkgSet, ...deploySet, ...integrationSet, ...vectorStoreSet, ...storeSet, ...speechSet];
265
294
  function checkMissingPackages(pkgSet) {
266
295
  const missingPackages = [];
267
296
  for (const pkg of pkgSet) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/dane",
3
- "version": "0.0.2-alpha.111",
3
+ "version": "0.0.2-alpha.114",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "files": [
@@ -20,7 +20,7 @@
20
20
  "@types/node": "^22.10.2",
21
21
  "@types/pdf-parse": "^1.1.4",
22
22
  "tsx": "^4.19.2",
23
- "mastra": "0.2.0-alpha.140"
23
+ "mastra": "0.2.0-alpha.142"
24
24
  },
25
25
  "dependencies": {
26
26
  "@inquirer/prompts": "^7.2.1",
@@ -41,14 +41,14 @@
41
41
  "sqlite3": "^5.1.7",
42
42
  "typescript": "^5.7.3",
43
43
  "zod": "^3.24.0",
44
- "@mastra/memory": "0.1.0-alpha.69",
45
- "@mastra/store-upstash": "0.0.0-alpha.5",
46
- "@mastra/github": "1.0.3-alpha.72",
47
- "@mastra/stabilityai": "1.0.1-alpha.62",
48
- "@mastra/core": "0.2.0-alpha.87",
49
- "@mastra/firecrawl": "1.1.0-alpha.81",
50
- "@mastra/rag": "0.1.0-alpha.79",
51
- "@mastra/mcp": "0.1.0-alpha.29"
44
+ "@mastra/core": "0.2.0-alpha.89",
45
+ "@mastra/firecrawl": "1.1.0-alpha.83",
46
+ "@mastra/github": "1.0.3-alpha.74",
47
+ "@mastra/memory": "0.1.0-alpha.71",
48
+ "@mastra/stabilityai": "1.0.1-alpha.64",
49
+ "@mastra/mcp": "0.1.0-alpha.31",
50
+ "@mastra/rag": "0.1.0-alpha.81",
51
+ "@mastra/store-upstash": "0.0.0-alpha.7"
52
52
  },
53
53
  "scripts": {
54
54
  "build": "npx tsc",