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
// Copyright 2026 AlphaOne LLC
// SPDX-License-Identifier: Apache-2.0
//! v0.7.0 L2-5 (issue #670) — `ai-memory export-forensic-bundle` and
//! `ai-memory verify-forensic-bundle` CLI surface.
//!
//! Thin dispatch wrappers over [`crate::forensic::bundle`]. The heavy
//! lifting (substrate reads, tar assembly, signature creation /
//! verification) lives in the substrate module so it can be exercised
//! from unit tests without spawning a subprocess. This module exists
//! solely to keep the `Command` enum tidy and to make the two verbs
//! discoverable under `src/cli/`.
use Path;
use Result;
use crateCliOutput;
use crate;
/// Dispatch `ai-memory export-forensic-bundle`. See
/// [`run_export`](crate::forensic::bundle::run_export).
///
/// # Errors
///
/// Propagates DB / I/O / signing errors from the substrate.
/// Dispatch `ai-memory verify-forensic-bundle`. See
/// [`run_verify`](crate::forensic::bundle::run_verify).
///
/// # Errors
///
/// Propagates I/O / parse errors. Verification failure returns
/// `Ok(non-zero)` rather than an `Err`.