@maiaos/cli 0.1.0-canary.28 → 0.1.0-canary.29
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/dist/status/client.d.ts
CHANGED
|
@@ -114,6 +114,11 @@ export declare const makeStatusClient: (node: CliNodeOperations) => {
|
|
|
114
114
|
};
|
|
115
115
|
};
|
|
116
116
|
readonly storage: {
|
|
117
|
+
readonly events?: {
|
|
118
|
+
readonly checkpointBlocked?: boolean | undefined;
|
|
119
|
+
readonly excessBytes: number;
|
|
120
|
+
readonly oldestAgeMs?: number | undefined;
|
|
121
|
+
} | undefined;
|
|
117
122
|
readonly integrity: "ok" | "unavailable";
|
|
118
123
|
readonly journalMode: "wal";
|
|
119
124
|
readonly schemaTag: string;
|
|
@@ -23,6 +23,7 @@ export type CliCompactStatusResult = {
|
|
|
23
23
|
};
|
|
24
24
|
readonly profile: LocalNodeStatusResult["profile"];
|
|
25
25
|
readonly storage: {
|
|
26
|
+
readonly events?: LocalNodeStatusResult["storage"]["events"];
|
|
26
27
|
readonly integrity: LocalNodeStatusResult["storage"]["integrity"];
|
|
27
28
|
readonly journalMode: LocalNodeStatusResult["storage"]["journalMode"];
|
|
28
29
|
readonly schemaVersion: LocalNodeStatusResult["storage"]["schemaVersion"];
|
|
@@ -41,6 +41,9 @@ export const projectStatusResult = (node) => ({
|
|
|
41
41
|
},
|
|
42
42
|
profile: node.profile,
|
|
43
43
|
storage: {
|
|
44
|
+
...(node.storage.events === undefined
|
|
45
|
+
? {}
|
|
46
|
+
: { events: node.storage.events }),
|
|
44
47
|
integrity: node.storage.integrity,
|
|
45
48
|
journalMode: node.storage.journalMode,
|
|
46
49
|
schemaVersion: node.storage.schemaVersion,
|
|
@@ -73,12 +73,22 @@ const executorHostLines = (host) => {
|
|
|
73
73
|
userNamespaces[host.userNamespaces],
|
|
74
74
|
];
|
|
75
75
|
};
|
|
76
|
+
const eventLines = (events) => events === undefined
|
|
77
|
+
? []
|
|
78
|
+
: [
|
|
79
|
+
`events: ${String(events.excessBytes)} bytes over limit` +
|
|
80
|
+
(events.oldestAgeMs === undefined
|
|
81
|
+
? ""
|
|
82
|
+
: `, oldest ${String(Math.floor(events.oldestAgeMs / 3_600_000))} h`) +
|
|
83
|
+
(events.checkpointBlocked === true ? ", checkpoint blocked" : ""),
|
|
84
|
+
];
|
|
76
85
|
export const formatHumanStatus = ({ node }) => {
|
|
77
86
|
const lines = [
|
|
78
87
|
`profile: ${node.profile}`,
|
|
79
88
|
`pid: ${String(node.pid)}`,
|
|
80
89
|
`instance: ${node.instanceId}`,
|
|
81
90
|
`storage: ${node.storage.integrity} (${node.storage.journalMode})`,
|
|
91
|
+
...eventLines(node.storage.events),
|
|
82
92
|
...processResourceLines(node.processResources),
|
|
83
93
|
...executorHostLines(node.executorHost),
|
|
84
94
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maiaos/cli",
|
|
3
|
-
"version": "0.1.0-canary.
|
|
3
|
+
"version": "0.1.0-canary.29",
|
|
4
4
|
"description": "The maia CLI and MCP server: start, drive, observe and stop swarms of Claude Code and Codex agents from a terminal, a script or another agent.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"maia",
|
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"@earendil-works/pi-tui": "1.0.0",
|
|
66
66
|
"@effect/platform-node-shared": "4.0.0",
|
|
67
|
-
"@maiaos/agent": "0.1.0-canary.
|
|
68
|
-
"@maiaos/client-core": "0.1.0-canary.
|
|
69
|
-
"@maiaos/sdk": "0.1.0-canary.
|
|
67
|
+
"@maiaos/agent": "0.1.0-canary.29",
|
|
68
|
+
"@maiaos/client-core": "0.1.0-canary.29",
|
|
69
|
+
"@maiaos/sdk": "0.1.0-canary.29",
|
|
70
70
|
"effect": "4.0.0"
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|