Finder-launched terminals now inherit a login PATH so tools like ollama resolve, destructive SFTP/editor actions require confirmation, and terminal search plus window dragging work again. SSH forwards and RDP sessions keep listeners and survive reconnect without FastPath crashes. Co-authored-by: Cursor <cursoragent@cursor.com>
33 lines
754 B
TypeScript
33 lines
754 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',
|
|
email: '',
|
|
licenseKey: 'LIC-TEST',
|
|
expiresAt: null,
|
|
maxDevices: 5,
|
|
planType: 'perpetual',
|
|
features: ['*'],
|
|
loaded: true,
|
|
wall: { open: false },
|
|
})
|
|
}
|
|
|
|
export function resetEntitlementForTests(): void {
|
|
useEntitlementStore.setState({
|
|
plan: 'free',
|
|
deviceId: 'test-device',
|
|
email: '',
|
|
licenseKey: '',
|
|
expiresAt: null,
|
|
maxDevices: null,
|
|
planType: null,
|
|
features: [],
|
|
loaded: true,
|
|
wall: { open: false },
|
|
})
|
|
}
|