@mastra/dane 0.0.2-alpha.83 → 0.0.2-alpha.85
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,cAAc,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,cAAc,CAAC;AAsCrC,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"}
|
|
@@ -14,6 +14,7 @@ const packages_llm_text = `
|
|
|
14
14
|
@mastra/tts -> packages/tts
|
|
15
15
|
@mastra/memory -> packages/memory
|
|
16
16
|
@mastra/mcp -> packages/mcp
|
|
17
|
+
@mastra/loggers -> packages/loggers
|
|
17
18
|
|
|
18
19
|
## 2. Deployer packages - STRICT RULES:
|
|
19
20
|
@mastra/deployer-cloudflare -> deployers/cloudflare
|
|
@@ -148,7 +148,7 @@ const verifyBuild = new Step({
|
|
|
148
148
|
outputSchema: z.object({
|
|
149
149
|
packages: z.array(z.string()),
|
|
150
150
|
}),
|
|
151
|
-
execute: async ({ context }) => {
|
|
151
|
+
execute: async ({ mastra, context }) => {
|
|
152
152
|
if (context.machineContext?.stepResults.buildPackages?.status !== 'success') {
|
|
153
153
|
return {
|
|
154
154
|
packages: [],
|
|
@@ -156,11 +156,29 @@ const verifyBuild = new Step({
|
|
|
156
156
|
}
|
|
157
157
|
console.log('Verifying the output for:', context.machineContext.stepResults.buildPackages.payload.packages);
|
|
158
158
|
const pkgSet = context.machineContext.stepResults.buildPackages.payload.packages;
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
159
|
+
function checkMissingPackages(pkgSet) {
|
|
160
|
+
const missingPackages = [];
|
|
161
|
+
for (const pkg of pkgSet) {
|
|
162
|
+
if (!existsSync(`${pkg}/dist`)) {
|
|
163
|
+
console.error(chalk.red(`We did not find the dist folder for ${pkg}.`));
|
|
164
|
+
missingPackages.push(pkg);
|
|
165
|
+
}
|
|
163
166
|
}
|
|
167
|
+
return missingPackages;
|
|
168
|
+
}
|
|
169
|
+
let missingPackages = checkMissingPackages(pkgSet);
|
|
170
|
+
if (missingPackages.length > 0) {
|
|
171
|
+
const agent = mastra?.agents?.['danePackagePublisher'];
|
|
172
|
+
if (!agent) {
|
|
173
|
+
throw new Error('Agent not found');
|
|
174
|
+
}
|
|
175
|
+
let res = await agent.generate(`These packages were not built but need to be: ${missingPackages.join(', ')}.`);
|
|
176
|
+
console.log(chalk.green(res.text));
|
|
177
|
+
}
|
|
178
|
+
missingPackages = checkMissingPackages(pkgSet);
|
|
179
|
+
if (missingPackages.length > 0) {
|
|
180
|
+
console.error(chalk.red(`Missing packages: ${missingPackages.join(', ')}`));
|
|
181
|
+
throw new Error('Failed to build one or more packages');
|
|
164
182
|
}
|
|
165
183
|
return {
|
|
166
184
|
packages: 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.85",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"sqlite3": "^5.1.7",
|
|
40
40
|
"typescript": "^5.5.4",
|
|
41
41
|
"zod": "^3.24.0",
|
|
42
|
-
"@mastra/firecrawl": "1.0.4-alpha.
|
|
43
|
-
"@mastra/
|
|
44
|
-
"@mastra/
|
|
45
|
-
"@mastra/
|
|
46
|
-
"@mastra/
|
|
47
|
-
"@mastra/rag": "0.0.2-alpha.
|
|
48
|
-
"@mastra/stabilityai": "1.0.1-alpha.
|
|
49
|
-
"@mastra/mcp": "0.0.1-alpha.
|
|
42
|
+
"@mastra/firecrawl": "1.0.4-alpha.62",
|
|
43
|
+
"@mastra/engine": "0.0.5-alpha.66",
|
|
44
|
+
"@mastra/core": "0.1.27-alpha.71",
|
|
45
|
+
"@mastra/memory": "0.0.2-alpha.52",
|
|
46
|
+
"@mastra/github": "1.0.3-alpha.55",
|
|
47
|
+
"@mastra/rag": "0.0.2-alpha.60",
|
|
48
|
+
"@mastra/stabilityai": "1.0.1-alpha.46",
|
|
49
|
+
"@mastra/mcp": "0.0.1-alpha.13"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"build": "npx tsc",
|