@friendlyrobot/discord-pi-agent 0.9.6 → 0.9.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.
- package/dist/index.js +3 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -42,14 +42,10 @@ function createModuleLogger(moduleName) {
|
|
|
42
42
|
// src/debug-print.ts
|
|
43
43
|
function debugPrint(body, title) {
|
|
44
44
|
const label = title ?? "DEBUG";
|
|
45
|
-
const fence = "=".repeat(label.length +
|
|
46
|
-
console.info(`${fence}
|
|
47
|
-
===== ${label} =====
|
|
48
|
-
${fence}`);
|
|
45
|
+
const fence = "=".repeat(label.length + 8);
|
|
46
|
+
console.info(`${fence} ${label} ${fence}`);
|
|
49
47
|
console.info(body);
|
|
50
|
-
console.info(`${fence}
|
|
51
|
-
===== END =====
|
|
52
|
-
${fence}`);
|
|
48
|
+
console.info(`${fence} END ${fence}`);
|
|
53
49
|
}
|
|
54
50
|
|
|
55
51
|
// src/markdown-table-transformer.ts
|
|
@@ -1037,7 +1033,6 @@ async function sendReply(message, text) {
|
|
|
1037
1033
|
}, "reply skipped, channel not sendable");
|
|
1038
1034
|
return;
|
|
1039
1035
|
}
|
|
1040
|
-
debugPrint(text, "Full Reply");
|
|
1041
1036
|
const chunks = chunkMessage(text);
|
|
1042
1037
|
const [firstChunk, ...remainingChunks] = chunks;
|
|
1043
1038
|
if (!firstChunk) {
|