@mastra/dane 0.0.2-alpha.115 → 0.0.2-alpha.116
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;
|
|
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;AA0D3C,eAAO,MAAM,oBAAoB,iwBAa5B,CAAC;AAEN,eAAO,MAAM,qBAAqB,aAAc,MAAM,EAAE,WA8DvD,CAAC;AAEF,eAAO,MAAM,uBAAuB,u2BAwBnC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDA+B/B,CAAC"}
|
|
@@ -31,11 +31,16 @@ const packages_llm_text = `
|
|
|
31
31
|
- Format: @mastra/store-{name} -> storage/{name}
|
|
32
32
|
- Example: @mastra/store-pg -> storage/pg
|
|
33
33
|
|
|
34
|
-
## 5.
|
|
34
|
+
## 5. Store packages (combined vector + storage packages) - STRICT RULES:
|
|
35
|
+
- ALL store packages must be directly under stores/
|
|
36
|
+
- Format: @mastra/{name} -> stores/{name}
|
|
37
|
+
- Example: @mastra/pg -> stores/pg
|
|
38
|
+
|
|
39
|
+
## 6. Speech packages - STRICT RULES:
|
|
35
40
|
- ALL speech packages must be directly under speech/
|
|
36
41
|
- Format: @mastra/speech-{name} -> speech/{name}
|
|
37
42
|
|
|
38
|
-
##
|
|
43
|
+
## 7. Integrations - STRICT RULES:
|
|
39
44
|
- ALL integration packages are under integrations/
|
|
40
45
|
@mastra/composio -> integrations/composio
|
|
41
46
|
@mastra/github -> integrations/github
|
|
@@ -104,6 +109,11 @@ export const BUILD_PACKAGES_PROMPT = (packages) => `
|
|
|
104
109
|
<description>Build storage/ directory packages</description>
|
|
105
110
|
<action>Use pnpmBuild for each @mastra/store-* package</action>
|
|
106
111
|
</parallel_phase>
|
|
112
|
+
|
|
113
|
+
<parallel_phase name="stores">
|
|
114
|
+
<description>Build stores/ directory packages</description>
|
|
115
|
+
<action>Use pnpmBuild for each @mastra/* package in stores/</action>
|
|
116
|
+
</parallel_phase>
|
|
107
117
|
</phase>
|
|
108
118
|
</execution_plan>
|
|
109
119
|
|
package/dist/mastra/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Mastra, MastraStorageLibSql } from '@mastra/core';
|
|
2
2
|
import { Memory } from '@mastra/memory';
|
|
3
|
-
import { UpstashStore } from '@mastra/
|
|
3
|
+
import { UpstashStore } from '@mastra/upstash';
|
|
4
4
|
import { dane, daneChangeLog, daneCommitMessage, daneIssueLabeler, daneLinkChecker } from './agents/index.js';
|
|
5
5
|
import { daneNewContributor } from './agents/new-contributor.js';
|
|
6
6
|
import { danePackagePublisher } from './agents/package-publisher.js';
|
|
@@ -12,17 +12,23 @@ const outputSchema = z.object({
|
|
|
12
12
|
packages: z.array(z.string()),
|
|
13
13
|
integrations: z.array(z.string()),
|
|
14
14
|
deployers: z.array(z.string()),
|
|
15
|
+
speech: z.array(z.string()),
|
|
16
|
+
// deprecated
|
|
15
17
|
vector_stores: z.array(z.string()),
|
|
16
18
|
stores: z.array(z.string()),
|
|
17
|
-
|
|
19
|
+
// combined deprecated stores
|
|
20
|
+
combined_stores: z.array(z.string()),
|
|
18
21
|
});
|
|
19
22
|
const defaultSet = {
|
|
20
23
|
packages: [],
|
|
21
24
|
deployers: [],
|
|
22
25
|
integrations: [],
|
|
26
|
+
speech: [],
|
|
27
|
+
// deprecated
|
|
23
28
|
vector_stores: [],
|
|
24
29
|
stores: [],
|
|
25
|
-
|
|
30
|
+
// combined vector + storage
|
|
31
|
+
combined_stores: [],
|
|
26
32
|
};
|
|
27
33
|
const getPacakgesToPublish = new Step({
|
|
28
34
|
id: 'getPacakgesToPublish',
|
|
@@ -45,7 +51,7 @@ const getPacakgesToPublish = new Step({
|
|
|
45
51
|
- Group parallel builds by directory type
|
|
46
52
|
|
|
47
53
|
2. Output Format:
|
|
48
|
-
- Group into: packages[], integrations[], deployers[], vector_stores[], stores[]
|
|
54
|
+
- Group into: packages[], integrations[], deployers[], vector_stores[], stores[], combined_stores[]
|
|
49
55
|
- Place create-mastra in packages[] array
|
|
50
56
|
- Maintain correct order within each group
|
|
51
57
|
|
|
@@ -60,6 +66,7 @@ const getPacakgesToPublish = new Step({
|
|
|
60
66
|
deployers: z.array(z.string()),
|
|
61
67
|
vector_stores: z.array(z.string()),
|
|
62
68
|
stores: z.array(z.string()),
|
|
69
|
+
combined_stores: z.array(z.string()),
|
|
63
70
|
speech: z.array(z.string()),
|
|
64
71
|
}),
|
|
65
72
|
});
|
|
@@ -69,6 +76,7 @@ const getPacakgesToPublish = new Step({
|
|
|
69
76
|
deployers: resultObj?.object?.deployers,
|
|
70
77
|
vector_stores: resultObj?.object?.vector_stores,
|
|
71
78
|
stores: resultObj?.object?.stores,
|
|
79
|
+
combined_stores: resultObj?.object?.stores,
|
|
72
80
|
speech: resultObj?.object?.speech,
|
|
73
81
|
};
|
|
74
82
|
},
|
|
@@ -84,6 +92,7 @@ const assemblePackages = new Step({
|
|
|
84
92
|
deployers: [],
|
|
85
93
|
vector_stores: [],
|
|
86
94
|
stores: [],
|
|
95
|
+
combined_stores: [],
|
|
87
96
|
speech: [],
|
|
88
97
|
};
|
|
89
98
|
}
|
|
@@ -93,6 +102,7 @@ const assemblePackages = new Step({
|
|
|
93
102
|
const integrationsToBuild = new Set();
|
|
94
103
|
const vector_storesToBuild = new Set();
|
|
95
104
|
const storesToBuild = new Set();
|
|
105
|
+
const combined_storesToBuild = new Set();
|
|
96
106
|
const speechToBuild = new Set();
|
|
97
107
|
if (payload?.packages) {
|
|
98
108
|
payload.packages.forEach((pkg) => {
|
|
@@ -128,6 +138,13 @@ const assemblePackages = new Step({
|
|
|
128
138
|
storesToBuild.add(pkgPath);
|
|
129
139
|
});
|
|
130
140
|
}
|
|
141
|
+
if (payload?.combined_stores) {
|
|
142
|
+
payload.combined_stores.forEach((pkg) => {
|
|
143
|
+
let pkgName = pkg.replace('@mastra/', '');
|
|
144
|
+
const pkgPath = path.join(process.cwd(), 'stores', pkgName);
|
|
145
|
+
combined_storesToBuild.add(pkgPath);
|
|
146
|
+
});
|
|
147
|
+
}
|
|
131
148
|
if (payload?.integrations) {
|
|
132
149
|
const integrations = payload.integrations;
|
|
133
150
|
integrations.forEach((integration) => {
|
|
@@ -149,12 +166,14 @@ const assemblePackages = new Step({
|
|
|
149
166
|
const integrationSet = Array.from(integrationsToBuild.keys());
|
|
150
167
|
const vectorStoreSet = Array.from(vector_storesToBuild.keys());
|
|
151
168
|
const storeSet = Array.from(storesToBuild.keys());
|
|
169
|
+
const combinedStoreSet = Array.from(combined_storesToBuild.keys());
|
|
152
170
|
const speechSet = Array.from(speechToBuild.keys());
|
|
153
171
|
if (!packagesToBuild.size &&
|
|
154
172
|
!deployersToBuild.size &&
|
|
155
173
|
!integrationsToBuild.size &&
|
|
156
174
|
!vector_storesToBuild.size &&
|
|
157
|
-
!storesToBuild.size
|
|
175
|
+
!storesToBuild.size &&
|
|
176
|
+
!combined_storesToBuild.size) {
|
|
158
177
|
console.error(chalk.red('No packages to build.'));
|
|
159
178
|
return defaultSet;
|
|
160
179
|
}
|
|
@@ -186,6 +205,12 @@ const assemblePackages = new Step({
|
|
|
186
205
|
console.log(chalk.green(pkg));
|
|
187
206
|
});
|
|
188
207
|
}
|
|
208
|
+
if (combinedStoreSet.length > 0) {
|
|
209
|
+
console.log(chalk.green(`\nBuilding store packages:\n`));
|
|
210
|
+
combinedStoreSet.forEach((pkg) => {
|
|
211
|
+
console.log(chalk.green(pkg));
|
|
212
|
+
});
|
|
213
|
+
}
|
|
189
214
|
if (speechSet.length > 0) {
|
|
190
215
|
console.log(chalk.green(`\nBuilding speech:\n`));
|
|
191
216
|
speechSet.forEach((pkg) => {
|
|
@@ -198,6 +223,7 @@ const assemblePackages = new Step({
|
|
|
198
223
|
integrations: integrationSet,
|
|
199
224
|
vector_stores: vectorStoreSet,
|
|
200
225
|
stores: storeSet,
|
|
226
|
+
combined_stores: combinedStoreSet,
|
|
201
227
|
speech: speechSet,
|
|
202
228
|
};
|
|
203
229
|
},
|
|
@@ -214,6 +240,7 @@ const buildPackages = new Step({
|
|
|
214
240
|
const integrationSet = context.machineContext.stepResults.assemblePackages.payload.integrations;
|
|
215
241
|
const vectorStoreSet = context.machineContext.stepResults.assemblePackages.payload.vector_stores;
|
|
216
242
|
const storeSet = context.machineContext.stepResults.assemblePackages.payload.stores;
|
|
243
|
+
const combinedStoreSet = context.machineContext.stepResults.assemblePackages.payload.combined_stores;
|
|
217
244
|
const speechSet = context.machineContext.stepResults.assemblePackages.payload.speech;
|
|
218
245
|
console.log({
|
|
219
246
|
pkgSet,
|
|
@@ -221,6 +248,7 @@ const buildPackages = new Step({
|
|
|
221
248
|
integrationSet,
|
|
222
249
|
vectorStoreSet,
|
|
223
250
|
storeSet,
|
|
251
|
+
combinedStoreSet,
|
|
224
252
|
speechSet,
|
|
225
253
|
});
|
|
226
254
|
const agent = mastra?.agents?.['danePackagePublisher'];
|
|
@@ -269,6 +297,7 @@ const buildPackages = new Step({
|
|
|
269
297
|
integrations: integrationSet,
|
|
270
298
|
vector_stores: vectorStoreSet,
|
|
271
299
|
stores: storeSet,
|
|
300
|
+
combined_stores: combinedStoreSet,
|
|
272
301
|
speech: speechSet,
|
|
273
302
|
};
|
|
274
303
|
},
|
|
@@ -289,8 +318,17 @@ const verifyBuild = new Step({
|
|
|
289
318
|
const integrationSet = context.machineContext.stepResults.buildPackages.payload.integrations;
|
|
290
319
|
const vectorStoreSet = context.machineContext.stepResults.buildPackages.payload.vector_stores;
|
|
291
320
|
const storeSet = context.machineContext.stepResults.buildPackages.payload.stores;
|
|
321
|
+
const combinedStoreSet = context.machineContext.stepResults.buildPackages.payload.combined_stores;
|
|
292
322
|
const speechSet = context.machineContext.stepResults.buildPackages.payload.speech;
|
|
293
|
-
const allPackages = [
|
|
323
|
+
const allPackages = [
|
|
324
|
+
...pkgSet,
|
|
325
|
+
...deploySet,
|
|
326
|
+
...integrationSet,
|
|
327
|
+
...vectorStoreSet,
|
|
328
|
+
...storeSet,
|
|
329
|
+
...combinedStoreSet,
|
|
330
|
+
...speechSet,
|
|
331
|
+
];
|
|
294
332
|
function checkMissingPackages(pkgSet) {
|
|
295
333
|
const missingPackages = [];
|
|
296
334
|
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.
|
|
3
|
+
"version": "0.0.2-alpha.116",
|
|
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.
|
|
23
|
+
"mastra": "0.2.0-alpha.149"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@inquirer/prompts": "^7.2.1",
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
"sqlite3": "^5.1.7",
|
|
42
42
|
"typescript": "^5.7.3",
|
|
43
43
|
"zod": "^3.24.0",
|
|
44
|
-
"@mastra/core": "0.2.0-alpha.
|
|
45
|
-
"@mastra/
|
|
46
|
-
"@mastra/
|
|
47
|
-
"@mastra/
|
|
48
|
-
"@mastra/
|
|
49
|
-
"@mastra/
|
|
50
|
-
"@mastra/
|
|
44
|
+
"@mastra/core": "0.2.0-alpha.92",
|
|
45
|
+
"@mastra/github": "1.0.3-alpha.77",
|
|
46
|
+
"@mastra/mcp": "0.1.0-alpha.34",
|
|
47
|
+
"@mastra/memory": "0.1.0-alpha.74",
|
|
48
|
+
"@mastra/rag": "0.1.0-alpha.85",
|
|
49
|
+
"@mastra/stabilityai": "1.0.1-alpha.67",
|
|
50
|
+
"@mastra/upstash": "0.1.0-alpha.1"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
53
|
"build": "npx tsc",
|