Axe 3 (#52) : templates embarqués dans le binaire (web, python, rust, cli) - am init --template <stack> génère une config pré-remplie : groupe dev, profil par défaut, hooks projet (npm install / uv sync / cargo fetch) - substitution {project} {dir} au rendu ; --template list pour lister - fallback détection automatique de stack quand aucun template - config générée validée (parse YAML + validate) par les tests Axe 4 (#53) : am sessions export + rétention configurable - am sessions --export <id> [--output <fichier>] : JSON complet et reproductible (métadonnées + commandes history/<id>.jsonl + extrait de log 4 Ko + rendu lisible 'readable'), compatible archivage manuel - settings.sessions_retention_days (défaut 90) : purge au démarrage (silencieuse) et am sessions --retention <jours> - purge limitée à l'index dérivé sessions.json — le journal d'événements primaire n'est jamais touché ; EventKind::Prune journalisé (visibilité am audit) - sessions en cours (running) jamais purgées ; erreur claire si id inconnu REPL : sessions --export/--retention/--output + init --template ; help specs, tip cheat sheet, config.yaml, README, man pages régénérées. Version 0.4.7, ROADMAP cochée, 276 tests verts.
38 lines
1.2 KiB
Groff
38 lines
1.2 KiB
Groff
.ie \n(.g .ds Aq \(aq
|
|
.el .ds Aq '
|
|
.TH am-sessions 1 "sessions "
|
|
.SH NAME
|
|
sessions \- List the sessions of every agent (and of the interactive shell)
|
|
.SH SYNOPSIS
|
|
\fBsessions\fR [\fB\-\-project\fR] [\fB\-\-status\fR] [\fB\-\-show\fR] [\fB\-\-resume\fR] [\fB\-\-export\fR] [\fB\-\-output\fR] [\fB\-\-retention\fR] [\fB\-h\fR|\fB\-\-help\fR] [\fIAGENT\fR]
|
|
.SH DESCRIPTION
|
|
List the sessions of every agent (and of the interactive shell)
|
|
.SH OPTIONS
|
|
.TP
|
|
\fB\-\-project\fR \fI<PROJECT>\fR
|
|
Only sessions of this project
|
|
.TP
|
|
\fB\-\-status\fR \fI<STATUS>\fR
|
|
Only sessions with this status (running, stopped, failed, interrupted)
|
|
.TP
|
|
\fB\-\-show\fR \fI<ID>\fR
|
|
Show one session in detail (summary + log excerpt)
|
|
.TP
|
|
\fB\-\-resume\fR \fI<ID>\fR
|
|
Resume a finished session: relaunch the agent with its recorded arguments
|
|
.TP
|
|
\fB\-\-export\fR \fI<ID>\fR
|
|
Export one session (metadata, commands, log excerpt) to a JSON file
|
|
.TP
|
|
\fB\-\-output\fR \fI<FILE>\fR
|
|
Destination of the export (default: ./am\-session\-<ID>.json)
|
|
.TP
|
|
\fB\-\-retention\fR \fI<DAYS>\fR
|
|
Purge sessions finished more than N days ago (settings default 90)
|
|
.TP
|
|
\fB\-h\fR, \fB\-\-help\fR
|
|
Print help
|
|
.TP
|
|
[\fIAGENT\fR]
|
|
Only sessions of this agent
|