fix(#743): resolve Kimi branch lint failures
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user