docs
evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
Implement a lightweight provider server that exposes a single resource for managing feature flags, including schema bridging for multi-language use.
feature:index:Flag resource with inputs name (string, required, replace on change), enabled (boolean, default false), and optional description (string). @testname, enabled, and description returns the same values, generates an id prefixed with flag-, and persists state so a subsequent read returns the stored values. @testdescription for an existing flag updates outputs without requiring replacement and preserves existing values. @testname field triggers a replacement: the old flag is deleted and a new one is created with the new name while keeping other properties. @testid prefix; when a custom prefix is provided, created resources use that prefix while still returning the declared schema and version. @testexport interface FlagInputs {
name: string;
enabled?: boolean;
description?: string;
prefix?: string;
}
export interface FlagOutputs extends FlagInputs {
id: string;
}
export interface ProviderServer {
close(): Promise<void>;
}
export function startProviderServer(): Promise<ProviderServer>;
export function createInMemoryStore(): Map<string, FlagOutputs>;Provides provider server and schema bridging runtime.