@atlashub/smartstack-cli 4.30.0 → 4.31.0
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/index.js +17 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/templates/skills/apex/references/code-generation.md +1 -1
- package/templates/skills/apex/references/person-extension-pattern.md +23 -2
- package/templates/skills/apex/references/post-checks.md +52 -0
- package/templates/skills/apex/references/smartstack-api.md +111 -0
- package/templates/skills/apex/references/smartstack-frontend.md +25 -2
- package/templates/skills/apex/references/smartstack-layers.md +1 -0
- package/templates/skills/apex/steps/step-03-execute.md +110 -7
- package/templates/skills/application/templates-frontend.md +1 -1
- package/templates/skills/ba-generate-html/SKILL.md +1 -1
- package/templates/skills/ba-generate-html/html/ba-interactive.html +42 -78
- package/templates/skills/ba-generate-html/html/src/partials/cadrage-scope.html +14 -36
- package/templates/skills/ba-generate-html/html/src/partials/decomp-modules.html +0 -8
- package/templates/skills/ba-generate-html/html/src/scripts/01-data-init.js +20 -20
- package/templates/skills/ba-generate-html/html/src/scripts/03-render-cadrage.js +4 -3
- package/templates/skills/ba-generate-html/html/src/scripts/04-render-modules.js +0 -2
- package/templates/skills/ba-generate-html/html/src/scripts/07-render-handoff.js +2 -5
- package/templates/skills/ba-generate-html/html/src/scripts/10-comments.js +1 -1
- package/templates/skills/ba-generate-html/html/src/styles/04-cards.css +2 -4
- package/templates/skills/ba-generate-html/html/src/template.html +14 -44
- package/templates/skills/ba-generate-html/references/data-build.md +4 -9
- package/templates/skills/ba-generate-html/references/data-mapping.md +2 -7
- package/templates/skills/ba-generate-html/references/output-modes.md +1 -1
- package/templates/skills/ba-generate-html/steps/step-02-build-data.md +3 -6
- package/templates/skills/ba-generate-html/steps/step-04-verify.md +2 -2
- package/templates/skills/ba-review/references/review-data-mapping.md +4 -6
- package/templates/skills/ba-review/steps/step-01-apply.md +2 -4
- package/templates/skills/business-analyse/patterns/suggestion-catalog.md +4 -4
- package/templates/skills/business-analyse/questionnaire.md +1 -1
- package/templates/skills/business-analyse/react/schema.md +2 -7
- package/templates/skills/business-analyse/schemas/application-schema.json +2 -9
- package/templates/skills/business-analyse/schemas/project-schema.json +4 -8
- package/templates/skills/business-analyse/schemas/sections/discovery-schema.json +1 -3
- package/templates/skills/business-analyse/steps/step-01-cadrage.md +5 -12
- package/templates/skills/business-analyse/steps/step-02-structure.md +3 -5
- package/templates/skills/dev-start/SKILL.md +242 -0
- package/templates/skills/ui-components/SKILL.md +1 -1
- package/templates/skills/ui-components/patterns/data-table.md +1 -1
package/dist/index.js
CHANGED
|
@@ -127501,8 +127501,10 @@ function detectSmartStackApp() {
|
|
|
127501
127501
|
return null;
|
|
127502
127502
|
}
|
|
127503
127503
|
var adminCommand = new Command("admin").description("Admin account utilities");
|
|
127504
|
-
adminCommand.command("reset").description("Reset the localAdmin account password").option("-c, --connection <string>", "SQL Server connection string").option("-p, --path <path>", "Path to SmartStack.Api folder containing appsettings.json").option("-e, --email <email>", "Admin email address", DEFAULT_CONFIG.adminEmail).option("-f, --force", "Skip confirmation prompt").action(async (options) => {
|
|
127505
|
-
|
|
127504
|
+
adminCommand.command("reset").description("Reset the localAdmin account password").option("-c, --connection <string>", "SQL Server connection string").option("-p, --path <path>", "Path to SmartStack.Api folder containing appsettings.json").option("-e, --email <email>", "Admin email address", DEFAULT_CONFIG.adminEmail).option("-f, --force", "Skip confirmation prompt").option("--json", "Output as JSON (machine-readable)").action(async (options) => {
|
|
127505
|
+
if (!options.json) {
|
|
127506
|
+
logger.header("SmartStack Admin Reset");
|
|
127507
|
+
}
|
|
127506
127508
|
let connectionString = options.connection || null;
|
|
127507
127509
|
if (!connectionString) {
|
|
127508
127510
|
const apiPath = options.path || detectSmartStackApp();
|
|
@@ -127548,8 +127550,10 @@ adminCommand.command("reset").description("Reset the localAdmin account password
|
|
|
127548
127550
|
}
|
|
127549
127551
|
const adminEmail = options.email;
|
|
127550
127552
|
const connInfo = parseConnectionString(connectionString);
|
|
127551
|
-
|
|
127552
|
-
|
|
127553
|
+
if (!options.json) {
|
|
127554
|
+
logger.info(`Server: ${source_default.cyan(connInfo.server)}`);
|
|
127555
|
+
logger.info(`Database: ${source_default.cyan(connInfo.database)}`);
|
|
127556
|
+
}
|
|
127553
127557
|
if (!options.force) {
|
|
127554
127558
|
const { confirm } = await lib_default.prompt([
|
|
127555
127559
|
{
|
|
@@ -127587,6 +127591,15 @@ adminCommand.command("reset").description("Reset the localAdmin account password
|
|
|
127587
127591
|
displayPasswordResult(adminEmail, newPassword);
|
|
127588
127592
|
};
|
|
127589
127593
|
const displayPasswordResult = (email, password) => {
|
|
127594
|
+
if (options.json) {
|
|
127595
|
+
console.log(JSON.stringify({
|
|
127596
|
+
email,
|
|
127597
|
+
password,
|
|
127598
|
+
server: connInfo.server,
|
|
127599
|
+
database: connInfo.database
|
|
127600
|
+
}));
|
|
127601
|
+
return;
|
|
127602
|
+
}
|
|
127590
127603
|
console.log();
|
|
127591
127604
|
console.log(source_default.green("\u2550".repeat(60)));
|
|
127592
127605
|
console.log(source_default.green.bold(" LOCAL ADMINISTRATOR PASSWORD RESET"));
|