mirror of
https://github.com/jackwener/OpenCLI.git
synced 2026-09-14 18:25:42 +08:00
555626f409
Use Chrome CDP targetId (UUID) as the canonical page identity across all layers (extension → daemon → CLI), demoting tabId to an extension-internal routing detail. - Add extension/src/identity.ts: bidirectional targetId ↔ tabId mapping with lazy refresh via chrome.debugger.getTargets() - Update protocol: Command.page and Result.page carry targetId - Update background.ts: resolveCommandTabId() and pageScopedResult() helpers; all page-scoped handlers return targetId - Add sendCommandFull() to daemon-client for responses with page identity - Update Page class: _page stores targetId, goto/selectTab extract it - Update record.ts: injectedPages tracks by targetId - Add extension tests to vitest config and CI test scripts
1.5 KiB
1.5 KiB