knip.json 12 KB

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