evOo-local/scripts/check-tools.ts
cynarAI 6c7eed7580 Initial clean evOo-local from f00577b
Fresh history cut from cynarAI/evoo antigravity-handoff/project-timeline
(Voice First + project timeline). Brand docs/titles as evOo; keep @rakazo/*
packages as tech debt. Excludes node_modules, caches, secrets, voice blobs.
2026-09-20 17:15:16 +02:00

31 lines
1009 B
TypeScript

import { selectBuiltinToolsForRun } from "../packages/adapters/src/builtin-agent-tools.js";
import { createDb } from "../packages/db/src/index.js";
async function run() {
const { prisma } = createDb("postgres://ingowagner@127.0.0.1:5432/evoo");
const steve = await prisma.bot.findFirst({ where: { name: "Steve Jobs" } });
const thread = await prisma.thread.findFirst({ where: { botId: steve?.id } });
console.log("Steve:", steve?.id, "thread:", thread?.id);
const tools = selectBuiltinToolsForRun({
graphicalToolsAllowed: false,
pageBrowserAllowed: false,
groupId: thread?.groupId,
trigger: "user",
semanticMemoryEnabled: false,
cloudAgentEnabled: false,
messagingChannelRun: false,
});
console.log(
"Builtin tool names for Steve:",
tools.map((t) => t.name),
);
const hasMessageBot = tools.some((t) => t.name === "message_bot");
console.log("Has message_bot tool?", hasMessageBot);
}
run()
.catch(console.error)
.finally(() => process.exit(0));