@patch-adams/core 1.4.22 → 1.4.23

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/dist/cli.cjs CHANGED
@@ -3649,6 +3649,24 @@ function generateLrsBridgeCode(options) {
3649
3649
  * because the bridge initializes in <head> before LMSInitialize runs.
3650
3650
  */
3651
3651
  LRS.refreshActor = function(callback) {
3652
+ // Always-visible diagnostic: confirm refreshActor is being called and show SCORM data (TEMPORARY)
3653
+ if (window.console && window.console.info) {
3654
+ var scormId = 'n/a', scormName = 'n/a';
3655
+ if (LRS.scormApi) {
3656
+ try {
3657
+ scormId = LRS.scormApiType === '2004'
3658
+ ? LRS.scormApi.GetValue('cmi.learner_id')
3659
+ : LRS.scormApi.LMSGetValue('cmi.core.student_id');
3660
+ scormName = LRS.scormApiType === '2004'
3661
+ ? LRS.scormApi.GetValue('cmi.learner_name')
3662
+ : LRS.scormApi.LMSGetValue('cmi.core.student_name');
3663
+ } catch(e) { scormId = 'error'; scormName = 'error'; }
3664
+ }
3665
+ console.info('[PA-LRS] refreshActor called. SCORM API=' + (LRS.scormApi ? 'found' : 'MISSING') +
3666
+ ', student_id=' + scormId +
3667
+ ', student_name=' + scormName +
3668
+ ', previous actor=' + (LRS.actor ? LRS.actor.name : 'none'));
3669
+ }
3652
3670
  log('refreshActor called - re-extracting from SCORM...');
3653
3671
  var previousName = LRS.actor ? LRS.actor.name : 'none';
3654
3672
 
@@ -4396,10 +4414,13 @@ function generateLrsBridgeCode(options) {
4396
4414
  // Always-visible bridge summary (not gated by DEBUG)
4397
4415
  // This ensures diagnostics are available even in production builds
4398
4416
  if (window.console && window.console.info) {
4399
- console.info('[PA-LRS] Bridge: mode=' + LRS.mode +
4417
+ console.info('[PA-LRS] Bridge v' + LRS.version + ': mode=' + LRS.mode +
4400
4418
  ', endpoint=' + (LRS_ENDPOINT ? LRS_ENDPOINT.substring(0, 30) + '...' : 'NONE') +
4401
4419
  ', proxy=' + (LRS_PROXY_ENDPOINT ? 'yes' : 'no') +
4402
- ', actor=' + (LRS.actor ? (LRS.actor.name || 'anonymous') : 'none'));
4420
+ ', docGuid=' + (DOCUMENT_GUID || 'NONE') +
4421
+ ', verGuid=' + (VERSION_GUID || 'NONE') +
4422
+ ', actor=' + (LRS.actor ? (LRS.actor.name || 'anonymous') : 'none') +
4423
+ ', hasRefreshActor=' + (typeof LRS.refreshActor === 'function'));
4403
4424
  }
4404
4425
 
4405
4426
  // Set up event interceptors