Skip to content

Commit df9fbc2

Browse files
committed
docs(skill-nudge): document helper contracts
1 parent 18b1470 commit df9fbc2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/lib/skill-nudge.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export function isVerifySkillInstalled(dir: string, deps: SkillPresenceDeps = {}
7070
return false;
7171
}
7272

73+
/** True when a managed-section file contains an ordered TestSprite BEGIN/END pair. */
7374
function hasCompleteManagedSection(content: string): boolean {
7475
const begin = content.indexOf(MANAGED_SECTION_BEGIN);
7576
if (begin === -1) return false;
@@ -140,6 +141,7 @@ export function maybeEmitSkillNudge(ctx: SkillNudgeContext): void {
140141
}
141142
}
142143

144+
/** Interpret common env-var spellings for an enabled opt-out flag. */
143145
function isTruthyEnv(v: string | undefined): boolean {
144146
if (v === undefined) return false;
145147
const s = v.trim().toLowerCase();

0 commit comments

Comments
 (0)