@suluk/platform - v0.6.0
    Preparing search index...

    Interface Capability<A>

    A typed CAPABILITY a service OFFERS to fill a port. build produces the consumer EXPRESSION rendered into the producer's hook closure — it may reference the closure's fixed params userId and env (the seam threads env), plus the symbols it declares in imports (all TRUSTED — from the service definition, never manifest free text). with is the wire's schema-validated params (JSON data only). (Consumed in Phase 3.)

    interface Capability<A = unknown> {
        kind: "capability";
        param?: Schema<A>;
        symbol: string;
        from: string;
        imports?: { symbol: string; from: string }[];
        build: (ctx: { with: Record<string, unknown> }) => string;
    }

    Type Parameters

    • A = unknown
    Index

    Properties

    kind: "capability"
    param?: Schema<A>
    symbol: string
    from: string
    imports?: { symbol: string; from: string }[]
    build: (ctx: { with: Record<string, unknown> }) => string