mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-24 16:02:55 +08:00
fix(cli): stop loading .opencode config directories
This commit is contained in:
@@ -194,10 +194,12 @@ Just some content without YAML frontmatter.
|
||||
provideTmpdirInstance(
|
||||
(dir) =>
|
||||
Effect.gen(function* () {
|
||||
// kilocode_change start - load .kilo skills without falling back to .opencode
|
||||
yield* Effect.promise(() =>
|
||||
Bun.write(
|
||||
path.join(dir, ".opencode", "skill", "manual-skill", "SKILL.md"),
|
||||
`---
|
||||
Promise.all([
|
||||
Bun.write(
|
||||
path.join(dir, ".kilo", "skill", "manual-skill", "SKILL.md"),
|
||||
`---
|
||||
name: manual-skill
|
||||
---
|
||||
|
||||
@@ -205,8 +207,18 @@ name: manual-skill
|
||||
|
||||
Instructions here.
|
||||
`,
|
||||
),
|
||||
),
|
||||
Bun.write(
|
||||
path.join(dir, ".opencode", "skill", "ignored-skill", "SKILL.md"),
|
||||
`---
|
||||
name: ignored-skill
|
||||
description: This skill must not load.
|
||||
---
|
||||
`,
|
||||
),
|
||||
]),
|
||||
)
|
||||
// kilocode_change end
|
||||
|
||||
const skill = yield* Skill.Service
|
||||
const list = discovered(yield* skill.all()) // kilocode_change
|
||||
@@ -485,16 +497,18 @@ description: A skill in the .agents/skills directory.
|
||||
# Agent Skill
|
||||
`,
|
||||
),
|
||||
// kilocode_change start
|
||||
Bun.write(
|
||||
path.join(dir, ".opencode", "skill", "opencode-skill", "SKILL.md"),
|
||||
path.join(dir, ".kilo", "skill", "opencode-skill", "SKILL.md"),
|
||||
`---
|
||||
name: opencode-skill
|
||||
description: A skill in the .opencode/skill directory.
|
||||
description: A skill in the .kilo/skill directory.
|
||||
---
|
||||
|
||||
# OpenCode Skill
|
||||
`,
|
||||
),
|
||||
// kilocode_change end
|
||||
]),
|
||||
)
|
||||
|
||||
@@ -532,26 +546,28 @@ description: A skill in the .agents/skills directory.
|
||||
# Agent Skill
|
||||
`,
|
||||
),
|
||||
// kilocode_change start
|
||||
Bun.write(
|
||||
path.join(dir, ".opencode", "skill", "agent-skill", "SKILL.md"),
|
||||
path.join(dir, ".kilo", "skill", "agent-skill", "SKILL.md"),
|
||||
`---
|
||||
name: opencode-skill
|
||||
description: A skill in the .opencode/skill directory.
|
||||
description: A skill in the .kilo/skill directory.
|
||||
---
|
||||
|
||||
# OpenCode Skill
|
||||
`,
|
||||
),
|
||||
Bun.write(
|
||||
path.join(dir, ".opencode", "skills", "agent-skill", "SKILL.md"),
|
||||
path.join(dir, ".kilo", "skills", "agent-skill", "SKILL.md"),
|
||||
`---
|
||||
name: opencode-skill
|
||||
description: A skill in the .opencode/skills directory.
|
||||
description: A skill in the .kilo/skills directory.
|
||||
---
|
||||
|
||||
# OpenCode Skill
|
||||
`,
|
||||
),
|
||||
// kilocode_change end
|
||||
]),
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user