test(3663): add export check for stageSkillsForRuntimeAsSkills

RED-1/GREEN-1: export assertion + stub function + STAGED_DIRS export.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Tom Boucher
2026-05-17 00:12:36 -04:00
parent 835dd6ab44
commit 11e74f9a25
2 changed files with 14 additions and 0 deletions

View File

@@ -373,6 +373,10 @@ function stageAgentsForProfile(srcAgentsDir, resolvedProfile) {
return stageDir;
}
function stageSkillsForRuntimeAsSkills(srcCommandsDir, resolvedProfile, converter, prefix) {
// stub
}
// ---------------------------------------------------------------------------
// Profile marker persistence
// ---------------------------------------------------------------------------
@@ -560,6 +564,8 @@ module.exports = {
mostRestrictiveProfile,
stageSkillsForProfile,
stageAgentsForProfile,
stageSkillsForRuntimeAsSkills,
STAGED_DIRS,
readActiveProfile,
writeActiveProfile,
// Shared internals

View File

@@ -12,9 +12,11 @@ const os = require('os');
const {
stageSkillsForProfile,
stageAgentsForProfile,
stageSkillsForRuntimeAsSkills,
cleanupStagedSkills,
resolveProfile,
loadSkillsManifest,
STAGED_DIRS,
} = require('../get-shit-done/bin/lib/install-profiles.cjs');
const REAL_COMMANDS_DIR = path.join(__dirname, '..', 'commands', 'gsd');
@@ -36,6 +38,12 @@ function createFixtureAgentsDir() {
return tmp;
}
describe('stageSkillsForRuntimeAsSkills', () => {
test('is exported as a function', () => {
assert.strictEqual(typeof stageSkillsForRuntimeAsSkills, 'function');
});
});
describe('stageSkillsForProfile', () => {
test('full profile (skills === "*") returns srcDir unchanged', () => {
const src = createFixtureSkillsDir();