@qcplay/cli 1.0.2 → 1.0.3
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/bin/qcplay.js +1 -12
- package/package.json +1 -1
package/bin/qcplay.js
CHANGED
|
@@ -25,18 +25,7 @@ const QCPLAY_DIR = path.join(os.homedir(), ".qcplay");
|
|
|
25
25
|
const AGENTS_DIR = path.join(os.homedir(), ".agents");
|
|
26
26
|
const AUTH_FILE = path.join(QCPLAY_DIR, "auth.json");
|
|
27
27
|
const CONFIG_FILE = path.join(QCPLAY_DIR, "config.json");
|
|
28
|
-
|
|
29
|
-
function getSkillsDir() {
|
|
30
|
-
const agentsSkillsDir = path.join(AGENTS_DIR, "skills");
|
|
31
|
-
|
|
32
|
-
if (fs.existsSync(agentsSkillsDir) || fs.existsSync(AGENTS_DIR)) {
|
|
33
|
-
return agentsSkillsDir;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
return path.join(QCPLAY_DIR, "skills");
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
const SKILLS_DIR = getSkillsDir();
|
|
28
|
+
const SKILLS_DIR = path.join(AGENTS_DIR, "skills");
|
|
40
29
|
|
|
41
30
|
const colorsEnabled = process.stdout.isTTY && process.env.NO_COLOR !== "1";
|
|
42
31
|
|