@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/index.cjs CHANGED
@@ -3317,6 +3317,24 @@ function generateLrsBridgeCode(options) {
3317
3317
  * because the bridge initializes in <head> before LMSInitialize runs.
3318
3318
  */
3319
3319
  LRS.refreshActor = function(callback) {
3320
+ // Always-visible diagnostic: confirm refreshActor is being called and show SCORM data (TEMPORARY)
3321
+ if (window.console && window.console.info) {
3322
+ var scormId = 'n/a', scormName = 'n/a';
3323
+ if (LRS.scormApi) {
3324
+ try {
3325
+ scormId = LRS.scormApiType === '2004'
3326
+ ? LRS.scormApi.GetValue('cmi.learner_id')
3327
+ : LRS.scormApi.LMSGetValue('cmi.core.student_id');
3328
+ scormName = LRS.scormApiType === '2004'
3329
+ ? LRS.scormApi.GetValue('cmi.learner_name')
3330
+ : LRS.scormApi.LMSGetValue('cmi.core.student_name');
3331
+ } catch(e) { scormId = 'error'; scormName = 'error'; }
3332
+ }
3333
+ console.info('[PA-LRS] refreshActor called. SCORM API=' + (LRS.scormApi ? 'found' : 'MISSING') +
3334
+ ', student_id=' + scormId +
3335
+ ', student_name=' + scormName +
3336
+ ', previous actor=' + (LRS.actor ? LRS.actor.name : 'none'));
3337
+ }
3320
3338
  log('refreshActor called - re-extracting from SCORM...');
3321
3339
  var previousName = LRS.actor ? LRS.actor.name : 'none';
3322
3340
 
@@ -4064,10 +4082,13 @@ function generateLrsBridgeCode(options) {
4064
4082
  // Always-visible bridge summary (not gated by DEBUG)
4065
4083
  // This ensures diagnostics are available even in production builds
4066
4084
  if (window.console && window.console.info) {
4067
- console.info('[PA-LRS] Bridge: mode=' + LRS.mode +
4085
+ console.info('[PA-LRS] Bridge v' + LRS.version + ': mode=' + LRS.mode +
4068
4086
  ', endpoint=' + (LRS_ENDPOINT ? LRS_ENDPOINT.substring(0, 30) + '...' : 'NONE') +
4069
4087
  ', proxy=' + (LRS_PROXY_ENDPOINT ? 'yes' : 'no') +
4070
- ', actor=' + (LRS.actor ? (LRS.actor.name || 'anonymous') : 'none'));
4088
+ ', docGuid=' + (DOCUMENT_GUID || 'NONE') +
4089
+ ', verGuid=' + (VERSION_GUID || 'NONE') +
4090
+ ', actor=' + (LRS.actor ? (LRS.actor.name || 'anonymous') : 'none') +
4091
+ ', hasRefreshActor=' + (typeof LRS.refreshActor === 'function'));
4071
4092
  }
4072
4093
 
4073
4094
  // Set up event interceptors