Set up monorepo infra: Yarn 4 workspaces, tsc -b + dumble build, vitest

Workspaces are vendor/* (Cordis framework vendored as source) and
packages/* (@deepseek-ai/dsh-* harness packages). Dev/test/demo run
unbuilt via tsx + root tsconfig paths; build = tsc -b (declarations)
+ dumble (JS bundles); tests = vitest + vite-tsconfig-paths.
This commit is contained in:
Tianyi Cui
2026-06-11 10:52:45 +08:00
parent 804eede9eb
commit ae2e08b4d6
10 changed files with 2026 additions and 0 deletions

20
tsconfig.build.json Normal file
View File

@@ -0,0 +1,20 @@
{
"files": [],
"references": [
{ "path": "./vendor/cosmokit" },
{ "path": "./vendor/schemastery" },
{ "path": "./vendor/cordis" },
{ "path": "./vendor/loader" },
{ "path": "./vendor/include" },
{ "path": "./vendor/group" },
{ "path": "./vendor/timer" },
{ "path": "./vendor/hmr" },
{ "path": "./vendor/logger-console" },
{ "path": "./packages/llm" },
{ "path": "./packages/session" },
{ "path": "./packages/system-prompt" },
{ "path": "./packages/agent" },
{ "path": "./packages/tools" },
{ "path": "./packages/agent-loop" }
]
}