- README.MD: add original-source-code and nano-claude-code sections, update overview table (4 subprojects), add v3.0 news entry, expand comparison table with memory/multi-agent/skills dimensions - nano-claude-code v3.0: multi-agent package (multi_agent/), memory package (memory/), skill package (skill/) with built-in /commit and /review skills, context compression (compaction.py), tool registry plugin system, diff view, 17 slash commands, 18 built-in tools, 101 tests (~5000 lines total) - original-source-code/src: add raw TypeScript source tree (1884 files) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
27 lines
604 B
TypeScript
27 lines
604 B
TypeScript
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
|