@karedo-hq/agents 0.1.6 → 0.1.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@karedo-hq/agents",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Centralized agent skills, rules, and commands for our engineering team",
5
5
  "type": "module",
6
6
  "bin": {
@@ -37,14 +37,14 @@ alwaysApply: false
37
37
  Always use `safeJson()` from `@/lib/utils/safe-json` instead of raw `.json()`:
38
38
 
39
39
  ```typescript
40
- import { safeJson, SERVER_UNAVAILABLE_MESSAGE } from "@/lib/utils/safe-json";
40
+ import { safeJson } from "@/lib/utils/safe-json";
41
41
 
42
42
  // Error path
43
43
  if (!res.ok) {
44
44
  const errorResult = await safeJson<{ message?: string }>(res);
45
45
  const errorMessage = errorResult.isSuccess
46
46
  ? errorResult.data.message || "Fallback message"
47
- : SERVER_UNAVAILABLE_MESSAGE;
47
+ : errorResult.errorMessage;
48
48
  return { isSuccess: false, isError: true, errorMessage };
49
49
  }
50
50
 
@@ -54,7 +54,7 @@ if (!result.isSuccess) {
54
54
  return {
55
55
  isSuccess: false,
56
56
  isError: true,
57
- errorMessage: SERVER_UNAVAILABLE_MESSAGE,
57
+ errorMessage: result.errorMessage,
58
58
  };
59
59
  }
60
60
  const data = result.data;