Skip to content

Commit 660d519

Browse files
nickwesselmanclaude
andcommitted
Add JSDoc to terminalSupportsHyperlinks and restore missing JSDoc on terminalSupportsPrompting
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e655b39 commit 660d519

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

packages/cli-kit/src/public/node/system.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,14 +348,19 @@ export async function sleep(seconds: number): Promise<void> {
348348
}
349349

350350
/**
351-
* Check if the standard input and output streams support prompting.
351+
* Check if the terminal supports OSC 8 hyperlinks.
352352
*
353-
* @returns True if the standard input and output streams support prompting.
353+
* @returns True if the terminal supports hyperlinks.
354354
*/
355355
export function terminalSupportsHyperlinks(): boolean {
356356
return supportsHyperlinks.stdout
357357
}
358358

359+
/**
360+
* Check if the standard input and output streams support prompting.
361+
*
362+
* @returns True if the standard input and output streams support prompting.
363+
*/
359364
export function terminalSupportsPrompting(): boolean {
360365
if (isTruthy(process.env.CI)) {
361366
return false

0 commit comments

Comments
 (0)