Skip to content

Commit 791bd03

Browse files
committed
fix installer offline fallback and remove codex/gemini skills
1 parent 8252b67 commit 791bd03

4 files changed

Lines changed: 14 additions & 605 deletions

File tree

bin/cli.js

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,17 +1006,20 @@ async function installSelected(picks, tag, config, installDir, force, dryRun) {
10061006
try {
10071007
let repoRoot = repoRootFromHere();
10081008
if (needRepo || needWrapper) {
1009-
if (!tag) throw new Error("No tag available to download");
1010-
const archive = path.join(tmp, "src.tgz");
1011-
const url = `https://codeload.github.com/${REPO.owner}/${REPO.name}/tar.gz/refs/tags/${encodeURIComponent(
1012-
tag
1013-
)}`;
1014-
process.stdout.write(`Downloading ${REPO.owner}/${REPO.name}@${tag}...\n`);
1015-
await downloadToFile(url, archive);
1016-
process.stdout.write("Extracting...\n");
1017-
const extracted = path.join(tmp, "src");
1018-
await extractTarGz(archive, extracted);
1019-
repoRoot = extracted;
1009+
if (tag) {
1010+
const archive = path.join(tmp, "src.tgz");
1011+
const url = `https://codeload.github.com/${REPO.owner}/${REPO.name}/tar.gz/refs/tags/${encodeURIComponent(
1012+
tag
1013+
)}`;
1014+
process.stdout.write(`Downloading ${REPO.owner}/${REPO.name}@${tag}...\n`);
1015+
await downloadToFile(url, archive);
1016+
process.stdout.write("Extracting...\n");
1017+
const extracted = path.join(tmp, "src");
1018+
await extractTarGz(archive, extracted);
1019+
repoRoot = extracted;
1020+
} else {
1021+
process.stdout.write("Offline mode: installing from local package contents.\n");
1022+
}
10201023
}
10211024

10221025
await fs.promises.mkdir(installDir, { recursive: true });

skills/codex/SKILL.md

Lines changed: 0 additions & 334 deletions
This file was deleted.

0 commit comments

Comments
 (0)