@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.
@@ -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
- const stored = await chrome.storage.local.get(['ls_license_key', 'ls_instance_id', 'chromedebug_instance_id']);
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.chromedebug_instance_id;
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
- const isCurrentDevice = activation.name === currentInstanceId ||
76
- activation.identifier === currentInstanceId;
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');