Cohesive.Processes.Contracts
0.1.0-alpha.66
dotnet add package Cohesive.Processes.Contracts --version 0.1.0-alpha.66
NuGet\Install-Package Cohesive.Processes.Contracts -Version 0.1.0-alpha.66
<PackageReference Include="Cohesive.Processes.Contracts" Version="0.1.0-alpha.66" />
<PackageVersion Include="Cohesive.Processes.Contracts" Version="0.1.0-alpha.66" />
<PackageReference Include="Cohesive.Processes.Contracts" />
paket add Cohesive.Processes.Contracts --version 0.1.0-alpha.66
#r "nuget: Cohesive.Processes.Contracts, 0.1.0-alpha.66"
#:package Cohesive.Processes.Contracts@0.1.0-alpha.66
#addin nuget:?package=Cohesive.Processes.Contracts&version=0.1.0-alpha.66&prerelease
#tool nuget:?package=Cohesive.Processes.Contracts&version=0.1.0-alpha.66&prerelease
Cohesive.Processes.Contracts
Code-generation roots for canonical Process definitions and portable execution-observation documents.
Use When
- You need generated frontend contracts for exact canonical Process documents.
- You need the exact wire contracts returned by Process inspect, explanation, or retained-trace endpoints.
- You need the closed
ProcessNodeandProcessAwaitClauseunions with runtime discriminator inventories. - You are building Process inspection, visualization, or authoring tooling without recreating Process IR in a UI.
The CLR ProcessDefinition, ProcessNode, ProcessAwaitClause, execution status, control result, explanation, and
trace declarations remain semantic authority. ExecutionControlResult, ExecutionExplainArtifact,
ExecutionStatus, and ProcessExecutionTraceArtifact are generated from those declarations rather than recreated
by individual products.
The persisted JsonDerivedType metadata owns each closed-union inventory. This assembly only roots those types for
generation; it defines no parallel DTOs, node kinds, or execution behavior.
TypeScript Wire Contracts
Generate the focused frontend package from the canonical JSON wire contract:
dotnet run --project src/Cohesive.CodeGen.Cli -- \
--contracts src/Cohesive.Processes.Contracts/bin/Debug/net10.0/Cohesive.Processes.Contracts.dll \
--out src/frontend/processes/src/generated \
--emit shapes \
--module processes \
--shape-projection canonical-json \
--external-shapes Cohesive.Model=@cohesivesystems/relations \
--union-catalog ProcessNode=canonicalProcessNodeKinds \
--union-catalog ProcessAwaitClause=canonicalProcessAwaitClauseKinds
The generated runtime catalogs are derived from the same union cases that generate the discriminated TypeScript unions. Adding a CLR construct without a generated disposition therefore makes the committed artifact conformance test fail; consumers do not maintain an independent list.
ExecutionDefinitionDocument.definition intentionally remains unknown: it is the canonical normalized JSON
envelope payload. A consumer that has admitted kind: "process" uses the separately generated ProcessDefinition
contract to interpret that payload. Strict schema, fingerprint, unknown-field, and activation checks remain owned by
the .NET execution-definition serializer and validator.
Types owned by Cohesive.Model, including ValueContract, Expr, and TypeRef, are imported from
@cohesivesystems/relations. The Process package does not duplicate that shared portable semantic model.
ASP.NET Process observation endpoints serialize these contracts with the same strict canonical JSON conventions used for generation: lower-camel properties, scalar value objects, string enums, and a closed unknown-field policy. Host JSON naming settings do not redefine that wire contract.
Related Packages
Cohesive.Processesfor Process authoring, compilation, validation, and interpretation.Cohesive.Relations.Contractsand@cohesivesystems/relationsfor shared portable semantic-model contracts.Cohesive.CodeGen.Clifor deterministic contract generation.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Cohesive.Api (>= 0.1.0-alpha.66)
- Cohesive.Api.Execution (>= 0.1.0-alpha.66)
- Cohesive.Processes (>= 0.1.0-alpha.66)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-alpha.66 | 22 | 8/25/2026 |
| 0.1.0-alpha.65 | 27 | 8/25/2026 |
| 0.1.0-alpha.64 | 38 | 8/25/2026 |
| 0.1.0-alpha.63 | 47 | 8/24/2026 |