style: satisfy lint on the permission-line diff

Two overlong lines wrap (fixture permissionSelectOf signature, apply.ts
type-import list) and three test-side unnecessary assertions drop
(eslint --fix).
This commit is contained in:
imccyu
2026-07-29 00:00:56 +08:00
parent db0292ffdb
commit 8c0006a872
5 changed files with 8 additions and 5 deletions

View File

@@ -310,7 +310,9 @@ const PERMISSION_PRESETS: Record<string, { sandbox: string; approval: string; de
}
/** Host permissions-unit parallel: fold the three knob events, derive the select over the fixture defaults. */
function permissionSelectOf(log: readonly SessionEvent[]): { options: { value: string; name: string; description?: string }[]; currentValue: string } {
function permissionSelectOf(
log: readonly SessionEvent[],
): { options: { value: string; name: string; description?: string }[]; currentValue: string } {
let preset: string | null = null
let sandbox = 'workspace-write'
let approval = 'ask'