Skip to content

@codesoul-co/hypha-adapters-local / local-process-result

Using this module

Use the Local process result module for using the public contracts and operations for this capability boundary. It exports 1 function, 2 interfaces.

Import from the package entrypoint

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

import type {
  BuildLocalProcessResultInput,
  LocalProcessOutputArtifactRefs,
} from '@codesoul-co/hypha-adapters-local';

Usage patterns

  • Use the 2 type/interface exports as static contracts in application code, adapters, or tests. Import them with import type; they do not exist at runtime.
  • The module exposes 1 function as direct operation entrypoints. Every overload, required/optional parameter, and return type is documented below.

Public exports

SymbolKindSignatureDescription
buildLocalProcessResultfunctionbuildLocalProcessResult(input: BuildLocalProcessResultInput): CommandExecutionResultBuild Local Process Result function with 1 public call signature; parameters and return types are listed below.
BuildLocalProcessResultInputinterfaceinterface BuildLocalProcessResultInputBuild Local Process Result Input interface with 7 public fields or methods.
LocalProcessOutputArtifactRefsinterfaceinterface LocalProcessOutputArtifactRefsLocal Process Output Artifact Refs interface with 2 public fields or methods.

buildLocalProcessResult

Build Local Process Result function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { buildLocalProcessResult } from '@codesoul-co/hypha-adapters-local';
  • Source module: local-process-result

Declaration

text
export declare function buildLocalProcessResult(input: BuildLocalProcessResultInput): CommandExecutionResult;

Call signature

text
buildLocalProcessResult(input: BuildLocalProcessResultInput): CommandExecutionResult

Parameters

ParameterTypeRequiredDescription
inputBuildLocalProcessResultInputYesRequired parameter; accepted values are defined by the type column.

Returns

  • Type: CommandExecutionResult
  • Description: The return contract is defined by the type shown above.

BuildLocalProcessResultInput

Build Local Process Result Input interface with 7 public fields or methods.

  • Kind: interface
  • Import: import type { BuildLocalProcessResultInput } from '@codesoul-co/hypha-adapters-local';
  • Source module: local-process-result

Declaration

text
export interface BuildLocalProcessResultInput {
    providerId: string;
    request: CommandExecutionRequest;
    executionId: string;
    processResult: LocalProcessRunResult;
    changedFiles: FileMutation[];
    resourceAccountant: LocalProcessResourceAccountant;
    outputArtifacts?: LocalProcessOutputArtifactRefs;
}

Contract members

MemberKindSignatureDescription
changedFilespropertychangedFiles: FileMutation[]Public property; its type, readonly modifier and optionality are shown in the signature.
executionIdpropertyexecutionId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
outputArtifactspropertyoutputArtifacts?: LocalProcessOutputArtifactRefsPublic property; its type, readonly modifier and optionality are shown in the signature.
processResultpropertyprocessResult: LocalProcessRunResultPublic property; its type, readonly modifier and optionality are shown in the signature.
providerIdpropertyproviderId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
requestpropertyrequest: CommandExecutionRequestPublic property; its type, readonly modifier and optionality are shown in the signature.
resourceAccountantpropertyresourceAccountant: LocalProcessResourceAccountantPublic property; its type, readonly modifier and optionality are shown in the signature.

LocalProcessOutputArtifactRefs

Local Process Output Artifact Refs interface with 2 public fields or methods.

  • Kind: interface
  • Import: import type { LocalProcessOutputArtifactRefs } from '@codesoul-co/hypha-adapters-local';
  • Source module: local-process-result

Declaration

text
export interface LocalProcessOutputArtifactRefs {
    stdout?: string;
    stderr?: string;
}

Contract members

MemberKindSignatureDescription
stderrpropertystderr?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
stdoutpropertystdout?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.