compound-workflow 1.6.13 → 1.6.15
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
package/scripts/install-cli.mjs
CHANGED
|
@@ -359,7 +359,7 @@ function writePluginManifests(targetRoot, dryRun, isSelfInstall) {
|
|
|
359
359
|
};
|
|
360
360
|
|
|
361
361
|
if (dryRun) {
|
|
362
|
-
console.log("[dry-run] Would write .cursor-plugin/plugin.json, .claude-plugin/plugin.json, .cursor-plugin/registration.json");
|
|
362
|
+
console.log("[dry-run] Would write .cursor-plugin/plugin.json, .claude-plugin/plugin.json, .cursor-plugin/registration.json" + (isSelfInstall ? "" : ", .claude-plugin/marketplace.json"));
|
|
363
363
|
return;
|
|
364
364
|
}
|
|
365
365
|
fs.mkdirSync(cursorDir, { recursive: true });
|
|
@@ -367,7 +367,24 @@ function writePluginManifests(targetRoot, dryRun, isSelfInstall) {
|
|
|
367
367
|
fs.writeFileSync(path.join(cursorDir, "plugin.json"), JSON.stringify(cursorOut, null, 2) + "\n", "utf8");
|
|
368
368
|
fs.writeFileSync(path.join(claudeDir, "plugin.json"), JSON.stringify(claudeOut, null, 2) + "\n", "utf8");
|
|
369
369
|
fs.writeFileSync(path.join(cursorDir, "registration.json"), JSON.stringify(registrationDescriptor, null, 2) + "\n", "utf8");
|
|
370
|
-
|
|
370
|
+
|
|
371
|
+
// Claude Code 2.1.x+ no longer loads from installed_plugins.json; it requires marketplace flow.
|
|
372
|
+
// Write a project-level marketplace so user can: /plugin marketplace add . then /plugin install compound-workflow@compound-workflow-local
|
|
373
|
+
if (!isSelfInstall) {
|
|
374
|
+
const marketplaceManifest = {
|
|
375
|
+
name: "compound-workflow-local",
|
|
376
|
+
owner: { name: "Compound Workflow" },
|
|
377
|
+
plugins: [
|
|
378
|
+
{
|
|
379
|
+
name: "compound-workflow",
|
|
380
|
+
source: "./node_modules/compound-workflow",
|
|
381
|
+
description: claudeOut.description || "Clarify → plan → execute → verify → capture workflow.",
|
|
382
|
+
},
|
|
383
|
+
],
|
|
384
|
+
};
|
|
385
|
+
fs.writeFileSync(path.join(claudeDir, "marketplace.json"), JSON.stringify(marketplaceManifest, null, 2) + "\n", "utf8");
|
|
386
|
+
}
|
|
387
|
+
console.log("Wrote: .cursor-plugin/plugin.json, .claude-plugin/plugin.json, .cursor-plugin/registration.json" + (isSelfInstall ? "" : ", .claude-plugin/marketplace.json"));
|
|
371
388
|
}
|
|
372
389
|
|
|
373
390
|
/**
|
|
@@ -535,14 +552,23 @@ function applyCursorRegistration(targetRoot, dryRun, noRegisterCursor, forceRegi
|
|
|
535
552
|
}
|
|
536
553
|
projectSettings.enabledPlugins = ensureObject(projectSettings.enabledPlugins);
|
|
537
554
|
projectSettings.enabledPlugins[pluginId] = true;
|
|
555
|
+
// Remove invalid "local" entry if present; then register local marketplace via "file" so it appears without slash commands
|
|
538
556
|
if (projectSettings.extraKnownMarketplaces?.["compound-workflow"]) {
|
|
539
557
|
delete projectSettings.extraKnownMarketplaces["compound-workflow"];
|
|
540
558
|
}
|
|
559
|
+
projectSettings.extraKnownMarketplaces = ensureObject(projectSettings.extraKnownMarketplaces);
|
|
560
|
+
projectSettings.extraKnownMarketplaces["compound-workflow-local"] = {
|
|
561
|
+
source: { source: "file", path: ".claude-plugin/marketplace.json" },
|
|
562
|
+
};
|
|
541
563
|
fs.mkdirSync(path.join(targetRoot, ".claude"), { recursive: true });
|
|
542
564
|
fs.writeFileSync(projectSettingsPath, JSON.stringify(projectSettings, null, 2) + "\n", "utf8");
|
|
543
565
|
}
|
|
544
566
|
|
|
545
|
-
console.log("Registered compound-workflow with Claude Code.
|
|
567
|
+
console.log("Registered compound-workflow with Claude Code.");
|
|
568
|
+
if (!isSelfInstall) {
|
|
569
|
+
console.log(" Claude Code 2.1+: open /plugin, go to Discover; install 'compound-workflow' from marketplace 'compound-workflow-local', or run: claude --plugin-dir ./node_modules/compound-workflow");
|
|
570
|
+
}
|
|
571
|
+
console.log(" Restart Claude Code; enable 'Include third-party Plugins, Skills, and other configs' in Settings if needed.");
|
|
546
572
|
|
|
547
573
|
if (noRegisterCursor && !forceRegister) return;
|
|
548
574
|
const shouldApply = forceRegister || (cursorDetected() && !noRegisterCursor);
|