knip.json 16 KB

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