moodle-cli 0.8.0 → 0.9.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.
- package/README.md +32 -3
- package/SKILL.md +4 -3
- package/agents/openai.yaml +1 -1
- package/dist/moodle.js +2305 -844
- package/dist/worker/recovery.js +802 -385
- package/dist/worker/worker.js +802 -385
- package/package.json +2 -2
- package/references/command-reference.md +7 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "moodle-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"description": "Terminal-first CLI for Moodle LMS",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"measure:mcp": "node scripts/measure-mcp.mjs"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@bunizao/cli-kit": "^0.
|
|
37
|
+
"@bunizao/cli-kit": "^0.5.0",
|
|
38
38
|
"@steipete/sweet-cookie": "^0.4.0",
|
|
39
39
|
"commander": "^13.1.0",
|
|
40
40
|
"node-html-parser": "^7.0.1",
|
|
@@ -5,6 +5,9 @@ Generated from the live command tree. UNIT is a code/name, id or URL from `moodl
|
|
|
5
5
|
Resources and folders return `files` with names and URLs. Pass a selected file URL to
|
|
6
6
|
`moodle get URL --to DIR`. Validate the receipt: path, byte count and content type.
|
|
7
7
|
`moodle download SOURCE --dest PATH --force` retains the exact-path replacement flow.
|
|
8
|
+
`moodle submit "UNIT TASK" FILE... --dry-run` shows the upload plan; without `--dry-run` it
|
|
9
|
+
asks for confirmation (`--yes` skips it) and prints the receipt Moodle shows afterwards.
|
|
10
|
+
`--final` also submits for grading, which Moodle does not let anyone undo.
|
|
8
11
|
|
|
9
12
|
| Command | Description | Arguments | Flags |
|
|
10
13
|
| --- | --- | --- | --- |
|
|
@@ -17,7 +20,7 @@ Resources and folders return `files` with names and URLs. Pass a selected file U
|
|
|
17
20
|
| 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) |
|
|
18
21
|
| moodle auth keepalive status | Show whether the keepalive launch agent is installed. | | --pretty<br>--json<br>--yaml<br>--table<br>--fields (value required) |
|
|
19
22
|
| moodle auth keepalive uninstall | Remove the keepalive launch agent. | | --pretty<br>--json<br>--yaml<br>--table<br>--fields (value required) |
|
|
20
|
-
| moodle auth login |
|
|
23
|
+
| moodle auth login | Sign in through a browser the CLI controls, then capture the session. | | --paste<br>--pretty<br>--json<br>--yaml<br>--table<br>--fields (value required) |
|
|
21
24
|
| moodle auth status | Show cached session freshness and keepalive state. | | --pretty<br>--json<br>--yaml<br>--table<br>--fields (value required) |
|
|
22
25
|
| moodle commands | Describe the complete command tree. | | --pretty<br>--json<br>--yaml<br>--table<br>--fields (value required) |
|
|
23
26
|
| moodle completion | Print shell completion for zsh, bash or fish. | <shell> | |
|
|
@@ -53,6 +56,7 @@ Resources and folders return `files` with names and URLs. Pass a selected file U
|
|
|
53
56
|
| moodle skills | Show skill metadata or delegate to the shared skills CLI. | | |
|
|
54
57
|
| moodle skills add | Install the published skill through npx skills add. | | |
|
|
55
58
|
| moodle skills generate | Regenerate the agent skill bundle from the CLI command tree. | | |
|
|
59
|
+
| moodle submit | Upload local files into an assignment; returns the receipt Moodle shows afterwards. | <ref> [files...] | --pretty<br>--json<br>--yaml<br>--table<br>--fields (value required)<br>--final<br>--replace<br>--accept-statement |
|
|
56
60
|
| moodle threads | Inspect forum discussion threads. | | |
|
|
57
61
|
| moodle threads show | Show posts in a forum discussion. | <discussion> | --pretty<br>--json<br>--yaml<br>--table<br>--fields (value required)<br>--limit (value required)<br>--offset (value required)<br>--post (value required)<br>--body |
|
|
58
62
|
| moodle todo | List upcoming actionable timeline items. | | --pretty<br>--json<br>--yaml<br>--table<br>--fields (value required)<br>--limit (value required)<br>--days (value required) |
|
|
@@ -84,7 +88,8 @@ Exit codes:
|
|
|
84
88
|
| 5 | Moodle rejected a well-formed request |
|
|
85
89
|
|
|
86
90
|
MCP 0.8 discovers home, due, units, unit, find, item, grades, news, thread,
|
|
87
|
-
search_forums and file
|
|
91
|
+
search_forums and file; a local server also lists submit, the only tool that writes.
|
|
92
|
+
Legacy names remain callable for one minor version and return
|
|
88
93
|
compact v2 envelopes. They are deprecated and omitted from default discovery.
|
|
89
94
|
Unit results contain a section index; supply section for activity details.
|
|
90
95
|
List activity URLs follow `{siteurl}/mod/{type}/view.php?id={id}`; use item for the actual URL.
|