Initial curated Unraid-AppOps-Gateway source from 3bd6f6fee310125bfbb4d4650389a817f498724d
This commit is contained in:
commit
1dfbca08a1
528 files changed
+131054
No files matched your search
@@ -0,0 +1,71 @@
|
||||
import { ActionID, RiskLevel, PolicyDecision, Status, SourceType, ActionPlan, RagCitation } from './appops';
|
||||
|
||||
export type AIAutonomyLevel = 0 | 1 | 2 | 3 | 4 | 5;
|
||||
|
||||
export interface AIRecommendation {
|
||||
id: string;
|
||||
title: string;
|
||||
severity: RiskLevel;
|
||||
confidence: number;
|
||||
evidence: string;
|
||||
affectedApps: string[];
|
||||
suggestedAction: string;
|
||||
actionPlan?: ActionPlan;
|
||||
status: 'open' | 'applied' | 'snoozed' | 'dismissed';
|
||||
}
|
||||
|
||||
export interface AIChatMessage {
|
||||
id: string;
|
||||
role: 'user' | 'assistant';
|
||||
content: string;
|
||||
timestamp: string;
|
||||
metadata?: {
|
||||
evidence?: string;
|
||||
risk?: RiskLevel;
|
||||
suggestedActions?: string[];
|
||||
policyResult?: PolicyDecision;
|
||||
nextStep?: string;
|
||||
citations?: RagCitation[];
|
||||
confidence?: string;
|
||||
};
|
||||
}
|
||||
|
||||
export interface AIAutopilotRule {
|
||||
id: string;
|
||||
name: string;
|
||||
trigger: string;
|
||||
condition: string;
|
||||
allowedActions: string[];
|
||||
blockedActions: string[];
|
||||
approvalRequired: boolean;
|
||||
cooldown: string;
|
||||
enabled: boolean;
|
||||
}
|
||||
|
||||
export interface AIMemoryItem {
|
||||
id: string;
|
||||
key: string;
|
||||
value: string;
|
||||
category: 'app_note' | 'known_issue' | 'preference' | 'policy_hint';
|
||||
pinned: boolean;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
export interface AITool {
|
||||
id: string;
|
||||
name: string;
|
||||
description: string;
|
||||
type: 'read' | 'mutate';
|
||||
permissionLevel: AIAutonomyLevel;
|
||||
requiresApproval: boolean;
|
||||
rateLimit: string;
|
||||
}
|
||||
|
||||
export interface AISummary {
|
||||
dailySummary: string;
|
||||
currentRisks: number;
|
||||
recommendedActions: number;
|
||||
storageForecast: string;
|
||||
securityScore: number;
|
||||
autopilotStatus: 'active' | 'paused' | 'off';
|
||||
}
|
||||
+2711
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user