@mo7yw4ng/openape-darwin-arm64 2.0.8 → 2.1.0

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
@@ -62,6 +62,7 @@ openape quizzes start <quiz-id> # 開始測驗
62
62
  openape quizzes info <attempt-id> # 查看測驗題目
63
63
  openape quizzes save <attempt-id> '<answers>' # 儲存測驗答案
64
64
  openape quizzes submit <attempt-id> # 送出目前已儲存的測驗答案
65
+ openape materials list <course-id> # 列出指定課程教材
65
66
  openape materials list-all # 列出所有可下載教材
66
67
  openape materials download <id> # 下載指定教材 (支援 --output-dir)
67
68
  openape materials download-all # 批次下載教材 (支援 --output-dir, --level)
package/bin/mod.ts CHANGED
@@ -1 +1 @@
1
- export const version: string = "2.0.8";
1
+ export const version: string = "2.1.0";
package/bin/openape CHANGED
Binary file
@@ -58,6 +58,7 @@ openape <command> [subcommand] [args] [flags]
58
58
 
59
59
  ### materials — Material/resource operations
60
60
 
61
+ - `list <course-id>` — List materials in a course
61
62
  - `list-all` — List all materials across courses. Flags: `--level in_progress|all`
62
63
  - `download <course-id>` — Download all materials from a course
63
64
  - `download-all` — Download all materials from all courses. Flags: `--output-dir <path>`
@@ -100,6 +101,10 @@ openape <command> [subcommand] [args] [flags]
100
101
 
101
102
  - `file <file-path>` — Upload a file to Moodle draft area
102
103
 
104
+ > **Suggested flow:**
105
+ >
106
+ > If an assignment (`assignments submit`) or forum post (`forums post`/`forums reply`) requires a file attachment, first upload the file to the draft area using `upload file <file-path>` to obtain an attachment/file ID. Then pass the ID via `--file-id` (assignments) or `--attachment-id`/`--inline-attachment-id` (forums) when executing the command.
107
+
103
108
  ### pages — Page operations
104
109
 
105
110
  - `list <course-id>` — List pages in a course (content preview, first 150 chars)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mo7yw4ng/openape-darwin-arm64",
3
- "version": "2.0.8",
3
+ "version": "2.1.0",
4
4
  "description": "openape binary for darwin arm64",
5
5
  "os": ["darwin"],
6
6
  "cpu": ["arm64"],