knip.json 14 KB

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