@tamyla/clodo-framework 2.0.7 โ 2.0.9
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 +191 -115
- package/README.md +78 -0
- package/bin/clodo-service.js +24 -9
- package/bin/security/security-cli.js +1 -1
- package/bin/service-management/create-service.js +1 -1
- package/bin/service-management/init-service.js +1 -1
- package/bin/shared/config/customer-cli.js +39 -150
- package/dist/config/ConfigurationManager.js +1 -1
- package/dist/config/CustomerConfigCLI.js +18 -12
- package/dist/config/customers.js +183 -7
- package/dist/deployment/wrangler-deployer.js +21 -0
- package/dist/orchestration/multi-domain-orchestrator.js +20 -15
- package/dist/service-management/InputCollector.js +93 -5
- package/dist/shared/config/customer-cli.js +42 -125
- package/dist/utils/cloudflare/api.js +295 -0
- package/dist/utils/cloudflare/index.js +79 -0
- package/dist/utils/deployment/index.js +1 -1
- package/package.json +4 -3
- package/dist/utils/deployment/interactive-prompts.js +0 -97
package/CHANGELOG.md
CHANGED
|
@@ -1,133 +1,209 @@
|
|
|
1
|
-
## [2.0.
|
|
1
|
+
## [2.0.9](https://github.com/tamylaa/clodo-framework/compare/v2.0.8...v2.0.9) (2025-10-12)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
6
|
+
* re-release v2.0.8 features that were missing from npm package ([33cf712](https://github.com/tamylaa/clodo-framework/commit/33cf71267c07610e04bd8c752db4385c6f5ca603))
|
|
7
7
|
|
|
8
|
-
## [2.0.
|
|
8
|
+
## [2.0.8](https://github.com/tamylaa/clodo-framework/compare/v2.0.7...v2.0.8) (2025-10-12)
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
### Bug Fixes
|
|
12
12
|
|
|
13
|
-
*
|
|
13
|
+
* clean up skipped security validation test with proper TODO ([722afbe](https://github.com/tamylaa/clodo-framework/commit/722afbe056be6f8ccb623acbbd3ab9ac4ce75caa))
|
|
14
|
+
* Enhanced customer config, CloudflareAPI utility, and code consolidation ([447ed9b](https://github.com/tamylaa/clodo-framework/commit/447ed9b5d8a2bb806386fc334e2e8bf4efeff43b))
|
|
15
|
+
* implement missing deployment phase methods in MultiDomainOrchestrator ([b0cb1e8](https://github.com/tamylaa/clodo-framework/commit/b0cb1e828679df61d9ebde2551599f47ddeb20d2))
|
|
16
|
+
* integrate CloudflareAPI auto-discovery and cleanup duplicates ([8166d18](https://github.com/tamylaa/clodo-framework/commit/8166d189bbe1e5b78db8f24d56221f0e18e72021))
|
|
17
|
+
* resolve ESLint no-undef errors in cloudflare index.js ([1a2bb7f](https://github.com/tamylaa/clodo-framework/commit/1a2bb7fa175bab142f3d5be451cb44ef1b9d8747))
|
|
14
18
|
|
|
15
|
-
## [2.0.
|
|
19
|
+
## [2.0.8](https://github.com/tamylaa/clodo-framework/compare/v2.0.7...v2.0.8) (2025-10-12)
|
|
16
20
|
|
|
17
21
|
|
|
18
22
|
### Bug Fixes
|
|
19
23
|
|
|
20
|
-
*
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
### Bug Fixes
|
|
26
|
-
|
|
27
|
-
* ensure clodo-security deploy --help works correctly ([1f81b5f](https://github.com/tamylaa/clodo-framework/commit/1f81b5f0d0590bd3d82470485bde6c449b95c12e))
|
|
28
|
-
|
|
29
|
-
## [2.0.3](https://github.com/tamylaa/clodo-framework/compare/v2.0.2...v2.0.3) (2025-10-11)
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
### Bug Fixes
|
|
33
|
-
|
|
34
|
-
* Add reusable deployment command with Three-Tier input architecture ([0e13bfc](https://github.com/tamylaa/clodo-framework/commit/0e13bfcdda56d0a137bcd44cfd8a9ca49af30503))
|
|
35
|
-
* clodo-security deploy --help and cross-platform deployment scripts ([d7ebbbe](https://github.com/tamylaa/clodo-framework/commit/d7ebbbe8d41c6e4f297f64d19ea5b98172ddee3b))
|
|
36
|
-
* test - Remove placeholder tests that require unimplemented classes ([b009b34](https://github.com/tamylaa/clodo-framework/commit/b009b34cf1f9f7542fbaab2fa2419b2766c72f10))
|
|
37
|
-
|
|
38
|
-
## [2.0.3](https://github.com/tamylaa/clodo-framework/compare/v2.0.2...v2.0.3) (2025-10-11)
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
### Bug Fixes
|
|
42
|
-
|
|
43
|
-
* Add reusable deployment command with Three-Tier input architecture ([0e13bfc](https://github.com/tamylaa/clodo-framework/commit/0e13bfcdda56d0a137bcd44cfd8a9ca49af30503))
|
|
44
|
-
* clodo-security deploy --help and cross-platform deployment scripts ([d7ebbbe](https://github.com/tamylaa/clodo-framework/commit/d7ebbbe8d41c6e4f297f64d19ea5b98172ddee3b))
|
|
45
|
-
* test - Remove placeholder tests that require unimplemented classes ([b009b34](https://github.com/tamylaa/clodo-framework/commit/b009b34cf1f9f7542fbaab2fa2419b2766c72f10))
|
|
46
|
-
|
|
47
|
-
## [2.0.2](https://github.com/tamylaa/clodo-framework/compare/v2.0.1...v2.0.2) (2025-10-11)
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
### Bug Fixes
|
|
51
|
-
|
|
52
|
-
* resolve CLI tool import paths and runtime dependencies ([6a726b9](https://github.com/tamylaa/clodo-framework/commit/6a726b95a5e55055048a262d1c146a50a4f0b46f))
|
|
53
|
-
|
|
54
|
-
## [2.0.1](https://github.com/tamylaa/clodo-framework/compare/v2.0.0...v2.0.1) (2025-10-10)
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
### Bug Fixes
|
|
58
|
-
|
|
59
|
-
* reorganize documentation structure and fix package distribution ([598d44b](https://github.com/tamylaa/clodo-framework/commit/598d44b669f65c222d215ba33d0361d736a15ac9))
|
|
60
|
-
|
|
61
|
-
# [2.0.0](https://github.com/tamylaa/clodo-framework/compare/v1.0.0...v2.0.0) (2025-10-10)
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
### Bug Fixes
|
|
65
|
-
|
|
66
|
-
* enhance enterprise readiness with comprehensive testing roadmap and documentation ([25702d6](https://github.com/tamylaa/clodo-framework/commit/25702d624047ef40991de47eba0b8dabcfaecfa8))
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
### BREAKING CHANGES
|
|
70
|
-
|
|
71
|
-
* Framework now requires structured testing approach for enterprise deployment
|
|
72
|
-
|
|
73
|
-
# 1.0.0 (2025-10-09)
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
### Bug Fixes
|
|
77
|
-
|
|
78
|
-
* add comprehensive security validation module ([ea6cbdf](https://github.com/tamylaa/clodo-framework/commit/ea6cbdf07790266d8b2cd779f750b5e6ef622ba6))
|
|
79
|
-
* add customer configuration management ([ac7379b](https://github.com/tamylaa/clodo-framework/commit/ac7379b41e584bed229cd3a3b8ccb532eed9dcb4))
|
|
80
|
-
* add missing environment parameter to WranglerDeployer validation call ([a833ca3](https://github.com/tamylaa/clodo-framework/commit/a833ca3c1006953911453e1b383c602b96a16229))
|
|
81
|
-
* allow tests to pass when no test files exist ([70bd5b8](https://github.com/tamylaa/clodo-framework/commit/70bd5b8ee61fc7fb70e5015d1889e411c9e091b4))
|
|
82
|
-
* complete rebranding from lego-framework to clodo-framework ([1a704ba](https://github.com/tamylaa/clodo-framework/commit/1a704ba0bdd4b649c412a8b8cc202138d64c79e2))
|
|
83
|
-
* comprehensive documentation update for framework capabilities ([65c0284](https://github.com/tamylaa/clodo-framework/commit/65c0284e6bb916be2f5bd994d76aa198c77cf9fc))
|
|
84
|
-
* comprehensive framework improvements and enterprise documentation ([e77b046](https://github.com/tamylaa/clodo-framework/commit/e77b046cca0dc6ed7afc16479e588d2dece333f3))
|
|
85
|
-
* enhance deployment framework with HTTP validation, error handling, and interactive configuration ([7698f56](https://github.com/tamylaa/clodo-framework/commit/7698f56108c0b90809eaaa55e7335ac89e6dce49))
|
|
86
|
-
* ensure semantic-release works on latest commit ([5d59903](https://github.com/tamylaa/clodo-framework/commit/5d59903cab1c74266373bd6066b045da75256645))
|
|
87
|
-
* implement intelligent WranglerDeployer for actual Cloudflare deployments ([a656190](https://github.com/tamylaa/clodo-framework/commit/a6561909753b5bcb7ece0a0159772daee28dd37c))
|
|
88
|
-
* include documentation in package files ([550a734](https://github.com/tamylaa/clodo-framework/commit/550a734ef9de3f4e4afc35e85226216649e84332))
|
|
89
|
-
* Initial release of Lego Framework v1.0.0 ([6994efd](https://github.com/tamylaa/clodo-framework/commit/6994efdf0be3508ae7fe54c6d71f161d56cafef8))
|
|
90
|
-
* major framework enhancement with enterprise features and TypeScript support ([53c94fb](https://github.com/tamylaa/clodo-framework/commit/53c94fbc3adde14852ffaab9117eda09621f3a16))
|
|
91
|
-
* major framework reorganization and robustness improvements ([7aed0b5](https://github.com/tamylaa/clodo-framework/commit/7aed0b5b438bb02c081d533766951ccc89ff4d4c))
|
|
92
|
-
* make database orchestrator dependency-aware ([051f722](https://github.com/tamylaa/clodo-framework/commit/051f72269aab39d4e972cad8011430dfa86b3f7a))
|
|
93
|
-
* resolve ESLint errors and warnings ([005b591](https://github.com/tamylaa/clodo-framework/commit/005b5916faf6a57c0065d649979dcef84c466ce3))
|
|
94
|
-
* resolve ESLint warnings to enable automated release ([200dd82](https://github.com/tamylaa/clodo-framework/commit/200dd8267af2629f3cb3a1a3a30cbc96ea5bbee9))
|
|
95
|
-
* resolve ESM packaging conflict by preserving ES modules in build output ([0d13422](https://github.com/tamylaa/clodo-framework/commit/0d13422e5c7800006369b157b57d9440805d14dd))
|
|
96
|
-
* resolve GitHub Actions workflow permissions and NPM token issues ([cd53e55](https://github.com/tamylaa/clodo-framework/commit/cd53e55702e0c249e26884304115537c8a3345cf))
|
|
97
|
-
* resolve linting and type checking issues ([598e699](https://github.com/tamylaa/clodo-framework/commit/598e6999be93025d7a35c59df55c6606a59c98ac))
|
|
98
|
-
* resolve missing health-checker dependency by moving to src/utils ([64d429b](https://github.com/tamylaa/clodo-framework/commit/64d429be674855539e5f77413d9a14151d1b0ef8))
|
|
99
|
-
* update repository URLs to correct GitHub username (tamylaa) ([791ae3f](https://github.com/tamylaa/clodo-framework/commit/791ae3ff76589851a0ba09cef58d955272c6b343))
|
|
100
|
-
* Windows compatibility and ES module issues ([7ed2588](https://github.com/tamylaa/clodo-framework/commit/7ed2588d8ae2f706e5646813c1d1dad99944d50f))
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
### Features
|
|
104
|
-
|
|
105
|
-
* Add additional documentation and development tools ([0c6ca0d](https://github.com/tamylaa/clodo-framework/commit/0c6ca0d18ac7bdeef17587a592b8e7e1c549c87b))
|
|
106
|
-
* add GitHub Actions workflow for semantic release ([e097070](https://github.com/tamylaa/clodo-framework/commit/e0970708b454d87dd124371840d0eb1c91c7641c))
|
|
107
|
-
* implement comprehensive production hardening ([4a4c391](https://github.com/tamylaa/clodo-framework/commit/4a4c3917fc3ba624ff61ac79cde1df7c40b6aa33))
|
|
108
|
-
* initial commercial release of Clodo Framework ([647e271](https://github.com/tamylaa/clodo-framework/commit/647e271dd0718b8a5fc4082bc1ac9be1216f9fe2))
|
|
109
|
-
* Rebrand to Clodo Framework v3.0.6 ([03e6923](https://github.com/tamylaa/clodo-framework/commit/03e69232dc60e139601320fce7c1c88c55d6254f))
|
|
110
|
-
* trigger initial Clodo Framework v1.0.0 release ([98bcd76](https://github.com/tamylaa/clodo-framework/commit/98bcd764a1aa1cfe4199d820e02be584619ea11c))
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
### BREAKING CHANGES
|
|
114
|
-
|
|
115
|
-
* Deployments now require security validation by default
|
|
116
|
-
* Enhanced framework with advanced caching, validation, and security features
|
|
117
|
-
|
|
118
|
-
- Enhanced SchemaManager with comprehensive validation and SQL caching (~750 lines)
|
|
119
|
-
- Enhanced GenericDataService with query caching and security controls (~580 lines)
|
|
120
|
-
- Enhanced ModuleManager with enterprise hook execution (~650 lines)
|
|
121
|
-
- Added FeatureManager for progressive enhancement with 20+ feature flags
|
|
122
|
-
- Added VersionDetector for automatic configuration and migration
|
|
123
|
-
- Added MigrationAdapters for backwards compatibility
|
|
124
|
-
- Added comprehensive TypeScript definitions (500+ lines)
|
|
125
|
-
- Enhanced build pipeline with TypeScript checking
|
|
126
|
-
- Fixed critical parsing errors and linting issues
|
|
127
|
-
- 60%+ code duplication reduction through framework consolidation
|
|
128
|
-
|
|
129
|
-
All breaking changes include backwards compatibility via migration adapters.
|
|
24
|
+
* clean up skipped security validation test with proper TODO ([722afbe](https://github.com/tamylaa/clodo-framework/commit/722afbe056be6f8ccb623acbbd3ab9ac4ce75caa))
|
|
25
|
+
* Enhanced customer config, CloudflareAPI utility, and code consolidation ([447ed9b](https://github.com/tamylaa/clodo-framework/commit/447ed9b5d8a2bb806386fc334e2e8bf4efeff43b))
|
|
26
|
+
* implement missing deployment phase methods in MultiDomainOrchestrator ([b0cb1e8](https://github.com/tamylaa/clodo-framework/commit/b0cb1e828679df61d9ebde2551599f47ddeb20d2))
|
|
27
|
+
* integrate CloudflareAPI auto-discovery and cleanup duplicates ([8166d18](https://github.com/tamylaa/clodo-framework/commit/8166d189bbe1e5b78db8f24d56221f0e18e72021))
|
|
28
|
+
* resolve ESLint no-undef errors in cloudflare index.js ([1a2bb7f](https://github.com/tamylaa/clodo-framework/commit/1a2bb7fa175bab142f3d5be451cb44ef1b9d8747))
|
|
130
29
|
|
|
30
|
+
## [2.0.7](https://github.com/tamylaa/clodo-framework/compare/v2.0.6...v2.0.7) (2025-10-12)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Features
|
|
34
|
+
|
|
35
|
+
* **customer-config**: Enhanced customer configuration system to read directly from wrangler.toml
|
|
36
|
+
- Load account_id, SERVICE_DOMAIN, and database configurations from wrangler.toml
|
|
37
|
+
- Read CUSTOMER_DOMAIN from customer environment files
|
|
38
|
+
- Display all 6 core deployment pieces (account ID, zone ID, domains, worker, database, secrets)
|
|
39
|
+
- Added --config-dir parameter for flexible directory specification
|
|
40
|
+
|
|
41
|
+
* **cloudflare**: New CloudflareAPI utility class for programmatic Cloudflare operations
|
|
42
|
+
- Direct REST API integration without CLI dependencies
|
|
43
|
+
- Methods: verifyToken(), listZones(), getZoneDetails(), listD1Databases(), getDeploymentInfo()
|
|
44
|
+
- Helper functions for zone display and selection parsing
|
|
45
|
+
- Organized under src/utils/cloudflare/ with unified exports
|
|
46
|
+
|
|
47
|
+
* **toml**: TOML writing capabilities for dynamic configuration updates
|
|
48
|
+
- updateWranglerToml() - Update wrangler.toml with new configurations
|
|
49
|
+
- updateEnvironmentConfig() - Modify environment-specific settings
|
|
50
|
+
- addD1Database() - Add database bindings dynamically
|
|
51
|
+
- deepMergeConfig() - Recursive configuration merging
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
### Bug Fixes
|
|
55
|
+
|
|
56
|
+
* **customer-config**: Removed duplicate code causing double output in customer CLI
|
|
57
|
+
* **deployment**: Removed 180 lines of duplicate secret management from WranglerDeployer
|
|
58
|
+
- Secret operations now use bin/shared/cloudflare/ops.js as single source of truth
|
|
59
|
+
- Better error recovery, rate limiting, and production monitoring
|
|
60
|
+
* correct orchestrator method name in deploy command ([b28a372](https://github.com/tamylaa/clodo-framework/commit/b28a37222cf2859449b3470b16ec6eb284cc50e2))
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
### Code Quality
|
|
64
|
+
|
|
65
|
+
* **organization**: Consolidated Cloudflare utilities under src/utils/cloudflare/
|
|
66
|
+
- Separated API-based operations (api.js) from CLI-based operations (ops.js)
|
|
67
|
+
- Created unified index.js for convenient imports
|
|
68
|
+
- Verified no duplicate utilities across src/ and bin/shared/
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
### Testing
|
|
72
|
+
|
|
73
|
+
* Added 12 new tests (132 total, all passing, +9.1%)
|
|
74
|
+
- test/utils/cloudflare-api.test.js - CloudflareAPI module tests (6 tests)
|
|
75
|
+
- test/config/customer-toml.test.js - Customer config tests (6 tests)
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
### Documentation
|
|
79
|
+
|
|
80
|
+
* **architecture**: Added comprehensive architecture analysis for customer configuration system
|
|
81
|
+
* **capabilities**: Created inventory of existing framework capabilities
|
|
82
|
+
* **cleanup**: Documented 19-task cleanup plan with execution options
|
|
83
|
+
|
|
84
|
+
## [2.0.6](https://github.com/tamylaa/clodo-framework/compare/v2.0.5...v2.0.6) (2025-10-11)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
### Bug Fixes
|
|
88
|
+
|
|
89
|
+
* PowerShell double-echo in interactive input collection ([6a4b153](https://github.com/tamylaa/clodo-framework/commit/6a4b15380efac0ffc4b57ea4e24f320853c33137))
|
|
90
|
+
|
|
91
|
+
## [2.0.5](https://github.com/tamylaa/clodo-framework/compare/v2.0.4...v2.0.5) (2025-10-11)
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
### Bug Fixes
|
|
95
|
+
|
|
96
|
+
* include templates directory in published package ([8d5c1ff](https://github.com/tamylaa/clodo-framework/commit/8d5c1ffc6090c35751d926042c784ae9b4d711b1))
|
|
97
|
+
|
|
98
|
+
## [2.0.4](https://github.com/tamylaa/clodo-framework/compare/v2.0.3...v2.0.4) (2025-10-11)
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
### Bug Fixes
|
|
102
|
+
|
|
103
|
+
* ensure clodo-security deploy --help works correctly ([1f81b5f](https://github.com/tamylaa/clodo-framework/commit/1f81b5f0d0590bd3d82470485bde6c449b95c12e))
|
|
104
|
+
|
|
105
|
+
## [2.0.3](https://github.com/tamylaa/clodo-framework/compare/v2.0.2...v2.0.3) (2025-10-11)
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
### Bug Fixes
|
|
109
|
+
|
|
110
|
+
* Add reusable deployment command with Three-Tier input architecture ([0e13bfc](https://github.com/tamylaa/clodo-framework/commit/0e13bfcdda56d0a137bcd44cfd8a9ca49af30503))
|
|
111
|
+
* clodo-security deploy --help and cross-platform deployment scripts ([d7ebbbe](https://github.com/tamylaa/clodo-framework/commit/d7ebbbe8d41c6e4f297f64d19ea5b98172ddee3b))
|
|
112
|
+
* test - Remove placeholder tests that require unimplemented classes ([b009b34](https://github.com/tamylaa/clodo-framework/commit/b009b34cf1f9f7542fbaab2fa2419b2766c72f10))
|
|
113
|
+
|
|
114
|
+
## [2.0.3](https://github.com/tamylaa/clodo-framework/compare/v2.0.2...v2.0.3) (2025-10-11)
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
### Bug Fixes
|
|
118
|
+
|
|
119
|
+
* Add reusable deployment command with Three-Tier input architecture ([0e13bfc](https://github.com/tamylaa/clodo-framework/commit/0e13bfcdda56d0a137bcd44cfd8a9ca49af30503))
|
|
120
|
+
* clodo-security deploy --help and cross-platform deployment scripts ([d7ebbbe](https://github.com/tamylaa/clodo-framework/commit/d7ebbbe8d41c6e4f297f64d19ea5b98172ddee3b))
|
|
121
|
+
* test - Remove placeholder tests that require unimplemented classes ([b009b34](https://github.com/tamylaa/clodo-framework/commit/b009b34cf1f9f7542fbaab2fa2419b2766c72f10))
|
|
122
|
+
|
|
123
|
+
## [2.0.2](https://github.com/tamylaa/clodo-framework/compare/v2.0.1...v2.0.2) (2025-10-11)
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
### Bug Fixes
|
|
127
|
+
|
|
128
|
+
* resolve CLI tool import paths and runtime dependencies ([6a726b9](https://github.com/tamylaa/clodo-framework/commit/6a726b95a5e55055048a262d1c146a50a4f0b46f))
|
|
129
|
+
|
|
130
|
+
## [2.0.1](https://github.com/tamylaa/clodo-framework/compare/v2.0.0...v2.0.1) (2025-10-10)
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
### Bug Fixes
|
|
134
|
+
|
|
135
|
+
* reorganize documentation structure and fix package distribution ([598d44b](https://github.com/tamylaa/clodo-framework/commit/598d44b669f65c222d215ba33d0361d736a15ac9))
|
|
136
|
+
|
|
137
|
+
# [2.0.0](https://github.com/tamylaa/clodo-framework/compare/v1.0.0...v2.0.0) (2025-10-10)
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
### Bug Fixes
|
|
141
|
+
|
|
142
|
+
* enhance enterprise readiness with comprehensive testing roadmap and documentation ([25702d6](https://github.com/tamylaa/clodo-framework/commit/25702d624047ef40991de47eba0b8dabcfaecfa8))
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
### BREAKING CHANGES
|
|
146
|
+
|
|
147
|
+
* Framework now requires structured testing approach for enterprise deployment
|
|
148
|
+
|
|
149
|
+
# 1.0.0 (2025-10-09)
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
### Bug Fixes
|
|
153
|
+
|
|
154
|
+
* add comprehensive security validation module ([ea6cbdf](https://github.com/tamylaa/clodo-framework/commit/ea6cbdf07790266d8b2cd779f750b5e6ef622ba6))
|
|
155
|
+
* add customer configuration management ([ac7379b](https://github.com/tamylaa/clodo-framework/commit/ac7379b41e584bed229cd3a3b8ccb532eed9dcb4))
|
|
156
|
+
* add missing environment parameter to WranglerDeployer validation call ([a833ca3](https://github.com/tamylaa/clodo-framework/commit/a833ca3c1006953911453e1b383c602b96a16229))
|
|
157
|
+
* allow tests to pass when no test files exist ([70bd5b8](https://github.com/tamylaa/clodo-framework/commit/70bd5b8ee61fc7fb70e5015d1889e411c9e091b4))
|
|
158
|
+
* complete rebranding from lego-framework to clodo-framework ([1a704ba](https://github.com/tamylaa/clodo-framework/commit/1a704ba0bdd4b649c412a8b8cc202138d64c79e2))
|
|
159
|
+
* comprehensive documentation update for framework capabilities ([65c0284](https://github.com/tamylaa/clodo-framework/commit/65c0284e6bb916be2f5bd994d76aa198c77cf9fc))
|
|
160
|
+
* comprehensive framework improvements and enterprise documentation ([e77b046](https://github.com/tamylaa/clodo-framework/commit/e77b046cca0dc6ed7afc16479e588d2dece333f3))
|
|
161
|
+
* enhance deployment framework with HTTP validation, error handling, and interactive configuration ([7698f56](https://github.com/tamylaa/clodo-framework/commit/7698f56108c0b90809eaaa55e7335ac89e6dce49))
|
|
162
|
+
* ensure semantic-release works on latest commit ([5d59903](https://github.com/tamylaa/clodo-framework/commit/5d59903cab1c74266373bd6066b045da75256645))
|
|
163
|
+
* implement intelligent WranglerDeployer for actual Cloudflare deployments ([a656190](https://github.com/tamylaa/clodo-framework/commit/a6561909753b5bcb7ece0a0159772daee28dd37c))
|
|
164
|
+
* include documentation in package files ([550a734](https://github.com/tamylaa/clodo-framework/commit/550a734ef9de3f4e4afc35e85226216649e84332))
|
|
165
|
+
* Initial release of Lego Framework v1.0.0 ([6994efd](https://github.com/tamylaa/clodo-framework/commit/6994efdf0be3508ae7fe54c6d71f161d56cafef8))
|
|
166
|
+
* major framework enhancement with enterprise features and TypeScript support ([53c94fb](https://github.com/tamylaa/clodo-framework/commit/53c94fbc3adde14852ffaab9117eda09621f3a16))
|
|
167
|
+
* major framework reorganization and robustness improvements ([7aed0b5](https://github.com/tamylaa/clodo-framework/commit/7aed0b5b438bb02c081d533766951ccc89ff4d4c))
|
|
168
|
+
* make database orchestrator dependency-aware ([051f722](https://github.com/tamylaa/clodo-framework/commit/051f72269aab39d4e972cad8011430dfa86b3f7a))
|
|
169
|
+
* resolve ESLint errors and warnings ([005b591](https://github.com/tamylaa/clodo-framework/commit/005b5916faf6a57c0065d649979dcef84c466ce3))
|
|
170
|
+
* resolve ESLint warnings to enable automated release ([200dd82](https://github.com/tamylaa/clodo-framework/commit/200dd8267af2629f3cb3a1a3a30cbc96ea5bbee9))
|
|
171
|
+
* resolve ESM packaging conflict by preserving ES modules in build output ([0d13422](https://github.com/tamylaa/clodo-framework/commit/0d13422e5c7800006369b157b57d9440805d14dd))
|
|
172
|
+
* resolve GitHub Actions workflow permissions and NPM token issues ([cd53e55](https://github.com/tamylaa/clodo-framework/commit/cd53e55702e0c249e26884304115537c8a3345cf))
|
|
173
|
+
* resolve linting and type checking issues ([598e699](https://github.com/tamylaa/clodo-framework/commit/598e6999be93025d7a35c59df55c6606a59c98ac))
|
|
174
|
+
* resolve missing health-checker dependency by moving to src/utils ([64d429b](https://github.com/tamylaa/clodo-framework/commit/64d429be674855539e5f77413d9a14151d1b0ef8))
|
|
175
|
+
* update repository URLs to correct GitHub username (tamylaa) ([791ae3f](https://github.com/tamylaa/clodo-framework/commit/791ae3ff76589851a0ba09cef58d955272c6b343))
|
|
176
|
+
* Windows compatibility and ES module issues ([7ed2588](https://github.com/tamylaa/clodo-framework/commit/7ed2588d8ae2f706e5646813c1d1dad99944d50f))
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
### Features
|
|
180
|
+
|
|
181
|
+
* Add additional documentation and development tools ([0c6ca0d](https://github.com/tamylaa/clodo-framework/commit/0c6ca0d18ac7bdeef17587a592b8e7e1c549c87b))
|
|
182
|
+
* add GitHub Actions workflow for semantic release ([e097070](https://github.com/tamylaa/clodo-framework/commit/e0970708b454d87dd124371840d0eb1c91c7641c))
|
|
183
|
+
* implement comprehensive production hardening ([4a4c391](https://github.com/tamylaa/clodo-framework/commit/4a4c3917fc3ba624ff61ac79cde1df7c40b6aa33))
|
|
184
|
+
* initial commercial release of Clodo Framework ([647e271](https://github.com/tamylaa/clodo-framework/commit/647e271dd0718b8a5fc4082bc1ac9be1216f9fe2))
|
|
185
|
+
* Rebrand to Clodo Framework v3.0.6 ([03e6923](https://github.com/tamylaa/clodo-framework/commit/03e69232dc60e139601320fce7c1c88c55d6254f))
|
|
186
|
+
* trigger initial Clodo Framework v1.0.0 release ([98bcd76](https://github.com/tamylaa/clodo-framework/commit/98bcd764a1aa1cfe4199d820e02be584619ea11c))
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
### BREAKING CHANGES
|
|
190
|
+
|
|
191
|
+
* Deployments now require security validation by default
|
|
192
|
+
* Enhanced framework with advanced caching, validation, and security features
|
|
193
|
+
|
|
194
|
+
- Enhanced SchemaManager with comprehensive validation and SQL caching (~750 lines)
|
|
195
|
+
- Enhanced GenericDataService with query caching and security controls (~580 lines)
|
|
196
|
+
- Enhanced ModuleManager with enterprise hook execution (~650 lines)
|
|
197
|
+
- Added FeatureManager for progressive enhancement with 20+ feature flags
|
|
198
|
+
- Added VersionDetector for automatic configuration and migration
|
|
199
|
+
- Added MigrationAdapters for backwards compatibility
|
|
200
|
+
- Added comprehensive TypeScript definitions (500+ lines)
|
|
201
|
+
- Enhanced build pipeline with TypeScript checking
|
|
202
|
+
- Fixed critical parsing errors and linting issues
|
|
203
|
+
- 60%+ code duplication reduction through framework consolidation
|
|
204
|
+
|
|
205
|
+
All breaking changes include backwards compatibility via migration adapters.
|
|
206
|
+
|
|
131
207
|
## [3.0.6](https://github.com/tamylaa/clodo-framework/compare/v3.0.5...v3.0.6) (2025-10-07)
|
|
132
208
|
|
|
133
209
|
|
package/README.md
CHANGED
|
@@ -105,6 +105,84 @@ npx @tamyla/clodo-framework security deploy customer production
|
|
|
105
105
|
- **โก Performance Optimized**: Intelligent caching system for schemas, SQL queries, and validation results
|
|
106
106
|
- **๐ Advanced Data Operations**: Enhanced CRUD with relationships, advanced pagination, and query optimization
|
|
107
107
|
|
|
108
|
+
## ๐ What's New in v2.0.7
|
|
109
|
+
|
|
110
|
+
### ๐ง Enhanced Customer Configuration System
|
|
111
|
+
The customer configuration CLI now **reads directly from your wrangler.toml** file, providing a single source of truth for deployment configuration:
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
# List all customers with complete deployment metadata
|
|
115
|
+
npx @tamyla/clodo-framework customer list
|
|
116
|
+
|
|
117
|
+
# Specify custom config directory
|
|
118
|
+
npx @tamyla/clodo-framework customer list --config-dir /path/to/config
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
**What you see now:**
|
|
122
|
+
- โ
Account ID from wrangler.toml
|
|
123
|
+
- โ
Zone ID from wrangler.toml
|
|
124
|
+
- โ
Customer domain from environment config
|
|
125
|
+
- โ
Service domain from wrangler.toml
|
|
126
|
+
- โ
Worker name and database info
|
|
127
|
+
- โ
Secrets status
|
|
128
|
+
|
|
129
|
+
All **6 core deployment pieces** in one command - no more hunting through multiple files!
|
|
130
|
+
|
|
131
|
+
### โ๏ธ New CloudflareAPI Utility
|
|
132
|
+
Programmatic Cloudflare operations without CLI dependencies:
|
|
133
|
+
|
|
134
|
+
```javascript
|
|
135
|
+
import { CloudflareAPI } from '@tamyla/clodo-framework/utils/cloudflare';
|
|
136
|
+
|
|
137
|
+
const cf = new CloudflareAPI(apiToken);
|
|
138
|
+
|
|
139
|
+
// Verify token permissions
|
|
140
|
+
const isValid = await cf.verifyToken();
|
|
141
|
+
|
|
142
|
+
// List all zones/domains
|
|
143
|
+
const zones = await cf.listZones();
|
|
144
|
+
|
|
145
|
+
// Get zone details (account_id, zone_id, etc.)
|
|
146
|
+
const details = await cf.getZoneDetails(zoneId);
|
|
147
|
+
|
|
148
|
+
// List D1 databases
|
|
149
|
+
const databases = await cf.listD1Databases(accountId);
|
|
150
|
+
|
|
151
|
+
// Get complete deployment info
|
|
152
|
+
const info = await cf.getDeploymentInfo(zoneId);
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
### ๐ TOML Configuration Writing
|
|
156
|
+
Dynamic wrangler.toml updates from code:
|
|
157
|
+
|
|
158
|
+
```javascript
|
|
159
|
+
import {
|
|
160
|
+
updateWranglerToml,
|
|
161
|
+
addD1Database,
|
|
162
|
+
updateEnvironmentConfig
|
|
163
|
+
} from '@tamyla/clodo-framework/config/customers';
|
|
164
|
+
|
|
165
|
+
// Add a new D1 database binding
|
|
166
|
+
await addD1Database('production', 'my-database', 'database-uuid-123');
|
|
167
|
+
|
|
168
|
+
// Update environment config
|
|
169
|
+
await updateEnvironmentConfig('production', {
|
|
170
|
+
vars: { SERVICE_DOMAIN: 'api.example.com' }
|
|
171
|
+
});
|
|
172
|
+
|
|
173
|
+
// Update any wrangler.toml section
|
|
174
|
+
await updateWranglerToml({
|
|
175
|
+
name: 'my-worker',
|
|
176
|
+
compatibility_date: '2025-01-01'
|
|
177
|
+
});
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
### ๐งน Code Quality Improvements
|
|
181
|
+
- **Removed 180 lines** of duplicate secret management code
|
|
182
|
+
- **Consolidated Cloudflare utilities** under `src/utils/cloudflare/`
|
|
183
|
+
- **Single source of truth** for Cloudflare operations (API vs CLI)
|
|
184
|
+
- **Better organization** - clear separation between framework and CLI utilities
|
|
185
|
+
|
|
108
186
|
## ๐งช Downstream Service Testing & Validation
|
|
109
187
|
|
|
110
188
|
The CLODO Framework provides comprehensive capabilities for testing, validating, and deploying Cloudflare Workers in downstream environments - perfect for ensuring services work correctly in third-party accounts and production environments.
|
package/bin/clodo-service.js
CHANGED
|
@@ -479,16 +479,31 @@ program
|
|
|
479
479
|
if (!coreInputs.cloudflareAccountId) {
|
|
480
480
|
console.log(chalk.cyan('๐ Tier 1: Core Input Collection\n'));
|
|
481
481
|
|
|
482
|
-
//
|
|
482
|
+
// Collect basic info
|
|
483
|
+
const customer = options.customer || await inputCollector.question('Customer name: ');
|
|
484
|
+
const environment = options.env || await inputCollector.collectEnvironment();
|
|
485
|
+
const serviceName = await inputCollector.collectServiceName();
|
|
486
|
+
const serviceType = await inputCollector.collectServiceType();
|
|
487
|
+
|
|
488
|
+
// Collect Cloudflare token
|
|
489
|
+
const cloudflareToken = process.env.CLOUDFLARE_API_TOKEN || await inputCollector.collectCloudflareToken();
|
|
490
|
+
|
|
491
|
+
// Use CloudflareAPI for automatic domain discovery
|
|
492
|
+
const cloudflareConfig = await inputCollector.collectCloudflareConfigWithDiscovery(
|
|
493
|
+
cloudflareToken,
|
|
494
|
+
options.domain
|
|
495
|
+
);
|
|
496
|
+
|
|
497
|
+
// Combine all inputs
|
|
483
498
|
coreInputs = {
|
|
484
|
-
customer
|
|
485
|
-
environment
|
|
486
|
-
serviceName
|
|
487
|
-
serviceType
|
|
488
|
-
domainName:
|
|
489
|
-
cloudflareToken
|
|
490
|
-
cloudflareAccountId:
|
|
491
|
-
cloudflareZoneId:
|
|
499
|
+
customer,
|
|
500
|
+
environment,
|
|
501
|
+
serviceName,
|
|
502
|
+
serviceType,
|
|
503
|
+
domainName: cloudflareConfig.domainName,
|
|
504
|
+
cloudflareToken,
|
|
505
|
+
cloudflareAccountId: cloudflareConfig.accountId,
|
|
506
|
+
cloudflareZoneId: cloudflareConfig.zoneId
|
|
492
507
|
};
|
|
493
508
|
|
|
494
509
|
source = 'interactive';
|