knip.json 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746
  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. "ignoreDependencies": [
  131. "@deepseek-ai/dsh-api-gateway"
  132. ]
  133. },
  134. "packages/client/ui-primitives": {
  135. "entry": [
  136. "tests/**/*.spec.tsx"
  137. ],
  138. "project": [
  139. "src/**/*.ts",
  140. "src/**/*.tsx",
  141. "tests/**/*.tsx"
  142. ]
  143. },
  144. "packages/client/ui-goal": {
  145. "entry": [
  146. "tests/**/*.spec.tsx"
  147. ],
  148. "project": [
  149. "src/**/*.ts",
  150. "src/**/*.tsx",
  151. "tests/**/*.tsx"
  152. ]
  153. },
  154. "packages/client/ui-deliverables": {
  155. "entry": [
  156. "tests/**/*.spec.tsx"
  157. ],
  158. "project": [
  159. "src/**/*.ts",
  160. "src/**/*.tsx",
  161. "tests/**/*.tsx"
  162. ]
  163. },
  164. "packages/client/ui-workflow-run": {
  165. "entry": [
  166. "tests/**/*.spec.tsx"
  167. ],
  168. "project": [
  169. "src/**/*.ts",
  170. "src/**/*.tsx",
  171. "tests/**/*.tsx"
  172. ]
  173. },
  174. "packages/client/web-react": {
  175. "entry": [
  176. "tests/**/*.spec.tsx"
  177. ],
  178. "project": [
  179. "src/**/*.ts",
  180. "src/**/*.tsx",
  181. "tests/**/*.tsx"
  182. ]
  183. },
  184. "packages/client/ui-layout": {
  185. "entry": [
  186. "tests/**/*.spec.ts",
  187. "tests/**/*.spec.tsx"
  188. ],
  189. "project": [
  190. "src/**/*.ts",
  191. "src/**/*.tsx",
  192. "tests/**/*.ts",
  193. "tests/**/*.tsx"
  194. ]
  195. },
  196. "website": {
  197. "project": [
  198. "**/*.ts"
  199. ],
  200. "ignoreDependencies": [
  201. "@braintree/sanitize-url",
  202. "cytoscape",
  203. "cytoscape-cose-bilkent",
  204. "dayjs",
  205. "debug"
  206. ]
  207. },
  208. "packages/*/*": {
  209. "entry": [
  210. "tests/**/*.spec.ts"
  211. ],
  212. "project": [
  213. "src/**/*.ts",
  214. "tests/**/*.ts"
  215. ]
  216. },
  217. "packages/core/tools": {
  218. "entry": [
  219. "tests/**/*.spec.ts"
  220. ],
  221. "project": [
  222. "src/**/*.ts",
  223. "tests/**/*.ts"
  224. ]
  225. },
  226. "packages/typert/generator": {
  227. "entry": [
  228. "tests/**/*.spec.ts",
  229. "tests/fixtures/type-model/**/*.ts",
  230. "tests/fixtures/remote-model/**/*.ts"
  231. ],
  232. "project": [
  233. "src/**/*.ts",
  234. "tests/**/*.ts"
  235. ]
  236. },
  237. "packages/bash/bash-sandbox": {
  238. "entry": [
  239. "tests/**/*.spec.ts",
  240. "tests/**/*.e2e.ts"
  241. ],
  242. "project": [
  243. "src/**/*.ts",
  244. "tests/**/*.ts"
  245. ]
  246. },
  247. "packages/bash/pwsh-sandbox": {
  248. "entry": [
  249. "tests/**/*.spec.ts",
  250. "tests/**/*.e2e.ts"
  251. ],
  252. "project": [
  253. "src/**/*.ts",
  254. "tests/**/*.ts"
  255. ]
  256. },
  257. "packages/e2b/e2b": {
  258. "entry": [
  259. "tests/**/*.spec.ts",
  260. "tests/**/*.e2e.ts"
  261. ],
  262. "project": [
  263. "src/**/*.ts",
  264. "tests/**/*.ts"
  265. ]
  266. },
  267. "packages/context/time-context": {
  268. "entry": [
  269. "tests/**/*.spec.ts",
  270. "tests/**/*.e2e.ts"
  271. ],
  272. "project": [
  273. "src/**/*.ts",
  274. "tests/**/*.ts"
  275. ]
  276. },
  277. "packages/context/tmux-context": {
  278. "entry": [
  279. "tests/**/*.spec.ts"
  280. ],
  281. "project": [
  282. "src/**/*.ts",
  283. "tests/**/*.ts"
  284. ]
  285. },
  286. "packages/lsp/lsp-local": {
  287. "entry": [
  288. "tests/**/*.spec.ts",
  289. "tests/**/*.e2e.ts",
  290. "tests/fixture-server.ts"
  291. ],
  292. "project": [
  293. "src/**/*.ts",
  294. "tests/**/*.ts"
  295. ],
  296. "ignoreDependencies": [
  297. "typescript-language-server"
  298. ]
  299. },
  300. "packages/sandbox/sandbox-local": {
  301. "entry": [
  302. "tests/**/*.spec.ts",
  303. "tests/**/*.e2e.ts"
  304. ],
  305. "project": [
  306. "src/**/*.ts",
  307. "tests/**/*.ts"
  308. ]
  309. },
  310. "packages/session/session-telemetry-otel": {
  311. "entry": [
  312. "tests/**/*.spec.ts",
  313. "tests/**/*.e2e.ts"
  314. ],
  315. "project": [
  316. "src/**/*.ts",
  317. "tests/**/*.ts"
  318. ]
  319. },
  320. "packages/util/brand": {
  321. "project": [
  322. "src/**/*.ts"
  323. ]
  324. },
  325. "packages/attachment/attachment": {
  326. "project": [
  327. "src/**/*.ts"
  328. ]
  329. },
  330. "packages/util/timeout": {
  331. "entry": [
  332. "tests/**/*.spec.ts"
  333. ],
  334. "project": [
  335. "src/**/*.ts",
  336. "tests/**/*.ts"
  337. ]
  338. },
  339. "packages/util/retention": {
  340. "entry": [
  341. "tests/**/*.spec.ts"
  342. ],
  343. "project": [
  344. "src/**/*.ts",
  345. "tests/**/*.ts"
  346. ]
  347. },
  348. "packages/support/acp-snapshot": {
  349. "entry": [
  350. "tests/**/*.spec.ts",
  351. "tests/fixtures/fake-acp-agent.ts"
  352. ],
  353. "project": [
  354. "src/**/*.ts",
  355. "tests/**/*.ts"
  356. ]
  357. },
  358. "packages/support/loader-smoke": {
  359. "entry": [
  360. "tests/**/*.spec.ts",
  361. "tests/fixtures/*.ts"
  362. ],
  363. "project": [
  364. "src/**/*.ts",
  365. "tests/**/*.ts"
  366. ]
  367. },
  368. "packages/core/agent-loop": {
  369. "entry": [
  370. "tests/**/*.spec.ts",
  371. "tests/**/*.e2e.ts"
  372. ],
  373. "project": [
  374. "src/**/*.ts",
  375. "tests/**/*.ts"
  376. ]
  377. },
  378. "packages/goal/goal": {
  379. "entry": [
  380. "tests/**/*.spec.ts",
  381. "tests/**/*.e2e.ts"
  382. ],
  383. "project": [
  384. "src/**/*.ts",
  385. "tests/**/*.ts"
  386. ]
  387. },
  388. "packages/goal/goal-session": {
  389. "entry": [
  390. "tests/**/*.spec.ts"
  391. ],
  392. "project": [
  393. "src/**/*.ts",
  394. "tests/**/*.ts"
  395. ]
  396. },
  397. "packages/goal/tool-goal": {
  398. "entry": [
  399. "tests/**/*.spec.ts"
  400. ],
  401. "project": [
  402. "src/**/*.ts",
  403. "tests/**/*.ts"
  404. ]
  405. },
  406. "packages/session-query/session-query-sqlite": {
  407. "entry": [
  408. "tests/**/*.spec.ts",
  409. "tests/**/*.e2e.ts"
  410. ],
  411. "project": [
  412. "src/**/*.ts",
  413. "tests/**/*.ts"
  414. ]
  415. },
  416. "packages/code-runtime/code-runtime-worker": {
  417. "entry": [
  418. "tests/**/*.spec.ts",
  419. "tests/**/*.e2e.ts"
  420. ],
  421. "project": [
  422. "src/**/*.ts",
  423. "tests/**/*.ts"
  424. ]
  425. },
  426. "packages/llm/llm-deepseek": {
  427. "entry": [
  428. "tests/**/*.spec.ts",
  429. "tests/**/*.e2e.ts"
  430. ],
  431. "project": [
  432. "src/**/*.ts",
  433. "tests/**/*.ts"
  434. ]
  435. },
  436. "packages/llm/llm-pi-ai": {
  437. "entry": [
  438. "tests/**/*.spec.ts",
  439. "tests/**/*.e2e.ts"
  440. ],
  441. "project": [
  442. "src/**/*.ts",
  443. "tests/**/*.ts"
  444. ]
  445. },
  446. "packages/session/session-title-first-message-llm": {
  447. "entry": [
  448. "tests/**/*.spec.ts",
  449. "tests/**/*.e2e.ts"
  450. ],
  451. "project": [
  452. "src/**/*.ts",
  453. "tests/**/*.ts"
  454. ]
  455. },
  456. "packages/context/workspace-context": {
  457. "entry": [
  458. "tests/**/*.spec.ts",
  459. "tests/**/*.e2e.ts"
  460. ],
  461. "project": [
  462. "src/**/*.ts",
  463. "tests/**/*.ts"
  464. ]
  465. },
  466. "packages/session/session-checkpoint-policy": {
  467. "entry": [
  468. "tests/**/*.spec.ts",
  469. "tests/**/*.e2e.ts"
  470. ],
  471. "project": [
  472. "src/**/*.ts",
  473. "tests/**/*.ts"
  474. ]
  475. },
  476. "packages/util/paths": {
  477. "entry": [
  478. "tests/**/*.spec.ts"
  479. ],
  480. "project": [
  481. "src/**/*.ts",
  482. "tests/**/*.ts"
  483. ]
  484. },
  485. "packages/web/web-search-exa": {
  486. "entry": [
  487. "tests/**/*.spec.ts",
  488. "tests/**/*.e2e.ts"
  489. ],
  490. "project": [
  491. "src/**/*.ts",
  492. "tests/**/*.ts"
  493. ]
  494. },
  495. "packages/web/web-search-perplexity": {
  496. "entry": [
  497. "tests/**/*.spec.ts",
  498. "tests/**/*.e2e.ts"
  499. ],
  500. "project": [
  501. "src/**/*.ts",
  502. "tests/**/*.ts"
  503. ]
  504. },
  505. "packages/workflow/workflow-workerthread": {
  506. "entry": [
  507. "tests/**/*.spec.ts",
  508. "tests/**/*.e2e.ts"
  509. ],
  510. "project": [
  511. "src/**/*.ts",
  512. "tests/**/*.ts"
  513. ]
  514. },
  515. "packages/web/web-search-deepseek": {
  516. "entry": [
  517. "tests/**/*.spec.ts",
  518. "tests/**/*.e2e.ts"
  519. ],
  520. "project": [
  521. "src/**/*.ts",
  522. "tests/**/*.ts"
  523. ]
  524. },
  525. "packages/examples/acp-demo": {
  526. "entry": [
  527. "tests/**/*.spec.ts",
  528. "tests/**/*.e2e.ts"
  529. ],
  530. "project": [
  531. "src/**/*.ts",
  532. "tests/**/*.ts"
  533. ]
  534. },
  535. "packages/examples/agent-spine-demo": {
  536. "entry": [
  537. "tests/**/*.spec.ts",
  538. "tests/**/*.e2e.ts"
  539. ],
  540. "project": [
  541. "src/**/*.ts",
  542. "tests/**/*.ts"
  543. ]
  544. },
  545. "packages/sdk/server": {
  546. "entry": [
  547. "tests/**/*.spec.ts",
  548. "tests/**/*.e2e.ts"
  549. ],
  550. "project": [
  551. "src/**/*.ts",
  552. "tests/**/*.ts"
  553. ]
  554. },
  555. "packages/interaction/commands": {
  556. "entry": [
  557. "tests/**/*.spec.ts"
  558. ],
  559. "project": [
  560. "src/**/*.ts",
  561. "tests/**/*.ts"
  562. ]
  563. },
  564. "packages/examples/jsonrpc-demo": {
  565. "project": [
  566. "src/**/*.ts"
  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. ],
  661. "project": [
  662. "src/**/*.ts",
  663. "tests/**/*.ts"
  664. ]
  665. },
  666. "apps/web": {
  667. "entry": [
  668. "tests/**/*.e2e.ts",
  669. "tests/**/*.perf.ts",
  670. "tests/**/*.snapshot.ts",
  671. "tests/support.ts",
  672. "src/node-module-stub.ts"
  673. ],
  674. "project": [
  675. "src/**/*.ts",
  676. "tests/**/*.ts"
  677. ],
  678. "ignoreDependencies": [
  679. "@deepseek-ai/dsh-client-ui-primitives",
  680. "@deepseek-ai/dsh-client-ui-slots",
  681. "@deepseek-ai/dsh-client-web-react",
  682. "@types/react",
  683. "@types/react-dom",
  684. "react",
  685. "react-dom"
  686. ]
  687. },
  688. "apps/cli": {
  689. "entry": [
  690. "tests/**/*.spec.ts",
  691. "tests/**/*.e2e.ts",
  692. "tests/**/*.snapshot.ts"
  693. ],
  694. "project": [
  695. "src/**/*.ts",
  696. "tests/**/*.ts"
  697. ],
  698. "ignoreDependencies": [
  699. "@deepseek-ai/.+"
  700. ]
  701. },
  702. "packages/client/modules": {
  703. "entry": [
  704. "tests/**/*.spec.ts"
  705. ],
  706. "project": [
  707. "src/**/*.ts",
  708. "tests/**/*.ts"
  709. ]
  710. },
  711. "packages/client/hmr": {
  712. "entry": [
  713. "tests/**/*.spec.ts"
  714. ],
  715. "project": [
  716. "src/**/*.ts",
  717. "tests/**/*.ts"
  718. ]
  719. },
  720. "packages/subagent/subagent-dsh-sdk": {
  721. "entry": [
  722. "tests/**/*.spec.ts",
  723. "tests/**/*.e2e.ts"
  724. ],
  725. "project": [
  726. "src/**/*.ts",
  727. "tests/**/*.ts"
  728. ]
  729. },
  730. "packages/bundle/base": {
  731. "ignoreDependencies": [
  732. "@deepseek-ai/.+"
  733. ]
  734. },
  735. "packages/bundle/headless": {
  736. "ignoreDependencies": [
  737. "@deepseek-ai/dsh-code-runtime-worker"
  738. ]
  739. },
  740. "packages/bundle/web-app": {
  741. "ignoreDependencies": [
  742. "@deepseek-ai/.+"
  743. ]
  744. }
  745. }
  746. }