fix(#743): resolve Kimi branch lint failures

This commit is contained in:
Colin
2026-06-08 23:07:48 -04:00
parent bf8813b7a0
commit 560b59240f
2 changed files with 2 additions and 5 deletions

View File

@@ -2311,10 +2311,6 @@ function convertClaudeCommandToClaudeSkill(content, skillName, runtime = null, c
return `${fm}\n${normalizedBody}`;
}
function escapeRegExp(value) {
return String(value).replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
}
function normalizeKimiSkillName(skillName) {
let text = String(skillName || '').trim().toLowerCase();
if (text.startsWith('/')) text = text.slice(1);

View File

@@ -24,6 +24,7 @@ const path = require('path');
const { resolveRuntimeArtifactLayout } = require('../gsd-core/bin/lib/runtime-artifact-layout.cjs');
const installProfiles = require('../gsd-core/bin/lib/install-profiles.cjs');
const { cleanup } = require('./helpers.cjs');
const FAKE_DIR = '/tmp/fake-config-dir';
@@ -551,7 +552,7 @@ describe('stage — skills kind (kimi global)', () => {
} finally {
fs.writeFileSync = originalWriteFileSync;
for (const dir of added) {
fs.rmSync(dir, { recursive: true, force: true });
cleanup(dir);
installProfiles.STAGED_DIRS.delete(dir);
}
}