/ commands / remote-env / index.ts
index.ts
 1  import type { Command } from '../../commands.js'
 2  import { isPolicyAllowed } from '../../services/policyLimits/index.js'
 3  import { isClaudeAISubscriber } from '../../utils/auth.js'
 4  
 5  export 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