@alexwkleung/reika 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/dist/ui/App.js +3 -0
- package/dist/ui/Scrollback.js +7 -22
- package/package.json +4 -3
package/dist/ui/App.js
CHANGED
|
@@ -1460,6 +1460,7 @@ export function App() {
|
|
|
1460
1460
|
' /cd <path> change cwd (re-indexes repo map)',
|
|
1461
1461
|
' /shell enter shell mode (raw bash, no model)',
|
|
1462
1462
|
' /chat enter chat mode (no filesystem/shell tools; isolated)',
|
|
1463
|
+
' /plan enter plan mode (read-only exploration; ends with a written plan)',
|
|
1463
1464
|
' /vibe enter vibe mode (every prompt plans first, then implements)',
|
|
1464
1465
|
' /minimal enter minimal mode (shell only, no upfront project context)',
|
|
1465
1466
|
' /grind enter grind mode (verify-everything procedure; slower, checks its work)',
|
|
@@ -1468,12 +1469,14 @@ export function App() {
|
|
|
1468
1469
|
' /compact compact older context now (compaction note, then a fold)',
|
|
1469
1470
|
' /model [name] pick a model/profile (interactive without a name; a name not in your config switches ad-hoc)',
|
|
1470
1471
|
' /anon show/toggle anonymized display (on|off; bare command opens the picker)',
|
|
1472
|
+
' /approvals show/toggle session auto-approve (on|off; bare command opens the picker)',
|
|
1471
1473
|
' /unattended show/toggle unattended: decline instead of prompting (on|off; bare command opens the picker)',
|
|
1472
1474
|
' /cwd show working directory',
|
|
1473
1475
|
' /tokens show token usage this session',
|
|
1474
1476
|
' /stats show full session summary',
|
|
1475
1477
|
' /save save the full conversation to history, even mid-turn (--raw skips redaction)',
|
|
1476
1478
|
' /resume [root] resume a saved session of this project (root: the /save files)',
|
|
1479
|
+
' /skills list available skills (loaded from your skill directories)',
|
|
1477
1480
|
' /mcp list MCP servers and their tools (REIKA_MCP_SERVERS)',
|
|
1478
1481
|
' /<server>:<tool> call an MCP tool directly (JSON args, or the bare string for a one-arg tool)',
|
|
1479
1482
|
' /exit, /quit exit reika (prints summary)',
|
package/dist/ui/Scrollback.js
CHANGED
|
@@ -622,32 +622,17 @@ function UserBubble({ text, indent = 0, nested = false, }) {
|
|
|
622
622
|
// The accent bar means "the user said this". A nested bubble is the parent agent's task text,
|
|
623
623
|
// not the user's, so it takes its own color — see theme.subagent for why it is not `queued`.
|
|
624
624
|
const barColor = nested ? theme.subagent : theme.accent;
|
|
625
|
-
return (_jsx(Box, { flexDirection: "column", marginTop: 1, children: rows.map((line, i) => (_jsxs(Text, { backgroundColor: theme.userBg, children: [_jsx(Text, { color: barColor, children: glyphs.bar }), _jsx(Text, { color: "whiteBright", children: ` ${line.
|
|
625
|
+
return (_jsx(Box, { flexDirection: "column", marginTop: 1, children: rows.map((line, i) => (_jsxs(Text, { backgroundColor: theme.userBg, children: [_jsx(Text, { color: barColor, children: glyphs.bar }), _jsx(Text, { color: "whiteBright", children: ` ${line}${' '.repeat(Math.max(0, contentW - stringWidth(line)))} ` })] }, i))) }));
|
|
626
626
|
}
|
|
627
|
-
// Word-wrap to a column width,
|
|
627
|
+
// Word-wrap to a column width in terminal cells, not code units: a CJK glyph is two cells, and
|
|
628
|
+
// counted as one a row of them overflowed the bubble, so Ink re-wrapped its tail onto a row with
|
|
629
|
+
// no bar. Ink's own wrap options, so its re-wrap of each row is a no-op.
|
|
628
630
|
function wrapText(text, width) {
|
|
629
631
|
const out = [];
|
|
630
632
|
for (const raw of text.split('\n')) {
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
if (line) {
|
|
635
|
-
out.push(line);
|
|
636
|
-
line = '';
|
|
637
|
-
}
|
|
638
|
-
out.push(word.slice(0, width));
|
|
639
|
-
word = word.slice(width);
|
|
640
|
-
}
|
|
641
|
-
if (!line)
|
|
642
|
-
line = word;
|
|
643
|
-
else if (line.length + 1 + word.length <= width)
|
|
644
|
-
line += ` ${word}`;
|
|
645
|
-
else {
|
|
646
|
-
out.push(line);
|
|
647
|
-
line = word;
|
|
648
|
-
}
|
|
649
|
-
}
|
|
650
|
-
out.push(line);
|
|
633
|
+
const rows = wrapAnsi(raw, width, { trim: false, hard: true }).split('\n');
|
|
634
|
+
// The space a break landed on heads the next row; a leading space on a real line is content.
|
|
635
|
+
rows.forEach((row, i) => out.push(i === 0 ? row : row.replace(/^ +/, '')));
|
|
651
636
|
}
|
|
652
637
|
return out;
|
|
653
638
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexwkleung/reika",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Coding agent CLI for local and hosted models, designed around small local models first.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Alex Leung",
|
|
@@ -100,8 +100,9 @@
|
|
|
100
100
|
"docs:dev": "pnpm --dir docs run dev",
|
|
101
101
|
"docs:build": "pnpm --dir docs run build",
|
|
102
102
|
"install:global": "pnpm run build && pnpm add -g . && if command -v reika >/dev/null; then echo \"reika $(reika --version) installed at $(command -v reika)\"; else echo \"reika installed, but pnpm's global bin dir is not on your PATH (run: pnpm setup)\"; fi",
|
|
103
|
-
"uninstall:global": "pnpm remove -g reika",
|
|
103
|
+
"uninstall:global": "pnpm remove -g @alexwkleung/reika || pnpm remove -g reika",
|
|
104
104
|
"reinstall:global": "pnpm run uninstall:global && pnpm run install:global",
|
|
105
|
-
"release:check": "scripts/release-check.sh"
|
|
105
|
+
"release:check": "scripts/release-check.sh",
|
|
106
|
+
"release:verify": "tsx scripts/release-verify.ts"
|
|
106
107
|
}
|
|
107
108
|
}
|