erosolar-cli 1.7.332 → 1.7.334

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 (323) hide show
  1. package/README.md +148 -24
  2. package/dist/alpha-zero/agentWrapper.d.ts +84 -0
  3. package/dist/alpha-zero/agentWrapper.d.ts.map +1 -0
  4. package/dist/alpha-zero/agentWrapper.js +171 -0
  5. package/dist/alpha-zero/agentWrapper.js.map +1 -0
  6. package/dist/alpha-zero/codeEvaluator.d.ts +25 -0
  7. package/dist/alpha-zero/codeEvaluator.d.ts.map +1 -0
  8. package/dist/alpha-zero/codeEvaluator.js +273 -0
  9. package/dist/alpha-zero/codeEvaluator.js.map +1 -0
  10. package/dist/alpha-zero/competitiveRunner.d.ts +66 -0
  11. package/dist/alpha-zero/competitiveRunner.d.ts.map +1 -0
  12. package/dist/alpha-zero/competitiveRunner.js +224 -0
  13. package/dist/alpha-zero/competitiveRunner.js.map +1 -0
  14. package/dist/alpha-zero/index.d.ts +67 -0
  15. package/dist/alpha-zero/index.d.ts.map +1 -0
  16. package/dist/alpha-zero/index.js +99 -0
  17. package/dist/alpha-zero/index.js.map +1 -0
  18. package/dist/alpha-zero/introspection.d.ts +128 -0
  19. package/dist/alpha-zero/introspection.d.ts.map +1 -0
  20. package/dist/alpha-zero/introspection.js +300 -0
  21. package/dist/alpha-zero/introspection.js.map +1 -0
  22. package/dist/alpha-zero/metricsTracker.d.ts +71 -0
  23. package/dist/alpha-zero/metricsTracker.d.ts.map +1 -0
  24. package/dist/{core → alpha-zero}/metricsTracker.js +5 -2
  25. package/dist/alpha-zero/metricsTracker.js.map +1 -0
  26. package/dist/alpha-zero/security/core.d.ts +125 -0
  27. package/dist/alpha-zero/security/core.d.ts.map +1 -0
  28. package/dist/alpha-zero/security/core.js +271 -0
  29. package/dist/alpha-zero/security/core.js.map +1 -0
  30. package/dist/alpha-zero/security/google.d.ts +125 -0
  31. package/dist/alpha-zero/security/google.d.ts.map +1 -0
  32. package/dist/alpha-zero/security/google.js +311 -0
  33. package/dist/alpha-zero/security/google.js.map +1 -0
  34. package/dist/alpha-zero/security/googleLoader.d.ts +17 -0
  35. package/dist/alpha-zero/security/googleLoader.d.ts.map +1 -0
  36. package/dist/alpha-zero/security/googleLoader.js +41 -0
  37. package/dist/alpha-zero/security/googleLoader.js.map +1 -0
  38. package/dist/alpha-zero/security/index.d.ts +29 -0
  39. package/dist/alpha-zero/security/index.d.ts.map +1 -0
  40. package/dist/alpha-zero/security/index.js +32 -0
  41. package/dist/alpha-zero/security/index.js.map +1 -0
  42. package/dist/alpha-zero/security/simulation.d.ts +124 -0
  43. package/dist/alpha-zero/security/simulation.d.ts.map +1 -0
  44. package/dist/alpha-zero/security/simulation.js +277 -0
  45. package/dist/alpha-zero/security/simulation.js.map +1 -0
  46. package/dist/alpha-zero/selfModification.d.ts +109 -0
  47. package/dist/alpha-zero/selfModification.d.ts.map +1 -0
  48. package/dist/alpha-zero/selfModification.js +233 -0
  49. package/dist/alpha-zero/selfModification.js.map +1 -0
  50. package/dist/alpha-zero/types.d.ts +170 -0
  51. package/dist/alpha-zero/types.d.ts.map +1 -0
  52. package/dist/alpha-zero/types.js +31 -0
  53. package/dist/alpha-zero/types.js.map +1 -0
  54. package/dist/bin/erosolar.js +21 -5
  55. package/dist/bin/erosolar.js.map +1 -1
  56. package/dist/capabilities/agentSpawningCapability.d.ts.map +1 -1
  57. package/dist/capabilities/agentSpawningCapability.js +31 -56
  58. package/dist/capabilities/agentSpawningCapability.js.map +1 -1
  59. package/dist/capabilities/securityTestingCapability.d.ts +13 -0
  60. package/dist/capabilities/securityTestingCapability.d.ts.map +1 -0
  61. package/dist/capabilities/securityTestingCapability.js +25 -0
  62. package/dist/capabilities/securityTestingCapability.js.map +1 -0
  63. package/dist/contracts/agent-schemas.json +15 -0
  64. package/dist/contracts/tools.schema.json +9 -0
  65. package/dist/core/agent.d.ts +2 -2
  66. package/dist/core/agent.d.ts.map +1 -1
  67. package/dist/core/agent.js.map +1 -1
  68. package/dist/core/aiFlowOptimizer.d.ts +26 -0
  69. package/dist/core/aiFlowOptimizer.d.ts.map +1 -0
  70. package/dist/core/aiFlowOptimizer.js +31 -0
  71. package/dist/core/aiFlowOptimizer.js.map +1 -0
  72. package/dist/core/aiOptimizationEngine.d.ts +158 -0
  73. package/dist/core/aiOptimizationEngine.d.ts.map +1 -0
  74. package/dist/core/aiOptimizationEngine.js +428 -0
  75. package/dist/core/aiOptimizationEngine.js.map +1 -0
  76. package/dist/core/aiOptimizationIntegration.d.ts +93 -0
  77. package/dist/core/aiOptimizationIntegration.d.ts.map +1 -0
  78. package/dist/core/aiOptimizationIntegration.js +250 -0
  79. package/dist/core/aiOptimizationIntegration.js.map +1 -0
  80. package/dist/core/customCommands.d.ts +0 -1
  81. package/dist/core/customCommands.d.ts.map +1 -1
  82. package/dist/core/customCommands.js +0 -3
  83. package/dist/core/customCommands.js.map +1 -1
  84. package/dist/core/enhancedErrorRecovery.d.ts +100 -0
  85. package/dist/core/enhancedErrorRecovery.d.ts.map +1 -0
  86. package/dist/core/enhancedErrorRecovery.js +345 -0
  87. package/dist/core/enhancedErrorRecovery.js.map +1 -0
  88. package/dist/core/hooksSystem.d.ts +65 -0
  89. package/dist/core/hooksSystem.d.ts.map +1 -0
  90. package/dist/core/hooksSystem.js +273 -0
  91. package/dist/core/hooksSystem.js.map +1 -0
  92. package/dist/core/memorySystem.d.ts +48 -0
  93. package/dist/core/memorySystem.d.ts.map +1 -0
  94. package/dist/core/memorySystem.js +271 -0
  95. package/dist/core/memorySystem.js.map +1 -0
  96. package/dist/core/toolPreconditions.d.ts.map +1 -1
  97. package/dist/core/toolPreconditions.js +14 -0
  98. package/dist/core/toolPreconditions.js.map +1 -1
  99. package/dist/core/toolRuntime.d.ts +1 -22
  100. package/dist/core/toolRuntime.d.ts.map +1 -1
  101. package/dist/core/toolRuntime.js +5 -0
  102. package/dist/core/toolRuntime.js.map +1 -1
  103. package/dist/core/toolValidation.d.ts.map +1 -1
  104. package/dist/core/toolValidation.js +3 -14
  105. package/dist/core/toolValidation.js.map +1 -1
  106. package/dist/core/unified/errors.d.ts +189 -0
  107. package/dist/core/unified/errors.d.ts.map +1 -0
  108. package/dist/core/unified/errors.js +497 -0
  109. package/dist/core/unified/errors.js.map +1 -0
  110. package/dist/core/unified/index.d.ts +19 -0
  111. package/dist/core/unified/index.d.ts.map +1 -0
  112. package/dist/core/unified/index.js +68 -0
  113. package/dist/core/unified/index.js.map +1 -0
  114. package/dist/core/unified/schema.d.ts +101 -0
  115. package/dist/core/unified/schema.d.ts.map +1 -0
  116. package/dist/core/unified/schema.js +350 -0
  117. package/dist/core/unified/schema.js.map +1 -0
  118. package/dist/core/unified/toolRuntime.d.ts +179 -0
  119. package/dist/core/unified/toolRuntime.d.ts.map +1 -0
  120. package/dist/core/unified/toolRuntime.js +517 -0
  121. package/dist/core/unified/toolRuntime.js.map +1 -0
  122. package/dist/core/unified/tools.d.ts +127 -0
  123. package/dist/core/unified/tools.d.ts.map +1 -0
  124. package/dist/core/unified/tools.js +1333 -0
  125. package/dist/core/unified/tools.js.map +1 -0
  126. package/dist/core/unified/types.d.ts +352 -0
  127. package/dist/core/unified/types.d.ts.map +1 -0
  128. package/dist/core/unified/types.js +12 -0
  129. package/dist/core/unified/types.js.map +1 -0
  130. package/dist/core/unified/version.d.ts +209 -0
  131. package/dist/core/unified/version.d.ts.map +1 -0
  132. package/dist/core/unified/version.js +454 -0
  133. package/dist/core/unified/version.js.map +1 -0
  134. package/dist/core/validationRunner.d.ts +3 -1
  135. package/dist/core/validationRunner.d.ts.map +1 -1
  136. package/dist/core/validationRunner.js.map +1 -1
  137. package/dist/headless/headlessApp.d.ts.map +1 -1
  138. package/dist/headless/headlessApp.js +0 -21
  139. package/dist/headless/headlessApp.js.map +1 -1
  140. package/dist/mcp/sseClient.d.ts.map +1 -1
  141. package/dist/mcp/sseClient.js +18 -9
  142. package/dist/mcp/sseClient.js.map +1 -1
  143. package/dist/plugins/tools/build/buildPlugin.d.ts +6 -0
  144. package/dist/plugins/tools/build/buildPlugin.d.ts.map +1 -1
  145. package/dist/plugins/tools/build/buildPlugin.js +10 -4
  146. package/dist/plugins/tools/build/buildPlugin.js.map +1 -1
  147. package/dist/plugins/tools/nodeDefaults.d.ts.map +1 -1
  148. package/dist/plugins/tools/nodeDefaults.js +2 -0
  149. package/dist/plugins/tools/nodeDefaults.js.map +1 -1
  150. package/dist/plugins/tools/security/securityPlugin.d.ts +3 -0
  151. package/dist/plugins/tools/security/securityPlugin.d.ts.map +1 -0
  152. package/dist/plugins/tools/security/securityPlugin.js +12 -0
  153. package/dist/plugins/tools/security/securityPlugin.js.map +1 -0
  154. package/dist/runtime/agentSession.d.ts +2 -2
  155. package/dist/runtime/agentSession.d.ts.map +1 -1
  156. package/dist/runtime/agentSession.js +2 -2
  157. package/dist/runtime/agentSession.js.map +1 -1
  158. package/dist/security/active-stack-security.d.ts +112 -0
  159. package/dist/security/active-stack-security.d.ts.map +1 -0
  160. package/dist/security/active-stack-security.js +296 -0
  161. package/dist/security/active-stack-security.js.map +1 -0
  162. package/dist/security/advanced-persistence-research.d.ts +92 -0
  163. package/dist/security/advanced-persistence-research.d.ts.map +1 -0
  164. package/dist/security/advanced-persistence-research.js +195 -0
  165. package/dist/security/advanced-persistence-research.js.map +1 -0
  166. package/dist/security/advanced-targeting.d.ts +119 -0
  167. package/dist/security/advanced-targeting.d.ts.map +1 -0
  168. package/dist/security/advanced-targeting.js +233 -0
  169. package/dist/security/advanced-targeting.js.map +1 -0
  170. package/dist/security/assessment/vulnerabilityAssessment.d.ts +104 -0
  171. package/dist/security/assessment/vulnerabilityAssessment.d.ts.map +1 -0
  172. package/dist/security/assessment/vulnerabilityAssessment.js +315 -0
  173. package/dist/security/assessment/vulnerabilityAssessment.js.map +1 -0
  174. package/dist/security/authorization/securityAuthorization.d.ts +88 -0
  175. package/dist/security/authorization/securityAuthorization.d.ts.map +1 -0
  176. package/dist/security/authorization/securityAuthorization.js +172 -0
  177. package/dist/security/authorization/securityAuthorization.js.map +1 -0
  178. package/dist/security/comprehensive-targeting.d.ts +85 -0
  179. package/dist/security/comprehensive-targeting.d.ts.map +1 -0
  180. package/dist/security/comprehensive-targeting.js +438 -0
  181. package/dist/security/comprehensive-targeting.js.map +1 -0
  182. package/dist/security/global-security-integration.d.ts +91 -0
  183. package/dist/security/global-security-integration.d.ts.map +1 -0
  184. package/dist/security/global-security-integration.js +218 -0
  185. package/dist/security/global-security-integration.js.map +1 -0
  186. package/dist/security/index.d.ts +38 -0
  187. package/dist/security/index.d.ts.map +1 -0
  188. package/dist/security/index.js +47 -0
  189. package/dist/security/index.js.map +1 -0
  190. package/dist/security/persistence-analyzer.d.ts +56 -0
  191. package/dist/security/persistence-analyzer.d.ts.map +1 -0
  192. package/dist/security/persistence-analyzer.js +187 -0
  193. package/dist/security/persistence-analyzer.js.map +1 -0
  194. package/dist/security/persistence-cli.d.ts +36 -0
  195. package/dist/security/persistence-cli.d.ts.map +1 -0
  196. package/dist/security/persistence-cli.js +160 -0
  197. package/dist/security/persistence-cli.js.map +1 -0
  198. package/dist/security/persistence-research.d.ts +92 -0
  199. package/dist/security/persistence-research.d.ts.map +1 -0
  200. package/dist/security/persistence-research.js +364 -0
  201. package/dist/security/persistence-research.js.map +1 -0
  202. package/dist/security/research/persistenceResearch.d.ts +97 -0
  203. package/dist/security/research/persistenceResearch.d.ts.map +1 -0
  204. package/dist/security/research/persistenceResearch.js +282 -0
  205. package/dist/security/research/persistenceResearch.js.map +1 -0
  206. package/dist/security/security-integration.d.ts +74 -0
  207. package/dist/security/security-integration.d.ts.map +1 -0
  208. package/dist/security/security-integration.js +137 -0
  209. package/dist/security/security-integration.js.map +1 -0
  210. package/dist/security/security-testing-framework.d.ts +112 -0
  211. package/dist/security/security-testing-framework.d.ts.map +1 -0
  212. package/dist/security/security-testing-framework.js +364 -0
  213. package/dist/security/security-testing-framework.js.map +1 -0
  214. package/dist/security/simulation/attackSimulation.d.ts +93 -0
  215. package/dist/security/simulation/attackSimulation.d.ts.map +1 -0
  216. package/dist/security/simulation/attackSimulation.js +341 -0
  217. package/dist/security/simulation/attackSimulation.js.map +1 -0
  218. package/dist/security/strategic-operations.d.ts +100 -0
  219. package/dist/security/strategic-operations.d.ts.map +1 -0
  220. package/dist/security/strategic-operations.js +276 -0
  221. package/dist/security/strategic-operations.js.map +1 -0
  222. package/dist/security/tool-security-wrapper.d.ts +58 -0
  223. package/dist/security/tool-security-wrapper.d.ts.map +1 -0
  224. package/dist/security/tool-security-wrapper.js +156 -0
  225. package/dist/security/tool-security-wrapper.js.map +1 -0
  226. package/dist/shell/claudeCodeStreamHandler.d.ts +145 -0
  227. package/dist/shell/claudeCodeStreamHandler.d.ts.map +1 -0
  228. package/dist/shell/claudeCodeStreamHandler.js +322 -0
  229. package/dist/shell/claudeCodeStreamHandler.js.map +1 -0
  230. package/dist/shell/inputQueueManager.d.ts +144 -0
  231. package/dist/shell/inputQueueManager.d.ts.map +1 -0
  232. package/dist/shell/inputQueueManager.js +290 -0
  233. package/dist/shell/inputQueueManager.js.map +1 -0
  234. package/dist/shell/interactiveShell.d.ts +7 -16
  235. package/dist/shell/interactiveShell.d.ts.map +1 -1
  236. package/dist/shell/interactiveShell.js +166 -235
  237. package/dist/shell/interactiveShell.js.map +1 -1
  238. package/dist/shell/metricsTracker.d.ts +60 -0
  239. package/dist/shell/metricsTracker.d.ts.map +1 -0
  240. package/dist/shell/metricsTracker.js +119 -0
  241. package/dist/shell/metricsTracker.js.map +1 -0
  242. package/dist/shell/shellApp.d.ts +0 -2
  243. package/dist/shell/shellApp.d.ts.map +1 -1
  244. package/dist/shell/shellApp.js +9 -40
  245. package/dist/shell/shellApp.js.map +1 -1
  246. package/dist/shell/streamingOutputManager.d.ts +115 -0
  247. package/dist/shell/streamingOutputManager.d.ts.map +1 -0
  248. package/dist/shell/streamingOutputManager.js +225 -0
  249. package/dist/shell/streamingOutputManager.js.map +1 -0
  250. package/dist/shell/systemPrompt.d.ts.map +1 -1
  251. package/dist/shell/systemPrompt.js +4 -1
  252. package/dist/shell/systemPrompt.js.map +1 -1
  253. package/dist/shell/terminalInput.d.ts +118 -149
  254. package/dist/shell/terminalInput.d.ts.map +1 -1
  255. package/dist/shell/terminalInput.js +533 -677
  256. package/dist/shell/terminalInput.js.map +1 -1
  257. package/dist/shell/terminalInputAdapter.d.ts +21 -79
  258. package/dist/shell/terminalInputAdapter.d.ts.map +1 -1
  259. package/dist/shell/terminalInputAdapter.js +30 -99
  260. package/dist/shell/terminalInputAdapter.js.map +1 -1
  261. package/dist/subagents/taskRunner.d.ts +1 -7
  262. package/dist/subagents/taskRunner.d.ts.map +1 -1
  263. package/dist/subagents/taskRunner.js +47 -180
  264. package/dist/subagents/taskRunner.js.map +1 -1
  265. package/dist/tools/securityTools.d.ts +22 -0
  266. package/dist/tools/securityTools.d.ts.map +1 -0
  267. package/dist/tools/securityTools.js +448 -0
  268. package/dist/tools/securityTools.js.map +1 -0
  269. package/dist/ui/ShellUIAdapter.d.ts.map +1 -1
  270. package/dist/ui/ShellUIAdapter.js +12 -13
  271. package/dist/ui/ShellUIAdapter.js.map +1 -1
  272. package/dist/ui/display.d.ts +45 -24
  273. package/dist/ui/display.d.ts.map +1 -1
  274. package/dist/ui/display.js +259 -140
  275. package/dist/ui/display.js.map +1 -1
  276. package/dist/ui/persistentPrompt.d.ts +50 -0
  277. package/dist/ui/persistentPrompt.d.ts.map +1 -0
  278. package/dist/ui/persistentPrompt.js +92 -0
  279. package/dist/ui/persistentPrompt.js.map +1 -0
  280. package/dist/ui/terminalUISchema.d.ts +195 -0
  281. package/dist/ui/terminalUISchema.d.ts.map +1 -0
  282. package/dist/ui/terminalUISchema.js +113 -0
  283. package/dist/ui/terminalUISchema.js.map +1 -0
  284. package/dist/ui/theme.d.ts.map +1 -1
  285. package/dist/ui/theme.js +8 -6
  286. package/dist/ui/theme.js.map +1 -1
  287. package/dist/ui/toolDisplay.d.ts +158 -0
  288. package/dist/ui/toolDisplay.d.ts.map +1 -1
  289. package/dist/ui/toolDisplay.js +348 -0
  290. package/dist/ui/toolDisplay.js.map +1 -1
  291. package/dist/ui/unified/layout.d.ts +0 -1
  292. package/dist/ui/unified/layout.d.ts.map +1 -1
  293. package/dist/ui/unified/layout.js +25 -15
  294. package/dist/ui/unified/layout.js.map +1 -1
  295. package/package.json +4 -4
  296. package/scripts/deploy-security-capabilities.js +178 -0
  297. package/dist/core/hooks.d.ts +0 -113
  298. package/dist/core/hooks.d.ts.map +0 -1
  299. package/dist/core/hooks.js +0 -267
  300. package/dist/core/hooks.js.map +0 -1
  301. package/dist/core/metricsTracker.d.ts +0 -122
  302. package/dist/core/metricsTracker.d.ts.map +0 -1
  303. package/dist/core/metricsTracker.js.map +0 -1
  304. package/dist/core/securityAssessment.d.ts +0 -91
  305. package/dist/core/securityAssessment.d.ts.map +0 -1
  306. package/dist/core/securityAssessment.js +0 -580
  307. package/dist/core/securityAssessment.js.map +0 -1
  308. package/dist/core/verification.d.ts +0 -137
  309. package/dist/core/verification.d.ts.map +0 -1
  310. package/dist/core/verification.js +0 -323
  311. package/dist/core/verification.js.map +0 -1
  312. package/dist/subagents/agentConfig.d.ts +0 -27
  313. package/dist/subagents/agentConfig.d.ts.map +0 -1
  314. package/dist/subagents/agentConfig.js +0 -89
  315. package/dist/subagents/agentConfig.js.map +0 -1
  316. package/dist/subagents/agentRegistry.d.ts +0 -33
  317. package/dist/subagents/agentRegistry.d.ts.map +0 -1
  318. package/dist/subagents/agentRegistry.js +0 -162
  319. package/dist/subagents/agentRegistry.js.map +0 -1
  320. package/dist/utils/frontmatter.d.ts +0 -10
  321. package/dist/utils/frontmatter.d.ts.map +0 -1
  322. package/dist/utils/frontmatter.js +0 -78
  323. package/dist/utils/frontmatter.js.map +0 -1
@@ -0,0 +1,85 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comprehensive-targeting.d.ts","sourceRoot":"","sources":["../../src/security/comprehensive-targeting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAIH,MAAM,WAAW,eAAe;IAC9B,kBAAkB;IAClB,IAAI,EAAE,SAAS,GAAG,SAAS,GAAG,cAAc,GAAG,UAAU,CAAC;IAC1D,wBAAwB;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,iCAAiC;IACjC,cAAc,EAAE,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;IACvD,kCAAkC;IAClC,YAAY,EAAE;QACZ,YAAY,EAAE,MAAM,CAAC;QACrB,SAAS,EAAE,MAAM,EAAE,CAAC;QACpB,SAAS,EAAE,MAAM,EAAE,CAAC;QACpB,qBAAqB,EAAE,MAAM,EAAE,CAAC;KACjC,CAAC;IACF,8BAA8B;IAC9B,sBAAsB,EAAE,QAAQ,GAAG,YAAY,GAAG,cAAc,GAAG,QAAQ,CAAC;IAC5E,4BAA4B;IAC5B,oBAAoB,EAAE,MAAM,EAAE,CAAC;CAChC;AAED,qBAAa,sBAAsB;IACjC,OAAO,CAAC,iBAAiB,CAA2C;;IAMpE;;OAEG;IACH,OAAO,CAAC,2BAA2B;IAcnC;;OAEG;IACH,OAAO,CAAC,6BAA6B;IAwFrC;;OAEG;IACH,OAAO,CAAC,mBAAmB;IA4I3B;;OAEG;IACH,OAAO,CAAC,gCAAgC;IAiDxC;;OAEG;IACH,OAAO,CAAC,4BAA4B;IAiDpC;;OAEG;IACH,OAAO,CAAC,wBAAwB;IAgBhC;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAe7B;;OAEG;IACH,OAAO,CAAC,wBAAwB;IAkBhC;;OAEG;IACH,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,eAAe,GAAG,SAAS;IAInE;;OAEG;IACH,uBAAuB,IAAI,eAAe,EAAE;IAI5C;;OAEG;IACH,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe,EAAE;IAIlD;;OAEG;IACH,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,eAAe,EAAE;CAG9D"}
@@ -0,0 +1,438 @@
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
@@ -0,0 +1 @@
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;gBAC1B,YAAY,EAAE;oBACZ,YAAY,EAAE,eAAe;oBAC7B,SAAS,EAAE,CAAC,WAAW,EAAE,eAAe,CAAC;oBACzC,SAAS,EAAE,EAAE;oBACb,qBAAqB,EAAE,CAAC,uBAAuB,EAAE,aAAa,EAAE,gBAAgB,CAAC;iBAClF;gBACD,sBAAsB,EAAE,YAAY;gBACpC,oBAAoB,EAAE,CAAC,mBAAmB,EAAE,0BAA0B,EAAE,qBAAqB,CAAC;aAC/F;YACD;gBACE,IAAI,EAAE,SAAS;gBACf,UAAU,EAAE,WAAW;gBACvB,cAAc,EAAE,UAAU;gBAC1B,YAAY,EAAE;oBACZ,YAAY,EAAE,eAAe;oBAC7B,SAAS,EAAE,CAAC,WAAW,EAAE,eAAe,CAAC;oBACzC,SAAS,EAAE,EAAE;oBACb,qBAAqB,EAAE,CAAC,mBAAmB,EAAE,wB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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"}
@@ -0,0 +1,91 @@
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
@@ -0,0 +1 @@
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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