Skip to main content

Crate harn_cli

Crate harn_cli 

Source

Modules§

acp
cli
Top-level clap definition for the harn CLI.
commands
env_guard
format
Shared, lightweight formatting helpers for CLI commands.
json_envelope
Canonical JSON envelope for harn CLI commands.
package
skill_loader
CLI-side glue that assembles harn-vm’s layered skill discovery from the inputs harn run / harn test / harn check see at startup: repeatable --skill-dir, $HARN_SKILLS_PATH, the nearest harn.toml, and the user’s home / system directories.
skill_provenance
test_report
Machine-readable test reports for harn test.
test_runner
test_timing

Structs§

DecodedLintEnvelope
Successfully decoded schema-v1 lint envelope.
EmbeddedSkill
A single skill embedded into the Harn build.
LintDecodeError
Fail-closed decode error for lint JSON envelopes.
LintDecodeOptions
Options for decode_lint_envelope / decode_lint_json.
LintReportWire
Wire shape of JsonEnvelope.data for harn lint --json.
SkillFrontmatter
Frontmatter fields embedded with each bundled skill.

Constants§

CLI_RUNTIME_STACK_SIZE
DISPATCH_AUDIT_SCHEMA_VERSION
Schema version stamped on every provider dispatch-audit envelope (the report and its embedded tool-probe plan). Re-exported from the crate root as the single source of truth so integration tests reference it instead of duplicating the number — the duplication that let this rot silently while the slow-E2E tier was unwatched. The in-crate audit unit tests still pin the literal value, so an intentional bump remains a deliberate, reviewed change.

Functions§

decode_lint_envelope
Decode a lint envelope value and fail closed on contract violations.
decode_lint_json
Parse JSON text and fail closed on structural or semantic contract violations.
get_embedded_skill
Return one bundled skill by canonical skill name.
lint_json_schema
Complete Draft 2020-12 JSON Schema for the schema-v1 lint envelope.
list_embedded_skills
Return every skill bundled into this build.
run
Entry point used by src/main.rs. Hosts the CLI runtime thread and drives the async dispatcher in async_main.