- 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
17 lines
597 B
Markdown
17 lines
597 B
Markdown
# External kernel provider example
|
|
|
|
`mocklang` is not built into `marqdo-foreign`. The descriptor registers it at
|
|
run time without changing interpreter or host source:
|
|
|
|
```sh
|
|
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.
|