knip.json 13 KB

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