@tamyla/clodo-framework 3.1.3 → 3.1.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/CHANGELOG.md +7 -0
- package/bin/clodo-service.js +50 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [3.1.4](https://github.com/tamylaa/clodo-framework/compare/v3.1.3...v3.1.4) (2025-10-25)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* deploy command should collect deployment inputs, not service creation inputs ([63cbccf](https://github.com/tamylaa/clodo-framework/commit/63cbccfd8b3886668304a7dce51508e6ccba2450))
|
|
7
|
+
|
|
1
8
|
## [3.1.3](https://github.com/tamylaa/clodo-framework/compare/v3.1.2...v3.1.3) (2025-10-25)
|
|
2
9
|
|
|
3
10
|
|
package/bin/clodo-service.js
CHANGED
|
@@ -645,9 +645,57 @@ program
|
|
|
645
645
|
let coreInputs = {};
|
|
646
646
|
let source = 'interactive';
|
|
647
647
|
|
|
648
|
-
// Interactive mode:
|
|
648
|
+
// Interactive mode: collect deployment-specific inputs
|
|
649
649
|
if (isInteractive) {
|
|
650
|
-
|
|
650
|
+
console.log(chalk.cyan('📊 Deployment Input Collection\n'));
|
|
651
|
+
|
|
652
|
+
// Collect deployment-focused inputs, not full service creation
|
|
653
|
+
let customer = options.customer;
|
|
654
|
+
if (!customer) {
|
|
655
|
+
const customers = configManager.listCustomers();
|
|
656
|
+
if (customers.length > 0) {
|
|
657
|
+
console.log(chalk.blue('❓ Select customer:'));
|
|
658
|
+
customers.forEach((cust, index) => {
|
|
659
|
+
console.log(chalk.gray(` ${index + 1}. ${cust}`));
|
|
660
|
+
});
|
|
661
|
+
const selection = await inputCollector.question('Enter number or name: ');
|
|
662
|
+
|
|
663
|
+
const num = parseInt(selection);
|
|
664
|
+
if (!isNaN(num) && num >= 1 && num <= customers.length) {
|
|
665
|
+
customer = customers[num - 1];
|
|
666
|
+
} else if (customers.includes(selection)) {
|
|
667
|
+
customer = selection;
|
|
668
|
+
} else {
|
|
669
|
+
customer = selection;
|
|
670
|
+
console.log(chalk.yellow(`⚠️ New customer: ${customer}`));
|
|
671
|
+
}
|
|
672
|
+
} else {
|
|
673
|
+
customer = await inputCollector.question('Customer name: ');
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
const environment = options.env || await inputCollector.collectEnvironment();
|
|
678
|
+
const domainName = options.domain || await inputCollector.question('Domain name: ');
|
|
679
|
+
|
|
680
|
+
// Collect Cloudflare credentials
|
|
681
|
+
const cloudflareToken = process.env.CLOUDFLARE_API_TOKEN || await inputCollector.collectCloudflareToken();
|
|
682
|
+
|
|
683
|
+
console.log(chalk.cyan('⏳ Fetching Cloudflare configuration...'));
|
|
684
|
+
const cloudflareConfig = await inputCollector.collectCloudflareConfigWithDiscovery(
|
|
685
|
+
cloudflareToken,
|
|
686
|
+
domainName
|
|
687
|
+
);
|
|
688
|
+
|
|
689
|
+
coreInputs = {
|
|
690
|
+
customer,
|
|
691
|
+
environment,
|
|
692
|
+
domainName,
|
|
693
|
+
cloudflareToken,
|
|
694
|
+
cloudflareAccountId: cloudflareConfig.accountId,
|
|
695
|
+
cloudflareZoneId: cloudflareConfig.zoneId
|
|
696
|
+
};
|
|
697
|
+
|
|
698
|
+
source = 'interactive';
|
|
651
699
|
} else {
|
|
652
700
|
// Non-interactive mode: load from config file or stored config
|
|
653
701
|
|