@tangle-network/agent-eval 0.122.2 → 0.122.4
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/analyst/index.js +3 -4
- package/dist/analyst/index.js.map +1 -1
- package/dist/benchmarks/index.js +5 -6
- package/dist/campaign/index.d.ts +273 -252
- package/dist/campaign/index.js +8 -5
- package/dist/{chunk-N3QPYIVG.js → chunk-4R4GTZBZ.js} +10 -10
- package/dist/{chunk-EXMKNOP5.js → chunk-75OCWDXJ.js} +137 -43
- package/dist/chunk-75OCWDXJ.js.map +1 -0
- package/dist/{chunk-BD2OK6ZW.js → chunk-7GLJX32M.js} +2 -2
- package/dist/{chunk-5CVUPHJ4.js → chunk-EAWKAVID.js} +74 -1
- package/dist/chunk-EAWKAVID.js.map +1 -0
- package/dist/{chunk-OZFTLMGS.js → chunk-GTSVLG2M.js} +2 -2
- package/dist/{chunk-U4R2AGY5.js → chunk-MWN2X7C5.js} +42 -32
- package/dist/{chunk-U4R2AGY5.js.map → chunk-MWN2X7C5.js.map} +1 -1
- package/dist/{chunk-5BYTIDZ7.js → chunk-SFXDMFGV.js} +2 -2
- package/dist/{chunk-XKSDSGSC.js → chunk-ULW7AATT.js} +3 -5
- package/dist/{chunk-XKSDSGSC.js.map → chunk-ULW7AATT.js.map} +1 -1
- package/dist/contract/index.d.ts +3 -0
- package/dist/contract/index.js +5 -5
- package/dist/index.d.ts +36 -30
- package/dist/index.js +11 -11
- package/dist/index.js.map +1 -1
- package/dist/openapi.json +1 -1
- package/dist/{run-campaign-2YJ3Z6JS.js → run-campaign-J6RHX2VO.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-3YYRZDON.js +0 -45
- package/dist/chunk-3YYRZDON.js.map +0 -1
- package/dist/chunk-5CVUPHJ4.js.map +0 -1
- package/dist/chunk-EXMKNOP5.js.map +0 -1
- /package/dist/{chunk-N3QPYIVG.js.map → chunk-4R4GTZBZ.js.map} +0 -0
- /package/dist/{chunk-BD2OK6ZW.js.map → chunk-7GLJX32M.js.map} +0 -0
- /package/dist/{chunk-OZFTLMGS.js.map → chunk-GTSVLG2M.js.map} +0 -0
- /package/dist/{chunk-5BYTIDZ7.js.map → chunk-SFXDMFGV.js.map} +0 -0
- /package/dist/{run-campaign-2YJ3Z6JS.js.map → run-campaign-J6RHX2VO.js.map} +0 -0
package/dist/openapi.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"openapi": "3.1.0",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "@tangle-network/agent-eval — wire protocol",
|
|
5
|
-
"version": "0.122.
|
|
5
|
+
"version": "0.122.4",
|
|
6
6
|
"description": "HTTP and stdio RPC interface to agent-eval. The TypeScript runtime is the source of truth; this spec is the contract that cross-language clients (Python, Rust, Go) generate from.\n\nWire-protocol version: 1.0.0. Bumps on breaking changes to request/response schemas.",
|
|
7
7
|
"contact": {
|
|
8
8
|
"name": "Tangle Network",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
planCampaignRun,
|
|
3
3
|
runCampaign
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4R4GTZBZ.js";
|
|
5
5
|
import "./chunk-PJQFMIOX.js";
|
|
6
6
|
import "./chunk-ZMXDQ4K7.js";
|
|
7
7
|
import "./chunk-VI2UW6B6.js";
|
|
@@ -11,4 +11,4 @@ export {
|
|
|
11
11
|
planCampaignRun,
|
|
12
12
|
runCampaign
|
|
13
13
|
};
|
|
14
|
-
//# sourceMappingURL=run-campaign-
|
|
14
|
+
//# sourceMappingURL=run-campaign-J6RHX2VO.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/agent-eval",
|
|
3
|
-
"version": "0.122.
|
|
3
|
+
"version": "0.122.4",
|
|
4
4
|
"description": "Evaluate and improve AI agents from runs, traces, judges, and feedback. Compare candidates, cluster failures, measure lift, and gate releases.",
|
|
5
5
|
"homepage": "https://github.com/tangle-network/agent-eval#readme",
|
|
6
6
|
"repository": {
|
package/dist/chunk-3YYRZDON.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
// src/concurrency.ts
|
|
2
|
-
var Mutex = class {
|
|
3
|
-
locked = false;
|
|
4
|
-
waiters = [];
|
|
5
|
-
async acquire() {
|
|
6
|
-
if (!this.locked) {
|
|
7
|
-
this.locked = true;
|
|
8
|
-
return () => this.release();
|
|
9
|
-
}
|
|
10
|
-
return new Promise((resolve) => {
|
|
11
|
-
this.waiters.push(() => {
|
|
12
|
-
resolve(() => this.release());
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
release() {
|
|
17
|
-
const next = this.waiters.shift();
|
|
18
|
-
if (next) {
|
|
19
|
-
next();
|
|
20
|
-
} else {
|
|
21
|
-
this.locked = false;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
async runExclusive(fn) {
|
|
25
|
-
const release = await this.acquire();
|
|
26
|
-
try {
|
|
27
|
-
return await fn();
|
|
28
|
-
} finally {
|
|
29
|
-
release();
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
/** True iff someone holds the lock right now. Diagnostics only. */
|
|
33
|
-
get isLocked() {
|
|
34
|
-
return this.locked;
|
|
35
|
-
}
|
|
36
|
-
/** Pending waiter count. Diagnostics only. */
|
|
37
|
-
get pending() {
|
|
38
|
-
return this.waiters.length;
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
export {
|
|
43
|
-
Mutex
|
|
44
|
-
};
|
|
45
|
-
//# sourceMappingURL=chunk-3YYRZDON.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/concurrency.ts"],"sourcesContent":["/**\n * concurrency — small primitives the evolution loop needs.\n *\n * `Mutex` is a zero-dep async lock with FIFO fairness. The evolution loop\n * uses it to serialise checkout/build/commit sequences inside a single\n * pool slot, and to gate concurrent JSONL writers (see\n * `lockedJsonlReferenceReplayStore`).\n *\n * Deliberately minimal — no priority queue, no timeouts. If you need\n * those, swap to `async-mutex` at the call site.\n */\n\nexport class Mutex {\n private locked = false\n private readonly waiters: Array<() => void> = []\n\n async acquire(): Promise<() => void> {\n if (!this.locked) {\n this.locked = true\n return () => this.release()\n }\n return new Promise<() => void>((resolve) => {\n this.waiters.push(() => {\n resolve(() => this.release())\n })\n })\n }\n\n private release(): void {\n const next = this.waiters.shift()\n if (next) {\n next()\n } else {\n this.locked = false\n }\n }\n\n async runExclusive<T>(fn: () => Promise<T> | T): Promise<T> {\n const release = await this.acquire()\n try {\n return await fn()\n } finally {\n release()\n }\n }\n\n /** True iff someone holds the lock right now. Diagnostics only. */\n get isLocked(): boolean {\n return this.locked\n }\n\n /** Pending waiter count. Diagnostics only. */\n get pending(): number {\n return this.waiters.length\n }\n}\n"],"mappings":";AAYO,IAAM,QAAN,MAAY;AAAA,EACT,SAAS;AAAA,EACA,UAA6B,CAAC;AAAA,EAE/C,MAAM,UAA+B;AACnC,QAAI,CAAC,KAAK,QAAQ;AAChB,WAAK,SAAS;AACd,aAAO,MAAM,KAAK,QAAQ;AAAA,IAC5B;AACA,WAAO,IAAI,QAAoB,CAAC,YAAY;AAC1C,WAAK,QAAQ,KAAK,MAAM;AACtB,gBAAQ,MAAM,KAAK,QAAQ,CAAC;AAAA,MAC9B,CAAC;AAAA,IACH,CAAC;AAAA,EACH;AAAA,EAEQ,UAAgB;AACtB,UAAM,OAAO,KAAK,QAAQ,MAAM;AAChC,QAAI,MAAM;AACR,WAAK;AAAA,IACP,OAAO;AACL,WAAK,SAAS;AAAA,IAChB;AAAA,EACF;AAAA,EAEA,MAAM,aAAgB,IAAsC;AAC1D,UAAM,UAAU,MAAM,KAAK,QAAQ;AACnC,QAAI;AACF,aAAO,MAAM,GAAG;AAAA,IAClB,UAAE;AACA,cAAQ;AAAA,IACV;AAAA,EACF;AAAA;AAAA,EAGA,IAAI,WAAoB;AACtB,WAAO,KAAK;AAAA,EACd;AAAA;AAAA,EAGA,IAAI,UAAkB;AACpB,WAAO,KAAK,QAAQ;AAAA,EACtB;AACF;","names":[]}
|