@eminent337/aery 0.1.103 → 0.1.105

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.
@@ -9,6 +9,7 @@ import * as path from "node:path";
9
9
  import { getProviders } from "@eminent337/aery-ai";
10
10
  import { CombinedAutocompleteProvider, Container, fuzzyFilter, Loader, Markdown, matchesKey, ProcessTerminal, Spacer, setKeybindings, Text, TruncatedText, TUI, visibleWidth, } from "@eminent337/aery-tui";
11
11
  import { spawn, spawnSync } from "child_process";
12
+ import { collectCapabilitiesReport, formatCapabilitiesReport } from "../../cli/capabilities.js";
12
13
  import { formatCurrentCoreExtensionsReport } from "../../cli/doctor.js";
13
14
  import { APP_NAME, getAgentDir, getAuthPath, getDebugLogPath, getShareViewerUrl, getUpdateInstruction, VERSION, } from "../../config.js";
14
15
  import { parseSkillBlock } from "../../core/agent-session.js";
@@ -2036,6 +2037,11 @@ export class InteractiveMode {
2036
2037
  this.editor.setText("");
2037
2038
  return;
2038
2039
  }
2040
+ if (text === "/capabilities") {
2041
+ this.handleCapabilitiesCommand();
2042
+ this.editor.setText("");
2043
+ return;
2044
+ }
2039
2045
  if (text === "/changelog") {
2040
2046
  this.handleChangelogCommand();
2041
2047
  this.editor.setText("");
@@ -4301,6 +4307,15 @@ export class InteractiveMode {
4301
4307
  this.chatContainer.addChild(new Text(formatCurrentCoreExtensionsReport(), 1, 0));
4302
4308
  this.ui.requestRender();
4303
4309
  }
4310
+ handleCapabilitiesCommand() {
4311
+ const report = collectCapabilitiesReport({
4312
+ session: this.session,
4313
+ services: this.runtimeHost.services,
4314
+ });
4315
+ this.chatContainer.addChild(new Spacer(1));
4316
+ this.chatContainer.addChild(new Text(formatCapabilitiesReport(report), 1, 0));
4317
+ this.ui.requestRender();
4318
+ }
4304
4319
  /**
4305
4320
  * Capitalize keybinding for display (e.g., "ctrl+c" -> "Ctrl+C").
4306
4321
  */