新增 entitlement/license IPC 与 Waffo 一次性结账服务骨架,挂载 AI/转发/代理/串口/广播/批量导入导出门禁;批量执行改为结果矩阵并复用连接池,SFTP 工具栏图标化并去掉已连接条,同时完善跨平台本地终端与窗口配置。 Co-authored-by: Cursor <cursoragent@cursor.com>
25 lines
588 B
TypeScript
25 lines
588 B
TypeScript
import { useEntitlementStore } from '../../src/stores/entitlementStore'
|
|
|
|
/** Enable Pro features for acceptance tests that exercise gated flows. */
|
|
export function unlockProForTests(): void {
|
|
useEntitlementStore.setState({
|
|
plan: 'pro',
|
|
deviceId: 'test-device',
|
|
expiresAt: null,
|
|
features: ['*'],
|
|
loaded: true,
|
|
wall: { open: false },
|
|
})
|
|
}
|
|
|
|
export function resetEntitlementForTests(): void {
|
|
useEntitlementStore.setState({
|
|
plan: 'free',
|
|
deviceId: 'test-device',
|
|
expiresAt: null,
|
|
features: [],
|
|
loaded: true,
|
|
wall: { open: false },
|
|
})
|
|
}
|