agent-space-manager 0.0.0-stage → 1.0.0

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/page/icon.svg ADDED
@@ -0,0 +1,9 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round">
2
+ <rect x="2" y="3" width="20" height="7" rx="2"/>
3
+ <rect x="2" y="14" width="20" height="7" rx="2"/>
4
+ <circle cx="6" cy="6.5" r="1" fill="currentColor"/>
5
+ <circle cx="6" cy="17.5" r="1" fill="currentColor"/>
6
+ <path d="M10 6.5h8"/>
7
+ <path d="M10 17.5h8"/>
8
+ <path d="M12 10v4"/>
9
+ </svg>
@@ -0,0 +1,467 @@
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">
6
+ <title>Agent Space Manager</title>
7
+ <link rel="stylesheet" href="style.css">
8
+ <script src="_magpie/bridge.js"></script>
9
+ <script src="plugins-cache.js?v=1.2.6" defer></script>
10
+ <script src="omniroute-status.js?v=1.2.6" defer></script>
11
+ <script src="connect-status.js?v=1.2.6" defer></script>
12
+ <script src="app.js?v=1.2.6" defer></script>
13
+ </head>
14
+ <body>
15
+ <!-- Top Bar matching Magpie's standard layout -->
16
+ <header class="top-bar">
17
+ <div>
18
+ <div class="title-row">
19
+ <h1>Agent Space Manager</h1>
20
+ <span class="plugin-version-badge" id="pluginVersionBadge">V1.0.0</span>
21
+ </div>
22
+ <p class="subtitle" id="main-subtitle">Universal Multi-IDE & Project Skill Orchestrator</p>
23
+ </div>
24
+ <div class="top-actions">
25
+ <!-- OmniRoute AI Gateway Capsule -->
26
+ <div class="omniroute-capsule" id="omnirouteCapsule" title="OmniRoute AI Gateway & Proxy (Default initial password: CHANGEME)">
27
+ <span class="omniroute-label">Omniroute:</span>
28
+ <a href="http://localhost:20128" target="_blank" rel="noopener noreferrer" id="omniroutePortLink" class="omniroute-port" title="Click to copy link to clipboard (Default password: CHANGEME)">20128</a>
29
+ <span id="omnirouteStatusDot" class="status-dot dot-gray" title="OmniRoute health (Green: Active, Red: Stopped) - click to check status"></span>
30
+ </div>
31
+
32
+ <div class="feature-toggle-widget">
33
+ <label class="switch">
34
+ <input type="checkbox" id="smartMiddlewareToggle" checked>
35
+ <span class="slider"></span>
36
+ </label>
37
+ <span class="toggle-label" id="middlewareStatusLabel">Smart Middleware: Active</span>
38
+ </div>
39
+ <span class="sync-indicator" id="syncIndicator">Synced</span>
40
+ </div>
41
+ </header>
42
+
43
+ <!-- Central Hub / Components Storage Path Card -->
44
+ <section class="hub-path-card">
45
+ <div class="hub-path-header">
46
+ <span class="hub-path-title">Components Storage Path (Where all skills, MCPs, and plugins are saved)</span>
47
+ <div style="display:flex; gap:8px; align-items:center;">
48
+ <button type="button" class="btn-sm" id="btnToggleComponentsDetails" style="font-weight:600; font-size:11.5px; cursor:pointer;" title="Expand/Collapse categorized list of all Plugins, MCPs, Hooks, Skills, Agents, and Rules">
49
+ <span id="expandIcon">▼</span> <span id="expandLabel">Expand Components List</span>
50
+ </button>
51
+ <span class="hub-path-badge" id="hubPathBadge">Default Hub</span>
52
+ </div>
53
+ </div>
54
+ <div class="hub-path-input-row">
55
+ <input type="text" id="hubPathInput" class="hub-path-input" placeholder="Leave blank for default Hub (~/AI-Agent-Space)">
56
+ <input type="file" id="hubFolderPicker" webkitdirectory directory style="display:none">
57
+ <button type="button" class="btn-sm" id="btnPickHubFolder" title="Browse for Components Storage Folder">Browse...</button>
58
+ <button type="button" class="btn-sm" id="btnBrowseHubPath" title="Reset storage path to default Hub root">Reset Default</button>
59
+ </div>
60
+ <p class="field-hint" id="hubPathHint">If blank or reset, automatically uses the central Hub root directory.</p>
61
+
62
+ <!-- Startup Modification & Auto-Reconnect Status Banner -->
63
+ <div id="startupReconnectBanner" class="startup-reconnect-banner" style="display:none;">
64
+ <div style="display:flex; align-items:flex-start; gap:8px;">
65
+ <span id="startupReconnectIcon" style="font-size:14px; margin-top:1px;">⚡</span>
66
+ <div>
67
+ <div style="font-weight:600;" id="startupReconnectTitle">Auto-reconnected Connected Agents</div>
68
+ <div style="font-size:11.5px; opacity:0.9; margin-top:2px;" id="startupReconnectMsg"></div>
69
+ </div>
70
+ </div>
71
+ <button type="button" class="btn-sm" id="btnDismissStartupBanner" style="font-size:11px; padding:2px 8px; cursor:pointer;">Dismiss</button>
72
+ </div>
73
+
74
+ <!-- Expandable Comprehensive Registry Viewer -->
75
+ <div id="componentsExpandPanel" class="components-expand-panel" style="display:none; margin-top:14px; border-top:1px solid var(--magpie-line, rgba(128,128,128,0.2)); padding-top:12px;">
76
+ <div style="display:flex; justify-content:space-between; align-items:center; margin-bottom:10px;">
77
+ <span style="font-weight:600; font-size:12.5px;">Discovered Components Registry (<span id="cat-cnt-total">0</span> total)</span>
78
+ <span style="font-size:11px; color:var(--magpie-muted, #71717a);">Filter and inspect all discovered components</span>
79
+ </div>
80
+
81
+ <!-- Category Filter Tabs -->
82
+ <div class="category-tabs" style="display:flex; gap:6px; flex-wrap:wrap; margin-bottom:10px;">
83
+ <button type="button" class="cat-tab active" data-cat="all">All (<span id="cat-cnt-all">0</span>)</button>
84
+ <button type="button" class="cat-tab" data-cat="plugins">Plugins (<span id="cat-cnt-plugins">0</span>)</button>
85
+ <button type="button" class="cat-tab" data-cat="mcps">MCPs (<span id="cat-cnt-mcps">0</span>)</button>
86
+ <button type="button" class="cat-tab" data-cat="hooks">Hooks (<span id="cat-cnt-hooks">0</span>)</button>
87
+ <button type="button" class="cat-tab" data-cat="skills">Skills (<span id="cat-cnt-skills">0</span>)</button>
88
+ <button type="button" class="cat-tab" data-cat="agents">Agents (<span id="cat-cnt-agents">0</span>)</button>
89
+ <button type="button" class="cat-tab" data-cat="rules">Rules (<span id="cat-cnt-rules">0</span>)</button>
90
+ </div>
91
+
92
+ <!-- Search bar inside category expander -->
93
+ <div style="margin-bottom:10px; display:flex; gap:8px;">
94
+ <input type="text" id="catSearchInput" placeholder="Filter components by name, skill, MCP, or file..." style="flex:1; font-size:12px; padding:6px 10px; border-radius:6px; background:var(--magpie-surface, rgba(128,128,128,0.06)); border:1px solid var(--magpie-border, rgba(128,128,128,0.25)); color:inherit;">
95
+ </div>
96
+
97
+ <!-- Categorized Items List View Container -->
98
+ <div id="categoryItemsContainer" class="category-items-container" style="max-height:280px; overflow-y:auto; border:1px solid var(--magpie-border, rgba(128,128,128,0.2)); border-radius:6px; padding:6px 10px; background:var(--magpie-surface, rgba(128,128,128,0.04)); font-size:12px;">
99
+ <!-- Populated dynamically -->
100
+ </div>
101
+ </div>
102
+ </section>
103
+
104
+ <!-- Metrics Tiles -->
105
+ <section class="tiles">
106
+ <!-- Tile 1: 7-line Discovered Components summary -->
107
+ <div class="tile tile-breakdown">
108
+ <div class="k title-heading">Discovered Components</div>
109
+ <div class="sub-lines">
110
+ <div class="sub-line"><span>Plugins:</span> <strong id="cnt-plugins">0</strong></div>
111
+ <div class="sub-line"><span>MCPs:</span> <strong id="cnt-mcps">0</strong></div>
112
+ <div class="sub-line"><span>Hooks:</span> <strong id="cnt-hooks">0</strong></div>
113
+ <div class="sub-line"><span>Skills:</span> <strong id="cnt-skills">0</strong></div>
114
+ <div class="sub-line"><span>Agents:</span> <strong id="cnt-agents">0</strong></div>
115
+ <div class="sub-line"><span>Rules:</span> <strong id="cnt-rules">0</strong></div>
116
+ </div>
117
+ </div>
118
+
119
+ <!-- Tile 2: Connected IDEs & Registered Projects -->
120
+ <div class="tile tile-connected-stats">
121
+ <span class="k">Connected IDEs</span>
122
+ <strong class="stat-val" id="ideCount">0</strong>
123
+ <span class="s">Drag & drop to reorder</span>
124
+ <span class="k" style="margin-top: 6px;">Registered Projects</span>
125
+ <strong class="stat-val" id="projectCount">0</strong>
126
+ <span class="s">Drag & drop to reorder</span>
127
+ </div>
128
+
129
+ <!-- Tile 3: Standardize Components Storage Structure Prompt -->
130
+ <div class="tile tile-storage-structure">
131
+ <div class="k title-heading">Storage & Upstream Rules</div>
132
+ <div class="prompt-desc">
133
+ Ask your AI agent to enforce standard layouts, record upstream links, and install rules for component addendum/edits.
134
+ </div>
135
+ <button type="button" class="btn-copy-prompt" id="btnCopyStoragePrompt" title="Copy prompt for your AI agent to standardize Components Storage file structure, enforce upstream links, clean up plugins, enforce UTF-8 No BOM encoding, respect one-time rearrangement stability, preserve shared cross-agent communication folders, and install rules">Copy Prompt (V1.4)</button>
136
+ </div>
137
+
138
+ <!-- Tile 4: Gateway Tool Optimization (Adjustable Cap with "Default" button) -->
139
+ <div class="tile tile-cap-control">
140
+ <div class="cap-header">
141
+ <span class="k">Gateway Tool Optimization</span>
142
+ <button type="button" class="btn-reset-cap" id="btnResetCap" title="Reset tool cap to default (96)">Default</button>
143
+ </div>
144
+ <div class="cap-row">
145
+ <span class="v" id="gatewayStatus">Active</span>
146
+ <div class="cap-input-wrap">
147
+ <label for="maxToolsInput" class="cap-label">Cap:</label>
148
+ <input type="number" id="maxToolsInput" class="cap-input" min="10" max="256" step="1" value="96">
149
+ </div>
150
+ </div>
151
+ <span class="s" id="capSubtitle">Capping at 96 safe tools for Smart Middleware</span>
152
+ </div>
153
+ </section>
154
+
155
+ <!-- Two Column Main Layout -->
156
+ <div class="grid-two">
157
+ <!-- Left Column: IDEs and Projects -->
158
+ <div class="card">
159
+ <div class="card-head">
160
+ <h2>Connected IDEs & Agents</h2>
161
+ <button type="button" class="btn-sm" id="openAddIdeModalBtn">+ Add IDE</button>
162
+ </div>
163
+ <p class="hint">Drag rows to reorder. 1st IDE serves as the default storage fallback.</p>
164
+
165
+ <div class="target-list" id="ideList">
166
+ <!-- Dynamically rendered (draggable) -->
167
+ </div>
168
+
169
+ <div class="card-head" style="margin-top: 24px;">
170
+ <h2>Project Repositories</h2>
171
+ <button type="button" class="btn-sm" id="openAddProjectModalBtn">+ Add Project</button>
172
+ </div>
173
+ <p class="hint">Drag to reorder. Click "Clone / Fork" to copy info and quickly associate to another IDE.</p>
174
+
175
+ <div class="target-list" id="projectList">
176
+ <!-- Dynamically rendered (draggable) -->
177
+ </div>
178
+ </div>
179
+
180
+ <!-- Right Column: Component Matrix -->
181
+ <div class="card">
182
+ <div class="card-head">
183
+ <h2>Components & Plugins</h2>
184
+ <div style="display:flex; gap:8px;">
185
+ <button type="button" class="btn-sm" id="btnToggleAllFiles" title="Expand or collapse file tree for all plugins">Expand All Files</button>
186
+ <button type="button" class="btn-sm" id="rescanBtn">Rescan Hub</button>
187
+ <button type="button" class="btn-sm btn-primary" id="connectBtn" title="Manually connect and synchronize enabled components to target agent">Connect</button>
188
+ </div>
189
+ </div>
190
+ <p class="hint">Toggle components to configure preferences. Click "Connect" to link and synchronize components with the active target agent.</p>
191
+
192
+ <div class="active-target-bar">
193
+ <span id="activeContextText">Target: <strong>Antigravity (Global)</strong></span>
194
+ <span id="activeContextBadge" style="font-size:11px; color:var(--magpie-muted);">Global Platform</span>
195
+ </div>
196
+
197
+ <div style="overflow-x: auto;">
198
+ <table class="plugin-table">
199
+ <thead>
200
+ <tr>
201
+ <th style="width: 44px;">Active</th>
202
+ <th>Plugin / Component</th>
203
+ <th>Features &amp; Files</th>
204
+ <th style="min-width: 170px;"><span style="display:inline-flex; align-items:center; gap:5px;"><span>Description</span> <span style="font-size:10px; opacity:0.75; font-weight:normal;" title="Status dot indicates if component is workable in the clicked connected agent (🟢 workable / quick action, 🔴 connection failed)">(● Agent Status)</span></span></th>
205
+ </tr>
206
+ </thead>
207
+ <tbody id="pluginTableBody">
208
+ <!-- Dynamically rendered -->
209
+ </tbody>
210
+ </table>
211
+ </div>
212
+ </div>
213
+ </div>
214
+
215
+ <!-- Add IDE Modal with Drop Zone -->
216
+ <div class="modal" id="addIdeModal">
217
+ <div class="modal-content">
218
+ <div class="modal-head">
219
+ <h3>Add Agent IDE / Binary Link</h3>
220
+ <button type="button" class="btn-danger-text" id="closeIdeModal">✕</button>
221
+ </div>
222
+ <div class="modal-body">
223
+ <label>
224
+ Major Agent / IDE Profile
225
+ <select id="agentTypeSelect">
226
+ <optgroup label="Native Plugin Bundle Agent (Reads plugin.json directly)">
227
+ <option value="antigravity">Antigravity (Google)</option>
228
+ </optgroup>
229
+ <optgroup label="Converted to Agent's Native Format (Skills / MCP / Rules / Subagents)">
230
+ <option value="claude-code">Claude Code (Anthropic)</option>
231
+ <option value="codex">Codex CLI (OpenAI)</option>
232
+ <option value="opencode">OpenCode</option>
233
+ <option value="vscode-copilot">VS Code / GitHub Copilot</option>
234
+ <option value="cursor">Cursor AI</option>
235
+ <option value="windsurf">Windsurf (Codeium)</option>
236
+ <option value="gemini-cli">Gemini CLI (Standalone)</option>
237
+ <option value="cline">Cline (VS Code Extension)</option>
238
+ <option value="roo-code">Roo Code</option>
239
+ <option value="kiro">Kiro (AWS)</option>
240
+ <option value="agents-universal">Universal Agent Skills (~/.agents/skills)</option>
241
+ </optgroup>
242
+ <optgroup label="Custom">
243
+ <option value="custom">Custom Agent / Directory</option>
244
+ </optgroup>
245
+ </select>
246
+ </label>
247
+
248
+ <div id="agentCapabilityChips" class="agent-cap-chips" style="display:flex; flex-wrap:wrap; gap:6px; margin-top:-4px; margin-bottom:4px;"></div>
249
+ <div id="agentTargetPaths" class="agent-target-paths" style="font-size:11px; color:var(--magpie-muted); padding:6px 8px; border-radius:6px; background:var(--magpie-surface, rgba(128,128,128,0.06)); margin-bottom:4px;"></div>
250
+
251
+ <label>
252
+ Display Name
253
+ <input type="text" id="ideNameInput" placeholder="Claude Code, Codex CLI, Cursor AI, OpenCode...">
254
+ </label>
255
+
256
+ <label>
257
+ Agent Binary Path (optional)
258
+ <div class="input-with-button">
259
+ <input type="text" id="ideExeInput" placeholder="e.g. C:\Users\username\AppData\Local\Programs\cursor\cursor.exe">
260
+ <input type="file" id="ideExePicker" accept=".exe,.lnk" style="display:none">
261
+ <button type="button" class="btn-browse" id="btnBrowseIdeExe" title="Browse for executable or shortcut">Browse...</button>
262
+ </div>
263
+ </label>
264
+
265
+ <div>
266
+ <div class="label-with-switch">
267
+ <span>Configuration Link Directory (Where plugins should be linked)</span>
268
+ <div class="auto-detect-toggle">
269
+ <label class="switch switch-mini">
270
+ <input type="checkbox" id="autoDetectConfigToggle" checked>
271
+ <span class="slider"></span>
272
+ </label>
273
+ <span class="mini-label" id="autoDetectLabel">Auto-detect: ON</span>
274
+ </div>
275
+ </div>
276
+ <input type="text" id="ideConfigInput" placeholder="C:\Users\username\.cursor\skills" readonly>
277
+ <p class="field-hint" id="configHint">Auto-detects path based on binary/IDE name. Turn off switch to type custom path.</p>
278
+ </div>
279
+
280
+ <!-- Custom Component Path Overrides -->
281
+ <div class="component-paths-box" style="margin-top:12px; padding:10px 12px; border:1px solid var(--magpie-border, rgba(128,128,128,0.25)); border-radius:6px; background:var(--magpie-surface-alt, rgba(128,128,128,0.04));">
282
+ <div style="display:flex; justify-content:space-between; align-items:center;" id="componentPathsHeader">
283
+ <div style="display:flex; align-items:center; gap:6px; cursor:pointer; user-select:none;" id="componentPathsToggleTitle" title="Click to minimize or expand">
284
+ <span id="componentPathsToggleIcon" style="font-size:10px; display:inline-block; transition:transform 0.2s;">▶</span>
285
+ <span style="font-weight:600; font-size:12px;">Component Target Paths (Custom Overrides)</span>
286
+ </div>
287
+ <div style="display:flex; align-items:center; gap:6px;">
288
+ <button type="button" class="btn-sm" id="btnResetComponentPaths" style="font-size:11px; padding:2px 8px; display:none;" title="Reset fields to selected profile defaults">↺ Reset</button>
289
+ <button type="button" class="btn-sm" id="btnToggleComponentPaths" style="font-size:11px; padding:2px 8px;">▶ Expand</button>
290
+ </div>
291
+ </div>
292
+ <div id="componentPathsBody" style="display:none; margin-top:8px;">
293
+ <p class="field-hint" style="margin-bottom:8px; font-size:11px;">You can manually edit the destination path link for each individual component type:</p>
294
+ <div style="display:grid; grid-template-columns: 1fr; gap:6px; font-size:11px;">
295
+ <label style="font-size:11px; margin-bottom:0;">
296
+ Bundle Path (Antigravity Plugins):
297
+ <input type="text" id="cpBundleInput" placeholder="e.g. ~/.gemini/config/plugins" style="font-size:11px; padding:4px 6px;">
298
+ </label>
299
+ <label style="font-size:11px; margin-bottom:0;">
300
+ Skills Directory:
301
+ <input type="text" id="cpSkillsInput" placeholder="e.g. ~/.claude/skills" style="font-size:11px; padding:4px 6px;">
302
+ </label>
303
+ <label style="font-size:11px; margin-bottom:0;">
304
+ Slash Commands Directory (/ quick actions):
305
+ <input type="text" id="cpCommandsInput" placeholder="e.g. ~/.claude/commands" style="font-size:11px; padding:4px 6px;">
306
+ </label>
307
+ <label style="font-size:11px; margin-bottom:0;">
308
+ MCP Configuration File (mcpServers):
309
+ <input type="text" id="cpMcpInput" placeholder="e.g. ~/.claude.json or config.toml" style="font-size:11px; padding:4px 6px;">
310
+ </label>
311
+ <label style="font-size:11px; margin-bottom:0;">
312
+ Rules File or Folder:
313
+ <input type="text" id="cpRulesInput" placeholder="e.g. ~/.claude/CLAUDE.md" style="font-size:11px; padding:4px 6px;">
314
+ </label>
315
+ <label style="font-size:11px; margin-bottom:0;">
316
+ Subagents Directory (@ mentions):
317
+ <input type="text" id="cpAgentsInput" placeholder="e.g. ~/.claude/agents" style="font-size:11px; padding:4px 6px;">
318
+ </label>
319
+ <label style="font-size:11px; margin-bottom:0;">
320
+ Hooks Configuration File:
321
+ <input type="text" id="cpHooksInput" placeholder="e.g. ~/.claude/hooks.json" style="font-size:11px; padding:4px 6px;">
322
+ </label>
323
+ </div>
324
+ </div>
325
+ </div>
326
+ </div>
327
+ <div class="modal-footer">
328
+ <button type="button" class="btn-sm" id="cancelIdeBtn">Cancel</button>
329
+ <button type="button" class="btn-sm btn-primary" id="saveIdeBtn">Add IDE</button>
330
+ </div>
331
+ </div>
332
+ </div>
333
+
334
+ <!-- Add / Clone Project Modal with Drop Zone -->
335
+ <div class="modal" id="addProjectModal">
336
+ <div class="modal-content">
337
+ <div class="modal-head">
338
+ <h3 id="projectModalTitle">Add Project Repository</h3>
339
+ <button type="button" class="btn-danger-text" id="closeProjectModal">✕</button>
340
+ </div>
341
+ <div class="modal-body">
342
+ <label>
343
+ Project Name
344
+ <input type="text" id="projectNameInput" placeholder="My Flutter App">
345
+ </label>
346
+ <label>
347
+ Associated IDE
348
+ <select id="projectIdeSelect">
349
+ <!-- Populated dynamically -->
350
+ </select>
351
+ </label>
352
+ <label>
353
+ Repository Path
354
+ <div class="input-with-button">
355
+ <input type="text" id="projectPathInput" placeholder="e.g. ~/projects/my-app or C:\Projects\MyApp">
356
+ <input type="file" id="projectFolderPicker" webkitdirectory directory style="display:none">
357
+ <button type="button" class="btn-browse" id="btnBrowseProjectPath" title="Browse for project folder">Browse...</button>
358
+ </div>
359
+ </label>
360
+ </div>
361
+ <div class="modal-footer">
362
+ <button type="button" class="btn-sm" id="cancelProjectBtn">Cancel</button>
363
+ <button type="button" class="btn-sm btn-primary" id="saveProjectBtn">Save Project</button>
364
+ </div>
365
+ </div>
366
+ </div>
367
+ <!-- Rescan Hub & Linking Progress Modal -->
368
+ <div class="modal" id="rescanProgressModal">
369
+ <div class="modal-content" style="max-width: 680px;">
370
+ <div class="modal-head">
371
+ <h3>Hub Rescan & Live Linking Connection Status</h3>
372
+ <button type="button" class="btn-danger-text" id="closeRescanModal">✕</button>
373
+ </div>
374
+ <div class="modal-body">
375
+ <div style="margin-bottom:14px;">
376
+ <div style="display:flex; justify-content:space-between; font-size:12px; margin-bottom:5px;">
377
+ <span id="rescanStatusStep" style="font-weight:600;">Scanning Hub Components...</span>
378
+ <span id="rescanStatusPct" style="color:var(--magpie-primary, #60a5fa); font-weight:bold;">0%</span>
379
+ </div>
380
+ <div style="width:100%; height:8px; background:var(--magpie-border, #333); border-radius:4px; overflow:hidden;">
381
+ <div id="rescanProgressBar" style="width:0%; height:100%; background:linear-gradient(90deg, #3b82f6, #10b981); transition:width 0.25s ease;"></div>
382
+ </div>
383
+ </div>
384
+
385
+ <div id="rescanSummaryBanner" style="display:none; padding:8px 12px; border-radius:6px; background:rgba(16,185,129,0.12); border:1px solid rgba(16,185,129,0.3); font-size:12px; margin-bottom:12px; color:var(--magpie-text, #fff);">
386
+ <strong>Rescan & Synchronization Complete!</strong> Verified all linking connections across connected agent IDEs and repositories.
387
+ </div>
388
+
389
+ <div style="font-size:12px; font-weight:600; margin-bottom:8px;">Live Linking Status for Connected IDEs & Repositories:</div>
390
+ <div id="rescanCardsContainer" style="display:flex; flex-direction:column; gap:8px; max-height:340px; overflow-y:auto; padding-right:4px;">
391
+ <!-- Dynamically populated status cards -->
392
+ </div>
393
+ </div>
394
+ <div class="modal-footer">
395
+ <button type="button" class="btn-sm btn-primary" id="btnDoneRescan">Done</button>
396
+ </div>
397
+ </div>
398
+ </div>
399
+
400
+ <!-- Status Checking Progress Modal -->
401
+ <div class="modal" id="statusCheckingModal">
402
+ <div class="modal-content" style="max-width: 560px;">
403
+ <div class="modal-head">
404
+ <div style="display:flex; align-items:center; gap:8px;">
405
+ <span id="statusCheckingSpinner" class="spinner"></span>
406
+ <h3 id="statusCheckingTitle">Checking Component Status...</h3>
407
+ </div>
408
+ <button type="button" class="btn-danger-text" id="closeStatusCheckingModal" title="Close / Run in background">✕</button>
409
+ </div>
410
+ <div class="modal-body">
411
+ <div style="margin-bottom:8px;">
412
+ <div style="display:flex; justify-content:space-between; font-size:12px; margin-bottom:5px;">
413
+ <span id="statusCheckingStep" style="font-weight:600;">Auditing connected agents & enabled plugins...</span>
414
+ <span id="statusCheckingPct" style="color:var(--magpie-primary, #60a5fa); font-weight:bold;">15%</span>
415
+ </div>
416
+ <div style="width:100%; height:8px; background:var(--magpie-border, #333); border-radius:4px; overflow:hidden;">
417
+ <div id="statusCheckingProgressBar" style="width:15%; height:100%; background:linear-gradient(90deg, #3b82f6, #10b981); transition:width 0.25s ease;"></div>
418
+ </div>
419
+ </div>
420
+
421
+ <div id="statusCheckingAgentList" style="display:flex; flex-direction:column; gap:6px; max-height:220px; overflow-y:auto; font-size:12px; padding:4px 0;">
422
+ <!-- Dynamically populated checking status items -->
423
+ </div>
424
+
425
+ <div id="statusCheckingSummary" style="display:none; padding:8px 12px; border-radius:6px; background:rgba(16,185,129,0.12); border:1px solid rgba(16,185,129,0.3); font-size:12px; color:var(--magpie-text, #fff);">
426
+ <strong>Status Check Complete!</strong> Verified all enabled plugin status dots across connected agents.
427
+ </div>
428
+ </div>
429
+ <div class="modal-footer" style="display:flex; justify-content:space-between; align-items:center;">
430
+ <span id="statusCheckingFooterNote" style="font-size:11px; color:var(--magpie-muted);">Checking status dots in background...</span>
431
+ <div style="display:flex; gap:8px;">
432
+ <button type="button" class="btn-sm" id="btnBackgroundStatusCheck">Run in Background</button>
433
+ <button type="button" class="btn-sm btn-primary" id="btnDoneStatusCheck" style="display:none;">Done</button>
434
+ </div>
435
+ </div>
436
+ </div>
437
+ </div>
438
+
439
+ <!-- Foreign Components Detected Modal -->
440
+ <div class="modal" id="foreignComponentsModal" style="display:none;">
441
+ <div class="modal-content" style="max-width: 520px;">
442
+ <div class="modal-head">
443
+ <h3 style="color:#ef4444; display:flex; align-items:center; gap:6px;">
444
+ <span>⚠️</span> Foreign Components Detected
445
+ </h3>
446
+ <button type="button" class="btn-danger-text" id="closeForeignModal">✕</button>
447
+ </div>
448
+ <div class="modal-body">
449
+ <p style="font-size:12.5px; margin-bottom:10px; line-height:1.4;">
450
+ The connected agent <strong id="foreignAgentName"></strong> contains components in its default configuration directory that do not originate from the <strong>Components Storage Path</strong>.
451
+ </p>
452
+ <div style="font-size:11.5px; color:var(--magpie-muted); margin-bottom:6px;">Detected Foreign Components:</div>
453
+ <div id="foreignComponentsList" style="max-height:180px; overflow-y:auto; border:1px solid var(--magpie-border, rgba(128,128,128,0.25)); border-radius:6px; padding:6px 10px; background:var(--magpie-surface, rgba(128,128,128,0.04)); margin-bottom:12px; font-size:12px;">
454
+ <!-- Populated dynamically -->
455
+ </div>
456
+ <p style="font-size:11.5px; color:var(--magpie-muted); margin-bottom:14px;">
457
+ Would you like to delete these unmanaged components from the connected agent, or keep them?
458
+ </p>
459
+ </div>
460
+ <div class="modal-footer" style="display:flex; justify-content:flex-end; gap:8px;">
461
+ <button type="button" class="btn-sm" id="btnCancelForeignModal">Cancel / Keep Existing</button>
462
+ <button type="button" class="btn-sm btn-danger" id="btnDeleteForeignComponents">Delete Foreign Components</button>
463
+ </div>
464
+ </div>
465
+ </div>
466
+ </body>
467
+ </html>