@aednzxy/smith-tui 0.1.0 → 0.1.2
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 +7 -7
- package/dist/app/controller.js +1 -1
- package/dist/app/controller.js.map +1 -1
- package/dist/cli.js +5 -5
- package/dist/cli.js.map +1 -1
- package/dist/views/modals-view.js +1 -1
- package/dist/views/modals-view.js.map +1 -1
- package/dist/views/select-agent-view.js +12 -23
- package/dist/views/select-agent-view.js.map +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -12,14 +12,14 @@ Every request goes strictly through Smith's host gateway (ADR 122 bearer auth an
|
|
|
12
12
|
## Install & Update (Anywhere with Node 22+)
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
|
-
# Install globally from npm
|
|
15
|
+
# Install globally from npm (provides `smith` and `smith-tui`)
|
|
16
16
|
npm install -g @aednzxy/smith-tui
|
|
17
17
|
|
|
18
18
|
# Run against your Smith gateway
|
|
19
|
-
smith
|
|
19
|
+
smith --server smith:3100
|
|
20
20
|
|
|
21
21
|
# Jump straight into a specific agent
|
|
22
|
-
smith
|
|
22
|
+
smith smith --server smith:3100
|
|
23
23
|
|
|
24
24
|
# Update anytime to the latest published build
|
|
25
25
|
npm install -g @aednzxy/smith-tui@latest
|
|
@@ -36,19 +36,19 @@ npm run build
|
|
|
36
36
|
node dist/cli.js --server http://127.0.0.1:3100
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
Or link your local checkout
|
|
39
|
+
Or link your local checkout (`smith` and `smith-tui`):
|
|
40
40
|
|
|
41
41
|
```bash
|
|
42
42
|
cd clients/tui
|
|
43
43
|
npm link
|
|
44
|
-
smith
|
|
44
|
+
smith --server https://smith.example
|
|
45
45
|
```
|
|
46
46
|
|
|
47
47
|
## CLI Options & Environment Variables
|
|
48
48
|
|
|
49
49
|
```text
|
|
50
50
|
Usage:
|
|
51
|
-
smith
|
|
51
|
+
smith [agent] [options]
|
|
52
52
|
|
|
53
53
|
Options:
|
|
54
54
|
-s, --server <addr> Gateway address (e.g. 127.0.0.1:3100 or https://smith.example)
|
|
@@ -78,7 +78,7 @@ Credentials and local preferences are stored with `0600` file permissions at `$X
|
|
|
78
78
|
|
|
79
79
|
Unlike a shrunken multi-pane desktop app, Smith TUI uses a **calm single-pane layout** inspired by Claude Code, OpenCode, Helix, and k9s:
|
|
80
80
|
|
|
81
|
-
- **Single-Agent Session Focus & Deferred New Chat:** Launching `smith
|
|
81
|
+
- **Single-Agent Session Focus & Deferred New Chat:** Launching `smith` opens a clean **Select Agent** screen first (filterable, `↑/↓` + `Enter`, or `1–9` jump). Pass `smith <agent>` / `--agent <dir>` (or `SMITH_AGENT=<dir>`) to skip selection. Choosing an agent opens a fresh new chat immediately without saving anything to the database until you send your first message (atomic `session.start`).
|
|
82
82
|
- **1-line Top Context Bar:** Shows active agent (`● Smith › Conversation Title`), model & reasoning effort, context percentage, live working timer, and a Fleet needs-you badge when chats are waiting on you.
|
|
83
83
|
- **Full-Width Terminal Canvas (No Sidebar):** The chat transcript, code blocks, diffs, and prompt-rule composer (`› `) span the full terminal width cleanly, like a native coding agent TUI.
|
|
84
84
|
- **1-line Contextual Key-Hint Footer:** Mode pill (`INSERT`, `BROWSE`, `DECISION`, `GO TO`, `CHATS`, `INSPECT`, `BOARDS`, `MEMORY`, etc.) alongside clickable, context-accurate shortcuts.
|
package/dist/app/controller.js
CHANGED
|
@@ -539,7 +539,7 @@ export class SmithTuiApp {
|
|
|
539
539
|
tryEnterAgent(dir, section = 'chats', sessionId) {
|
|
540
540
|
if (this.state.activeAgentDir && this.state.activeAgentDir !== dir) {
|
|
541
541
|
const currentName = this.state.agents.find((a) => a.dirName === this.state.activeAgentDir)?.name ?? this.state.activeAgentDir;
|
|
542
|
-
this.showToast('info', `Session attached to ${currentName} — launch smith
|
|
542
|
+
this.showToast('info', `Session attached to ${currentName} — launch smith ${dir} for another agent.`);
|
|
543
543
|
return false;
|
|
544
544
|
}
|
|
545
545
|
this.openAgent(dir, section, sessionId);
|