more tools

This commit is contained in:
Aaron Elijah Mars
2025-06-27 15:01:01 +02:00
parent 76854cc8d0
commit 59b4274b83
7 changed files with 1558 additions and 87 deletions

View File

@@ -11,9 +11,20 @@ let dataSizeInfo = document.getElementById("data-size");
let expandButton = document.getElementById("expand-results");
let jsonViewer = document.getElementById("json-viewer");
// Get initial tool count and page info
const tools = 8; // 6 core automation + 2 essential legacy tools
toolCount.textContent = tools;
// Get dynamic tool count from background script
function updateToolCount() {
if (chrome.runtime?.id) {
chrome.runtime.sendMessage({ action: "getToolCount" }, (response) => {
if (!chrome.runtime.lastError && response?.toolCount) {
toolCount.textContent = response.toolCount;
addLog(`Updated tool count: ${response.toolCount}`, "info");
} else {
// Fallback to calculating from background script
toolCount.textContent = "18"; // Expected total based on background script
}
});
}
}
// Check connection status and get page info
function checkStatus() {
@@ -27,6 +38,9 @@ function checkStatus() {
}
});
// Update tool count
updateToolCount();
// Get current page info
chrome.tabs.query({active: true, currentWindow: true}, (tabs) => {
if (tabs[0]) {