mastracode 0.44.0-alpha.0 → 0.44.0
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 +2 -2
- package/dist/cli.js +2 -2
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/tui/components/subagent-execution.d.ts +1 -1
- package/dist/tui/components/subagent-execution.d.ts.map +1 -1
- package/dist/{tui-DbWDXwmn.cjs → tui-CvVJXUzA.cjs} +5 -4
- package/dist/tui-CvVJXUzA.cjs.map +1 -0
- package/dist/{tui-Cp0TIs-L.js → tui-D2uNETXK.js} +5 -4
- package/dist/tui-D2uNETXK.js.map +1 -0
- package/dist/tui.cjs +1 -1
- package/dist/tui.js +1 -1
- package/package.json +16 -16
- package/dist/tui-Cp0TIs-L.js.map +0 -1
- package/dist/tui-DbWDXwmn.cjs.map +0 -1
|
@@ -6709,9 +6709,10 @@ var SubagentExecutionComponent = class extends WidthAwareContainer {
|
|
|
6709
6709
|
}
|
|
6710
6710
|
finish(isError, durationMs, result) {
|
|
6711
6711
|
if (this.cancelled) return;
|
|
6712
|
+
if (durationMs !== void 0) this.durationMs = durationMs;
|
|
6713
|
+
else if (!this.done) this.durationMs = Date.now() - this.startTime;
|
|
6712
6714
|
this.done = true;
|
|
6713
6715
|
this.isError = isError;
|
|
6714
|
-
this.durationMs = durationMs;
|
|
6715
6716
|
this.finalResult = isDuplicateFinalResult(result, this.activity, this.lastTextSnapshot) ? void 0 : result;
|
|
6716
6717
|
if (this.expandOnComplete) this.expanded = true;
|
|
6717
6718
|
else if (this.collapseOnComplete) this.expanded = false;
|
|
@@ -10355,7 +10356,7 @@ function handleSubagentProgress(ctx, toolCallId, progress) {
|
|
|
10355
10356
|
component.addToolEnd(progress.toolName, progress.result, progress.isError ?? false);
|
|
10356
10357
|
break;
|
|
10357
10358
|
case "finish":
|
|
10358
|
-
component.finish(progress.isError ?? false, progress.durationMs
|
|
10359
|
+
component.finish(progress.isError ?? false, progress.durationMs, progress.result);
|
|
10359
10360
|
break;
|
|
10360
10361
|
}
|
|
10361
10362
|
reconcileToolBoundaries(ctx);
|
|
@@ -10742,7 +10743,7 @@ function handleToolEnd(ctx, toolCallId, result, isError, providerMetadata) {
|
|
|
10742
10743
|
if (background) subagentComponent.setBackgroundTaskId(background.taskId);
|
|
10743
10744
|
if (background?.status === "running" && !isError) flushRender(state);
|
|
10744
10745
|
else {
|
|
10745
|
-
subagentComponent.finish(isError, 0, resultText);
|
|
10746
|
+
subagentComponent.finish(isError, void 0, resultText);
|
|
10746
10747
|
state.pendingSubagents.delete(toolCallId);
|
|
10747
10748
|
pluginSubagentToolCallIds.delete(toolCallId);
|
|
10748
10749
|
flushRender(state);
|
|
@@ -28170,4 +28171,4 @@ var MastraTUI = class MastraTUI {
|
|
|
28170
28171
|
//#endregion
|
|
28171
28172
|
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 };
|
|
28172
28173
|
|
|
28173
|
-
//# sourceMappingURL=tui-
|
|
28174
|
+
//# sourceMappingURL=tui-D2uNETXK.js.map
|