@warmdrift/kgauto-compiler 2.0.0-alpha.62 → 2.0.0-alpha.63
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/{chunk-ABFXMO73.mjs → chunk-ZU62HRWK.mjs} +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -2
- package/dist/index.mjs +6 -2
- package/dist/key-health.js +1 -1
- package/dist/key-health.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -887,7 +887,7 @@ declare function runGoldenEval(opts: GoldenEvalOptions): Promise<GoldenEvalRunRe
|
|
|
887
887
|
* guard in `tests/version.test.ts` fails the suite (and therefore
|
|
888
888
|
* `prepublishOnly`) when they diverge — a stale constant cannot reach npm.
|
|
889
889
|
*/
|
|
890
|
-
declare const LIBRARY_VERSION = "2.0.0-alpha.
|
|
890
|
+
declare const LIBRARY_VERSION = "2.0.0-alpha.63";
|
|
891
891
|
|
|
892
892
|
/**
|
|
893
893
|
* Oracle contract — how an app tells the brain whether a response was good.
|
package/dist/index.d.ts
CHANGED
|
@@ -887,7 +887,7 @@ declare function runGoldenEval(opts: GoldenEvalOptions): Promise<GoldenEvalRunRe
|
|
|
887
887
|
* guard in `tests/version.test.ts` fails the suite (and therefore
|
|
888
888
|
* `prepublishOnly`) when they diverge — a stale constant cannot reach npm.
|
|
889
889
|
*/
|
|
890
|
-
declare const LIBRARY_VERSION = "2.0.0-alpha.
|
|
890
|
+
declare const LIBRARY_VERSION = "2.0.0-alpha.63";
|
|
891
891
|
|
|
892
892
|
/**
|
|
893
893
|
* Oracle contract — how an app tells the brain whether a response was good.
|
package/dist/index.js
CHANGED
|
@@ -7173,6 +7173,9 @@ function combineOrderSwappedVerdicts(run1, run2) {
|
|
|
7173
7173
|
if (run1 === run2) return run1;
|
|
7174
7174
|
return "tied";
|
|
7175
7175
|
}
|
|
7176
|
+
function replayRetryDelayMs(errorCode) {
|
|
7177
|
+
return errorCode === "rate_limit" ? 65e3 : 2e3;
|
|
7178
|
+
}
|
|
7176
7179
|
function p50(values) {
|
|
7177
7180
|
if (values.length === 0) return null;
|
|
7178
7181
|
const sorted = [...values].sort((a, b) => a - b);
|
|
@@ -7258,7 +7261,8 @@ async function runGoldenEval(opts) {
|
|
|
7258
7261
|
let started = Date.now();
|
|
7259
7262
|
let exec = await attempt();
|
|
7260
7263
|
if (!exec.ok && exec.errorType === "retryable") {
|
|
7261
|
-
|
|
7264
|
+
const delayMs = replayRetryDelayMs(exec.errorCode);
|
|
7265
|
+
await new Promise((r) => setTimeout(r, delayMs));
|
|
7262
7266
|
started = Date.now();
|
|
7263
7267
|
exec = await attempt();
|
|
7264
7268
|
}
|
|
@@ -7765,7 +7769,7 @@ function createBrainForwardRoutes(config) {
|
|
|
7765
7769
|
}
|
|
7766
7770
|
|
|
7767
7771
|
// src/version.ts
|
|
7768
|
-
var LIBRARY_VERSION = "2.0.0-alpha.
|
|
7772
|
+
var LIBRARY_VERSION = "2.0.0-alpha.63";
|
|
7769
7773
|
|
|
7770
7774
|
// src/key-health.ts
|
|
7771
7775
|
var JSON_HEADERS2 = { "Content-Type": "application/json" };
|
package/dist/index.mjs
CHANGED
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
LIBRARY_VERSION,
|
|
17
17
|
createKeyHealthRoute
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ZU62HRWK.mjs";
|
|
19
19
|
import {
|
|
20
20
|
ABSOLUTE_FLOOR,
|
|
21
21
|
ARCHETYPE_FLOOR_DEFAULT,
|
|
@@ -4585,6 +4585,9 @@ function combineOrderSwappedVerdicts(run1, run2) {
|
|
|
4585
4585
|
if (run1 === run2) return run1;
|
|
4586
4586
|
return "tied";
|
|
4587
4587
|
}
|
|
4588
|
+
function replayRetryDelayMs(errorCode) {
|
|
4589
|
+
return errorCode === "rate_limit" ? 65e3 : 2e3;
|
|
4590
|
+
}
|
|
4588
4591
|
function p50(values) {
|
|
4589
4592
|
if (values.length === 0) return null;
|
|
4590
4593
|
const sorted = [...values].sort((a, b) => a - b);
|
|
@@ -4670,7 +4673,8 @@ async function runGoldenEval(opts) {
|
|
|
4670
4673
|
let started = Date.now();
|
|
4671
4674
|
let exec = await attempt();
|
|
4672
4675
|
if (!exec.ok && exec.errorType === "retryable") {
|
|
4673
|
-
|
|
4676
|
+
const delayMs = replayRetryDelayMs(exec.errorCode);
|
|
4677
|
+
await new Promise((r) => setTimeout(r, delayMs));
|
|
4674
4678
|
started = Date.now();
|
|
4675
4679
|
exec = await attempt();
|
|
4676
4680
|
}
|
package/dist/key-health.js
CHANGED
|
@@ -25,7 +25,7 @@ __export(key_health_exports, {
|
|
|
25
25
|
module.exports = __toCommonJS(key_health_exports);
|
|
26
26
|
|
|
27
27
|
// src/version.ts
|
|
28
|
-
var LIBRARY_VERSION = "2.0.0-alpha.
|
|
28
|
+
var LIBRARY_VERSION = "2.0.0-alpha.63";
|
|
29
29
|
|
|
30
30
|
// src/key-health.ts
|
|
31
31
|
var JSON_HEADERS = { "Content-Type": "application/json" };
|
package/dist/key-health.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@warmdrift/kgauto-compiler",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.63",
|
|
4
4
|
"description": "Prompt compiler with executable provider knowledge for multi-model AI apps: normalized multi-provider transport with fallback chains, compile-time cliff guards, a curated model registry, and a telemetry flight recorder. Swap models without rewriting prompts.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|