@tamyla/clodo-framework 3.1.10 → 3.1.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.
Files changed (86) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/bin/clodo-service-old.js +2 -2
  3. package/dist/bin/commands/create.js +1 -1
  4. package/dist/bin/commands/diagnose.js +1 -1
  5. package/dist/bin/commands/update.js +1 -1
  6. package/dist/bin/commands/validate.js +1 -1
  7. package/dist/bin/database/enterprise-db-manager.js +3 -3
  8. package/dist/bin/deployment/enterprise-deploy.js +3 -3
  9. package/dist/bin/deployment/master-deploy.js +3 -3
  10. package/dist/bin/deployment/modular-enterprise-deploy.js +3 -3
  11. package/dist/bin/deployment/modules/DeploymentOrchestrator.js +1 -1
  12. package/dist/bin/deployment/modules/EnvironmentManager.js +2 -2
  13. package/dist/bin/portfolio/portfolio-manager.js +3 -3
  14. package/dist/bin/security/security-cli.js +1 -1
  15. package/dist/bin/service-management/create-service.js +1 -1
  16. package/dist/bin/service-management/init-service.js +1 -1
  17. package/dist/bin/shared/cloudflare/domain-manager.js +1 -1
  18. package/dist/bin/shared/validation/ValidationRegistry.js +1 -1
  19. package/dist/deployment/wrangler-deployer.js +1 -1
  20. package/dist/orchestration/cross-domain-coordinator.js +5 -5
  21. package/dist/security/index.js +1 -1
  22. package/dist/service-management/ConfirmationEngine.js +1 -1
  23. package/dist/service-management/ErrorTracker.js +1 -1
  24. package/dist/service-management/InputCollector.js +1 -1
  25. package/dist/service-management/ServiceCreator.js +1 -1
  26. package/dist/service-management/ServiceInitializer.js +1 -1
  27. package/dist/utils/config/unified-config-manager.js +1 -1
  28. package/dist/utils/deployment/config-cache.js +1 -1
  29. package/dist/utils/deployment/secret-generator.js +1 -1
  30. package/dist/utils/framework-config.js +1 -1
  31. package/dist/worker/integration.js +1 -1
  32. package/package.json +1 -6
  33. package/bin/README.md +0 -71
  34. package/bin/clodo-service.js +0 -72
  35. package/bin/database/README.md +0 -33
  36. package/bin/database/deployment-db-manager.js +0 -527
  37. package/bin/database/enterprise-db-manager.js +0 -738
  38. package/bin/database/wrangler-d1-manager.js +0 -775
  39. package/bin/security/security-cli.js +0 -117
  40. package/bin/service-management/README.md +0 -74
  41. package/bin/service-management/create-service.js +0 -129
  42. package/bin/service-management/init-service.js +0 -103
  43. package/bin/service-management/init-service.js.backup +0 -889
  44. package/bin/shared/cloudflare/domain-discovery.js +0 -637
  45. package/bin/shared/cloudflare/domain-manager.js +0 -952
  46. package/bin/shared/cloudflare/index.js +0 -8
  47. package/bin/shared/cloudflare/ops.js +0 -401
  48. package/bin/shared/config/ConfigurationManager.js +0 -539
  49. package/bin/shared/config/cache.js +0 -1230
  50. package/bin/shared/config/command-config-manager.js +0 -184
  51. package/bin/shared/config/index.js +0 -21
  52. package/bin/shared/config/manager.js +0 -315
  53. package/bin/shared/database/connection-manager.js +0 -374
  54. package/bin/shared/database/index.js +0 -7
  55. package/bin/shared/database/orchestrator.js +0 -727
  56. package/bin/shared/deployment/auditor.js +0 -970
  57. package/bin/shared/deployment/index.js +0 -10
  58. package/bin/shared/deployment/rollback-manager.js +0 -570
  59. package/bin/shared/deployment/validator.js +0 -779
  60. package/bin/shared/index.js +0 -32
  61. package/bin/shared/logging/Logger.js +0 -214
  62. package/bin/shared/monitoring/health-checker.js +0 -484
  63. package/bin/shared/monitoring/index.js +0 -8
  64. package/bin/shared/monitoring/memory-manager.js +0 -387
  65. package/bin/shared/monitoring/production-monitor.js +0 -403
  66. package/bin/shared/production-tester/api-tester.js +0 -82
  67. package/bin/shared/production-tester/auth-tester.js +0 -132
  68. package/bin/shared/production-tester/core.js +0 -197
  69. package/bin/shared/production-tester/database-tester.js +0 -109
  70. package/bin/shared/production-tester/index.js +0 -77
  71. package/bin/shared/production-tester/load-tester.js +0 -131
  72. package/bin/shared/production-tester/performance-tester.js +0 -103
  73. package/bin/shared/security/api-token-manager.js +0 -312
  74. package/bin/shared/security/index.js +0 -8
  75. package/bin/shared/security/secret-generator.js +0 -942
  76. package/bin/shared/security/secure-token-manager.js +0 -398
  77. package/bin/shared/utils/ErrorHandler.js +0 -675
  78. package/bin/shared/utils/error-recovery.js +0 -245
  79. package/bin/shared/utils/file-manager.js +0 -162
  80. package/bin/shared/utils/formatters.js +0 -247
  81. package/bin/shared/utils/graceful-shutdown-manager.js +0 -390
  82. package/bin/shared/utils/index.js +0 -19
  83. package/bin/shared/utils/interactive-prompts.js +0 -146
  84. package/bin/shared/utils/interactive-utils.js +0 -530
  85. package/bin/shared/utils/rate-limiter.js +0 -246
  86. package/bin/shared/validation/ValidationRegistry.js +0 -143
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [3.1.12](https://github.com/tamylaa/clodo-framework/compare/v3.1.11...v3.1.12) (2025-10-27)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * update babel import rewriter to handle bin/ paths too ([6e26172](https://github.com/tamylaa/clodo-framework/commit/6e26172bbc2f697a59de0ea5567665094d4027b1))
7
+
8
+ ## [3.1.11](https://github.com/tamylaa/clodo-framework/compare/v3.1.10...v3.1.11) (2025-10-27)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * add babel import path rewriter and remove source bin from package files ([91f19d4](https://github.com/tamylaa/clodo-framework/commit/91f19d48791d604497ff708a5c7a836100e6885a))
14
+
1
15
  ## [3.1.10](https://github.com/tamylaa/clodo-framework/compare/v3.1.9...v3.1.10) (2025-10-27)
2
16
 
3
17
 
@@ -15,8 +15,8 @@ import { Command } from 'commander';
15
15
  import { createInterface } from 'readline';
16
16
  import chalk from 'chalk';
17
17
  import { join } from 'path';
18
- import { ServiceOrchestrator } from '../dist/service-management/ServiceOrchestrator.js';
19
- import { InputCollector } from '../dist/service-management/InputCollector.js';
18
+ import { ServiceOrchestrator } from "../service-management/ServiceOrchestrator.js";
19
+ import { InputCollector } from "../service-management/InputCollector.js";
20
20
  import { readFileSync, existsSync } from 'fs';
21
21
  import { resolve } from 'path';
22
22
  const program = new Command();
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  import chalk from 'chalk';
9
- import { ServiceOrchestrator } from '../../src/service-management/ServiceOrchestrator.js';
9
+ import { ServiceOrchestrator } from "../../service-management/ServiceOrchestrator.js";
10
10
  export function registerCreateCommand(program) {
11
11
  program.command('create').description('Create a new Clodo service with conversational setup').option('-n, --non-interactive', 'Run in non-interactive mode with all required parameters').option('--service-name <name>', 'Service name (required in non-interactive mode)').option('--service-type <type>', 'Service type: data-service, auth-service, content-service, api-gateway, generic', 'generic').option('--domain-name <domain>', 'Domain name (required in non-interactive mode)').option('--cloudflare-token <token>', 'Cloudflare API token (required in non-interactive mode)').option('--cloudflare-account-id <id>', 'Cloudflare account ID (required in non-interactive mode)').option('--cloudflare-zone-id <id>', 'Cloudflare zone ID (required in non-interactive mode)').option('--environment <env>', 'Target environment: development, staging, production', 'development').option('--output-path <path>', 'Output directory for generated service', '.').option('--template-path <path>', 'Path to service templates', './templates').action(async options => {
12
12
  try {
@@ -3,7 +3,7 @@
3
3
  */
4
4
 
5
5
  import chalk from 'chalk';
6
- import { ServiceOrchestrator } from '../../src/service-management/ServiceOrchestrator.js';
6
+ import { ServiceOrchestrator } from "../../service-management/ServiceOrchestrator.js";
7
7
  export function registerDiagnoseCommand(program) {
8
8
  program.command('diagnose [service-path]').description('Diagnose and report issues with an existing service').option('--deep-scan', 'Perform deep analysis including dependencies and deployment readiness').option('--export-report <file>', 'Export diagnostic report to file').action(async (servicePath, options) => {
9
9
  try {
@@ -3,7 +3,7 @@
3
3
  */
4
4
 
5
5
  import chalk from 'chalk';
6
- import { ServiceOrchestrator } from '../../src/service-management/ServiceOrchestrator.js';
6
+ import { ServiceOrchestrator } from "../../service-management/ServiceOrchestrator.js";
7
7
  export function registerUpdateCommand(program) {
8
8
  program.command('update [service-path]').description('Update an existing service configuration').option('-i, --interactive', 'Run in interactive mode to select what to update').option('--domain-name <domain>', 'Update domain name').option('--cloudflare-token <token>', 'Update Cloudflare API token').option('--cloudflare-account-id <id>', 'Update Cloudflare account ID').option('--cloudflare-zone-id <id>', 'Update Cloudflare zone ID').option('--environment <env>', 'Update target environment: development, staging, production').option('--add-feature <feature>', 'Add a feature flag').option('--remove-feature <feature>', 'Remove a feature flag').option('--regenerate-configs', 'Regenerate all configuration files').option('--fix-errors', 'Attempt to fix common configuration errors').action(async (servicePath, options) => {
9
9
  try {
@@ -3,7 +3,7 @@
3
3
  */
4
4
 
5
5
  import chalk from 'chalk';
6
- import { ServiceOrchestrator } from '../../src/service-management/ServiceOrchestrator.js';
6
+ import { ServiceOrchestrator } from "../../service-management/ServiceOrchestrator.js";
7
7
  export function registerValidateCommand(program) {
8
8
  program.command('validate <service-path>').description('Validate an existing service configuration').action(async servicePath => {
9
9
  try {
@@ -25,9 +25,9 @@ import { existsSync, readFileSync, writeFileSync } from 'fs';
25
25
  import { join } from 'path';
26
26
 
27
27
  // Enterprise module imports - from src/ (framework source)
28
- import { DatabaseOrchestrator } from '../../src/database/database-orchestrator.js';
29
- import { DeploymentAuditor } from '../../src/deployment/deployment-auditor.js';
30
- import { CrossDomainCoordinator } from '../../src/orchestration/cross-domain-coordinator.js';
28
+ import { DatabaseOrchestrator } from "../../database/database-orchestrator.js";
29
+ import { DeploymentAuditor } from "../../deployment/deployment-auditor.js";
30
+ import { CrossDomainCoordinator } from "../../orchestration/cross-domain-coordinator.js";
31
31
 
32
32
  // Shared utilities from bin/shared/
33
33
  import { ConfigurationCacheManager } from '../shared/config/cache.js';
@@ -25,16 +25,16 @@ import { existsSync, readFileSync } from 'fs';
25
25
  import { join } from 'path';
26
26
 
27
27
  // Enterprise module imports - organized shared modules
28
- import { MultiDomainOrchestrator } from '../../src/orchestration/multi-domain-orchestrator.js';
28
+ import { MultiDomainOrchestrator } from "../../orchestration/multi-domain-orchestrator.js";
29
29
  import { RollbackManager } from '../shared/deployment/rollback-manager.js';
30
30
  import { ProductionTester } from '../shared/production-tester/index.js';
31
31
  import { DeploymentValidator } from '../shared/deployment/validator.js';
32
32
  import { DomainDiscovery } from '../shared/cloudflare/domain-discovery.js';
33
- import { DatabaseOrchestrator } from '../../src/database/database-orchestrator.js';
33
+ import { DatabaseOrchestrator } from "../../database/database-orchestrator.js";
34
34
  import { EnhancedSecretManager } from '../shared/security/secret-generator.js';
35
35
  import { DeploymentAuditor } from '../shared/deployment/auditor.js';
36
36
  import { ConfigurationCacheManager } from '../shared/config/cache.js';
37
- import { CrossDomainCoordinator } from '../../src/orchestration/cross-domain-coordinator.js';
37
+ import { CrossDomainCoordinator } from "../../orchestration/cross-domain-coordinator.js";
38
38
  import { askChoice, askUser, closePrompts } from '../shared/utils/interactive-prompts.js';
39
39
  import { CloudflareDomainManager } from '../shared/cloudflare/domain-manager.js';
40
40
 
@@ -30,14 +30,14 @@ import { promisify } from 'util';
30
30
  import { join } from 'path';
31
31
  import { existsSync, readFileSync, writeFileSync, mkdirSync } from 'fs';
32
32
  const execAsync = promisify(exec);
33
- import { MultiDomainOrchestrator } from '../../src/orchestration/multi-domain-orchestrator.js';
34
- import { CrossDomainCoordinator } from '../../src/orchestration/cross-domain-coordinator.js';
33
+ import { MultiDomainOrchestrator } from "../../orchestration/multi-domain-orchestrator.js";
34
+ import { CrossDomainCoordinator } from "../../orchestration/cross-domain-coordinator.js";
35
35
  import { RollbackManager } from '../shared/deployment/rollback-manager.js';
36
36
  import { ProductionTester } from '../shared/production-tester/index.js';
37
37
  import { DeploymentAuditor } from '../shared/deployment/auditor.js';
38
38
  import { DeploymentValidator } from '../shared/deployment/validator.js';
39
39
  import { DomainDiscovery } from '../shared/cloudflare/domain-discovery.js';
40
- import { DatabaseOrchestrator } from '../../src/database/database-orchestrator.js';
40
+ import { DatabaseOrchestrator } from "../../database/database-orchestrator.js";
41
41
 
42
42
  // New modular architecture components
43
43
  import { DeploymentConfiguration } from './modules/DeploymentConfiguration.js';
@@ -33,10 +33,10 @@ import { MonitoringIntegration } from './modules/MonitoringIntegration.js';
33
33
  import { DeploymentOrchestrator } from './modules/DeploymentOrchestrator.js';
34
34
 
35
35
  // Enterprise modules (optional)
36
- import { MultiDomainOrchestrator } from '../../src/orchestration/multi-domain-orchestrator.js';
37
- import { CrossDomainCoordinator } from '../../src/orchestration/cross-domain-coordinator.js';
36
+ import { MultiDomainOrchestrator } from "../../orchestration/multi-domain-orchestrator.js";
37
+ import { CrossDomainCoordinator } from "../../orchestration/cross-domain-coordinator.js";
38
38
  import { DeploymentValidator } from '../shared/deployment/validator.js';
39
- import { DatabaseOrchestrator } from '../../src/database/database-orchestrator.js';
39
+ import { DatabaseOrchestrator } from "../../database/database-orchestrator.js";
40
40
  import { EnhancedSecretManager } from '../shared/security/secret-generator.js';
41
41
  import { ProductionTester } from '../shared/production-tester/index.js';
42
42
  import { DeploymentAuditor } from '../shared/deployment/auditor.js';
@@ -6,7 +6,7 @@
6
6
 
7
7
  import { readFileSync, writeFileSync } from 'fs';
8
8
  import { deploySecret, runMigrations, checkHealth } from '../../shared/cloudflare/ops.js';
9
- import { WranglerDeployer } from '../../dist/deployment/wrangler-deployer.js';
9
+ import { WranglerDeployer } from "../../deployment/wrangler-deployer.js";
10
10
  import { DeploymentDatabaseManager } from '../../database/deployment-db-manager.js';
11
11
  import { DeploymentConfiguration } from './DeploymentConfiguration.js';
12
12
 
@@ -3,8 +3,8 @@
3
3
  * Handles environment configuration, domain mapping, deployment mode selection, and cross-domain coordination
4
4
  */
5
5
 
6
- import { MultiDomainOrchestrator } from '../../../dist/orchestration/multi-domain-orchestrator.js';
7
- import { CrossDomainCoordinator } from '../../../dist/orchestration/cross-domain-coordinator.js';
6
+ import { MultiDomainOrchestrator } from "../../../orchestration/multi-domain-orchestrator.js";
7
+ import { CrossDomainCoordinator } from "../../../orchestration/cross-domain-coordinator.js";
8
8
  import { DomainDiscovery } from '../../shared/cloudflare/domain-discovery.js';
9
9
  import { askChoice, askUser, askYesNo, DeploymentInteractiveUtils } from '../../shared/utils/interactive-utils.js';
10
10
  export class EnvironmentManager {
@@ -26,11 +26,11 @@ import { join } from 'path';
26
26
  import { createWriteStream } from 'fs';
27
27
 
28
28
  // Enterprise module imports - organized shared modules
29
- import { CrossDomainCoordinator } from '../../src/orchestration/cross-domain-coordinator.js';
30
- import { MultiDomainOrchestrator } from '../../src/orchestration/multi-domain-orchestrator.js';
29
+ import { CrossDomainCoordinator } from "../../orchestration/cross-domain-coordinator.js";
30
+ import { MultiDomainOrchestrator } from "../../orchestration/multi-domain-orchestrator.js";
31
31
  import { DeploymentValidator } from '../shared/deployment/validator.js';
32
32
  import { DomainDiscovery } from '../shared/cloudflare/domain-discovery.js';
33
- import { DatabaseOrchestrator } from '../../src/database/database-orchestrator.js';
33
+ import { DatabaseOrchestrator } from "../../database/database-orchestrator.js";
34
34
  import { EnhancedSecretManager } from '../shared/security/secret-generator.js';
35
35
  import { ConfigurationCacheManager } from '../shared/config/cache.js';
36
36
  import { ProductionTester } from '../shared/production-tester/index.js';
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { SecurityCLI } from '../../src/security/SecurityCLI.js';
2
+ import { SecurityCLI } from "../../security/SecurityCLI.js";
3
3
  const command = process.argv[2];
4
4
  const args = process.argv.slice(3);
5
5
  async function main() {
@@ -4,7 +4,7 @@
4
4
  * Clodo Framework - Service Template Generator
5
5
  * Creates new ser console.log(`✓ Using Clodo Framework ServiceCreator module`);ices from predefined templates
6
6
  */
7
- import { ServiceCreator } from '../../src/service-management/ServiceCreator.js';
7
+ import { ServiceCreator } from "../../service-management/ServiceCreator.js";
8
8
  const SERVICE_TYPES = ['data-service', 'auth-service', 'content-service', 'api-gateway', 'generic'];
9
9
  function showUsage() {
10
10
  console.log(`
@@ -10,7 +10,7 @@
10
10
  * generation the first step, not a prerequisite.
11
11
  */
12
12
  import { program } from 'commander';
13
- import { ServiceInitializer } from '../../src/service-management/ServiceInitializer.js';
13
+ import { ServiceInitializer } from "../../service-management/ServiceInitializer.js";
14
14
  const SERVICE_TYPES = ['generic', 'data-service', 'auth-service', 'content-service', 'api-gateway'];
15
15
  class ServiceInitializerCLI {
16
16
  constructor() {
@@ -15,7 +15,7 @@ import { promisify } from 'util';
15
15
  import { exec } from 'child_process';
16
16
  import { askChoice, askYesNo } from '../utils/interactive-prompts.js';
17
17
  import { DomainDiscovery } from './domain-discovery.js';
18
- import { MultiDomainOrchestrator } from '../../../src/orchestration/multi-domain-orchestrator.js';
18
+ import { MultiDomainOrchestrator } from "../../../orchestration/multi-domain-orchestrator.js";
19
19
  import { getCommandConfig } from '../config/command-config-manager.js';
20
20
  import { CloudflareTokenManager } from '../security/api-token-manager.js';
21
21
  const execAsync = promisify(exec);
@@ -8,7 +8,7 @@
8
8
  /**
9
9
  * Import validators from src/utils (source of truth)
10
10
  */
11
- import { validateServiceName, validateDomainName, validateCloudflareToken, validateCloudflareId, validateServiceType, validateEnvironment } from '../../../src/utils/validation.js';
11
+ import { validateServiceName, validateDomainName, validateCloudflareToken, validateCloudflareId, validateServiceType, validateEnvironment } from "../../../utils/validation.js";
12
12
 
13
13
  /**
14
14
  * Validation Registry - Single source of truth for all validators
@@ -2,7 +2,7 @@ import { spawn } from 'child_process';
2
2
  import { execSync } from 'child_process';
3
3
  import fs from 'fs';
4
4
  import path from 'path';
5
- import { WranglerD1Manager } from '../../bin/database/wrangler-d1-manager.js';
5
+ import { WranglerD1Manager } from "../../dist/bin/database/wrangler-d1-manager.js";
6
6
 
7
7
  /**
8
8
  * WranglerDeployer - Executes actual Cloudflare Workers deployments using wrangler CLI
@@ -19,13 +19,13 @@
19
19
 
20
20
  import { access } from 'fs/promises';
21
21
  import { MultiDomainOrchestrator } from './multi-domain-orchestrator.js';
22
- import { DeploymentValidator } from '../../bin/shared/deployment/validator.js';
23
- import { RollbackManager } from '../../bin/shared/deployment/rollback-manager.js';
24
- import { DomainDiscovery } from '../../bin/shared/cloudflare/domain-discovery.js';
22
+ import { DeploymentValidator } from "../../dist/bin/shared/deployment/validator.js";
23
+ import { RollbackManager } from "../../dist/bin/shared/deployment/rollback-manager.js";
24
+ import { DomainDiscovery } from "../../dist/bin/shared/cloudflare/domain-discovery.js";
25
25
  import { DatabaseOrchestrator } from '../database/database-orchestrator.js';
26
26
  import { EnhancedSecretManager } from '../utils/deployment/secret-generator.js';
27
- import { ProductionTester } from '../../bin/shared/production-tester/index.js';
28
- import { DeploymentAuditor } from '../../bin/shared/deployment/auditor.js';
27
+ import { ProductionTester } from "../../dist/bin/shared/production-tester/index.js";
28
+ import { DeploymentAuditor } from "../../dist/bin/shared/deployment/auditor.js";
29
29
  import { ConfigurationCacheManager } from '../utils/deployment/config-cache.js';
30
30
  export class CrossDomainCoordinator {
31
31
  constructor(options = {}) {
@@ -6,7 +6,7 @@
6
6
  import { ConfigurationValidator } from './ConfigurationValidator.js';
7
7
  // DeploymentManager removed - replaced by MultiDomainOrchestrator + WranglerConfigManager
8
8
  import { SecretGenerator } from './SecretGenerator.js';
9
- import { ErrorHandler } from '../../bin/shared/utils/index.js';
9
+ import { ErrorHandler } from "../../dist/bin/shared/utils/index.js";
10
10
  // InteractiveDeploymentConfigurator removed - replaced by InputCollector
11
11
 
12
12
  export { ConfigurationValidator } from './ConfigurationValidator.js';
@@ -34,7 +34,7 @@
34
34
  import { createInterface } from 'readline';
35
35
  import chalk from 'chalk';
36
36
  import { validateServiceName, validateDomainName } from '../utils/validation.js';
37
- import { NameFormatters, UrlFormatters, ResourceFormatters } from '../../bin/shared/utils/Formatters.js';
37
+ import { NameFormatters, UrlFormatters, ResourceFormatters } from "../../dist/bin/shared/utils/Formatters.js";
38
38
  export class ConfirmationEngine {
39
39
  constructor(options = {}) {
40
40
  this.interactive = options.interactive !== false;
@@ -8,7 +8,7 @@
8
8
  import fs from 'fs/promises';
9
9
  import path from 'path';
10
10
  import chalk from 'chalk';
11
- import { logger } from '../../bin/shared/logging/Logger.js';
11
+ import { logger } from "../../dist/bin/shared/logging/Logger.js";
12
12
  export class ErrorTracker {
13
13
  constructor() {
14
14
  this.errors = [];
@@ -15,7 +15,7 @@ import { createInterface } from 'readline';
15
15
  import chalk from 'chalk';
16
16
  import { validateServiceName, validateDomainName } from '../utils/validation.js';
17
17
  import { uiStructuresLoader } from '../utils/ui-structures-loader.js';
18
- import { NameFormatters, UrlFormatters, ResourceFormatters } from '../../bin/shared/utils/Formatters.js';
18
+ import { NameFormatters, UrlFormatters, ResourceFormatters } from "../../dist/bin/shared/utils/Formatters.js";
19
19
 
20
20
  // Assessment capabilities moved to @tamyla/clodo-orchestration (professional edition)
21
21
 
@@ -7,7 +7,7 @@ import { readdirSync, statSync, cpSync, rmSync } from 'fs';
7
7
  import { join, dirname, resolve } from 'path';
8
8
  import { fileURLToPath } from 'url';
9
9
  import { FrameworkConfig } from '../utils/framework-config.js';
10
- import { FileManager } from '../../bin/shared/utils/file-manager.js';
10
+ import { FileManager } from "../../dist/bin/shared/utils/file-manager.js";
11
11
  const SERVICE_TYPES = ['data-service', 'auth-service', 'content-service', 'api-gateway', 'generic'];
12
12
  export class ServiceCreator {
13
13
  constructor(options = {}) {
@@ -6,7 +6,7 @@
6
6
  import { readdirSync } from 'fs';
7
7
  import { join, dirname, resolve } from 'path';
8
8
  import { fileURLToPath } from 'url';
9
- import { FileManager } from '../../bin/shared/utils/file-manager.js';
9
+ import { FileManager } from "../../dist/bin/shared/utils/file-manager.js";
10
10
 
11
11
  // Get framework root - handle both ES module and CommonJS environments
12
12
  const getFrameworkRoot = () => {
@@ -15,7 +15,7 @@
15
15
  import { readdirSync, statSync } from 'fs';
16
16
  import { resolve, join } from 'path';
17
17
  import { getDirname } from '../esm-helper.js';
18
- import { FileManager } from '../../../bin/shared/utils/file-manager.js';
18
+ import { FileManager } from "../../../dist/bin/shared/utils/file-manager.js";
19
19
  const __dirname = getDirname(import.meta.url, 'src/utils/config');
20
20
 
21
21
  // Simple inline logger to avoid circular dependency with index.js
@@ -22,7 +22,7 @@ import { join, dirname } from 'path';
22
22
  import { promisify } from 'util';
23
23
  import { exec } from 'child_process';
24
24
  import { frameworkConfig } from '../framework-config.js';
25
- import { NameFormatters } from '../../../bin/shared/utils/Formatters.js';
25
+ import { NameFormatters } from "../../../dist/bin/shared/utils/Formatters.js";
26
26
  const execAsync = promisify(exec);
27
27
  export class ConfigurationCacheManager {
28
28
  constructor(options = {}) {
@@ -15,7 +15,7 @@ import { readdirSync, statSync } from 'fs';
15
15
  import { join, dirname } from 'path';
16
16
  import { execSync } from 'child_process';
17
17
  import { fileURLToPath } from 'url';
18
- import { FileManager } from '../../../bin/shared/utils/file-manager.js';
18
+ import { FileManager } from "../../../dist/bin/shared/utils/file-manager.js";
19
19
  let __filename, __dirname;
20
20
 
21
21
  // Module-level FileManager for standalone functions
@@ -8,7 +8,7 @@
8
8
 
9
9
  import { join, dirname } from 'path';
10
10
  import { fileURLToPath } from 'url';
11
- import { FileManager } from '../../bin/shared/utils/file-manager.js';
11
+ import { FileManager } from "../../dist/bin/shared/utils/file-manager.js";
12
12
  export class FrameworkConfig {
13
13
  constructor(configPath = null) {
14
14
  this.fileManager = new FileManager({
@@ -1,4 +1,4 @@
1
- import { COMMON_FEATURES, ConfigurationManager } from '../../bin/shared/config/ConfigurationManager.js';
1
+ import { COMMON_FEATURES, ConfigurationManager } from "../../dist/bin/shared/config/ConfigurationManager.js";
2
2
  import { getDomainFromEnv, createEnvironmentConfig } from '../config/domains.js';
3
3
 
4
4
  // Create a singleton instance of ConfigurationManager for use in integration
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamyla/clodo-framework",
3
- "version": "3.1.10",
3
+ "version": "3.1.12",
4
4
  "description": "Reusable framework for Clodo-style software architecture on Cloudflare Workers + D1",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -53,11 +53,6 @@
53
53
  "files": [
54
54
  "dist",
55
55
  "types",
56
- "bin/clodo-service.js",
57
- "bin/service-management",
58
- "bin/security",
59
- "bin/shared",
60
- "bin/database",
61
56
  "templates",
62
57
  "ui-structures",
63
58
  "docs/README.md",
package/bin/README.md DELETED
@@ -1,71 +0,0 @@
1
- # Clodo Framework Binaries
2
-
3
- This directory contains executable scripts and command-line tools for the Clodo Framework.
4
-
5
- ## Categories
6
-
7
- ### service-management/
8
- Command-line tools for creating and initializing services.
9
-
10
- - `create-service.js` - Create services from templates
11
- - `init-service.js` - Initialize services with auto-generated configurations
12
-
13
- ### deployment/
14
- Enterprise deployment and orchestration tools.
15
-
16
- - `enterprise-deploy.js` - Advanced enterprise deployment CLI
17
- - `master-deploy.js` - Master deployment orchestration
18
-
19
- ### database/
20
- Database management and operations tools.
21
-
22
- - `enterprise-db-manager.js` - Enterprise database management CLI
23
-
24
- ### portfolio/
25
- Portfolio and multi-service management tools.
26
-
27
- - `portfolio-manager.js` - Portfolio management and orchestration
28
-
29
- ### shared/
30
- Shared utility modules used by other scripts.
31
-
32
- Contains various utility modules for:
33
- - Cloudflare operations
34
- - Configuration management
35
- - Database connections
36
- - Deployment auditing
37
- - Domain discovery
38
- - Error recovery
39
- - Health checking
40
- - Multi-domain orchestration
41
- - Production monitoring
42
- - Rollback management
43
- - Secret management
44
- - And more...
45
-
46
- ## Usage
47
-
48
- Run scripts from the project root:
49
-
50
- ```bash
51
- # Service management
52
- node bin/service-management/init-service.js my-service --type api-gateway
53
-
54
- # Deployment
55
- node bin/deployment/enterprise-deploy.js
56
-
57
- # Database
58
- node bin/database/enterprise-db-manager.js
59
- ```
60
-
61
- ## Global Installation
62
-
63
- For global installation, you can create symlinks or add to PATH:
64
-
65
- ```bash
66
- # Create symlinks (Linux/Mac)
67
- ln -s $(pwd)/bin/service-management/init-service.js /usr/local/bin/init-service
68
-
69
- # Or add to PATH
70
- export PATH="$PATH:$(pwd)/bin/service-management"
71
- ```
@@ -1,72 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- /**
4
- * Clodo Framework - Unified Service Management CLI
5
- *
6
- * Main entry point that registers and orchestrates all service management commands.
7
- * Each command is in its own module in bin/commands/ for clean separation of concerns.
8
- *
9
- * Commands:
10
- * - create Create a new Clodo service with conversational setup
11
- * - deploy Deploy a Clodo service with smart credential handling
12
- * - validate Validate an existing service configuration
13
- * - update Update an existing service configuration
14
- * - diagnose Diagnose and report issues with an existing service
15
- * - assess Run intelligent capability assessment
16
- * - list-types List available service types and their features
17
- */
18
-
19
- import { Command } from 'commander';
20
- import chalk from 'chalk';
21
-
22
- // Import command registration functions
23
- import { registerCreateCommand } from './commands/create.js';
24
- import { registerDeployCommand } from './commands/deploy.js';
25
- import { registerValidateCommand } from './commands/validate.js';
26
- import { registerUpdateCommand } from './commands/update.js';
27
- import { registerDiagnoseCommand } from './commands/diagnose.js';
28
- import { registerAssessCommand } from './commands/assess.js';
29
-
30
- // Create program instance
31
- const program = new Command();
32
-
33
- program
34
- .name('clodo-service')
35
- .description('Unified conversational CLI for Clodo Framework service lifecycle management')
36
- .version('1.0.0');
37
-
38
- // Register all command modules
39
- registerCreateCommand(program);
40
- registerDeployCommand(program);
41
- registerValidateCommand(program);
42
- registerUpdateCommand(program);
43
- registerDiagnoseCommand(program);
44
- registerAssessCommand(program);
45
-
46
- // List available service types
47
- program
48
- .command('list-types')
49
- .description('List available service types and their features')
50
- .action(() => {
51
- console.log(chalk.cyan('Available Clodo Framework Service Types:'));
52
- console.log('');
53
-
54
- const types = {
55
- 'data-service': ['Authentication', 'Authorization', 'File Storage', 'Search', 'Filtering', 'Pagination'],
56
- 'auth-service': ['Authentication', 'Authorization', 'User Profiles', 'Email Notifications', 'Magic Link Auth'],
57
- 'content-service': ['File Storage', 'Search', 'Filtering', 'Pagination', 'Caching'],
58
- 'api-gateway': ['Authentication', 'Authorization', 'Rate Limiting', 'Caching', 'Monitoring'],
59
- 'generic': ['Logging', 'Monitoring', 'Error Reporting']
60
- };
61
-
62
- Object.entries(types).forEach(([type, features]) => {
63
- console.log(chalk.green(` ${type}`));
64
- features.forEach(feature => {
65
- console.log(chalk.white(` • ${feature}`));
66
- });
67
- console.log('');
68
- });
69
- });
70
-
71
- // Parse command line arguments
72
- program.parse();
@@ -1,33 +0,0 @@
1
- # Database Tools
2
-
3
- Database management and operations tools for Clodo Framework services.
4
-
5
- ## Tools
6
-
7
- ### enterprise-db-manager.js
8
- Enterprise database management CLI for Cloudflare D1 and other databases.
9
-
10
- **Features:**
11
- - Multi-database orchestration
12
- - Schema management and migrations
13
- - Backup and restore operations
14
- - Performance monitoring and optimization
15
- - Connection pooling and management
16
- - Security and access control
17
- - Audit logging and compliance
18
-
19
- **Usage:**
20
- ```bash
21
- # Database operations
22
- node bin/database/enterprise-db-manager.js migrate --service my-service
23
- node bin/database/enterprise-db-manager.js backup --database my-db
24
- node bin/database/enterprise-db-manager.js monitor --service my-service
25
- ```
26
-
27
- **Commands:**
28
- - `migrate` - Run database migrations
29
- - `backup` - Create database backups
30
- - `restore` - Restore from backups
31
- - `monitor` - Monitor database performance
32
- - `schema` - Manage database schemas
33
- - `connections` - Manage database connections