claude-flow 2.0.0-alpha.4 → 2.0.0-alpha.5
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/package.json
CHANGED
|
@@ -10,7 +10,8 @@ const loadTemplate = (filename) => {
|
|
|
10
10
|
try {
|
|
11
11
|
return readFileSync(join(__dirname, filename), 'utf8');
|
|
12
12
|
} catch (error) {
|
|
13
|
-
|
|
13
|
+
// Silently fall back to hardcoded templates if files not found
|
|
14
|
+
// This handles npm packaging scenarios where template files may not be included
|
|
14
15
|
return null;
|
|
15
16
|
}
|
|
16
17
|
};
|
|
@@ -47,6 +48,7 @@ export function createWrapperScript(type = 'unix') {
|
|
|
47
48
|
export function createCommandDoc(category, command) {
|
|
48
49
|
const template = loadTemplate(`commands/${category}/${command}.md`);
|
|
49
50
|
if (!template) {
|
|
51
|
+
// Silently fall back to generated documentation
|
|
50
52
|
return createCommandDocFallback(category, command);
|
|
51
53
|
}
|
|
52
54
|
return template;
|