@mastra/dane 0.0.2-alpha.9 → 0.0.2-alpha.93
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.
- package/LICENSE +44 -0
- package/README.md +25 -4
- package/data/crawl/conventional-commit.json +25 -0
- package/dist/commands/changelog.d.ts +2 -0
- package/dist/commands/changelog.d.ts.map +1 -0
- package/dist/commands/changelog.js +15 -0
- package/dist/commands/commit-message.d.ts +2 -0
- package/dist/commands/commit-message.d.ts.map +1 -0
- package/dist/commands/commit-message.js +32 -0
- package/dist/commands/config.d.ts +3 -0
- package/dist/commands/config.d.ts.map +1 -0
- package/dist/commands/config.js +40 -0
- package/dist/commands/issue-labeler.d.ts.map +1 -1
- package/dist/commands/issue-labeler.js +19 -2
- package/dist/commands/link-checker.d.ts +4 -0
- package/dist/commands/link-checker.d.ts.map +1 -0
- package/dist/commands/link-checker.js +16 -0
- package/dist/commands/message.d.ts.map +1 -1
- package/dist/commands/message.js +3 -1
- package/dist/commands/new-contributor-message.d.ts +2 -0
- package/dist/commands/new-contributor-message.d.ts.map +1 -0
- package/dist/commands/new-contributor-message.js +43 -0
- package/dist/commands/publish-packages.d.ts +2 -0
- package/dist/commands/publish-packages.d.ts.map +1 -0
- package/dist/commands/publish-packages.js +11 -0
- package/dist/commands/telephone-game.d.ts +2 -0
- package/dist/commands/telephone-game.d.ts.map +1 -0
- package/dist/commands/telephone-game.js +32 -0
- package/dist/config/index.d.ts +12 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +75 -0
- package/dist/index.js +30 -4
- package/dist/mastra/agents/index.d.ts +33 -2
- package/dist/mastra/agents/index.d.ts.map +1 -1
- package/dist/mastra/agents/index.js +62 -25
- package/dist/mastra/agents/model.d.ts +7 -0
- package/dist/mastra/agents/model.d.ts.map +1 -0
- package/dist/mastra/agents/model.js +7 -0
- package/dist/mastra/agents/new-contributor.d.ts +3 -0
- package/dist/mastra/agents/new-contributor.d.ts.map +1 -0
- package/dist/mastra/agents/new-contributor.js +12 -0
- package/dist/mastra/agents/package-publisher.d.ts +65 -0
- package/dist/mastra/agents/package-publisher.d.ts.map +1 -0
- package/dist/mastra/agents/package-publisher.js +172 -0
- package/dist/mastra/index.d.ts +134 -3
- package/dist/mastra/index.d.ts.map +1 -1
- package/dist/mastra/index.js +20 -3
- package/dist/mastra/integrations/index.d.ts +2 -0
- package/dist/mastra/integrations/index.d.ts.map +1 -1
- package/dist/mastra/integrations/index.js +19 -2
- package/dist/mastra/tools/crawl.d.ts +3 -0
- package/dist/mastra/tools/crawl.d.ts.map +1 -1
- package/dist/mastra/tools/crawl.js +4 -2
- package/dist/mastra/tools/execa.d.ts.map +1 -1
- package/dist/mastra/tools/execa.js +5 -1
- package/dist/mastra/tools/image.d.ts +27 -0
- package/dist/mastra/tools/image.d.ts.map +1 -0
- package/dist/mastra/tools/image.js +37 -0
- package/dist/mastra/tools/mcp.d.ts +3 -0
- package/dist/mastra/tools/mcp.d.ts.map +1 -0
- package/dist/mastra/tools/mcp.js +12 -0
- package/dist/mastra/tools/pdf.d.ts.map +1 -1
- package/dist/mastra/tools/pdf.js +2 -2
- package/dist/mastra/tools/pnpm.d.ts +60 -0
- package/dist/mastra/tools/pnpm.d.ts.map +1 -0
- package/dist/mastra/tools/pnpm.js +127 -0
- package/dist/mastra/workflows/changelog.d.ts +10 -0
- package/dist/mastra/workflows/changelog.d.ts.map +1 -0
- package/dist/mastra/workflows/changelog.js +149 -0
- package/dist/mastra/workflows/chat.d.ts.map +1 -1
- package/dist/mastra/workflows/chat.js +6 -11
- package/dist/mastra/workflows/commit-message.d.ts +10 -0
- package/dist/mastra/workflows/commit-message.d.ts.map +1 -0
- package/dist/mastra/workflows/commit-message.js +138 -0
- package/dist/mastra/workflows/first-contributor.d.ts +16 -0
- package/dist/mastra/workflows/first-contributor.d.ts.map +1 -0
- package/dist/mastra/workflows/first-contributor.js +122 -0
- package/dist/mastra/workflows/index.d.ts +1 -0
- package/dist/mastra/workflows/index.d.ts.map +1 -1
- package/dist/mastra/workflows/index.js +1 -0
- package/dist/mastra/workflows/issue-labeler.js +1 -1
- package/dist/mastra/workflows/link-checker.d.ts +13 -0
- package/dist/mastra/workflows/link-checker.d.ts.map +1 -0
- package/dist/mastra/workflows/link-checker.js +102 -0
- package/dist/mastra/workflows/publish-packages.d.ts +3 -0
- package/dist/mastra/workflows/publish-packages.d.ts.map +1 -0
- package/dist/mastra/workflows/publish-packages.js +260 -0
- package/dist/mastra/workflows/telephone-game.d.ts +3 -0
- package/dist/mastra/workflows/telephone-game.d.ts.map +1 -0
- package/dist/mastra/workflows/telephone-game.js +95 -0
- package/package.json +12 -9
- package/test-files/716a95a5c57a56d32a32b1c9592d6df0.png +0 -0
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import { Step, Workflow } from '@mastra/core';
|
|
2
|
+
import chalk from 'chalk';
|
|
3
|
+
import { existsSync } from 'fs';
|
|
4
|
+
import path from 'path';
|
|
5
|
+
import { z } from 'zod';
|
|
6
|
+
import { BUILD_PACKAGES_PROMPT, PACKAGES_LIST_PROMPT, PUBLISH_PACKAGES_PROMPT } from '../agents/package-publisher.js';
|
|
7
|
+
export const packagePublisher = new Workflow({
|
|
8
|
+
name: 'pnpm-changset-publisher',
|
|
9
|
+
});
|
|
10
|
+
const getPacakgesToPublish = new Step({
|
|
11
|
+
id: 'getPacakgesToPublish',
|
|
12
|
+
outputSchema: z.object({
|
|
13
|
+
packages: z.array(z.string()),
|
|
14
|
+
integrations: z.array(z.string()),
|
|
15
|
+
deployers: z.array(z.string()),
|
|
16
|
+
vector_stores: z.array(z.string()),
|
|
17
|
+
}),
|
|
18
|
+
execute: async ({ mastra }) => {
|
|
19
|
+
const agent = mastra?.agents?.['danePackagePublisher'];
|
|
20
|
+
if (!agent) {
|
|
21
|
+
throw new Error('Agent not found');
|
|
22
|
+
}
|
|
23
|
+
const result = await agent.generate(PACKAGES_LIST_PROMPT);
|
|
24
|
+
console.log(chalk.green(`\n${result.text}`));
|
|
25
|
+
const resultObj = await agent.generate(`
|
|
26
|
+
Please convert this into a structured object:
|
|
27
|
+
|
|
28
|
+
Input Text: ${result.text}
|
|
29
|
+
|
|
30
|
+
1. Order Requirements:
|
|
31
|
+
- @mastra/core MUST be first within packages
|
|
32
|
+
- @mastra/deployer MUST be second within packages
|
|
33
|
+
- Group parallel builds by directory type
|
|
34
|
+
|
|
35
|
+
2. Output Format:
|
|
36
|
+
- Group into: packages[], integrations[], deployers[], vector_stores[]
|
|
37
|
+
- Place create-mastra in packages[] array
|
|
38
|
+
- Maintain correct order within each group
|
|
39
|
+
|
|
40
|
+
3. Critical Rules:
|
|
41
|
+
- Never publish without building first
|
|
42
|
+
- Only include packages that need updates
|
|
43
|
+
- Follow dependency order strictly
|
|
44
|
+
`, {
|
|
45
|
+
output: z.object({
|
|
46
|
+
packages: z.array(z.string()),
|
|
47
|
+
integrations: z.array(z.string()),
|
|
48
|
+
deployers: z.array(z.string()),
|
|
49
|
+
vector_stores: z.array(z.string()),
|
|
50
|
+
}),
|
|
51
|
+
});
|
|
52
|
+
return {
|
|
53
|
+
packages: resultObj?.object?.packages,
|
|
54
|
+
integrations: resultObj?.object?.integrations,
|
|
55
|
+
deployers: resultObj?.object?.deployers,
|
|
56
|
+
vector_stores: resultObj?.object?.vector_stores,
|
|
57
|
+
};
|
|
58
|
+
},
|
|
59
|
+
});
|
|
60
|
+
const assemblePackages = new Step({
|
|
61
|
+
id: 'assemblePackages',
|
|
62
|
+
outputSchema: z.object({
|
|
63
|
+
packages: z.array(z.string()),
|
|
64
|
+
}),
|
|
65
|
+
execute: async ({ context }) => {
|
|
66
|
+
if (context.machineContext?.stepResults.getPacakgesToPublish?.status !== 'success') {
|
|
67
|
+
return {
|
|
68
|
+
packages: [],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
const payload = context.machineContext.stepResults.getPacakgesToPublish.payload;
|
|
72
|
+
const packagesToBuild = new Set();
|
|
73
|
+
if (payload?.packages) {
|
|
74
|
+
payload.packages.forEach((pkg) => {
|
|
75
|
+
let pkgName = pkg.replace('@mastra/', '');
|
|
76
|
+
if (pkgName === 'mastra') {
|
|
77
|
+
pkgName = 'cli';
|
|
78
|
+
}
|
|
79
|
+
const pkgPath = path.join(process.cwd(), 'packages', pkgName);
|
|
80
|
+
packagesToBuild.add(pkgPath);
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
if (payload?.deployers) {
|
|
84
|
+
payload.deployers.forEach((pkg) => {
|
|
85
|
+
let pkgName = pkg.replace('@mastra/deployer-', '');
|
|
86
|
+
if (pkgName === 'mastra') {
|
|
87
|
+
pkgName = 'cli';
|
|
88
|
+
}
|
|
89
|
+
const pkgPath = path.join(process.cwd(), 'deployers', pkgName);
|
|
90
|
+
packagesToBuild.add(pkgPath);
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
if (payload?.vector_stores) {
|
|
94
|
+
payload.vector_stores.forEach((pkg) => {
|
|
95
|
+
let pkgName = pkg.replace('@mastra/vector-', '');
|
|
96
|
+
if (pkgName === 'astra') {
|
|
97
|
+
pkgName = 'astra-db';
|
|
98
|
+
}
|
|
99
|
+
const pkgPath = path.join(process.cwd(), 'vector-stores', pkgName);
|
|
100
|
+
packagesToBuild.add(pkgPath);
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
if (payload?.integrations) {
|
|
104
|
+
const integrations = payload.integrations;
|
|
105
|
+
integrations.forEach((integration) => {
|
|
106
|
+
let pkgName = integration.replace('@mastra/', '');
|
|
107
|
+
const integrationPath = path.join(process.cwd(), 'integrations', pkgName);
|
|
108
|
+
packagesToBuild.add(integrationPath);
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
const pkgSet = Array.from(packagesToBuild.keys());
|
|
112
|
+
if (!packagesToBuild.size) {
|
|
113
|
+
console.error(chalk.red('No packages to build.'));
|
|
114
|
+
return {
|
|
115
|
+
packages: [],
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
console.log(chalk.green(`\nBuilding packages:\n`));
|
|
119
|
+
pkgSet.forEach((pkg) => {
|
|
120
|
+
console.log(chalk.green(pkg));
|
|
121
|
+
});
|
|
122
|
+
return { packages: pkgSet };
|
|
123
|
+
},
|
|
124
|
+
});
|
|
125
|
+
const buildPackages = new Step({
|
|
126
|
+
id: 'buildPackages',
|
|
127
|
+
outputSchema: z.object({
|
|
128
|
+
packages: z.array(z.string()),
|
|
129
|
+
}),
|
|
130
|
+
execute: async ({ context, mastra }) => {
|
|
131
|
+
if (context.machineContext?.stepResults.assemblePackages?.status !== 'success') {
|
|
132
|
+
return {
|
|
133
|
+
packages: [],
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
const pkgSet = context.machineContext.stepResults.assemblePackages.payload.packages;
|
|
137
|
+
const agent = mastra?.agents?.['danePackagePublisher'];
|
|
138
|
+
if (!agent) {
|
|
139
|
+
throw new Error('Agent not found');
|
|
140
|
+
}
|
|
141
|
+
let res = await agent.generate(BUILD_PACKAGES_PROMPT(pkgSet));
|
|
142
|
+
console.log(chalk.green(res.text));
|
|
143
|
+
return { packages: pkgSet };
|
|
144
|
+
},
|
|
145
|
+
});
|
|
146
|
+
const verifyBuild = new Step({
|
|
147
|
+
id: 'verifyBuild',
|
|
148
|
+
outputSchema: z.object({
|
|
149
|
+
packages: z.array(z.string()),
|
|
150
|
+
}),
|
|
151
|
+
execute: async ({ mastra, context }) => {
|
|
152
|
+
if (context.machineContext?.stepResults.buildPackages?.status !== 'success') {
|
|
153
|
+
return {
|
|
154
|
+
packages: [],
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
console.log('Verifying the output for:', context.machineContext.stepResults.buildPackages.payload.packages);
|
|
158
|
+
const pkgSet = context.machineContext.stepResults.buildPackages.payload.packages;
|
|
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
|
+
}
|
|
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');
|
|
182
|
+
}
|
|
183
|
+
return {
|
|
184
|
+
packages: pkgSet,
|
|
185
|
+
};
|
|
186
|
+
},
|
|
187
|
+
});
|
|
188
|
+
const publishChangeset = new Step({
|
|
189
|
+
id: 'publishChangeset',
|
|
190
|
+
outputSchema: z.object({
|
|
191
|
+
packages: z.array(z.string()),
|
|
192
|
+
}),
|
|
193
|
+
execute: async ({ context, mastra }) => {
|
|
194
|
+
if (context.machineContext?.stepResults.buildPackages?.status !== 'success') {
|
|
195
|
+
return {
|
|
196
|
+
packages: [],
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
const pkgSet = context.machineContext.stepResults.buildPackages.payload.packages;
|
|
200
|
+
const agent = mastra?.agents?.['danePackagePublisher'];
|
|
201
|
+
if (!agent) {
|
|
202
|
+
throw new Error('Agent not found');
|
|
203
|
+
}
|
|
204
|
+
const res = await agent.generate(PUBLISH_PACKAGES_PROMPT);
|
|
205
|
+
console.log(chalk.green(res.text));
|
|
206
|
+
return { packages: pkgSet };
|
|
207
|
+
},
|
|
208
|
+
});
|
|
209
|
+
const setLatestDistTag = new Step({
|
|
210
|
+
id: 'setLatestDistTag',
|
|
211
|
+
outputSchema: z.object({
|
|
212
|
+
packages: z.array(z.string()),
|
|
213
|
+
}),
|
|
214
|
+
execute: async ({ context, mastra }) => {
|
|
215
|
+
if (context.machineContext?.stepResults.publishChangeset?.status !== 'success') {
|
|
216
|
+
return {
|
|
217
|
+
packages: [],
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
const pkgSet = context.machineContext.stepResults.publishChangeset.payload.packages;
|
|
221
|
+
const agent = mastra?.agents?.['danePackagePublisher'];
|
|
222
|
+
if (!agent) {
|
|
223
|
+
throw new Error('Agent not found');
|
|
224
|
+
}
|
|
225
|
+
let res = await agent.generate(`
|
|
226
|
+
Set the active tag for these packages ${pkgSet.join(',')}.
|
|
227
|
+
`);
|
|
228
|
+
console.log(chalk.green(res.text));
|
|
229
|
+
return { packages: pkgSet };
|
|
230
|
+
},
|
|
231
|
+
});
|
|
232
|
+
packagePublisher
|
|
233
|
+
.step(getPacakgesToPublish)
|
|
234
|
+
.then(assemblePackages)
|
|
235
|
+
.then(buildPackages, {
|
|
236
|
+
when: async ({ context }) => {
|
|
237
|
+
return (context.stepResults.assemblePackages?.status === 'success' &&
|
|
238
|
+
context.stepResults.assemblePackages?.payload?.packages.length > 0);
|
|
239
|
+
},
|
|
240
|
+
})
|
|
241
|
+
.then(verifyBuild, {
|
|
242
|
+
when: async ({ context }) => {
|
|
243
|
+
return (context.stepResults.buildPackages?.status === 'success' &&
|
|
244
|
+
context.stepResults.buildPackages?.payload?.packages.length > 0);
|
|
245
|
+
},
|
|
246
|
+
})
|
|
247
|
+
.after(verifyBuild)
|
|
248
|
+
.step(publishChangeset, {
|
|
249
|
+
when: async ({ context }) => {
|
|
250
|
+
return (context.stepResults.buildPackages?.status === 'success' &&
|
|
251
|
+
context.stepResults.buildPackages?.payload?.packages.length > 0);
|
|
252
|
+
},
|
|
253
|
+
})
|
|
254
|
+
.then(setLatestDistTag, {
|
|
255
|
+
when: async ({ context }) => {
|
|
256
|
+
return (context.stepResults.publishChangeset?.status === 'success' &&
|
|
257
|
+
context.stepResults.publishChangeset?.payload?.packages.length > 0);
|
|
258
|
+
},
|
|
259
|
+
})
|
|
260
|
+
.commit();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"telephone-game.d.ts","sourceRoot":"","sources":["../../../src/mastra/workflows/telephone-game.ts"],"names":[],"mappings":"AACA,OAAO,EAAQ,QAAQ,EAAiB,MAAM,cAAc,CAAC;AAG7D,eAAO,MAAM,qBAAqB,oBAEhC,CAAC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { input } from '@inquirer/prompts';
|
|
2
|
+
import { Step, Workflow, getStepResult } from '@mastra/core';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
export const telephoneGameWorkflow = new Workflow({
|
|
5
|
+
name: 'telephoneGame',
|
|
6
|
+
});
|
|
7
|
+
const stepA1 = new Step({
|
|
8
|
+
id: 'stepA1',
|
|
9
|
+
description: 'Starts the message',
|
|
10
|
+
outputSchema: z.object({
|
|
11
|
+
message: z.string(),
|
|
12
|
+
}),
|
|
13
|
+
execute: async () => {
|
|
14
|
+
return {
|
|
15
|
+
message: 'Test',
|
|
16
|
+
};
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
const stepA2 = new Step({
|
|
20
|
+
id: 'stepA2',
|
|
21
|
+
description: 'Pass the message through',
|
|
22
|
+
outputSchema: z.object({
|
|
23
|
+
message: z.string(),
|
|
24
|
+
}),
|
|
25
|
+
execute: async () => {
|
|
26
|
+
const content = await input({
|
|
27
|
+
message: 'Give me a message',
|
|
28
|
+
validate: input => input.trim().length > 0 || 'Message cannot be empty',
|
|
29
|
+
});
|
|
30
|
+
return {
|
|
31
|
+
message: content,
|
|
32
|
+
};
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
const stepB2 = new Step({
|
|
36
|
+
id: 'stepB2',
|
|
37
|
+
description: 'Checks if the file exists',
|
|
38
|
+
outputSchema: z.object({
|
|
39
|
+
message: z.string(),
|
|
40
|
+
}),
|
|
41
|
+
execute: async ({ context }) => {
|
|
42
|
+
if (context.machineContext?.stepResults.stepA2?.status !== 'success') {
|
|
43
|
+
throw new Error('Message not found');
|
|
44
|
+
}
|
|
45
|
+
const msg = context.machineContext.stepResults.stepA2.payload.message;
|
|
46
|
+
return {
|
|
47
|
+
message: msg,
|
|
48
|
+
};
|
|
49
|
+
},
|
|
50
|
+
});
|
|
51
|
+
const stepC2 = new Step({
|
|
52
|
+
id: 'stepC2',
|
|
53
|
+
description: 'Ask if you should modify the message',
|
|
54
|
+
outputSchema: z.object({
|
|
55
|
+
message: z.string(),
|
|
56
|
+
}),
|
|
57
|
+
execute: async ({ suspend, context, mastra }) => {
|
|
58
|
+
const oMsg = getStepResult(context?.machineContext?.stepResults.stepA2);
|
|
59
|
+
if (context?.machineContext?.stepResults.stepC2?.status === 'success') {
|
|
60
|
+
const msg = getStepResult(context?.machineContext?.stepResults.stepC2);
|
|
61
|
+
if (msg.confirm) {
|
|
62
|
+
if (mastra?.llm) {
|
|
63
|
+
const llm = mastra?.llm({
|
|
64
|
+
provider: 'ANTHROPIC',
|
|
65
|
+
name: 'claude-3-5-haiku-20241022',
|
|
66
|
+
});
|
|
67
|
+
const result = await llm.generate(`
|
|
68
|
+
You are playing a game of telephone.
|
|
69
|
+
Here is the message the previous person sent ${oMsg.message}.
|
|
70
|
+
But you want to change the message.
|
|
71
|
+
Only return the message
|
|
72
|
+
`);
|
|
73
|
+
return {
|
|
74
|
+
message: result.text,
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
return oMsg;
|
|
79
|
+
}
|
|
80
|
+
await suspend();
|
|
81
|
+
return { message: 'Suspended' };
|
|
82
|
+
},
|
|
83
|
+
});
|
|
84
|
+
const stepD2 = new Step({
|
|
85
|
+
id: 'stepD2',
|
|
86
|
+
description: 'Pass the message',
|
|
87
|
+
outputSchema: z.object({
|
|
88
|
+
message: z.string(),
|
|
89
|
+
}),
|
|
90
|
+
execute: async ({ context }) => {
|
|
91
|
+
const msg = getStepResult(context?.machineContext?.stepResults.stepC2);
|
|
92
|
+
return msg;
|
|
93
|
+
},
|
|
94
|
+
});
|
|
95
|
+
telephoneGameWorkflow.step(stepA1).step(stepA2).then(stepB2).then(stepC2).then(stepD2).commit();
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/dane",
|
|
3
|
-
"version": "0.0.2-alpha.
|
|
3
|
+
"version": "0.0.2-alpha.93",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
8
|
+
"data",
|
|
8
9
|
"test",
|
|
9
10
|
"test-files"
|
|
10
11
|
],
|
|
@@ -21,13 +22,14 @@
|
|
|
21
22
|
"tsx": "^4.19.2"
|
|
22
23
|
},
|
|
23
24
|
"dependencies": {
|
|
25
|
+
"@inquirer/prompts": "^7.2.1",
|
|
24
26
|
"boxen": "^8.0.1",
|
|
25
27
|
"chalk": "^5.3.0",
|
|
26
28
|
"cli-table3": "^0.6.5",
|
|
27
29
|
"commander": "^12.1.0",
|
|
28
30
|
"dotenv": "^16.4.7",
|
|
31
|
+
"drizzle-kit": "^0.30.1",
|
|
29
32
|
"execa": "^9.3.1",
|
|
30
|
-
"inquirer": "^12.2.0",
|
|
31
33
|
"luxon": "^3.5.0",
|
|
32
34
|
"node-ical": "^0.20.1",
|
|
33
35
|
"node-screenshots": "^0.2.1",
|
|
@@ -37,16 +39,17 @@
|
|
|
37
39
|
"sqlite3": "^5.1.7",
|
|
38
40
|
"typescript": "^5.5.4",
|
|
39
41
|
"zod": "^3.24.0",
|
|
40
|
-
"@mastra/core": "0.1.27-alpha.
|
|
41
|
-
"@mastra/engine": "0.0.5-alpha.
|
|
42
|
-
"@mastra/firecrawl": "1.0.4-alpha.
|
|
43
|
-
"@mastra/
|
|
44
|
-
"@mastra/
|
|
45
|
-
"@mastra/
|
|
42
|
+
"@mastra/core": "0.1.27-alpha.78",
|
|
43
|
+
"@mastra/engine": "0.0.5-alpha.73",
|
|
44
|
+
"@mastra/firecrawl": "1.0.4-alpha.70",
|
|
45
|
+
"@mastra/memory": "0.0.2-alpha.59",
|
|
46
|
+
"@mastra/rag": "0.0.2-alpha.68",
|
|
47
|
+
"@mastra/stabilityai": "1.0.1-alpha.53",
|
|
48
|
+
"@mastra/mcp": "0.0.1-alpha.20",
|
|
49
|
+
"@mastra/github": "1.0.3-alpha.62"
|
|
46
50
|
},
|
|
47
51
|
"scripts": {
|
|
48
52
|
"build": "npx tsc",
|
|
49
|
-
"issue-labeler": "npx bun src/issue-labeler.ts",
|
|
50
53
|
"start": "npx bun src/index.ts",
|
|
51
54
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
52
55
|
}
|
|
Binary file
|