Class: CliUserHelper
Defined in: src/commands/cli_user_helper.ts:11
Shared CLI helper for resolving a --user-email value to a user record.
Keeps the “verify the user exists, else exit” behaviour in one place so the
chat/run session userId and the jobs creator attribution stay consistent with
each other and with the web client (which resolves the same user record).
Constructors
Constructor
new CliUserHelper():
CliUserHelper
Returns
CliUserHelper
Methods
ensureDefaultUser()
staticensureDefaultUser():Promise<void>
Defined in: src/commands/cli_user_helper.ts:17
Ensure the seeded default user exists in the shared store, creating it on
first run so the default --user-email resolves out of the box (issue #261).
Logs only when it actually creates the user, so repeat launches stay quiet.
Returns
Promise<void>
requireUserByEmail()
staticrequireUserByEmail(userEmail):UserRecord
Defined in: src/commands/cli_user_helper.ts:31
Resolve an email to its user record. Prints an actionable error and exits the process with code 1 when no such user exists in the store.
Parameters
userEmail
string