mastracode 0.40.0-alpha.3 → 0.40.0-alpha.4

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/dist/cli.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- const require_tui = require("./tui-Cew-QcpN.cjs");
2
+ const require_tui = require("./tui-CtCz8i3t.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);
@@ -46,7 +46,7 @@ function resolveTuiSubagents(enabled) {
46
46
  //#endregion
47
47
  //#region src/version.ts
48
48
  function getCurrentVersion() {
49
- return "0.40.0-alpha.3";
49
+ return "0.40.0-alpha.4";
50
50
  }
51
51
  //#endregion
52
52
  //#region src/main.ts
package/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { b as TUI_CO_AUTHOR, d as detectTerminalTheme, f as applyThemeMode, t as MastraTUI, v as restoreTerminalForeground } from "./tui-lGpUtfGi.js";
2
+ import { b as TUI_CO_AUTHOR, d as detectTerminalTheme, f as applyThemeMode, t as MastraTUI, v as restoreTerminalForeground } from "./tui-CiBhGUe8.js";
3
3
  import { createMastraCode } from "@mastra/code-sdk";
4
4
  import fs from "fs";
5
5
  import { createMastraCodeAnalytics } from "@mastra/code-sdk/analytics";
@@ -45,7 +45,7 @@ function resolveTuiSubagents(enabled) {
45
45
  //#endregion
46
46
  //#region src/version.ts
47
47
  function getCurrentVersion() {
48
- return "0.40.0-alpha.3";
48
+ return "0.40.0-alpha.4";
49
49
  }
50
50
  //#endregion
51
51
  //#region src/main.ts
@@ -12202,7 +12202,7 @@ function updateStatusLine(state) {
12202
12202
  const centerText = threadTitle || branch || (githubPrLabel ? "" : null);
12203
12203
  const centerTextShort = centerText && centerText.length > 24 ? centerText.slice(0, 12) + ".." + centerText.slice(-8) : centerText;
12204
12204
  const now = Date.now();
12205
- const queuedCount = state.pendingQueuedActions.length + state.session.followUps.count();
12205
+ const queuedCount = state.pendingQueuedActions.length + displayState.queuedFollowUps;
12206
12206
  const queuedLabel = queuedCount > 0 ? `${queuedCount} queued` : null;
12207
12207
  const goalState = state.goalManager?.getGoal();
12208
12208
  const goalDuration = !isJudging && goalState?.status === "active" ? formatGoalDuration(goalState) : null;
@@ -18906,7 +18906,7 @@ function handleAgentEnd(ctx) {
18906
18906
  }
18907
18907
  function drainQueuedAction(ctx) {
18908
18908
  const { state } = ctx;
18909
- if (state.session.followUps.count() > 0) return true;
18909
+ if (state.session.displayState.get().queuedFollowUps > 0) return true;
18910
18910
  const nextAction = state.pendingQueuedActions.shift();
18911
18911
  ctx.updateStatusLine();
18912
18912
  if (!nextAction) return false;
@@ -25190,4 +25190,4 @@ var MastraTUI = class MastraTUI {
25190
25190
  //#endregion
25191
25191
  export { mastraBrand as _, OMProgressComponent as a, TUI_CO_AUTHOR as b, ToolExecutionComponentEnhanced as c, detectTerminalTheme as d, applyThemeMode as f, mastra as g, getThemeMode as h, LoginDialogComponent as i, ModelSelectorComponent as l, getMarkdownTheme as m, createTUIState as n, formatOMStatus as o, getEditorTheme as p, LoginSelectorComponent as r, UserMessageComponent as s, MastraTUI as t, AssistantMessageComponent as u, restoreTerminalForeground as v, theme as y };
25192
25192
 
25193
- //# sourceMappingURL=tui-lGpUtfGi.js.map
25193
+ //# sourceMappingURL=tui-CiBhGUe8.js.map