1
0

tsconfig.client.json 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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/apiproxy/...) 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/host/directory-picker-browse/tests/**/*.ts",
  23. "packages/host/directory-picker-browse/tests/**/*.tsx",
  24. "packages/host/directory-picker-native/tests/**/*.ts",
  25. "packages/host/directory-picker-native/tests/**/*.tsx",
  26. "packages/client/tsdown.client.ts",
  27. "scripts/client-bundle-css.spec.ts",
  28. "scripts/client-bundle-purity.spec.ts"
  29. ],
  30. "references": [
  31. // Shared leaf: web e2e boots the real host webserver (fixture + real-host
  32. // smoke policy). webserver has zero workspace deps and no cordis merge,
  33. // so it cannot drag host-side Context augmentation into this program.
  34. { "path": "./packages/host/webserver" },
  35. // Dual-face host leaf: the node half is the native picking backend, the
  36. // browser half registers the picking flow into ui-workspace's slot —
  37. // client-side Context merges keep it out of the host program.
  38. { "path": "./packages/host/directory-picker-native" },
  39. { "path": "./packages/host/directory-picker-browse" },
  40. // Compaction seam: the client-runtime pin test value-imports the canonical
  41. // checkpoint const from the cordis-free dsh-compact/checkpoint leaf and
  42. // deliberately never loads the dsh-compact package root or the host-side
  43. // Context merges reachable through it. The client package pins the same
  44. // leaf through a type-only import in transcript-adapter.ts; composite
  45. // rootDir rules make both paths depend on this runtime project reference.
  46. { "path": "./packages/compact/compact" },
  47. { "path": "./packages/client/ui-slots" },
  48. { "path": "./packages/client/schema-form" },
  49. { "path": "./packages/client/ui-primitives" },
  50. { "path": "./packages/client/web-react" },
  51. { "path": "./packages/client/modules" },
  52. { "path": "./packages/client/hmr" },
  53. { "path": "./packages/client/connection" },
  54. { "path": "./packages/client/runtime" },
  55. { "path": "./packages/client/test-runtime" },
  56. { "path": "./packages/client/ui-layout" },
  57. { "path": "./packages/client/ui-sidebar" },
  58. { "path": "./packages/client/ui-conversation" },
  59. { "path": "./packages/client/ui-workspace" },
  60. { "path": "./packages/client/ui-slash" },
  61. { "path": "./packages/client/ui-command" },
  62. { "path": "./packages/client/ui-skill" },
  63. { "path": "./packages/client/ui-subagent" },
  64. { "path": "./packages/client/ui-goal" },
  65. { "path": "./packages/client/ui-model" },
  66. { "path": "./packages/client/ui-permission" },
  67. { "path": "./packages/client/ui-plan" },
  68. { "path": "./packages/client/ui-question" },
  69. { "path": "./packages/client/ui-trajectory" },
  70. { "path": "./packages/client/ui-theme" },
  71. { "path": "./packages/client/ui-settings" },
  72. { "path": "./packages/client/ui-settings-general" },
  73. { "path": "./packages/client/ui-models" },
  74. { "path": "./packages/client/locale" },
  75. { "path": "./packages/client/web" },
  76. { "path": "./apps/web" }
  77. ]
  78. }