@mastra/dane 0.0.2-alpha.98 → 0.0.2

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.
Files changed (106) hide show
  1. package/package.json +12 -10
  2. package/dist/commands/changelog.d.ts +0 -2
  3. package/dist/commands/changelog.d.ts.map +0 -1
  4. package/dist/commands/changelog.js +0 -15
  5. package/dist/commands/commit-message.d.ts +0 -2
  6. package/dist/commands/commit-message.d.ts.map +0 -1
  7. package/dist/commands/commit-message.js +0 -32
  8. package/dist/commands/config.d.ts +0 -3
  9. package/dist/commands/config.d.ts.map +0 -1
  10. package/dist/commands/config.js +0 -40
  11. package/dist/commands/issue-labeler.d.ts +0 -2
  12. package/dist/commands/issue-labeler.d.ts.map +0 -1
  13. package/dist/commands/issue-labeler.js +0 -35
  14. package/dist/commands/link-checker.d.ts +0 -4
  15. package/dist/commands/link-checker.d.ts.map +0 -1
  16. package/dist/commands/link-checker.js +0 -16
  17. package/dist/commands/message.d.ts +0 -2
  18. package/dist/commands/message.d.ts.map +0 -1
  19. package/dist/commands/message.js +0 -14
  20. package/dist/commands/new-contributor-message.d.ts +0 -2
  21. package/dist/commands/new-contributor-message.d.ts.map +0 -1
  22. package/dist/commands/new-contributor-message.js +0 -43
  23. package/dist/commands/publish-packages.d.ts +0 -2
  24. package/dist/commands/publish-packages.d.ts.map +0 -1
  25. package/dist/commands/publish-packages.js +0 -11
  26. package/dist/commands/telephone-game.d.ts +0 -2
  27. package/dist/commands/telephone-game.d.ts.map +0 -1
  28. package/dist/commands/telephone-game.js +0 -32
  29. package/dist/config/index.d.ts +0 -12
  30. package/dist/config/index.d.ts.map +0 -1
  31. package/dist/config/index.js +0 -75
  32. package/dist/index.d.ts +0 -3
  33. package/dist/index.d.ts.map +0 -1
  34. package/dist/index.js +0 -37
  35. package/dist/mastra/agents/index.d.ts +0 -199
  36. package/dist/mastra/agents/index.d.ts.map +0 -1
  37. package/dist/mastra/agents/index.js +0 -113
  38. package/dist/mastra/agents/model.d.ts +0 -7
  39. package/dist/mastra/agents/model.d.ts.map +0 -1
  40. package/dist/mastra/agents/model.js +0 -7
  41. package/dist/mastra/agents/new-contributor.d.ts +0 -3
  42. package/dist/mastra/agents/new-contributor.d.ts.map +0 -1
  43. package/dist/mastra/agents/new-contributor.js +0 -12
  44. package/dist/mastra/agents/package-publisher.d.ts +0 -65
  45. package/dist/mastra/agents/package-publisher.d.ts.map +0 -1
  46. package/dist/mastra/agents/package-publisher.js +0 -168
  47. package/dist/mastra/index.d.ts +0 -325
  48. package/dist/mastra/index.d.ts.map +0 -1
  49. package/dist/mastra/index.js +0 -42
  50. package/dist/mastra/integrations/index.d.ts +0 -7
  51. package/dist/mastra/integrations/index.d.ts.map +0 -1
  52. package/dist/mastra/integrations/index.js +0 -29
  53. package/dist/mastra/tools/browser.d.ts +0 -40
  54. package/dist/mastra/tools/browser.d.ts.map +0 -1
  55. package/dist/mastra/tools/browser.js +0 -116
  56. package/dist/mastra/tools/calendar.d.ts +0 -21
  57. package/dist/mastra/tools/calendar.d.ts.map +0 -1
  58. package/dist/mastra/tools/calendar.js +0 -134
  59. package/dist/mastra/tools/crawl.d.ts +0 -36
  60. package/dist/mastra/tools/crawl.d.ts.map +0 -1
  61. package/dist/mastra/tools/crawl.js +0 -27
  62. package/dist/mastra/tools/execa.d.ts +0 -27
  63. package/dist/mastra/tools/execa.d.ts.map +0 -1
  64. package/dist/mastra/tools/execa.js +0 -43
  65. package/dist/mastra/tools/fs.d.ts +0 -33
  66. package/dist/mastra/tools/fs.d.ts.map +0 -1
  67. package/dist/mastra/tools/fs.js +0 -36
  68. package/dist/mastra/tools/image.d.ts +0 -27
  69. package/dist/mastra/tools/image.d.ts.map +0 -1
  70. package/dist/mastra/tools/image.js +0 -37
  71. package/dist/mastra/tools/mcp.d.ts +0 -3
  72. package/dist/mastra/tools/mcp.d.ts.map +0 -1
  73. package/dist/mastra/tools/mcp.js +0 -12
  74. package/dist/mastra/tools/pdf.d.ts +0 -21
  75. package/dist/mastra/tools/pdf.d.ts.map +0 -1
  76. package/dist/mastra/tools/pdf.js +0 -42
  77. package/dist/mastra/tools/pnpm.d.ts +0 -60
  78. package/dist/mastra/tools/pnpm.d.ts.map +0 -1
  79. package/dist/mastra/tools/pnpm.js +0 -127
  80. package/dist/mastra/workflows/changelog.d.ts +0 -10
  81. package/dist/mastra/workflows/changelog.d.ts.map +0 -1
  82. package/dist/mastra/workflows/changelog.js +0 -149
  83. package/dist/mastra/workflows/chat.d.ts +0 -13
  84. package/dist/mastra/workflows/chat.d.ts.map +0 -1
  85. package/dist/mastra/workflows/chat.js +0 -88
  86. package/dist/mastra/workflows/commit-message.d.ts +0 -10
  87. package/dist/mastra/workflows/commit-message.d.ts.map +0 -1
  88. package/dist/mastra/workflows/commit-message.js +0 -138
  89. package/dist/mastra/workflows/first-contributor.d.ts +0 -16
  90. package/dist/mastra/workflows/first-contributor.d.ts.map +0 -1
  91. package/dist/mastra/workflows/first-contributor.js +0 -122
  92. package/dist/mastra/workflows/index.d.ts +0 -4
  93. package/dist/mastra/workflows/index.d.ts.map +0 -1
  94. package/dist/mastra/workflows/index.js +0 -3
  95. package/dist/mastra/workflows/issue-labeler.d.ts +0 -16
  96. package/dist/mastra/workflows/issue-labeler.d.ts.map +0 -1
  97. package/dist/mastra/workflows/issue-labeler.js +0 -85
  98. package/dist/mastra/workflows/link-checker.d.ts +0 -13
  99. package/dist/mastra/workflows/link-checker.d.ts.map +0 -1
  100. package/dist/mastra/workflows/link-checker.js +0 -102
  101. package/dist/mastra/workflows/publish-packages.d.ts +0 -3
  102. package/dist/mastra/workflows/publish-packages.d.ts.map +0 -1
  103. package/dist/mastra/workflows/publish-packages.js +0 -257
  104. package/dist/mastra/workflows/telephone-game.d.ts +0 -3
  105. package/dist/mastra/workflows/telephone-game.d.ts.map +0 -1
  106. package/dist/mastra/workflows/telephone-game.js +0 -95
@@ -1,325 +0,0 @@
1
- import { Mastra } from '@mastra/core';
2
- export declare const mastra: Mastra<{
3
- dane: import("@mastra/core").Agent<{
4
- fsTool: import("@mastra/core").Tool<"fsTool", import("zod").ZodObject<{
5
- action: import("zod").ZodString;
6
- file: import("zod").ZodString;
7
- data: import("zod").ZodString;
8
- }, "strip", import("zod").ZodTypeAny, {
9
- data: string;
10
- action: string;
11
- file: string;
12
- }, {
13
- data: string;
14
- action: string;
15
- file: string;
16
- }>, import("zod").ZodObject<{
17
- message: import("zod").ZodString;
18
- }, "strip", import("zod").ZodTypeAny, {
19
- message: string;
20
- }, {
21
- message: string;
22
- }>, import("@mastra/core").ToolExecutionContext<import("zod").ZodObject<{
23
- action: import("zod").ZodString;
24
- file: import("zod").ZodString;
25
- data: import("zod").ZodString;
26
- }, "strip", import("zod").ZodTypeAny, {
27
- data: string;
28
- action: string;
29
- file: string;
30
- }, {
31
- data: string;
32
- action: string;
33
- file: string;
34
- }>, import("@mastra/core").WorkflowContext<any>>>;
35
- execaTool: import("@mastra/core").Tool<"execaTool", import("zod").ZodObject<{
36
- command: import("zod").ZodString;
37
- args: import("zod").ZodArray<import("zod").ZodString, "many">;
38
- }, "strip", import("zod").ZodTypeAny, {
39
- command: string;
40
- args: string[];
41
- }, {
42
- command: string;
43
- args: string[];
44
- }>, import("zod").ZodObject<{
45
- message: import("zod").ZodString;
46
- }, "strip", import("zod").ZodTypeAny, {
47
- message: string;
48
- }, {
49
- message: string;
50
- }>, import("@mastra/core").ToolExecutionContext<import("zod").ZodObject<{
51
- command: import("zod").ZodString;
52
- args: import("zod").ZodArray<import("zod").ZodString, "many">;
53
- }, "strip", import("zod").ZodTypeAny, {
54
- command: string;
55
- args: string[];
56
- }, {
57
- command: string;
58
- args: string[];
59
- }>, import("@mastra/core").WorkflowContext<any>>>;
60
- browserTool: import("@mastra/core").Tool<"browserTool", import("zod").ZodObject<{
61
- url: import("zod").ZodString;
62
- }, "strip", import("zod").ZodTypeAny, {
63
- url: string;
64
- }, {
65
- url: string;
66
- }>, import("zod").ZodObject<{
67
- message: import("zod").ZodString;
68
- }, "strip", import("zod").ZodTypeAny, {
69
- message: string;
70
- }, {
71
- message: string;
72
- }>, import("@mastra/core").ToolExecutionContext<import("zod").ZodObject<{
73
- url: import("zod").ZodString;
74
- }, "strip", import("zod").ZodTypeAny, {
75
- url: string;
76
- }, {
77
- url: string;
78
- }>, import("@mastra/core").WorkflowContext<any>>>;
79
- googleSearch: import("@mastra/core").Tool<"googleSearch", import("zod").ZodObject<{
80
- query: import("zod").ZodString;
81
- }, "strip", import("zod").ZodTypeAny, {
82
- query: string;
83
- }, {
84
- query: string;
85
- }>, import("zod").ZodObject<{
86
- message: import("zod").ZodString;
87
- }, "strip", import("zod").ZodTypeAny, {
88
- message: string;
89
- }, {
90
- message: string;
91
- }>, import("@mastra/core").ToolExecutionContext<import("zod").ZodObject<{
92
- query: import("zod").ZodString;
93
- }, "strip", import("zod").ZodTypeAny, {
94
- query: string;
95
- }, {
96
- query: string;
97
- }>, import("@mastra/core").WorkflowContext<any>>>;
98
- readPDF: import("@mastra/core").Tool<"readPDF", import("zod").ZodObject<{
99
- pdfPath: import("zod").ZodString;
100
- }, "strip", import("zod").ZodTypeAny, {
101
- pdfPath: string;
102
- }, {
103
- pdfPath: string;
104
- }>, import("zod").ZodObject<{
105
- content: import("zod").ZodString;
106
- }, "strip", import("zod").ZodTypeAny, {
107
- content: string;
108
- }, {
109
- content: string;
110
- }>, import("@mastra/core").ToolExecutionContext<import("zod").ZodObject<{
111
- pdfPath: import("zod").ZodString;
112
- }, "strip", import("zod").ZodTypeAny, {
113
- pdfPath: string;
114
- }, {
115
- pdfPath: string;
116
- }>, import("@mastra/core").WorkflowContext<any>>>;
117
- listEvents: import("@mastra/core").Tool<"listEvents", import("zod").ZodObject<{
118
- startDate: import("zod").ZodString;
119
- }, "strip", import("zod").ZodTypeAny, {
120
- startDate: string;
121
- }, {
122
- startDate: string;
123
- }>, import("zod").ZodObject<{
124
- content: import("zod").ZodString;
125
- }, "strip", import("zod").ZodTypeAny, {
126
- content: string;
127
- }, {
128
- content: string;
129
- }>, import("@mastra/core").ToolExecutionContext<import("zod").ZodObject<{
130
- startDate: import("zod").ZodString;
131
- }, "strip", import("zod").ZodTypeAny, {
132
- startDate: string;
133
- }, {
134
- startDate: string;
135
- }>, import("@mastra/core").WorkflowContext<any>>>;
136
- crawl: import("@mastra/core").Tool<"crawler", import("zod").ZodObject<{
137
- url: import("zod").ZodString;
138
- limit: import("zod").ZodDefault<import("zod").ZodNumber>;
139
- pathRegex: import("zod").ZodNullable<import("zod").ZodString>;
140
- }, "strip", import("zod").ZodTypeAny, {
141
- url: string;
142
- limit: number;
143
- pathRegex: string | null;
144
- }, {
145
- url: string;
146
- pathRegex: string | null;
147
- limit?: number | undefined;
148
- }>, import("zod").ZodObject<{
149
- message: import("zod").ZodString;
150
- crawlData: import("zod").ZodAny;
151
- }, "strip", import("zod").ZodTypeAny, {
152
- message: string;
153
- crawlData?: any;
154
- }, {
155
- message: string;
156
- crawlData?: any;
157
- }>, import("@mastra/core").ToolExecutionContext<import("zod").ZodObject<{
158
- url: import("zod").ZodString;
159
- limit: import("zod").ZodDefault<import("zod").ZodNumber>;
160
- pathRegex: import("zod").ZodNullable<import("zod").ZodString>;
161
- }, "strip", import("zod").ZodTypeAny, {
162
- url: string;
163
- limit: number;
164
- pathRegex: string | null;
165
- }, {
166
- url: string;
167
- pathRegex: string | null;
168
- limit?: number | undefined;
169
- }>, import("@mastra/core").WorkflowContext<any>>>;
170
- imageTool: import("@mastra/core").Tool<"imageTool", import("zod").ZodObject<{
171
- directory: import("zod").ZodString;
172
- prompt: import("zod").ZodString;
173
- }, "strip", import("zod").ZodTypeAny, {
174
- directory: string;
175
- prompt: string;
176
- }, {
177
- directory: string;
178
- prompt: string;
179
- }>, import("zod").ZodObject<{
180
- message: import("zod").ZodString;
181
- }, "strip", import("zod").ZodTypeAny, {
182
- message: string;
183
- }, {
184
- message: string;
185
- }>, import("@mastra/core").ToolExecutionContext<import("zod").ZodObject<{
186
- directory: import("zod").ZodString;
187
- prompt: import("zod").ZodString;
188
- }, "strip", import("zod").ZodTypeAny, {
189
- directory: string;
190
- prompt: string;
191
- }, {
192
- directory: string;
193
- prompt: string;
194
- }>, import("@mastra/core").WorkflowContext<any>>>;
195
- }, Record<string, import("@mastra/core").Metric>>;
196
- danePackagePublisher: import("@mastra/core").Agent<{
197
- pnpmChangesetStatus: import("@mastra/core").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").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").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").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<Record<string, import("@mastra/core").ToolAction<any, any, any, any>>, Record<string, import("@mastra/core").Metric>>;
257
- daneIssueLabeler: import("@mastra/core").Agent<Record<string, import("@mastra/core").ToolAction<any, any, any, any>>, Record<string, import("@mastra/core").Metric>>;
258
- daneCommitMessage: import("@mastra/core").Agent<Record<string, import("@mastra/core").ToolAction<any, any, any, any>>, Record<string, import("@mastra/core").Metric>>;
259
- daneChangeLog: import("@mastra/core").Agent<Record<string, import("@mastra/core").ToolAction<any, any, any, any>>, Record<string, import("@mastra/core").Metric>>;
260
- daneNewContributor: import("@mastra/core").Agent<{}, Record<string, import("@mastra/core").Metric>>;
261
- }, {
262
- message: import("@mastra/core").Workflow<any, import("zod").ZodObject<{
263
- resourceid: import("zod").ZodString;
264
- threadId: import("zod").ZodString;
265
- }, "strip", import("zod").ZodTypeAny, {
266
- resourceid: string;
267
- threadId: string;
268
- }, {
269
- resourceid: string;
270
- threadId: string;
271
- }>>;
272
- githubIssueLabeler: import("@mastra/core").Workflow<any, import("zod").ZodObject<{
273
- repo: import("zod").ZodString;
274
- owner: import("zod").ZodString;
275
- issue_number: import("zod").ZodNumber;
276
- }, "strip", import("zod").ZodTypeAny, {
277
- repo: string;
278
- owner: string;
279
- issue_number: number;
280
- }, {
281
- repo: string;
282
- owner: string;
283
- issue_number: number;
284
- }>>;
285
- commitMessage: import("@mastra/core").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").Workflow<any, any>;
293
- telephoneGame: import("@mastra/core").Workflow<any, any>;
294
- changelog: import("@mastra/core").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").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").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").MastraVector>, Record<string, import("@mastra/core").MastraTTS>, import("@mastra/core").Logger>;
325
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mastra/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAkBtC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wIA0BjB,CAAC"}
@@ -1,42 +0,0 @@
1
- import { Mastra } from '@mastra/core';
2
- import { PostgresEngine } from '@mastra/engine';
3
- import { UpstashKVMemory } from '@mastra/memory';
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';
13
- const engine = new PostgresEngine({
14
- url: 'postgres://postgres:postgres@localhost:5433/mastra',
15
- });
16
- export const mastra = new Mastra({
17
- agents: {
18
- dane,
19
- danePackagePublisher,
20
- daneLinkChecker,
21
- daneIssueLabeler,
22
- daneCommitMessage,
23
- daneChangeLog,
24
- daneNewContributor,
25
- },
26
- engine,
27
- memory: new UpstashKVMemory({
28
- url: 'http://localhost:8079',
29
- token: `example_token`,
30
- maxTokens: 39000,
31
- }),
32
- workflows: {
33
- message: messageWorkflow,
34
- githubIssueLabeler: githubIssueLabeler,
35
- commitMessage: commitMessageGenerator,
36
- packagePublisher: packagePublisher,
37
- telephoneGame: telephoneGameWorkflow,
38
- changelog: changelogWorkflow,
39
- githubFirstContributorMessage: githubFirstContributorMessage,
40
- linkChecker: linkCheckerWorkflow,
41
- },
42
- });
@@ -1,7 +0,0 @@
1
- import { FirecrawlIntegration } from "@mastra/firecrawl";
2
- import { GithubIntegration } from "@mastra/github";
3
- import { StabilityAiIntegration } from "@mastra/stabilityai";
4
- export declare const firecrawl: FirecrawlIntegration;
5
- export declare const github: GithubIntegration;
6
- export declare const stabilityai: StabilityAiIntegration;
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
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,29 +0,0 @@
1
- import { FirecrawlIntegration } from "@mastra/firecrawl";
2
- import { GithubIntegration } from "@mastra/github";
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
- };
15
- export const firecrawl = new FirecrawlIntegration({
16
- config: {
17
- API_KEY: getApiKey('FIRECRAWL_API_KEY', 'FIRECRAWL_API_KEY'),
18
- },
19
- });
20
- export const github = new GithubIntegration({
21
- config: {
22
- PERSONAL_ACCESS_TOKEN: getApiKey('GITHUB_PERSONAL_ACCESS_TOKEN', 'GITHUB_PERSONAL_ACCESS_TOKEN'),
23
- }
24
- });
25
- export const stabilityai = new StabilityAiIntegration({
26
- config: {
27
- API_KEY: getApiKey('STABILITYAI_API_KEY', 'STABILITYAI_API_KEY'),
28
- }
29
- });
@@ -1,40 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const browserTool: import("@mastra/core").Tool<"browserTool", z.ZodObject<{
3
- url: z.ZodString;
4
- }, "strip", z.ZodTypeAny, {
5
- url: string;
6
- }, {
7
- url: string;
8
- }>, z.ZodObject<{
9
- message: z.ZodString;
10
- }, "strip", z.ZodTypeAny, {
11
- message: string;
12
- }, {
13
- message: string;
14
- }>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
15
- url: z.ZodString;
16
- }, "strip", z.ZodTypeAny, {
17
- url: string;
18
- }, {
19
- url: string;
20
- }>, import("@mastra/core").WorkflowContext<any>>>;
21
- export declare const googleSearch: import("@mastra/core").Tool<"googleSearch", z.ZodObject<{
22
- query: z.ZodString;
23
- }, "strip", z.ZodTypeAny, {
24
- query: string;
25
- }, {
26
- query: string;
27
- }>, z.ZodObject<{
28
- message: z.ZodString;
29
- }, "strip", z.ZodTypeAny, {
30
- message: string;
31
- }, {
32
- message: string;
33
- }>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
34
- query: z.ZodString;
35
- }, "strip", z.ZodTypeAny, {
36
- query: string;
37
- }, {
38
- query: string;
39
- }>, import("@mastra/core").WorkflowContext<any>>>;
40
- //# sourceMappingURL=browser.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../../src/mastra/tools/browser.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;iDAoDtB,CAAC;AAEH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;iDAqEvB,CAAC"}
@@ -1,116 +0,0 @@
1
- import { createTool } from '@mastra/core';
2
- import { MDocument } from '@mastra/rag';
3
- import chalk from 'chalk';
4
- import { chromium } from 'playwright-core';
5
- import { z } from 'zod';
6
- export const browserTool = createTool({
7
- id: 'browserTool',
8
- name: 'Browser Tool',
9
- description: 'Browser Tool, opens a browser and navigates to a url capturing the content',
10
- inputSchema: z.object({
11
- url: z.string(),
12
- }),
13
- outputSchema: z.object({
14
- message: z.string(),
15
- }),
16
- execute: async ({ context: { url } }) => {
17
- try {
18
- const browser = await chromium.launch({
19
- headless: true,
20
- });
21
- const page = await browser.newPage();
22
- await page.goto(url);
23
- const docs = MDocument.fromHTML(await page.content());
24
- await docs.chunk({
25
- strategy: 'html',
26
- size: 300,
27
- sections: [
28
- ['h1', 'Header 1'],
29
- ['h2', 'Header 2'],
30
- ['h3', 'Header 3'],
31
- ['h4', 'Header 4'],
32
- ['h5', 'Header 5'],
33
- ['h6', 'Header 6'],
34
- ['p', 'Paragraph'],
35
- ],
36
- });
37
- await page.close();
38
- await browser.close();
39
- if (!docs.getText().length) {
40
- return { message: 'No content' };
41
- }
42
- return { message: docs.getText().join('\n') };
43
- }
44
- catch (e) {
45
- if (e instanceof Error) {
46
- console.log(`\n${chalk.red(e.message)}`);
47
- return { message: `Error: ${e.message}` };
48
- }
49
- return { message: 'Error' };
50
- }
51
- },
52
- });
53
- export const googleSearch = createTool({
54
- id: 'googleSearch',
55
- name: 'Google Search',
56
- description: 'Google Search. Passes the query to Google and returns the search results.',
57
- inputSchema: z.object({
58
- query: z.string(),
59
- }),
60
- outputSchema: z.object({
61
- message: z.string(),
62
- }),
63
- execute: async ({ context: { query } }) => {
64
- let browser;
65
- try {
66
- browser = await chromium.launch({
67
- headless: true,
68
- });
69
- }
70
- catch (e) {
71
- if (e instanceof Error) {
72
- console.log(`\n${chalk.red(e.message)}`);
73
- return { message: `Error: ${e.message}` };
74
- }
75
- return { message: 'Error' };
76
- }
77
- try {
78
- const page = await browser.newPage();
79
- await page.goto(`https://www.google.com/search?q=${encodeURIComponent(query)}`);
80
- console.log(`\n`);
81
- console.log(chalk.blue('Waiting for search results...'));
82
- try {
83
- await page.click('button:has-text("Accept all")', { timeout: 5000 });
84
- }
85
- catch (e) {
86
- // Cookie dialog didn't appear, continue
87
- }
88
- // Wait for results and click first organic result
89
- await page.waitForSelector('#search');
90
- const text = await page.evaluate(() => {
91
- const links = [];
92
- const searchResults = document.querySelectorAll('div.g a');
93
- searchResults.forEach(link => {
94
- const href = link.getAttribute('href');
95
- if (href && href.startsWith('http')) {
96
- links.push(href);
97
- }
98
- });
99
- return links;
100
- });
101
- await page.close();
102
- await browser.close();
103
- if (!text.length) {
104
- return { message: 'No results' };
105
- }
106
- return { message: text.join('\n') };
107
- }
108
- catch (e) {
109
- if (e instanceof Error) {
110
- console.log(`\n${chalk.red(e.message)}`);
111
- return { message: `Error: ${e.message}` };
112
- }
113
- return { message: `Error` };
114
- }
115
- },
116
- });
@@ -1,21 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const listEvents: import("@mastra/core").Tool<"listEvents", z.ZodObject<{
3
- startDate: z.ZodString;
4
- }, "strip", z.ZodTypeAny, {
5
- startDate: string;
6
- }, {
7
- startDate: string;
8
- }>, z.ZodObject<{
9
- content: z.ZodString;
10
- }, "strip", z.ZodTypeAny, {
11
- content: string;
12
- }, {
13
- content: string;
14
- }>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
15
- startDate: z.ZodString;
16
- }, "strip", z.ZodTypeAny, {
17
- startDate: string;
18
- }, {
19
- startDate: string;
20
- }>, import("@mastra/core").WorkflowContext<any>>>;
21
- //# sourceMappingURL=calendar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../../src/mastra/tools/calendar.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqGxB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;iDAgDrB,CAAC"}