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

Function k11

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

Source from the content-addressed store, hash-verified

333}
334
335async function k11(page) {
336 await open(page, PROJECT, 'galaxy');
337 await galaxyReady(page);
338 await loadModel(page);
339 await openChat(page);
340 await shot(page, 'K11', 'all-graph-before', 'Galaxy shows the whole graph (All graph); nothing is selected.');
341 const mark = await markWorker(page);
342 const german = await ask(page, 'was kannst du mir über den code sagen');
343 const english = await ask(page, 'test');
344 await shot(page, 'K11', 'after-questions', 'Both questions get the chat\'s own reply saying what to select; the model was not asked.');
345 const sent = (await workerMessages(page)).slice(mark).filter((entry) => entry.kind === 'chat' || entry.kind === 'count');
346 check('K11', 'Without context the model is not called and the reply says what to select (de/en)', sent.length === 0
347 && /Wähle einen Knoten in Galaxy oder einen Teil in Architecture, oder öffne eine Datei in Explore/.test(german) && /Select a node in Galaxy or a part in Architecture, or open a file in Explore/.test(english),
348 { workerMessages: sent.length, german: german.slice(0, 220), english: english.slice(0, 200) });
349}
350
351async function openWorkflowFile(page) {
352 await open(page, PROJECT, 'explore');

Callers

nothing calls this directly

Calls 9

loadModelFunction · 0.85
openChatFunction · 0.85
markWorkerFunction · 0.85
workerMessagesFunction · 0.85
openFunction · 0.70
galaxyReadyFunction · 0.70
shotFunction · 0.70
askFunction · 0.70
checkFunction · 0.70

Tested by

no test coverage detected