@posthog/agent 2.1.8 → 2.1.13

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.
@@ -1175,7 +1175,7 @@ var import_uuid = require("uuid");
1175
1175
  // package.json
1176
1176
  var package_default = {
1177
1177
  name: "@posthog/agent",
1178
- version: "2.1.8",
1178
+ version: "2.1.13",
1179
1179
  repository: "https://github.com/PostHog/twig",
1180
1180
  description: "TypeScript agent framework wrapping Claude Agent SDK with Git-based task execution for PostHog",
1181
1181
  exports: {
@@ -3073,7 +3073,7 @@ var path2 = __toESM(require("path"), 1);
3073
3073
  var BRANCH_NAMING_INSTRUCTIONS = `
3074
3074
  # Branch Naming
3075
3075
 
3076
- Before pushing a "workspace-*" branch to origin, rename it to something descriptive based on the work done. Do this automatically without asking the user.
3076
+ When working in a detached HEAD state, create a descriptive branch name based on the work being done before committing. Do this automatically without asking the user.
3077
3077
  `;
3078
3078
  function buildSystemPrompt(customPrompt) {
3079
3079
  const defaultPrompt = {
@@ -9076,9 +9076,9 @@ var GitOperationManagerImpl = class _GitOperationManagerImpl {
9076
9076
  const scopedGit = createGitClient(repoPath, {
9077
9077
  abortSignal: options.signal
9078
9078
  });
9079
- return operation(scopedGit.env({ GIT_OPTIONAL_LOCKS: "0" }));
9079
+ return operation(scopedGit.env({ ...process.env, GIT_OPTIONAL_LOCKS: "0" }));
9080
9080
  }
9081
- const git = state.client.env({ GIT_OPTIONAL_LOCKS: "0" });
9081
+ const git = state.client.env({ ...process.env, GIT_OPTIONAL_LOCKS: "0" });
9082
9082
  return operation(git);
9083
9083
  }
9084
9084
  async executeWrite(repoPath, operation, options) {
@@ -9095,9 +9095,9 @@ var GitOperationManagerImpl = class _GitOperationManagerImpl {
9095
9095
  const scopedGit = createGitClient(repoPath, {
9096
9096
  abortSignal: options.signal
9097
9097
  });
9098
- return await operation(scopedGit);
9098
+ return await operation(scopedGit.env(process.env));
9099
9099
  }
9100
- return await operation(state.client);
9100
+ return await operation(state.client.env(process.env));
9101
9101
  } catch (error) {
9102
9102
  if (options?.signal?.aborted) {
9103
9103
  await removeLock(repoPath).catch(() => {