opc-agent 4.0.21 → 4.0.22

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.
@@ -910,6 +910,14 @@
910
910
  </div>
911
911
 
912
912
  <script>
913
+ // === Debug: catch all JS errors ===
914
+ window.onerror = function(msg, url, line, col, err) {
915
+ console.error('JS ERROR:', msg, 'at line', line, ':', col);
916
+ const d = document.createElement('div');
917
+ d.style.cssText = 'position:fixed;bottom:0;left:0;right:0;background:red;color:white;padding:8px;z-index:9999;font-size:12px;';
918
+ d.textContent = 'JS Error: ' + msg + ' (line ' + line + ')';
919
+ document.body.appendChild(d);
920
+ };
913
921
  // === State ===
914
922
  let templates = [];
915
923
  let industries = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opc-agent",
3
- "version": "4.0.21",
3
+ "version": "4.0.22",
4
4
  "description": "Open Agent Framework — Build, test, and run AI Agents for business workstations",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -910,6 +910,14 @@
910
910
  </div>
911
911
 
912
912
  <script>
913
+ // === Debug: catch all JS errors ===
914
+ window.onerror = function(msg, url, line, col, err) {
915
+ console.error('JS ERROR:', msg, 'at line', line, ':', col);
916
+ const d = document.createElement('div');
917
+ d.style.cssText = 'position:fixed;bottom:0;left:0;right:0;background:red;color:white;padding:8px;z-index:9999;font-size:12px;';
918
+ d.textContent = 'JS Error: ' + msg + ' (line ' + line + ')';
919
+ document.body.appendChild(d);
920
+ };
913
921
  // === State ===
914
922
  let templates = [];
915
923
  let industries = [];