@truss-harness/tui 0.1.0 → 0.1.1
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 +2 -0
- package/dist/bin.js +15 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,6 +11,8 @@ npm install -g @truss-harness/tui
|
|
|
11
11
|
truss-tui
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
+
Run `truss-tui --help` for a non-interactive launch reference. Inside the TUI, press `?` for the complete keyboard-control reference.
|
|
15
|
+
|
|
14
16
|
The TUI reads the same `.truss-harness/config.json` profiles as `@truss-harness/cli`, or lets you select a detected Ollama, LM Studio, llama.cpp, or custom compatible endpoint at startup.
|
|
15
17
|
|
|
16
18
|
Configured MCP stdio servers are connected when an Agent session starts, and their connection status appears in the Terminal pane. Plan mode loads only servers explicitly marked `readOnly`. Run `truss-cli config path` to locate the shared user and workspace configuration files.
|
package/dist/bin.js
CHANGED
|
@@ -14,6 +14,21 @@ import { resolveConfiguration } from "@truss-harness/cli/config";
|
|
|
14
14
|
import { createClientRuntime } from "@truss-harness/cli/runtime";
|
|
15
15
|
import { executeWorkspaceCommand, FileWorkspacePlanStore, workspaceCommandHelp } from "@truss-harness/runtime";
|
|
16
16
|
import { buildFileTree, fuzzyFiles, syntaxTokens, wrapSyntaxTokens } from "./file-browser.js";
|
|
17
|
+
const tuiHelp = `${brand.productName} TUI
|
|
18
|
+
|
|
19
|
+
Full-screen terminal workspace for local coding models.
|
|
20
|
+
|
|
21
|
+
Usage:
|
|
22
|
+
${brand.tuiCommand}
|
|
23
|
+
|
|
24
|
+
The TUI starts in the current workspace and reads the same configuration
|
|
25
|
+
profiles as ${brand.cliCommand}. Press ? inside the TUI for its complete
|
|
26
|
+
keyboard-control reference.
|
|
27
|
+
`;
|
|
28
|
+
if (process.argv.slice(2).some((argument) => argument === "--help" || argument === "-h")) {
|
|
29
|
+
process.stdout.write(tuiHelp);
|
|
30
|
+
process.exit(0);
|
|
31
|
+
}
|
|
17
32
|
const execFile = promisify(execFileCallback);
|
|
18
33
|
const ignoredDirectories = new Set([".git", ".next", ".truss-harness", "node_modules", "dist", "coverage"]);
|
|
19
34
|
const focusOrder = ["files", "editor", "chat", "terminal"];
|