knip.json 12 KB

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