Skip to content

@codesoul-co/hypha-core / ids

Using this module

Use the Ids module for using the public contracts and operations for this capability boundary. It exports 1 function, 1 interface, 1 type.

Import from the package entrypoint

ts
import {
  formatFrameworkId,
} from '@codesoul-co/hypha-core';

import type {
  FrameworkId,
  FrameworkIdPrefix,
} from '@codesoul-co/hypha-core';

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
formatFrameworkIdfunctionformatFrameworkId(id: FrameworkId): stringFormat Framework ID function with 1 public call signature; parameters and return types are listed below.
FrameworkIdinterfaceinterface FrameworkIdFramework ID interface with 2 public fields or methods.
FrameworkIdPrefixtypetype FrameworkIdPrefix = 'workspace' | 'session' | 'run' | 'step' | 'event' | 'agent' | 'skill' | 'tool' | 'memory' | 'model' | 'domain' | 'workflow' | 'policy' | 'artifact'Public type alias for Framework ID Prefix; the declaration contains its complete type expression.

formatFrameworkId

Format Framework ID function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { formatFrameworkId } from '@codesoul-co/hypha-core';
  • Source module: ids

Declaration

text
export declare function formatFrameworkId(id: FrameworkId): string;

Call signature

text
formatFrameworkId(id: FrameworkId): string

Parameters

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

Returns

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

FrameworkId

Framework ID interface with 2 public fields or methods.

  • Kind: interface
  • Import: import type { FrameworkId } from '@codesoul-co/hypha-core';
  • Source module: ids

Declaration

text
export interface FrameworkId {
    prefix: FrameworkIdPrefix;
    value: string;
}

Contract members

MemberKindSignatureDescription
prefixpropertyprefix: FrameworkIdPrefixPublic property; its type, readonly modifier and optionality are shown in the signature.
valuepropertyvalue: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

FrameworkIdPrefix

Public type alias for Framework ID Prefix; the declaration contains its complete type expression.

  • Kind: type
  • Import: import type { FrameworkIdPrefix } from '@codesoul-co/hypha-core';
  • Source module: ids

Declaration

text
export type FrameworkIdPrefix = 'workspace' | 'session' | 'run' | 'step' | 'event' | 'agent' | 'skill' | 'tool' | 'memory' | 'model' | 'domain' | 'workflow' | 'policy' | 'artifact';