Repository navigation
fix(analytics): publish events keep only real SDK entry points - #700
Merged
Merged
Conversation
Owner
Author
allisonmahmood
force-pushed
the
fix/544-publish-shared
branch
from
October 15, 2026 21:24
485a8a7 to
d832f26
Compare
patch.created and patch.updated filtered the client-supplied sdkImports with a pattern, so any patchy/... path, such as patchy/customer-jane-doe/private-project, still reached PostHog. SDK_ENTRY_POINTS in @patchy/api is now the one closed list: the CLI builds from it and the publish event keeps only listed entries. Co-Authored-By: Claude Opus 5.5 <[email protected]>
allisonmahmood
force-pushed
the
fix/542-sdk-entry-points
branch
from
October 15, 2026 21:33
ee7f458 to
d09f526
Compare
allisonmahmood
added a commit
that referenced
this pull request
Oct 16, 2026
…u when they fail (#720) Release 13's What's new entry, written from `c9b8fc4`, ahead of deploying it. `patchy` and `CURRENT_RELEASE` move to `0.13.0`, so CLIs and patch repos installed before this deploy are told to upgrade. | Change | PRs | | --- | --- | | New: Home puts the patches you use first | #713, #716, #719 | | New: Every patch in one list | #715 | | Improved: Each patch's page leads with Open | #717 | | New: See when your tools are failing | #718 | | Fixed: Everyone has a name | #687 | | Improved: Your company's look is easier to get right | #697, #696, #703, #688 | | Improved: Forms follow your look's error states | #691, #692 | | Improved: Clearer answers when a publish goes wrong | #686, #685, #689 | | Fixed: Your agent's Patchy commands are steadier | #695, #704, #680, #681 | | Behind the scenes: stricter checks on static pages and tools' database requests; malformed requests are logged | #682, #693, #683 | | Behind the scenes: usage numbers count every publish, sharing change and restore | #698, #699, #700, #690 | | Test and tooling only, no line | #705, #702, #701, #694, #684, #607 | Made by Claude Opus 5.5 in Claude Code, running in T3 Code. Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #699
patch.createdandpatch.updatedreport the SDK entry points a patch imports, from the manifest's client-suppliedsdkImports. The server filtered them with a pattern, so anypatchy/…path, such aspatchy/customer-jane-doe/private-project, still reached PostHog.Fix
SDK_ENTRY_POINTSin@patchy/api, besideManifest, is now the one closed list: the page entries, the server entries andpatchy/client, which only the generated client imports. The CLI's import check (pageImports.ts) builds from it instead of keeping its own two arrays, so what the CLI accepts is unchanged. The publish event keeps only listed entries. Anything else is dropped from analytics only: the publish is never rejected and the manifest is stored as sent.The tier 2 publish test's manifest now carries
patchy/customer-jane-doe/private-projectnext to the existing junk entry, and the event still reports onlypatchy/server. The test fails under the old pattern.Tested by hand
On the same instance and collector as #698, I POSTed a tier 0 publish whose
sdkImportswas["patchy/customer-jane-doe/private-project", "patchy/csv", "patchy/internal/secret-roadmap", "Jane <[email protected]>", "patchy/preact"]. It answered201, itspatch.createdcarriedsdkImports: ["patchy/csv", "patchy/preact"], and none of the three bogus strings appeared anywhere in what the collector received.Hit every surface
packages/apiis the source, and the CLI's import check and the server's event filter both read it. No request or response shape or description changed, sodocs/API.mdis unchanged; the api suite, which checks it is current, passes.sdkImportsanddocs/OPERATIONS.md's business-events section name the list.Closes #542
Made by Claude Opus 5.5 in Claude Code, running in T3 Code.