Elective (选课网)
pkuinfo/pku-harness-plugins/plugins/elective
Elective (选课网): your enrolment results, open seats in add/drop courses, and course search. Read-only; enrol on the official site.
What the plugin can access
A plugin can only do what it declares here. The app shows you this same list before you install the plugin. If an update needs more access, the app asks you again.
- Campus serviceswith your sign-in
- Course selectionelective.pku.edu.cn
The app sends these requests with your signed-in session. The plugin never sees your password, cookies or tokens.
- Other websites
None
- App features
None
- Tools
- Enrolment stageselective.scheduleEnrolment stages and dates and the site’s noticeRead
- Enrolment resultselective.resultsYour enrolment results this termRead
- Add/drop courseselective.supplementsCourses in add/drop with open seatsRead
- Search add/drop courseselective.searchFind add/drop courses by nameRead
System capabilities
Campus sign-in
Uses your signed-in campus session. Your password never leaves your phone.
Network
Connects to servers on the internet.
Cloud data
Does not use PKU harness Cloud.
Checks
- Maintained by pkuinfo. The source code is in the official plugins repository.
Instructions for the AI
The body text of PLUGIN.md. It is sent to the model together with the plugin.
选课网(elective.pku.edu.cn)只读:elective__results 选课结果(已选上 / 未选上 / 待抽签),elective__supplements 补退选课程列表和余量(按页,含已选课程),elective__search 按课程名 / 教师 / 课程号搜索补退选课程。
- 只能查,不能选课、退课:这两步要验证码且不可撤销。用户想选或退时,告诉他到官网 https://elective.pku.edu.cn 自己操作;可以先帮他查余量、班号,或用 scheduler 建提醒(例如补退选开放时)。
- 选课网只在选课阶段开放;返回"不在选课阶段"之类提示时如实转告。
- 双学位学生每次只能看一个项目:program=major 主修(默认),minor 辅双;结果里的 program 字段说明看到的是哪个。
- 问"这学期课表 / 什么时候上课"不要用这里(用 timetable / course-sync),这里只看一个项目且不含完整时间表。
- remaining = 限数 − 已选;full=true 表示已满(有候补时 waitlist 是候补人数)。
Manifest
The frontmatter of PLUGIN.md, exactly as written. Source: plugins/elective/PLUGIN.md. Field reference
spec: 1
id: elective
name: 选课网
description: 选课网选课结果、补退选课程余量和课程搜索(只读,选课请到官网)。
version: 0.2.0
author: pkuinfo
icon: ballot
homepage: https://github.com/pkuinfo/pku-harness-plugins/tree/main/plugins/elective
requires: [campus-session, network]
# 选课网 elective.pku.edu.cn (pkucli crates/elective/src/api.rs), read-only. Electing and dropping
# need a CAPTCHA and can't be undone, so they stay on the official site. The host's `elective`
# adapter signs in, follows redirects and signs in again when the session is lost; the request
# header `x-elective-program: major | minor` picks 主修 / 辅双 on dual-degree accounts, and every
# response says which program it shows in the same header.
campus: [elective]
shared: shared.yaml
tools:
schedule: tools/schedule.yaml
results: tools/results.yaml
supplements: tools/supplements.yaml
search: tools/search.yaml
i18n:
en:
name: Elective (选课网)
description: 'Elective (选课网): your enrolment results, open seats in add/drop courses, and course search. Read-only; enrol on the official site.'
tools:
schedule: { title: Enrolment stages, summary: Enrolment stages and dates and the site’s notice }
results: { title: Enrolment results, summary: Your enrolment results this term }
supplements: { title: Add/drop courses, summary: Courses in add/drop with open seats, one page at a time }
search: { title: Search add/drop courses, summary: Find add/drop courses by name, teacher or course code }{
"id": "elective",
"name": "选课网",
"description": "选课网选课结果、补退选课程余量和课程搜索(只读,选课请到官网)。",
"author": "pkuinfo",
"kind": "builtin",
"auth": "none",
"icon": "ballot",
"requires": [
"campus-session",
"network"
],
"scopes": [
"elective.pku.edu.cn"
],
"tags": [
"official",
"campus"
],
"version": "0.2.0",
"i18n": {
"en": {
"name": "Elective (选课网)",
"description": "Elective (选课网): your enrolment results, open seats in add/drop courses, and course search. Read-only; enrol on the official site."
}
}
}Other plugins in this repository
pkuinfo/pku-harness-pluginsGenerative UIOfficial
ui
Lets the AI build native UI in the chat: forms, pickers and data cards.
No campus sign-in
DashboardOfficial
dashboard
A dashboard the AI builds for you and you can change any time.
No campus sign-in
Reminders and scheduled tasksOfficial
scheduler
On-time local reminders, plus scheduled checks on your data (like a balance) that notify you when a condition is met.
No campus sign-in
To-dosOfficial
todo
To-dos with due dates, on-time reminders, an important flag and repeats, plus a dashboard widget.
No campus sign-in
TimetableOfficial
timetable
Your class timetable, today’s classes and class reminders.
No campus sign-in
Official timetableOfficial
course-sync
Syncs this semester’s timetable from the university into Schedule.
Uses your campus sign-in forTreehole