@ppdocs/mcp 2.6.0 → 2.6.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.
Files changed (2) hide show
  1. package/dist/cli.js +8 -0
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -94,6 +94,14 @@ function initProject(opts) {
94
94
  user: opts.user,
95
95
  };
96
96
  const ppdocsPath = path.join(cwd, '.ppdocs');
97
+ // 检查是否存在同名目录,如果是则删除
98
+ if (fs.existsSync(ppdocsPath)) {
99
+ const stat = fs.statSync(ppdocsPath);
100
+ if (stat.isDirectory()) {
101
+ fs.rmSync(ppdocsPath, { recursive: true });
102
+ console.log(`⚠️ Removed existing .ppdocs directory`);
103
+ }
104
+ }
97
105
  fs.writeFileSync(ppdocsPath, JSON.stringify(ppdocsConfig, null, 2));
98
106
  console.log(`✅ Created ${ppdocsPath}`);
99
107
  // Install workflow templates
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ppdocs/mcp",
3
- "version": "2.6.0",
3
+ "version": "2.6.1",
4
4
  "description": "ppdocs MCP Server - Knowledge Graph for Claude",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",