tsconfig.client.json 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. {
  2. // Client-side typecheck aggregate: packages/client tests (.ts and .tsx).
  3. // Split from the host aggregate because both sides merge cordis Context
  4. // under the same keys (sessions, loader) with different services; shared
  5. // leaves (session/llm/tools/...) build once and are referenced by
  6. // both programs through each client package's own references.
  7. "extends": "./tsconfig.base.client.json",
  8. "compilerOptions": {
  9. "noEmit": true,
  10. "rewriteRelativeImportExtensions": false,
  11. // Tests execute under vitest on node (e2e files spawn processes); browser
  12. // purity of package src is each package's own tsconfig plus
  13. // scripts/client-bundle-purity.spec.ts.
  14. "types": ["node"]
  15. },
  16. "include": [
  17. // Source-subpath test imports can arrive through workspace links whose
  18. // realpath semantics vary by host. Load package CSS declarations directly.
  19. "packages/client/*/src/css-modules.d.ts",
  20. "packages/client/*/tests/**/*.ts",
  21. "packages/client/*/tests/**/*.tsx",
  22. "packages/*/*/tests/**/*.client.spec.ts",
  23. "packages/*/*/tests/**/*.client.spec.tsx",
  24. "packages/*/*/tests/**/*.client.tsx",
  25. "packages/*/*/tests/**/*.client.ts",
  26. // Client package outside packages/client with a local CSS module face.
  27. "packages/extensions/ui-cordis/src/css-modules.d.ts",
  28. "packages/client/tsdown.client.ts",
  29. "scripts/client-build-environment.ts",
  30. "scripts/*.client.spec.ts",
  31. "scripts/client-bundle-css.spec.ts",
  32. "scripts/client-bundle-purity.spec.ts"
  33. ],
  34. // A `*.host.spec.ts` covers the Host half of a split client package and
  35. // belongs to the host aggregate, which excludes this program's `*.client.*`
  36. // in turn. `exclude` wins over `include`, so the test glob above stays broad.
  37. "exclude": [
  38. "packages/client/*/tests/**/*.host.spec.ts"
  39. ],
  40. "references": [
  41. // Shared leaf: web e2e boots the real host webserver (fixture + real-host
  42. // smoke policy). webserver has zero workspace deps and no cordis merge,
  43. // so it cannot drag host-side Context augmentation into this program.
  44. { "path": "./packages/host/webserver" },
  45. // Compaction seam: ui-chat type-imports the canonical checkpoint contract
  46. // from the cordis-free dsh-compaction/checkpoint leaf. Composite rootDir
  47. // rules make that path depend on this project reference.
  48. { "path": "./packages/compaction/compaction" },
  49. { "path": "./packages/client/store" },
  50. { "path": "./packages/client/ui-slots" },
  51. { "path": "./packages/client/ui-attachment" },
  52. { "path": "./packages/client/ui-primitives" },
  53. { "path": "./packages/client/modules" },
  54. { "path": "./packages/experimental/inspector/tsconfig.client.json" },
  55. { "path": "./packages/client/hmr" },
  56. { "path": "./packages/client/connection/tsconfig.client.json" },
  57. { "path": "./packages/client/file-upload/tsconfig.client.json" },
  58. { "path": "./packages/typert/registry" },
  59. { "path": "./packages/api/gateway/tsconfig.client.json" },
  60. { "path": "./packages/api/session-controller/tsconfig.client.json" },
  61. { "path": "./packages/api/workspace-controller/tsconfig.client.json" },
  62. { "path": "./packages/api/remotes/tsconfig.client.json" },
  63. { "path": "./packages/extensions/cordis-client-runner" },
  64. { "path": "./packages/extensions/ui-cordis" },
  65. { "path": "./packages/test-support/client-runtime" },
  66. { "path": "./packages/client/ui-layout" },
  67. { "path": "./packages/client/ui-sidebar" },
  68. { "path": "./packages/client/ui-brand-official" },
  69. { "path": "./packages/client/ui-approval" },
  70. { "path": "./packages/client/ui-chat" },
  71. { "path": "./packages/client/ui-conversation" },
  72. { "path": "./packages/client/ui-tool" },
  73. { "path": "./packages/client/ui-deliverables" },
  74. { "path": "./packages/client/ui-workflow-run" },
  75. { "path": "./packages/client/ui-workspace" },
  76. { "path": "./packages/client/ui-input-trigger" },
  77. { "path": "./packages/client/ui-commands" },
  78. { "path": "./packages/client/ui-skill" },
  79. { "path": "./packages/client/ui-reference" },
  80. { "path": "./packages/client/ui-subagent" },
  81. { "path": "./packages/experimental/client-ui-agent-team" },
  82. { "path": "./packages/client/ui-jobs" },
  83. { "path": "./packages/client/ui-schedule" },
  84. { "path": "./packages/client/ui-directory-picker-browse" },
  85. { "path": "./packages/client/ui-directory-picker-native" },
  86. { "path": "./packages/client/ui-goal" },
  87. { "path": "./packages/client/ui-message-feedback" },
  88. { "path": "./packages/client/ui-model-selection" },
  89. { "path": "./packages/client/ui-agent-preset" },
  90. { "path": "./packages/client/ui-permission-presets" },
  91. { "path": "./packages/client/ui-plan" },
  92. { "path": "./packages/client/ui-settings-plugins" },
  93. { "path": "./packages/client/ui-user-questions" },
  94. { "path": "./packages/client/ui-trajectory" },
  95. { "path": "./packages/session-query/session-log-export/tsconfig.client.json" },
  96. { "path": "./packages/client/ui-theme" },
  97. { "path": "./packages/client/ui-settings" },
  98. { "path": "./packages/client/ui-settings-general" },
  99. { "path": "./packages/client/ui-settings-models" },
  100. { "path": "./packages/client/ui-settings-plugin-inventory" },
  101. { "path": "./packages/client/locale" },
  102. { "path": "./packages/client/ui-renderer" },
  103. { "path": "./packages/client/ui-session" },
  104. { "path": "./packages/client/web" },
  105. { "path": "./packages/context/file-reference" },
  106. { "path": "./apps/web" }
  107. ]
  108. }