@celilo/core 0.2.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/command-registry.ts +36 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celilo/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Lightweight shared core for Celilo CLI tools — command registry, NDJSON API protocol, and remote SSH client. No Ink/React/drizzle/aws-sdk transitive deps, so an MCP server can reach the transport without installing the full CLI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
package/src/command-registry.ts
CHANGED
|
@@ -768,6 +768,27 @@ export const COMMANDS: CommandDef[] = [
|
|
|
768
768
|
{ name: 'last', description: 'Show only the most recent deploy run', takesValue: false },
|
|
769
769
|
],
|
|
770
770
|
},
|
|
771
|
+
{
|
|
772
|
+
name: 'journal',
|
|
773
|
+
description:
|
|
774
|
+
"Read-only: tail a deployed module's runtime daemon journal on its host (no SSH)",
|
|
775
|
+
args: [{ name: 'id', description: 'Module ID', completion: 'module_ids' }],
|
|
776
|
+
flags: [
|
|
777
|
+
{
|
|
778
|
+
name: 'unit',
|
|
779
|
+
description: 'systemd unit or glob (default: <module-id>*)',
|
|
780
|
+
takesValue: true,
|
|
781
|
+
},
|
|
782
|
+
{ name: 'lines', description: 'Lines to return (default 100)', takesValue: true },
|
|
783
|
+
{ name: 'since', description: "Time window, e.g. '30 min ago'", takesValue: true },
|
|
784
|
+
{
|
|
785
|
+
name: 'grep',
|
|
786
|
+
description: 'Only lines containing this fixed string',
|
|
787
|
+
takesValue: true,
|
|
788
|
+
},
|
|
789
|
+
{ name: 'json', description: 'Machine-readable JSON output', takesValue: false },
|
|
790
|
+
],
|
|
791
|
+
},
|
|
771
792
|
{
|
|
772
793
|
name: 'health',
|
|
773
794
|
description: 'Run health checks on deployed modules',
|
|
@@ -1664,6 +1685,21 @@ export const COMMANDS: CommandDef[] = [
|
|
|
1664
1685
|
description: 'Set the default storage destination',
|
|
1665
1686
|
args: [{ name: 'storage-id', description: 'Storage ID', completion: 'storage_ids' }],
|
|
1666
1687
|
},
|
|
1688
|
+
{
|
|
1689
|
+
name: 'set-path',
|
|
1690
|
+
description: 'Relocate a local storage destination to a new directory',
|
|
1691
|
+
args: [
|
|
1692
|
+
{ name: 'storage-id', description: 'Storage ID', completion: 'storage_ids' },
|
|
1693
|
+
{ name: 'new-path', description: 'New storage directory path' },
|
|
1694
|
+
],
|
|
1695
|
+
flags: [
|
|
1696
|
+
{
|
|
1697
|
+
name: 'no-migrate',
|
|
1698
|
+
description: 'Change the path without moving existing archives',
|
|
1699
|
+
takesValue: false,
|
|
1700
|
+
},
|
|
1701
|
+
],
|
|
1702
|
+
},
|
|
1667
1703
|
],
|
|
1668
1704
|
},
|
|
1669
1705
|
{
|