1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
use clap::Args;
#[derive(Debug, Args)]
pub(crate) struct DumpHighlightKeywordsArgs {
/// Path to the generated keyword file (relative to the repo root).
#[arg(long, default_value = "docs/theme/harn-keywords.js")]
pub output: String,
/// Verify the on-disk file matches what would be generated; exit non-zero
/// if stale. Used by CI to prevent drift between the highlighter and the
/// lexer/stdlib.
#[arg(long)]
pub check: bool,
}
#[derive(Debug, Args)]
pub(crate) struct DumpTriggerQuickrefArgs {
/// Path to the generated trigger quickref file (relative to the repo root).
#[arg(long, default_value = "docs/llm/harn-triggers-quickref.md")]
pub output: String,
/// Verify the on-disk file matches what would be generated; exit non-zero
/// if stale. Used by CI to prevent drift between the quickref and the
/// runtime trigger provider catalog.
#[arg(long)]
pub check: bool,
}
#[derive(Debug, Args)]
pub(crate) struct DumpConnectorMatrixArgs {
/// Path to the generated connector parity matrix page (relative to the repo root).
#[arg(long, default_value = "docs/src/connectors/parity-matrix.md")]
pub output: String,
/// Package manifest, package directory, or directory tree to scan. Repeatable.
#[arg(long = "source", value_name = "PATH")]
pub sources: Vec<String>,
/// Verify the on-disk file matches what would be generated; exit non-zero
/// if stale. Used by CI to prevent drift from connector package manifests.
#[arg(long)]
pub check: bool,
}
#[derive(Debug, Args)]
pub(crate) struct DumpProtocolArtifactsArgs {
/// Directory for generated protocol schemas and bindings.
#[arg(long, default_value = "spec/protocol-artifacts")]
pub output_dir: String,
/// Verify checked-in artifacts match the generator output; exit non-zero
/// if stale.
#[arg(long)]
pub check: bool,
}