aubit-schema
v0.3.0
Published
Zod schema and TypeScript types for the Aubit report format
Readme
aubit-schema
An artifact is the set of findings an agent produces. A report is the same set of findings with optional review fields that a human or another agent can edit. Every artifact is valid as a report.
Review fields belong directly on an entry. Each is optional: state accepts open, resolved or rejected; visible is a boolean; comment is a string. Omitting one leaves it unset.
entries:
readme_typo:
title: Fix the installation heading
category: language.spelling
state: resolved
visible: false
comment: Fixed in the latest revision.A document has its own report entries and can optionally include a collection of reports keyed by Aubit ID. Each collected report has its own entries. A standalone report is already a valid document.
Import artifactSchema, reportSchema or documentSchema from aubit-schema for Zod validation. artifactJsonSchema, reportJsonSchema and documentJsonSchema are their JSON Schema equivalents. The default export and jsonSchema refer to the artifact format.
