knip.json 13 KB

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