mirror of
https://github.com/garrytan/gstack.git
synced 2026-09-14 18:41:42 +08:00
bb2cc54140
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.
21 lines
814 B
TypeScript
Executable File
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;
|
|
}
|