@cli-use/tui 0.1.3 → 0.1.4
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.md +3 -3
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
### 1. Install via NPM
|
|
23
23
|
|
|
24
24
|
```bash
|
|
25
|
-
npm install -g cli-use
|
|
25
|
+
npm install -g @cli-use/tui
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
### 2. Configure AI (Optional)
|
|
@@ -69,7 +69,7 @@ You can also build standard React-based CLIs.
|
|
|
69
69
|
|
|
70
70
|
```tsx
|
|
71
71
|
import React from 'react';
|
|
72
|
-
import { render, Box, Text } from 'cli-use';
|
|
72
|
+
import { render, Box, Text } from '@cli-use/tui';
|
|
73
73
|
|
|
74
74
|
const App = () => (
|
|
75
75
|
<Box borderStyle="round" padding={1}>
|
|
@@ -84,7 +84,7 @@ render(<App />);
|
|
|
84
84
|
|
|
85
85
|
```tsx
|
|
86
86
|
import React, { useState } from 'react';
|
|
87
|
-
import { render, Box, Text, useInput } from 'cli-use';
|
|
87
|
+
import { render, Box, Text, useInput } from '@cli-use/tui';
|
|
88
88
|
|
|
89
89
|
const Counter = () => {
|
|
90
90
|
const [count, setCount] = useState(0);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cli-use/tui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Build beautiful terminal user interfaces with styled components - A powerful TUI framework for creating stunning CLI applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -36,7 +36,8 @@
|
|
|
36
36
|
"test:ai": "tsx scripts/test-ai.ts",
|
|
37
37
|
"list:models": "tsx scripts/list-models.ts",
|
|
38
38
|
"build:copy": "tsx scripts/copy-binary.ts",
|
|
39
|
-
"demo:cli-use": "tsx src/examples/cli-use-demo.tsx"
|
|
39
|
+
"demo:cli-use": "tsx src/examples/cli-use-demo.tsx",
|
|
40
|
+
"postinstall": "tsx scripts/postinstall.ts"
|
|
40
41
|
},
|
|
41
42
|
"keywords": [
|
|
42
43
|
"tui",
|