knip.json 12 KB

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