@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/agent.js +2 -2
- package/dist/agent.js.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/server/agent-server.js +6 -6
- package/dist/server/agent-server.js.map +1 -1
- package/dist/server/bin.cjs +6 -6
- package/dist/server/bin.cjs.map +1 -1
- package/package.json +1 -1
- package/src/adapters/claude/session/options.ts +1 -1
|
@@ -1183,7 +1183,7 @@ import { v7 as uuidv7 } from "uuid";
|
|
|
1183
1183
|
// package.json
|
|
1184
1184
|
var package_default = {
|
|
1185
1185
|
name: "@posthog/agent",
|
|
1186
|
-
version: "2.1.
|
|
1186
|
+
version: "2.1.13",
|
|
1187
1187
|
repository: "https://github.com/PostHog/twig",
|
|
1188
1188
|
description: "TypeScript agent framework wrapping Claude Agent SDK with Git-based task execution for PostHog",
|
|
1189
1189
|
exports: {
|
|
@@ -3081,7 +3081,7 @@ import * as path2 from "path";
|
|
|
3081
3081
|
var BRANCH_NAMING_INSTRUCTIONS = `
|
|
3082
3082
|
# Branch Naming
|
|
3083
3083
|
|
|
3084
|
-
|
|
3084
|
+
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.
|
|
3085
3085
|
`;
|
|
3086
3086
|
function buildSystemPrompt(customPrompt) {
|
|
3087
3087
|
const defaultPrompt = {
|
|
@@ -9084,9 +9084,9 @@ var GitOperationManagerImpl = class _GitOperationManagerImpl {
|
|
|
9084
9084
|
const scopedGit = createGitClient(repoPath, {
|
|
9085
9085
|
abortSignal: options.signal
|
|
9086
9086
|
});
|
|
9087
|
-
return operation(scopedGit.env({ GIT_OPTIONAL_LOCKS: "0" }));
|
|
9087
|
+
return operation(scopedGit.env({ ...process.env, GIT_OPTIONAL_LOCKS: "0" }));
|
|
9088
9088
|
}
|
|
9089
|
-
const git = state.client.env({ GIT_OPTIONAL_LOCKS: "0" });
|
|
9089
|
+
const git = state.client.env({ ...process.env, GIT_OPTIONAL_LOCKS: "0" });
|
|
9090
9090
|
return operation(git);
|
|
9091
9091
|
}
|
|
9092
9092
|
async executeWrite(repoPath, operation, options) {
|
|
@@ -9103,9 +9103,9 @@ var GitOperationManagerImpl = class _GitOperationManagerImpl {
|
|
|
9103
9103
|
const scopedGit = createGitClient(repoPath, {
|
|
9104
9104
|
abortSignal: options.signal
|
|
9105
9105
|
});
|
|
9106
|
-
return await operation(scopedGit);
|
|
9106
|
+
return await operation(scopedGit.env(process.env));
|
|
9107
9107
|
}
|
|
9108
|
-
return await operation(state.client);
|
|
9108
|
+
return await operation(state.client.env(process.env));
|
|
9109
9109
|
} catch (error) {
|
|
9110
9110
|
if (options?.signal?.aborted) {
|
|
9111
9111
|
await removeLock(repoPath).catch(() => {
|