knip.json 13 KB

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