Skip to content
Draft
26 changes: 19 additions & 7 deletions src/content/docs/graphql/guides/upgrade.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ Each option is a `dotnet new` option:
| `authentication` | `--include-auth`, with `--authority` and `--audience` from inside it. Leave all three off when it's `null` |

<Aside type="note" title="No .lmca.json?">
Your solution came from the December 2026 release or earlier. Releases come once a month, so the date of your first commit tells you which one: `git log --reverse --format=%cs | head -1`, then pick the last release on or before that date from the [releases page](https://github.com/LeanMeanCleanApps/CleanGraphQLApi/releases). The options are in the solution too:
Your solution came from the December 2026 release or earlier. Releases come once a month, so the date of your first commit tells you which one: `git log --max-parents=0 --format=%cs`, then pick the last release on or before that date from the [releases page](https://github.com/LeanMeanCleanApps/CleanGraphQLApi/releases). The options are in the solution too:

- **Name**: your `.slnx` file's name, without the extension.
- **Author name**: `<Authors>` in `src/Presentation/Presentation.csproj`. Skip it if that still says Stephen Walsh, and thanks for the credit.
- **Authentication**: you used `--include-auth` if `src/Presentation/Authentication` exists. The authority and audience are under `Authentication` in `src/Presentation/appsettings.json`, as they were when you started.

The tag on the releases page, such as `2026.12.02.374`, works as the version below. NuGet shows the same version as `2026.12.2.374`.
The tag on the releases page, such as `2026.12.02.245`, works as the version below. NuGet shows the same version as `2026.12.2.245`.
</Aside>

## Upgrade
Expand All @@ -61,7 +61,7 @@ The commands run from your solution's folder and put their work in an `upgrade`
1. Generate a copy of the release you started from:

```bash
dotnet new install CleanGraphQLApi.Template::2027.01.01.412
dotnet new install CleanGraphQLApi.Template@2027.01.01.412
dotnet new cleangraphqlapi --name WorksOnMyMachine.Movies --authorName "Jane Citizen" --include-auth --authority https://login.example.com --output ../upgrade/old --no-restore
```

Expand All @@ -75,7 +75,7 @@ The commands run from your solution's folder and put their work in an `upgrade`
3. Diff the two copies into a patch:

```bash
(cd ../upgrade && git diff --no-index --binary old new > template.patch)
git -C ../upgrade diff --no-index --binary --output=template.patch old new
```

An empty patch means the template hasn't changed anything that touches your solution. You're up to date; go and have a coffee.
Expand All @@ -90,7 +90,7 @@ The commands run from your solution's folder and put their work in an `upgrade`

Files you never touched just take the new version. Files you changed get merged with the template's changes. Where you both changed the same lines, git leaves conflict markers, exactly like a merge, and `git status` lists the file as both modified. Sort each one out, then `git add` it.

Git says "Falling back to direct application" for files the template added. That's fine; there was nothing to merge them with. The patch updates `.lmca.json` too, so the next upgrade starts from here.
Git says "Falling back to direct application" for files the template added or removed. That's fine; there was nothing to merge them with. The patch updates `.lmca.json` too, so the next upgrade starts from here.

5. Build, test and check the format, as CI would:

Expand All @@ -104,9 +104,10 @@ The commands run from your solution's folder and put their work in an `upgrade`

```bash
git commit -m "Upgrade to template release 2027.02.01.430"
rm -rf ../upgrade
```

Then delete the `upgrade` folder. It's done its job.

</Steps>

<Aside type="caution" title="Repository lacks the necessary blob">
Expand All @@ -121,6 +122,8 @@ The patch is yours to edit. Skip whole folders with `--exclude`, or take only so
git apply --3way -p2 --exclude='.agents/*' ../upgrade/template.patch
```

One catch: the patch always moves `.lmca.json` to the new release, so the next upgrade starts from there and won't offer you the parts you skipped. If you might want them later, keep the patch somewhere, or add `--exclude='.lmca.json'` and stay on the old release until you've taken the lot.

Or open `template.patch` and read it first. Anything in `src/Application` and `src/Infrastructure` is the same in all five templates, so a fix there is usually worth having. Anything in `src/Presentation` is the API itself, where your own changes most likely live.

Coding agents are good at this. Ask yours to apply the patch, resolve the conflicts so it keeps your changes and the template's, and run the checks. It works as Jacques, so it already knows those checks from `AGENTS.md`.
Expand All @@ -129,6 +132,15 @@ Coding agents are good at this. Ask yours to apply the patch, resolve the confli

Each release's notes on GitHub link here. Each release gets a few lines below on what's worth bringing in and anything that needs care, newest first.

### 2026.12.02.374
### 2027.01.01

{/* DRAFT: finish once the January security changes merge, then set the heading to the real release number after the 1st. */}

- **`.lmca.json`.** New solutions record the release and options that made them. The patch adds it to yours, so the next upgrade can skip the detective work.
- **Packages.** The Microsoft.Extensions testing and logging packages go back to the .NET 10 line, and Serilog and the template tooling stay on it too, so nothing in `Directory.Packages.props` runs a major ahead of the rest. Worth taking as a whole. If you've bumped any of them yourself, expect a conflict and keep whichever version you meant.
- **Coding agents.** Jacques moves out of `.agents/agents/jacques.md` and into `AGENTS.md`, planning and handoffs move into a new `planning-and-handoff` skill, and the skill examples match the code again. If you've edited `AGENTS.md`, this is where conflicts turn up. Keep your own **Where we track work** line.
- **Security.** To be written once the safe-by-default changes merge.

### 2026.12.02.245

The release we launched with. Solutions made from it don't have a `.lmca.json`; see [Find your release and options](#find-your-release-and-options).
1 change: 1 addition & 0 deletions src/content/docs/graphql/reference/project-structure.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ import { FileTree } from '@astrojs/starlight/components';
- docker-compose.yml the API, an OpenTelemetry Collector and the Aspire dashboard
- otel-collector.yaml where the collector sends logs, traces and metrics
- global.json
- .lmca.json the template release and options that made the solution
- NuGet.config
</FileTree>

Expand Down
26 changes: 19 additions & 7 deletions src/content/docs/lambda/guides/upgrade.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ Each option is a `dotnet new` option:
| `authorName` | `--authorName` |

<Aside type="note" title="No .lmca.json?">
Your solution came from the December 2026 release or earlier. Releases come once a month, so the date of your first commit tells you which one: `git log --reverse --format=%cs | head -1`, then pick the last release on or before that date from the [releases page](https://github.com/LeanMeanCleanApps/CleanLambdaFunction/releases). The options are in the solution too:
Your solution came from the December 2026 release or earlier. Releases come once a month, so the date of your first commit tells you which one: `git log --max-parents=0 --format=%cs`, then pick the last release on or before that date from the [releases page](https://github.com/LeanMeanCleanApps/CleanLambdaFunction/releases). The options are in the solution too:

- **Name**: your `.slnx` file's name, without the extension.
- **Author name**: `<Authors>` in `src/Presentation/Presentation.csproj`. Skip it if that still says Stephen Walsh, and thanks for the credit.

The tag on the releases page, such as `2026.12.02.374`, works as the version below. NuGet shows the same version as `2026.12.2.374`.
The tag on the releases page, such as `2026.12.02.208`, works as the version below. NuGet shows the same version as `2026.12.2.208`.
</Aside>

## Upgrade
Expand All @@ -55,7 +55,7 @@ The commands run from your solution's folder and put their work in an `upgrade`
1. Generate a copy of the release you started from:

```bash
dotnet new install CleanLambdaFunction.Template::2027.01.01.412
dotnet new install CleanLambdaFunction.Template@2027.01.01.412
dotnet new cleanlambdafunction --name WorksOnMyMachine.Reviews --authorName "Jane Citizen" --output ../upgrade/old --no-restore
```

Expand All @@ -69,7 +69,7 @@ The commands run from your solution's folder and put their work in an `upgrade`
3. Diff the two copies into a patch:

```bash
(cd ../upgrade && git diff --no-index --binary old new > template.patch)
git -C ../upgrade diff --no-index --binary --output=template.patch old new
```

An empty patch means the template hasn't changed anything that touches your solution. You're up to date; go and have a coffee.
Expand All @@ -84,7 +84,7 @@ The commands run from your solution's folder and put their work in an `upgrade`

Files you never touched just take the new version. Files you changed get merged with the template's changes. Where you both changed the same lines, git leaves conflict markers, exactly like a merge, and `git status` lists the file as both modified. Sort each one out, then `git add` it.

Git says "Falling back to direct application" for files the template added. That's fine; there was nothing to merge them with. The patch updates `.lmca.json` too, so the next upgrade starts from here.
Git says "Falling back to direct application" for files the template added or removed. That's fine; there was nothing to merge them with. The patch updates `.lmca.json` too, so the next upgrade starts from here.

5. Build, test and check the format, as CI would:

Expand All @@ -98,9 +98,10 @@ The commands run from your solution's folder and put their work in an `upgrade`

```bash
git commit -m "Upgrade to template release 2027.02.01.430"
rm -rf ../upgrade
```

Then delete the `upgrade` folder. It's done its job.

</Steps>

<Aside type="caution" title="Repository lacks the necessary blob">
Expand All @@ -115,6 +116,8 @@ The patch is yours to edit. Skip whole folders with `--exclude`, or take only so
git apply --3way -p2 --exclude='.agents/*' ../upgrade/template.patch
```

One catch: the patch always moves `.lmca.json` to the new release, so the next upgrade starts from there and won't offer you the parts you skipped. If you might want them later, keep the patch somewhere, or add `--exclude='.lmca.json'` and stay on the old release until you've taken the lot.

Or open `template.patch` and read it first. Anything in `src/Application` and `src/Infrastructure` is the same in all five templates, so a fix there is usually worth having. Anything in `src/Presentation` is the function itself, where your own changes most likely live.

Coding agents are good at this. Ask yours to apply the patch, resolve the conflicts so it keeps your changes and the template's, and run the checks. It works as Jacques, so it already knows those checks from `AGENTS.md`.
Expand All @@ -123,6 +126,15 @@ Coding agents are good at this. Ask yours to apply the patch, resolve the confli

Each release's notes on GitHub link here. Each release gets a few lines below on what's worth bringing in and anything that needs care, newest first.

### 2026.12.02.374
### 2027.01.01

{/* DRAFT: finish once the January security changes merge, then set the heading to the real release number after the 1st. */}

- **`.lmca.json`.** New solutions record the release and options that made them. The patch adds it to yours, so the next upgrade can skip the detective work.
- **Packages.** The Microsoft.Extensions testing and logging packages go back to the .NET 10 line, and Serilog and the template tooling stay on it too, so nothing in `Directory.Packages.props` runs a major ahead of the rest. Worth taking as a whole. If you've bumped any of them yourself, expect a conflict and keep whichever version you meant.
- **Coding agents.** Jacques moves out of `.agents/agents/jacques.md` and into `AGENTS.md`, planning and handoffs move into a new `planning-and-handoff` skill, and the skill examples match the code again. If you've edited `AGENTS.md`, this is where conflicts turn up. Keep your own **Where we track work** line.
- **Security.** To be written once the safe-by-default changes merge.

### 2026.12.02.208

The release we launched with. Solutions made from it don't have a `.lmca.json`; see [Find your release and options](#find-your-release-and-options).
1 change: 1 addition & 0 deletions src/content/docs/lambda/reference/project-structure.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ import { FileTree } from '@astrojs/starlight/components';
- docker-compose.yml the function, an OpenTelemetry Collector and the Aspire dashboard
- otel-collector.yaml where the collector sends logs, traces and metrics
- global.json
- .lmca.json the template release and options that made the solution
- NuGet.config
</FileTree>

Expand Down
26 changes: 19 additions & 7 deletions src/content/docs/mcp/guides/upgrade.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ Each option is a `dotnet new` option:
| `authentication` | `--include-auth`, with `--authority` and `--audience` from inside it. Leave all three off when it's `null` |

<Aside type="note" title="No .lmca.json?">
Your solution came from the December 2026 release or earlier. Releases come once a month, so the date of your first commit tells you which one: `git log --reverse --format=%cs | head -1`, then pick the last release on or before that date from the [releases page](https://github.com/LeanMeanCleanApps/CleanModelContextProtocol/releases). The options are in the solution too:
Your solution came from the December 2026 release or earlier. Releases come once a month, so the date of your first commit tells you which one: `git log --max-parents=0 --format=%cs`, then pick the last release on or before that date from the [releases page](https://github.com/LeanMeanCleanApps/CleanModelContextProtocol/releases). The options are in the solution too:

- **Name**: your `.slnx` file's name, without the extension.
- **Author name**: `<Authors>` in `src/Presentation/Presentation.csproj`. Skip it if that still says Stephen Walsh, and thanks for the credit.
- **Authentication**: you used `--include-auth` if `src/Presentation/Authentication` exists. The authority and audience are under `Authentication` in `src/Presentation/appsettings.json`, as they were when you started.

The tag on the releases page, such as `2026.12.02.374`, works as the version below. NuGet shows the same version as `2026.12.2.374`.
The tag on the releases page, such as `2026.12.02.258`, works as the version below. NuGet shows the same version as `2026.12.2.258`.
</Aside>

## Upgrade
Expand All @@ -61,7 +61,7 @@ The commands run from your solution's folder and put their work in an `upgrade`
1. Generate a copy of the release you started from:

```bash
dotnet new install CleanModelContextProtocol.Template::2027.01.01.412
dotnet new install CleanModelContextProtocol.Template@2027.01.01.412
dotnet new cleanmodelcontextprotocol --name WorksOnMyMachine.Movies --authorName "Jane Citizen" --include-auth --authority https://login.example.com --output ../upgrade/old --no-restore
```

Expand All @@ -75,7 +75,7 @@ The commands run from your solution's folder and put their work in an `upgrade`
3. Diff the two copies into a patch:

```bash
(cd ../upgrade && git diff --no-index --binary old new > template.patch)
git -C ../upgrade diff --no-index --binary --output=template.patch old new
```

An empty patch means the template hasn't changed anything that touches your solution. You're up to date; go and have a coffee.
Expand All @@ -90,7 +90,7 @@ The commands run from your solution's folder and put their work in an `upgrade`

Files you never touched just take the new version. Files you changed get merged with the template's changes. Where you both changed the same lines, git leaves conflict markers, exactly like a merge, and `git status` lists the file as both modified. Sort each one out, then `git add` it.

Git says "Falling back to direct application" for files the template added. That's fine; there was nothing to merge them with. The patch updates `.lmca.json` too, so the next upgrade starts from here.
Git says "Falling back to direct application" for files the template added or removed. That's fine; there was nothing to merge them with. The patch updates `.lmca.json` too, so the next upgrade starts from here.

5. Build, test and check the format, as CI would:

Expand All @@ -104,9 +104,10 @@ The commands run from your solution's folder and put their work in an `upgrade`

```bash
git commit -m "Upgrade to template release 2027.02.01.430"
rm -rf ../upgrade
```

Then delete the `upgrade` folder. It's done its job.

</Steps>

<Aside type="caution" title="Repository lacks the necessary blob">
Expand All @@ -121,6 +122,8 @@ The patch is yours to edit. Skip whole folders with `--exclude`, or take only so
git apply --3way -p2 --exclude='.agents/*' ../upgrade/template.patch
```

One catch: the patch always moves `.lmca.json` to the new release, so the next upgrade starts from there and won't offer you the parts you skipped. If you might want them later, keep the patch somewhere, or add `--exclude='.lmca.json'` and stay on the old release until you've taken the lot.

Or open `template.patch` and read it first. Anything in `src/Application` and `src/Infrastructure` is the same in all five templates, so a fix there is usually worth having. Anything in `src/Presentation` is the server itself, where your own changes most likely live.

Coding agents are good at this. Ask yours to apply the patch, resolve the conflicts so it keeps your changes and the template's, and run the checks. It works as Jacques, so it already knows those checks from `AGENTS.md`.
Expand All @@ -129,6 +132,15 @@ Coding agents are good at this. Ask yours to apply the patch, resolve the confli

Each release's notes on GitHub link here. Each release gets a few lines below on what's worth bringing in and anything that needs care, newest first.

### 2026.12.02.374
### 2027.01.01

{/* DRAFT: finish once the January security changes merge, then set the heading to the real release number after the 1st. */}

- **`.lmca.json`.** New solutions record the release and options that made them. The patch adds it to yours, so the next upgrade can skip the detective work.
- **Packages.** The Microsoft.Extensions testing and logging packages go back to the .NET 10 line, and Serilog and the template tooling stay on it too, so nothing in `Directory.Packages.props` runs a major ahead of the rest. Worth taking as a whole. If you've bumped any of them yourself, expect a conflict and keep whichever version you meant.
- **Coding agents.** Jacques moves out of `.agents/agents/jacques.md` and into `AGENTS.md`, planning and handoffs move into a new `planning-and-handoff` skill, and the skill examples match the code again. If you've edited `AGENTS.md`, this is where conflicts turn up. Keep your own **Where we track work** line.
- **Security.** To be written once the safe-by-default changes merge.

### 2026.12.02.258

The release we launched with. Solutions made from it don't have a `.lmca.json`; see [Find your release and options](#find-your-release-and-options).
1 change: 1 addition & 0 deletions src/content/docs/mcp/reference/project-structure.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ import { FileTree } from '@astrojs/starlight/components';
- docker-compose.yml the server, an OpenTelemetry Collector and the Aspire dashboard
- otel-collector.yaml where the collector sends logs, traces and metrics
- global.json
- .lmca.json the template release and options that made the solution
- NuGet.config
</FileTree>

Expand Down
Loading