knip.json 14 KB

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