create-mastra 0.0.0-fix-aisdk-custom-datachunks-streaming-20251022135352 → 0.0.0-fix-memory-search-fetch-20251027160505
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 +17 -1
- package/dist/index.js +9 -8
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
# create-mastra
|
|
2
2
|
|
|
3
|
-
## 0.0.0-fix-
|
|
3
|
+
## 0.0.0-fix-memory-search-fetch-20251027160505
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- Removed old tracing code based on OpenTelemetry ([#9237](https://github.com/mastra-ai/mastra/pull/9237))
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Update MainSidebar component to fit required changes in Cloud CTA link ([#9318](https://github.com/mastra-ai/mastra/pull/9318))
|
|
12
|
+
|
|
13
|
+
## 0.17.3
|
|
14
|
+
|
|
15
|
+
## 0.17.3-alpha.0
|
|
16
|
+
|
|
17
|
+
## 0.17.2
|
|
18
|
+
|
|
19
|
+
## 0.17.2-alpha.0
|
|
4
20
|
|
|
5
21
|
## 0.17.1
|
|
6
22
|
|
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
|
}
|
|
@@ -1925,13 +1926,9 @@ export const mastra = new Mastra({
|
|
|
1925
1926
|
name: 'Mastra',
|
|
1926
1927
|
level: 'info',
|
|
1927
1928
|
}),
|
|
1928
|
-
telemetry: {
|
|
1929
|
-
// Telemetry is deprecated and will be removed in the Nov 4th release
|
|
1930
|
-
enabled: false,
|
|
1931
|
-
},
|
|
1932
1929
|
observability: {
|
|
1933
1930
|
// Enables DefaultExporter and CloudExporter for AI tracing
|
|
1934
|
-
default: { enabled: true },
|
|
1931
|
+
default: { enabled: true },
|
|
1935
1932
|
},
|
|
1936
1933
|
});
|
|
1937
1934
|
`
|
|
@@ -2346,6 +2343,10 @@ var init = async ({
|
|
|
2346
2343
|
if (needsLoggers) {
|
|
2347
2344
|
await depService.installPackages(["@mastra/loggers"]);
|
|
2348
2345
|
}
|
|
2346
|
+
const needsObservability = await depService.checkDependencies(["@mastra/observability"]) !== `ok`;
|
|
2347
|
+
if (needsObservability) {
|
|
2348
|
+
await depService.installPackages(["@mastra/observability"]);
|
|
2349
|
+
}
|
|
2349
2350
|
const needsEvals = components.includes(`scorers`) && await depService.checkDependencies(["@mastra/evals"]) !== `ok`;
|
|
2350
2351
|
if (needsEvals) {
|
|
2351
2352
|
await depService.installPackages(["@mastra/evals"]);
|