knip.json 12 KB

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