knip.json 12 KB

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