@ai-uni/mcp-server 0.1.4 → 0.1.5
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/dist/index.js +17 -11
- package/package.json +1 -1
- package/prompts/session-panel.html +16 -10
package/dist/index.js
CHANGED
|
@@ -140,13 +140,11 @@ const SESSION_PANEL_HTML = `<!DOCTYPE html>
|
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
.brand {
|
|
143
|
-
font-family: 'IBM Plex
|
|
144
|
-
font-size:
|
|
143
|
+
font-family: 'IBM Plex Sans', sans-serif;
|
|
144
|
+
font-size: 14px;
|
|
145
145
|
font-weight: 600;
|
|
146
|
-
color: var(--
|
|
147
|
-
letter-spacing: 0.04em;
|
|
146
|
+
color: var(--text);
|
|
148
147
|
}
|
|
149
|
-
.brand em { color: var(--green); font-style: normal; }
|
|
150
148
|
|
|
151
149
|
.session-badge {
|
|
152
150
|
font-family: 'IBM Plex Mono', monospace;
|
|
@@ -158,6 +156,12 @@ const SESSION_PANEL_HTML = `<!DOCTYPE html>
|
|
|
158
156
|
padding: 3px 8px;
|
|
159
157
|
}
|
|
160
158
|
|
|
159
|
+
.hint {
|
|
160
|
+
font-size: 11px;
|
|
161
|
+
color: var(--dim);
|
|
162
|
+
margin-bottom: 10px;
|
|
163
|
+
}
|
|
164
|
+
|
|
161
165
|
.status {
|
|
162
166
|
background: var(--surface);
|
|
163
167
|
border: 1px solid var(--border);
|
|
@@ -468,10 +472,12 @@ const SESSION_PANEL_HTML = `<!DOCTYPE html>
|
|
|
468
472
|
<body>
|
|
469
473
|
|
|
470
474
|
<div class="hd">
|
|
471
|
-
<div class="brand">
|
|
475
|
+
<div class="brand">AI Uni</div>
|
|
472
476
|
<div class="session-badge">{{COURSE_CODE}} · S{{SEQ_NUM}} of {{TOTAL}}</div>
|
|
473
477
|
</div>
|
|
474
478
|
|
|
479
|
+
<div class="hint">Copy a command below and paste it into chat.</div>
|
|
480
|
+
|
|
475
481
|
<div class="status">
|
|
476
482
|
<div>
|
|
477
483
|
<div class="stu-name">{{STUDENT_NAME}}</div>
|
|
@@ -493,12 +499,12 @@ const SESSION_PANEL_HTML = `<!DOCTYPE html>
|
|
|
493
499
|
|
|
494
500
|
<div class="cmd hi">
|
|
495
501
|
<div class="cmd-row">
|
|
496
|
-
<div class="cmd-inner"><div class="cmd-label">
|
|
502
|
+
<div class="cmd-inner"><div class="cmd-label">Start session</div></div>
|
|
497
503
|
<button class="info-btn" onclick="tog(this)">?</button>
|
|
498
|
-
<button class="copy-btn" onclick="cp(this,\`
|
|
504
|
+
<button class="copy-btn" onclick="cp(this,\`Start my session\`)">Copy</button>
|
|
499
505
|
</div>
|
|
500
506
|
<div class="cmd-tip">
|
|
501
|
-
<div class="tip-text">
|
|
507
|
+
<div class="tip-text">Begins the guided session from where you left off. Use this if you just opened a new conversation.</div>
|
|
502
508
|
<div class="tip-tools"><span class="tip-tool">get_student_context</span><span class="tip-tool">get_current_assignment</span></div>
|
|
503
509
|
</div>
|
|
504
510
|
</div>
|
|
@@ -634,7 +640,7 @@ const SESSION_PANEL_HTML = `<!DOCTYPE html>
|
|
|
634
640
|
|
|
635
641
|
<div class="foot">
|
|
636
642
|
<div class="webapp-wrap" id="webappWrap">
|
|
637
|
-
<a class="webapp-btn" href="https://app.
|
|
643
|
+
<a class="webapp-btn" href="https://app.aiuni.tech" target="_blank" onclick="togWebapp(event)">
|
|
638
644
|
Open web app
|
|
639
645
|
</a>
|
|
640
646
|
<div class="webapp-tip">Check session status, confirm completions, and view your portfolio. If a session isn't marked done here, record it from the app — you don't need Claude for that.</div>
|
|
@@ -818,7 +824,7 @@ server.tool("get_session_panel", "Returns an HTML session control panel populate
|
|
|
818
824
|
.replace(/\{\{TOTAL\}\}/g, String(next.total_sessions))
|
|
819
825
|
.replace(/\{\{COMPLETED\}\}/g, String(completed))
|
|
820
826
|
.replace(/\{\{PROGRESS_PCT\}\}/g, String(pct));
|
|
821
|
-
return textResult('RENDER THE FOLLOWING HTML AS AN ARTIFACT (title: "AI Uni — Session Panel", type: HTML). Do not modify the HTML. Display it exactly as-is
|
|
827
|
+
return textResult('RENDER THE FOLLOWING HTML AS AN ARTIFACT (title: "AI Uni — Session Panel", type: HTML). Do not modify the HTML. Display it exactly as-is.\n\nNote: the panel shows your progress at conversation start. To see updated progress after completing a session, start a new conversation.\n\n' + html);
|
|
822
828
|
}
|
|
823
829
|
catch (err) {
|
|
824
830
|
return errorResult(err.message);
|
package/package.json
CHANGED
|
@@ -44,13 +44,11 @@
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
.brand {
|
|
47
|
-
font-family: 'IBM Plex
|
|
48
|
-
font-size:
|
|
47
|
+
font-family: 'IBM Plex Sans', sans-serif;
|
|
48
|
+
font-size: 14px;
|
|
49
49
|
font-weight: 600;
|
|
50
|
-
color: var(--
|
|
51
|
-
letter-spacing: 0.04em;
|
|
50
|
+
color: var(--text);
|
|
52
51
|
}
|
|
53
|
-
.brand em { color: var(--green); font-style: normal; }
|
|
54
52
|
|
|
55
53
|
.session-badge {
|
|
56
54
|
font-family: 'IBM Plex Mono', monospace;
|
|
@@ -62,6 +60,12 @@
|
|
|
62
60
|
padding: 3px 8px;
|
|
63
61
|
}
|
|
64
62
|
|
|
63
|
+
.hint {
|
|
64
|
+
font-size: 11px;
|
|
65
|
+
color: var(--dim);
|
|
66
|
+
margin-bottom: 10px;
|
|
67
|
+
}
|
|
68
|
+
|
|
65
69
|
.status {
|
|
66
70
|
background: var(--surface);
|
|
67
71
|
border: 1px solid var(--border);
|
|
@@ -373,10 +377,12 @@
|
|
|
373
377
|
<body>
|
|
374
378
|
|
|
375
379
|
<div class="hd">
|
|
376
|
-
<div class="brand">
|
|
380
|
+
<div class="brand">AI Uni</div>
|
|
377
381
|
<div class="session-badge">CORE-01 · S1 of 10</div>
|
|
378
382
|
</div>
|
|
379
383
|
|
|
384
|
+
<div class="hint">Copy a command below and paste it into chat.</div>
|
|
385
|
+
|
|
380
386
|
<div class="status">
|
|
381
387
|
<div>
|
|
382
388
|
<div class="stu-name">Jon</div>
|
|
@@ -398,12 +404,12 @@
|
|
|
398
404
|
|
|
399
405
|
<div class="cmd hi">
|
|
400
406
|
<div class="cmd-row">
|
|
401
|
-
<div class="cmd-inner"><div class="cmd-label">
|
|
407
|
+
<div class="cmd-inner"><div class="cmd-label">Start session</div></div>
|
|
402
408
|
<button class="info-btn" onclick="tog(this)">?</button>
|
|
403
|
-
<button class="copy-btn" onclick="cp(this,`
|
|
409
|
+
<button class="copy-btn" onclick="cp(this,`Start my session`)">Copy</button>
|
|
404
410
|
</div>
|
|
405
411
|
<div class="cmd-tip">
|
|
406
|
-
<div class="tip-text">
|
|
412
|
+
<div class="tip-text">Begins the guided session from where you left off. Use this if you just opened a new conversation.</div>
|
|
407
413
|
<div class="tip-tools"><span class="tip-tool">get_student_context</span><span class="tip-tool">get_current_assignment</span></div>
|
|
408
414
|
</div>
|
|
409
415
|
</div>
|
|
@@ -539,7 +545,7 @@
|
|
|
539
545
|
|
|
540
546
|
<div class="foot">
|
|
541
547
|
<div class="webapp-wrap" id="webappWrap">
|
|
542
|
-
<a class="webapp-btn" href="https://app.
|
|
548
|
+
<a class="webapp-btn" href="https://app.aiuni.tech" target="_blank" onclick="togWebapp(event)">
|
|
543
549
|
Open web app
|
|
544
550
|
</a>
|
|
545
551
|
<div class="webapp-tip">Check session status, confirm completions, and view your portfolio. If a session isn't marked done here, record it from the app — you don't need Claude for that.</div>
|