mastracode 0.5.0 → 0.5.1

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,17 @@
1
1
  # mastracode
2
2
 
3
+ ## 0.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Fixed fatal 'Cannot find module ../../package.json' error when running mastracode after installing from npm. The version is now inlined at build time instead of requiring the package.json file at runtime. ([#13760](https://github.com/mastra-ai/mastra/pull/13760))
8
+
9
+ ## 0.5.1-alpha.0
10
+
11
+ ### Patch Changes
12
+
13
+ - Fixed fatal 'Cannot find module ../../package.json' error when running mastracode after installing from npm. The version is now inlined at build time instead of requiring the package.json file at runtime. ([#13760](https://github.com/mastra-ai/mastra/pull/13760))
14
+
3
15
  ## 0.5.0
4
16
 
5
17
  ### Minor Changes
@@ -5,7 +5,6 @@ import { Box, Text, Spacer, Input, Container, fuzzyFilter, getEditorKeybindings,
5
5
  import chalk10 from 'chalk';
6
6
  import { exec, execFile, execSync, execFileSync } from 'child_process';
7
7
  import fs2, { realpathSync, readFileSync, unlinkSync, promises } from 'fs';
8
- import { createRequire } from 'module';
9
8
  import * as path5 from 'path';
10
9
  import path5__default, { join } from 'path';
11
10
  import { defaultOMProgressState } from '@mastra/core/harness';
@@ -696,9 +695,7 @@ function getInstallCommand(pm, version) {
696
695
  }
697
696
  }
698
697
  function getCurrentVersion() {
699
- const require2 = createRequire(import.meta.url);
700
- const pkg = require2("../../package.json");
701
- return pkg.version;
698
+ return "0.5.1";
702
699
  }
703
700
  async function fetchLatestVersion() {
704
701
  try {
@@ -10442,5 +10439,5 @@ var LoginSelectorComponent = class extends Box {
10442
10439
  };
10443
10440
 
10444
10441
  export { AssistantMessageComponent, LoginDialogComponent, LoginSelectorComponent, MastraTUI, ModelSelectorComponent, OMProgressComponent, ToolExecutionComponentEnhanced, UserMessageComponent, createTUIState, detectTerminalTheme, formatOMStatus, getCurrentVersion };
10445
- //# sourceMappingURL=chunk-YQNZ7DHQ.js.map
10446
- //# sourceMappingURL=chunk-YQNZ7DHQ.js.map
10442
+ //# sourceMappingURL=chunk-5KP5DITH.js.map
10443
+ //# sourceMappingURL=chunk-5KP5DITH.js.map