knip.json 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. {
  2. "$schema": "https://unpkg.com/knip@5/schema.json",
  3. "exclude": ["duplicates"],
  4. "ignoreWorkspaces": ["vendor/*"],
  5. "workspaces": {
  6. ".": {
  7. "entry": [
  8. "examples/echo-agent/src/*.ts",
  9. "examples/echo-agent/tests/**/*.e2e.ts",
  10. "examples/coding-agent/tests/**/*.e2e.ts",
  11. "examples/cordis-agent/tests/**/*.e2e.ts",
  12. "examples/acp-agent/tests/**/*.e2e.ts",
  13. "examples/*/tests/**/*.snapshot.ts"
  14. ],
  15. "project": ["scripts/**/*.ts", "examples/**/*.ts"]
  16. },
  17. "packages/*/*": {
  18. "entry": ["tests/**/*.spec.ts"],
  19. "project": ["src/**/*.ts", "tests/**/*.ts"]
  20. },
  21. "packages/util/brand": {
  22. "project": ["src/**/*.ts"],
  23. "ignoreDependencies": ["cordis"]
  24. },
  25. "packages/util/timeout": {
  26. "entry": ["tests/**/*.spec.ts"],
  27. "project": ["src/**/*.ts", "tests/**/*.ts"],
  28. "ignoreDependencies": ["cordis"]
  29. },
  30. "packages/support/acp-snapshot": {
  31. "entry": ["tests/**/*.spec.ts", "tests/fixtures/fake-acp-agent.ts"],
  32. "project": ["src/**/*.ts", "tests/**/*.ts"],
  33. "ignoreDependencies": ["cordis"]
  34. },
  35. "packages/core/agent-loop": {
  36. "entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts"],
  37. "project": ["src/**/*.ts", "tests/**/*.ts"]
  38. },
  39. "packages/code-runtime/code-runtime-worker": {
  40. "entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts"],
  41. "project": ["src/**/*.ts", "tests/**/*.ts"]
  42. },
  43. "packages/llm/llm-deepseek": {
  44. "entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts"],
  45. "project": ["src/**/*.ts", "tests/**/*.ts"]
  46. },
  47. "packages/llm/llm-pi-ai": {
  48. "entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts"],
  49. "project": ["src/**/*.ts", "tests/**/*.ts"]
  50. },
  51. "packages/prompt/workspace-context": {
  52. "entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts"],
  53. "project": ["src/**/*.ts", "tests/**/*.ts"]
  54. },
  55. "packages/util/paths": {
  56. "entry": ["tests/**/*.spec.ts"],
  57. "project": ["src/**/*.ts", "tests/**/*.ts"],
  58. "ignoreDependencies": ["cordis"]
  59. },
  60. "packages/web/web-search-exa": {
  61. "entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts"],
  62. "project": ["src/**/*.ts", "tests/**/*.ts"]
  63. },
  64. "packages/web/web-search-perplexity": {
  65. "entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts"],
  66. "project": ["src/**/*.ts", "tests/**/*.ts"]
  67. },
  68. "packages/workflow/workflow-workerthread": {
  69. "entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts"],
  70. "project": ["src/**/*.ts", "tests/**/*.ts"]
  71. },
  72. "packages/web/web-search-deepseek": {
  73. "entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts"],
  74. "project": ["src/**/*.ts", "tests/**/*.ts"]
  75. },
  76. "packages/ui/acp-agent": {
  77. "entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts"],
  78. "project": ["src/**/*.ts", "tests/**/*.ts"]
  79. },
  80. "packages/ui/stdio-agent": {
  81. "entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts"],
  82. "project": ["src/**/*.ts", "tests/**/*.ts"]
  83. },
  84. "packages/subagent/subagent-spawn": {
  85. "entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts"],
  86. "project": ["src/**/*.ts", "tests/**/*.ts"]
  87. },
  88. "packages/subagent/subagent-acp": {
  89. "entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts", "tests/mock-acp-server.ts"],
  90. "project": ["src/**/*.ts", "tests/**/*.ts"]
  91. },
  92. "packages/subagent/subagent-subprocess": {
  93. "entry": ["tests/**/*.spec.ts"],
  94. "project": ["src/**/*.ts", "tests/**/*.ts"],
  95. "ignoreDependencies": ["cordis"]
  96. },
  97. "packages/fs/tool-fs": {
  98. "entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts"],
  99. "project": ["src/**/*.ts", "tests/**/*.ts"]
  100. }
  101. }
  102. }