@powerformer/refly-cli 0.1.2 → 0.1.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/dist/index.js CHANGED
@@ -204,14 +204,6 @@ function getClaudeSkillDir() {
204
204
  function getClaudeCommandsDir() {
205
205
  return path.join(os.homedir(), ".claude", "commands");
206
206
  }
207
- function claudeDirectoriesExist() {
208
- const skillsDir = path.join(os.homedir(), ".claude", "skills");
209
- const commandsDir = getClaudeCommandsDir();
210
- return {
211
- skills: fs.existsSync(skillsDir),
212
- commands: fs.existsSync(commandsDir)
213
- };
214
- }
215
207
  function ensureDir(dir) {
216
208
  if (!fs.existsSync(dir)) {
217
209
  fs.mkdirSync(dir, { recursive: true, mode: 448 });
@@ -4935,7 +4927,6 @@ function installSkill() {
4935
4927
  commandsPath: null,
4936
4928
  version: getSkillVersion()
4937
4929
  };
4938
- const dirs = claudeDirectoriesExist();
4939
4930
  const sourceDir = getPackageSkillDir();
4940
4931
  const targetDir = getClaudeSkillDir();
4941
4932
  ensureDir(targetDir);
@@ -4955,12 +4946,11 @@ function installSkill() {
4955
4946
  fs5.copyFileSync(path5.join(refsSource, file), path5.join(refsTarget, file));
4956
4947
  }
4957
4948
  }
4958
- if (dirs.commands) {
4959
- const commandsDir = getClaudeCommandsDir();
4960
- result.commandsInstalled = installSlashCommands(sourceDir, commandsDir);
4961
- if (result.commandsInstalled) {
4962
- result.commandsPath = commandsDir;
4963
- }
4949
+ const commandsDir = getClaudeCommandsDir();
4950
+ ensureDir(commandsDir);
4951
+ result.commandsInstalled = installSlashCommands(sourceDir, commandsDir);
4952
+ if (result.commandsInstalled) {
4953
+ result.commandsPath = commandsDir;
4964
4954
  }
4965
4955
  updateSkillInfo(result.version);
4966
4956
  return result;