@mastra/dane 0.0.2-alpha.33 → 0.0.2-alpha.35

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 (70) hide show
  1. package/dist/commands/commit-message.d.ts +2 -0
  2. package/dist/commands/commit-message.d.ts.map +1 -0
  3. package/dist/commands/commit-message.js +31 -0
  4. package/dist/commands/config.d.ts +3 -0
  5. package/dist/commands/config.d.ts.map +1 -0
  6. package/dist/commands/config.js +40 -0
  7. package/dist/commands/issue-labeler.d.ts +2 -0
  8. package/dist/commands/issue-labeler.d.ts.map +1 -0
  9. package/dist/commands/issue-labeler.js +34 -0
  10. package/dist/commands/message.d.ts +2 -0
  11. package/dist/commands/message.d.ts.map +1 -0
  12. package/dist/commands/message.js +12 -0
  13. package/dist/commands/publish-packages.d.ts +2 -0
  14. package/dist/commands/publish-packages.d.ts.map +1 -0
  15. package/dist/commands/publish-packages.js +9 -0
  16. package/dist/config/index.d.ts +12 -0
  17. package/dist/config/index.d.ts.map +1 -0
  18. package/dist/config/index.js +75 -0
  19. package/dist/index.d.ts +3 -0
  20. package/dist/index.d.ts.map +1 -0
  21. package/dist/index.js +23 -0
  22. package/dist/mastra/agents/index.d.ts +282 -0
  23. package/dist/mastra/agents/index.d.ts.map +1 -0
  24. package/dist/mastra/agents/index.js +106 -0
  25. package/dist/mastra/index.d.ts +318 -0
  26. package/dist/mastra/index.d.ts.map +1 -0
  27. package/dist/mastra/index.js +34 -0
  28. package/dist/mastra/integrations/index.d.ts +7 -0
  29. package/dist/mastra/integrations/index.d.ts.map +1 -0
  30. package/dist/mastra/integrations/index.js +29 -0
  31. package/dist/mastra/tools/browser.d.ts +40 -0
  32. package/dist/mastra/tools/browser.d.ts.map +1 -0
  33. package/dist/mastra/tools/browser.js +116 -0
  34. package/dist/mastra/tools/calendar.d.ts +21 -0
  35. package/dist/mastra/tools/calendar.d.ts.map +1 -0
  36. package/dist/mastra/tools/calendar.js +134 -0
  37. package/dist/mastra/tools/crawl.d.ts +36 -0
  38. package/dist/mastra/tools/crawl.d.ts.map +1 -0
  39. package/dist/mastra/tools/crawl.js +26 -0
  40. package/dist/mastra/tools/execa.d.ts +27 -0
  41. package/dist/mastra/tools/execa.d.ts.map +1 -0
  42. package/dist/mastra/tools/execa.js +43 -0
  43. package/dist/mastra/tools/fs.d.ts +33 -0
  44. package/dist/mastra/tools/fs.d.ts.map +1 -0
  45. package/dist/mastra/tools/fs.js +36 -0
  46. package/dist/mastra/tools/image.d.ts +27 -0
  47. package/dist/mastra/tools/image.d.ts.map +1 -0
  48. package/dist/mastra/tools/image.js +37 -0
  49. package/dist/mastra/tools/pdf.d.ts +21 -0
  50. package/dist/mastra/tools/pdf.d.ts.map +1 -0
  51. package/dist/mastra/tools/pdf.js +42 -0
  52. package/dist/mastra/tools/pnpm.d.ts +60 -0
  53. package/dist/mastra/tools/pnpm.d.ts.map +1 -0
  54. package/dist/mastra/tools/pnpm.js +128 -0
  55. package/dist/mastra/workflows/chat.d.ts +13 -0
  56. package/dist/mastra/workflows/chat.d.ts.map +1 -0
  57. package/dist/mastra/workflows/chat.js +89 -0
  58. package/dist/mastra/workflows/commit-message.d.ts +10 -0
  59. package/dist/mastra/workflows/commit-message.d.ts.map +1 -0
  60. package/dist/mastra/workflows/commit-message.js +137 -0
  61. package/dist/mastra/workflows/index.d.ts +4 -0
  62. package/dist/mastra/workflows/index.d.ts.map +1 -0
  63. package/dist/mastra/workflows/index.js +3 -0
  64. package/dist/mastra/workflows/issue-labeler.d.ts +16 -0
  65. package/dist/mastra/workflows/issue-labeler.d.ts.map +1 -0
  66. package/dist/mastra/workflows/issue-labeler.js +85 -0
  67. package/dist/mastra/workflows/publish-packages.d.ts +3 -0
  68. package/dist/mastra/workflows/publish-packages.d.ts.map +1 -0
  69. package/dist/mastra/workflows/publish-packages.js +202 -0
  70. package/package.json +3 -3
@@ -0,0 +1,2 @@
1
+ export declare function commitMessageCommand(): Promise<void>;
2
+ //# sourceMappingURL=commit-message.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commit-message.d.ts","sourceRoot":"","sources":["../../src/commands/commit-message.ts"],"names":[],"mappings":"AAKA,wBAAsB,oBAAoB,kBAgCzC"}
@@ -0,0 +1,31 @@
1
+ import chalk from 'chalk';
2
+ import { execSync } from 'child_process';
3
+ import { mastra } from '../mastra/index.js';
4
+ export async function commitMessageCommand() {
5
+ console.log(chalk.green("Hi! I'm Dane!"));
6
+ console.log(chalk.green('Let me generate a commit message for you..\n'));
7
+ try {
8
+ const workflow = mastra.getWorkflow('commitMessage');
9
+ if (!workflow) {
10
+ console.error(chalk.red('Commit message workflow not found. Make sure it is properly set up.'));
11
+ process.exit(1);
12
+ }
13
+ // Get the current path
14
+ const currentPath = execSync('pwd', { encoding: 'utf-8' }).trim();
15
+ const result = await workflow.execute({
16
+ triggerData: {
17
+ repoPath: currentPath,
18
+ },
19
+ });
20
+ const errorMessage = Object.values(result.results).find(result => result.status === 'failed')?.error;
21
+ if (result.results?.commit?.status !== 'success') {
22
+ console.error(chalk.red(`\n${errorMessage}`));
23
+ return;
24
+ }
25
+ console.log(chalk.green('\nCommit message generated and committed successfully'));
26
+ }
27
+ catch (error) {
28
+ console.error(chalk.red('Error:', error?.message || 'An unknown error occurred'));
29
+ process.exit(1);
30
+ }
31
+ }
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare const configCommand: Command;
3
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/commands/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,eAAO,MAAM,aAAa,SAiCtB,CAAC"}
@@ -0,0 +1,40 @@
1
+ import { Command } from 'commander';
2
+ import { ConfigManager } from '../config/index.js';
3
+ export const configCommand = new Command('config')
4
+ .description('Manage Dane configuration')
5
+ .option('--set <key=value>', 'Set a configuration value')
6
+ .option('--get <key>', 'Get a configuration value')
7
+ .option('--list', 'List all configuration values')
8
+ .option('--del <key>', 'Delete a configuration value')
9
+ .action(options => {
10
+ const configManager = new ConfigManager();
11
+ if (options.set) {
12
+ const [key, value] = options.set.split('=');
13
+ if (!key || !value) {
14
+ console.error('Invalid format. Use --set KEY=VALUE');
15
+ process.exit(1);
16
+ }
17
+ configManager.set(key, value);
18
+ console.log(`Set ${key} successfully`);
19
+ }
20
+ else if (options.get) {
21
+ const value = configManager.get(options.get);
22
+ if (value === undefined) {
23
+ console.log(`No value set for ${options.get}`);
24
+ }
25
+ else {
26
+ console.log(value);
27
+ }
28
+ }
29
+ else if (options.del) {
30
+ configManager.delete(options.del);
31
+ console.log(`Deleted ${options.del} successfully`);
32
+ }
33
+ else if (options.list) {
34
+ const config = configManager.list();
35
+ console.log(JSON.stringify(config, null, 2));
36
+ }
37
+ else {
38
+ console.log('No action specified. Use --help to see available options.');
39
+ }
40
+ });
@@ -0,0 +1,2 @@
1
+ export declare function issueLabelerCommand(): Promise<void>;
2
+ //# sourceMappingURL=issue-labeler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"issue-labeler.d.ts","sourceRoot":"","sources":["../../src/commands/issue-labeler.ts"],"names":[],"mappings":"AAIA,wBAAsB,mBAAmB,kBA2BxC"}
@@ -0,0 +1,34 @@
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: normalizeRepo(process.env.REPO),
11
+ },
12
+ });
13
+ if (result.results?.labelIssue?.status === 'failed') {
14
+ console.error(chalk.red(`Error applying labels for issue: ${result.triggerData?.issue_number}`));
15
+ console.error({ error: result.results?.labelIssue?.error });
16
+ return;
17
+ }
18
+ if (result.results?.labelIssue?.status !== 'success') {
19
+ console.error(chalk.red(`Failed to apply labels for issue: ${result.triggerData?.issue_number}`));
20
+ return;
21
+ }
22
+ console.log(chalk.green(`Issue: ${result.triggerData?.issue_number} has been labeled with: ${result.results?.labelIssue?.payload?.labels.join(', ')}`));
23
+ }
24
+ /**
25
+ * Extracts the repo name from owner/repo format provided by github
26
+ * @param repo - The repo name to normalize
27
+ * @returns The normalized repo name
28
+ */
29
+ function normalizeRepo(repo) {
30
+ if (repo.includes('/')) {
31
+ return repo.split('/')[1] || repo;
32
+ }
33
+ return repo;
34
+ }
@@ -0,0 +1,2 @@
1
+ export declare function message(): Promise<void>;
2
+ //# sourceMappingURL=message.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../src/commands/message.ts"],"names":[],"mappings":"AAIA,wBAAsB,OAAO,kBAW5B"}
@@ -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
+ export declare function publishPackages(): Promise<void>;
2
+ //# sourceMappingURL=publish-packages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"publish-packages.d.ts","sourceRoot":"","sources":["../../src/commands/publish-packages.ts"],"names":[],"mappings":"AAIA,wBAAsB,eAAe,kBASpC"}
@@ -0,0 +1,9 @@
1
+ import chalk from 'chalk';
2
+ import { mastra } from '../mastra/index.js';
3
+ export async function publishPackages() {
4
+ console.log(chalk.green("Hi! I'm Dane!"));
5
+ console.log(chalk.green('Let me publish your packages..\n'));
6
+ const workflow = mastra.getWorkflow('packagePublisher');
7
+ const result = await workflow.execute();
8
+ console.log(result);
9
+ }
@@ -0,0 +1,12 @@
1
+ export declare class ConfigManager {
2
+ private configPath;
3
+ constructor();
4
+ private ensureConfigExists;
5
+ get(key: string): string | undefined;
6
+ set(key: string, value: string): void;
7
+ delete(key: string): void;
8
+ list(): Record<string, string>;
9
+ getAnthropicApiKey(): string;
10
+ }
11
+ export declare const config: ConfigManager;
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAIA,qBAAa,aAAa;IACxB,OAAO,CAAC,UAAU,CAAS;;IAS3B,OAAO,CAAC,kBAAkB;IAUnB,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IASpC,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAUrC,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAYzB,IAAI,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAQ9B,kBAAkB,IAAI,MAAM;CAiBpC;AAGD,eAAO,MAAM,MAAM,eAAsB,CAAC"}
@@ -0,0 +1,75 @@
1
+ import * as fs from 'fs';
2
+ import * as os from 'os';
3
+ import * as path from 'path';
4
+ export class ConfigManager {
5
+ constructor() {
6
+ const homeDir = os.homedir();
7
+ const configDir = path.join(homeDir, '.dane');
8
+ this.configPath = path.join(configDir, 'config.json');
9
+ this.ensureConfigExists();
10
+ }
11
+ ensureConfigExists() {
12
+ const configDir = path.dirname(this.configPath);
13
+ if (!fs.existsSync(configDir)) {
14
+ fs.mkdirSync(configDir, { recursive: true });
15
+ }
16
+ if (!fs.existsSync(this.configPath)) {
17
+ fs.writeFileSync(this.configPath, JSON.stringify({}, null, 2));
18
+ }
19
+ }
20
+ get(key) {
21
+ try {
22
+ const config = JSON.parse(fs.readFileSync(this.configPath, 'utf-8'));
23
+ return config[key];
24
+ }
25
+ catch (error) {
26
+ return undefined;
27
+ }
28
+ }
29
+ set(key, value) {
30
+ try {
31
+ const config = fs.existsSync(this.configPath) ? JSON.parse(fs.readFileSync(this.configPath, 'utf-8')) : {};
32
+ config[key] = value;
33
+ fs.writeFileSync(this.configPath, JSON.stringify(config, null, 2));
34
+ }
35
+ catch (error) {
36
+ throw new Error(`Failed to set config value: ${error}`);
37
+ }
38
+ }
39
+ delete(key) {
40
+ try {
41
+ const config = fs.existsSync(this.configPath) ? JSON.parse(fs.readFileSync(this.configPath, 'utf-8')) : {};
42
+ if (key in config) {
43
+ delete config[key];
44
+ fs.writeFileSync(this.configPath, JSON.stringify(config, null, 2));
45
+ }
46
+ }
47
+ catch (error) {
48
+ throw new Error(`Failed to delete config value: ${error}`);
49
+ }
50
+ }
51
+ list() {
52
+ try {
53
+ return JSON.parse(fs.readFileSync(this.configPath, 'utf-8'));
54
+ }
55
+ catch (error) {
56
+ return {};
57
+ }
58
+ }
59
+ getAnthropicApiKey() {
60
+ const key = this.get('ANTHROPIC_API_KEY') || process.env.ANTHROPIC_API_KEY;
61
+ if (!key) {
62
+ // Check if we're in a command that requires the API key
63
+ const command = process.argv[2] || '';
64
+ const configCommands = ['config', '--help', '-h'];
65
+ // Only throw if we're not in a config-related command
66
+ if (!configCommands.includes(command)) {
67
+ throw new Error('ANTHROPIC_API_KEY not found in config. Please set it using: dane config --set ANTHROPIC_API_KEY=your_key_here');
68
+ }
69
+ return '';
70
+ }
71
+ return key;
72
+ }
73
+ }
74
+ // Create a singleton instance for easy access
75
+ export const config = new ConfigManager();
@@ -0,0 +1,3 @@
1
+ #! /usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
package/dist/index.js ADDED
@@ -0,0 +1,23 @@
1
+ #! /usr/bin/env node
2
+ import { Command } from 'commander';
3
+ import dotenv from 'dotenv';
4
+ import { commitMessageCommand } from './commands/commit-message.js';
5
+ import { configCommand } from './commands/config.js';
6
+ import { issueLabelerCommand } from './commands/issue-labeler.js';
7
+ import { message } from './commands/message.js';
8
+ import { publishPackages } from './commands/publish-packages.js';
9
+ dotenv.config();
10
+ process.env.NODE_NO_WARNINGS = '1';
11
+ const program = new Command();
12
+ program.command('chat').action(message);
13
+ program
14
+ .command('issue-labeler')
15
+ .description('Automatically label GitHub issues based on their content and context')
16
+ .action(issueLabelerCommand);
17
+ program
18
+ .command('commit')
19
+ .description('Create a sensible commit message based on the changes made')
20
+ .action(commitMessageCommand);
21
+ program.addCommand(configCommand);
22
+ program.command('publish').description('Publish packages to the registry').action(publishPackages);
23
+ program.parse(process.argv);
@@ -0,0 +1,282 @@
1
+ import { Agent } from '@mastra/core';
2
+ export declare const daneCommitMessage: Agent<Record<string, import("@mastra/core").ToolAction<any, any, any, any>>>;
3
+ export declare const daneIssueLabeler: Agent<Record<string, import("@mastra/core").ToolAction<any, any, any, any>>>;
4
+ export declare const danePackagePublisher: Agent<{
5
+ execaTool: import("@mastra/core").Tool<"execaTool", import("zod").ZodObject<{
6
+ command: import("zod").ZodString;
7
+ args: import("zod").ZodArray<import("zod").ZodString, "many">;
8
+ }, "strip", import("zod").ZodTypeAny, {
9
+ command: string;
10
+ args: string[];
11
+ }, {
12
+ command: string;
13
+ args: string[];
14
+ }>, import("zod").ZodObject<{
15
+ message: import("zod").ZodString;
16
+ }, "strip", import("zod").ZodTypeAny, {
17
+ message: string;
18
+ }, {
19
+ message: string;
20
+ }>, import("@mastra/core").ToolExecutionContext<import("zod").ZodObject<{
21
+ command: import("zod").ZodString;
22
+ args: import("zod").ZodArray<import("zod").ZodString, "many">;
23
+ }, "strip", import("zod").ZodTypeAny, {
24
+ command: string;
25
+ args: string[];
26
+ }, {
27
+ command: string;
28
+ args: string[];
29
+ }>, import("@mastra/core").WorkflowContext<any>>>;
30
+ pnpmBuild: import("@mastra/core").Tool<"pnpmBuild", import("zod").ZodObject<{
31
+ name: import("zod").ZodString;
32
+ packagePath: import("zod").ZodString;
33
+ }, "strip", import("zod").ZodTypeAny, {
34
+ name: string;
35
+ packagePath: string;
36
+ }, {
37
+ name: string;
38
+ packagePath: string;
39
+ }>, import("zod").ZodObject<{
40
+ message: import("zod").ZodString;
41
+ }, "strip", import("zod").ZodTypeAny, {
42
+ message: string;
43
+ }, {
44
+ message: string;
45
+ }>, import("@mastra/core").ToolExecutionContext<import("zod").ZodObject<{
46
+ name: import("zod").ZodString;
47
+ packagePath: import("zod").ZodString;
48
+ }, "strip", import("zod").ZodTypeAny, {
49
+ name: string;
50
+ packagePath: string;
51
+ }, {
52
+ name: string;
53
+ packagePath: string;
54
+ }>, import("@mastra/core").WorkflowContext<any>>>;
55
+ pnpmChangesetPublish: import("@mastra/core").Tool<"pnpmChangesetPublish", import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>, import("zod").ZodObject<{
56
+ message: import("zod").ZodString;
57
+ }, "strip", import("zod").ZodTypeAny, {
58
+ message: string;
59
+ }, {
60
+ message: string;
61
+ }>, import("@mastra/core").ToolExecutionContext<import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>, import("@mastra/core").WorkflowContext<any>>>;
62
+ pnpmChangesetStatus: import("@mastra/core").Tool<"pnpmChangesetStatus", import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>, import("zod").ZodObject<{
63
+ message: import("zod").ZodArray<import("zod").ZodString, "many">;
64
+ }, "strip", import("zod").ZodTypeAny, {
65
+ message: string[];
66
+ }, {
67
+ message: string[];
68
+ }>, import("@mastra/core").ToolExecutionContext<import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>, import("@mastra/core").WorkflowContext<any>>>;
69
+ activeDistTag: import("@mastra/core").Tool<"activeDistTag", import("zod").ZodObject<{
70
+ packagePath: import("zod").ZodString;
71
+ }, "strip", import("zod").ZodTypeAny, {
72
+ packagePath: string;
73
+ }, {
74
+ packagePath: string;
75
+ }>, import("zod").ZodObject<{
76
+ message: import("zod").ZodString;
77
+ }, "strip", import("zod").ZodTypeAny, {
78
+ message: string;
79
+ }, {
80
+ message: string;
81
+ }>, import("@mastra/core").ToolExecutionContext<import("zod").ZodObject<{
82
+ packagePath: import("zod").ZodString;
83
+ }, "strip", import("zod").ZodTypeAny, {
84
+ packagePath: string;
85
+ }, {
86
+ packagePath: string;
87
+ }>, import("@mastra/core").WorkflowContext<any>>>;
88
+ }>;
89
+ export declare const dane: Agent<{
90
+ fsTool: import("@mastra/core").Tool<"fsTool", import("zod").ZodObject<{
91
+ action: import("zod").ZodString;
92
+ file: import("zod").ZodString;
93
+ data: import("zod").ZodString;
94
+ }, "strip", import("zod").ZodTypeAny, {
95
+ data: string;
96
+ action: string;
97
+ file: string;
98
+ }, {
99
+ data: string;
100
+ action: string;
101
+ file: string;
102
+ }>, import("zod").ZodObject<{
103
+ message: import("zod").ZodString;
104
+ }, "strip", import("zod").ZodTypeAny, {
105
+ message: string;
106
+ }, {
107
+ message: string;
108
+ }>, import("@mastra/core").ToolExecutionContext<import("zod").ZodObject<{
109
+ action: import("zod").ZodString;
110
+ file: import("zod").ZodString;
111
+ data: import("zod").ZodString;
112
+ }, "strip", import("zod").ZodTypeAny, {
113
+ data: string;
114
+ action: string;
115
+ file: string;
116
+ }, {
117
+ data: string;
118
+ action: string;
119
+ file: string;
120
+ }>, import("@mastra/core").WorkflowContext<any>>>;
121
+ execaTool: import("@mastra/core").Tool<"execaTool", import("zod").ZodObject<{
122
+ command: import("zod").ZodString;
123
+ args: import("zod").ZodArray<import("zod").ZodString, "many">;
124
+ }, "strip", import("zod").ZodTypeAny, {
125
+ command: string;
126
+ args: string[];
127
+ }, {
128
+ command: string;
129
+ args: string[];
130
+ }>, import("zod").ZodObject<{
131
+ message: import("zod").ZodString;
132
+ }, "strip", import("zod").ZodTypeAny, {
133
+ message: string;
134
+ }, {
135
+ message: string;
136
+ }>, import("@mastra/core").ToolExecutionContext<import("zod").ZodObject<{
137
+ command: import("zod").ZodString;
138
+ args: import("zod").ZodArray<import("zod").ZodString, "many">;
139
+ }, "strip", import("zod").ZodTypeAny, {
140
+ command: string;
141
+ args: string[];
142
+ }, {
143
+ command: string;
144
+ args: string[];
145
+ }>, import("@mastra/core").WorkflowContext<any>>>;
146
+ browserTool: import("@mastra/core").Tool<"browserTool", import("zod").ZodObject<{
147
+ url: import("zod").ZodString;
148
+ }, "strip", import("zod").ZodTypeAny, {
149
+ url: string;
150
+ }, {
151
+ url: string;
152
+ }>, import("zod").ZodObject<{
153
+ message: import("zod").ZodString;
154
+ }, "strip", import("zod").ZodTypeAny, {
155
+ message: string;
156
+ }, {
157
+ message: string;
158
+ }>, import("@mastra/core").ToolExecutionContext<import("zod").ZodObject<{
159
+ url: import("zod").ZodString;
160
+ }, "strip", import("zod").ZodTypeAny, {
161
+ url: string;
162
+ }, {
163
+ url: string;
164
+ }>, import("@mastra/core").WorkflowContext<any>>>;
165
+ googleSearch: import("@mastra/core").Tool<"googleSearch", import("zod").ZodObject<{
166
+ query: import("zod").ZodString;
167
+ }, "strip", import("zod").ZodTypeAny, {
168
+ query: string;
169
+ }, {
170
+ query: string;
171
+ }>, import("zod").ZodObject<{
172
+ message: import("zod").ZodString;
173
+ }, "strip", import("zod").ZodTypeAny, {
174
+ message: string;
175
+ }, {
176
+ message: string;
177
+ }>, import("@mastra/core").ToolExecutionContext<import("zod").ZodObject<{
178
+ query: import("zod").ZodString;
179
+ }, "strip", import("zod").ZodTypeAny, {
180
+ query: string;
181
+ }, {
182
+ query: string;
183
+ }>, import("@mastra/core").WorkflowContext<any>>>;
184
+ readPDF: import("@mastra/core").Tool<"readPDF", import("zod").ZodObject<{
185
+ pdfPath: import("zod").ZodString;
186
+ }, "strip", import("zod").ZodTypeAny, {
187
+ pdfPath: string;
188
+ }, {
189
+ pdfPath: string;
190
+ }>, import("zod").ZodObject<{
191
+ content: import("zod").ZodString;
192
+ }, "strip", import("zod").ZodTypeAny, {
193
+ content: string;
194
+ }, {
195
+ content: string;
196
+ }>, import("@mastra/core").ToolExecutionContext<import("zod").ZodObject<{
197
+ pdfPath: import("zod").ZodString;
198
+ }, "strip", import("zod").ZodTypeAny, {
199
+ pdfPath: string;
200
+ }, {
201
+ pdfPath: string;
202
+ }>, import("@mastra/core").WorkflowContext<any>>>;
203
+ listEvents: import("@mastra/core").Tool<"listEvents", import("zod").ZodObject<{
204
+ startDate: import("zod").ZodString;
205
+ }, "strip", import("zod").ZodTypeAny, {
206
+ startDate: string;
207
+ }, {
208
+ startDate: string;
209
+ }>, import("zod").ZodObject<{
210
+ content: import("zod").ZodString;
211
+ }, "strip", import("zod").ZodTypeAny, {
212
+ content: string;
213
+ }, {
214
+ content: string;
215
+ }>, import("@mastra/core").ToolExecutionContext<import("zod").ZodObject<{
216
+ startDate: import("zod").ZodString;
217
+ }, "strip", import("zod").ZodTypeAny, {
218
+ startDate: string;
219
+ }, {
220
+ startDate: string;
221
+ }>, import("@mastra/core").WorkflowContext<any>>>;
222
+ crawl: import("@mastra/core").Tool<"crawler", import("zod").ZodObject<{
223
+ url: import("zod").ZodString;
224
+ limit: import("zod").ZodDefault<import("zod").ZodNumber>;
225
+ pathRegex: import("zod").ZodNullable<import("zod").ZodString>;
226
+ }, "strip", import("zod").ZodTypeAny, {
227
+ url: string;
228
+ limit: number;
229
+ pathRegex: string | null;
230
+ }, {
231
+ url: string;
232
+ pathRegex: string | null;
233
+ limit?: number | undefined;
234
+ }>, import("zod").ZodObject<{
235
+ message: import("zod").ZodString;
236
+ crawlData: import("zod").ZodAny;
237
+ }, "strip", import("zod").ZodTypeAny, {
238
+ message: string;
239
+ crawlData?: any;
240
+ }, {
241
+ message: string;
242
+ crawlData?: any;
243
+ }>, import("@mastra/core").ToolExecutionContext<import("zod").ZodObject<{
244
+ url: import("zod").ZodString;
245
+ limit: import("zod").ZodDefault<import("zod").ZodNumber>;
246
+ pathRegex: import("zod").ZodNullable<import("zod").ZodString>;
247
+ }, "strip", import("zod").ZodTypeAny, {
248
+ url: string;
249
+ limit: number;
250
+ pathRegex: string | null;
251
+ }, {
252
+ url: string;
253
+ pathRegex: string | null;
254
+ limit?: number | undefined;
255
+ }>, import("@mastra/core").WorkflowContext<any>>>;
256
+ imageTool: import("@mastra/core").Tool<"imageTool", import("zod").ZodObject<{
257
+ directory: import("zod").ZodString;
258
+ prompt: import("zod").ZodString;
259
+ }, "strip", import("zod").ZodTypeAny, {
260
+ directory: string;
261
+ prompt: string;
262
+ }, {
263
+ directory: string;
264
+ prompt: string;
265
+ }>, import("zod").ZodObject<{
266
+ message: import("zod").ZodString;
267
+ }, "strip", import("zod").ZodTypeAny, {
268
+ message: string;
269
+ }, {
270
+ message: string;
271
+ }>, import("@mastra/core").ToolExecutionContext<import("zod").ZodObject<{
272
+ directory: import("zod").ZodString;
273
+ prompt: import("zod").ZodString;
274
+ }, "strip", import("zod").ZodTypeAny, {
275
+ directory: string;
276
+ prompt: string;
277
+ }, {
278
+ directory: string;
279
+ prompt: string;
280
+ }>, import("@mastra/core").WorkflowContext<any>>>;
281
+ }>;
282
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/mastra/agents/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAmBrC,eAAO,MAAM,iBAAiB,8EAU5B,CAAC;AAEH,eAAO,MAAM,gBAAgB,8EAO3B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAc/B,CAAC;AAEH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuDf,CAAC"}