knip.json 16 KB

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