source dump of claude code
at main 15 lines 577 B view raw
1import type { Command } from '../../commands.js' 2import { isPolicyAllowed } from '../../services/policyLimits/index.js' 3import { isClaudeAISubscriber } from '../../utils/auth.js' 4 5export default { 6 type: 'local-jsx', 7 name: 'remote-env', 8 description: 'Configure the default remote environment for teleport sessions', 9 isEnabled: () => 10 isClaudeAISubscriber() && isPolicyAllowed('allow_remote_sessions'), 11 get isHidden() { 12 return !isClaudeAISubscriber() || !isPolicyAllowed('allow_remote_sessions') 13 }, 14 load: () => import('./remote-env.js'), 15} satisfies Command