snow-flow
Version:
Snow-Flow v3.2.0: Complete ServiceNow Enterprise Suite with 180+ MCP Tools. ATF Testing, Knowledge Management, Service Catalog, Change Management with CAB scheduling, Virtual Agent chatbots with NLU, Performance Analytics KPIs, Flow Designer automation, A
65 lines • 2.14 kB
TypeScript
/**
* ServiceNow Queen Agent Types
* Simple, elegant type definitions for the hive-mind
*/
export interface ServiceNowTask {
id: string;
objective: string;
type: 'widget' | 'portal_page' | 'flow' | 'script' | 'application' | 'integration' | 'unknown';
artifacts: string[];
status: 'analyzing' | 'planning' | 'executing' | 'completed' | 'failed';
result?: any;
error?: string;
}
export interface Agent {
id: string;
type: AgentType;
status: 'idle' | 'working' | 'completed' | 'failed' | 'active';
task?: string;
capabilities: string[];
mcpTools: string[];
objectiveId?: string;
specialization?: string;
startTime?: number;
}
export type AgentType = 'widget-creator' | 'flow-builder' | 'script-writer' | 'app-architect' | 'integration-specialist' | 'catalog-manager' | 'researcher' | 'tester' | 'ui-ux-specialist' | 'approval-specialist' | 'security-specialist' | 'css-specialist' | 'backend-specialist' | 'frontend-specialist' | 'performance-specialist' | 'page-designer';
export interface DeploymentPattern {
taskType: string;
successRate: number;
agentSequence: AgentType[];
mcpSequence: string[];
avgDuration: number;
lastUsed: Date;
decision?: string;
outcome?: string;
useCount?: number;
}
export interface QueenMemory {
patterns: DeploymentPattern[];
artifacts: Map<string, any>;
agentHistory: Map<string, Agent[]>;
learnings: Map<string, string>;
}
export interface TaskAnalysis {
type: ServiceNowTask['type'];
requiredAgents: AgentType[];
estimatedComplexity: number;
complexity?: string;
suggestedPattern?: DeploymentPattern;
dependencies: string[];
}
export interface AgentMessage {
from: string;
to: string;
type: 'task' | 'result' | 'error' | 'query' | 'coordination' | 'task_assignment';
content: any;
timestamp: Date;
}
export interface ServiceNowArtifact {
type: 'widget' | 'portal_page' | 'flow' | 'script' | 'table' | 'catalog_item';
name: string;
sys_id?: string;
config: any;
dependencies: string[];
}
//# sourceMappingURL=types.d.ts.map