tsconfig.base.json 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. {
  2. // Doubles as the resolution facade for vite-tsconfig-paths (vitest configs
  3. // point here). NEVER add include/files to this file: it would leak into
  4. // every extending package project and narrow the facade's match-all scope.
  5. "compilerOptions": {
  6. "target": "es2024",
  7. "module": "esnext",
  8. "moduleResolution": "bundler",
  9. "declaration": true,
  10. "sourceMap": true,
  11. "declarationMap": true,
  12. "composite": true,
  13. "incremental": true,
  14. "skipLibCheck": true,
  15. "esModuleInterop": true,
  16. "allowImportingTsExtensions": true,
  17. "rewriteRelativeImportExtensions": true,
  18. "verbatimModuleSyntax": false,
  19. "strict": true,
  20. "noUncheckedIndexedAccess": true,
  21. "exactOptionalPropertyTypes": true,
  22. "noImplicitOverride": true,
  23. "noFallthroughCasesInSwitch": true,
  24. "noUnusedLocals": true,
  25. "noUnusedParameters": true,
  26. "types": ["node"],
  27. // Source-level resolution for every repo-local graph. Project references,
  28. // not declaration path aliases, keep each package/vendor source compiled
  29. // under its own tsconfig boundary.
  30. "paths": {
  31. "cordis": ["./vendor/cordis/src"],
  32. "cosmokit": ["./vendor/cosmokit/src"],
  33. "schemastery": ["./vendor/schemastery/src"],
  34. "@cordisjs/plugin-loader": ["./vendor/loader/src"],
  35. "@cordisjs/plugin-include": ["./vendor/include/src"],
  36. "@cordisjs/plugin-group": ["./vendor/group/src"],
  37. "@cordisjs/plugin-timer": ["./vendor/timer/src"],
  38. "@cordisjs/plugin-hmr": ["./vendor/hmr/src"],
  39. "@cordisjs/plugin-logger-console": ["./vendor/logger-console/src"],
  40. "@deepseek-ai/dsh-invariants": ["./packages/support/invariants/src/index.ts"],
  41. "@deepseek-ai/dsh-session/invariant": ["./packages/core/session/src/invariant.ts"],
  42. "@deepseek-ai/dsh-session/types": ["./packages/core/session/src/types.ts"],
  43. "@deepseek-ai/dsh-session/surface": ["./packages/core/session/src/surface.ts"],
  44. "@deepseek-ai/dsh-llm/types": ["./packages/llm/llm/src/types.ts"],
  45. "@deepseek-ai/dsh-llm/brand": ["./packages/llm/llm/src/brand.ts"],
  46. "@deepseek-ai/dsh-tools/presentation": ["./packages/core/tools/src/presentation.ts"],
  47. "@deepseek-ai/dsh-user-approval/types": ["./packages/ui/user-approval/src/types.ts"],
  48. "@deepseek-ai/dsh-user-interaction/types": ["./packages/ui/user-interaction/src/types.ts"],
  49. "@deepseek-ai/dsh-agent/invariant": ["./packages/core/agent/src/invariant.ts"],
  50. "@deepseek-ai/dsh-scope/invariant": ["./packages/core/scope/src/invariant.ts"],
  51. "@deepseek-ai/dsh-agent-loop/invariant": ["./packages/core/agent-loop/src/invariant.ts"],
  52. "@deepseek-ai/dsh-*/invariant": [
  53. "./packages/core/*/src/invariant.ts",
  54. "./packages/prompt/*/src/invariant.ts",
  55. "./packages/llm/*/src/invariant.ts",
  56. "./packages/bash/*/src/invariant.ts",
  57. "./packages/subprocess/*/src/invariant.ts",
  58. "./packages/code-runtime/*/src/invariant.ts",
  59. "./packages/fs/*/src/invariant.ts",
  60. "./packages/skill/*/src/invariant.ts",
  61. "./packages/compact/*/src/invariant.ts",
  62. "./packages/context/*/src/invariant.ts",
  63. "./packages/goal/*/src/invariant.ts",
  64. "./packages/guard/*/src/invariant.ts",
  65. "./packages/plan/*/src/invariant.ts",
  66. "./packages/subagent/*/src/invariant.ts",
  67. "./packages/tasks/*/src/invariant.ts",
  68. "./packages/workflow/*/src/invariant.ts",
  69. "./packages/web/*/src/invariant.ts",
  70. "./packages/spill/*/src/invariant.ts",
  71. "./packages/timeout/*/src/invariant.ts",
  72. "./packages/todo/*/src/invariant.ts",
  73. "./packages/cordis/*/src/invariant.ts",
  74. "./packages/sandbox/*/src/invariant.ts",
  75. "./packages/hooks/*/src/invariant.ts",
  76. "./packages/session-persistence/*/src/invariant.ts",
  77. "./packages/session-query/*/src/invariant.ts",
  78. "./packages/telemetry/*/src/invariant.ts",
  79. "./packages/acp/*/src/invariant.ts",
  80. "./packages/storage/*/src/invariant.ts",
  81. "./packages/workspace/*/src/invariant.ts",
  82. "./packages/sdk/*/src/invariant.ts",
  83. "./packages/ui/*/src/invariant.ts",
  84. "./packages/examples/*/src/invariant.ts",
  85. "./packages/util/*/src/invariant.ts",
  86. "./packages/mcp/*/src/invariant.ts",
  87. "./packages/support/*/src/invariant.ts"
  88. ],
  89. // host/client package names prefix the group dir (dsh-client-<dir>), so
  90. // the generic dsh-*/invariant list above cannot map them; strip the
  91. // group prefix with a dedicated wildcard per group instead.
  92. "@deepseek-ai/dsh-host-*/invariant": ["./packages/host/*/src/invariant.ts"],
  93. "@deepseek-ai/dsh-client-*/invariant": ["./packages/client/*/src/invariant.ts"],
  94. "@deepseek-ai/dsh-client-*/client": ["./packages/client/*/src/client"],
  95. // One wildcard maps every @deepseek-ai/dsh-<name> to its source. Package
  96. // dir names are unique across groups, so first-on-disk-wins resolution is
  97. // unambiguous; adding a package under an existing group needs no edit
  98. // here. The aggregates' project references (tsconfig.host.json /
  99. // tsconfig.client.json) stay explicit — TS project references have no
  100. // wildcard form.
  101. "@deepseek-ai/dsh-host-apiproxy": ["./packages/host/apiproxy/src"],
  102. "@deepseek-ai/dsh-host-apiproxy/client": ["./packages/host/apiproxy/src/fetch/client.ts"],
  103. "@deepseek-ai/dsh-host-apiproxy/*": ["./packages/host/apiproxy/src/*"],
  104. "@deepseek-ai/dsh-host-webserver": ["./packages/host/webserver/src"],
  105. "@deepseek-ai/dsh-client-ui-slots": ["./packages/client/ui-slots/src"],
  106. "@deepseek-ai/dsh-client-ui-primitives": ["./packages/client/ui-primitives/src"],
  107. "@deepseek-ai/dsh-client-web-react": ["./packages/client/web-react/src"],
  108. "@deepseek-ai/dsh-client-connection": ["./packages/client/connection/src"],
  109. "@deepseek-ai/dsh-client-hmr": ["./packages/client/hmr/src"],
  110. "@deepseek-ai/dsh-client-modules": ["./packages/client/modules/src"],
  111. "@deepseek-ai/dsh-client-runtime": ["./packages/client/runtime/src"],
  112. "@deepseek-ai/dsh-client-runtime/client": ["./packages/client/runtime/src/client"],
  113. "@deepseek-ai/dsh-client-ui-layout": ["./packages/client/ui-layout/src"],
  114. "@deepseek-ai/dsh-client-ui-sidebar": ["./packages/client/ui-sidebar/src"],
  115. "@deepseek-ai/dsh-client-ui-conversation": ["./packages/client/ui-conversation/src"],
  116. "@deepseek-ai/dsh-client-ui-slash": ["./packages/client/ui-slash/src"],
  117. "@deepseek-ai/dsh-client-ui-command": ["./packages/client/ui-command/src"],
  118. "@deepseek-ai/dsh-client-ui-model": ["./packages/client/ui-model/src"],
  119. "@deepseek-ai/dsh-client-ui-skill": ["./packages/client/ui-skill/src"],
  120. "@deepseek-ai/dsh-client-ui-subagent": ["./packages/client/ui-subagent/src"],
  121. "@deepseek-ai/dsh-client-ui-question": ["./packages/client/ui-question/src"],
  122. "@deepseek-ai/dsh-client-ui-trajectory": ["./packages/client/ui-trajectory/src"],
  123. "@deepseek-ai/dsh-client-ui-workspace": ["./packages/client/ui-workspace/src"],
  124. "@deepseek-ai/dsh-client-ui-theme": ["./packages/client/ui-theme/src"],
  125. "@deepseek-ai/dsh-client-ui-settings": ["./packages/client/ui-settings/src"],
  126. "@deepseek-ai/dsh-client-ui-settings-general": ["./packages/client/ui-settings-general/src"],
  127. "@deepseek-ai/dsh-client-ui-models": ["./packages/client/ui-models/src"],
  128. "@deepseek-ai/dsh-client-locale": ["./packages/client/locale/src"],
  129. "@deepseek-ai/dsh-client-web": ["./packages/client/web/src"],
  130. "@deepseek-ai/dsh-*": [
  131. "./packages/core/*/src",
  132. "./packages/prompt/*/src",
  133. "./packages/llm/*/src",
  134. "./packages/bash/*/src",
  135. "./packages/pty/*/src",
  136. "./packages/subprocess/*/src",
  137. "./packages/code-runtime/*/src",
  138. "./packages/fs/*/src",
  139. "./packages/lsp/*/src",
  140. "./packages/skill/*/src",
  141. "./packages/compact/*/src",
  142. "./packages/context/*/src",
  143. "./packages/goal/*/src",
  144. "./packages/guard/*/src",
  145. "./packages/plan/*/src",
  146. "./packages/subagent/*/src",
  147. "./packages/tasks/*/src",
  148. "./packages/workflow/*/src",
  149. "./packages/web/*/src",
  150. "./packages/spill/*/src",
  151. "./packages/timeout/*/src",
  152. "./packages/todo/*/src",
  153. "./packages/cordis/*/src",
  154. "./packages/sandbox/*/src",
  155. "./packages/hooks/*/src",
  156. "./packages/session-persistence/*/src",
  157. "./packages/session-query/*/src",
  158. "./packages/session-title/*/src",
  159. "./packages/telemetry/*/src",
  160. "./packages/acp/*/src",
  161. "./packages/storage/*/src",
  162. "./packages/workspace/*/src",
  163. "./packages/sdk/*/src",
  164. "./packages/ui/*/src",
  165. "./packages/examples/*/src",
  166. "./packages/util/*/src",
  167. "./packages/mcp/*/src",
  168. "./packages/support/*/src",
  169. "./packages/host/*/src",
  170. "./packages/client/*/src"
  171. ]
  172. }
  173. }
  174. }