mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-25 17:45:50 +00:00
feat(remote-control): 优化 Web 展示、状态同步与桥接控制流程 (#288)
Co-authored-by: chengzifeng <chengzifeng@meituan.com>
This commit is contained in:
17
src/__tests__/commandsBridgeSafety.test.ts
Normal file
17
src/__tests__/commandsBridgeSafety.test.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { describe, expect, test } from 'bun:test'
|
||||
|
||||
import { isBridgeSafeCommand } from '../commands.js'
|
||||
import clear from '../commands/clear/index.js'
|
||||
import plan from '../commands/plan/index.js'
|
||||
import proactive from '../commands/proactive.js'
|
||||
|
||||
describe('isBridgeSafeCommand', () => {
|
||||
test('allows bridge-safe local-jsx commands', () => {
|
||||
expect(isBridgeSafeCommand(plan)).toBe(true)
|
||||
expect(isBridgeSafeCommand(proactive)).toBe(true)
|
||||
})
|
||||
|
||||
test('continues allowing explicit local bridge-safe commands', () => {
|
||||
expect(isBridgeSafeCommand(clear)).toBe(true)
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user