mirror of
http://10.0.2.1:3031/sauer/claude-code.git
synced 2026-06-30 20:46:58 +10:00
16 lines
577 B
TypeScript
16 lines
577 B
TypeScript
|
|
import type { Command } from '../../commands.js'
|
||
|
|
import { isPolicyAllowed } from '../../services/policyLimits/index.js'
|
||
|
|
import { isClaudeAISubscriber } from '../../utils/auth.js'
|
||
|
|
|
||
|
|
export default {
|
||
|
|
type: 'local-jsx',
|
||
|
|
name: 'remote-env',
|
||
|
|
description: 'Configure the default remote environment for teleport sessions',
|
||
|
|
isEnabled: () =>
|
||
|
|
isClaudeAISubscriber() && isPolicyAllowed('allow_remote_sessions'),
|
||
|
|
get isHidden() {
|
||
|
|
return !isClaudeAISubscriber() || !isPolicyAllowed('allow_remote_sessions')
|
||
|
|
},
|
||
|
|
load: () => import('./remote-env.js'),
|
||
|
|
} satisfies Command
|