forge-cw 0.1.18 → 0.1.19
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/console/index.html
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
8
8
|
<title>Forge Console</title>
|
|
9
9
|
<script type="importmap">{"imports":{"preact":"/shared/preact.js","preact/hooks":"/shared/preact-hooks.js","preact/jsx-runtime":"/shared/preact-jsx-runtime.js","preact/compat":"/shared/preact-compat.js","@preact/signals":"/shared/preact-signals.js","@forge-dev/ui":"/shared/forge-dev-ui.js","@forge-dev/sdk":"/shared/forge-dev-sdk.js"}}</script>
|
|
10
|
-
<script type="module" crossorigin src="/assets/index-
|
|
10
|
+
<script type="module" crossorigin src="/assets/index-WdL2WXjO.js"></script>
|
|
11
11
|
<link rel="stylesheet" crossorigin href="/assets/index-DPf7M8cb.css">
|
|
12
12
|
<link rel="stylesheet" href="/shared/forge-dev-ui.css">
|
|
13
13
|
</head>
|
package/dist/index.js
CHANGED
|
@@ -3141,6 +3141,19 @@ function skillRoutes(reader, options = {}) {
|
|
|
3141
3141
|
const version = (await find())?.installs.find((i) => i.scope === install.scope && i.scopeRef === ref)?.version ?? install.version;
|
|
3142
3142
|
return c.json({ ok: true, version });
|
|
3143
3143
|
});
|
|
3144
|
+
app.post("/plugins/:id/uninstall", async (c) => {
|
|
3145
|
+
const id = c.req.param("id");
|
|
3146
|
+
const { scope, scopeRef } = await c.req.json().catch(() => ({}));
|
|
3147
|
+
const ref = scope === "global" ? "global" : scopeRef ?? "";
|
|
3148
|
+
const plugin = (await listPlugins(reader, remoteOf)).find((p) => p.id === id);
|
|
3149
|
+
const install = plugin?.installs.find((i) => i.scope === scope && i.scopeRef === ref);
|
|
3150
|
+
if (!plugin || !install)
|
|
3151
|
+
return c.json({ error: `${id} is not installed in ${ref || "that scope"}` }, 404);
|
|
3152
|
+
const failed = await runClaude(install.scope, ref, [["plugin", "uninstall", plugin.id, "--scope", "user"]], `Failed to uninstall ${plugin.name}`);
|
|
3153
|
+
if (failed)
|
|
3154
|
+
return c.json({ error: failed.error }, failed.status);
|
|
3155
|
+
return c.json({ ok: true });
|
|
3156
|
+
});
|
|
3144
3157
|
app.get("/marketplaces", (c) => c.json(listMarketplaces(reader)));
|
|
3145
3158
|
app.post("/marketplaces", async (c) => {
|
|
3146
3159
|
const body2 = await c.req.json().catch(() => ({}));
|