Fügt CLI-Toolverwaltung und erweiterte UI-Funktionen hinzu

Ermöglicht die Verwaltung (Erstellen, Auflisten, Ausführen) von Tools über eine Befehlszeilenschnittstelle für Automatisierung und Integration. Die Benutzeroberfläche wurde mit dedizierten Ansichten für Toolerstellung und -bearbeitung, In-App-Lua-Hilfe sowie kontextsensitiven Menüs erweitert. Neue Abhängigkeiten (CLI11, rang) wurden integriert und eine umfassende Testsuite hinzugefügt. Die Lizenzierung wurde auf AGPL-3.0 umgestellt und ein Kontributionsleitfaden bereitgestellt.
This commit is contained in:
2026-07-17 17:22:15 +02:00
parent 074fa73992
commit c611b008af
45 changed files with 5501 additions and 709 deletions
+33
View File
@@ -0,0 +1,33 @@
(function (root, factory) {
const api = factory();
if (typeof module === 'object' && module.exports) {
module.exports = api;
}
root.ToolRuntime = api;
}(typeof globalThis !== 'undefined' ? globalThis : this, function () {
'use strict';
function initialRunning(item) {
return item?.singleInstance === true && item?.running === true;
}
function isCardRunBlocked(card) {
return card?.dataset?.runDisabled === 'true';
}
function applyCardState(card, running) {
if (!card) {
return;
}
const active = running === true;
card.classList.toggle('tool-running', active);
card.dataset.runDisabled = active ? 'true' : 'false';
card.setAttribute('aria-busy', active ? 'true' : 'false');
const status = card.querySelector('.tool-running-status');
if (status) {
status.hidden = !active;
}
}
return { initialRunning, isCardRunBlocked, applyCardState };
}));