@humanbased/crosscheck 1.2.0 → 1.3.0-beta.100

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (438) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +183 -375
  3. package/README.zh.md +1 -1
  4. package/assets/icon-256.png +0 -0
  5. package/assets/linear-comment.svg +18 -0
  6. package/assets/linear-onboard.svg +30 -0
  7. package/assets/linear-status.svg +23 -0
  8. package/assets/linear-test.svg +34 -0
  9. package/assets/skills/code-review/.crosscheck-skill.json +9 -0
  10. package/assets/skills/code-review/LICENSE +21 -0
  11. package/assets/skills/code-review/SKILL.md +89 -0
  12. package/assets/skills/code-review/agents/openai.yaml +3 -0
  13. package/assets/skills/code-review-skill/.crosscheck-skill.json +9 -0
  14. package/assets/skills/code-review-skill/LICENSE +21 -0
  15. package/assets/skills/code-review-skill/SKILL.md +231 -0
  16. package/assets/skills/code-review-skill/assets/pr-review-template.md +137 -0
  17. package/assets/skills/code-review-skill/assets/review-checklist.md +123 -0
  18. package/assets/skills/code-review-skill/reference/angular.md +768 -0
  19. package/assets/skills/code-review-skill/reference/architecture-review-guide.md +472 -0
  20. package/assets/skills/code-review-skill/reference/c.md +890 -0
  21. package/assets/skills/code-review-skill/reference/code-quality-universal.md +488 -0
  22. package/assets/skills/code-review-skill/reference/code-review-best-practices.md +136 -0
  23. package/assets/skills/code-review-skill/reference/common-bugs-checklist.md +286 -0
  24. package/assets/skills/code-review-skill/reference/cpp.md +893 -0
  25. package/assets/skills/code-review-skill/reference/cross-cutting/async-concurrency-patterns.md +515 -0
  26. package/assets/skills/code-review-skill/reference/cross-cutting/error-handling-principles.md +492 -0
  27. package/assets/skills/code-review-skill/reference/cross-cutting/n-plus-one-queries.md +309 -0
  28. package/assets/skills/code-review-skill/reference/cross-cutting/sql-injection-prevention.md +308 -0
  29. package/assets/skills/code-review-skill/reference/cross-cutting/xss-prevention.md +264 -0
  30. package/assets/skills/code-review-skill/reference/csharp.md +525 -0
  31. package/assets/skills/code-review-skill/reference/css-less-sass.md +661 -0
  32. package/assets/skills/code-review-skill/reference/django.md +985 -0
  33. package/assets/skills/code-review-skill/reference/fastapi.md +580 -0
  34. package/assets/skills/code-review-skill/reference/go.md +993 -0
  35. package/assets/skills/code-review-skill/reference/java.md +409 -0
  36. package/assets/skills/code-review-skill/reference/java8.md +586 -0
  37. package/assets/skills/code-review-skill/reference/kotlin.md +1018 -0
  38. package/assets/skills/code-review-skill/reference/nestjs.md +593 -0
  39. package/assets/skills/code-review-skill/reference/performance-review-guide.md +816 -0
  40. package/assets/skills/code-review-skill/reference/php.md +684 -0
  41. package/assets/skills/code-review-skill/reference/python.md +1073 -0
  42. package/assets/skills/code-review-skill/reference/qt.md +757 -0
  43. package/assets/skills/code-review-skill/reference/react.md +871 -0
  44. package/assets/skills/code-review-skill/reference/ruby.md +964 -0
  45. package/assets/skills/code-review-skill/reference/rust.md +846 -0
  46. package/assets/skills/code-review-skill/reference/security-review-guide.md +494 -0
  47. package/assets/skills/code-review-skill/reference/svelte.md +1064 -0
  48. package/assets/skills/code-review-skill/reference/swift.md +936 -0
  49. package/assets/skills/code-review-skill/reference/typescript.md +1016 -0
  50. package/assets/skills/code-review-skill/reference/vue.md +924 -0
  51. package/assets/skills/code-review-skill/reference/zig.md +440 -0
  52. package/assets/skills/code-review-skill/scripts/pr-analyzer.py +435 -0
  53. package/assets/skills/code-review-skill/scripts/test_pr_analyzer.py +380 -0
  54. package/assets/skills/codebase-design/.crosscheck-skill.json +9 -0
  55. package/assets/skills/codebase-design/DEEPENING.md +37 -0
  56. package/assets/skills/codebase-design/DESIGN-IT-TWICE.md +44 -0
  57. package/assets/skills/codebase-design/LICENSE +21 -0
  58. package/assets/skills/codebase-design/SKILL.md +114 -0
  59. package/assets/skills/codebase-design/agents/openai.yaml +3 -0
  60. package/assets/skills/diagnosing-bugs/.crosscheck-skill.json +9 -0
  61. package/assets/skills/diagnosing-bugs/LICENSE +21 -0
  62. package/assets/skills/diagnosing-bugs/SKILL.md +134 -0
  63. package/assets/skills/diagnosing-bugs/agents/openai.yaml +3 -0
  64. package/assets/skills/diagnosing-bugs/scripts/hitl-loop.template.sh +41 -0
  65. package/crosscheck.config.example.yml +124 -11
  66. package/dist/__tests__/adoption.test.d.ts +2 -0
  67. package/dist/__tests__/adoption.test.d.ts.map +1 -0
  68. package/dist/__tests__/adoption.test.js +175 -0
  69. package/dist/__tests__/adoption.test.js.map +1 -0
  70. package/dist/__tests__/auto-fix-branch.test.d.ts +2 -0
  71. package/dist/__tests__/auto-fix-branch.test.d.ts.map +1 -0
  72. package/dist/__tests__/auto-fix-branch.test.js +143 -0
  73. package/dist/__tests__/auto-fix-branch.test.js.map +1 -0
  74. package/dist/__tests__/board.test.js +13 -0
  75. package/dist/__tests__/board.test.js.map +1 -1
  76. package/dist/__tests__/can-write-verdict.test.d.ts +2 -0
  77. package/dist/__tests__/can-write-verdict.test.d.ts.map +1 -0
  78. package/dist/__tests__/can-write-verdict.test.js +31 -0
  79. package/dist/__tests__/can-write-verdict.test.js.map +1 -0
  80. package/dist/__tests__/codex-env.test.d.ts +2 -0
  81. package/dist/__tests__/codex-env.test.d.ts.map +1 -0
  82. package/dist/__tests__/codex-env.test.js +70 -0
  83. package/dist/__tests__/codex-env.test.js.map +1 -0
  84. package/dist/__tests__/codex.test.js +100 -25
  85. package/dist/__tests__/codex.test.js.map +1 -1
  86. package/dist/__tests__/comment-bodies.test.js +49 -1
  87. package/dist/__tests__/comment-bodies.test.js.map +1 -1
  88. package/dist/__tests__/commit-subject.test.d.ts +2 -0
  89. package/dist/__tests__/commit-subject.test.d.ts.map +1 -0
  90. package/dist/__tests__/commit-subject.test.js +72 -0
  91. package/dist/__tests__/commit-subject.test.js.map +1 -0
  92. package/dist/__tests__/conflict-resolve.test.js +44 -1
  93. package/dist/__tests__/conflict-resolve.test.js.map +1 -1
  94. package/dist/__tests__/credential-free-origin.test.d.ts +2 -0
  95. package/dist/__tests__/credential-free-origin.test.d.ts.map +1 -0
  96. package/dist/__tests__/credential-free-origin.test.js +59 -0
  97. package/dist/__tests__/credential-free-origin.test.js.map +1 -0
  98. package/dist/__tests__/detector.test.js +87 -1
  99. package/dist/__tests__/detector.test.js.map +1 -1
  100. package/dist/__tests__/error-classification.test.js +34 -0
  101. package/dist/__tests__/error-classification.test.js.map +1 -1
  102. package/dist/__tests__/fix.test.js +69 -0
  103. package/dist/__tests__/fix.test.js.map +1 -1
  104. package/dist/__tests__/harness-section.test.d.ts +2 -0
  105. package/dist/__tests__/harness-section.test.d.ts.map +1 -0
  106. package/dist/__tests__/harness-section.test.js +46 -0
  107. package/dist/__tests__/harness-section.test.js.map +1 -0
  108. package/dist/__tests__/kickass.test.js +31 -0
  109. package/dist/__tests__/kickass.test.js.map +1 -1
  110. package/dist/__tests__/linear-branding.test.d.ts +2 -0
  111. package/dist/__tests__/linear-branding.test.d.ts.map +1 -0
  112. package/dist/__tests__/linear-branding.test.js +156 -0
  113. package/dist/__tests__/linear-branding.test.js.map +1 -0
  114. package/dist/__tests__/linear-client.test.d.ts +2 -0
  115. package/dist/__tests__/linear-client.test.d.ts.map +1 -0
  116. package/dist/__tests__/linear-client.test.js +120 -0
  117. package/dist/__tests__/linear-client.test.js.map +1 -0
  118. package/dist/__tests__/linear-comment.test.d.ts +2 -0
  119. package/dist/__tests__/linear-comment.test.d.ts.map +1 -0
  120. package/dist/__tests__/linear-comment.test.js +151 -0
  121. package/dist/__tests__/linear-comment.test.js.map +1 -0
  122. package/dist/__tests__/linear-identity.test.d.ts +2 -0
  123. package/dist/__tests__/linear-identity.test.d.ts.map +1 -0
  124. package/dist/__tests__/linear-identity.test.js +253 -0
  125. package/dist/__tests__/linear-identity.test.js.map +1 -0
  126. package/dist/__tests__/linear-notify.test.d.ts +2 -0
  127. package/dist/__tests__/linear-notify.test.d.ts.map +1 -0
  128. package/dist/__tests__/linear-notify.test.js +144 -0
  129. package/dist/__tests__/linear-notify.test.js.map +1 -0
  130. package/dist/__tests__/linear-ref.test.d.ts +2 -0
  131. package/dist/__tests__/linear-ref.test.d.ts.map +1 -0
  132. package/dist/__tests__/linear-ref.test.js +261 -0
  133. package/dist/__tests__/linear-ref.test.js.map +1 -0
  134. package/dist/__tests__/linear-test-ref.test.d.ts +2 -0
  135. package/dist/__tests__/linear-test-ref.test.d.ts.map +1 -0
  136. package/dist/__tests__/linear-test-ref.test.js +81 -0
  137. package/dist/__tests__/linear-test-ref.test.js.map +1 -0
  138. package/dist/__tests__/linear-verify.test.d.ts +2 -0
  139. package/dist/__tests__/linear-verify.test.d.ts.map +1 -0
  140. package/dist/__tests__/linear-verify.test.js +132 -0
  141. package/dist/__tests__/linear-verify.test.js.map +1 -0
  142. package/dist/__tests__/linear-worker.test.d.ts +2 -0
  143. package/dist/__tests__/linear-worker.test.d.ts.map +1 -0
  144. package/dist/__tests__/linear-worker.test.js +83 -0
  145. package/dist/__tests__/linear-worker.test.js.map +1 -0
  146. package/dist/__tests__/linear-write-possible.test.d.ts +2 -0
  147. package/dist/__tests__/linear-write-possible.test.d.ts.map +1 -0
  148. package/dist/__tests__/linear-write-possible.test.js +30 -0
  149. package/dist/__tests__/linear-write-possible.test.js.map +1 -0
  150. package/dist/__tests__/loader.test.js +2 -2
  151. package/dist/__tests__/loader.test.js.map +1 -1
  152. package/dist/__tests__/onboard-preservation.test.js +59 -4
  153. package/dist/__tests__/onboard-preservation.test.js.map +1 -1
  154. package/dist/__tests__/optimize.test.js +2 -0
  155. package/dist/__tests__/optimize.test.js.map +1 -1
  156. package/dist/__tests__/pr-status.test.js +213 -3
  157. package/dist/__tests__/pr-status.test.js.map +1 -1
  158. package/dist/__tests__/pr-workflow-state.test.js +247 -7
  159. package/dist/__tests__/pr-workflow-state.test.js.map +1 -1
  160. package/dist/__tests__/repo-picker.test.js +7 -1
  161. package/dist/__tests__/repo-picker.test.js.map +1 -1
  162. package/dist/__tests__/repository-guidance.test.d.ts +2 -0
  163. package/dist/__tests__/repository-guidance.test.d.ts.map +1 -0
  164. package/dist/__tests__/repository-guidance.test.js +107 -0
  165. package/dist/__tests__/repository-guidance.test.js.map +1 -0
  166. package/dist/__tests__/review-comment-body.test.js +35 -0
  167. package/dist/__tests__/review-comment-body.test.js.map +1 -1
  168. package/dist/__tests__/review-models.test.js +19 -3
  169. package/dist/__tests__/review-models.test.js.map +1 -1
  170. package/dist/__tests__/review-strategy.test.d.ts +2 -0
  171. package/dist/__tests__/review-strategy.test.d.ts.map +1 -0
  172. package/dist/__tests__/review-strategy.test.js +397 -0
  173. package/dist/__tests__/review-strategy.test.js.map +1 -0
  174. package/dist/__tests__/reviewed-sha.test.d.ts +2 -0
  175. package/dist/__tests__/reviewed-sha.test.d.ts.map +1 -0
  176. package/dist/__tests__/reviewed-sha.test.js +116 -0
  177. package/dist/__tests__/reviewed-sha.test.js.map +1 -0
  178. package/dist/__tests__/runner.test.js +206 -2
  179. package/dist/__tests__/runner.test.js.map +1 -1
  180. package/dist/__tests__/skill-attribution.test.d.ts +2 -0
  181. package/dist/__tests__/skill-attribution.test.d.ts.map +1 -0
  182. package/dist/__tests__/skill-attribution.test.js +53 -0
  183. package/dist/__tests__/skill-attribution.test.js.map +1 -0
  184. package/dist/__tests__/skill-broker.test.d.ts +2 -0
  185. package/dist/__tests__/skill-broker.test.d.ts.map +1 -0
  186. package/dist/__tests__/skill-broker.test.js +186 -0
  187. package/dist/__tests__/skill-broker.test.js.map +1 -0
  188. package/dist/__tests__/skill-catalog.test.d.ts +2 -0
  189. package/dist/__tests__/skill-catalog.test.d.ts.map +1 -0
  190. package/dist/__tests__/skill-catalog.test.js +40 -0
  191. package/dist/__tests__/skill-catalog.test.js.map +1 -0
  192. package/dist/__tests__/skill-installer.test.d.ts +2 -0
  193. package/dist/__tests__/skill-installer.test.d.ts.map +1 -0
  194. package/dist/__tests__/skill-installer.test.js +96 -0
  195. package/dist/__tests__/skill-installer.test.js.map +1 -0
  196. package/dist/__tests__/skills-config.test.d.ts +2 -0
  197. package/dist/__tests__/skills-config.test.d.ts.map +1 -0
  198. package/dist/__tests__/skills-config.test.js +12 -0
  199. package/dist/__tests__/skills-config.test.js.map +1 -0
  200. package/dist/__tests__/superseded-fix-pr.test.d.ts +2 -0
  201. package/dist/__tests__/superseded-fix-pr.test.d.ts.map +1 -0
  202. package/dist/__tests__/superseded-fix-pr.test.js +225 -0
  203. package/dist/__tests__/superseded-fix-pr.test.js.map +1 -0
  204. package/dist/__tests__/webhook.test.js +60 -0
  205. package/dist/__tests__/webhook.test.js.map +1 -1
  206. package/dist/cli.js +37 -0
  207. package/dist/cli.js.map +1 -1
  208. package/dist/commands/adoption.d.ts +6 -0
  209. package/dist/commands/adoption.d.ts.map +1 -0
  210. package/dist/commands/adoption.js +132 -0
  211. package/dist/commands/adoption.js.map +1 -0
  212. package/dist/commands/detect-step.d.ts.map +1 -1
  213. package/dist/commands/detect-step.js +5 -1
  214. package/dist/commands/detect-step.js.map +1 -1
  215. package/dist/commands/diagnose.d.ts.map +1 -1
  216. package/dist/commands/diagnose.js +2 -2
  217. package/dist/commands/diagnose.js.map +1 -1
  218. package/dist/commands/init.d.ts.map +1 -1
  219. package/dist/commands/init.js +1 -2
  220. package/dist/commands/init.js.map +1 -1
  221. package/dist/commands/issue.js +1 -1
  222. package/dist/commands/issue.js.map +1 -1
  223. package/dist/commands/kickass.d.ts +1 -1
  224. package/dist/commands/kickass.d.ts.map +1 -1
  225. package/dist/commands/kickass.js +36 -22
  226. package/dist/commands/kickass.js.map +1 -1
  227. package/dist/commands/linear-test.d.ts +18 -0
  228. package/dist/commands/linear-test.d.ts.map +1 -0
  229. package/dist/commands/linear-test.js +130 -0
  230. package/dist/commands/linear-test.js.map +1 -0
  231. package/dist/commands/onboard.d.ts +36 -3
  232. package/dist/commands/onboard.d.ts.map +1 -1
  233. package/dist/commands/onboard.js +263 -45
  234. package/dist/commands/onboard.js.map +1 -1
  235. package/dist/commands/optimize.d.ts.map +1 -1
  236. package/dist/commands/optimize.js +1 -0
  237. package/dist/commands/optimize.js.map +1 -1
  238. package/dist/commands/review.d.ts.map +1 -1
  239. package/dist/commands/review.js +65 -6
  240. package/dist/commands/review.js.map +1 -1
  241. package/dist/commands/run.d.ts.map +1 -1
  242. package/dist/commands/run.js +85 -11
  243. package/dist/commands/run.js.map +1 -1
  244. package/dist/commands/scan.d.ts.map +1 -1
  245. package/dist/commands/scan.js +6 -0
  246. package/dist/commands/scan.js.map +1 -1
  247. package/dist/commands/skill.d.ts +2 -0
  248. package/dist/commands/skill.d.ts.map +1 -0
  249. package/dist/commands/skill.js +16 -0
  250. package/dist/commands/skill.js.map +1 -0
  251. package/dist/commands/status.d.ts.map +1 -1
  252. package/dist/commands/status.js +53 -1
  253. package/dist/commands/status.js.map +1 -1
  254. package/dist/commands/watch.d.ts.map +1 -1
  255. package/dist/commands/watch.js +215 -66
  256. package/dist/commands/watch.js.map +1 -1
  257. package/dist/config/loader.d.ts +3 -1
  258. package/dist/config/loader.d.ts.map +1 -1
  259. package/dist/config/loader.js +19 -6
  260. package/dist/config/loader.js.map +1 -1
  261. package/dist/config/review-model-tiers.json +3 -3
  262. package/dist/config/review-strategy.json +204 -0
  263. package/dist/config/schema.d.ts +269 -15
  264. package/dist/config/schema.d.ts.map +1 -1
  265. package/dist/config/schema.js +109 -10
  266. package/dist/config/schema.js.map +1 -1
  267. package/dist/github/client.d.ts +21 -1
  268. package/dist/github/client.d.ts.map +1 -1
  269. package/dist/github/client.js +46 -7
  270. package/dist/github/client.js.map +1 -1
  271. package/dist/github/detector.d.ts.map +1 -1
  272. package/dist/github/detector.js +28 -1
  273. package/dist/github/detector.js.map +1 -1
  274. package/dist/github/merge.d.ts +0 -5
  275. package/dist/github/merge.d.ts.map +1 -1
  276. package/dist/github/merge.js +0 -9
  277. package/dist/github/merge.js.map +1 -1
  278. package/dist/github/reviewed-sha.d.ts +13 -0
  279. package/dist/github/reviewed-sha.d.ts.map +1 -0
  280. package/dist/github/reviewed-sha.js +62 -0
  281. package/dist/github/reviewed-sha.js.map +1 -0
  282. package/dist/github/superseded-fix-pr.d.ts +19 -0
  283. package/dist/github/superseded-fix-pr.d.ts.map +1 -0
  284. package/dist/github/superseded-fix-pr.js +97 -0
  285. package/dist/github/superseded-fix-pr.js.map +1 -0
  286. package/dist/github/webhook.d.ts +8 -1
  287. package/dist/github/webhook.d.ts.map +1 -1
  288. package/dist/github/webhook.js +8 -1
  289. package/dist/github/webhook.js.map +1 -1
  290. package/dist/issues/ticket-ref.d.ts.map +1 -1
  291. package/dist/issues/ticket-ref.js +6 -5
  292. package/dist/issues/ticket-ref.js.map +1 -1
  293. package/dist/lib/adoption.d.ts +64 -0
  294. package/dist/lib/adoption.d.ts.map +1 -0
  295. package/dist/lib/adoption.js +165 -0
  296. package/dist/lib/adoption.js.map +1 -0
  297. package/dist/lib/annotation.d.ts +7 -0
  298. package/dist/lib/annotation.d.ts.map +1 -1
  299. package/dist/lib/annotation.js +11 -8
  300. package/dist/lib/annotation.js.map +1 -1
  301. package/dist/lib/auto-fix-branch.d.ts +35 -0
  302. package/dist/lib/auto-fix-branch.d.ts.map +1 -0
  303. package/dist/lib/auto-fix-branch.js +88 -0
  304. package/dist/lib/auto-fix-branch.js.map +1 -0
  305. package/dist/lib/board.d.ts +3 -0
  306. package/dist/lib/board.d.ts.map +1 -1
  307. package/dist/lib/board.js +4 -2
  308. package/dist/lib/board.js.map +1 -1
  309. package/dist/lib/clone.d.ts +2 -0
  310. package/dist/lib/clone.d.ts.map +1 -1
  311. package/dist/lib/clone.js +69 -10
  312. package/dist/lib/clone.js.map +1 -1
  313. package/dist/lib/comment-bodies.d.ts +37 -0
  314. package/dist/lib/comment-bodies.d.ts.map +1 -1
  315. package/dist/lib/comment-bodies.js +50 -9
  316. package/dist/lib/comment-bodies.js.map +1 -1
  317. package/dist/lib/logger.d.ts.map +1 -1
  318. package/dist/lib/logger.js +17 -1
  319. package/dist/lib/logger.js.map +1 -1
  320. package/dist/lib/pr-picker.d.ts +1 -1
  321. package/dist/lib/pr-picker.d.ts.map +1 -1
  322. package/dist/lib/pr-picker.js +10 -5
  323. package/dist/lib/pr-picker.js.map +1 -1
  324. package/dist/lib/pr-status.d.ts +2 -1
  325. package/dist/lib/pr-status.d.ts.map +1 -1
  326. package/dist/lib/pr-status.js +70 -6
  327. package/dist/lib/pr-status.js.map +1 -1
  328. package/dist/lib/pr-workflow-state.d.ts +17 -1
  329. package/dist/lib/pr-workflow-state.d.ts.map +1 -1
  330. package/dist/lib/pr-workflow-state.js +110 -5
  331. package/dist/lib/pr-workflow-state.js.map +1 -1
  332. package/dist/lib/repo-picker.d.ts +3 -0
  333. package/dist/lib/repo-picker.d.ts.map +1 -1
  334. package/dist/lib/repo-picker.js +45 -10
  335. package/dist/lib/repo-picker.js.map +1 -1
  336. package/dist/lib/repository-guidance.d.ts +2 -0
  337. package/dist/lib/repository-guidance.d.ts.map +1 -0
  338. package/dist/lib/repository-guidance.js +55 -0
  339. package/dist/lib/repository-guidance.js.map +1 -0
  340. package/dist/lib/review-models.d.ts +15 -2
  341. package/dist/lib/review-models.d.ts.map +1 -1
  342. package/dist/lib/review-models.js +26 -6
  343. package/dist/lib/review-models.js.map +1 -1
  344. package/dist/lib/review-strategy.d.ts +92 -0
  345. package/dist/lib/review-strategy.d.ts.map +1 -0
  346. package/dist/lib/review-strategy.js +282 -0
  347. package/dist/lib/review-strategy.js.map +1 -0
  348. package/dist/lib/runner.d.ts +123 -1
  349. package/dist/lib/runner.d.ts.map +1 -1
  350. package/dist/lib/runner.js +919 -101
  351. package/dist/lib/runner.js.map +1 -1
  352. package/dist/lib/vendor.d.ts +1 -0
  353. package/dist/lib/vendor.d.ts.map +1 -1
  354. package/dist/lib/vendor.js +6 -0
  355. package/dist/lib/vendor.js.map +1 -1
  356. package/dist/lib/workflow.d.ts +13 -0
  357. package/dist/lib/workflow.d.ts.map +1 -1
  358. package/dist/lib/workflow.js +24 -1
  359. package/dist/lib/workflow.js.map +1 -1
  360. package/dist/linear/client.d.ts +18 -0
  361. package/dist/linear/client.d.ts.map +1 -0
  362. package/dist/linear/client.js +67 -0
  363. package/dist/linear/client.js.map +1 -0
  364. package/dist/linear/comment.d.ts +20 -0
  365. package/dist/linear/comment.d.ts.map +1 -0
  366. package/dist/linear/comment.js +57 -0
  367. package/dist/linear/comment.js.map +1 -0
  368. package/dist/linear/identity.d.ts +59 -0
  369. package/dist/linear/identity.d.ts.map +1 -0
  370. package/dist/linear/identity.js +187 -0
  371. package/dist/linear/identity.js.map +1 -0
  372. package/dist/linear/notify.d.ts +35 -0
  373. package/dist/linear/notify.d.ts.map +1 -0
  374. package/dist/linear/notify.js +76 -0
  375. package/dist/linear/notify.js.map +1 -0
  376. package/dist/linear/ref.d.ts +13 -0
  377. package/dist/linear/ref.d.ts.map +1 -0
  378. package/dist/linear/ref.js +90 -0
  379. package/dist/linear/ref.js.map +1 -0
  380. package/dist/linear/verify.d.ts +26 -0
  381. package/dist/linear/verify.d.ts.map +1 -0
  382. package/dist/linear/verify.js +67 -0
  383. package/dist/linear/verify.js.map +1 -0
  384. package/dist/reviewers/address.d.ts +1 -1
  385. package/dist/reviewers/address.d.ts.map +1 -1
  386. package/dist/reviewers/address.js +1 -1
  387. package/dist/reviewers/address.js.map +1 -1
  388. package/dist/reviewers/claude.d.ts +4 -1
  389. package/dist/reviewers/claude.d.ts.map +1 -1
  390. package/dist/reviewers/claude.js +39 -7
  391. package/dist/reviewers/claude.js.map +1 -1
  392. package/dist/reviewers/codex-env.d.ts +12 -0
  393. package/dist/reviewers/codex-env.d.ts.map +1 -0
  394. package/dist/reviewers/codex-env.js +54 -0
  395. package/dist/reviewers/codex-env.js.map +1 -0
  396. package/dist/reviewers/codex.d.ts +18 -1
  397. package/dist/reviewers/codex.d.ts.map +1 -1
  398. package/dist/reviewers/codex.js +164 -81
  399. package/dist/reviewers/codex.js.map +1 -1
  400. package/dist/reviewers/conflict-resolve.d.ts +3 -1
  401. package/dist/reviewers/conflict-resolve.d.ts.map +1 -1
  402. package/dist/reviewers/conflict-resolve.js +21 -6
  403. package/dist/reviewers/conflict-resolve.js.map +1 -1
  404. package/dist/reviewers/fix.d.ts +5 -2
  405. package/dist/reviewers/fix.d.ts.map +1 -1
  406. package/dist/reviewers/fix.js +38 -12
  407. package/dist/reviewers/fix.js.map +1 -1
  408. package/dist/skills/attribution.d.ts +4 -0
  409. package/dist/skills/attribution.d.ts.map +1 -0
  410. package/dist/skills/attribution.js +14 -0
  411. package/dist/skills/attribution.js.map +1 -0
  412. package/dist/skills/broker-server.d.ts +2 -0
  413. package/dist/skills/broker-server.d.ts.map +1 -0
  414. package/dist/skills/broker-server.js +17 -0
  415. package/dist/skills/broker-server.js.map +1 -0
  416. package/dist/skills/broker.d.ts +43 -0
  417. package/dist/skills/broker.d.ts.map +1 -0
  418. package/dist/skills/broker.js +311 -0
  419. package/dist/skills/broker.js.map +1 -0
  420. package/dist/skills/catalog.d.ts +28 -0
  421. package/dist/skills/catalog.d.ts.map +1 -0
  422. package/dist/skills/catalog.js +104 -0
  423. package/dist/skills/catalog.js.map +1 -0
  424. package/dist/skills/installer.d.ts +10 -0
  425. package/dist/skills/installer.d.ts.map +1 -0
  426. package/dist/skills/installer.js +138 -0
  427. package/dist/skills/installer.js.map +1 -0
  428. package/dist/skills/integrity.d.ts +4 -0
  429. package/dist/skills/integrity.d.ts.map +1 -0
  430. package/dist/skills/integrity.js +36 -0
  431. package/dist/skills/integrity.js.map +1 -0
  432. package/docs/dynamic-thoroughness.md +738 -0
  433. package/docs/linear-identity-contract.md +139 -0
  434. package/docs/linear-identity.md +293 -0
  435. package/docs/metrics.md +115 -0
  436. package/docs/trust.md +159 -0
  437. package/get-started.md +322 -16
  438. package/package.json +6 -3
@@ -0,0 +1,204 @@
1
+ {
2
+ "schema_version": 1,
3
+ "version": "1.1.0",
4
+ "_version_note": "1.1.0 — deletion_only gained a floor on deletions; `additions_max` alone also matched a small edit, so a +2/-2 typo fix was routed to a review-only class. Routing changed, so the version changes with it: a comment citing 1.0.0 has to stay explicable by 1.0.0.",
5
+ "updated": "2026-08-07",
6
+ "generated_at": "2026-08-07T05:00:00Z",
7
+ "review_interval_days": 60,
8
+ "report": "docs/dynamic-thoroughness.md",
9
+ "runtime_status": "active",
10
+ "_tier_map_note": "resolveClaudeModel/resolveCodexModel read tier->model from review-model-tiers.json, not from `vendors` below. The two agree today and CI verifies both against the same provider docs; `vendors` here is the documented policy and the tier map is the runtime lookup.",
11
+ "_runtime_status_note": "Read at runtime by src/lib/review-strategy.ts. The runner classifies each PR from the cloned working copy and folds the result into the quality config the reviewers receive; the version, class, and tier are stamped into every annotation.",
12
+ "_comment": "Single source of truth for how crosscheck picks a model, effort, and step set. Every review comment cites `version` so a past review can be explained by the policy in force when it ran. Supersedes review-model-tiers.json, which is retained for backwards compat. Re-verify every review_interval_days with `npm run verify:strategy`.",
13
+
14
+ "sources": [
15
+ {
16
+ "name": "Anthropic model catalog",
17
+ "url": "https://platform.claude.com/docs/en/about-claude/models/overview",
18
+ "checks": ["claude-opus-5", "claude-sonnet-5", "claude-haiku-4-5-20251001"]
19
+ },
20
+ {
21
+ "name": "Anthropic effort parameter",
22
+ "url": "https://platform.claude.com/docs/en/build-with-claude/effort",
23
+ "checks": ["xhigh", "effort"]
24
+ },
25
+ {
26
+ "name": "OpenAI model catalog",
27
+ "url": "https://developers.openai.com/api/docs/models",
28
+ "checks": ["gpt-5.6-luna", "gpt-5.6-terra", "gpt-5.6-sol"]
29
+ }
30
+ ],
31
+
32
+ "benchmarks": {
33
+ "swe_bench_verified": {
34
+ "measures": "Resolving real GitHub issues in Python repositories. Backend/general proxy only.",
35
+ "source": "https://benchlm.ai/benchmarks/sweVerified",
36
+ "as_of": "2026-08-06",
37
+ "caveat": "Comparable within one leaderboard run. Cross-leaderboard positions are indicative only."
38
+ },
39
+ "frontend_code_arena": {
40
+ "measures": "Blind pairwise human preference on generated frontend output: visual fidelity, interaction design, function.",
41
+ "source": "https://thenewstack.io/kimi-k3-open-weight-coding/",
42
+ "as_of": "2026-07-18",
43
+ "caveat": "Measures generation, not defect detection. Claude Opus 5 is absent from the retrieved leaderboard - a missing measurement, not a low score."
44
+ }
45
+ },
46
+
47
+ "models": {
48
+ "claude-opus-5": { "vendor": "claude", "license": "closed", "in_usd_mtok": 5, "out_usd_mtok": 25, "context": 1000000, "swe_bench_verified": 0.960, "frontend_elo": null, "effort_levels": ["low","medium","high","xhigh","max"] },
49
+ "claude-sonnet-5": { "vendor": "claude", "license": "closed", "in_usd_mtok": 3, "out_usd_mtok": 15, "context": 1000000, "swe_bench_verified": 0.852, "frontend_elo": null, "effort_levels": ["low","medium","high","xhigh","max"] },
50
+ "claude-haiku-4-5-20251001": { "vendor": "claude", "license": "closed", "in_usd_mtok": 1, "out_usd_mtok": 5, "context": 200000, "swe_bench_verified": 0.733, "frontend_elo": null, "effort_levels": [] },
51
+ "gpt-5.6-sol": { "vendor": "codex", "license": "closed", "in_usd_mtok": 5, "out_usd_mtok": 30, "context": 1050000, "swe_bench_verified": null, "frontend_elo": 1618, "effort_levels": ["none","low","medium","high","xhigh","max"] },
52
+ "gpt-5.6-terra": { "vendor": "codex", "license": "closed", "in_usd_mtok": 2, "out_usd_mtok": 12, "context": 1050000, "swe_bench_verified": null, "frontend_elo": null, "effort_levels": ["none","low","medium","high","xhigh","max"] },
53
+ "gpt-5.6-luna": { "vendor": "codex", "license": "closed", "in_usd_mtok": 0.2, "out_usd_mtok": 1.2, "context": 1050000, "swe_bench_verified": null, "frontend_elo": null, "effort_levels": ["none","low","medium","high","xhigh","max"] },
54
+
55
+ "kimi-k3": { "vendor": "opencode", "license": "Modified MIT", "in_usd_mtok": 3, "out_usd_mtok": 15, "context": 1000000, "swe_bench_verified": null, "frontend_elo": 1679, "effort_levels": [], "status": "planned" },
56
+ "glm-5.2": { "vendor": "opencode", "license": "MIT", "in_usd_mtok": 1.4, "out_usd_mtok": 4.4, "context": 1000000, "swe_bench_verified": null, "frontend_elo": 1587, "effort_levels": [], "status": "planned" },
57
+ "deepseek-v4-pro": { "vendor": "opencode", "license": "MIT", "in_usd_mtok": 0.435, "out_usd_mtok": 0.87, "context": 1000000, "swe_bench_verified": 0.806, "frontend_elo": null, "effort_levels": ["none","high","max"], "status": "planned" },
58
+ "deepseek-v4-flash": { "vendor": "opencode", "license": "MIT", "in_usd_mtok": 0.14, "out_usd_mtok": 0.28, "context": 1000000, "swe_bench_verified": 0.790, "frontend_elo": null, "effort_levels": ["none","high","max"], "status": "planned" }
59
+ },
60
+
61
+ "banned_models": [
62
+ {
63
+ "model": "claude-fable-5",
64
+ "reason": "Banned from code review on cost. $50/MTok output is 2x claude-opus-5 for a LOWER SWE-bench Verified score (95.0 vs 96.0). At the measured 48k output tokens per review that is $2.40 a call with no capability justification.",
65
+ "banned_on": "2026-08-07"
66
+ }
67
+ ],
68
+
69
+ "vendors": {
70
+ "claude": {
71
+ "cli": "claude", "honors_model_under_subscription": true, "min_cli_version": null,
72
+ "tiers": { "fast": "claude-haiku-4-5-20251001", "balanced": "claude-sonnet-5", "thorough": "claude-opus-5" }
73
+ },
74
+ "codex": {
75
+ "cli": "codex", "honors_model_under_subscription": true, "min_cli_version": "0.147.0",
76
+ "_min_cli_version_note": "gpt-5.6-* return HTTP 400 'requires a newer version of Codex' below this. The CLI accepts --model under subscription auth; the old auth!=api-key guard in resolveCodexModel was wrong and dropped the configured model.",
77
+ "tiers": { "fast": "gpt-5.6-luna", "balanced": "gpt-5.6-terra", "thorough": "gpt-5.6-sol" }
78
+ },
79
+ "opencode": {
80
+ "cli": "opencode", "honors_model_under_subscription": true, "min_cli_version": null,
81
+ "status": "planned",
82
+ "tiers": { "fast": "deepseek-v4-flash", "balanced": "glm-5.2", "thorough": "kimi-k3" }
83
+ }
84
+ },
85
+
86
+ "domains": {
87
+ "_comment": "Capability is domain-shaped, not scalar. claude-opus-5 leads backend defect resolution; kimi-k3 leads frontend. A single tier ladder cannot express that. Detected from changed-file extensions; `mixed` and `unknown` both fall back to `backend`, the conservative default.",
88
+ "frontend": {
89
+ "match_extensions": ["tsx", "jsx", "vue", "svelte", "css", "scss", "less", "html"],
90
+ "threshold": "more frontend files than backend files",
91
+ "preferred": { "thorough": ["kimi-k3", "gpt-5.6-sol", "claude-opus-5"], "balanced": ["glm-5.2", "claude-sonnet-5"], "fast": ["gpt-5.6-luna", "deepseek-v4-flash"] },
92
+ "basis": "Frontend Code Arena Elo: kimi-k3 1679 > gpt-5.6-sol 1618 > glm-5.2 1587. Falls back to installed vendors when opencode is unavailable.",
93
+ "confidence": "hypothesis - the benchmark measures generation, not review. Pending local A/B."
94
+ },
95
+ "backend": {
96
+ "match_extensions": ["py", "go", "rs", "java", "rb", "php", "sql", "ts"],
97
+ "preferred": { "thorough": ["claude-opus-5", "gpt-5.6-sol"], "balanced": ["claude-sonnet-5", "gpt-5.6-terra"], "fast": ["deepseek-v4-flash", "gpt-5.6-luna", "claude-haiku-4-5-20251001"] },
98
+ "basis": "SWE-bench Verified: claude-opus-5 0.960 > claude-sonnet-5 0.852 > deepseek-v4-pro 0.806 > claude-haiku-4-5 0.733.",
99
+ "confidence": "measured"
100
+ }
101
+ },
102
+
103
+ "_pr_classes_note": "ORDER IS THE ROUTING LOGIC - first match wins. `risky` sits second, immediately after `generated`, so consequence-based promotion dominates every cheapening rule below it: a deletion-only PR that removes auth code, or a 2-file change to a migration, must not fall through to `fast`.",
104
+ "pr_classes": [
105
+ {
106
+ "id": "generated", "label": "Generated / vendored only",
107
+ "match": { "all_files_match": ["(^|/)(dist|build|node_modules)/", "\\.(lock|sum)$", "(package-lock|pnpm-lock|yarn\\.lock)", "\\.(pb|_pb2)\\.[a-z]+$", "(^|/)generated/"] },
108
+ "tier": null, "effort": null, "steps": [],
109
+ "reason": "every changed file is generated or vendored - nothing here is human-authored"
110
+ },
111
+ {
112
+ "id": "risky", "label": "Security / data-critical",
113
+ "_any_path_matches_note": "Anchored on path segments and extensions. Unanchored, `auth` matched author/authors/oauth and `migration` matched MIGRATION_AND_GROWTH.md, promoting a pure-docs PR to thorough with a full fix/recheck loop.",
114
+ "match": {
115
+ "any_path_matches": ["(^|/)auth([/.]|$)", "(^|/)tokens?([/.]|$)", "(^|/)secrets?([/.]|$)", "(^|/)credentials?([/.]|$)", "(^|/)passwords?([/.]|$)", "(^|/)crypto([/.]|$)", "(^|/)payments?([/.]|$)", "(^|/)billing([/.]|$)", "(^|/)migrations?([/.]|$)", "\\.sql$", "(^|/)permissions?([/.]|$)", "(^|/)rbac([/.]|$)", "(^|/)sessions?([/.]|$)", "(^|/)cors([/.]|$)"],
116
+ "or_labels": ["risk:T3"],
117
+ "or_hotfix_to_default_branch": true
118
+ },
119
+ "tier": "thorough", "effort": "high", "steps": ["review", "fix", "recheck"],
120
+ "reason": "touches a security or data-critical path, where a missed defect is expensive - promoted on consequence, not on predicted difficulty"
121
+ },
122
+ {
123
+ "id": "deletion_only", "label": "Deletion-only",
124
+ "match": { "additions_max": 5, "deletions_min": 20 },
125
+ "tier": "fast", "effort": "medium", "steps": ["review"],
126
+ "focus": "dangling references only: imports, call sites, config keys, route registrations, docs pointing at removed symbols",
127
+ "reason": "removal-only, so the risk is reference breakage rather than defect density; a wrong deletion is reverted, not patched"
128
+ },
129
+ {
130
+ "id": "docs", "label": "Documentation / specification",
131
+ "match": { "doc_fraction_min": 0.5 },
132
+ "tier": "balanced", "effort": "high", "steps": ["review"],
133
+ "focus": "internal contradiction, claims contradicted by the code the doc describes, stale cross-references",
134
+ "reason": "specification review is open-ended design negotiation, which no automated fix loop terminates - review only"
135
+ },
136
+ {
137
+ "id": "test_only", "label": "Test-only",
138
+ "match": { "all_files_match": ["((^|/)(__tests__|tests?|e2e|fixtures?)(/|$)|\\.(test|spec)\\.)"] },
139
+ "tier": "fast", "effort": "medium", "steps": ["review", "fix"],
140
+ "focus": "assertions that cannot fail, over-mocking that voids the test, coverage claimed but not exercised",
141
+ "reason": "tests only - no production code path changes"
142
+ },
143
+ {
144
+ "id": "config_infra", "label": "Config / infrastructure",
145
+ "match": { "config_fraction_min": 0.5, "source_files_max": 0 },
146
+ "tier": "balanced", "effort": "high", "steps": ["review", "fix", "recheck"],
147
+ "focus": "secrets in plaintext, permission widening, resource limits, deploy-order breakage",
148
+ "reason": "low defect density but high blast radius - cheap to review, expensive to get wrong"
149
+ },
150
+ {
151
+ "id": "trivial", "label": "Trivial",
152
+ "match": { "files_max": 3, "src_churn_max": 150 },
153
+ "tier": "fast", "effort": "medium", "steps": ["review", "fix"],
154
+ "reason": "small and low-risk, and PRs this size merge in minutes - latency matters more than depth"
155
+ },
156
+ {
157
+ "id": "standard", "label": "Standard code",
158
+ "match": {},
159
+ "tier": "balanced", "effort": "medium", "steps": ["review", "fix", "recheck"],
160
+ "reason": "default class - no narrower rule matched"
161
+ }
162
+ ],
163
+
164
+ "ladder": {
165
+ "_comment": "Escalate on measured non-convergence, never on predicted complexity. Scope narrows each round; the model never weakens. Where a model exposes no effort levels, the effort step degrades to a model step (see effort_fallback).",
166
+ "max_blocking_findings": 5,
167
+ "max_rounds": 3,
168
+ "max_wall_clock_min": 60,
169
+ "effort_fallback": "promote_tier",
170
+ "rounds": [
171
+ { "round": 1, "step": "review", "scope": "full_pr", "tier": "class", "effort": "class" },
172
+ { "round": 1, "step": "fix", "scope": "blocking_only", "tier": "same_as_review", "effort": "one_below_review" },
173
+ { "round": 2, "step": "recheck", "scope": "delta_plus_open", "tier": "same_as_review", "effort": "high" },
174
+ { "round": 3, "step": "recheck", "scope": "delta_plus_open", "tier": "same_as_review", "effort": "xhigh", "cross_vendor_switch": true },
175
+ { "round": 4, "step": "handoff", "scope": "digest", "tier": null, "effort": null }
176
+ ]
177
+ },
178
+
179
+ "modes": {
180
+ "cross_vendor": {
181
+ "strength": "An independent second perspective. A vendor switch broke a stalled loop twice in the census (PR #2057, #2060) after same-vendor escalation had failed for 3-6 rounds.",
182
+ "round_3_lever": "switch vendor AND raise effort",
183
+ "max_rounds": 3
184
+ },
185
+ "single_vendor": {
186
+ "strength": "One CLI to authenticate, version, and monitor. No routing logic.",
187
+ "round_3_lever": "raise effort, then promote one tier - no fresh-eyes option exists",
188
+ "max_rounds": 2
189
+ }
190
+ },
191
+
192
+ "conflict_resolve": {
193
+ "tier": "fast", "effort": "low",
194
+ "reason": "mechanical text surgery bounded by conflict markers - measured at 37s against ~643s for a review"
195
+ },
196
+
197
+ "citation": {
198
+ "_comment": "Every crosscheck comment states the strategy it ran under, so a past review can be explained by the policy in force at the time.",
199
+ "annotation_fields": ["strategy", "class", "tier"],
200
+ "annotation_example": "<!-- crosscheck: origin=claude reviewer=claude model=claude-opus-5 type=review round=1 verdict=BLOCK service=crosscheck sha=abc123 strategy=1.1.0 class=risky tier=thorough -->",
201
+ "body_template": "{tier} tier · {reason} · strategy v{version}",
202
+ "body_example": "_Reviewed with [Claude Code](https://claude.ai/code) via [Crosscheck](https://github.com/humanbased-ai/crosscheck) with Opus 5 (high) — thorough tier · touches a security or data-critical path, where a missed defect is expensive · strategy v1.1.0_"
203
+ }
204
+ }
@@ -1,4 +1,6 @@
1
1
  import { z } from 'zod';
2
+ export declare const CLAUDE_EFFORT_LEVELS: readonly ["low", "medium", "high", "max"];
3
+ export declare const CODEX_EFFORT_LEVELS: readonly ["low", "medium", "high", "xhigh", "max", "ultra"];
2
4
  export declare const VendorConfigSchema: z.ZodObject<{
3
5
  enabled: z.ZodDefault<z.ZodBoolean>;
4
6
  model: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -22,10 +24,10 @@ export declare const CodexVendorConfigSchema: z.ZodObject<{
22
24
  enabled: z.ZodDefault<z.ZodBoolean>;
23
25
  model: z.ZodDefault<z.ZodNullable<z.ZodString>>;
24
26
  auth: z.ZodDefault<z.ZodEnum<["subscription", "api-key"]>>;
25
- effort: z.ZodDefault<z.ZodEnum<["low", "medium", "high", "max"]>>;
26
27
  timeout_sec: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
27
28
  } & {
28
29
  quality: z.ZodDefault<z.ZodEnum<["low", "medium", "high"]>>;
30
+ effort: z.ZodDefault<z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>>;
29
31
  model_tiers: z.ZodOptional<z.ZodObject<{
30
32
  fast: z.ZodOptional<z.ZodString>;
31
33
  balanced: z.ZodOptional<z.ZodString>;
@@ -43,7 +45,7 @@ export declare const CodexVendorConfigSchema: z.ZodObject<{
43
45
  enabled: boolean;
44
46
  model: string | null;
45
47
  auth: "subscription" | "api-key";
46
- effort: "low" | "medium" | "high" | "max";
48
+ effort: "low" | "medium" | "high" | "max" | "xhigh" | "ultra";
47
49
  timeout_sec: number | null;
48
50
  quality: "low" | "medium" | "high";
49
51
  model_tiers?: {
@@ -55,7 +57,7 @@ export declare const CodexVendorConfigSchema: z.ZodObject<{
55
57
  enabled?: boolean | undefined;
56
58
  model?: string | null | undefined;
57
59
  auth?: "subscription" | "api-key" | undefined;
58
- effort?: "low" | "medium" | "high" | "max" | undefined;
60
+ effort?: "low" | "medium" | "high" | "max" | "xhigh" | "ultra" | undefined;
59
61
  timeout_sec?: number | null | undefined;
60
62
  quality?: "low" | "medium" | "high" | undefined;
61
63
  model_tiers?: {
@@ -66,13 +68,13 @@ export declare const CodexVendorConfigSchema: z.ZodObject<{
66
68
  }>;
67
69
  export declare const QualityConfigSchema: z.ZodObject<{
68
70
  tier: z.ZodDefault<z.ZodEnum<["fast", "balanced", "thorough"]>>;
69
- mode: z.ZodOptional<z.ZodEnum<["fixed", "smart"]>>;
71
+ mode: z.ZodDefault<z.ZodEnum<["fixed", "smart"]>>;
70
72
  focus: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
71
73
  custom_prompt: z.ZodOptional<z.ZodString>;
72
74
  }, "strip", z.ZodTypeAny, {
73
75
  tier: "fast" | "balanced" | "thorough";
76
+ mode: "fixed" | "smart";
74
77
  focus: string[];
75
- mode?: "fixed" | "smart" | undefined;
76
78
  custom_prompt?: string | undefined;
77
79
  }, {
78
80
  tier?: "fast" | "balanced" | "thorough" | undefined;
@@ -80,6 +82,16 @@ export declare const QualityConfigSchema: z.ZodObject<{
80
82
  focus?: string[] | undefined;
81
83
  custom_prompt?: string | undefined;
82
84
  }>;
85
+ export declare const SkillsConfigSchema: z.ZodObject<{
86
+ enabled: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
87
+ codex_full_access: z.ZodDefault<z.ZodBoolean>;
88
+ }, "strip", z.ZodTypeAny, {
89
+ enabled: string[];
90
+ codex_full_access: boolean;
91
+ }, {
92
+ enabled?: string[] | undefined;
93
+ codex_full_access?: boolean | undefined;
94
+ }>;
83
95
  export declare const BudgetConfigSchema: z.ZodObject<{
84
96
  codex_monthly_usd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
85
97
  per_review_usd: z.ZodDefault<z.ZodNumber>;
@@ -421,6 +433,117 @@ export declare const BrandConfigSchema: z.ZodObject<{
421
433
  comment_footer?: string | undefined;
422
434
  reviewer_attribution?: string | undefined;
423
435
  }>;
436
+ export declare const LinearAuthConfigSchema: z.ZodObject<{
437
+ mode: z.ZodDefault<z.ZodEnum<["api_key", "client_credentials"]>>;
438
+ api_key_env: z.ZodDefault<z.ZodString>;
439
+ client_id_env: z.ZodDefault<z.ZodString>;
440
+ client_secret_env: z.ZodDefault<z.ZodString>;
441
+ scopes: z.ZodDefault<z.ZodString>;
442
+ }, "strip", z.ZodTypeAny, {
443
+ mode: "api_key" | "client_credentials";
444
+ api_key_env: string;
445
+ client_id_env: string;
446
+ client_secret_env: string;
447
+ scopes: string;
448
+ }, {
449
+ mode?: "api_key" | "client_credentials" | undefined;
450
+ api_key_env?: string | undefined;
451
+ client_id_env?: string | undefined;
452
+ client_secret_env?: string | undefined;
453
+ scopes?: string | undefined;
454
+ }>;
455
+ export declare const LinearIdentityConfigSchema: z.ZodObject<{
456
+ actor: z.ZodDefault<z.ZodString>;
457
+ signature: z.ZodDefault<z.ZodString>;
458
+ icon_url: z.ZodDefault<z.ZodString>;
459
+ per_step_actor: z.ZodDefault<z.ZodBoolean>;
460
+ }, "strip", z.ZodTypeAny, {
461
+ actor: string;
462
+ signature: string;
463
+ icon_url: string;
464
+ per_step_actor: boolean;
465
+ }, {
466
+ actor?: string | undefined;
467
+ signature?: string | undefined;
468
+ icon_url?: string | undefined;
469
+ per_step_actor?: boolean | undefined;
470
+ }>;
471
+ export declare const LinearVerdictFilterSchema: z.ZodEnum<["APPROVE", "NEEDS_WORK", "BLOCK", "UNKNOWN"]>;
472
+ export type LinearVerdictFilter = z.infer<typeof LinearVerdictFilterSchema>;
473
+ export declare const LinearConfigSchema: z.ZodObject<{
474
+ enabled: z.ZodDefault<z.ZodBoolean>;
475
+ auth: z.ZodDefault<z.ZodObject<{
476
+ mode: z.ZodDefault<z.ZodEnum<["api_key", "client_credentials"]>>;
477
+ api_key_env: z.ZodDefault<z.ZodString>;
478
+ client_id_env: z.ZodDefault<z.ZodString>;
479
+ client_secret_env: z.ZodDefault<z.ZodString>;
480
+ scopes: z.ZodDefault<z.ZodString>;
481
+ }, "strip", z.ZodTypeAny, {
482
+ mode: "api_key" | "client_credentials";
483
+ api_key_env: string;
484
+ client_id_env: string;
485
+ client_secret_env: string;
486
+ scopes: string;
487
+ }, {
488
+ mode?: "api_key" | "client_credentials" | undefined;
489
+ api_key_env?: string | undefined;
490
+ client_id_env?: string | undefined;
491
+ client_secret_env?: string | undefined;
492
+ scopes?: string | undefined;
493
+ }>>;
494
+ identity: z.ZodDefault<z.ZodObject<{
495
+ actor: z.ZodDefault<z.ZodString>;
496
+ signature: z.ZodDefault<z.ZodString>;
497
+ icon_url: z.ZodDefault<z.ZodString>;
498
+ per_step_actor: z.ZodDefault<z.ZodBoolean>;
499
+ }, "strip", z.ZodTypeAny, {
500
+ actor: string;
501
+ signature: string;
502
+ icon_url: string;
503
+ per_step_actor: boolean;
504
+ }, {
505
+ actor?: string | undefined;
506
+ signature?: string | undefined;
507
+ icon_url?: string | undefined;
508
+ per_step_actor?: boolean | undefined;
509
+ }>>;
510
+ comment_on: z.ZodDefault<z.ZodArray<z.ZodEnum<["APPROVE", "NEEDS_WORK", "BLOCK", "UNKNOWN"]>, "many">>;
511
+ team_keys: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
512
+ }, "strip", z.ZodTypeAny, {
513
+ enabled: boolean;
514
+ auth: {
515
+ mode: "api_key" | "client_credentials";
516
+ api_key_env: string;
517
+ client_id_env: string;
518
+ client_secret_env: string;
519
+ scopes: string;
520
+ };
521
+ team_keys: string[];
522
+ identity: {
523
+ actor: string;
524
+ signature: string;
525
+ icon_url: string;
526
+ per_step_actor: boolean;
527
+ };
528
+ comment_on: ("APPROVE" | "NEEDS_WORK" | "BLOCK" | "UNKNOWN")[];
529
+ }, {
530
+ enabled?: boolean | undefined;
531
+ auth?: {
532
+ mode?: "api_key" | "client_credentials" | undefined;
533
+ api_key_env?: string | undefined;
534
+ client_id_env?: string | undefined;
535
+ client_secret_env?: string | undefined;
536
+ scopes?: string | undefined;
537
+ } | undefined;
538
+ team_keys?: string[] | undefined;
539
+ identity?: {
540
+ actor?: string | undefined;
541
+ signature?: string | undefined;
542
+ icon_url?: string | undefined;
543
+ per_step_actor?: boolean | undefined;
544
+ } | undefined;
545
+ comment_on?: ("APPROVE" | "NEEDS_WORK" | "BLOCK" | "UNKNOWN")[] | undefined;
546
+ }>;
424
547
  export declare const ConfigSchema: z.ZodObject<{
425
548
  deployment: z.ZodOptional<z.ZodEnum<["personal", "team"]>>;
426
549
  mode: z.ZodDefault<z.ZodEnum<["single-vendor", "cross-vendor"]>>;
@@ -430,10 +553,10 @@ export declare const ConfigSchema: z.ZodObject<{
430
553
  enabled: z.ZodDefault<z.ZodBoolean>;
431
554
  model: z.ZodDefault<z.ZodNullable<z.ZodString>>;
432
555
  auth: z.ZodDefault<z.ZodEnum<["subscription", "api-key"]>>;
433
- effort: z.ZodDefault<z.ZodEnum<["low", "medium", "high", "max"]>>;
434
556
  timeout_sec: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
435
557
  } & {
436
558
  quality: z.ZodDefault<z.ZodEnum<["low", "medium", "high"]>>;
559
+ effort: z.ZodDefault<z.ZodEnum<["low", "medium", "high", "xhigh", "max", "ultra"]>>;
437
560
  model_tiers: z.ZodOptional<z.ZodObject<{
438
561
  fast: z.ZodOptional<z.ZodString>;
439
562
  balanced: z.ZodOptional<z.ZodString>;
@@ -451,7 +574,7 @@ export declare const ConfigSchema: z.ZodObject<{
451
574
  enabled: boolean;
452
575
  model: string | null;
453
576
  auth: "subscription" | "api-key";
454
- effort: "low" | "medium" | "high" | "max";
577
+ effort: "low" | "medium" | "high" | "max" | "xhigh" | "ultra";
455
578
  timeout_sec: number | null;
456
579
  quality: "low" | "medium" | "high";
457
580
  model_tiers?: {
@@ -463,7 +586,7 @@ export declare const ConfigSchema: z.ZodObject<{
463
586
  enabled?: boolean | undefined;
464
587
  model?: string | null | undefined;
465
588
  auth?: "subscription" | "api-key" | undefined;
466
- effort?: "low" | "medium" | "high" | "max" | undefined;
589
+ effort?: "low" | "medium" | "high" | "max" | "xhigh" | "ultra" | undefined;
467
590
  timeout_sec?: number | null | undefined;
468
591
  quality?: "low" | "medium" | "high" | undefined;
469
592
  model_tiers?: {
@@ -503,7 +626,7 @@ export declare const ConfigSchema: z.ZodObject<{
503
626
  enabled: boolean;
504
627
  model: string | null;
505
628
  auth: "subscription" | "api-key";
506
- effort: "low" | "medium" | "high" | "max";
629
+ effort: "low" | "medium" | "high" | "max" | "xhigh" | "ultra";
507
630
  timeout_sec: number | null;
508
631
  quality: "low" | "medium" | "high";
509
632
  model_tiers?: {
@@ -524,7 +647,7 @@ export declare const ConfigSchema: z.ZodObject<{
524
647
  enabled?: boolean | undefined;
525
648
  model?: string | null | undefined;
526
649
  auth?: "subscription" | "api-key" | undefined;
527
- effort?: "low" | "medium" | "high" | "max" | undefined;
650
+ effort?: "low" | "medium" | "high" | "max" | "xhigh" | "ultra" | undefined;
528
651
  timeout_sec?: number | null | undefined;
529
652
  quality?: "low" | "medium" | "high" | undefined;
530
653
  model_tiers?: {
@@ -536,13 +659,13 @@ export declare const ConfigSchema: z.ZodObject<{
536
659
  }>>;
537
660
  quality: z.ZodDefault<z.ZodObject<{
538
661
  tier: z.ZodDefault<z.ZodEnum<["fast", "balanced", "thorough"]>>;
539
- mode: z.ZodOptional<z.ZodEnum<["fixed", "smart"]>>;
662
+ mode: z.ZodDefault<z.ZodEnum<["fixed", "smart"]>>;
540
663
  focus: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
541
664
  custom_prompt: z.ZodOptional<z.ZodString>;
542
665
  }, "strip", z.ZodTypeAny, {
543
666
  tier: "fast" | "balanced" | "thorough";
667
+ mode: "fixed" | "smart";
544
668
  focus: string[];
545
- mode?: "fixed" | "smart" | undefined;
546
669
  custom_prompt?: string | undefined;
547
670
  }, {
548
671
  tier?: "fast" | "balanced" | "thorough" | undefined;
@@ -550,6 +673,16 @@ export declare const ConfigSchema: z.ZodObject<{
550
673
  focus?: string[] | undefined;
551
674
  custom_prompt?: string | undefined;
552
675
  }>>;
676
+ skills: z.ZodDefault<z.ZodObject<{
677
+ enabled: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
678
+ codex_full_access: z.ZodDefault<z.ZodBoolean>;
679
+ }, "strip", z.ZodTypeAny, {
680
+ enabled: string[];
681
+ codex_full_access: boolean;
682
+ }, {
683
+ enabled?: string[] | undefined;
684
+ codex_full_access?: boolean | undefined;
685
+ }>>;
553
686
  budget: z.ZodDefault<z.ZodObject<{
554
687
  codex_monthly_usd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
555
688
  per_review_usd: z.ZodDefault<z.ZodNumber>;
@@ -811,14 +944,106 @@ export declare const ConfigSchema: z.ZodObject<{
811
944
  comment_footer?: string | undefined;
812
945
  reviewer_attribution?: string | undefined;
813
946
  }>>;
947
+ linear: z.ZodDefault<z.ZodObject<{
948
+ enabled: z.ZodDefault<z.ZodBoolean>;
949
+ auth: z.ZodDefault<z.ZodObject<{
950
+ mode: z.ZodDefault<z.ZodEnum<["api_key", "client_credentials"]>>;
951
+ api_key_env: z.ZodDefault<z.ZodString>;
952
+ client_id_env: z.ZodDefault<z.ZodString>;
953
+ client_secret_env: z.ZodDefault<z.ZodString>;
954
+ scopes: z.ZodDefault<z.ZodString>;
955
+ }, "strip", z.ZodTypeAny, {
956
+ mode: "api_key" | "client_credentials";
957
+ api_key_env: string;
958
+ client_id_env: string;
959
+ client_secret_env: string;
960
+ scopes: string;
961
+ }, {
962
+ mode?: "api_key" | "client_credentials" | undefined;
963
+ api_key_env?: string | undefined;
964
+ client_id_env?: string | undefined;
965
+ client_secret_env?: string | undefined;
966
+ scopes?: string | undefined;
967
+ }>>;
968
+ identity: z.ZodDefault<z.ZodObject<{
969
+ actor: z.ZodDefault<z.ZodString>;
970
+ signature: z.ZodDefault<z.ZodString>;
971
+ icon_url: z.ZodDefault<z.ZodString>;
972
+ per_step_actor: z.ZodDefault<z.ZodBoolean>;
973
+ }, "strip", z.ZodTypeAny, {
974
+ actor: string;
975
+ signature: string;
976
+ icon_url: string;
977
+ per_step_actor: boolean;
978
+ }, {
979
+ actor?: string | undefined;
980
+ signature?: string | undefined;
981
+ icon_url?: string | undefined;
982
+ per_step_actor?: boolean | undefined;
983
+ }>>;
984
+ comment_on: z.ZodDefault<z.ZodArray<z.ZodEnum<["APPROVE", "NEEDS_WORK", "BLOCK", "UNKNOWN"]>, "many">>;
985
+ team_keys: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
986
+ }, "strip", z.ZodTypeAny, {
987
+ enabled: boolean;
988
+ auth: {
989
+ mode: "api_key" | "client_credentials";
990
+ api_key_env: string;
991
+ client_id_env: string;
992
+ client_secret_env: string;
993
+ scopes: string;
994
+ };
995
+ team_keys: string[];
996
+ identity: {
997
+ actor: string;
998
+ signature: string;
999
+ icon_url: string;
1000
+ per_step_actor: boolean;
1001
+ };
1002
+ comment_on: ("APPROVE" | "NEEDS_WORK" | "BLOCK" | "UNKNOWN")[];
1003
+ }, {
1004
+ enabled?: boolean | undefined;
1005
+ auth?: {
1006
+ mode?: "api_key" | "client_credentials" | undefined;
1007
+ api_key_env?: string | undefined;
1008
+ client_id_env?: string | undefined;
1009
+ client_secret_env?: string | undefined;
1010
+ scopes?: string | undefined;
1011
+ } | undefined;
1012
+ team_keys?: string[] | undefined;
1013
+ identity?: {
1014
+ actor?: string | undefined;
1015
+ signature?: string | undefined;
1016
+ icon_url?: string | undefined;
1017
+ per_step_actor?: boolean | undefined;
1018
+ } | undefined;
1019
+ comment_on?: ("APPROVE" | "NEEDS_WORK" | "BLOCK" | "UNKNOWN")[] | undefined;
1020
+ }>>;
814
1021
  }, "strip", z.ZodTypeAny, {
815
1022
  quality: {
816
1023
  tier: "fast" | "balanced" | "thorough";
1024
+ mode: "fixed" | "smart";
817
1025
  focus: string[];
818
- mode?: "fixed" | "smart" | undefined;
819
1026
  custom_prompt?: string | undefined;
820
1027
  };
821
1028
  mode: "single-vendor" | "cross-vendor";
1029
+ linear: {
1030
+ enabled: boolean;
1031
+ auth: {
1032
+ mode: "api_key" | "client_credentials";
1033
+ api_key_env: string;
1034
+ client_id_env: string;
1035
+ client_secret_env: string;
1036
+ scopes: string;
1037
+ };
1038
+ team_keys: string[];
1039
+ identity: {
1040
+ actor: string;
1041
+ signature: string;
1042
+ icon_url: string;
1043
+ per_step_actor: boolean;
1044
+ };
1045
+ comment_on: ("APPROVE" | "NEEDS_WORK" | "BLOCK" | "UNKNOWN")[];
1046
+ };
822
1047
  clone_protocol: "ssh" | "https";
823
1048
  vendors: {
824
1049
  claude: {
@@ -832,7 +1057,7 @@ export declare const ConfigSchema: z.ZodObject<{
832
1057
  enabled: boolean;
833
1058
  model: string | null;
834
1059
  auth: "subscription" | "api-key";
835
- effort: "low" | "medium" | "high" | "max";
1060
+ effort: "low" | "medium" | "high" | "max" | "xhigh" | "ultra";
836
1061
  timeout_sec: number | null;
837
1062
  quality: "low" | "medium" | "high";
838
1063
  model_tiers?: {
@@ -842,6 +1067,10 @@ export declare const ConfigSchema: z.ZodObject<{
842
1067
  } | undefined;
843
1068
  };
844
1069
  };
1070
+ skills: {
1071
+ enabled: string[];
1072
+ codex_full_access: boolean;
1073
+ };
845
1074
  budget: {
846
1075
  codex_monthly_usd: number | null;
847
1076
  per_review_usd: number;
@@ -932,6 +1161,24 @@ export declare const ConfigSchema: z.ZodObject<{
932
1161
  custom_prompt?: string | undefined;
933
1162
  } | undefined;
934
1163
  mode?: "single-vendor" | "cross-vendor" | undefined;
1164
+ linear?: {
1165
+ enabled?: boolean | undefined;
1166
+ auth?: {
1167
+ mode?: "api_key" | "client_credentials" | undefined;
1168
+ api_key_env?: string | undefined;
1169
+ client_id_env?: string | undefined;
1170
+ client_secret_env?: string | undefined;
1171
+ scopes?: string | undefined;
1172
+ } | undefined;
1173
+ team_keys?: string[] | undefined;
1174
+ identity?: {
1175
+ actor?: string | undefined;
1176
+ signature?: string | undefined;
1177
+ icon_url?: string | undefined;
1178
+ per_step_actor?: boolean | undefined;
1179
+ } | undefined;
1180
+ comment_on?: ("APPROVE" | "NEEDS_WORK" | "BLOCK" | "UNKNOWN")[] | undefined;
1181
+ } | undefined;
935
1182
  deployment?: "personal" | "team" | undefined;
936
1183
  clone_protocol?: "ssh" | "https" | undefined;
937
1184
  vendors?: {
@@ -946,7 +1193,7 @@ export declare const ConfigSchema: z.ZodObject<{
946
1193
  enabled?: boolean | undefined;
947
1194
  model?: string | null | undefined;
948
1195
  auth?: "subscription" | "api-key" | undefined;
949
- effort?: "low" | "medium" | "high" | "max" | undefined;
1196
+ effort?: "low" | "medium" | "high" | "max" | "xhigh" | "ultra" | undefined;
950
1197
  timeout_sec?: number | null | undefined;
951
1198
  quality?: "low" | "medium" | "high" | undefined;
952
1199
  model_tiers?: {
@@ -956,6 +1203,10 @@ export declare const ConfigSchema: z.ZodObject<{
956
1203
  } | undefined;
957
1204
  } | undefined;
958
1205
  } | undefined;
1206
+ skills?: {
1207
+ enabled?: string[] | undefined;
1208
+ codex_full_access?: boolean | undefined;
1209
+ } | undefined;
959
1210
  budget?: {
960
1211
  codex_monthly_usd?: number | null | undefined;
961
1212
  per_review_usd?: number | undefined;
@@ -1043,6 +1294,7 @@ export type BrandConfig = z.infer<typeof BrandConfigSchema>;
1043
1294
  export type VendorConfig = z.infer<typeof VendorConfigSchema>;
1044
1295
  export type CodexVendorConfig = z.infer<typeof CodexVendorConfigSchema>;
1045
1296
  export type QualityConfig = z.infer<typeof QualityConfigSchema>;
1297
+ export type SkillsConfig = z.infer<typeof SkillsConfigSchema>;
1046
1298
  export type LogsConfig = z.infer<typeof LogsConfigSchema>;
1047
1299
  export type TunnelConfig = z.infer<typeof TunnelConfigSchema>;
1048
1300
  export type ImpactConfig = z.infer<typeof ImpactConfigSchema>;
@@ -1053,4 +1305,6 @@ export type DisplayTheme = z.infer<typeof DisplayThemeSchema>;
1053
1305
  export type BacktraceConfig = z.infer<typeof BacktraceConfigSchema>;
1054
1306
  export type IssueEnrichmentConfig = z.infer<typeof IssueEnrichmentConfigSchema>;
1055
1307
  export type WatchConfig = z.infer<typeof WatchConfigSchema>;
1308
+ export type LinearConfig = z.infer<typeof LinearConfigSchema>;
1309
+ export type LinearAuthConfig = z.infer<typeof LinearAuthConfigSchema>;
1056
1310
  //# sourceMappingURL=schema.d.ts.map