| Schema file | Target files | Purpose |
|---|---|---|
schema/root.terse.schema.json | .hyperterse | Root service configuration |
schema/adapter.terse.schema.json | app/adapters/*.terse | Adapter definitions |
schema/tool.terse.schema.json | app/tools/*/config.terse | Tool definitions |
Generation
Schemas are generated from the project’s source schema definitions:enum constraints.
Editor setup
Point your editor at the schema files to enable autocompletion, hover docs, and inline validation for.terse files.
VS Code / Cursor
Add to.vscode/settings.json:
JetBrains IDEs
Settings → Languages & Frameworks → Schemas and DTDs → JSON Schema Mappings. Add one mapping per schema with the appropriate file pattern.Schema highlights
Each schema enforces required fields, value constraints, and structural rules for its configuration level.Root (root.terse.schema.json)
name— Required. Pattern:^[a-z][a-z0-9_-]*$.version— Optional string.root— String (default discovery root:app).tools.directory— String (default:tools).tools.cache—enabled(boolean),ttl(integer).adapters.directory— String (default:adapters).server.port— Integer or string.server.log_level— Integer, 1–4.build.out/build.out_dir— String.build.clean_dir— Boolean.
Adapter (adapter.terse.schema.json)
connector— Required. Enum:postgres,redis,mysql,mongodb.connection_string— Required string.name— Optional.options— Optional map.
Tool (tool.terse.schema.json)
description— Required string.use— String.statement— String.inputs— Map of typed definitions.handler— Optional script handler path (path#exportNamesupported; defaults toexport default).mappers— Optionalinput/outputmapper paths (path#exportNamesupported; defaults toexport default).auth—plugin,policy.cache—enabled,ttl.- Constraint: exactly one of
useorhandleris required (enforced viaoneOf).
Keeping schemas in sync
When configuration shapes change, schemas and documentation must update in the same change:- Regenerate schema artifacts in
schema/. - Update field definitions in reference documentation.
- Update
.vscode/settings.jsonglobs if file-role matching changed. - Verify the change includes current schema files.