@powerformer/refly-cli 0.1.1 → 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 });
@@ -4567,7 +4559,7 @@ var ConfigSchema = external_exports.object({
4567
4559
  installedAt: external_exports.string().optional()
4568
4560
  }).optional()
4569
4561
  });
4570
- var DEFAULT_API_ENDPOINT = "https://api.refly.ai";
4562
+ var DEFAULT_API_ENDPOINT = "https://refly-api.powerformer.net";
4571
4563
  var DEFAULT_CONFIG = {
4572
4564
  version: 1,
4573
4565
  api: {
@@ -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;