knip.json 14 KB

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