@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.
package/dist/index.js CHANGED
@@ -1174,7 +1174,7 @@ import { v7 as uuidv7 } from "uuid";
1174
1174
  // package.json
1175
1175
  var package_default = {
1176
1176
  name: "@posthog/agent",
1177
- version: "2.1.8",
1177
+ version: "2.1.13",
1178
1178
  repository: "https://github.com/PostHog/twig",
1179
1179
  description: "TypeScript agent framework wrapping Claude Agent SDK with Git-based task execution for PostHog",
1180
1180
  exports: {
@@ -3107,7 +3107,7 @@ import * as path2 from "path";
3107
3107
  var BRANCH_NAMING_INSTRUCTIONS = `
3108
3108
  # Branch Naming
3109
3109
 
3110
- Before pushing a "workspace-*" branch to origin, rename it to something descriptive based on the work done. Do this automatically without asking the user.
3110
+ 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.
3111
3111
  `;
3112
3112
  function buildSystemPrompt(customPrompt) {
3113
3113
  const defaultPrompt = {
@@ -9412,9 +9412,9 @@ var GitOperationManagerImpl = class _GitOperationManagerImpl {
9412
9412
  const scopedGit = createGitClient(repoPath, {
9413
9413
  abortSignal: options.signal
9414
9414
  });
9415
- return operation(scopedGit.env({ GIT_OPTIONAL_LOCKS: "0" }));
9415
+ return operation(scopedGit.env({ ...process.env, GIT_OPTIONAL_LOCKS: "0" }));
9416
9416
  }
9417
- const git = state.client.env({ GIT_OPTIONAL_LOCKS: "0" });
9417
+ const git = state.client.env({ ...process.env, GIT_OPTIONAL_LOCKS: "0" });
9418
9418
  return operation(git);
9419
9419
  }
9420
9420
  async executeWrite(repoPath, operation, options) {
@@ -9431,9 +9431,9 @@ var GitOperationManagerImpl = class _GitOperationManagerImpl {
9431
9431
  const scopedGit = createGitClient(repoPath, {
9432
9432
  abortSignal: options.signal
9433
9433
  });
9434
- return await operation(scopedGit);
9434
+ return await operation(scopedGit.env(process.env));
9435
9435
  }
9436
- return await operation(state.client);
9436
+ return await operation(state.client.env(process.env));
9437
9437
  } catch (error) {
9438
9438
  if (options?.signal?.aborted) {
9439
9439
  await removeLock(repoPath).catch(() => {