Files
marqdo-cli/examples/kernel-mock/README.md
T
cflmy 4ce37afb39 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
2026-11-20 11:50:27 +08:00

597 B

External kernel provider example

mocklang is not built into marqdo-foreign. The descriptor registers it at run time without changing interpreter or host source:

marqdo run examples/kernel-mock/demo.mq.md \
  --kernel examples/kernel-mock/kernel.json \
  --allow-foreign

The mocklang executable receives the source file path as argv[1] and the versioned request envelope on stdin. For foreign.call it must print exactly one typed wire value on stdout. A missing provider or wire version is kernel.unavailable; the Code value itself remains inert until the explicit call.