mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
Route all git checkout queries through WorkspaceGitService instead of shelling out to git on every call. This makes fetch_agents_request instant when warm (cached in-memory snapshots) and deduplicates concurrent cold-start refreshes via ensureWorkspaceTarget. - buildProjectPlacementForCwd now uses workspaceGitService.getSnapshot() - worktree-session call sites use WorkspaceGitService - Deleted getCheckoutStatusLite and its 4 return types from checkout-git - Fixed cold-start thundering herd: getSnapshot deduplicates via ensureWorkspaceTarget instead of spawning parallel git processes - Extracted checkout-diff logic into WorkspaceGitService
27 lines
591 B
TypeScript
27 lines
591 B
TypeScript
import path from "node:path";
|
|
import { defineConfig } from "vitest/config";
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
"@server": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
test: {
|
|
testTimeout: 30000,
|
|
hookTimeout: 60000,
|
|
globals: true,
|
|
environment: "node",
|
|
setupFiles: [path.resolve(__dirname, "./src/test-utils/vitest-setup.ts")],
|
|
pool: "forks",
|
|
poolOptions: {
|
|
forks: {
|
|
singleFork: true,
|
|
minForks: 1,
|
|
maxForks: 1,
|
|
},
|
|
},
|
|
exclude: ["**/node_modules/**", "**/dist/**", "**/.claude/**"],
|
|
},
|
|
});
|