-
Notifications
You must be signed in to change notification settings - Fork 2k
refactor(examples): per-story directory layout, self-verifying CI harness, and the start-here / capstone story set #2325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
0bfaf3f
chore(examples): collapse examples/{server,client} into one per-story…
felixweinberger a44f9d4
test(examples): self-verifying example-pair runner + CI job
felixweinberger e786e82
refactor(examples): move existing pairs into per-story directories
felixweinberger f2661d0
refactor(examples): rewrite the three HTTP hosting examples onto crea…
felixweinberger 7d91a18
feat(examples): add the six start-here / capstone stories
felixweinberger f9b0f95
feat(examples): paired clients for the remaining audited stories
felixweinberger efdbc54
docs: re-point guide snippets and example links at the per-story layout
felixweinberger 400c934
docs(examples): restore the subscriptions/listen story stacked on the…
felixweinberger 3126794
test(examples): run every story over the transport × era matrix it su…
felixweinberger bf7bdf2
chore(examples): per-story workspace packages; harness reads package.…
felixweinberger 7378eb7
feat(examples): oauth-client-credentials story (machine-to-machine, n…
felixweinberger 8996193
chore(changeset): drop stale examples-server changeset (package remov…
felixweinberger 8501d6d
fix(examples): legacy-routing 404 for unknown sid; drop dead doc cros…
felixweinberger fa0524d
refactor(examples): trim oauth/ to the browser auth-code flow; carve …
felixweinberger 6f24767
docs(examples): annotate runServerFromArgs / connectFromArgs at every…
felixweinberger 46241cb
chore(examples): finish the old-layout cleanup; fix SIGKILL backstop,…
felixweinberger 393bc07
docs(examples): consumer-facing elicitation/ story (both eras), READM…
felixweinberger be71bee
docs(examples): close review-1 M2-M9 + bot nits; in-repo OAuth-protec…
felixweinberger e9b7263
docs(examples): sessionful http/legacy harness; complete the transpor…
felixweinberger b09b320
docs(examples): un-exclude oauth/ via demo-AS autoConsent + headless …
felixweinberger 3a56996
docs(examples): fix sse-polling sessionful 404/400 routing; align REA…
felixweinberger 6e51b50
docs: update CLAUDE.md examples section to the per-story layout
felixweinberger 65ca0b1
docs(examples): make sampling/ dual-era via inputRequired.createMessa…
felixweinberger d0d3316
docs(examples): restore [!TYPE] alert markers (proseWrap: preserve fo…
felixweinberger a59063a
fix(examples): httpUrlFromArgs helper for HTTP-only story clients (in…
felixweinberger e17ffb7
fix(examples/oauth): align browser-client default URL with server's a…
felixweinberger 9ab402d
docs(examples): prose-vs-code sweep — align guide/example-README clai…
felixweinberger File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| name: Examples | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| - v2-2026-07-28 | ||
| pull_request: | ||
| workflow_dispatch: | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| # Builds the workspace + examples and e2e-runs every examples/<story>/ pair | ||
| # over every transport it supports. Each client.ts is a self-verifying test | ||
| # (asserts and exits non-zero on any mismatch). This is part of the per-PR | ||
| # gate basket — a red examples run blocks merge. | ||
| examples: | ||
| name: examples (build + e2e) | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
|
|
||
| - name: Install pnpm | ||
| uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0 | ||
| with: | ||
| run_install: false | ||
|
|
||
| - uses: actions/setup-node@v6 | ||
| with: | ||
| node-version: 24 | ||
| cache: pnpm | ||
| cache-dependency-path: pnpm-lock.yaml | ||
|
|
||
| - run: pnpm install | ||
|
|
||
| # The workspace packages the examples import resolve to built dists | ||
| # (the gap that killed an earlier examples smoke suite). | ||
| - run: pnpm run build:all | ||
|
|
||
| - name: Run all example pairs (transport × era) | ||
| run: pnpm tsx scripts/run-examples.ts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.