@posthog/agent 2.1.137 → 2.1.147

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.
@@ -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.137",
907
+ version: "2.1.147",
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: {
@@ -944,6 +944,10 @@ var package_default = {
944
944
  types: "./dist/adapters/claude/conversion/tool-use-to-acp.d.ts",
945
945
  import: "./dist/adapters/claude/conversion/tool-use-to-acp.js"
946
946
  },
947
+ "./adapters/claude/session/jsonl-hydration": {
948
+ types: "./dist/adapters/claude/session/jsonl-hydration.d.ts",
949
+ import: "./dist/adapters/claude/session/jsonl-hydration.js"
950
+ },
947
951
  "./server": {
948
952
  types: "./dist/server/agent-server.d.ts",
949
953
  import: "./dist/server/agent-server.js"
@@ -1731,8 +1735,9 @@ function toolInfoFromToolUse(toolUse, options) {
1731
1735
  const input = toolUse.input;
1732
1736
  switch (name) {
1733
1737
  case "Task":
1738
+ case "Agent":
1734
1739
  return {
1735
- title: input?.description ? String(input.description) : "Task",
1740
+ title: input?.description ? String(input.description) : name,
1736
1741
  kind: "think",
1737
1742
  content: input?.prompt ? toolContent().text(String(input.prompt)).build() : []
1738
1743
  };
@@ -4519,7 +4524,7 @@ function spawnCodexProcess(options) {
4519
4524
  detached: process.platform !== "win32"
4520
4525
  });
4521
4526
  child.stderr?.on("data", (data) => {
4522
- logger.error("codex-acp stderr:", data.toString());
4527
+ logger.debug("codex-acp stderr:", data.toString());
4523
4528
  });
4524
4529
  child.on("error", (err) => {
4525
4530
  logger.error("codex-acp process error:", err);
@@ -11417,10 +11422,10 @@ After completing the requested changes:
11417
11422
  1. Create a new branch with a descriptive name based on the work done
11418
11423
  2. Stage and commit all changes with a clear commit message
11419
11424
  3. Push the branch to origin
11420
- 4. Create a pull request using \`gh pr create\` with a descriptive title and body
11425
+ 4. Create a draft pull request using \`gh pr create --draft\` with a descriptive title and body
11421
11426
 
11422
11427
  Important:
11423
- - Always create the PR. Do not ask for confirmation.
11428
+ - Always create the PR as a draft. Do not ask for confirmation.
11424
11429
  - Do NOT add "Co-Authored-By" trailers to commit messages.
11425
11430
  - Do NOT add "Generated with [Claude Code]" or similar attribution lines to PR descriptions.
11426
11431
  `;