codexapp 0.1.35 → 0.1.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.html
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>Codex Web Local</title>
|
|
7
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
7
|
+
<script type="module" crossorigin src="/assets/index-DYCVbzKq.js"></script>
|
|
8
|
+
<link rel="stylesheet" crossorigin href="/assets/index-B09aWGYu.css">
|
|
9
9
|
</head>
|
|
10
10
|
<body class="bg-slate-950">
|
|
11
11
|
<div id="app"></div>
|
package/dist-cli/index.js
CHANGED
|
@@ -67,6 +67,18 @@ function getCodexHomeDir() {
|
|
|
67
67
|
function getSkillsInstallDir() {
|
|
68
68
|
return join(getCodexHomeDir(), "skills");
|
|
69
69
|
}
|
|
70
|
+
function resolveSkillInstallerScriptPath() {
|
|
71
|
+
const relPath = join(".system", "skill-installer", "scripts", "install-skill-from-github.py");
|
|
72
|
+
const candidates = [
|
|
73
|
+
join(getSkillsInstallDir(), relPath),
|
|
74
|
+
join(homedir(), ".codex", "skills", relPath),
|
|
75
|
+
join(homedir(), ".cursor", "skills", relPath)
|
|
76
|
+
];
|
|
77
|
+
for (const candidate of candidates) {
|
|
78
|
+
if (existsSync(candidate)) return candidate;
|
|
79
|
+
}
|
|
80
|
+
throw new Error(`Skill installer script not found. Checked: ${candidates.join(", ")}`);
|
|
81
|
+
}
|
|
70
82
|
async function runCommand(command, args, options = {}) {
|
|
71
83
|
await new Promise((resolve2, reject) => {
|
|
72
84
|
const proc = spawn(command, args, {
|
|
@@ -991,7 +1003,7 @@ async function handleSkillsRoutes(req, res, url, context) {
|
|
|
991
1003
|
}
|
|
992
1004
|
const localDir = await detectUserSkillsDir(appServer);
|
|
993
1005
|
await pullInstalledSkillsFolderFromRepo(state.githubToken, state.repoOwner, state.repoName);
|
|
994
|
-
const installerScript =
|
|
1006
|
+
const installerScript = resolveSkillInstallerScriptPath();
|
|
995
1007
|
const localSkills = await scanInstalledSkillsFromDisk();
|
|
996
1008
|
for (const skill of remote) {
|
|
997
1009
|
const owner = skill.owner || uniqueOwnerByName.get(skill.name) || "";
|
|
@@ -1061,7 +1073,7 @@ async function handleSkillsRoutes(req, res, url, context) {
|
|
|
1061
1073
|
setJson(res, 400, { error: "Missing owner or name" });
|
|
1062
1074
|
return true;
|
|
1063
1075
|
}
|
|
1064
|
-
const installerScript =
|
|
1076
|
+
const installerScript = resolveSkillInstallerScriptPath();
|
|
1065
1077
|
const installDest = await detectUserSkillsDir(appServer);
|
|
1066
1078
|
await runCommand("python3", [
|
|
1067
1079
|
installerScript,
|