UNPKG

@posthog/agent

Version:

TypeScript agent framework wrapping Claude Agent SDK with Git-based task execution for PostHog

39 lines (37 loc) 1.36 kB
/** * PostHog-specific ACP extensions. * * These follow the ACP extensibility model: * - Custom notification methods are prefixed with `_posthog/` * - Custom data can be attached via `_meta` fields * * See: https://agentclientprotocol.com/docs/extensibility */ /** * Custom notification methods for PostHog-specific events. * Used with AgentSideConnection.extNotification() or Client.extNotification() */ const POSTHOG_NOTIFICATIONS = { /** Artifact produced during task execution (research, plan, etc.) */ ARTIFACT: "_posthog/artifact", /** Phase has started (research, plan, build, etc.) */ PHASE_START: "_posthog/phase_start", /** Phase has completed */ PHASE_COMPLETE: "_posthog/phase_complete", /** Git branch was created */ BRANCH_CREATED: "_posthog/branch_created", /** Pull request was created */ PR_CREATED: "_posthog/pr_created", /** Task run has started */ RUN_STARTED: "_posthog/run_started", /** Task has completed */ TASK_COMPLETE: "_posthog/task_complete", /** Error occurred during task execution */ ERROR: "_posthog/error", /** Console/log output */ CONSOLE: "_posthog/console", /** SDK session ID notification (for resumption) */ SDK_SESSION: "_posthog/sdk_session", }; export { POSTHOG_NOTIFICATIONS }; //# sourceMappingURL=acp-extensions.js.map