Skip to content

@codesoul-co/hypha-adapters-local / local-artifact-workspace-content-reader

Using this module

Use the Local artifact workspace content reader module for declaring and enforcing workspace scope boundaries. It exports 1 class, 1 interface.

Import from the package entrypoint

ts
import {
  LocalArtifactWorkspaceContentReader,
} from '@codesoul-co/hypha-adapters-local';

import type {
  LocalArtifactWorkspaceContentReaderOptions,
} 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

SymbolKindSignatureDescription
LocalArtifactWorkspaceContentReaderclassnew LocalArtifactWorkspaceContentReader(options: LocalArtifactWorkspaceContentReaderOptions): LocalArtifactWorkspaceContentReaderStreams governed Workspace files into ArtifactManager without exposing host paths or buffering the complete output in memory.
LocalArtifactWorkspaceContentReaderOptionsinterfaceinterface LocalArtifactWorkspaceContentReaderOptionsLocal Artifact Workspace Content Reader Options interface with 5 public fields or methods.

LocalArtifactWorkspaceContentReader

Streams governed Workspace files into ArtifactManager without exposing host paths or buffering the complete output in memory.

Declaration

text
export declare class LocalArtifactWorkspaceContentReader implements ArtifactWorkspaceContentReader {
    constructor(options: LocalArtifactWorkspaceContentReaderOptions);
    read(request: ArtifactWorkspaceContentRequest): Promise<ArtifactWorkspaceContent>;
}

Public members

MemberKindSignatureDescription
constructorconstructor(options: LocalArtifactWorkspaceContentReaderOptions): LocalArtifactWorkspaceContentReaderCreates an instance of this class.
readmethodread(request: ArtifactWorkspaceContentRequest): Promise<ArtifactWorkspaceContent>Public method; parameters and return type are shown in the signature.

LocalArtifactWorkspaceContentReaderOptions

Local Artifact Workspace Content Reader Options interface with 5 public fields or methods.

Declaration

text
export interface LocalArtifactWorkspaceContentReaderOptions {
    workspaceRoot: string;
    workspaceId: string;
    userId: string;
    tenantId?: string;
    chunkSizeBytes?: number;
}

Contract members

MemberKindSignatureDescription
chunkSizeBytespropertychunkSizeBytes?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
tenantIdpropertytenantId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
userIdpropertyuserId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
workspaceIdpropertyworkspaceId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
workspaceRootpropertyworkspaceRoot: stringPublic property; its type, readonly modifier and optionality are shown in the signature.