@mo7yw4ng/openape-linux-arm64 2.0.9 → 2.1.1
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/README.md +4 -2
- package/bin/mod.ts +1 -1
- package/bin/openape +0 -0
- package/bin/skills/openape/SKILL.md +6 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -31,9 +31,10 @@ npx @mo7yw4ng/openape --help
|
|
|
31
31
|
## 核心指令
|
|
32
32
|
|
|
33
33
|
### 登入與驗證 (Authentication)
|
|
34
|
-
|
|
34
|
+
第一次使用需先登入,登入成功後會快取 Session,之後可直接執行指令。若 Session 失效,請重新登入。
|
|
35
35
|
```bash
|
|
36
|
-
openape login #
|
|
36
|
+
openape login # 手動登入
|
|
37
|
+
openape login --id <student-id> --password <password> # 登入並儲存帳密 (自動重登)
|
|
37
38
|
openape status # 檢查當前登入狀態
|
|
38
39
|
openape logout # 登出並清除 session
|
|
39
40
|
```
|
|
@@ -62,6 +63,7 @@ openape quizzes start <quiz-id> # 開始測驗
|
|
|
62
63
|
openape quizzes info <attempt-id> # 查看測驗題目
|
|
63
64
|
openape quizzes save <attempt-id> '<answers>' # 儲存測驗答案
|
|
64
65
|
openape quizzes submit <attempt-id> # 送出目前已儲存的測驗答案
|
|
66
|
+
openape materials list <course-id> # 列出指定課程教材
|
|
65
67
|
openape materials list-all # 列出所有可下載教材
|
|
66
68
|
openape materials download <id> # 下載指定教材 (支援 --output-dir)
|
|
67
69
|
openape materials download-all # 批次下載教材 (支援 --output-dir, --level)
|
package/bin/mod.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version: string = "2.
|
|
1
|
+
export const version: string = "2.1.1";
|
package/bin/openape
CHANGED
|
Binary file
|
|
@@ -16,7 +16,12 @@ metadata:
|
|
|
16
16
|
>
|
|
17
17
|
> ```bash
|
|
18
18
|
> npm install -g @mo7yw4ng/openape
|
|
19
|
+
>
|
|
20
|
+
> # Manually Login
|
|
19
21
|
> openape login
|
|
22
|
+
>
|
|
23
|
+
> # Or use flags (not recommended for security reasons)
|
|
24
|
+
> openape login --id <student-id> --password <password>
|
|
20
25
|
> ```
|
|
21
26
|
|
|
22
27
|
```bash
|
|
@@ -58,6 +63,7 @@ openape <command> [subcommand] [args] [flags]
|
|
|
58
63
|
|
|
59
64
|
### materials — Material/resource operations
|
|
60
65
|
|
|
66
|
+
- `list <course-id>` — List materials in a course
|
|
61
67
|
- `list-all` — List all materials across courses. Flags: `--level in_progress|all`
|
|
62
68
|
- `download <course-id>` — Download all materials from a course
|
|
63
69
|
- `download-all` — Download all materials from all courses. Flags: `--output-dir <path>`
|