@posthog/agent 1.30.0 → 2.0.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@posthog/agent",
3
- "version": "1.30.0",
3
+ "version": "2.0.0",
4
4
  "repository": "https://github.com/PostHog/array",
5
5
  "description": "TypeScript agent framework wrapping Claude Agent SDK with Git-based task execution for PostHog",
6
6
  "main": "./dist/index.js",
@@ -13,16 +13,8 @@
13
13
  * Used with AgentSideConnection.extNotification() or Client.extNotification()
14
14
  */
15
15
  export const POSTHOG_NOTIFICATIONS = {
16
- /** Artifact produced during task execution (research, plan, etc.) */
17
- ARTIFACT: "_posthog/artifact",
18
- /** Phase has started (research, plan, build, etc.) */
19
- PHASE_START: "_posthog/phase_start",
20
- /** Phase has completed */
21
- PHASE_COMPLETE: "_posthog/phase_complete",
22
16
  /** Git branch was created */
23
17
  BRANCH_CREATED: "_posthog/branch_created",
24
- /** Pull request was created */
25
- PR_CREATED: "_posthog/pr_created",
26
18
  /** Task run has started */
27
19
  RUN_STARTED: "_posthog/run_started",
28
20
  /** Task has completed */
@@ -33,43 +25,15 @@ export const POSTHOG_NOTIFICATIONS = {
33
25
  CONSOLE: "_posthog/console",
34
26
  /** SDK session ID notification (for resumption) */
35
27
  SDK_SESSION: "_posthog/sdk_session",
36
- /** Sandbox execution output (stdout/stderr from Modal or Docker) */
37
- SANDBOX_OUTPUT: "_posthog/sandbox_output",
38
28
  } as const;
39
29
 
40
30
  export type PostHogNotificationType =
41
31
  (typeof POSTHOG_NOTIFICATIONS)[keyof typeof POSTHOG_NOTIFICATIONS];
42
32
 
43
- export interface ArtifactNotificationPayload {
44
- sessionId: string;
45
- kind:
46
- | "research_evaluation"
47
- | "research_questions"
48
- | "plan"
49
- | "pr_body"
50
- | string;
51
- content: unknown;
52
- }
53
-
54
- export interface PhaseNotificationPayload {
55
- sessionId: string;
56
- phase: "research" | "plan" | "build" | "finalize" | string;
57
- [key: string]: unknown;
58
- }
59
-
60
33
  export interface BranchCreatedPayload {
61
- sessionId: string;
62
34
  branch: string;
63
35
  }
64
36
 
65
- /**
66
- * Payload for PR created notification
67
- */
68
- export interface PrCreatedPayload {
69
- sessionId: string;
70
- prUrl: string;
71
- }
72
-
73
37
  export interface RunStartedPayload {
74
38
  sessionId: string;
75
39
  runId: string;
@@ -107,24 +71,10 @@ export interface SdkSessionPayload {
107
71
  sdkSessionId: string;
108
72
  }
109
73
 
110
- /**
111
- * Sandbox execution output
112
- */
113
- export interface SandboxOutputPayload {
114
- sessionId: string;
115
- stdout: string;
116
- stderr: string;
117
- exitCode: number;
118
- }
119
-
120
74
  export type PostHogNotificationPayload =
121
- | ArtifactNotificationPayload
122
- | PhaseNotificationPayload
123
75
  | BranchCreatedPayload
124
- | PrCreatedPayload
125
76
  | RunStartedPayload
126
77
  | TaskCompletePayload
127
78
  | ErrorNotificationPayload
128
79
  | ConsoleNotificationPayload
129
- | SdkSessionPayload
130
- | SandboxOutputPayload;
80
+ | SdkSessionPayload;