@friendlyrobot/discord-pi-agent 0.19.16 → 0.19.18

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 +1 -18
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -324,14 +324,10 @@ async function runAgentTurn(session, prompt, options = {}) {
324
324
  const input = event.toolName === "bash" ? event.args.command : event.args;
325
325
  toolInputsByCallId.set(event.toolCallId, input);
326
326
  if (event.toolName === "bash") {
327
- logger4.debug({
328
- toolName: event.toolName
329
- }, `agent tool start: [${event.toolName}]`);
330
327
  debugPrint(input, "CMD");
331
328
  } else {
332
329
  logger4.debug({
333
- toolName: event.toolName,
334
- input
330
+ toolName: event.toolName
335
331
  }, `agent tool start: [${event.toolName}]`);
336
332
  }
337
333
  }
@@ -343,7 +339,6 @@ async function runAgentTurn(session, prompt, options = {}) {
343
339
  } else {
344
340
  logger4.debug({
345
341
  toolName: event.toolName,
346
- input: truncateForLog(extractToolOutput(input)),
347
342
  isError: event.isError
348
343
  }, `agent tool end: [${event.toolName}]`);
349
344
  }
@@ -368,12 +363,6 @@ async function runAgentTurn(session, prompt, options = {}) {
368
363
  }
369
364
  return "No response generated.";
370
365
  }
371
- function truncateForLog(value, maxLength = 400) {
372
- if (value.length <= maxLength) {
373
- return value;
374
- }
375
- return `${value.slice(0, maxLength)}...`;
376
- }
377
366
  function extractToolOutput(output) {
378
367
  if (typeof output === "object" && output !== null) {
379
368
  const obj = output;
@@ -1551,11 +1540,9 @@ function buildDiscordPromptContent(message, scope, content, config) {
1551
1540
  }
1552
1541
  async function handleDiscordMessage(message, config, agentService, sessionRegistry, accessConfig) {
1553
1542
  if (message.author.bot) {
1554
- logger11.debug("ignored bot message");
1555
1543
  return;
1556
1544
  }
1557
1545
  if (message.system) {
1558
- logger11.debug({ messageId: message.id }, "ignored system message");
1559
1546
  return;
1560
1547
  }
1561
1548
  const scope = resolveMessageScope(message);
@@ -1591,11 +1578,7 @@ ${attachment.content}`;
1591
1578
  return;
1592
1579
  }
1593
1580
  logger11.info({
1594
- direction: "IN",
1595
1581
  scope,
1596
- messageId: message.id,
1597
- authorId: message.author.id,
1598
- channelType: message.channel.type,
1599
1582
  content
1600
1583
  }, "message received");
1601
1584
  const channelKey = message.channel.id;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@friendlyrobot/discord-pi-agent",
3
- "version": "0.19.16",
3
+ "version": "0.19.18",
4
4
  "description": "Reusable Discord gateway for persistent pi agent sessions",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -40,14 +40,14 @@
40
40
  "@earendil-works/pi-coding-agent": "^0.75.3",
41
41
  "discord.js": "^14.26.4",
42
42
  "dotenv": "^17.4.2",
43
- "marked": "^18.0.3",
43
+ "marked": "^18.0.4",
44
44
  "pino": "^10.3.1",
45
45
  "pino-pretty": "^13.1.3",
46
46
  "prettier": "^3.8.3"
47
47
  },
48
48
  "devDependencies": {
49
- "@types/node": "^25.8.0",
50
- "@typescript/native-preview": "^7.0.0-dev.20260518.1",
49
+ "@types/node": "^25.9.1",
50
+ "@typescript/native-preview": "^7.0.0-dev.20260519.1",
51
51
  "@vitest/coverage-v8": "^4.1.6",
52
52
  "@vitest/ui": "^4.1.6",
53
53
  "vitest": "^4.1.6"