@mo7yw4ng/openape 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.
Files changed (2) hide show
  1. package/README.md +4 -2
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -31,9 +31,10 @@ npx @mo7yw4ng/openape --help
31
31
  ## 核心指令
32
32
 
33
33
  ### 登入與驗證 (Authentication)
34
- 第一次使用需要登入,會開啟瀏覽器讓你手動完成登入,隨後會快取 Session 供未來使用。
34
+ 第一次使用需先登入,登入成功後會快取 Session,之後可直接執行指令。若 Session 失效,請重新登入。
35
35
  ```bash
36
- openape login # 登入並儲存 session (開啟瀏覽器)
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mo7yw4ng/openape",
3
- "version": "2.0.9",
3
+ "version": "2.1.1",
4
4
  "description": "CLI tool for CYCU i-Learning platform",
5
5
  "bin": {
6
6
  "openape": "bin/openape.js"
@@ -9,12 +9,12 @@
9
9
  "build": "tsc && npx shx mv bin/index.js bin/openape.js"
10
10
  },
11
11
  "optionalDependencies": {
12
- "@mo7yw4ng/openape-linux-x64": "2.0.9",
13
- "@mo7yw4ng/openape-linux-arm64": "2.0.9",
14
- "@mo7yw4ng/openape-darwin-x64": "2.0.9",
15
- "@mo7yw4ng/openape-darwin-arm64": "2.0.9",
16
- "@mo7yw4ng/openape-win32-x64": "2.0.9",
17
- "@mo7yw4ng/openape-win32-arm64": "2.0.9"
12
+ "@mo7yw4ng/openape-linux-x64": "2.1.1",
13
+ "@mo7yw4ng/openape-linux-arm64": "2.1.1",
14
+ "@mo7yw4ng/openape-darwin-x64": "2.1.1",
15
+ "@mo7yw4ng/openape-darwin-arm64": "2.1.1",
16
+ "@mo7yw4ng/openape-win32-x64": "2.1.1",
17
+ "@mo7yw4ng/openape-win32-arm64": "2.1.1"
18
18
  },
19
19
  "devDependencies": {
20
20
  "typescript": "^5.0.0",