moodle-cli 0.7.0-alpha.0 → 0.7.0-alpha.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 +1 -1
- package/dist/moodle.js +10 -2
- package/dist/worker/worker.js +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -174,7 +174,7 @@ moodle mcp bridge
|
|
|
174
174
|
|
|
175
175
|
The default client connection uses `moodle mcp bridge`, which keeps the Bearer token out of client configuration. Use `moodle mcp connect CLIENT --mode remote` for clients that support authenticated remote MCP headers.
|
|
176
176
|
|
|
177
|
-
Alpha version `0.7.0-alpha.
|
|
177
|
+
Alpha version `0.7.0-alpha.1` supports MCP `2026-07-28` and a stateless compatibility lane for `2025-11-25` clients.
|
|
178
178
|
|
|
179
179
|
### Configuration
|
|
180
180
|
|
package/dist/moodle.js
CHANGED
|
@@ -3700,7 +3700,7 @@ function escapeXml(value) {
|
|
|
3700
3700
|
}
|
|
3701
3701
|
|
|
3702
3702
|
// src/version.ts
|
|
3703
|
-
var VERSION = "0.7.0-alpha.
|
|
3703
|
+
var VERSION = "0.7.0-alpha.1";
|
|
3704
3704
|
|
|
3705
3705
|
// src/forum.ts
|
|
3706
3706
|
function parseDiscussionReference(value) {
|
|
@@ -8095,7 +8095,15 @@ function queryMatches2(text, query) {
|
|
|
8095
8095
|
const needle = query.toLowerCase().split(/\s+/).join(" ");
|
|
8096
8096
|
return needle ? haystack.includes(needle) || needle.split(" ").every((token) => haystack.includes(token)) : true;
|
|
8097
8097
|
}
|
|
8098
|
-
|
|
8098
|
+
function pathsReferToSameFile(moduleUrl, executable) {
|
|
8099
|
+
if (!executable) return false;
|
|
8100
|
+
try {
|
|
8101
|
+
return realpathSync2(fileURLToPath2(moduleUrl)) === realpathSync2(executable);
|
|
8102
|
+
} catch {
|
|
8103
|
+
return false;
|
|
8104
|
+
}
|
|
8105
|
+
}
|
|
8106
|
+
var isMain = import.meta.main === true || pathsReferToSameFile(import.meta.url, process.argv[1]);
|
|
8099
8107
|
if (isMain) {
|
|
8100
8108
|
runCli().then((code) => {
|
|
8101
8109
|
process.exitCode = code;
|
package/dist/worker/worker.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "moodle-cli",
|
|
3
|
-
"version": "0.7.0-alpha.
|
|
3
|
+
"version": "0.7.0-alpha.1",
|
|
4
4
|
"description": "Terminal-first CLI for Moodle LMS",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"scripts": {
|
|
20
20
|
"build": "tsc --noEmit && tsup && npm run build:worker && rm -f dist/.gitignore",
|
|
21
21
|
"build:worker": "tsup --config tsup.worker.config.ts && node scripts/check-worker-bundle.mjs",
|
|
22
|
+
"bin:smoke": "bun scripts/smoke-standalone.mjs",
|
|
22
23
|
"check": "tsc --noEmit",
|
|
23
24
|
"pack:check": "npm pack --dry-run --json | node -e \"let data = ''; process.stdin.on('data', chunk => data += chunk); process.stdin.on('end', () => { const files = JSON.parse(data)[0]?.files?.map(file => file.path) ?? []; for (const required of ['dist/moodle.js', 'dist/worker/worker.js', 'README.md', 'ONBOARDING.md', 'SKILL.md', 'references/command-reference.md', 'references/downloads.md', 'agents/openai.yaml']) if (!files.includes(required)) throw new Error('npm package is missing ' + required); });\"",
|
|
24
25
|
"pack:smoke": "tmp=\"$(mktemp -d)\" && npm pack --pack-destination \"$tmp\" >/dev/null && npm install --prefix \"$tmp/install\" \"$tmp\"/moodle-cli-*.tgz >/dev/null && test \"$(\"$tmp/install/node_modules/.bin/moodle\" --version)\" = \"$(node -p \"JSON.parse(require('node:fs').readFileSync('package.json', 'utf8')).version\")\" && \"$tmp/install/node_modules/.bin/moodle\" download --help >/dev/null && \"$tmp/install/node_modules/.bin/moodle\" mcp --help >/dev/null",
|