mastracode 0.50.0-alpha.11 → 0.50.0-alpha.13

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,28 @@
1
1
  # mastracode
2
2
 
3
+ ## 0.50.0-alpha.13
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix `/settings` crashing when mouse preferences are missing from saved settings by defaulting to Off. ([#30184](https://github.com/mastra-ai/mastra/pull/30184))
8
+
9
+ - Updated dependencies [[`56f654f`](https://github.com/mastra-ai/mastra/commit/56f654fc0d17ce3e81ff9a9b9563cde2b7c9d417), [`72abae6`](https://github.com/mastra-ai/mastra/commit/72abae68ebfb90362bd9c9390768d5feb7a809ab), [`f071044`](https://github.com/mastra-ai/mastra/commit/f0710446e02325f645e1e1023261092657ca30d4), [`f071044`](https://github.com/mastra-ai/mastra/commit/f0710446e02325f645e1e1023261092657ca30d4), [`72abae6`](https://github.com/mastra-ai/mastra/commit/72abae68ebfb90362bd9c9390768d5feb7a809ab), [`987566e`](https://github.com/mastra-ai/mastra/commit/987566e88240ab94581fdaaf34dfdd9a099ad232), [`f071044`](https://github.com/mastra-ai/mastra/commit/f0710446e02325f645e1e1023261092657ca30d4)]:
10
+ - @mastra/core@1.83.0-alpha.12
11
+ - @mastra/observability@1.24.0-alpha.7
12
+ - @mastra/duckdb@1.19.0-alpha.5
13
+ - @mastra/pg@1.36.0-alpha.6
14
+ - @mastra/code-sdk@1.19.0-alpha.14
15
+ - @mastra/mcp@2.9.0-alpha.4
16
+ - @mastra/libsql@1.30.0-alpha.3
17
+
18
+ ## 0.50.0-alpha.12
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies [[`a0cd52c`](https://github.com/mastra-ai/mastra/commit/a0cd52cdc15c67c5e3d225b90428efde1c15d8a3), [`c1fb13f`](https://github.com/mastra-ai/mastra/commit/c1fb13f325096d244285907d0dd4b0ad35d2cfca), [`6f7eb69`](https://github.com/mastra-ai/mastra/commit/6f7eb696e9c629f5659072947fbed0e09d5e02d3)]:
23
+ - @mastra/core@1.83.0-alpha.11
24
+ - @mastra/code-sdk@1.19.0-alpha.13
25
+
3
26
  ## 0.50.0-alpha.11
4
27
 
5
28
  ### Patch Changes
package/dist/cli.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- const require_tui = require("./tui-B8I8sF2P.cjs");
2
+ const require_tui = require("./tui-BTQZwEmk.cjs");
3
3
  let _mastra_code_sdk = require("@mastra/code-sdk");
4
4
  let child_process = require("child_process");
5
5
  let fs = require("fs");
@@ -265,7 +265,7 @@ async function runUpdateCommand({ args = [], output = process.stdout, errorOutpu
265
265
  }
266
266
  // src/version.ts
267
267
  function getCurrentVersion() {
268
- return "0.50.0-alpha.11";
268
+ return "0.50.0-alpha.13";
269
269
  }
270
270
  /** Whether the invocation is `mastracode --version` or `mastracode -v`. */
271
271
  function isVersionCommand(argv) {
package/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { D as closeActiveBrowser, E as activeBrowserGeneration, O as discardBrowser, T as TUI_CO_AUTHOR, _ as normalizeThemePreference, a as formatUpdateHeader, g as applyThemePreference, i as formatUpToDate, k as replaceActiveBrowser, n as formatInstallingLabel, o as formatUpdateOutcome, r as formatRegistryError, t as MastraTUI } from "./tui-DhOUg0Wr.js";
2
+ import { D as closeActiveBrowser, E as activeBrowserGeneration, O as discardBrowser, T as TUI_CO_AUTHOR, _ as normalizeThemePreference, a as formatUpdateHeader, g as applyThemePreference, i as formatUpToDate, k as replaceActiveBrowser, n as formatInstallingLabel, o as formatUpdateOutcome, r as formatRegistryError, t as MastraTUI } from "./tui-B0cnvlSQ.js";
3
3
  import { createMastraCode, resolveSubagentsSetting } from "@mastra/code-sdk";
4
4
  import { spawn } from "child_process";
5
5
  import fs from "fs";
@@ -264,7 +264,7 @@ async function runUpdateCommand({ args = [], output = process.stdout, errorOutpu
264
264
  }
265
265
  // src/version.ts
266
266
  function getCurrentVersion() {
267
- return "0.50.0-alpha.11";
267
+ return "0.50.0-alpha.13";
268
268
  }
269
269
  /** Whether the invocation is `mastracode --version` or `mastracode -v`. */
270
270
  function isVersionCommand(argv) {
@@ -3,7 +3,7 @@ name: mastracode
3
3
  description: Documentation for mastracode. Use when working with mastracode APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "mastracode"
6
- version: "0.50.0-alpha.11"
6
+ version: "0.50.0-alpha.13"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.50.0-alpha.11",
2
+ "version": "0.50.0-alpha.13",
3
3
  "package": "mastracode",
4
4
  "exports": {},
5
5
  "modules": {}
@@ -1 +1 @@
1
- {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/tui/commands/settings.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAsKtD,wBAAsB,qBAAqB,CAAC,GAAG,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CAiJnF"}
1
+ {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/tui/commands/settings.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAsKtD,wBAAsB,qBAAqB,CAAC,GAAG,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CAoJnF"}
@@ -19875,7 +19875,7 @@ const MOUSE_CHOICES = [
19875
19875
  }
19876
19876
  ];
19877
19877
  function mouseChoice(mouse) {
19878
- return MOUSE_CHOICES.find((c) => c.dialogs === mouse.dialogs && c.input === mouse.input);
19878
+ return MOUSE_CHOICES.find((c) => c.dialogs === mouse.dialogs && c.input === mouse.input) ?? MOUSE_CHOICES[0];
19879
19879
  }
19880
19880
  function mouseLabel(mouse) {
19881
19881
  return mouseChoice(mouse).label;
@@ -20623,8 +20623,8 @@ async function handleSettingsCommand(ctx) {
20623
20623
  currentModelId: ctx.state.session.model.get() ?? "",
20624
20624
  escapeAsCancel: ctx.state.editor.escapeEnabled,
20625
20625
  mouse: {
20626
- dialogs: globalSettings.preferences.mouseDialogs,
20627
- input: globalSettings.preferences.mouseInput
20626
+ dialogs: globalSettings.preferences.mouseDialogs ?? false,
20627
+ input: globalSettings.preferences.mouseInput ?? false
20628
20628
  },
20629
20629
  previewLines: globalSettings.preferences.previewLines,
20630
20630
  storageBackend: globalSettings.storage.backend,
@@ -29952,4 +29952,4 @@ var MastraTUI = class MastraTUI {
29952
29952
  };
29953
29953
  export { mastraBrand as C, closeActiveBrowser as D, activeBrowserGeneration as E, discardBrowser as O, mastra as S, TUI_CO_AUTHOR as T, normalizeThemePreference as _, formatUpdateHeader as a, getMarkdownTheme as b, LoginDialogComponent as c, createTUIState as d, UserMessageComponent as f, applyThemePreference as g, AssistantMessageComponent as h, formatUpToDate as i, replaceActiveBrowser as k, OMProgressComponent as l, ModelSelectorComponent as m, formatInstallingLabel as n, formatUpdateOutcome as o, ToolExecutionComponentEnhanced as p, formatRegistryError as r, LoginSelectorComponent as s, MastraTUI as t, formatOMStatus as u, applyThemeMode as v, theme as w, getThemeMode as x, getEditorTheme as y };
29954
29954
 
29955
- //# sourceMappingURL=tui-DhOUg0Wr.js.map
29955
+ //# sourceMappingURL=tui-B0cnvlSQ.js.map