mini-coder 0.5.2 → 0.5.4
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 +31 -27
- package/bun.lock +7 -7
- package/package.json +4 -4
- package/src/agent.ts +38 -15
- package/src/git.ts +57 -7
- package/src/prompt.ts +4 -1
- package/src/session.ts +47 -17
- package/src/tools.ts +668 -4
- package/src/ui/conversation.test.ts +230 -29
- package/src/ui/conversation.ts +110 -32
- package/src/ui/help.test.ts +9 -4
- package/src/ui/help.ts +5 -3
- package/src/ui.ts +7 -3
package/src/ui/help.ts
CHANGED
|
@@ -79,9 +79,11 @@ export function buildHelpText(state: HelpRenderState): string {
|
|
|
79
79
|
const providerNames = Array.from(state.providers.keys());
|
|
80
80
|
lines.push("");
|
|
81
81
|
lines.push("Note:");
|
|
82
|
-
lines.push(
|
|
83
|
-
|
|
84
|
-
|
|
82
|
+
lines.push(
|
|
83
|
+
" Escape closes the current overlay and returns focus to the input.",
|
|
84
|
+
);
|
|
85
|
+
lines.push(" With no overlay open, Escape interrupts the current turn.");
|
|
86
|
+
lines.push(" Otherwise Escape does nothing.");
|
|
85
87
|
|
|
86
88
|
lines.push("");
|
|
87
89
|
lines.push(
|
package/src/ui.ts
CHANGED
|
@@ -572,7 +572,6 @@ function renderConversationLog(state: AppState, width: number): Node {
|
|
|
572
572
|
flex: 1,
|
|
573
573
|
gap: CONVERSATION_GAP,
|
|
574
574
|
overflow: "scroll",
|
|
575
|
-
scrollbar: true,
|
|
576
575
|
justifyContent: state.messages.length === 0 ? "center" : undefined,
|
|
577
576
|
scrollOffset: stickToBottom ? Infinity : scrollOffset,
|
|
578
577
|
onScroll: (offset, maxOffset) => {
|
|
@@ -631,8 +630,13 @@ export function renderBaseLayout(
|
|
|
631
630
|
onSuspend?.();
|
|
632
631
|
return;
|
|
633
632
|
}
|
|
634
|
-
if (key === "escape"
|
|
635
|
-
if (state.
|
|
633
|
+
if (key === "escape") {
|
|
634
|
+
if (state.running) {
|
|
635
|
+
inputFocused = true;
|
|
636
|
+
if (state.abortController) {
|
|
637
|
+
state.abortController.abort();
|
|
638
|
+
}
|
|
639
|
+
}
|
|
636
640
|
return;
|
|
637
641
|
}
|
|
638
642
|
return false;
|