@clagentic/console 1.0.3 → 1.0.4-beta.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 +20 -6
- package/lib/public/modules/app-connection.js +9 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,6 +15,26 @@ A self-hosted browser console for Claude Code and ChatGPT Codex. Run AI sessions
|
|
|
15
15
|
|
|
16
16
|
No extras bolted on. No opinionated workflows. The floor is solid; you build what you need on top.
|
|
17
17
|
|
|
18
|
+
## Install
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npm install -g @clagentic/console
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Then run from anywhere:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
clagentic
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Or try it without installing:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
npx @clagentic/console
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
**Requirements:** Node.js 20+. Authenticated Claude Code CLI, Codex CLI, or both.
|
|
37
|
+
|
|
18
38
|
## What it does
|
|
19
39
|
|
|
20
40
|
- **Browser access to your AI runtimes.** The goal is full parity with the CLI for both Claude Code and Codex — tool approvals, model selection, context management, session history. Most things work; see the FAQ for current gaps.
|
|
@@ -27,12 +47,6 @@ No extras bolted on. No opinionated workflows. The floor is solid; you build wha
|
|
|
27
47
|
|
|
28
48
|
## Getting Started
|
|
29
49
|
|
|
30
|
-
**Requirements:** Node.js 20+. Authenticated Claude Code CLI, Codex CLI, or both.
|
|
31
|
-
|
|
32
|
-
```bash
|
|
33
|
-
npx @clagentic/console
|
|
34
|
-
```
|
|
35
|
-
|
|
36
50
|
On first run you'll be asked for a port and whether you're running solo or multi-user. Open the URL from any device on your network.
|
|
37
51
|
|
|
38
52
|
For remote access, use a tunnel — Tailscale, Cloudflare Tunnel, or your existing VPN.
|
|
@@ -89,7 +89,15 @@ export function initConnection() {
|
|
|
89
89
|
if (state.processing !== prev.processing) {
|
|
90
90
|
if (state.processing) {
|
|
91
91
|
setSendBtnMode(hasSendableContent() ? "send" : "stop");
|
|
92
|
-
} else
|
|
92
|
+
} else {
|
|
93
|
+
// Always reset to send when processing stops — even on disconnect.
|
|
94
|
+
// Without this, if the WS drops while Claude is running, the button
|
|
95
|
+
// stays in stop mode: the reconnect path skips setSendBtnMode because
|
|
96
|
+
// processing is already false (unchanged) by then, and the
|
|
97
|
+
// _sendBtnMode cache prevents the DOM from self-correcting.
|
|
98
|
+
// Calling setSendBtnMode when disconnected is harmless — the button
|
|
99
|
+
// is already disabled — but it ensures the cache is "send" so the
|
|
100
|
+
// button shows correctly when the connection is restored. (lr-e6b5-2)
|
|
93
101
|
setSendBtnMode("send");
|
|
94
102
|
}
|
|
95
103
|
}
|
package/package.json
CHANGED