scc-universal 1.1.0 → 1.2.0
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/.claude-plugin/plugin.json +2 -2
- package/.cursor/hooks.json +105 -64
- package/.cursor/skills/configure-scc/SKILL.md +20 -20
- package/.cursor/skills/mcp-server-patterns/SKILL.md +1 -1
- package/.cursor/skills/sf-harness-audit/SKILL.md +6 -6
- package/.cursor/skills/sf-quickstart/SKILL.md +7 -7
- package/.cursor-plugin/plugin.json +2 -2
- package/README.md +51 -37
- package/docs/ARCHITECTURE.md +4 -4
- package/docs/authoring-guide.md +2 -2
- package/docs/workflow-examples.md +38 -38
- package/hooks/hooks.json +56 -71
- package/manifests/install-modules.json +5 -3
- package/package.json +4 -3
- package/schemas/hooks.schema.json +83 -72
- package/schemas/plugin.schema.json +59 -21
- package/scripts/cli/install-apply.js +9 -9
- package/scripts/hooks/doc-file-warning.js +3 -1
- package/scripts/hooks/governor-check.js +3 -2
- package/scripts/hooks/post-bash-build-complete.js +3 -2
- package/scripts/hooks/post-bash-pr-created.js +4 -2
- package/scripts/hooks/post-edit-console-warn.js +3 -1
- package/scripts/hooks/post-edit-format.js +3 -2
- package/scripts/hooks/post-edit-typecheck.js +3 -2
- package/scripts/hooks/post-write.js +3 -1
- package/scripts/hooks/pre-bash-git-push-reminder.js +3 -2
- package/scripts/hooks/pre-bash-tmux-reminder.js +3 -1
- package/scripts/hooks/pre-tool-use.js +3 -1
- package/scripts/hooks/quality-gate.js +3 -2
- package/scripts/hooks/sfdx-scanner-check.js +3 -1
- package/scripts/hooks/sfdx-validate.js +3 -1
- package/scripts/lib/hook-input.js +105 -0
- package/scripts/lib/hooks-adapter.js +265 -0
- package/scripts/lib/install-executor.js +153 -1
- package/scripts/scc.js +14 -14
- package/skills/configure-scc/SKILL.md +20 -20
- package/skills/mcp-server-patterns/SKILL.md +1 -1
- package/skills/sf-harness-audit/SKILL.md +6 -6
- package/skills/sf-quickstart/SKILL.md +7 -7
|
@@ -76,7 +76,7 @@ Use **Zod** (or the SDK's preferred schema format) for input validation.
|
|
|
76
76
|
|
|
77
77
|
### Official @salesforce/mcp Server
|
|
78
78
|
|
|
79
|
-
MCP config is auto-installed by `npx scc install` (`.mcp.json` for Claude Code, `.cursor/mcp.json` for Cursor). The official `@salesforce/mcp` server provides these toolsets:
|
|
79
|
+
MCP config is auto-installed by `npx scc-universal install` (`.mcp.json` for Claude Code, `.cursor/mcp.json` for Cursor). The official `@salesforce/mcp` server provides these toolsets:
|
|
80
80
|
|
|
81
81
|
| Toolset | What It Does |
|
|
82
82
|
|---------|-------------|
|
|
@@ -32,7 +32,7 @@ ls -la .claude/agents/ 2>/dev/null
|
|
|
32
32
|
ls -la .claude/skills/ 2>/dev/null
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
If using SCC CLI: `npx scc status`
|
|
35
|
+
If using SCC CLI: `npx scc-universal status`
|
|
36
36
|
|
|
37
37
|
### Step 2 — Score Each Category
|
|
38
38
|
|
|
@@ -113,7 +113,7 @@ SCC Harness Audit
|
|
|
113
113
|
|
|
114
114
|
Top Recommendations:
|
|
115
115
|
1. [+1.0] Enable strict hook profile: export SCC_HOOK_PROFILE=strict
|
|
116
|
-
2. [+0.5] Install all modules: npx scc install all
|
|
116
|
+
2. [+0.5] Install all modules: npx scc-universal install all
|
|
117
117
|
```
|
|
118
118
|
|
|
119
119
|
### Step 4 — Actionable Recommendations
|
|
@@ -122,11 +122,11 @@ For each gap, provide a specific command to fix it:
|
|
|
122
122
|
|
|
123
123
|
| Gap | Fix Command |
|
|
124
124
|
|-----|-------------|
|
|
125
|
-
| Missing hooks | `npx scc repair` |
|
|
126
|
-
| Missing domain rules | `npx scc install all` (or target: `npx scc install apex`, `npx scc install lwc`) |
|
|
127
|
-
| Low skill count | `npx scc install all` |
|
|
125
|
+
| Missing hooks | `npx scc-universal repair` |
|
|
126
|
+
| Missing domain rules | `npx scc-universal install all` (or target: `npx scc-universal install apex`, `npx scc-universal install lwc`) |
|
|
127
|
+
| Low skill count | `npx scc-universal install all` |
|
|
128
128
|
| Wrong hook profile | `export SCC_HOOK_PROFILE=strict` |
|
|
129
|
-
| Drifted files | `npx scc doctor` then `npx scc repair` |
|
|
129
|
+
| Drifted files | `npx scc-universal doctor` then `npx scc-universal repair` |
|
|
130
130
|
|
|
131
131
|
## Examples
|
|
132
132
|
|
|
@@ -82,9 +82,9 @@ Based on detection results, recommend the best SCC profile:
|
|
|
82
82
|
|
|
83
83
|
| Detected Stack | Recommended Profile | Command |
|
|
84
84
|
|---------------|--------------------|---------|
|
|
85
|
-
| Apex + LWC + Flows + triggers | `all` | `npx scc install all` |
|
|
86
|
-
| Primarily Apex (classes + triggers) | `apex` | `npx scc install apex` |
|
|
87
|
-
| Primarily LWC with some Apex | `lwc` | `npx scc install lwc` |
|
|
85
|
+
| Apex + LWC + Flows + triggers | `all` | `npx scc-universal install all` |
|
|
86
|
+
| Primarily Apex (classes + triggers) | `apex` | `npx scc-universal install apex` |
|
|
87
|
+
| Primarily LWC with some Apex | `lwc` | `npx scc-universal install lwc` |
|
|
88
88
|
|
|
89
89
|
**Profile details:**
|
|
90
90
|
|
|
@@ -114,16 +114,16 @@ Check that SCC is properly configured:
|
|
|
114
114
|
|
|
115
115
|
```bash
|
|
116
116
|
# Check hooks are loaded
|
|
117
|
-
test -f .claude/hooks/
|
|
117
|
+
test -f .claude/settings.json && grep -q '"hooks"' .claude/settings.json 2>/dev/null && echo "Hooks: ACTIVE (in settings.json)" || echo "Hooks: MISSING (run npx scc-universal install)"
|
|
118
118
|
|
|
119
119
|
# Check hook profile
|
|
120
120
|
echo "Hook Profile: ${SCC_HOOK_PROFILE:-standard (default)}"
|
|
121
121
|
|
|
122
122
|
# Check for governor-check hook
|
|
123
|
-
grep -q "governor-check" .claude/
|
|
123
|
+
grep -q "governor-check" .claude/settings.json 2>/dev/null && echo "Governor Check: ACTIVE" || echo "Governor Check: MISSING"
|
|
124
124
|
|
|
125
125
|
# Check for quality-gate hook
|
|
126
|
-
grep -q "quality-gate" .claude/
|
|
126
|
+
grep -q "quality-gate" .claude/settings.json 2>/dev/null && echo "Quality Gate: ACTIVE" || echo "Quality Gate: MISSING"
|
|
127
127
|
```
|
|
128
128
|
|
|
129
129
|
### Step 6 — Report
|
|
@@ -146,7 +146,7 @@ Tech Stack Detected:
|
|
|
146
146
|
Custom Objects: 15
|
|
147
147
|
|
|
148
148
|
Recommended Profile: all
|
|
149
|
-
-> npx scc install all
|
|
149
|
+
-> npx scc-universal install all
|
|
150
150
|
|
|
151
151
|
SCC Status:
|
|
152
152
|
Hooks: ACTIVE (standard profile)
|