mirror of
https://github.com/callstack/agent-device.git
synced 2026-09-14 20:06:34 +08:00
af6f12e391
* chore: adopt shared oxlint config * fix: preserve project lint boundaries * fix: remove redundant oxlint config
22 lines
685 B
TypeScript
22 lines
685 B
TypeScript
// Payload value vocabulary shared by the validation generators (#1781 B2).
|
|
//
|
|
// Benign, occasionally hostile values used for CLI positionals/flag values and Maestro scalars.
|
|
// No leading '-': a dash token would be read as a flag and the case would die in the token scan,
|
|
// which is the classic targets' job — these generators exist to reach past it.
|
|
|
|
export const SAFE_VALUES = [
|
|
'com.example.app',
|
|
'text=Login',
|
|
'@e1',
|
|
'hello world',
|
|
'123',
|
|
'Ünïcøde',
|
|
'😀 emoji',
|
|
'say "hi"',
|
|
String.raw`a\b`,
|
|
'',
|
|
] as const;
|
|
|
|
/** The accept expectation, shared so a valid case reads the same in both generators. */
|
|
export const ACCEPT = { outcome: 'accept' } as const;
|