knip.json 12 KB

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