knip.json 16 KB

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