-
Notifications
You must be signed in to change notification settings - Fork 23
feat(tasks): wire agent server event ingest #2111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: feat/tasks-event-stream-sender
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,6 +32,7 @@ const envSchema = z.object({ | |
| POSTHOG_CODE_REASONING_EFFORT: z | ||
| .enum(["low", "medium", "high", "xhigh", "max"]) | ||
| .optional(), | ||
| POSTHOG_TASK_RUN_EVENT_INGEST_TOKEN: z.string().min(1).optional(), | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why don't we use the existing oauth token here, is there a reason to split this out into it's own auth?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Mainly to have cleaner mindset against the token and what it does/needs to do. |
||
| }); | ||
|
|
||
| const program = new Command(); | ||
|
|
@@ -148,6 +149,7 @@ program | |
| const server = new AgentServer({ | ||
| port: parseInt(options.port, 10), | ||
| jwtPublicKey: env.JWT_PUBLIC_KEY, | ||
| eventIngestToken: env.POSTHOG_TASK_RUN_EVENT_INGEST_TOKEN, | ||
| repositoryPath: options.repositoryPath, | ||
| apiUrl: env.POSTHOG_API_URL, | ||
| apiKey: env.POSTHOG_PERSONAL_API_KEY, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.