@mo7yw4ng/openape-darwin-x64 2.0.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/bin/openape +0 -0
- package/bin/skills/openape/SKILL.md +115 -0
- package/package.json +15 -0
package/bin/openape
ADDED
|
Binary file
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: openape
|
|
3
|
+
description: "CYCU iLearning (Moodle): Manage courses, videos, quizzes, materials, grades, forums, announcements, and calendar."
|
|
4
|
+
metadata:
|
|
5
|
+
openclaw:
|
|
6
|
+
category: "education"
|
|
7
|
+
requires:
|
|
8
|
+
bins:
|
|
9
|
+
- openape
|
|
10
|
+
cliHelp: "openape --help"
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# openape
|
|
14
|
+
|
|
15
|
+
> **PREREQUISITE:** Install and login first:
|
|
16
|
+
>
|
|
17
|
+
> ```bash
|
|
18
|
+
> npm install -g @mo7yw4ng/openape
|
|
19
|
+
> openape login
|
|
20
|
+
> ```
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
openape <command> [subcommand] [args] [flags]
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Commands
|
|
27
|
+
|
|
28
|
+
### courses — Course operations
|
|
29
|
+
|
|
30
|
+
- `list` — List enrolled courses. Flags: `--level in_progress|past|future|all`
|
|
31
|
+
- `info <course-id>` — Show detailed course information
|
|
32
|
+
- `progress <course-id>` — Show course completion progress
|
|
33
|
+
- `syllabus <course-id>` — Show course syllabus (from CMAP)
|
|
34
|
+
|
|
35
|
+
### videos — Video progress operations
|
|
36
|
+
|
|
37
|
+
- `list <course-id>` — List videos in a course. Flags: `--incomplete-only`
|
|
38
|
+
- `complete <course-id>` — Complete all videos in a course
|
|
39
|
+
- `complete-all` — Complete all incomplete videos across all courses. Flags: `--dry-run`
|
|
40
|
+
- `download <course-id>` — Download videos from a course. Flags: `--output-dir <path>`
|
|
41
|
+
|
|
42
|
+
### quizzes — Quiz operations
|
|
43
|
+
|
|
44
|
+
- `list <course-id>` — List incomplete quizzes in a course. Flags: `--all`
|
|
45
|
+
- `list-all` — List all incomplete quizzes across courses. Flags: `--level in_progress|all`
|
|
46
|
+
- `start <quiz-id>` — Start a new quiz attempt
|
|
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
|
|
49
|
+
|
|
50
|
+
> **NEVER SUBMIT WITHOUT USER'S PERMISSION**, you have to make sure answer is saved before submitting.
|
|
51
|
+
|
|
52
|
+
### materials — Material/resource operations
|
|
53
|
+
|
|
54
|
+
- `list-all` — List all materials across courses. Flags: `--level in_progress|all`
|
|
55
|
+
- `download <course-id>` — Download all materials from a course
|
|
56
|
+
- `download-all` — Download all materials from all courses. Flags: `--output-dir <path>`
|
|
57
|
+
- `complete <course-id>` — Mark all incomplete resources (non-video) as complete
|
|
58
|
+
- `complete-all` — Mark all incomplete resources across all in-progress courses
|
|
59
|
+
|
|
60
|
+
### assignments — Assignment operations
|
|
61
|
+
|
|
62
|
+
- `list <course-id>` — List assignments in a course
|
|
63
|
+
- `list-all` — List all assignments across courses. Flags: `--level in_progress|all`
|
|
64
|
+
- `status <assignment-id>` — Check assignment submission status
|
|
65
|
+
- `submit <assignment-id>` — Submit an assignment. Flags: `--text <content>`, `--file-id <id>`
|
|
66
|
+
|
|
67
|
+
### grades — Grade operations
|
|
68
|
+
|
|
69
|
+
- `summary` — Show grade summary across all courses
|
|
70
|
+
- `course <course-id>` — Show detailed grades for a course
|
|
71
|
+
|
|
72
|
+
### forums — Forum operations
|
|
73
|
+
|
|
74
|
+
- `list` — List forums from in-progress courses
|
|
75
|
+
- `list-all` — List all forums across all courses. Flags: `--level in_progress|all`
|
|
76
|
+
- `discussions <forum-id>` — List discussions in a forum
|
|
77
|
+
- `posts <discussion-id>` — Show posts in a discussion
|
|
78
|
+
- `post <forum-id> <subject> <message>` — Post a new discussion. Flags: `--subscribe`, `--pin`
|
|
79
|
+
- `reply <post-id> <subject> <message>` — Reply to a discussion post. Flags: `--attachment-id <id>`, `--inline-attachment-id <id>`
|
|
80
|
+
- `delete <post-id>` — Delete a forum post or discussion
|
|
81
|
+
|
|
82
|
+
### announcements — Announcement operations
|
|
83
|
+
|
|
84
|
+
- `list-all` — List all announcements across courses. Flags: `--unread-only`
|
|
85
|
+
- `read <announcement-id>` — Read a specific announcement (full content)
|
|
86
|
+
|
|
87
|
+
### calendar — Calendar operations
|
|
88
|
+
|
|
89
|
+
- `events` — List calendar events. Flags: `--course <id>`, `--upcoming`, `--days <n>`
|
|
90
|
+
- `export` — Export calendar events to file. Flags: `--output <path>`, `--days <n>`
|
|
91
|
+
|
|
92
|
+
### upload — File upload
|
|
93
|
+
|
|
94
|
+
- `file <file-path>` — Upload a file to Moodle draft area
|
|
95
|
+
|
|
96
|
+
### skills — Skill management
|
|
97
|
+
|
|
98
|
+
- `install [platform]` — Install OpenApe skill to an agent platform (claude, codex, opencode)
|
|
99
|
+
- `show` — Print the raw SKILL.md content
|
|
100
|
+
|
|
101
|
+
## Output Formats
|
|
102
|
+
|
|
103
|
+
Most data commands support `--output`: `json` (default), `csv`, `table`, `silent`
|
|
104
|
+
|
|
105
|
+
Global flags: `--verbose`, `--headed`, `--session <path>`
|
|
106
|
+
|
|
107
|
+
## Discovering Commands
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
# Browse all commands
|
|
111
|
+
openape --help
|
|
112
|
+
|
|
113
|
+
# Inspect a command's subcommands and options
|
|
114
|
+
openape <command> --help
|
|
115
|
+
```
|
package/package.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mo7yw4ng/openape-darwin-x64",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "openape binary for darwin x64",
|
|
5
|
+
"os": ["darwin"],
|
|
6
|
+
"cpu": ["x64"],
|
|
7
|
+
"files": [
|
|
8
|
+
"bin/"
|
|
9
|
+
],
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/MO7YW4NG/openape"
|
|
13
|
+
},
|
|
14
|
+
"license": "MIT"
|
|
15
|
+
}
|