@mastra/dane 0.0.2-alpha.2 → 0.0.2-alpha.3

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 (51) hide show
  1. package/dist/commands/issue-labeler.d.ts +1 -0
  2. package/dist/commands/issue-labeler.js +18 -0
  3. package/dist/commands/message.d.ts +1 -0
  4. package/dist/commands/message.js +12 -0
  5. package/dist/index.d.ts +2 -0
  6. package/{src/index.ts → dist/index.js} +0 -5
  7. package/dist/mastra/agents/index.d.ts +167 -0
  8. package/{src/mastra/agents/index.ts → dist/mastra/agents/index.js} +25 -28
  9. package/dist/mastra/index.d.ts +195 -0
  10. package/dist/mastra/index.js +29 -0
  11. package/dist/mastra/integrations/index.d.ts +4 -0
  12. package/{src/mastra/integrations/index.ts → dist/mastra/integrations/index.js} +3 -5
  13. package/dist/mastra/tools/browser.d.ts +39 -0
  14. package/dist/mastra/tools/browser.js +118 -0
  15. package/dist/mastra/tools/calendar.d.ts +20 -0
  16. package/dist/mastra/tools/calendar.js +134 -0
  17. package/dist/mastra/tools/crawl.d.ts +32 -0
  18. package/dist/mastra/tools/crawl.js +24 -0
  19. package/dist/mastra/tools/execa.d.ts +26 -0
  20. package/dist/mastra/tools/execa.js +39 -0
  21. package/dist/mastra/tools/fs.d.ts +32 -0
  22. package/dist/mastra/tools/fs.js +36 -0
  23. package/dist/mastra/tools/pdf.d.ts +20 -0
  24. package/dist/mastra/tools/pdf.js +41 -0
  25. package/dist/mastra/workflows/chat.d.ts +12 -0
  26. package/dist/mastra/workflows/chat.js +93 -0
  27. package/dist/mastra/workflows/index.js +2 -0
  28. package/dist/mastra/workflows/issue-labeler.d.ts +15 -0
  29. package/dist/mastra/workflows/issue-labeler.js +85 -0
  30. package/package.json +8 -5
  31. package/CHANGELOG.md +0 -37
  32. package/docker-compose.yaml +0 -22
  33. package/src/commands/issue-labeler.ts +0 -26
  34. package/src/commands/message.ts +0 -16
  35. package/src/mastra/index.ts +0 -32
  36. package/src/mastra/tools/browser.ts +0 -132
  37. package/src/mastra/tools/calendar.ts +0 -154
  38. package/src/mastra/tools/crawl.ts +0 -26
  39. package/src/mastra/tools/execa.ts +0 -41
  40. package/src/mastra/tools/fs.ts +0 -36
  41. package/src/mastra/tools/pdf.ts +0 -46
  42. package/src/mastra/workflows/chat.ts +0 -111
  43. package/src/mastra/workflows/issue-labeler.ts +0 -104
  44. package/test/data/05-versions-space.pdf +0 -0
  45. package/test/data/05-versions-space.pdf.txt +0 -42
  46. package/test-files/roman.md +0 -79
  47. package/test-files/sample-1.pdf +0 -0
  48. package/test-files/taxes/2022.txt +0 -45
  49. package/test-files/taxes/2023.txt +0 -44
  50. package/tsconfig.json +0 -11
  51. /package/{src/mastra/workflows/index.ts → dist/mastra/workflows/index.d.ts} +0 -0
@@ -0,0 +1 @@
1
+ export declare function issueLabelerCommand(): Promise<void>;
@@ -0,0 +1,18 @@
1
+ import chalk from 'chalk';
2
+ import { mastra } from '../mastra/index.js';
3
+ export async function issueLabelerCommand() {
4
+ console.log(chalk.green("Hi! I'm Dane!"));
5
+ console.log(chalk.green('Let me label this for you..\n'));
6
+ const result = await mastra.getWorkflow('githubIssueLabeler').execute({
7
+ triggerData: {
8
+ issue_number: parseInt(process.env.ISSUE_NUMBER, 10),
9
+ owner: process.env.OWNER,
10
+ repo: process.env.REPO,
11
+ },
12
+ });
13
+ if (result.results?.labelIssue?.status !== 'success') {
14
+ console.error(chalk.red(`Failed to apply labels for issue: ${result.triggerData?.issue_number}`));
15
+ return;
16
+ }
17
+ console.log(chalk.green(`Issue: ${result.triggerData?.issue_number} has been labeled with: ${result.results?.labelIssue?.payload?.labels.join(', ')}`));
18
+ }
@@ -0,0 +1 @@
1
+ export declare function message(): Promise<void>;
@@ -0,0 +1,12 @@
1
+ import chalk from 'chalk';
2
+ import { mastra } from '../mastra/index.js';
3
+ export async function message() {
4
+ console.log(chalk.green("Hi! I'm Dane!"));
5
+ console.log(chalk.green('What would you like to do today?\n'));
6
+ console.log(await mastra.getWorkflow('message').execute({
7
+ triggerData: {
8
+ resourceid: 'f8b5c3a1-d6e7-4f9c-b2a3-1d8e4c7f9b5a',
9
+ threadId: '2d9e8c7f-6b5a-4d3c-8f1e-9b7d5c3a2e8h',
10
+ },
11
+ }));
12
+ }
@@ -0,0 +1,2 @@
1
+ #! /usr/bin/env node
2
+ export {};
@@ -1,13 +1,8 @@
1
1
  #! /usr/bin/env node
2
2
  import { Command } from 'commander';
3
-
4
3
  import { issueLabelerCommand } from './commands/issue-labeler.js';
5
4
  import { message } from './commands/message.js';
6
-
7
5
  const program = new Command();
8
-
9
6
  program.command('chat').action(message);
10
-
11
7
  program.command('issue-labeler').action(issueLabelerCommand);
12
-
13
8
  program.parse(process.argv);
@@ -0,0 +1,167 @@
1
+ import { Agent } from '@mastra/core';
2
+ export declare const daneIssueLabeler: Agent<Record<string, import("@mastra/core").ToolAction<any, any, any, any>>>;
3
+ export declare const dane: 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
+ }, "strip", import("zod").ZodTypeAny, {
151
+ message: string;
152
+ }, {
153
+ message: string;
154
+ }>, import("@mastra/core").ToolExecutionContext<import("zod").ZodObject<{
155
+ url: import("zod").ZodString;
156
+ limit: import("zod").ZodDefault<import("zod").ZodNumber>;
157
+ pathRegex: import("zod").ZodNullable<import("zod").ZodString>;
158
+ }, "strip", import("zod").ZodTypeAny, {
159
+ url: string;
160
+ limit: number;
161
+ pathRegex: string | null;
162
+ }, {
163
+ url: string;
164
+ pathRegex: string | null;
165
+ limit?: number | undefined;
166
+ }>, import("@mastra/core").WorkflowContext<any>>>;
167
+ }>;
@@ -1,28 +1,25 @@
1
1
  import { Agent } from '@mastra/core';
2
-
3
2
  import { browserTool, googleSearch } from '../tools/browser.js';
4
3
  import { listEvents } from '../tools/calendar.js';
5
4
  import { crawl } from '../tools/crawl.js';
6
5
  import { execaTool } from '../tools/execa.js';
7
6
  import { fsTool } from '../tools/fs.js';
8
7
  import { readPDF } from '../tools/pdf.js';
9
-
10
8
  export const daneIssueLabeler = new Agent({
11
- name: 'DaneIssueLabeler',
12
- instructions: `
9
+ name: 'DaneIssueLabeler',
10
+ instructions: `
13
11
  You are Dane, the ultimate GitHub operator.
14
12
  You help engineers label their issues.
15
13
  `,
16
- model: {
17
- provider: 'ANTHROPIC',
18
- toolChoice: 'auto',
19
- name: 'claude-3-5-sonnet-20241022',
20
- },
14
+ model: {
15
+ provider: 'ANTHROPIC',
16
+ toolChoice: 'auto',
17
+ name: 'claude-3-5-sonnet-20241022',
18
+ },
21
19
  });
22
-
23
20
  export const dane = new Agent({
24
- name: 'Dane',
25
- instructions: `
21
+ name: 'Dane',
22
+ instructions: `
26
23
  You are Dane, my assistant and one of my best friends. We are an ace team!
27
24
  You help me with my code, write tests, and even deploy my code to the cloud!
28
25
 
@@ -60,20 +57,20 @@ export const dane = new Agent({
60
57
  * Don't reference tools when you communicate with the user. Do not mention what tools you are using.
61
58
  * Tell the user what you are doing.
62
59
  `,
63
- model: {
64
- provider: 'ANTHROPIC',
65
- toolChoice: 'auto',
66
- name: 'claude-3-5-sonnet-20241022',
67
- },
68
- tools: {
69
- fsTool,
70
- execaTool,
71
- browserTool,
72
- googleSearch,
73
- readPDF,
74
- listEvents,
75
- crawl,
76
- // TODO I SHOULD BE ABLE TO PASS A WORKFLOW EXECUTE HERE
77
- // browserAgentRelay,
78
- },
60
+ model: {
61
+ provider: 'ANTHROPIC',
62
+ toolChoice: 'auto',
63
+ name: 'claude-3-5-sonnet-20241022',
64
+ },
65
+ tools: {
66
+ fsTool,
67
+ execaTool,
68
+ browserTool,
69
+ googleSearch,
70
+ readPDF,
71
+ listEvents,
72
+ crawl,
73
+ // TODO I SHOULD BE ABLE TO PASS A WORKFLOW EXECUTE HERE
74
+ // browserAgentRelay,
75
+ },
79
76
  });
@@ -0,0 +1,195 @@
1
+ import { Mastra } from '@mastra/core';
2
+ export declare const mastra: Mastra<{
3
+ [x: string]: import("@mastra/core").SyncAction<any, any, any, any>;
4
+ }, {
5
+ dane: import("@mastra/core").Agent<{
6
+ fsTool: import("@mastra/core").Tool<"fsTool", import("zod").ZodObject<{
7
+ action: import("zod").ZodString;
8
+ file: import("zod").ZodString;
9
+ data: import("zod").ZodString;
10
+ }, "strip", import("zod").ZodTypeAny, {
11
+ data: string;
12
+ action: string;
13
+ file: string;
14
+ }, {
15
+ data: string;
16
+ action: string;
17
+ file: string;
18
+ }>, import("zod").ZodObject<{
19
+ message: import("zod").ZodString;
20
+ }, "strip", import("zod").ZodTypeAny, {
21
+ message: string;
22
+ }, {
23
+ message: string;
24
+ }>, import("@mastra/core").ToolExecutionContext<import("zod").ZodObject<{
25
+ action: import("zod").ZodString;
26
+ file: import("zod").ZodString;
27
+ data: import("zod").ZodString;
28
+ }, "strip", import("zod").ZodTypeAny, {
29
+ data: string;
30
+ action: string;
31
+ file: string;
32
+ }, {
33
+ data: string;
34
+ action: string;
35
+ file: string;
36
+ }>, import("@mastra/core").WorkflowContext<any>>>;
37
+ execaTool: import("@mastra/core").Tool<"execaTool", import("zod").ZodObject<{
38
+ command: import("zod").ZodString;
39
+ args: import("zod").ZodArray<import("zod").ZodString, "many">;
40
+ }, "strip", import("zod").ZodTypeAny, {
41
+ command: string;
42
+ args: string[];
43
+ }, {
44
+ command: string;
45
+ args: string[];
46
+ }>, import("zod").ZodObject<{
47
+ message: import("zod").ZodString;
48
+ }, "strip", import("zod").ZodTypeAny, {
49
+ message: string;
50
+ }, {
51
+ message: string;
52
+ }>, import("@mastra/core").ToolExecutionContext<import("zod").ZodObject<{
53
+ command: import("zod").ZodString;
54
+ args: import("zod").ZodArray<import("zod").ZodString, "many">;
55
+ }, "strip", import("zod").ZodTypeAny, {
56
+ command: string;
57
+ args: string[];
58
+ }, {
59
+ command: string;
60
+ args: string[];
61
+ }>, import("@mastra/core").WorkflowContext<any>>>;
62
+ browserTool: import("@mastra/core").Tool<"browserTool", import("zod").ZodObject<{
63
+ url: import("zod").ZodString;
64
+ }, "strip", import("zod").ZodTypeAny, {
65
+ url: string;
66
+ }, {
67
+ url: string;
68
+ }>, import("zod").ZodObject<{
69
+ message: import("zod").ZodString;
70
+ }, "strip", import("zod").ZodTypeAny, {
71
+ message: string;
72
+ }, {
73
+ message: string;
74
+ }>, import("@mastra/core").ToolExecutionContext<import("zod").ZodObject<{
75
+ url: import("zod").ZodString;
76
+ }, "strip", import("zod").ZodTypeAny, {
77
+ url: string;
78
+ }, {
79
+ url: string;
80
+ }>, import("@mastra/core").WorkflowContext<any>>>;
81
+ googleSearch: import("@mastra/core").Tool<"googleSearch", import("zod").ZodObject<{
82
+ query: import("zod").ZodString;
83
+ }, "strip", import("zod").ZodTypeAny, {
84
+ query: string;
85
+ }, {
86
+ query: string;
87
+ }>, import("zod").ZodObject<{
88
+ message: import("zod").ZodString;
89
+ }, "strip", import("zod").ZodTypeAny, {
90
+ message: string;
91
+ }, {
92
+ message: string;
93
+ }>, import("@mastra/core").ToolExecutionContext<import("zod").ZodObject<{
94
+ query: import("zod").ZodString;
95
+ }, "strip", import("zod").ZodTypeAny, {
96
+ query: string;
97
+ }, {
98
+ query: string;
99
+ }>, import("@mastra/core").WorkflowContext<any>>>;
100
+ readPDF: import("@mastra/core").Tool<"readPDF", import("zod").ZodObject<{
101
+ pdfPath: import("zod").ZodString;
102
+ }, "strip", import("zod").ZodTypeAny, {
103
+ pdfPath: string;
104
+ }, {
105
+ pdfPath: string;
106
+ }>, import("zod").ZodObject<{
107
+ content: import("zod").ZodString;
108
+ }, "strip", import("zod").ZodTypeAny, {
109
+ content: string;
110
+ }, {
111
+ content: string;
112
+ }>, import("@mastra/core").ToolExecutionContext<import("zod").ZodObject<{
113
+ pdfPath: import("zod").ZodString;
114
+ }, "strip", import("zod").ZodTypeAny, {
115
+ pdfPath: string;
116
+ }, {
117
+ pdfPath: string;
118
+ }>, import("@mastra/core").WorkflowContext<any>>>;
119
+ listEvents: import("@mastra/core").Tool<"listEvents", import("zod").ZodObject<{
120
+ startDate: import("zod").ZodString;
121
+ }, "strip", import("zod").ZodTypeAny, {
122
+ startDate: string;
123
+ }, {
124
+ startDate: string;
125
+ }>, import("zod").ZodObject<{
126
+ content: import("zod").ZodString;
127
+ }, "strip", import("zod").ZodTypeAny, {
128
+ content: string;
129
+ }, {
130
+ content: string;
131
+ }>, import("@mastra/core").ToolExecutionContext<import("zod").ZodObject<{
132
+ startDate: import("zod").ZodString;
133
+ }, "strip", import("zod").ZodTypeAny, {
134
+ startDate: string;
135
+ }, {
136
+ startDate: string;
137
+ }>, import("@mastra/core").WorkflowContext<any>>>;
138
+ crawl: import("@mastra/core").Tool<"crawler", import("zod").ZodObject<{
139
+ url: import("zod").ZodString;
140
+ limit: import("zod").ZodDefault<import("zod").ZodNumber>;
141
+ pathRegex: import("zod").ZodNullable<import("zod").ZodString>;
142
+ }, "strip", import("zod").ZodTypeAny, {
143
+ url: string;
144
+ limit: number;
145
+ pathRegex: string | null;
146
+ }, {
147
+ url: string;
148
+ pathRegex: string | null;
149
+ limit?: number | undefined;
150
+ }>, import("zod").ZodObject<{
151
+ message: import("zod").ZodString;
152
+ }, "strip", import("zod").ZodTypeAny, {
153
+ message: string;
154
+ }, {
155
+ message: string;
156
+ }>, import("@mastra/core").ToolExecutionContext<import("zod").ZodObject<{
157
+ url: import("zod").ZodString;
158
+ limit: import("zod").ZodDefault<import("zod").ZodNumber>;
159
+ pathRegex: import("zod").ZodNullable<import("zod").ZodString>;
160
+ }, "strip", import("zod").ZodTypeAny, {
161
+ url: string;
162
+ limit: number;
163
+ pathRegex: string | null;
164
+ }, {
165
+ url: string;
166
+ pathRegex: string | null;
167
+ limit?: number | undefined;
168
+ }>, import("@mastra/core").WorkflowContext<any>>>;
169
+ }>;
170
+ daneIssueLabeler: import("@mastra/core").Agent<Record<string, import("@mastra/core").ToolAction<any, any, any, any>>>;
171
+ }, {
172
+ message: import("@mastra/core").Workflow<any, import("zod").ZodObject<{
173
+ resourceid: import("zod").ZodString;
174
+ threadId: import("zod").ZodString;
175
+ }, "strip", import("zod").ZodTypeAny, {
176
+ resourceid: string;
177
+ threadId: string;
178
+ }, {
179
+ resourceid: string;
180
+ threadId: string;
181
+ }>>;
182
+ githubIssueLabeler: import("@mastra/core").Workflow<any, import("zod").ZodObject<{
183
+ repo: import("zod").ZodString;
184
+ owner: import("zod").ZodString;
185
+ issue_number: import("zod").ZodNumber;
186
+ }, "strip", import("zod").ZodTypeAny, {
187
+ repo: string;
188
+ owner: string;
189
+ issue_number: number;
190
+ }, {
191
+ repo: string;
192
+ owner: string;
193
+ issue_number: number;
194
+ }>>;
195
+ }, import("@mastra/core").BaseLogger<import("@mastra/core").BaseLogMessage>>;
@@ -0,0 +1,29 @@
1
+ import { Mastra } from '@mastra/core';
2
+ import { PostgresEngine } from '@mastra/engine';
3
+ import { UpstashKVMemory } from '@mastra/memory';
4
+ import { dane, daneIssueLabeler } from './agents/index.js';
5
+ import { firecrawl } from './integrations/index.js';
6
+ import { messageWorkflow, githubIssueLabeler } from './workflows/index.js';
7
+ const engine = new PostgresEngine({
8
+ url: 'postgres://postgres:postgres@localhost:5433/mastra',
9
+ });
10
+ export const mastra = new Mastra({
11
+ agents: {
12
+ dane,
13
+ daneIssueLabeler,
14
+ },
15
+ engine,
16
+ memory: new UpstashKVMemory({
17
+ url: 'http://localhost:8079',
18
+ token: `example_token`,
19
+ maxTokens: 39000,
20
+ }),
21
+ workflows: {
22
+ message: messageWorkflow,
23
+ githubIssueLabeler: githubIssueLabeler,
24
+ },
25
+ logger: false,
26
+ syncs: {
27
+ ...firecrawl.getSyncs(),
28
+ },
29
+ });
@@ -0,0 +1,4 @@
1
+ import { FirecrawlIntegration } from "@mastra/firecrawl";
2
+ import { GithubIntegration } from "@mastra/github";
3
+ export declare const firecrawl: FirecrawlIntegration;
4
+ export declare const github: GithubIntegration;
@@ -1,14 +1,12 @@
1
1
  import { FirecrawlIntegration } from "@mastra/firecrawl";
2
2
  import { GithubIntegration } from "@mastra/github";
3
-
4
3
  export const firecrawl = new FirecrawlIntegration({
5
4
  config: {
6
- API_KEY: process.env.FIRECRAWL_API_KEY!,
5
+ API_KEY: process.env.FIRECRAWL_API_KEY,
7
6
  },
8
7
  });
9
-
10
8
  export const github = new GithubIntegration({
11
9
  config: {
12
- PERSONAL_ACCESS_TOKEN: process.env.GITHUB_PERSONAL_ACCESS_TOKEN!,
10
+ PERSONAL_ACCESS_TOKEN: process.env.GITHUB_PERSONAL_ACCESS_TOKEN,
13
11
  }
14
- })
12
+ });
@@ -0,0 +1,39 @@
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>>>;