@@ -129,6 +129,10 @@ jobs:
129129 AUTHOR : ${{ github.event.comment.user.login || github.actor }}
130130 SLACK_CHANNEL : ${{ inputs.slack_channel || '' }}
131131 SLACK_THREAD_TS : ${{ inputs.slack_thread_ts || '' }}
132+ # Public mode grants the session read-write access to public repos
133+ # (aztec-packages). Without it the session only gets the group's
134+ # unscoped repos and cannot open PRs against aztec-packages.
135+ CLAUDEBOX_MODE : ${{ vars.CLAUDEBOX_MODE || 'public' }}
132136 run : |
133137 if [ -z "${CLAUDEBOX_API_SECRET:-}" ]; then
134138 echo "ERROR: CLAUDEBOX_API_SECRET is not set; cannot dispatch ClaudeBox v2"
@@ -145,7 +149,8 @@ jobs:
145149 --arg link "$CLAUDEBOX_LINK" \
146150 --arg slack_channel "$SLACK_CHANNEL" \
147151 --arg slack_thread_ts "$SLACK_THREAD_TS" \
148- '{prompt: $prompt, user: $user, repo: $repo, run_url: $run_url, link: $link, slack_channel: $slack_channel, slack_thread_ts: $slack_thread_ts}
152+ --arg mode "$CLAUDEBOX_MODE" \
153+ '{prompt: $prompt, user: $user, repo: $repo, run_url: $run_url, link: $link, slack_channel: $slack_channel, slack_thread_ts: $slack_thread_ts, mode: $mode}
149154 + (if $comment_id != "" then {comment_id: ($comment_id | tonumber)} else {} end)
150155 + (if $run_comment_id != "" then {run_comment_id: ($run_comment_id | tonumber)} else {} end)')
151156
@@ -203,6 +208,7 @@ jobs:
203208 RUN_COMMENT_ID : ${{ steps.status_comment.outputs.run_comment_id || '' }}
204209 RUN_URL : ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
205210 REPO : ${{ github.repository }}
211+ CLAUDEBOX_MODE : ${{ vars.CLAUDEBOX_MODE || 'public' }}
206212 run : |
207213 if [ -z "${CLAUDEBOX_API_SECRET:-}" ]; then
208214 echo "ERROR: CLAUDEBOX_API_SECRET is not set; cannot dispatch ClaudeBox v2"
@@ -226,7 +232,8 @@ jobs:
226232 --arg repo "$REPO" \
227233 --arg run_url "$RUN_URL" \
228234 --arg link "$PR_URL" \
229- '{prompt: $prompt, user: $user, repo: $repo, run_url: $run_url, link: $link}
235+ --arg mode "$CLAUDEBOX_MODE" \
236+ '{prompt: $prompt, user: $user, repo: $repo, run_url: $run_url, link: $link, mode: $mode}
230237 + (if $run_comment_id != "" then {run_comment_id: ($run_comment_id | tonumber)} else {} end)')
231238
232239 RESPONSE=$(curl -sS -w "\n%{http_code}" \
0 commit comments