moodle-cli 0.9.1 → 0.9.3
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 +18 -3
- package/SKILL.md +3 -2
- package/dist/moodle.js +1197 -251
- package/dist/worker/recovery.js +622 -103
- package/dist/worker/worker.js +622 -103
- package/package.json +2 -2
- package/references/command-reference.md +7 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "moodle-cli",
|
|
3
|
-
"version": "0.9.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.9.3",
|
|
4
|
+
"description": "Moodle for terminals and AI agents: deadlines, grades, files, feedback and quiz reviews from your browser session, plus a private MCP server on Cloudflare",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"bin": {
|
|
@@ -15,6 +15,7 @@ asks for confirmation (`--yes` skips it) and prints the receipt Moodle shows aft
|
|
|
15
15
|
| moodle activities list | List activities in a unit; narrow by section. | <unit> | --pretty<br>--json<br>--yaml<br>--table<br>--fields (value required)<br>--section (value required)<br>--limit (value required)<br>--include-labels |
|
|
16
16
|
| moodle activities show | Show activity details; resource and folder files can be passed to moodle get or download. | <id> | --pretty<br>--json<br>--yaml<br>--table<br>--fields (value required) |
|
|
17
17
|
| moodle alerts | List notifications and message counts. | | --pretty<br>--json<br>--yaml<br>--table<br>--fields (value required)<br>--limit (value required) |
|
|
18
|
+
| moodle attempt | Each question with your response, and mark, correct answer and feedback when the site shows them. | <ref> | --pretty<br>--json<br>--yaml<br>--table<br>--fields (value required) |
|
|
18
19
|
| moodle auth | Session and keepalive utilities. | | |
|
|
19
20
|
| moodle auth keepalive | Renew the Moodle session once; used by the background keepalive agent. | | --no-renew<br>--pretty<br>--json<br>--yaml<br>--table<br>--fields (value required) |
|
|
20
21
|
| moodle auth keepalive install | Install a macOS launch agent that renews the session periodically. | | --interval (value required)<br>--pretty<br>--json<br>--yaml<br>--table<br>--fields (value required) |
|
|
@@ -53,6 +54,11 @@ asks for confirmation (`--yes` skips it) and prints the receipt Moodle shows aft
|
|
|
53
54
|
| moodle news | Latest announcement threads with first-post text. | [unit] | --pretty<br>--json<br>--yaml<br>--table<br>--fields (value required)<br>--limit (value required) |
|
|
54
55
|
| moodle open | Open a unit or activity reference in the browser. | <ref> | --pretty<br>--json<br>--yaml<br>--table<br>--fields (value required) |
|
|
55
56
|
| moodle overview | Show a compact multi-source overview. | | --pretty<br>--json<br>--yaml<br>--table<br>--fields (value required)<br>--todo-limit (value required)<br>--todo-days (value required)<br>--alerts-limit (value required) |
|
|
57
|
+
| moodle quiz | Take a quiz: start an attempt, answer questions, finish it. Beta. | | |
|
|
58
|
+
| moodle quiz answer | Save one answer: option letters for a choice question (b, or a,c), the text otherwise. | <attempt> <quiz> <question> [answer] | --pretty<br>--json<br>--yaml<br>--table<br>--fields (value required)<br>--from (value required) |
|
|
59
|
+
| moodle quiz finish | Submit the attempt for grading. Moodle does not allow undoing this. | <attempt> <quiz> | --pretty<br>--json<br>--yaml<br>--table<br>--fields (value required) |
|
|
60
|
+
| moodle quiz show | Show one page of an attempt in progress: questions, options and saved answers. | <attempt> <quiz> | --pretty<br>--json<br>--yaml<br>--table<br>--fields (value required)<br>--page (value required) |
|
|
61
|
+
| moodle quiz start | Start a new attempt, or continue the one in progress, and show its first page. | <ref> | --pretty<br>--json<br>--yaml<br>--table<br>--fields (value required)<br>--password (value required) |
|
|
56
62
|
| moodle skills | Show skill metadata or delegate to the shared skills CLI. | | |
|
|
57
63
|
| moodle skills add | Install the published skill through npx skills add. | | |
|
|
58
64
|
| moodle skills generate | Regenerate the agent skill bundle from the CLI command tree. | | |
|
|
@@ -64,6 +70,7 @@ asks for confirmation (`--yes` skips it) and prints the receipt Moodle shows aft
|
|
|
64
70
|
| moodle units | Inspect enrolled units. | | |
|
|
65
71
|
| moodle units list | List enrolled units. | | --pretty<br>--json<br>--yaml<br>--table<br>--fields (value required) |
|
|
66
72
|
| moodle units show | Show unit detail with sections. | <unit> | --pretty<br>--json<br>--yaml<br>--table<br>--fields (value required) |
|
|
73
|
+
| moodle update | Update the package and redeploy the managed MCP Worker when either is behind. | | --pretty<br>--json<br>--yaml<br>--table<br>--fields (value required)<br>--check<br>--quiet |
|
|
67
74
|
| moodle user | Show authenticated user info. | | --pretty<br>--json<br>--yaml<br>--table<br>--fields (value required) |
|
|
68
75
|
|
|
69
76
|
### Output Contract
|