@sverka/arena 0.2.24 → 0.2.26
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/bin.d.mts +23 -1
- package/dist/bin.d.mts.map +1 -1
- package/dist/bin.mjs +275 -7
- package/dist/bin.mjs.map +1 -1
- package/dist/index.d.mts +299 -3
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/{aggregate-report-BkLMmG16.mjs → pack-DoL1QL1y.mjs} +1445 -9
- package/dist/pack-DoL1QL1y.mjs.map +1 -0
- package/package.json +4 -4
- package/dist/aggregate-report-BkLMmG16.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -440,9 +440,11 @@ export declare function judgeAllRuns(results: RunResult[], tasks: Task[], config
|
|
|
440
440
|
export declare function compareCombos(baseline: RunResult, candidate: RunResult): ComboComparison;
|
|
441
441
|
//#endregion
|
|
442
442
|
//#region src/config.d.ts
|
|
443
|
+
type ArenaErrorCode = "CONFIG_INVALID" | "CONFIG_NOT_FOUND" | "UNKNOWN_AGENT" | "SCHEMA_INVALID" | "PUBLISH_CONFLICT" | "REGISTRY_UNAVAILABLE" | "PACK_NOT_FOUND" | "PACK_INVALID";
|
|
443
444
|
export declare class ArenaError extends Error {
|
|
444
|
-
readonly code:
|
|
445
|
-
|
|
445
|
+
readonly code: ArenaErrorCode;
|
|
446
|
+
readonly cause: unknown;
|
|
447
|
+
constructor(message: string, code: ArenaErrorCode, cause?: unknown);
|
|
446
448
|
}
|
|
447
449
|
export declare function resolveAdapter(name: string): AgentAdapter;
|
|
448
450
|
declare const configFileSchema: z.ZodObject<{
|
|
@@ -561,5 +563,299 @@ export declare function arenaResultToEvents(result: ArenaResult): RunEvent[];
|
|
|
561
563
|
/** Render the whole arena matrix as a standalone sverka HTML report. */
|
|
562
564
|
export declare function writeAggregateReport(result: ArenaResult, outputPath: string, context?: ReportContext): void;
|
|
563
565
|
//#endregion
|
|
564
|
-
|
|
566
|
+
//#region src/registry.d.ts
|
|
567
|
+
interface TaskResult {
|
|
568
|
+
readonly task: string;
|
|
569
|
+
/** sha256 of the task prompt — a prompt edit breaks comparability. */
|
|
570
|
+
readonly promptHash: string;
|
|
571
|
+
readonly score: {
|
|
572
|
+
readonly passed: boolean;
|
|
573
|
+
readonly findings: number;
|
|
574
|
+
};
|
|
575
|
+
readonly metrics: {
|
|
576
|
+
readonly tokens?: number;
|
|
577
|
+
readonly toolCalls?: number;
|
|
578
|
+
readonly durationMs: number;
|
|
579
|
+
readonly stopReason?: string;
|
|
580
|
+
};
|
|
581
|
+
readonly traceRef?: string;
|
|
582
|
+
}
|
|
583
|
+
interface ArenaResultV1 {
|
|
584
|
+
readonly schema: "arena.result/v1";
|
|
585
|
+
readonly runId: string;
|
|
586
|
+
readonly pack: string;
|
|
587
|
+
readonly agent: string;
|
|
588
|
+
readonly model: string;
|
|
589
|
+
readonly plugins: readonly string[];
|
|
590
|
+
readonly sverkaVersion: string;
|
|
591
|
+
readonly startedAt: string;
|
|
592
|
+
readonly tasks: readonly TaskResult[];
|
|
593
|
+
}
|
|
594
|
+
export declare const arenaResultV1Schema: z.ZodObject<{
|
|
595
|
+
schema: z.ZodLiteral<"arena.result/v1">;
|
|
596
|
+
runId: z.ZodString;
|
|
597
|
+
pack: z.ZodString;
|
|
598
|
+
agent: z.ZodString;
|
|
599
|
+
model: z.ZodString;
|
|
600
|
+
plugins: z.ZodArray<z.ZodString>;
|
|
601
|
+
sverkaVersion: z.ZodString;
|
|
602
|
+
startedAt: z.ZodISODateTime;
|
|
603
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
604
|
+
task: z.ZodString;
|
|
605
|
+
promptHash: z.ZodString;
|
|
606
|
+
score: z.ZodObject<{
|
|
607
|
+
passed: z.ZodBoolean;
|
|
608
|
+
findings: z.ZodNumber;
|
|
609
|
+
}, z.core.$strip>;
|
|
610
|
+
metrics: z.ZodObject<{
|
|
611
|
+
tokens: z.ZodOptional<z.ZodNumber>;
|
|
612
|
+
toolCalls: z.ZodOptional<z.ZodNumber>;
|
|
613
|
+
durationMs: z.ZodNumber;
|
|
614
|
+
stopReason: z.ZodOptional<z.ZodString>;
|
|
615
|
+
}, z.core.$strip>;
|
|
616
|
+
traceRef: z.ZodOptional<z.ZodString>;
|
|
617
|
+
}, z.core.$strip>>;
|
|
618
|
+
}, z.core.$strip>;
|
|
619
|
+
/** Validate a parsed value as arena.result/v1 — names failing fields. */
|
|
620
|
+
export declare function parseArenaResultV1(doc: unknown): ArenaResultV1;
|
|
621
|
+
/** Canonical result path: results/<pack>/<agent>/<YYYY-MM-DD>/<runId>.json */
|
|
622
|
+
export declare function resultPath(doc: ArenaResultV1, date?: string): string;
|
|
623
|
+
/** sha256 of a task prompt — the comparability cohort key. */
|
|
624
|
+
export declare function promptHash(prompt: string): string;
|
|
625
|
+
/** A trace payload: a filesystem path to copy, or inline data. */
|
|
626
|
+
type TraceInput = string | {
|
|
627
|
+
name: string;
|
|
628
|
+
data: unknown;
|
|
629
|
+
};
|
|
630
|
+
interface PublishOptions {
|
|
631
|
+
/** Trace files/payloads — written under traces/<runId>/<name>. */
|
|
632
|
+
traces?: readonly TraceInput[];
|
|
633
|
+
/** Override the YYYY-MM-DD partition (default: startedAt day). */
|
|
634
|
+
date?: string;
|
|
635
|
+
}
|
|
636
|
+
interface ListQuery {
|
|
637
|
+
pack?: string;
|
|
638
|
+
agent?: string;
|
|
639
|
+
/** ISO date/datetime lower bound on startedAt (inclusive). */
|
|
640
|
+
since?: string;
|
|
641
|
+
}
|
|
642
|
+
interface ArenaRegistry {
|
|
643
|
+
publish(result: ArenaResultV1, opts?: PublishOptions): Promise<string>;
|
|
644
|
+
list(query?: ListQuery): Promise<ArenaResultV1[]>;
|
|
645
|
+
}
|
|
646
|
+
interface GitRegistryConfig {
|
|
647
|
+
/** Clone URL — https or git@. */
|
|
648
|
+
url: string;
|
|
649
|
+
/** Branch to publish on (default: "main"). */
|
|
650
|
+
branch?: string;
|
|
651
|
+
/** Local checkout dir (default: a tmp cache keyed by URL). */
|
|
652
|
+
dir?: string;
|
|
653
|
+
/** Bearer token for https remotes (header-scoped, never persisted). */
|
|
654
|
+
token?: string;
|
|
655
|
+
}
|
|
656
|
+
export declare function createGitRegistry(cfg: GitRegistryConfig): ArenaRegistry;
|
|
657
|
+
/** Minimal structural subset of the AWS SDK S3 client we depend on. */
|
|
658
|
+
interface S3ClientLike {
|
|
659
|
+
putObject(input: {
|
|
660
|
+
Bucket: string;
|
|
661
|
+
Key: string;
|
|
662
|
+
Body: string | Uint8Array;
|
|
663
|
+
}): Promise<unknown>;
|
|
664
|
+
getObject?(input: {
|
|
665
|
+
Bucket: string;
|
|
666
|
+
Key: string;
|
|
667
|
+
}): Promise<{
|
|
668
|
+
Body?: unknown;
|
|
669
|
+
}>;
|
|
670
|
+
listObjectsV2?(input: {
|
|
671
|
+
Bucket: string;
|
|
672
|
+
Prefix?: string;
|
|
673
|
+
ContinuationToken?: string;
|
|
674
|
+
}): Promise<{
|
|
675
|
+
Contents?: {
|
|
676
|
+
Key?: string;
|
|
677
|
+
}[];
|
|
678
|
+
IsTruncated?: boolean;
|
|
679
|
+
NextContinuationToken?: string;
|
|
680
|
+
}>;
|
|
681
|
+
}
|
|
682
|
+
interface S3RegistryConfig {
|
|
683
|
+
bucket: string;
|
|
684
|
+
/** Key prefix for the whole registry tree (default: ""). */
|
|
685
|
+
prefix?: string;
|
|
686
|
+
/** Client — injectable so tests need no AWS SDK. When omitted, the
|
|
687
|
+
* optional `@aws-sdk/client-s3` peer is imported lazily. */
|
|
688
|
+
client?: S3ClientLike;
|
|
689
|
+
}
|
|
690
|
+
export declare function createS3Registry(cfg: S3RegistryConfig): ArenaRegistry;
|
|
691
|
+
/** Registry over a local directory — a git checkout or a plain tree. */
|
|
692
|
+
export declare function createFileRegistry(dir: string): ArenaRegistry;
|
|
693
|
+
/**
|
|
694
|
+
* Publish several documents under ONE finalize — a matrix explosion
|
|
695
|
+
* produces one commit+push, not N. Internal: package code only.
|
|
696
|
+
*/
|
|
697
|
+
export declare function publishBatch(registry: ArenaRegistry, docs: readonly {
|
|
698
|
+
doc: ArenaResultV1;
|
|
699
|
+
opts?: PublishOptions;
|
|
700
|
+
}[], message: string): Promise<string[]>;
|
|
701
|
+
/**
|
|
702
|
+
* Rebuild index.json by scanning the results/ tree — the CI job that
|
|
703
|
+
* denormalizes after publish pushes (`arena reindex`).
|
|
704
|
+
*/
|
|
705
|
+
export declare function reindexRegistry(registry: ArenaRegistry): Promise<{
|
|
706
|
+
runs: number;
|
|
707
|
+
}>;
|
|
708
|
+
/**
|
|
709
|
+
* Resolve a registry reference to an ArenaRegistry:
|
|
710
|
+
* s3://bucket[/prefix] → s3 backend
|
|
711
|
+
* file:///abs/path | ./dir → file backend
|
|
712
|
+
* git::<url> | <git-url> → git backend
|
|
713
|
+
*/
|
|
714
|
+
export declare function openRegistry(ref: string, opts?: {
|
|
715
|
+
token?: string;
|
|
716
|
+
dir?: string;
|
|
717
|
+
client?: S3ClientLike;
|
|
718
|
+
}): ArenaRegistry;
|
|
719
|
+
/**
|
|
720
|
+
* Resolve a registry ref to a local directory — file refs return their
|
|
721
|
+
* path, git refs return the (cloned) checkout dir. s3 registries have no
|
|
722
|
+
* local dir — callers that need one must error themselves.
|
|
723
|
+
*/
|
|
724
|
+
export declare function resolveRegistryDir(ref: string, opts?: {
|
|
725
|
+
token?: string;
|
|
726
|
+
dir?: string;
|
|
727
|
+
}): Promise<string>;
|
|
728
|
+
//#endregion
|
|
729
|
+
//#region src/publish.d.ts
|
|
730
|
+
interface PublishContext {
|
|
731
|
+
/** Task-pack name — the leaderboard's first-level grouping. */
|
|
732
|
+
pack: string;
|
|
733
|
+
/** The run's AgentAdapter.id (matrix results carry no agent field). */
|
|
734
|
+
agent: string;
|
|
735
|
+
/** sverka version stamp — part of the comparability cohort. */
|
|
736
|
+
sverkaVersion: string;
|
|
737
|
+
/** startedAt override (default: result.timestamp). */
|
|
738
|
+
startedAt?: string;
|
|
739
|
+
/** taskId → prompt supplement — used when the file's analysis section
|
|
740
|
+
* does not carry the prompt (e.g. hand-shaped results). */
|
|
741
|
+
prompts?: Record<string, string>;
|
|
742
|
+
/** Trace file paths attached to v1-document publishes (--trace). */
|
|
743
|
+
traces?: readonly string[];
|
|
744
|
+
/** Deterministic runId generator for tests: called per cell. */
|
|
745
|
+
runId?: (cell: {
|
|
746
|
+
model: string;
|
|
747
|
+
plugins: string[];
|
|
748
|
+
}, index: number) => string;
|
|
749
|
+
}
|
|
750
|
+
/** Unique per-document run id — readable, sortable, collision-free. */
|
|
751
|
+
export declare function newRunId(): string;
|
|
752
|
+
/**
|
|
753
|
+
* Explode a matrix {@link ArenaResult} into one `arena.result/v1`
|
|
754
|
+
* document per (model, plugin-set) cell.
|
|
755
|
+
*/
|
|
756
|
+
export declare function explodeResult(result: ArenaResult, ctx: PublishContext): ArenaResultV1[];
|
|
757
|
+
/**
|
|
758
|
+
* Explode a matrix result and publish every cell document (with its
|
|
759
|
+
* traces) to the registry. Returns the registry-relative result paths.
|
|
760
|
+
*/
|
|
761
|
+
export declare function publishResult(result: ArenaResult, registry: ArenaRegistry, ctx: PublishContext): Promise<string[]>;
|
|
762
|
+
/**
|
|
763
|
+
* Publish a results file — accepts either an `arena.result/v1` document
|
|
764
|
+
* (or an array of them, published as-is) or a matrix `results.json`
|
|
765
|
+
* (exploded per cell). Returns the registry-relative result paths.
|
|
766
|
+
*/
|
|
767
|
+
export declare function publishFile(file: string, registry: ArenaRegistry, ctx: PublishContext): Promise<string[]>;
|
|
768
|
+
//#endregion
|
|
769
|
+
//#region src/board.d.ts
|
|
770
|
+
interface BoardRow {
|
|
771
|
+
readonly agent: string;
|
|
772
|
+
readonly model: string;
|
|
773
|
+
/** passed runs / total runs, 0..1 */
|
|
774
|
+
readonly successRate: number;
|
|
775
|
+
readonly medianTokens?: number;
|
|
776
|
+
readonly medianDurationMs: number;
|
|
777
|
+
readonly runs: number;
|
|
778
|
+
/** Success rate per day for the last `days` days — NaN on days with no runs. */
|
|
779
|
+
readonly trend: readonly number[];
|
|
780
|
+
}
|
|
781
|
+
interface BoardCohort {
|
|
782
|
+
readonly pack: string;
|
|
783
|
+
readonly task: string;
|
|
784
|
+
readonly sverkaVersion: string;
|
|
785
|
+
readonly promptHash: string;
|
|
786
|
+
readonly rows: readonly BoardRow[];
|
|
787
|
+
}
|
|
788
|
+
interface BuildBoardOptions {
|
|
789
|
+
/** Trend window length in days (default: 30). */
|
|
790
|
+
days?: number;
|
|
791
|
+
/** Anchor date for the trend window (default: the cohort's latest sample). */
|
|
792
|
+
now?: Date;
|
|
793
|
+
}
|
|
794
|
+
/**
|
|
795
|
+
* Aggregate published results into board cohorts. The cohort key is
|
|
796
|
+
* (pack, task, sverkaVersion, promptHash) — a board row is only ever a
|
|
797
|
+
* comparison inside one prompt+toolchain generation.
|
|
798
|
+
*/
|
|
799
|
+
export declare function buildBoard(results: readonly ArenaResultV1[], opts?: BuildBoardOptions): BoardCohort[];
|
|
800
|
+
/** Sparkline over the trend array — NaN days render as a gap dot. */
|
|
801
|
+
export declare function sparkline(trend: readonly number[]): string;
|
|
802
|
+
/** Render the leaderboard as a text table — `sverka-arena board`. */
|
|
803
|
+
export declare function renderBoard(cohorts: readonly BoardCohort[]): string;
|
|
804
|
+
/**
|
|
805
|
+
* Render the leaderboard as a self-contained static HTML page — no JS,
|
|
806
|
+
* no server. Used by `sverka-arena board --format html` and the website
|
|
807
|
+
* arena page (generated at build time from the registry).
|
|
808
|
+
*/
|
|
809
|
+
export declare function renderBoardHtml(cohorts: readonly BoardCohort[], opts?: {
|
|
810
|
+
title?: string;
|
|
811
|
+
generatedAt?: string;
|
|
812
|
+
}): string;
|
|
813
|
+
//#endregion
|
|
814
|
+
//#region src/pack.d.ts
|
|
815
|
+
interface PackDefaults {
|
|
816
|
+
readonly timeoutMs?: number;
|
|
817
|
+
readonly repetitions?: number;
|
|
818
|
+
readonly outputDir?: string;
|
|
819
|
+
}
|
|
820
|
+
interface TaskPack {
|
|
821
|
+
readonly name: string;
|
|
822
|
+
readonly version?: string;
|
|
823
|
+
readonly description?: string;
|
|
824
|
+
/** Local directory the pack was loaded from. */
|
|
825
|
+
readonly dir: string;
|
|
826
|
+
readonly tasks: readonly Task[];
|
|
827
|
+
readonly defaults: PackDefaults;
|
|
828
|
+
}
|
|
829
|
+
interface PackLint {
|
|
830
|
+
readonly errors: readonly string[];
|
|
831
|
+
readonly warnings: readonly string[];
|
|
832
|
+
}
|
|
833
|
+
interface LoadOptions {
|
|
834
|
+
/** Where `repo:` fixtures are cloned (default: tmp cache). */
|
|
835
|
+
cacheDir?: string;
|
|
836
|
+
}
|
|
837
|
+
/** Load a pack directory into a {@link TaskPack}. */
|
|
838
|
+
export declare function loadPack(dir: string, opts?: LoadOptions): Promise<TaskPack>;
|
|
839
|
+
/**
|
|
840
|
+
* Validate a pack directory without loading it into a run — collects
|
|
841
|
+
* errors AND warnings instead of throwing on the first problem.
|
|
842
|
+
*/
|
|
843
|
+
export declare function lintPack(dir: string): Promise<PackLint>;
|
|
844
|
+
/** Scaffold a new pack at `<dir>` — `sverka-arena pack init <name>`. */
|
|
845
|
+
export declare function initPack(dir: string, name: string): Promise<void>;
|
|
846
|
+
interface ResolvePackOptions extends LoadOptions {
|
|
847
|
+
/** Registry ref for bare pack names (`packs/<name>/` inside it). */
|
|
848
|
+
registry?: string;
|
|
849
|
+
/** Bearer token for https git registries. */
|
|
850
|
+
token?: string;
|
|
851
|
+
}
|
|
852
|
+
/**
|
|
853
|
+
* Resolve a pack reference to a loaded {@link TaskPack}:
|
|
854
|
+
* <dir> — a local pack directory
|
|
855
|
+
* <git-url> — cloned into a tmp cache, then loaded
|
|
856
|
+
* <bare-name> — packs/<name>/ inside --registry (file or git)
|
|
857
|
+
*/
|
|
858
|
+
export declare function resolvePack(ref: string, opts?: ResolvePackOptions): Promise<TaskPack>;
|
|
859
|
+
//#endregion
|
|
860
|
+
export type { ActionStep, AgentAdapter, AgentProcess, AgentSpawnConfig, AggregateMetrics, ArenaConfig, ArenaConfigFile, ArenaErrorCode, ArenaRegistry, ArenaResult, ArenaResultV1, BoardCohort, BoardRow, BuildBoardOptions, CaseAnalysis, CheckResult, ComboComparison, DeterministicCheck, GitRegistryConfig, JudgeConfig, JudgeVerdict, ListQuery, ModelConfig, Observation, PackDefaults, PackLint, PluginConfig, PublishContext, PublishOptions, ResolvePackOptions, RunMetrics, RunResult, S3ClientLike, S3RegistryConfig, Task, TaskPack, TaskResult, ToolCall, ToolCallMessage, ToolCallUpdateMessage, TraceData, TraceInput, TraceStep };
|
|
565
861
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/types.ts","../src/adapters/devin.ts","../src/acp.ts","../src/runner.ts","../src/judge.ts","../src/config.ts","../src/report.ts","../src/trace-report.ts","../src/aggregate-report.ts"],"mappings":";;;;;;;;;UACiB;EACf;EACA,MAAM,QAAQ,mBAAmB;;UAGlB;EACf,OAAO;EACP;EACA,SAAS;EACT;EACA,MAAM;;UAGS;EACf,IAAI,gBAAgB,oBAAoB,QAAQ;EAChD;;;UAIe;EACf;EACA;EACA;;;UAIe;EACf;EACA;EACA;EACA;EACA;;;UAIe;EACf;EACA;EACA;EACA;;EAEA;;EAEA;;;;;EAKA;;;;EAIA;;;EAGA,SAAS;;;UAIM;EACf;EACA;EACA;;;UAIe;EACf,OAAO;EACP,OAAO;EACP,QAAQ;EACR,SAAS;;EAET;EACA;EACA;;EAEA,QAAQ;;;;;EAKR;;;UAIe;;EAEf,OAAO;;EAEP,OAAO;;EAEP;;EAEA;;EAEA;;;UAIe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;EACA;EACA;;;UAIe;EACf;EACA;EACA;EACA,SAAS;EACT,OAAO;;EAEP;EACA;;EAEA,cAAc;EACd;;EAEA,UAAU;;;UAIK;EACf;EACA;EACA;EACA;;;UA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AG,uBACZ,iBACC;;;;;;;;;;wBAoIa,gBACd,SAAS,aACT,OAAO,SACN;;;;qBC5yBU;;;;;;;;;wBAkBG,iBACd,MAAM,MACN,mBACA,QAAQ,aACR;;;;;;;;wBA0Cc,mBACd,kBACA,kBACA,KAAK,YACJ;;;;;wBAoDmB,SACpB,KAAK,WACL,MAAM,MACN,QAAQ,aACR,mBACC,QAAQ;;;;;;;wBAmCW,aACpB,SAAS,aACT,OAAO,QACP,QAAQ,cACP,QAAQ;;;;;;;;;;;;wBAoCK,cACd,UAAU,WACV,WAAW,YACV;;;
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/types.ts","../src/adapters/devin.ts","../src/acp.ts","../src/runner.ts","../src/judge.ts","../src/config.ts","../src/report.ts","../src/trace-report.ts","../src/aggregate-report.ts","../src/registry.ts","../src/publish.ts","../src/board.ts","../src/pack.ts"],"mappings":";;;;;;;;;UACiB;EACf;EACA,MAAM,QAAQ,mBAAmB;;UAGlB;EACf,OAAO;EACP;EACA,SAAS;EACT;EACA,MAAM;;UAGS;EACf,IAAI,gBAAgB,oBAAoB,QAAQ;EAChD;;;UAIe;EACf;EACA;EACA;;;UAIe;EACf;EACA;EACA;EACA;EACA;;;UAIe;EACf;EACA;EACA;EACA;;EAEA;;EAEA;;;;;EAKA;;;;EAIA;;;EAGA,SAAS;;;UAIM;EACf;EACA;EACA;;;UAIe;EACf,OAAO;EACP,OAAO;EACP,QAAQ;EACR,SAAS;;EAET;EACA;EACA;;EAEA,QAAQ;;;;;EAKR;;;UAIe;;EAEf,OAAO;;EAEP,OAAO;;EAEP;;EAEA;;EAEA;;;UAIe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;EACA;EACA;;;UAIe;EACf;EACA;EACA;EACA,SAAS;EACT,OAAO;;EAEP;EACA;;EAEA,cAAc;EACd;;EAEA,UAAU;;;UAIK;EACf;EACA;EACA;EACA;;;UAIe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EAC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ACN;WACA;WACA;;UAGM;WACN;WACA;WACA;;WAEA;WACA,gBAAgB;WAChB,UAAU;;UAGJ;WACN;WACA;;UAKD;;EAER;;;wBAoFoB,SACpB,aACA,OAAM,cACL,QAAQ;;;;;wBAkFW,SAAS,cAAc,QAAQ;;wBAwF/B,SAAS,aAAa,eAAe;UAkH1C,2BAA2B;;EAE1C;;EAEA;;;;;;;;wBASoB,YACpB,aACA,OAAM,qBACL,QAAQ"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as
|
|
1
|
+
import { A as defineConfig, B as judgeAllRuns, C as resultPath, D as writeAggregateReport, E as runStepId, F as pluginCombinations, G as extractUsageTokens, H as parseJudgeResponse, I as runArena, J as createPermissionHandler, K as installPlugins, L as DEFAULT_JUDGE_PROMPT, M as resolveAdapter, N as aggregateResults, O as renderReport, P as computeAnalysis, R as buildJudgePrompt, S as resolveRegistryDir, T as arenaResultToEvents, U as DevinAdapter, V as judgeRun, W as countLlmCalls, X as sanitizeEnv, Y as runAcpSession, _ as openRegistry, a as buildBoard, b as publishBatch, c as sparkline, d as publishFile, f as publishResult, g as createS3Registry, h as createGitRegistry, i as resolvePack, j as loadArenaConfig, k as ArenaError, l as explodeResult, m as createFileRegistry, n as lintPack, o as renderBoard, p as arenaResultV1Schema, q as transcriptDir, r as loadPack, s as renderBoardHtml, t as initPack, u as newRunId, v as parseArenaResultV1, w as arenaResultGraph, x as reindexRegistry, y as promptHash, z as compareCombos } from "./pack-DoL1QL1y.mjs";
|
|
2
2
|
import { createHtmlRenderer } from "@sverka/reporter";
|
|
3
3
|
//#region src/trace-report.ts
|
|
4
4
|
function weight(kind) {
|
|
@@ -219,6 +219,6 @@ function writeTraceReport(result, outputPath, context) {
|
|
|
219
219
|
renderer.flush();
|
|
220
220
|
}
|
|
221
221
|
//#endregion
|
|
222
|
-
export { ArenaError, DEFAULT_JUDGE_PROMPT, DevinAdapter, aggregateResults, arenaResultGraph, arenaResultToEvents, buildJudgePrompt, compareCombos, computeAnalysis, countLlmCalls, createPermissionHandler, defineConfig, extractUsageTokens, installPlugins, judgeAllRuns, judgeRun, loadArenaConfig, parseJudgeResponse, pluginCombinations, renderReport, resolveAdapter, runAcpSession, runArena, runStepId, sanitizeEnv, traceGraph, traceToActions, traceToRunEvents, transcriptDir, writeAggregateReport, writeTraceReport };
|
|
222
|
+
export { ArenaError, DEFAULT_JUDGE_PROMPT, DevinAdapter, aggregateResults, arenaResultGraph, arenaResultToEvents, arenaResultV1Schema, buildBoard, buildJudgePrompt, compareCombos, computeAnalysis, countLlmCalls, createFileRegistry, createGitRegistry, createPermissionHandler, createS3Registry, defineConfig, explodeResult, extractUsageTokens, initPack, installPlugins, judgeAllRuns, judgeRun, lintPack, loadArenaConfig, loadPack, newRunId, openRegistry, parseArenaResultV1, parseJudgeResponse, pluginCombinations, promptHash, publishBatch, publishFile, publishResult, reindexRegistry, renderBoard, renderBoardHtml, renderReport, resolveAdapter, resolvePack, resolveRegistryDir, resultPath, runAcpSession, runArena, runStepId, sanitizeEnv, sparkline, traceGraph, traceToActions, traceToRunEvents, transcriptDir, writeAggregateReport, writeTraceReport };
|
|
223
223
|
|
|
224
224
|
//# sourceMappingURL=index.mjs.map
|