compound-workflow 1.6.8 → 1.6.9

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "compound-workflow",
3
- "version": "1.6.8",
3
+ "version": "1.6.9",
4
4
  "description": "Clarify -> plan -> execute -> verify -> capture workflow: commands, skills, and agents for Claude Code",
5
5
  "author": {
6
6
  "name": "Compound Workflow"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "compound-workflow",
3
- "version": "1.6.8",
3
+ "version": "1.6.9",
4
4
  "description": "Clarify -> plan -> execute -> verify -> capture workflow for Cursor",
5
5
  "author": {
6
6
  "name": "Compound Workflow"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "compound-workflow",
3
- "version": "1.6.8",
3
+ "version": "1.6.9",
4
4
  "description": "Clarify → plan → execute → verify → capture. One Install action for Cursor, Claude, and OpenCode.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -448,17 +448,23 @@ function cursorDetected() {
448
448
  return fs.existsSync(path.join(os.homedir(), ".cursor"));
449
449
  }
450
450
 
451
- function applyCursorRegistration(targetRoot, dryRun, noRegisterCursor, forceRegister) {
451
+ function applyCursorRegistration(targetRoot, dryRun, noRegisterCursor, forceRegister, isSelfInstall) {
452
452
  if (dryRun) return;
453
453
 
454
454
  const claudePluginsDir = path.join(os.homedir(), ".claude", "plugins");
455
455
  const installedPath = path.join(claudePluginsDir, "installed_plugins.json");
456
456
  const settingsPath = path.join(os.homedir(), ".claude", "settings.json");
457
457
 
458
+ // installPath must point to the package root so Claude Code resolves
459
+ // commands/agents/skills paths in .claude-plugin/plugin.json relative to it.
460
+ const pluginInstallPath = isSelfInstall
461
+ ? realpathSafe(PACKAGE_ROOT)
462
+ : realpathSafe(path.join(targetRoot, "node_modules", "compound-workflow"));
463
+
458
464
  const pluginDescriptor = {
459
465
  pluginId: "compound-workflow@local",
460
466
  scope: "user",
461
- installPath: realpathSafe(targetRoot),
467
+ installPath: pluginInstallPath,
462
468
  };
463
469
 
464
470
  let installed = {};
@@ -567,7 +573,7 @@ function main() {
567
573
  writeOpenCodeJson(targetRoot, args.dryRun, isSelfInstall);
568
574
  writePluginManifests(targetRoot, args.dryRun, isSelfInstall);
569
575
  syncCursorSkills(targetRoot, args.dryRun, isSelfInstall);
570
- applyCursorRegistration(targetRoot, args.dryRun, args.noRegisterCursor, args.registerCursor);
576
+ applyCursorRegistration(targetRoot, args.dryRun, args.noRegisterCursor, args.registerCursor, isSelfInstall);
571
577
  reportOpenCodeIntegration(targetRoot, args.dryRun);
572
578
  writeAgentsMd(targetRoot, args.dryRun);
573
579
  ensureDirs(targetRoot, args.dryRun);