MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / agentActive

Function agentActive

graph-ui/tools/handtest-fixes-chat.mjs:138–141  ·  view source on GitHub ↗
(page, timeout = 300000)

Source from the content-addressed store, hash-verified

136}
137const agentLabel = (page) => page.locator('.atlas-browser-ai-action').first().getAttribute('aria-label').catch(() => '');
138async function agentActive(page, timeout = 300000) {
139 return page.waitForFunction(() => /Agent active/.test(document.querySelector('.atlas-browser-ai-action')?.getAttribute('aria-label') ?? ''), null, { timeout })
140 .then(() => true).catch(() => false);
141}
142async function openConfig(page) {
143 if (!(await page.locator('dialog.cbm-agent-settings').count())) await page.locator('.atlas-browser-ai-action').first().click();
144 await page.locator('dialog.cbm-agent-settings').waitFor({ timeout: 10000 });

Callers 3

loadModelFunction · 0.85
k10Function · 0.85
k24SituationsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected