Skip to content

Fix version skew, event-driven load detection, deduplicate API docs#118

Open
Tzero-S wants to merge 1 commit into
eze-is:mainfrom
Tzero-S:fix-version-event-driven-load-20260531
Open

Fix version skew, event-driven load detection, deduplicate API docs#118
Tzero-S wants to merge 1 commit into
eze-is:mainfrom
Tzero-S:fix-version-event-driven-load-20260531

Conversation

@Tzero-S
Copy link
Copy Markdown

@Tzero-S Tzero-S commented May 31, 2026

Summary

Three targeted fixes for the web-access skill.

1. Fix plugin.json version (2.5.2 → 2.5.3)

plugin.json and SKILL.md disagreed on version. This matters because v2.5.3 introduced breaking changes (/new and /navigate switched from GET to POST).

2. Event-driven page load detection

Before: waitForLoad() polled document.readyState via Runtime.evaluate every 500ms.
After: Subscribes to Page.loadEventFired CDP event (zero polling, instant response) with a one-shot Runtime.evaluate fallback for already-loaded cached pages.

Also adds a general eventListeners Map + addEventListener() for routing unsolicited CDP events — reusable by other proxy features.

3. Deduplicate API documentation

SKILL.md had a full 13-endpoint curl listing duplicating references/cdp-api.md. Replaced with compact quick-reference table and explicit delegation to cdp-api.md.

Files changed

  • .claude-plugin/plugin.json
  • SKILL.md
  • scripts/cdp-proxy.mjs

- Fix plugin.json version 2.5.2 → 2.5.3 (matches SKILL.md breaking change)
- Replace polling waitForLoad with CDP Page.loadEventFired event (zero overhead)
- Add general-purpose CDP event listener system (eventListeners Map + addEventListener)
- Deduplicate Proxy API docs: SKILL.md → compact quick-ref, cdp-api.md remains canonical
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant