@nahisaho/musubix-security 1.8.0 → 1.8.1
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/README.md +27 -0
- package/dist/analyzers/ai/index.d.ts +6 -0
- package/dist/analyzers/ai/index.d.ts.map +1 -0
- package/dist/analyzers/ai/index.js +6 -0
- package/dist/analyzers/ai/index.js.map +1 -0
- package/dist/analyzers/ai/prompt-injection-detector.d.ts +152 -0
- package/dist/analyzers/ai/prompt-injection-detector.d.ts.map +1 -0
- package/dist/analyzers/ai/prompt-injection-detector.js +468 -0
- package/dist/analyzers/ai/prompt-injection-detector.js.map +1 -0
- package/dist/analyzers/api/api-security-analyzer.d.ts +263 -0
- package/dist/analyzers/api/api-security-analyzer.d.ts.map +1 -0
- package/dist/analyzers/api/api-security-analyzer.js +581 -0
- package/dist/analyzers/api/api-security-analyzer.js.map +1 -0
- package/dist/analyzers/compliance/compliance-checker.d.ts +201 -0
- package/dist/analyzers/compliance/compliance-checker.d.ts.map +1 -0
- package/dist/analyzers/compliance/compliance-checker.js +772 -0
- package/dist/analyzers/compliance/compliance-checker.js.map +1 -0
- package/dist/analyzers/container/image-scanner.d.ts +163 -0
- package/dist/analyzers/container/image-scanner.d.ts.map +1 -0
- package/dist/analyzers/container/image-scanner.js +459 -0
- package/dist/analyzers/container/image-scanner.js.map +1 -0
- package/dist/analyzers/container/index.d.ts +6 -0
- package/dist/analyzers/container/index.d.ts.map +1 -0
- package/dist/analyzers/container/index.js +6 -0
- package/dist/analyzers/container/index.js.map +1 -0
- package/dist/analyzers/dashboard/security-dashboard.d.ts +286 -0
- package/dist/analyzers/dashboard/security-dashboard.d.ts.map +1 -0
- package/dist/analyzers/dashboard/security-dashboard.js +796 -0
- package/dist/analyzers/dashboard/security-dashboard.js.map +1 -0
- package/dist/analyzers/iac/iac-checker.d.ts +124 -0
- package/dist/analyzers/iac/iac-checker.d.ts.map +1 -0
- package/dist/analyzers/iac/iac-checker.js +755 -0
- package/dist/analyzers/iac/iac-checker.js.map +1 -0
- package/dist/analyzers/iac/index.d.ts +6 -0
- package/dist/analyzers/iac/index.d.ts.map +1 -0
- package/dist/analyzers/iac/index.js +6 -0
- package/dist/analyzers/iac/index.js.map +1 -0
- package/dist/analyzers/index.d.ts +9 -0
- package/dist/analyzers/index.d.ts.map +1 -0
- package/dist/analyzers/index.js +13 -0
- package/dist/analyzers/index.js.map +1 -0
- package/dist/analyzers/monitor/realtime-monitor.d.ts +216 -0
- package/dist/analyzers/monitor/realtime-monitor.d.ts.map +1 -0
- package/dist/analyzers/monitor/realtime-monitor.js +601 -0
- package/dist/analyzers/monitor/realtime-monitor.js.map +1 -0
- package/dist/analyzers/sast/index.d.ts +7 -0
- package/dist/analyzers/sast/index.d.ts.map +1 -0
- package/dist/analyzers/sast/index.js +7 -0
- package/dist/analyzers/sast/index.js.map +1 -0
- package/dist/analyzers/sast/interprocedural-analyzer.d.ts +276 -0
- package/dist/analyzers/sast/interprocedural-analyzer.d.ts.map +1 -0
- package/dist/analyzers/sast/interprocedural-analyzer.js +635 -0
- package/dist/analyzers/sast/interprocedural-analyzer.js.map +1 -0
- package/dist/analyzers/sast/zero-day-detector.d.ts +183 -0
- package/dist/analyzers/sast/zero-day-detector.d.ts.map +1 -0
- package/dist/analyzers/sast/zero-day-detector.js +593 -0
- package/dist/analyzers/sast/zero-day-detector.js.map +1 -0
- package/dist/analyzers/sca/dependency-scanner.d.ts +275 -0
- package/dist/analyzers/sca/dependency-scanner.d.ts.map +1 -0
- package/dist/analyzers/sca/dependency-scanner.js +642 -0
- package/dist/analyzers/sca/dependency-scanner.js.map +1 -0
- package/dist/core/index.d.ts +8 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +10 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/pipeline-manager.d.ts +105 -0
- package/dist/core/pipeline-manager.d.ts.map +1 -0
- package/dist/core/pipeline-manager.js +449 -0
- package/dist/core/pipeline-manager.js.map +1 -0
- package/dist/core/result-aggregator.d.ts +96 -0
- package/dist/core/result-aggregator.d.ts.map +1 -0
- package/dist/core/result-aggregator.js +462 -0
- package/dist/core/result-aggregator.js.map +1 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +68 -0
- package/dist/index.js.map +1 -1
- package/dist/integrations/ci-integration.d.ts +227 -0
- package/dist/integrations/ci-integration.d.ts.map +1 -0
- package/dist/integrations/ci-integration.js +472 -0
- package/dist/integrations/ci-integration.js.map +1 -0
- package/dist/integrations/git-hooks.d.ts +155 -0
- package/dist/integrations/git-hooks.d.ts.map +1 -0
- package/dist/integrations/git-hooks.js +425 -0
- package/dist/integrations/git-hooks.js.map +1 -0
- package/dist/integrations/index.d.ts +9 -0
- package/dist/integrations/index.d.ts.map +1 -0
- package/dist/integrations/index.js +9 -0
- package/dist/integrations/index.js.map +1 -0
- package/dist/integrations/report-aggregator.d.ts +250 -0
- package/dist/integrations/report-aggregator.d.ts.map +1 -0
- package/dist/integrations/report-aggregator.js +488 -0
- package/dist/integrations/report-aggregator.js.map +1 -0
- package/dist/integrations/vscode-integration.d.ts +245 -0
- package/dist/integrations/vscode-integration.d.ts.map +1 -0
- package/dist/integrations/vscode-integration.js +449 -0
- package/dist/integrations/vscode-integration.js.map +1 -0
- package/dist/intelligence/attack-pattern-matcher.d.ts +217 -0
- package/dist/intelligence/attack-pattern-matcher.d.ts.map +1 -0
- package/dist/intelligence/attack-pattern-matcher.js +887 -0
- package/dist/intelligence/attack-pattern-matcher.js.map +1 -0
- package/dist/intelligence/index.d.ts +12 -0
- package/dist/intelligence/index.d.ts.map +1 -0
- package/dist/intelligence/index.js +18 -0
- package/dist/intelligence/index.js.map +1 -0
- package/dist/intelligence/neuro-symbolic-core.d.ts +88 -0
- package/dist/intelligence/neuro-symbolic-core.d.ts.map +1 -0
- package/dist/intelligence/neuro-symbolic-core.js +403 -0
- package/dist/intelligence/neuro-symbolic-core.js.map +1 -0
- package/dist/intelligence/predictive-analyzer.d.ts +317 -0
- package/dist/intelligence/predictive-analyzer.d.ts.map +1 -0
- package/dist/intelligence/predictive-analyzer.js +714 -0
- package/dist/intelligence/predictive-analyzer.js.map +1 -0
- package/dist/intelligence/risk-scorer.d.ts +333 -0
- package/dist/intelligence/risk-scorer.d.ts.map +1 -0
- package/dist/intelligence/risk-scorer.js +824 -0
- package/dist/intelligence/risk-scorer.js.map +1 -0
- package/dist/intelligence/security-analytics.d.ts +349 -0
- package/dist/intelligence/security-analytics.d.ts.map +1 -0
- package/dist/intelligence/security-analytics.js +813 -0
- package/dist/intelligence/security-analytics.js.map +1 -0
- package/dist/intelligence/threat-intelligence.d.ts +288 -0
- package/dist/intelligence/threat-intelligence.d.ts.map +1 -0
- package/dist/intelligence/threat-intelligence.js +639 -0
- package/dist/intelligence/threat-intelligence.js.map +1 -0
- package/dist/policy/index.d.ts +6 -0
- package/dist/policy/index.d.ts.map +1 -0
- package/dist/policy/index.js +6 -0
- package/dist/policy/index.js.map +1 -0
- package/dist/policy/policy-engine.d.ts +254 -0
- package/dist/policy/policy-engine.d.ts.map +1 -0
- package/dist/policy/policy-engine.js +651 -0
- package/dist/policy/policy-engine.js.map +1 -0
- package/dist/remediation/auto-fixer.d.ts +179 -0
- package/dist/remediation/auto-fixer.d.ts.map +1 -0
- package/dist/remediation/auto-fixer.js +540 -0
- package/dist/remediation/auto-fixer.js.map +1 -0
- package/dist/remediation/fix-validator.d.ts +195 -0
- package/dist/remediation/fix-validator.d.ts.map +1 -0
- package/dist/remediation/fix-validator.js +462 -0
- package/dist/remediation/fix-validator.js.map +1 -0
- package/dist/remediation/index.d.ts +10 -0
- package/dist/remediation/index.d.ts.map +1 -0
- package/dist/remediation/index.js +15 -0
- package/dist/remediation/index.js.map +1 -0
- package/dist/remediation/patch-generator.d.ts +203 -0
- package/dist/remediation/patch-generator.d.ts.map +1 -0
- package/dist/remediation/patch-generator.js +533 -0
- package/dist/remediation/patch-generator.js.map +1 -0
- package/dist/remediation/remediation-planner.d.ts +262 -0
- package/dist/remediation/remediation-planner.d.ts.map +1 -0
- package/dist/remediation/remediation-planner.js +531 -0
- package/dist/remediation/remediation-planner.js.map +1 -0
- package/dist/remediation/secure-code-transformer.d.ts +222 -0
- package/dist/remediation/secure-code-transformer.d.ts.map +1 -0
- package/dist/remediation/secure-code-transformer.js +625 -0
- package/dist/remediation/secure-code-transformer.js.map +1 -0
- package/dist/types/fix.d.ts +3 -1
- package/dist/types/fix.d.ts.map +1 -1
- package/dist/types/index.d.ts +6 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/interprocedural.d.ts +203 -0
- package/dist/types/interprocedural.d.ts.map +1 -0
- package/dist/types/interprocedural.js +7 -0
- package/dist/types/interprocedural.js.map +1 -0
- package/dist/types/neuro-symbolic.d.ts +179 -0
- package/dist/types/neuro-symbolic.d.ts.map +1 -0
- package/dist/types/neuro-symbolic.js +7 -0
- package/dist/types/neuro-symbolic.js.map +1 -0
- package/dist/types/pipeline.d.ts +173 -0
- package/dist/types/pipeline.d.ts.map +1 -0
- package/dist/types/pipeline.js +7 -0
- package/dist/types/pipeline.js.map +1 -0
- package/dist/types/result.d.ts +134 -0
- package/dist/types/result.d.ts.map +1 -0
- package/dist/types/result.js +25 -0
- package/dist/types/result.js.map +1 -0
- package/dist/types/vulnerability.d.ts +2 -2
- package/dist/types/vulnerability.d.ts.map +1 -1
- package/dist/types/zero-day.d.ts +146 -0
- package/dist/types/zero-day.d.ts.map +1 -0
- package/dist/types/zero-day.js +7 -0
- package/dist/types/zero-day.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/policy/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Security Policy Engine
|
|
3
|
+
* @module @nahisaho/musubix-security/policy/policy-engine
|
|
4
|
+
*
|
|
5
|
+
* Provides customizable security policy definition, evaluation,
|
|
6
|
+
* and enforcement capabilities.
|
|
7
|
+
*/
|
|
8
|
+
import type { ScanResult, Vulnerability, Severity } from '../types/index.js';
|
|
9
|
+
/**
|
|
10
|
+
* Policy rule operator
|
|
11
|
+
*/
|
|
12
|
+
export type PolicyOperator = 'equals' | 'not_equals' | 'greater_than' | 'less_than' | 'greater_than_or_equals' | 'less_than_or_equals' | 'contains' | 'not_contains' | 'matches' | 'exists' | 'not_exists';
|
|
13
|
+
/**
|
|
14
|
+
* Policy rule target
|
|
15
|
+
*/
|
|
16
|
+
export type PolicyTarget = 'severity' | 'rule' | 'owasp' | 'cwe' | 'file' | 'message' | 'count.critical' | 'count.high' | 'count.medium' | 'count.low' | 'count.total' | 'score';
|
|
17
|
+
/**
|
|
18
|
+
* Policy action
|
|
19
|
+
*/
|
|
20
|
+
export type PolicyAction = 'fail' | 'warn' | 'info' | 'ignore' | 'require_review';
|
|
21
|
+
/**
|
|
22
|
+
* Policy rule condition
|
|
23
|
+
*/
|
|
24
|
+
export interface PolicyCondition {
|
|
25
|
+
/** Target field to evaluate */
|
|
26
|
+
target: PolicyTarget;
|
|
27
|
+
/** Operator for comparison */
|
|
28
|
+
operator: PolicyOperator;
|
|
29
|
+
/** Value to compare against */
|
|
30
|
+
value: string | number | string[];
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Policy rule
|
|
34
|
+
*/
|
|
35
|
+
export interface PolicyRule {
|
|
36
|
+
/** Rule ID */
|
|
37
|
+
id: string;
|
|
38
|
+
/** Rule name */
|
|
39
|
+
name: string;
|
|
40
|
+
/** Rule description */
|
|
41
|
+
description?: string;
|
|
42
|
+
/** Conditions (all must match - AND logic) */
|
|
43
|
+
conditions: PolicyCondition[];
|
|
44
|
+
/** Action to take when rule matches */
|
|
45
|
+
action: PolicyAction;
|
|
46
|
+
/** Priority (higher = evaluated first) */
|
|
47
|
+
priority?: number;
|
|
48
|
+
/** Whether rule is enabled */
|
|
49
|
+
enabled?: boolean;
|
|
50
|
+
/** Tags for categorization */
|
|
51
|
+
tags?: string[];
|
|
52
|
+
/** Custom metadata */
|
|
53
|
+
metadata?: Record<string, unknown>;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Security policy
|
|
57
|
+
*/
|
|
58
|
+
export interface SecurityPolicy {
|
|
59
|
+
/** Policy name */
|
|
60
|
+
name: string;
|
|
61
|
+
/** Policy version */
|
|
62
|
+
version: string;
|
|
63
|
+
/** Policy description */
|
|
64
|
+
description?: string;
|
|
65
|
+
/** Base policies to extend */
|
|
66
|
+
extends?: string[];
|
|
67
|
+
/** Policy rules */
|
|
68
|
+
rules: PolicyRule[];
|
|
69
|
+
/** Global settings */
|
|
70
|
+
settings?: PolicySettings;
|
|
71
|
+
/** Custom metadata */
|
|
72
|
+
metadata?: Record<string, unknown>;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Policy settings
|
|
76
|
+
*/
|
|
77
|
+
export interface PolicySettings {
|
|
78
|
+
/** Default action when no rules match */
|
|
79
|
+
defaultAction?: PolicyAction;
|
|
80
|
+
/** Stop evaluating after first match */
|
|
81
|
+
stopOnFirstMatch?: boolean;
|
|
82
|
+
/** Enable strict mode (fail on unknown rules) */
|
|
83
|
+
strictMode?: boolean;
|
|
84
|
+
/** Allowed severities (others are ignored) */
|
|
85
|
+
allowedSeverities?: Severity[];
|
|
86
|
+
/** Blocked file patterns */
|
|
87
|
+
blockedPatterns?: string[];
|
|
88
|
+
/** Required compliance standards */
|
|
89
|
+
requiredCompliance?: string[];
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Policy evaluation result
|
|
93
|
+
*/
|
|
94
|
+
export interface PolicyEvaluationResult {
|
|
95
|
+
/** Policy name */
|
|
96
|
+
policyName: string;
|
|
97
|
+
/** Policy version */
|
|
98
|
+
policyVersion: string;
|
|
99
|
+
/** Overall pass/fail */
|
|
100
|
+
passed: boolean;
|
|
101
|
+
/** Final action */
|
|
102
|
+
action: PolicyAction;
|
|
103
|
+
/** Rules that matched */
|
|
104
|
+
matchedRules: PolicyRuleMatch[];
|
|
105
|
+
/** Rules that were evaluated */
|
|
106
|
+
evaluatedRules: number;
|
|
107
|
+
/** Evaluation time in ms */
|
|
108
|
+
evaluationTime: number;
|
|
109
|
+
/** Summary by action */
|
|
110
|
+
summary: PolicyEvaluationSummary;
|
|
111
|
+
/** Recommendations */
|
|
112
|
+
recommendations: string[];
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Policy rule match
|
|
116
|
+
*/
|
|
117
|
+
export interface PolicyRuleMatch {
|
|
118
|
+
/** Rule that matched */
|
|
119
|
+
rule: PolicyRule;
|
|
120
|
+
/** Vulnerabilities that triggered the match */
|
|
121
|
+
triggeredBy: Vulnerability[];
|
|
122
|
+
/** Conditions that matched */
|
|
123
|
+
matchedConditions: PolicyCondition[];
|
|
124
|
+
/** Action from rule */
|
|
125
|
+
action: PolicyAction;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Policy evaluation summary
|
|
129
|
+
*/
|
|
130
|
+
export interface PolicyEvaluationSummary {
|
|
131
|
+
/** Count by action */
|
|
132
|
+
byAction: Record<PolicyAction, number>;
|
|
133
|
+
/** Count of failures */
|
|
134
|
+
failures: number;
|
|
135
|
+
/** Count of warnings */
|
|
136
|
+
warnings: number;
|
|
137
|
+
/** Count of reviews required */
|
|
138
|
+
reviewsRequired: number;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Policy validation result
|
|
142
|
+
*/
|
|
143
|
+
export interface PolicyValidationResult {
|
|
144
|
+
/** Whether policy is valid */
|
|
145
|
+
valid: boolean;
|
|
146
|
+
/** Validation errors */
|
|
147
|
+
errors: PolicyValidationError[];
|
|
148
|
+
/** Validation warnings */
|
|
149
|
+
warnings: PolicyValidationWarning[];
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Policy validation error
|
|
153
|
+
*/
|
|
154
|
+
export interface PolicyValidationError {
|
|
155
|
+
/** Error code */
|
|
156
|
+
code: string;
|
|
157
|
+
/** Error message */
|
|
158
|
+
message: string;
|
|
159
|
+
/** Path to problematic element */
|
|
160
|
+
path?: string;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Policy validation warning
|
|
164
|
+
*/
|
|
165
|
+
export interface PolicyValidationWarning {
|
|
166
|
+
/** Warning code */
|
|
167
|
+
code: string;
|
|
168
|
+
/** Warning message */
|
|
169
|
+
message: string;
|
|
170
|
+
/** Path to element */
|
|
171
|
+
path?: string;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Policy engine options
|
|
175
|
+
*/
|
|
176
|
+
export interface PolicyEngineOptions {
|
|
177
|
+
/** Built-in policies to load */
|
|
178
|
+
builtInPolicies?: ('default' | 'strict' | 'minimal' | 'enterprise')[];
|
|
179
|
+
/** Custom policies */
|
|
180
|
+
customPolicies?: SecurityPolicy[];
|
|
181
|
+
/** Enable caching */
|
|
182
|
+
enableCache?: boolean;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Security Policy Engine
|
|
186
|
+
*
|
|
187
|
+
* @example
|
|
188
|
+
* ```typescript
|
|
189
|
+
* const engine = createPolicyEngine({
|
|
190
|
+
* builtInPolicies: ['default'],
|
|
191
|
+
* });
|
|
192
|
+
*
|
|
193
|
+
* const result = engine.evaluate('default', scanResult);
|
|
194
|
+
* if (!result.passed) {
|
|
195
|
+
* console.log('Policy violations:', result.matchedRules);
|
|
196
|
+
* }
|
|
197
|
+
* ```
|
|
198
|
+
*/
|
|
199
|
+
export declare class PolicyEngine {
|
|
200
|
+
private policies;
|
|
201
|
+
private options;
|
|
202
|
+
constructor(options?: PolicyEngineOptions);
|
|
203
|
+
/**
|
|
204
|
+
* Evaluate scan result against a policy
|
|
205
|
+
*/
|
|
206
|
+
evaluate(policyName: string, scanResult: ScanResult): PolicyEvaluationResult;
|
|
207
|
+
/**
|
|
208
|
+
* Validate a policy definition
|
|
209
|
+
*/
|
|
210
|
+
validatePolicy(policy: SecurityPolicy): PolicyValidationResult;
|
|
211
|
+
/**
|
|
212
|
+
* Register a custom policy
|
|
213
|
+
*/
|
|
214
|
+
registerPolicy(policy: SecurityPolicy): void;
|
|
215
|
+
/**
|
|
216
|
+
* Get a policy by name
|
|
217
|
+
*/
|
|
218
|
+
getPolicy(name: string): SecurityPolicy | undefined;
|
|
219
|
+
/**
|
|
220
|
+
* List all available policies
|
|
221
|
+
*/
|
|
222
|
+
listPolicies(): string[];
|
|
223
|
+
/**
|
|
224
|
+
* Get built-in policy by name
|
|
225
|
+
*/
|
|
226
|
+
getBuiltInPolicy(name: string): SecurityPolicy | undefined;
|
|
227
|
+
/**
|
|
228
|
+
* Create policy from YAML string
|
|
229
|
+
*/
|
|
230
|
+
parsePolicy(yamlContent: string): SecurityPolicy;
|
|
231
|
+
/**
|
|
232
|
+
* Export policy to YAML
|
|
233
|
+
*/
|
|
234
|
+
exportPolicy(policyName: string): string;
|
|
235
|
+
private resolvePolicy;
|
|
236
|
+
private evaluateRule;
|
|
237
|
+
private evaluateCondition;
|
|
238
|
+
private compareValues;
|
|
239
|
+
private compareStringValues;
|
|
240
|
+
private calculateSummary;
|
|
241
|
+
private determineFinalAction;
|
|
242
|
+
private generateRecommendations;
|
|
243
|
+
private isValidTarget;
|
|
244
|
+
private isValidOperator;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Create a policy engine
|
|
248
|
+
*/
|
|
249
|
+
export declare function createPolicyEngine(options?: PolicyEngineOptions): PolicyEngine;
|
|
250
|
+
/**
|
|
251
|
+
* Get a built-in policy
|
|
252
|
+
*/
|
|
253
|
+
export declare function getBuiltInPolicy(name: 'default' | 'strict' | 'minimal' | 'enterprise'): SecurityPolicy;
|
|
254
|
+
//# sourceMappingURL=policy-engine.d.ts.map
|
|
@@ -0,0 +1 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