@arbidocs/tui 0.3.67 → 0.3.68
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/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -578,6 +578,7 @@ var ToastContainer = class extends piTui.Container {
|
|
|
578
578
|
// src/command-registry.ts
|
|
579
579
|
init_tui_helpers();
|
|
580
580
|
var registry = /* @__PURE__ */ new Map();
|
|
581
|
+
var KNOWN_SERVER_COMMANDS = /* @__PURE__ */ new Set(["pa", "setup", "cold-start"]);
|
|
581
582
|
function registerCommand(def) {
|
|
582
583
|
registry.set(def.name, def);
|
|
583
584
|
}
|
|
@@ -647,6 +648,9 @@ async function dispatchCommand(tui, input2) {
|
|
|
647
648
|
showMessage(tui, meta, "info");
|
|
648
649
|
return false;
|
|
649
650
|
}
|
|
651
|
+
if (KNOWN_SERVER_COMMANDS.has(cmdName)) {
|
|
652
|
+
return false;
|
|
653
|
+
}
|
|
650
654
|
showMessage(tui, `Unknown command: /${cmdName}. Type /help for available commands.`, "warning");
|
|
651
655
|
return true;
|
|
652
656
|
}
|