knip.json 13 KB

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