knip.json 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749
  1. {
  2. "$schema": "https://unpkg.com/knip@5/schema.json",
  3. "exclude": [
  4. "duplicates"
  5. ],
  6. "ignoreBinaries": [
  7. "bwrap",
  8. "icacls",
  9. "musl-gcc",
  10. "python3",
  11. "sandbox-exec",
  12. "taskkill",
  13. "where.exe"
  14. ],
  15. "ignoreWorkspaces": [
  16. "vendor/*",
  17. "python/sdk-runtime"
  18. ],
  19. "ignoreDependencies": [
  20. "@yarnpkg/cli-dist",
  21. "lightningcss"
  22. ],
  23. "workspaces": {
  24. ".": {
  25. "entry": [
  26. "scripts/**/*.mjs",
  27. "scripts/**/*.cjs"
  28. ],
  29. "project": [
  30. "scripts/**/*.ts",
  31. "scripts/**/*.mjs",
  32. "scripts/**/*.cjs"
  33. ],
  34. "ignoreDependencies": [
  35. "playwright"
  36. ]
  37. },
  38. "examples": {
  39. "entry": [
  40. "headless-agent/tests/fixtures/cli-mock-llm.ts",
  41. "headless-agent/tests/fixtures/semantic-checkpoint-agent.ts",
  42. "headless-agent/tests/fixtures/subagent-diagnostic-agent.ts",
  43. "headless-agent/tests/fixtures/subagent-inheritance-agent.ts",
  44. "headless-agent/tests/fixtures/workspace-context-resume-agent.ts",
  45. "headless-agent/tests/fixtures/goal-domain/seed-goal.ts",
  46. "headless-agent/tests/fixtures/time-context-driver.ts",
  47. "headless-agent/tests/fixtures/time-context-mock-llm.ts",
  48. "headless-agent/tests/fixtures/telemetry-otel-driver.ts",
  49. "headless-agent/tests/fixtures/telemetry-redact-rule.ts",
  50. "headless-agent/tests/fixtures/e2b/e2b/bin.ts",
  51. "acp-agent/tests/snapshots/lsp-definition/workspace/subject.ts",
  52. "acp-agent/tests/fixtures/child-question-tripwire.ts",
  53. "acp-agent/tests/fixtures/partial-landlock-sandbox.ts",
  54. "acp-agent/tests/fixtures/subagent-durability-failure.ts",
  55. "acp-agent/tests/fixtures/subagent-settlement-marker.ts",
  56. "acp-agent/tests/fixtures/workspace-context-compaction.ts",
  57. "acp-agent/tests/fixtures/subagent/subagent-acp/mock-delegating-llm.ts",
  58. "acp-agent/tests/fixtures/subagent/subagent-acp/driver.ts",
  59. "acp-agent/tests/fixtures/subagent/subagent-claude-code/fixture.ts",
  60. "acp-agent/tests/fixtures/subagent/subagent-claude-code/driver.ts",
  61. "acp-agent/tests/fixtures/subagent/subagent-codex/fixture.ts",
  62. "acp-agent/tests/fixtures/subagent/subagent-codex/driver.ts",
  63. "jsonrpc-agent/tests/fixtures/subagent/subagent-dsh-sdk/driver.ts",
  64. "jsonrpc-agent/tests/fixtures/subagent/subagent-dsh-sdk/child-mock-llm.ts",
  65. "jsonrpc-agent/tests/fixtures/subagent/subagent-dsh-sdk/mock-delegating-llm.ts",
  66. "*/tests/**/*.e2e.ts",
  67. "*/tests/**/*.snapshot.ts"
  68. ],
  69. "project": [
  70. "**/*.ts"
  71. ],
  72. "ignoreDependencies": [
  73. "@cordisjs/plugin-logger-console",
  74. "@deepseek-ai/.+"
  75. ]
  76. },
  77. "packages/util/home": {
  78. "entry": [
  79. "tests/**/*.spec.ts"
  80. ],
  81. "project": [
  82. "src/**/*.ts",
  83. "tests/**/*.ts"
  84. ]
  85. },
  86. "packages/host/webserver": {
  87. "entry": [
  88. "tests/**/*.spec.ts"
  89. ],
  90. "project": [
  91. "src/**/*.ts",
  92. "tests/**/*.ts"
  93. ]
  94. },
  95. "packages/host/directory-picker-native": {
  96. "entry": [
  97. "tests/**/*.spec.{ts,tsx}",
  98. "tests/**/*.e2e.ts"
  99. ],
  100. "project": [
  101. "src/**/*.{ts,tsx}",
  102. "tests/**/*.{ts,tsx}"
  103. ]
  104. },
  105. "packages/client/web-ui": {
  106. "entry": [
  107. "tests/**/*.spec.{ts,tsx}"
  108. ],
  109. "project": [
  110. "src/**/*.{ts,tsx}",
  111. "tests/**/*.{ts,tsx}"
  112. ]
  113. },
  114. "packages/client/runtime": {
  115. "entry": [
  116. "tests/**/*.spec.ts"
  117. ],
  118. "project": [
  119. "src/**/*.ts",
  120. "tests/**/*.ts"
  121. ]
  122. },
  123. "packages/api/remotes": {
  124. "entry": [
  125. "tests/**/*.e2e.ts"
  126. ],
  127. "project": [
  128. "src/**/*.ts",
  129. "tests/**/*.ts"
  130. ]
  131. },
  132. "packages/client/ui-primitives": {
  133. "entry": [
  134. "tests/**/*.spec.tsx"
  135. ],
  136. "project": [
  137. "src/**/*.ts",
  138. "src/**/*.tsx",
  139. "tests/**/*.tsx"
  140. ]
  141. },
  142. "packages/client/ui-goal": {
  143. "entry": [
  144. "tests/**/*.spec.tsx"
  145. ],
  146. "project": [
  147. "src/**/*.ts",
  148. "src/**/*.tsx",
  149. "tests/**/*.tsx"
  150. ]
  151. },
  152. "packages/client/ui-deliverables": {
  153. "entry": [
  154. "tests/**/*.spec.tsx"
  155. ],
  156. "project": [
  157. "src/**/*.ts",
  158. "src/**/*.tsx",
  159. "tests/**/*.tsx"
  160. ]
  161. },
  162. "packages/client/web-react": {
  163. "entry": [
  164. "tests/**/*.spec.tsx"
  165. ],
  166. "project": [
  167. "src/**/*.ts",
  168. "src/**/*.tsx",
  169. "tests/**/*.tsx"
  170. ]
  171. },
  172. "packages/client/ui-layout": {
  173. "entry": [
  174. "tests/**/*.spec.ts",
  175. "tests/**/*.spec.tsx"
  176. ],
  177. "project": [
  178. "src/**/*.ts",
  179. "src/**/*.tsx",
  180. "tests/**/*.ts",
  181. "tests/**/*.tsx"
  182. ]
  183. },
  184. "website": {
  185. "project": [
  186. "**/*.ts"
  187. ],
  188. "ignoreDependencies": [
  189. "@braintree/sanitize-url",
  190. "cytoscape",
  191. "cytoscape-cose-bilkent",
  192. "dayjs",
  193. "debug"
  194. ]
  195. },
  196. "packages/*/*": {
  197. "entry": [
  198. "tests/**/*.spec.ts"
  199. ],
  200. "project": [
  201. "src/**/*.ts",
  202. "tests/**/*.ts"
  203. ]
  204. },
  205. "packages/core/tools": {
  206. "entry": [
  207. "tests/**/*.spec.ts"
  208. ],
  209. "project": [
  210. "src/**/*.ts",
  211. "tests/**/*.ts"
  212. ]
  213. },
  214. "packages/typert/generator": {
  215. "entry": [
  216. "tests/**/*.spec.ts",
  217. "tests/fixtures/type-model/**/*.ts",
  218. "tests/fixtures/remote-model/**/*.ts"
  219. ],
  220. "project": [
  221. "src/**/*.ts",
  222. "tests/**/*.ts"
  223. ]
  224. },
  225. "packages/bash/bash-sandbox": {
  226. "entry": [
  227. "tests/**/*.spec.ts",
  228. "tests/**/*.e2e.ts"
  229. ],
  230. "project": [
  231. "src/**/*.ts",
  232. "tests/**/*.ts"
  233. ]
  234. },
  235. "packages/bash/pwsh-sandbox": {
  236. "packages/e2b/e2b": {
  237. "entry": [
  238. "tests/**/*.spec.ts",
  239. "tests/**/*.e2e.ts"
  240. ],
  241. "project": [
  242. "src/**/*.ts",
  243. "tests/**/*.ts"
  244. ]
  245. },
  246. "packages/context/time-context": {
  247. "entry": [
  248. "tests/**/*.spec.ts",
  249. "tests/**/*.e2e.ts"
  250. ],
  251. "project": [
  252. "src/**/*.ts",
  253. "tests/**/*.ts"
  254. ]
  255. },
  256. "packages/context/tmux-context": {
  257. "entry": [
  258. "tests/**/*.spec.ts"
  259. ],
  260. "project": [
  261. "src/**/*.ts",
  262. "tests/**/*.ts"
  263. ]
  264. },
  265. "packages/lsp/lsp-local": {
  266. "entry": [
  267. "tests/**/*.spec.ts",
  268. "tests/**/*.e2e.ts",
  269. "tests/fixture-server.ts"
  270. ],
  271. "project": [
  272. "src/**/*.ts",
  273. "tests/**/*.ts"
  274. ],
  275. "ignoreDependencies": [
  276. "typescript-language-server"
  277. ]
  278. },
  279. "packages/sandbox/sandbox-local": {
  280. "entry": [
  281. "tests/**/*.spec.ts",
  282. "tests/**/*.e2e.ts"
  283. ],
  284. "project": [
  285. "src/**/*.ts",
  286. "tests/**/*.ts"
  287. ]
  288. },
  289. "packages/telemetry/session-telemetry-otel": {
  290. "entry": [
  291. "tests/**/*.spec.ts",
  292. "tests/**/*.e2e.ts"
  293. ],
  294. "project": [
  295. "src/**/*.ts",
  296. "tests/**/*.ts"
  297. ]
  298. },
  299. "packages/util/brand": {
  300. "project": [
  301. "src/**/*.ts"
  302. ]
  303. },
  304. "packages/util/timeout": {
  305. "entry": [
  306. "tests/**/*.spec.ts"
  307. ],
  308. "project": [
  309. "src/**/*.ts",
  310. "tests/**/*.ts"
  311. ]
  312. },
  313. "packages/util/retention": {
  314. "entry": [
  315. "tests/**/*.spec.ts"
  316. ],
  317. "project": [
  318. "src/**/*.ts",
  319. "tests/**/*.ts"
  320. ]
  321. },
  322. "packages/support/acp-snapshot": {
  323. "entry": [
  324. "tests/**/*.spec.ts",
  325. "tests/fixtures/fake-acp-agent.ts"
  326. ],
  327. "project": [
  328. "src/**/*.ts",
  329. "tests/**/*.ts"
  330. ]
  331. },
  332. "packages/support/loader-smoke": {
  333. "entry": [
  334. "tests/**/*.spec.ts",
  335. "tests/fixtures/*.ts"
  336. ],
  337. "project": [
  338. "src/**/*.ts",
  339. "tests/**/*.ts"
  340. ]
  341. },
  342. "packages/core/agent-loop": {
  343. "entry": [
  344. "tests/**/*.spec.ts",
  345. "tests/**/*.e2e.ts"
  346. ],
  347. "project": [
  348. "src/**/*.ts",
  349. "tests/**/*.ts"
  350. ]
  351. },
  352. "packages/goal/goal": {
  353. "entry": [
  354. "tests/**/*.spec.ts",
  355. "tests/**/*.e2e.ts"
  356. ],
  357. "project": [
  358. "src/**/*.ts",
  359. "tests/**/*.ts"
  360. ]
  361. },
  362. "packages/goal/goal-session": {
  363. "entry": [
  364. "tests/**/*.spec.ts"
  365. ],
  366. "project": [
  367. "src/**/*.ts",
  368. "tests/**/*.ts"
  369. ]
  370. },
  371. "packages/goal/tool-goal": {
  372. "entry": [
  373. "tests/**/*.spec.ts"
  374. ],
  375. "project": [
  376. "src/**/*.ts",
  377. "tests/**/*.ts"
  378. ]
  379. },
  380. "packages/session-query/session-query-sqlite": {
  381. "entry": [
  382. "tests/**/*.spec.ts",
  383. "tests/**/*.e2e.ts"
  384. ],
  385. "project": [
  386. "src/**/*.ts",
  387. "tests/**/*.ts"
  388. ]
  389. },
  390. "packages/code-runtime/code-runtime-worker": {
  391. "entry": [
  392. "tests/**/*.spec.ts",
  393. "tests/**/*.e2e.ts"
  394. ],
  395. "project": [
  396. "src/**/*.ts",
  397. "tests/**/*.ts"
  398. ]
  399. },
  400. "packages/llm/llm-deepseek": {
  401. "entry": [
  402. "tests/**/*.spec.ts",
  403. "tests/**/*.e2e.ts"
  404. ],
  405. "project": [
  406. "src/**/*.ts",
  407. "tests/**/*.ts"
  408. ]
  409. },
  410. "packages/llm/llm-pi-ai": {
  411. "entry": [
  412. "tests/**/*.spec.ts",
  413. "tests/**/*.e2e.ts"
  414. ],
  415. "project": [
  416. "src/**/*.ts",
  417. "tests/**/*.ts"
  418. ]
  419. },
  420. "packages/session-title/session-title-first-message-llm": {
  421. "entry": [
  422. "tests/**/*.spec.ts",
  423. "tests/**/*.e2e.ts"
  424. ],
  425. "project": [
  426. "src/**/*.ts",
  427. "tests/**/*.ts"
  428. ]
  429. },
  430. "packages/context/workspace-context": {
  431. "entry": [
  432. "tests/**/*.spec.ts",
  433. "tests/**/*.e2e.ts"
  434. ],
  435. "project": [
  436. "src/**/*.ts",
  437. "tests/**/*.ts"
  438. ]
  439. },
  440. "packages/session-persistence/session-checkpoint-policy": {
  441. "entry": [
  442. "tests/**/*.spec.ts",
  443. "tests/**/*.e2e.ts"
  444. ],
  445. "project": [
  446. "src/**/*.ts",
  447. "tests/**/*.ts"
  448. ]
  449. },
  450. "packages/util/paths": {
  451. "entry": [
  452. "tests/**/*.spec.ts"
  453. ],
  454. "project": [
  455. "src/**/*.ts",
  456. "tests/**/*.ts"
  457. ]
  458. },
  459. "packages/web/web-search-exa": {
  460. "entry": [
  461. "tests/**/*.spec.ts",
  462. "tests/**/*.e2e.ts"
  463. ],
  464. "project": [
  465. "src/**/*.ts",
  466. "tests/**/*.ts"
  467. ]
  468. },
  469. "packages/web/web-search-perplexity": {
  470. "entry": [
  471. "tests/**/*.spec.ts",
  472. "tests/**/*.e2e.ts"
  473. ],
  474. "project": [
  475. "src/**/*.ts",
  476. "tests/**/*.ts"
  477. ]
  478. },
  479. "packages/workflow/workflow-workerthread": {
  480. "entry": [
  481. "tests/**/*.spec.ts",
  482. "tests/**/*.e2e.ts"
  483. ],
  484. "project": [
  485. "src/**/*.ts",
  486. "tests/**/*.ts"
  487. ]
  488. },
  489. "packages/web/web-search-deepseek": {
  490. "entry": [
  491. "tests/**/*.spec.ts",
  492. "tests/**/*.e2e.ts"
  493. ],
  494. "project": [
  495. "src/**/*.ts",
  496. "tests/**/*.ts"
  497. ]
  498. },
  499. "packages/examples/acp-demo": {
  500. "entry": [
  501. "tests/**/*.spec.ts",
  502. "tests/**/*.e2e.ts"
  503. ],
  504. "project": [
  505. "src/**/*.ts",
  506. "tests/**/*.ts"
  507. ]
  508. },
  509. "packages/examples/agent-spine-demo": {
  510. "entry": [
  511. "tests/**/*.spec.ts",
  512. "tests/**/*.e2e.ts"
  513. ],
  514. "project": [
  515. "src/**/*.ts",
  516. "tests/**/*.ts"
  517. ]
  518. },
  519. "packages/ui/jsonrpc": {
  520. "entry": [
  521. "tests/**/*.spec.ts",
  522. "tests/**/*.e2e.ts"
  523. ],
  524. "project": [
  525. "src/**/*.ts",
  526. "tests/**/*.ts"
  527. ]
  528. },
  529. "packages/ui/commands": {
  530. "entry": [
  531. "tests/**/*.spec.ts"
  532. ],
  533. "project": [
  534. "src/**/*.ts",
  535. "tests/**/*.ts"
  536. ]
  537. },
  538. "packages/examples/jsonrpc-demo": {
  539. "project": [
  540. "src/**/*.ts"
  541. ]
  542. },
  543. "packages/sdk/create-sdk": {
  544. "entry": [
  545. "src/bin.ts",
  546. "tests/**/*.spec.ts",
  547. "tests/**/*.e2e.ts",
  548. "tests/**/*.snapshot.ts"
  549. ],
  550. "project": [
  551. "src/**/*.ts",
  552. "tests/**/*.ts"
  553. ]
  554. },
  555. "packages/sdk/scripts": {
  556. "entry": [
  557. "src/bin.ts",
  558. "tests/**/*.spec.ts",
  559. "tests/**/*.snapshot.ts"
  560. ],
  561. "project": [
  562. "src/**/*.ts",
  563. "tests/**/*.ts"
  564. ],
  565. "ignoreDependencies": [
  566. "node-addon-require-builtin"
  567. ]
  568. },
  569. "packages/subagent/subagent-spawn": {
  570. "entry": [
  571. "tests/**/*.spec.ts",
  572. "tests/**/*.e2e.ts"
  573. ],
  574. "project": [
  575. "src/**/*.ts",
  576. "tests/**/*.ts"
  577. ]
  578. },
  579. "packages/subagent/subagent-acp": {
  580. "entry": [
  581. "tests/**/*.spec.ts",
  582. "tests/**/*.e2e.ts",
  583. "tests/mock-acp-server.ts"
  584. ],
  585. "project": [
  586. "src/**/*.ts",
  587. "tests/**/*.ts"
  588. ]
  589. },
  590. "packages/subagent/subagent-codex": {
  591. "entry": [
  592. "tests/**/*.spec.ts",
  593. "tests/**/*.e2e.ts"
  594. ],
  595. "project": [
  596. "src/**/*.ts",
  597. "tests/**/*.ts"
  598. ],
  599. "ignoreDependencies": [
  600. "@openai/codex"
  601. ]
  602. },
  603. "packages/subagent/subagent-claude-code": {
  604. "entry": [
  605. "tests/**/*.spec.ts",
  606. "tests/**/*.e2e.ts"
  607. ],
  608. "project": [
  609. "src/**/*.ts",
  610. "tests/**/*.ts"
  611. ]
  612. },
  613. "packages/fs/tool-fs": {
  614. "entry": [
  615. "tests/**/*.spec.ts",
  616. "tests/**/*.e2e.ts"
  617. ],
  618. "project": [
  619. "src/**/*.ts",
  620. "tests/**/*.ts"
  621. ]
  622. },
  623. "packages/fs/tool-fs-search": {
  624. "entry": [
  625. "tests/**/*.spec.ts"
  626. ],
  627. "project": [
  628. "src/**/*.ts",
  629. "tests/**/*.ts"
  630. ]
  631. },
  632. "packages/mcp/mcp-client": {
  633. "entry": [
  634. "tests/**/*.spec.ts",
  635. "tests/**/*.e2e.ts",
  636. "tests/fixture-server.ts"
  637. ],
  638. "project": [
  639. "src/**/*.ts",
  640. "tests/**/*.ts"
  641. ],
  642. "ignoreDependencies": [
  643. "@modelcontextprotocol/server-everything",
  644. "@modelcontextprotocol/server-filesystem"
  645. ]
  646. },
  647. "packages/client/web": {
  648. "project": [
  649. "src/**/*.ts",
  650. "src/**/*.tsx",
  651. "tests/**/*.tsx"
  652. ],
  653. "ignoreDependencies": [
  654. "@deepseek-ai/dsh-client-ui-theme"
  655. ]
  656. },
  657. "packages/client/ui-settings": {
  658. "entry": [
  659. "tests/**/*.spec.ts",
  660. "tests/**/*.spec.tsx"
  661. ],
  662. "project": [
  663. "src/**/*.ts",
  664. "src/**/*.tsx",
  665. "tests/**/*.ts",
  666. "tests/**/*.tsx"
  667. ],
  668. "ignoreDependencies": [
  669. "@types/react-dom",
  670. "react-dom"
  671. ]
  672. },
  673. "apps/web": {
  674. "entry": [
  675. "tests/**/*.e2e.ts",
  676. "tests/**/*.perf.ts",
  677. "tests/**/*.snapshot.ts",
  678. "tests/support.ts",
  679. "src/node-module-stub.ts"
  680. ],
  681. "project": [
  682. "src/**/*.ts",
  683. "tests/**/*.ts"
  684. ],
  685. "ignoreDependencies": [
  686. "@deepseek-ai/dsh-client-ui-primitives",
  687. "@deepseek-ai/dsh-client-ui-slots",
  688. "@deepseek-ai/dsh-client-web-react",
  689. "@types/react",
  690. "@types/react-dom",
  691. "react",
  692. "react-dom"
  693. ]
  694. },
  695. "apps/cli": {
  696. "entry": [
  697. "tests/**/*.spec.ts",
  698. "tests/**/*.e2e.ts",
  699. "tests/**/*.snapshot.ts"
  700. ],
  701. "project": [
  702. "src/**/*.ts",
  703. "tests/**/*.ts"
  704. ],
  705. "ignoreDependencies": [
  706. "@deepseek-ai/.+"
  707. ]
  708. },
  709. "packages/client/modules": {
  710. "entry": [
  711. "tests/**/*.spec.ts"
  712. ],
  713. "project": [
  714. "src/**/*.ts",
  715. "tests/**/*.ts"
  716. ]
  717. },
  718. "packages/client/hmr": {
  719. "entry": [
  720. "tests/**/*.spec.ts"
  721. ],
  722. "project": [
  723. "src/**/*.ts",
  724. "tests/**/*.ts"
  725. ]
  726. },
  727. "packages/subagent/subagent-dsh-sdk": {
  728. "entry": [
  729. "tests/**/*.spec.ts",
  730. "tests/**/*.e2e.ts"
  731. ],
  732. "project": [
  733. "src/**/*.ts",
  734. "tests/**/*.ts"
  735. ]
  736. },
  737. "packages/bundle/base": {
  738. "ignoreDependencies": [
  739. "@deepseek-ai/.+",
  740. "@cordisjs/.+"
  741. ]
  742. },
  743. "packages/bundle/web-app": {
  744. "ignoreDependencies": [
  745. "@deepseek-ai/.+"
  746. ]
  747. }
  748. }
  749. }