@kindgi/client 0.1.4-rc.0 → 0.1.4-rc.1

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/index.cjs CHANGED
@@ -109,6 +109,7 @@ function fromWire(body) {
109
109
  case "approval-not-decided":
110
110
  case "slug-conflict":
111
111
  case "project-default-already-exists":
112
+ case "registry-read-only":
112
113
  return { code: "conflict", message, reason: code };
113
114
  case "invalid-request":
114
115
  case "validation-failed":
@@ -1368,6 +1369,10 @@ function tryReadRevisionConflict(err) {
1368
1369
  }
1369
1370
 
1370
1371
  // src/resources/eval-runs.ts
1372
+ function comparisonOf(run) {
1373
+ const result = run.result;
1374
+ return run.kind === "judged" && result?.summary !== void 0 && Array.isArray(result.perCase) ? result : void 0;
1375
+ }
1371
1376
  function makeEvalRunsClient(transport) {
1372
1377
  const seg = (s) => encodeURIComponent(s);
1373
1378
  return {
@@ -4022,6 +4027,7 @@ function createClient(options) {
4022
4027
 
4023
4028
  exports.KindgiApiError = KindgiApiError;
4024
4029
  exports.SseHttpError = SseHttpError;
4030
+ exports.comparisonOf = comparisonOf;
4025
4031
  exports.createClient = createClient;
4026
4032
  exports.followRun = followRun;
4027
4033
  exports.fromWire = fromWire;