@posthog/agent 1.29.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.29.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 */
@@ -38,36 +30,10 @@ export const POSTHOG_NOTIFICATIONS = {
38
30
  export type PostHogNotificationType =
39
31
  (typeof POSTHOG_NOTIFICATIONS)[keyof typeof POSTHOG_NOTIFICATIONS];
40
32
 
41
- export interface ArtifactNotificationPayload {
42
- sessionId: string;
43
- kind:
44
- | "research_evaluation"
45
- | "research_questions"
46
- | "plan"
47
- | "pr_body"
48
- | string;
49
- content: unknown;
50
- }
51
-
52
- export interface PhaseNotificationPayload {
53
- sessionId: string;
54
- phase: "research" | "plan" | "build" | "finalize" | string;
55
- [key: string]: unknown;
56
- }
57
-
58
33
  export interface BranchCreatedPayload {
59
- sessionId: string;
60
34
  branch: string;
61
35
  }
62
36
 
63
- /**
64
- * Payload for PR created notification
65
- */
66
- export interface PrCreatedPayload {
67
- sessionId: string;
68
- prUrl: string;
69
- }
70
-
71
37
  export interface RunStartedPayload {
72
38
  sessionId: string;
73
39
  runId: string;
@@ -106,10 +72,7 @@ export interface SdkSessionPayload {
106
72
  }
107
73
 
108
74
  export type PostHogNotificationPayload =
109
- | ArtifactNotificationPayload
110
- | PhaseNotificationPayload
111
75
  | BranchCreatedPayload
112
- | PrCreatedPayload
113
76
  | RunStartedPayload
114
77
  | TaskCompletePayload
115
78
  | ErrorNotificationPayload