Skip to content

Commit f7a6d85

Browse files
committed
chore(deps): upgrade @socketregistry/packageurl-js to v1.3.2
Update packageurl-js dependency from 1.3.1 to 1.3.2. Also include missing utility modules from claude refactoring: - prompt-builder.mjs: Prompt building utilities wrapper - utils.mjs: Re-exports commonly used functions
1 parent 7b118fe commit f7a6d85

File tree

4 files changed

+67
-6
lines changed

4 files changed

+67
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"@npmcli/package-json": "7.0.0",
6060
"@npmcli/promise-spawn": "8.0.3",
6161
"@socketregistry/is-unicode-supported": "workspace:*",
62-
"@socketregistry/packageurl-js": "1.3.1",
62+
"@socketregistry/packageurl-js": "1.3.2",
6363
"@socketregistry/scripts": "file:scripts",
6464
"@socketsecurity/lib": "3.0.3",
6565
"@types/fs-extra": "11.0.4",

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/claude/prompt-builder.mjs

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/**
2+
* @fileoverview Prompt building utilities for Claude commands.
3+
* Wraps model-strategy's buildEnhancedPrompt for easier command use.
4+
*/
5+
6+
import {
7+
buildEnhancedPrompt as baseBuildEnhancedPrompt,
8+
getSmartContext as baseGetSmartContext,
9+
} from './model-strategy.mjs'
10+
import { runCommandWithOutput } from './command-execution.mjs'
11+
12+
/**
13+
* Build enhanced prompt with context.
14+
* Wrapper around model-strategy's buildEnhancedPrompt.
15+
*/
16+
async function buildEnhancedPrompt(template, basePrompt, options = {}) {
17+
const opts = { __proto__: null, ...options }
18+
19+
// Create bound getSmartContext that includes runCommandWithOutput
20+
const getSmartContext = async (contextOptions = {}) => {
21+
return baseGetSmartContext(contextOptions, runCommandWithOutput)
22+
}
23+
24+
return baseBuildEnhancedPrompt(template, basePrompt, opts, getSmartContext)
25+
}
26+
27+
export { buildEnhancedPrompt }

scripts/claude/utils.mjs

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/**
2+
* @fileoverview Utility functions consolidation for command modules.
3+
* Re-exports commonly used functions from specialized modules.
4+
*/
5+
6+
import { prepareClaudeArgs, runClaude, runCommand, runCommandWithOutput } from './command-execution.mjs'
7+
import { log } from './config.mjs'
8+
import { getSmartContext as baseGetSmartContext } from './model-strategy.mjs'
9+
import { executeParallel, runParallel, shouldRunParallel } from './parallel-execution.mjs'
10+
import { ensureClaudeInGitignore } from './project-sync.mjs'
11+
import { printFooter, printHeader } from './utils/formatting.mjs'
12+
13+
/**
14+
* Wrapper for getSmartContext that provides runCommandWithOutput.
15+
*/
16+
async function getSmartContext(options = {}) {
17+
const opts = { __proto__: null, ...options }
18+
return baseGetSmartContext(opts, runCommandWithOutput)
19+
}
20+
21+
export {
22+
ensureClaudeInGitignore,
23+
executeParallel,
24+
getSmartContext,
25+
log,
26+
prepareClaudeArgs,
27+
printFooter,
28+
printHeader,
29+
runClaude,
30+
runCommand,
31+
runCommandWithOutput,
32+
runParallel,
33+
shouldRunParallel,
34+
}

0 commit comments

Comments
 (0)