clud-bug 0.6.34 → 0.7.0-rc.2

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 (110) hide show
  1. package/bin/clud-bug.js +10 -1353
  2. package/dist/cli/agents-md.d.ts +16 -0
  3. package/dist/cli/agents-md.d.ts.map +1 -0
  4. package/dist/cli/agents-md.js +226 -0
  5. package/dist/cli/agents-md.js.map +1 -0
  6. package/dist/cli/audit.d.ts +13 -0
  7. package/dist/cli/audit.d.ts.map +1 -0
  8. package/dist/cli/audit.js +90 -0
  9. package/dist/cli/audit.js.map +1 -0
  10. package/dist/cli/branch-protection.d.ts +57 -0
  11. package/dist/cli/branch-protection.d.ts.map +1 -0
  12. package/dist/cli/branch-protection.js +118 -0
  13. package/dist/cli/branch-protection.js.map +1 -0
  14. package/dist/cli/edit-workflow.d.ts +18 -0
  15. package/dist/cli/edit-workflow.d.ts.map +1 -0
  16. package/dist/cli/edit-workflow.js +43 -0
  17. package/dist/cli/edit-workflow.js.map +1 -0
  18. package/dist/cli/index.d.ts +8 -0
  19. package/dist/cli/index.d.ts.map +1 -0
  20. package/dist/cli/index.js +18 -0
  21. package/dist/cli/index.js.map +1 -0
  22. package/dist/cli/main.d.ts +3 -0
  23. package/dist/cli/main.d.ts.map +1 -0
  24. package/dist/cli/main.js +1336 -0
  25. package/dist/cli/main.js.map +1 -0
  26. package/dist/cli/skill-usage.d.ts +109 -0
  27. package/dist/cli/skill-usage.d.ts.map +1 -0
  28. package/dist/cli/skill-usage.js +380 -0
  29. package/dist/cli/skill-usage.js.map +1 -0
  30. package/dist/cli/skills.d.ts +56 -0
  31. package/dist/cli/skills.d.ts.map +1 -0
  32. package/dist/cli/skills.js +292 -0
  33. package/dist/cli/skills.js.map +1 -0
  34. package/dist/cli/update.d.ts +29 -0
  35. package/dist/cli/update.d.ts.map +1 -0
  36. package/dist/cli/update.js +186 -0
  37. package/dist/cli/update.js.map +1 -0
  38. package/dist/cli/usage.d.ts +142 -0
  39. package/dist/cli/usage.d.ts.map +1 -0
  40. package/dist/cli/usage.js +348 -0
  41. package/dist/cli/usage.js.map +1 -0
  42. package/dist/core/audit.d.ts +8 -0
  43. package/dist/core/audit.d.ts.map +1 -0
  44. package/dist/core/audit.js +47 -0
  45. package/dist/core/audit.js.map +1 -0
  46. package/dist/core/detect.d.ts +77 -0
  47. package/dist/core/detect.d.ts.map +1 -0
  48. package/dist/core/detect.js +262 -0
  49. package/dist/core/detect.js.map +1 -0
  50. package/dist/core/index.d.ts +11 -0
  51. package/dist/core/index.d.ts.map +1 -0
  52. package/dist/core/index.js +31 -0
  53. package/dist/core/index.js.map +1 -0
  54. package/dist/core/prompt-builder.d.ts +164 -0
  55. package/dist/core/prompt-builder.d.ts.map +1 -0
  56. package/dist/core/prompt-builder.js +419 -0
  57. package/dist/core/prompt-builder.js.map +1 -0
  58. package/dist/core/prompts.d.ts +9 -0
  59. package/dist/core/prompts.d.ts.map +1 -0
  60. package/dist/core/prompts.js +401 -0
  61. package/dist/core/prompts.js.map +1 -0
  62. package/dist/core/render-review.d.ts +6 -0
  63. package/dist/core/render-review.d.ts.map +1 -0
  64. package/dist/core/render-review.js +219 -0
  65. package/dist/core/render-review.js.map +1 -0
  66. package/dist/core/render.d.ts +13 -0
  67. package/dist/core/render.d.ts.map +1 -0
  68. package/dist/core/render.js +80 -0
  69. package/dist/core/render.js.map +1 -0
  70. package/dist/core/review-schema-zod.d.ts +240 -0
  71. package/dist/core/review-schema-zod.d.ts.map +1 -0
  72. package/dist/core/review-schema-zod.js +218 -0
  73. package/dist/core/review-schema-zod.js.map +1 -0
  74. package/dist/core/review-schema.d.ts +42 -0
  75. package/dist/core/review-schema.d.ts.map +1 -0
  76. package/dist/core/review-schema.js +156 -0
  77. package/dist/core/review-schema.js.map +1 -0
  78. package/dist/core/review-writeback.d.ts +139 -0
  79. package/dist/core/review-writeback.d.ts.map +1 -0
  80. package/dist/core/review-writeback.js +313 -0
  81. package/dist/core/review-writeback.js.map +1 -0
  82. package/dist/core/skills.d.ts +122 -0
  83. package/dist/core/skills.d.ts.map +1 -0
  84. package/dist/core/skills.js +636 -0
  85. package/dist/core/skills.js.map +1 -0
  86. package/package.json +30 -4
  87. package/{lib/agents-md.js → src/cli/agents-md.ts} +25 -14
  88. package/{lib/audit.js → src/cli/audit.ts} +37 -44
  89. package/{lib/branch-protection.js → src/cli/branch-protection.ts} +75 -11
  90. package/{lib/edit-workflow.js → src/cli/edit-workflow.ts} +32 -11
  91. package/src/cli/index.ts +101 -0
  92. package/src/cli/main.ts +1376 -0
  93. package/{lib/skill-usage.js → src/cli/skill-usage.ts} +168 -94
  94. package/src/cli/skills.ts +386 -0
  95. package/{lib/update.js → src/cli/update.ts} +68 -27
  96. package/{lib/usage.js → src/cli/usage.ts} +167 -76
  97. package/src/core/audit.ts +53 -0
  98. package/{lib/detect.js → src/core/detect.ts} +100 -47
  99. package/src/core/index.ts +155 -0
  100. package/src/core/prompt-builder.ts +561 -0
  101. package/{lib/prompts.js → src/core/prompts.ts} +16 -2
  102. package/{lib/render-review.js → src/core/render-review.ts} +57 -25
  103. package/{lib/render.js → src/core/render.ts} +36 -10
  104. package/src/core/review-schema-zod.ts +262 -0
  105. package/{lib/review-schema.js → src/core/review-schema.ts} +68 -5
  106. package/src/core/review-writeback.ts +446 -0
  107. package/{lib/skills.js → src/core/skills.ts} +339 -342
  108. package/templates/workflow-py.yml.tmpl +2 -2
  109. package/templates/workflow-ts.yml.tmpl +2 -2
  110. package/templates/workflow.yml.tmpl +17 -8
@@ -222,7 +222,7 @@ jobs:
222
222
  # HEAD_SHA (v0.6.10+) — see workflow.yml.tmpl for design notes.
223
223
  HEAD_SHA: ${{ github.event.pull_request.head.sha }}
224
224
  # Per-section byte budgets — see workflow.yml.tmpl for design notes.
225
- MAX_DIFF_BYTES: '80000'
225
+ MAX_DIFF_BYTES: '5000000'
226
226
  MAX_COMMENT_BYTES: '20000'
227
227
  MAX_SKILL_BYTES: '4000'
228
228
  # Thinking-budget cap (v0.6.8) — see workflow.yml.tmpl for design notes.
@@ -366,7 +366,7 @@ jobs:
366
366
  # Strict-mode gate — composite action; see workflow.yml.tmpl for design notes.
367
367
  - name: Strict mode — fail check on critical findings
368
368
  if: success()
369
- uses: thrillmade/clud-bug/.github/actions/strict-mode-gate@v0.6.34
369
+ uses: thrillmade/clud-bug/.github/actions/strict-mode-gate@v0.7.0-rc.2
370
370
  with:
371
371
  github-token: ${{ secrets.GITHUB_TOKEN }}
372
372
  # v0.6.22 / 0.0.O: summary now posted by github-actions[bot].
@@ -222,7 +222,7 @@ jobs:
222
222
  # HEAD_SHA (v0.6.10+) — see workflow.yml.tmpl for design notes.
223
223
  HEAD_SHA: ${{ github.event.pull_request.head.sha }}
224
224
  # Per-section byte budgets — see workflow.yml.tmpl for design notes.
225
- MAX_DIFF_BYTES: '80000'
225
+ MAX_DIFF_BYTES: '5000000'
226
226
  MAX_COMMENT_BYTES: '20000'
227
227
  MAX_SKILL_BYTES: '4000'
228
228
  # Thinking-budget cap (v0.6.8) — see workflow.yml.tmpl for design notes.
@@ -366,7 +366,7 @@ jobs:
366
366
  # Strict-mode gate — composite action; see workflow.yml.tmpl for design notes.
367
367
  - name: Strict mode — fail check on critical findings
368
368
  if: success()
369
- uses: thrillmade/clud-bug/.github/actions/strict-mode-gate@v0.6.34
369
+ uses: thrillmade/clud-bug/.github/actions/strict-mode-gate@v0.7.0-rc.2
370
370
  with:
371
371
  github-token: ${{ secrets.GITHUB_TOKEN }}
372
372
  # v0.6.22 / 0.0.O: summary now posted by github-actions[bot].
@@ -1,4 +1,4 @@
1
- # clud-bug-template-version: v12
1
+ # clud-bug-template-version: v13
2
2
  name: Clud Bug 🐛 Crawls Your Code
3
3
 
4
4
  on:
@@ -396,12 +396,21 @@ jobs:
396
396
  # <prior_sha>..HEAD` (delta) when the SHA is still in HEAD's
397
397
  # ancestry. Fix-push reviews ingest only the new bytes.
398
398
  HEAD_SHA: ${{ github.event.pull_request.head.sha }}
399
- # Per-section byte budgets (v0.6.4). The system-prompt instructs
400
- # Claude to cap each per-PR input fetch with `head -c`. Caching
401
- # covers the stable system prefix; capping covers the variable
402
- # suffix (diff, comments, skills). Override per-repo by setting
403
- # these env vars in the consuming workflow if defaults don't fit.
404
- MAX_DIFF_BYTES: '80000'
399
+ # Per-section byte budgets (v0.6.4, MAX_DIFF_BYTES bumped 2026-06-08).
400
+ # The system-prompt instructs Claude to cap each per-PR input fetch
401
+ # with `head -c`. Caching covers the stable system prefix; capping
402
+ # covers the variable suffix (diff, comments, skills). Override
403
+ # per-repo by setting these env vars in the consuming workflow if
404
+ # defaults don't fit.
405
+ #
406
+ # 2026-06-08 CEO directive (v0.6.35): MAX_DIFF_BYTES bumped from
407
+ # 80000 (80KB) → 5000000 (5MB). The old default silently truncated
408
+ # any PR diff > 80KB, leading to half-reviews on real-world PRs.
409
+ # CEO: "a large diff should NEVER be a blocker or guard." 5MB is
410
+ # far above realistic single-PR diff sizes but bounded enough that
411
+ # the runner doesn't OOM. Repos that want stricter discipline can
412
+ # still set lower values per-repo.
413
+ MAX_DIFF_BYTES: '5000000'
405
414
  MAX_COMMENT_BYTES: '20000'
406
415
  MAX_SKILL_BYTES: '4000'
407
416
  # MAX_THINKING_TOKENS caps Claude Code's extended-thinking budget per
@@ -632,7 +641,7 @@ jobs:
632
641
  # Letting the action's own failure fail the check is louder and right.
633
642
  - name: Strict mode — fail check on critical findings
634
643
  if: success()
635
- uses: thrillmade/clud-bug/.github/actions/strict-mode-gate@v0.6.34
644
+ uses: thrillmade/clud-bug/.github/actions/strict-mode-gate@v0.7.0-rc.2
636
645
  with:
637
646
  github-token: ${{ secrets.GITHUB_TOKEN }}
638
647
  # v0.6.22 / 0.0.O: the summary is now posted by the workflow