stringray-ai 1.0.37 → 1.0.39
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/plugin/architectural-integrity.d.ts +21 -0
- package/dist/plugin/architectural-integrity.d.ts.map +1 -0
- package/dist/plugin/architectural-integrity.js +81 -0
- package/dist/plugin/architectural-integrity.js.map +1 -0
- package/dist/plugin/boot-orchestrator.d.ts +100 -0
- package/dist/plugin/boot-orchestrator.d.ts.map +1 -0
- package/dist/plugin/boot-orchestrator.js +606 -0
- package/dist/plugin/boot-orchestrator.js.map +1 -0
- package/dist/plugin/codex-injector.d.ts +72 -0
- package/dist/plugin/codex-injector.d.ts.map +1 -0
- package/dist/plugin/codex-injector.js +387 -0
- package/dist/plugin/codex-injector.js.map +1 -0
- package/dist/plugin/delegation/index.d.ts +16 -0
- package/dist/plugin/delegation/index.d.ts.map +1 -0
- package/dist/plugin/delegation/index.js +13 -0
- package/dist/plugin/delegation/index.js.map +1 -0
- package/dist/plugin/delegation/session-coordinator.d.ts +121 -0
- package/dist/plugin/delegation/session-coordinator.d.ts.map +1 -0
- package/dist/plugin/delegation/session-coordinator.js +346 -0
- package/dist/plugin/delegation/session-coordinator.js.map +1 -0
- package/dist/plugin/index.d.ts +3 -0
- package/dist/plugin/index.d.ts.map +1 -0
- package/dist/plugin/index.js +3 -0
- package/dist/plugin/index.js.map +1 -0
- package/dist/plugin/monitoring/memory-monitor.d.ts +113 -0
- package/dist/plugin/monitoring/memory-monitor.d.ts.map +1 -0
- package/dist/plugin/monitoring/memory-monitor.js +283 -0
- package/dist/plugin/monitoring/memory-monitor.js.map +1 -0
- package/dist/plugin/postprocessor/PostProcessor.d.ts +90 -0
- package/dist/plugin/postprocessor/PostProcessor.d.ts.map +1 -0
- package/dist/plugin/postprocessor/PostProcessor.js +631 -0
- package/dist/plugin/postprocessor/PostProcessor.js.map +1 -0
- package/dist/plugin/postprocessor/analysis/FailureAnalysisEngine.d.ts +40 -0
- package/dist/plugin/postprocessor/analysis/FailureAnalysisEngine.d.ts.map +1 -0
- package/dist/plugin/postprocessor/analysis/FailureAnalysisEngine.js +244 -0
- package/dist/plugin/postprocessor/analysis/FailureAnalysisEngine.js.map +1 -0
- package/dist/plugin/postprocessor/autofix/AutoFixEngine.d.ts +50 -0
- package/dist/plugin/postprocessor/autofix/AutoFixEngine.d.ts.map +1 -0
- package/dist/plugin/postprocessor/autofix/AutoFixEngine.js +246 -0
- package/dist/plugin/postprocessor/autofix/AutoFixEngine.js.map +1 -0
- package/dist/plugin/postprocessor/autofix/FixValidator.d.ts +27 -0
- package/dist/plugin/postprocessor/autofix/FixValidator.d.ts.map +1 -0
- package/dist/plugin/postprocessor/autofix/FixValidator.js +158 -0
- package/dist/plugin/postprocessor/autofix/FixValidator.js.map +1 -0
- package/dist/plugin/postprocessor/config.d.ts +7 -0
- package/dist/plugin/postprocessor/config.d.ts.map +1 -0
- package/dist/plugin/postprocessor/config.js +66 -0
- package/dist/plugin/postprocessor/config.js.map +1 -0
- package/dist/plugin/postprocessor/escalation/EscalationEngine.d.ts +73 -0
- package/dist/plugin/postprocessor/escalation/EscalationEngine.d.ts.map +1 -0
- package/dist/plugin/postprocessor/escalation/EscalationEngine.js +249 -0
- package/dist/plugin/postprocessor/escalation/EscalationEngine.js.map +1 -0
- package/dist/plugin/postprocessor/monitoring/MonitoringEngine.d.ts +19 -0
- package/dist/plugin/postprocessor/monitoring/MonitoringEngine.d.ts.map +1 -0
- package/dist/plugin/postprocessor/monitoring/MonitoringEngine.js +120 -0
- package/dist/plugin/postprocessor/monitoring/MonitoringEngine.js.map +1 -0
- package/dist/plugin/postprocessor/redeploy/RedeployCoordinator.d.ts +92 -0
- package/dist/plugin/postprocessor/redeploy/RedeployCoordinator.d.ts.map +1 -0
- package/dist/plugin/postprocessor/redeploy/RedeployCoordinator.js +319 -0
- package/dist/plugin/postprocessor/redeploy/RedeployCoordinator.js.map +1 -0
- package/dist/plugin/postprocessor/success/SuccessHandler.d.ts +61 -0
- package/dist/plugin/postprocessor/success/SuccessHandler.d.ts.map +1 -0
- package/dist/plugin/postprocessor/success/SuccessHandler.js +148 -0
- package/dist/plugin/postprocessor/success/SuccessHandler.js.map +1 -0
- package/dist/plugin/postprocessor/triggers/APITrigger.d.ts +13 -0
- package/dist/plugin/postprocessor/triggers/APITrigger.d.ts.map +1 -0
- package/dist/plugin/postprocessor/triggers/APITrigger.js +20 -0
- package/dist/plugin/postprocessor/triggers/APITrigger.js.map +1 -0
- package/dist/plugin/postprocessor/triggers/GitHookTrigger.d.ts +17 -0
- package/dist/plugin/postprocessor/triggers/GitHookTrigger.d.ts.map +1 -0
- package/dist/plugin/postprocessor/triggers/GitHookTrigger.js +285 -0
- package/dist/plugin/postprocessor/triggers/GitHookTrigger.js.map +1 -0
- package/dist/plugin/postprocessor/triggers/WebhookTrigger.d.ts +13 -0
- package/dist/plugin/postprocessor/triggers/WebhookTrigger.d.ts.map +1 -0
- package/dist/plugin/postprocessor/triggers/WebhookTrigger.js +21 -0
- package/dist/plugin/postprocessor/triggers/WebhookTrigger.js.map +1 -0
- package/dist/plugin/postprocessor/types.d.ts +198 -0
- package/dist/plugin/postprocessor/types.d.ts.map +1 -0
- package/dist/plugin/postprocessor/types.js +5 -0
- package/dist/plugin/postprocessor/types.js.map +1 -0
- package/dist/plugin/security/security-auditor.d.ts +57 -0
- package/dist/plugin/security/security-auditor.d.ts.map +1 -0
- package/dist/plugin/security/security-auditor.js +583 -0
- package/dist/plugin/security/security-auditor.js.map +1 -0
- package/dist/plugin/security/security-hardener.d.ts +63 -0
- package/dist/plugin/security/security-hardener.d.ts.map +1 -0
- package/dist/plugin/security/security-hardener.js +181 -0
- package/dist/plugin/security/security-hardener.js.map +1 -0
- package/dist/plugin/security/security-headers.d.ts +52 -0
- package/dist/plugin/security/security-headers.d.ts.map +1 -0
- package/dist/plugin/security/security-headers.js +118 -0
- package/dist/plugin/security/security-headers.js.map +1 -0
- package/dist/plugin/session/session-cleanup-manager.d.ts +118 -0
- package/dist/plugin/session/session-cleanup-manager.d.ts.map +1 -0
- package/dist/plugin/session/session-cleanup-manager.js +324 -0
- package/dist/plugin/session/session-cleanup-manager.js.map +1 -0
- package/dist/plugin/session/session-monitor.d.ts +99 -0
- package/dist/plugin/session/session-monitor.d.ts.map +1 -0
- package/dist/plugin/session/session-monitor.js +363 -0
- package/dist/plugin/session/session-monitor.js.map +1 -0
- package/dist/plugin/session/session-state-manager.d.ts +142 -0
- package/dist/plugin/session/session-state-manager.d.ts.map +1 -0
- package/dist/plugin/session/session-state-manager.js +504 -0
- package/dist/plugin/session/session-state-manager.js.map +1 -0
- package/dist/plugin/strray-activation.d.ts +18 -0
- package/dist/plugin/strray-activation.d.ts.map +1 -0
- package/dist/plugin/strray-activation.js +114 -0
- package/dist/plugin/strray-activation.js.map +1 -0
- package/dist/plugin/validation/report-content-validator.d.ts +43 -0
- package/dist/plugin/validation/report-content-validator.d.ts.map +1 -0
- package/dist/plugin/validation/report-content-validator.js +219 -0
- package/dist/plugin/validation/report-content-validator.js.map +1 -0
- package/package.json +1 -1
- package/scripts/test-complex-orchestration.mjs +1 -1
- package/scripts/test-simple-prompt.mjs +1 -1
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Post-Processor Type Definitions
|
|
3
|
+
*/
|
|
4
|
+
export interface PostProcessorConfig {
|
|
5
|
+
triggers: {
|
|
6
|
+
gitHooks: boolean;
|
|
7
|
+
webhooks: boolean;
|
|
8
|
+
api: boolean;
|
|
9
|
+
};
|
|
10
|
+
monitoring: {
|
|
11
|
+
enabled: boolean;
|
|
12
|
+
interval: number;
|
|
13
|
+
timeout: number;
|
|
14
|
+
};
|
|
15
|
+
autoFix: {
|
|
16
|
+
enabled: boolean;
|
|
17
|
+
confidenceThreshold: number;
|
|
18
|
+
maxAttempts: number;
|
|
19
|
+
};
|
|
20
|
+
maxAttempts: number;
|
|
21
|
+
retryDelay: number;
|
|
22
|
+
escalation: {
|
|
23
|
+
manualInterventionThreshold: number;
|
|
24
|
+
rollbackThreshold: number;
|
|
25
|
+
emergencyThreshold: number;
|
|
26
|
+
};
|
|
27
|
+
redeploy: {
|
|
28
|
+
maxRetries: number;
|
|
29
|
+
retryDelay: number;
|
|
30
|
+
backoffStrategy: "linear" | "exponential";
|
|
31
|
+
canaryEnabled: boolean;
|
|
32
|
+
canaryPhases: number;
|
|
33
|
+
canaryTrafficIncrement: number;
|
|
34
|
+
healthCheckTimeout: number;
|
|
35
|
+
rollbackOnFailure: boolean;
|
|
36
|
+
};
|
|
37
|
+
success: {
|
|
38
|
+
successConfirmation: boolean;
|
|
39
|
+
cleanupEnabled: boolean;
|
|
40
|
+
notificationEnabled: boolean;
|
|
41
|
+
metricsCollection: boolean;
|
|
42
|
+
};
|
|
43
|
+
reporting: {
|
|
44
|
+
enabled: boolean;
|
|
45
|
+
autoGenerate: boolean;
|
|
46
|
+
reportThreshold: number;
|
|
47
|
+
reportDir: string;
|
|
48
|
+
retentionDays: number;
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export interface PostProcessorContext {
|
|
52
|
+
commitSha: string;
|
|
53
|
+
repository: string;
|
|
54
|
+
branch: string;
|
|
55
|
+
author: string;
|
|
56
|
+
files: string[];
|
|
57
|
+
trigger: "git-hook" | "webhook" | "api" | "manual";
|
|
58
|
+
}
|
|
59
|
+
export interface PostProcessorResult {
|
|
60
|
+
success: boolean;
|
|
61
|
+
commitSha: string;
|
|
62
|
+
sessionId: string;
|
|
63
|
+
attempts: number;
|
|
64
|
+
monitoringResults?: any[];
|
|
65
|
+
fixesApplied?: any[];
|
|
66
|
+
error?: string;
|
|
67
|
+
duration?: number;
|
|
68
|
+
}
|
|
69
|
+
export interface MonitoringResult {
|
|
70
|
+
commitSha: string;
|
|
71
|
+
overallStatus: "success" | "failure" | "running";
|
|
72
|
+
timestamp: Date;
|
|
73
|
+
ciStatus?: CIStatus;
|
|
74
|
+
performanceStatus?: PerformanceStatus;
|
|
75
|
+
securityStatus?: SecurityStatus;
|
|
76
|
+
failedJobs?: string[];
|
|
77
|
+
duration: number;
|
|
78
|
+
}
|
|
79
|
+
export interface CIStatus {
|
|
80
|
+
status: "success" | "failure" | "running";
|
|
81
|
+
failedJobs: string[];
|
|
82
|
+
totalJobs: number;
|
|
83
|
+
duration: number;
|
|
84
|
+
}
|
|
85
|
+
export interface PerformanceStatus {
|
|
86
|
+
status: "passed" | "failed" | "warning";
|
|
87
|
+
score: number;
|
|
88
|
+
regressions: string[];
|
|
89
|
+
duration: number;
|
|
90
|
+
}
|
|
91
|
+
export interface SecurityStatus {
|
|
92
|
+
status: "passed" | "failed" | "warning";
|
|
93
|
+
vulnerabilities: number;
|
|
94
|
+
criticalVulnerabilities: number;
|
|
95
|
+
scanDuration: number;
|
|
96
|
+
}
|
|
97
|
+
export interface FailureAnalysis {
|
|
98
|
+
category: string;
|
|
99
|
+
severity: "low" | "medium" | "high" | "critical";
|
|
100
|
+
confidence: number;
|
|
101
|
+
rootCause: string;
|
|
102
|
+
recommendedActions: string[];
|
|
103
|
+
suggestedFixes: SuggestedFix[];
|
|
104
|
+
}
|
|
105
|
+
export interface SuggestedFix {
|
|
106
|
+
type: "dependency-update" | "code-fix" | "config-change" | "test-regeneration";
|
|
107
|
+
confidence: number;
|
|
108
|
+
description: string;
|
|
109
|
+
files: string[];
|
|
110
|
+
changes: any[];
|
|
111
|
+
}
|
|
112
|
+
export interface FixResult {
|
|
113
|
+
success: boolean;
|
|
114
|
+
appliedFixes: AppliedFix[];
|
|
115
|
+
requiresManualIntervention: boolean;
|
|
116
|
+
confidence: number;
|
|
117
|
+
rollbackAvailable: boolean;
|
|
118
|
+
}
|
|
119
|
+
export interface AppliedFix {
|
|
120
|
+
type: string;
|
|
121
|
+
files: string[];
|
|
122
|
+
description: string;
|
|
123
|
+
timestamp: Date;
|
|
124
|
+
rollbackData?: any;
|
|
125
|
+
}
|
|
126
|
+
export interface EscalationResult {
|
|
127
|
+
level: "manual-intervention" | "rollback" | "emergency";
|
|
128
|
+
reason: string;
|
|
129
|
+
recommendations: string[];
|
|
130
|
+
incidentReport: IncidentReport;
|
|
131
|
+
}
|
|
132
|
+
export interface IncidentReport {
|
|
133
|
+
id: string;
|
|
134
|
+
commitSha: string;
|
|
135
|
+
timestamp: Date;
|
|
136
|
+
severity: string;
|
|
137
|
+
affectedSystems: string[];
|
|
138
|
+
rootCause: string;
|
|
139
|
+
impact: string;
|
|
140
|
+
resolution: string;
|
|
141
|
+
timeline: EventTimeline[];
|
|
142
|
+
}
|
|
143
|
+
export interface EventTimeline {
|
|
144
|
+
timestamp: Date;
|
|
145
|
+
event: string;
|
|
146
|
+
details: string;
|
|
147
|
+
}
|
|
148
|
+
export interface RedeployResult {
|
|
149
|
+
success: boolean;
|
|
150
|
+
deploymentId: string;
|
|
151
|
+
commitSha: string;
|
|
152
|
+
environment: string;
|
|
153
|
+
duration: number;
|
|
154
|
+
error?: string;
|
|
155
|
+
rollbackPerformed?: boolean;
|
|
156
|
+
canaryResults?: CanaryResult[];
|
|
157
|
+
}
|
|
158
|
+
export interface CanaryResult {
|
|
159
|
+
phase: number;
|
|
160
|
+
trafficPercentage: number;
|
|
161
|
+
success: boolean;
|
|
162
|
+
metrics: {
|
|
163
|
+
responseTime: number;
|
|
164
|
+
errorRate: number;
|
|
165
|
+
throughput: number;
|
|
166
|
+
};
|
|
167
|
+
duration: number;
|
|
168
|
+
}
|
|
169
|
+
export type PostProcessorEvent = {
|
|
170
|
+
type: "initialized";
|
|
171
|
+
config: PostProcessorConfig;
|
|
172
|
+
} | {
|
|
173
|
+
type: "loop-started";
|
|
174
|
+
context: PostProcessorContext;
|
|
175
|
+
} | {
|
|
176
|
+
type: "monitoring-completed";
|
|
177
|
+
result: MonitoringResult;
|
|
178
|
+
} | {
|
|
179
|
+
type: "failure-detected";
|
|
180
|
+
analysis: FailureAnalysis;
|
|
181
|
+
} | {
|
|
182
|
+
type: "fix-applied";
|
|
183
|
+
result: FixResult;
|
|
184
|
+
} | {
|
|
185
|
+
type: "redeployment-initiated";
|
|
186
|
+
commitSha: string;
|
|
187
|
+
} | {
|
|
188
|
+
type: "loop-completed";
|
|
189
|
+
result: PostProcessorResult;
|
|
190
|
+
} | {
|
|
191
|
+
type: "escalation-triggered";
|
|
192
|
+
result: EscalationResult;
|
|
193
|
+
} | {
|
|
194
|
+
type: "error";
|
|
195
|
+
error: Error;
|
|
196
|
+
context: PostProcessorContext;
|
|
197
|
+
};
|
|
198
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/postprocessor/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,mBAAmB;IAElC,QAAQ,EAAE;QACR,QAAQ,EAAE,OAAO,CAAC;QAClB,QAAQ,EAAE,OAAO,CAAC;QAClB,GAAG,EAAE,OAAO,CAAC;KACd,CAAC;IAGF,UAAU,EAAE;QACV,OAAO,EAAE,OAAO,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IAGF,OAAO,EAAE;QACP,OAAO,EAAE,OAAO,CAAC;QACjB,mBAAmB,EAAE,MAAM,CAAC;QAC5B,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IAGF,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IAGnB,UAAU,EAAE;QACV,2BAA2B,EAAE,MAAM,CAAC;QACpC,iBAAiB,EAAE,MAAM,CAAC;QAC1B,kBAAkB,EAAE,MAAM,CAAC;KAC5B,CAAC;IAGF,QAAQ,EAAE;QACR,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,eAAe,EAAE,QAAQ,GAAG,aAAa,CAAC;QAC1C,aAAa,EAAE,OAAO,CAAC;QACvB,YAAY,EAAE,MAAM,CAAC;QACrB,sBAAsB,EAAE,MAAM,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;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE;QACP,YAAY,EAAE,MAAM,CAAC;QACrB,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,MAAM,kBAAkB,GAC1B;IAAE,IAAI,EAAE,aAAa,CAAC;IAAC,MAAM,EAAE,mBAAmB,CAAA;CAAE,GACpD;IAAE,IAAI,EAAE,cAAc,CAAC;IAAC,OAAO,EAAE,oBAAoB,CAAA;CAAE,GACvD;IAAE,IAAI,EAAE,sBAAsB,CAAC;IAAC,MAAM,EAAE,gBAAgB,CAAA;CAAE,GAC1D;IAAE,IAAI,EAAE,kBAAkB,CAAC;IAAC,QAAQ,EAAE,eAAe,CAAA;CAAE,GACvD;IAAE,IAAI,EAAE,aAAa,CAAC;IAAC,MAAM,EAAE,SAAS,CAAA;CAAE,GAC1C;IAAE,IAAI,EAAE,wBAAwB,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GACrD;IAAE,IAAI,EAAE,gBAAgB,CAAC;IAAC,MAAM,EAAE,mBAAmB,CAAA;CAAE,GACvD;IAAE,IAAI,EAAE,sBAAsB,CAAC;IAAC,MAAM,EAAE,gBAAgB,CAAA;CAAE,GAC1D;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,KAAK,CAAC;IAAC,OAAO,EAAE,oBAAoB,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/postprocessor/types.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* StringRay Framework v1.0.0 - Security Audit Tool
|
|
3
|
+
*
|
|
4
|
+
* Comprehensive security auditing for the framework and its components.
|
|
5
|
+
* Identifies vulnerabilities, misconfigurations, and security weaknesses.
|
|
6
|
+
*
|
|
7
|
+
* @version 1.0.0
|
|
8
|
+
* @since 2026-01-07
|
|
9
|
+
*/
|
|
10
|
+
export interface SecurityIssue {
|
|
11
|
+
severity: "critical" | "high" | "medium" | "low" | "info";
|
|
12
|
+
category: string;
|
|
13
|
+
file: string;
|
|
14
|
+
line?: number;
|
|
15
|
+
description: string;
|
|
16
|
+
recommendation: string;
|
|
17
|
+
cwe?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface SecurityAuditResult {
|
|
20
|
+
totalFiles: number;
|
|
21
|
+
issues: SecurityIssue[];
|
|
22
|
+
summary: {
|
|
23
|
+
critical: number;
|
|
24
|
+
high: number;
|
|
25
|
+
medium: number;
|
|
26
|
+
low: number;
|
|
27
|
+
info: number;
|
|
28
|
+
};
|
|
29
|
+
score: number;
|
|
30
|
+
}
|
|
31
|
+
export declare class SecurityAuditor {
|
|
32
|
+
private readonly dangerousPatterns;
|
|
33
|
+
private readonly dangerousImports;
|
|
34
|
+
/**
|
|
35
|
+
* Run comprehensive security audit
|
|
36
|
+
*/
|
|
37
|
+
auditProject(projectPath?: string): Promise<SecurityAuditResult>;
|
|
38
|
+
private getAllFiles;
|
|
39
|
+
private shouldSkipDirectory;
|
|
40
|
+
private shouldAuditFile;
|
|
41
|
+
private auditFile;
|
|
42
|
+
private isFalsePositive;
|
|
43
|
+
private auditImports;
|
|
44
|
+
private auditFilePermissions;
|
|
45
|
+
private auditPackageJson;
|
|
46
|
+
private auditConfiguration;
|
|
47
|
+
private auditDependencies;
|
|
48
|
+
private getRecommendationForCategory;
|
|
49
|
+
private generateSummary;
|
|
50
|
+
private calculateSecurityScore;
|
|
51
|
+
/**
|
|
52
|
+
* Generate security audit report
|
|
53
|
+
*/
|
|
54
|
+
generateReport(result: SecurityAuditResult): string;
|
|
55
|
+
}
|
|
56
|
+
export declare const securityAuditor: SecurityAuditor;
|
|
57
|
+
//# sourceMappingURL=security-auditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"security-auditor.d.ts","sourceRoot":"","sources":["../../../src/security/security-auditor.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,CAAC;IAC1D,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,OAAO,EAAE;QACP,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,GAAG,EAAE,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAoJhC;IAEF,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAW/B;IAEF;;OAEG;IACG,YAAY,CAAC,WAAW,GAAE,MAAY,GAAG,OAAO,CAAC,mBAAmB,CAAC;IA6B3E,OAAO,CAAC,WAAW;IAsBnB,OAAO,CAAC,mBAAmB;IAa3B,OAAO,CAAC,eAAe;YAYT,SAAS;IAsDvB,OAAO,CAAC,eAAe;IAyCvB,OAAO,CAAC,YAAY;IA6BpB,OAAO,CAAC,oBAAoB;IAsC5B,OAAO,CAAC,gBAAgB;IAsDxB,OAAO,CAAC,kBAAkB;IA6C1B,OAAO,CAAC,iBAAiB;IA4BzB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