@agentforge/tools 0.16.59 → 0.16.61

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.cjs CHANGED
@@ -815,7 +815,7 @@ function getDefaultSlackClient() {
815
815
  }
816
816
  };
817
817
  }
818
- function createSendSlackMessageTool(getSlackClient, logger21) {
818
+ function createSendSlackMessageTool(getSlackClient, logger19) {
819
819
  return core.toolBuilder().name("send-slack-message").description("Send a message to a Slack channel for team communication and notifications").category(core.ToolCategory.WEB).tags(["slack", "messaging", "communication"]).usageNotes(
820
820
  "Use this for general team communication. For notifications with @mentions, consider using notify-slack instead. Use get-slack-channels first if you need to find the right channel."
821
821
  ).suggests(["get-slack-channels"]).schema(
@@ -824,7 +824,7 @@ function createSendSlackMessageTool(getSlackClient, logger21) {
824
824
  message: zod.z.string().describe("Message content to send")
825
825
  })
826
826
  ).implementSafe(async ({ channel, message }) => {
827
- logger21.info("send-slack-message called", { channel, messageLength: message.length });
827
+ logger19.info("send-slack-message called", { channel, messageLength: message.length });
828
828
  try {
829
829
  const { client: slack, config } = getSlackClient();
830
830
  const result = await slack.chat.postMessage({
@@ -833,7 +833,7 @@ function createSendSlackMessageTool(getSlackClient, logger21) {
833
833
  username: config.botName,
834
834
  icon_emoji: config.botIcon
835
835
  });
836
- logger21.info("send-slack-message result", {
836
+ logger19.info("send-slack-message result", {
837
837
  ...result.channel ? { channel: result.channel } : {},
838
838
  ...result.ts ? { timestamp: result.ts } : {},
839
839
  messageLength: message.length,
@@ -846,7 +846,7 @@ function createSendSlackMessageTool(getSlackClient, logger21) {
846
846
  message_id: result.ts
847
847
  };
848
848
  } catch (error) {
849
- logger21.error("send-slack-message failed", {
849
+ logger19.error("send-slack-message failed", {
850
850
  channel,
851
851
  error: error.message,
852
852
  data: error.data
@@ -855,7 +855,7 @@ function createSendSlackMessageTool(getSlackClient, logger21) {
855
855
  }
856
856
  }).build();
857
857
  }
858
- function createNotifySlackTool(getSlackClient, logger21) {
858
+ function createNotifySlackTool(getSlackClient, logger19) {
859
859
  return core.toolBuilder().name("notify-slack").description("Send a notification to a Slack channel with optional @mentions for urgent alerts").category(core.ToolCategory.WEB).tags(["slack", "notification", "alert"]).usageNotes(
860
860
  "Use this for urgent notifications that require @mentions. For general messages without mentions, use send-slack-message instead."
861
861
  ).suggests(["get-slack-channels"]).schema(
@@ -865,7 +865,7 @@ function createNotifySlackTool(getSlackClient, logger21) {
865
865
  mentions: zod.z.array(zod.z.string()).optional().describe("List of usernames to mention (without @)")
866
866
  })
867
867
  ).implementSafe(async ({ channel, message, mentions = [] }) => {
868
- logger21.info("notify-slack called", {
868
+ logger19.info("notify-slack called", {
869
869
  channel,
870
870
  messageLength: message.length,
871
871
  mentionCount: mentions.length
@@ -879,7 +879,7 @@ function createNotifySlackTool(getSlackClient, logger21) {
879
879
  username: config.botName,
880
880
  icon_emoji: config.botIcon
881
881
  });
882
- logger21.info("notify-slack result", {
882
+ logger19.info("notify-slack result", {
883
883
  ...result.channel ? { channel: result.channel } : {},
884
884
  ...result.ts ? { timestamp: result.ts } : {},
885
885
  mentions: mentions.length
@@ -893,7 +893,7 @@ function createNotifySlackTool(getSlackClient, logger21) {
893
893
  };
894
894
  }).build();
895
895
  }
896
- function createGetSlackChannelsTool(getSlackClient, logger21) {
896
+ function createGetSlackChannelsTool(getSlackClient, logger19) {
897
897
  return core.toolBuilder().name("get-slack-channels").description("Get a list of available Slack channels to find the right channel for messaging").category(core.ToolCategory.WEB).tags(["slack", "channels", "list"]).usageNotes(
898
898
  "Use this first to discover available channels before sending messages. Helps ensure you are sending to the correct channel."
899
899
  ).follows(["send-slack-message", "notify-slack"]).schema(
@@ -901,7 +901,7 @@ function createGetSlackChannelsTool(getSlackClient, logger21) {
901
901
  include_private: zod.z.boolean().optional().describe("Include private channels (default: false)")
902
902
  })
903
903
  ).implementSafe(async ({ include_private = false }) => {
904
- logger21.info("get-slack-channels called", { include_private });
904
+ logger19.info("get-slack-channels called", { include_private });
905
905
  const { client: slack } = getSlackClient();
906
906
  const publicChannels = await slack.conversations.list({
907
907
  types: "public_channel",
@@ -915,7 +915,7 @@ function createGetSlackChannelsTool(getSlackClient, logger21) {
915
915
  });
916
916
  allChannels = [...allChannels, ...privateChannels.channels || []];
917
917
  }
918
- logger21.info("get-slack-channels result", {
918
+ logger19.info("get-slack-channels result", {
919
919
  channelCount: allChannels.length,
920
920
  includePrivate: include_private
921
921
  });
@@ -930,7 +930,7 @@ function createGetSlackChannelsTool(getSlackClient, logger21) {
930
930
  };
931
931
  }).build();
932
932
  }
933
- function createGetSlackMessagesTool(getSlackClient, logger21) {
933
+ function createGetSlackMessagesTool(getSlackClient, logger19) {
934
934
  return core.toolBuilder().name("get-slack-messages").description("Retrieve message history from a Slack channel to read recent conversations").category(core.ToolCategory.WEB).tags(["slack", "messages", "history", "read"]).usageNotes(
935
935
  "Use this to read recent messages from a channel. Use get-slack-channels first if you need to find the channel ID. Returns messages in reverse chronological order (newest first)."
936
936
  ).suggests(["get-slack-channels"]).schema(
@@ -939,7 +939,7 @@ function createGetSlackMessagesTool(getSlackClient, logger21) {
939
939
  limit: zod.z.number().int().min(1).max(100).optional().describe("Number of messages to retrieve (default: 20, max: 100)")
940
940
  })
941
941
  ).implementSafe(async ({ channel, limit = 20 }) => {
942
- logger21.info("get-slack-messages called", { channel, limit });
942
+ logger19.info("get-slack-messages called", { channel, limit });
943
943
  try {
944
944
  const { client: slack } = getSlackClient();
945
945
  let channelId = channel;
@@ -950,7 +950,7 @@ function createGetSlackMessagesTool(getSlackClient, logger21) {
950
950
  });
951
951
  const found = channels.channels?.find((c) => c.name === channel);
952
952
  if (!found) {
953
- logger21.error("get-slack-messages: channel not found", { channel });
953
+ logger19.error("get-slack-messages: channel not found", { channel });
954
954
  throw new Error(
955
955
  `Channel '${channel}' not found. Use get-slack-channels to see available channels.`
956
956
  );
@@ -962,7 +962,7 @@ function createGetSlackMessagesTool(getSlackClient, logger21) {
962
962
  limit: Math.min(limit, 100)
963
963
  // Cap at 100 for performance
964
964
  });
965
- logger21.info("get-slack-messages result", {
965
+ logger19.info("get-slack-messages result", {
966
966
  channel: channelId,
967
967
  messageCount: result.messages?.length || 0,
968
968
  limit
@@ -980,7 +980,7 @@ function createGetSlackMessagesTool(getSlackClient, logger21) {
980
980
  })) || []
981
981
  };
982
982
  } catch (error) {
983
- logger21.error("get-slack-messages failed", {
983
+ logger19.error("get-slack-messages failed", {
984
984
  channel,
985
985
  error: error.message,
986
986
  data: error.data
@@ -1061,12 +1061,12 @@ function getAuthHeader() {
1061
1061
  const auth2 = Buffer.from(`${ATLASSIAN_EMAIL}:${ATLASSIAN_API_KEY}`).toString("base64");
1062
1062
  return `Basic ${auth2}`;
1063
1063
  }
1064
- function createSearchConfluenceTool(getAuth, getAuthHeader2, logger21) {
1064
+ function createSearchConfluenceTool(getAuth, getAuthHeader2, logger19) {
1065
1065
  return core.toolBuilder().name("search-confluence").description("Search for pages in Confluence using keywords or CQL (Confluence Query Language). Returns matching pages with titles, IDs, and excerpts.").category(core.ToolCategory.WEB).tag("confluence").tag("search").tag("knowledge-base").usageNotes("Use this to find relevant documentation, policies, or information in Confluence. You can search by keywords or use CQL for advanced queries (e.g., 'space=AI AND type=page'). Use get-confluence-page to retrieve full content of specific pages.").suggests(["get-confluence-page"]).schema(zod.z.object({
1066
1066
  query: zod.z.string().describe("Search query or CQL expression (e.g., 'payment processing' or 'space=BL3 AND title~payment')"),
1067
1067
  limit: zod.z.number().optional().describe("Maximum number of results to return (default: 10, max: 25)")
1068
1068
  })).implement(async ({ query, limit = 10 }) => {
1069
- logger21.info("search-confluence called", { query, limit });
1069
+ logger19.info("search-confluence called", { query, limit });
1070
1070
  try {
1071
1071
  const { ATLASSIAN_SITE_URL } = getAuth();
1072
1072
  const response = await axios16__default.default.get(`${ATLASSIAN_SITE_URL}/wiki/rest/api/content/search`, {
@@ -1091,13 +1091,13 @@ function createSearchConfluenceTool(getAuth, getAuthHeader2, logger21) {
1091
1091
  lastModified: page.version?.when || ""
1092
1092
  }));
1093
1093
  if (results.length === 0) {
1094
- logger21.warn("search-confluence returned NO RESULTS - this is a valid outcome, agent should not retry", {
1094
+ logger19.warn("search-confluence returned NO RESULTS - this is a valid outcome, agent should not retry", {
1095
1095
  query,
1096
1096
  limit,
1097
1097
  totalSize: response.data.totalSize
1098
1098
  });
1099
1099
  } else {
1100
- logger21.info("search-confluence result", {
1100
+ logger19.info("search-confluence result", {
1101
1101
  query,
1102
1102
  resultCount: results.length,
1103
1103
  totalSize: response.data.totalSize,
@@ -1112,7 +1112,7 @@ function createSearchConfluenceTool(getAuth, getAuthHeader2, logger21) {
1112
1112
  results
1113
1113
  });
1114
1114
  } catch (error) {
1115
- logger21.error("search-confluence error", {
1115
+ logger19.error("search-confluence error", {
1116
1116
  query,
1117
1117
  error: error.response?.data?.message || error.message,
1118
1118
  status: error.response?.status
@@ -1124,11 +1124,11 @@ function createSearchConfluenceTool(getAuth, getAuthHeader2, logger21) {
1124
1124
  }
1125
1125
  }).build();
1126
1126
  }
1127
- function createGetConfluencePageTool(getAuth, getAuthHeader2, logger21) {
1127
+ function createGetConfluencePageTool(getAuth, getAuthHeader2, logger19) {
1128
1128
  return core.toolBuilder().name("get-confluence-page").description("Get the full content of a specific Confluence page by its ID. Returns the page title, content (in storage format), space, and metadata.").category(core.ToolCategory.WEB).tag("confluence").tag("page").tag("content").usageNotes("Use this after search-confluence to retrieve the full content of a specific page. The page ID can be found in search results.").requires(["search-confluence"]).schema(zod.z.object({
1129
1129
  page_id: zod.z.string().describe("The Confluence page ID (from search results)")
1130
1130
  })).implement(async ({ page_id }) => {
1131
- logger21.info("get-confluence-page called", { page_id });
1131
+ logger19.info("get-confluence-page called", { page_id });
1132
1132
  try {
1133
1133
  const { ATLASSIAN_SITE_URL } = getAuth();
1134
1134
  const response = await axios16__default.default.get(`${ATLASSIAN_SITE_URL}/wiki/rest/api/content/${page_id}`, {
@@ -1141,7 +1141,7 @@ function createGetConfluencePageTool(getAuth, getAuthHeader2, logger21) {
1141
1141
  }
1142
1142
  });
1143
1143
  const page = response.data;
1144
- logger21.info("get-confluence-page result", {
1144
+ logger19.info("get-confluence-page result", {
1145
1145
  page_id,
1146
1146
  title: page.title,
1147
1147
  space: page.space?.name,
@@ -1163,7 +1163,7 @@ function createGetConfluencePageTool(getAuth, getAuthHeader2, logger21) {
1163
1163
  }
1164
1164
  });
1165
1165
  } catch (error) {
1166
- logger21.error("get-confluence-page error", {
1166
+ logger19.error("get-confluence-page error", {
1167
1167
  page_id,
1168
1168
  error: error.response?.data?.message || error.message,
1169
1169
  status: error.response?.status
@@ -1175,11 +1175,11 @@ function createGetConfluencePageTool(getAuth, getAuthHeader2, logger21) {
1175
1175
  }
1176
1176
  }).build();
1177
1177
  }
1178
- function createListConfluenceSpacesTool(getAuth, getAuthHeader2, logger21) {
1178
+ function createListConfluenceSpacesTool(getAuth, getAuthHeader2, logger19) {
1179
1179
  return core.toolBuilder().name("list-confluence-spaces").description("List all available Confluence spaces. Returns space names, keys, types, and descriptions to help identify where to search for information.").category(core.ToolCategory.WEB).tag("confluence").tag("spaces").tag("list").usageNotes("Use this first to discover available spaces before searching. Helps narrow down searches to specific areas (e.g., 'AI', 'BL3', 'Finance').").follows(["search-confluence"]).schema(zod.z.object({
1180
1180
  limit: zod.z.number().optional().describe("Maximum number of spaces to return (default: 25)")
1181
1181
  })).implement(async ({ limit = 25 }) => {
1182
- logger21.info("list-confluence-spaces called", { limit });
1182
+ logger19.info("list-confluence-spaces called", { limit });
1183
1183
  try {
1184
1184
  const { ATLASSIAN_SITE_URL } = getAuth();
1185
1185
  const response = await axios16__default.default.get(`${ATLASSIAN_SITE_URL}/wiki/rest/api/space`, {
@@ -1198,7 +1198,7 @@ function createListConfluenceSpacesTool(getAuth, getAuthHeader2, logger21) {
1198
1198
  description: space.description?.plain?.value || "",
1199
1199
  url: `${ATLASSIAN_SITE_URL}/wiki${space._links.webui}`
1200
1200
  }));
1201
- logger21.info("list-confluence-spaces result", {
1201
+ logger19.info("list-confluence-spaces result", {
1202
1202
  spaceCount: spaces.length,
1203
1203
  spaceKeys: spaces.map((s) => s.key).slice(0, 5)
1204
1204
  // Log first 5 space keys
@@ -1209,7 +1209,7 @@ function createListConfluenceSpacesTool(getAuth, getAuthHeader2, logger21) {
1209
1209
  spaces
1210
1210
  });
1211
1211
  } catch (error) {
1212
- logger21.error("list-confluence-spaces error", {
1212
+ logger19.error("list-confluence-spaces error", {
1213
1213
  error: error.response?.data?.message || error.message,
1214
1214
  status: error.response?.status
1215
1215
  });
@@ -1220,12 +1220,12 @@ function createListConfluenceSpacesTool(getAuth, getAuthHeader2, logger21) {
1220
1220
  }
1221
1221
  }).build();
1222
1222
  }
1223
- function createGetSpacePagesTool(getAuth, getAuthHeader2, logger21) {
1223
+ function createGetSpacePagesTool(getAuth, getAuthHeader2, logger19) {
1224
1224
  return core.toolBuilder().name("get-space-pages").description("Get all pages from a specific Confluence space by space key. Useful for browsing content in a particular area.").category(core.ToolCategory.WEB).tag("confluence").tag("space").tag("pages").usageNotes("Use this to explore all pages in a specific space. Get the space key from list-confluence-spaces first.").requires(["list-confluence-spaces"]).schema(zod.z.object({
1225
1225
  space_key: zod.z.string().describe("The space key (e.g., 'AI', 'BL3', 'FIN')"),
1226
1226
  limit: zod.z.number().optional().describe("Maximum number of pages to return (default: 25)")
1227
1227
  })).implement(async ({ space_key, limit = 25 }) => {
1228
- logger21.info("get-space-pages called", { space_key, limit });
1228
+ logger19.info("get-space-pages called", { space_key, limit });
1229
1229
  try {
1230
1230
  const { ATLASSIAN_SITE_URL } = getAuth();
1231
1231
  const response = await axios16__default.default.get(`${ATLASSIAN_SITE_URL}/wiki/rest/api/content`, {
@@ -1247,12 +1247,12 @@ function createGetSpacePagesTool(getAuth, getAuthHeader2, logger21) {
1247
1247
  lastModified: page.version?.when || ""
1248
1248
  }));
1249
1249
  if (pages.length === 0) {
1250
- logger21.warn("get-space-pages returned NO PAGES - this is a valid outcome, agent should not retry", {
1250
+ logger19.warn("get-space-pages returned NO PAGES - this is a valid outcome, agent should not retry", {
1251
1251
  space_key,
1252
1252
  limit
1253
1253
  });
1254
1254
  } else {
1255
- logger21.info("get-space-pages result", {
1255
+ logger19.info("get-space-pages result", {
1256
1256
  space_key,
1257
1257
  pageCount: pages.length,
1258
1258
  titles: pages.map((p) => p.title).slice(0, 3)
@@ -1266,7 +1266,7 @@ function createGetSpacePagesTool(getAuth, getAuthHeader2, logger21) {
1266
1266
  pages
1267
1267
  });
1268
1268
  } catch (error) {
1269
- logger21.error("get-space-pages error", {
1269
+ logger19.error("get-space-pages error", {
1270
1270
  space_key,
1271
1271
  error: error.response?.data?.message || error.message,
1272
1272
  status: error.response?.status
@@ -1278,14 +1278,14 @@ function createGetSpacePagesTool(getAuth, getAuthHeader2, logger21) {
1278
1278
  }
1279
1279
  }).build();
1280
1280
  }
1281
- function createCreateConfluencePageTool(getAuth, getAuthHeader2, logger21) {
1281
+ function createCreateConfluencePageTool(getAuth, getAuthHeader2, logger19) {
1282
1282
  return core.toolBuilder().name("create-confluence-page").description("Create a new page in a Confluence space. Requires space key, page title, and content (in HTML storage format).").category(core.ToolCategory.WEB).tag("confluence").tag("create").tag("write").usageNotes("Use this to create new documentation pages. Content should be in Confluence storage format (HTML). Get the space key from list-confluence-spaces first. Be mindful of creating duplicate pages.").requires(["list-confluence-spaces"]).schema(zod.z.object({
1283
1283
  space_key: zod.z.string().describe("The space key where the page will be created (e.g., 'AI', 'BL3')"),
1284
1284
  title: zod.z.string().describe("The title of the new page"),
1285
1285
  content: zod.z.string().describe("The page content in HTML format (Confluence storage format)"),
1286
1286
  parent_page_id: zod.z.string().optional().describe("Optional parent page ID to create this as a child page")
1287
1287
  })).implement(async ({ space_key, title, content, parent_page_id }) => {
1288
- logger21.info("create-confluence-page called", { space_key, title, hasParent: !!parent_page_id });
1288
+ logger19.info("create-confluence-page called", { space_key, title, hasParent: !!parent_page_id });
1289
1289
  try {
1290
1290
  const { ATLASSIAN_SITE_URL } = getAuth();
1291
1291
  const pageData = {
@@ -1312,7 +1312,7 @@ function createCreateConfluencePageTool(getAuth, getAuthHeader2, logger21) {
1312
1312
  }
1313
1313
  }
1314
1314
  );
1315
- logger21.info("create-confluence-page result", {
1315
+ logger19.info("create-confluence-page result", {
1316
1316
  page_id: response.data.id,
1317
1317
  title: response.data.title,
1318
1318
  space: space_key
@@ -1328,7 +1328,7 @@ function createCreateConfluencePageTool(getAuth, getAuthHeader2, logger21) {
1328
1328
  }
1329
1329
  });
1330
1330
  } catch (error) {
1331
- logger21.error("create-confluence-page error", {
1331
+ logger19.error("create-confluence-page error", {
1332
1332
  space_key,
1333
1333
  title,
1334
1334
  error: error.response?.data?.message || error.message,
@@ -1341,13 +1341,13 @@ function createCreateConfluencePageTool(getAuth, getAuthHeader2, logger21) {
1341
1341
  }
1342
1342
  }).build();
1343
1343
  }
1344
- function createUpdateConfluencePageTool(getAuth, getAuthHeader2, logger21) {
1344
+ function createUpdateConfluencePageTool(getAuth, getAuthHeader2, logger19) {
1345
1345
  return core.toolBuilder().name("update-confluence-page").description("Update an existing Confluence page's content. Requires page ID, new title, and new content.").category(core.ToolCategory.WEB).tag("confluence").tag("update").tag("write").usageNotes("Use this to update existing documentation. You must provide the page ID (from search results). The tool will automatically handle version incrementing. Always get the current page content first to avoid overwriting important information.").requires(["get-confluence-page"]).schema(zod.z.object({
1346
1346
  page_id: zod.z.string().describe("The ID of the page to update"),
1347
1347
  title: zod.z.string().describe("The new title for the page"),
1348
1348
  content: zod.z.string().describe("The new content in HTML format (Confluence storage format)")
1349
1349
  })).implement(async ({ page_id, title, content }) => {
1350
- logger21.info("update-confluence-page called", { page_id, title });
1350
+ logger19.info("update-confluence-page called", { page_id, title });
1351
1351
  try {
1352
1352
  const { ATLASSIAN_SITE_URL } = getAuth();
1353
1353
  const getResponse = await axios16__default.default.get(
@@ -1380,7 +1380,7 @@ function createUpdateConfluencePageTool(getAuth, getAuthHeader2, logger21) {
1380
1380
  }
1381
1381
  }
1382
1382
  );
1383
- logger21.info("update-confluence-page result", {
1383
+ logger19.info("update-confluence-page result", {
1384
1384
  page_id,
1385
1385
  title: updateResponse.data.title,
1386
1386
  previousVersion: currentVersion,
@@ -1397,7 +1397,7 @@ function createUpdateConfluencePageTool(getAuth, getAuthHeader2, logger21) {
1397
1397
  }
1398
1398
  });
1399
1399
  } catch (error) {
1400
- logger21.error("update-confluence-page error", {
1400
+ logger19.error("update-confluence-page error", {
1401
1401
  page_id,
1402
1402
  title,
1403
1403
  error: error.response?.data?.message || error.message,
@@ -1410,12 +1410,12 @@ function createUpdateConfluencePageTool(getAuth, getAuthHeader2, logger21) {
1410
1410
  }
1411
1411
  }).build();
1412
1412
  }
1413
- function createArchiveConfluencePageTool(getAuth, getAuthHeader2, logger21) {
1413
+ function createArchiveConfluencePageTool(getAuth, getAuthHeader2, logger19) {
1414
1414
  return core.toolBuilder().name("archive-confluence-page").description("Archive a Confluence page by moving it to trash. The page can be restored by space admins. Note: UI may require a note explaining why the page was archived.").category(core.ToolCategory.WEB).tag("confluence").tag("archive").tag("delete").usageNotes("Use this to archive outdated or obsolete documentation. The page is moved to trash, not permanently deleted. Space admins can restore it if needed. Be very careful - only archive pages that are truly obsolete.").conflicts(["create-confluence-page"]).schema(zod.z.object({
1415
1415
  page_id: zod.z.string().describe("The ID of the page to archive"),
1416
1416
  reason: zod.z.string().optional().describe("Optional reason for archiving (for audit trail)")
1417
1417
  })).implement(async ({ page_id, reason }) => {
1418
- logger21.info("archive-confluence-page called", {
1418
+ logger19.info("archive-confluence-page called", {
1419
1419
  page_id,
1420
1420
  ...reason ? { reason } : {}
1421
1421
  });
@@ -1449,7 +1449,7 @@ function createArchiveConfluencePageTool(getAuth, getAuthHeader2, logger21) {
1449
1449
  }
1450
1450
  }
1451
1451
  );
1452
- logger21.info("archive-confluence-page result", {
1452
+ logger19.info("archive-confluence-page result", {
1453
1453
  page_id,
1454
1454
  title: pageData.title,
1455
1455
  previousVersion: currentVersion,
@@ -1467,7 +1467,7 @@ function createArchiveConfluencePageTool(getAuth, getAuthHeader2, logger21) {
1467
1467
  }
1468
1468
  });
1469
1469
  } catch (error) {
1470
- logger21.error("archive-confluence-page error", {
1470
+ logger19.error("archive-confluence-page error", {
1471
1471
  page_id,
1472
1472
  error: error.response?.data?.message || error.message,
1473
1473
  status: error.response?.status
@@ -4195,19 +4195,19 @@ var ConnectionState = /* @__PURE__ */ ((ConnectionState2) => {
4195
4195
  ConnectionState2["ERROR"] = "error";
4196
4196
  return ConnectionState2;
4197
4197
  })(ConnectionState || {});
4198
- function cancelPendingReconnection(timer, logger21, vendor, message) {
4198
+ function cancelPendingReconnection(timer, logger19, vendor, message) {
4199
4199
  if (!timer) {
4200
4200
  return null;
4201
4201
  }
4202
- logger21.debug(message, { vendor });
4202
+ logger19.debug(message, { vendor });
4203
4203
  clearTimeout(timer);
4204
4204
  return null;
4205
4205
  }
4206
- async function waitForInFlightConnection(promise, logger21, vendor, phase) {
4206
+ async function waitForInFlightConnection(promise, logger19, vendor, phase) {
4207
4207
  if (!promise) {
4208
4208
  return null;
4209
4209
  }
4210
- logger21.debug(`Waiting for in-flight connection attempt to complete before ${phase}`, {
4210
+ logger19.debug(`Waiting for in-flight connection attempt to complete before ${phase}`, {
4211
4211
  vendor
4212
4212
  });
4213
4213
  try {
@@ -4224,9 +4224,9 @@ function shutdownClient(vendor, client) {
4224
4224
  client.close();
4225
4225
  }
4226
4226
  }
4227
- function scheduleReconnection(context, logger21) {
4227
+ function scheduleReconnection(context, logger19) {
4228
4228
  if (context.reconnectionConfig.maxAttempts > 0 && context.reconnectionAttempts >= context.reconnectionConfig.maxAttempts) {
4229
- logger21.error("Max reconnection attempts reached", {
4229
+ logger19.error("Max reconnection attempts reached", {
4230
4230
  vendor: context.vendor,
4231
4231
  attempts: context.reconnectionAttempts,
4232
4232
  maxAttempts: context.reconnectionConfig.maxAttempts
@@ -4240,7 +4240,7 @@ function scheduleReconnection(context, logger21) {
4240
4240
  const nextAttempt = context.reconnectionAttempts + 1;
4241
4241
  context.setReconnectionAttempts(nextAttempt);
4242
4242
  context.setState("reconnecting" /* RECONNECTING */);
4243
- logger21.info("Scheduling reconnection attempt", {
4243
+ logger19.info("Scheduling reconnection attempt", {
4244
4244
  vendor: context.vendor,
4245
4245
  attempt: nextAttempt,
4246
4246
  maxAttempts: context.reconnectionConfig.maxAttempts,
@@ -4254,7 +4254,7 @@ function scheduleReconnection(context, logger21) {
4254
4254
  const timer = setTimeout(async () => {
4255
4255
  context.setReconnectionTimer(null);
4256
4256
  try {
4257
- logger21.info("Attempting reconnection", {
4257
+ logger19.info("Attempting reconnection", {
4258
4258
  vendor: context.vendor,
4259
4259
  attempt: nextAttempt
4260
4260
  });
@@ -4264,7 +4264,7 @@ function scheduleReconnection(context, logger21) {
4264
4264
  context.setConnectPromise(promise);
4265
4265
  await promise;
4266
4266
  } catch (error) {
4267
- logger21.error("Reconnection attempt failed", {
4267
+ logger19.error("Reconnection attempt failed", {
4268
4268
  vendor: context.vendor,
4269
4269
  attempt: nextAttempt,
4270
4270
  error: error instanceof Error ? error.message : String(error)
@@ -4275,17 +4275,17 @@ function scheduleReconnection(context, logger21) {
4275
4275
  }
4276
4276
 
4277
4277
  // src/data/relational/connection/connection-cleanup.ts
4278
- async function cleanupConnectionResources(vendor, client, clearConnection, logger21) {
4278
+ async function cleanupConnectionResources(vendor, client, clearConnection, logger19) {
4279
4279
  if (!client) {
4280
4280
  return;
4281
4281
  }
4282
- logger21.debug("Cleaning up cancelled connection", {
4282
+ logger19.debug("Cleaning up cancelled connection", {
4283
4283
  vendor
4284
4284
  });
4285
4285
  try {
4286
4286
  await shutdownClient(vendor, client);
4287
4287
  } catch (error) {
4288
- logger21.debug("Error during cancelled connection cleanup", {
4288
+ logger19.debug("Error during cancelled connection cleanup", {
4289
4289
  vendor,
4290
4290
  error: error instanceof Error ? error.message : String(error)
4291
4291
  });
@@ -4293,10 +4293,10 @@ async function cleanupConnectionResources(vendor, client, clearConnection, logge
4293
4293
  clearConnection();
4294
4294
  }
4295
4295
  }
4296
- async function closeManagedConnection(runtime, logger21) {
4296
+ async function closeManagedConnection(runtime, logger19) {
4297
4297
  const client = runtime.getClient();
4298
4298
  if (client) {
4299
- logger21.info("Closing database connection", {
4299
+ logger19.info("Closing database connection", {
4300
4300
  vendor: runtime.vendor,
4301
4301
  state: runtime.getState()
4302
4302
  });
@@ -4304,12 +4304,12 @@ async function closeManagedConnection(runtime, logger21) {
4304
4304
  await shutdownClient(runtime.vendor, client);
4305
4305
  runtime.setState("disconnected" /* DISCONNECTED */);
4306
4306
  runtime.emitDisconnected();
4307
- logger21.debug("Database connection closed successfully", {
4307
+ logger19.debug("Database connection closed successfully", {
4308
4308
  vendor: runtime.vendor,
4309
4309
  state: runtime.getState()
4310
4310
  });
4311
4311
  } catch (error) {
4312
- logger21.error("Error closing database connection", {
4312
+ logger19.error("Error closing database connection", {
4313
4313
  vendor: runtime.vendor,
4314
4314
  error: error instanceof Error ? error.message : String(error),
4315
4315
  state: runtime.getState()
@@ -4482,11 +4482,11 @@ async function initializeSQLiteConnection(connection) {
4482
4482
  }
4483
4483
 
4484
4484
  // src/data/relational/connection/connection-initialization.ts
4485
- async function initializeManagedConnection(runtime, logger21) {
4485
+ async function initializeManagedConnection(runtime, logger19) {
4486
4486
  const startTime = Date.now();
4487
4487
  const currentGeneration = runtime.getConnectionGeneration();
4488
4488
  if (runtime.getState() === "connected" /* CONNECTED */ && runtime.getClient()) {
4489
- logger21.warn("Re-initializing an already connected manager; emitting disconnected before cleanup", {
4489
+ logger19.warn("Re-initializing an already connected manager; emitting disconnected before cleanup", {
4490
4490
  vendor: runtime.vendor
4491
4491
  });
4492
4492
  runtime.setState("disconnected" /* DISCONNECTED */);
@@ -4498,11 +4498,11 @@ async function initializeManagedConnection(runtime, logger21) {
4498
4498
  runtime.setClient(null);
4499
4499
  runtime.setDb(null);
4500
4500
  },
4501
- logger21
4501
+ logger19
4502
4502
  );
4503
4503
  }
4504
4504
  runtime.setState("connecting" /* CONNECTING */);
4505
- logger21.info("Initializing database connection", {
4505
+ logger19.info("Initializing database connection", {
4506
4506
  vendor: runtime.vendor,
4507
4507
  connectionType: typeof runtime.config.connection,
4508
4508
  state: runtime.getState()
@@ -4512,7 +4512,7 @@ async function initializeManagedConnection(runtime, logger21) {
4512
4512
  runtime.setClient(initialized.client);
4513
4513
  runtime.setDb(initialized.db);
4514
4514
  if (currentGeneration !== runtime.getConnectionGeneration()) {
4515
- logger21.debug("Connection cancelled during initialization", {
4515
+ logger19.debug("Connection cancelled during initialization", {
4516
4516
  vendor: runtime.vendor,
4517
4517
  currentGeneration,
4518
4518
  newGeneration: runtime.getConnectionGeneration()
@@ -4524,18 +4524,18 @@ async function initializeManagedConnection(runtime, logger21) {
4524
4524
  runtime.setClient(null);
4525
4525
  runtime.setDb(null);
4526
4526
  },
4527
- logger21
4527
+ logger19
4528
4528
  );
4529
4529
  runtime.setState("disconnected" /* DISCONNECTED */);
4530
4530
  throw new Error("Connection cancelled during initialization");
4531
4531
  }
4532
- logger21.debug("Validating connection health", { vendor: runtime.vendor });
4532
+ logger19.debug("Validating connection health", { vendor: runtime.vendor });
4533
4533
  const healthy = await runtime.isHealthy();
4534
4534
  if (!healthy) {
4535
4535
  throw new Error(`Failed to establish healthy connection to ${runtime.vendor} database`);
4536
4536
  }
4537
4537
  if (currentGeneration !== runtime.getConnectionGeneration()) {
4538
- logger21.debug("Connection cancelled during health check", {
4538
+ logger19.debug("Connection cancelled during health check", {
4539
4539
  vendor: runtime.vendor,
4540
4540
  currentGeneration,
4541
4541
  newGeneration: runtime.getConnectionGeneration()
@@ -4547,7 +4547,7 @@ async function initializeManagedConnection(runtime, logger21) {
4547
4547
  runtime.setClient(null);
4548
4548
  runtime.setDb(null);
4549
4549
  },
4550
- logger21
4550
+ logger19
4551
4551
  );
4552
4552
  runtime.setState("disconnected" /* DISCONNECTED */);
4553
4553
  throw new Error("Connection cancelled during health check");
@@ -4555,7 +4555,7 @@ async function initializeManagedConnection(runtime, logger21) {
4555
4555
  runtime.setState("connected" /* CONNECTED */);
4556
4556
  runtime.emitConnected();
4557
4557
  runtime.resetReconnectionAttempts();
4558
- logger21.info("Database connection initialized successfully", {
4558
+ logger19.info("Database connection initialized successfully", {
4559
4559
  vendor: runtime.vendor,
4560
4560
  duration: Date.now() - startTime,
4561
4561
  state: runtime.getState()
@@ -4576,7 +4576,7 @@ async function initializeManagedConnection(runtime, logger21) {
4576
4576
  if (runtime.errorListenerCount() > 0) {
4577
4577
  runtime.emitError(normalizedError);
4578
4578
  }
4579
- logger21.error(errorMessage, {
4579
+ logger19.error(errorMessage, {
4580
4580
  vendor: runtime.vendor,
4581
4581
  error: normalizedError.message,
4582
4582
  duration: Date.now() - startTime,
@@ -4589,13 +4589,13 @@ async function initializeManagedConnection(runtime, logger21) {
4589
4589
  runtime.setClient(null);
4590
4590
  runtime.setDb(null);
4591
4591
  },
4592
- logger21
4592
+ logger19
4593
4593
  );
4594
4594
  if (runtime.getReconnectionConfig().enabled && currentGeneration === runtime.getConnectionGeneration()) {
4595
4595
  runtime.scheduleReconnection();
4596
4596
  }
4597
4597
  } else {
4598
- logger21.debug("Connection initialization cancelled", {
4598
+ logger19.debug("Connection initialization cancelled", {
4599
4599
  vendor: runtime.vendor,
4600
4600
  duration: Date.now() - startTime,
4601
4601
  state: runtime.getState()
@@ -4613,17 +4613,17 @@ function isSqliteNonQueryError(error) {
4613
4613
  const hasNonQueryMessage = error.message.includes("does not return data");
4614
4614
  return isSqliteOrTypeError && hasNonQueryMessage;
4615
4615
  }
4616
- async function checkConnectionHealth(args, logger21) {
4616
+ async function checkConnectionHealth(args, logger19) {
4617
4617
  if (!args.db || !args.client) {
4618
- logger21.debug("Health check failed: connection not initialized", { vendor: args.vendor });
4618
+ logger19.debug("Health check failed: connection not initialized", { vendor: args.vendor });
4619
4619
  return false;
4620
4620
  }
4621
4621
  try {
4622
4622
  await args.execute(drizzleOrm.sql`SELECT 1`);
4623
- logger21.debug("Health check passed", { vendor: args.vendor });
4623
+ logger19.debug("Health check passed", { vendor: args.vendor });
4624
4624
  return true;
4625
4625
  } catch (error) {
4626
- logger21.debug("Health check failed", {
4626
+ logger19.debug("Health check failed", {
4627
4627
  vendor: args.vendor,
4628
4628
  error: error instanceof Error ? error.message : String(error)
4629
4629
  });
@@ -4666,8 +4666,8 @@ function getConnectionPoolMetrics(vendor, client) {
4666
4666
  }
4667
4667
 
4668
4668
  // src/data/relational/connection/query-execution.ts
4669
- async function executeQuery(context, query, logger21) {
4670
- logger21.debug("Executing SQL query", {
4669
+ async function executeQuery(context, query, logger19) {
4670
+ logger19.debug("Executing SQL query", {
4671
4671
  vendor: context.vendor
4672
4672
  });
4673
4673
  if (context.vendor === "sqlite") {
@@ -8175,9 +8175,7 @@ function isSafeUpdateError(error) {
8175
8175
  }
8176
8176
  return isSafeUpdateValidationError(error) || getUpdateConstraintViolationMessage(error) !== null;
8177
8177
  }
8178
-
8179
- // src/data/relational/tools/relational-update/executor.ts
8180
- var logger17 = core.createLogger("agentforge:tools:data:relational:update");
8178
+ var updateExecutorLogger = core.createLogger("agentforge:tools:data:relational:update");
8181
8179
  function toNumber2(value) {
8182
8180
  return typeof value === "number" && Number.isFinite(value) ? value : void 0;
8183
8181
  }
@@ -8225,6 +8223,8 @@ function toSingleUpdateOperation(input) {
8225
8223
  optimisticLock: input.optimisticLock
8226
8224
  };
8227
8225
  }
8226
+
8227
+ // src/data/relational/tools/relational-update/executor-single.ts
8228
8228
  async function executeSingleUpdate(manager, input, operation, context) {
8229
8229
  const built = buildUpdateQuery({
8230
8230
  table: input.table,
@@ -8245,6 +8245,8 @@ async function executeSingleUpdate(manager, input, operation, context) {
8245
8245
  executionTime: 0
8246
8246
  };
8247
8247
  }
8248
+
8249
+ // src/data/relational/tools/relational-update/executor-batch.ts
8248
8250
  async function executeUpdateInBatchMode(manager, input, context, options) {
8249
8251
  const batchResult = await executeBatchedTask(
8250
8252
  {
@@ -8299,7 +8301,7 @@ async function executeUpdateInBatchMode(manager, input, context, options) {
8299
8301
  maxRetries: options.maxRetries,
8300
8302
  retryDelayMs: options.retryDelayMs,
8301
8303
  onProgress: (progress) => {
8302
- logger17.debug("UPDATE batch progress", {
8304
+ updateExecutorLogger.debug("UPDATE batch progress", {
8303
8305
  vendor: input.vendor,
8304
8306
  table: input.table,
8305
8307
  ...progress
@@ -8311,7 +8313,7 @@ async function executeUpdateInBatchMode(manager, input, context, options) {
8311
8313
  const operationFailures = batchResult.results.flatMap((result) => result.failures);
8312
8314
  let benchmark;
8313
8315
  if (options.benchmark) {
8314
- logger17.warn("UPDATE batch benchmark enabled. Synthetic benchmark callbacks are side-effect free and do not execute SQL.", {
8316
+ updateExecutorLogger.warn("UPDATE batch benchmark enabled. Synthetic benchmark callbacks are side-effect free and do not execute SQL.", {
8315
8317
  vendor: input.vendor,
8316
8318
  table: input.table,
8317
8319
  operationCount: input.operations.length,
@@ -8344,9 +8346,11 @@ async function executeUpdateInBatchMode(manager, input, context, options) {
8344
8346
  }
8345
8347
  };
8346
8348
  }
8349
+
8350
+ // src/data/relational/tools/relational-update/executor.ts
8347
8351
  async function executeUpdate(manager, input, context) {
8348
8352
  const startTime = Date.now();
8349
- logger17.debug("Building UPDATE query", {
8353
+ updateExecutorLogger.debug("Building UPDATE query", {
8350
8354
  vendor: input.vendor,
8351
8355
  table: input.table,
8352
8356
  hasWhere: !!input.where?.length,
@@ -8364,7 +8368,7 @@ async function executeUpdate(manager, input, context) {
8364
8368
  batchOptions
8365
8369
  ) : await executeSingleUpdate(manager, input, toSingleUpdateOperation(input), context);
8366
8370
  const executionTime = Date.now() - startTime;
8367
- logger17.debug("UPDATE query executed successfully", {
8371
+ updateExecutorLogger.debug("UPDATE query executed successfully", {
8368
8372
  vendor: input.vendor,
8369
8373
  table: input.table,
8370
8374
  rowCount: result.rowCount,
@@ -8378,7 +8382,7 @@ async function executeUpdate(manager, input, context) {
8378
8382
  };
8379
8383
  } catch (error) {
8380
8384
  const executionTime = Date.now() - startTime;
8381
- logger17.error("UPDATE query execution failed", {
8385
+ updateExecutorLogger.error("UPDATE query execution failed", {
8382
8386
  vendor: input.vendor,
8383
8387
  table: input.table,
8384
8388
  error: error instanceof Error ? error.message : String(error),
@@ -8680,9 +8684,7 @@ function isSafeDeleteError(error) {
8680
8684
  }
8681
8685
  return SAFE_DELETE_VALIDATION_PATTERNS.some((pattern) => error.message.includes(pattern)) || error.message.startsWith("Delete failed:");
8682
8686
  }
8683
-
8684
- // src/data/relational/tools/relational-delete/executor.ts
8685
- var logger18 = core.createLogger("agentforge:tools:data:relational:delete");
8687
+ var deleteExecutorLogger = core.createLogger("agentforge:tools:data:relational:delete");
8686
8688
  function toNumber3(value) {
8687
8689
  return typeof value === "number" && Number.isFinite(value) ? value : void 0;
8688
8690
  }
@@ -8727,6 +8729,8 @@ function toSingleDeleteOperation(input) {
8727
8729
  softDelete: input.softDelete
8728
8730
  };
8729
8731
  }
8732
+
8733
+ // src/data/relational/tools/relational-delete/executor-single.ts
8730
8734
  async function executeSingleDelete(manager, input, operation, context) {
8731
8735
  const built = buildDeleteQuery({
8732
8736
  table: input.table,
@@ -8744,6 +8748,8 @@ async function executeSingleDelete(manager, input, operation, context) {
8744
8748
  softDeleted: built.usesSoftDelete
8745
8749
  };
8746
8750
  }
8751
+
8752
+ // src/data/relational/tools/relational-delete/executor-batch.ts
8747
8753
  async function executeDeleteInBatchMode(manager, input, context, options) {
8748
8754
  const batchResult = await executeBatchedTask(
8749
8755
  {
@@ -8803,7 +8809,7 @@ async function executeDeleteInBatchMode(manager, input, context, options) {
8803
8809
  maxRetries: options.maxRetries,
8804
8810
  retryDelayMs: options.retryDelayMs,
8805
8811
  onProgress: (progress) => {
8806
- logger18.debug("DELETE batch progress", {
8812
+ deleteExecutorLogger.debug("DELETE batch progress", {
8807
8813
  vendor: input.vendor,
8808
8814
  table: input.table,
8809
8815
  ...progress
@@ -8816,12 +8822,15 @@ async function executeDeleteInBatchMode(manager, input, context, options) {
8816
8822
  const operationFailures = batchResult.results.flatMap((result) => result.failures);
8817
8823
  let benchmark;
8818
8824
  if (options.benchmark) {
8819
- logger18.warn("DELETE batch benchmark enabled. Synthetic benchmark callbacks are side-effect free and do not execute SQL.", {
8820
- vendor: input.vendor,
8821
- table: input.table,
8822
- operationCount: input.operations.length,
8823
- batchSize: options.batchSize
8824
- });
8825
+ deleteExecutorLogger.warn(
8826
+ "DELETE batch benchmark enabled. Synthetic benchmark callbacks are side-effect free and do not execute SQL.",
8827
+ {
8828
+ vendor: input.vendor,
8829
+ table: input.table,
8830
+ operationCount: input.operations.length,
8831
+ batchSize: options.batchSize
8832
+ }
8833
+ );
8825
8834
  benchmark = await benchmarkBatchExecution({
8826
8835
  items: input.operations,
8827
8836
  batchSize: options.batchSize,
@@ -8850,9 +8859,11 @@ async function executeDeleteInBatchMode(manager, input, context, options) {
8850
8859
  }
8851
8860
  };
8852
8861
  }
8862
+
8863
+ // src/data/relational/tools/relational-delete/executor.ts
8853
8864
  async function executeDelete(manager, input, context) {
8854
8865
  const startTime = Date.now();
8855
- logger18.debug("Building DELETE query", {
8866
+ deleteExecutorLogger.debug("Building DELETE query", {
8856
8867
  vendor: input.vendor,
8857
8868
  table: input.table,
8858
8869
  hasWhere: !!input.where?.length,
@@ -8871,7 +8882,7 @@ async function executeDelete(manager, input, context) {
8871
8882
  batchOptions
8872
8883
  ) : await executeSingleDelete(manager, input, toSingleDeleteOperation(input), context);
8873
8884
  const executionTime = Date.now() - startTime;
8874
- logger18.debug("DELETE query executed successfully", {
8885
+ deleteExecutorLogger.debug("DELETE query executed successfully", {
8875
8886
  vendor: input.vendor,
8876
8887
  table: input.table,
8877
8888
  rowCount: result.rowCount,
@@ -8887,7 +8898,7 @@ async function executeDelete(manager, input, context) {
8887
8898
  };
8888
8899
  } catch (error) {
8889
8900
  const executionTime = Date.now() - startTime;
8890
- logger18.error("DELETE query execution failed", {
8901
+ deleteExecutorLogger.error("DELETE query execution failed", {
8891
8902
  vendor: input.vendor,
8892
8903
  table: input.table,
8893
8904
  error: error instanceof Error ? error.message : String(error),
@@ -8992,7 +9003,7 @@ function isSafeGetSchemaValidationError(error) {
8992
9003
  }
8993
9004
 
8994
9005
  // src/data/relational/tools/relational-get-schema.ts
8995
- var logger19 = core.createLogger("agentforge:tools:data:relational:get-schema");
9006
+ var logger17 = core.createLogger("agentforge:tools:data:relational:get-schema");
8996
9007
  function buildSchemaCacheKey(vendor, connectionString, database) {
8997
9008
  const databaseScope = database ?? "default";
8998
9009
  const connectionHash = crypto.createHash("sha256").update(connectionString).digest("hex");
@@ -9064,7 +9075,7 @@ var relationalGetSchema = core.toolBuilder().name("relational-get-schema").displ
9064
9075
  summary
9065
9076
  };
9066
9077
  } catch (error) {
9067
- logger19.error("Schema introspection failed", {
9078
+ logger17.error("Schema introspection failed", {
9068
9079
  vendor: input.vendor,
9069
9080
  hasTablesFilter: Array.isArray(input.tables),
9070
9081
  tablesFilterCount: input.tables?.length ?? 0,
@@ -10230,7 +10241,7 @@ var AskHumanInputSchema = zod.z.object({
10230
10241
  suggestions: zod.z.array(zod.z.string()).optional().describe("Suggested responses for the human")
10231
10242
  });
10232
10243
  var logLevel3 = process.env.LOG_LEVEL?.toLowerCase() || core.LogLevel.INFO;
10233
- var logger20 = core.createLogger("agentforge:tools:agent:ask-human", { level: logLevel3 });
10244
+ var logger18 = core.createLogger("agentforge:tools:agent:ask-human", { level: logLevel3 });
10234
10245
  function isRecord2(value) {
10235
10246
  return typeof value === "object" && value !== null;
10236
10247
  }
@@ -10295,7 +10306,7 @@ function createAskHumanTool() {
10295
10306
  suggestions: validatedInput.suggestions,
10296
10307
  status: "pending"
10297
10308
  };
10298
- logger20.debug("About to call interrupt()", {
10309
+ logger18.debug("About to call interrupt()", {
10299
10310
  humanRequest: {
10300
10311
  id: humanRequest.id,
10301
10312
  question: humanRequest.question,
@@ -10311,13 +10322,13 @@ function createAskHumanTool() {
10311
10322
  let response;
10312
10323
  try {
10313
10324
  response = interrupt(humanRequest);
10314
- logger20.debug("interrupt() returned successfully", {
10325
+ logger18.debug("interrupt() returned successfully", {
10315
10326
  responseType: typeof response,
10316
10327
  hasResponse: response != null,
10317
10328
  ...typeof response === "string" ? { responseLength: response.length } : {}
10318
10329
  });
10319
10330
  } catch (error) {
10320
- logger20.debug("interrupt() threw error (expected for GraphInterrupt)", {
10331
+ logger18.debug("interrupt() threw error (expected for GraphInterrupt)", {
10321
10332
  ...error && typeof error === "object" && "constructor" in error ? { errorType: error.constructor?.name } : {},
10322
10333
  error: error instanceof Error ? error.message : String(error)
10323
10334
  });