@proagentstore/cli 0.4.119 → 0.4.120
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -55,8 +55,14 @@ const PAGINATION_NAME = /^(next|previous|prev|more|load more|show more|see more|
|
|
|
55
55
|
const STEP_NAME = /^(next|continue|back|previous|add( another)?|upload|attach|browse|choose( a)? file|select( a)? file|remove|edit|expand|collapse|show more)\b/i;
|
|
56
56
|
/** A tick that is a legal or privacy agreement: the owner's call, not the CLI's. */
|
|
57
57
|
const CONSENT_NAME = /\b(agree|consent|terms|privacy|acknowledge|certify|accept|declaration|gdpr)\b/i;
|
|
58
|
-
/**
|
|
59
|
-
|
|
58
|
+
/**
|
|
59
|
+
* A field that is a credential: a sign-in, never an application answer. It includes the box an emailed or texted
|
|
60
|
+
* one-time code goes into (#1014) — "Enter the 6-digit code we emailed you", "Sign-in code" — which has no password
|
|
61
|
+
* field beside it, so the page check never sees a sign-in: the CLI is stopped at the field and the owner takes the
|
|
62
|
+
* exact session over (#1013). The Runner holds no mailbox access and never reads, asks for or types a code itself.
|
|
63
|
+
* Ordinary "code" answers (a postcode, a promo or referral code) are not credentials.
|
|
64
|
+
*/
|
|
65
|
+
export const CREDENTIAL_NAME = /password|passcode|one[- ]?time|\botp\b|2fa|two[- ]factor|\b(?:verification|security|sign[- ]?in|log[- ]?in|login|access|authentication|confirmation) code\b|\b\d[- ]?digit code\b|\bcode (?:that )?we (?:sent|emailed|texted)\b|\bcode (?:sent|emailed|texted) to\b/i;
|
|
60
66
|
/** Keys that move between fields without entering or activating anything. */
|
|
61
67
|
const SAFE_KEYS = /^(Tab|Shift\+Tab|Arrow(Up|Down|Left|Right)|Escape|Home|End|PageUp|PageDown)$/;
|
|
62
68
|
/**
|