mastracode 0.11.0-alpha.0 → 0.11.0-alpha.2

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,24 @@
1
1
  # mastracode
2
2
 
3
+ ## 0.11.0-alpha.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`cb15509`](https://github.com/mastra-ai/mastra/commit/cb15509b58f6a83e11b765c945082afc027db972), [`80c5668`](https://github.com/mastra-ai/mastra/commit/80c5668e365470d3a96d3e953868fd7a643ff67c), [`3d478c1`](https://github.com/mastra-ai/mastra/commit/3d478c1e13f17b80f330ac49d7aa42ef929b93ff), [`6039f17`](https://github.com/mastra-ai/mastra/commit/6039f176f9c457304825ff1df8c83b8e457376c0), [`06b928d`](https://github.com/mastra-ai/mastra/commit/06b928dfc2f5630d023467476cc5919dfa858d0a), [`6a8d984`](https://github.com/mastra-ai/mastra/commit/6a8d9841f2933456ee1598099f488d742b600054)]:
8
+ - @mastra/core@1.22.0-alpha.2
9
+ - @mastra/libsql@1.7.4-alpha.0
10
+ - @mastra/pg@1.8.6-alpha.0
11
+ - @mastra/memory@1.13.1-alpha.0
12
+
13
+ ## 0.11.0-alpha.1
14
+
15
+ ### Patch Changes
16
+
17
+ - Mask sensitive input fields (API keys, credentials, connection strings) in settings and login dialogs so they display as asterisks instead of plaintext ([#14936](https://github.com/mastra-ai/mastra/pull/14936))
18
+
19
+ - Updated dependencies [[`81e4259`](https://github.com/mastra-ai/mastra/commit/81e425939b4ceeb4f586e9b6d89c3b1c1f2d2fe7), [`951b8a1`](https://github.com/mastra-ai/mastra/commit/951b8a1b5ef7e1474c59dc4f2b9fc1a8b1e508b6)]:
20
+ - @mastra/core@1.22.0-alpha.1
21
+
3
22
  ## 0.11.0-alpha.0
4
23
 
5
24
  ### Minor Changes
@@ -906,7 +906,7 @@ function getInstallCommand(pm, version) {
906
906
  }
907
907
  function getCurrentVersion() {
908
908
  {
909
- return "0.11.0-alpha.0";
909
+ return "0.11.0-alpha.2";
910
910
  }
911
911
  }
912
912
  async function fetchLatestVersion() {
@@ -3351,6 +3351,47 @@ var ModelSelectorComponent = class extends piTui.Box {
3351
3351
  return this.searchInput;
3352
3352
  }
3353
3353
  };
3354
+ var MaskedInput = class {
3355
+ input;
3356
+ get focused() {
3357
+ return this.input.focused;
3358
+ }
3359
+ set focused(value) {
3360
+ this.input.focused = value;
3361
+ }
3362
+ set onSubmit(fn) {
3363
+ this.input.onSubmit = fn;
3364
+ }
3365
+ set onEscape(fn) {
3366
+ this.input.onEscape = fn;
3367
+ }
3368
+ constructor() {
3369
+ this.input = new piTui.Input();
3370
+ }
3371
+ getValue() {
3372
+ return this.input.getValue();
3373
+ }
3374
+ setValue(value) {
3375
+ this.input.setValue(value);
3376
+ }
3377
+ handleInput(data) {
3378
+ this.input.handleInput(data);
3379
+ }
3380
+ invalidate() {
3381
+ this.input.invalidate();
3382
+ }
3383
+ render(width) {
3384
+ const real = this.input.getValue();
3385
+ try {
3386
+ this.input.setValue("*".repeat(real.length));
3387
+ return this.input.render(width);
3388
+ } finally {
3389
+ this.input.setValue(real);
3390
+ }
3391
+ }
3392
+ };
3393
+
3394
+ // src/tui/components/api-key-dialog.ts
3354
3395
  var ApiKeyDialogComponent = class extends piTui.Box {
3355
3396
  input;
3356
3397
  onSubmit;
@@ -3374,7 +3415,7 @@ var ApiKeyDialogComponent = class extends piTui.Box {
3374
3415
  this.addChild(new piTui.Text(chunkWOKNPWRC_cjs.theme.fg("dim", `You can also set ${options.apiKeyEnvVar} in your environment.`), 0, 0));
3375
3416
  }
3376
3417
  this.addChild(new piTui.Spacer(1));
3377
- this.input = new piTui.Input();
3418
+ this.input = new MaskedInput();
3378
3419
  this.input.onSubmit = (value) => {
3379
3420
  const trimmed = value.trim();
3380
3421
  if (trimmed) {
@@ -5304,7 +5345,7 @@ var StorageBackendSubmenu = class extends piTui.Container {
5304
5345
  this.addChild(new piTui.Text(chunkWOKNPWRC_cjs.theme.fg("dim", "e.g. libsql://your-db.turso.io"), 0, 0));
5305
5346
  }
5306
5347
  this.addChild(new piTui.Spacer(1));
5307
- this.input = new piTui.Input();
5348
+ this.input = new MaskedInput();
5308
5349
  const currentValue = this.pendingBackend === "pg" ? this.currentPgConnectionString : this.currentLibsqlUrl;
5309
5350
  if (currentValue) {
5310
5351
  this.input.setValue(currentValue);
@@ -5609,7 +5650,7 @@ var LoginDialogComponent = class extends piTui.Box {
5609
5650
  this.addChild(new piTui.Spacer(1));
5610
5651
  this.contentContainer = new piTui.Container();
5611
5652
  this.addChild(this.contentContainer);
5612
- this.input = new piTui.Input();
5653
+ this.input = new MaskedInput();
5613
5654
  this.input.onSubmit = () => {
5614
5655
  if (this.inputResolver) {
5615
5656
  this.inputResolver(this.input.getValue());
@@ -12857,5 +12898,5 @@ exports.createTUIState = createTUIState;
12857
12898
  exports.detectTerminalTheme = detectTerminalTheme;
12858
12899
  exports.formatOMStatus = formatOMStatus;
12859
12900
  exports.getCurrentVersion = getCurrentVersion;
12860
- //# sourceMappingURL=chunk-5M4OH5IG.cjs.map
12861
- //# sourceMappingURL=chunk-5M4OH5IG.cjs.map
12901
+ //# sourceMappingURL=chunk-KW2BHLIW.cjs.map
12902
+ //# sourceMappingURL=chunk-KW2BHLIW.cjs.map