@easbot/tui 0.3.27 → 0.3.29

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/README.en.md CHANGED
@@ -8,8 +8,7 @@ Minimal terminal UI framework with differential rendering and synchronized outpu
8
8
 
9
9
  ## Version
10
10
 
11
- v0.3.27
12
-
11
+ v0.3.29
13
12
  ## Features
14
13
 
15
14
  - **Differential Rendering**: Three-strategy rendering system that only updates what changed
@@ -24,7 +23,7 @@ v0.3.27
24
23
  ## Quick Start
25
24
 
26
25
  ```typescript
27
- import { TUI, Text, Editor, ProcessTerminal } from "@easbot/tui";
26
+ import { TUI, Text, Editor, ProcessTerminal } from '@easbot/tui';
28
27
 
29
28
  // Create terminal
30
29
  const terminal = new ProcessTerminal();
@@ -33,11 +32,11 @@ const terminal = new ProcessTerminal();
33
32
  const tui = new TUI(terminal);
34
33
 
35
34
  // Add components
36
- tui.addChild(new Text("Welcome to my app!"));
35
+ tui.addChild(new Text('Welcome to my app!'));
37
36
 
38
37
  const editor = new Editor(tui, editorTheme);
39
38
  editor.onSubmit = (text) => {
40
- console.log("Submitted:", text);
39
+ console.log('Submitted:', text);
41
40
  tui.addChild(new Text(`You said: ${text}`));
42
41
  };
43
42
  tui.addChild(editor);
package/README.md CHANGED
@@ -8,8 +8,7 @@
8
8
 
9
9
  ## 版本
10
10
 
11
- v0.3.27
12
-
11
+ v0.3.29
13
12
  ## 特性
14
13
 
15
14
  - **差异渲染**: 三策略渲染系统,仅更新变化的内容
@@ -24,7 +23,7 @@ v0.3.27
24
23
  ## 快速开始
25
24
 
26
25
  ```typescript
27
- import { TUI, Text, Editor, ProcessTerminal } from "@easbot/tui";
26
+ import { TUI, Text, Editor, ProcessTerminal } from '@easbot/tui';
28
27
 
29
28
  // 创建终端
30
29
  const terminal = new ProcessTerminal();
@@ -33,11 +32,11 @@ const terminal = new ProcessTerminal();
33
32
  const tui = new TUI(terminal);
34
33
 
35
34
  // 添加组件
36
- tui.addChild(new Text("欢迎使用我的应用!"));
35
+ tui.addChild(new Text('欢迎使用我的应用!'));
37
36
 
38
37
  const editor = new Editor(tui, editorTheme);
39
38
  editor.onSubmit = (text) => {
40
- console.log("已提交:", text);
39
+ console.log('已提交:', text);
41
40
  tui.addChild(new Text(`你说: ${text}`));
42
41
  };
43
42
  tui.addChild(editor);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easbot/tui",
3
- "version": "0.3.27",
3
+ "version": "0.3.29",
4
4
  "description": "EASBot Terminal User Interface library - A fully autonomous TUI rendering engine ported and extended from pi-tui",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -52,7 +52,11 @@
52
52
  },
53
53
  "devDependencies": {
54
54
  "@xterm/headless": "^6.0.0",
55
- "@xterm/xterm": "^6.0.0"
55
+ "@xterm/xterm": "^6.0.0",
56
+ "@types/node": "^25.9.5",
57
+ "tsup": "^8.5.1",
58
+ "typescript": "^6.0.3",
59
+ "vitest": "^4.1.10"
56
60
  },
57
61
  "engines": {
58
62
  "node": ">=22.22.2"
@@ -66,6 +70,7 @@
66
70
  "test": "vitest",
67
71
  "test:run": "vitest run",
68
72
  "test:coverage": "vitest run --coverage",
73
+ "test:clean": "tsx scripts/clean-test-fixtures.ts",
69
74
  "lint": "biome check .",
70
75
  "lint:fix": "biome check --write .",
71
76
  "lint:report": "biome check --reporter=summary .",