@cliangdev/flux-plugin 0.0.0-dev.1db9c6c → 0.0.0-dev.448c161
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/README.md +9 -4
- package/bin/install.cjs +9 -21
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,8 +23,9 @@ npx @cliangdev/flux-plugin --local # Install to ./.claude (current project)
|
|
|
23
23
|
### What Gets Configured
|
|
24
24
|
|
|
25
25
|
The installer automatically:
|
|
26
|
-
1.
|
|
27
|
-
2.
|
|
26
|
+
1. Copies commands to `.claude/commands/`
|
|
27
|
+
2. Copies skills to `.claude/skills/`
|
|
28
|
+
3. Adds MCP server config to `.claude.json`
|
|
28
29
|
|
|
29
30
|
## Commands
|
|
30
31
|
|
|
@@ -137,14 +138,18 @@ Check your current version:
|
|
|
137
138
|
### Global Installation
|
|
138
139
|
|
|
139
140
|
```bash
|
|
140
|
-
rm -rf ~/.claude/
|
|
141
|
+
rm -rf ~/.claude/commands/flux ~/.claude/commands/prd ~/.claude/commands/breakdown ~/.claude/commands/implement
|
|
142
|
+
rm -rf ~/.claude/skills/agent-creator ~/.claude/skills/epic-template ~/.claude/skills/flux-orchestrator ~/.claude/skills/prd-template
|
|
143
|
+
rm -f ~/.claude/flux-version
|
|
141
144
|
# Edit ~/.claude.json and remove the "flux" entry from "mcpServers"
|
|
142
145
|
```
|
|
143
146
|
|
|
144
147
|
### Local Installation
|
|
145
148
|
|
|
146
149
|
```bash
|
|
147
|
-
rm -rf .claude/
|
|
150
|
+
rm -rf .claude/commands/flux .claude/commands/prd .claude/commands/breakdown .claude/commands/implement
|
|
151
|
+
rm -rf .claude/skills/agent-creator .claude/skills/epic-template .claude/skills/flux-orchestrator .claude/skills/prd-template
|
|
152
|
+
rm -f .claude/flux-version
|
|
148
153
|
# Edit .claude.json and remove the "flux" entry from "mcpServers"
|
|
149
154
|
```
|
|
150
155
|
|
package/bin/install.cjs
CHANGED
|
@@ -99,39 +99,27 @@ ${cyan} ███████╗██╗ ██╗ ██╗██╗
|
|
|
99
99
|
const claudeDir = isGlobal
|
|
100
100
|
? path.join(os.homedir(), ".claude")
|
|
101
101
|
: path.join(process.cwd(), ".claude");
|
|
102
|
-
const pluginDir = path.join(claudeDir, "plugins", "marketplaces", "npm", "flux-plugin");
|
|
103
102
|
const locationLabel = isGlobal ? "~/.claude" : "./.claude";
|
|
104
103
|
|
|
105
|
-
console.log(` Installing to ${cyan}${locationLabel}
|
|
104
|
+
console.log(` Installing to ${cyan}${locationLabel}${reset}\n`);
|
|
106
105
|
|
|
107
|
-
fs.mkdirSync(
|
|
108
|
-
|
|
109
|
-
const pluginConfigDir = path.join(pluginDir, ".claude-plugin");
|
|
110
|
-
fs.mkdirSync(pluginConfigDir, { recursive: true });
|
|
111
|
-
writeJson(path.join(pluginConfigDir, "plugin.json"), {
|
|
112
|
-
name: "flux-plugin",
|
|
113
|
-
description: "AI-first workflow orchestration for spec-driven development",
|
|
114
|
-
version: pkg.version,
|
|
115
|
-
author: {
|
|
116
|
-
name: "cliangdev",
|
|
117
|
-
url: "https://github.com/cliangdev/flux-plugin"
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
console.log(` ${green}✓${reset} Created plugin config`);
|
|
106
|
+
fs.mkdirSync(claudeDir, { recursive: true });
|
|
121
107
|
|
|
122
108
|
const commandsSrc = path.join(src, "commands");
|
|
123
109
|
if (fs.existsSync(commandsSrc)) {
|
|
124
|
-
const commandsDest = path.join(
|
|
110
|
+
const commandsDest = path.join(claudeDir, "commands");
|
|
125
111
|
fs.mkdirSync(commandsDest, { recursive: true });
|
|
126
112
|
|
|
127
113
|
const commandFiles = fs.readdirSync(commandsSrc);
|
|
128
114
|
for (const file of commandFiles) {
|
|
129
115
|
if (file.endsWith(".md")) {
|
|
116
|
+
const name = file.replace(".md", "");
|
|
117
|
+
const destDir = path.join(commandsDest, name);
|
|
118
|
+
fs.mkdirSync(destDir, { recursive: true });
|
|
130
119
|
fs.copyFileSync(
|
|
131
120
|
path.join(commandsSrc, file),
|
|
132
|
-
path.join(
|
|
121
|
+
path.join(destDir, "COMMAND.md")
|
|
133
122
|
);
|
|
134
|
-
const name = file.replace(".md", "");
|
|
135
123
|
console.log(` ${green}✓${reset} Installed command: /${name}`);
|
|
136
124
|
}
|
|
137
125
|
}
|
|
@@ -139,7 +127,7 @@ ${cyan} ███████╗██╗ ██╗ ██╗██╗
|
|
|
139
127
|
|
|
140
128
|
const skillsSrc = path.join(src, "skills");
|
|
141
129
|
if (fs.existsSync(skillsSrc)) {
|
|
142
|
-
const skillsDest = path.join(
|
|
130
|
+
const skillsDest = path.join(claudeDir, "skills");
|
|
143
131
|
fs.mkdirSync(skillsDest, { recursive: true });
|
|
144
132
|
|
|
145
133
|
const skillDirs = fs.readdirSync(skillsSrc, { withFileTypes: true });
|
|
@@ -174,7 +162,7 @@ ${cyan} ███████╗██╗ ██╗ ██╗██╗
|
|
|
174
162
|
` ${green}✓${reset} Configured MCP server in ${isGlobal ? "~/.claude.json" : "./.claude.json"}`
|
|
175
163
|
);
|
|
176
164
|
|
|
177
|
-
const versionFile = path.join(
|
|
165
|
+
const versionFile = path.join(claudeDir, "flux-version");
|
|
178
166
|
fs.writeFileSync(versionFile, pkg.version);
|
|
179
167
|
|
|
180
168
|
console.log(`
|
package/package.json
CHANGED