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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// Copyright 2026 AlphaOne LLC
// SPDX-License-Identifier: Apache-2.0
//! v0.7.0 QW-1 — new-format CLI command modules.
//!
//! Modules under this directory follow the `pub fn run(db, args,
//! out) -> Result<i32>` shape that returns an exit code (rather than
//! exiting the process from inside the handler). The convention
//! matches `src/cli/export.rs` (forensic bundle) so the dispatch arm
//! in `daemon_runtime::run` stays a one-liner.
/// v0.7.0 WT-1-F — `ai-memory atomise` CLI subcommand.
/// v0.7.x (#1146) — `ai-memory config <subcommand>` CLI surface.
// v0.7.0 QW-2 — Persona-as-artifact CLI surface. `ai-memory persona
// <entity_id> [--namespace NS] [--regenerate] [--json]`.
// v0.7.0 Form 5 (issue #758) — `ai-memory calibrate confidence
// --from-shadow [--days N] [--output-format json|table]`. Reads
// `confidence_shadow_observations` and emits per-(namespace, source)
// baselines.
// v0.7.0 Cluster E API-2 (issue #767) — `ai-memory skill <subcommand>`
// CLI parity for the 7 L1-5 Agent Skills MCP tools. Each subcommand
// dispatches into the same substrate handler the MCP `tools/call`
// dispatch uses, so no new business logic lands here.
// v0.7.0 ARCH-3 / FX-12 — CLI parity build-out for MCP tools without
// a direct CLI subcommand counterpart. Each new module dispatches into
// the same substrate primitive the MCP tool consumes, guaranteeing
// wire envelope parity across MCP / HTTP / CLI. See
// `docs/v0.7.0/arch-3-mcp-cli-parity-audit.md` for the full audit.
// v0.7.0 #1443 — `ai-memory expand` CLI parity for `memory_expand_query`.
// v0.7.0 #1598 — `ai-memory reembed`: full-corpus vector-space
// migration (REPLACES every stored embedding with the resolved
// backend/model's vectors; per-row #1595 failure isolation).
// v0.7.0 ARCH-3 / FX-C3 (batch2) — closing the 16 remaining
// applicable deferrals from the FX-12 audit. Each module wires a
// thin clap arg-parser + output formatter that dispatches into the
// same substrate primitive the MCP tool consumes. Wire envelope is
// byte-equal across MCP / HTTP / CLI. See
// `docs/v0.7.0/arch-3-mcp-cli-parity-audit.md` for the marked-off
// audit rows.
// v0.7.0 (issue #1389) — recover-on-boot fail-safe for the #1388
// substrate failure mode. The CLI surface chains after `ai-memory
// boot` in the SessionStart hook; the MCP-tool surface
// `memory_recover_previous_session` lives at
// `src/mcp/tools/recover_previous_session.rs` and shares the same
// `crate::recover::recover_from_transcript` handler.