@maiaos/cli 0.1.0-canary.72 → 0.1.0-canary.74

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.
@@ -88,15 +88,15 @@ const SESSION_CREDENTIAL_VARIABLE = "MAIA_SESSION_CREDENTIAL", SESSION_NODE_ORIG
88
88
  return LOCAL_OUTCOME_UNKNOWN_ERROR;
89
89
  if (code === "saturated")
90
90
  return LOCAL_SATURATED_ERROR;
91
- }, nodeAnswerOf = (error) => {
91
+ }, builtAnswerMessage = (code) => `The request ended with '${code}'; the Node sent no message of its own.`, answerOf = (error) => {
92
92
  const remoteError = error instanceof Error && "remoteError" in error ? error.remoteError : void 0, parsed = protocolErrorSchema.safeParse(remoteError);
93
93
  return parsed.success ? parsed.data : void 0;
94
- }, operationError = (error) => {
94
+ }, nodeAnswerOf = (error) => Predicate.hasProperty(error, "synthetic") && error.synthetic === !1 ? answerOf(error) : void 0, operationError = (error) => {
95
95
  if (error instanceof CliLocalNodeError)
96
96
  return error.error;
97
- const answer = nodeAnswerOf(error);
97
+ const answer = answerOf(error);
98
98
  if (answer !== void 0)
99
- return answer;
99
+ return nodeAnswerOf(error) === void 0 ? { ...answer, message: builtAnswerMessage(answer.code) } : answer;
100
100
  const clientErrorCode = maiaClientErrorCode(error);
101
101
  if (clientErrorCode === "invalid_request")
102
102
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maiaos/cli",
3
- "version": "0.1.0-canary.72",
3
+ "version": "0.1.0-canary.74",
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",
@@ -65,9 +65,9 @@
65
65
  "dependencies": {
66
66
  "@earendil-works/pi-tui": "1.0.0",
67
67
  "@effect/platform-node-shared": "4.0.0",
68
- "@maiaos/agent": "0.1.0-canary.72",
69
- "@maiaos/client-core": "0.1.0-canary.72",
70
- "@maiaos/sdk": "0.1.0-canary.72",
68
+ "@maiaos/agent": "0.1.0-canary.74",
69
+ "@maiaos/client-core": "0.1.0-canary.74",
70
+ "@maiaos/sdk": "0.1.0-canary.74",
71
71
  "effect": "4.0.0"
72
72
  },
73
73
  "scripts": {