@xn-intenton-z2a/agentic-lib 7.1.45 → 7.1.46
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/bin/agentic-lib.js
CHANGED
|
@@ -697,8 +697,12 @@ function initDirContents(srcSubdir, dstDir, label) {
|
|
|
697
697
|
console.log(`\n--- ${label} ---`);
|
|
698
698
|
const dir = resolve(srcDir, srcSubdir);
|
|
699
699
|
if (!existsSync(dir)) return;
|
|
700
|
-
for (const
|
|
701
|
-
|
|
700
|
+
for (const entry of readdirSync(dir, { withFileTypes: true })) {
|
|
701
|
+
if (entry.isDirectory()) {
|
|
702
|
+
initCopyDirRecursive(resolve(dir, entry.name), resolve(dstDir, entry.name), `${srcSubdir}/${entry.name}`);
|
|
703
|
+
} else {
|
|
704
|
+
initCopyFile(resolve(dir, entry.name), resolve(dstDir, entry.name), `${srcSubdir}/${entry.name}`);
|
|
705
|
+
}
|
|
702
706
|
}
|
|
703
707
|
}
|
|
704
708
|
|
package/package.json
CHANGED