/**
 * olam memory — host-process agent-memory service + Claude Code wiring.
 *
 * Subcommands:
 *   start      — ensure iii binary + secret + spawn agentmemory child process
 *   stop       — SIGTERM → SIGKILL (10s grace); idempotent
 *   status     — pid + livez probe + secret-set check
 *   logs       — tail ~/.olam/memory-service.log (--follow)
 *   secret     — show / rotate the bearer secret at ~/.olam/memory-secret
 *   install    — register agentmemory with the operator's host claude
 *   uninstall  — symmetric (idempotent)
 *   bridge     — Miniflare-embedded local bridge service (alt to wrangler dev)
 *   reclassify — bust classifier cache by content_hash OR since_version
 *   stats      — format /bridge/stats with derived cache-error-rate
 *
 * Plan reference: docs/plans/olam-agent-memory-distributed/phase-a-tasks.md
 */
import { registerMemoryStart } from './start.js';
import { registerMemoryStop } from './stop.js';
import { registerMemoryStatus } from './status.js';
import { registerMemoryLogs } from './logs.js';
import { registerMemorySecret } from './secret.js';
import { registerMemoryInstall } from './install.js';
import { registerMemoryUninstall } from './uninstall.js';
import { registerMemoryMode } from './mode.js';
import { registerMemoryBridge } from './bridge.js';
import { registerMemoryReclassify } from './reclassify.js';
import { registerMemoryStats } from './stats.js';
import { registerMemoryInstallHooks } from './install-hooks.js';
export function registerMemory(program) {
    const memory = program
        .command('memory')
        .description('Host-process agent-memory service for the olam fleet (start, stop, status, logs, secret, install, uninstall, bridge, reclassify, stats)');
    registerMemoryStart(memory);
    registerMemoryStop(memory);
    registerMemoryStatus(memory);
    registerMemoryLogs(memory);
    registerMemorySecret(memory);
    registerMemoryInstall(memory);
    registerMemoryUninstall(memory);
    registerMemoryMode(memory);
    registerMemoryBridge(memory);
    registerMemoryReclassify(memory);
    registerMemoryStats(memory);
    registerMemoryInstallHooks(memory);
}
//# sourceMappingURL=index.js.map