@tamyla/clodo-framework 3.0.9 → 3.0.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.
- package/CHANGELOG.md +14 -0
- package/bin/clodo-service.js +3 -1
- package/bin/shared/cloudflare/ops.js +4 -4
- package/bin/shared/database/connection-manager.js +1 -1
- package/bin/shared/database/orchestrator.js +1 -1
- package/bin/shared/deployment/validator.js +1 -1
- package/bin/shared/monitoring/health-checker.js +1 -1
- package/bin/shared/security/secret-generator.js +1 -1
- package/bin/shared/security/secure-token-manager.js +1 -1
- package/dist/deployment/validator.js +1 -1
- package/dist/shared/cloudflare/ops.js +4 -4
- package/dist/shared/database/connection-manager.js +1 -1
- package/dist/shared/database/orchestrator.js +1 -1
- package/dist/shared/deployment/validator.js +1 -1
- package/dist/shared/monitoring/health-checker.js +1 -1
- package/dist/shared/security/secret-generator.js +1 -1
- package/dist/shared/security/secure-token-manager.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [3.0.11](https://github.com/tamylaa/clodo-framework/compare/v3.0.10...v3.0.11) (2025-10-14)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Update all bin/ imports from src/ to dist/ for published package compatibility ([c476528](https://github.com/tamylaa/clodo-framework/commit/c476528b575cf9d6338a967e740252ed4d41f66f))
|
|
7
|
+
|
|
8
|
+
## [3.0.10](https://github.com/tamylaa/clodo-framework/compare/v3.0.9...v3.0.10) (2025-10-14)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* Pass Cloudflare API credentials to MultiDomainOrchestrator in clodo-service deploy ([9f8c249](https://github.com/tamylaa/clodo-framework/commit/9f8c24912c79755152c5273ececa3374651e1164))
|
|
14
|
+
|
|
1
15
|
## [3.0.9](https://github.com/tamylaa/clodo-framework/compare/v3.0.8...v3.0.9) (2025-10-14)
|
|
2
16
|
|
|
3
17
|
|
package/bin/clodo-service.js
CHANGED
|
@@ -597,7 +597,9 @@ program
|
|
|
597
597
|
domains: [coreInputs.domainName],
|
|
598
598
|
environment: coreInputs.environment,
|
|
599
599
|
dryRun: options.dryRun,
|
|
600
|
-
servicePath: options.servicePath
|
|
600
|
+
servicePath: options.servicePath,
|
|
601
|
+
cloudflareToken: coreInputs.cloudflareToken,
|
|
602
|
+
cloudflareAccountId: coreInputs.cloudflareAccountId
|
|
601
603
|
});
|
|
602
604
|
|
|
603
605
|
await orchestrator.initialize();
|
|
@@ -232,7 +232,7 @@ export async function listDatabases(options = {}) {
|
|
|
232
232
|
|
|
233
233
|
// Use API-based operation if credentials provided
|
|
234
234
|
if (apiToken && accountId) {
|
|
235
|
-
const { CloudflareAPI } = await import('../../../
|
|
235
|
+
const { CloudflareAPI } = await import('../../../dist/utils/cloudflare/api.js');
|
|
236
236
|
const cf = new CloudflareAPI(apiToken);
|
|
237
237
|
return await cf.listD1Databases(accountId);
|
|
238
238
|
}
|
|
@@ -251,7 +251,7 @@ export async function databaseExists(databaseName, options = {}) {
|
|
|
251
251
|
|
|
252
252
|
// Use API-based operation if credentials provided
|
|
253
253
|
if (apiToken && accountId) {
|
|
254
|
-
const { CloudflareAPI } = await import('../../../
|
|
254
|
+
const { CloudflareAPI } = await import('../../../dist/utils/cloudflare/api.js');
|
|
255
255
|
const cf = new CloudflareAPI(apiToken);
|
|
256
256
|
return await cf.d1DatabaseExists(accountId, databaseName);
|
|
257
257
|
}
|
|
@@ -270,7 +270,7 @@ export async function createDatabase(name, options = {}) {
|
|
|
270
270
|
|
|
271
271
|
// Use API-based operation if credentials provided
|
|
272
272
|
if (apiToken && accountId) {
|
|
273
|
-
const { CloudflareAPI } = await import('../../../
|
|
273
|
+
const { CloudflareAPI } = await import('../../../dist/utils/cloudflare/api.js');
|
|
274
274
|
const cf = new CloudflareAPI(apiToken);
|
|
275
275
|
const result = await cf.createD1Database(accountId, name);
|
|
276
276
|
return result.uuid; // Return UUID to match CLI behavior
|
|
@@ -355,7 +355,7 @@ export async function getDatabaseId(databaseName, options = {}) {
|
|
|
355
355
|
|
|
356
356
|
// Use API-based operation if credentials provided
|
|
357
357
|
if (apiToken && accountId) {
|
|
358
|
-
const { CloudflareAPI } = await import('../../../
|
|
358
|
+
const { CloudflareAPI } = await import('../../../dist/utils/cloudflare/api.js');
|
|
359
359
|
const cf = new CloudflareAPI(apiToken);
|
|
360
360
|
const db = await cf.getD1Database(accountId, databaseName);
|
|
361
361
|
return db?.uuid || null;
|
|
@@ -20,7 +20,7 @@ export class DatabaseConnectionManager {
|
|
|
20
20
|
*/
|
|
21
21
|
async initialize() {
|
|
22
22
|
// Import framework config for consistent database connection settings
|
|
23
|
-
const { frameworkConfig } = await import('../../../
|
|
23
|
+
const { frameworkConfig } = await import('../../../dist/utils/framework-config.js');
|
|
24
24
|
const timing = frameworkConfig.getTiming();
|
|
25
25
|
const database = frameworkConfig.getDatabaseConfig();
|
|
26
26
|
|
|
@@ -115,7 +115,7 @@ export class DatabaseOrchestrator {
|
|
|
115
115
|
*/
|
|
116
116
|
async initialize() {
|
|
117
117
|
// Import framework config for consistent timing and database settings
|
|
118
|
-
const { frameworkConfig } = await import('../../../
|
|
118
|
+
const { frameworkConfig } = await import('../../../dist/utils/framework-config.js');
|
|
119
119
|
const timing = frameworkConfig.getTiming();
|
|
120
120
|
const database = frameworkConfig.getDatabaseConfig();
|
|
121
121
|
|
|
@@ -556,7 +556,7 @@ export class DeploymentValidator {
|
|
|
556
556
|
|
|
557
557
|
try {
|
|
558
558
|
// Import WranglerDeployer for D1 validation capabilities
|
|
559
|
-
const { WranglerDeployer } = await import('../../../
|
|
559
|
+
const { WranglerDeployer } = await import('../../../dist/deployment/wrangler-deployer.js');
|
|
560
560
|
|
|
561
561
|
// Check if this is a framework-level validation (no specific service)
|
|
562
562
|
if (!this.options?.servicePath) {
|
|
@@ -13,7 +13,7 @@ import http from 'http';
|
|
|
13
13
|
const execAsync = promisify(exec);
|
|
14
14
|
|
|
15
15
|
// Load framework configuration
|
|
16
|
-
const { frameworkConfig } = await import('../../../
|
|
16
|
+
const { frameworkConfig } = await import('../../../dist/utils/framework-config.js');
|
|
17
17
|
const timing = frameworkConfig.getTiming();
|
|
18
18
|
|
|
19
19
|
function makeHttpRequest(url, method = 'GET', timeout = 5000) {
|
|
@@ -65,7 +65,7 @@ export class EnhancedSecretManager {
|
|
|
65
65
|
*/
|
|
66
66
|
async initialize() {
|
|
67
67
|
// Import framework config for consistent timing and retry settings
|
|
68
|
-
const { frameworkConfig } = await import('../../../
|
|
68
|
+
const { frameworkConfig } = await import('../../../dist/utils/framework-config.js');
|
|
69
69
|
const timing = frameworkConfig.getTiming();
|
|
70
70
|
const security = frameworkConfig.getSecurity();
|
|
71
71
|
const configPaths = frameworkConfig.getPaths();
|
|
@@ -34,7 +34,7 @@ export class SecureTokenManager {
|
|
|
34
34
|
async initialize() {
|
|
35
35
|
try {
|
|
36
36
|
// Load framework configuration
|
|
37
|
-
const { frameworkConfig } = await import('../../../
|
|
37
|
+
const { frameworkConfig } = await import('../../../dist/utils/framework-config.js');
|
|
38
38
|
this.frameworkConfig = frameworkConfig;
|
|
39
39
|
|
|
40
40
|
// Update paths with framework config
|
|
@@ -470,7 +470,7 @@ export class DeploymentValidator {
|
|
|
470
470
|
// Import WranglerDeployer for D1 validation capabilities
|
|
471
471
|
const {
|
|
472
472
|
WranglerDeployer
|
|
473
|
-
} = await import('../../../
|
|
473
|
+
} = await import('../../../dist/deployment/wrangler-deployer.js');
|
|
474
474
|
|
|
475
475
|
// Check if this is a framework-level validation (no specific service)
|
|
476
476
|
if (!this.options?.servicePath) {
|
|
@@ -240,7 +240,7 @@ export async function listDatabases(options = {}) {
|
|
|
240
240
|
if (apiToken && accountId) {
|
|
241
241
|
const {
|
|
242
242
|
CloudflareAPI
|
|
243
|
-
} = await import('../../../
|
|
243
|
+
} = await import('../../../dist/utils/cloudflare/api.js');
|
|
244
244
|
const cf = new CloudflareAPI(apiToken);
|
|
245
245
|
return await cf.listD1Databases(accountId);
|
|
246
246
|
}
|
|
@@ -265,7 +265,7 @@ export async function databaseExists(databaseName, options = {}) {
|
|
|
265
265
|
if (apiToken && accountId) {
|
|
266
266
|
const {
|
|
267
267
|
CloudflareAPI
|
|
268
|
-
} = await import('../../../
|
|
268
|
+
} = await import('../../../dist/utils/cloudflare/api.js');
|
|
269
269
|
const cf = new CloudflareAPI(apiToken);
|
|
270
270
|
return await cf.d1DatabaseExists(accountId, databaseName);
|
|
271
271
|
}
|
|
@@ -288,7 +288,7 @@ export async function createDatabase(name, options = {}) {
|
|
|
288
288
|
if (apiToken && accountId) {
|
|
289
289
|
const {
|
|
290
290
|
CloudflareAPI
|
|
291
|
-
} = await import('../../../
|
|
291
|
+
} = await import('../../../dist/utils/cloudflare/api.js');
|
|
292
292
|
const cf = new CloudflareAPI(apiToken);
|
|
293
293
|
const result = await cf.createD1Database(accountId, name);
|
|
294
294
|
return result.uuid; // Return UUID to match CLI behavior
|
|
@@ -403,7 +403,7 @@ export async function getDatabaseId(databaseName, options = {}) {
|
|
|
403
403
|
if (apiToken && accountId) {
|
|
404
404
|
const {
|
|
405
405
|
CloudflareAPI
|
|
406
|
-
} = await import('../../../
|
|
406
|
+
} = await import('../../../dist/utils/cloudflare/api.js');
|
|
407
407
|
const cf = new CloudflareAPI(apiToken);
|
|
408
408
|
const db = await cf.getD1Database(accountId, databaseName);
|
|
409
409
|
return db?.uuid || null;
|
|
@@ -21,7 +21,7 @@ export class DatabaseConnectionManager {
|
|
|
21
21
|
// Import framework config for consistent database connection settings
|
|
22
22
|
const {
|
|
23
23
|
frameworkConfig
|
|
24
|
-
} = await import('../../../
|
|
24
|
+
} = await import('../../../dist/utils/framework-config.js');
|
|
25
25
|
const timing = frameworkConfig.getTiming();
|
|
26
26
|
const database = frameworkConfig.getDatabaseConfig();
|
|
27
27
|
this.config = {
|
|
@@ -110,7 +110,7 @@ export class DatabaseOrchestrator {
|
|
|
110
110
|
// Import framework config for consistent timing and database settings
|
|
111
111
|
const {
|
|
112
112
|
frameworkConfig
|
|
113
|
-
} = await import('../../../
|
|
113
|
+
} = await import('../../../dist/utils/framework-config.js');
|
|
114
114
|
const timing = frameworkConfig.getTiming();
|
|
115
115
|
const database = frameworkConfig.getDatabaseConfig();
|
|
116
116
|
this.config = {
|
|
@@ -470,7 +470,7 @@ export class DeploymentValidator {
|
|
|
470
470
|
// Import WranglerDeployer for D1 validation capabilities
|
|
471
471
|
const {
|
|
472
472
|
WranglerDeployer
|
|
473
|
-
} = await import('../../../
|
|
473
|
+
} = await import('../../../dist/deployment/wrangler-deployer.js');
|
|
474
474
|
|
|
475
475
|
// Check if this is a framework-level validation (no specific service)
|
|
476
476
|
if (!this.options?.servicePath) {
|
|
@@ -14,7 +14,7 @@ const execAsync = promisify(exec);
|
|
|
14
14
|
// Load framework configuration
|
|
15
15
|
const {
|
|
16
16
|
frameworkConfig
|
|
17
|
-
} = await import('../../../
|
|
17
|
+
} = await import('../../../dist/utils/framework-config.js');
|
|
18
18
|
const timing = frameworkConfig.getTiming();
|
|
19
19
|
function makeHttpRequest(url, method = 'GET', timeout = 5000) {
|
|
20
20
|
return new Promise((resolve, reject) => {
|
|
@@ -105,7 +105,7 @@ export class EnhancedSecretManager {
|
|
|
105
105
|
// Import framework config for consistent timing and retry settings
|
|
106
106
|
const {
|
|
107
107
|
frameworkConfig
|
|
108
|
-
} = await import('../../../
|
|
108
|
+
} = await import('../../../dist/utils/framework-config.js');
|
|
109
109
|
const timing = frameworkConfig.getTiming();
|
|
110
110
|
const security = frameworkConfig.getSecurity();
|
|
111
111
|
const configPaths = frameworkConfig.getPaths();
|
|
@@ -36,7 +36,7 @@ export class SecureTokenManager {
|
|
|
36
36
|
// Load framework configuration
|
|
37
37
|
const {
|
|
38
38
|
frameworkConfig
|
|
39
|
-
} = await import('../../../
|
|
39
|
+
} = await import('../../../dist/utils/framework-config.js');
|
|
40
40
|
this.frameworkConfig = frameworkConfig;
|
|
41
41
|
|
|
42
42
|
// Update paths with framework config
|