claude-comms 1.0.30 → 1.0.31
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/index.js +2 -1
- package/src/orchestrator/installer.js +22 -1
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -274,6 +274,13 @@ class Installer extends EventEmitter {
|
|
|
274
274
|
retryCount: 3
|
|
275
275
|
});
|
|
276
276
|
|
|
277
|
+
// Fetch .agents directory structure
|
|
278
|
+
const agentsFiles = await this.fetcher.fetchDirectory('.agents', {
|
|
279
|
+
version: this.options.version,
|
|
280
|
+
useCache: this.options.cache,
|
|
281
|
+
retryCount: 3
|
|
282
|
+
});
|
|
283
|
+
|
|
277
284
|
// Fetch CLAUDE.md file
|
|
278
285
|
const claudeMd = await this.fetcher.fetchFile('CLAUDE.md', {
|
|
279
286
|
version: this.options.version,
|
|
@@ -282,6 +289,7 @@ class Installer extends EventEmitter {
|
|
|
282
289
|
|
|
283
290
|
const fetchedFiles = {
|
|
284
291
|
'.claude': claudeFiles,
|
|
292
|
+
'.agents': agentsFiles,
|
|
285
293
|
'CLAUDE.md': claudeMd
|
|
286
294
|
};
|
|
287
295
|
|
|
@@ -444,6 +452,7 @@ class Installer extends EventEmitter {
|
|
|
444
452
|
|
|
445
453
|
const requiredPaths = [
|
|
446
454
|
path.join(this.options.targetDir, '.claude'),
|
|
455
|
+
path.join(this.options.targetDir, '.agents'),
|
|
447
456
|
path.join(this.options.targetDir, 'CLAUDE.md'),
|
|
448
457
|
path.join(this.options.targetDir, '.claude', 'settings.local.json')
|
|
449
458
|
];
|
|
@@ -701,14 +710,18 @@ class Installer extends EventEmitter {
|
|
|
701
710
|
*/
|
|
702
711
|
async _createBackupsIfNeeded(_fetchedFiles) {
|
|
703
712
|
if (!this.options.force) {
|
|
704
|
-
// Check for existing
|
|
713
|
+
// Check for existing directories and files
|
|
705
714
|
const claudeDir = path.join(this.options.targetDir, '.claude');
|
|
715
|
+
const agentsDir = path.join(this.options.targetDir, '.agents');
|
|
706
716
|
const claudeMd = path.join(this.options.targetDir, 'CLAUDE.md');
|
|
707
717
|
|
|
708
718
|
const existingPaths = [];
|
|
709
719
|
if (await this.validator.pathExists(claudeDir)) {
|
|
710
720
|
existingPaths.push('.claude/');
|
|
711
721
|
}
|
|
722
|
+
if (await this.validator.pathExists(agentsDir)) {
|
|
723
|
+
existingPaths.push('.agents/');
|
|
724
|
+
}
|
|
712
725
|
if (await this.validator.pathExists(claudeMd)) {
|
|
713
726
|
existingPaths.push('CLAUDE.md');
|
|
714
727
|
}
|
|
@@ -734,6 +747,14 @@ class Installer extends EventEmitter {
|
|
|
734
747
|
});
|
|
735
748
|
}
|
|
736
749
|
|
|
750
|
+
if (!fetchedFiles['.agents']) {
|
|
751
|
+
issues.push({
|
|
752
|
+
type: 'missing_component',
|
|
753
|
+
component: '.agents',
|
|
754
|
+
message: 'Missing .agents directory structure'
|
|
755
|
+
});
|
|
756
|
+
}
|
|
757
|
+
|
|
737
758
|
if (!fetchedFiles['CLAUDE.md']) {
|
|
738
759
|
issues.push({
|
|
739
760
|
type: 'missing_component',
|