aicm 0.6.1 → 0.6.2
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 +4 -10
- package/dist/commands/install.js +1 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -129,22 +129,16 @@ We'll install [an npm package](https://github.com/ranyitz/pirate-coding) contain
|
|
|
129
129
|
npm install --save-dev pirate-coding
|
|
130
130
|
```
|
|
131
131
|
|
|
132
|
-
2.
|
|
132
|
+
2. Create an `aicm.json` file in your project
|
|
133
133
|
|
|
134
134
|
```bash
|
|
135
|
-
|
|
136
|
-
```
|
|
137
|
-
|
|
138
|
-
3. Add the rule to your config file: `aicm.json`
|
|
139
|
-
|
|
140
|
-
```json
|
|
141
|
-
{
|
|
135
|
+
echo '{
|
|
142
136
|
"ides": ["cursor"],
|
|
143
137
|
"presets": ["pirate-coding"]
|
|
144
|
-
}
|
|
138
|
+
}' > aicm.json
|
|
145
139
|
```
|
|
146
140
|
|
|
147
|
-
|
|
141
|
+
3. Install all rules & mcps from your configuration
|
|
148
142
|
|
|
149
143
|
```bash
|
|
150
144
|
npx -y aicm install
|
package/dist/commands/install.js
CHANGED
|
@@ -139,7 +139,7 @@ async function install(options = {}) {
|
|
|
139
139
|
const filteredMcpServers = Object.fromEntries(Object.entries(config.mcpServers).filter(([, v]) => v !== false));
|
|
140
140
|
writeMcpServersToTargets(filteredMcpServers, config.ides, cwd);
|
|
141
141
|
}
|
|
142
|
-
log("Rules installation completed
|
|
142
|
+
log("Rules installation completed");
|
|
143
143
|
// Restore original cwd
|
|
144
144
|
if (cwd !== originalCwd) {
|
|
145
145
|
process.chdir(originalCwd);
|
|
@@ -170,7 +170,6 @@ async function installCommand() {
|
|
|
170
170
|
console.error(chalk_1.default.red(result.error));
|
|
171
171
|
process.exit(1);
|
|
172
172
|
}
|
|
173
|
-
console.log(chalk_1.default.green("Rules installation completed!"));
|
|
174
173
|
}
|
|
175
174
|
catch (error) {
|
|
176
175
|
console.error(chalk_1.default.red(`Error during rule installation: ${error instanceof Error ? error.message : String(error)}`));
|