@kradle/cli 0.0.4 → 0.0.6

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.
@@ -0,0 +1,69 @@
1
+ export function main(): Manifest {
2
+ const CHALLENGE_SLUG = "[INSERT CHALLENGE SLUG HERE]";
3
+
4
+ const AGENTS: string[] = [
5
+ "team-kradle:claude-sonnet-4",
6
+ "team-kradle:qwen3-coder",
7
+ "team-kradle:deepseek-chat-v3-1",
8
+ "team-kradle:grok-4",
9
+ "team-kradle:grok-code-fast-1",
10
+ "team-kradle:gpt-5",
11
+ "team-kradle:kimi-k2",
12
+ "team-kradle:gemini-2-5-flash",
13
+ "team-kradle:gemini-2-5-pro",
14
+ "team-kradle:glm-4-5-air",
15
+ "team-kradle:gpt-5-mini",
16
+ "team-kradle:o3-mini",
17
+ "team-kradle:codestral-2508",
18
+ ];
19
+
20
+ const NUM_RUNS = 200;
21
+ const NUM_AGENTS_PER_RUN = 4;
22
+
23
+ const ADDITIONAL_TAGS: string[] = [];
24
+
25
+ const runs: RunConfig[] = [];
26
+
27
+ for (let i = 0; i < NUM_RUNS; i++) {
28
+ const selectedAgents = sampleWithoutReplacement(AGENTS, NUM_AGENTS_PER_RUN);
29
+
30
+ runs.push({
31
+ challenge_slug: CHALLENGE_SLUG,
32
+ participants: selectedAgents.map((agent) => ({ agent })),
33
+ });
34
+ }
35
+
36
+ return { runs, tags: ADDITIONAL_TAGS };
37
+ }
38
+
39
+ function sampleWithoutReplacement<T>(arr: T[], count: number): T[] {
40
+ if (count > arr.length) {
41
+ throw new Error("Sample size cannot be larger than array length.");
42
+ }
43
+
44
+ const copy = [...arr];
45
+ const result: T[] = [];
46
+
47
+ for (let i = 0; i < count; i++) {
48
+ const idx = Math.floor(Math.random() * copy.length);
49
+ result.push(copy[idx]);
50
+ copy.splice(idx, 1);
51
+ }
52
+
53
+ return result;
54
+ }
55
+
56
+ type Participant = {
57
+ agent: string;
58
+ role?: string;
59
+ };
60
+
61
+ type RunConfig = {
62
+ challenge_slug: string;
63
+ participants: Participant[];
64
+ };
65
+
66
+ type Manifest = {
67
+ runs: RunConfig[];
68
+ tags?: string[];
69
+ };
@@ -2,5 +2,4 @@ WEB_API_URL=https://dev-api.kradle.ai/v0 #https://api.kradle.ai/v0
2
2
  WEB_URL=https://dev.kradle.ai #https:/.kradle.ai/workbench
3
3
  STUDIO_API_URL=http://localhost:2999/api/v0
4
4
  STUDIO_URL=kradle-dev://open #kradle://://open
5
- GCS_BUCKET=mckradle-3c267.firebasestorage.app #kradle-prod-storage
6
5
  KRADLE_CHALLENGES_PATH=~/Documents/kradle-studio/challenges
@@ -2,5 +2,4 @@ WEB_API_URL=https://api.kradle.ai/v0 #https://dev-api.kradle.ai/v0
2
2
  WEB_URL=https://kradle.ai #https://dev.kradle.ai
3
3
  STUDIO_API_URL=http://localhost:2999/api/v0
4
4
  STUDIO_URL=kradle://open #kradle-dev://://open
5
- GCS_BUCKET=kradle-prod-storage #mckradle-3c267.firebasestorage.app
6
5
  KRADLE_CHALLENGES_PATH=~/Documents/kradle-studio/challenges