snow-flow 3.0.9 → 3.0.13
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/claude-flow.bat +0 -0
- package/claude-flow.ps1 +0 -0
- package/dist/mcp/intelligent-reporting-mcp.d.ts +7 -0
- package/dist/mcp/intelligent-reporting-mcp.js +379 -0
- package/dist/mcp/servicenow-automation-mcp.js +0 -0
- package/dist/mcp/servicenow-deployment-mcp.js +0 -0
- package/dist/mcp/servicenow-integration-mcp.js +0 -0
- package/dist/mcp/servicenow-mcp-server.js +0 -0
- package/dist/mcp/servicenow-operations-mcp.js +0 -0
- package/dist/mcp/servicenow-platform-development-mcp.js +0 -0
- package/dist/mcp/servicenow-progressive-indexer.js +0 -0
- package/dist/mcp/servicenow-reporting-analytics-mcp.js +280 -29
- package/dist/mcp/servicenow-security-compliance-mcp.js +0 -0
- package/dist/mcp/servicenow-update-set-mcp.js +0 -0
- package/dist/mcp/start-all-mcp-servers.js +0 -0
- package/dist/mcp/start-servicenow-mcp.js +0 -0
- package/dist/services/widget-deployment-service.d.ts +2 -1
- package/dist/services/widget-deployment-service.js +17 -16
- package/dist/utils/anti-mock-data-validator.d.ts +66 -0
- package/dist/utils/anti-mock-data-validator.js +316 -0
- package/dist/utils/servicenow-eventual-consistency.d.ts +120 -0
- package/dist/utils/servicenow-eventual-consistency.js +220 -0
- package/memory/agents/README.md +1 -1
- package/memory/claude-flow-data.json +1 -1
- package/memory/sessions/README.md +1 -1
- package/package.json +4 -3
- package/.mcp.json +0 -22
- package/claude-flow.config.json +0 -20
- package/dist/agents/app-creator.agent.d.ts +0 -55
- package/dist/agents/app-creator.agent.js +0 -1292
- package/dist/agents/base/base-snow-agent.d.ts +0 -75
- package/dist/agents/base/base-snow-agent.js +0 -169
- package/dist/agents/base-snow-agent.d.ts +0 -63
- package/dist/agents/base-snow-agent.js +0 -296
- package/dist/agents/coordinator.d.ts +0 -200
- package/dist/agents/coordinator.js +0 -777
- package/dist/agents/flow-builder-agent.d.ts +0 -18
- package/dist/agents/flow-builder-agent.js +0 -197
- package/dist/agents/queen-403-handler.d.ts +0 -47
- package/dist/agents/queen-403-handler.js +0 -175
- package/dist/agents/queen-agent-example.d.ts +0 -23
- package/dist/agents/queen-agent-example.js +0 -240
- package/dist/agents/queen-agent.test.d.ts +0 -6
- package/dist/agents/script-generator.agent.d.ts +0 -32
- package/dist/agents/script-generator.agent.js +0 -772
- package/dist/agents/script-writer-agent.d.ts +0 -22
- package/dist/agents/script-writer-agent.js +0 -695
- package/dist/agents/security-agent.d.ts +0 -23
- package/dist/agents/security-agent.js +0 -619
- package/dist/agents/specialists/automation-specialist.agent.d.ts +0 -44
- package/dist/agents/specialists/automation-specialist.agent.js +0 -204
- package/dist/agents/specialists/data-specialist.agent.d.ts +0 -165
- package/dist/agents/specialists/data-specialist.agent.js +0 -484
- package/dist/agents/specialists/integration-specialist.agent.d.ts +0 -227
- package/dist/agents/specialists/integration-specialist.agent.js +0 -725
- package/dist/agents/specialists/reporting-specialist.agent.d.ts +0 -54
- package/dist/agents/specialists/reporting-specialist.agent.js +0 -193
- package/dist/agents/specialists/security-specialist.agent.d.ts +0 -85
- package/dist/agents/specialists/security-specialist.agent.js +0 -309
- package/dist/agents/teams/adaptive/adaptive-coordinator.agent.d.ts +0 -111
- package/dist/agents/teams/adaptive/adaptive-coordinator.agent.js +0 -383
- package/dist/agents/teams/base-team.d.ts +0 -72
- package/dist/agents/teams/base-team.js +0 -253
- package/dist/agents/teams/team-types.d.ts +0 -265
- package/dist/agents/teams/team-types.js +0 -3
- package/dist/agents/teams/widget/widget-architect.agent.d.ts +0 -61
- package/dist/agents/teams/widget/widget-architect.agent.js +0 -436
- package/dist/agents/teams/widget/widget-backend.agent.d.ts +0 -74
- package/dist/agents/teams/widget/widget-backend.agent.js +0 -1531
- package/dist/agents/teams/widget/widget-frontend.agent.d.ts +0 -67
- package/dist/agents/teams/widget/widget-frontend.agent.js +0 -1014
- package/dist/agents/teams/widget/widget-platform.agent.d.ts +0 -90
- package/dist/agents/teams/widget/widget-platform.agent.js +0 -1190
- package/dist/agents/teams/widget/widget-uiux.agent.d.ts +0 -107
- package/dist/agents/teams/widget/widget-uiux.agent.js +0 -1033
- package/dist/agents/test-agent.d.ts +0 -26
- package/dist/agents/test-agent.js +0 -734
- package/dist/agents/test-agents.d.ts +0 -7
- package/dist/agents/test-agents.js +0 -64
- package/dist/agents/ui-builder.agent.d.ts +0 -50
- package/dist/agents/ui-builder.agent.js +0 -1539
- package/dist/agents/widget-builder.agent.d.ts +0 -32
- package/dist/agents/widget-builder.agent.js +0 -439
- package/dist/agents/widget-creator-agent.d.ts +0 -18
- package/dist/agents/widget-creator-agent.js +0 -498
- package/dist/agents/workflow-designer.agent.d.ts +0 -31
- package/dist/agents/workflow-designer.agent.js +0 -583
- package/dist/api/error-handling.d.ts +0 -325
- package/dist/api/error-handling.js +0 -1488
- package/dist/api/flow-designer-api.d.ts +0 -167
- package/dist/api/flow-designer-api.js +0 -554
- package/dist/api/natural-language-mapper.d.ts +0 -124
- package/dist/api/natural-language-mapper.js +0 -501
- package/dist/api/performance-optimizer.d.ts +0 -240
- package/dist/api/performance-optimizer.js +0 -706
- package/dist/api/transaction-manager.d.ts +0 -189
- package/dist/api/transaction-manager.js +0 -576
- package/dist/assembly/team-assembler.d.ts +0 -140
- package/dist/assembly/team-assembler.js +0 -502
- package/dist/benchmark-performance.d.ts +0 -41
- package/dist/benchmark-performance.js +0 -230
- package/dist/cli/snow-flow-cli-integration.d.ts +0 -30
- package/dist/cli/snow-flow-cli-integration.js +0 -396
- package/dist/coordination/coordination-engine.d.ts +0 -41
- package/dist/coordination/coordination-engine.js +0 -324
- package/dist/coordination/coordination.test.d.ts +0 -6
- package/dist/coordination/example.d.ts +0 -31
- package/dist/coordination/example.js +0 -394
- package/dist/coordination/execution-patterns.d.ts +0 -43
- package/dist/coordination/execution-patterns.js +0 -507
- package/dist/coordination/factory.d.ts +0 -94
- package/dist/coordination/factory.js +0 -433
- package/dist/coordination/index.d.ts +0 -71
- package/dist/coordination/index.js +0 -135
- package/dist/coordination/progress-monitor.d.ts +0 -71
- package/dist/coordination/progress-monitor.js +0 -505
- package/dist/coordination/quality-gates.d.ts +0 -124
- package/dist/coordination/quality-gates.js +0 -577
- package/dist/coordination/shared-memory.d.ts +0 -39
- package/dist/coordination/shared-memory.js +0 -289
- package/dist/coordination/task-dependencies.d.ts +0 -50
- package/dist/coordination/task-dependencies.js +0 -407
- package/dist/coordination/team-coordinator.d.ts +0 -59
- package/dist/coordination/team-coordinator.js +0 -550
- package/dist/coordination/types.d.ts +0 -152
- package/dist/coordination/types.js +0 -3
- package/dist/mcp/mcp-wrapper.d.ts +0 -8
- package/dist/mcp/mcp-wrapper.js +0 -77
- package/dist/mcp/servicenow-flow-composer-enhanced.js +0 -396
- package/dist/mcp/servicenow-flow-composer-mcp.d.ts +0 -7
- package/dist/mcp/servicenow-flow-composer-mcp.js +0 -3103
- package/dist/mcp/servicenow-graph-memory-mcp.d.ts +0 -7
- package/dist/mcp/servicenow-intelligent-mcp.d.ts +0 -143
- package/dist/mcp/servicenow-intelligent-mcp.js +0 -4156
- package/dist/mcp/servicenow-xml-flow-mcp.d.ts +0 -53
- package/dist/mcp/servicenow-xml-flow-mcp.js +0 -1704
- package/dist/mcp/singleton-check.js +0 -31
- package/dist/mcp/test-simple-mcp.d.ts +0 -6
- package/dist/mcp/test-simple-mcp.js +0 -63
- package/dist/memory/hierarchical-memory-system.d.ts +0 -90
- package/dist/memory/hierarchical-memory-system.js +0 -400
- package/dist/memory/index.d.ts +0 -9
- package/dist/memory/index.js +0 -20
- package/dist/memory/mcp-integration-example.d.ts +0 -6
- package/dist/memory/mcp-integration-example.js +0 -281
- package/dist/memory/memory-client.d.ts +0 -199
- package/dist/memory/memory-client.js +0 -364
- package/dist/memory/memory-manager.d.ts +0 -29
- package/dist/memory/memory-manager.js +0 -280
- package/dist/memory/memory-operations.d.ts +0 -179
- package/dist/memory/memory-operations.js +0 -691
- package/dist/memory/memory-system.d.ts +0 -153
- package/dist/memory/memory-system.js +0 -651
- package/dist/memory/memory-test.d.ts +0 -6
- package/dist/memory/memory-test.js +0 -161
- package/dist/memory/snow-flow-memory-patterns.d.ts +0 -213
- package/dist/memory/snow-flow-memory-patterns.js +0 -200
- package/dist/memory/snow-memory.d.ts +0 -54
- package/dist/memory/snow-memory.js +0 -301
- package/dist/memory/swarm-memory.d.ts +0 -135
- package/dist/memory/swarm-memory.js +0 -378
- package/dist/optimization/flow-performance-optimizer.js +0 -723
- package/dist/orchestration/discovery/service-discovery.d.ts +0 -81
- package/dist/orchestration/discovery/service-discovery.js +0 -808
- package/dist/orchestration/distributed-orchestrator.d.ts +0 -131
- package/dist/orchestration/distributed-orchestrator.js +0 -712
- package/dist/orchestration/distribution/task-distribution-engine.d.ts +0 -53
- package/dist/orchestration/distribution/task-distribution-engine.js +0 -586
- package/dist/orchestration/flow-update-orchestrator.js +0 -648
- package/dist/orchestration/interfaces/distributed-orchestration.interface.d.ts +0 -606
- package/dist/orchestration/interfaces/distributed-orchestration.interface.js +0 -65
- package/dist/orchestration/protocols/mcpx-protocol.d.ts +0 -71
- package/dist/orchestration/protocols/mcpx-protocol.js +0 -668
- package/dist/orchestration/state/distributed-state-manager.d.ts +0 -89
- package/dist/orchestration/state/distributed-state-manager.js +0 -716
- package/dist/orchestrator/flow-composer.d.ts +0 -105
- package/dist/orchestrator/flow-composer.js +0 -404
- package/dist/orchestrator/flow-pattern-templates.d.ts +0 -260
- package/dist/orchestrator/flow-pattern-templates.js +0 -908
- package/dist/orchestrator/flow-subflow-decision-engine.d.ts +0 -202
- package/dist/orchestrator/flow-subflow-decision-engine.js +0 -769
- package/dist/orchestrator/flow-validation-engine.d.ts +0 -169
- package/dist/orchestrator/flow-validation-engine.js +0 -913
- package/dist/orchestrator/snow-orchestrator.d.ts +0 -49
- package/dist/orchestrator/snow-orchestrator.js +0 -235
- package/dist/orchestrator/subflow-creation-handler.d.ts +0 -230
- package/dist/orchestrator/subflow-creation-handler.js +0 -791
- package/dist/patterns/adaptive-patterns.d.ts +0 -140
- package/dist/patterns/adaptive-patterns.js +0 -549
- package/dist/queen/advanced-integration-test.d.ts +0 -48
- package/dist/queen/advanced-integration-test.js +0 -473
- package/dist/queen/integration-example.d.ts +0 -82
- package/dist/queen/integration-example.js +0 -219
- package/dist/queen/integration-test.d.ts +0 -72
- package/dist/queen/integration-test.js +0 -563
- package/dist/queen/mock-mcp-client.d.ts +0 -71
- package/dist/queen/mock-mcp-client.js +0 -317
- package/dist/queen/run-integration-tests.d.ts +0 -9
- package/dist/queen/run-integration-tests.js +0 -27
- package/dist/sparc/coordinators/adaptive-coordinator.d.ts +0 -54
- package/dist/sparc/coordinators/adaptive-coordinator.js +0 -367
- package/dist/sparc/coordinators/team-coordinator.d.ts +0 -66
- package/dist/sparc/coordinators/team-coordinator.js +0 -402
- package/dist/sparc/modes/team-modes.d.ts +0 -33
- package/dist/sparc/modes/team-modes.js +0 -399
- package/dist/sparc/teams/application-team.d.ts +0 -73
- package/dist/sparc/teams/application-team.js +0 -463
- package/dist/sparc/teams/flow-team.d.ts +0 -67
- package/dist/sparc/teams/flow-team.js +0 -373
- package/dist/sparc/teams/widget-team.d.ts +0 -61
- package/dist/sparc/teams/widget-team.js +0 -280
- package/dist/specialists/app-specialists.d.ts +0 -93
- package/dist/specialists/app-specialists.js +0 -1639
- package/dist/specialists/base-specialist.d.ts +0 -19
- package/dist/specialists/base-specialist.js +0 -54
- package/dist/specialists/flow-specialists.d.ts +0 -113
- package/dist/specialists/flow-specialists.js +0 -1787
- package/dist/specialists/individual-specialists.d.ts +0 -67
- package/dist/specialists/individual-specialists.js +0 -632
- package/dist/specialists/widget-specialists.d.ts +0 -70
- package/dist/specialists/widget-specialists.js +0 -1264
- package/dist/src/utils/agent-detector.js +0 -655
- package/dist/teams/adaptive-team.d.ts +0 -81
- package/dist/teams/adaptive-team.js +0 -1153
- package/dist/teams/application-team.d.ts +0 -30
- package/dist/teams/application-team.js +0 -547
- package/dist/teams/base-team.d.ts +0 -55
- package/dist/teams/base-team.js +0 -243
- package/dist/teams/flow-team.d.ts +0 -28
- package/dist/teams/flow-team.js +0 -525
- package/dist/teams/widget-team.d.ts +0 -26
- package/dist/teams/widget-team.js +0 -459
- package/dist/templates/flow-template-system.js +0 -625
- package/dist/test-fetch-incidents.d.ts +0 -2
- package/dist/test-fetch-incidents.js +0 -84
- package/dist/test-incident-access.d.ts +0 -2
- package/dist/test-incident-access.js +0 -72
- package/dist/test-iphone-flow.js +0 -189
- package/dist/test-limit-problem.d.ts +0 -2
- package/dist/test-limit-problem.js +0 -60
- package/dist/test-ml-batch-fix.d.ts +0 -2
- package/dist/test-ml-batch-fix.js +0 -104
- package/dist/test-ml-batch.d.ts +0 -2
- package/dist/test-ml-batch.js +0 -87
- package/dist/test-ml-query.d.ts +0 -2
- package/dist/test-ml-query.js +0 -100
- package/dist/test-ml-training-fix.d.ts +0 -12
- package/dist/test-ml-training-fix.js +0 -113
- package/dist/test-ml-training.d.ts +0 -2
- package/dist/test-ml-training.js +0 -32
- package/dist/test-operations-query.d.ts +0 -2
- package/dist/test-operations-query.js +0 -84
- package/dist/test-performance-query.d.ts +0 -2
- package/dist/test-performance-query.js +0 -52
- package/dist/test-singleton-protection.d.ts +0 -8
- package/dist/test-singleton-protection.js +0 -110
- package/dist/test-smart-limits.d.ts +0 -13
- package/dist/test-smart-limits.js +0 -100
- package/dist/test-snow-query-incidents.d.ts +0 -2
- package/dist/test-snow-query-incidents.js +0 -66
- package/dist/test-universal-query.d.ts +0 -2
- package/dist/test-universal-query.js +0 -106
- package/dist/testing/flow-testing-automation.js +0 -641
- package/dist/utils/complete-flow-xml-generator.js +0 -1285
- package/dist/utils/file-storage-fallback.d.ts +0 -62
- package/dist/utils/file-storage-fallback.js +0 -289
- package/dist/utils/flow-api-discovery.d.ts +0 -151
- package/dist/utils/flow-api-discovery.js +0 -439
- package/dist/utils/flow-examples.js +0 -720
- package/dist/utils/flow-structure-builder.js +0 -677
- package/dist/utils/flow-xml-generator.d.ts +0 -41
- package/dist/utils/flow-xml-generator.js +0 -258
- package/dist/utils/improved-flow-xml-generator.js +0 -820
- package/dist/utils/mcp-process-manager.backup.d.ts +0 -58
- package/dist/utils/mcp-process-manager.backup.js +0 -220
- package/dist/utils/mcp-singleton-enforcer.d.ts +0 -36
- package/dist/utils/mcp-singleton-enforcer.js +0 -201
- package/dist/utils/mcp-timeout-fix.d.ts +0 -53
- package/dist/utils/mcp-timeout-fix.js +0 -221
- package/dist/utils/migrate-claude-flow.d.ts +0 -22
- package/dist/utils/migrate-claude-flow.js +0 -120
- package/dist/utils/scope-utils.d.ts +0 -72
- package/dist/utils/scope-utils.js +0 -386
- package/dist/utils/snow-oauth-old.d.ts +0 -65
- package/dist/utils/snow-oauth-old.js +0 -345
- package/dist/utils/xml-first-flow-generator.js +0 -513
- package/memory/servicenow_artifacts/000d9224c895221055906c7518aa2d3d.json +0 -30
- package/memory/servicenow_artifacts/0196b66173303010e46b4a2214f6a7a2.json +0 -36
- package/memory/servicenow_artifacts/125e5d1d837e2a102a7ea130ceaad397.json +0 -30
- package/memory/servicenow_artifacts/7637c1f2b7112210a5e5911cde11a972.json +0 -30
- package/memory/servicenow_artifacts/default_documentation_tables_1754056582292.json +0 -55
- package/memory/servicenow_artifacts/default_documentation_tables_1754057477189.json +0 -55
- package/memory/update-set-sessions/01f82af583faea102a7ea130ceaad3d4.json +0 -9
- package/memory/update-set-sessions/27718fb983faea102a7ea130ceaad34b.json +0 -9
- package/memory/update-set-sessions/412e9bf6833e22502a7ea130ceaad30a.json +0 -8
- package/memory/update-set-sessions/66fc5a79837aea102a7ea130ceaad3ab.json +0 -9
- package/memory/update-set-sessions/71a30ff5837eea102a7ea130ceaad37f.json +0 -9
- package/memory/update-set-sessions/74fba27983faea102a7ea130ceaad3bd.json +0 -9
- package/memory/update-set-sessions/a0b147b5837eea102a7ea130ceaad344.json +0 -58
- package/memory/update-set-sessions/b13f5eb983baea102a7ea130ceaad33e.json +0 -9
- package/reports/swarm-auto-centralized-1752649029776.json +0 -13
- package/src/memory/README.md +0 -240
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Reporting Specialist Agent - Handles reports, dashboards, and analytics
|
|
3
|
-
*/
|
|
4
|
-
import { BaseSnowAgent } from '../base/base-snow-agent.js';
|
|
5
|
-
import { Task } from '../../types/snow-flow.types.js';
|
|
6
|
-
export interface ReportingRequirements {
|
|
7
|
-
reportType: 'list' | 'chart' | 'dashboard' | 'kpi';
|
|
8
|
-
dataSource: string;
|
|
9
|
-
fields: string[];
|
|
10
|
-
filters: ReportFilter[];
|
|
11
|
-
grouping?: string[];
|
|
12
|
-
aggregations?: ReportAggregation[];
|
|
13
|
-
visualization?: VisualizationConfig;
|
|
14
|
-
scheduling?: ScheduleConfig;
|
|
15
|
-
}
|
|
16
|
-
export interface ReportFilter {
|
|
17
|
-
field: string;
|
|
18
|
-
operator: 'equals' | 'not_equals' | 'contains' | 'greater_than' | 'less_than';
|
|
19
|
-
value: string;
|
|
20
|
-
}
|
|
21
|
-
export interface ReportAggregation {
|
|
22
|
-
field: string;
|
|
23
|
-
function: 'count' | 'sum' | 'average' | 'min' | 'max';
|
|
24
|
-
alias?: string;
|
|
25
|
-
}
|
|
26
|
-
export interface VisualizationConfig {
|
|
27
|
-
chartType: 'bar' | 'line' | 'pie' | 'donut' | 'scatter' | 'gauge';
|
|
28
|
-
colors?: string[];
|
|
29
|
-
title: string;
|
|
30
|
-
xAxis?: string;
|
|
31
|
-
yAxis?: string;
|
|
32
|
-
}
|
|
33
|
-
export interface ScheduleConfig {
|
|
34
|
-
frequency: 'daily' | 'weekly' | 'monthly';
|
|
35
|
-
recipients: string[];
|
|
36
|
-
format: 'pdf' | 'excel' | 'csv';
|
|
37
|
-
}
|
|
38
|
-
export declare class ReportingSpecialistAgent extends BaseSnowAgent {
|
|
39
|
-
constructor();
|
|
40
|
-
execute(task: Task, input?: any): Promise<any>;
|
|
41
|
-
analyzeReportingRequirements(description: string, context?: any): Promise<ReportingRequirements>;
|
|
42
|
-
createReport(requirements: ReportingRequirements): Promise<any>;
|
|
43
|
-
createDashboard(config: any): Promise<any>;
|
|
44
|
-
setupKPI(metrics: any): Promise<any>;
|
|
45
|
-
private determineReportType;
|
|
46
|
-
private identifyDataSource;
|
|
47
|
-
private extractFields;
|
|
48
|
-
private extractFilters;
|
|
49
|
-
private extractGrouping;
|
|
50
|
-
private extractAggregations;
|
|
51
|
-
private configureVisualization;
|
|
52
|
-
private extractScheduling;
|
|
53
|
-
}
|
|
54
|
-
//# sourceMappingURL=reporting-specialist.agent.d.ts.map
|
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Reporting Specialist Agent - Handles reports, dashboards, and analytics
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ReportingSpecialistAgent = void 0;
|
|
7
|
-
const base_snow_agent_js_1 = require("../base/base-snow-agent.js");
|
|
8
|
-
class ReportingSpecialistAgent extends base_snow_agent_js_1.BaseSnowAgent {
|
|
9
|
-
constructor() {
|
|
10
|
-
const capabilities = {
|
|
11
|
-
primarySkills: [
|
|
12
|
-
'report_creation',
|
|
13
|
-
'dashboard_design',
|
|
14
|
-
'data_visualization',
|
|
15
|
-
'analytics_setup',
|
|
16
|
-
'kpi_tracking'
|
|
17
|
-
],
|
|
18
|
-
secondarySkills: [
|
|
19
|
-
'data_analysis',
|
|
20
|
-
'performance_metrics',
|
|
21
|
-
'automated_reporting',
|
|
22
|
-
'chart_configuration'
|
|
23
|
-
],
|
|
24
|
-
complexity: 'medium',
|
|
25
|
-
autonomy: 'semi-autonomous'
|
|
26
|
-
};
|
|
27
|
-
super('reporting-specialist', 'ReportingSpecialist', capabilities);
|
|
28
|
-
}
|
|
29
|
-
async execute(task, input) {
|
|
30
|
-
await this.startTask(task);
|
|
31
|
-
try {
|
|
32
|
-
const taskType = task.metadata?.type || 'report_analysis';
|
|
33
|
-
let result;
|
|
34
|
-
switch (taskType) {
|
|
35
|
-
case 'report_creation':
|
|
36
|
-
result = await this.createReport(input?.requirements || {});
|
|
37
|
-
break;
|
|
38
|
-
case 'dashboard_creation':
|
|
39
|
-
result = await this.createDashboard(input?.config || {});
|
|
40
|
-
break;
|
|
41
|
-
case 'kpi_setup':
|
|
42
|
-
result = await this.setupKPI(input?.metrics || {});
|
|
43
|
-
break;
|
|
44
|
-
default:
|
|
45
|
-
result = await this.analyzeReportingRequirements(task.description, input);
|
|
46
|
-
}
|
|
47
|
-
await this.completeTask(result);
|
|
48
|
-
return result;
|
|
49
|
-
}
|
|
50
|
-
catch (error) {
|
|
51
|
-
await this.handleError(error);
|
|
52
|
-
throw error;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
async analyzeReportingRequirements(description, context) {
|
|
56
|
-
const normalizedDesc = description.toLowerCase();
|
|
57
|
-
return {
|
|
58
|
-
reportType: this.determineReportType(normalizedDesc),
|
|
59
|
-
dataSource: this.identifyDataSource(normalizedDesc),
|
|
60
|
-
fields: this.extractFields(normalizedDesc),
|
|
61
|
-
filters: this.extractFilters(normalizedDesc),
|
|
62
|
-
grouping: this.extractGrouping(normalizedDesc),
|
|
63
|
-
aggregations: this.extractAggregations(normalizedDesc),
|
|
64
|
-
visualization: this.configureVisualization(normalizedDesc),
|
|
65
|
-
scheduling: this.extractScheduling(normalizedDesc)
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
async createReport(requirements) {
|
|
69
|
-
return {
|
|
70
|
-
type: 'report',
|
|
71
|
-
name: `auto_report_${Date.now()}`,
|
|
72
|
-
table: requirements.dataSource,
|
|
73
|
-
fields: requirements.fields,
|
|
74
|
-
filters: requirements.filters,
|
|
75
|
-
groupBy: requirements.grouping,
|
|
76
|
-
orderBy: ['sys_created_on DESC'],
|
|
77
|
-
format: 'list',
|
|
78
|
-
sharing: 'public',
|
|
79
|
-
schedule: requirements.scheduling
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
async createDashboard(config) {
|
|
83
|
-
return {
|
|
84
|
-
type: 'dashboard',
|
|
85
|
-
name: config.name || `auto_dashboard_${Date.now()}`,
|
|
86
|
-
layout: 'grid',
|
|
87
|
-
widgets: [
|
|
88
|
-
{
|
|
89
|
-
type: 'report_widget',
|
|
90
|
-
title: 'Summary Statistics',
|
|
91
|
-
report: config.primaryReport,
|
|
92
|
-
size: 'medium'
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
type: 'chart_widget',
|
|
96
|
-
title: 'Trend Analysis',
|
|
97
|
-
chartType: 'line',
|
|
98
|
-
dataSource: config.dataSource,
|
|
99
|
-
size: 'large'
|
|
100
|
-
}
|
|
101
|
-
],
|
|
102
|
-
filters: config.globalFilters || [],
|
|
103
|
-
refreshInterval: config.refreshInterval || 300000 // 5 minutes
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
async setupKPI(metrics) {
|
|
107
|
-
return {
|
|
108
|
-
type: 'kpi',
|
|
109
|
-
name: metrics.name || `auto_kpi_${Date.now()}`,
|
|
110
|
-
metric: metrics.metric || 'count',
|
|
111
|
-
table: metrics.table || 'incident',
|
|
112
|
-
condition: metrics.condition || '',
|
|
113
|
-
target: metrics.target || 100,
|
|
114
|
-
thresholds: {
|
|
115
|
-
green: metrics.green || 90,
|
|
116
|
-
yellow: metrics.yellow || 70,
|
|
117
|
-
red: metrics.red || 50
|
|
118
|
-
},
|
|
119
|
-
updateFrequency: metrics.frequency || 'hourly'
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
determineReportType(description) {
|
|
123
|
-
if (description.includes('dashboard'))
|
|
124
|
-
return 'dashboard';
|
|
125
|
-
if (description.includes('chart') || description.includes('graph'))
|
|
126
|
-
return 'chart';
|
|
127
|
-
if (description.includes('kpi') || description.includes('metric'))
|
|
128
|
-
return 'kpi';
|
|
129
|
-
return 'list';
|
|
130
|
-
}
|
|
131
|
-
identifyDataSource(description) {
|
|
132
|
-
const tableMatches = description.match(/\b(incident|problem|change_request|task|sys_user)\b/);
|
|
133
|
-
return tableMatches ? tableMatches[0] : 'incident';
|
|
134
|
-
}
|
|
135
|
-
extractFields(description) {
|
|
136
|
-
const fields = ['number', 'short_description', 'state', 'priority', 'assigned_to'];
|
|
137
|
-
if (description.includes('date'))
|
|
138
|
-
fields.push('sys_created_on');
|
|
139
|
-
if (description.includes('category'))
|
|
140
|
-
fields.push('category');
|
|
141
|
-
return fields;
|
|
142
|
-
}
|
|
143
|
-
extractFilters(description) {
|
|
144
|
-
const filters = [];
|
|
145
|
-
if (description.includes('active')) {
|
|
146
|
-
filters.push({ field: 'active', operator: 'equals', value: 'true' });
|
|
147
|
-
}
|
|
148
|
-
if (description.includes('high priority')) {
|
|
149
|
-
filters.push({ field: 'priority', operator: 'equals', value: '1' });
|
|
150
|
-
}
|
|
151
|
-
return filters;
|
|
152
|
-
}
|
|
153
|
-
extractGrouping(description) {
|
|
154
|
-
if (description.includes('by state'))
|
|
155
|
-
return ['state'];
|
|
156
|
-
if (description.includes('by priority'))
|
|
157
|
-
return ['priority'];
|
|
158
|
-
if (description.includes('by category'))
|
|
159
|
-
return ['category'];
|
|
160
|
-
return undefined;
|
|
161
|
-
}
|
|
162
|
-
extractAggregations(description) {
|
|
163
|
-
const aggregations = [];
|
|
164
|
-
if (description.includes('count')) {
|
|
165
|
-
aggregations.push({ field: 'sys_id', function: 'count', alias: 'total_count' });
|
|
166
|
-
}
|
|
167
|
-
return aggregations.length > 0 ? aggregations : undefined;
|
|
168
|
-
}
|
|
169
|
-
configureVisualization(description) {
|
|
170
|
-
if (description.includes('chart') || description.includes('graph')) {
|
|
171
|
-
return {
|
|
172
|
-
chartType: description.includes('pie') ? 'pie' : 'bar',
|
|
173
|
-
title: 'Auto-generated Chart',
|
|
174
|
-
xAxis: 'state',
|
|
175
|
-
yAxis: 'count'
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
|
-
return undefined;
|
|
179
|
-
}
|
|
180
|
-
extractScheduling(description) {
|
|
181
|
-
if (description.includes('daily') || description.includes('weekly') || description.includes('monthly')) {
|
|
182
|
-
return {
|
|
183
|
-
frequency: description.includes('daily') ? 'daily' :
|
|
184
|
-
description.includes('weekly') ? 'weekly' : 'monthly',
|
|
185
|
-
recipients: ['admin@company.com'],
|
|
186
|
-
format: 'pdf'
|
|
187
|
-
};
|
|
188
|
-
}
|
|
189
|
-
return undefined;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
exports.ReportingSpecialistAgent = ReportingSpecialistAgent;
|
|
193
|
-
//# sourceMappingURL=reporting-specialist.agent.js.map
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Security Specialist Agent - Handles security, compliance, and access control
|
|
3
|
-
*/
|
|
4
|
-
import { BaseSnowAgent } from '../base/base-snow-agent.js';
|
|
5
|
-
import { Task } from '../../types/snow-flow.types.js';
|
|
6
|
-
export interface SecurityRequirements {
|
|
7
|
-
accessControls: AccessControlRule[];
|
|
8
|
-
dataClassification: DataClassification;
|
|
9
|
-
complianceFrameworks: string[];
|
|
10
|
-
auditRequirements: AuditConfig;
|
|
11
|
-
encryptionNeeds: EncryptionConfig;
|
|
12
|
-
riskAssessment: RiskAssessment;
|
|
13
|
-
}
|
|
14
|
-
export interface AccessControlRule {
|
|
15
|
-
table: string;
|
|
16
|
-
operation: 'read' | 'write' | 'create' | 'delete';
|
|
17
|
-
roles: string[];
|
|
18
|
-
conditions?: string;
|
|
19
|
-
fieldLevel?: FieldAccessControl[];
|
|
20
|
-
}
|
|
21
|
-
export interface FieldAccessControl {
|
|
22
|
-
field: string;
|
|
23
|
-
access: 'read' | 'write' | 'none';
|
|
24
|
-
roles: string[];
|
|
25
|
-
}
|
|
26
|
-
export interface DataClassification {
|
|
27
|
-
level: 'public' | 'internal' | 'confidential' | 'restricted';
|
|
28
|
-
categories: string[];
|
|
29
|
-
retentionPeriod: number;
|
|
30
|
-
dataResidency?: string;
|
|
31
|
-
}
|
|
32
|
-
export interface AuditConfig {
|
|
33
|
-
enabled: boolean;
|
|
34
|
-
events: string[];
|
|
35
|
-
retention: number;
|
|
36
|
-
realTimeMonitoring: boolean;
|
|
37
|
-
alerting: AlertConfig[];
|
|
38
|
-
}
|
|
39
|
-
export interface AlertConfig {
|
|
40
|
-
event: string;
|
|
41
|
-
severity: 'low' | 'medium' | 'high' | 'critical';
|
|
42
|
-
recipients: string[];
|
|
43
|
-
channels: ('email' | 'sms' | 'slack')[];
|
|
44
|
-
}
|
|
45
|
-
export interface EncryptionConfig {
|
|
46
|
-
atRest: boolean;
|
|
47
|
-
inTransit: boolean;
|
|
48
|
-
keyManagement: 'internal' | 'external' | 'cloud';
|
|
49
|
-
algorithm?: string;
|
|
50
|
-
}
|
|
51
|
-
export interface RiskAssessment {
|
|
52
|
-
level: 'low' | 'medium' | 'high' | 'critical';
|
|
53
|
-
factors: RiskFactor[];
|
|
54
|
-
mitigations: Mitigation[];
|
|
55
|
-
residualRisk: 'low' | 'medium' | 'high';
|
|
56
|
-
}
|
|
57
|
-
export interface RiskFactor {
|
|
58
|
-
type: 'data_exposure' | 'unauthorized_access' | 'system_compromise' | 'compliance_violation';
|
|
59
|
-
likelihood: 'low' | 'medium' | 'high';
|
|
60
|
-
impact: 'low' | 'medium' | 'high';
|
|
61
|
-
description: string;
|
|
62
|
-
}
|
|
63
|
-
export interface Mitigation {
|
|
64
|
-
control: string;
|
|
65
|
-
effectiveness: 'low' | 'medium' | 'high';
|
|
66
|
-
implementation: 'immediate' | 'short_term' | 'long_term';
|
|
67
|
-
cost: 'low' | 'medium' | 'high';
|
|
68
|
-
}
|
|
69
|
-
export declare class SecuritySpecialistAgent extends BaseSnowAgent {
|
|
70
|
-
constructor();
|
|
71
|
-
execute(task: Task, input?: any): Promise<any>;
|
|
72
|
-
analyzeSecurityRequirements(description: string, context?: any): Promise<SecurityRequirements>;
|
|
73
|
-
setupAccessControls(requirements: SecurityRequirements): Promise<any>;
|
|
74
|
-
performComplianceCheck(framework: any): Promise<any>;
|
|
75
|
-
conductRiskAssessment(scope: any): Promise<RiskAssessment>;
|
|
76
|
-
setupAuditing(config: any): Promise<any>;
|
|
77
|
-
private defineAccessControls;
|
|
78
|
-
private classifyData;
|
|
79
|
-
private identifyComplianceFrameworks;
|
|
80
|
-
private defineAuditRequirements;
|
|
81
|
-
private assessEncryptionNeeds;
|
|
82
|
-
private assessRisk;
|
|
83
|
-
private createFieldLevelSecurity;
|
|
84
|
-
}
|
|
85
|
-
//# sourceMappingURL=security-specialist.agent.d.ts.map
|
|
@@ -1,309 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Security Specialist Agent - Handles security, compliance, and access control
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.SecuritySpecialistAgent = void 0;
|
|
7
|
-
const base_snow_agent_js_1 = require("../base/base-snow-agent.js");
|
|
8
|
-
class SecuritySpecialistAgent extends base_snow_agent_js_1.BaseSnowAgent {
|
|
9
|
-
constructor() {
|
|
10
|
-
const capabilities = {
|
|
11
|
-
primarySkills: [
|
|
12
|
-
'access_control',
|
|
13
|
-
'security_policies',
|
|
14
|
-
'compliance_management',
|
|
15
|
-
'risk_assessment',
|
|
16
|
-
'audit_configuration',
|
|
17
|
-
'encryption_setup'
|
|
18
|
-
],
|
|
19
|
-
secondarySkills: [
|
|
20
|
-
'security_monitoring',
|
|
21
|
-
'incident_response',
|
|
22
|
-
'vulnerability_assessment',
|
|
23
|
-
'data_protection'
|
|
24
|
-
],
|
|
25
|
-
complexity: 'high',
|
|
26
|
-
autonomy: 'guided'
|
|
27
|
-
};
|
|
28
|
-
super('security-specialist', 'SecuritySpecialist', capabilities);
|
|
29
|
-
}
|
|
30
|
-
async execute(task, input) {
|
|
31
|
-
await this.startTask(task);
|
|
32
|
-
try {
|
|
33
|
-
const taskType = task.metadata?.type || 'security_analysis';
|
|
34
|
-
let result;
|
|
35
|
-
switch (taskType) {
|
|
36
|
-
case 'access_control_setup':
|
|
37
|
-
result = await this.setupAccessControls(input?.requirements || {});
|
|
38
|
-
break;
|
|
39
|
-
case 'compliance_check':
|
|
40
|
-
result = await this.performComplianceCheck(input?.framework || {});
|
|
41
|
-
break;
|
|
42
|
-
case 'risk_assessment':
|
|
43
|
-
result = await this.conductRiskAssessment(input?.scope || {});
|
|
44
|
-
break;
|
|
45
|
-
case 'audit_setup':
|
|
46
|
-
result = await this.setupAuditing(input?.config || {});
|
|
47
|
-
break;
|
|
48
|
-
default:
|
|
49
|
-
result = await this.analyzeSecurityRequirements(task.description, input);
|
|
50
|
-
}
|
|
51
|
-
await this.completeTask(result);
|
|
52
|
-
return result;
|
|
53
|
-
}
|
|
54
|
-
catch (error) {
|
|
55
|
-
await this.handleError(error);
|
|
56
|
-
throw error;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
async analyzeSecurityRequirements(description, context) {
|
|
60
|
-
const normalizedDesc = description.toLowerCase();
|
|
61
|
-
return {
|
|
62
|
-
accessControls: this.defineAccessControls(normalizedDesc),
|
|
63
|
-
dataClassification: this.classifyData(normalizedDesc),
|
|
64
|
-
complianceFrameworks: this.identifyComplianceFrameworks(normalizedDesc),
|
|
65
|
-
auditRequirements: this.defineAuditRequirements(normalizedDesc),
|
|
66
|
-
encryptionNeeds: this.assessEncryptionNeeds(normalizedDesc),
|
|
67
|
-
riskAssessment: this.assessRisk(normalizedDesc)
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
async setupAccessControls(requirements) {
|
|
71
|
-
return {
|
|
72
|
-
type: 'access_control_setup',
|
|
73
|
-
rules: requirements.accessControls.map(rule => ({
|
|
74
|
-
name: `acl_${rule.table}_${rule.operation}`,
|
|
75
|
-
table: rule.table,
|
|
76
|
-
operation: rule.operation,
|
|
77
|
-
roles: rule.roles,
|
|
78
|
-
condition: rule.conditions || '',
|
|
79
|
-
active: true,
|
|
80
|
-
order: 100
|
|
81
|
-
})),
|
|
82
|
-
fieldLevelSecurity: this.createFieldLevelSecurity(requirements.accessControls),
|
|
83
|
-
implementation: {
|
|
84
|
-
phases: ['development', 'testing', 'production'],
|
|
85
|
-
rollback: 'Disable rules and revert to previous state',
|
|
86
|
-
validation: 'User access testing required'
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
async performComplianceCheck(framework) {
|
|
91
|
-
const complianceResults = {
|
|
92
|
-
framework: framework.name || 'Generic',
|
|
93
|
-
overallStatus: 'compliant',
|
|
94
|
-
score: 85, // percentage
|
|
95
|
-
requirements: [
|
|
96
|
-
{
|
|
97
|
-
id: 'access_control',
|
|
98
|
-
name: 'Access Control Management',
|
|
99
|
-
status: 'compliant',
|
|
100
|
-
evidence: 'ACL rules configured',
|
|
101
|
-
gaps: []
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
id: 'data_protection',
|
|
105
|
-
name: 'Data Protection',
|
|
106
|
-
status: 'partial',
|
|
107
|
-
evidence: 'Encryption enabled',
|
|
108
|
-
gaps: ['Data masking not configured']
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
id: 'audit_logging',
|
|
112
|
-
name: 'Audit Logging',
|
|
113
|
-
status: 'compliant',
|
|
114
|
-
evidence: 'Audit rules active',
|
|
115
|
-
gaps: []
|
|
116
|
-
}
|
|
117
|
-
],
|
|
118
|
-
recommendations: [
|
|
119
|
-
'Implement data masking for sensitive fields',
|
|
120
|
-
'Enable real-time monitoring alerts',
|
|
121
|
-
'Schedule regular compliance reviews'
|
|
122
|
-
],
|
|
123
|
-
nextReview: new Date(Date.now() + 90 * 24 * 60 * 60 * 1000) // 90 days
|
|
124
|
-
};
|
|
125
|
-
return complianceResults;
|
|
126
|
-
}
|
|
127
|
-
async conductRiskAssessment(scope) {
|
|
128
|
-
const riskFactors = [
|
|
129
|
-
{
|
|
130
|
-
type: 'data_exposure',
|
|
131
|
-
likelihood: 'medium',
|
|
132
|
-
impact: 'high',
|
|
133
|
-
description: 'Sensitive data accessible without proper controls'
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
type: 'unauthorized_access',
|
|
137
|
-
likelihood: 'low',
|
|
138
|
-
impact: 'medium',
|
|
139
|
-
description: 'Weak authentication mechanisms'
|
|
140
|
-
}
|
|
141
|
-
];
|
|
142
|
-
const mitigations = [
|
|
143
|
-
{
|
|
144
|
-
control: 'Role-based access control implementation',
|
|
145
|
-
effectiveness: 'high',
|
|
146
|
-
implementation: 'immediate',
|
|
147
|
-
cost: 'medium'
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
control: 'Multi-factor authentication',
|
|
151
|
-
effectiveness: 'high',
|
|
152
|
-
implementation: 'short_term',
|
|
153
|
-
cost: 'low'
|
|
154
|
-
}
|
|
155
|
-
];
|
|
156
|
-
return {
|
|
157
|
-
level: 'medium',
|
|
158
|
-
factors: riskFactors,
|
|
159
|
-
mitigations,
|
|
160
|
-
residualRisk: 'low'
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
|
-
async setupAuditing(config) {
|
|
164
|
-
return {
|
|
165
|
-
type: 'audit_configuration',
|
|
166
|
-
policies: [
|
|
167
|
-
{
|
|
168
|
-
name: 'Data Access Audit',
|
|
169
|
-
table: config.table || 'sys_user',
|
|
170
|
-
events: ['read', 'write', 'delete'],
|
|
171
|
-
retention: 2555, // 7 years
|
|
172
|
-
realTime: true
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
name: 'Security Configuration Audit',
|
|
176
|
-
table: 'sys_security',
|
|
177
|
-
events: ['create', 'update', 'delete'],
|
|
178
|
-
retention: 2555,
|
|
179
|
-
realTime: true
|
|
180
|
-
}
|
|
181
|
-
],
|
|
182
|
-
monitoring: {
|
|
183
|
-
dashboards: ['security_overview', 'compliance_status'],
|
|
184
|
-
alerts: [
|
|
185
|
-
{
|
|
186
|
-
event: 'unauthorized_access_attempt',
|
|
187
|
-
severity: 'high',
|
|
188
|
-
recipients: ['security-team@company.com'],
|
|
189
|
-
channels: ['email', 'slack']
|
|
190
|
-
}
|
|
191
|
-
]
|
|
192
|
-
}
|
|
193
|
-
};
|
|
194
|
-
}
|
|
195
|
-
defineAccessControls(description) {
|
|
196
|
-
const rules = [];
|
|
197
|
-
// Default security rules
|
|
198
|
-
rules.push({
|
|
199
|
-
table: '*',
|
|
200
|
-
operation: 'read',
|
|
201
|
-
roles: ['user'],
|
|
202
|
-
conditions: 'sys_domain=javascript:gs.getUser().getDomainID()'
|
|
203
|
-
});
|
|
204
|
-
if (description.includes('confidential') || description.includes('sensitive')) {
|
|
205
|
-
rules.push({
|
|
206
|
-
table: '*',
|
|
207
|
-
operation: 'write',
|
|
208
|
-
roles: ['admin', 'security_admin'],
|
|
209
|
-
conditions: 'u_data_classification=confidential'
|
|
210
|
-
});
|
|
211
|
-
}
|
|
212
|
-
return rules;
|
|
213
|
-
}
|
|
214
|
-
classifyData(description) {
|
|
215
|
-
let level = 'internal';
|
|
216
|
-
if (description.includes('public'))
|
|
217
|
-
level = 'public';
|
|
218
|
-
else if (description.includes('confidential') || description.includes('sensitive'))
|
|
219
|
-
level = 'confidential';
|
|
220
|
-
else if (description.includes('restricted') || description.includes('secret'))
|
|
221
|
-
level = 'restricted';
|
|
222
|
-
return {
|
|
223
|
-
level,
|
|
224
|
-
categories: ['business_data'],
|
|
225
|
-
retentionPeriod: level === 'restricted' ? 2555 : 1095, // 7 years or 3 years
|
|
226
|
-
dataResidency: 'local'
|
|
227
|
-
};
|
|
228
|
-
}
|
|
229
|
-
identifyComplianceFrameworks(description) {
|
|
230
|
-
const frameworks = [];
|
|
231
|
-
if (description.includes('gdpr'))
|
|
232
|
-
frameworks.push('GDPR');
|
|
233
|
-
if (description.includes('sox') || description.includes('sarbanes'))
|
|
234
|
-
frameworks.push('SOX');
|
|
235
|
-
if (description.includes('hipaa'))
|
|
236
|
-
frameworks.push('HIPAA');
|
|
237
|
-
if (description.includes('iso'))
|
|
238
|
-
frameworks.push('ISO 27001');
|
|
239
|
-
if (description.includes('pci'))
|
|
240
|
-
frameworks.push('PCI DSS');
|
|
241
|
-
// Default framework if none specified
|
|
242
|
-
if (frameworks.length === 0)
|
|
243
|
-
frameworks.push('Internal Security Policy');
|
|
244
|
-
return frameworks;
|
|
245
|
-
}
|
|
246
|
-
defineAuditRequirements(description) {
|
|
247
|
-
return {
|
|
248
|
-
enabled: true,
|
|
249
|
-
events: ['create', 'update', 'delete', 'read'],
|
|
250
|
-
retention: 2555, // 7 years
|
|
251
|
-
realTimeMonitoring: description.includes('real-time') || description.includes('immediate'),
|
|
252
|
-
alerting: [
|
|
253
|
-
{
|
|
254
|
-
event: 'security_violation',
|
|
255
|
-
severity: 'high',
|
|
256
|
-
recipients: ['security-team@company.com'],
|
|
257
|
-
channels: ['email']
|
|
258
|
-
}
|
|
259
|
-
]
|
|
260
|
-
};
|
|
261
|
-
}
|
|
262
|
-
assessEncryptionNeeds(description) {
|
|
263
|
-
return {
|
|
264
|
-
atRest: description.includes('encrypt') || description.includes('confidential'),
|
|
265
|
-
inTransit: true, // Always encrypt in transit
|
|
266
|
-
keyManagement: 'internal',
|
|
267
|
-
algorithm: 'AES-256'
|
|
268
|
-
};
|
|
269
|
-
}
|
|
270
|
-
assessRisk(description) {
|
|
271
|
-
let level = 'medium';
|
|
272
|
-
if (description.includes('critical') || description.includes('high risk'))
|
|
273
|
-
level = 'high';
|
|
274
|
-
else if (description.includes('low risk') || description.includes('minimal'))
|
|
275
|
-
level = 'low';
|
|
276
|
-
return {
|
|
277
|
-
level,
|
|
278
|
-
factors: [
|
|
279
|
-
{
|
|
280
|
-
type: 'data_exposure',
|
|
281
|
-
likelihood: 'low',
|
|
282
|
-
impact: 'medium',
|
|
283
|
-
description: 'Standard business data exposure risk'
|
|
284
|
-
}
|
|
285
|
-
],
|
|
286
|
-
mitigations: [
|
|
287
|
-
{
|
|
288
|
-
control: 'Access controls and monitoring',
|
|
289
|
-
effectiveness: 'high',
|
|
290
|
-
implementation: 'immediate',
|
|
291
|
-
cost: 'low'
|
|
292
|
-
}
|
|
293
|
-
],
|
|
294
|
-
residualRisk: 'low'
|
|
295
|
-
};
|
|
296
|
-
}
|
|
297
|
-
createFieldLevelSecurity(accessControls) {
|
|
298
|
-
return accessControls
|
|
299
|
-
.filter(rule => rule.fieldLevel)
|
|
300
|
-
.flatMap(rule => rule.fieldLevel.map(field => ({
|
|
301
|
-
table: rule.table,
|
|
302
|
-
field: field.field,
|
|
303
|
-
access: field.access,
|
|
304
|
-
roles: field.roles
|
|
305
|
-
})));
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
exports.SecuritySpecialistAgent = SecuritySpecialistAgent;
|
|
309
|
-
//# sourceMappingURL=security-specialist.agent.js.map
|