@eminent337/aery 0.1.103 → 0.1.104
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/args.d.ts.map +1 -1
- package/dist/cli/args.js +1 -0
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/capabilities.d.ts +56 -0
- package/dist/cli/capabilities.d.ts.map +1 -0
- package/dist/cli/capabilities.js +140 -0
- package/dist/cli/capabilities.js.map +1 -0
- package/dist/core/slash-commands.d.ts.map +1 -1
- package/dist/core/slash-commands.js +1 -0
- package/dist/core/slash-commands.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +4 -0
- package/dist/main.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +1 -0
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +15 -0
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/package.json +3 -3
|
@@ -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
|
*/
|