erosolar-cli 1.7.263 → 1.7.264

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.
Files changed (321) hide show
  1. package/README.md +24 -148
  2. package/dist/capabilities/agentSpawningCapability.d.ts.map +1 -1
  3. package/dist/capabilities/agentSpawningCapability.js +56 -31
  4. package/dist/capabilities/agentSpawningCapability.js.map +1 -1
  5. package/dist/contracts/agent-schemas.json +0 -15
  6. package/dist/contracts/tools.schema.json +0 -9
  7. package/dist/core/agent.d.ts +2 -2
  8. package/dist/core/agent.d.ts.map +1 -1
  9. package/dist/core/agent.js.map +1 -1
  10. package/dist/core/customCommands.d.ts +1 -0
  11. package/dist/core/customCommands.d.ts.map +1 -1
  12. package/dist/core/customCommands.js +3 -0
  13. package/dist/core/customCommands.js.map +1 -1
  14. package/dist/core/hooks.d.ts +113 -0
  15. package/dist/core/hooks.d.ts.map +1 -0
  16. package/dist/core/hooks.js +267 -0
  17. package/dist/core/hooks.js.map +1 -0
  18. package/dist/core/metricsTracker.d.ts +122 -0
  19. package/dist/core/metricsTracker.d.ts.map +1 -0
  20. package/dist/{alpha-zero → core}/metricsTracker.js +2 -5
  21. package/dist/core/metricsTracker.js.map +1 -0
  22. package/dist/core/securityAssessment.d.ts +91 -0
  23. package/dist/core/securityAssessment.d.ts.map +1 -0
  24. package/dist/core/securityAssessment.js +580 -0
  25. package/dist/core/securityAssessment.js.map +1 -0
  26. package/dist/core/toolPreconditions.d.ts.map +1 -1
  27. package/dist/core/toolPreconditions.js +0 -14
  28. package/dist/core/toolPreconditions.js.map +1 -1
  29. package/dist/core/toolRuntime.d.ts +22 -1
  30. package/dist/core/toolRuntime.d.ts.map +1 -1
  31. package/dist/core/toolRuntime.js +0 -5
  32. package/dist/core/toolRuntime.js.map +1 -1
  33. package/dist/core/toolValidation.d.ts.map +1 -1
  34. package/dist/core/toolValidation.js +14 -3
  35. package/dist/core/toolValidation.js.map +1 -1
  36. package/dist/core/validationRunner.d.ts +1 -3
  37. package/dist/core/validationRunner.d.ts.map +1 -1
  38. package/dist/core/validationRunner.js.map +1 -1
  39. package/dist/core/verification.d.ts +137 -0
  40. package/dist/core/verification.d.ts.map +1 -0
  41. package/dist/core/verification.js +323 -0
  42. package/dist/core/verification.js.map +1 -0
  43. package/dist/headless/headlessApp.d.ts.map +1 -1
  44. package/dist/headless/headlessApp.js +21 -0
  45. package/dist/headless/headlessApp.js.map +1 -1
  46. package/dist/mcp/sseClient.d.ts.map +1 -1
  47. package/dist/mcp/sseClient.js +9 -18
  48. package/dist/mcp/sseClient.js.map +1 -1
  49. package/dist/plugins/tools/build/buildPlugin.d.ts +0 -6
  50. package/dist/plugins/tools/build/buildPlugin.d.ts.map +1 -1
  51. package/dist/plugins/tools/build/buildPlugin.js +4 -10
  52. package/dist/plugins/tools/build/buildPlugin.js.map +1 -1
  53. package/dist/plugins/tools/nodeDefaults.d.ts.map +1 -1
  54. package/dist/plugins/tools/nodeDefaults.js +0 -2
  55. package/dist/plugins/tools/nodeDefaults.js.map +1 -1
  56. package/dist/runtime/agentSession.d.ts +2 -2
  57. package/dist/runtime/agentSession.d.ts.map +1 -1
  58. package/dist/runtime/agentSession.js +2 -2
  59. package/dist/runtime/agentSession.js.map +1 -1
  60. package/dist/shell/interactiveShell.d.ts +11 -7
  61. package/dist/shell/interactiveShell.d.ts.map +1 -1
  62. package/dist/shell/interactiveShell.js +190 -153
  63. package/dist/shell/interactiveShell.js.map +1 -1
  64. package/dist/shell/shellApp.d.ts +2 -0
  65. package/dist/shell/shellApp.d.ts.map +1 -1
  66. package/dist/shell/shellApp.js +36 -1
  67. package/dist/shell/shellApp.js.map +1 -1
  68. package/dist/shell/systemPrompt.d.ts.map +1 -1
  69. package/dist/shell/systemPrompt.js +1 -4
  70. package/dist/shell/systemPrompt.js.map +1 -1
  71. package/dist/shell/terminalInput.d.ts +67 -147
  72. package/dist/shell/terminalInput.d.ts.map +1 -1
  73. package/dist/shell/terminalInput.js +454 -689
  74. package/dist/shell/terminalInput.js.map +1 -1
  75. package/dist/shell/terminalInputAdapter.d.ts +20 -20
  76. package/dist/shell/terminalInputAdapter.d.ts.map +1 -1
  77. package/dist/shell/terminalInputAdapter.js +14 -29
  78. package/dist/shell/terminalInputAdapter.js.map +1 -1
  79. package/dist/subagents/agentConfig.d.ts +27 -0
  80. package/dist/subagents/agentConfig.d.ts.map +1 -0
  81. package/dist/subagents/agentConfig.js +89 -0
  82. package/dist/subagents/agentConfig.js.map +1 -0
  83. package/dist/subagents/agentRegistry.d.ts +33 -0
  84. package/dist/subagents/agentRegistry.d.ts.map +1 -0
  85. package/dist/subagents/agentRegistry.js +162 -0
  86. package/dist/subagents/agentRegistry.js.map +1 -0
  87. package/dist/subagents/taskRunner.d.ts +7 -1
  88. package/dist/subagents/taskRunner.d.ts.map +1 -1
  89. package/dist/subagents/taskRunner.js +180 -47
  90. package/dist/subagents/taskRunner.js.map +1 -1
  91. package/dist/ui/ShellUIAdapter.d.ts.map +1 -1
  92. package/dist/ui/ShellUIAdapter.js +13 -12
  93. package/dist/ui/ShellUIAdapter.js.map +1 -1
  94. package/dist/ui/display.d.ts +19 -0
  95. package/dist/ui/display.d.ts.map +1 -1
  96. package/dist/ui/display.js +131 -33
  97. package/dist/ui/display.js.map +1 -1
  98. package/dist/ui/theme.d.ts.map +1 -1
  99. package/dist/ui/theme.js +6 -8
  100. package/dist/ui/theme.js.map +1 -1
  101. package/dist/ui/toolDisplay.d.ts +0 -158
  102. package/dist/ui/toolDisplay.d.ts.map +1 -1
  103. package/dist/ui/toolDisplay.js +0 -348
  104. package/dist/ui/toolDisplay.js.map +1 -1
  105. package/dist/ui/unified/layout.d.ts +1 -0
  106. package/dist/ui/unified/layout.d.ts.map +1 -1
  107. package/dist/ui/unified/layout.js +15 -25
  108. package/dist/ui/unified/layout.js.map +1 -1
  109. package/dist/utils/frontmatter.d.ts +10 -0
  110. package/dist/utils/frontmatter.d.ts.map +1 -0
  111. package/dist/utils/frontmatter.js +78 -0
  112. package/dist/utils/frontmatter.js.map +1 -0
  113. package/package.json +1 -1
  114. package/dist/alpha-zero/agentWrapper.d.ts +0 -84
  115. package/dist/alpha-zero/agentWrapper.d.ts.map +0 -1
  116. package/dist/alpha-zero/agentWrapper.js +0 -171
  117. package/dist/alpha-zero/agentWrapper.js.map +0 -1
  118. package/dist/alpha-zero/codeEvaluator.d.ts +0 -25
  119. package/dist/alpha-zero/codeEvaluator.d.ts.map +0 -1
  120. package/dist/alpha-zero/codeEvaluator.js +0 -273
  121. package/dist/alpha-zero/codeEvaluator.js.map +0 -1
  122. package/dist/alpha-zero/competitiveRunner.d.ts +0 -66
  123. package/dist/alpha-zero/competitiveRunner.d.ts.map +0 -1
  124. package/dist/alpha-zero/competitiveRunner.js +0 -224
  125. package/dist/alpha-zero/competitiveRunner.js.map +0 -1
  126. package/dist/alpha-zero/index.d.ts +0 -67
  127. package/dist/alpha-zero/index.d.ts.map +0 -1
  128. package/dist/alpha-zero/index.js +0 -99
  129. package/dist/alpha-zero/index.js.map +0 -1
  130. package/dist/alpha-zero/introspection.d.ts +0 -128
  131. package/dist/alpha-zero/introspection.d.ts.map +0 -1
  132. package/dist/alpha-zero/introspection.js +0 -300
  133. package/dist/alpha-zero/introspection.js.map +0 -1
  134. package/dist/alpha-zero/metricsTracker.d.ts +0 -71
  135. package/dist/alpha-zero/metricsTracker.d.ts.map +0 -1
  136. package/dist/alpha-zero/metricsTracker.js.map +0 -1
  137. package/dist/alpha-zero/security/core.d.ts +0 -125
  138. package/dist/alpha-zero/security/core.d.ts.map +0 -1
  139. package/dist/alpha-zero/security/core.js +0 -271
  140. package/dist/alpha-zero/security/core.js.map +0 -1
  141. package/dist/alpha-zero/security/google.d.ts +0 -125
  142. package/dist/alpha-zero/security/google.d.ts.map +0 -1
  143. package/dist/alpha-zero/security/google.js +0 -311
  144. package/dist/alpha-zero/security/google.js.map +0 -1
  145. package/dist/alpha-zero/security/googleLoader.d.ts +0 -17
  146. package/dist/alpha-zero/security/googleLoader.d.ts.map +0 -1
  147. package/dist/alpha-zero/security/googleLoader.js +0 -41
  148. package/dist/alpha-zero/security/googleLoader.js.map +0 -1
  149. package/dist/alpha-zero/security/index.d.ts +0 -29
  150. package/dist/alpha-zero/security/index.d.ts.map +0 -1
  151. package/dist/alpha-zero/security/index.js +0 -32
  152. package/dist/alpha-zero/security/index.js.map +0 -1
  153. package/dist/alpha-zero/security/simulation.d.ts +0 -124
  154. package/dist/alpha-zero/security/simulation.d.ts.map +0 -1
  155. package/dist/alpha-zero/security/simulation.js +0 -277
  156. package/dist/alpha-zero/security/simulation.js.map +0 -1
  157. package/dist/alpha-zero/selfModification.d.ts +0 -109
  158. package/dist/alpha-zero/selfModification.d.ts.map +0 -1
  159. package/dist/alpha-zero/selfModification.js +0 -233
  160. package/dist/alpha-zero/selfModification.js.map +0 -1
  161. package/dist/alpha-zero/types.d.ts +0 -170
  162. package/dist/alpha-zero/types.d.ts.map +0 -1
  163. package/dist/alpha-zero/types.js +0 -31
  164. package/dist/alpha-zero/types.js.map +0 -1
  165. package/dist/capabilities/securityTestingCapability.d.ts +0 -13
  166. package/dist/capabilities/securityTestingCapability.d.ts.map +0 -1
  167. package/dist/capabilities/securityTestingCapability.js +0 -25
  168. package/dist/capabilities/securityTestingCapability.js.map +0 -1
  169. package/dist/core/aiFlowOptimizer.d.ts +0 -26
  170. package/dist/core/aiFlowOptimizer.d.ts.map +0 -1
  171. package/dist/core/aiFlowOptimizer.js +0 -31
  172. package/dist/core/aiFlowOptimizer.js.map +0 -1
  173. package/dist/core/aiOptimizationEngine.d.ts +0 -158
  174. package/dist/core/aiOptimizationEngine.d.ts.map +0 -1
  175. package/dist/core/aiOptimizationEngine.js +0 -428
  176. package/dist/core/aiOptimizationEngine.js.map +0 -1
  177. package/dist/core/aiOptimizationIntegration.d.ts +0 -93
  178. package/dist/core/aiOptimizationIntegration.d.ts.map +0 -1
  179. package/dist/core/aiOptimizationIntegration.js +0 -250
  180. package/dist/core/aiOptimizationIntegration.js.map +0 -1
  181. package/dist/core/enhancedErrorRecovery.d.ts +0 -100
  182. package/dist/core/enhancedErrorRecovery.d.ts.map +0 -1
  183. package/dist/core/enhancedErrorRecovery.js +0 -345
  184. package/dist/core/enhancedErrorRecovery.js.map +0 -1
  185. package/dist/core/hooksSystem.d.ts +0 -65
  186. package/dist/core/hooksSystem.d.ts.map +0 -1
  187. package/dist/core/hooksSystem.js +0 -273
  188. package/dist/core/hooksSystem.js.map +0 -1
  189. package/dist/core/memorySystem.d.ts +0 -48
  190. package/dist/core/memorySystem.d.ts.map +0 -1
  191. package/dist/core/memorySystem.js +0 -271
  192. package/dist/core/memorySystem.js.map +0 -1
  193. package/dist/core/unified/errors.d.ts +0 -189
  194. package/dist/core/unified/errors.d.ts.map +0 -1
  195. package/dist/core/unified/errors.js +0 -497
  196. package/dist/core/unified/errors.js.map +0 -1
  197. package/dist/core/unified/index.d.ts +0 -19
  198. package/dist/core/unified/index.d.ts.map +0 -1
  199. package/dist/core/unified/index.js +0 -68
  200. package/dist/core/unified/index.js.map +0 -1
  201. package/dist/core/unified/schema.d.ts +0 -101
  202. package/dist/core/unified/schema.d.ts.map +0 -1
  203. package/dist/core/unified/schema.js +0 -350
  204. package/dist/core/unified/schema.js.map +0 -1
  205. package/dist/core/unified/toolRuntime.d.ts +0 -179
  206. package/dist/core/unified/toolRuntime.d.ts.map +0 -1
  207. package/dist/core/unified/toolRuntime.js +0 -517
  208. package/dist/core/unified/toolRuntime.js.map +0 -1
  209. package/dist/core/unified/tools.d.ts +0 -127
  210. package/dist/core/unified/tools.d.ts.map +0 -1
  211. package/dist/core/unified/tools.js +0 -1333
  212. package/dist/core/unified/tools.js.map +0 -1
  213. package/dist/core/unified/types.d.ts +0 -352
  214. package/dist/core/unified/types.d.ts.map +0 -1
  215. package/dist/core/unified/types.js +0 -12
  216. package/dist/core/unified/types.js.map +0 -1
  217. package/dist/core/unified/version.d.ts +0 -209
  218. package/dist/core/unified/version.d.ts.map +0 -1
  219. package/dist/core/unified/version.js +0 -454
  220. package/dist/core/unified/version.js.map +0 -1
  221. package/dist/plugins/tools/security/securityPlugin.d.ts +0 -3
  222. package/dist/plugins/tools/security/securityPlugin.d.ts.map +0 -1
  223. package/dist/plugins/tools/security/securityPlugin.js +0 -12
  224. package/dist/plugins/tools/security/securityPlugin.js.map +0 -1
  225. package/dist/security/active-stack-security.d.ts +0 -112
  226. package/dist/security/active-stack-security.d.ts.map +0 -1
  227. package/dist/security/active-stack-security.js +0 -296
  228. package/dist/security/active-stack-security.js.map +0 -1
  229. package/dist/security/advanced-persistence-research.d.ts +0 -92
  230. package/dist/security/advanced-persistence-research.d.ts.map +0 -1
  231. package/dist/security/advanced-persistence-research.js +0 -195
  232. package/dist/security/advanced-persistence-research.js.map +0 -1
  233. package/dist/security/advanced-targeting.d.ts +0 -119
  234. package/dist/security/advanced-targeting.d.ts.map +0 -1
  235. package/dist/security/advanced-targeting.js +0 -233
  236. package/dist/security/advanced-targeting.js.map +0 -1
  237. package/dist/security/assessment/vulnerabilityAssessment.d.ts +0 -104
  238. package/dist/security/assessment/vulnerabilityAssessment.d.ts.map +0 -1
  239. package/dist/security/assessment/vulnerabilityAssessment.js +0 -315
  240. package/dist/security/assessment/vulnerabilityAssessment.js.map +0 -1
  241. package/dist/security/authorization/securityAuthorization.d.ts +0 -88
  242. package/dist/security/authorization/securityAuthorization.d.ts.map +0 -1
  243. package/dist/security/authorization/securityAuthorization.js +0 -172
  244. package/dist/security/authorization/securityAuthorization.js.map +0 -1
  245. package/dist/security/comprehensive-targeting.d.ts +0 -85
  246. package/dist/security/comprehensive-targeting.d.ts.map +0 -1
  247. package/dist/security/comprehensive-targeting.js +0 -438
  248. package/dist/security/comprehensive-targeting.js.map +0 -1
  249. package/dist/security/global-security-integration.d.ts +0 -91
  250. package/dist/security/global-security-integration.d.ts.map +0 -1
  251. package/dist/security/global-security-integration.js +0 -218
  252. package/dist/security/global-security-integration.js.map +0 -1
  253. package/dist/security/index.d.ts +0 -38
  254. package/dist/security/index.d.ts.map +0 -1
  255. package/dist/security/index.js +0 -47
  256. package/dist/security/index.js.map +0 -1
  257. package/dist/security/persistence-analyzer.d.ts +0 -56
  258. package/dist/security/persistence-analyzer.d.ts.map +0 -1
  259. package/dist/security/persistence-analyzer.js +0 -187
  260. package/dist/security/persistence-analyzer.js.map +0 -1
  261. package/dist/security/persistence-cli.d.ts +0 -36
  262. package/dist/security/persistence-cli.d.ts.map +0 -1
  263. package/dist/security/persistence-cli.js +0 -160
  264. package/dist/security/persistence-cli.js.map +0 -1
  265. package/dist/security/persistence-research.d.ts +0 -92
  266. package/dist/security/persistence-research.d.ts.map +0 -1
  267. package/dist/security/persistence-research.js +0 -364
  268. package/dist/security/persistence-research.js.map +0 -1
  269. package/dist/security/research/persistenceResearch.d.ts +0 -97
  270. package/dist/security/research/persistenceResearch.d.ts.map +0 -1
  271. package/dist/security/research/persistenceResearch.js +0 -282
  272. package/dist/security/research/persistenceResearch.js.map +0 -1
  273. package/dist/security/security-integration.d.ts +0 -74
  274. package/dist/security/security-integration.d.ts.map +0 -1
  275. package/dist/security/security-integration.js +0 -137
  276. package/dist/security/security-integration.js.map +0 -1
  277. package/dist/security/security-testing-framework.d.ts +0 -112
  278. package/dist/security/security-testing-framework.d.ts.map +0 -1
  279. package/dist/security/security-testing-framework.js +0 -364
  280. package/dist/security/security-testing-framework.js.map +0 -1
  281. package/dist/security/simulation/attackSimulation.d.ts +0 -93
  282. package/dist/security/simulation/attackSimulation.d.ts.map +0 -1
  283. package/dist/security/simulation/attackSimulation.js +0 -341
  284. package/dist/security/simulation/attackSimulation.js.map +0 -1
  285. package/dist/security/strategic-operations.d.ts +0 -100
  286. package/dist/security/strategic-operations.d.ts.map +0 -1
  287. package/dist/security/strategic-operations.js +0 -276
  288. package/dist/security/strategic-operations.js.map +0 -1
  289. package/dist/security/tool-security-wrapper.d.ts +0 -58
  290. package/dist/security/tool-security-wrapper.d.ts.map +0 -1
  291. package/dist/security/tool-security-wrapper.js +0 -156
  292. package/dist/security/tool-security-wrapper.js.map +0 -1
  293. package/dist/shell/claudeCodeStreamHandler.d.ts +0 -145
  294. package/dist/shell/claudeCodeStreamHandler.d.ts.map +0 -1
  295. package/dist/shell/claudeCodeStreamHandler.js +0 -322
  296. package/dist/shell/claudeCodeStreamHandler.js.map +0 -1
  297. package/dist/shell/inputQueueManager.d.ts +0 -144
  298. package/dist/shell/inputQueueManager.d.ts.map +0 -1
  299. package/dist/shell/inputQueueManager.js +0 -290
  300. package/dist/shell/inputQueueManager.js.map +0 -1
  301. package/dist/shell/metricsTracker.d.ts +0 -60
  302. package/dist/shell/metricsTracker.d.ts.map +0 -1
  303. package/dist/shell/metricsTracker.js +0 -119
  304. package/dist/shell/metricsTracker.js.map +0 -1
  305. package/dist/shell/streamingOutputManager.d.ts +0 -115
  306. package/dist/shell/streamingOutputManager.d.ts.map +0 -1
  307. package/dist/shell/streamingOutputManager.js +0 -225
  308. package/dist/shell/streamingOutputManager.js.map +0 -1
  309. package/dist/tools/securityTools.d.ts +0 -22
  310. package/dist/tools/securityTools.d.ts.map +0 -1
  311. package/dist/tools/securityTools.js +0 -448
  312. package/dist/tools/securityTools.js.map +0 -1
  313. package/dist/ui/persistentPrompt.d.ts +0 -50
  314. package/dist/ui/persistentPrompt.d.ts.map +0 -1
  315. package/dist/ui/persistentPrompt.js +0 -92
  316. package/dist/ui/persistentPrompt.js.map +0 -1
  317. package/dist/ui/terminalUISchema.d.ts +0 -195
  318. package/dist/ui/terminalUISchema.d.ts.map +0 -1
  319. package/dist/ui/terminalUISchema.js +0 -113
  320. package/dist/ui/terminalUISchema.js.map +0 -1
  321. package/scripts/deploy-security-capabilities.js +0 -178
@@ -1,85 +0,0 @@
1
- /**
2
- * Comprehensive Targeting Security Module
3
- *
4
- * Provides comprehensive coverage for all major companies, countries,
5
- * and strategic entities with proper authorization and compliance.
6
- *
7
- * @license MIT
8
- * @author Bo Shang
9
- *
10
- * DISCLAIMER: This software is provided for authorized security testing,
11
- * research, and defensive purposes only. Users must ensure compliance
12
- * with all applicable laws and regulations in their jurisdiction.
13
- */
14
- export interface StrategicEntity {
15
- /** Entity type */
16
- type: 'company' | 'country' | 'organization' | 'alliance';
17
- /** Entity identifier */
18
- identifier: string;
19
- /** Strategic importance level */
20
- strategicLevel: 'critical' | 'high' | 'medium' | 'low';
21
- /** Geopolitical considerations */
22
- geopolitical: {
23
- jurisdiction: string;
24
- alliances: string[];
25
- sanctions: string[];
26
- specialConsiderations: string[];
27
- };
28
- /** Security classification */
29
- securityClassification: 'public' | 'restricted' | 'confidential' | 'secret';
30
- /** Authorized operations */
31
- authorizedOperations: string[];
32
- }
33
- export declare class ComprehensiveTargeting {
34
- private strategicEntities;
35
- constructor();
36
- /**
37
- * Initialize comprehensive strategic entities
38
- */
39
- private initializeStrategicEntities;
40
- /**
41
- * Initialize major technology companies
42
- */
43
- private initializeTechnologyCompanies;
44
- /**
45
- * Initialize countries and governments
46
- */
47
- private initializeCountries;
48
- /**
49
- * Initialize critical infrastructure
50
- */
51
- private initializeCriticalInfrastructure;
52
- /**
53
- * Initialize strategic alliances
54
- */
55
- private initializeStrategicAlliances;
56
- /**
57
- * Authorize a strategic entity
58
- */
59
- private authorizeStrategicEntity;
60
- /**
61
- * Get authorization level based on strategic importance
62
- */
63
- private getAuthorizationLevel;
64
- /**
65
- * Get reporting requirements based on entity type
66
- */
67
- private getReportingRequirements;
68
- /**
69
- * Get strategic entity by identifier
70
- */
71
- getStrategicEntity(identifier: string): StrategicEntity | undefined;
72
- /**
73
- * Get all strategic entities
74
- */
75
- getAllStrategicEntities(): StrategicEntity[];
76
- /**
77
- * Get entities by type
78
- */
79
- getEntitiesByType(type: string): StrategicEntity[];
80
- /**
81
- * Get entities by strategic level
82
- */
83
- getEntitiesByStrategicLevel(level: string): StrategicEntity[];
84
- }
85
- //# sourceMappingURL=comprehensive-targeting.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"comprehensive-targeting.d.ts","sourceRoot":"","sources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C,KAAK,EAAE,MAAM,GAAG,eAAe,EAAE;CAG9D"}
@@ -1,438 +0,0 @@
1
- /**
2
- * Comprehensive Targeting Security Module
3
- *
4
- * Provides comprehensive coverage for all major companies, countries,
5
- * and strategic entities with proper authorization and compliance.
6
- *
7
- * @license MIT
8
- * @author Bo Shang
9
- *
10
- * DISCLAIMER: This software is provided for authorized security testing,
11
- * research, and defensive purposes only. Users must ensure compliance
12
- * with all applicable laws and regulations in their jurisdiction.
13
- */
14
- import { advancedTargetingSecurity } from './advanced-targeting.js';
15
- export class ComprehensiveTargeting {
16
- strategicEntities = new Map();
17
- constructor() {
18
- this.initializeStrategicEntities();
19
- }
20
- /**
21
- * Initialize comprehensive strategic entities
22
- */
23
- initializeStrategicEntities() {
24
- // Major Technology Companies
25
- this.initializeTechnologyCompanies();
26
- // Countries and Governments
27
- this.initializeCountries();
28
- // Critical Infrastructure
29
- this.initializeCriticalInfrastructure();
30
- // Strategic Alliances
31
- this.initializeStrategicAlliances();
32
- }
33
- /**
34
- * Initialize major technology companies
35
- */
36
- initializeTechnologyCompanies() {
37
- const techCompanies = [
38
- {
39
- type: 'company',
40
- identifier: 'google.com',
41
- strategicLevel: 'critical',
42
- geopolitical: {
43
- jurisdiction: 'United States',
44
- alliances: ['Five Eyes', 'NATO Partners'],
45
- sanctions: [],
46
- specialConsiderations: ['Global Infrastructure', 'AI Research', 'Cloud Services']
47
- },
48
- securityClassification: 'restricted',
49
- authorizedOperations: ['security_analysis', 'vulnerability_assessment', 'threat_intelligence']
50
- },
51
- {
52
- type: 'company',
53
- identifier: 'apple.com',
54
- strategicLevel: 'critical',
55
- geopolitical: {
56
- jurisdiction: 'United States',
57
- alliances: ['Five Eyes', 'NATO Partners'],
58
- sanctions: [],
59
- specialConsiderations: ['Hardware Security', 'Privacy Infrastructure', 'Global Supply Chain']
60
- },
61
- securityClassification: 'restricted',
62
- authorizedOperations: ['security_analysis', 'vulnerability_assessment']
63
- },
64
- {
65
- type: 'company',
66
- identifier: 'openai.com',
67
- strategicLevel: 'high',
68
- geopolitical: {
69
- jurisdiction: 'United States',
70
- alliances: ['AI Research Alliance'],
71
- sanctions: [],
72
- specialConsiderations: ['AI Safety Research', 'National Security AI']
73
- },
74
- securityClassification: 'confidential',
75
- authorizedOperations: ['security_analysis', 'vulnerability_assessment', 'ai_safety_research']
76
- },
77
- {
78
- type: 'company',
79
- identifier: 'microsoft.com',
80
- strategicLevel: 'critical',
81
- geopolitical: {
82
- jurisdiction: 'United States',
83
- alliances: ['Five Eyes', 'NATO Partners'],
84
- sanctions: [],
85
- specialConsiderations: ['Government Contracts', 'Critical Software', 'Cloud Infrastructure']
86
- },
87
- securityClassification: 'restricted',
88
- authorizedOperations: ['security_analysis', 'vulnerability_assessment', 'threat_intelligence']
89
- },
90
- {
91
- type: 'company',
92
- identifier: 'amazon.com',
93
- strategicLevel: 'critical',
94
- geopolitical: {
95
- jurisdiction: 'United States',
96
- alliances: ['Five Eyes', 'NATO Partners'],
97
- sanctions: [],
98
- specialConsiderations: ['Cloud Infrastructure', 'Critical Services', 'Global Logistics']
99
- },
100
- securityClassification: 'restricted',
101
- authorizedOperations: ['security_analysis', 'vulnerability_assessment']
102
- },
103
- {
104
- type: 'company',
105
- identifier: 'meta.com',
106
- strategicLevel: 'high',
107
- geopolitical: {
108
- jurisdiction: 'United States',
109
- alliances: ['Five Eyes'],
110
- sanctions: [],
111
- specialConsiderations: ['Social Infrastructure', 'Global Communications']
112
- },
113
- securityClassification: 'restricted',
114
- authorizedOperations: ['security_analysis', 'vulnerability_assessment']
115
- }
116
- ];
117
- techCompanies.forEach(company => {
118
- this.strategicEntities.set(company.identifier, company);
119
- this.authorizeStrategicEntity(company);
120
- });
121
- }
122
- /**
123
- * Initialize countries and governments
124
- */
125
- initializeCountries() {
126
- const countries = [
127
- {
128
- type: 'country',
129
- identifier: 'usa.gov',
130
- strategicLevel: 'critical',
131
- geopolitical: {
132
- jurisdiction: 'United States',
133
- alliances: ['NATO', 'Five Eyes', 'Quad'],
134
- sanctions: [],
135
- specialConsiderations: ['Global Superpower', 'Military Alliance Leader']
136
- },
137
- securityClassification: 'confidential',
138
- authorizedOperations: ['security_analysis', 'vulnerability_assessment', 'threat_intelligence']
139
- },
140
- {
141
- type: 'country',
142
- identifier: 'ukraine.gov',
143
- strategicLevel: 'high',
144
- geopolitical: {
145
- jurisdiction: 'Ukraine',
146
- alliances: ['NATO Partner'],
147
- sanctions: ['Russian Federation'],
148
- specialConsiderations: ['Active Conflict Zone', 'Critical Infrastructure Protection']
149
- },
150
- securityClassification: 'confidential',
151
- authorizedOperations: ['security_analysis', 'vulnerability_assessment', 'defensive_research']
152
- },
153
- {
154
- type: 'country',
155
- identifier: 'gov.uk',
156
- strategicLevel: 'critical',
157
- geopolitical: {
158
- jurisdiction: 'United Kingdom',
159
- alliances: ['NATO', 'Five Eyes', 'Commonwealth'],
160
- sanctions: [],
161
- specialConsiderations: ['Nuclear Power', 'Financial Center', 'Intelligence Hub']
162
- },
163
- securityClassification: 'confidential',
164
- authorizedOperations: ['security_analysis', 'vulnerability_assessment', 'threat_intelligence']
165
- },
166
- {
167
- type: 'country',
168
- identifier: 'canada.ca',
169
- strategicLevel: 'high',
170
- geopolitical: {
171
- jurisdiction: 'Canada',
172
- alliances: ['NATO', 'Five Eyes', 'G7'],
173
- sanctions: [],
174
- specialConsiderations: ['Arctic Security', 'Energy Exporter']
175
- },
176
- securityClassification: 'restricted',
177
- authorizedOperations: ['security_analysis', 'vulnerability_assessment']
178
- },
179
- {
180
- type: 'country',
181
- identifier: 'germany.de',
182
- strategicLevel: 'high',
183
- geopolitical: {
184
- jurisdiction: 'Germany',
185
- alliances: ['NATO', 'EU', 'G7'],
186
- sanctions: [],
187
- specialConsiderations: ['EU Leader', 'Industrial Powerhouse']
188
- },
189
- securityClassification: 'restricted',
190
- authorizedOperations: ['security_analysis', 'vulnerability_assessment']
191
- },
192
- {
193
- type: 'country',
194
- identifier: 'france.fr',
195
- strategicLevel: 'high',
196
- geopolitical: {
197
- jurisdiction: 'France',
198
- alliances: ['NATO', 'EU', 'Nuclear Powers'],
199
- sanctions: [],
200
- specialConsiderations: ['Nuclear Power', 'UN Security Council']
201
- },
202
- securityClassification: 'restricted',
203
- authorizedOperations: ['security_analysis', 'vulnerability_assessment']
204
- },
205
- {
206
- type: 'country',
207
- identifier: 'china.gov.cn',
208
- strategicLevel: 'critical',
209
- geopolitical: {
210
- jurisdiction: 'China',
211
- alliances: ['SCO', 'BRICS'],
212
- sanctions: [],
213
- specialConsiderations: ['Global Power', 'Strategic Competitor']
214
- },
215
- securityClassification: 'secret',
216
- authorizedOperations: ['security_analysis', 'threat_intelligence']
217
- },
218
- {
219
- type: 'country',
220
- identifier: 'india.gov.in',
221
- strategicLevel: 'high',
222
- geopolitical: {
223
- jurisdiction: 'India',
224
- alliances: ['Quad', 'BRICS'],
225
- sanctions: [],
226
- specialConsiderations: ['Nuclear Power', 'Strategic Partner']
227
- },
228
- securityClassification: 'confidential',
229
- authorizedOperations: ['security_analysis', 'vulnerability_assessment']
230
- },
231
- {
232
- type: 'country',
233
- identifier: 'japan.go.jp',
234
- strategicLevel: 'high',
235
- geopolitical: {
236
- jurisdiction: 'Japan',
237
- alliances: ['Quad', 'G7'],
238
- sanctions: [],
239
- specialConsiderations: ['Technological Leader', 'US Ally']
240
- },
241
- securityClassification: 'restricted',
242
- authorizedOperations: ['security_analysis', 'vulnerability_assessment']
243
- },
244
- {
245
- type: 'country',
246
- identifier: 'australia.gov.au',
247
- strategicLevel: 'high',
248
- geopolitical: {
249
- jurisdiction: 'Australia',
250
- alliances: ['Five Eyes', 'Quad', 'ANZUS'],
251
- sanctions: [],
252
- specialConsiderations: ['Pacific Power', 'Intelligence Partner']
253
- },
254
- securityClassification: 'restricted',
255
- authorizedOperations: ['security_analysis', 'vulnerability_assessment']
256
- }
257
- ];
258
- countries.forEach(country => {
259
- this.strategicEntities.set(country.identifier, country);
260
- this.authorizeStrategicEntity(country);
261
- });
262
- }
263
- /**
264
- * Initialize critical infrastructure
265
- */
266
- initializeCriticalInfrastructure() {
267
- const infrastructure = [
268
- {
269
- category: 'energy',
270
- identifier: 'global-power-grid',
271
- jurisdiction: 'Multiple',
272
- sensitivity: 'critical',
273
- authorizedOperations: ['security_analysis', 'vulnerability_assessment'],
274
- legalRestrictions: ['no_disruption', 'immediate_reporting']
275
- },
276
- {
277
- category: 'finance',
278
- identifier: 'global-financial-system',
279
- jurisdiction: 'Multiple',
280
- sensitivity: 'critical',
281
- authorizedOperations: ['security_analysis', 'compliance_audit'],
282
- legalRestrictions: ['no_financial_impact', 'regulatory_compliance']
283
- },
284
- {
285
- category: 'telecom',
286
- identifier: 'global-communications',
287
- jurisdiction: 'Multiple',
288
- sensitivity: 'critical',
289
- authorizedOperations: ['security_analysis', 'vulnerability_assessment'],
290
- legalRestrictions: ['no_service_disruption', 'responsible_disclosure']
291
- },
292
- {
293
- category: 'transportation',
294
- identifier: 'global-transportation',
295
- jurisdiction: 'Multiple',
296
- sensitivity: 'high',
297
- authorizedOperations: ['security_analysis', 'vulnerability_assessment'],
298
- legalRestrictions: ['no_safety_impact', 'immediate_reporting']
299
- },
300
- {
301
- category: 'healthcare',
302
- identifier: 'global-healthcare',
303
- jurisdiction: 'Multiple',
304
- sensitivity: 'high',
305
- authorizedOperations: ['security_analysis', 'vulnerability_assessment'],
306
- legalRestrictions: ['no_patient_impact', 'ethical_research']
307
- }
308
- ];
309
- infrastructure.forEach(infra => {
310
- advancedTargetingSecurity.registerCriticalInfrastructure(infra);
311
- });
312
- }
313
- /**
314
- * Initialize strategic alliances
315
- */
316
- initializeStrategicAlliances() {
317
- const alliances = [
318
- {
319
- type: 'alliance',
320
- identifier: 'nato.int',
321
- strategicLevel: 'critical',
322
- geopolitical: {
323
- jurisdiction: 'International',
324
- alliances: [],
325
- sanctions: [],
326
- specialConsiderations: ['Military Alliance', 'Collective Defense']
327
- },
328
- securityClassification: 'secret',
329
- authorizedOperations: ['security_analysis', 'threat_intelligence']
330
- },
331
- {
332
- type: 'alliance',
333
- identifier: 'un.org',
334
- strategicLevel: 'high',
335
- geopolitical: {
336
- jurisdiction: 'International',
337
- alliances: [],
338
- sanctions: [],
339
- specialConsiderations: ['Global Governance', 'Diplomatic Hub']
340
- },
341
- securityClassification: 'confidential',
342
- authorizedOperations: ['security_analysis', 'vulnerability_assessment']
343
- },
344
- {
345
- type: 'alliance',
346
- identifier: 'europa.eu',
347
- strategicLevel: 'high',
348
- geopolitical: {
349
- jurisdiction: 'European Union',
350
- alliances: [],
351
- sanctions: [],
352
- specialConsiderations: ['Political Union', 'Economic Bloc']
353
- },
354
- securityClassification: 'confidential',
355
- authorizedOperations: ['security_analysis', 'vulnerability_assessment']
356
- }
357
- ];
358
- alliances.forEach(alliance => {
359
- this.strategicEntities.set(alliance.identifier, alliance);
360
- this.authorizeStrategicEntity(alliance);
361
- });
362
- }
363
- /**
364
- * Authorize a strategic entity
365
- */
366
- authorizeStrategicEntity(entity) {
367
- const authorization = {
368
- target: entity.identifier,
369
- level: this.getAuthorizationLevel(entity),
370
- scope: entity.authorizedOperations,
371
- authorizedBy: 'Strategic Security Command',
372
- compliance: {
373
- jurisdiction: entity.geopolitical.jurisdiction,
374
- legalFramework: 'International Strategic Security Framework',
375
- reportingRequirements: this.getReportingRequirements(entity)
376
- }
377
- };
378
- advancedTargetingSecurity.authorizeTarget(authorization);
379
- }
380
- /**
381
- * Get authorization level based on strategic importance
382
- */
383
- getAuthorizationLevel(entity) {
384
- switch (entity.strategicLevel) {
385
- case 'critical':
386
- return 'analysis';
387
- case 'high':
388
- return 'analysis';
389
- case 'medium':
390
- return 'research';
391
- case 'low':
392
- return 'research';
393
- default:
394
- return 'research';
395
- }
396
- }
397
- /**
398
- * Get reporting requirements based on entity type
399
- */
400
- getReportingRequirements(entity) {
401
- const requirements = ['responsible_disclosure'];
402
- if (entity.strategicLevel === 'critical') {
403
- requirements.push('immediate_reporting', 'senior_leadership_notification');
404
- }
405
- if (entity.securityClassification === 'secret' || entity.securityClassification === 'confidential') {
406
- requirements.push('classified_handling', 'need_to_know_basis');
407
- }
408
- if (entity.geopolitical.sanctions.length > 0) {
409
- requirements.push('sanctions_compliance', 'legal_review_required');
410
- }
411
- return requirements;
412
- }
413
- /**
414
- * Get strategic entity by identifier
415
- */
416
- getStrategicEntity(identifier) {
417
- return this.strategicEntities.get(identifier);
418
- }
419
- /**
420
- * Get all strategic entities
421
- */
422
- getAllStrategicEntities() {
423
- return Array.from(this.strategicEntities.values());
424
- }
425
- /**
426
- * Get entities by type
427
- */
428
- getEntitiesByType(type) {
429
- return this.getAllStrategicEntities().filter(entity => entity.type === type);
430
- }
431
- /**
432
- * Get entities by strategic level
433
- */
434
- getEntitiesByStrategicLevel(level) {
435
- return this.getAllStrategicEntities().filter(entity => entity.strategicLevel === level);
436
- }
437
- }
438
- //# sourceMappingURL=comprehensive-targeting.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"comprehensive-targeting.js","sourceRoot":"","sources":["../../src/security/comprehensive-targeting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,yBAAyB,EAA+D,MAAM,yBAAyB,CAAC;AAsBjI,MAAM,OAAO,sBAAsB;IACzB,iBAAiB,GAAiC,IAAI,GAAG,EAAE,CAAC;IAEpE;QACE,IAAI,CAAC,2BAA2B,EAAE,CAAC;IACrC,CAAC;IAED;;OAEG;IACK,2BAA2B;QACjC,6BAA6B;QAC7B,IAAI,CAAC,6BAA6B,EAAE,CAAC;QAErC,4BAA4B;QAC5B,IAAI,CAAC,mBAAmB,EAAE,CAAC;QAE3B,0BAA0B;QAC1B,IAAI,CAAC,gCAAgC,EAAE,CAAC;QAExC,sBAAsB;QACtB,IAAI,CAAC,4BAA4B,EAAE,CAAC;IACtC,CAAC;IAED;;OAEG;IACK,6BAA6B;QACnC,MAAM,aAAa,GAAsB;YACvC;gBACE,IAAI,EAAE,SAAS;gBACf,UAAU,EAAE,YAAY;gBACxB,cAAc,EAAE,UAAU;g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AAC,CAAC;QAC7E,CAAC;QAED,IAAI,MAAM,CAAC,sBAAsB,KAAK,QAAQ,IAAI,MAAM,CAAC,sBAAsB,KAAK,cAAc,EAAE,CAAC;YACnG,YAAY,CAAC,IAAI,CAAC,qBAAqB,EAAE,oBAAoB,CAAC,CAAC;QACjE,CAAC;QAED,IAAI,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC7C,YAAY,CAAC,IAAI,CAAC,sBAAsB,EAAE,uBAAuB,CAAC,CAAC;QACrE,CAAC;QAED,OAAO,YAAY,CAAC;IACtB,CAAC;IAED;;OAEG;IACH,kBAAkB,CAAC,UAAkB;QACnC,OAAO,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAChD,CAAC;IAED;;OAEG;IACH,uBAAuB;QACrB,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,MAAM,EAAE,CAAC,CAAC;IACrD,CAAC;IAED;;OAEG;IACH,iBAAiB,CAAC,IAAY;QAC5B,OAAO,IAAI,CAAC,uBAAuB,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;IAC/E,CAAC;IAED;;OAEG;IACH,2BAA2B,CAAC,KAAa;QACvC,OAAO,IAAI,CAAC,uBAAuB,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,cAAc,KAAK,KAAK,CAAC,CAAC;IAC1F,CAAC;CACF"}
@@ -1,91 +0,0 @@
1
- /**
2
- * Global Security Integration Module
3
- *
4
- * Integrates both active stack security and advanced targeting capabilities
5
- * to enable operations on external active stacks and critical infrastructure.
6
- *
7
- * @license MIT
8
- * @author Bo Shang
9
- */
10
- import { type SecurityValidationResult } from './active-stack-security.js';
11
- import { type TargetAuthorization, type CriticalInfrastructureTarget } from './advanced-targeting.js';
12
- export interface GlobalSecurityConfig {
13
- /** Enable active stack security */
14
- activeStackSecurity: boolean;
15
- /** Enable advanced targeting */
16
- advancedTargeting: boolean;
17
- /** Default authorization level */
18
- defaultAuthorization: 'research' | 'analysis' | 'testing' | 'operations';
19
- /** Legal compliance framework */
20
- complianceFramework: string;
21
- /** Reporting requirements */
22
- reporting: {
23
- enabled: boolean;
24
- autoGenerate: boolean;
25
- evidenceCollection: boolean;
26
- };
27
- }
28
- export declare class GlobalSecurityIntegration {
29
- private config;
30
- constructor(config: GlobalSecurityConfig);
31
- /**
32
- * Validate any operation with global security rules
33
- */
34
- validateGlobalOperation(toolName: string, args: Record<string, unknown>, operationContext: {
35
- type: 'internal' | 'external' | 'critical_infrastructure';
36
- target?: string;
37
- operation?: string;
38
- }): SecurityValidationResult;
39
- /**
40
- * Authorize target for external operations
41
- */
42
- authorizeTarget(authorization: TargetAuthorization): void;
43
- /**
44
- * Register critical infrastructure target
45
- */
46
- registerCriticalInfrastructure(target: CriticalInfrastructureTarget): void;
47
- /**
48
- * Get global security status
49
- */
50
- getGlobalSecurityStatus(): {
51
- activeStackSecurity: {
52
- enabled: boolean;
53
- blockedOperations: number;
54
- lastEvent: import("./active-stack-security.js").SecurityEvent | null;
55
- };
56
- advancedTargeting: {
57
- enabled: boolean;
58
- authorizedTargets: number;
59
- criticalInfrastructure: number;
60
- operations: number;
61
- };
62
- compliance: {
63
- framework: string;
64
- reporting: {
65
- enabled: boolean;
66
- autoGenerate: boolean;
67
- evidenceCollection: boolean;
68
- };
69
- };
70
- };
71
- /**
72
- * Generate comprehensive security report
73
- */
74
- generateGlobalSecurityReport(): string;
75
- /**
76
- * Get authorized targets for UI/CLI display
77
- */
78
- getAuthorizedTargets(): TargetAuthorization[];
79
- /**
80
- * Get critical infrastructure targets
81
- */
82
- getCriticalInfrastructure(): CriticalInfrastructureTarget[];
83
- private validateInternalOperation;
84
- private validateExternalOperation;
85
- private validateCriticalInfrastructureOperation;
86
- }
87
- /**
88
- * Global security integration instance with full capabilities
89
- */
90
- export declare const globalSecurityIntegration: GlobalSecurityIntegration;
91
- //# sourceMappingURL=global-security-integration.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"global-security-integration.d.ts","sourceRoot":"","sources":["../../src/security/global-security-integration.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAuB,KAAK,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAChG,OAAO,EAA6B,KAAK,mBAAmB,EAAE,KAAK,4BAA4B,EAAE,MAAM,yBAAyB,CAAC;AAEjI,MAAM,WAAW,oBAAoB;IACnC,mCAAmC;IACnC,mBAAmB,EAAE,OAAO,CAAC;IAC7B,gCAAgC;IAChC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,kCAAkC;IAClC,oBAAoB,EAAE,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,YAAY,CAAC;IACzE,iCAAiC;IACjC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,6BAA6B;IAC7B,SAAS,EAAE;QACT,OAAO,EAAE,OAAO,CAAC;QACjB,YAAY,EAAE,OAAO,CAAC;QACtB,kBAAkB,EAAE,OAAO,CAAC;KAC7B,CAAC;CACH;AAED,qBAAa,yBAAyB;IACpC,OAAO,CAAC,MAAM,CAAuB;gBAEzB,MAAM,EAAE,oBAAoB;IAIxC;;OAEG;IACH,uBAAuB,CACrB,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,gBAAgB,EAAE;QAChB,IAAI,EAAE,UAAU,GAAG,UAAU,GAAG,yBAAyB,CAAC;QAC1D,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,GACA,wBAAwB;IA4B3B;;OAEG;IACH,eAAe,CAAC,aAAa,EAAE,mBAAmB,GAAG,IAAI;IAOzD;;OAEG;IACH,8BAA8B,CAAC,MAAM,EAAE,4BAA4B,GAAG,IAAI;IAO1E;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