opc-agent 4.0.21 → 4.0.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.
@@ -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 = [];
@@ -1107,7 +1115,7 @@
1107
1115
  async function installSkill(id, btn) {
1108
1116
  btn.disabled = true; btn.textContent = 'Installing...';
1109
1117
  try {
1110
- const res = await fetch(\`/api/skills/marketplace/\${id}/install\`, { method: 'POST' });
1118
+ const res = await fetch(`/api/skills/marketplace/${id}/install`, { method: 'POST' });
1111
1119
  const data = await res.json();
1112
1120
  if (data.success) {
1113
1121
  const skill = allSkills.find(s => s.id === id);
@@ -1120,7 +1128,7 @@
1120
1128
  async function uninstallSkill(id, btn) {
1121
1129
  btn.disabled = true; btn.textContent = 'Removing...';
1122
1130
  try {
1123
- const res = await fetch(\`/api/skills/marketplace/\${id}/uninstall\`, { method: 'DELETE' });
1131
+ const res = await fetch(`/api/skills/marketplace/${id}/uninstall`, { method: 'DELETE' });
1124
1132
  const data = await res.json();
1125
1133
  if (data.success) {
1126
1134
  const skill = allSkills.find(s => s.id === id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opc-agent",
3
- "version": "4.0.21",
3
+ "version": "4.0.23",
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 = [];
@@ -1107,7 +1115,7 @@
1107
1115
  async function installSkill(id, btn) {
1108
1116
  btn.disabled = true; btn.textContent = 'Installing...';
1109
1117
  try {
1110
- const res = await fetch(\`/api/skills/marketplace/\${id}/install\`, { method: 'POST' });
1118
+ const res = await fetch(`/api/skills/marketplace/${id}/install`, { method: 'POST' });
1111
1119
  const data = await res.json();
1112
1120
  if (data.success) {
1113
1121
  const skill = allSkills.find(s => s.id === id);
@@ -1120,7 +1128,7 @@
1120
1128
  async function uninstallSkill(id, btn) {
1121
1129
  btn.disabled = true; btn.textContent = 'Removing...';
1122
1130
  try {
1123
- const res = await fetch(\`/api/skills/marketplace/\${id}/uninstall\`, { method: 'DELETE' });
1131
+ const res = await fetch(`/api/skills/marketplace/${id}/uninstall`, { method: 'DELETE' });
1124
1132
  const data = await res.json();
1125
1133
  if (data.success) {
1126
1134
  const skill = allSkills.find(s => s.id === id);