@posthog/agent 2.3.524 → 2.3.526

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.
@@ -8755,7 +8755,7 @@ var import_zod3 = require("zod");
8755
8755
  // package.json
8756
8756
  var package_default = {
8757
8757
  name: "@posthog/agent",
8758
- version: "2.3.524",
8758
+ version: "2.3.526",
8759
8759
  repository: "https://github.com/PostHog/code",
8760
8760
  description: "TypeScript agent framework wrapping Claude Agent SDK with Git-based task execution for PostHog",
8761
8761
  exports: {
@@ -20050,14 +20050,14 @@ var HandoffCheckpointTracker = class {
20050
20050
  });
20051
20051
  }
20052
20052
  logCaptureMetrics(checkpoint, uploads) {
20053
- this.logger.info("Captured handoff checkpoint", {
20053
+ this.logger.debug("Captured handoff checkpoint", {
20054
20054
  branch: checkpoint.branch,
20055
20055
  head: checkpoint.head?.slice(0, 7),
20056
20056
  totalBytes: this.sumRawBytes(uploads.pack, uploads.index)
20057
20057
  });
20058
20058
  }
20059
20059
  logApplyMetrics(checkpoint, _downloads, totalBytes) {
20060
- this.logger.info("Applied handoff checkpoint", {
20060
+ this.logger.debug("Applied handoff checkpoint", {
20061
20061
  branch: checkpoint.branch,
20062
20062
  head: checkpoint.head?.slice(0, 7),
20063
20063
  totalBytes
@@ -21558,7 +21558,7 @@ var AgentServer = class {
21558
21558
  switch (method) {
21559
21559
  case POSTHOG_NOTIFICATIONS.USER_MESSAGE:
21560
21560
  case "user_message": {
21561
- this.logger.info("Received user_message command", {
21561
+ this.logger.debug("Received user_message command", {
21562
21562
  hasContent: typeof params.content === "string" ? params.content.trim().length > 0 : Array.isArray(params.content) && params.content.length > 0,
21563
21563
  artifactCount: Array.isArray(params.artifacts) ? params.artifacts.length : 0
21564
21564
  });
@@ -21571,7 +21571,7 @@ var AgentServer = class {
21571
21571
  if (prompt.length === 0) {
21572
21572
  throw new Error("User message cannot be empty");
21573
21573
  }
21574
- this.logger.info("Built user_message prompt", {
21574
+ this.logger.debug("Built user_message prompt", {
21575
21575
  blockTypes: prompt.map((block) => block.type)
21576
21576
  });
21577
21577
  const promptPreview = promptBlocksToText(prompt);
@@ -21656,7 +21656,7 @@ var AgentServer = class {
21656
21656
  case "posthog/refresh_session":
21657
21657
  case "refresh_session": {
21658
21658
  const mcpServers = Array.isArray(params.mcpServers) ? params.mcpServers : [];
21659
- this.logger.info("Refresh session requested", {
21659
+ this.logger.debug("Refresh session requested", {
21660
21660
  serverCount: mcpServers.length
21661
21661
  });
21662
21662
  return await this.session.clientConnection.extMethod(
@@ -22009,7 +22009,7 @@ var AgentServer = class {
22009
22009
  this.resumeState.latestGitCheckpoint
22010
22010
  );
22011
22011
  checkpointApplied = true;
22012
- this.logger.info("Git checkpoint applied", {
22012
+ this.logger.debug("Git checkpoint applied", {
22013
22013
  branch: this.resumeState.latestGitCheckpoint.branch,
22014
22014
  head: this.resumeState.latestGitCheckpoint.head,
22015
22015
  packBytes: metrics.packBytes,
@@ -22115,7 +22115,7 @@ Continue from where you left off. The user is waiting for your response.`
22115
22115
  taskId: taskRun.task,
22116
22116
  runId: taskRun.id
22117
22117
  });
22118
- this.logger.info("Built pending user prompt", {
22118
+ this.logger.debug("Built pending user prompt", {
22119
22119
  hasMessage: typeof message === "string" && message.trim().length > 0,
22120
22120
  requestedArtifactCount: artifactIds.length,
22121
22121
  blockTypes: prompt.map((block) => block.type)