knip.json 14 KB

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