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

Function loadModel

graph-ui/tools/handtest-fixes-chat.mjs:151–159  ·  view source on GitHub ↗
(page)

Source from the content-addressed store, hash-verified

149 await wait(300);
150}
151async function loadModel(page) {
152 if (/Agent active/.test(await agentLabel(page) ?? '')) return true;
153 await openConfig(page);
154 const load = page.locator('dialog.cbm-agent-settings button').filter({ hasText: /^(Load model|Download & load|Reload model)/ });
155 if (await load.count()) await load.first().click();
156 const ok = await agentActive(page);
157 await closeConfig(page);
158 return ok;
159}
160async function openChat(page) {
161 const toggle = page.getByRole('button', { name: 'Open chat' });
162 if (await toggle.count()) { await toggle.first().click(); await wait(800); }

Callers 7

galaxyWithJsonbFunction · 0.85
k11Function · 0.85
k17Function · 0.85
k14Function · 0.85
k12Function · 0.85
k10Function · 0.85
k24Function · 0.85

Calls 5

agentLabelFunction · 0.85
openConfigFunction · 0.85
agentActiveFunction · 0.85
closeConfigFunction · 0.85
countMethod · 0.80

Tested by

no test coverage detected