create-mastra 0.17.4 → 0.17.6-alpha.0
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/CHANGELOG.md +12 -0
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# create-mastra
|
|
2
2
|
|
|
3
|
+
## 0.17.6-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Update MainSidebar component to fit required changes in Cloud CTA link ([#9364](https://github.com/mastra-ai/mastra/pull/9364))
|
|
8
|
+
|
|
9
|
+
## 0.17.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Fix peerdependencies ([`eb7c1c8`](https://github.com/mastra-ai/mastra/commit/eb7c1c8c592d8fb16dfd250e337d9cdc73c8d5de))
|
|
14
|
+
|
|
3
15
|
## 0.17.4
|
|
4
16
|
|
|
5
17
|
## 0.17.4-alpha.0
|
package/dist/index.js
CHANGED
|
@@ -1770,7 +1770,8 @@ async function writeToolSample(destPath) {
|
|
|
1770
1770
|
const fileService = new FileService();
|
|
1771
1771
|
await fileService.copyStarterFile("tools.ts", destPath);
|
|
1772
1772
|
}
|
|
1773
|
-
async function writeScorersSample(destPath) {
|
|
1773
|
+
async function writeScorersSample(llmProvider, destPath) {
|
|
1774
|
+
const modelString = getModelIdentifier(llmProvider);
|
|
1774
1775
|
const content = `import { z } from 'zod';
|
|
1775
1776
|
import { createToolCallAccuracyScorerCode } from '@mastra/evals/scorers/code';
|
|
1776
1777
|
import { createCompletenessScorer } from '@mastra/evals/scorers/code';
|
|
@@ -1789,7 +1790,7 @@ export const translationScorer = createScorer({
|
|
|
1789
1790
|
description: 'Checks that non-English location names are translated and used correctly',
|
|
1790
1791
|
type: 'agent',
|
|
1791
1792
|
judge: {
|
|
1792
|
-
model:
|
|
1793
|
+
model: ${modelString},
|
|
1793
1794
|
instructions:
|
|
1794
1795
|
'You are an expert evaluator of translation quality for geographic locations. ' +
|
|
1795
1796
|
'Determine whether the user text mentions a non-English location and whether the assistant correctly uses an English translation of that location. ' +
|
|
@@ -1869,7 +1870,7 @@ async function writeCodeSampleForComponents(llmprovider, component, destPath, im
|
|
|
1869
1870
|
case "workflows":
|
|
1870
1871
|
return writeWorkflowSample(destPath);
|
|
1871
1872
|
case "scorers":
|
|
1872
|
-
return writeScorersSample(destPath);
|
|
1873
|
+
return writeScorersSample(llmprovider, destPath);
|
|
1873
1874
|
default:
|
|
1874
1875
|
return "";
|
|
1875
1876
|
}
|