zyntry-verdict 0.1.4 → 0.1.5
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/bin/zv.mjs +11 -2
- package/package.json +2 -1
package/bin/zv.mjs
CHANGED
|
@@ -912,8 +912,17 @@ async function cmdRun(config, flags, positional) {
|
|
|
912
912
|
}
|
|
913
913
|
|
|
914
914
|
if (!summary) {
|
|
915
|
-
|
|
916
|
-
|
|
915
|
+
// The stream may have been cut (edge proxies, slow rounds). The verdict
|
|
916
|
+
// completes server-side regardless (watchdog alarm + wall clock), so
|
|
917
|
+
// poll the row to its terminal state.
|
|
918
|
+
const pollUntil = Date.now() + 22 * 60 * 1000;
|
|
919
|
+
while (Date.now() < pollUntil) {
|
|
920
|
+
await new Promise((r) => setTimeout(r, 5000));
|
|
921
|
+
const finalRes = await fetch(`${gateway}/v1/verdicts/${verdictId ?? ""}`, { headers: authHeaders(config) });
|
|
922
|
+
summary = await finalRes.json().catch(() => null);
|
|
923
|
+
if (summary && summary.status !== "running" && summary.status !== "queued" && summary.status !== "error") break;
|
|
924
|
+
if (summary && summary.status === "error") break;
|
|
925
|
+
}
|
|
917
926
|
}
|
|
918
927
|
printVerdict(summary);
|
|
919
928
|
const verdict = summary?.verdict ?? summary?.status;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zyntry-verdict",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "Thin client for the Zyntry Verdict hosted AI courtroom — submit code, watch the adversarial courtroom stream live, get a verdict that can withstand scrutiny.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -33,3 +33,4 @@
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
|
|
36
|
+
|