Skip to content

Commit 5609093

Browse files
author
openclaw
committed
refactor: switch to @liutod-scream/pi-tui fork, remove patch system
Replace @earendil-works/pi-tui with @liutod-scream/pi-tui (our fork at github.com/LIUTod/pi) which has scream-code fixes applied directly to TypeScript source instead of dist/js patches: - editor.ts: add this.tui.requestRender() after autocomplete up/down - tui.ts: remove \x1b[3J from fullRender to preserve scrollback This eliminates the fragile patch workflow where bugs like this.requestRender vs this.tui.requestRender could slip through. Other changes in this commit (carried from prior work): - render-batcher: batchUpdate uses pendingForce instead of hardcoded true - scream-tui: clear scrollback + force redraw on session switch - Tests updated for pi-tui 0.80.6+ behavior (setText clears pastes map) - All 9 packages bumped to 0.9.7
1 parent b913ab9 commit 5609093

89 files changed

Lines changed: 123 additions & 155 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 1 addition & 1 deletion

apps/scream-code/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"smoke": "node dist/main.mjs --version"
5858
},
5959
"dependencies": {
60-
"@earendil-works/pi-tui": "^0.80.6",
60+
"@liutod-scream/pi-tui": "^0.80.10",
6161
"@mariozechner/clipboard": "^0.3.2",
6262
"chalk": "^5.4.1",
6363
"cli-highlight": "^2.1.11",

apps/scream-code/src/tui/commands/btw.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
Markdown,
1515
type Focusable,
1616
type MarkdownTheme,
17-
} from '@earendil-works/pi-tui';
17+
} from '@liutod-scream/pi-tui';
1818
import chalk from 'chalk';
1919

2020
import { t } from '@scream-code/config';

apps/scream-code/src/tui/commands/dispatch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Component, Focusable } from '@earendil-works/pi-tui';
1+
import type { Component, Focusable } from '@liutod-scream/pi-tui';
22

33
import type { ScreamHarness, Session } from '@scream-code/scream-code-sdk';
44
import { t } from '@scream-code/config';

apps/scream-code/src/tui/commands/goal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { t } from '@scream-code/config';
2-
import type { Component } from '@earendil-works/pi-tui';
2+
import type { Component } from '@liutod-scream/pi-tui';
33

44
import type { SlashCommandHost } from './dispatch';
55
import { GoalStatusMessageComponent } from '../components/messages/goal-panel';

apps/scream-code/src/tui/commands/mcp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
truncateToWidth,
1414
visibleWidth,
1515
type Focusable,
16-
} from '@earendil-works/pi-tui';
16+
} from '@liutod-scream/pi-tui';
1717
import chalk from 'chalk';
1818
import { t } from '@scream-code/config';
1919

apps/scream-code/src/tui/commands/revoke.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Component } from '@earendil-works/pi-tui';
1+
import type { Component } from '@liutod-scream/pi-tui';
22

33
import { t } from '@scream-code/config';
44
import { WelcomeComponent } from '../components/chrome/welcome';

apps/scream-code/src/tui/commands/skill-center.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/
1111

1212
import type { PluginSummary, SkillSummary } from '@scream-code/scream-code-sdk';
13-
import { Container, matchesKey, Key, Spacer, type Focusable } from '@earendil-works/pi-tui';
13+
import { Container, matchesKey, Key, Spacer, type Focusable } from '@liutod-scream/pi-tui';
1414
import chalk from 'chalk';
1515
import { t } from '@scream-code/config';
1616

apps/scream-code/src/tui/commands/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { SlashCommand } from '@earendil-works/pi-tui';
1+
import type { SlashCommand } from '@liutod-scream/pi-tui';
22
import type { FlagId } from '@scream-code/scream-code-sdk';
33

44
export type SlashCommandAvailability = 'always' | 'idle-only';

apps/scream-code/src/tui/components/chrome/error-banner.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
* operation.
1212
*/
1313

14-
import type { Component } from '@earendil-works/pi-tui';
15-
import { truncateToWidth } from '@earendil-works/pi-tui';
14+
import type { Component } from '@liutod-scream/pi-tui';
15+
import { truncateToWidth } from '@liutod-scream/pi-tui';
1616
import chalk from 'chalk';
1717

1818
import { STATUS_BULLET } from '#/tui/constant/symbols';

0 commit comments

Comments
 (0)