mastracode 0.43.0-alpha.10 → 0.44.0-alpha.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/commands/goal.d.ts.map +1 -1
- package/dist/tui/commands/login.d.ts.map +1 -1
- package/dist/tui/commands/settings.d.ts.map +1 -1
- package/dist/tui/commands/workflows.d.ts.map +1 -1
- package/dist/tui/components/custom-editor.d.ts.map +1 -1
- package/dist/tui/components/judge-display.d.ts +1 -1
- package/dist/tui/components/judge-display.d.ts.map +1 -1
- package/dist/tui/components/om-settings.d.ts +10 -1
- package/dist/tui/components/om-settings.d.ts.map +1 -1
- package/dist/tui/components/settings.d.ts +3 -1
- package/dist/tui/components/settings.d.ts.map +1 -1
- package/dist/tui/display.d.ts +3 -0
- package/dist/tui/display.d.ts.map +1 -1
- package/dist/tui/handlers/agent-lifecycle.d.ts.map +1 -1
- package/dist/tui/mastra-tui.d.ts.map +1 -1
- package/dist/tui/sanitize-ansi.d.ts +6 -0
- package/dist/tui/sanitize-ansi.d.ts.map +1 -1
- package/dist/tui/setup.d.ts.map +1 -1
- package/dist/tui/voice/native/compile.d.ts.map +1 -1
- package/dist/{tui-C1Ara475.js → tui-Cp0TIs-L.js} +105 -31
- package/dist/tui-Cp0TIs-L.js.map +1 -0
- package/dist/{tui-D24W4sNj.cjs → tui-DbWDXwmn.cjs} +105 -31
- package/dist/tui-DbWDXwmn.cjs.map +1 -0
- package/dist/tui.cjs +1 -1
- package/dist/tui.js +1 -1
- package/package.json +15 -15
- package/dist/tui-C1Ara475.js.map +0 -1
- package/dist/tui-D24W4sNj.cjs.map +0 -1
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-DbWDXwmn.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);
|
|
@@ -112,7 +112,7 @@ function resolveTuiSubagents(enabled) {
|
|
|
112
112
|
//#endregion
|
|
113
113
|
//#region src/version.ts
|
|
114
114
|
function getCurrentVersion() {
|
|
115
|
-
return "0.
|
|
115
|
+
return "0.44.0-alpha.0";
|
|
116
116
|
}
|
|
117
117
|
//#endregion
|
|
118
118
|
//#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-
|
|
2
|
+
import { b as TUI_CO_AUTHOR, d as detectTerminalTheme, f as applyThemeMode, t as MastraTUI, v as restoreTerminalForeground } from "./tui-Cp0TIs-L.js";
|
|
3
3
|
import { createMastraCode } from "@mastra/code-sdk";
|
|
4
4
|
import fs from "fs";
|
|
5
5
|
import { createMastraCodeAnalytics } from "@mastra/code-sdk/analytics";
|
|
@@ -111,7 +111,7 @@ function resolveTuiSubagents(enabled) {
|
|
|
111
111
|
//#endregion
|
|
112
112
|
//#region src/version.ts
|
|
113
113
|
function getCurrentVersion() {
|
|
114
|
-
return "0.
|
|
114
|
+
return "0.44.0-alpha.0";
|
|
115
115
|
}
|
|
116
116
|
//#endregion
|
|
117
117
|
//#region src/main.ts
|
package/dist/docs/SKILL.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"goal.d.ts","sourceRoot":"","sources":["../../../src/tui/commands/goal.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"goal.d.ts","sourceRoot":"","sources":["../../../src/tui/commands/goal.ts"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,mBAAmB,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CA6G/F;AAiFD,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CAiBhF;AAOD,wBAAsB,qBAAqB,CACzC,GAAG,EAAE,mBAAmB,EACxB,SAAS,EAAE,MAAM,EACjB,aAAa,SAAoB,GAChC,OAAO,CAAC,IAAI,CAAC,CAMf;AA6ID,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAE7D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../src/tui/commands/login.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAoNtD,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,mBAAmB,EAAE,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../src/tui/commands/login.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAoNtD,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,mBAAmB,EAAE,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CAqE1G"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/tui/commands/settings.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/tui/commands/settings.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AA2KtD,wBAAsB,qBAAqB,CAAC,GAAG,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CA0InF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../../src/tui/commands/workflows.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../../src/tui/commands/workflows.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AA6StD,wBAAsB,sBAAsB,CAC1C,GAAG,EAAE,mBAAmB,EACxB,IAAI,EAAE,MAAM,EAAE,EACd,WAAW,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,IAAI,CAAC,CAsHf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-editor.d.ts","sourceRoot":"","sources":["../../../src/tui/components/custom-editor.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,OAAO,EAAE,MAAM,EAAc,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,WAAW,EAAc,GAAG,EAAE,MAAM,wBAAwB,CAAC;AAE3E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAGvE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAyBxD;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,SAAS,IAAI,OAAO,CAAC;IACrB,WAAW,IAAI,OAAO,CAAC;IACvB,cAAc,IAAI,IAAI,CAAC;IACvB,aAAa,IAAI,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACvC;AAaD,MAAM,MAAM,SAAS,GACjB,OAAO,GACP,MAAM,GACN,SAAS,GACT,MAAM,GACN,gBAAgB,GAChB,aAAa,GACb,8BAA8B,GAC9B,mCAAmC,GAC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;IAqEvB;;;;OAIG;IACI,iBAAiB,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI;IAiBlD;;;;;;;;;OASG;IACH,OAAO,CAAC,qBAAqB;IA4C7B,OAAO,CAAC,oBAAoB;IAa5B,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;CAoJhC"}
|
|
@@ -18,7 +18,7 @@ export declare class JudgeDisplayComponent extends WidthAwareContainer {
|
|
|
18
18
|
private activity;
|
|
19
19
|
private streamingReason;
|
|
20
20
|
constructor(result?: GoalJudgeResult | null, turnsUsed?: number, maxTurns?: number);
|
|
21
|
-
addActivity(
|
|
21
|
+
addActivity(rawLine: string): void;
|
|
22
22
|
setStreamingReason(reason: string): void;
|
|
23
23
|
setResult(result: GoalJudgeResult, turnsUsed: number, maxTurns: number): void;
|
|
24
24
|
/** Render the result of an in-loop goal evaluation chunk. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"judge-display.d.ts","sourceRoot":"","sources":["../../../src/tui/components/judge-display.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"judge-display.d.ts","sourceRoot":"","sources":["../../../src/tui/components/judge-display.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAMjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEjE,4DAA4D;AAC5D,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,CAAC;IACrD,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,sEAAsE;AACtE,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,qBAAqB,GAAG,eAAe,CASvF;AAOD,qBAAa,qBAAsB,SAAQ,mBAAmB;IAC5D,OAAO,CAAC,MAAM,CAAyB;IACvC,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,QAAQ,CAAgB;IAChC,OAAO,CAAC,eAAe,CAAM;gBAEjB,MAAM,GAAE,eAAe,GAAG,IAAW,EAAE,SAAS,SAAI,EAAE,QAAQ,SAAI;IAQ9E,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAYlC,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAKxC,SAAS,CAAC,MAAM,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI;IAQ7E,6DAA6D;IAC7D,aAAa,CAAC,OAAO,EAAE,qBAAqB,GAAG,IAAI;IAInD,cAAc,IAAI,IAAI;IAItB,SAAS,CAAC,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAkClD,OAAO,CAAC,kBAAkB;IAQ1B,OAAO,CAAC,YAAY;IAkBpB,OAAO,CAAC,SAAS;IAKjB,OAAO,CAAC,QAAQ;IAahB,OAAO,CAAC,OAAO;IAQf,kBAAkB,IAAI,eAAe;CAGtC"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* Changes apply immediately — Esc closes the panel.
|
|
7
7
|
*/
|
|
8
|
-
import { Box } from '@earendil-works/pi-tui';
|
|
8
|
+
import { Box, Container } from '@earendil-works/pi-tui';
|
|
9
9
|
import type { Focusable, TUI } from '@earendil-works/pi-tui';
|
|
10
10
|
import type { ModelItem } from './model-selector.js';
|
|
11
11
|
export interface OMSettingsConfig {
|
|
@@ -25,6 +25,15 @@ export interface OMSettingsCallbacks {
|
|
|
25
25
|
onObserveAttachmentsChange: (value: 'auto' | boolean) => void | Promise<void>;
|
|
26
26
|
onClose: () => void;
|
|
27
27
|
}
|
|
28
|
+
export declare class ThresholdSubmenu extends Container {
|
|
29
|
+
private input;
|
|
30
|
+
private selectList;
|
|
31
|
+
private onDone;
|
|
32
|
+
private onBack;
|
|
33
|
+
private inInputMode;
|
|
34
|
+
constructor(title: string, currentValue: number, presets: number[], onDone: (value: number) => void, onBack: () => void);
|
|
35
|
+
handleInput(data: string): void;
|
|
36
|
+
}
|
|
28
37
|
export declare class OMSettingsComponent extends Box implements Focusable {
|
|
29
38
|
private settingsList;
|
|
30
39
|
private _focused;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"om-settings.d.ts","sourceRoot":"","sources":["../../../src/tui/components/om-settings.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"om-settings.d.ts","sourceRoot":"","sources":["../../../src/tui/components/om-settings.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,GAAG,EAAE,SAAS,EAAiE,MAAM,wBAAwB,CAAC;AACvH,OAAO,KAAK,EAAE,SAAS,EAA2B,GAAG,EAAE,MAAM,wBAAwB,CAAC;AAGtF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAMrD,MAAM,WAAW,gBAAgB;IAC/B,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,kBAAkB,EAAE,MAAM,GAAG,OAAO,CAAC;CACtC;AAED,MAAM,WAAW,mBAAmB;IAClC,qBAAqB,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAClE,sBAAsB,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACnE,4BAA4B,EAAE,CAAC,KAAK,EAAE,MA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ting } from '@mastra/code-sdk/onboarding/settings';
|
|
10
|
+
import type { ExperimentalAgent, StorageBackend, WebSearchProviderSetting } from '@mastra/code-sdk/onboarding/settings';
|
|
11
11
|
import type { NotificationMode } from '../notify.js';
|
|
12
12
|
export interface SettingsConfig {
|
|
13
13
|
notifications: NotificationMode;
|
|
@@ -23,6 +23,7 @@ export interface SettingsConfig {
|
|
|
23
23
|
experimentalGithubSignals: boolean;
|
|
24
24
|
experimentalCrossAgentSignals: boolean;
|
|
25
25
|
experimentalScheduleTools: boolean;
|
|
26
|
+
experimentalAgent: ExperimentalAgent | null;
|
|
26
27
|
backgroundToolsEnabled: boolean;
|
|
27
28
|
webSearchProvider: WebSearchProviderSetting;
|
|
28
29
|
tavilyKeyAvailable: boolean;
|
|
@@ -39,6 +40,7 @@ export interface SettingsCallbacks {
|
|
|
39
40
|
onExperimentalGithubSignalsChange: (enabled: boolean) => boolean | void | Promise<boolean | void>;
|
|
40
41
|
onExperimentalCrossAgentSignalsChange: (enabled: boolean) => boolean | void | Promise<boolean | void>;
|
|
41
42
|
onExperimentalScheduleToolsChange: (enabled: boolean) => void;
|
|
43
|
+
onExperimentalAgentChange: (agent: ExperimentalAgent | null) => void;
|
|
42
44
|
onBackgroundToolsChange: (enabled: boolean) => void;
|
|
43
45
|
onWebSearchProviderChange: (provider: WebSearchProviderSetting) => void;
|
|
44
46
|
onApiKeys?: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/tui/components/settings.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,GAAG,EAAiE,MAAM,wBAAwB,CAAC;AAC5G,OAAO,KAAK,EAAE,SAAS,EAA2B,MAAM,wBAAwB,CAAC;AACjF,OAAO,KAAK,EAAE,cAAc,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/tui/components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","sourceRoot":"","sources":["../../src/tui/display.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAG1E,OAAO,KAAK,EAAoB,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAExE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AA+B3C,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;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,oBAAoB,GAAG,IAAI,CAwCxF;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,oBAAoB,GAAG,IAAI,CA8B7F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-lifecycle.d.ts","sourceRoot":"","sources":["../../../src/tui/handlers/agent-lifecycle.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAWjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,mBAAmB,GAAG,IAAI,CAiB/D;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,mBAAmB,GAAG,IAAI,CAgC7D;AAqED,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,mBAAmB,GAAG,IAAI,CAgDjE;AAED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,mBAAmB,GAAG,IAAI,CA2B/D;AAeD;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,mBAAmB,EAAE,OAAO,EAAE,qBAAqB,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"agent-lifecycle.d.ts","sourceRoot":"","sources":["../../../src/tui/handlers/agent-lifecycle.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAWjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,mBAAmB,GAAG,IAAI,CAiB/D;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,mBAAmB,GAAG,IAAI,CAgC7D;AAqED,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,mBAAmB,GAAG,IAAI,CAgDjE;AAED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,mBAAmB,GAAG,IAAI,CA2B/D;AAeD;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,mBAAmB,EAAE,OAAO,EAAE,qBAAqB,GAAG,IAAI,CA0EnG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mastra-tui.d.ts","sourceRoot":"","sources":["../../src/tui/mastra-tui.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mastra-tui.d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AU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAwE/C,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;YAyGvB,qBAAqB;IAiGnC,OAAO,CAAC,oBAAoB;IAS5B,OAAO,CAAC,wBAAwB;IAiBhC,OAAO,CAAC,2BAA2B;IAM7B,qCAAqC,IAAI,OAAO,CAAC,IAAI,CAAC;IA0C5D;;;;;OAKG;YACW,cAAc;IA0C5B;;OAEG;YACW,gBAAgB;CA4D/B"}
|
|
@@ -28,4 +28,10 @@
|
|
|
28
28
|
* (bare ESC can confuse terminal state).
|
|
29
29
|
*/
|
|
30
30
|
export declare function sanitizeAnsiForRendering(text: string): string;
|
|
31
|
+
/**
|
|
32
|
+
* Replace every control character (including ESC, so all escape sequences are
|
|
33
|
+
* neutralised) with a space. Use for untrusted one-line text such as goal
|
|
34
|
+
* fields and provider/scorer error messages, where no styling should survive.
|
|
35
|
+
*/
|
|
36
|
+
export declare function stripControlChars(text: string): string;
|
|
31
37
|
//# sourceMappingURL=sanitize-ansi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sanitize-ansi.d.ts","sourceRoot":"","sources":["../../src/tui/sanitize-ansi.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAoBH;;;;;;;;GAQG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAS7D"}
|
|
1
|
+
{"version":3,"file":"sanitize-ansi.d.ts","sourceRoot":"","sources":["../../src/tui/sanitize-ansi.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAoBH;;;;;;;;GAQG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAS7D;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEtD"}
|
package/dist/tui/setup.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../src/tui/setup.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAU3C,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,QAAQ,EACf,SAAS,EAAE;IACT,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,IAAI,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,aAAa,EAAE,MAAM,CAAC;IACtB,oBAAoB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,4BAA4B,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1C,iCAAiC,CAAC,EAAE,MAAM,IAAI,CAAC;CAChD,GACA,IAAI,CA2LN;
|
|
1
|
+
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../src/tui/setup.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAU3C,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,QAAQ,EACf,SAAS,EAAE;IACT,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,IAAI,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,aAAa,EAAE,MAAM,CAAC;IACtB,oBAAoB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,4BAA4B,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1C,iCAAiC,CAAC,EAAE,MAAM,IAAI,CAAC;CAChD,GACA,IAAI,CA2LN;AAoDD,wBAAgB,WAAW,CAAC,KAAK,EAAE,QAAQ,EAAE,sBAAsB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CA4D9F;AAeD,wBAAgB,0BAA0B,CACxC,EAAE,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC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["../../../../src/tui/voice/native/compile.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAgCH,QAAA,MAAM,WAAW,QAAkC,CAAC;AACpD,QAAA,MAAM,UAAU,QAAkC,CAAC;AAMnD,oCAAoC;AACpC,MAAM,WAAW,oBAAoB;IACnC,iFAAiF;IACjF,OAAO,EAAE,MAAM,CAAC;IAChB,4EAA4E;IAC5E,UAAU,EAAE,MAAM,CAAC;CACpB;AA+FD;;;;;;GAMG;AACH,wBAAsB,iBAAiB,CACrC,UAAU,GAAE,MAAoB,EAChC,SAAS,GAAE,MAAmB,GAC7B,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC,CAmCtC;AAED,gFAAgF;AAChF,wBAAgB,kBAAkB,IAAI,MAAM,CAE3C;AAED,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -5,7 +5,6 @@ import { ThreadLockError } from "@mastra/code-sdk/utils/thread-lock";
|
|
|
5
5
|
import { mastraBrand } from "@mastra/code-sdk/theme-palette";
|
|
6
6
|
import chalk from "chalk";
|
|
7
7
|
import { execFile, execFileSync, spawn } from "child_process";
|
|
8
|
-
import { createHash, randomUUID } from "crypto";
|
|
9
8
|
import { ACCOUNT_SWITCH_PART_TYPE, PACK_FALLBACK_STATE_KEY, accountSwitchNoticeText, isAccountSwitchReason, isPackFallbackReason, packFallbackNoticeText, providerFromModelId } from "@mastra/code-sdk/auth/account-rotation-processor";
|
|
10
9
|
import { PROVIDER_DEFAULT_MODELS, getOAuthProviders } from "@mastra/code-sdk/auth/storage";
|
|
11
10
|
import { ONBOARDING_VERSION, getAvailableModePacks, getAvailableOmPacks, loadSettings as loadSettings$1, saveSettings as saveSettings$1, selectPreferredOMPack } from "@mastra/code-sdk/onboarding/index";
|
|
@@ -1106,6 +1105,14 @@ function sanitizeAnsiForRendering(text) {
|
|
|
1106
1105
|
return "";
|
|
1107
1106
|
});
|
|
1108
1107
|
}
|
|
1108
|
+
/**
|
|
1109
|
+
* Replace every control character (including ESC, so all escape sequences are
|
|
1110
|
+
* neutralised) with a space. Use for untrusted one-line text such as goal
|
|
1111
|
+
* fields and provider/scorer error messages, where no styling should survive.
|
|
1112
|
+
*/
|
|
1113
|
+
function stripControlChars(text) {
|
|
1114
|
+
return text.replace(/[\u0000-\u001f\u007f-\u009f]+/g, " ").trim();
|
|
1115
|
+
}
|
|
1109
1116
|
//#endregion
|
|
1110
1117
|
//#region src/tui/components/assistant-message.ts
|
|
1111
1118
|
/**
|
|
@@ -2220,7 +2227,7 @@ async function handleGoalCommand(ctx, args) {
|
|
|
2220
2227
|
}
|
|
2221
2228
|
await goalManager.saveToThread(state);
|
|
2222
2229
|
ctx.updateStatusLine();
|
|
2223
|
-
ctx.showInfo(`Goal paused: "${goal.objective}" (${goal.turnsUsed}/${goal.maxTurns} turns used). Use /goal resume to continue.`);
|
|
2230
|
+
ctx.showInfo(`Goal paused: "${stripControlChars(goal.objective)}" (${goal.turnsUsed}/${goal.maxTurns} turns used). Use /goal resume to continue.`);
|
|
2224
2231
|
return;
|
|
2225
2232
|
}
|
|
2226
2233
|
if (subCommand === "resume") {
|
|
@@ -2250,14 +2257,20 @@ async function handleGoalCommand(ctx, args) {
|
|
|
2250
2257
|
ctx.showInfo("Interrupted");
|
|
2251
2258
|
return;
|
|
2252
2259
|
}
|
|
2253
|
-
ctx.showError(`Goal paused — failed to send continuation for "${goal.objective}": ${err instanceof Error ? err.message : String(err)}`);
|
|
2260
|
+
ctx.showError(`Goal paused — failed to send continuation for "${stripControlChars(goal.objective)}": ${stripControlChars(err instanceof Error ? err.message : String(err))}`);
|
|
2254
2261
|
}
|
|
2255
2262
|
return;
|
|
2256
2263
|
}
|
|
2257
2264
|
if (subCommand === "clear") {
|
|
2258
2265
|
goalManager.clear();
|
|
2266
|
+
if (!await goalManager.deleteFromThread(state)) {
|
|
2267
|
+
if (!await goalManager.loadFromThread(state)) {
|
|
2268
|
+
ctx.updateStatusLine();
|
|
2269
|
+
ctx.showError("Could not clear the goal; it may still be active. Try /goal clear again.");
|
|
2270
|
+
return;
|
|
2271
|
+
}
|
|
2272
|
+
}
|
|
2259
2273
|
state.planStartedGoalId = void 0;
|
|
2260
|
-
await goalManager.saveToThread(state);
|
|
2261
2274
|
if (state.session.run.isRunning() || state.session.suspensions.hasPending()) {
|
|
2262
2275
|
state.activeInlineQuestion = void 0;
|
|
2263
2276
|
state.pendingInlineQuestions.length = 0;
|
|
@@ -2276,7 +2289,8 @@ async function handleGoalCommand(ctx, args) {
|
|
|
2276
2289
|
await startGoalWithDefaults(ctx, args.join(" "));
|
|
2277
2290
|
}
|
|
2278
2291
|
function formatGoalStatus(goal) {
|
|
2279
|
-
|
|
2292
|
+
const reason = goal.status === "paused" && goal.pausedReason ? ` — paused: ${goal.pausedReason}` : "";
|
|
2293
|
+
return stripControlChars(`Goal (${goal.status}): "${goal.objective}" — ${goal.turnsUsed}/${goal.maxTurns} turns used [judge: ${goal.judgeModelId}]${reason}`);
|
|
2280
2294
|
}
|
|
2281
2295
|
function formatGoalStatusRow(goal) {
|
|
2282
2296
|
return formatGoalStatus(goal).replace(/\s+/g, " ");
|
|
@@ -2460,7 +2474,7 @@ async function startGoal(ctx, objective, judgeModelId, maxTurns) {
|
|
|
2460
2474
|
ctx.showInfo("Interrupted");
|
|
2461
2475
|
return;
|
|
2462
2476
|
}
|
|
2463
|
-
ctx.showError(`Goal paused — failed to start: ${err instanceof Error ? err.message : String(err)}`);
|
|
2477
|
+
ctx.showError(`Goal paused — failed to start: ${stripControlChars(err instanceof Error ? err.message : String(err))}`);
|
|
2464
2478
|
}
|
|
2465
2479
|
}
|
|
2466
2480
|
//#endregion
|
|
@@ -4846,7 +4860,7 @@ function runPermissionHooksForEvent(state, event) {
|
|
|
4846
4860
|
const hookMgr = state.hookManager;
|
|
4847
4861
|
if (!hookMgr) return;
|
|
4848
4862
|
if (event.type === "agent_start") {
|
|
4849
|
-
if (!hookMgr.getRunId()) hookMgr.setRunId(randomUUID());
|
|
4863
|
+
if (!hookMgr.getRunId()) hookMgr.setRunId(globalThis.crypto.randomUUID());
|
|
4850
4864
|
return;
|
|
4851
4865
|
}
|
|
4852
4866
|
if (event.type === "tool_approval_required") {
|
|
@@ -5684,7 +5698,8 @@ var JudgeDisplayComponent = class extends WidthAwareContainer {
|
|
|
5684
5698
|
this.maxTurns = maxTurns;
|
|
5685
5699
|
this.rebuild();
|
|
5686
5700
|
}
|
|
5687
|
-
addActivity(
|
|
5701
|
+
addActivity(rawLine) {
|
|
5702
|
+
const line = stripControlChars(rawLine);
|
|
5688
5703
|
if (this.activity[this.activity.length - 1] !== line) this.activity.push(line);
|
|
5689
5704
|
if (this.activity.length > 6) this.activity = this.activity.slice(-6);
|
|
5690
5705
|
this.rebuild();
|
|
@@ -5721,7 +5736,7 @@ var JudgeDisplayComponent = class extends WidthAwareContainer {
|
|
|
5721
5736
|
if (!this.result && this.activity.length === 0 && !this.streamingReason) this.addChild(new Text(this.renderRow(chalk.dim("evaluating…"), innerWidth, border), 0, 0));
|
|
5722
5737
|
for (const line of this.activity) this.addChild(new Text(this.renderRow(this.renderActivityLine(line), innerWidth, border), 0, 0));
|
|
5723
5738
|
if (this.activity.length > 0 && (this.result || this.streamingReason)) this.addChild(new Text(this.renderRow("", innerWidth, border), 0, 0));
|
|
5724
|
-
const reason = this.result?.reason ?? this.streamingReason;
|
|
5739
|
+
const reason = stripControlChars(this.result?.reason ?? this.streamingReason);
|
|
5725
5740
|
if (reason) for (const line of this.wrapLine(reason, innerWidth)) this.addChild(new Text(this.renderRow(chalk.dim(line), innerWidth, border), 0, 0));
|
|
5726
5741
|
this.addChild(new Text(`${border("╰")}${border(horizontal)}${border("╯")}`, 0, 0));
|
|
5727
5742
|
}
|
|
@@ -15168,16 +15183,17 @@ var ThresholdSubmenu = class extends Container {
|
|
|
15168
15183
|
}
|
|
15169
15184
|
handleInput(data) {
|
|
15170
15185
|
if (this.inInputMode) {
|
|
15171
|
-
|
|
15186
|
+
const kb = getKeybindings();
|
|
15187
|
+
if (data === "\r" || data === "\n" || kb.matches(data, "tui.input.submit")) {
|
|
15172
15188
|
const parsed = parseTokenInput(this.input.getValue());
|
|
15173
15189
|
if (parsed) this.onDone(parsed);
|
|
15174
15190
|
return;
|
|
15175
15191
|
}
|
|
15176
|
-
if (data
|
|
15192
|
+
if (kb.matches(data, "tui.select.cancel")) {
|
|
15177
15193
|
this.onBack();
|
|
15178
15194
|
return;
|
|
15179
15195
|
}
|
|
15180
|
-
if (data
|
|
15196
|
+
if (kb.matches(data, "tui.select.down")) {
|
|
15181
15197
|
this.inInputMode = false;
|
|
15182
15198
|
return;
|
|
15183
15199
|
}
|
|
@@ -16289,6 +16305,33 @@ var SettingsComponent = class extends Box {
|
|
|
16289
16305
|
done(enabled ? "On" : "Off");
|
|
16290
16306
|
}, () => done())
|
|
16291
16307
|
},
|
|
16308
|
+
{
|
|
16309
|
+
id: "experimentalAgent",
|
|
16310
|
+
label: "Experimental agent",
|
|
16311
|
+
description: "Run the coding agent on the durable or evented runtime (restart required).",
|
|
16312
|
+
currentValue: config.experimentalAgent === "durable" ? "Durable" : config.experimentalAgent === "evented" ? "Evented" : "Off",
|
|
16313
|
+
submenu: (_currentValue, done) => new SelectSubmenu([
|
|
16314
|
+
{
|
|
16315
|
+
value: "off",
|
|
16316
|
+
label: " Off",
|
|
16317
|
+
description: "Use the standard coding agent"
|
|
16318
|
+
},
|
|
16319
|
+
{
|
|
16320
|
+
value: "durable",
|
|
16321
|
+
label: " Durable",
|
|
16322
|
+
description: "Use resumable durable agent streams"
|
|
16323
|
+
},
|
|
16324
|
+
{
|
|
16325
|
+
value: "evented",
|
|
16326
|
+
label: " Evented",
|
|
16327
|
+
description: "Run the agent loop on the evented workflow engine"
|
|
16328
|
+
}
|
|
16329
|
+
], config.experimentalAgent ?? "off", (value) => {
|
|
16330
|
+
config.experimentalAgent = value === "off" ? null : value;
|
|
16331
|
+
callbacks.onExperimentalAgentChange(config.experimentalAgent);
|
|
16332
|
+
done(config.experimentalAgent === "durable" ? "Durable" : config.experimentalAgent === "evented" ? "Evented" : "Off");
|
|
16333
|
+
}, () => done())
|
|
16334
|
+
},
|
|
16292
16335
|
{
|
|
16293
16336
|
id: "backgroundToolsEnabled",
|
|
16294
16337
|
label: "Experimental background tools",
|
|
@@ -16530,6 +16573,9 @@ function getCurrentModeColor$1(ctx) {
|
|
|
16530
16573
|
const color = ctx.state.session.mode.resolve().metadata?.color;
|
|
16531
16574
|
return typeof color === "string" ? color : void 0;
|
|
16532
16575
|
}
|
|
16576
|
+
function resolveExperimentalAgentSetting(value) {
|
|
16577
|
+
return value === "durable" || value === "evented" ? value : null;
|
|
16578
|
+
}
|
|
16533
16579
|
function commandExists$1(command) {
|
|
16534
16580
|
return new Promise((resolve) => {
|
|
16535
16581
|
execFile("/bin/sh", ["-lc", `command -v ${command}`], (error) => resolve(!error));
|
|
@@ -16677,6 +16723,7 @@ async function handleSettingsCommand(ctx) {
|
|
|
16677
16723
|
experimentalGithubSignals: globalSettings.signals.experimentalGithubSignals,
|
|
16678
16724
|
experimentalCrossAgentSignals: globalSettings.signals.experimentalCrossAgentSignals,
|
|
16679
16725
|
experimentalScheduleTools: globalSettings.signals.experimentalScheduleTools,
|
|
16726
|
+
experimentalAgent: resolveExperimentalAgentSetting(globalSettings.experimentalAgent),
|
|
16680
16727
|
backgroundToolsEnabled: globalSettings.backgroundTools?.enabled ?? false,
|
|
16681
16728
|
webSearchProvider: globalSettings.preferences.webSearchProvider === "tavily" && !process.env.TAVILY_API_KEY || globalSettings.preferences.webSearchProvider === "parallel" && !process.env.PARALLEL_API_KEY ? "auto" : globalSettings.preferences.webSearchProvider,
|
|
16682
16729
|
tavilyKeyAvailable: !!process.env.TAVILY_API_KEY,
|
|
@@ -16759,6 +16806,12 @@ async function handleSettingsCommand(ctx) {
|
|
|
16759
16806
|
saveSettings(current);
|
|
16760
16807
|
ctx.showInfo(`Experimental schedule tools: ${enabled ? "on" : "off"} (restart required)`);
|
|
16761
16808
|
},
|
|
16809
|
+
onExperimentalAgentChange: (agent) => {
|
|
16810
|
+
const current = loadSettings();
|
|
16811
|
+
current.experimentalAgent = agent;
|
|
16812
|
+
saveSettings(current);
|
|
16813
|
+
ctx.showInfo(`Experimental agent: ${agent ?? "off"} (restart required)`);
|
|
16814
|
+
},
|
|
16762
16815
|
onBackgroundToolsChange: (enabled) => {
|
|
16763
16816
|
const current = loadSettings();
|
|
16764
16817
|
current.backgroundTools = {
|
|
@@ -18211,6 +18264,7 @@ async function openAccountManager(ctx, providerId, providerName, initialAccounts
|
|
|
18211
18264
|
});
|
|
18212
18265
|
}
|
|
18213
18266
|
async function handleLoginCommand(ctx, mode) {
|
|
18267
|
+
ctx.authStorage?.reload();
|
|
18214
18268
|
const allProviders = getOAuthProviders();
|
|
18215
18269
|
const loggedInIds = allProviders.filter((p) => ctx.authStorage?.isLoggedIn(p.id)).map((p) => p.id);
|
|
18216
18270
|
if (mode === "logout") {
|
|
@@ -18237,17 +18291,20 @@ async function handleLoginCommand(ctx, mode) {
|
|
|
18237
18291
|
}, async (providerId) => {
|
|
18238
18292
|
ctx.state.ui.hideOverlay();
|
|
18239
18293
|
const provider = providers.find((p) => p.id === providerId);
|
|
18240
|
-
if (provider)
|
|
18241
|
-
|
|
18242
|
-
if (
|
|
18243
|
-
|
|
18244
|
-
|
|
18245
|
-
|
|
18246
|
-
ctx.authStorage
|
|
18247
|
-
|
|
18248
|
-
|
|
18249
|
-
|
|
18250
|
-
|
|
18294
|
+
if (provider) {
|
|
18295
|
+
ctx.authStorage?.reload();
|
|
18296
|
+
if (mode === "login") {
|
|
18297
|
+
const accounts = ctx.authStorage?.listAccounts(provider.id) ?? [];
|
|
18298
|
+
if (accounts.length > 0) await openAccountManager(ctx, provider.id, provider.name, accounts);
|
|
18299
|
+
else await performLogin(ctx, provider.id);
|
|
18300
|
+
} else if (ctx.authStorage) {
|
|
18301
|
+
const removedAccountIds = ctx.authStorage.listAccounts(provider.id).map((account) => account.id);
|
|
18302
|
+
ctx.authStorage.logout(provider.id);
|
|
18303
|
+
removeAccountRoutingPreferences(removedAccountIds);
|
|
18304
|
+
ctx.state.controller.invalidateAvailableModelsCache();
|
|
18305
|
+
ctx.showInfo(`Logged out from ${provider.name}`);
|
|
18306
|
+
} else ctx.showError("Auth storage not configured");
|
|
18307
|
+
}
|
|
18251
18308
|
resolve();
|
|
18252
18309
|
}, () => {
|
|
18253
18310
|
ctx.state.ui.hideOverlay();
|
|
@@ -20386,7 +20443,7 @@ function buildSessionRequestContext(ctx) {
|
|
|
20386
20443
|
requestContext.set("controller", controllerContext);
|
|
20387
20444
|
const resourceId = session.identity?.getResourceId?.() ?? "";
|
|
20388
20445
|
requestContext.set("MastraMemory", {
|
|
20389
|
-
thread: { id: randomUUID() },
|
|
20446
|
+
thread: { id: globalThis.crypto.randomUUID() },
|
|
20390
20447
|
resourceId,
|
|
20391
20448
|
memoryConfig: void 0
|
|
20392
20449
|
});
|
|
@@ -21454,7 +21511,8 @@ function handleGoalEvaluation(ctx, payload) {
|
|
|
21454
21511
|
activeGoalJudge.component.setEvaluation(payload);
|
|
21455
21512
|
state.goalManager.applyEvaluation({
|
|
21456
21513
|
runsUsed: payload.iteration,
|
|
21457
|
-
status: payload.status
|
|
21514
|
+
status: payload.status,
|
|
21515
|
+
...payload.pausedReason ? { pausedReason: payload.pausedReason } : {}
|
|
21458
21516
|
});
|
|
21459
21517
|
ctx.updateStatusLine();
|
|
21460
21518
|
flushRender(state);
|
|
@@ -22803,7 +22861,7 @@ var CustomEditor = class extends Editor {
|
|
|
22803
22861
|
const textColorClose = "\x1B[39m";
|
|
22804
22862
|
result.push(top);
|
|
22805
22863
|
const fullText = this.getText();
|
|
22806
|
-
let greyRemaining = this.voiceTranscriptText.length > 0 && fullText.endsWith(this.voiceTranscriptText) ? this.voiceTranscriptText.length : 0;
|
|
22864
|
+
let greyRemaining = this.voiceTranscriptText.length > 0 && fullText.endsWith(this.voiceTranscriptText) ? [...this.voiceTranscriptText].length : 0;
|
|
22807
22865
|
const greyOpen = `\x1b[38;2;${parseHex(theme.getTheme().muted).join(";")}m`;
|
|
22808
22866
|
for (let i = contentLines.length - 1; i >= 0; i--) if (greyRemaining > 0) {
|
|
22809
22867
|
const { line, consumed } = this.greyifyTrailing(contentLines[i], greyRemaining, greyOpen, textColorOpen);
|
|
@@ -23885,7 +23943,7 @@ async function resolveRecognizer(scriptPath = SCRIPT_PATH, plistPath = PLIST_PAT
|
|
|
23885
23943
|
} catch {
|
|
23886
23944
|
return null;
|
|
23887
23945
|
}
|
|
23888
|
-
const hash =
|
|
23946
|
+
const hash = Buffer.from(await globalThis.crypto.subtle.digest("SHA-256", new TextEncoder().encode(`v3${source}\0${plist}`))).toString("hex").slice(0, 16);
|
|
23889
23947
|
const dir = cacheDir();
|
|
23890
23948
|
const appPath = join(dir, `macos-stt-${hash}.app`);
|
|
23891
23949
|
const binaryPath = join(appPath, "Contents", "MacOS", APP_NAME);
|
|
@@ -26001,6 +26059,19 @@ function setupKeyboardShortcuts(state, callbacks) {
|
|
|
26001
26059
|
return true;
|
|
26002
26060
|
});
|
|
26003
26061
|
}
|
|
26062
|
+
async function pauseStoredGoal(state, pausedReason) {
|
|
26063
|
+
const threadId = state.session.thread.getId();
|
|
26064
|
+
if (!threadId) return;
|
|
26065
|
+
try {
|
|
26066
|
+
const agent = state.controller.getCurrentAgent(state.session);
|
|
26067
|
+
if ((await agent.getObjective({ threadId }))?.status !== "active") return;
|
|
26068
|
+
await agent.updateObjectiveOptions({
|
|
26069
|
+
threadId,
|
|
26070
|
+
status: "paused",
|
|
26071
|
+
pausedReason
|
|
26072
|
+
});
|
|
26073
|
+
} catch {}
|
|
26074
|
+
}
|
|
26004
26075
|
function abortActiveGoalJudge(state) {
|
|
26005
26076
|
const activeGoalJudge = state.activeGoalJudge;
|
|
26006
26077
|
if (!activeGoalJudge) return false;
|
|
@@ -26009,8 +26080,11 @@ function abortActiveGoalJudge(state) {
|
|
|
26009
26080
|
activeGoalJudge.abortController.abort();
|
|
26010
26081
|
activeGoalJudge.component.setInterrupted();
|
|
26011
26082
|
state.session.abort();
|
|
26012
|
-
|
|
26013
|
-
state.goalManager.
|
|
26083
|
+
const pausedReason = "Judge evaluation was interrupted.";
|
|
26084
|
+
if (state.goalManager.getGoal()) {
|
|
26085
|
+
state.goalManager.pause(pausedReason);
|
|
26086
|
+
state.goalManager.saveToThread(state);
|
|
26087
|
+
} else pauseStoredGoal(state, pausedReason);
|
|
26014
26088
|
state.activeGoalJudge = void 0;
|
|
26015
26089
|
state.ui.requestRender();
|
|
26016
26090
|
return true;
|
|
@@ -27546,7 +27620,7 @@ var MastraTUI = class MastraTUI {
|
|
|
27546
27620
|
beginLifecycleRun() {
|
|
27547
27621
|
const hookMgr = this.state.hookManager;
|
|
27548
27622
|
if (!hookMgr) return;
|
|
27549
|
-
if (!hookMgr.getRunId()) hookMgr.setRunId(randomUUID());
|
|
27623
|
+
if (!hookMgr.getRunId()) hookMgr.setRunId(globalThis.crypto.randomUUID());
|
|
27550
27624
|
hookMgr.runAgentStart().catch(() => {});
|
|
27551
27625
|
}
|
|
27552
27626
|
fireLifecycleHooksForEvent(event) {
|
|
@@ -28096,4 +28170,4 @@ var MastraTUI = class MastraTUI {
|
|
|
28096
28170
|
//#endregion
|
|
28097
28171
|
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 };
|
|
28098
28172
|
|
|
28099
|
-
//# sourceMappingURL=tui-
|
|
28173
|
+
//# sourceMappingURL=tui-Cp0TIs-L.js.map
|