Skip to content

Commit 96582b7

Browse files
authored
fix: postprocess claude-token-optimizer lock file to use local awf build (#3300)
* Initial plan * fix: postprocess claude-token-optimizer lock file to use local awf build * fix: add local awf build steps to .md and recompile lock --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1 parent 7c9791a commit 96582b7

2 files changed

Lines changed: 75 additions & 27 deletions

File tree

.github/workflows/claude-token-optimizer.lock.yml

Lines changed: 62 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/claude-token-optimizer.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,19 @@ sandbox:
3434
version: v0.25.29
3535
strict: true
3636
steps:
37+
- name: Install awf dependencies
38+
run: npm ci
39+
- name: Build awf
40+
run: npm run build
41+
- name: Install awf binary (local)
42+
run: |
43+
WORKSPACE_PATH="${GITHUB_WORKSPACE:-$(pwd)}"
44+
NODE_BIN="$(command -v node)"
45+
sudo tee /usr/local/bin/awf > /dev/null <<EOF
46+
#!/bin/bash
47+
exec "${NODE_BIN}" "${WORKSPACE_PATH}/dist/cli.js" "\$@"
48+
EOF
49+
sudo chmod +x /usr/local/bin/awf
3750
- name: Download recent Claude workflow logs
3851
env:
3952
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)