mirror of
https://github.com/codeaashu/claude-code.git
synced 2026-04-09 06:38:46 +03:00
claude-code
This commit is contained in:
510
src/commands/bridge/bridge.tsx
Normal file
510
src/commands/bridge/bridge.tsx
Normal file
File diff suppressed because one or more lines are too long
28
src/commands/bridge/index.ts
Normal file
28
src/commands/bridge/index.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
import { feature } from 'bun:bundle'
|
||||
import { isBridgeEnabled } from '../../bridge/bridgeEnabled.js'
|
||||
import type { Command } from '../../commands.js'
|
||||
|
||||
function isEnabled(): boolean {
|
||||
if (!feature('BRIDGE_MODE')) {
|
||||
return false
|
||||
}
|
||||
return isBridgeEnabled()
|
||||
}
|
||||
|
||||
const bridge = {
|
||||
type: 'local-jsx',
|
||||
name: 'remote-control',
|
||||
aliases: ['rc'],
|
||||
description: 'Connect this terminal for remote-control sessions',
|
||||
argumentHint: '[name]',
|
||||
isEnabled,
|
||||
get isHidden() {
|
||||
return !isEnabled()
|
||||
},
|
||||
immediate: true,
|
||||
load: () => import('./bridge.js'),
|
||||
} satisfies Command
|
||||
|
||||
export default bridge
|
||||
|
||||
|
||||
Reference in New Issue
Block a user