@multiclawcli/dashboard 0.8.0 → 0.8.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/tui.js +12 -2
- package/package.json +2 -2
package/dist/tui.js
CHANGED
|
@@ -3080,11 +3080,21 @@ function App({ config, onTurnStart, sessions: providedSessions, onCleanupReady }
|
|
|
3080
3080
|
return;
|
|
3081
3081
|
}
|
|
3082
3082
|
const formFront = front?.kind === "question" && !isCommandLine(line.text) ? front : void 0;
|
|
3083
|
-
if (key.tab && formFront === void 0) {
|
|
3083
|
+
if (key.tab && formFront === void 0 && !paletteOpen) {
|
|
3084
3084
|
dispatch({ type: "focus:cycle", delta: key.shift ? -1 : 1 });
|
|
3085
3085
|
return;
|
|
3086
3086
|
}
|
|
3087
3087
|
if (paletteOpen) {
|
|
3088
|
+
if (key.tab) {
|
|
3089
|
+
if (arg) {
|
|
3090
|
+
const completed = `/${arg.command.name} ${allRows[selected].key} `;
|
|
3091
|
+
setLine({ text: completed, cursor: completed.length });
|
|
3092
|
+
} else {
|
|
3093
|
+
const completed = `/${matches[selected].name} `;
|
|
3094
|
+
setLine({ text: completed, cursor: completed.length });
|
|
3095
|
+
}
|
|
3096
|
+
return;
|
|
3097
|
+
}
|
|
3088
3098
|
if (key.upArrow) {
|
|
3089
3099
|
setMenuCursor({ query: paletteKey, index: (menuIndex - 1 + paletteTotal) % paletteTotal });
|
|
3090
3100
|
return;
|
|
@@ -3298,7 +3308,7 @@ function App({ config, onTurnStart, sessions: providedSessions, onCleanupReady }
|
|
|
3298
3308
|
const handlerRef = useRef(handleKey);
|
|
3299
3309
|
handlerRef.current = handleKey;
|
|
3300
3310
|
useInput((char, key) => handlerRef.current(char, key));
|
|
3301
|
-
const keys = helpOpen ? "esc close" : historyOpen ? "\u2191\u2193 select \xB7 enter open \xB7 esc close" : argOpen ? `\u2191\u2193 select \xB7 enter ${arg?.command.name} \xB7 esc close` : menuOpen ? "\u2191\u2193 select \xB7 enter run \xB7 esc close" : running ? interactions.length > 0 ? layout.interactionRows === 0 ? (
|
|
3311
|
+
const keys = helpOpen ? "esc close" : historyOpen ? "\u2191\u2193 select \xB7 enter open \xB7 esc close" : argOpen ? `\u2191\u2193 select \xB7 tab complete \xB7 enter ${arg?.command.name} \xB7 esc close` : menuOpen ? "\u2191\u2193 select \xB7 tab complete \xB7 enter run \xB7 esc close" : running ? interactions.length > 0 ? layout.interactionRows === 0 ? (
|
|
3302
3312
|
// Too short to dock the bar, so the commands are the only way in.
|
|
3303
3313
|
"decide with /approve 1 \xB7 /deny \xB7 /respond"
|
|
3304
3314
|
) : interactions[0].kind === "question" ? "tab field \xB7 \u2191\u2193 pick \xB7 enter next \xB7 /dismiss" : menu.released ? "/approve 1 and /deny still reach it" : "\u2191\u2193 or 1-9 choose \xB7 enter confirm \xB7 esc to type" : "enter queues \xB7 ctrl+c cancel" : state.view ? "esc live \xB7 tab agent \xB7 ? help" : state.reply ? "enter sends \xB7 / commands \xB7 ? help" : "tab switch \xB7 / commands \xB7 ? help";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@multiclawcli/dashboard",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./tui": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@multiclawcli/core": "0.8.
|
|
28
|
+
"@multiclawcli/core": "0.8.1",
|
|
29
29
|
"ink": "^8.0.0",
|
|
30
30
|
"react": "^19.3.1",
|
|
31
31
|
"string-width": "^8.3.0"
|