fix: stabilize auth identity, record operations, and workflow diagnostics
This commit is contained in:
1 parent
c74fdda7da
commit
7ec369f77e
36 files changed
+1021
-337
No files matched your search
@@ -6,6 +6,13 @@ import { renderScopedHelp } from "./help.js";
|
||||
|
||||
export const DEFAULT_OUTPUT_BYTES_LIMIT = 200_000;
|
||||
|
||||
/** Await the write callback so a slow terminal or pipe applies backpressure. */
|
||||
export function writeStdoutChunk(chunk: string): Promise<void> {
|
||||
return new Promise((resolve, reject) => {
|
||||
process.stdout.write(chunk, error => error ? reject(error) : resolve());
|
||||
});
|
||||
}
|
||||
|
||||
export function redactSensitiveText(value: string): string {
|
||||
return value
|
||||
.replace(/([?&](?:accessToken|token|returnToken|security-token|x-amz-security-token|signature|x-amz-signature|ossaccesskeyid|x-amz-credential)=)[^&\s"']+/gi, "$1<redacted>")
|
||||
|
||||
Reference in new issue
Block a user