Files
garrytan__gstack/bin/gstack-migrate-claude-code
Garry Tan bb2cc54140 feat: route outside reviews by harness and migrate wrapper installs
Use Claude Code from Codex and Codex from other supported hosts, with shared invocation rendering, positive gate validation and per-phase provenance. Rename /claude to /claude-code, repair managed shared and copied installations safely, and generate native Kiro skills. Add installed-workflow, failure-injection and live cross-harness regression coverage.
2026-09-08 05:31:55 +00:00

21 lines
814 B
TypeScript
Executable File

#!/usr/bin/env bun
// Repair existing installs only; never install a new host or invoke an AI CLI.
import * as path from 'node:path';
import { migrateClaudeCodeSkills } from '../lib/claude-code-migration';
const value = (flag: string) => {
const index = process.argv.indexOf(flag);
return index < 0 ? undefined : process.argv[index + 1];
};
try {
const result = migrateClaudeCodeSkills({
installDir: value('--install-dir') ?? process.env.GSTACK_INSTALL_DIR ?? path.resolve(import.meta.dir, '..'),
skillsDir: value('--skills-dir'),
copy: process.env.GSTACK_RENAME_COPY === '1',
});
process.exitCode = result.pending.length ? 1 : 0;
} catch (error) {
process.stderr.write(`Claude skill rename pending: ${error instanceof Error ? error.message : String(error)}\n`);
process.exitCode = 1;
}