MackySoft.Ucli.Contracts 0.8.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package MackySoft.Ucli.Contracts --version 0.8.2
                    
NuGet\Install-Package MackySoft.Ucli.Contracts -Version 0.8.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MackySoft.Ucli.Contracts" Version="0.8.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MackySoft.Ucli.Contracts" Version="0.8.2" />
                    
Directory.Packages.props
<PackageReference Include="MackySoft.Ucli.Contracts" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MackySoft.Ucli.Contracts --version 0.8.2
                    
#r "nuget: MackySoft.Ucli.Contracts, 0.8.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MackySoft.Ucli.Contracts@0.8.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MackySoft.Ucli.Contracts&version=0.8.2
                    
Install as a Cake Addin
#tool nuget:?package=MackySoft.Ucli.Contracts&version=0.8.2
                    
Install as a Cake Tool

MackySoft.Ucli.Contracts

NuGet License: MIT

Created by Hiroya Aramaki (Makihiro)

MackySoft.Ucli.Contracts contains the shared IPC protocol and data contract types used by uCLI runtime components.

This is an advanced integration package for uCLI runtime, Unity plugin integration, and tooling that needs to exchange uCLI protocol messages directly. Users who only run the ucli command or install MackySoft.Ucli.Unity usually do not need to reference this package directly.

Installation

Install a pinned version from nuget.org:

dotnet add package MackySoft.Ucli.Contracts --version <version>

What This Package Provides

  • IPC request and response contracts.
  • Typed primitive operation Args/Result contract types.
  • Attributes used to describe operation inputs, results, and generated validation schemas.
  • UcliNoResult for operations that intentionally omit opResults[].result.
  • Protocol constants and shared protocol metadata.
  • Configuration and storage contract models.
  • JSON serialization helpers for uCLI contract types.
  • Shared data shapes used by the CLI, Unity plugin, and infrastructure package.

Operation Contracts

Primitive operation contracts are authored as CLR Args/Result types plus operation metadata. Args/Result types define the public JSON structure. Reusable operation values such as scene asset paths, prefab asset paths, hierarchy paths, GlobalObjectId strings, asset GUIDs, and Unity type identifiers use semantic string value types in the CLR contract, but they serialize as JSON strings on the IPC boundary. Args properties and semantic value types carry input descriptions and semantic constraints through attributes such as UcliDescriptionAttribute and UcliInputConstraintAttribute; ops describe derives inputs[] from those attributes. Operation metadata defines the operation-level description and assurance metadata. uCLI exposes description, inputs, resultContract, and assurance through ops describe, and also generates argsSchema / resultSchema for JSON structure validation.

Public raw op args must not use the JSON property name var, even with a null value. ops describe omits that selector branch and the Unity runtime rejects it for raw op steps.

argsSchema and resultSchema validate only the JSON structure of steps[].args and opResults[].result; they are not the primary agent UX contract. Operation selection, input construction, and result interpretation should use the higher-level describe contract. Semantic constraints are exposed as inputs[].constraints and inputs[].variants[].fields[].constraints, not as JSON Schema constraint keywords.

Selectors are also contract types, such as GameObjectReferenceArgs, ComponentReferenceArgs, and AssetReferenceArgs. Operation authors consume those typed references and keep resolved Unity objects inside the Unity implementation layer.

JSON remains the IPC wire format. Operation implementations and command builders should use the typed contract model before crossing the IPC boundary, and should avoid treating raw JsonElement as the authoring surface.

Package Role
MackySoft.Ucli .NET global tool that provides the ucli command.
MackySoft.Ucli.Unity Unity Editor plugin for uCLI IPC and automation.
MackySoft.Ucli.Infrastructure Shared infrastructure services that use the contract model.

Repository

Source and issue tracking:

https://github.com/mackysoft/ucli

Support

Use GitHub Issues for bugs, questions, and package problems:

https://github.com/mackysoft/ucli/issues

Include the package name and version when reporting package-specific problems.

If uCLI or other MackySoft projects are useful to you, please support MackySoft through GitHub Sponsors:

https://github.com/sponsors/mackysoft

Author

License

This package is under the MIT License.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on MackySoft.Ucli.Contracts:

Package Downloads
MackySoft.Ucli.Unity

Unity Editor plugin for uCLI IPC and automation.

MackySoft.Ucli.Infrastructure

Shared infrastructure services for uCLI runtime components.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.9.0 275 8/3/2026
0.8.3 440 7/26/2026
0.8.2 236 7/23/2026
0.8.1 234 7/17/2026
0.8.0 226 7/16/2026
0.7.2 232 7/9/2026
0.7.1 223 7/9/2026
0.7.0 239 7/8/2026
0.6.0 244 6/23/2026
0.5.0 238 6/23/2026
0.4.0 233 6/23/2026
0.3.0 234 6/22/2026
0.2.1 222 6/14/2026
0.2.0 240 6/14/2026
0.1.0 236 6/4/2026