@mastra/dane 0.0.2-alpha.11 → 0.0.2-alpha.111
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 +2 -1
- 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 +4 -2
- 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 +17 -11
- package/dist/mastra/agents/index.d.ts.map +1 -1
- package/dist/mastra/agents/index.js +61 -29
- 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 +168 -0
- package/dist/mastra/index.d.ts +123 -19
- package/dist/mastra/index.d.ts.map +1 -1
- package/dist/mastra/index.js +35 -21
- package/dist/mastra/integrations/index.d.ts.map +1 -1
- package/dist/mastra/integrations/index.js +14 -3
- package/dist/mastra/tools/browser.d.ts +2 -2
- package/dist/mastra/tools/browser.js +1 -1
- package/dist/mastra/tools/calendar.d.ts +1 -1
- package/dist/mastra/tools/calendar.js +1 -1
- package/dist/mastra/tools/crawl.d.ts +4 -1
- package/dist/mastra/tools/crawl.d.ts.map +1 -1
- package/dist/mastra/tools/crawl.js +8 -5
- package/dist/mastra/tools/execa.d.ts +1 -1
- package/dist/mastra/tools/execa.d.ts.map +1 -1
- package/dist/mastra/tools/execa.js +2 -1
- package/dist/mastra/tools/fs.d.ts +1 -1
- package/dist/mastra/tools/fs.js +1 -1
- package/dist/mastra/tools/image.d.ts +1 -1
- package/dist/mastra/tools/image.d.ts.map +1 -1
- package/dist/mastra/tools/image.js +5 -5
- 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 +1 -1
- package/dist/mastra/tools/pdf.d.ts.map +1 -1
- package/dist/mastra/tools/pdf.js +3 -3
- 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 +4 -4
- package/dist/mastra/workflows/chat.d.ts.map +1 -1
- package/dist/mastra/workflows/chat.js +20 -23
- 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.d.ts +1 -1
- package/dist/mastra/workflows/issue-labeler.d.ts.map +1 -1
- package/dist/mastra/workflows/issue-labeler.js +3 -3
- 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 +358 -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 +16 -12
package/dist/mastra/index.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { Mastra } from '@mastra/core';
|
|
2
2
|
export declare const mastra: Mastra<{
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
dane: import("@mastra/core").Agent<{
|
|
6
|
-
fsTool: import("@mastra/core").Tool<"fsTool", import("zod").ZodObject<{
|
|
3
|
+
dane: import("@mastra/core/agent").Agent<{
|
|
4
|
+
fsTool: import("@mastra/core/tools").Tool<"fsTool", import("zod").ZodObject<{
|
|
7
5
|
action: import("zod").ZodString;
|
|
8
6
|
file: import("zod").ZodString;
|
|
9
7
|
data: import("zod").ZodString;
|
|
@@ -34,7 +32,7 @@ export declare const mastra: Mastra<{
|
|
|
34
32
|
action: string;
|
|
35
33
|
file: string;
|
|
36
34
|
}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
37
|
-
execaTool: import("@mastra/core").Tool<"execaTool", import("zod").ZodObject<{
|
|
35
|
+
execaTool: import("@mastra/core/tools").Tool<"execaTool", import("zod").ZodObject<{
|
|
38
36
|
command: import("zod").ZodString;
|
|
39
37
|
args: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
40
38
|
}, "strip", import("zod").ZodTypeAny, {
|
|
@@ -59,7 +57,7 @@ export declare const mastra: Mastra<{
|
|
|
59
57
|
command: string;
|
|
60
58
|
args: string[];
|
|
61
59
|
}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
62
|
-
browserTool: import("@mastra/core").Tool<"browserTool", import("zod").ZodObject<{
|
|
60
|
+
browserTool: import("@mastra/core/tools").Tool<"browserTool", import("zod").ZodObject<{
|
|
63
61
|
url: import("zod").ZodString;
|
|
64
62
|
}, "strip", import("zod").ZodTypeAny, {
|
|
65
63
|
url: string;
|
|
@@ -78,7 +76,7 @@ export declare const mastra: Mastra<{
|
|
|
78
76
|
}, {
|
|
79
77
|
url: string;
|
|
80
78
|
}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
81
|
-
googleSearch: import("@mastra/core").Tool<"googleSearch", import("zod").ZodObject<{
|
|
79
|
+
googleSearch: import("@mastra/core/tools").Tool<"googleSearch", import("zod").ZodObject<{
|
|
82
80
|
query: import("zod").ZodString;
|
|
83
81
|
}, "strip", import("zod").ZodTypeAny, {
|
|
84
82
|
query: string;
|
|
@@ -97,7 +95,7 @@ export declare const mastra: Mastra<{
|
|
|
97
95
|
}, {
|
|
98
96
|
query: string;
|
|
99
97
|
}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
100
|
-
readPDF: import("@mastra/core").Tool<"readPDF", import("zod").ZodObject<{
|
|
98
|
+
readPDF: import("@mastra/core/tools").Tool<"readPDF", import("zod").ZodObject<{
|
|
101
99
|
pdfPath: import("zod").ZodString;
|
|
102
100
|
}, "strip", import("zod").ZodTypeAny, {
|
|
103
101
|
pdfPath: string;
|
|
@@ -116,7 +114,7 @@ export declare const mastra: Mastra<{
|
|
|
116
114
|
}, {
|
|
117
115
|
pdfPath: string;
|
|
118
116
|
}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
119
|
-
listEvents: import("@mastra/core").Tool<"listEvents", import("zod").ZodObject<{
|
|
117
|
+
listEvents: import("@mastra/core/tools").Tool<"listEvents", import("zod").ZodObject<{
|
|
120
118
|
startDate: import("zod").ZodString;
|
|
121
119
|
}, "strip", import("zod").ZodTypeAny, {
|
|
122
120
|
startDate: string;
|
|
@@ -135,7 +133,7 @@ export declare const mastra: Mastra<{
|
|
|
135
133
|
}, {
|
|
136
134
|
startDate: string;
|
|
137
135
|
}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
138
|
-
crawl: import("@mastra/core").Tool<"crawler", import("zod").ZodObject<{
|
|
136
|
+
crawl: import("@mastra/core/tools").Tool<"crawler", import("zod").ZodObject<{
|
|
139
137
|
url: import("zod").ZodString;
|
|
140
138
|
limit: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
141
139
|
pathRegex: import("zod").ZodNullable<import("zod").ZodString>;
|
|
@@ -149,10 +147,13 @@ export declare const mastra: Mastra<{
|
|
|
149
147
|
limit?: number | undefined;
|
|
150
148
|
}>, import("zod").ZodObject<{
|
|
151
149
|
message: import("zod").ZodString;
|
|
150
|
+
crawlData: import("zod").ZodAny;
|
|
152
151
|
}, "strip", import("zod").ZodTypeAny, {
|
|
153
152
|
message: string;
|
|
153
|
+
crawlData?: any;
|
|
154
154
|
}, {
|
|
155
155
|
message: string;
|
|
156
|
+
crawlData?: any;
|
|
156
157
|
}>, import("@mastra/core").ToolExecutionContext<import("zod").ZodObject<{
|
|
157
158
|
url: import("zod").ZodString;
|
|
158
159
|
limit: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
@@ -166,7 +167,7 @@ export declare const mastra: Mastra<{
|
|
|
166
167
|
pathRegex: string | null;
|
|
167
168
|
limit?: number | undefined;
|
|
168
169
|
}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
169
|
-
imageTool: import("@mastra/core").Tool<"imageTool", import("zod").ZodObject<{
|
|
170
|
+
imageTool: import("@mastra/core/tools").Tool<"imageTool", import("zod").ZodObject<{
|
|
170
171
|
directory: import("zod").ZodString;
|
|
171
172
|
prompt: import("zod").ZodString;
|
|
172
173
|
}, "strip", import("zod").ZodTypeAny, {
|
|
@@ -191,20 +192,84 @@ export declare const mastra: Mastra<{
|
|
|
191
192
|
directory: string;
|
|
192
193
|
prompt: string;
|
|
193
194
|
}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
194
|
-
}
|
|
195
|
-
|
|
195
|
+
}, Record<string, import("@mastra/core").Metric>>;
|
|
196
|
+
danePackagePublisher: import("@mastra/core/agent").Agent<{
|
|
197
|
+
pnpmChangesetStatus: import("@mastra/core/tools").Tool<"pnpmChangesetStatus", import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>, import("zod").ZodObject<{
|
|
198
|
+
message: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
199
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
200
|
+
message: string[];
|
|
201
|
+
}, {
|
|
202
|
+
message: string[];
|
|
203
|
+
}>, import("@mastra/core").ToolExecutionContext<import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
204
|
+
pnpmBuild: import("@mastra/core/tools").Tool<"pnpmBuild", import("zod").ZodObject<{
|
|
205
|
+
name: import("zod").ZodString;
|
|
206
|
+
packagePath: import("zod").ZodString;
|
|
207
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
208
|
+
name: string;
|
|
209
|
+
packagePath: string;
|
|
210
|
+
}, {
|
|
211
|
+
name: string;
|
|
212
|
+
packagePath: string;
|
|
213
|
+
}>, import("zod").ZodObject<{
|
|
214
|
+
message: import("zod").ZodString;
|
|
215
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
216
|
+
message: string;
|
|
217
|
+
}, {
|
|
218
|
+
message: string;
|
|
219
|
+
}>, import("@mastra/core").ToolExecutionContext<import("zod").ZodObject<{
|
|
220
|
+
name: import("zod").ZodString;
|
|
221
|
+
packagePath: import("zod").ZodString;
|
|
222
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
223
|
+
name: string;
|
|
224
|
+
packagePath: string;
|
|
225
|
+
}, {
|
|
226
|
+
name: string;
|
|
227
|
+
packagePath: string;
|
|
228
|
+
}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
229
|
+
pnpmChangesetPublish: import("@mastra/core/tools").Tool<"pnpmChangesetPublish", import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>, import("zod").ZodObject<{
|
|
230
|
+
message: import("zod").ZodString;
|
|
231
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
232
|
+
message: string;
|
|
233
|
+
}, {
|
|
234
|
+
message: string;
|
|
235
|
+
}>, import("@mastra/core").ToolExecutionContext<import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
236
|
+
activeDistTag: import("@mastra/core/tools").Tool<"activeDistTag", import("zod").ZodObject<{
|
|
237
|
+
packagePath: import("zod").ZodString;
|
|
238
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
239
|
+
packagePath: string;
|
|
240
|
+
}, {
|
|
241
|
+
packagePath: string;
|
|
242
|
+
}>, import("zod").ZodObject<{
|
|
243
|
+
message: import("zod").ZodString;
|
|
244
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
245
|
+
message: string;
|
|
246
|
+
}, {
|
|
247
|
+
message: string;
|
|
248
|
+
}>, import("@mastra/core").ToolExecutionContext<import("zod").ZodObject<{
|
|
249
|
+
packagePath: import("zod").ZodString;
|
|
250
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
251
|
+
packagePath: string;
|
|
252
|
+
}, {
|
|
253
|
+
packagePath: string;
|
|
254
|
+
}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
255
|
+
}, Record<string, import("@mastra/core").Metric>>;
|
|
256
|
+
daneLinkChecker: import("@mastra/core/agent").Agent<Record<string, import("@mastra/core").ToolAction<any, any, any, any>>, Record<string, import("@mastra/core").Metric>>;
|
|
257
|
+
daneIssueLabeler: import("@mastra/core/agent").Agent<Record<string, import("@mastra/core").ToolAction<any, any, any, any>>, Record<string, import("@mastra/core").Metric>>;
|
|
258
|
+
daneCommitMessage: import("@mastra/core/agent").Agent<Record<string, import("@mastra/core").ToolAction<any, any, any, any>>, Record<string, import("@mastra/core").Metric>>;
|
|
259
|
+
daneChangeLog: import("@mastra/core/agent").Agent<Record<string, import("@mastra/core").ToolAction<any, any, any, any>>, Record<string, import("@mastra/core").Metric>>;
|
|
260
|
+
daneNewContributor: import("@mastra/core/agent").Agent<{}, Record<string, import("@mastra/core").Metric>>;
|
|
196
261
|
}, {
|
|
197
|
-
message: import("@mastra/core").Workflow<any, import("zod").ZodObject<{
|
|
198
|
-
|
|
262
|
+
message: import("@mastra/core/workflows").Workflow<any, import("zod").ZodObject<{
|
|
263
|
+
resourceId: import("zod").ZodString;
|
|
199
264
|
threadId: import("zod").ZodString;
|
|
200
265
|
}, "strip", import("zod").ZodTypeAny, {
|
|
201
|
-
|
|
266
|
+
resourceId: string;
|
|
202
267
|
threadId: string;
|
|
203
268
|
}, {
|
|
204
|
-
|
|
269
|
+
resourceId: string;
|
|
205
270
|
threadId: string;
|
|
206
271
|
}>>;
|
|
207
|
-
githubIssueLabeler: import("@mastra/core").Workflow<any, import("zod").ZodObject<{
|
|
272
|
+
githubIssueLabeler: import("@mastra/core/workflows").Workflow<any, import("zod").ZodObject<{
|
|
208
273
|
repo: import("zod").ZodString;
|
|
209
274
|
owner: import("zod").ZodString;
|
|
210
275
|
issue_number: import("zod").ZodNumber;
|
|
@@ -217,5 +282,44 @@ export declare const mastra: Mastra<{
|
|
|
217
282
|
owner: string;
|
|
218
283
|
issue_number: number;
|
|
219
284
|
}>>;
|
|
220
|
-
|
|
285
|
+
commitMessage: import("@mastra/core/workflows").Workflow<any, import("zod").ZodObject<{
|
|
286
|
+
repoPath: import("zod").ZodString;
|
|
287
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
288
|
+
repoPath: string;
|
|
289
|
+
}, {
|
|
290
|
+
repoPath: string;
|
|
291
|
+
}>>;
|
|
292
|
+
packagePublisher: import("@mastra/core/workflows").Workflow<any, any>;
|
|
293
|
+
telephoneGame: import("@mastra/core/workflows").Workflow<any, any>;
|
|
294
|
+
changelog: import("@mastra/core/workflows").Workflow<any, import("zod").ZodObject<{
|
|
295
|
+
channelId: import("zod").ZodString;
|
|
296
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
297
|
+
channelId: string;
|
|
298
|
+
}, {
|
|
299
|
+
channelId: string;
|
|
300
|
+
}>>;
|
|
301
|
+
githubFirstContributorMessage: import("@mastra/core/workflows").Workflow<any, import("zod").ZodObject<{
|
|
302
|
+
repo: import("zod").ZodString;
|
|
303
|
+
owner: import("zod").ZodString;
|
|
304
|
+
pr_number: import("zod").ZodNumber;
|
|
305
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
306
|
+
repo: string;
|
|
307
|
+
owner: string;
|
|
308
|
+
pr_number: number;
|
|
309
|
+
}, {
|
|
310
|
+
repo: string;
|
|
311
|
+
owner: string;
|
|
312
|
+
pr_number: number;
|
|
313
|
+
}>>;
|
|
314
|
+
linkChecker: import("@mastra/core/workflows").Workflow<any, import("zod").ZodObject<{
|
|
315
|
+
channelId: import("zod").ZodString;
|
|
316
|
+
targetUrl: import("zod").ZodString;
|
|
317
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
318
|
+
channelId: string;
|
|
319
|
+
targetUrl: string;
|
|
320
|
+
}, {
|
|
321
|
+
channelId: string;
|
|
322
|
+
targetUrl: string;
|
|
323
|
+
}>>;
|
|
324
|
+
}, Record<string, import("@mastra/core/vector").MastraVector>, Record<string, import("@mastra/core/tts").MastraTTS>, import("@mastra/core").Logger>;
|
|
221
325
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mastra/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mastra/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAuB,MAAM,cAAc,CAAC;AAc3D,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mJAiCjB,CAAC"}
|
package/dist/mastra/index.js
CHANGED
|
@@ -1,32 +1,46 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { dane, daneIssueLabeler } from './agents/index.js';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
1
|
+
import { Mastra, MastraStorageLibSql } from '@mastra/core';
|
|
2
|
+
import { Memory } from '@mastra/memory';
|
|
3
|
+
import { UpstashStore } from '@mastra/store-upstash';
|
|
4
|
+
import { dane, daneChangeLog, daneCommitMessage, daneIssueLabeler, daneLinkChecker } from './agents/index.js';
|
|
5
|
+
import { daneNewContributor } from './agents/new-contributor.js';
|
|
6
|
+
import { danePackagePublisher } from './agents/package-publisher.js';
|
|
7
|
+
import { changelogWorkflow } from './workflows/changelog.js';
|
|
8
|
+
import { githubFirstContributorMessage } from './workflows/first-contributor.js';
|
|
9
|
+
import { messageWorkflow, githubIssueLabeler, commitMessageGenerator } from './workflows/index.js';
|
|
10
|
+
import { linkCheckerWorkflow } from './workflows/link-checker.js';
|
|
11
|
+
import { packagePublisher } from './workflows/publish-packages.js';
|
|
12
|
+
import { telephoneGameWorkflow } from './workflows/telephone-game.js';
|
|
10
13
|
export const mastra = new Mastra({
|
|
11
14
|
agents: {
|
|
12
15
|
dane,
|
|
16
|
+
danePackagePublisher,
|
|
17
|
+
daneLinkChecker,
|
|
13
18
|
daneIssueLabeler,
|
|
19
|
+
daneCommitMessage,
|
|
20
|
+
daneChangeLog,
|
|
21
|
+
daneNewContributor,
|
|
14
22
|
},
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
23
|
+
storage: new MastraStorageLibSql({
|
|
24
|
+
config: {
|
|
25
|
+
url: ':memory:',
|
|
26
|
+
},
|
|
27
|
+
}),
|
|
28
|
+
memory: new Memory({
|
|
29
|
+
storage: new UpstashStore({
|
|
30
|
+
url: 'http://localhost:8079',
|
|
31
|
+
token: `example_token`,
|
|
32
|
+
// TODO: do we need to implement this in Memory?
|
|
33
|
+
// maxTokens: 39000,
|
|
34
|
+
}),
|
|
20
35
|
}),
|
|
21
36
|
workflows: {
|
|
22
37
|
message: messageWorkflow,
|
|
23
38
|
githubIssueLabeler: githubIssueLabeler,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
...firecrawl.getSyncs(),
|
|
39
|
+
commitMessage: commitMessageGenerator,
|
|
40
|
+
packagePublisher: packagePublisher,
|
|
41
|
+
telephoneGame: telephoneGameWorkflow,
|
|
42
|
+
changelog: changelogWorkflow,
|
|
43
|
+
githubFirstContributorMessage: githubFirstContributorMessage,
|
|
44
|
+
linkChecker: linkCheckerWorkflow,
|
|
31
45
|
},
|
|
32
46
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/mastra/integrations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/mastra/integrations/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAc7D,eAAO,MAAM,SAAS,sBAIpB,CAAC;AAEH,eAAO,MAAM,MAAM,mBAIjB,CAAC;AAEH,eAAO,MAAM,WAAW,wBAItB,CAAC"}
|
|
@@ -1,18 +1,29 @@
|
|
|
1
1
|
import { FirecrawlIntegration } from "@mastra/firecrawl";
|
|
2
2
|
import { GithubIntegration } from "@mastra/github";
|
|
3
3
|
import { StabilityAiIntegration } from "@mastra/stabilityai";
|
|
4
|
+
import { config } from "../../config/index.js";
|
|
5
|
+
// Helper function to get key from config or env
|
|
6
|
+
const getApiKey = (configKey, envKey) => {
|
|
7
|
+
const configValue = config.get(configKey);
|
|
8
|
+
if (configValue)
|
|
9
|
+
return configValue;
|
|
10
|
+
const envValue = process.env[envKey];
|
|
11
|
+
if (envValue)
|
|
12
|
+
return envValue;
|
|
13
|
+
return '';
|
|
14
|
+
};
|
|
4
15
|
export const firecrawl = new FirecrawlIntegration({
|
|
5
16
|
config: {
|
|
6
|
-
API_KEY:
|
|
17
|
+
API_KEY: getApiKey('FIRECRAWL_API_KEY', 'FIRECRAWL_API_KEY'),
|
|
7
18
|
},
|
|
8
19
|
});
|
|
9
20
|
export const github = new GithubIntegration({
|
|
10
21
|
config: {
|
|
11
|
-
PERSONAL_ACCESS_TOKEN:
|
|
22
|
+
PERSONAL_ACCESS_TOKEN: getApiKey('GITHUB_PERSONAL_ACCESS_TOKEN', 'GITHUB_PERSONAL_ACCESS_TOKEN'),
|
|
12
23
|
}
|
|
13
24
|
});
|
|
14
25
|
export const stabilityai = new StabilityAiIntegration({
|
|
15
26
|
config: {
|
|
16
|
-
API_KEY:
|
|
27
|
+
API_KEY: getApiKey('STABILITYAI_API_KEY', 'STABILITYAI_API_KEY'),
|
|
17
28
|
}
|
|
18
29
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const browserTool: import("@mastra/core").Tool<"browserTool", z.ZodObject<{
|
|
2
|
+
export declare const browserTool: import("@mastra/core/tools").Tool<"browserTool", z.ZodObject<{
|
|
3
3
|
url: z.ZodString;
|
|
4
4
|
}, "strip", z.ZodTypeAny, {
|
|
5
5
|
url: string;
|
|
@@ -18,7 +18,7 @@ export declare const browserTool: import("@mastra/core").Tool<"browserTool", z.Z
|
|
|
18
18
|
}, {
|
|
19
19
|
url: string;
|
|
20
20
|
}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
21
|
-
export declare const googleSearch: import("@mastra/core").Tool<"googleSearch", z.ZodObject<{
|
|
21
|
+
export declare const googleSearch: import("@mastra/core/tools").Tool<"googleSearch", z.ZodObject<{
|
|
22
22
|
query: z.ZodString;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
24
|
query: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const listEvents: import("@mastra/core").Tool<"listEvents", z.ZodObject<{
|
|
2
|
+
export declare const listEvents: import("@mastra/core/tools").Tool<"listEvents", z.ZodObject<{
|
|
3
3
|
startDate: z.ZodString;
|
|
4
4
|
}, "strip", z.ZodTypeAny, {
|
|
5
5
|
startDate: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const crawl: import("@mastra/core").Tool<"crawler", z.ZodObject<{
|
|
2
|
+
export declare const crawl: import("@mastra/core/tools").Tool<"crawler", z.ZodObject<{
|
|
3
3
|
url: z.ZodString;
|
|
4
4
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
5
5
|
pathRegex: z.ZodNullable<z.ZodString>;
|
|
@@ -13,10 +13,13 @@ export declare const crawl: import("@mastra/core").Tool<"crawler", z.ZodObject<{
|
|
|
13
13
|
limit?: number | undefined;
|
|
14
14
|
}>, z.ZodObject<{
|
|
15
15
|
message: z.ZodString;
|
|
16
|
+
crawlData: z.ZodAny;
|
|
16
17
|
}, "strip", z.ZodTypeAny, {
|
|
17
18
|
message: string;
|
|
19
|
+
crawlData?: any;
|
|
18
20
|
}, {
|
|
19
21
|
message: string;
|
|
22
|
+
crawlData?: any;
|
|
20
23
|
}>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
21
24
|
url: z.ZodString;
|
|
22
25
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"crawl.d.ts","sourceRoot":"","sources":["../../../src/mastra/tools/crawl.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"crawl.d.ts","sourceRoot":"","sources":["../../../src/mastra/tools/crawl.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDAyBhB,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { createTool } from '@mastra/core';
|
|
1
|
+
import { createTool } from '@mastra/core/tools';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
+
import { firecrawl } from '../integrations/index.js';
|
|
3
4
|
export const crawl = createTool({
|
|
4
5
|
id: 'crawler',
|
|
5
6
|
name: 'Crawler Tool',
|
|
@@ -11,14 +12,16 @@ export const crawl = createTool({
|
|
|
11
12
|
}),
|
|
12
13
|
outputSchema: z.object({
|
|
13
14
|
message: z.string(),
|
|
15
|
+
crawlData: z.any(),
|
|
14
16
|
}),
|
|
15
|
-
execute: async ({ context
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
execute: async ({ context }) => {
|
|
18
|
+
const crawlData = firecrawl.getWorkflows({})?.['FIRECRAWL:CRAWL_AND_SYNC']?.createRun();
|
|
19
|
+
await crawlData?.start({
|
|
20
|
+
triggerData: context,
|
|
19
21
|
});
|
|
20
22
|
return {
|
|
21
23
|
message: 'The website has been successfully crawled and chunks have been synced to the database. Finish.',
|
|
24
|
+
crawlData,
|
|
22
25
|
};
|
|
23
26
|
},
|
|
24
27
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const execaTool: import("@mastra/core").Tool<"execaTool", z.ZodObject<{
|
|
2
|
+
export declare const execaTool: import("@mastra/core/tools").Tool<"execaTool", z.ZodObject<{
|
|
3
3
|
command: z.ZodString;
|
|
4
4
|
args: z.ZodArray<z.ZodString, "many">;
|
|
5
5
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execa.d.ts","sourceRoot":"","sources":["../../../src/mastra/tools/execa.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"execa.d.ts","sourceRoot":"","sources":["../../../src/mastra/tools/execa.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;iDA4BpB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createTool } from '@mastra/core';
|
|
1
|
+
import { createTool } from '@mastra/core/tools';
|
|
2
2
|
import chalk from 'chalk';
|
|
3
3
|
import { execa, ExecaError } from 'execa';
|
|
4
4
|
import { Transform } from 'stream';
|
|
@@ -25,6 +25,7 @@ export const execaTool = createTool({
|
|
|
25
25
|
}),
|
|
26
26
|
execute: async ({ context: { command, args } }) => {
|
|
27
27
|
try {
|
|
28
|
+
console.log(chalk.green(`Running command: ${command} ${args.join(' ')}`));
|
|
28
29
|
const p = execa(command, args);
|
|
29
30
|
console.log(`\n`);
|
|
30
31
|
p.stdout.pipe(colorTransform).pipe(process.stdout);
|
package/dist/mastra/tools/fs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const imageTool: import("@mastra/core").Tool<"imageTool", z.ZodObject<{
|
|
2
|
+
export declare const imageTool: import("@mastra/core/tools").Tool<"imageTool", z.ZodObject<{
|
|
3
3
|
directory: z.ZodString;
|
|
4
4
|
prompt: z.ZodString;
|
|
5
5
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../src/mastra/tools/image.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../src/mastra/tools/image.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;iDAgCpB,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createTool } from '@mastra/core';
|
|
3
|
-
import { stabilityai } from "../integrations";
|
|
4
|
-
import { writeFileSync } from "fs";
|
|
5
|
-
import { resolve } from "path";
|
|
1
|
+
import { createTool } from '@mastra/core/tools';
|
|
6
2
|
import chalk from 'chalk';
|
|
3
|
+
import { writeFileSync } from 'fs';
|
|
4
|
+
import { resolve } from 'path';
|
|
5
|
+
import { z } from 'zod';
|
|
6
|
+
import { stabilityai } from '../integrations/index.js';
|
|
7
7
|
export const imageTool = createTool({
|
|
8
8
|
id: 'imageTool',
|
|
9
9
|
name: 'imageTool',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../../src/mastra/tools/mcp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,eAAO,MAAM,KAAK,iBAUhB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MastraMCPClient } from '@mastra/mcp';
|
|
2
|
+
export const slack = new MastraMCPClient({
|
|
3
|
+
name: 'Slack',
|
|
4
|
+
server: {
|
|
5
|
+
command: '/usr/local/bin/docker',
|
|
6
|
+
args: ['run', '-i', '--rm', '-e', 'SLACK_BOT_TOKEN', '-e', 'SLACK_TEAM_ID', 'mcp/slack'],
|
|
7
|
+
env: {
|
|
8
|
+
SLACK_BOT_TOKEN: process.env.SLACK_BOT_TOKEN,
|
|
9
|
+
SLACK_TEAM_ID: process.env.SLACK_TEAM_ID,
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const readPDF: import("@mastra/core").Tool<"readPDF", z.ZodObject<{
|
|
2
|
+
export declare const readPDF: import("@mastra/core/tools").Tool<"readPDF", z.ZodObject<{
|
|
3
3
|
pdfPath: z.ZodString;
|
|
4
4
|
}, "strip", z.ZodTypeAny, {
|
|
5
5
|
pdfPath: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf.d.ts","sourceRoot":"","sources":["../../../src/mastra/tools/pdf.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf.d.ts","sourceRoot":"","sources":["../../../src/mastra/tools/pdf.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;iDAsClB,CAAC"}
|
package/dist/mastra/tools/pdf.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { createTool } from '@mastra/core';
|
|
1
|
+
import { createTool } from '@mastra/core/tools';
|
|
2
2
|
import chalk from 'chalk';
|
|
3
3
|
import { existsSync, readFileSync } from 'fs';
|
|
4
4
|
import path from 'path';
|
|
5
|
-
// @ts-ignore
|
|
6
|
-
import pdfParse from "pdf-parse/lib/pdf-parse.js";
|
|
7
5
|
import { z } from 'zod';
|
|
6
|
+
// @ts-ignore
|
|
7
|
+
import pdfParse from 'pdf-parse/lib/pdf-parse.js';
|
|
8
8
|
export const readPDF = createTool({
|
|
9
9
|
id: 'readPDF',
|
|
10
10
|
name: 'Read PDF',
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const pnpmBuild: import("@mastra/core/tools").Tool<"pnpmBuild", z.ZodObject<{
|
|
3
|
+
name: z.ZodString;
|
|
4
|
+
packagePath: z.ZodString;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
name: string;
|
|
7
|
+
packagePath: string;
|
|
8
|
+
}, {
|
|
9
|
+
name: string;
|
|
10
|
+
packagePath: string;
|
|
11
|
+
}>, z.ZodObject<{
|
|
12
|
+
message: z.ZodString;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
message: string;
|
|
15
|
+
}, {
|
|
16
|
+
message: string;
|
|
17
|
+
}>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
18
|
+
name: z.ZodString;
|
|
19
|
+
packagePath: z.ZodString;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
name: string;
|
|
22
|
+
packagePath: string;
|
|
23
|
+
}, {
|
|
24
|
+
name: string;
|
|
25
|
+
packagePath: string;
|
|
26
|
+
}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
27
|
+
export declare const pnpmChangesetStatus: import("@mastra/core/tools").Tool<"pnpmChangesetStatus", z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, z.ZodObject<{
|
|
28
|
+
message: z.ZodArray<z.ZodString, "many">;
|
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
|
30
|
+
message: string[];
|
|
31
|
+
}, {
|
|
32
|
+
message: string[];
|
|
33
|
+
}>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
34
|
+
export declare const pnpmChangesetPublish: import("@mastra/core/tools").Tool<"pnpmChangesetPublish", z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, z.ZodObject<{
|
|
35
|
+
message: z.ZodString;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
message: string;
|
|
38
|
+
}, {
|
|
39
|
+
message: string;
|
|
40
|
+
}>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
41
|
+
export declare const activeDistTag: import("@mastra/core/tools").Tool<"activeDistTag", z.ZodObject<{
|
|
42
|
+
packagePath: z.ZodString;
|
|
43
|
+
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
packagePath: string;
|
|
45
|
+
}, {
|
|
46
|
+
packagePath: string;
|
|
47
|
+
}>, z.ZodObject<{
|
|
48
|
+
message: z.ZodString;
|
|
49
|
+
}, "strip", z.ZodTypeAny, {
|
|
50
|
+
message: string;
|
|
51
|
+
}, {
|
|
52
|
+
message: string;
|
|
53
|
+
}>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
|
|
54
|
+
packagePath: z.ZodString;
|
|
55
|
+
}, "strip", z.ZodTypeAny, {
|
|
56
|
+
packagePath: string;
|
|
57
|
+
}, {
|
|
58
|
+
packagePath: string;
|
|
59
|
+
}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
60
|
+
//# sourceMappingURL=pnpm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pnpm.d.ts","sourceRoot":"","sources":["../../../src/mastra/tools/pnpm.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;iDA8BpB,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;6IA6B9B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;6IA0B/B,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;iDA8BxB,CAAC"}
|