Spaces:
Running
Running
undefined - Initial Deployment
Browse files- README.md +6 -4
- index.html +577 -19
README.md
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
colorTo: gray
|
6 |
sdk: static
|
7 |
pinned: false
|
|
|
|
|
8 |
---
|
9 |
|
10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: deepseek-site
|
3 |
+
emoji: 🐳
|
4 |
+
colorFrom: purple
|
5 |
colorTo: gray
|
6 |
sdk: static
|
7 |
pinned: false
|
8 |
+
tags:
|
9 |
+
- deepsite
|
10 |
---
|
11 |
|
12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
@@ -1,19 +1,577 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>DeepSeek Agent Management System</title>
|
7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
9 |
+
<style>
|
10 |
+
.virtual-btn {
|
11 |
+
background-color: #f3f4f6;
|
12 |
+
border: 1px solid #e5e7eb;
|
13 |
+
border-radius: 0.375rem;
|
14 |
+
padding: 0.5rem 1rem;
|
15 |
+
cursor: pointer;
|
16 |
+
transition: all 0.2s;
|
17 |
+
display: inline-flex;
|
18 |
+
align-items: center;
|
19 |
+
gap: 0.5rem;
|
20 |
+
}
|
21 |
+
.virtual-btn:hover {
|
22 |
+
background-color: #e5e7eb;
|
23 |
+
border-color: #d1d5db;
|
24 |
+
}
|
25 |
+
.virtual-btn:active {
|
26 |
+
background-color: #d1d5db;
|
27 |
+
}
|
28 |
+
.directory-tree {
|
29 |
+
max-height: 70vh;
|
30 |
+
overflow-y: auto;
|
31 |
+
}
|
32 |
+
.agent-card:hover {
|
33 |
+
transform: translateY(-2px);
|
34 |
+
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
|
35 |
+
}
|
36 |
+
.progress-ring__circle {
|
37 |
+
transition: stroke-dashoffset 0.35s;
|
38 |
+
transform: rotate(-90deg);
|
39 |
+
transform-origin: 50% 50%;
|
40 |
+
}
|
41 |
+
@keyframes pulse {
|
42 |
+
0%, 100% { opacity: 1; }
|
43 |
+
50% { opacity: 0.5; }
|
44 |
+
}
|
45 |
+
.animate-pulse {
|
46 |
+
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
47 |
+
}
|
48 |
+
</style>
|
49 |
+
</head>
|
50 |
+
<body class="bg-gray-50 text-gray-800">
|
51 |
+
<div class="container mx-auto px-4 py-8">
|
52 |
+
<!-- Header -->
|
53 |
+
<header class="mb-8">
|
54 |
+
<div class="flex flex-col md:flex-row justify-between items-start md:items-center gap-4">
|
55 |
+
<div>
|
56 |
+
<h1 class="text-3xl font-bold text-indigo-700">DeepSeek Agent Orchestrator</h1>
|
57 |
+
<p class="text-gray-600">Autonomous agents for directory monitoring and processing</p>
|
58 |
+
</div>
|
59 |
+
<div class="flex items-center gap-4">
|
60 |
+
<div class="relative">
|
61 |
+
<input type="text" placeholder="Search agents..." class="pl-10 pr-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
|
62 |
+
<i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
|
63 |
+
</div>
|
64 |
+
<button class="bg-indigo-600 hover:bg-indigo-700 text-white px-4 py-2 rounded-lg flex items-center gap-2">
|
65 |
+
<i class="fas fa-plus"></i> New Agent
|
66 |
+
</button>
|
67 |
+
</div>
|
68 |
+
</div>
|
69 |
+
</header>
|
70 |
+
|
71 |
+
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
|
72 |
+
<!-- Left Panel - Directory Structure -->
|
73 |
+
<div class="lg:col-span-1 bg-white rounded-xl shadow-md overflow-hidden">
|
74 |
+
<div class="p-4 border-b border-gray-200 bg-indigo-50">
|
75 |
+
<h2 class="text-xl font-semibold text-indigo-700 flex items-center gap-2">
|
76 |
+
<i class="fas fa-folder-tree"></i> Directory Structure
|
77 |
+
</h2>
|
78 |
+
<div class="mt-2 flex items-center gap-2">
|
79 |
+
<span class="text-sm text-gray-500">Root: </span>
|
80 |
+
<span class="font-mono bg-gray-100 px-2 py-1 rounded text-sm">x:\ROOT</span>
|
81 |
+
</div>
|
82 |
+
</div>
|
83 |
+
<div class="p-4 directory-tree">
|
84 |
+
<div class="space-y-1">
|
85 |
+
<div class="directory-item" data-path="x:\ROOT">
|
86 |
+
<div class="flex items-center justify-between py-1 px-2 hover:bg-gray-100 rounded cursor-pointer">
|
87 |
+
<div class="flex items-center gap-2">
|
88 |
+
<i class="fas fa-folder text-yellow-500"></i>
|
89 |
+
<span>ROOT</span>
|
90 |
+
</div>
|
91 |
+
<span class="text-xs bg-indigo-100 text-indigo-800 px-2 py-1 rounded-full">3 agents</span>
|
92 |
+
</div>
|
93 |
+
<div class="ml-4 pl-4 border-l border-gray-200 mt-1 space-y-1">
|
94 |
+
<!-- Subdirectories would be dynamically generated -->
|
95 |
+
<div class="directory-item" data-path="x:\ROOT\Data">
|
96 |
+
<div class="flex items-center justify-between py-1 px-2 hover:bg-gray-100 rounded cursor-pointer">
|
97 |
+
<div class="flex items-center gap-2">
|
98 |
+
<i class="fas fa-folder text-yellow-500"></i>
|
99 |
+
<span>Data</span>
|
100 |
+
</div>
|
101 |
+
<span class="text-xs bg-indigo-100 text-indigo-800 px-2 py-1 rounded-full">1 agent</span>
|
102 |
+
</div>
|
103 |
+
</div>
|
104 |
+
<div class="directory-item" data-path="x:\ROOT\Processing">
|
105 |
+
<div class="flex items-center justify-between py-1 px-2 hover:bg-gray-100 rounded cursor-pointer">
|
106 |
+
<div class="flex items-center gap-2">
|
107 |
+
<i class="fas fa-folder text-yellow-500"></i>
|
108 |
+
<span>Processing</span>
|
109 |
+
</div>
|
110 |
+
</div>
|
111 |
+
</div>
|
112 |
+
<div class="directory-item" data-path="x:\ROOT\Archive">
|
113 |
+
<div class="flex items-center justify-between py-1 px-2 hover:bg-gray-100 rounded cursor-pointer">
|
114 |
+
<div class="flex items-center gap-2">
|
115 |
+
<i class="fas fa-folder text-yellow-500"></i>
|
116 |
+
<span>Archive</span>
|
117 |
+
</div>
|
118 |
+
<span class="text-xs bg-indigo-100 text-indigo-800 px-2 py-1 rounded-full">2 agents</span>
|
119 |
+
</div>
|
120 |
+
<div class="ml-4 pl-4 border-l border-gray-200 mt-1 space-y-1">
|
121 |
+
<div class="directory-item" data-path="x:\ROOT\Archive\2023">
|
122 |
+
<div class="flex items-center justify-between py-1 px-2 hover:bg-gray-100 rounded cursor-pointer">
|
123 |
+
<div class="flex items-center gap-2">
|
124 |
+
<i class="fas fa-folder text-yellow-500"></i>
|
125 |
+
<span>2023</span>
|
126 |
+
</div>
|
127 |
+
</div>
|
128 |
+
</div>
|
129 |
+
<div class="directory-item" data-path="x:\ROOT\Archive\2024">
|
130 |
+
<div class="flex items-center justify-between py-1 px-2 hover:bg-gray-100 rounded cursor-pointer">
|
131 |
+
<div class="flex items-center gap-2">
|
132 |
+
<i class="fas fa-folder text-yellow-500"></i>
|
133 |
+
<span>2024</span>
|
134 |
+
</div>
|
135 |
+
</div>
|
136 |
+
</div>
|
137 |
+
</div>
|
138 |
+
</div>
|
139 |
+
</div>
|
140 |
+
</div>
|
141 |
+
</div>
|
142 |
+
</div>
|
143 |
+
<div class="p-4 border-t border-gray-200 bg-gray-50">
|
144 |
+
<button class="w-full bg-indigo-600 hover:bg-indigo-700 text-white py-2 rounded-lg flex items-center justify-center gap-2">
|
145 |
+
<i class="fas fa-plus"></i> Add Directory
|
146 |
+
</button>
|
147 |
+
</div>
|
148 |
+
</div>
|
149 |
+
|
150 |
+
<!-- Middle Panel - Agent Management -->
|
151 |
+
<div class="lg:col-span-2 space-y-6">
|
152 |
+
<!-- Current Directory Info -->
|
153 |
+
<div class="bg-white rounded-xl shadow-md overflow-hidden">
|
154 |
+
<div class="p-4 border-b border-gray-200 bg-indigo-50">
|
155 |
+
<h2 class="text-xl font-semibold text-indigo-700 flex items-center gap-2">
|
156 |
+
<i class="fas fa-map-marker-alt"></i> Selected Directory
|
157 |
+
</h2>
|
158 |
+
</div>
|
159 |
+
<div class="p-4">
|
160 |
+
<div class="flex flex-col md:flex-row justify-between items-start md:items-center gap-4">
|
161 |
+
<div>
|
162 |
+
<div class="flex items-center gap-2">
|
163 |
+
<i class="fas fa-folder text-yellow-500"></i>
|
164 |
+
<span class="font-mono text-lg">x:\ROOT\Archive</span>
|
165 |
+
</div>
|
166 |
+
<div class="mt-2 flex flex-wrap gap-2">
|
167 |
+
<span class="text-xs bg-gray-100 px-2 py-1 rounded-full flex items-center gap-1">
|
168 |
+
<i class="fas fa-database text-indigo-500"></i> 45.7 GB
|
169 |
+
</span>
|
170 |
+
<span class="text-xs bg-gray-100 px-2 py-1 rounded-full flex items-center gap-1">
|
171 |
+
<i class="fas fa-file text-indigo-500"></i> 1,245 files
|
172 |
+
</span>
|
173 |
+
<span class="text-xs bg-gray-100 px-2 py-1 rounded-full flex items-center gap-1">
|
174 |
+
<i class="fas fa-folder text-indigo-500"></i> 32 subdirs
|
175 |
+
</span>
|
176 |
+
</div>
|
177 |
+
</div>
|
178 |
+
<div class="flex gap-2">
|
179 |
+
<button class="bg-indigo-600 hover:bg-indigo-700 text-white px-4 py-2 rounded-lg flex items-center gap-2">
|
180 |
+
<i class="fas fa-robot"></i> Deploy Agent
|
181 |
+
</button>
|
182 |
+
<button class="bg-white border border-gray-300 hover:bg-gray-50 text-gray-700 px-4 py-2 rounded-lg flex items-center gap-2">
|
183 |
+
<i class="fas fa-cog"></i> Configure
|
184 |
+
</button>
|
185 |
+
</div>
|
186 |
+
</div>
|
187 |
+
</div>
|
188 |
+
</div>
|
189 |
+
|
190 |
+
<!-- Active Agents -->
|
191 |
+
<div class="bg-white rounded-xl shadow-md overflow-hidden">
|
192 |
+
<div class="p-4 border-b border-gray-200 bg-indigo-50">
|
193 |
+
<h2 class="text-xl font-semibold text-indigo-700 flex items-center gap-2">
|
194 |
+
<i class="fas fa-robot"></i> Active Agents (2)
|
195 |
+
</h2>
|
196 |
+
</div>
|
197 |
+
<div class="p-4 grid grid-cols-1 md:grid-cols-2 gap-4">
|
198 |
+
<!-- Agent Card 1 -->
|
199 |
+
<div class="agent-card bg-white border border-gray-200 rounded-lg p-4 transition-all duration-200">
|
200 |
+
<div class="flex justify-between items-start">
|
201 |
+
<div>
|
202 |
+
<h3 class="font-semibold text-lg">Archive Monitor</h3>
|
203 |
+
<p class="text-sm text-gray-500">Monitors archive directory for new files</p>
|
204 |
+
</div>
|
205 |
+
<div class="flex items-center gap-2">
|
206 |
+
<span class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded-full">Active</span>
|
207 |
+
<button class="text-gray-400 hover:text-gray-600">
|
208 |
+
<i class="fas fa-ellipsis-v"></i>
|
209 |
+
</button>
|
210 |
+
</div>
|
211 |
+
</div>
|
212 |
+
<div class="mt-4 flex items-center justify-between">
|
213 |
+
<div class="flex items-center gap-2">
|
214 |
+
<div class="relative w-10 h-10">
|
215 |
+
<svg class="w-full h-full" viewBox="0 0 36 36">
|
216 |
+
<circle cx="18" cy="18" r="16" fill="none" stroke="#e6e6e6" stroke-width="2"></circle>
|
217 |
+
<circle cx="18" cy="18" r="16" fill="none" stroke="#4f46e5" stroke-width="2" stroke-dasharray="100" stroke-dashoffset="25"></circle>
|
218 |
+
</svg>
|
219 |
+
<div class="absolute inset-0 flex items-center justify-center text-xs font-semibold text-indigo-700">75%</div>
|
220 |
+
</div>
|
221 |
+
<div>
|
222 |
+
<div class="text-sm font-medium">Processing</div>
|
223 |
+
<div class="text-xs text-gray-500">12 files in queue</div>
|
224 |
+
</div>
|
225 |
+
</div>
|
226 |
+
<div class="text-right">
|
227 |
+
<div class="text-xs text-gray-500">Last activity</div>
|
228 |
+
<div class="text-sm font-medium">2 min ago</div>
|
229 |
+
</div>
|
230 |
+
</div>
|
231 |
+
<div class="mt-4 pt-4 border-t border-gray-100 flex justify-between">
|
232 |
+
<button class="text-xs bg-red-50 text-red-600 hover:bg-red-100 px-3 py-1 rounded-full flex items-center gap-1">
|
233 |
+
<i class="fas fa-stop"></i> Stop
|
234 |
+
</button>
|
235 |
+
<button class="text-xs bg-blue-50 text-blue-600 hover:bg-blue-100 px-3 py-1 rounded-full flex items-center gap-1">
|
236 |
+
<i class="fas fa-chart-line"></i> Stats
|
237 |
+
</button>
|
238 |
+
<button class="text-xs bg-indigo-50 text-indigo-600 hover:bg-indigo-100 px-3 py-1 rounded-full flex items-center gap-1">
|
239 |
+
<i class="fas fa-cog"></i> Configure
|
240 |
+
</button>
|
241 |
+
</div>
|
242 |
+
</div>
|
243 |
+
|
244 |
+
<!-- Agent Card 2 -->
|
245 |
+
<div class="agent-card bg-white border border-gray-200 rounded-lg p-4 transition-all duration-200">
|
246 |
+
<div class="flex justify-between items-start">
|
247 |
+
<div>
|
248 |
+
<h3 class="font-semibold text-lg">Cleanup Bot</h3>
|
249 |
+
<p class="text-sm text-gray-500">Removes old files based on rules</p>
|
250 |
+
</div>
|
251 |
+
<div class="flex items-center gap-2">
|
252 |
+
<span class="text-xs bg-yellow-100 text-yellow-800 px-2 py-1 rounded-full">Idle</span>
|
253 |
+
<button class="text-gray-400 hover:text-gray-600">
|
254 |
+
<i class="fas fa-ellipsis-v"></i>
|
255 |
+
</button>
|
256 |
+
</div>
|
257 |
+
</div>
|
258 |
+
<div class="mt-4 flex items-center justify-between">
|
259 |
+
<div class="flex items-center gap-2">
|
260 |
+
<div class="relative w-10 h-10">
|
261 |
+
<svg class="w-full h-full" viewBox="0 0 36 36">
|
262 |
+
<circle cx="18" cy="18" r="16" fill="none" stroke="#e6e6e6" stroke-width="2"></circle>
|
263 |
+
<circle cx="18" cy="18" r="16" fill="none" stroke="#4f46e5" stroke-width="2" stroke-dasharray="100" stroke-dashoffset="100"></circle>
|
264 |
+
</svg>
|
265 |
+
<div class="absolute inset-0 flex items-center justify-center text-xs font-semibold text-indigo-700">0%</div>
|
266 |
+
</div>
|
267 |
+
<div>
|
268 |
+
<div class="text-sm font-medium">Waiting</div>
|
269 |
+
<div class="text-xs text-gray-500">Next run in 1h 23m</div>
|
270 |
+
</div>
|
271 |
+
</div>
|
272 |
+
<div class="text-right">
|
273 |
+
<div class="text-xs text-gray-500">Last activity</div>
|
274 |
+
<div class="text-sm font-medium">5h ago</div>
|
275 |
+
</div>
|
276 |
+
</div>
|
277 |
+
<div class="mt-4 pt-4 border-t border-gray-100 flex justify-between">
|
278 |
+
<button class="text-xs bg-green-50 text-green-600 hover:bg-green-100 px-3 py-1 rounded-full flex items-center gap-1">
|
279 |
+
<i class="fas fa-play"></i> Start
|
280 |
+
</button>
|
281 |
+
<button class="text-xs bg-blue-50 text-blue-600 hover:bg-blue-100 px-3 py-1 rounded-full flex items-center gap-1">
|
282 |
+
<i class="fas fa-chart-line"></i> Stats
|
283 |
+
</button>
|
284 |
+
<button class="text-xs bg-indigo-50 text-indigo-600 hover:bg-indigo-100 px-3 py-1 rounded-full flex items-center gap-1">
|
285 |
+
<i class="fas fa-cog"></i> Configure
|
286 |
+
</button>
|
287 |
+
</div>
|
288 |
+
</div>
|
289 |
+
</div>
|
290 |
+
</div>
|
291 |
+
|
292 |
+
<!-- Agent Templates -->
|
293 |
+
<div class="bg-white rounded-xl shadow-md overflow-hidden">
|
294 |
+
<div class="p-4 border-b border-gray-200 bg-indigo-50">
|
295 |
+
<h2 class="text-xl font-semibold text-indigo-700 flex items-center gap-2">
|
296 |
+
<i class="fas fa-magic"></i> Agent Templates
|
297 |
+
</h2>
|
298 |
+
</div>
|
299 |
+
<div class="p-4 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4">
|
300 |
+
<!-- Template 1 -->
|
301 |
+
<div class="border border-gray-200 rounded-lg p-4 hover:border-indigo-300 hover:bg-indigo-50 transition-colors duration-200 cursor-pointer">
|
302 |
+
<div class="flex items-start gap-3">
|
303 |
+
<div class="bg-indigo-100 text-indigo-700 p-2 rounded-lg">
|
304 |
+
<i class="fas fa-eye"></i>
|
305 |
+
</div>
|
306 |
+
<div>
|
307 |
+
<h3 class="font-medium">File Monitor</h3>
|
308 |
+
<p class="text-sm text-gray-500 mt-1">Watches for new/changed files</p>
|
309 |
+
</div>
|
310 |
+
</div>
|
311 |
+
</div>
|
312 |
+
|
313 |
+
<!-- Template 2 -->
|
314 |
+
<div class="border border-gray-200 rounded-lg p-4 hover:border-indigo-300 hover:bg-indigo-50 transition-colors duration-200 cursor-pointer">
|
315 |
+
<div class="flex items-start gap-3">
|
316 |
+
<div class="bg-indigo-100 text-indigo-700 p-2 rounded-lg">
|
317 |
+
<i class="fas fa-archive"></i>
|
318 |
+
</div>
|
319 |
+
<div>
|
320 |
+
<h3 class="font-medium">Auto-Archiver</h3>
|
321 |
+
<p class="text-sm text-gray-500 mt-1">Moves files based on rules</p>
|
322 |
+
</div>
|
323 |
+
</div>
|
324 |
+
</div>
|
325 |
+
|
326 |
+
<!-- Template 3 -->
|
327 |
+
<div class="border border-gray-200 rounded-lg p-4 hover:border-indigo-300 hover:bg-indigo-50 transition-colors duration-200 cursor-pointer">
|
328 |
+
<div class="flex items-start gap-3">
|
329 |
+
<div class="bg-indigo-100 text-indigo-700 p-2 rounded-lg">
|
330 |
+
<i class="fas fa-broom"></i>
|
331 |
+
</div>
|
332 |
+
<div>
|
333 |
+
<h3 class="font-medium">Cleanup Bot</h3>
|
334 |
+
<p class="text-sm text-gray-500 mt-1">Deletes old/unneeded files</p>
|
335 |
+
</div>
|
336 |
+
</div>
|
337 |
+
</div>
|
338 |
+
|
339 |
+
<!-- Template 4 -->
|
340 |
+
<div class="border border-gray-200 rounded-lg p-4 hover:border-indigo-300 hover:bg-indigo-50 transition-colors duration-200 cursor-pointer">
|
341 |
+
<div class="flex items-start gap-3">
|
342 |
+
<div class="bg-indigo-100 text-indigo-700 p-2 rounded-lg">
|
343 |
+
<i class="fas fa-sync-alt"></i>
|
344 |
+
</div>
|
345 |
+
<div>
|
346 |
+
<h3 class="font-medium">Sync Agent</h3>
|
347 |
+
<p class="text-sm text-gray-500 mt-1">Syncs with other directories</p>
|
348 |
+
</div>
|
349 |
+
</div>
|
350 |
+
</div>
|
351 |
+
|
352 |
+
<!-- Template 5 -->
|
353 |
+
<div class="border border-gray-200 rounded-lg p-4 hover:border-indigo-300 hover:bg-indigo-50 transition-colors duration-200 cursor-pointer">
|
354 |
+
<div class="flex items-start gap-3">
|
355 |
+
<div class="bg-indigo-100 text-indigo-700 p-2 rounded-lg">
|
356 |
+
<i class="fas fa-search"></i>
|
357 |
+
</div>
|
358 |
+
<div>
|
359 |
+
<h3 class="font-medium">Content Scanner</h3>
|
360 |
+
<p class="text-sm text-gray-500 mt-1">Analyzes file contents</p>
|
361 |
+
</div>
|
362 |
+
</div>
|
363 |
+
</div>
|
364 |
+
|
365 |
+
<!-- Template 6 -->
|
366 |
+
<div class="border border-gray-200 rounded-lg p-4 hover:border-indigo-300 hover:bg-indigo-50 transition-colors duration-200 cursor-pointer">
|
367 |
+
<div class="flex items-start gap-3">
|
368 |
+
<div class="bg-indigo-100 text-indigo-700 p-2 rounded-lg">
|
369 |
+
<i class="fas fa-plus"></i>
|
370 |
+
</div>
|
371 |
+
<div>
|
372 |
+
<h3 class="font-medium">Custom Agent</h3>
|
373 |
+
<p class="text-sm text-gray-500 mt-1">Create your own agent</p>
|
374 |
+
</div>
|
375 |
+
</div>
|
376 |
+
</div>
|
377 |
+
</div>
|
378 |
+
</div>
|
379 |
+
</div>
|
380 |
+
</div>
|
381 |
+
|
382 |
+
<!-- Virtual Input Control Panel -->
|
383 |
+
<div class="mt-8 bg-white rounded-xl shadow-md overflow-hidden">
|
384 |
+
<div class="p-4 border-b border-gray-200 bg-indigo-50">
|
385 |
+
<h2 class="text-xl font-semibold text-indigo-700 flex items-center gap-2">
|
386 |
+
<i class="fas fa-keyboard"></i> Virtual Input Controls
|
387 |
+
</h2>
|
388 |
+
</div>
|
389 |
+
<div class="p-4 grid grid-cols-1 md:grid-cols-3 gap-4">
|
390 |
+
<div>
|
391 |
+
<h3 class="font-medium mb-2">Mouse Controls</h3>
|
392 |
+
<div class="grid grid-cols-3 gap-2">
|
393 |
+
<button class="virtual-btn" data-action="mouse-move" data-args="0,-10">
|
394 |
+
<i class="fas fa-arrow-up"></i>
|
395 |
+
</button>
|
396 |
+
<button class="virtual-btn" data-action="mouse-move" data-args="-10,0">
|
397 |
+
<i class="fas fa-arrow-left"></i>
|
398 |
+
</button>
|
399 |
+
<button class="virtual-btn" data-action="mouse-click">
|
400 |
+
<i class="fas fa-mouse-pointer"></i>
|
401 |
+
</button>
|
402 |
+
<button class="virtual-btn" data-action="mouse-move" data-args="10,0">
|
403 |
+
<i class="fas fa-arrow-right"></i>
|
404 |
+
</button>
|
405 |
+
<button class="virtual-btn" data-action="mouse-move" data-args="0,10">
|
406 |
+
<i class="fas fa-arrow-down"></i>
|
407 |
+
</button>
|
408 |
+
<button class="virtual-btn" data-action="mouse-right-click">
|
409 |
+
<i class="fas fa-hand-pointer"></i>
|
410 |
+
</button>
|
411 |
+
</div>
|
412 |
+
</div>
|
413 |
+
<div>
|
414 |
+
<h3 class="font-medium mb-2">Keyboard Input</h3>
|
415 |
+
<div class="flex gap-2">
|
416 |
+
<input type="text" id="virtual-keyboard-input" class="flex-1 border rounded px-3 py-2" placeholder="Type text...">
|
417 |
+
<button class="virtual-btn" data-action="keyboard-type">
|
418 |
+
<i class="fas fa-paper-plane"></i> Send
|
419 |
+
</button>
|
420 |
+
</div>
|
421 |
+
</div>
|
422 |
+
<div>
|
423 |
+
<h3 class="font-medium mb-2">System Actions</h3>
|
424 |
+
<div class="flex flex-wrap gap-2">
|
425 |
+
<button class="virtual-btn" data-action="screenshot">
|
426 |
+
<i class="fas fa-camera"></i> Screenshot
|
427 |
+
</button>
|
428 |
+
<button class="virtual-btn" data-action="execute-python">
|
429 |
+
<i class="fab fa-python"></i> Run Python
|
430 |
+
</button>
|
431 |
+
<button class="virtual-btn" data-action="browse-files">
|
432 |
+
<i class="fas fa-folder-open"></i> Browse Files
|
433 |
+
</button>
|
434 |
+
</div>
|
435 |
+
</div>
|
436 |
+
</div>
|
437 |
+
</div>
|
438 |
+
|
439 |
+
<!-- Status Bar -->
|
440 |
+
<div class="mt-4 bg-white rounded-xl shadow-md overflow-hidden">
|
441 |
+
<div class="p-3 bg-gray-800 text-white flex flex-wrap items-center justify-between gap-2">
|
442 |
+
<div class="flex items-center gap-4">
|
443 |
+
<div class="flex items-center gap-2">
|
444 |
+
<div class="w-2 h-2 rounded-full bg-green-500 animate-pulse"></div>
|
445 |
+
<span class="text-sm">System: Operational</span>
|
446 |
+
</div>
|
447 |
+
<div class="hidden md:flex items-center gap-2">
|
448 |
+
<i class="fas fa-microchip text-blue-300"></i>
|
449 |
+
<span class="text-sm">CPU: 24%</span>
|
450 |
+
</div>
|
451 |
+
<div class="hidden md:flex items-center gap-2">
|
452 |
+
<i class="fas fa-memory text-purple-300"></i>
|
453 |
+
<span class="text-sm">RAM: 3.2/16 GB</span>
|
454 |
+
</div>
|
455 |
+
</div>
|
456 |
+
<div class="text-sm">
|
457 |
+
<span class="hidden sm:inline">Agents:</span>
|
458 |
+
<span class="text-green-400">12 active</span>,
|
459 |
+
<span class="text-yellow-400">3 idle</span>,
|
460 |
+
<span class="text-red-400">0 stopped</span>
|
461 |
+
</div>
|
462 |
+
</div>
|
463 |
+
</div>
|
464 |
+
</div>
|
465 |
+
|
466 |
+
<script>
|
467 |
+
// Virtual Input Controller
|
468 |
+
document.querySelectorAll('.virtual-btn').forEach(btn => {
|
469 |
+
btn.addEventListener('click', async function() {
|
470 |
+
const action = this.dataset.action;
|
471 |
+
const args = this.dataset.args ? JSON.parse(this.dataset.args) : null;
|
472 |
+
|
473 |
+
try {
|
474 |
+
let result;
|
475 |
+
switch(action) {
|
476 |
+
case 'mouse-move':
|
477 |
+
result = await virtualMouseMove(...args);
|
478 |
+
break;
|
479 |
+
case 'mouse-click':
|
480 |
+
result = await virtualMouseClick();
|
481 |
+
break;
|
482 |
+
case 'mouse-right-click':
|
483 |
+
result = await virtualMouseClick(true);
|
484 |
+
break;
|
485 |
+
case 'keyboard-type':
|
486 |
+
const text = document.getElementById('virtual-keyboard-input').value;
|
487 |
+
result = await virtualKeyboardType(text);
|
488 |
+
break;
|
489 |
+
case 'screenshot':
|
490 |
+
result = await takeScreenshot();
|
491 |
+
break;
|
492 |
+
case 'execute-python':
|
493 |
+
result = await executePython();
|
494 |
+
break;
|
495 |
+
case 'browse-files':
|
496 |
+
result = await browseFiles();
|
497 |
+
break;
|
498 |
+
}
|
499 |
+
console.log(`${action} result:`, result);
|
500 |
+
} catch (error) {
|
501 |
+
console.error('Virtual input error:', error);
|
502 |
+
}
|
503 |
+
});
|
504 |
+
});
|
505 |
+
|
506 |
+
// Virtual input functions
|
507 |
+
async function virtualMouseMove(x, y) {
|
508 |
+
// In a real implementation, this would use PyAutoGUI or similar
|
509 |
+
console.log(`Moving mouse by ${x},${y}`);
|
510 |
+
return {success: true, x, y};
|
511 |
+
}
|
512 |
+
|
513 |
+
async function virtualMouseClick(rightClick = false) {
|
514 |
+
console.log(`Performing ${rightClick ? 'right' : 'left'} click`);
|
515 |
+
return {success: true, clickType: rightClick ? 'right' : 'left'};
|
516 |
+
}
|
517 |
+
|
518 |
+
async function virtualKeyboardType(text) {
|
519 |
+
console.log(`Typing: ${text}`);
|
520 |
+
return {success: true, text};
|
521 |
+
}
|
522 |
+
|
523 |
+
async function takeScreenshot() {
|
524 |
+
// In Electron app this would use desktopCapturer
|
525 |
+
// In browser extension this would use chrome.tabs.captureVisibleTab
|
526 |
+
console.log('Taking screenshot');
|
527 |
+
return {success: true, image: 'screenshot-data'};
|
528 |
+
}
|
529 |
+
|
530 |
+
async function executePython() {
|
531 |
+
// Would connect to backend Python service
|
532 |
+
console.log('Executing Python script');
|
533 |
+
return {success: true, output: 'Python execution result'};
|
534 |
+
}
|
535 |
+
|
536 |
+
async function browseFiles() {
|
537 |
+
// Would use file input or Electron dialog
|
538 |
+
console.log('Opening file browser');
|
539 |
+
return {success: true, files: []};
|
540 |
+
}
|
541 |
+
|
542 |
+
// Simple directory tree interaction
|
543 |
+
document.querySelectorAll('.directory-item').forEach(item => {
|
544 |
+
item.addEventListener('click', function() {
|
545 |
+
// Remove active class from all items
|
546 |
+
document.querySelectorAll('.directory-item').forEach(i => {
|
547 |
+
i.querySelector('div').classList.remove('bg-indigo-100', 'text-indigo-800');
|
548 |
+
});
|
549 |
+
|
550 |
+
// Add active class to clicked item
|
551 |
+
this.querySelector('div').classList.add('bg-indigo-100', 'text-indigo-800');
|
552 |
+
|
553 |
+
// In a real app, you would load the directory content here
|
554 |
+
console.log('Selected directory:', this.dataset.path);
|
555 |
+
});
|
556 |
+
});
|
557 |
+
|
558 |
+
// Agent card hover effects
|
559 |
+
document.querySelectorAll('.agent-card').forEach(card => {
|
560 |
+
card.addEventListener('mouseenter', function() {
|
561 |
+
this.classList.add('shadow-lg');
|
562 |
+
});
|
563 |
+
card.addEventListener('mouseleave', function() {
|
564 |
+
this.classList.remove('shadow-lg');
|
565 |
+
});
|
566 |
+
});
|
567 |
+
|
568 |
+
// Template selection
|
569 |
+
document.querySelectorAll('[class*="border-gray-200"]').forEach(template => {
|
570 |
+
template.addEventListener('click', function() {
|
571 |
+
// In a real app, this would open a configuration modal
|
572 |
+
console.log('Selected template:', this.querySelector('h3').textContent);
|
573 |
+
});
|
574 |
+
});
|
575 |
+
</script>
|
576 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=MaxHeadspace/deepseek-site" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
577 |
+
</html>
|