Registry
The application-owned registry of installed extensions. It is process-local and never stored: conversations store extension names, and every resolution looks them up here. The registry is also where the scheduler finds task definitions, so installing an extension unblocks the tasks it defines.
Since v0.0.0
INSTRUCTIONS_KEY
Section titled “INSTRUCTIONS_KEY”The section key reserved for the agent’s instructions.
Signature
declare const INSTRUCTIONS_KEY: "instructions"Since v0.0.0
Registry (class)
Section titled “Registry (class)”Signature
declare class RegistrySince v0.0.0
RegistryError (class)
Section titled “RegistryError (class)”An install the registry refuses; nothing was published.
Signature
declare class RegistryErrorSince v0.0.0
RegistryShape (interface)
Section titled “RegistryShape (interface)”Signature
export interface RegistryShape { /** The current snapshot. */ readonly snapshot: () => Snapshot /** Install `extension`, or replace the installed one with its name in place. Publishes at once. */ readonly install: (extension: Extension.Any) => Effect.Effect<void, RegistryError> /** Remove the installed extension with this name, whichever object it is. A later install appends. */ readonly uninstall: (extension: Extension.Any | string) => Effect.Effect<void> /** Call `listener` after every publication, until the scope closes. It must not throw or block. */ readonly subscribe: (listener: () => void) => Effect.Effect<void, never, Scope.Scope>}Since v0.0.0
Snapshot (interface)
Section titled “Snapshot (interface)”An immutable view of the whole registry at one moment.
Signature
export interface Snapshot { readonly installed: ReadonlyArray<Extension.Any> readonly extension: (name: string) => Extension.Any | undefined /** The installed tasks by name. */ readonly task: (name: string) => Task.Any | undefined}Since v0.0.0
install
Section titled “install”Install an extension (or replace the installed one with its name).
Signature
declare const install: (extension: Extension.Any) => anySince v0.0.0
A registry holding extensions, in order.
Signature
declare const layer: (extensions?: Iterable<Extension.Any>) => Layer.Layer<Registry, RegistryError>Since v0.0.0
A registry holding extensions, in order.
Signature
declare const make: (extensions?: Iterable<Extension.Any>) => Effect.Effect<RegistryShape, RegistryError>Since v0.0.0
snapshot
Section titled “snapshot”The current snapshot.
Signature
declare const snapshot: Effect.Effect<Snapshot, never, Registry>Since v0.0.0
uninstall
Section titled “uninstall”Uninstall the extension with this name.
Signature
declare const uninstall: (extension: Extension.Any | string) => anySince v0.0.0