AstrBot-Desktop/docs/protocol/v1/schemas/README.md

776 B

Generated JSON Schemas

This directory is populated from the authoritative Rust types by:

cargo run -p desktop-protocol --example export_schemas -- --write

The non-writing form checks committed files for semantic equality and fails if they are missing or stale:

cargo run -p desktop-protocol --example export_schemas

Expected generated files:

connection-profile.schema.json
connection-slot.schema.json
server-capabilities.schema.json
client-capabilities.schema.json
protocol-envelope.schema.json
gateway-event.schema.json
tool-proposal.schema.json
tool-result.schema.json
diagnostic-bundle.schema.json
file-transfer-plan.schema.json

No generated files are claimed current until the Rust toolchain has run the exporter successfully.