@mastra/dane 0.0.2-alpha.76 → 0.0.2-alpha.77

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.
@@ -1,6 +1,6 @@
1
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>>>;
2
+ export declare const daneCommitMessage: Agent<Record<string, import("@mastra/core").ToolAction<any, any, any, any>>, Record<string, import("@mastra/core").Metric>>;
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 danePackagePublisher: Agent<{
5
5
  execaTool: import("@mastra/core").Tool<"execaTool", import("zod").ZodObject<{
6
6
  command: import("zod").ZodString;
@@ -85,9 +85,9 @@ export declare const danePackagePublisher: Agent<{
85
85
  }, {
86
86
  packagePath: string;
87
87
  }>, import("@mastra/core").WorkflowContext<any>>>;
88
- }>;
89
- export declare const daneLinkChecker: Agent<Record<string, import("@mastra/core").ToolAction<any, any, any, any>>>;
90
- export declare const daneChangeLog: Agent<Record<string, import("@mastra/core").ToolAction<any, any, any, any>>>;
88
+ }, Record<string, import("@mastra/core").Metric>>;
89
+ export declare const daneLinkChecker: Agent<Record<string, import("@mastra/core").ToolAction<any, any, any, any>>, Record<string, import("@mastra/core").Metric>>;
90
+ export declare const daneChangeLog: Agent<Record<string, import("@mastra/core").ToolAction<any, any, any, any>>, Record<string, import("@mastra/core").Metric>>;
91
91
  export declare const dane: Agent<{
92
92
  fsTool: import("@mastra/core").Tool<"fsTool", import("zod").ZodObject<{
93
93
  action: import("zod").ZodString;
@@ -280,5 +280,5 @@ export declare const dane: Agent<{
280
280
  directory: string;
281
281
  prompt: string;
282
282
  }>, import("@mastra/core").WorkflowContext<any>>>;
283
- }>;
283
+ }, Record<string, import("@mastra/core").Metric>>;
284
284
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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;AAarC,eAAO,MAAM,iBAAiB,8EAU5B,CAAC;AAEH,eAAO,MAAM,gBAAgB,8EAO3B,CAAC;AAgBH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgB/B,CAAC;AAEH,eAAO,MAAM,eAAe,8EAa1B,CAAC;AAEH,eAAO,MAAM,aAAa,8EAcxB,CAAC;AAEH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuDf,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/mastra/agents/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAarC,eAAO,MAAM,iBAAiB,6HAU5B,CAAC;AAEH,eAAO,MAAM,gBAAgB,6HAO3B,CAAC;AAiBH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDAgB/B,CAAC;AAEH,eAAO,MAAM,eAAe,6HAa1B,CAAC;AAEH,eAAO,MAAM,aAAa,6HAcxB,CAAC;AAEH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDAuDf,CAAC"}
@@ -7,7 +7,7 @@ import { fsTool } from '../tools/fs.js';
7
7
  import { imageTool } from '../tools/image.js';
8
8
  import { readPDF } from '../tools/pdf.js';
9
9
  import { activeDistTag, pnpmBuild, pnpmChangesetPublish, pnpmChangesetStatus } from '../tools/pnpm.js';
10
- import { getBaseModelConfig } from './model';
10
+ import { getBaseModelConfig } from './model.js';
11
11
  export const daneCommitMessage = new Agent({
12
12
  name: 'DaneCommitMessage',
13
13
  instructions: `
@@ -38,6 +38,7 @@ const packages_llm_text = `
38
38
  @mastra/memory is located in the "packages/memory" directory.
39
39
  @mastra/mcp is located in the "packages/mcp" directory.
40
40
  @mastra/deployer-{name} is located in the "deployers/{name}" directory.
41
+ @mastra/vector-{name} is located in the "vector-stores/{name}" directory.
41
42
  dane or @mastra/dane is located in the "exampeles/dane" directory.
42
43
  `;
43
44
  export const danePackagePublisher = new Agent({
@@ -1,3 +1,3 @@
1
1
  import { Agent } from '@mastra/core';
2
- export declare const daneNewContributor: Agent<{}>;
2
+ export declare const daneNewContributor: Agent<{}, Record<string, import("@mastra/core").Metric>>;
3
3
  //# sourceMappingURL=new-contributor.d.ts.map
@@ -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,cAAc,CAAC;AAIrC,eAAO,MAAM,kBAAkB,WAS7B,CAAC"}
1
+ {"version":3,"file":"new-contributor.d.ts","sourceRoot":"","sources":["../../../src/mastra/agents/new-contributor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAIrC,eAAO,MAAM,kBAAkB,0DAS7B,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { Agent } from '@mastra/core';
2
- import { getBaseModelConfig } from './model';
2
+ import { getBaseModelConfig } from './model.js';
3
3
  export const daneNewContributor = new Agent({
4
4
  name: 'DaneNewContributor',
5
5
  instructions: `
@@ -194,7 +194,7 @@ export declare const mastra: Mastra<{
194
194
  directory: string;
195
195
  prompt: string;
196
196
  }>, import("@mastra/core").WorkflowContext<any>>>;
197
- }>;
197
+ }, Record<string, import("@mastra/core").Metric>>;
198
198
  danePackagePublisher: import("@mastra/core").Agent<{
199
199
  execaTool: import("@mastra/core").Tool<"execaTool", import("zod").ZodObject<{
200
200
  command: import("zod").ZodString;
@@ -279,12 +279,12 @@ export declare const mastra: Mastra<{
279
279
  }, {
280
280
  packagePath: string;
281
281
  }>, import("@mastra/core").WorkflowContext<any>>>;
282
- }>;
283
- daneLinkChecker: import("@mastra/core").Agent<Record<string, import("@mastra/core").ToolAction<any, any, any, any>>>;
284
- daneIssueLabeler: import("@mastra/core").Agent<Record<string, import("@mastra/core").ToolAction<any, any, any, any>>>;
285
- daneCommitMessage: import("@mastra/core").Agent<Record<string, import("@mastra/core").ToolAction<any, any, any, any>>>;
286
- daneChangeLog: import("@mastra/core").Agent<Record<string, import("@mastra/core").ToolAction<any, any, any, any>>>;
287
- daneNewContributor: import("@mastra/core").Agent<{}>;
282
+ }, Record<string, import("@mastra/core").Metric>>;
283
+ daneLinkChecker: import("@mastra/core").Agent<Record<string, import("@mastra/core").ToolAction<any, any, any, any>>, Record<string, import("@mastra/core").Metric>>;
284
+ daneIssueLabeler: import("@mastra/core").Agent<Record<string, import("@mastra/core").ToolAction<any, any, any, any>>, Record<string, import("@mastra/core").Metric>>;
285
+ daneCommitMessage: import("@mastra/core").Agent<Record<string, import("@mastra/core").ToolAction<any, any, any, any>>, Record<string, import("@mastra/core").Metric>>;
286
+ daneChangeLog: import("@mastra/core").Agent<Record<string, import("@mastra/core").ToolAction<any, any, any, any>>, Record<string, import("@mastra/core").Metric>>;
287
+ daneNewContributor: import("@mastra/core").Agent<{}, Record<string, import("@mastra/core").Metric>>;
288
288
  }, {
289
289
  message: import("@mastra/core").Workflow<any, import("zod").ZodObject<{
290
290
  resourceid: import("zod").ZodString;
@@ -348,5 +348,5 @@ export declare const mastra: Mastra<{
348
348
  channelId: string;
349
349
  targetUrl: string;
350
350
  }>>;
351
- }, Record<string, import("@mastra/core").MastraVector>, Record<string, import("@mastra/core").MastraTTS>, import("@mastra/core").BaseLogger<import("@mastra/core").BaseLogMessage>>;
351
+ }, Record<string, import("@mastra/core").MastraVector>, Record<string, import("@mastra/core").MastraTTS>, import("@mastra/core").Logger>;
352
352
  //# 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,EAAE,MAAM,cAAc,CAAC;AAyBtC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mLA6BjB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mastra/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAyBtC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wIA6BjB,CAAC"}
@@ -23,6 +23,7 @@ const getPacakgesToPublish = new Step({
23
23
  * My core modules are in the 'packages' directory.
24
24
  * My integrations are in the 'integrations' directory.
25
25
  * My deployers are in the 'deployers' directory.
26
+ * My vector stores are in the 'vector-stores' directory.
26
27
 
27
28
  Can you tell me which packages within these folders need to be published to npm?
28
29
  `);
@@ -34,6 +35,7 @@ const getPacakgesToPublish = new Step({
34
35
  * @mastra/core must be first.
35
36
  * @mastra/deployer must be second.
36
37
  * mastra must be third.
38
+ * @mastra/deployers-{name} and @mastra/vector-{name} must be fourth.
37
39
 
38
40
  Text: ${result.text}
39
41
 
@@ -41,6 +43,7 @@ const getPacakgesToPublish = new Step({
41
43
  * Do not include packages if we do not need to build them.
42
44
  * create-mastra is a package (not an integration) and should be listed in packages array.
43
45
  * @mastra/deployers-{name} should be listed after packages.
46
+ * @mastra/vector-{name} should be listed after packages.
44
47
  * @mastra/dane should be listed after packages and integrations.
45
48
  `, {
46
49
  output: z.object({
@@ -55,6 +58,7 @@ const getPacakgesToPublish = new Step({
55
58
  packages: resultObj?.object?.packages,
56
59
  integrations: resultObj?.object?.integrations,
57
60
  deployers: resultObj?.object?.deployers,
61
+ vector_stores: resultObj?.object?.vector_stores,
58
62
  danePackage: resultObj?.object?.danePackage,
59
63
  };
60
64
  },
@@ -92,6 +96,16 @@ const assemblePackages = new Step({
92
96
  packagesToBuild.add(pkgPath);
93
97
  });
94
98
  }
99
+ if (payload?.vector_stores) {
100
+ payload.vector_stores.forEach((pkg) => {
101
+ let pkgName = pkg.replace('@mastra/vector-', '');
102
+ if (pkgName === 'mastra') {
103
+ pkgName = 'cli';
104
+ }
105
+ const pkgPath = path.join(process.cwd(), 'vector-stores', pkgName);
106
+ packagesToBuild.add(pkgPath);
107
+ });
108
+ }
95
109
  if (payload?.integrations) {
96
110
  const integrations = payload.integrations;
97
111
  integrations.forEach((integration) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/dane",
3
- "version": "0.0.2-alpha.76",
3
+ "version": "0.0.2-alpha.77",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "files": [
@@ -40,13 +40,13 @@
40
40
  "typescript": "^5.5.4",
41
41
  "zod": "^3.24.0",
42
42
  "@mastra/core": "0.1.27-alpha.69",
43
- "@mastra/stabilityai": "1.0.1-alpha.44",
44
- "@mastra/rag": "0.0.2-alpha.56",
45
- "@mastra/memory": "0.0.2-alpha.49",
46
- "@mastra/github": "1.0.3-alpha.53",
47
- "@mastra/mcp": "0.0.1-alpha.9",
48
43
  "@mastra/engine": "0.0.5-alpha.63",
49
- "@mastra/firecrawl": "1.0.4-alpha.58"
44
+ "@mastra/github": "1.0.3-alpha.53",
45
+ "@mastra/memory": "0.0.2-alpha.49",
46
+ "@mastra/mcp": "0.0.1-alpha.10",
47
+ "@mastra/stabilityai": "1.0.1-alpha.44",
48
+ "@mastra/rag": "0.0.2-alpha.57",
49
+ "@mastra/firecrawl": "1.0.4-alpha.59"
50
50
  },
51
51
  "scripts": {
52
52
  "build": "npx tsc",