knip.json 15 KB

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