pasika 0.10.13 → 0.10.14

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.
@@ -44,7 +44,11 @@ async function zodFetch(options) {
44
44
  throw new HttpError("The upstream answered without a body to decode.", BAD_GATEWAY);
45
45
  }
46
46
  const decoded = JSON.parse(body);
47
- return options.responseSchema.parse(decoded);
47
+ const responseEnvelopeSchema = z.object({
48
+ data: options.responseSchema,
49
+ message: z.string()
50
+ });
51
+ return responseEnvelopeSchema.parse(decoded).data;
48
52
  }
49
53
  export {
50
54
  zodFetch
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pasika",
3
- "version": "0.10.13",
3
+ "version": "0.10.14",
4
4
  "description": "Reusable agent setup package",
5
5
  "repository": {
6
6
  "type": "git",