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 @@
# Multi-version package example
Two directories declare the same package name `geometry` at versions `1.0.0`
and `2.0.0`. They receive different package-instance ids and different
`ModuleId`s; importing both aliases is not an implicit override.
```sh
marqdo run examples/packages-multi-version/index.mq.md
marqdo lock
```
`marqdo lock` must be run from the example directory because it discovers the
project from the current working directory:
```sh
(cd examples/packages-multi-version && ../../target/debug/marqdo lock)
```
The lock records both content-addressed instances; no version silently wins.
@@ -0,0 +1,15 @@
---
import:
geometry_v1: "@geometry_v1"
geometry_v2: "@geometry_v2"
---
## main
**一 = geometry_v1.area()**
**二 = geometry_v2.area()**
> 打印(一)
> 打印(二)
@@ -0,0 +1,8 @@
project:
name: multi-version
version: 0.1.0
dependencies:
geometry_v1:
path: ./packages/geometry-v1
geometry_v2:
path: ./packages/geometry-v2
@@ -0,0 +1,3 @@
## area
*1*
@@ -0,0 +1,3 @@
project:
name: geometry
version: 1.0.0
@@ -0,0 +1,3 @@
## area
*2*
@@ -0,0 +1,3 @@
project:
name: geometry
version: 2.0.0