@preplabsai/rovara-code 0.5.6 → 0.5.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.
@@ -367591,7 +367591,7 @@ init_dist2();
367591
367591
  import { realpathSync } from "node:fs";
367592
367592
 
367593
367593
  // packages/cli/src/version.ts
367594
- var RELEASE_VERSION = true ? "0.5.6" : void 0;
367594
+ var RELEASE_VERSION = true ? "0.5.7" : void 0;
367595
367595
  var CLI_VERSION = RELEASE_VERSION ?? "0.1.0";
367596
367596
  function isPrereleaseVersion(version3) {
367597
367597
  return /^\d+\.\d+\.\d+-/.test(version3);
@@ -369728,8 +369728,9 @@ function templatesDeployer(input2) {
369728
369728
  const text11 = installTemplate(request);
369729
369729
  const declared = declaredParameterNames(text11);
369730
369730
  if (request.part === "access") {
369731
- if (Buffer.byteLength(text11, "utf8") > MAX_INLINE_TEMPLATE_BYTES) throw new Error("the access template is too large to deploy inline");
369732
- return { source: { TemplateBody: text11 }, declared };
369731
+ const body = JSON.stringify(JSON.parse(text11));
369732
+ if (Buffer.byteLength(body, "utf8") > MAX_INLINE_TEMPLATE_BYTES) throw new Error(`the access template is too large to deploy inline (${Buffer.byteLength(body, "utf8")} bytes minified; the limit is ${MAX_INLINE_TEMPLATE_BYTES})`);
369733
+ return { source: { TemplateBody: body }, declared };
369733
369734
  }
369734
369735
  const bucket = input2.artifactBucket();
369735
369736
  await uploadPackages(request, bucket, emit);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@preplabsai/rovara-code",
3
- "version": "0.5.6",
3
+ "version": "0.5.7",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "rovara": "bin/agentx.mjs",