@disclosureos/cli
v1.0.0
Published
Developer tools for the DisclosureOS ecosystem — scaffold, validate, and inspect observations
Maintainers
Readme
@disclosureos/cli
Developer tools for the DisclosureOS
ecosystem — scaffold, validate, and inspect observations from the command line. It is
a dev tool, not a library. validate delegates to
@disclosureos/schema's parseEnrichedObservation — the same
canonical enriched-validation contract library consumers use (core + every registered
slot, with unknown top-level keys rejected) — then layers on CLI-only niceties like
dangling-evidence-reference warnings, so it never re-implements or drifts from the
foundation's checks.
See it end to end.
examples/golden-path.tstakes one observation through every layer — records → observables → origins → scoring, validated as a whole by@disclosureos/schema— in a single type-checked file. Run it withpnpm --filter @disclosureos/examples golden-path.Migrating an existing dataset? The onboarding workspace provides a guided workflow. See also
examples/migration-path.tsandexamples/migration-csv-path.ts.
Install
pnpm add -D @disclosureos/cli
# or run ad hoc
pnpm dlx @disclosureos/cli --helpCommands
disclosureos scaffold Generate typed data structure templates
disclosureos validate Validate observation JSON files
disclosureos completeness Measure how fully observations populate the schema
disclosureos registry Introspect field, observable, and origin registries
disclosureos info Quick reference for types and definitions
disclosureos help Show help
disclosureos version Print versionExamples
disclosureos scaffold observation --full
disclosureos validate ./data/ --recursive
disclosureos validate ./data/ --recursive --json
disclosureos completeness ./out/ --recursive
disclosureos completeness ./out/ --recursive --json
disclosureos registry origins --id 1.1.3
disclosureos info observable TO-3validate also warns on dangling evidence references — evidenceRefs on a claim
that don't point to any evidence (media:, sensor:, …) present in the record.
License
MIT © Disclosure Foundation
