clud-bug 0.6.2 → 0.6.3

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clud-bug",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "description": "Skill-driven Claude PR review. Ship a brand-voice skill, get brand reviews. Each finding cites the skill that motivated it. CLI installs the workflow + a baseline kit; add more from skills.sh.",
5
5
  "homepage": "https://cludbug.dev",
6
6
  "bugs": "https://github.com/thrillmade/clud-bug/issues",
@@ -54,17 +54,25 @@ jobs:
54
54
  if: steps.guard.outputs.skip != 'true'
55
55
  env:
56
56
  PR_NUMBER: ${{ github.event.pull_request.number }}
57
+ # Stable prefix → CLI auto-cached system layer (10% cost on hits).
58
+ # See workflow.yml.tmpl for design notes.
59
+ APPEND_SYSTEM_PROMPT: |
60
+ {{REVIEW_PROMPT}}
57
61
  with:
58
62
  anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
59
63
  track_progress: true
64
+ show_full_output: true
60
65
  claude_args: |
61
66
  --allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh api graphql:*),Bash(gh api repos/:*),Bash(git show:*),Bash(cat .claude/skills/.clud-bug.json),Bash(cat .claude/skills/*/SKILL.md)"
62
67
  prompt: |
63
- {{REVIEW_PROMPT}}
68
+ Review this pull request following the discipline in your
69
+ system prompt — every rule about skill routing, comment
70
+ format, the strict-mode header, the two-surface review
71
+ shape, and the FIX-PUSH FLOW applies.
64
72
 
65
73
  # Strict-mode gate — composite action; see workflow.yml.tmpl for design notes.
66
74
  - name: Strict mode — fail check on critical findings
67
75
  if: success()
68
- uses: thrillmade/clud-bug/.github/actions/strict-mode-gate@v0.6.2
76
+ uses: thrillmade/clud-bug/.github/actions/strict-mode-gate@v0.6.3
69
77
  with:
70
78
  github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -54,17 +54,25 @@ jobs:
54
54
  if: steps.guard.outputs.skip != 'true'
55
55
  env:
56
56
  PR_NUMBER: ${{ github.event.pull_request.number }}
57
+ # Stable prefix → CLI auto-cached system layer (10% cost on hits).
58
+ # See workflow.yml.tmpl for design notes.
59
+ APPEND_SYSTEM_PROMPT: |
60
+ {{REVIEW_PROMPT}}
57
61
  with:
58
62
  anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
59
63
  track_progress: true
64
+ show_full_output: true
60
65
  claude_args: |
61
66
  --allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh api graphql:*),Bash(gh api repos/:*),Bash(git show:*),Bash(cat .claude/skills/.clud-bug.json),Bash(cat .claude/skills/*/SKILL.md)"
62
67
  prompt: |
63
- {{REVIEW_PROMPT}}
68
+ Review this pull request following the discipline in your
69
+ system prompt — every rule about skill routing, comment
70
+ format, the strict-mode header, the two-surface review
71
+ shape, and the FIX-PUSH FLOW applies.
64
72
 
65
73
  # Strict-mode gate — composite action; see workflow.yml.tmpl for design notes.
66
74
  - name: Strict mode — fail check on critical findings
67
75
  if: success()
68
- uses: thrillmade/clud-bug/.github/actions/strict-mode-gate@v0.6.2
76
+ uses: thrillmade/clud-bug/.github/actions/strict-mode-gate@v0.6.3
69
77
  with:
70
78
  github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -80,13 +80,30 @@ jobs:
80
80
  if: steps.guard.outputs.skip != 'true'
81
81
  env:
82
82
  PR_NUMBER: ${{ github.event.pull_request.number }}
83
+ # APPEND_SYSTEM_PROMPT lands inside the Claude Code CLI's auto-cached
84
+ # system layer (system prompt, tools, conversation history). Anthropic
85
+ # bills cached input tokens at 10% of standard input — within a 5-min
86
+ # window, the 2nd+ PR review in any consuming repo hits cache.
87
+ # See: src/entrypoints/run.ts in claude-code-action — `appendSystemPrompt:
88
+ # process.env.APPEND_SYSTEM_PROMPT` reads this var, threads it into the
89
+ # SDK's `systemPrompt.append`. Crucial: keep this content byte-stable
90
+ # across runs (no PR numbers, timestamps, SHAs) or the cache invalidates.
91
+ APPEND_SYSTEM_PROMPT: |
92
+ {{REVIEW_PROMPT}}
83
93
  with:
84
94
  anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
85
95
  track_progress: true
96
+ # show_full_output: exposes cache_read_input_tokens /
97
+ # cache_creation_input_tokens in the run's result JSON so we can
98
+ # measure caching effectiveness post-rollout (per v0.6.3 plan).
99
+ show_full_output: true
86
100
  claude_args: |
87
101
  --allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh api graphql:*),Bash(gh api repos/:*),Bash(git show:*),Bash(cat .claude/skills/.clud-bug.json),Bash(cat .claude/skills/*/SKILL.md)"
88
102
  prompt: |
89
- {{REVIEW_PROMPT}}
103
+ Review this pull request following the discipline in your
104
+ system prompt — every rule about skill routing, comment
105
+ format, the strict-mode header, the two-surface review
106
+ shape, and the FIX-PUSH FLOW applies.
90
107
 
91
108
  # Strict-mode gate. Fails the check when the BASE ref's manifest
92
109
  # has { "strictMode": true } AND the latest clud-bug review's first
@@ -103,6 +120,6 @@ jobs:
103
120
  # Letting the action's own failure fail the check is louder and right.
104
121
  - name: Strict mode — fail check on critical findings
105
122
  if: success()
106
- uses: thrillmade/clud-bug/.github/actions/strict-mode-gate@v0.6.2
123
+ uses: thrillmade/clud-bug/.github/actions/strict-mode-gate@v0.6.3
107
124
  with:
108
125
  github-token: ${{ secrets.GITHUB_TOKEN }}