gabriel / musehub public
elicitation_callback.html html
62 lines 2.7 KB
Raw
sha256:3c58668648c7323bb9f5c6881cfe6a3f14fc93fcb73b537d253732952a5bf8bf chore: bump version to 0.2.0rc12 Sonnet 4.6 patch 9 days ago
1 {% extends "musehub/base.html" %}
2
3 {% block title %}
4 {% if status == "accepted" %}Connection Authorised{% else %}Connection Declined{% endif %}
5 — MuseHub MCP
6 {% endblock %}
7 {% block breadcrumb %}<a href="/musehub">MuseHub</a> / <span>Agent Connection</span>{% endblock %}
8
9 {% if status == "accepted" %}{% block page_json %}{"page": "elicitation-callback"}{% endblock %}{% endif %}
10
11 {% block content %}
12 <div style="max-width:480px;margin:4rem auto;text-align:center">
13
14 <div style="background:var(--color-surface,#fff);border:1px solid var(--color-border,#e5e7eb);border-radius:16px;padding:2.5rem;box-shadow:0 4px 24px rgba(0,0,0,0.07)">
15
16 {% if status == "accepted" %}
17 <div style="font-size:4rem;margin-bottom:1rem">✅</div>
18 <h1 style="font-size:1.5rem;font-weight:700;color:var(--color-success,#16a34a);margin:0 0 0.75rem">
19 Connection Authorised
20 </h1>
21 <p style="color:var(--color-muted,#6b7280);margin:0 0 1.5rem;font-size:0.95rem">
22 The agent has been notified. You can close this tab — the workflow will
23 continue automatically in your agent client.
24 </p>
25 {% else %}
26 <div style="font-size:4rem;margin-bottom:1rem">❌</div>
27 <h1 style="font-size:1.5rem;font-weight:700;color:var(--color-danger,#e11d48);margin:0 0 0.75rem">
28 Connection Declined
29 </h1>
30 <p style="color:var(--color-muted,#6b7280);margin:0 0 1.5rem;font-size:0.95rem">
31 The agent has been notified that you declined. The tool call will
32 return gracefully without connecting the service.
33 </p>
34 {% endif %}
35
36 {# ── Elicitation ID trace ──────────────────────────────────────────── #}
37 <p style="font-size:0.75rem;color:var(--color-muted,#9ca3af);font-family:monospace;word-break:break-all;margin:0 0 2rem">
38 Elicitation: {{ elicitation_id }}
39 </p>
40
41 {# ── Auto-close countdown ──────────────────────────────────────────── #}
42 {% if status == "accepted" %}
43 <p style="font-size:0.82rem;color:var(--color-muted,#9ca3af);margin:0 0 1rem">
44 This tab will close automatically in <span id="countdown">5</span>s.
45 </p>
46 {% endif %}
47
48 <div style="display:flex;gap:0.75rem;justify-content:center">
49 <a href="/musehub" class="btn btn-primary" style="padding:0.65rem 1.5rem">
50 ← Back to MuseHub
51 </a>
52 {% if status == "accepted" %}
53 <button onclick="window.close()" class="btn" style="padding:0.65rem 1.5rem;color:var(--color-muted,#6b7280)">
54 Close tab
55 </button>
56 {% endif %}
57 </div>
58
59 </div>
60
61 </div>
62 {% endblock %}
File History 1 commit
sha256:3c58668648c7323bb9f5c6881cfe6a3f14fc93fcb73b537d253732952a5bf8bf chore: bump version to 0.2.0rc12 Sonnet 4.6 patch 9 days ago