@posthog/agent 2.3.43 → 2.3.46

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 CHANGED
@@ -281,7 +281,7 @@ import { v7 as uuidv7 } from "uuid";
281
281
  // package.json
282
282
  var package_default = {
283
283
  name: "@posthog/agent",
284
- version: "2.3.43",
284
+ version: "2.3.46",
285
285
  repository: "https://github.com/PostHog/code",
286
286
  description: "TypeScript agent framework wrapping Claude Agent SDK with Git-based task execution for PostHog",
287
287
  exports: {
@@ -3295,6 +3295,10 @@ var ClaudeAcpAgent = class extends BaseAcpAgent {
3295
3295
  (m) => m.contextWindow
3296
3296
  );
3297
3297
  const contextWindowSize = contextWindows.length > 0 ? Math.min(...contextWindows) : getDefaultContextWindow(this.session.modelId ?? "");
3298
+ this.session.contextSize = contextWindowSize;
3299
+ if (lastAssistantTotalUsage !== null) {
3300
+ this.session.contextUsed = lastAssistantTotalUsage;
3301
+ }
3298
3302
  if (lastAssistantTotalUsage !== null) {
3299
3303
  await this.client.sessionUpdate({
3300
3304
  sessionId: params.sessionId,