@mastra/dane 0.0.2-alpha.104 → 0.0.2-alpha.107
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/message.js +1 -1
- package/dist/mastra/agents/index.d.ts +13 -13
- package/dist/mastra/agents/index.d.ts.map +1 -1
- package/dist/mastra/agents/index.js +1 -1
- package/dist/mastra/agents/new-contributor.d.ts +1 -1
- package/dist/mastra/agents/new-contributor.d.ts.map +1 -1
- package/dist/mastra/agents/new-contributor.js +1 -1
- package/dist/mastra/agents/package-publisher.d.ts +5 -5
- package/dist/mastra/agents/package-publisher.d.ts.map +1 -1
- package/dist/mastra/agents/package-publisher.js +1 -1
- package/dist/mastra/index.d.ts +39 -39
- package/dist/mastra/index.d.ts.map +1 -1
- package/dist/mastra/index.js +9 -5
- package/dist/mastra/tools/browser.d.ts +2 -2
- package/dist/mastra/tools/browser.js +1 -1
- package/dist/mastra/tools/calendar.d.ts +1 -1
- package/dist/mastra/tools/calendar.js +1 -1
- package/dist/mastra/tools/crawl.d.ts +1 -1
- package/dist/mastra/tools/crawl.js +1 -1
- package/dist/mastra/tools/execa.d.ts +1 -1
- package/dist/mastra/tools/execa.js +1 -1
- package/dist/mastra/tools/fs.d.ts +5 -5
- package/dist/mastra/tools/fs.js +1 -1
- package/dist/mastra/tools/image.d.ts +1 -1
- package/dist/mastra/tools/image.js +1 -1
- package/dist/mastra/tools/pdf.d.ts +1 -1
- package/dist/mastra/tools/pdf.js +1 -1
- package/dist/mastra/tools/pnpm.d.ts +4 -4
- package/dist/mastra/tools/pnpm.js +1 -1
- package/dist/mastra/workflows/changelog.d.ts +1 -1
- package/dist/mastra/workflows/changelog.d.ts.map +1 -1
- package/dist/mastra/workflows/changelog.js +1 -1
- package/dist/mastra/workflows/chat.d.ts +4 -4
- package/dist/mastra/workflows/chat.d.ts.map +1 -1
- package/dist/mastra/workflows/chat.js +14 -12
- package/dist/mastra/workflows/commit-message.d.ts +1 -1
- package/dist/mastra/workflows/commit-message.d.ts.map +1 -1
- package/dist/mastra/workflows/commit-message.js +1 -1
- package/dist/mastra/workflows/first-contributor.d.ts +3 -3
- package/dist/mastra/workflows/first-contributor.d.ts.map +1 -1
- package/dist/mastra/workflows/first-contributor.js +1 -1
- package/dist/mastra/workflows/issue-labeler.d.ts +3 -3
- package/dist/mastra/workflows/issue-labeler.d.ts.map +1 -1
- package/dist/mastra/workflows/issue-labeler.js +2 -2
- package/dist/mastra/workflows/link-checker.d.ts +1 -1
- package/dist/mastra/workflows/link-checker.d.ts.map +1 -1
- package/dist/mastra/workflows/link-checker.js +1 -1
- package/dist/mastra/workflows/publish-packages.d.ts +1 -1
- package/dist/mastra/workflows/publish-packages.d.ts.map +1 -1
- package/dist/mastra/workflows/publish-packages.js +1 -1
- package/dist/mastra/workflows/telephone-game.d.ts +1 -1
- package/dist/mastra/workflows/telephone-game.d.ts.map +1 -1
- package/dist/mastra/workflows/telephone-game.js +1 -1
- package/package.json +12 -9
package/dist/commands/message.js
CHANGED
|
@@ -7,7 +7,7 @@ export async function message() {
|
|
|
7
7
|
console.log(runId);
|
|
8
8
|
console.log(await start({
|
|
9
9
|
triggerData: {
|
|
10
|
-
|
|
10
|
+
resourceId: 'f8b5c3a1-d6e7-4f9c-b2a3-1d8e4c7f9b5a',
|
|
11
11
|
threadId: '2d9e8c7f-6b5a-4d3c-8f1e-9b7d5c3a2e8h',
|
|
12
12
|
},
|
|
13
13
|
}));
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { Agent } from '@mastra/core';
|
|
1
|
+
import { Agent } from '@mastra/core/agent';
|
|
2
2
|
export declare const daneCommitMessage: Agent<Record<string, import("@mastra/core").ToolAction<any, any, any, any>>, Record<string, import("@mastra/core").Metric>>;
|
|
3
3
|
export declare const daneIssueLabeler: Agent<Record<string, import("@mastra/core").ToolAction<any, any, any, any>>, Record<string, import("@mastra/core").Metric>>;
|
|
4
4
|
export declare const daneLinkChecker: Agent<Record<string, import("@mastra/core").ToolAction<any, any, any, any>>, Record<string, import("@mastra/core").Metric>>;
|
|
5
5
|
export declare const daneChangeLog: Agent<Record<string, import("@mastra/core").ToolAction<any, any, any, any>>, Record<string, import("@mastra/core").Metric>>;
|
|
6
6
|
export declare const dane: Agent<{
|
|
7
|
-
fsTool: import("@mastra/core").Tool<"fsTool", import("zod").ZodObject<{
|
|
7
|
+
fsTool: import("@mastra/core/tools").Tool<"fsTool", import("zod").ZodObject<{
|
|
8
8
|
action: import("zod").ZodString;
|
|
9
9
|
file: import("zod").ZodString;
|
|
10
10
|
data: import("zod").ZodString;
|
|
11
11
|
}, "strip", import("zod").ZodTypeAny, {
|
|
12
12
|
data: string;
|
|
13
|
-
action: string;
|
|
14
13
|
file: string;
|
|
14
|
+
action: string;
|
|
15
15
|
}, {
|
|
16
16
|
data: string;
|
|
17
|
-
action: string;
|
|
18
17
|
file: string;
|
|
18
|
+
action: string;
|
|
19
19
|
}>, import("zod").ZodObject<{
|
|
20
20
|
message: import("zod").ZodString;
|
|
21
21
|
}, "strip", import("zod").ZodTypeAny, {
|
|
@@ -28,14 +28,14 @@ export declare const dane: Agent<{
|
|
|
28
28
|
data: import("zod").ZodString;
|
|
29
29
|
}, "strip", import("zod").ZodTypeAny, {
|
|
30
30
|
data: string;
|
|
31
|
-
action: string;
|
|
32
31
|
file: string;
|
|
32
|
+
action: string;
|
|
33
33
|
}, {
|
|
34
34
|
data: string;
|
|
35
|
-
action: string;
|
|
36
35
|
file: string;
|
|
36
|
+
action: string;
|
|
37
37
|
}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
38
|
-
execaTool: import("@mastra/core").Tool<"execaTool", import("zod").ZodObject<{
|
|
38
|
+
execaTool: import("@mastra/core/tools").Tool<"execaTool", import("zod").ZodObject<{
|
|
39
39
|
command: import("zod").ZodString;
|
|
40
40
|
args: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
41
41
|
}, "strip", import("zod").ZodTypeAny, {
|
|
@@ -60,7 +60,7 @@ export declare const dane: Agent<{
|
|
|
60
60
|
command: string;
|
|
61
61
|
args: string[];
|
|
62
62
|
}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
63
|
-
browserTool: import("@mastra/core").Tool<"browserTool", import("zod").ZodObject<{
|
|
63
|
+
browserTool: import("@mastra/core/tools").Tool<"browserTool", import("zod").ZodObject<{
|
|
64
64
|
url: import("zod").ZodString;
|
|
65
65
|
}, "strip", import("zod").ZodTypeAny, {
|
|
66
66
|
url: string;
|
|
@@ -79,7 +79,7 @@ export declare const dane: Agent<{
|
|
|
79
79
|
}, {
|
|
80
80
|
url: string;
|
|
81
81
|
}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
82
|
-
googleSearch: import("@mastra/core").Tool<"googleSearch", import("zod").ZodObject<{
|
|
82
|
+
googleSearch: import("@mastra/core/tools").Tool<"googleSearch", import("zod").ZodObject<{
|
|
83
83
|
query: import("zod").ZodString;
|
|
84
84
|
}, "strip", import("zod").ZodTypeAny, {
|
|
85
85
|
query: string;
|
|
@@ -98,7 +98,7 @@ export declare const dane: Agent<{
|
|
|
98
98
|
}, {
|
|
99
99
|
query: string;
|
|
100
100
|
}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
101
|
-
readPDF: import("@mastra/core").Tool<"readPDF", import("zod").ZodObject<{
|
|
101
|
+
readPDF: import("@mastra/core/tools").Tool<"readPDF", import("zod").ZodObject<{
|
|
102
102
|
pdfPath: import("zod").ZodString;
|
|
103
103
|
}, "strip", import("zod").ZodTypeAny, {
|
|
104
104
|
pdfPath: string;
|
|
@@ -117,7 +117,7 @@ export declare const dane: Agent<{
|
|
|
117
117
|
}, {
|
|
118
118
|
pdfPath: string;
|
|
119
119
|
}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
120
|
-
listEvents: import("@mastra/core").Tool<"listEvents", import("zod").ZodObject<{
|
|
120
|
+
listEvents: import("@mastra/core/tools").Tool<"listEvents", import("zod").ZodObject<{
|
|
121
121
|
startDate: import("zod").ZodString;
|
|
122
122
|
}, "strip", import("zod").ZodTypeAny, {
|
|
123
123
|
startDate: string;
|
|
@@ -136,7 +136,7 @@ export declare const dane: Agent<{
|
|
|
136
136
|
}, {
|
|
137
137
|
startDate: string;
|
|
138
138
|
}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
139
|
-
crawl: import("@mastra/core").Tool<"crawler", import("zod").ZodObject<{
|
|
139
|
+
crawl: import("@mastra/core/tools").Tool<"crawler", import("zod").ZodObject<{
|
|
140
140
|
url: import("zod").ZodString;
|
|
141
141
|
limit: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
142
142
|
pathRegex: import("zod").ZodNullable<import("zod").ZodString>;
|
|
@@ -170,7 +170,7 @@ export declare const dane: Agent<{
|
|
|
170
170
|
pathRegex: string | null;
|
|
171
171
|
limit?: number | undefined;
|
|
172
172
|
}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
173
|
-
imageTool: import("@mastra/core").Tool<"imageTool", import("zod").ZodObject<{
|
|
173
|
+
imageTool: import("@mastra/core/tools").Tool<"imageTool", import("zod").ZodObject<{
|
|
174
174
|
directory: import("zod").ZodString;
|
|
175
175
|
prompt: import("zod").ZodString;
|
|
176
176
|
}, "strip", import("zod").ZodTypeAny, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/mastra/agents/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/mastra/agents/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAY3C,eAAO,MAAM,iBAAiB,6HAU5B,CAAC;AAEH,eAAO,MAAM,gBAAgB,6HAO3B,CAAC;AAEH,eAAO,MAAM,eAAe,6HAa1B,CAAC;AAEH,eAAO,MAAM,aAAa,6HAcxB,CAAC;AAEH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDAuDf,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"new-contributor.d.ts","sourceRoot":"","sources":["../../../src/mastra/agents/new-contributor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"new-contributor.d.ts","sourceRoot":"","sources":["../../../src/mastra/agents/new-contributor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAI3C,eAAO,MAAM,kBAAkB,0DAS7B,CAAC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { Agent } from '@mastra/core';
|
|
1
|
+
import { Agent } from '@mastra/core/agent';
|
|
2
2
|
export declare const PACKAGES_LIST_PROMPT = "\n Please analyze the following monorepo directories and identify packages that need pnpm publishing:\n CRITICAL: This step is about planning. We do not want to build anything. All packages MUST be placed in the correct order.\n \n Publish Requirements:\n - @mastra/core first, MUST be before any other package\n - all packages in correct dependency order before building\n - Identify packages that have changes requiring a new pnpm publish\n - Include create-mastra in the packages list if changes exist\n - EXCLUDE @mastra/dane from consideration\n\n Please list all packages that need building grouped by their directory. \n DO NOT NOT USE the 'pnpmBuild' tool during this step.\n ";
|
|
3
3
|
export declare const BUILD_PACKAGES_PROMPT: (packages: string[]) => string;
|
|
4
4
|
export declare const PUBLISH_PACKAGES_PROMPT = "\n <publish_changeset>\n <context>\n All packages have been successfully built and verified. Now we need to publish the changeset.\n </context>\n\n <execution_steps>\n <step order=\"1\">\n <action>Use pnpmChangesetPublish to publish all verified packages</action>\n <verification>Ensure the publish command completes successfully</verification>\n </step>\n </execution_steps>\n\n <critical_rules>\n <rule>Do not proceed if any publish errors occur</rule>\n <rule>Report any failed publishes immediately</rule>\n <rule>Ensure all packages are published atomically</rule>\n </critical_rules>\n\n <output_format>\n Report the publish status and any errors encountered.\n </output_format>\n </publish_changeset>\n \n";
|
|
5
5
|
export declare const danePackagePublisher: Agent<{
|
|
6
|
-
pnpmChangesetStatus: import("@mastra/core").Tool<"pnpmChangesetStatus", import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>, import("zod").ZodObject<{
|
|
6
|
+
pnpmChangesetStatus: import("@mastra/core/tools").Tool<"pnpmChangesetStatus", import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>, import("zod").ZodObject<{
|
|
7
7
|
message: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
8
8
|
}, "strip", import("zod").ZodTypeAny, {
|
|
9
9
|
message: string[];
|
|
10
10
|
}, {
|
|
11
11
|
message: string[];
|
|
12
12
|
}>, import("@mastra/core").ToolExecutionContext<import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
13
|
-
pnpmBuild: import("@mastra/core").Tool<"pnpmBuild", import("zod").ZodObject<{
|
|
13
|
+
pnpmBuild: import("@mastra/core/tools").Tool<"pnpmBuild", import("zod").ZodObject<{
|
|
14
14
|
name: import("zod").ZodString;
|
|
15
15
|
packagePath: import("zod").ZodString;
|
|
16
16
|
}, "strip", import("zod").ZodTypeAny, {
|
|
@@ -35,14 +35,14 @@ export declare const danePackagePublisher: Agent<{
|
|
|
35
35
|
name: string;
|
|
36
36
|
packagePath: string;
|
|
37
37
|
}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
38
|
-
pnpmChangesetPublish: import("@mastra/core").Tool<"pnpmChangesetPublish", import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>, import("zod").ZodObject<{
|
|
38
|
+
pnpmChangesetPublish: import("@mastra/core/tools").Tool<"pnpmChangesetPublish", import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>, import("zod").ZodObject<{
|
|
39
39
|
message: import("zod").ZodString;
|
|
40
40
|
}, "strip", import("zod").ZodTypeAny, {
|
|
41
41
|
message: string;
|
|
42
42
|
}, {
|
|
43
43
|
message: string;
|
|
44
44
|
}>, import("@mastra/core").ToolExecutionContext<import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
45
|
-
activeDistTag: import("@mastra/core").Tool<"activeDistTag", import("zod").ZodObject<{
|
|
45
|
+
activeDistTag: import("@mastra/core/tools").Tool<"activeDistTag", import("zod").ZodObject<{
|
|
46
46
|
packagePath: import("zod").ZodString;
|
|
47
47
|
}, "strip", import("zod").ZodTypeAny, {
|
|
48
48
|
packagePath: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package-publisher.d.ts","sourceRoot":"","sources":["../../../src/mastra/agents/package-publisher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"package-publisher.d.ts","sourceRoot":"","sources":["../../../src/mastra/agents/package-publisher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAgD3C,eAAO,MAAM,oBAAoB,iwBAa5B,CAAC;AAEN,eAAO,MAAM,qBAAqB,aAAc,MAAM,EAAE,WAoDvD,CAAC;AAEF,eAAO,MAAM,uBAAuB,u2BAwBnC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDA+B/B,CAAC"}
|
package/dist/mastra/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { Mastra } from '@mastra/core';
|
|
2
2
|
export declare const mastra: Mastra<{
|
|
3
|
-
dane: import("@mastra/core").Agent<{
|
|
4
|
-
fsTool: import("@mastra/core").Tool<"fsTool", import("zod").ZodObject<{
|
|
3
|
+
dane: import("@mastra/core/agent").Agent<{
|
|
4
|
+
fsTool: import("@mastra/core/tools").Tool<"fsTool", import("zod").ZodObject<{
|
|
5
5
|
action: import("zod").ZodString;
|
|
6
6
|
file: import("zod").ZodString;
|
|
7
7
|
data: import("zod").ZodString;
|
|
8
8
|
}, "strip", import("zod").ZodTypeAny, {
|
|
9
9
|
data: string;
|
|
10
|
-
action: string;
|
|
11
10
|
file: string;
|
|
11
|
+
action: string;
|
|
12
12
|
}, {
|
|
13
13
|
data: string;
|
|
14
|
-
action: string;
|
|
15
14
|
file: string;
|
|
15
|
+
action: string;
|
|
16
16
|
}>, import("zod").ZodObject<{
|
|
17
17
|
message: import("zod").ZodString;
|
|
18
18
|
}, "strip", import("zod").ZodTypeAny, {
|
|
@@ -25,14 +25,14 @@ export declare const mastra: Mastra<{
|
|
|
25
25
|
data: import("zod").ZodString;
|
|
26
26
|
}, "strip", import("zod").ZodTypeAny, {
|
|
27
27
|
data: string;
|
|
28
|
-
action: string;
|
|
29
28
|
file: string;
|
|
29
|
+
action: string;
|
|
30
30
|
}, {
|
|
31
31
|
data: string;
|
|
32
|
-
action: string;
|
|
33
32
|
file: string;
|
|
33
|
+
action: string;
|
|
34
34
|
}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
35
|
-
execaTool: import("@mastra/core").Tool<"execaTool", import("zod").ZodObject<{
|
|
35
|
+
execaTool: import("@mastra/core/tools").Tool<"execaTool", import("zod").ZodObject<{
|
|
36
36
|
command: import("zod").ZodString;
|
|
37
37
|
args: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
38
38
|
}, "strip", import("zod").ZodTypeAny, {
|
|
@@ -57,7 +57,7 @@ export declare const mastra: Mastra<{
|
|
|
57
57
|
command: string;
|
|
58
58
|
args: string[];
|
|
59
59
|
}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
60
|
-
browserTool: import("@mastra/core").Tool<"browserTool", import("zod").ZodObject<{
|
|
60
|
+
browserTool: import("@mastra/core/tools").Tool<"browserTool", import("zod").ZodObject<{
|
|
61
61
|
url: import("zod").ZodString;
|
|
62
62
|
}, "strip", import("zod").ZodTypeAny, {
|
|
63
63
|
url: string;
|
|
@@ -76,7 +76,7 @@ export declare const mastra: Mastra<{
|
|
|
76
76
|
}, {
|
|
77
77
|
url: string;
|
|
78
78
|
}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
79
|
-
googleSearch: import("@mastra/core").Tool<"googleSearch", import("zod").ZodObject<{
|
|
79
|
+
googleSearch: import("@mastra/core/tools").Tool<"googleSearch", import("zod").ZodObject<{
|
|
80
80
|
query: import("zod").ZodString;
|
|
81
81
|
}, "strip", import("zod").ZodTypeAny, {
|
|
82
82
|
query: string;
|
|
@@ -95,7 +95,7 @@ export declare const mastra: Mastra<{
|
|
|
95
95
|
}, {
|
|
96
96
|
query: string;
|
|
97
97
|
}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
98
|
-
readPDF: import("@mastra/core").Tool<"readPDF", import("zod").ZodObject<{
|
|
98
|
+
readPDF: import("@mastra/core/tools").Tool<"readPDF", import("zod").ZodObject<{
|
|
99
99
|
pdfPath: import("zod").ZodString;
|
|
100
100
|
}, "strip", import("zod").ZodTypeAny, {
|
|
101
101
|
pdfPath: string;
|
|
@@ -114,7 +114,7 @@ export declare const mastra: Mastra<{
|
|
|
114
114
|
}, {
|
|
115
115
|
pdfPath: string;
|
|
116
116
|
}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
117
|
-
listEvents: import("@mastra/core").Tool<"listEvents", import("zod").ZodObject<{
|
|
117
|
+
listEvents: import("@mastra/core/tools").Tool<"listEvents", import("zod").ZodObject<{
|
|
118
118
|
startDate: import("zod").ZodString;
|
|
119
119
|
}, "strip", import("zod").ZodTypeAny, {
|
|
120
120
|
startDate: string;
|
|
@@ -133,7 +133,7 @@ export declare const mastra: Mastra<{
|
|
|
133
133
|
}, {
|
|
134
134
|
startDate: string;
|
|
135
135
|
}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
136
|
-
crawl: import("@mastra/core").Tool<"crawler", import("zod").ZodObject<{
|
|
136
|
+
crawl: import("@mastra/core/tools").Tool<"crawler", import("zod").ZodObject<{
|
|
137
137
|
url: import("zod").ZodString;
|
|
138
138
|
limit: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
139
139
|
pathRegex: import("zod").ZodNullable<import("zod").ZodString>;
|
|
@@ -167,7 +167,7 @@ export declare const mastra: Mastra<{
|
|
|
167
167
|
pathRegex: string | null;
|
|
168
168
|
limit?: number | undefined;
|
|
169
169
|
}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
170
|
-
imageTool: import("@mastra/core").Tool<"imageTool", import("zod").ZodObject<{
|
|
170
|
+
imageTool: import("@mastra/core/tools").Tool<"imageTool", import("zod").ZodObject<{
|
|
171
171
|
directory: import("zod").ZodString;
|
|
172
172
|
prompt: import("zod").ZodString;
|
|
173
173
|
}, "strip", import("zod").ZodTypeAny, {
|
|
@@ -193,15 +193,15 @@ export declare const mastra: Mastra<{
|
|
|
193
193
|
prompt: string;
|
|
194
194
|
}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
195
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<{
|
|
196
|
+
danePackagePublisher: import("@mastra/core/agent").Agent<{
|
|
197
|
+
pnpmChangesetStatus: import("@mastra/core/tools").Tool<"pnpmChangesetStatus", import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>, import("zod").ZodObject<{
|
|
198
198
|
message: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
199
199
|
}, "strip", import("zod").ZodTypeAny, {
|
|
200
200
|
message: string[];
|
|
201
201
|
}, {
|
|
202
202
|
message: string[];
|
|
203
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<{
|
|
204
|
+
pnpmBuild: import("@mastra/core/tools").Tool<"pnpmBuild", import("zod").ZodObject<{
|
|
205
205
|
name: import("zod").ZodString;
|
|
206
206
|
packagePath: import("zod").ZodString;
|
|
207
207
|
}, "strip", import("zod").ZodTypeAny, {
|
|
@@ -226,14 +226,14 @@ export declare const mastra: Mastra<{
|
|
|
226
226
|
name: string;
|
|
227
227
|
packagePath: string;
|
|
228
228
|
}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
229
|
-
pnpmChangesetPublish: import("@mastra/core").Tool<"pnpmChangesetPublish", import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>, import("zod").ZodObject<{
|
|
229
|
+
pnpmChangesetPublish: import("@mastra/core/tools").Tool<"pnpmChangesetPublish", import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>, import("zod").ZodObject<{
|
|
230
230
|
message: import("zod").ZodString;
|
|
231
231
|
}, "strip", import("zod").ZodTypeAny, {
|
|
232
232
|
message: string;
|
|
233
233
|
}, {
|
|
234
234
|
message: string;
|
|
235
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<{
|
|
236
|
+
activeDistTag: import("@mastra/core/tools").Tool<"activeDistTag", import("zod").ZodObject<{
|
|
237
237
|
packagePath: import("zod").ZodString;
|
|
238
238
|
}, "strip", import("zod").ZodTypeAny, {
|
|
239
239
|
packagePath: string;
|
|
@@ -253,65 +253,65 @@ export declare const mastra: Mastra<{
|
|
|
253
253
|
packagePath: string;
|
|
254
254
|
}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
255
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>>;
|
|
256
|
+
daneLinkChecker: import("@mastra/core/agent").Agent<Record<string, import("@mastra/core").ToolAction<any, any, any, any>>, Record<string, import("@mastra/core").Metric>>;
|
|
257
|
+
daneIssueLabeler: import("@mastra/core/agent").Agent<Record<string, import("@mastra/core").ToolAction<any, any, any, any>>, Record<string, import("@mastra/core").Metric>>;
|
|
258
|
+
daneCommitMessage: import("@mastra/core/agent").Agent<Record<string, import("@mastra/core").ToolAction<any, any, any, any>>, Record<string, import("@mastra/core").Metric>>;
|
|
259
|
+
daneChangeLog: import("@mastra/core/agent").Agent<Record<string, import("@mastra/core").ToolAction<any, any, any, any>>, Record<string, import("@mastra/core").Metric>>;
|
|
260
|
+
daneNewContributor: import("@mastra/core/agent").Agent<{}, Record<string, import("@mastra/core").Metric>>;
|
|
261
261
|
}, {
|
|
262
|
-
message: import("@mastra/core").Workflow<any, import("zod").ZodObject<{
|
|
263
|
-
|
|
262
|
+
message: import("@mastra/core/workflows").Workflow<any, import("zod").ZodObject<{
|
|
263
|
+
resourceId: import("zod").ZodString;
|
|
264
264
|
threadId: import("zod").ZodString;
|
|
265
265
|
}, "strip", import("zod").ZodTypeAny, {
|
|
266
|
-
|
|
266
|
+
resourceId: string;
|
|
267
267
|
threadId: string;
|
|
268
268
|
}, {
|
|
269
|
-
|
|
269
|
+
resourceId: string;
|
|
270
270
|
threadId: string;
|
|
271
271
|
}>>;
|
|
272
|
-
githubIssueLabeler: import("@mastra/core").Workflow<any, import("zod").ZodObject<{
|
|
272
|
+
githubIssueLabeler: import("@mastra/core/workflows").Workflow<any, import("zod").ZodObject<{
|
|
273
273
|
repo: import("zod").ZodString;
|
|
274
274
|
owner: import("zod").ZodString;
|
|
275
275
|
issue_number: import("zod").ZodNumber;
|
|
276
276
|
}, "strip", import("zod").ZodTypeAny, {
|
|
277
|
-
repo: string;
|
|
278
277
|
owner: string;
|
|
278
|
+
repo: string;
|
|
279
279
|
issue_number: number;
|
|
280
280
|
}, {
|
|
281
|
-
repo: string;
|
|
282
281
|
owner: string;
|
|
282
|
+
repo: string;
|
|
283
283
|
issue_number: number;
|
|
284
284
|
}>>;
|
|
285
|
-
commitMessage: import("@mastra/core").Workflow<any, import("zod").ZodObject<{
|
|
285
|
+
commitMessage: import("@mastra/core/workflows").Workflow<any, import("zod").ZodObject<{
|
|
286
286
|
repoPath: import("zod").ZodString;
|
|
287
287
|
}, "strip", import("zod").ZodTypeAny, {
|
|
288
288
|
repoPath: string;
|
|
289
289
|
}, {
|
|
290
290
|
repoPath: string;
|
|
291
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<{
|
|
292
|
+
packagePublisher: import("@mastra/core/workflows").Workflow<any, any>;
|
|
293
|
+
telephoneGame: import("@mastra/core/workflows").Workflow<any, any>;
|
|
294
|
+
changelog: import("@mastra/core/workflows").Workflow<any, import("zod").ZodObject<{
|
|
295
295
|
channelId: import("zod").ZodString;
|
|
296
296
|
}, "strip", import("zod").ZodTypeAny, {
|
|
297
297
|
channelId: string;
|
|
298
298
|
}, {
|
|
299
299
|
channelId: string;
|
|
300
300
|
}>>;
|
|
301
|
-
githubFirstContributorMessage: import("@mastra/core").Workflow<any, import("zod").ZodObject<{
|
|
301
|
+
githubFirstContributorMessage: import("@mastra/core/workflows").Workflow<any, import("zod").ZodObject<{
|
|
302
302
|
repo: import("zod").ZodString;
|
|
303
303
|
owner: import("zod").ZodString;
|
|
304
304
|
pr_number: import("zod").ZodNumber;
|
|
305
305
|
}, "strip", import("zod").ZodTypeAny, {
|
|
306
|
-
repo: string;
|
|
307
306
|
owner: string;
|
|
307
|
+
repo: string;
|
|
308
308
|
pr_number: number;
|
|
309
309
|
}, {
|
|
310
|
-
repo: string;
|
|
311
310
|
owner: string;
|
|
311
|
+
repo: string;
|
|
312
312
|
pr_number: number;
|
|
313
313
|
}>>;
|
|
314
|
-
linkChecker: import("@mastra/core").Workflow<any, import("zod").ZodObject<{
|
|
314
|
+
linkChecker: import("@mastra/core/workflows").Workflow<any, import("zod").ZodObject<{
|
|
315
315
|
channelId: import("zod").ZodString;
|
|
316
316
|
targetUrl: import("zod").ZodString;
|
|
317
317
|
}, "strip", import("zod").ZodTypeAny, {
|
|
@@ -321,5 +321,5 @@ export declare const mastra: Mastra<{
|
|
|
321
321
|
channelId: string;
|
|
322
322
|
targetUrl: string;
|
|
323
323
|
}>>;
|
|
324
|
-
}, Record<string, import("@mastra/core").MastraVector>, Record<string, import("@mastra/core").MastraTTS>, import("@mastra/core").Logger>;
|
|
324
|
+
}, Record<string, import("@mastra/core/vector").MastraVector>, Record<string, import("@mastra/core/tts").MastraTTS>, import("@mastra/core").Logger>;
|
|
325
325
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mastra/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAuB,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mastra/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAuB,MAAM,cAAc,CAAC;AAc3D,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mJAiCjB,CAAC"}
|
package/dist/mastra/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Mastra, MastraStorageLibSql } from '@mastra/core';
|
|
2
|
-
import {
|
|
2
|
+
import { Memory } from '@mastra/memory';
|
|
3
|
+
import { UpstashStore } from '@mastra/store-upstash';
|
|
3
4
|
import { dane, daneChangeLog, daneCommitMessage, daneIssueLabeler, daneLinkChecker } from './agents/index.js';
|
|
4
5
|
import { daneNewContributor } from './agents/new-contributor.js';
|
|
5
6
|
import { danePackagePublisher } from './agents/package-publisher.js';
|
|
@@ -24,10 +25,13 @@ export const mastra = new Mastra({
|
|
|
24
25
|
url: 'file:memory:',
|
|
25
26
|
},
|
|
26
27
|
}),
|
|
27
|
-
memory: new
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
memory: new Memory({
|
|
29
|
+
storage: new UpstashStore({
|
|
30
|
+
url: 'http://localhost:8079',
|
|
31
|
+
token: `example_token`,
|
|
32
|
+
// TODO: do we need to implement this in Memory?
|
|
33
|
+
// maxTokens: 39000,
|
|
34
|
+
}),
|
|
31
35
|
}),
|
|
32
36
|
workflows: {
|
|
33
37
|
message: messageWorkflow,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const browserTool: import("@mastra/core").Tool<"browserTool", z.ZodObject<{
|
|
2
|
+
export declare const browserTool: import("@mastra/core/tools").Tool<"browserTool", z.ZodObject<{
|
|
3
3
|
url: z.ZodString;
|
|
4
4
|
}, "strip", z.ZodTypeAny, {
|
|
5
5
|
url: string;
|
|
@@ -18,7 +18,7 @@ export declare const browserTool: import("@mastra/core").Tool<"browserTool", z.Z
|
|
|
18
18
|
}, {
|
|
19
19
|
url: string;
|
|
20
20
|
}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
21
|
-
export declare const googleSearch: import("@mastra/core").Tool<"googleSearch", z.ZodObject<{
|
|
21
|
+
export declare const googleSearch: import("@mastra/core/tools").Tool<"googleSearch", z.ZodObject<{
|
|
22
22
|
query: z.ZodString;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
24
|
query: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const listEvents: import("@mastra/core").Tool<"listEvents", z.ZodObject<{
|
|
2
|
+
export declare const listEvents: import("@mastra/core/tools").Tool<"listEvents", z.ZodObject<{
|
|
3
3
|
startDate: z.ZodString;
|
|
4
4
|
}, "strip", z.ZodTypeAny, {
|
|
5
5
|
startDate: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const crawl: import("@mastra/core").Tool<"crawler", z.ZodObject<{
|
|
2
|
+
export declare const crawl: import("@mastra/core/tools").Tool<"crawler", z.ZodObject<{
|
|
3
3
|
url: z.ZodString;
|
|
4
4
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
5
5
|
pathRegex: z.ZodNullable<z.ZodString>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const execaTool: import("@mastra/core").Tool<"execaTool", z.ZodObject<{
|
|
2
|
+
export declare const execaTool: import("@mastra/core/tools").Tool<"execaTool", z.ZodObject<{
|
|
3
3
|
command: z.ZodString;
|
|
4
4
|
args: z.ZodArray<z.ZodString, "many">;
|
|
5
5
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const fsTool: import("@mastra/core").Tool<"fsTool", z.ZodObject<{
|
|
2
|
+
export declare const fsTool: import("@mastra/core/tools").Tool<"fsTool", z.ZodObject<{
|
|
3
3
|
action: z.ZodString;
|
|
4
4
|
file: z.ZodString;
|
|
5
5
|
data: z.ZodString;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
7
|
data: string;
|
|
8
|
-
action: string;
|
|
9
8
|
file: string;
|
|
9
|
+
action: string;
|
|
10
10
|
}, {
|
|
11
11
|
data: string;
|
|
12
|
-
action: string;
|
|
13
12
|
file: string;
|
|
13
|
+
action: string;
|
|
14
14
|
}>, z.ZodObject<{
|
|
15
15
|
message: z.ZodString;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -23,11 +23,11 @@ export declare const fsTool: import("@mastra/core").Tool<"fsTool", z.ZodObject<{
|
|
|
23
23
|
data: z.ZodString;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
25
|
data: string;
|
|
26
|
-
action: string;
|
|
27
26
|
file: string;
|
|
27
|
+
action: string;
|
|
28
28
|
}, {
|
|
29
29
|
data: string;
|
|
30
|
-
action: string;
|
|
31
30
|
file: string;
|
|
31
|
+
action: string;
|
|
32
32
|
}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
33
33
|
//# sourceMappingURL=fs.d.ts.map
|
package/dist/mastra/tools/fs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const imageTool: import("@mastra/core").Tool<"imageTool", z.ZodObject<{
|
|
2
|
+
export declare const imageTool: import("@mastra/core/tools").Tool<"imageTool", z.ZodObject<{
|
|
3
3
|
directory: z.ZodString;
|
|
4
4
|
prompt: z.ZodString;
|
|
5
5
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const readPDF: import("@mastra/core").Tool<"readPDF", z.ZodObject<{
|
|
2
|
+
export declare const readPDF: import("@mastra/core/tools").Tool<"readPDF", z.ZodObject<{
|
|
3
3
|
pdfPath: z.ZodString;
|
|
4
4
|
}, "strip", z.ZodTypeAny, {
|
|
5
5
|
pdfPath: string;
|
package/dist/mastra/tools/pdf.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const pnpmBuild: import("@mastra/core").Tool<"pnpmBuild", z.ZodObject<{
|
|
2
|
+
export declare const pnpmBuild: import("@mastra/core/tools").Tool<"pnpmBuild", z.ZodObject<{
|
|
3
3
|
name: z.ZodString;
|
|
4
4
|
packagePath: z.ZodString;
|
|
5
5
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -24,21 +24,21 @@ export declare const pnpmBuild: import("@mastra/core").Tool<"pnpmBuild", z.ZodOb
|
|
|
24
24
|
name: string;
|
|
25
25
|
packagePath: string;
|
|
26
26
|
}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
27
|
-
export declare const pnpmChangesetStatus: import("@mastra/core").Tool<"pnpmChangesetStatus", z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, z.ZodObject<{
|
|
27
|
+
export declare const pnpmChangesetStatus: import("@mastra/core/tools").Tool<"pnpmChangesetStatus", z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, z.ZodObject<{
|
|
28
28
|
message: z.ZodArray<z.ZodString, "many">;
|
|
29
29
|
}, "strip", z.ZodTypeAny, {
|
|
30
30
|
message: string[];
|
|
31
31
|
}, {
|
|
32
32
|
message: string[];
|
|
33
33
|
}>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
34
|
-
export declare const pnpmChangesetPublish: import("@mastra/core").Tool<"pnpmChangesetPublish", z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, z.ZodObject<{
|
|
34
|
+
export declare const pnpmChangesetPublish: import("@mastra/core/tools").Tool<"pnpmChangesetPublish", z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, z.ZodObject<{
|
|
35
35
|
message: z.ZodString;
|
|
36
36
|
}, "strip", z.ZodTypeAny, {
|
|
37
37
|
message: string;
|
|
38
38
|
}, {
|
|
39
39
|
message: string;
|
|
40
40
|
}>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, import("@mastra/core").WorkflowContext<any>>>;
|
|
41
|
-
export declare const activeDistTag: import("@mastra/core").Tool<"activeDistTag", z.ZodObject<{
|
|
41
|
+
export declare const activeDistTag: import("@mastra/core/tools").Tool<"activeDistTag", z.ZodObject<{
|
|
42
42
|
packagePath: z.ZodString;
|
|
43
43
|
}, "strip", z.ZodTypeAny, {
|
|
44
44
|
packagePath: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"changelog.d.ts","sourceRoot":"","sources":["../../../src/mastra/workflows/changelog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"changelog.d.ts","sourceRoot":"","sources":["../../../src/mastra/workflows/changelog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAIxD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,iBAAiB;;;;;;GAK5B,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Workflow } from '@mastra/core';
|
|
1
|
+
import { Workflow } from '@mastra/core/workflows';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const messageWorkflow: Workflow<any, z.ZodObject<{
|
|
4
|
-
|
|
4
|
+
resourceId: z.ZodString;
|
|
5
5
|
threadId: z.ZodString;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
|
|
7
|
+
resourceId: string;
|
|
8
8
|
threadId: string;
|
|
9
9
|
}, {
|
|
10
|
-
|
|
10
|
+
resourceId: string;
|
|
11
11
|
threadId: string;
|
|
12
12
|
}>>;
|
|
13
13
|
//# sourceMappingURL=chat.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../../src/mastra/workflows/chat.ts"],"names":[],"mappings":"AACA,OAAO,EAAQ,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../../src/mastra/workflows/chat.ts"],"names":[],"mappings":"AACA,OAAO,EAAQ,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,eAAe;;;;;;;;;GAM1B,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { input } from '@inquirer/prompts';
|
|
2
|
-
import { Step, Workflow } from '@mastra/core';
|
|
2
|
+
import { Step, Workflow } from '@mastra/core/workflows';
|
|
3
3
|
import chalk from 'chalk';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import { dane } from '../agents/index.js';
|
|
6
6
|
export const messageWorkflow = new Workflow({
|
|
7
7
|
name: 'entry',
|
|
8
8
|
triggerSchema: z.object({
|
|
9
|
-
|
|
9
|
+
resourceId: z.string(),
|
|
10
10
|
threadId: z.string(),
|
|
11
11
|
}),
|
|
12
12
|
});
|
|
@@ -32,7 +32,7 @@ const messageOutputStep = new Step({
|
|
|
32
32
|
execute: async ({ context, mastra }) => {
|
|
33
33
|
// WISH THIS WAS TYPED
|
|
34
34
|
const threadId = context?.machineContext?.triggerData?.threadId;
|
|
35
|
-
const
|
|
35
|
+
const resourceId = context?.machineContext?.triggerData?.resourceId;
|
|
36
36
|
const messageInputStatus = context?.machineContext?.stepResults?.['message-input']?.status;
|
|
37
37
|
if (messageInputStatus !== 'success') {
|
|
38
38
|
return { message: 'Failure in workflow' };
|
|
@@ -40,16 +40,18 @@ const messageOutputStep = new Step({
|
|
|
40
40
|
// is there someway to know what steps are flowing into this one and type their props
|
|
41
41
|
const message = context?.machineContext?.stepResults?.['message-input']?.payload?.message;
|
|
42
42
|
try {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
43
|
+
// TODO: why was this unused?
|
|
44
|
+
// let messages = await mastra?.memory?.getContextWindow({
|
|
45
|
+
// threadId,
|
|
46
|
+
// format: 'core_message',
|
|
47
|
+
// });
|
|
48
|
+
//
|
|
49
|
+
// if (!messages || messages.length === 0) {
|
|
50
|
+
// messages = [];
|
|
51
|
+
// }
|
|
50
52
|
const res = await mastra?.agents?.['dane']?.stream(message, {
|
|
51
53
|
maxSteps: 5,
|
|
52
|
-
|
|
54
|
+
resourceId,
|
|
53
55
|
threadId,
|
|
54
56
|
context: [],
|
|
55
57
|
});
|
|
@@ -73,7 +75,7 @@ const messageOutputStep = new Step({
|
|
|
73
75
|
const res = await dane.generate(message, {
|
|
74
76
|
maxSteps: 5,
|
|
75
77
|
threadId,
|
|
76
|
-
|
|
78
|
+
resourceId,
|
|
77
79
|
});
|
|
78
80
|
console.log(chalk.green(res?.text));
|
|
79
81
|
return { message: res?.text };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commit-message.d.ts","sourceRoot":"","sources":["../../../src/mastra/workflows/commit-message.ts"],"names":[],"mappings":"AACA,OAAO,EAAQ,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"commit-message.d.ts","sourceRoot":"","sources":["../../../src/mastra/workflows/commit-message.ts"],"names":[],"mappings":"AACA,OAAO,EAAQ,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAGxD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,sBAAsB;;;;;;GAKjC,CAAC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { Workflow } from '@mastra/core';
|
|
1
|
+
import { Workflow } from '@mastra/core/workflows';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const githubFirstContributorMessage: Workflow<any, z.ZodObject<{
|
|
4
4
|
repo: z.ZodString;
|
|
5
5
|
owner: z.ZodString;
|
|
6
6
|
pr_number: z.ZodNumber;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
repo: string;
|
|
9
8
|
owner: string;
|
|
9
|
+
repo: string;
|
|
10
10
|
pr_number: number;
|
|
11
11
|
}, {
|
|
12
|
-
repo: string;
|
|
13
12
|
owner: string;
|
|
13
|
+
repo: string;
|
|
14
14
|
pr_number: number;
|
|
15
15
|
}>>;
|
|
16
16
|
//# sourceMappingURL=first-contributor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"first-contributor.d.ts","sourceRoot":"","sources":["../../../src/mastra/workflows/first-contributor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"first-contributor.d.ts","sourceRoot":"","sources":["../../../src/mastra/workflows/first-contributor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,6BAA6B;;;;;;;;;;;;GAOxC,CAAC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { Workflow } from '@mastra/core';
|
|
1
|
+
import { Workflow } from '@mastra/core/workflows';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const githubIssueLabeler: Workflow<any, z.ZodObject<{
|
|
4
4
|
repo: z.ZodString;
|
|
5
5
|
owner: z.ZodString;
|
|
6
6
|
issue_number: z.ZodNumber;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
repo: string;
|
|
9
8
|
owner: string;
|
|
9
|
+
repo: string;
|
|
10
10
|
issue_number: number;
|
|
11
11
|
}, {
|
|
12
|
-
repo: string;
|
|
13
12
|
owner: string;
|
|
13
|
+
repo: string;
|
|
14
14
|
issue_number: number;
|
|
15
15
|
}>>;
|
|
16
16
|
//# sourceMappingURL=issue-labeler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issue-labeler.d.ts","sourceRoot":"","sources":["../../../src/mastra/workflows/issue-labeler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"issue-labeler.d.ts","sourceRoot":"","sources":["../../../src/mastra/workflows/issue-labeler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;GAO7B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Step, Workflow } from '@mastra/core';
|
|
1
|
+
import { Step, Workflow } from '@mastra/core/workflows';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { github } from '../integrations/index.js';
|
|
4
4
|
export const githubIssueLabeler = new Workflow({
|
|
@@ -32,7 +32,7 @@ const getIssue = new Step({
|
|
|
32
32
|
repo: context?.machineContext?.triggerData?.repo,
|
|
33
33
|
},
|
|
34
34
|
});
|
|
35
|
-
const labelNames = labels?.data?.map(label => label.name);
|
|
35
|
+
const labelNames = labels?.data?.map((label) => label.name);
|
|
36
36
|
return { title: issue?.data?.title, body: issue?.data?.body, labelNames: labelNames };
|
|
37
37
|
},
|
|
38
38
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link-checker.d.ts","sourceRoot":"","sources":["../../../src/mastra/workflows/link-checker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"link-checker.d.ts","sourceRoot":"","sources":["../../../src/mastra/workflows/link-checker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAIxD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,mBAAmB;;;;;;;;;GAM9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publish-packages.d.ts","sourceRoot":"","sources":["../../../src/mastra/workflows/publish-packages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"publish-packages.d.ts","sourceRoot":"","sources":["../../../src/mastra/workflows/publish-packages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AASxD,eAAO,MAAM,gBAAgB,oBAE3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telephone-game.d.ts","sourceRoot":"","sources":["../../../src/mastra/workflows/telephone-game.ts"],"names":[],"mappings":"AACA,OAAO,EAAQ,QAAQ,EAAiB,MAAM,
|
|
1
|
+
{"version":3,"file":"telephone-game.d.ts","sourceRoot":"","sources":["../../../src/mastra/workflows/telephone-game.ts"],"names":[],"mappings":"AACA,OAAO,EAAQ,QAAQ,EAAiB,MAAM,wBAAwB,CAAC;AAGvE,eAAO,MAAM,qBAAqB,oBAEhC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { input } from '@inquirer/prompts';
|
|
2
|
-
import { Step, Workflow, getStepResult } from '@mastra/core';
|
|
2
|
+
import { Step, Workflow, getStepResult } from '@mastra/core/workflows';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
export const telephoneGameWorkflow = new Workflow({
|
|
5
5
|
name: 'telephoneGame',
|
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.107",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -19,10 +19,12 @@
|
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/node": "^22.10.2",
|
|
21
21
|
"@types/pdf-parse": "^1.1.4",
|
|
22
|
-
"tsx": "^4.19.2"
|
|
22
|
+
"tsx": "^4.19.2",
|
|
23
|
+
"mastra": "0.1.57-alpha.134"
|
|
23
24
|
},
|
|
24
25
|
"dependencies": {
|
|
25
26
|
"@inquirer/prompts": "^7.2.1",
|
|
27
|
+
"@libsql/client": "^0.14.0",
|
|
26
28
|
"boxen": "^8.0.1",
|
|
27
29
|
"chalk": "^5.3.0",
|
|
28
30
|
"cli-table3": "^0.6.5",
|
|
@@ -39,13 +41,14 @@
|
|
|
39
41
|
"sqlite3": "^5.1.7",
|
|
40
42
|
"typescript": "^5.7.3",
|
|
41
43
|
"zod": "^3.24.0",
|
|
42
|
-
"@mastra/core": "0.
|
|
43
|
-
"@mastra/
|
|
44
|
-
"@mastra/
|
|
45
|
-
"@mastra/
|
|
46
|
-
"@mastra/
|
|
47
|
-
"@mastra/rag": "0.0.2-alpha.
|
|
48
|
-
"@mastra/
|
|
44
|
+
"@mastra/core": "0.2.0-alpha.84",
|
|
45
|
+
"@mastra/mcp": "0.0.1-alpha.26",
|
|
46
|
+
"@mastra/github": "1.0.3-alpha.69",
|
|
47
|
+
"@mastra/memory": "0.1.0-alpha.66",
|
|
48
|
+
"@mastra/firecrawl": "1.0.4-alpha.77",
|
|
49
|
+
"@mastra/rag": "0.0.2-alpha.75",
|
|
50
|
+
"@mastra/stabilityai": "1.0.1-alpha.59",
|
|
51
|
+
"@mastra/store-upstash": "0.0.0-alpha.2"
|
|
49
52
|
},
|
|
50
53
|
"scripts": {
|
|
51
54
|
"build": "npx tsc",
|