knip.json 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604
  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. ],
  71. "project": [
  72. "src/**/*.ts",
  73. "tests/**/*.ts"
  74. ]
  75. },
  76. "packages/client/web-ui": {
  77. "entry": [
  78. "tests/**/*.spec.{ts,tsx}"
  79. ],
  80. "project": [
  81. "src/**/*.{ts,tsx}",
  82. "tests/**/*.{ts,tsx}"
  83. ]
  84. },
  85. "packages/client/runtime": {
  86. "entry": [
  87. "tests/**/*.spec.ts"
  88. ],
  89. "project": [
  90. "src/**/*.ts",
  91. "tests/**/*.ts"
  92. ]
  93. },
  94. "packages/client/ui-primitives": {
  95. "entry": [
  96. "tests/**/*.spec.tsx"
  97. ],
  98. "project": [
  99. "src/**/*.ts",
  100. "src/**/*.tsx",
  101. "tests/**/*.tsx"
  102. ]
  103. },
  104. "packages/client/web-react": {
  105. "entry": [
  106. "tests/**/*.spec.tsx"
  107. ],
  108. "project": [
  109. "src/**/*.ts",
  110. "src/**/*.tsx",
  111. "tests/**/*.tsx"
  112. ]
  113. },
  114. "packages/client/ui-layout": {
  115. "entry": [
  116. "tests/**/*.spec.ts",
  117. "tests/**/*.spec.tsx"
  118. ],
  119. "project": [
  120. "src/**/*.ts",
  121. "src/**/*.tsx",
  122. "tests/**/*.ts",
  123. "tests/**/*.tsx"
  124. ]
  125. },
  126. "website": {
  127. "project": [
  128. "**/*.ts"
  129. ],
  130. "ignoreDependencies": [
  131. "@braintree/sanitize-url",
  132. "cytoscape",
  133. "cytoscape-cose-bilkent",
  134. "dayjs",
  135. "debug"
  136. ]
  137. },
  138. "packages/*/*": {
  139. "entry": [
  140. "tests/**/*.spec.ts"
  141. ],
  142. "project": [
  143. "src/**/*.ts",
  144. "tests/**/*.ts"
  145. ]
  146. },
  147. "packages/bash/bash-sandbox": {
  148. "entry": [
  149. "tests/**/*.spec.ts",
  150. "tests/**/*.e2e.ts"
  151. ],
  152. "project": [
  153. "src/**/*.ts",
  154. "tests/**/*.ts"
  155. ]
  156. },
  157. "packages/context/time-context": {
  158. "entry": [
  159. "tests/**/*.spec.ts",
  160. "tests/**/*.e2e.ts"
  161. ],
  162. "project": [
  163. "src/**/*.ts",
  164. "tests/**/*.ts"
  165. ]
  166. },
  167. "packages/lsp/lsp-local": {
  168. "entry": [
  169. "tests/**/*.spec.ts",
  170. "tests/**/*.e2e.ts",
  171. "tests/fixture-server.ts"
  172. ],
  173. "project": [
  174. "src/**/*.ts",
  175. "tests/**/*.ts"
  176. ],
  177. "ignoreDependencies": [
  178. "typescript-language-server"
  179. ]
  180. },
  181. "packages/sandbox/sandbox-local": {
  182. "entry": [
  183. "tests/**/*.spec.ts",
  184. "tests/**/*.e2e.ts"
  185. ],
  186. "project": [
  187. "src/**/*.ts",
  188. "tests/**/*.ts"
  189. ]
  190. },
  191. "packages/util/brand": {
  192. "project": [
  193. "src/**/*.ts"
  194. ]
  195. },
  196. "packages/util/timeout": {
  197. "entry": [
  198. "tests/**/*.spec.ts"
  199. ],
  200. "project": [
  201. "src/**/*.ts",
  202. "tests/**/*.ts"
  203. ]
  204. },
  205. "packages/util/retention": {
  206. "entry": [
  207. "tests/**/*.spec.ts"
  208. ],
  209. "project": [
  210. "src/**/*.ts",
  211. "tests/**/*.ts"
  212. ]
  213. },
  214. "packages/support/acp-snapshot": {
  215. "entry": [
  216. "tests/**/*.spec.ts",
  217. "tests/fixtures/fake-acp-agent.ts"
  218. ],
  219. "project": [
  220. "src/**/*.ts",
  221. "tests/**/*.ts"
  222. ]
  223. },
  224. "packages/support/loader-smoke": {
  225. "entry": [
  226. "tests/**/*.spec.ts",
  227. "tests/fixtures/*.ts"
  228. ],
  229. "project": [
  230. "src/**/*.ts",
  231. "tests/**/*.ts"
  232. ]
  233. },
  234. "packages/core/agent-loop": {
  235. "entry": [
  236. "tests/**/*.spec.ts",
  237. "tests/**/*.e2e.ts"
  238. ],
  239. "project": [
  240. "src/**/*.ts",
  241. "tests/**/*.ts"
  242. ]
  243. },
  244. "packages/goal/goal": {
  245. "entry": [
  246. "tests/**/*.spec.ts",
  247. "tests/**/*.e2e.ts"
  248. ],
  249. "project": [
  250. "src/**/*.ts",
  251. "tests/**/*.ts"
  252. ]
  253. },
  254. "packages/goal/goal-session": {
  255. "entry": [
  256. "tests/**/*.spec.ts"
  257. ],
  258. "project": [
  259. "src/**/*.ts",
  260. "tests/**/*.ts"
  261. ]
  262. },
  263. "packages/goal/tool-goal": {
  264. "entry": [
  265. "tests/**/*.spec.ts"
  266. ],
  267. "project": [
  268. "src/**/*.ts",
  269. "tests/**/*.ts"
  270. ]
  271. },
  272. "packages/session-query/session-query-sqlite": {
  273. "entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts"],
  274. "project": ["src/**/*.ts", "tests/**/*.ts"]
  275. },
  276. "packages/code-runtime/code-runtime-worker": {
  277. "entry": [
  278. "tests/**/*.spec.ts",
  279. "tests/**/*.e2e.ts"
  280. ],
  281. "project": [
  282. "src/**/*.ts",
  283. "tests/**/*.ts"
  284. ]
  285. },
  286. "packages/llm/llm-deepseek": {
  287. "entry": [
  288. "tests/**/*.spec.ts",
  289. "tests/**/*.e2e.ts"
  290. ],
  291. "project": [
  292. "src/**/*.ts",
  293. "tests/**/*.ts"
  294. ]
  295. },
  296. "packages/llm/llm-pi-ai": {
  297. "entry": [
  298. "tests/**/*.spec.ts",
  299. "tests/**/*.e2e.ts"
  300. ],
  301. "project": [
  302. "src/**/*.ts",
  303. "tests/**/*.ts"
  304. ]
  305. },
  306. "packages/session-title/session-title-first-message-llm": {
  307. "entry": [
  308. "tests/**/*.spec.ts",
  309. "tests/**/*.e2e.ts"
  310. ],
  311. "project": [
  312. "src/**/*.ts",
  313. "tests/**/*.ts"
  314. ]
  315. },
  316. "packages/context/workspace-context": {
  317. "entry": [
  318. "tests/**/*.spec.ts",
  319. "tests/**/*.e2e.ts"
  320. ],
  321. "project": [
  322. "src/**/*.ts",
  323. "tests/**/*.ts"
  324. ]
  325. },
  326. "packages/session-persistence/session-checkpoint-policy": {
  327. "entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts"],
  328. "project": ["src/**/*.ts", "tests/**/*.ts"]
  329. },
  330. "packages/util/paths": {
  331. "entry": [
  332. "tests/**/*.spec.ts"
  333. ],
  334. "project": [
  335. "src/**/*.ts",
  336. "tests/**/*.ts"
  337. ]
  338. },
  339. "packages/web/web-search-exa": {
  340. "entry": [
  341. "tests/**/*.spec.ts",
  342. "tests/**/*.e2e.ts"
  343. ],
  344. "project": [
  345. "src/**/*.ts",
  346. "tests/**/*.ts"
  347. ]
  348. },
  349. "packages/web/web-search-perplexity": {
  350. "entry": [
  351. "tests/**/*.spec.ts",
  352. "tests/**/*.e2e.ts"
  353. ],
  354. "project": [
  355. "src/**/*.ts",
  356. "tests/**/*.ts"
  357. ]
  358. },
  359. "packages/workflow/workflow-workerthread": {
  360. "entry": [
  361. "tests/**/*.spec.ts",
  362. "tests/**/*.e2e.ts"
  363. ],
  364. "project": [
  365. "src/**/*.ts",
  366. "tests/**/*.ts"
  367. ]
  368. },
  369. "packages/web/web-search-deepseek": {
  370. "entry": [
  371. "tests/**/*.spec.ts",
  372. "tests/**/*.e2e.ts"
  373. ],
  374. "project": [
  375. "src/**/*.ts",
  376. "tests/**/*.ts"
  377. ]
  378. },
  379. "packages/examples/acp-demo": {
  380. "entry": [
  381. "tests/**/*.spec.ts",
  382. "tests/**/*.e2e.ts"
  383. ],
  384. "project": [
  385. "src/**/*.ts",
  386. "tests/**/*.ts"
  387. ]
  388. },
  389. "packages/examples/agent-spine-demo": {
  390. "entry": [
  391. "tests/**/*.spec.ts",
  392. "tests/**/*.e2e.ts"
  393. ],
  394. "project": [
  395. "src/**/*.ts",
  396. "tests/**/*.ts"
  397. ]
  398. },
  399. "packages/ui/jsonrpc": {
  400. "entry": [
  401. "tests/**/*.spec.ts",
  402. "tests/**/*.e2e.ts"
  403. ],
  404. "project": [
  405. "src/**/*.ts",
  406. "tests/**/*.ts"
  407. ]
  408. },
  409. "packages/ui/commands": {
  410. "entry": [
  411. "tests/**/*.spec.ts"
  412. ],
  413. "project": [
  414. "src/**/*.ts",
  415. "tests/**/*.ts"
  416. ]
  417. },
  418. "packages/examples/tui-demo": {
  419. "entry": [
  420. "tests/**/*.spec.ts",
  421. "tests/**/*.e2e.ts"
  422. ],
  423. "project": [
  424. "src/**/*.ts",
  425. "tests/**/*.ts"
  426. ]
  427. },
  428. "packages/examples/cli-demo": {
  429. "entry": [
  430. "tests/**/*.spec.ts",
  431. "tests/**/*.e2e.ts"
  432. ],
  433. "project": [
  434. "src/**/*.ts",
  435. "tests/**/*.ts"
  436. ]
  437. },
  438. "packages/ui/tui": {
  439. "entry": [
  440. "tests/**/*.spec.ts",
  441. "tests/**/*.snapshot.ts"
  442. ],
  443. "project": [
  444. "src/**/*.ts",
  445. "tests/**/*.ts"
  446. ]
  447. },
  448. "packages/examples/jsonrpc-demo": {
  449. "project": [
  450. "src/**/*.ts"
  451. ]
  452. },
  453. "packages/sdk/create-sdk": {
  454. "entry": [
  455. "src/bin.ts",
  456. "tests/**/*.spec.ts",
  457. "tests/**/*.e2e.ts",
  458. "tests/**/*.snapshot.ts"
  459. ],
  460. "project": [
  461. "src/**/*.ts",
  462. "tests/**/*.ts"
  463. ]
  464. },
  465. "packages/sdk/scripts": {
  466. "entry": [
  467. "src/bin.ts",
  468. "tests/**/*.spec.ts",
  469. "tests/**/*.snapshot.ts"
  470. ],
  471. "project": [
  472. "src/**/*.ts",
  473. "tests/**/*.ts"
  474. ],
  475. "ignoreDependencies": [
  476. "node-addon-require-builtin"
  477. ]
  478. },
  479. "packages/subagent/subagent-spawn": {
  480. "entry": [
  481. "tests/**/*.spec.ts",
  482. "tests/**/*.e2e.ts"
  483. ],
  484. "project": [
  485. "src/**/*.ts",
  486. "tests/**/*.ts"
  487. ]
  488. },
  489. "packages/subagent/subagent-acp": {
  490. "entry": [
  491. "tests/**/*.spec.ts",
  492. "tests/**/*.e2e.ts",
  493. "tests/mock-acp-server.ts"
  494. ],
  495. "project": [
  496. "src/**/*.ts",
  497. "tests/**/*.ts"
  498. ]
  499. },
  500. "packages/subagent/subagent-subprocess": {
  501. "entry": [
  502. "tests/**/*.spec.ts"
  503. ],
  504. "project": [
  505. "src/**/*.ts",
  506. "tests/**/*.ts"
  507. ]
  508. },
  509. "packages/fs/tool-fs": {
  510. "entry": [
  511. "tests/**/*.spec.ts",
  512. "tests/**/*.e2e.ts"
  513. ],
  514. "project": [
  515. "src/**/*.ts",
  516. "tests/**/*.ts"
  517. ]
  518. },
  519. "packages/fs/tool-fs-search": {
  520. "entry": [
  521. "tests/**/*.spec.ts"
  522. ],
  523. "project": [
  524. "src/**/*.ts",
  525. "tests/**/*.ts"
  526. ],
  527. "ignoreBinaries": [
  528. "rg"
  529. ]
  530. },
  531. "packages/mcp/mcp-client": {
  532. "entry": [
  533. "tests/**/*.spec.ts",
  534. "tests/**/*.e2e.ts",
  535. "tests/fixture-server.ts"
  536. ],
  537. "project": [
  538. "src/**/*.ts",
  539. "tests/**/*.ts"
  540. ],
  541. "ignoreDependencies": [
  542. "@modelcontextprotocol/server-everything",
  543. "@modelcontextprotocol/server-filesystem"
  544. ]
  545. },
  546. "packages/client/web": {
  547. "project": [
  548. "src/**/*.ts",
  549. "src/**/*.tsx",
  550. "tests/**/*.tsx"
  551. ],
  552. "ignoreDependencies": [
  553. "@deepseek-ai/dsh-client-ui-theme"
  554. ]
  555. },
  556. "apps/web": {
  557. "entry": [
  558. "tests/**/*.e2e.ts",
  559. "tests/**/*.snapshot.ts",
  560. "tests/support.ts",
  561. "src/node-module-stub.ts"
  562. ],
  563. "project": [
  564. "src/**/*.ts",
  565. "tests/**/*.ts"
  566. ],
  567. "ignoreDependencies": [
  568. "@deepseek-ai/dsh-client-ui-primitives",
  569. "@deepseek-ai/dsh-client-ui-slots",
  570. "@deepseek-ai/dsh-client-web-react",
  571. "@types/react",
  572. "@types/react-dom",
  573. "react",
  574. "react-dom"
  575. ]
  576. },
  577. "apps/cli": {
  578. "project": [
  579. "src/**/*.ts"
  580. ],
  581. "ignoreDependencies": [
  582. "@deepseek-ai/dsh-client-.+"
  583. ]
  584. },
  585. "packages/client/modules": {
  586. "entry": [
  587. "tests/**/*.spec.ts"
  588. ],
  589. "project": [
  590. "src/**/*.ts",
  591. "tests/**/*.ts"
  592. ]
  593. },
  594. "packages/client/hmr": {
  595. "entry": [
  596. "tests/**/*.spec.ts"
  597. ],
  598. "project": [
  599. "src/**/*.ts",
  600. "tests/**/*.ts"
  601. ]
  602. }
  603. }
  604. }