KY.AI.Serve 1.14.1

Prefix Reserved
dotnet add package KY.AI.Serve --version 1.14.1
                    
NuGet\Install-Package KY.AI.Serve -Version 1.14.1
                    
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="KY.AI.Serve" Version="1.14.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="KY.AI.Serve" Version="1.14.1" />
                    
Directory.Packages.props
<PackageReference Include="KY.AI.Serve" />
                    
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 KY.AI.Serve --version 1.14.1
                    
#r "nuget: KY.AI.Serve, 1.14.1"
                    
#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 KY.AI.Serve@1.14.1
                    
#: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=KY.AI.Serve&version=1.14.1
                    
Install as a Cake Addin
#tool nuget:?package=KY.AI.Serve&version=1.14.1
                    
Install as a Cake Tool

KY.AI.Serve

The shared engine behind the KY.AI dev-loop tools — the hub, supervisor, rolling log, build tracker and MCP tool surface that ky-ai-ng, ky-ai-dotnet, ky-ai-browser and ky-ai-terminal build on.

Most users want one of those tools, not this library directly — install them with dotnet tool install --global KY.AI.Ng / KY.AI.Net (plus the optional KY.AI.Browser console add-on). This package exists so a new framework seam can reuse the same hub/supervisor machinery:

  • HubHost / Hub / HubTools — the control plane: one MCP server plus a registry of supervisors, addressed by name (incl. the shutdown tool).
  • SupervisorHost / DevServer — runs a framework CLI, tees output, tracks build state, and auto-registers with the hub.
  • RollingLog · BuildTracker · JobObject · Ansi — the build-aware log buffer (each line tagged with its build seq + classification, so it serves the raw view, a noise-free summary, and since-seq / grep filters), the build-verdict logic (errors and warnings, structured diagnostics, and change→build correlation), Windows Job Object process reaping, and ANSI stripping.
  • HtmlInjector — the reversible index.html inject/uninject mechanism (POST /inject, ky-ai-ng-inject markers, self-heal) that ky-ai-browser drives through the supervisor. While the injector heartbeats, the supervisor re-applies the tag whenever the file lost it: some projects' serve builders (e.g. @ky/mantic:serve) regenerate index.html on every ng serve start, so a dev-server restart would otherwise silently disconnect the page for good.
  • InitCommand / ShutdownCommand / UpdateCommand — the shared CLI commands each exe dispatches: <tool> init wires the tool into an agent (for Claude Code it installs the tool's user-scope plugin and removes the old project entries — see the main README's "Claude Code plugins"; with --no-plugin, or for Cursor/VS Code, it merges the MCP server into the project's MCP config and, for Claude, the command allow-list + enabledMcpjsonServers into .claude/settings.local.json), <tool> shutdown tears down the hub and its supervisors, and <tool> update stops running instances and runs the right package-manager update.

A framework tool supplies a BuildMatcher (mapping CLI output to build start/settle/error/warning, and optionally parsing diagnostic lines into structured {severity, file, line, col, message}) and its supervisor/hub configuration; the rest is shared here.

Loopback-only — nothing is exposed off the machine. See the project README for the full picture.

For Agents

  • Every way the child goes away must settle the build. Nothing else ends a cycle once the dev-server process is gone, and wait_for_build / restart / start would sit out their full timeout and report timedOut, which reads like a slow build. So all three exits settle it: a crash (Exited) → failed with exitCode; a failed Process.Start() → failed with the start error in settledBy, and the supervisor stays up instead of throwing; our own stop mid-build → stopped. A new path that ends the child needs the same.
  • A dev server that waits for a restart must settle too. When the CLI says it can't apply a change until restarted (dotnet watch rude edits), no line will ever settle the cycle, so the matcher reports RestartRequired and the tracker settles restart_required — a verdict that tells the agent to call restart instead of a timedOut that reads like a hung hub.
  • "We stopped it" vs. "it died" is told apart by identity alone. Every intentional stop (stop, the old process of a restart) goes through StopChildNoGateAsync, which nulls _child before killing. The Exited handler ignores any process that is no longer _child. Keep that order, and keep _child published under _ioSync together with Start() — otherwise an instantly crashing child reads as an intentional stop.
Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
1.14.1 121 10/26/2026
1.14.0 111 10/24/2026
1.13.1 116 10/6/2026
1.13.0 124 10/1/2026
1.12.0 116 9/26/2026
1.11.0 141 8/15/2026
1.10.0 145 7/17/2026
1.9.0 141 7/7/2026
1.8.0 138 7/3/2026
1.7.0 142 6/29/2026
1.6.0 141 6/27/2026
1.5.0 147 6/27/2026
1.4.0 139 6/25/2026
1.3.1 138 6/25/2026
1.3.0 142 6/25/2026
1.2.0 145 6/24/2026
1.1.1 134 6/24/2026
1.1.0 144 6/24/2026
1.0.0 138 6/23/2026