zyntry-verdict 0.1.6 → 0.1.7
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 +37 -0
- package/package.json +2 -1
package/bin/zv.mjs
CHANGED
|
@@ -580,6 +580,39 @@ async function cmdInit(flags) {
|
|
|
580
580
|
console.log(` ${DIM("npx zyntry-verdict watch")} ${DIM("(auto-verdict whenever files change)")}`);
|
|
581
581
|
}
|
|
582
582
|
|
|
583
|
+
async function cmdExplain(config, flags, positional) {
|
|
584
|
+
const verdictId = positional[0];
|
|
585
|
+
if (!verdictId) {
|
|
586
|
+
console.error("usage: zyntry-verdict explain <verdictId>");
|
|
587
|
+
console.error(" the full trial explained: verdict, every claim with its status, what the challenger proved");
|
|
588
|
+
process.exit(2);
|
|
589
|
+
}
|
|
590
|
+
const body = await api(config, flags, `/v1/verdicts/${verdictId}/explain`, { headers: authHeaders(config) });
|
|
591
|
+
const v = body.verdict ?? {};
|
|
592
|
+
console.log("");
|
|
593
|
+
console.log(GOLD(`⚖ ZYNTRY VERDICT — ${v.caseId ?? "?"} (${v.mode ?? "?"})`));
|
|
594
|
+
console.log(` status: ${v.status} · verdict: ${v.verdict ?? "n/a"} · ${v.calls ?? 0} calls / ${v.rounds ?? 0} rounds${v.escalated ? " · escalated to the courtroom" : ""}`);
|
|
595
|
+
if (v.verdict_reason) console.log(DIM(` reason: ${v.verdict_reason}`));
|
|
596
|
+
console.log("");
|
|
597
|
+
console.log(` ${body.summary ?? ""}`);
|
|
598
|
+
console.log("");
|
|
599
|
+
const claims = body.claims ?? [];
|
|
600
|
+
if (claims.length > 0) {
|
|
601
|
+
console.log(BOLD(" Claims:"));
|
|
602
|
+
for (const c of claims) {
|
|
603
|
+
const color = c.status === "verified" ? GREEN : c.status === "refuted" ? RED : c.status === "disputed" ? GOLD : DIM;
|
|
604
|
+
console.log(` ${color(`${c.status.padEnd(9)} ${c.id ?? ""}`)} ${(c.text ?? "").slice(0, 90)}`);
|
|
605
|
+
}
|
|
606
|
+
console.log("");
|
|
607
|
+
}
|
|
608
|
+
const failed = body.whatFailed ?? [];
|
|
609
|
+
if (failed.length > 0) {
|
|
610
|
+
console.log(BOLD(" What the challenger proved:"));
|
|
611
|
+
for (const c of failed) console.log(` ${RED("✗")} ${(c.text ?? "").slice(0, 90)}`);
|
|
612
|
+
console.log("");
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
|
|
583
616
|
async function cmdCertify(config, flags, positional) {
|
|
584
617
|
const verdictId = positional[0];
|
|
585
618
|
if (!verdictId) {
|
|
@@ -1051,6 +1084,7 @@ function printHelp() {
|
|
|
1051
1084
|
(exits 0 only on resolved-verified)
|
|
1052
1085
|
stats <caseId> per-repo dashboard: win rate, escalation rate, spend
|
|
1053
1086
|
certify <verdictId> export a signed verdict certificate (compliance proof)
|
|
1087
|
+
explain <verdictId> the full trial: verdict, every claim, what failed
|
|
1054
1088
|
standards <caseId> show the sealed standard's growth (visible moat)
|
|
1055
1089
|
|
|
1056
1090
|
git hook: zyntry-verdict gate --case my-case # in .git/hooks/pre-commit
|
|
@@ -1085,6 +1119,9 @@ switch (command) {
|
|
|
1085
1119
|
case "certify":
|
|
1086
1120
|
await cmdCertify(config, flags, positional);
|
|
1087
1121
|
break;
|
|
1122
|
+
case "explain":
|
|
1123
|
+
await cmdExplain(config, flags, positional);
|
|
1124
|
+
break;
|
|
1088
1125
|
case "standards":
|
|
1089
1126
|
await cmdStandards(config, flags, positional);
|
|
1090
1127
|
break;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zyntry-verdict",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
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": {
|
|
@@ -35,3 +35,4 @@
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
|
+
|