knip.json 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735
  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/util/timeout": {
  291. "entry": [
  292. "tests/**/*.spec.ts"
  293. ],
  294. "project": [
  295. "src/**/*.ts",
  296. "tests/**/*.ts"
  297. ]
  298. },
  299. "packages/util/retention": {
  300. "entry": [
  301. "tests/**/*.spec.ts"
  302. ],
  303. "project": [
  304. "src/**/*.ts",
  305. "tests/**/*.ts"
  306. ]
  307. },
  308. "packages/support/acp-snapshot": {
  309. "entry": [
  310. "tests/**/*.spec.ts",
  311. "tests/fixtures/fake-acp-agent.ts"
  312. ],
  313. "project": [
  314. "src/**/*.ts",
  315. "tests/**/*.ts"
  316. ]
  317. },
  318. "packages/support/loader-smoke": {
  319. "entry": [
  320. "tests/**/*.spec.ts",
  321. "tests/fixtures/*.ts"
  322. ],
  323. "project": [
  324. "src/**/*.ts",
  325. "tests/**/*.ts"
  326. ]
  327. },
  328. "packages/core/agent-loop": {
  329. "entry": [
  330. "tests/**/*.spec.ts",
  331. "tests/**/*.e2e.ts"
  332. ],
  333. "project": [
  334. "src/**/*.ts",
  335. "tests/**/*.ts"
  336. ]
  337. },
  338. "packages/goal/goal": {
  339. "entry": [
  340. "tests/**/*.spec.ts",
  341. "tests/**/*.e2e.ts"
  342. ],
  343. "project": [
  344. "src/**/*.ts",
  345. "tests/**/*.ts"
  346. ]
  347. },
  348. "packages/goal/goal-session": {
  349. "entry": [
  350. "tests/**/*.spec.ts"
  351. ],
  352. "project": [
  353. "src/**/*.ts",
  354. "tests/**/*.ts"
  355. ]
  356. },
  357. "packages/goal/tool-goal": {
  358. "entry": [
  359. "tests/**/*.spec.ts"
  360. ],
  361. "project": [
  362. "src/**/*.ts",
  363. "tests/**/*.ts"
  364. ]
  365. },
  366. "packages/session-query/session-query-sqlite": {
  367. "entry": [
  368. "tests/**/*.spec.ts",
  369. "tests/**/*.e2e.ts"
  370. ],
  371. "project": [
  372. "src/**/*.ts",
  373. "tests/**/*.ts"
  374. ]
  375. },
  376. "packages/code-runtime/code-runtime-worker": {
  377. "entry": [
  378. "tests/**/*.spec.ts",
  379. "tests/**/*.e2e.ts"
  380. ],
  381. "project": [
  382. "src/**/*.ts",
  383. "tests/**/*.ts"
  384. ]
  385. },
  386. "packages/llm/llm-deepseek": {
  387. "entry": [
  388. "tests/**/*.spec.ts",
  389. "tests/**/*.e2e.ts"
  390. ],
  391. "project": [
  392. "src/**/*.ts",
  393. "tests/**/*.ts"
  394. ]
  395. },
  396. "packages/llm/llm-pi-ai": {
  397. "entry": [
  398. "tests/**/*.spec.ts",
  399. "tests/**/*.e2e.ts"
  400. ],
  401. "project": [
  402. "src/**/*.ts",
  403. "tests/**/*.ts"
  404. ]
  405. },
  406. "packages/session-title/session-title-first-message-llm": {
  407. "entry": [
  408. "tests/**/*.spec.ts",
  409. "tests/**/*.e2e.ts"
  410. ],
  411. "project": [
  412. "src/**/*.ts",
  413. "tests/**/*.ts"
  414. ]
  415. },
  416. "packages/context/workspace-context": {
  417. "entry": [
  418. "tests/**/*.spec.ts",
  419. "tests/**/*.e2e.ts"
  420. ],
  421. "project": [
  422. "src/**/*.ts",
  423. "tests/**/*.ts"
  424. ]
  425. },
  426. "packages/session-persistence/session-checkpoint-policy": {
  427. "entry": [
  428. "tests/**/*.spec.ts",
  429. "tests/**/*.e2e.ts"
  430. ],
  431. "project": [
  432. "src/**/*.ts",
  433. "tests/**/*.ts"
  434. ]
  435. },
  436. "packages/util/paths": {
  437. "entry": [
  438. "tests/**/*.spec.ts"
  439. ],
  440. "project": [
  441. "src/**/*.ts",
  442. "tests/**/*.ts"
  443. ]
  444. },
  445. "packages/web/web-search-exa": {
  446. "entry": [
  447. "tests/**/*.spec.ts",
  448. "tests/**/*.e2e.ts"
  449. ],
  450. "project": [
  451. "src/**/*.ts",
  452. "tests/**/*.ts"
  453. ]
  454. },
  455. "packages/web/web-search-perplexity": {
  456. "entry": [
  457. "tests/**/*.spec.ts",
  458. "tests/**/*.e2e.ts"
  459. ],
  460. "project": [
  461. "src/**/*.ts",
  462. "tests/**/*.ts"
  463. ]
  464. },
  465. "packages/workflow/workflow-workerthread": {
  466. "entry": [
  467. "tests/**/*.spec.ts",
  468. "tests/**/*.e2e.ts"
  469. ],
  470. "project": [
  471. "src/**/*.ts",
  472. "tests/**/*.ts"
  473. ]
  474. },
  475. "packages/web/web-search-deepseek": {
  476. "entry": [
  477. "tests/**/*.spec.ts",
  478. "tests/**/*.e2e.ts"
  479. ],
  480. "project": [
  481. "src/**/*.ts",
  482. "tests/**/*.ts"
  483. ]
  484. },
  485. "packages/examples/acp-demo": {
  486. "entry": [
  487. "tests/**/*.spec.ts",
  488. "tests/**/*.e2e.ts"
  489. ],
  490. "project": [
  491. "src/**/*.ts",
  492. "tests/**/*.ts"
  493. ]
  494. },
  495. "packages/examples/agent-spine-demo": {
  496. "entry": [
  497. "tests/**/*.spec.ts",
  498. "tests/**/*.e2e.ts"
  499. ],
  500. "project": [
  501. "src/**/*.ts",
  502. "tests/**/*.ts"
  503. ]
  504. },
  505. "packages/ui/jsonrpc": {
  506. "entry": [
  507. "tests/**/*.spec.ts",
  508. "tests/**/*.e2e.ts"
  509. ],
  510. "project": [
  511. "src/**/*.ts",
  512. "tests/**/*.ts"
  513. ]
  514. },
  515. "packages/ui/commands": {
  516. "entry": [
  517. "tests/**/*.spec.ts"
  518. ],
  519. "project": [
  520. "src/**/*.ts",
  521. "tests/**/*.ts"
  522. ]
  523. },
  524. "packages/examples/jsonrpc-demo": {
  525. "project": [
  526. "src/**/*.ts"
  527. ]
  528. },
  529. "packages/sdk/create-sdk": {
  530. "entry": [
  531. "src/bin.ts",
  532. "tests/**/*.spec.ts",
  533. "tests/**/*.e2e.ts",
  534. "tests/**/*.snapshot.ts"
  535. ],
  536. "project": [
  537. "src/**/*.ts",
  538. "tests/**/*.ts"
  539. ]
  540. },
  541. "packages/sdk/scripts": {
  542. "entry": [
  543. "src/bin.ts",
  544. "tests/**/*.spec.ts",
  545. "tests/**/*.snapshot.ts"
  546. ],
  547. "project": [
  548. "src/**/*.ts",
  549. "tests/**/*.ts"
  550. ],
  551. "ignoreDependencies": [
  552. "node-addon-require-builtin"
  553. ]
  554. },
  555. "packages/subagent/subagent-spawn": {
  556. "entry": [
  557. "tests/**/*.spec.ts",
  558. "tests/**/*.e2e.ts"
  559. ],
  560. "project": [
  561. "src/**/*.ts",
  562. "tests/**/*.ts"
  563. ]
  564. },
  565. "packages/subagent/subagent-acp": {
  566. "entry": [
  567. "tests/**/*.spec.ts",
  568. "tests/**/*.e2e.ts",
  569. "tests/mock-acp-server.ts"
  570. ],
  571. "project": [
  572. "src/**/*.ts",
  573. "tests/**/*.ts"
  574. ]
  575. },
  576. "packages/subagent/subagent-codex": {
  577. "entry": [
  578. "tests/**/*.spec.ts",
  579. "tests/**/*.e2e.ts"
  580. ],
  581. "project": [
  582. "src/**/*.ts",
  583. "tests/**/*.ts"
  584. ],
  585. "ignoreDependencies": [
  586. "@openai/codex"
  587. ]
  588. },
  589. "packages/subagent/subagent-claude-code": {
  590. "entry": [
  591. "tests/**/*.spec.ts",
  592. "tests/**/*.e2e.ts"
  593. ],
  594. "project": [
  595. "src/**/*.ts",
  596. "tests/**/*.ts"
  597. ]
  598. },
  599. "packages/fs/tool-fs": {
  600. "entry": [
  601. "tests/**/*.spec.ts",
  602. "tests/**/*.e2e.ts"
  603. ],
  604. "project": [
  605. "src/**/*.ts",
  606. "tests/**/*.ts"
  607. ]
  608. },
  609. "packages/fs/tool-fs-search": {
  610. "entry": [
  611. "tests/**/*.spec.ts"
  612. ],
  613. "project": [
  614. "src/**/*.ts",
  615. "tests/**/*.ts"
  616. ]
  617. },
  618. "packages/mcp/mcp-client": {
  619. "entry": [
  620. "tests/**/*.spec.ts",
  621. "tests/**/*.e2e.ts",
  622. "tests/fixture-server.ts"
  623. ],
  624. "project": [
  625. "src/**/*.ts",
  626. "tests/**/*.ts"
  627. ],
  628. "ignoreDependencies": [
  629. "@modelcontextprotocol/server-everything",
  630. "@modelcontextprotocol/server-filesystem"
  631. ]
  632. },
  633. "packages/client/web": {
  634. "project": [
  635. "src/**/*.ts",
  636. "src/**/*.tsx",
  637. "tests/**/*.tsx"
  638. ],
  639. "ignoreDependencies": [
  640. "@deepseek-ai/dsh-client-ui-theme"
  641. ]
  642. },
  643. "packages/client/ui-settings": {
  644. "entry": [
  645. "tests/**/*.spec.ts",
  646. "tests/**/*.spec.tsx"
  647. ],
  648. "project": [
  649. "src/**/*.ts",
  650. "src/**/*.tsx",
  651. "tests/**/*.ts",
  652. "tests/**/*.tsx"
  653. ],
  654. "ignoreDependencies": [
  655. "@types/react-dom",
  656. "react-dom"
  657. ]
  658. },
  659. "apps/web": {
  660. "entry": [
  661. "tests/**/*.e2e.ts",
  662. "tests/**/*.perf.ts",
  663. "tests/**/*.snapshot.ts",
  664. "tests/support.ts",
  665. "src/node-module-stub.ts"
  666. ],
  667. "project": [
  668. "src/**/*.ts",
  669. "tests/**/*.ts"
  670. ],
  671. "ignoreDependencies": [
  672. "@deepseek-ai/dsh-client-ui-primitives",
  673. "@deepseek-ai/dsh-client-ui-slots",
  674. "@deepseek-ai/dsh-client-web-react",
  675. "@types/react",
  676. "@types/react-dom",
  677. "react",
  678. "react-dom"
  679. ]
  680. },
  681. "apps/cli": {
  682. "entry": [
  683. "tests/**/*.spec.ts",
  684. "tests/**/*.e2e.ts",
  685. "tests/**/*.snapshot.ts"
  686. ],
  687. "project": [
  688. "src/**/*.ts",
  689. "tests/**/*.ts"
  690. ],
  691. "ignoreDependencies": [
  692. "@deepseek-ai/.+"
  693. ]
  694. },
  695. "packages/client/modules": {
  696. "entry": [
  697. "tests/**/*.spec.ts"
  698. ],
  699. "project": [
  700. "src/**/*.ts",
  701. "tests/**/*.ts"
  702. ]
  703. },
  704. "packages/client/hmr": {
  705. "entry": [
  706. "tests/**/*.spec.ts"
  707. ],
  708. "project": [
  709. "src/**/*.ts",
  710. "tests/**/*.ts"
  711. ]
  712. },
  713. "packages/subagent/subagent-dsh-sdk": {
  714. "entry": [
  715. "tests/**/*.spec.ts",
  716. "tests/**/*.e2e.ts"
  717. ],
  718. "project": [
  719. "src/**/*.ts",
  720. "tests/**/*.ts"
  721. ]
  722. },
  723. "packages/bundle/base": {
  724. "ignoreDependencies": [
  725. "@deepseek-ai/.+",
  726. "@cordisjs/.+"
  727. ]
  728. },
  729. "packages/bundle/web-app": {
  730. "ignoreDependencies": [
  731. "@deepseek-ai/.+"
  732. ]
  733. }
  734. }
  735. }