@posthog/agent 2.3.386 → 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 +13 -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/posthog-api.d.ts +1 -0
- package/dist/posthog-api.js +11 -2
- package/dist/posthog-api.js.map +1 -1
- package/dist/resume.d.ts +3 -1
- package/dist/resume.js +41 -4
- package/dist/resume.js.map +1 -1
- package/dist/server/agent-server.d.ts +5 -15
- package/dist/server/agent-server.js +1330 -394
- package/dist/server/agent-server.js.map +1 -1
- package/dist/server/bin.cjs +1332 -396
- 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 +1 -0
- package/dist/tree-tracker.js +18 -4
- package/dist/tree-tracker.js.map +1 -1
- package/dist/types.d.ts +18 -1
- package/dist/types.js +5 -0
- package/dist/types.js.map +1 -1
- package/package.json +9 -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 +7 -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 +74 -1
- 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 | {
|
|
@@ -115,6 +103,8 @@ declare class AgentServer {
|
|
|
115
103
|
private detectAndAttachPrUrl;
|
|
116
104
|
private cleanupSession;
|
|
117
105
|
private captureTreeState;
|
|
106
|
+
private captureHandoffCheckpoint;
|
|
107
|
+
private extractHandoffLocalGitState;
|
|
118
108
|
private broadcastTurnComplete;
|
|
119
109
|
private broadcastEvent;
|
|
120
110
|
private replayPendingEvents;
|