1
0

knip.json 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577
  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/attachment/attachment": {
  201. "project": [
  202. "src/**/*.ts"
  203. ]
  204. },
  205. "packages/util/timeout": {
  206. "entry": [
  207. "tests/**/*.spec.ts"
  208. ],
  209. "project": [
  210. "src/**/*.ts",
  211. "tests/**/*.ts"
  212. ]
  213. },
  214. "packages/util/retention": {
  215. "entry": [
  216. "tests/**/*.spec.ts"
  217. ],
  218. "project": [
  219. "src/**/*.ts",
  220. "tests/**/*.ts"
  221. ]
  222. },
  223. "packages/support/acp-snapshot": {
  224. "entry": [
  225. "tests/**/*.spec.ts",
  226. "tests/fixtures/fake-acp-agent.ts"
  227. ],
  228. "project": [
  229. "src/**/*.ts",
  230. "tests/**/*.ts"
  231. ]
  232. },
  233. "packages/support/loader-smoke": {
  234. "entry": [
  235. "tests/**/*.spec.ts",
  236. "tests/fixtures/*.ts"
  237. ],
  238. "project": [
  239. "src/**/*.ts",
  240. "tests/**/*.ts"
  241. ]
  242. },
  243. "packages/core/agent-loop": {
  244. "entry": [
  245. "tests/**/*.spec.ts",
  246. "tests/**/*.e2e.ts"
  247. ],
  248. "project": [
  249. "src/**/*.ts",
  250. "tests/**/*.ts"
  251. ]
  252. },
  253. "packages/goal/goal": {
  254. "entry": [
  255. "tests/**/*.spec.ts",
  256. "tests/**/*.e2e.ts"
  257. ],
  258. "project": [
  259. "src/**/*.ts",
  260. "tests/**/*.ts"
  261. ]
  262. },
  263. "packages/goal/goal-session": {
  264. "entry": [
  265. "tests/**/*.spec.ts"
  266. ],
  267. "project": [
  268. "src/**/*.ts",
  269. "tests/**/*.ts"
  270. ]
  271. },
  272. "packages/goal/tool-goal": {
  273. "entry": [
  274. "tests/**/*.spec.ts"
  275. ],
  276. "project": [
  277. "src/**/*.ts",
  278. "tests/**/*.ts"
  279. ]
  280. },
  281. "packages/code-runtime/code-runtime-worker": {
  282. "entry": [
  283. "tests/**/*.spec.ts",
  284. "tests/**/*.e2e.ts"
  285. ],
  286. "project": [
  287. "src/**/*.ts",
  288. "tests/**/*.ts"
  289. ]
  290. },
  291. "packages/llm/llm-deepseek": {
  292. "entry": [
  293. "tests/**/*.spec.ts",
  294. "tests/**/*.e2e.ts"
  295. ],
  296. "project": [
  297. "src/**/*.ts",
  298. "tests/**/*.ts"
  299. ]
  300. },
  301. "packages/llm/llm-pi-ai": {
  302. "entry": [
  303. "tests/**/*.spec.ts",
  304. "tests/**/*.e2e.ts"
  305. ],
  306. "project": [
  307. "src/**/*.ts",
  308. "tests/**/*.ts"
  309. ]
  310. },
  311. "packages/session-title/session-title-first-message-llm": {
  312. "entry": [
  313. "tests/**/*.spec.ts",
  314. "tests/**/*.e2e.ts"
  315. ],
  316. "project": [
  317. "src/**/*.ts",
  318. "tests/**/*.ts"
  319. ]
  320. },
  321. "packages/context/workspace-context": {
  322. "entry": [
  323. "tests/**/*.spec.ts",
  324. "tests/**/*.e2e.ts"
  325. ],
  326. "project": [
  327. "src/**/*.ts",
  328. "tests/**/*.ts"
  329. ]
  330. },
  331. "packages/session-persistence/session-checkpoint-policy": {
  332. "entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts"],
  333. "project": ["src/**/*.ts", "tests/**/*.ts"]
  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": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts"],
  396. "project": ["src/**/*.ts", "tests/**/*.ts"]
  397. },
  398. "packages/ui/jsonrpc": {
  399. "entry": [
  400. "tests/**/*.spec.ts",
  401. "tests/**/*.e2e.ts"
  402. ],
  403. "project": [
  404. "src/**/*.ts",
  405. "tests/**/*.ts"
  406. ]
  407. },
  408. "packages/ui/commands": {
  409. "entry": [
  410. "tests/**/*.spec.ts"
  411. ],
  412. "project": [
  413. "src/**/*.ts",
  414. "tests/**/*.ts"
  415. ]
  416. },
  417. "packages/examples/tui-demo": {
  418. "entry": [
  419. "tests/**/*.spec.ts",
  420. "tests/**/*.e2e.ts"
  421. ],
  422. "project": [
  423. "src/**/*.ts",
  424. "tests/**/*.ts"
  425. ]
  426. },
  427. "packages/examples/cli-demo": {
  428. "entry": [
  429. "tests/**/*.spec.ts",
  430. "tests/**/*.e2e.ts"
  431. ],
  432. "project": [
  433. "src/**/*.ts",
  434. "tests/**/*.ts"
  435. ]
  436. },
  437. "packages/ui/tui": {
  438. "entry": [
  439. "tests/**/*.spec.ts",
  440. "tests/**/*.snapshot.ts"
  441. ],
  442. "project": [
  443. "src/**/*.ts",
  444. "tests/**/*.ts"
  445. ]
  446. },
  447. "packages/examples/jsonrpc-demo": {
  448. "project": [
  449. "src/**/*.ts"
  450. ]
  451. },
  452. "packages/sdk/create-sdk": {
  453. "entry": [
  454. "src/bin.ts",
  455. "tests/**/*.spec.ts",
  456. "tests/**/*.e2e.ts",
  457. "tests/**/*.snapshot.ts"
  458. ],
  459. "project": [
  460. "src/**/*.ts",
  461. "tests/**/*.ts"
  462. ]
  463. },
  464. "packages/sdk/scripts": {
  465. "entry": [
  466. "src/bin.ts",
  467. "tests/**/*.spec.ts",
  468. "tests/**/*.snapshot.ts"
  469. ],
  470. "project": [
  471. "src/**/*.ts",
  472. "tests/**/*.ts"
  473. ],
  474. "ignoreDependencies": [
  475. "node-addon-require-builtin"
  476. ]
  477. },
  478. "packages/subagent/subagent-spawn": {
  479. "entry": [
  480. "tests/**/*.spec.ts",
  481. "tests/**/*.e2e.ts"
  482. ],
  483. "project": [
  484. "src/**/*.ts",
  485. "tests/**/*.ts"
  486. ]
  487. },
  488. "packages/subagent/subagent-acp": {
  489. "entry": [
  490. "tests/**/*.spec.ts",
  491. "tests/**/*.e2e.ts",
  492. "tests/mock-acp-server.ts"
  493. ],
  494. "project": [
  495. "src/**/*.ts",
  496. "tests/**/*.ts"
  497. ]
  498. },
  499. "packages/subagent/subagent-subprocess": {
  500. "entry": [
  501. "tests/**/*.spec.ts"
  502. ],
  503. "project": [
  504. "src/**/*.ts",
  505. "tests/**/*.ts"
  506. ]
  507. },
  508. "packages/fs/tool-fs": {
  509. "entry": [
  510. "tests/**/*.spec.ts",
  511. "tests/**/*.e2e.ts"
  512. ],
  513. "project": [
  514. "src/**/*.ts",
  515. "tests/**/*.ts"
  516. ]
  517. },
  518. "packages/fs/tool-fs-search": {
  519. "entry": [
  520. "tests/**/*.spec.ts"
  521. ],
  522. "project": [
  523. "src/**/*.ts",
  524. "tests/**/*.ts"
  525. ],
  526. "ignoreBinaries": [
  527. "rg"
  528. ]
  529. },
  530. "packages/mcp/mcp-client": {
  531. "entry": [
  532. "tests/**/*.spec.ts",
  533. "tests/**/*.e2e.ts",
  534. "tests/fixture-server.ts"
  535. ],
  536. "project": [
  537. "src/**/*.ts",
  538. "tests/**/*.ts"
  539. ],
  540. "ignoreDependencies": [
  541. "@modelcontextprotocol/server-everything",
  542. "@modelcontextprotocol/server-filesystem"
  543. ]
  544. },
  545. "packages/client/web": {
  546. "project": [
  547. "src/**/*.ts",
  548. "src/**/*.tsx",
  549. "tests/**/*.tsx"
  550. ],
  551. "ignoreDependencies": [
  552. "@deepseek-ai/dsh-client-ui-theme",
  553. "@deepseek-ai/dsh-client-connection"
  554. ]
  555. },
  556. "apps/web": {
  557. "entry": [
  558. "tests/**/*.e2e.ts",
  559. "tests/support.ts"
  560. ],
  561. "project": [
  562. "src/**/*.ts",
  563. "tests/**/*.ts"
  564. ],
  565. "ignoreDependencies": [
  566. "@deepseek-ai/dsh-client-runtime",
  567. "@deepseek-ai/dsh-client-ui-primitives",
  568. "@deepseek-ai/dsh-client-ui-slots",
  569. "@deepseek-ai/dsh-client-web-react",
  570. "@types/react",
  571. "@types/react-dom",
  572. "react",
  573. "react-dom"
  574. ]
  575. }
  576. }
  577. }