feat: migrate repo releases to manual release-please (#293)

This commit is contained in:
Trevin Chow
2026-03-17 17:58:13 -07:00
committed by GitHub
parent 74fb71731a
commit f47f829d81
44 changed files with 1967 additions and 801 deletions

View File

@@ -56,7 +56,7 @@ export function convertClaudeToKiro(
// Convert MCP servers (stdio and remote)
const mcpServers = convertMcpServers(plugin.mcpServers)
// Build steering files from CLAUDE.md
// Build steering files from repo instruction files, preferring AGENTS.md.
const steeringFiles = buildSteeringFiles(plugin, agentNames)
// Warn about hooks
@@ -196,12 +196,12 @@ function convertMcpServers(
}
function buildSteeringFiles(plugin: ClaudePlugin, knownAgentNames: string[]): KiroSteeringFile[] {
const claudeMdPath = path.join(plugin.root, "CLAUDE.md")
if (!existsSync(claudeMdPath)) return []
const instructionPath = resolveInstructionPath(plugin.root)
if (!instructionPath) return []
let content: string
try {
content = readFileSync(claudeMdPath, "utf8")
content = readFileSync(instructionPath, "utf8")
} catch {
return []
}
@@ -212,6 +212,16 @@ function buildSteeringFiles(plugin: ClaudePlugin, knownAgentNames: string[]): Ki
return [{ name: "compound-engineering", content: transformed }]
}
function resolveInstructionPath(root: string): string | null {
const agentsPath = path.join(root, "AGENTS.md")
if (existsSync(agentsPath)) return agentsPath
const claudePath = path.join(root, "CLAUDE.md")
if (existsSync(claudePath)) return claudePath
return null
}
function normalizeName(value: string): string {
const trimmed = value.trim()
if (!trimmed) return "item"