@dynamicu/chromedebug-mcp 2.6.6 → 2.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/chrome-extension/activation-manager.js +18 -4
- package/chrome-extension/background.js +439 -53
- package/chrome-extension/browser-recording-manager.js +256 -0
- package/chrome-extension/content.js +167 -97
- package/chrome-extension/data-buffer.js +206 -17
- package/chrome-extension/frame-capture.js +52 -15
- package/chrome-extension/manifest.free.json +3 -3
- package/chrome-extension/popup.html +109 -5
- package/chrome-extension/popup.js +597 -159
- package/config/chromedebug-config.json +101 -0
- package/dist/chromedebug-extension-free.zip +0 -0
- package/package.json +1 -1
- package/scripts/package-pro-extension.js +1 -1
- package/scripts/webpack.config.free.cjs +3 -0
- package/scripts/webpack.config.pro.cjs +3 -0
- package/src/chrome-controller.js +7 -7
- package/src/database.js +6 -2
- package/src/http-server.js +3 -2
- package/src/validation/schemas.js +36 -6
|
@@ -23,9 +23,13 @@ document.addEventListener('DOMContentLoaded', async () => {
|
|
|
23
23
|
async function loadActivations() {
|
|
24
24
|
try {
|
|
25
25
|
// Get license key and instance ID from storage
|
|
26
|
-
|
|
26
|
+
// Note: ls_instance_id is the LemonSqueezy instance ID set during activation
|
|
27
|
+
const stored = await chrome.storage.local.get(['ls_license_key', 'ls_instance_id']);
|
|
27
28
|
licenseKey = stored.ls_license_key;
|
|
28
|
-
currentInstanceId = stored.
|
|
29
|
+
currentInstanceId = stored.ls_instance_id;
|
|
30
|
+
|
|
31
|
+
console.log('[Activation Manager] Current instance ID:', currentInstanceId);
|
|
32
|
+
console.log('[Activation Manager] Storage:', stored);
|
|
29
33
|
|
|
30
34
|
if (!licenseKey) {
|
|
31
35
|
showError('License key not found. Please activate your license first.');
|
|
@@ -36,6 +40,9 @@ async function loadActivations() {
|
|
|
36
40
|
const data = await licenseClient.listActivations(licenseKey);
|
|
37
41
|
activations = data.activations || [];
|
|
38
42
|
|
|
43
|
+
console.log('[Activation Manager] Fetched activations:', JSON.stringify(activations, null, 2));
|
|
44
|
+
console.log('[Activation Manager] Comparing against current instance ID:', currentInstanceId);
|
|
45
|
+
|
|
39
46
|
// Show activation status
|
|
40
47
|
document.getElementById('activation-status').textContent =
|
|
41
48
|
`${data.activationUsage} of ${data.activationLimit} activations used`;
|
|
@@ -72,8 +79,15 @@ function renderActivations() {
|
|
|
72
79
|
item.className = 'activation-item';
|
|
73
80
|
|
|
74
81
|
// Check if this is the current device
|
|
75
|
-
|
|
76
|
-
|
|
82
|
+
// Compare against identifier (unique per activation), not name (same for all activations from this device)
|
|
83
|
+
const isCurrentDevice = currentInstanceId && activation.identifier === currentInstanceId;
|
|
84
|
+
|
|
85
|
+
console.log('[Activation Manager] Activation', index + 1, ':', {
|
|
86
|
+
name: activation.name,
|
|
87
|
+
identifier: activation.identifier,
|
|
88
|
+
currentInstanceId: currentInstanceId,
|
|
89
|
+
isCurrentDevice: isCurrentDevice
|
|
90
|
+
});
|
|
77
91
|
|
|
78
92
|
if (isCurrentDevice) {
|
|
79
93
|
item.classList.add('current-device');
|