@rubytech/create-maxy-code 0.1.228 → 0.1.229

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.
Files changed (24) hide show
  1. package/package.json +1 -1
  2. package/payload/platform/plugins/admin/mcp/dist/index.js +9 -20
  3. package/payload/platform/plugins/admin/mcp/dist/index.js.map +1 -1
  4. package/payload/platform/plugins/admin/skills/platform-architecture/SKILL.md +33 -1
  5. package/payload/platform/plugins/admin/skills/qr-code/SKILL.md +6 -5
  6. package/payload/platform/plugins/admin/skills/qr-code/references/data-formats.md +2 -2
  7. package/payload/platform/plugins/admin/skills/unzip-attachment/SKILL.md +1 -1
  8. package/payload/platform/plugins/cloudflare/references/dashboard-guide.md +28 -0
  9. package/payload/platform/plugins/cloudflare/references/serving-published-sites.md +73 -0
  10. package/payload/platform/plugins/cloudflare/skills/setup-tunnel/SKILL.md +1 -1
  11. package/payload/platform/plugins/docs/references/troubleshooting.md +32 -0
  12. package/payload/platform/services/claude-session-manager/dist/rc-daemon.d.ts.map +1 -1
  13. package/payload/platform/services/claude-session-manager/dist/rc-daemon.js +5 -2
  14. package/payload/platform/services/claude-session-manager/dist/rc-daemon.js.map +1 -1
  15. package/payload/server/public/assets/AdminShell-1-LbiDAw.js +1 -0
  16. package/payload/server/public/assets/{admin-CE1Dy8-O.js → admin-BrCMyi1e.js} +1 -1
  17. package/payload/server/public/assets/data-V17bGzzl.js +1 -0
  18. package/payload/server/public/assets/graph-CYsyxGM1.js +51 -0
  19. package/payload/server/public/data.html +2 -2
  20. package/payload/server/public/graph.html +2 -2
  21. package/payload/server/public/index.html +2 -2
  22. package/payload/server/public/assets/AdminShell-BHSiRGiE.js +0 -1
  23. package/payload/server/public/assets/data-CKk52rib.js +0 -1
  24. package/payload/server/public/assets/graph-TuzretIr.js +0 -51
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rubytech/create-maxy-code",
3
- "version": "0.1.228",
3
+ "version": "0.1.229",
4
4
  "description": "Install Maxy — AI for Productive People",
5
5
  "bin": {
6
6
  "create-maxy-code": "./dist/index.js"
@@ -2033,40 +2033,29 @@ server.tool("remote-auth-set-password", "Set the remote access password. Hashes
2033
2033
  // ===================================================================
2034
2034
  // Utility tools
2035
2035
  // ===================================================================
2036
- eagerTool(server, "qr-generate", "Generate a QR code from text or a URL. Returns the QR code as a data URI (PNG) or saves to a file path.", {
2036
+ eagerTool(server, "qr-generate", "Generate a QR code PNG from text or a URL. Writes the PNG under accounts/<accountId>/output/qr/ and returns the file path. Pass outputPath to write to a specific location instead (used by the brochure pipeline for qr-listing.png / qr-video.png).", {
2037
2037
  data: z.string().describe("The text or URL to encode in the QR code"),
2038
2038
  outputPath: z
2039
2039
  .string()
2040
2040
  .optional()
2041
- .describe("File path to save the PNG. If omitted, returns a data URI."),
2041
+ .describe("Absolute file path to save the PNG. Defaults to <accountDir>/output/qr/qr-<timestamp>.png."),
2042
2042
  width: z.number().optional().describe("Width in pixels (default 300)"),
2043
2043
  }, async ({ data, outputPath, width }) => {
2044
2044
  if (!ACCOUNT_ID)
2045
2045
  return refuseNoAccount("qr-generate");
2046
2046
  try {
2047
2047
  const options = { width: width ?? 300, margin: 2 };
2048
- if (outputPath) {
2049
- await QRCode.toFile(outputPath, data, options);
2050
- return {
2051
- content: [
2052
- {
2053
- type: "text",
2054
- text: `QR code saved to ${outputPath}`,
2055
- },
2056
- ],
2057
- };
2058
- }
2059
- const dataUri = await QRCode.toDataURL(data, options);
2048
+ const dest = outputPath ?? (() => {
2049
+ const qrDir = join(getAccountDir(), "output", "qr");
2050
+ mkdirSync(qrDir, { recursive: true });
2051
+ return join(qrDir, `qr-${Date.now()}.png`);
2052
+ })();
2053
+ await QRCode.toFile(dest, data, options);
2060
2054
  return {
2061
2055
  content: [
2062
2056
  {
2063
2057
  type: "text",
2064
- text: `QR code generated for: ${data}`,
2065
- },
2066
- {
2067
- type: "image",
2068
- data: dataUri.replace(/^data:image\/png;base64,/, ""),
2069
- mimeType: "image/png",
2058
+ text: `QR code saved to ${dest}`,
2070
2059
  },
2071
2060
  ],
2072
2061
  };