Skip to content

Commit 1eb7091

Browse files
committed
refactor(run-cdxgen + mcp/depscore): colocate warnIfEmptyComponents + getSdk
1 parent 936415c commit 1eb7091

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/cli/src/commands/manifest/run-cdxgen.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ export async function runCdxgen(argvObj: ArgvObject): Promise<DlxSpawnResult> {
226226
* configurations we did not hard-gate (non-default lifecycle, custom
227227
* `--filter`/`--only` wiping all components, ecosystem mismatch, etc.).
228228
*/
229-
export async function warnIfEmptyComponents(
229+
async function warnIfEmptyComponents(
230230
outputPath: string,
231231
argvMutable: ArgvObject,
232232
): Promise<void> {

packages/cli/src/commands/mcp/depscore.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export function formatScore(jsonData: ArtifactData): string {
9191
// tool calls; HTTP+OAuth mode constructs one per distinct token.
9292
const sdkCache = new Map<string, SocketSdk>()
9393

94-
export async function getSdk(apiToken: string): Promise<SocketSdk> {
94+
async function getSdk(apiToken: string): Promise<SocketSdk> {
9595
const cached = sdkCache.get(apiToken)
9696
if (cached) {
9797
return cached

0 commit comments

Comments
 (0)