mastracode 0.8.0-alpha.0 → 0.8.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 CHANGED
@@ -1,5 +1,44 @@
1
1
  # mastracode
2
2
 
3
+ ## 0.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Added `mcpServers` option to `createMastraCode()` for programmatic MCP server configuration. Servers passed via this option are merged with file-based configs at highest priority, allowing you to define MCP servers directly in code: ([#13750](https://github.com/mastra-ai/mastra/pull/13750))
8
+
9
+ ```typescript
10
+ const { harness } = await createMastraCode({
11
+ mcpServers: {
12
+ filesystem: { command: 'npx', args: ['-y', '@modelcontextprotocol/server-filesystem', '/tmp'] },
13
+ remote: { url: 'https://mcp.example.com/sse', headers: { Authorization: 'Bearer tok' } },
14
+ },
15
+ });
16
+ ```
17
+
18
+ ### Patch Changes
19
+
20
+ - Fixed tool validation errors being hidden behind a generic 'see details above' message. All errors now display their actual error message consistently. ([#14168](https://github.com/mastra-ai/mastra/pull/14168))
21
+
22
+ - Fixed `mastracode` schema generation when running the CLI with Zod v4-compatible schemas. The CLI now produces valid object JSON Schema instead of failing on some tool input schemas. ([#14157](https://github.com/mastra-ai/mastra/pull/14157))
23
+
24
+ - Fixed /om model search in Kitty terminals so typed characters filter models again. ([#13996](https://github.com/mastra-ai/mastra/pull/13996))
25
+
26
+ - Updated dependencies [[`cddf895`](https://github.com/mastra-ai/mastra/commit/cddf895532b8ee7f9fa814136ec672f53d37a9ba), [`9cede11`](https://github.com/mastra-ai/mastra/commit/9cede110abac9d93072e0521bb3c8bcafb9fdadf), [`a59f126`](https://github.com/mastra-ai/mastra/commit/a59f1269104f54726699c5cdb98c72c93606d2df), [`ed8fd75`](https://github.com/mastra-ai/mastra/commit/ed8fd75cbff03bb5e19971ddb30ab7040fc60447), [`c510833`](https://github.com/mastra-ai/mastra/commit/c5108333e8cbc19dafee5f8bfefbcb5ee935335c), [`c4c7dad`](https://github.com/mastra-ai/mastra/commit/c4c7dadfe2e4584f079f6c24bfabdb8c4981827f), [`b9a77b9`](https://github.com/mastra-ai/mastra/commit/b9a77b951fa6422077080b492cce74460d2f8fdd), [`45c3112`](https://github.com/mastra-ai/mastra/commit/45c31122666a0cc56b94727099fcb1871ed1b3f6), [`45c3112`](https://github.com/mastra-ai/mastra/commit/45c31122666a0cc56b94727099fcb1871ed1b3f6), [`7296fcc`](https://github.com/mastra-ai/mastra/commit/7296fcc599c876a68699a71c7054a16d5aaf2337), [`00c27f9`](https://github.com/mastra-ai/mastra/commit/00c27f9080731433230a61be69c44e39a7a7b4c7), [`5e7c287`](https://github.com/mastra-ai/mastra/commit/5e7c28701f2bce795dd5c811e4c3060bf2ea2242), [`977b49e`](https://github.com/mastra-ai/mastra/commit/977b49e23d8b050a2c6a6a91c0aa38b28d6388ee), [`7e17d3f`](https://github.com/mastra-ai/mastra/commit/7e17d3f656fdda2aad47c4beb8c491636d70820c), [`ee19c9b`](https://github.com/mastra-ai/mastra/commit/ee19c9ba3ec3ed91feb214ad539bdc766c53bb01)]:
27
+ - @mastra/core@1.12.0
28
+ - @mastra/mcp@1.2.0
29
+ - @mastra/memory@1.7.0
30
+
31
+ ## 0.8.0-alpha.1
32
+
33
+ ### Patch Changes
34
+
35
+ - Fixed tool validation errors being hidden behind a generic 'see details above' message. All errors now display their actual error message consistently. ([#14168](https://github.com/mastra-ai/mastra/pull/14168))
36
+
37
+ - Updated dependencies [[`9cede11`](https://github.com/mastra-ai/mastra/commit/9cede110abac9d93072e0521bb3c8bcafb9fdadf), [`a59f126`](https://github.com/mastra-ai/mastra/commit/a59f1269104f54726699c5cdb98c72c93606d2df), [`c510833`](https://github.com/mastra-ai/mastra/commit/c5108333e8cbc19dafee5f8bfefbcb5ee935335c), [`7296fcc`](https://github.com/mastra-ai/mastra/commit/7296fcc599c876a68699a71c7054a16d5aaf2337), [`00c27f9`](https://github.com/mastra-ai/mastra/commit/00c27f9080731433230a61be69c44e39a7a7b4c7), [`977b49e`](https://github.com/mastra-ai/mastra/commit/977b49e23d8b050a2c6a6a91c0aa38b28d6388ee), [`ee19c9b`](https://github.com/mastra-ai/mastra/commit/ee19c9ba3ec3ed91feb214ad539bdc766c53bb01)]:
38
+ - @mastra/core@1.12.0-alpha.1
39
+ - @mastra/memory@1.7.0-alpha.1
40
+ - @mastra/mcp@1.2.0-alpha.0
41
+
3
42
  ## 0.8.0-alpha.0
4
43
 
5
44
  ### Minor Changes
@@ -698,7 +698,7 @@ function getInstallCommand(pm, version) {
698
698
  }
699
699
  function getCurrentVersion() {
700
700
  {
701
- return "0.8.0-alpha.0";
701
+ return "0.8.0";
702
702
  }
703
703
  }
704
704
  async function fetchLatestVersion() {
@@ -5228,26 +5228,17 @@ function showFormattedError(state, event) {
5228
5228
  const error = "error" in event ? event.error : event;
5229
5229
  const parsed = parseError(error);
5230
5230
  state.chatContainer.addChild(new Spacer(1));
5231
- const errorMessage = error.message || String(error);
5232
- const isValidationError = errorMessage.toLowerCase().includes("validation failed") || errorMessage.toLowerCase().includes("required parameter") || errorMessage.includes("Required");
5233
- if (isValidationError) {
5234
- state.chatContainer.addChild(new Text(theme.fg("error", "Tool validation error - see details above"), 1, 0));
5235
- state.chatContainer.addChild(
5236
- new Text(theme.fg("muted", " Check the tool execution box for specific parameter requirements"), 1, 0)
5237
- );
5238
- } else {
5239
- let errorText = `Error: ${parsed.message}`;
5240
- const retryable = "retryable" in event ? event.retryable : parsed.retryable;
5241
- const retryDelay = "retryDelay" in event ? event.retryDelay : parsed.retryDelay;
5242
- if (retryable && retryDelay) {
5243
- const seconds = Math.ceil(retryDelay / 1e3);
5244
- errorText += theme.fg("muted", ` (retry in ${seconds}s)`);
5245
- }
5246
- state.chatContainer.addChild(new Text(theme.fg("error", errorText), 1, 0));
5247
- const hint = getErrorHint(parsed.type);
5248
- if (hint) {
5249
- state.chatContainer.addChild(new Text(theme.fg("muted", ` Hint: ${hint}`), 1, 0));
5250
- }
5231
+ let errorText = `Error: ${parsed.message}`;
5232
+ const retryable = "retryable" in event ? event.retryable : parsed.retryable;
5233
+ const retryDelay = "retryDelay" in event ? event.retryDelay : parsed.retryDelay;
5234
+ if (retryable && retryDelay) {
5235
+ const seconds = Math.ceil(retryDelay / 1e3);
5236
+ errorText += theme.fg("muted", ` (retry in ${seconds}s)`);
5237
+ }
5238
+ state.chatContainer.addChild(new Text(theme.fg("error", errorText), 1, 0));
5239
+ const hint = getErrorHint(parsed.type);
5240
+ if (hint) {
5241
+ state.chatContainer.addChild(new Text(theme.fg("muted", ` Hint: ${hint}`), 1, 0));
5251
5242
  }
5252
5243
  state.ui.requestRender();
5253
5244
  }
@@ -10889,5 +10880,5 @@ var LoginSelectorComponent = class extends Box {
10889
10880
  };
10890
10881
 
10891
10882
  export { AssistantMessageComponent, LoginDialogComponent, LoginSelectorComponent, MastraTUI, ModelSelectorComponent, OMProgressComponent, ToolExecutionComponentEnhanced, UserMessageComponent, createTUIState, detectTerminalTheme, formatOMStatus, getCurrentVersion };
10892
- //# sourceMappingURL=chunk-VFH4KG5I.js.map
10893
- //# sourceMappingURL=chunk-VFH4KG5I.js.map
10883
+ //# sourceMappingURL=chunk-4TJCWCGM.js.map
10884
+ //# sourceMappingURL=chunk-4TJCWCGM.js.map