Skip to main content

harn_cli/cli/
mod.rs

1//! Top-level clap definition for the `harn` CLI.
2//!
3//! Per-subcommand arg structs live in their own modules under
4//! `crates/harn-cli/src/cli/`. The `Cli` and `Command` enum here only
5//! reference types via `pub(crate) use ...` re-exports so external
6//! consumers can keep using `crate::cli::TypeName` unchanged.
7//!
8//! Some variants of subcommand enums are reached only by destructuring
9//! the parent (`SubCommand::Foo(args) => ...`) and are never referenced
10//! by name from outside this module. Those types stay private to their
11//! per-subcommand module and are accessed through their parent enum.
12
13mod bench;
14mod check;
15mod completions;
16mod config_cmd;
17mod connect;
18mod connector;
19mod contracts;
20mod crystallize;
21mod demo;
22mod dev;
23mod doctor;
24mod dump;
25mod eval;
26mod explain;
27mod fix;
28mod flow;
29mod graph;
30mod init;
31mod lint_fmt;
32mod local;
33mod mcp;
34mod merge_captain;
35mod models;
36mod orchestrator;
37mod pack;
38mod package;
39mod parse_tokens;
40mod persona;
41mod playground;
42mod portal;
43mod precompile;
44mod profile;
45mod provider;
46mod providers;
47mod quickstart;
48mod routes;
49mod run;
50mod runs;
51mod serve;
52mod session;
53mod skill;
54mod skills;
55mod supervisor;
56mod test;
57mod test_bench;
58mod time;
59mod tool;
60mod trace;
61mod trigger;
62mod trust;
63mod try_cmd;
64mod upgrade;
65mod util;
66mod verify;
67mod version;
68mod viz;
69mod watch;
70mod workflow;
71
72pub(crate) use bench::{BenchArgs, BenchCommand, BenchReplayArgs};
73pub(crate) use check::{CheckArgs, CheckOutputFormat};
74pub(crate) use completions::{CompletionShell, CompletionsArgs};
75pub(crate) use config_cmd::{ConfigArgs, ConfigCommand, ConfigInspectArgs, ConfigValidateArgs};
76pub(crate) use connect::{
77    ConnectApiKeyArgs, ConnectArgs, ConnectCommand, ConnectGenericArgs, ConnectGithubArgs,
78    ConnectLinearArgs, ConnectOAuthArgs, ConnectSetupPlanArgs, ConnectStatusArgs,
79};
80pub(crate) use connector::{
81    ConnectorArgs, ConnectorCheckArgs, ConnectorCommand, ConnectorTestArgs,
82};
83pub(crate) use contracts::{
84    ContractsArgs, ContractsBundleArgs, ContractsCommand, ContractsHostCapabilitiesArgs,
85    ContractsOutputArgs,
86};
87pub(crate) use crystallize::{
88    CrystallizeArgs, CrystallizeCommand, CrystallizeIngestArgs, CrystallizeShadowArgs,
89    CrystallizeValidateArgs,
90};
91pub(crate) use demo::DemoArgs;
92pub(crate) use dev::DevArgs;
93pub(crate) use doctor::DoctorArgs;
94pub(crate) use dump::{
95    DumpConnectorMatrixArgs, DumpHighlightKeywordsArgs, DumpProtocolArtifactsArgs,
96    DumpTriggerQuickrefArgs,
97};
98pub use eval::{
99    EvalArgs, EvalCommand, EvalPromptArgs, EvalPromptMode, EvalPromptOutput, EvalToolCallsArgs,
100    EvalToolCallsCommand, EvalToolCallsRegressionArgs,
101};
102pub(crate) use explain::{CatalogFormat, ExplainArgs};
103pub(crate) use fix::FixArgs;
104pub(crate) use flow::{
105    FlowArchivistCommand, FlowArchivistScanArgs, FlowArgs, FlowCommand, FlowReplayAuditArgs,
106    FlowShipCommand, FlowShipWatchArgs,
107};
108pub(crate) use graph::GraphArgs;
109pub(crate) use init::{InitArgs, NewArgs, ProjectTemplate};
110pub(crate) use lint_fmt::{FmtArgs, PathTargetsArgs};
111pub(crate) use local::{
112    LocalArgs, LocalCommand, LocalListArgs, LocalProfileArgs, LocalStatusArgs, LocalStopArgs,
113    LocalSwitchArgs,
114};
115pub(crate) use mcp::{McpArgs, McpCommand, McpLoginArgs, McpServeArgs, McpServerRefArgs};
116pub(crate) use merge_captain::{
117    MergeCaptainArgs, MergeCaptainAuditArgs, MergeCaptainAuditFormat, MergeCaptainBackendKind,
118    MergeCaptainCommand, MergeCaptainIterateArgs, MergeCaptainIterateFormat,
119    MergeCaptainLadderArgs, MergeCaptainLadderFormat, MergeCaptainMockCleanupArgs,
120    MergeCaptainMockCommand, MergeCaptainMockInitArgs, MergeCaptainMockServeArgs,
121    MergeCaptainMockStatusArgs, MergeCaptainMockStepArgs, MergeCaptainRunArgs,
122};
123pub(crate) use models::{
124    ModelRecommendArgs, ModelsArgs, ModelsCommand, ModelsInstallArgs, ModelsListArgs,
125    ModelsTestArgs,
126};
127pub(crate) use orchestrator::{
128    OrchestratorArgs, OrchestratorCommand, OrchestratorDeployArgs, OrchestratorDeployProvider,
129    OrchestratorDlqArgs, OrchestratorFireArgs, OrchestratorInspectArgs, OrchestratorLocalArgs,
130    OrchestratorLogFormat, OrchestratorQueueArgs, OrchestratorQueueCommand,
131    OrchestratorQueueDrainArgs, OrchestratorQueueLsArgs, OrchestratorQueuePurgeArgs,
132    OrchestratorRecoverArgs, OrchestratorReloadArgs, OrchestratorReplayArgs,
133    OrchestratorReplayOracleArgs, OrchestratorResumeArgs, OrchestratorServeArgs,
134    OrchestratorStatsArgs, OrchestratorTenantArgs, OrchestratorTenantCommand,
135    OrchestratorTenantCreateArgs, OrchestratorTenantDeleteArgs, OrchestratorTenantLsArgs,
136    OrchestratorTenantSuspendArgs,
137};
138pub use pack::{PackArgs, PackCommand, PackVerifyArgs};
139pub(crate) use package::{
140    AddArgs, InstallArgs, PackageArgs, PackageArtifactsCommand, PackageCacheCommand,
141    PackageCommand, PackageScaffoldCommand, PackageScaffoldOpenapiArgs, PublishArgs, RemoveArgs,
142    UpdateArgs,
143};
144pub(crate) use parse_tokens::{ParseArgs, TokensArgs};
145pub(crate) use persona::{
146    PersonaArgs, PersonaCheckArgs, PersonaCommand, PersonaControlArgs, PersonaDoctorArgs,
147    PersonaInspectArgs, PersonaListArgs, PersonaNewArgs, PersonaSpendArgs, PersonaStatusArgs,
148    PersonaSupervisionCommand, PersonaSupervisionTailArgs, PersonaTemplateKind, PersonaTickArgs,
149    PersonaTriggerArgs,
150};
151pub(crate) use playground::PlaygroundArgs;
152pub(crate) use portal::PortalArgs;
153pub use precompile::PrecompileArgs;
154pub(crate) use profile::ProfileArgs;
155pub(crate) use provider::{
156    ModelInfoArgs, ProviderCatalogArgs, ProviderProbeArgs, ProviderReadyArgs,
157    ProviderToolProbeArgs, ProviderToolProbeModeArg,
158};
159pub(crate) use providers::{
160    ProvidersArgs, ProvidersCommand, ProvidersExportArgs, ProvidersRefreshArgs,
161    ProvidersValidateArgs,
162};
163pub(crate) use quickstart::QuickstartArgs;
164pub(crate) use routes::RoutesArgs;
165pub(crate) use run::RunArgs;
166pub(crate) use runs::{ReplayArgs, RunsArgs, RunsCommand};
167pub(crate) use serve::{
168    A2aServeArgs, ApiServeArgs, McpServeTransport, ServeAcpArgs, ServeArgs, ServeCommand,
169    ServeMcpArgs, ServeTlsMode,
170};
171pub(crate) use session::{
172    SessionArgs, SessionCommand, SessionExportArgs, SessionImportArgs, SessionSchemaArgs,
173    SessionValidateArgs,
174};
175pub(crate) use skill::{
176    SkillArgs, SkillCommand, SkillEndorseArgs, SkillKeyCommand, SkillKeyGenerateArgs,
177    SkillSignArgs, SkillTrustAddArgs, SkillTrustCommand, SkillTrustListArgs, SkillVerifyArgs,
178    SkillWhoSignedArgs,
179};
180pub(crate) use skills::{
181    SkillsArgs, SkillsCommand, SkillsDumpArgs, SkillsGetArgs, SkillsInspectArgs, SkillsInstallArgs,
182    SkillsListArgs, SkillsMatchArgs, SkillsNewArgs, SkillsResolvedArgs,
183};
184pub(crate) use supervisor::{
185    SupervisorArgs, SupervisorCommand, SupervisorDlqCommand, SupervisorDlqListArgs,
186    SupervisorDlqReplayArgs, SupervisorFireArgs, SupervisorInspectArgs, SupervisorListArgs,
187    SupervisorPauseArgs, SupervisorRecoverArgs, SupervisorReplayArgs, SupervisorResumeArgs,
188    SupervisorStartArgs, SupervisorStopArgs,
189};
190pub(crate) use test::TestArgs;
191pub(crate) use test_bench::{
192    TestBenchArgs, TestBenchCommand, TestBenchExportAnnotationsArgs, TestBenchFidelityArgs,
193    TestBenchReplayArgs, TestBenchRunArgs, TestBenchValidateAnnotationsArgs,
194};
195pub(crate) use time::{TimeArgs, TimeCommand, TimeRunArgs};
196pub(crate) use tool::{ToolArgs, ToolCommand, ToolNewArgs};
197pub(crate) use trace::{TraceArgs, TraceCommand, TraceImportArgs};
198pub(crate) use trigger::{TriggerArgs, TriggerCancelArgs, TriggerCommand, TriggerReplayArgs};
199pub(crate) use try_cmd::TryArgs;
200pub(crate) use upgrade::UpgradeArgs;
201// `TrustOutcomeArg` / `TrustTierArg` are referenced from the cli
202// parser tests only; they're matched via destructuring elsewhere.
203#[allow(unused_imports)]
204pub(crate) use trust::{
205    TrustArgs, TrustCommand, TrustExportArgs, TrustOutcomeArg, TrustQueryArgs, TrustTierArg,
206    TrustVerifyChainArgs,
207};
208pub(crate) use verify::VerifyArgs;
209pub(crate) use version::VersionArgs;
210pub(crate) use viz::VizArgs;
211pub(crate) use watch::WatchArgs;
212pub(crate) use workflow::{
213    WorkflowArgs, WorkflowCommand, WorkflowFunctionToolsArgs, WorkflowNestedCeilingArgs,
214    WorkflowPatchApplyArgs, WorkflowPatchCommand, WorkflowPatchPreviewArgs,
215    WorkflowPatchValidateArgs,
216};
217
218use clap::{Parser, Subcommand};
219
220#[derive(Debug, Parser)]
221#[command(
222    name = "harn",
223    about = "The agent harness language",
224    version,
225    disable_help_subcommand = false,
226    arg_required_else_help = true
227)]
228pub(crate) struct Cli {
229    /// Emit the JSON-schema catalog for every `harn` subcommand that
230    /// exposes a structured `--json` envelope. Pair with
231    /// `--command <name>` to print just one entry.
232    #[arg(long = "json-schemas", global = false)]
233    pub json_schemas: bool,
234
235    /// When combined with `--json-schemas`, restrict the catalog to a
236    /// single command name (e.g. `--command run`).
237    #[arg(
238        long = "command",
239        requires = "json_schemas",
240        value_name = "COMMAND",
241        global = false
242    )]
243    pub schema_command: Option<String>,
244
245    #[command(subcommand)]
246    pub command: Option<Command>,
247}
248
249#[derive(Debug, Subcommand)]
250pub(crate) enum Command {
251    /// Execute a .harn file or an inline expression.
252    #[command(long_about = "\
253Execute a .harn file or an inline expression.
254
255USAGE
256    harn run script.harn
257    harn run -e 'log(\"hello\")'
258    harn run script.harn -- arg1 arg2   (script reads `argv` as list<string>)
259
260CONCURRENCY
261    Harn supports first-class concurrency primitives:
262      - spawn { ... }         — launch a task, return a handle
263      - parallel each LIST    — concurrent map
264      - parallel settle LIST  — concurrent map, collect Ok/Err
265      - parallel N            — N-way fan-out
266      - with { max_concurrent: N }  — cap in-flight workers
267      - channels, retry, select
268    https://harnlang.com/concurrency.html
269
270LLM THROTTLING
271    Providers can be rate-limited via `rpm:` in harn.toml / providers.toml
272    or via `HARN_RATE_LIMIT_<PROVIDER>=N`. Rate limits control throughput
273    (RPM); `max_concurrent` on `parallel` caps simultaneous in-flight jobs.
274
275SCRIPTING
276    LLM-readable one-pager: https://harnlang.com/docs/llm/harn-quickref.html
277    Human cheatsheet:       https://harnlang.com/scripting-cheatsheet.html
278    Full docs:              https://harnlang.com/
279")]
280    Run(RunArgs),
281    /// Type-check .harn files or directories without executing them.
282    Check(CheckArgs),
283    /// Parse a .harn file and print its AST.
284    Parse(ParseArgs),
285    /// Tokenize a .harn file and print lexer tokens.
286    Tokens(TokensArgs),
287    /// Inspect, validate, and emit schemas for layered Harn runtime config.
288    Config(ConfigArgs),
289    /// Explain a diagnostic. Pass a stable `HARN-<CAT>-<NNN>` code
290    /// (optionally with `--json` for the structured envelope), or the
291    /// legacy `--invariant <NAME> <FUNCTION> <FILE>` form to walk the
292    /// control-flow path behind a Harn invariant violation.
293    Explain(ExplainArgs),
294    /// Plan or apply repair-bearing diagnostics under an explicit safety ceiling.
295    Fix(FixArgs),
296    /// Export machine-readable Harn contracts and bundle manifests.
297    Contracts(ContractsArgs),
298    /// Lint .harn files or directories for common issues.
299    Lint(PathTargetsArgs),
300    /// Format .harn files or directories.
301    Fmt(FmtArgs),
302    /// Run user tests or the conformance suite.
303    Test(TestArgs),
304    /// Run a .harn script under a hermetic testbench (paused clock,
305    /// optional LLM/process tapes, fs overlay, deny-by-default network).
306    #[command(name = "test-bench")]
307    TestBench(TestBenchArgs),
308    /// Instrument a wrapped subcommand with phase-level wall-clock
309    /// timing (parse, typecheck, bytecode compile + cache hit/miss,
310    /// run setup, run main) plus per-LLM-call and per-tool-call
311    /// latency. Pair with `--json` for an agent-readable envelope.
312    Time(TimeArgs),
313    /// Scaffold a new project with harn.toml.
314    Init(InitArgs),
315    /// Scaffold a new project, package, or connector from a starter template.
316    New(NewArgs),
317    /// Diagnose the local Harn environment: toolchain version, configured
318    /// LLM providers and credentials, MCP server reachability, file
319    /// permissions on `~/.harn`, and project manifest health. Reports
320    /// each check as ok/warn/fail with a suggested fix.
321    Doctor(DoctorArgs),
322    /// Configure a starter Harn project and LLM provider settings.
323    Quickstart(QuickstartArgs),
324    /// Run a bundled offline demo scenario to see Harn in action without
325    /// API keys. `harn demo` lists scenarios; `harn demo <id>` runs one.
326    Demo(DemoArgs),
327    /// Register outbound connector resources with a provider.
328    Connect(Box<ConnectArgs>),
329    /// Validate pure-Harn connector packages against the connector contract.
330    Connector(ConnectorArgs),
331    /// Serve a Harn workflow over a transport adapter.
332    Serve(ServeArgs),
333    /// Manage remote MCP OAuth credentials and status.
334    Mcp(McpArgs),
335    /// Watch a .harn file and re-run it on changes.
336    Watch(WatchArgs),
337    /// Watch a Harn project and re-typecheck only the modules whose
338    /// public interface fingerprint actually changed.
339    ///
340    /// USAGE
341    ///     harn dev --watch [<root>]
342    ///     harn dev --watch --json
343    ///     harn dev --watch --with-tests
344    ///
345    /// On each file change, the changed module's interface fingerprint
346    /// (BLAKE3 of types + signatures + `pub import` re-exports) is
347    /// recomputed. If it matches the previous fingerprint, only that
348    /// module is re-checked. If it changed, every transitive importer
349    /// is invalidated and re-checked. `--with-tests` extends the loop
350    /// to also re-run `test_*` / `@test`-attributed pipelines in
351    /// every invalidated module.
352    Dev(DevArgs),
353    /// Launch the local Harn observability portal.
354    Portal(PortalArgs),
355    /// Replay and inspect historical trigger dispatches from the event log.
356    Trigger(TriggerArgs),
357    /// Statically enumerate declared trigger routes and their requirements.
358    Routes(RoutesArgs),
359    /// Statically enumerate modules, symbols, imports, capabilities, effects, and host calls.
360    Graph(GraphArgs),
361    /// Inspect Harn Flow atom, slice, and predicate audit state.
362    Flow(FlowArgs),
363    /// Validate, preview, and run portable workflow bundles.
364    Workflow(WorkflowArgs),
365    /// Control local durable workflow automations for trusted hosts.
366    Supervisor(SupervisorArgs),
367    /// Import third-party eval traces into replayable Harn fixtures.
368    Trace(TraceArgs),
369    /// Mine repeated traces into a reviewable deterministic Harn workflow candidate.
370    Crystallize(CrystallizeArgs),
371    /// Query and manage trust-graph autonomy state.
372    Trust(TrustArgs),
373    /// Alias for `harn trust`. Query and verify trust-graph autonomy state.
374    #[command(name = "trust-graph")]
375    TrustGraph(TrustArgs),
376    /// Verify a signed Harn provenance receipt.
377    Verify(VerifyArgs),
378    /// Print shell completion script to stdout.
379    Completions(CompletionsArgs),
380    /// Start the orchestrator process that hosts triggers and connector dispatch.
381    Orchestrator(OrchestratorArgs),
382    /// Run a pipeline against a Harn-native host module for fast iteration.
383    Playground(PlaygroundArgs),
384    /// Inspect persisted workflow run records.
385    Runs(RunsArgs),
386    /// Export, import, and validate portable Harn session bundles.
387    Session(SessionArgs),
388    /// Replay a persisted workflow run record.
389    Replay(ReplayArgs),
390    /// Evaluate a run record, run directory, or eval manifest.
391    Eval(EvalArgs),
392    /// Start the interactive REPL.
393    Repl,
394    /// Benchmark a .harn pipeline over repeated runs.
395    Bench(BenchArgs),
396    /// Pre-compile `.harn` sources into the content-addressed bytecode
397    /// cache so cold-start `harn run` for the same source skips parse
398    /// and compile and goes straight to bytecode load.
399    ///
400    /// `harn precompile path/` walks the directory and compiles every
401    /// `.harn` file; `harn precompile script.harn` compiles a single
402    /// file. Artifacts are written adjacent to each source as
403    /// `<name>.harnbc` by default; pass `--out DIR` to redirect them
404    /// into a sibling tree.
405    Precompile(PrecompileArgs),
406    /// Build or verify a `.harnpack` content-addressed run bundle.
407    ///
408    /// `harn pack <entrypoint>` walks the entrypoint's transitive imports,
409    /// precompiles every module, snapshots the provider catalog and
410    /// stdlib pin, generates a minimal SBOM, and emits a deterministic
411    /// tar.zst container under `<entrypoint>.harnpack` (or `--out`).
412    ///
413    /// `harn pack verify <bundle.harnpack>` reads a bundle back, recomputes
414    /// its canonical hash, verifies the embedded Ed25519 signature (if any),
415    /// and cross-checks every per-module BLAKE3 against the manifest.
416    /// Exits non-zero on any mismatch.
417    ///
418    /// `--upgrade <old.harnpack>` reads an existing bundle (v1 or v2) and
419    /// re-emits it under the v2 manifest, preserving the prior bundle's
420    /// workflow graph, triggers, and prompt capsules. `--exclude-secrets`
421    /// refuses to bundle paths that look like secrets (`.env`, `*.pem`,
422    /// `credentials*`, anything under `secrets/`).
423    Pack(PackArgs),
424    /// Render a .harn file as a Mermaid workflow graph.
425    Viz(VizArgs),
426    /// Install dependencies declared in harn.toml.
427    Install(InstallArgs),
428    /// Add a dependency to harn.toml.
429    Add(AddArgs),
430    /// Refresh one or more dependency lock entries.
431    Update(UpdateArgs),
432    /// Remove a dependency from harn.toml and harn.lock.
433    Remove(RemoveArgs),
434    /// Resolve dependencies and write harn.lock without materializing packages.
435    Lock,
436    /// Manage Harn package caches and integrity verification.
437    Package(PackageArgs),
438    /// Prepare a package manifest and bundle for publication. Validates
439    /// `harn.toml` and produces a publishable archive locally; remote
440    /// registry submission is not yet implemented (the resulting
441    /// archive can be installed via `harn add <repo-or-path>` in the
442    /// meantime).
443    Publish(PublishArgs),
444    /// List and inspect durable agent persona manifests.
445    Persona(PersonaArgs),
446    /// Merge Captain transcript oracle and audit (#1013).
447    #[command(name = "merge-captain")]
448    MergeCaptain(MergeCaptainArgs),
449    /// Print resolved metadata for a model alias or model id as JSON.
450    ModelInfo(ModelInfoArgs),
451    /// List, install, recommend, and test configured LLM models.
452    Models(ModelsArgs),
453    /// Manage local LLM runtime lifecycle: enumerate, switch, and stop
454    /// Ollama, llama.cpp, MLX, and other OpenAI-compatible local servers.
455    Local(LocalArgs),
456    /// Validate and generate provider/model catalog artifacts.
457    Providers(ProvidersArgs),
458    /// Print the provider/model catalog Harn loaded as JSON.
459    ProviderCatalog(ProviderCatalogArgs),
460    /// Probe a provider's /models endpoint and optionally verify a served model.
461    ProviderReady(ProviderReadyArgs),
462    /// Snapshot a provider: readiness, served models, loaded models with
463    /// memory/context details. Designed for eval pipelines that need a
464    /// stable telemetry envelope per provider.
465    ProviderProbe(ProviderProbeArgs),
466    /// Run one-tool provider conformance and classify native/text fallback.
467    ProviderToolProbe(ProviderToolProbeArgs),
468    /// One-shot agent_loop with a prompt. Routes through the configured
469    /// provider (or `HARN_LLM_PROVIDER=mock` for offline use).
470    #[command(name = "try")]
471    Try(TryArgs),
472    /// Manage and inspect Harn skills (list/get/dump for the embedded
473    /// corpus; resolved/inspect/match/install/new for FS-resolved skills).
474    Skills(SkillsArgs),
475    /// Manage skill provenance: keys, signatures, verification, and trust policy.
476    Skill(SkillArgs),
477    /// Scaffold and inspect Harn-native custom tools.
478    Tool(ToolArgs),
479    /// Print the decorated version banner.
480    Version(VersionArgs),
481    /// Download and atomically replace the running `harn` binary with
482    /// the latest published GitHub release (or a specific tag via
483    /// `--version`). Verifies the archive against the release's
484    /// `SHA256SUMS` manifest before installing.
485    Upgrade(UpgradeArgs),
486    /// Regenerate docs/theme/harn-keywords.js from the live lexer + stdlib sets.
487    ///
488    /// Dev-only. Hidden from `--help` — invoke via
489    /// `cargo run -p harn-cli -- dump-highlight-keywords` or the
490    /// `make gen-highlight` target.
491    #[command(hide = true, name = "dump-highlight-keywords")]
492    DumpHighlightKeywords(DumpHighlightKeywordsArgs),
493    /// Regenerate docs/llm/harn-triggers-quickref.md from the live trigger provider catalog.
494    ///
495    /// Dev-only. Hidden from `--help` — invoke via
496    /// `cargo run -p harn-cli -- dump-trigger-quickref` or the
497    /// `make gen-trigger-quickref` target.
498    #[command(hide = true, name = "dump-trigger-quickref")]
499    DumpTriggerQuickref(DumpTriggerQuickrefArgs),
500    /// Regenerate docs/src/connectors/parity-matrix.md from connector package manifests.
501    ///
502    /// Dev-only. Hidden from `--help` — invoke via
503    /// `cargo run -p harn-cli -- dump-connector-matrix` or the
504    /// `make gen-connector-matrix` target.
505    #[command(hide = true, name = "dump-connector-matrix")]
506    DumpConnectorMatrix(DumpConnectorMatrixArgs),
507    /// Regenerate Harn protocol schemas and TypeScript/Swift bindings.
508    ///
509    /// Dev-only. Hidden from `--help` — invoke via
510    /// `cargo run -p harn-cli -- dump-protocol-artifacts` or the
511    /// `make gen-protocol-artifacts` target.
512    #[command(hide = true, name = "dump-protocol-artifacts")]
513    DumpProtocolArtifacts(DumpProtocolArtifactsArgs),
514}
515
516#[cfg(test)]
517mod tests;