@mo7yw4ng/openape-darwin-x64 2.0.7 → 2.0.8

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 CHANGED
@@ -61,6 +61,7 @@ openape quizzes list-all # 列出所有課程測驗
61
61
  openape quizzes start <quiz-id> # 開始測驗
62
62
  openape quizzes info <attempt-id> # 查看測驗題目
63
63
  openape quizzes save <attempt-id> '<answers>' # 儲存測驗答案
64
+ openape quizzes submit <attempt-id> # 送出目前已儲存的測驗答案
64
65
  openape materials list-all # 列出所有可下載教材
65
66
  openape materials download <id> # 下載指定教材 (支援 --output-dir)
66
67
  openape materials download-all # 批次下載教材 (支援 --output-dir, --level)
@@ -123,7 +124,7 @@ npx skills add mo7yw4ng/openape
123
124
  ```bash
124
125
  git clone https://github.com/mo7yw4ng/openape && cd openape
125
126
 
126
- # 建置 (需安裝 Playwright 瀏覽器支援: Edge/Chrome/Brave)
127
+ # 建置
127
128
  cargo build
128
129
 
129
130
  # 執行
package/bin/mod.ts CHANGED
@@ -1 +1 @@
1
- export const version: string = "2.0.7";
1
+ export const version: string = "2.0.8";
package/bin/openape CHANGED
Binary file
@@ -45,9 +45,16 @@ openape <command> [subcommand] [args] [flags]
45
45
  - `list-all` — List all incomplete quizzes across courses. Flags: `--level in_progress|all`
46
46
  - `start <quiz-id>` — Start a new quiz attempt
47
47
  - `info <attempt-id>` — Get quiz attempt data and questions. Flags: `--page <number>`
48
- - `save <attempt-id> '<answers-json>'` — Save answers for a quiz attempt. Flags: `--submit`. JSON format: `[{"slot":1,"answer":"0"}]`. Multichoice: number, multichoices: `"0,2"`, shortanswer: text
48
+ - `save <attempt-id> '<answers-json>'` — Save answers for a quiz attempt. JSON format: `[{"slot":1,"answer":"0"}]`. Multichoice: number, multichoices: `"0,2"`, shortanswer: text
49
+ - `submit <attempt-id>` — Submit a quiz attempt using currently saved answers
49
50
 
50
51
  > **NEVER SUBMIT WITHOUT USER'S PERMISSION**, you have to make sure answer is saved before submitting.
52
+ >
53
+ > **Suggested flow:**
54
+ > 1. `start <quiz-id>` — Read all questions and present them to the user
55
+ > 2. `save <attempt-id> '<answers>'` — Save answers
56
+ > 3. `info <attempt-id>` — Verify answers are saved (`savedAnswer` field, `status: 答案已儲存`)
57
+ > 4. Ask the user for permission, then `submit <attempt-id>`
51
58
 
52
59
  ### materials — Material/resource operations
53
60
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mo7yw4ng/openape-darwin-x64",
3
- "version": "2.0.7",
3
+ "version": "2.0.8",
4
4
  "description": "openape binary for darwin x64",
5
5
  "os": ["darwin"],
6
6
  "cpu": ["x64"],