knip.json 13 KB

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