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