knip.json 14 KB

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