knip.json 16 KB

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