Skip to content

Commit 8219344

Browse files
Merge branch 'main' into cleanup/prospect-a
2 parents d1acaa8 + fc2c65a commit 8219344

127 files changed

Lines changed: 19972 additions & 4839 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/settings.json

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,32 @@
2222
"Bash(git branch:*)",
2323
"Bash(git diff:*)",
2424
"Bash(git log:*)",
25+
"Bash(git show:*)",
2526
"Bash(git status:*)",
27+
"Bash(gh pr view:*)",
28+
"Bash(gh pr list:*)",
29+
"Bash(gh pr diff:*)",
30+
"Bash(gh pr checks:*)",
31+
"Bash(gh issue view:*)",
32+
"Bash(gh issue list:*)",
33+
"Bash(gh run view:*)",
34+
"Bash(gh run list:*)",
35+
"Bash(gh repo view:*)",
2636
"mcp__plugin_chrome-devtools-mcp_chrome-devtools__new_page",
37+
"mcp__plugin_chrome-devtools-mcp_chrome-devtools__list_pages",
38+
"mcp__plugin_chrome-devtools-mcp_chrome-devtools__select_page",
39+
"mcp__plugin_chrome-devtools-mcp_chrome-devtools__navigate_page",
40+
"mcp__plugin_chrome-devtools-mcp_chrome-devtools__take_screenshot",
41+
"mcp__plugin_chrome-devtools-mcp_chrome-devtools__take_snapshot",
42+
"mcp__plugin_chrome-devtools-mcp_chrome-devtools__list_console_messages",
43+
"mcp__plugin_chrome-devtools-mcp_chrome-devtools__get_console_message",
44+
"mcp__plugin_chrome-devtools-mcp_chrome-devtools__list_network_requests",
45+
"mcp__plugin_chrome-devtools-mcp_chrome-devtools__get_network_request",
46+
"mcp__plugin_chrome-devtools-mcp_chrome-devtools__wait_for",
47+
"mcp__plugin_chrome-devtools-mcp_chrome-devtools__performance_start_trace",
2748
"mcp__plugin_chrome-devtools-mcp_chrome-devtools__performance_stop_trace",
28-
"mcp__plugin_chrome-devtools-mcp_chrome-devtools__evaluate_script",
49+
"mcp__plugin_chrome-devtools-mcp_chrome-devtools__performance_analyze_insight",
50+
"mcp__plugin_chrome-devtools-mcp_chrome-devtools__evaluate_script"
2951
]
3052
},
3153
"enabledPlugins": {

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ runs:
8080
env:
8181
TRUSTED_SERVER__PUBLISHER__ORIGIN_URL: http://127.0.0.1:${{ inputs.origin-port }}
8282
TRUSTED_SERVER__PUBLISHER__PROXY_SECRET: integration-test-proxy-secret
83-
TRUSTED_SERVER__EDGE_COOKIE__SECRET_KEY: integration-test-secret-key
83+
TRUSTED_SERVER__EC__PASSPHRASE: integration-test-ec-secret-padded-32
84+
TRUSTED_SERVER__EC__PARTNERS: >-
85+
[{"name":"Integration Test Partner","source_domain":"inttest.example.com","bidstream_enabled":true,"api_token":"integration-test-token-alpha-32-bytes-ok"},{"name":"Integration Test Partner 2","source_domain":"inttest2.example.com","bidstream_enabled":true,"api_token":"integration-test-token-bravo-32-bytes-ok"}]
8486
TRUSTED_SERVER__PROXY__CERTIFICATE_CHECK: "false"
8587
run: cargo build --package trusted-server-adapter-fastly --release --target wasm32-wasip1
8688

.github/workflows/test.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@ jobs:
5151
- name: Run tests
5252
run: cargo test --workspace
5353

54+
- name: Verify Fastly WASM release build
55+
env:
56+
TRUSTED_SERVER__PUBLISHER__ORIGIN_URL: http://127.0.0.1:8080
57+
TRUSTED_SERVER__PUBLISHER__PROXY_SECRET: integration-test-proxy-secret
58+
TRUSTED_SERVER__EC__PASSPHRASE: integration-test-ec-secret-padded-32
59+
TRUSTED_SERVER__PROXY__CERTIFICATE_CHECK: "false"
60+
run: cargo build --package trusted-server-adapter-fastly --release --target wasm32-wasip1
61+
5462
test-typescript:
5563
name: vitest
5664
runs-on: ubuntu-latest

CLAUDE.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,14 @@ impl core::error::Error for MyError {}
209209
- Format messages with present-tense verbs.
210210
- Use `log-fastly` as the backend for Fastly Compute.
211211

212+
## Other guidelines
213+
214+
- Use only example or fictional information in comments, tests, docs, examples,
215+
and similar non-runtime materials. (eg. for urls use: example.com domains only)
216+
- Do not write or commit real domains, customer names, credentials,
217+
configuration values, or other potentially sensitive real-world information in
218+
comments, tests, docs, or examples.
219+
212220
---
213221

214222
## Git Commit Conventions
@@ -366,7 +374,7 @@ both runtime behavior and build/tooling changes.
366374
| `crates/trusted-server-core/src/tsjs.rs` | Script tag generation with module IDs |
367375
| `crates/trusted-server-core/src/html_processor.rs` | Injects `<script>` at `<head>` start |
368376
| `crates/trusted-server-core/src/publisher.rs` | `/static/tsjs=` handler, concatenates modules |
369-
| `crates/trusted-server-core/src/edge_cookie.rs` | Edge Cookie (EC) ID generation |
377+
| `crates/trusted-server-core/src/ec/` | EC identity subsystem (generation, consent, cookies) |
370378
| `crates/trusted-server-core/src/cookies.rs` | Cookie handling |
371379
| `crates/trusted-server-core/src/consent/mod.rs` | GDPR and broader consent management |
372380
| `crates/trusted-server-core/src/http_util.rs` | HTTP abstractions and request utilities |
@@ -382,6 +390,7 @@ both runtime behavior and build/tooling changes.
382390
- Do not use `unwrap()` in production code — use `expect("should ...")`.
383391
- Do not use thiserror — use `derive_more::Display` + `impl Error`.
384392
- Do not use wildcard imports (except `use super::*` in test modules).
385-
- Do not commit `.env` files or secrets.
393+
- Do not commit `.env` files, secrets, or potentially sensitive real-world
394+
information in comments, tests, docs, examples, or configuration files.
386395
- Do not make large refactors without approval.
387396
- Always run tests and linting before committing.

0 commit comments

Comments
 (0)