knip.json 14 KB

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