knip.json 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557
  1. {
  2. "$schema": "https://unpkg.com/knip@5/schema.json",
  3. "exclude": [
  4. "duplicates"
  5. ],
  6. "ignoreBinaries": [
  7. "bwrap",
  8. "python3",
  9. "sandbox-exec"
  10. ],
  11. "ignoreWorkspaces": [
  12. "vendor/*",
  13. "python/sdk-runtime"
  14. ],
  15. "ignoreDependencies": [
  16. "lightningcss"
  17. ],
  18. "workspaces": {
  19. ".": {
  20. "entry": [
  21. "scripts/**/*.mjs"
  22. ],
  23. "project": [
  24. "scripts/**/*.ts",
  25. "scripts/**/*.mjs"
  26. ]
  27. },
  28. "examples": {
  29. "entry": [
  30. "headless-agent/tests/fixtures/cli-mock-llm.ts",
  31. "headless-agent/tests/fixtures/goal-domain/seed-goal.ts",
  32. "headless-agent/tests/fixtures/time-context-driver.ts",
  33. "headless-agent/tests/fixtures/time-context-mock-llm.ts",
  34. "acp-agent/tests/snapshots/lsp-definition/workspace/subject.ts",
  35. "tui-agent/tests/fixtures/tui-scripted-llm.ts",
  36. "acp-agent/tests/fixtures/subagent/subagent-acp/mock-delegating-llm.ts",
  37. "acp-agent/tests/fixtures/subagent/subagent-acp/driver.ts",
  38. "*/tests/**/*.e2e.ts",
  39. "*/tests/**/*.snapshot.ts"
  40. ],
  41. "project": [
  42. "**/*.ts"
  43. ],
  44. "ignoreDependencies": [
  45. "@deepseek-ai/.+",
  46. "@cordisjs/.+"
  47. ]
  48. },
  49. "packages/util/home": {
  50. "entry": [
  51. "tests/**/*.spec.ts"
  52. ],
  53. "project": [
  54. "src/**/*.ts",
  55. "tests/**/*.ts"
  56. ]
  57. },
  58. "packages/host/webserver": {
  59. "entry": [
  60. "tests/**/*.spec.ts"
  61. ],
  62. "project": [
  63. "src/**/*.ts",
  64. "tests/**/*.ts"
  65. ]
  66. },
  67. "packages/host/runtime": {
  68. "entry": [
  69. "tests/**/*.spec.ts",
  70. "tests/**/*.e2e.ts"
  71. ],
  72. "project": [
  73. "src/**/*.ts",
  74. "tests/**/*.ts"
  75. ],
  76. "ignoreDependencies": [
  77. "@deepseek-ai/dsh-client-.+"
  78. ]
  79. },
  80. "packages/client/web-ui": {
  81. "entry": [
  82. "tests/**/*.spec.{ts,tsx}"
  83. ],
  84. "project": [
  85. "src/**/*.{ts,tsx}",
  86. "tests/**/*.{ts,tsx}"
  87. ]
  88. },
  89. "packages/client/runtime": {
  90. "entry": [
  91. "tests/**/*.spec.ts",
  92. "tests/**/*.e2e.ts"
  93. ],
  94. "project": [
  95. "src/**/*.ts",
  96. "tests/**/*.ts"
  97. ]
  98. },
  99. "packages/client/ui-primitives": {
  100. "entry": [
  101. "tests/**/*.spec.tsx"
  102. ],
  103. "project": [
  104. "src/**/*.ts",
  105. "src/**/*.tsx",
  106. "tests/**/*.tsx"
  107. ]
  108. },
  109. "packages/client/ui-layout": {
  110. "entry": [
  111. "tests/**/*.spec.ts",
  112. "tests/**/*.spec.tsx"
  113. ],
  114. "project": [
  115. "src/**/*.ts",
  116. "src/**/*.tsx",
  117. "tests/**/*.ts",
  118. "tests/**/*.tsx"
  119. ],
  120. "ignoreDependencies": [
  121. "@deepseek-ai/dsh-client-ui-slots"
  122. ]
  123. },
  124. "website": {
  125. "project": [
  126. "**/*.ts"
  127. ],
  128. "ignoreDependencies": [
  129. "@braintree/sanitize-url",
  130. "cytoscape",
  131. "cytoscape-cose-bilkent",
  132. "dayjs",
  133. "debug"
  134. ]
  135. },
  136. "packages/*/*": {
  137. "entry": [
  138. "tests/**/*.spec.ts"
  139. ],
  140. "project": [
  141. "src/**/*.ts",
  142. "tests/**/*.ts"
  143. ]
  144. },
  145. "packages/bash/bash-sandbox": {
  146. "entry": [
  147. "tests/**/*.spec.ts",
  148. "tests/**/*.e2e.ts"
  149. ],
  150. "project": [
  151. "src/**/*.ts",
  152. "tests/**/*.ts"
  153. ]
  154. },
  155. "packages/context/time-context": {
  156. "entry": [
  157. "tests/**/*.spec.ts",
  158. "tests/**/*.e2e.ts"
  159. ],
  160. "project": [
  161. "src/**/*.ts",
  162. "tests/**/*.ts"
  163. ]
  164. },
  165. "packages/lsp/lsp-local": {
  166. "entry": [
  167. "tests/**/*.spec.ts",
  168. "tests/**/*.e2e.ts",
  169. "tests/fixture-server.ts"
  170. ],
  171. "project": [
  172. "src/**/*.ts",
  173. "tests/**/*.ts"
  174. ],
  175. "ignoreDependencies": [
  176. "typescript-language-server"
  177. ]
  178. },
  179. "packages/sandbox/sandbox-local": {
  180. "entry": [
  181. "tests/**/*.spec.ts",
  182. "tests/**/*.e2e.ts"
  183. ],
  184. "project": [
  185. "src/**/*.ts",
  186. "tests/**/*.ts"
  187. ]
  188. },
  189. "packages/util/brand": {
  190. "project": [
  191. "src/**/*.ts"
  192. ]
  193. },
  194. "packages/util/timeout": {
  195. "entry": [
  196. "tests/**/*.spec.ts"
  197. ],
  198. "project": [
  199. "src/**/*.ts",
  200. "tests/**/*.ts"
  201. ]
  202. },
  203. "packages/util/retention": {
  204. "entry": [
  205. "tests/**/*.spec.ts"
  206. ],
  207. "project": [
  208. "src/**/*.ts",
  209. "tests/**/*.ts"
  210. ]
  211. },
  212. "packages/support/acp-snapshot": {
  213. "entry": [
  214. "tests/**/*.spec.ts",
  215. "tests/fixtures/fake-acp-agent.ts"
  216. ],
  217. "project": [
  218. "src/**/*.ts",
  219. "tests/**/*.ts"
  220. ]
  221. },
  222. "packages/support/loader-smoke": {
  223. "entry": [
  224. "tests/**/*.spec.ts",
  225. "tests/fixtures/*.ts"
  226. ],
  227. "project": [
  228. "src/**/*.ts",
  229. "tests/**/*.ts"
  230. ]
  231. },
  232. "packages/core/agent-loop": {
  233. "entry": [
  234. "tests/**/*.spec.ts",
  235. "tests/**/*.e2e.ts"
  236. ],
  237. "project": [
  238. "src/**/*.ts",
  239. "tests/**/*.ts"
  240. ]
  241. },
  242. "packages/goal/goal": {
  243. "entry": [
  244. "tests/**/*.spec.ts",
  245. "tests/**/*.e2e.ts"
  246. ],
  247. "project": [
  248. "src/**/*.ts",
  249. "tests/**/*.ts"
  250. ]
  251. },
  252. "packages/goal/goal-session": {
  253. "entry": [
  254. "tests/**/*.spec.ts"
  255. ],
  256. "project": [
  257. "src/**/*.ts",
  258. "tests/**/*.ts"
  259. ]
  260. },
  261. "packages/goal/tool-goal": {
  262. "entry": [
  263. "tests/**/*.spec.ts"
  264. ],
  265. "project": [
  266. "src/**/*.ts",
  267. "tests/**/*.ts"
  268. ]
  269. },
  270. "packages/code-runtime/code-runtime-worker": {
  271. "entry": [
  272. "tests/**/*.spec.ts",
  273. "tests/**/*.e2e.ts"
  274. ],
  275. "project": [
  276. "src/**/*.ts",
  277. "tests/**/*.ts"
  278. ]
  279. },
  280. "packages/llm/llm-deepseek": {
  281. "entry": [
  282. "tests/**/*.spec.ts",
  283. "tests/**/*.e2e.ts"
  284. ],
  285. "project": [
  286. "src/**/*.ts",
  287. "tests/**/*.ts"
  288. ]
  289. },
  290. "packages/llm/llm-pi-ai": {
  291. "entry": [
  292. "tests/**/*.spec.ts",
  293. "tests/**/*.e2e.ts"
  294. ],
  295. "project": [
  296. "src/**/*.ts",
  297. "tests/**/*.ts"
  298. ]
  299. },
  300. "packages/session-title/session-title-first-message-llm": {
  301. "entry": [
  302. "tests/**/*.spec.ts",
  303. "tests/**/*.e2e.ts"
  304. ],
  305. "project": [
  306. "src/**/*.ts",
  307. "tests/**/*.ts"
  308. ]
  309. },
  310. "packages/context/workspace-context": {
  311. "entry": [
  312. "tests/**/*.spec.ts",
  313. "tests/**/*.e2e.ts"
  314. ],
  315. "project": [
  316. "src/**/*.ts",
  317. "tests/**/*.ts"
  318. ]
  319. },
  320. "packages/util/paths": {
  321. "entry": [
  322. "tests/**/*.spec.ts"
  323. ],
  324. "project": [
  325. "src/**/*.ts",
  326. "tests/**/*.ts"
  327. ]
  328. },
  329. "packages/web/web-search-exa": {
  330. "entry": [
  331. "tests/**/*.spec.ts",
  332. "tests/**/*.e2e.ts"
  333. ],
  334. "project": [
  335. "src/**/*.ts",
  336. "tests/**/*.ts"
  337. ]
  338. },
  339. "packages/web/web-search-perplexity": {
  340. "entry": [
  341. "tests/**/*.spec.ts",
  342. "tests/**/*.e2e.ts"
  343. ],
  344. "project": [
  345. "src/**/*.ts",
  346. "tests/**/*.ts"
  347. ]
  348. },
  349. "packages/workflow/workflow-workerthread": {
  350. "entry": [
  351. "tests/**/*.spec.ts",
  352. "tests/**/*.e2e.ts"
  353. ],
  354. "project": [
  355. "src/**/*.ts",
  356. "tests/**/*.ts"
  357. ]
  358. },
  359. "packages/web/web-search-deepseek": {
  360. "entry": [
  361. "tests/**/*.spec.ts",
  362. "tests/**/*.e2e.ts"
  363. ],
  364. "project": [
  365. "src/**/*.ts",
  366. "tests/**/*.ts"
  367. ]
  368. },
  369. "packages/examples/acp-demo": {
  370. "entry": [
  371. "tests/**/*.spec.ts",
  372. "tests/**/*.e2e.ts"
  373. ],
  374. "project": [
  375. "src/**/*.ts",
  376. "tests/**/*.ts"
  377. ]
  378. },
  379. "packages/ui/jsonrpc": {
  380. "entry": [
  381. "tests/**/*.spec.ts",
  382. "tests/**/*.e2e.ts"
  383. ],
  384. "project": [
  385. "src/**/*.ts",
  386. "tests/**/*.ts"
  387. ]
  388. },
  389. "packages/ui/commands": {
  390. "entry": [
  391. "tests/**/*.spec.ts"
  392. ],
  393. "project": [
  394. "src/**/*.ts",
  395. "tests/**/*.ts"
  396. ]
  397. },
  398. "packages/examples/tui-demo": {
  399. "entry": [
  400. "tests/**/*.spec.ts"
  401. ],
  402. "project": [
  403. "src/**/*.ts",
  404. "tests/**/*.ts"
  405. ]
  406. },
  407. "packages/examples/cli-demo": {
  408. "entry": [
  409. "tests/**/*.spec.ts",
  410. "tests/**/*.e2e.ts"
  411. ],
  412. "project": [
  413. "src/**/*.ts",
  414. "tests/**/*.ts"
  415. ]
  416. },
  417. "packages/ui/tui": {
  418. "entry": [
  419. "tests/**/*.spec.ts",
  420. "tests/**/*.snapshot.ts"
  421. ],
  422. "project": [
  423. "src/**/*.ts",
  424. "tests/**/*.ts"
  425. ]
  426. },
  427. "packages/examples/jsonrpc-demo": {
  428. "project": [
  429. "src/**/*.ts"
  430. ]
  431. },
  432. "packages/sdk/create-sdk": {
  433. "entry": [
  434. "src/bin.ts",
  435. "tests/**/*.spec.ts",
  436. "tests/**/*.e2e.ts",
  437. "tests/**/*.snapshot.ts"
  438. ],
  439. "project": [
  440. "src/**/*.ts",
  441. "tests/**/*.ts"
  442. ]
  443. },
  444. "packages/sdk/scripts": {
  445. "entry": [
  446. "src/bin.ts",
  447. "tests/**/*.spec.ts",
  448. "tests/**/*.snapshot.ts"
  449. ],
  450. "project": [
  451. "src/**/*.ts",
  452. "tests/**/*.ts"
  453. ],
  454. "ignoreDependencies": [
  455. "node-addon-require-builtin"
  456. ]
  457. },
  458. "packages/subagent/subagent-spawn": {
  459. "entry": [
  460. "tests/**/*.spec.ts",
  461. "tests/**/*.e2e.ts"
  462. ],
  463. "project": [
  464. "src/**/*.ts",
  465. "tests/**/*.ts"
  466. ]
  467. },
  468. "packages/subagent/subagent-acp": {
  469. "entry": [
  470. "tests/**/*.spec.ts",
  471. "tests/**/*.e2e.ts",
  472. "tests/mock-acp-server.ts"
  473. ],
  474. "project": [
  475. "src/**/*.ts",
  476. "tests/**/*.ts"
  477. ]
  478. },
  479. "packages/subagent/subagent-subprocess": {
  480. "entry": [
  481. "tests/**/*.spec.ts"
  482. ],
  483. "project": [
  484. "src/**/*.ts",
  485. "tests/**/*.ts"
  486. ]
  487. },
  488. "packages/fs/tool-fs": {
  489. "entry": [
  490. "tests/**/*.spec.ts",
  491. "tests/**/*.e2e.ts"
  492. ],
  493. "project": [
  494. "src/**/*.ts",
  495. "tests/**/*.ts"
  496. ]
  497. },
  498. "packages/fs/tool-fs-search": {
  499. "entry": [
  500. "tests/**/*.spec.ts"
  501. ],
  502. "project": [
  503. "src/**/*.ts",
  504. "tests/**/*.ts"
  505. ],
  506. "ignoreBinaries": [
  507. "rg"
  508. ]
  509. },
  510. "packages/mcp/mcp-client": {
  511. "entry": [
  512. "tests/**/*.spec.ts",
  513. "tests/**/*.e2e.ts",
  514. "tests/fixture-server.ts"
  515. ],
  516. "project": [
  517. "src/**/*.ts",
  518. "tests/**/*.ts"
  519. ],
  520. "ignoreDependencies": [
  521. "@modelcontextprotocol/server-everything",
  522. "@modelcontextprotocol/server-filesystem"
  523. ]
  524. },
  525. "packages/client/web": {
  526. "project": [
  527. "src/**/*.ts",
  528. "src/**/*.tsx",
  529. "tests/**/*.tsx"
  530. ],
  531. "ignoreDependencies": [
  532. "@deepseek-ai/dsh-client-ui-theme",
  533. "@deepseek-ai/dsh-client-connection"
  534. ]
  535. },
  536. "apps/web": {
  537. "entry": [
  538. "tests/**/*.e2e.ts",
  539. "tests/support.ts"
  540. ],
  541. "project": [
  542. "src/**/*.ts",
  543. "tests/**/*.ts"
  544. ],
  545. "ignoreDependencies": [
  546. "@deepseek-ai/dsh-client-runtime",
  547. "@deepseek-ai/dsh-client-ui-primitives",
  548. "@deepseek-ai/dsh-client-ui-slots",
  549. "@deepseek-ai/dsh-client-web-react",
  550. "@types/react",
  551. "@types/react-dom",
  552. "react",
  553. "react-dom"
  554. ]
  555. }
  556. }
  557. }