@hiver/skills 1.0.6 → 1.0.8

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.
@@ -18,6 +18,10 @@ Help the user to grill down on a problem to its core discussing all sorts of the
18
18
  - Do NOT generate code snippets as part of a "just to show you" step
19
19
  - The ONLY permitted file operation is creating the final `summary.md`
20
20
 
21
+ ## Rules which can be bypassed
22
+
23
+ - If user is aksing to implement the change then only we can bypass the `Forbidden actions`
24
+
21
25
  ## When to Use
22
26
 
23
27
  - Use this skill when user wants to discuss a problem statement like implementing a new feature, modifying an existing feature, or solving a bug
@@ -15,9 +15,9 @@
15
15
  method: "GET", // or "POST", "PUT", "PATCH", "DELETE"
16
16
  data: {}, // For POST/PUT/PATCH
17
17
  });
18
- return [response.data, null];
18
+ return response.data;
19
19
  } catch (err) {
20
- return [null, err.message];
20
+ throw error;
21
21
  }
22
22
  };
23
23
  ```
@@ -36,9 +36,9 @@
36
36
  method: "GET", // or "POST", "PUT", "PATCH", "DELETE"
37
37
  data: {}, // For POST/PUT/PATCH
38
38
  });
39
- return [response.data, null];
39
+ return response.data;
40
40
  } catch (err) {
41
- return [null, err.message];
41
+ throw error;
42
42
  }
43
43
  };
44
44
  ```
@@ -50,16 +50,18 @@
50
50
  import { HiverAxios } from "h-extension-common";
51
51
 
52
52
  const fetchData = async (payload) => {
53
- try {
54
- const response = await HiverAxios({
55
- url: `/api/endpoint`,
56
- type: "GET", // or "POST", "PUT", "DELETE" - Note: uses "type" not "method"
57
- params: payload, // Request body/params
58
- });
59
- return [response.data, null];
60
- } catch (err) {
61
- return [null, err.message];
62
- }
53
+ return new Promise((res, rej) => {
54
+ HiverAxios({
55
+ url: `/api/endpoint`,
56
+ type: "GET", // or "POST", "PUT", "DELETE" - Note: uses "type" not "method"
57
+ params: payload, // Request body/params
58
+ callback: (response) => res(response?.data),
59
+ onfail: (error) => {
60
+ rej(error);
61
+ }
62
+ });
63
+
64
+ })
63
65
  };
64
66
  ```
65
67
 
@@ -76,9 +78,9 @@
76
78
  type: "GET", // or "POST", "PUT", "PATCH", "DELETE"
77
79
  params: payload, // Request body/params
78
80
  });
79
- return [response.parsedBody, null]; // Note: HiverAnalyticsAxios returns parsedBody
81
+ return response.parsedBody // Note: HiverAnalyticsAxios returns parsedBody
80
82
  } catch (err) {
81
- return [null, err.message];
83
+ throw error;
82
84
  }
83
85
  };
84
86
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hiver/skills",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "Shared Claude Code skills & agents for Hiver teams",
5
5
  "type": "module",
6
6
  "bin": {