tsconfig.base.json 13 KB

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