knip.json 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572
  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/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": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts"],
  391. "project": ["src/**/*.ts", "tests/**/*.ts"]
  392. },
  393. "packages/ui/jsonrpc": {
  394. "entry": [
  395. "tests/**/*.spec.ts",
  396. "tests/**/*.e2e.ts"
  397. ],
  398. "project": [
  399. "src/**/*.ts",
  400. "tests/**/*.ts"
  401. ]
  402. },
  403. "packages/ui/commands": {
  404. "entry": [
  405. "tests/**/*.spec.ts"
  406. ],
  407. "project": [
  408. "src/**/*.ts",
  409. "tests/**/*.ts"
  410. ]
  411. },
  412. "packages/examples/tui-demo": {
  413. "entry": [
  414. "tests/**/*.spec.ts",
  415. "tests/**/*.e2e.ts"
  416. ],
  417. "project": [
  418. "src/**/*.ts",
  419. "tests/**/*.ts"
  420. ]
  421. },
  422. "packages/examples/cli-demo": {
  423. "entry": [
  424. "tests/**/*.spec.ts",
  425. "tests/**/*.e2e.ts"
  426. ],
  427. "project": [
  428. "src/**/*.ts",
  429. "tests/**/*.ts"
  430. ]
  431. },
  432. "packages/ui/tui": {
  433. "entry": [
  434. "tests/**/*.spec.ts",
  435. "tests/**/*.snapshot.ts"
  436. ],
  437. "project": [
  438. "src/**/*.ts",
  439. "tests/**/*.ts"
  440. ]
  441. },
  442. "packages/examples/jsonrpc-demo": {
  443. "project": [
  444. "src/**/*.ts"
  445. ]
  446. },
  447. "packages/sdk/create-sdk": {
  448. "entry": [
  449. "src/bin.ts",
  450. "tests/**/*.spec.ts",
  451. "tests/**/*.e2e.ts",
  452. "tests/**/*.snapshot.ts"
  453. ],
  454. "project": [
  455. "src/**/*.ts",
  456. "tests/**/*.ts"
  457. ]
  458. },
  459. "packages/sdk/scripts": {
  460. "entry": [
  461. "src/bin.ts",
  462. "tests/**/*.spec.ts",
  463. "tests/**/*.snapshot.ts"
  464. ],
  465. "project": [
  466. "src/**/*.ts",
  467. "tests/**/*.ts"
  468. ],
  469. "ignoreDependencies": [
  470. "node-addon-require-builtin"
  471. ]
  472. },
  473. "packages/subagent/subagent-spawn": {
  474. "entry": [
  475. "tests/**/*.spec.ts",
  476. "tests/**/*.e2e.ts"
  477. ],
  478. "project": [
  479. "src/**/*.ts",
  480. "tests/**/*.ts"
  481. ]
  482. },
  483. "packages/subagent/subagent-acp": {
  484. "entry": [
  485. "tests/**/*.spec.ts",
  486. "tests/**/*.e2e.ts",
  487. "tests/mock-acp-server.ts"
  488. ],
  489. "project": [
  490. "src/**/*.ts",
  491. "tests/**/*.ts"
  492. ]
  493. },
  494. "packages/subagent/subagent-subprocess": {
  495. "entry": [
  496. "tests/**/*.spec.ts"
  497. ],
  498. "project": [
  499. "src/**/*.ts",
  500. "tests/**/*.ts"
  501. ]
  502. },
  503. "packages/fs/tool-fs": {
  504. "entry": [
  505. "tests/**/*.spec.ts",
  506. "tests/**/*.e2e.ts"
  507. ],
  508. "project": [
  509. "src/**/*.ts",
  510. "tests/**/*.ts"
  511. ]
  512. },
  513. "packages/fs/tool-fs-search": {
  514. "entry": [
  515. "tests/**/*.spec.ts"
  516. ],
  517. "project": [
  518. "src/**/*.ts",
  519. "tests/**/*.ts"
  520. ],
  521. "ignoreBinaries": [
  522. "rg"
  523. ]
  524. },
  525. "packages/mcp/mcp-client": {
  526. "entry": [
  527. "tests/**/*.spec.ts",
  528. "tests/**/*.e2e.ts",
  529. "tests/fixture-server.ts"
  530. ],
  531. "project": [
  532. "src/**/*.ts",
  533. "tests/**/*.ts"
  534. ],
  535. "ignoreDependencies": [
  536. "@modelcontextprotocol/server-everything",
  537. "@modelcontextprotocol/server-filesystem"
  538. ]
  539. },
  540. "packages/client/web": {
  541. "project": [
  542. "src/**/*.ts",
  543. "src/**/*.tsx",
  544. "tests/**/*.tsx"
  545. ],
  546. "ignoreDependencies": [
  547. "@deepseek-ai/dsh-client-ui-theme",
  548. "@deepseek-ai/dsh-client-connection"
  549. ]
  550. },
  551. "apps/web": {
  552. "entry": [
  553. "tests/**/*.e2e.ts",
  554. "tests/support.ts"
  555. ],
  556. "project": [
  557. "src/**/*.ts",
  558. "tests/**/*.ts"
  559. ],
  560. "ignoreDependencies": [
  561. "@deepseek-ai/dsh-client-runtime",
  562. "@deepseek-ai/dsh-client-ui-primitives",
  563. "@deepseek-ai/dsh-client-ui-slots",
  564. "@deepseek-ai/dsh-client-web-react",
  565. "@types/react",
  566. "@types/react-dom",
  567. "react",
  568. "react-dom"
  569. ]
  570. }
  571. }
  572. }