feat(cli): lock captures effective description; list shows it; new commands surface view with origin and collision reporting

This commit is contained in:
kj
2026-10-06 15:37:15 -03:00
parent 6028abe51c
commit 4014551aae
9 changed files with 266 additions and 4 deletions
@@ -19,15 +19,21 @@ final class ListCommand extends Command
$toolbox = $this->toolboxDir($parsed['options']);
$installer = new Installer($root, $toolbox, $this->console, $this->rootCore($parsed['options'], $root));
$rows = [['TIPO', 'ID', 'VERSIÓN', 'MODO']];
$rows = [['TIPO', 'ID', 'VERSIÓN', 'MODO', 'DESCRIPCIÓN']];
$core = $installer->lock()->core();
if ($core !== null) {
$rows[] = ['core', 'core', (string) ($core['version'] ?? '?'), 'copy'];
$rows[] = ['core', 'core', (string) ($core['version'] ?? '?'), 'copy', ''];
}
foreach ($installer->lock()->components() as $id => $entry) {
$rows[] = [$entry['package'], $id, $entry['version'], $entry['mode']];
$rows[] = [
$entry['package'],
$id,
$entry['version'],
$entry['mode'],
$entry['description'] ?? '—',
];
}
if (count($rows) === 1) {