@agentwonderland/mcp 0.1.19 → 0.1.20
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.
package/dist/core/card-setup.js
CHANGED
|
@@ -10,11 +10,14 @@ export async function initiateCardSetup() {
|
|
|
10
10
|
// Short redirect URL keeps the QR code small and scannable
|
|
11
11
|
const apiUrl = getApiUrl();
|
|
12
12
|
const shortUrl = `${apiUrl}/card/link/${token}`;
|
|
13
|
-
const
|
|
13
|
+
const rawQr = await QRCode.toString(shortUrl, {
|
|
14
14
|
type: "utf8",
|
|
15
15
|
errorCorrectionLevel: "L",
|
|
16
16
|
margin: 2,
|
|
17
17
|
});
|
|
18
|
+
// Pad every line with consistent leading spaces so the QR aligns
|
|
19
|
+
// properly in terminal renderers that add prefixes to the first line
|
|
20
|
+
const qr = rawQr.split("\n").map((line) => " " + line).join("\n");
|
|
18
21
|
return { qr, url: shortUrl, token };
|
|
19
22
|
}
|
|
20
23
|
/**
|
package/package.json
CHANGED
package/src/core/card-setup.ts
CHANGED
|
@@ -17,12 +17,16 @@ export async function initiateCardSetup(): Promise<{
|
|
|
17
17
|
const apiUrl = getApiUrl();
|
|
18
18
|
const shortUrl = `${apiUrl}/card/link/${token}`;
|
|
19
19
|
|
|
20
|
-
const
|
|
20
|
+
const rawQr = await QRCode.toString(shortUrl, {
|
|
21
21
|
type: "utf8",
|
|
22
22
|
errorCorrectionLevel: "L",
|
|
23
23
|
margin: 2,
|
|
24
24
|
});
|
|
25
25
|
|
|
26
|
+
// Pad every line with consistent leading spaces so the QR aligns
|
|
27
|
+
// properly in terminal renderers that add prefixes to the first line
|
|
28
|
+
const qr = rawQr.split("\n").map((line) => " " + line).join("\n");
|
|
29
|
+
|
|
26
30
|
return { qr, url: shortUrl, token };
|
|
27
31
|
}
|
|
28
32
|
|