knip.json 13 KB

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