mastracode 0.32.3 → 0.32.4-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 +30 -0
- package/dist/cli.cjs +2 -2
- package/dist/cli.js +2 -2
- package/dist/tui/display.d.ts +2 -0
- package/dist/tui/display.d.ts.map +1 -1
- package/dist/{tui-D3Yn3iLG.js → tui-DQZ5eq1o.js} +8 -5
- package/dist/tui-DQZ5eq1o.js.map +1 -0
- package/dist/{tui-EYWvtiQC.cjs → tui-xkGTGJf2.cjs} +8 -5
- package/dist/tui-xkGTGJf2.cjs.map +1 -0
- package/dist/tui.cjs +1 -1
- package/dist/tui.js +1 -1
- package/package.json +8 -8
- package/dist/tui-D3Yn3iLG.js.map +0 -1
- package/dist/tui-EYWvtiQC.cjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# mastracode
|
|
2
2
|
|
|
3
|
+
## 0.32.4-alpha.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Extended Mastra Code's transient retry policy to cover provider server errors with up to 10 retries and exponential backoff starting at 500ms. ([#20393](https://github.com/mastra-ai/mastra/pull/20393))
|
|
8
|
+
|
|
9
|
+
- Fixed retry timing in Mastra Code so the TUI only shows a retry delay when a retry is actually scheduled. ([#20392](https://github.com/mastra-ai/mastra/pull/20392))
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`7457af7`](https://github.com/mastra-ai/mastra/commit/7457af7d309fa4ba4d975904249c0d05ec32e6b7), [`55c9e24`](https://github.com/mastra-ai/mastra/commit/55c9e248c27c1d72b5bb7e94ea6b8a3999eee49f), [`07f5b4b`](https://github.com/mastra-ai/mastra/commit/07f5b4ba9d608d88865030732e580298296adf99)]:
|
|
12
|
+
- @mastra/code-sdk@1.1.1-alpha.2
|
|
13
|
+
- @mastra/core@1.55.0-alpha.2
|
|
14
|
+
|
|
15
|
+
## 0.32.4-alpha.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [[`ba369f2`](https://github.com/mastra-ai/mastra/commit/ba369f2a0aaf998da0d6aa033d26f64f96bef8ac), [`dcfed93`](https://github.com/mastra-ai/mastra/commit/dcfed93e1e256c6abfa792cbb7ca836f5d0e8638), [`2876e15`](https://github.com/mastra-ai/mastra/commit/2876e15b4d2f616a3bc1ed3af57d546c268384ce), [`4137863`](https://github.com/mastra-ai/mastra/commit/4137863eaa35f430117d21d5dc1bf2f534e64339), [`4137863`](https://github.com/mastra-ai/mastra/commit/4137863eaa35f430117d21d5dc1bf2f534e64339), [`598080f`](https://github.com/mastra-ai/mastra/commit/598080f224edb3f0f5b801035b067fac50a56a03)]:
|
|
20
|
+
- @mastra/core@1.55.0-alpha.1
|
|
21
|
+
- @mastra/code-sdk@1.1.1-alpha.1
|
|
22
|
+
|
|
23
|
+
## 0.32.4-alpha.0
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- Improved Mastra Code connection recovery with up to 10 retries, exponential backoff starting at 500ms, and visible retry progress in the TUI. ([#19724](https://github.com/mastra-ai/mastra/pull/19724))
|
|
28
|
+
|
|
29
|
+
- Updated dependencies [[`3f472b4`](https://github.com/mastra-ai/mastra/commit/3f472b468892a1ff14ccb43cc0343b86f7d8fd7d), [`35b929b`](https://github.com/mastra-ai/mastra/commit/35b929b7abc3d20d85c7985880960ac2d04a6c86), [`35b929b`](https://github.com/mastra-ai/mastra/commit/35b929b7abc3d20d85c7985880960ac2d04a6c86), [`9b3626a`](https://github.com/mastra-ai/mastra/commit/9b3626aeb1d16fcd34b0a8e94c114ddb80a3b240)]:
|
|
30
|
+
- @mastra/core@1.55.0-alpha.0
|
|
31
|
+
- @mastra/code-sdk@1.1.1-alpha.0
|
|
32
|
+
|
|
3
33
|
## 0.32.3
|
|
4
34
|
|
|
5
35
|
### Patch Changes
|
package/dist/cli.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const require_tui = require("./tui-
|
|
2
|
+
const require_tui = require("./tui-xkGTGJf2.cjs");
|
|
3
3
|
let _mastra_code_sdk = require("@mastra/code-sdk");
|
|
4
4
|
let fs = require("fs");
|
|
5
5
|
fs = require_tui.__toESM(fs, 1);
|
|
@@ -13,7 +13,7 @@ let _mastra_code_sdk_utils_stdin_pipe = require("@mastra/code-sdk/utils/stdin-pi
|
|
|
13
13
|
let _mastra_code_sdk_utils_thread_lock = require("@mastra/code-sdk/utils/thread-lock");
|
|
14
14
|
//#region src/version.ts
|
|
15
15
|
function getCurrentVersion() {
|
|
16
|
-
return "0.32.
|
|
16
|
+
return "0.32.4-alpha.2";
|
|
17
17
|
}
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region src/main.ts
|
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { d as detectTerminalTheme, f as applyThemeMode, t as MastraTUI, v as restoreTerminalForeground } from "./tui-
|
|
2
|
+
import { d as detectTerminalTheme, f as applyThemeMode, t as MastraTUI, v as restoreTerminalForeground } from "./tui-DQZ5eq1o.js";
|
|
3
3
|
import { createMastraCode } from "@mastra/code-sdk";
|
|
4
4
|
import fs from "fs";
|
|
5
5
|
import { createMastraCodeAnalytics } from "@mastra/code-sdk/analytics";
|
|
@@ -12,7 +12,7 @@ import { drainPipedStdin, reopenStdinFromTTY } from "@mastra/code-sdk/utils/stdi
|
|
|
12
12
|
import { releaseAllThreadLocks } from "@mastra/code-sdk/utils/thread-lock";
|
|
13
13
|
//#region src/version.ts
|
|
14
14
|
function getCurrentVersion() {
|
|
15
|
-
return "0.32.
|
|
15
|
+
return "0.32.4-alpha.2";
|
|
16
16
|
}
|
|
17
17
|
//#endregion
|
|
18
18
|
//#region src/main.ts
|
package/dist/tui/display.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ export declare function showFormattedError(state: TUIState, event: {
|
|
|
7
7
|
errorType?: string;
|
|
8
8
|
retryable?: boolean;
|
|
9
9
|
retryDelay?: number;
|
|
10
|
+
retryAttempt?: number;
|
|
11
|
+
maxRetries?: number;
|
|
10
12
|
} | Error): void;
|
|
11
13
|
export declare function notify(state: TUIState, reason: NotificationReason, message?: string): void;
|
|
12
14
|
//# sourceMappingURL=display.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"display.d.ts","sourceRoot":"","sources":["../../src/tui/display.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAoB,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAExE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAgB3C,wBAAgB,SAAS,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAIhE;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAI/D;AAED,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,QAAQ,EACf,KAAK,EACD;IACE,KAAK,EAAE,KAAK,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,GACD,KAAK,GACR,IAAI,
|
|
1
|
+
{"version":3,"file":"display.d.ts","sourceRoot":"","sources":["../../src/tui/display.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAoB,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAExE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAgB3C,wBAAgB,SAAS,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAIhE;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAI/D;AAED,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,QAAQ,EACf,KAAK,EACD;IACE,KAAK,EAAE,KAAK,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,GACD,KAAK,GACR,IAAI,CAoCN;AA0BD,wBAAgB,MAAM,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAO1F"}
|
|
@@ -3400,11 +3400,14 @@ function showFormattedError(state, event) {
|
|
|
3400
3400
|
let errorText = `Error: ${parsed.message}`;
|
|
3401
3401
|
if (parsed.detail && parsed.detail !== parsed.message) errorText += theme.fg("muted", ` (${parsed.detail})`);
|
|
3402
3402
|
if (parsed.requestUrl) errorText += theme.fg("muted", ` [url: ${parsed.requestUrl}]`);
|
|
3403
|
-
const retryable = "
|
|
3404
|
-
const retryDelay = "
|
|
3403
|
+
const retryable = "error" in event && event.retryable === true;
|
|
3404
|
+
const retryDelay = "error" in event ? event.retryDelay : void 0;
|
|
3405
3405
|
if (retryable && retryDelay) {
|
|
3406
|
-
const seconds =
|
|
3407
|
-
|
|
3406
|
+
const seconds = retryDelay / 1e3;
|
|
3407
|
+
const retryAttempt = "retryAttempt" in event ? event.retryAttempt : void 0;
|
|
3408
|
+
const maxRetries = "maxRetries" in event ? event.maxRetries : void 0;
|
|
3409
|
+
const retryProgress = retryAttempt && maxRetries ? ` ${retryAttempt}/${maxRetries}` : "";
|
|
3410
|
+
errorText += theme.fg("muted", ` (retry${retryProgress} in ${seconds}s)`);
|
|
3408
3411
|
}
|
|
3409
3412
|
const lines = [new Text(theme.fg("error", errorText), 1, 0)];
|
|
3410
3413
|
const isObservationalMemoryError = /observational memory|\bOM (?:observation|reflection)/i.test(error.message);
|
|
@@ -21593,4 +21596,4 @@ var MastraTUI = class MastraTUI {
|
|
|
21593
21596
|
//#endregion
|
|
21594
21597
|
export { mastraBrand as _, OMProgressComponent as a, ToolExecutionComponentEnhanced as c, detectTerminalTheme as d, applyThemeMode as f, mastra as g, getThemeMode as h, LoginDialogComponent as i, AssistantMessageComponent as l, getMarkdownTheme as m, createTUIState as n, formatOMStatus as o, getEditorTheme as p, LoginSelectorComponent as r, UserMessageComponent as s, MastraTUI as t, ModelSelectorComponent as u, restoreTerminalForeground as v, theme as y };
|
|
21595
21598
|
|
|
21596
|
-
//# sourceMappingURL=tui-
|
|
21599
|
+
//# sourceMappingURL=tui-DQZ5eq1o.js.map
|