knip.json 16 KB

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