@algosuite/vo-mcp 0.2.0-beta.40 → 0.2.0-beta.43
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/agent-auth-probe-cli.mjs +13 -2
- package/dist/cli.js +9 -2
- package/dist/cli.js.map +2 -2
- package/dist/runner-cli.js +119 -22
- package/dist/runner-cli.js.map +3 -3
- package/dist/runner-supervisor.js +13 -2
- package/dist/runner-supervisor.js.map +2 -2
- package/dist/set-key-cli.js +12 -4
- package/dist/set-key-cli.js.map +2 -2
- package/package.json +1 -1
|
@@ -54,7 +54,7 @@ async function fetchInstallationToken({ req, required = false, readOnly = false,
|
|
|
54
54
|
const json = await res.json();
|
|
55
55
|
if (!json || !json.token) return fail("missing token");
|
|
56
56
|
if (readOnly && json.scope !== "read") return fail("control plane did not confirm a read-only grant");
|
|
57
|
-
return { token: json.token, expiresAt: json.expires_at || null };
|
|
57
|
+
return { token: json.token, expiresAt: json.expires_at || null, ...typeof json.ci_readable === "boolean" ? { ciReadable: json.ci_readable } : {} };
|
|
58
58
|
} catch (err) {
|
|
59
59
|
if (required) throw err;
|
|
60
60
|
return null;
|
|
@@ -104,7 +104,18 @@ async function resumeCodeTaskRequest(req, taskId, { automaticRateLimit = false,
|
|
|
104
104
|
onUnauthorized();
|
|
105
105
|
throw new Error("resume unauthorized (401)");
|
|
106
106
|
}
|
|
107
|
-
if (!res.ok)
|
|
107
|
+
if (!res.ok) {
|
|
108
|
+
let code = null;
|
|
109
|
+
try {
|
|
110
|
+
const body = await res.json();
|
|
111
|
+
code = typeof body?.error === "string" ? body.error : null;
|
|
112
|
+
} catch {
|
|
113
|
+
}
|
|
114
|
+
const err = new Error(`resume failed: HTTP ${res.status}${code ? ` (${code})` : ""}`);
|
|
115
|
+
err.status = res.status;
|
|
116
|
+
err.code = code;
|
|
117
|
+
throw err;
|
|
118
|
+
}
|
|
108
119
|
const json = await res.json();
|
|
109
120
|
return json && json.task ? json.task : null;
|
|
110
121
|
}
|