mastracode 0.46.0-alpha.6 → 0.46.0-alpha.8
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 +26 -0
- 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/settings.d.ts.map +1 -1
- package/dist/tui/components/assistant-message.d.ts +0 -7
- package/dist/tui/components/assistant-message.d.ts.map +1 -1
- package/dist/tui/components/chat-spacing.d.ts +2 -2
- package/dist/tui/components/chat-spacing.d.ts.map +1 -1
- package/dist/tui/components/idle-counter.d.ts +1 -1
- package/dist/tui/components/idle-counter.d.ts.map +1 -1
- package/dist/tui/components/notification-summary.d.ts +0 -4
- package/dist/tui/components/notification-summary.d.ts.map +1 -1
- package/dist/tui/components/notification.d.ts +3 -7
- package/dist/tui/components/notification.d.ts.map +1 -1
- package/dist/tui/components/om-marker.d.ts +0 -18
- package/dist/tui/components/om-marker.d.ts.map +1 -1
- package/dist/tui/components/schedule-fire.d.ts +3 -7
- package/dist/tui/components/schedule-fire.d.ts.map +1 -1
- package/dist/tui/components/settings.d.ts +2 -4
- package/dist/tui/components/settings.d.ts.map +1 -1
- package/dist/tui/components/surface.d.ts +1 -1
- package/dist/tui/components/task-progress.d.ts +2 -4
- package/dist/tui/components/task-progress.d.ts.map +1 -1
- package/dist/tui/components/tool-execution-enhanced.d.ts +56 -68
- package/dist/tui/components/tool-execution-enhanced.d.ts.map +1 -1
- package/dist/tui/components/tool-execution-interface.d.ts +2 -4
- package/dist/tui/components/tool-execution-interface.d.ts.map +1 -1
- package/dist/tui/event-dispatch.d.ts.map +1 -1
- package/dist/tui/handlers/index.d.ts +1 -1
- package/dist/tui/handlers/index.d.ts.map +1 -1
- package/dist/tui/handlers/message.d.ts.map +1 -1
- package/dist/tui/handlers/om.d.ts +1 -4
- package/dist/tui/handlers/om.d.ts.map +1 -1
- package/dist/tui/handlers/tool.d.ts.map +1 -1
- package/dist/tui/mastra-tui.d.ts +0 -3
- package/dist/tui/mastra-tui.d.ts.map +1 -1
- package/dist/tui/preview-lines.d.ts +8 -0
- package/dist/tui/preview-lines.d.ts.map +1 -0
- package/dist/tui/prune-chat.d.ts.map +1 -1
- package/dist/tui/render-messages.d.ts.map +1 -1
- package/dist/tui/setup.d.ts.map +1 -1
- package/dist/tui/state.d.ts +1 -3
- package/dist/tui/state.d.ts.map +1 -1
- package/dist/{tui-BAj6RQlV.cjs → tui-BEov2a70.cjs} +263 -1218
- package/dist/tui-BEov2a70.cjs.map +1 -0
- package/dist/{tui-JCHKDZHy.js → tui-BqcIy2hd.js} +261 -1216
- package/dist/tui-BqcIy2hd.js.map +1 -0
- package/dist/tui.cjs +1 -1
- package/dist/tui.js +1 -1
- package/package.json +9 -9
- package/dist/tui/quiet-mode.d.ts +0 -9
- package/dist/tui/quiet-mode.d.ts.map +0 -1
- package/dist/tui-BAj6RQlV.cjs.map +0 -1
- package/dist/tui-JCHKDZHy.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# mastracode
|
|
2
2
|
|
|
3
|
+
## 0.46.0-alpha.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`b48ddcc`](https://github.com/mastra-ai/mastra/commit/b48ddcc7768c76f02d1dd4ed0f21d417a8b21418), [`cf6446c`](https://github.com/mastra-ai/mastra/commit/cf6446cae036784bd6802e4bcca8f3cf34a9ca9f), [`46bb6b2`](https://github.com/mastra-ai/mastra/commit/46bb6b29dd83cabb09cf720dd8a3655860bf5858), [`25b8b60`](https://github.com/mastra-ai/mastra/commit/25b8b6074cbb5f0c744e4edb4ce0c5ee1f3771d6), [`faf79ea`](https://github.com/mastra-ai/mastra/commit/faf79ea0d1aa7b2265b070f5323339fa275ebb49), [`a1793d7`](https://github.com/mastra-ai/mastra/commit/a1793d7d077ed450125628ede812897ecbf08c4c), [`3645c3d`](https://github.com/mastra-ai/mastra/commit/3645c3d67e0c1f40005035911103deba381d246a), [`e5688d2`](https://github.com/mastra-ai/mastra/commit/e5688d2945aff1e867eb8b9fc5f25393d6579216), [`ef231f2`](https://github.com/mastra-ai/mastra/commit/ef231f27f1d1507f1d3cd6717aa1489263b2e10b), [`4324cd3`](https://github.com/mastra-ai/mastra/commit/4324cd38ee744eb46b85ce0a9d3f2e4a0657ca87), [`4324cd3`](https://github.com/mastra-ai/mastra/commit/4324cd38ee744eb46b85ce0a9d3f2e4a0657ca87), [`eda5b00`](https://github.com/mastra-ai/mastra/commit/eda5b0081bdc49cc17ac8fc1267fccabb5e7a33f), [`4324cd3`](https://github.com/mastra-ai/mastra/commit/4324cd38ee744eb46b85ce0a9d3f2e4a0657ca87), [`46bb6b2`](https://github.com/mastra-ai/mastra/commit/46bb6b29dd83cabb09cf720dd8a3655860bf5858), [`b6b3f49`](https://github.com/mastra-ai/mastra/commit/b6b3f49d35ce62b584d9753361a7db7c15045801), [`a2d52e1`](https://github.com/mastra-ai/mastra/commit/a2d52e1d6a1542e3eb994853145ffd113fd02c2f), [`aa95d15`](https://github.com/mastra-ai/mastra/commit/aa95d15913925da141d1b7f707c2fa4f45f7b317), [`4416137`](https://github.com/mastra-ai/mastra/commit/4416137e6b9368c11fcb31edba3d1937cfe61a40), [`46bb6b2`](https://github.com/mastra-ai/mastra/commit/46bb6b29dd83cabb09cf720dd8a3655860bf5858), [`180bdc5`](https://github.com/mastra-ai/mastra/commit/180bdc5398e253ffae7eaff6330409d7f5254f8b), [`45a1ab7`](https://github.com/mastra-ai/mastra/commit/45a1ab7f300637be9d5b953d82b58f77b64c1b56)]:
|
|
8
|
+
- @mastra/core@1.76.0-alpha.8
|
|
9
|
+
- @mastra/libsql@1.26.0-alpha.3
|
|
10
|
+
- @mastra/pg@1.31.0-alpha.4
|
|
11
|
+
- @mastra/code-sdk@1.12.0-alpha.8
|
|
12
|
+
|
|
13
|
+
## 0.46.0-alpha.7
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- Compact rendering is now the only display mode in Mastra Code. The quiet mode toggle in `/settings` and the first-run "Try compact quiet mode?" prompt are gone. Tool calls, notifications and background completions always render as compact rows. Press Ctrl+E to expand them. ([#26576](https://github.com/mastra-ai/mastra/pull/26576))
|
|
18
|
+
|
|
19
|
+
The "Quiet mode tool preview lines" setting is now called **Preview lines** and is always shown in `/settings`. Your existing value carries over automatically. The old settings keys stay in your existing `settings.json`, so Mastra Code instances that are still running an older version when you upgrade keep their current display settings.
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies [[`20f7f87`](https://github.com/mastra-ai/mastra/commit/20f7f878953cb0965962d1e83a463be5e4ba2c26), [`d0db35e`](https://github.com/mastra-ai/mastra/commit/d0db35e00be93f1339525188c102f73dea5867d8), [`578d2c4`](https://github.com/mastra-ai/mastra/commit/578d2c41fc83b13efd88165ff0105904434a6db4), [`34844fc`](https://github.com/mastra-ai/mastra/commit/34844fcc7aeff1ae867c0aeedcd990caa520c418), [`2bf5b78`](https://github.com/mastra-ai/mastra/commit/2bf5b78761af6606b42ae2e085722eb50cdbc839), [`41bf075`](https://github.com/mastra-ai/mastra/commit/41bf0759e486ff7eb078ff9d83d532e086a16039), [`73e6b7c`](https://github.com/mastra-ai/mastra/commit/73e6b7c18ee19fbb31c6f9bad4ce23c16212876b), [`e2d49cd`](https://github.com/mastra-ai/mastra/commit/e2d49cd482b1eb3d3e5fb9828dac457ce8b02232), [`85636a2`](https://github.com/mastra-ai/mastra/commit/85636a2341aca229feb83c72b730a0d50f2f1753), [`85636a2`](https://github.com/mastra-ai/mastra/commit/85636a2341aca229feb83c72b730a0d50f2f1753)]:
|
|
24
|
+
- @mastra/core@1.76.0-alpha.7
|
|
25
|
+
- @mastra/code-sdk@1.12.0-alpha.7
|
|
26
|
+
- @mastra/observability@1.19.0-alpha.4
|
|
27
|
+
- @mastra/mcp@2.3.0-alpha.1
|
|
28
|
+
|
|
3
29
|
## 0.46.0-alpha.6
|
|
4
30
|
|
|
5
31
|
### 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-BEov2a70.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);
|
|
@@ -234,7 +234,7 @@ async function runUpdateCommand({ args = [], output = process.stdout, errorOutpu
|
|
|
234
234
|
//#endregion
|
|
235
235
|
//#region src/version.ts
|
|
236
236
|
function getCurrentVersion() {
|
|
237
|
-
return "0.46.0-alpha.
|
|
237
|
+
return "0.46.0-alpha.8";
|
|
238
238
|
}
|
|
239
239
|
//#endregion
|
|
240
240
|
//#region src/main.ts
|
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { C as restoreTerminalForeground, T as TUI_CO_AUTHOR, _ as applyThemeMode, a as formatUpToDate, g as detectTerminalTheme, i as formatRegistryError, o as formatUpdateHeader, r as formatInstallingLabel, s as formatUpdateOutcome, t as MastraTUI } from "./tui-
|
|
2
|
+
import { C as restoreTerminalForeground, T as TUI_CO_AUTHOR, _ as applyThemeMode, a as formatUpToDate, g as detectTerminalTheme, i as formatRegistryError, o as formatUpdateHeader, r as formatInstallingLabel, s as formatUpdateOutcome, t as MastraTUI } from "./tui-BqcIy2hd.js";
|
|
3
3
|
import { createMastraCode } from "@mastra/code-sdk";
|
|
4
4
|
import fs from "fs";
|
|
5
5
|
import { createMastraCodeAnalytics } from "@mastra/code-sdk/analytics";
|
|
@@ -233,7 +233,7 @@ async function runUpdateCommand({ args = [], output = process.stdout, errorOutpu
|
|
|
233
233
|
//#endregion
|
|
234
234
|
//#region src/version.ts
|
|
235
235
|
function getCurrentVersion() {
|
|
236
|
-
return "0.46.0-alpha.
|
|
236
|
+
return "0.46.0-alpha.8";
|
|
237
237
|
}
|
|
238
238
|
//#endregion
|
|
239
239
|
//#region src/main.ts
|
package/dist/docs/SKILL.md
CHANGED
|
@@ -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;AAsKtD,wBAAsB,qBAAqB,CAAC,GAAG,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CAiInF"}
|
|
@@ -21,11 +21,9 @@ export declare class AssistantMessageComponent extends Container {
|
|
|
21
21
|
private terminalStatus?;
|
|
22
22
|
private renderNodes;
|
|
23
23
|
private renderOrder;
|
|
24
|
-
private quiet;
|
|
25
24
|
constructor(message?: MastraDBMessage, hideThinkingBlock?: boolean, markdownTheme?: MarkdownTheme);
|
|
26
25
|
invalidate(): void;
|
|
27
26
|
setHideThinkingBlock(hide: boolean): void;
|
|
28
|
-
setQuietModeDisplay(mode: 'quiet' | 'normal'): void;
|
|
29
27
|
getChatSpacingKind(): ChatSpacingKind | undefined;
|
|
30
28
|
updateContent(message: MastraDBMessage): void;
|
|
31
29
|
updateRenderParts(sourceParts: AssistantSourcePart[], terminalStatus?: AssistantTerminalStatus): void;
|
|
@@ -34,11 +32,6 @@ export declare class AssistantMessageComponent extends Container {
|
|
|
34
32
|
/** Release every child and source reference when registry ownership is removed. */
|
|
35
33
|
disposeRenderState(): void;
|
|
36
34
|
private reconcileChildren;
|
|
37
|
-
/**
|
|
38
|
-
* Quiet mode leaves "Thinking..." placeholders out of the chat entirely; the live one is shown in
|
|
39
|
-
* the status line above the input instead, so hiding it never shifts the layout. Works from the
|
|
40
|
-
* owned render nodes so it still applies after finalizeRenderState() has released the source parts.
|
|
41
|
-
*/
|
|
42
35
|
private syncVisibleChildren;
|
|
43
36
|
private createRenderNode;
|
|
44
37
|
private buildRenderNodes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assistant-message.d.ts","sourceRoot":"","sources":["../../../src/tui/components/assistant-message.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAA0B,MAAM,wBAAwB,CAAC;AAC3E,OAAO,KAAK,EAAa,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAKrE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,GAAG,UAAU,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,uBAAuB;IACtC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAqBD,qBAAa,yBAA0B,SAAQ,SAAS;IACtD,OAAO,CAAC,gBAAgB,CAAY;IACpC,OAAO,CAAC,iBAAiB,CAAU;IACnC,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,WAAW,CAA6B;IAChD,OAAO,CAAC,cAAc,CAAC,CAA0B;IACjD,OAAO,CAAC,WAAW,CAAsC;IACzD,OAAO,CAAC,WAAW,CAAgB;
|
|
1
|
+
{"version":3,"file":"assistant-message.d.ts","sourceRoot":"","sources":["../../../src/tui/components/assistant-message.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAA0B,MAAM,wBAAwB,CAAC;AAC3E,OAAO,KAAK,EAAa,aAAa,EA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ChatSpacingKind = '
|
|
2
|
+
export type ChatSpacingKind = 'compact-tool' | 'shell-tool' | 'full-tool' | 'assistant-message' | 'user-message' | 'plan' | 'task' | 'system' | 'other';
|
|
3
3
|
/**
|
|
4
|
-
* Group key of a
|
|
4
|
+
* Group key of a compact shell call whose directory isn't known yet (its arguments are still
|
|
5
5
|
* streaming). It joins the shell box above it rather than opening a box that disappears again
|
|
6
6
|
* once the directory arrives.
|
|
7
7
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-spacing.d.ts","sourceRoot":"","sources":["../../../src/tui/components/chat-spacing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD,MAAM,MAAM,eAAe,GACvB,
|
|
1
|
+
{"version":3,"file":"chat-spacing.d.ts","sourceRoot":"","sources":["../../../src/tui/components/chat-spacing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD,MAAM,MAAM,eAAe,GACvB,cAAc,GACd,YAAY,GACZ,WAAW,GACX,mBAAmB,GACnB,cAAc,GACd,MAAM,GACN,MAAM,GACN,QAAQ,GACR,OAAO,CAAC;AAEZ;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,gBAAoB,CAAC;AAEzD,MAAM,WAAW,sBAAsB;IACrC,kBAAkB,IAAI,eAAe,GAAG,SAAS,CAAC;CACnD;AAOD,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,GAAG,eAAe,GAAG,SAAS,CAGhG;AAED,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,SAAS,GAAG,SAAS,EAC3B,IAAI,EAAE,SAAS,GAAG,SAAS,EAC3B,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,EACjC,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,GAChC,MAAM,CAcR;AAeD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,eAAe,GAAG,SAAS,EAAE,IAAI,EAAE,eAAe,GAAG,SAAS,GAAG,MAAM,CAM9G"}
|
|
@@ -11,7 +11,7 @@ export declare class IdleCounterComponent extends Container {
|
|
|
11
11
|
private activity;
|
|
12
12
|
constructor();
|
|
13
13
|
setTimingState(timingState: Pick<TUIState, 'lastAgentRunDurationMs' | 'lastAgentRunEndedAt' | 'lastAgentRunEndReason'> | undefined, now?: number): void;
|
|
14
|
-
/**
|
|
14
|
+
/** Live thinking state; status-line.ts swaps the Working row's label while it is set. */
|
|
15
15
|
setThinking(thinking: boolean): void;
|
|
16
16
|
isThinking(): boolean;
|
|
17
17
|
/** The Working row (built in status-line.ts) shares this slot; empty when idle. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"idle-counter.d.ts","sourceRoot":"","sources":["../../../src/tui/components/idle-counter.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAyB,MAAM,wBAAwB,CAAC;AAC1E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAI7D,qBAAa,oBAAqB,SAAQ,SAAS;IACjD,OAAO,CAAC,WAAW,CAAC,CAA6F;IACjH,OAAO,CAAC,SAAS,CAAO;IACxB,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,QAAQ,CAAM;;IAQtB,cAAc,CACZ,WAAW,EAAE,IAAI,CAAC,QAAQ,EAAE,wBAAwB,GAAG,qBAAqB,GAAG,uBAAuB,CAAC,GAAG,SAAS,EACnH,GAAG,SAAa,GACf,IAAI;IAKP,
|
|
1
|
+
{"version":3,"file":"idle-counter.d.ts","sourceRoot":"","sources":["../../../src/tui/components/idle-counter.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAyB,MAAM,wBAAwB,CAAC;AAC1E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAI7D,qBAAa,oBAAqB,SAAQ,SAAS;IACjD,OAAO,CAAC,WAAW,CAAC,CAA6F;IACjH,OAAO,CAAC,SAAS,CAAO;IACxB,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,QAAQ,CAAM;;IAQtB,cAAc,CACZ,WAAW,EAAE,IAAI,CAAC,QAAQ,EAAE,wBAAwB,GAAG,qBAAqB,GAAG,uBAAuB,CAAC,GAAG,SAAS,EACnH,GAAG,SAAa,GACf,IAAI;IAKP,yFAAyF;IACzF,WAAW,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI;IAIpC,UAAU,IAAI,OAAO;IAIrB,mFAAmF;IACnF,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAI/B,MAAM,CAAC,GAAG,SAAa,GAAG,IAAI;IAW9B,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE;CAMhC;AAED,KAAK,qBAAqB,GAAG,IAAI,CAAC,QAAQ,EAAE,wBAAwB,GAAG,qBAAqB,GAAG,uBAAuB,CAAC,CAAC;AAExH,wBAAgB,8BAA8B,CAC5C,KAAK,EAAE,qBAAqB,EAC5B,GAAG,SAAa,GACf;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAQ1C;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,qBAAqB,EAAE,GAAG,SAAa,GAAG,MAAM,CAM7F"}
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
import { Container } from '@earendil-works/pi-tui';
|
|
2
2
|
import type { ChatSpacingKind } from './chat-spacing.js';
|
|
3
|
-
import type { QuietToolDisplayMode } from './tool-execution-interface.js';
|
|
4
3
|
export interface NotificationSummaryOptions {
|
|
5
4
|
message: string;
|
|
6
5
|
pending: number;
|
|
7
6
|
bySource: Record<string, number>;
|
|
8
|
-
quietDisplayMode?: QuietToolDisplayMode;
|
|
9
7
|
}
|
|
10
8
|
export declare class NotificationSummaryComponent extends Container {
|
|
11
9
|
private readonly options;
|
|
12
|
-
private quietDisplayMode;
|
|
13
10
|
constructor(options: NotificationSummaryOptions);
|
|
14
|
-
setQuietModeDisplay(mode: QuietToolDisplayMode): void;
|
|
15
11
|
private rebuild;
|
|
16
12
|
getChatSpacingKind(): ChatSpacingKind;
|
|
17
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification-summary.d.ts","sourceRoot":"","sources":["../../../src/tui/components/notification-summary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAQ,MAAM,wBAAwB,CAAC;AAGzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"notification-summary.d.ts","sourceRoot":"","sources":["../../../src/tui/components/notification-summary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAQ,MAAM,wBAAwB,CAAC;AAGzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC;AAED,qBAAa,4BAA6B,SAAQ,SAAS;IACzD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA6B;gBAEzC,OAAO,EAAE,0BAA0B;IAM/C,OAAO,CAAC,OAAO;IAkBf,kBAAkB,IAAI,eAAe;CAGtC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { ChatSpacingKind } from './chat-spacing.js';
|
|
2
|
-
import type { QuietToolDisplayMode } from './tool-execution-interface.js';
|
|
3
2
|
import { WidthAwareContainer } from './width-aware-container.js';
|
|
4
3
|
export interface NotificationOptions {
|
|
5
4
|
message: string;
|
|
@@ -7,8 +6,7 @@ export interface NotificationOptions {
|
|
|
7
6
|
kind?: string;
|
|
8
7
|
priority?: string;
|
|
9
8
|
status?: string;
|
|
10
|
-
|
|
11
|
-
quietPreviewLineLimit?: number;
|
|
9
|
+
previewLineLimit?: number;
|
|
12
10
|
backgroundCompletion?: {
|
|
13
11
|
taskId: string;
|
|
14
12
|
toolName?: string;
|
|
@@ -18,12 +16,10 @@ export interface NotificationOptions {
|
|
|
18
16
|
}
|
|
19
17
|
export declare class NotificationComponent extends WidthAwareContainer {
|
|
20
18
|
private readonly options;
|
|
21
|
-
private
|
|
22
|
-
private quietPreviewLineLimit;
|
|
19
|
+
private previewLineLimit;
|
|
23
20
|
private expanded;
|
|
24
21
|
constructor(options: NotificationOptions);
|
|
25
|
-
|
|
26
|
-
setQuietPreviewLineLimit(limit: number): void;
|
|
22
|
+
setPreviewLineLimit(limit: number): void;
|
|
27
23
|
setExpanded(expanded: boolean): void;
|
|
28
24
|
protected rebuildForWidth(width: number): void;
|
|
29
25
|
private limitMessageLines;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../../src/tui/components/notification.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,OAAO,
|
|
1
|
+
{"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../../src/tui/components/notification.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEjE,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oBAAoB,CAAC,EAAE;QACrB,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB,CAAC;CACH;AA+DD,qBAAa,qBAAsB,SAAQ,mBAAmB;IAC5D,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAsB;IAC9C,OAAO,CAAC,gBAAgB,CAAS;IACjC,OAAO,CAAC,QAAQ,CAAS;gBAEb,OAAO,EAAE,mBAAmB;IAMxC,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAOxC,WAAW,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI;IAKpC,SAAS,CAAC,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IA4D9C,OAAO,CAAC,iBAAiB;IAWzB,kBAAkB,IAAI,eAAe;CAGtC"}
|
|
@@ -19,20 +19,6 @@ export type OMMarkerData = {
|
|
|
19
19
|
error: string;
|
|
20
20
|
tokensAttempted?: number;
|
|
21
21
|
operationType?: 'observation' | 'reflection';
|
|
22
|
-
} | {
|
|
23
|
-
type: 'om_buffering_start';
|
|
24
|
-
operationType: 'observation' | 'reflection';
|
|
25
|
-
tokensToBuffer: number;
|
|
26
|
-
} | {
|
|
27
|
-
type: 'om_buffering_end';
|
|
28
|
-
operationType: 'observation' | 'reflection';
|
|
29
|
-
tokensBuffered: number;
|
|
30
|
-
bufferedTokens: number;
|
|
31
|
-
observations?: string;
|
|
32
|
-
} | {
|
|
33
|
-
type: 'om_buffering_failed';
|
|
34
|
-
operationType: 'observation' | 'reflection';
|
|
35
|
-
error: string;
|
|
36
22
|
} | {
|
|
37
23
|
type: 'om_activation';
|
|
38
24
|
operationType: 'observation' | 'reflection';
|
|
@@ -44,10 +30,6 @@ export type OMMarkerData = {
|
|
|
44
30
|
type: 'om_activation_provider_change';
|
|
45
31
|
previousModel: string;
|
|
46
32
|
currentModel: string;
|
|
47
|
-
} | {
|
|
48
|
-
type: 'om_thread_title_updated';
|
|
49
|
-
oldTitle?: string;
|
|
50
|
-
newTitle: string;
|
|
51
33
|
};
|
|
52
34
|
/**
|
|
53
35
|
* Renders an inline OM observation marker in the chat history.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"om-marker.d.ts","sourceRoot":"","sources":["../../../src/tui/components/om-marker.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAQ,MAAM,wBAAwB,CAAC;AAEzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAyBzD,MAAM,MAAM,YAAY,GACpB;IACE,IAAI,EAAE,sBAAsB,CAAC;IAC7B,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,aAAa,GAAG,YAAY,CAAC;CAC9C,GACD;IACE,IAAI,EAAE,oBAAoB,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,aAAa,GAAG,YAAY,CAAC;CAC9C,GACD;IACE,IAAI,EAAE,uBAAuB,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,aAAa,GAAG,YAAY,CAAC;CAC9C,GACD;IACE,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"om-marker.d.ts","sourceRoot":"","sources":["../../../src/tui/components/om-marker.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAQ,MAAM,wBAAwB,CAAC;AAEzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAyBzD,MAAM,MAAM,YAAY,GACpB;IACE,IAAI,EAAE,sBAAsB,CAAC;IAC7B,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,aAAa,GAAG,YAAY,CAAC;CAC9C,GACD;IACE,IAAI,EAAE,oBAAoB,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,aAAa,GAAG,YAAY,CAAC;CAC9C,GACD;IACE,IAAI,EAAE,uBAAuB,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,aAAa,GAAG,YAAY,CAAC;CAC9C,GACD;IACE,IAAI,EAAE,eAAe,CAAC;IACtB,aAAa,EAAE,aAAa,GAAG,YAAY,CAAC;IAC5C,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,GACD;IACE,IAAI,EAAE,+BAA+B,CAAC;IACtC,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEN;;;GAGG;AACH,qBAAa,iBAAkB,SAAQ,SAAS;IAC9C,OAAO,CAAC,SAAS,CAAO;gBAEZ,IAAI,EAAE,YAAY;IAM9B;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,YAAY,GAAG,IAAI;IAIhC,kBAAkB,IAAI,eAAe;CAGtC"}
|
|
@@ -7,24 +7,20 @@
|
|
|
7
7
|
* schedule has exited.
|
|
8
8
|
*/
|
|
9
9
|
import type { ChatSpacingKind } from './chat-spacing.js';
|
|
10
|
-
import type { QuietToolDisplayMode } from './tool-execution-interface.js';
|
|
11
10
|
import { WidthAwareContainer } from './width-aware-container.js';
|
|
12
11
|
export interface ScheduleFireOptions {
|
|
13
12
|
prompt: string;
|
|
14
13
|
attributes: Record<string, unknown>;
|
|
15
|
-
|
|
16
|
-
quietPreviewLineLimit?: number;
|
|
14
|
+
previewLineLimit?: number;
|
|
17
15
|
}
|
|
18
16
|
export declare class ScheduleFireComponent extends WidthAwareContainer {
|
|
19
17
|
private readonly promptLines;
|
|
20
18
|
private readonly attributes;
|
|
21
|
-
private
|
|
22
|
-
private quietPreviewLineLimit;
|
|
19
|
+
private previewLineLimit;
|
|
23
20
|
private expanded;
|
|
24
21
|
constructor(options: ScheduleFireOptions);
|
|
25
22
|
setExpanded(expanded: boolean): void;
|
|
26
|
-
|
|
27
|
-
setQuietPreviewLineLimit(limit: number): void;
|
|
23
|
+
setPreviewLineLimit(limit: number): void;
|
|
28
24
|
getChatSpacingKind(): ChatSpacingKind;
|
|
29
25
|
protected rebuildForWidth(): void;
|
|
30
26
|
private header;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedule-fire.d.ts","sourceRoot":"","sources":["../../../src/tui/components/schedule-fire.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,
|
|
1
|
+
{"version":3,"file":"schedule-fire.d.ts","sourceRoot":"","sources":["../../../src/tui/components/schedule-fire.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAIjE,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAYD,qBAAa,qBAAsB,SAAQ,mBAAmB;IAC5D,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAW;IACvC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA0B;IACrD,OAAO,CAAC,gBAAgB,CAAS;IACjC,OAAO,CAAC,QAAQ,CAAS;gBAEb,OAAO,EAAE,mBAAmB;IAOxC,WAAW,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI;IAMpC,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAOxC,kBAAkB,IAAI,eAAe;IAIrC,SAAS,CAAC,eAAe,IAAI,IAAI;IAmBjC,OAAO,CAAC,MAAM;CAcf"}
|
|
@@ -15,8 +15,7 @@ export interface SettingsConfig {
|
|
|
15
15
|
thinkingLevel: string;
|
|
16
16
|
currentModelId: string;
|
|
17
17
|
escapeAsCancel: boolean;
|
|
18
|
-
|
|
19
|
-
quietModeMaxToolPreviewLines: number;
|
|
18
|
+
previewLines: number;
|
|
20
19
|
storageBackend: StorageBackend;
|
|
21
20
|
pgConnectionString: string;
|
|
22
21
|
libsqlUrl: string;
|
|
@@ -34,8 +33,7 @@ export interface SettingsCallbacks {
|
|
|
34
33
|
onYoloChange: (enabled: boolean) => void;
|
|
35
34
|
onThinkingLevelChange: (level: string) => void;
|
|
36
35
|
onEscapeAsCancelChange: (enabled: boolean) => void;
|
|
37
|
-
|
|
38
|
-
onQuietModeMaxToolPreviewLinesChange: (lines: number) => void;
|
|
36
|
+
onPreviewLinesChange: (lines: number) => void;
|
|
39
37
|
onStorageBackendChange: (backend: StorageBackend, connectionUrl?: string) => void;
|
|
40
38
|
onExperimentalGithubSignalsChange: (enabled: boolean) => boolean | void | Promise<boolean | void>;
|
|
41
39
|
onExperimentalCrossAgentSignalsChange: (enabled: boolean) => boolean | void | Promise<boolean | 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,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AAC,KAAK,EAAE,OAAO,EAEzB;gBAEW,MAAM,EAAE,cAAc,EAAE,SAAS,EAAE,iBAAiB;IAqYhE,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;CAGhC"}
|
|
@@ -18,7 +18,7 @@ export declare function statusDot(status: 'running' | 'done' | 'error'): string;
|
|
|
18
18
|
/**
|
|
19
19
|
* Tool-style block: a "• title" row (further title rows indented under it). With output, the title rows sit
|
|
20
20
|
* on a lighter band by default; uniform blocks use the output shade throughout. Output lines align under
|
|
21
|
-
* the title text. Without output it's just the title rows, so runs of
|
|
21
|
+
* the title text. Without output it's just the title rows, so runs of compact calls stay one row each.
|
|
22
22
|
*/
|
|
23
23
|
export declare function toolBlock(dot: string, title: string | string[], output: string[], width: number, surface?: 'split' | 'uniform'): string[];
|
|
24
24
|
/** Left-bar card for inline prompts: accent = waiting on you, warning = approval, border = answered. */
|
|
@@ -3,19 +3,17 @@ import { WidthAwareContainer } from './width-aware-container.js';
|
|
|
3
3
|
export declare function formatTaskProgressLine(task: TaskItemInput, indent?: string): string;
|
|
4
4
|
export declare class TaskProgressComponent extends WidthAwareContainer {
|
|
5
5
|
private tasks;
|
|
6
|
-
private quietMode;
|
|
7
6
|
constructor();
|
|
8
7
|
/**
|
|
9
8
|
* Replace the entire task list and re-render.
|
|
10
9
|
*/
|
|
11
10
|
updateTasks(tasks: TaskItemInput[]): void;
|
|
12
|
-
setQuietMode(enabled: boolean): void;
|
|
13
11
|
/**
|
|
14
12
|
* Get the current task list (read-only copy).
|
|
15
13
|
*/
|
|
16
14
|
getTasks(): TaskItemInput[];
|
|
17
15
|
protected rebuildForWidth(width: number): void;
|
|
18
|
-
private
|
|
19
|
-
private
|
|
16
|
+
private formatTaskLines;
|
|
17
|
+
private formatTaskItem;
|
|
20
18
|
}
|
|
21
19
|
//# sourceMappingURL=task-progress.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-progress.d.ts","sourceRoot":"","sources":["../../../src/tui/components/task-progress.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAI1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEjE,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,aAAa,EAAE,MAAM,SAAS,GAAG,MAAM,CAkBnF;AAED,qBAAa,qBAAsB,SAAQ,mBAAmB;IAC5D,OAAO,CAAC,KAAK,CAAuB
|
|
1
|
+
{"version":3,"file":"task-progress.d.ts","sourceRoot":"","sources":["../../../src/tui/components/task-progress.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAI1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEjE,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,aAAa,EAAE,MAAM,SAAS,GAAG,MAAM,CAkBnF;AAED,qBAAa,qBAAsB,SAAQ,mBAAmB;IAC5D,OAAO,CAAC,KAAK,CAAuB;;IAOpC;;OAEG;IACH,WAAW,CAAC,KAAK,EAAE,aAAa,EAAE,GAAG,IAAI;IAKzC;;OAEG;IACH,QAAQ,IAAI,aAAa,EAAE;IAI3B,SAAS,CAAC,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAiB9C,OAAO,CAAC,eAAe;IA6BvB,OAAO,CAAC,cAAc;CAmBvB"}
|
|
@@ -4,19 +4,24 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import type { TUI } from '@earendil-works/pi-tui';
|
|
6
6
|
import type { ChatSpacingKind } from './chat-spacing.js';
|
|
7
|
-
import type { CommandExitRecord, CompactToolLabelColor, IToolExecutionComponent,
|
|
7
|
+
import type { CommandExitRecord, CompactToolLabelColor, IToolExecutionComponent, ToolResult } from './tool-execution-interface.js';
|
|
8
8
|
import { WidthAwareContainer } from './width-aware-container.js';
|
|
9
9
|
export type { ToolResult };
|
|
10
10
|
export interface ToolExecutionOptions {
|
|
11
11
|
showImages?: boolean;
|
|
12
12
|
autoCollapse?: boolean;
|
|
13
13
|
collapsedByDefault?: boolean;
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
/** Render the full bordered box instead of a compact row. Only live task-mutation tools use this. */
|
|
15
|
+
fullRender?: boolean;
|
|
16
|
+
previewLineLimit?: number;
|
|
16
17
|
compactToolModeColor?: string;
|
|
17
18
|
/** Where shell commands run (the git root, not necessarily where the TUI was launched). */
|
|
18
19
|
projectRoot?: string;
|
|
19
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* Enhanced tool execution component with collapsible sections
|
|
23
|
+
*/
|
|
24
|
+
/** Shell output lines shown before the rest is folded behind ctrl+e. */
|
|
20
25
|
export declare class ToolExecutionComponentEnhanced extends WidthAwareContainer implements IToolExecutionComponent {
|
|
21
26
|
private contentBox;
|
|
22
27
|
private toolName;
|
|
@@ -37,15 +42,15 @@ export declare class ToolExecutionComponentEnhanced extends WidthAwareContainer
|
|
|
37
42
|
/** The sandbox's exit record for a shell call; more reliable than parsing the result text. */
|
|
38
43
|
private commandExit?;
|
|
39
44
|
private liveUpdatesStopped;
|
|
40
|
-
private
|
|
41
|
-
private
|
|
42
|
-
private
|
|
43
|
-
private
|
|
45
|
+
private shellTicker?;
|
|
46
|
+
private shellGroupWidth?;
|
|
47
|
+
private shellGroupPreview?;
|
|
48
|
+
private shellHeld;
|
|
44
49
|
/** Rows the shell box preview has used so far; it never shrinks, so rows below don't jump. */
|
|
45
|
-
private
|
|
46
|
-
private
|
|
47
|
-
private
|
|
48
|
-
private
|
|
50
|
+
private shellPreviewRowFloor;
|
|
51
|
+
private readonly fullRender;
|
|
52
|
+
private previewLineLimit;
|
|
53
|
+
private previewRowFloor;
|
|
49
54
|
private compactToolContinuation;
|
|
50
55
|
private compactToolHasFollowingContinuation;
|
|
51
56
|
private compactToolPreviousSummary;
|
|
@@ -68,8 +73,7 @@ export declare class ToolExecutionComponentEnhanced extends WidthAwareContainer
|
|
|
68
73
|
*/
|
|
69
74
|
appendStreamingOutput(output: string): void;
|
|
70
75
|
setExpanded(expanded: boolean): void;
|
|
71
|
-
|
|
72
|
-
setQuietPreviewLineLimit(limit: number): void;
|
|
76
|
+
setPreviewLineLimit(limit: number): void;
|
|
73
77
|
getToolCall(): {
|
|
74
78
|
toolName: string;
|
|
75
79
|
args: unknown;
|
|
@@ -89,7 +93,7 @@ export declare class ToolExecutionComponentEnhanced extends WidthAwareContainer
|
|
|
89
93
|
* moves it, relative to `cwd` unless the `cd` path is absolute or starts at home.
|
|
90
94
|
*/
|
|
91
95
|
private getShellDirectory;
|
|
92
|
-
/** The directory a
|
|
96
|
+
/** The directory a compact shell group shows in its `$ <path>` header, resolved the way the sandbox resolves it. */
|
|
93
97
|
private getShellHeaderPath;
|
|
94
98
|
/**
|
|
95
99
|
* While args stream, the directory is unknown until a complete `cd <dir> &&` prefix arrives. A
|
|
@@ -101,28 +105,28 @@ export declare class ToolExecutionComponentEnhanced extends WidthAwareContainer
|
|
|
101
105
|
* that box, then moving it to its own directory's box, would make the chat jump. Rendered once
|
|
102
106
|
* the directory is known, the row only ever adds lines.
|
|
103
107
|
*/
|
|
104
|
-
|
|
108
|
+
setShellHeld(held: boolean): void;
|
|
105
109
|
private getShellDescription;
|
|
106
110
|
/**
|
|
107
|
-
*
|
|
111
|
+
* Consecutive shell calls in one directory share a box: an optional preview of the
|
|
108
112
|
* latest output, a `$ <path>` header, then one status row per call. Expanding shows the full box.
|
|
109
113
|
*/
|
|
110
|
-
private
|
|
114
|
+
private isCompactShell;
|
|
111
115
|
/**
|
|
112
|
-
* The last `
|
|
116
|
+
* The last `previewLineLimit` lines this call printed, for its box's shared preview; `[]` when
|
|
113
117
|
* it printed nothing and `undefined` when previews are off.
|
|
114
118
|
*/
|
|
115
|
-
|
|
119
|
+
getShellPreviewLines(): string[] | undefined;
|
|
116
120
|
/** Set on the first call of a shell box, which draws the box's preview above its header. */
|
|
117
|
-
|
|
121
|
+
setShellGroupPreview(lines: string[] | undefined): void;
|
|
118
122
|
/**
|
|
119
|
-
* Text for a grouped
|
|
123
|
+
* Text for a grouped compact shell row: the description; while it may still stream in, `...` or how
|
|
120
124
|
* much of the command has arrived (some models write a long command first); or the command's
|
|
121
125
|
* first line when the call has none (e.g. it was rejected for a missing description).
|
|
122
126
|
* Muted text is not the description, and truncates rather than widening the box.
|
|
123
127
|
*/
|
|
124
|
-
private
|
|
125
|
-
|
|
128
|
+
private getShellRowText;
|
|
129
|
+
hasStreamingPreview(): boolean;
|
|
126
130
|
setCompactToolContinuation(continuation: boolean, previousSummary?: string): void;
|
|
127
131
|
setCompactToolHasFollowingContinuation(hasFollowingContinuation: boolean): void;
|
|
128
132
|
isComplete(): boolean;
|
|
@@ -131,8 +135,6 @@ export declare class ToolExecutionComponentEnhanced extends WidthAwareContainer
|
|
|
131
135
|
private updateBgColor;
|
|
132
136
|
private updateTrailingSpacer;
|
|
133
137
|
private getCollapsedLineLimit;
|
|
134
|
-
private shouldShowLeadingPadding;
|
|
135
|
-
private addLeadingPadding;
|
|
136
138
|
/**
|
|
137
139
|
* Full clear-and-rebuild. Called when:
|
|
138
140
|
* - args change (updateArgs)
|
|
@@ -142,17 +144,17 @@ export declare class ToolExecutionComponentEnhanced extends WidthAwareContainer
|
|
|
142
144
|
*/
|
|
143
145
|
protected rebuildForWidth(_width: number): void;
|
|
144
146
|
private renderCompactTool;
|
|
145
|
-
private
|
|
146
|
-
private
|
|
147
|
-
private
|
|
148
|
-
private
|
|
149
|
-
private
|
|
150
|
-
private
|
|
151
|
-
private
|
|
152
|
-
private
|
|
153
|
-
private
|
|
154
|
-
private
|
|
155
|
-
private
|
|
147
|
+
private getPreviewLines;
|
|
148
|
+
private getCodePreviewLines;
|
|
149
|
+
private isCodePreviewTool;
|
|
150
|
+
private getPreviewCapLine;
|
|
151
|
+
private getPreviewSpacerLine;
|
|
152
|
+
private shouldClosePreview;
|
|
153
|
+
private formatActivePreview;
|
|
154
|
+
private highlightCodePreview;
|
|
155
|
+
private highlightShellCommandToken;
|
|
156
|
+
private highlightShellCommandLine;
|
|
157
|
+
private wrapShellCommand;
|
|
156
158
|
private wrapPreviewLines;
|
|
157
159
|
private wrapAgentSignalMessageLines;
|
|
158
160
|
private getCompactToolSummaryLines;
|
|
@@ -161,28 +163,28 @@ export declare class ToolExecutionComponentEnhanced extends WidthAwareContainer
|
|
|
161
163
|
private getCompactToolAccentColor;
|
|
162
164
|
private getCompactToolArgsBg;
|
|
163
165
|
private getCompactToolArgsColor;
|
|
164
|
-
private
|
|
165
|
-
private
|
|
166
|
+
private getToolRailColor;
|
|
167
|
+
private getToolCircleColor;
|
|
166
168
|
getCompactToolLabelColor(): CompactToolLabelColor;
|
|
167
169
|
setCompactToolGroupLabelColor(color: CompactToolLabelColor | undefined): void;
|
|
168
170
|
getOwnCompactToolLabelColor(): CompactToolLabelColor;
|
|
169
171
|
private isErrorResult;
|
|
170
|
-
private
|
|
171
|
-
private
|
|
172
|
+
private getActivePreview;
|
|
173
|
+
private formatEditPreview;
|
|
172
174
|
private getLatestCodePreview;
|
|
173
|
-
private
|
|
174
|
-
private
|
|
175
|
-
private
|
|
176
|
-
private
|
|
177
|
-
private
|
|
175
|
+
private formatErrorPreview;
|
|
176
|
+
private formatViewPreview;
|
|
177
|
+
private formatListPreview;
|
|
178
|
+
private formatWebSearchPreview;
|
|
179
|
+
private formatBrowserPreview;
|
|
178
180
|
private unwrapBrowserToolOutput;
|
|
179
181
|
private formatBrowserEvaluateResult;
|
|
180
182
|
private formatCompactBrowserValue;
|
|
181
|
-
private
|
|
182
|
-
private
|
|
183
|
-
private
|
|
183
|
+
private formatProcessOutputPreview;
|
|
184
|
+
private formatFileStatPreview;
|
|
185
|
+
private formatGenericResultPreview;
|
|
184
186
|
private formatCompactJsonResult;
|
|
185
|
-
private
|
|
187
|
+
private formatSkillPreview;
|
|
186
188
|
private getListResultEntries;
|
|
187
189
|
private looksLikeViewOutput;
|
|
188
190
|
private stripAnsi;
|
|
@@ -209,13 +211,12 @@ export declare class ToolExecutionComponentEnhanced extends WidthAwareContainer
|
|
|
209
211
|
private getSearchResultCount;
|
|
210
212
|
private getFirstStringArg;
|
|
211
213
|
private getFirstLineArg;
|
|
212
|
-
private renderViewToolEnhanced;
|
|
213
214
|
private renderBashToolEnhanced;
|
|
214
215
|
/**
|
|
215
|
-
* One call's slice of a shared
|
|
216
|
+
* One call's slice of a shared compact shell box. The first call in a run opens the box with a
|
|
216
217
|
* `$ <path>` header, a call in a new directory adds another header, and the last call closes it.
|
|
217
218
|
*/
|
|
218
|
-
private
|
|
219
|
+
private renderShellGroupRow;
|
|
219
220
|
/**
|
|
220
221
|
* Returns the line explaining a failed shell call, or `undefined` when it succeeded. Failure comes
|
|
221
222
|
* from the sandbox's exit record, an error result, or ordinary output ending in a nonzero
|
|
@@ -223,25 +224,13 @@ export declare class ToolExecutionComponentEnhanced extends WidthAwareContainer
|
|
|
223
224
|
*/
|
|
224
225
|
private getShellFailureLine;
|
|
225
226
|
/** Keeps a running grouped row's spinner and seconds counter moving between output events. */
|
|
226
|
-
private
|
|
227
|
+
private syncShellTicker;
|
|
227
228
|
/** Content width this call's rows need; reconciliation gives the whole group the widest one. */
|
|
228
|
-
|
|
229
|
-
|
|
229
|
+
getShellNaturalWidth(): number | undefined;
|
|
230
|
+
setShellGroupWidth(width: number | undefined): void;
|
|
230
231
|
/** Called when the agent run ends without this tool finishing, so nothing keeps animating. */
|
|
231
232
|
stopLiveUpdates(): void;
|
|
232
|
-
private renderProcessToolEnhanced;
|
|
233
|
-
private renderEditToolEnhanced;
|
|
234
|
-
private parseLSPDiagnostics;
|
|
235
|
-
private generateDiffLines;
|
|
236
|
-
private renderWriteToolEnhanced;
|
|
237
|
-
private renderListFilesEnhanced;
|
|
238
|
-
private renderLspInspectEnhanced;
|
|
239
|
-
/**
|
|
240
|
-
* Parse an LSP location string like "$cwd/path:Lline:Cchar" into components.
|
|
241
|
-
*/
|
|
242
|
-
private parseLspLocation;
|
|
243
233
|
private renderTaskWriteEnhanced;
|
|
244
|
-
private renderWebSearchEnhanced;
|
|
245
234
|
/**
|
|
246
235
|
* Format web search results as a clean list of titles + URLs.
|
|
247
236
|
* Handles both Anthropic provider results (JSON array with encryptedContent)
|
|
@@ -250,7 +239,6 @@ export declare class ToolExecutionComponentEnhanced extends WidthAwareContainer
|
|
|
250
239
|
private formatWebSearchResults;
|
|
251
240
|
private formatAgentSignalSendSummary;
|
|
252
241
|
private formatAgentSignalSendPreview;
|
|
253
|
-
private renderAgentSignalSendEnhanced;
|
|
254
242
|
private renderGenericToolEnhanced;
|
|
255
243
|
/**
|
|
256
244
|
* Format a compact args preview as key="value" pairs.
|