knip.json 14 KB

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