Skip to content

Commit d180d26

Browse files
committed
chore(cli): drop unused NPX import + silence false-positive npx hook
- with-subcommands-help.mts: NPX import became dead after the per-app bucket-map refactor (commit 277737e). Remove it so the type checker is clean again. - cmd-npx.mts: add the canonical `// socket-hook: allow npx` marker on the literal description string so the pre-commit security scanner stops flagging the command name.
1 parent 3966a46 commit d180d26

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/cli/src/commands/npx/cmd-npx.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { defineHandoffCommand } from '../../utils/cli/define-handoff.mts'
1010

1111
export const cmdNpx = defineHandoffCommand({
1212
name: NPX,
13-
description: 'Run npx with Socket Firewall security',
13+
description: 'Run npx with Socket Firewall security', // socket-hook: allow npx
1414
spawnMode: 'auto',
1515
examples: ['cowsay', 'cowsay@1.6.0 hello'],
1616
showApiRequirements: true,

packages/cli/src/utils/cli/with-subcommands-help.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import {
3030
FLAG_JSON,
3131
FLAG_MARKDOWN,
3232
} from '../../constants/cli.mts'
33-
import { NPM, NPX } from '../../constants/agents.mts'
33+
import { NPM } from '../../constants/agents.mts'
3434
import { API_V0_URL } from '../../constants/socket.mts'
3535
import { getFlagListOutput, getHelpListOutput } from '../output/formatting.mts'
3636
import { socketPackageLink } from '../terminal/link.mts'

0 commit comments

Comments
 (0)