@maiaos/cli 0.1.0-canary.44 → 0.1.0-canary.45
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/bin/maia.cdx.json +19 -19
- package/dist/bin/maia.mjs +1 -1
- package/dist/session/create-tasks.js +2 -1
- package/dist/session/output/tasks.js +11 -3
- package/package.json +4 -4
|
@@ -95,10 +95,11 @@ const batchError = (items) => {
|
|
|
95
95
|
const failed = items.find((item) => item.error !== undefined);
|
|
96
96
|
if (failed?.error === undefined)
|
|
97
97
|
return undefined;
|
|
98
|
-
const { code, failure, kind, operationId, retryable } = failed.error;
|
|
98
|
+
const { code, failure, kind, message, operationId, retryable } = failed.error;
|
|
99
99
|
return {
|
|
100
100
|
code: failure?.code ?? code ?? kind,
|
|
101
101
|
message: failure?.message ??
|
|
102
|
+
message ??
|
|
102
103
|
`Line ${String(failed.line)} stopped at ${operationId}: ${code ?? kind}.`,
|
|
103
104
|
retryable,
|
|
104
105
|
};
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import { formatMerged } from "../../address-space/index.js";
|
|
2
2
|
import { cell, fields, formatRows, tab, withNextPage, } from "../../command-line/index.js";
|
|
3
3
|
import { formatFailureCell } from "./failure.js";
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
const failureDetail = ({ failure, message, }) => {
|
|
5
|
+
if (failure !== undefined)
|
|
6
|
+
return formatFailureCell(failure);
|
|
7
|
+
return message === undefined ? undefined : cell(message);
|
|
8
|
+
};
|
|
9
|
+
const failure = ({ error }) => {
|
|
10
|
+
if (error === undefined)
|
|
11
|
+
return undefined;
|
|
12
|
+
const detail = failureDetail(error);
|
|
13
|
+
return `${error.operationId}:${error.code ?? error.kind}${detail === undefined ? "" : ` (${detail})`}`;
|
|
14
|
+
};
|
|
7
15
|
export const formatSessionTasks = ({ items }) => items.length === 1
|
|
8
16
|
? items
|
|
9
17
|
.map((item) => fields([
|
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.45",
|
|
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.45",
|
|
68
|
+
"@maiaos/client-core": "0.1.0-canary.45",
|
|
69
|
+
"@maiaos/sdk": "0.1.0-canary.45",
|
|
70
70
|
"effect": "4.0.0"
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|