File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ export const POSTHOG_NOTIFICATIONS = {
3333 CONSOLE : "_posthog/console" ,
3434 /** SDK session ID notification (for resumption) */
3535 SDK_SESSION : "_posthog/sdk_session" ,
36+ /** Sandbox execution output (stdout/stderr from Modal or Docker) */
37+ SANDBOX_OUTPUT : "_posthog/sandbox_output" ,
3638} as const ;
3739
3840export type PostHogNotificationType =
@@ -105,6 +107,16 @@ export interface SdkSessionPayload {
105107 sdkSessionId : string ;
106108}
107109
110+ /**
111+ * Sandbox execution output
112+ */
113+ export interface SandboxOutputPayload {
114+ sessionId : string ;
115+ stdout : string ;
116+ stderr : string ;
117+ exitCode : number ;
118+ }
119+
108120export type PostHogNotificationPayload =
109121 | ArtifactNotificationPayload
110122 | PhaseNotificationPayload
@@ -114,4 +126,5 @@ export type PostHogNotificationPayload =
114126 | TaskCompletePayload
115127 | ErrorNotificationPayload
116128 | ConsoleNotificationPayload
117- | SdkSessionPayload ;
129+ | SdkSessionPayload
130+ | SandboxOutputPayload ;
You can’t perform that action at this time.
0 commit comments