claudeup 3.3.0 → 3.3.1
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/package.json
CHANGED
|
@@ -156,7 +156,12 @@ export async function setAllowMcp(_allow, _projectPath) {
|
|
|
156
156
|
export async function enablePlugin(pluginId, enabled, projectPath) {
|
|
157
157
|
const settings = await readSettings(projectPath);
|
|
158
158
|
settings.enabledPlugins = settings.enabledPlugins || {};
|
|
159
|
-
|
|
159
|
+
if (enabled) {
|
|
160
|
+
settings.enabledPlugins[pluginId] = true;
|
|
161
|
+
}
|
|
162
|
+
else {
|
|
163
|
+
delete settings.enabledPlugins[pluginId];
|
|
164
|
+
}
|
|
160
165
|
await writeSettings(settings, projectPath);
|
|
161
166
|
}
|
|
162
167
|
export async function getEnabledPlugins(projectPath) {
|
|
@@ -175,7 +180,12 @@ export async function getLocalInstalledPluginVersions(projectPath) {
|
|
|
175
180
|
export async function enableLocalPlugin(pluginId, enabled, projectPath) {
|
|
176
181
|
const settings = await readLocalSettings(projectPath);
|
|
177
182
|
settings.enabledPlugins = settings.enabledPlugins || {};
|
|
178
|
-
|
|
183
|
+
if (enabled) {
|
|
184
|
+
settings.enabledPlugins[pluginId] = true;
|
|
185
|
+
}
|
|
186
|
+
else {
|
|
187
|
+
delete settings.enabledPlugins[pluginId];
|
|
188
|
+
}
|
|
179
189
|
await writeLocalSettings(settings, projectPath);
|
|
180
190
|
}
|
|
181
191
|
export async function saveLocalInstalledPluginVersion(pluginId, version, projectPath) {
|
|
@@ -284,7 +294,12 @@ export async function getGlobalConfiguredMarketplaces() {
|
|
|
284
294
|
export async function enableGlobalPlugin(pluginId, enabled) {
|
|
285
295
|
const settings = await readGlobalSettings();
|
|
286
296
|
settings.enabledPlugins = settings.enabledPlugins || {};
|
|
287
|
-
|
|
297
|
+
if (enabled) {
|
|
298
|
+
settings.enabledPlugins[pluginId] = true;
|
|
299
|
+
}
|
|
300
|
+
else {
|
|
301
|
+
delete settings.enabledPlugins[pluginId];
|
|
302
|
+
}
|
|
288
303
|
await writeGlobalSettings(settings);
|
|
289
304
|
}
|
|
290
305
|
export async function getGlobalEnabledPlugins() {
|
|
@@ -225,7 +225,11 @@ export async function enablePlugin(
|
|
|
225
225
|
): Promise<void> {
|
|
226
226
|
const settings = await readSettings(projectPath);
|
|
227
227
|
settings.enabledPlugins = settings.enabledPlugins || {};
|
|
228
|
-
|
|
228
|
+
if (enabled) {
|
|
229
|
+
settings.enabledPlugins[pluginId] = true;
|
|
230
|
+
} else {
|
|
231
|
+
delete settings.enabledPlugins[pluginId];
|
|
232
|
+
}
|
|
229
233
|
await writeSettings(settings, projectPath);
|
|
230
234
|
}
|
|
231
235
|
|
|
@@ -258,7 +262,11 @@ export async function enableLocalPlugin(
|
|
|
258
262
|
): Promise<void> {
|
|
259
263
|
const settings = await readLocalSettings(projectPath);
|
|
260
264
|
settings.enabledPlugins = settings.enabledPlugins || {};
|
|
261
|
-
|
|
265
|
+
if (enabled) {
|
|
266
|
+
settings.enabledPlugins[pluginId] = true;
|
|
267
|
+
} else {
|
|
268
|
+
delete settings.enabledPlugins[pluginId];
|
|
269
|
+
}
|
|
262
270
|
await writeLocalSettings(settings, projectPath);
|
|
263
271
|
}
|
|
264
272
|
|
|
@@ -432,7 +440,11 @@ export async function enableGlobalPlugin(
|
|
|
432
440
|
): Promise<void> {
|
|
433
441
|
const settings = await readGlobalSettings();
|
|
434
442
|
settings.enabledPlugins = settings.enabledPlugins || {};
|
|
435
|
-
|
|
443
|
+
if (enabled) {
|
|
444
|
+
settings.enabledPlugins[pluginId] = true;
|
|
445
|
+
} else {
|
|
446
|
+
delete settings.enabledPlugins[pluginId];
|
|
447
|
+
}
|
|
436
448
|
await writeGlobalSettings(settings);
|
|
437
449
|
}
|
|
438
450
|
|
|
@@ -398,8 +398,11 @@ export async function removeInstalledPluginVersion(pluginId, projectPath) {
|
|
|
398
398
|
const settings = await readSettings(projectPath);
|
|
399
399
|
if (settings.installedPluginVersions) {
|
|
400
400
|
delete settings.installedPluginVersions[pluginId];
|
|
401
|
-
await writeSettings(settings, projectPath);
|
|
402
401
|
}
|
|
402
|
+
if (settings.enabledPlugins) {
|
|
403
|
+
delete settings.enabledPlugins[pluginId];
|
|
404
|
+
}
|
|
405
|
+
await writeSettings(settings, projectPath);
|
|
403
406
|
// Remove from installed_plugins.json registry
|
|
404
407
|
await removeFromInstalledPluginsRegistry(pluginId, "project", projectPath ? path.resolve(projectPath) : undefined);
|
|
405
408
|
}
|
|
@@ -560,8 +560,11 @@ export async function removeInstalledPluginVersion(
|
|
|
560
560
|
const settings = await readSettings(projectPath);
|
|
561
561
|
if (settings.installedPluginVersions) {
|
|
562
562
|
delete settings.installedPluginVersions[pluginId];
|
|
563
|
-
await writeSettings(settings, projectPath);
|
|
564
563
|
}
|
|
564
|
+
if (settings.enabledPlugins) {
|
|
565
|
+
delete settings.enabledPlugins[pluginId];
|
|
566
|
+
}
|
|
567
|
+
await writeSettings(settings, projectPath);
|
|
565
568
|
|
|
566
569
|
// Remove from installed_plugins.json registry
|
|
567
570
|
await removeFromInstalledPluginsRegistry(
|