fix: add Kilo path replacement in copyFlattenedCommands (#1710)
Fixes #1709 copyFlattenedCommands replaced ~/.opencode/ paths but had no equivalent ~/.kilo/ replacement. Adds kiloDirRegex for symmetric path handling between the OpenCode and Kilo install pipelines.
This commit is contained in:
@@ -3398,10 +3398,12 @@ function copyFlattenedCommands(srcDir, destDir, prefix, pathPrefix, runtime) {
|
||||
const globalClaudeHomeRegex = /\$HOME\/\.claude\//g;
|
||||
const localClaudeRegex = /\.\/\.claude\//g;
|
||||
const opencodeDirRegex = /~\/\.opencode\//g;
|
||||
const kiloDirRegex = /~\/\.kilo\//g;
|
||||
content = content.replace(globalClaudeRegex, pathPrefix);
|
||||
content = content.replace(globalClaudeHomeRegex, pathPrefix);
|
||||
content = content.replace(localClaudeRegex, `./${getDirName(runtime)}/`);
|
||||
content = content.replace(opencodeDirRegex, pathPrefix);
|
||||
content = content.replace(kiloDirRegex, pathPrefix);
|
||||
content = processAttribution(content, getCommitAttribution(runtime));
|
||||
content = runtime === 'kilo'
|
||||
? convertClaudeToKiloFrontmatter(content)
|
||||
|
||||
Reference in New Issue
Block a user