gen

command
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Command gen reads a pinned ACP schema.json + meta.json pair and writes protocol/types_gen.go and protocol/methods_gen.go. It never fetches anything from the network; the schema artifacts are pinned and reviewed separately (see protocol/schema/v1/REVISION).

Package gen builds a Go-facing type model from a pinned Agent Client Protocol JSON Schema (2020-12 subset) and its companion method-table JSON, then emits Go source. It understands exactly the schema shapes present in the pinned v1 artifact (see protocol/schema/v1/REVISION) and fails loudly on anything else rather than guessing at unsupported JSON Schema features.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL