aicm 0.15.0 → 0.15.1
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 +3 -1
- package/dist/commands/install.js +6 -0
- package/dist/utils/config.d.ts +1 -1
- package/dist/utils/config.js +6 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,7 +17,9 @@ Modern AI-powered IDEs like Cursor and Agents like Codex enable developers to wr
|
|
|
17
17
|
aicm accepts Cursor's `.mdc` format as it provides the most comprehensive feature set. For other AI tools and IDEs, aicm automatically generates compatible formats:
|
|
18
18
|
|
|
19
19
|
- **Cursor**: Native `.mdc` files with full feature support
|
|
20
|
-
- **Windsurf
|
|
20
|
+
- **Windsurf**: Generates `.windsurfrules` file
|
|
21
|
+
- **Codex**: Generates `AGENTS.md` file
|
|
22
|
+
- **Claude**: Generates `CLAUDE.md` file
|
|
21
23
|
|
|
22
24
|
This approach ensures you write your rules once in the richest format available, while maintaining compatibility across different AI development environments.
|
|
23
25
|
|
package/dist/commands/install.js
CHANGED
|
@@ -20,6 +20,7 @@ function getTargetPaths() {
|
|
|
20
20
|
cursor: node_path_1.default.join(projectDir, ".cursor", "rules", "aicm"),
|
|
21
21
|
windsurf: node_path_1.default.join(projectDir, ".aicm"),
|
|
22
22
|
codex: node_path_1.default.join(projectDir, ".aicm"),
|
|
23
|
+
claude: node_path_1.default.join(projectDir, ".aicm"),
|
|
23
24
|
};
|
|
24
25
|
}
|
|
25
26
|
function writeCursorRules(rules, cursorRulesDir) {
|
|
@@ -116,6 +117,11 @@ function writeRulesToTargets(rules, targets) {
|
|
|
116
117
|
writeRulesForFile(rules, targetPaths.codex, "AGENTS.md");
|
|
117
118
|
}
|
|
118
119
|
break;
|
|
120
|
+
case "claude":
|
|
121
|
+
if (rules.length > 0) {
|
|
122
|
+
writeRulesForFile(rules, targetPaths.claude, "CLAUDE.md");
|
|
123
|
+
}
|
|
124
|
+
break;
|
|
119
125
|
}
|
|
120
126
|
}
|
|
121
127
|
}
|
package/dist/utils/config.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ export interface ResolvedConfig {
|
|
|
47
47
|
mcpServers: MCPServers;
|
|
48
48
|
}
|
|
49
49
|
export declare const ALLOWED_CONFIG_KEYS: readonly ["rulesDir", "targets", "presets", "overrides", "mcpServers", "workspaces", "skipInstall"];
|
|
50
|
-
export declare const SUPPORTED_TARGETS: readonly ["cursor", "windsurf", "codex"];
|
|
50
|
+
export declare const SUPPORTED_TARGETS: readonly ["cursor", "windsurf", "codex", "claude"];
|
|
51
51
|
export type SupportedTarget = (typeof SUPPORTED_TARGETS)[number];
|
|
52
52
|
export declare function detectWorkspacesFromPackageJson(cwd: string): boolean;
|
|
53
53
|
export declare function resolveWorkspaces(config: unknown, configFilePath: string, cwd: string): boolean;
|
package/dist/utils/config.js
CHANGED
|
@@ -29,7 +29,12 @@ exports.ALLOWED_CONFIG_KEYS = [
|
|
|
29
29
|
"workspaces",
|
|
30
30
|
"skipInstall",
|
|
31
31
|
];
|
|
32
|
-
exports.SUPPORTED_TARGETS = [
|
|
32
|
+
exports.SUPPORTED_TARGETS = [
|
|
33
|
+
"cursor",
|
|
34
|
+
"windsurf",
|
|
35
|
+
"codex",
|
|
36
|
+
"claude",
|
|
37
|
+
];
|
|
33
38
|
function detectWorkspacesFromPackageJson(cwd) {
|
|
34
39
|
try {
|
|
35
40
|
const packageJsonPath = node_path_1.default.join(cwd, "package.json");
|