Skip to content

Commit 42da663

Browse files
authored
Merge branch 'main' into pr-reviewer-iterative-workflow
2 parents ba8a521 + 5447648 commit 42da663

279 files changed

Lines changed: 3658 additions & 1393 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.claude/agents/build-validator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Validate that the project builds correctly across all targets.
3434

3535
5. **JS build**
3636
```bash
37-
cd crates/js/lib && node build-all.mjs
37+
cd crates/trusted-server-js/lib && node build-all.mjs
3838
```
3939

4040
## Output

.claude/agents/pr-creator.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ Before creating the PR, verify the branch is healthy:
2323
cargo fmt --all -- --check
2424
cargo clippy --workspace --all-targets --all-features -- -D warnings
2525
cargo test --workspace
26-
cd crates/js/lib && npx vitest run
27-
cd crates/js/lib && npm run format
26+
cd crates/trusted-server-js/lib && npx vitest run
27+
cd crates/trusted-server-js/lib && npm run format
2828
cd docs && npm run format
2929
```
3030

.claude/agents/pr-reviewer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ For each changed file, evaluate:
494494
- Are edge cases covered (empty input, max values, error paths)?
495495
- If config-derived regex/pattern compilation changed: are invalid enabled-config startup failures and explicit `enabled = false` bypass cases both covered?
496496
- Rust tests: `cargo test --workspace`
497-
- JS tests: `npx vitest run` in `crates/js/lib/`
497+
- JS tests: `npx vitest run` in `crates/trusted-server-js/lib/`
498498

499499
### 5. Classify findings
500500

.claude/agents/repo-explorer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This is a Rust workspace with three crates:
1313

1414
- `crates/trusted-server-core/` — core library (integrations, HTML processing, Edge Cookies, GDPR)
1515
- `crates/trusted-server-adapter-fastly/` — Fastly Compute entry point
16-
- `crates/js/` — TypeScript/JS build pipeline (per-integration IIFE bundles)
16+
- `crates/trusted-server-js/` — TypeScript/JS build pipeline (per-integration IIFE bundles)
1717

1818
Target: `wasm32-wasip1` (Fastly Compute)
1919

.claude/agents/verify-app.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ cargo test --workspace
3131
### 4. JS Tests
3232

3333
```bash
34-
cd crates/js/lib && npx vitest run
34+
cd crates/trusted-server-js/lib && npx vitest run
3535
```
3636

3737
### 5. JS Format
3838

3939
```bash
40-
cd crates/js/lib && npm run format
40+
cd crates/trusted-server-js/lib && npm run format
4141
```
4242

4343
### 6. Docs Format

.claude/commands/check-ci.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ Run all CI checks locally, in order. Stop and report if any step fails.
33
1. `cargo fmt --all -- --check`
44
2. `cargo clippy --workspace --all-targets --all-features -- -D warnings`
55
3. `cargo test --workspace`
6-
4. `cd crates/js/lib && npx vitest run`
7-
5. `cd crates/js/lib && npm run format`
6+
4. `cd crates/trusted-server-js/lib && npx vitest run`
7+
5. `cd crates/trusted-server-js/lib && npm run format`
88
6. `cd docs && npm run format`
99

1010
Report a summary of all results when done.

.claude/commands/test-all.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ cargo test --workspace
77
Then run JS tests:
88

99
```bash
10-
cd crates/js/lib && npx vitest run
10+
cd crates/trusted-server-js/lib && npx vitest run
1111
```
1212

1313
Report results for both. If any test fails, investigate and suggest a fix.

.claude/commands/test-crate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ cargo test -p $ARGUMENTS
1111
If $ARGUMENTS is "js" or "javascript", run:
1212

1313
```bash
14-
cd crates/js/lib && npx vitest run
14+
cd crates/trusted-server-js/lib && npx vitest run
1515
```
1616

1717
Report results and investigate any failures.

.claude/commands/verify.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Full verification: build, test, and lint the entire project.
55
3. `cargo fmt --all -- --check`
66
4. `cargo clippy --workspace --all-targets --all-features -- -D warnings`
77
5. `cargo test --workspace`
8-
6. `cd crates/js/lib && npx vitest run`
9-
7. `cd crates/js/lib && npm run format`
8+
6. `cd crates/trusted-server-js/lib && npx vitest run`
9+
7. `cd crates/trusted-server-js/lib && npm run format`
1010
8. `cd docs && npm run format`
1111

1212
Report results for each step. Stop and investigate if any step fails.

.github/actions/setup-integration-test-env/action.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ runs:
5050
if: ${{ inputs.install-viceroy == 'true' }}
5151
shell: bash
5252
# `.tool-versions` is the single source of truth for the Viceroy pin.
53-
# The pin matters because upstream Viceroy > v0.16.4 has bumped MSRV
54-
# beyond the rustc pin in `rust-toolchain.toml`.
5553
run: echo "viceroy-version=$(grep '^viceroy ' .tool-versions | awk '{print $2}')" >> "$GITHUB_OUTPUT"
5654

5755
- name: Set up Rust toolchain
@@ -72,7 +70,7 @@ runs:
7270
- name: Install Viceroy
7371
if: ${{ inputs.install-viceroy == 'true' && steps.cache-viceroy.outputs.cache-hit != 'true' }}
7472
shell: bash
75-
run: cargo install --git https://github.com/fastly/Viceroy --tag v${{ steps.viceroy-version.outputs.viceroy-version }} viceroy
73+
run: cargo install viceroy --version "${{ steps.viceroy-version.outputs.viceroy-version }}" --locked --force
7674

7775
- name: Build WASM binary
7876
if: ${{ inputs.build-wasm == 'true' }}
@@ -91,7 +89,7 @@ runs:
9189
shell: bash
9290
run: |
9391
docker build -t test-wordpress:latest \
94-
crates/integration-tests/fixtures/frameworks/wordpress/
92+
crates/trusted-server-integration-tests/fixtures/frameworks/wordpress/
9593
9694
- name: Build Next.js test container
9795
if: ${{ inputs.build-test-images == 'true' }}
@@ -100,4 +98,4 @@ runs:
10098
docker build \
10199
--build-arg NODE_VERSION=${{ steps.node-version.outputs.node-version }} \
102100
-t test-nextjs:latest \
103-
crates/integration-tests/fixtures/frameworks/nextjs/
101+
crates/trusted-server-integration-tests/fixtures/frameworks/nextjs/

0 commit comments

Comments
 (0)