Files
nextcraft/apps/web/components/learner/byte-tutor-panel.tsx
T
CIAgent 88a1dab810 docs(milestone): complete v0.2-ai-tutor-architecture
---ci---
phase: 7
milestone: v0.2
status: complete
requirements:
  covered: [REQ-2-001, REQ-2-002, REQ-2-003, REQ-2-004, REQ-2-005, REQ-2-006, REQ-2-007, REQ-2-008, REQ-2-009, REQ-2-010, REQ-2-011, REQ-2-012]
  partial: []
---/ci---

Milestone v0.2 (ai-tutor-architecture) merged to main.

Escalation record (audit remediation, durable): P1 executor
delegation failed twice (empty subagent results, zero files
created); auto-resolved at full autonomy to inline execution with
identical plan fidelity (commit 3271373, reflog-only after phase
branch squash-delete).
2026-09-11 17:34:50 +00:00

33 lines
876 B
TypeScript

'use client';
import { AgentStreamPanel } from './agent-stream-panel';
/**
* Byte viewer Tutor panel — "Explain this byte" streams a Socratic concept
* walkthrough for the current competency (agent fixed to tutor, A-007).
*/
export function ByteTutorPanel({
competencyId,
competencyName,
}: {
competencyId: string;
competencyName: string;
}) {
return (
<AgentStreamPanel
title="Tutor — explain this byte"
endpoint="/v1/chat/stream"
body={{
agent: 'tutor',
session_id: `byte-${competencyId}`,
messages: [
{
role: 'user',
content: `Explain the byte "${competencyName}" — one concept, a worked example, then a question to check my understanding.`,
},
],
}}
emptyHint="Ask the Tutor to walk you through this byte concept step by step."
/>
);
}