@posthog/agent 2.3.354 → 2.3.363

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/agent.js CHANGED
@@ -4030,7 +4030,7 @@ import { v7 as uuidv7 } from "uuid";
4030
4030
  // package.json
4031
4031
  var package_default = {
4032
4032
  name: "@posthog/agent",
4033
- version: "2.3.354",
4033
+ version: "2.3.363",
4034
4034
  repository: "https://github.com/PostHog/code",
4035
4035
  description: "TypeScript agent framework wrapping Claude Agent SDK with Git-based task execution for PostHog",
4036
4036
  exports: {
@@ -4191,6 +4191,8 @@ var POSTHOG_NOTIFICATIONS = {
4191
4191
  CLOSE: "_posthog/close",
4192
4192
  /** Agent status update (thinking, working, etc.) */
4193
4193
  STATUS: "_posthog/status",
4194
+ /** Structured backend progress notification; events in the same turn group into one card on the client */
4195
+ PROGRESS: "_posthog/progress",
4194
4196
  /** Task-level notification (progress, milestones) */
4195
4197
  TASK_NOTIFICATION: "_posthog/task_notification",
4196
4198
  /** Marks a boundary for log compaction */
@@ -7835,7 +7837,7 @@ var registerHookCallback = (toolUseID, {
7835
7837
  onPostToolUseHook
7836
7838
  };
7837
7839
  };
7838
- var createPostToolUseHook = ({ onModeChange, logger }) => async (input, toolUseID) => {
7840
+ var createPostToolUseHook = ({ onModeChange }) => async (input, toolUseID) => {
7839
7841
  if (input.hook_event_name === "PostToolUse") {
7840
7842
  const toolName = input.tool_name;
7841
7843
  if (onModeChange && toolName === "EnterPlanMode") {
@@ -10030,7 +10032,7 @@ function buildEnvironment() {
10030
10032
  };
10031
10033
  }
10032
10034
  function buildHooks(userHooks, onModeChange, settingsManager, logger, enrichmentDeps, enrichedReadCache, registeredAgents) {
10033
- const postToolUseHooks = [createPostToolUseHook({ onModeChange, logger })];
10035
+ const postToolUseHooks = [createPostToolUseHook({ onModeChange })];
10034
10036
  if (enrichmentDeps && enrichedReadCache) {
10035
10037
  postToolUseHooks.push(
10036
10038
  createReadEnrichmentHook(enrichmentDeps, enrichedReadCache)
@@ -14962,6 +14964,7 @@ function getCleanEnv() {
14962
14964
  env[key] = value;
14963
14965
  }
14964
14966
  env.ELECTRON_RUN_AS_NODE = "1";
14967
+ env.GIT_LFS_SKIP_SMUDGE = "1";
14965
14968
  return env;
14966
14969
  }
14967
14970
  var GitOperationManagerImpl = class _GitOperationManagerImpl {