@curenorway/kode-cli 1.3.3 → 1.3.4
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/{chunk-23USWMU4.js → chunk-A5J2KKFE.js} +20 -0
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -752,6 +752,24 @@ async function initCommand(options) {
|
|
|
752
752
|
config.json
|
|
753
753
|
`;
|
|
754
754
|
writeFileSync3(gitignorePath, gitignoreContent);
|
|
755
|
+
const claudeConfigDir = join3(cwd, ".claude");
|
|
756
|
+
const claudeConfigPath = join3(claudeConfigDir, "config.json");
|
|
757
|
+
if (!existsSync3(claudeConfigDir)) {
|
|
758
|
+
mkdirSync2(claudeConfigDir, { recursive: true });
|
|
759
|
+
}
|
|
760
|
+
let claudeConfig = {};
|
|
761
|
+
if (existsSync3(claudeConfigPath)) {
|
|
762
|
+
try {
|
|
763
|
+
claudeConfig = JSON.parse(readFileSync3(claudeConfigPath, "utf-8"));
|
|
764
|
+
} catch {
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
claudeConfig.mcpServers = claudeConfig.mcpServers || {};
|
|
768
|
+
claudeConfig.mcpServers["cure-kode"] = {
|
|
769
|
+
command: "npx",
|
|
770
|
+
args: ["@curenorway/kode-mcp"]
|
|
771
|
+
};
|
|
772
|
+
writeFileSync3(claudeConfigPath, JSON.stringify(claudeConfig, null, 2) + "\n");
|
|
755
773
|
spinner.text = "Generating AI context files...";
|
|
756
774
|
spinner.start();
|
|
757
775
|
let scripts = [];
|
|
@@ -871,6 +889,8 @@ config.json
|
|
|
871
889
|
} else {
|
|
872
890
|
console.log(chalk.dim(` \u251C\u2500\u2500 CLAUDE.md (existing - unchanged)`));
|
|
873
891
|
}
|
|
892
|
+
console.log(chalk.dim(` \u251C\u2500\u2500 .claude/`));
|
|
893
|
+
console.log(chalk.dim(` \u2502 \u2514\u2500\u2500 config.json (MCP server config)`));
|
|
874
894
|
console.log(chalk.dim(` \u251C\u2500\u2500 .cure-kode/`));
|
|
875
895
|
console.log(chalk.dim(` \u2502 \u251C\u2500\u2500 config.json (your configuration)`));
|
|
876
896
|
console.log(chalk.dim(` \u2502 \u251C\u2500\u2500 context.md (dynamic AI context)`));
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED