@kradle/cli 0.0.9 → 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;
@@ -401,5 +401,5 @@
401
401
  ]
402
402
  }
403
403
  },
404
- "version": "0.0.9"
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.9",
3
+ "version": "0.0.10",
4
4
  "description": "Kradle's CLI. Manage challenges, evaluations, agents and more!",
5
5
  "keywords": [
6
6
  "cli"