@harness-lab/cli 0.2.3 → 0.2.4
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/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harness-lab/cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "Participant-facing Harness Lab CLI for facilitator auth and workshop operations",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"ai-agents"
|
|
21
21
|
],
|
|
22
22
|
"engines": {
|
|
23
|
-
"node": "22
|
|
23
|
+
"node": ">=22"
|
|
24
24
|
},
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public"
|
package/src/workshop-bundle.js
CHANGED
|
@@ -63,7 +63,29 @@ export async function pathExists(targetPath) {
|
|
|
63
63
|
|
|
64
64
|
async function copyDirectoryTree(sourceRoot, targetRoot) {
|
|
65
65
|
for (const [sourceRelativePath, targetRelativePath] of DIRECTORY_COPIES) {
|
|
66
|
-
await
|
|
66
|
+
await copyDirectoryRecursive(
|
|
67
|
+
path.join(sourceRoot, sourceRelativePath),
|
|
68
|
+
path.join(targetRoot, targetRelativePath),
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
async function copyDirectoryRecursive(sourcePath, targetPath) {
|
|
74
|
+
const entries = await fs.readdir(sourcePath, { withFileTypes: true });
|
|
75
|
+
await fs.mkdir(targetPath, { recursive: true });
|
|
76
|
+
|
|
77
|
+
for (const entry of entries) {
|
|
78
|
+
const sourceEntryPath = path.join(sourcePath, entry.name);
|
|
79
|
+
const targetEntryPath = path.join(targetPath, entry.name);
|
|
80
|
+
|
|
81
|
+
if (entry.isDirectory()) {
|
|
82
|
+
await copyDirectoryRecursive(sourceEntryPath, targetEntryPath);
|
|
83
|
+
continue;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
if (entry.isFile()) {
|
|
87
|
+
await fs.copyFile(sourceEntryPath, targetEntryPath);
|
|
88
|
+
}
|
|
67
89
|
}
|
|
68
90
|
}
|
|
69
91
|
|