Skip to content

Add Copy as cURL, fix schema endpoint detection, and address audit findings#5

Merged
rookieInTraining merged 7 commits into
trunkfrom
registry-ui-revamp
Jun 13, 2026
Merged

Add Copy as cURL, fix schema endpoint detection, and address audit findings#5
rookieInTraining merged 7 commits into
trunkfrom
registry-ui-revamp

Conversation

@rookieInTraining

Copy link
Copy Markdown
Owner

Features:

  • Copy as cURL: generate Bash/PowerShell replay commands for any captured
    request from a modal, including the request headers captured from live
    traffic (js/ui/curl-copy.js, interceptor header normalization)

Schema loader:

  • Persist observed GraphQL endpoints (with their captured headers) to
    chrome.storage.session so they survive MV3 service-worker restarts; the
    Load Schema message usually wakes a fresh worker with empty memory
  • Introspect observed endpoints directly with their captured headers instead
    of probing with a bare {__typename} request, which production gateways
    (CSRF/required client headers) reject — and surface the real introspection
    error instead of a generic "no endpoint detected"

Fixes from project audit:

  • CI: trigger on trunk instead of the nonexistent main branch
  • Hash registry: cap at 500 entries with LRU eviction (was unbounded)
  • request-list: dedupe getFilteredRequests against requestPassesFilter
  • Remove dead <script>/javascript: check from validateUrlPattern
  • Sync manifest.json version to 2.0.1

Docs:

  • Add CLAUDE.md with commands and architecture notes
  • README: correct stale module list and install steps, document passive
    mode / schema explorer / Copy as cURL, add header-capture privacy note

Tests: 200 passing — add curl-copy modal, hash-registry eviction, and
endpoint-tracker persistence suites; update schema-loader for direct
introspection.

rookieInTraining added 6 commits June 12, 2026 21:54
…ndings

  Features:
  - Copy as cURL: generate Bash/PowerShell replay commands for any captured
    request from a modal, including the request headers captured from live
    traffic (js/ui/curl-copy.js, interceptor header normalization)

  Schema loader:
  - Persist observed GraphQL endpoints (with their captured headers) to
    chrome.storage.session so they survive MV3 service-worker restarts; the
    Load Schema message usually wakes a fresh worker with empty memory
  - Introspect observed endpoints directly with their captured headers instead
    of probing with a bare {__typename} request, which production gateways
    (CSRF/required client headers) reject — and surface the real introspection
    error instead of a generic "no endpoint detected"

  Fixes from project audit:
  - CI: trigger on trunk instead of the nonexistent main branch
  - Hash registry: cap at 500 entries with LRU eviction (was unbounded)
  - request-list: dedupe getFilteredRequests against requestPassesFilter
  - Remove dead <script>/javascript: check from validateUrlPattern
  - Sync manifest.json version to 2.0.1

  Docs:
  - Add CLAUDE.md with commands and architecture notes
  - README: correct stale module list and install steps, document passive
    mode / schema explorer / Copy as cURL, add header-capture privacy note
@rookieInTraining rookieInTraining added the enhancement New feature or request label Jun 13, 2026
@rookieInTraining rookieInTraining merged commit d5d3d38 into trunk Jun 13, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant