index.ts
1 import type { Command } from '../../commands.js' 2 import { getFeatureValue_CACHED_MAY_BE_STALE } from '../../services/analytics/growthbook.js' 3 import { isPolicyAllowed } from '../../services/policyLimits/index.js' 4 5 const web = { 6 type: 'local-jsx', 7 name: 'web-setup', 8 description: 9 'Setup Claude Code on the web (requires connecting your GitHub account)', 10 availability: ['claude-ai'], 11 isEnabled: () => 12 getFeatureValue_CACHED_MAY_BE_STALE('tengu_cobalt_lantern', false) && 13 isPolicyAllowed('allow_remote_sessions'), 14 get isHidden() { 15 return !isPolicyAllowed('allow_remote_sessions') 16 }, 17 load: () => import('./remote-setup.js'), 18 } satisfies Command 19 20 export default web