// SPDX-License-Identifier: MIT
// LEGACY COMPATIBILITY SURFACE.
// Prefer dedicated host capability worlds for new integrations.
package greentic:host@1.0.0;
/// Minimal HTTP client surface runner hosts expose to components.
interface http-v1 {
request: func(
method: string,
url: string,
headers: list<string>,
body: option<list<u8>>
) -> result<list<u8>, string>;
}
/// Host-provided key-value store scoped by namespace.
interface kv-v1 {
get: func(ns: string, key: string) -> option<string>;
put: func(ns: string, key: string, val: string);
}
world runner-host {
import http-v1;
import kv-v1;
}