@tamyla/clodo-framework 3.1.9 → 3.1.11

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 (75) 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 +4 -4
  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/config/index.js +1 -1
  19. package/dist/bin/shared/deployment/index.js +2 -2
  20. package/dist/bin/shared/validation/ValidationRegistry.js +1 -1
  21. package/package.json +1 -6
  22. package/bin/README.md +0 -71
  23. package/bin/clodo-service.js +0 -72
  24. package/bin/database/README.md +0 -33
  25. package/bin/database/deployment-db-manager.js +0 -527
  26. package/bin/database/enterprise-db-manager.js +0 -738
  27. package/bin/database/wrangler-d1-manager.js +0 -775
  28. package/bin/security/security-cli.js +0 -117
  29. package/bin/service-management/README.md +0 -74
  30. package/bin/service-management/create-service.js +0 -129
  31. package/bin/service-management/init-service.js +0 -103
  32. package/bin/service-management/init-service.js.backup +0 -889
  33. package/bin/shared/cloudflare/domain-discovery.js +0 -637
  34. package/bin/shared/cloudflare/domain-manager.js +0 -952
  35. package/bin/shared/cloudflare/index.js +0 -8
  36. package/bin/shared/cloudflare/ops.js +0 -401
  37. package/bin/shared/config/ConfigurationManager.js +0 -539
  38. package/bin/shared/config/cache.js +0 -1230
  39. package/bin/shared/config/command-config-manager.js +0 -184
  40. package/bin/shared/config/index.js +0 -21
  41. package/bin/shared/config/manager.js +0 -315
  42. package/bin/shared/database/connection-manager.js +0 -374
  43. package/bin/shared/database/index.js +0 -7
  44. package/bin/shared/database/orchestrator.js +0 -727
  45. package/bin/shared/deployment/auditor.js +0 -970
  46. package/bin/shared/deployment/index.js +0 -10
  47. package/bin/shared/deployment/rollback-manager.js +0 -570
  48. package/bin/shared/deployment/validator.js +0 -779
  49. package/bin/shared/index.js +0 -32
  50. package/bin/shared/logging/Logger.js +0 -214
  51. package/bin/shared/monitoring/health-checker.js +0 -484
  52. package/bin/shared/monitoring/index.js +0 -8
  53. package/bin/shared/monitoring/memory-manager.js +0 -387
  54. package/bin/shared/monitoring/production-monitor.js +0 -403
  55. package/bin/shared/production-tester/api-tester.js +0 -82
  56. package/bin/shared/production-tester/auth-tester.js +0 -132
  57. package/bin/shared/production-tester/core.js +0 -197
  58. package/bin/shared/production-tester/database-tester.js +0 -109
  59. package/bin/shared/production-tester/index.js +0 -77
  60. package/bin/shared/production-tester/load-tester.js +0 -131
  61. package/bin/shared/production-tester/performance-tester.js +0 -103
  62. package/bin/shared/security/api-token-manager.js +0 -312
  63. package/bin/shared/security/index.js +0 -8
  64. package/bin/shared/security/secret-generator.js +0 -942
  65. package/bin/shared/security/secure-token-manager.js +0 -398
  66. package/bin/shared/utils/ErrorHandler.js +0 -675
  67. package/bin/shared/utils/error-recovery.js +0 -245
  68. package/bin/shared/utils/file-manager.js +0 -162
  69. package/bin/shared/utils/formatters.js +0 -247
  70. package/bin/shared/utils/graceful-shutdown-manager.js +0 -390
  71. package/bin/shared/utils/index.js +0 -19
  72. package/bin/shared/utils/interactive-prompts.js +0 -146
  73. package/bin/shared/utils/interactive-utils.js +0 -530
  74. package/bin/shared/utils/rate-limiter.js +0 -246
  75. package/bin/shared/validation/ValidationRegistry.js +0 -143
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [3.1.11](https://github.com/tamylaa/clodo-framework/compare/v3.1.10...v3.1.11) (2025-10-27)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add babel import path rewriter and remove source bin from package files ([91f19d4](https://github.com/tamylaa/clodo-framework/commit/91f19d48791d604497ff708a5c7a836100e6885a))
7
+
8
+ ## [3.1.10](https://github.com/tamylaa/clodo-framework/compare/v3.1.9...v3.1.10) (2025-10-27)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * correct import paths in bin/ to reference src/ not dist/ ([57d9740](https://github.com/tamylaa/clodo-framework/commit/57d974051d15ba263005aba8e48f5290823e24c9))
14
+
1
15
  ## [3.1.9](https://github.com/tamylaa/clodo-framework/compare/v3.1.8...v3.1.9) (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 '../../dist/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 '../../dist/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 '../../dist/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 '../../dist/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 {
@@ -24,10 +24,10 @@ import { program } from 'commander';
24
24
  import { existsSync, readFileSync, writeFileSync } from 'fs';
25
25
  import { join } from 'path';
26
26
 
27
- // Enterprise module imports - from dist/ (compiled framework)
28
- import { DatabaseOrchestrator } from '../../dist/database/database-orchestrator.js';
29
- import { DeploymentAuditor } from '../../dist/deployment/deployment-auditor.js';
30
- import { CrossDomainCoordinator } from '../../dist/orchestration/cross-domain-coordinator.js';
27
+ // Enterprise module imports - from src/ (framework source)
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 '../../dist/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 '../../dist/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 '../../dist/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 '../../dist/orchestration/multi-domain-orchestrator.js';
34
- import { CrossDomainCoordinator } from '../../dist/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 '../../dist/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 '../../dist/orchestration/multi-domain-orchestrator.js';
37
- import { CrossDomainCoordinator } from '../../dist/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 '../../dist/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 '../../dist/orchestration/cross-domain-coordinator.js';
30
- import { MultiDomainOrchestrator } from '../../dist/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 '../../dist/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 '../../dist/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 '../../dist/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 '../../dist/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 '../../../dist/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);
@@ -7,7 +7,7 @@
7
7
  export { ConfigCache } from './cache.js';
8
8
  export { ConfigManager } from './manager.js';
9
9
  export { CommandConfigManager } from './command-config-manager.js';
10
- export { CustomerConfigurationManager } from '../../../dist/config/customers.js';
10
+ export { CustomerConfigurationManager } from '../../../src/config/customers.js';
11
11
 
12
12
  // Phase 3.2 consolidated configuration management
13
13
  export { ConfigurationManager, configManager, isFeatureEnabled, getEnabledFeatures, withFeature, FEATURES, COMMON_FEATURES } from './ConfigurationManager.js';
@@ -4,7 +4,7 @@
4
4
  */
5
5
 
6
6
  export { DeploymentValidator } from './validator.js';
7
- export { MultiDomainOrchestrator } from '../../dist/orchestration/multi-domain-orchestrator.js';
8
- export { CrossDomainCoordinator } from '../../dist/orchestration/cross-domain-coordinator.js';
7
+ export { MultiDomainOrchestrator } from '../../src/orchestration/multi-domain-orchestrator.js';
8
+ export { CrossDomainCoordinator } from '../../src/orchestration/cross-domain-coordinator.js';
9
9
  export { DeploymentAuditor } from './auditor.js';
10
10
  export { RollbackManager } from './rollback-manager.js';
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamyla/clodo-framework",
3
- "version": "3.1.9",
3
+ "version": "3.1.11",
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