@cratis/pi 7.151.0 → 7.151.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -103,6 +103,13 @@ capacity numbers into workflows or guidance.
103
103
  - **Never** route `pull_request`-triggered jobs of a *public* repository to self-hosted
104
104
  runners — that hands code execution on our infrastructure to any fork.
105
105
 
106
+ ## Arc proxies
107
+
108
+ - Workflows never generate Arc TypeScript proxies; the client commits them. Every `dotnet
109
+ build`/`publish` of an Arc project passes `-p:CratisProxiesOutputPath=` (empty, Arc's off
110
+ switch; `DisableProxyGenerator` is repository-defined, not Arc's). See the
111
+ **cratis-arc-command** proxy-generation reference.
112
+
106
113
  ## Automation that writes back
107
114
 
108
115
  - A bot that pushes to a branch must **retry with `git pull --rebase`** — the branch
@@ -841,12 +841,16 @@ source root is not `Source/` re-scopes the `paths` globs there too.
841
841
 
842
842
  **One property gates the proxy generator.** The generator's MSBuild target is
843
843
  `Condition="'$(CratisProxiesOutputPath)' != ''"`, so clearing that property with
844
- `-p:CratisProxiesOutputPath=` is the *only* way to make it no-op. There is no
845
- `DisableProxyGenerator` property — MSBuild silently accepts unknown `-p:` names, so passing one
846
- looks like it works and changes nothing. A consuming repository's build workflow should split the
847
- two configurations the way the shipped gates do: Release clears the path, Debug does not, because
848
- `general.md` makes the Debug build the canonical trigger for regenerating the TypeScript proxies
849
- the frontend phase depends on.
844
+ `-p:CratisProxiesOutputPath=` is Arc's off switch. `DisableProxyGenerator` is not an Arc
845
+ property; it works only where a repository defines it — MSBuild silently accepts unknown `-p:`
846
+ names, so passing it elsewhere looks like it works and changes nothing. Proxies are generated and
847
+ committed by the client, never in CI, so CI builds always clear the path.
848
+
849
+ The Debug/Release split applies to the shipped client-side local gates only: Release clears the
850
+ path, and the committing client's Debug gate does not, because `general.md` makes the Debug build
851
+ the canonical trigger for regenerating the TypeScript proxies the frontend phase depends on, and
852
+ the client commits the result. A consuming repository's CI never copies the Debug proxy step; it
853
+ passes `-p:CratisProxiesOutputPath=` in every configuration.
850
854
 
851
855
  ## Unattended runs
852
856
 
@@ -69,11 +69,13 @@
69
69
  "Commands are pinned to .cratis/ai/rules/general.md 'Quality Gates' and .cratis/ai/hooks/agent-stop.md.",
70
70
  "Note the Release build passes -p:CratisProxiesOutputPath= per general.md so the proxy",
71
71
  "generator does not re-run and touch already-correct generated files. That property is the",
72
- "only gate: the generator's target is Condition=\"'$(CratisProxiesOutputPath)' != ''\", and",
73
- "there is no DisableProxyGenerator property \u2014 MSBuild accepts unknown -p: names silently,",
74
- "so passing one looks effective and does nothing. The Debug gate deliberately omits the",
75
- "override because general.md makes Debug the canonical proxy-regeneration trigger. A",
76
- "consuming repository's own CI should split Debug and Release the same way."
72
+ "Arc off switch: the generator's target is Condition=\"'$(CratisProxiesOutputPath)' != ''\".",
73
+ "DisableProxyGenerator is not an Arc property, only repository-defined \u2014 MSBuild accepts",
74
+ "unknown -p: names silently, so passing it elsewhere looks effective and does nothing.",
75
+ "The Debug/Release split is for these client-side local hooks only: the committing client's",
76
+ "Debug gate omits the override because general.md makes Debug the canonical proxy-regeneration",
77
+ "trigger, and the client commits the result. CI never copies that Debug proxy step: it passes",
78
+ "-p:CratisProxiesOutputPath= in every configuration."
77
79
  ],
78
80
  "enabled": true,
79
81
  "failFast": true,
@@ -102,6 +102,13 @@ capacity numbers into workflows or guidance.
102
102
  - **Never** route `pull_request`-triggered jobs of a *public* repository to self-hosted
103
103
  runners — that hands code execution on our infrastructure to any fork.
104
104
 
105
+ ## Arc proxies
106
+
107
+ - Workflows never generate Arc TypeScript proxies; the client commits them. Every `dotnet
108
+ build`/`publish` of an Arc project passes `-p:CratisProxiesOutputPath=` (empty, Arc's off
109
+ switch; `DisableProxyGenerator` is repository-defined, not Arc's). See the
110
+ **cratis-arc-command** proxy-generation reference.
111
+
105
112
  ## Automation that writes back
106
113
 
107
114
  - A bot that pushes to a branch must **retry with `git pull --rebase`** — the branch
@@ -102,13 +102,20 @@ On the frontend, the generated route already starts with the API prefix.
102
102
 
103
103
  ## Skipping generation
104
104
 
105
- The package has no `DisableProxyGenerator` property. MSBuild accepts unknown
106
- `-p:` names silently, so passing it looks effective and does nothing. The only
107
- gate is `CratisProxiesOutputPath`: leave it empty (for a build, pass
108
- `-p:CratisProxiesOutputPath=`) and the `CratisProxyGenerator` target does not
109
- run. A repository can define its own `DisableProxyGenerator` property and
110
- condition its own targets on it, as the Chronicle kernel project does; that is
111
- repository-local, not part of this package.
105
+ **Proxies are generated by the committing client, never in CI.** The client that
106
+ changes a command or query builds Debug, generates the proxies and commits them
107
+ with the change. CI builds compile against the committed proxies; a CI build that
108
+ regenerates them produces diffs nobody commits or drift that exists only on the
109
+ runner. Every CI build of an Arc project passes `-p:CratisProxiesOutputPath=`
110
+ (empty), in every configuration.
111
+
112
+ `-p:CratisProxiesOutputPath=` is Arc's off switch: the `CratisProxyGenerator`
113
+ target runs only when `CratisProxiesOutputPath` is non-empty, so an empty value
114
+ makes it a no-op. `DisableProxyGenerator` is **not an Arc property**; it works only
115
+ in a repository that defines it itself (for example a project that gates
116
+ `CratisProxiesOutputPath` and the generator reference on it, as the Chronicle
117
+ kernel `Core.csproj` does). MSBuild accepts unknown `-p:` names silently, so passing
118
+ it where it is not defined looks effective and does nothing.
112
119
 
113
120
  ## What the generator extracts for client-side validation
114
121
 
@@ -59,6 +59,11 @@ before an external effect. A request to verify does not authorize a push.
59
59
  7. A change to a command, read model or query shape runs the repository's proxy
60
60
  and API regeneration checks; never hand-edit generated files. A package bump
61
61
  regenerates the checked-in snapshots that pin versions, in the same commit.
62
+ Arc TypeScript proxies are generated and committed by the client, never in CI:
63
+ CI, and local gates that mirror CI, pass `-p:CratisProxiesOutputPath=` (empty;
64
+ the `DisableProxyGenerator` name is repository-defined, not Arc's); only the
65
+ client's own Debug hook regenerates proxies. See the
66
+ **cratis-arc-command** proxy-generation reference.
62
67
 
63
68
  Use affected-project checks while coding and writing specifications. Build once
64
69
  at the end: run the full local gate when the work is believed complete, not after
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cratis/pi",
3
- "version": "7.151.0",
3
+ "version": "7.151.1",
4
4
  "description": "Configuration-aware Cratis AI integration for Pi",
5
5
  "type": "module",
6
6
  "files": [