@stackmemoryai/stackmemory
Version:
Project-scoped memory for AI coding tools. Durable context across sessions with MCP integration, frames, smart retrieval, Claude Code skills, and automatic hooks.
53 lines (52 loc) • 2.41 kB
JavaScript
import { fileURLToPath as __fileURLToPath } from 'url';
import { dirname as __pathDirname } from 'path';
const __filename = __fileURLToPath(import.meta.url);
const __dirname = __pathDirname(__filename);
import "dotenv/config";
import { SwarmTUI } from "../src/features/tui/swarm-monitor.js";
import { logger } from "../src/core/monitoring/logger.js";
console.log("\u{1F9EA} TUI Shortcuts Test Guide");
console.log("============================");
console.log("");
console.log("This will launch the TUI. Test these keyboard shortcuts:");
console.log("");
console.log("\u{1F4CB} Test Checklist:");
console.log(" [ ] q - Quit TUI (should exit cleanly)");
console.log(" [ ] Esc - Alternative quit (should exit cleanly)");
console.log(" [ ] Ctrl+C - Force quit (should exit cleanly)");
console.log(' [ ] r - Refresh data (should show "Manual refresh triggered")');
console.log(" [ ] h - Show help (should display full help in logs)");
console.log(" [ ] c - Clear logs (should clear log area and show confirmation)");
console.log(" [ ] d - Detect swarms (should show registry status and process info)");
console.log(" [ ] s - Start swarm help (should show example commands)");
console.log(" [ ] t - Stop swarm (should show appropriate message)");
console.log("");
console.log("\u{1F3AF} Expected Behavior:");
console.log(" - All shortcuts should work without errors");
console.log(" - Log messages should appear in the bottom panel");
console.log(" - Help text should be comprehensive");
console.log(" - Detection should show registry and external processes");
console.log(" - Interface should remain responsive");
console.log("");
console.log("Press Enter to launch TUI...");
await new Promise((resolve) => {
process.stdin.once("data", resolve);
});
async function testTUIShortcuts() {
try {
console.log("\u{1F680} Launching TUI for shortcut testing...");
const tui = new SwarmTUI();
await tui.initialize();
tui.start();
console.log("\u2705 TUI launched successfully");
console.log("\u{1F4DD} Test each keyboard shortcut systematically");
console.log('\u{1F3C1} Use "q" to quit when testing is complete');
} catch (error) {
logger.error("TUI shortcuts test failed", error);
console.error("\u274C TUI shortcuts test failed:", error.message);
process.exit(1);
}
}
testTUIShortcuts();
//# sourceMappingURL=test-tui-shortcuts.js.map