Something went wrong. Try again.
fork of prime agent with changes i want but are not upstreamable probqbly (and some fixes)
Something went wrong. Try again.
2.0 kB · 50 lines
TypeScript
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051import { fileURLToPath } from "node:url";import { defineConfig } from "vitest/config";
const aiSrcIndex = fileURLToPath(new URL("../ai/src/index.ts", import.meta.url));const aiSrcOAuth = fileURLToPath(new URL("../ai/src/oauth.ts", import.meta.url));const aiSrcMcp = fileURLToPath(new URL("../ai/src/mcp.ts", import.meta.url));const agentSrcIndex = fileURLToPath(new URL("../agent/src/index.ts", import.meta.url));const tuiSrcIndex = fileURLToPath(new URL("../tui/src/index.ts", import.meta.url));
export default defineConfig({ test: { globals: true, environment: "node", testTimeout: 30000, env: { DO_NOT_TRACK: "1" }, tags: [ { name: "process-stress", description: "Slow real-process stress and wall-clock scheduling coverage", }, { name: "kernel-heavy", description: "Boots a real Python kernel and syncs skills into the shared venv", }, ], // Kernel-heavy tests are excluded from the default sharded run: several files // booting real kernels in one shard starve the neighbouring kernel tests that // rely on the 30s default timeout. `test:kernel` runs them on their own. tagsFilter: ["!process-stress", "!kernel-heavy"], server: { deps: { external: [/@silvia-odwyer\/photon-node/], }, }, }, resolve: { alias: [ { find: /^@earendil-works\/pi-ai$/, replacement: aiSrcIndex }, { find: /^@earendil-works\/pi-ai\/oauth$/, replacement: aiSrcOAuth }, { find: /^@earendil-works\/pi-ai\/mcp$/, replacement: aiSrcMcp }, { find: /^@earendil-works\/pi-agent-core$/, replacement: agentSrcIndex }, { find: /^@earendil-works\/pi-tui$/, replacement: tuiSrcIndex }, { find: /^@mariozechner\/pi-ai$/, replacement: aiSrcIndex }, { find: /^@mariozechner\/pi-ai\/oauth$/, replacement: aiSrcOAuth }, { find: /^@mariozechner\/pi-ai\/mcp$/, replacement: aiSrcMcp }, { find: /^@mariozechner\/pi-agent-core$/, replacement: agentSrcIndex }, { find: /^@mariozechner\/pi-tui$/, replacement: tuiSrcIndex }, ], },});