@friendlyrobot/discord-pi-agent 0.9.6 → 0.9.8

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 (2) hide show
  1. package/dist/index.js +4 -9
  2. 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 + 12);
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
@@ -986,7 +982,7 @@ async function sendTypingSafe(channel, channelKey) {
986
982
  retryMs = parsed.retry_after * 1000 + 500;
987
983
  }
988
984
  } catch {}
989
- logger5.warn({ channelKey, retryMs }, "[TYPING] 429, retrying after delay");
985
+ logger5.warn({ channelKey, retryMs, response: body }, `[TYPING] 429, retrying after ${retryMs}ms delay`);
990
986
  await new Promise((resolve) => setTimeout(resolve, retryMs));
991
987
  await fetch(url, {
992
988
  method: "POST",
@@ -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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@friendlyrobot/discord-pi-agent",
3
- "version": "0.9.6",
3
+ "version": "0.9.8",
4
4
  "description": "Reusable Discord gateway bridge for persistent pi agent sessions",
5
5
  "license": "MIT",
6
6
  "type": "module",