opc-agent 4.0.22 → 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.
|
@@ -1115,7 +1115,7 @@
|
|
|
1115
1115
|
async function installSkill(id, btn) {
|
|
1116
1116
|
btn.disabled = true; btn.textContent = 'Installing...';
|
|
1117
1117
|
try {
|
|
1118
|
-
const res = await fetch(
|
|
1118
|
+
const res = await fetch(`/api/skills/marketplace/${id}/install`, { method: 'POST' });
|
|
1119
1119
|
const data = await res.json();
|
|
1120
1120
|
if (data.success) {
|
|
1121
1121
|
const skill = allSkills.find(s => s.id === id);
|
|
@@ -1128,7 +1128,7 @@
|
|
|
1128
1128
|
async function uninstallSkill(id, btn) {
|
|
1129
1129
|
btn.disabled = true; btn.textContent = 'Removing...';
|
|
1130
1130
|
try {
|
|
1131
|
-
const res = await fetch(
|
|
1131
|
+
const res = await fetch(`/api/skills/marketplace/${id}/uninstall`, { method: 'DELETE' });
|
|
1132
1132
|
const data = await res.json();
|
|
1133
1133
|
if (data.success) {
|
|
1134
1134
|
const skill = allSkills.find(s => s.id === id);
|
package/package.json
CHANGED
package/src/studio-ui/index.html
CHANGED
|
@@ -1115,7 +1115,7 @@
|
|
|
1115
1115
|
async function installSkill(id, btn) {
|
|
1116
1116
|
btn.disabled = true; btn.textContent = 'Installing...';
|
|
1117
1117
|
try {
|
|
1118
|
-
const res = await fetch(
|
|
1118
|
+
const res = await fetch(`/api/skills/marketplace/${id}/install`, { method: 'POST' });
|
|
1119
1119
|
const data = await res.json();
|
|
1120
1120
|
if (data.success) {
|
|
1121
1121
|
const skill = allSkills.find(s => s.id === id);
|
|
@@ -1128,7 +1128,7 @@
|
|
|
1128
1128
|
async function uninstallSkill(id, btn) {
|
|
1129
1129
|
btn.disabled = true; btn.textContent = 'Removing...';
|
|
1130
1130
|
try {
|
|
1131
|
-
const res = await fetch(
|
|
1131
|
+
const res = await fetch(`/api/skills/marketplace/${id}/uninstall`, { method: 'DELETE' });
|
|
1132
1132
|
const data = await res.json();
|
|
1133
1133
|
if (data.success) {
|
|
1134
1134
|
const skill = allSkills.find(s => s.id === id);
|