bajaclaw 0.15.1 → 0.15.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 +1 -1
- package/dist/commands/chat-ui.js +5 -5
- package/dist/commands/dashboard.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
██╔══██╗██╔══██║██ ██║██╔══██║ ██║ ██║ ██╔══██║██║███╗██║
|
|
8
8
|
██████╔╝██║ ██║╚█████╔╝██║ ██║ ╚██████╗███████╗██║ ██║╚███╔███╔╝
|
|
9
9
|
╚═════╝ ╚═╝ ╚═╝ ╚════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝╚═╝ ╚═╝ ╚══╝╚══╝
|
|
10
|
-
autonomous agents on your terms · MIT · v0.15.
|
|
10
|
+
autonomous agents on your terms · MIT · v0.15.2
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## What BajaClaw is
|
package/dist/commands/chat-ui.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// Replaces the old readline-based REPL (v0.14.23 and earlier). Prior
|
|
4
4
|
// versions fought readline's `_refreshLine` cursor model to draw a
|
|
5
5
|
// bordered "sandwich" around the input; see HANDOFF.md landmine 17.
|
|
6
|
-
// Ink sidesteps all of that
|
|
6
|
+
// Ink sidesteps all of that - it owns the render loop, diffs each
|
|
7
7
|
// frame, and lets us describe the UI declaratively.
|
|
8
8
|
//
|
|
9
9
|
// Layout, top to bottom:
|
|
@@ -92,7 +92,7 @@ export function ChatApp({ profile, cfg: initialCfg, agentName, initialModelOverr
|
|
|
92
92
|
// Seed the Static list with the intro entry on first render so the
|
|
93
93
|
// banner + identity block land in scrollback. Ink 7 renders only
|
|
94
94
|
// the LAST <Static> in the tree, so we use ONE Static for everything
|
|
95
|
-
//
|
|
95
|
+
// - intro goes in the same list as the turns.
|
|
96
96
|
const [turns, setTurns] = useState(() => {
|
|
97
97
|
const db = openDb(profile);
|
|
98
98
|
let usage;
|
|
@@ -123,7 +123,7 @@ export function ChatApp({ profile, cfg: initialCfg, agentName, initialModelOverr
|
|
|
123
123
|
const [commandHistory, setCommandHistory] = useState([]);
|
|
124
124
|
// Local message queue. If the user hits Enter while a cycle is in
|
|
125
125
|
// flight, the message lands here instead of forcing them to wait.
|
|
126
|
-
// Drained FIFO as soon as `thinking` flips false
|
|
126
|
+
// Drained FIFO as soon as `thinking` flips false - see the useEffect
|
|
127
127
|
// below.
|
|
128
128
|
const [messageQueue, setMessageQueue] = useState([]);
|
|
129
129
|
const historyRef = useRef([]);
|
|
@@ -151,7 +151,7 @@ export function ChatApp({ profile, cfg: initialCfg, agentName, initialModelOverr
|
|
|
151
151
|
return () => clearInterval(i);
|
|
152
152
|
}, [thinking, thinkingStart]);
|
|
153
153
|
// Ctrl-C / Ctrl-D exit. Registered as a top-level input handler so
|
|
154
|
-
// it fires even while the composer's own useInput is active
|
|
154
|
+
// it fires even while the composer's own useInput is active - Ink
|
|
155
155
|
// delivers each key event to every registered handler.
|
|
156
156
|
useInput((char, key) => {
|
|
157
157
|
if (key.ctrl && (char === "c" || char === "d")) {
|
|
@@ -878,7 +878,7 @@ async function handleSlash(input, ctx) {
|
|
|
878
878
|
return;
|
|
879
879
|
}
|
|
880
880
|
case "history":
|
|
881
|
-
ctx.appendSystem([{ text: "(use the dashboard for full history
|
|
881
|
+
ctx.appendSystem([{ text: "(use the dashboard for full history - /stats for session totals)", dim: true }]);
|
|
882
882
|
return;
|
|
883
883
|
default:
|
|
884
884
|
ctx.appendSystem([
|
|
@@ -15,7 +15,7 @@ import { loadAllSkillsRaw, runtimeSkipReason } from "../skills/loader.js";
|
|
|
15
15
|
import { currentVersion } from "../updater.js";
|
|
16
16
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
17
17
|
// Candidate locations for dashboard.html, resolved per-request so HTML
|
|
18
|
-
// edits hot-reload (see `sendHtml` below
|
|
18
|
+
// edits hot-reload (see `sendHtml` below - no cache on the body).
|
|
19
19
|
//
|
|
20
20
|
// - When running from the dev checkout, the TypeScript source sits in
|
|
21
21
|
// `src/` while the compiled JS lands in `dist/`. We prefer
|