Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
import { describe, expect, it } from 'vitest';
import {
createWindowBackdropMaterialArgument,
readWindowBackdropMaterialFromArgv,
} from '../windowBackdrop';
describe('window backdrop material renderer argument', () => {
it('round-trips every supported material', () => {
for (const material of ['acrylic', 'mica', 'tabbed', 'none'] as const) {
expect(
readWindowBackdropMaterialFromArgv([
'--unrelated=value',
createWindowBackdropMaterialArgument(material),
]),
).toBe(material);
}
});
it('falls back to none when the argument is absent or invalid', () => {
expect(readWindowBackdropMaterialFromArgv([])).toBe('none');
expect(
readWindowBackdropMaterialFromArgv(['--cindy-window-backdrop-material=glass']),
).toBe('none');
});
it('prefers the BrowserWindow-injected trailing value', () => {
expect(
readWindowBackdropMaterialFromArgv([
'--cindy-window-backdrop-material=mica',
'--cindy-window-backdrop-material=acrylic',
]),
).toBe('acrylic');
});
});