Something went wrong. Try again.
source dump of claude code forked from oppi.li/claude-code
Something went wrong. Try again.
931 B · 26 lines
TypeScript
at main
123456789101112131415161718192021222324252627import type { Command } from '../../commands.js'import { isPolicyAllowed } from '../../services/policyLimits/index.js'import { isEnvTruthy } from '../../utils/envUtils.js'import { isEssentialTrafficOnly } from '../../utils/privacyLevel.js'
const feedback = { aliases: ['bug'], type: 'local-jsx', name: 'feedback', description: `Submit feedback about Claude Code`, argumentHint: '[report]', isEnabled: () => !( isEnvTruthy(process.env.CLAUDE_CODE_USE_BEDROCK) || isEnvTruthy(process.env.CLAUDE_CODE_USE_VERTEX) || isEnvTruthy(process.env.CLAUDE_CODE_USE_FOUNDRY) || isEnvTruthy(process.env.DISABLE_FEEDBACK_COMMAND) || isEnvTruthy(process.env.DISABLE_BUG_COMMAND) || isEssentialTrafficOnly() || process.env.USER_TYPE === 'ant' || !isPolicyAllowed('allow_product_feedback') ), load: () => import('./feedback.js'),} satisfies Command
export default feedback