knip.json 16 KB

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