@rubytech/taskmaster 1.16.2 → 1.16.3

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.
@@ -149,7 +149,7 @@ export function createTaskmasterTools(options) {
149
149
  agentSessionKey: options?.agentSessionKey,
150
150
  sandboxRoot: options?.sandboxRoot,
151
151
  }),
152
- createQrGenerateTool(),
152
+ createQrGenerateTool({ workspaceDir: options?.workspaceDir }),
153
153
  createCurrentTimeTool({ config: options?.config }),
154
154
  createAuthorizeAdminTool({ agentAccountId: options?.agentAccountId }),
155
155
  createRevokeAdminTool({ agentAccountId: options?.agentAccountId }),
@@ -1,5 +1,4 @@
1
1
  import fs from "node:fs/promises";
2
- import os from "node:os";
3
2
  import path from "node:path";
4
3
  import { Type } from "@sinclair/typebox";
5
4
  import { renderQrPngBase64 } from "../../web/qr-image.js";
@@ -10,7 +9,7 @@ const QrGenerateSchema = Type.Object({
10
9
  "a URL, plain text, a vCard block, or a wa.me deep link.",
11
10
  }),
12
11
  });
13
- export function createQrGenerateTool() {
12
+ export function createQrGenerateTool(options) {
14
13
  return {
15
14
  label: "QR Code Generator",
16
15
  name: "qr_generate",
@@ -25,8 +24,13 @@ export function createQrGenerateTool() {
25
24
  try {
26
25
  const base64 = await renderQrPngBase64(data);
27
26
  const buf = Buffer.from(base64, "base64");
27
+ const workspaceDir = options?.workspaceDir?.trim();
28
+ const outputDir = workspaceDir
29
+ ? path.join(workspaceDir, "uploads", "generated")
30
+ : path.join(process.cwd(), "uploads", "generated");
31
+ await fs.mkdir(outputDir, { recursive: true });
28
32
  const filename = `qr-${Date.now()}.png`;
29
- const pngPath = path.join(os.tmpdir(), filename);
33
+ const pngPath = path.join(outputDir, filename);
30
34
  await fs.writeFile(pngPath, buf);
31
35
  return {
32
36
  content: [
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.16.2",
3
- "commit": "5b738cb70310248225f83f6a39d49c7f9abcbe71",
4
- "builtAt": "2026-03-04T17:48:55.756Z"
2
+ "version": "1.16.3",
3
+ "commit": "af58918a990e50515497bcf76baad99133a4ff5f",
4
+ "builtAt": "2026-03-04T18:05:39.829Z"
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rubytech/taskmaster",
3
- "version": "1.16.2",
3
+ "version": "1.16.3",
4
4
  "description": "AI-powered business assistant for small businesses",
5
5
  "publishConfig": {
6
6
  "access": "public"