knip.json 13 KB

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