tsconfig.base.json 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  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-session-projection/types": ["./packages/session-projection/session-projection/src/types.ts"],
  45. "@deepseek-ai/dsh-tool-todo/types": ["./packages/todo/tool-todo/src/types.ts"],
  46. "@deepseek-ai/dsh-tool-todo/client": ["./packages/todo/tool-todo/src/client.ts"],
  47. "@deepseek-ai/dsh-session-title/types": ["./packages/session-title/session-title/src/types.ts"],
  48. "@deepseek-ai/dsh-session-title/client": ["./packages/session-title/session-title/src/client.ts"],
  49. "@deepseek-ai/dsh-plan-mode/types": ["./packages/plan/plan-mode/src/types.ts"],
  50. "@deepseek-ai/dsh-plan-mode/client": ["./packages/plan/plan-mode/src/client.ts"],
  51. "@deepseek-ai/dsh-goal/types": ["./packages/goal/goal/src/types.ts"],
  52. "@deepseek-ai/dsh-goal/client": ["./packages/goal/goal/src/client.ts"],
  53. "@deepseek-ai/dsh-llm/types": ["./packages/llm/llm/src/types.ts"],
  54. "@deepseek-ai/dsh-llm/brand": ["./packages/llm/llm/src/brand.ts"],
  55. "@deepseek-ai/dsh-llm/message": ["./packages/llm/llm/src/message.ts"],
  56. "@deepseek-ai/dsh-commands/brand": ["./packages/ui/commands/src/brand.ts"],
  57. "@deepseek-ai/dsh-tools/presentation": ["./packages/core/tools/src/presentation.ts"],
  58. "@deepseek-ai/dsh-user-approval/types": ["./packages/ui/user-approval/src/types.ts"],
  59. "@deepseek-ai/dsh-user-interaction/types": ["./packages/ui/user-interaction/src/types.ts"],
  60. "@deepseek-ai/dsh-agent/invariant": ["./packages/core/agent/src/invariant.ts"],
  61. "@deepseek-ai/dsh-scope/invariant": ["./packages/core/scope/src/invariant.ts"],
  62. "@deepseek-ai/dsh-agent-loop/invariant": ["./packages/core/agent-loop/src/invariant.ts"],
  63. "@deepseek-ai/dsh-*/invariant": [
  64. "./packages/core/*/src/invariant.ts",
  65. "./packages/prompt/*/src/invariant.ts",
  66. "./packages/llm/*/src/invariant.ts",
  67. "./packages/bash/*/src/invariant.ts",
  68. "./packages/subprocess/*/src/invariant.ts",
  69. "./packages/code-runtime/*/src/invariant.ts",
  70. "./packages/fs/*/src/invariant.ts",
  71. "./packages/skill/*/src/invariant.ts",
  72. "./packages/compact/*/src/invariant.ts",
  73. "./packages/context/*/src/invariant.ts",
  74. "./packages/goal/*/src/invariant.ts",
  75. "./packages/guard/*/src/invariant.ts",
  76. "./packages/plan/*/src/invariant.ts",
  77. "./packages/subagent/*/src/invariant.ts",
  78. "./packages/tasks/*/src/invariant.ts",
  79. "./packages/workflow/*/src/invariant.ts",
  80. "./packages/web/*/src/invariant.ts",
  81. "./packages/spill/*/src/invariant.ts",
  82. "./packages/timeout/*/src/invariant.ts",
  83. "./packages/todo/*/src/invariant.ts",
  84. "./packages/cordis/*/src/invariant.ts",
  85. "./packages/sandbox/*/src/invariant.ts",
  86. "./packages/hooks/*/src/invariant.ts",
  87. "./packages/session-persistence/*/src/invariant.ts",
  88. "./packages/session-projection/*/src/invariant.ts",
  89. "./packages/session-query/*/src/invariant.ts",
  90. "./packages/telemetry/*/src/invariant.ts",
  91. "./packages/acp/*/src/invariant.ts",
  92. "./packages/storage/*/src/invariant.ts",
  93. "./packages/workspace/*/src/invariant.ts",
  94. "./packages/sdk/*/src/invariant.ts",
  95. "./packages/ui/*/src/invariant.ts",
  96. "./packages/examples/*/src/invariant.ts",
  97. "./packages/util/*/src/invariant.ts",
  98. "./packages/mcp/*/src/invariant.ts",
  99. "./packages/support/*/src/invariant.ts"
  100. ],
  101. // host/client package names prefix the group dir (dsh-client-<dir>), so
  102. // the generic dsh-*/invariant list above cannot map them; strip the
  103. // group prefix with a dedicated wildcard per group instead.
  104. "@deepseek-ai/dsh-host-*/invariant": ["./packages/host/*/src/invariant.ts"],
  105. "@deepseek-ai/dsh-client-*/invariant": ["./packages/client/*/src/invariant.ts"],
  106. "@deepseek-ai/dsh-client-*/client": ["./packages/client/*/src/client"],
  107. // One wildcard maps every @deepseek-ai/dsh-<name> to its source. Package
  108. // dir names are unique across groups, so first-on-disk-wins resolution is
  109. // unambiguous; adding a package under an existing group needs no edit
  110. // here. The aggregates' project references (tsconfig.host.json /
  111. // tsconfig.client.json) stay explicit — TS project references have no
  112. // wildcard form.
  113. "@deepseek-ai/dsh-host-apiproxy": ["./packages/host/apiproxy/src"],
  114. "@deepseek-ai/dsh-host-apiproxy/client": ["./packages/host/apiproxy/src/fetch/client.ts"],
  115. "@deepseek-ai/dsh-host-apiproxy/*": ["./packages/host/apiproxy/src/*"],
  116. "@deepseek-ai/dsh-host-webserver": ["./packages/host/webserver/src"],
  117. "@deepseek-ai/dsh-client-ui-slots": ["./packages/client/ui-slots/src"],
  118. "@deepseek-ai/dsh-client-ui-primitives": ["./packages/client/ui-primitives/src"],
  119. "@deepseek-ai/dsh-client-web-react": ["./packages/client/web-react/src"],
  120. "@deepseek-ai/dsh-client-connection": ["./packages/client/connection/src"],
  121. "@deepseek-ai/dsh-client-hmr": ["./packages/client/hmr/src"],
  122. "@deepseek-ai/dsh-client-modules": ["./packages/client/modules/src"],
  123. "@deepseek-ai/dsh-client-runtime": ["./packages/client/runtime/src"],
  124. "@deepseek-ai/dsh-client-runtime/client": ["./packages/client/runtime/src/client"],
  125. "@deepseek-ai/dsh-client-test-runtime": ["./packages/client/test-runtime/src"],
  126. "@deepseek-ai/dsh-client-ui-layout": ["./packages/client/ui-layout/src"],
  127. "@deepseek-ai/dsh-client-ui-sidebar": ["./packages/client/ui-sidebar/src"],
  128. "@deepseek-ai/dsh-client-ui-conversation": ["./packages/client/ui-conversation/src"],
  129. "@deepseek-ai/dsh-client-ui-slash": ["./packages/client/ui-slash/src"],
  130. "@deepseek-ai/dsh-client-ui-command": ["./packages/client/ui-command/src"],
  131. "@deepseek-ai/dsh-client-ui-model": ["./packages/client/ui-model/src"],
  132. "@deepseek-ai/dsh-client-ui-skill": ["./packages/client/ui-skill/src"],
  133. "@deepseek-ai/dsh-client-ui-subagent": ["./packages/client/ui-subagent/src"],
  134. "@deepseek-ai/dsh-client-ui-plan": ["./packages/client/ui-plan/src"],
  135. "@deepseek-ai/dsh-client-ui-question": ["./packages/client/ui-question/src"],
  136. "@deepseek-ai/dsh-client-ui-trajectory": ["./packages/client/ui-trajectory/src"],
  137. "@deepseek-ai/dsh-client-ui-workspace": ["./packages/client/ui-workspace/src"],
  138. "@deepseek-ai/dsh-client-ui-theme": ["./packages/client/ui-theme/src"],
  139. "@deepseek-ai/dsh-client-ui-settings": ["./packages/client/ui-settings/src"],
  140. "@deepseek-ai/dsh-client-ui-settings-general": ["./packages/client/ui-settings-general/src"],
  141. "@deepseek-ai/dsh-client-ui-models": ["./packages/client/ui-models/src"],
  142. "@deepseek-ai/dsh-client-locale": ["./packages/client/locale/src"],
  143. "@deepseek-ai/dsh-client-web": ["./packages/client/web/src"],
  144. "@deepseek-ai/dsh-*": [
  145. "./packages/core/*/src",
  146. "./packages/prompt/*/src",
  147. "./packages/llm/*/src",
  148. "./packages/bash/*/src",
  149. "./packages/pty/*/src",
  150. "./packages/subprocess/*/src",
  151. "./packages/code-runtime/*/src",
  152. "./packages/fs/*/src",
  153. "./packages/lsp/*/src",
  154. "./packages/skill/*/src",
  155. "./packages/compact/*/src",
  156. "./packages/context/*/src",
  157. "./packages/goal/*/src",
  158. "./packages/guard/*/src",
  159. "./packages/plan/*/src",
  160. "./packages/subagent/*/src",
  161. "./packages/tasks/*/src",
  162. "./packages/workflow/*/src",
  163. "./packages/web/*/src",
  164. "./packages/spill/*/src",
  165. "./packages/timeout/*/src",
  166. "./packages/todo/*/src",
  167. "./packages/cordis/*/src",
  168. "./packages/sandbox/*/src",
  169. "./packages/hooks/*/src",
  170. "./packages/session-persistence/*/src",
  171. "./packages/session-projection/*/src",
  172. "./packages/session-query/*/src",
  173. "./packages/session-title/*/src",
  174. "./packages/telemetry/*/src",
  175. "./packages/acp/*/src",
  176. "./packages/storage/*/src",
  177. "./packages/workspace/*/src",
  178. "./packages/sdk/*/src",
  179. "./packages/ui/*/src",
  180. "./packages/examples/*/src",
  181. "./packages/util/*/src",
  182. "./packages/mcp/*/src",
  183. "./packages/support/*/src",
  184. "./packages/host/*/src",
  185. "./packages/client/*/src"
  186. ]
  187. }
  188. }
  189. }