mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-18 14:25:51 +00:00
19 lines
590 B
TypeScript
19 lines
590 B
TypeScript
import { describe, expect, test } from 'bun:test'
|
|
|
|
import plan from './index.js'
|
|
|
|
describe('plan bridge invocation safety', () => {
|
|
test('allows headless plan mode operations over Remote Control', () => {
|
|
expect(plan.getBridgeInvocationError?.('')).toBeUndefined()
|
|
expect(
|
|
plan.getBridgeInvocationError?.('write a migration plan'),
|
|
).toBeUndefined()
|
|
})
|
|
|
|
test('blocks /plan open over Remote Control', () => {
|
|
expect(plan.getBridgeInvocationError?.('open')).toBe(
|
|
"Opening the local editor via /plan open isn't available over Remote Control.",
|
|
)
|
|
})
|
|
})
|