scc-universal 1.2.0 → 1.2.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "salesforce-claude-code",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Production-ready expert subagents, domain skills, and quality gates for Salesforce development",
5
5
  "author": {
6
6
  "name": "Jiten Singh",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "salesforce-claude-code",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Production-ready expert subagents, domain skills, and quality gates for Salesforce development",
5
5
  "author": {
6
6
  "name": "Jiten Singh",
@@ -12,7 +12,7 @@
12
12
  "agents/sf-review-agent.md",
13
13
  "agents/sf-bugfix-agent.md"
14
14
  ],
15
- "targets": { "claude": ".claude/agents/", "cursor": ".agents/" }
15
+ "targets": { "claude": ".claude/agents/", "cursor": ".cursor/agents/" }
16
16
  },
17
17
  {
18
18
  "paths": [
@@ -25,7 +25,7 @@
25
25
  },
26
26
  {
27
27
  "paths": ["scripts/hooks/"],
28
- "targets": { "claude": ".claude/", "cursor": null },
28
+ "targets": { "claude": ".claude/", "cursor": ".cursor/" },
29
29
  "installType": "hooks",
30
30
  "hooksSource": "hooks/hooks.json"
31
31
  }
@@ -44,7 +44,7 @@
44
44
  "paths": [
45
45
  "agents/sf-apex-agent.md"
46
46
  ],
47
- "targets": { "claude": ".claude/agents/", "cursor": ".agents/" }
47
+ "targets": { "claude": ".claude/agents/", "cursor": ".cursor/agents/" }
48
48
  },
49
49
  {
50
50
  "paths": [
@@ -72,7 +72,7 @@
72
72
  "pathGroups": [
73
73
  {
74
74
  "paths": ["agents/sf-lwc-agent.md"],
75
- "targets": { "claude": ".claude/agents/", "cursor": ".agents/" }
75
+ "targets": { "claude": ".claude/agents/", "cursor": ".cursor/agents/" }
76
76
  },
77
77
  {
78
78
  "paths": [
@@ -103,7 +103,7 @@
103
103
  "agents/loop-operator.md",
104
104
  "agents/refactor-cleaner.md"
105
105
  ],
106
- "targets": { "claude": ".claude/agents/", "cursor": ".agents/" }
106
+ "targets": { "claude": ".claude/agents/", "cursor": ".cursor/agents/" }
107
107
  },
108
108
  {
109
109
  "paths": [
@@ -194,7 +194,7 @@
194
194
  "agents/sf-aura-reviewer.md",
195
195
  "agents/sf-admin-agent.md"
196
196
  ],
197
- "targets": { "claude": ".claude/agents/", "cursor": ".agents/" }
197
+ "targets": { "claude": ".claude/agents/", "cursor": ".cursor/agents/" }
198
198
  },
199
199
  {
200
200
  "paths": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scc-universal",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Complete collection of production-ready Salesforce agents, skills, hooks, and MCP configurations for Claude Code and other AI harnesses. Salesforce Claude Code (SCC) — your AI-powered Salesforce development partner.",
5
5
  "keywords": [
6
6
  "salesforce",
@@ -318,6 +318,17 @@ function installHooks(group, pluginRoot, targetName, projectRoot, moduleName, dr
318
318
  const cursorHooksPath = path.join(projectRoot, '.cursor', 'hooks.json');
319
319
  const cursorHooks = transformHooks(hooksJson);
320
320
 
321
+ // Remap adapter paths from scripts/hooks/ to .cursor/hooks/
322
+ // (adapter outputs plugin-relative paths, but install copies to .cursor/hooks/)
323
+ for (const hooks of Object.values(cursorHooks.hooks)) {
324
+ for (const hook of hooks) {
325
+ if (hook.command) {
326
+ hook.command = hook.command.replace(/\bnode scripts\/hooks\//g, 'node "$CURSOR_PROJECT_DIR"/.cursor/hooks/');
327
+ hook.command = hook.command.replace(/\bbash scripts\/hooks\//g, 'bash "$CURSOR_PROJECT_DIR"/.cursor/hooks/');
328
+ }
329
+ }
330
+ }
331
+
321
332
  if (dryRun) {
322
333
  const hookCount = Object.values(cursorHooks.hooks).reduce((sum, arr) => sum + arr.length, 0);
323
334
  console.log(` [dry-run] Would generate .cursor/hooks.json (${hookCount} hooks)`);