feat: private checklists for zjazd preparation
Per-user checklists with items that may link a course, reading, deadline, material or own presentation deck. An item with a reading shares the reading's read mark. Student API routes with token twins, MCP tools, migrations, tests and README.
This commit is contained in:
21
mcp_test.go
21
mcp_test.go
@@ -51,10 +51,16 @@ func (h mountHost) Owner(method, path string) (string, bool) {
|
||||
|
||||
// pinnedTools is the sorted tool list of golem15.user plus jz.bm.
|
||||
var pinnedTools = []string{
|
||||
"bm_add_checklist_item",
|
||||
"bm_checklist",
|
||||
"bm_checklists",
|
||||
"bm_course",
|
||||
"bm_courses",
|
||||
"bm_create_checklist",
|
||||
"bm_dashboard",
|
||||
"bm_deadlines",
|
||||
"bm_delete_checklist",
|
||||
"bm_delete_checklist_item",
|
||||
"bm_manage_attach_material_file",
|
||||
"bm_manage_create_class_session",
|
||||
"bm_manage_create_course",
|
||||
@@ -86,6 +92,7 @@ var pinnedTools = []string{
|
||||
"bm_manage_update_material",
|
||||
"bm_manage_update_meeting",
|
||||
"bm_manage_update_reading",
|
||||
"bm_mark_checklist_item_done",
|
||||
"bm_mark_reading_owned",
|
||||
"bm_mark_reading_read",
|
||||
"bm_material",
|
||||
@@ -93,8 +100,11 @@ var pinnedTools = []string{
|
||||
"bm_meetings",
|
||||
"bm_readings",
|
||||
"bm_schedule",
|
||||
"bm_unmark_checklist_item_done",
|
||||
"bm_unmark_reading_owned",
|
||||
"bm_unmark_reading_read",
|
||||
"bm_update_checklist",
|
||||
"bm_update_checklist_item",
|
||||
"user_me",
|
||||
}
|
||||
|
||||
@@ -113,6 +123,7 @@ var queryKeys = map[string][]string{
|
||||
"schedule": {"from", "to"},
|
||||
"deadlines": {"from", "to"},
|
||||
"readings": {"course"},
|
||||
"checklists": {"meeting"},
|
||||
"materials": {"course", "meeting", "tag", "type", "page", "per_page"},
|
||||
"material": {"include_body"},
|
||||
}
|
||||
@@ -449,6 +460,16 @@ var studentRoutes = []string{
|
||||
"DELETE /readings/{id}/owned",
|
||||
"GET /materials",
|
||||
"GET /materials/{id}",
|
||||
"GET /checklists",
|
||||
"POST /checklists",
|
||||
"GET /checklists/{id}",
|
||||
"PATCH /checklists/{id}",
|
||||
"DELETE /checklists/{id}",
|
||||
"POST /checklists/{id}/items",
|
||||
"PATCH /checklist-items/{id}",
|
||||
"DELETE /checklist-items/{id}",
|
||||
"PUT /checklist-items/{id}/done",
|
||||
"DELETE /checklist-items/{id}/done",
|
||||
}
|
||||
|
||||
// TestTokenMirrorRoutes is the invariant of the two student surfaces: every
|
||||
|
||||
Reference in New Issue
Block a user