Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
1018e71
Add web-app example
soareschen Jun 29, 2026
deee7f2
Update to latest CGP
soareschen Jun 29, 2026
064049e
Update `#[use_type]` separator
soareschen Jul 4, 2026
9024e1b
Update CGP version
soareschen Jul 4, 2026
ab80911
Migrate to modern idioms
soareschen Jul 4, 2026
fc48357
Improve idiom
soareschen Jul 4, 2026
f2c34a5
Use `#[use_type]` with type equality
soareschen Jul 4, 2026
5b99fd4
Modernize transfer example
soareschen Jul 6, 2026
93c495e
Add readme walkthrough for transfer example
soareschen Jul 6, 2026
50f54e5
Simplify use of `UserId`
soareschen Jul 16, 2026
a02e044
Minor edits
soareschen Jul 19, 2026
350d613
Add default_impl examples
soareschen Sep 14, 2026
21f68f4
Define new DefaultAppComponents separately
soareschen Sep 16, 2026
cb3619e
Modernize the expression, builder, and transfer crates
soareschen Sep 26, 2026
6731f4d
Fix the behavior defects in transfer, builder, and web-app
soareschen Sep 26, 2026
84ba3c0
Add TestApp and grouped extras to web-app, and check every context in…
soareschen Sep 26, 2026
0c633ad
Build against cgp main through a git patch
soareschen Sep 26, 2026
832dcc9
Write the README and revise the transfer walkthrough
soareschen Nov 7, 2026
2f595c8
Complete the crates' cargo metadata
soareschen Nov 7, 2026
2e18b0d
Document the example constructs
soareschen Nov 7, 2026
fba679e
Document the example constructs
soareschen Nov 8, 2026
d87200d
Run the workspace's build and test in CI
soareschen Nov 8, 2026
690911a
Add the tests badge
soareschen Nov 8, 2026
1ddd130
Import the CGP names the trimmed prelude leaves out
soareschen Nov 14, 2026
ba42d71
Import the handler names and `UseContext` the prelude dropped
soareschen Nov 14, 2026
852a645
Add AGENTS.md with the shared rules for agents
soareschen Nov 14, 2026
287b76e
Point to AGENTS.md from the README and to the site's record
soareschen Nov 14, 2026
ddd0db3
Write public-facing documents such as READMEs in natural style
soareschen Nov 15, 2026
edaf6fc
Make the point-first-writing skill optional in the agent rules
soareschen Nov 15, 2026
4f20a3d
Update the dependencies to their newest compatible versions
soareschen Nov 17, 2026
ee253a4
Take cgp 0.8.0 from crates.io
soareschen Nov 18, 2026
9f793e1
Tighten the README's local-build instructions
soareschen Nov 18, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Tests

on:
push:
pull_request: {}

env:
CARGO_INCREMENTAL: 0
CARGO_TERM_COLOR: always
RUST_BACKTRACE: short
CARGO_NET_RETRY: 10
RUSTUP_MAX_RETRIES: 10

# Cancel in-progress runs when a new commit is pushed to the same PR, branch, or tag.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

permissions:
contents: read

# To minimize supply-chain exposure this workflow uses only GitHub's own
# first-party actions. Each job runs a command the README's Building section
# lists, on the toolchain `rust-toolchain.toml` pins.
#
# The workspace patches `cgp` to the repository's `main` branch by git URL, and
# the lockfile pins the resolved commit, so the jobs fetch that commit and need
# network access.
jobs:
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- name: Install the pinned toolchain
run: rustup toolchain install
- name: Build the workspace
run: cargo build --workspace

test:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- name: Install the pinned toolchain
run: rustup toolchain install
- name: Test the workspace
run: cargo test --workspace
42 changes: 42 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# AGENTS.md: the CGP example crates

Follow these rules for every change to this repository. Read [README.md](README.md) for what the
crates show and how to build them, and the knowledge base's
[sibling-projects.md](https://github.com/contextgeneric/cgp-knowledge-base/blob/main/sibling-projects.md)
for the related repositories.

## Universal rules

These rules hold in every CGP repository. The
[knowledge base's AGENTS.md](https://github.com/contextgeneric/cgp-knowledge-base/blob/main/AGENTS.md)
holds their canonical wording: read it first, and change a rule there before updating this block:

- Learn CGP and its tools from the `/cgp` skill and the knowledge base; never restate them in this
file.
- Prefer the local sibling checkout when reading another project.
- Write a cross-project link as a GitHub URL on `main`.
- Name official release versions only, never a pre-release.
- Commit only when the user explicitly asks, on the current branch.
- Verify a claim against the source before writing it.
- Keep every view of the same truth in sync in the same change.
- Ask the user when a decision is ambiguous.
- Apply point-first writing to internal prose, and natural writing to public-facing documents
such as READMEs, using the optional `/point-first-writing` skill when it is available.

## Task guides

The knowledge base documents this project and the website explains it, so a change to what either
describes starts from the document that holds it. Read it before the task:

- **Changing code the knowledge base describes:** the project's section,
[projects/cgp-examples/](https://github.com/contextgeneric/cgp-knowledge-base/blob/main/projects/cgp-examples/README.md),
and the section's [writing guide](https://github.com/contextgeneric/cgp-knowledge-base/blob/main/projects/writing-guide.md).
- **Changing code a website page explains:** the record of the site's section on it,
[website/projects/cgp-examples.md](https://github.com/contextgeneric/cgp-knowledge-base/blob/main/website/projects/cgp-examples.md).

## Checks before committing

Every commit passes the checks CI runs:

- Run the build and test commands in [README.md](README.md#building) before committing;
[`.github/workflows/tests.yml`](.github/workflows/tests.yml) runs the same commands.
Loading
Loading