knip.json 13 KB

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