seclaw 0.1.14 → 0.1.15
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/dist/cli.js +2 -4
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1506,12 +1506,10 @@ async function add(template, options) {
|
|
|
1506
1506
|
}
|
|
1507
1507
|
const data = await res.json();
|
|
1508
1508
|
s.stop(`Template ready: ${pc3.green(data.templateName)}`);
|
|
1509
|
-
s.start("Writing template files...");
|
|
1510
1509
|
await mkdir3(templateDir, { recursive: true });
|
|
1511
1510
|
for (const [filename, content] of Object.entries(data.files)) {
|
|
1512
1511
|
await writeFile3(resolve6(templateDir, filename), content);
|
|
1513
1512
|
}
|
|
1514
|
-
s.stop(`${Object.keys(data.files).length} files written to ${pc3.dim(templateDir)}`);
|
|
1515
1513
|
} catch (err) {
|
|
1516
1514
|
s.stop("Failed.");
|
|
1517
1515
|
p3.log.error(`Network error: ${err}`);
|
|
@@ -1560,9 +1558,9 @@ async function add(template, options) {
|
|
|
1560
1558
|
} catch {
|
|
1561
1559
|
}
|
|
1562
1560
|
p3.log.success(
|
|
1563
|
-
`Capability '${pc3.bold(templateName)}'
|
|
1561
|
+
`Capability '${pc3.bold(templateName)}' installed. ${pc3.cyan(String(installed.capabilities.length))} capabilities active.`
|
|
1564
1562
|
);
|
|
1565
|
-
p3.log.info("
|
|
1563
|
+
p3.log.info(`Run ${pc3.cyan("docker compose restart agent")} to apply.`);
|
|
1566
1564
|
}
|
|
1567
1565
|
p3.outro(`${pc3.green("Done!")} Template ${pc3.bold(template)} is ready.`);
|
|
1568
1566
|
}
|