@posthog/agent 2.3.418 → 2.3.443
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.js +14 -9
- package/dist/server/agent-server.js.map +1 -1
- package/dist/server/bin.cjs +14 -9
- package/dist/server/bin.cjs.map +1 -1
- package/package.json +3 -3
- package/src/server/agent-server.test.ts +38 -0
- package/src/server/agent-server.ts +15 -8
- package/src/server/agentsh-runtime.test.ts +4 -4
package/dist/server/bin.cjs
CHANGED
|
@@ -8723,7 +8723,7 @@ var import_zod3 = require("zod");
|
|
|
8723
8723
|
// package.json
|
|
8724
8724
|
var package_default = {
|
|
8725
8725
|
name: "@posthog/agent",
|
|
8726
|
-
version: "2.3.
|
|
8726
|
+
version: "2.3.443",
|
|
8727
8727
|
repository: "https://github.com/PostHog/code",
|
|
8728
8728
|
description: "TypeScript agent framework wrapping Claude Agent SDK with Git-based task execution for PostHog",
|
|
8729
8729
|
exports: {
|
|
@@ -22122,18 +22122,23 @@ ${attributionInstructions}
|
|
|
22122
22122
|
}
|
|
22123
22123
|
broadcastTurnComplete(stopReason) {
|
|
22124
22124
|
if (!this.session) return;
|
|
22125
|
+
const notification = {
|
|
22126
|
+
jsonrpc: "2.0",
|
|
22127
|
+
method: POSTHOG_NOTIFICATIONS.TURN_COMPLETE,
|
|
22128
|
+
params: {
|
|
22129
|
+
sessionId: this.session.acpSessionId,
|
|
22130
|
+
stopReason
|
|
22131
|
+
}
|
|
22132
|
+
};
|
|
22125
22133
|
this.broadcastEvent({
|
|
22126
22134
|
type: "notification",
|
|
22127
22135
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
22128
|
-
notification
|
|
22129
|
-
jsonrpc: "2.0",
|
|
22130
|
-
method: POSTHOG_NOTIFICATIONS.TURN_COMPLETE,
|
|
22131
|
-
params: {
|
|
22132
|
-
sessionId: this.session.acpSessionId,
|
|
22133
|
-
stopReason
|
|
22134
|
-
}
|
|
22135
|
-
}
|
|
22136
|
+
notification
|
|
22136
22137
|
});
|
|
22138
|
+
this.session.logWriter.appendRawLine(
|
|
22139
|
+
this.session.payload.run_id,
|
|
22140
|
+
JSON.stringify(notification)
|
|
22141
|
+
);
|
|
22137
22142
|
}
|
|
22138
22143
|
broadcastEvent(event) {
|
|
22139
22144
|
if (this.session?.sseController) {
|