multi-agents-cli 1.0.19 → 1.0.21
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/init.js +8 -7
- package/package.json +1 -1
package/init.js
CHANGED
|
@@ -934,8 +934,9 @@ const main = async () => {
|
|
|
934
934
|
}
|
|
935
935
|
};
|
|
936
936
|
|
|
937
|
-
copyDirExcluding(path.join(TEMPLATES, 'client'), path.join(ROOT, 'client'),
|
|
938
|
-
|
|
937
|
+
copyDirExcluding(path.join(TEMPLATES, 'client'), path.join(ROOT, 'client'), ['agents', 'frameworks']);
|
|
938
|
+
if (fs.existsSync(path.join(TEMPLATES, 'shared')))
|
|
939
|
+
copyDirExcluding(path.join(TEMPLATES, 'shared'), path.join(ROOT, 'shared'), ['agents', 'frameworks']);
|
|
939
940
|
if (backendType === 'separate') {
|
|
940
941
|
copyDirExcluding(path.join(TEMPLATES, 'backend'), path.join(ROOT, 'backend'), ['agents', 'frameworks']);
|
|
941
942
|
fs.writeFileSync(path.join(ROOT, 'backend', '.gitkeep'), '', 'utf8');
|
|
@@ -943,12 +944,12 @@ const main = async () => {
|
|
|
943
944
|
|
|
944
945
|
// ── Copy agents and frameworks to repo root as .agents/ and .frameworks/ ────
|
|
945
946
|
|
|
946
|
-
copyDir(path.join(TEMPLATES, '
|
|
947
|
-
copyDir(path.join(TEMPLATES, '
|
|
948
|
-
copyDir(path.join(TEMPLATES, '
|
|
947
|
+
copyDir(path.join(TEMPLATES, '.agents', 'client'), path.join(ROOT, '.agents', 'client'));
|
|
948
|
+
copyDir(path.join(TEMPLATES, '.frameworks', 'client'), path.join(ROOT, '.frameworks', 'client'));
|
|
949
|
+
copyDir(path.join(TEMPLATES, '.agents', 'shared'), path.join(ROOT, '.agents', 'shared'));
|
|
949
950
|
if (backendType === 'separate') {
|
|
950
|
-
copyDir(path.join(TEMPLATES, '
|
|
951
|
-
copyDir(path.join(TEMPLATES, '
|
|
951
|
+
copyDir(path.join(TEMPLATES, '.agents', 'backend'), path.join(ROOT, '.agents', 'backend'));
|
|
952
|
+
copyDir(path.join(TEMPLATES, '.frameworks', 'backend'), path.join(ROOT, '.frameworks', 'backend'));
|
|
952
953
|
}
|
|
953
954
|
|
|
954
955
|
fs.copyFileSync(path.join(TEMPLATES, 'CLAUDE.md'), path.join(ROOT, 'CLAUDE.md'));
|
package/package.json
CHANGED