@posthog/agent 2.3.658 → 2.3.663
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 +7 -2
- 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.js +5 -1
- package/dist/server/agent-server.js.map +1 -1
- package/dist/server/bin.cjs +5 -1
- package/dist/server/bin.cjs.map +1 -1
- package/dist/types.d.ts +2 -0
- package/dist/types.js.map +1 -1
- package/package.json +3 -3
- package/src/adapters/codex/spawn.ts +9 -0
- package/src/agent.ts +1 -0
- package/src/types.ts +2 -0
package/dist/server/bin.cjs
CHANGED
|
@@ -9471,7 +9471,7 @@ var import_zod4 = require("zod");
|
|
|
9471
9471
|
// package.json
|
|
9472
9472
|
var package_default = {
|
|
9473
9473
|
name: "@posthog/agent",
|
|
9474
|
-
version: "2.3.
|
|
9474
|
+
version: "2.3.663",
|
|
9475
9475
|
repository: "https://github.com/PostHog/code",
|
|
9476
9476
|
description: "TypeScript agent framework wrapping Claude Agent SDK with Git-based task execution for PostHog",
|
|
9477
9477
|
exports: {
|
|
@@ -19503,6 +19503,10 @@ function buildConfigArgs(options) {
|
|
|
19503
19503
|
if (options.reasoningEffort) {
|
|
19504
19504
|
args2.push("-c", `model_reasoning_effort="${options.reasoningEffort}"`);
|
|
19505
19505
|
}
|
|
19506
|
+
if (options.additionalDirectories?.length) {
|
|
19507
|
+
const escaped = options.additionalDirectories.map((p) => `"${p.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}"`).join(",");
|
|
19508
|
+
args2.push("-c", `sandbox_workspace_write.writable_roots=[${escaped}]`);
|
|
19509
|
+
}
|
|
19506
19510
|
if (options.instructions) {
|
|
19507
19511
|
const escaped = options.instructions.replace(/\\/g, "\\\\").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/"/g, '\\"');
|
|
19508
19512
|
args2.push("-c", `instructions="${escaped}"`);
|