@posthog/agent 2.3.696 → 2.3.709

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.
@@ -9471,7 +9471,7 @@ var import_zod4 = require("zod");
9471
9471
  // package.json
9472
9472
  var package_default = {
9473
9473
  name: "@posthog/agent",
9474
- version: "2.3.696",
9474
+ version: "2.3.709",
9475
9475
  repository: "https://github.com/PostHog/code",
9476
9476
  description: "TypeScript agent framework wrapping Claude Agent SDK with Git-based task execution for PostHog",
9477
9477
  exports: {
@@ -18666,6 +18666,24 @@ var ClaudeAcpAgent = class extends BaseAcpAgent {
18666
18666
  }
18667
18667
  if (message.subtype === "session_state_changed" && message.state === "idle") {
18668
18668
  if (!promptReplayed) {
18669
+ if (commandMatch) {
18670
+ const cmd = commandMatch[1];
18671
+ this.logger.warn(
18672
+ "Slash command produced no output; treating as unsupported",
18673
+ { sessionId: params.sessionId, command: cmd }
18674
+ );
18675
+ await this.client.sessionUpdate({
18676
+ sessionId: params.sessionId,
18677
+ update: {
18678
+ sessionUpdate: "agent_message_chunk",
18679
+ content: {
18680
+ type: "text",
18681
+ text: `Unsupported slash command: \`${cmd}\`. PostHog Code does not implement this command.`
18682
+ }
18683
+ }
18684
+ });
18685
+ return { stopReason: "end_turn" };
18686
+ }
18669
18687
  this.logger.debug("Skipping idle state before prompt replay", {
18670
18688
  sessionId: params.sessionId
18671
18689
  });
@@ -24135,6 +24153,7 @@ var AgentServer = class {
24135
24153
  this.configureEnvironment({
24136
24154
  isInternal: preTask?.internal === true,
24137
24155
  originProduct: preTask?.origin_product,
24156
+ signalReportId: preTask?.signal_report,
24138
24157
  taskId: payload.task_id,
24139
24158
  taskRunId: payload.run_id,
24140
24159
  taskUserId: payload.user_id
@@ -24897,6 +24916,7 @@ ${signedCommitInstructions}
24897
24916
  configureEnvironment({
24898
24917
  isInternal = false,
24899
24918
  originProduct,
24919
+ signalReportId,
24900
24920
  taskId,
24901
24921
  taskRunId,
24902
24922
  taskUserId
@@ -24908,6 +24928,7 @@ ${signedCommitInstructions}
24908
24928
  const customHeaders = buildGatewayPropertyHeaders({
24909
24929
  task_origin_product: originProduct,
24910
24930
  task_internal: isInternal,
24931
+ signal_report_id: signalReportId,
24911
24932
  task_id: taskId,
24912
24933
  task_run_id: taskRunId,
24913
24934
  task_user_id: taskUserId