@namzu/cli 53.3.0 → 53.3.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/CHANGELOG.md +7 -0
- package/dist/bin.js +1 -1
- package/dist/chunks/{apply-at-exit-EY73HTUZ.js → apply-at-exit-IO3X2VEK.js} +4 -4
- package/dist/chunks/{bin-main-M66LUUMP.js → bin-main-73LABF2O.js} +4 -4
- package/dist/chunks/{chat-RPQFKIAD.js → chat-WJQJO7AU.js} +2 -2
- package/dist/chunks/{chunk-HLLAVDYT.js → chunk-3G5MPQC6.js} +6 -6
- package/dist/chunks/{chunk-F7M6MIAS.js → chunk-5JLMNLDQ.js} +2 -2
- package/dist/chunks/{chunk-27BVRMUJ.js → chunk-CUXQNU26.js} +2 -2
- package/dist/chunks/{chunk-ENJM7PYT.js → chunk-FNMBBC26.js} +2 -2
- package/dist/chunks/{chunk-YJ25LOMP.js → chunk-K6ZJ2G2V.js} +71 -19
- package/dist/chunks/{chunk-YJ25LOMP.js.map → chunk-K6ZJ2G2V.js.map} +1 -1
- package/dist/chunks/{chunk-MRSWBORX.js → chunk-LG7PKSP3.js} +3 -3
- package/dist/chunks/{chunk-LITTVCZQ.js → chunk-MEIMXALZ.js} +3 -3
- package/dist/chunks/{chunk-6IUD3NVQ.js → chunk-PS6MAL42.js} +2 -2
- package/dist/chunks/{doctor-GH3XGHIB.js → doctor-ABINZ4KS.js} +7 -7
- package/dist/chunks/{live-UWUEDSPR.js → live-P6HSBLJ5.js} +6 -6
- package/dist/chunks/{pal-PN4RXHBT.js → pal-YQMOI22A.js} +2 -2
- package/dist/chunks/{start-check-L62L5YIZ.js → start-check-CF37SRBJ.js} +2 -2
- package/dist/chunks/{tui-MMFCXIWN.js → tui-IU3SME4U.js} +6 -6
- package/dist/chunks/{upgrade-F6JAFFIV.js → upgrade-GESAJI3N.js} +3 -3
- package/dist/chunks/{watch-TU7OG2DS.js → watch-FZPUNEUD.js} +6 -6
- package/dist/index.js +7 -7
- package/dist/tui/AgentExplorer.d.ts +5 -0
- package/dist/tui/AgentExplorer.d.ts.map +1 -1
- package/dist/tui/App.d.ts.map +1 -1
- package/dist/tui/Composer.d.ts +3 -1
- package/dist/tui/Composer.d.ts.map +1 -1
- package/package.json +4 -4
- /package/dist/chunks/{apply-at-exit-EY73HTUZ.js.map → apply-at-exit-IO3X2VEK.js.map} +0 -0
- /package/dist/chunks/{bin-main-M66LUUMP.js.map → bin-main-73LABF2O.js.map} +0 -0
- /package/dist/chunks/{chat-RPQFKIAD.js.map → chat-WJQJO7AU.js.map} +0 -0
- /package/dist/chunks/{chunk-HLLAVDYT.js.map → chunk-3G5MPQC6.js.map} +0 -0
- /package/dist/chunks/{chunk-F7M6MIAS.js.map → chunk-5JLMNLDQ.js.map} +0 -0
- /package/dist/chunks/{chunk-27BVRMUJ.js.map → chunk-CUXQNU26.js.map} +0 -0
- /package/dist/chunks/{chunk-ENJM7PYT.js.map → chunk-FNMBBC26.js.map} +0 -0
- /package/dist/chunks/{chunk-MRSWBORX.js.map → chunk-LG7PKSP3.js.map} +0 -0
- /package/dist/chunks/{chunk-LITTVCZQ.js.map → chunk-MEIMXALZ.js.map} +0 -0
- /package/dist/chunks/{chunk-6IUD3NVQ.js.map → chunk-PS6MAL42.js.map} +0 -0
- /package/dist/chunks/{doctor-GH3XGHIB.js.map → doctor-ABINZ4KS.js.map} +0 -0
- /package/dist/chunks/{live-UWUEDSPR.js.map → live-P6HSBLJ5.js.map} +0 -0
- /package/dist/chunks/{pal-PN4RXHBT.js.map → pal-YQMOI22A.js.map} +0 -0
- /package/dist/chunks/{start-check-L62L5YIZ.js.map → start-check-CF37SRBJ.js.map} +0 -0
- /package/dist/chunks/{tui-MMFCXIWN.js.map → tui-IU3SME4U.js.map} +0 -0
- /package/dist/chunks/{upgrade-F6JAFFIV.js.map → upgrade-GESAJI3N.js.map} +0 -0
- /package/dist/chunks/{watch-TU7OG2DS.js.map → watch-FZPUNEUD.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @namzu/cli
|
|
2
2
|
|
|
3
|
+
## 53.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 41581bb: Esc on an open `/` or `@` suggestion menu now closes the menu and leaves what you typed alone; it no longer shows "Esc again to clear" or wipes the draft on the next press. In a Ctrl+R history search, Esc now leaves the search with the match you found in the box, and Ctrl+C goes back to the draft that was there before. Tab right after Esc closed a menu brings the menu back instead of sending the half-typed command.
|
|
8
|
+
- 3aa3862: The arrow keys now move both ways between the input box and the rows under the status row. Up from the first stop (the shell pill, or the first agent or workflow row) puts the keyboard back in the input box with your draft and caret as they were, so Esc is no longer the only way out. Ctrl+P and Ctrl+N work as Up and Down while the rows have the keyboard. Down on the shell pill, when no row follows it, opens the Background list, like Enter. Down also reaches the rows from a typed draft (caret on its last line, no suggestions open) and leaves the draft untouched. While a reply is running, the first Esc on a row only leaves the rows; the next Esc interrupts.
|
|
9
|
+
|
|
3
10
|
## 53.3.0
|
|
4
11
|
|
|
5
12
|
### Minor Changes
|
package/dist/bin.js
CHANGED
|
@@ -46,6 +46,6 @@ __name(applyNoColor, "applyNoColor");
|
|
|
46
46
|
applyNoColor();
|
|
47
47
|
|
|
48
48
|
// src/bin.ts
|
|
49
|
-
var { main } = await import("./chunks/bin-main-
|
|
49
|
+
var { main } = await import("./chunks/bin-main-73LABF2O.js");
|
|
50
50
|
await main(fileURLToPath(new URL("./", import.meta.url).href + "bin.js"));
|
|
51
51
|
//# sourceMappingURL=bin.js.map
|
|
@@ -3,13 +3,13 @@ const require = __namzuCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
createUpdater,
|
|
5
5
|
readInstalledVersion
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5JLMNLDQ.js";
|
|
7
7
|
import {
|
|
8
8
|
PUBLIC_REGISTRY,
|
|
9
9
|
fetchNamzuRelease,
|
|
10
10
|
resolveUpdatePolicy
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-PS6MAL42.js";
|
|
12
|
+
import "./chunk-FNMBBC26.js";
|
|
13
13
|
import {
|
|
14
14
|
acquireUpdateLock,
|
|
15
15
|
currentInstall,
|
|
@@ -114,4 +114,4 @@ export {
|
|
|
114
114
|
runApplyAtExit,
|
|
115
115
|
waitThenApply
|
|
116
116
|
};
|
|
117
|
-
//# sourceMappingURL=apply-at-exit-
|
|
117
|
+
//# sourceMappingURL=apply-at-exit-IO3X2VEK.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk-OZQHNGZ3.js";
|
|
8
8
|
import {
|
|
9
9
|
runCli
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3G5MPQC6.js";
|
|
11
11
|
import "./chunk-MZP6SH3M.js";
|
|
12
12
|
import "./chunk-PCUMISO3.js";
|
|
13
13
|
import {
|
|
@@ -140,13 +140,13 @@ async function plainFailure(err) {
|
|
|
140
140
|
__name(plainFailure, "plainFailure");
|
|
141
141
|
function main(entrypoint) {
|
|
142
142
|
if (process.argv[2] === "--start-check") {
|
|
143
|
-
return import("./start-check-
|
|
143
|
+
return import("./start-check-CF37SRBJ.js").then((check) => check.runStartCheck()).then(
|
|
144
144
|
(code) => process.exit(code),
|
|
145
145
|
() => process.exit(1)
|
|
146
146
|
);
|
|
147
147
|
}
|
|
148
148
|
if (process.argv[2] === APPLY_AT_EXIT_FLAG) {
|
|
149
|
-
return import("./apply-at-exit-
|
|
149
|
+
return import("./apply-at-exit-IO3X2VEK.js").then((apply) => apply.runApplyAtExit()).then(
|
|
150
150
|
() => process.exit(0),
|
|
151
151
|
() => process.exit(1)
|
|
152
152
|
);
|
|
@@ -199,4 +199,4 @@ __name(main, "main");
|
|
|
199
199
|
export {
|
|
200
200
|
main
|
|
201
201
|
};
|
|
202
|
-
//# sourceMappingURL=bin-main-
|
|
202
|
+
//# sourceMappingURL=bin-main-73LABF2O.js.map
|
|
@@ -81,7 +81,7 @@ async function runPalChat(ctx, palId, args, options = {}) {
|
|
|
81
81
|
...ctx.config.composerTriggers ? { composerTriggers: ctx.config.composerTriggers } : {},
|
|
82
82
|
...ctx.config.statusLine ? { statusLine: ctx.config.statusLine } : {}
|
|
83
83
|
};
|
|
84
|
-
const { launchTui } = await import("./tui-
|
|
84
|
+
const { launchTui } = await import("./tui-IU3SME4U.js");
|
|
85
85
|
await launchTui(tui, options);
|
|
86
86
|
} catch (error) {
|
|
87
87
|
ctx.formatter.error({ message: error instanceof Error ? error.message : String(error) });
|
|
@@ -102,4 +102,4 @@ __name(runPalChat, "runPalChat");
|
|
|
102
102
|
export {
|
|
103
103
|
runPalChat
|
|
104
104
|
};
|
|
105
|
-
//# sourceMappingURL=chat-
|
|
105
|
+
//# sourceMappingURL=chat-WJQJO7AU.js.map
|
|
@@ -213,7 +213,7 @@ var watchCommand = lazyCommand(
|
|
|
213
213
|
description: "Follow a running or finished session from another terminal, read-only",
|
|
214
214
|
passThrough: true
|
|
215
215
|
},
|
|
216
|
-
async () => (await import("./watch-
|
|
216
|
+
async () => (await import("./watch-FZPUNEUD.js")).watchCommand
|
|
217
217
|
);
|
|
218
218
|
var sendCommand = lazyCommand(
|
|
219
219
|
{
|
|
@@ -229,7 +229,7 @@ var doctorCommand = lazyCommand(
|
|
|
229
229
|
description: "Run health checks against the local Namzu environment",
|
|
230
230
|
passThrough: true
|
|
231
231
|
},
|
|
232
|
-
async () => (await import("./doctor-
|
|
232
|
+
async () => (await import("./doctor-ABINZ4KS.js")).doctorCommand
|
|
233
233
|
);
|
|
234
234
|
var execCommand = lazyCommand(
|
|
235
235
|
{
|
|
@@ -342,7 +342,7 @@ var upgradeCommand = lazyCommand(
|
|
|
342
342
|
description: "Update the active global Namzu installation",
|
|
343
343
|
passThrough: true
|
|
344
344
|
},
|
|
345
|
-
async () => (await import("./upgrade-
|
|
345
|
+
async () => (await import("./upgrade-GESAJI3N.js")).upgradeCommand
|
|
346
346
|
);
|
|
347
347
|
var serveCommand = lazyCommand(
|
|
348
348
|
{
|
|
@@ -390,7 +390,7 @@ function createLazyPalCommand(resumeCommand) {
|
|
|
390
390
|
description: "Create and operate persistent Pals with their own local virtual computers",
|
|
391
391
|
passThrough: true
|
|
392
392
|
},
|
|
393
|
-
async () => (await import("./pal-
|
|
393
|
+
async () => (await import("./pal-YQMOI22A.js")).createPalCommand(resumeCommand)
|
|
394
394
|
);
|
|
395
395
|
}
|
|
396
396
|
__name(createLazyPalCommand, "createLazyPalCommand");
|
|
@@ -1030,7 +1030,7 @@ async function runCli(opts) {
|
|
|
1030
1030
|
tuiCtx,
|
|
1031
1031
|
(cwd) => buildTuiContext(resolveTrustedProjectContext(commandCtx, cwd), cwd)
|
|
1032
1032
|
);
|
|
1033
|
-
const { launchTui } = await import("./tui-
|
|
1033
|
+
const { launchTui } = await import("./tui-IU3SME4U.js");
|
|
1034
1034
|
const resumeCommand = launchOpts.outputSchema ? [
|
|
1035
1035
|
...opts.resumeCommand ?? ["namzu"],
|
|
1036
1036
|
"--output-schema",
|
|
@@ -1172,4 +1172,4 @@ export {
|
|
|
1172
1172
|
registerAll,
|
|
1173
1173
|
runCli
|
|
1174
1174
|
};
|
|
1175
|
-
//# sourceMappingURL=chunk-
|
|
1175
|
+
//# sourceMappingURL=chunk-3G5MPQC6.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
describeFailure,
|
|
8
8
|
manualUpdateCommand,
|
|
9
9
|
repairInterruptedUpdate
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PS6MAL42.js";
|
|
11
11
|
import {
|
|
12
12
|
readAttempt,
|
|
13
13
|
readCheck,
|
|
@@ -323,4 +323,4 @@ export {
|
|
|
323
323
|
readInstalledVersion,
|
|
324
324
|
createUpdater
|
|
325
325
|
};
|
|
326
|
-
//# sourceMappingURL=chunk-
|
|
326
|
+
//# sourceMappingURL=chunk-5JLMNLDQ.js.map
|
|
@@ -3,7 +3,7 @@ const require = __namzuCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
buildDoctorRegistry,
|
|
5
5
|
runDoctor
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LG7PKSP3.js";
|
|
7
7
|
import {
|
|
8
8
|
EXIT_USAGE
|
|
9
9
|
} from "./chunk-FTMONTUX.js";
|
|
@@ -253,4 +253,4 @@ export {
|
|
|
253
253
|
runDoctorCommand,
|
|
254
254
|
doctorCommand
|
|
255
255
|
};
|
|
256
|
-
//# sourceMappingURL=chunk-
|
|
256
|
+
//# sourceMappingURL=chunk-CUXQNU26.js.map
|
|
@@ -9,7 +9,7 @@ import { createRequire } from "node:module";
|
|
|
9
9
|
var START_CHECK_FLAG = "--start-check";
|
|
10
10
|
var productionDeps = {
|
|
11
11
|
loadSession: /* @__PURE__ */ __name(async () => {
|
|
12
|
-
await import("./tui-
|
|
12
|
+
await import("./tui-IU3SME4U.js");
|
|
13
13
|
await import("./cli-runtime-IJWC2OTK.js");
|
|
14
14
|
}, "loadSession"),
|
|
15
15
|
ptyInstalled: /* @__PURE__ */ __name(() => {
|
|
@@ -56,4 +56,4 @@ export {
|
|
|
56
56
|
START_CHECK_FLAG,
|
|
57
57
|
runStartCheck
|
|
58
58
|
};
|
|
59
|
-
//# sourceMappingURL=chunk-
|
|
59
|
+
//# sourceMappingURL=chunk-FNMBBC26.js.map
|
|
@@ -332,7 +332,7 @@ import {
|
|
|
332
332
|
} from "./chunk-KP4H7FJ7.js";
|
|
333
333
|
import {
|
|
334
334
|
startAutoUpdate
|
|
335
|
-
} from "./chunk-
|
|
335
|
+
} from "./chunk-MEIMXALZ.js";
|
|
336
336
|
import {
|
|
337
337
|
readManifest
|
|
338
338
|
} from "./chunk-AK2U3N2A.js";
|
|
@@ -28904,6 +28904,16 @@ function railShowsMain(agentCount, viewingId, compact2 = false) {
|
|
|
28904
28904
|
return compact2 || agentCount > 0 || viewingId !== void 0 && viewingId !== null;
|
|
28905
28905
|
}
|
|
28906
28906
|
__name(railShowsMain, "railShowsMain");
|
|
28907
|
+
function railStep(input, key) {
|
|
28908
|
+
if (key.upArrow) return -1;
|
|
28909
|
+
if (key.downArrow) return 1;
|
|
28910
|
+
if (key.ctrl === true && !key.meta) {
|
|
28911
|
+
if (input === "p") return -1;
|
|
28912
|
+
if (input === "n") return 1;
|
|
28913
|
+
}
|
|
28914
|
+
return void 0;
|
|
28915
|
+
}
|
|
28916
|
+
__name(railStep, "railStep");
|
|
28907
28917
|
function railTypedText(input, key) {
|
|
28908
28918
|
if (input.length === 0 || key.ctrl || key.meta) return void 0;
|
|
28909
28919
|
if (key.escape || key.return || key.tab || key.backspace || key.delete || key.upArrow || key.downArrow || key.leftArrow || key.rightArrow || key.pageUp || key.pageDown || key.home || key.end)
|
|
@@ -32657,6 +32667,7 @@ function Composer({
|
|
|
32657
32667
|
draftToRestore = null,
|
|
32658
32668
|
onDraftRestored,
|
|
32659
32669
|
onDraftPresenceChange,
|
|
32670
|
+
onHistorySearchChange,
|
|
32660
32671
|
onOpenAgentPanel,
|
|
32661
32672
|
onOpenAgents,
|
|
32662
32673
|
onOpenWorkspaces,
|
|
@@ -32690,6 +32701,12 @@ function Composer({
|
|
|
32690
32701
|
const killBufferRef = (0, import_react42.useRef)("");
|
|
32691
32702
|
const [selected, setSelected] = (0, import_react42.useState)(0);
|
|
32692
32703
|
const selectedRef = (0, import_react42.useRef)(0);
|
|
32704
|
+
const [menuClosedFor, setMenuClosedForState] = (0, import_react42.useState)(null);
|
|
32705
|
+
const menuClosedForRef = (0, import_react42.useRef)(null);
|
|
32706
|
+
const setMenuClosedFor = (0, import_react42.useCallback)((next) => {
|
|
32707
|
+
menuClosedForRef.current = next;
|
|
32708
|
+
setMenuClosedForState(next);
|
|
32709
|
+
}, []);
|
|
32693
32710
|
const pasteStoreRef = (0, import_react42.useRef)(/* @__PURE__ */ new Map());
|
|
32694
32711
|
const nextPasteIdRef = (0, import_react42.useRef)(1);
|
|
32695
32712
|
const [queuedHintEpisode, setQueuedHintEpisode] = (0, import_react42.useState)(() => ({
|
|
@@ -32773,16 +32790,26 @@ function Composer({
|
|
|
32773
32790
|
);
|
|
32774
32791
|
if (kept.length !== attachmentsRef.current.length) replaceAttachments(kept);
|
|
32775
32792
|
}, [idFor, replaceAttachments, value]);
|
|
32793
|
+
(0, import_react42.useEffect)(() => {
|
|
32794
|
+
if (menuClosedForRef.current !== null && menuClosedForRef.current !== value)
|
|
32795
|
+
setMenuClosedFor(null);
|
|
32796
|
+
}, [setMenuClosedFor, value]);
|
|
32797
|
+
const searching = historySearch !== null && !escapeInterrupts;
|
|
32798
|
+
(0, import_react42.useEffect)(() => {
|
|
32799
|
+
onHistorySearchChange?.(searching);
|
|
32800
|
+
return () => onHistorySearchChange?.(false);
|
|
32801
|
+
}, [onHistorySearchChange, searching]);
|
|
32776
32802
|
(0, import_react42.useEffect)(() => {
|
|
32777
32803
|
const hasDraft = value.trim().length > 0 || attachments.length > 0;
|
|
32778
32804
|
if (hasDraft === draftPresenceRef.current) return;
|
|
32779
32805
|
draftPresenceRef.current = hasDraft;
|
|
32780
32806
|
onDraftPresenceChange?.(hasDraft);
|
|
32781
32807
|
}, [attachments.length, onDraftPresenceChange, value]);
|
|
32782
|
-
const
|
|
32808
|
+
const menuClosed = menuClosedFor === value;
|
|
32809
|
+
const commandSuggestions = plainText2 || menuClosed ? [] : matchSlashCommands(value, userCommands, builtins);
|
|
32783
32810
|
const argumentHint = plainText2 ? void 0 : argumentHintFor(value, userCommands);
|
|
32784
32811
|
const activeMention = activeFileMention(value, cursor);
|
|
32785
|
-
const fileSuggestions = activeMention ? matchMentionSuggestions(activeMention.query, mentionCandidates, mentionExtras) : [];
|
|
32812
|
+
const fileSuggestions = activeMention && !menuClosed ? matchMentionSuggestions(activeMention.query, mentionCandidates, mentionExtras) : [];
|
|
32786
32813
|
const suggestionKind = commandSuggestions.length > 0 ? "command" : fileSuggestions.length > 0 ? "file" : null;
|
|
32787
32814
|
const suggestionCount = suggestionKind === "command" ? commandSuggestions.length : fileSuggestions.length;
|
|
32788
32815
|
const suggestionWindow = suggestionWindowSize(terminal.rows);
|
|
@@ -33215,8 +33242,9 @@ function Composer({
|
|
|
33215
33242
|
return;
|
|
33216
33243
|
}
|
|
33217
33244
|
}
|
|
33218
|
-
const
|
|
33219
|
-
const
|
|
33245
|
+
const liveMenuClosed = menuClosedForRef.current === valueRef.current;
|
|
33246
|
+
const liveCommandSuggestions = plainText2 || liveMenuClosed ? [] : matchSlashCommands(valueRef.current, userCommands, builtins);
|
|
33247
|
+
const liveMention = liveMenuClosed ? null : activeFileMention(valueRef.current, cursorRef.current);
|
|
33220
33248
|
const liveFileSuggestions = liveMention ? matchMentionSuggestions(liveMention.query, mentionCandidates, mentionExtras) : [];
|
|
33221
33249
|
const liveSuggestionKind = liveCommandSuggestions.length > 0 ? "command" : liveFileSuggestions.length > 0 ? "file" : null;
|
|
33222
33250
|
const liveSuggestionCount = liveSuggestionKind === "command" ? liveCommandSuggestions.length : liveFileSuggestions.length;
|
|
@@ -33415,23 +33443,30 @@ function Composer({
|
|
|
33415
33443
|
}
|
|
33416
33444
|
if (isAction("chat:queue", input, key)) {
|
|
33417
33445
|
if (plainText2) return;
|
|
33446
|
+
if (liveMenuClosed) {
|
|
33447
|
+
setMenuClosedFor(null);
|
|
33448
|
+
return;
|
|
33449
|
+
}
|
|
33418
33450
|
if (acceptSuggestion()) return;
|
|
33419
33451
|
submit("queue");
|
|
33420
33452
|
return;
|
|
33421
33453
|
}
|
|
33454
|
+
if (historySearchRef.current && !escapeInterrupts && isAction("app:interrupt", input, key)) {
|
|
33455
|
+
const before = historySearchRef.current.draft;
|
|
33456
|
+
setHistorySearch(null);
|
|
33457
|
+
setBuffer(before.value, before.cursor, "typed", before.spans);
|
|
33458
|
+
return;
|
|
33459
|
+
}
|
|
33422
33460
|
if (isAction("chat:cancel", input, key)) {
|
|
33423
33461
|
if (escapeInterrupts) return;
|
|
33424
|
-
|
|
33425
|
-
if (activeSearch) {
|
|
33426
|
-
setBuffer(
|
|
33427
|
-
activeSearch.draft.value,
|
|
33428
|
-
activeSearch.draft.cursor,
|
|
33429
|
-
"typed",
|
|
33430
|
-
activeSearch.draft.spans
|
|
33431
|
-
);
|
|
33462
|
+
if (historySearchRef.current) {
|
|
33432
33463
|
setHistorySearch(null);
|
|
33433
33464
|
return;
|
|
33434
33465
|
}
|
|
33466
|
+
if (hasLiveSuggestions) {
|
|
33467
|
+
setMenuClosedFor(valueRef.current);
|
|
33468
|
+
return;
|
|
33469
|
+
}
|
|
33435
33470
|
const empty = valueRef.current.length === 0 && attachmentsRef.current.length === 0;
|
|
33436
33471
|
if (empty && onEditPrevious) {
|
|
33437
33472
|
if (editPreviousTimerRef.current) {
|
|
@@ -33616,7 +33651,7 @@ function Composer({
|
|
|
33616
33651
|
}
|
|
33617
33652
|
verticalColumnRef.current = null;
|
|
33618
33653
|
if (historyIndexRef.current < 0) {
|
|
33619
|
-
if (
|
|
33654
|
+
if (attachmentsRef.current.length === 0) {
|
|
33620
33655
|
onOpenAgentPanel?.();
|
|
33621
33656
|
}
|
|
33622
33657
|
return;
|
|
@@ -33792,7 +33827,7 @@ function Composer({
|
|
|
33792
33827
|
" ",
|
|
33793
33828
|
historySearch.position < 0 ? `draft \xB7 ${historySearch.matches.length} match${historySearch.matches.length === 1 ? "" : "es"}` : `${historySearch.position + 1}/${historySearch.matches.length}`,
|
|
33794
33829
|
" ",
|
|
33795
|
-
"\xB7 Ctrl+R older \xB7 Ctrl+S newer \xB7 Esc restore"
|
|
33830
|
+
"\xB7 Ctrl+R older \xB7 Ctrl+S newer \xB7 Esc keep \xB7 Ctrl+C restore"
|
|
33796
33831
|
] }) }) : null,
|
|
33797
33832
|
suggestionKind === "command" ? /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(Box_default, { flexDirection: "column", paddingTop: 1, width: "100%", children: [
|
|
33798
33833
|
visibleCommandSuggestions.map((cmd, i) => {
|
|
@@ -48504,6 +48539,10 @@ ${blocks.join("\n\n")}`;
|
|
|
48504
48539
|
}, []);
|
|
48505
48540
|
const [composerDraft, setComposerDraft] = (0, import_react60.useState)(null);
|
|
48506
48541
|
const [composerHasDraft, setComposerHasDraft] = (0, import_react60.useState)(false);
|
|
48542
|
+
const composerSearchingRef = (0, import_react60.useRef)(false);
|
|
48543
|
+
const setComposerSearching = (0, import_react60.useCallback)((searching) => {
|
|
48544
|
+
composerSearchingRef.current = searching;
|
|
48545
|
+
}, []);
|
|
48507
48546
|
const liveStreamRef = (0, import_react60.useRef)(null);
|
|
48508
48547
|
const [handoffPark, setHandoffParkState] = (0, import_react60.useState)(null);
|
|
48509
48548
|
const handoffParkRef = (0, import_react60.useRef)(null);
|
|
@@ -48753,6 +48792,7 @@ ${blocks.join("\n\n")}`;
|
|
|
48753
48792
|
setRailFocus(first);
|
|
48754
48793
|
return;
|
|
48755
48794
|
}
|
|
48795
|
+
if (composerHasDraftRef.current) return;
|
|
48756
48796
|
void openAgentCockpit();
|
|
48757
48797
|
}, [openAgentCockpit, setRailFocus]);
|
|
48758
48798
|
const openBackgroundTasks = (0, import_react60.useCallback)(() => {
|
|
@@ -52394,7 +52434,7 @@ ${blocks.join("\n\n")}`;
|
|
|
52394
52434
|
doctorRunningRef.current = true;
|
|
52395
52435
|
const progressId = pushMessage("system", "Checking\u2026");
|
|
52396
52436
|
try {
|
|
52397
|
-
const { runLiveDoctor } = await import("./live-
|
|
52437
|
+
const { runLiveDoctor } = await import("./live-P6HSBLJ5.js");
|
|
52398
52438
|
const { describePlainDoctor } = await import("./plain-report-XVPBQDLE.js");
|
|
52399
52439
|
const report = await runLiveDoctor({
|
|
52400
52440
|
...ctxRef.current.telemetry ? { telemetry: ctxRef.current.telemetry } : {}
|
|
@@ -59099,8 +59139,18 @@ ${plugins.map((plugin) => {
|
|
|
59099
59139
|
} else if (chordPending && isChordAction("chat:killAgents", input, key)) {
|
|
59100
59140
|
requestStopAllAgents();
|
|
59101
59141
|
return;
|
|
59102
|
-
} else if (key
|
|
59103
|
-
const
|
|
59142
|
+
} else if (railStep(input, key) !== void 0) {
|
|
59143
|
+
const step = railStep(input, key);
|
|
59144
|
+
if (step === -1 && at === 0) {
|
|
59145
|
+
setRailFocus(null);
|
|
59146
|
+
return;
|
|
59147
|
+
}
|
|
59148
|
+
if (step === 1 && at === ids.length - 1 && railTarget === SHELLS_FOCUS) {
|
|
59149
|
+
setRailFocus(null);
|
|
59150
|
+
openBackgroundTasks();
|
|
59151
|
+
return;
|
|
59152
|
+
}
|
|
59153
|
+
const index = at + (step ?? 0);
|
|
59104
59154
|
setRailFocus(ids[Math.max(0, Math.min(ids.length - 1, index))] ?? ids[0] ?? null);
|
|
59105
59155
|
return;
|
|
59106
59156
|
} else if (key.return) {
|
|
@@ -59602,6 +59652,7 @@ ${plugins.map((plugin) => {
|
|
|
59602
59652
|
armExit("Ctrl-D");
|
|
59603
59653
|
return;
|
|
59604
59654
|
}
|
|
59655
|
+
if (isAction("app:interrupt", input, key) && composerSearchingRef.current) return;
|
|
59605
59656
|
if (isAction("app:interrupt", input, key)) {
|
|
59606
59657
|
if (interruptWithRow(false)) return;
|
|
59607
59658
|
const stoppable = stoppableBackgroundAgents(railRowsRef.current);
|
|
@@ -60086,6 +60137,7 @@ ${plugins.map((plugin) => {
|
|
|
60086
60137
|
draftToRestore: composerDraft,
|
|
60087
60138
|
onDraftRestored: (token) => setComposerDraft((draft) => draft?.token === token ? null : draft),
|
|
60088
60139
|
onDraftPresenceChange: setComposerHasDraft,
|
|
60140
|
+
onHistorySearchChange: setComposerSearching,
|
|
60089
60141
|
onOpenAgentPanel: focusAgentRail,
|
|
60090
60142
|
onOpenAgents: () => void openAgentCockpit(),
|
|
60091
60143
|
onOpenWorkspaces: onOpenWorkspaces ? () => void onOpenWorkspaces().then((opened) => {
|
|
@@ -60713,4 +60765,4 @@ react/cjs/react-jsx-runtime.production.js:
|
|
|
60713
60765
|
* LICENSE file in the root directory of this source tree.
|
|
60714
60766
|
*)
|
|
60715
60767
|
*/
|
|
60716
|
-
//# sourceMappingURL=chunk-
|
|
60768
|
+
//# sourceMappingURL=chunk-K6ZJ2G2V.js.map
|