@llmist/cli 15.7.0 → 15.8.0

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/cli.js CHANGED
@@ -98,7 +98,7 @@ import { Command, InvalidArgumentError as InvalidArgumentError2 } from "commande
98
98
  // package.json
99
99
  var package_default = {
100
100
  name: "@llmist/cli",
101
- version: "15.7.0",
101
+ version: "15.8.0",
102
102
  description: "CLI for llmist - run LLM agents from the command line",
103
103
  type: "module",
104
104
  main: "dist/cli.js",
@@ -154,7 +154,7 @@ var package_default = {
154
154
  node: ">=22.0.0"
155
155
  },
156
156
  dependencies: {
157
- llmist: "^15.7.0",
157
+ llmist: "^15.8.0",
158
158
  "@unblessed/node": "^1.0.0-alpha.23",
159
159
  chalk: "^5.6.2",
160
160
  commander: "^12.1.0",
@@ -168,7 +168,7 @@ var package_default = {
168
168
  zod: "^4.1.12"
169
169
  },
170
170
  devDependencies: {
171
- "@llmist/testing": "^15.7.0",
171
+ "@llmist/testing": "^15.8.0",
172
172
  "@types/diff": "^8.0.0",
173
173
  "@types/js-yaml": "^4.0.9",
174
174
  "@types/marked-terminal": "^6.1.1",
@@ -6226,10 +6226,16 @@ var InputHandler = class {
6226
6226
  ctrlJCallback = null;
6227
6227
  /** Callback when Ctrl+P is pressed (cycle profiles) */
6228
6228
  ctrlPCallback = null;
6229
+ /** Callback when Arrow Up is pressed (scroll up in focused mode) */
6230
+ arrowUpCallback = null;
6231
+ /** Callback when Arrow Down is pressed (scroll down in focused mode) */
6232
+ arrowDownCallback = null;
6229
6233
  /** Callback for mid-session input (user submits while agent is running) */
6230
6234
  midSessionHandler = null;
6231
6235
  /** Callback to check current focus mode (to avoid conflicts with browse mode) */
6232
6236
  getFocusModeCallback = null;
6237
+ /** Callback to check current content filter mode */
6238
+ getContentFilterModeCallback = null;
6233
6239
  /** Body height when input bar is visible */
6234
6240
  bodyHeightWithInput;
6235
6241
  /** Body height when input bar is hidden (browse mode) */
@@ -6280,6 +6286,16 @@ var InputHandler = class {
6280
6286
  this.ctrlPCallback();
6281
6287
  }
6282
6288
  });
6289
+ this.inputBar.key(["up"], () => {
6290
+ if (this.getContentFilterModeCallback?.() === "focused" && this.arrowUpCallback) {
6291
+ this.arrowUpCallback();
6292
+ }
6293
+ });
6294
+ this.inputBar.key(["down"], () => {
6295
+ if (this.getContentFilterModeCallback?.() === "focused" && this.arrowDownCallback) {
6296
+ this.arrowDownCallback();
6297
+ }
6298
+ });
6283
6299
  this.inputBar.key(["C-s"], () => {
6284
6300
  const currentValue = this.inputBar.getValue();
6285
6301
  this.openEditorForInput(currentValue);
@@ -6330,6 +6346,26 @@ var InputHandler = class {
6330
6346
  onCtrlP(callback) {
6331
6347
  this.ctrlPCallback = callback;
6332
6348
  }
6349
+ /**
6350
+ * Set callback for Arrow Up events (scroll up in focused mode).
6351
+ */
6352
+ onArrowUp(callback) {
6353
+ this.arrowUpCallback = callback;
6354
+ }
6355
+ /**
6356
+ * Set callback for Arrow Down events (scroll down in focused mode).
6357
+ */
6358
+ onArrowDown(callback) {
6359
+ this.arrowDownCallback = callback;
6360
+ }
6361
+ /**
6362
+ * Set callback to check content filter mode.
6363
+ * Used to determine if arrow keys should scroll (focused mode)
6364
+ * or move cursor (full mode).
6365
+ */
6366
+ setGetContentFilterMode(callback) {
6367
+ this.getContentFilterModeCallback = callback;
6368
+ }
6333
6369
  /**
6334
6370
  * Set handler for mid-session input.
6335
6371
  * Called when user submits input while an agent session is running
@@ -7963,7 +7999,30 @@ var TUIApp = class _TUIApp {
7963
7999
  inputHandler.onCtrlI(() => keyboardManager.handleForwardedKey("C-i"));
7964
8000
  inputHandler.onCtrlJ(() => keyboardManager.handleForwardedKey("C-j"));
7965
8001
  inputHandler.onCtrlP(() => keyboardManager.handleForwardedKey("C-p"));
8002
+ inputHandler.onArrowUp(() => {
8003
+ handleKeyAction(
8004
+ { type: "scroll_line", direction: -1 },
8005
+ controller,
8006
+ blockRenderer,
8007
+ statusBar,
8008
+ screenCtx,
8009
+ modalManager,
8010
+ layout
8011
+ );
8012
+ });
8013
+ inputHandler.onArrowDown(() => {
8014
+ handleKeyAction(
8015
+ { type: "scroll_line", direction: 1 },
8016
+ controller,
8017
+ blockRenderer,
8018
+ statusBar,
8019
+ screenCtx,
8020
+ modalManager,
8021
+ layout
8022
+ );
8023
+ });
7966
8024
  inputHandler.setGetFocusMode(() => controller.getFocusMode());
8025
+ inputHandler.setGetContentFilterMode(() => controller.getContentFilterMode());
7967
8026
  layout.body.on("scroll", () => {
7968
8027
  blockRenderer.handleUserScroll();
7969
8028
  });