openkbs 0.0.38 → 0.0.40
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 +1 -1
- package/src/actions.js +8 -6
package/package.json
CHANGED
package/src/actions.js
CHANGED
|
@@ -594,10 +594,12 @@ async function updateKnowledgeAction() {
|
|
|
594
594
|
// Download updated knowledge files from S3
|
|
595
595
|
await downloadKnowledgeFromS3(knowledgeDir);
|
|
596
596
|
|
|
597
|
-
// Download CLAUDE.md file from S3
|
|
598
|
-
|
|
597
|
+
// Download CLAUDE.md file from S3 (optional, don't fail if it doesn't work)
|
|
598
|
+
downloadClaudeMdFromS3(claudeMdPath, s3Client, bucket).catch(() => {
|
|
599
|
+
// Silently ignore any errors with CLAUDE.md download
|
|
600
|
+
});
|
|
599
601
|
|
|
600
|
-
console.green('Knowledge base
|
|
602
|
+
console.green('Knowledge base updated successfully!');
|
|
601
603
|
|
|
602
604
|
} catch (error) {
|
|
603
605
|
console.red('Error updating knowledge base:', error.message);
|
|
@@ -668,14 +670,14 @@ async function downloadClaudeMdFromS3(claudeMdPath, s3Client, bucket) {
|
|
|
668
670
|
const fileContent = await response.Body.transformToByteArray();
|
|
669
671
|
await fs.writeFile(claudeMdPath, fileContent);
|
|
670
672
|
|
|
671
|
-
|
|
673
|
+
console.log('Downloaded: CLAUDE.md');
|
|
672
674
|
|
|
673
675
|
} catch (error) {
|
|
674
676
|
if (error.name === 'NoSuchKey') {
|
|
675
677
|
console.yellow('CLAUDE.md not found in remote repository, skipping...');
|
|
676
678
|
} else {
|
|
677
|
-
console.red('Error downloading CLAUDE.md from S3:', error.message);
|
|
678
|
-
throw error
|
|
679
|
+
console.red('Error downloading CLAUDE.md from S3:', error.message || error.toString() || 'Unknown error');
|
|
680
|
+
// Don't throw the error, just log it and continue
|
|
679
681
|
}
|
|
680
682
|
}
|
|
681
683
|
}
|