@mastra/dane 0.0.2-alpha.11 → 0.0.2-alpha.13
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/mastra/agents/index.js +15 -15
- package/dist/mastra/tools/image.d.ts.map +1 -1
- package/dist/mastra/tools/image.js +4 -4
- package/dist/mastra/workflows/commit.d.ts +1 -0
- package/dist/mastra/workflows/commit.d.ts.map +1 -0
- package/dist/mastra/workflows/commit.js +1 -0
- package/package.json +8 -8
|
@@ -4,12 +4,12 @@ import { listEvents } from '../tools/calendar.js';
|
|
|
4
4
|
import { crawl } from '../tools/crawl.js';
|
|
5
5
|
import { execaTool } from '../tools/execa.js';
|
|
6
6
|
import { fsTool } from '../tools/fs.js';
|
|
7
|
-
import { readPDF } from '../tools/pdf.js';
|
|
8
7
|
import { imageTool } from '../tools/image.js';
|
|
8
|
+
import { readPDF } from '../tools/pdf.js';
|
|
9
9
|
export const daneIssueLabeler = new Agent({
|
|
10
10
|
name: 'DaneIssueLabeler',
|
|
11
11
|
instructions: `
|
|
12
|
-
You are Dane, the ultimate GitHub operator.
|
|
12
|
+
You are Dane, the ultimate GitHub operator.
|
|
13
13
|
You help engineers label their issues.
|
|
14
14
|
`,
|
|
15
15
|
model: {
|
|
@@ -27,38 +27,38 @@ export const dane = new Agent({
|
|
|
27
27
|
DO NOT ATTEMPT TO USE GENERAL KNOWLEDGE! We are only as good as the tools we use.
|
|
28
28
|
|
|
29
29
|
# Our tools:
|
|
30
|
-
|
|
30
|
+
|
|
31
31
|
## readPDF
|
|
32
32
|
Makes you a powerful agent capable of reading PDF files.
|
|
33
33
|
|
|
34
34
|
## fsTool
|
|
35
35
|
Makes you a powerful agent capable of reading and writing files to the local filesystem.
|
|
36
|
-
|
|
36
|
+
|
|
37
37
|
## execaTool
|
|
38
|
-
Makes you a powerful agent capabale of executing files on the local system.
|
|
39
|
-
|
|
40
|
-
## googleSearch
|
|
38
|
+
Makes you a powerful agent capabale of executing files on the local system.
|
|
39
|
+
|
|
40
|
+
## googleSearch
|
|
41
41
|
Makes you a powerful agent capabale answering all questions by finding the answer on Google search.
|
|
42
42
|
Pass the query as a JS object. If you have links, ALWAYS CITE YOUR SOURCES.
|
|
43
|
-
|
|
43
|
+
|
|
44
44
|
## browserTool
|
|
45
|
-
Makes you a powerful agent capable of scraping the web. Pass the url as a JS object.
|
|
45
|
+
Makes you a powerful agent capable of scraping the web. Pass the url as a JS object.
|
|
46
46
|
|
|
47
47
|
## listEvents
|
|
48
|
-
Makes you a powerful agent capable of listing events on a calendar. When using this tool ONLY RETURN RELEVANT EVENTS.
|
|
48
|
+
Makes you a powerful agent capable of listing events on a calendar. When using this tool ONLY RETURN RELEVANT EVENTS.
|
|
49
49
|
DO NOT ATTEMPT TO DO ANYTHING MORE.
|
|
50
50
|
|
|
51
51
|
## crawl
|
|
52
52
|
Use this when the user asks you to crawl. CRAWL is the signal to use this tool.
|
|
53
|
-
Makes you a powerful agent capable of crawling a site and extracting markdown metadata.
|
|
53
|
+
Makes you a powerful agent capable of crawling a site and extracting markdown metadata.
|
|
54
54
|
The data will be stored in a database. Confirm that it is sucessful.
|
|
55
55
|
|
|
56
56
|
## imageTool
|
|
57
|
-
Makes you a powerful agent capable of generating images and saving them to disk. Pass the directory and an image prompt.
|
|
58
|
-
|
|
57
|
+
Makes you a powerful agent capable of generating images and saving them to disk. Pass the directory and an image prompt.
|
|
58
|
+
|
|
59
59
|
# Rules
|
|
60
60
|
* DO NOT ATTEMPT TO USE GENERAL KNOWLEDGE. Use the 'googleSearch' tool to find the answer.
|
|
61
|
-
* Don't reference tools when you communicate with the user. Do not mention what tools you are using.
|
|
61
|
+
* Don't reference tools when you communicate with the user. Do not mention what tools you are using.
|
|
62
62
|
* Tell the user what you are doing.
|
|
63
63
|
`,
|
|
64
64
|
model: {
|
|
@@ -74,7 +74,7 @@ export const dane = new Agent({
|
|
|
74
74
|
readPDF,
|
|
75
75
|
listEvents,
|
|
76
76
|
crawl,
|
|
77
|
-
imageTool
|
|
77
|
+
imageTool,
|
|
78
78
|
// TODO I SHOULD BE ABLE TO PASS A WORKFLOW EXECUTE HERE
|
|
79
79
|
// browserAgentRelay,
|
|
80
80
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../src/mastra/tools/image.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../src/mastra/tools/image.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;iDAgCpB,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
1
|
import { createTool } from '@mastra/core';
|
|
3
|
-
import { stabilityai } from "../integrations";
|
|
4
|
-
import { writeFileSync } from "fs";
|
|
5
|
-
import { resolve } from "path";
|
|
6
2
|
import chalk from 'chalk';
|
|
3
|
+
import { writeFileSync } from 'fs';
|
|
4
|
+
import { resolve } from 'path';
|
|
5
|
+
import { z } from 'zod';
|
|
6
|
+
import { stabilityai } from '../integrations/index.js';
|
|
7
7
|
export const imageTool = createTool({
|
|
8
8
|
id: 'imageTool',
|
|
9
9
|
name: 'imageTool',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=commit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commit.d.ts","sourceRoot":"","sources":["../../../src/mastra/workflows/commit.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/dane",
|
|
3
|
-
"version": "0.0.2-alpha.
|
|
3
|
+
"version": "0.0.2-alpha.13",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
"sqlite3": "^5.1.7",
|
|
38
38
|
"typescript": "^5.5.4",
|
|
39
39
|
"zod": "^3.24.0",
|
|
40
|
-
"@mastra/core": "0.1.27-alpha.
|
|
41
|
-
"@mastra/engine": "0.0.5-alpha.
|
|
42
|
-
"@mastra/firecrawl": "1.0.4-alpha.
|
|
43
|
-
"@mastra/github": "1.0.3-alpha.
|
|
44
|
-
"@mastra/stabilityai": "1.0.1-alpha.
|
|
45
|
-
"@mastra/memory": "0.0.2-alpha.
|
|
46
|
-
"@mastra/rag": "0.0.2-alpha.
|
|
40
|
+
"@mastra/core": "0.1.27-alpha.44",
|
|
41
|
+
"@mastra/engine": "0.0.5-alpha.38",
|
|
42
|
+
"@mastra/firecrawl": "1.0.4-alpha.29",
|
|
43
|
+
"@mastra/github": "1.0.3-alpha.28",
|
|
44
|
+
"@mastra/stabilityai": "1.0.1-alpha.19",
|
|
45
|
+
"@mastra/memory": "0.0.2-alpha.23",
|
|
46
|
+
"@mastra/rag": "0.0.2-alpha.28"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
49
49
|
"build": "npx tsc",
|