@kradle/cli 0.0.8 → 0.0.10

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.
@@ -130,9 +130,10 @@ export class ApiClient {
130
130
  * @returns True if the challenge exists, false otherwise.
131
131
  */
132
132
  async challengeExists(slug) {
133
+ const url = `challenges/${slug}`;
133
134
  try {
134
- await this.getChallenge(slug);
135
- return true;
135
+ const res = await this.get("web", url, {});
136
+ return res !== null && res !== undefined;
136
137
  }
137
138
  catch (error) {
138
139
  return false;
@@ -234,7 +234,7 @@ export class Evaluator {
234
234
  throw new Error(`${errors.map((error) => error.error).join("\n\n")}`);
235
235
  }
236
236
  if (options.openMetabase ?? true) {
237
- openInBrowser(`https://daunt-fair.metabaseapp.com/dashboard/10-runs-analysis&tags=${iterationTag}`);
237
+ openInBrowser(`https://daunt-fair.metabaseapp.com/dashboard/10-runs-analysis?tags=${iterationTag}`);
238
238
  }
239
239
  }
240
240
  /**
@@ -24,7 +24,7 @@ export declare const ChallengeSchema: z.ZodObject<{
24
24
  task: z.ZodOptional<z.ZodString>;
25
25
  roles: z.ZodRecord<z.ZodString, z.ZodObject<{
26
26
  description: z.ZodOptional<z.ZodString>;
27
- specificTask: z.ZodString;
27
+ specificTask: z.ZodOptional<z.ZodString>;
28
28
  minParticipants: z.ZodOptional<z.ZodNumber>;
29
29
  maxParticipants: z.ZodOptional<z.ZodNumber>;
30
30
  }, z.core.$strip>>;
@@ -66,7 +66,7 @@ export declare const ChallengesResponseSchema: z.ZodObject<{
66
66
  task: z.ZodOptional<z.ZodString>;
67
67
  roles: z.ZodRecord<z.ZodString, z.ZodObject<{
68
68
  description: z.ZodOptional<z.ZodString>;
69
- specificTask: z.ZodString;
69
+ specificTask: z.ZodOptional<z.ZodString>;
70
70
  minParticipants: z.ZodOptional<z.ZodNumber>;
71
71
  maxParticipants: z.ZodOptional<z.ZodNumber>;
72
72
  }, z.core.$strip>>;
@@ -15,7 +15,7 @@ export const ChallengeSchema = z.object({
15
15
  task: z.string().optional(),
16
16
  roles: z.record(z.string(), z.object({
17
17
  description: z.string().optional(),
18
- specificTask: z.string(),
18
+ specificTask: z.string().optional(),
19
19
  minParticipants: z.number().optional(),
20
20
  maxParticipants: z.number().optional(),
21
21
  })),
@@ -401,5 +401,5 @@
401
401
  ]
402
402
  }
403
403
  },
404
- "version": "0.0.8"
404
+ "version": "0.0.10"
405
405
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kradle/cli",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "description": "Kradle's CLI. Manage challenges, evaluations, agents and more!",
5
5
  "keywords": [
6
6
  "cli"