Repository navigation
Conversation
🧙 Wizard CIRun the Wizard CI and test your changes against wizard-workbench example apps by replying with a GitHub comment using one of the following commands: Test all apps:
Test all apps in a directory:
Test an individual app:
Show more apps
Results will be posted here when complete. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: af80cec8c4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Ports the HTTP log add-on to the integration-v2 task model: a serverHttpHook trait from Cloudflare packages, Wrangler configs or root middleware (read without a package.json), and an optional http-logs task that loads the http-logs skill from context-mill and is skipped on projects without a hook. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
af80cec to
eae685e
Compare
sarahxsanders
left a comment
There was a problem hiding this comment.
from Sarah's robot
|
|
||
| ## Goal | ||
|
|
||
| Send each server request to PostHog as an `$http_log` event, so bots, crawlers |
There was a problem hiding this comment.
once the skill ships, a general Wizard setup can add server request logging just because it found a hook, without the user choosing it.
ask before editing the hook, or keep HTTP log capture in an explicit opt-in flow.
… the default The HTTP logs prompt no longer sets model_pi, effort_pi, model_sdk or effort_sdk. The wizard is moving every task to one default model and effort that the wizard-model-overrides flag can change (#1643, #1644). A prompt that pins its own model skips both. Until #1644 lands, this task runs the integration program's binding. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Problem
Bots, crawlers, and AI agents rarely run JavaScript, so a wizard-installed JS SDK never sees them. Bot analytics in web analytics needs server-side
$http_logevents, and the wizard has no way to set that up, even on projects where it is a one-file change.Changes
Note
Ported to the integration-v2 task model. The first version used the
AdditionalFeatureopt-in queue, which main no longer has. The tips-card toggle is gone: the task now runs on its own where the project has a server hook.http-logstask inposthog-integrationloads thehttp-logsskill menu from context-mill, installs the variant for the project's hook (Cloudflare Worker, Next.js middleware or server middleware), and follows its workflow. It waits forcapture, andreviewwaits for it.serverHttpHooktrait gates it throughskipWhen: [serverHttpHook:no]. The trait isyesfor a Cloudflare package, a Wrangler config or a root middleware file, andnoonce the walk has read the run project and found none.package.json, so a Workers project without one is found.cloudflare-detection.ts, the one place that already listed them.Warning
The
http-logsskill is not in context-mill yet. It is written and builds locally, but is unpublished, so until it ships the task finds no menu and completes without changes.Test plan
features.test.ts: a Cloudflare package, and each Wrangler or middleware file with nopackage.json, marks the hook. It fails without the file scan.traits.test.tsandtrait-sources.test.ts: the trait isyesfrom the scan or a member's packages, andnoon a walked run project without a hook.flow-graphs.test.ts:http-logsis queued when the trait isyesand skipped whenno. It fails without theskipWhen.pnpm typecheckand eslint pass. Not run: an end-to-end wizard session.LLM context
First version authored with Claude Code in a PostHog Desktop cloud task. Ported to the task model by Claude Code (Claude Opus 5.5). Part of a wider
$http_logadoption effort: source templates in PostHog/posthog#85969, docs in PostHog/posthog.com#19588.