feat(m0.6-r6): release examples, public schemas and cross-platform CI

- add runnable examples for an unknown-name Tool, multi-export plugin,
  external kernel provider and same-name multi-version packages
- add JSON Schemas for Analysis v1, Trace v1 and Tool v1 and validate them in CI
- extend CI with protocol/consumer smoke tests and a Windows/macOS cargo check
- add --kernel provider descriptors and R6 example integration tests
- document the examples and update M0.6 status
This commit is contained in:
cflmy committed 2026-11-20 11:50:27 +08:00
1 parent 54c7b43d15
commit 4ce37afb39
31 files changed
+537 -5

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
# Unknown-name CLI tool example
This directory is a complete Tool Protocol v1 package. Nothing named
`benchmark` exists in the Marqdo CLI source; after installation the unknown
top-level command is dispatched by the registry.
```sh
marqdo tool install examples/tool-unknown-name/tool.json
marqdo tool list
marqdo benchmark run . --some-tool-option
marqdo tool remove benchmark
```
The executable receives the remaining arguments verbatim, inherits stdio/cwd,
and its exit code is propagated. `MARQDO_TOOL_PROTOCOL=1` and `MARQDO_BIN` are
provided for tools that need `check --emit`/`run --trace-file`.
A Tool is a user-run native process. It is **not** a C ABI plugin, a foreign
kernel, or a program inside the `.mq.md` sandbox.
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
# A deliberately tool-specific program: the Marqdo CLI knows no `benchmark`
# command or its options.
printf 'benchmark tool: protocol=%s\n' "${MARQDO_TOOL_PROTOCOL:-unset}"
for argument in "$@"; do
printf 'arg=%s\n' "$argument"
done
exit 0
+11
View File
@@ -0,0 +1,11 @@
{
"schema": "marqdo.cli-tool",
"schema_version": 1,
"name": "demo.benchmark",
"version": "0.1.0",
"command": "benchmark",
"entrypoint": "bin/marqdo-benchmark",
"compatibility": {
"marqdo": ">=0.1,<1"
}
}