@mastra/dane 0.0.2-alpha.22 → 0.0.2-alpha.23
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/dist/commands/commit-message.d.ts +2 -0
- package/dist/commands/commit-message.d.ts.map +1 -0
- package/dist/commands/commit-message.js +31 -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 +2 -0
- package/dist/commands/issue-labeler.d.ts.map +1 -0
- package/dist/commands/issue-labeler.js +34 -0
- package/dist/commands/message.d.ts +2 -0
- package/dist/commands/message.d.ts.map +1 -0
- package/dist/commands/message.js +12 -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 +73 -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.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +23 -0
- package/dist/mastra/agents/index.d.ts +263 -0
- package/dist/mastra/agents/index.d.ts.map +1 -0
- package/dist/mastra/agents/index.js +104 -0
- package/dist/mastra/index.d.ts +298 -0
- package/dist/mastra/index.d.ts.map +1 -0
- package/dist/mastra/index.js +32 -0
- package/dist/mastra/integrations/index.d.ts +7 -0
- package/dist/mastra/integrations/index.d.ts.map +1 -0
- package/dist/mastra/integrations/index.js +29 -0
- package/dist/mastra/tools/browser.d.ts +40 -0
- package/dist/mastra/tools/browser.d.ts.map +1 -0
- package/dist/mastra/tools/browser.js +116 -0
- package/dist/mastra/tools/calendar.d.ts +21 -0
- package/dist/mastra/tools/calendar.d.ts.map +1 -0
- package/dist/mastra/tools/calendar.js +134 -0
- package/dist/mastra/tools/crawl.d.ts +36 -0
- package/dist/mastra/tools/crawl.d.ts.map +1 -0
- package/dist/mastra/tools/crawl.js +26 -0
- package/dist/mastra/tools/execa.d.ts +66 -0
- package/dist/mastra/tools/execa.d.ts.map +1 -0
- package/dist/mastra/tools/execa.js +130 -0
- package/dist/mastra/tools/fs.d.ts +33 -0
- package/dist/mastra/tools/fs.d.ts.map +1 -0
- package/dist/mastra/tools/fs.js +36 -0
- package/dist/mastra/tools/image.d.ts +27 -0
- package/dist/mastra/tools/image.d.ts.map +1 -0
- package/dist/mastra/tools/image.js +37 -0
- package/dist/mastra/tools/pdf.d.ts +21 -0
- package/dist/mastra/tools/pdf.d.ts.map +1 -0
- package/dist/mastra/tools/pdf.js +42 -0
- package/dist/mastra/workflows/chat.d.ts +13 -0
- package/dist/mastra/workflows/chat.d.ts.map +1 -0
- package/dist/mastra/workflows/chat.js +89 -0
- 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 +137 -0
- package/dist/mastra/workflows/index.d.ts +4 -0
- package/dist/mastra/workflows/index.d.ts.map +1 -0
- package/dist/mastra/workflows/index.js +3 -0
- package/dist/mastra/workflows/issue-labeler.d.ts +16 -0
- package/dist/mastra/workflows/issue-labeler.d.ts.map +1 -0
- package/dist/mastra/workflows/issue-labeler.js +85 -0
- package/package.json +2 -2
|
@@ -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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"publish-packages.d.ts","sourceRoot":"","sources":["../../src/commands/publish-packages.ts"],"names":[],"mappings":"AAOA,wBAAsB,eAAe,kBAuFpC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import chalk from 'chalk';
|
|
2
|
+
import { readFileSync } from 'fs';
|
|
3
|
+
import path from 'path';
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
import { mastra } from '../mastra/index.js';
|
|
6
|
+
export async function publishPackages() {
|
|
7
|
+
console.log(chalk.green("Hi! I'm Dane!"));
|
|
8
|
+
console.log(chalk.green('Let me publish your packages..\n'));
|
|
9
|
+
const agent = mastra.getAgent('danePackagePublisher');
|
|
10
|
+
const result = await agent.generate(`
|
|
11
|
+
Can you tell me which packages within the packages and integrations directory need to be published to npm?
|
|
12
|
+
`);
|
|
13
|
+
const resultObj = await agent.generate(`
|
|
14
|
+
ONLY RETURN DATA IF WE HAVE PACKAGES TO PUBLISH. If we do not, return empty arrays.
|
|
15
|
+
Can you format this for me ${result.text}?
|
|
16
|
+
@mastra/core must be first. @mastra/dane should be listed after packages and integrations.
|
|
17
|
+
`, {
|
|
18
|
+
schema: z.object({
|
|
19
|
+
packages: z.array(z.string()),
|
|
20
|
+
integrations: z.array(z.string()),
|
|
21
|
+
danePackage: z.string(),
|
|
22
|
+
}),
|
|
23
|
+
});
|
|
24
|
+
console.log(resultObj.object);
|
|
25
|
+
const packagesToBuild = new Set();
|
|
26
|
+
if (resultObj?.object?.packages) {
|
|
27
|
+
const packages = resultObj.object.packages;
|
|
28
|
+
packages.forEach((pkg) => {
|
|
29
|
+
let pkgName = pkg.replace('@mastra/', '');
|
|
30
|
+
if (pkgName === 'mastra') {
|
|
31
|
+
pkgName = 'cli';
|
|
32
|
+
}
|
|
33
|
+
const pkgPath = path.join(process.cwd(), 'packages', pkgName);
|
|
34
|
+
packagesToBuild.add(pkgPath);
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
if (resultObj?.object?.integrations) {
|
|
38
|
+
const integrations = resultObj.object.integrations;
|
|
39
|
+
integrations.forEach((integration) => {
|
|
40
|
+
let pkgName = integration.replace('@mastra/', '');
|
|
41
|
+
const integrationPath = path.join(process.cwd(), 'integrations', pkgName);
|
|
42
|
+
packagesToBuild.add(integrationPath);
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
if (resultObj?.object?.danePackage) {
|
|
46
|
+
const danePackage = resultObj.object.danePackage;
|
|
47
|
+
let pkgName = danePackage.replace('@mastra/', '');
|
|
48
|
+
const danePackageMapped = path.join(process.cwd(), 'examples', pkgName);
|
|
49
|
+
const pkgJsonPath = readFileSync(path.join(danePackageMapped, 'package.json'), 'utf-8');
|
|
50
|
+
const pkgJson = JSON.parse(pkgJsonPath);
|
|
51
|
+
const dependencies = Object.keys(pkgJson.dependencies || {}).filter((dep) => dep.startsWith('@mastra/'));
|
|
52
|
+
dependencies.forEach((dep) => {
|
|
53
|
+
const pkgName = dep.replace('@mastra/', '');
|
|
54
|
+
const pkgPath = path.join(process.cwd(), 'packages', pkgName);
|
|
55
|
+
packagesToBuild.add(pkgPath);
|
|
56
|
+
});
|
|
57
|
+
packagesToBuild.add(danePackage);
|
|
58
|
+
}
|
|
59
|
+
const pkgSet = Array.from(packagesToBuild.keys());
|
|
60
|
+
if (!packagesToBuild.size) {
|
|
61
|
+
console.error(chalk.red('No packages to build.'));
|
|
62
|
+
process.exit(1);
|
|
63
|
+
}
|
|
64
|
+
let res = await agent.generate(`
|
|
65
|
+
Here are the packages that need to be built: ${pkgSet.join(',')}.
|
|
66
|
+
We need to build core first. And dane last. The rest can be done in parallel.
|
|
67
|
+
`);
|
|
68
|
+
console.log(chalk.green(res.text));
|
|
69
|
+
res = await agent.generate(`
|
|
70
|
+
Publish the changeset and then set the dist-tag of latest to the new version.
|
|
71
|
+
`);
|
|
72
|
+
console.log(chalk.green(result.text));
|
|
73
|
+
}
|
|
@@ -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();
|
package/dist/index.d.ts
ADDED
|
@@ -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,263 @@
|
|
|
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
|
+
}>;
|
|
70
|
+
export declare const dane: Agent<{
|
|
71
|
+
fsTool: import("@mastra/core").Tool<"fsTool", import("zod").ZodObject<{
|
|
72
|
+
action: import("zod").ZodString;
|
|
73
|
+
file: import("zod").ZodString;
|
|
74
|
+
data: import("zod").ZodString;
|
|
75
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
76
|
+
data: string;
|
|
77
|
+
action: string;
|
|
78
|
+
file: string;
|
|
79
|
+
}, {
|
|
80
|
+
data: string;
|
|
81
|
+
action: string;
|
|
82
|
+
file: string;
|
|
83
|
+
}>, import("zod").ZodObject<{
|
|
84
|
+
message: import("zod").ZodString;
|
|
85
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
86
|
+
message: string;
|
|
87
|
+
}, {
|
|
88
|
+
message: string;
|
|
89
|
+
}>, import("@mastra/core").ToolExecutionContext<import("zod").ZodObject<{
|
|
90
|
+
action: import("zod").ZodString;
|
|
91
|
+
file: import("zod").ZodString;
|
|
92
|
+
data: import("zod").ZodString;
|
|
93
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
94
|
+
data: string;
|
|
95
|
+
action: string;
|
|
96
|
+
file: string;
|
|
97
|
+
}, {
|
|
98
|
+
data: string;
|
|
99
|
+
action: string;
|
|
100
|
+
file: string;
|
|
101
|
+
}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
102
|
+
execaTool: import("@mastra/core").Tool<"execaTool", import("zod").ZodObject<{
|
|
103
|
+
command: import("zod").ZodString;
|
|
104
|
+
args: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
105
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
106
|
+
command: string;
|
|
107
|
+
args: string[];
|
|
108
|
+
}, {
|
|
109
|
+
command: string;
|
|
110
|
+
args: string[];
|
|
111
|
+
}>, import("zod").ZodObject<{
|
|
112
|
+
message: import("zod").ZodString;
|
|
113
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
114
|
+
message: string;
|
|
115
|
+
}, {
|
|
116
|
+
message: string;
|
|
117
|
+
}>, import("@mastra/core").ToolExecutionContext<import("zod").ZodObject<{
|
|
118
|
+
command: import("zod").ZodString;
|
|
119
|
+
args: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
120
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
121
|
+
command: string;
|
|
122
|
+
args: string[];
|
|
123
|
+
}, {
|
|
124
|
+
command: string;
|
|
125
|
+
args: string[];
|
|
126
|
+
}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
127
|
+
browserTool: import("@mastra/core").Tool<"browserTool", import("zod").ZodObject<{
|
|
128
|
+
url: import("zod").ZodString;
|
|
129
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
130
|
+
url: string;
|
|
131
|
+
}, {
|
|
132
|
+
url: string;
|
|
133
|
+
}>, import("zod").ZodObject<{
|
|
134
|
+
message: import("zod").ZodString;
|
|
135
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
136
|
+
message: string;
|
|
137
|
+
}, {
|
|
138
|
+
message: string;
|
|
139
|
+
}>, import("@mastra/core").ToolExecutionContext<import("zod").ZodObject<{
|
|
140
|
+
url: import("zod").ZodString;
|
|
141
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
142
|
+
url: string;
|
|
143
|
+
}, {
|
|
144
|
+
url: string;
|
|
145
|
+
}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
146
|
+
googleSearch: import("@mastra/core").Tool<"googleSearch", import("zod").ZodObject<{
|
|
147
|
+
query: import("zod").ZodString;
|
|
148
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
149
|
+
query: string;
|
|
150
|
+
}, {
|
|
151
|
+
query: 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
|
+
query: import("zod").ZodString;
|
|
160
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
161
|
+
query: string;
|
|
162
|
+
}, {
|
|
163
|
+
query: string;
|
|
164
|
+
}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
165
|
+
readPDF: import("@mastra/core").Tool<"readPDF", import("zod").ZodObject<{
|
|
166
|
+
pdfPath: import("zod").ZodString;
|
|
167
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
168
|
+
pdfPath: string;
|
|
169
|
+
}, {
|
|
170
|
+
pdfPath: string;
|
|
171
|
+
}>, import("zod").ZodObject<{
|
|
172
|
+
content: import("zod").ZodString;
|
|
173
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
174
|
+
content: string;
|
|
175
|
+
}, {
|
|
176
|
+
content: string;
|
|
177
|
+
}>, import("@mastra/core").ToolExecutionContext<import("zod").ZodObject<{
|
|
178
|
+
pdfPath: import("zod").ZodString;
|
|
179
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
180
|
+
pdfPath: string;
|
|
181
|
+
}, {
|
|
182
|
+
pdfPath: string;
|
|
183
|
+
}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
184
|
+
listEvents: import("@mastra/core").Tool<"listEvents", import("zod").ZodObject<{
|
|
185
|
+
startDate: import("zod").ZodString;
|
|
186
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
187
|
+
startDate: string;
|
|
188
|
+
}, {
|
|
189
|
+
startDate: 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
|
+
startDate: import("zod").ZodString;
|
|
198
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
199
|
+
startDate: string;
|
|
200
|
+
}, {
|
|
201
|
+
startDate: string;
|
|
202
|
+
}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
203
|
+
crawl: import("@mastra/core").Tool<"crawler", import("zod").ZodObject<{
|
|
204
|
+
url: import("zod").ZodString;
|
|
205
|
+
limit: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
206
|
+
pathRegex: import("zod").ZodNullable<import("zod").ZodString>;
|
|
207
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
208
|
+
url: string;
|
|
209
|
+
limit: number;
|
|
210
|
+
pathRegex: string | null;
|
|
211
|
+
}, {
|
|
212
|
+
url: string;
|
|
213
|
+
pathRegex: string | null;
|
|
214
|
+
limit?: number | undefined;
|
|
215
|
+
}>, import("zod").ZodObject<{
|
|
216
|
+
message: import("zod").ZodString;
|
|
217
|
+
crawlData: import("zod").ZodAny;
|
|
218
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
219
|
+
message: string;
|
|
220
|
+
crawlData?: any;
|
|
221
|
+
}, {
|
|
222
|
+
message: string;
|
|
223
|
+
crawlData?: any;
|
|
224
|
+
}>, import("@mastra/core").ToolExecutionContext<import("zod").ZodObject<{
|
|
225
|
+
url: import("zod").ZodString;
|
|
226
|
+
limit: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
227
|
+
pathRegex: import("zod").ZodNullable<import("zod").ZodString>;
|
|
228
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
229
|
+
url: string;
|
|
230
|
+
limit: number;
|
|
231
|
+
pathRegex: string | null;
|
|
232
|
+
}, {
|
|
233
|
+
url: string;
|
|
234
|
+
pathRegex: string | null;
|
|
235
|
+
limit?: number | undefined;
|
|
236
|
+
}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
237
|
+
imageTool: import("@mastra/core").Tool<"imageTool", import("zod").ZodObject<{
|
|
238
|
+
directory: import("zod").ZodString;
|
|
239
|
+
prompt: import("zod").ZodString;
|
|
240
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
241
|
+
directory: string;
|
|
242
|
+
prompt: string;
|
|
243
|
+
}, {
|
|
244
|
+
directory: string;
|
|
245
|
+
prompt: string;
|
|
246
|
+
}>, import("zod").ZodObject<{
|
|
247
|
+
message: import("zod").ZodString;
|
|
248
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
249
|
+
message: string;
|
|
250
|
+
}, {
|
|
251
|
+
message: string;
|
|
252
|
+
}>, import("@mastra/core").ToolExecutionContext<import("zod").ZodObject<{
|
|
253
|
+
directory: import("zod").ZodString;
|
|
254
|
+
prompt: import("zod").ZodString;
|
|
255
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
256
|
+
directory: string;
|
|
257
|
+
prompt: string;
|
|
258
|
+
}, {
|
|
259
|
+
directory: string;
|
|
260
|
+
prompt: string;
|
|
261
|
+
}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
262
|
+
}>;
|
|
263
|
+
//# 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;AAkBrC,eAAO,MAAM,iBAAiB,8EAU5B,CAAC;AAEH,eAAO,MAAM,gBAAgB,8EAO3B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAa/B,CAAC;AAEH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuDf,CAAC"}
|