@posthog/agent 2.3.356 → 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 +4 -3
- package/dist/agent.js.map +1 -1
- package/dist/posthog-api.js +1 -1
- package/dist/posthog-api.js.map +1 -1
- package/dist/server/agent-server.js +4 -3
- package/dist/server/agent-server.js.map +1 -1
- package/dist/server/bin.cjs +4 -3
- package/dist/server/bin.cjs.map +1 -1
- package/package.json +3 -3
- package/src/adapters/claude/hooks.ts +1 -2
- package/src/adapters/claude/session/options.ts +1 -1
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.
|
|
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: {
|
|
@@ -7837,7 +7837,7 @@ var registerHookCallback = (toolUseID, {
|
|
|
7837
7837
|
onPostToolUseHook
|
|
7838
7838
|
};
|
|
7839
7839
|
};
|
|
7840
|
-
var createPostToolUseHook = ({ onModeChange
|
|
7840
|
+
var createPostToolUseHook = ({ onModeChange }) => async (input, toolUseID) => {
|
|
7841
7841
|
if (input.hook_event_name === "PostToolUse") {
|
|
7842
7842
|
const toolName = input.tool_name;
|
|
7843
7843
|
if (onModeChange && toolName === "EnterPlanMode") {
|
|
@@ -10032,7 +10032,7 @@ function buildEnvironment() {
|
|
|
10032
10032
|
};
|
|
10033
10033
|
}
|
|
10034
10034
|
function buildHooks(userHooks, onModeChange, settingsManager, logger, enrichmentDeps, enrichedReadCache, registeredAgents) {
|
|
10035
|
-
const postToolUseHooks = [createPostToolUseHook({ onModeChange
|
|
10035
|
+
const postToolUseHooks = [createPostToolUseHook({ onModeChange })];
|
|
10036
10036
|
if (enrichmentDeps && enrichedReadCache) {
|
|
10037
10037
|
postToolUseHooks.push(
|
|
10038
10038
|
createReadEnrichmentHook(enrichmentDeps, enrichedReadCache)
|
|
@@ -14964,6 +14964,7 @@ function getCleanEnv() {
|
|
|
14964
14964
|
env[key] = value;
|
|
14965
14965
|
}
|
|
14966
14966
|
env.ELECTRON_RUN_AS_NODE = "1";
|
|
14967
|
+
env.GIT_LFS_SKIP_SMUDGE = "1";
|
|
14967
14968
|
return env;
|
|
14968
14969
|
}
|
|
14969
14970
|
var GitOperationManagerImpl = class _GitOperationManagerImpl {
|