@akon-labs/nexus-cli 0.1.6 → 0.1.7

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.
@@ -2391,11 +2391,6 @@ export class InteractiveMode {
2391
2391
  this.editor.setText("");
2392
2392
  return;
2393
2393
  }
2394
- if (text === "/hotkeys") {
2395
- this.handleHotkeysCommand();
2396
- this.editor.setText("");
2397
- return;
2398
- }
2399
2394
  if (text === "/theme") {
2400
2395
  this.showThemeSelector();
2401
2396
  this.editor.setText("");
@@ -5222,123 +5217,6 @@ export class InteractiveMode {
5222
5217
  getAppKeyDisplay(action) {
5223
5218
  return keyDisplayText(action);
5224
5219
  }
5225
- /**
5226
- * Get capitalized display string for an editor keybinding action.
5227
- */
5228
- getEditorKeyDisplay(action) {
5229
- return keyDisplayText(action);
5230
- }
5231
- handleHotkeysCommand() {
5232
- // Navigation keybindings
5233
- const cursorUp = this.getEditorKeyDisplay("tui.editor.cursorUp");
5234
- const cursorDown = this.getEditorKeyDisplay("tui.editor.cursorDown");
5235
- const cursorLeft = this.getEditorKeyDisplay("tui.editor.cursorLeft");
5236
- const cursorRight = this.getEditorKeyDisplay("tui.editor.cursorRight");
5237
- const cursorWordLeft = this.getEditorKeyDisplay("tui.editor.cursorWordLeft");
5238
- const cursorWordRight = this.getEditorKeyDisplay("tui.editor.cursorWordRight");
5239
- const cursorLineStart = this.getEditorKeyDisplay("tui.editor.cursorLineStart");
5240
- const cursorLineEnd = this.getEditorKeyDisplay("tui.editor.cursorLineEnd");
5241
- const jumpForward = this.getEditorKeyDisplay("tui.editor.jumpForward");
5242
- const jumpBackward = this.getEditorKeyDisplay("tui.editor.jumpBackward");
5243
- const pageUp = this.getEditorKeyDisplay("tui.editor.pageUp");
5244
- const pageDown = this.getEditorKeyDisplay("tui.editor.pageDown");
5245
- // Editing keybindings
5246
- const submit = this.getEditorKeyDisplay("tui.input.submit");
5247
- const newLine = this.getEditorKeyDisplay("tui.input.newLine");
5248
- const deleteWordBackward = this.getEditorKeyDisplay("tui.editor.deleteWordBackward");
5249
- const deleteWordForward = this.getEditorKeyDisplay("tui.editor.deleteWordForward");
5250
- const deleteToLineStart = this.getEditorKeyDisplay("tui.editor.deleteToLineStart");
5251
- const deleteToLineEnd = this.getEditorKeyDisplay("tui.editor.deleteToLineEnd");
5252
- const yank = this.getEditorKeyDisplay("tui.editor.yank");
5253
- const yankPop = this.getEditorKeyDisplay("tui.editor.yankPop");
5254
- const undo = this.getEditorKeyDisplay("tui.editor.undo");
5255
- const tab = this.getEditorKeyDisplay("tui.input.tab");
5256
- // App keybindings
5257
- const interrupt = this.getAppKeyDisplay("app.interrupt");
5258
- const clear = this.getAppKeyDisplay("app.clear");
5259
- const exit = this.getAppKeyDisplay("app.exit");
5260
- const suspend = this.getAppKeyDisplay("app.suspend");
5261
- const cycleThinkingLevel = this.getAppKeyDisplay("app.thinking.cycle");
5262
- const cycleModelForward = this.getAppKeyDisplay("app.model.cycleForward");
5263
- const selectModel = this.getAppKeyDisplay("app.model.select");
5264
- const expandTools = this.getAppKeyDisplay("app.tools.expand");
5265
- const toggleThinking = this.getAppKeyDisplay("app.thinking.toggle");
5266
- const externalEditor = this.getAppKeyDisplay("app.editor.external");
5267
- const cycleModelBackward = this.getAppKeyDisplay("app.model.cycleBackward");
5268
- const copyMessage = this.getAppKeyDisplay("app.message.copy");
5269
- const followUp = this.getAppKeyDisplay("app.message.followUp");
5270
- const dequeue = this.getAppKeyDisplay("app.message.dequeue");
5271
- const pasteImage = this.getAppKeyDisplay("app.clipboard.pasteImage");
5272
- let hotkeys = `
5273
- **Navigation**
5274
- | Key | Action |
5275
- |-----|--------|
5276
- | \`${cursorUp}\` / \`${cursorDown}\` / \`${cursorLeft}\` / \`${cursorRight}\` | Move cursor / browse history |
5277
- | \`${cursorWordLeft}\` / \`${cursorWordRight}\` | Move by word |
5278
- | \`${cursorLineStart}\` | Start of line |
5279
- | \`${cursorLineEnd}\` | End of line |
5280
- | \`${jumpForward}\` | Jump forward to character |
5281
- | \`${jumpBackward}\` | Jump backward to character |
5282
- | \`${pageUp}\` / \`${pageDown}\` | Scroll by page |
5283
-
5284
- **Editing**
5285
- | Key | Action |
5286
- |-----|--------|
5287
- | \`${submit}\` | Send message |
5288
- | \`${newLine}\` | New line${process.platform === "win32" ? " (Ctrl+Enter on Windows Terminal)" : ""} |
5289
- | \`${deleteWordBackward}\` | Delete word backwards |
5290
- | \`${deleteWordForward}\` | Delete word forwards |
5291
- | \`${deleteToLineStart}\` | Delete to start of line |
5292
- | \`${deleteToLineEnd}\` | Delete to end of line |
5293
- | \`${yank}\` | Paste the most-recently-deleted text |
5294
- | \`${yankPop}\` | Cycle through the deleted text after pasting |
5295
- | \`${undo}\` | Undo |
5296
-
5297
- **Other**
5298
- | Key | Action |
5299
- |-----|--------|
5300
- | \`${tab}\` | Path completion / accept autocomplete |
5301
- | \`${interrupt}\` | Cancel autocomplete / abort streaming |
5302
- | \`${clear}\` | Clear editor (first) / exit (second) |
5303
- | \`${exit}\` | Exit (when editor is empty) |
5304
- | \`${suspend}\` | Suspend to background |
5305
- | \`${cycleThinkingLevel}\` | Cycle thinking level |
5306
- | \`${cycleModelForward}\` / \`${cycleModelBackward}\` | Cycle models |
5307
- | \`${selectModel}\` | Open model selector |
5308
- | \`${expandTools}\` | Toggle tool output expansion |
5309
- | \`${toggleThinking}\` | Toggle thinking block visibility |
5310
- | \`${externalEditor}\` | Edit message in external editor |
5311
- | \`${copyMessage}\` | Copy last assistant message |
5312
- | \`${followUp}\` | Queue follow-up message |
5313
- | \`${dequeue}\` | Restore queued messages |
5314
- | \`${pasteImage}\` | Paste image or text from clipboard |
5315
- | \`/\` | Slash commands |
5316
- | \`!\` | Run bash command |
5317
- | \`!!\` | Run bash command (excluded from context) |
5318
- `;
5319
- // Add extension-registered shortcuts
5320
- const extensionRunner = this.session.extensionRunner;
5321
- const shortcuts = extensionRunner.getShortcuts(this.keybindings.getEffectiveConfig());
5322
- if (shortcuts.size > 0) {
5323
- hotkeys += `
5324
- **Extensions**
5325
- | Key | Action |
5326
- |-----|--------|
5327
- `;
5328
- for (const [key, shortcut] of shortcuts) {
5329
- const description = shortcut.description ?? shortcut.extensionPath;
5330
- const keyDisplay = formatKeyText(key, { capitalize: true });
5331
- hotkeys += `| \`${keyDisplay}\` | ${description} |\n`;
5332
- }
5333
- }
5334
- this.chatContainer.addChild(new Spacer(1));
5335
- this.chatContainer.addChild(new DynamicBorder());
5336
- this.chatContainer.addChild(new Text(theme.bold(theme.fg("accent", "Keyboard Shortcuts")), 1, 0));
5337
- this.chatContainer.addChild(new Spacer(1));
5338
- this.chatContainer.addChild(new Markdown(hotkeys.trim(), 1, 1, this.getMarkdownThemeWithSettings()));
5339
- this.chatContainer.addChild(new DynamicBorder());
5340
- this.ui.requestRender();
5341
- }
5342
5220
  async handleClearCommand() {
5343
5221
  this.clearStatusIndicator();
5344
5222
  try {