@first-tree-ai/context-tree 0.1.14-alpha.202609140826 → 0.1.14
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/cli/index.mjs +4 -2
- package/package.json +1 -1
package/dist/cli/index.mjs
CHANGED
|
@@ -27032,8 +27032,10 @@ function hostDestination(host, root, isProjectInstall) {
|
|
|
27032
27032
|
const directories = HOST_DIRECTORIES[host];
|
|
27033
27033
|
if (!isProjectInstall) {
|
|
27034
27034
|
let hostRoot = root;
|
|
27035
|
-
|
|
27036
|
-
|
|
27035
|
+
const codexHome = host === "codex" ? process.env.CODEX_HOME?.trim() : void 0;
|
|
27036
|
+
const configPaths = codexHome ? [resolve(codexHome)] : directories.config;
|
|
27037
|
+
for (const segment of configPaths) {
|
|
27038
|
+
hostRoot = resolve(hostRoot, segment);
|
|
27037
27039
|
const entry = lstatSync(hostRoot, { throwIfNoEntry: false });
|
|
27038
27040
|
if (entry === void 0) return { reason: `${hostRoot} does not exist; install ${host} first, then run context-tree install.` };
|
|
27039
27041
|
if (entry.isSymbolicLink() || !entry.isDirectory()) return { reason: `${hostRoot} is not a real directory.` };
|
package/package.json
CHANGED