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