@tamyla/clodo-framework 4.6.0 → 4.6.2
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 +14 -0
- package/dist/cli/commands/doctor.js +18 -1
- package/dist/index.js +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [4.6.2](https://github.com/tamylaa/clodo-framework/compare/v4.6.1...v4.6.2) (2026-02-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **cli:** make Doctor command load ValidationHandler at runtime (works from src & dist); test: add regression test for doctor in dist CLI ([fd7437d](https://github.com/tamylaa/clodo-framework/commit/fd7437d1a3df227ff8a35089d90f2ef82d99714a))
|
|
7
|
+
|
|
8
|
+
## [4.6.1](https://github.com/tamylaa/clodo-framework/compare/v4.6.0...v4.6.1) (2026-02-18)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **security:** export SecretsManager from main index ([2884b9d](https://github.com/tamylaa/clodo-framework/commit/2884b9d880f75cc924803d6070e3603bf46929d9))
|
|
14
|
+
|
|
1
15
|
# [4.6.0](https://github.com/tamylaa/clodo-framework/compare/v4.5.1...v4.6.0) (2026-02-18)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -3,8 +3,25 @@
|
|
|
3
3
|
* Provides preflight diagnostic checks for Clodo services
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { ValidationHandler } from '../../src/service-management/handlers/ValidationHandler.js';
|
|
7
6
|
import chalk from 'chalk';
|
|
7
|
+
|
|
8
|
+
// ValidationHandler is loaded at runtime so the same command module works
|
|
9
|
+
// both when running from source (imports from `src/...`) and from the
|
|
10
|
+
// compiled distribution (imports from `dist/...`). We attempt the source
|
|
11
|
+
// import first, then fall back to the dist path.
|
|
12
|
+
async function loadValidationHandler() {
|
|
13
|
+
try {
|
|
14
|
+
return (await import('../../src/service-management/handlers/ValidationHandler.js')).ValidationHandler;
|
|
15
|
+
} catch (errSource) {
|
|
16
|
+
// running from dist/ (compiled package)
|
|
17
|
+
try {
|
|
18
|
+
return (await import('../../service-management/handlers/ValidationHandler.js')).ValidationHandler;
|
|
19
|
+
} catch (errDist) {
|
|
20
|
+
// last-resort: try explicit dist path (useful in some CI/dev layouts)
|
|
21
|
+
return (await import('../../../dist/service-management/handlers/ValidationHandler.js')).ValidationHandler;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
8
25
|
export function registerDoctorCommand(program) {
|
|
9
26
|
program.command('doctor').description('Run preflight diagnostic checks for service health and deployment readiness').option('--json', 'Output results in JSON format for machine consumption').option('--fix', 'Attempt to automatically fix detected issues').option('--strict', 'Treat warnings as errors (non-zero exit code)').option('--service-path <path>', 'Path to service directory (defaults to current directory)').action(async options => {
|
|
10
27
|
try {
|
package/dist/index.js
CHANGED
|
@@ -45,6 +45,7 @@ export { DeploymentAuditor } from './deployment/auditor.js';
|
|
|
45
45
|
export { SecurityCLI } from './security/SecurityCLI.js';
|
|
46
46
|
export { ConfigurationValidator } from './security/ConfigurationValidator.js';
|
|
47
47
|
export { SecretGenerator } from './security/SecretGenerator.js';
|
|
48
|
+
export { SecretsManager } from './security/SecretsManager.js';
|
|
48
49
|
export { EnvironmentValidator } from './utils/EnvironmentValidator.js';
|
|
49
50
|
|
|
50
51
|
// Service management components
|