OptionalallowOptionalbaseOverride the Hub base URL — tests point this at a local mock.
OptionalcommitOptionalonPer-file progress: (repoPath, bytesSent, bytesTotal).
OptionalprivateOptionalrepoOptionalsignalCancels the upload: the in-flight request is aborted, no later step runs, and the promise rejects with the signal's reason. No request starts once cancellation is observed; a commit already submitted may have been accepted.
Required: callers choose authentication; null sends no bearer token.
Optional glob-free prefix/substring allowlist; if set, only files whose repo path includes one of these substrings are uploaded.