snow-flow 2.0.2 → 2.0.4
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/mcp-config.json → .mcp.json} +13 -12
- package/.releaserc.json +47 -0
- package/README.md +48 -1
- package/package.json +1 -1
- package/.claude/claude-settings.json +0 -15
- package/.claude/commands/analysis/README.md +0 -9
- package/.claude/commands/automation/README.md +0 -9
- package/.claude/commands/github/README.md +0 -11
- package/.claude/commands/helpers/standard-checkpoint-hooks.sh +0 -179
- package/.claude/commands/hooks/README.md +0 -11
- package/.claude/commands/monitoring/README.md +0 -9
- package/.claude/commands/optimization/README.md +0 -9
- package/.claude/commands/training/README.md +0 -9
- package/.claude/commands/workflows/README.md +0 -9
- package/.claude/config.json +0 -36
- package/.claude/helpers/github-setup.sh +0 -28
- package/.claude/helpers/quick-start.sh +0 -19
- package/.claude/helpers/setup-mcp.sh +0 -18
- package/.claude/settings.json +0 -114
- package/.claude/settings.local.json +0 -33
- package/.claude-flow/metrics/agent-metrics.json +0 -1
- package/.claude-flow/metrics/performance.json +0 -9
- package/.claude-flow/metrics/system-metrics.json +0 -15986
- package/.claude-flow/metrics/task-metrics.json +0 -10
- package/.roo/README.md +0 -402
- package/.roo/mcp-list.txt +0 -257
- package/.roo/mcp.json +0 -32
- package/.roo/workflows/basic-tdd.json +0 -32
- package/.roomodes +0 -201
- package/CLAUDE.md +0 -393
- package/bin/snow-flow.js +0 -3
- package/dist/cli.js.bak +0 -2052
- package/dist/config/snow-flow-config.d.ts +0 -1492
- package/dist/config/snow-flow-config.js +0 -938
- package/scripts/create-env.js +0 -91
- package/scripts/postinstall.js +0 -30
- package/scripts/register-mcp-servers.js +0 -210
- package/scripts/reset-mcp-servers.js +0 -246
- package/scripts/setup-mcp.js +0 -106
- package/scripts/update-version.js +0 -31
- package/src/agents/README.md +0 -192
- package/src/agents/base-agent.ts +0 -251
- package/src/agents/coordinator.ts +0 -971
- package/src/agents/index.ts +0 -18
- package/src/agents/queen-403-handler.ts +0 -230
- package/src/agents/queen-agent.ts +0 -1399
- package/src/agents/script-writer-agent.ts +0 -769
- package/src/agents/security-agent.ts +0 -726
- package/src/agents/widget-creator-agent.ts +0 -568
- package/src/api/error-handling.ts +0 -1758
- package/src/api/natural-language-mapper.ts +0 -630
- package/src/api/performance-optimizer.ts +0 -891
- package/src/api/transaction-manager.ts +0 -754
- package/src/cli/deploy-artifact.ts +0 -304
- package/src/cli/snow-flow-cli-integration.ts +0 -434
- package/src/cli.ts +0 -4455
- package/src/cli.ts.bak +0 -5616
- package/src/compliance/advanced-compliance-system.ts +0 -1268
- package/src/compliance/index.ts +0 -19
- package/src/config/snow-flow-config.ts +0 -1019
- package/src/documentation/index.ts +0 -16
- package/src/documentation/self-documenting-system.ts +0 -1421
- package/src/dynamic-version.ts +0 -44
- package/src/healing/index.ts +0 -20
- package/src/healing/self-healing-system.ts +0 -1435
- package/src/health/README.md +0 -161
- package/src/health/system-health.ts +0 -995
- package/src/index.ts +0 -60
- package/src/intelligence/acl-analyzer.ts +0 -377
- package/src/intelligence/auto-resolution-engine.ts +0 -643
- package/src/intelligence/gap-analysis-engine.ts +0 -488
- package/src/intelligence/manual-instructions-generator.ts +0 -744
- package/src/intelligence/mcp-coverage-analyzer.ts +0 -708
- package/src/intelligence/multi-pass-requirements-analyzer.ts +0 -603
- package/src/intelligence/performance-recommendations-engine.ts +0 -1223
- package/src/intelligence/requirements-analyzer.ts +0 -1148
- package/src/intelligence/task-analyzer.ts +0 -628
- package/src/managers/scope-manager.ts +0 -555
- package/src/mcp/advanced/servicenow-advanced-features-mcp.ts +0 -16110
- package/src/mcp/base-mcp-server.ts +0 -660
- package/src/mcp/http-transport-wrapper.ts +0 -426
- package/src/mcp/service-discovery-client.ts +0 -312
- package/src/mcp/servicenow-automation-mcp-refactored.ts +0 -678
- package/src/mcp/servicenow-automation-mcp.ts +0 -838
- package/src/mcp/servicenow-deployment-mcp-refactored.ts +0 -1292
- package/src/mcp/servicenow-deployment-mcp.ts +0 -7244
- package/src/mcp/servicenow-graph-memory-mcp-refactored.ts +0 -721
- package/src/mcp/servicenow-graph-memory-mcp.ts +0 -832
- package/src/mcp/servicenow-integration-mcp-refactored.ts +0 -655
- package/src/mcp/servicenow-integration-mcp.ts +0 -819
- package/src/mcp/servicenow-intelligent-mcp-refactored.ts +0 -977
- package/src/mcp/servicenow-intelligent-mcp.ts +0 -4638
- package/src/mcp/servicenow-mcp-server.ts +0 -728
- package/src/mcp/servicenow-memory-mcp.ts +0 -474
- package/src/mcp/servicenow-operations-mcp-refactored.ts +0 -1995
- package/src/mcp/servicenow-operations-mcp.ts +0 -3384
- package/src/mcp/servicenow-platform-development-mcp-refactored.ts +0 -611
- package/src/mcp/servicenow-platform-development-mcp.ts +0 -970
- package/src/mcp/servicenow-progressive-indexer.ts +0 -370
- package/src/mcp/servicenow-reporting-analytics-mcp-refactored.ts +0 -695
- package/src/mcp/servicenow-reporting-analytics-mcp.ts +0 -1123
- package/src/mcp/servicenow-security-compliance-mcp-refactored.ts +0 -642
- package/src/mcp/servicenow-security-compliance-mcp.ts +0 -1157
- package/src/mcp/servicenow-update-set-mcp-refactored.ts +0 -751
- package/src/mcp/servicenow-update-set-mcp.ts +0 -811
- package/src/mcp/shared/agent-context-provider.ts +0 -365
- package/src/mcp/shared/base-mcp-server.ts +0 -2463
- package/src/mcp/shared/mcp-memory-manager.ts +0 -540
- package/src/mcp/shared/mcp-resource-manager.ts +0 -367
- package/src/mcp/snow-flow-mcp.ts +0 -911
- package/src/mcp/start-all-mcp-servers.ts +0 -102
- package/src/mcp/start-servicenow-mcp.ts +0 -67
- package/src/monitoring/enhanced-monitoring-system.ts +0 -1345
- package/src/monitoring/performance-tracker.ts +0 -777
- package/src/optimization/cost-optimization-engine.ts +0 -1125
- package/src/optimization/index.ts +0 -10
- package/src/queen/README.md +0 -403
- package/src/queen/agent-factory.ts +0 -574
- package/src/queen/index.ts +0 -94
- package/src/queen/mcp-execution-bridge.ts +0 -681
- package/src/queen/neural-learning.ts +0 -319
- package/src/queen/parallel-agent-engine.ts +0 -848
- package/src/queen/queen-memory-system.ts +0 -490
- package/src/queen/queen-memory.ts +0 -456
- package/src/queen/servicenow-queen.ts +0 -1029
- package/src/queen/types.ts +0 -87
- package/src/rollback/smart-rollback-system.ts +0 -866
- package/src/schemas/deployment.schema.json +0 -58
- package/src/schemas/flow.schema.json +0 -79
- package/src/schemas/widget.schema.json +0 -72
- package/src/snow-flow-system.ts +0 -541
- package/src/sparc/sparc-help.ts +0 -49
- package/src/sparc/team-sparc.ts +0 -88
- package/src/strategies/global-scope-strategy.ts +0 -736
- package/src/templates/base/application.template.json +0 -45
- package/src/templates/base/business_rule.template.json +0 -33
- package/src/templates/base/script_include.template.json +0 -18
- package/src/templates/base/table.template.json +0 -64
- package/src/templates/base/widget.template.json +0 -25
- package/src/templates/patterns/composite.incident-management.template.json +0 -140
- package/src/templates/patterns/widget.dashboard.template.json +0 -238
- package/src/templates/patterns/widget.datatable.template.json +0 -292
- package/src/testing/integration-test-suite.ts +0 -1276
- package/src/types/index.ts +0 -183
- package/src/types/neo4j-driver.d.ts +0 -23
- package/src/types/servicenow.types.ts +0 -307
- package/src/types/snow-flow.types.ts +0 -186
- package/src/types/todo.types.ts +0 -70
- package/src/utils/action-type-cache.ts +0 -286
- package/src/utils/agent-detector.ts +0 -573
- package/src/utils/artifact-tracker.ts +0 -379
- package/src/utils/dependency-detector.ts +0 -233
- package/src/utils/deployment-metadata-handler.ts +0 -518
- package/src/utils/error-recovery.ts +0 -680
- package/src/utils/logger.ts +0 -60
- package/src/utils/mcp-auth-middleware.ts +0 -262
- package/src/utils/mcp-config-manager.ts +0 -270
- package/src/utils/mcp-server-manager.ts +0 -446
- package/src/utils/mcp-tool-registry.ts +0 -298
- package/src/utils/migrate-snow-flow.ts +0 -98
- package/src/utils/oauth-html-templates.ts +0 -188
- package/src/utils/scope-utils.ts +0 -443
- package/src/utils/servicenow-client.ts +0 -3321
- package/src/utils/servicenow-id-generator.ts +0 -181
- package/src/utils/snow-memory-manager.ts +0 -605
- package/src/utils/snow-oauth.ts +0 -797
- package/src/utils/template-engine.ts +0 -463
- package/src/utils/theme-manager.ts +0 -295
- package/src/utils/unified-auth-store.ts +0 -222
- package/src/utils/update-set-importer.ts +0 -422
- package/src/utils/update-set-xml-packager.ts +0 -371
- package/src/utils/widget-template-generator.ts +0 -1744
- package/src/version.ts +0 -1950
package/src/types/index.ts
DELETED
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
// Core types for snow-flow CLI
|
|
2
|
-
|
|
3
|
-
export interface CLIConfig {
|
|
4
|
-
version: string;
|
|
5
|
-
instanceUrl?: string;
|
|
6
|
-
authType?: 'oauth' | 'basic';
|
|
7
|
-
credentials?: AuthCredentials;
|
|
8
|
-
memory?: MemoryConfig;
|
|
9
|
-
claude?: ClaudeConfig;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export interface AuthCredentials {
|
|
13
|
-
oauth?: {
|
|
14
|
-
clientId: string;
|
|
15
|
-
clientSecret: string;
|
|
16
|
-
refreshToken?: string;
|
|
17
|
-
accessToken?: string;
|
|
18
|
-
tokenExpiry?: number;
|
|
19
|
-
};
|
|
20
|
-
basic?: {
|
|
21
|
-
username: string;
|
|
22
|
-
password: string;
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export interface MemoryConfig {
|
|
27
|
-
storageDir: string;
|
|
28
|
-
maxSize: number;
|
|
29
|
-
ttl: number;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export interface ClaudeConfig {
|
|
33
|
-
apiKey?: string;
|
|
34
|
-
model?: string;
|
|
35
|
-
maxTokens?: number;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export interface SwarmOptions {
|
|
39
|
-
strategy?: 'research' | 'development' | '_analysis' | 'testing' | 'optimization' | 'maintenance';
|
|
40
|
-
mode?: 'centralized' | 'distributed' | 'hierarchical' | 'mesh' | 'hybrid';
|
|
41
|
-
maxAgents?: number;
|
|
42
|
-
parallel?: boolean;
|
|
43
|
-
monitor?: boolean;
|
|
44
|
-
output?: 'json' | 'sqlite' | 'csv' | 'html';
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export interface Agent {
|
|
48
|
-
id: string;
|
|
49
|
-
name: string;
|
|
50
|
-
type: AgentType;
|
|
51
|
-
status: 'idle' | 'busy' | 'error';
|
|
52
|
-
capabilities: string[];
|
|
53
|
-
memory?: Record<string, any>;
|
|
54
|
-
createdAt: Date;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export type AgentType =
|
|
58
|
-
| 'coordinator'
|
|
59
|
-
| 'researcher'
|
|
60
|
-
| 'coder'
|
|
61
|
-
| 'analyst'
|
|
62
|
-
| 'architect'
|
|
63
|
-
| 'tester'
|
|
64
|
-
| 'reviewer'
|
|
65
|
-
| 'optimizer'
|
|
66
|
-
| 'documenter'
|
|
67
|
-
| 'monitor'
|
|
68
|
-
| 'specialist'
|
|
69
|
-
| 'schema-designer'
|
|
70
|
-
| 'widget-builder'
|
|
71
|
-
| 'workflow-designer'
|
|
72
|
-
| 'script-generator'
|
|
73
|
-
| 'security-agent'
|
|
74
|
-
| 'update-set-manager'
|
|
75
|
-
| 'ui-ux-specialist'
|
|
76
|
-
| 'approval-specialist'
|
|
77
|
-
| 'security-specialist'
|
|
78
|
-
| 'css-specialist'
|
|
79
|
-
| 'backend-specialist'
|
|
80
|
-
| 'frontend-specialist'
|
|
81
|
-
| 'performance-specialist';
|
|
82
|
-
|
|
83
|
-
export interface Task {
|
|
84
|
-
id: string;
|
|
85
|
-
description: string;
|
|
86
|
-
status: 'pending' | 'in_progress' | 'completed' | 'failed';
|
|
87
|
-
priority: 'low' | 'medium' | 'high' | 'critical';
|
|
88
|
-
assignedAgent?: string;
|
|
89
|
-
dependencies?: string[];
|
|
90
|
-
result?: any;
|
|
91
|
-
error?: string;
|
|
92
|
-
createdAt: Date;
|
|
93
|
-
updatedAt: Date;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export interface MemoryEntry {
|
|
97
|
-
key: string;
|
|
98
|
-
value: any;
|
|
99
|
-
namespace: string;
|
|
100
|
-
ttl?: number;
|
|
101
|
-
createdAt: Date;
|
|
102
|
-
expiresAt?: Date;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export interface ServiceNowWidget {
|
|
106
|
-
name: string;
|
|
107
|
-
id?: string;
|
|
108
|
-
template: string;
|
|
109
|
-
controller: string;
|
|
110
|
-
css?: string;
|
|
111
|
-
serverScript?: string;
|
|
112
|
-
clientScript?: string;
|
|
113
|
-
dependencies?: string[];
|
|
114
|
-
options?: Record<string, any>;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
export interface ServiceNowApp {
|
|
118
|
-
name: string;
|
|
119
|
-
scope: string;
|
|
120
|
-
version: string;
|
|
121
|
-
description?: string;
|
|
122
|
-
tables?: ServiceNowTable[];
|
|
123
|
-
widgets?: ServiceNowWidget[];
|
|
124
|
-
scripts?: ServiceNowScript[];
|
|
125
|
-
workflows?: ServiceNowWorkflow[];
|
|
126
|
-
updateSets?: ServiceNowUpdateSet[];
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
export interface ServiceNowTable {
|
|
130
|
-
name: string;
|
|
131
|
-
label: string;
|
|
132
|
-
extends?: string;
|
|
133
|
-
fields: ServiceNowField[];
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
export interface ServiceNowField {
|
|
137
|
-
name: string;
|
|
138
|
-
label: string;
|
|
139
|
-
type: string;
|
|
140
|
-
reference?: string;
|
|
141
|
-
mandatory?: boolean;
|
|
142
|
-
defaultValue?: any;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
export interface ServiceNowScript {
|
|
146
|
-
name: string;
|
|
147
|
-
type: 'business_rule' | 'script_include' | 'client_script' | 'ui_action';
|
|
148
|
-
script: string;
|
|
149
|
-
active: boolean;
|
|
150
|
-
table?: string;
|
|
151
|
-
when?: string;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
export interface ServiceNowWorkflow {
|
|
155
|
-
name: string;
|
|
156
|
-
description?: string;
|
|
157
|
-
table: string;
|
|
158
|
-
active: boolean;
|
|
159
|
-
activities: WorkflowActivity[];
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
export interface WorkflowActivity {
|
|
163
|
-
name: string;
|
|
164
|
-
type: string;
|
|
165
|
-
config: Record<string, any>;
|
|
166
|
-
transitions: WorkflowTransition[];
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
export interface WorkflowTransition {
|
|
170
|
-
to: string;
|
|
171
|
-
condition?: string;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
export interface ServiceNowUpdateSet {
|
|
175
|
-
name: string;
|
|
176
|
-
description?: string;
|
|
177
|
-
state: 'in_progress' | 'complete' | 'ignore';
|
|
178
|
-
release_date?: Date;
|
|
179
|
-
sys_id?: string;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
// Re-export coordination framework types
|
|
183
|
-
export * from './snow-flow.types';
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
declare module 'neo4j-driver' {
|
|
2
|
-
export interface Driver {
|
|
3
|
-
session(): Session;
|
|
4
|
-
close(): Promise<void>;
|
|
5
|
-
verifyConnectivity(): Promise<void>;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface Session {
|
|
9
|
-
run(query: string, params?: any): Promise<any>;
|
|
10
|
-
close(): Promise<void>;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export const auth: {
|
|
14
|
-
basic(username: string, password: string): any;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export function driver(url: string, auth: any): Driver;
|
|
18
|
-
|
|
19
|
-
export default {
|
|
20
|
-
driver,
|
|
21
|
-
auth
|
|
22
|
-
};
|
|
23
|
-
}
|
|
@@ -1,307 +0,0 @@
|
|
|
1
|
-
export interface ServicePortalWidget {
|
|
2
|
-
sys_id?: string;
|
|
3
|
-
name: string;
|
|
4
|
-
id: string;
|
|
5
|
-
template: string;
|
|
6
|
-
css?: string;
|
|
7
|
-
client_script?: string;
|
|
8
|
-
server_script?: string;
|
|
9
|
-
option_schema?: string;
|
|
10
|
-
public?: boolean;
|
|
11
|
-
roles?: string;
|
|
12
|
-
data?: any;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export interface FlowDesignerFlow {
|
|
16
|
-
sys_id?: string;
|
|
17
|
-
name: string;
|
|
18
|
-
description?: string;
|
|
19
|
-
active: boolean;
|
|
20
|
-
trigger: FlowTrigger;
|
|
21
|
-
actions: FlowAction[];
|
|
22
|
-
created_by?: string;
|
|
23
|
-
updated_on?: string;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export interface FlowTrigger {
|
|
27
|
-
type: 'record' | 'schedule' | 'application';
|
|
28
|
-
table?: string;
|
|
29
|
-
condition?: string;
|
|
30
|
-
schedule?: string;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export interface FlowAction {
|
|
34
|
-
name: string;
|
|
35
|
-
type: string;
|
|
36
|
-
configuration: Record<string, any>;
|
|
37
|
-
order: number;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export interface BusinessRule {
|
|
41
|
-
sys_id?: string;
|
|
42
|
-
name: string;
|
|
43
|
-
table: string;
|
|
44
|
-
when: 'before' | 'after' | 'async' | 'display';
|
|
45
|
-
insert: boolean;
|
|
46
|
-
update: boolean;
|
|
47
|
-
delete: boolean;
|
|
48
|
-
query: boolean;
|
|
49
|
-
active: boolean;
|
|
50
|
-
order: number;
|
|
51
|
-
condition?: string;
|
|
52
|
-
script: string;
|
|
53
|
-
description?: string;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export interface ScriptInclude {
|
|
57
|
-
sys_id?: string;
|
|
58
|
-
name: string;
|
|
59
|
-
api_name: string;
|
|
60
|
-
script: string;
|
|
61
|
-
active: boolean;
|
|
62
|
-
access?: 'package_private' | 'public';
|
|
63
|
-
client_callable?: boolean;
|
|
64
|
-
description?: string;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export interface UIBuilderPage {
|
|
68
|
-
sys_id?: string;
|
|
69
|
-
name: string;
|
|
70
|
-
title: string;
|
|
71
|
-
route: string;
|
|
72
|
-
layout: UIBuilderLayout;
|
|
73
|
-
data_resources: DataResource[];
|
|
74
|
-
client_scripts: ClientStateScript[];
|
|
75
|
-
parameters?: PageParameter[];
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export interface UIBuilderLayout {
|
|
79
|
-
type: 'container' | 'grid' | 'flex';
|
|
80
|
-
components: UIComponent[];
|
|
81
|
-
styles?: Record<string, any>;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export interface UIComponent {
|
|
85
|
-
id: string;
|
|
86
|
-
type: string;
|
|
87
|
-
properties: Record<string, any>;
|
|
88
|
-
children?: UIComponent[];
|
|
89
|
-
events?: ComponentEvent[];
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export interface DataResource {
|
|
93
|
-
name: string;
|
|
94
|
-
type: 'table' | 'script' | 'rest';
|
|
95
|
-
configuration: Record<string, any>;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
export interface ClientStateScript {
|
|
99
|
-
name: string;
|
|
100
|
-
script: string;
|
|
101
|
-
parameters?: string[];
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export interface PageParameter {
|
|
105
|
-
name: string;
|
|
106
|
-
type: string;
|
|
107
|
-
required: boolean;
|
|
108
|
-
default_value?: any;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export interface ComponentEvent {
|
|
112
|
-
name: string;
|
|
113
|
-
action_type: string;
|
|
114
|
-
action_configuration: Record<string, any>;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
export interface ServiceNowApplication {
|
|
118
|
-
sys_id?: string;
|
|
119
|
-
name: string;
|
|
120
|
-
scope: string;
|
|
121
|
-
version: string;
|
|
122
|
-
short_description?: string;
|
|
123
|
-
description?: string;
|
|
124
|
-
vendor?: string;
|
|
125
|
-
vendor_prefix?: string;
|
|
126
|
-
active: boolean;
|
|
127
|
-
tables?: ApplicationTable[];
|
|
128
|
-
modules?: ApplicationModule[];
|
|
129
|
-
roles?: ApplicationRole[];
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
export interface ApplicationTable {
|
|
133
|
-
name: string;
|
|
134
|
-
label: string;
|
|
135
|
-
plural_label: string;
|
|
136
|
-
extends_table?: string;
|
|
137
|
-
fields: TableField[];
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
export interface TableField {
|
|
141
|
-
name: string;
|
|
142
|
-
label: string;
|
|
143
|
-
type: string;
|
|
144
|
-
max_length?: number;
|
|
145
|
-
mandatory?: boolean;
|
|
146
|
-
default_value?: any;
|
|
147
|
-
reference?: string;
|
|
148
|
-
choice_list?: Choice[];
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
export interface Choice {
|
|
152
|
-
value: string;
|
|
153
|
-
label: string;
|
|
154
|
-
order?: number;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
export interface ApplicationModule {
|
|
158
|
-
name: string;
|
|
159
|
-
title: string;
|
|
160
|
-
table: string;
|
|
161
|
-
view?: string;
|
|
162
|
-
order: number;
|
|
163
|
-
active: boolean;
|
|
164
|
-
roles?: string[];
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
export interface ApplicationRole {
|
|
168
|
-
name: string;
|
|
169
|
-
suffix: string;
|
|
170
|
-
description?: string;
|
|
171
|
-
contains_roles?: string[];
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
export interface UpdateSet {
|
|
175
|
-
sys_id?: string;
|
|
176
|
-
name: string;
|
|
177
|
-
description?: string;
|
|
178
|
-
state: 'in_progress' | 'complete' | 'testing';
|
|
179
|
-
application?: string;
|
|
180
|
-
release_date?: string;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
export interface ServiceNowAgentConfig {
|
|
184
|
-
instance: string;
|
|
185
|
-
auth: {
|
|
186
|
-
type: 'basic' | 'oauth2';
|
|
187
|
-
credentials: any;
|
|
188
|
-
};
|
|
189
|
-
updateSet?: string;
|
|
190
|
-
application?: string;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
export type ServiceNowOperation =
|
|
194
|
-
| 'widget.create'
|
|
195
|
-
| 'widget.update'
|
|
196
|
-
| 'widget.delete'
|
|
197
|
-
| 'flow.create'
|
|
198
|
-
| 'flow.update'
|
|
199
|
-
| 'flow.execute'
|
|
200
|
-
| 'script.create'
|
|
201
|
-
| 'script.update'
|
|
202
|
-
| 'ui.create'
|
|
203
|
-
| 'ui.update'
|
|
204
|
-
| 'app.create'
|
|
205
|
-
| 'app.update'
|
|
206
|
-
| 'table.create'
|
|
207
|
-
| 'table.update';
|
|
208
|
-
|
|
209
|
-
export interface ServiceNowAPIResponse<T = any> {
|
|
210
|
-
result: T;
|
|
211
|
-
error?: {
|
|
212
|
-
message: string;
|
|
213
|
-
detail: string;
|
|
214
|
-
};
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
// Core agent types
|
|
218
|
-
export type AgentType = 'widget-builder' | 'workflow-designer' | 'script-generator' | 'ui-builder' | 'app-creator' | 'generic';
|
|
219
|
-
|
|
220
|
-
export interface ServiceNowConfig {
|
|
221
|
-
instance: string;
|
|
222
|
-
username: string;
|
|
223
|
-
password: string;
|
|
224
|
-
clientId?: string;
|
|
225
|
-
clientSecret?: string;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
export interface AgentTask {
|
|
229
|
-
id: string;
|
|
230
|
-
type: string;
|
|
231
|
-
description: string;
|
|
232
|
-
payload: any;
|
|
233
|
-
priority: 'low' | 'medium' | 'high' | 'critical';
|
|
234
|
-
dependencies?: string[];
|
|
235
|
-
assignedAgent?: string;
|
|
236
|
-
status?: 'pending' | 'in_progress' | 'completed' | 'failed';
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
export interface AgentResult {
|
|
240
|
-
success: boolean;
|
|
241
|
-
data?: any;
|
|
242
|
-
error?: string;
|
|
243
|
-
artifacts?: ServiceNowArtifact[];
|
|
244
|
-
commands?: OrchestrationCommand[];
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
export interface ServiceNowAgent {
|
|
248
|
-
id: string;
|
|
249
|
-
name: string;
|
|
250
|
-
type: AgentType;
|
|
251
|
-
capabilities: string[];
|
|
252
|
-
active: boolean;
|
|
253
|
-
currentTask?: AgentTask;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
export interface OrchestrationCommand {
|
|
257
|
-
tool: string;
|
|
258
|
-
parameters: any;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
export interface ServiceNowArtifact {
|
|
262
|
-
type: string;
|
|
263
|
-
name: string;
|
|
264
|
-
content: any;
|
|
265
|
-
path?: string;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
export interface ScopedApplication {
|
|
269
|
-
sys_id?: string;
|
|
270
|
-
name: string;
|
|
271
|
-
scope: string;
|
|
272
|
-
vendor: string;
|
|
273
|
-
vendor_prefix: string;
|
|
274
|
-
version: string;
|
|
275
|
-
description?: string;
|
|
276
|
-
active: boolean;
|
|
277
|
-
private?: boolean;
|
|
278
|
-
tables?: ApplicationTable[];
|
|
279
|
-
menus?: ApplicationMenu[];
|
|
280
|
-
roles?: ApplicationRole[];
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
export interface ApplicationMenu {
|
|
284
|
-
name: string;
|
|
285
|
-
label: string;
|
|
286
|
-
application: string;
|
|
287
|
-
modules: MenuModule[];
|
|
288
|
-
order?: number;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
export interface MenuModule {
|
|
292
|
-
name: string;
|
|
293
|
-
label: string;
|
|
294
|
-
type: 'list' | 'form' | 'page' | 'separator';
|
|
295
|
-
table?: string;
|
|
296
|
-
view?: string;
|
|
297
|
-
order: number;
|
|
298
|
-
roles?: string[];
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
export interface UpdateSet {
|
|
302
|
-
sys_id?: string;
|
|
303
|
-
name: string;
|
|
304
|
-
description?: string;
|
|
305
|
-
state: 'in_progress' | 'complete' | 'testing';
|
|
306
|
-
application?: string;
|
|
307
|
-
}
|
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from 'eventemitter3';
|
|
2
|
-
|
|
3
|
-
export interface SnowAgent {
|
|
4
|
-
id: string;
|
|
5
|
-
name: string;
|
|
6
|
-
type: AgentType;
|
|
7
|
-
status: AgentStatus;
|
|
8
|
-
capabilities: string[];
|
|
9
|
-
metadata: Record<string, any>;
|
|
10
|
-
createdAt: Date;
|
|
11
|
-
lastActivity: Date;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export type AgentType =
|
|
15
|
-
| 'coordinator'
|
|
16
|
-
| 'researcher'
|
|
17
|
-
| 'coder'
|
|
18
|
-
| 'analyst'
|
|
19
|
-
| 'architect'
|
|
20
|
-
| 'tester'
|
|
21
|
-
| 'reviewer'
|
|
22
|
-
| 'optimizer'
|
|
23
|
-
| 'documenter'
|
|
24
|
-
| 'monitor'
|
|
25
|
-
| 'servicenow-specialist'
|
|
26
|
-
| 'workflow-designer'
|
|
27
|
-
| 'ui-builder'
|
|
28
|
-
| 'security-auditor'
|
|
29
|
-
| 'integration-specialist'
|
|
30
|
-
// 🚀 NEW: Specialized agents for parallel execution (v1.1.91)
|
|
31
|
-
| 'widget-creator' // Widget development specialist
|
|
32
|
-
| 'widget-builder' // Widget builder (alias)
|
|
33
|
-
| 'flow-builder' // Flow development specialist
|
|
34
|
-
| 'script-writer' // Script development specialist
|
|
35
|
-
| 'security-agent' // Security _analysis specialist (alias)
|
|
36
|
-
| 'app-architect' // Application architecture specialist
|
|
37
|
-
| 'css-specialist' // Styling and responsive design specialist
|
|
38
|
-
| 'backend-specialist' // Server script specialist
|
|
39
|
-
| 'frontend-specialist' // Client script specialist
|
|
40
|
-
| 'ui-ux-specialist' // User experience specialist
|
|
41
|
-
| 'performance-specialist' // Performance optimization
|
|
42
|
-
| 'accessibility-specialist'// Accessibility compliance
|
|
43
|
-
| 'trigger-specialist' // Flow trigger configuration
|
|
44
|
-
| 'action-specialist' // Flow action development
|
|
45
|
-
| 'approval-specialist' // Approval process specialist
|
|
46
|
-
| 'notification-specialist' // Notification configuration
|
|
47
|
-
| 'error-handler' // Error handling specialist
|
|
48
|
-
| 'security-specialist' // Security implementation
|
|
49
|
-
| 'api-specialist' // API integration specialist
|
|
50
|
-
| 'transform-specialist' // Data transformation specialist
|
|
51
|
-
| 'monitoring-specialist' // Integration monitoring
|
|
52
|
-
| 'documentation-specialist';// Documentation specialist
|
|
53
|
-
|
|
54
|
-
export type AgentStatus = 'idle' | 'busy' | 'error' | 'terminated';
|
|
55
|
-
|
|
56
|
-
export interface Task {
|
|
57
|
-
id: string;
|
|
58
|
-
type: TaskType;
|
|
59
|
-
description: string;
|
|
60
|
-
priority: TaskPriority;
|
|
61
|
-
status: TaskStatus;
|
|
62
|
-
assignedAgent?: string;
|
|
63
|
-
dependencies: string[];
|
|
64
|
-
result?: any;
|
|
65
|
-
error?: Error;
|
|
66
|
-
createdAt: Date;
|
|
67
|
-
startedAt?: Date;
|
|
68
|
-
completedAt?: Date;
|
|
69
|
-
metadata: Record<string, any>;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export type TaskType =
|
|
73
|
-
| 'research'
|
|
74
|
-
| 'development'
|
|
75
|
-
| '_analysis'
|
|
76
|
-
| 'testing'
|
|
77
|
-
| 'optimization'
|
|
78
|
-
| 'documentation'
|
|
79
|
-
| 'servicenow-config'
|
|
80
|
-
| 'servicenow-script'
|
|
81
|
-
| 'servicenow-workflow'
|
|
82
|
-
| 'servicenow-ui';
|
|
83
|
-
|
|
84
|
-
export type TaskPriority = 'low' | 'medium' | 'high' | 'critical';
|
|
85
|
-
export type TaskStatus = 'pending' | 'in_progress' | 'completed' | 'failed' | 'cancelled';
|
|
86
|
-
|
|
87
|
-
export interface SwarmConfig {
|
|
88
|
-
maxAgents: number;
|
|
89
|
-
topology: SwarmTopology;
|
|
90
|
-
strategy: SwarmStrategy;
|
|
91
|
-
enableParallel: boolean;
|
|
92
|
-
enableMonitoring: boolean;
|
|
93
|
-
memoryNamespace: string;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export type SwarmTopology = 'hierarchical' | 'mesh' | 'ring' | 'star';
|
|
97
|
-
export type SwarmStrategy = 'balanced' | 'specialized' | 'adaptive' | 'auto';
|
|
98
|
-
|
|
99
|
-
export interface MemoryEntry {
|
|
100
|
-
key: string;
|
|
101
|
-
value: any;
|
|
102
|
-
namespace: string;
|
|
103
|
-
ttl?: number;
|
|
104
|
-
createdAt: Date;
|
|
105
|
-
updatedAt: Date;
|
|
106
|
-
accessCount: number;
|
|
107
|
-
metadata: Record<string, any>;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
export interface OrchestratorEvents {
|
|
111
|
-
'agent:spawned': (agent: SnowAgent) => void;
|
|
112
|
-
'agent:terminated': (agentId: string) => void;
|
|
113
|
-
'agent:status': (agentId: string, status: AgentStatus) => void;
|
|
114
|
-
'task:created': (task: Task) => void;
|
|
115
|
-
'task:assigned': (taskId: string, agentId: string) => void;
|
|
116
|
-
'task:completed': (taskId: string, result: any) => void;
|
|
117
|
-
'task:failed': (taskId: string, error: Error) => void;
|
|
118
|
-
'swarm:initialized': (config: SwarmConfig) => void;
|
|
119
|
-
'error': (error: Error) => void;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
export interface BaseOrchestratorOptions {
|
|
123
|
-
maxConcurrentTasks?: number;
|
|
124
|
-
taskTimeout?: number;
|
|
125
|
-
memoryNamespace?: string;
|
|
126
|
-
enableLogging?: boolean;
|
|
127
|
-
logLevel?: 'debug' | 'info' | 'warn' | 'error';
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
export interface ServiceNowConfig {
|
|
131
|
-
instance: string;
|
|
132
|
-
username?: string;
|
|
133
|
-
password?: string;
|
|
134
|
-
clientId?: string;
|
|
135
|
-
clientSecret?: string;
|
|
136
|
-
authMethod: 'basic' | 'oauth';
|
|
137
|
-
apiVersion?: string;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
export interface ServiceNowContext {
|
|
141
|
-
config: ServiceNowConfig;
|
|
142
|
-
currentApp?: string;
|
|
143
|
-
updateSet?: string;
|
|
144
|
-
scope?: string;
|
|
145
|
-
tables?: string[];
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
export interface AgentMessage {
|
|
149
|
-
from: string;
|
|
150
|
-
to: string;
|
|
151
|
-
type: MessageType;
|
|
152
|
-
payload: any;
|
|
153
|
-
timestamp: Date;
|
|
154
|
-
correlationId?: string;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
export type MessageType =
|
|
158
|
-
| 'task_assignment'
|
|
159
|
-
| 'task_result'
|
|
160
|
-
| 'coordination'
|
|
161
|
-
| 'knowledge_share'
|
|
162
|
-
| 'status_update'
|
|
163
|
-
| 'error';
|
|
164
|
-
|
|
165
|
-
export interface WorkflowDefinition {
|
|
166
|
-
id: string;
|
|
167
|
-
name: string;
|
|
168
|
-
description: string;
|
|
169
|
-
steps: WorkflowStep[];
|
|
170
|
-
triggers?: WorkflowTrigger[];
|
|
171
|
-
variables?: Record<string, any>;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
export interface WorkflowStep {
|
|
175
|
-
id: string;
|
|
176
|
-
name: string;
|
|
177
|
-
type: string;
|
|
178
|
-
config: Record<string, any>;
|
|
179
|
-
dependencies: string[];
|
|
180
|
-
outputs?: string[];
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
export interface WorkflowTrigger {
|
|
184
|
-
type: 'manual' | 'schedule' | 'event' | 'webhook';
|
|
185
|
-
config: Record<string, any>;
|
|
186
|
-
}
|