knip.json 14 KB

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