agent-duelist 0.2.0 → 0.2.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/README.md +17 -3
- package/dist/cli.js +2754 -2102
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +1054 -346
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -7
- package/dist/index.d.ts +8 -7
- package/dist/index.js +1053 -346
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -135,6 +135,11 @@ declare function openaiCompatible(options: OpenAICompatibleOptions): ArenaProvid
|
|
|
135
135
|
* Used as the deployment name unless `options.deployment` overrides it.
|
|
136
136
|
*/
|
|
137
137
|
declare function azureOpenai(model: string, options?: AzureOpenAIProviderOptions): ArenaProvider;
|
|
138
|
+
interface GeminiProviderOptions {
|
|
139
|
+
apiKey?: string;
|
|
140
|
+
timeoutMs?: number;
|
|
141
|
+
}
|
|
142
|
+
declare function gemini(model: string, options?: GeminiProviderOptions): ArenaProvider;
|
|
138
143
|
|
|
139
144
|
interface AnthropicProviderOptions {
|
|
140
145
|
apiKey?: string;
|
|
@@ -142,12 +147,6 @@ interface AnthropicProviderOptions {
|
|
|
142
147
|
}
|
|
143
148
|
declare function anthropic(model: string, options?: AnthropicProviderOptions): ArenaProvider;
|
|
144
149
|
|
|
145
|
-
interface GeminiProviderOptions {
|
|
146
|
-
apiKey?: string;
|
|
147
|
-
timeoutMs?: number;
|
|
148
|
-
}
|
|
149
|
-
declare function gemini(model: string, options?: GeminiProviderOptions): ArenaProvider;
|
|
150
|
-
|
|
151
150
|
interface ModelPricing {
|
|
152
151
|
inputPerToken: number;
|
|
153
152
|
outputPerToken: number;
|
|
@@ -197,6 +196,8 @@ declare function saveBaseline(path: string, results: BenchmarkResult[]): void;
|
|
|
197
196
|
|
|
198
197
|
declare function markdownReporter(report: CiReport, _current: BenchmarkResult[]): string;
|
|
199
198
|
|
|
199
|
+
declare function htmlReporter(results: BenchmarkResult[]): string;
|
|
200
|
+
|
|
200
201
|
interface GitHubContext {
|
|
201
202
|
token: string;
|
|
202
203
|
owner: string;
|
|
@@ -206,4 +207,4 @@ interface GitHubContext {
|
|
|
206
207
|
declare function detectGitHubContext(): GitHubContext | null;
|
|
207
208
|
declare function upsertPrComment(ctx: GitHubContext, body: string, marker: string): Promise<void>;
|
|
208
209
|
|
|
209
|
-
export { type Arena, type ArenaConfig, type ArenaProvider, type ArenaTask, type BenchmarkResult, type BuiltInScorerName, type CiReport, type CostSummary, type ScoreResult, type ScorerComparison, type ScorerFn, type ScorerStats, type TaskInput, type TaskResult, type ToolCall, type ToolDefinition, anthropic, azureOpenai, compareResults, computeStats, consoleReporter, defineArena, detectGitHubContext, gemini, jsonReporter, loadBaseline, markdownReporter, openai, openaiCompatible, registerPricing, saveBaseline, upsertPrComment };
|
|
210
|
+
export { type Arena, type ArenaConfig, type ArenaProvider, type ArenaTask, type BenchmarkResult, type BuiltInScorerName, type CiReport, type CostSummary, type ScoreResult, type ScorerComparison, type ScorerFn, type ScorerStats, type TaskInput, type TaskResult, type ToolCall, type ToolDefinition, anthropic, azureOpenai, compareResults, computeStats, consoleReporter, defineArena, detectGitHubContext, gemini, htmlReporter, jsonReporter, loadBaseline, markdownReporter, openai, openaiCompatible, registerPricing, saveBaseline, upsertPrComment };
|
package/dist/index.d.ts
CHANGED
|
@@ -135,6 +135,11 @@ declare function openaiCompatible(options: OpenAICompatibleOptions): ArenaProvid
|
|
|
135
135
|
* Used as the deployment name unless `options.deployment` overrides it.
|
|
136
136
|
*/
|
|
137
137
|
declare function azureOpenai(model: string, options?: AzureOpenAIProviderOptions): ArenaProvider;
|
|
138
|
+
interface GeminiProviderOptions {
|
|
139
|
+
apiKey?: string;
|
|
140
|
+
timeoutMs?: number;
|
|
141
|
+
}
|
|
142
|
+
declare function gemini(model: string, options?: GeminiProviderOptions): ArenaProvider;
|
|
138
143
|
|
|
139
144
|
interface AnthropicProviderOptions {
|
|
140
145
|
apiKey?: string;
|
|
@@ -142,12 +147,6 @@ interface AnthropicProviderOptions {
|
|
|
142
147
|
}
|
|
143
148
|
declare function anthropic(model: string, options?: AnthropicProviderOptions): ArenaProvider;
|
|
144
149
|
|
|
145
|
-
interface GeminiProviderOptions {
|
|
146
|
-
apiKey?: string;
|
|
147
|
-
timeoutMs?: number;
|
|
148
|
-
}
|
|
149
|
-
declare function gemini(model: string, options?: GeminiProviderOptions): ArenaProvider;
|
|
150
|
-
|
|
151
150
|
interface ModelPricing {
|
|
152
151
|
inputPerToken: number;
|
|
153
152
|
outputPerToken: number;
|
|
@@ -197,6 +196,8 @@ declare function saveBaseline(path: string, results: BenchmarkResult[]): void;
|
|
|
197
196
|
|
|
198
197
|
declare function markdownReporter(report: CiReport, _current: BenchmarkResult[]): string;
|
|
199
198
|
|
|
199
|
+
declare function htmlReporter(results: BenchmarkResult[]): string;
|
|
200
|
+
|
|
200
201
|
interface GitHubContext {
|
|
201
202
|
token: string;
|
|
202
203
|
owner: string;
|
|
@@ -206,4 +207,4 @@ interface GitHubContext {
|
|
|
206
207
|
declare function detectGitHubContext(): GitHubContext | null;
|
|
207
208
|
declare function upsertPrComment(ctx: GitHubContext, body: string, marker: string): Promise<void>;
|
|
208
209
|
|
|
209
|
-
export { type Arena, type ArenaConfig, type ArenaProvider, type ArenaTask, type BenchmarkResult, type BuiltInScorerName, type CiReport, type CostSummary, type ScoreResult, type ScorerComparison, type ScorerFn, type ScorerStats, type TaskInput, type TaskResult, type ToolCall, type ToolDefinition, anthropic, azureOpenai, compareResults, computeStats, consoleReporter, defineArena, detectGitHubContext, gemini, jsonReporter, loadBaseline, markdownReporter, openai, openaiCompatible, registerPricing, saveBaseline, upsertPrComment };
|
|
210
|
+
export { type Arena, type ArenaConfig, type ArenaProvider, type ArenaTask, type BenchmarkResult, type BuiltInScorerName, type CiReport, type CostSummary, type ScoreResult, type ScorerComparison, type ScorerFn, type ScorerStats, type TaskInput, type TaskResult, type ToolCall, type ToolDefinition, anthropic, azureOpenai, compareResults, computeStats, consoleReporter, defineArena, detectGitHubContext, gemini, htmlReporter, jsonReporter, loadBaseline, markdownReporter, openai, openaiCompatible, registerPricing, saveBaseline, upsertPrComment };
|