knip.json 16 KB

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