@zucker-framework/cli 1.0.1 → 1.0.5

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.
@@ -1,73 +1,73 @@
1
1
  {
2
2
  "versions": {
3
- "@zucker-framework/admin": "1.0.1",
4
- "@zucker-framework/ai": "1.0.0",
5
- "@zucker-framework/ai-access": "1.0.0",
6
- "@zucker-framework/auth": "1.0.1",
7
- "@zucker-framework/buffer": "1.0.0",
8
- "@zucker-framework/cache": "1.0.0",
9
- "@zucker-framework/cli": "1.0.1",
10
- "@zucker-framework/cluster": "1.0.0",
11
- "@zucker-framework/common": "1.0.0",
12
- "@zucker-framework/config": "1.0.1",
13
- "@zucker-framework/core": "1.0.0",
14
- "@zucker-framework/credit": "1.0.1",
15
- "@zucker-framework/crud": "1.0.1",
16
- "@zucker-framework/dashboard": "1.0.0",
17
- "@zucker-framework/datasource": "1.0.0",
18
- "@zucker-framework/dictionary": "1.0.1",
19
- "@zucker-framework/event": "1.0.0",
20
- "@zucker-framework/ext-kit": "1.0.0",
21
- "@zucker-framework/ext-server": "1.0.0",
22
- "@zucker-framework/fe-analytics": "1.0.0",
23
- "@zucker-framework/fe-auth": "1.0.0",
24
- "@zucker-framework/fe-form": "1.0.0",
25
- "@zucker-framework/fe-http-client": "1.0.0",
26
- "@zucker-framework/fe-permission": "1.0.0",
27
- "@zucker-framework/fe-storage": "1.0.0",
28
- "@zucker-framework/fe-types": "1.0.0",
29
- "@zucker-framework/feature-flags": "1.0.0",
30
- "@zucker-framework/form": "1.0.1",
31
- "@zucker-framework/gateway": "1.0.0",
32
- "@zucker-framework/i18n": "1.0.0",
33
- "@zucker-framework/io": "1.0.0",
34
- "@zucker-framework/logging": "1.0.0",
35
- "@zucker-framework/media": "1.0.0",
36
- "@zucker-framework/monitoring": "1.0.0",
37
- "@zucker-framework/network": "1.0.0",
38
- "@zucker-framework/notification": "1.0.0",
39
- "@zucker-framework/payment": "1.0.0",
40
- "@zucker-framework/provider": "1.0.0",
41
- "@zucker-framework/queue": "1.0.0",
42
- "@zucker-framework/rate-limiter": "1.0.0",
43
- "@zucker-framework/reference": "1.0.0",
44
- "@zucker-framework/relation": "1.0.0",
45
- "@zucker-framework/rule-engine": "1.0.1",
46
- "@zucker-framework/script": "1.0.0",
47
- "@zucker-framework/search": "1.0.0",
48
- "@zucker-framework/storage": "1.0.0",
49
- "@zucker-framework/task": "1.0.0",
50
- "@zucker-framework/tenant": "1.0.0",
51
- "@zucker-framework/things": "1.0.0",
52
- "@zucker-framework/timeseries": "1.0.0",
53
- "@zucker-framework/tracing": "1.0.0"
3
+ "@zucker-framework/admin": "1.0.5",
4
+ "@zucker-framework/ai": "1.0.5",
5
+ "@zucker-framework/ai-access": "1.0.5",
6
+ "@zucker-framework/auth": "1.0.5",
7
+ "@zucker-framework/buffer": "1.0.5",
8
+ "@zucker-framework/cache": "1.0.5",
9
+ "@zucker-framework/cli": "1.0.5",
10
+ "@zucker-framework/cluster": "1.0.5",
11
+ "@zucker-framework/common": "1.0.5",
12
+ "@zucker-framework/config": "1.0.5",
13
+ "@zucker-framework/core": "1.0.5",
14
+ "@zucker-framework/credit": "1.0.5",
15
+ "@zucker-framework/crud": "1.0.5",
16
+ "@zucker-framework/dashboard": "1.0.5",
17
+ "@zucker-framework/datasource": "1.0.5",
18
+ "@zucker-framework/dictionary": "1.0.5",
19
+ "@zucker-framework/event": "1.0.5",
20
+ "@zucker-framework/ext-kit": "1.0.5",
21
+ "@zucker-framework/ext-server": "1.0.5",
22
+ "@zucker-framework/fe-analytics": "1.0.5",
23
+ "@zucker-framework/fe-auth": "1.0.5",
24
+ "@zucker-framework/fe-form": "1.0.5",
25
+ "@zucker-framework/fe-http-client": "1.0.5",
26
+ "@zucker-framework/fe-permission": "1.0.5",
27
+ "@zucker-framework/fe-storage": "1.0.5",
28
+ "@zucker-framework/fe-types": "1.0.5",
29
+ "@zucker-framework/feature-flags": "1.0.5",
30
+ "@zucker-framework/form": "1.0.5",
31
+ "@zucker-framework/gateway": "1.0.5",
32
+ "@zucker-framework/i18n": "1.0.5",
33
+ "@zucker-framework/io": "1.0.5",
34
+ "@zucker-framework/logging": "1.0.5",
35
+ "@zucker-framework/media": "1.0.5",
36
+ "@zucker-framework/monitoring": "1.0.5",
37
+ "@zucker-framework/network": "1.0.5",
38
+ "@zucker-framework/notification": "1.0.5",
39
+ "@zucker-framework/payment": "1.0.5",
40
+ "@zucker-framework/provider": "1.0.5",
41
+ "@zucker-framework/queue": "1.0.5",
42
+ "@zucker-framework/rate-limiter": "1.0.5",
43
+ "@zucker-framework/reference": "1.0.5",
44
+ "@zucker-framework/relation": "1.0.5",
45
+ "@zucker-framework/rule-engine": "1.0.5",
46
+ "@zucker-framework/script": "1.0.5",
47
+ "@zucker-framework/search": "1.0.5",
48
+ "@zucker-framework/storage": "1.0.5",
49
+ "@zucker-framework/task": "1.0.5",
50
+ "@zucker-framework/tenant": "1.0.5",
51
+ "@zucker-framework/things": "1.0.5",
52
+ "@zucker-framework/timeseries": "1.0.5",
53
+ "@zucker-framework/tracing": "1.0.5"
54
54
  },
55
55
  "server": {
56
56
  "dependencies": {
57
- "@zucker-framework/core": "1.0.0",
58
- "@zucker-framework/common": "1.0.0",
59
- "@zucker-framework/crud": "1.0.1",
60
- "@zucker-framework/event": "1.0.0",
61
- "@zucker-framework/auth": "1.0.1",
57
+ "@zucker-framework/core": "1.0.5",
58
+ "@zucker-framework/common": "1.0.5",
59
+ "@zucker-framework/crud": "1.0.5",
60
+ "@zucker-framework/event": "1.0.5",
61
+ "@zucker-framework/auth": "1.0.5",
62
62
  "@nestjs/common": "^12.0.1",
63
63
  "@nestjs/core": "^12.0.1",
64
64
  "express": "^4.0.0 || ^5.0.0",
65
65
  "rxjs": "^7.8.2",
66
- "@nestjs/swagger": "^12.0.0",
67
- "@zucker-framework/cache": "1.0.0",
68
- "@nestjs/event-emitter": "^12.0.0",
69
66
  "class-transformer": "^0.5.0",
67
+ "@nestjs/swagger": "^12.0.0",
68
+ "@zucker-framework/cache": "1.0.5",
70
69
  "class-validator": "^0.14.0 || ^0.15.0",
70
+ "@nestjs/event-emitter": "^12.0.0",
71
71
  "@nestjs/passport": "^12.0.0",
72
72
  "@nestjs/jwt": "^12.0.1",
73
73
  "@nestjs/platform-express": "^12.0.1",
@@ -0,0 +1,53 @@
1
+ interface ModuleWiringAuditOptions {
2
+ sourceRoot: string;
3
+ schedulerRoot?: string;
4
+ globalGuards?: {
5
+ owner: string;
6
+ /** Expected useClass registrations, identified by imported/original symbol name. */
7
+ classes: readonly string[];
8
+ /** Expected named useFactory registrations; this does not infer a factory's return class. */
9
+ factories?: readonly string[];
10
+ };
11
+ infrastructureProviders?: Record<string, string>;
12
+ }
13
+ interface ModuleWiringFinding {
14
+ code: string;
15
+ message: string;
16
+ location: string;
17
+ }
18
+ declare function auditModuleWiring({ sourceRoot, schedulerRoot, globalGuards, infrastructureProviders, }: ModuleWiringAuditOptions): {
19
+ ok: boolean;
20
+ findings: ModuleWiringFinding[];
21
+ stats: {
22
+ files: number;
23
+ cronJobs: number;
24
+ cronProviders: number;
25
+ globalGuards: number;
26
+ lifecycleClasses: number;
27
+ scheduleRoots: number;
28
+ };
29
+ };
30
+
31
+ interface TransactionBoundaryPolicy {
32
+ rootClientNames: readonly string[];
33
+ transactionClientRequiredPattern: RegExp;
34
+ externalCallPattern: RegExp;
35
+ }
36
+ interface TransactionBoundaryViolation {
37
+ file: string;
38
+ line: number;
39
+ message: string;
40
+ }
41
+ /** Inspect interactive Prisma transaction callbacks using consumer-defined service/call patterns. */
42
+ declare function findTransactionBoundaryViolations(source: string, fileName: string, policy: TransactionBoundaryPolicy): TransactionBoundaryViolation[];
43
+ declare function checkTransactionBoundaries(rootDirectory: string, policy: TransactionBoundaryPolicy): TransactionBoundaryViolation[];
44
+
45
+ interface RuntimeImportRule {
46
+ specifier: string;
47
+ matchesFile: (normalizedFile: string) => boolean;
48
+ message: string;
49
+ }
50
+ declare function auditFrameworkSourceText(file: string, source: string, rules?: readonly RuntimeImportRule[]): string[];
51
+ declare function auditPnpmWorkflowVersions(packageManager: string | undefined, workflowSources: readonly (readonly [string, string])[]): string[];
52
+
53
+ export { type ModuleWiringAuditOptions, type ModuleWiringFinding, type RuntimeImportRule, type TransactionBoundaryPolicy, type TransactionBoundaryViolation, auditFrameworkSourceText, auditModuleWiring, auditPnpmWorkflowVersions, checkTransactionBoundaries, findTransactionBoundaryViolations };
@@ -0,0 +1,53 @@
1
+ interface ModuleWiringAuditOptions {
2
+ sourceRoot: string;
3
+ schedulerRoot?: string;
4
+ globalGuards?: {
5
+ owner: string;
6
+ /** Expected useClass registrations, identified by imported/original symbol name. */
7
+ classes: readonly string[];
8
+ /** Expected named useFactory registrations; this does not infer a factory's return class. */
9
+ factories?: readonly string[];
10
+ };
11
+ infrastructureProviders?: Record<string, string>;
12
+ }
13
+ interface ModuleWiringFinding {
14
+ code: string;
15
+ message: string;
16
+ location: string;
17
+ }
18
+ declare function auditModuleWiring({ sourceRoot, schedulerRoot, globalGuards, infrastructureProviders, }: ModuleWiringAuditOptions): {
19
+ ok: boolean;
20
+ findings: ModuleWiringFinding[];
21
+ stats: {
22
+ files: number;
23
+ cronJobs: number;
24
+ cronProviders: number;
25
+ globalGuards: number;
26
+ lifecycleClasses: number;
27
+ scheduleRoots: number;
28
+ };
29
+ };
30
+
31
+ interface TransactionBoundaryPolicy {
32
+ rootClientNames: readonly string[];
33
+ transactionClientRequiredPattern: RegExp;
34
+ externalCallPattern: RegExp;
35
+ }
36
+ interface TransactionBoundaryViolation {
37
+ file: string;
38
+ line: number;
39
+ message: string;
40
+ }
41
+ /** Inspect interactive Prisma transaction callbacks using consumer-defined service/call patterns. */
42
+ declare function findTransactionBoundaryViolations(source: string, fileName: string, policy: TransactionBoundaryPolicy): TransactionBoundaryViolation[];
43
+ declare function checkTransactionBoundaries(rootDirectory: string, policy: TransactionBoundaryPolicy): TransactionBoundaryViolation[];
44
+
45
+ interface RuntimeImportRule {
46
+ specifier: string;
47
+ matchesFile: (normalizedFile: string) => boolean;
48
+ message: string;
49
+ }
50
+ declare function auditFrameworkSourceText(file: string, source: string, rules?: readonly RuntimeImportRule[]): string[];
51
+ declare function auditPnpmWorkflowVersions(packageManager: string | undefined, workflowSources: readonly (readonly [string, string])[]): string[];
52
+
53
+ export { type ModuleWiringAuditOptions, type ModuleWiringFinding, type RuntimeImportRule, type TransactionBoundaryPolicy, type TransactionBoundaryViolation, auditFrameworkSourceText, auditModuleWiring, auditPnpmWorkflowVersions, checkTransactionBoundaries, findTransactionBoundaryViolations };