@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/commands/refly-login.md +17 -0
- package/commands/refly-status.md +19 -0
- package/commands/refly-upgrade.md +17 -0
- package/dist/bin/refly.js +5 -7
- package/dist/bin/refly.js.map +1 -1
- package/dist/index.js +5 -15
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: refly-login
|
|
3
|
+
description: Authenticate with Refly
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Run:
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
refly login
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
This will:
|
|
13
|
+
1. Prompt for API key (or use REFLY_API_KEY env var)
|
|
14
|
+
2. Verify authentication with Refly API
|
|
15
|
+
3. Store credentials securely in `~/.refly/config.json`
|
|
16
|
+
|
|
17
|
+
After successful login, you can use all workflow commands.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: refly-status
|
|
3
|
+
description: Check Refly CLI configuration and authentication status
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Run:
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
refly status
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Parse JSON and summarize:
|
|
13
|
+
- CLI version
|
|
14
|
+
- Current user
|
|
15
|
+
- API endpoint
|
|
16
|
+
- Auth status + expiry
|
|
17
|
+
- Skill installation status
|
|
18
|
+
|
|
19
|
+
If not authenticated, suggest running `refly login`.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: refly-upgrade
|
|
3
|
+
description: Upgrade Refly CLI skill files
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Run:
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
refly upgrade
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
This will:
|
|
13
|
+
1. Reinstall the latest SKILL.md and reference files
|
|
14
|
+
2. Update slash commands (if `~/.claude/commands/` exists)
|
|
15
|
+
3. Update skill version in config
|
|
16
|
+
|
|
17
|
+
Useful when you've updated the CLI package and want to refresh skill files.
|
package/dist/bin/refly.js
CHANGED
|
@@ -8859,7 +8859,6 @@ function installSkill() {
|
|
|
8859
8859
|
commandsPath: null,
|
|
8860
8860
|
version: getSkillVersion()
|
|
8861
8861
|
};
|
|
8862
|
-
const dirs = claudeDirectoriesExist();
|
|
8863
8862
|
const sourceDir = getPackageSkillDir();
|
|
8864
8863
|
const targetDir = getClaudeSkillDir();
|
|
8865
8864
|
ensureDir(targetDir);
|
|
@@ -8879,12 +8878,11 @@ function installSkill() {
|
|
|
8879
8878
|
fs3.copyFileSync(path3.join(refsSource, file), path3.join(refsTarget, file));
|
|
8880
8879
|
}
|
|
8881
8880
|
}
|
|
8882
|
-
|
|
8883
|
-
|
|
8884
|
-
|
|
8885
|
-
|
|
8886
|
-
|
|
8887
|
-
}
|
|
8881
|
+
const commandsDir = getClaudeCommandsDir();
|
|
8882
|
+
ensureDir(commandsDir);
|
|
8883
|
+
result.commandsInstalled = installSlashCommands(sourceDir, commandsDir);
|
|
8884
|
+
if (result.commandsInstalled) {
|
|
8885
|
+
result.commandsPath = commandsDir;
|
|
8888
8886
|
}
|
|
8889
8887
|
updateSkillInfo(result.version);
|
|
8890
8888
|
return result;
|