@posthog/agent 2.3.125 → 2.3.126
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 +4 -6
- 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 +4 -6
- package/dist/server/agent-server.js.map +1 -1
- package/dist/server/bin.cjs +4 -6
- package/dist/server/bin.cjs.map +1 -1
- package/package.json +1 -1
- package/src/adapters/claude/permissions/permission-handlers.ts +7 -5
package/dist/agent.js
CHANGED
|
@@ -371,7 +371,7 @@ import { v7 as uuidv7 } from "uuid";
|
|
|
371
371
|
// package.json
|
|
372
372
|
var package_default = {
|
|
373
373
|
name: "@posthog/agent",
|
|
374
|
-
version: "2.3.
|
|
374
|
+
version: "2.3.126",
|
|
375
375
|
repository: "https://github.com/PostHog/code",
|
|
376
376
|
description: "TypeScript agent framework wrapping Claude Agent SDK with Git-based task execution for PostHog",
|
|
377
377
|
exports: {
|
|
@@ -2488,12 +2488,10 @@ async function handleDefaultPermissionFlow(context) {
|
|
|
2488
2488
|
updatedInput: toolInput
|
|
2489
2489
|
};
|
|
2490
2490
|
} else {
|
|
2491
|
-
const
|
|
2491
|
+
const feedback = response._meta?.customInput?.trim();
|
|
2492
|
+
const message = feedback ? `User refused permission to run tool with feedback: ${feedback}` : "User refused permission to run tool";
|
|
2492
2493
|
await emitToolDenial(context, message);
|
|
2493
|
-
return {
|
|
2494
|
-
behavior: "deny",
|
|
2495
|
-
message
|
|
2496
|
-
};
|
|
2494
|
+
return { behavior: "deny", message, interrupt: !feedback };
|
|
2497
2495
|
}
|
|
2498
2496
|
}
|
|
2499
2497
|
function handlePlanFileException(context) {
|