mirror of
https://github.com/earendil-works/pi.git
synced 2026-09-28 05:54:43 +08:00
Move service, replicated-state, facet host, and loader ownership into the standalone Chord package. Migrate consumers and leave runtime JSON enforcement to serializers.
35 lines
1.2 KiB
TypeScript
35 lines
1.2 KiB
TypeScript
import { fileURLToPath } from "node:url";
|
|
import { defineConfig } from "vitest/config";
|
|
|
|
const telemetrySrcIndex = fileURLToPath(new URL("../telemetry/src/index.ts", import.meta.url));
|
|
const aiSrcIndex = fileURLToPath(new URL("../ai/src/index.ts", import.meta.url));
|
|
const aiSrcCompat = fileURLToPath(new URL("../ai/src/compat.ts", import.meta.url));
|
|
const agentSrcIndex = fileURLToPath(new URL("../agent/src/index.ts", import.meta.url));
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
globals: true,
|
|
environment: "node",
|
|
testTimeout: 30000,
|
|
include: ["test/harness/**/*.test.ts"],
|
|
coverage: {
|
|
provider: "v8",
|
|
all: true,
|
|
include: ["src/harness/**/*.ts", "src/agent.ts", "src/agent-loop.ts"],
|
|
exclude: ["src/**/*.d.ts"],
|
|
reporter: ["text", "html", "lcov"],
|
|
reportsDirectory: "coverage/harness",
|
|
},
|
|
},
|
|
resolve: {
|
|
conditions: ["source"],
|
|
alias: [
|
|
{ find: /^@earendil-works\/pi-telemetry$/, replacement: telemetrySrcIndex },
|
|
{ find: /^@earendil-works\/pi-agent-core$/, replacement: agentSrcIndex },
|
|
{ find: /^@earendil-works\/pi-ai$/, replacement: aiSrcIndex },
|
|
{ find: /^@earendil-works\/pi-ai\/compat$/, replacement: aiSrcCompat },
|
|
],
|
|
},
|
|
ssr: { resolve: { conditions: ["source"] } },
|
|
});
|