Skip to content

Commit e78c92b

Browse files
authored
Merge branch 'main' into dependabot/npm_and_yarn/packages/codeflash/better-sqlite3-12.9.0
2 parents ea57fba + 5c0c90d commit e78c92b

10 files changed

Lines changed: 42 additions & 34 deletions

File tree

.claude/hooks/bash-guard.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ case "$FIRST_CMD" in
2424
echo "BLOCKED: Use the Read tool instead of \`$FIRST_CMD\`. Read provides line numbers and supports images/PDFs." >&2
2525
exit 2
2626
;;
27+
awk)
28+
echo "BLOCKED: Use the Grep tool or Read tool instead of \`awk\`." >&2
29+
exit 2
30+
;;
2731
sed)
2832
if echo "$COMMAND" | grep -qE '(^|[[:space:]])sed[[:space:]]+-i'; then
2933
echo "BLOCKED: Use the Edit tool instead of \`sed -i\`. Edit tracks changes properly." >&2

.claude/hooks/post-compact.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,8 @@ STATE="${STATE}- libcst for code transforms, ast for read-only analysis\n"
4040

4141
[ -z "$STATE" ] && exit 0
4242

43-
cat <<EOF
44-
{
45-
"systemMessage": "PRESERVE the following session state through compaction:\n$(echo -e "$STATE" | sed 's/"/\\"/g' | sed ':a;N;$!ba;s/\n/\\n/g')"
46-
}
47-
EOF
43+
EXPANDED=$(printf '%b' "$STATE")
44+
jq -n --arg msg "PRESERVE the following session state through compaction:
45+
$EXPANDED" '{"systemMessage": $msg}'
4846

4947
exit 0

.claude/hooks/track-read.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ FILE_PATH=$(echo "$INPUT" | jq -r '.tool_input.file_path // empty' 2>/dev/null |
66

77
[ -z "$FILE_PATH" ] && exit 0
88

9-
echo "$FILE_PATH" >> "$CLAUDE_PROJECT_DIR/.claude/.read-tracker"
9+
TRACKER="$CLAUDE_PROJECT_DIR/.claude/.read-tracker"
10+
grep -qxF "$FILE_PATH" "$TRACKER" 2>/dev/null || echo "$FILE_PATH" >> "$TRACKER"
1011
exit 0

.claude/settings.json

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,6 @@
4242
"timeout": 5
4343
}
4444
]
45-
},
46-
{
47-
"matcher": "Edit",
48-
"hooks": [
49-
{
50-
"type": "command",
51-
"command": "$CLAUDE_PROJECT_DIR/.claude/hooks/require-read.sh",
52-
"timeout": 5
53-
}
54-
]
5545
}
5646
],
5747
"PostToolUse": [
@@ -92,5 +82,8 @@
9282
"type": "command",
9383
"command": "$CLAUDE_PROJECT_DIR/.claude/hooks/status-line.sh"
9484
},
95-
"enableAllProjectMcpServers": true
85+
"enableAllProjectMcpServers": true,
86+
"env": {
87+
"ENABLE_LSP_TOOL": "1"
88+
}
9689
}

.github/workflows/ci.yaml

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,20 @@ jobs:
3636
env:
3737
PR_BODY: ${{ github.event.pull_request.body }}
3838
PR_AUTHOR: ${{ github.event.pull_request.user.login }}
39+
AUTHOR_ASSOCIATION: ${{ github.event.pull_request.author_association }}
3940
run: |
4041
# Skip for bots (dependabot, renovate, github-actions)
4142
if [[ "$PR_AUTHOR" == *"[bot]"* || "$PR_AUTHOR" == "dependabot" ]]; then
4243
echo "Bot PR — skipping linked issue check."
4344
exit 0
4445
fi
4546
47+
# Skip for org members
48+
if [[ "$AUTHOR_ASSOCIATION" == "MEMBER" ]]; then
49+
echo "Org member ($PR_AUTHOR) — skipping linked issue check."
50+
exit 0
51+
fi
52+
4653
if [ -z "$PR_BODY" ]; then
4754
echo "::error::PR body is empty. Every PR must link an issue or discussion."
4855
echo "Use 'Closes #<number>', 'Fixes #<number>', 'Relates to #<number>', or include a discussion URL."
@@ -185,7 +192,7 @@ jobs:
185192
token: ${{ secrets.GITHUB_TOKEN }}
186193

187194
- name: Install uv
188-
uses: astral-sh/setup-uv@v8.0.0
195+
uses: astral-sh/setup-uv@v8.1.0
189196
with:
190197
python-version: ${{ matrix.python-version }}
191198
enable-cache: true
@@ -218,7 +225,7 @@ jobs:
218225
token: ${{ secrets.GITHUB_TOKEN }}
219226

220227
- name: Install uv
221-
uses: astral-sh/setup-uv@v8.0.0
228+
uses: astral-sh/setup-uv@v8.1.0
222229
with:
223230
python-version: "3.13"
224231
enable-cache: true
@@ -234,7 +241,7 @@ jobs:
234241

235242
- name: Upload coverage report
236243
if: always()
237-
uses: actions/upload-artifact@v4
244+
uses: actions/upload-artifact@v7
238245
with:
239246
name: coverage-report
240247
path: coverage.xml
@@ -254,7 +261,7 @@ jobs:
254261
token: ${{ secrets.GITHUB_TOKEN }}
255262

256263
- name: Install uv
257-
uses: astral-sh/setup-uv@v8.0.0
264+
uses: astral-sh/setup-uv@v8.1.0
258265
with:
259266
enable-cache: true
260267

@@ -281,7 +288,7 @@ jobs:
281288
with:
282289
ref: ${{ github.head_ref }}
283290
fetch-depth: 0
284-
- uses: astral-sh/setup-uv@v8.0.0
291+
- uses: astral-sh/setup-uv@v8.1.0
285292
with:
286293
enable-cache: true
287294

@@ -315,6 +322,7 @@ jobs:
315322
if: >-
316323
needs.determine-changes.outputs.e2e == 'true'
317324
&& github.event_name != 'push'
325+
&& github.actor != 'dependabot[bot]'
318326
strategy:
319327
fail-fast: false
320328
matrix:
@@ -374,7 +382,7 @@ jobs:
374382
pr_state: ${{ github.event.pull_request.state }}
375383

376384
- name: Install uv
377-
uses: astral-sh/setup-uv@v8.0.0
385+
uses: astral-sh/setup-uv@v8.1.0
378386
with:
379387
python-version: 3.11.6
380388
enable-cache: true
@@ -418,6 +426,7 @@ jobs:
418426
if: >-
419427
needs.determine-changes.outputs.e2e_js == 'true'
420428
&& github.event_name != 'push'
429+
&& github.actor != 'dependabot[bot]'
421430
strategy:
422431
fail-fast: false
423432
matrix:
@@ -430,10 +439,12 @@ jobs:
430439
script: end_to_end_test_js_esm_async.py
431440
js_project_dir: code_to_optimize/js/code_to_optimize_js_esm
432441
expected_improvement: 10
442+
allow_failure: true
433443
- name: js-ts-class
434444
script: end_to_end_test_js_ts_class.py
435445
js_project_dir: code_to_optimize/js/code_to_optimize_ts
436446
expected_improvement: 30
447+
continue-on-error: ${{ matrix.allow_failure || false }}
437448
environment: ${{ ((github.event_name == 'workflow_dispatch' && github.actor != 'misrasaurabh1' && github.actor != 'KRRT7') || (contains(toJSON(github.event.pull_request.files.*.filename), '.github/workflows/') && github.event.pull_request.user.login != 'misrasaurabh1' && github.event.pull_request.user.login != 'KRRT7')) && 'external-trusted-contributors' || '' }}
438449
runs-on: ubuntu-latest
439450
env:
@@ -482,7 +493,7 @@ jobs:
482493
npm install
483494
484495
- name: Install uv
485-
uses: astral-sh/setup-uv@v8.0.0
496+
uses: astral-sh/setup-uv@v8.1.0
486497
with:
487498
python-version: 3.11.6
488499
enable-cache: true
@@ -499,6 +510,7 @@ jobs:
499510
if: >-
500511
needs.determine-changes.outputs.e2e_java == 'true'
501512
&& github.event_name != 'push'
513+
&& github.actor != 'dependabot[bot]'
502514
strategy:
503515
fail-fast: false
504516
matrix:
@@ -551,7 +563,7 @@ jobs:
551563
cache: maven
552564

553565
- name: Install uv
554-
uses: astral-sh/setup-uv@v8.0.0
566+
uses: astral-sh/setup-uv@v8.1.0
555567
with:
556568
python-version: 3.11.6
557569
enable-cache: true
@@ -561,7 +573,7 @@ jobs:
561573

562574
- name: Cache codeflash-runtime JAR
563575
id: runtime-jar-cache
564-
uses: actions/cache@v4
576+
uses: actions/cache@v5
565577
with:
566578
path: ~/.m2/repository/io/codeflash
567579
key: codeflash-runtime-${{ hashFiles('codeflash-java-runtime/pom.xml', 'codeflash-java-runtime/src/**') }}

.github/workflows/claude.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
ref: ${{ github.event.pull_request.head.ref || github.ref }}
5858

5959
- name: Install uv
60-
uses: astral-sh/setup-uv@v8.0.0
60+
uses: astral-sh/setup-uv@v8.1.0
6161
with:
6262
enable-cache: true
6363

@@ -319,7 +319,7 @@ jobs:
319319
ref: ${{ steps.pr-ref.outputs.ref }}
320320

321321
- name: Install uv
322-
uses: astral-sh/setup-uv@v8.0.0
322+
uses: astral-sh/setup-uv@v8.1.0
323323
with:
324324
enable-cache: true
325325

.github/workflows/codeflash-optimize.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
fetch-depth: 0
3232

3333
- name: 🐍 Set up Python 3.11 for CLI
34-
uses: astral-sh/setup-uv@v8.0.0
34+
uses: astral-sh/setup-uv@v8.1.0
3535
with:
3636
python-version: 3.11.6
3737
enable-cache: true

.github/workflows/java-e2e.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
cache: maven
4242

4343
- name: Install uv
44-
uses: astral-sh/setup-uv@v8.0.0
44+
uses: astral-sh/setup-uv@v8.1.0
4545
with:
4646
python-version: 3.11.6
4747
enable-cache: true
@@ -51,7 +51,7 @@ jobs:
5151

5252
- name: Cache codeflash-runtime JAR
5353
id: runtime-jar-cache
54-
uses: actions/cache@v4
54+
uses: actions/cache@v5
5555
with:
5656
path: ~/.m2/repository/io/codeflash
5757
key: codeflash-runtime-${{ hashFiles('codeflash-java-runtime/pom.xml', 'codeflash-java-runtime/src/**') }}

.github/workflows/label-workflow-changes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
pull-requests: write
1414
steps:
1515
- name: Label PR with workflow changes
16-
uses: actions/github-script@v7
16+
uses: actions/github-script@v9
1717
with:
1818
script: |
1919
const labelName = 'workflow-modified';

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ jobs:
110110
111111
- name: Install uv
112112
if: steps.should_run.outputs.run == 'true' && steps.check_tag.outputs.exists == 'false'
113-
uses: astral-sh/setup-uv@v8.0.0
113+
uses: astral-sh/setup-uv@v8.1.0
114114
with:
115115
enable-cache: true
116116

@@ -124,7 +124,7 @@ jobs:
124124

125125
- name: Create GitHub Release
126126
if: steps.should_run.outputs.run == 'true' && steps.check_tag.outputs.exists == 'false'
127-
uses: softprops/action-gh-release@v2
127+
uses: softprops/action-gh-release@v3
128128
with:
129129
tag_name: ${{ steps.extract_version.outputs.tag }}
130130
name: ${{ matrix.release_name_prefix }} ${{ steps.extract_version.outputs.tag }}

0 commit comments

Comments
 (0)