@afterxleep/doc-bot 1.7.1 → 1.7.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 +1 -1
- package/bin/doc-bot.js +2 -2
- package/package.json +1 -1
- package/src/index.js +2 -2
package/README.md
CHANGED
package/bin/doc-bot.js
CHANGED
|
@@ -9,7 +9,7 @@ program
|
|
|
9
9
|
.name('doc-bot')
|
|
10
10
|
.description('Generic MCP server for intelligent documentation access')
|
|
11
11
|
.version('1.5.0')
|
|
12
|
-
.option('-d, --docs <path>', 'Path to docs folder', '
|
|
12
|
+
.option('-d, --docs <path>', 'Path to docs folder', 'doc-bot')
|
|
13
13
|
.option('-c, --config <path>', 'Path to manifest file')
|
|
14
14
|
.option('-v, --verbose', 'Enable verbose logging')
|
|
15
15
|
.option('-w, --watch', 'Watch for file changes')
|
|
@@ -34,7 +34,7 @@ async function main() {
|
|
|
34
34
|
console.log(' alwaysApply: true (for global rules)');
|
|
35
35
|
console.log(' alwaysApply: false (for contextual rules)');
|
|
36
36
|
console.log('');
|
|
37
|
-
console.log('💡 Tip: By default, doc-bot looks for a
|
|
37
|
+
console.log('💡 Tip: By default, doc-bot looks for a doc-bot folder.');
|
|
38
38
|
console.log(' Use --docs to specify a different folder.');
|
|
39
39
|
process.exit(1);
|
|
40
40
|
}
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -11,8 +11,8 @@ const fs = require('fs').promises;
|
|
|
11
11
|
class DocsServer {
|
|
12
12
|
constructor(options = {}) {
|
|
13
13
|
this.options = {
|
|
14
|
-
docsPath: options.docsPath || '
|
|
15
|
-
configPath: options.configPath || '
|
|
14
|
+
docsPath: options.docsPath || './doc-bot',
|
|
15
|
+
configPath: options.configPath || './doc-bot/manifest.json', // Optional, for backward compatibility
|
|
16
16
|
verbose: options.verbose || false,
|
|
17
17
|
watch: options.watch || false,
|
|
18
18
|
...options
|