@tamyla/clodo-framework 2.0.10 → 2.0.12

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 CHANGED
@@ -1,3 +1,17 @@
1
+ ## [2.0.12](https://github.com/tamylaa/clodo-framework/compare/v2.0.11...v2.0.12) (2025-10-12)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * correct zone details property access in auto-discovery ([bfca8af](https://github.com/tamylaa/clodo-framework/commit/bfca8af21a28e96e3fa8809d38de997982723d5a))
7
+
8
+ ## [2.0.11](https://github.com/tamylaa/clodo-framework/compare/v2.0.10...v2.0.11) (2025-10-12)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * correct domain selection parsing in auto-discovery ([ea80443](https://github.com/tamylaa/clodo-framework/commit/ea80443bf9968d592f066e7d5d13ee47d6fde889))
14
+
1
15
  ## [2.0.10](https://github.com/tamylaa/clodo-framework/compare/v2.0.9...v2.0.10) (2025-10-12)
2
16
 
3
17
 
@@ -387,14 +387,17 @@ export class InputCollector {
387
387
 
388
388
  // Format zones for display
389
389
  const formatted = formatZonesForDisplay(zones);
390
- console.log(formatted);
390
+ formatted.forEach((line, index) => {
391
+ console.log(chalk.white(` ${index + 1}. ${line}`));
392
+ });
391
393
 
392
394
  // Let user select a domain
393
395
  const selection = await this.prompt('\nSelect domain (enter number or name): ');
394
- const selectedZone = parseZoneSelection(selection, zones);
395
- if (!selectedZone) {
396
+ const selectedIndex = parseZoneSelection(selection, zones);
397
+ if (selectedIndex === -1) {
396
398
  throw new Error('Invalid domain selection');
397
399
  }
400
+ const selectedZone = zones[selectedIndex];
398
401
  console.log(chalk.green(`\n✓ Selected: ${selectedZone.name}`));
399
402
 
400
403
  // Get full zone details
@@ -402,9 +405,10 @@ export class InputCollector {
402
405
  return {
403
406
  domainName: zoneDetails.name,
404
407
  zoneId: zoneDetails.id,
405
- accountId: zoneDetails.account.id,
406
- accountName: zoneDetails.account.name,
407
- nameServers: zoneDetails.name_servers,
408
+ accountId: zoneDetails.accountId,
409
+ // Already flattened in getZoneDetails response
410
+ accountName: zoneDetails.accountName,
411
+ nameServers: zoneDetails.nameServers,
408
412
  status: zoneDetails.status
409
413
  };
410
414
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamyla/clodo-framework",
3
- "version": "2.0.10",
3
+ "version": "2.0.12",
4
4
  "description": "Reusable framework for Clodo-style software architecture on Cloudflare Workers + D1",
5
5
  "type": "module",
6
6
  "sideEffects": [