Skip to content

Commit 3b4bd32

Browse files
committed
Pin all dependencies to exact versions and add gh CLI check
1 parent 3fa49d6 commit 3b4bd32

File tree

2 files changed

+46
-29
lines changed

2 files changed

+46
-29
lines changed

package.json

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -193,39 +193,39 @@
193193
"@rollup/plugin-commonjs": "28.0.6",
194194
"@socketsecurity/registry": "$@socketsecurity/registry",
195195
"@types/node": "24.6.2",
196-
"aggregate-error": "npm:@socketregistry/aggregate-error@^1.0.15",
196+
"aggregate-error": "npm:@socketregistry/aggregate-error@1.0.15",
197197
"ansi-regex": "6.1.0",
198198
"ansi-term": "0.0.2",
199199
"brace-expansion": "2.0.2",
200-
"es-define-property": "npm:@socketregistry/es-define-property@^1.0.7",
201-
"es-set-tostringtag": "npm:@socketregistry/es-set-tostringtag@^1.0.10",
202-
"function-bind": "npm:@socketregistry/function-bind@^1.0.7",
203-
"globalthis": "npm:@socketregistry/globalthis@^1.0.8",
204-
"gopd": "npm:@socketregistry/gopd@^1.0.7",
200+
"es-define-property": "npm:@socketregistry/es-define-property@1.0.7",
201+
"es-set-tostringtag": "npm:@socketregistry/es-set-tostringtag@1.0.10",
202+
"function-bind": "npm:@socketregistry/function-bind@1.0.7",
203+
"globalthis": "npm:@socketregistry/globalthis@1.0.8",
204+
"gopd": "npm:@socketregistry/gopd@1.0.7",
205205
"graceful-fs": "4.2.11",
206-
"has-property-descriptors": "npm:@socketregistry/has-property-descriptors@^1.0.7",
207-
"has-proto": "npm:@socketregistry/has-proto@^1.0.7",
208-
"has-symbols": "npm:@socketregistry/has-symbols@^1.0.7",
209-
"has-tostringtag": "npm:@socketregistry/has-tostringtag@^1.0.7",
210-
"hasown": "npm:@socketregistry/hasown@^1.0.7",
211-
"indent-string": "npm:@socketregistry/indent-string@^1.0.14",
212-
"is-core-module": "npm:@socketregistry/is-core-module@^1.0.11",
213-
"isarray": "npm:@socketregistry/isarray@^1.0.8",
206+
"has-property-descriptors": "npm:@socketregistry/has-property-descriptors@1.0.7",
207+
"has-proto": "npm:@socketregistry/has-proto@1.0.7",
208+
"has-symbols": "npm:@socketregistry/has-symbols@1.0.7",
209+
"has-tostringtag": "npm:@socketregistry/has-tostringtag@1.0.7",
210+
"hasown": "npm:@socketregistry/hasown@1.0.7",
211+
"indent-string": "npm:@socketregistry/indent-string@1.0.14",
212+
"is-core-module": "npm:@socketregistry/is-core-module@1.0.11",
213+
"isarray": "npm:@socketregistry/isarray@1.0.8",
214214
"lodash": "4.17.21",
215215
"meow": "13.2.0",
216216
"npm-package-arg": "$npm-package-arg",
217-
"packageurl-js": "npm:@socketregistry/packageurl-js@^1.3.0",
218-
"path-parse": "npm:@socketregistry/path-parse@^1.0.8",
217+
"packageurl-js": "npm:@socketregistry/packageurl-js@1.3.0",
218+
"path-parse": "npm:@socketregistry/path-parse@1.0.8",
219219
"rollup": "4.50.1",
220-
"safe-buffer": "npm:@socketregistry/safe-buffer@^1.0.9",
221-
"safer-buffer": "npm:@socketregistry/safer-buffer@^1.0.10",
220+
"safe-buffer": "npm:@socketregistry/safe-buffer@1.0.9",
221+
"safer-buffer": "npm:@socketregistry/safer-buffer@1.0.10",
222222
"semver": "$semver",
223-
"set-function-length": "npm:@socketregistry/set-function-length@^1.0.10",
224-
"shell-quote": "npm:shell-quote@^1.8.3",
225-
"side-channel": "npm:@socketregistry/side-channel@^1.0.10",
223+
"set-function-length": "npm:@socketregistry/set-function-length@1.0.10",
224+
"shell-quote": "npm:shell-quote@1.8.3",
225+
"side-channel": "npm:@socketregistry/side-channel@1.0.10",
226226
"string_decoder": "0.10.31",
227227
"tiny-colors": "$yoctocolors-cjs",
228-
"typedarray": "npm:@socketregistry/typedarray@^1.0.8",
228+
"typedarray": "npm:@socketregistry/typedarray@1.0.8",
229229
"undici": "6.21.3",
230230
"vite": "7.1.7",
231231
"xml2js": "0.6.2",

scripts/claude.mjs

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,15 +1065,21 @@ ${JSON.stringify(packageJson.devDependencies || {}, null, 2)}
10651065
Outdated packages:
10661066
${JSON.stringify(outdatedPackages, null, 2)}
10671067
1068+
IMPORTANT Socket Requirements:
1069+
- All dependencies MUST be pinned to exact versions (no ^ or ~ prefixes)
1070+
- Use pnpm add <pkg> --save-exact for all new dependencies
1071+
- GitHub CLI (gh) is required but installed separately (not via npm)
1072+
10681073
Provide:
1069-
1. Security vulnerability analysis
1070-
2. Unused dependency detection
1071-
3. Update recommendations with migration notes
1072-
4. License compatibility check
1073-
5. Bundle size impact analysis
1074-
6. Alternative package suggestions
1074+
1. Version pinning issues (identify any deps with ^ or ~ prefixes)
1075+
2. Security vulnerability analysis
1076+
3. Unused dependency detection
1077+
4. Update recommendations with migration notes (using exact versions)
1078+
5. License compatibility check
1079+
6. Bundle size impact analysis
1080+
7. Alternative package suggestions
10751081
1076-
Focus on actionable recommendations.`
1082+
Focus on actionable recommendations. Always recommend exact versions when suggesting updates.`
10771083

10781084
await runCommand(claudeCmd, prepareClaudeArgs([], opts), {
10791085
input: prompt,
@@ -1615,6 +1621,17 @@ Provide specific file edits or commands to fix this issue.`
16151621
return true
16161622
}
16171623

1624+
// Check for GitHub CLI
1625+
const ghCheck = await runCommandWithOutput('which', ['gh'])
1626+
if (ghCheck.exitCode !== 0) {
1627+
log.error('GitHub CLI (gh) is required for CI monitoring')
1628+
log.info('Install with:')
1629+
log.substep('macOS: brew install gh')
1630+
log.substep('Linux: See https://github.com/cli/cli/blob/trunk/docs/install_linux.md')
1631+
log.substep('Windows: winget install --id GitHub.cli')
1632+
return false
1633+
}
1634+
16181635
// Get current commit SHA
16191636
const shaResult = await runCommandWithOutput('git', ['rev-parse', 'HEAD'], {
16201637
cwd: rootPath

0 commit comments

Comments
 (0)