knip.json 12 KB

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