@codesoul-co/hypha-adapters-local / in-memory-active-execution-registry
- Package index:
@codesoul-co/hypha-adapters-local - Source:
packages/adapters-local/src/in-memory-active-execution-registry.ts - Exports: 2
Using this module
Use the In memory active execution registry module for registering and resolving versioned capabilities or implementations. It exports 1 class, 1 interface.
Import from the package entrypoint
ts
import {
LocalActiveExecutionRegistry,
} from '@codesoul-co/hypha-adapters-local';
import type {
ActiveLocalExecutionHandle,
} from '@codesoul-co/hypha-adapters-local';Usage patterns
- Use the 1 type/interface export as static contracts in application code, adapters, or tests. Import them with
import type; they do not exist at runtime. - The module exposes 1 class as constructable runtime implementations. Each symbol entry lists its constructor and public methods.
Public exports
| Symbol | Kind | Signature | Description |
|---|---|---|---|
LocalActiveExecutionRegistry | class | new LocalActiveExecutionRegistry(): InMemoryActiveExecutionRegistry | Coordinates active executions without owning Sandbox or provider process semantics. |
ActiveLocalExecutionHandle | interface | interface ActiveLocalExecutionHandle | Active Local Execution Handle interface with 3 public fields or methods. |
LocalActiveExecutionRegistry
Coordinates active executions without owning Sandbox or provider process semantics.
- Kind: class
- Import:
import { LocalActiveExecutionRegistry } from '@codesoul-co/hypha-adapters-local'; - Source module:
in-memory-active-execution-registry
Declaration
text
export declare class InMemoryActiveExecutionRegistry {
begin(executionId: string, sandboxId: string): ActiveExecutionHandle;
sandboxId(executionId: string): string | undefined;
cancel(request: ExecutionCancelRequest): Promise<void>;
abortSandbox(sandboxId: string, reason: string): Promise<void>;
complete(executionId: string): void;
close(): Promise<void>;
}Public members
| Member | Kind | Signature | Description |
|---|---|---|---|
abortSandbox | method | abortSandbox(sandboxId: string, reason: string): Promise<void> | Public method; parameters and return type are shown in the signature. |
begin | method | begin(executionId: string, sandboxId: string): ActiveExecutionHandle | Public method; parameters and return type are shown in the signature. |
cancel | method | cancel(request: ExecutionCancelRequest): Promise<void> | Public method; parameters and return type are shown in the signature. |
close | method | close(): Promise<void> | Public method; parameters and return type are shown in the signature. |
complete | method | complete(executionId: string): void | Public method; parameters and return type are shown in the signature. |
constructor | constructor | (): InMemoryActiveExecutionRegistry | Creates an instance of this class. |
sandboxId | method | sandboxId(executionId: string): string | undefined | Public method; parameters and return type are shown in the signature. |
ActiveLocalExecutionHandle
Active Local Execution Handle interface with 3 public fields or methods.
- Kind: interface
- Import:
import type { ActiveLocalExecutionHandle } from '@codesoul-co/hypha-adapters-local'; - Source module:
in-memory-active-execution-registry
Declaration
text
export interface ActiveExecutionHandle {
sandboxId: string;
revision: number;
signal: AbortSignal;
}Contract members
| Member | Kind | Signature | Description |
|---|---|---|---|
revision | property | revision: number | Public property; its type, readonly modifier and optionality are shown in the signature. |
sandboxId | property | sandboxId: string | Public property; its type, readonly modifier and optionality are shown in the signature. |
signal | property | signal: AbortSignal | Public property; its type, readonly modifier and optionality are shown in the signature. |
