@posthog/agent 2.3.385 → 2.3.387
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/adapters/claude/session/jsonl-hydration.d.ts +1 -0
- package/dist/agent.d.ts +1 -0
- package/dist/agent.js +21 -2
- package/dist/agent.js.map +1 -1
- package/dist/handoff-checkpoint.d.ts +39 -0
- package/dist/handoff-checkpoint.js +6679 -0
- package/dist/handoff-checkpoint.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/logger-RC7sPv0S.d.ts +24 -0
- package/dist/posthog-api.d.ts +1 -0
- package/dist/posthog-api.js +19 -2
- package/dist/posthog-api.js.map +1 -1
- package/dist/resume.d.ts +71 -0
- package/dist/resume.js +6838 -0
- package/dist/resume.js.map +1 -0
- package/dist/server/agent-server.d.ts +5 -18
- package/dist/server/agent-server.js +1373 -432
- package/dist/server/agent-server.js.map +1 -1
- package/dist/server/bin.cjs +1370 -429
- package/dist/server/bin.cjs.map +1 -1
- package/dist/server/schemas.d.ts +191 -0
- package/dist/server/schemas.js +108 -0
- package/dist/server/schemas.js.map +1 -0
- package/dist/tree-tracker.d.ts +68 -0
- package/dist/tree-tracker.js +6431 -0
- package/dist/tree-tracker.js.map +1 -0
- package/dist/types.d.ts +18 -1
- package/dist/types.js +5 -0
- package/dist/types.js.map +1 -1
- package/package.json +17 -1
- package/src/acp-extensions.ts +3 -0
- package/src/handoff-checkpoint.test.ts +183 -0
- package/src/handoff-checkpoint.ts +361 -0
- package/src/posthog-api.test.ts +29 -0
- package/src/posthog-api.ts +5 -1
- package/src/resume.ts +58 -1
- package/src/sagas/apply-snapshot-saga.ts +7 -0
- package/src/sagas/capture-tree-saga.ts +10 -3
- package/src/sagas/resume-saga.ts +32 -0
- package/src/sagas/test-fixtures.ts +46 -0
- package/src/server/agent-server.ts +76 -57
- package/src/server/schemas.ts +21 -2
- package/src/types.ts +24 -0
|
@@ -1,19 +1,7 @@
|
|
|
1
1
|
import { AgentMode } from '../types.js';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
type: z.ZodEnum<{
|
|
6
|
-
http: "http";
|
|
7
|
-
sse: "sse";
|
|
8
|
-
}>;
|
|
9
|
-
name: z.ZodString;
|
|
10
|
-
url: z.ZodURL;
|
|
11
|
-
headers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
12
|
-
name: z.ZodString;
|
|
13
|
-
value: z.ZodString;
|
|
14
|
-
}, z.core.$strip>>>;
|
|
15
|
-
}, z.core.$strip>;
|
|
16
|
-
type RemoteMcpServer = z.infer<typeof remoteMcpServerSchema>;
|
|
2
|
+
import { RemoteMcpServer } from './schemas.js';
|
|
3
|
+
import '@posthog/git/handoff';
|
|
4
|
+
import 'zod/v4';
|
|
17
5
|
|
|
18
6
|
interface ClaudeCodeConfig {
|
|
19
7
|
systemPrompt?: string | {
|
|
@@ -80,9 +68,6 @@ declare class AgentServer {
|
|
|
80
68
|
private classifyAndSignalFailure;
|
|
81
69
|
private sendInitialTaskMessage;
|
|
82
70
|
private sendResumeMessage;
|
|
83
|
-
private static RESUME_HISTORY_TOKEN_BUDGET;
|
|
84
|
-
private static TOOL_RESULT_MAX_CHARS;
|
|
85
|
-
private formatConversationForResume;
|
|
86
71
|
private getInitialPromptOverride;
|
|
87
72
|
private getPendingUserPrompt;
|
|
88
73
|
private getClearedPendingUserState;
|
|
@@ -118,6 +103,8 @@ declare class AgentServer {
|
|
|
118
103
|
private detectAndAttachPrUrl;
|
|
119
104
|
private cleanupSession;
|
|
120
105
|
private captureTreeState;
|
|
106
|
+
private captureHandoffCheckpoint;
|
|
107
|
+
private extractHandoffLocalGitState;
|
|
121
108
|
private broadcastTurnComplete;
|
|
122
109
|
private broadcastEvent;
|
|
123
110
|
private replayPendingEvents;
|