@posthog/agent 2.1.156 → 2.1.157
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 +1 -1
- 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.d.ts +1 -0
- package/dist/server/agent-server.js +2 -2
- package/dist/server/agent-server.js.map +1 -1
- package/dist/server/bin.cjs +5 -4
- package/dist/server/bin.cjs.map +1 -1
- package/package.json +1 -1
- package/src/server/agent-server.test.ts +28 -0
- package/src/server/agent-server.ts +1 -1
- package/src/server/bin.ts +2 -0
- package/src/server/types.ts +1 -0
package/dist/server/bin.cjs
CHANGED
|
@@ -904,7 +904,7 @@ var import_hono = require("hono");
|
|
|
904
904
|
// package.json
|
|
905
905
|
var package_default = {
|
|
906
906
|
name: "@posthog/agent",
|
|
907
|
-
version: "2.1.
|
|
907
|
+
version: "2.1.157",
|
|
908
908
|
repository: "https://github.com/PostHog/twig",
|
|
909
909
|
description: "TypeScript agent framework wrapping Claude Agent SDK with Git-based task execution for PostHog",
|
|
910
910
|
exports: {
|
|
@@ -11552,7 +11552,7 @@ After completing the requested changes:
|
|
|
11552
11552
|
1. Create a new branch with a descriptive name based on the work done
|
|
11553
11553
|
2. Stage and commit all changes with a clear commit message
|
|
11554
11554
|
3. Push the branch to origin
|
|
11555
|
-
4. Create a draft pull request using \`gh pr create --draft\` with a descriptive title and body
|
|
11555
|
+
4. Create a draft pull request using \`gh pr create --draft${this.config.baseBranch ? ` --base ${this.config.baseBranch}` : ""}\` with a descriptive title and body
|
|
11556
11556
|
|
|
11557
11557
|
Important:
|
|
11558
11558
|
- Always create the PR as a draft. Do not ask for confirmation.
|
|
@@ -11898,7 +11898,7 @@ program.name("agent-server").description("PostHog cloud agent server - runs in s
|
|
|
11898
11898
|
).requiredOption("--repositoryPath <path>", "Path to the repository").requiredOption("--taskId <id>", "Task ID").requiredOption("--runId <id>", "Task run ID").option(
|
|
11899
11899
|
"--mcpServers <json>",
|
|
11900
11900
|
"MCP servers config as JSON array (ACP McpServer[] format)"
|
|
11901
|
-
).action(async (options) => {
|
|
11901
|
+
).option("--baseBranch <branch>", "Base branch for PR creation").action(async (options) => {
|
|
11902
11902
|
const envResult = envSchema.safeParse(process.env);
|
|
11903
11903
|
if (!envResult.success) {
|
|
11904
11904
|
const errors = envResult.error.issues.map((issue) => ` - ${issue.message}`).join("\n");
|
|
@@ -11938,7 +11938,8 @@ ${errors}`
|
|
|
11938
11938
|
mode,
|
|
11939
11939
|
taskId: options.taskId,
|
|
11940
11940
|
runId: options.runId,
|
|
11941
|
-
mcpServers
|
|
11941
|
+
mcpServers,
|
|
11942
|
+
baseBranch: options.baseBranch
|
|
11942
11943
|
});
|
|
11943
11944
|
process.on("SIGINT", async () => {
|
|
11944
11945
|
await server.stop();
|