@mastra/dane 0.0.2-alpha.101 → 0.0.2-alpha.102
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":"index.d.ts","sourceRoot":"","sources":["../../src/mastra/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mastra/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAuB,MAAM,cAAc,CAAC;AAa3D,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wIA8BjB,CAAC"}
|
package/dist/mastra/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Mastra } from '@mastra/core';
|
|
2
|
-
import { PostgresEngine } from '@mastra/engine';
|
|
1
|
+
import { Mastra, MastraStorageLibSql } from '@mastra/core';
|
|
3
2
|
import { UpstashKVMemory } from '@mastra/memory/kv-upstash';
|
|
4
3
|
import { dane, daneChangeLog, daneCommitMessage, daneIssueLabeler, daneLinkChecker } from './agents/index.js';
|
|
5
4
|
import { daneNewContributor } from './agents/new-contributor.js';
|
|
@@ -10,9 +9,6 @@ import { messageWorkflow, githubIssueLabeler, commitMessageGenerator } from './w
|
|
|
10
9
|
import { linkCheckerWorkflow } from './workflows/link-checker.js';
|
|
11
10
|
import { packagePublisher } from './workflows/publish-packages.js';
|
|
12
11
|
import { telephoneGameWorkflow } from './workflows/telephone-game.js';
|
|
13
|
-
const engine = new PostgresEngine({
|
|
14
|
-
url: 'postgres://postgres:postgres@localhost:5433/mastra',
|
|
15
|
-
});
|
|
16
12
|
export const mastra = new Mastra({
|
|
17
13
|
agents: {
|
|
18
14
|
dane,
|
|
@@ -23,7 +19,11 @@ export const mastra = new Mastra({
|
|
|
23
19
|
daneChangeLog,
|
|
24
20
|
daneNewContributor,
|
|
25
21
|
},
|
|
26
|
-
|
|
22
|
+
storage: new MastraStorageLibSql({
|
|
23
|
+
config: {
|
|
24
|
+
url: 'file:memory:',
|
|
25
|
+
},
|
|
26
|
+
}),
|
|
27
27
|
memory: new UpstashKVMemory({
|
|
28
28
|
url: 'http://localhost:8079',
|
|
29
29
|
token: `example_token`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publish-packages.d.ts","sourceRoot":"","sources":["../../../src/mastra/workflows/publish-packages.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"publish-packages.d.ts","sourceRoot":"","sources":["../../../src/mastra/workflows/publish-packages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,QAAQ,EAAE,MAAM,cAAc,CAAC;AAS9C,eAAO,MAAM,gBAAgB,oBAE3B,CAAC"}
|
|
@@ -3,7 +3,8 @@ import chalk from 'chalk';
|
|
|
3
3
|
import { existsSync } from 'fs';
|
|
4
4
|
import path from 'path';
|
|
5
5
|
import { z } from 'zod';
|
|
6
|
-
import {
|
|
6
|
+
import { PACKAGES_LIST_PROMPT, PUBLISH_PACKAGES_PROMPT } from '../agents/package-publisher.js';
|
|
7
|
+
import { pnpmBuild } from '../tools/pnpm.js';
|
|
7
8
|
export const packagePublisher = new Workflow({
|
|
8
9
|
name: 'pnpm-changset-publisher',
|
|
9
10
|
});
|
|
@@ -176,11 +177,6 @@ const assemblePackages = new Step({
|
|
|
176
177
|
};
|
|
177
178
|
},
|
|
178
179
|
});
|
|
179
|
-
async function buildSet(agent, list) {
|
|
180
|
-
let res = await agent.generate(BUILD_PACKAGES_PROMPT(list));
|
|
181
|
-
console.log(chalk.green(res.text));
|
|
182
|
-
return res.text;
|
|
183
|
-
}
|
|
184
180
|
const buildPackages = new Step({
|
|
185
181
|
id: 'buildPackages',
|
|
186
182
|
outputSchema,
|
|
@@ -193,29 +189,47 @@ const buildPackages = new Step({
|
|
|
193
189
|
const integrationSet = context.machineContext.stepResults.assemblePackages.payload.integrations;
|
|
194
190
|
const vectorStoreSet = context.machineContext.stepResults.assemblePackages.payload.vector_stores;
|
|
195
191
|
const speechSet = context.machineContext.stepResults.assemblePackages.payload.speech;
|
|
192
|
+
console.log({
|
|
193
|
+
pkgSet,
|
|
194
|
+
deploySet,
|
|
195
|
+
integrationSet,
|
|
196
|
+
vectorStoreSet,
|
|
197
|
+
speechSet,
|
|
198
|
+
});
|
|
196
199
|
const agent = mastra?.agents?.['danePackagePublisher'];
|
|
197
200
|
if (!agent) {
|
|
198
201
|
throw new Error('Agent not found');
|
|
199
202
|
}
|
|
203
|
+
async function buildSet(list) {
|
|
204
|
+
for (const pkg of list) {
|
|
205
|
+
await pnpmBuild.execute({
|
|
206
|
+
context: {
|
|
207
|
+
name: pkg,
|
|
208
|
+
packagePath: pkg,
|
|
209
|
+
},
|
|
210
|
+
suspend: async () => { },
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
}
|
|
200
214
|
let built = false;
|
|
201
215
|
if (pkgSet.length > 0) {
|
|
202
216
|
built = true;
|
|
203
|
-
await buildSet(
|
|
217
|
+
await buildSet(pkgSet);
|
|
204
218
|
}
|
|
205
219
|
if (deploySet.length > 0) {
|
|
206
|
-
await buildSet(
|
|
220
|
+
await buildSet(deploySet);
|
|
207
221
|
built = true;
|
|
208
222
|
}
|
|
209
223
|
if (integrationSet.length > 0) {
|
|
210
|
-
await buildSet(
|
|
224
|
+
await buildSet(integrationSet);
|
|
211
225
|
built = true;
|
|
212
226
|
}
|
|
213
227
|
if (vectorStoreSet.length > 0) {
|
|
214
|
-
await buildSet(
|
|
228
|
+
await buildSet(vectorStoreSet);
|
|
215
229
|
built = true;
|
|
216
230
|
}
|
|
217
231
|
if (speechSet.length > 0) {
|
|
218
|
-
await buildSet(
|
|
232
|
+
await buildSet(speechSet);
|
|
219
233
|
built = true;
|
|
220
234
|
}
|
|
221
235
|
if (!built) {
|
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.102",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -39,13 +39,13 @@
|
|
|
39
39
|
"sqlite3": "^5.1.7",
|
|
40
40
|
"typescript": "^5.7.3",
|
|
41
41
|
"zod": "^3.24.0",
|
|
42
|
-
"@mastra/
|
|
42
|
+
"@mastra/core": "0.1.27-alpha.81",
|
|
43
|
+
"@mastra/memory": "0.0.2-alpha.63",
|
|
43
44
|
"@mastra/github": "1.0.3-alpha.65",
|
|
44
|
-
"@mastra/mcp": "0.0.1-alpha.23",
|
|
45
45
|
"@mastra/rag": "0.0.2-alpha.72",
|
|
46
|
-
"@mastra/
|
|
47
|
-
"@mastra/
|
|
48
|
-
"@mastra/
|
|
46
|
+
"@mastra/firecrawl": "1.0.4-alpha.74",
|
|
47
|
+
"@mastra/mcp": "0.0.1-alpha.23",
|
|
48
|
+
"@mastra/stabilityai": "1.0.1-alpha.56"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"build": "npx tsc",
|