@posthog/agent 2.3.80 → 2.3.84
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 +12 -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 +12 -2
- package/dist/server/agent-server.js.map +1 -1
- package/dist/server/bin.cjs +12 -2
- package/dist/server/bin.cjs.map +1 -1
- package/package.json +1 -1
- package/src/adapters/claude/claude-agent.ts +6 -1
package/package.json
CHANGED
|
@@ -66,6 +66,7 @@ import {
|
|
|
66
66
|
DEFAULT_MODEL,
|
|
67
67
|
getEffortOptions,
|
|
68
68
|
resolveModelPreference,
|
|
69
|
+
supports1MContext,
|
|
69
70
|
toSdkModelId,
|
|
70
71
|
} from "./session/models";
|
|
71
72
|
import {
|
|
@@ -87,7 +88,7 @@ import type {
|
|
|
87
88
|
ToolUseCache,
|
|
88
89
|
} from "./types";
|
|
89
90
|
|
|
90
|
-
const SESSION_VALIDATION_TIMEOUT_MS =
|
|
91
|
+
const SESSION_VALIDATION_TIMEOUT_MS = 30_000;
|
|
91
92
|
const MAX_TITLE_LENGTH = 256;
|
|
92
93
|
const LOCAL_ONLY_COMMANDS = new Set(["/context", "/heapdump", "/extra-usage"]);
|
|
93
94
|
|
|
@@ -932,6 +933,10 @@ export class ClaudeAcpAgent extends BaseAcpAgent {
|
|
|
932
933
|
await this.session.query.setModel(resolvedSdkModel);
|
|
933
934
|
}
|
|
934
935
|
|
|
936
|
+
if (supports1MContext(resolvedModelId)) {
|
|
937
|
+
options.betas = ["context-1m-2025-08-07"];
|
|
938
|
+
}
|
|
939
|
+
|
|
935
940
|
const availableModes = getAvailableModes();
|
|
936
941
|
const modes: SessionModeState = {
|
|
937
942
|
currentModeId: permissionMode,
|