@vee-stack/delta-cli 2.0.8 → 2.0.10
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/dist/adapters/analysis.adapter.d.ts +29 -0
- package/dist/analyzer/commands/analyze.d.ts +14 -0
- package/dist/analyzer/commands/config.d.ts +12 -0
- package/dist/analyzer/commands/report.d.ts +11 -0
- package/dist/analyzer/generators/report.generator.d.ts +43 -0
- package/dist/analyzer/index.d.ts +8 -0
- package/dist/analyzer/scanners/project.scanner.d.ts +29 -0
- package/dist/analyzer/validators/contracts.validator.d.ts +27 -0
- package/dist/analyzer/validators/maintainability.validator.d.ts +27 -0
- package/dist/analyzer/validators/observability.validator.d.ts +27 -0
- package/dist/analyzer/validators/performance.validator.d.ts +27 -0
- package/dist/analyzer/validators/security.validator.d.ts +27 -0
- package/dist/analyzer/validators/soc.validator.d.ts +27 -0
- package/dist/auth/device-auth.d.ts +18 -0
- package/dist/auth/secure-auth.d.ts +35 -0
- package/dist/bundle.mjs +422 -0
- package/dist/commands/analyze.d.ts +12 -0
- package/dist/commands/auth-new.d.ts +6 -0
- package/dist/commands/auth.d.ts +17 -0
- package/dist/commands/config.d.ts +8 -0
- package/dist/commands/deploy.d.ts +5 -0
- package/dist/commands/init.d.ts +7 -0
- package/dist/commands/logout.d.ts +2 -0
- package/dist/commands/plugins.d.ts +7 -0
- package/dist/commands/status.d.ts +5 -0
- package/dist/commands/sync.d.ts +5 -0
- package/dist/commands/whoami.d.ts +4 -0
- package/dist/components/Dashboard.d.ts +8 -0
- package/dist/components/DeltaApp.d.ts +13 -0
- package/dist/components/UnifiedManager.d.ts +10 -0
- package/dist/core/audit.d.ts +60 -0
- package/dist/core/completion.d.ts +79 -0
- package/dist/core/contracts.d.ts +127 -0
- package/dist/core/engine.d.ts +26 -0
- package/dist/core/exit-codes.d.ts +19 -0
- package/dist/core/hooks.d.ts +50 -0
- package/dist/{apps/cli/src/core/index.js → core/index.d.ts} +1 -1
- package/dist/core/policy.d.ts +24 -0
- package/dist/core/profiles.d.ts +45 -0
- package/dist/core/wizard.d.ts +28 -0
- package/dist/interactive/index.d.ts +5 -0
- package/dist/plugins/GitStatusPlugin.d.ts +25 -0
- package/dist/providers/ai-provider.d.ts +21 -0
- package/dist/providers/local-provider.d.ts +21 -0
- package/dist/providers/remote-provider.d.ts +15 -0
- package/dist/telemetry/wrapper.d.ts +18 -0
- package/dist/types/api.d.ts +46 -0
- package/dist/ui.d.ts +52 -0
- package/dist/welcome.d.ts +8 -0
- package/package.json +8 -8
- package/dist/analyzer/commands/analyze.js +0 -260
- package/dist/analyzer/commands/config.js +0 -83
- package/dist/analyzer/commands/report.js +0 -38
- package/dist/analyzer/generators/report.generator.js +0 -123
- package/dist/analyzer/index.js +0 -44
- package/dist/analyzer/scanners/project.scanner.js +0 -92
- package/dist/analyzer/validators/contracts.validator.js +0 -42
- package/dist/analyzer/validators/maintainability.validator.js +0 -40
- package/dist/analyzer/validators/observability.validator.js +0 -39
- package/dist/analyzer/validators/performance.validator.js +0 -42
- package/dist/analyzer/validators/security.validator.js +0 -66
- package/dist/analyzer/validators/soc.validator.js +0 -75
- package/dist/apps/cli/src/analyzer/commands/analyze.js +0 -256
- package/dist/apps/cli/src/analyzer/commands/config.js +0 -83
- package/dist/apps/cli/src/analyzer/commands/report.js +0 -38
- package/dist/apps/cli/src/analyzer/generators/report.generator.js +0 -123
- package/dist/apps/cli/src/analyzer/index.js +0 -44
- package/dist/apps/cli/src/analyzer/scanners/project.scanner.js +0 -92
- package/dist/apps/cli/src/analyzer/validators/contracts.validator.js +0 -42
- package/dist/apps/cli/src/analyzer/validators/maintainability.validator.js +0 -40
- package/dist/apps/cli/src/analyzer/validators/observability.validator.js +0 -39
- package/dist/apps/cli/src/analyzer/validators/performance.validator.js +0 -42
- package/dist/apps/cli/src/analyzer/validators/security.validator.js +0 -66
- package/dist/apps/cli/src/analyzer/validators/soc.validator.js +0 -75
- package/dist/apps/cli/src/auth/secure-auth.js +0 -312
- package/dist/apps/cli/src/commands/analyze.js +0 -286
- package/dist/apps/cli/src/commands/auth-new.js +0 -37
- package/dist/apps/cli/src/commands/auth.js +0 -122
- package/dist/apps/cli/src/commands/config.js +0 -49
- package/dist/apps/cli/src/commands/deploy.js +0 -6
- package/dist/apps/cli/src/commands/init.js +0 -47
- package/dist/apps/cli/src/commands/logout.js +0 -23
- package/dist/apps/cli/src/commands/plugins.js +0 -21
- package/dist/apps/cli/src/commands/status.js +0 -80
- package/dist/apps/cli/src/commands/sync.js +0 -6
- package/dist/apps/cli/src/commands/whoami.js +0 -115
- package/dist/apps/cli/src/components/Dashboard.js +0 -168
- package/dist/apps/cli/src/components/DeltaApp.js +0 -56
- package/dist/apps/cli/src/components/UnifiedManager.js +0 -324
- package/dist/apps/cli/src/core/audit.js +0 -184
- package/dist/apps/cli/src/core/completion.js +0 -294
- package/dist/apps/cli/src/core/contracts.js +0 -6
- package/dist/apps/cli/src/core/engine.js +0 -124
- package/dist/apps/cli/src/core/exit-codes.js +0 -71
- package/dist/apps/cli/src/core/hooks.js +0 -181
- package/dist/apps/cli/src/core/policy.js +0 -115
- package/dist/apps/cli/src/core/profiles.js +0 -161
- package/dist/apps/cli/src/core/wizard.js +0 -203
- package/dist/apps/cli/src/index.js +0 -636
- package/dist/apps/cli/src/interactive/index.js +0 -11
- package/dist/apps/cli/src/plugins/GitStatusPlugin.js +0 -99
- package/dist/apps/cli/src/providers/ai-provider.js +0 -74
- package/dist/apps/cli/src/providers/local-provider.js +0 -302
- package/dist/apps/cli/src/providers/remote-provider.js +0 -100
- package/dist/apps/cli/src/types/api.js +0 -3
- package/dist/apps/cli/src/ui.js +0 -219
- package/dist/apps/cli/src/welcome.js +0 -81
- package/dist/auth/secure-auth.js +0 -372
- package/dist/bundle.js +0 -504
- package/dist/commands/analyze.js +0 -390
- package/dist/commands/auth-new.js +0 -37
- package/dist/commands/auth.js +0 -134
- package/dist/commands/config.js +0 -51
- package/dist/commands/deploy.js +0 -6
- package/dist/commands/init.js +0 -47
- package/dist/commands/logout.js +0 -31
- package/dist/commands/plugins.js +0 -21
- package/dist/commands/status.js +0 -82
- package/dist/commands/sync.js +0 -6
- package/dist/commands/whoami.js +0 -72
- package/dist/components/Dashboard.js +0 -169
- package/dist/components/DeltaApp.js +0 -57
- package/dist/components/UnifiedManager.js +0 -344
- package/dist/core/audit.js +0 -184
- package/dist/core/completion.js +0 -294
- package/dist/core/contracts.js +0 -6
- package/dist/core/engine.js +0 -124
- package/dist/core/exit-codes.js +0 -71
- package/dist/core/hooks.js +0 -181
- package/dist/core/index.js +0 -7
- package/dist/core/policy.js +0 -115
- package/dist/core/profiles.js +0 -161
- package/dist/core/wizard.js +0 -203
- package/dist/index.js +0 -387
- package/dist/interactive/index.js +0 -11
- package/dist/packages/domain/src/constitution/contracts/index.js +0 -43
- package/dist/packages/domain/src/constitution/contracts/ts.rules.js +0 -268
- package/dist/packages/domain/src/constitution/index.js +0 -139
- package/dist/packages/domain/src/constitution/maintainability/index.js +0 -43
- package/dist/packages/domain/src/constitution/maintainability/ts.rules.js +0 -344
- package/dist/packages/domain/src/constitution/observability/index.js +0 -43
- package/dist/packages/domain/src/constitution/observability/ts.rules.js +0 -307
- package/dist/packages/domain/src/constitution/performance/index.js +0 -43
- package/dist/packages/domain/src/constitution/performance/ts.rules.js +0 -325
- package/dist/packages/domain/src/constitution/security/index.js +0 -50
- package/dist/packages/domain/src/constitution/security/ts.rules.js +0 -267
- package/dist/packages/domain/src/constitution/soc/index.js +0 -43
- package/dist/packages/domain/src/constitution/soc/ts.rules.js +0 -360
- package/dist/packages/domain/src/contracts/analysis.contract.js +0 -18
- package/dist/packages/domain/src/contracts/index.js +0 -7
- package/dist/packages/domain/src/contracts/projects.contract.js +0 -18
- package/dist/packages/domain/src/control/registry/rules.registry.js +0 -29
- package/dist/packages/domain/src/control/schemas/policies.js +0 -6
- package/dist/packages/domain/src/core/analysis/discovery.js +0 -163
- package/dist/packages/domain/src/core/analysis/engine.contract.js +0 -298
- package/dist/packages/domain/src/core/analysis/engine.js +0 -77
- package/dist/packages/domain/src/core/analysis/index.js +0 -14
- package/dist/packages/domain/src/core/analysis/orchestrator.js +0 -242
- package/dist/packages/domain/src/core/comparison/engine.js +0 -29
- package/dist/packages/domain/src/core/comparison/index.js +0 -5
- package/dist/packages/domain/src/core/documentation/index.js +0 -5
- package/dist/packages/domain/src/core/documentation/pipeline.js +0 -41
- package/dist/packages/domain/src/core/fs/adapter.js +0 -111
- package/dist/packages/domain/src/core/fs/index.js +0 -5
- package/dist/packages/domain/src/core/parser/unified-parser.js +0 -166
- package/dist/packages/domain/src/index.js +0 -33
- package/dist/packages/domain/src/plugin/registry.js +0 -195
- package/dist/packages/domain/src/plugin/types.js +0 -6
- package/dist/packages/domain/src/ports/analysis.engine.js +0 -7
- package/dist/packages/domain/src/ports/audit.logger.js +0 -7
- package/dist/packages/domain/src/ports/project.repository.js +0 -7
- package/dist/packages/domain/src/rules/index.js +0 -134
- package/dist/packages/domain/src/types/analysis.js +0 -6
- package/dist/packages/domain/src/types/errors.js +0 -53
- package/dist/packages/domain/src/types/fs.js +0 -6
- package/dist/packages/domain/src/types/index.js +0 -7
- package/dist/plugins/GitStatusPlugin.js +0 -93
- package/dist/providers/ai-provider.js +0 -74
- package/dist/providers/local-provider.js +0 -304
- package/dist/providers/remote-provider.js +0 -100
- package/dist/types/api.js +0 -3
- package/dist/ui.js +0 -219
- package/dist/welcome.js +0 -81
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI Analysis Adapter
|
|
3
|
+
* @description Bridges CLI commands with Domain Layer analysis engine
|
|
4
|
+
* @package apps/cli
|
|
5
|
+
*/
|
|
6
|
+
import { analyze, type AnalysisOptions, type CoreAnalysisResult } from '@delta/domain';
|
|
7
|
+
export type { AnalysisOptions, CoreAnalysisResult as AnalysisResult, } from '@delta/domain';
|
|
8
|
+
/**
|
|
9
|
+
* Analyze a project using Domain Layer engine
|
|
10
|
+
* Replaces local validators with unified Domain analysis
|
|
11
|
+
*/
|
|
12
|
+
export declare function analyzeProject(projectPath: string, options?: Partial<AnalysisOptions>): Promise<CoreAnalysisResult>;
|
|
13
|
+
/**
|
|
14
|
+
* Generate report from analysis results
|
|
15
|
+
*/
|
|
16
|
+
export declare function generateAnalysisReport(result: CoreAnalysisResult, format?: 'json' | 'html' | 'markdown'): Promise<{
|
|
17
|
+
id: string;
|
|
18
|
+
content: string;
|
|
19
|
+
format: string;
|
|
20
|
+
}>;
|
|
21
|
+
/**
|
|
22
|
+
* Create analysis session for progress tracking
|
|
23
|
+
*/
|
|
24
|
+
export declare function createAnalysisSession(config: any, policies: any): import("@delta/domain/core/analysis/engine").AnalysisSession;
|
|
25
|
+
/**
|
|
26
|
+
* Direct engine access for advanced use cases
|
|
27
|
+
*/
|
|
28
|
+
export { analyze as runDirectAnalysis };
|
|
29
|
+
//# sourceMappingURL=analysis.adapter.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Analyze Command
|
|
3
|
+
* @description Main analysis command using Domain Layer engine
|
|
4
|
+
*/
|
|
5
|
+
interface AnalyzeOptions {
|
|
6
|
+
language: string;
|
|
7
|
+
output: string;
|
|
8
|
+
depth: string;
|
|
9
|
+
config?: string;
|
|
10
|
+
strict: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function analyzeCommand(projectPath: string, options: AnalyzeOptions): Promise<void>;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=analyze.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Config Command
|
|
3
|
+
* @description Manage analyzer configuration
|
|
4
|
+
*/
|
|
5
|
+
interface ConfigOptions {
|
|
6
|
+
init?: boolean;
|
|
7
|
+
show?: boolean;
|
|
8
|
+
set?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function configCommand(options: ConfigOptions): Promise<void>;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Report Command
|
|
3
|
+
* @description Generate report from previous analysis
|
|
4
|
+
*/
|
|
5
|
+
interface ReportOptions {
|
|
6
|
+
template: string;
|
|
7
|
+
output?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function reportCommand(analysisFile: string, options: ReportOptions): Promise<void>;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=report.d.ts.map
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Report Generator
|
|
3
|
+
* @description Generates analysis reports in various formats
|
|
4
|
+
*/
|
|
5
|
+
interface AnalysisResult {
|
|
6
|
+
project: {
|
|
7
|
+
name: string;
|
|
8
|
+
path: string;
|
|
9
|
+
language: string;
|
|
10
|
+
fileCount: number;
|
|
11
|
+
};
|
|
12
|
+
timestamp: string;
|
|
13
|
+
overall: {
|
|
14
|
+
score: number;
|
|
15
|
+
percentage: number;
|
|
16
|
+
grade: string;
|
|
17
|
+
compliant: boolean;
|
|
18
|
+
};
|
|
19
|
+
scores: Record<string, {
|
|
20
|
+
score: number;
|
|
21
|
+
maxScore: number;
|
|
22
|
+
percentage: number;
|
|
23
|
+
weight: number;
|
|
24
|
+
}>;
|
|
25
|
+
violations: Array<{
|
|
26
|
+
id: string;
|
|
27
|
+
axis: string;
|
|
28
|
+
severity: string;
|
|
29
|
+
message: string;
|
|
30
|
+
}>;
|
|
31
|
+
recommendations: Array<{
|
|
32
|
+
axis: string;
|
|
33
|
+
priority: string;
|
|
34
|
+
description: string;
|
|
35
|
+
action: string;
|
|
36
|
+
}>;
|
|
37
|
+
}
|
|
38
|
+
export declare class ReportGenerator {
|
|
39
|
+
static generateHTML(result: AnalysisResult): string;
|
|
40
|
+
static generateMarkdown(result: AnalysisResult): string;
|
|
41
|
+
}
|
|
42
|
+
export {};
|
|
43
|
+
//# sourceMappingURL=report.generator.d.ts.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Project Scanner
|
|
3
|
+
* @description Scans project structure and extracts metadata
|
|
4
|
+
*/
|
|
5
|
+
export interface ProjectInfo {
|
|
6
|
+
path: string;
|
|
7
|
+
name: string;
|
|
8
|
+
language: string;
|
|
9
|
+
size: number;
|
|
10
|
+
fileCount: number;
|
|
11
|
+
files: string[];
|
|
12
|
+
directories: string[];
|
|
13
|
+
imports: ImportInfo[];
|
|
14
|
+
hasPackageJson: boolean;
|
|
15
|
+
hasTsConfig: boolean;
|
|
16
|
+
hasTests: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface ImportInfo {
|
|
19
|
+
source: string;
|
|
20
|
+
target: string;
|
|
21
|
+
type: 'internal' | 'external';
|
|
22
|
+
}
|
|
23
|
+
export declare class ProjectScanner {
|
|
24
|
+
static scan(projectPath: string, language: string): Promise<ProjectInfo>;
|
|
25
|
+
private static scanDirectory;
|
|
26
|
+
private static isSourceFile;
|
|
27
|
+
private static extractImports;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=project.scanner.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Contracts Validator
|
|
3
|
+
* @description Validates Contracts rules
|
|
4
|
+
*/
|
|
5
|
+
import { ProjectInfo } from '../scanners/project.scanner';
|
|
6
|
+
interface ValidationOptions {
|
|
7
|
+
depth: string;
|
|
8
|
+
}
|
|
9
|
+
interface ValidationResult {
|
|
10
|
+
score: number;
|
|
11
|
+
maxScore: number;
|
|
12
|
+
percentage: number;
|
|
13
|
+
violations: Violation[];
|
|
14
|
+
}
|
|
15
|
+
interface Violation {
|
|
16
|
+
id: string;
|
|
17
|
+
severity: 'critical' | 'error' | 'warning' | 'info';
|
|
18
|
+
message: string;
|
|
19
|
+
file?: string;
|
|
20
|
+
line?: number;
|
|
21
|
+
rule: string;
|
|
22
|
+
}
|
|
23
|
+
export declare class ContractsValidator {
|
|
24
|
+
static validate(project: ProjectInfo, _options: ValidationOptions): Promise<ValidationResult>;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=contracts.validator.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Maintainability Validator
|
|
3
|
+
* @description Validates Maintainability rules
|
|
4
|
+
*/
|
|
5
|
+
import { ProjectInfo } from '../scanners/project.scanner';
|
|
6
|
+
interface ValidationOptions {
|
|
7
|
+
depth: string;
|
|
8
|
+
}
|
|
9
|
+
interface ValidationResult {
|
|
10
|
+
score: number;
|
|
11
|
+
maxScore: number;
|
|
12
|
+
percentage: number;
|
|
13
|
+
violations: Violation[];
|
|
14
|
+
}
|
|
15
|
+
interface Violation {
|
|
16
|
+
id: string;
|
|
17
|
+
severity: 'critical' | 'error' | 'warning' | 'info';
|
|
18
|
+
message: string;
|
|
19
|
+
file?: string;
|
|
20
|
+
line?: number;
|
|
21
|
+
rule: string;
|
|
22
|
+
}
|
|
23
|
+
export declare class MaintainabilityValidator {
|
|
24
|
+
static validate(project: ProjectInfo, _options: ValidationOptions): Promise<ValidationResult>;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=maintainability.validator.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Observability Validator
|
|
3
|
+
* @description Validates Observability rules
|
|
4
|
+
*/
|
|
5
|
+
import { ProjectInfo } from '../scanners/project.scanner';
|
|
6
|
+
interface ValidationOptions {
|
|
7
|
+
depth: string;
|
|
8
|
+
}
|
|
9
|
+
interface ValidationResult {
|
|
10
|
+
score: number;
|
|
11
|
+
maxScore: number;
|
|
12
|
+
percentage: number;
|
|
13
|
+
violations: Violation[];
|
|
14
|
+
}
|
|
15
|
+
interface Violation {
|
|
16
|
+
id: string;
|
|
17
|
+
severity: 'critical' | 'error' | 'warning' | 'info';
|
|
18
|
+
message: string;
|
|
19
|
+
file?: string;
|
|
20
|
+
line?: number;
|
|
21
|
+
rule: string;
|
|
22
|
+
}
|
|
23
|
+
export declare class ObservabilityValidator {
|
|
24
|
+
static validate(project: ProjectInfo, _options: ValidationOptions): Promise<ValidationResult>;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=observability.validator.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Performance Validator
|
|
3
|
+
* @description Validates performance rules
|
|
4
|
+
*/
|
|
5
|
+
import { ProjectInfo } from '../scanners/project.scanner';
|
|
6
|
+
interface ValidationOptions {
|
|
7
|
+
depth: string;
|
|
8
|
+
}
|
|
9
|
+
interface ValidationResult {
|
|
10
|
+
score: number;
|
|
11
|
+
maxScore: number;
|
|
12
|
+
percentage: number;
|
|
13
|
+
violations: Violation[];
|
|
14
|
+
}
|
|
15
|
+
interface Violation {
|
|
16
|
+
id: string;
|
|
17
|
+
severity: 'critical' | 'error' | 'warning' | 'info';
|
|
18
|
+
message: string;
|
|
19
|
+
file?: string;
|
|
20
|
+
line?: number;
|
|
21
|
+
rule: string;
|
|
22
|
+
}
|
|
23
|
+
export declare class PerformanceValidator {
|
|
24
|
+
static validate(project: ProjectInfo, _options: ValidationOptions): Promise<ValidationResult>;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=performance.validator.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Security Validator
|
|
3
|
+
* @description Validates security rules against project
|
|
4
|
+
*/
|
|
5
|
+
import { ProjectInfo } from '../scanners/project.scanner';
|
|
6
|
+
interface ValidationOptions {
|
|
7
|
+
depth: string;
|
|
8
|
+
}
|
|
9
|
+
interface ValidationResult {
|
|
10
|
+
score: number;
|
|
11
|
+
maxScore: number;
|
|
12
|
+
percentage: number;
|
|
13
|
+
violations: Violation[];
|
|
14
|
+
}
|
|
15
|
+
interface Violation {
|
|
16
|
+
id: string;
|
|
17
|
+
severity: 'critical' | 'error' | 'warning' | 'info';
|
|
18
|
+
message: string;
|
|
19
|
+
file?: string;
|
|
20
|
+
line?: number;
|
|
21
|
+
rule: string;
|
|
22
|
+
}
|
|
23
|
+
export declare class SecurityValidator {
|
|
24
|
+
static validate(project: ProjectInfo, options: ValidationOptions): Promise<ValidationResult>;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=security.validator.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SoC Validator
|
|
3
|
+
* @description Validates Separation of Concerns rules
|
|
4
|
+
*/
|
|
5
|
+
import { ProjectInfo } from '../scanners/project.scanner';
|
|
6
|
+
interface ValidationOptions {
|
|
7
|
+
depth: string;
|
|
8
|
+
}
|
|
9
|
+
interface ValidationResult {
|
|
10
|
+
score: number;
|
|
11
|
+
maxScore: number;
|
|
12
|
+
percentage: number;
|
|
13
|
+
violations: Violation[];
|
|
14
|
+
}
|
|
15
|
+
interface Violation {
|
|
16
|
+
id: string;
|
|
17
|
+
severity: 'critical' | 'error' | 'warning' | 'info';
|
|
18
|
+
message: string;
|
|
19
|
+
file?: string;
|
|
20
|
+
line?: number;
|
|
21
|
+
rule: string;
|
|
22
|
+
}
|
|
23
|
+
export declare class SocValidator {
|
|
24
|
+
static validate(project: ProjectInfo, _options: ValidationOptions): Promise<ValidationResult>;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=soc.validator.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare class DeviceAuthorizationFlow {
|
|
2
|
+
private apiUrl;
|
|
3
|
+
private clientId;
|
|
4
|
+
constructor(apiUrl: string, clientId?: string);
|
|
5
|
+
startDeviceFlow(): Promise<boolean>;
|
|
6
|
+
private requestDeviceCode;
|
|
7
|
+
private displayAuthorizationInstructions;
|
|
8
|
+
private openBrowser;
|
|
9
|
+
private executeCommand;
|
|
10
|
+
private pollForToken;
|
|
11
|
+
private saveTokens;
|
|
12
|
+
private showSuccess;
|
|
13
|
+
private handleError;
|
|
14
|
+
private makeRequest;
|
|
15
|
+
private sleep;
|
|
16
|
+
}
|
|
17
|
+
export declare function startDeviceFlow(apiUrl: string): Promise<boolean>;
|
|
18
|
+
//# sourceMappingURL=device-auth.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Secure Authentication System with OAuth2 + Keychain Integration
|
|
3
|
+
* Features:
|
|
4
|
+
* - OAuth2 PKCE flow
|
|
5
|
+
* - Secure token storage in OS keychain
|
|
6
|
+
* - Automatic token refresh
|
|
7
|
+
* - Session management
|
|
8
|
+
* - PAT (Personal Access Token) support for CI/CD
|
|
9
|
+
*/
|
|
10
|
+
export declare class SecureTokenStore {
|
|
11
|
+
private static saveTokens;
|
|
12
|
+
private static loadTokens;
|
|
13
|
+
static saveAccessToken(token: string): Promise<void>;
|
|
14
|
+
static getAccessToken(): Promise<string | null>;
|
|
15
|
+
static saveRefreshToken(token: string): Promise<void>;
|
|
16
|
+
static saveSessionInfo(sessionInfo: {
|
|
17
|
+
session_id: string;
|
|
18
|
+
expires_at: string;
|
|
19
|
+
}): Promise<void>;
|
|
20
|
+
static getRefreshToken(): Promise<string | null>;
|
|
21
|
+
static clearTokens(): Promise<void>;
|
|
22
|
+
static hasTokens(): Promise<boolean>;
|
|
23
|
+
}
|
|
24
|
+
export declare function startOAuthFlow(method?: string): Promise<boolean>;
|
|
25
|
+
export declare function authenticateWithPAT(token: string): Promise<boolean>;
|
|
26
|
+
export declare function refreshAccessToken(): Promise<boolean>;
|
|
27
|
+
export declare function logout(): Promise<void>;
|
|
28
|
+
export declare function getAuthStatus(): Promise<{
|
|
29
|
+
authenticated: boolean;
|
|
30
|
+
user?: {
|
|
31
|
+
email: string;
|
|
32
|
+
plan: string;
|
|
33
|
+
};
|
|
34
|
+
}>;
|
|
35
|
+
//# sourceMappingURL=secure-auth.d.ts.map
|